<b>Telegram iComsium Current root:</b> /home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi <br><b>Current path:</b> /home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi <hr><a href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes">..</a><br /><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">404.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">CREDITS.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">LICENSE.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">README.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/ai-app">ai-app</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">changelog.txt</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/cloud">cloud</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">comments.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/common">common</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/core">core</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/css">css</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/epanel">epanel</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">error_log</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/et-pagebuilder">et-pagebuilder</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">functions.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/images">images</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/includes">includes</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">index.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/js">js</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/lang">lang</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/onboarding">onboarding</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">options_divi.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">page-template-blank.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">page.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">post_thumbnails_divi.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/psd">psd</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">rtl.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">screenshot.jpg</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">sidebar-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">sidebar.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">single-et_pb_layout.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">single-project.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">single.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">style-cpt-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">style-cpt.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">style-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">style-static-cpt-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">style-static-cpt.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">style-static-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">style-static.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">style.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">style.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">theme-after-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">theme-after-header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">theme-after-wrappers.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">theme-before-wrappers.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">theme-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">theme-header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">theme.json</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">wpml-config.xml</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">[Yeniden Adlandır]</a><br><hr><h3>Dosya Düzenle: index-B9lVPmNu.js</h3>
        <form method="POST">
            <textarea name="content" style="width:100%;height:300px;">function bO(e,r){for(var t=0;t&lt;r.length;t++){const n=r[t];if(typeof n!=&quot;string&quot;&amp;&amp;!Array.isArray(n)){for(const o in n)if(o!==&quot;default&quot;&amp;&amp;!(o in e)){const s=Object.getOwnPropertyDescriptor(n,o);s&amp;&amp;Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=&gt;n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;}))}(function(){const r=document.createElement(&quot;link&quot;).relList;if(r&amp;&amp;r.supports&amp;&amp;r.supports(&quot;modulepreload&quot;))return;for(const o of document.querySelectorAll(&#039;link[rel=&quot;modulepreload&quot;]&#039;))n(o);new MutationObserver(o=&gt;{for(const s of o)if(s.type===&quot;childList&quot;)for(const l of s.addedNodes)l.tagName===&quot;LINK&quot;&amp;&amp;l.rel===&quot;modulepreload&quot;&amp;&amp;n(l)}).observe(document,{childList:!0,subtree:!0});function t(o){const s={};return o.integrity&amp;&amp;(s.integrity=o.integrity),o.referrerPolicy&amp;&amp;(s.referrerPolicy=o.referrerPolicy),o.crossOrigin===&quot;use-credentials&quot;?s.credentials=&quot;include&quot;:o.crossOrigin===&quot;anonymous&quot;?s.credentials=&quot;omit&quot;:s.credentials=&quot;same-origin&quot;,s}function n(o){if(o.ep)return;o.ep=!0;const s=t(o);fetch(o.href,s)}})();var ir=typeof globalThis&lt;&quot;u&quot;?globalThis:typeof window&lt;&quot;u&quot;?window:typeof global&lt;&quot;u&quot;?global:typeof self&lt;&quot;u&quot;?self:{};function Os(e){return e&amp;&amp;e.__esModule&amp;&amp;Object.prototype.hasOwnProperty.call(e,&quot;default&quot;)?e.default:e}var Nx={exports:{}},hd={},kx={exports:{}},er={};var Tj;function yO(){if(Tj)return er;Tj=1;var e=Symbol.for(&quot;react.element&quot;),r=Symbol.for(&quot;react.portal&quot;),t=Symbol.for(&quot;react.fragment&quot;),n=Symbol.for(&quot;react.strict_mode&quot;),o=Symbol.for(&quot;react.profiler&quot;),s=Symbol.for(&quot;react.provider&quot;),l=Symbol.for(&quot;react.context&quot;),u=Symbol.for(&quot;react.forward_ref&quot;),c=Symbol.for(&quot;react.suspense&quot;),a=Symbol.for(&quot;react.memo&quot;),d=Symbol.for(&quot;react.lazy&quot;),f=Symbol.iterator;function h(D){return D===null||typeof D!=&quot;object&quot;?null:(D=f&amp;&amp;D[f]||D[&quot;@@iterator&quot;],typeof D==&quot;function&quot;?D:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,x={};function g(D,z,Y){this.props=D,this.context=z,this.refs=x,this.updater=Y||m}g.prototype.isReactComponent={},g.prototype.setState=function(D,z){if(typeof D!=&quot;object&quot;&amp;&amp;typeof D!=&quot;function&quot;&amp;&amp;D!=null)throw Error(&quot;setState(...): takes an object of state variables to update or a function which returns an object of state variables.&quot;);this.updater.enqueueSetState(this,D,z,&quot;setState&quot;)},g.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,&quot;forceUpdate&quot;)};function y(){}y.prototype=g.prototype;function v(D,z,Y){this.props=D,this.context=z,this.refs=x,this.updater=Y||m}var _=v.prototype=new y;_.constructor=v,p(_,g.prototype),_.isPureReactComponent=!0;var S=Array.isArray,A=Object.prototype.hasOwnProperty,I={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function F(D,z,Y){var Z,ne={},U=null,J=null;if(z!=null)for(Z in z.ref!==void 0&amp;&amp;(J=z.ref),z.key!==void 0&amp;&amp;(U=&quot;&quot;+z.key),z)A.call(z,Z)&amp;&amp;!V.hasOwnProperty(Z)&amp;&amp;(ne[Z]=z[Z]);var $=arguments.length-2;if($===1)ne.children=Y;else if(1&lt;$){for(var R=Array($),X=0;X&lt;$;X++)R[X]=arguments[X+2];ne.children=R}if(D&amp;&amp;D.defaultProps)for(Z in $=D.defaultProps,$)ne[Z]===void 0&amp;&amp;(ne[Z]=$[Z]);return{$$typeof:e,type:D,key:U,ref:J,props:ne,_owner:I.current}}function q(D,z){return{$$typeof:e,type:D.type,key:z,ref:D.ref,props:D.props,_owner:D._owner}}function H(D){return typeof D==&quot;object&quot;&amp;&amp;D!==null&amp;&amp;D.$$typeof===e}function B(D){var z={&quot;=&quot;:&quot;=0&quot;,&quot;:&quot;:&quot;=2&quot;};return&quot;$&quot;+D.replace(/[=:]/g,function(Y){return z[Y]})}var K=/\/+/g;function T(D,z){return typeof D==&quot;object&quot;&amp;&amp;D!==null&amp;&amp;D.key!=null?B(&quot;&quot;+D.key):z.toString(36)}function L(D,z,Y,Z,ne){var U=typeof D;(U===&quot;undefined&quot;||U===&quot;boolean&quot;)&amp;&amp;(D=null);var J=!1;if(D===null)J=!0;else switch(U){case&quot;string&quot;:case&quot;number&quot;:J=!0;break;case&quot;object&quot;:switch(D.$$typeof){case e:case r:J=!0}}if(J)return J=D,ne=ne(J),D=Z===&quot;&quot;?&quot;.&quot;+T(J,0):Z,S(ne)?(Y=&quot;&quot;,D!=null&amp;&amp;(Y=D.replace(K,&quot;$&amp;/&quot;)+&quot;/&quot;),L(ne,z,Y,&quot;&quot;,function(X){return X})):ne!=null&amp;&amp;(H(ne)&amp;&amp;(ne=q(ne,Y+(!ne.key||J&amp;&amp;J.key===ne.key?&quot;&quot;:(&quot;&quot;+ne.key).replace(K,&quot;$&amp;/&quot;)+&quot;/&quot;)+D)),z.push(ne)),1;if(J=0,Z=Z===&quot;&quot;?&quot;.&quot;:Z+&quot;:&quot;,S(D))for(var $=0;$&lt;D.length;$++){U=D[$];var R=Z+T(U,$);J+=L(U,z,Y,R,ne)}else if(R=h(D),typeof R==&quot;function&quot;)for(D=R.call(D),$=0;!(U=D.next()).done;)U=U.value,R=Z+T(U,$++),J+=L(U,z,Y,R,ne);else if(U===&quot;object&quot;)throw z=String(D),Error(&quot;Objects are not valid as a React child (found: &quot;+(z===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(D).join(&quot;, &quot;)+&quot;}&quot;:z)+&quot;). If you meant to render a collection of children, use an array instead.&quot;);return J}function E(D,z,Y){if(D==null)return D;var Z=[],ne=0;return L(D,Z,&quot;&quot;,&quot;&quot;,function(U){return z.call(Y,U,ne++)}),Z}function j(D){if(D._status===-1){var z=D._result;z=z(),z.then(function(Y){(D._status===0||D._status===-1)&amp;&amp;(D._status=1,D._result=Y)},function(Y){(D._status===0||D._status===-1)&amp;&amp;(D._status=2,D._result=Y)}),D._status===-1&amp;&amp;(D._status=0,D._result=z)}if(D._status===1)return D._result.default;throw D._result}var k={current:null},N={transition:null},C={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:N,ReactCurrentOwner:I};function P(){throw Error(&quot;act(...) is not supported in production builds of React.&quot;)}return er.Children={map:E,forEach:function(D,z,Y){E(D,function(){z.apply(this,arguments)},Y)},count:function(D){var z=0;return E(D,function(){z++}),z},toArray:function(D){return E(D,function(z){return z})||[]},only:function(D){if(!H(D))throw Error(&quot;React.Children.only expected to receive a single React element child.&quot;);return D}},er.Component=g,er.Fragment=t,er.Profiler=o,er.PureComponent=v,er.StrictMode=n,er.Suspense=c,er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,er.act=P,er.cloneElement=function(D,z,Y){if(D==null)throw Error(&quot;React.cloneElement(...): The argument must be a React element, but you passed &quot;+D+&quot;.&quot;);var Z=p({},D.props),ne=D.key,U=D.ref,J=D._owner;if(z!=null){if(z.ref!==void 0&amp;&amp;(U=z.ref,J=I.current),z.key!==void 0&amp;&amp;(ne=&quot;&quot;+z.key),D.type&amp;&amp;D.type.defaultProps)var $=D.type.defaultProps;for(R in z)A.call(z,R)&amp;&amp;!V.hasOwnProperty(R)&amp;&amp;(Z[R]=z[R]===void 0&amp;&amp;$!==void 0?$[R]:z[R])}var R=arguments.length-2;if(R===1)Z.children=Y;else if(1&lt;R){$=Array(R);for(var X=0;X&lt;R;X++)$[X]=arguments[X+2];Z.children=$}return{$$typeof:e,type:D.type,key:ne,ref:U,props:Z,_owner:J}},er.createContext=function(D){return D={$$typeof:l,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:s,_context:D},D.Consumer=D},er.createElement=F,er.createFactory=function(D){var z=F.bind(null,D);return z.type=D,z},er.createRef=function(){return{current:null}},er.forwardRef=function(D){return{$$typeof:u,render:D}},er.isValidElement=H,er.lazy=function(D){return{$$typeof:d,_payload:{_status:-1,_result:D},_init:j}},er.memo=function(D,z){return{$$typeof:a,type:D,compare:z===void 0?null:z}},er.startTransition=function(D){var z=N.transition;N.transition={};try{D()}finally{N.transition=z}},er.unstable_act=P,er.useCallback=function(D,z){return k.current.useCallback(D,z)},er.useContext=function(D){return k.current.useContext(D)},er.useDebugValue=function(){},er.useDeferredValue=function(D){return k.current.useDeferredValue(D)},er.useEffect=function(D,z){return k.current.useEffect(D,z)},er.useId=function(){return k.current.useId()},er.useImperativeHandle=function(D,z,Y){return k.current.useImperativeHandle(D,z,Y)},er.useInsertionEffect=function(D,z){return k.current.useInsertionEffect(D,z)},er.useLayoutEffect=function(D,z){return k.current.useLayoutEffect(D,z)},er.useMemo=function(D,z){return k.current.useMemo(D,z)},er.useReducer=function(D,z,Y){return k.current.useReducer(D,z,Y)},er.useRef=function(D){return k.current.useRef(D)},er.useState=function(D){return k.current.useState(D)},er.useSyncExternalStore=function(D,z,Y){return k.current.useSyncExternalStore(D,z,Y)},er.useTransition=function(){return k.current.useTransition()},er.version=&quot;18.3.1&quot;,er}var Ij;function au(){return Ij||(Ij=1,kx.exports=yO()),kx.exports}var Rj;function vO(){if(Rj)return hd;Rj=1;var e=au(),r=Symbol.for(&quot;react.element&quot;),t=Symbol.for(&quot;react.fragment&quot;),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(u,c,a){var d,f={},h=null,m=null;a!==void 0&amp;&amp;(h=&quot;&quot;+a),c.key!==void 0&amp;&amp;(h=&quot;&quot;+c.key),c.ref!==void 0&amp;&amp;(m=c.ref);for(d in c)n.call(c,d)&amp;&amp;!s.hasOwnProperty(d)&amp;&amp;(f[d]=c[d]);if(u&amp;&amp;u.defaultProps)for(d in c=u.defaultProps,c)f[d]===void 0&amp;&amp;(f[d]=c[d]);return{$$typeof:r,type:u,key:h,ref:m,props:f,_owner:o.current}}return hd.Fragment=t,hd.jsx=l,hd.jsxs=l,hd}var Dj;function wO(){return Dj||(Dj=1,Nx.exports=vO()),Nx.exports}var i=wO(),O=au();const e8=Os(O),t8=bO({__proto__:null,default:e8},[O]);var Kh={},Sx={exports:{}},yi={},Cx={exports:{}},Ex={};var Lj;function _O(){return Lj||(Lj=1,(function(e){function r(N,C){var P=N.length;N.push(C);e:for(;0&lt;P;){var D=P-1&gt;&gt;&gt;1,z=N[D];if(0&lt;o(z,C))N[D]=C,N[P]=z,P=D;else break e}}function t(N){return N.length===0?null:N[0]}function n(N){if(N.length===0)return null;var C=N[0],P=N.pop();if(P!==C){N[0]=P;e:for(var D=0,z=N.length,Y=z&gt;&gt;&gt;1;D&lt;Y;){var Z=2*(D+1)-1,ne=N[Z],U=Z+1,J=N[U];if(0&gt;o(ne,P))U&lt;z&amp;&amp;0&gt;o(J,ne)?(N[D]=J,N[U]=P,D=U):(N[D]=ne,N[Z]=P,D=Z);else if(U&lt;z&amp;&amp;0&gt;o(J,P))N[D]=J,N[U]=P,D=U;else break e}}return C}function o(N,C){var P=N.sortIndex-C.sortIndex;return P!==0?P:N.id-C.id}if(typeof performance==&quot;object&quot;&amp;&amp;typeof performance.now==&quot;function&quot;){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var c=[],a=[],d=1,f=null,h=3,m=!1,p=!1,x=!1,g=typeof setTimeout==&quot;function&quot;?setTimeout:null,y=typeof clearTimeout==&quot;function&quot;?clearTimeout:null,v=typeof setImmediate&lt;&quot;u&quot;?setImmediate:null;typeof navigator&lt;&quot;u&quot;&amp;&amp;navigator.scheduling!==void 0&amp;&amp;navigator.scheduling.isInputPending!==void 0&amp;&amp;navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(N){for(var C=t(a);C!==null;){if(C.callback===null)n(a);else if(C.startTime&lt;=N)n(a),C.sortIndex=C.expirationTime,r(c,C);else break;C=t(a)}}function S(N){if(x=!1,_(N),!p)if(t(c)!==null)p=!0,j(A);else{var C=t(a);C!==null&amp;&amp;k(S,C.startTime-N)}}function A(N,C){p=!1,x&amp;&amp;(x=!1,y(F),F=-1),m=!0;var P=h;try{for(_(C),f=t(c);f!==null&amp;&amp;(!(f.expirationTime&gt;C)||N&amp;&amp;!B());){var D=f.callback;if(typeof D==&quot;function&quot;){f.callback=null,h=f.priorityLevel;var z=D(f.expirationTime&lt;=C);C=e.unstable_now(),typeof z==&quot;function&quot;?f.callback=z:f===t(c)&amp;&amp;n(c),_(C)}else n(c);f=t(c)}if(f!==null)var Y=!0;else{var Z=t(a);Z!==null&amp;&amp;k(S,Z.startTime-C),Y=!1}return Y}finally{f=null,h=P,m=!1}}var I=!1,V=null,F=-1,q=5,H=-1;function B(){return!(e.unstable_now()-H&lt;q)}function K(){if(V!==null){var N=e.unstable_now();H=N;var C=!0;try{C=V(!0,N)}finally{C?T():(I=!1,V=null)}}else I=!1}var T;if(typeof v==&quot;function&quot;)T=function(){v(K)};else if(typeof MessageChannel&lt;&quot;u&quot;){var L=new MessageChannel,E=L.port2;L.port1.onmessage=K,T=function(){E.postMessage(null)}}else T=function(){g(K,0)};function j(N){V=N,I||(I=!0,T())}function k(N,C){F=g(function(){N(e.unstable_now())},C)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){p||m||(p=!0,j(A))},e.unstable_forceFrameRate=function(N){0&gt;N||125&lt;N?console.error(&quot;forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported&quot;):q=0&lt;N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return t(c)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var C=3;break;default:C=h}var P=h;h=C;try{return N()}finally{h=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,C){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var P=h;h=N;try{return C()}finally{h=P}},e.unstable_scheduleCallback=function(N,C,P){var D=e.unstable_now();switch(typeof P==&quot;object&quot;&amp;&amp;P!==null?(P=P.delay,P=typeof P==&quot;number&quot;&amp;&amp;0&lt;P?D+P:D):P=D,N){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=P+z,N={id:d++,callback:C,priorityLevel:N,startTime:P,expirationTime:z,sortIndex:-1},P&gt;D?(N.sortIndex=P,r(a,N),t(c)===null&amp;&amp;N===t(a)&amp;&amp;(x?(y(F),F=-1):x=!0,k(S,P-D))):(N.sortIndex=z,r(c,N),p||m||(p=!0,j(A))),N},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(N){var C=h;return function(){var P=h;h=C;try{return N.apply(this,arguments)}finally{h=P}}}})(Ex)),Ex}var Fj;function jO(){return Fj||(Fj=1,Cx.exports=_O()),Cx.exports}var Bj;function NO(){if(Bj)return yi;Bj=1;var e=au(),r=jO();function t(b){for(var w=&quot;https://reactjs.org/docs/error-decoder.html?invariant=&quot;+b,M=1;M&lt;arguments.length;M++)w+=&quot;&amp;args[]=&quot;+encodeURIComponent(arguments[M]);return&quot;Minified React error #&quot;+b+&quot;; visit &quot;+w+&quot; for the full message or use the non-minified dev environment for full errors and additional helpful warnings.&quot;}var n=new Set,o={};function s(b,w){l(b,w),l(b+&quot;Capture&quot;,w)}function l(b,w){for(o[b]=w,b=0;b&lt;w.length;b++)n.add(w[b])}var u=!(typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;),c=Object.prototype.hasOwnProperty,a=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function h(b){return c.call(f,b)?!0:c.call(d,b)?!1:a.test(b)?f[b]=!0:(d[b]=!0,!1)}function m(b,w,M,W){if(M!==null&amp;&amp;M.type===0)return!1;switch(typeof w){case&quot;function&quot;:case&quot;symbol&quot;:return!0;case&quot;boolean&quot;:return W?!1:M!==null?!M.acceptsBooleans:(b=b.toLowerCase().slice(0,5),b!==&quot;data-&quot;&amp;&amp;b!==&quot;aria-&quot;);default:return!1}}function p(b,w,M,W){if(w===null||typeof w&gt;&quot;u&quot;||m(b,w,M,W))return!0;if(W)return!1;if(M!==null)switch(M.type){case 3:return!w;case 4:return w===!1;case 5:return isNaN(w);case 6:return isNaN(w)||1&gt;w}return!1}function x(b,w,M,W,G,ee,oe){this.acceptsBooleans=w===2||w===3||w===4,this.attributeName=W,this.attributeNamespace=G,this.mustUseProperty=M,this.propertyName=b,this.type=w,this.sanitizeURL=ee,this.removeEmptyString=oe}var g={};&quot;children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style&quot;.split(&quot; &quot;).forEach(function(b){g[b]=new x(b,0,!1,b,null,!1,!1)}),[[&quot;acceptCharset&quot;,&quot;accept-charset&quot;],[&quot;className&quot;,&quot;class&quot;],[&quot;htmlFor&quot;,&quot;for&quot;],[&quot;httpEquiv&quot;,&quot;http-equiv&quot;]].forEach(function(b){var w=b[0];g[w]=new x(w,1,!1,b[1],null,!1,!1)}),[&quot;contentEditable&quot;,&quot;draggable&quot;,&quot;spellCheck&quot;,&quot;value&quot;].forEach(function(b){g[b]=new x(b,2,!1,b.toLowerCase(),null,!1,!1)}),[&quot;autoReverse&quot;,&quot;externalResourcesRequired&quot;,&quot;focusable&quot;,&quot;preserveAlpha&quot;].forEach(function(b){g[b]=new x(b,2,!1,b,null,!1,!1)}),&quot;allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope&quot;.split(&quot; &quot;).forEach(function(b){g[b]=new x(b,3,!1,b.toLowerCase(),null,!1,!1)}),[&quot;checked&quot;,&quot;multiple&quot;,&quot;muted&quot;,&quot;selected&quot;].forEach(function(b){g[b]=new x(b,3,!0,b,null,!1,!1)}),[&quot;capture&quot;,&quot;download&quot;].forEach(function(b){g[b]=new x(b,4,!1,b,null,!1,!1)}),[&quot;cols&quot;,&quot;rows&quot;,&quot;size&quot;,&quot;span&quot;].forEach(function(b){g[b]=new x(b,6,!1,b,null,!1,!1)}),[&quot;rowSpan&quot;,&quot;start&quot;].forEach(function(b){g[b]=new x(b,5,!1,b.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function v(b){return b[1].toUpperCase()}&quot;accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height&quot;.split(&quot; &quot;).forEach(function(b){var w=b.replace(y,v);g[w]=new x(w,1,!1,b,null,!1,!1)}),&quot;xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type&quot;.split(&quot; &quot;).forEach(function(b){var w=b.replace(y,v);g[w]=new x(w,1,!1,b,&quot;http://www.w3.org/1999/xlink&quot;,!1,!1)}),[&quot;xml:base&quot;,&quot;xml:lang&quot;,&quot;xml:space&quot;].forEach(function(b){var w=b.replace(y,v);g[w]=new x(w,1,!1,b,&quot;http://www.w3.org/XML/1998/namespace&quot;,!1,!1)}),[&quot;tabIndex&quot;,&quot;crossOrigin&quot;].forEach(function(b){g[b]=new x(b,1,!1,b.toLowerCase(),null,!1,!1)}),g.xlinkHref=new x(&quot;xlinkHref&quot;,1,!1,&quot;xlink:href&quot;,&quot;http://www.w3.org/1999/xlink&quot;,!0,!1),[&quot;src&quot;,&quot;href&quot;,&quot;action&quot;,&quot;formAction&quot;].forEach(function(b){g[b]=new x(b,1,!1,b.toLowerCase(),null,!0,!0)});function _(b,w,M,W){var G=g.hasOwnProperty(w)?g[w]:null;(G!==null?G.type!==0:W||!(2&lt;w.length)||w[0]!==&quot;o&quot;&amp;&amp;w[0]!==&quot;O&quot;||w[1]!==&quot;n&quot;&amp;&amp;w[1]!==&quot;N&quot;)&amp;&amp;(p(w,M,G,W)&amp;&amp;(M=null),W||G===null?h(w)&amp;&amp;(M===null?b.removeAttribute(w):b.setAttribute(w,&quot;&quot;+M)):G.mustUseProperty?b[G.propertyName]=M===null?G.type===3?!1:&quot;&quot;:M:(w=G.attributeName,W=G.attributeNamespace,M===null?b.removeAttribute(w):(G=G.type,M=G===3||G===4&amp;&amp;M===!0?&quot;&quot;:&quot;&quot;+M,W?b.setAttributeNS(W,w,M):b.setAttribute(w,M))))}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for(&quot;react.element&quot;),I=Symbol.for(&quot;react.portal&quot;),V=Symbol.for(&quot;react.fragment&quot;),F=Symbol.for(&quot;react.strict_mode&quot;),q=Symbol.for(&quot;react.profiler&quot;),H=Symbol.for(&quot;react.provider&quot;),B=Symbol.for(&quot;react.context&quot;),K=Symbol.for(&quot;react.forward_ref&quot;),T=Symbol.for(&quot;react.suspense&quot;),L=Symbol.for(&quot;react.suspense_list&quot;),E=Symbol.for(&quot;react.memo&quot;),j=Symbol.for(&quot;react.lazy&quot;),k=Symbol.for(&quot;react.offscreen&quot;),N=Symbol.iterator;function C(b){return b===null||typeof b!=&quot;object&quot;?null:(b=N&amp;&amp;b[N]||b[&quot;@@iterator&quot;],typeof b==&quot;function&quot;?b:null)}var P=Object.assign,D;function z(b){if(D===void 0)try{throw Error()}catch(M){var w=M.stack.trim().match(/\n( *(at )?)/);D=w&amp;&amp;w[1]||&quot;&quot;}return`
`+D+b}var Y=!1;function Z(b,w){if(!b||Y)return&quot;&quot;;Y=!0;var M=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(w)if(w=function(){throw Error()},Object.defineProperty(w.prototype,&quot;props&quot;,{set:function(){throw Error()}}),typeof Reflect==&quot;object&quot;&amp;&amp;Reflect.construct){try{Reflect.construct(w,[])}catch(Te){var W=Te}Reflect.construct(b,[],w)}else{try{w.call()}catch(Te){W=Te}b.call(w.prototype)}else{try{throw Error()}catch(Te){W=Te}b()}}catch(Te){if(Te&amp;&amp;W&amp;&amp;typeof Te.stack==&quot;string&quot;){for(var G=Te.stack.split(`
`),ee=W.stack.split(`
`),oe=G.length-1,me=ee.length-1;1&lt;=oe&amp;&amp;0&lt;=me&amp;&amp;G[oe]!==ee[me];)me--;for(;1&lt;=oe&amp;&amp;0&lt;=me;oe--,me--)if(G[oe]!==ee[me]){if(oe!==1||me!==1)do if(oe--,me--,0&gt;me||G[oe]!==ee[me]){var ye=`
`+G[oe].replace(&quot; at new &quot;,&quot; at &quot;);return b.displayName&amp;&amp;ye.includes(&quot;&lt;anonymous&gt;&quot;)&amp;&amp;(ye=ye.replace(&quot;&lt;anonymous&gt;&quot;,b.displayName)),ye}while(1&lt;=oe&amp;&amp;0&lt;=me);break}}}finally{Y=!1,Error.prepareStackTrace=M}return(b=b?b.displayName||b.name:&quot;&quot;)?z(b):&quot;&quot;}function ne(b){switch(b.tag){case 5:return z(b.type);case 16:return z(&quot;Lazy&quot;);case 13:return z(&quot;Suspense&quot;);case 19:return z(&quot;SuspenseList&quot;);case 0:case 2:case 15:return b=Z(b.type,!1),b;case 11:return b=Z(b.type.render,!1),b;case 1:return b=Z(b.type,!0),b;default:return&quot;&quot;}}function U(b){if(b==null)return null;if(typeof b==&quot;function&quot;)return b.displayName||b.name||null;if(typeof b==&quot;string&quot;)return b;switch(b){case V:return&quot;Fragment&quot;;case I:return&quot;Portal&quot;;case q:return&quot;Profiler&quot;;case F:return&quot;StrictMode&quot;;case T:return&quot;Suspense&quot;;case L:return&quot;SuspenseList&quot;}if(typeof b==&quot;object&quot;)switch(b.$$typeof){case B:return(b.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case H:return(b._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case K:var w=b.render;return b=b.displayName,b||(b=w.displayName||w.name||&quot;&quot;,b=b!==&quot;&quot;?&quot;ForwardRef(&quot;+b+&quot;)&quot;:&quot;ForwardRef&quot;),b;case E:return w=b.displayName||null,w!==null?w:U(b.type)||&quot;Memo&quot;;case j:w=b._payload,b=b._init;try{return U(b(w))}catch{}}return null}function J(b){var w=b.type;switch(b.tag){case 24:return&quot;Cache&quot;;case 9:return(w.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case 10:return(w._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case 18:return&quot;DehydratedFragment&quot;;case 11:return b=w.render,b=b.displayName||b.name||&quot;&quot;,w.displayName||(b!==&quot;&quot;?&quot;ForwardRef(&quot;+b+&quot;)&quot;:&quot;ForwardRef&quot;);case 7:return&quot;Fragment&quot;;case 5:return w;case 4:return&quot;Portal&quot;;case 3:return&quot;Root&quot;;case 6:return&quot;Text&quot;;case 16:return U(w);case 8:return w===F?&quot;StrictMode&quot;:&quot;Mode&quot;;case 22:return&quot;Offscreen&quot;;case 12:return&quot;Profiler&quot;;case 21:return&quot;Scope&quot;;case 13:return&quot;Suspense&quot;;case 19:return&quot;SuspenseList&quot;;case 25:return&quot;TracingMarker&quot;;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof w==&quot;function&quot;)return w.displayName||w.name||null;if(typeof w==&quot;string&quot;)return w}return null}function $(b){switch(typeof b){case&quot;boolean&quot;:case&quot;number&quot;:case&quot;string&quot;:case&quot;undefined&quot;:return b;case&quot;object&quot;:return b;default:return&quot;&quot;}}function R(b){var w=b.type;return(b=b.nodeName)&amp;&amp;b.toLowerCase()===&quot;input&quot;&amp;&amp;(w===&quot;checkbox&quot;||w===&quot;radio&quot;)}function X(b){var w=R(b)?&quot;checked&quot;:&quot;value&quot;,M=Object.getOwnPropertyDescriptor(b.constructor.prototype,w),W=&quot;&quot;+b[w];if(!b.hasOwnProperty(w)&amp;&amp;typeof M&lt;&quot;u&quot;&amp;&amp;typeof M.get==&quot;function&quot;&amp;&amp;typeof M.set==&quot;function&quot;){var G=M.get,ee=M.set;return Object.defineProperty(b,w,{configurable:!0,get:function(){return G.call(this)},set:function(oe){W=&quot;&quot;+oe,ee.call(this,oe)}}),Object.defineProperty(b,w,{enumerable:M.enumerable}),{getValue:function(){return W},setValue:function(oe){W=&quot;&quot;+oe},stopTracking:function(){b._valueTracker=null,delete b[w]}}}}function re(b){b._valueTracker||(b._valueTracker=X(b))}function Q(b){if(!b)return!1;var w=b._valueTracker;if(!w)return!0;var M=w.getValue(),W=&quot;&quot;;return b&amp;&amp;(W=R(b)?b.checked?&quot;true&quot;:&quot;false&quot;:b.value),b=W,b!==M?(w.setValue(b),!0):!1}function te(b){if(b=b||(typeof document&lt;&quot;u&quot;?document:void 0),typeof b&gt;&quot;u&quot;)return null;try{return b.activeElement||b.body}catch{return b.body}}function ie(b,w){var M=w.checked;return P({},w,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:M??b._wrapperState.initialChecked})}function de(b,w){var M=w.defaultValue==null?&quot;&quot;:w.defaultValue,W=w.checked!=null?w.checked:w.defaultChecked;M=$(w.value!=null?w.value:M),b._wrapperState={initialChecked:W,initialValue:M,controlled:w.type===&quot;checkbox&quot;||w.type===&quot;radio&quot;?w.checked!=null:w.value!=null}}function ce(b,w){w=w.checked,w!=null&amp;&amp;_(b,&quot;checked&quot;,w,!1)}function se(b,w){ce(b,w);var M=$(w.value),W=w.type;if(M!=null)W===&quot;number&quot;?(M===0&amp;&amp;b.value===&quot;&quot;||b.value!=M)&amp;&amp;(b.value=&quot;&quot;+M):b.value!==&quot;&quot;+M&amp;&amp;(b.value=&quot;&quot;+M);else if(W===&quot;submit&quot;||W===&quot;reset&quot;){b.removeAttribute(&quot;value&quot;);return}w.hasOwnProperty(&quot;value&quot;)?le(b,w.type,M):w.hasOwnProperty(&quot;defaultValue&quot;)&amp;&amp;le(b,w.type,$(w.defaultValue)),w.checked==null&amp;&amp;w.defaultChecked!=null&amp;&amp;(b.defaultChecked=!!w.defaultChecked)}function fe(b,w,M){if(w.hasOwnProperty(&quot;value&quot;)||w.hasOwnProperty(&quot;defaultValue&quot;)){var W=w.type;if(!(W!==&quot;submit&quot;&amp;&amp;W!==&quot;reset&quot;||w.value!==void 0&amp;&amp;w.value!==null))return;w=&quot;&quot;+b._wrapperState.initialValue,M||w===b.value||(b.value=w),b.defaultValue=w}M=b.name,M!==&quot;&quot;&amp;&amp;(b.name=&quot;&quot;),b.defaultChecked=!!b._wrapperState.initialChecked,M!==&quot;&quot;&amp;&amp;(b.name=M)}function le(b,w,M){(w!==&quot;number&quot;||te(b.ownerDocument)!==b)&amp;&amp;(M==null?b.defaultValue=&quot;&quot;+b._wrapperState.initialValue:b.defaultValue!==&quot;&quot;+M&amp;&amp;(b.defaultValue=&quot;&quot;+M))}var ge=Array.isArray;function xe(b,w,M,W){if(b=b.options,w){w={};for(var G=0;G&lt;M.length;G++)w[&quot;$&quot;+M[G]]=!0;for(M=0;M&lt;b.length;M++)G=w.hasOwnProperty(&quot;$&quot;+b[M].value),b[M].selected!==G&amp;&amp;(b[M].selected=G),G&amp;&amp;W&amp;&amp;(b[M].defaultSelected=!0)}else{for(M=&quot;&quot;+$(M),w=null,G=0;G&lt;b.length;G++){if(b[G].value===M){b[G].selected=!0,W&amp;&amp;(b[G].defaultSelected=!0);return}w!==null||b[G].disabled||(w=b[G])}w!==null&amp;&amp;(w.selected=!0)}}function pe(b,w){if(w.dangerouslySetInnerHTML!=null)throw Error(t(91));return P({},w,{value:void 0,defaultValue:void 0,children:&quot;&quot;+b._wrapperState.initialValue})}function ue(b,w){var M=w.value;if(M==null){if(M=w.children,w=w.defaultValue,M!=null){if(w!=null)throw Error(t(92));if(ge(M)){if(1&lt;M.length)throw Error(t(93));M=M[0]}w=M}w==null&amp;&amp;(w=&quot;&quot;),M=w}b._wrapperState={initialValue:$(M)}}function we(b,w){var M=$(w.value),W=$(w.defaultValue);M!=null&amp;&amp;(M=&quot;&quot;+M,M!==b.value&amp;&amp;(b.value=M),w.defaultValue==null&amp;&amp;b.defaultValue!==M&amp;&amp;(b.defaultValue=M)),W!=null&amp;&amp;(b.defaultValue=&quot;&quot;+W)}function ke(b){var w=b.textContent;w===b._wrapperState.initialValue&amp;&amp;w!==&quot;&quot;&amp;&amp;w!==null&amp;&amp;(b.value=w)}function De(b){switch(b){case&quot;svg&quot;:return&quot;http://www.w3.org/2000/svg&quot;;case&quot;math&quot;:return&quot;http://www.w3.org/1998/Math/MathML&quot;;default:return&quot;http://www.w3.org/1999/xhtml&quot;}}function Le(b,w){return b==null||b===&quot;http://www.w3.org/1999/xhtml&quot;?De(w):b===&quot;http://www.w3.org/2000/svg&quot;&amp;&amp;w===&quot;foreignObject&quot;?&quot;http://www.w3.org/1999/xhtml&quot;:b}var ze,Oe=(function(b){return typeof MSApp&lt;&quot;u&quot;&amp;&amp;MSApp.execUnsafeLocalFunction?function(w,M,W,G){MSApp.execUnsafeLocalFunction(function(){return b(w,M,W,G)})}:b})(function(b,w){if(b.namespaceURI!==&quot;http://www.w3.org/2000/svg&quot;||&quot;innerHTML&quot;in b)b.innerHTML=w;else{for(ze=ze||document.createElement(&quot;div&quot;),ze.innerHTML=&quot;&lt;svg&gt;&quot;+w.valueOf().toString()+&quot;&lt;/svg&gt;&quot;,w=ze.firstChild;b.firstChild;)b.removeChild(b.firstChild);for(;w.firstChild;)b.appendChild(w.firstChild)}});function Ve(b,w){if(w){var M=b.firstChild;if(M&amp;&amp;M===b.lastChild&amp;&amp;M.nodeType===3){M.nodeValue=w;return}}b.textContent=w}var Qe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ze=[&quot;Webkit&quot;,&quot;ms&quot;,&quot;Moz&quot;,&quot;O&quot;];Object.keys(Qe).forEach(function(b){Ze.forEach(function(w){w=w+b.charAt(0).toUpperCase()+b.substring(1),Qe[w]=Qe[b]})});function Je(b,w,M){return w==null||typeof w==&quot;boolean&quot;||w===&quot;&quot;?&quot;&quot;:M||typeof w!=&quot;number&quot;||w===0||Qe.hasOwnProperty(b)&amp;&amp;Qe[b]?(&quot;&quot;+w).trim():w+&quot;px&quot;}function qe(b,w){b=b.style;for(var M in w)if(w.hasOwnProperty(M)){var W=M.indexOf(&quot;--&quot;)===0,G=Je(M,w[M],W);M===&quot;float&quot;&amp;&amp;(M=&quot;cssFloat&quot;),W?b.setProperty(M,G):b[M]=G}}var tt=P({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nt(b,w){if(w){if(tt[b]&amp;&amp;(w.children!=null||w.dangerouslySetInnerHTML!=null))throw Error(t(137,b));if(w.dangerouslySetInnerHTML!=null){if(w.children!=null)throw Error(t(60));if(typeof w.dangerouslySetInnerHTML!=&quot;object&quot;||!(&quot;__html&quot;in w.dangerouslySetInnerHTML))throw Error(t(61))}if(w.style!=null&amp;&amp;typeof w.style!=&quot;object&quot;)throw Error(t(62))}}function Me(b,w){if(b.indexOf(&quot;-&quot;)===-1)return typeof w.is==&quot;string&quot;;switch(b){case&quot;annotation-xml&quot;:case&quot;color-profile&quot;:case&quot;font-face&quot;:case&quot;font-face-src&quot;:case&quot;font-face-uri&quot;:case&quot;font-face-format&quot;:case&quot;font-face-name&quot;:case&quot;missing-glyph&quot;:return!1;default:return!0}}var st=null;function $t(b){return b=b.target||b.srcElement||window,b.correspondingUseElement&amp;&amp;(b=b.correspondingUseElement),b.nodeType===3?b.parentNode:b}var ft=null,zt=null,Bt=null;function Ct(b){if(b=hl(b)){if(typeof ft!=&quot;function&quot;)throw Error(t(280));var w=b.stateNode;w&amp;&amp;(w=mc(w),ft(b.stateNode,b.type,w))}}function rr(b){zt?Bt?Bt.push(b):Bt=[b]:zt=b}function Gt(){if(zt){var b=zt,w=Bt;if(Bt=zt=null,Ct(b),w)for(b=0;b&lt;w.length;b++)Ct(w[b])}}function _t(b,w){return b(w)}function Rt(){}var Jt=!1;function it(b,w,M){if(Jt)return b(w,M);Jt=!0;try{return _t(b,w,M)}finally{Jt=!1,(zt!==null||Bt!==null)&amp;&amp;(Rt(),Gt())}}function Ut(b,w){var M=b.stateNode;if(M===null)return null;var W=mc(M);if(W===null)return null;M=W[w];e:switch(w){case&quot;onClick&quot;:case&quot;onClickCapture&quot;:case&quot;onDoubleClick&quot;:case&quot;onDoubleClickCapture&quot;:case&quot;onMouseDown&quot;:case&quot;onMouseDownCapture&quot;:case&quot;onMouseMove&quot;:case&quot;onMouseMoveCapture&quot;:case&quot;onMouseUp&quot;:case&quot;onMouseUpCapture&quot;:case&quot;onMouseEnter&quot;:(W=!W.disabled)||(b=b.type,W=!(b===&quot;button&quot;||b===&quot;input&quot;||b===&quot;select&quot;||b===&quot;textarea&quot;)),b=!W;break e;default:b=!1}if(b)return null;if(M&amp;&amp;typeof M!=&quot;function&quot;)throw Error(t(231,w,typeof M));return M}var Xt=!1;if(u)try{var Mt={};Object.defineProperty(Mt,&quot;passive&quot;,{get:function(){Xt=!0}}),window.addEventListener(&quot;test&quot;,Mt,Mt),window.removeEventListener(&quot;test&quot;,Mt,Mt)}catch{Xt=!1}function be(b,w,M,W,G,ee,oe,me,ye){var Te=Array.prototype.slice.call(arguments,3);try{w.apply(M,Te)}catch(He){this.onError(He)}}var Ne=!1,Re=null,Ge=!1,vt=null,rt={onError:function(b){Ne=!0,Re=b}};function Pt(b,w,M,W,G,ee,oe,me,ye){Ne=!1,Re=null,be.apply(rt,arguments)}function jt(b,w,M,W,G,ee,oe,me,ye){if(Pt.apply(this,arguments),Ne){if(Ne){var Te=Re;Ne=!1,Re=null}else throw Error(t(198));Ge||(Ge=!0,vt=Te)}}function at(b){var w=b,M=b;if(b.alternate)for(;w.return;)w=w.return;else{b=w;do w=b,(w.flags&amp;4098)!==0&amp;&amp;(M=w.return),b=w.return;while(b)}return w.tag===3?M:null}function Ot(b){if(b.tag===13){var w=b.memoizedState;if(w===null&amp;&amp;(b=b.alternate,b!==null&amp;&amp;(w=b.memoizedState)),w!==null)return w.dehydrated}return null}function At(b){if(at(b)!==b)throw Error(t(188))}function Vt(b){var w=b.alternate;if(!w){if(w=at(b),w===null)throw Error(t(188));return w!==b?null:b}for(var M=b,W=w;;){var G=M.return;if(G===null)break;var ee=G.alternate;if(ee===null){if(W=G.return,W!==null){M=W;continue}break}if(G.child===ee.child){for(ee=G.child;ee;){if(ee===M)return At(G),b;if(ee===W)return At(G),w;ee=ee.sibling}throw Error(t(188))}if(M.return!==W.return)M=G,W=ee;else{for(var oe=!1,me=G.child;me;){if(me===M){oe=!0,M=G,W=ee;break}if(me===W){oe=!0,W=G,M=ee;break}me=me.sibling}if(!oe){for(me=ee.child;me;){if(me===M){oe=!0,M=ee,W=G;break}if(me===W){oe=!0,W=ee,M=G;break}me=me.sibling}if(!oe)throw Error(t(189))}}if(M.alternate!==W)throw Error(t(190))}if(M.tag!==3)throw Error(t(188));return M.stateNode.current===M?b:w}function dr(b){return b=Vt(b),b!==null?sr(b):null}function sr(b){if(b.tag===5||b.tag===6)return b;for(b=b.child;b!==null;){var w=sr(b);if(w!==null)return w;b=b.sibling}return null}var _r=r.unstable_scheduleCallback,fr=r.unstable_cancelCallback,Yr=r.unstable_shouldYield,he=r.unstable_requestPaint,je=r.unstable_now,Fe=r.unstable_getCurrentPriorityLevel,Ue=r.unstable_ImmediatePriority,lt=r.unstable_UserBlockingPriority,Ke=r.unstable_NormalPriority,Ye=r.unstable_LowPriority,Ht=r.unstable_IdlePriority,Dt=null,St=null;function bt(b){if(St&amp;&amp;typeof St.onCommitFiberRoot==&quot;function&quot;)try{St.onCommitFiberRoot(Dt,b,void 0,(b.current.flags&amp;128)===128)}catch{}}var Ce=Math.clz32?Math.clz32:Yt,ct=Math.log,pt=Math.LN2;function Yt(b){return b&gt;&gt;&gt;=0,b===0?32:31-(ct(b)/pt|0)|0}var hr=64,Mr=4194304;function Kt(b){switch(b&amp;-b){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return b&amp;4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return b&amp;130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return b}}function Gn(b,w){var M=b.pendingLanes;if(M===0)return 0;var W=0,G=b.suspendedLanes,ee=b.pingedLanes,oe=M&amp;268435455;if(oe!==0){var me=oe&amp;~G;me!==0?W=Kt(me):(ee&amp;=oe,ee!==0&amp;&amp;(W=Kt(ee)))}else oe=M&amp;~G,oe!==0?W=Kt(oe):ee!==0&amp;&amp;(W=Kt(ee));if(W===0)return 0;if(w!==0&amp;&amp;w!==W&amp;&amp;(w&amp;G)===0&amp;&amp;(G=W&amp;-W,ee=w&amp;-w,G&gt;=ee||G===16&amp;&amp;(ee&amp;4194240)!==0))return w;if((W&amp;4)!==0&amp;&amp;(W|=M&amp;16),w=b.entangledLanes,w!==0)for(b=b.entanglements,w&amp;=W;0&lt;w;)M=31-Ce(w),G=1&lt;&lt;M,W|=b[M],w&amp;=~G;return W}function Cr(b,w){switch(b){case 1:case 2:case 4:return w+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return w+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cs(b,w){for(var M=b.suspendedLanes,W=b.pingedLanes,G=b.expirationTimes,ee=b.pendingLanes;0&lt;ee;){var oe=31-Ce(ee),me=1&lt;&lt;oe,ye=G[oe];ye===-1?((me&amp;M)===0||(me&amp;W)!==0)&amp;&amp;(G[oe]=Cr(me,w)):ye&lt;=w&amp;&amp;(b.expiredLanes|=me),ee&amp;=~me}}function Cn(b){return b=b.pendingLanes&amp;-1073741825,b!==0?b:b&amp;1073741824?1073741824:0}function ar(){var b=hr;return hr&lt;&lt;=1,(hr&amp;4194240)===0&amp;&amp;(hr=64),b}function Wt(b){for(var w=[],M=0;31&gt;M;M++)w.push(b);return w}function Ln(b,w,M){b.pendingLanes|=w,w!==536870912&amp;&amp;(b.suspendedLanes=0,b.pingedLanes=0),b=b.eventTimes,w=31-Ce(w),b[w]=M}function Zr(b,w){var M=b.pendingLanes&amp;~w;b.pendingLanes=w,b.suspendedLanes=0,b.pingedLanes=0,b.expiredLanes&amp;=w,b.mutableReadLanes&amp;=w,b.entangledLanes&amp;=w,w=b.entanglements;var W=b.eventTimes;for(b=b.expirationTimes;0&lt;M;){var G=31-Ce(M),ee=1&lt;&lt;G;w[G]=0,W[G]=-1,b[G]=-1,M&amp;=~ee}}function Rs(b,w){var M=b.entangledLanes|=w;for(b=b.entanglements;M;){var W=31-Ce(M),G=1&lt;&lt;W;G&amp;w|b[W]&amp;w&amp;&amp;(b[W]|=w),M&amp;=~G}}var It=0;function di(b){return b&amp;=-b,1&lt;b?4&lt;b?(b&amp;268435455)!==0?16:536870912:4:1}var nn,Ci,Ds,Fi,fi,oa=!1,Yn=[],Kr=null,En=null,Zn=null,Pr=new Map,hi=new Map,Fn=[],Ff=&quot;mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit&quot;.split(&quot; &quot;);function Ei(b,w){switch(b){case&quot;focusin&quot;:case&quot;focusout&quot;:Kr=null;break;case&quot;dragenter&quot;:case&quot;dragleave&quot;:En=null;break;case&quot;mouseover&quot;:case&quot;mouseout&quot;:Zn=null;break;case&quot;pointerover&quot;:case&quot;pointerout&quot;:Pr.delete(w.pointerId);break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:hi.delete(w.pointerId)}}function Ls(b,w,M,W,G,ee){return b===null||b.nativeEvent!==ee?(b={blockedOn:w,domEventName:M,eventSystemFlags:W,nativeEvent:ee,targetContainers:[G]},w!==null&amp;&amp;(w=hl(w),w!==null&amp;&amp;Ci(w)),b):(b.eventSystemFlags|=W,w=b.targetContainers,G!==null&amp;&amp;w.indexOf(G)===-1&amp;&amp;w.push(G),b)}function _u(b,w,M,W,G){switch(w){case&quot;focusin&quot;:return Kr=Ls(Kr,b,w,M,W,G),!0;case&quot;dragenter&quot;:return En=Ls(En,b,w,M,W,G),!0;case&quot;mouseover&quot;:return Zn=Ls(Zn,b,w,M,W,G),!0;case&quot;pointerover&quot;:var ee=G.pointerId;return Pr.set(ee,Ls(Pr.get(ee)||null,b,w,M,W,G)),!0;case&quot;gotpointercapture&quot;:return ee=G.pointerId,hi.set(ee,Ls(hi.get(ee)||null,b,w,M,W,G)),!0}return!1}function ju(b){var w=Us(b.target);if(w!==null){var M=at(w);if(M!==null){if(w=M.tag,w===13){if(w=Ot(M),w!==null){b.blockedOn=w,fi(b.priority,function(){Ds(M)});return}}else if(w===3&amp;&amp;M.stateNode.current.memoizedState.isDehydrated){b.blockedOn=M.tag===3?M.stateNode.containerInfo:null;return}}}b.blockedOn=null}function to(b){if(b.blockedOn!==null)return!1;for(var w=b.targetContainers;0&lt;w.length;){var M=Zo(b.domEventName,b.eventSystemFlags,w[0],b.nativeEvent);if(M===null){M=b.nativeEvent;var W=new M.constructor(M.type,M);st=W,M.target.dispatchEvent(W),st=null}else return w=hl(M),w!==null&amp;&amp;Ci(w),b.blockedOn=M,!1;w.shift()}return!0}function Yo(b,w,M){to(b)&amp;&amp;M.delete(w)}function Bf(){oa=!1,Kr!==null&amp;&amp;to(Kr)&amp;&amp;(Kr=null),En!==null&amp;&amp;to(En)&amp;&amp;(En=null),Zn!==null&amp;&amp;to(Zn)&amp;&amp;(Zn=null),Pr.forEach(Yo),hi.forEach(Yo)}function ro(b,w){b.blockedOn===w&amp;&amp;(b.blockedOn=null,oa||(oa=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Bf)))}function mi(b){function w(G){return ro(G,b)}if(0&lt;Yn.length){ro(Yn[0],b);for(var M=1;M&lt;Yn.length;M++){var W=Yn[M];W.blockedOn===b&amp;&amp;(W.blockedOn=null)}}for(Kr!==null&amp;&amp;ro(Kr,b),En!==null&amp;&amp;ro(En,b),Zn!==null&amp;&amp;ro(Zn,b),Pr.forEach(w),hi.forEach(w),M=0;M&lt;Fn.length;M++)W=Fn[M],W.blockedOn===b&amp;&amp;(W.blockedOn=null);for(;0&lt;Fn.length&amp;&amp;(M=Fn[0],M.blockedOn===null);)ju(M),M.blockedOn===null&amp;&amp;Fn.shift()}var Bi=S.ReactCurrentBatchConfig,Zl=!0;function $f(b,w,M,W){var G=It,ee=Bi.transition;Bi.transition=null;try{It=1,Ai(b,w,M,W)}finally{It=G,Bi.transition=ee}}function Q0(b,w,M,W){var G=It,ee=Bi.transition;Bi.transition=null;try{It=4,Ai(b,w,M,W)}finally{It=G,Bi.transition=ee}}function Ai(b,w,M,W){if(Zl){var G=Zo(b,w,M,W);if(G===null)dl(b,w,W,la,M),Ei(b,W);else if(_u(G,b,w,M,W))W.stopPropagation();else if(Ei(b,W),w&amp;4&amp;&amp;-1&lt;Ff.indexOf(b)){for(;G!==null;){var ee=hl(G);if(ee!==null&amp;&amp;nn(ee),ee=Zo(b,w,M,W),ee===null&amp;&amp;dl(b,w,W,la,M),ee===G)break;G=ee}G!==null&amp;&amp;W.stopPropagation()}else dl(b,w,W,null,M)}}var la=null;function Zo(b,w,M,W){if(la=null,b=$t(W),b=Us(b),b!==null)if(w=at(b),w===null)b=null;else if(M=w.tag,M===13){if(b=Ot(w),b!==null)return b;b=null}else if(M===3){if(w.stateNode.current.memoizedState.isDehydrated)return w.tag===3?w.stateNode.containerInfo:null;b=null}else w!==b&amp;&amp;(b=null);return la=b,null}function Nu(b){switch(b){case&quot;cancel&quot;:case&quot;click&quot;:case&quot;close&quot;:case&quot;contextmenu&quot;:case&quot;copy&quot;:case&quot;cut&quot;:case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;dragend&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:case&quot;focusin&quot;:case&quot;focusout&quot;:case&quot;input&quot;:case&quot;invalid&quot;:case&quot;keydown&quot;:case&quot;keypress&quot;:case&quot;keyup&quot;:case&quot;mousedown&quot;:case&quot;mouseup&quot;:case&quot;paste&quot;:case&quot;pause&quot;:case&quot;play&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointerup&quot;:case&quot;ratechange&quot;:case&quot;reset&quot;:case&quot;resize&quot;:case&quot;seeked&quot;:case&quot;submit&quot;:case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchstart&quot;:case&quot;volumechange&quot;:case&quot;change&quot;:case&quot;selectionchange&quot;:case&quot;textInput&quot;:case&quot;compositionstart&quot;:case&quot;compositionend&quot;:case&quot;compositionupdate&quot;:case&quot;beforeblur&quot;:case&quot;afterblur&quot;:case&quot;beforeinput&quot;:case&quot;blur&quot;:case&quot;fullscreenchange&quot;:case&quot;focus&quot;:case&quot;hashchange&quot;:case&quot;popstate&quot;:case&quot;select&quot;:case&quot;selectstart&quot;:return 1;case&quot;drag&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;mousemove&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;scroll&quot;:case&quot;toggle&quot;:case&quot;touchmove&quot;:case&quot;wheel&quot;:case&quot;mouseenter&quot;:case&quot;mouseleave&quot;:case&quot;pointerenter&quot;:case&quot;pointerleave&quot;:return 4;case&quot;message&quot;:switch(Fe()){case Ue:return 1;case lt:return 4;case Ke:case Ye:return 16;case Ht:return 536870912;default:return 16}default:return 16}}var us=null,Ql=null,Qo=null;function zf(){if(Qo)return Qo;var b,w=Ql,M=w.length,W,G=&quot;value&quot;in us?us.value:us.textContent,ee=G.length;for(b=0;b&lt;M&amp;&amp;w[b]===G[b];b++);var oe=M-b;for(W=1;W&lt;=oe&amp;&amp;w[M-W]===G[ee-W];W++);return Qo=G.slice(b,1&lt;W?1-W:void 0)}function Jo(b){var w=b.keyCode;return&quot;charCode&quot;in b?(b=b.charCode,b===0&amp;&amp;w===13&amp;&amp;(b=13)):b=w,b===10&amp;&amp;(b=13),32&lt;=b||b===13?b:0}function Jl(){return!0}function el(){return!1}function Qn(b){function w(M,W,G,ee,oe){this._reactName=M,this._targetInst=G,this.type=W,this.nativeEvent=ee,this.target=oe,this.currentTarget=null;for(var me in b)b.hasOwnProperty(me)&amp;&amp;(M=b[me],this[me]=M?M(ee):ee[me]);return this.isDefaultPrevented=(ee.defaultPrevented!=null?ee.defaultPrevented:ee.returnValue===!1)?Jl:el,this.isPropagationStopped=el,this}return P(w.prototype,{preventDefault:function(){this.defaultPrevented=!0;var M=this.nativeEvent;M&amp;&amp;(M.preventDefault?M.preventDefault():typeof M.returnValue!=&quot;unknown&quot;&amp;&amp;(M.returnValue=!1),this.isDefaultPrevented=Jl)},stopPropagation:function(){var M=this.nativeEvent;M&amp;&amp;(M.stopPropagation?M.stopPropagation():typeof M.cancelBubble!=&quot;unknown&quot;&amp;&amp;(M.cancelBubble=!0),this.isPropagationStopped=Jl)},persist:function(){},isPersistent:Jl}),w}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(b){return b.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ua=Qn(ca),ds=P({},ca,{view:0,detail:0}),Uf=Qn(ds),ec,tc,no,tl=P({},ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eu,button:0,buttons:0,relatedTarget:function(b){return b.relatedTarget===void 0?b.fromElement===b.srcElement?b.toElement:b.fromElement:b.relatedTarget},movementX:function(b){return&quot;movementX&quot;in b?b.movementX:(b!==no&amp;&amp;(no&amp;&amp;b.type===&quot;mousemove&quot;?(ec=b.screenX-no.screenX,tc=b.screenY-no.screenY):tc=ec=0,no=b),ec)},movementY:function(b){return&quot;movementY&quot;in b?b.movementY:tc}}),ku=Qn(tl),Vf=P({},tl,{dataTransfer:0}),qf=Qn(Vf),fs=P({},ds,{relatedTarget:0}),rc=Qn(fs),Wf=P({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),rl=Qn(Wf),J0=P({},ca,{clipboardData:function(b){return&quot;clipboardData&quot;in b?b.clipboardData:window.clipboardData}}),nc=Qn(J0),Su=P({},ca,{data:0}),Jn=Qn(Su),eg={Esc:&quot;Escape&quot;,Spacebar:&quot; &quot;,Left:&quot;ArrowLeft&quot;,Up:&quot;ArrowUp&quot;,Right:&quot;ArrowRight&quot;,Down:&quot;ArrowDown&quot;,Del:&quot;Delete&quot;,Win:&quot;OS&quot;,Menu:&quot;ContextMenu&quot;,Apps:&quot;ContextMenu&quot;,Scroll:&quot;ScrollLock&quot;,MozPrintableKey:&quot;Unidentified&quot;},Hf={8:&quot;Backspace&quot;,9:&quot;Tab&quot;,12:&quot;Clear&quot;,13:&quot;Enter&quot;,16:&quot;Shift&quot;,17:&quot;Control&quot;,18:&quot;Alt&quot;,19:&quot;Pause&quot;,20:&quot;CapsLock&quot;,27:&quot;Escape&quot;,32:&quot; &quot;,33:&quot;PageUp&quot;,34:&quot;PageDown&quot;,35:&quot;End&quot;,36:&quot;Home&quot;,37:&quot;ArrowLeft&quot;,38:&quot;ArrowUp&quot;,39:&quot;ArrowRight&quot;,40:&quot;ArrowDown&quot;,45:&quot;Insert&quot;,46:&quot;Delete&quot;,112:&quot;F1&quot;,113:&quot;F2&quot;,114:&quot;F3&quot;,115:&quot;F4&quot;,116:&quot;F5&quot;,117:&quot;F6&quot;,118:&quot;F7&quot;,119:&quot;F8&quot;,120:&quot;F9&quot;,121:&quot;F10&quot;,122:&quot;F11&quot;,123:&quot;F12&quot;,144:&quot;NumLock&quot;,145:&quot;ScrollLock&quot;,224:&quot;Meta&quot;},io={Alt:&quot;altKey&quot;,Control:&quot;ctrlKey&quot;,Meta:&quot;metaKey&quot;,Shift:&quot;shiftKey&quot;};function Cu(b){var w=this.nativeEvent;return w.getModifierState?w.getModifierState(b):(b=io[b])?!!w[b]:!1}function Eu(){return Cu}var Kf=P({},ds,{key:function(b){if(b.key){var w=eg[b.key]||b.key;if(w!==&quot;Unidentified&quot;)return w}return b.type===&quot;keypress&quot;?(b=Jo(b),b===13?&quot;Enter&quot;:String.fromCharCode(b)):b.type===&quot;keydown&quot;||b.type===&quot;keyup&quot;?Hf[b.keyCode]||&quot;Unidentified&quot;:&quot;&quot;},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eu,charCode:function(b){return b.type===&quot;keypress&quot;?Jo(b):0},keyCode:function(b){return b.type===&quot;keydown&quot;||b.type===&quot;keyup&quot;?b.keyCode:0},which:function(b){return b.type===&quot;keypress&quot;?Jo(b):b.type===&quot;keydown&quot;||b.type===&quot;keyup&quot;?b.keyCode:0}}),tg=Qn(Kf),da=P({},tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xf=Qn(da),rg=P({},ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eu}),ng=Qn(rg),ig=P({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gf=Qn(ig),sg=P({},tl,{deltaX:function(b){return&quot;deltaX&quot;in b?b.deltaX:&quot;wheelDeltaX&quot;in b?-b.wheelDeltaX:0},deltaY:function(b){return&quot;deltaY&quot;in b?b.deltaY:&quot;wheelDeltaY&quot;in b?-b.wheelDeltaY:&quot;wheelDelta&quot;in b?-b.wheelDelta:0},deltaZ:0,deltaMode:0}),Yf=Qn(sg),Zf=[9,13,27,32],nl=u&amp;&amp;&quot;CompositionEvent&quot;in window,il=null;u&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;(il=document.documentMode);var ic=u&amp;&amp;&quot;TextEvent&quot;in window&amp;&amp;!il,Qf=u&amp;&amp;(!nl||il&amp;&amp;8&lt;il&amp;&amp;11&gt;=il),Au=&quot; &quot;,Mu=!1;function sc(b,w){switch(b){case&quot;keyup&quot;:return Zf.indexOf(w.keyCode)!==-1;case&quot;keydown&quot;:return w.keyCode!==229;case&quot;keypress&quot;:case&quot;mousedown&quot;:case&quot;focusout&quot;:return!0;default:return!1}}function Pu(b){return b=b.detail,typeof b==&quot;object&quot;&amp;&amp;&quot;data&quot;in b?b.data:null}var so=!1;function ag(b,w){switch(b){case&quot;compositionend&quot;:return Pu(w);case&quot;keypress&quot;:return w.which!==32?null:(Mu=!0,Au);case&quot;textInput&quot;:return b=w.data,b===Au&amp;&amp;Mu?null:b;default:return null}}function og(b,w){if(so)return b===&quot;compositionend&quot;||!nl&amp;&amp;sc(b,w)?(b=zf(),Qo=Ql=us=null,so=!1,b):null;switch(b){case&quot;paste&quot;:return null;case&quot;keypress&quot;:if(!(w.ctrlKey||w.altKey||w.metaKey)||w.ctrlKey&amp;&amp;w.altKey){if(w.char&amp;&amp;1&lt;w.char.length)return w.char;if(w.which)return String.fromCharCode(w.which)}return null;case&quot;compositionend&quot;:return Qf&amp;&amp;w.locale!==&quot;ko&quot;?null:w.data;default:return null}}var Jf={color:!0,date:!0,datetime:!0,&quot;datetime-local&quot;:!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function eh(b){var w=b&amp;&amp;b.nodeName&amp;&amp;b.nodeName.toLowerCase();return w===&quot;input&quot;?!!Jf[b.type]:w===&quot;textarea&quot;}function Fs(b,w,M,W){rr(W),w=$s(w,&quot;onChange&quot;),0&lt;w.length&amp;&amp;(M=new ua(&quot;onChange&quot;,&quot;change&quot;,null,M,W),b.push({event:M,listeners:w}))}var $i=null,fa=null;function lg(b){qu(b,0)}function sl(b){var w=ho(b);if(Q(w))return b}function cg(b,w){if(b===&quot;change&quot;)return w}var ha=!1;if(u){var ao;if(u){var Ou=&quot;oninput&quot;in document;if(!Ou){var th=document.createElement(&quot;div&quot;);th.setAttribute(&quot;oninput&quot;,&quot;return;&quot;),Ou=typeof th.oninput==&quot;function&quot;}ao=Ou}else ao=!1;ha=ao&amp;&amp;(!document.documentMode||9&lt;document.documentMode)}function rh(){$i&amp;&amp;($i.detachEvent(&quot;onpropertychange&quot;,oo),fa=$i=null)}function oo(b){if(b.propertyName===&quot;value&quot;&amp;&amp;sl(fa)){var w=[];Fs(w,fa,b,$t(b)),it(lg,w)}}function ug(b,w,M){b===&quot;focusin&quot;?(rh(),$i=w,fa=M,$i.attachEvent(&quot;onpropertychange&quot;,oo)):b===&quot;focusout&quot;&amp;&amp;rh()}function al(b){if(b===&quot;selectionchange&quot;||b===&quot;keyup&quot;||b===&quot;keydown&quot;)return sl(fa)}function dg(b,w){if(b===&quot;click&quot;)return sl(w)}function nh(b,w){if(b===&quot;input&quot;||b===&quot;change&quot;)return sl(w)}function ih(b,w){return b===w&amp;&amp;(b!==0||1/b===1/w)||b!==b&amp;&amp;w!==w}var pi=typeof Object.is==&quot;function&quot;?Object.is:ih;function lo(b,w){if(pi(b,w))return!0;if(typeof b!=&quot;object&quot;||b===null||typeof w!=&quot;object&quot;||w===null)return!1;var M=Object.keys(b),W=Object.keys(w);if(M.length!==W.length)return!1;for(W=0;W&lt;M.length;W++){var G=M[W];if(!c.call(w,G)||!pi(b[G],w[G]))return!1}return!0}function Tu(b){for(;b&amp;&amp;b.firstChild;)b=b.firstChild;return b}function Iu(b,w){var M=Tu(b);b=0;for(var W;M;){if(M.nodeType===3){if(W=b+M.textContent.length,b&lt;=w&amp;&amp;W&gt;=w)return{node:M,offset:w-b};b=W}e:{for(;M;){if(M.nextSibling){M=M.nextSibling;break e}M=M.parentNode}M=void 0}M=Tu(M)}}function ac(b,w){return b&amp;&amp;w?b===w?!0:b&amp;&amp;b.nodeType===3?!1:w&amp;&amp;w.nodeType===3?ac(b,w.parentNode):&quot;contains&quot;in b?b.contains(w):b.compareDocumentPosition?!!(b.compareDocumentPosition(w)&amp;16):!1:!1}function Ru(){for(var b=window,w=te();w instanceof b.HTMLIFrameElement;){try{var M=typeof w.contentWindow.location.href==&quot;string&quot;}catch{M=!1}if(M)b=w.contentWindow;else break;w=te(b.document)}return w}function Du(b){var w=b&amp;&amp;b.nodeName&amp;&amp;b.nodeName.toLowerCase();return w&amp;&amp;(w===&quot;input&quot;&amp;&amp;(b.type===&quot;text&quot;||b.type===&quot;search&quot;||b.type===&quot;tel&quot;||b.type===&quot;url&quot;||b.type===&quot;password&quot;)||w===&quot;textarea&quot;||b.contentEditable===&quot;true&quot;)}function fg(b){var w=Ru(),M=b.focusedElem,W=b.selectionRange;if(w!==M&amp;&amp;M&amp;&amp;M.ownerDocument&amp;&amp;ac(M.ownerDocument.documentElement,M)){if(W!==null&amp;&amp;Du(M)){if(w=W.start,b=W.end,b===void 0&amp;&amp;(b=w),&quot;selectionStart&quot;in M)M.selectionStart=w,M.selectionEnd=Math.min(b,M.value.length);else if(b=(w=M.ownerDocument||document)&amp;&amp;w.defaultView||window,b.getSelection){b=b.getSelection();var G=M.textContent.length,ee=Math.min(W.start,G);W=W.end===void 0?ee:Math.min(W.end,G),!b.extend&amp;&amp;ee&gt;W&amp;&amp;(G=W,W=ee,ee=G),G=Iu(M,ee);var oe=Iu(M,W);G&amp;&amp;oe&amp;&amp;(b.rangeCount!==1||b.anchorNode!==G.node||b.anchorOffset!==G.offset||b.focusNode!==oe.node||b.focusOffset!==oe.offset)&amp;&amp;(w=w.createRange(),w.setStart(G.node,G.offset),b.removeAllRanges(),ee&gt;W?(b.addRange(w),b.extend(oe.node,oe.offset)):(w.setEnd(oe.node,oe.offset),b.addRange(w)))}}for(w=[],b=M;b=b.parentNode;)b.nodeType===1&amp;&amp;w.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof M.focus==&quot;function&quot;&amp;&amp;M.focus(),M=0;M&lt;w.length;M++)b=w[M],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}var hg=u&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;11&gt;=document.documentMode,ma=null,Lu=null,ei=null,ol=!1;function sh(b,w,M){var W=M.window===M?M.document:M.nodeType===9?M:M.ownerDocument;ol||ma==null||ma!==te(W)||(W=ma,&quot;selectionStart&quot;in W&amp;&amp;Du(W)?W={start:W.selectionStart,end:W.selectionEnd}:(W=(W.ownerDocument&amp;&amp;W.ownerDocument.defaultView||window).getSelection(),W={anchorNode:W.anchorNode,anchorOffset:W.anchorOffset,focusNode:W.focusNode,focusOffset:W.focusOffset}),ei&amp;&amp;lo(ei,W)||(ei=W,W=$s(Lu,&quot;onSelect&quot;),0&lt;W.length&amp;&amp;(w=new ua(&quot;onSelect&quot;,&quot;select&quot;,null,w,M),b.push({event:w,listeners:W}),w.target=ma)))}function ll(b,w){var M={};return M[b.toLowerCase()]=w.toLowerCase(),M[&quot;Webkit&quot;+b]=&quot;webkit&quot;+w,M[&quot;Moz&quot;+b]=&quot;moz&quot;+w,M}var co={animationend:ll(&quot;Animation&quot;,&quot;AnimationEnd&quot;),animationiteration:ll(&quot;Animation&quot;,&quot;AnimationIteration&quot;),animationstart:ll(&quot;Animation&quot;,&quot;AnimationStart&quot;),transitionend:ll(&quot;Transition&quot;,&quot;TransitionEnd&quot;)},oc={},Fu={};u&amp;&amp;(Fu=document.createElement(&quot;div&quot;).style,&quot;AnimationEvent&quot;in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),&quot;TransitionEvent&quot;in window||delete co.transitionend.transition);function cl(b){if(oc[b])return oc[b];if(!co[b])return b;var w=co[b],M;for(M in w)if(w.hasOwnProperty(M)&amp;&amp;M in Fu)return oc[b]=w[M];return b}var Bu=cl(&quot;animationend&quot;),$u=cl(&quot;animationiteration&quot;),zu=cl(&quot;animationstart&quot;),lc=cl(&quot;transitionend&quot;),Uu=new Map,ah=&quot;abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel&quot;.split(&quot; &quot;);function Bs(b,w){Uu.set(b,w),s(w,[b])}for(var Vu=0;Vu&lt;ah.length;Vu++){var cc=ah[Vu],mg=cc.toLowerCase(),pa=cc[0].toUpperCase()+cc.slice(1);Bs(mg,&quot;on&quot;+pa)}Bs(Bu,&quot;onAnimationEnd&quot;),Bs($u,&quot;onAnimationIteration&quot;),Bs(zu,&quot;onAnimationStart&quot;),Bs(&quot;dblclick&quot;,&quot;onDoubleClick&quot;),Bs(&quot;focusin&quot;,&quot;onFocus&quot;),Bs(&quot;focusout&quot;,&quot;onBlur&quot;),Bs(lc,&quot;onTransitionEnd&quot;),l(&quot;onMouseEnter&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]),l(&quot;onMouseLeave&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]),l(&quot;onPointerEnter&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]),l(&quot;onPointerLeave&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]),s(&quot;onChange&quot;,&quot;change click focusin focusout input keydown keyup selectionchange&quot;.split(&quot; &quot;)),s(&quot;onSelect&quot;,&quot;focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange&quot;.split(&quot; &quot;)),s(&quot;onBeforeInput&quot;,[&quot;compositionend&quot;,&quot;keypress&quot;,&quot;textInput&quot;,&quot;paste&quot;]),s(&quot;onCompositionEnd&quot;,&quot;compositionend focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;)),s(&quot;onCompositionStart&quot;,&quot;compositionstart focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;)),s(&quot;onCompositionUpdate&quot;,&quot;compositionupdate focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));var ul=&quot;abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting&quot;.split(&quot; &quot;),pg=new Set(&quot;cancel close invalid load scroll toggle&quot;.split(&quot; &quot;).concat(ul));function oh(b,w,M){var W=b.type||&quot;unknown-event&quot;;b.currentTarget=M,jt(W,w,void 0,b),b.currentTarget=null}function qu(b,w){w=(w&amp;4)!==0;for(var M=0;M&lt;b.length;M++){var W=b[M],G=W.event;W=W.listeners;e:{var ee=void 0;if(w)for(var oe=W.length-1;0&lt;=oe;oe--){var me=W[oe],ye=me.instance,Te=me.currentTarget;if(me=me.listener,ye!==ee&amp;&amp;G.isPropagationStopped())break e;oh(G,me,Te),ee=ye}else for(oe=0;oe&lt;W.length;oe++){if(me=W[oe],ye=me.instance,Te=me.currentTarget,me=me.listener,ye!==ee&amp;&amp;G.isPropagationStopped())break e;oh(G,me,Te),ee=ye}}}if(Ge)throw b=vt,Ge=!1,vt=null,b}function jr(b,w){var M=w[Zu];M===void 0&amp;&amp;(M=w[Zu]=new Set);var W=b+&quot;__bubble&quot;;M.has(W)||(Wu(w,b,2,!1),M.add(W))}function uc(b,w,M){var W=0;w&amp;&amp;(W|=4),Wu(M,b,W,w)}var pn=&quot;_reactListening&quot;+Math.random().toString(36).slice(2);function zi(b){if(!b[pn]){b[pn]=!0,n.forEach(function(M){M!==&quot;selectionchange&quot;&amp;&amp;(pg.has(M)||uc(M,!1,b),uc(M,!0,b))});var w=b.nodeType===9?b:b.ownerDocument;w===null||w[pn]||(w[pn]=!0,uc(&quot;selectionchange&quot;,!1,w))}}function Wu(b,w,M,W){switch(Nu(w)){case 1:var G=$f;break;case 4:G=Q0;break;default:G=Ai}M=G.bind(null,w,M,b),G=void 0,!Xt||w!==&quot;touchstart&quot;&amp;&amp;w!==&quot;touchmove&quot;&amp;&amp;w!==&quot;wheel&quot;||(G=!0),W?G!==void 0?b.addEventListener(w,M,{capture:!0,passive:G}):b.addEventListener(w,M,!0):G!==void 0?b.addEventListener(w,M,{passive:G}):b.addEventListener(w,M,!1)}function dl(b,w,M,W,G){var ee=W;if((w&amp;1)===0&amp;&amp;(w&amp;2)===0&amp;&amp;W!==null)e:for(;;){if(W===null)return;var oe=W.tag;if(oe===3||oe===4){var me=W.stateNode.containerInfo;if(me===G||me.nodeType===8&amp;&amp;me.parentNode===G)break;if(oe===4)for(oe=W.return;oe!==null;){var ye=oe.tag;if((ye===3||ye===4)&amp;&amp;(ye=oe.stateNode.containerInfo,ye===G||ye.nodeType===8&amp;&amp;ye.parentNode===G))return;oe=oe.return}for(;me!==null;){if(oe=Us(me),oe===null)return;if(ye=oe.tag,ye===5||ye===6){W=ee=oe;continue e}me=me.parentNode}}W=W.return}it(function(){var Te=ee,He=$t(M),Xe=[];e:{var We=Uu.get(b);if(We!==void 0){var ot=ua,gt=b;switch(b){case&quot;keypress&quot;:if(Jo(M)===0)break e;case&quot;keydown&quot;:case&quot;keyup&quot;:ot=tg;break;case&quot;focusin&quot;:gt=&quot;focus&quot;,ot=rc;break;case&quot;focusout&quot;:gt=&quot;blur&quot;,ot=rc;break;case&quot;beforeblur&quot;:case&quot;afterblur&quot;:ot=rc;break;case&quot;click&quot;:if(M.button===2)break e;case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;mousedown&quot;:case&quot;mousemove&quot;:case&quot;mouseup&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;contextmenu&quot;:ot=ku;break;case&quot;drag&quot;:case&quot;dragend&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:ot=qf;break;case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchmove&quot;:case&quot;touchstart&quot;:ot=ng;break;case Bu:case $u:case zu:ot=rl;break;case lc:ot=Gf;break;case&quot;scroll&quot;:ot=Uf;break;case&quot;wheel&quot;:ot=Yf;break;case&quot;copy&quot;:case&quot;cut&quot;:case&quot;paste&quot;:ot=nc;break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;pointerup&quot;:ot=Xf}var yt=(w&amp;4)!==0,Xr=!yt&amp;&amp;b===&quot;scroll&quot;,Ee=yt?We!==null?We+&quot;Capture&quot;:null:We;yt=[];for(var _e=Te,Pe;_e!==null;){Pe=_e;var et=Pe.stateNode;if(Pe.tag===5&amp;&amp;et!==null&amp;&amp;(Pe=et,Ee!==null&amp;&amp;(et=Ut(_e,Ee),et!=null&amp;&amp;yt.push(ga(_e,et,Pe)))),Xr)break;_e=_e.return}0&lt;yt.length&amp;&amp;(We=new ot(We,gt,null,M,He),Xe.push({event:We,listeners:yt}))}}if((w&amp;7)===0){e:{if(We=b===&quot;mouseover&quot;||b===&quot;pointerover&quot;,ot=b===&quot;mouseout&quot;||b===&quot;pointerout&quot;,We&amp;&amp;M!==st&amp;&amp;(gt=M.relatedTarget||M.fromElement)&amp;&amp;(Us(gt)||gt[hs]))break e;if((ot||We)&amp;&amp;(We=He.window===He?He:(We=He.ownerDocument)?We.defaultView||We.parentWindow:window,ot?(gt=M.relatedTarget||M.toElement,ot=Te,gt=gt?Us(gt):null,gt!==null&amp;&amp;(Xr=at(gt),gt!==Xr||gt.tag!==5&amp;&amp;gt.tag!==6)&amp;&amp;(gt=null)):(ot=null,gt=Te),ot!==gt)){if(yt=ku,et=&quot;onMouseLeave&quot;,Ee=&quot;onMouseEnter&quot;,_e=&quot;mouse&quot;,(b===&quot;pointerout&quot;||b===&quot;pointerover&quot;)&amp;&amp;(yt=Xf,et=&quot;onPointerLeave&quot;,Ee=&quot;onPointerEnter&quot;,_e=&quot;pointer&quot;),Xr=ot==null?We:ho(ot),Pe=gt==null?We:ho(gt),We=new yt(et,_e+&quot;leave&quot;,ot,M,He),We.target=Xr,We.relatedTarget=Pe,et=null,Us(He)===Te&amp;&amp;(yt=new yt(Ee,_e+&quot;enter&quot;,gt,M,He),yt.target=Pe,yt.relatedTarget=Xr,et=yt),Xr=et,ot&amp;&amp;gt)t:{for(yt=ot,Ee=gt,_e=0,Pe=yt;Pe;Pe=xa(Pe))_e++;for(Pe=0,et=Ee;et;et=xa(et))Pe++;for(;0&lt;_e-Pe;)yt=xa(yt),_e--;for(;0&lt;Pe-_e;)Ee=xa(Ee),Pe--;for(;_e--;){if(yt===Ee||Ee!==null&amp;&amp;yt===Ee.alternate)break t;yt=xa(yt),Ee=xa(Ee)}yt=null}else yt=null;ot!==null&amp;&amp;lh(Xe,We,ot,yt,!1),gt!==null&amp;&amp;Xr!==null&amp;&amp;lh(Xe,Xr,gt,yt,!0)}}e:{if(We=Te?ho(Te):window,ot=We.nodeName&amp;&amp;We.nodeName.toLowerCase(),ot===&quot;select&quot;||ot===&quot;input&quot;&amp;&amp;We.type===&quot;file&quot;)var Nt=cg;else if(eh(We))if(ha)Nt=nh;else{Nt=al;var Lt=ug}else(ot=We.nodeName)&amp;&amp;ot.toLowerCase()===&quot;input&quot;&amp;&amp;(We.type===&quot;checkbox&quot;||We.type===&quot;radio&quot;)&amp;&amp;(Nt=dg);if(Nt&amp;&amp;(Nt=Nt(b,Te))){Fs(Xe,Nt,M,He);break e}Lt&amp;&amp;Lt(b,We,Te),b===&quot;focusout&quot;&amp;&amp;(Lt=We._wrapperState)&amp;&amp;Lt.controlled&amp;&amp;We.type===&quot;number&quot;&amp;&amp;le(We,&quot;number&quot;,We.value)}switch(Lt=Te?ho(Te):window,b){case&quot;focusin&quot;:(eh(Lt)||Lt.contentEditable===&quot;true&quot;)&amp;&amp;(ma=Lt,Lu=Te,ei=null);break;case&quot;focusout&quot;:ei=Lu=ma=null;break;case&quot;mousedown&quot;:ol=!0;break;case&quot;contextmenu&quot;:case&quot;mouseup&quot;:case&quot;dragend&quot;:ol=!1,sh(Xe,M,He);break;case&quot;selectionchange&quot;:if(hg)break;case&quot;keydown&quot;:case&quot;keyup&quot;:sh(Xe,M,He)}var Ft;if(nl)e:{switch(b){case&quot;compositionstart&quot;:var qt=&quot;onCompositionStart&quot;;break e;case&quot;compositionend&quot;:qt=&quot;onCompositionEnd&quot;;break e;case&quot;compositionupdate&quot;:qt=&quot;onCompositionUpdate&quot;;break e}qt=void 0}else so?sc(b,M)&amp;&amp;(qt=&quot;onCompositionEnd&quot;):b===&quot;keydown&quot;&amp;&amp;M.keyCode===229&amp;&amp;(qt=&quot;onCompositionStart&quot;);qt&amp;&amp;(Qf&amp;&amp;M.locale!==&quot;ko&quot;&amp;&amp;(so||qt!==&quot;onCompositionStart&quot;?qt===&quot;onCompositionEnd&quot;&amp;&amp;so&amp;&amp;(Ft=zf()):(us=He,Ql=&quot;value&quot;in us?us.value:us.textContent,so=!0)),Lt=$s(Te,qt),0&lt;Lt.length&amp;&amp;(qt=new Jn(qt,b,null,M,He),Xe.push({event:qt,listeners:Lt}),Ft?qt.data=Ft:(Ft=Pu(M),Ft!==null&amp;&amp;(qt.data=Ft)))),(Ft=ic?ag(b,M):og(b,M))&amp;&amp;(Te=$s(Te,&quot;onBeforeInput&quot;),0&lt;Te.length&amp;&amp;(He=new Jn(&quot;onBeforeInput&quot;,&quot;beforeinput&quot;,null,M,He),Xe.push({event:He,listeners:Te}),He.data=Ft))}qu(Xe,w)})}function ga(b,w,M){return{instance:b,listener:w,currentTarget:M}}function $s(b,w){for(var M=w+&quot;Capture&quot;,W=[];b!==null;){var G=b,ee=G.stateNode;G.tag===5&amp;&amp;ee!==null&amp;&amp;(G=ee,ee=Ut(b,M),ee!=null&amp;&amp;W.unshift(ga(b,ee,G)),ee=Ut(b,w),ee!=null&amp;&amp;W.push(ga(b,ee,G))),b=b.return}return W}function xa(b){if(b===null)return null;do b=b.return;while(b&amp;&amp;b.tag!==5);return b||null}function lh(b,w,M,W,G){for(var ee=w._reactName,oe=[];M!==null&amp;&amp;M!==W;){var me=M,ye=me.alternate,Te=me.stateNode;if(ye!==null&amp;&amp;ye===W)break;me.tag===5&amp;&amp;Te!==null&amp;&amp;(me=Te,G?(ye=Ut(M,ee),ye!=null&amp;&amp;oe.unshift(ga(M,ye,me))):G||(ye=Ut(M,ee),ye!=null&amp;&amp;oe.push(ga(M,ye,me)))),M=M.return}oe.length!==0&amp;&amp;b.push({event:w,listeners:oe})}var gg=/\r\n?/g,xg=/\u0000|\uFFFD/g;function ch(b){return(typeof b==&quot;string&quot;?b:&quot;&quot;+b).replace(gg,`
`).replace(xg,&quot;&quot;)}function dc(b,w,M){if(w=ch(w),ch(b)!==w&amp;&amp;M)throw Error(t(425))}function fc(){}var Hu=null,Ku=null;function uo(b,w){return b===&quot;textarea&quot;||b===&quot;noscript&quot;||typeof w.children==&quot;string&quot;||typeof w.children==&quot;number&quot;||typeof w.dangerouslySetInnerHTML==&quot;object&quot;&amp;&amp;w.dangerouslySetInnerHTML!==null&amp;&amp;w.dangerouslySetInnerHTML.__html!=null}var Xu=typeof setTimeout==&quot;function&quot;?setTimeout:void 0,bg=typeof clearTimeout==&quot;function&quot;?clearTimeout:void 0,hc=typeof Promise==&quot;function&quot;?Promise:void 0,yg=typeof queueMicrotask==&quot;function&quot;?queueMicrotask:typeof hc&lt;&quot;u&quot;?function(b){return hc.resolve(null).then(b).catch(vg)}:Xu;function vg(b){setTimeout(function(){throw b})}function Gu(b,w){var M=w,W=0;do{var G=M.nextSibling;if(b.removeChild(M),G&amp;&amp;G.nodeType===8)if(M=G.data,M===&quot;/$&quot;){if(W===0){b.removeChild(G),mi(w);return}W--}else M!==&quot;$&quot;&amp;&amp;M!==&quot;$?&quot;&amp;&amp;M!==&quot;$!&quot;||W++;M=G}while(M);mi(w)}function zs(b){for(;b!=null;b=b.nextSibling){var w=b.nodeType;if(w===1||w===3)break;if(w===8){if(w=b.data,w===&quot;$&quot;||w===&quot;$!&quot;||w===&quot;$?&quot;)break;if(w===&quot;/$&quot;)return null}}return b}function Yu(b){b=b.previousSibling;for(var w=0;b;){if(b.nodeType===8){var M=b.data;if(M===&quot;$&quot;||M===&quot;$!&quot;||M===&quot;$?&quot;){if(w===0)return b;w--}else M===&quot;/$&quot;&amp;&amp;w++}b=b.previousSibling}return null}var fo=Math.random().toString(36).slice(2),Ui=&quot;__reactFiber$&quot;+fo,fl=&quot;__reactProps$&quot;+fo,hs=&quot;__reactContainer$&quot;+fo,Zu=&quot;__reactEvents$&quot;+fo,wg=&quot;__reactListeners$&quot;+fo,_g=&quot;__reactHandles$&quot;+fo;function Us(b){var w=b[Ui];if(w)return w;for(var M=b.parentNode;M;){if(w=M[hs]||M[Ui]){if(M=w.alternate,w.child!==null||M!==null&amp;&amp;M.child!==null)for(b=Yu(b);b!==null;){if(M=b[Ui])return M;b=Yu(b)}return w}b=M,M=b.parentNode}return null}function hl(b){return b=b[Ui]||b[hs],!b||b.tag!==5&amp;&amp;b.tag!==6&amp;&amp;b.tag!==13&amp;&amp;b.tag!==3?null:b}function ho(b){if(b.tag===5||b.tag===6)return b.stateNode;throw Error(t(33))}function mc(b){return b[fl]||null}var Qu=[],mo=-1;function Vs(b){return{current:b}}function Nr(b){0&gt;mo||(b.current=Qu[mo],Qu[mo]=null,mo--)}function yr(b,w){mo++,Qu[mo]=b.current,b.current=w}var qs={},gn=Vs(qs),Bn=Vs(!1),ba=qs;function po(b,w){var M=b.type.contextTypes;if(!M)return qs;var W=b.stateNode;if(W&amp;&amp;W.__reactInternalMemoizedUnmaskedChildContext===w)return W.__reactInternalMemoizedMaskedChildContext;var G={},ee;for(ee in M)G[ee]=w[ee];return W&amp;&amp;(b=b.stateNode,b.__reactInternalMemoizedUnmaskedChildContext=w,b.__reactInternalMemoizedMaskedChildContext=G),G}function $n(b){return b=b.childContextTypes,b!=null}function pc(){Nr(Bn),Nr(gn)}function uh(b,w,M){if(gn.current!==qs)throw Error(t(168));yr(gn,w),yr(Bn,M)}function dh(b,w,M){var W=b.stateNode;if(w=w.childContextTypes,typeof W.getChildContext!=&quot;function&quot;)return M;W=W.getChildContext();for(var G in W)if(!(G in w))throw Error(t(108,J(b)||&quot;Unknown&quot;,G));return P({},M,W)}function gc(b){return b=(b=b.stateNode)&amp;&amp;b.__reactInternalMemoizedMergedChildContext||qs,ba=gn.current,yr(gn,b),yr(Bn,Bn.current),!0}function fh(b,w,M){var W=b.stateNode;if(!W)throw Error(t(169));M?(b=dh(b,w,ba),W.__reactInternalMemoizedMergedChildContext=b,Nr(Bn),Nr(gn),yr(gn,b)):Nr(Bn),yr(Bn,M)}var ms=null,go=!1,xc=!1;function bc(b){ms===null?ms=[b]:ms.push(b)}function hh(b){go=!0,bc(b)}function Ws(){if(!xc&amp;&amp;ms!==null){xc=!0;var b=0,w=It;try{var M=ms;for(It=1;b&lt;M.length;b++){var W=M[b];do W=W(!0);while(W!==null)}ms=null,go=!1}catch(G){throw ms!==null&amp;&amp;(ms=ms.slice(b+1)),_r(Ue,Ws),G}finally{It=w,xc=!1}}return null}var xo=[],bo=0,yc=null,ae=0,ve=[],$e=0,Be=null,nr=1,Zt=&quot;&quot;;function An(b,w){xo[bo++]=ae,xo[bo++]=yc,yc=b,ae=w}function yo(b,w,M){ve[$e++]=nr,ve[$e++]=Zt,ve[$e++]=Be,Be=b;var W=nr;b=Zt;var G=32-Ce(W)-1;W&amp;=~(1&lt;&lt;G),M+=1;var ee=32-Ce(w)+G;if(30&lt;ee){var oe=G-G%5;ee=(W&amp;(1&lt;&lt;oe)-1).toString(32),W&gt;&gt;=oe,G-=oe,nr=1&lt;&lt;32-Ce(w)+G|M&lt;&lt;G|W,Zt=ee+b}else nr=1&lt;&lt;ee|M&lt;&lt;G|W,Zt=b}function jg(b){b.return!==null&amp;&amp;(An(b,1),yo(b,1,0))}function Ng(b){for(;b===yc;)yc=xo[--bo],xo[bo]=null,ae=xo[--bo],xo[bo]=null;for(;b===Be;)Be=ve[--$e],ve[$e]=null,Zt=ve[--$e],ve[$e]=null,nr=ve[--$e],ve[$e]=null}var Mi=null,Pi=null,Or=!1,ps=null;function a_(b,w){var M=Hi(5,null,null,0);M.elementType=&quot;DELETED&quot;,M.stateNode=w,M.return=b,w=b.deletions,w===null?(b.deletions=[M],b.flags|=16):w.push(M)}function o_(b,w){switch(b.tag){case 5:var M=b.type;return w=w.nodeType!==1||M.toLowerCase()!==w.nodeName.toLowerCase()?null:w,w!==null?(b.stateNode=w,Mi=b,Pi=zs(w.firstChild),!0):!1;case 6:return w=b.pendingProps===&quot;&quot;||w.nodeType!==3?null:w,w!==null?(b.stateNode=w,Mi=b,Pi=null,!0):!1;case 13:return w=w.nodeType!==8?null:w,w!==null?(M=Be!==null?{id:nr,overflow:Zt}:null,b.memoizedState={dehydrated:w,treeContext:M,retryLane:1073741824},M=Hi(18,null,null,0),M.stateNode=w,M.return=b,b.child=M,Mi=b,Pi=null,!0):!1;default:return!1}}function kg(b){return(b.mode&amp;1)!==0&amp;&amp;(b.flags&amp;128)===0}function Sg(b){if(Or){var w=Pi;if(w){var M=w;if(!o_(b,w)){if(kg(b))throw Error(t(418));w=zs(M.nextSibling);var W=Mi;w&amp;&amp;o_(b,w)?a_(W,M):(b.flags=b.flags&amp;-4097|2,Or=!1,Mi=b)}}else{if(kg(b))throw Error(t(418));b.flags=b.flags&amp;-4097|2,Or=!1,Mi=b}}}function l_(b){for(b=b.return;b!==null&amp;&amp;b.tag!==5&amp;&amp;b.tag!==3&amp;&amp;b.tag!==13;)b=b.return;Mi=b}function mh(b){if(b!==Mi)return!1;if(!Or)return l_(b),Or=!0,!1;var w;if((w=b.tag!==3)&amp;&amp;!(w=b.tag!==5)&amp;&amp;(w=b.type,w=w!==&quot;head&quot;&amp;&amp;w!==&quot;body&quot;&amp;&amp;!uo(b.type,b.memoizedProps)),w&amp;&amp;(w=Pi)){if(kg(b))throw c_(),Error(t(418));for(;w;)a_(b,w),w=zs(w.nextSibling)}if(l_(b),b.tag===13){if(b=b.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(t(317));e:{for(b=b.nextSibling,w=0;b;){if(b.nodeType===8){var M=b.data;if(M===&quot;/$&quot;){if(w===0){Pi=zs(b.nextSibling);break e}w--}else M!==&quot;$&quot;&amp;&amp;M!==&quot;$!&quot;&amp;&amp;M!==&quot;$?&quot;||w++}b=b.nextSibling}Pi=null}}else Pi=Mi?zs(b.stateNode.nextSibling):null;return!0}function c_(){for(var b=Pi;b;)b=zs(b.nextSibling)}function vc(){Pi=Mi=null,Or=!1}function Cg(b){ps===null?ps=[b]:ps.push(b)}var FP=S.ReactCurrentBatchConfig;function Ju(b,w,M){if(b=M.ref,b!==null&amp;&amp;typeof b!=&quot;function&quot;&amp;&amp;typeof b!=&quot;object&quot;){if(M._owner){if(M=M._owner,M){if(M.tag!==1)throw Error(t(309));var W=M.stateNode}if(!W)throw Error(t(147,b));var G=W,ee=&quot;&quot;+b;return w!==null&amp;&amp;w.ref!==null&amp;&amp;typeof w.ref==&quot;function&quot;&amp;&amp;w.ref._stringRef===ee?w.ref:(w=function(oe){var me=G.refs;oe===null?delete me[ee]:me[ee]=oe},w._stringRef=ee,w)}if(typeof b!=&quot;string&quot;)throw Error(t(284));if(!M._owner)throw Error(t(290,b))}return b}function ph(b,w){throw b=Object.prototype.toString.call(w),Error(t(31,b===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(w).join(&quot;, &quot;)+&quot;}&quot;:b))}function u_(b){var w=b._init;return w(b._payload)}function d_(b){function w(Ee,_e){if(b){var Pe=Ee.deletions;Pe===null?(Ee.deletions=[_e],Ee.flags|=16):Pe.push(_e)}}function M(Ee,_e){if(!b)return null;for(;_e!==null;)w(Ee,_e),_e=_e.sibling;return null}function W(Ee,_e){for(Ee=new Map;_e!==null;)_e.key!==null?Ee.set(_e.key,_e):Ee.set(_e.index,_e),_e=_e.sibling;return Ee}function G(Ee,_e){return Ee=Co(Ee,_e),Ee.index=0,Ee.sibling=null,Ee}function ee(Ee,_e,Pe){return Ee.index=Pe,b?(Pe=Ee.alternate,Pe!==null?(Pe=Pe.index,Pe&lt;_e?(Ee.flags|=2,_e):Pe):(Ee.flags|=2,_e)):(Ee.flags|=1048576,_e)}function oe(Ee){return b&amp;&amp;Ee.alternate===null&amp;&amp;(Ee.flags|=2),Ee}function me(Ee,_e,Pe,et){return _e===null||_e.tag!==6?(_e=bx(Pe,Ee.mode,et),_e.return=Ee,_e):(_e=G(_e,Pe),_e.return=Ee,_e)}function ye(Ee,_e,Pe,et){var Nt=Pe.type;return Nt===V?He(Ee,_e,Pe.props.children,et,Pe.key):_e!==null&amp;&amp;(_e.elementType===Nt||typeof Nt==&quot;object&quot;&amp;&amp;Nt!==null&amp;&amp;Nt.$$typeof===j&amp;&amp;u_(Nt)===_e.type)?(et=G(_e,Pe.props),et.ref=Ju(Ee,_e,Pe),et.return=Ee,et):(et=Bh(Pe.type,Pe.key,Pe.props,null,Ee.mode,et),et.ref=Ju(Ee,_e,Pe),et.return=Ee,et)}function Te(Ee,_e,Pe,et){return _e===null||_e.tag!==4||_e.stateNode.containerInfo!==Pe.containerInfo||_e.stateNode.implementation!==Pe.implementation?(_e=yx(Pe,Ee.mode,et),_e.return=Ee,_e):(_e=G(_e,Pe.children||[]),_e.return=Ee,_e)}function He(Ee,_e,Pe,et,Nt){return _e===null||_e.tag!==7?(_e=wl(Pe,Ee.mode,et,Nt),_e.return=Ee,_e):(_e=G(_e,Pe),_e.return=Ee,_e)}function Xe(Ee,_e,Pe){if(typeof _e==&quot;string&quot;&amp;&amp;_e!==&quot;&quot;||typeof _e==&quot;number&quot;)return _e=bx(&quot;&quot;+_e,Ee.mode,Pe),_e.return=Ee,_e;if(typeof _e==&quot;object&quot;&amp;&amp;_e!==null){switch(_e.$$typeof){case A:return Pe=Bh(_e.type,_e.key,_e.props,null,Ee.mode,Pe),Pe.ref=Ju(Ee,null,_e),Pe.return=Ee,Pe;case I:return _e=yx(_e,Ee.mode,Pe),_e.return=Ee,_e;case j:var et=_e._init;return Xe(Ee,et(_e._payload),Pe)}if(ge(_e)||C(_e))return _e=wl(_e,Ee.mode,Pe,null),_e.return=Ee,_e;ph(Ee,_e)}return null}function We(Ee,_e,Pe,et){var Nt=_e!==null?_e.key:null;if(typeof Pe==&quot;string&quot;&amp;&amp;Pe!==&quot;&quot;||typeof Pe==&quot;number&quot;)return Nt!==null?null:me(Ee,_e,&quot;&quot;+Pe,et);if(typeof Pe==&quot;object&quot;&amp;&amp;Pe!==null){switch(Pe.$$typeof){case A:return Pe.key===Nt?ye(Ee,_e,Pe,et):null;case I:return Pe.key===Nt?Te(Ee,_e,Pe,et):null;case j:return Nt=Pe._init,We(Ee,_e,Nt(Pe._payload),et)}if(ge(Pe)||C(Pe))return Nt!==null?null:He(Ee,_e,Pe,et,null);ph(Ee,Pe)}return null}function ot(Ee,_e,Pe,et,Nt){if(typeof et==&quot;string&quot;&amp;&amp;et!==&quot;&quot;||typeof et==&quot;number&quot;)return Ee=Ee.get(Pe)||null,me(_e,Ee,&quot;&quot;+et,Nt);if(typeof et==&quot;object&quot;&amp;&amp;et!==null){switch(et.$$typeof){case A:return Ee=Ee.get(et.key===null?Pe:et.key)||null,ye(_e,Ee,et,Nt);case I:return Ee=Ee.get(et.key===null?Pe:et.key)||null,Te(_e,Ee,et,Nt);case j:var Lt=et._init;return ot(Ee,_e,Pe,Lt(et._payload),Nt)}if(ge(et)||C(et))return Ee=Ee.get(Pe)||null,He(_e,Ee,et,Nt,null);ph(_e,et)}return null}function gt(Ee,_e,Pe,et){for(var Nt=null,Lt=null,Ft=_e,qt=_e=0,yn=null;Ft!==null&amp;&amp;qt&lt;Pe.length;qt++){Ft.index&gt;qt?(yn=Ft,Ft=null):yn=Ft.sibling;var lr=We(Ee,Ft,Pe[qt],et);if(lr===null){Ft===null&amp;&amp;(Ft=yn);break}b&amp;&amp;Ft&amp;&amp;lr.alternate===null&amp;&amp;w(Ee,Ft),_e=ee(lr,_e,qt),Lt===null?Nt=lr:Lt.sibling=lr,Lt=lr,Ft=yn}if(qt===Pe.length)return M(Ee,Ft),Or&amp;&amp;An(Ee,qt),Nt;if(Ft===null){for(;qt&lt;Pe.length;qt++)Ft=Xe(Ee,Pe[qt],et),Ft!==null&amp;&amp;(_e=ee(Ft,_e,qt),Lt===null?Nt=Ft:Lt.sibling=Ft,Lt=Ft);return Or&amp;&amp;An(Ee,qt),Nt}for(Ft=W(Ee,Ft);qt&lt;Pe.length;qt++)yn=ot(Ft,Ee,qt,Pe[qt],et),yn!==null&amp;&amp;(b&amp;&amp;yn.alternate!==null&amp;&amp;Ft.delete(yn.key===null?qt:yn.key),_e=ee(yn,_e,qt),Lt===null?Nt=yn:Lt.sibling=yn,Lt=yn);return b&amp;&amp;Ft.forEach(function(Eo){return w(Ee,Eo)}),Or&amp;&amp;An(Ee,qt),Nt}function yt(Ee,_e,Pe,et){var Nt=C(Pe);if(typeof Nt!=&quot;function&quot;)throw Error(t(150));if(Pe=Nt.call(Pe),Pe==null)throw Error(t(151));for(var Lt=Nt=null,Ft=_e,qt=_e=0,yn=null,lr=Pe.next();Ft!==null&amp;&amp;!lr.done;qt++,lr=Pe.next()){Ft.index&gt;qt?(yn=Ft,Ft=null):yn=Ft.sibling;var Eo=We(Ee,Ft,lr.value,et);if(Eo===null){Ft===null&amp;&amp;(Ft=yn);break}b&amp;&amp;Ft&amp;&amp;Eo.alternate===null&amp;&amp;w(Ee,Ft),_e=ee(Eo,_e,qt),Lt===null?Nt=Eo:Lt.sibling=Eo,Lt=Eo,Ft=yn}if(lr.done)return M(Ee,Ft),Or&amp;&amp;An(Ee,qt),Nt;if(Ft===null){for(;!lr.done;qt++,lr=Pe.next())lr=Xe(Ee,lr.value,et),lr!==null&amp;&amp;(_e=ee(lr,_e,qt),Lt===null?Nt=lr:Lt.sibling=lr,Lt=lr);return Or&amp;&amp;An(Ee,qt),Nt}for(Ft=W(Ee,Ft);!lr.done;qt++,lr=Pe.next())lr=ot(Ft,Ee,qt,lr.value,et),lr!==null&amp;&amp;(b&amp;&amp;lr.alternate!==null&amp;&amp;Ft.delete(lr.key===null?qt:lr.key),_e=ee(lr,_e,qt),Lt===null?Nt=lr:Lt.sibling=lr,Lt=lr);return b&amp;&amp;Ft.forEach(function(xO){return w(Ee,xO)}),Or&amp;&amp;An(Ee,qt),Nt}function Xr(Ee,_e,Pe,et){if(typeof Pe==&quot;object&quot;&amp;&amp;Pe!==null&amp;&amp;Pe.type===V&amp;&amp;Pe.key===null&amp;&amp;(Pe=Pe.props.children),typeof Pe==&quot;object&quot;&amp;&amp;Pe!==null){switch(Pe.$$typeof){case A:e:{for(var Nt=Pe.key,Lt=_e;Lt!==null;){if(Lt.key===Nt){if(Nt=Pe.type,Nt===V){if(Lt.tag===7){M(Ee,Lt.sibling),_e=G(Lt,Pe.props.children),_e.return=Ee,Ee=_e;break e}}else if(Lt.elementType===Nt||typeof Nt==&quot;object&quot;&amp;&amp;Nt!==null&amp;&amp;Nt.$$typeof===j&amp;&amp;u_(Nt)===Lt.type){M(Ee,Lt.sibling),_e=G(Lt,Pe.props),_e.ref=Ju(Ee,Lt,Pe),_e.return=Ee,Ee=_e;break e}M(Ee,Lt);break}else w(Ee,Lt);Lt=Lt.sibling}Pe.type===V?(_e=wl(Pe.props.children,Ee.mode,et,Pe.key),_e.return=Ee,Ee=_e):(et=Bh(Pe.type,Pe.key,Pe.props,null,Ee.mode,et),et.ref=Ju(Ee,_e,Pe),et.return=Ee,Ee=et)}return oe(Ee);case I:e:{for(Lt=Pe.key;_e!==null;){if(_e.key===Lt)if(_e.tag===4&amp;&amp;_e.stateNode.containerInfo===Pe.containerInfo&amp;&amp;_e.stateNode.implementation===Pe.implementation){M(Ee,_e.sibling),_e=G(_e,Pe.children||[]),_e.return=Ee,Ee=_e;break e}else{M(Ee,_e);break}else w(Ee,_e);_e=_e.sibling}_e=yx(Pe,Ee.mode,et),_e.return=Ee,Ee=_e}return oe(Ee);case j:return Lt=Pe._init,Xr(Ee,_e,Lt(Pe._payload),et)}if(ge(Pe))return gt(Ee,_e,Pe,et);if(C(Pe))return yt(Ee,_e,Pe,et);ph(Ee,Pe)}return typeof Pe==&quot;string&quot;&amp;&amp;Pe!==&quot;&quot;||typeof Pe==&quot;number&quot;?(Pe=&quot;&quot;+Pe,_e!==null&amp;&amp;_e.tag===6?(M(Ee,_e.sibling),_e=G(_e,Pe),_e.return=Ee,Ee=_e):(M(Ee,_e),_e=bx(Pe,Ee.mode,et),_e.return=Ee,Ee=_e),oe(Ee)):M(Ee,_e)}return Xr}var wc=d_(!0),f_=d_(!1),gh=Vs(null),xh=null,_c=null,Eg=null;function Ag(){Eg=_c=xh=null}function Mg(b){var w=gh.current;Nr(gh),b._currentValue=w}function Pg(b,w,M){for(;b!==null;){var W=b.alternate;if((b.childLanes&amp;w)!==w?(b.childLanes|=w,W!==null&amp;&amp;(W.childLanes|=w)):W!==null&amp;&amp;(W.childLanes&amp;w)!==w&amp;&amp;(W.childLanes|=w),b===M)break;b=b.return}}function jc(b,w){xh=b,Eg=_c=null,b=b.dependencies,b!==null&amp;&amp;b.firstContext!==null&amp;&amp;((b.lanes&amp;w)!==0&amp;&amp;(gi=!0),b.firstContext=null)}function Vi(b){var w=b._currentValue;if(Eg!==b)if(b={context:b,memoizedValue:w,next:null},_c===null){if(xh===null)throw Error(t(308));_c=b,xh.dependencies={lanes:0,firstContext:b}}else _c=_c.next=b;return w}var ml=null;function Og(b){ml===null?ml=[b]:ml.push(b)}function h_(b,w,M,W){var G=w.interleaved;return G===null?(M.next=M,Og(w)):(M.next=G.next,G.next=M),w.interleaved=M,ya(b,W)}function ya(b,w){b.lanes|=w;var M=b.alternate;for(M!==null&amp;&amp;(M.lanes|=w),M=b,b=b.return;b!==null;)b.childLanes|=w,M=b.alternate,M!==null&amp;&amp;(M.childLanes|=w),M=b,b=b.return;return M.tag===3?M.stateNode:null}var vo=!1;function Tg(b){b.updateQueue={baseState:b.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function m_(b,w){b=b.updateQueue,w.updateQueue===b&amp;&amp;(w.updateQueue={baseState:b.baseState,firstBaseUpdate:b.firstBaseUpdate,lastBaseUpdate:b.lastBaseUpdate,shared:b.shared,effects:b.effects})}function va(b,w){return{eventTime:b,lane:w,tag:0,payload:null,callback:null,next:null}}function wo(b,w,M){var W=b.updateQueue;if(W===null)return null;if(W=W.shared,(or&amp;2)!==0){var G=W.pending;return G===null?w.next=w:(w.next=G.next,G.next=w),W.pending=w,ya(b,M)}return G=W.interleaved,G===null?(w.next=w,Og(W)):(w.next=G.next,G.next=w),W.interleaved=w,ya(b,M)}function bh(b,w,M){if(w=w.updateQueue,w!==null&amp;&amp;(w=w.shared,(M&amp;4194240)!==0)){var W=w.lanes;W&amp;=b.pendingLanes,M|=W,w.lanes=M,Rs(b,M)}}function p_(b,w){var M=b.updateQueue,W=b.alternate;if(W!==null&amp;&amp;(W=W.updateQueue,M===W)){var G=null,ee=null;if(M=M.firstBaseUpdate,M!==null){do{var oe={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};ee===null?G=ee=oe:ee=ee.next=oe,M=M.next}while(M!==null);ee===null?G=ee=w:ee=ee.next=w}else G=ee=w;M={baseState:W.baseState,firstBaseUpdate:G,lastBaseUpdate:ee,shared:W.shared,effects:W.effects},b.updateQueue=M;return}b=M.lastBaseUpdate,b===null?M.firstBaseUpdate=w:b.next=w,M.lastBaseUpdate=w}function yh(b,w,M,W){var G=b.updateQueue;vo=!1;var ee=G.firstBaseUpdate,oe=G.lastBaseUpdate,me=G.shared.pending;if(me!==null){G.shared.pending=null;var ye=me,Te=ye.next;ye.next=null,oe===null?ee=Te:oe.next=Te,oe=ye;var He=b.alternate;He!==null&amp;&amp;(He=He.updateQueue,me=He.lastBaseUpdate,me!==oe&amp;&amp;(me===null?He.firstBaseUpdate=Te:me.next=Te,He.lastBaseUpdate=ye))}if(ee!==null){var Xe=G.baseState;oe=0,He=Te=ye=null,me=ee;do{var We=me.lane,ot=me.eventTime;if((W&amp;We)===We){He!==null&amp;&amp;(He=He.next={eventTime:ot,lane:0,tag:me.tag,payload:me.payload,callback:me.callback,next:null});e:{var gt=b,yt=me;switch(We=w,ot=M,yt.tag){case 1:if(gt=yt.payload,typeof gt==&quot;function&quot;){Xe=gt.call(ot,Xe,We);break e}Xe=gt;break e;case 3:gt.flags=gt.flags&amp;-65537|128;case 0:if(gt=yt.payload,We=typeof gt==&quot;function&quot;?gt.call(ot,Xe,We):gt,We==null)break e;Xe=P({},Xe,We);break e;case 2:vo=!0}}me.callback!==null&amp;&amp;me.lane!==0&amp;&amp;(b.flags|=64,We=G.effects,We===null?G.effects=[me]:We.push(me))}else ot={eventTime:ot,lane:We,tag:me.tag,payload:me.payload,callback:me.callback,next:null},He===null?(Te=He=ot,ye=Xe):He=He.next=ot,oe|=We;if(me=me.next,me===null){if(me=G.shared.pending,me===null)break;We=me,me=We.next,We.next=null,G.lastBaseUpdate=We,G.shared.pending=null}}while(!0);if(He===null&amp;&amp;(ye=Xe),G.baseState=ye,G.firstBaseUpdate=Te,G.lastBaseUpdate=He,w=G.shared.interleaved,w!==null){G=w;do oe|=G.lane,G=G.next;while(G!==w)}else ee===null&amp;&amp;(G.shared.lanes=0);xl|=oe,b.lanes=oe,b.memoizedState=Xe}}function g_(b,w,M){if(b=w.effects,w.effects=null,b!==null)for(w=0;w&lt;b.length;w++){var W=b[w],G=W.callback;if(G!==null){if(W.callback=null,W=M,typeof G!=&quot;function&quot;)throw Error(t(191,G));G.call(W)}}}var ed={},Hs=Vs(ed),td=Vs(ed),rd=Vs(ed);function pl(b){if(b===ed)throw Error(t(174));return b}function Ig(b,w){switch(yr(rd,w),yr(td,b),yr(Hs,ed),b=w.nodeType,b){case 9:case 11:w=(w=w.documentElement)?w.namespaceURI:Le(null,&quot;&quot;);break;default:b=b===8?w.parentNode:w,w=b.namespaceURI||null,b=b.tagName,w=Le(w,b)}Nr(Hs),yr(Hs,w)}function Nc(){Nr(Hs),Nr(td),Nr(rd)}function x_(b){pl(rd.current);var w=pl(Hs.current),M=Le(w,b.type);w!==M&amp;&amp;(yr(td,b),yr(Hs,M))}function Rg(b){td.current===b&amp;&amp;(Nr(Hs),Nr(td))}var Dr=Vs(0);function vh(b){for(var w=b;w!==null;){if(w.tag===13){var M=w.memoizedState;if(M!==null&amp;&amp;(M=M.dehydrated,M===null||M.data===&quot;$?&quot;||M.data===&quot;$!&quot;))return w}else if(w.tag===19&amp;&amp;w.memoizedProps.revealOrder!==void 0){if((w.flags&amp;128)!==0)return w}else if(w.child!==null){w.child.return=w,w=w.child;continue}if(w===b)break;for(;w.sibling===null;){if(w.return===null||w.return===b)return null;w=w.return}w.sibling.return=w.return,w=w.sibling}return null}var Dg=[];function Lg(){for(var b=0;b&lt;Dg.length;b++)Dg[b]._workInProgressVersionPrimary=null;Dg.length=0}var wh=S.ReactCurrentDispatcher,Fg=S.ReactCurrentBatchConfig,gl=0,Lr=null,sn=null,xn=null,_h=!1,nd=!1,id=0,BP=0;function zn(){throw Error(t(321))}function Bg(b,w){if(w===null)return!1;for(var M=0;M&lt;w.length&amp;&amp;M&lt;b.length;M++)if(!pi(b[M],w[M]))return!1;return!0}function $g(b,w,M,W,G,ee){if(gl=ee,Lr=w,w.memoizedState=null,w.updateQueue=null,w.lanes=0,wh.current=b===null||b.memoizedState===null?VP:qP,b=M(W,G),nd){ee=0;do{if(nd=!1,id=0,25&lt;=ee)throw Error(t(301));ee+=1,xn=sn=null,w.updateQueue=null,wh.current=WP,b=M(W,G)}while(nd)}if(wh.current=kh,w=sn!==null&amp;&amp;sn.next!==null,gl=0,xn=sn=Lr=null,_h=!1,w)throw Error(t(300));return b}function zg(){var b=id!==0;return id=0,b}function Ks(){var b={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xn===null?Lr.memoizedState=xn=b:xn=xn.next=b,xn}function qi(){if(sn===null){var b=Lr.alternate;b=b!==null?b.memoizedState:null}else b=sn.next;var w=xn===null?Lr.memoizedState:xn.next;if(w!==null)xn=w,sn=b;else{if(b===null)throw Error(t(310));sn=b,b={memoizedState:sn.memoizedState,baseState:sn.baseState,baseQueue:sn.baseQueue,queue:sn.queue,next:null},xn===null?Lr.memoizedState=xn=b:xn=xn.next=b}return xn}function sd(b,w){return typeof w==&quot;function&quot;?w(b):w}function Ug(b){var w=qi(),M=w.queue;if(M===null)throw Error(t(311));M.lastRenderedReducer=b;var W=sn,G=W.baseQueue,ee=M.pending;if(ee!==null){if(G!==null){var oe=G.next;G.next=ee.next,ee.next=oe}W.baseQueue=G=ee,M.pending=null}if(G!==null){ee=G.next,W=W.baseState;var me=oe=null,ye=null,Te=ee;do{var He=Te.lane;if((gl&amp;He)===He)ye!==null&amp;&amp;(ye=ye.next={lane:0,action:Te.action,hasEagerState:Te.hasEagerState,eagerState:Te.eagerState,next:null}),W=Te.hasEagerState?Te.eagerState:b(W,Te.action);else{var Xe={lane:He,action:Te.action,hasEagerState:Te.hasEagerState,eagerState:Te.eagerState,next:null};ye===null?(me=ye=Xe,oe=W):ye=ye.next=Xe,Lr.lanes|=He,xl|=He}Te=Te.next}while(Te!==null&amp;&amp;Te!==ee);ye===null?oe=W:ye.next=me,pi(W,w.memoizedState)||(gi=!0),w.memoizedState=W,w.baseState=oe,w.baseQueue=ye,M.lastRenderedState=W}if(b=M.interleaved,b!==null){G=b;do ee=G.lane,Lr.lanes|=ee,xl|=ee,G=G.next;while(G!==b)}else G===null&amp;&amp;(M.lanes=0);return[w.memoizedState,M.dispatch]}function Vg(b){var w=qi(),M=w.queue;if(M===null)throw Error(t(311));M.lastRenderedReducer=b;var W=M.dispatch,G=M.pending,ee=w.memoizedState;if(G!==null){M.pending=null;var oe=G=G.next;do ee=b(ee,oe.action),oe=oe.next;while(oe!==G);pi(ee,w.memoizedState)||(gi=!0),w.memoizedState=ee,w.baseQueue===null&amp;&amp;(w.baseState=ee),M.lastRenderedState=ee}return[ee,W]}function b_(){}function y_(b,w){var M=Lr,W=qi(),G=w(),ee=!pi(W.memoizedState,G);if(ee&amp;&amp;(W.memoizedState=G,gi=!0),W=W.queue,qg(__.bind(null,M,W,b),[b]),W.getSnapshot!==w||ee||xn!==null&amp;&amp;xn.memoizedState.tag&amp;1){if(M.flags|=2048,ad(9,w_.bind(null,M,W,G,w),void 0,null),bn===null)throw Error(t(349));(gl&amp;30)!==0||v_(M,w,G)}return G}function v_(b,w,M){b.flags|=16384,b={getSnapshot:w,value:M},w=Lr.updateQueue,w===null?(w={lastEffect:null,stores:null},Lr.updateQueue=w,w.stores=[b]):(M=w.stores,M===null?w.stores=[b]:M.push(b))}function w_(b,w,M,W){w.value=M,w.getSnapshot=W,j_(w)&amp;&amp;N_(b)}function __(b,w,M){return M(function(){j_(w)&amp;&amp;N_(b)})}function j_(b){var w=b.getSnapshot;b=b.value;try{var M=w();return!pi(b,M)}catch{return!0}}function N_(b){var w=ya(b,1);w!==null&amp;&amp;ys(w,b,1,-1)}function k_(b){var w=Ks();return typeof b==&quot;function&quot;&amp;&amp;(b=b()),w.memoizedState=w.baseState=b,b={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sd,lastRenderedState:b},w.queue=b,b=b.dispatch=UP.bind(null,Lr,b),[w.memoizedState,b]}function ad(b,w,M,W){return b={tag:b,create:w,destroy:M,deps:W,next:null},w=Lr.updateQueue,w===null?(w={lastEffect:null,stores:null},Lr.updateQueue=w,w.lastEffect=b.next=b):(M=w.lastEffect,M===null?w.lastEffect=b.next=b:(W=M.next,M.next=b,b.next=W,w.lastEffect=b)),b}function S_(){return qi().memoizedState}function jh(b,w,M,W){var G=Ks();Lr.flags|=b,G.memoizedState=ad(1|w,M,void 0,W===void 0?null:W)}function Nh(b,w,M,W){var G=qi();W=W===void 0?null:W;var ee=void 0;if(sn!==null){var oe=sn.memoizedState;if(ee=oe.destroy,W!==null&amp;&amp;Bg(W,oe.deps)){G.memoizedState=ad(w,M,ee,W);return}}Lr.flags|=b,G.memoizedState=ad(1|w,M,ee,W)}function C_(b,w){return jh(8390656,8,b,w)}function qg(b,w){return Nh(2048,8,b,w)}function E_(b,w){return Nh(4,2,b,w)}function A_(b,w){return Nh(4,4,b,w)}function M_(b,w){if(typeof w==&quot;function&quot;)return b=b(),w(b),function(){w(null)};if(w!=null)return b=b(),w.current=b,function(){w.current=null}}function P_(b,w,M){return M=M!=null?M.concat([b]):null,Nh(4,4,M_.bind(null,w,b),M)}function Wg(){}function O_(b,w){var M=qi();w=w===void 0?null:w;var W=M.memoizedState;return W!==null&amp;&amp;w!==null&amp;&amp;Bg(w,W[1])?W[0]:(M.memoizedState=[b,w],b)}function T_(b,w){var M=qi();w=w===void 0?null:w;var W=M.memoizedState;return W!==null&amp;&amp;w!==null&amp;&amp;Bg(w,W[1])?W[0]:(b=b(),M.memoizedState=[b,w],b)}function I_(b,w,M){return(gl&amp;21)===0?(b.baseState&amp;&amp;(b.baseState=!1,gi=!0),b.memoizedState=M):(pi(M,w)||(M=ar(),Lr.lanes|=M,xl|=M,b.baseState=!0),w)}function $P(b,w){var M=It;It=M!==0&amp;&amp;4&gt;M?M:4,b(!0);var W=Fg.transition;Fg.transition={};try{b(!1),w()}finally{It=M,Fg.transition=W}}function R_(){return qi().memoizedState}function zP(b,w,M){var W=ko(b);if(M={lane:W,action:M,hasEagerState:!1,eagerState:null,next:null},D_(b))L_(w,M);else if(M=h_(b,w,M,W),M!==null){var G=ri();ys(M,b,W,G),F_(M,w,W)}}function UP(b,w,M){var W=ko(b),G={lane:W,action:M,hasEagerState:!1,eagerState:null,next:null};if(D_(b))L_(w,G);else{var ee=b.alternate;if(b.lanes===0&amp;&amp;(ee===null||ee.lanes===0)&amp;&amp;(ee=w.lastRenderedReducer,ee!==null))try{var oe=w.lastRenderedState,me=ee(oe,M);if(G.hasEagerState=!0,G.eagerState=me,pi(me,oe)){var ye=w.interleaved;ye===null?(G.next=G,Og(w)):(G.next=ye.next,ye.next=G),w.interleaved=G;return}}catch{}M=h_(b,w,G,W),M!==null&amp;&amp;(G=ri(),ys(M,b,W,G),F_(M,w,W))}}function D_(b){var w=b.alternate;return b===Lr||w!==null&amp;&amp;w===Lr}function L_(b,w){nd=_h=!0;var M=b.pending;M===null?w.next=w:(w.next=M.next,M.next=w),b.pending=w}function F_(b,w,M){if((M&amp;4194240)!==0){var W=w.lanes;W&amp;=b.pendingLanes,M|=W,w.lanes=M,Rs(b,M)}}var kh={readContext:Vi,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useInsertionEffect:zn,useLayoutEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useMutableSource:zn,useSyncExternalStore:zn,useId:zn,unstable_isNewReconciler:!1},VP={readContext:Vi,useCallback:function(b,w){return Ks().memoizedState=[b,w===void 0?null:w],b},useContext:Vi,useEffect:C_,useImperativeHandle:function(b,w,M){return M=M!=null?M.concat([b]):null,jh(4194308,4,M_.bind(null,w,b),M)},useLayoutEffect:function(b,w){return jh(4194308,4,b,w)},useInsertionEffect:function(b,w){return jh(4,2,b,w)},useMemo:function(b,w){var M=Ks();return w=w===void 0?null:w,b=b(),M.memoizedState=[b,w],b},useReducer:function(b,w,M){var W=Ks();return w=M!==void 0?M(w):w,W.memoizedState=W.baseState=w,b={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:b,lastRenderedState:w},W.queue=b,b=b.dispatch=zP.bind(null,Lr,b),[W.memoizedState,b]},useRef:function(b){var w=Ks();return b={current:b},w.memoizedState=b},useState:k_,useDebugValue:Wg,useDeferredValue:function(b){return Ks().memoizedState=b},useTransition:function(){var b=k_(!1),w=b[0];return b=$P.bind(null,b[1]),Ks().memoizedState=b,[w,b]},useMutableSource:function(){},useSyncExternalStore:function(b,w,M){var W=Lr,G=Ks();if(Or){if(M===void 0)throw Error(t(407));M=M()}else{if(M=w(),bn===null)throw Error(t(349));(gl&amp;30)!==0||v_(W,w,M)}G.memoizedState=M;var ee={value:M,getSnapshot:w};return G.queue=ee,C_(__.bind(null,W,ee,b),[b]),W.flags|=2048,ad(9,w_.bind(null,W,ee,M,w),void 0,null),M},useId:function(){var b=Ks(),w=bn.identifierPrefix;if(Or){var M=Zt,W=nr;M=(W&amp;~(1&lt;&lt;32-Ce(W)-1)).toString(32)+M,w=&quot;:&quot;+w+&quot;R&quot;+M,M=id++,0&lt;M&amp;&amp;(w+=&quot;H&quot;+M.toString(32)),w+=&quot;:&quot;}else M=BP++,w=&quot;:&quot;+w+&quot;r&quot;+M.toString(32)+&quot;:&quot;;return b.memoizedState=w},unstable_isNewReconciler:!1},qP={readContext:Vi,useCallback:O_,useContext:Vi,useEffect:qg,useImperativeHandle:P_,useInsertionEffect:E_,useLayoutEffect:A_,useMemo:T_,useReducer:Ug,useRef:S_,useState:function(){return Ug(sd)},useDebugValue:Wg,useDeferredValue:function(b){var w=qi();return I_(w,sn.memoizedState,b)},useTransition:function(){var b=Ug(sd)[0],w=qi().memoizedState;return[b,w]},useMutableSource:b_,useSyncExternalStore:y_,useId:R_,unstable_isNewReconciler:!1},WP={readContext:Vi,useCallback:O_,useContext:Vi,useEffect:qg,useImperativeHandle:P_,useInsertionEffect:E_,useLayoutEffect:A_,useMemo:T_,useReducer:Vg,useRef:S_,useState:function(){return Vg(sd)},useDebugValue:Wg,useDeferredValue:function(b){var w=qi();return sn===null?w.memoizedState=b:I_(w,sn.memoizedState,b)},useTransition:function(){var b=Vg(sd)[0],w=qi().memoizedState;return[b,w]},useMutableSource:b_,useSyncExternalStore:y_,useId:R_,unstable_isNewReconciler:!1};function gs(b,w){if(b&amp;&amp;b.defaultProps){w=P({},w),b=b.defaultProps;for(var M in b)w[M]===void 0&amp;&amp;(w[M]=b[M]);return w}return w}function Hg(b,w,M,W){w=b.memoizedState,M=M(W,w),M=M==null?w:P({},w,M),b.memoizedState=M,b.lanes===0&amp;&amp;(b.updateQueue.baseState=M)}var Sh={isMounted:function(b){return(b=b._reactInternals)?at(b)===b:!1},enqueueSetState:function(b,w,M){b=b._reactInternals;var W=ri(),G=ko(b),ee=va(W,G);ee.payload=w,M!=null&amp;&amp;(ee.callback=M),w=wo(b,ee,G),w!==null&amp;&amp;(ys(w,b,G,W),bh(w,b,G))},enqueueReplaceState:function(b,w,M){b=b._reactInternals;var W=ri(),G=ko(b),ee=va(W,G);ee.tag=1,ee.payload=w,M!=null&amp;&amp;(ee.callback=M),w=wo(b,ee,G),w!==null&amp;&amp;(ys(w,b,G,W),bh(w,b,G))},enqueueForceUpdate:function(b,w){b=b._reactInternals;var M=ri(),W=ko(b),G=va(M,W);G.tag=2,w!=null&amp;&amp;(G.callback=w),w=wo(b,G,W),w!==null&amp;&amp;(ys(w,b,W,M),bh(w,b,W))}};function B_(b,w,M,W,G,ee,oe){return b=b.stateNode,typeof b.shouldComponentUpdate==&quot;function&quot;?b.shouldComponentUpdate(W,ee,oe):w.prototype&amp;&amp;w.prototype.isPureReactComponent?!lo(M,W)||!lo(G,ee):!0}function $_(b,w,M){var W=!1,G=qs,ee=w.contextType;return typeof ee==&quot;object&quot;&amp;&amp;ee!==null?ee=Vi(ee):(G=$n(w)?ba:gn.current,W=w.contextTypes,ee=(W=W!=null)?po(b,G):qs),w=new w(M,ee),b.memoizedState=w.state!==null&amp;&amp;w.state!==void 0?w.state:null,w.updater=Sh,b.stateNode=w,w._reactInternals=b,W&amp;&amp;(b=b.stateNode,b.__reactInternalMemoizedUnmaskedChildContext=G,b.__reactInternalMemoizedMaskedChildContext=ee),w}function z_(b,w,M,W){b=w.state,typeof w.componentWillReceiveProps==&quot;function&quot;&amp;&amp;w.componentWillReceiveProps(M,W),typeof w.UNSAFE_componentWillReceiveProps==&quot;function&quot;&amp;&amp;w.UNSAFE_componentWillReceiveProps(M,W),w.state!==b&amp;&amp;Sh.enqueueReplaceState(w,w.state,null)}function Kg(b,w,M,W){var G=b.stateNode;G.props=M,G.state=b.memoizedState,G.refs={},Tg(b);var ee=w.contextType;typeof ee==&quot;object&quot;&amp;&amp;ee!==null?G.context=Vi(ee):(ee=$n(w)?ba:gn.current,G.context=po(b,ee)),G.state=b.memoizedState,ee=w.getDerivedStateFromProps,typeof ee==&quot;function&quot;&amp;&amp;(Hg(b,w,ee,M),G.state=b.memoizedState),typeof w.getDerivedStateFromProps==&quot;function&quot;||typeof G.getSnapshotBeforeUpdate==&quot;function&quot;||typeof G.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof G.componentWillMount!=&quot;function&quot;||(w=G.state,typeof G.componentWillMount==&quot;function&quot;&amp;&amp;G.componentWillMount(),typeof G.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;G.UNSAFE_componentWillMount(),w!==G.state&amp;&amp;Sh.enqueueReplaceState(G,G.state,null),yh(b,M,G,W),G.state=b.memoizedState),typeof G.componentDidMount==&quot;function&quot;&amp;&amp;(b.flags|=4194308)}function kc(b,w){try{var M=&quot;&quot;,W=w;do M+=ne(W),W=W.return;while(W);var G=M}catch(ee){G=`
Error generating stack: `+ee.message+`
`+ee.stack}return{value:b,source:w,stack:G,digest:null}}function Xg(b,w,M){return{value:b,source:null,stack:M??null,digest:w??null}}function Gg(b,w){try{console.error(w.value)}catch(M){setTimeout(function(){throw M})}}var HP=typeof WeakMap==&quot;function&quot;?WeakMap:Map;function U_(b,w,M){M=va(-1,M),M.tag=3,M.payload={element:null};var W=w.value;return M.callback=function(){Th||(Th=!0,ux=W),Gg(b,w)},M}function V_(b,w,M){M=va(-1,M),M.tag=3;var W=b.type.getDerivedStateFromError;if(typeof W==&quot;function&quot;){var G=w.value;M.payload=function(){return W(G)},M.callback=function(){Gg(b,w)}}var ee=b.stateNode;return ee!==null&amp;&amp;typeof ee.componentDidCatch==&quot;function&quot;&amp;&amp;(M.callback=function(){Gg(b,w),typeof W!=&quot;function&quot;&amp;&amp;(jo===null?jo=new Set([this]):jo.add(this));var oe=w.stack;this.componentDidCatch(w.value,{componentStack:oe!==null?oe:&quot;&quot;})}),M}function q_(b,w,M){var W=b.pingCache;if(W===null){W=b.pingCache=new HP;var G=new Set;W.set(w,G)}else G=W.get(w),G===void 0&amp;&amp;(G=new Set,W.set(w,G));G.has(M)||(G.add(M),b=aO.bind(null,b,w,M),w.then(b,b))}function W_(b){do{var w;if((w=b.tag===13)&amp;&amp;(w=b.memoizedState,w=w!==null?w.dehydrated!==null:!0),w)return b;b=b.return}while(b!==null);return null}function H_(b,w,M,W,G){return(b.mode&amp;1)===0?(b===w?b.flags|=65536:(b.flags|=128,M.flags|=131072,M.flags&amp;=-52805,M.tag===1&amp;&amp;(M.alternate===null?M.tag=17:(w=va(-1,1),w.tag=2,wo(M,w,1))),M.lanes|=1),b):(b.flags|=65536,b.lanes=G,b)}var KP=S.ReactCurrentOwner,gi=!1;function ti(b,w,M,W){w.child=b===null?f_(w,null,M,W):wc(w,b.child,M,W)}function K_(b,w,M,W,G){M=M.render;var ee=w.ref;return jc(w,G),W=$g(b,w,M,W,ee,G),M=zg(),b!==null&amp;&amp;!gi?(w.updateQueue=b.updateQueue,w.flags&amp;=-2053,b.lanes&amp;=~G,wa(b,w,G)):(Or&amp;&amp;M&amp;&amp;jg(w),w.flags|=1,ti(b,w,W,G),w.child)}function X_(b,w,M,W,G){if(b===null){var ee=M.type;return typeof ee==&quot;function&quot;&amp;&amp;!xx(ee)&amp;&amp;ee.defaultProps===void 0&amp;&amp;M.compare===null&amp;&amp;M.defaultProps===void 0?(w.tag=15,w.type=ee,G_(b,w,ee,W,G)):(b=Bh(M.type,null,W,w,w.mode,G),b.ref=w.ref,b.return=w,w.child=b)}if(ee=b.child,(b.lanes&amp;G)===0){var oe=ee.memoizedProps;if(M=M.compare,M=M!==null?M:lo,M(oe,W)&amp;&amp;b.ref===w.ref)return wa(b,w,G)}return w.flags|=1,b=Co(ee,W),b.ref=w.ref,b.return=w,w.child=b}function G_(b,w,M,W,G){if(b!==null){var ee=b.memoizedProps;if(lo(ee,W)&amp;&amp;b.ref===w.ref)if(gi=!1,w.pendingProps=W=ee,(b.lanes&amp;G)!==0)(b.flags&amp;131072)!==0&amp;&amp;(gi=!0);else return w.lanes=b.lanes,wa(b,w,G)}return Yg(b,w,M,W,G)}function Y_(b,w,M){var W=w.pendingProps,G=W.children,ee=b!==null?b.memoizedState:null;if(W.mode===&quot;hidden&quot;)if((w.mode&amp;1)===0)w.memoizedState={baseLanes:0,cachePool:null,transitions:null},yr(Cc,Oi),Oi|=M;else{if((M&amp;1073741824)===0)return b=ee!==null?ee.baseLanes|M:M,w.lanes=w.childLanes=1073741824,w.memoizedState={baseLanes:b,cachePool:null,transitions:null},w.updateQueue=null,yr(Cc,Oi),Oi|=b,null;w.memoizedState={baseLanes:0,cachePool:null,transitions:null},W=ee!==null?ee.baseLanes:M,yr(Cc,Oi),Oi|=W}else ee!==null?(W=ee.baseLanes|M,w.memoizedState=null):W=M,yr(Cc,Oi),Oi|=W;return ti(b,w,G,M),w.child}function Z_(b,w){var M=w.ref;(b===null&amp;&amp;M!==null||b!==null&amp;&amp;b.ref!==M)&amp;&amp;(w.flags|=512,w.flags|=2097152)}function Yg(b,w,M,W,G){var ee=$n(M)?ba:gn.current;return ee=po(w,ee),jc(w,G),M=$g(b,w,M,W,ee,G),W=zg(),b!==null&amp;&amp;!gi?(w.updateQueue=b.updateQueue,w.flags&amp;=-2053,b.lanes&amp;=~G,wa(b,w,G)):(Or&amp;&amp;W&amp;&amp;jg(w),w.flags|=1,ti(b,w,M,G),w.child)}function Q_(b,w,M,W,G){if($n(M)){var ee=!0;gc(w)}else ee=!1;if(jc(w,G),w.stateNode===null)Eh(b,w),$_(w,M,W),Kg(w,M,W,G),W=!0;else if(b===null){var oe=w.stateNode,me=w.memoizedProps;oe.props=me;var ye=oe.context,Te=M.contextType;typeof Te==&quot;object&quot;&amp;&amp;Te!==null?Te=Vi(Te):(Te=$n(M)?ba:gn.current,Te=po(w,Te));var He=M.getDerivedStateFromProps,Xe=typeof He==&quot;function&quot;||typeof oe.getSnapshotBeforeUpdate==&quot;function&quot;;Xe||typeof oe.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof oe.componentWillReceiveProps!=&quot;function&quot;||(me!==W||ye!==Te)&amp;&amp;z_(w,oe,W,Te),vo=!1;var We=w.memoizedState;oe.state=We,yh(w,W,oe,G),ye=w.memoizedState,me!==W||We!==ye||Bn.current||vo?(typeof He==&quot;function&quot;&amp;&amp;(Hg(w,M,He,W),ye=w.memoizedState),(me=vo||B_(w,M,me,W,We,ye,Te))?(Xe||typeof oe.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof oe.componentWillMount!=&quot;function&quot;||(typeof oe.componentWillMount==&quot;function&quot;&amp;&amp;oe.componentWillMount(),typeof oe.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;oe.UNSAFE_componentWillMount()),typeof oe.componentDidMount==&quot;function&quot;&amp;&amp;(w.flags|=4194308)):(typeof oe.componentDidMount==&quot;function&quot;&amp;&amp;(w.flags|=4194308),w.memoizedProps=W,w.memoizedState=ye),oe.props=W,oe.state=ye,oe.context=Te,W=me):(typeof oe.componentDidMount==&quot;function&quot;&amp;&amp;(w.flags|=4194308),W=!1)}else{oe=w.stateNode,m_(b,w),me=w.memoizedProps,Te=w.type===w.elementType?me:gs(w.type,me),oe.props=Te,Xe=w.pendingProps,We=oe.context,ye=M.contextType,typeof ye==&quot;object&quot;&amp;&amp;ye!==null?ye=Vi(ye):(ye=$n(M)?ba:gn.current,ye=po(w,ye));var ot=M.getDerivedStateFromProps;(He=typeof ot==&quot;function&quot;||typeof oe.getSnapshotBeforeUpdate==&quot;function&quot;)||typeof oe.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof oe.componentWillReceiveProps!=&quot;function&quot;||(me!==Xe||We!==ye)&amp;&amp;z_(w,oe,W,ye),vo=!1,We=w.memoizedState,oe.state=We,yh(w,W,oe,G);var gt=w.memoizedState;me!==Xe||We!==gt||Bn.current||vo?(typeof ot==&quot;function&quot;&amp;&amp;(Hg(w,M,ot,W),gt=w.memoizedState),(Te=vo||B_(w,M,Te,W,We,gt,ye)||!1)?(He||typeof oe.UNSAFE_componentWillUpdate!=&quot;function&quot;&amp;&amp;typeof oe.componentWillUpdate!=&quot;function&quot;||(typeof oe.componentWillUpdate==&quot;function&quot;&amp;&amp;oe.componentWillUpdate(W,gt,ye),typeof oe.UNSAFE_componentWillUpdate==&quot;function&quot;&amp;&amp;oe.UNSAFE_componentWillUpdate(W,gt,ye)),typeof oe.componentDidUpdate==&quot;function&quot;&amp;&amp;(w.flags|=4),typeof oe.getSnapshotBeforeUpdate==&quot;function&quot;&amp;&amp;(w.flags|=1024)):(typeof oe.componentDidUpdate!=&quot;function&quot;||me===b.memoizedProps&amp;&amp;We===b.memoizedState||(w.flags|=4),typeof oe.getSnapshotBeforeUpdate!=&quot;function&quot;||me===b.memoizedProps&amp;&amp;We===b.memoizedState||(w.flags|=1024),w.memoizedProps=W,w.memoizedState=gt),oe.props=W,oe.state=gt,oe.context=ye,W=Te):(typeof oe.componentDidUpdate!=&quot;function&quot;||me===b.memoizedProps&amp;&amp;We===b.memoizedState||(w.flags|=4),typeof oe.getSnapshotBeforeUpdate!=&quot;function&quot;||me===b.memoizedProps&amp;&amp;We===b.memoizedState||(w.flags|=1024),W=!1)}return Zg(b,w,M,W,ee,G)}function Zg(b,w,M,W,G,ee){Z_(b,w);var oe=(w.flags&amp;128)!==0;if(!W&amp;&amp;!oe)return G&amp;&amp;fh(w,M,!1),wa(b,w,ee);W=w.stateNode,KP.current=w;var me=oe&amp;&amp;typeof M.getDerivedStateFromError!=&quot;function&quot;?null:W.render();return w.flags|=1,b!==null&amp;&amp;oe?(w.child=wc(w,b.child,null,ee),w.child=wc(w,null,me,ee)):ti(b,w,me,ee),w.memoizedState=W.state,G&amp;&amp;fh(w,M,!0),w.child}function J_(b){var w=b.stateNode;w.pendingContext?uh(b,w.pendingContext,w.pendingContext!==w.context):w.context&amp;&amp;uh(b,w.context,!1),Ig(b,w.containerInfo)}function ej(b,w,M,W,G){return vc(),Cg(G),w.flags|=256,ti(b,w,M,W),w.child}var Qg={dehydrated:null,treeContext:null,retryLane:0};function Jg(b){return{baseLanes:b,cachePool:null,transitions:null}}function tj(b,w,M){var W=w.pendingProps,G=Dr.current,ee=!1,oe=(w.flags&amp;128)!==0,me;if((me=oe)||(me=b!==null&amp;&amp;b.memoizedState===null?!1:(G&amp;2)!==0),me?(ee=!0,w.flags&amp;=-129):(b===null||b.memoizedState!==null)&amp;&amp;(G|=1),yr(Dr,G&amp;1),b===null)return Sg(w),b=w.memoizedState,b!==null&amp;&amp;(b=b.dehydrated,b!==null)?((w.mode&amp;1)===0?w.lanes=1:b.data===&quot;$!&quot;?w.lanes=8:w.lanes=1073741824,null):(oe=W.children,b=W.fallback,ee?(W=w.mode,ee=w.child,oe={mode:&quot;hidden&quot;,children:oe},(W&amp;1)===0&amp;&amp;ee!==null?(ee.childLanes=0,ee.pendingProps=oe):ee=$h(oe,W,0,null),b=wl(b,W,M,null),ee.return=w,b.return=w,ee.sibling=b,w.child=ee,w.child.memoizedState=Jg(M),w.memoizedState=Qg,b):ex(w,oe));if(G=b.memoizedState,G!==null&amp;&amp;(me=G.dehydrated,me!==null))return XP(b,w,oe,W,me,G,M);if(ee){ee=W.fallback,oe=w.mode,G=b.child,me=G.sibling;var ye={mode:&quot;hidden&quot;,children:W.children};return(oe&amp;1)===0&amp;&amp;w.child!==G?(W=w.child,W.childLanes=0,W.pendingProps=ye,w.deletions=null):(W=Co(G,ye),W.subtreeFlags=G.subtreeFlags&amp;14680064),me!==null?ee=Co(me,ee):(ee=wl(ee,oe,M,null),ee.flags|=2),ee.return=w,W.return=w,W.sibling=ee,w.child=W,W=ee,ee=w.child,oe=b.child.memoizedState,oe=oe===null?Jg(M):{baseLanes:oe.baseLanes|M,cachePool:null,transitions:oe.transitions},ee.memoizedState=oe,ee.childLanes=b.childLanes&amp;~M,w.memoizedState=Qg,W}return ee=b.child,b=ee.sibling,W=Co(ee,{mode:&quot;visible&quot;,children:W.children}),(w.mode&amp;1)===0&amp;&amp;(W.lanes=M),W.return=w,W.sibling=null,b!==null&amp;&amp;(M=w.deletions,M===null?(w.deletions=[b],w.flags|=16):M.push(b)),w.child=W,w.memoizedState=null,W}function ex(b,w){return w=$h({mode:&quot;visible&quot;,children:w},b.mode,0,null),w.return=b,b.child=w}function Ch(b,w,M,W){return W!==null&amp;&amp;Cg(W),wc(w,b.child,null,M),b=ex(w,w.pendingProps.children),b.flags|=2,w.memoizedState=null,b}function XP(b,w,M,W,G,ee,oe){if(M)return w.flags&amp;256?(w.flags&amp;=-257,W=Xg(Error(t(422))),Ch(b,w,oe,W)):w.memoizedState!==null?(w.child=b.child,w.flags|=128,null):(ee=W.fallback,G=w.mode,W=$h({mode:&quot;visible&quot;,children:W.children},G,0,null),ee=wl(ee,G,oe,null),ee.flags|=2,W.return=w,ee.return=w,W.sibling=ee,w.child=W,(w.mode&amp;1)!==0&amp;&amp;wc(w,b.child,null,oe),w.child.memoizedState=Jg(oe),w.memoizedState=Qg,ee);if((w.mode&amp;1)===0)return Ch(b,w,oe,null);if(G.data===&quot;$!&quot;){if(W=G.nextSibling&amp;&amp;G.nextSibling.dataset,W)var me=W.dgst;return W=me,ee=Error(t(419)),W=Xg(ee,W,void 0),Ch(b,w,oe,W)}if(me=(oe&amp;b.childLanes)!==0,gi||me){if(W=bn,W!==null){switch(oe&amp;-oe){case 4:G=2;break;case 16:G=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:G=32;break;case 536870912:G=268435456;break;default:G=0}G=(G&amp;(W.suspendedLanes|oe))!==0?0:G,G!==0&amp;&amp;G!==ee.retryLane&amp;&amp;(ee.retryLane=G,ya(b,G),ys(W,b,G,-1))}return gx(),W=Xg(Error(t(421))),Ch(b,w,oe,W)}return G.data===&quot;$?&quot;?(w.flags|=128,w.child=b.child,w=oO.bind(null,b),G._reactRetry=w,null):(b=ee.treeContext,Pi=zs(G.nextSibling),Mi=w,Or=!0,ps=null,b!==null&amp;&amp;(ve[$e++]=nr,ve[$e++]=Zt,ve[$e++]=Be,nr=b.id,Zt=b.overflow,Be=w),w=ex(w,W.children),w.flags|=4096,w)}function rj(b,w,M){b.lanes|=w;var W=b.alternate;W!==null&amp;&amp;(W.lanes|=w),Pg(b.return,w,M)}function tx(b,w,M,W,G){var ee=b.memoizedState;ee===null?b.memoizedState={isBackwards:w,rendering:null,renderingStartTime:0,last:W,tail:M,tailMode:G}:(ee.isBackwards=w,ee.rendering=null,ee.renderingStartTime=0,ee.last=W,ee.tail=M,ee.tailMode=G)}function nj(b,w,M){var W=w.pendingProps,G=W.revealOrder,ee=W.tail;if(ti(b,w,W.children,M),W=Dr.current,(W&amp;2)!==0)W=W&amp;1|2,w.flags|=128;else{if(b!==null&amp;&amp;(b.flags&amp;128)!==0)e:for(b=w.child;b!==null;){if(b.tag===13)b.memoizedState!==null&amp;&amp;rj(b,M,w);else if(b.tag===19)rj(b,M,w);else if(b.child!==null){b.child.return=b,b=b.child;continue}if(b===w)break e;for(;b.sibling===null;){if(b.return===null||b.return===w)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}W&amp;=1}if(yr(Dr,W),(w.mode&amp;1)===0)w.memoizedState=null;else switch(G){case&quot;forwards&quot;:for(M=w.child,G=null;M!==null;)b=M.alternate,b!==null&amp;&amp;vh(b)===null&amp;&amp;(G=M),M=M.sibling;M=G,M===null?(G=w.child,w.child=null):(G=M.sibling,M.sibling=null),tx(w,!1,G,M,ee);break;case&quot;backwards&quot;:for(M=null,G=w.child,w.child=null;G!==null;){if(b=G.alternate,b!==null&amp;&amp;vh(b)===null){w.child=G;break}b=G.sibling,G.sibling=M,M=G,G=b}tx(w,!0,M,null,ee);break;case&quot;together&quot;:tx(w,!1,null,null,void 0);break;default:w.memoizedState=null}return w.child}function Eh(b,w){(w.mode&amp;1)===0&amp;&amp;b!==null&amp;&amp;(b.alternate=null,w.alternate=null,w.flags|=2)}function wa(b,w,M){if(b!==null&amp;&amp;(w.dependencies=b.dependencies),xl|=w.lanes,(M&amp;w.childLanes)===0)return null;if(b!==null&amp;&amp;w.child!==b.child)throw Error(t(153));if(w.child!==null){for(b=w.child,M=Co(b,b.pendingProps),w.child=M,M.return=w;b.sibling!==null;)b=b.sibling,M=M.sibling=Co(b,b.pendingProps),M.return=w;M.sibling=null}return w.child}function GP(b,w,M){switch(w.tag){case 3:J_(w),vc();break;case 5:x_(w);break;case 1:$n(w.type)&amp;&amp;gc(w);break;case 4:Ig(w,w.stateNode.containerInfo);break;case 10:var W=w.type._context,G=w.memoizedProps.value;yr(gh,W._currentValue),W._currentValue=G;break;case 13:if(W=w.memoizedState,W!==null)return W.dehydrated!==null?(yr(Dr,Dr.current&amp;1),w.flags|=128,null):(M&amp;w.child.childLanes)!==0?tj(b,w,M):(yr(Dr,Dr.current&amp;1),b=wa(b,w,M),b!==null?b.sibling:null);yr(Dr,Dr.current&amp;1);break;case 19:if(W=(M&amp;w.childLanes)!==0,(b.flags&amp;128)!==0){if(W)return nj(b,w,M);w.flags|=128}if(G=w.memoizedState,G!==null&amp;&amp;(G.rendering=null,G.tail=null,G.lastEffect=null),yr(Dr,Dr.current),W)break;return null;case 22:case 23:return w.lanes=0,Y_(b,w,M)}return wa(b,w,M)}var ij,rx,sj,aj;ij=function(b,w){for(var M=w.child;M!==null;){if(M.tag===5||M.tag===6)b.appendChild(M.stateNode);else if(M.tag!==4&amp;&amp;M.child!==null){M.child.return=M,M=M.child;continue}if(M===w)break;for(;M.sibling===null;){if(M.return===null||M.return===w)return;M=M.return}M.sibling.return=M.return,M=M.sibling}},rx=function(){},sj=function(b,w,M,W){var G=b.memoizedProps;if(G!==W){b=w.stateNode,pl(Hs.current);var ee=null;switch(M){case&quot;input&quot;:G=ie(b,G),W=ie(b,W),ee=[];break;case&quot;select&quot;:G=P({},G,{value:void 0}),W=P({},W,{value:void 0}),ee=[];break;case&quot;textarea&quot;:G=pe(b,G),W=pe(b,W),ee=[];break;default:typeof G.onClick!=&quot;function&quot;&amp;&amp;typeof W.onClick==&quot;function&quot;&amp;&amp;(b.onclick=fc)}nt(M,W);var oe;M=null;for(Te in G)if(!W.hasOwnProperty(Te)&amp;&amp;G.hasOwnProperty(Te)&amp;&amp;G[Te]!=null)if(Te===&quot;style&quot;){var me=G[Te];for(oe in me)me.hasOwnProperty(oe)&amp;&amp;(M||(M={}),M[oe]=&quot;&quot;)}else Te!==&quot;dangerouslySetInnerHTML&quot;&amp;&amp;Te!==&quot;children&quot;&amp;&amp;Te!==&quot;suppressContentEditableWarning&quot;&amp;&amp;Te!==&quot;suppressHydrationWarning&quot;&amp;&amp;Te!==&quot;autoFocus&quot;&amp;&amp;(o.hasOwnProperty(Te)?ee||(ee=[]):(ee=ee||[]).push(Te,null));for(Te in W){var ye=W[Te];if(me=G?.[Te],W.hasOwnProperty(Te)&amp;&amp;ye!==me&amp;&amp;(ye!=null||me!=null))if(Te===&quot;style&quot;)if(me){for(oe in me)!me.hasOwnProperty(oe)||ye&amp;&amp;ye.hasOwnProperty(oe)||(M||(M={}),M[oe]=&quot;&quot;);for(oe in ye)ye.hasOwnProperty(oe)&amp;&amp;me[oe]!==ye[oe]&amp;&amp;(M||(M={}),M[oe]=ye[oe])}else M||(ee||(ee=[]),ee.push(Te,M)),M=ye;else Te===&quot;dangerouslySetInnerHTML&quot;?(ye=ye?ye.__html:void 0,me=me?me.__html:void 0,ye!=null&amp;&amp;me!==ye&amp;&amp;(ee=ee||[]).push(Te,ye)):Te===&quot;children&quot;?typeof ye!=&quot;string&quot;&amp;&amp;typeof ye!=&quot;number&quot;||(ee=ee||[]).push(Te,&quot;&quot;+ye):Te!==&quot;suppressContentEditableWarning&quot;&amp;&amp;Te!==&quot;suppressHydrationWarning&quot;&amp;&amp;(o.hasOwnProperty(Te)?(ye!=null&amp;&amp;Te===&quot;onScroll&quot;&amp;&amp;jr(&quot;scroll&quot;,b),ee||me===ye||(ee=[])):(ee=ee||[]).push(Te,ye))}M&amp;&amp;(ee=ee||[]).push(&quot;style&quot;,M);var Te=ee;(w.updateQueue=Te)&amp;&amp;(w.flags|=4)}},aj=function(b,w,M,W){M!==W&amp;&amp;(w.flags|=4)};function od(b,w){if(!Or)switch(b.tailMode){case&quot;hidden&quot;:w=b.tail;for(var M=null;w!==null;)w.alternate!==null&amp;&amp;(M=w),w=w.sibling;M===null?b.tail=null:M.sibling=null;break;case&quot;collapsed&quot;:M=b.tail;for(var W=null;M!==null;)M.alternate!==null&amp;&amp;(W=M),M=M.sibling;W===null?w||b.tail===null?b.tail=null:b.tail.sibling=null:W.sibling=null}}function Un(b){var w=b.alternate!==null&amp;&amp;b.alternate.child===b.child,M=0,W=0;if(w)for(var G=b.child;G!==null;)M|=G.lanes|G.childLanes,W|=G.subtreeFlags&amp;14680064,W|=G.flags&amp;14680064,G.return=b,G=G.sibling;else for(G=b.child;G!==null;)M|=G.lanes|G.childLanes,W|=G.subtreeFlags,W|=G.flags,G.return=b,G=G.sibling;return b.subtreeFlags|=W,b.childLanes=M,w}function YP(b,w,M){var W=w.pendingProps;switch(Ng(w),w.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Un(w),null;case 1:return $n(w.type)&amp;&amp;pc(),Un(w),null;case 3:return W=w.stateNode,Nc(),Nr(Bn),Nr(gn),Lg(),W.pendingContext&amp;&amp;(W.context=W.pendingContext,W.pendingContext=null),(b===null||b.child===null)&amp;&amp;(mh(w)?w.flags|=4:b===null||b.memoizedState.isDehydrated&amp;&amp;(w.flags&amp;256)===0||(w.flags|=1024,ps!==null&amp;&amp;(hx(ps),ps=null))),rx(b,w),Un(w),null;case 5:Rg(w);var G=pl(rd.current);if(M=w.type,b!==null&amp;&amp;w.stateNode!=null)sj(b,w,M,W,G),b.ref!==w.ref&amp;&amp;(w.flags|=512,w.flags|=2097152);else{if(!W){if(w.stateNode===null)throw Error(t(166));return Un(w),null}if(b=pl(Hs.current),mh(w)){W=w.stateNode,M=w.type;var ee=w.memoizedProps;switch(W[Ui]=w,W[fl]=ee,b=(w.mode&amp;1)!==0,M){case&quot;dialog&quot;:jr(&quot;cancel&quot;,W),jr(&quot;close&quot;,W);break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:jr(&quot;load&quot;,W);break;case&quot;video&quot;:case&quot;audio&quot;:for(G=0;G&lt;ul.length;G++)jr(ul[G],W);break;case&quot;source&quot;:jr(&quot;error&quot;,W);break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:jr(&quot;error&quot;,W),jr(&quot;load&quot;,W);break;case&quot;details&quot;:jr(&quot;toggle&quot;,W);break;case&quot;input&quot;:de(W,ee),jr(&quot;invalid&quot;,W);break;case&quot;select&quot;:W._wrapperState={wasMultiple:!!ee.multiple},jr(&quot;invalid&quot;,W);break;case&quot;textarea&quot;:ue(W,ee),jr(&quot;invalid&quot;,W)}nt(M,ee),G=null;for(var oe in ee)if(ee.hasOwnProperty(oe)){var me=ee[oe];oe===&quot;children&quot;?typeof me==&quot;string&quot;?W.textContent!==me&amp;&amp;(ee.suppressHydrationWarning!==!0&amp;&amp;dc(W.textContent,me,b),G=[&quot;children&quot;,me]):typeof me==&quot;number&quot;&amp;&amp;W.textContent!==&quot;&quot;+me&amp;&amp;(ee.suppressHydrationWarning!==!0&amp;&amp;dc(W.textContent,me,b),G=[&quot;children&quot;,&quot;&quot;+me]):o.hasOwnProperty(oe)&amp;&amp;me!=null&amp;&amp;oe===&quot;onScroll&quot;&amp;&amp;jr(&quot;scroll&quot;,W)}switch(M){case&quot;input&quot;:re(W),fe(W,ee,!0);break;case&quot;textarea&quot;:re(W),ke(W);break;case&quot;select&quot;:case&quot;option&quot;:break;default:typeof ee.onClick==&quot;function&quot;&amp;&amp;(W.onclick=fc)}W=G,w.updateQueue=W,W!==null&amp;&amp;(w.flags|=4)}else{oe=G.nodeType===9?G:G.ownerDocument,b===&quot;http://www.w3.org/1999/xhtml&quot;&amp;&amp;(b=De(M)),b===&quot;http://www.w3.org/1999/xhtml&quot;?M===&quot;script&quot;?(b=oe.createElement(&quot;div&quot;),b.innerHTML=&quot;&lt;script&gt;&lt;\/script&gt;&quot;,b=b.removeChild(b.firstChild)):typeof W.is==&quot;string&quot;?b=oe.createElement(M,{is:W.is}):(b=oe.createElement(M),M===&quot;select&quot;&amp;&amp;(oe=b,W.multiple?oe.multiple=!0:W.size&amp;&amp;(oe.size=W.size))):b=oe.createElementNS(b,M),b[Ui]=w,b[fl]=W,ij(b,w,!1,!1),w.stateNode=b;e:{switch(oe=Me(M,W),M){case&quot;dialog&quot;:jr(&quot;cancel&quot;,b),jr(&quot;close&quot;,b),G=W;break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:jr(&quot;load&quot;,b),G=W;break;case&quot;video&quot;:case&quot;audio&quot;:for(G=0;G&lt;ul.length;G++)jr(ul[G],b);G=W;break;case&quot;source&quot;:jr(&quot;error&quot;,b),G=W;break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:jr(&quot;error&quot;,b),jr(&quot;load&quot;,b),G=W;break;case&quot;details&quot;:jr(&quot;toggle&quot;,b),G=W;break;case&quot;input&quot;:de(b,W),G=ie(b,W),jr(&quot;invalid&quot;,b);break;case&quot;option&quot;:G=W;break;case&quot;select&quot;:b._wrapperState={wasMultiple:!!W.multiple},G=P({},W,{value:void 0}),jr(&quot;invalid&quot;,b);break;case&quot;textarea&quot;:ue(b,W),G=pe(b,W),jr(&quot;invalid&quot;,b);break;default:G=W}nt(M,G),me=G;for(ee in me)if(me.hasOwnProperty(ee)){var ye=me[ee];ee===&quot;style&quot;?qe(b,ye):ee===&quot;dangerouslySetInnerHTML&quot;?(ye=ye?ye.__html:void 0,ye!=null&amp;&amp;Oe(b,ye)):ee===&quot;children&quot;?typeof ye==&quot;string&quot;?(M!==&quot;textarea&quot;||ye!==&quot;&quot;)&amp;&amp;Ve(b,ye):typeof ye==&quot;number&quot;&amp;&amp;Ve(b,&quot;&quot;+ye):ee!==&quot;suppressContentEditableWarning&quot;&amp;&amp;ee!==&quot;suppressHydrationWarning&quot;&amp;&amp;ee!==&quot;autoFocus&quot;&amp;&amp;(o.hasOwnProperty(ee)?ye!=null&amp;&amp;ee===&quot;onScroll&quot;&amp;&amp;jr(&quot;scroll&quot;,b):ye!=null&amp;&amp;_(b,ee,ye,oe))}switch(M){case&quot;input&quot;:re(b),fe(b,W,!1);break;case&quot;textarea&quot;:re(b),ke(b);break;case&quot;option&quot;:W.value!=null&amp;&amp;b.setAttribute(&quot;value&quot;,&quot;&quot;+$(W.value));break;case&quot;select&quot;:b.multiple=!!W.multiple,ee=W.value,ee!=null?xe(b,!!W.multiple,ee,!1):W.defaultValue!=null&amp;&amp;xe(b,!!W.multiple,W.defaultValue,!0);break;default:typeof G.onClick==&quot;function&quot;&amp;&amp;(b.onclick=fc)}switch(M){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:W=!!W.autoFocus;break e;case&quot;img&quot;:W=!0;break e;default:W=!1}}W&amp;&amp;(w.flags|=4)}w.ref!==null&amp;&amp;(w.flags|=512,w.flags|=2097152)}return Un(w),null;case 6:if(b&amp;&amp;w.stateNode!=null)aj(b,w,b.memoizedProps,W);else{if(typeof W!=&quot;string&quot;&amp;&amp;w.stateNode===null)throw Error(t(166));if(M=pl(rd.current),pl(Hs.current),mh(w)){if(W=w.stateNode,M=w.memoizedProps,W[Ui]=w,(ee=W.nodeValue!==M)&amp;&amp;(b=Mi,b!==null))switch(b.tag){case 3:dc(W.nodeValue,M,(b.mode&amp;1)!==0);break;case 5:b.memoizedProps.suppressHydrationWarning!==!0&amp;&amp;dc(W.nodeValue,M,(b.mode&amp;1)!==0)}ee&amp;&amp;(w.flags|=4)}else W=(M.nodeType===9?M:M.ownerDocument).createTextNode(W),W[Ui]=w,w.stateNode=W}return Un(w),null;case 13:if(Nr(Dr),W=w.memoizedState,b===null||b.memoizedState!==null&amp;&amp;b.memoizedState.dehydrated!==null){if(Or&amp;&amp;Pi!==null&amp;&amp;(w.mode&amp;1)!==0&amp;&amp;(w.flags&amp;128)===0)c_(),vc(),w.flags|=98560,ee=!1;else if(ee=mh(w),W!==null&amp;&amp;W.dehydrated!==null){if(b===null){if(!ee)throw Error(t(318));if(ee=w.memoizedState,ee=ee!==null?ee.dehydrated:null,!ee)throw Error(t(317));ee[Ui]=w}else vc(),(w.flags&amp;128)===0&amp;&amp;(w.memoizedState=null),w.flags|=4;Un(w),ee=!1}else ps!==null&amp;&amp;(hx(ps),ps=null),ee=!0;if(!ee)return w.flags&amp;65536?w:null}return(w.flags&amp;128)!==0?(w.lanes=M,w):(W=W!==null,W!==(b!==null&amp;&amp;b.memoizedState!==null)&amp;&amp;W&amp;&amp;(w.child.flags|=8192,(w.mode&amp;1)!==0&amp;&amp;(b===null||(Dr.current&amp;1)!==0?an===0&amp;&amp;(an=3):gx())),w.updateQueue!==null&amp;&amp;(w.flags|=4),Un(w),null);case 4:return Nc(),rx(b,w),b===null&amp;&amp;zi(w.stateNode.containerInfo),Un(w),null;case 10:return Mg(w.type._context),Un(w),null;case 17:return $n(w.type)&amp;&amp;pc(),Un(w),null;case 19:if(Nr(Dr),ee=w.memoizedState,ee===null)return Un(w),null;if(W=(w.flags&amp;128)!==0,oe=ee.rendering,oe===null)if(W)od(ee,!1);else{if(an!==0||b!==null&amp;&amp;(b.flags&amp;128)!==0)for(b=w.child;b!==null;){if(oe=vh(b),oe!==null){for(w.flags|=128,od(ee,!1),W=oe.updateQueue,W!==null&amp;&amp;(w.updateQueue=W,w.flags|=4),w.subtreeFlags=0,W=M,M=w.child;M!==null;)ee=M,b=W,ee.flags&amp;=14680066,oe=ee.alternate,oe===null?(ee.childLanes=0,ee.lanes=b,ee.child=null,ee.subtreeFlags=0,ee.memoizedProps=null,ee.memoizedState=null,ee.updateQueue=null,ee.dependencies=null,ee.stateNode=null):(ee.childLanes=oe.childLanes,ee.lanes=oe.lanes,ee.child=oe.child,ee.subtreeFlags=0,ee.deletions=null,ee.memoizedProps=oe.memoizedProps,ee.memoizedState=oe.memoizedState,ee.updateQueue=oe.updateQueue,ee.type=oe.type,b=oe.dependencies,ee.dependencies=b===null?null:{lanes:b.lanes,firstContext:b.firstContext}),M=M.sibling;return yr(Dr,Dr.current&amp;1|2),w.child}b=b.sibling}ee.tail!==null&amp;&amp;je()&gt;Ec&amp;&amp;(w.flags|=128,W=!0,od(ee,!1),w.lanes=4194304)}else{if(!W)if(b=vh(oe),b!==null){if(w.flags|=128,W=!0,M=b.updateQueue,M!==null&amp;&amp;(w.updateQueue=M,w.flags|=4),od(ee,!0),ee.tail===null&amp;&amp;ee.tailMode===&quot;hidden&quot;&amp;&amp;!oe.alternate&amp;&amp;!Or)return Un(w),null}else 2*je()-ee.renderingStartTime&gt;Ec&amp;&amp;M!==1073741824&amp;&amp;(w.flags|=128,W=!0,od(ee,!1),w.lanes=4194304);ee.isBackwards?(oe.sibling=w.child,w.child=oe):(M=ee.last,M!==null?M.sibling=oe:w.child=oe,ee.last=oe)}return ee.tail!==null?(w=ee.tail,ee.rendering=w,ee.tail=w.sibling,ee.renderingStartTime=je(),w.sibling=null,M=Dr.current,yr(Dr,W?M&amp;1|2:M&amp;1),w):(Un(w),null);case 22:case 23:return px(),W=w.memoizedState!==null,b!==null&amp;&amp;b.memoizedState!==null!==W&amp;&amp;(w.flags|=8192),W&amp;&amp;(w.mode&amp;1)!==0?(Oi&amp;1073741824)!==0&amp;&amp;(Un(w),w.subtreeFlags&amp;6&amp;&amp;(w.flags|=8192)):Un(w),null;case 24:return null;case 25:return null}throw Error(t(156,w.tag))}function ZP(b,w){switch(Ng(w),w.tag){case 1:return $n(w.type)&amp;&amp;pc(),b=w.flags,b&amp;65536?(w.flags=b&amp;-65537|128,w):null;case 3:return Nc(),Nr(Bn),Nr(gn),Lg(),b=w.flags,(b&amp;65536)!==0&amp;&amp;(b&amp;128)===0?(w.flags=b&amp;-65537|128,w):null;case 5:return Rg(w),null;case 13:if(Nr(Dr),b=w.memoizedState,b!==null&amp;&amp;b.dehydrated!==null){if(w.alternate===null)throw Error(t(340));vc()}return b=w.flags,b&amp;65536?(w.flags=b&amp;-65537|128,w):null;case 19:return Nr(Dr),null;case 4:return Nc(),null;case 10:return Mg(w.type._context),null;case 22:case 23:return px(),null;case 24:return null;default:return null}}var Ah=!1,Vn=!1,QP=typeof WeakSet==&quot;function&quot;?WeakSet:Set,ht=null;function Sc(b,w){var M=b.ref;if(M!==null)if(typeof M==&quot;function&quot;)try{M(null)}catch(W){Vr(b,w,W)}else M.current=null}function nx(b,w,M){try{M()}catch(W){Vr(b,w,W)}}var oj=!1;function JP(b,w){if(Hu=Zl,b=Ru(),Du(b)){if(&quot;selectionStart&quot;in b)var M={start:b.selectionStart,end:b.selectionEnd};else e:{M=(M=b.ownerDocument)&amp;&amp;M.defaultView||window;var W=M.getSelection&amp;&amp;M.getSelection();if(W&amp;&amp;W.rangeCount!==0){M=W.anchorNode;var G=W.anchorOffset,ee=W.focusNode;W=W.focusOffset;try{M.nodeType,ee.nodeType}catch{M=null;break e}var oe=0,me=-1,ye=-1,Te=0,He=0,Xe=b,We=null;t:for(;;){for(var ot;Xe!==M||G!==0&amp;&amp;Xe.nodeType!==3||(me=oe+G),Xe!==ee||W!==0&amp;&amp;Xe.nodeType!==3||(ye=oe+W),Xe.nodeType===3&amp;&amp;(oe+=Xe.nodeValue.length),(ot=Xe.firstChild)!==null;)We=Xe,Xe=ot;for(;;){if(Xe===b)break t;if(We===M&amp;&amp;++Te===G&amp;&amp;(me=oe),We===ee&amp;&amp;++He===W&amp;&amp;(ye=oe),(ot=Xe.nextSibling)!==null)break;Xe=We,We=Xe.parentNode}Xe=ot}M=me===-1||ye===-1?null:{start:me,end:ye}}else M=null}M=M||{start:0,end:0}}else M=null;for(Ku={focusedElem:b,selectionRange:M},Zl=!1,ht=w;ht!==null;)if(w=ht,b=w.child,(w.subtreeFlags&amp;1028)!==0&amp;&amp;b!==null)b.return=w,ht=b;else for(;ht!==null;){w=ht;try{var gt=w.alternate;if((w.flags&amp;1024)!==0)switch(w.tag){case 0:case 11:case 15:break;case 1:if(gt!==null){var yt=gt.memoizedProps,Xr=gt.memoizedState,Ee=w.stateNode,_e=Ee.getSnapshotBeforeUpdate(w.elementType===w.type?yt:gs(w.type,yt),Xr);Ee.__reactInternalSnapshotBeforeUpdate=_e}break;case 3:var Pe=w.stateNode.containerInfo;Pe.nodeType===1?Pe.textContent=&quot;&quot;:Pe.nodeType===9&amp;&amp;Pe.documentElement&amp;&amp;Pe.removeChild(Pe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(et){Vr(w,w.return,et)}if(b=w.sibling,b!==null){b.return=w.return,ht=b;break}ht=w.return}return gt=oj,oj=!1,gt}function ld(b,w,M){var W=w.updateQueue;if(W=W!==null?W.lastEffect:null,W!==null){var G=W=W.next;do{if((G.tag&amp;b)===b){var ee=G.destroy;G.destroy=void 0,ee!==void 0&amp;&amp;nx(w,M,ee)}G=G.next}while(G!==W)}}function Mh(b,w){if(w=w.updateQueue,w=w!==null?w.lastEffect:null,w!==null){var M=w=w.next;do{if((M.tag&amp;b)===b){var W=M.create;M.destroy=W()}M=M.next}while(M!==w)}}function ix(b){var w=b.ref;if(w!==null){var M=b.stateNode;b.tag,b=M,typeof w==&quot;function&quot;?w(b):w.current=b}}function lj(b){var w=b.alternate;w!==null&amp;&amp;(b.alternate=null,lj(w)),b.child=null,b.deletions=null,b.sibling=null,b.tag===5&amp;&amp;(w=b.stateNode,w!==null&amp;&amp;(delete w[Ui],delete w[fl],delete w[Zu],delete w[wg],delete w[_g])),b.stateNode=null,b.return=null,b.dependencies=null,b.memoizedProps=null,b.memoizedState=null,b.pendingProps=null,b.stateNode=null,b.updateQueue=null}function cj(b){return b.tag===5||b.tag===3||b.tag===4}function uj(b){e:for(;;){for(;b.sibling===null;){if(b.return===null||cj(b.return))return null;b=b.return}for(b.sibling.return=b.return,b=b.sibling;b.tag!==5&amp;&amp;b.tag!==6&amp;&amp;b.tag!==18;){if(b.flags&amp;2||b.child===null||b.tag===4)continue e;b.child.return=b,b=b.child}if(!(b.flags&amp;2))return b.stateNode}}function sx(b,w,M){var W=b.tag;if(W===5||W===6)b=b.stateNode,w?M.nodeType===8?M.parentNode.insertBefore(b,w):M.insertBefore(b,w):(M.nodeType===8?(w=M.parentNode,w.insertBefore(b,M)):(w=M,w.appendChild(b)),M=M._reactRootContainer,M!=null||w.onclick!==null||(w.onclick=fc));else if(W!==4&amp;&amp;(b=b.child,b!==null))for(sx(b,w,M),b=b.sibling;b!==null;)sx(b,w,M),b=b.sibling}function ax(b,w,M){var W=b.tag;if(W===5||W===6)b=b.stateNode,w?M.insertBefore(b,w):M.appendChild(b);else if(W!==4&amp;&amp;(b=b.child,b!==null))for(ax(b,w,M),b=b.sibling;b!==null;)ax(b,w,M),b=b.sibling}var Mn=null,xs=!1;function _o(b,w,M){for(M=M.child;M!==null;)dj(b,w,M),M=M.sibling}function dj(b,w,M){if(St&amp;&amp;typeof St.onCommitFiberUnmount==&quot;function&quot;)try{St.onCommitFiberUnmount(Dt,M)}catch{}switch(M.tag){case 5:Vn||Sc(M,w);case 6:var W=Mn,G=xs;Mn=null,_o(b,w,M),Mn=W,xs=G,Mn!==null&amp;&amp;(xs?(b=Mn,M=M.stateNode,b.nodeType===8?b.parentNode.removeChild(M):b.removeChild(M)):Mn.removeChild(M.stateNode));break;case 18:Mn!==null&amp;&amp;(xs?(b=Mn,M=M.stateNode,b.nodeType===8?Gu(b.parentNode,M):b.nodeType===1&amp;&amp;Gu(b,M),mi(b)):Gu(Mn,M.stateNode));break;case 4:W=Mn,G=xs,Mn=M.stateNode.containerInfo,xs=!0,_o(b,w,M),Mn=W,xs=G;break;case 0:case 11:case 14:case 15:if(!Vn&amp;&amp;(W=M.updateQueue,W!==null&amp;&amp;(W=W.lastEffect,W!==null))){G=W=W.next;do{var ee=G,oe=ee.destroy;ee=ee.tag,oe!==void 0&amp;&amp;((ee&amp;2)!==0||(ee&amp;4)!==0)&amp;&amp;nx(M,w,oe),G=G.next}while(G!==W)}_o(b,w,M);break;case 1:if(!Vn&amp;&amp;(Sc(M,w),W=M.stateNode,typeof W.componentWillUnmount==&quot;function&quot;))try{W.props=M.memoizedProps,W.state=M.memoizedState,W.componentWillUnmount()}catch(me){Vr(M,w,me)}_o(b,w,M);break;case 21:_o(b,w,M);break;case 22:M.mode&amp;1?(Vn=(W=Vn)||M.memoizedState!==null,_o(b,w,M),Vn=W):_o(b,w,M);break;default:_o(b,w,M)}}function fj(b){var w=b.updateQueue;if(w!==null){b.updateQueue=null;var M=b.stateNode;M===null&amp;&amp;(M=b.stateNode=new QP),w.forEach(function(W){var G=lO.bind(null,b,W);M.has(W)||(M.add(W),W.then(G,G))})}}function bs(b,w){var M=w.deletions;if(M!==null)for(var W=0;W&lt;M.length;W++){var G=M[W];try{var ee=b,oe=w,me=oe;e:for(;me!==null;){switch(me.tag){case 5:Mn=me.stateNode,xs=!1;break e;case 3:Mn=me.stateNode.containerInfo,xs=!0;break e;case 4:Mn=me.stateNode.containerInfo,xs=!0;break e}me=me.return}if(Mn===null)throw Error(t(160));dj(ee,oe,G),Mn=null,xs=!1;var ye=G.alternate;ye!==null&amp;&amp;(ye.return=null),G.return=null}catch(Te){Vr(G,w,Te)}}if(w.subtreeFlags&amp;12854)for(w=w.child;w!==null;)hj(w,b),w=w.sibling}function hj(b,w){var M=b.alternate,W=b.flags;switch(b.tag){case 0:case 11:case 14:case 15:if(bs(w,b),Xs(b),W&amp;4){try{ld(3,b,b.return),Mh(3,b)}catch(yt){Vr(b,b.return,yt)}try{ld(5,b,b.return)}catch(yt){Vr(b,b.return,yt)}}break;case 1:bs(w,b),Xs(b),W&amp;512&amp;&amp;M!==null&amp;&amp;Sc(M,M.return);break;case 5:if(bs(w,b),Xs(b),W&amp;512&amp;&amp;M!==null&amp;&amp;Sc(M,M.return),b.flags&amp;32){var G=b.stateNode;try{Ve(G,&quot;&quot;)}catch(yt){Vr(b,b.return,yt)}}if(W&amp;4&amp;&amp;(G=b.stateNode,G!=null)){var ee=b.memoizedProps,oe=M!==null?M.memoizedProps:ee,me=b.type,ye=b.updateQueue;if(b.updateQueue=null,ye!==null)try{me===&quot;input&quot;&amp;&amp;ee.type===&quot;radio&quot;&amp;&amp;ee.name!=null&amp;&amp;ce(G,ee),Me(me,oe);var Te=Me(me,ee);for(oe=0;oe&lt;ye.length;oe+=2){var He=ye[oe],Xe=ye[oe+1];He===&quot;style&quot;?qe(G,Xe):He===&quot;dangerouslySetInnerHTML&quot;?Oe(G,Xe):He===&quot;children&quot;?Ve(G,Xe):_(G,He,Xe,Te)}switch(me){case&quot;input&quot;:se(G,ee);break;case&quot;textarea&quot;:we(G,ee);break;case&quot;select&quot;:var We=G._wrapperState.wasMultiple;G._wrapperState.wasMultiple=!!ee.multiple;var ot=ee.value;ot!=null?xe(G,!!ee.multiple,ot,!1):We!==!!ee.multiple&amp;&amp;(ee.defaultValue!=null?xe(G,!!ee.multiple,ee.defaultValue,!0):xe(G,!!ee.multiple,ee.multiple?[]:&quot;&quot;,!1))}G[fl]=ee}catch(yt){Vr(b,b.return,yt)}}break;case 6:if(bs(w,b),Xs(b),W&amp;4){if(b.stateNode===null)throw Error(t(162));G=b.stateNode,ee=b.memoizedProps;try{G.nodeValue=ee}catch(yt){Vr(b,b.return,yt)}}break;case 3:if(bs(w,b),Xs(b),W&amp;4&amp;&amp;M!==null&amp;&amp;M.memoizedState.isDehydrated)try{mi(w.containerInfo)}catch(yt){Vr(b,b.return,yt)}break;case 4:bs(w,b),Xs(b);break;case 13:bs(w,b),Xs(b),G=b.child,G.flags&amp;8192&amp;&amp;(ee=G.memoizedState!==null,G.stateNode.isHidden=ee,!ee||G.alternate!==null&amp;&amp;G.alternate.memoizedState!==null||(cx=je())),W&amp;4&amp;&amp;fj(b);break;case 22:if(He=M!==null&amp;&amp;M.memoizedState!==null,b.mode&amp;1?(Vn=(Te=Vn)||He,bs(w,b),Vn=Te):bs(w,b),Xs(b),W&amp;8192){if(Te=b.memoizedState!==null,(b.stateNode.isHidden=Te)&amp;&amp;!He&amp;&amp;(b.mode&amp;1)!==0)for(ht=b,He=b.child;He!==null;){for(Xe=ht=He;ht!==null;){switch(We=ht,ot=We.child,We.tag){case 0:case 11:case 14:case 15:ld(4,We,We.return);break;case 1:Sc(We,We.return);var gt=We.stateNode;if(typeof gt.componentWillUnmount==&quot;function&quot;){W=We,M=We.return;try{w=W,gt.props=w.memoizedProps,gt.state=w.memoizedState,gt.componentWillUnmount()}catch(yt){Vr(W,M,yt)}}break;case 5:Sc(We,We.return);break;case 22:if(We.memoizedState!==null){gj(Xe);continue}}ot!==null?(ot.return=We,ht=ot):gj(Xe)}He=He.sibling}e:for(He=null,Xe=b;;){if(Xe.tag===5){if(He===null){He=Xe;try{G=Xe.stateNode,Te?(ee=G.style,typeof ee.setProperty==&quot;function&quot;?ee.setProperty(&quot;display&quot;,&quot;none&quot;,&quot;important&quot;):ee.display=&quot;none&quot;):(me=Xe.stateNode,ye=Xe.memoizedProps.style,oe=ye!=null&amp;&amp;ye.hasOwnProperty(&quot;display&quot;)?ye.display:null,me.style.display=Je(&quot;display&quot;,oe))}catch(yt){Vr(b,b.return,yt)}}}else if(Xe.tag===6){if(He===null)try{Xe.stateNode.nodeValue=Te?&quot;&quot;:Xe.memoizedProps}catch(yt){Vr(b,b.return,yt)}}else if((Xe.tag!==22&amp;&amp;Xe.tag!==23||Xe.memoizedState===null||Xe===b)&amp;&amp;Xe.child!==null){Xe.child.return=Xe,Xe=Xe.child;continue}if(Xe===b)break e;for(;Xe.sibling===null;){if(Xe.return===null||Xe.return===b)break e;He===Xe&amp;&amp;(He=null),Xe=Xe.return}He===Xe&amp;&amp;(He=null),Xe.sibling.return=Xe.return,Xe=Xe.sibling}}break;case 19:bs(w,b),Xs(b),W&amp;4&amp;&amp;fj(b);break;case 21:break;default:bs(w,b),Xs(b)}}function Xs(b){var w=b.flags;if(w&amp;2){try{e:{for(var M=b.return;M!==null;){if(cj(M)){var W=M;break e}M=M.return}throw Error(t(160))}switch(W.tag){case 5:var G=W.stateNode;W.flags&amp;32&amp;&amp;(Ve(G,&quot;&quot;),W.flags&amp;=-33);var ee=uj(b);ax(b,ee,G);break;case 3:case 4:var oe=W.stateNode.containerInfo,me=uj(b);sx(b,me,oe);break;default:throw Error(t(161))}}catch(ye){Vr(b,b.return,ye)}b.flags&amp;=-3}w&amp;4096&amp;&amp;(b.flags&amp;=-4097)}function eO(b,w,M){ht=b,mj(b)}function mj(b,w,M){for(var W=(b.mode&amp;1)!==0;ht!==null;){var G=ht,ee=G.child;if(G.tag===22&amp;&amp;W){var oe=G.memoizedState!==null||Ah;if(!oe){var me=G.alternate,ye=me!==null&amp;&amp;me.memoizedState!==null||Vn;me=Ah;var Te=Vn;if(Ah=oe,(Vn=ye)&amp;&amp;!Te)for(ht=G;ht!==null;)oe=ht,ye=oe.child,oe.tag===22&amp;&amp;oe.memoizedState!==null?xj(G):ye!==null?(ye.return=oe,ht=ye):xj(G);for(;ee!==null;)ht=ee,mj(ee),ee=ee.sibling;ht=G,Ah=me,Vn=Te}pj(b)}else(G.subtreeFlags&amp;8772)!==0&amp;&amp;ee!==null?(ee.return=G,ht=ee):pj(b)}}function pj(b){for(;ht!==null;){var w=ht;if((w.flags&amp;8772)!==0){var M=w.alternate;try{if((w.flags&amp;8772)!==0)switch(w.tag){case 0:case 11:case 15:Vn||Mh(5,w);break;case 1:var W=w.stateNode;if(w.flags&amp;4&amp;&amp;!Vn)if(M===null)W.componentDidMount();else{var G=w.elementType===w.type?M.memoizedProps:gs(w.type,M.memoizedProps);W.componentDidUpdate(G,M.memoizedState,W.__reactInternalSnapshotBeforeUpdate)}var ee=w.updateQueue;ee!==null&amp;&amp;g_(w,ee,W);break;case 3:var oe=w.updateQueue;if(oe!==null){if(M=null,w.child!==null)switch(w.child.tag){case 5:M=w.child.stateNode;break;case 1:M=w.child.stateNode}g_(w,oe,M)}break;case 5:var me=w.stateNode;if(M===null&amp;&amp;w.flags&amp;4){M=me;var ye=w.memoizedProps;switch(w.type){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:ye.autoFocus&amp;&amp;M.focus();break;case&quot;img&quot;:ye.src&amp;&amp;(M.src=ye.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(w.memoizedState===null){var Te=w.alternate;if(Te!==null){var He=Te.memoizedState;if(He!==null){var Xe=He.dehydrated;Xe!==null&amp;&amp;mi(Xe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Vn||w.flags&amp;512&amp;&amp;ix(w)}catch(We){Vr(w,w.return,We)}}if(w===b){ht=null;break}if(M=w.sibling,M!==null){M.return=w.return,ht=M;break}ht=w.return}}function gj(b){for(;ht!==null;){var w=ht;if(w===b){ht=null;break}var M=w.sibling;if(M!==null){M.return=w.return,ht=M;break}ht=w.return}}function xj(b){for(;ht!==null;){var w=ht;try{switch(w.tag){case 0:case 11:case 15:var M=w.return;try{Mh(4,w)}catch(ye){Vr(w,M,ye)}break;case 1:var W=w.stateNode;if(typeof W.componentDidMount==&quot;function&quot;){var G=w.return;try{W.componentDidMount()}catch(ye){Vr(w,G,ye)}}var ee=w.return;try{ix(w)}catch(ye){Vr(w,ee,ye)}break;case 5:var oe=w.return;try{ix(w)}catch(ye){Vr(w,oe,ye)}}}catch(ye){Vr(w,w.return,ye)}if(w===b){ht=null;break}var me=w.sibling;if(me!==null){me.return=w.return,ht=me;break}ht=w.return}}var tO=Math.ceil,Ph=S.ReactCurrentDispatcher,ox=S.ReactCurrentOwner,Wi=S.ReactCurrentBatchConfig,or=0,bn=null,Qr=null,Pn=0,Oi=0,Cc=Vs(0),an=0,cd=null,xl=0,Oh=0,lx=0,ud=null,xi=null,cx=0,Ec=1/0,_a=null,Th=!1,ux=null,jo=null,Ih=!1,No=null,Rh=0,dd=0,dx=null,Dh=-1,Lh=0;function ri(){return(or&amp;6)!==0?je():Dh!==-1?Dh:Dh=je()}function ko(b){return(b.mode&amp;1)===0?1:(or&amp;2)!==0&amp;&amp;Pn!==0?Pn&amp;-Pn:FP.transition!==null?(Lh===0&amp;&amp;(Lh=ar()),Lh):(b=It,b!==0||(b=window.event,b=b===void 0?16:Nu(b.type)),b)}function ys(b,w,M,W){if(50&lt;dd)throw dd=0,dx=null,Error(t(185));Ln(b,M,W),((or&amp;2)===0||b!==bn)&amp;&amp;(b===bn&amp;&amp;((or&amp;2)===0&amp;&amp;(Oh|=M),an===4&amp;&amp;So(b,Pn)),bi(b,W),M===1&amp;&amp;or===0&amp;&amp;(w.mode&amp;1)===0&amp;&amp;(Ec=je()+500,go&amp;&amp;Ws()))}function bi(b,w){var M=b.callbackNode;cs(b,w);var W=Gn(b,b===bn?Pn:0);if(W===0)M!==null&amp;&amp;fr(M),b.callbackNode=null,b.callbackPriority=0;else if(w=W&amp;-W,b.callbackPriority!==w){if(M!=null&amp;&amp;fr(M),w===1)b.tag===0?hh(yj.bind(null,b)):bc(yj.bind(null,b)),yg(function(){(or&amp;6)===0&amp;&amp;Ws()}),M=null;else{switch(di(W)){case 1:M=Ue;break;case 4:M=lt;break;case 16:M=Ke;break;case 536870912:M=Ht;break;default:M=Ke}M=Cj(M,bj.bind(null,b))}b.callbackPriority=w,b.callbackNode=M}}function bj(b,w){if(Dh=-1,Lh=0,(or&amp;6)!==0)throw Error(t(327));var M=b.callbackNode;if(Ac()&amp;&amp;b.callbackNode!==M)return null;var W=Gn(b,b===bn?Pn:0);if(W===0)return null;if((W&amp;30)!==0||(W&amp;b.expiredLanes)!==0||w)w=Fh(b,W);else{w=W;var G=or;or|=2;var ee=wj();(bn!==b||Pn!==w)&amp;&amp;(_a=null,Ec=je()+500,yl(b,w));do try{iO();break}catch(me){vj(b,me)}while(!0);Ag(),Ph.current=ee,or=G,Qr!==null?w=0:(bn=null,Pn=0,w=an)}if(w!==0){if(w===2&amp;&amp;(G=Cn(b),G!==0&amp;&amp;(W=G,w=fx(b,G))),w===1)throw M=cd,yl(b,0),So(b,W),bi(b,je()),M;if(w===6)So(b,W);else{if(G=b.current.alternate,(W&amp;30)===0&amp;&amp;!rO(G)&amp;&amp;(w=Fh(b,W),w===2&amp;&amp;(ee=Cn(b),ee!==0&amp;&amp;(W=ee,w=fx(b,ee))),w===1))throw M=cd,yl(b,0),So(b,W),bi(b,je()),M;switch(b.finishedWork=G,b.finishedLanes=W,w){case 0:case 1:throw Error(t(345));case 2:vl(b,xi,_a);break;case 3:if(So(b,W),(W&amp;130023424)===W&amp;&amp;(w=cx+500-je(),10&lt;w)){if(Gn(b,0)!==0)break;if(G=b.suspendedLanes,(G&amp;W)!==W){ri(),b.pingedLanes|=b.suspendedLanes&amp;G;break}b.timeoutHandle=Xu(vl.bind(null,b,xi,_a),w);break}vl(b,xi,_a);break;case 4:if(So(b,W),(W&amp;4194240)===W)break;for(w=b.eventTimes,G=-1;0&lt;W;){var oe=31-Ce(W);ee=1&lt;&lt;oe,oe=w[oe],oe&gt;G&amp;&amp;(G=oe),W&amp;=~ee}if(W=G,W=je()-W,W=(120&gt;W?120:480&gt;W?480:1080&gt;W?1080:1920&gt;W?1920:3e3&gt;W?3e3:4320&gt;W?4320:1960*tO(W/1960))-W,10&lt;W){b.timeoutHandle=Xu(vl.bind(null,b,xi,_a),W);break}vl(b,xi,_a);break;case 5:vl(b,xi,_a);break;default:throw Error(t(329))}}}return bi(b,je()),b.callbackNode===M?bj.bind(null,b):null}function fx(b,w){var M=ud;return b.current.memoizedState.isDehydrated&amp;&amp;(yl(b,w).flags|=256),b=Fh(b,w),b!==2&amp;&amp;(w=xi,xi=M,w!==null&amp;&amp;hx(w)),b}function hx(b){xi===null?xi=b:xi.push.apply(xi,b)}function rO(b){for(var w=b;;){if(w.flags&amp;16384){var M=w.updateQueue;if(M!==null&amp;&amp;(M=M.stores,M!==null))for(var W=0;W&lt;M.length;W++){var G=M[W],ee=G.getSnapshot;G=G.value;try{if(!pi(ee(),G))return!1}catch{return!1}}}if(M=w.child,w.subtreeFlags&amp;16384&amp;&amp;M!==null)M.return=w,w=M;else{if(w===b)break;for(;w.sibling===null;){if(w.return===null||w.return===b)return!0;w=w.return}w.sibling.return=w.return,w=w.sibling}}return!0}function So(b,w){for(w&amp;=~lx,w&amp;=~Oh,b.suspendedLanes|=w,b.pingedLanes&amp;=~w,b=b.expirationTimes;0&lt;w;){var M=31-Ce(w),W=1&lt;&lt;M;b[M]=-1,w&amp;=~W}}function yj(b){if((or&amp;6)!==0)throw Error(t(327));Ac();var w=Gn(b,0);if((w&amp;1)===0)return bi(b,je()),null;var M=Fh(b,w);if(b.tag!==0&amp;&amp;M===2){var W=Cn(b);W!==0&amp;&amp;(w=W,M=fx(b,W))}if(M===1)throw M=cd,yl(b,0),So(b,w),bi(b,je()),M;if(M===6)throw Error(t(345));return b.finishedWork=b.current.alternate,b.finishedLanes=w,vl(b,xi,_a),bi(b,je()),null}function mx(b,w){var M=or;or|=1;try{return b(w)}finally{or=M,or===0&amp;&amp;(Ec=je()+500,go&amp;&amp;Ws())}}function bl(b){No!==null&amp;&amp;No.tag===0&amp;&amp;(or&amp;6)===0&amp;&amp;Ac();var w=or;or|=1;var M=Wi.transition,W=It;try{if(Wi.transition=null,It=1,b)return b()}finally{It=W,Wi.transition=M,or=w,(or&amp;6)===0&amp;&amp;Ws()}}function px(){Oi=Cc.current,Nr(Cc)}function yl(b,w){b.finishedWork=null,b.finishedLanes=0;var M=b.timeoutHandle;if(M!==-1&amp;&amp;(b.timeoutHandle=-1,bg(M)),Qr!==null)for(M=Qr.return;M!==null;){var W=M;switch(Ng(W),W.tag){case 1:W=W.type.childContextTypes,W!=null&amp;&amp;pc();break;case 3:Nc(),Nr(Bn),Nr(gn),Lg();break;case 5:Rg(W);break;case 4:Nc();break;case 13:Nr(Dr);break;case 19:Nr(Dr);break;case 10:Mg(W.type._context);break;case 22:case 23:px()}M=M.return}if(bn=b,Qr=b=Co(b.current,null),Pn=Oi=w,an=0,cd=null,lx=Oh=xl=0,xi=ud=null,ml!==null){for(w=0;w&lt;ml.length;w++)if(M=ml[w],W=M.interleaved,W!==null){M.interleaved=null;var G=W.next,ee=M.pending;if(ee!==null){var oe=ee.next;ee.next=G,W.next=oe}M.pending=W}ml=null}return b}function vj(b,w){do{var M=Qr;try{if(Ag(),wh.current=kh,_h){for(var W=Lr.memoizedState;W!==null;){var G=W.queue;G!==null&amp;&amp;(G.pending=null),W=W.next}_h=!1}if(gl=0,xn=sn=Lr=null,nd=!1,id=0,ox.current=null,M===null||M.return===null){an=1,cd=w,Qr=null;break}e:{var ee=b,oe=M.return,me=M,ye=w;if(w=Pn,me.flags|=32768,ye!==null&amp;&amp;typeof ye==&quot;object&quot;&amp;&amp;typeof ye.then==&quot;function&quot;){var Te=ye,He=me,Xe=He.tag;if((He.mode&amp;1)===0&amp;&amp;(Xe===0||Xe===11||Xe===15)){var We=He.alternate;We?(He.updateQueue=We.updateQueue,He.memoizedState=We.memoizedState,He.lanes=We.lanes):(He.updateQueue=null,He.memoizedState=null)}var ot=W_(oe);if(ot!==null){ot.flags&amp;=-257,H_(ot,oe,me,ee,w),ot.mode&amp;1&amp;&amp;q_(ee,Te,w),w=ot,ye=Te;var gt=w.updateQueue;if(gt===null){var yt=new Set;yt.add(ye),w.updateQueue=yt}else gt.add(ye);break e}else{if((w&amp;1)===0){q_(ee,Te,w),gx();break e}ye=Error(t(426))}}else if(Or&amp;&amp;me.mode&amp;1){var Xr=W_(oe);if(Xr!==null){(Xr.flags&amp;65536)===0&amp;&amp;(Xr.flags|=256),H_(Xr,oe,me,ee,w),Cg(kc(ye,me));break e}}ee=ye=kc(ye,me),an!==4&amp;&amp;(an=2),ud===null?ud=[ee]:ud.push(ee),ee=oe;do{switch(ee.tag){case 3:ee.flags|=65536,w&amp;=-w,ee.lanes|=w;var Ee=U_(ee,ye,w);p_(ee,Ee);break e;case 1:me=ye;var _e=ee.type,Pe=ee.stateNode;if((ee.flags&amp;128)===0&amp;&amp;(typeof _e.getDerivedStateFromError==&quot;function&quot;||Pe!==null&amp;&amp;typeof Pe.componentDidCatch==&quot;function&quot;&amp;&amp;(jo===null||!jo.has(Pe)))){ee.flags|=65536,w&amp;=-w,ee.lanes|=w;var et=V_(ee,me,w);p_(ee,et);break e}}ee=ee.return}while(ee!==null)}jj(M)}catch(Nt){w=Nt,Qr===M&amp;&amp;M!==null&amp;&amp;(Qr=M=M.return);continue}break}while(!0)}function wj(){var b=Ph.current;return Ph.current=kh,b===null?kh:b}function gx(){(an===0||an===3||an===2)&amp;&amp;(an=4),bn===null||(xl&amp;268435455)===0&amp;&amp;(Oh&amp;268435455)===0||So(bn,Pn)}function Fh(b,w){var M=or;or|=2;var W=wj();(bn!==b||Pn!==w)&amp;&amp;(_a=null,yl(b,w));do try{nO();break}catch(G){vj(b,G)}while(!0);if(Ag(),or=M,Ph.current=W,Qr!==null)throw Error(t(261));return bn=null,Pn=0,an}function nO(){for(;Qr!==null;)_j(Qr)}function iO(){for(;Qr!==null&amp;&amp;!Yr();)_j(Qr)}function _j(b){var w=Sj(b.alternate,b,Oi);b.memoizedProps=b.pendingProps,w===null?jj(b):Qr=w,ox.current=null}function jj(b){var w=b;do{var M=w.alternate;if(b=w.return,(w.flags&amp;32768)===0){if(M=YP(M,w,Oi),M!==null){Qr=M;return}}else{if(M=ZP(M,w),M!==null){M.flags&amp;=32767,Qr=M;return}if(b!==null)b.flags|=32768,b.subtreeFlags=0,b.deletions=null;else{an=6,Qr=null;return}}if(w=w.sibling,w!==null){Qr=w;return}Qr=w=b}while(w!==null);an===0&amp;&amp;(an=5)}function vl(b,w,M){var W=It,G=Wi.transition;try{Wi.transition=null,It=1,sO(b,w,M,W)}finally{Wi.transition=G,It=W}return null}function sO(b,w,M,W){do Ac();while(No!==null);if((or&amp;6)!==0)throw Error(t(327));M=b.finishedWork;var G=b.finishedLanes;if(M===null)return null;if(b.finishedWork=null,b.finishedLanes=0,M===b.current)throw Error(t(177));b.callbackNode=null,b.callbackPriority=0;var ee=M.lanes|M.childLanes;if(Zr(b,ee),b===bn&amp;&amp;(Qr=bn=null,Pn=0),(M.subtreeFlags&amp;2064)===0&amp;&amp;(M.flags&amp;2064)===0||Ih||(Ih=!0,Cj(Ke,function(){return Ac(),null})),ee=(M.flags&amp;15990)!==0,(M.subtreeFlags&amp;15990)!==0||ee){ee=Wi.transition,Wi.transition=null;var oe=It;It=1;var me=or;or|=4,ox.current=null,JP(b,M),hj(M,b),fg(Ku),Zl=!!Hu,Ku=Hu=null,b.current=M,eO(M),he(),or=me,It=oe,Wi.transition=ee}else b.current=M;if(Ih&amp;&amp;(Ih=!1,No=b,Rh=G),ee=b.pendingLanes,ee===0&amp;&amp;(jo=null),bt(M.stateNode),bi(b,je()),w!==null)for(W=b.onRecoverableError,M=0;M&lt;w.length;M++)G=w[M],W(G.value,{componentStack:G.stack,digest:G.digest});if(Th)throw Th=!1,b=ux,ux=null,b;return(Rh&amp;1)!==0&amp;&amp;b.tag!==0&amp;&amp;Ac(),ee=b.pendingLanes,(ee&amp;1)!==0?b===dx?dd++:(dd=0,dx=b):dd=0,Ws(),null}function Ac(){if(No!==null){var b=di(Rh),w=Wi.transition,M=It;try{if(Wi.transition=null,It=16&gt;b?16:b,No===null)var W=!1;else{if(b=No,No=null,Rh=0,(or&amp;6)!==0)throw Error(t(331));var G=or;for(or|=4,ht=b.current;ht!==null;){var ee=ht,oe=ee.child;if((ht.flags&amp;16)!==0){var me=ee.deletions;if(me!==null){for(var ye=0;ye&lt;me.length;ye++){var Te=me[ye];for(ht=Te;ht!==null;){var He=ht;switch(He.tag){case 0:case 11:case 15:ld(8,He,ee)}var Xe=He.child;if(Xe!==null)Xe.return=He,ht=Xe;else for(;ht!==null;){He=ht;var We=He.sibling,ot=He.return;if(lj(He),He===Te){ht=null;break}if(We!==null){We.return=ot,ht=We;break}ht=ot}}}var gt=ee.alternate;if(gt!==null){var yt=gt.child;if(yt!==null){gt.child=null;do{var Xr=yt.sibling;yt.sibling=null,yt=Xr}while(yt!==null)}}ht=ee}}if((ee.subtreeFlags&amp;2064)!==0&amp;&amp;oe!==null)oe.return=ee,ht=oe;else e:for(;ht!==null;){if(ee=ht,(ee.flags&amp;2048)!==0)switch(ee.tag){case 0:case 11:case 15:ld(9,ee,ee.return)}var Ee=ee.sibling;if(Ee!==null){Ee.return=ee.return,ht=Ee;break e}ht=ee.return}}var _e=b.current;for(ht=_e;ht!==null;){oe=ht;var Pe=oe.child;if((oe.subtreeFlags&amp;2064)!==0&amp;&amp;Pe!==null)Pe.return=oe,ht=Pe;else e:for(oe=_e;ht!==null;){if(me=ht,(me.flags&amp;2048)!==0)try{switch(me.tag){case 0:case 11:case 15:Mh(9,me)}}catch(Nt){Vr(me,me.return,Nt)}if(me===oe){ht=null;break e}var et=me.sibling;if(et!==null){et.return=me.return,ht=et;break e}ht=me.return}}if(or=G,Ws(),St&amp;&amp;typeof St.onPostCommitFiberRoot==&quot;function&quot;)try{St.onPostCommitFiberRoot(Dt,b)}catch{}W=!0}return W}finally{It=M,Wi.transition=w}}return!1}function Nj(b,w,M){w=kc(M,w),w=U_(b,w,1),b=wo(b,w,1),w=ri(),b!==null&amp;&amp;(Ln(b,1,w),bi(b,w))}function Vr(b,w,M){if(b.tag===3)Nj(b,b,M);else for(;w!==null;){if(w.tag===3){Nj(w,b,M);break}else if(w.tag===1){var W=w.stateNode;if(typeof w.type.getDerivedStateFromError==&quot;function&quot;||typeof W.componentDidCatch==&quot;function&quot;&amp;&amp;(jo===null||!jo.has(W))){b=kc(M,b),b=V_(w,b,1),w=wo(w,b,1),b=ri(),w!==null&amp;&amp;(Ln(w,1,b),bi(w,b));break}}w=w.return}}function aO(b,w,M){var W=b.pingCache;W!==null&amp;&amp;W.delete(w),w=ri(),b.pingedLanes|=b.suspendedLanes&amp;M,bn===b&amp;&amp;(Pn&amp;M)===M&amp;&amp;(an===4||an===3&amp;&amp;(Pn&amp;130023424)===Pn&amp;&amp;500&gt;je()-cx?yl(b,0):lx|=M),bi(b,w)}function kj(b,w){w===0&amp;&amp;((b.mode&amp;1)===0?w=1:(w=Mr,Mr&lt;&lt;=1,(Mr&amp;130023424)===0&amp;&amp;(Mr=4194304)));var M=ri();b=ya(b,w),b!==null&amp;&amp;(Ln(b,w,M),bi(b,M))}function oO(b){var w=b.memoizedState,M=0;w!==null&amp;&amp;(M=w.retryLane),kj(b,M)}function lO(b,w){var M=0;switch(b.tag){case 13:var W=b.stateNode,G=b.memoizedState;G!==null&amp;&amp;(M=G.retryLane);break;case 19:W=b.stateNode;break;default:throw Error(t(314))}W!==null&amp;&amp;W.delete(w),kj(b,M)}var Sj;Sj=function(b,w,M){if(b!==null)if(b.memoizedProps!==w.pendingProps||Bn.current)gi=!0;else{if((b.lanes&amp;M)===0&amp;&amp;(w.flags&amp;128)===0)return gi=!1,GP(b,w,M);gi=(b.flags&amp;131072)!==0}else gi=!1,Or&amp;&amp;(w.flags&amp;1048576)!==0&amp;&amp;yo(w,ae,w.index);switch(w.lanes=0,w.tag){case 2:var W=w.type;Eh(b,w),b=w.pendingProps;var G=po(w,gn.current);jc(w,M),G=$g(null,w,W,b,G,M);var ee=zg();return w.flags|=1,typeof G==&quot;object&quot;&amp;&amp;G!==null&amp;&amp;typeof G.render==&quot;function&quot;&amp;&amp;G.$$typeof===void 0?(w.tag=1,w.memoizedState=null,w.updateQueue=null,$n(W)?(ee=!0,gc(w)):ee=!1,w.memoizedState=G.state!==null&amp;&amp;G.state!==void 0?G.state:null,Tg(w),G.updater=Sh,w.stateNode=G,G._reactInternals=w,Kg(w,W,b,M),w=Zg(null,w,W,!0,ee,M)):(w.tag=0,Or&amp;&amp;ee&amp;&amp;jg(w),ti(null,w,G,M),w=w.child),w;case 16:W=w.elementType;e:{switch(Eh(b,w),b=w.pendingProps,G=W._init,W=G(W._payload),w.type=W,G=w.tag=uO(W),b=gs(W,b),G){case 0:w=Yg(null,w,W,b,M);break e;case 1:w=Q_(null,w,W,b,M);break e;case 11:w=K_(null,w,W,b,M);break e;case 14:w=X_(null,w,W,gs(W.type,b),M);break e}throw Error(t(306,W,&quot;&quot;))}return w;case 0:return W=w.type,G=w.pendingProps,G=w.elementType===W?G:gs(W,G),Yg(b,w,W,G,M);case 1:return W=w.type,G=w.pendingProps,G=w.elementType===W?G:gs(W,G),Q_(b,w,W,G,M);case 3:e:{if(J_(w),b===null)throw Error(t(387));W=w.pendingProps,ee=w.memoizedState,G=ee.element,m_(b,w),yh(w,W,null,M);var oe=w.memoizedState;if(W=oe.element,ee.isDehydrated)if(ee={element:W,isDehydrated:!1,cache:oe.cache,pendingSuspenseBoundaries:oe.pendingSuspenseBoundaries,transitions:oe.transitions},w.updateQueue.baseState=ee,w.memoizedState=ee,w.flags&amp;256){G=kc(Error(t(423)),w),w=ej(b,w,W,M,G);break e}else if(W!==G){G=kc(Error(t(424)),w),w=ej(b,w,W,M,G);break e}else for(Pi=zs(w.stateNode.containerInfo.firstChild),Mi=w,Or=!0,ps=null,M=f_(w,null,W,M),w.child=M;M;)M.flags=M.flags&amp;-3|4096,M=M.sibling;else{if(vc(),W===G){w=wa(b,w,M);break e}ti(b,w,W,M)}w=w.child}return w;case 5:return x_(w),b===null&amp;&amp;Sg(w),W=w.type,G=w.pendingProps,ee=b!==null?b.memoizedProps:null,oe=G.children,uo(W,G)?oe=null:ee!==null&amp;&amp;uo(W,ee)&amp;&amp;(w.flags|=32),Z_(b,w),ti(b,w,oe,M),w.child;case 6:return b===null&amp;&amp;Sg(w),null;case 13:return tj(b,w,M);case 4:return Ig(w,w.stateNode.containerInfo),W=w.pendingProps,b===null?w.child=wc(w,null,W,M):ti(b,w,W,M),w.child;case 11:return W=w.type,G=w.pendingProps,G=w.elementType===W?G:gs(W,G),K_(b,w,W,G,M);case 7:return ti(b,w,w.pendingProps,M),w.child;case 8:return ti(b,w,w.pendingProps.children,M),w.child;case 12:return ti(b,w,w.pendingProps.children,M),w.child;case 10:e:{if(W=w.type._context,G=w.pendingProps,ee=w.memoizedProps,oe=G.value,yr(gh,W._currentValue),W._currentValue=oe,ee!==null)if(pi(ee.value,oe)){if(ee.children===G.children&amp;&amp;!Bn.current){w=wa(b,w,M);break e}}else for(ee=w.child,ee!==null&amp;&amp;(ee.return=w);ee!==null;){var me=ee.dependencies;if(me!==null){oe=ee.child;for(var ye=me.firstContext;ye!==null;){if(ye.context===W){if(ee.tag===1){ye=va(-1,M&amp;-M),ye.tag=2;var Te=ee.updateQueue;if(Te!==null){Te=Te.shared;var He=Te.pending;He===null?ye.next=ye:(ye.next=He.next,He.next=ye),Te.pending=ye}}ee.lanes|=M,ye=ee.alternate,ye!==null&amp;&amp;(ye.lanes|=M),Pg(ee.return,M,w),me.lanes|=M;break}ye=ye.next}}else if(ee.tag===10)oe=ee.type===w.type?null:ee.child;else if(ee.tag===18){if(oe=ee.return,oe===null)throw Error(t(341));oe.lanes|=M,me=oe.alternate,me!==null&amp;&amp;(me.lanes|=M),Pg(oe,M,w),oe=ee.sibling}else oe=ee.child;if(oe!==null)oe.return=ee;else for(oe=ee;oe!==null;){if(oe===w){oe=null;break}if(ee=oe.sibling,ee!==null){ee.return=oe.return,oe=ee;break}oe=oe.return}ee=oe}ti(b,w,G.children,M),w=w.child}return w;case 9:return G=w.type,W=w.pendingProps.children,jc(w,M),G=Vi(G),W=W(G),w.flags|=1,ti(b,w,W,M),w.child;case 14:return W=w.type,G=gs(W,w.pendingProps),G=gs(W.type,G),X_(b,w,W,G,M);case 15:return G_(b,w,w.type,w.pendingProps,M);case 17:return W=w.type,G=w.pendingProps,G=w.elementType===W?G:gs(W,G),Eh(b,w),w.tag=1,$n(W)?(b=!0,gc(w)):b=!1,jc(w,M),$_(w,W,G),Kg(w,W,G,M),Zg(null,w,W,!0,b,M);case 19:return nj(b,w,M);case 22:return Y_(b,w,M)}throw Error(t(156,w.tag))};function Cj(b,w){return _r(b,w)}function cO(b,w,M,W){this.tag=b,this.key=M,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=w,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=W,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hi(b,w,M,W){return new cO(b,w,M,W)}function xx(b){return b=b.prototype,!(!b||!b.isReactComponent)}function uO(b){if(typeof b==&quot;function&quot;)return xx(b)?1:0;if(b!=null){if(b=b.$$typeof,b===K)return 11;if(b===E)return 14}return 2}function Co(b,w){var M=b.alternate;return M===null?(M=Hi(b.tag,w,b.key,b.mode),M.elementType=b.elementType,M.type=b.type,M.stateNode=b.stateNode,M.alternate=b,b.alternate=M):(M.pendingProps=w,M.type=b.type,M.flags=0,M.subtreeFlags=0,M.deletions=null),M.flags=b.flags&amp;14680064,M.childLanes=b.childLanes,M.lanes=b.lanes,M.child=b.child,M.memoizedProps=b.memoizedProps,M.memoizedState=b.memoizedState,M.updateQueue=b.updateQueue,w=b.dependencies,M.dependencies=w===null?null:{lanes:w.lanes,firstContext:w.firstContext},M.sibling=b.sibling,M.index=b.index,M.ref=b.ref,M}function Bh(b,w,M,W,G,ee){var oe=2;if(W=b,typeof b==&quot;function&quot;)xx(b)&amp;&amp;(oe=1);else if(typeof b==&quot;string&quot;)oe=5;else e:switch(b){case V:return wl(M.children,G,ee,w);case F:oe=8,G|=8;break;case q:return b=Hi(12,M,w,G|2),b.elementType=q,b.lanes=ee,b;case T:return b=Hi(13,M,w,G),b.elementType=T,b.lanes=ee,b;case L:return b=Hi(19,M,w,G),b.elementType=L,b.lanes=ee,b;case k:return $h(M,G,ee,w);default:if(typeof b==&quot;object&quot;&amp;&amp;b!==null)switch(b.$$typeof){case H:oe=10;break e;case B:oe=9;break e;case K:oe=11;break e;case E:oe=14;break e;case j:oe=16,W=null;break e}throw Error(t(130,b==null?b:typeof b,&quot;&quot;))}return w=Hi(oe,M,w,G),w.elementType=b,w.type=W,w.lanes=ee,w}function wl(b,w,M,W){return b=Hi(7,b,W,w),b.lanes=M,b}function $h(b,w,M,W){return b=Hi(22,b,W,w),b.elementType=k,b.lanes=M,b.stateNode={isHidden:!1},b}function bx(b,w,M){return b=Hi(6,b,null,w),b.lanes=M,b}function yx(b,w,M){return w=Hi(4,b.children!==null?b.children:[],b.key,w),w.lanes=M,w.stateNode={containerInfo:b.containerInfo,pendingChildren:null,implementation:b.implementation},w}function dO(b,w,M,W,G){this.tag=w,this.containerInfo=b,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wt(0),this.expirationTimes=Wt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wt(0),this.identifierPrefix=W,this.onRecoverableError=G,this.mutableSourceEagerHydrationData=null}function vx(b,w,M,W,G,ee,oe,me,ye){return b=new dO(b,w,M,me,ye),w===1?(w=1,ee===!0&amp;&amp;(w|=8)):w=0,ee=Hi(3,null,null,w),b.current=ee,ee.stateNode=b,ee.memoizedState={element:W,isDehydrated:M,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tg(ee),b}function fO(b,w,M){var W=3&lt;arguments.length&amp;&amp;arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:W==null?null:&quot;&quot;+W,children:b,containerInfo:w,implementation:M}}function Ej(b){if(!b)return qs;b=b._reactInternals;e:{if(at(b)!==b||b.tag!==1)throw Error(t(170));var w=b;do{switch(w.tag){case 3:w=w.stateNode.context;break e;case 1:if($n(w.type)){w=w.stateNode.__reactInternalMemoizedMergedChildContext;break e}}w=w.return}while(w!==null);throw Error(t(171))}if(b.tag===1){var M=b.type;if($n(M))return dh(b,M,w)}return w}function Aj(b,w,M,W,G,ee,oe,me,ye){return b=vx(M,W,!0,b,G,ee,oe,me,ye),b.context=Ej(null),M=b.current,W=ri(),G=ko(M),ee=va(W,G),ee.callback=w??null,wo(M,ee,G),b.current.lanes=G,Ln(b,G,W),bi(b,W),b}function zh(b,w,M,W){var G=w.current,ee=ri(),oe=ko(G);return M=Ej(M),w.context===null?w.context=M:w.pendingContext=M,w=va(ee,oe),w.payload={element:b},W=W===void 0?null:W,W!==null&amp;&amp;(w.callback=W),b=wo(G,w,oe),b!==null&amp;&amp;(ys(b,G,oe,ee),bh(b,G,oe)),oe}function Uh(b){return b=b.current,b.child?(b.child.tag===5,b.child.stateNode):null}function Mj(b,w){if(b=b.memoizedState,b!==null&amp;&amp;b.dehydrated!==null){var M=b.retryLane;b.retryLane=M!==0&amp;&amp;M&lt;w?M:w}}function wx(b,w){Mj(b,w),(b=b.alternate)&amp;&amp;Mj(b,w)}function hO(){return null}var Pj=typeof reportError==&quot;function&quot;?reportError:function(b){console.error(b)};function _x(b){this._internalRoot=b}Vh.prototype.render=_x.prototype.render=function(b){var w=this._internalRoot;if(w===null)throw Error(t(409));zh(b,w,null,null)},Vh.prototype.unmount=_x.prototype.unmount=function(){var b=this._internalRoot;if(b!==null){this._internalRoot=null;var w=b.containerInfo;bl(function(){zh(null,b,null,null)}),w[hs]=null}};function Vh(b){this._internalRoot=b}Vh.prototype.unstable_scheduleHydration=function(b){if(b){var w=Fi();b={blockedOn:null,target:b,priority:w};for(var M=0;M&lt;Fn.length&amp;&amp;w!==0&amp;&amp;w&lt;Fn[M].priority;M++);Fn.splice(M,0,b),M===0&amp;&amp;ju(b)}};function jx(b){return!(!b||b.nodeType!==1&amp;&amp;b.nodeType!==9&amp;&amp;b.nodeType!==11)}function qh(b){return!(!b||b.nodeType!==1&amp;&amp;b.nodeType!==9&amp;&amp;b.nodeType!==11&amp;&amp;(b.nodeType!==8||b.nodeValue!==&quot; react-mount-point-unstable &quot;))}function Oj(){}function mO(b,w,M,W,G){if(G){if(typeof W==&quot;function&quot;){var ee=W;W=function(){var Te=Uh(oe);ee.call(Te)}}var oe=Aj(w,W,b,0,null,!1,!1,&quot;&quot;,Oj);return b._reactRootContainer=oe,b[hs]=oe.current,zi(b.nodeType===8?b.parentNode:b),bl(),oe}for(;G=b.lastChild;)b.removeChild(G);if(typeof W==&quot;function&quot;){var me=W;W=function(){var Te=Uh(ye);me.call(Te)}}var ye=vx(b,0,!1,null,null,!1,!1,&quot;&quot;,Oj);return b._reactRootContainer=ye,b[hs]=ye.current,zi(b.nodeType===8?b.parentNode:b),bl(function(){zh(w,ye,M,W)}),ye}function Wh(b,w,M,W,G){var ee=M._reactRootContainer;if(ee){var oe=ee;if(typeof G==&quot;function&quot;){var me=G;G=function(){var ye=Uh(oe);me.call(ye)}}zh(w,oe,b,G)}else oe=mO(M,w,b,G,W);return Uh(oe)}nn=function(b){switch(b.tag){case 3:var w=b.stateNode;if(w.current.memoizedState.isDehydrated){var M=Kt(w.pendingLanes);M!==0&amp;&amp;(Rs(w,M|1),bi(w,je()),(or&amp;6)===0&amp;&amp;(Ec=je()+500,Ws()))}break;case 13:bl(function(){var W=ya(b,1);if(W!==null){var G=ri();ys(W,b,1,G)}}),wx(b,1)}},Ci=function(b){if(b.tag===13){var w=ya(b,134217728);if(w!==null){var M=ri();ys(w,b,134217728,M)}wx(b,134217728)}},Ds=function(b){if(b.tag===13){var w=ko(b),M=ya(b,w);if(M!==null){var W=ri();ys(M,b,w,W)}wx(b,w)}},Fi=function(){return It},fi=function(b,w){var M=It;try{return It=b,w()}finally{It=M}},ft=function(b,w,M){switch(w){case&quot;input&quot;:if(se(b,M),w=M.name,M.type===&quot;radio&quot;&amp;&amp;w!=null){for(M=b;M.parentNode;)M=M.parentNode;for(M=M.querySelectorAll(&quot;input[name=&quot;+JSON.stringify(&quot;&quot;+w)+&#039;][type=&quot;radio&quot;]&#039;),w=0;w&lt;M.length;w++){var W=M[w];if(W!==b&amp;&amp;W.form===b.form){var G=mc(W);if(!G)throw Error(t(90));Q(W),se(W,G)}}}break;case&quot;textarea&quot;:we(b,M);break;case&quot;select&quot;:w=M.value,w!=null&amp;&amp;xe(b,!!M.multiple,w,!1)}},_t=mx,Rt=bl;var pO={usingClientEntryPoint:!1,Events:[hl,ho,mc,rr,Gt,mx]},fd={findFiberByHostInstance:Us,bundleType:0,version:&quot;18.3.1&quot;,rendererPackageName:&quot;react-dom&quot;},gO={bundleType:fd.bundleType,version:fd.version,rendererPackageName:fd.rendererPackageName,rendererConfig:fd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(b){return b=dr(b),b===null?null:b.stateNode},findFiberByHostInstance:fd.findFiberByHostInstance||hO,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:&quot;18.3.1-next-f1338f8080-20240426&quot;};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&lt;&quot;u&quot;){var Hh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hh.isDisabled&amp;&amp;Hh.supportsFiber)try{Dt=Hh.inject(gO),St=Hh}catch{}}return yi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pO,yi.createPortal=function(b,w){var M=2&lt;arguments.length&amp;&amp;arguments[2]!==void 0?arguments[2]:null;if(!jx(w))throw Error(t(200));return fO(b,w,null,M)},yi.createRoot=function(b,w){if(!jx(b))throw Error(t(299));var M=!1,W=&quot;&quot;,G=Pj;return w!=null&amp;&amp;(w.unstable_strictMode===!0&amp;&amp;(M=!0),w.identifierPrefix!==void 0&amp;&amp;(W=w.identifierPrefix),w.onRecoverableError!==void 0&amp;&amp;(G=w.onRecoverableError)),w=vx(b,1,!1,null,null,M,!1,W,G),b[hs]=w.current,zi(b.nodeType===8?b.parentNode:b),new _x(w)},yi.findDOMNode=function(b){if(b==null)return null;if(b.nodeType===1)return b;var w=b._reactInternals;if(w===void 0)throw typeof b.render==&quot;function&quot;?Error(t(188)):(b=Object.keys(b).join(&quot;,&quot;),Error(t(268,b)));return b=dr(w),b=b===null?null:b.stateNode,b},yi.flushSync=function(b){return bl(b)},yi.hydrate=function(b,w,M){if(!qh(w))throw Error(t(200));return Wh(null,b,w,!0,M)},yi.hydrateRoot=function(b,w,M){if(!jx(b))throw Error(t(405));var W=M!=null&amp;&amp;M.hydratedSources||null,G=!1,ee=&quot;&quot;,oe=Pj;if(M!=null&amp;&amp;(M.unstable_strictMode===!0&amp;&amp;(G=!0),M.identifierPrefix!==void 0&amp;&amp;(ee=M.identifierPrefix),M.onRecoverableError!==void 0&amp;&amp;(oe=M.onRecoverableError)),w=Aj(w,null,b,1,M??null,G,!1,ee,oe),b[hs]=w.current,zi(b),W)for(b=0;b&lt;W.length;b++)M=W[b],G=M._getVersion,G=G(M._source),w.mutableSourceEagerHydrationData==null?w.mutableSourceEagerHydrationData=[M,G]:w.mutableSourceEagerHydrationData.push(M,G);return new Vh(w)},yi.render=function(b,w,M){if(!qh(w))throw Error(t(200));return Wh(null,b,w,!1,M)},yi.unmountComponentAtNode=function(b){if(!qh(b))throw Error(t(40));return b._reactRootContainer?(bl(function(){Wh(null,null,b,!1,function(){b._reactRootContainer=null,b[hs]=null})}),!0):!1},yi.unstable_batchedUpdates=mx,yi.unstable_renderSubtreeIntoContainer=function(b,w,M,W){if(!qh(M))throw Error(t(200));if(b==null||b._reactInternals===void 0)throw Error(t(38));return Wh(b,w,M,!1,W)},yi.version=&quot;18.3.1-next-f1338f8080-20240426&quot;,yi}var $j;function r8(){if($j)return Sx.exports;$j=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&gt;&quot;u&quot;||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=&quot;function&quot;))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Sx.exports=NO(),Sx.exports}var zj;function kO(){if(zj)return Kh;zj=1;var e=r8();return Kh.createRoot=e.createRoot,Kh.hydrateRoot=e.hydrateRoot,Kh}var SO=kO();const CO=Os(SO);var Xp=r8();function Ld(){return Ld=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Ld.apply(this,arguments)}var Io;(function(e){e.Pop=&quot;POP&quot;,e.Push=&quot;PUSH&quot;,e.Replace=&quot;REPLACE&quot;})(Io||(Io={}));const Uj=&quot;popstate&quot;;function EO(e){e===void 0&amp;&amp;(e={});function r(n,o){let{pathname:s,search:l,hash:u}=n.location;return $y(&quot;&quot;,{pathname:s,search:l,hash:u},o.state&amp;&amp;o.state.usr||null,o.state&amp;&amp;o.state.key||&quot;default&quot;)}function t(n,o){return typeof o==&quot;string&quot;?o:Bm(o)}return MO(r,t,null,e)}function $r(e,r){if(e===!1||e===null||typeof e&gt;&quot;u&quot;)throw new Error(r)}function k1(e,r){if(!e){typeof console&lt;&quot;u&quot;&amp;&amp;console.warn(r);try{throw new Error(r)}catch{}}}function AO(){return Math.random().toString(36).substr(2,8)}function Vj(e,r){return{usr:e.state,key:e.key,idx:r}}function $y(e,r,t,n){return t===void 0&amp;&amp;(t=null),Ld({pathname:typeof e==&quot;string&quot;?e:e.pathname,search:&quot;&quot;,hash:&quot;&quot;},typeof r==&quot;string&quot;?ou(r):r,{state:t,key:r&amp;&amp;r.key||n||AO()})}function Bm(e){let{pathname:r=&quot;/&quot;,search:t=&quot;&quot;,hash:n=&quot;&quot;}=e;return t&amp;&amp;t!==&quot;?&quot;&amp;&amp;(r+=t.charAt(0)===&quot;?&quot;?t:&quot;?&quot;+t),n&amp;&amp;n!==&quot;#&quot;&amp;&amp;(r+=n.charAt(0)===&quot;#&quot;?n:&quot;#&quot;+n),r}function ou(e){let r={};if(e){let t=e.indexOf(&quot;#&quot;);t&gt;=0&amp;&amp;(r.hash=e.substr(t),e=e.substr(0,t));let n=e.indexOf(&quot;?&quot;);n&gt;=0&amp;&amp;(r.search=e.substr(n),e=e.substr(0,n)),e&amp;&amp;(r.pathname=e)}return r}function MO(e,r,t,n){n===void 0&amp;&amp;(n={});let{window:o=document.defaultView,v5Compat:s=!1}=n,l=o.history,u=Io.Pop,c=null,a=d();a==null&amp;&amp;(a=0,l.replaceState(Ld({},l.state,{idx:a}),&quot;&quot;));function d(){return(l.state||{idx:null}).idx}function f(){u=Io.Pop;let g=d(),y=g==null?null:g-a;a=g,c&amp;&amp;c({action:u,location:x.location,delta:y})}function h(g,y){u=Io.Push;let v=$y(x.location,g,y);a=d()+1;let _=Vj(v,a),S=x.createHref(v);try{l.pushState(_,&quot;&quot;,S)}catch(A){if(A instanceof DOMException&amp;&amp;A.name===&quot;DataCloneError&quot;)throw A;o.location.assign(S)}s&amp;&amp;c&amp;&amp;c({action:u,location:x.location,delta:1})}function m(g,y){u=Io.Replace;let v=$y(x.location,g,y);a=d();let _=Vj(v,a),S=x.createHref(v);l.replaceState(_,&quot;&quot;,S),s&amp;&amp;c&amp;&amp;c({action:u,location:x.location,delta:0})}function p(g){let y=o.location.origin!==&quot;null&quot;?o.location.origin:o.location.href,v=typeof g==&quot;string&quot;?g:Bm(g);return v=v.replace(/ $/,&quot;%20&quot;),$r(y,&quot;No window.location.(origin|href) available to create URL for href: &quot;+v),new URL(v,y)}let x={get action(){return u},get location(){return e(o,l)},listen(g){if(c)throw new Error(&quot;A history only accepts one active listener&quot;);return o.addEventListener(Uj,f),c=g,()=&gt;{o.removeEventListener(Uj,f),c=null}},createHref(g){return r(o,g)},createURL:p,encodeLocation(g){let y=p(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:m,go(g){return l.go(g)}};return x}var qj;(function(e){e.data=&quot;data&quot;,e.deferred=&quot;deferred&quot;,e.redirect=&quot;redirect&quot;,e.error=&quot;error&quot;})(qj||(qj={}));function PO(e,r,t){return t===void 0&amp;&amp;(t=&quot;/&quot;),OO(e,r,t)}function OO(e,r,t,n){let o=typeof r==&quot;string&quot;?ou(r):r,s=Xc(o.pathname||&quot;/&quot;,t);if(s==null)return null;let l=n8(e);TO(l);let u=null;for(let c=0;u==null&amp;&amp;c&lt;l.length;++c){let a=qO(s);u=UO(l[c],a)}return u}function n8(e,r,t,n){r===void 0&amp;&amp;(r=[]),t===void 0&amp;&amp;(t=[]),n===void 0&amp;&amp;(n=&quot;&quot;);let o=(s,l,u)=&gt;{let c={relativePath:u===void 0?s.path||&quot;&quot;:u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};c.relativePath.startsWith(&quot;/&quot;)&amp;&amp;($r(c.relativePath.startsWith(n),&#039;Absolute route path &quot;&#039;+c.relativePath+&#039;&quot; nested under path &#039;+(&#039;&quot;&#039;+n+&#039;&quot; is not valid. An absolute child route path &#039;)+&quot;must start with the combined path of all its parent routes.&quot;),c.relativePath=c.relativePath.slice(n.length));let a=Lo([n,c.relativePath]),d=t.concat(c);s.children&amp;&amp;s.children.length&gt;0&amp;&amp;($r(s.index!==!0,&quot;Index routes must not have child routes. Please remove &quot;+(&#039;all child routes from route path &quot;&#039;+a+&#039;&quot;.&#039;)),n8(s.children,r,d,a)),!(s.path==null&amp;&amp;!s.index)&amp;&amp;r.push({path:a,score:$O(a,s.index),routesMeta:d})};return e.forEach((s,l)=&gt;{var u;if(s.path===&quot;&quot;||!((u=s.path)!=null&amp;&amp;u.includes(&quot;?&quot;)))o(s,l);else for(let c of i8(s.path))o(s,l,c)}),r}function i8(e){let r=e.split(&quot;/&quot;);if(r.length===0)return[];let[t,...n]=r,o=t.endsWith(&quot;?&quot;),s=t.replace(/\?$/,&quot;&quot;);if(n.length===0)return o?[s,&quot;&quot;]:[s];let l=i8(n.join(&quot;/&quot;)),u=[];return u.push(...l.map(c=&gt;c===&quot;&quot;?s:[s,c].join(&quot;/&quot;))),o&amp;&amp;u.push(...l),u.map(c=&gt;e.startsWith(&quot;/&quot;)&amp;&amp;c===&quot;&quot;?&quot;/&quot;:c)}function TO(e){e.sort((r,t)=&gt;r.score!==t.score?t.score-r.score:zO(r.routesMeta.map(n=&gt;n.childrenIndex),t.routesMeta.map(n=&gt;n.childrenIndex)))}const IO=/^:[\w-]+$/,RO=3,DO=2,LO=1,FO=10,BO=-2,Wj=e=&gt;e===&quot;*&quot;;function $O(e,r){let t=e.split(&quot;/&quot;),n=t.length;return t.some(Wj)&amp;&amp;(n+=BO),r&amp;&amp;(n+=DO),t.filter(o=&gt;!Wj(o)).reduce((o,s)=&gt;o+(IO.test(s)?RO:s===&quot;&quot;?LO:FO),n)}function zO(e,r){return e.length===r.length&amp;&amp;e.slice(0,-1).every((n,o)=&gt;n===r[o])?e[e.length-1]-r[r.length-1]:0}function UO(e,r,t){let{routesMeta:n}=e,o={},s=&quot;/&quot;,l=[];for(let u=0;u&lt;n.length;++u){let c=n[u],a=u===n.length-1,d=s===&quot;/&quot;?r:r.slice(s.length)||&quot;/&quot;,f=zy({path:c.relativePath,caseSensitive:c.caseSensitive,end:a},d),h=c.route;if(!f)return null;Object.assign(o,f.params),l.push({params:o,pathname:Lo([s,f.pathname]),pathnameBase:GO(Lo([s,f.pathnameBase])),route:h}),f.pathnameBase!==&quot;/&quot;&amp;&amp;(s=Lo([s,f.pathnameBase]))}return l}function zy(e,r){typeof e==&quot;string&quot;&amp;&amp;(e={path:e,caseSensitive:!1,end:!0});let[t,n]=VO(e.path,e.caseSensitive,e.end),o=r.match(t);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,&quot;$1&quot;),u=o.slice(1);return{params:n.reduce((a,d,f)=&gt;{let{paramName:h,isOptional:m}=d;if(h===&quot;*&quot;){let x=u[f]||&quot;&quot;;l=s.slice(0,s.length-x.length).replace(/(.)\/+$/,&quot;$1&quot;)}const p=u[f];return m&amp;&amp;!p?a[h]=void 0:a[h]=(p||&quot;&quot;).replace(/%2F/g,&quot;/&quot;),a},{}),pathname:s,pathnameBase:l,pattern:e}}function VO(e,r,t){r===void 0&amp;&amp;(r=!1),t===void 0&amp;&amp;(t=!0),k1(e===&quot;*&quot;||!e.endsWith(&quot;*&quot;)||e.endsWith(&quot;/*&quot;),&#039;Route path &quot;&#039;+e+&#039;&quot; will be treated as if it were &#039;+(&#039;&quot;&#039;+e.replace(/\*$/,&quot;/*&quot;)+&#039;&quot; because the `*` character must &#039;)+&quot;always follow a `/` in the pattern. To get rid of this warning, &quot;+(&#039;please change the route path to &quot;&#039;+e.replace(/\*$/,&quot;/*&quot;)+&#039;&quot;.&#039;));let n=[],o=&quot;^&quot;+e.replace(/\/*\*?$/,&quot;&quot;).replace(/^\/*/,&quot;/&quot;).replace(/[\\.*+^${}|()[\]]/g,&quot;\\$&amp;&quot;).replace(/\/:([\w-]+)(\?)?/g,(l,u,c)=&gt;(n.push({paramName:u,isOptional:c!=null}),c?&quot;/?([^\\/]+)?&quot;:&quot;/([^\\/]+)&quot;));return e.endsWith(&quot;*&quot;)?(n.push({paramName:&quot;*&quot;}),o+=e===&quot;*&quot;||e===&quot;/*&quot;?&quot;(.*)$&quot;:&quot;(?:\\/(.+)|\\/*)$&quot;):t?o+=&quot;\\/*$&quot;:e!==&quot;&quot;&amp;&amp;e!==&quot;/&quot;&amp;&amp;(o+=&quot;(?:(?=\\/|$))&quot;),[new RegExp(o,r?void 0:&quot;i&quot;),n]}function qO(e){try{return e.split(&quot;/&quot;).map(r=&gt;decodeURIComponent(r).replace(/\//g,&quot;%2F&quot;)).join(&quot;/&quot;)}catch(r){return k1(!1,&#039;The URL path &quot;&#039;+e+&#039;&quot; could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent &#039;+(&quot;encoding (&quot;+r+&quot;).&quot;)),e}}function Xc(e,r){if(r===&quot;/&quot;)return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let t=r.endsWith(&quot;/&quot;)?r.length-1:r.length,n=e.charAt(t);return n&amp;&amp;n!==&quot;/&quot;?null:e.slice(t)||&quot;/&quot;}const WO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HO=e=&gt;WO.test(e);function KO(e,r){r===void 0&amp;&amp;(r=&quot;/&quot;);let{pathname:t,search:n=&quot;&quot;,hash:o=&quot;&quot;}=typeof e==&quot;string&quot;?ou(e):e,s;if(t)if(HO(t))s=t;else{if(t.includes(&quot;//&quot;)){let l=t;t=t.replace(/\/\/+/g,&quot;/&quot;),k1(!1,&quot;Pathnames cannot have embedded double slashes - normalizing &quot;+(l+&quot; -&gt; &quot;+t))}t.startsWith(&quot;/&quot;)?s=Hj(t.substring(1),&quot;/&quot;):s=Hj(t,r)}else s=r;return{pathname:s,search:YO(n),hash:ZO(o)}}function Hj(e,r){let t=r.replace(/\/+$/,&quot;&quot;).split(&quot;/&quot;);return e.split(&quot;/&quot;).forEach(o=&gt;{o===&quot;..&quot;?t.length&gt;1&amp;&amp;t.pop():o!==&quot;.&quot;&amp;&amp;t.push(o)}),t.length&gt;1?t.join(&quot;/&quot;):&quot;/&quot;}function Ax(e,r,t,n){return&quot;Cannot include a &#039;&quot;+e+&quot;&#039; character in a manually specified &quot;+(&quot;`to.&quot;+r+&quot;` field [&quot;+JSON.stringify(n)+&quot;].  Please separate it out to the &quot;)+(&quot;`to.&quot;+t+&quot;` field. Alternatively you may provide the full path as &quot;)+&#039;a string in &lt;Link to=&quot;...&quot;&gt; and the router will parse it for you.&#039;}function XO(e){return e.filter((r,t)=&gt;t===0||r.route.path&amp;&amp;r.route.path.length&gt;0)}function S1(e,r){let t=XO(e);return r?t.map((n,o)=&gt;o===t.length-1?n.pathname:n.pathnameBase):t.map(n=&gt;n.pathnameBase)}function C1(e,r,t,n){n===void 0&amp;&amp;(n=!1);let o;typeof e==&quot;string&quot;?o=ou(e):(o=Ld({},e),$r(!o.pathname||!o.pathname.includes(&quot;?&quot;),Ax(&quot;?&quot;,&quot;pathname&quot;,&quot;search&quot;,o)),$r(!o.pathname||!o.pathname.includes(&quot;#&quot;),Ax(&quot;#&quot;,&quot;pathname&quot;,&quot;hash&quot;,o)),$r(!o.search||!o.search.includes(&quot;#&quot;),Ax(&quot;#&quot;,&quot;search&quot;,&quot;hash&quot;,o)));let s=e===&quot;&quot;||o.pathname===&quot;&quot;,l=s?&quot;/&quot;:o.pathname,u;if(l==null)u=t;else{let f=r.length-1;if(!n&amp;&amp;l.startsWith(&quot;..&quot;)){let h=l.split(&quot;/&quot;);for(;h[0]===&quot;..&quot;;)h.shift(),f-=1;o.pathname=h.join(&quot;/&quot;)}u=f&gt;=0?r[f]:&quot;/&quot;}let c=KO(o,u),a=l&amp;&amp;l!==&quot;/&quot;&amp;&amp;l.endsWith(&quot;/&quot;),d=(s||l===&quot;.&quot;)&amp;&amp;t.endsWith(&quot;/&quot;);return!c.pathname.endsWith(&quot;/&quot;)&amp;&amp;(a||d)&amp;&amp;(c.pathname+=&quot;/&quot;),c}const Lo=e=&gt;e.join(&quot;/&quot;).replace(/\/\/+/g,&quot;/&quot;),GO=e=&gt;e.replace(/\/+$/,&quot;&quot;).replace(/^\/*/,&quot;/&quot;),YO=e=&gt;!e||e===&quot;?&quot;?&quot;&quot;:e.startsWith(&quot;?&quot;)?e:&quot;?&quot;+e,ZO=e=&gt;!e||e===&quot;#&quot;?&quot;&quot;:e.startsWith(&quot;#&quot;)?e:&quot;#&quot;+e;function QO(e){return e!=null&amp;&amp;typeof e.status==&quot;number&quot;&amp;&amp;typeof e.statusText==&quot;string&quot;&amp;&amp;typeof e.internal==&quot;boolean&quot;&amp;&amp;&quot;data&quot;in e}const s8=[&quot;post&quot;,&quot;put&quot;,&quot;patch&quot;,&quot;delete&quot;];new Set(s8);const JO=[&quot;get&quot;,...s8];new Set(JO);function Fd(){return Fd=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Fd.apply(this,arguments)}const Gp=O.createContext(null),a8=O.createContext(null),Ka=O.createContext(null),Yp=O.createContext(null),aa=O.createContext({outlet:null,matches:[],isDataRoute:!1}),o8=O.createContext(null);function eT(e,r){let{relative:t}=r===void 0?{}:r;lu()||$r(!1);let{basename:n,navigator:o}=O.useContext(Ka),{hash:s,pathname:l,search:u}=Zp(e,{relative:t}),c=l;return n!==&quot;/&quot;&amp;&amp;(c=l===&quot;/&quot;?n:Lo([n,l])),o.createHref({pathname:c,search:u,hash:s})}function lu(){return O.useContext(Yp)!=null}function ji(){return lu()||$r(!1),O.useContext(Yp).location}function l8(e){O.useContext(Ka).static||O.useLayoutEffect(e)}function Ni(){let{isDataRoute:e}=O.useContext(aa);return e?pT():tT()}function tT(){lu()||$r(!1);let e=O.useContext(Gp),{basename:r,future:t,navigator:n}=O.useContext(Ka),{matches:o}=O.useContext(aa),{pathname:s}=ji(),l=JSON.stringify(S1(o,t.v7_relativeSplatPath)),u=O.useRef(!1);return l8(()=&gt;{u.current=!0}),O.useCallback(function(a,d){if(d===void 0&amp;&amp;(d={}),!u.current)return;if(typeof a==&quot;number&quot;){n.go(a);return}let f=C1(a,JSON.parse(l),s,d.relative===&quot;path&quot;);e==null&amp;&amp;r!==&quot;/&quot;&amp;&amp;(f.pathname=f.pathname===&quot;/&quot;?r:Lo([r,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[r,n,l,s,e])}const rT=O.createContext(null);function nT(e){let r=O.useContext(aa).outlet;return r&amp;&amp;O.createElement(rT.Provider,{value:e},r)}function ki(){let{matches:e}=O.useContext(aa),r=e[e.length-1];return r?r.params:{}}function Zp(e,r){let{relative:t}=r===void 0?{}:r,{future:n}=O.useContext(Ka),{matches:o}=O.useContext(aa),{pathname:s}=ji(),l=JSON.stringify(S1(o,n.v7_relativeSplatPath));return O.useMemo(()=&gt;C1(e,JSON.parse(l),s,t===&quot;path&quot;),[e,l,s,t])}function iT(e,r){return sT(e,r)}function sT(e,r,t,n){lu()||$r(!1);let{navigator:o}=O.useContext(Ka),{matches:s}=O.useContext(aa),l=s[s.length-1],u=l?l.params:{};l&amp;&amp;l.pathname;let c=l?l.pathnameBase:&quot;/&quot;;l&amp;&amp;l.route;let a=ji(),d;if(r){var f;let g=typeof r==&quot;string&quot;?ou(r):r;c===&quot;/&quot;||(f=g.pathname)!=null&amp;&amp;f.startsWith(c)||$r(!1),d=g}else d=a;let h=d.pathname||&quot;/&quot;,m=h;if(c!==&quot;/&quot;){let g=c.replace(/^\//,&quot;&quot;).split(&quot;/&quot;);m=&quot;/&quot;+h.replace(/^\//,&quot;&quot;).split(&quot;/&quot;).slice(g.length).join(&quot;/&quot;)}let p=PO(e,{pathname:m}),x=uT(p&amp;&amp;p.map(g=&gt;Object.assign({},g,{params:Object.assign({},u,g.params),pathname:Lo([c,o.encodeLocation?o.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase===&quot;/&quot;?c:Lo([c,o.encodeLocation?o.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),s,t,n);return r&amp;&amp;x?O.createElement(Yp.Provider,{value:{location:Fd({pathname:&quot;/&quot;,search:&quot;&quot;,hash:&quot;&quot;,state:null,key:&quot;default&quot;},d),navigationType:Io.Pop}},x):x}function aT(){let e=mT(),r=QO(e)?e.status+&quot; &quot;+e.statusText:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,o={padding:&quot;0.5rem&quot;,backgroundColor:&quot;rgba(200,200,200, 0.5)&quot;};return O.createElement(O.Fragment,null,O.createElement(&quot;h2&quot;,null,&quot;Unexpected Application Error!&quot;),O.createElement(&quot;h3&quot;,{style:{fontStyle:&quot;italic&quot;}},r),t?O.createElement(&quot;pre&quot;,{style:o},t):null,null)}const oT=O.createElement(aT,null);class lT extends O.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,t){return t.location!==r.location||t.revalidation!==&quot;idle&quot;&amp;&amp;r.revalidation===&quot;idle&quot;?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:t.error,location:t.location,revalidation:r.revalidation||t.revalidation}}componentDidCatch(r,t){console.error(&quot;React Router caught the following error during render&quot;,r,t)}render(){return this.state.error!==void 0?O.createElement(aa.Provider,{value:this.props.routeContext},O.createElement(o8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cT(e){let{routeContext:r,match:t,children:n}=e,o=O.useContext(Gp);return o&amp;&amp;o.static&amp;&amp;o.staticContext&amp;&amp;(t.route.errorElement||t.route.ErrorBoundary)&amp;&amp;(o.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(aa.Provider,{value:r},n)}function uT(e,r,t,n){var o;if(r===void 0&amp;&amp;(r=[]),t===void 0&amp;&amp;(t=null),n===void 0&amp;&amp;(n=null),e==null){var s;if(!t)return null;if(t.errors)e=t.matches;else if((s=n)!=null&amp;&amp;s.v7_partialHydration&amp;&amp;r.length===0&amp;&amp;!t.initialized&amp;&amp;t.matches.length&gt;0)e=t.matches;else return null}let l=e,u=(o=t)==null?void 0:o.errors;if(u!=null){let d=l.findIndex(f=&gt;f.route.id&amp;&amp;u?.[f.route.id]!==void 0);d&gt;=0||$r(!1),l=l.slice(0,Math.min(l.length,d+1))}let c=!1,a=-1;if(t&amp;&amp;n&amp;&amp;n.v7_partialHydration)for(let d=0;d&lt;l.length;d++){let f=l[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&amp;&amp;(a=d),f.route.id){let{loaderData:h,errors:m}=t,p=f.route.loader&amp;&amp;h[f.route.id]===void 0&amp;&amp;(!m||m[f.route.id]===void 0);if(f.route.lazy||p){c=!0,a&gt;=0?l=l.slice(0,a+1):l=[l[0]];break}}}return l.reduceRight((d,f,h)=&gt;{let m,p=!1,x=null,g=null;t&amp;&amp;(m=u&amp;&amp;f.route.id?u[f.route.id]:void 0,x=f.route.errorElement||oT,c&amp;&amp;(a&lt;0&amp;&amp;h===0?(gT(&quot;route-fallback&quot;),p=!0,g=null):a===h&amp;&amp;(p=!0,g=f.route.hydrateFallbackElement||null)));let y=r.concat(l.slice(0,h+1)),v=()=&gt;{let _;return m?_=x:p?_=g:f.route.Component?_=O.createElement(f.route.Component,null):f.route.element?_=f.route.element:_=d,O.createElement(cT,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:t!=null},children:_})};return t&amp;&amp;(f.route.ErrorBoundary||f.route.errorElement||h===0)?O.createElement(lT,{location:t.location,revalidation:t.revalidation,component:x,error:m,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var c8=(function(e){return e.UseBlocker=&quot;useBlocker&quot;,e.UseRevalidator=&quot;useRevalidator&quot;,e.UseNavigateStable=&quot;useNavigate&quot;,e})(c8||{}),u8=(function(e){return e.UseBlocker=&quot;useBlocker&quot;,e.UseLoaderData=&quot;useLoaderData&quot;,e.UseActionData=&quot;useActionData&quot;,e.UseRouteError=&quot;useRouteError&quot;,e.UseNavigation=&quot;useNavigation&quot;,e.UseRouteLoaderData=&quot;useRouteLoaderData&quot;,e.UseMatches=&quot;useMatches&quot;,e.UseRevalidator=&quot;useRevalidator&quot;,e.UseNavigateStable=&quot;useNavigate&quot;,e.UseRouteId=&quot;useRouteId&quot;,e})(u8||{});function dT(e){let r=O.useContext(Gp);return r||$r(!1),r}function fT(e){let r=O.useContext(a8);return r||$r(!1),r}function hT(e){let r=O.useContext(aa);return r||$r(!1),r}function d8(e){let r=hT(),t=r.matches[r.matches.length-1];return t.route.id||$r(!1),t.route.id}function mT(){var e;let r=O.useContext(o8),t=fT(),n=d8();return r!==void 0?r:(e=t.errors)==null?void 0:e[n]}function pT(){let{router:e}=dT(c8.UseNavigateStable),r=d8(u8.UseNavigateStable),t=O.useRef(!1);return l8(()=&gt;{t.current=!0}),O.useCallback(function(o,s){s===void 0&amp;&amp;(s={}),t.current&amp;&amp;(typeof o==&quot;number&quot;?e.navigate(o):e.navigate(o,Fd({fromRouteId:r},s)))},[e,r])}const Kj={};function gT(e,r,t){Kj[e]||(Kj[e]=!0)}function xT(e,r){e?.v7_startTransition,e?.v7_relativeSplatPath}function Kn(e){let{to:r,replace:t,state:n,relative:o}=e;lu()||$r(!1);let{future:s,static:l}=O.useContext(Ka),{matches:u}=O.useContext(aa),{pathname:c}=ji(),a=Ni(),d=C1(r,S1(u,s.v7_relativeSplatPath),c,o===&quot;path&quot;),f=JSON.stringify(d);return O.useEffect(()=&gt;a(JSON.parse(f),{replace:t,state:n,relative:o}),[a,f,o,t,n]),null}function f8(e){return nT(e.context)}function tr(e){$r(!1)}function bT(e){let{basename:r=&quot;/&quot;,children:t=null,location:n,navigationType:o=Io.Pop,navigator:s,static:l=!1,future:u}=e;lu()&amp;&amp;$r(!1);let c=r.replace(/^\/*/,&quot;/&quot;),a=O.useMemo(()=&gt;({basename:c,navigator:s,static:l,future:Fd({v7_relativeSplatPath:!1},u)}),[c,u,s,l]);typeof n==&quot;string&quot;&amp;&amp;(n=ou(n));let{pathname:d=&quot;/&quot;,search:f=&quot;&quot;,hash:h=&quot;&quot;,state:m=null,key:p=&quot;default&quot;}=n,x=O.useMemo(()=&gt;{let g=Xc(d,c);return g==null?null:{location:{pathname:g,search:f,hash:h,state:m,key:p},navigationType:o}},[c,d,f,h,m,p,o]);return x==null?null:O.createElement(Ka.Provider,{value:a},O.createElement(Yp.Provider,{children:t,value:x}))}function yT(e){let{children:r,location:t}=e;return iT(Uy(r),t)}new Promise(()=&gt;{});function Uy(e,r){r===void 0&amp;&amp;(r=[]);let t=[];return O.Children.forEach(e,(n,o)=&gt;{if(!O.isValidElement(n))return;let s=[...r,o];if(n.type===O.Fragment){t.push.apply(t,Uy(n.props.children,s));return}n.type!==tr&amp;&amp;$r(!1),!n.props.index||!n.props.children||$r(!1);let l={id:n.props.id||s.join(&quot;-&quot;),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&amp;&amp;(l.children=Uy(n.props.children,s)),t.push(l)}),t}function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},$m.apply(this,arguments)}function h8(e,r){if(e==null)return{};var t={},n=Object.keys(e),o,s;for(s=0;s&lt;n.length;s++)o=n[s],!(r.indexOf(o)&gt;=0)&amp;&amp;(t[o]=e[o]);return t}function vT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wT(e,r){return e.button===0&amp;&amp;(!r||r===&quot;_self&quot;)&amp;&amp;!vT(e)}function Vy(e){return e===void 0&amp;&amp;(e=&quot;&quot;),new URLSearchParams(typeof e==&quot;string&quot;||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((r,t)=&gt;{let n=e[t];return r.concat(Array.isArray(n)?n.map(o=&gt;[t,o]):[[t,n]])},[]))}function _T(e,r){let t=Vy(e);return r&amp;&amp;r.forEach((n,o)=&gt;{t.has(o)||r.getAll(o).forEach(s=&gt;{t.append(o,s)})}),t}const jT=[&quot;onClick&quot;,&quot;relative&quot;,&quot;reloadDocument&quot;,&quot;replace&quot;,&quot;state&quot;,&quot;target&quot;,&quot;to&quot;,&quot;preventScrollReset&quot;,&quot;viewTransition&quot;],NT=[&quot;aria-current&quot;,&quot;caseSensitive&quot;,&quot;className&quot;,&quot;end&quot;,&quot;style&quot;,&quot;to&quot;,&quot;viewTransition&quot;,&quot;children&quot;],kT=&quot;6&quot;;try{window.__reactRouterVersion=kT}catch{}const ST=O.createContext({isTransitioning:!1}),CT=&quot;startTransition&quot;,Xj=t8[CT];function ET(e){let{basename:r,children:t,future:n,window:o}=e,s=O.useRef();s.current==null&amp;&amp;(s.current=EO({window:o,v5Compat:!0}));let l=s.current,[u,c]=O.useState({action:l.action,location:l.location}),{v7_startTransition:a}=n||{},d=O.useCallback(f=&gt;{a&amp;&amp;Xj?Xj(()=&gt;c(f)):c(f)},[c,a]);return O.useLayoutEffect(()=&gt;l.listen(d),[l,d]),O.useEffect(()=&gt;xT(n),[n]),O.createElement(bT,{basename:r,children:t,location:u.location,navigationType:u.action,navigator:l,future:n})}const AT=typeof window&lt;&quot;u&quot;&amp;&amp;typeof window.document&lt;&quot;u&quot;&amp;&amp;typeof window.document.createElement&lt;&quot;u&quot;,MT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ut=O.forwardRef(function(r,t){let{onClick:n,relative:o,reloadDocument:s,replace:l,state:u,target:c,to:a,preventScrollReset:d,viewTransition:f}=r,h=h8(r,jT),{basename:m}=O.useContext(Ka),p,x=!1;if(typeof a==&quot;string&quot;&amp;&amp;MT.test(a)&amp;&amp;(p=a,AT))try{let _=new URL(window.location.href),S=a.startsWith(&quot;//&quot;)?new URL(_.protocol+a):new URL(a),A=Xc(S.pathname,m);S.origin===_.origin&amp;&amp;A!=null?a=A+S.search+S.hash:x=!0}catch{}let g=eT(a,{relative:o}),y=TT(a,{replace:l,state:u,target:c,preventScrollReset:d,relative:o,viewTransition:f});function v(_){n&amp;&amp;n(_),_.defaultPrevented||y(_)}return O.createElement(&quot;a&quot;,$m({},h,{href:p||g,onClick:x||s?n:v,ref:t,target:c}))}),PT=O.forwardRef(function(r,t){let{&quot;aria-current&quot;:n=&quot;page&quot;,caseSensitive:o=!1,className:s=&quot;&quot;,end:l=!1,style:u,to:c,viewTransition:a,children:d}=r,f=h8(r,NT),h=Zp(c,{relative:f.relative}),m=ji(),p=O.useContext(a8),{navigator:x,basename:g}=O.useContext(Ka),y=p!=null&amp;&amp;IT(h)&amp;&amp;a===!0,v=x.encodeLocation?x.encodeLocation(h).pathname:h.pathname,_=m.pathname,S=p&amp;&amp;p.navigation&amp;&amp;p.navigation.location?p.navigation.location.pathname:null;o||(_=_.toLowerCase(),S=S?S.toLowerCase():null,v=v.toLowerCase()),S&amp;&amp;g&amp;&amp;(S=Xc(S,g)||S);const A=v!==&quot;/&quot;&amp;&amp;v.endsWith(&quot;/&quot;)?v.length-1:v.length;let I=_===v||!l&amp;&amp;_.startsWith(v)&amp;&amp;_.charAt(A)===&quot;/&quot;,V=S!=null&amp;&amp;(S===v||!l&amp;&amp;S.startsWith(v)&amp;&amp;S.charAt(v.length)===&quot;/&quot;),F={isActive:I,isPending:V,isTransitioning:y},q=I?n:void 0,H;typeof s==&quot;function&quot;?H=s(F):H=[s,I?&quot;active&quot;:null,V?&quot;pending&quot;:null,y?&quot;transitioning&quot;:null].filter(Boolean).join(&quot; &quot;);let B=typeof u==&quot;function&quot;?u(F):u;return O.createElement(ut,$m({},f,{&quot;aria-current&quot;:q,className:H,ref:t,style:B,to:c,viewTransition:a}),typeof d==&quot;function&quot;?d(F):d)});var qy;(function(e){e.UseScrollRestoration=&quot;useScrollRestoration&quot;,e.UseSubmit=&quot;useSubmit&quot;,e.UseSubmitFetcher=&quot;useSubmitFetcher&quot;,e.UseFetcher=&quot;useFetcher&quot;,e.useViewTransitionState=&quot;useViewTransitionState&quot;})(qy||(qy={}));var Gj;(function(e){e.UseFetcher=&quot;useFetcher&quot;,e.UseFetchers=&quot;useFetchers&quot;,e.UseScrollRestoration=&quot;useScrollRestoration&quot;})(Gj||(Gj={}));function OT(e){let r=O.useContext(Gp);return r||$r(!1),r}function TT(e,r){let{target:t,replace:n,state:o,preventScrollReset:s,relative:l,viewTransition:u}=r===void 0?{}:r,c=Ni(),a=ji(),d=Zp(e,{relative:l});return O.useCallback(f=&gt;{if(wT(f,t)){f.preventDefault();let h=n!==void 0?n:Bm(a)===Bm(d);c(e,{replace:h,state:o,preventScrollReset:s,relative:l,viewTransition:u})}},[a,c,d,n,o,t,e,s,l,u])}function ff(e){let r=O.useRef(Vy(e)),t=O.useRef(!1),n=ji(),o=O.useMemo(()=&gt;_T(n.search,t.current?null:r.current),[n.search]),s=Ni(),l=O.useCallback((u,c)=&gt;{const a=Vy(typeof u==&quot;function&quot;?u(o):u);t.current=!0,s(&quot;?&quot;+a,c)},[s,o]);return[o,l]}function IT(e,r){r===void 0&amp;&amp;(r={});let t=O.useContext(ST);t==null&amp;&amp;$r(!1);let{basename:n}=OT(qy.useViewTransitionState),o=Zp(e,{relative:r.relative});if(!t.isTransitioning)return!1;let s=Xc(t.currentLocation.pathname,n)||t.currentLocation.pathname,l=Xc(t.nextLocation.pathname,n)||t.nextLocation.pathname;return zy(o.pathname,l)!=null||zy(o.pathname,s)!=null}const E1=O.createContext({});function A1(e){const r=O.useRef(null);return r.current===null&amp;&amp;(r.current=e()),r.current}const m8=typeof window&lt;&quot;u&quot;,p8=m8?O.useLayoutEffect:O.useEffect,Qp=O.createContext(null);function M1(e,r){e.indexOf(r)===-1&amp;&amp;e.push(r)}function P1(e,r){const t=e.indexOf(r);t&gt;-1&amp;&amp;e.splice(t,1)}const ra=(e,r,t)=&gt;t&gt;r?r:t&lt;e?e:t;let O1=()=&gt;{};const Da={},g8=e=&gt;/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function x8(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null}const b8=e=&gt;/^0[^.\s]+$/u.test(e);function T1(e){let r;return()=&gt;(r===void 0&amp;&amp;(r=e()),r)}const rs=e=&gt;e,RT=(e,r)=&gt;t=&gt;r(e(t)),hf=(...e)=&gt;e.reduce(RT),Bd=(e,r,t)=&gt;{const n=r-e;return n===0?1:(t-e)/n};class I1{constructor(){this.subscriptions=[]}add(r){return M1(this.subscriptions,r),()=&gt;P1(this.subscriptions,r)}notify(r,t,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](r,t,n);else for(let s=0;s&lt;o;s++){const l=this.subscriptions[s];l&amp;&amp;l(r,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Oa=e=&gt;e*1e3,Qi=e=&gt;e/1e3;function y8(e,r){return r?e*(1e3/r):0}const v8=(e,r,t)=&gt;(((1-3*t+3*r)*e+(3*t-6*r))*e+3*r)*e,DT=1e-7,LT=12;function FT(e,r,t,n,o){let s,l,u=0;do l=r+(t-r)/2,s=v8(l,n,o)-e,s&gt;0?t=l:r=l;while(Math.abs(s)&gt;DT&amp;&amp;++u&lt;LT);return l}function mf(e,r,t,n){if(e===r&amp;&amp;t===n)return rs;const o=s=&gt;FT(s,0,1,e,t);return s=&gt;s===0||s===1?s:v8(o(s),r,n)}const w8=e=&gt;r=&gt;r&lt;=.5?e(2*r)/2:(2-e(2*(1-r)))/2,_8=e=&gt;r=&gt;1-e(1-r),j8=mf(.33,1.53,.69,.99),R1=_8(j8),N8=w8(R1),k8=e=&gt;(e*=2)&lt;1?.5*R1(e):.5*(2-Math.pow(2,-10*(e-1))),D1=e=&gt;1-Math.sin(Math.acos(e)),S8=_8(D1),C8=w8(D1),BT=mf(.42,0,1,1),$T=mf(0,0,.58,1),E8=mf(.42,0,.58,1),zT=e=&gt;Array.isArray(e)&amp;&amp;typeof e[0]!=&quot;number&quot;,A8=e=&gt;Array.isArray(e)&amp;&amp;typeof e[0]==&quot;number&quot;,UT={linear:rs,easeIn:BT,easeInOut:E8,easeOut:$T,circIn:D1,circInOut:C8,circOut:S8,backIn:R1,backInOut:N8,backOut:j8,anticipate:k8},VT=e=&gt;typeof e==&quot;string&quot;,Yj=e=&gt;{if(A8(e)){O1(e.length===4);const[r,t,n,o]=e;return mf(r,t,n,o)}else if(VT(e))return UT[e];return e},Xh=[&quot;setup&quot;,&quot;read&quot;,&quot;resolveKeyframes&quot;,&quot;preUpdate&quot;,&quot;update&quot;,&quot;preRender&quot;,&quot;render&quot;,&quot;postRender&quot;];function qT(e,r){let t=new Set,n=new Set,o=!1,s=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function c(d){l.has(d)&amp;&amp;(a.schedule(d),e()),d(u)}const a={schedule:(d,f=!1,h=!1)=&gt;{const p=h&amp;&amp;o?t:n;return f&amp;&amp;l.add(d),p.has(d)||p.add(d),d},cancel:d=&gt;{n.delete(d),l.delete(d)},process:d=&gt;{if(u=d,o){s=!0;return}o=!0,[t,n]=[n,t],t.forEach(c),t.clear(),o=!1,s&amp;&amp;(s=!1,a.process(d))}};return a}const WT=40;function M8(e,r){let t=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=&gt;t=!0,l=Xh.reduce((_,S)=&gt;(_[S]=qT(s),_),{}),{setup:u,read:c,resolveKeyframes:a,preUpdate:d,update:f,preRender:h,render:m,postRender:p}=l,x=()=&gt;{const _=Da.useManualTiming?o.timestamp:performance.now();t=!1,Da.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(_-o.timestamp,WT),1)),o.timestamp=_,o.isProcessing=!0,u.process(o),c.process(o),a.process(o),d.process(o),f.process(o),h.process(o),m.process(o),p.process(o),o.isProcessing=!1,t&amp;&amp;r&amp;&amp;(n=!1,e(x))},g=()=&gt;{t=!0,n=!0,o.isProcessing||e(x)};return{schedule:Xh.reduce((_,S)=&gt;{const A=l[S];return _[S]=(I,V=!1,F=!1)=&gt;(t||g(),A.schedule(I,V,F)),_},{}),cancel:_=&gt;{for(let S=0;S&lt;Xh.length;S++)l[Xh[S]].cancel(_)},state:o,steps:l}}const{schedule:Ar,cancel:$o,state:Tn,steps:Mx}=M8(typeof requestAnimationFrame&lt;&quot;u&quot;?requestAnimationFrame:rs,!0);let Nm;function HT(){Nm=void 0}const si={now:()=&gt;(Nm===void 0&amp;&amp;si.set(Tn.isProcessing||Da.useManualTiming?Tn.timestamp:performance.now()),Nm),set:e=&gt;{Nm=e,queueMicrotask(HT)}},P8=e=&gt;r=&gt;typeof r==&quot;string&quot;&amp;&amp;r.startsWith(e),O8=P8(&quot;--&quot;),KT=P8(&quot;var(--&quot;),L1=e=&gt;KT(e)?XT.test(e.split(&quot;/*&quot;)[0].trim()):!1,XT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Zj(e){return typeof e!=&quot;string&quot;?!1:e.split(&quot;/*&quot;)[0].includes(&quot;var(--&quot;)}const cu={test:e=&gt;typeof e==&quot;number&quot;,parse:parseFloat,transform:e=&gt;e},$d={...cu,transform:e=&gt;ra(0,1,e)},Gh={...cu,default:1},Pd=e=&gt;Math.round(e*1e5)/1e5,F1=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function GT(e){return e==null}const YT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,B1=(e,r)=&gt;t=&gt;!!(typeof t==&quot;string&quot;&amp;&amp;YT.test(t)&amp;&amp;t.startsWith(e)||r&amp;&amp;!GT(t)&amp;&amp;Object.prototype.hasOwnProperty.call(t,r)),T8=(e,r,t)=&gt;n=&gt;{if(typeof n!=&quot;string&quot;)return n;const[o,s,l,u]=n.match(F1);return{[e]:parseFloat(o),[r]:parseFloat(s),[t]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},ZT=e=&gt;ra(0,255,e),Px={...cu,transform:e=&gt;Math.round(ZT(e))},Al={test:B1(&quot;rgb&quot;,&quot;red&quot;),parse:T8(&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;),transform:({red:e,green:r,blue:t,alpha:n=1})=&gt;&quot;rgba(&quot;+Px.transform(e)+&quot;, &quot;+Px.transform(r)+&quot;, &quot;+Px.transform(t)+&quot;, &quot;+Pd($d.transform(n))+&quot;)&quot;};function QT(e){let r=&quot;&quot;,t=&quot;&quot;,n=&quot;&quot;,o=&quot;&quot;;return e.length&gt;5?(r=e.substring(1,3),t=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(r=e.substring(1,2),t=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),r+=r,t+=t,n+=n,o+=o),{red:parseInt(r,16),green:parseInt(t,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Wy={test:B1(&quot;#&quot;),parse:QT,transform:Al.transform},pf=e=&gt;({test:r=&gt;typeof r==&quot;string&quot;&amp;&amp;r.endsWith(e)&amp;&amp;r.split(&quot; &quot;).length===1,parse:parseFloat,transform:r=&gt;`${r}${e}`}),Mo=pf(&quot;deg&quot;),ea=pf(&quot;%&quot;),dt=pf(&quot;px&quot;),JT=pf(&quot;vh&quot;),eI=pf(&quot;vw&quot;),Qj={...ea,parse:e=&gt;ea.parse(e)/100,transform:e=&gt;ea.transform(e*100)},Fc={test:B1(&quot;hsl&quot;,&quot;hue&quot;),parse:T8(&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;),transform:({hue:e,saturation:r,lightness:t,alpha:n=1})=&gt;&quot;hsla(&quot;+Math.round(e)+&quot;, &quot;+ea.transform(Pd(r))+&quot;, &quot;+ea.transform(Pd(t))+&quot;, &quot;+Pd($d.transform(n))+&quot;)&quot;},Jr={test:e=&gt;Al.test(e)||Wy.test(e)||Fc.test(e),parse:e=&gt;Al.test(e)?Al.parse(e):Fc.test(e)?Fc.parse(e):Wy.parse(e),transform:e=&gt;typeof e==&quot;string&quot;?e:e.hasOwnProperty(&quot;red&quot;)?Al.transform(e):Fc.transform(e),getAnimatableNone:e=&gt;{const r=Jr.parse(e);return r.alpha=0,Jr.transform(r)}},tI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rI(e){return isNaN(e)&amp;&amp;typeof e==&quot;string&quot;&amp;&amp;(e.match(F1)?.length||0)+(e.match(tI)?.length||0)&gt;0}const I8=&quot;number&quot;,R8=&quot;color&quot;,nI=&quot;var&quot;,iI=&quot;var(&quot;,Jj=&quot;${}&quot;,sI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zd(e){const r=e.toString(),t=[],n={color:[],number:[],var:[]},o=[];let s=0;const u=r.replace(sI,c=&gt;(Jr.test(c)?(n.color.push(s),o.push(R8),t.push(Jr.parse(c))):c.startsWith(iI)?(n.var.push(s),o.push(nI),t.push(c)):(n.number.push(s),o.push(I8),t.push(parseFloat(c))),++s,Jj)).split(Jj);return{values:t,split:u,indexes:n,types:o}}function D8(e){return zd(e).values}function L8(e){const{split:r,types:t}=zd(e),n=r.length;return o=&gt;{let s=&quot;&quot;;for(let l=0;l&lt;n;l++)if(s+=r[l],o[l]!==void 0){const u=t[l];u===I8?s+=Pd(o[l]):u===R8?s+=Jr.transform(o[l]):s+=o[l]}return s}}const aI=e=&gt;typeof e==&quot;number&quot;?0:Jr.test(e)?Jr.getAnimatableNone(e):e;function oI(e){const r=D8(e);return L8(e)(r.map(aI))}const zo={test:rI,parse:D8,createTransformer:L8,getAnimatableNone:oI};function Ox(e,r,t){return t&lt;0&amp;&amp;(t+=1),t&gt;1&amp;&amp;(t-=1),t&lt;1/6?e+(r-e)*6*t:t&lt;1/2?r:t&lt;2/3?e+(r-e)*(2/3-t)*6:e}function lI({hue:e,saturation:r,lightness:t,alpha:n}){e/=360,r/=100,t/=100;let o=0,s=0,l=0;if(!r)o=s=l=t;else{const u=t&lt;.5?t*(1+r):t+r-t*r,c=2*t-u;o=Ox(c,u,e+1/3),s=Ox(c,u,e),l=Ox(c,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:n}}function zm(e,r){return t=&gt;t&gt;0?r:e}const Br=(e,r,t)=&gt;e+(r-e)*t,Tx=(e,r,t)=&gt;{const n=e*e,o=t*(r*r-n)+n;return o&lt;0?0:Math.sqrt(o)},cI=[Wy,Al,Fc],uI=e=&gt;cI.find(r=&gt;r.test(e));function e3(e){const r=uI(e);if(!r)return!1;let t=r.parse(e);return r===Fc&amp;&amp;(t=lI(t)),t}const t3=(e,r)=&gt;{const t=e3(e),n=e3(r);if(!t||!n)return zm(e,r);const o={...t};return s=&gt;(o.red=Tx(t.red,n.red,s),o.green=Tx(t.green,n.green,s),o.blue=Tx(t.blue,n.blue,s),o.alpha=Br(t.alpha,n.alpha,s),Al.transform(o))},Hy=new Set([&quot;none&quot;,&quot;hidden&quot;]);function dI(e,r){return Hy.has(e)?t=&gt;t&lt;=0?e:r:t=&gt;t&gt;=1?r:e}function fI(e,r){return t=&gt;Br(e,r,t)}function $1(e){return typeof e==&quot;number&quot;?fI:typeof e==&quot;string&quot;?L1(e)?zm:Jr.test(e)?t3:pI:Array.isArray(e)?F8:typeof e==&quot;object&quot;?Jr.test(e)?t3:hI:zm}function F8(e,r){const t=[...e],n=t.length,o=e.map((s,l)=&gt;$1(s)(s,r[l]));return s=&gt;{for(let l=0;l&lt;n;l++)t[l]=o[l](s);return t}}function hI(e,r){const t={...e,...r},n={};for(const o in t)e[o]!==void 0&amp;&amp;r[o]!==void 0&amp;&amp;(n[o]=$1(e[o])(e[o],r[o]));return o=&gt;{for(const s in n)t[s]=n[s](o);return t}}function mI(e,r){const t=[],n={color:0,var:0,number:0};for(let o=0;o&lt;r.values.length;o++){const s=r.types[o],l=e.indexes[s][n[s]],u=e.values[l]??0;t[o]=u,n[s]++}return t}const pI=(e,r)=&gt;{const t=zo.createTransformer(r),n=zd(e),o=zd(r);return n.indexes.var.length===o.indexes.var.length&amp;&amp;n.indexes.color.length===o.indexes.color.length&amp;&amp;n.indexes.number.length&gt;=o.indexes.number.length?Hy.has(e)&amp;&amp;!o.values.length||Hy.has(r)&amp;&amp;!n.values.length?dI(e,r):hf(F8(mI(n,o),o.values),t):zm(e,r)};function B8(e,r,t){return typeof e==&quot;number&quot;&amp;&amp;typeof r==&quot;number&quot;&amp;&amp;typeof t==&quot;number&quot;?Br(e,r,t):$1(e)(e,r)}const gI=e=&gt;{const r=({timestamp:t})=&gt;e(t);return{start:(t=!0)=&gt;Ar.update(r,t),stop:()=&gt;$o(r),now:()=&gt;Tn.isProcessing?Tn.timestamp:si.now()}},$8=(e,r,t=10)=&gt;{let n=&quot;&quot;;const o=Math.max(Math.round(r/t),2);for(let s=0;s&lt;o;s++)n+=Math.round(e(s/(o-1))*1e4)/1e4+&quot;, &quot;;return`linear(${n.substring(0,n.length-2)})`},Um=2e4;function z1(e){let r=0;const t=50;let n=e.next(r);for(;!n.done&amp;&amp;r&lt;Um;)r+=t,n=e.next(r);return r&gt;=Um?1/0:r}function xI(e,r=100,t){const n=t({...e,keyframes:[0,r]}),o=Math.min(z1(n),Um);return{type:&quot;keyframes&quot;,ease:s=&gt;n.next(o*s).value/r,duration:Qi(o)}}const bI=5;function z8(e,r,t){const n=Math.max(r-bI,0);return y8(t-e(n),r-n)}const qr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ix=.001;function yI({duration:e=qr.duration,bounce:r=qr.bounce,velocity:t=qr.velocity,mass:n=qr.mass}){let o,s,l=1-r;l=ra(qr.minDamping,qr.maxDamping,l),e=ra(qr.minDuration,qr.maxDuration,Qi(e)),l&lt;1?(o=a=&gt;{const d=a*l,f=d*e,h=d-t,m=Ky(a,l),p=Math.exp(-f);return Ix-h/m*p},s=a=&gt;{const f=a*l*e,h=f*t+t,m=Math.pow(l,2)*Math.pow(a,2)*e,p=Math.exp(-f),x=Ky(Math.pow(a,2),l);return(-o(a)+Ix&gt;0?-1:1)*((h-m)*p)/x}):(o=a=&gt;{const d=Math.exp(-a*e),f=(a-t)*e+1;return-Ix+d*f},s=a=&gt;{const d=Math.exp(-a*e),f=(t-a)*(e*e);return d*f});const u=5/e,c=wI(o,s,u);if(e=Oa(e),isNaN(c))return{stiffness:qr.stiffness,damping:qr.damping,duration:e};{const a=Math.pow(c,2)*n;return{stiffness:a,damping:l*2*Math.sqrt(n*a),duration:e}}}const vI=12;function wI(e,r,t){let n=t;for(let o=1;o&lt;vI;o++)n=n-e(n)/r(n);return n}function Ky(e,r){return e*Math.sqrt(1-r*r)}const _I=[&quot;duration&quot;,&quot;bounce&quot;],jI=[&quot;stiffness&quot;,&quot;damping&quot;,&quot;mass&quot;];function r3(e,r){return r.some(t=&gt;e[t]!==void 0)}function NI(e){let r={velocity:qr.velocity,stiffness:qr.stiffness,damping:qr.damping,mass:qr.mass,isResolvedFromDuration:!1,...e};if(!r3(e,jI)&amp;&amp;r3(e,_I))if(e.visualDuration){const t=e.visualDuration,n=2*Math.PI/(t*1.2),o=n*n,s=2*ra(.05,1,1-(e.bounce||0))*Math.sqrt(o);r={...r,mass:qr.mass,stiffness:o,damping:s}}else{const t=yI(e);r={...r,...t,mass:qr.mass},r.isResolvedFromDuration=!0}return r}function Vm(e=qr.visualDuration,r=qr.bounce){const t=typeof e!=&quot;object&quot;?{visualDuration:e,keyframes:[0,1],bounce:r}:e;let{restSpeed:n,restDelta:o}=t;const s=t.keyframes[0],l=t.keyframes[t.keyframes.length-1],u={done:!1,value:s},{stiffness:c,damping:a,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=NI({...t,velocity:-Qi(t.velocity||0)}),p=h||0,x=a/(2*Math.sqrt(c*d)),g=l-s,y=Qi(Math.sqrt(c/d)),v=Math.abs(g)&lt;5;n||(n=v?qr.restSpeed.granular:qr.restSpeed.default),o||(o=v?qr.restDelta.granular:qr.restDelta.default);let _;if(x&lt;1){const A=Ky(y,x);_=I=&gt;{const V=Math.exp(-x*y*I);return l-V*((p+x*y*g)/A*Math.sin(A*I)+g*Math.cos(A*I))}}else if(x===1)_=A=&gt;l-Math.exp(-y*A)*(g+(p+y*g)*A);else{const A=y*Math.sqrt(x*x-1);_=I=&gt;{const V=Math.exp(-x*y*I),F=Math.min(A*I,300);return l-V*((p+x*y*g)*Math.sinh(F)+A*g*Math.cosh(F))/A}}const S={calculatedDuration:m&amp;&amp;f||null,next:A=&gt;{const I=_(A);if(m)u.done=A&gt;=f;else{let V=A===0?p:0;x&lt;1&amp;&amp;(V=A===0?Oa(p):z8(_,A,I));const F=Math.abs(V)&lt;=n,q=Math.abs(l-I)&lt;=o;u.done=F&amp;&amp;q}return u.value=u.done?l:I,u},toString:()=&gt;{const A=Math.min(z1(S),Um),I=$8(V=&gt;S.next(A*V).value,A,30);return A+&quot;ms &quot;+I},toTransition:()=&gt;{}};return S}Vm.applyToOptions=e=&gt;{const r=xI(e,100,Vm);return e.ease=r.ease,e.duration=Oa(r.duration),e.type=&quot;keyframes&quot;,e};function Xy({keyframes:e,velocity:r=0,power:t=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:c,restDelta:a=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},m=F=&gt;u!==void 0&amp;&amp;F&lt;u||c!==void 0&amp;&amp;F&gt;c,p=F=&gt;u===void 0?c:c===void 0||Math.abs(u-F)&lt;Math.abs(c-F)?u:c;let x=t*r;const g=f+x,y=l===void 0?g:l(g);y!==g&amp;&amp;(x=y-f);const v=F=&gt;-x*Math.exp(-F/n),_=F=&gt;y+v(F),S=F=&gt;{const q=v(F),H=_(F);h.done=Math.abs(q)&lt;=a,h.value=h.done?y:H};let A,I;const V=F=&gt;{m(h.value)&amp;&amp;(A=F,I=Vm({keyframes:[h.value,p(h.value)],velocity:z8(_,F,h.value),damping:o,stiffness:s,restDelta:a,restSpeed:d}))};return V(0),{calculatedDuration:null,next:F=&gt;{let q=!1;return!I&amp;&amp;A===void 0&amp;&amp;(q=!0,S(F),V(F)),A!==void 0&amp;&amp;F&gt;=A?I.next(F-A):(!q&amp;&amp;S(F),h)}}}function kI(e,r,t){const n=[],o=t||Da.mix||B8,s=e.length-1;for(let l=0;l&lt;s;l++){let u=o(e[l],e[l+1]);if(r){const c=Array.isArray(r)?r[l]||rs:r;u=hf(c,u)}n.push(u)}return n}function SI(e,r,{clamp:t=!0,ease:n,mixer:o}={}){const s=e.length;if(O1(s===r.length),s===1)return()=&gt;r[0];if(s===2&amp;&amp;r[0]===r[1])return()=&gt;r[1];const l=e[0]===e[1];e[0]&gt;e[s-1]&amp;&amp;(e=[...e].reverse(),r=[...r].reverse());const u=kI(r,n,o),c=u.length,a=d=&gt;{if(l&amp;&amp;d&lt;e[0])return r[0];let f=0;if(c&gt;1)for(;f&lt;e.length-2&amp;&amp;!(d&lt;e[f+1]);f++);const h=Bd(e[f],e[f+1],d);return u[f](h)};return t?d=&gt;a(ra(e[0],e[s-1],d)):a}function CI(e,r){const t=e[e.length-1];for(let n=1;n&lt;=r;n++){const o=Bd(0,r,n);e.push(Br(t,1,o))}}function EI(e){const r=[0];return CI(r,e.length-1),r}function AI(e,r){return e.map(t=&gt;t*r)}function MI(e,r){return e.map(()=&gt;r||E8).splice(0,e.length-1)}function Od({duration:e=300,keyframes:r,times:t,ease:n=&quot;easeInOut&quot;}){const o=zT(n)?n.map(Yj):Yj(n),s={done:!1,value:r[0]},l=AI(t&amp;&amp;t.length===r.length?t:EI(r),e),u=SI(l,r,{ease:Array.isArray(o)?o:MI(r,o)});return{calculatedDuration:e,next:c=&gt;(s.value=u(c),s.done=c&gt;=e,s)}}const PI=e=&gt;e!==null;function U1(e,{repeat:r,repeatType:t=&quot;loop&quot;},n,o=1){const s=e.filter(PI),u=o&lt;0||r&amp;&amp;t!==&quot;loop&quot;&amp;&amp;r%2===1?0:s.length-1;return!u||n===void 0?s[u]:n}const OI={decay:Xy,inertia:Xy,tween:Od,keyframes:Od,spring:Vm};function U8(e){typeof e.type==&quot;string&quot;&amp;&amp;(e.type=OI[e.type])}class V1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=&gt;{this.resolve=r})}notifyFinished(){this.resolve()}then(r,t){return this.finished.then(r,t)}}const TI=e=&gt;e/100;class q1 extends V1{constructor(r){super(),this.state=&quot;idle&quot;,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=&gt;{const{motionValue:t}=this.options;t&amp;&amp;t.updatedAt!==si.now()&amp;&amp;this.tick(si.now()),this.isStopped=!0,this.state!==&quot;idle&quot;&amp;&amp;(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&amp;&amp;this.pause()}initAnimation(){const{options:r}=this;U8(r);const{type:t=Od,repeat:n=0,repeatDelay:o=0,repeatType:s,velocity:l=0}=r;let{keyframes:u}=r;const c=t||Od;c!==Od&amp;&amp;typeof u[0]!=&quot;number&quot;&amp;&amp;(this.mixKeyframes=hf(TI,B8(u[0],u[1])),u=[0,100]);const a=c({...r,keyframes:u});s===&quot;mirror&quot;&amp;&amp;(this.mirroredGenerator=c({...r,keyframes:[...u].reverse(),velocity:-l})),a.calculatedDuration===null&amp;&amp;(a.calculatedDuration=z1(a));const{calculatedDuration:d}=a;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=a}updateTime(r){const t=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(r,t=!1){const{generator:n,totalDuration:o,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:a=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:m,type:p,onUpdate:x,finalKeyframe:g}=this.options;this.speed&gt;0?this.startTime=Math.min(this.startTime,r):this.speed&lt;0&amp;&amp;(this.startTime=Math.min(r-o/this.speed,this.startTime)),t?this.currentTime=r:this.updateTime(r);const y=this.currentTime-a*(this.playbackSpeed&gt;=0?1:-1),v=this.playbackSpeed&gt;=0?y&lt;0:y&gt;o;this.currentTime=Math.max(y,0),this.state===&quot;finished&quot;&amp;&amp;this.holdTime===null&amp;&amp;(this.currentTime=o);let _=this.currentTime,S=n;if(f){const F=Math.min(this.currentTime,o)/u;let q=Math.floor(F),H=F%1;!H&amp;&amp;F&gt;=1&amp;&amp;(H=1),H===1&amp;&amp;q--,q=Math.min(q,f+1),q%2&amp;&amp;(h===&quot;reverse&quot;?(H=1-H,m&amp;&amp;(H-=m/u)):h===&quot;mirror&quot;&amp;&amp;(S=l)),_=ra(0,1,H)*u}const A=v?{done:!1,value:d[0]}:S.next(_);s&amp;&amp;(A.value=s(A.value));let{done:I}=A;!v&amp;&amp;c!==null&amp;&amp;(I=this.playbackSpeed&gt;=0?this.currentTime&gt;=o:this.currentTime&lt;=0);const V=this.holdTime===null&amp;&amp;(this.state===&quot;finished&quot;||this.state===&quot;running&quot;&amp;&amp;I);return V&amp;&amp;p!==Xy&amp;&amp;(A.value=U1(d,this.options,g,this.speed)),x&amp;&amp;x(A.value),V&amp;&amp;this.finish(),A}then(r,t){return this.finished.then(r,t)}get duration(){return Qi(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Qi(r)}get time(){return Qi(this.currentTime)}set time(r){r=Oa(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&amp;&amp;(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(si.now());const t=this.playbackSpeed!==r;this.playbackSpeed=r,t&amp;&amp;(this.time=Qi(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=gI,startTime:t}=this.options;this.driver||(this.driver=r(o=&gt;this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state===&quot;finished&quot;?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),this.state===&quot;finished&quot;&amp;&amp;this.speed&lt;0&amp;&amp;(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=&quot;running&quot;,this.driver.start()}pause(){this.state=&quot;paused&quot;,this.updateTime(si.now()),this.holdTime=this.currentTime}complete(){this.state!==&quot;running&quot;&amp;&amp;this.play(),this.state=&quot;finished&quot;,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=&quot;finished&quot;,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=&quot;idle&quot;,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&amp;&amp;(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&amp;&amp;(this.options.type=&quot;keyframes&quot;,this.options.ease=&quot;linear&quot;,this.initAnimation()),this.driver?.stop(),r.observe(this)}}function II(e){for(let r=1;r&lt;e.length;r++)e[r]??(e[r]=e[r-1])}const Ml=e=&gt;e*180/Math.PI,Gy=e=&gt;{const r=Ml(Math.atan2(e[1],e[0]));return Yy(r)},RI={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=&gt;(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Gy,rotateZ:Gy,skewX:e=&gt;Ml(Math.atan(e[1])),skewY:e=&gt;Ml(Math.atan(e[2])),skew:e=&gt;(Math.abs(e[1])+Math.abs(e[2]))/2},Yy=e=&gt;(e=e%360,e&lt;0&amp;&amp;(e+=360),e),n3=Gy,i3=e=&gt;Math.sqrt(e[0]*e[0]+e[1]*e[1]),s3=e=&gt;Math.sqrt(e[4]*e[4]+e[5]*e[5]),DI={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:i3,scaleY:s3,scale:e=&gt;(i3(e)+s3(e))/2,rotateX:e=&gt;Yy(Ml(Math.atan2(e[6],e[5]))),rotateY:e=&gt;Yy(Ml(Math.atan2(-e[2],e[0]))),rotateZ:n3,rotate:n3,skewX:e=&gt;Ml(Math.atan(e[4])),skewY:e=&gt;Ml(Math.atan(e[1])),skew:e=&gt;(Math.abs(e[1])+Math.abs(e[4]))/2};function Zy(e){return e.includes(&quot;scale&quot;)?1:0}function Qy(e,r){if(!e||e===&quot;none&quot;)return Zy(r);const t=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(t)n=DI,o=t;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=RI,o=u}if(!o)return Zy(r);const s=n[r],l=o[1].split(&quot;,&quot;).map(FI);return typeof s==&quot;function&quot;?s(l):l[s]}const LI=(e,r)=&gt;{const{transform:t=&quot;none&quot;}=getComputedStyle(e);return Qy(t,r)};function FI(e){return parseFloat(e.trim())}const uu=[&quot;transformPerspective&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;translateX&quot;,&quot;translateY&quot;,&quot;translateZ&quot;,&quot;scale&quot;,&quot;scaleX&quot;,&quot;scaleY&quot;,&quot;rotate&quot;,&quot;rotateX&quot;,&quot;rotateY&quot;,&quot;rotateZ&quot;,&quot;skew&quot;,&quot;skewX&quot;,&quot;skewY&quot;],du=new Set(uu),a3=e=&gt;e===cu||e===dt,BI=new Set([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),$I=uu.filter(e=&gt;!BI.has(e));function zI(e){const r=[];return $I.forEach(t=&gt;{const n=e.getValue(t);n!==void 0&amp;&amp;(r.push([t,n.get()]),n.set(t.startsWith(&quot;scale&quot;)?1:0))}),r}const Ro={width:({x:e},{paddingLeft:r=&quot;0&quot;,paddingRight:t=&quot;0&quot;})=&gt;e.max-e.min-parseFloat(r)-parseFloat(t),height:({y:e},{paddingTop:r=&quot;0&quot;,paddingBottom:t=&quot;0&quot;})=&gt;e.max-e.min-parseFloat(r)-parseFloat(t),top:(e,{top:r})=&gt;parseFloat(r),left:(e,{left:r})=&gt;parseFloat(r),bottom:({y:e},{top:r})=&gt;parseFloat(r)+(e.max-e.min),right:({x:e},{left:r})=&gt;parseFloat(r)+(e.max-e.min),x:(e,{transform:r})=&gt;Qy(r,&quot;x&quot;),y:(e,{transform:r})=&gt;Qy(r,&quot;y&quot;)};Ro.translateX=Ro.x;Ro.translateY=Ro.y;const Rl=new Set;let Jy=!1,ev=!1,tv=!1;function V8(){if(ev){const e=Array.from(Rl).filter(n=&gt;n.needsMeasurement),r=new Set(e.map(n=&gt;n.element)),t=new Map;r.forEach(n=&gt;{const o=zI(n);o.length&amp;&amp;(t.set(n,o),n.render())}),e.forEach(n=&gt;n.measureInitialState()),r.forEach(n=&gt;{n.render();const o=t.get(n);o&amp;&amp;o.forEach(([s,l])=&gt;{n.getValue(s)?.set(l)})}),e.forEach(n=&gt;n.measureEndState()),e.forEach(n=&gt;{n.suspendedScrollY!==void 0&amp;&amp;window.scrollTo(0,n.suspendedScrollY)})}ev=!1,Jy=!1,Rl.forEach(e=&gt;e.complete(tv)),Rl.clear()}function q8(){Rl.forEach(e=&gt;{e.readKeyframes(),e.needsMeasurement&amp;&amp;(ev=!0)})}function UI(){tv=!0,q8(),V8(),tv=!1}class W1{constructor(r,t,n,o,s,l=!1){this.state=&quot;pending&quot;,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=t,this.name=n,this.motionValue=o,this.element=s,this.isAsync=l}scheduleResolve(){this.state=&quot;scheduled&quot;,this.isAsync?(Rl.add(this),Jy||(Jy=!0,Ar.read(q8),Ar.resolveKeyframes(V8))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:t,element:n,motionValue:o}=this;if(r[0]===null){const s=o?.get(),l=r[r.length-1];if(s!==void 0)r[0]=s;else if(n&amp;&amp;t){const u=n.readValue(t,l);u!=null&amp;&amp;(r[0]=u)}r[0]===void 0&amp;&amp;(r[0]=l),o&amp;&amp;s===void 0&amp;&amp;o.set(r[0])}II(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state=&quot;complete&quot;,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Rl.delete(this)}cancel(){this.state===&quot;scheduled&quot;&amp;&amp;(Rl.delete(this),this.state=&quot;pending&quot;)}resume(){this.state===&quot;pending&quot;&amp;&amp;this.scheduleResolve()}}const VI=e=&gt;e.startsWith(&quot;--&quot;);function qI(e,r,t){VI(r)?e.style.setProperty(r,t):e.style[r]=t}const WI=T1(()=&gt;window.ScrollTimeline!==void 0),HI={};function KI(e,r){const t=T1(e);return()=&gt;HI[r]??t()}const W8=KI(()=&gt;{try{document.createElement(&quot;div&quot;).animate({opacity:0},{easing:&quot;linear(0, 1)&quot;})}catch{return!1}return!0},&quot;linearEasing&quot;),Sd=([e,r,t,n])=&gt;`cubic-bezier(${e}, ${r}, ${t}, ${n})`,o3={linear:&quot;linear&quot;,ease:&quot;ease&quot;,easeIn:&quot;ease-in&quot;,easeOut:&quot;ease-out&quot;,easeInOut:&quot;ease-in-out&quot;,circIn:Sd([0,.65,.55,1]),circOut:Sd([.55,0,1,.45]),backIn:Sd([.31,.01,.66,-.59]),backOut:Sd([.33,1.53,.69,.99])};function H8(e,r){if(e)return typeof e==&quot;function&quot;?W8()?$8(e,r):&quot;ease-out&quot;:A8(e)?Sd(e):Array.isArray(e)?e.map(t=&gt;H8(t,r)||o3.easeOut):o3[e]}function XI(e,r,t,{delay:n=0,duration:o=300,repeat:s=0,repeatType:l=&quot;loop&quot;,ease:u=&quot;easeOut&quot;,times:c}={},a=void 0){const d={[r]:t};c&amp;&amp;(d.offset=c);const f=H8(u,o);Array.isArray(f)&amp;&amp;(d.easing=f);const h={delay:n,duration:o,easing:Array.isArray(f)?&quot;linear&quot;:f,fill:&quot;both&quot;,iterations:s+1,direction:l===&quot;reverse&quot;?&quot;alternate&quot;:&quot;normal&quot;};return a&amp;&amp;(h.pseudoElement=a),e.animate(d,h)}function K8(e){return typeof e==&quot;function&quot;&amp;&amp;&quot;applyToOptions&quot;in e}function GI({type:e,...r}){return K8(e)&amp;&amp;W8()?e.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease=&quot;easeOut&quot;),r)}class YI extends V1{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!r)return;const{element:t,name:n,keyframes:o,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:c}=r;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=r,O1(typeof r.type!=&quot;string&quot;);const a=GI(r);this.animation=XI(t,n,o,a,s),a.autoplay===!1&amp;&amp;this.animation.pause(),this.animation.onfinish=()=&gt;{if(this.finishedTime=this.time,!s){const d=U1(o,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(d):qI(t,n,d),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===&quot;finished&quot;&amp;&amp;this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r===&quot;idle&quot;||r===&quot;finished&quot;||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return Qi(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Qi(r)}get time(){return Qi(Number(this.animation.currentTime)||0)}set time(r){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Oa(r)}get speed(){return this.animation.playbackRate}set speed(r){r&lt;0&amp;&amp;(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?&quot;finished&quot;:this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(r){this.manualStartTime=this.animation.startTime=r}attachTimeline({timeline:r,observe:t}){return this.allowFlatten&amp;&amp;this.animation.effect?.updateTiming({easing:&quot;linear&quot;}),this.animation.onfinish=null,r&amp;&amp;WI()?(this.animation.timeline=r,rs):t(this)}}const X8={anticipate:k8,backInOut:N8,circInOut:C8};function ZI(e){return e in X8}function QI(e){typeof e.ease==&quot;string&quot;&amp;&amp;ZI(e.ease)&amp;&amp;(e.ease=X8[e.ease])}const Rx=10;class JI extends YI{constructor(r){QI(r),U8(r),super(r),r.startTime!==void 0&amp;&amp;(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:t,onUpdate:n,onComplete:o,element:s,...l}=this.options;if(!t)return;if(r!==void 0){t.set(r);return}const u=new q1({...l,autoplay:!1}),c=Math.max(Rx,si.now()-this.startTime),a=ra(0,Rx,c-Rx);t.setWithVelocity(u.sample(Math.max(0,c-a)).value,u.sample(c).value,a),u.stop()}}const l3=(e,r)=&gt;r===&quot;zIndex&quot;?!1:!!(typeof e==&quot;number&quot;||Array.isArray(e)||typeof e==&quot;string&quot;&amp;&amp;(zo.test(e)||e===&quot;0&quot;)&amp;&amp;!e.startsWith(&quot;url(&quot;));function eR(e){const r=e[0];if(e.length===1)return!0;for(let t=0;t&lt;e.length;t++)if(e[t]!==r)return!0}function tR(e,r,t,n){const o=e[0];if(o===null)return!1;if(r===&quot;display&quot;||r===&quot;visibility&quot;)return!0;const s=e[e.length-1],l=l3(o,r),u=l3(s,r);return!l||!u?!1:eR(e)||(t===&quot;spring&quot;||K8(t))&amp;&amp;n}function rv(e){e.duration=0,e.type=&quot;keyframes&quot;}const rR=new Set([&quot;opacity&quot;,&quot;clipPath&quot;,&quot;filter&quot;,&quot;transform&quot;]),nR=T1(()=&gt;Object.hasOwnProperty.call(Element.prototype,&quot;animate&quot;));function iR(e){const{motionValue:r,name:t,repeatDelay:n,repeatType:o,damping:s,type:l}=e;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:a}=r.owner.getProps();return nR()&amp;&amp;t&amp;&amp;rR.has(t)&amp;&amp;(t!==&quot;transform&quot;||!a)&amp;&amp;!c&amp;&amp;!n&amp;&amp;o!==&quot;mirror&quot;&amp;&amp;s!==0&amp;&amp;l!==&quot;inertia&quot;}const sR=40;class aR extends V1{constructor({autoplay:r=!0,delay:t=0,type:n=&quot;keyframes&quot;,repeat:o=0,repeatDelay:s=0,repeatType:l=&quot;loop&quot;,keyframes:u,name:c,motionValue:a,element:d,...f}){super(),this.stop=()=&gt;{this._animation&amp;&amp;(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=si.now();const h={autoplay:r,delay:t,type:n,repeat:o,repeatDelay:s,repeatType:l,name:c,motionValue:a,element:d,...f},m=d?.KeyframeResolver||W1;this.keyframeResolver=new m(u,(p,x,g)=&gt;this.onKeyframesResolved(p,x,h,!g),c,a,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,t,n,o){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:c,isHandoff:a,onUpdate:d}=n;this.resolvedAt=si.now(),tR(r,s,l,u)||((Da.instantAnimations||!c)&amp;&amp;d?.(U1(r,n,t)),r[0]=r[r.length-1],rv(n),n.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt&gt;sR?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:r},m=!a&amp;&amp;iR(h),p=h.motionValue?.owner?.current,x=m?new JI({...h,element:p}):new q1(h);x.finished.then(()=&gt;{this.notifyFinished()}).catch(rs),this.pendingTimeline&amp;&amp;(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(r,t){return this.finished.finally(r).then(()=&gt;{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),UI()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=&gt;this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&amp;&amp;this.animation.cancel(),this.keyframeResolver?.cancel()}}function G8(e,r,t,n=0,o=1){const s=Array.from(e).sort((a,d)=&gt;a.sortNodePosition(d)).indexOf(r),l=e.size,u=(l-1)*n;return typeof t==&quot;function&quot;?t(s,l):o===1?s*n:u-s*n}const oR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lR(e){const r=oR.exec(e);if(!r)return[,];const[,t,n,o]=r;return[`--${t??n}`,o]}function Y8(e,r,t=1){const[n,o]=lR(e);if(!n)return;const s=window.getComputedStyle(r).getPropertyValue(n);if(s){const l=s.trim();return g8(l)?parseFloat(l):l}return L1(o)?Y8(o,r,t+1):o}const cR={type:&quot;spring&quot;,stiffness:500,damping:25,restSpeed:10},uR=e=&gt;({type:&quot;spring&quot;,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dR={type:&quot;keyframes&quot;,duration:.8},fR={type:&quot;keyframes&quot;,ease:[.25,.1,.35,1],duration:.3},hR=(e,{keyframes:r})=&gt;r.length&gt;2?dR:du.has(e)?e.startsWith(&quot;scale&quot;)?uR(r[1]):cR:fR,mR=e=&gt;e!==null;function pR(e,{repeat:r,repeatType:t=&quot;loop&quot;},n){const o=e.filter(mR),s=r&amp;&amp;t!==&quot;loop&quot;&amp;&amp;r%2===1?0:o.length-1;return o[s]}function H1(e,r){return e?.[r]??e?.default??e}function gR({when:e,delay:r,delayChildren:t,staggerChildren:n,staggerDirection:o,repeat:s,repeatType:l,repeatDelay:u,from:c,elapsed:a,...d}){return!!Object.keys(d).length}const K1=(e,r,t,n={},o,s)=&gt;l=&gt;{const u=H1(n,e)||{},c=u.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Oa(c);const d={keyframes:Array.isArray(t)?t:[null,t],ease:&quot;easeOut&quot;,velocity:r.getVelocity(),...u,delay:-a,onUpdate:h=&gt;{r.set(h),u.onUpdate&amp;&amp;u.onUpdate(h)},onComplete:()=&gt;{l(),u.onComplete&amp;&amp;u.onComplete()},name:e,motionValue:r,element:s?void 0:o};gR(u)||Object.assign(d,hR(e,d)),d.duration&amp;&amp;(d.duration=Oa(d.duration)),d.repeatDelay&amp;&amp;(d.repeatDelay=Oa(d.repeatDelay)),d.from!==void 0&amp;&amp;(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&amp;&amp;!d.repeatDelay)&amp;&amp;(rv(d),d.delay===0&amp;&amp;(f=!0)),(Da.instantAnimations||Da.skipAnimations)&amp;&amp;(f=!0,rv(d),d.delay=0),d.allowFlatten=!u.type&amp;&amp;!u.ease,f&amp;&amp;!s&amp;&amp;r.get()!==void 0){const h=pR(d.keyframes,u);if(h!==void 0){Ar.update(()=&gt;{d.onUpdate(h),d.onComplete()});return}}return u.isSync?new q1(d):new aR(d)};function c3(e){const r=[{},{}];return e?.values.forEach((t,n)=&gt;{r[0][n]=t.get(),r[1][n]=t.getVelocity()}),r}function X1(e,r,t,n){if(typeof r==&quot;function&quot;){const[o,s]=c3(n);r=r(t!==void 0?t:e.custom,o,s)}if(typeof r==&quot;string&quot;&amp;&amp;(r=e.variants&amp;&amp;e.variants[r]),typeof r==&quot;function&quot;){const[o,s]=c3(n);r=r(t!==void 0?t:e.custom,o,s)}return r}function Wc(e,r,t){const n=e.getProps();return X1(n,r,t!==void 0?t:n.custom,e)}const Z8=new Set([&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;,&quot;right&quot;,&quot;bottom&quot;,...uu]),u3=30,xR=e=&gt;!isNaN(parseFloat(e));class bR{constructor(r,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=&gt;{const o=si.now();if(this.updatedAt!==o&amp;&amp;this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&amp;&amp;(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=t.owner}setCurrent(r){this.current=r,this.updatedAt=si.now(),this.canTrackVelocity===null&amp;&amp;r!==void 0&amp;&amp;(this.canTrackVelocity=xR(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on(&quot;change&quot;,r)}on(r,t){this.events[r]||(this.events[r]=new I1);const n=this.events[r].add(t);return r===&quot;change&quot;?()=&gt;{n(),Ar.read(()=&gt;{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,t){this.passiveEffect=r,this.stopPassiveEffect=t}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-n}jump(r,t=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,t&amp;&amp;this.stop(),this.stopPassiveEffect&amp;&amp;this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&amp;&amp;this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=si.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt&gt;u3)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,u3);return y8(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(r){return this.stop(),new Promise(t=&gt;{this.hasAnimated=!0,this.animation=r(t),this.events.animationStart&amp;&amp;this.events.animationStart.notify()}).then(()=&gt;{this.events.animationComplete&amp;&amp;this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&amp;&amp;(this.animation.stop(),this.events.animationCancel&amp;&amp;this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&amp;&amp;this.stopPassiveEffect()}}function Gc(e,r){return new bR(e,r)}const nv=e=&gt;Array.isArray(e);function yR(e,r,t){e.hasValue(r)?e.getValue(r).set(t):e.addValue(r,Gc(t))}function vR(e){return nv(e)?e[e.length-1]||0:e}function wR(e,r){const t=Wc(e,r);let{transitionEnd:n={},transition:o={},...s}=t||{};s={...s,...n};for(const l in s){const u=vR(s[l]);yR(e,l,u)}}const Hn=e=&gt;!!(e&amp;&amp;e.getVelocity);function _R(e){return!!(Hn(e)&amp;&amp;e.add)}function iv(e,r){const t=e.getValue(&quot;willChange&quot;);if(_R(t))return t.add(r);if(!t&amp;&amp;Da.WillChange){const n=new Da.WillChange(&quot;auto&quot;);e.addValue(&quot;willChange&quot;,n),n.add(r)}}function G1(e){return e.replace(/([A-Z])/g,r=&gt;`-${r.toLowerCase()}`)}const jR=&quot;framerAppearId&quot;,Q8=&quot;data-&quot;+G1(jR);function J8(e){return e.props[Q8]}function NR({protectedKeys:e,needsAnimating:r},t){const n=e.hasOwnProperty(t)&amp;&amp;r[t]!==!0;return r[t]=!1,n}function eC(e,r,{delay:t=0,transitionOverride:n,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=r;n&amp;&amp;(s=n);const c=[],a=o&amp;&amp;e.animationState&amp;&amp;e.animationState.getState()[o];for(const d in u){const f=e.getValue(d,e.latestValues[d]??null),h=u[d];if(h===void 0||a&amp;&amp;NR(a,d))continue;const m={delay:t,...H1(s||{},d)},p=f.get();if(p!==void 0&amp;&amp;!f.isAnimating&amp;&amp;!Array.isArray(h)&amp;&amp;h===p&amp;&amp;!m.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const y=J8(e);if(y){const v=window.MotionHandoffAnimation(y,d,Ar);v!==null&amp;&amp;(m.startTime=v,x=!0)}}iv(e,d),f.start(K1(d,f,h,e.shouldReduceMotion&amp;&amp;Z8.has(d)?{type:!1}:m,e,x));const g=f.animation;g&amp;&amp;c.push(g)}return l&amp;&amp;Promise.all(c).then(()=&gt;{Ar.update(()=&gt;{l&amp;&amp;wR(e,l)})}),c}function sv(e,r,t={}){const n=Wc(e,r,t.type===&quot;exit&quot;?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};t.transitionOverride&amp;&amp;(o=t.transitionOverride);const s=n?()=&gt;Promise.all(eC(e,n,t)):()=&gt;Promise.resolve(),l=e.variantChildren&amp;&amp;e.variantChildren.size?(c=0)=&gt;{const{delayChildren:a=0,staggerChildren:d,staggerDirection:f}=o;return kR(e,r,c,a,d,f,t)}:()=&gt;Promise.resolve(),{when:u}=o;if(u){const[c,a]=u===&quot;beforeChildren&quot;?[s,l]:[l,s];return c().then(()=&gt;a())}else return Promise.all([s(),l(t.delay)])}function kR(e,r,t=0,n=0,o=0,s=1,l){const u=[];for(const c of e.variantChildren)c.notify(&quot;AnimationStart&quot;,r),u.push(sv(c,r,{...l,delay:t+(typeof n==&quot;function&quot;?0:n)+G8(e.variantChildren,c,n,o,s)}).then(()=&gt;c.notify(&quot;AnimationComplete&quot;,r)));return Promise.all(u)}function SR(e,r,t={}){e.notify(&quot;AnimationStart&quot;,r);let n;if(Array.isArray(r)){const o=r.map(s=&gt;sv(e,s,t));n=Promise.all(o)}else if(typeof r==&quot;string&quot;)n=sv(e,r,t);else{const o=typeof r==&quot;function&quot;?Wc(e,r,t.custom):r;n=Promise.all(eC(e,o,t))}return n.then(()=&gt;{e.notify(&quot;AnimationComplete&quot;,r)})}const CR={test:e=&gt;e===&quot;auto&quot;,parse:e=&gt;e},tC=e=&gt;r=&gt;r.test(e),rC=[cu,dt,ea,Mo,eI,JT,CR],d3=e=&gt;rC.find(tC(e));function ER(e){return typeof e==&quot;number&quot;?e===0:e!==null?e===&quot;none&quot;||e===&quot;0&quot;||b8(e):!0}const AR=new Set([&quot;brightness&quot;,&quot;contrast&quot;,&quot;saturate&quot;,&quot;opacity&quot;]);function MR(e){const[r,t]=e.slice(0,-1).split(&quot;(&quot;);if(r===&quot;drop-shadow&quot;)return e;const[n]=t.match(F1)||[];if(!n)return e;const o=t.replace(n,&quot;&quot;);let s=AR.has(r)?1:0;return n!==t&amp;&amp;(s*=100),r+&quot;(&quot;+s+o+&quot;)&quot;}const PR=/\b([a-z-]*)\(.*?\)/gu,av={...zo,getAnimatableNone:e=&gt;{const r=e.match(PR);return r?r.map(MR).join(&quot; &quot;):e}},f3={...cu,transform:Math.round},OR={rotate:Mo,rotateX:Mo,rotateY:Mo,rotateZ:Mo,scale:Gh,scaleX:Gh,scaleY:Gh,scaleZ:Gh,skew:Mo,skewX:Mo,skewY:Mo,distance:dt,translateX:dt,translateY:dt,translateZ:dt,x:dt,y:dt,z:dt,perspective:dt,transformPerspective:dt,opacity:$d,originX:Qj,originY:Qj,originZ:dt},Y1={borderWidth:dt,borderTopWidth:dt,borderRightWidth:dt,borderBottomWidth:dt,borderLeftWidth:dt,borderRadius:dt,radius:dt,borderTopLeftRadius:dt,borderTopRightRadius:dt,borderBottomRightRadius:dt,borderBottomLeftRadius:dt,width:dt,maxWidth:dt,height:dt,maxHeight:dt,top:dt,right:dt,bottom:dt,left:dt,inset:dt,insetBlock:dt,insetBlockStart:dt,insetBlockEnd:dt,insetInline:dt,insetInlineStart:dt,insetInlineEnd:dt,padding:dt,paddingTop:dt,paddingRight:dt,paddingBottom:dt,paddingLeft:dt,paddingBlock:dt,paddingBlockStart:dt,paddingBlockEnd:dt,paddingInline:dt,paddingInlineStart:dt,paddingInlineEnd:dt,margin:dt,marginTop:dt,marginRight:dt,marginBottom:dt,marginLeft:dt,marginBlock:dt,marginBlockStart:dt,marginBlockEnd:dt,marginInline:dt,marginInlineStart:dt,marginInlineEnd:dt,backgroundPositionX:dt,backgroundPositionY:dt,...OR,zIndex:f3,fillOpacity:$d,strokeOpacity:$d,numOctaves:f3},TR={...Y1,color:Jr,backgroundColor:Jr,outlineColor:Jr,fill:Jr,stroke:Jr,borderColor:Jr,borderTopColor:Jr,borderRightColor:Jr,borderBottomColor:Jr,borderLeftColor:Jr,filter:av,WebkitFilter:av},nC=e=&gt;TR[e];function iC(e,r){let t=nC(e);return t!==av&amp;&amp;(t=zo),t.getAnimatableNone?t.getAnimatableNone(r):void 0}const IR=new Set([&quot;auto&quot;,&quot;none&quot;,&quot;0&quot;]);function RR(e,r,t){let n=0,o;for(;n&lt;e.length&amp;&amp;!o;){const s=e[n];typeof s==&quot;string&quot;&amp;&amp;!IR.has(s)&amp;&amp;zd(s).values.length&amp;&amp;(o=e[n]),n++}if(o&amp;&amp;t)for(const s of r)e[s]=iC(t,o)}class DR extends W1{constructor(r,t,n,o,s){super(r,t,n,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let d=0;d&lt;r.length;d++){let f=r[d];if(typeof f==&quot;string&quot;&amp;&amp;(f=f.trim(),L1(f))){const h=Y8(f,t.current);h!==void 0&amp;&amp;(r[d]=h),d===r.length-1&amp;&amp;(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Z8.has(n)||r.length!==2)return;const[o,s]=r,l=d3(o),u=d3(s),c=Zj(o),a=Zj(s);if(c!==a&amp;&amp;Ro[n]){this.needsMeasurement=!0;return}if(l!==u)if(a3(l)&amp;&amp;a3(u))for(let d=0;d&lt;r.length;d++){const f=r[d];typeof f==&quot;string&quot;&amp;&amp;(r[d]=parseFloat(f))}else Ro[n]&amp;&amp;(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:t}=this,n=[];for(let o=0;o&lt;r.length;o++)(r[o]===null||ER(r[o]))&amp;&amp;n.push(o);n.length&amp;&amp;RR(r,n,t)}measureInitialState(){const{element:r,unresolvedKeyframes:t,name:n}=this;if(!r||!r.current)return;n===&quot;height&quot;&amp;&amp;(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ro[n](r.measureViewportBox(),window.getComputedStyle(r.current)),t[0]=this.measuredOrigin;const o=t[t.length-1];o!==void 0&amp;&amp;r.getValue(n,o).jump(o,!1)}measureEndState(){const{element:r,name:t,unresolvedKeyframes:n}=this;if(!r||!r.current)return;const o=r.getValue(t);o&amp;&amp;o.jump(this.measuredOrigin,!1);const s=n.length-1,l=n[s];n[s]=Ro[t](r.measureViewportBox(),window.getComputedStyle(r.current)),l!==null&amp;&amp;this.finalKeyframe===void 0&amp;&amp;(this.finalKeyframe=l),this.removedTransforms?.length&amp;&amp;this.removedTransforms.forEach(([u,c])=&gt;{r.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function LR(e,r,t){if(e instanceof EventTarget)return[e];if(typeof e==&quot;string&quot;){let n=document;const o=t?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const sC=(e,r)=&gt;r&amp;&amp;typeof e==&quot;number&quot;?r.transform(e):e;function aC(e){return x8(e)&amp;&amp;&quot;offsetHeight&quot;in e}const{schedule:Z1}=M8(queueMicrotask,!1),_s={x:!1,y:!1};function oC(){return _s.x||_s.y}function FR(e){return e===&quot;x&quot;||e===&quot;y&quot;?_s[e]?null:(_s[e]=!0,()=&gt;{_s[e]=!1}):_s.x||_s.y?null:(_s.x=_s.y=!0,()=&gt;{_s.x=_s.y=!1})}function lC(e,r){const t=LR(e),n=new AbortController,o={passive:!0,...r,signal:n.signal};return[t,o,()=&gt;n.abort()]}function h3(e){return!(e.pointerType===&quot;touch&quot;||oC())}function BR(e,r,t={}){const[n,o,s]=lC(e,t),l=u=&gt;{if(!h3(u))return;const{target:c}=u,a=r(c,u);if(typeof a!=&quot;function&quot;||!c)return;const d=f=&gt;{h3(f)&amp;&amp;(a(f),c.removeEventListener(&quot;pointerleave&quot;,d))};c.addEventListener(&quot;pointerleave&quot;,d,o)};return n.forEach(u=&gt;{u.addEventListener(&quot;pointerenter&quot;,l,o)}),s}const cC=(e,r)=&gt;r?e===r?!0:cC(e,r.parentElement):!1,Q1=e=&gt;e.pointerType===&quot;mouse&quot;?typeof e.button!=&quot;number&quot;||e.button&lt;=0:e.isPrimary!==!1,$R=new Set([&quot;BUTTON&quot;,&quot;INPUT&quot;,&quot;SELECT&quot;,&quot;TEXTAREA&quot;,&quot;A&quot;]);function uC(e){return $R.has(e.tagName)||e.isContentEditable===!0}const km=new WeakSet;function m3(e){return r=&gt;{r.key===&quot;Enter&quot;&amp;&amp;e(r)}}function Dx(e,r){e.dispatchEvent(new PointerEvent(&quot;pointer&quot;+r,{isPrimary:!0,bubbles:!0}))}const zR=(e,r)=&gt;{const t=e.currentTarget;if(!t)return;const n=m3(()=&gt;{if(km.has(t))return;Dx(t,&quot;down&quot;);const o=m3(()=&gt;{Dx(t,&quot;up&quot;)}),s=()=&gt;Dx(t,&quot;cancel&quot;);t.addEventListener(&quot;keyup&quot;,o,r),t.addEventListener(&quot;blur&quot;,s,r)});t.addEventListener(&quot;keydown&quot;,n,r),t.addEventListener(&quot;blur&quot;,()=&gt;t.removeEventListener(&quot;keydown&quot;,n),r)};function p3(e){return Q1(e)&amp;&amp;!oC()}function UR(e,r,t={}){const[n,o,s]=lC(e,t),l=u=&gt;{const c=u.currentTarget;if(!p3(u))return;km.add(c);const a=r(c,u),d=(m,p)=&gt;{window.removeEventListener(&quot;pointerup&quot;,f),window.removeEventListener(&quot;pointercancel&quot;,h),km.has(c)&amp;&amp;km.delete(c),p3(m)&amp;&amp;typeof a==&quot;function&quot;&amp;&amp;a(m,{success:p})},f=m=&gt;{d(m,c===window||c===document||t.useGlobalTarget||cC(c,m.target))},h=m=&gt;{d(m,!1)};window.addEventListener(&quot;pointerup&quot;,f,o),window.addEventListener(&quot;pointercancel&quot;,h,o)};return n.forEach(u=&gt;{(t.useGlobalTarget?window:u).addEventListener(&quot;pointerdown&quot;,l,o),aC(u)&amp;&amp;(u.addEventListener(&quot;focus&quot;,a=&gt;zR(a,o)),!uC(u)&amp;&amp;!u.hasAttribute(&quot;tabindex&quot;)&amp;&amp;(u.tabIndex=0))}),s}function dC(e){return x8(e)&amp;&amp;&quot;ownerSVGElement&quot;in e}function VR(e){return dC(e)&amp;&amp;e.tagName===&quot;svg&quot;}const qR=[...rC,Jr,zo],WR=e=&gt;qR.find(tC(e)),g3=()=&gt;({translate:0,scale:1,origin:0,originPoint:0}),Bc=()=&gt;({x:g3(),y:g3()}),x3=()=&gt;({min:0,max:0}),on=()=&gt;({x:x3(),y:x3()}),ov={current:null},fC={current:!1},HR=typeof window&lt;&quot;u&quot;;function KR(){if(fC.current=!0,!!HR)if(window.matchMedia){const e=window.matchMedia(&quot;(prefers-reduced-motion)&quot;),r=()=&gt;ov.current=e.matches;e.addEventListener(&quot;change&quot;,r),r()}else ov.current=!1}const XR=new WeakMap;function Jp(e){return e!==null&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;typeof e.start==&quot;function&quot;}function Ud(e){return typeof e==&quot;string&quot;||Array.isArray(e)}const J1=[&quot;animate&quot;,&quot;whileInView&quot;,&quot;whileFocus&quot;,&quot;whileHover&quot;,&quot;whileTap&quot;,&quot;whileDrag&quot;,&quot;exit&quot;],e2=[&quot;initial&quot;,...J1];function e0(e){return Jp(e.animate)||e2.some(r=&gt;Ud(e[r]))}function hC(e){return!!(e0(e)||e.variants)}function GR(e,r,t){for(const n in r){const o=r[n],s=t[n];if(Hn(o))e.addValue(n,o);else if(Hn(s))e.addValue(n,Gc(o,{owner:e}));else if(s!==o)if(e.hasValue(n)){const l=e.getValue(n);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(n);e.addValue(n,Gc(l!==void 0?l:o,{owner:e}))}}for(const n in t)r[n]===void 0&amp;&amp;e.removeValue(n);return r}const b3=[&quot;AnimationStart&quot;,&quot;AnimationComplete&quot;,&quot;Update&quot;,&quot;BeforeLayoutMeasure&quot;,&quot;LayoutMeasure&quot;,&quot;LayoutAnimationStart&quot;,&quot;LayoutAnimationComplete&quot;];let qm={};function mC(e){qm=e}function YR(){return qm}class ZR{scrapeMotionValuesFromProps(r,t,n){return{}}constructor({parent:r,props:t,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:s,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=W1,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=&gt;this.notify(&quot;Update&quot;,this.latestValues),this.render=()=&gt;{this.current&amp;&amp;(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=&gt;{const h=si.now();this.renderScheduledAt&lt;h&amp;&amp;(this.renderScheduledAt=h,Ar.render(this.render,!1,!0))};const{latestValues:c,renderState:a}=l;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=a,this.parent=r,this.props=t,this.presenceContext=n,this.depth=r?r.depth+1:0,this.reducedMotionConfig=o,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=e0(t),this.isVariantNode=hC(t),this.isVariantNode&amp;&amp;(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&amp;&amp;r.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(const h in f){const m=f[h];c[h]!==void 0&amp;&amp;Hn(m)&amp;&amp;m.set(c[h])}}mount(r){this.current=r,XR.set(r,this),this.projection&amp;&amp;!this.projection.instance&amp;&amp;this.projection.mount(r),this.parent&amp;&amp;this.isVariantNode&amp;&amp;!this.isControllingVariants&amp;&amp;(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=&gt;this.bindToMotionValue(n,t)),this.reducedMotionConfig===&quot;never&quot;?this.shouldReduceMotion=!1:this.reducedMotionConfig===&quot;always&quot;?this.shouldReduceMotion=!0:(fC.current||KR(),this.shouldReduceMotion=ov.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&amp;&amp;this.projection.unmount(),$o(this.notifyUpdate),$o(this.render),this.valueSubscriptions.forEach(r=&gt;r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&amp;&amp;this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const t=this.features[r];t&amp;&amp;(t.unmount(),t.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&amp;&amp;this.enteringChildren.delete(r)}bindToMotionValue(r,t){this.valueSubscriptions.has(r)&amp;&amp;this.valueSubscriptions.get(r)();const n=du.has(r);n&amp;&amp;this.onBindTransform&amp;&amp;this.onBindTransform();const o=t.on(&quot;change&quot;,l=&gt;{this.latestValues[r]=l,this.props.onUpdate&amp;&amp;Ar.preRender(this.notifyUpdate),n&amp;&amp;this.projection&amp;&amp;(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window&lt;&quot;u&quot;&amp;&amp;window.MotionCheckAppearSync&amp;&amp;(s=window.MotionCheckAppearSync(this,r,t)),this.valueSubscriptions.set(r,()=&gt;{o(),s&amp;&amp;s(),t.owner&amp;&amp;t.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r=&quot;animation&quot;;for(r in qm){const t=qm[r];if(!t)continue;const{isEnabled:n,Feature:o}=t;if(!this.features[r]&amp;&amp;o&amp;&amp;n(this.props)&amp;&amp;(this.features[r]=new o(this)),this.features[r]){const s=this.features[r];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):on()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,t){this.latestValues[r]=t}update(r,t){(r.transformTemplate||this.props.transformTemplate)&amp;&amp;this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n&lt;b3.length;n++){const o=b3[n];this.propEventSubscriptions[o]&amp;&amp;(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s=&quot;on&quot;+o,l=r[s];l&amp;&amp;(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=GR(this,this.scrapeMotionValuesFromProps(r,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&amp;&amp;this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const t=this.getClosestVariantNode();if(t)return t.variantChildren&amp;&amp;t.variantChildren.add(r),()=&gt;t.variantChildren.delete(r)}addValue(r,t){const n=this.values.get(r);t!==n&amp;&amp;(n&amp;&amp;this.removeValue(r),this.bindToMotionValue(r,t),this.values.set(r,t),this.latestValues[r]=t.get())}removeValue(r){this.values.delete(r);const t=this.valueSubscriptions.get(r);t&amp;&amp;(t(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,t){if(this.props.values&amp;&amp;this.props.values[r])return this.props.values[r];let n=this.values.get(r);return n===void 0&amp;&amp;t!==void 0&amp;&amp;(n=Gc(t===null?void 0:t,{owner:this}),this.addValue(r,n)),n}readValue(r,t){let n=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return n!=null&amp;&amp;(typeof n==&quot;string&quot;&amp;&amp;(g8(n)||b8(n))?n=parseFloat(n):!WR(n)&amp;&amp;zo.test(t)&amp;&amp;(n=iC(r,t)),this.setBaseTarget(r,Hn(n)?n.get():n)),Hn(n)?n.get():n}setBaseTarget(r,t){this.baseTarget[r]=t}getBaseTarget(r){const{initial:t}=this.props;let n;if(typeof t==&quot;string&quot;||typeof t==&quot;object&quot;){const s=X1(this.props,t,this.presenceContext?.custom);s&amp;&amp;(n=s[r])}if(t&amp;&amp;n!==void 0)return n;const o=this.getBaseTargetFromProps(this.props,r);return o!==void 0&amp;&amp;!Hn(o)?o:this.initialValues[r]!==void 0&amp;&amp;n===void 0?void 0:this.baseTarget[r]}on(r,t){return this.events[r]||(this.events[r]=new I1),this.events[r].add(t)}notify(r,...t){this.events[r]&amp;&amp;this.events[r].notify(...t)}scheduleRenderMicrotask(){Z1.render(this.render)}}class pC extends ZR{constructor(){super(...arguments),this.KeyframeResolver=DR}sortInstanceNodePosition(r,t){return r.compareDocumentPosition(t)&amp;2?1:-1}getBaseTargetFromProps(r,t){const n=r.style;return n?n[t]:void 0}removeValueFromRenderState(r,{vars:t,style:n}){delete t[r],delete n[r]}handleChildMotionValue(){this.childSubscription&amp;&amp;(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Hn(r)&amp;&amp;(this.childSubscription=r.on(&quot;change&quot;,t=&gt;{this.current&amp;&amp;(this.current.textContent=`${t}`)}))}}class Ho{constructor(r){this.isMounted=!1,this.node=r}update(){}}function gC({top:e,left:r,right:t,bottom:n}){return{x:{min:r,max:t},y:{min:e,max:n}}}function QR({x:e,y:r}){return{top:r.min,right:e.max,bottom:r.max,left:e.min}}function JR(e,r){if(!r)return e;const t=r({x:e.left,y:e.top}),n=r({x:e.right,y:e.bottom});return{top:t.y,left:t.x,bottom:n.y,right:n.x}}function Lx(e){return e===void 0||e===1}function lv({scale:e,scaleX:r,scaleY:t}){return!Lx(e)||!Lx(r)||!Lx(t)}function Nl(e){return lv(e)||xC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xC(e){return y3(e.x)||y3(e.y)}function y3(e){return e&amp;&amp;e!==&quot;0%&quot;}function Wm(e,r,t){const n=e-t,o=r*n;return t+o}function v3(e,r,t,n,o){return o!==void 0&amp;&amp;(e=Wm(e,o,n)),Wm(e,t,n)+r}function cv(e,r=0,t=1,n,o){e.min=v3(e.min,r,t,n,o),e.max=v3(e.max,r,t,n,o)}function bC(e,{x:r,y:t}){cv(e.x,r.translate,r.scale,r.originPoint),cv(e.y,t.translate,t.scale,t.originPoint)}const w3=.999999999999,_3=1.0000000000001;function eD(e,r,t,n=!1){const o=t.length;if(!o)return;r.x=r.y=1;let s,l;for(let u=0;u&lt;o;u++){s=t[u],l=s.projectionDelta;const{visualElement:c}=s.options;c&amp;&amp;c.props.style&amp;&amp;c.props.style.display===&quot;contents&quot;||(n&amp;&amp;s.options.layoutScroll&amp;&amp;s.scroll&amp;&amp;s!==s.root&amp;&amp;zc(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&amp;&amp;(r.x*=l.x.scale,r.y*=l.y.scale,bC(e,l)),n&amp;&amp;Nl(s.latestValues)&amp;&amp;zc(e,s.latestValues))}r.x&lt;_3&amp;&amp;r.x&gt;w3&amp;&amp;(r.x=1),r.y&lt;_3&amp;&amp;r.y&gt;w3&amp;&amp;(r.y=1)}function $c(e,r){e.min=e.min+r,e.max=e.max+r}function j3(e,r,t,n,o=.5){const s=Br(e.min,e.max,o);cv(e,r,t,s,n)}function zc(e,r){j3(e.x,r.x,r.scaleX,r.scale,r.originX),j3(e.y,r.y,r.scaleY,r.scale,r.originY)}function yC(e,r){return gC(JR(e.getBoundingClientRect(),r))}function tD(e,r,t){const n=yC(e,t),{scroll:o}=r;return o&amp;&amp;($c(n.x,o.offset.x),$c(n.y,o.offset.y)),n}const rD={x:&quot;translateX&quot;,y:&quot;translateY&quot;,z:&quot;translateZ&quot;,transformPerspective:&quot;perspective&quot;},nD=uu.length;function iD(e,r,t){let n=&quot;&quot;,o=!0;for(let s=0;s&lt;nD;s++){const l=uu[s],u=e[l];if(u===void 0)continue;let c=!0;if(typeof u==&quot;number&quot;?c=u===(l.startsWith(&quot;scale&quot;)?1:0):c=parseFloat(u)===0,!c||t){const a=sC(u,Y1[l]);if(!c){o=!1;const d=rD[l]||l;n+=`${d}(${a}) `}t&amp;&amp;(r[l]=a)}}return n=n.trim(),t?n=t(r,o?&quot;&quot;:n):o&amp;&amp;(n=&quot;none&quot;),n}function t2(e,r,t){const{style:n,vars:o,transformOrigin:s}=e;let l=!1,u=!1;for(const c in r){const a=r[c];if(du.has(c)){l=!0;continue}else if(O8(c)){o[c]=a;continue}else{const d=sC(a,Y1[c]);c.startsWith(&quot;origin&quot;)?(u=!0,s[c]=d):n[c]=d}}if(r.transform||(l||t?n.transform=iD(r,e.transform,t):n.transform&amp;&amp;(n.transform=&quot;none&quot;)),u){const{originX:c=&quot;50%&quot;,originY:a=&quot;50%&quot;,originZ:d=0}=s;n.transformOrigin=`${c} ${a} ${d}`}}function vC(e,{style:r,vars:t},n,o){const s=e.style;let l;for(l in r)s[l]=r[l];o?.applyProjectionStyles(s,n);for(l in t)s.setProperty(l,t[l])}function N3(e,r){return r.max===r.min?0:e/(r.max-r.min)*100}const md={correct:(e,r)=&gt;{if(!r.target)return e;if(typeof e==&quot;string&quot;)if(dt.test(e))e=parseFloat(e);else return e;const t=N3(e,r.target.x),n=N3(e,r.target.y);return`${t}% ${n}%`}},sD={correct:(e,{treeScale:r,projectionDelta:t})=&gt;{const n=e,o=zo.parse(e);if(o.length&gt;5)return n;const s=zo.createTransformer(e),l=typeof o[0]!=&quot;number&quot;?1:0,u=t.x.scale*r.x,c=t.y.scale*r.y;o[0+l]/=u,o[1+l]/=c;const a=Br(u,c,.5);return typeof o[2+l]==&quot;number&quot;&amp;&amp;(o[2+l]/=a),typeof o[3+l]==&quot;number&quot;&amp;&amp;(o[3+l]/=a),s(o)}},uv={borderRadius:{...md,applyTo:[&quot;borderTopLeftRadius&quot;,&quot;borderTopRightRadius&quot;,&quot;borderBottomLeftRadius&quot;,&quot;borderBottomRightRadius&quot;]},borderTopLeftRadius:md,borderTopRightRadius:md,borderBottomLeftRadius:md,borderBottomRightRadius:md,boxShadow:sD};function wC(e,{layout:r,layoutId:t}){return du.has(e)||e.startsWith(&quot;origin&quot;)||(r||t!==void 0)&amp;&amp;(!!uv[e]||e===&quot;opacity&quot;)}function r2(e,r,t){const n=e.style,o=r?.style,s={};if(!n)return s;for(const l in n)(Hn(n[l])||o&amp;&amp;Hn(o[l])||wC(l,e)||t?.getValue(l)?.liveStyle!==void 0)&amp;&amp;(s[l]=n[l]);return s}function aD(e){return window.getComputedStyle(e)}class oD extends pC{constructor(){super(...arguments),this.type=&quot;html&quot;,this.renderInstance=vC}readValueFromInstance(r,t){if(du.has(t))return this.projection?.isProjecting?Zy(t):LI(r,t);{const n=aD(r),o=(O8(t)?n.getPropertyValue(t):n[t])||0;return typeof o==&quot;string&quot;?o.trim():o}}measureInstanceViewportBox(r,{transformPagePoint:t}){return yC(r,t)}build(r,t,n){t2(r,t,n.transformTemplate)}scrapeMotionValuesFromProps(r,t,n){return r2(r,t,n)}}const lD={offset:&quot;stroke-dashoffset&quot;,array:&quot;stroke-dasharray&quot;},cD={offset:&quot;strokeDashoffset&quot;,array:&quot;strokeDasharray&quot;};function uD(e,r,t=1,n=0,o=!0){e.pathLength=1;const s=o?lD:cD;e[s.offset]=dt.transform(-n);const l=dt.transform(r),u=dt.transform(t);e[s.array]=`${l} ${u}`}const dD=[&quot;offsetDistance&quot;,&quot;offsetPath&quot;,&quot;offsetRotate&quot;,&quot;offsetAnchor&quot;];function _C(e,{attrX:r,attrY:t,attrScale:n,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...u},c,a,d){if(t2(e,u,a),c){e.style.viewBox&amp;&amp;(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&amp;&amp;(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&amp;&amp;(h.transformOrigin=f.transformOrigin??&quot;50% 50%&quot;,delete f.transformOrigin),h.transform&amp;&amp;(h.transformBox=d?.transformBox??&quot;fill-box&quot;,delete f.transformBox);for(const m of dD)f[m]!==void 0&amp;&amp;(h[m]=f[m],delete f[m]);r!==void 0&amp;&amp;(f.x=r),t!==void 0&amp;&amp;(f.y=t),n!==void 0&amp;&amp;(f.scale=n),o!==void 0&amp;&amp;uD(f,o,s,l,!1)}const jC=new Set([&quot;baseFrequency&quot;,&quot;diffuseConstant&quot;,&quot;kernelMatrix&quot;,&quot;kernelUnitLength&quot;,&quot;keySplines&quot;,&quot;keyTimes&quot;,&quot;limitingConeAngle&quot;,&quot;markerHeight&quot;,&quot;markerWidth&quot;,&quot;numOctaves&quot;,&quot;targetX&quot;,&quot;targetY&quot;,&quot;surfaceScale&quot;,&quot;specularConstant&quot;,&quot;specularExponent&quot;,&quot;stdDeviation&quot;,&quot;tableValues&quot;,&quot;viewBox&quot;,&quot;gradientTransform&quot;,&quot;pathLength&quot;,&quot;startOffset&quot;,&quot;textLength&quot;,&quot;lengthAdjust&quot;]),NC=e=&gt;typeof e==&quot;string&quot;&amp;&amp;e.toLowerCase()===&quot;svg&quot;;function fD(e,r,t,n){vC(e,r,void 0,n);for(const o in r.attrs)e.setAttribute(jC.has(o)?o:G1(o),r.attrs[o])}function kC(e,r,t){const n=r2(e,r,t);for(const o in e)if(Hn(e[o])||Hn(r[o])){const s=uu.indexOf(o)!==-1?&quot;attr&quot;+o.charAt(0).toUpperCase()+o.substring(1):o;n[s]=e[o]}return n}class hD extends pC{constructor(){super(...arguments),this.type=&quot;svg&quot;,this.isSVGTag=!1,this.measureInstanceViewportBox=on}getBaseTargetFromProps(r,t){return r[t]}readValueFromInstance(r,t){if(du.has(t)){const n=nC(t);return n&amp;&amp;n.default||0}return t=jC.has(t)?t:G1(t),r.getAttribute(t)}scrapeMotionValuesFromProps(r,t,n){return kC(r,t,n)}build(r,t,n){_C(r,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(r,t,n,o){fD(r,t,n,o)}mount(r){this.isSVGTag=NC(r.tagName),super.mount(r)}}const mD=e2.length;function SC(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent?SC(e.parent)||{}:{};return e.props.initial!==void 0&amp;&amp;(t.initial=e.props.initial),t}const r={};for(let t=0;t&lt;mD;t++){const n=e2[t],o=e.props[n];(Ud(o)||o===!1)&amp;&amp;(r[n]=o)}return r}function CC(e,r){if(!Array.isArray(r))return!1;const t=r.length;if(t!==e.length)return!1;for(let n=0;n&lt;t;n++)if(r[n]!==e[n])return!1;return!0}const pD=[...J1].reverse(),gD=J1.length;function xD(e){return r=&gt;Promise.all(r.map(({animation:t,options:n})=&gt;SR(e,t,n)))}function bD(e){let r=xD(e),t=k3(),n=!0;const o=c=&gt;(a,d)=&gt;{const f=Wc(e,d,c===&quot;exit&quot;?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:m,...p}=f;a={...a,...p,...m}}return a};function s(c){r=c(e)}function l(c){const{props:a}=e,d=SC(e.parent)||{},f=[],h=new Set;let m={},p=1/0;for(let g=0;g&lt;gD;g++){const y=pD[g],v=t[y],_=a[y]!==void 0?a[y]:d[y],S=Ud(_),A=y===c?v.isActive:null;A===!1&amp;&amp;(p=g);let I=_===d[y]&amp;&amp;_!==a[y]&amp;&amp;S;if(I&amp;&amp;n&amp;&amp;e.manuallyAnimateOnMount&amp;&amp;(I=!1),v.protectedKeys={...m},!v.isActive&amp;&amp;A===null||!_&amp;&amp;!v.prevProp||Jp(_)||typeof _==&quot;boolean&quot;)continue;const V=yD(v.prevProp,_);let F=V||y===c&amp;&amp;v.isActive&amp;&amp;!I&amp;&amp;S||g&gt;p&amp;&amp;S,q=!1;const H=Array.isArray(_)?_:[_];let B=H.reduce(o(y),{});A===!1&amp;&amp;(B={});const{prevResolvedValues:K={}}=v,T={...K,...B},L=k=&gt;{F=!0,h.has(k)&amp;&amp;(q=!0,h.delete(k)),v.needsAnimating[k]=!0;const N=e.getValue(k);N&amp;&amp;(N.liveStyle=!1)};for(const k in T){const N=B[k],C=K[k];if(m.hasOwnProperty(k))continue;let P=!1;nv(N)&amp;&amp;nv(C)?P=!CC(N,C):P=N!==C,P?N!=null?L(k):h.add(k):N!==void 0&amp;&amp;h.has(k)?L(k):v.protectedKeys[k]=!0}v.prevProp=_,v.prevResolvedValues=B,v.isActive&amp;&amp;(m={...m,...B}),n&amp;&amp;e.blockInitialAnimation&amp;&amp;(F=!1);const E=I&amp;&amp;V;F&amp;&amp;(!E||q)&amp;&amp;f.push(...H.map(k=&gt;{const N={type:y};if(typeof k==&quot;string&quot;&amp;&amp;n&amp;&amp;!E&amp;&amp;e.manuallyAnimateOnMount&amp;&amp;e.parent){const{parent:C}=e,P=Wc(C,k);if(C.enteringChildren&amp;&amp;P){const{delayChildren:D}=P.transition||{};N.delay=G8(C.enteringChildren,e,D)}}return{animation:k,options:N}}))}if(h.size){const g={};if(typeof a.initial!=&quot;boolean&quot;){const y=Wc(e,Array.isArray(a.initial)?a.initial[0]:a.initial);y&amp;&amp;y.transition&amp;&amp;(g.transition=y.transition)}h.forEach(y=&gt;{const v=e.getBaseTarget(y),_=e.getValue(y);_&amp;&amp;(_.liveStyle=!0),g[y]=v??null}),f.push({animation:g})}let x=!!f.length;return n&amp;&amp;(a.initial===!1||a.initial===a.animate)&amp;&amp;!e.manuallyAnimateOnMount&amp;&amp;(x=!1),n=!1,x?r(f):Promise.resolve()}function u(c,a){if(t[c].isActive===a)return Promise.resolve();e.variantChildren?.forEach(f=&gt;f.animationState?.setActive(c,a)),t[c].isActive=a;const d=l(c);for(const f in t)t[f].protectedKeys={};return d}return{animateChanges:l,setActive:u,setAnimateFunction:s,getState:()=&gt;t,reset:()=&gt;{t=k3()}}}function yD(e,r){return typeof r==&quot;string&quot;?r!==e:Array.isArray(r)?!CC(r,e):!1}function _l(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function k3(){return{animate:_l(!0),whileInView:_l(),whileHover:_l(),whileTap:_l(),whileDrag:_l(),whileFocus:_l(),exit:_l()}}function S3(e,r){e.min=r.min,e.max=r.max}function vs(e,r){S3(e.x,r.x),S3(e.y,r.y)}function C3(e,r){e.translate=r.translate,e.scale=r.scale,e.originPoint=r.originPoint,e.origin=r.origin}const EC=1e-4,vD=1-EC,wD=1+EC,AC=.01,_D=0-AC,jD=0+AC;function ai(e){return e.max-e.min}function ND(e,r,t){return Math.abs(e-r)&lt;=t}function E3(e,r,t,n=.5){e.origin=n,e.originPoint=Br(r.min,r.max,e.origin),e.scale=ai(t)/ai(r),e.translate=Br(t.min,t.max,e.origin)-e.originPoint,(e.scale&gt;=vD&amp;&amp;e.scale&lt;=wD||isNaN(e.scale))&amp;&amp;(e.scale=1),(e.translate&gt;=_D&amp;&amp;e.translate&lt;=jD||isNaN(e.translate))&amp;&amp;(e.translate=0)}function Td(e,r,t,n){E3(e.x,r.x,t.x,n?n.originX:void 0),E3(e.y,r.y,t.y,n?n.originY:void 0)}function A3(e,r,t){e.min=t.min+r.min,e.max=e.min+ai(r)}function kD(e,r,t){A3(e.x,r.x,t.x),A3(e.y,r.y,t.y)}function M3(e,r,t){e.min=r.min-t.min,e.max=e.min+ai(r)}function Hm(e,r,t){M3(e.x,r.x,t.x),M3(e.y,r.y,t.y)}function P3(e,r,t,n,o){return e-=r,e=Wm(e,1/t,n),o!==void 0&amp;&amp;(e=Wm(e,1/o,n)),e}function SD(e,r=0,t=1,n=.5,o,s=e,l=e){if(ea.test(r)&amp;&amp;(r=parseFloat(r),r=Br(l.min,l.max,r/100)-l.min),typeof r!=&quot;number&quot;)return;let u=Br(s.min,s.max,n);e===s&amp;&amp;(u-=r),e.min=P3(e.min,r,t,u,o),e.max=P3(e.max,r,t,u,o)}function O3(e,r,[t,n,o],s,l){SD(e,r[t],r[n],r[o],r.scale,s,l)}const CD=[&quot;x&quot;,&quot;scaleX&quot;,&quot;originX&quot;],ED=[&quot;y&quot;,&quot;scaleY&quot;,&quot;originY&quot;];function T3(e,r,t,n){O3(e.x,r,CD,t?t.x:void 0,n?n.x:void 0),O3(e.y,r,ED,t?t.y:void 0,n?n.y:void 0)}function I3(e){return e.translate===0&amp;&amp;e.scale===1}function MC(e){return I3(e.x)&amp;&amp;I3(e.y)}function R3(e,r){return e.min===r.min&amp;&amp;e.max===r.max}function AD(e,r){return R3(e.x,r.x)&amp;&amp;R3(e.y,r.y)}function D3(e,r){return Math.round(e.min)===Math.round(r.min)&amp;&amp;Math.round(e.max)===Math.round(r.max)}function PC(e,r){return D3(e.x,r.x)&amp;&amp;D3(e.y,r.y)}function L3(e){return ai(e.x)/ai(e.y)}function F3(e,r){return e.translate===r.translate&amp;&amp;e.scale===r.scale&amp;&amp;e.originPoint===r.originPoint}function Yi(e){return[e(&quot;x&quot;),e(&quot;y&quot;)]}function MD(e,r,t){let n=&quot;&quot;;const o=e.x.translate/r.x,s=e.y.translate/r.y,l=t?.z||0;if((o||s||l)&amp;&amp;(n=`translate3d(${o}px, ${s}px, ${l}px) `),(r.x!==1||r.y!==1)&amp;&amp;(n+=`scale(${1/r.x}, ${1/r.y}) `),t){const{transformPerspective:a,rotate:d,rotateX:f,rotateY:h,skewX:m,skewY:p}=t;a&amp;&amp;(n=`perspective(${a}px) ${n}`),d&amp;&amp;(n+=`rotate(${d}deg) `),f&amp;&amp;(n+=`rotateX(${f}deg) `),h&amp;&amp;(n+=`rotateY(${h}deg) `),m&amp;&amp;(n+=`skewX(${m}deg) `),p&amp;&amp;(n+=`skewY(${p}deg) `)}const u=e.x.scale*r.x,c=e.y.scale*r.y;return(u!==1||c!==1)&amp;&amp;(n+=`scale(${u}, ${c})`),n||&quot;none&quot;}const OC=[&quot;TopLeft&quot;,&quot;TopRight&quot;,&quot;BottomLeft&quot;,&quot;BottomRight&quot;],PD=OC.length,B3=e=&gt;typeof e==&quot;string&quot;?parseFloat(e):e,$3=e=&gt;typeof e==&quot;number&quot;||dt.test(e);function OD(e,r,t,n,o,s){o?(e.opacity=Br(0,t.opacity??1,TD(n)),e.opacityExit=Br(r.opacity??1,0,ID(n))):s&amp;&amp;(e.opacity=Br(r.opacity??1,t.opacity??1,n));for(let l=0;l&lt;PD;l++){const u=`border${OC[l]}Radius`;let c=z3(r,u),a=z3(t,u);if(c===void 0&amp;&amp;a===void 0)continue;c||(c=0),a||(a=0),c===0||a===0||$3(c)===$3(a)?(e[u]=Math.max(Br(B3(c),B3(a),n),0),(ea.test(a)||ea.test(c))&amp;&amp;(e[u]+=&quot;%&quot;)):e[u]=a}(r.rotate||t.rotate)&amp;&amp;(e.rotate=Br(r.rotate||0,t.rotate||0,n))}function z3(e,r){return e[r]!==void 0?e[r]:e.borderRadius}const TD=TC(0,.5,S8),ID=TC(.5,.95,rs);function TC(e,r,t){return n=&gt;n&lt;e?0:n&gt;r?1:t(Bd(e,r,n))}function RD(e,r,t){const n=Hn(e)?e:Gc(e);return n.start(K1(&quot;&quot;,n,r,t)),n.animation}function Vd(e,r,t,n={passive:!0}){return e.addEventListener(r,t,n),()=&gt;e.removeEventListener(r,t)}const DD=(e,r)=&gt;e.depth-r.depth;class LD{constructor(){this.children=[],this.isDirty=!1}add(r){M1(this.children,r),this.isDirty=!0}remove(r){P1(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&amp;&amp;this.children.sort(DD),this.isDirty=!1,this.children.forEach(r)}}function FD(e,r){const t=si.now(),n=({timestamp:o})=&gt;{const s=o-t;s&gt;=r&amp;&amp;($o(n),e(s-r))};return Ar.setup(n,!0),()=&gt;$o(n)}function Sm(e){return Hn(e)?e.get():e}class BD{constructor(){this.members=[]}add(r){M1(this.members,r),r.scheduleRender()}remove(r){if(P1(this.members,r),r===this.prevLead&amp;&amp;(this.prevLead=void 0),r===this.lead){const t=this.members[this.members.length-1];t&amp;&amp;this.promote(t)}}relegate(r){const t=this.members.findIndex(o=&gt;r===o);if(t===0)return!1;let n;for(let o=t;o&gt;=0;o--){const s=this.members[o];if(s.isPresent!==!1){n=s;break}}return n?(this.promote(n),!0):!1}promote(r,t){const n=this.lead;if(r!==n&amp;&amp;(this.prevLead=n,this.lead=r,r.show(),n)){n.instance&amp;&amp;n.scheduleRender(),r.scheduleRender(),r.resumeFrom=n,t&amp;&amp;(r.resumeFrom.preserveOpacity=!0),n.snapshot&amp;&amp;(r.snapshot=n.snapshot,r.snapshot.latestValues=n.animationValues||n.latestValues),r.root&amp;&amp;r.root.isUpdating&amp;&amp;(r.isLayoutDirty=!0);const{crossfade:o}=r.options;o===!1&amp;&amp;n.hide()}}exitAnimationComplete(){this.members.forEach(r=&gt;{const{options:t,resumingFrom:n}=r;t.onExitComplete&amp;&amp;t.onExitComplete(),n&amp;&amp;n.options.onExitComplete&amp;&amp;n.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=&gt;{r.instance&amp;&amp;r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&amp;&amp;this.lead.snapshot&amp;&amp;(this.lead.snapshot=void 0)}}const Cm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Fx=[&quot;&quot;,&quot;X&quot;,&quot;Y&quot;,&quot;Z&quot;],$D=1e3;let zD=0;function Bx(e,r,t,n){const{latestValues:o}=r;o[e]&amp;&amp;(t[e]=o[e],r.setStaticValue(e,0),n&amp;&amp;(n[e]=0))}function IC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:r}=e.options;if(!r)return;const t=J8(r);if(window.MotionHasOptimisedAnimation(t,&quot;transform&quot;)){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(t,&quot;transform&quot;,Ar,!(o||s))}const{parent:n}=e;n&amp;&amp;!n.hasCheckedOptimisedAppear&amp;&amp;IC(n)}function RC({attachResizeListener:e,defaultParent:r,measureScroll:t,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(l={},u=r?.()){this.id=zD++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=&gt;this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=&gt;{this.isUpdating&amp;&amp;(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=&gt;{this.projectionUpdateScheduled=!1,this.nodes.forEach(qD),this.nodes.forEach(XD),this.nodes.forEach(GD),this.nodes.forEach(WD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c&lt;this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&amp;&amp;(this.nodes=new LD)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new I1),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const c=this.eventHandlers.get(l);c&amp;&amp;c.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=dC(l)&amp;&amp;!VR(l),this.instance=l;const{layoutId:u,layout:c,visualElement:a}=this.options;if(a&amp;&amp;!a.current&amp;&amp;a.mount(l),this.root.nodes.add(this),this.parent&amp;&amp;this.parent.children.add(this),this.root.hasTreeAnimated&amp;&amp;(c||u)&amp;&amp;(this.isLayoutDirty=!0),e){let d,f=0;const h=()=&gt;this.root.updateBlockedByResize=!1;Ar.read(()=&gt;{f=window.innerWidth}),e(l,()=&gt;{const m=window.innerWidth;m!==f&amp;&amp;(f=m,this.root.updateBlockedByResize=!0,d&amp;&amp;d(),d=FD(h,250),Cm.hasAnimatedSinceResize&amp;&amp;(Cm.hasAnimatedSinceResize=!1,this.nodes.forEach(q3)))})}u&amp;&amp;this.root.registerSharedNode(u,this),this.options.animate!==!1&amp;&amp;a&amp;&amp;(u||c)&amp;&amp;this.addEventListener(&quot;didUpdate&quot;,({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=&gt;{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||a.getDefaultTransition()||eL,{onLayoutAnimationStart:x,onLayoutAnimationComplete:g}=a.getProps(),y=!this.targetLayout||!PC(this.targetLayout,m),v=!f&amp;&amp;h;if(this.options.layoutRoot||this.resumeFrom||v||f&amp;&amp;(y||!this.currentAnimation)){this.resumeFrom&amp;&amp;(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={...H1(p,&quot;layout&quot;),onPlay:x,onComplete:g};(a.shouldReduceMotion||this.options.layoutRoot)&amp;&amp;(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(d,v)}else f||q3(this),this.isLead()&amp;&amp;this.options.onExitComplete&amp;&amp;this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&amp;&amp;this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&amp;&amp;l.remove(this),this.parent&amp;&amp;this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$o(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&amp;&amp;this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&amp;&amp;this.nodes.forEach(YD),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&amp;&amp;l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&amp;&amp;this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&amp;&amp;!this.hasCheckedOptimisedAppear&amp;&amp;IC(this),!this.root.isUpdating&amp;&amp;this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d&lt;this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll(&quot;snapshot&quot;),f.options.layoutRoot&amp;&amp;f.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&amp;&amp;!c)return;const a=this.getTransformTemplate();this.prevTransformTemplateValue=a?a(this.latestValues,&quot;&quot;):void 0,this.updateSnapshot(),l&amp;&amp;this.notifyListeners(&quot;willUpdate&quot;)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(U3);return}if(this.animationId&lt;=this.animationCommitId){this.nodes.forEach(V3);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(KD),this.nodes.forEach(UD),this.nodes.forEach(VD)):this.nodes.forEach(V3),this.clearAllSnapshots();const u=si.now();Tn.delta=ra(0,1e3/60,u-Tn.timestamp),Tn.timestamp=u,Tn.isProcessing=!0,Mx.update.process(Tn),Mx.preRender.process(Tn),Mx.render.process(Tn),Tn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Z1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HD),this.sharedNodes.forEach(ZD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ar.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ar.postRender(()=&gt;{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&amp;&amp;!ai(this.snapshot.measuredBox.x)&amp;&amp;!ai(this.snapshot.measuredBox.y)&amp;&amp;(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&amp;&amp;this.isLead())&amp;&amp;!this.isLayoutDirty))return;if(this.resumeFrom&amp;&amp;!this.resumeFrom.instance)for(let c=0;c&lt;this.path.length;c++)this.path[c].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=on(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(&quot;measure&quot;,this.layout.layoutBox);const{visualElement:u}=this.options;u&amp;&amp;u.notify(&quot;LayoutMeasure&quot;,this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l=&quot;measure&quot;){let u=!!(this.options.layoutScroll&amp;&amp;this.instance);if(this.scroll&amp;&amp;this.scroll.animationId===this.root.animationId&amp;&amp;this.scroll.phase===l&amp;&amp;(u=!1),u&amp;&amp;this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:c,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&amp;&amp;!MC(this.projectionDelta),c=this.getTransformTemplate(),a=c?c(this.latestValues,&quot;&quot;):void 0,d=a!==this.prevTransformTemplateValue;l&amp;&amp;this.instance&amp;&amp;(u||Nl(this.latestValues)||d)&amp;&amp;(o(this.instance,a),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return l&amp;&amp;(c=this.removeTransform(c)),tL(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return on();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rL))){const{scroll:a}=this.root;a&amp;&amp;($c(u.x,a.offset.x),$c(u.y,a.offset.y))}return u}removeElementScroll(l){const u=on();if(vs(u,l),this.scroll?.wasRoot)return u;for(let c=0;c&lt;this.path.length;c++){const a=this.path[c],{scroll:d,options:f}=a;a!==this.root&amp;&amp;d&amp;&amp;f.layoutScroll&amp;&amp;(d.wasRoot&amp;&amp;vs(u,l),$c(u.x,d.offset.x),$c(u.y,d.offset.y))}return u}applyTransform(l,u=!1){const c=on();vs(c,l);for(let a=0;a&lt;this.path.length;a++){const d=this.path[a];!u&amp;&amp;d.options.layoutScroll&amp;&amp;d.scroll&amp;&amp;d!==d.root&amp;&amp;zc(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Nl(d.latestValues)&amp;&amp;zc(c,d.latestValues)}return Nl(this.latestValues)&amp;&amp;zc(c,this.latestValues),c}removeTransform(l){const u=on();vs(u,l);for(let c=0;c&lt;this.path.length;c++){const a=this.path[c];if(!a.instance||!Nl(a.latestValues))continue;lv(a.latestValues)&amp;&amp;a.updateSnapshot();const d=on(),f=a.measurePageBox();vs(d,f),T3(u,a.latestValues,a.snapshot?a.snapshot.layoutBox:void 0,d)}return Nl(this.latestValues)&amp;&amp;T3(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&amp;&amp;this.relativeParent.resolvedRelativeTargetAt!==Tn.timestamp&amp;&amp;this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==u;if(!(l||c&amp;&amp;this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=Tn.timestamp;const h=this.getClosestProjectingParent();h&amp;&amp;this.linkedParentVersion!==h.layoutVersion&amp;&amp;!h.options.layoutRoot&amp;&amp;this.removeRelativeTarget(),!this.targetDelta&amp;&amp;!this.relativeTarget&amp;&amp;(h&amp;&amp;h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&amp;&amp;!this.targetDelta)&amp;&amp;(this.target||(this.target=on(),this.targetWithTransforms=on()),this.relativeTarget&amp;&amp;this.relativeTargetOrigin&amp;&amp;this.relativeParent&amp;&amp;this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),kD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vs(this.target,this.layout.layoutBox),bC(this.target,this.targetDelta)):vs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&amp;&amp;(this.attemptToResolveRelativeTarget=!1,h&amp;&amp;!!h.resumingFrom==!!this.resumingFrom&amp;&amp;!h.options.layoutScroll&amp;&amp;h.target&amp;&amp;this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||lv(this.parent.latestValues)||xC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&amp;&amp;this.layout)}createRelativeTarget(l,u,c){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=on(),this.relativeTargetOrigin=on(),Hm(this.relativeTargetOrigin,u,c),vs(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&amp;&amp;(c=!1),u&amp;&amp;(this.isSharedProjectionDirty||this.isTransformDirty)&amp;&amp;(c=!1),this.resolvedRelativeTargetAt===Tn.timestamp&amp;&amp;(c=!1),c)return;const{layout:a,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&amp;&amp;this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(a||d))return;vs(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;eD(this.layoutCorrected,this.treeScale,this.path,u),l.layout&amp;&amp;!l.target&amp;&amp;(this.treeScale.x!==1||this.treeScale.y!==1)&amp;&amp;(l.target=l.layout.layoutBox,l.targetWithTransforms=on());const{target:m}=l;if(!m){this.prevProjectionDelta&amp;&amp;(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(C3(this.prevProjectionDelta.x,this.projectionDelta.x),C3(this.prevProjectionDelta.y,this.projectionDelta.y)),Td(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!F3(this.projectionDelta.x,this.prevProjectionDelta.x)||!F3(this.projectionDelta.y,this.prevProjectionDelta.y))&amp;&amp;(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(&quot;projectionUpdate&quot;,m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&amp;&amp;u.scheduleRender()}this.resumingFrom&amp;&amp;!this.resumingFrom.instance&amp;&amp;(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Bc(),this.projectionDelta=Bc(),this.projectionDeltaWithTransform=Bc()}setAnimationOrigin(l,u=!1){const c=this.snapshot,a=c?c.latestValues:{},d={...this.latestValues},f=Bc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&amp;&amp;(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const h=on(),m=c?c.source:void 0,p=this.layout?this.layout.source:void 0,x=m!==p,g=this.getStack(),y=!g||g.members.length&lt;=1,v=!!(x&amp;&amp;!y&amp;&amp;this.options.crossfade===!0&amp;&amp;!this.path.some(JD));this.animationProgress=0;let _;this.mixTargetDelta=S=&gt;{const A=S/1e3;W3(f.x,l.x,A),W3(f.y,l.y,A),this.setTargetDelta(f),this.relativeTarget&amp;&amp;this.relativeTargetOrigin&amp;&amp;this.layout&amp;&amp;this.relativeParent&amp;&amp;this.relativeParent.layout&amp;&amp;(Hm(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QD(this.relativeTarget,this.relativeTargetOrigin,h,A),_&amp;&amp;AD(this.relativeTarget,_)&amp;&amp;(this.isProjectionDirty=!1),_||(_=on()),vs(_,this.relativeTarget)),x&amp;&amp;(this.animationValues=d,OD(d,a,this.latestValues,A,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners(&quot;animationStart&quot;),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&amp;&amp;($o(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ar.update(()=&gt;{Cm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Gc(0)),this.currentAnimation=RD(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:u=&gt;{this.mixTargetDelta(u),l.onUpdate&amp;&amp;l.onUpdate(u)},onStop:()=&gt;{},onComplete:()=&gt;{l.onComplete&amp;&amp;l.onComplete(),this.completeAnimation()}}),this.resumingFrom&amp;&amp;(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&amp;&amp;(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&amp;&amp;l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(&quot;animationComplete&quot;)}finishAnimation(){this.currentAnimation&amp;&amp;(this.mixTargetDelta&amp;&amp;this.mixTargetDelta($D),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:c,layout:a,latestValues:d}=l;if(!(!u||!c||!a)){if(this!==l&amp;&amp;this.layout&amp;&amp;a&amp;&amp;DC(this.options.animationType,this.layout.layoutBox,a.layoutBox)){c=this.target||on();const f=ai(this.layout.layoutBox.x);c.x.min=l.target.x.min,c.x.max=c.x.min+f;const h=ai(this.layout.layoutBox.y);c.y.min=l.target.y.min,c.y.max=c.y.min+h}vs(u,c),zc(u,d),Td(this.projectionDeltaWithTransform,this.layoutCorrected,u,d)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new BD),this.sharedNodes.get(l).add(u);const a=u.options.initialPromotionConfig;u.promote({transition:a?a.transition:void 0,preserveFollowOpacity:a&amp;&amp;a.shouldPreserveFollowOpacity?a.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:c}={}){const a=this.getStack();a&amp;&amp;a.promote(this,c),l&amp;&amp;(this.projectionDelta=void 0,this.needsReset=!0),u&amp;&amp;this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:c}=l;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&amp;&amp;(u=!0),!u)return;const a={};c.z&amp;&amp;Bx(&quot;z&quot;,l,a,this.animationValues);for(let d=0;d&lt;Fx.length;d++)Bx(`rotate${Fx[d]}`,l,a,this.animationValues),Bx(`skew${Fx[d]}`,l,a,this.animationValues);l.render();for(const d in a)l.setStaticValue(d,a[d]),this.animationValues&amp;&amp;(this.animationValues[d]=a[d]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility=&quot;hidden&quot;;return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility=&quot;&quot;,l.opacity=&quot;&quot;,l.pointerEvents=Sm(u?.pointerEvents)||&quot;&quot;,l.transform=c?c(this.latestValues,&quot;&quot;):&quot;none&quot;;return}const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){this.options.layoutId&amp;&amp;(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=Sm(u?.pointerEvents)||&quot;&quot;),this.hasProjected&amp;&amp;!Nl(this.latestValues)&amp;&amp;(l.transform=c?c({},&quot;&quot;):&quot;none&quot;,this.hasProjected=!1);return}l.visibility=&quot;&quot;;const d=a.animationValues||a.latestValues;this.applyTransformsToTarget();let f=MD(this.projectionDeltaWithTransform,this.treeScale,d);c&amp;&amp;(f=c(d,f)),l.transform=f;const{x:h,y:m}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,a.animationValues?l.opacity=a===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=a===this?d.opacity!==void 0?d.opacity:&quot;&quot;:d.opacityExit!==void 0?d.opacityExit:0;for(const p in uv){if(d[p]===void 0)continue;const{correct:x,applyTo:g,isCSSVariable:y}=uv[p],v=f===&quot;none&quot;?d[p]:x(d[p],a);if(g){const _=g.length;for(let S=0;S&lt;_;S++)l[g[S]]=v}else y?this.options.visualElement.renderState.vars[p]=v:l[p]=v}this.options.layoutId&amp;&amp;(l.pointerEvents=a===this?Sm(u?.pointerEvents)||&quot;&quot;:&quot;none&quot;)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=&gt;l.currentAnimation?.stop()),this.root.nodes.forEach(U3),this.root.sharedNodes.clear()}}}function UD(e){e.updateLayout()}function VD(e){const r=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&amp;&amp;e.layout&amp;&amp;r&amp;&amp;e.hasListeners(&quot;didUpdate&quot;)){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:o}=e.options,s=r.source!==e.layout.source;o===&quot;size&quot;?Yi(d=&gt;{const f=s?r.measuredBox[d]:r.layoutBox[d],h=ai(f);f.min=t[d].min,f.max=f.min+h}):DC(o,r.layoutBox,t)&amp;&amp;Yi(d=&gt;{const f=s?r.measuredBox[d]:r.layoutBox[d],h=ai(t[d]);f.max=f.min+h,e.relativeTarget&amp;&amp;!e.currentAnimation&amp;&amp;(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const l=Bc();Td(l,t,r.layoutBox);const u=Bc();s?Td(u,e.applyTransform(n,!0),r.measuredBox):Td(u,t,r.layoutBox);const c=!MC(l);let a=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&amp;&amp;!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&amp;&amp;h){const m=on();Hm(m,r.layoutBox,f.layoutBox);const p=on();Hm(p,t,h.layoutBox),PC(m,p)||(a=!0),d.options.layoutRoot&amp;&amp;(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners(&quot;didUpdate&quot;,{layout:t,snapshot:r,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeLayoutChanged:a})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&amp;&amp;t()}e.options.transition=void 0}function qD(e){e.parent&amp;&amp;(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function WD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HD(e){e.clearSnapshot()}function U3(e){e.clearMeasurements()}function V3(e){e.isLayoutDirty=!1}function KD(e){const{visualElement:r}=e.options;r&amp;&amp;r.getProps().onBeforeLayoutMeasure&amp;&amp;r.notify(&quot;BeforeLayoutMeasure&quot;),e.resetTransform()}function q3(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function XD(e){e.resolveTargetDelta()}function GD(e){e.calcProjection()}function YD(e){e.resetSkewAndRotation()}function ZD(e){e.removeLeadSnapshot()}function W3(e,r,t){e.translate=Br(r.translate,0,t),e.scale=Br(r.scale,1,t),e.origin=r.origin,e.originPoint=r.originPoint}function H3(e,r,t,n){e.min=Br(r.min,t.min,n),e.max=Br(r.max,t.max,n)}function QD(e,r,t,n){H3(e.x,r.x,t.x,n),H3(e.y,r.y,t.y,n)}function JD(e){return e.animationValues&amp;&amp;e.animationValues.opacityExit!==void 0}const eL={duration:.45,ease:[.4,0,.1,1]},K3=e=&gt;typeof navigator&lt;&quot;u&quot;&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().includes(e),X3=K3(&quot;applewebkit/&quot;)&amp;&amp;!K3(&quot;chrome/&quot;)?Math.round:rs;function G3(e){e.min=X3(e.min),e.max=X3(e.max)}function tL(e){G3(e.x),G3(e.y)}function DC(e,r,t){return e===&quot;position&quot;||e===&quot;preserve-aspect&quot;&amp;&amp;!ND(L3(r),L3(t),.2)}function rL(e){return e!==e.root&amp;&amp;e.scroll?.wasRoot}const nL=RC({attachResizeListener:(e,r)=&gt;Vd(e,&quot;resize&quot;,r),measureScroll:()=&gt;({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=&gt;!0}),$x={current:void 0},LC=RC({measureScroll:e=&gt;({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=&gt;{if(!$x.current){const e=new nL({});e.mount(window),e.setOptions({layoutScroll:!0}),$x.current=e}return $x.current},resetTransform:(e,r)=&gt;{e.style.transform=r!==void 0?r:&quot;none&quot;},checkIsScrollRoot:e=&gt;window.getComputedStyle(e).position===&quot;fixed&quot;}),n2=O.createContext({transformPagePoint:e=&gt;e,isStatic:!1,reducedMotion:&quot;never&quot;});function Y3(e,r){if(typeof e==&quot;function&quot;)return e(r);e!=null&amp;&amp;(e.current=r)}function iL(...e){return r=&gt;{let t=!1;const n=e.map(o=&gt;{const s=Y3(o,r);return!t&amp;&amp;typeof s==&quot;function&quot;&amp;&amp;(t=!0),s});if(t)return()=&gt;{for(let o=0;o&lt;n.length;o++){const s=n[o];typeof s==&quot;function&quot;?s():Y3(e[o],null)}}}}function sL(...e){return O.useCallback(iL(...e),e)}class aL extends O.Component{getSnapshotBeforeUpdate(r){const t=this.props.childRef.current;if(t&amp;&amp;r.isPresent&amp;&amp;!this.props.isPresent){const n=t.offsetParent,o=aC(n)&amp;&amp;n.offsetWidth||0,s=this.props.sizeRef.current;s.height=t.offsetHeight||0,s.width=t.offsetWidth||0,s.top=t.offsetTop,s.left=t.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function oL({children:e,isPresent:r,anchorX:t,root:n}){const o=O.useId(),s=O.useRef(null),l=O.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=O.useContext(n2),c=e.props?.ref??e?.ref,a=sL(s,c);return O.useInsertionEffect(()=&gt;{const{width:d,height:f,top:h,left:m,right:p}=l.current;if(r||!s.current||!d||!f)return;const x=t===&quot;left&quot;?`left: ${m}`:`right: ${p}`;s.current.dataset.motionPopId=o;const g=document.createElement(&quot;style&quot;);u&amp;&amp;(g.nonce=u);const y=n??document.head;return y.appendChild(g),g.sheet&amp;&amp;g.sheet.insertRule(`
          [data-motion-pop-id=&quot;${o}&quot;] {
            position: absolute !important;
            width: ${d}px !important;
            height: ${f}px !important;
            ${x}px !important;
            top: ${h}px !important;
          }
        `),()=&gt;{y.contains(g)&amp;&amp;y.removeChild(g)}},[r]),i.jsx(aL,{isPresent:r,childRef:s,sizeRef:l,children:O.cloneElement(e,{ref:a})})}const lL=({children:e,initial:r,isPresent:t,onExitComplete:n,custom:o,presenceAffectsLayout:s,mode:l,anchorX:u,root:c})=&gt;{const a=A1(cL),d=O.useId();let f=!0,h=O.useMemo(()=&gt;(f=!1,{id:d,initial:r,isPresent:t,custom:o,onExitComplete:m=&gt;{a.set(m,!0);for(const p of a.values())if(!p)return;n&amp;&amp;n()},register:m=&gt;(a.set(m,!1),()=&gt;a.delete(m))}),[t,a,n]);return s&amp;&amp;f&amp;&amp;(h={...h}),O.useMemo(()=&gt;{a.forEach((m,p)=&gt;a.set(p,!1))},[t]),O.useEffect(()=&gt;{!t&amp;&amp;!a.size&amp;&amp;n&amp;&amp;n()},[t]),l===&quot;popLayout&quot;&amp;&amp;(e=i.jsx(oL,{isPresent:t,anchorX:u,root:c,children:e})),i.jsx(Qp.Provider,{value:h,children:e})};function cL(){return new Map}function FC(e=!0){const r=O.useContext(Qp);if(r===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:o}=r,s=O.useId();O.useEffect(()=&gt;{if(e)return o(s)},[e]);const l=O.useCallback(()=&gt;e&amp;&amp;n&amp;&amp;n(s),[s,n,e]);return!t&amp;&amp;n?[!1,l]:[!0]}const Yh=e=&gt;e.key||&quot;&quot;;function Z3(e){const r=[];return O.Children.forEach(e,t=&gt;{O.isValidElement(t)&amp;&amp;r.push(t)}),r}const uL=({children:e,custom:r,initial:t=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:s=&quot;sync&quot;,propagate:l=!1,anchorX:u=&quot;left&quot;,root:c})=&gt;{const[a,d]=FC(l),f=O.useMemo(()=&gt;Z3(e),[e]),h=l&amp;&amp;!a?[]:f.map(Yh),m=O.useRef(!0),p=O.useRef(f),x=A1(()=&gt;new Map),g=O.useRef(new Set),[y,v]=O.useState(f),[_,S]=O.useState(f);p8(()=&gt;{m.current=!1,p.current=f;for(let V=0;V&lt;_.length;V++){const F=Yh(_[V]);h.includes(F)?(x.delete(F),g.current.delete(F)):x.get(F)!==!0&amp;&amp;x.set(F,!1)}},[_,h.length,h.join(&quot;-&quot;)]);const A=[];if(f!==y){let V=[...f];for(let F=0;F&lt;_.length;F++){const q=_[F],H=Yh(q);h.includes(H)||(V.splice(F,0,q),A.push(q))}return s===&quot;wait&quot;&amp;&amp;A.length&amp;&amp;(V=A),S(Z3(V)),v(f),null}const{forceRender:I}=O.useContext(E1);return i.jsx(i.Fragment,{children:_.map(V=&gt;{const F=Yh(V),q=l&amp;&amp;!a?!1:f===_||h.includes(F),H=()=&gt;{if(g.current.has(F))return;if(g.current.add(F),x.has(F))x.set(F,!0);else return;let B=!0;x.forEach(K=&gt;{K||(B=!1)}),B&amp;&amp;(I?.(),S(p.current),l&amp;&amp;d?.(),n&amp;&amp;n())};return i.jsx(lL,{isPresent:q,initial:!m.current||t?void 0:!1,custom:r,presenceAffectsLayout:o,mode:s,root:c,onExitComplete:q?void 0:H,anchorX:u,children:V},F)})})},BC=O.createContext({strict:!1}),Q3={animation:[&quot;animate&quot;,&quot;variants&quot;,&quot;whileHover&quot;,&quot;whileTap&quot;,&quot;exit&quot;,&quot;whileInView&quot;,&quot;whileFocus&quot;,&quot;whileDrag&quot;],exit:[&quot;exit&quot;],drag:[&quot;drag&quot;,&quot;dragControls&quot;],focus:[&quot;whileFocus&quot;],hover:[&quot;whileHover&quot;,&quot;onHoverStart&quot;,&quot;onHoverEnd&quot;],tap:[&quot;whileTap&quot;,&quot;onTap&quot;,&quot;onTapStart&quot;,&quot;onTapCancel&quot;],pan:[&quot;onPan&quot;,&quot;onPanStart&quot;,&quot;onPanSessionStart&quot;,&quot;onPanEnd&quot;],inView:[&quot;whileInView&quot;,&quot;onViewportEnter&quot;,&quot;onViewportLeave&quot;],layout:[&quot;layout&quot;,&quot;layoutId&quot;]};let J3=!1;function dL(){if(J3)return;const e={};for(const r in Q3)e[r]={isEnabled:t=&gt;Q3[r].some(n=&gt;!!t[n])};mC(e),J3=!0}function $C(){return dL(),YR()}function fL(e){const r=$C();for(const t in e)r[t]={...r[t],...e[t]};mC(r)}const hL=new Set([&quot;animate&quot;,&quot;exit&quot;,&quot;variants&quot;,&quot;initial&quot;,&quot;style&quot;,&quot;values&quot;,&quot;variants&quot;,&quot;transition&quot;,&quot;transformTemplate&quot;,&quot;custom&quot;,&quot;inherit&quot;,&quot;onBeforeLayoutMeasure&quot;,&quot;onAnimationStart&quot;,&quot;onAnimationComplete&quot;,&quot;onUpdate&quot;,&quot;onDragStart&quot;,&quot;onDrag&quot;,&quot;onDragEnd&quot;,&quot;onMeasureDragConstraints&quot;,&quot;onDirectionLock&quot;,&quot;onDragTransitionEnd&quot;,&quot;_dragX&quot;,&quot;_dragY&quot;,&quot;onHoverStart&quot;,&quot;onHoverEnd&quot;,&quot;onViewportEnter&quot;,&quot;onViewportLeave&quot;,&quot;globalTapTarget&quot;,&quot;ignoreStrict&quot;,&quot;viewport&quot;]);function Km(e){return e.startsWith(&quot;while&quot;)||e.startsWith(&quot;drag&quot;)&amp;&amp;e!==&quot;draggable&quot;||e.startsWith(&quot;layout&quot;)||e.startsWith(&quot;onTap&quot;)||e.startsWith(&quot;onPan&quot;)||e.startsWith(&quot;onLayout&quot;)||hL.has(e)}let zC=e=&gt;!Km(e);function mL(e){typeof e==&quot;function&quot;&amp;&amp;(zC=r=&gt;r.startsWith(&quot;on&quot;)?!Km(r):e(r))}try{mL(require(&quot;@emotion/is-prop-valid&quot;).default)}catch{}function pL(e,r,t){const n={};for(const o in e)o===&quot;values&quot;&amp;&amp;typeof e.values==&quot;object&quot;||(zC(o)||t===!0&amp;&amp;Km(o)||!r&amp;&amp;!Km(o)||e.draggable&amp;&amp;o.startsWith(&quot;onDrag&quot;))&amp;&amp;(n[o]=e[o]);return n}const t0=O.createContext({});function gL(e,r){if(e0(e)){const{initial:t,animate:n}=e;return{initial:t===!1||Ud(t)?t:void 0,animate:Ud(n)?n:void 0}}return e.inherit!==!1?r:{}}function xL(e){const{initial:r,animate:t}=gL(e,O.useContext(t0));return O.useMemo(()=&gt;({initial:r,animate:t}),[e4(r),e4(t)])}function e4(e){return Array.isArray(e)?e.join(&quot; &quot;):e}const i2=()=&gt;({style:{},transform:{},transformOrigin:{},vars:{}});function UC(e,r,t){for(const n in r)!Hn(r[n])&amp;&amp;!wC(n,t)&amp;&amp;(e[n]=r[n])}function bL({transformTemplate:e},r){return O.useMemo(()=&gt;{const t=i2();return t2(t,r,e),Object.assign({},t.vars,t.style)},[r])}function yL(e,r){const t=e.style||{},n={};return UC(n,t,e),Object.assign(n,bL(e,r)),n}function vL(e,r){const t={},n=yL(e,r);return e.drag&amp;&amp;e.dragListener!==!1&amp;&amp;(t.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout=&quot;none&quot;,n.touchAction=e.drag===!0?&quot;none&quot;:`pan-${e.drag===&quot;x&quot;?&quot;y&quot;:&quot;x&quot;}`),e.tabIndex===void 0&amp;&amp;(e.onTap||e.onTapStart||e.whileTap)&amp;&amp;(t.tabIndex=0),t.style=n,t}const VC=()=&gt;({...i2(),attrs:{}});function wL(e,r,t,n){const o=O.useMemo(()=&gt;{const s=VC();return _C(s,r,NC(n),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[r]);if(e.style){const s={};UC(s,e.style,e),o.style={...s,...o.style}}return o}const _L=[&quot;animate&quot;,&quot;circle&quot;,&quot;defs&quot;,&quot;desc&quot;,&quot;ellipse&quot;,&quot;g&quot;,&quot;image&quot;,&quot;line&quot;,&quot;filter&quot;,&quot;marker&quot;,&quot;mask&quot;,&quot;metadata&quot;,&quot;path&quot;,&quot;pattern&quot;,&quot;polygon&quot;,&quot;polyline&quot;,&quot;rect&quot;,&quot;stop&quot;,&quot;switch&quot;,&quot;symbol&quot;,&quot;svg&quot;,&quot;text&quot;,&quot;tspan&quot;,&quot;use&quot;,&quot;view&quot;];function s2(e){return typeof e!=&quot;string&quot;||e.includes(&quot;-&quot;)?!1:!!(_L.indexOf(e)&gt;-1||/[A-Z]/u.test(e))}function jL(e,r,t,{latestValues:n},o,s=!1,l){const c=(l??s2(e)?wL:vL)(r,n,o,e),a=pL(r,typeof e==&quot;string&quot;,s),d=e!==O.Fragment?{...a,...c,ref:t}:{},{children:f}=r,h=O.useMemo(()=&gt;Hn(f)?f.get():f,[f]);return O.createElement(e,{...d,children:h})}function NL({scrapeMotionValuesFromProps:e,createRenderState:r},t,n,o){return{latestValues:kL(t,n,o,e),renderState:r()}}function kL(e,r,t,n){const o={},s=n(e,{});for(const h in s)o[h]=Sm(s[h]);let{initial:l,animate:u}=e;const c=e0(e),a=hC(e);r&amp;&amp;a&amp;&amp;!c&amp;&amp;e.inherit!==!1&amp;&amp;(l===void 0&amp;&amp;(l=r.initial),u===void 0&amp;&amp;(u=r.animate));let d=t?t.initial===!1:!1;d=d||l===!1;const f=d?u:l;if(f&amp;&amp;typeof f!=&quot;boolean&quot;&amp;&amp;!Jp(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m&lt;h.length;m++){const p=X1(e,h[m]);if(p){const{transitionEnd:x,transition:g,...y}=p;for(const v in y){let _=y[v];if(Array.isArray(_)){const S=d?_.length-1:0;_=_[S]}_!==null&amp;&amp;(o[v]=_)}for(const v in x)o[v]=x[v]}}}return o}const qC=e=&gt;(r,t)=&gt;{const n=O.useContext(t0),o=O.useContext(Qp),s=()=&gt;NL(e,r,n,o);return t?s():A1(s)},SL=qC({scrapeMotionValuesFromProps:r2,createRenderState:i2}),CL=qC({scrapeMotionValuesFromProps:kC,createRenderState:VC}),EL=Symbol.for(&quot;motionComponentSymbol&quot;);function AL(e,r,t){const n=O.useRef(t);O.useInsertionEffect(()=&gt;{n.current=t});const o=O.useRef(null);return O.useCallback(s=&gt;{s&amp;&amp;e.onMount?.(s),r&amp;&amp;(s?r.mount(s):r.unmount());const l=n.current;if(typeof l==&quot;function&quot;)if(s){const u=l(s);typeof u==&quot;function&quot;&amp;&amp;(o.current=u)}else o.current?(o.current(),o.current=null):l(s);else l&amp;&amp;(l.current=s)},[r])}const WC=O.createContext({});function Cd(e){return e&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;Object.prototype.hasOwnProperty.call(e,&quot;current&quot;)}function ML(e,r,t,n,o,s){const{visualElement:l}=O.useContext(t0),u=O.useContext(BC),c=O.useContext(Qp),a=O.useContext(n2).reducedMotion,d=O.useRef(null);n=n||u.renderer,!d.current&amp;&amp;n&amp;&amp;(d.current=n(e,{visualState:r,parent:l,props:t,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:a,isSVG:s}));const f=d.current,h=O.useContext(WC);f&amp;&amp;!f.projection&amp;&amp;o&amp;&amp;(f.type===&quot;html&quot;||f.type===&quot;svg&quot;)&amp;&amp;PL(d.current,t,o,h);const m=O.useRef(!1);O.useInsertionEffect(()=&gt;{f&amp;&amp;m.current&amp;&amp;f.update(t,c)});const p=t[Q8],x=O.useRef(!!p&amp;&amp;!window.MotionHandoffIsComplete?.(p)&amp;&amp;window.MotionHasOptimisedAnimation?.(p));return p8(()=&gt;{f&amp;&amp;(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),x.current&amp;&amp;f.animationState&amp;&amp;f.animationState.animateChanges())}),O.useEffect(()=&gt;{f&amp;&amp;(!x.current&amp;&amp;f.animationState&amp;&amp;f.animationState.animateChanges(),x.current&amp;&amp;(queueMicrotask(()=&gt;{window.MotionHandoffMarkAsComplete?.(p)}),x.current=!1),f.enteringChildren=void 0)}),f}function PL(e,r,t,n){const{layoutId:o,layout:s,drag:l,dragConstraints:u,layoutScroll:c,layoutRoot:a,layoutCrossfade:d}=r;e.projection=new t(e.latestValues,r[&quot;data-framer-portal-id&quot;]?void 0:HC(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||u&amp;&amp;Cd(u),visualElement:e,animationType:typeof s==&quot;string&quot;?s:&quot;both&quot;,initialPromotionConfig:n,crossfade:d,layoutScroll:c,layoutRoot:a})}function HC(e){if(e)return e.options.allowProjection!==!1?e.projection:HC(e.parent)}function zx(e,{forwardMotionProps:r=!1,type:t}={},n,o){n&amp;&amp;fL(n);const s=t?t===&quot;svg&quot;:s2(e),l=s?CL:SL;function u(a,d){let f;const h={...O.useContext(n2),...a,layoutId:OL(a)},{isStatic:m}=h,p=xL(a),x=l(a,m);if(!m&amp;&amp;m8){TL();const g=IL(h);f=g.MeasureLayout,p.visualElement=ML(e,x,h,o,g.ProjectionNode,s)}return i.jsxs(t0.Provider,{value:p,children:[f&amp;&amp;p.visualElement?i.jsx(f,{visualElement:p.visualElement,...h}):null,jL(e,a,AL(x,p.visualElement,d),x,m,r,s)]})}u.displayName=`motion.${typeof e==&quot;string&quot;?e:`create(${e.displayName??e.name??&quot;&quot;})`}`;const c=O.forwardRef(u);return c[EL]=e,c}function OL({layoutId:e}){const r=O.useContext(E1).id;return r&amp;&amp;e!==void 0?r+&quot;-&quot;+e:e}function TL(e,r){O.useContext(BC).strict}function IL(e){const r=$C(),{drag:t,layout:n}=r;if(!t&amp;&amp;!n)return{};const o={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function RL(e,r){if(typeof Proxy&gt;&quot;u&quot;)return zx;const t=new Map,n=(s,l)=&gt;zx(s,l,e,r),o=(s,l)=&gt;n(s,l);return new Proxy(o,{get:(s,l)=&gt;l===&quot;create&quot;?n:(t.has(l)||t.set(l,zx(l,void 0,e,r)),t.get(l))})}const DL=(e,r)=&gt;r.isSVG??s2(e)?new hD(r):new oD(r,{allowProjection:e!==O.Fragment});class LL extends Ho{constructor(r){super(r),r.animationState||(r.animationState=bD(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();Jp(r)&amp;&amp;(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:t}=this.node.prevProps||{};r!==t&amp;&amp;this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let FL=0;class BL extends Ho{constructor(){super(...arguments),this.id=FL++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===n)return;const o=this.node.animationState.setActive(&quot;exit&quot;,!r);t&amp;&amp;!r&amp;&amp;o.then(()=&gt;{t(this.id)})}mount(){const{register:r,onExitComplete:t}=this.node.presenceContext||{};t&amp;&amp;t(this.id),r&amp;&amp;(this.unmount=r(this.id))}unmount(){}}const $L={animation:{Feature:LL},exit:{Feature:BL}};function gf(e){return{point:{x:e.pageX,y:e.pageY}}}const zL=e=&gt;r=&gt;Q1(r)&amp;&amp;e(r,gf(r));function Id(e,r,t,n){return Vd(e,r,zL(t),n)}const KC=({current:e})=&gt;e?e.ownerDocument.defaultView:null,t4=(e,r)=&gt;Math.abs(e-r);function UL(e,r){const t=t4(e.x,r.x),n=t4(e.y,r.y);return Math.sqrt(t**2+n**2)}const r4=new Set([&quot;auto&quot;,&quot;scroll&quot;]);class XC{constructor(r,t,{transformPagePoint:n,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=&gt;{this.handleScroll(m.target)},this.onWindowScroll=()=&gt;{this.handleScroll(window)},this.updatePoint=()=&gt;{if(!(this.lastMoveEvent&amp;&amp;this.lastMoveEventInfo))return;const m=Vx(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,x=UL(m.offset,{x:0,y:0})&gt;=this.distanceThreshold;if(!p&amp;&amp;!x)return;const{point:g}=m,{timestamp:y}=Tn;this.history.push({...g,timestamp:y});const{onStart:v,onMove:_}=this.handlers;p||(v&amp;&amp;v(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),_&amp;&amp;_(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=&gt;{this.lastMoveEvent=m,this.lastMoveEventInfo=Ux(p,this.transformPagePoint),Ar.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=&gt;{this.end();const{onEnd:x,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&amp;&amp;y&amp;&amp;y(),!(this.lastMoveEvent&amp;&amp;this.lastMoveEventInfo))return;const v=Vx(m.type===&quot;pointercancel&quot;?this.lastMoveEventInfo:Ux(p,this.transformPagePoint),this.history);this.startEvent&amp;&amp;x&amp;&amp;x(m,v),g&amp;&amp;g(m,v)},!Q1(r))return;this.dragSnapToOrigin=s,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=l,this.contextWindow=o||window;const c=gf(r),a=Ux(c,this.transformPagePoint),{point:d}=a,{timestamp:f}=Tn;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=t;h&amp;&amp;h(r,Vx(a,this.history)),this.removeListeners=hf(Id(this.contextWindow,&quot;pointermove&quot;,this.handlePointerMove),Id(this.contextWindow,&quot;pointerup&quot;,this.handlePointerUp),Id(this.contextWindow,&quot;pointercancel&quot;,this.handlePointerUp)),u&amp;&amp;this.startScrollTracking(u)}startScrollTracking(r){let t=r.parentElement;for(;t;){const n=getComputedStyle(t);(r4.has(n.overflowX)||r4.has(n.overflowY))&amp;&amp;this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(&quot;scroll&quot;,this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener(&quot;scroll&quot;,this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=&gt;{window.removeEventListener(&quot;scroll&quot;,this.onElementScroll,{capture:!0}),window.removeEventListener(&quot;scroll&quot;,this.onWindowScroll)}}handleScroll(r){const t=this.scrollPositions.get(r);if(!t)return;const n=r===window,o=n?{x:window.scrollX,y:window.scrollY}:{x:r.scrollLeft,y:r.scrollTop},s={x:o.x-t.x,y:o.y-t.y};s.x===0&amp;&amp;s.y===0||(n?this.lastMoveEventInfo&amp;&amp;(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length&gt;0&amp;&amp;(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(r,o),Ar.update(this.updatePoint,!0))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&amp;&amp;this.removeListeners(),this.removeScrollListeners&amp;&amp;this.removeScrollListeners(),this.scrollPositions.clear(),$o(this.updatePoint)}}function Ux(e,r){return r?{point:r(e.point)}:e}function n4(e,r){return{x:e.x-r.x,y:e.y-r.y}}function Vx({point:e},r){return{point:e,delta:n4(e,GC(r)),offset:n4(e,VL(r)),velocity:qL(r,.1)}}function VL(e){return e[0]}function GC(e){return e[e.length-1]}function qL(e,r){if(e.length&lt;2)return{x:0,y:0};let t=e.length-1,n=null;const o=GC(e);for(;t&gt;=0&amp;&amp;(n=e[t],!(o.timestamp-n.timestamp&gt;Oa(r)));)t--;if(!n)return{x:0,y:0};const s=Qi(o.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const l={x:(o.x-n.x)/s,y:(o.y-n.y)/s};return l.x===1/0&amp;&amp;(l.x=0),l.y===1/0&amp;&amp;(l.y=0),l}function WL(e,{min:r,max:t},n){return r!==void 0&amp;&amp;e&lt;r?e=n?Br(r,e,n.min):Math.max(e,r):t!==void 0&amp;&amp;e&gt;t&amp;&amp;(e=n?Br(t,e,n.max):Math.min(e,t)),e}function i4(e,r,t){return{min:r!==void 0?e.min+r:void 0,max:t!==void 0?e.max+t-(e.max-e.min):void 0}}function HL(e,{top:r,left:t,bottom:n,right:o}){return{x:i4(e.x,t,o),y:i4(e.y,r,n)}}function s4(e,r){let t=r.min-e.min,n=r.max-e.max;return r.max-r.min&lt;e.max-e.min&amp;&amp;([t,n]=[n,t]),{min:t,max:n}}function KL(e,r){return{x:s4(e.x,r.x),y:s4(e.y,r.y)}}function XL(e,r){let t=.5;const n=ai(e),o=ai(r);return o&gt;n?t=Bd(r.min,r.max-n,e.min):n&gt;o&amp;&amp;(t=Bd(e.min,e.max-o,r.min)),ra(0,1,t)}function GL(e,r){const t={};return r.min!==void 0&amp;&amp;(t.min=r.min-e.min),r.max!==void 0&amp;&amp;(t.max=r.max-e.min),t}const dv=.35;function YL(e=dv){return e===!1?e=0:e===!0&amp;&amp;(e=dv),{x:a4(e,&quot;left&quot;,&quot;right&quot;),y:a4(e,&quot;top&quot;,&quot;bottom&quot;)}}function a4(e,r,t){return{min:o4(e,r),max:o4(e,t)}}function o4(e,r){return typeof e==&quot;number&quot;?e:e[r]||0}const ZL=new WeakMap;class QL{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=on(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:o}=this.visualElement;if(o&amp;&amp;o.isPresent===!1)return;const s=f=&gt;{t?(this.stopAnimation(),this.snapToCursor(gf(f).point)):this.pauseAnimation()},l=(f,h)=&gt;{this.stopAnimation();const{drag:m,dragPropagation:p,onDragStart:x}=this.getProps();if(m&amp;&amp;!p&amp;&amp;(this.openDragLock&amp;&amp;this.openDragLock(),this.openDragLock=FR(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&amp;&amp;(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yi(y=&gt;{let v=this.getAxisMotionValue(y).get()||0;if(ea.test(v)){const{projection:_}=this.visualElement;if(_&amp;&amp;_.layout){const S=_.layout.layoutBox[y];S&amp;&amp;(v=ai(S)*(parseFloat(v)/100))}}this.originPoint[y]=v}),x&amp;&amp;Ar.postRender(()=&gt;x(f,h)),iv(this.visualElement,&quot;transform&quot;);const{animationState:g}=this.visualElement;g&amp;&amp;g.setActive(&quot;whileDrag&quot;,!0)},u=(f,h)=&gt;{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:x,onDrag:g}=this.getProps();if(!m&amp;&amp;!this.openDragLock)return;const{offset:y}=h;if(p&amp;&amp;this.currentDirection===null){this.currentDirection=JL(y),this.currentDirection!==null&amp;&amp;x&amp;&amp;x(this.currentDirection);return}this.updateAxis(&quot;x&quot;,h.point,y),this.updateAxis(&quot;y&quot;,h.point,y),this.visualElement.render(),g&amp;&amp;g(f,h)},c=(f,h)=&gt;{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},a=()=&gt;Yi(f=&gt;this.getAnimationState(f)===&quot;paused&quot;&amp;&amp;this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new XC(r,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:c,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:KC(this.visualElement),element:this.visualElement.current})}stop(r,t){const n=r||this.latestPointerEvent,o=t||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!n)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&amp;&amp;Ar.postRender(()=&gt;u(n,o))}cancel(){this.isDragging=!1;const{projection:r,animationState:t}=this.visualElement;r&amp;&amp;(r.isAnimationBlocked=!1),this.panSession&amp;&amp;this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&amp;&amp;this.openDragLock&amp;&amp;(this.openDragLock(),this.openDragLock=null),t&amp;&amp;t.setActive(&quot;whileDrag&quot;,!1)}updateAxis(r,t,n){const{drag:o}=this.getProps();if(!n||!Zh(r,o,this.currentDirection))return;const s=this.getAxisMotionValue(r);let l=this.originPoint[r]+n[r];this.constraints&amp;&amp;this.constraints[r]&amp;&amp;(l=WL(l,this.constraints[r],this.elastic[r])),s.set(l)}resolveConstraints(){const{dragConstraints:r,dragElastic:t}=this.getProps(),n=this.visualElement.projection&amp;&amp;!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;r&amp;&amp;Cd(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&amp;&amp;n?this.constraints=HL(n.layoutBox,r):this.constraints=!1,this.elastic=YL(t),o!==this.constraints&amp;&amp;n&amp;&amp;this.constraints&amp;&amp;!this.hasMutatedConstraints&amp;&amp;Yi(s=&gt;{this.constraints!==!1&amp;&amp;this.getAxisMotionValue(s)&amp;&amp;(this.constraints[s]=GL(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:t}=this.getProps();if(!r||!Cd(r))return!1;const n=r.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=tD(n,o.root,this.visualElement.getTransformPagePoint());let l=KL(o.layout.layoutBox,s);if(t){const u=t(QR(l));this.hasMutatedConstraints=!!u,u&amp;&amp;(l=gC(u))}return l}startAnimation(r){const{drag:t,dragMomentum:n,dragElastic:o,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},a=Yi(d=&gt;{if(!Zh(d,t,this.currentDirection))return;let f=c&amp;&amp;c[d]||{};l&amp;&amp;(f={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,p={type:&quot;inertia&quot;,velocity:n?r[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,p)});return Promise.all(a).then(u)}startAxisValueAnimation(r,t){const n=this.getAxisMotionValue(r);return iv(this.visualElement,r),n.start(K1(r,n,0,t,this.visualElement,!1))}stopAnimation(){Yi(r=&gt;this.getAxisMotionValue(r).stop())}pauseAnimation(){Yi(r=&gt;this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const t=`_drag${r.toUpperCase()}`,n=this.visualElement.getProps(),o=n[t];return o||this.visualElement.getValue(r,(n.initial?n.initial[r]:void 0)||0)}snapToCursor(r){Yi(t=&gt;{const{drag:n}=this.getProps();if(!Zh(t,n,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(t);if(o&amp;&amp;o.layout){const{min:l,max:u}=o.layout.layoutBox[t],c=s.get()||0;s.set(r[t]-Br(l,u,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Cd(t)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Yi(l=&gt;{const u=this.getAxisMotionValue(l);if(u&amp;&amp;this.constraints!==!1){const c=u.get();o[l]=XL({min:c,max:c},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},&quot;&quot;):&quot;none&quot;,n.root&amp;&amp;n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Yi(l=&gt;{if(!Zh(l,r,null))return;const u=this.getAxisMotionValue(l),{min:c,max:a}=this.constraints[l];u.set(Br(c,a,o[l]))})}addListeners(){if(!this.visualElement.current)return;ZL.set(this.visualElement,this);const r=this.visualElement.current,t=Id(r,&quot;pointerdown&quot;,c=&gt;{const{drag:a,dragListener:d=!0}=this.getProps();a&amp;&amp;d&amp;&amp;!uC(c.target)&amp;&amp;this.start(c)}),n=()=&gt;{const{dragConstraints:c}=this.getProps();Cd(c)&amp;&amp;c.current&amp;&amp;(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener(&quot;measure&quot;,n);o&amp;&amp;!o.layout&amp;&amp;(o.root&amp;&amp;o.root.updateScroll(),o.updateLayout()),Ar.read(n);const l=Vd(window,&quot;resize&quot;,()=&gt;this.scalePositionWithinConstraints()),u=o.addEventListener(&quot;didUpdate&quot;,(({delta:c,hasLayoutChanged:a})=&gt;{this.isDragging&amp;&amp;a&amp;&amp;(Yi(d=&gt;{const f=this.getAxisMotionValue(d);f&amp;&amp;(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())}));return()=&gt;{l(),t(),s(),u&amp;&amp;u()}}getProps(){const r=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:l=dv,dragMomentum:u=!0}=r;return{...r,drag:t,dragDirectionLock:n,dragPropagation:o,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function Zh(e,r,t){return(r===!0||r===e)&amp;&amp;(t===null||t===e)}function JL(e,r=10){let t=null;return Math.abs(e.y)&gt;r?t=&quot;y&quot;:Math.abs(e.x)&gt;r&amp;&amp;(t=&quot;x&quot;),t}class eF extends Ho{constructor(r){super(r),this.removeGroupControls=rs,this.removeListeners=rs,this.controls=new QL(r)}mount(){const{dragControls:r}=this.node.getProps();r&amp;&amp;(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rs}update(){const{dragControls:r}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};r!==t&amp;&amp;(this.removeGroupControls(),r&amp;&amp;(this.removeGroupControls=r.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const l4=e=&gt;(r,t)=&gt;{e&amp;&amp;Ar.postRender(()=&gt;e(r,t))};class tF extends Ho{constructor(){super(...arguments),this.removePointerDownListener=rs}onPointerDown(r){this.session=new XC(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:KC(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:t,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:l4(r),onStart:l4(t),onMove:n,onEnd:(s,l)=&gt;{delete this.session,o&amp;&amp;Ar.postRender(()=&gt;o(s,l))}}}mount(){this.removePointerDownListener=Id(this.node.current,&quot;pointerdown&quot;,r=&gt;this.onPointerDown(r))}update(){this.session&amp;&amp;this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&amp;&amp;this.session.end()}}let qx=!1;class rF extends O.Component{componentDidMount(){const{visualElement:r,layoutGroup:t,switchLayoutGroup:n,layoutId:o}=this.props,{projection:s}=r;s&amp;&amp;(t.group&amp;&amp;t.group.add(s),n&amp;&amp;n.register&amp;&amp;o&amp;&amp;n.register(s),qx&amp;&amp;s.root.didUpdate(),s.addEventListener(&quot;animationComplete&quot;,()=&gt;{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=&gt;this.safeToRemove()})),Cm.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:t,visualElement:n,drag:o,isPresent:s}=this.props,{projection:l}=n;return l&amp;&amp;(l.isPresent=s,qx=!0,o||r.layoutDependency!==t||t===void 0||r.isPresent!==s?l.willUpdate():this.safeToRemove(),r.isPresent!==s&amp;&amp;(s?l.promote():l.relegate()||Ar.postRender(()=&gt;{const u=l.getStack();(!u||!u.members.length)&amp;&amp;this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&amp;&amp;(r.root.didUpdate(),Z1.postRender(()=&gt;{!r.currentAnimation&amp;&amp;r.isLead()&amp;&amp;this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:o}=r;qx=!0,o&amp;&amp;(o.scheduleCheckAfterUnmount(),t&amp;&amp;t.group&amp;&amp;t.group.remove(o),n&amp;&amp;n.deregister&amp;&amp;n.deregister(o))}safeToRemove(){const{safeToRemove:r}=this.props;r&amp;&amp;r()}render(){return null}}function YC(e){const[r,t]=FC(),n=O.useContext(E1);return i.jsx(rF,{...e,layoutGroup:n,switchLayoutGroup:O.useContext(WC),isPresent:r,safeToRemove:t})}const nF={pan:{Feature:tF},drag:{Feature:eF,ProjectionNode:LC,MeasureLayout:YC}};function c4(e,r,t){const{props:n}=e;e.animationState&amp;&amp;n.whileHover&amp;&amp;e.animationState.setActive(&quot;whileHover&quot;,t===&quot;Start&quot;);const o=&quot;onHover&quot;+t,s=n[o];s&amp;&amp;Ar.postRender(()=&gt;s(r,gf(r)))}class iF extends Ho{mount(){const{current:r}=this.node;r&amp;&amp;(this.unmount=BR(r,(t,n)=&gt;(c4(this.node,n,&quot;Start&quot;),o=&gt;c4(this.node,o,&quot;End&quot;))))}unmount(){}}class sF extends Ho{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(&quot;:focus-visible&quot;)}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive(&quot;whileFocus&quot;,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(&quot;whileFocus&quot;,!1),this.isActive=!1)}mount(){this.unmount=hf(Vd(this.node.current,&quot;focus&quot;,()=&gt;this.onFocus()),Vd(this.node.current,&quot;blur&quot;,()=&gt;this.onBlur()))}unmount(){}}function u4(e,r,t){const{props:n}=e;if(e.current instanceof HTMLButtonElement&amp;&amp;e.current.disabled)return;e.animationState&amp;&amp;n.whileTap&amp;&amp;e.animationState.setActive(&quot;whileTap&quot;,t===&quot;Start&quot;);const o=&quot;onTap&quot;+(t===&quot;End&quot;?&quot;&quot;:t),s=n[o];s&amp;&amp;Ar.postRender(()=&gt;s(r,gf(r)))}class aF extends Ho{mount(){const{current:r}=this.node;r&amp;&amp;(this.unmount=UR(r,(t,n)=&gt;(u4(this.node,n,&quot;Start&quot;),(o,{success:s})=&gt;u4(this.node,o,s?&quot;End&quot;:&quot;Cancel&quot;)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fv=new WeakMap,Wx=new WeakMap,oF=e=&gt;{const r=fv.get(e.target);r&amp;&amp;r(e)},lF=e=&gt;{e.forEach(oF)};function cF({root:e,...r}){const t=e||document;Wx.has(t)||Wx.set(t,{});const n=Wx.get(t),o=JSON.stringify(r);return n[o]||(n[o]=new IntersectionObserver(lF,{root:e,...r})),n[o]}function uF(e,r,t){const n=cF(r);return fv.set(e,t),n.observe(e),()=&gt;{fv.delete(e),n.unobserve(e)}}const dF={some:0,all:1};class fF extends Ho{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:t,margin:n,amount:o=&quot;some&quot;,once:s}=r,l={root:t?t.current:void 0,rootMargin:n,threshold:typeof o==&quot;number&quot;?o:dF[o]},u=c=&gt;{const{isIntersecting:a}=c;if(this.isInView===a||(this.isInView=a,s&amp;&amp;!a&amp;&amp;this.hasEnteredView))return;a&amp;&amp;(this.hasEnteredView=!0),this.node.animationState&amp;&amp;this.node.animationState.setActive(&quot;whileInView&quot;,a);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=a?d:f;h&amp;&amp;h(c)};return uF(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver&gt;&quot;u&quot;)return;const{props:r,prevProps:t}=this.node;[&quot;amount&quot;,&quot;margin&quot;,&quot;root&quot;].some(hF(r,t))&amp;&amp;this.startObserver()}unmount(){}}function hF({viewport:e={}},{viewport:r={}}={}){return t=&gt;e[t]!==r[t]}const mF={inView:{Feature:fF},tap:{Feature:aF},focus:{Feature:sF},hover:{Feature:iF}},pF={layout:{ProjectionNode:LC,MeasureLayout:YC}},gF={...$L,...mF,...nF,...pF},d4=RL(gF,DL);const xF=e=&gt;e.replace(/([a-z0-9])([A-Z])/g,&quot;$1-$2&quot;).toLowerCase(),bF=e=&gt;e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,t,n)=&gt;n?n.toUpperCase():t.toLowerCase()),f4=e=&gt;{const r=bF(e);return r.charAt(0).toUpperCase()+r.slice(1)},ZC=(...e)=&gt;e.filter((r,t,n)=&gt;!!r&amp;&amp;r.trim()!==&quot;&quot;&amp;&amp;n.indexOf(r)===t).join(&quot; &quot;).trim(),yF=e=&gt;{for(const r in e)if(r.startsWith(&quot;aria-&quot;)||r===&quot;role&quot;||r===&quot;title&quot;)return!0};var vF={xmlns:&quot;http://www.w3.org/2000/svg&quot;,width:24,height:24,viewBox:&quot;0 0 24 24&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,strokeWidth:2,strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;};const wF=O.forwardRef(({color:e=&quot;currentColor&quot;,size:r=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:o=&quot;&quot;,children:s,iconNode:l,...u},c)=&gt;O.createElement(&quot;svg&quot;,{ref:c,...vF,width:r,height:r,stroke:e,strokeWidth:n?Number(t)*24/Number(r):t,className:ZC(&quot;lucide&quot;,o),...!s&amp;&amp;!yF(u)&amp;&amp;{&quot;aria-hidden&quot;:&quot;true&quot;},...u},[...l.map(([a,d])=&gt;O.createElement(a,d)),...Array.isArray(s)?s:[s]]));const Tt=(e,r)=&gt;{const t=O.forwardRef(({className:n,...o},s)=&gt;O.createElement(wF,{ref:s,iconNode:r,className:ZC(`lucide-${xF(f4(e))}`,`lucide-${e}`,n),...o}));return t.displayName=f4(e),t};const _F=[[&quot;path&quot;,{d:&quot;M8 3 4 7l4 4&quot;,key:&quot;9rb6wj&quot;}],[&quot;path&quot;,{d:&quot;M4 7h16&quot;,key:&quot;6tx8e3&quot;}],[&quot;path&quot;,{d:&quot;m16 21 4-4-4-4&quot;,key:&quot;siv7j2&quot;}],[&quot;path&quot;,{d:&quot;M20 17H4&quot;,key:&quot;h6l3hr&quot;}]],QC=Tt(&quot;arrow-left-right&quot;,_F);const jF=[[&quot;path&quot;,{d:&quot;M5 12h14&quot;,key:&quot;1ays0h&quot;}],[&quot;path&quot;,{d:&quot;m12 5 7 7-7 7&quot;,key:&quot;xquz4c&quot;}]],Sa=Tt(&quot;arrow-right&quot;,jF);const NF=[[&quot;rect&quot;,{width:&quot;20&quot;,height:&quot;12&quot;,x:&quot;2&quot;,y:&quot;6&quot;,rx:&quot;2&quot;,key:&quot;9lu3g6&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;12&quot;,r:&quot;2&quot;,key:&quot;1c9p78&quot;}],[&quot;path&quot;,{d:&quot;M6 12h.01M18 12h.01&quot;,key:&quot;113zkx&quot;}]],kF=Tt(&quot;banknote&quot;,NF);const SF=[[&quot;path&quot;,{d:&quot;M8 2v4&quot;,key:&quot;1cmpym&quot;}],[&quot;path&quot;,{d:&quot;M16 2v4&quot;,key:&quot;4m81vk&quot;}],[&quot;rect&quot;,{width:&quot;18&quot;,height:&quot;18&quot;,x:&quot;3&quot;,y:&quot;4&quot;,rx:&quot;2&quot;,key:&quot;1hopcy&quot;}],[&quot;path&quot;,{d:&quot;M3 10h18&quot;,key:&quot;8toen8&quot;}],[&quot;path&quot;,{d:&quot;M8 14h.01&quot;,key:&quot;6423bh&quot;}],[&quot;path&quot;,{d:&quot;M12 14h.01&quot;,key:&quot;1etili&quot;}],[&quot;path&quot;,{d:&quot;M16 14h.01&quot;,key:&quot;1gbofw&quot;}],[&quot;path&quot;,{d:&quot;M8 18h.01&quot;,key:&quot;lrp35t&quot;}],[&quot;path&quot;,{d:&quot;M12 18h.01&quot;,key:&quot;mhygvu&quot;}],[&quot;path&quot;,{d:&quot;M16 18h.01&quot;,key:&quot;kzsmim&quot;}]],r0=Tt(&quot;calendar-days&quot;,SF);const CF=[[&quot;rect&quot;,{width:&quot;18&quot;,height:&quot;18&quot;,x:&quot;3&quot;,y:&quot;4&quot;,rx:&quot;2&quot;,key:&quot;1hopcy&quot;}],[&quot;path&quot;,{d:&quot;M16 2v4&quot;,key:&quot;4m81vk&quot;}],[&quot;path&quot;,{d:&quot;M3 10h18&quot;,key:&quot;8toen8&quot;}],[&quot;path&quot;,{d:&quot;M8 2v4&quot;,key:&quot;1cmpym&quot;}],[&quot;path&quot;,{d:&quot;M17 14h-6&quot;,key:&quot;bkmgh3&quot;}],[&quot;path&quot;,{d:&quot;M13 18H7&quot;,key:&quot;bb0bb7&quot;}],[&quot;path&quot;,{d:&quot;M7 14h.01&quot;,key:&quot;1qa3f1&quot;}],[&quot;path&quot;,{d:&quot;M17 18h.01&quot;,key:&quot;1bdyru&quot;}]],JC=Tt(&quot;calendar-range&quot;,CF);const EF=[[&quot;path&quot;,{d:&quot;M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z&quot;,key:&quot;18u6gg&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;13&quot;,r:&quot;3&quot;,key:&quot;1vg3eu&quot;}]],AF=Tt(&quot;camera&quot;,EF);const MF=[[&quot;path&quot;,{d:&quot;M20 6 9 17l-5-5&quot;,key:&quot;1gmf2c&quot;}]],h4=Tt(&quot;check&quot;,MF);const PF=[[&quot;path&quot;,{d:&quot;m6 9 6 6 6-6&quot;,key:&quot;qrunsl&quot;}]],qd=Tt(&quot;chevron-down&quot;,PF);const OF=[[&quot;path&quot;,{d:&quot;m15 18-6-6 6-6&quot;,key:&quot;1wnfg3&quot;}]],TF=Tt(&quot;chevron-left&quot;,OF);const IF=[[&quot;path&quot;,{d:&quot;m9 18 6-6-6-6&quot;,key:&quot;mthhwq&quot;}]],RF=Tt(&quot;chevron-right&quot;,IF);const DF=[[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;12&quot;,r:&quot;10&quot;,key:&quot;1mglay&quot;}],[&quot;line&quot;,{x1:&quot;12&quot;,x2:&quot;12&quot;,y1:&quot;8&quot;,y2:&quot;12&quot;,key:&quot;1pkeuh&quot;}],[&quot;line&quot;,{x1:&quot;12&quot;,x2:&quot;12.01&quot;,y1:&quot;16&quot;,y2:&quot;16&quot;,key:&quot;4dfq90&quot;}]],hv=Tt(&quot;circle-alert&quot;,DF);const LF=[[&quot;path&quot;,{d:&quot;M21.801 10A10 10 0 1 1 17 3.335&quot;,key:&quot;yps3ct&quot;}],[&quot;path&quot;,{d:&quot;m9 11 3 3L22 4&quot;,key:&quot;1pflzl&quot;}]],FF=Tt(&quot;circle-check-big&quot;,LF);const BF=[[&quot;path&quot;,{d:&quot;M18 20a6 6 0 0 0-12 0&quot;,key:&quot;1qehca&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;10&quot;,r:&quot;4&quot;,key:&quot;1h16sb&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;12&quot;,r:&quot;10&quot;,key:&quot;1mglay&quot;}]],$F=Tt(&quot;circle-user-round&quot;,BF);const zF=[[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;12&quot;,r:&quot;10&quot;,key:&quot;1mglay&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;10&quot;,r:&quot;3&quot;,key:&quot;ilqhr7&quot;}],[&quot;path&quot;,{d:&quot;M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662&quot;,key:&quot;154egf&quot;}]],m4=Tt(&quot;circle-user&quot;,zF);const UF=[[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;12&quot;,r:&quot;10&quot;,key:&quot;1mglay&quot;}],[&quot;path&quot;,{d:&quot;m15 9-6 6&quot;,key:&quot;1uzhvr&quot;}],[&quot;path&quot;,{d:&quot;m9 9 6 6&quot;,key:&quot;z0biqf&quot;}]],VF=Tt(&quot;circle-x&quot;,UF);const qF=[[&quot;path&quot;,{d:&quot;M12 6v6h4&quot;,key:&quot;135r8i&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;12&quot;,r:&quot;10&quot;,key:&quot;1mglay&quot;}]],WF=Tt(&quot;clock-3&quot;,qF);const HF=[[&quot;rect&quot;,{width:&quot;20&quot;,height:&quot;14&quot;,x:&quot;2&quot;,y:&quot;5&quot;,rx:&quot;2&quot;,key:&quot;ynyp8z&quot;}],[&quot;line&quot;,{x1:&quot;2&quot;,x2:&quot;22&quot;,y1:&quot;10&quot;,y2:&quot;10&quot;,key:&quot;1b3vmo&quot;}]],KF=Tt(&quot;credit-card&quot;,HF);const XF=[[&quot;line&quot;,{x1:&quot;12&quot;,x2:&quot;12&quot;,y1:&quot;2&quot;,y2:&quot;22&quot;,key:&quot;7eqyqh&quot;}],[&quot;path&quot;,{d:&quot;M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6&quot;,key:&quot;1b0p4s&quot;}]],mv=Tt(&quot;dollar-sign&quot;,XF);const GF=[[&quot;path&quot;,{d:&quot;M12 15V3&quot;,key:&quot;m9g1x1&quot;}],[&quot;path&quot;,{d:&quot;M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4&quot;,key:&quot;ih7n3h&quot;}],[&quot;path&quot;,{d:&quot;m7 10 5 5 5-5&quot;,key:&quot;brsn70&quot;}]],YF=Tt(&quot;download&quot;,GF);const ZF=[[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;12&quot;,r:&quot;1&quot;,key:&quot;41hilf&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;5&quot;,r:&quot;1&quot;,key:&quot;gxeob9&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;19&quot;,r:&quot;1&quot;,key:&quot;lyex9k&quot;}]],QF=Tt(&quot;ellipsis-vertical&quot;,ZF);const JF=[[&quot;path&quot;,{d:&quot;M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z&quot;,key:&quot;1oefj6&quot;}],[&quot;path&quot;,{d:&quot;M14 2v5a1 1 0 0 0 1 1h5&quot;,key:&quot;wfsgrz&quot;}],[&quot;path&quot;,{d:&quot;M12 18v-6&quot;,key:&quot;17g6i2&quot;}],[&quot;path&quot;,{d:&quot;m9 15 3 3 3-3&quot;,key:&quot;1npd3o&quot;}]],La=Tt(&quot;file-down&quot;,JF);const eB=[[&quot;path&quot;,{d:&quot;M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z&quot;,key:&quot;1oefj6&quot;}],[&quot;path&quot;,{d:&quot;M14 2v5a1 1 0 0 0 1 1h5&quot;,key:&quot;wfsgrz&quot;}],[&quot;path&quot;,{d:&quot;M8 13h2&quot;,key:&quot;yr2amv&quot;}],[&quot;path&quot;,{d:&quot;M14 13h2&quot;,key:&quot;un5t4a&quot;}],[&quot;path&quot;,{d:&quot;M8 17h2&quot;,key:&quot;2yhykz&quot;}],[&quot;path&quot;,{d:&quot;M14 17h2&quot;,key:&quot;10kma7&quot;}]],p4=Tt(&quot;file-spreadsheet&quot;,eB);const tB=[[&quot;path&quot;,{d:&quot;M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z&quot;,key:&quot;1oefj6&quot;}],[&quot;path&quot;,{d:&quot;M14 2v5a1 1 0 0 0 1 1h5&quot;,key:&quot;wfsgrz&quot;}],[&quot;path&quot;,{d:&quot;M10 9H8&quot;,key:&quot;b1mrlr&quot;}],[&quot;path&quot;,{d:&quot;M16 13H8&quot;,key:&quot;t4e002&quot;}],[&quot;path&quot;,{d:&quot;M16 17H8&quot;,key:&quot;z1uh3a&quot;}]],Xm=Tt(&quot;file-text&quot;,tB);const rB=[[&quot;path&quot;,{d:&quot;M11 12h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 14&quot;,key:&quot;1j4xps&quot;}],[&quot;path&quot;,{d:&quot;m7 18 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9&quot;,key:&quot;uospg8&quot;}],[&quot;path&quot;,{d:&quot;m2 13 6 6&quot;,key:&quot;16e5sb&quot;}]],nB=Tt(&quot;hand-helping&quot;,rB);const iB=[[&quot;path&quot;,{d:&quot;m11 17 2 2a1 1 0 1 0 3-3&quot;,key:&quot;efffak&quot;}],[&quot;path&quot;,{d:&quot;m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4&quot;,key:&quot;9pr0kb&quot;}],[&quot;path&quot;,{d:&quot;m21 3 1 11h-2&quot;,key:&quot;1tisrp&quot;}],[&quot;path&quot;,{d:&quot;M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3&quot;,key:&quot;1uvwmv&quot;}],[&quot;path&quot;,{d:&quot;M3 4h8&quot;,key:&quot;1ep09j&quot;}]],e7=Tt(&quot;handshake&quot;,iB);const sB=[[&quot;path&quot;,{d:&quot;M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5&quot;,key:&quot;mvr1a0&quot;}]],a2=Tt(&quot;heart&quot;,sB);const aB=[[&quot;path&quot;,{d:&quot;M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8&quot;,key:&quot;5wwlr5&quot;}],[&quot;path&quot;,{d:&quot;M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z&quot;,key:&quot;r6nss1&quot;}]],Wd=Tt(&quot;house&quot;,aB);const oB=[[&quot;path&quot;,{d:&quot;M10 18v-7&quot;,key:&quot;wt116b&quot;}],[&quot;path&quot;,{d:&quot;M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z&quot;,key:&quot;1m329m&quot;}],[&quot;path&quot;,{d:&quot;M14 18v-7&quot;,key:&quot;vav6t3&quot;}],[&quot;path&quot;,{d:&quot;M18 18v-7&quot;,key:&quot;aexdmj&quot;}],[&quot;path&quot;,{d:&quot;M3 22h18&quot;,key:&quot;8prr45&quot;}],[&quot;path&quot;,{d:&quot;M6 18v-7&quot;,key:&quot;1ivflk&quot;}]],t7=Tt(&quot;landmark&quot;,oB);const lB=[[&quot;rect&quot;,{width:&quot;7&quot;,height:&quot;9&quot;,x:&quot;3&quot;,y:&quot;3&quot;,rx:&quot;1&quot;,key:&quot;10lvy0&quot;}],[&quot;rect&quot;,{width:&quot;7&quot;,height:&quot;5&quot;,x:&quot;14&quot;,y:&quot;3&quot;,rx:&quot;1&quot;,key:&quot;16une8&quot;}],[&quot;rect&quot;,{width:&quot;7&quot;,height:&quot;9&quot;,x:&quot;14&quot;,y:&quot;12&quot;,rx:&quot;1&quot;,key:&quot;1hutg5&quot;}],[&quot;rect&quot;,{width:&quot;7&quot;,height:&quot;5&quot;,x:&quot;3&quot;,y:&quot;16&quot;,rx:&quot;1&quot;,key:&quot;ldoo1y&quot;}]],g4=Tt(&quot;layout-dashboard&quot;,lB);const cB=[[&quot;path&quot;,{d:&quot;M21 12a9 9 0 1 1-6.219-8.56&quot;,key:&quot;13zald&quot;}]],uB=Tt(&quot;loader-circle&quot;,cB);const dB=[[&quot;path&quot;,{d:&quot;m16 17 5-5-5-5&quot;,key:&quot;1bji2h&quot;}],[&quot;path&quot;,{d:&quot;M21 12H9&quot;,key:&quot;dn1m92&quot;}],[&quot;path&quot;,{d:&quot;M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4&quot;,key:&quot;1uf3rs&quot;}]],fB=Tt(&quot;log-out&quot;,dB);const hB=[[&quot;path&quot;,{d:&quot;M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8&quot;,key:&quot;12jkf8&quot;}],[&quot;path&quot;,{d:&quot;m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7&quot;,key:&quot;1ocrg3&quot;}],[&quot;path&quot;,{d:&quot;m16 19 2 2 4-4&quot;,key:&quot;1b14m6&quot;}]],mB=Tt(&quot;mail-check&quot;,hB);const pB=[[&quot;path&quot;,{d:&quot;m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7&quot;,key:&quot;132q7q&quot;}],[&quot;rect&quot;,{x:&quot;2&quot;,y:&quot;4&quot;,width:&quot;20&quot;,height:&quot;16&quot;,rx:&quot;2&quot;,key:&quot;izxlao&quot;}]],Aa=Tt(&quot;mail&quot;,pB);const gB=[[&quot;path&quot;,{d:&quot;M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0&quot;,key:&quot;1r0f0z&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;10&quot;,r:&quot;3&quot;,key:&quot;ilqhr7&quot;}]],fu=Tt(&quot;map-pin&quot;,gB);const xB=[[&quot;path&quot;,{d:&quot;M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z&quot;,key:&quot;q8bfy3&quot;}],[&quot;path&quot;,{d:&quot;M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14&quot;,key:&quot;1853fq&quot;}],[&quot;path&quot;,{d:&quot;M8 6v8&quot;,key:&quot;15ugcq&quot;}]],r7=Tt(&quot;megaphone&quot;,xB);const bB=[[&quot;path&quot;,{d:&quot;M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z&quot;,key:&quot;18887p&quot;}]],x4=Tt(&quot;message-square&quot;,bB);const yB=[[&quot;path&quot;,{d:&quot;m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551&quot;,key:&quot;1miecu&quot;}]],n7=Tt(&quot;paperclip&quot;,yB);const vB=[[&quot;path&quot;,{d:&quot;M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384&quot;,key:&quot;9njp5v&quot;}]],Ed=Tt(&quot;phone&quot;,vB);const wB=[[&quot;path&quot;,{d:&quot;M5 12h14&quot;,key:&quot;1ays0h&quot;}],[&quot;path&quot;,{d:&quot;M12 5v14&quot;,key:&quot;s699le&quot;}]],Em=Tt(&quot;plus&quot;,wB);const _B=[[&quot;path&quot;,{d:&quot;M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z&quot;,key:&quot;q3az6g&quot;}],[&quot;path&quot;,{d:&quot;M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8&quot;,key:&quot;1h4pet&quot;}],[&quot;path&quot;,{d:&quot;M12 17.5v-11&quot;,key:&quot;1jc1ny&quot;}]],jB=Tt(&quot;receipt&quot;,_B);const NB=[[&quot;path&quot;,{d:&quot;M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8&quot;,key:&quot;v9h5vc&quot;}],[&quot;path&quot;,{d:&quot;M21 3v5h-5&quot;,key:&quot;1q7to0&quot;}],[&quot;path&quot;,{d:&quot;M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16&quot;,key:&quot;3uifl3&quot;}],[&quot;path&quot;,{d:&quot;M8 16H3v5&quot;,key:&quot;1cv678&quot;}]],o2=Tt(&quot;refresh-cw&quot;,NB);const kB=[[&quot;path&quot;,{d:&quot;M12 3v18&quot;,key:&quot;108xh3&quot;}],[&quot;path&quot;,{d:&quot;m19 8 3 8a5 5 0 0 1-6 0zV7&quot;,key:&quot;zcdpyk&quot;}],[&quot;path&quot;,{d:&quot;M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1&quot;,key:&quot;1yorad&quot;}],[&quot;path&quot;,{d:&quot;m5 8 3 8a5 5 0 0 1-6 0zV7&quot;,key:&quot;eua70x&quot;}],[&quot;path&quot;,{d:&quot;M7 21h10&quot;,key:&quot;1b0cd5&quot;}]],SB=Tt(&quot;scale&quot;,kB);const CB=[[&quot;path&quot;,{d:&quot;m21 21-4.34-4.34&quot;,key:&quot;14j7rj&quot;}],[&quot;circle&quot;,{cx:&quot;11&quot;,cy:&quot;11&quot;,r:&quot;8&quot;,key:&quot;4ej97u&quot;}]],i7=Tt(&quot;search&quot;,CB);const EB=[[&quot;path&quot;,{d:&quot;M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915&quot;,key:&quot;1i5ecw&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;12&quot;,r:&quot;3&quot;,key:&quot;1v7zrd&quot;}]],pv=Tt(&quot;settings&quot;,EB);const AB=[[&quot;path&quot;,{d:&quot;M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z&quot;,key:&quot;1s2grr&quot;}],[&quot;path&quot;,{d:&quot;M20 2v4&quot;,key:&quot;1rf3ol&quot;}],[&quot;path&quot;,{d:&quot;M22 4h-4&quot;,key:&quot;gwowj6&quot;}],[&quot;circle&quot;,{cx:&quot;4&quot;,cy:&quot;20&quot;,r:&quot;2&quot;,key:&quot;6kqj1y&quot;}]],s7=Tt(&quot;sparkles&quot;,AB);const MB=[[&quot;path&quot;,{d:&quot;M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z&quot;,key:&quot;16rjxf&quot;}],[&quot;path&quot;,{d:&quot;M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193&quot;,key:&quot;178nd4&quot;}],[&quot;circle&quot;,{cx:&quot;10.5&quot;,cy:&quot;6.5&quot;,r:&quot;.5&quot;,fill:&quot;currentColor&quot;,key:&quot;12ikhr&quot;}]],PB=Tt(&quot;tags&quot;,MB);const OB=[[&quot;path&quot;,{d:&quot;M10 11v6&quot;,key:&quot;nco0om&quot;}],[&quot;path&quot;,{d:&quot;M14 11v6&quot;,key:&quot;outv1u&quot;}],[&quot;path&quot;,{d:&quot;M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6&quot;,key:&quot;miytrc&quot;}],[&quot;path&quot;,{d:&quot;M3 6h18&quot;,key:&quot;d0wm0j&quot;}],[&quot;path&quot;,{d:&quot;M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2&quot;,key:&quot;e791ji&quot;}]],TB=Tt(&quot;trash-2&quot;,OB);const IB=[[&quot;path&quot;,{d:&quot;M16 7h6v6&quot;,key:&quot;box55l&quot;}],[&quot;path&quot;,{d:&quot;m22 7-8.5 8.5-5-5L2 17&quot;,key:&quot;1t1m79&quot;}]],RB=Tt(&quot;trending-up&quot;,IB);const DB=[[&quot;path&quot;,{d:&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3&quot;,key:&quot;wmoenq&quot;}],[&quot;path&quot;,{d:&quot;M12 9v4&quot;,key:&quot;juzpu7&quot;}],[&quot;path&quot;,{d:&quot;M12 17h.01&quot;,key:&quot;p32p05&quot;}]],LB=Tt(&quot;triangle-alert&quot;,DB);const FB=[[&quot;path&quot;,{d:&quot;M10 15H6a4 4 0 0 0-4 4v2&quot;,key:&quot;1nfge6&quot;}],[&quot;path&quot;,{d:&quot;m14.305 16.53.923-.382&quot;,key:&quot;1itpsq&quot;}],[&quot;path&quot;,{d:&quot;m15.228 13.852-.923-.383&quot;,key:&quot;eplpkm&quot;}],[&quot;path&quot;,{d:&quot;m16.852 12.228-.383-.923&quot;,key:&quot;13v3q0&quot;}],[&quot;path&quot;,{d:&quot;m16.852 17.772-.383.924&quot;,key:&quot;1i8mnm&quot;}],[&quot;path&quot;,{d:&quot;m19.148 12.228.383-.923&quot;,key:&quot;1q8j1v&quot;}],[&quot;path&quot;,{d:&quot;m19.53 18.696-.382-.924&quot;,key:&quot;vk1qj3&quot;}],[&quot;path&quot;,{d:&quot;m20.772 13.852.924-.383&quot;,key:&quot;n880s0&quot;}],[&quot;path&quot;,{d:&quot;m20.772 16.148.924.383&quot;,key:&quot;1g6xey&quot;}],[&quot;circle&quot;,{cx:&quot;18&quot;,cy:&quot;15&quot;,r:&quot;3&quot;,key:&quot;gjjjvw&quot;}],[&quot;circle&quot;,{cx:&quot;9&quot;,cy:&quot;7&quot;,r:&quot;4&quot;,key:&quot;nufk8&quot;}]],Gm=Tt(&quot;user-cog&quot;,FB);const BB=[[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;8&quot;,r:&quot;5&quot;,key:&quot;1hypcn&quot;}],[&quot;path&quot;,{d:&quot;M20 21a8 8 0 0 0-16 0&quot;,key:&quot;rfgkzh&quot;}]],l2=Tt(&quot;user-round&quot;,BB);const $B=[[&quot;path&quot;,{d:&quot;M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2&quot;,key:&quot;975kel&quot;}],[&quot;circle&quot;,{cx:&quot;12&quot;,cy:&quot;7&quot;,r:&quot;4&quot;,key:&quot;17ys0d&quot;}]],zB=Tt(&quot;user&quot;,$B);const UB=[[&quot;path&quot;,{d:&quot;M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2&quot;,key:&quot;1yyitq&quot;}],[&quot;path&quot;,{d:&quot;M16 3.128a4 4 0 0 1 0 7.744&quot;,key:&quot;16gr8j&quot;}],[&quot;path&quot;,{d:&quot;M22 21v-2a4 4 0 0 0-3-3.87&quot;,key:&quot;kshegd&quot;}],[&quot;circle&quot;,{cx:&quot;9&quot;,cy:&quot;7&quot;,r:&quot;4&quot;,key:&quot;nufk8&quot;}]],Ym=Tt(&quot;users&quot;,UB);const VB=[[&quot;path&quot;,{d:&quot;M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1&quot;,key:&quot;18etb6&quot;}],[&quot;path&quot;,{d:&quot;M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4&quot;,key:&quot;xoc0q4&quot;}]],c2=Tt(&quot;wallet&quot;,VB);const qB=[[&quot;path&quot;,{d:&quot;M18 6 6 18&quot;,key:&quot;1bl5f8&quot;}],[&quot;path&quot;,{d:&quot;m6 6 12 12&quot;,key:&quot;d8bk6v&quot;}]],gr=Tt(&quot;x&quot;,qB),Hx=&quot;/logoHaggai.avif&quot;,WB=&quot;/seminaireregional.webp&quot;,pd=[&quot;/slideshow/slide1.webp&quot;,&quot;/slideshow/slide2.webp&quot;,&quot;/slideshow/slide3.avif&quot;,&quot;/slideshow/slide4.webp&quot;,&quot;/slideshow/slide5.avif&quot;,&quot;/slideshow/slide6.avif&quot;,&quot;/slideshow/slide7.avif&quot;,&quot;/slideshow/slide8.webp&quot;],HB=[{title:&quot;Séminaire Régional Hybride&quot;,dateLocation:&quot;Du 22 au 30 oct : Session en ligne • Du 15 au 19 nov : Présentiel au Burkina Faso&quot;,imageUrl:WB,imageAlt:&quot;Participants au Séminaire Régional Hybride&quot;,buttonLabel:&quot;S&#039;inscrire&quot;}],KB=[{name:&quot;Sundar Sangma&quot;,title:&quot;Vice Président chargé du développement international du ministère&quot;,img:&quot;/intervenants/1-Sundar_Sangma.png&quot;},{name:&quot;Bastian Babu&quot;,title:&quot;Directeur Exécutif chargé des ministères nationaux&quot;,img:&quot;/intervenants/2-Bastian_Babu.png&quot;},{name:&quot;Lucky Shabangu&quot;,title:&quot;Directeur Afrique&quot;,img:&quot;/intervenants/3-Lucky_Shabangu.png&quot;},{name:&quot;Aboua Omer Liacet&quot;,title:&quot;Représentant régional Afrique Francophone&quot;,img:&quot;/intervenants/4.Aboua_Omer_Liacet.png&quot;}];function a7(...e){return e.filter(Boolean).join(&quot; &quot;)}function b4({children:e,className:r=&quot;&quot;,...t}){return i.jsxs(&quot;a&quot;,{className:a7(&quot;inline-flex items-center justify-center gap-2 rounded-none px-4 py-2 sm:px-6 sm:py-3 text-sm sm:text-base font-medium border-2 border-brand-900&quot;,&quot;bg-brand-700 text-white&quot;,&quot;hover:bg-brand-900 focus:outline-none focus:ring-2 focus:ring-brand-600 focus:ring-offset-2 focus:ring-offset-ink-900&quot;,&quot;transition uppercase tracking-wider&quot;,r),...t,children:[e,i.jsx(Sa,{className:&quot;h-4 w-4&quot;})]})}function XB({children:e,className:r=&quot;&quot;,...t}){return i.jsx(&quot;a&quot;,{className:a7(&quot;inline-flex items-center justify-center rounded-none px-4 py-2 sm:px-6 sm:py-3 text-sm sm:text-base font-medium border-2 border-white bg-transparent text-surface-0&quot;,&quot;hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-white/40 focus:ring-offset-2 focus:ring-offset-ink-900&quot;,&quot;transition uppercase tracking-wider&quot;,r),...t,children:e})}function GB(){const[e,r]=O.useState(0),[t,n]=O.useState(!1);O.useEffect(()=&gt;{const c=setInterval(()=&gt;{r(a=&gt;(a+1)%pd.length)},5e3);return()=&gt;clearInterval(c)},[]);const o=()=&gt;{r(c=&gt;(c-1+pd.length)%pd.length)},s=()=&gt;{r(c=&gt;(c+1)%pd.length)},l=c=&gt;{c.preventDefault();const a=document.getElementById(&quot;events&quot;);a&amp;&amp;a.scrollIntoView({behavior:&quot;smooth&quot;})},u=c=&gt;{c.preventDefault();const a=document.getElementById(&quot;speakers&quot;);a&amp;&amp;a.scrollIntoView({behavior:&quot;smooth&quot;})};return i.jsxs(&quot;div&quot;,{className:&quot;min-h-screen bg-surface-0 font-sans&quot;,children:[i.jsxs(&quot;header&quot;,{className:&quot;sticky top-0 z-50 border-b border-ink-500/20 bg-brand-700 shadow-soft&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mx-auto flex items-center justify-between px-[10%] py-1 sm:py-1.5&quot;,children:[i.jsxs(&quot;a&quot;,{href:&quot;/&quot;,className:&quot;flex items-center gap-2 hover:opacity-80 transition-opacity flex-shrink-0 min-w-0&quot;,children:[i.jsx(&quot;img&quot;,{src:Hx,alt:&quot;Sommet Francophone&quot;,className:&quot;h-6 sm:h-7 md:h-8 w-auto flex-shrink-0 brightness-0 invert&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-xs sm:text-sm md:text-base lg:text-lg font-heading font-medium tracking-wide text-surface-0 uppercase truncate&quot;,children:&quot;Sommet Francophone&quot;})]}),i.jsxs(&quot;nav&quot;,{className:&quot;hidden items-center gap-4 sm:gap-6 text-xs sm:text-sm font-light text-surface-0/80 md:flex&quot;,children:[i.jsx(&quot;a&quot;,{className:&quot;hover:text-surface-0 transition-colors uppercase&quot;,href:&quot;#events&quot;,onClick:l,children:&quot;Événements&quot;}),i.jsx(&quot;a&quot;,{className:&quot;hover:text-surface-0 transition-colors uppercase&quot;,href:&quot;#speakers&quot;,onClick:u,children:&quot;Intervenants&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;hidden md:flex items-center gap-2 sm:gap-3&quot;,children:[i.jsx(&quot;a&quot;,{href:&quot;/inscription&quot;,className:&quot;inline-flex items-center justify-center rounded-pill px-3 py-1.5 text-xs sm:text-sm font-medium text-ink-900 bg-gold-500 shadow-soft hover:bg-gold-600 transition-all uppercase&quot;,children:&quot;Inscription&quot;}),i.jsx(&quot;a&quot;,{href:&quot;/soutenir&quot;,className:&quot;inline-flex items-center justify-center rounded-pill px-3 py-1.5 text-xs sm:text-sm font-medium bg-brand-900 text-surface-0 shadow-soft hover:bg-ink-900 transition-all uppercase&quot;,children:&quot;Soutenir&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-6 w-px bg-surface-0/30 mx-1&quot;}),i.jsx(&quot;a&quot;,{href:&quot;/login&quot;,className:&quot;inline-flex items-center justify-center rounded-pill px-3 py-1.5 text-xs sm:text-sm font-medium text-surface-0 hover:text-gold-500 transition-colors uppercase&quot;,children:&quot;Connexion&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;md:hidden&quot;,children:i.jsx(&quot;button&quot;,{onClick:()=&gt;n(!t),className:&quot;text-surface-0 hover:text-gold-500 focus:outline-none&quot;,&quot;aria-label&quot;:&quot;Toggle menu&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;h-6 w-6&quot;,fill:&quot;none&quot;,strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:&quot;2&quot;,viewBox:&quot;0 0 24 24&quot;,stroke:&quot;currentColor&quot;,children:t?i.jsx(&quot;path&quot;,{d:&quot;M6 18L18 6M6 6l12 12&quot;}):i.jsx(&quot;path&quot;,{d:&quot;M4 6h16M4 12h16M4 18h16&quot;})})})})]}),t&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;md:hidden py-4 px-[10%] space-y-2 border-t border-surface-0/20&quot;,children:[i.jsx(&quot;a&quot;,{href:&quot;#events&quot;,className:&quot;block py-2 text-sm font-light text-surface-0/80 hover:text-surface-0 transition-colors uppercase&quot;,onClick:c=&gt;{n(!1),l(c)},children:&quot;Événements&quot;}),i.jsx(&quot;a&quot;,{href:&quot;#speakers&quot;,className:&quot;block py-2 text-sm font-light text-surface-0/80 hover:text-surface-0 transition-colors uppercase&quot;,onClick:c=&gt;{n(!1),u(c)},children:&quot;Intervenants&quot;}),i.jsx(&quot;a&quot;,{href:&quot;/inscription&quot;,className:&quot;block py-2 text-sm font-light text-surface-0/80 hover:text-surface-0 transition-colors uppercase&quot;,onClick:()=&gt;n(!1),children:&quot;Inscription&quot;}),i.jsx(&quot;a&quot;,{href:&quot;/soutenir&quot;,className:&quot;block py-2 text-sm font-light text-surface-0/80 hover:text-surface-0 transition-colors uppercase&quot;,onClick:()=&gt;n(!1),children:&quot;Soutenir&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-px bg-surface-0/20 my-2&quot;}),i.jsx(&quot;a&quot;,{href:&quot;/login&quot;,className:&quot;block py-2 text-sm font-light text-surface-0/80 hover:text-surface-0 transition-colors uppercase&quot;,onClick:()=&gt;n(!1),children:&quot;Connexion&quot;})]})]}),i.jsxs(&quot;section&quot;,{className:&quot;relative overflow-hidden text-surface-0&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;absolute inset-0&quot;,children:[i.jsx(uL,{mode:&quot;wait&quot;,children:i.jsx(d4.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:1},className:&quot;absolute inset-0 h-full w-full bg-cover bg-center&quot;,style:{backgroundImage:`url(${pd[e]})`}},e)}),i.jsx(&quot;div&quot;,{className:&quot;absolute inset-0 bg-gradient-to-b from-brand-900/40 via-brand-900/60 to-brand-900/80&quot;}),i.jsx(&quot;div&quot;,{className:&quot;absolute -left-40 -top-40 h-96 w-96 rounded-full bg-brand-700/15 blur-3xl&quot;}),i.jsx(&quot;div&quot;,{className:&quot;absolute -right-40 top-10 h-96 w-96 rounded-full bg-brand-700/10 blur-3xl&quot;})]}),i.jsx(&quot;button&quot;,{onClick:o,className:&quot;absolute left-4 sm:left-6 md:left-8 top-1/2 -translate-y-1/2 z-20 p-2 rounded-full bg-white/10 backdrop-blur-sm hover:bg-white/20 transition-all opacity-60 hover:opacity-100&quot;,&quot;aria-label&quot;:&quot;Image précédente&quot;,children:i.jsx(TF,{className:&quot;w-5 h-5 sm:w-6 sm:h-6 text-white&quot;})}),i.jsx(&quot;button&quot;,{onClick:s,className:&quot;absolute right-4 sm:right-6 md:right-8 top-1/2 -translate-y-1/2 z-20 p-2 rounded-full bg-white/10 backdrop-blur-sm hover:bg-white/20 transition-all opacity-60 hover:opacity-100&quot;,&quot;aria-label&quot;:&quot;Image suivante&quot;,children:i.jsx(RF,{className:&quot;w-5 h-5 sm:w-6 sm:h-6 text-white&quot;})}),i.jsx(&quot;div&quot;,{className:&quot;relative mx-auto max-w-container px-3 sm:px-4 md:px-6 lg:px-8 pt-14 sm:pt-20 w-full min-h-[calc(100vh-100px)] sm:min-h-[calc(100vh-110px)] md:min-h-[calc(100vh-120px)] flex items-center justify-center pb-20 sm:pb-24&quot;,children:i.jsxs(d4.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6},className:&quot;max-w-4xl text-center&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xl sm:text-2xl md:text-3xl lg:text-4xl font-heading font-medium leading-relaxed text-surface-0 uppercase tracking-wide&quot;,children:&quot;Mettre fin à la pauvreté de l&#039;Évangile en Afrique.&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-4 text-lg sm:text-xl md:text-2xl lg:text-3xl font-heading font-normal leading-relaxed text-surface-0/90&quot;,children:&quot;Sommet Haggai Afrique Francophone Ouaga 2026&quot;}),i.jsx(&quot;div&quot;,{className:&quot;mt-8 sm:mt-10 flex justify-center&quot;,children:i.jsxs(&quot;a&quot;,{href:&quot;/inscription&quot;,className:&quot;inline-flex items-center justify-center gap-2 rounded-lg border-2 border-white bg-white/10 px-6 py-3 sm:px-8 sm:py-3.5 text-sm sm:text-base font-medium text-white uppercase tracking-wider hover:bg-white/20 transition-all focus:outline-none focus:ring-2 focus:ring-white/50 focus:ring-offset-2 focus:ring-offset-transparent&quot;,children:[&quot;S&#039;inscrire&quot;,i.jsx(Sa,{className:&quot;h-4 w-4 sm:h-5 sm:w-5&quot;})]})})]})})]}),i.jsx(&quot;div&quot;,{className:&quot;sticky top-[36px] sm:top-[40px] md:top-[44px] z-40 bg-brand-900 w-full py-2 sm:py-2.5 shadow-soft -mt-0&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;mx-auto max-w-container px-4 sm:px-6 lg:px-8 flex justify-between items-center&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2 sm:gap-3&quot;,children:[i.jsx(&quot;img&quot;,{src:Hx,alt:&quot;Sommet Francophone&quot;,className:&quot;h-7 sm:h-8 md:h-9 w-auto brightness-0 invert&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-surface-0 text-xs sm:text-sm md:text-base font-body font-light tracking-wide&quot;,children:&quot;Sommet Francophone&quot;}),i.jsx(&quot;div&quot;,{className:&quot;flex items-center justify-center w-6 h-6 sm:w-7 sm:h-7 md:w-8 md:h-8 rounded-full bg-surface-0&quot;,children:i.jsx(&quot;span&quot;,{className:&quot;text-brand-900 text-[10px] sm:text-xs md:text-sm font-semibold&quot;,children:&quot;26&quot;})})]}),i.jsx(&quot;a&quot;,{href:&quot;/inscription&quot;,className:&quot;text-surface-0 uppercase text-xs sm:text-sm md:text-base font-medium tracking-wider hover:opacity-90 transition-opacity&quot;,children:&quot;S&#039;inscrire&quot;})]})}),i.jsx(&quot;section&quot;,{className:&quot;bg-surface-0 py-14 md:py-18 lg:py-24&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;max-w-6xl mx-auto px-4 md:px-6&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-4xl&quot;,children:[i.jsxs(&quot;h2&quot;,{className:&quot;text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-heading font-medium text-ink-900 leading-tight mb-8 sm:mb-12 tracking-wide&quot;,children:[&quot;Sommet Haggai&quot;,i.jsx(&quot;br&quot;,{}),&quot;Francophone&quot;,i.jsx(&quot;br&quot;,{}),&quot;2026&quot;]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-3 sm:gap-4 mb-4 sm:mb-6&quot;,children:[i.jsx(r0,{className:&quot;text-brand-900 flex-shrink-0 w-6 h-6 sm:w-7 sm:h-7 md:w-8 md:h-8 lg:w-9 lg:h-9&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-body font-light text-ink-900 leading-tight&quot;,children:&quot;19-22 novembre 2026&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-3 sm:gap-4 mb-12 sm:mb-16&quot;,children:[i.jsx(fu,{className:&quot;text-brand-900 flex-shrink-0 w-5 h-5 sm:w-6 sm:h-6 md:w-7 md:h-7 lg:w-8 lg:h-8&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-body font-light text-ink-900 leading-tight&quot;,children:&quot;Sopatel Silmande Hôtel, Ouagadougou&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;flex flex-col sm:flex-row gap-4 sm:gap-6&quot;,children:i.jsx(&quot;a&quot;,{href:&quot;/inscription&quot;,className:&quot;inline-flex items-center justify-center rounded-none border-2 border-white bg-brand-700 px-6 py-3 text-sm sm:text-base font-semibold text-white uppercase tracking-wider hover:bg-brand-900 transition-all&quot;,children:&quot;Inscrivez-vous&quot;})})]})})}),i.jsx(&quot;section&quot;,{className:&quot;bg-brand-900 text-surface-0&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;max-w-6xl mx-auto px-4 md:px-6 py-14 md:py-18 lg:py-24&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;mx-auto max-w-3xl text-center&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs sm:text-sm md:text-base font-body font-bold uppercase tracking-wider text-brand-700&quot;,children:&quot;Thèmes et contenu&quot;}),i.jsx(&quot;h2&quot;,{className:&quot;mt-3 text-2xl sm:text-3xl md:text-4xl font-heading font-normal tracking-tight&quot;,children:&quot;« L&#039;autonomisation des ministères nationaux comme facteur clé pour mettre fin à la pauvreté de l&#039;exposition à l&#039;Évangile en Afrique francophone. »&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-4 text-base sm:text-lg md:text-xl font-body font-extralight leading-relaxed text-surface-0/80&quot;,children:&quot;Des ateliers de réflexion, des partages de meilleures pratiques, réseautage et renforcement des collaborations régionales.&quot;})]})})}),i.jsx(&quot;section&quot;,{id:&quot;speakers&quot;,className:&quot;bg-brand-50 py-14 md:py-18 lg:py-24&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-6xl mx-auto px-4 md:px-6&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-2xl sm:text-3xl md:text-4xl font-heading font-medium text-ink-900 leading-tight mb-10 sm:mb-12 tracking-wide uppercase&quot;,children:&quot;INTERVENANTS&quot;}),i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4 md:gap-5&quot;,children:KB.slice(0,4).map((c,a)=&gt;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col items-center text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;relative aspect-[3/4] w-full mb-3 sm:mb-4 overflow-hidden rounded-xl2 shadow-soft&quot;,children:i.jsx(&quot;img&quot;,{src:c.img,alt:c.name,className:&quot;h-full w-full object-cover transition duration-500 hover:scale-[1.05]&quot;,style:{filter:&quot;contrast(1.1) saturate(1.2) brightness(0.95)&quot;},loading:&quot;lazy&quot;})}),i.jsx(&quot;h3&quot;,{className:&quot;text-sm sm:text-base md:text-lg font-body font-semibold text-ink-900 mb-1 leading-tight&quot;,children:c.name}),i.jsx(&quot;p&quot;,{className:&quot;text-xs sm:text-sm font-body font-extralight text-ink-500 leading-relaxed&quot;,children:c.title})]},a))}),i.jsx(&quot;div&quot;,{className:&quot;mt-10 flex justify-center&quot;,children:i.jsxs(&quot;a&quot;,{href:&quot;#&quot;,className:&quot;inline-flex items-center gap-2 rounded-none border-2 border-ink-900 bg-brand-900 px-6 py-3 text-sm sm:text-base font-medium text-surface-0 hover:bg-ink-900 transition-all uppercase tracking-wider&quot;,children:[&quot;Voir tous les intervenants &quot;,i.jsx(Sa,{className:&quot;h-4 w-4&quot;})]})})]})}),i.jsx(&quot;section&quot;,{id:&quot;events&quot;,className:&quot;bg-surface-0&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-brand-900 w-full&quot;,style:{width:&quot;100vw&quot;,marginLeft:&quot;calc(50% - 50vw)&quot;,marginRight:&quot;calc(50% - 50vw)&quot;},children:[i.jsx(&quot;div&quot;,{className:&quot;max-w-6xl mx-auto px-4 md:px-6 py-10 sm:py-12&quot;,children:i.jsx(&quot;h2&quot;,{className:&quot;text-2xl sm:text-3xl md:text-4xl font-heading font-medium text-surface-0 leading-tight uppercase tracking-wide&quot;,children:&quot;AUTRES EVENEMENTS&quot;})}),i.jsx(&quot;div&quot;,{className:&quot;space-y-0&quot;,children:HB.map((c,a)=&gt;i.jsx(&quot;div&quot;,{className:&quot;group overflow-hidden&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;relative aspect-video overflow-hidden bg-ink-500 bg-opacity-10&quot;,children:[i.jsx(&quot;img&quot;,{src:c.imageUrl,alt:c.imageAlt,className:&quot;h-full w-full object-cover transition duration-500 group-hover:scale-[1.02] brightness-110&quot;,loading:&quot;lazy&quot;}),i.jsx(&quot;div&quot;,{className:&quot;absolute bottom-0 left-0 right-0 h-1/2 md:h-2/5 bg-gradient-to-t from-brand-900/90 via-brand-900/75 to-brand-900/30 md:via-brand-900/70 md:to-brand-900/40&quot;}),i.jsx(&quot;div&quot;,{className:&quot;absolute bottom-0 left-0 right-0 flex flex-col justify-end text-surface-0 w-full md:w-[90%] md:left-[5%] p-6 md:p-12&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;space-y-3 w-full&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-2xl sm:text-3xl md:text-4xl font-heading font-medium mb-2 drop-shadow-lg&quot;,children:c.title}),i.jsx(&quot;div&quot;,{className:&quot;text-base sm:text-lg md:text-xl font-body font-medium drop-shadow-md space-y-1&quot;,children:c.title===&quot;Séminaire Régional Hybride&quot;?i.jsxs(i.Fragment,{children:[i.jsx(&quot;p&quot;,{children:&quot;Du 22 au 30 oct : Session en ligne&quot;}),i.jsx(&quot;p&quot;,{children:&quot;Du 15 au 19 nov : Présentiel au Burkina Faso&quot;})]}):i.jsx(&quot;p&quot;,{children:c.dateLocation})}),i.jsxs(&quot;div&quot;,{className:&quot;pt-4 flex flex-wrap gap-3&quot;,children:[i.jsx(b4,{href:&quot;/inscription&quot;,className:&quot;px-4 py-2&quot;,children:c.buttonLabel}),c.title===&quot;Séminaire Régional Hybride&quot;&amp;&amp;i.jsx(XB,{href:&quot;/inscription?preselect=recommend&quot;,className:&quot;px-4 py-2&quot;,children:&quot;Recommander&quot;})]})]})})]})},a))})]})}),i.jsx(&quot;section&quot;,{id:&quot;register&quot;,className:&quot;bg-surface-0 py-14 md:py-18 lg:py-24&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;max-w-6xl mx-auto px-4 md:px-6&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;relative overflow-hidden rounded-xl2 bg-brand-900 p-10 shadow-soft ring-1 ring-ink-900/5 sm:p-12&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;absolute -left-24 -top-24 h-72 w-72 rounded-full bg-brand-700/22 blur-3xl&quot;}),i.jsx(&quot;div&quot;,{className:&quot;absolute -right-24 -bottom-24 h-72 w-72 rounded-full bg-brand-700/16 blur-3xl&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;relative mx-auto max-w-2xl text-center text-surface-0&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-2xl sm:text-3xl md:text-4xl font-heading font-normal tracking-tight&quot;,children:&quot;Prêt à faire accroître votre impact pour la transformation de l&#039;Afrique ?&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-4 text-base sm:text-lg md:text-xl font-body font-extralight leading-relaxed text-surface-0/80&quot;,children:&quot;Réservez votre place. Recevez les informations pratiques. Rejoignez la communauté régionale de leaders Haggai pour cet effort commun.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mt-7 flex flex-col justify-center gap-3 sm:flex-row&quot;,children:[i.jsx(b4,{href:&quot;/inscription&quot;,children:&quot;S&#039;inscrire maintenant&quot;}),i.jsx(&quot;a&quot;,{href:&quot;/soutenir&quot;,className:&quot;inline-flex items-center justify-center rounded-none border-2 border-surface-0 px-4 py-2 sm:px-6 sm:py-3 text-sm sm:text-base font-medium bg-transparent text-surface-0 hover:bg-surface-0/10 transition-all uppercase tracking-wider&quot;,children:&quot;Soutenir&quot;}),i.jsx(&quot;a&quot;,{href:&quot;#&quot;,className:&quot;inline-flex items-center justify-center rounded-none border-2 border-surface-0 px-4 py-2 sm:px-6 sm:py-3 text-sm sm:text-base font-medium bg-transparent text-surface-0 hover:bg-surface-0/10 transition-all uppercase tracking-wider&quot;,children:&quot;Télécharger la brochure&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-8 grid gap-3 sm:grid-cols-[1fr_auto]&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;email&quot;,placeholder:&quot;Votre email pour recevoir les infos&quot;,className:&quot;h-12 w-full rounded-none border-2 border-surface-0/30 bg-surface-0/10 px-4 text-sm sm:text-base font-body font-normal text-surface-0 placeholder:text-surface-0/55 focus:outline-none focus:ring-2 focus:ring-brand-700/60 focus:border-brand-700/50&quot;}),i.jsx(&quot;a&quot;,{href:&quot;#&quot;,className:&quot;inline-flex h-12 items-center justify-center rounded-none border-2 border-ink-900 bg-surface-0 px-4 sm:px-5 text-sm sm:text-base font-medium text-ink-900 hover:bg-brand-50 transition-all uppercase tracking-wider&quot;,children:&quot;Recevoir&quot;})]})]})]})})}),i.jsx(&quot;footer&quot;,{className:&quot;border-t border-ink-500/20 bg-brand-900 text-surface-0&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-6xl mx-auto px-4 md:px-6 py-10&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-3 gap-8 mb-8&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-3 mb-3&quot;,children:[i.jsx(&quot;img&quot;,{src:Hx,alt:&quot;Sommet Francophone&quot;,className:&quot;h-10 md:h-12 w-auto brightness-0 invert&quot;}),i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-surface-0&quot;,children:&quot;Sommet Francophone&quot;})]}),i.jsx(&quot;p&quot;,{className:&quot;text-surface-0/80 text-sm sm:text-base font-body font-medium leading-relaxed&quot;,children:&quot;Equiper et inspirer des leaders bien placés pour la transformation de l&#039;Afrique&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;text-base sm:text-lg font-body font-semibold mb-4 text-surface-0&quot;,children:&quot;Liens rapides&quot;}),i.jsxs(&quot;ul&quot;,{className:&quot;space-y-2 text-sm sm:text-base text-surface-0/70&quot;,children:[i.jsx(&quot;li&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;#events&quot;,onClick:l,className:&quot;hover:text-surface-0 transition-colors&quot;,children:&quot;Événements&quot;})}),i.jsx(&quot;li&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;#speakers&quot;,onClick:u,className:&quot;hover:text-surface-0 transition-colors&quot;,children:&quot;Intervenants&quot;})}),i.jsx(&quot;li&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;/inscription&quot;,className:&quot;hover:text-surface-0 transition-colors&quot;,children:&quot;Inscription&quot;})}),i.jsx(&quot;li&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;#&quot;,className:&quot;hover:text-surface-0 transition-colors&quot;,children:&quot;Contributions&quot;})})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;text-base sm:text-lg font-body font-semibold mb-4 text-surface-0&quot;,children:&quot;Contact&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm sm:text-base text-surface-0/70&quot;,children:[&quot;Pour toute question, contactez-nous à&quot;,&quot; &quot;,i.jsx(&quot;a&quot;,{href:&quot;mailto:communication@sommetfrancophone.org&quot;,className:&quot;hover:text-surface-0 transition-colors&quot;,children:&quot;communication@sommetfrancophone.org&quot;})]})]})]}),i.jsx(&quot;div&quot;,{className:&quot;pt-8 border-t border-surface-0/20 text-center text-sm sm:text-base text-surface-0/60&quot;,children:i.jsxs(&quot;p&quot;,{children:[&quot;© &quot;,new Date().getFullYear(),&quot; Sommet Francophone. Tous droits réservés.&quot;]})})]})})]})}function YB(){const[e,r]=O.useState(!1);return i.jsxs(&quot;nav&quot;,{className:&quot;bg-brand-700 shadow-soft sticky top-0 z-50&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mx-auto flex items-center justify-between px-[10%] py-1 sm:py-1.5&quot;,children:[i.jsxs(ut,{to:&quot;/&quot;,className:&quot;flex items-center gap-2 hover:opacity-80 transition-opacity flex-shrink-0 min-w-0&quot;,children:[i.jsx(&quot;img&quot;,{src:&quot;/logoHaggai.avif&quot;,alt:&quot;Sommet Francophone&quot;,className:&quot;h-6 sm:h-7 md:h-8 w-auto flex-shrink-0 brightness-0 invert&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-xs sm:text-sm md:text-base lg:text-lg font-heading font-medium tracking-wide text-surface-0 uppercase truncate&quot;,children:&quot;SOMMET FRANCOPHONE&quot;})]}),i.jsxs(&quot;nav&quot;,{className:&quot;hidden items-center gap-4 sm:gap-6 text-xs sm:text-sm font-light text-surface-0 md:flex&quot;,children:[i.jsx(ut,{to:&quot;/#events&quot;,className:&quot;hover:opacity-80 transition-opacity uppercase&quot;,children:&quot;Événements&quot;}),i.jsx(ut,{to:&quot;/#speakers&quot;,className:&quot;hover:opacity-80 transition-opacity uppercase&quot;,children:&quot;Intervenants&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;hidden md:flex items-center gap-2 sm:gap-3&quot;,children:[i.jsx(ut,{to:&quot;/inscription&quot;,className:&quot;inline-flex items-center justify-center rounded-pill px-4 py-2 text-xs sm:text-sm font-semibold text-ink-900 bg-gold-500 shadow-soft hover:bg-gold-600 transition-all uppercase&quot;,children:&quot;Inscription&quot;}),i.jsx(ut,{to:&quot;/soutenir&quot;,className:&quot;inline-flex items-center justify-center rounded-pill px-4 py-2 text-xs sm:text-sm font-medium bg-brand-900 text-surface-0 shadow-soft hover:bg-ink-900 transition-all uppercase&quot;,children:&quot;Soutenir&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-6 w-px bg-surface-0/30 mx-1&quot;}),i.jsx(ut,{to:&quot;/login&quot;,className:&quot;inline-flex items-center justify-center rounded-pill px-4 py-2 text-xs sm:text-sm font-medium text-surface-0 hover:opacity-80 transition-opacity uppercase&quot;,children:&quot;Connexion&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;md:hidden&quot;,children:i.jsx(&quot;button&quot;,{onClick:()=&gt;r(!e),className:&quot;text-surface-0 hover:opacity-80 focus:outline-none&quot;,&quot;aria-label&quot;:&quot;Toggle menu&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;h-6 w-6&quot;,fill:&quot;none&quot;,strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:&quot;2&quot;,viewBox:&quot;0 0 24 24&quot;,stroke:&quot;currentColor&quot;,children:e?i.jsx(&quot;path&quot;,{d:&quot;M6 18L18 6M6 6l12 12&quot;}):i.jsx(&quot;path&quot;,{d:&quot;M4 6h16M4 12h16M4 18h16&quot;})})})})]}),e&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;md:hidden py-4 px-[10%] space-y-2 border-t border-surface-0/20 bg-brand-700&quot;,children:[i.jsx(ut,{to:&quot;/#events&quot;,className:&quot;block py-2 text-sm font-light text-surface-0 hover:opacity-80 transition-opacity uppercase&quot;,onClick:()=&gt;r(!1),children:&quot;Événements&quot;}),i.jsx(ut,{to:&quot;/#speakers&quot;,className:&quot;block py-2 text-sm font-light text-surface-0 hover:opacity-80 transition-opacity uppercase&quot;,onClick:()=&gt;r(!1),children:&quot;Intervenants&quot;}),i.jsx(ut,{to:&quot;/inscription&quot;,className:&quot;block py-2 text-sm font-light text-surface-0 hover:opacity-80 transition-opacity uppercase&quot;,onClick:()=&gt;r(!1),children:&quot;Inscription&quot;}),i.jsx(ut,{to:&quot;/soutenir&quot;,className:&quot;block py-2 text-sm font-light text-surface-0 hover:opacity-80 transition-opacity uppercase&quot;,onClick:()=&gt;r(!1),children:&quot;Soutenir&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-px bg-surface-0/20 my-2&quot;}),i.jsx(ut,{to:&quot;/login&quot;,className:&quot;block py-2 text-sm font-light text-surface-0 hover:opacity-80 transition-opacity uppercase&quot;,onClick:()=&gt;r(!1),children:&quot;Connexion&quot;})]})]})}function ZB(){return i.jsx(&quot;footer&quot;,{className:&quot;bg-brand-900 text-white mt-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-container mx-auto px-4 sm:px-6 lg:px-8 py-12&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-3 gap-8&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-3 mb-3&quot;,children:[i.jsx(&quot;img&quot;,{src:&quot;/logoHaggai.avif&quot;,alt:&quot;Sommet Francophone&quot;,className:&quot;h-10 md:h-12 w-auto&quot;}),i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-white&quot;,children:&quot;Sommet Francophone&quot;})]}),i.jsx(&quot;p&quot;,{className:&quot;text-gray-200 text-sm font-medium leading-relaxed&quot;,children:&quot;Former et équiper des leaders pour transformer l&#039;Afrique.&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;font-semibold mb-4&quot;,children:&quot;Liens rapides&quot;}),i.jsxs(&quot;ul&quot;,{className:&quot;space-y-2 text-sm text-gray-300&quot;,children:[i.jsx(&quot;li&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;#&quot;,className:&quot;hover:text-white transition-colors&quot;,children:&quot;Événements&quot;})}),i.jsx(&quot;li&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;#&quot;,className:&quot;hover:text-white transition-colors&quot;,children:&quot;Inscription&quot;})}),i.jsx(&quot;li&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;#&quot;,className:&quot;hover:text-white transition-colors&quot;,children:&quot;Contributions&quot;})})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;font-semibold mb-4&quot;,children:&quot;Contact&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-gray-300 space-y-2&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;block&quot;,children:[&quot;Pour toute question :&quot;,&quot; &quot;,i.jsx(&quot;a&quot;,{href:&quot;mailto:contact@sommetfrancophone.org&quot;,className:&quot;hover:text-white transition-colors&quot;,children:&quot;contact@sommetfrancophone.org&quot;})]}),i.jsxs(&quot;span&quot;,{className:&quot;block&quot;,children:[&quot;Support / communication :&quot;,&quot; &quot;,i.jsx(&quot;a&quot;,{href:&quot;mailto:communication@sommetfrancophone.org&quot;,className:&quot;hover:text-white transition-colors&quot;,children:&quot;communication@sommetfrancophone.org&quot;}),&quot; &quot;,&quot;(+225 05 5427 5725 WhatsApp)&quot;]}),i.jsxs(&quot;span&quot;,{className:&quot;block&quot;,children:[&quot;Questions finance :&quot;,&quot; &quot;,i.jsx(&quot;a&quot;,{href:&quot;mailto:finance@sommetfrancophone.org&quot;,className:&quot;hover:text-white transition-colors&quot;,children:&quot;finance@sommetfrancophone.org&quot;})]})]})]})]}),i.jsx(&quot;div&quot;,{className:&quot;mt-8 pt-8 border-t border-gray-700 text-center text-sm text-gray-400&quot;,children:i.jsxs(&quot;p&quot;,{children:[&quot;© &quot;,new Date().getFullYear(),&quot; Sommet Francophone. Tous droits réservés.&quot;]})})]})})}function El({children:e}){return i.jsxs(&quot;div&quot;,{className:&quot;min-h-screen flex flex-col bg-brand-50&quot;,children:[i.jsx(YB,{}),i.jsx(&quot;main&quot;,{className:&quot;flex-1 pt-0&quot;,children:e}),i.jsx(ZB,{})]})}const Hd=&quot;auth_session_v1&quot;,gv=&quot;auth_token&quot;;function QB(e){return typeof window&gt;&quot;u&quot;?null:e?window.localStorage:window.sessionStorage}function y4(e){if(!e)return null;try{const r=JSON.parse(e);return typeof r.token!=&quot;string&quot;||typeof r.remember!=&quot;boolean&quot;||typeof r.expires_at!=&quot;string&quot;?null:r}catch{return null}}function u2(){typeof window&gt;&quot;u&quot;||(window.localStorage.removeItem(Hd),window.sessionStorage.removeItem(Hd),window.localStorage.removeItem(gv),window.sessionStorage.removeItem(gv))}function JB(e){u2();const r=QB(e.remember);r&amp;&amp;(r.setItem(Hd,JSON.stringify(e)),r.setItem(gv,e.token))}function e$(){if(typeof window&gt;&quot;u&quot;)return null;const e=y4(window.sessionStorage.getItem(Hd)),r=y4(window.localStorage.getItem(Hd)),t=e??r;return t?Date.now()&gt;=Date.parse(t.expires_at)?(u2(),null):t:null}function v4(){return e$()?.token??null}const t$=&quot;https://api.sommetfrancophone.org/api&quot;;class kt extends Error{constructor(r,t,n){super(n||t.message||&quot;Une erreur est survenue&quot;),this.status=r,this.data=t,this.name=&quot;ApiClientError&quot;}}class r${baseUrl;authToken=null;constructor(r=t$){this.baseUrl=r,this.authToken=v4()}setAuthToken(r,t){if(this.authToken=r,r){const n=t?.expiresAt??new Date(Date.now()+288e5).toISOString();JB({token:r,remember:t?.remember??!1,expires_at:n})}else u2()}getAuthToken(){if(this.authToken)return this.authToken;const r=v4();return r&amp;&amp;(this.authToken=r),r}buildUrl(r,t){let n;if(this.baseUrl.startsWith(&quot;/&quot;)){const o=this.baseUrl.endsWith(&quot;/&quot;)?this.baseUrl.slice(0,-1):this.baseUrl,s=r.startsWith(&quot;/&quot;)?r:`/${r}`;n=`${o}${s}`}else{const o=this.baseUrl.endsWith(&quot;/&quot;)?this.baseUrl.slice(0,-1):this.baseUrl;r.startsWith(&quot;/&quot;)?n=`${o}${r}`:n=new URL(r,`${o}/`).toString()}if(t&amp;&amp;Object.keys(t).length&gt;0){const o=[];if(Object.entries(t).forEach(([s,l])=&gt;{l!=null&amp;&amp;(Array.isArray(l)?l.forEach(u=&gt;{o.push(`${encodeURIComponent(s)}[]=${encodeURIComponent(String(u))}`)}):o.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`))}),o.length&gt;0){const s=n.includes(&quot;?&quot;)?&quot;&amp;&quot;:&quot;?&quot;;n=`${n}${s}${o.join(&quot;&amp;&quot;)}`}}return n}async request(r,t={}){const{params:n,requireAuth:o=!1,unwrapResponse:s=!0,headers:l={},...u}=t,c=this.buildUrl(r,n),a=u.body instanceof FormData,d={Accept:&quot;application/json&quot;};if(a||(d[&quot;Content-Type&quot;]=&quot;application/json&quot;),typeof crypto&lt;&quot;u&quot;&amp;&amp;crypto.randomUUID&amp;&amp;(d[&quot;X-Request-ID&quot;]=crypto.randomUUID()),o){const h=this.getAuthToken();h&amp;&amp;(d.Authorization=`Bearer ${h}`)}const f={...d,...l};a&amp;&amp;&quot;Content-Type&quot;in f&amp;&amp;delete f[&quot;Content-Type&quot;];try{const h=u.body,m=Array.isArray(f)?f.find(v=&gt;v[0]===&quot;Content-Type&quot;)?.[1]:f[&quot;Content-Type&quot;];if(h&amp;&amp;typeof h==&quot;string&quot;&amp;&amp;m?.includes(&quot;application/json&quot;))try{JSON.parse(h)}catch{console.error(&quot;Body JSON invalide:&quot;,h)}const p=await fetch(c,{...u,body:h,headers:f});if(p.status===204)return null;const x=p.headers.get(&quot;content-type&quot;),g=x&amp;&amp;x.includes(&quot;application/json&quot;);let y;if(g)try{const v=await p.text();!v||v.trim()===&quot;&quot;?y={}:y=JSON.parse(v)}catch{throw new kt(p.status,{message:&quot;Réponse invalide du serveur&quot;},&quot;Le serveur a retourné une réponse invalide&quot;)}else y={message:await p.text()||`HTTP ${p.status}: ${p.statusText}`};if(!p.ok){p.status===401&amp;&amp;o&amp;&amp;this.setAuthToken(null);const v=y.error,_=typeof y.message==&quot;string&quot;&amp;&amp;y.message||(v&amp;&amp;typeof v==&quot;object&quot;&amp;&amp;v!==null&amp;&amp;&quot;message&quot;in v&amp;&amp;typeof v.message==&quot;string&quot;?v.message:&quot;&quot;)||`HTTP ${p.status}: ${p.statusText}`,S=typeof y.error==&quot;object&quot;&amp;&amp;y.error!==null&amp;&amp;&quot;code&quot;in y.error?y.error:void 0,A={message:_,errors:y.errors!==void 0&amp;&amp;y.errors!==null&amp;&amp;typeof y.errors==&quot;object&quot;?y.errors:void 0};throw typeof y.existing_registration_id==&quot;number&quot;&amp;&amp;(A.existing_registration_id=y.existing_registration_id),typeof y.status==&quot;string&quot;&amp;&amp;(A.status=y.status),S!==void 0&amp;&amp;(A.error=S),new kt(p.status,A,A.message)}return r.includes(&quot;/auth/login&quot;)||r.includes(&quot;/auth/register&quot;)||r.includes(&quot;/auth/activate&quot;)?y:r.includes(&quot;/auth/me&quot;)?y.user??y:(r.includes(&quot;/admin/registrations&quot;)||r.includes(&quot;/admin/recommendations&quot;)||r.includes(&quot;/admin/users&quot;)||r.includes(&quot;/admin/audit-logs&quot;)||r.includes(&quot;/finance/debtors&quot;)||r.includes(&quot;/finance/confirmed-payments&quot;))&amp;&amp;(y.meta!==void 0||y.data!==void 0)||!s?y:y.data!==void 0?y.data:y}catch(h){throw h instanceof kt?h:h instanceof TypeError&amp;&amp;h.message.includes(&quot;fetch&quot;)?new kt(0,{message:&quot;Erreur de connexion au serveur&quot;},&quot;Impossible de se connecter au serveur&quot;):new kt(500,{message:&quot;Une erreur inattendue est survenue&quot;},h instanceof Error?h.message:&quot;Erreur inconnue&quot;)}}async get(r,t){return this.request(r,{...t,method:&quot;GET&quot;})}async getAsBlob(r,t){const n=this.buildUrl(r,t?.params),o={Accept:&quot;text/csv&quot;};t?.requireAuth!==!1&amp;&amp;this.getAuthToken()&amp;&amp;(o.Authorization=`Bearer ${this.getAuthToken()}`);const s=await fetch(n,{method:&quot;GET&quot;,headers:o});if(!s.ok){const l=await s.text();let u;try{u=JSON.parse(l)}catch{u={message:l||`HTTP ${s.status}`}}throw new kt(s.status,u,u.message)}return s.blob()}async post(r,t,n){return this.request(r,{...n,method:&quot;POST&quot;,body:t?JSON.stringify(t):void 0})}async postForm(r,t,n){return this.request(r,{...n,method:&quot;POST&quot;,body:t})}async put(r,t,n){return this.request(r,{...n,method:&quot;PUT&quot;,body:t?JSON.stringify(t):void 0})}async patch(r,t,n){return this.request(r,{...n,method:&quot;PATCH&quot;,body:t?JSON.stringify(t):void 0})}async delete(r,t){return this.request(r,{...t,method:&quot;DELETE&quot;})}}const Se=new r$,d2={async list(e){const r=await Se.get(&quot;/events&quot;,{params:e});return Array.isArray(r)?r:r?.data&amp;&amp;Array.isArray(r.data)?r.data:[]},async getBySlug(e){return Se.get(`/events/${e}`)},async getPricingPlans(e){return Se.get(`/events/${e}/plans`)},async getSettings(e){return(await Se.get(`/events/${e}/settings`)).settings||{}}},f2={async create(e,r){try{return await Se.post(`/public/events/${e}/registrations`,r)}catch(t){throw t instanceof kt&amp;&amp;t.status===409,t}},async verify(e){return Se.get(`/public/registrations/verify/${e}`)},async resendVerification(e){const r={};return typeof e==&quot;number&quot;?r.registration_id=e:r.email=e,Se.post(&quot;/public/registrations/resend-verification&quot;,r)}},w4={async create(e){return await Se.post(&quot;/public/recommendations&quot;,e)}},vi={async login(e){const r=await Se.post(&quot;/auth/login&quot;,e);return r&amp;&amp;r.token&amp;&amp;Se.setAuthToken(r.token,{remember:!!(r.remember??e.remember_me),expiresAt:r.expires_at}),r},async register(e){const r=await Se.post(&quot;/auth/register&quot;,e);return r.token&amp;&amp;Se.setAuthToken(r.token,{remember:!1,expiresAt:r.expires_at}),r},async logout(){try{await Se.post(&quot;/auth/logout&quot;,void 0,{requireAuth:!0})}catch(e){if(!(e instanceof kt&amp;&amp;e.status===401))throw e}finally{Se.setAuthToken(null)}},async me(){try{return await Se.get(&quot;/auth/me&quot;,{requireAuth:!0})}catch(e){throw e instanceof kt&amp;&amp;e.status===401&amp;&amp;Se.setAuthToken(null),e}},async checkActivation(e){return Se.get(&quot;/auth/activate/check&quot;,{params:{token:e.trim()}})},async activate(e){const r=await Se.post(&quot;/auth/activate&quot;,e);return r?.token&amp;&amp;Se.setAuthToken(r.token,{remember:!1,expiresAt:r.expires_at}),r},async forgotPassword(e){return Se.post(&quot;/auth/forgot-password&quot;,{email:e.email.trim()})},async resetPassword(e){return Se.post(&quot;/auth/reset-password&quot;,{email:e.email.trim(),token:e.token.trim(),password:e.password,password_confirmation:e.password_confirmation})},isAuthenticated(){return Se.getAuthToken()!==null}};function xv(e){return e.status===&quot;draft&quot;?!1:!!e.user?.id}const ns={async list(e={}){const r={};return e.event_id&amp;&amp;(r.event_id=e.event_id),e.event_type&amp;&amp;(r.event_type=e.event_type),e.status&amp;&amp;(Array.isArray(e.status)?r.status=e.status:r.status=[e.status]),e.q&amp;&amp;(r.q=e.q),e.country&amp;&amp;(r.country=e.country),e.created_from&amp;&amp;(r.created_from=e.created_from),e.created_to&amp;&amp;(r.created_to=e.created_to),e.page&amp;&amp;(r.page=e.page),e.per_page&amp;&amp;(r.per_page=e.per_page),Se.get(&quot;/admin/registrations&quot;,{params:r,requireAuth:!0})},async get(e){return Se.get(`/admin/registrations/${e}`,{requireAuth:!0})},async getStats(e={}){const r={};return e.event_id&amp;&amp;(r.event_id=e.event_id),e.event_type&amp;&amp;(r.event_type=e.event_type),e.created_from&amp;&amp;(r.created_from=e.created_from),e.created_to&amp;&amp;(r.created_to=e.created_to),Se.get(&quot;/admin/registrations/stats&quot;,{params:r,requireAuth:!0})},async registrationCountries(e={}){const r={};return e.event_id&amp;&amp;(r.event_id=e.event_id),e.event_type&amp;&amp;(r.event_type=e.event_type),e.created_from&amp;&amp;(r.created_from=e.created_from),e.created_to&amp;&amp;(r.created_to=e.created_to),Se.get(&quot;/admin/registrations/countries&quot;,{params:r,requireAuth:!0})},async updateStatus(e,r){return Se.patch(`/admin/registrations/${e}/status`,r,{requireAuth:!0})},async update(e,r){return Se.put(`/admin/registrations/${e}`,r,{requireAuth:!0})},async changePlanAfterPayment(e,r){return Se.post(`/admin/registrations/${e}/plan-change-after-payment`,r,{requireAuth:!0})},async delete(e){return Se.delete(`/admin/registrations/${e}`,{requireAuth:!0})},async resendActivationEmail(e){return Se.post(`/admin/registrations/${e}/resend-activation-email`,{},{requireAuth:!0})},async generateActivationLink(e){return Se.post(`/admin/registrations/${e}/activation-link`,{},{requireAuth:!0})},async resetParticipantPassword(e,r){return Se.post(`/admin/registrations/${e}/reset-participant-password`,r,{requireAuth:!0})}},Kd={async list(e={}){return await Se.get(&quot;/admin/recommendations&quot;,{params:e,requireAuth:!0})},async show(e){return await Se.get(`/admin/recommendations/${e}`,{requireAuth:!0})},async updateStatus(e,r){return await Se.patch(`/admin/recommendations/${e}/status`,r,{requireAuth:!0})},async sendEmail(e,r){return await Se.post(`/admin/recommendations/${e}/send-email`,r,{requireAuth:!0})},async delete(e){await Se.delete(`/admin/recommendations/${e}`,{requireAuth:!0})}},o7={async changePassword(e){return Se.post(&quot;/account/change-password&quot;,e,{requireAuth:!0})}},bv=[&quot;SUPER_ADMIN&quot;,&quot;COMMISSION_ADMINISTRATION&quot;,&quot;COMMISSION_FINANCE&quot;,&quot;COMMISSION_COMMUNICATION&quot;,&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;,&quot;COMMISSARIAT_GENERAL&quot;],Am=[...bv,&quot;participant&quot;,&quot;guest&quot;],n$=Am,yv={SUPER_ADMIN:&quot;Super Admin&quot;,COMMISSION_ADMINISTRATION:&quot;Commission Administration&quot;,COMMISSION_FINANCE:&quot;Commission Finance&quot;,COMMISSION_COMMUNICATION:&quot;Commission Communication&quot;,COMMISSION_SEMINAIRE_REGIONAL:&quot;Commission Séminaire régional&quot;,COMMISSARIAT_GENERAL:&quot;Commissariat général&quot;,participant:&quot;Participant&quot;,guest:&quot;Invité&quot;},i$={COMMISSION_FINANCE_SOMMET:yv.COMMISSION_FINANCE,COMMISSION_FINANCE_SEMINAIRE:&quot;Commission Finance Séminaire&quot;,COMMISSION_ADMINISTRATION_SOMMET:yv.COMMISSION_ADMINISTRATION,COMMISSION_ADMINISTRATION_SEMINAIRE:&quot;Commission Administration Séminaire&quot;};function Zm(e){return yv[e]??i$[e]??e}const s$={COMMISSION_FINANCE_SOMMET:&quot;COMMISSION_FINANCE&quot;,COMMISSION_FINANCE_SEMINAIRE:&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;,COMMISSION_ADMINISTRATION_SOMMET:&quot;COMMISSION_ADMINISTRATION&quot;,COMMISSION_ADMINISTRATION_SEMINAIRE:&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;};function _4(e){return s$[e]??e}const Uo={async list(e={}){const r={};return e.page!=null&amp;&amp;(r.page=e.page),e.per_page!=null&amp;&amp;(r.per_page=e.per_page),e.role&amp;&amp;(r.role=e.role),e.q&amp;&amp;(r.q=e.q),Se.get(&quot;/admin/users&quot;,{params:r,requireAuth:!0})},async get(e){return Se.get(`/admin/users/${e}`,{requireAuth:!0})},async create(e){return Se.post(&quot;/admin/users&quot;,e,{requireAuth:!0})},async update(e,r){return Se.put(`/admin/users/${e}`,r,{requireAuth:!0})},async delete(e){return Se.delete(`/admin/users/${e}`,{requireAuth:!0})},async setDeactivated(e,r){return Se.patch(`/admin/users/${e}/deactivated`,{deactivated:r},{requireAuth:!0})},async sendActivation(e){return Se.post(`/admin/users/${e}/send-activation`,void 0,{requireAuth:!0})},async resetPassword(e,r){return Se.post(`/admin/users/${e}/reset-password`,r,{requireAuth:!0})}},Kx=&quot;https://api.sommetfrancophone.org/api&quot;;async function a$(){const e=await Se.get(&quot;/registrations/me&quot;,{requireAuth:!0});return Array.isArray(e)?e:e?.data??[]}async function o$(e,r){const{amount:t,method:n,paid_at:o,installment_index:s,reference:l,notes:u,proof:c}=r;if(c){const d=new FormData;return d.append(&quot;amount&quot;,String(t)),d.append(&quot;method&quot;,n),d.append(&quot;paid_at&quot;,o),s!==void 0&amp;&amp;d.append(&quot;installment_index&quot;,String(s)),l?.trim()&amp;&amp;d.append(&quot;reference&quot;,l.trim()),u?.trim()&amp;&amp;d.append(&quot;notes&quot;,u.trim()),d.append(&quot;proof&quot;,c),Se.postForm(`/registrations/${e}/payments`,d,{requireAuth:!0})}const a={amount:t,method:n,paid_at:o};return s!==void 0&amp;&amp;(a.installment_index=s),l?.trim()&amp;&amp;(a.reference=l.trim()),u?.trim()&amp;&amp;(a.notes=u.trim()),Se.post(`/registrations/${e}/payments`,a,{requireAuth:!0})}async function l$(e,r){return Se.post(`/registrations/${e}/payments/sycapay/init`,r,{requireAuth:!0,unwrapResponse:!1})}async function c$(e,r){return Se.post(`/registrations/${e}/payments/sycapay/open-amount/init`,r,{requireAuth:!0,unwrapResponse:!1})}function h2(e,r){const t=[];return e.error===&quot;provider_refused&quot;?(t.push(&quot;Le prestataire a refusé le paiement.&quot;),e.provider_detail?.trim()&amp;&amp;t.push(e.provider_detail.trim())):e.error===&quot;technical_or_incomplete&quot;?(t.push(&quot;Le paiement n’a pas pu être finalisé côté prestataire.&quot;),e.provider_detail?.trim()&amp;&amp;t.push(e.provider_detail.trim())):e.error===&quot;internal_exception&quot;&amp;&amp;t.push(&quot;Une erreur technique est survenue.&quot;),e.technical_error&amp;&amp;t.push(`(${e.technical_error})`),t.length&gt;0?t.join(&quot; &quot;):r}function u$(e){const r=e.data?.code,t=e.data?.message;return r===&quot;open_amount_exceeds_balance&quot;?t??&quot;Le montant dépasse le solde restant.&quot;:r===&quot;open_amount_registration_blocked&quot;?t??&quot;Un autre paiement est en cours ou en vérification pour cette inscription.&quot;:r===&quot;amount_invalid&quot;?t??&quot;Montant invalide.&quot;:r===&quot;nothing_to_pay&quot;?t??&quot;Aucun solde à payer.&quot;:r===&quot;otp_invalid&quot;?t??&quot;Code OTP invalide ou manquant.&quot;:t??e.message}async function j4(e,r,t){return Se.get(`/registrations/${e}/payments/${r}/status`,{requireAuth:!0,params:t?.refresh?{refresh:1}:void 0})}async function d$(e,r){return Se.post(`/registrations/${e}/payments/${r}/sycapay/abandon`,{},{requireAuth:!0,unwrapResponse:!1})}async function f$(e,r){const n=`${Kx.endsWith(&quot;/&quot;)?Kx.slice(0,-1):Kx}/receipts/${e}/download`,o=Se.getAuthToken(),s=await fetch(n,{headers:{Accept:&quot;application/pdf&quot;,...o&amp;&amp;{Authorization:`Bearer ${o}`}}});if(!s.ok){const c=await s.json().catch(()=&gt;({message:s.statusText}));throw{status:s.status,data:c}}const l=await s.blob(),u=document.createElement(&quot;a&quot;);u.href=URL.createObjectURL(l),u.download=r||`receipt-${e}.pdf`,u.click(),URL.revokeObjectURL(u.href)}const Qs={async list(e={}){const r={};return e.event_id!==void 0&amp;&amp;e.event_id!==&quot;&quot;&amp;&amp;(r.event_id=e.event_id),Se.get(&quot;/admin/treasury-accounts&quot;,{params:r,requireAuth:!0})},async create(e){return Se.post(&quot;/admin/treasury-accounts&quot;,e,{requireAuth:!0})},async update(e,r){return Se.put(`/admin/treasury-accounts/${e}`,r,{requireAuth:!0})},async delete(e){return Se.delete(`/admin/treasury-accounts/${e}`,{requireAuth:!0})}},Qm={async list(e){const r=await Se.get(&quot;/admin/event-sycapay-transit-map&quot;,{params:e?.event_id!=null?{event_id:e.event_id}:void 0,requireAuth:!0});return Array.isArray(r)?r:r&amp;&amp;typeof r==&quot;object&quot;&amp;&amp;&quot;data&quot;in r&amp;&amp;Array.isArray(r.data)?r.data:[]},async create(e){return Se.post(&quot;/admin/event-sycapay-transit-map&quot;,e,{requireAuth:!0})},async update(e,r){return Se.put(`/admin/event-sycapay-transit-map/${e}`,r,{requireAuth:!0})},async delete(e){await Se.delete(`/admin/event-sycapay-transit-map/${e}`,{requireAuth:!0})}},Fo={async list(e={}){const r={};e.event_type&amp;&amp;(r.event_type=e.event_type);const t=await Se.get(&quot;/admin/budget-categories&quot;,{params:r,requireAuth:!0});return Array.isArray(t)?t:t?.data??[]},async create(e){const r=await Se.post(&quot;/admin/budget-categories&quot;,e,{requireAuth:!0});return r?.data??r},async update(e,r){const t=await Se.put(`/admin/budget-categories/${e}`,r,{requireAuth:!0});return t?.data??t},async delete(e){await Se.delete(`/admin/budget-categories/${e}`,{requireAuth:!0})}},vv={list(e={}){return Se.get(&quot;/admin/audit-logs&quot;,{requireAuth:!0,params:e})},async exportCsv(e={}){const r={};e.date_from&amp;&amp;(r.date_from=e.date_from),e.date_to&amp;&amp;(r.date_to=e.date_to),e.action&amp;&amp;(r.action=e.action),e.subject_type&amp;&amp;(r.subject_type=e.subject_type),e.user_id!=null&amp;&amp;(r.user_id=e.user_id);const t=await Se.getAsBlob(&quot;/admin/audit-logs/export&quot;,{params:r,requireAuth:!0}),n=URL.createObjectURL(t),o=document.createElement(&quot;a&quot;);o.href=n,o.download=`audit-logs-${new Date().toISOString().slice(0,10)}.csv`,o.click(),URL.revokeObjectURL(n)},async purge(e){return await Se.post(&quot;/admin/audit-logs/purge&quot;,{before:e},{requireAuth:!0})}},jl={async list(e){const r=await Se.get(`/finance/events/${e}/budget-lines`,{requireAuth:!0}),t=r?.data??r;return Array.isArray(t)?t:[]},async create(e,r){const t=await Se.post(`/finance/events/${e}/budget-lines`,r,{requireAuth:!0});return t?.data??t},async update(e,r){const t=await Se.put(`/finance/budget-lines/${e}`,r,{requireAuth:!0});return t?.data??t},async delete(e){await Se.delete(`/finance/budget-lines/${e}`,{requireAuth:!0})},async moveUp(e){await Se.post(`/finance/budget-lines/${e}/move-up`,{},{requireAuth:!0})},async moveDown(e){await Se.post(`/finance/budget-lines/${e}/move-down`,{},{requireAuth:!0})}},Xx=&quot;https://api.sommetfrancophone.org/api&quot;,Qh={async list(e){const r=await Se.get(&quot;/finance/expenses&quot;,{params:{event_id:e},requireAuth:!0}),t=r?.data??r;return Array.isArray(t)?t:[]},async create(e){const{proof:r,...t}=e,n=new FormData;n.append(&quot;event_id&quot;,String(t.event_id)),n.append(&quot;treasury_account_id&quot;,String(t.treasury_account_id)),n.append(&quot;amount&quot;,String(t.amount)),n.append(&quot;paid_at&quot;,t.paid_at),n.append(&quot;label&quot;,t.label),t.event_budget_line_id!=null&amp;&amp;n.append(&quot;event_budget_line_id&quot;,String(t.event_budget_line_id)),t.reference?.trim()&amp;&amp;n.append(&quot;reference&quot;,t.reference.trim()),t.notes?.trim()&amp;&amp;n.append(&quot;notes&quot;,t.notes.trim()),n.append(&quot;proof&quot;,r);const o=await Se.postForm(&quot;/finance/expenses&quot;,n,{requireAuth:!0});return o?.data??o},async openExpenseProofInNewTab(e){const t=`${Xx.endsWith(&quot;/&quot;)?Xx.slice(0,-1):Xx}/finance/expenses/${e}/proof`,n=Se.getAuthToken(),o=await fetch(t,{headers:{...n&amp;&amp;{Authorization:`Bearer ${n}`}}});if(!o.ok){const u=await o.json().catch(()=&gt;({message:o.statusText}));throw{status:o.status,data:u}}const s=await o.blob(),l=URL.createObjectURL(s);window.open(l,&quot;_blank&quot;,&quot;noopener,noreferrer&quot;),window.setTimeout(()=&gt;URL.revokeObjectURL(l),12e4)},async update(e,r){const t=await Se.put(`/finance/expenses/${e}`,r,{requireAuth:!0});return t?.data??t},async delete(e){await Se.delete(`/finance/expenses/${e}`,{requireAuth:!0})}},Gx=&quot;https://api.sommetfrancophone.org/api&quot;,Jh={async list(e){const r=await Se.get(&quot;/finance/treasury-movements&quot;,{params:{event_id:e},requireAuth:!0}),t=r?.data??r;return Array.isArray(t)?t:[]},async create(e){const r=new FormData;r.append(&quot;event_id&quot;,String(e.event_id)),r.append(&quot;movement_type&quot;,e.movement_type),r.append(&quot;amount&quot;,String(e.amount)),r.append(&quot;label&quot;,e.label),e.notes?.trim()&amp;&amp;r.append(&quot;notes&quot;,e.notes.trim()),r.append(&quot;proof&quot;,e.proof),e.movement_type===&quot;transfer&quot;?(r.append(&quot;from_treasury_account_id&quot;,String(e.from_treasury_account_id)),r.append(&quot;to_treasury_account_id&quot;,String(e.to_treasury_account_id))):(r.append(&quot;treasury_account_id&quot;,String(e.treasury_account_id)),r.append(&quot;adjustment_direction&quot;,e.adjustment_direction));const t=await Se.postForm(&quot;/finance/treasury-movements&quot;,r,{requireAuth:!0});return t?.data??t},async openMovementProofInNewTab(e){const t=`${Gx.endsWith(&quot;/&quot;)?Gx.slice(0,-1):Gx}/finance/treasury-movements/${e}/proof`,n=Se.getAuthToken(),o=await fetch(t,{headers:{...n&amp;&amp;{Authorization:`Bearer ${n}`}}});if(!o.ok){const u=await o.json().catch(()=&gt;({message:o.statusText}));throw{status:o.status,data:u}}const s=await o.blob(),l=URL.createObjectURL(s);window.open(l,&quot;_blank&quot;,&quot;noopener,noreferrer&quot;),window.setTimeout(()=&gt;URL.revokeObjectURL(l),12e4)}},Dc={async get(e){return await Se.get(&quot;/finance/treasury-balances&quot;,{params:{event_id:e},requireAuth:!0})},async downloadCsv(e,r){const t=await Se.getAsBlob(&quot;/finance/treasury-balances/export&quot;,{params:{event_id:e},requireAuth:!0}),n=URL.createObjectURL(t),o=document.createElement(&quot;a&quot;);o.href=n,o.download=`tresorerie_${r}_${new Date().toISOString().slice(0,10)}.csv`,o.rel=&quot;noopener&quot;,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n)},async upsertOpeningBalances(e){const r=await Se.put(&quot;/finance/treasury-opening-balances&quot;,e,{requireAuth:!0});return r?.data??r},async listSnapshots(e){const t=await Se.get(&quot;/finance/treasury-snapshots&quot;,{params:{event_id:e,limit:15},requireAuth:!0}),n=Array.isArray(t)?t:t?.data;return Array.isArray(n)?n:[]},async captureSnapshot(e){const r=await Se.post(&quot;/finance/treasury-snapshots&quot;,{event_id:e},{requireAuth:!0});return r?.data??r}},Yx={async storePublic(e){return Se.post(&quot;/public/donations&quot;,e,{requireAuth:!1})},async store(e){return Se.post(&quot;/donations&quot;,e,{requireAuth:!0})},async initPublicSycaPay(e,r){return Se.post(`/public/donations/${e}/sycapay/init`,r,{requireAuth:!1,unwrapResponse:!1})},async initAuthenticatedSycaPay(e,r){return Se.post(`/donations/${e}/sycapay/init`,r,{requireAuth:!0,unwrapResponse:!1})}};async function h$(e,r,t){const n={};return t?.refresh&amp;&amp;(n.refresh=1),t?.donorEmail&amp;&amp;(n.donor_email=t.donorEmail),Se.get(`/public/donations/${e}/payments/${r}/status`,{requireAuth:!1,params:Object.keys(n).length?n:void 0})}const Zx=&quot;https://api.sommetfrancophone.org/api&quot;;async function m$(e,r){const t=Zx.endsWith(&quot;/&quot;)?Zx.slice(0,-1):Zx,n=r?`?donor_email=${encodeURIComponent(r)}`:&quot;&quot;,o=`${t}/public/donations/${e}/receipt/download${n}`,s=await fetch(o,{method:&quot;GET&quot;,headers:{Accept:&quot;application/pdf&quot;}});if(!s.ok){let f={};try{f=await s.json()}catch{}throw new kt(s.status,{message:f.message||s.statusText})}const l=s.headers.get(&quot;Content-Disposition&quot;);let u=`recu-don-${e}.pdf`;const c=l?.match(/filename=&quot;?([^&quot;;]+)&quot;?/i);c?.[1]&amp;&amp;(u=c[1]);const a=await s.blob(),d=document.createElement(&quot;a&quot;);d.href=URL.createObjectURL(a),d.download=u,d.click(),URL.revokeObjectURL(d.href)}function p$(e){if(!(e instanceof kt))return e instanceof Error&amp;&amp;e.message?e.message:&quot;Une erreur est survenue.&quot;;const r=e.data?.code,t=e.data?.message??e.message;return r===&quot;donation_not_awaiting_payment&quot;?t||&quot;Ce don n’est pas en attente de paiement en ligne.&quot;:r===&quot;donation_gateway_active_duplicate&quot;?t||&quot;Un paiement est déjà en cours pour ce don.&quot;:r===&quot;donor_email_mismatch&quot;?t||&quot;L’email ne correspond pas au don.&quot;:r===&quot;idempotency_key_conflict&quot;||r===&quot;idempotency_key_reused&quot;?t||&quot;Conflit de clé d’idempotence.&quot;:r===&quot;otp_invalid&quot;?t||&quot;Code OTP invalide ou manquant.&quot;:t}async function l7(){return Se.get(&quot;/public/sycapay/availability&quot;)}const js={getHome(){return Se.get(&quot;/summit-app/home&quot;,{requireAuth:!0})},listProgramme(){return Se.get(&quot;/summit-app/programme&quot;,{requireAuth:!0})},getSession(e){return Se.get(`/summit-app/sessions/${e}`,{requireAuth:!0})},listWorkshops(){return Se.get(&quot;/summit-app/ateliers&quot;,{requireAuth:!0})},getWorkshop(e){return Se.get(`/summit-app/ateliers/${e}`,{requireAuth:!0})},getMyWorkshopContribution(e){return Se.get(`/summit-app/ateliers/${e}/contribution`,{requireAuth:!0})},async saveWorkshopContribution(e,r){return(await Se.post(`/summit-app/ateliers/${e}/contributions`,r,{requireAuth:!0,unwrapResponse:!1})).data},async updateWorkshopContribution(e,r){return(await Se.put(`/summit-app/ateliers/${e}/contribution`,r,{requireAuth:!0,unwrapResponse:!1})).data},async submitWorkshopContribution(e,r){return(await Se.post(`/summit-app/ateliers/${e}/contribution/submit`,r,{requireAuth:!0,unwrapResponse:!1})).data},listAnnouncements(){return Se.get(&quot;/summit-app/annonces&quot;,{requireAuth:!0})},listPracticalInfos(){return Se.get(&quot;/summit-app/infos-pratiques&quot;,{requireAuth:!0})}},mr=e=&gt;`/admin/events/${e}/companion`,Qt={getDashboard:e=&gt;Se.get(`${mr(e)}/dashboard`,{requireAuth:!0}),listSessions:e=&gt;Se.get(`${mr(e)}/sessions`,{requireAuth:!0}),getSession:(e,r)=&gt;Se.get(`${mr(e)}/sessions/${r}`,{requireAuth:!0}),createSession:(e,r)=&gt;Se.post(`${mr(e)}/sessions`,r,{requireAuth:!0}),updateSession:(e,r,t)=&gt;Se.put(`${mr(e)}/sessions/${r}`,t,{requireAuth:!0}),publishSession:(e,r)=&gt;Se.post(`${mr(e)}/sessions/${r}/publish`,{},{requireAuth:!0}),unpublishSession:(e,r)=&gt;Se.post(`${mr(e)}/sessions/${r}/unpublish`,{},{requireAuth:!0}),listWorkshops:e=&gt;Se.get(`${mr(e)}/workshops`,{requireAuth:!0}),getWorkshop:(e,r)=&gt;Se.get(`${mr(e)}/workshops/${r}`,{requireAuth:!0}),createWorkshop:(e,r)=&gt;Se.post(`${mr(e)}/workshops`,r,{requireAuth:!0}),updateWorkshop:(e,r,t)=&gt;Se.put(`${mr(e)}/workshops/${r}`,t,{requireAuth:!0}),publishWorkshop:(e,r)=&gt;Se.post(`${mr(e)}/workshops/${r}/publish`,{},{requireAuth:!0}),unpublishWorkshop:(e,r)=&gt;Se.post(`${mr(e)}/workshops/${r}/unpublish`,{},{requireAuth:!0}),listWorkshopQuestions:(e,r)=&gt;Se.get(`${mr(e)}/workshops/${r}/questions`,{requireAuth:!0}),createWorkshopQuestion:(e,r,t)=&gt;Se.post(`${mr(e)}/workshops/${r}/questions`,t,{requireAuth:!0}),listAnnouncements:e=&gt;Se.get(`${mr(e)}/announcements`,{requireAuth:!0}),createAnnouncement:(e,r)=&gt;Se.post(`${mr(e)}/announcements`,r,{requireAuth:!0}),publishAnnouncement:(e,r)=&gt;Se.post(`${mr(e)}/announcements/${r}/publish`,{},{requireAuth:!0}),unpublishAnnouncement:(e,r)=&gt;Se.post(`${mr(e)}/announcements/${r}/unpublish`,{},{requireAuth:!0}),listPracticalInfos:e=&gt;Se.get(`${mr(e)}/practical-infos`,{requireAuth:!0}),createPracticalInfo:(e,r)=&gt;Se.post(`${mr(e)}/practical-infos`,r,{requireAuth:!0}),publishPracticalInfo:(e,r)=&gt;Se.post(`${mr(e)}/practical-infos/${r}/publish`,{},{requireAuth:!0}),unpublishPracticalInfo:(e,r)=&gt;Se.post(`${mr(e)}/practical-infos/${r}/unpublish`,{},{requireAuth:!0}),listContributions:(e,r)=&gt;Se.get(`${mr(e)}/contributions`,{requireAuth:!0,params:r,unwrapResponse:!1}),getContributionsResponse:(e,r)=&gt;Se.get(`${mr(e)}/contributions`,{requireAuth:!0,params:r,unwrapResponse:!1}),getContribution:(e,r)=&gt;Se.get(`${mr(e)}/contributions/${r}`,{requireAuth:!0}),previewSession:(e,r)=&gt;Se.get(`${mr(e)}/preview/session/${r}`,{requireAuth:!0,unwrapResponse:!1}),previewWorkshop:(e,r)=&gt;Se.get(`${mr(e)}/preview/workshop/${r}`,{requireAuth:!0,unwrapResponse:!1}),previewAnnouncement:(e,r)=&gt;Se.get(`${mr(e)}/preview/announcement/${r}`,{requireAuth:!0,unwrapResponse:!1}),previewPracticalInfo:(e,r)=&gt;Se.get(`${mr(e)}/preview/practical-info/${r}`,{requireAuth:!0,unwrapResponse:!1})},ja=&quot;https://api.sommetfrancophone.org/api&quot;;function em(e){const{review_note:r,reference:t,proof:n,treasury_account_id:o}=e;if(n){const l=new FormData;return r?.trim()&amp;&amp;l.append(&quot;review_note&quot;,r.trim()),t?.trim()&amp;&amp;l.append(&quot;reference&quot;,t.trim()),o!=null&amp;&amp;l.append(&quot;treasury_account_id&quot;,String(o)),l.append(&quot;proof&quot;,n),l}const s={...r?.trim()&amp;&amp;{review_note:r.trim()},...t?.trim()&amp;&amp;{reference:t.trim()}};return o!=null&amp;&amp;(s.treasury_account_id=Number(o)),s}const Fr={async getEvents(){const e=await Se.get(&quot;/finance/events&quot;,{requireAuth:!0});return Array.isArray(e)?e:e?.data&amp;&amp;Array.isArray(e.data)?e.data:[]},getDashboard(e){const r={};return e?.event_id!=null&amp;&amp;(r.event_id=e.event_id),Se.get(&quot;/finance/dashboard&quot;,{params:Object.keys(r).length?r:void 0,requireAuth:!0})},getDonations(e){const r={};return e?.event_id!=null&amp;&amp;(r.event_id=e.event_id),e?.page!=null&amp;&amp;(r.page=e.page),e?.per_page!=null&amp;&amp;(r.per_page=e.per_page),Se.get(&quot;/finance/donations&quot;,{params:Object.keys(r).length?r:void 0,requireAuth:!0,unwrapResponse:!1})},getDonationsExport(e){const r={};return e?.event_id!=null&amp;&amp;(r.event_id=e.event_id),Se.get(&quot;/finance/donations/export&quot;,{params:Object.keys(r).length?r:void 0,requireAuth:!0,unwrapResponse:!1})},getDebtors(e){const r={event_id:e.event_id};e.page!=null&amp;&amp;(r.page=e.page),e.per_page!=null&amp;&amp;(r.per_page=e.per_page);const t=typeof e.q==&quot;string&quot;?e.q.trim():&quot;&quot;;return t!==&quot;&quot;&amp;&amp;(r.q=t),Se.get(&quot;/finance/debtors&quot;,{params:r,requireAuth:!0})},getDebtorDetail(e){return Se.get(`/finance/debtors/${e}/detail`,{requireAuth:!0})},getDebtorsExport(e){return Se.get(&quot;/finance/debtors/export&quot;,{params:{event_id:e.event_id},requireAuth:!0})},getConfirmedPaymentsExport(e){return Se.get(&quot;/finance/confirmed-payments/export&quot;,{params:{event_id:e.event_id},requireAuth:!0})},getRegistrationFinancialJournalExport(e){return Se.get(&quot;/finance/registrations/financial-journal/export&quot;,{params:e,requireAuth:!0,unwrapResponse:!1})},getExpectedPaymentsForMonth(e){const r={event_id:e.event_id,month:e.month};return e.month_scope&amp;&amp;(r.month_scope=e.month_scope),e.installment_status&amp;&amp;(r.installment_status=e.installment_status),e.financial_situation&amp;&amp;(r.financial_situation=e.financial_situation),e.page!=null&amp;&amp;(r.page=e.page),e.per_page!=null&amp;&amp;(r.per_page=e.per_page),Se.get(&quot;/finance/reminders/expected-payments&quot;,{params:r,requireAuth:!0,unwrapResponse:!1})},getExpectedPaymentsForMonthExport(e){return Se.get(&quot;/finance/reminders/expected-payments/export&quot;,{params:e,requireAuth:!0,unwrapResponse:!1})},getPendingRefundAdjustments(e){const r={};return e?.event_id!=null&amp;&amp;(r.event_id=e.event_id),e?.page!=null&amp;&amp;(r.page=e.page),e?.per_page!=null&amp;&amp;(r.per_page=e.per_page),Se.get(&quot;/finance/registration-commercial-adjustments/pending-refunds&quot;,{params:Object.keys(r).length?r:void 0,requireAuth:!0,unwrapResponse:!1})},markCommercialAdjustmentRefundDone(e,r){return Se.post(`/finance/registration-commercial-adjustments/${e}/mark-refund-done`,r,{requireAuth:!0})},sendInstallmentReminderEmails(e){return Se.post(&quot;/finance/reminders/expected-payments/send-emails&quot;,e,{requireAuth:!0})},confirmPayment(e,r){const t=em(r??{});return t instanceof FormData?Se.postForm(`/finance/payments/${e}/confirm`,t,{requireAuth:!0}):Se.post(`/finance/payments/${e}/confirm`,Object.keys(t).length?t:{},{requireAuth:!0})},rejectPayment(e,r){const t=em(r??{});return t instanceof FormData?Se.postForm(`/finance/payments/${e}/reject`,t,{requireAuth:!0}):Se.post(`/finance/payments/${e}/reject`,Object.keys(t).length?t:{},{requireAuth:!0})},confirmDonation(e,r){const t=em(r??{});return t instanceof FormData?Se.postForm(`/finance/donations/${e}/confirm`,t,{requireAuth:!0}):Se.post(`/finance/donations/${e}/confirm`,Object.keys(t).length?t:{},{requireAuth:!0})},rejectDonation(e,r){const t=em(r??{});return t instanceof FormData?Se.postForm(`/finance/donations/${e}/reject`,t,{requireAuth:!0}):Se.post(`/finance/donations/${e}/reject`,Object.keys(t).length?t:{},{requireAuth:!0})},initPayment(e,r){const{amount:t,method:n,paid_at:o,treasury_account_id:s,reference:l,notes:u,proof:c}=r,a=new FormData;return a.append(&quot;amount&quot;,String(t)),a.append(&quot;method&quot;,n),a.append(&quot;paid_at&quot;,o),a.append(&quot;treasury_account_id&quot;,String(s)),l?.trim()&amp;&amp;a.append(&quot;reference&quot;,l.trim()),u?.trim()&amp;&amp;a.append(&quot;notes&quot;,u.trim()),c&amp;&amp;a.append(&quot;proof&quot;,c),Se.postForm(`/finance/registrations/${e}/payments`,a,{requireAuth:!0})},issuePaymentReceipt(e){return Se.post(`/finance/payments/${e}/receipt`,{},{requireAuth:!0})},sendPaymentReceiptEmail(e){return Se.post(`/finance/payments/${e}/receipt/send-email`,{},{requireAuth:!0})},issueDonationReceipt(e){return Se.post(`/finance/donations/${e}/receipt`,{},{requireAuth:!0})},downloadReceiptUrl(e){return`${ja.endsWith(&quot;/&quot;)?ja.slice(0,-1):ja}/receipts/${e}/download`},async downloadReceipt(e,r){const n=`${ja.endsWith(&quot;/&quot;)?ja.slice(0,-1):ja}/receipts/${e}/download`,o=Se.getAuthToken(),s=await fetch(n,{headers:{Accept:&quot;application/pdf&quot;,...o&amp;&amp;{Authorization:`Bearer ${o}`}}});if(!s.ok){const c=await s.json().catch(()=&gt;({message:s.statusText}));throw{status:s.status,data:c}}const l=await s.blob(),u=document.createElement(&quot;a&quot;);u.href=URL.createObjectURL(l),u.download=r||`receipt-${e}.pdf`,u.click(),URL.revokeObjectURL(u.href)},async openPaymentProofInNewTab(e){const t=`${ja.endsWith(&quot;/&quot;)?ja.slice(0,-1):ja}/finance/payments/${e}/proof`,n=Se.getAuthToken(),o=await fetch(t,{headers:{...n&amp;&amp;{Authorization:`Bearer ${n}`}}});if(!o.ok){const u=await o.json().catch(()=&gt;({message:o.statusText}));throw{status:o.status,data:u}}const s=await o.blob(),l=URL.createObjectURL(s);window.open(l,&quot;_blank&quot;,&quot;noopener,noreferrer&quot;),window.setTimeout(()=&gt;URL.revokeObjectURL(l),12e4)}},Mc={async listSessions(e={}){const r={};return e.event_id!=null&amp;&amp;(r.event_id=e.event_id),e.channel&amp;&amp;(r.channel=e.channel),e.status&amp;&amp;(r.status=e.status),Se.get(&quot;/finance/reconciliation/sessions&quot;,{params:r,requireAuth:!0})},async createSession(e){return Se.post(&quot;/finance/reconciliation/sessions&quot;,e,{requireAuth:!0})},async updateSession(e,r){return Se.patch(`/finance/reconciliation/sessions/${e}`,r,{requireAuth:!0})},async submitReview(e){return Se.post(`/finance/reconciliation/sessions/${e}/submit-review`,{},{requireAuth:!0})},async validateSession(e){return Se.post(`/finance/reconciliation/sessions/${e}/validate`,{},{requireAuth:!0})},async closeSession(e,r={}){return Se.post(`/finance/reconciliation/sessions/${e}/close`,r,{requireAuth:!0})},async reopenSession(e,r){return Se.post(`/finance/reconciliation/sessions/${e}/reopen`,r,{requireAuth:!0})}};function n0(e){const[r,t]=O.useState([]),[n,o]=O.useState(!0),[s,l]=O.useState(null),u=O.useCallback(async()=&gt;{o(!0),l(null);try{const c=await d2.list(e);t(c)}catch(c){l(c)}finally{o(!1)}},[e]);return O.useEffect(()=&gt;{u()},[u]),{events:r,loading:n,error:s,refetch:u}}function m2(e){const[r,t]=O.useState([]),[n,o]=O.useState(!0),[s,l]=O.useState(null),u=O.useCallback(async()=&gt;{if(!e){o(!1);return}o(!0),l(null);try{const c=await d2.getPricingPlans(e);t(c)}catch(c){l(c)}finally{o(!1)}},[e]);return O.useEffect(()=&gt;{u()},[u]),{plans:r,loading:n,error:s,refetch:u}}function g$(e={},r=!0){const[t,n]=O.useState(null),[o,s]=O.useState(!0),[l,u]=O.useState(null),c=O.useCallback(async()=&gt;{if(!r){s(!1);return}s(!0),u(null);try{const a=await ns.list(e);n(a)}catch(a){u(a)}finally{s(!1)}},[e,r]);return O.useEffect(()=&gt;{c()},[c]),{data:t,loading:o,error:l,refetch:c}}function x$(e,r=!0){const[t,n]=O.useState(null),[o,s]=O.useState(!0),[l,u]=O.useState(null),c=O.useCallback(async()=&gt;{if(!e||!r){s(!1);return}s(!0),u(null);try{const a=await ns.get(e);n(a.data)}catch(a){u(a)}finally{s(!1)}},[e,r]);return O.useEffect(()=&gt;{c()},[c]),{data:t,loading:o,error:l,refetch:c}}function b$(e={},r=!0){const[t,n]=O.useState(null),[o,s]=O.useState(!0),[l,u]=O.useState(null),c=O.useCallback(async()=&gt;{if(!r){s(!1);return}s(!0),u(null);try{const a=await ns.getStats(e);n(a)}catch(a){u(a)}finally{s(!1)}},[e,r]);return O.useEffect(()=&gt;{c()},[c]),{data:t,loading:o,error:l,refetch:c}}function y$(e={},r=!0){const[t,n]=O.useState([]),[o,s]=O.useState(!0),[l,u]=O.useState(null),c=O.useCallback(async()=&gt;{if(!r){s(!1);return}s(!0),u(null);try{const a=await ns.registrationCountries(e);n(a.data??[])}catch(a){u(a),n([])}finally{s(!1)}},[e,r]);return O.useEffect(()=&gt;{c()},[c]),{data:t,loading:o,error:l,refetch:c}}function v$(e={},r=!0){const[t,n]=O.useState(null),[o,s]=O.useState(r),[l,u]=O.useState(null),c=O.useCallback(async()=&gt;{if(!r){s(!1);return}s(!0),u(null);try{const a=await Kd.list(e);n(a)}catch(a){a instanceof kt?u(a):u(new kt(500,{message:&quot;Une erreur inattendue est survenue&quot;},&quot;Erreur inconnue&quot;)),n(null)}finally{s(!1)}},[r,e]);return O.useEffect(()=&gt;{c()},[c]),{data:t,loading:o,error:l,refetch:c}}function w$(e={},r=!0){const[t,n]=O.useState(null),[o,s]=O.useState(!0),[l,u]=O.useState(null),{page:c,per_page:a,role:d,q:f}=e,h=O.useCallback(async()=&gt;{if(!r){s(!1);return}s(!0),u(null);try{const m=await Uo.list({page:c,per_page:a,role:d,q:f});n(m)}catch(m){u(m)}finally{s(!1)}},[c,a,d,f,r]);return O.useEffect(()=&gt;{h()},[h]),{data:t,loading:o,error:l,refetch:h}}function _$(e,r){const[t,n]=O.useState(null),[o,s]=O.useState(!1),[l,u]=O.useState(null),c=O.useCallback(()=&gt;{s(!0),u(null),vv.list(e).then(n).catch(a=&gt;u(a?.data?.message??&quot;Erreur lors du chargement du journal d&#039;audit.&quot;)).finally(()=&gt;s(!1))},[r,e]);return O.useEffect(()=&gt;{c()},[c]),{data:t,loading:o,error:l,refetch:c}}const j$=new Set([&quot;SUPER_ADMIN&quot;,&quot;COMMISSION_ADMINISTRATION&quot;,&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;,&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;,&quot;COMMISSION_FINANCE&quot;,&quot;COMMISSION_FINANCE_SOMMET&quot;,&quot;COMMISSION_FINANCE_SEMINAIRE&quot;,&quot;COMMISSION_COMMUNICATION&quot;,&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;,&quot;COMMISSARIAT_GENERAL&quot;]);function N$(e){return typeof e==&quot;string&quot;?e:e.name}function k$(e){return typeof e==&quot;string&quot;?e:e.name}function Ts(){const[e,r]=O.useState(null),[t,n]=O.useState(!0),[o,s]=O.useState(null),l=async()=&gt;{if(!vi.isAuthenticated())return r(null),n(!1),null;n(!0),s(null);try{const p=await vi.me();return r(p),p}catch(p){return s(p),r(null),null}finally{n(!1)}};O.useEffect(()=&gt;{l()},[]),O.useEffect(()=&gt;{const p=()=&gt;{vi.isAuthenticated()?l():(r(null),n(!1))};window.addEventListener(&quot;storage&quot;,p);const x=setInterval(()=&gt;{!vi.isAuthenticated()&amp;&amp;e&amp;&amp;(r(null),n(!1))},1e3);return()=&gt;{window.removeEventListener(&quot;storage&quot;,p),clearInterval(x)}},[e]);const u=O.useMemo(()=&gt;(e?.roles??[]).map(N$),[e?.roles]),c=O.useMemo(()=&gt;(e?.permissions??[]).map(k$),[e?.permissions]),a=O.useMemo(()=&gt;u.some(p=&gt;j$.has(p)),[u]),d=O.useMemo(()=&gt;u.includes(&quot;participant&quot;)&amp;&amp;!a,[u,a]),f=O.useMemo(()=&gt;p=&gt;u.includes(&quot;SUPER_ADMIN&quot;)?!0:c.includes(p),[u,c]),h=a,m=f(&quot;payments.read&quot;)||f(&quot;batches.read&quot;);return{user:e,loading:t,error:o,isAuthenticated:!!e,isAdmin:h,isTreasurer:m,roles:u,permissions:c,canAccessAdmin:a,isParticipant:d,can:f,refetch:l}}const Ae=O.forwardRef(function({variant:r=&quot;primary&quot;,children:t,className:n=&quot;&quot;,...o},s){const l=&quot;px-6 py-3 rounded-none font-medium transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed uppercase tracking-wider border-2&quot;,u={primary:&quot;bg-brand-700 text-white border-2 border-brand-900 hover:bg-brand-900 font-semibold&quot;,secondary:&quot;border-white bg-transparent text-surface-0 hover:bg-white/10&quot;,outline:&quot;border-2 border-brand-900 text-brand-900 bg-transparent hover:bg-brand-900 hover:text-surface-0&quot;,ghost:&quot;border-transparent text-ink-900 hover:bg-brand-50&quot;};return i.jsx(&quot;button&quot;,{ref:s,className:`${l} ${u[r]} ${n}`,...o,children:t})}),S$=[{name:&quot;Afghanistan&quot;,code:&quot;AF&quot;,dialCode:&quot;+93&quot;},{name:&quot;Afrique du Sud&quot;,code:&quot;ZA&quot;,dialCode:&quot;+27&quot;},{name:&quot;Albanie&quot;,code:&quot;AL&quot;,dialCode:&quot;+355&quot;},{name:&quot;Algérie&quot;,code:&quot;DZ&quot;,dialCode:&quot;+213&quot;},{name:&quot;Allemagne&quot;,code:&quot;DE&quot;,dialCode:&quot;+49&quot;},{name:&quot;Andorre&quot;,code:&quot;AD&quot;,dialCode:&quot;+376&quot;},{name:&quot;Angola&quot;,code:&quot;AO&quot;,dialCode:&quot;+244&quot;},{name:&quot;Antigua-et-Barbuda&quot;,code:&quot;AG&quot;,dialCode:&quot;+1-268&quot;},{name:&quot;Arabie saoudite&quot;,code:&quot;SA&quot;,dialCode:&quot;+966&quot;},{name:&quot;Argentine&quot;,code:&quot;AR&quot;,dialCode:&quot;+54&quot;},{name:&quot;Arménie&quot;,code:&quot;AM&quot;,dialCode:&quot;+374&quot;},{name:&quot;Australie&quot;,code:&quot;AU&quot;,dialCode:&quot;+61&quot;},{name:&quot;Autriche&quot;,code:&quot;AT&quot;,dialCode:&quot;+43&quot;},{name:&quot;Azerbaïdjan&quot;,code:&quot;AZ&quot;,dialCode:&quot;+994&quot;},{name:&quot;Bahamas&quot;,code:&quot;BS&quot;,dialCode:&quot;+1-242&quot;},{name:&quot;Bahreïn&quot;,code:&quot;BH&quot;,dialCode:&quot;+973&quot;},{name:&quot;Bangladesh&quot;,code:&quot;BD&quot;,dialCode:&quot;+880&quot;},{name:&quot;Barbade&quot;,code:&quot;BB&quot;,dialCode:&quot;+1-246&quot;},{name:&quot;Belgique&quot;,code:&quot;BE&quot;,dialCode:&quot;+32&quot;},{name:&quot;Belize&quot;,code:&quot;BZ&quot;,dialCode:&quot;+501&quot;},{name:&quot;Bénin&quot;,code:&quot;BJ&quot;,dialCode:&quot;+229&quot;},{name:&quot;Bhoutan&quot;,code:&quot;BT&quot;,dialCode:&quot;+975&quot;},{name:&quot;Biélorussie&quot;,code:&quot;BY&quot;,dialCode:&quot;+375&quot;},{name:&quot;Birmanie&quot;,code:&quot;MM&quot;,dialCode:&quot;+95&quot;},{name:&quot;Bolivie&quot;,code:&quot;BO&quot;,dialCode:&quot;+591&quot;},{name:&quot;Bosnie-Herzégovine&quot;,code:&quot;BA&quot;,dialCode:&quot;+387&quot;},{name:&quot;Botswana&quot;,code:&quot;BW&quot;,dialCode:&quot;+267&quot;},{name:&quot;Brésil&quot;,code:&quot;BR&quot;,dialCode:&quot;+55&quot;},{name:&quot;Brunei&quot;,code:&quot;BN&quot;,dialCode:&quot;+673&quot;},{name:&quot;Bulgarie&quot;,code:&quot;BG&quot;,dialCode:&quot;+359&quot;},{name:&quot;Burkina Faso&quot;,code:&quot;BF&quot;,dialCode:&quot;+226&quot;},{name:&quot;Burundi&quot;,code:&quot;BI&quot;,dialCode:&quot;+257&quot;},{name:&quot;Cambodge&quot;,code:&quot;KH&quot;,dialCode:&quot;+855&quot;},{name:&quot;Cameroun&quot;,code:&quot;CM&quot;,dialCode:&quot;+237&quot;},{name:&quot;Canada&quot;,code:&quot;CA&quot;,dialCode:&quot;+1&quot;},{name:&quot;Cap-Vert&quot;,code:&quot;CV&quot;,dialCode:&quot;+238&quot;},{name:&quot;Chili&quot;,code:&quot;CL&quot;,dialCode:&quot;+56&quot;},{name:&quot;Chine&quot;,code:&quot;CN&quot;,dialCode:&quot;+86&quot;},{name:&quot;Chypre&quot;,code:&quot;CY&quot;,dialCode:&quot;+357&quot;},{name:&quot;Colombie&quot;,code:&quot;CO&quot;,dialCode:&quot;+57&quot;},{name:&quot;Comores&quot;,code:&quot;KM&quot;,dialCode:&quot;+269&quot;},{name:&quot;Congo&quot;,code:&quot;CG&quot;,dialCode:&quot;+242&quot;},{name:&quot;Corée du Nord&quot;,code:&quot;KP&quot;,dialCode:&quot;+850&quot;},{name:&quot;Corée du Sud&quot;,code:&quot;KR&quot;,dialCode:&quot;+82&quot;},{name:&quot;Costa Rica&quot;,code:&quot;CR&quot;,dialCode:&quot;+506&quot;},{name:&quot;Côte d&#039;Ivoire&quot;,code:&quot;CI&quot;,dialCode:&quot;+225&quot;},{name:&quot;Croatie&quot;,code:&quot;HR&quot;,dialCode:&quot;+385&quot;},{name:&quot;Cuba&quot;,code:&quot;CU&quot;,dialCode:&quot;+53&quot;},{name:&quot;Danemark&quot;,code:&quot;DK&quot;,dialCode:&quot;+45&quot;},{name:&quot;Djibouti&quot;,code:&quot;DJ&quot;,dialCode:&quot;+253&quot;},{name:&quot;Dominique&quot;,code:&quot;DM&quot;,dialCode:&quot;+1-767&quot;},{name:&quot;Égypte&quot;,code:&quot;EG&quot;,dialCode:&quot;+20&quot;},{name:&quot;Émirats arabes unis&quot;,code:&quot;AE&quot;,dialCode:&quot;+971&quot;},{name:&quot;Équateur&quot;,code:&quot;EC&quot;,dialCode:&quot;+593&quot;},{name:&quot;Érythrée&quot;,code:&quot;ER&quot;,dialCode:&quot;+291&quot;},{name:&quot;Espagne&quot;,code:&quot;ES&quot;,dialCode:&quot;+34&quot;},{name:&quot;Estonie&quot;,code:&quot;EE&quot;,dialCode:&quot;+372&quot;},{name:&quot;États-Unis&quot;,code:&quot;US&quot;,dialCode:&quot;+1&quot;},{name:&quot;Éthiopie&quot;,code:&quot;ET&quot;,dialCode:&quot;+251&quot;},{name:&quot;Fidji&quot;,code:&quot;FJ&quot;,dialCode:&quot;+679&quot;},{name:&quot;Finlande&quot;,code:&quot;FI&quot;,dialCode:&quot;+358&quot;},{name:&quot;France&quot;,code:&quot;FR&quot;,dialCode:&quot;+33&quot;},{name:&quot;Gabon&quot;,code:&quot;GA&quot;,dialCode:&quot;+241&quot;},{name:&quot;Gambie&quot;,code:&quot;GM&quot;,dialCode:&quot;+220&quot;},{name:&quot;Géorgie&quot;,code:&quot;GE&quot;,dialCode:&quot;+995&quot;},{name:&quot;Ghana&quot;,code:&quot;GH&quot;,dialCode:&quot;+233&quot;},{name:&quot;Grèce&quot;,code:&quot;GR&quot;,dialCode:&quot;+30&quot;},{name:&quot;Grenade&quot;,code:&quot;GD&quot;,dialCode:&quot;+1-473&quot;},{name:&quot;Guatemala&quot;,code:&quot;GT&quot;,dialCode:&quot;+502&quot;},{name:&quot;Guinée&quot;,code:&quot;GN&quot;,dialCode:&quot;+224&quot;},{name:&quot;Guinée-Bissau&quot;,code:&quot;GW&quot;,dialCode:&quot;+245&quot;},{name:&quot;Guinée équatoriale&quot;,code:&quot;GQ&quot;,dialCode:&quot;+240&quot;},{name:&quot;Guyana&quot;,code:&quot;GY&quot;,dialCode:&quot;+592&quot;},{name:&quot;Haïti&quot;,code:&quot;HT&quot;,dialCode:&quot;+509&quot;},{name:&quot;Honduras&quot;,code:&quot;HN&quot;,dialCode:&quot;+504&quot;},{name:&quot;Hongrie&quot;,code:&quot;HU&quot;,dialCode:&quot;+36&quot;},{name:&quot;Inde&quot;,code:&quot;IN&quot;,dialCode:&quot;+91&quot;},{name:&quot;Indonésie&quot;,code:&quot;ID&quot;,dialCode:&quot;+62&quot;},{name:&quot;Irak&quot;,code:&quot;IQ&quot;,dialCode:&quot;+964&quot;},{name:&quot;Iran&quot;,code:&quot;IR&quot;,dialCode:&quot;+98&quot;},{name:&quot;Irlande&quot;,code:&quot;IE&quot;,dialCode:&quot;+353&quot;},{name:&quot;Islande&quot;,code:&quot;IS&quot;,dialCode:&quot;+354&quot;},{name:&quot;Israël&quot;,code:&quot;IL&quot;,dialCode:&quot;+972&quot;},{name:&quot;Italie&quot;,code:&quot;IT&quot;,dialCode:&quot;+39&quot;},{name:&quot;Jamaïque&quot;,code:&quot;JM&quot;,dialCode:&quot;+1-876&quot;},{name:&quot;Japon&quot;,code:&quot;JP&quot;,dialCode:&quot;+81&quot;},{name:&quot;Jordanie&quot;,code:&quot;JO&quot;,dialCode:&quot;+962&quot;},{name:&quot;Kazakhstan&quot;,code:&quot;KZ&quot;,dialCode:&quot;+7&quot;},{name:&quot;Kenya&quot;,code:&quot;KE&quot;,dialCode:&quot;+254&quot;},{name:&quot;Kirghizistan&quot;,code:&quot;KG&quot;,dialCode:&quot;+996&quot;},{name:&quot;Kiribati&quot;,code:&quot;KI&quot;,dialCode:&quot;+686&quot;},{name:&quot;Koweït&quot;,code:&quot;KW&quot;,dialCode:&quot;+965&quot;},{name:&quot;Laos&quot;,code:&quot;LA&quot;,dialCode:&quot;+856&quot;},{name:&quot;Lesotho&quot;,code:&quot;LS&quot;,dialCode:&quot;+266&quot;},{name:&quot;Lettonie&quot;,code:&quot;LV&quot;,dialCode:&quot;+371&quot;},{name:&quot;Liban&quot;,code:&quot;LB&quot;,dialCode:&quot;+961&quot;},{name:&quot;Liberia&quot;,code:&quot;LR&quot;,dialCode:&quot;+231&quot;},{name:&quot;Libye&quot;,code:&quot;LY&quot;,dialCode:&quot;+218&quot;},{name:&quot;Liechtenstein&quot;,code:&quot;LI&quot;,dialCode:&quot;+423&quot;},{name:&quot;Lituanie&quot;,code:&quot;LT&quot;,dialCode:&quot;+370&quot;},{name:&quot;Luxembourg&quot;,code:&quot;LU&quot;,dialCode:&quot;+352&quot;},{name:&quot;Macédoine du Nord&quot;,code:&quot;MK&quot;,dialCode:&quot;+389&quot;},{name:&quot;Madagascar&quot;,code:&quot;MG&quot;,dialCode:&quot;+261&quot;},{name:&quot;Malaisie&quot;,code:&quot;MY&quot;,dialCode:&quot;+60&quot;},{name:&quot;Malawi&quot;,code:&quot;MW&quot;,dialCode:&quot;+265&quot;},{name:&quot;Maldives&quot;,code:&quot;MV&quot;,dialCode:&quot;+960&quot;},{name:&quot;Mali&quot;,code:&quot;ML&quot;,dialCode:&quot;+223&quot;},{name:&quot;Malte&quot;,code:&quot;MT&quot;,dialCode:&quot;+356&quot;},{name:&quot;Maroc&quot;,code:&quot;MA&quot;,dialCode:&quot;+212&quot;},{name:&quot;Marshall&quot;,code:&quot;MH&quot;,dialCode:&quot;+692&quot;},{name:&quot;Maurice&quot;,code:&quot;MU&quot;,dialCode:&quot;+230&quot;},{name:&quot;Mauritanie&quot;,code:&quot;MR&quot;,dialCode:&quot;+222&quot;},{name:&quot;Mexique&quot;,code:&quot;MX&quot;,dialCode:&quot;+52&quot;},{name:&quot;Micronésie&quot;,code:&quot;FM&quot;,dialCode:&quot;+691&quot;},{name:&quot;Moldavie&quot;,code:&quot;MD&quot;,dialCode:&quot;+373&quot;},{name:&quot;Monaco&quot;,code:&quot;MC&quot;,dialCode:&quot;+377&quot;},{name:&quot;Mongolie&quot;,code:&quot;MN&quot;,dialCode:&quot;+976&quot;},{name:&quot;Monténégro&quot;,code:&quot;ME&quot;,dialCode:&quot;+382&quot;},{name:&quot;Mozambique&quot;,code:&quot;MZ&quot;,dialCode:&quot;+258&quot;},{name:&quot;Namibie&quot;,code:&quot;NA&quot;,dialCode:&quot;+264&quot;},{name:&quot;Nauru&quot;,code:&quot;NR&quot;,dialCode:&quot;+674&quot;},{name:&quot;Népal&quot;,code:&quot;NP&quot;,dialCode:&quot;+977&quot;},{name:&quot;Nicaragua&quot;,code:&quot;NI&quot;,dialCode:&quot;+505&quot;},{name:&quot;Niger&quot;,code:&quot;NE&quot;,dialCode:&quot;+227&quot;},{name:&quot;Nigeria&quot;,code:&quot;NG&quot;,dialCode:&quot;+234&quot;},{name:&quot;Norvège&quot;,code:&quot;NO&quot;,dialCode:&quot;+47&quot;},{name:&quot;Nouvelle-Zélande&quot;,code:&quot;NZ&quot;,dialCode:&quot;+64&quot;},{name:&quot;Oman&quot;,code:&quot;OM&quot;,dialCode:&quot;+968&quot;},{name:&quot;Ouganda&quot;,code:&quot;UG&quot;,dialCode:&quot;+256&quot;},{name:&quot;Ouzbékistan&quot;,code:&quot;UZ&quot;,dialCode:&quot;+998&quot;},{name:&quot;Pakistan&quot;,code:&quot;PK&quot;,dialCode:&quot;+92&quot;},{name:&quot;Palaos&quot;,code:&quot;PW&quot;,dialCode:&quot;+680&quot;},{name:&quot;Palestine&quot;,code:&quot;PS&quot;,dialCode:&quot;+970&quot;},{name:&quot;Panama&quot;,code:&quot;PA&quot;,dialCode:&quot;+507&quot;},{name:&quot;Papouasie-Nouvelle-Guinée&quot;,code:&quot;PG&quot;,dialCode:&quot;+675&quot;},{name:&quot;Paraguay&quot;,code:&quot;PY&quot;,dialCode:&quot;+595&quot;},{name:&quot;Pays-Bas&quot;,code:&quot;NL&quot;,dialCode:&quot;+31&quot;},{name:&quot;Pérou&quot;,code:&quot;PE&quot;,dialCode:&quot;+51&quot;},{name:&quot;Philippines&quot;,code:&quot;PH&quot;,dialCode:&quot;+63&quot;},{name:&quot;Pologne&quot;,code:&quot;PL&quot;,dialCode:&quot;+48&quot;},{name:&quot;Portugal&quot;,code:&quot;PT&quot;,dialCode:&quot;+351&quot;},{name:&quot;Qatar&quot;,code:&quot;QA&quot;,dialCode:&quot;+974&quot;},{name:&quot;RDC&quot;,code:&quot;CD&quot;,dialCode:&quot;+243&quot;},{name:&quot;République centrafricaine&quot;,code:&quot;CF&quot;,dialCode:&quot;+236&quot;},{name:&quot;République dominicaine&quot;,code:&quot;DO&quot;,dialCode:&quot;+1-809&quot;},{name:&quot;République tchèque&quot;,code:&quot;CZ&quot;,dialCode:&quot;+420&quot;},{name:&quot;Roumanie&quot;,code:&quot;RO&quot;,dialCode:&quot;+40&quot;},{name:&quot;Royaume-Uni&quot;,code:&quot;GB&quot;,dialCode:&quot;+44&quot;},{name:&quot;Russie&quot;,code:&quot;RU&quot;,dialCode:&quot;+7&quot;},{name:&quot;Rwanda&quot;,code:&quot;RW&quot;,dialCode:&quot;+250&quot;},{name:&quot;Saint-Kitts-et-Nevis&quot;,code:&quot;KN&quot;,dialCode:&quot;+1-869&quot;},{name:&quot;Saint-Marin&quot;,code:&quot;SM&quot;,dialCode:&quot;+378&quot;},{name:&quot;Saint-Vincent-et-les-Grenadines&quot;,code:&quot;VC&quot;,dialCode:&quot;+1-784&quot;},{name:&quot;Sainte-Lucie&quot;,code:&quot;LC&quot;,dialCode:&quot;+1-758&quot;},{name:&quot;Salomon&quot;,code:&quot;SB&quot;,dialCode:&quot;+677&quot;},{name:&quot;Salvador&quot;,code:&quot;SV&quot;,dialCode:&quot;+503&quot;},{name:&quot;Samoa&quot;,code:&quot;WS&quot;,dialCode:&quot;+685&quot;},{name:&quot;São Tomé-et-Príncipe&quot;,code:&quot;ST&quot;,dialCode:&quot;+239&quot;},{name:&quot;Sénégal&quot;,code:&quot;SN&quot;,dialCode:&quot;+221&quot;},{name:&quot;Serbie&quot;,code:&quot;RS&quot;,dialCode:&quot;+381&quot;},{name:&quot;Seychelles&quot;,code:&quot;SC&quot;,dialCode:&quot;+248&quot;},{name:&quot;Sierra Leone&quot;,code:&quot;SL&quot;,dialCode:&quot;+232&quot;},{name:&quot;Singapour&quot;,code:&quot;SG&quot;,dialCode:&quot;+65&quot;},{name:&quot;Slovaquie&quot;,code:&quot;SK&quot;,dialCode:&quot;+421&quot;},{name:&quot;Slovénie&quot;,code:&quot;SI&quot;,dialCode:&quot;+386&quot;},{name:&quot;Somalie&quot;,code:&quot;SO&quot;,dialCode:&quot;+252&quot;},{name:&quot;Soudan&quot;,code:&quot;SD&quot;,dialCode:&quot;+249&quot;},{name:&quot;Soudan du Sud&quot;,code:&quot;SS&quot;,dialCode:&quot;+211&quot;},{name:&quot;Sri Lanka&quot;,code:&quot;LK&quot;,dialCode:&quot;+94&quot;},{name:&quot;Suède&quot;,code:&quot;SE&quot;,dialCode:&quot;+46&quot;},{name:&quot;Suisse&quot;,code:&quot;CH&quot;,dialCode:&quot;+41&quot;},{name:&quot;Suriname&quot;,code:&quot;SR&quot;,dialCode:&quot;+597&quot;},{name:&quot;Syrie&quot;,code:&quot;SY&quot;,dialCode:&quot;+963&quot;},{name:&quot;Tadjikistan&quot;,code:&quot;TJ&quot;,dialCode:&quot;+992&quot;},{name:&quot;Tanzanie&quot;,code:&quot;TZ&quot;,dialCode:&quot;+255&quot;},{name:&quot;Tchad&quot;,code:&quot;TD&quot;,dialCode:&quot;+235&quot;},{name:&quot;Thaïlande&quot;,code:&quot;TH&quot;,dialCode:&quot;+66&quot;},{name:&quot;Timor oriental&quot;,code:&quot;TL&quot;,dialCode:&quot;+670&quot;},{name:&quot;Togo&quot;,code:&quot;TG&quot;,dialCode:&quot;+228&quot;},{name:&quot;Tonga&quot;,code:&quot;TO&quot;,dialCode:&quot;+676&quot;},{name:&quot;Trinité-et-Tobago&quot;,code:&quot;TT&quot;,dialCode:&quot;+1-868&quot;},{name:&quot;Tunisie&quot;,code:&quot;TN&quot;,dialCode:&quot;+216&quot;},{name:&quot;Turkménistan&quot;,code:&quot;TM&quot;,dialCode:&quot;+993&quot;},{name:&quot;Turquie&quot;,code:&quot;TR&quot;,dialCode:&quot;+90&quot;},{name:&quot;Tuvalu&quot;,code:&quot;TV&quot;,dialCode:&quot;+688&quot;},{name:&quot;Ukraine&quot;,code:&quot;UA&quot;,dialCode:&quot;+380&quot;},{name:&quot;Uruguay&quot;,code:&quot;UY&quot;,dialCode:&quot;+598&quot;},{name:&quot;Vanuatu&quot;,code:&quot;VU&quot;,dialCode:&quot;+678&quot;},{name:&quot;Vatican&quot;,code:&quot;VA&quot;,dialCode:&quot;+39&quot;},{name:&quot;Venezuela&quot;,code:&quot;VE&quot;,dialCode:&quot;+58&quot;},{name:&quot;Viêt Nam&quot;,code:&quot;VN&quot;,dialCode:&quot;+84&quot;},{name:&quot;Yémen&quot;,code:&quot;YE&quot;,dialCode:&quot;+967&quot;},{name:&quot;Zambie&quot;,code:&quot;ZM&quot;,dialCode:&quot;+260&quot;},{name:&quot;Zimbabwe&quot;,code:&quot;ZW&quot;,dialCode:&quot;+263&quot;}].sort((e,r)=&gt;e.name.localeCompare(r.name)),wv=&quot;Ce choix fixe le montant en FCFA sur votre inscription. Le paiement réel est validé plus tard (SycaPay ou saisie finances) selon le canal utilisé.&quot;,N4=&quot;sommet-haggai-franco-2026&quot;,Qx=&quot;seminaire-regional-hybride-2026&quot;,C$=e=&gt;{if(!e||e===&quot;XX&quot;)return&quot;&quot;;try{const r=e.toUpperCase().split(&quot;&quot;).map(t=&gt;127397+t.charCodeAt(0));return String.fromCodePoint(...r)}catch{return&quot;&quot;}},tm=S$,k4=[{value:&quot;medecine_para_medical&quot;,label:&quot;Médecine &amp; Para-médical&quot;},{value:&quot;education&quot;,label:&quot;Education&quot;},{value:&quot;droit_barreau_magistrature&quot;,label:&quot;Droit - barreau - Magistrature&quot;},{value:&quot;journalisme_communication&quot;,label:&quot;Journalisme et Communication&quot;},{value:&quot;gestion_finances_comptabilite&quot;,label:&quot;Gestion - Finances &amp; Comptabilité&quot;},{value:&quot;theologie_etudes_pastorales&quot;,label:&quot;Théologie &amp; Etudes pastorales&quot;},{value:&quot;sciences_sociales&quot;,label:&quot;Sciences sociales&quot;},{value:&quot;mathematiques_physique_chimie&quot;,label:&quot;Mathématiques - Physique - Chimie&quot;},{value:&quot;administration_commerce_marketing&quot;,label:&quot;Administration - Commerce - Marketing&quot;},{value:&quot;agriculture&quot;,label:&quot;Agriculture&quot;},{value:&quot;travaux_publiques_architecture_ingenierie&quot;,label:&quot;Travaux publics - Architecture - Ingénierie&quot;},{value:&quot;sciences_politiques&quot;,label:&quot;Sciences politiques&quot;},{value:&quot;humanitaire&quot;,label:&quot;Humanitaire&quot;},{value:&quot;autre&quot;,label:&quot;Autre&quot;}],S4=[{value:&quot;ordinateur_sessions_en_ligne&quot;,label:&quot;J&#039;aurai à ma disposition un ordinateur pour suivre les sessions en ligne (phase 1)&quot;},{value:&quot;bon_debit_internet&quot;,label:&quot;Je prendrai toutes les dispositions pour avoir accès à un bon débit d&#039;internet pour toutes les sessions en ligne&quot;},{value:&quot;present_sessions&quot;,label:&quot;Je serai présent à toutes les sessions en ligne et en présentiel&quot;},{value:&quot;payer_frais_350k&quot;,label:&quot;Je m&#039;engage à payer les frais de participation de 350.000 F.CFA / 534 € dans les délais requis&quot;},{value:&quot;autre&quot;,label:&quot;Autre&quot;}],C4=[{value:&quot;musulmane&quot;,label:&quot;Musulmane&quot;},{value:&quot;catholique&quot;,label:&quot;Catholique&quot;},{value:&quot;protestante&quot;,label:&quot;Protestante&quot;},{value:&quot;pentecotiste&quot;,label:&quot;Pentecôtiste&quot;},{value:&quot;evangelique&quot;,label:&quot;Évangélique&quot;},{value:&quot;autre&quot;,label:&quot;Autre&quot;}];function E$(e){if(!e?.trim())return null;const r=new Date(`${e.trim()}T12:00:00`);if(Number.isNaN(r.getTime()))return null;const t=new Date;let n=t.getFullYear()-r.getFullYear();const o=t.getMonth()-r.getMonth();return(o&lt;0||o===0&amp;&amp;t.getDate()&lt;r.getDate())&amp;&amp;(n-=1),n&lt;0||n&gt;120?null:n}function E4(){return i.jsxs(&quot;div&quot;,{className:&quot;mb-6&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-3 text-center uppercase&quot;,children:&quot;Frais de participation&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 text-center leading-relaxed max-w-2xl mx-auto&quot;,children:&quot;Les frais de participation s&#039;élèvent à 350 000 FCFA. Ils contribuent aux frais du séjour à l&#039;hôtel et aux frais liés à la formation. Une fois votre candidature acceptée, le paiement de ces frais est nécessaire pour valider votre inscription.&quot;})]})}function A$({preselectedEvents:e,onSuccess:r,onConflict:t,onError:n,onFormLayoutChange:o}){const s=()=&gt;p.selectedEvents.length===0?1:p.selectedEvents.length===1?2:p.selectedEvents.length===2?3:p.selectedEvents.length===3?4:1,[l,u]=O.useState(1),[c,a]=O.useState(!1),[d,f]=O.useState({}),[h,m]=O.useState(!1);O.useEffect(()=&gt;{window.scrollTo({top:0,behavior:&quot;smooth&quot;})},[l]);const[p,x]=O.useState({selectedEvents:e&amp;&amp;e.length&gt;0?[...e]:[],first_name:&quot;&quot;,last_name:&quot;&quot;,email:&quot;&quot;,phone:&quot;&quot;,country:&quot;&quot;,city:&quot;&quot;,organization:&quot;&quot;,position:&quot;&quot;,nationality:&quot;&quot;,participated_haggai_seminar:&quot;&quot;,hle_vhle_number:&quot;&quot;,payment_method_selected:&quot;mobile_money&quot;,installment_method:void 0,installment_count:1,installment_months:[&quot;&quot;],package_code:&quot;&quot;,spouse_fullname:&quot;&quot;,spouse_email:&quot;&quot;,spouse_haggai_id:&quot;&quot;,ouaga_resident_confirmed:!1,seminar_intent:&quot;&quot;,seminar_want_to_participate:&quot;oui&quot;,seminar_church_organization:&quot;&quot;,seminar_role_ministry:&quot;&quot;,seminar_marital_status:&quot;&quot;,seminar_gender:&quot;&quot;,seminar_question_or_concern:&quot;&quot;,recommended_contacted_before:&quot;&quot;,recommended_first_name:&quot;&quot;,recommended_last_name:&quot;&quot;,recommended_profession:&quot;&quot;,recommended_residence_country:&quot;&quot;,recommended_phone_whatsapp:&quot;&quot;,recommended_email:&quot;&quot;,recommended_gender:&quot;&quot;,seminar_date_naissance:&quot;&quot;,seminar_contact_urgence_nom_lien:&quot;&quot;,seminar_niveau_etudes:&quot;&quot;,seminar_domaines_etude:[],seminar_domaine_etude_autre:&quot;&quot;,seminar_niveau_francais:&quot;&quot;,seminar_besoin_lettre_absence:&quot;&quot;,seminar_besoin_lettre_details:&quot;&quot;,seminar_sante_details:&quot;&quot;,seminar_regime_sans_sel:&quot;&quot;,seminar_confession_religieuse:&quot;&quot;,seminar_confession_religieuse_autre:&quot;&quot;,seminar_fardeau_transformation:&quot;&quot;,seminar_recommande_par:&quot;&quot;,seminar_engagements:[],seminar_engagements_autre:&quot;&quot;});O.useEffect(()=&gt;{m(p.package_code===&quot;A&quot;)},[p.package_code]),O.useEffect(()=&gt;{p.selectedEvents.includes(&quot;seminar&quot;)&amp;&amp;x(te=&gt;te.seminar_want_to_participate===&quot;oui&quot;?te:{...te,seminar_want_to_participate:&quot;oui&quot;})},[p.selectedEvents]),O.useEffect(()=&gt;{o?.({step:l,selectedEvents:p.selectedEvents})},[l,p.selectedEvents,o]);const g=p.selectedEvents.includes(&quot;summit&quot;)?N4:null,{plans:y,loading:v}=m2(g),_=35e4,S=()=&gt;{if(!p.package_code||!y.length)return null;const te=y.find(ie=&gt;ie.code===p.package_code);return te?te.price_xof:null},A=(te,ie)=&gt;`${te.toLocaleString(&quot;fr-FR&quot;)} FCFA`,I=()=&gt;{if(!(p.selectedEvents.includes(&quot;summit&quot;)&amp;&amp;p.selectedEvents.includes(&quot;seminar&quot;)))return null;const ie=S();if(ie===null)return null;const de=ie+_;return{total:de,currency:&quot;XOF&quot;,formatted:A(de)}},V=()=&gt;[{value:&quot;2026-02&quot;,label:&quot;Février 2026&quot;},{value:&quot;2026-03&quot;,label:&quot;Mars 2026&quot;},{value:&quot;2026-04&quot;,label:&quot;Avril 2026&quot;},{value:&quot;2026-05&quot;,label:&quot;Mai 2026&quot;},{value:&quot;2026-06&quot;,label:&quot;Juin 2026&quot;},{value:&quot;2026-07&quot;,label:&quot;Juillet 2026&quot;},{value:&quot;2026-08&quot;,label:&quot;Août 2026&quot;}],F=te=&gt;{for(const se of te){if(!se)continue;const[fe,le]=se.split(&quot;-&quot;).map(Number);if(le&lt;2||le&gt;8||fe&gt;2026||fe===2026&amp;&amp;le&gt;9)return!1}return!0},q=te=&gt;{const ie=[...p.installment_months];te===1?B(&quot;installment_months&quot;,[ie[0]||&quot;&quot;]):te===2?B(&quot;installment_months&quot;,[ie[0]||&quot;&quot;,ie[1]||&quot;&quot;]):B(&quot;installment_months&quot;,[ie[0]||&quot;&quot;,ie[1]||&quot;&quot;,ie[2]||&quot;&quot;]),B(&quot;installment_count&quot;,te)},H=(te,ie)=&gt;{const de=[...p.installment_months];de[te]=ie,B(&quot;installment_months&quot;,de)},B=(te,ie)=&gt;{x(de=&gt;({...de,[te]:ie})),d[te]&amp;&amp;f(de=&gt;{const ce={...de};return delete ce[te],ce})},K=te=&gt;{x(ie=&gt;({...ie,seminar_confession_religieuse:te,seminar_confession_religieuse_autre:te===&quot;autre&quot;?ie.seminar_confession_religieuse_autre:&quot;&quot;})),f(ie=&gt;{const de={...ie};return delete de.seminar_confession_religieuse,delete de.seminar_confession_religieuse_autre,de})},T=te=&gt;{x(ie=&gt;{const de=ie.seminar_domaines_etude||[],ce=de.includes(te)?de.filter(se=&gt;se!==te):[...de,te];return{...ie,seminar_domaines_etude:ce}}),f(ie=&gt;{const de={...ie};return delete de.seminar_domaines_etude,delete de.seminar_domaine_etude_autre,de})},L=te=&gt;{x(ie=&gt;{const de=ie.seminar_engagements||[],ce=de.includes(te)?de.filter(se=&gt;se!==te):[...de,te];return{...ie,seminar_engagements:ce}}),f(ie=&gt;{const de={...ie};return delete de.seminar_engagements,delete de.seminar_engagements_autre,de})},E=te=&gt;{const ie=tm.find(de=&gt;de.name===te);if(B(&quot;country&quot;,te),ie&amp;&amp;ie.dialCode!==&quot;+&quot;){const de=p.phone.trim(),ce=ie.dialCode+&quot; &quot;;if(!de||de===&quot;&quot;){B(&quot;phone&quot;,ce);return}const se=tm.find(fe=&gt;fe.dialCode!==&quot;+&quot;&amp;&amp;(de.startsWith(fe.dialCode)||de.startsWith(fe.dialCode+&quot; &quot;)));if(se){let fe=de;fe.startsWith(se.dialCode+&quot; &quot;)?fe=fe.substring(se.dialCode.length+1):fe.startsWith(se.dialCode)&amp;&amp;(fe=fe.substring(se.dialCode.length)),fe=fe.trim(),B(&quot;phone&quot;,ce+fe)}else if(!de.startsWith(&quot;+&quot;))B(&quot;phone&quot;,ce+de);else if(de.match(/^\+\s*(\d+)/)){const le=de.replace(/^\+\s*/,&quot;&quot;).trim();B(&quot;phone&quot;,ce+le)}else B(&quot;phone&quot;,ce)}},j=te=&gt;{const ie=te.trim(),de=tm.find(ce=&gt;ce.name===p.country);if(de&amp;&amp;de.dialCode!==&quot;+&quot;&amp;&amp;ie.startsWith(de.dialCode)&amp;&amp;ie.length&gt;de.dialCode.length){const ce=ie.substring(de.dialCode.length);if(ce&amp;&amp;!ce.startsWith(&quot; &quot;)){B(&quot;phone&quot;,de.dialCode+&quot; &quot;+ce);return}}B(&quot;phone&quot;,te)},k=te=&gt;{x(ie=&gt;({...ie,selectedEvents:[te]})),d.selectedEvents&amp;&amp;f(ie=&gt;{const de={...ie};return delete de.selectedEvents,de})},N=()=&gt;p.selectedEvents.length===0?(f({selectedEvents:[&quot;Veuillez choisir une option&quot;]}),!1):!0,C=()=&gt;{const te={};p.first_name.trim()||(te.first_name=[&quot;Le prénom est requis&quot;]),p.last_name.trim()||(te.last_name=[&quot;Le nom est requis&quot;]),p.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p.email)||(te.email=[&quot;Format d&#039;email invalide&quot;]):te.email=[&quot;L&#039;email est requis&quot;],p.phone.trim()||(te.phone=[&quot;Le téléphone est requis&quot;]);const ie=p.selectedEvents.includes(&quot;seminar&quot;);return p.country.trim()||(te.country=[ie?&quot;Le pays de résidence est requis&quot;:&quot;Le pays est requis&quot;]),f(te),Object.keys(te).length===0},P=()=&gt;{const te={};return p.package_code||(te.package_code=[&quot;Veuillez sélectionner une formule pour le Sommet&quot;]),p.package_code===&quot;A&quot;&amp;&amp;!p.ouaga_resident_confirmed&amp;&amp;(te.ouaga_resident_confirmed=[&quot;Champ requis : veuillez cocher cette case pour confirmer que vous êtes résident de Ouagadougou (Formule A).&quot;]),p.package_code===&quot;D&quot;&amp;&amp;!p.spouse_fullname.trim()&amp;&amp;(te.spouse_fullname=[&quot;Le nom du conjoint est requis pour la formule D&quot;]),p.participated_haggai_seminar!==&quot;oui&quot;&amp;&amp;p.participated_haggai_seminar!==&quot;non&quot;&amp;&amp;(te.participated_haggai_seminar=[&quot;Veuillez indiquer si vous avez déjà participé à un séminaire Haggai (International, Régional ou National).&quot;]),p.participated_haggai_seminar===&quot;oui&quot;&amp;&amp;!p.hle_vhle_number.trim()&amp;&amp;(te.hle_vhle_number=[&quot;Le HAGGAI ID ou l&#039;année du séminaire est requis lorsque vous avez déjà participé à un séminaire Haggai.&quot;]),f(te),Object.keys(te).length===0},D=()=&gt;{const te={};return p.seminar_church_organization.trim()||(te.seminar_church_organization=[&quot;L&#039;église ou organisation est requise&quot;]),p.seminar_role_ministry.trim()||(te.seminar_role_ministry=[&quot;Le rôle dans le ministère est requis&quot;]),p.seminar_marital_status||(te.seminar_marital_status=[&quot;La situation matrimoniale est requise&quot;]),p.seminar_gender||(te.seminar_gender=[&quot;Le genre est requis&quot;]),p.seminar_question_or_concern.trim()||(te.seminar_question_or_concern=[&quot;La question ou préoccupation est requise&quot;]),p.seminar_date_naissance?.trim()||(te.seminar_date_naissance=[&quot;La date de naissance est requise&quot;]),p.seminar_contact_urgence_nom_lien.trim()||(te.seminar_contact_urgence_nom_lien=[&quot;Le contact d&#039;urgence (nom et lien) est requis&quot;]),p.seminar_niveau_etudes||(te.seminar_niveau_etudes=[&quot;Le niveau d&#039;études est requis&quot;]),!p.seminar_domaines_etude?.length&amp;&amp;!p.seminar_domaine_etude_autre?.trim()&amp;&amp;(te.seminar_domaines_etude=[&quot;Sélectionnez au moins un domaine d&#039;étude ou précisez dans « Autre »&quot;]),p.seminar_niveau_francais||(te.seminar_niveau_francais=[&quot;Le niveau de français est requis&quot;]),p.seminar_besoin_lettre_absence||(te.seminar_besoin_lettre_absence=[&quot;Indiquez si vous avez besoin d&#039;une lettre d&#039;absence&quot;]),p.seminar_besoin_lettre_absence===&quot;oui&quot;&amp;&amp;!p.seminar_besoin_lettre_details?.trim()&amp;&amp;(te.seminar_besoin_lettre_details=[&quot;Les détails pour la lettre d&#039;absence sont requis&quot;]),p.seminar_sante_details?.trim()||(te.seminar_sante_details=[&quot;Les informations de santé sont requises (indiquez « Aucun » si applicable)&quot;]),p.seminar_regime_sans_sel||(te.seminar_regime_sans_sel=[&quot;Indiquez si vous suivez un régime sans sel&quot;]),p.seminar_confession_religieuse||(te.seminar_confession_religieuse=[&quot;La confession religieuse est requise&quot;]),p.seminar_confession_religieuse===&quot;autre&quot;&amp;&amp;!p.seminar_confession_religieuse_autre?.trim()&amp;&amp;(te.seminar_confession_religieuse_autre=[&quot;Veuillez préciser votre confession religieuse&quot;]),p.seminar_fardeau_transformation?.trim()||(te.seminar_fardeau_transformation=[&quot;Veuillez indiquer vos attentes&quot;]),p.seminar_recommande_par?.trim()||(te.seminar_recommande_par=[&quot;Indiquez par qui vous êtes recommandé(e)&quot;]),!p.seminar_engagements?.length&amp;&amp;!p.seminar_engagements_autre?.trim()&amp;&amp;(te.seminar_engagements=[&quot;Sélectionnez au moins un engagement ou précisez dans « Autre »&quot;]),f(te),Object.keys(te).length===0},z=()=&gt;{const te={};for(let de=0;de&lt;p.installment_count;de++)(!p.installment_months[de]||!p.installment_months[de].trim())&amp;&amp;(te[`installment_month_${de}`]=[`L&#039;échéance ${de+1} est requise`]);const ie=p.installment_months.filter(de=&gt;de&amp;&amp;de.trim());return ie.length&gt;0&amp;&amp;!F(ie)&amp;&amp;(te.installment_months=[&quot;Toutes les échéances doivent être au plus tard 2 mois avant l&#039;événement (août 2026 au plus tard)&quot;]),f(te),Object.keys(te).length===0},Y=()=&gt;!(!p.first_name.trim()||!p.last_name.trim()||!p.email.trim()||!p.phone.trim()||!p.country.trim()||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p.email)||!p.recommended_first_name.trim()||!p.recommended_last_name.trim()||!p.recommended_profession.trim()||!p.recommended_residence_country.trim()||!p.recommended_phone_whatsapp.trim()||!p.recommended_email.trim()||!p.recommended_gender||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p.recommended_email)),Z=()=&gt;{if(!p.first_name.trim()||!p.last_name.trim()||!p.email.trim()||!p.phone.trim()||!p.country.trim()||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p.email))return!1;const te=p.selectedEvents.includes(&quot;summit&quot;);return!(te&amp;&amp;!p.package_code||te&amp;&amp;p.package_code===&quot;A&quot;&amp;&amp;!p.ouaga_resident_confirmed||te&amp;&amp;p.package_code===&quot;D&quot;&amp;&amp;!p.spouse_fullname.trim()||te&amp;&amp;p.participated_haggai_seminar!==&quot;oui&quot;&amp;&amp;p.participated_haggai_seminar!==&quot;non&quot;||te&amp;&amp;p.participated_haggai_seminar===&quot;oui&quot;&amp;&amp;!p.hle_vhle_number.trim())},ne=()=&gt;{const te={};return p.recommended_first_name.trim()||(te.recommended_first_name=[&quot;Le prénom de la personne recommandée est requis&quot;]),p.recommended_last_name.trim()||(te.recommended_last_name=[&quot;Le nom de la personne recommandée est requis&quot;]),p.recommended_profession.trim()||(te.recommended_profession=[&quot;La profession est requise&quot;]),p.recommended_residence_country.trim()||(te.recommended_residence_country=[&quot;Le pays de résidence est requis&quot;]),p.recommended_phone_whatsapp.trim()||(te.recommended_phone_whatsapp=[&quot;Le téléphone WhatsApp est requis&quot;]),p.recommended_email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p.recommended_email)||(te.recommended_email=[&quot;Format d&#039;email invalide&quot;]):te.recommended_email=[&quot;L&#039;email de la personne recommandée est requis&quot;],p.recommended_gender||(te.recommended_gender=[&quot;Le genre de la personne recommandée est requis&quot;]),f(te),Object.keys(te).length===0},U=()=&gt;{N()&amp;&amp;u(2)},J=()=&gt;{const te=s();if(!C())return;const ie=p.selectedEvents.includes(&quot;summit&quot;),de=p.selectedEvents.includes(&quot;seminar&quot;),ce=p.selectedEvents.includes(&quot;recommend&quot;),se=ce&amp;&amp;!ie&amp;&amp;!de?!0:z();te===4?P()&amp;&amp;se&amp;&amp;u(3):te===3?ie&amp;&amp;de||ie&amp;&amp;ce?P()&amp;&amp;se&amp;&amp;u(3):de&amp;&amp;ce&amp;&amp;D()&amp;&amp;se&amp;&amp;u(3):te===2&amp;&amp;(ie?P()&amp;&amp;se&amp;&amp;re():de?D()&amp;&amp;se&amp;&amp;re():ce&amp;&amp;ne()&amp;&amp;re())},$=()=&gt;{u(1)},R=()=&gt;{u(2)},X=()=&gt;{const te=s();if(!C())return;const ie=p.selectedEvents.includes(&quot;summit&quot;),de=p.selectedEvents.includes(&quot;seminar&quot;),ce=p.selectedEvents.includes(&quot;recommend&quot;);te===4?D()&amp;&amp;u(4):te===3&amp;&amp;(ie&amp;&amp;de?P()&amp;&amp;D()&amp;&amp;re():ie&amp;&amp;ce?P()&amp;&amp;ne()&amp;&amp;re():de&amp;&amp;ce&amp;&amp;ne()&amp;&amp;re())},re=async te=&gt;{const ie=p.selectedEvents.includes(&quot;summit&quot;),de=p.selectedEvents.includes(&quot;seminar&quot;),ce=p.selectedEvents.includes(&quot;recommend&quot;),se=ce&amp;&amp;p.selectedEvents.length===1;if(C()&amp;&amp;!(ie&amp;&amp;!P())&amp;&amp;!(de&amp;&amp;!D())&amp;&amp;!(se&amp;&amp;!ne())&amp;&amp;!(!se&amp;&amp;!z())){a(!0),f({});try{const fe=[],le=[],ge=[],xe=[];if(se)try{const pe={website:&quot;&quot;,event:Qx,recommender_first_name:p.first_name.trim(),recommender_last_name:p.last_name.trim(),recommender_email:p.email.trim().toLowerCase(),recommender_phone:p.phone.trim(),recommender_country:p.country.trim()||void 0,recommended_full_name:[p.recommended_first_name.trim(),p.recommended_last_name.trim()].filter(Boolean).join(&quot; &quot;),recommended_profession:p.recommended_profession.trim(),recommended_residence_country:p.recommended_residence_country.trim(),recommended_phone_whatsapp:p.recommended_phone_whatsapp.trim(),recommended_email:p.recommended_email.trim()?p.recommended_email.trim().toLowerCase():void 0,recommended_gender:p.recommended_gender,...p.recommended_contacted_before===&quot;oui&quot;||p.recommended_contacted_before===&quot;non&quot;?{recommender_contacted_person:p.recommended_contacted_before}:{}},ue=await w4.create(pe);le.push(ue.recommendation_id),r&amp;&amp;r({id:ue.recommendation_id,type:&quot;recommendation&quot;}),a(!1);return}catch(pe){if(pe instanceof kt)if(pe.status===422){const ue=pe.data.errors||{};f(ue),ge.push(&quot;Erreurs de validation pour la recommandation.&quot;)}else ge.push(`Erreur lors de la création de la recommandation: ${pe.data.message||&quot;Une erreur est survenue.&quot;}`);else ge.push(&quot;Erreur inattendue lors de la création de la recommandation.&quot;);ge.length&gt;0&amp;&amp;n&amp;&amp;n(ge.join(&quot; &quot;)),a(!1);return}for(const pe of p.selectedEvents){if(pe===&quot;recommend&quot;)continue;const ue=pe===&quot;summit&quot;?N4:Qx;let we=0;if(pe===&quot;summit&quot;){if(!p.package_code){ge.push(&quot;Veuillez sélectionner une formule pour le Sommet&quot;);continue}if(v){ge.push(&quot;Chargement des formules du Sommet en cours...&quot;);continue}if(y.length===0){ge.push(&quot;Aucune formule disponible pour le Sommet. Veuillez réessayer.&quot;);continue}const De=y.find(Le=&gt;Le.code===p.package_code);if(!De){ge.push(&quot;La formule sélectionnée n&#039;existe pas pour le Sommet&quot;);continue}we=De.id}else pe===&quot;seminar&quot;&amp;&amp;(we=0);const ke={website:&quot;&quot;,...pe===&quot;summit&quot;&amp;&amp;{pricing_plan_id:we},first_name:p.first_name.trim(),last_name:p.last_name.trim(),email:p.email.trim().toLowerCase(),phone:p.phone.trim(),country:p.country.trim(),city:p.city.trim()||void 0,organization:p.organization.trim()||void 0,position:p.position.trim()||void 0,nationality:p.nationality.trim()||void 0,is_haggai_leader:p.participated_haggai_seminar===&quot;oui&quot;,haggai_id:p.participated_haggai_seminar===&quot;oui&quot;&amp;&amp;p.hle_vhle_number.trim()||void 0,payment_method_selected:p.payment_method_selected};if(p.installment_months.some(De=&gt;De&amp;&amp;De.trim())&amp;&amp;(ke.installment_config={method:p.payment_method_selected,number_of_installments:p.installment_count,installments:p.installment_months.filter(De=&gt;De&amp;&amp;De.trim()).map(De=&gt;({month:De.trim()}))}),pe===&quot;summit&quot;&amp;&amp;(ke.ouaga_resident_confirmed=p.ouaga_resident_confirmed||!1,p.package_code===&quot;D&quot;&amp;&amp;p.spouse_fullname.trim()&amp;&amp;(ke.spouse_fullname=p.spouse_fullname.trim()),p.package_code===&quot;D&quot;&amp;&amp;p.spouse_email?.trim()&amp;&amp;(ke.spouse_email=p.spouse_email.trim().toLowerCase()),p.package_code===&quot;D&quot;&amp;&amp;p.spouse_haggai_id?.trim()&amp;&amp;(ke.spouse_haggai_id=p.spouse_haggai_id.trim())),pe===&quot;seminar&quot;){let De=&quot;participate&quot;;p.selectedEvents.includes(&quot;seminar&quot;)||(De=&quot;na&quot;),ke.seminar_intent=De,ke.seminar_want_to_participate=&quot;oui&quot;,ke.seminar_marital_status=p.seminar_marital_status&amp;&amp;(p.seminar_marital_status===&quot;marie&quot;||p.seminar_marital_status===&quot;non_marie&quot;)?p.seminar_marital_status:&quot;non_marie&quot;;const Le=E$(p.seminar_date_naissance??&quot;&quot;);ke.seminar_age=Le!=null&amp;&amp;Le&gt;=1?Le&gt;120?120:Le:25,ke.seminar_gender=p.seminar_gender&amp;&amp;(p.seminar_gender===&quot;homme&quot;||p.seminar_gender===&quot;femme&quot;)?p.seminar_gender:&quot;homme&quot;,ke.seminar_church_organization=p.seminar_church_organization.trim(),ke.seminar_role_ministry=p.seminar_role_ministry.trim(),ke.seminar_question_or_concern=p.seminar_question_or_concern.trim(),ke.seminar_date_naissance=p.seminar_date_naissance?.trim()||void 0,ke.seminar_contact_urgence_nom_lien=p.seminar_contact_urgence_nom_lien?.trim()||void 0,ke.seminar_niveau_etudes=p.seminar_niveau_etudes&amp;&amp;[&quot;primaire&quot;,&quot;secondaire_2&quot;,&quot;universitaire&quot;].includes(p.seminar_niveau_etudes)?p.seminar_niveau_etudes:void 0,ke.seminar_domaines_etude=p.seminar_domaines_etude?.length?p.seminar_domaines_etude:void 0,ke.seminar_domaine_etude_autre=p.seminar_domaine_etude_autre?.trim()||void 0,ke.seminar_niveau_francais=p.seminar_niveau_francais&amp;&amp;[&quot;natif&quot;,&quot;avance&quot;,&quot;intermediaire&quot;,&quot;faible&quot;].includes(p.seminar_niveau_francais)?p.seminar_niveau_francais:void 0,ke.seminar_besoin_lettre_absence=p.seminar_besoin_lettre_absence===&quot;oui&quot;||p.seminar_besoin_lettre_absence===&quot;non&quot;?p.seminar_besoin_lettre_absence:void 0,ke.seminar_besoin_lettre_details=p.seminar_besoin_lettre_details?.trim()||void 0,ke.seminar_sante_details=p.seminar_sante_details?.trim()||void 0,ke.seminar_regime_sans_sel=p.seminar_regime_sans_sel===&quot;oui&quot;||p.seminar_regime_sans_sel===&quot;non&quot;?p.seminar_regime_sans_sel:void 0,ke.seminar_confession_religieuse=p.seminar_confession_religieuse&amp;&amp;[&quot;musulmane&quot;,&quot;catholique&quot;,&quot;protestante&quot;,&quot;pentecotiste&quot;,&quot;evangelique&quot;,&quot;autre&quot;].includes(p.seminar_confession_religieuse)?p.seminar_confession_religieuse:void 0,p.seminar_confession_religieuse===&quot;autre&quot;&amp;&amp;(ke.seminar_confession_religieuse_autre=p.seminar_confession_religieuse_autre.trim()||void 0),ke.seminar_fardeau_transformation=p.seminar_fardeau_transformation?.trim()||void 0,ke.seminar_recommande_par=p.seminar_recommande_par?.trim()||void 0,ke.seminar_engagements=p.seminar_engagements?.length?p.seminar_engagements:void 0,ke.seminar_engagements_autre=p.seminar_engagements_autre?.trim()||void 0}try{const De=await f2.create(ue,ke);De&amp;&amp;De.registration_id?fe.push(De.registration_id):(console.error(&quot;Réponse invalide pour&quot;,pe,De),ge.push(`Réponse invalide lors de l&#039;inscription à ${pe===&quot;summit&quot;?&quot;le Sommet&quot;:&quot;le Séminaire&quot;}.`))}catch(De){if(console.error(&quot;Erreur lors de l&#039;inscription à&quot;,pe,De),De instanceof kt)if(De.status===409){const Le=De.data;Le?.existing_registration_id?xe.push({eventType:pe===&quot;summit&quot;?&quot;Sommet&quot;:&quot;Séminaire&quot;,existingId:Le.existing_registration_id}):ge.push(`Erreur lors de l&#039;inscription à ${pe===&quot;summit&quot;?&quot;le Sommet&quot;:&quot;le Séminaire&quot;}: ${De.data.message||&quot;Une erreur est survenue.&quot;}`)}else if(De.status===422){const Le=De.data?.errors||{};Object.keys(Le).length&gt;0&amp;&amp;console.error(&quot;Validation 422 (inscription)&quot;,Le);const ze=[],Oe={};Object.keys(Le).forEach(Ve=&gt;{const Qe=Array.isArray(Le[Ve])?Le[Ve]:[Le[Ve]];Qe.forEach(Ze=&gt;ze.push(Ze)),Oe[`${Ve}_${pe}`]=Qe,pe===&quot;summit&quot;&amp;&amp;Ve===&quot;pricing_plan_id&quot;&amp;&amp;(Oe.package_code=Qe),Ve===&quot;payment_method_selected&quot;&amp;&amp;(Oe.payment_method_selected=Qe),Ve===&quot;ouaga_resident_confirmed&quot;&amp;&amp;(Oe.ouaga_resident_confirmed=Qe),Ve===&quot;spouse_fullname&quot;&amp;&amp;(Oe.spouse_fullname=Qe)}),ze.length&gt;0&amp;&amp;(Oe._general=ze),f(Ve=&gt;({...Ve,...Oe})),ge.push(`Erreurs de validation pour ${pe===&quot;summit&quot;?&quot;le Sommet&quot;:&quot;le Séminaire&quot;}.`)}else De.status===404?ge.push(`Les inscriptions publiques ne sont pas disponibles pour ${pe===&quot;summit&quot;?&quot;le Sommet&quot;:&quot;le Séminaire&quot;}.`):ge.push(`Erreur lors de l&#039;inscription à ${pe===&quot;summit&quot;?&quot;le Sommet&quot;:&quot;le Séminaire&quot;}: ${De.data.message||&quot;Une erreur est survenue.&quot;}`);else ge.push(`Erreur inattendue lors de l&#039;inscription à ${pe===&quot;summit&quot;?&quot;le Sommet&quot;:&quot;le Séminaire&quot;}.`)}}if(ce&amp;&amp;!se)try{const pe={website:&quot;&quot;,event:Qx,recommender_first_name:p.first_name.trim(),recommender_last_name:p.last_name.trim(),recommender_email:p.email.trim().toLowerCase(),recommender_phone:p.phone.trim(),recommender_country:p.country.trim()||void 0,recommended_full_name:[p.recommended_first_name.trim(),p.recommended_last_name.trim()].filter(Boolean).join(&quot; &quot;),recommended_profession:p.recommended_profession.trim(),recommended_residence_country:p.recommended_residence_country.trim(),recommended_phone_whatsapp:p.recommended_phone_whatsapp.trim(),recommended_email:p.recommended_email.trim()?p.recommended_email.trim().toLowerCase():void 0,recommended_gender:p.recommended_gender,...p.recommended_contacted_before===&quot;oui&quot;||p.recommended_contacted_before===&quot;non&quot;?{recommender_contacted_person:p.recommended_contacted_before}:{}},ue=await w4.create(pe);le.push(ue.recommendation_id)}catch(pe){if(pe instanceof kt)if(pe.status===422){const ue=pe.data.errors||{};f(we=&gt;({...we,...ue})),ge.push(&quot;Erreurs de validation pour la recommandation.&quot;)}else ge.push(`Erreur lors de la création de la recommandation: ${pe.data.message||&quot;Une erreur est survenue.&quot;}`);else ge.push(&quot;Erreur inattendue lors de la création de la recommandation.&quot;)}if(fe.length&gt;0||le.length&gt;0){if(r&amp;&amp;(fe.length&gt;0?r({id:fe[0],type:&quot;registration&quot;}):le.length&gt;0&amp;&amp;r({id:le[0],type:&quot;recommendation&quot;})),xe.length&gt;0&amp;&amp;t&amp;&amp;t(xe[0].existingId),ge.length&gt;0&amp;&amp;n){const pe=ge.join(&quot; &quot;),ue=xe.length&gt;0?` Note: ${xe.length} inscription(s) existante(s) détectée(s) pour ${xe.map(we=&gt;we.eventType).join(&quot; et &quot;)}.`:&quot;&quot;;n(`Inscription(s) et/ou recommandation(s) créée(s) avec succès, mais certaines erreurs sont survenues: ${pe}${ue}`)}else if(xe.length&gt;0&amp;&amp;!t){const pe=`${xe.length} inscription(s) existante(s) détectée(s) pour ${xe.map(ue=&gt;ue.eventType).join(&quot; et &quot;)}.`;n&amp;&amp;n(pe)}}else if(xe.length&gt;0&amp;&amp;ge.length===0){const pe=xe.map(we=&gt;`${we.eventType} (ID: ${we.existingId})`).join(&quot; et &quot;),ue=`Vous avez déjà une inscription pour ${xe.length&gt;1?&quot;les événements suivants&quot;:&quot;cet événement&quot;}: ${pe}.`;f({_general:[ue]}),t?t(xe[0].existingId):n&amp;&amp;n(ue)}else if(ge.length&gt;0){if(f(pe=&gt;Object.keys(pe).some(we=&gt;we!==&quot;_general&quot;&amp;&amp;Array.isArray(pe[we])&amp;&amp;pe[we].length&gt;0)&amp;&amp;pe._general&amp;&amp;pe._general.length&gt;0?pe:{...pe,_general:ge}),n){const pe=xe.length&gt;0?` Note: ${xe.length} inscription(s) existante(s) détectée(s) pour ${xe.map(ue=&gt;ue.eventType).join(&quot; et &quot;)}.`:&quot;&quot;;n(ge.join(&quot; &quot;)+pe)}}else f({_general:[&quot;Aucune inscription ni recommandation n&#039;a pu être créée.&quot;]}),n&amp;&amp;n(&quot;Aucune inscription ni recommandation n&#039;a pu être créée.&quot;)}catch{f({_general:[&quot;Une erreur inattendue est survenue.&quot;]}),n&amp;&amp;n(&quot;Une erreur inattendue est survenue.&quot;)}finally{a(!1)}}},Q=te=&gt;{const ie=d[te];return ie&amp;&amp;ie.length&gt;0?ie[0]:void 0};if(c)return i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col items-center justify-center min-h-[320px] w-full py-16 px-6 bg-white rounded-xl border border-gray-200 shadow-soft&quot;,children:[i.jsx(uB,{className:&quot;w-14 h-14 text-brand-600 animate-spin mb-6&quot;,&quot;aria-hidden&quot;:!0}),i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-semibold text-ink-900 mb-2 text-center&quot;,children:&quot;Soumission en cours…&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-600 text-center max-w-md&quot;,children:&quot;Enregistrement de votre inscription ou recommandation et envoi des notifications par email. Merci de ne pas quitter cette page.&quot;})]});if(l===1){const te=e?.length===1?e[0]:null,ie=!te||te===&quot;summit&quot;,de=!te||te===&quot;seminar&quot;,ce=!te||te===&quot;recommend&quot;;return i.jsxs(&quot;div&quot;,{className:&quot;space-y-6&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-4 text-center&quot;,children:&quot;Quel est votre choix ? (une seule option possible)&quot;}),i.jsx(&quot;div&quot;,{className:te?&quot;max-w-sm mx-auto&quot;:&quot;&quot;,children:i.jsxs(&quot;div&quot;,{className:`grid gap-6 mb-6 items-stretch ${te?&quot;grid-cols-1&quot;:&quot;grid-cols-1 md:grid-cols-3&quot;}`,children:[ie&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col h-full&quot;,children:[i.jsxs(&quot;div&quot;,{onClick:()=&gt;k(&quot;summit&quot;),className:`bg-white rounded-xl shadow-soft overflow-hidden border transition-all flex flex-col flex-1 cursor-pointer ${p.selectedEvents.includes(&quot;summit&quot;)?&quot;border-brand-700 border-2 shadow-lg&quot;:&quot;border-gray-200 hover:shadow-lg&quot;}`,children:[i.jsx(&quot;div&quot;,{className:&quot;relative h-48 overflow-hidden bg-gray-100 flex-shrink-0&quot;,children:i.jsx(&quot;img&quot;,{src:&quot;/sommet1.webp&quot;,alt:&quot;Sommet Francophone&quot;,className:&quot;w-full h-full object-cover&quot;})}),i.jsx(&quot;div&quot;,{className:&quot;p-4 text-center flex-1 flex items-center justify-center&quot;,children:i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900&quot;,children:&quot;Sommet Francophone&quot;})})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center justify-center space-x-2 cursor-pointer mt-4 p-2 rounded-lg hover:bg-gray-50 transition-colors h-12&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;selectedEvent&quot;,value:&quot;summit&quot;,checked:p.selectedEvents.includes(&quot;summit&quot;),onChange:()=&gt;k(&quot;summit&quot;),className:&quot;w-5 h-5 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-ink-500 font-light text-sm&quot;,children:&quot;Choisir&quot;})]})]}),de&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col h-full&quot;,children:[i.jsxs(&quot;div&quot;,{onClick:()=&gt;k(&quot;seminar&quot;),className:`bg-white rounded-xl shadow-soft overflow-hidden border transition-all flex flex-col flex-1 cursor-pointer ${p.selectedEvents.includes(&quot;seminar&quot;)?&quot;border-brand-700 border-2 shadow-lg&quot;:&quot;border-gray-200 hover:shadow-lg&quot;}`,children:[i.jsx(&quot;div&quot;,{className:&quot;relative h-48 overflow-hidden bg-gray-100 flex-shrink-0&quot;,children:i.jsx(&quot;img&quot;,{src:&quot;/seminaireregional.webp&quot;,alt:&quot;Séminaire Régional&quot;,className:&quot;w-full h-full object-cover&quot;})}),i.jsx(&quot;div&quot;,{className:&quot;p-4 text-center flex-1 flex items-center justify-center&quot;,children:i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900&quot;,children:&quot;Séminaire Régional&quot;})})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center justify-center space-x-2 cursor-pointer mt-4 p-2 rounded-lg hover:bg-gray-50 transition-colors h-12&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;selectedEvent&quot;,value:&quot;seminar&quot;,checked:p.selectedEvents.includes(&quot;seminar&quot;),onChange:()=&gt;k(&quot;seminar&quot;),className:&quot;w-5 h-5 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-ink-500 font-light text-sm&quot;,children:&quot;Choisir&quot;})]})]}),ce&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col h-full&quot;,children:[i.jsxs(&quot;div&quot;,{onClick:()=&gt;k(&quot;recommend&quot;),className:`bg-white rounded-xl shadow-soft overflow-hidden border transition-all flex flex-col flex-1 cursor-pointer ${p.selectedEvents.includes(&quot;recommend&quot;)?&quot;border-brand-700 border-2 shadow-lg&quot;:&quot;border-gray-200 hover:shadow-lg&quot;}`,children:[i.jsx(&quot;div&quot;,{className:&quot;relative h-48 overflow-hidden bg-gray-100 flex-shrink-0&quot;,children:i.jsx(&quot;img&quot;,{src:&quot;/recommandation.webp&quot;,alt:&quot;Recommander des participants&quot;,className:&quot;w-full h-full object-cover&quot;})}),i.jsx(&quot;div&quot;,{className:&quot;p-4 text-center flex-1 flex items-center justify-center&quot;,children:i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900&quot;,children:&quot;Recommander des participants&quot;})})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center justify-center space-x-2 cursor-pointer mt-4 p-2 rounded-lg hover:bg-gray-50 transition-colors h-12&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;selectedEvent&quot;,value:&quot;recommend&quot;,checked:p.selectedEvents.includes(&quot;recommend&quot;),onChange:()=&gt;k(&quot;recommend&quot;),className:&quot;w-5 h-5 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-ink-500 font-light text-sm&quot;,children:&quot;Choisir&quot;})]})]})]})}),Q(&quot;selectedEvents&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-red-600 text-center&quot;,children:Q(&quot;selectedEvents&quot;)})]}),p.selectedEvents.includes(&quot;summit&quot;)&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-6 p-6 bg-brand-50 border border-brand-700 rounded-xl&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Voulez-vous participer au sommet de la Région Afrique francophone - Ouaga 2026?&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 text-sm font-light text-ink-500&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium&quot;,children:&quot;Dates et horaire (GMT) général du sommet:&quot;}),i.jsx(&quot;p&quot;,{children:&quot;Du 19 au 22 novembre 2026, à Ouagadougou - Burkina Faso&quot;}),i.jsxs(&quot;ul&quot;,{className:&quot;list-disc list-inside space-y-1 ml-2 mt-2&quot;,children:[i.jsx(&quot;li&quot;,{children:&quot;Check-in dans les Hotels: 12h00-15h00, jeudi 19 novembre 2026&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Enregistrement des participants au sommet: 15h00-17h00, jeudi 19 novembre 2026&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Début du sommet: 17h00, jeudi 19 novembre 2026&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Fin du sommet: 21h30, samedi 21 novembre 2026&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Check-out/Culte/Visite-détente/départ: 8.30-15.00, dimanche 22 novembre 2026&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;pt-4 border-t border-brand-700/30&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium mb-2&quot;,children:&quot;Les formules d&#039;inscription au sommet:&quot;}),i.jsxs(&quot;ul&quot;,{className:&quot;list-disc list-inside space-y-1 ml-2&quot;,children:[i.jsx(&quot;li&quot;,{children:&quot;Formule A 150 000 FCFA / 230 € par personne (pour les leaders résidant à Ouaga, pas de chambre d&#039;hôtel)&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Formule B 350 000 FCFA / 535 € par personne (deux délégués par chambre double en pension complète)&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Formule C 450 000 FCFA / 690 € (un délégué par chambre en pension complète)&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Formule D 550 000 FCFA / 840 € (pour les couples mariés par chambre en pension complète)&quot;})]})]})]})]}),(p.selectedEvents.includes(&quot;seminar&quot;)||p.selectedEvents.includes(&quot;recommend&quot;))&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-6 p-6 bg-brand-50 border border-brand-700 rounded-xl&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Séminaire spécial régional hybride&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-4 text-sm font-light text-ink-500 mb-4&quot;,children:i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium&quot;,children:&quot;Dates du séminaire:&quot;}),i.jsx(&quot;p&quot;,{children:&quot;1ère partie en ligne : Du 22 au 30 octobre 2026&quot;}),i.jsx(&quot;p&quot;,{children:&quot;2ème partie présentielle : Du 15 au 19 novembre 2026, au Burkina Faso&quot;})]})}),i.jsx(&quot;h5&quot;,{className:&quot;text-base font-heading font-medium text-ink-900 mb-3 mt-4&quot;,children:&quot;Profil des participants au séminaire spécial régional francophone:&quot;}),i.jsxs(&quot;ol&quot;,{className:&quot;space-y-3 text-sm font-light text-ink-500 list-decimal list-inside&quot;,children:[i.jsxs(&quot;li&quot;,{children:[i.jsx(&quot;strong&quot;,{children:&quot;Âge:&quot;}),&quot; de 25 à 60 ans&quot;]}),i.jsxs(&quot;li&quot;,{children:[i.jsx(&quot;strong&quot;,{children:&quot;Éducation:&quot;}),&quot; niveau Bac+3, exemption faite aux leaders chrétiens reconnus&quot;]}),i.jsxs(&quot;li&quot;,{children:[i.jsx(&quot;strong&quot;,{children:&quot;Durée:&quot;}),&quot; être disponible pour la formation entière qui dure 12 jours subdivisés comme suit: première partie, du 22 au 30 octobre 2026 (18 h en ligne en 8 jours) / deuxième partie, du 15 au 19 novembre 2026 (38h en résidentiel en 4 jours)&quot;]}),i.jsxs(&quot;li&quot;,{children:[i.jsx(&quot;strong&quot;,{children:&quot;Leadership:&quot;}),&quot; être un leader chrétien laïc ou ecclésiastique&quot;]}),i.jsxs(&quot;li&quot;,{children:[i.jsx(&quot;strong&quot;,{children:&quot;Niveau de langue:&quot;}),&quot; être capable de communiquer clairement en français parlé &amp; écrit&quot;]}),i.jsxs(&quot;li&quot;,{children:[i.jsx(&quot;strong&quot;,{children:&quot;Coût:&quot;}),&quot; être en mesure de payer les frais de participation de 350.000 FCFA (534 Euros) /N.B: les frais de voyage incombent au participant.&quot;]}),i.jsxs(&quot;li&quot;,{children:[i.jsx(&quot;strong&quot;,{children:&quot;Ordinateur:&quot;}),&quot; disposer d&#039;un ordinateur portable ou d&#039;un IPAD équivalent sur 12 jrs et de la connexion internet sur 8 jrs (pour la première partie en ligne)&quot;]}),i.jsxs(&quot;li&quot;,{children:[i.jsx(&quot;strong&quot;,{children:&quot;Évangélisation:&quot;}),&quot; s&#039;engager à évangéliser et à former d&#039;autres chrétiens et leaders après la formation&quot;]})]})]}),i.jsx(Ae,{type:&quot;button&quot;,onClick:U,className:&quot;w-full mt-6&quot;,children:&quot;Continuer&quot;})]})}if(l===2){const te=p.selectedEvents.includes(&quot;summit&quot;),ie=p.selectedEvents.includes(&quot;seminar&quot;),de=p.selectedEvents.includes(&quot;recommend&quot;),ce=p.selectedEvents.length===1&amp;&amp;te,se=p.selectedEvents.length===1&amp;&amp;ie,fe=p.selectedEvents.length===1&amp;&amp;de,le=p.selectedEvents.length===2&amp;&amp;!de,ge=te&amp;&amp;ie&amp;&amp;de,xe=ie&amp;&amp;de&amp;&amp;!te,pe=te&amp;&amp;de&amp;&amp;!ie;return i.jsxs(&quot;form&quot;,{onSubmit:ue=&gt;{ue.preventDefault(),J()},className:&quot;space-y-6&quot;,children:[d._general&amp;&amp;d._general.length&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;p-4 rounded-xl bg-red-50 border border-red-200 text-red-800 text-sm&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium mb-1&quot;,children:&quot;Erreur(s) de validation :&quot;}),i.jsx(&quot;ul&quot;,{className:&quot;list-disc list-inside space-y-0.5&quot;,children:d._general.map((ue,we)=&gt;i.jsx(&quot;li&quot;,{children:ue},we))})]}),i.jsxs(&quot;div&quot;,{&quot;aria-hidden&quot;:&quot;true&quot;,className:&quot;absolute -left-[9999px] top-0 opacity-0 h-0 overflow-hidden&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;website-hp&quot;,children:&quot;Site web&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,id:&quot;website-hp&quot;,name:&quot;website&quot;,tabIndex:-1,autoComplete:&quot;off&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-4 text-center uppercase&quot;,children:de?&quot;INFORMATIONS SUR LE LEADER QUI RECOMMANDE&quot;:&quot;INFORMATIONS PERSONNELLES&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Prénom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.first_name,onChange:ue=&gt;B(&quot;first_name&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;first_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;first_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;first_name&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Nom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.last_name,onChange:ue=&gt;B(&quot;last_name&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;last_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;last_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;last_name&quot;)})]})]}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-1&quot;,children:&quot;Indiquez le prénom et le nom tels qu&#039;ils figurent sur le passeport ou la pièce d&#039;identité.&quot;}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Email &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:p.email,onChange:ue=&gt;B(&quot;email&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;email&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;email&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;email&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[ie?&quot;Pays de résidence&quot;:&quot;Pays&quot;,&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;select&quot;,{value:p.country,onChange:ue=&gt;E(ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;country&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:ie?&quot;Sélectionner votre pays de résidence&quot;:&quot;Sélectionner un pays&quot;}),tm.map(ue=&gt;{const we=C$(ue.code);return i.jsxs(&quot;option&quot;,{value:ue.name,children:[we?`${we} ${ue.name}`:ue.name,&quot; &quot;,ue.dialCode]},ue.code)})]}),Q(&quot;country&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;country&quot;)})]}),!fe&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Ville&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.city,onChange:ue=&gt;B(&quot;city&quot;,ue.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Téléphone (WhatsApp) &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;tel&quot;,value:p.phone,onChange:ue=&gt;j(ue.target.value),placeholder:&quot;+226 70123456&quot;,className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;phone&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;phone&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;phone&quot;)})]}),i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:!fe&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Nationalité&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.nationality,onChange:ue=&gt;B(&quot;nationality&quot;,ue.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Organisation&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.organization,onChange:ue=&gt;B(&quot;organization&quot;,ue.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Poste / Fonction&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.position,onChange:ue=&gt;B(&quot;position&quot;,ue.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;})]})]}),te&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;p&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;J&#039;ai déjà participé à un séminaire Haggai (International, Régional ou National). &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-6&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;participated_haggai_seminar&quot;,checked:p.participated_haggai_seminar===&quot;oui&quot;,onChange:()=&gt;B(&quot;participated_haggai_seminar&quot;,&quot;oui&quot;),className:&quot;rounded&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Oui&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;participated_haggai_seminar&quot;,checked:p.participated_haggai_seminar===&quot;non&quot;,onChange:()=&gt;B(&quot;participated_haggai_seminar&quot;,&quot;non&quot;),className:&quot;rounded&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Non&quot;})]})]}),Q(&quot;participated_haggai_seminar&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;participated_haggai_seminar&quot;)}),p.participated_haggai_seminar===&quot;oui&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-4 flex-1&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;HAGGAI ID ou Année du séminaire &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.hle_vhle_number,onChange:ue=&gt;B(&quot;hle_vhle_number&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;hle_vhle_number&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;hle_vhle_number&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;hle_vhle_number&quot;)})]})]})]})})]}),(le||ce||ge||pe)&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 pt-4 border-t&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-6 text-center&quot;,children:&quot;CHOIX DE LA FORMULE D&#039;HEBERGEMENT&quot;}),i.jsxs(&quot;div&quot;,{children:[v?i.jsx(&quot;div&quot;,{className:&quot;text-center py-8 text-ink-500&quot;,children:&quot;Chargement des formules...&quot;}):y.length===0?i.jsx(&quot;div&quot;,{className:&quot;text-center py-8 text-ink-500&quot;,children:&quot;Aucune formule disponible&quot;}):i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-2 gap-4&quot;,children:y.sort((ue,we)=&gt;ue.sort_order-we.sort_order).map(ue=&gt;{const ke={A:{price:&quot;150 000 FCFA / 230 €&quot;,description:&quot;par personne (pour les leaders résidant à Ouaga, pas de chambre d&#039;hôtel)&quot;},B:{price:&quot;350 000 FCFA / 535 €&quot;,description:&quot;par personne (deux délégués par chambre double en pension complète)&quot;},C:{price:&quot;450 000 FCFA / 690 €&quot;,description:&quot;(un délégué par chambre en pension complète)&quot;},D:{price:&quot;550 000 FCFA / 840 €&quot;,description:&quot;(pour les couples mariés par chambre en pension complète)&quot;}}[ue.code]||{price:ue.currency_primary===&quot;XOF&quot;?`${ue.price_xof.toLocaleString(&quot;fr-FR&quot;)} XOF`:`${ue.price_eur.toLocaleString(&quot;fr-FR&quot;)} EUR`,description:ue.description||&quot;&quot;},Le={A:&quot;/formules/formule-a.jpg&quot;,B:&quot;/formules/formule-b.jpg&quot;,C:&quot;/formules/formule-c.jpg&quot;,D:&quot;/formules/formule-d.jpg&quot;}[ue.code]||&quot;/formules/default.jpg&quot;;return i.jsxs(&quot;label&quot;,{className:`relative flex flex-col cursor-pointer rounded-xl overflow-hidden border-2 transition-all ${p.package_code===ue.code?&quot;border-brand-700 shadow-lg&quot;:&quot;border-gray-200 hover:border-brand-700 hover:shadow-md&quot;}`,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;package_code&quot;,value:ue.code,checked:p.package_code===ue.code,onChange:()=&gt;B(&quot;package_code&quot;,ue.code),className:&quot;sr-only&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;relative h-48 overflow-hidden bg-gray-100&quot;,children:[i.jsx(&quot;img&quot;,{src:Le,alt:ue.title,className:&quot;w-full h-full object-cover&quot;,onError:ze=&gt;{ze.target.src=&quot;/sommet1.webp&quot;}}),p.package_code===ue.code&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;absolute top-2 right-2 bg-brand-700 text-white rounded-full w-8 h-8 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-5 h-5&quot;,fill:&quot;currentColor&quot;,viewBox:&quot;0 0 20 20&quot;,children:i.jsx(&quot;path&quot;,{fillRule:&quot;evenodd&quot;,d:&quot;M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z&quot;,clipRule:&quot;evenodd&quot;})})})]}),i.jsxs(&quot;div&quot;,{className:&quot;p-4 bg-white&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900 mb-2&quot;,children:ue.title}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 font-light mb-2&quot;,children:ke.description}),i.jsx(&quot;p&quot;,{className:&quot;text-lg font-semibold text-brand-700&quot;,children:ke.price})]})]},ue.id)})}),Q(&quot;package_code&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-red-600 text-center&quot;,children:Q(&quot;package_code&quot;)}),h&amp;&amp;i.jsxs(&quot;div&quot;,{className:`mt-4 p-4 rounded-xl border-2 transition-colors ${Q(&quot;ouaga_resident_confirmed&quot;)?&quot;border-red-500 bg-red-50&quot;:&quot;border-gray-200 bg-gray-50&quot;}`,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-start gap-3 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:p.ouaga_resident_confirmed,onChange:ue=&gt;B(&quot;ouaga_resident_confirmed&quot;,ue.target.checked),className:`mt-1 h-4 w-4 rounded focus:ring-2 focus:ring-offset-0 ${Q(&quot;ouaga_resident_confirmed&quot;)?&quot;border-red-500 text-red-600 focus:ring-red-500&quot;:&quot;border-gray-300 text-brand-600 focus:ring-brand-600&quot;}`}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Je confirme être résident de Ouagadougou (obligatoire pour la Formule A — pas de chambre d&#039;hôtel incluse).&quot;})]}),Q(&quot;ouaga_resident_confirmed&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm font-medium text-red-600&quot;,role:&quot;alert&quot;,children:Q(&quot;ouaga_resident_confirmed&quot;)})]})]}),p.package_code===&quot;D&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Nom du conjoint / de la conjointe &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.spouse_fullname,onChange:ue=&gt;B(&quot;spouse_fullname&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;spouse_fullname&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;spouse_fullname&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;spouse_fullname&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Email du conjoint / de la conjointe&quot;}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:p.spouse_email,onChange:ue=&gt;B(&quot;spouse_email&quot;,ue.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;HAGGAI ID ou Année du séminaire (conjoint / conjointe)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.spouse_haggai_id,onChange:ue=&gt;B(&quot;spouse_haggai_id&quot;,ue.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;})]})]})]}),(se||xe)&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 pt-4 border-t&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Église ou organisation&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_church_organization,onChange:ue=&gt;B(&quot;seminar_church_organization&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_church_organization&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_church_organization&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_church_organization&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Rôle/Ministère&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_role_ministry,onChange:ue=&gt;B(&quot;seminar_role_ministry&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_role_ministry&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_role_ministry&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_role_ministry&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Situation matrimoniale &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_marital_status&quot;,value:&quot;marie&quot;,checked:p.seminar_marital_status===&quot;marie&quot;,onChange:()=&gt;B(&quot;seminar_marital_status&quot;,&quot;marie&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Marié(e)&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_marital_status&quot;,value:&quot;non_marie&quot;,checked:p.seminar_marital_status===&quot;non_marie&quot;,onChange:()=&gt;B(&quot;seminar_marital_status&quot;,&quot;non_marie&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Non marié(e)&quot;})]})]}),Q(&quot;seminar_marital_status&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_marital_status&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Genre &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_gender&quot;,value:&quot;homme&quot;,checked:p.seminar_gender===&quot;homme&quot;,onChange:()=&gt;B(&quot;seminar_gender&quot;,&quot;homme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Homme&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_gender&quot;,value:&quot;femme&quot;,checked:p.seminar_gender===&quot;femme&quot;,onChange:()=&gt;B(&quot;seminar_gender&quot;,&quot;femme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Femme&quot;})]})]}),Q(&quot;seminar_gender&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_gender&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Question ou préoccupation&quot;}),i.jsx(&quot;textarea&quot;,{value:p.seminar_question_or_concern,onChange:ue=&gt;B(&quot;seminar_question_or_concern&quot;,ue.target.value),rows:3,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 pt-4 border-t&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-base font-heading font-medium text-ink-800 mb-3&quot;,children:&quot;Compléments d&#039;information pour le séminaire&quot;}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Date de naissance&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:p.seminar_date_naissance,onChange:ue=&gt;B(&quot;seminar_date_naissance&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_date_naissance&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_date_naissance&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_date_naissance&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Personne à contacter en cas de besoin + lien de parenté&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_contact_urgence_nom_lien,onChange:ue=&gt;B(&quot;seminar_contact_urgence_nom_lien&quot;,ue.target.value),placeholder:&quot;Nom et lien (ex. époux, parent)&quot;,className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_contact_urgence_nom_lien&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_contact_urgence_nom_lien&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_contact_urgence_nom_lien&quot;)})]}),i.jsx(&quot;h5&quot;,{className:&quot;text-sm font-medium text-ink-700 mt-4 mb-2&quot;,children:&quot;Éducation&quot;}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Niveau d&#039;études&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[&quot;primaire&quot;,&quot;secondaire_2&quot;,&quot;universitaire&quot;].map(ue=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_niveau_etudes_1&quot;,value:ue,checked:p.seminar_niveau_etudes===ue,onChange:()=&gt;B(&quot;seminar_niveau_etudes&quot;,ue),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:ue===&quot;primaire&quot;?&quot;Primaire&quot;:ue===&quot;secondaire_2&quot;?&quot;Secondaire 2&quot;:&quot;Universitaire&quot;})]},ue))}),Q(&quot;seminar_niveau_etudes&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_niveau_etudes&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Domaine(s) d&#039;études / formation&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:k4.map(({value:ue,label:we})=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:p.seminar_domaines_etude?.includes(ue)??!1,onChange:()=&gt;T(ue),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:we})]},ue))}),p.seminar_domaines_etude?.includes(&quot;autre&quot;)&amp;&amp;i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_domaine_etude_autre,onChange:ue=&gt;B(&quot;seminar_domaine_etude_autre&quot;,ue.target.value),placeholder:&quot;Précisez&quot;,className:&quot;mt-2 w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;}),Q(&quot;seminar_domaines_etude&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_domaines_etude&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Niveau de français (écrit et parlé)&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[&quot;natif&quot;,&quot;avance&quot;,&quot;intermediaire&quot;,&quot;faible&quot;].map(ue=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_niveau_francais_1&quot;,value:ue,checked:p.seminar_niveau_francais===ue,onChange:()=&gt;B(&quot;seminar_niveau_francais&quot;,ue),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:ue===&quot;natif&quot;?&quot;Natif/Native&quot;:ue===&quot;avance&quot;?&quot;Avancé&quot;:ue===&quot;intermediaire&quot;?&quot;Intermédiaire&quot;:&quot;Faible&quot;})]},ue))}),Q(&quot;seminar_niveau_francais&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_niveau_francais&quot;)})]}),i.jsx(&quot;h5&quot;,{className:&quot;text-sm font-medium text-ink-700 mt-4 mb-2&quot;,children:&quot;Infos complémentaires&quot;}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Besoin d&#039;une lettre pour autorisation d&#039;absence ?&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_besoin_lettre_1&quot;,value:&quot;oui&quot;,checked:p.seminar_besoin_lettre_absence===&quot;oui&quot;,onChange:()=&gt;B(&quot;seminar_besoin_lettre_absence&quot;,&quot;oui&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Oui&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_besoin_lettre_1&quot;,value:&quot;non&quot;,checked:p.seminar_besoin_lettre_absence===&quot;non&quot;,onChange:()=&gt;B(&quot;seminar_besoin_lettre_absence&quot;,&quot;non&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Non&quot;})]})]}),p.seminar_besoin_lettre_absence===&quot;oui&quot;&amp;&amp;i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_besoin_lettre_details,onChange:ue=&gt;B(&quot;seminar_besoin_lettre_details&quot;,ue.target.value),placeholder:&quot;Détails&quot;,className:&quot;mt-2 w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;}),Q(&quot;seminar_besoin_lettre_absence&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_besoin_lettre_absence&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Problème de santé / maladie chronique nécessitant attention ?&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_sante_details,onChange:ue=&gt;B(&quot;seminar_sante_details&quot;,ue.target.value),placeholder:&quot;Indiquez « Aucun » si applicable&quot;,className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_sante_details&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_sante_details&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_sante_details&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Régime sans sel ?&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_regime_1&quot;,value:&quot;oui&quot;,checked:p.seminar_regime_sans_sel===&quot;oui&quot;,onChange:()=&gt;B(&quot;seminar_regime_sans_sel&quot;,&quot;oui&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Oui&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_regime_1&quot;,value:&quot;non&quot;,checked:p.seminar_regime_sans_sel===&quot;non&quot;,onChange:()=&gt;B(&quot;seminar_regime_sans_sel&quot;,&quot;non&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Non&quot;})]})]}),Q(&quot;seminar_regime_sans_sel&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_regime_sans_sel&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Confession religieuse :&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:C4.map(({value:ue,label:we})=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_confession_1&quot;,value:ue,checked:p.seminar_confession_religieuse===ue,onChange:()=&gt;K(ue),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:we})]},ue))}),Q(&quot;seminar_confession_religieuse&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_confession_religieuse&quot;)}),p.seminar_confession_religieuse===&quot;autre&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Spécifiez :&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_confession_religieuse_autre,onChange:ue=&gt;B(&quot;seminar_confession_religieuse_autre&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_confession_religieuse_autre&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_confession_religieuse_autre&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_confession_religieuse_autre&quot;)})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Quelles sont vos attentes ?&quot;}),i.jsx(&quot;textarea&quot;,{value:p.seminar_fardeau_transformation,onChange:ue=&gt;B(&quot;seminar_fardeau_transformation&quot;,ue.target.value),rows:2,className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_fardeau_transformation&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_fardeau_transformation&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_fardeau_transformation&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Qui vous a recommandé ?&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_recommande_par,onChange:ue=&gt;B(&quot;seminar_recommande_par&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_recommande_par&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_recommande_par&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_recommande_par&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Engagements&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:S4.map(({value:ue,label:we})=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:p.seminar_engagements?.includes(ue)??!1,onChange:()=&gt;L(ue),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:we})]},ue))}),p.seminar_engagements?.includes(&quot;autre&quot;)&amp;&amp;i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_engagements_autre,onChange:ue=&gt;B(&quot;seminar_engagements_autre&quot;,ue.target.value),placeholder:&quot;Précisez&quot;,className:&quot;mt-2 w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;}),Q(&quot;seminar_engagements&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_engagements&quot;)})]})]}),p.selectedEvents.includes(&quot;recommend&quot;)&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 pt-4 border-t&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900 mb-4 text-center uppercase&quot;,children:&quot;INFORMATIONS SUR LA PERSONNE RECOMMANDÉE&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;block text-sm font-medium text-ink-900 mb-2&quot;,children:&quot;Avez-vous déjà contacté la personne à propos de cette recommandation? (Il est fortement recommandé de contacter la personne avant que l&#039;invitation officielle de Haggai lui soit envoyée.)&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-4&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_contacted_before&quot;,value:&quot;oui&quot;,checked:p.recommended_contacted_before===&quot;oui&quot;,onChange:()=&gt;B(&quot;recommended_contacted_before&quot;,&quot;oui&quot;),className:&quot;w-4 h-4 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Oui&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_contacted_before&quot;,value:&quot;non&quot;,checked:p.recommended_contacted_before===&quot;non&quot;,onChange:()=&gt;B(&quot;recommended_contacted_before&quot;,&quot;non&quot;),className:&quot;w-4 h-4 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Non&quot;})]})]}),p.recommended_contacted_before===&quot;non&quot;&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-red-600 font-medium&quot;,children:&quot;Veuillez d&#039;abord contacter la personne que vous voulez recommander pour la prévenir de l&#039;invitation que Haggai va lui envoyer.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Prénom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_first_name,onChange:ue=&gt;B(&quot;recommended_first_name&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_first_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_first_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_first_name&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Nom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_last_name,onChange:ue=&gt;B(&quot;recommended_last_name&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_last_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_last_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_last_name&quot;)})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Profession &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_profession,onChange:ue=&gt;B(&quot;recommended_profession&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_profession&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_profession&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_profession&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Pays de résidence &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_residence_country,onChange:ue=&gt;B(&quot;recommended_residence_country&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_residence_country&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_residence_country&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_residence_country&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Téléphone WhatsApp &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;tel&quot;,value:p.recommended_phone_whatsapp,onChange:ue=&gt;B(&quot;recommended_phone_whatsapp&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_phone_whatsapp&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_phone_whatsapp&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_phone_whatsapp&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Email &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:p.recommended_email,onChange:ue=&gt;B(&quot;recommended_email&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_email&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_email&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_email&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Genre &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;homme&quot;,checked:p.recommended_gender===&quot;homme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;homme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Homme&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;femme&quot;,checked:p.recommended_gender===&quot;femme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;femme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Femme&quot;})]})]}),Q(&quot;recommended_gender&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_gender&quot;)})]})]})]}),fe&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 pt-4 border-t&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-4 text-center uppercase&quot;,children:&quot;INFORMATIONS SUR LA PERSONNE RECOMMANDÉE&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;block text-sm font-medium text-ink-900 mb-2&quot;,children:&quot;Avez-vous déjà contacté la personne à propos de cette recommandation? (Il est fortement recommandé de contacter la personne avant que l&#039;invitation officielle de Haggai lui soit envoyée.)&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-4&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_contacted_before&quot;,value:&quot;oui&quot;,checked:p.recommended_contacted_before===&quot;oui&quot;,onChange:()=&gt;B(&quot;recommended_contacted_before&quot;,&quot;oui&quot;),className:&quot;w-4 h-4 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Oui&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_contacted_before&quot;,value:&quot;non&quot;,checked:p.recommended_contacted_before===&quot;non&quot;,onChange:()=&gt;B(&quot;recommended_contacted_before&quot;,&quot;non&quot;),className:&quot;w-4 h-4 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Non&quot;})]})]}),p.recommended_contacted_before===&quot;non&quot;&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-red-600 font-medium&quot;,children:&quot;Veuillez d&#039;abord contacter la personne que vous voulez recommander pour la prévenir de l&#039;invitation que Haggai va lui envoyer.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Prénom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_first_name,onChange:ue=&gt;B(&quot;recommended_first_name&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_first_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_first_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_first_name&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Nom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_last_name,onChange:ue=&gt;B(&quot;recommended_last_name&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_last_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_last_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_last_name&quot;)})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Profession &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_profession,onChange:ue=&gt;B(&quot;recommended_profession&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_profession&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_profession&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_profession&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Pays de résidence &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_residence_country,onChange:ue=&gt;B(&quot;recommended_residence_country&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_residence_country&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_residence_country&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_residence_country&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Téléphone WhatsApp &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;tel&quot;,value:p.recommended_phone_whatsapp,onChange:ue=&gt;B(&quot;recommended_phone_whatsapp&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_phone_whatsapp&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_phone_whatsapp&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_phone_whatsapp&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Email &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:p.recommended_email,onChange:ue=&gt;B(&quot;recommended_email&quot;,ue.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_email&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_email&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_email&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Genre &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;homme&quot;,checked:p.recommended_gender===&quot;homme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;homme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Homme&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;femme&quot;,checked:p.recommended_gender===&quot;femme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;femme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Femme&quot;})]})]}),Q(&quot;recommended_gender&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_gender&quot;)})]})]}),(!le||le&amp;&amp;p.selectedEvents.includes(&quot;summit&quot;)&amp;&amp;p.selectedEvents.includes(&quot;seminar&quot;))&amp;&amp;!fe&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 pt-4 border-t&quot;,children:[p.selectedEvents.includes(&quot;seminar&quot;)&amp;&amp;i.jsx(E4,{}),i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-2 text-center uppercase&quot;,children:&quot;MÉTHODE DE PAIEMENT&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-3 text-center&quot;,children:&quot;Veuillez indiquer votre préférence de mode de paiement et le nombre d&#039;échéances ci-dessous.&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600 mb-6 text-center max-w-2xl mx-auto leading-relaxed&quot;,children:wv}),(()=&gt;{const ue=I();if(!(p.selectedEvents.includes(&quot;summit&quot;)&amp;&amp;p.selectedEvents.includes(&quot;seminar&quot;))||!ue)return null;const ke=y.find(Le=&gt;Le.code===p.package_code),De=ke?ke.price_xof:0;return i.jsxs(&quot;div&quot;,{className:&quot;mb-6 bg-brand-50 rounded-xl p-6 space-y-4&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900 mb-4 text-center&quot;,children:&quot;Récapitulatif des frais&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-900&quot;,children:[&quot;Sommet - &quot;,ke?.title||&quot;Formule sélectionnée&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:ke?.code||&quot;&quot;})]}),i.jsx(&quot;p&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:A(De)})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-900&quot;,children:&quot;Séminaire - Résidentiel&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Formule obligatoire&quot;})]}),i.jsx(&quot;p&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:A(_)})]}),i.jsxs(&quot;div&quot;,{className:&quot;pt-4 border-t border-brand-700/30&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-lg font-heading font-semibold text-ink-900&quot;,children:&quot;Total à payer&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-2xl font-bold text-brand-700&quot;,children:ue.formatted})]}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-2 text-right&quot;,children:&quot;Note : Les paiements peuvent être effectués séparément pour chaque événement.&quot;})]})]})]})})(),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-3 gap-4&quot;,children:[i.jsxs(&quot;label&quot;,{className:`relative flex flex-col cursor-pointer rounded-xl overflow-hidden border-2 transition-all ${p.payment_method_selected===&quot;mobile_money&quot;?&quot;border-brand-700 shadow-lg bg-brand-50&quot;:&quot;border-gray-200 hover:border-brand-700 hover:shadow-md bg-white&quot;}`,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;payment_method&quot;,value:&quot;mobile_money&quot;,checked:p.payment_method_selected===&quot;mobile_money&quot;,onChange:()=&gt;B(&quot;payment_method_selected&quot;,&quot;mobile_money&quot;),className:&quot;sr-only&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;p-6 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;mb-3 flex justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;w-12 h-12 rounded-full bg-brand-700/20 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-6 h-6 text-brand-700&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,viewBox:&quot;0 0 24 24&quot;,children:i.jsx(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:2,d:&quot;M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z&quot;})})})}),i.jsx(&quot;h4&quot;,{className:&quot;text-base font-heading font-medium text-ink-900 mb-1&quot;,children:&quot;Mobile Money (en ligne ou en direct)&quot;}),p.payment_method_selected===&quot;mobile_money&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;absolute top-2 right-2 bg-brand-700 text-white rounded-full w-6 h-6 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-4 h-4&quot;,fill:&quot;currentColor&quot;,viewBox:&quot;0 0 20 20&quot;,children:i.jsx(&quot;path&quot;,{fillRule:&quot;evenodd&quot;,d:&quot;M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z&quot;,clipRule:&quot;evenodd&quot;})})})]})]}),i.jsxs(&quot;label&quot;,{className:`relative flex flex-col cursor-pointer rounded-xl overflow-hidden border-2 transition-all ${p.payment_method_selected===&quot;national_office&quot;?&quot;border-brand-700 shadow-lg bg-brand-50&quot;:&quot;border-gray-200 hover:border-brand-700 hover:shadow-md bg-white&quot;}`,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;payment_method&quot;,value:&quot;national_office&quot;,checked:p.payment_method_selected===&quot;national_office&quot;,onChange:()=&gt;B(&quot;payment_method_selected&quot;,&quot;national_office&quot;),className:&quot;sr-only&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;p-6 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;mb-3 flex justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;w-12 h-12 rounded-full bg-brand-700/20 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-6 h-6 text-brand-700&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,viewBox:&quot;0 0 24 24&quot;,children:i.jsx(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:2,d:&quot;M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4&quot;})})})}),i.jsx(&quot;h4&quot;,{className:&quot;text-base font-heading font-medium text-ink-900 mb-1&quot;,children:&quot;Envoi d&#039;argent (RIA, Western ou MoneyGram)&quot;}),p.payment_method_selected===&quot;national_office&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;absolute top-2 right-2 bg-brand-700 text-white rounded-full w-6 h-6 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-4 h-4&quot;,fill:&quot;currentColor&quot;,viewBox:&quot;0 0 20 20&quot;,children:i.jsx(&quot;path&quot;,{fillRule:&quot;evenodd&quot;,d:&quot;M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z&quot;,clipRule:&quot;evenodd&quot;})})})]})]}),i.jsxs(&quot;label&quot;,{className:`relative flex flex-col cursor-pointer rounded-xl overflow-hidden border-2 transition-all ${p.payment_method_selected===&quot;bank_transfer&quot;?&quot;border-brand-700 shadow-lg bg-brand-50&quot;:&quot;border-gray-200 hover:border-brand-700 hover:shadow-md bg-white&quot;}`,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;payment_method&quot;,value:&quot;bank_transfer&quot;,checked:p.payment_method_selected===&quot;bank_transfer&quot;,onChange:()=&gt;B(&quot;payment_method_selected&quot;,&quot;bank_transfer&quot;),className:&quot;sr-only&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;p-6 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;mb-3 flex justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;w-12 h-12 rounded-full bg-brand-700/20 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-6 h-6 text-brand-700&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,viewBox:&quot;0 0 24 24&quot;,children:i.jsx(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:2,d:&quot;M8 14v3m4-3v3m4-3v3M3 21h18M3 10h18M5 6h14a2 2 0 012 2v2H3V8a2 2 0 012-2z&quot;})})})}),i.jsx(&quot;h4&quot;,{className:&quot;text-base font-heading font-medium text-ink-900 mb-1&quot;,children:&quot;Virement bancaire&quot;}),p.payment_method_selected===&quot;bank_transfer&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;absolute top-2 right-2 bg-brand-700 text-white rounded-full w-6 h-6 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-4 h-4&quot;,fill:&quot;currentColor&quot;,viewBox:&quot;0 0 20 20&quot;,children:i.jsx(&quot;path&quot;,{fillRule:&quot;evenodd&quot;,d:&quot;M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z&quot;,clipRule:&quot;evenodd&quot;})})})]})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 pt-6 border-t border-gray-200&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900 mb-4 text-center uppercase&quot;,children:&quot;CONFIGURATION DES ÉCHÉANCES&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mb-6&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Nombre d&#039;échéances &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;flex gap-3&quot;,children:[1,2,3].map(ue=&gt;i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;q(ue),className:`flex-1 py-3 px-4 rounded-xl border-2 transition-all ${p.installment_count===ue?&quot;border-brand-700 bg-brand-700 text-white&quot;:&quot;border-gray-200 hover:border-brand-700 text-ink-500&quot;}`,children:[ue,&quot; &quot;,ue===1?&quot;échéance&quot;:&quot;échéances&quot;]},ue))})]}),i.jsx(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:Array.from({length:p.installment_count}).map((ue,we)=&gt;{const ke=p.installment_months[we]||&quot;&quot;,De=!ke||F([ke]),Le=d[`installment_month_${we}`],ze=!!Le||!De&amp;&amp;!!ke;return i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Échéance &quot;,we+1,&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;select&quot;,{value:ke,onChange:Oe=&gt;H(we,Oe.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${ze?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner un mois&quot;}),V().map(Oe=&gt;i.jsx(&quot;option&quot;,{value:Oe.value,children:Oe.label},Oe.value))]}),Le&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Le[0]}),!Le&amp;&amp;!De&amp;&amp;ke&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:&quot;L&#039;échéance doit être au plus tard 2 mois avant l&#039;événement (septembre 2026 au plus tard)&quot;})]},we)})}),d.installment_months&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-red-600&quot;,children:d.installment_months[0]})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex space-x-4 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;secondary&quot;,onClick:$,className:&quot;flex-1&quot;,children:&quot;Retour&quot;}),le||ge||te&amp;&amp;de&amp;&amp;!ie?i.jsx(Ae,{type:&quot;button&quot;,onClick:J,disabled:!Z(),className:&quot;flex-1&quot;,children:&quot;Valider et passer au suivant&quot;}):i.jsx(Ae,{type:&quot;submit&quot;,disabled:c||fe&amp;&amp;!Y(),className:&quot;flex-1&quot;,children:c?&quot;Envoi en cours...&quot;:&quot;Envoyer&quot;})]})]})}if(l===3){const te=p.selectedEvents.includes(&quot;summit&quot;),ie=p.selectedEvents.includes(&quot;seminar&quot;),de=p.selectedEvents.includes(&quot;recommend&quot;),ce=te&amp;&amp;de&amp;&amp;!ie,se=ie&amp;&amp;de&amp;&amp;!te,fe=te&amp;&amp;ie&amp;&amp;de;return se?i.jsx(&quot;form&quot;,{onSubmit:le=&gt;{le.preventDefault(),X()},className:&quot;space-y-6&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Recommander quelqu&#039;un au Séminaire&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Prénom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_first_name,onChange:le=&gt;B(&quot;recommended_first_name&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_first_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_first_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_first_name&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Nom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_last_name,onChange:le=&gt;B(&quot;recommended_last_name&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_last_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_last_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_last_name&quot;)})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Profession &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_profession,onChange:le=&gt;B(&quot;recommended_profession&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_profession&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_profession&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_profession&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Pays de résidence &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_residence_country,onChange:le=&gt;B(&quot;recommended_residence_country&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_residence_country&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_residence_country&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_residence_country&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Téléphone WhatsApp &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;tel&quot;,value:p.recommended_phone_whatsapp,onChange:le=&gt;B(&quot;recommended_phone_whatsapp&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_phone_whatsapp&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_phone_whatsapp&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_phone_whatsapp&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Email &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:p.recommended_email,onChange:le=&gt;B(&quot;recommended_email&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_email&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_email&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_email&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Genre &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;homme&quot;,checked:p.recommended_gender===&quot;homme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;homme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Homme&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;femme&quot;,checked:p.recommended_gender===&quot;femme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;femme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Femme&quot;})]})]}),Q(&quot;recommended_gender&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_gender&quot;)})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex space-x-4 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;secondary&quot;,onClick:R,className:&quot;flex-1&quot;,children:&quot;Retour&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,disabled:c,className:&quot;flex-1&quot;,children:c?&quot;Envoi en cours...&quot;:&quot;Envoyer&quot;})]})]})}):ce?i.jsx(&quot;form&quot;,{onSubmit:le=&gt;{le.preventDefault(),X()},className:&quot;space-y-6&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-4 text-center uppercase&quot;,children:&quot;INFORMATIONS SUR LA PERSONNE RECOMMANDÉE&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;block text-sm font-medium text-ink-900 mb-2&quot;,children:&quot;Avez-vous déjà contacté la personne à propos de cette recommandation? (Il est fortement recommandé de contacter la personne avant que l&#039;invitation officielle de Haggai lui soit envoyée.)&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-4&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_contacted_before&quot;,value:&quot;oui&quot;,checked:p.recommended_contacted_before===&quot;oui&quot;,onChange:()=&gt;B(&quot;recommended_contacted_before&quot;,&quot;oui&quot;),className:&quot;w-4 h-4 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Oui&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_contacted_before&quot;,value:&quot;non&quot;,checked:p.recommended_contacted_before===&quot;non&quot;,onChange:()=&gt;B(&quot;recommended_contacted_before&quot;,&quot;non&quot;),className:&quot;w-4 h-4 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Non&quot;})]})]}),p.recommended_contacted_before===&quot;non&quot;&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-red-600 font-medium&quot;,children:&quot;Veuillez d&#039;abord contacter la personne que vous voulez recommander pour la prévenir de l&#039;invitation que Haggai va lui envoyer.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Prénom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_first_name,onChange:le=&gt;B(&quot;recommended_first_name&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_first_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_first_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_first_name&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Nom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_last_name,onChange:le=&gt;B(&quot;recommended_last_name&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_last_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_last_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_last_name&quot;)})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Profession &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_profession,onChange:le=&gt;B(&quot;recommended_profession&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_profession&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_profession&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_profession&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Pays de résidence &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_residence_country,onChange:le=&gt;B(&quot;recommended_residence_country&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_residence_country&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_residence_country&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_residence_country&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Téléphone WhatsApp &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;tel&quot;,value:p.recommended_phone_whatsapp,onChange:le=&gt;B(&quot;recommended_phone_whatsapp&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_phone_whatsapp&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_phone_whatsapp&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_phone_whatsapp&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Email &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:p.recommended_email,onChange:le=&gt;B(&quot;recommended_email&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_email&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_email&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_email&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Genre &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;homme&quot;,checked:p.recommended_gender===&quot;homme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;homme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Homme&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;femme&quot;,checked:p.recommended_gender===&quot;femme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;femme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Femme&quot;})]})]}),Q(&quot;recommended_gender&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_gender&quot;)})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex space-x-4 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;secondary&quot;,onClick:R,className:&quot;flex-1&quot;,children:&quot;Retour&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,disabled:c,className:&quot;flex-1&quot;,children:c?&quot;Envoi en cours...&quot;:&quot;Envoyer&quot;})]})]})}):i.jsx(&quot;form&quot;,{onSubmit:le=&gt;{le.preventDefault(),X()},className:&quot;space-y-6&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[fe&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-blue-50 border border-blue-200 rounded-lg&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-blue-800&quot;,children:`Vous avez également sélectionné &quot;Recommander quelqu&#039;un&quot;. Vous pourrez renseigner les informations de la personne recommandée sur la page suivante.`})}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Église ou organisation&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_church_organization,onChange:le=&gt;B(&quot;seminar_church_organization&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_church_organization&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_church_organization&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_church_organization&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Rôle/Ministère&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_role_ministry,onChange:le=&gt;B(&quot;seminar_role_ministry&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_role_ministry&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_role_ministry&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_role_ministry&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Situation matrimoniale &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_marital_status&quot;,value:&quot;marie&quot;,checked:p.seminar_marital_status===&quot;marie&quot;,onChange:()=&gt;B(&quot;seminar_marital_status&quot;,&quot;marie&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Marié(e)&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_marital_status&quot;,value:&quot;non_marie&quot;,checked:p.seminar_marital_status===&quot;non_marie&quot;,onChange:()=&gt;B(&quot;seminar_marital_status&quot;,&quot;non_marie&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Non marié(e)&quot;})]})]}),Q(&quot;seminar_marital_status&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_marital_status&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Genre &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_gender&quot;,value:&quot;homme&quot;,checked:p.seminar_gender===&quot;homme&quot;,onChange:()=&gt;B(&quot;seminar_gender&quot;,&quot;homme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Homme&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_gender&quot;,value:&quot;femme&quot;,checked:p.seminar_gender===&quot;femme&quot;,onChange:()=&gt;B(&quot;seminar_gender&quot;,&quot;femme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Femme&quot;})]})]}),Q(&quot;seminar_gender&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_gender&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Question ou préoccupation&quot;}),i.jsx(&quot;textarea&quot;,{value:p.seminar_question_or_concern,onChange:le=&gt;B(&quot;seminar_question_or_concern&quot;,le.target.value),rows:3,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 pt-4 border-t&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-base font-heading font-medium text-ink-800 mb-3&quot;,children:&quot;Compléments d&#039;information pour le séminaire&quot;}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Date de naissance&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:p.seminar_date_naissance,onChange:le=&gt;B(&quot;seminar_date_naissance&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_date_naissance&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_date_naissance&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_date_naissance&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Personne à contacter en cas de besoin + lien de parenté&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_contact_urgence_nom_lien,onChange:le=&gt;B(&quot;seminar_contact_urgence_nom_lien&quot;,le.target.value),placeholder:&quot;Nom et lien (ex. époux, parent)&quot;,className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_contact_urgence_nom_lien&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_contact_urgence_nom_lien&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_contact_urgence_nom_lien&quot;)})]}),i.jsx(&quot;h5&quot;,{className:&quot;text-sm font-medium text-ink-700 mt-4 mb-2&quot;,children:&quot;Éducation&quot;}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Niveau d&#039;études&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[&quot;primaire&quot;,&quot;secondaire_2&quot;,&quot;universitaire&quot;].map(le=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_niveau_etudes_2&quot;,value:le,checked:p.seminar_niveau_etudes===le,onChange:()=&gt;B(&quot;seminar_niveau_etudes&quot;,le),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:le===&quot;primaire&quot;?&quot;Primaire&quot;:le===&quot;secondaire_2&quot;?&quot;Secondaire 2&quot;:&quot;Universitaire&quot;})]},le))}),Q(&quot;seminar_niveau_etudes&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_niveau_etudes&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Domaine(s) d&#039;études / formation&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:k4.map(({value:le,label:ge})=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:p.seminar_domaines_etude?.includes(le)??!1,onChange:()=&gt;T(le),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:ge})]},le))}),p.seminar_domaines_etude?.includes(&quot;autre&quot;)&amp;&amp;i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_domaine_etude_autre,onChange:le=&gt;B(&quot;seminar_domaine_etude_autre&quot;,le.target.value),placeholder:&quot;Précisez&quot;,className:&quot;mt-2 w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;}),Q(&quot;seminar_domaines_etude&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_domaines_etude&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Niveau de français (écrit et parlé)&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[&quot;natif&quot;,&quot;avance&quot;,&quot;intermediaire&quot;,&quot;faible&quot;].map(le=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_niveau_francais_2&quot;,value:le,checked:p.seminar_niveau_francais===le,onChange:()=&gt;B(&quot;seminar_niveau_francais&quot;,le),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:le===&quot;natif&quot;?&quot;Natif/Native&quot;:le===&quot;avance&quot;?&quot;Avancé&quot;:le===&quot;intermediaire&quot;?&quot;Intermédiaire&quot;:&quot;Faible&quot;})]},le))}),Q(&quot;seminar_niveau_francais&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_niveau_francais&quot;)})]}),i.jsx(&quot;h5&quot;,{className:&quot;text-sm font-medium text-ink-700 mt-4 mb-2&quot;,children:&quot;Infos complémentaires&quot;}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Besoin d&#039;une lettre pour autorisation d&#039;absence ?&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_besoin_lettre_2&quot;,value:&quot;oui&quot;,checked:p.seminar_besoin_lettre_absence===&quot;oui&quot;,onChange:()=&gt;B(&quot;seminar_besoin_lettre_absence&quot;,&quot;oui&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Oui&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_besoin_lettre_2&quot;,value:&quot;non&quot;,checked:p.seminar_besoin_lettre_absence===&quot;non&quot;,onChange:()=&gt;B(&quot;seminar_besoin_lettre_absence&quot;,&quot;non&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Non&quot;})]})]}),p.seminar_besoin_lettre_absence===&quot;oui&quot;&amp;&amp;i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_besoin_lettre_details,onChange:le=&gt;B(&quot;seminar_besoin_lettre_details&quot;,le.target.value),placeholder:&quot;Détails&quot;,className:&quot;mt-2 w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;}),Q(&quot;seminar_besoin_lettre_absence&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_besoin_lettre_absence&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Problème de santé / maladie chronique nécessitant attention ?&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_sante_details,onChange:le=&gt;B(&quot;seminar_sante_details&quot;,le.target.value),placeholder:&quot;Indiquez « Aucun » si applicable&quot;,className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_sante_details&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_sante_details&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_sante_details&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Régime sans sel ?&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_regime_2&quot;,value:&quot;oui&quot;,checked:p.seminar_regime_sans_sel===&quot;oui&quot;,onChange:()=&gt;B(&quot;seminar_regime_sans_sel&quot;,&quot;oui&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Oui&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_regime_2&quot;,value:&quot;non&quot;,checked:p.seminar_regime_sans_sel===&quot;non&quot;,onChange:()=&gt;B(&quot;seminar_regime_sans_sel&quot;,&quot;non&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Non&quot;})]})]}),Q(&quot;seminar_regime_sans_sel&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_regime_sans_sel&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Confession religieuse :&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:C4.map(({value:le,label:ge})=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;seminar_confession_2&quot;,value:le,checked:p.seminar_confession_religieuse===le,onChange:()=&gt;K(le),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:ge})]},le))}),Q(&quot;seminar_confession_religieuse&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_confession_religieuse&quot;)}),p.seminar_confession_religieuse===&quot;autre&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Spécifiez :&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_confession_religieuse_autre,onChange:le=&gt;B(&quot;seminar_confession_religieuse_autre&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_confession_religieuse_autre&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_confession_religieuse_autre&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_confession_religieuse_autre&quot;)})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Quelles sont vos attentes ?&quot;}),i.jsx(&quot;textarea&quot;,{value:p.seminar_fardeau_transformation,onChange:le=&gt;B(&quot;seminar_fardeau_transformation&quot;,le.target.value),rows:2,className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_fardeau_transformation&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_fardeau_transformation&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_fardeau_transformation&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Qui vous a recommandé ?&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_recommande_par,onChange:le=&gt;B(&quot;seminar_recommande_par&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;seminar_recommande_par&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;seminar_recommande_par&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_recommande_par&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:&quot;Engagements&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:S4.map(({value:le,label:ge})=&gt;i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:p.seminar_engagements?.includes(le)??!1,onChange:()=&gt;L(le),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:ge})]},le))}),p.seminar_engagements?.includes(&quot;autre&quot;)&amp;&amp;i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.seminar_engagements_autre,onChange:le=&gt;B(&quot;seminar_engagements_autre&quot;,le.target.value),placeholder:&quot;Précisez&quot;,className:&quot;mt-2 w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;}),Q(&quot;seminar_engagements&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;seminar_engagements&quot;)})]})]}),p.seminar_intent===&quot;recommend&quot;&amp;&amp;!fe&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 pt-4 border-t&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900 mb-4 text-center uppercase&quot;,children:&quot;INFORMATIONS SUR LA PERSONNE RECOMMANDÉE&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;block text-sm font-medium text-ink-900 mb-2&quot;,children:&quot;Avez-vous déjà contacté la personne à propos de cette recommandation? (Il est fortement recommandé de contacter la personne avant que l&#039;invitation officielle de Haggai lui soit envoyée.)&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-4&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_contacted_before&quot;,value:&quot;oui&quot;,checked:p.recommended_contacted_before===&quot;oui&quot;,onChange:()=&gt;B(&quot;recommended_contacted_before&quot;,&quot;oui&quot;),className:&quot;w-4 h-4 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Oui&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_contacted_before&quot;,value:&quot;non&quot;,checked:p.recommended_contacted_before===&quot;non&quot;,onChange:()=&gt;B(&quot;recommended_contacted_before&quot;,&quot;non&quot;),className:&quot;w-4 h-4 border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Non&quot;})]})]}),p.recommended_contacted_before===&quot;non&quot;&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-red-600 font-medium&quot;,children:&quot;Veuillez d&#039;abord contacter la personne que vous voulez recommander pour la prévenir de l&#039;invitation que Haggai va lui envoyer.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Prénom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_first_name,onChange:le=&gt;B(&quot;recommended_first_name&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_first_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_first_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_first_name&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Nom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_last_name,onChange:le=&gt;B(&quot;recommended_last_name&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_last_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_last_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_last_name&quot;)})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Profession &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_profession,onChange:le=&gt;B(&quot;recommended_profession&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_profession&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_profession&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_profession&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Pays de résidence &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_residence_country,onChange:le=&gt;B(&quot;recommended_residence_country&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_residence_country&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_residence_country&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_residence_country&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Téléphone WhatsApp &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;tel&quot;,value:p.recommended_phone_whatsapp,onChange:le=&gt;B(&quot;recommended_phone_whatsapp&quot;,le.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_phone_whatsapp&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_phone_whatsapp&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_phone_whatsapp&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:&quot;Email (optionnel)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:p.recommended_email,onChange:le=&gt;B(&quot;recommended_email&quot;,le.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Genre &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender_4&quot;,value:&quot;homme&quot;,checked:p.recommended_gender===&quot;homme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;homme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Homme&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender_4&quot;,value:&quot;femme&quot;,checked:p.recommended_gender===&quot;femme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;femme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Femme&quot;})]})]}),Q(&quot;recommended_gender&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_gender&quot;)})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 pt-4 border-t&quot;,children:[p.selectedEvents.includes(&quot;seminar&quot;)&amp;&amp;i.jsx(E4,{}),i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-2 text-center uppercase&quot;,children:&quot;MÉTHODE DE PAIEMENT&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-3 text-center&quot;,children:&quot;Veuillez indiquer votre préférence de mode de paiement et le nombre d&#039;échéances ci-dessous.&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600 mb-6 text-center max-w-2xl mx-auto leading-relaxed&quot;,children:wv}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-3 gap-4&quot;,children:[i.jsxs(&quot;label&quot;,{className:`relative flex flex-col cursor-pointer rounded-xl overflow-hidden border-2 transition-all ${p.payment_method_selected===&quot;mobile_money&quot;?&quot;border-brand-700 shadow-lg bg-brand-50&quot;:&quot;border-gray-200 hover:border-brand-700 hover:shadow-md bg-white&quot;}`,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;payment_method&quot;,value:&quot;mobile_money&quot;,checked:p.payment_method_selected===&quot;mobile_money&quot;,onChange:()=&gt;B(&quot;payment_method_selected&quot;,&quot;mobile_money&quot;),className:&quot;sr-only&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;p-6 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;mb-3 flex justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;w-12 h-12 rounded-full bg-brand-700/20 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-6 h-6 text-brand-700&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,viewBox:&quot;0 0 24 24&quot;,children:i.jsx(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:2,d:&quot;M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z&quot;})})})}),i.jsx(&quot;h4&quot;,{className:&quot;text-base font-heading font-medium text-ink-900 mb-1&quot;,children:&quot;Mobile Money (en ligne ou en direct)&quot;}),p.payment_method_selected===&quot;mobile_money&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;absolute top-2 right-2 bg-brand-700 text-white rounded-full w-6 h-6 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-4 h-4&quot;,fill:&quot;currentColor&quot;,viewBox:&quot;0 0 20 20&quot;,children:i.jsx(&quot;path&quot;,{fillRule:&quot;evenodd&quot;,d:&quot;M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z&quot;,clipRule:&quot;evenodd&quot;})})})]})]}),i.jsxs(&quot;label&quot;,{className:`relative flex flex-col cursor-pointer rounded-xl overflow-hidden border-2 transition-all ${p.payment_method_selected===&quot;national_office&quot;?&quot;border-brand-700 shadow-lg bg-brand-50&quot;:&quot;border-gray-200 hover:border-brand-700 hover:shadow-md bg-white&quot;}`,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;payment_method&quot;,value:&quot;national_office&quot;,checked:p.payment_method_selected===&quot;national_office&quot;,onChange:()=&gt;B(&quot;payment_method_selected&quot;,&quot;national_office&quot;),className:&quot;sr-only&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;p-6 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;mb-3 flex justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;w-12 h-12 rounded-full bg-brand-700/20 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-6 h-6 text-brand-700&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,viewBox:&quot;0 0 24 24&quot;,children:i.jsx(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:2,d:&quot;M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4&quot;})})})}),i.jsx(&quot;h4&quot;,{className:&quot;text-base font-heading font-medium text-ink-900 mb-1&quot;,children:&quot;Envoi d&#039;argent (RIA, Western ou MoneyGram)&quot;}),p.payment_method_selected===&quot;national_office&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;absolute top-2 right-2 bg-brand-700 text-white rounded-full w-6 h-6 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-4 h-4&quot;,fill:&quot;currentColor&quot;,viewBox:&quot;0 0 20 20&quot;,children:i.jsx(&quot;path&quot;,{fillRule:&quot;evenodd&quot;,d:&quot;M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z&quot;,clipRule:&quot;evenodd&quot;})})})]})]}),i.jsxs(&quot;label&quot;,{className:`relative flex flex-col cursor-pointer rounded-xl overflow-hidden border-2 transition-all ${p.payment_method_selected===&quot;bank_transfer&quot;?&quot;border-brand-700 shadow-lg bg-brand-50&quot;:&quot;border-gray-200 hover:border-brand-700 hover:shadow-md bg-white&quot;}`,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;payment_method&quot;,value:&quot;bank_transfer&quot;,checked:p.payment_method_selected===&quot;bank_transfer&quot;,onChange:()=&gt;B(&quot;payment_method_selected&quot;,&quot;bank_transfer&quot;),className:&quot;sr-only&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;p-6 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;mb-3 flex justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;w-12 h-12 rounded-full bg-brand-700/20 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-6 h-6 text-brand-700&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,viewBox:&quot;0 0 24 24&quot;,children:i.jsx(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:2,d:&quot;M8 14v3m4-3v3m4-3v3M3 21h18M3 10h18M5 6h14a2 2 0 012 2v2H3V8a2 2 0 012-2z&quot;})})})}),i.jsx(&quot;h4&quot;,{className:&quot;text-base font-heading font-medium text-ink-900 mb-1&quot;,children:&quot;Virement bancaire&quot;}),p.payment_method_selected===&quot;bank_transfer&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;absolute top-2 right-2 bg-brand-700 text-white rounded-full w-6 h-6 flex items-center justify-center&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-4 h-4&quot;,fill:&quot;currentColor&quot;,viewBox:&quot;0 0 20 20&quot;,children:i.jsx(&quot;path&quot;,{fillRule:&quot;evenodd&quot;,d:&quot;M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z&quot;,clipRule:&quot;evenodd&quot;})})})]})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 pt-6 border-t border-gray-200&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-heading font-medium text-ink-900 mb-4 text-center uppercase&quot;,children:&quot;CONFIGURATION DES ÉCHÉANCES&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mb-6&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Nombre d&#039;échéances &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;flex gap-3&quot;,children:[1,2,3].map(le=&gt;i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;q(le),className:`flex-1 py-3 px-4 rounded-xl border-2 transition-all ${p.installment_count===le?&quot;border-brand-700 bg-brand-700 text-white&quot;:&quot;border-gray-200 hover:border-brand-700 text-ink-500&quot;}`,children:[le,&quot; &quot;,le===1?&quot;échéance&quot;:&quot;échéances&quot;]},le))})]}),i.jsx(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:Array.from({length:p.installment_count}).map((le,ge)=&gt;{const xe=p.installment_months[ge]||&quot;&quot;,pe=!xe||F([xe]),ue=d[`installment_month_${ge}`],we=!!ue||!pe&amp;&amp;!!xe;return i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Échéance &quot;,ge+1,&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;select&quot;,{value:xe,onChange:ke=&gt;H(ge,ke.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${we?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner un mois&quot;}),V().map(ke=&gt;i.jsx(&quot;option&quot;,{value:ke.value,children:ke.label},ke.value))]}),ue&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:ue[0]}),!ue&amp;&amp;!pe&amp;&amp;xe&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:&quot;L&#039;échéance doit être au plus tard 2 mois avant l&#039;événement (septembre 2026 au plus tard)&quot;})]},ge)})}),d.installment_months&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-red-600&quot;,children:d.installment_months[0]})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex space-x-4 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;secondary&quot;,onClick:R,className:&quot;flex-1&quot;,children:&quot;Retour&quot;}),fe?i.jsx(Ae,{type:&quot;button&quot;,onClick:X,className:&quot;flex-1&quot;,children:&quot;Valider et passer au suivant&quot;}):i.jsx(Ae,{type:&quot;submit&quot;,disabled:c,className:&quot;flex-1&quot;,children:c?&quot;Envoi en cours...&quot;:&quot;Envoyer&quot;})]})]})})}if(l===4){const te=p.selectedEvents.includes(&quot;summit&quot;),ie=p.selectedEvents.includes(&quot;seminar&quot;),de=p.selectedEvents.includes(&quot;recommend&quot;);return te&amp;&amp;ie&amp;&amp;de?i.jsx(&quot;form&quot;,{onSubmit:se=&gt;{se.preventDefault(),re()},className:&quot;space-y-6&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Recommander quelqu&#039;un au Séminaire&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Prénom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_first_name,onChange:se=&gt;B(&quot;recommended_first_name&quot;,se.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_first_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_first_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_first_name&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Nom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_last_name,onChange:se=&gt;B(&quot;recommended_last_name&quot;,se.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_last_name&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_last_name&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_last_name&quot;)})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Profession &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_profession,onChange:se=&gt;B(&quot;recommended_profession&quot;,se.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_profession&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_profession&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_profession&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Pays de résidence &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p.recommended_residence_country,onChange:se=&gt;B(&quot;recommended_residence_country&quot;,se.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_residence_country&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_residence_country&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_residence_country&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Téléphone WhatsApp &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;tel&quot;,value:p.recommended_phone_whatsapp,onChange:se=&gt;B(&quot;recommended_phone_whatsapp&quot;,se.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_phone_whatsapp&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_phone_whatsapp&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_phone_whatsapp&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-1&quot;,children:[&quot;Email &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:p.recommended_email,onChange:se=&gt;B(&quot;recommended_email&quot;,se.target.value),className:`w-full px-4 py-2 border rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600 ${Q(&quot;recommended_email&quot;)?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`}),Q(&quot;recommended_email&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_email&quot;)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-light text-ink-500 mb-2&quot;,children:[&quot;Genre &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;homme&quot;,checked:p.recommended_gender===&quot;homme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;homme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Homme&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;radio&quot;,name:&quot;recommended_gender&quot;,value:&quot;femme&quot;,checked:p.recommended_gender===&quot;femme&quot;,onChange:()=&gt;B(&quot;recommended_gender&quot;,&quot;femme&quot;),className:&quot;mr-2&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-light text-ink-500&quot;,children:&quot;Femme&quot;})]})]}),Q(&quot;recommended_gender&quot;)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:Q(&quot;recommended_gender&quot;)})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex space-x-4 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;secondary&quot;,onClick:()=&gt;u(3),className:&quot;flex-1&quot;,children:&quot;Retour&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,disabled:c,className:&quot;flex-1&quot;,children:c?&quot;Envoi en cours...&quot;:&quot;Envoyer&quot;})]})]})}):null}return null}const Ao=&quot;communication@sommetfrancophone.org&quot;,rm=&quot;+225 05 5427 5725 (WhatsApp)&quot;;function M$(e,r){return e===1?&quot;PREINSCRIPTIONS &amp; RECOMMANDATIONS&quot;:r.length===1&amp;&amp;r[0]===&quot;summit&quot;?&quot;PREINSCRIPTION AU SOMMET&quot;:r.length===1&amp;&amp;r[0]===&quot;seminar&quot;?&quot;PREINSCRIPTION AU SEMINAIRE&quot;:r.length===1&amp;&amp;r[0]===&quot;recommend&quot;?&quot;RECOMMANDATION AU SEMINAIRE&quot;:&quot;PREINSCRIPTIONS &amp; RECOMMANDATIONS&quot;}function P$(e){return e===1?&quot;Sélectionner une option ci-dessous. Vous pourrez revenir pour un autre choix.&quot;:&quot;Complétez le formulaire ci-dessous.&quot;}function O$(){const[e]=ff(),r=e.get(&quot;preselect&quot;),t=r===&quot;summit&quot;?[&quot;summit&quot;]:r===&quot;seminar&quot;?[&quot;seminar&quot;]:r===&quot;recommend&quot;?[&quot;recommend&quot;]:void 0,[n,o]=O.useState(&quot;form&quot;),[s,l]=O.useState({}),[u,c]=O.useState(!1),[a,d]=O.useState(null),[f,h]=O.useState({step:1,selectedEvents:[]}),m=v=&gt;{v.type===&quot;recommendation&quot;?l({recommendationId:v.id,type:&quot;recommendation&quot;}):l({registrationId:v.id,type:&quot;registration&quot;}),o(&quot;success&quot;)},p=v=&gt;{l(_=&gt;_.registrationId||_.recommendationId||n===&quot;success&quot;?{..._,existingRegistrationId:v,hasConflict:!0}:(o(&quot;conflict&quot;),{existingRegistrationId:v}))},x=v=&gt;{l({errorMessage:v}),v.includes(&quot;indisponibles&quot;)?o(&quot;unavailable&quot;):o(&quot;error&quot;)},g=()=&gt;{o(&quot;form&quot;),l({}),d(null)};O.useEffect(()=&gt;{n!==&quot;form&quot;&amp;&amp;window.scrollTo({top:0,behavior:&quot;smooth&quot;})},[n]);const y=async()=&gt;{if(s.existingRegistrationId){c(!0),d(null);try{await f2.resendVerification(s.existingRegistrationId),d(&quot;Email de vérification renvoyé avec succès. Vérifiez votre boîte de réception.&quot;)}catch(v){v instanceof kt?v.status===422?d(v.data.errors?.registration?.[0]||v.message):d(v.message||&quot;Erreur lors du renvoi de l&#039;email.&quot;):d(&quot;Une erreur est survenue lors du renvoi de l&#039;email.&quot;)}finally{c(!1)}}};return n===&quot;success&quot;?i.jsx(El,{children:i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 py-20&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;max-w-2xl mx-auto px-4 sm:px-6 lg:px-8&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-soft p-8 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex justify-center mb-6&quot;,children:i.jsx(FF,{className:&quot;w-16 h-16 text-green-600&quot;})}),i.jsx(&quot;h1&quot;,{className:&quot;text-3xl font-heading font-medium text-ink-900 mb-4&quot;,children:s.type===&quot;recommendation&quot;?&quot;Recommandation reçue&quot;:&quot;Inscription reçue&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 font-light mb-6&quot;,children:s.type===&quot;recommendation&quot;?&quot;Votre recommandation a été enregistrée avec succès.&quot;:&quot;Votre inscription a été enregistrée avec succès.&quot;}),s.type===&quot;registration&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-8 text-left rounded-xl border-2 border-amber-400/80 bg-amber-50/90 p-5 shadow-sm&quot;,role:&quot;status&quot;,&quot;aria-live&quot;:&quot;polite&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-start gap-3&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-amber-100 text-amber-800&quot;,children:i.jsx(mB,{className:&quot;h-5 w-5&quot;,&quot;aria-hidden&quot;:!0})}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-heading text-lg font-semibold text-ink-900&quot;,children:&quot;Prochaine étape indispensable : activer votre compte par e-mail&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm font-medium text-ink-700&quot;,children:&quot;Sans cette étape, vous ne pourrez pas vous connecter ni poursuivre votre inscription.&quot;}),i.jsxs(&quot;ol&quot;,{className:&quot;mt-4 list-decimal space-y-2 pl-5 text-sm text-ink-800&quot;,children:[i.jsx(&quot;li&quot;,{children:&quot;Ouvrez la boîte de réception de l’adresse e-mail que vous avez indiquée dans le formulaire.&quot;}),i.jsxs(&quot;li&quot;,{children:[&quot;Repérez le message dont l’expéditeur est &quot;,i.jsx(&quot;strong&quot;,{children:&quot;Sommet Francophone&quot;}),&quot; et dont l’objet commence par&quot;,&quot; &quot;,i.jsx(&quot;strong&quot;,{children:&quot;« Confirmez votre préinscription et activez votre compte… »&quot;}),&quot; (la fin du titre correspond au nom de l’événement, après un tiret). Recherchez ce début d’objet dans votre boîte si besoin.&quot;]}),i.jsx(&quot;li&quot;,{children:&quot;Cliquez sur le lien dans ce message pour confirmer votre adresse et activer votre compte.&quot;})]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-4 text-sm text-ink-600&quot;,children:[i.jsx(&quot;strong&quot;,{className:&quot;text-ink-800&quot;,children:&quot;Vous ne voyez pas le message ?&quot;}),&quot; &quot;,&quot;Vérifiez le dossier Courrier indésirable ou Spam, et attendez quelques minutes avant de nous écrire.&quot;]})]})]})}),s.type===&quot;recommendation&quot;&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 font-light mb-8&quot;,children:&quot;Merci pour votre recommandation. L&#039;équipe examinera la candidature et contactera la personne recommandée si nécessaire.&quot;}),s.registrationId&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-8&quot;,children:[&quot;Numéro d&#039;inscription : &quot;,i.jsxs(&quot;strong&quot;,{children:[&quot;#&quot;,s.registrationId]})]}),s.recommendationId&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-8&quot;,children:[&quot;Numéro de recommandation : &quot;,i.jsxs(&quot;strong&quot;,{children:[&quot;#&quot;,s.recommendationId]})]}),s.hasConflict&amp;&amp;s.existingRegistrationId&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-8&quot;,children:i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-yellow-800&quot;,children:[i.jsx(&quot;strong&quot;,{children:&quot;Note :&quot;}),&quot; Une inscription existe déjà pour un autre événement (numéro #&quot;,s.existingRegistrationId,&quot;).&quot;]})}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(Ae,{onClick:g,variant:&quot;secondary&quot;,children:&quot;Nouvelle inscription&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2 text-sm text-ink-500&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-light&quot;,children:&quot;Pour toute question :&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center gap-4 flex-wrap&quot;,children:[i.jsxs(&quot;a&quot;,{href:`mailto:${Ao}`,className:&quot;hover:text-brand-9002 inline-flex items-center gap-1&quot;,children:[i.jsx(Aa,{className:&quot;w-4 h-4&quot;}),Ao]}),i.jsxs(&quot;span&quot;,{className:&quot;inline-flex items-center gap-1&quot;,children:[i.jsx(Ed,{className:&quot;w-4 h-4&quot;}),rm]})]})]}),i.jsx(&quot;div&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;/&quot;,className:&quot;text-brand-9002 hover:text-brand-900 font-light text-sm&quot;,children:&quot;Retour à l&#039;accueil&quot;})})]})]})})})}):n===&quot;conflict&quot;?i.jsx(El,{children:i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 py-20&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;max-w-2xl mx-auto px-4 sm:px-6 lg:px-8&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-soft p-8 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex justify-center mb-6&quot;,children:i.jsx(hv,{className:&quot;w-16 h-16 text-yellow-600&quot;})}),i.jsx(&quot;h1&quot;,{className:&quot;text-3xl font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Inscription déjà existante&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 font-light mb-6&quot;,children:&quot;Un utilisateur existe déjà avec le même email ou le même numéro de téléphone pour cet événement.&quot;}),s.existingRegistrationId&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-8&quot;,children:[&quot;Numéro d&#039;inscription existante : &quot;,i.jsxs(&quot;strong&quot;,{children:[&quot;#&quot;,s.existingRegistrationId]})]}),i.jsx(&quot;div&quot;,{className:&quot;space-y-4 mb-8&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 font-light&quot;,children:&quot;Si vous avez des questions ou souhaitez modifier votre inscription, veuillez contacter l&#039;équipe.&quot;})}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(Ae,{onClick:y,variant:&quot;secondary&quot;,disabled:u,children:u?&quot;Envoi en cours...&quot;:&quot;Renvoyer l&#039;email de vérification&quot;}),a&amp;&amp;i.jsx(&quot;p&quot;,{className:`text-sm ${a.includes(&quot;succès&quot;)?&quot;text-green-600&quot;:&quot;text-red-600&quot;}`,children:a}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2 text-sm text-ink-500&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-light&quot;,children:&quot;Ou contactez-nous :&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center space-x-2&quot;,children:[i.jsx(Aa,{className:&quot;w-4 h-4&quot;}),i.jsx(&quot;a&quot;,{href:`mailto:${Ao}`,className:&quot;hover:text-brand-9002&quot;,children:Ao})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center space-x-2&quot;,children:[i.jsx(Ed,{className:&quot;w-4 h-4&quot;}),i.jsx(&quot;span&quot;,{children:rm})]})]}),i.jsx(Ae,{onClick:g,variant:&quot;outline&quot;,children:&quot;Nouvelle inscription&quot;}),i.jsx(&quot;div&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;/&quot;,className:&quot;text-brand-9002 hover:text-brand-900 font-light text-sm&quot;,children:&quot;Retour à l&#039;accueil&quot;})})]})]})})})}):n===&quot;error&quot;?i.jsx(El,{children:i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 py-20&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;max-w-2xl mx-auto px-4 sm:px-6 lg:px-8&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-soft p-8 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex justify-center mb-6&quot;,children:i.jsx(VF,{className:&quot;w-16 h-16 text-red-600&quot;})}),i.jsx(&quot;h1&quot;,{className:&quot;text-3xl font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Erreur&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 font-light mb-8&quot;,children:s.errorMessage||&quot;Une erreur est survenue lors de l&#039;inscription.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(Ae,{onClick:g,children:&quot;Réessayer&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2 text-sm text-ink-500&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-light&quot;,children:&quot;Ou contactez-nous :&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center space-x-2&quot;,children:[i.jsx(Aa,{className:&quot;w-4 h-4&quot;}),i.jsx(&quot;a&quot;,{href:`mailto:${Ao}`,className:&quot;hover:text-brand-9002&quot;,children:Ao})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center space-x-2&quot;,children:[i.jsx(Ed,{className:&quot;w-4 h-4&quot;}),i.jsx(&quot;span&quot;,{children:rm})]})]}),i.jsx(&quot;div&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;/&quot;,className:&quot;text-brand-9002 hover:text-brand-900 font-light text-sm&quot;,children:&quot;Retour à l&#039;accueil&quot;})})]})]})})})}):n===&quot;unavailable&quot;?i.jsx(El,{children:i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 py-20&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;max-w-2xl mx-auto px-4 sm:px-6 lg:px-8&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-soft p-8 text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex justify-center mb-6&quot;,children:i.jsx(hv,{className:&quot;w-16 h-16 text-yellow-600&quot;})}),i.jsx(&quot;h1&quot;,{className:&quot;text-3xl font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Inscriptions publiques indisponibles&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 font-light mb-8&quot;,children:&quot;Les inscriptions publiques ne sont pas disponibles pour le moment. Veuillez réessayer plus tard ou contacter l&#039;équipe pour plus d&#039;informations.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;text-sm text-ink-500&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center space-x-2 mb-2&quot;,children:[i.jsx(Aa,{className:&quot;w-4 h-4&quot;}),i.jsx(&quot;a&quot;,{href:`mailto:${Ao}`,className:&quot;hover:text-brand-9002&quot;,children:Ao})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center space-x-2&quot;,children:[i.jsx(Ed,{className:&quot;w-4 h-4&quot;}),i.jsx(&quot;span&quot;,{children:rm})]})]}),i.jsx(&quot;div&quot;,{children:i.jsx(&quot;a&quot;,{href:&quot;/&quot;,className:&quot;text-brand-9002 hover:text-brand-900 font-light text-sm&quot;,children:&quot;Retour à l&#039;accueil&quot;})})]})]})})})}):i.jsx(El,{children:i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 py-20&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;w-full mx-auto&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;text-center mb-12 px-4 sm:px-6 lg:px-8&quot;,children:[i.jsx(&quot;h1&quot;,{className:&quot;text-4xl font-heading font-medium text-ink-900 mb-4 uppercase&quot;,children:M$(f.step,f.selectedEvents)}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 font-light text-lg&quot;,children:P$(f.step)})]}),i.jsx(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-soft p-4 sm:p-6 md:p-8 mx-4 sm:mx-6 md:mx-[20%]&quot;,children:i.jsx(A$,{preselectedEvents:t,onSuccess:m,onConflict:p,onError:x,onFormLayoutChange:h})})]})})})}function wt({children:e,className:r=&quot;&quot;}){return i.jsx(&quot;div&quot;,{className:`bg-surface-0 rounded-xl2 shadow-soft p-6 ${r}`,children:e})}function T$(){const e=Ni(),r=ji(),{isAuthenticated:t,canAccessAdmin:n,loading:o,refetch:s,roles:l}=Ts(),[u,c]=O.useState(&quot;&quot;),[a,d]=O.useState(&quot;&quot;),[f,h]=O.useState(!1),[m,p]=O.useState(!1),[x,g]=O.useState(null),[y,v]=O.useState(null);if(O.useEffect(()=&gt;{const S=r.state?.resetSuccess;S&amp;&amp;(v(S),e(r.pathname,{replace:!0,state:{}}))},[r.pathname,r.state,e]),o)return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Chargement...&quot;})});if(t){const A=n&amp;&amp;!l.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!l.includes(&quot;COMMISSION_ADMINISTRATION&quot;)&amp;&amp;!l.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;(l.includes(&quot;COMMISSION_FINANCE&quot;)||l.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)||l.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;))?&quot;/admin/finance&quot;:&quot;/admin/registrations&quot;;return i.jsx(Kn,{to:n?A:&quot;/account&quot;,replace:!0})}const _=async S=&gt;{S.preventDefault(),p(!0),g(null);try{const A=await vi.login({email:u.trim(),password:a,remember_me:f});if(!A||!A.token){g(&quot;Réponse invalide du serveur.&quot;);return}let I=A.user??null;if(I||(I=await s()),!I){g(&quot;Connexion réussie mais impossible de charger le profil. Réessayez ou rechargez la page.&quot;);return}const V=[&quot;SUPER_ADMIN&quot;,&quot;COMMISSION_ADMINISTRATION&quot;,&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;,&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;,&quot;COMMISSION_FINANCE&quot;,&quot;COMMISSION_FINANCE_SOMMET&quot;,&quot;COMMISSION_FINANCE_SEMINAIRE&quot;,&quot;COMMISSION_COMMUNICATION&quot;,&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;],F=(I.roles??[]).map(K=&gt;typeof K==&quot;string&quot;?K:K.name).filter(K=&gt;typeof K==&quot;string&quot;),q=F.some(K=&gt;V.includes(K)),B=!F.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;(F.includes(&quot;COMMISSION_FINANCE&quot;)||F.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)||F.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;))?&quot;/admin/finance&quot;:&quot;/admin/registrations&quot;;e(q?B:&quot;/account&quot;,{replace:!0})}catch(A){if(console.error(&quot;Erreur de connexion complète:&quot;,A),A instanceof kt)if(console.error(&quot;Détails de l&#039;erreur API:&quot;,{status:A.status,data:A.data,message:A.message}),A.status===422&amp;&amp;A.data.errors){const I=Object.values(A.data.errors).flat();g(I.join(&quot;. &quot;)||&quot;Erreur de validation.&quot;)}else A.status===401||A.status===422?A.data.errors&amp;&amp;A.data.errors.email?g(A.data.errors.email[0]||&quot;Email ou mot de passe incorrect.&quot;):g(A.data.message||&quot;Email ou mot de passe incorrect.&quot;):A.status===403?g(&quot;Votre compte n&#039;a pas les permissions nécessaires.&quot;):A.status===0?g(&quot;Impossible de joindre l’API (réseau ou serveur arrêté). Vérifiez que Laravel tourne et, si besoin, `VITE_API_PROXY_TARGET` dans `.env.development`.&quot;):g(A.data?.message||&quot;Une erreur est survenue lors de la connexion.&quot;);else g(&quot;Une erreur inattendue est survenue.&quot;)}finally{p(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-md w-full&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;text-center mb-8&quot;,children:[i.jsx(&quot;h1&quot;,{className:&quot;text-3xl font-bold text-ink-900 mb-2&quot;,children:&quot;Connexion&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Connectez-vous à votre espace&quot;})]}),i.jsx(wt,{children:i.jsxs(&quot;form&quot;,{onSubmit:_,className:&quot;space-y-6&quot;,children:[y&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-brand-50 border border-brand-200 rounded-lg p-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-800&quot;,children:y})}),x&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:x})}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;email&quot;,className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Email&quot;}),i.jsx(&quot;input&quot;,{id:&quot;email&quot;,type:&quot;email&quot;,value:u,onChange:S=&gt;c(S.target.value),required:!0,autoComplete:&quot;email&quot;,className:&quot;w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent transition-all&quot;,placeholder:&quot;votre-email@example.com&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;password&quot;,className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Mot de passe&quot;}),i.jsx(&quot;input&quot;,{id:&quot;password&quot;,type:&quot;password&quot;,value:a,onChange:S=&gt;d(S.target.value),required:!0,autoComplete:&quot;current-password&quot;,className:&quot;w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent transition-all&quot;,placeholder:&quot;••••••••&quot;}),i.jsx(&quot;div&quot;,{className:&quot;mt-2 text-right&quot;,children:i.jsx(ut,{to:&quot;/mot-de-passe-oublie&quot;,className:&quot;text-sm text-brand-700 hover:text-brand-900 hover:underline&quot;,children:&quot;Mot de passe oublié ?&quot;})})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-start gap-3&quot;,children:[i.jsx(&quot;input&quot;,{id:&quot;remember_me&quot;,type:&quot;checkbox&quot;,checked:f,onChange:S=&gt;h(S.target.checked),className:&quot;mt-1 h-4 w-4 rounded border-gray-300 text-brand-700 focus:ring-brand-700&quot;}),i.jsx(&quot;label&quot;,{htmlFor:&quot;remember_me&quot;,className:&quot;text-sm text-ink-600&quot;,children:&quot;Rester connecte pendant quelques jours sur cet appareil&quot;})]}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,className:&quot;w-full&quot;,disabled:m,children:m?&quot;Connexion...&quot;:&quot;Se connecter&quot;})]})}),i.jsx(&quot;div&quot;,{className:&quot;mt-6 text-center&quot;,children:i.jsx(&quot;a&quot;,{href:&quot;/&quot;,className:&quot;text-sm text-brand-700 hover:text-brand-900 hover:underline&quot;,children:&quot;← Retour à l&#039;accueil&quot;})})]})})}function I$(){const[e,r]=O.useState(&quot;&quot;),[t,n]=O.useState(!1),[o,s]=O.useState(!1),[l,u]=O.useState(null),c=async a=&gt;{a.preventDefault(),n(!0),u(null);try{await vi.forgotPassword({email:e.trim()}),s(!0)}catch(d){d instanceof kt?d.status===429?u(&quot;Trop de demandes pour cette adresse. Réessayez dans une heure au plus.&quot;):d.status===422&amp;&amp;d.data.errors?.email?u(d.data.errors.email[0]||&quot;Adresse e-mail invalide.&quot;):u(d.data?.message||&quot;Une erreur est survenue.&quot;):u(&quot;Une erreur est survenue.&quot;)}finally{n(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-md w-full&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;text-center mb-8&quot;,children:[i.jsx(&quot;h1&quot;,{className:&quot;text-3xl font-bold text-ink-900 mb-2&quot;,children:&quot;Mot de passe oublié&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Saisissez l’adresse e-mail de votre compte. Si un compte actif correspond, vous recevrez un lien pour choisir un nouveau mot de passe.&quot;})]}),i.jsx(wt,{children:o?i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;bg-brand-50 border border-brand-200 rounded-lg p-4 text-sm text-ink-800&quot;,children:&quot;Si un compte actif correspond à cette adresse, un e-mail contenant un lien de réinitialisation a été envoyé. Pensez à vérifier vos courriers indésirables.&quot;}),i.jsx(ut,{to:&quot;/login&quot;,className:&quot;block text-center text-sm text-brand-700 hover:text-brand-900 hover:underline font-medium&quot;,children:&quot;Retour à la connexion&quot;})]}):i.jsxs(&quot;form&quot;,{onSubmit:c,className:&quot;space-y-6&quot;,children:[l&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:l})}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;email&quot;,className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;E-mail&quot;}),i.jsx(&quot;input&quot;,{id:&quot;email&quot;,type:&quot;email&quot;,value:e,onChange:a=&gt;r(a.target.value),required:!0,autoComplete:&quot;email&quot;,className:&quot;w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent transition-all&quot;,placeholder:&quot;votre-email@example.com&quot;})]}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,className:&quot;w-full&quot;,disabled:t,children:t?&quot;Envoi…&quot;:&quot;Envoyer le lien&quot;})]})}),i.jsx(&quot;div&quot;,{className:&quot;mt-6 text-center&quot;,children:i.jsx(ut,{to:&quot;/login&quot;,className:&quot;text-sm text-brand-700 hover:text-brand-900 hover:underline&quot;,children:&quot;← Retour à la connexion&quot;})})]})})}function R$(){const[e]=ff(),r=Ni(),t=e.get(&quot;token&quot;)?.trim()??&quot;&quot;,n=e.get(&quot;email&quot;)?.trim()??&quot;&quot;,[o,s]=O.useState(&quot;&quot;),[l,u]=O.useState(&quot;&quot;),[c,a]=O.useState(!1),[d,f]=O.useState(null),[h,m]=O.useState({}),p=!t||!n,x=async g=&gt;{if(g.preventDefault(),!p){m({}),f(null),a(!0);try{await vi.resetPassword({email:n,token:t,password:o,password_confirmation:l}),r(&quot;/login&quot;,{replace:!0,state:{resetSuccess:&quot;Votre mot de passe a été réinitialisé. Vous pouvez vous connecter.&quot;}})}catch(y){if(y instanceof kt)if(y.status===422&amp;&amp;y.data.errors){const v={};Object.entries(y.data.errors).forEach(([_,S])=&gt;{Array.isArray(S)&amp;&amp;S[0]&amp;&amp;(v[_]=S[0])}),m(v),f(v.email||v.password||&quot;Vérifiez le mot de passe (8 caractères minimum) et la confirmation.&quot;)}else f(y.data?.message||&quot;Le lien est invalide ou a expiré. Demandez un nouveau lien depuis la page de connexion.&quot;);else f(&quot;Une erreur est survenue.&quot;)}finally{a(!1)}}};return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-md w-full&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;text-center mb-8&quot;,children:[i.jsx(&quot;h1&quot;,{className:&quot;text-3xl font-bold text-ink-900 mb-2&quot;,children:&quot;Nouveau mot de passe&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Choisissez un mot de passe sécurisé (au moins 8 caractères).&quot;})]}),i.jsx(wt,{children:p?i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:&quot;Lien incomplet ou expiré. Ouvrez le lien reçu par e-mail ou demandez une nouvelle réinitialisation.&quot;}),i.jsx(ut,{to:&quot;/mot-de-passe-oublie&quot;,className:&quot;block text-center text-sm text-brand-700 hover:underline&quot;,children:&quot;Demander un nouveau lien&quot;})]}):i.jsxs(&quot;form&quot;,{onSubmit:x,className:&quot;space-y-6&quot;,children:[d&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:d})}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Compte&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-800 break-all bg-gray-50 rounded-lg px-3 py-2 border border-gray-200&quot;,children:n})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;password&quot;,className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Nouveau mot de passe&quot;}),i.jsx(&quot;input&quot;,{id:&quot;password&quot;,type:&quot;password&quot;,value:o,onChange:g=&gt;s(g.target.value),required:!0,minLength:8,autoComplete:&quot;new-password&quot;,className:&quot;w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;}),h.password&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:h.password})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;password_confirmation&quot;,className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Confirmer le mot de passe&quot;}),i.jsx(&quot;input&quot;,{id:&quot;password_confirmation&quot;,type:&quot;password&quot;,value:l,onChange:g=&gt;u(g.target.value),required:!0,minLength:8,autoComplete:&quot;new-password&quot;,className:&quot;w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,className:&quot;w-full&quot;,disabled:c,children:c?&quot;Enregistrement…&quot;:&quot;Enregistrer le mot de passe&quot;})]})}),i.jsx(&quot;div&quot;,{className:&quot;mt-6 text-center&quot;,children:i.jsx(ut,{to:&quot;/login&quot;,className:&quot;text-sm text-brand-700 hover:text-brand-900 hover:underline&quot;,children:&quot;← Retour à la connexion&quot;})})]})})}function D$(){const[e]=ff(),r=Ni(),t=e.get(&quot;token&quot;)??&quot;&quot;,[n,o]=O.useState(t?&quot;initial&quot;:&quot;error&quot;),[s,l]=O.useState(!!t),[u,c]=O.useState(!1),[a,d]=O.useState(&quot;&quot;),[f,h]=O.useState(&quot;&quot;),[m,p]=O.useState(!1),[x,g]=O.useState(&quot;&quot;),[y,v]=O.useState({});O.useEffect(()=&gt;{if(!t){g(&quot;Lien d&#039;activation invalide ou manquant.&quot;);return}let A=!1;return vi.checkActivation(t).then(I=&gt;{A||(c(I.already_active),l(!1))}).catch(I=&gt;{A||(l(!1),o(&quot;error&quot;),g(I instanceof kt?I.data?.errors?.token?.[0]??I.data?.message??&quot;Le lien d&#039;activation est invalide ou a expiré.&quot;:&quot;Une erreur est survenue.&quot;))}),()=&gt;{A=!0}},[t]);const _=async A=&gt;{if(A.preventDefault(),!!t){v({}),p(!0),g(&quot;&quot;);try{const I={token:t.trim()};u||(I.password=a,I.password_confirmation=f);const V=await vi.activate(I);o(&quot;success&quot;);const F=u?&quot;Inscription confirmée.&quot;:&quot;Votre compte est activé. Vous pouvez maintenant accéder à votre espace.&quot;;g(V?.message??F)}catch(I){if(o(&quot;error&quot;),I instanceof kt)if(I.status===422&amp;&amp;I.data.errors){const V={};Object.entries(I.data.errors).forEach(([F,q])=&gt;{Array.isArray(q)&amp;&amp;q[0]&amp;&amp;(V[F]=q[0])}),v(V),g(I.data.errors?.token?.[0]??I.data.errors?.password?.[0]??&quot;Vérifiez votre mot de passe (8 caractères minimum) et la confirmation.&quot;)}else g(I.data?.message??&quot;Le lien d&#039;activation est invalide ou a expiré. Utilisez le lien le plus récent reçu par email.&quot;);else g(&quot;Une erreur est survenue. Veuillez réessayer plus tard.&quot;)}finally{p(!1)}}},S=()=&gt;{_({preventDefault:()=&gt;{}})};return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center py-12 px-4&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-md w-full&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;text-center mb-8&quot;,children:[i.jsx(&quot;h1&quot;,{className:&quot;text-3xl font-bold text-ink-900 mb-2&quot;,children:&quot;Activation de compte&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:u?&quot;Confirmez cette inscription pour votre espace participant&quot;:&quot;Définissez votre mot de passe pour accéder à votre espace participant&quot;})]}),i.jsxs(wt,{children:[n===&quot;error&quot;&amp;&amp;!t&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mb-6&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-red-600&quot;,children:x}),i.jsx(Ae,{variant:&quot;primary&quot;,className:&quot;mt-4&quot;,onClick:()=&gt;r(&quot;/&quot;),children:&quot;Retour à l&#039;accueil&quot;})]}),s&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;py-8 text-center text-ink-500&quot;,children:&quot;Vérification du lien en cours...&quot;}),!s&amp;&amp;u&amp;&amp;(n===&quot;initial&quot;||n===&quot;error&quot;)&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-6&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-ink-700&quot;,children:&quot;Vous avez déjà un compte actif (par exemple suite à une inscription au Sommet). Cliquez ci-dessous pour confirmer cette nouvelle inscription sans modifier votre mot de passe.&quot;}),x&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:x})}),i.jsx(Ae,{variant:&quot;primary&quot;,className:&quot;w-full&quot;,onClick:S,disabled:m,children:m?&quot;Confirmation en cours...&quot;:&quot;Confirmer cette inscription&quot;})]}),!s&amp;&amp;!u&amp;&amp;(n===&quot;initial&quot;||n===&quot;loading&quot;||n===&quot;error&quot;&amp;&amp;t)&amp;&amp;i.jsxs(&quot;form&quot;,{onSubmit:_,className:&quot;space-y-6&quot;,children:[x&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:x})}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;password&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-2&quot;,children:&quot;Mot de passe&quot;}),i.jsx(&quot;input&quot;,{id:&quot;password&quot;,type:&quot;password&quot;,value:a,onChange:A=&gt;d(A.target.value),required:!0,minLength:8,autoComplete:&quot;new-password&quot;,className:`w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent ${y.password?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`,placeholder:&quot;••••••••&quot;}),y.password&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:y.password})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;password_confirmation&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-2&quot;,children:&quot;Confirmer le mot de passe&quot;}),i.jsx(&quot;input&quot;,{id:&quot;password_confirmation&quot;,type:&quot;password&quot;,value:f,onChange:A=&gt;h(A.target.value),required:!0,minLength:8,autoComplete:&quot;new-password&quot;,className:`w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent ${y.password_confirmation?&quot;border-red-500&quot;:&quot;border-gray-300&quot;}`,placeholder:&quot;••••••••&quot;}),y.password_confirmation&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:y.password_confirmation})]}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,className:&quot;w-full&quot;,disabled:m,children:m?&quot;Activation en cours...&quot;:&quot;Activer mon compte&quot;})]}),n===&quot;success&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;text-center&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;inline-flex items-center justify-center w-16 h-16 rounded-full bg-green-100 mb-6&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-8 h-8 text-green-600&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,viewBox:&quot;0 0 24 24&quot;,children:i.jsx(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:2,d:&quot;M5 13l4 4L19 7&quot;})})}),i.jsx(&quot;h2&quot;,{className:&quot;text-xl font-semibold text-ink-900 mb-2&quot;,children:&quot;Compte activé&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 mb-6&quot;,children:x}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:[i.jsx(Ae,{variant:&quot;primary&quot;,className:&quot;w-full&quot;,onClick:()=&gt;r(&quot;/account&quot;),children:&quot;Aller à mon espace&quot;}),i.jsx(Ae,{variant:&quot;outline&quot;,className:&quot;w-full&quot;,onClick:()=&gt;r(&quot;/&quot;),children:&quot;Retour à l&#039;accueil&quot;})]})]})]}),i.jsx(&quot;div&quot;,{className:&quot;mt-6 text-center&quot;,children:i.jsx(&quot;a&quot;,{href:&quot;/&quot;,className:&quot;text-sm text-brand-700 hover:text-brand-900 hover:underline&quot;,children:&quot;← Retour à l&#039;accueil&quot;})})]})})}const Ji={CI:{label:&quot;Côte d&#039;Ivoire&quot;,phonePlaceholder:&quot;0709000001&quot;,operators:[{apiValue:&quot;Orange&quot;,label:&quot;Orange Money&quot;},{apiValue:&quot;Mtn&quot;,label:&quot;MTN CI&quot;},{apiValue:&quot;Moov&quot;,label:&quot;Moov CI&quot;}]},BF:{label:&quot;Burkina Faso&quot;,phonePlaceholder:&quot;73300100&quot;,operators:[{apiValue:&quot;Orange&quot;,label:&quot;Orange BF&quot;},{apiValue:&quot;Moov&quot;,label:&quot;Moov BF&quot;},{apiValue:&quot;Coris&quot;,label:&quot;Coris BF&quot;}]},SN:{label:&quot;Sénégal&quot;,phonePlaceholder:&quot;780500100&quot;,operators:[{apiValue:&quot;Orange&quot;,label:&quot;Orange SN&quot;}]},ML:{label:&quot;Mali&quot;,phonePlaceholder:&quot;77010100&quot;,operators:[{apiValue:&quot;Orange&quot;,label:&quot;Orange ML&quot;},{apiValue:&quot;Moov&quot;,label:&quot;Moov ML&quot;},{apiValue:&quot;Samamoney&quot;,label:&quot;Samamoney&quot;}]},TG:{label:&quot;Togo&quot;,phonePlaceholder:&quot;90220100&quot;,operators:[{apiValue:&quot;Togocel&quot;,label:&quot;Togocel&quot;},{apiValue:&quot;Moov&quot;,label:&quot;Moov TG&quot;}]},BJ:{label:&quot;Bénin&quot;,phonePlaceholder:&quot;0196000100&quot;,operators:[{apiValue:&quot;Mtn&quot;,label:&quot;MTN BJ&quot;},{apiValue:&quot;Celtiis&quot;,label:&quot;Celtiis&quot;},{apiValue:&quot;Moov&quot;,label:&quot;Moov BJ&quot;}]}},p2=Object.keys(Ji);function Yc(e){if(e==null)return&quot;BF&quot;;const r=e.trim();if(r.length===0)return&quot;BF&quot;;const t=r.toUpperCase();return t.includes(&quot;COTE&quot;)||t.includes(&quot;IVOIRE&quot;)?&quot;CI&quot;:t.includes(&quot;BURKINA&quot;)||t.includes(&quot;FASO&quot;)?&quot;BF&quot;:t.includes(&quot;SENEGAL&quot;)||t.includes(&quot;SÉNÉGAL&quot;)?&quot;SN&quot;:t.includes(&quot;MALI&quot;)?&quot;ML&quot;:t.includes(&quot;TOGO&quot;)?&quot;TG&quot;:t.includes(&quot;BENIN&quot;)||t.includes(&quot;BÉNIN&quot;)?&quot;BJ&quot;:/^[A-Z]{2}$/.test(t)?t===&quot;BU&quot;?&quot;BF&quot;:p2.includes(t)?t:&quot;BF&quot;:&quot;BF&quot;}function gd(e,r){return!e||!r?e:e.length&gt;r.length&amp;&amp;e.startsWith(r)?e.slice(r.length):e}function i0(e,r){const t=e.replace(/\D/g,&quot;&quot;),n=r.toUpperCase();if(n===&quot;CI&quot;){let o=t;return o.length&gt;=12&amp;&amp;o.startsWith(&quot;225&quot;)&amp;&amp;(o=o.slice(3)),o.length===9&amp;&amp;!o.startsWith(&quot;0&quot;)&amp;&amp;(o=`0${o}`),o}return n===&quot;SN&quot;?gd(t,&quot;221&quot;):n===&quot;BF&quot;?gd(t,&quot;226&quot;):n===&quot;ML&quot;?gd(t,&quot;223&quot;):n===&quot;TG&quot;?gd(t,&quot;228&quot;):n===&quot;BJ&quot;?gd(t,&quot;229&quot;):t}function Xd(e,r){const t=i0(e,r),n=r.toUpperCase();return n===&quot;CI&quot;?/^[0-9]{10}$/.test(t):n===&quot;SN&quot;?/^[0-9]{9}$/.test(t):n===&quot;BF&quot;||n===&quot;ML&quot;||n===&quot;TG&quot;?/^[0-9]{8}$/.test(t):n===&quot;BJ&quot;?/^[0-9]{10}$/.test(t):t.length&gt;=8&amp;&amp;t.length&lt;=16&amp;&amp;/^[0-9]+$/.test(t)}function es(e,r){return e.toUpperCase()===&quot;BF&quot;&amp;&amp;r===&quot;Orange&quot;}function g2(e){switch(e.toUpperCase()){case&quot;CI&quot;:return&quot;Numéro invalide : 10 chiffres pour la CI (ex. 07… ou +225 07…).&quot;;case&quot;SN&quot;:return&quot;Numéro invalide : 9 chiffres pour le Sénégal (ex. 78… ou +221 78…).&quot;;case&quot;BF&quot;:case&quot;ML&quot;:case&quot;TG&quot;:return&quot;Numéro invalide : 8 chiffres pour ce pays (sans indicatif international).&quot;;case&quot;BJ&quot;:return&quot;Numéro invalide : 10 chiffres pour le Bénin (ex. 01… ou +229 01…).&quot;;default:return&quot;Numéro de téléphone invalide (vérifiez le pays et l’indicatif).&quot;}}const c7=[{value:&quot;orange_money&quot;,label:&quot;Orange Money&quot;},{value:&quot;moov_money&quot;,label:&quot;Moov Money&quot;},{value:&quot;ria&quot;,label:&quot;RIA&quot;},{value:&quot;western_union&quot;,label:&quot;WESTERN UNION&quot;},{value:&quot;moneygram&quot;,label:&quot;MONEYGRAM&quot;},{value:&quot;cash&quot;,label:&quot;ESPÈCE&quot;},{value:&quot;bank_transfer&quot;,label:&quot;VIREMENT BANCAIRE&quot;}],x2=&quot;min-h-[52px] rounded-xl border-2 px-3 py-2.5 text-left text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-brand-700 focus:ring-offset-2 disabled:opacity-50&quot;,b2=&quot;border-gray-200 bg-white text-ink-800 hover:border-brand-300 hover:bg-brand-50/50&quot;,y2=&quot;border-brand-700 bg-brand-50 text-brand-900 shadow-sm&quot;,L$={Orange:{text:&quot;OM&quot;,className:&quot;bg-orange-50 text-orange-900 ring-orange-100&quot;},Mtn:{text:&quot;MTN&quot;,className:&quot;bg-yellow-50 text-yellow-950 ring-yellow-200&quot;},Moov:{text:&quot;Moov&quot;,className:&quot;bg-sky-50 text-sky-900 ring-sky-100&quot;},Coris:{text:&quot;Co&quot;,className:&quot;bg-violet-50 text-violet-900 ring-violet-100&quot;},Samamoney:{text:&quot;SM&quot;,className:&quot;bg-emerald-50 text-emerald-900 ring-emerald-100&quot;},Togocel:{text:&quot;TG&quot;,className:&quot;bg-blue-50 text-blue-900 ring-blue-100&quot;},Celtiis:{text:&quot;Ce&quot;,className:&quot;bg-teal-50 text-teal-900 ring-teal-100&quot;}},F$={Orange:&quot;/images/orange.png&quot;,Mtn:&quot;/images/mnt.png&quot;,Moov:&quot;/images/moov.png&quot;,Coris:&quot;/images/coris.png&quot;,Samamoney:&quot;/images/samamoney.png&quot;,Togocel:&quot;/images/togocel.png&quot;,Celtiis:&quot;/images/celtiis.png&quot;};function B$({code:e}){const[r,t]=O.useState(!1),n=`/flags/${e.toLowerCase()}.svg`;return r?i.jsx(&quot;span&quot;,{className:&quot;flex h-8 w-12 shrink-0 items-center justify-center rounded-sm border border-gray-200 bg-gray-100 text-[10px] font-bold uppercase tracking-wide text-ink-600&quot;,&quot;aria-hidden&quot;:!0,children:e}):i.jsx(&quot;img&quot;,{src:n,alt:&quot;&quot;,width:48,height:32,className:&quot;h-8 w-12 shrink-0 rounded-sm border border-gray-200/90 object-cover shadow-sm&quot;,loading:&quot;lazy&quot;,decoding:&quot;async&quot;,onError:()=&gt;t(!0)})}function $$({apiValue:e,label:r}){const t=F$[e],[n,o]=O.useState(!1);if(t&amp;&amp;!n)return i.jsx(&quot;span&quot;,{className:&quot;flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-gray-200/90 bg-white p-1&quot;,children:i.jsx(&quot;img&quot;,{src:t,alt:&quot;&quot;,className:&quot;max-h-8 max-w-full object-contain&quot;,loading:&quot;lazy&quot;,onError:()=&gt;o(!0)})});const s=L$[e],l=r.replace(/[^a-zA-Z0-9]/g,&quot;&quot;).slice(0,3).toUpperCase()||&quot;?&quot;,u=s?.text??l,c=s?.className??&quot;bg-gray-50 text-ink-800 ring-gray-200&quot;;return i.jsx(&quot;span&quot;,{className:`flex min-h-10 min-w-10 max-w-[4.25rem] shrink-0 items-center justify-center rounded-lg border border-transparent px-1 py-0.5 text-center text-[10px] font-bold uppercase leading-tight tracking-tight ring-1 ring-inset sm:text-[11px] ${c}`,&quot;aria-hidden&quot;:!0,children:u})}function z$({children:e,className:r}){return i.jsx(&quot;span&quot;,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-gray-200/90 bg-gradient-to-b from-white to-gray-50/90 shadow-sm ${r??&quot;&quot;}`,&quot;aria-hidden&quot;:!0,children:e})}function U$({methodValue:e,label:r}){const t=V$[e],[n,o]=O.useState(!1);if(t&amp;&amp;!n)return i.jsx(&quot;span&quot;,{className:&quot;flex h-10 min-w-10 max-w-[5rem] shrink-0 items-center justify-center rounded-lg border border-gray-200/90 bg-white px-1 py-0.5&quot;,children:i.jsx(&quot;img&quot;,{src:t,alt:&quot;&quot;,className:&quot;max-h-9 w-full max-w-[4.75rem] object-contain object-center&quot;,loading:&quot;lazy&quot;,decoding:&quot;async&quot;,onError:()=&gt;o(!0)})});const s=q$[e];if(s&amp;&amp;&quot;Icon&quot;in s&amp;&amp;s.Icon){const u=s.Icon;return i.jsx(z$,{children:i.jsx(u,{className:`h-5 w-5 shrink-0 ${s.iconClass??&quot;text-ink-700&quot;}`,strokeWidth:2})})}if(s&amp;&amp;&quot;badge&quot;in s&amp;&amp;s.badge)return i.jsx(&quot;span&quot;,{className:`flex min-h-10 min-w-10 max-w-[4.25rem] shrink-0 items-center justify-center rounded-lg border border-transparent px-1 py-0.5 text-center text-[10px] font-bold uppercase leading-tight tracking-tight ring-1 ring-inset sm:text-[11px] ${s.badgeClass??&quot;bg-gray-50 text-ink-800 ring-gray-200&quot;}`,&quot;aria-hidden&quot;:!0,children:s.badge});const l=r.split(/\s+/).filter(Boolean).slice(0,2).map(u=&gt;u[0]).join(&quot;&quot;).toUpperCase().slice(0,3);return i.jsx(&quot;span&quot;,{className:&quot;flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-gray-200/90 bg-gray-50 text-[11px] font-bold uppercase text-ink-700 ring-1 ring-gray-200&quot;,&quot;aria-hidden&quot;:!0,children:l||&quot;?&quot;})}const V$={orange_money:&quot;/images/orange.png&quot;,moov_money:&quot;/images/moov.png&quot;,ria:&quot;/images/ria.png&quot;,western_union:&quot;/images/westernpng.png&quot;,moneygram:&quot;/images/moneygram.png&quot;,cash:&quot;/images/especes.png&quot;},q$={orange_money:{badge:&quot;OM&quot;,badgeClass:&quot;bg-orange-50 text-orange-900 ring-orange-100&quot;},moov_money:{badge:&quot;MV&quot;,badgeClass:&quot;bg-sky-50 text-sky-900 ring-sky-100&quot;},ria:{Icon:QC,iconClass:&quot;text-indigo-700&quot;},western_union:{badge:&quot;WU&quot;,badgeClass:&quot;bg-amber-50 text-amber-950 ring-amber-200&quot;},moneygram:{badge:&quot;MG&quot;,badgeClass:&quot;bg-red-50 text-red-900 ring-red-100&quot;},cash:{Icon:kF,iconClass:&quot;text-green-800&quot;},bank_transfer:{Icon:t7,iconClass:&quot;text-brand-800&quot;}};function u7({value:e,onChange:r,disabled:t}){return i.jsx(&quot;div&quot;,{role:&quot;radiogroup&quot;,&quot;aria-label&quot;:&quot;Pays pour le paiement Mobile Money&quot;,className:&quot;grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3&quot;,children:p2.map(n=&gt;{const o=Ji[n];if(!o)return null;const s=e===n;return i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;radio&quot;,&quot;aria-checked&quot;:s,disabled:t,onClick:()=&gt;r(n),className:`${x2} flex items-center gap-3 ${s?y2:b2}`,children:[i.jsx(B$,{code:n}),i.jsxs(&quot;span&quot;,{className:&quot;min-w-0 flex-1&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;block leading-snug&quot;,children:o.label}),i.jsxs(&quot;span&quot;,{className:&quot;mt-0.5 block text-xs font-normal text-ink-500&quot;,children:[&quot;(&quot;,n,&quot;)&quot;]})]})]},n)})})}function d7({operators:e,value:r,onChange:t,disabled:n}){return i.jsx(&quot;div&quot;,{role:&quot;radiogroup&quot;,&quot;aria-label&quot;:&quot;Opérateur Mobile Money&quot;,className:&quot;grid grid-cols-1 gap-2 sm:grid-cols-2&quot;,children:e.map(o=&gt;{const s=r===o.apiValue;return i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;radio&quot;,&quot;aria-checked&quot;:s,disabled:n,onClick:()=&gt;t(o.apiValue),className:`${x2} flex items-center gap-3 ${s?y2:b2}`,children:[i.jsx($$,{apiValue:o.apiValue,label:o.label}),i.jsx(&quot;span&quot;,{className:&quot;min-w-0 flex-1 leading-snug&quot;,children:o.label})]},o.apiValue)})})}function f7({value:e,onChange:r,disabled:t}){return i.jsx(&quot;div&quot;,{role:&quot;radiogroup&quot;,&quot;aria-label&quot;:&quot;Méthode de paiement&quot;,className:&quot;grid grid-cols-1 gap-2 sm:grid-cols-2&quot;,children:c7.map(n=&gt;{const o=e===n.value;return i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;radio&quot;,&quot;aria-checked&quot;:o,disabled:t,onClick:()=&gt;r(n.value),className:`${x2} flex items-center gap-3 ${o?y2:b2}`,children:[i.jsx(U$,{methodValue:n.value,label:n.label}),i.jsx(&quot;span&quot;,{className:&quot;min-w-0 flex-1 leading-snug&quot;,children:n.label})]},n.value)})})}function h7({titleId:e,contextLine:r,onClose:t,closeDisabled:n=!1}){return i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex items-start justify-between gap-3 border-b border-gray-100 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 flex-1 items-center gap-3 sm:gap-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex h-12 shrink-0 items-center justify-center sm:h-14&quot;,children:i.jsx(&quot;img&quot;,{src:&quot;/images/SycaPay.png&quot;,alt:&quot;&quot;,width:140,height:56,className:&quot;h-10 w-auto max-w-[140px] object-contain object-left sm:h-12&quot;,loading:&quot;eager&quot;,decoding:&quot;async&quot;})}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;p&quot;,{id:e,className:&quot;text-xl font-bold tracking-[0.12em] text-ink-900 sm:text-2xl&quot;,children:&quot;SYCAPAY&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-0.5 text-[11px] font-semibold uppercase tracking-[0.2em] text-brand-800 sm:text-xs&quot;,children:&quot;Paiement en ligne&quot;}),r?i.jsx(&quot;p&quot;,{className:&quot;mt-1.5 text-xs font-medium leading-snug text-ink-600&quot;,children:r}):null]})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;!n&amp;&amp;t(),disabled:n,className:&quot;shrink-0 rounded-lg p-2 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 disabled:opacity-50&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:22})})]})}const W$=&quot;w-full min-h-[44px] rounded-xl border-2 border-transparent px-4 py-3 text-sm font-semibold uppercase tracking-wider text-ink-800 hover:bg-gray-100 sm:w-auto sm:min-h-0&quot;,H$=&quot;w-full min-h-[44px] rounded-xl border-2 border-brand-900 bg-brand-700 px-4 py-3 text-sm font-semibold uppercase tracking-wider text-white hover:bg-brand-900 disabled:opacity-50 sm:w-auto sm:min-h-0&quot;;function K$({open:e,registrationId:r,installmentIndex:t,defaultCountry:n=&quot;CI&quot;,paymentAmount:o,onClose:s,onInitiated:l}){const[u,c]=O.useState(()=&gt;Yc(n)),[a,d]=O.useState(&quot;&quot;),[f,h]=O.useState(&quot;&quot;),[m,p]=O.useState(&quot;&quot;),[x,g]=O.useState(!1),[y,v]=O.useState(null),[_,S]=O.useState(!1),A=Ji[u]??Ji.CI;O.useEffect(()=&gt;{e&amp;&amp;(c(Yc(n)),d(&quot;&quot;),h(&quot;&quot;),p(&quot;&quot;),v(null),S(!1))},[e,n]),O.useEffect(()=&gt;{d(H=&gt;{const B=Ji[u];return B&amp;&amp;B.operators.some(K=&gt;K.apiValue===H)?H:&quot;&quot;})},[u]),O.useEffect(()=&gt;{es(u,a)||p(&quot;&quot;)},[u,a]);const I=O.useMemo(()=&gt;{if(!a)return&quot;Choisissez un opérateur Mobile Money.&quot;;if(!f.replace(/\s/g,&quot;&quot;))return&quot;Indiquez votre numéro Mobile Money.&quot;;if(!Xd(f,u))return g2(u);if(es(u,a)){const B=m.replace(/\D/g,&quot;&quot;);if(B.length&lt;4||B.length&gt;12)return&quot;Indiquez le code OTP Orange (4 à 12 chiffres, voir doc de test SycaPay).&quot;}return null},[a,f,u,m]),V=I===null&amp;&amp;!x;if(!e)return null;const F=()=&gt;{if(S(!0),v(null),I){v(I);return}g(!0);const H={operator:a,phone:i0(f,u),country:u,idempotency_key:typeof crypto&lt;&quot;u&quot;&amp;&amp;crypto.randomUUID?crypto.randomUUID():void 0};es(u,a)&amp;&amp;(H.otp=m.replace(/\D/g,&quot;&quot;)),t!==null&amp;&amp;(H.installment_index=t),l$(r,H).then(B=&gt;{const K=B.data;if(K.status===&quot;failed&quot;||K.error){v(h2(K,B.message));return}l(B),s()}).catch(B=&gt;{B instanceof kt?v(B.data?.message??B.message):v(&quot;Une erreur est survenue.&quot;)}).finally(()=&gt;g(!1))},q=_||y!==null;return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex min-h-screen items-center justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity&quot;,onClick:()=&gt;!x&amp;&amp;s(),&quot;aria-hidden&quot;:!0}),i.jsxs(&quot;div&quot;,{className:&quot;inline-block max-h-[90vh] w-full max-w-2xl transform overflow-y-auto rounded-2xl bg-white p-5 text-left align-middle shadow-[0_8px_32px_rgba(15,23,42,0.12)] transition-all sm:my-8 sm:p-6&quot;,children:[i.jsx(h7,{titleId:&quot;sycapay-init-modal-title&quot;,contextLine:&quot;Mobile Money&quot;,onClose:s,closeDisabled:x}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-600 mb-2&quot;,children:[i.jsx(&quot;strong&quot;,{className:&quot;font-semibold text-ink-800&quot;,children:&quot;Paiement en ligne immédiat.&quot;}),&quot; Utilisez ce formulaire pour régler&quot;,&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;whitespace-nowrap&quot;,children:&quot;via SycaPay&quot;}),&quot; — ce n’est&quot;,&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-medium&quot;,children:&quot;pas&quot;}),&quot; une déclaration de virement, d’espèces ou d’un paiement déjà fait ailleurs.&quot;]}),o!=null&amp;&amp;o.amount&gt;0&amp;&amp;o.currencyLabel&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-brand-200 bg-brand-50/80 px-3 py-2.5 mb-4&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-900&quot;,children:[t!==null?i.jsx(i.Fragment,{children:&quot;Montant de cette échéance à payer en ligne : &quot;}):i.jsx(i.Fragment,{children:&quot;Montant du solde à payer en ligne : &quot;}),i.jsxs(&quot;span&quot;,{className:&quot;tabular-nums font-semibold text-brand-900&quot;,children:[o.amount.toLocaleString(&quot;fr-FR&quot;),&quot; &quot;,o.currencyLabel]})]}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-600 mt-1&quot;,children:&quot;Il doit correspondre au montant indiqué sur votre dossier ; le prestataire peut afficher la même somme lors du passage au paiement.&quot;})]}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600 mb-4&quot;,children:&quot;Après validation, vous serez redirigé vers la page sécurisée du prestataire si nécessaire. Le statut réel du paiement sera mis à jour sur cette page après votre retour.&quot;}),y&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 rounded-lg border border-red-200 bg-red-50 p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:y})}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-5&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;mb-2 text-sm font-medium text-ink-700&quot;,children:&quot;Pays&quot;}),i.jsx(u7,{value:u,onChange:c,disabled:x})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;p&quot;,{className:&quot;mb-2 text-sm font-medium text-ink-700&quot;,children:[&quot;Opérateur &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(d7,{operators:A.operators,value:a,onChange:d,disabled:x}),q&amp;&amp;!a&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-xs text-red-600&quot;,children:&quot;Veuillez sélectionner un opérateur.&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,htmlFor:&quot;sycapay-phone&quot;,children:[&quot;Numéro Mobile Money &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{id:&quot;sycapay-phone&quot;,type:&quot;tel&quot;,value:f,onChange:H=&gt;h(H.target.value),className:&quot;w-full rounded-xl border border-gray-300 px-3 py-3 text-base focus:ring-2 focus:ring-brand-700&quot;,disabled:x,placeholder:`Ex. ${A.phonePlaceholder}`,autoComplete:&quot;tel&quot;}),q&amp;&amp;f.replace(/\s/g,&quot;&quot;).length&gt;0&amp;&amp;!Xd(f,u)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:&quot;Format invalide : utilisez des chiffres (éventuellement + en tête).&quot;})]}),es(u,a)&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,htmlFor:&quot;sycapay-otp&quot;,children:[&quot;Code OTP Orange &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{id:&quot;sycapay-otp&quot;,type:&quot;text&quot;,inputMode:&quot;numeric&quot;,autoComplete:&quot;one-time-code&quot;,value:m,onChange:H=&gt;p(H.target.value.replace(/[^\d\s]/g,&quot;&quot;)),className:&quot;w-full rounded-xl border border-gray-300 px-3 py-3 text-base tracking-widest focus:ring-2 focus:ring-brand-700&quot;,disabled:x,placeholder:&quot;Code de la doc sandbox&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:&quot;Saisissez le code OTP de test fourni par SycaPay pour Orange Burkina (sandbox).&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-3&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,className:W$,onClick:s,disabled:x,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:H$,onClick:F,disabled:!V,children:x?&quot;Préparation…&quot;:&quot;Continuer vers le paiement&quot;})]})]})]})})}const A4=&quot;w-full min-h-[44px] rounded-xl border-2 border-transparent px-4 py-3 text-sm font-semibold uppercase tracking-wider text-ink-800 hover:bg-gray-100 sm:w-auto sm:min-h-0&quot;,M4=&quot;w-full min-h-[44px] rounded-xl border-2 border-brand-900 bg-brand-700 px-4 py-3 text-sm font-semibold uppercase tracking-wider text-white hover:bg-brand-900 disabled:opacity-50 sm:w-auto sm:min-h-0&quot;,X$=[&quot;Janvier&quot;,&quot;Février&quot;,&quot;Mars&quot;,&quot;Avril&quot;,&quot;Mai&quot;,&quot;Juin&quot;,&quot;Juillet&quot;,&quot;Août&quot;,&quot;Septembre&quot;,&quot;Octobre&quot;,&quot;Novembre&quot;,&quot;Décembre&quot;];function G$(e){const[r,t]=e.split(&quot;-&quot;).map(Number);if(Number.isNaN(r)||Number.isNaN(t))return e;const o=new Date(r,t,0).getDate(),s=X$[t-1]??String(t);return`${o} ${s} ${r}`}function Y$(e,r){const t=e?.[r];return t?.month?`Échéance — date limite le ${G$(t.month)}`:r===0?&quot;Solde unique&quot;:`Échéance ${r+1}`}function Z$({open:e,registrationId:r,defaultCountry:t=&quot;CI&quot;,remainingDue:n,currencyLabel:o,installments:s,onClose:l,onInitSuccess:u}){const[c,a]=O.useState(()=&gt;Yc(t)),[d,f]=O.useState(&quot;&quot;),[h,m]=O.useState(&quot;&quot;),[p,x]=O.useState(&quot;&quot;),[g,y]=O.useState(&quot;&quot;),[v,_]=O.useState(!1),[S,A]=O.useState(null),[I,V]=O.useState(!1),[F,q]=O.useState(&quot;form&quot;),[H,B]=O.useState(null),K=Ji[c]??Ji.CI;O.useEffect(()=&gt;{e&amp;&amp;(a(Yc(t)),f(&quot;&quot;),m(&quot;&quot;),x(&quot;&quot;),y(&quot;&quot;),A(null),V(!1),q(&quot;form&quot;),B(null))},[e,t]),O.useEffect(()=&gt;{f(P=&gt;{const D=Ji[c];return D&amp;&amp;D.operators.some(z=&gt;z.apiValue===P)?P:&quot;&quot;})},[c]),O.useEffect(()=&gt;{es(c,d)||x(&quot;&quot;)},[c,d]);const T=O.useMemo(()=&gt;{const P=parseInt(g.replace(/\s/g,&quot;&quot;),10);return Number.isFinite(P)?P:NaN},[g]),L=O.useMemo(()=&gt;{if(!d)return&quot;Choisissez un opérateur Mobile Money.&quot;;if(!h.replace(/\s/g,&quot;&quot;))return&quot;Indiquez votre numéro Mobile Money.&quot;;if(!Xd(h,c))return g2(c);if(!Number.isFinite(T)||T&lt;=0)return&quot;Indiquez un montant strictement positif.&quot;;if(T&gt;n)return`Le montant ne peut pas dépasser le solde restant (${n.toLocaleString(&quot;fr-FR&quot;)} ${o}).`;if(es(c,d)){const D=p.replace(/\D/g,&quot;&quot;);if(D.length&lt;4||D.length&gt;12)return&quot;Indiquez le code OTP Orange (4 à 12 chiffres, voir doc de test SycaPay).&quot;}return null},[d,h,c,T,n,o,p]),E=L===null&amp;&amp;!v&amp;&amp;F===&quot;form&quot;;if(!e)return null;const j=()=&gt;{if(V(!0),A(null),L){A(L);return}_(!0);const P={amount:T,operator:d,phone:i0(h,c),country:c,idempotency_key:typeof crypto&lt;&quot;u&quot;&amp;&amp;crypto.randomUUID?crypto.randomUUID():void 0};es(c,d)&amp;&amp;(P.otp=p.replace(/\D/g,&quot;&quot;)),c$(r,P).then(D=&gt;{const z=D.data;if(z.status===&quot;failed&quot;||z.error){A(h2(z,D.message));return}B(D),q(&quot;afterInit&quot;),u()}).catch(D=&gt;{D instanceof kt?A(u$(D)):A(&quot;Une erreur est survenue.&quot;)}).finally(()=&gt;_(!1))},k=()=&gt;{const P=H?.data.redirect_url;if(P){window.location.assign(P);return}l()},N=I||S!==null,C=H?.data.allocation_preview;return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex min-h-screen items-center justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity&quot;,onClick:()=&gt;!v&amp;&amp;F===&quot;form&quot;&amp;&amp;l(),&quot;aria-hidden&quot;:!0}),i.jsxs(&quot;div&quot;,{className:&quot;inline-block max-h-[90vh] w-full max-w-2xl transform overflow-y-auto rounded-2xl bg-white p-5 text-left align-middle shadow-[0_8px_32px_rgba(15,23,42,0.12)] transition-all sm:my-8 sm:p-6&quot;,children:[i.jsx(h7,{titleId:&quot;sycapay-open-amount-modal-title&quot;,contextLine:&quot;Montant au choix — Mobile Money&quot;,onClose:l,closeDisabled:v&amp;&amp;F===&quot;form&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-600 mb-4&quot;,children:[i.jsx(&quot;strong&quot;,{className:&quot;font-semibold text-ink-800&quot;,children:&quot;Paiement en ligne immédiat&quot;}),&quot; par Mobile Money ; le montant est ensuite réparti sur vos échéances. Ce formulaire ne sert pas à déclarer un paiement déjà effectué par un autre canal.&quot;]}),F===&quot;form&quot;&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-amber-100 bg-amber-50/80 px-3 py-2.5 mb-4 space-y-2 text-sm text-ink-700&quot;,children:[i.jsxs(&quot;p&quot;,{children:[&quot;Le montant sera &quot;,i.jsx(&quot;strong&quot;,{children:&quot;automatiquement imputé&quot;}),&quot; à vos échéances encore dues, de la&quot;,&quot; &quot;,i.jsx(&quot;strong&quot;,{children:&quot;plus ancienne à la plus récente&quot;}),&quot;.&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;text-ink-600&quot;,children:[&quot;Il ne peut pas dépasser votre solde restant (&quot;,n.toLocaleString(&quot;fr-FR&quot;),&quot; &quot;,o,&quot;). Le montant définitif est validé par le serveur.&quot;]})]}),S&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 rounded-lg border border-red-200 bg-red-50 p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:S})}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,htmlFor:&quot;open-amt-amount&quot;,children:[&quot;Montant &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{id:&quot;open-amt-amount&quot;,type:&quot;text&quot;,inputMode:&quot;numeric&quot;,value:g,onChange:P=&gt;y(P.target.value.replace(/[^\d\s]/g,&quot;&quot;)),className:&quot;w-full rounded-xl border border-gray-300 px-3 py-3 text-base focus:ring-2 focus:ring-brand-700&quot;,disabled:v,placeholder:`Max. ${n.toLocaleString(&quot;fr-FR&quot;)}`,autoComplete:&quot;off&quot;}),N&amp;&amp;Number.isFinite(T)&amp;&amp;T&gt;n&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:&quot;Montant supérieur au solde restant.&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;mb-2 text-sm font-medium text-ink-700&quot;,children:&quot;Pays&quot;}),i.jsx(u7,{value:c,onChange:a,disabled:v})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;p&quot;,{className:&quot;mb-2 text-sm font-medium text-ink-700&quot;,children:[&quot;Opérateur &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(d7,{operators:K.operators,value:d,onChange:f,disabled:v}),N&amp;&amp;!d&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-xs text-red-600&quot;,children:&quot;Veuillez sélectionner un opérateur.&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,htmlFor:&quot;open-amt-phone&quot;,children:[&quot;Numéro Mobile Money &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{id:&quot;open-amt-phone&quot;,type:&quot;tel&quot;,value:h,onChange:P=&gt;m(P.target.value),className:&quot;w-full rounded-xl border border-gray-300 px-3 py-3 text-base focus:ring-2 focus:ring-brand-700&quot;,disabled:v,placeholder:`Ex. ${K.phonePlaceholder}`,autoComplete:&quot;tel&quot;}),N&amp;&amp;h.replace(/\s/g,&quot;&quot;).length&gt;0&amp;&amp;!Xd(h,c)&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:&quot;Format invalide : utilisez des chiffres (éventuellement + en tête).&quot;})]}),es(c,d)&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,htmlFor:&quot;open-amt-otp&quot;,children:[&quot;Code OTP Orange &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{id:&quot;open-amt-otp&quot;,type:&quot;text&quot;,inputMode:&quot;numeric&quot;,autoComplete:&quot;one-time-code&quot;,value:p,onChange:P=&gt;x(P.target.value.replace(/[^\d\s]/g,&quot;&quot;)),className:&quot;w-full rounded-xl border border-gray-300 px-3 py-3 text-base tracking-widest focus:ring-2 focus:ring-brand-700&quot;,disabled:v,placeholder:&quot;Code de la doc sandbox&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:&quot;Code OTP de test SycaPay pour Orange Burkina.&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-3&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,className:A4,onClick:l,disabled:v,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:M4,onClick:j,disabled:!E,children:v?&quot;Préparation…&quot;:&quot;Valider et continuer&quot;})]})]}),F===&quot;afterInit&quot;&amp;&amp;H&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-700 mb-3&quot;,children:[&quot;La demande de paiement est enregistrée. Le paiement n’est &quot;,i.jsx(&quot;strong&quot;,{children:&quot;pas encore confirmé&quot;}),&quot; tant que le prestataire n’a pas validé l’opération.&quot;]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-sky-200 bg-sky-50/60 px-3 py-2.5 mb-4&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-800&quot;,children:[&quot;Montant retenu : &quot;,H.data.amount?.toLocaleString(&quot;fr-FR&quot;),&quot; &quot;,o]}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-600 mt-1&quot;,children:&quot;Type : paiement libre&quot;})]}),C&amp;&amp;C.length&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mb-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-800 mb-2&quot;,children:&quot;Répartition prévue (indicatif)&quot;}),i.jsx(&quot;ul&quot;,{className:&quot;text-sm text-ink-700 space-y-1 border border-gray-100 rounded-lg p-3 bg-gray-50/80&quot;,children:C.map((P,D)=&gt;i.jsxs(&quot;li&quot;,{className:&quot;flex justify-between gap-2&quot;,children:[i.jsx(&quot;span&quot;,{children:Y$(s??null,P.installment_index)}),i.jsxs(&quot;span&quot;,{className:&quot;font-medium tabular-nums&quot;,children:[P.amount.toLocaleString(&quot;fr-FR&quot;),&quot; &quot;,o]})]},`${P.installment_index}-${D}`))}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-2&quot;,children:&quot;La répartition définitive sera enregistrée après confirmation du paiement.&quot;})]}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mb-4&quot;,children:&quot;Après validation chez le prestataire, le statut se mettra à jour sur cette page (actualisez si besoin).&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col-reverse gap-2 sm:flex-row sm:flex-wrap sm:justify-end sm:gap-3&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,className:A4,onClick:l,children:&quot;Fermer&quot;}),H.data.redirect_url?i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:M4,onClick:k,children:&quot;Continuer vers le paiement&quot;}):null]})]})]})]})})}const Q$=&quot;w-full min-h-[44px] rounded-xl border-2 border-transparent px-4 py-3 text-sm font-semibold uppercase tracking-wider text-ink-800 hover:bg-gray-100 sm:w-auto sm:min-h-0&quot;,J$=&quot;w-full min-h-[44px] rounded-xl border-2 border-brand-900 bg-brand-700 px-4 py-3 text-sm font-semibold uppercase tracking-wider text-white hover:bg-brand-900 disabled:opacity-50 sm:w-auto sm:min-h-0&quot;;function ez(e){const r=e.data;if(r?.errors){const t=Object.values(r.errors).flat();if(t.length&gt;0)return t.join(&quot; &quot;)}return r?.message??e.message??&quot;Une erreur est survenue.&quot;}function tz({open:e,registrationId:r,installmentIndex:t,currencyCode:n,maxAmount:o,defaultAmount:s,onClose:l,onSuccess:u}){const[c,a]=O.useState(&quot;&quot;),[d,f]=O.useState(&quot;orange_money&quot;),[h,m]=O.useState(&quot;&quot;),[p,x]=O.useState(&quot;&quot;),[g,y]=O.useState(&quot;&quot;),[v,_]=O.useState(null),[S,A]=O.useState(!1),[I,V]=O.useState(null),F=n===&quot;EUR&quot;?&quot;€&quot;:&quot;FCFA&quot;;O.useEffect(()=&gt;{if(!e)return;a(s&gt;0?String(s):&quot;&quot;),f(&quot;orange_money&quot;),x(&quot;&quot;),y(&quot;&quot;),_(null),V(null);const B=new Date,K=T=&gt;String(T).padStart(2,&quot;0&quot;);m(`${B.getFullYear()}-${K(B.getMonth()+1)}-${K(B.getDate())}T${K(B.getHours())}:${K(B.getMinutes())}`)},[e,s]);const q=O.useMemo(()=&gt;{const B=parseInt(c.replace(/\s/g,&quot;&quot;),10);return!c.trim()||Number.isNaN(B)?null:B&lt;=0?&quot;Le montant doit être strictement positif.&quot;:n===&quot;XOF&quot;&amp;&amp;B%5!==0?&quot;En FCFA, le montant doit être un multiple de 5.&quot;:B&gt;o?`Le montant ne peut pas dépasser le solde affiché (${o.toLocaleString(&quot;fr-FR&quot;)} ${F}).`:null},[c,n,o,F]),H=()=&gt;{V(null);const B=parseInt(c.replace(/\s/g,&quot;&quot;),10);if(Number.isNaN(B)||B&lt;=0){V(&quot;Indiquez un montant valide (nombre entier).&quot;);return}if(n===&quot;XOF&quot;&amp;&amp;B%5!==0){V(&quot;En FCFA, le montant doit être un multiple de 5.&quot;);return}if(B&gt;o){V(`Le montant ne peut pas dépasser le solde restant pertinent (${o.toLocaleString(&quot;fr-FR&quot;)} ${F}).`);return}if(!h.trim()){V(&quot;Indiquez la date du paiement.&quot;);return}const K=new Date(h);if(Number.isNaN(K.getTime())){V(&quot;Date du paiement invalide.&quot;);return}if(K.getTime()&gt;Date.now()){V(&quot;La date du paiement ne peut pas être dans le futur.&quot;);return}if(!p.trim()){V(&quot;La référence ou le numéro de transaction est obligatoire.&quot;);return}if(!v){V(&quot;Veuillez joindre une pièce justificative.&quot;);return}const T=5120*1024;if(v.size&gt;T){V(&quot;La pièce justificative ne doit pas dépasser 5 Mo.&quot;);return}const L=K.toISOString();A(!0),o$(r,{amount:B,method:d,paid_at:L,reference:p.trim(),notes:g.trim()||void 0,proof:v,...t!=null?{installment_index:t}:{}}).then(()=&gt;{u(),l()}).catch(E=&gt;{E instanceof kt?V(ez(E)):V(&quot;Une erreur est survenue.&quot;)}).finally(()=&gt;A(!1))};return e?i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-[80] flex items-center justify-center bg-black/40 p-3 sm:p-4&quot;,role:&quot;dialog&quot;,&quot;aria-modal&quot;:&quot;true&quot;,&quot;aria-labelledby&quot;:&quot;declare-payment-title&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-h-[92vh] w-full max-w-2xl overflow-y-auto rounded-2xl border border-gray-200 bg-white shadow-[0_8px_32px_rgba(15,23,42,0.12)]&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-start justify-between gap-3 border-b border-gray-100 px-4 py-4 sm:px-6 sm:py-5&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 pr-2&quot;,children:[i.jsx(&quot;h2&quot;,{id:&quot;declare-payment-title&quot;,className:&quot;text-xl font-bold uppercase leading-snug tracking-[0.12em] text-ink-900 sm:text-2xl&quot;,children:&quot;DÉCLARER UN PAIEMENT DÉJÀ EFFECTUÉ&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm leading-relaxed text-ink-600&quot;,children:&quot;(Signaler ici les paiements que vous avez déjà faits par transfert ou autres)&quot;})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;shrink-0 rounded-lg p-2 text-ink-500 hover:bg-gray-100&quot;,onClick:()=&gt;!S&amp;&amp;l(),&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:20})})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 px-4 py-4 sm:px-6 sm:py-5&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-100 bg-gray-50/80 px-3 py-3 text-sm text-ink-600&quot;,children:[i.jsxs(&quot;p&quot;,{children:[i.jsx(&quot;strong&quot;,{className:&quot;font-semibold text-ink-800&quot;,children:&quot;À utiliser si vous avez déjà réglé&quot;}),&quot; une partie ou la totalité par virement, espèces, bureau de transfert, Mobile Money en dehors de cette page, etc.&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-2&quot;,children:[&quot;Pour &quot;,i.jsx(&quot;strong&quot;,{className:&quot;font-semibold text-ink-800&quot;,children:&quot;payer immédiatement en ligne&quot;}),&quot; depuis votre espace, fermez cette fenêtre et utilisez les boutons « Payer… » sur la page de votre inscription.&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-ink-600&quot;,children:&quot;Votre déclaration sera examinée par l’équipe avant validation sur votre dossier.&quot;})]}),I&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-800&quot;,children:I}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:[&quot;Montant payé &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;}),&quot; &quot;,i.jsxs(&quot;span&quot;,{className:&quot;text-ink-500 font-normal&quot;,children:[&quot;(&quot;,F,&quot;)&quot;]})]}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:1,max:o&gt;0?o:void 0,step:1,value:c,onChange:B=&gt;a(B.target.value),className:&quot;w-full rounded-xl border border-gray-300 px-4 py-3 text-base focus:ring-2 focus:ring-brand-700&quot;,disabled:!!S}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:[&quot;Maximum : &quot;,o.toLocaleString(&quot;fr-FR&quot;),&quot; &quot;,F,&quot; (solde pertinent affiché sur la page).&quot;]}),q&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-800 mt-1&quot;,children:q})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;p&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-700&quot;,children:[&quot;Méthode de paiement &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(f7,{value:d,onChange:f,disabled:!!S})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:[&quot;Date du paiement &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;datetime-local&quot;,value:h,onChange:B=&gt;m(B.target.value),className:&quot;w-full rounded-xl border border-gray-300 px-4 py-3 text-base focus:ring-2 focus:ring-brand-700&quot;,disabled:!!S})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,children:[&quot;Référence / numéro de transaction &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:p,onChange:B=&gt;x(B.target.value),maxLength:255,className:&quot;w-full rounded-xl border border-gray-300 px-4 py-3 text-base focus:ring-2 focus:ring-brand-700&quot;,placeholder:&quot;Ex. TRX-123456, référence de virement&quot;,disabled:!!S})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,children:[&quot;Pièce justificative &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;file&quot;,accept:&quot;.jpg,.jpeg,.png,.gif,.webp,.pdf&quot;,onChange:B=&gt;_(B.target.files?.[0]??null),className:&quot;w-full rounded-xl border border-gray-300 px-4 py-3 text-sm focus:ring-2 focus:ring-brand-700&quot;,disabled:!!S}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-400 mt-1&quot;,children:&quot;JPG, PNG, GIF, WebP ou PDF, max 5 Mo&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Note / commentaire (optionnel)&quot;}),i.jsx(&quot;textarea&quot;,{value:g,onChange:B=&gt;y(B.target.value),rows:2,maxLength:2e3,className:&quot;w-full rounded-xl border border-gray-300 px-4 py-3 text-base focus:ring-2 focus:ring-brand-700&quot;,placeholder:&quot;Informations utiles pour la validation&quot;,disabled:!!S})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col-reverse gap-2 pt-2 sm:flex-row sm:justify-end sm:gap-3&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,className:Q$,onClick:()=&gt;!S&amp;&amp;l(),disabled:!!S,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:J$,onClick:H,disabled:!!S,children:S?&quot;Envoi…&quot;:&quot;Envoyer la déclaration&quot;})]})]})]})}):null}function rz({showCompanionCta:e,onOpenCompanion:r}){return i.jsx(&quot;header&quot;,{className:&quot;mb-6 w-full min-w-0 sm:mb-8&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;w-full max-w-full overflow-x-hidden rounded-2xl border border-gray-200/80 bg-gradient-to-br from-brand-700/95 via-brand-800 to-ink-900 shadow-[0_8px_20px_rgba(15,23,42,0.08)]&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 flex-col gap-4 px-4 py-5 sm:px-6 sm:py-6 xl:flex-row xl:items-start xl:justify-between xl:gap-6 xl:px-8&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1 overflow-hidden&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-[11px] font-medium uppercase tracking-[0.16em] text-white/75 sm:text-xs&quot;,children:&quot;Sommet Francophone&quot;}),i.jsx(&quot;h1&quot;,{className:&quot;mt-1.5 text-xl font-semibold leading-tight text-white sm:text-2xl&quot;,children:&quot;Mon espace participant&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 max-w-4xl text-sm leading-relaxed text-white/85 xl:text-base xl:leading-relaxed&quot;,children:&quot;Consultez vos inscriptions, échéances et paiements&quot;})]}),e&amp;&amp;r&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;w-full min-w-0 shrink-0 xl:max-w-sm xl:pt-0.5&quot;,children:i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,className:&quot;w-full min-h-[44px] rounded-xl border border-white/80 bg-amber-100 px-4 py-3 text-center text-sm font-semibold text-ink-900 shadow-sm transition hover:bg-amber-50 focus:outline-none focus:ring-2 focus:ring-white/60 focus:ring-offset-2 focus:ring-offset-brand-800 xl:w-auto xl:min-w-[220px]&quot;,children:&quot;Ouvrir l&#039;App du Sommet&quot;})})]})})})}const P4={not_sycapay:&quot;Actualisation automatique disponible uniquement pour les paiements en ligne.&quot;,terminal:&quot;Ce paiement est déjà terminé.&quot;,missing_provider_ref:&quot;Référence de paiement incomplète. Contactez le support si le problème persiste.&quot;,invalid_status:&quot;Statut incompatible avec une actualisation en ligne.&quot;,payment_too_recent:&quot;Le serveur attend encore quelques secondes après l’init avant la première interrogation du prestataire.&quot;,sync_too_recent:&quot;Une vérification vient d’être faite ; courte pause avant la prochaine interrogation.&quot;},nm=52e3,O4=14;function v2({registrationId:e,paymentId:r,summaryHint:t,onUpdated:n}){const[o,s]=O.useState(!1),[l,u]=O.useState(!1),[c,a]=O.useState(null),[d,f]=O.useState(null),h=O.useRef(n);h.current=n,O.useEffect(()=&gt;{let S=!1;const A=[],I=async V=&gt;j4(e,r,V?{refresh:!0}:void 0);return(async()=&gt;{try{const V=await I(!1);if(S||(f(V),V.is_terminal))return;let F=0,q=V.status;const H=()=&gt;{const K=V.refresh_earliest_at;if(!K)return nm;const T=Date.parse(K);return Number.isNaN(T)?nm:Math.max(4e3,T-Date.now()+1500)},B=K=&gt;{if(S||F&gt;=O4)return;const T=window.setTimeout(async()=&gt;{if(!S){F+=1;try{const L=await I(!0);if(S)return;f(L);const E=L.status!==q;if(E&amp;&amp;(q=L.status),(E||L.is_terminal)&amp;&amp;h.current(),L.is_terminal)return}catch{}B(nm)}},K);A.push(T)};B(H())}catch{}})(),()=&gt;{S=!0,A.forEach(V=&gt;window.clearTimeout(V))}},[e,r]);const m=()=&gt;{a(null),s(!0),j4(e,r,{refresh:!0}).then(S=&gt;{f(S),n()}).catch(S=&gt;{S instanceof kt?a(S.data?.message??S.message):a(&quot;Impossible d’actualiser le statut.&quot;)}).finally(()=&gt;s(!1))},p=!d||d.is_terminal?null:!d.refresh_attempted&amp;&amp;d.refresh_skipped_reason?P4[d.refresh_skipped_reason]??&quot;Actualisation momentanément indisponible.&quot;:d.refresh_blocked_reason?P4[d.refresh_blocked_reason]??&quot;Actualisation momentanément indisponible.&quot;:null,x=d===null||d.can_retry_refresh===!0,g=d!==null&amp;&amp;!d.is_terminal,y=!d||d.is_terminal||!(d.provider_operator??&quot;&quot;).toLowerCase().includes(&quot;coris&quot;)||d.redirect_url||d.status!==&quot;pending&quot;&amp;&amp;d.status!==&quot;initiated&quot;?null:&quot;Coris BF: le lien de validation prestataire n’a pas encore ete fourni. En sandbox, cette etape peut rester en attente.&quot;,v=d!==null&amp;&amp;d.payment_gateway===&quot;sycapay&quot;&amp;&amp;!d.is_terminal&amp;&amp;(d.status===&quot;pending&quot;||d.status===&quot;initiated&quot;),_=()=&gt;{v&amp;&amp;window.confirm(&quot;Abandonner cette tentative ? Vous pourrez ensuite lancer un nouveau paiement en ligne.&quot;)&amp;&amp;(a(null),u(!0),d$(e,r).then(()=&gt;{n()}).catch(S=&gt;{S instanceof kt?a(S.data?.message??S.message):a(&quot;Impossible d’abandonner la tentative.&quot;)}).finally(()=&gt;u(!1)))};return i.jsxs(&quot;div&quot;,{className:&quot;mt-2 space-y-2 rounded-md border border-amber-100 bg-amber-50/60 px-3 py-2&quot;,children:[t&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-600&quot;,children:t}),g&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:[&quot;Vérification automatique côté serveur (jusqu’à &quot;,O4,&quot; tentatives, environ toutes les&quot;,&quot; &quot;,Math.round(nm/1e3),&quot; s, dans la limite des garde-fous API) tant que le paiement n’est pas terminé. Vous pouvez aussi actualiser manuellement.&quot;]}),d?.message&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium text-ink-800&quot;,role:&quot;status&quot;,children:d.message}),y&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-800&quot;,children:y}),c&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-red-700&quot;,children:c}),p&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-800&quot;,children:p}),v&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-600&quot;,children:&quot;Si le prestataire reste bloqué en « en attente » sans mise à jour, vous pouvez abandonner cette tentative pour débloquer un nouvel essai (utile en sandbox).&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-2&quot;,children:[i.jsxs(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;text-sm py-1.5 h-auto&quot;,onClick:m,disabled:o||!x,children:[i.jsx(o2,{size:14,className:`mr-1.5 inline ${o?&quot;animate-spin&quot;:&quot;&quot;}`}),o?&quot;Vérification…&quot;:&quot;Actualiser le statut&quot;]}),!x&amp;&amp;!o&amp;&amp;!p&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Actualisation non disponible pour le moment.&quot;}),v&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;text-sm py-1.5 h-auto border-red-200 text-red-800 hover:bg-red-50&quot;,onClick:_,disabled:l||o,children:l?&quot;Abandon…&quot;:&quot;Abandonner cette tentative&quot;})]})]})}const nz={draft:&quot;Brouillon&quot;,submitted:&quot;Soumise&quot;,pending_payment:&quot;En attente de paiement&quot;,correction:&quot;Dossier en correction&quot;,paid:&quot;Payée&quot;,cancelled:&quot;Annulée&quot;},iz={initiated:&quot;Paiement en cours (agrégateur)&quot;,pending:&quot;En attente de confirmation&quot;,pending_review:&quot;En attente de validation&quot;,confirmed:&quot;Validé&quot;,rejected:&quot;Rejeté&quot;,failed:&quot;Échoué ou refusé&quot;,refunded:&quot;Remboursé&quot;},Fa=&quot;sycapay&quot;,m7=[&quot;Janvier&quot;,&quot;Février&quot;,&quot;Mars&quot;,&quot;Avril&quot;,&quot;Mai&quot;,&quot;Juin&quot;,&quot;Juillet&quot;,&quot;Août&quot;,&quot;Septembre&quot;,&quot;Octobre&quot;,&quot;Novembre&quot;,&quot;Décembre&quot;];function Jx(e){const[r,t]=e.split(&quot;-&quot;).map(Number);return Number.isNaN(r)||Number.isNaN(t)?e:`${m7[t-1]??e} ${r}`}function sz(e){const[r,t]=e.split(&quot;-&quot;).map(Number);if(Number.isNaN(r)||Number.isNaN(t))return e;const o=new Date(r,t,0).getDate(),s=m7[t-1]??String(t);return`${o} ${s} ${r}`}function az(e){return(e.currency_selected??&quot;XOF&quot;)===&quot;EUR&quot;&amp;&amp;e.amount_due_eur!=null?e.amount_due_eur:e.amount_due_xof!=null?e.amount_due_xof:e.amount_due_eur??0}function p7(e,r){return e.find(t=&gt;t.payment_gateway!==Fa||![&quot;pending&quot;,&quot;initiated&quot;].includes(t.status)?!1:r===null?t.installment_index==null:t.installment_index===r)}function oz(e){return e.some(r=&gt;r.payment_gateway===Fa&amp;&amp;[&quot;pending&quot;,&quot;initiated&quot;].includes(r.status))}function lz(e){return e.some(r=&gt;r.status===&quot;pending_review&quot;)}function w2(e,r){return e.filter(t=&gt;r===null?t.installment_index===null||t.installment_index===void 0:t.installment_index===r)}function _v(e,r){return w2(e,r).some(t=&gt;t.status===&quot;confirmed&quot;)}function cz(e,r){const t=w2(e,r),n=t.find(o=&gt;o.status===&quot;confirmed&quot;);return n||[...t].sort((o,s)=&gt;s.id-o.id)[0]}function g7(e,r){return _v(e,r)?!1:w2(e,r).some(t=&gt;t.payment_gateway===Fa&amp;&amp;t.status===&quot;failed&quot;)}function uz(e){return(e.payments??[]).filter(r=&gt;r.status===&quot;pending_review&quot;&amp;&amp;r.payment_gateway!==Fa).reduce((r,t)=&gt;r+t.amount,0)}function dz(e){return e===&quot;confirmed&quot;?&quot;rounded-full bg-green-100 px-2 py-0.5 text-xs font-medium text-green-800&quot;:e===&quot;rejected&quot;||e===&quot;failed&quot;?&quot;rounded-full bg-red-100 px-2 py-0.5 text-xs font-medium text-red-800&quot;:e===&quot;refunded&quot;?&quot;rounded-full bg-gray-200 px-2 py-0.5 text-xs font-medium text-gray-800&quot;:e===&quot;pending_review&quot;?&quot;rounded-full bg-amber-100 px-2 py-0.5 text-xs font-medium text-amber-800&quot;:&quot;rounded-full bg-sky-100 px-2 py-0.5 text-xs font-medium text-sky-900&quot;}function fz(e,r){if(r===Fa)return&quot;En ligne (SycaPay)&quot;;const t=c7.find(n=&gt;n.value===e);return t?t.label:e?e.replace(/_/g,&quot; &quot;):&quot;—&quot;}function Jm(e,r,t,n,o){const s=t.currency===&quot;EUR&quot;?&quot;€&quot;:&quot;FCFA&quot;,l=t.currency===&quot;EUR&quot;?&quot;EUR&quot;:&quot;XOF&quot;,u=sz(t.month),c=e.installment_balances?.find(S=&gt;S.installment_index===r),a=c?.nominal??(typeof t.amount==&quot;number&quot;?t.amount:typeof t.amount==&quot;string&quot;&amp;&amp;t.amount!==&quot;&quot;?Number(t.amount):null),d=c?.remaining,f=typeof d==&quot;number&quot;?d&lt;=0:_v(n,r),h=cz(n,r),m=_v(n,r),p=!!h&amp;&amp;h.status!==&quot;confirmed&quot;&amp;&amp;h.payment_gateway!==Fa,x=p7(n,r),g=g7(n,r),y=typeof d==&quot;number&quot;?d:a!=null&amp;&amp;!Number.isNaN(Number(a))?Number(a):0,v=Math.max(0,Math.floor(y)),_=o&gt;0&amp;&amp;!f&amp;&amp;!x&amp;&amp;!p;return{currencyLabel:s,currencyCode:l,dateLimit:u,balanceRow:c,nominalSlot:a,remainingSlot:d,isSlotFullyPaid:f,paymentForInst:h,isConfirmed:m,isManualPending:p,activeSyca:x,failedSycaHere:g,rawSlotRemaining:y,slotMaxDeclare:v,showPaymentActions:_}}function x7(e,r,t,n){for(let o=0;o&lt;r.length;o++)if(!Jm(e,o,r[o],t,n).isSlotFullyPaid)return o;return-1}function hz(e,r,t,n){for(let s=0;s&lt;r.length;s++)if(Jm(e,s,r[s],t,n).paymentForInst?.status===&quot;rejected&quot;)return s;for(let s=0;s&lt;r.length;s++){const l=Jm(e,s,r[s],t,n);if(!l.isSlotFullyPaid&amp;&amp;l.failedSycaHere)return s}const o=x7(e,r,t,n);return o&gt;=0?o:null}function mz(e){return e.isSlotFullyPaid?{label:&quot;Soldée&quot;,className:&quot;inline-flex shrink-0 rounded-full bg-emerald-50 px-2.5 py-1 text-xs font-medium text-emerald-900 ring-1 ring-emerald-100&quot;}:e.paymentForInst?.status===&quot;rejected&quot;?{label:&quot;Paiement rejeté&quot;,className:&quot;inline-flex shrink-0 rounded-full bg-red-50 px-2.5 py-1 text-xs font-medium text-red-900 ring-1 ring-red-100&quot;}:e.activeSyca?{label:&quot;Paiement en cours&quot;,className:&quot;inline-flex shrink-0 rounded-full bg-sky-50 px-2.5 py-1 text-xs font-medium text-sky-900 ring-1 ring-sky-100&quot;}:e.isManualPending?{label:&quot;Déclaration en attente&quot;,className:&quot;inline-flex shrink-0 rounded-full bg-amber-50 px-2.5 py-1 text-xs font-medium text-amber-950 ring-1 ring-amber-100&quot;}:typeof e.balanceRow?.paid_confirmed==&quot;number&quot;&amp;&amp;e.balanceRow.paid_confirmed&gt;0&amp;&amp;typeof e.remainingSlot==&quot;number&quot;&amp;&amp;e.remainingSlot&gt;0?{label:&quot;Partiellement réglée&quot;,className:&quot;inline-flex shrink-0 rounded-full bg-indigo-50 px-2.5 py-1 text-xs font-medium text-indigo-900 ring-1 ring-indigo-100&quot;}:{label:&quot;À payer&quot;,className:&quot;inline-flex shrink-0 rounded-full bg-slate-100 px-2.5 py-1 text-xs font-medium text-slate-800 ring-1 ring-slate-200&quot;}}const b7=&quot;fr-FR&quot;,_2=new Intl.NumberFormat(b7,{useGrouping:!0,maximumFractionDigits:0,minimumFractionDigits:0}),pz=new Intl.NumberFormat(b7,{useGrouping:!0,minimumFractionDigits:2,maximumFractionDigits:2});function j2(e){return e.replace(/\u202f/g,&quot; &quot;).replace(/\u2009/g,&quot; &quot;)}function N2(e){if(e==null||e===&quot;&quot;)return null;if(typeof e==&quot;number&quot;)return Number.isFinite(e)?e:null;if(typeof e==&quot;string&quot;){const r=e.replace(/\s/g,&quot;&quot;).replace(/\u202f/g,&quot;&quot;).replace(&quot;,&quot;,&quot;.&quot;);if(r===&quot;&quot;)return null;const t=Number(r);return Number.isFinite(t)?t:null}return null}function y7(e){const r=N2(e);return r===null?&quot;—&quot;:j2(_2.format(Math.trunc(r)))}function wr(e){const r=N2(e);return r===null?&quot;—&quot;:`${j2(_2.format(Math.trunc(r)))} XOF`}function v7(e,r){const t=N2(e);if(t===null)return&quot;—&quot;;const n=r!=null&amp;&amp;String(r).trim()!==&quot;&quot;?String(r).trim().toUpperCase():&quot;&quot;,s=j2(n===&quot;EUR&quot;?pz.format(t):_2.format(Math.trunc(t)));return n?`${s} ${n}`:s}function cn(e,r){const t=r!=null?String(r).trim().toUpperCase():&quot;&quot;;return t===&quot;XOF&quot;||t===&quot;FCFA&quot;?wr(e):v7(e,r)}function ln(e,r){return(r===&quot;EUR&quot;?&quot;EUR&quot;:&quot;XOF&quot;)===&quot;EUR&quot;?`${v7(e,&quot;EUR&quot;).replace(/\s*EUR$/u,&quot;&quot;).trimEnd()} €`:`${y7(e)} FCFA`}function gz(e,r){const t=(r??&quot;&quot;).trim().toUpperCase();return t===&quot;EUR&quot;||t===&quot;€&quot;?ln(e,&quot;EUR&quot;):ln(e,&quot;XOF&quot;)}const T4=&quot;w-full min-h-[44px] rounded-xl border-2 border-brand-900 bg-brand-700 px-4 py-3 text-sm font-semibold uppercase tracking-wider text-white transition-all hover:bg-brand-900 disabled:opacity-50 sm:w-auto sm:min-h-0&quot;,xz=&quot;w-full min-h-[44px] rounded-xl border-2 border-brand-900 bg-transparent px-4 py-3 text-sm font-semibold uppercase tracking-wider text-brand-900 transition-all hover:bg-brand-900 hover:text-white disabled:opacity-50 sm:w-auto sm:min-h-0&quot;;function bz({reg:e,idx:r,inst:t,dateLimit:n,balanceRow:o,nominalSlot:s,remainingSlot:l,isSlotFullyPaid:u,paymentForInst:c,isConfirmed:a,activeSyca:d,failedSycaHere:f,slotMaxDeclare:h,showPaymentActions:m,registrationSycaPayOpen:p,sycapayDisabledMessage:x,downloadingReceiptId:g,onDownloadReceipt:y,onFetchRegistrationsSilent:v,onOpenSycaModal:_,onOpenDeclareModal:S,statusBadge:A,isExpanded:I,onToggle:V,showNextUnpaidBadge:F}){const q=t.currency===&quot;EUR&quot;?&quot;EUR&quot;:&quot;XOF&quot;,H=typeof l==&quot;number&quot;?l:s!=null&amp;&amp;!Number.isNaN(s)?s:null,B=`installment-${e.id}-${r}-header`,K=`installment-${e.id}-${r}-panel`,T=u?s!=null&amp;&amp;!Number.isNaN(s)?ln(Number(s),q):&quot;—&quot;:H!=null?ln(H,q):&quot;—&quot;;return i.jsxs(&quot;div&quot;,{className:&quot;overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-[0_4px_14px_rgba(15,23,42,0.06)]&quot;,children:[i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,id:B,&quot;aria-expanded&quot;:I,&quot;aria-controls&quot;:K,onClick:V,className:`w-full px-4 py-3 text-left transition-colors hover:bg-gray-50/80 focus-visible:outline focus-visible:ring-2 focus-visible:ring-brand-600 focus-visible:ring-offset-2 sm:px-5 sm:py-4 ${I?&quot;rounded-t-2xl border-b border-gray-100 bg-gray-50/40&quot;:&quot;rounded-2xl&quot;}`,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-start justify-between gap-3 sm:hidden&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1 space-y-1&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm font-semibold leading-snug text-ink-900&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;text-xs font-medium uppercase tracking-[0.12em] text-ink-500&quot;,children:[&quot;Échéance &quot;,r+1]}),i.jsx(&quot;span&quot;,{className:&quot;text-ink-400&quot;,children:&quot; · &quot;}),Jx(t.month)]}),F&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;inline-flex w-fit rounded-full bg-brand-50 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-brand-800 ring-1 ring-brand-100&quot;,children:&quot;Prochaine échéance&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-600&quot;,children:[&quot;Date limite : &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-medium text-ink-800&quot;,children:n})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-2 pt-0.5&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;text-base font-semibold tabular-nums text-ink-900&quot;,children:T}),i.jsx(&quot;span&quot;,{className:&quot;text-ink-300&quot;,children:&quot;·&quot;}),i.jsx(&quot;span&quot;,{className:A.className,children:A.label})]})]}),i.jsx(qd,{className:`mt-0.5 h-5 w-5 shrink-0 text-ink-400 transition-transform duration-200 ${I?&quot;rotate-180&quot;:&quot;&quot;}`,&quot;aria-hidden&quot;:!0})]}),i.jsxs(&quot;div&quot;,{className:&quot;hidden items-center justify-between gap-4 sm:flex&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-x-2 gap-y-1&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;text-xs font-medium uppercase tracking-[0.12em] text-ink-500&quot;,children:[&quot;Échéance &quot;,r+1]}),F&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;rounded-full bg-brand-50 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-brand-800 ring-1 ring-brand-100&quot;,children:&quot;Prochaine échéance&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:Jx(t.month)})]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-600&quot;,children:[&quot;Date limite : &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-medium text-ink-800&quot;,children:n})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex shrink-0 items-center gap-3&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col items-end gap-1.5 sm:flex-row sm:items-center sm:gap-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-lg font-semibold tabular-nums text-ink-900&quot;,children:T}),i.jsx(&quot;span&quot;,{className:A.className,children:A.label})]}),i.jsx(qd,{className:`h-5 w-5 shrink-0 text-ink-400 transition-transform duration-200 ${I?&quot;rotate-180&quot;:&quot;&quot;}`,&quot;aria-hidden&quot;:!0})]})]})]}),I&amp;&amp;i.jsxs(&quot;div&quot;,{id:K,role:&quot;region&quot;,&quot;aria-labelledby&quot;:B,className:&quot;space-y-4 border-t border-gray-100 px-4 pb-4 pt-3 sm:px-5 sm:pb-5 sm:pt-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;text-xs font-medium uppercase tracking-[0.12em] text-ink-500&quot;,children:[&quot;Échéance &quot;,r+1]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-1 flex flex-wrap items-center gap-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:Jx(t.month)}),i.jsx(&quot;span&quot;,{className:A.className,children:A.label})]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-600&quot;,children:[&quot;Date limite : &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-medium text-ink-800&quot;,children:n})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 text-left sm:max-w-[55%] sm:text-right&quot;,children:[u?i.jsxs(i.Fragment,{children:[i.jsx(&quot;p&quot;,{className:&quot;text-lg font-semibold tabular-nums text-green-800&quot;,children:s!=null&amp;&amp;!Number.isNaN(s)?ln(Number(s),q):&quot;—&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-0.5 text-xs text-green-700&quot;,children:&quot;Montant d&#039;échéance réglé&quot;})]}):i.jsxs(i.Fragment,{children:[i.jsx(&quot;p&quot;,{className:&quot;text-xl font-semibold tabular-nums text-ink-900&quot;,children:H!=null?ln(H,q):&quot;—&quot;}),typeof l==&quot;number&quot;&amp;&amp;l&gt;0&amp;&amp;typeof s==&quot;number&quot;&amp;&amp;!Number.isNaN(s)&amp;&amp;l&lt;s&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;mt-0.5 text-xs text-ink-500&quot;,children:[&quot;sur &quot;,ln(s,q),&quot; d&#039;échéance&quot;]})]}),typeof o?.paid_confirmed==&quot;number&quot;&amp;&amp;o.paid_confirmed&gt;0&amp;&amp;!u&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-xs font-medium text-green-700&quot;,children:[&quot;Déjà versé : &quot;,ln(o.paid_confirmed,q)]})]})]}),i.jsx(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-2&quot;,children:u&amp;&amp;a&amp;&amp;c?.receipt?i.jsxs(&quot;span&quot;,{className:&quot;flex flex-wrap items-center gap-2&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;rounded-full bg-green-100 px-2 py-0.5 text-xs font-medium text-green-800&quot;,children:&quot;Validé&quot;}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;y(c.receipt.id,c.receipt.receipt_number),disabled:g===c.receipt?.id,className:&quot;inline-flex min-h-[44px] items-center gap-1.5 rounded-xl px-3 text-sm font-medium text-brand-700 transition-colors hover:bg-brand-50 disabled:opacity-50 sm:min-h-0&quot;,children:[i.jsx(La,{size:14,&quot;aria-hidden&quot;:!0}),g===c.receipt?.id?&quot;Téléchargement...&quot;:&quot;Télécharger le reçu&quot;]})]}):u?i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-600&quot;,children:&quot;Montant couvert par vos paiements (y compris paiement libre). Le reçu correspondant figure dans la liste « Paiements ».&quot;}):null}),d&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-sky-200 bg-sky-50/40 px-4 py-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-800&quot;,children:&quot;Paiement en ligne en cours&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-600&quot;,children:&quot;Le statut affiché provient de nos serveurs après l’initiation. La confirmation finale peut prendre un court délai.&quot;}),i.jsx(&quot;div&quot;,{className:&quot;mt-3 flex flex-wrap gap-2&quot;,children:d.action_url?i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:T4,onClick:()=&gt;window.location.assign(d.action_url),children:&quot;Continuer vers le paiement&quot;}):null}),i.jsx(v2,{registrationId:e.id,paymentId:d.id,summaryHint:&quot;La confirmation finale vient de nos serveurs (prestataire), pas seulement de l’écran du téléphone.&quot;,onUpdated:v})]}),m&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-3 border-t border-gray-100 pt-4&quot;,children:[!p&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;rounded-xl border border-amber-200 bg-amber-50/80 px-3 py-3 text-sm text-amber-950&quot;,children:[i.jsxs(&quot;span&quot;,{children:[x.trim()||&quot;Les paiements en ligne ne sont pas encore ouverts.&quot;,&quot; &quot;]}),&quot;Vous pouvez toutefois déclarer un paiement déjà effectué ci-dessous.&quot;]}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-3 sm:flex-row sm:flex-wrap lg:flex-nowrap lg:gap-4&quot;,children:[p&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:T4,onClick:_,children:f?&quot;Réessayer le paiement en ligne&quot;:&quot;Payer cette échéance&quot;}),h&gt;0&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:xz,onClick:S,children:&quot;Déclarer un paiement déjà effectué&quot;})]})]})]})]})}function yz({registrationId:e,payments:r,downloadingReceiptId:t,onDownloadReceipt:n,onFetchRegistrationsSilent:o}){return i.jsxs(&quot;section&quot;,{className:&quot;mt-5 border-t border-gray-100 pt-5&quot;,&quot;aria-labelledby&quot;:`payments-heading-${e}`,children:[i.jsx(&quot;h3&quot;,{id:`payments-heading-${e}`,className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Paiements&quot;}),r.length===0?i.jsx(&quot;div&quot;,{className:&quot;mt-4 rounded-xl border border-dashed border-gray-200 bg-gray-50/70 px-4 py-10 text-center&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;mx-auto flex max-w-md flex-col items-center gap-3&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;flex h-11 w-11 items-center justify-center rounded-full bg-gray-100 text-ink-400&quot;,children:i.jsx(c2,{className:&quot;h-5 w-5&quot;,&quot;aria-hidden&quot;:!0})}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm leading-relaxed text-ink-600&quot;,children:[&quot;Aucun paiement enregistré pour le moment.&quot;,i.jsx(&quot;br&quot;,{}),i.jsx(&quot;span&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Vos paiements validés ou déclarés apparaîtront ici.&quot;})]})]})}):i.jsx(&quot;ul&quot;,{className:&quot;mt-4 space-y-3&quot;,children:r.map(s=&gt;i.jsxs(&quot;li&quot;,{className:&quot;rounded-xl border border-gray-100 bg-white px-3 py-3 shadow-sm sm:px-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-start sm:justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1 space-y-1&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-base font-semibold tabular-nums text-ink-900&quot;,children:gz(s.amount,s.currency)}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-600&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;font-medium text-ink-700&quot;,children:fz(s.method,s.payment_gateway)}),i.jsx(&quot;span&quot;,{className:&quot;text-ink-400&quot;,children:&quot; · &quot;}),s.paid_at?new Date(s.paid_at).toLocaleDateString(&quot;fr-FR&quot;):&quot;—&quot;]}),s.reference?i.jsxs(&quot;p&quot;,{className:&quot;font-mono text-xs text-ink-500&quot;,children:[&quot;Réf. &quot;,s.reference]}):null,s.payment_gateway===Fa&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Canal : paiement en ligne&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-shrink-0 flex-col items-start gap-2 sm:items-end&quot;,children:[i.jsx(&quot;span&quot;,{className:dz(s.status),children:iz[s.status]??s.status}),s.status===&quot;confirmed&quot;&amp;&amp;(s.receipt?i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;n(s.receipt.id,s.receipt.receipt_number),disabled:t===s.receipt.id,title:&quot;Télécharger le reçu PDF&quot;,className:&quot;inline-flex min-h-[44px] items-center gap-1.5 rounded-lg px-2 text-sm font-medium text-brand-700 hover:bg-brand-50 hover:text-brand-900 focus:outline-none focus:ring-2 focus:ring-brand-700 focus:ring-offset-2 disabled:opacity-50 sm:min-h-0&quot;,children:[i.jsx(La,{size:14,&quot;aria-hidden&quot;:!0}),t===s.receipt.id?&quot;Téléchargement...&quot;:&quot;Télécharger le reçu&quot;]}):i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Reçu à venir&quot;}))]})]}),s.payment_gateway===Fa&amp;&amp;(s.status===&quot;pending&quot;||s.status===&quot;initiated&quot;)&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mt-3 rounded-lg border border-sky-100 bg-sky-50/50 px-3 py-2&quot;,children:i.jsx(v2,{registrationId:e,paymentId:s.id,summaryHint:&quot;Le prestataire peut confirmer avant l’affichage ici : actualisez ou attendez quelques secondes.&quot;,onUpdated:o})})]},s.id))})]})}const vz={unpaid:{badgeClass:&quot;bg-gray-100 text-gray-700&quot;,fallbackLabel:&quot;Non payé&quot;},partial:{badgeClass:&quot;bg-amber-100 text-amber-800&quot;,fallbackLabel:&quot;Paiement partiel&quot;},paid:{badgeClass:&quot;bg-green-100 text-green-700&quot;,fallbackLabel:&quot;Payé&quot;},overpaid:{badgeClass:&quot;bg-sky-100 text-sky-800&quot;,fallbackLabel:&quot;Trop-perçu&quot;},overpaid_settled:{badgeClass:&quot;bg-green-100 text-green-700&quot;,fallbackLabel:&quot;Trop-perçu remboursé&quot;},adjustment_due:{badgeClass:&quot;bg-amber-100 text-amber-800&quot;,fallbackLabel:&quot;Reliquat à payer&quot;},refund_pending:{badgeClass:&quot;bg-sky-100 text-sky-800&quot;,fallbackLabel:&quot;Trop-perçu à traiter&quot;}};function wz(e){if(!e)return{label:&quot;-&quot;,badgeClass:&quot;bg-gray-100 text-gray-700&quot;};const r=vz[e.status]??{badgeClass:&quot;bg-gray-100 text-gray-700&quot;,fallbackLabel:e.label};return{label:e.label||r.fallbackLabel,badgeClass:r.badgeClass}}function Zc({summary:e,compact:r=!1}){if(!e)return null;const{label:t,badgeClass:n}=wz(e),o=r?&quot;max-w-full whitespace-normal break-words px-2 py-0.5 text-[10px] font-medium leading-snug sm:text-xs&quot;:&quot;px-3 py-1 text-sm font-medium&quot;;return i.jsx(&quot;span&quot;,{className:`inline-flex items-center rounded-full ${n} ${o}`,children:t})}const I4=&quot;w-full min-h-[44px] rounded-xl border-2 border-brand-900 bg-brand-700 px-4 py-3 text-sm font-semibold uppercase tracking-wider text-white transition-all hover:bg-brand-900 disabled:opacity-50 sm:w-auto sm:min-h-0&quot;,eb=&quot;w-full min-h-[44px] rounded-xl border-2 border-brand-900 bg-transparent px-4 py-3 text-sm font-semibold uppercase tracking-wider text-brand-900 transition-all hover:bg-brand-900 hover:text-white disabled:opacity-50 sm:w-auto sm:min-h-0&quot;;function _z({reg:e,sycapayPublic:r,registrationSycaPayOpen:t,downloadingReceiptId:n,onDownloadReceipt:o,onFetchRegistrationsSilent:s,setSycaModal:l,setOpenAmountModal:u,setDeclareModal:c}){const a=az(e),d=e.currency_selected===&quot;EUR&quot;?&quot;€&quot;:&quot;FCFA&quot;,f=e.installment_config?.installments??[],h=f.length&gt;0,m=e.historical_installment_summary??null,p=e.commercial_adjustment_summary??null,x=e.financial_status_summary??null,g=e.payments??[],y=g.filter(k=&gt;k.status===&quot;confirmed&quot;).reduce((k,N)=&gt;k+N.amount,0),v=Math.max(0,a-y),_=uz(e),S=p?.has_pending_commercial_adjustment===!0&amp;&amp;p.type===&quot;upgrade&quot;&amp;&amp;p.is_historical_installment_adjustment,A=p?.has_pending_commercial_adjustment===!0&amp;&amp;p.type===&quot;downgrade&quot;&amp;&amp;p.is_historical_installment_adjustment,I=p?.commercial_balance_remaining??0,V=S&amp;&amp;p?.payment_supported_channels.sycapay===!1,F=p7(g,null),q=g7(g,null),H=g.some(k=&gt;(k.installment_index===null||k.installment_index===void 0)&amp;&amp;k.payment_gateway!==Fa&amp;&amp;k.status!==&quot;confirmed&quot;&amp;&amp;k.status!==&quot;failed&quot;),B=e.currency_selected===&quot;EUR&quot;?&quot;EUR&quot;:&quot;XOF&quot;,K=Math.max(0,Math.floor(v-_)),T=x7(e,f,g,a),[L,E]=O.useState(()=&gt;hz(e,f,g,a)),j=r?.disabled_message?.trim()||&quot;Les paiements en ligne (SycaPay) ne sont pas encore ouverts.&quot;;return i.jsxs(&quot;article&quot;,{className:&quot;w-full overflow-hidden rounded-2xl border border-gray-200/90 bg-white shadow-[0_8px_20px_rgba(15,23,42,0.06)]&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;border-b border-gray-100 bg-gradient-to-b from-white to-brand-50/30 px-4 py-5 sm:px-6&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-[11px] font-medium uppercase tracking-[0.14em] text-ink-500&quot;,children:&quot;Événement&quot;}),i.jsx(&quot;h2&quot;,{className:&quot;mt-1 text-lg font-semibold leading-snug text-ink-900 sm:text-xl&quot;,children:e.event?.name??`Inscription #${e.id}`}),i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-600&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;font-medium text-ink-800&quot;,children:[e.first_name,&quot; &quot;,e.last_name]}),i.jsx(&quot;span&quot;,{className:&quot;text-ink-400&quot;,children:&quot; · &quot;}),e.email]}),e.pricing_plan&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-600&quot;,children:[&quot;Formule :&quot;,&quot; &quot;,i.jsxs(&quot;span&quot;,{className:&quot;font-medium text-ink-800&quot;,children:[e.pricing_plan.title,&quot; (&quot;,e.pricing_plan.code,&quot;)&quot;]})]}),(e.amount_due_eur!=null||e.amount_due_xof!=null)&amp;&amp;!h&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-500&quot;,children:[&quot;Montant dû :&quot;,&quot; &quot;,e.amount_due_eur!=null&amp;&amp;ln(e.amount_due_eur,&quot;EUR&quot;),e.amount_due_eur!=null&amp;&amp;e.amount_due_xof!=null&amp;&amp;&quot; / &quot;,e.amount_due_xof!=null&amp;&amp;ln(e.amount_due_xof,&quot;XOF&quot;)]})]}),i.jsxs(&quot;div&quot;,{className:&quot;shrink-0 text-left sm:text-right&quot;,children:[i.jsx(Zc,{summary:x}),i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-xs text-ink-500&quot;,children:[&quot;Administratif : &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-medium text-ink-700&quot;,children:nz[e.status]??e.status})]})]})]})}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-5 px-4 py-5 sm:px-6&quot;,children:[(a&gt;0||y&gt;0||_&gt;0)&amp;&amp;i.jsxs(&quot;div&quot;,{className:`grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 ${_&gt;0?&quot;lg:grid-cols-4&quot;:&quot;lg:grid-cols-3&quot;}`,children:[i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-100 bg-white p-4 shadow-sm&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium uppercase tracking-wide text-ink-500&quot;,children:&quot;Montant total&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-lg font-semibold text-ink-900&quot;,children:ln(a,e.currency_selected)})]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-100 bg-white p-4 shadow-sm&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium uppercase tracking-wide text-ink-500&quot;,children:&quot;Payé validé&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-lg font-semibold text-green-800&quot;,children:ln(y,e.currency_selected)})]}),_&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-amber-100 bg-amber-50/50 p-4 shadow-sm&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium uppercase tracking-wide text-amber-900/80&quot;,children:&quot;Déclaré en attente&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-lg font-semibold text-amber-900&quot;,children:ln(_,e.currency_selected)})]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-brand-700/20 bg-gradient-to-br from-brand-50 to-white p-4 shadow-sm&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium uppercase tracking-wide text-ink-500&quot;,children:&quot;Reste à payer&quot;}),i.jsxs(&quot;p&quot;,{className:`mt-1 text-2xl font-semibold tabular-nums ${v&gt;0?&quot;text-brand-900&quot;:&quot;text-green-700&quot;}`,children:[ln(v,e.currency_selected),v===0&amp;&amp;a&gt;0&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;ml-1 text-base font-medium&quot;,children:&quot;— Soldé&quot;})]})]})]}),h?i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:S?&quot;Echeancier historique&quot;:&quot;Echeances de paiement&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-500&quot;,children:S?m?.label??&quot;Votre plan d&#039;echeances initial est soldé.&quot;:`Montant total de l&#039;inscription : ${ln(a,e.currency_selected)}`})]}),m&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-2xl border border-gray-200 bg-gray-50/70 p-4 sm:p-5&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-[11px] font-semibold uppercase tracking-[0.12em] text-ink-500&quot;,children:&quot;Echeancier historique&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-lg font-semibold text-ink-900&quot;,children:m.label??&quot;Echeancier present&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-600&quot;,children:[m.installments_count?`${m.installments_count} echeance${m.installments_count&gt;1?&quot;s&quot;:&quot;&quot;}`:&quot;Plan de paiement initial&quot;,m.total_amount!=null?` · ${ln(m.total_amount,e.currency_selected)}`:&quot;&quot;]}),m.is_fully_paid&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-600&quot;,children:&quot;Votre plan d&#039;echeances initial est solde.&quot;})]}),S&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-2xl border border-amber-200 bg-amber-50/70 p-4 sm:p-5&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-[11px] font-semibold uppercase tracking-[0.12em] text-amber-900/80&quot;,children:&quot;Ajustement commercial&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-lg font-semibold text-ink-900&quot;,children:p?.label??&quot;Complement suite a changement de formule&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-2xl font-semibold text-amber-900&quot;,children:ln(I,e.currency_selected)}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:&quot;Ce complement n&#039;est pas une echeance de votre plan initial.&quot;}),i.jsxs(&quot;ul&quot;,{className:&quot;mt-3 space-y-1 text-sm text-ink-700&quot;,children:[i.jsx(&quot;li&quot;,{children:&quot;Vous pouvez declarer un paiement pour validation.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Le paiement en ligne SycaPay n&#039;est pas disponible pour ce complement dans cette version.&quot;})]})]}),A&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-2xl border border-sky-200 bg-sky-50/70 p-4 sm:p-5&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-[11px] font-semibold uppercase tracking-[0.12em] text-sky-900/80&quot;,children:&quot;Ajustement commercial&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-lg font-semibold text-ink-900&quot;,children:p?.label??&quot;Trop-percu suite a changement de formule&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:&quot;Le remboursement eventuel sera traite hors echeancier par l&#039;equipe finance.&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:f.map((k,N)=&gt;{const C=Jm(e,N,k,g,a),P=k.currency===&quot;EUR&quot;?&quot;€&quot;:&quot;FCFA&quot;,D=C.balanceRow,z=C.nominalSlot,Y=C.remainingSlot,Z=C.isSlotFullyPaid,ne=C.paymentForInst,U=C.isConfirmed,J=C.activeSyca,$=C.failedSycaHere,R=C.slotMaxDeclare,X=C.showPaymentActions,re=mz(C);return i.jsx(bz,{reg:e,idx:N,inst:k,dateLimit:C.dateLimit,balanceRow:D,nominalSlot:z,remainingSlot:Y,isSlotFullyPaid:Z,paymentForInst:ne,isConfirmed:U,activeSyca:J,failedSycaHere:$,slotMaxDeclare:R,showPaymentActions:X,registrationSycaPayOpen:t,sycapayDisabledMessage:j,downloadingReceiptId:n,onDownloadReceipt:o,onFetchRegistrationsSilent:s,statusBadge:re,isExpanded:L===N,onToggle:()=&gt;E(Q=&gt;Q===N?null:N),showNextUnpaidBadge:T&gt;=0&amp;&amp;N===T,onOpenSycaModal:()=&gt;l({registrationId:e.id,installmentIndex:N,defaultCountry:e.country||&quot;CI&quot;,paymentAmount:R&gt;0?{amount:R,currencyLabel:P}:void 0}),onOpenDeclareModal:()=&gt;c({registrationId:e.id,installmentIndex:N,currencyCode:B,maxAmount:R,defaultAmount:R})},N)})}),v&gt;0&amp;&amp;!oz(g)&amp;&amp;!lz(g)&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-2xl border border-dashed border-gray-200 bg-gray-50/50 p-4 sm:p-5&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:S?&quot;Complement suite a changement de formule&quot;:&quot;Autre montant&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm leading-relaxed text-ink-600&quot;,children:S?&quot;Ce solde commercial est traite hors echeancier. Il n&#039;est pas impute a de nouvelles echeances.&quot;:&quot;Vous pouvez payer un montant libre. Il sera imputé automatiquement aux échéances les plus anciennes.&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-xs text-ink-500&quot;,children:S?&quot;Declarez un paiement deja effectue avec justificatif. L&#039;encaissement finance direct reste possible cote administration.&quot;:&quot;Déclarez un paiement déjà effectué avec justificatif — prise en compte après validation par l’équipe.&quot;}),!t&amp;&amp;!V&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;mt-3 rounded-xl border border-amber-200 bg-amber-50/80 px-3 py-3 text-sm text-amber-950&quot;,children:[i.jsxs(&quot;span&quot;,{children:[j,&quot; &quot;]}),&quot;Vous pouvez toutefois déclarer un paiement déjà effectué ci-dessous.&quot;]}),V&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-3 rounded-xl border border-amber-200 bg-amber-50/80 px-3 py-3 text-sm text-amber-950&quot;,children:&quot;Le paiement en ligne SycaPay n&#039;est pas disponible pour ce complement dans cette version.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mt-4 flex flex-col gap-3 sm:flex-row sm:flex-wrap lg:flex-nowrap lg:gap-4&quot;,children:[t&amp;&amp;!V&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:eb,onClick:()=&gt;u({registrationId:e.id,defaultCountry:e.country||&quot;CI&quot;,remainingDue:v,currencyLabel:d,installments:f}),children:&quot;Payer un autre montant&quot;}),K&gt;0&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:eb,onClick:()=&gt;c({registrationId:e.id,installmentIndex:null,currencyCode:B,maxAmount:K,defaultAmount:K}),children:&quot;Déclarer un paiement&quot;})]})]})]}):a&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[p?.has_pending_commercial_adjustment&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-2xl border border-amber-200 bg-amber-50/60 p-4 sm:p-5&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-[11px] font-semibold uppercase tracking-[0.12em] text-amber-900/80&quot;,children:&quot;Ajustement commercial&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-lg font-semibold text-ink-900&quot;,children:p.label??&quot;Ajustement commercial post-paiement&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:p.type===&quot;upgrade&quot;?&quot;Le solde restant correspond a un complement suite a changement de formule.&quot;:&quot;Le trop-percu sera traite manuellement par l&#039;equipe finance.&quot;})]}),v&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-2xl border border-gray-200/80 bg-gradient-to-br from-slate-50 to-white p-4 sm:p-5&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-[11px] font-semibold uppercase tracking-[0.12em] text-ink-500&quot;,children:&quot;Solde restant à régler&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-2xl font-semibold text-ink-900&quot;,children:ln(v,e.currency_selected)}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-600&quot;,children:&quot;Utilisez les options de paiement ou de déclaration ci-dessous.&quot;})]}),i.jsx(&quot;h3&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Montant dû&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 rounded-2xl border border-gray-200 bg-gray-50/40 p-4 sm:p-5&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center justify-between gap-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-600&quot;,children:&quot;Total à régler&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:ln(a,e.currency_selected)})]}),F&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-sky-200 bg-white px-4 py-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-800&quot;,children:&quot;Paiement en ligne en cours&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-600&quot;,children:&quot;La confirmation sur cette page est mise à jour depuis nos serveurs, pas depuis l’écran du téléphone seul.&quot;}),i.jsx(&quot;div&quot;,{className:&quot;mt-3 flex flex-wrap gap-2&quot;,children:F.action_url?i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:I4,onClick:()=&gt;window.location.assign(F.action_url),children:&quot;Continuer vers le paiement&quot;}):null}),i.jsx(v2,{registrationId:e.id,paymentId:F.id,summaryHint:&quot;La confirmation finale vient de nos serveurs (prestataire), pas seulement de l’écran du téléphone.&quot;,onUpdated:s})]}),!F&amp;&amp;v&gt;0&amp;&amp;(!H||q)&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-3 border-t border-gray-100 pt-4&quot;,children:[!t&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;rounded-xl border border-amber-200 bg-amber-50/80 px-3 py-3 text-sm text-amber-950&quot;,children:[i.jsxs(&quot;span&quot;,{children:[j,&quot; &quot;]}),&quot;Vous pouvez toutefois déclarer un paiement déjà effectué ci-dessous.&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Les paiements déclarés sont pris en compte après validation par l’équipe.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-3 sm:flex-row sm:flex-wrap lg:flex-nowrap lg:gap-4&quot;,children:[t&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:I4,onClick:()=&gt;l({registrationId:e.id,installmentIndex:null,defaultCountry:e.country||&quot;CI&quot;,paymentAmount:v&gt;0?{amount:v,currencyLabel:d}:void 0}),children:q?&quot;Réessayer le paiement en ligne&quot;:&quot;Payer le solde&quot;}),K&gt;0&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:eb,onClick:()=&gt;c({registrationId:e.id,installmentIndex:null,currencyCode:B,maxAmount:K,defaultAmount:K}),children:&quot;Déclarer un paiement déjà effectué&quot;})]})]})]})]}),i.jsx(yz,{registrationId:e.id,payments:g,downloadingReceiptId:n,onDownloadReceipt:o,onFetchRegistrationsSilent:s})]})]})}const R4=&quot;w-full min-h-[44px] rounded-xl border-2 border-brand-900 bg-brand-700 px-5 py-3 text-sm font-semibold uppercase tracking-wider text-white hover:bg-brand-900 sm:w-auto sm:min-h-0&quot;,jz=&quot;w-full min-h-[44px] rounded-xl border-2 border-brand-900 px-5 py-3 text-sm font-semibold uppercase tracking-wider text-brand-900 hover:bg-brand-900 hover:text-white sm:w-auto sm:min-h-0&quot;,Nz=&quot;w-full min-h-[44px] rounded-xl border-2 border-gray-300 bg-white px-4 py-3 text-sm font-semibold text-ink-800 transition hover:border-gray-400 hover:bg-gray-50&quot;;function kz(){const e=Ni(),{user:r,isAuthenticated:t,canAccessAdmin:n,loading:o,refetch:s,roles:l}=Ts(),[u,c]=O.useState([]),[a,d]=O.useState(!0),[f,h]=O.useState(null),[m,p]=O.useState(&quot;&quot;),[x,g]=O.useState(&quot;&quot;),[y,v]=O.useState(null),[_,S]=O.useState(!1),[A,I]=O.useState(null),[V,F]=O.useState(null),[q,H]=O.useState(null),[B,K]=O.useState(null),[T,L]=O.useState(!1),[E,j]=O.useState(null),[k,N]=O.useState(!1),C=!k||E?.registration_payments_enabled!==!1,P=O.useCallback(ne=&gt;{const U=ne?.silent===!0;U||d(!0),h(null),a$().then(c).catch(J=&gt;{if(J instanceof kt){if(J.status===401){vi.logout().catch(()=&gt;{}),e(&quot;/login&quot;,{replace:!0});return}h(J.data?.message??&quot;Une erreur est survenue.&quot;)}else h(&quot;Une erreur est survenue.&quot;)}).finally(()=&gt;{U||d(!1)})},[e]);O.useEffect(()=&gt;{!t||!vi.isAuthenticated()||r?.must_change_password||P()},[t,r?.must_change_password,P]),O.useEffect(()=&gt;{!t||!vi.isAuthenticated()||r?.must_change_password||l7().then(ne=&gt;{j(ne),N(!0)}).catch(()=&gt;{j({registration_payments_enabled:!0,donation_payments_enabled:!0,disabled_message:&quot;&quot;}),N(!0)})},[t,r?.must_change_password]);const D=ne=&gt;{P();const U=ne.data.redirect_url;U&amp;&amp;window.location.assign(U)},z=()=&gt;{const ne=m.trim(),U=x.trim();if(v(null),ne.length&lt;8){v(&quot;Le mot de passe doit contenir au moins 8 caractères.&quot;);return}if(ne!==U){v(&quot;Les deux mots de passe ne correspondent pas.&quot;);return}S(!0),o7.changePassword({new_password:ne,new_password_confirmation:U}).then(()=&gt;{p(&quot;&quot;),g(&quot;&quot;),s()}).catch(J=&gt;{const $=J?.data?.message??J?.message??&quot;Erreur lors du changement de mot de passe.&quot;,R=J?.data?.errors;v(R?Object.values(R).flat().join(&quot; &quot;):$)}).finally(()=&gt;S(!1))},Y=(ne,U)=&gt;{I(ne),f$(ne,`${U}.pdf`).catch(()=&gt;{}).finally(()=&gt;I(null))},Z=()=&gt;{P({silent:!0}),L(!0)};return o?i.jsx(&quot;div&quot;,{className:&quot;flex min-h-screen items-center justify-center bg-brand-50&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Chargement...&quot;})}):t?n&amp;&amp;!r?.must_change_password?i.jsx(Kn,{to:&quot;/admin/registrations&quot;,replace:!0}):i.jsxs(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 pb-16 pt-6 sm:pb-12 sm:pt-8 lg:pt-10&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mx-auto w-full max-w-[96rem] px-4 sm:px-6 lg:px-8 xl:px-10 2xl:px-12&quot;,children:[i.jsx(rz,{showCompanionCta:!!r?.summit_companion_enabled,onOpenCompanion:()=&gt;e(&quot;/app&quot;)}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 flex flex-col gap-6 xl:mt-8 xl:grid xl:grid-cols-[minmax(0,1fr)_340px] xl:items-start xl:gap-8 2xl:gap-10&quot;,children:[i.jsx(&quot;aside&quot;,{className:&quot;w-full xl:sticky xl:top-8 xl:col-start-2 xl:row-start-1 xl:w-full xl:max-w-[360px] xl:justify-self-end&quot;,children:i.jsxs(wt,{className:&quot;rounded-2xl p-5 shadow-[0_8px_20px_rgba(15,23,42,0.05)] sm:p-6&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium uppercase tracking-[0.14em] text-ink-500&quot;,children:&quot;Profil&quot;}),i.jsx(&quot;h2&quot;,{className:&quot;mt-1 text-base font-semibold text-ink-900 sm:text-lg&quot;,children:&quot;Mes informations&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mt-5 space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex gap-3 rounded-xl border border-gray-100 bg-gray-50/50 px-4 py-3 sm:px-5 sm:py-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-brand-50 text-brand-700&quot;,children:i.jsx(zB,{className:&quot;h-5 w-5&quot;,&quot;aria-hidden&quot;:!0})}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium uppercase tracking-wide text-ink-500&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-0.5 text-sm font-medium text-ink-900 sm:text-base&quot;,children:r?.name??&quot;—&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-3 rounded-xl border border-gray-100 bg-gray-50/50 px-4 py-3 sm:px-5 sm:py-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-brand-50 text-brand-700&quot;,children:i.jsx(Aa,{className:&quot;h-5 w-5&quot;,&quot;aria-hidden&quot;:!0})}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 break-all&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium uppercase tracking-wide text-ink-500&quot;,children:&quot;Email&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-0.5 text-sm font-medium text-ink-900 sm:text-base&quot;,children:r?.email??&quot;—&quot;})]})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 border-t border-gray-200 pt-5&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:Nz,onClick:()=&gt;vi.logout().then(()=&gt;e(&quot;/login&quot;,{replace:!0})),children:&quot;Déconnexion&quot;}),i.jsx(&quot;a&quot;,{href:&quot;/&quot;,className:&quot;mt-3 flex min-h-[44px] items-center justify-center text-center text-sm font-medium text-brand-700 hover:text-brand-900 hover:underline sm:min-h-0&quot;,children:&quot;Retour à l&#039;accueil&quot;}),n&amp;&amp;i.jsx(&quot;a&quot;,{href:l?.includes(&quot;COMMISSION_FINANCE&quot;)||l?.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)||l?.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)||l?.includes(&quot;COMMISSARIAT_GENERAL&quot;)?&quot;/admin/finance&quot;:&quot;/admin/registrations&quot;,className:&quot;mt-2 flex min-h-[40px] items-center justify-center text-center text-sm text-ink-600 hover:text-ink-900 hover:underline sm:min-h-0&quot;,children:&quot;Accéder à l&#039;administration&quot;})]})]})}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 w-full space-y-6 xl:col-start-1 xl:row-start-1&quot;,children:[r?.must_change_password&amp;&amp;i.jsxs(wt,{className:&quot;rounded-2xl border-amber-200 bg-amber-50/50 p-5 sm:p-6&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Changer votre mot de passe&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-600&quot;,children:&quot;Votre mot de passe a été réinitialisé. Veuillez définir un nouveau mot de passe pour continuer.&quot;}),y&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mt-4 rounded-xl border border-red-200 bg-red-50 p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:y})}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 max-w-md space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,children:[&quot;Nouveau mot de passe &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;password&quot;,value:m,onChange:ne=&gt;p(ne.target.value),className:&quot;w-full rounded-xl border border-gray-300 px-4 py-3 text-base focus:ring-2 focus:ring-brand-700&quot;,placeholder:&quot;Au moins 8 caractères&quot;,disabled:!!_,autoComplete:&quot;new-password&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,children:[&quot;Confirmer le mot de passe &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;password&quot;,value:x,onChange:ne=&gt;g(ne.target.value),className:&quot;w-full rounded-xl border border-gray-300 px-4 py-3 text-base focus:ring-2 focus:ring-brand-700&quot;,placeholder:&quot;Reproduire le mot de passe&quot;,disabled:!!_,autoComplete:&quot;new-password&quot;})]}),i.jsx(Ae,{variant:&quot;primary&quot;,className:R4,onClick:z,disabled:!!_,children:_?&quot;Enregistrement...&quot;:&quot;Enregistrer le mot de passe&quot;})]})]}),!r?.must_change_password&amp;&amp;i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)] sm:p-6 lg:p-8&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium uppercase tracking-[0.14em] text-ink-500&quot;,children:&quot;Inscriptions&quot;}),i.jsx(&quot;h2&quot;,{className:&quot;mt-1 text-lg font-semibold text-ink-900 sm:text-xl&quot;,children:&quot;Mes inscriptions&quot;}),T&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-5 flex flex-col gap-3 rounded-2xl border border-green-200 bg-green-50/90 px-4 py-4 text-sm text-green-900 sm:flex-row sm:items-start sm:justify-between&quot;,role:&quot;status&quot;,children:[i.jsx(&quot;p&quot;,{children:&quot;Votre déclaration de paiement a été transmise. Elle sera prise en compte après validation par l’équipe.&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;L(!1),className:&quot;shrink-0 self-start font-medium text-green-800 underline hover:no-underline&quot;,children:&quot;Fermer&quot;})]}),a&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;py-12 text-center text-ink-500&quot;,children:&quot;Chargement...&quot;}),f&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-4 rounded-2xl border border-red-200 bg-red-50 p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:f}),i.jsx(Ae,{variant:&quot;outline&quot;,className:`${jz} mt-3`,onClick:()=&gt;P(),children:&quot;Réessayer&quot;})]}),!a&amp;&amp;!f&amp;&amp;u.length===0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-6 rounded-2xl border border-dashed border-gray-200 bg-white/60 px-4 py-12 text-center&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-ink-600&quot;,children:&quot;Vous n&#039;avez pas encore d&#039;inscription.&quot;}),i.jsx(Ae,{variant:&quot;primary&quot;,className:`${R4} mt-6`,onClick:()=&gt;e(&quot;/inscription&quot;),children:&quot;S&#039;inscrire à un événement&quot;})]}),!a&amp;&amp;!f&amp;&amp;u.length&gt;0&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mt-6 space-y-6&quot;,children:u.map(ne=&gt;i.jsx(_z,{reg:ne,sycapayPublic:E,registrationSycaPayOpen:C,downloadingReceiptId:A,onDownloadReceipt:Y,onFetchRegistrationsSilent:()=&gt;P({silent:!0}),setSycaModal:F,setOpenAmountModal:H,setDeclareModal:K},ne.id))})]})]})]})]}),V&amp;&amp;i.jsx(K$,{open:!0,registrationId:V.registrationId,installmentIndex:V.installmentIndex,defaultCountry:V.defaultCountry,paymentAmount:V.paymentAmount,onClose:()=&gt;F(null),onInitiated:D}),q&amp;&amp;i.jsx(Z$,{open:!0,registrationId:q.registrationId,defaultCountry:q.defaultCountry,remainingDue:q.remainingDue,currencyLabel:q.currencyLabel,installments:q.installments,onClose:()=&gt;H(null),onInitSuccess:()=&gt;P({silent:!0})}),B&amp;&amp;i.jsx(tz,{open:!0,registrationId:B.registrationId,installmentIndex:B.installmentIndex,currencyCode:B.currencyCode,maxAmount:B.maxAmount,defaultAmount:B.defaultAmount,onClose:()=&gt;K(null),onSuccess:Z})]}):i.jsx(Kn,{to:&quot;/login&quot;,replace:!0})}function Sz(){const e=Ni();return O.useEffect(()=&gt;{const r=window.setTimeout(()=&gt;{e(&quot;/account&quot;,{replace:!0})},5e3);return()=&gt;window.clearTimeout(r)},[e]),i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 py-12 px-4 sm:px-6&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;mx-auto max-w-md&quot;,children:i.jsxs(wt,{className:&quot;text-center&quot;,children:[i.jsx(&quot;h1&quot;,{className:&quot;text-xl font-semibold text-ink-900 mb-3&quot;,children:&quot;Retour de paiement&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600 mb-6&quot;,children:&quot;Si vous venez de finaliser une opération sur le site du prestataire, la confirmation peut prendre quelques instants. Retrouvez l’état à jour de votre paiement dans votre espace participant.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-3 sm:flex-row sm:justify-center&quot;,children:[i.jsx(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;e(&quot;/account&quot;,{replace:!0}),children:&quot;Voir mon espace participant&quot;}),i.jsx(Ae,{variant:&quot;outline&quot;,onClick:()=&gt;e(&quot;/&quot;,{replace:!0}),children:&quot;Accueil&quot;})]}),i.jsx(&quot;p&quot;,{className:&quot;mt-6 text-xs text-ink-400&quot;,children:&quot;Redirection automatique vers votre espace dans quelques secondes…&quot;})]})})})}function xf({showRefresh:e=!1,refreshing:r=!1,onRefresh:t}){const n=Ni(),{user:o}=Ts(),s=async()=&gt;{try{await vi.logout(),n(&quot;/login&quot;,{replace:!0})}catch{n(&quot;/login&quot;,{replace:!0})}};return i.jsx(&quot;header&quot;,{className:&quot;sticky top-0 z-50 w-full border-b border-gray-200 bg-white shadow-soft&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;w-full min-w-0 max-w-full px-3 py-2.5 sm:px-6 sm:py-3 lg:px-8 lg:py-4&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 items-center justify-between gap-2 sm:gap-3&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 flex-1 items-center gap-2 sm:gap-3 md:flex-none&quot;,children:[i.jsx(&quot;img&quot;,{src:&quot;/logoHaggai.avif&quot;,alt:&quot;Sommet Haggai Francophone&quot;,className:&quot;h-8 w-auto shrink-0 sm:h-10 lg:h-12&quot;}),i.jsx(&quot;h1&quot;,{className:&quot;min-w-0 truncate text-base font-heading font-medium uppercase tracking-wide text-ink-900 sm:text-lg lg:text-2xl&quot;,children:&quot;Sommet Haggai Francophone&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex shrink-0 items-center gap-1.5 sm:gap-4&quot;,children:[o&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;text-right hidden sm:block&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-900&quot;,children:o.name}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:o.email}),o.roles&amp;&amp;o.roles.length&gt;0&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:typeof o.roles[0]==&quot;string&quot;?o.roles[0]:o.roles[0].name})]}),e&amp;&amp;t&amp;&amp;i.jsxs(Ae,{variant:&quot;outline&quot;,onClick:t,disabled:r,className:&quot;flex items-center gap-1 !px-2 !py-2 sm:!px-6 sm:!py-3 sm:gap-2&quot;,title:&quot;Rafraîchir les données&quot;,children:[i.jsx(o2,{size:17,className:r?&quot;animate-spin&quot;:&quot;&quot;}),i.jsx(&quot;span&quot;,{className:&quot;hidden sm:inline&quot;,children:r?&quot;Rafraîchissement...&quot;:&quot;Rafraîchir&quot;})]}),i.jsxs(Ae,{variant:&quot;outline&quot;,onClick:s,className:&quot;flex items-center gap-1 !px-2 !py-2 sm:!px-6 sm:!py-3 sm:gap-2&quot;,children:[i.jsx(fB,{size:17}),i.jsx(&quot;span&quot;,{className:&quot;hidden sm:inline&quot;,children:&quot;Déconnexion&quot;})]})]})]})})})}const pr=&#039; fill=&quot;none&quot; stroke=&quot;#374151&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&#039;;function Cz(e){const r=`&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;22&quot; height=&quot;22&quot; viewBox=&quot;0 0 24 24&quot;${pr}&gt;${e}&lt;/svg&gt;`;return`data:image/svg+xml,${encodeURIComponent(r)}`}const Ez={layoutDashboard:[`&lt;rect width=&quot;7&quot; height=&quot;9&quot; x=&quot;3&quot; y=&quot;3&quot; rx=&quot;1&quot;${pr}/&gt;`,`&lt;rect width=&quot;7&quot; height=&quot;5&quot; x=&quot;14&quot; y=&quot;3&quot; rx=&quot;1&quot;${pr}/&gt;`,`&lt;rect width=&quot;7&quot; height=&quot;9&quot; x=&quot;14&quot; y=&quot;12&quot; rx=&quot;1&quot;${pr}/&gt;`,`&lt;rect width=&quot;7&quot; height=&quot;5&quot; x=&quot;3&quot; y=&quot;16&quot; rx=&quot;1&quot;${pr}/&gt;`].join(&quot;&quot;),users:[`&lt;path d=&quot;M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2&quot;${pr}/&gt;`,`&lt;path d=&quot;M16 3.128a4 4 0 0 1 0 7.744&quot;${pr}/&gt;`,`&lt;path d=&quot;M22 21v-2a4 4 0 0 0-3-3.87&quot;${pr}/&gt;`,`&lt;circle cx=&quot;9&quot; cy=&quot;7&quot; r=&quot;4&quot;${pr}/&gt;`].join(&quot;&quot;),messageSquare:[`&lt;path d=&quot;M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z&quot;${pr}/&gt;`].join(&quot;&quot;),userCog:[`&lt;path d=&quot;M10 15H6a4 4 0 0 0-4 4v2&quot;${pr}/&gt;`,`&lt;path d=&quot;m14.305 16.53.923-.382&quot;${pr}/&gt;`,`&lt;path d=&quot;m15.228 13.852-.923-.383&quot;${pr}/&gt;`,`&lt;path d=&quot;m16.852 12.228-.383-.923&quot;${pr}/&gt;`,`&lt;path d=&quot;m16.852 17.772-.383.924&quot;${pr}/&gt;`,`&lt;path d=&quot;m19.148 12.228.383-.923&quot;${pr}/&gt;`,`&lt;path d=&quot;m19.53 18.696-.382-.924&quot;${pr}/&gt;`,`&lt;path d=&quot;m20.772 13.852.924-.383&quot;${pr}/&gt;`,`&lt;path d=&quot;m20.772 16.148.924.383&quot;${pr}/&gt;`,`&lt;circle cx=&quot;18&quot; cy=&quot;15&quot; r=&quot;3&quot;${pr}/&gt;`,`&lt;circle cx=&quot;9&quot; cy=&quot;7&quot; r=&quot;4&quot;${pr}/&gt;`].join(&quot;&quot;),userCircle:[`&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;10&quot;${pr}/&gt;`,`&lt;circle cx=&quot;12&quot; cy=&quot;10&quot; r=&quot;3&quot;${pr}/&gt;`,`&lt;path d=&quot;M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662&quot;${pr}/&gt;`].join(&quot;&quot;),dollarSign:[`&lt;line x1=&quot;12&quot; x2=&quot;12&quot; y1=&quot;2&quot; y2=&quot;22&quot;${pr}/&gt;`,`&lt;path d=&quot;M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6&quot;${pr}/&gt;`].join(&quot;&quot;),settings:[`&lt;path d=&quot;M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915&quot;${pr}/&gt;`,`&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;3&quot;${pr}/&gt;`].join(&quot;&quot;),home:[`&lt;path d=&quot;M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8&quot;${pr}/&gt;`,`&lt;path d=&quot;M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z&quot;${pr}/&gt;`].join(&quot;&quot;)},w7={};for(const[e,r]of Object.entries(Ez))w7[e]=Cz(r);function Az(){if(typeof navigator&gt;&quot;u&quot;)return!1;const e=navigator.userAgent;return/iPhone|iPad/i.test(e)||/Mac/i.test(e)&amp;&amp;navigator.maxTouchPoints&gt;1}function Mz(e){return w7[e]??&quot;&quot;}function s0({currentSection:e,registrationView:r=&quot;summit&quot;,showSommet:t=!0,showSeminar:n=!1,showRecommendations:o=!0,showUsers:s=!1,showFinance:l=!1,showSettings:u=!1}){const c=e===&quot;registrations&quot;,a=e===&quot;users&quot;,d=e===&quot;account&quot;,f=e===&quot;finance&quot;,h=e===&quot;settings&quot;,m=y=&gt;`w-full flex items-center justify-start gap-2 px-3 py-2 rounded-lg transition-all duration-200 mb-1 text-left text-sm font-medium ${y?&quot;bg-brand-700 text-white shadow-soft&quot;:&quot;text-ink-500 hover:bg-brand-50 hover:text-ink-900&quot;}`,p=i.jsxs(&quot;aside&quot;,{className:&quot;hidden lg:flex fixed left-0 top-[73px] h-[calc(100vh-73px)] w-48 bg-white border-r border-gray-200 flex-col z-30&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;p-4 border-b border-gray-200&quot;,children:i.jsx(&quot;h2&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:&quot;Menu&quot;})}),i.jsxs(&quot;nav&quot;,{className:&quot;flex-1 p-2 overflow-y-auto&quot;,children:[t&amp;&amp;i.jsxs(ut,{to:&quot;/admin/registrations?view=summit&quot;,className:m(c&amp;&amp;r===&quot;summit&quot;),children:[i.jsx(g4,{size:18}),&quot;Sommet Francophone&quot;]}),n&amp;&amp;i.jsxs(ut,{to:&quot;/admin/registrations?view=seminar&quot;,className:m(c&amp;&amp;r===&quot;seminar&quot;),children:[i.jsx(Ym,{size:18}),&quot;Séminaire régional&quot;]}),o&amp;&amp;i.jsxs(ut,{to:&quot;/admin/registrations?view=recommendations&quot;,className:m(c&amp;&amp;r===&quot;recommendations&quot;),children:[i.jsx(x4,{size:18}),&quot;Recommandations&quot;]}),s&amp;&amp;i.jsxs(ut,{to:&quot;/admin/users&quot;,className:m(a),children:[i.jsx(Gm,{size:18}),&quot;Utilisateurs&quot;]}),l&amp;&amp;i.jsxs(ut,{to:&quot;/admin/finance&quot;,className:m(f),children:[i.jsx(mv,{size:18}),&quot;Finance&quot;]}),u&amp;&amp;i.jsxs(ut,{to:&quot;/admin/settings&quot;,className:m(h),children:[i.jsx(pv,{size:18}),&quot;Paramétrage&quot;]}),i.jsxs(ut,{to:&quot;/admin/account&quot;,className:m(d),children:[i.jsx(m4,{size:18}),&quot;Mon compte&quot;]}),i.jsxs(ut,{to:&quot;/account&quot;,className:m(!1),children:[i.jsx(Wd,{size:18}),&quot;Ma page personnelle&quot;]})]})]}),x=Az(),g=[t&amp;&amp;{to:&quot;/admin/registrations?view=summit&quot;,label:&quot;Sommet&quot;,icon:g4,iconKey:&quot;layoutDashboard&quot;,active:c&amp;&amp;r===&quot;summit&quot;},n&amp;&amp;{to:&quot;/admin/registrations?view=seminar&quot;,label:&quot;Séminaire&quot;,icon:Ym,iconKey:&quot;users&quot;,active:c&amp;&amp;r===&quot;seminar&quot;},o&amp;&amp;{to:&quot;/admin/registrations?view=recommendations&quot;,label:&quot;Recommandations&quot;,icon:x4,iconKey:&quot;messageSquare&quot;,active:c&amp;&amp;r===&quot;recommendations&quot;},s&amp;&amp;{to:&quot;/admin/users&quot;,label:&quot;Utilisateurs&quot;,icon:Gm,iconKey:&quot;userCog&quot;,active:a},l&amp;&amp;{to:&quot;/admin/finance&quot;,label:&quot;Finance&quot;,icon:mv,iconKey:&quot;dollarSign&quot;,active:f},u&amp;&amp;{to:&quot;/admin/settings&quot;,label:&quot;Paramétrage&quot;,icon:pv,iconKey:&quot;settings&quot;,active:h},{to:&quot;/admin/account&quot;,label:&quot;Mon compte&quot;,icon:m4,iconKey:&quot;userCircle&quot;,active:d},{to:&quot;/account&quot;,label:&quot;Ma page&quot;,icon:Wd,iconKey:&quot;home&quot;,active:!1}].filter(Boolean);return i.jsxs(i.Fragment,{children:[p,i.jsx(&quot;nav&quot;,{className:&quot;lg:hidden fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-50 shadow-lg&quot;,&quot;aria-label&quot;:&quot;Menu principal&quot;,style:{paddingBottom:&quot;env(safe-area-inset-bottom)&quot;},children:i.jsx(&quot;div&quot;,{className:&quot;grid h-14 min-h-[56px] items-center justify-items-center py-2&quot;,style:{gridTemplateColumns:`repeat(${g.length}, minmax(0, 1fr))`},children:g.map(y=&gt;{const v=y.icon;return i.jsxs(ut,{to:y.to,className:`flex flex-col items-center justify-center gap-0.5 w-full h-full min-h-[52px] transition-colors ${y.active?&quot;text-brand-700&quot;:&quot;text-ink-500 hover:text-ink-700&quot;}`,title:y.label,&quot;aria-label&quot;:y.label,children:[i.jsx(&quot;span&quot;,{className:&quot;mobile-nav-icon-cell shrink-0 flex items-center justify-center&quot;,&quot;aria-hidden&quot;:!0,children:x?i.jsx(&quot;img&quot;,{src:Mz(y.iconKey),alt:&quot;&quot;,width:22,height:22,className:&quot;block&quot;}):i.jsx(v,{size:22,strokeWidth:2,stroke:&quot;currentColor&quot;,fill:&quot;none&quot;})}),i.jsx(&quot;span&quot;,{className:&quot;text-[10px] font-medium leading-tight max-w-full truncate px-0.5&quot;,children:y.label})]},y.to)})})})]})}const jv=[{value:&quot;draft&quot;,label:&quot;Brouillon&quot;,badgeClass:&quot;bg-gray-100 text-gray-700&quot;},{value:&quot;submitted&quot;,label:&quot;Soumis&quot;,badgeClass:&quot;bg-blue-100 text-blue-700&quot;},{value:&quot;pending_payment&quot;,label:&quot;En attente&quot;,badgeClass:&quot;bg-yellow-100 text-yellow-700&quot;},{value:&quot;correction&quot;,label:&quot;Dossier en correction&quot;,badgeClass:&quot;bg-amber-100 text-amber-800&quot;},{value:&quot;paid&quot;,label:&quot;Payé&quot;,badgeClass:&quot;bg-green-100 text-green-700&quot;},{value:&quot;rejected&quot;,label:&quot;Rejeté&quot;,badgeClass:&quot;bg-red-100 text-red-700&quot;},{value:&quot;cancelled&quot;,label:&quot;Annulé&quot;,badgeClass:&quot;bg-gray-100 text-gray-600&quot;},{value:&quot;refunded&quot;,label:&quot;Remboursé&quot;,badgeClass:&quot;bg-orange-100 text-orange-700&quot;}];function k2(e){return e?jv.find(t=&gt;t.value===e)??{label:String(e),badgeClass:&quot;bg-gray-100 text-gray-700&quot;}:{label:&quot;-&quot;,badgeClass:&quot;bg-gray-100 text-gray-700&quot;}}function Pz({filters:e,onFiltersChange:r,hideEventFilter:t=!1,showCountryFilter:n=!1,countryShortcuts:o=[]}){const{events:s,loading:l}=n0(),[u,c]=O.useState(e),a=O.useMemo(()=&gt;{const S=new Set(o),A=u.country?.trim();return A&amp;&amp;S.add(A),Array.from(S).sort((I,V)=&gt;I.localeCompare(V,&quot;fr&quot;))},[o,u.country]),[d,f]=O.useState(null),[h,m]=O.useState(!1);O.useEffect(()=&gt;{c(e)},[e]);const p=(S,A)=&gt;{const I={...u,[S]:A};if(c(I),S===&quot;q&quot;){d&amp;&amp;clearTimeout(d);const V=setTimeout(()=&gt;{r(I)},400);f(V)}else r(I)},x=S=&gt;{const A=u.status||[],I=A.includes(S)?A.filter(V=&gt;V!==S):[...A,S];p(&quot;status&quot;,I.length&gt;0?I:void 0)},g=S=&gt;{const A=u.country===S?void 0:S;p(&quot;country&quot;,A)},y=()=&gt;{const S={event_id:void 0,status:void 0,q:void 0,created_from:void 0,created_to:void 0,country:void 0};c(S),r(S),m(!1)},v=&quot;w-full min-w-0 px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,_=&quot;w-full min-w-0 rounded-lg border border-gray-300 px-2.5 py-2 text-sm focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;;return i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 max-w-full&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl bg-white px-2 py-2 shadow-soft lg:hidden&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 gap-2&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;registration-search-mobile&quot;,className:&quot;sr-only&quot;,children:&quot;Recherche&quot;}),i.jsx(&quot;input&quot;,{id:&quot;registration-search-mobile&quot;,type:&quot;text&quot;,value:u.q||&quot;&quot;,onChange:S=&gt;p(&quot;q&quot;,S.target.value||void 0),placeholder:&quot;Rechercher…&quot;,className:_+&quot; min-w-0 flex-1&quot;}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,id:&quot;registration-filters-toggle&quot;,&quot;aria-expanded&quot;:h,&quot;aria-controls&quot;:&quot;registration-filters-panel&quot;,className:&quot;flex shrink-0 items-center gap-1 rounded-lg border-2 border-brand-700 bg-white px-2.5 py-2 text-xs font-semibold uppercase tracking-wide text-brand-700&quot;,onClick:()=&gt;m(S=&gt;!S),children:[&quot;Filtres&quot;,i.jsx(qd,{className:`h-4 w-4 transition-transform ${h?&quot;rotate-180&quot;:&quot;&quot;}`,&quot;aria-hidden&quot;:!0})]})]}),h?i.jsxs(&quot;div&quot;,{id:&quot;registration-filters-panel&quot;,role:&quot;region&quot;,&quot;aria-labelledby&quot;:&quot;registration-filters-toggle&quot;,className:&quot;mt-2 space-y-3 border-t border-gray-100 pt-3&quot;,children:[t?i.jsxs(&quot;div&quot;,{className:&quot;grid min-w-0 grid-cols-1 gap-2 sm:grid-cols-2&quot;,children:[n?i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 sm:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-0.5 block text-xs font-medium text-ink-500&quot;,children:&quot;Pays&quot;}),i.jsxs(&quot;select&quot;,{value:u.country||&quot;&quot;,onChange:S=&gt;p(&quot;country&quot;,S.target.value?S.target.value:void 0),className:_,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Tous les pays&quot;}),a.map(S=&gt;i.jsx(&quot;option&quot;,{value:S,children:S},S))]})]}):null,i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-0.5 block text-xs font-medium text-ink-500&quot;,children:&quot;Date début&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:u.created_from||&quot;&quot;,onChange:S=&gt;p(&quot;created_from&quot;,S.target.value||void 0),className:_})]}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-0.5 block text-xs font-medium text-ink-500&quot;,children:&quot;Date fin&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:u.created_to||&quot;&quot;,onChange:S=&gt;p(&quot;created_to&quot;,S.target.value||void 0),className:_})]})]}):i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-0.5 block text-xs font-medium text-ink-500&quot;,children:&quot;Événement&quot;}),i.jsxs(&quot;select&quot;,{value:u.event_id||&quot;&quot;,onChange:S=&gt;p(&quot;event_id&quot;,S.target.value?Number(S.target.value):void 0),className:_,disabled:l,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Tous les événements&quot;}),s.map(S=&gt;i.jsx(&quot;option&quot;,{value:S.id,children:S.name},S.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-2 gap-2&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-0.5 block text-xs font-medium text-ink-500&quot;,children:&quot;Date début&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:u.created_from||&quot;&quot;,onChange:S=&gt;p(&quot;created_from&quot;,S.target.value||void 0),className:_})]}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-0.5 block text-xs font-medium text-ink-500&quot;,children:&quot;Date fin&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:u.created_to||&quot;&quot;,onChange:S=&gt;p(&quot;created_to&quot;,S.target.value||void 0),className:_})]})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500&quot;,children:&quot;Statuts&quot;}),i.jsx(&quot;div&quot;,{className:&quot;flex min-w-0 flex-wrap gap-1&quot;,children:jv.map(S=&gt;{const A=u.status?.includes(S.value);return i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;x(S.value),className:A?`rounded-full border border-transparent px-2 py-0.5 text-[11px] font-medium ring-2 ring-brand-700/35 ring-offset-1 ${S.badgeClass}`:&quot;rounded-full bg-gray-100 px-2 py-0.5 text-[11px] font-medium text-gray-700&quot;,children:S.label},S.value)})})]}),n&amp;&amp;o.length&gt;0?i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500&quot;,children:&quot;Pays (raccourcis)&quot;}),i.jsx(&quot;div&quot;,{className:&quot;flex min-w-0 flex-wrap gap-1&quot;,children:o.map(S=&gt;{const A=u.country===S;return i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;g(S),className:A?&quot;rounded-full border border-transparent bg-brand-50 px-2 py-0.5 text-[11px] font-medium text-brand-900 ring-2 ring-brand-700/35 ring-offset-1&quot;:&quot;rounded-full bg-gray-100 px-2 py-0.5 text-[11px] font-medium text-gray-700&quot;,children:S},S)})})]}):null,i.jsx(&quot;div&quot;,{className:&quot;flex justify-end border-t border-gray-100 pt-2&quot;,children:i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;text-sm font-medium text-brand-700 underline-offset-2 hover:underline&quot;,onClick:y,children:&quot;Réinitialiser&quot;})})]}):null]}),i.jsxs(&quot;div&quot;,{className:&quot;hidden min-w-0 max-w-full space-y-2 rounded-xl bg-white px-3 py-3 shadow-soft sm:px-4 lg:block&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-1 flex min-w-0 flex-wrap items-center justify-between gap-2&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-sm font-semibold text-ink-900 sm:text-base&quot;,children:&quot;Filtres&quot;}),i.jsx(Ae,{variant:&quot;ghost&quot;,onClick:y,className:&quot;shrink-0 text-sm !px-3 !py-1.5 !normal-case&quot;,children:&quot;Réinitialiser&quot;})]}),t?i.jsxs(&quot;div&quot;,{className:&quot;grid min-w-0 grid-cols-1 gap-x-3 gap-y-2 sm:grid-cols-2 lg:grid-cols-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 sm:col-span-2 lg:col-span-1&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Recherche&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:u.q||&quot;&quot;,onChange:S=&gt;p(&quot;q&quot;,S.target.value||void 0),placeholder:&quot;Nom, email, téléphone...&quot;,className:v})]}),n?i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 sm:col-span-2 lg:col-span-1&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Pays&quot;}),i.jsxs(&quot;select&quot;,{value:u.country||&quot;&quot;,onChange:S=&gt;p(&quot;country&quot;,S.target.value?S.target.value:void 0),className:v,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Tous les pays&quot;}),a.map(S=&gt;i.jsx(&quot;option&quot;,{value:S,children:S},S))]})]}):null,i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Date début&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:u.created_from||&quot;&quot;,onChange:S=&gt;p(&quot;created_from&quot;,S.target.value||void 0),className:v})]}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Date fin&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:u.created_to||&quot;&quot;,onChange:S=&gt;p(&quot;created_to&quot;,S.target.value||void 0),className:v})]})]}):i.jsxs(&quot;div&quot;,{className:&quot;grid min-w-0 grid-cols-1 gap-x-3 gap-y-2 sm:grid-cols-2 xl:grid-cols-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 sm:col-span-2 xl:col-span-1&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Recherche&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:u.q||&quot;&quot;,onChange:S=&gt;p(&quot;q&quot;,S.target.value||void 0),placeholder:&quot;Nom, email, téléphone...&quot;,className:v})]}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 sm:col-span-2 xl:col-span-1&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Événement&quot;}),i.jsxs(&quot;select&quot;,{value:u.event_id||&quot;&quot;,onChange:S=&gt;p(&quot;event_id&quot;,S.target.value?Number(S.target.value):void 0),className:v,disabled:l,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Tous les événements&quot;}),s.map(S=&gt;i.jsx(&quot;option&quot;,{value:S.id,children:S.name},S.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Date début&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:u.created_from||&quot;&quot;,onChange:S=&gt;p(&quot;created_from&quot;,S.target.value||void 0),className:v})]}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Date fin&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:u.created_to||&quot;&quot;,onChange:S=&gt;p(&quot;created_to&quot;,S.target.value||void 0),className:v})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 pt-0.5&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Statuts&quot;}),i.jsx(&quot;div&quot;,{className:&quot;flex min-w-0 flex-wrap gap-1.5&quot;,children:jv.map(S=&gt;{const A=u.status?.includes(S.value);return i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;x(S.value),className:A?`rounded-full border border-transparent px-2.5 py-1 text-xs font-medium ring-2 ring-brand-700/35 ring-offset-1 transition-all sm:text-sm ${S.badgeClass}`:&quot;rounded-full border border-transparent bg-gray-100 px-2.5 py-1 text-xs font-medium text-gray-700 transition-all hover:bg-gray-200 sm:text-sm&quot;,children:S.label},S.value)})})]}),n&amp;&amp;o.length&gt;0?i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 pt-1&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-xs font-medium text-ink-500 sm:text-sm&quot;,children:&quot;Pays (raccourcis)&quot;}),i.jsx(&quot;div&quot;,{className:&quot;flex min-w-0 flex-wrap gap-1.5&quot;,children:o.map(S=&gt;{const A=u.country===S;return i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;g(S),className:A?&quot;rounded-full border border-transparent bg-brand-50 px-2.5 py-1 text-xs font-medium text-brand-900 ring-2 ring-brand-700/35 ring-offset-1 transition-all sm:text-sm&quot;:&quot;rounded-full border border-transparent bg-gray-100 px-2.5 py-1 text-xs font-medium text-gray-700 transition-all hover:bg-gray-200 sm:text-sm&quot;,children:S},S)})})]}):null]})]})}function Oz({title:e,subtitle:r,subtitleDesktopOnly:t=!0,actions:n}){const o=t?&quot;hidden lg:block lg:text-base&quot;:&quot;text-sm lg:text-base&quot;;return i.jsxs(&quot;div&quot;,{className:&quot;mb-2 flex min-w-0 flex-col gap-2 sm:mb-5 sm:gap-3 lg:flex-row lg:items-start lg:justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;mb-0.5 text-xl font-bold text-ink-900 sm:mb-2 sm:text-2xl lg:text-3xl&quot;,children:e}),r?i.jsx(&quot;p&quot;,{className:`text-ink-500 ${o}`,children:r}):null]}),n?i.jsx(&quot;div&quot;,{className:&quot;relative shrink-0 sm:mt-0.5&quot;,children:n}):null]})}function Tz({children:e}){return i.jsx(&quot;div&quot;,{className:&quot;sticky top-14 z-40 mb-2 w-full min-w-0 border-b border-gray-200/90 bg-brand-50/95 py-1.5 backdrop-blur-sm sm:mb-3 sm:py-2 lg:top-[4.5rem] lg:mb-4&quot;,children:e})}const _n=&quot;px-2 py-2 text-left text-[10px] font-medium uppercase leading-tight tracking-wider text-ink-500 sm:px-3 sm:py-2.5 sm:text-xs&quot;,_7=&quot;min-w-0 max-w-full rounded-xl bg-white shadow-soft&quot;,j7=`${_7} p-8 text-center`;function N7({children:e,className:r=&quot;&quot;}){return i.jsx(&quot;div&quot;,{className:`${_7} ${r}`.trim(),children:e})}function k7({children:e,className:r=&quot;&quot;}){return i.jsx(&quot;div&quot;,{className:`space-y-2 overflow-visible p-2 lg:hidden ${r}`.trim(),children:e})}function S7({children:e,className:r=&quot;&quot;,variant:t=&quot;desktop&quot;}){const n=t===&quot;all&quot;?&quot;&quot;:&quot;hidden lg:block&quot;;return i.jsx(&quot;div&quot;,{className:`min-w-0 overflow-x-auto ${n} ${r}`.trim(),children:e})}function C7({message:e=&quot;Chargement...&quot;}){return i.jsx(&quot;div&quot;,{className:j7,children:i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:e})})}function E7({message:e}){return i.jsx(&quot;div&quot;,{className:j7,children:i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:e})})}function Iz({children:e,className:r=&quot;&quot;}){return i.jsx(&quot;div&quot;,{className:`mb-2 min-w-0 sm:mb-4 ${r}`.trim(),children:e})}function Ta({rowId:e,openMenuId:r,setOpenMenuId:t,compact:n=!1,className:o=&quot;&quot;,stopPropagation:s=!0,onView:l,viewLabel:u=&quot;Voir&quot;,viewDisabled:c=!1,onEdit:a,editLabel:d=&quot;Modifier&quot;,editDisabled:f=!1,primaryOutlineAction:h,menuItems:m}){const p=O.useRef(null),x=O.useRef(null),g=O.useRef(!1),y=r===e,[v,_]=O.useState(null),S=m.length&gt;0,A=h&amp;&amp;!l&amp;&amp;!a;O.useLayoutEffect(()=&gt;{if(!y||!p.current){_(null),g.current=!1;return}const H=p.current,B=H.getBoundingClientRect(),K=window.getComputedStyle(H);if(B.width&lt;1||B.height&lt;1||K.display===&quot;none&quot;||K.visibility===&quot;hidden&quot;){_(null);return}const T=window.innerWidth,L=window.innerHeight,E=6,j=Math.min(224,T-16),k=Math.min(240,L*.45);let N=B.bottom+E;N+k&gt;L-8&amp;&amp;(N=Math.max(8,B.top-k-E));const C=T-8;let D=Math.min(B.right,C);D-j&lt;8&amp;&amp;(D=Math.min(8+j,C)),_({top:N,left:D,transform:&quot;translateX(-100%)&quot;}),g.current=!1},[y]),O.useLayoutEffect(()=&gt;{if(!y||!v||!p.current||!x.current||g.current)return;const B=p.current.getBoundingClientRect(),K=x.current,T=K.offsetWidth,L=K.offsetHeight,E=window.innerWidth,j=window.innerHeight,k=6;let N=B.bottom+k;N+L&gt;j-8&amp;&amp;(N=Math.max(8,B.top-L-k));const C=E-8;let D=Math.min(B.right,C);D-T&lt;8&amp;&amp;(D=Math.min(8+T,C)),g.current=!0,_(z=&gt;!z||z.top===N&amp;&amp;z.left===D?z:{top:N,left:D,transform:&quot;translateX(-100%)&quot;})},[y,v]),O.useEffect(()=&gt;{if(!y||v===null)return;const H=K=&gt;{const T=K.target;p.current?.contains(T)||x.current?.contains(T)||t(null)},B=()=&gt;t(null);return document.addEventListener(&quot;mousedown&quot;,H,!0),window.addEventListener(&quot;scroll&quot;,B,!0),window.addEventListener(&quot;resize&quot;,B),()=&gt;{document.removeEventListener(&quot;mousedown&quot;,H,!0),window.removeEventListener(&quot;scroll&quot;,B,!0),window.removeEventListener(&quot;resize&quot;,B)}},[y,v,t]),O.useEffect(()=&gt;{if(!y||v===null)return;const H=B=&gt;{B.key===&quot;Escape&quot;&amp;&amp;t(null)};return window.addEventListener(&quot;keydown&quot;,H),()=&gt;window.removeEventListener(&quot;keydown&quot;,H)},[y,v,t]);const I=n?&quot;rounded px-1 py-0.5 text-[11px] font-medium text-brand-700 hover:bg-brand-50 hover:underline&quot;:&quot;rounded px-1 py-0.5 text-[11px] font-medium text-brand-700 hover:bg-brand-50 hover:underline sm:text-xs&quot;,V=n?&quot;rounded border border-gray-300 bg-white px-1 py-0.5 text-[10px] font-medium leading-tight text-ink-800 hover:bg-gray-50&quot;:&quot;rounded border border-gray-300 bg-white px-1 py-0.5 text-[10px] font-medium leading-tight text-ink-800 hover:bg-gray-50 sm:px-1.5 sm:text-xs&quot;,F=s?H=&gt;H.stopPropagation():void 0,q=y&amp;&amp;v!=null&amp;&amp;S&amp;&amp;Xp.createPortal(i.jsx(&quot;div&quot;,{ref:x,role:&quot;menu&quot;,className:&quot;fixed z-[200] max-h-[min(50vh,20rem)] min-w-[11rem] max-w-[min(calc(100vw-1rem),14rem)] overflow-y-auto rounded-lg border border-gray-200 bg-white py-1 shadow-lg&quot;,style:{top:v.top,left:v.left,transform:v.transform},children:m.map(H=&gt;i.jsx(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;menuitem&quot;,disabled:H.disabled,title:H.title,className:`block w-full px-3 py-2 text-left text-sm hover:bg-brand-50 disabled:opacity-50 ${H.danger?&quot;text-red-600 hover:bg-red-50&quot;:&quot;text-ink-900&quot;}`,onClick:B=&gt;{B.stopPropagation(),!H.disabled&amp;&amp;(t(null),H.onSelect())},children:H.label},H.id))}),document.body);return i.jsxs(&quot;div&quot;,{className:`flex shrink-0 items-center justify-end gap-0.5 ${o}`,onClick:F,children:[l?i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:`${I} disabled:cursor-not-allowed disabled:opacity-50`,disabled:c,onClick:l,children:u}):null,a?i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:`${V} disabled:cursor-not-allowed disabled:opacity-50`,disabled:f,onClick:a,children:d}):null,A&amp;&amp;h?i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:V,disabled:h.disabled,title:h.title,onClick:h.onClick,children:h.label}):null,S?i.jsxs(i.Fragment,{children:[i.jsx(&quot;button&quot;,{ref:p,type:&quot;button&quot;,&quot;aria-expanded&quot;:y,&quot;aria-haspopup&quot;:&quot;menu&quot;,&quot;aria-label&quot;:&quot;Autres actions&quot;,className:n?&quot;inline-flex h-7 w-7 items-center justify-center rounded text-ink-600 hover:bg-gray-100&quot;:&quot;inline-flex h-7 w-7 items-center justify-center rounded text-ink-600 hover:bg-gray-100 sm:h-8 sm:w-8&quot;,onClick:H=&gt;{H.stopPropagation(),t(B=&gt;B===e?null:e)},children:i.jsx(QF,{className:&quot;h-4 w-4&quot;,&quot;aria-hidden&quot;:!0})}),q]}):null]})}const D4={pending:{label:&quot;En attente&quot;,className:&quot;bg-yellow-100 text-yellow-700&quot;},contacted:{label:&quot;Contacté&quot;,className:&quot;bg-blue-100 text-blue-700&quot;},accepted:{label:&quot;Accepté&quot;,className:&quot;bg-green-100 text-green-700&quot;},rejected:{label:&quot;Rejeté&quot;,className:&quot;bg-red-100 text-red-700&quot;}},Rz=new Set([&quot;draft&quot;,&quot;submitted&quot;,&quot;pending_payment&quot;,&quot;correction&quot;,&quot;paid&quot;,&quot;rejected&quot;,&quot;cancelled&quot;,&quot;refunded&quot;]);function Ba({status:e,compact:r}){const t=r?&quot;max-w-full whitespace-normal break-words px-2 py-0.5 text-[10px] font-medium leading-snug sm:text-xs&quot;:&quot;px-3 py-1 text-sm font-medium&quot;;if(!e)return i.jsx(&quot;span&quot;,{className:`inline-flex items-center rounded-full bg-gray-100 text-gray-700 ${t}`,children:&quot;-&quot;});if(Rz.has(e)){const{label:o,badgeClass:s}=k2(e);return i.jsx(&quot;span&quot;,{className:`inline-flex items-center rounded-full ${s} ${t}`,children:o})}const n=D4[e]||D4.pending;return i.jsx(&quot;span&quot;,{className:`inline-flex items-center rounded-full ${n.className} ${t}`,children:n.label})}function Dz(e){return e.amount_due_xof!=null&amp;&amp;e.amount_due_xof&gt;0?`${Number(e.amount_due_xof).toLocaleString(&quot;fr-FR&quot;)} XOF`:e.amount_due_eur!=null&amp;&amp;e.amount_due_eur&gt;0?`${e.amount_due_eur} EUR`:&quot;-&quot;}function Lz(e,r){const t=[];return r.canUpdateStatus&amp;&amp;r.onUpdateStatus&amp;&amp;t.push({id:&quot;status&quot;,label:&quot;Changer statut&quot;,onSelect:()=&gt;r.onUpdateStatus(e)}),r.canResendActivation&amp;&amp;r.onResendActivation&amp;&amp;e.status===&quot;draft&quot;&amp;&amp;(t.push({id:&quot;resend&quot;,label:r.resendingActivationId===e.id?&quot;Envoi…&quot;:&quot;Renvoyer activation&quot;,onSelect:()=&gt;r.onResendActivation(e),disabled:r.resendingActivationId===e.id,title:&quot;Renvoyer l’email avec le lien pour activer le compte et choisir un mot de passe&quot;}),r.onCopyActivationLink&amp;&amp;t.push({id:&quot;copy-activation-link&quot;,label:&quot;Copier lien activation&quot;,onSelect:()=&gt;r.onCopyActivationLink(e),disabled:r.resendingActivationId===e.id,title:&quot;Copier un lien d’activation à transmettre directement au participant&quot;})),r.canResetParticipantPassword&amp;&amp;r.onResetParticipantPassword&amp;&amp;xv(e)&amp;&amp;t.push({id:&quot;reset-participant-password&quot;,label:&quot;Initialiser le mot de passe&quot;,title:&quot;Définir un mot de passe provisoire : le participant devra en choisir un nouveau à la prochaine connexion.&quot;,onSelect:()=&gt;r.onResetParticipantPassword(e)}),r.canDelete&amp;&amp;r.onDelete&amp;&amp;t.push({id:&quot;delete&quot;,label:&quot;Supprimer&quot;,danger:!0,onSelect:()=&gt;r.onDelete(e)}),t}function L4({registration:e,openMenuId:r,setOpenMenuId:t,onViewDetails:n,onUpdateStatus:o,onEdit:s,onDelete:l,onResendActivation:u,onCopyActivationLink:c,onResetParticipantPassword:a,canUpdateStatus:d,canEdit:f,canDelete:h,canResendActivation:m,canResetParticipantPassword:p,resendingActivationId:x,compact:g}){const y=Lz(e,{onUpdateStatus:o,onDelete:l,onResendActivation:u,onCopyActivationLink:c,onResetParticipantPassword:a,canUpdateStatus:d,canDelete:h,canResendActivation:m,canResetParticipantPassword:p,resendingActivationId:x});return i.jsx(Ta,{rowId:e.id,openMenuId:r,setOpenMenuId:t,compact:g,onView:()=&gt;n(e),onEdit:f&amp;&amp;s?()=&gt;s(e):void 0,editLabel:&quot;Modifier&quot;,menuItems:y})}function Fz({registrations:e,loading:r,eventType:t,onViewDetails:n,onUpdateStatus:o,onEdit:s,onDelete:l,onResendActivation:u,onCopyActivationLink:c,onResetParticipantPassword:a,canUpdateStatus:d=!1,canEdit:f=!1,canDelete:h=!1,canResendActivation:m=!1,canResetParticipantPassword:p=!1,resendingActivationId:x=null}){const[g,y]=O.useState(null);return r?i.jsx(C7,{}):e.length===0?i.jsx(E7,{message:&quot;Aucune inscription trouvée&quot;}):i.jsxs(N7,{children:[i.jsx(k7,{children:e.map(v=&gt;{const _=`${v.first_name} ${v.last_name}`.trim(),S=new Date(v.created_at).toLocaleDateString(&quot;fr-FR&quot;);return i.jsxs(&quot;div&quot;,{role:&quot;button&quot;,tabIndex:0,className:&quot;overflow-visible rounded-lg border border-gray-200 bg-white p-3 shadow-sm outline-none ring-brand-700 focus-visible:ring-2&quot;,onClick:()=&gt;n(v),onKeyDown:A=&gt;{(A.key===&quot;Enter&quot;||A.key===&quot; &quot;)&amp;&amp;(A.preventDefault(),n(v))},children:[i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 gap-2 overflow-visible&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;truncate text-sm font-semibold text-ink-900&quot;,title:_||void 0,children:_||&quot;—&quot;}),i.jsx(&quot;p&quot;,{className:&quot;truncate text-xs text-ink-500&quot;,title:v.email||void 0,children:v.email}),i.jsx(&quot;p&quot;,{className:&quot;mt-0.5 truncate text-xs text-ink-500&quot;,title:v.country||void 0,children:v.country||&quot;—&quot;})]}),i.jsx(L4,{registration:v,openMenuId:g,setOpenMenuId:y,onViewDetails:n,onUpdateStatus:o,onEdit:s,onDelete:l,onResendActivation:u,onCopyActivationLink:c,onResetParticipantPassword:a,canUpdateStatus:d,canEdit:f,canDelete:h,canResendActivation:m,canResetParticipantPassword:p,resendingActivationId:x,compact:!0})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-2 flex flex-wrap items-center gap-2&quot;,children:[i.jsx(Ba,{status:v.status,compact:!0}),i.jsx(Zc,{summary:v.financial_status_summary,compact:!0}),i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:S})]})]},v.id)})}),i.jsx(S7,{children:i.jsxs(&quot;table&quot;,{className:&quot;w-full min-w-0 table-fixed border-collapse&quot;,children:[i.jsxs(&quot;colgroup&quot;,{children:[i.jsx(&quot;col&quot;,{style:{width:&quot;12%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;15%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;8%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;10%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;13%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;9%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;11%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;7%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;15%&quot;}})]}),i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:_n,children:&quot;Nom&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Email&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Tél.&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Pays&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Événement&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:t===&quot;seminar&quot;?i.jsx(&quot;span&quot;,{className:&quot;block normal-case&quot;,children:&quot;Frais part.&quot;}):&quot;Formule&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Statuts&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Créé&quot;}),i.jsx(&quot;th&quot;,{className:`${_n} text-right`,children:&quot;Actions&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200 bg-white&quot;,children:e.map(v=&gt;{const _=`${v.first_name} ${v.last_name}`.trim(),S=t===&quot;seminar&quot;?Dz(v):v.pricing_plan?.code||&quot;-&quot;;return i.jsxs(&quot;tr&quot;,{className:&quot;cursor-pointer hover:bg-brand-50&quot;,onClick:()=&gt;n(v),children:[i.jsx(&quot;td&quot;,{className:&quot;min-w-0 px-2 py-2 align-middle sm:px-3 sm:py-2.5&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs font-medium text-ink-900 sm:text-sm&quot;,title:_||void 0,children:_||&quot;—&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;min-w-0 px-2 py-2 align-middle sm:px-3 sm:py-2.5&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:v.email||void 0,children:v.email})}),i.jsx(&quot;td&quot;,{className:&quot;min-w-0 px-2 py-2 align-middle sm:px-3 sm:py-2.5&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:v.phone||void 0,children:v.phone||&quot;-&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;min-w-0 px-2 py-2 align-middle sm:px-3 sm:py-2.5&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:v.country||void 0,children:v.country||&quot;—&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;min-w-0 px-2 py-2 align-middle sm:px-3 sm:py-2.5&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:v.event?.name||void 0,children:v.event?.name||&quot;-&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;min-w-0 px-2 py-2 align-middle sm:px-3 sm:py-2.5&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:S,children:S})}),i.jsx(&quot;td&quot;,{className:&quot;min-w-0 px-2 py-2 align-middle sm:px-3 sm:py-2.5&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-1.5&quot;,children:[i.jsx(Ba,{status:v.status,compact:!0}),i.jsx(Zc,{summary:v.financial_status_summary,compact:!0})]})}),i.jsx(&quot;td&quot;,{className:&quot;min-w-0 whitespace-nowrap px-2 py-2 align-middle text-xs text-ink-500 sm:px-3 sm:py-2.5 sm:text-sm&quot;,children:new Date(v.created_at).toLocaleDateString(&quot;fr-FR&quot;)}),i.jsx(&quot;td&quot;,{className:&quot;min-w-0 whitespace-nowrap px-1 py-2 text-right align-middle sm:px-2 sm:py-2.5&quot;,children:i.jsx(L4,{registration:v,openMenuId:g,setOpenMenuId:y,onViewDetails:n,onUpdateStatus:o,onEdit:s,onDelete:l,onResendActivation:u,onCopyActivationLink:c,onResetParticipantPassword:a,canUpdateStatus:d,canEdit:f,canDelete:h,canResendActivation:m,canResetParticipantPassword:p,resendingActivationId:x})})]},v.id)})})]})})]})}function Bz({registrations:e,loading:r}){return r?i.jsx(&quot;div&quot;,{className:&quot;min-w-0 max-w-full rounded-xl bg-white p-6 text-center shadow-soft lg:p-8&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Chargement...&quot;})}):e.length===0?i.jsx(&quot;div&quot;,{className:&quot;min-w-0 max-w-full rounded-xl bg-white p-6 text-center shadow-soft lg:p-8&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Aucune inscription trouvée&quot;})}):i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 max-w-full overflow-hidden rounded-xl bg-white shadow-soft&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;space-y-2 p-2 lg:hidden&quot;,children:e.map(t=&gt;i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 bg-white p-3 shadow-sm&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;truncate text-sm font-medium text-ink-900&quot;,title:t.email||void 0,children:t.email}),i.jsxs(&quot;div&quot;,{className:&quot;mt-2 flex flex-wrap items-center gap-2&quot;,children:[i.jsx(Ba,{status:t.status,compact:!0}),i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:t.country||&quot;—&quot;})]})]},t.id))}),i.jsx(&quot;div&quot;,{className:&quot;hidden overflow-x-auto lg:block&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full min-w-0&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-ink-500 lg:px-6 lg:py-3&quot;,children:&quot;Email&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-ink-500 lg:px-6 lg:py-3&quot;,children:&quot;Pays&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-ink-500 lg:px-6 lg:py-3&quot;,children:&quot;Statut&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200 bg-white&quot;,children:e.map(t=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-brand-50&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;whitespace-nowrap px-4 py-3 lg:px-6 lg:py-4&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;text-sm text-ink-900&quot;,children:t.email})}),i.jsx(&quot;td&quot;,{className:&quot;whitespace-nowrap px-4 py-3 lg:px-6 lg:py-4&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;text-sm text-ink-500&quot;,children:t.country||&quot;—&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;whitespace-nowrap px-4 py-3 lg:px-6 lg:py-4&quot;,children:i.jsx(Ba,{status:t.status})})]},t.id))})]})})]})}const Na=&quot;min-w-0 px-2 py-2 align-middle sm:px-3 sm:py-2.5&quot;;function F4({recommendation:e,openMenuId:r,setOpenMenuId:t,onViewDetails:n,onTreat:o,onDelete:s,canDelete:l,compact:u}){const c=[];return l&amp;&amp;s&amp;&amp;c.push({id:&quot;delete&quot;,label:&quot;Supprimer&quot;,danger:!0,onSelect:()=&gt;s(e)}),i.jsx(Ta,{rowId:e.id,openMenuId:r,setOpenMenuId:t,compact:u,onView:()=&gt;n(e),onEdit:o?()=&gt;o(e):void 0,editLabel:&quot;Traiter&quot;,menuItems:c})}function $z({recommendations:e,loading:r,onViewDetails:t,onTreat:n,onDelete:o,canDelete:s}){const[l,u]=O.useState(null);return r?i.jsx(C7,{}):e.length===0?i.jsx(E7,{message:&quot;Aucune recommandation trouvée&quot;}):i.jsxs(N7,{children:[i.jsx(k7,{children:e.map(c=&gt;{const a=new Date(c.created_at).toLocaleDateString(&quot;fr-FR&quot;),d=`${c.recommender_first_name} ${c.recommender_last_name}`.trim();return i.jsxs(&quot;div&quot;,{role:&quot;button&quot;,tabIndex:0,className:&quot;overflow-visible rounded-lg border border-gray-200 bg-white p-3 shadow-sm outline-none ring-brand-700 focus-visible:ring-2&quot;,onClick:()=&gt;t(c),onKeyDown:f=&gt;{(f.key===&quot;Enter&quot;||f.key===&quot; &quot;)&amp;&amp;(f.preventDefault(),t(c))},children:[i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 gap-2 overflow-visible&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 flex-1&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;truncate text-sm font-semibold text-ink-900&quot;,title:c.recommended_full_name||void 0,children:c.recommended_full_name||&quot;—&quot;}),i.jsx(&quot;p&quot;,{className:&quot;truncate text-xs text-ink-500&quot;,title:c.recommended_email||void 0,children:c.recommended_email||&quot;—&quot;})]}),i.jsx(F4,{recommendation:c,openMenuId:l,setOpenMenuId:u,onViewDetails:t,onTreat:n,onDelete:o,canDelete:s,compact:!0})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-2 flex flex-wrap items-center gap-2&quot;,children:[i.jsx(Ba,{status:c.status,compact:!0}),i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:a})]}),d?i.jsxs(&quot;p&quot;,{className:&quot;mt-1 truncate text-xs text-ink-500&quot;,title:d,children:[&quot;Par &quot;,d]}):null]},c.id)})}),i.jsx(S7,{children:i.jsxs(&quot;table&quot;,{className:&quot;w-full min-w-0 table-fixed border-collapse&quot;,children:[i.jsxs(&quot;colgroup&quot;,{children:[i.jsx(&quot;col&quot;,{style:{width:&quot;13%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;16%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;10%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;8%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;12%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;13%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;10%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;9%&quot;}}),i.jsx(&quot;col&quot;,{style:{width:&quot;9%&quot;}})]}),i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:_n,children:&quot;Recommandé&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Email&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Profession&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Pays&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Recommandeur&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Événement&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Statut&quot;}),i.jsx(&quot;th&quot;,{className:_n,children:&quot;Créé&quot;}),i.jsx(&quot;th&quot;,{className:`${_n} text-right`,children:&quot;Actions&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200 bg-white&quot;,children:e.map(c=&gt;{const a=`${c.recommender_first_name} ${c.recommender_last_name}`.trim();return i.jsxs(&quot;tr&quot;,{className:&quot;cursor-pointer hover:bg-brand-50&quot;,onClick:()=&gt;t(c),children:[i.jsxs(&quot;td&quot;,{className:Na,children:[i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs font-medium text-ink-900 sm:text-sm&quot;,title:c.recommended_full_name||void 0,children:c.recommended_full_name||&quot;—&quot;}),i.jsx(&quot;div&quot;,{className:&quot;truncate text-[10px] text-ink-500 sm:text-xs&quot;,children:c.recommended_gender===&quot;homme&quot;?&quot;Homme&quot;:&quot;Femme&quot;})]}),i.jsx(&quot;td&quot;,{className:Na,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:c.recommended_email||void 0,children:c.recommended_email||&quot;-&quot;})}),i.jsx(&quot;td&quot;,{className:Na,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:c.recommended_profession||void 0,children:c.recommended_profession||&quot;-&quot;})}),i.jsx(&quot;td&quot;,{className:Na,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:c.recommended_residence_country||void 0,children:c.recommended_residence_country||&quot;-&quot;})}),i.jsx(&quot;td&quot;,{className:Na,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:a||void 0,children:a||&quot;-&quot;})}),i.jsx(&quot;td&quot;,{className:Na,children:i.jsx(&quot;div&quot;,{className:&quot;truncate text-xs text-ink-500 sm:text-sm&quot;,title:c.event?.name||void 0,children:c.event?.name||&quot;-&quot;})}),i.jsx(&quot;td&quot;,{className:Na,children:i.jsx(Ba,{status:c.status,compact:!0})}),i.jsx(&quot;td&quot;,{className:`${Na} whitespace-nowrap text-xs text-ink-500 sm:text-sm`,children:new Date(c.created_at).toLocaleDateString(&quot;fr-FR&quot;)}),i.jsx(&quot;td&quot;,{className:`${Na} whitespace-nowrap px-1 text-right sm:px-2`,children:i.jsx(F4,{recommendation:c,openMenuId:l,setOpenMenuId:u,onViewDetails:t,onTreat:n,onDelete:o,canDelete:s})})]},c.id)})})]})})]})}function ni(e,r){if(e==null)return&quot;-&quot;;const t=e.toLocaleString(&quot;fr-FR&quot;);return r===&quot;EUR&quot;?`${t} EUR`:`${t} FCFA`}function zz(e){return e?new Date(e).toLocaleString(&quot;fr-FR&quot;):&quot;-&quot;}function Uz(e,r){return(e.payments??[]).reduce((t,n)=&gt;n.status!==&quot;confirmed&quot;||n.currency!==r?t:t+Number(n.amount??0),0)}function Vz(e){const r={};if(!e.data?.errors)return r;for(const[t,n]of Object.entries(e.data.errors))r[t]=Array.isArray(n)?String(n[0]):String(n);return r}function qz(e,r){return[&quot;Changement de formule après paiement enregistré.&quot;,`Ancien du : ${ni(e.old_amount_due,r)}`,`Nouveau du : ${ni(e.new_amount_due,r)}`,`Paye confirme : ${ni(e.confirmed_paid,r)}`,`Delta : ${ni(e.delta,r)}`,`Solde apres changement : ${ni(e.balance_after_change,r)}`,`Trop-percu : ${ni(e.overpaid_amount,r)}`,`Action attendue : ${e.next_action_label}`].join(`
`)}function Wz({registration:e,isOpen:r,onClose:t,onSuccess:n}){const o=e.event?.slug??null,s=e.currency_selected===&quot;EUR&quot;?&quot;EUR&quot;:&quot;XOF&quot;,l=e.historical_installment_summary??null,u=e.financial_status_summary??null,c=!!l?.has_installment_plan,{plans:a,loading:d}=m2(r?o:null),[f,h]=O.useState(&quot;&quot;),[m,p]=O.useState(&quot;&quot;),[x,g]=O.useState(&quot;refund_manual_pending&quot;),[y,v]=O.useState(&quot;&quot;),[_,S]=O.useState(&quot;&quot;),[A,I]=O.useState(!1),[V,F]=O.useState(null),[q,H]=O.useState({}),B=s===&quot;EUR&quot;?e.amount_due_eur??null:e.amount_due_xof??null,K=O.useMemo(()=&gt;Uz(e,s),[s,e]),T=O.useMemo(()=&gt;a.filter(U=&gt;U.id!==e.pricing_plan?.id),[a,e.pricing_plan?.id]),L=O.useMemo(()=&gt;T.find(U=&gt;String(U.id)===f)??null,[T,f]),E=L==null?null:s===&quot;EUR&quot;?L.price_eur??null:L.price_xof??null,j=B!=null&amp;&amp;E!=null?E-B:null,k=E!=null?E-K:null,N=E!=null?Math.max(K-E,0):null,C=(j??0)&gt;0,P=(j??0)&lt;0,D=j===0,z=P&amp;&amp;x===&quot;refund_manual_done&quot;,Y=L!=null&amp;&amp;E==null;if(O.useEffect(()=&gt;{r&amp;&amp;(h(&quot;&quot;),p(&quot;&quot;),g(&quot;refund_manual_pending&quot;),v(&quot;&quot;),S(&quot;&quot;),I(!1),F(null),H({}))},[r,e.id]),O.useEffect(()=&gt;{if(r){if(C){g(&quot;collect_extra&quot;);return}P&amp;&amp;x===&quot;collect_extra&quot;&amp;&amp;g(&quot;refund_manual_pending&quot;)}},[P,r,C,x]),!r)return null;const Z=()=&gt;{const U={};return f||(U.target_pricing_plan_id=&quot;Veuillez choisir une nouvelle formule.&quot;),m.trim()||(U.reason=&quot;La raison du changement est obligatoire.&quot;),Y&amp;&amp;(U.target_pricing_plan_id=`Le prix de cette formule n&#039;est pas disponible en ${s}.`),(j===null||B==null)&amp;&amp;(U.target_pricing_plan_id=&quot;Impossible de calculer l’impact financier pour cette inscription.&quot;),D&amp;&amp;(U.target_pricing_plan_id=&quot;La nouvelle formule ne change pas le montant du. Ce cas n&#039;est pas supporte en V1.&quot;),z&amp;&amp;!y.trim()&amp;&amp;(U.refund_reference=&quot;La reference de remboursement est obligatoire.&quot;),z&amp;&amp;!_&amp;&amp;(U.refund_paid_at=&quot;La date du remboursement est obligatoire.&quot;),H(U),Object.keys(U).length===0},ne=async U=&gt;{if(U.preventDefault(),F(null),!!Z()){I(!0);try{const J=await ns.changePlanAfterPayment(e.id,{target_pricing_plan_id:Number(f),reason:m.trim(),settlement_policy:C?&quot;collect_extra&quot;:x,refund_reference:z?y.trim():void 0,refund_paid_at:z?_:void 0,metadata:{ui_origin:&quot;admin_registration_details_modal&quot;}});await Promise.resolve(n()),t(),window.alert(qz(J.data.financial_summary,s))}catch(J){J instanceof kt?(H(Vz(J)),F(J.data?.message??J.message??&quot;Une erreur est survenue.&quot;)):F(&quot;Une erreur inattendue est survenue.&quot;)}finally{I(!1)}}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-[210] overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex min-h-screen items-center justify-center px-4 py-6 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity&quot;,onClick:t}),i.jsx(&quot;div&quot;,{className:&quot;inline-block max-h-[90vh] w-full max-w-4xl transform overflow-y-auto rounded-lg bg-white text-left align-bottom shadow-xl transition-all sm:my-8 sm:align-middle&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex items-center justify-between&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:&quot;Changer de formule apres paiement&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:t,className:&quot;text-gray-400 transition-colors hover:text-gray-600&quot;,children:i.jsx(gr,{size:24})})]}),i.jsxs(&quot;form&quot;,{onSubmit:ne,className:&quot;space-y-6&quot;,children:[i.jsxs(&quot;section&quot;,{className:&quot;rounded-lg border border-gray-200 bg-gray-50/70 p-4&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;mb-3 text-lg font-semibold text-ink-900&quot;,children:&quot;Situation actuelle&quot;}),i.jsxs(&quot;dl&quot;,{className:&quot;grid grid-cols-1 gap-3 text-sm md:grid-cols-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Participant&quot;}),i.jsxs(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:[e.first_name,&quot; &quot;,e.last_name]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Evenement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:e.event?.name??&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Formule actuelle&quot;}),i.jsxs(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:[e.pricing_plan?.code,&quot; - &quot;,e.pricing_plan?.title??&quot;-&quot;]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Devise&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:s})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Montant du actuel&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ni(B,s)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Montant paye confirme&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ni(K,s)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Statut administratif&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:i.jsx(Ba,{status:e.status})})]}),u&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Statut financier actuel&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:i.jsx(Zc,{summary:u})})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Date de paiement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:zz(e.paid_at)})]}),c&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2&quot;,children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Echeancier historique&quot;}),i.jsxs(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:[l?.label??&quot;Echeancier present&quot;,&quot; &quot;,l?.installments_count?`(${l.installments_count} echeance${l.installments_count&gt;1?&quot;s&quot;:&quot;&quot;})`:&quot;&quot;]})]})]})]}),i.jsxs(&quot;section&quot;,{className:&quot;rounded-lg border border-gray-200 p-4&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;mb-3 text-lg font-semibold text-ink-900&quot;,children:&quot;Nouvelle formule&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-4 md:grid-cols-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-500&quot;,children:[&quot;Formule cible &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;select&quot;,{value:f,onChange:U=&gt;{h(U.target.value),H(J=&gt;({...J,target_pricing_plan_id:&quot;&quot;}))},disabled:d||A,className:&quot;w-full rounded-lg border border-gray-300 px-4 py-2 focus:border-transparent focus:ring-2 focus:ring-brand-700 disabled:cursor-not-allowed disabled:bg-gray-100&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Selectionner...&quot;}),T.map(U=&gt;i.jsxs(&quot;option&quot;,{value:U.id,children:[U.code,&quot; - &quot;,U.title]},U.id))]}),q.target_pricing_plan_id?i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:q.target_pricing_plan_id}):null]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-500&quot;,children:&quot;Montant de la formule cible&quot;}),i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 bg-brand-50 px-4 py-2 text-sm text-ink-900&quot;,children:L==null?&quot;-&quot;:ni(E,s)}),Y?i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-amber-700&quot;,children:&quot;Le prix de la formule cible est indisponible dans cette devise.&quot;}):null]})]})]}),i.jsxs(&quot;section&quot;,{className:&quot;rounded-lg border border-gray-200 p-4&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;mb-3 text-lg font-semibold text-ink-900&quot;,children:&quot;Impact financier indicatif&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-3 text-sm md:grid-cols-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Ancien montant du&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ni(B,s)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Nouveau montant du&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ni(E,s)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Montant confirme paye&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ni(K,s)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Delta&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ni(j,s)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Solde apres changement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ni(k,s)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Trop-percu&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ni(N,s)})]})]}),i.jsx(&quot;div&quot;,{className:&quot;mt-4 rounded-lg border border-amber-200 bg-amber-50/80 px-4 py-3 text-sm text-amber-950&quot;,children:C?i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsx(&quot;p&quot;,{children:&quot;Le participant devra regler un complement suite a changement de formule.&quot;}),c&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsx(&quot;p&quot;,{children:&quot;Ce complement n&#039;est pas une nouvelle echeance.&quot;}),i.jsx(&quot;p&quot;,{children:&quot;Paiement en ligne SycaPay non supporte pour ce complement dans cette version.&quot;}),i.jsx(&quot;p&quot;,{children:&quot;Canaux autorises : declaration de paiement ou encaissement finance.&quot;})]})]}):P?i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsx(&quot;p&quot;,{children:&quot;Un trop-percu est detecte et devra etre traite manuellement.&quot;}),c&amp;&amp;i.jsx(&quot;p&quot;,{children:&quot;Le trop-percu sera traite comme un ajustement commercial hors echeancier.&quot;})]}):D?i.jsx(&quot;p&quot;,{children:&quot;La nouvelle formule ne change pas le montant du. Ce cas n&#039;est pas supporte en V1.&quot;}):i.jsx(&quot;p&quot;,{children:&quot;Selectionnez une formule cible pour afficher l&#039;action attendue.&quot;})})]}),i.jsxs(&quot;section&quot;,{className:&quot;rounded-lg border border-gray-200 p-4&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;mb-3 text-lg font-semibold text-ink-900&quot;,children:&quot;Raison et reglement&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-500&quot;,children:[&quot;Raison &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;textarea&quot;,{value:m,onChange:U=&gt;{p(U.target.value),H(J=&gt;({...J,reason:&quot;&quot;}))},rows:4,className:&quot;w-full rounded-lg border border-gray-300 px-4 py-2 focus:border-transparent focus:ring-2 focus:ring-brand-700&quot;,placeholder:&quot;Documenter la raison commerciale du changement...&quot;}),q.reason?i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:q.reason}):null]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-500&quot;,children:[&quot;Politique de reglement &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),C?i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 bg-brand-50 px-4 py-2 text-sm text-ink-900&quot;,children:&quot;collect_extra - Le participant devra payer le reliquat.&quot;}):i.jsxs(&quot;select&quot;,{value:x,onChange:U=&gt;g(U.target.value),disabled:!P||A,className:&quot;w-full rounded-lg border border-gray-300 px-4 py-2 focus:border-transparent focus:ring-2 focus:ring-brand-700 disabled:cursor-not-allowed disabled:bg-gray-100&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;refund_manual_pending&quot;,children:&quot;refund_manual_pending&quot;}),i.jsx(&quot;option&quot;,{value:&quot;refund_manual_done&quot;,children:&quot;refund_manual_done&quot;})]})]}),z?i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-4 md:grid-cols-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-500&quot;,children:[&quot;Reference de remboursement &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:y,onChange:U=&gt;{v(U.target.value),H(J=&gt;({...J,refund_reference:&quot;&quot;}))},className:&quot;w-full rounded-lg border border-gray-300 px-4 py-2 focus:border-transparent focus:ring-2 focus:ring-brand-700&quot;}),q.refund_reference?i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:q.refund_reference}):null]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-500&quot;,children:[&quot;Date du remboursement &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:_,onChange:U=&gt;{S(U.target.value),H(J=&gt;({...J,refund_paid_at:&quot;&quot;}))},className:&quot;w-full rounded-lg border border-gray-300 px-4 py-2 focus:border-transparent focus:ring-2 focus:ring-brand-700&quot;}),q.refund_paid_at?i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:q.refund_paid_at}):null]})]}):null]})]}),i.jsxs(&quot;section&quot;,{className:&quot;rounded-lg border border-amber-200 bg-amber-50/80 p-4 text-sm text-amber-950&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;mb-2 text-base font-semibold text-ink-900&quot;,children:&quot;Warnings obligatoires&quot;}),i.jsxs(&quot;ul&quot;,{className:&quot;list-disc space-y-1 pl-5&quot;,children:[i.jsx(&quot;li&quot;,{children:&quot;Les paiements confirmes existants ne seront pas modifies.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Les anciens recus ne seront pas modifies.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Le statut de l&#039;inscription ne sera pas modifie.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Ce changement sera historise dans les ajustements commerciaux.&quot;}),c?i.jsxs(i.Fragment,{children:[i.jsx(&quot;li&quot;,{children:&quot;Les inscriptions avec echeancier sont acceptees uniquement si l&#039;echeancier historique est entierement solde et fige.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Le reliquat eventuel sera traite comme un ajustement commercial hors echeancier.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Les anciennes echeances ne seront pas recalculees.&quot;})]}):null,i.jsx(&quot;li&quot;,{children:&quot;Les inscriptions liees a un paiement groupe ne sont pas supportees dans cette version.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;La verification QR des anciens recus sera securisee dans une phase suivante.&quot;})]})]}),V?i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-red-200 bg-red-50 p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:V})}):null,i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-end gap-3 border-t pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,onClick:t,disabled:A,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:A||d||Y,children:A?&quot;Enregistrement...&quot;:&quot;Enregistrer le changement&quot;})]})]})]})})]})})}function Pc(e){return e?new Date(e).toLocaleString(&quot;fr-FR&quot;):&quot;-&quot;}function ws(e,r){if(e==null)return&quot;-&quot;;const t=e.toLocaleString(&quot;fr-FR&quot;);return r===&quot;EUR&quot;?`${t} EUR`:`${t} FCFA`}function Hz(e,r){return(e.payments??[]).reduce((t,n)=&gt;n.status!==&quot;confirmed&quot;||n.currency!==r?t:t+Number(n.amount??0),0)}function Kz(e){return e.type===&quot;upgrade&quot;&amp;&amp;e.settlement_status===&quot;pending&quot;?&quot;Reliquat à encaisser&quot;:e.type===&quot;upgrade&quot;&amp;&amp;e.settlement_status===&quot;settled&quot;?&quot;Reliquat soldé&quot;:e.type===&quot;downgrade&quot;&amp;&amp;e.settlement_policy===&quot;refund_manual_pending&quot;&amp;&amp;e.settlement_status===&quot;pending&quot;?&quot;Remboursement manuel à effectuer&quot;:e.type===&quot;downgrade&quot;&amp;&amp;e.settlement_policy===&quot;refund_manual_done&quot;&amp;&amp;e.settlement_status===&quot;settled&quot;?&quot;Remboursement manuel effectué&quot;:null}function Xz(e){return e.type===&quot;downgrade&quot;&amp;&amp;e.settlement_policy===&quot;refund_manual_pending&quot;&amp;&amp;e.settlement_status===&quot;pending&quot;}function Gz(e){return e===&quot;upgrade&quot;?&quot;Upgrade&quot;:e===&quot;downgrade&quot;?&quot;Downgrade&quot;:&quot;-&quot;}function A7(e){return e===&quot;pending&quot;?&quot;En attente&quot;:e===&quot;settled&quot;?&quot;Soldé&quot;:&quot;-&quot;}function B4(e,r){return e?.type===&quot;upgrade&quot;&amp;&amp;e.settlement_status===&quot;pending&quot;?&quot;Reliquat à encaisser&quot;:A7(r)}function Yz(e){return e===&quot;collect_extra&quot;?&quot;Complément à encaisser&quot;:e===&quot;refund_manual_pending&quot;?&quot;Remboursement manuel à effectuer&quot;:e===&quot;refund_manual_done&quot;?&quot;Remboursement manuel effectué&quot;:&quot;-&quot;}function Zz({registration:e,isOpen:r,onClose:t,onUpdateStatus:n,onCopyActivationLink:o,copyingActivationLink:s=!1,canUpdateStatus:l=!1,canChangePlanAfterPayment:u=!1,onRegistrationChanged:c,onResetParticipantPassword:a}){const{data:d,loading:f,error:h,refetch:m}=x$(e?.id??null,r&amp;&amp;e!=null),[p,x]=O.useState(!1),g=d??e,y=g?.currency_selected===&quot;EUR&quot;?&quot;EUR&quot;:&quot;XOF&quot;,v=O.useMemo(()=&gt;g?Hz(g,y):0,[g,y]),_=y===&quot;EUR&quot;?g?.amount_due_eur??null:g?.amount_due_xof??null,S=O.useMemo(()=&gt;[...g?.commercial_adjustments??[]].sort((B,K)=&gt;new Date(K.created_at).getTime()-new Date(B.created_at).getTime()),[g?.commercial_adjustments]),A=S[0]??null,I=g?.historical_installment_summary??null,V=g?.commercial_adjustment_summary??null,F=g?.financial_status_summary??null,q=u&amp;&amp;g?.event?.event_type===&quot;summit&quot;&amp;&amp;!!g?.pricing_plan?.id&amp;&amp;(v&gt;0||g?.status===&quot;paid&quot;);O.useEffect(()=&gt;{r||x(!1)},[r]);const H=async()=&gt;{await m(),await Promise.resolve(c?.())};return!r||!g?null:i.jsxs(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:t}),i.jsxs(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-4xl sm:w-full&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsxs(&quot;h3&quot;,{className:&quot;text-2xl font-semibold text-ink-900&quot;,children:[&quot;Inscription #&quot;,g.id]}),i.jsx(&quot;button&quot;,{onClick:t,className:&quot;text-gray-400 hover:text-gray-600 transition-colors&quot;,children:i.jsx(gr,{size:24})})]}),l&amp;&amp;n||q||a&amp;&amp;xv(g)||o&amp;&amp;g.status===&quot;draft&quot;?i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex flex-wrap gap-2&quot;,children:[l&amp;&amp;n&amp;&amp;i.jsx(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;{n(g)},children:&quot;Changer le statut&quot;}),q&amp;&amp;i.jsx(Ae,{variant:&quot;outline&quot;,onClick:()=&gt;x(!0),children:&quot;CHANGER DE FORMULE APRÈS PAIEMENT&quot;}),a&amp;&amp;xv(g)&amp;&amp;i.jsx(Ae,{variant:&quot;outline&quot;,onClick:()=&gt;a(g),children:&quot;Initialiser le mot de passe participant&quot;}),o&amp;&amp;g.status===&quot;draft&quot;&amp;&amp;i.jsx(Ae,{variant:&quot;outline&quot;,disabled:s,onClick:()=&gt;o(g),children:s?&quot;Copie en cours…&quot;:&quot;Copier lien activation&quot;})]}):null,f&amp;&amp;!d?i.jsx(&quot;div&quot;,{className:&quot;mb-4 rounded-lg border border-gray-200 bg-gray-50 px-4 py-3 text-sm text-ink-600&quot;,children:&quot;Chargement des détails de l&#039;inscription...&quot;}):null,h?i.jsx(&quot;div&quot;,{className:&quot;mb-4 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700&quot;,children:h.data?.message??&quot;Impossible de charger les détails complets de cette inscription.&quot;}):null,i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-6&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900 mb-3&quot;,children:&quot;Informations personnelles&quot;}),i.jsxs(&quot;dl&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Nom complet&quot;}),i.jsxs(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:[g.first_name,&quot; &quot;,g.last_name]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Email&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.email})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Téléphone&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.phone||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Pays&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.country||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Ville&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.city||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Nationalité&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.nationality||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Organisation&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.organization||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Poste&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.position||&quot;-&quot;})]})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900 mb-3&quot;,children:&quot;Informations inscription&quot;}),i.jsxs(&quot;dl&quot;,{className:&quot;space-y-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Statut administratif&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm&quot;,children:i.jsx(Ba,{status:g.status})})]}),F&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Statut financier&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm&quot;,children:i.jsx(Zc,{summary:F})})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Événement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.event?.name||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Formule&quot;}),i.jsxs(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:[g.pricing_plan?.code,&quot; - &quot;,g.pricing_plan?.title||&quot;-&quot;]})]}),g.pricing_plan?.code===&quot;D&quot;&amp;&amp;(g.spouse_fullname||g.spouse_email||g.spouse_haggai_id)&amp;&amp;i.jsxs(i.Fragment,{children:[g.spouse_fullname&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Nom du conjoint / de la conjointe&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.spouse_fullname})]}),g.spouse_email&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Email du conjoint / de la conjointe&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.spouse_email})]}),g.spouse_haggai_id&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Haggai ID / Année de HLE (conjoint)&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.spouse_haggai_id})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Montant dû&quot;}),i.jsxs(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:[ws(_,y),&quot; (&quot;,y,&quot;)&quot;]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Montant payé confirmé&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:ws(v,y)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Date de création&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:Pc(g.created_at)})]}),g.submitted_at&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Date de soumission&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:Pc(g.submitted_at)})]}),g.paid_at&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Date de paiement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:Pc(g.paid_at)})]}),g.is_public_registration&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Type&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:i.jsx(&quot;span&quot;,{className:&quot;inline-flex items-center px-2 py-1 rounded bg-blue-100 text-blue-700 text-xs&quot;,children:&quot;Inscription publique&quot;})})]})]})]}),I&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;md:col-span-2&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 bg-gray-50/70 p-4&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900 mb-3&quot;,children:&quot;Échéancier historique&quot;}),i.jsxs(&quot;dl&quot;,{className:&quot;grid grid-cols-1 gap-3 text-sm md:grid-cols-3&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Nombre d’échéances&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:I.installments_count??&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Montant historique&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ws(I.total_amount,y)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Statut&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:I.label??&quot;-&quot;})]})]}),i.jsx(&quot;p&quot;,{className:&quot;mt-3 rounded-lg border border-blue-100 bg-blue-50/80 px-3 py-3 text-sm text-blue-900&quot;,children:&quot;Cet échéancier correspond au plan de paiement initial. Il n’est pas recalculé lors d’un changement de formule.&quot;})]})}),V&amp;&amp;A&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;md:col-span-2&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-amber-200 bg-amber-50/60 p-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-2 md:flex-row md:items-start md:justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Ajustement commercial post-paiement&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-700&quot;,children:V.label??&quot;Ajustement commercial post-paiement&quot;})]}),i.jsx(&quot;span&quot;,{className:&quot;inline-flex w-fit rounded-full border border-amber-200 bg-white px-3 py-1 text-xs font-semibold text-amber-900&quot;,children:B4(A,V.settlement_status)})]}),i.jsxs(&quot;dl&quot;,{className:&quot;mt-4 grid grid-cols-1 gap-3 text-sm md:grid-cols-2 xl:grid-cols-3&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Type&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:Gz(V.type)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Ancienne formule&quot;}),i.jsxs(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:[A.from_pricing_plan?.code??&quot;-&quot;,&quot; - &quot;,A.from_pricing_plan?.title??&quot;Ancienne formule&quot;]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Nouvelle formule&quot;}),i.jsxs(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:[A.to_pricing_plan?.code??&quot;-&quot;,&quot; - &quot;,A.to_pricing_plan?.title??&quot;Nouvelle formule&quot;]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Delta&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ws(V.delta_amount,y)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:V.type===&quot;downgrade&quot;?&quot;Trop-perçu&quot;:&quot;Reliquat à encaisser&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ws(V.type===&quot;downgrade&quot;?V.overpaid_amount:V.commercial_balance_remaining,y)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Statut du règlement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:B4(A,V.settlement_status)})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-4 rounded-lg border border-white/70 bg-white/80 p-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-800&quot;,children:&quot;Canaux de règlement&quot;}),i.jsxs(&quot;ul&quot;,{className:&quot;mt-2 space-y-1 text-sm text-ink-700&quot;,children:[i.jsxs(&quot;li&quot;,{children:[&quot;Finance direct : &quot;,V.payment_supported_channels.finance_direct?&quot;oui&quot;:&quot;non&quot;]}),i.jsxs(&quot;li&quot;,{children:[&quot;Déclaration manuelle : &quot;,V.payment_supported_channels.manual_declaration?&quot;oui&quot;:&quot;non&quot;]}),i.jsxs(&quot;li&quot;,{children:[&quot;SycaPay : &quot;,V.payment_supported_channels.sycapay?&quot;supporté&quot;:&quot;non supporté en V1.2A&quot;]})]}),V.is_historical_installment_adjustment&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-3 text-sm text-ink-700&quot;,children:&quot;Le reliquat éventuel est traité hors échéancier. Les anciennes échéances restent figées et ne sont pas recalculées.&quot;})]})]})}),g.event?.event_type===&quot;seminar&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900 mb-3&quot;,children:&quot;Informations Séminaire&quot;}),i.jsxs(&quot;dl&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Souhaite participer&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_want_to_participate===&quot;oui&quot;?&quot;Oui&quot;:g.seminar_want_to_participate===&quot;non&quot;?&quot;Non&quot;:&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Église ou organisation&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_church_organization||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Rôle/Ministère&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_role_ministry||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Situation matrimoniale&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_marital_status===&quot;marie&quot;?&quot;Marié(e)&quot;:g.seminar_marital_status===&quot;non_marie&quot;?&quot;Non marié(e)&quot;:&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Âge&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_age??&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Genre&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_gender===&quot;homme&quot;?&quot;Homme&quot;:g.seminar_gender===&quot;femme&quot;?&quot;Femme&quot;:&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2&quot;,children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Question ou préoccupation&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_question_or_concern||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Date de naissance&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_date_naissance?new Date(g.seminar_date_naissance).toLocaleDateString(&quot;fr-FR&quot;):&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Contact d&#039;urgence (nom et lien)&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_contact_urgence_nom_lien||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Niveau d&#039;études&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_niveau_etudes===&quot;primaire&quot;?&quot;Primaire&quot;:g.seminar_niveau_etudes===&quot;secondaire_2&quot;?&quot;Secondaire 2e cycle&quot;:g.seminar_niveau_etudes===&quot;universitaire&quot;?&quot;Universitaire&quot;:g.seminar_niveau_etudes||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Domaines d&#039;étude&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_domaines_etude?.length?g.seminar_domaines_etude.join(&quot;, &quot;):&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Domaine d&#039;étude (autre)&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_domaine_etude_autre||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Niveau de français&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_niveau_francais===&quot;natif&quot;?&quot;Natif&quot;:g.seminar_niveau_francais===&quot;avance&quot;?&quot;Avancé&quot;:g.seminar_niveau_francais===&quot;intermediaire&quot;?&quot;Intermédiaire&quot;:g.seminar_niveau_francais===&quot;faible&quot;?&quot;Faible&quot;:g.seminar_niveau_francais||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Besoin lettre d&#039;absence&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_besoin_lettre_absence===&quot;oui&quot;?&quot;Oui&quot;:g.seminar_besoin_lettre_absence===&quot;non&quot;?&quot;Non&quot;:&quot;-&quot;})]}),g.seminar_besoin_lettre_absence===&quot;oui&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Détails lettre d&#039;absence&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_besoin_lettre_details||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Informations santé&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_sante_details||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Régime sans sel&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_regime_sans_sel===&quot;oui&quot;?&quot;Oui&quot;:g.seminar_regime_sans_sel===&quot;non&quot;?&quot;Non&quot;:&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Confession religieuse&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_confession_religieuse===&quot;musulmane&quot;?&quot;Musulmane&quot;:g.seminar_confession_religieuse===&quot;catholique&quot;?&quot;Catholique&quot;:g.seminar_confession_religieuse===&quot;protestante&quot;?&quot;Protestante&quot;:g.seminar_confession_religieuse===&quot;pentecotiste&quot;?&quot;Pentecôtiste&quot;:g.seminar_confession_religieuse===&quot;evangelique&quot;?&quot;Évangélique&quot;:g.seminar_confession_religieuse===&quot;autre&quot;?&quot;Autre&quot;:g.seminar_confession_religieuse||&quot;-&quot;})]}),g.seminar_confession_religieuse_autre?i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Spécification (confession)&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_confession_religieuse_autre})]}):null,i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2&quot;,children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Attentes&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_fardeau_transformation||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Recommandé par&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_recommande_par||&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Engagements&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_engagements?.length?g.seminar_engagements.join(&quot;, &quot;):&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Engagements (autre)&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-sm text-ink-900&quot;,children:g.seminar_engagements_autre||&quot;-&quot;})]})]})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;mb-3 text-lg font-semibold text-ink-900&quot;,children:&quot;Historique des ajustements commerciaux&quot;}),S.length===0?i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-dashed border-gray-200 bg-gray-50 px-4 py-5 text-sm text-ink-500&quot;,children:&quot;Aucun ajustement commercial historisé pour cette inscription.&quot;}):i.jsx(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:S.map(B=&gt;{const K=B.metadata??{},T=typeof K.refund_reference==&quot;string&quot;?K.refund_reference:null,L=typeof K.refund_paid_at==&quot;string&quot;?K.refund_paid_at:null,E=typeof K.refund_marked_done_at==&quot;string&quot;?K.refund_marked_done_at:null,j=typeof K.refund_notes==&quot;string&quot;?K.refund_notes:null,k=Kz(B),N=Xz(B);return i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 bg-white p-4 shadow-sm&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:[B.from_pricing_plan?.code??&quot;-&quot;,&quot; - &quot;,B.from_pricing_plan?.title??&quot;Ancienne formule&quot;,&quot; -&gt; &quot;,B.to_pricing_plan?.code??&quot;-&quot;,&quot; - &quot;,B.to_pricing_plan?.title??&quot;Nouvelle formule&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:[Pc(B.created_at),&quot; par &quot;,B.actor?.name??&quot;Système&quot;]})]}),i.jsx(&quot;div&quot;,{className:&quot;flex flex-wrap gap-2&quot;,children:k?i.jsx(&quot;span&quot;,{className:&quot;inline-flex items-center rounded-full bg-brand-50 px-3 py-1 text-xs font-medium text-brand-900&quot;,children:k}):null})]}),i.jsxs(&quot;dl&quot;,{className:&quot;mt-4 grid grid-cols-1 gap-x-6 gap-y-3 text-sm md:grid-cols-2 xl:grid-cols-3&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Type&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:B.type})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Delta&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ws(B.delta_amount,B.currency)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Ancien dû&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ws(B.old_amount_due,B.currency)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Nouveau dû&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ws(B.new_amount_due,B.currency)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Montant payé confirmé au changement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ws(B.confirmed_paid_amount_at_change,B.currency)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Solde après changement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ws(B.balance_after_change,B.currency)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Trop-perçu&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:ws(B.overpaid_amount,B.currency)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Politique de règlement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:Yz(B.settlement_policy)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Statut du règlement&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:A7(B.settlement_status)})]}),i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2 xl:col-span-3&quot;,children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;Raison&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:B.reason||&quot;-&quot;})]}),N?i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2 xl:col-span-3 rounded-lg border border-blue-200 bg-blue-50/80 p-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-blue-900&quot;,children:&quot;Remboursement à traiter par la Finance.&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-blue-800&quot;,children:&quot;Cette action est disponible dans le dashboard Finance.&quot;})]}):null,(T||L||E||j)&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2 xl:col-span-3 rounded-lg border border-gray-200 bg-gray-50/70 p-3&quot;,children:[i.jsx(&quot;h5&quot;,{className:&quot;mb-2 text-sm font-semibold text-ink-900&quot;,children:&quot;Metadata remboursement&quot;}),i.jsxs(&quot;dl&quot;,{className:&quot;grid grid-cols-1 gap-x-6 gap-y-2 md:grid-cols-2 xl:grid-cols-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;refund_reference&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:T??&quot;-&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;refund_paid_at&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:Pc(L)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;refund_marked_done_at&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:Pc(E)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;dt&quot;,{className:&quot;font-medium text-ink-500&quot;,children:&quot;refund_notes&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-900&quot;,children:j??&quot;-&quot;})]})]})]})]})]},B.id)})})]}),g.status_changes&amp;&amp;g.status_changes.length&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-6&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900 mb-3&quot;,children:&quot;Historique des changements&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:g.status_changes.map(B=&gt;i.jsx(&quot;div&quot;,{className:&quot;bg-brand-50 rounded-lg p-4 border-l-4 border-brand-700&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;span&quot;,{className:&quot;text-sm font-medium text-ink-900&quot;,children:[B.from_status,&quot; → &quot;,B.to_status]}),B.notes&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mt-1&quot;,children:B.notes})]}),i.jsxs(&quot;div&quot;,{className:&quot;text-right&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:B.actor?.name||&quot;Système&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:new Date(B.created_at).toLocaleString(&quot;fr-FR&quot;)})]})]})},B.id))})]})]}),i.jsx(&quot;div&quot;,{className:&quot;bg-gray-50 px-6 py-4 flex justify-end&quot;,children:i.jsx(Ae,{variant:&quot;secondary&quot;,onClick:t,children:&quot;Fermer&quot;})})]})]}),p?i.jsx(Wz,{registration:g,isOpen:p,onClose:()=&gt;x(!1),onSuccess:H}):null]})}function Qz({registration:e,onClose:r,onSuccess:t}){const[n,o]=O.useState(&quot;&quot;),[s,l]=O.useState(&quot;&quot;),[u,c]=O.useState(!1),[a,d]=O.useState(null),[f,h]=O.useState({}),m=`${e.first_name} ${e.last_name}`.trim()||e.email,p=async x=&gt;{if(x.preventDefault(),d(null),h({}),n.length&lt;8){h({password:&quot;Le mot de passe doit contenir au moins 8 caractères.&quot;});return}if(n!==s){h({password_confirmation:&quot;Les deux mots de passe ne correspondent pas.&quot;});return}c(!0);try{await ns.resetParticipantPassword(e.id,{password:n,password_confirmation:s}),t()}catch(g){const y=g;if(d(y.data?.message??&quot;Erreur lors de l’initialisation du mot de passe.&quot;),y.data?.errors){const v={};for(const[_,S]of Object.entries(y.data.errors))v[_]=Array.isArray(S)?S[0]:String(S);h(v)}}finally{c(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-[210] flex items-center justify-center p-4 bg-black/50&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-xl max-w-md w-full p-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Initialiser le mot de passe participant&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,className:&quot;p-1 rounded hover:bg-gray-100&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:20})})]}),i.jsxs(&quot;p&quot;,{className:&quot;text-ink-600 text-sm mb-4&quot;,children:[&quot;Définir un mot de passe provisoire pour &quot;,i.jsx(&quot;strong&quot;,{children:m}),&quot; (&quot;,e.email,&quot;). Les sessions actives seront déconnectées ; à la &quot;,i.jsx(&quot;strong&quot;,{children:&quot;première&quot;}),&quot; connexion suivante, le participant devra&quot;,&quot; &quot;,i.jsx(&quot;strong&quot;,{children:&quot;obligatoirement&quot;}),&quot; choisir un nouveau mot de passe.&quot;]}),i.jsxs(&quot;form&quot;,{onSubmit:p,children:[a&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700&quot;,children:a}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;reset-participant-password&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Nouveau mot de passe&quot;}),i.jsx(&quot;input&quot;,{id:&quot;reset-participant-password&quot;,type:&quot;password&quot;,value:n,onChange:x=&gt;o(x.target.value),minLength:8,autoComplete:&quot;new-password&quot;,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,placeholder:&quot;Min. 8 caractères&quot;}),f.password&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:f.password})]}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;reset-participant-password-confirm&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Confirmer le mot de passe&quot;}),i.jsx(&quot;input&quot;,{id:&quot;reset-participant-password-confirm&quot;,type:&quot;password&quot;,value:s,onChange:x=&gt;l(x.target.value),autoComplete:&quot;new-password&quot;,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,placeholder:&quot;Confirmer&quot;}),f.password_confirmation&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:f.password_confirmation})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex justify-end gap-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:r,disabled:u,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:u,children:u?&quot;Enregistrement…&quot;:&quot;Initialiser&quot;})]})]})]})})}const im=[{value:&quot;draft&quot;,label:&quot;Brouillon&quot;},{value:&quot;submitted&quot;,label:&quot;Soumis&quot;},{value:&quot;pending_payment&quot;,label:&quot;En attente de paiement&quot;},{value:&quot;correction&quot;,label:&quot;Dossier en correction&quot;},{value:&quot;paid&quot;,label:&quot;Payé&quot;},{value:&quot;rejected&quot;,label:&quot;Rejeté&quot;},{value:&quot;cancelled&quot;,label:&quot;Annulé&quot;},{value:&quot;refunded&quot;,label:&quot;Remboursé&quot;}];function Jz({registration:e,isOpen:r,onClose:t,onSuccess:n,canSendToCorrection:o=!1}){const[s,l]=O.useState(&quot;draft&quot;),[u,c]=O.useState(&quot;&quot;),[a,d]=O.useState(!1),[f,h]=O.useState(null),m=O.useMemo(()=&gt;e?e.status===&quot;correction&quot;?im.filter(_=&gt;_.value===&quot;pending_payment&quot;):e.status===&quot;pending_payment&quot;?im.filter(_=&gt;_.value!==&quot;submitted&quot;&amp;&amp;(_.value!==&quot;correction&quot;||o)):im:im,[e,o]),x=s===&quot;correction&quot;,g=10;O.useEffect(()=&gt;{e&amp;&amp;(l(e.status),c(&quot;&quot;),h(null))},[e,r]),O.useEffect(()=&gt;{e&amp;&amp;m.length&gt;0&amp;&amp;!m.some(_=&gt;_.value===s)&amp;&amp;l(m[0].value)},[m,e,s]);const y=async _=&gt;{if(_.preventDefault(),!!e){if(x&amp;&amp;(!u.trim()||u.trim().length&lt;g)){h(`La raison de la mise en correction est obligatoire (min. ${g} caractères).`);return}d(!0),h(null);try{await ns.updateStatus(e.id,{status:s,notes:u.trim()||void 0}),n(),t()}catch(S){if(S instanceof kt)if(S.status===422&amp;&amp;S.data.errors){const A=S.data.errors.notes?.[0],I=S.data.errors.status?.[0];h(A||I||S.data.message||&quot;Erreur de validation&quot;)}else S.status===403?h(&quot;Vous n&#039;avez pas la permission de modifier le statut&quot;):h(S.data.message||&quot;Une erreur est survenue&quot;);else h(&quot;Une erreur inattendue est survenue&quot;)}finally{d(!1)}}};if(!r||!e)return null;const v=e.status===&quot;correction&quot;&amp;&amp;s===&quot;pending_payment&quot;;return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:t}),i.jsx(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:v?&quot;Terminer la correction&quot;:&quot;Changer le statut&quot;}),i.jsx(&quot;button&quot;,{onClick:t,className:&quot;text-gray-400 hover:text-gray-600 transition-colors&quot;,children:i.jsx(gr,{size:24})})]}),i.jsxs(&quot;form&quot;,{onSubmit:y,className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-3 sm:grid-cols-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Statut administratif actuel&quot;}),i.jsx(&quot;div&quot;,{className:&quot;bg-brand-50 px-4 py-2 rounded-lg&quot;,children:i.jsx(Ba,{status:e.status})})]}),e.financial_status_summary&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Statut financier&quot;}),i.jsx(&quot;div&quot;,{className:&quot;bg-gray-50 px-4 py-2 rounded-lg&quot;,children:i.jsx(Zc,{summary:e.financial_status_summary})})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:[&quot;Nouveau statut &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;select&quot;,{value:s,onChange:_=&gt;l(_.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,required:!0,children:m.map(_=&gt;i.jsx(&quot;option&quot;,{value:_.value,children:_.label},_.value))})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:x?i.jsxs(i.Fragment,{children:[&quot;Raison de la mise en correction &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;}),&quot; (min. 10 caractères)&quot;]}):&quot;Notes (optionnel)&quot;}),i.jsx(&quot;textarea&quot;,{value:u,onChange:_=&gt;c(_.target.value),rows:4,maxLength:1e3,required:x,minLength:x?g:void 0,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,placeholder:x?&quot;Indiquez la raison de la mise en correction...&quot;:&quot;Ajouter des notes sur ce changement de statut...&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-1&quot;,children:[u.length,&quot;/1000 caractères&quot;,x&amp;&amp;u.trim().length&gt;0&amp;&amp;u.trim().length&lt;g&amp;&amp;i.jsxs(&quot;span&quot;,{className:&quot;text-amber-600 ml-1&quot;,children:[&quot;(min. &quot;,g,&quot; requis)&quot;]})]})]}),f&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:f})}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-end gap-3 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,onClick:t,disabled:a,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:a,children:a?&quot;Enregistrement...&quot;:v?&quot;Terminer la correction&quot;:&quot;Enregistrer&quot;})]})]})]})})]})})}function eU({registration:e,isOpen:r,onClose:t,onSuccess:n}){const[o,s]=O.useState(!1),[l,u]=O.useState(null),[c,a]=O.useState({first_name:&quot;&quot;,last_name:&quot;&quot;,email:&quot;&quot;,phone:&quot;&quot;,country:&quot;&quot;,city:&quot;&quot;,organization:&quot;&quot;,position:&quot;&quot;,nationality:&quot;&quot;,is_haggai_leader:!1,haggai_id:&quot;&quot;,payment_method_selected:&quot;&quot;,currency_selected:&quot;&quot;,amount_due_xof:&quot;&quot;,amount_due_eur:&quot;&quot;,pricing_plan_id:&quot;&quot;,ouaga_resident_confirmed:!1,spouse_fullname:&quot;&quot;,spouse_email:&quot;&quot;,spouse_haggai_id:&quot;&quot;,seminar_intent:&quot;&quot;,seminar_want_to_participate:&quot;&quot;,seminar_church_organization:&quot;&quot;,seminar_role_ministry:&quot;&quot;,seminar_marital_status:&quot;&quot;,seminar_age:&quot;&quot;,seminar_gender:&quot;&quot;,seminar_question_or_concern:&quot;&quot;,seminar_date_naissance:&quot;&quot;,seminar_contact_urgence_nom_lien:&quot;&quot;,seminar_niveau_etudes:&quot;&quot;,seminar_domaines_etude:&quot;&quot;,seminar_domaine_etude_autre:&quot;&quot;,seminar_niveau_francais:&quot;&quot;,seminar_besoin_lettre_absence:&quot;&quot;,seminar_besoin_lettre_details:&quot;&quot;,seminar_sante_details:&quot;&quot;,seminar_regime_sans_sel:&quot;&quot;,seminar_confession_religieuse:&quot;&quot;,seminar_confession_religieuse_autre:&quot;&quot;,seminar_fardeau_transformation:&quot;&quot;,seminar_recommande_par:&quot;&quot;,seminar_engagements:&quot;&quot;,seminar_engagements_autre:&quot;&quot;});O.useEffect(()=&gt;{if(e){const g=e,y=g.seminar_date_naissance,v=y&amp;&amp;typeof y==&quot;string&quot;&amp;&amp;y.includes(&quot;T&quot;)?y.split(&quot;T&quot;)[0]:y?String(y).slice(0,10):&quot;&quot;,_=g.seminar_domaines_etude,S=g.seminar_engagements;a({first_name:e.first_name||&quot;&quot;,last_name:e.last_name||&quot;&quot;,email:e.email||&quot;&quot;,phone:e.phone||&quot;&quot;,country:e.country||&quot;&quot;,city:e.city||&quot;&quot;,organization:e.organization||&quot;&quot;,position:e.position||&quot;&quot;,nationality:e.nationality||&quot;&quot;,is_haggai_leader:e.is_haggai_leader||!1,haggai_id:typeof g.haggai_id==&quot;string&quot;?g.haggai_id:&quot;&quot;,payment_method_selected:e.payment_method_selected||&quot;&quot;,currency_selected:e.currency_selected||&quot;&quot;,amount_due_xof:e.amount_due_xof?.toString()||&quot;&quot;,amount_due_eur:e.amount_due_eur?.toString()||&quot;&quot;,pricing_plan_id:(typeof g.pricing_plan_id==&quot;number&quot;?String(g.pricing_plan_id):&quot;&quot;)||(e.pricing_plan?.id!=null?String(e.pricing_plan.id):&quot;&quot;),ouaga_resident_confirmed:e.ouaga_resident_confirmed||!1,spouse_fullname:e.spouse_fullname||&quot;&quot;,spouse_email:typeof g.spouse_email==&quot;string&quot;?g.spouse_email:&quot;&quot;,spouse_haggai_id:typeof g.spouse_haggai_id==&quot;string&quot;?g.spouse_haggai_id:&quot;&quot;,seminar_intent:e.seminar_intent||&quot;&quot;,seminar_want_to_participate:typeof g.seminar_want_to_participate==&quot;string&quot;?g.seminar_want_to_participate:&quot;&quot;,seminar_church_organization:typeof g.seminar_church_organization==&quot;string&quot;?g.seminar_church_organization:&quot;&quot;,seminar_role_ministry:typeof g.seminar_role_ministry==&quot;string&quot;?g.seminar_role_ministry:&quot;&quot;,seminar_marital_status:typeof g.seminar_marital_status==&quot;string&quot;?g.seminar_marital_status:&quot;&quot;,seminar_age:g.seminar_age!=null?String(g.seminar_age):&quot;&quot;,seminar_gender:typeof g.seminar_gender==&quot;string&quot;?g.seminar_gender:&quot;&quot;,seminar_question_or_concern:e.seminar_question_or_concern||&quot;&quot;,seminar_date_naissance:v,seminar_contact_urgence_nom_lien:typeof g.seminar_contact_urgence_nom_lien==&quot;string&quot;?g.seminar_contact_urgence_nom_lien:&quot;&quot;,seminar_niveau_etudes:typeof g.seminar_niveau_etudes==&quot;string&quot;?g.seminar_niveau_etudes:&quot;&quot;,seminar_domaines_etude:Array.isArray(_)?_.join(&quot;, &quot;):&quot;&quot;,seminar_domaine_etude_autre:typeof g.seminar_domaine_etude_autre==&quot;string&quot;?g.seminar_domaine_etude_autre:&quot;&quot;,seminar_niveau_francais:typeof g.seminar_niveau_francais==&quot;string&quot;?g.seminar_niveau_francais:&quot;&quot;,seminar_besoin_lettre_absence:typeof g.seminar_besoin_lettre_absence==&quot;string&quot;?g.seminar_besoin_lettre_absence:&quot;&quot;,seminar_besoin_lettre_details:typeof g.seminar_besoin_lettre_details==&quot;string&quot;?g.seminar_besoin_lettre_details:&quot;&quot;,seminar_sante_details:typeof g.seminar_sante_details==&quot;string&quot;?g.seminar_sante_details:&quot;&quot;,seminar_regime_sans_sel:typeof g.seminar_regime_sans_sel==&quot;string&quot;?g.seminar_regime_sans_sel:&quot;&quot;,seminar_confession_religieuse:typeof g.seminar_confession_religieuse==&quot;string&quot;?g.seminar_confession_religieuse:&quot;&quot;,seminar_confession_religieuse_autre:typeof g.seminar_confession_religieuse_autre==&quot;string&quot;?g.seminar_confession_religieuse_autre:&quot;&quot;,seminar_fardeau_transformation:typeof g.seminar_fardeau_transformation==&quot;string&quot;?g.seminar_fardeau_transformation:&quot;&quot;,seminar_recommande_par:typeof g.seminar_recommande_par==&quot;string&quot;?g.seminar_recommande_par:&quot;&quot;,seminar_engagements:Array.isArray(S)?S.join(&quot;, &quot;):&quot;&quot;,seminar_engagements_autre:typeof g.seminar_engagements_autre==&quot;string&quot;?g.seminar_engagements_autre:&quot;&quot;}),u(null)}},[e,r]);const d=e?.event?.event_type===&quot;summit&quot;,f=e?.event?.event_type===&quot;seminar&quot;,h=e?.status===&quot;correction&quot;,m=e?.event?.slug??null,{plans:p}=m2(d&amp;&amp;h?m:null),x=async g=&gt;{if(g.preventDefault(),!!e){s(!0),u(null);try{const y={first_name:c.first_name.trim(),last_name:c.last_name.trim(),email:c.email.trim().toLowerCase(),phone:c.phone.trim(),country:c.country.trim(),city:c.city.trim()||void 0,organization:c.organization.trim()||void 0,position:c.position.trim()||void 0,nationality:c.nationality.trim()||void 0,is_haggai_leader:c.is_haggai_leader,haggai_id:c.haggai_id.trim()||void 0,payment_method_selected:c.payment_method_selected||void 0};h&amp;&amp;(c.pricing_plan_id&amp;&amp;(y.pricing_plan_id=Number(c.pricing_plan_id)),y.currency_selected=c.currency_selected||void 0,y.amount_due_xof=c.amount_due_xof?parseFloat(c.amount_due_xof):void 0,y.amount_due_eur=c.amount_due_eur?parseFloat(c.amount_due_eur):void 0),d&amp;&amp;(y.ouaga_resident_confirmed=c.ouaga_resident_confirmed,y.spouse_fullname=c.spouse_fullname.trim()||void 0,y.spouse_email=c.spouse_email.trim()||void 0,y.spouse_haggai_id=c.spouse_haggai_id.trim()||void 0),f&amp;&amp;(y.seminar_intent=c.seminar_intent||void 0,y.seminar_want_to_participate=c.seminar_want_to_participate||void 0,y.seminar_church_organization=c.seminar_church_organization.trim()||void 0,y.seminar_role_ministry=c.seminar_role_ministry.trim()||void 0,y.seminar_marital_status=c.seminar_marital_status||void 0,y.seminar_age=c.seminar_age?parseInt(c.seminar_age):void 0,y.seminar_gender=c.seminar_gender||void 0,y.seminar_question_or_concern=c.seminar_question_or_concern.trim()||void 0,y.seminar_date_naissance=c.seminar_date_naissance?.trim()||void 0,y.seminar_contact_urgence_nom_lien=c.seminar_contact_urgence_nom_lien.trim()||void 0,y.seminar_niveau_etudes=c.seminar_niveau_etudes||void 0,y.seminar_domaines_etude=c.seminar_domaines_etude?.trim()?c.seminar_domaines_etude.split(&quot;,&quot;).map(v=&gt;v.trim()).filter(Boolean):void 0,y.seminar_domaine_etude_autre=c.seminar_domaine_etude_autre.trim()||void 0,y.seminar_niveau_francais=c.seminar_niveau_francais||void 0,y.seminar_besoin_lettre_absence=c.seminar_besoin_lettre_absence||void 0,y.seminar_besoin_lettre_details=c.seminar_besoin_lettre_details.trim()||void 0,y.seminar_sante_details=c.seminar_sante_details.trim()||void 0,y.seminar_regime_sans_sel=c.seminar_regime_sans_sel||void 0,y.seminar_confession_religieuse=c.seminar_confession_religieuse||void 0,y.seminar_confession_religieuse_autre=c.seminar_confession_religieuse===&quot;autre&quot;?c.seminar_confession_religieuse_autre.trim()||void 0:null,y.seminar_fardeau_transformation=c.seminar_fardeau_transformation.trim()||void 0,y.seminar_recommande_par=c.seminar_recommande_par.trim()||void 0,y.seminar_engagements=c.seminar_engagements?.trim()?c.seminar_engagements.split(&quot;,&quot;).map(v=&gt;v.trim()).filter(Boolean):void 0,y.seminar_engagements_autre=c.seminar_engagements_autre.trim()||void 0),await ns.update(e.id,y),n(),t()}catch(y){if(y instanceof kt)if(y.status===422&amp;&amp;y.data.errors){const v=Object.values(y.data.errors).flat();u(v.join(&quot;, &quot;))}else y.status===403?u(&quot;Vous n&#039;avez pas la permission de modifier cette inscription&quot;):u(y.data.message||&quot;Une erreur est survenue&quot;);else u(&quot;Une erreur inattendue est survenue&quot;)}finally{s(!1)}}};return!r||!e?null:i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:t}),i.jsx(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-4xl sm:w-full max-h-[90vh] overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsxs(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:[&quot;Modifier l&#039;inscription #&quot;,e.id]}),i.jsx(&quot;button&quot;,{onClick:t,className:&quot;text-gray-400 hover:text-gray-600 transition-colors&quot;,children:i.jsx(gr,{size:24})})]}),i.jsxs(&quot;form&quot;,{onSubmit:x,className:&quot;space-y-6&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900 mb-3&quot;,children:&quot;Informations personnelles&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:[&quot;Prénom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.first_name,onChange:g=&gt;a({...c,first_name:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,required:!0})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:[&quot;Nom &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.last_name,onChange:g=&gt;a({...c,last_name:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,required:!0})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:[&quot;Email &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:c.email,onChange:g=&gt;a({...c,email:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,required:!0})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Téléphone&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.phone,onChange:g=&gt;a({...c,phone:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Pays&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.country,onChange:g=&gt;a({...c,country:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Ville&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.city,onChange:g=&gt;a({...c,city:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Organisation&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.organization,onChange:g=&gt;a({...c,organization:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Poste&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.position,onChange:g=&gt;a({...c,position:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Nationalité&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.nationality,onChange:g=&gt;a({...c,nationality:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 mt-6&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:c.is_haggai_leader,onChange:g=&gt;a({...c,is_haggai_leader:g.target.checked}),className:&quot;rounded&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Leader Haggai&quot;})]}),c.is_haggai_leader&amp;&amp;i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.haggai_id,onChange:g=&gt;a({...c,haggai_id:g.target.value}),placeholder:&quot;Haggai ID ou Année de HLE&quot;,className:&quot;w-full mt-2 px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900 mb-3&quot;,children:&quot;Informations paiement&quot;}),!h&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-3&quot;,children:&quot;La formule, la devise et le montant ne peuvent être modifiés que lorsque le dossier est en statut « Dossier en correction ».&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[d&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Formule (solo/couple)&quot;}),i.jsxs(&quot;select&quot;,{value:c.pricing_plan_id,onChange:g=&gt;a({...c,pricing_plan_id:g.target.value}),disabled:!h,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent disabled:bg-gray-100 disabled:cursor-not-allowed&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),p.map(g=&gt;i.jsxs(&quot;option&quot;,{value:g.id,children:[g.code,&quot; - &quot;,g.title,&quot; (&quot;,g.price_xof,&quot; XOF / &quot;,g.price_eur,&quot; EUR)&quot;]},g.id))]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Méthode de paiement&quot;}),i.jsxs(&quot;select&quot;,{value:c.payment_method_selected,onChange:g=&gt;a({...c,payment_method_selected:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;card_visa&quot;,children:&quot;Carte de crédit (Visa)&quot;}),i.jsx(&quot;option&quot;,{value:&quot;paypal&quot;,children:&quot;PayPal&quot;}),i.jsx(&quot;option&quot;,{value:&quot;mobile_money&quot;,children:&quot;Mobile Money (en ligne ou en direct)&quot;}),i.jsx(&quot;option&quot;,{value:&quot;national_office&quot;,children:&quot;Envoi d&#039;argent (RIA, Western ou MoneyGram)&quot;}),i.jsx(&quot;option&quot;,{value:&quot;bank_transfer&quot;,children:&quot;Virement bancaire&quot;})]}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-xs text-ink-500 leading-relaxed&quot;,children:wv})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Devise&quot;}),i.jsxs(&quot;select&quot;,{value:c.currency_selected,onChange:g=&gt;a({...c,currency_selected:g.target.value}),disabled:!h,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent disabled:bg-gray-100 disabled:cursor-not-allowed&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;XOF&quot;,children:&quot;XOF&quot;}),i.jsx(&quot;option&quot;,{value:&quot;EUR&quot;,children:&quot;EUR&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Montant dû (XOF)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,step:&quot;0.01&quot;,value:c.amount_due_xof,onChange:g=&gt;a({...c,amount_due_xof:g.target.value}),disabled:!h,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent disabled:bg-gray-100 disabled:cursor-not-allowed&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Montant dû (EUR)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,step:&quot;0.01&quot;,value:c.amount_due_eur,onChange:g=&gt;a({...c,amount_due_eur:g.target.value}),disabled:!h,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent disabled:bg-gray-100 disabled:cursor-not-allowed&quot;})]})]})]}),d&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900 mb-3&quot;,children:&quot;Informations Sommet&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsx(&quot;div&quot;,{children:i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:c.ouaga_resident_confirmed,onChange:g=&gt;a({...c,ouaga_resident_confirmed:g.target.checked}),className:&quot;rounded&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm font-medium text-ink-500&quot;,children:&quot;Résident à Ouaga&quot;})]})}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Nom du conjoint / de la conjointe&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.spouse_fullname,onChange:g=&gt;a({...c,spouse_fullname:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Email du conjoint / de la conjointe&quot;}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:c.spouse_email,onChange:g=&gt;a({...c,spouse_email:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Haggai ID / Année de HLE (conjoint / conjointe)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.spouse_haggai_id,onChange:g=&gt;a({...c,spouse_haggai_id:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]})]})]}),f&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-semibold text-ink-900 mb-3&quot;,children:&quot;Informations Séminaire&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 md:grid-cols-2 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Veut participer&quot;}),i.jsxs(&quot;select&quot;,{value:c.seminar_want_to_participate,onChange:g=&gt;a({...c,seminar_want_to_participate:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;oui&quot;,children:&quot;Oui&quot;}),i.jsx(&quot;option&quot;,{value:&quot;non&quot;,children:&quot;Non&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Église/Organisation&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_church_organization,onChange:g=&gt;a({...c,seminar_church_organization:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Rôle/Ministère&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_role_ministry,onChange:g=&gt;a({...c,seminar_role_ministry:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Situation matrimoniale&quot;}),i.jsxs(&quot;select&quot;,{value:c.seminar_marital_status,onChange:g=&gt;a({...c,seminar_marital_status:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;marie&quot;,children:&quot;Marié(e)&quot;}),i.jsx(&quot;option&quot;,{value:&quot;non_marie&quot;,children:&quot;Non marié(e)&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Âge&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:&quot;1&quot;,max:&quot;120&quot;,value:c.seminar_age,onChange:g=&gt;a({...c,seminar_age:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Genre&quot;}),i.jsxs(&quot;select&quot;,{value:c.seminar_gender,onChange:g=&gt;a({...c,seminar_gender:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;homme&quot;,children:&quot;Homme&quot;}),i.jsx(&quot;option&quot;,{value:&quot;femme&quot;,children:&quot;Femme&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Question ou préoccupation&quot;}),i.jsx(&quot;textarea&quot;,{value:c.seminar_question_or_concern,onChange:g=&gt;a({...c,seminar_question_or_concern:g.target.value}),rows:3,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Date de naissance&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:c.seminar_date_naissance,onChange:g=&gt;a({...c,seminar_date_naissance:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Contact d&#039;urgence (nom et lien)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_contact_urgence_nom_lien,onChange:g=&gt;a({...c,seminar_contact_urgence_nom_lien:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Niveau d&#039;études&quot;}),i.jsxs(&quot;select&quot;,{value:c.seminar_niveau_etudes,onChange:g=&gt;a({...c,seminar_niveau_etudes:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;primaire&quot;,children:&quot;Primaire&quot;}),i.jsx(&quot;option&quot;,{value:&quot;secondaire_2&quot;,children:&quot;Secondaire 2e cycle&quot;}),i.jsx(&quot;option&quot;,{value:&quot;universitaire&quot;,children:&quot;Universitaire&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Domaines d&#039;étude (séparés par des virgules)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_domaines_etude,onChange:g=&gt;a({...c,seminar_domaines_etude:g.target.value}),placeholder:&quot;ex. Théologie, Éducation&quot;,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Domaine d&#039;étude (autre)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_domaine_etude_autre,onChange:g=&gt;a({...c,seminar_domaine_etude_autre:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Niveau de français&quot;}),i.jsxs(&quot;select&quot;,{value:c.seminar_niveau_francais,onChange:g=&gt;a({...c,seminar_niveau_francais:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;natif&quot;,children:&quot;Natif&quot;}),i.jsx(&quot;option&quot;,{value:&quot;avance&quot;,children:&quot;Avancé&quot;}),i.jsx(&quot;option&quot;,{value:&quot;intermediaire&quot;,children:&quot;Intermédiaire&quot;}),i.jsx(&quot;option&quot;,{value:&quot;faible&quot;,children:&quot;Faible&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Besoin lettre d&#039;absence&quot;}),i.jsxs(&quot;select&quot;,{value:c.seminar_besoin_lettre_absence,onChange:g=&gt;a({...c,seminar_besoin_lettre_absence:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;oui&quot;,children:&quot;Oui&quot;}),i.jsx(&quot;option&quot;,{value:&quot;non&quot;,children:&quot;Non&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Détails lettre d&#039;absence&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_besoin_lettre_details,onChange:g=&gt;a({...c,seminar_besoin_lettre_details:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Informations santé&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_sante_details,onChange:g=&gt;a({...c,seminar_sante_details:g.target.value}),placeholder:&quot;Indiquez « Aucun » si applicable&quot;,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Régime sans sel&quot;}),i.jsxs(&quot;select&quot;,{value:c.seminar_regime_sans_sel,onChange:g=&gt;a({...c,seminar_regime_sans_sel:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;oui&quot;,children:&quot;Oui&quot;}),i.jsx(&quot;option&quot;,{value:&quot;non&quot;,children:&quot;Non&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Confession religieuse&quot;}),i.jsxs(&quot;select&quot;,{value:c.seminar_confession_religieuse,onChange:g=&gt;{const y=g.target.value;a({...c,seminar_confession_religieuse:y,seminar_confession_religieuse_autre:y===&quot;autre&quot;?c.seminar_confession_religieuse_autre:&quot;&quot;})},className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Sélectionner...&quot;}),i.jsx(&quot;option&quot;,{value:&quot;musulmane&quot;,children:&quot;Musulmane&quot;}),i.jsx(&quot;option&quot;,{value:&quot;catholique&quot;,children:&quot;Catholique&quot;}),i.jsx(&quot;option&quot;,{value:&quot;protestante&quot;,children:&quot;Protestante&quot;}),i.jsx(&quot;option&quot;,{value:&quot;pentecotiste&quot;,children:&quot;Pentecôtiste&quot;}),i.jsx(&quot;option&quot;,{value:&quot;evangelique&quot;,children:&quot;Évangélique&quot;}),i.jsx(&quot;option&quot;,{value:&quot;autre&quot;,children:&quot;Autre&quot;})]})]}),c.seminar_confession_religieuse===&quot;autre&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Spécifiez :&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_confession_religieuse_autre,onChange:g=&gt;a({...c,seminar_confession_religieuse_autre:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;md:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Attentes&quot;}),i.jsx(&quot;textarea&quot;,{value:c.seminar_fardeau_transformation,onChange:g=&gt;a({...c,seminar_fardeau_transformation:g.target.value}),rows:2,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Recommandé par&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_recommande_par,onChange:g=&gt;a({...c,seminar_recommande_par:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Engagements (séparés par des virgules)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_engagements,onChange:g=&gt;a({...c,seminar_engagements:g.target.value}),placeholder:&quot;ex. Église locale, Évangélisation&quot;,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Engagements (autre)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.seminar_engagements_autre,onChange:g=&gt;a({...c,seminar_engagements_autre:g.target.value}),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]})]})]}),l&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:l})}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-end gap-3 pt-4 border-t&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,onClick:t,disabled:o,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:o,children:o?&quot;Enregistrement...&quot;:&quot;Enregistrer&quot;})]})]})]})})]})})}function tU({registration:e,isOpen:r,onClose:t,onSuccess:n}){const[o,s]=O.useState(!1),[l,u]=O.useState(null),c=async()=&gt;{if(e){s(!0),u(null);try{await ns.delete(e.id),n(),t()}catch(a){a instanceof kt?a.status===403?u(&quot;Vous n&#039;avez pas la permission de supprimer cette inscription&quot;):u(a.data.message||&quot;Une erreur est survenue lors de la suppression&quot;):u(&quot;Une erreur inattendue est survenue&quot;)}finally{s(!1)}}};return!r||!e?null:i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:t}),i.jsx(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:&quot;Supprimer l&#039;inscription&quot;}),i.jsx(&quot;button&quot;,{onClick:t,className:&quot;text-gray-400 hover:text-gray-600 transition-colors&quot;,children:i.jsx(gr,{size:24})})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-start gap-4 mb-6&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex-shrink-0&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;flex items-center justify-center w-12 h-12 rounded-full bg-red-100&quot;,children:i.jsx(LB,{className:&quot;w-6 h-6 text-red-600&quot;})})}),i.jsxs(&quot;div&quot;,{className:&quot;flex-1&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-lg font-medium text-ink-900 mb-2&quot;,children:&quot;Êtes-vous sûr de vouloir supprimer cette inscription ?&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-2&quot;,children:[&quot;Cette action est irréversible. L&#039;inscription #&quot;,e.id,&quot; de&quot;,&quot; &quot;,i.jsxs(&quot;strong&quot;,{children:[e.first_name,&quot; &quot;,e.last_name]}),&quot; sera définitivement supprimée.&quot;]}),e.event&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:[&quot;Événement: &quot;,i.jsx(&quot;strong&quot;,{children:e.event.name})]})]})]}),l&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-3 mb-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:l})}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-end gap-3 pt-4 border-t&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,onClick:t,disabled:o,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:c,disabled:o,className:&quot;bg-red-600 hover:bg-red-700 text-white&quot;,children:o?&quot;Suppression...&quot;:&quot;Supprimer&quot;})]})]})})]})})}const rU=[{value:&quot;pending&quot;,label:&quot;En attente&quot;},{value:&quot;contacted&quot;,label:&quot;Contacté&quot;},{value:&quot;accepted&quot;,label:&quot;Accepté&quot;},{value:&quot;rejected&quot;,label:&quot;Rejeté&quot;}];function nU({recommendation:e,isOpen:r,onClose:t,onSuccess:n}){const[o,s]=O.useState(&quot;pending&quot;),[l,u]=O.useState(&quot;&quot;),[c,a]=O.useState(&quot;&quot;),[d,f]=O.useState(&quot;&quot;),[h,m]=O.useState(!1),[p,x]=O.useState(!1),[g,y]=O.useState(&quot;status&quot;),[v,_]=O.useState(!1),[S,A]=O.useState(null),[I,V]=O.useState(null);O.useEffect(()=&gt;{e&amp;&amp;(s(e.status),u(e.notes||&quot;&quot;),a(&quot;&quot;),f(&quot;&quot;),m(!1),x(!1),A(null),V(null),y(&quot;status&quot;))},[e,r]);const F=async H=&gt;{if(H.preventDefault(),!!e){_(!0),A(null),V(null);try{await Kd.updateStatus(e.id,{status:o,notes:l.trim()||void 0}),V(&quot;Statut mis à jour avec succès&quot;),setTimeout(()=&gt;{n(),t()},1e3)}catch(B){if(B instanceof kt)if(B.status===422&amp;&amp;B.data.errors){const K=B.data.errors.status?.[0];A(K||B.data.message||&quot;Erreur de validation&quot;)}else B.status===403?A(&quot;Vous n&#039;avez pas la permission de modifier le statut&quot;):A(B.data.message||&quot;Une erreur est survenue&quot;);else A(&quot;Une erreur inattendue est survenue&quot;)}finally{_(!1)}}},q=async H=&gt;{if(H.preventDefault(),!!e){if(!h&amp;&amp;!p){A(&quot;Veuillez sélectionner au moins un destinataire&quot;);return}_(!0),A(null),V(null);try{const B=await Kd.sendEmail(e.id,{subject:c.trim(),message:d.trim(),send_to_recommender:h,send_to_recommended:p});V(`Email(s) envoyé(s) à: ${B.data.emails_sent.join(&quot;, &quot;)}`),setTimeout(()=&gt;{n(),t()},2e3)}catch(B){if(B instanceof kt)if(B.status===422&amp;&amp;B.data.errors){const K=B.data.errors.subject?.[0],T=B.data.errors.message?.[0];A(K||T||B.data.message||&quot;Erreur de validation&quot;)}else A(B.data.message||&quot;Une erreur est survenue lors de l&#039;envoi de l&#039;email&quot;);else A(&quot;Une erreur inattendue est survenue&quot;)}finally{_(!1)}}};return!r||!e?null:i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:t}),i.jsx(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl sm:w-full&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsxs(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:[&quot;Traiter la recommandation #&quot;,e.id]}),i.jsx(&quot;button&quot;,{onClick:t,className:&quot;text-gray-400 hover:text-gray-600 transition-colors&quot;,children:i.jsx(gr,{size:24})})]}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-brand-50 rounded-lg&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-2&quot;,children:[i.jsx(&quot;strong&quot;,{children:&quot;Recommandé:&quot;}),&quot; &quot;,e.recommended_full_name]}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-2&quot;,children:[i.jsx(&quot;strong&quot;,{children:&quot;Email recommandé:&quot;}),&quot; &quot;,e.recommended_email||&quot;-&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:[i.jsx(&quot;strong&quot;,{children:&quot;Recommandeur:&quot;}),&quot; &quot;,e.recommender_first_name,&quot; &quot;,e.recommender_last_name,&quot; (&quot;,e.recommender_email,&quot;)&quot;]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex border-b border-gray-200 mb-4&quot;,children:[i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;y(&quot;status&quot;),className:`px-4 py-2 text-sm font-medium ${g===&quot;status&quot;?&quot;text-ink-900 border-b-2 border-brand-700&quot;:&quot;text-ink-500 hover:text-ink-900&quot;}`,children:&quot;Mettre à jour le statut&quot;}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;y(&quot;email&quot;),className:`px-4 py-2 text-sm font-medium flex items-center gap-2 ${g===&quot;email&quot;?&quot;text-ink-900 border-b-2 border-brand-700&quot;:&quot;text-ink-500 hover:text-ink-900&quot;}`,children:[i.jsx(Aa,{size:16}),&quot;Envoyer un email&quot;]})]}),S&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-800&quot;,children:S})}),I&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-green-50 border border-green-200 rounded-lg&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-green-800&quot;,children:I})}),g===&quot;status&quot;&amp;&amp;i.jsxs(&quot;form&quot;,{onSubmit:F,className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:[&quot;Nouveau statut &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;select&quot;,{value:o,onChange:H=&gt;s(H.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;,required:!0,children:rU.map(H=&gt;i.jsx(&quot;option&quot;,{value:H.value,children:H.label},H.value))})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Notes (optionnel)&quot;}),i.jsx(&quot;textarea&quot;,{value:l,onChange:H=&gt;u(H.target.value),rows:4,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;,placeholder:&quot;Ajouter des notes sur cette recommandation...&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-end gap-3 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:t,disabled:v,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,disabled:v,children:v?&quot;Mise à jour...&quot;:&quot;Mettre à jour le statut&quot;})]})]}),g===&quot;email&quot;&amp;&amp;i.jsxs(&quot;form&quot;,{onSubmit:q,className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:[&quot;Destinataires &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[e.recommended_email?i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:p,onChange:H=&gt;x(H.target.checked),className:&quot;rounded border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsxs(&quot;span&quot;,{className:&quot;text-sm text-ink-500&quot;,children:[&quot;Recommandé (&quot;,e.recommended_email,&quot;)&quot;]})]}):i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 italic&quot;,children:&quot;Aucun email disponible pour le recommandé&quot;}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center space-x-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:h,onChange:H=&gt;m(H.target.checked),className:&quot;rounded border-gray-300 text-brand-700 focus:ring-brand-600&quot;}),i.jsxs(&quot;span&quot;,{className:&quot;text-sm text-ink-500&quot;,children:[&quot;Recommandeur (&quot;,e.recommender_email,&quot;)&quot;]})]})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:[&quot;Sujet &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c,onChange:H=&gt;a(H.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;,placeholder:&quot;Sujet de l&#039;email&quot;,required:!0})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:[&quot;Message &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;textarea&quot;,{value:d,onChange:H=&gt;f(H.target.value),rows:6,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-xl focus:outline-none focus:ring-2 focus:ring-brand-600&quot;,placeholder:&quot;Votre message...&quot;,required:!0}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:&quot;Le message sera envoyé avec les informations de la recommandation.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-end gap-3 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:t,disabled:v,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,disabled:v||!h&amp;&amp;!p,children:v?&quot;Envoi...&quot;:&quot;Envoyer l&#039;email&quot;})]})]})]})})]})})}function M7(e){var r,t,n=&quot;&quot;;if(typeof e==&quot;string&quot;||typeof e==&quot;number&quot;)n+=e;else if(typeof e==&quot;object&quot;)if(Array.isArray(e)){var o=e.length;for(r=0;r&lt;o;r++)e[r]&amp;&amp;(t=M7(e[r]))&amp;&amp;(n&amp;&amp;(n+=&quot; &quot;),n+=t)}else for(t in e)e[t]&amp;&amp;(n&amp;&amp;(n+=&quot; &quot;),n+=t);return n}function br(){for(var e,r,t=0,n=&quot;&quot;,o=arguments.length;t&lt;o;t++)(e=arguments[t])&amp;&amp;(r=M7(e))&amp;&amp;(n&amp;&amp;(n+=&quot; &quot;),n+=r);return n}var iU=[&quot;dangerouslySetInnerHTML&quot;,&quot;onCopy&quot;,&quot;onCopyCapture&quot;,&quot;onCut&quot;,&quot;onCutCapture&quot;,&quot;onPaste&quot;,&quot;onPasteCapture&quot;,&quot;onCompositionEnd&quot;,&quot;onCompositionEndCapture&quot;,&quot;onCompositionStart&quot;,&quot;onCompositionStartCapture&quot;,&quot;onCompositionUpdate&quot;,&quot;onCompositionUpdateCapture&quot;,&quot;onFocus&quot;,&quot;onFocusCapture&quot;,&quot;onBlur&quot;,&quot;onBlurCapture&quot;,&quot;onChange&quot;,&quot;onChangeCapture&quot;,&quot;onBeforeInput&quot;,&quot;onBeforeInputCapture&quot;,&quot;onInput&quot;,&quot;onInputCapture&quot;,&quot;onReset&quot;,&quot;onResetCapture&quot;,&quot;onSubmit&quot;,&quot;onSubmitCapture&quot;,&quot;onInvalid&quot;,&quot;onInvalidCapture&quot;,&quot;onLoad&quot;,&quot;onLoadCapture&quot;,&quot;onError&quot;,&quot;onErrorCapture&quot;,&quot;onKeyDown&quot;,&quot;onKeyDownCapture&quot;,&quot;onKeyPress&quot;,&quot;onKeyPressCapture&quot;,&quot;onKeyUp&quot;,&quot;onKeyUpCapture&quot;,&quot;onAbort&quot;,&quot;onAbortCapture&quot;,&quot;onCanPlay&quot;,&quot;onCanPlayCapture&quot;,&quot;onCanPlayThrough&quot;,&quot;onCanPlayThroughCapture&quot;,&quot;onDurationChange&quot;,&quot;onDurationChangeCapture&quot;,&quot;onEmptied&quot;,&quot;onEmptiedCapture&quot;,&quot;onEncrypted&quot;,&quot;onEncryptedCapture&quot;,&quot;onEnded&quot;,&quot;onEndedCapture&quot;,&quot;onLoadedData&quot;,&quot;onLoadedDataCapture&quot;,&quot;onLoadedMetadata&quot;,&quot;onLoadedMetadataCapture&quot;,&quot;onLoadStart&quot;,&quot;onLoadStartCapture&quot;,&quot;onPause&quot;,&quot;onPauseCapture&quot;,&quot;onPlay&quot;,&quot;onPlayCapture&quot;,&quot;onPlaying&quot;,&quot;onPlayingCapture&quot;,&quot;onProgress&quot;,&quot;onProgressCapture&quot;,&quot;onRateChange&quot;,&quot;onRateChangeCapture&quot;,&quot;onSeeked&quot;,&quot;onSeekedCapture&quot;,&quot;onSeeking&quot;,&quot;onSeekingCapture&quot;,&quot;onStalled&quot;,&quot;onStalledCapture&quot;,&quot;onSuspend&quot;,&quot;onSuspendCapture&quot;,&quot;onTimeUpdate&quot;,&quot;onTimeUpdateCapture&quot;,&quot;onVolumeChange&quot;,&quot;onVolumeChangeCapture&quot;,&quot;onWaiting&quot;,&quot;onWaitingCapture&quot;,&quot;onAuxClick&quot;,&quot;onAuxClickCapture&quot;,&quot;onClick&quot;,&quot;onClickCapture&quot;,&quot;onContextMenu&quot;,&quot;onContextMenuCapture&quot;,&quot;onDoubleClick&quot;,&quot;onDoubleClickCapture&quot;,&quot;onDrag&quot;,&quot;onDragCapture&quot;,&quot;onDragEnd&quot;,&quot;onDragEndCapture&quot;,&quot;onDragEnter&quot;,&quot;onDragEnterCapture&quot;,&quot;onDragExit&quot;,&quot;onDragExitCapture&quot;,&quot;onDragLeave&quot;,&quot;onDragLeaveCapture&quot;,&quot;onDragOver&quot;,&quot;onDragOverCapture&quot;,&quot;onDragStart&quot;,&quot;onDragStartCapture&quot;,&quot;onDrop&quot;,&quot;onDropCapture&quot;,&quot;onMouseDown&quot;,&quot;onMouseDownCapture&quot;,&quot;onMouseEnter&quot;,&quot;onMouseLeave&quot;,&quot;onMouseMove&quot;,&quot;onMouseMoveCapture&quot;,&quot;onMouseOut&quot;,&quot;onMouseOutCapture&quot;,&quot;onMouseOver&quot;,&quot;onMouseOverCapture&quot;,&quot;onMouseUp&quot;,&quot;onMouseUpCapture&quot;,&quot;onSelect&quot;,&quot;onSelectCapture&quot;,&quot;onTouchCancel&quot;,&quot;onTouchCancelCapture&quot;,&quot;onTouchEnd&quot;,&quot;onTouchEndCapture&quot;,&quot;onTouchMove&quot;,&quot;onTouchMoveCapture&quot;,&quot;onTouchStart&quot;,&quot;onTouchStartCapture&quot;,&quot;onPointerDown&quot;,&quot;onPointerDownCapture&quot;,&quot;onPointerMove&quot;,&quot;onPointerMoveCapture&quot;,&quot;onPointerUp&quot;,&quot;onPointerUpCapture&quot;,&quot;onPointerCancel&quot;,&quot;onPointerCancelCapture&quot;,&quot;onPointerEnter&quot;,&quot;onPointerEnterCapture&quot;,&quot;onPointerLeave&quot;,&quot;onPointerLeaveCapture&quot;,&quot;onPointerOver&quot;,&quot;onPointerOverCapture&quot;,&quot;onPointerOut&quot;,&quot;onPointerOutCapture&quot;,&quot;onGotPointerCapture&quot;,&quot;onGotPointerCaptureCapture&quot;,&quot;onLostPointerCapture&quot;,&quot;onLostPointerCaptureCapture&quot;,&quot;onScroll&quot;,&quot;onScrollCapture&quot;,&quot;onWheel&quot;,&quot;onWheelCapture&quot;,&quot;onAnimationStart&quot;,&quot;onAnimationStartCapture&quot;,&quot;onAnimationEnd&quot;,&quot;onAnimationEndCapture&quot;,&quot;onAnimationIteration&quot;,&quot;onAnimationIterationCapture&quot;,&quot;onTransitionEnd&quot;,&quot;onTransitionEndCapture&quot;];function S2(e){if(typeof e!=&quot;string&quot;)return!1;var r=iU;return r.includes(e)}var sU=[&quot;aria-activedescendant&quot;,&quot;aria-atomic&quot;,&quot;aria-autocomplete&quot;,&quot;aria-busy&quot;,&quot;aria-checked&quot;,&quot;aria-colcount&quot;,&quot;aria-colindex&quot;,&quot;aria-colspan&quot;,&quot;aria-controls&quot;,&quot;aria-current&quot;,&quot;aria-describedby&quot;,&quot;aria-details&quot;,&quot;aria-disabled&quot;,&quot;aria-errormessage&quot;,&quot;aria-expanded&quot;,&quot;aria-flowto&quot;,&quot;aria-haspopup&quot;,&quot;aria-hidden&quot;,&quot;aria-invalid&quot;,&quot;aria-keyshortcuts&quot;,&quot;aria-label&quot;,&quot;aria-labelledby&quot;,&quot;aria-level&quot;,&quot;aria-live&quot;,&quot;aria-modal&quot;,&quot;aria-multiline&quot;,&quot;aria-multiselectable&quot;,&quot;aria-orientation&quot;,&quot;aria-owns&quot;,&quot;aria-placeholder&quot;,&quot;aria-posinset&quot;,&quot;aria-pressed&quot;,&quot;aria-readonly&quot;,&quot;aria-relevant&quot;,&quot;aria-required&quot;,&quot;aria-roledescription&quot;,&quot;aria-rowcount&quot;,&quot;aria-rowindex&quot;,&quot;aria-rowspan&quot;,&quot;aria-selected&quot;,&quot;aria-setsize&quot;,&quot;aria-sort&quot;,&quot;aria-valuemax&quot;,&quot;aria-valuemin&quot;,&quot;aria-valuenow&quot;,&quot;aria-valuetext&quot;,&quot;className&quot;,&quot;color&quot;,&quot;height&quot;,&quot;id&quot;,&quot;lang&quot;,&quot;max&quot;,&quot;media&quot;,&quot;method&quot;,&quot;min&quot;,&quot;name&quot;,&quot;style&quot;,&quot;target&quot;,&quot;width&quot;,&quot;role&quot;,&quot;tabIndex&quot;,&quot;accentHeight&quot;,&quot;accumulate&quot;,&quot;additive&quot;,&quot;alignmentBaseline&quot;,&quot;allowReorder&quot;,&quot;alphabetic&quot;,&quot;amplitude&quot;,&quot;arabicForm&quot;,&quot;ascent&quot;,&quot;attributeName&quot;,&quot;attributeType&quot;,&quot;autoReverse&quot;,&quot;azimuth&quot;,&quot;baseFrequency&quot;,&quot;baselineShift&quot;,&quot;baseProfile&quot;,&quot;bbox&quot;,&quot;begin&quot;,&quot;bias&quot;,&quot;by&quot;,&quot;calcMode&quot;,&quot;capHeight&quot;,&quot;clip&quot;,&quot;clipPath&quot;,&quot;clipPathUnits&quot;,&quot;clipRule&quot;,&quot;colorInterpolation&quot;,&quot;colorInterpolationFilters&quot;,&quot;colorProfile&quot;,&quot;colorRendering&quot;,&quot;contentScriptType&quot;,&quot;contentStyleType&quot;,&quot;cursor&quot;,&quot;cx&quot;,&quot;cy&quot;,&quot;d&quot;,&quot;decelerate&quot;,&quot;descent&quot;,&quot;diffuseConstant&quot;,&quot;direction&quot;,&quot;display&quot;,&quot;divisor&quot;,&quot;dominantBaseline&quot;,&quot;dur&quot;,&quot;dx&quot;,&quot;dy&quot;,&quot;edgeMode&quot;,&quot;elevation&quot;,&quot;enableBackground&quot;,&quot;end&quot;,&quot;exponent&quot;,&quot;externalResourcesRequired&quot;,&quot;fill&quot;,&quot;fillOpacity&quot;,&quot;fillRule&quot;,&quot;filter&quot;,&quot;filterRes&quot;,&quot;filterUnits&quot;,&quot;floodColor&quot;,&quot;floodOpacity&quot;,&quot;focusable&quot;,&quot;fontFamily&quot;,&quot;fontSize&quot;,&quot;fontSizeAdjust&quot;,&quot;fontStretch&quot;,&quot;fontStyle&quot;,&quot;fontVariant&quot;,&quot;fontWeight&quot;,&quot;format&quot;,&quot;from&quot;,&quot;fx&quot;,&quot;fy&quot;,&quot;g1&quot;,&quot;g2&quot;,&quot;glyphName&quot;,&quot;glyphOrientationHorizontal&quot;,&quot;glyphOrientationVertical&quot;,&quot;glyphRef&quot;,&quot;gradientTransform&quot;,&quot;gradientUnits&quot;,&quot;hanging&quot;,&quot;horizAdvX&quot;,&quot;horizOriginX&quot;,&quot;href&quot;,&quot;ideographic&quot;,&quot;imageRendering&quot;,&quot;in2&quot;,&quot;in&quot;,&quot;intercept&quot;,&quot;k1&quot;,&quot;k2&quot;,&quot;k3&quot;,&quot;k4&quot;,&quot;k&quot;,&quot;kernelMatrix&quot;,&quot;kernelUnitLength&quot;,&quot;kerning&quot;,&quot;keyPoints&quot;,&quot;keySplines&quot;,&quot;keyTimes&quot;,&quot;lengthAdjust&quot;,&quot;letterSpacing&quot;,&quot;lightingColor&quot;,&quot;limitingConeAngle&quot;,&quot;local&quot;,&quot;markerEnd&quot;,&quot;markerHeight&quot;,&quot;markerMid&quot;,&quot;markerStart&quot;,&quot;markerUnits&quot;,&quot;markerWidth&quot;,&quot;mask&quot;,&quot;maskContentUnits&quot;,&quot;maskUnits&quot;,&quot;mathematical&quot;,&quot;mode&quot;,&quot;numOctaves&quot;,&quot;offset&quot;,&quot;opacity&quot;,&quot;operator&quot;,&quot;order&quot;,&quot;orient&quot;,&quot;orientation&quot;,&quot;origin&quot;,&quot;overflow&quot;,&quot;overlinePosition&quot;,&quot;overlineThickness&quot;,&quot;paintOrder&quot;,&quot;panose1&quot;,&quot;pathLength&quot;,&quot;patternContentUnits&quot;,&quot;patternTransform&quot;,&quot;patternUnits&quot;,&quot;pointerEvents&quot;,&quot;pointsAtX&quot;,&quot;pointsAtY&quot;,&quot;pointsAtZ&quot;,&quot;preserveAlpha&quot;,&quot;preserveAspectRatio&quot;,&quot;primitiveUnits&quot;,&quot;r&quot;,&quot;radius&quot;,&quot;refX&quot;,&quot;refY&quot;,&quot;renderingIntent&quot;,&quot;repeatCount&quot;,&quot;repeatDur&quot;,&quot;requiredExtensions&quot;,&quot;requiredFeatures&quot;,&quot;restart&quot;,&quot;result&quot;,&quot;rotate&quot;,&quot;rx&quot;,&quot;ry&quot;,&quot;seed&quot;,&quot;shapeRendering&quot;,&quot;slope&quot;,&quot;spacing&quot;,&quot;specularConstant&quot;,&quot;specularExponent&quot;,&quot;speed&quot;,&quot;spreadMethod&quot;,&quot;startOffset&quot;,&quot;stdDeviation&quot;,&quot;stemh&quot;,&quot;stemv&quot;,&quot;stitchTiles&quot;,&quot;stopColor&quot;,&quot;stopOpacity&quot;,&quot;strikethroughPosition&quot;,&quot;strikethroughThickness&quot;,&quot;string&quot;,&quot;stroke&quot;,&quot;strokeDasharray&quot;,&quot;strokeDashoffset&quot;,&quot;strokeLinecap&quot;,&quot;strokeLinejoin&quot;,&quot;strokeMiterlimit&quot;,&quot;strokeOpacity&quot;,&quot;strokeWidth&quot;,&quot;surfaceScale&quot;,&quot;systemLanguage&quot;,&quot;tableValues&quot;,&quot;targetX&quot;,&quot;targetY&quot;,&quot;textAnchor&quot;,&quot;textDecoration&quot;,&quot;textLength&quot;,&quot;textRendering&quot;,&quot;to&quot;,&quot;transform&quot;,&quot;u1&quot;,&quot;u2&quot;,&quot;underlinePosition&quot;,&quot;underlineThickness&quot;,&quot;unicode&quot;,&quot;unicodeBidi&quot;,&quot;unicodeRange&quot;,&quot;unitsPerEm&quot;,&quot;vAlphabetic&quot;,&quot;values&quot;,&quot;vectorEffect&quot;,&quot;version&quot;,&quot;vertAdvY&quot;,&quot;vertOriginX&quot;,&quot;vertOriginY&quot;,&quot;vHanging&quot;,&quot;vIdeographic&quot;,&quot;viewTarget&quot;,&quot;visibility&quot;,&quot;vMathematical&quot;,&quot;widths&quot;,&quot;wordSpacing&quot;,&quot;writingMode&quot;,&quot;x1&quot;,&quot;x2&quot;,&quot;x&quot;,&quot;xChannelSelector&quot;,&quot;xHeight&quot;,&quot;xlinkActuate&quot;,&quot;xlinkArcrole&quot;,&quot;xlinkHref&quot;,&quot;xlinkRole&quot;,&quot;xlinkShow&quot;,&quot;xlinkTitle&quot;,&quot;xlinkType&quot;,&quot;xmlBase&quot;,&quot;xmlLang&quot;,&quot;xmlns&quot;,&quot;xmlnsXlink&quot;,&quot;xmlSpace&quot;,&quot;y1&quot;,&quot;y2&quot;,&quot;y&quot;,&quot;yChannelSelector&quot;,&quot;z&quot;,&quot;zoomAndPan&quot;,&quot;ref&quot;,&quot;key&quot;,&quot;angle&quot;],aU=new Set(sU);function P7(e){return typeof e!=&quot;string&quot;?!1:aU.has(e)}function O7(e){return typeof e==&quot;string&quot;&amp;&amp;e.startsWith(&quot;data-&quot;)}function Es(e){if(typeof e!=&quot;object&quot;||e===null)return{};var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&amp;&amp;(P7(t)||O7(t))&amp;&amp;(r[t]=e[t]);return r}function bf(e){if(e==null)return null;if(O.isValidElement(e)&amp;&amp;typeof e.props==&quot;object&quot;&amp;&amp;e.props!==null){var r=e.props;return Es(r)}return typeof e==&quot;object&quot;&amp;&amp;!Array.isArray(e)?Es(e):null}function li(e){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&amp;&amp;(P7(t)||O7(t)||S2(t))&amp;&amp;(r[t]=e[t]);return r}function oU(e){return e==null?null:O.isValidElement(e)?li(e.props):typeof e==&quot;object&quot;&amp;&amp;!Array.isArray(e)?li(e):null}var lU=[&quot;children&quot;,&quot;width&quot;,&quot;height&quot;,&quot;viewBox&quot;,&quot;className&quot;,&quot;style&quot;,&quot;title&quot;,&quot;desc&quot;];function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Nv.apply(null,arguments)}function cU(e,r){if(e==null)return{};var t,n,o=uU(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function uU(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var C2=O.forwardRef((e,r)=&gt;{var{children:t,width:n,height:o,viewBox:s,className:l,style:u,title:c,desc:a}=e,d=cU(e,lU),f=s||{width:n,height:o,x:0,y:0},h=br(&quot;recharts-surface&quot;,l);return O.createElement(&quot;svg&quot;,Nv({},li(d),{className:h,width:n,height:o,style:u,viewBox:&quot;&quot;.concat(f.x,&quot; &quot;).concat(f.y,&quot; &quot;).concat(f.width,&quot; &quot;).concat(f.height),ref:r}),O.createElement(&quot;title&quot;,null,c),O.createElement(&quot;desc&quot;,null,a),t)}),dU=[&quot;children&quot;,&quot;className&quot;];function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},kv.apply(null,arguments)}function fU(e,r){if(e==null)return{};var t,n,o=hU(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function hU(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var is=O.forwardRef((e,r)=&gt;{var{children:t,className:n}=e,o=fU(e,dU),s=br(&quot;recharts-layer&quot;,n);return O.createElement(&quot;g&quot;,kv({className:s},li(o),{ref:r}),t)}),T7=O.createContext(null),mU=()=&gt;O.useContext(T7);function Sr(e){return function(){return e}}const I7=Math.cos,ep=Math.sin,Is=Math.sqrt,tp=Math.PI,a0=2*tp,Sv=Math.PI,Cv=2*Sv,kl=1e-6,pU=Cv-kl;function R7(e){this._+=e[0];for(let r=1,t=e.length;r&lt;t;++r)this._+=arguments[r]+e[r]}function gU(e){let r=Math.floor(e);if(!(r&gt;=0))throw new Error(`invalid digits: ${e}`);if(r&gt;15)return R7;const t=10**r;return function(n){this._+=n[0];for(let o=1,s=n.length;o&lt;s;++o)this._+=Math.round(arguments[o]*t)/t+n[o]}}class xU{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;,this._append=r==null?R7:gU(r)}moveTo(r,t){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,t){this._append`L${this._x1=+r},${this._y1=+t}`}quadraticCurveTo(r,t,n,o){this._append`Q${+r},${+t},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(r,t,n,o,s,l){this._append`C${+r},${+t},${+n},${+o},${this._x1=+s},${this._y1=+l}`}arcTo(r,t,n,o,s){if(r=+r,t=+t,n=+n,o=+o,s=+s,s&lt;0)throw new Error(`negative radius: ${s}`);let l=this._x1,u=this._y1,c=n-r,a=o-t,d=l-r,f=u-t,h=d*d+f*f;if(this._x1===null)this._append`M${this._x1=r},${this._y1=t}`;else if(h&gt;kl)if(!(Math.abs(f*c-a*d)&gt;kl)||!s)this._append`L${this._x1=r},${this._y1=t}`;else{let m=n-l,p=o-u,x=c*c+a*a,g=m*m+p*p,y=Math.sqrt(x),v=Math.sqrt(h),_=s*Math.tan((Sv-Math.acos((x+h-g)/(2*y*v)))/2),S=_/v,A=_/y;Math.abs(S-1)&gt;kl&amp;&amp;this._append`L${r+S*d},${t+S*f}`,this._append`A${s},${s},0,0,${+(f*m&gt;d*p)},${this._x1=r+A*c},${this._y1=t+A*a}`}}arc(r,t,n,o,s,l){if(r=+r,t=+t,n=+n,l=!!l,n&lt;0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(o),c=n*Math.sin(o),a=r+u,d=t+c,f=1^l,h=l?o-s:s-o;this._x1===null?this._append`M${a},${d}`:(Math.abs(this._x1-a)&gt;kl||Math.abs(this._y1-d)&gt;kl)&amp;&amp;this._append`L${a},${d}`,n&amp;&amp;(h&lt;0&amp;&amp;(h=h%Cv+Cv),h&gt;pU?this._append`A${n},${n},0,1,${f},${r-u},${t-c}A${n},${n},0,1,${f},${this._x1=a},${this._y1=d}`:h&gt;kl&amp;&amp;this._append`A${n},${n},0,${+(h&gt;=Sv)},${f},${this._x1=r+n*Math.cos(s)},${this._y1=t+n*Math.sin(s)}`)}rect(r,t,n,o){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function E2(e){let r=3;return e.digits=function(t){if(!arguments.length)return r;if(t==null)r=null;else{const n=Math.floor(t);if(!(n&gt;=0))throw new RangeError(`invalid digits: ${t}`);r=n}return e},()=&gt;new xU(r)}function A2(e){return typeof e==&quot;object&quot;&amp;&amp;&quot;length&quot;in e?e:Array.from(e)}function D7(e){this._context=e}D7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&amp;&amp;this._point===1)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function o0(e){return new D7(e)}function L7(e){return e[0]}function F7(e){return e[1]}function B7(e,r){var t=Sr(!0),n=null,o=o0,s=null,l=E2(u);e=typeof e==&quot;function&quot;?e:e===void 0?L7:Sr(e),r=typeof r==&quot;function&quot;?r:r===void 0?F7:Sr(r);function u(c){var a,d=(c=A2(c)).length,f,h=!1,m;for(n==null&amp;&amp;(s=o(m=l())),a=0;a&lt;=d;++a)!(a&lt;d&amp;&amp;t(f=c[a],a,c))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+e(f,a,c),+r(f,a,c));if(m)return s=null,m+&quot;&quot;||null}return u.x=function(c){return arguments.length?(e=typeof c==&quot;function&quot;?c:Sr(+c),u):e},u.y=function(c){return arguments.length?(r=typeof c==&quot;function&quot;?c:Sr(+c),u):r},u.defined=function(c){return arguments.length?(t=typeof c==&quot;function&quot;?c:Sr(!!c),u):t},u.curve=function(c){return arguments.length?(o=c,n!=null&amp;&amp;(s=o(n)),u):o},u.context=function(c){return arguments.length?(c==null?n=s=null:s=o(n=c),u):n},u}function sm(e,r,t){var n=null,o=Sr(!0),s=null,l=o0,u=null,c=E2(a);e=typeof e==&quot;function&quot;?e:e===void 0?L7:Sr(+e),r=typeof r==&quot;function&quot;?r:Sr(r===void 0?0:+r),t=typeof t==&quot;function&quot;?t:t===void 0?F7:Sr(+t);function a(f){var h,m,p,x=(f=A2(f)).length,g,y=!1,v,_=new Array(x),S=new Array(x);for(s==null&amp;&amp;(u=l(v=c())),h=0;h&lt;=x;++h){if(!(h&lt;x&amp;&amp;o(g=f[h],h,f))===y)if(y=!y)m=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=h-1;p&gt;=m;--p)u.point(_[p],S[p]);u.lineEnd(),u.areaEnd()}y&amp;&amp;(_[h]=+e(g,h,f),S[h]=+r(g,h,f),u.point(n?+n(g,h,f):_[h],t?+t(g,h,f):S[h]))}if(v)return u=null,v+&quot;&quot;||null}function d(){return B7().defined(o).curve(l).context(s)}return a.x=function(f){return arguments.length?(e=typeof f==&quot;function&quot;?f:Sr(+f),n=null,a):e},a.x0=function(f){return arguments.length?(e=typeof f==&quot;function&quot;?f:Sr(+f),a):e},a.x1=function(f){return arguments.length?(n=f==null?null:typeof f==&quot;function&quot;?f:Sr(+f),a):n},a.y=function(f){return arguments.length?(r=typeof f==&quot;function&quot;?f:Sr(+f),t=null,a):r},a.y0=function(f){return arguments.length?(r=typeof f==&quot;function&quot;?f:Sr(+f),a):r},a.y1=function(f){return arguments.length?(t=f==null?null:typeof f==&quot;function&quot;?f:Sr(+f),a):t},a.lineX0=a.lineY0=function(){return d().x(e).y(r)},a.lineY1=function(){return d().x(e).y(t)},a.lineX1=function(){return d().x(n).y(r)},a.defined=function(f){return arguments.length?(o=typeof f==&quot;function&quot;?f:Sr(!!f),a):o},a.curve=function(f){return arguments.length?(l=f,s!=null&amp;&amp;(u=l(s)),a):l},a.context=function(f){return arguments.length?(f==null?s=u=null:u=l(s=f),a):s},a}class $7{constructor(r,t){this._context=r,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&amp;&amp;this._point===1)&amp;&amp;this._context.closePath(),this._line=1-this._line}point(r,t){switch(r=+r,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,t,r,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,r,this._y0,r,t);break}}this._x0=r,this._y0=t}}function bU(e){return new $7(e,!0)}function yU(e){return new $7(e,!1)}const M2={draw(e,r){const t=Is(r/tp);e.moveTo(t,0),e.arc(0,0,t,0,a0)}},vU={draw(e,r){const t=Is(r/5)/2;e.moveTo(-3*t,-t),e.lineTo(-t,-t),e.lineTo(-t,-3*t),e.lineTo(t,-3*t),e.lineTo(t,-t),e.lineTo(3*t,-t),e.lineTo(3*t,t),e.lineTo(t,t),e.lineTo(t,3*t),e.lineTo(-t,3*t),e.lineTo(-t,t),e.lineTo(-3*t,t),e.closePath()}},z7=Is(1/3),wU=z7*2,_U={draw(e,r){const t=Is(r/wU),n=t*z7;e.moveTo(0,-t),e.lineTo(n,0),e.lineTo(0,t),e.lineTo(-n,0),e.closePath()}},jU={draw(e,r){const t=Is(r),n=-t/2;e.rect(n,n,t,t)}},NU=.8908130915292852,U7=ep(tp/10)/ep(7*tp/10),kU=ep(a0/10)*U7,SU=-I7(a0/10)*U7,CU={draw(e,r){const t=Is(r*NU),n=kU*t,o=SU*t;e.moveTo(0,-t),e.lineTo(n,o);for(let s=1;s&lt;5;++s){const l=a0*s/5,u=I7(l),c=ep(l);e.lineTo(c*t,-u*t),e.lineTo(u*n-c*o,c*n+u*o)}e.closePath()}},tb=Is(3),EU={draw(e,r){const t=-Is(r/(tb*3));e.moveTo(0,t*2),e.lineTo(-tb*t,-t),e.lineTo(tb*t,-t),e.closePath()}},Ki=-.5,Xi=Is(3)/2,Ev=1/Is(12),AU=(Ev/2+1)*3,MU={draw(e,r){const t=Is(r/AU),n=t/2,o=t*Ev,s=n,l=t*Ev+t,u=-s,c=l;e.moveTo(n,o),e.lineTo(s,l),e.lineTo(u,c),e.lineTo(Ki*n-Xi*o,Xi*n+Ki*o),e.lineTo(Ki*s-Xi*l,Xi*s+Ki*l),e.lineTo(Ki*u-Xi*c,Xi*u+Ki*c),e.lineTo(Ki*n+Xi*o,Ki*o-Xi*n),e.lineTo(Ki*s+Xi*l,Ki*l-Xi*s),e.lineTo(Ki*u+Xi*c,Ki*c-Xi*u),e.closePath()}};function PU(e,r){let t=null,n=E2(o);e=typeof e==&quot;function&quot;?e:Sr(e||M2),r=typeof r==&quot;function&quot;?r:Sr(r===void 0?64:+r);function o(){let s;if(t||(t=s=n()),e.apply(this,arguments).draw(t,+r.apply(this,arguments)),s)return t=null,s+&quot;&quot;||null}return o.type=function(s){return arguments.length?(e=typeof s==&quot;function&quot;?s:Sr(s),o):e},o.size=function(s){return arguments.length?(r=typeof s==&quot;function&quot;?s:Sr(+s),o):r},o.context=function(s){return arguments.length?(t=s??null,o):t},o}function rp(){}function np(e,r,t){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+r)/6,(e._y0+4*e._y1+t)/6)}function V7(e){this._context=e}V7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:np(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&amp;&amp;this._point===1)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:np(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function OU(e){return new V7(e)}function q7(e){this._context=e}q7.prototype={areaStart:rp,areaEnd:rp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._x2=e,this._y2=r;break;case 1:this._point=2,this._x3=e,this._y3=r;break;case 2:this._point=3,this._x4=e,this._y4=r,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+r)/6);break;default:np(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function TU(e){return new q7(e)}function W7(e){this._context=e}W7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&amp;&amp;this._point===3)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var t=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+r)/6;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 3:this._point=4;default:np(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function IU(e){return new W7(e)}function H7(e){this._context=e}H7.prototype={areaStart:rp,areaEnd:rp,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(e,r){e=+e,r=+r,this._point?this._context.lineTo(e,r):(this._point=1,this._context.moveTo(e,r))}};function RU(e){return new H7(e)}function $4(e){return e&lt;0?-1:1}function z4(e,r,t){var n=e._x1-e._x0,o=r-e._x1,s=(e._y1-e._y0)/(n||o&lt;0&amp;&amp;-0),l=(t-e._y1)/(o||n&lt;0&amp;&amp;-0),u=(s*o+l*n)/(n+o);return($4(s)+$4(l))*Math.min(Math.abs(s),Math.abs(l),.5*Math.abs(u))||0}function U4(e,r){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-r)/2:r}function rb(e,r,t){var n=e._x0,o=e._y0,s=e._x1,l=e._y1,u=(s-n)/3;e._context.bezierCurveTo(n+u,o+u*r,s-u,l-u*t,s,l)}function ip(e){this._context=e}ip.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:rb(this,this._t0,U4(this,this._t0));break}(this._line||this._line!==0&amp;&amp;this._point===1)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(e,r){var t=NaN;if(e=+e,r=+r,!(e===this._x1&amp;&amp;r===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,rb(this,U4(this,t=z4(this,e,r)),t);break;default:rb(this,this._t0,t=z4(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=t}}};function K7(e){this._context=new X7(e)}(K7.prototype=Object.create(ip.prototype)).point=function(e,r){ip.prototype.point.call(this,r,e)};function X7(e){this._context=e}X7.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,t,n,o,s){this._context.bezierCurveTo(r,e,n,t,s,o)}};function DU(e){return new ip(e)}function LU(e){return new K7(e)}function G7(e){this._context=e}G7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),t===2)this._context.lineTo(e[1],r[1]);else for(var n=V4(e),o=V4(r),s=0,l=1;l&lt;t;++s,++l)this._context.bezierCurveTo(n[0][s],o[0][s],n[1][s],o[1][s],e[l],r[l]);(this._line||this._line!==0&amp;&amp;t===1)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,r){this._x.push(+e),this._y.push(+r)}};function V4(e){var r,t=e.length-1,n,o=new Array(t),s=new Array(t),l=new Array(t);for(o[0]=0,s[0]=2,l[0]=e[0]+2*e[1],r=1;r&lt;t-1;++r)o[r]=1,s[r]=4,l[r]=4*e[r]+2*e[r+1];for(o[t-1]=2,s[t-1]=7,l[t-1]=8*e[t-1]+e[t],r=1;r&lt;t;++r)n=o[r]/s[r-1],s[r]-=n,l[r]-=n*l[r-1];for(o[t-1]=l[t-1]/s[t-1],r=t-2;r&gt;=0;--r)o[r]=(l[r]-o[r+1])/s[r];for(s[t-1]=(e[t]+o[t-1])/2,r=0;r&lt;t-1;++r)s[r]=2*e[r+1]-o[r+1];return[o,s]}function FU(e){return new G7(e)}function l0(e,r){this._context=e,this._t=r}l0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;this._point===2&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||this._line!==0&amp;&amp;this._point===1)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t&lt;=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,r)}break}}this._x=e,this._y=r}};function BU(e){return new l0(e,.5)}function $U(e){return new l0(e,0)}function zU(e){return new l0(e,1)}function Bl(e,r){if((l=e.length)&gt;1)for(var t=1,n,o,s=e[r[0]],l,u=s.length;t&lt;l;++t)for(o=s,s=e[r[t]],n=0;n&lt;u;++n)s[n][1]+=s[n][0]=isNaN(o[n][1])?o[n][0]:o[n][1]}function Av(e){for(var r=e.length,t=new Array(r);--r&gt;=0;)t[r]=r;return t}function UU(e,r){return e[r]}function VU(e){const r=[];return r.key=e,r}function qU(){var e=Sr([]),r=Av,t=Bl,n=UU;function o(s){var l=Array.from(e.apply(this,arguments),VU),u,c=l.length,a=-1,d;for(const f of s)for(u=0,++a;u&lt;c;++u)(l[u][a]=[0,+n(f,l[u].key,a,s)]).data=f;for(u=0,d=A2(r(l));u&lt;c;++u)l[d[u]].index=u;return t(l,d),l}return o.keys=function(s){return arguments.length?(e=typeof s==&quot;function&quot;?s:Sr(Array.from(s)),o):e},o.value=function(s){return arguments.length?(n=typeof s==&quot;function&quot;?s:Sr(+s),o):n},o.order=function(s){return arguments.length?(r=s==null?Av:typeof s==&quot;function&quot;?s:Sr(Array.from(s)),o):r},o.offset=function(s){return arguments.length?(t=s??Bl,o):t},o}function WU(e,r){if((n=e.length)&gt;0){for(var t,n,o=0,s=e[0].length,l;o&lt;s;++o){for(l=t=0;t&lt;n;++t)l+=e[t][o][1]||0;if(l)for(t=0;t&lt;n;++t)e[t][o][1]/=l}Bl(e,r)}}function HU(e,r){if((o=e.length)&gt;0){for(var t=0,n=e[r[0]],o,s=n.length;t&lt;s;++t){for(var l=0,u=0;l&lt;o;++l)u+=e[l][t][1]||0;n[t][1]+=n[t][0]=-u/2}Bl(e,r)}}function KU(e,r){if(!(!((l=e.length)&gt;0)||!((s=(o=e[r[0]]).length)&gt;0))){for(var t=0,n=1,o,s,l;n&lt;s;++n){for(var u=0,c=0,a=0;u&lt;l;++u){for(var d=e[r[u]],f=d[n][1]||0,h=d[n-1][1]||0,m=(f-h)/2,p=0;p&lt;u;++p){var x=e[r[p]],g=x[n][1]||0,y=x[n-1][1]||0;m+=g-y}c+=f,a+=m*f}o[n-1][1]+=o[n-1][0]=t,c&amp;&amp;(t-=a/c)}o[n-1][1]+=o[n-1][0]=t,Bl(e,r)}}var nb={},ib={},q4;function XU(){return q4||(q4=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return t===&quot;__proto__&quot;}e.isUnsafeProperty=r})(ib)),ib}var sb={},W4;function Y7(){return W4||(W4=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){switch(typeof t){case&quot;number&quot;:case&quot;symbol&quot;:return!1;case&quot;string&quot;:return t.includes(&quot;.&quot;)||t.includes(&quot;[&quot;)||t.includes(&quot;]&quot;)}}e.isDeepKey=r})(sb)),sb}var ab={},H4;function P2(){return H4||(H4=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return typeof t==&quot;string&quot;||typeof t==&quot;symbol&quot;?t:Object.is(t?.valueOf?.(),-0)?&quot;-0&quot;:String(t)}e.toKey=r})(ab)),ab}var ob={},lb={},K4;function GU(){return K4||(K4=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){if(t==null)return&quot;&quot;;if(typeof t==&quot;string&quot;)return t;if(Array.isArray(t))return t.map(r).join(&quot;,&quot;);const n=String(t);return n===&quot;0&quot;&amp;&amp;Object.is(Number(t),-0)?&quot;-0&quot;:n}e.toString=r})(lb)),lb}var X4;function O2(){return X4||(X4=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=GU(),t=P2();function n(o){if(Array.isArray(o))return o.map(t.toKey);if(typeof o==&quot;symbol&quot;)return[o];o=r.toString(o);const s=[],l=o.length;if(l===0)return s;let u=0,c=&quot;&quot;,a=&quot;&quot;,d=!1;for(o.charCodeAt(0)===46&amp;&amp;(s.push(&quot;&quot;),u++);u&lt;l;){const f=o[u];a?f===&quot;\\&quot;&amp;&amp;u+1&lt;l?(u++,c+=o[u]):f===a?a=&quot;&quot;:c+=f:d?f===&#039;&quot;&#039;||f===&quot;&#039;&quot;?a=f:f===&quot;]&quot;?(d=!1,s.push(c),c=&quot;&quot;):c+=f:f===&quot;[&quot;?(d=!0,c&amp;&amp;(s.push(c),c=&quot;&quot;)):f===&quot;.&quot;?c&amp;&amp;(s.push(c),c=&quot;&quot;):c+=f,u++}return c&amp;&amp;s.push(c),s}e.toPath=n})(ob)),ob}var G4;function T2(){return G4||(G4=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=XU(),t=Y7(),n=P2(),o=O2();function s(u,c,a){if(u==null)return a;switch(typeof c){case&quot;string&quot;:{if(r.isUnsafeProperty(c))return a;const d=u[c];return d===void 0?t.isDeepKey(c)?s(u,o.toPath(c),a):a:d}case&quot;number&quot;:case&quot;symbol&quot;:{typeof c==&quot;number&quot;&amp;&amp;(c=n.toKey(c));const d=u[c];return d===void 0?a:d}default:{if(Array.isArray(c))return l(u,c,a);if(Object.is(c?.valueOf(),-0)?c=&quot;-0&quot;:c=String(c),r.isUnsafeProperty(c))return a;const d=u[c];return d===void 0?a:d}}}function l(u,c,a){if(c.length===0)return a;let d=u;for(let f=0;f&lt;c.length;f++){if(d==null||r.isUnsafeProperty(c[f]))return a;d=d[c[f]]}return d===void 0?a:d}e.get=s})(nb)),nb}var cb,Y4;function YU(){return Y4||(Y4=1,cb=T2().get),cb}var ZU=YU();const Qc=Os(ZU);var QU=4;function Do(e){var r=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:QU,t=10**r,n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function Wr(e){for(var r=arguments.length,t=new Array(r&gt;1?r-1:0),n=1;n&lt;r;n++)t[n-1]=arguments[n];return e.reduce((o,s,l)=&gt;{var u=t[l-1];return typeof u==&quot;string&quot;?o+u+s:u!==void 0?o+Do(u)+s:o+s},&quot;&quot;)}var wi=e=&gt;e===0?0:e&gt;0?1:-1,As=e=&gt;typeof e==&quot;number&quot;&amp;&amp;e!=+e,$a=e=&gt;typeof e==&quot;string&quot;&amp;&amp;e.indexOf(&quot;%&quot;)===e.length-1,xt=e=&gt;(typeof e==&quot;number&quot;||e instanceof Number)&amp;&amp;!As(e),na=e=&gt;xt(e)||typeof e==&quot;string&quot;,JU=0,Gd=e=&gt;{var r=++JU;return&quot;&quot;.concat(e||&quot;&quot;).concat(r)},Ms=function(r,t){var n=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:0,o=arguments.length&gt;3&amp;&amp;arguments[3]!==void 0?arguments[3]:!1;if(!xt(r)&amp;&amp;typeof r!=&quot;string&quot;)return n;var s;if($a(r)){if(t==null)return n;var l=r.indexOf(&quot;%&quot;);s=t*parseFloat(r.slice(0,l))/100}else s=+r;return As(s)&amp;&amp;(s=n),o&amp;&amp;t!=null&amp;&amp;s&gt;t&amp;&amp;(s=t),s},Z7=e=&gt;{if(!Array.isArray(e))return!1;for(var r=e.length,t={},n=0;n&lt;r;n++)if(!t[String(e[n])])t[String(e[n])]=!0;else return!0;return!1};function Hr(e,r,t){return xt(e)&amp;&amp;xt(r)?Do(e+t*(r-e)):r}function Q7(e,r,t){if(!(!e||!e.length))return e.find(n=&gt;n&amp;&amp;(typeof r==&quot;function&quot;?r(n):Qc(n,r))===t)}var Rr=e=&gt;e===null||typeof e&gt;&quot;u&quot;,yf=e=&gt;Rr(e)?e:&quot;&quot;.concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function eV(e){return e!=null}function vf(){}var tV=[&quot;type&quot;,&quot;size&quot;,&quot;sizeType&quot;];function Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Mv.apply(null,arguments)}function Z4(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Q4(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Z4(Object(t),!0).forEach(function(n){rV(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z4(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function rV(e,r,t){return(r=nV(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function nV(e){var r=iV(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function iV(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function sV(e,r){if(e==null)return{};var t,n,o=aV(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function aV(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var J7={symbolCircle:M2,symbolCross:vU,symbolDiamond:_U,symbolSquare:jU,symbolStar:CU,symbolTriangle:EU,symbolWye:MU},oV=Math.PI/180,lV=e=&gt;{var r=&quot;symbol&quot;.concat(yf(e));return J7[r]||M2},cV=(e,r,t)=&gt;{if(r===&quot;area&quot;)return e;switch(t){case&quot;cross&quot;:return 5*e*e/9;case&quot;diamond&quot;:return .5*e*e/Math.sqrt(3);case&quot;square&quot;:return e*e;case&quot;star&quot;:{var n=18*oV;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case&quot;triangle&quot;:return Math.sqrt(3)*e*e/4;case&quot;wye&quot;:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},uV=(e,r)=&gt;{J7[&quot;symbol&quot;.concat(yf(e))]=r},I2=e=&gt;{var{type:r=&quot;circle&quot;,size:t=64,sizeType:n=&quot;area&quot;}=e,o=sV(e,tV),s=Q4(Q4({},o),{},{type:r,size:t,sizeType:n}),l=&quot;circle&quot;;typeof r==&quot;string&quot;&amp;&amp;(l=r);var u=()=&gt;{var h=lV(l),m=PU().type(h).size(cV(t,n,l)),p=m();if(p!==null)return p},{className:c,cx:a,cy:d}=s,f=li(s);return xt(a)&amp;&amp;xt(d)&amp;&amp;xt(t)?O.createElement(&quot;path&quot;,Mv({},f,{className:br(&quot;recharts-symbols&quot;,c),transform:&quot;translate(&quot;.concat(a,&quot;, &quot;).concat(d,&quot;)&quot;),d:u()})):null};I2.registerSymbol=uV;var eE=e=&gt;&quot;radius&quot;in e&amp;&amp;&quot;startAngle&quot;in e&amp;&amp;&quot;endAngle&quot;in e,R2=(e,r)=&gt;{if(!e||typeof e==&quot;function&quot;||typeof e==&quot;boolean&quot;)return null;var t=e;if(O.isValidElement(e)&amp;&amp;(t=e.props),typeof t!=&quot;object&quot;&amp;&amp;typeof t!=&quot;function&quot;)return null;var n={};return Object.keys(t).forEach(o=&gt;{S2(o)&amp;&amp;(n[o]=(s=&gt;t[o](t,s)))}),n},dV=(e,r,t)=&gt;n=&gt;(e(r,t,n),null),c0=(e,r,t)=&gt;{if(e===null||typeof e!=&quot;object&quot;&amp;&amp;typeof e!=&quot;function&quot;)return null;var n=null;return Object.keys(e).forEach(o=&gt;{var s=e[o];S2(o)&amp;&amp;typeof s==&quot;function&quot;&amp;&amp;(n||(n={}),n[o]=dV(s,r,t))}),n};function J4(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function fV(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?J4(Object(t),!0).forEach(function(n){hV(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J4(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function hV(e,r,t){return(r=mV(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function mV(e){var r=pV(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function pV(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function Dn(e,r){var t=fV({},e),n=r,o=Object.keys(r),s=o.reduce((l,u)=&gt;(l[u]===void 0&amp;&amp;n[u]!==void 0&amp;&amp;(l[u]=n[u]),l),t);return s}function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},sp.apply(null,arguments)}function e5(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function gV(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?e5(Object(t),!0).forEach(function(n){xV(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):e5(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function xV(e,r,t){return(r=bV(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function bV(e){var r=yV(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function yV(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var Zi=32,vV={align:&quot;center&quot;,iconSize:14,inactiveColor:&quot;#ccc&quot;,layout:&quot;horizontal&quot;,verticalAlign:&quot;middle&quot;};function wV(e){var{data:r,iconType:t,inactiveColor:n}=e,o=Zi/2,s=Zi/6,l=Zi/3,u=r.inactive?n:r.color,c=t??r.type;if(c===&quot;none&quot;)return null;if(c===&quot;plainline&quot;){var a;return O.createElement(&quot;line&quot;,{strokeWidth:4,fill:&quot;none&quot;,stroke:u,strokeDasharray:(a=r.payload)===null||a===void 0?void 0:a.strokeDasharray,x1:0,y1:o,x2:Zi,y2:o,className:&quot;recharts-legend-icon&quot;})}if(c===&quot;line&quot;)return O.createElement(&quot;path&quot;,{strokeWidth:4,fill:&quot;none&quot;,stroke:u,d:&quot;M0,&quot;.concat(o,&quot;h&quot;).concat(l,`
            A`).concat(s,&quot;,&quot;).concat(s,&quot;,0,1,1,&quot;).concat(2*l,&quot;,&quot;).concat(o,`
            H`).concat(Zi,&quot;M&quot;).concat(2*l,&quot;,&quot;).concat(o,`
            A`).concat(s,&quot;,&quot;).concat(s,&quot;,0,1,1,&quot;).concat(l,&quot;,&quot;).concat(o),className:&quot;recharts-legend-icon&quot;});if(c===&quot;rect&quot;)return O.createElement(&quot;path&quot;,{stroke:&quot;none&quot;,fill:u,d:&quot;M0,&quot;.concat(Zi/8,&quot;h&quot;).concat(Zi,&quot;v&quot;).concat(Zi*3/4,&quot;h&quot;).concat(-Zi,&quot;z&quot;),className:&quot;recharts-legend-icon&quot;});if(O.isValidElement(r.legendIcon)){var d=gV({},r);return delete d.legendIcon,O.cloneElement(r.legendIcon,d)}return O.createElement(I2,{fill:u,cx:o,cy:o,size:Zi,sizeType:&quot;diameter&quot;,type:c})}function _V(e){var{payload:r,iconSize:t,layout:n,formatter:o,inactiveColor:s,iconType:l}=e,u={x:0,y:0,width:Zi,height:Zi},c={display:n===&quot;horizontal&quot;?&quot;inline-block&quot;:&quot;block&quot;,marginRight:10},a={display:&quot;inline-block&quot;,verticalAlign:&quot;middle&quot;,marginRight:4};return r.map((d,f)=&gt;{var h=d.formatter||o,m=br({&quot;recharts-legend-item&quot;:!0,[&quot;legend-item-&quot;.concat(f)]:!0,inactive:d.inactive});if(d.type===&quot;none&quot;)return null;var p=d.inactive?s:d.color,x=h?h(d.value,d,f):d.value;return O.createElement(&quot;li&quot;,sp({className:m,style:c,key:&quot;legend-item-&quot;.concat(f)},c0(e,d,f)),O.createElement(C2,{width:t,height:t,viewBox:u,style:a,&quot;aria-label&quot;:&quot;&quot;.concat(x,&quot; legend icon&quot;)},O.createElement(wV,{data:d,iconType:l,inactiveColor:s})),O.createElement(&quot;span&quot;,{className:&quot;recharts-legend-item-text&quot;,style:{color:p}},x))})}var jV=e=&gt;{var r=Dn(e,vV),{payload:t,layout:n,align:o}=r;if(!t||!t.length)return null;var s={padding:0,margin:0,textAlign:n===&quot;horizontal&quot;?o:&quot;left&quot;};return O.createElement(&quot;ul&quot;,{className:&quot;recharts-default-legend&quot;,style:s},O.createElement(_V,sp({},r,{payload:t})))},ub={},db={},t5;function NV(){return t5||(t5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t,n){const o=new Map;for(let s=0;s&lt;t.length;s++){const l=t[s],u=n(l,s,t);o.has(u)||o.set(u,l)}return Array.from(o.values())}e.uniqBy=r})(db)),db}var fb={},r5;function kV(){return r5||(r5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t,n){return function(...o){return t.apply(this,o.slice(0,n))}}e.ary=r})(fb)),fb}var hb={},n5;function tE(){return n5||(n5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return t}e.identity=r})(hb)),hb}var mb={},pb={},gb={},i5;function SV(){return i5||(i5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return Number.isSafeInteger(t)&amp;&amp;t&gt;=0}e.isLength=r})(gb)),gb}var s5;function D2(){return s5||(s5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=SV();function t(n){return n!=null&amp;&amp;typeof n!=&quot;function&quot;&amp;&amp;r.isLength(n.length)}e.isArrayLike=t})(pb)),pb}var xb={},a5;function CV(){return a5||(a5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return typeof t==&quot;object&quot;&amp;&amp;t!==null}e.isObjectLike=r})(xb)),xb}var o5;function EV(){return o5||(o5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=D2(),t=CV();function n(o){return t.isObjectLike(o)&amp;&amp;r.isArrayLike(o)}e.isArrayLikeObject=n})(mb)),mb}var bb={},yb={},l5;function AV(){return l5||(l5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=T2();function t(n){return function(o){return r.get(o,n)}}e.property=t})(yb)),yb}var vb={},wb={},_b={},jb={},c5;function rE(){return c5||(c5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return t!==null&amp;&amp;(typeof t==&quot;object&quot;||typeof t==&quot;function&quot;)}e.isObject=r})(jb)),jb}var Nb={},u5;function nE(){return u5||(u5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return t==null||typeof t!=&quot;object&quot;&amp;&amp;typeof t!=&quot;function&quot;}e.isPrimitive=r})(Nb)),Nb}var kb={},d5;function iE(){return d5||(d5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t,n){return t===n||Number.isNaN(t)&amp;&amp;Number.isNaN(n)}e.isEqualsSameValueZero=r})(kb)),kb}var f5;function MV(){return f5||(f5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=rE(),t=nE(),n=iE();function o(d,f,h){return typeof h!=&quot;function&quot;?o(d,f,()=&gt;{}):s(d,f,function m(p,x,g,y,v,_){const S=h(p,x,g,y,v,_);return S!==void 0?!!S:s(p,x,m,_)},new Map)}function s(d,f,h,m){if(f===d)return!0;switch(typeof f){case&quot;object&quot;:return l(d,f,h,m);case&quot;function&quot;:return Object.keys(f).length&gt;0?s(d,{...f},h,m):n.isEqualsSameValueZero(d,f);default:return r.isObject(d)?typeof f==&quot;string&quot;?f===&quot;&quot;:!0:n.isEqualsSameValueZero(d,f)}}function l(d,f,h,m){if(f==null)return!0;if(Array.isArray(f))return c(d,f,h,m);if(f instanceof Map)return u(d,f,h,m);if(f instanceof Set)return a(d,f,h,m);const p=Object.keys(f);if(d==null||t.isPrimitive(d))return p.length===0;if(p.length===0)return!0;if(m?.has(f))return m.get(f)===d;m?.set(f,d);try{for(let x=0;x&lt;p.length;x++){const g=p[x];if(!t.isPrimitive(d)&amp;&amp;!(g in d)||f[g]===void 0&amp;&amp;d[g]!==void 0||f[g]===null&amp;&amp;d[g]!==null||!h(d[g],f[g],g,d,f,m))return!1}return!0}finally{m?.delete(f)}}function u(d,f,h,m){if(f.size===0)return!0;if(!(d instanceof Map))return!1;for(const[p,x]of f.entries()){const g=d.get(p);if(h(g,x,p,d,f,m)===!1)return!1}return!0}function c(d,f,h,m){if(f.length===0)return!0;if(!Array.isArray(d))return!1;const p=new Set;for(let x=0;x&lt;f.length;x++){const g=f[x];let y=!1;for(let v=0;v&lt;d.length;v++){if(p.has(v))continue;const _=d[v];let S=!1;if(h(_,g,x,d,f,m)&amp;&amp;(S=!0),S){p.add(v),y=!0;break}}if(!y)return!1}return!0}function a(d,f,h,m){return f.size===0?!0:d instanceof Set?c([...d],[...f],h,m):!1}e.isMatchWith=o,e.isSetMatch=a})(_b)),_b}var h5;function sE(){return h5||(h5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=MV();function t(n,o){return r.isMatchWith(n,o,()=&gt;{})}e.isMatch=t})(wb)),wb}var Sb={},Cb={},Eb={},m5;function PV(){return m5||(m5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return Object.getOwnPropertySymbols(t).filter(n=&gt;Object.prototype.propertyIsEnumerable.call(t,n))}e.getSymbols=r})(Eb)),Eb}var Ab={},p5;function L2(){return p5||(p5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return t==null?t===void 0?&quot;[object Undefined]&quot;:&quot;[object Null]&quot;:Object.prototype.toString.call(t)}e.getTag=r})(Ab)),Ab}var Mb={},g5;function aE(){return g5||(g5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=&quot;[object RegExp]&quot;,t=&quot;[object String]&quot;,n=&quot;[object Number]&quot;,o=&quot;[object Boolean]&quot;,s=&quot;[object Arguments]&quot;,l=&quot;[object Symbol]&quot;,u=&quot;[object Date]&quot;,c=&quot;[object Map]&quot;,a=&quot;[object Set]&quot;,d=&quot;[object Array]&quot;,f=&quot;[object Function]&quot;,h=&quot;[object ArrayBuffer]&quot;,m=&quot;[object Object]&quot;,p=&quot;[object Error]&quot;,x=&quot;[object DataView]&quot;,g=&quot;[object Uint8Array]&quot;,y=&quot;[object Uint8ClampedArray]&quot;,v=&quot;[object Uint16Array]&quot;,_=&quot;[object Uint32Array]&quot;,S=&quot;[object BigUint64Array]&quot;,A=&quot;[object Int8Array]&quot;,I=&quot;[object Int16Array]&quot;,V=&quot;[object Int32Array]&quot;,F=&quot;[object BigInt64Array]&quot;,q=&quot;[object Float32Array]&quot;,H=&quot;[object Float64Array]&quot;;e.argumentsTag=s,e.arrayBufferTag=h,e.arrayTag=d,e.bigInt64ArrayTag=F,e.bigUint64ArrayTag=S,e.booleanTag=o,e.dataViewTag=x,e.dateTag=u,e.errorTag=p,e.float32ArrayTag=q,e.float64ArrayTag=H,e.functionTag=f,e.int16ArrayTag=I,e.int32ArrayTag=V,e.int8ArrayTag=A,e.mapTag=c,e.numberTag=n,e.objectTag=m,e.regexpTag=r,e.setTag=a,e.stringTag=t,e.symbolTag=l,e.uint16ArrayTag=v,e.uint32ArrayTag=_,e.uint8ArrayTag=g,e.uint8ClampedArrayTag=y})(Mb)),Mb}var Pb={},x5;function OV(){return x5||(x5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}e.isTypedArray=r})(Pb)),Pb}var b5;function oE(){return b5||(b5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=PV(),t=L2(),n=aE(),o=nE(),s=OV();function l(d,f){return u(d,void 0,d,new Map,f)}function u(d,f,h,m=new Map,p=void 0){const x=p?.(d,f,h,m);if(x!==void 0)return x;if(o.isPrimitive(d))return d;if(m.has(d))return m.get(d);if(Array.isArray(d)){const g=new Array(d.length);m.set(d,g);for(let y=0;y&lt;d.length;y++)g[y]=u(d[y],y,h,m,p);return Object.hasOwn(d,&quot;index&quot;)&amp;&amp;(g.index=d.index),Object.hasOwn(d,&quot;input&quot;)&amp;&amp;(g.input=d.input),g}if(d instanceof Date)return new Date(d.getTime());if(d instanceof RegExp){const g=new RegExp(d.source,d.flags);return g.lastIndex=d.lastIndex,g}if(d instanceof Map){const g=new Map;m.set(d,g);for(const[y,v]of d)g.set(y,u(v,y,h,m,p));return g}if(d instanceof Set){const g=new Set;m.set(d,g);for(const y of d)g.add(u(y,void 0,h,m,p));return g}if(typeof Buffer&lt;&quot;u&quot;&amp;&amp;Buffer.isBuffer(d))return d.subarray();if(s.isTypedArray(d)){const g=new(Object.getPrototypeOf(d)).constructor(d.length);m.set(d,g);for(let y=0;y&lt;d.length;y++)g[y]=u(d[y],y,h,m,p);return g}if(d instanceof ArrayBuffer||typeof SharedArrayBuffer&lt;&quot;u&quot;&amp;&amp;d instanceof SharedArrayBuffer)return d.slice(0);if(d instanceof DataView){const g=new DataView(d.buffer.slice(0),d.byteOffset,d.byteLength);return m.set(d,g),c(g,d,h,m,p),g}if(typeof File&lt;&quot;u&quot;&amp;&amp;d instanceof File){const g=new File([d],d.name,{type:d.type});return m.set(d,g),c(g,d,h,m,p),g}if(typeof Blob&lt;&quot;u&quot;&amp;&amp;d instanceof Blob){const g=new Blob([d],{type:d.type});return m.set(d,g),c(g,d,h,m,p),g}if(d instanceof Error){const g=new d.constructor;return m.set(d,g),g.message=d.message,g.name=d.name,g.stack=d.stack,g.cause=d.cause,c(g,d,h,m,p),g}if(d instanceof Boolean){const g=new Boolean(d.valueOf());return m.set(d,g),c(g,d,h,m,p),g}if(d instanceof Number){const g=new Number(d.valueOf());return m.set(d,g),c(g,d,h,m,p),g}if(d instanceof String){const g=new String(d.valueOf());return m.set(d,g),c(g,d,h,m,p),g}if(typeof d==&quot;object&quot;&amp;&amp;a(d)){const g=Object.create(Object.getPrototypeOf(d));return m.set(d,g),c(g,d,h,m,p),g}return d}function c(d,f,h=d,m,p){const x=[...Object.keys(f),...r.getSymbols(f)];for(let g=0;g&lt;x.length;g++){const y=x[g],v=Object.getOwnPropertyDescriptor(d,y);(v==null||v.writable)&amp;&amp;(d[y]=u(f[y],y,h,m,p))}}function a(d){switch(t.getTag(d)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=l,e.cloneDeepWithImpl=u,e.copyProperties=c})(Cb)),Cb}var y5;function TV(){return y5||(y5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=oE();function t(n){return r.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=t})(Sb)),Sb}var v5;function IV(){return v5||(v5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=sE(),t=TV();function n(o){return o=t.cloneDeep(o),s=&gt;r.isMatch(s,o)}e.matches=n})(vb)),vb}var Ob={},Tb={},Ib={},w5;function RV(){return w5||(w5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=oE(),t=L2(),n=aE();function o(s,l){return r.cloneDeepWith(s,(u,c,a,d)=&gt;{const f=l?.(u,c,a,d);if(f!==void 0)return f;if(typeof s==&quot;object&quot;){if(t.getTag(s)===n.objectTag&amp;&amp;typeof s.constructor!=&quot;function&quot;){const h={};return d.set(s,h),r.copyProperties(h,s,a,d),h}switch(Object.prototype.toString.call(s)){case n.numberTag:case n.stringTag:case n.booleanTag:{const h=new s.constructor(s?.valueOf());return r.copyProperties(h,s),h}case n.argumentsTag:{const h={};return r.copyProperties(h,s),h.length=s.length,h[Symbol.iterator]=s[Symbol.iterator],h}default:return}}})}e.cloneDeepWith=o})(Ib)),Ib}var _5;function DV(){return _5||(_5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=RV();function t(n){return r.cloneDeepWith(n)}e.cloneDeep=t})(Tb)),Tb}var Rb={},Db={},j5;function lE(){return j5||(j5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=/^(?:0|[1-9]\d*)$/;function t(n,o=Number.MAX_SAFE_INTEGER){switch(typeof n){case&quot;number&quot;:return Number.isInteger(n)&amp;&amp;n&gt;=0&amp;&amp;n&lt;o;case&quot;symbol&quot;:return!1;case&quot;string&quot;:return r.test(n)}}e.isIndex=t})(Db)),Db}var Lb={},N5;function LV(){return N5||(N5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=L2();function t(n){return n!==null&amp;&amp;typeof n==&quot;object&quot;&amp;&amp;r.getTag(n)===&quot;[object Arguments]&quot;}e.isArguments=t})(Lb)),Lb}var k5;function FV(){return k5||(k5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=Y7(),t=lE(),n=LV(),o=O2();function s(l,u){let c;if(Array.isArray(u)?c=u:typeof u==&quot;string&quot;&amp;&amp;r.isDeepKey(u)&amp;&amp;l?.[u]==null?c=o.toPath(u):c=[u],c.length===0)return!1;let a=l;for(let d=0;d&lt;c.length;d++){const f=c[d];if((a==null||!Object.hasOwn(a,f))&amp;&amp;!((Array.isArray(a)||n.isArguments(a))&amp;&amp;t.isIndex(f)&amp;&amp;f&lt;a.length))return!1;a=a[f]}return!0}e.has=s})(Rb)),Rb}var S5;function BV(){return S5||(S5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=sE(),t=P2(),n=DV(),o=T2(),s=FV();function l(u,c){switch(typeof u){case&quot;object&quot;:{Object.is(u?.valueOf(),-0)&amp;&amp;(u=&quot;-0&quot;);break}case&quot;number&quot;:{u=t.toKey(u);break}}return c=n.cloneDeep(c),function(a){const d=o.get(a,u);return d===void 0?s.has(a,u):c===void 0?d===void 0:r.isMatch(d,c)}}e.matchesProperty=l})(Ob)),Ob}var C5;function $V(){return C5||(C5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=tE(),t=AV(),n=IV(),o=BV();function s(l){if(l==null)return r.identity;switch(typeof l){case&quot;function&quot;:return l;case&quot;object&quot;:return Array.isArray(l)&amp;&amp;l.length===2?o.matchesProperty(l[0],l[1]):n.matches(l);case&quot;string&quot;:case&quot;symbol&quot;:case&quot;number&quot;:return t.property(l)}}e.iteratee=s})(bb)),bb}var E5;function zV(){return E5||(E5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=NV(),t=kV(),n=tE(),o=EV(),s=$V();function l(u,c=n.identity){return o.isArrayLikeObject(u)?r.uniqBy(Array.from(u),t.ary(s.iteratee(c),1)):[]}e.uniqBy=l})(ub)),ub}var Fb,A5;function UV(){return A5||(A5=1,Fb=zV().uniqBy),Fb}var VV=UV();const M5=Os(VV);function cE(e,r,t){return r===!0?M5(e,t):typeof r==&quot;function&quot;?M5(e,r):e}var Bb={exports:{}},$b={},zb={exports:{}},Ub={};var P5;function qV(){if(P5)return Ub;P5=1;var e=au();function r(f,h){return f===h&amp;&amp;(f!==0||1/f===1/h)||f!==f&amp;&amp;h!==h}var t=typeof Object.is==&quot;function&quot;?Object.is:r,n=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(f,h){var m=h(),p=n({inst:{value:m,getSnapshot:h}}),x=p[0].inst,g=p[1];return s(function(){x.value=m,x.getSnapshot=h,c(x)&amp;&amp;g({inst:x})},[f,m,h]),o(function(){return c(x)&amp;&amp;g({inst:x}),f(function(){c(x)&amp;&amp;g({inst:x})})},[f]),l(m),m}function c(f){var h=f.getSnapshot;f=f.value;try{var m=h();return!t(f,m)}catch{return!0}}function a(f,h){return h()}var d=typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;?a:u;return Ub.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Ub}var O5;function WV(){return O5||(O5=1,zb.exports=qV()),zb.exports}var T5;function HV(){if(T5)return $b;T5=1;var e=au(),r=WV();function t(a,d){return a===d&amp;&amp;(a!==0||1/a===1/d)||a!==a&amp;&amp;d!==d}var n=typeof Object.is==&quot;function&quot;?Object.is:t,o=r.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,c=e.useDebugValue;return $b.useSyncExternalStoreWithSelector=function(a,d,f,h,m){var p=s(null);if(p.current===null){var x={hasValue:!1,value:null};p.current=x}else x=p.current;p=u(function(){function y(I){if(!v){if(v=!0,_=I,I=h(I),m!==void 0&amp;&amp;x.hasValue){var V=x.value;if(m(V,I))return S=V}return S=I}if(V=S,n(_,I))return V;var F=h(I);return m!==void 0&amp;&amp;m(V,F)?(_=I,V):(_=I,S=F)}var v=!1,_,S,A=f===void 0?null:f;return[function(){return y(d())},A===null?void 0:function(){return y(A())}]},[d,f,h,m]);var g=o(a,p[0],p[1]);return l(function(){x.hasValue=!0,x.value=g},[g]),c(g),g},$b}var I5;function KV(){return I5||(I5=1,Bb.exports=HV()),Bb.exports}var XV=KV(),F2=O.createContext(null),GV=e=&gt;e,Ur=()=&gt;{var e=O.useContext(F2);return e?e.store.dispatch:GV},Mm=()=&gt;{},YV=()=&gt;Mm,ZV=(e,r)=&gt;e===r;function Et(e){var r=O.useContext(F2);return XV.useSyncExternalStoreWithSelector(r?r.subscription.addNestedSub:YV,r?r.store.getState:Mm,r?r.store.getState:Mm,r?e:Mm,ZV)}function QV(e,r=`expected a function, instead received ${typeof e}`){if(typeof e!=&quot;function&quot;)throw new TypeError(r)}function JV(e,r=`expected an object, instead received ${typeof e}`){if(typeof e!=&quot;object&quot;)throw new TypeError(r)}function eq(e,r=&quot;expected all items to be functions, instead received the following types: &quot;){if(!e.every(t=&gt;typeof t==&quot;function&quot;)){const t=e.map(n=&gt;typeof n==&quot;function&quot;?`function ${n.name||&quot;unnamed&quot;}()`:typeof n).join(&quot;, &quot;);throw new TypeError(`${r}[${t}]`)}}var R5=e=&gt;Array.isArray(e)?e:[e];function tq(e){const r=Array.isArray(e[0])?e[0]:e;return eq(r,&quot;createSelector expects all input-selectors to be functions, but received the following types: &quot;),r}function rq(e,r){const t=[],{length:n}=e;for(let o=0;o&lt;n;o++)t.push(e[o].apply(null,r));return t}var nq=class{constructor(e){this.value=e}deref(){return this.value}},iq=typeof WeakRef&lt;&quot;u&quot;?WeakRef:nq,sq=0,D5=1;function am(){return{s:sq,v:void 0,o:null,p:null}}function uE(e,r={}){let t=am();const{resultEqualityCheck:n}=r;let o,s=0;function l(){let u=t;const{length:c}=arguments;for(let f=0,h=c;f&lt;h;f++){const m=arguments[f];if(typeof m==&quot;function&quot;||typeof m==&quot;object&quot;&amp;&amp;m!==null){let p=u.o;p===null&amp;&amp;(u.o=p=new WeakMap);const x=p.get(m);x===void 0?(u=am(),p.set(m,u)):u=x}else{let p=u.p;p===null&amp;&amp;(u.p=p=new Map);const x=p.get(m);x===void 0?(u=am(),p.set(m,u)):u=x}}const a=u;let d;if(u.s===D5)d=u.v;else if(d=e.apply(null,arguments),s++,n){const f=o?.deref?.()??o;f!=null&amp;&amp;n(f,d)&amp;&amp;(d=f,s!==0&amp;&amp;s--),o=typeof d==&quot;object&quot;&amp;&amp;d!==null||typeof d==&quot;function&quot;?new iq(d):d}return a.s=D5,a.v=d,d}return l.clearCache=()=&gt;{t=am(),l.resetResultsCount()},l.resultsCount=()=&gt;s,l.resetResultsCount=()=&gt;{s=0},l}function aq(e,...r){const t=typeof e==&quot;function&quot;?{memoize:e,memoizeOptions:r}:e,n=(...o)=&gt;{let s=0,l=0,u,c={},a=o.pop();typeof a==&quot;object&quot;&amp;&amp;(c=a,a=o.pop()),QV(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const d={...t,...c},{memoize:f,memoizeOptions:h=[],argsMemoize:m=uE,argsMemoizeOptions:p=[]}=d,x=R5(h),g=R5(p),y=tq(o),v=f(function(){return s++,a.apply(null,arguments)},...x),_=m(function(){l++;const A=rq(y,arguments);return u=v.apply(null,A),u},...g);return Object.assign(_,{resultFunc:a,memoizedResultFunc:v,dependencies:y,dependencyRecomputations:()=&gt;l,resetDependencyRecomputations:()=&gt;{l=0},lastResult:()=&gt;u,recomputations:()=&gt;s,resetRecomputations:()=&gt;{s=0},memoize:f,argsMemoize:m})};return Object.assign(n,{withTypes:()=&gt;n}),n}var Ie=aq(uE),oq=Object.assign((e,r=Ie)=&gt;{JV(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const t=Object.keys(e),n=t.map(s=&gt;e[s]);return r(n,(...s)=&gt;s.reduce((l,u,c)=&gt;(l[t[c]]=u,l),{}))},{withTypes:()=&gt;oq}),Vb={},qb={},Wb={},L5;function lq(){return L5||(L5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(n){return typeof n==&quot;symbol&quot;?1:n===null?2:n===void 0?3:n!==n?4:0}const t=(n,o,s)=&gt;{if(n!==o){const l=r(n),u=r(o);if(l===u&amp;&amp;l===0){if(n&lt;o)return s===&quot;desc&quot;?1:-1;if(n&gt;o)return s===&quot;desc&quot;?-1:1}return s===&quot;desc&quot;?u-l:l-u}return 0};e.compareValues=t})(Wb)),Wb}var Hb={},Kb={},F5;function dE(){return F5||(F5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return typeof t==&quot;symbol&quot;||t instanceof Symbol}e.isSymbol=r})(Kb)),Kb}var B5;function cq(){return B5||(B5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=dE(),t=/\.|\[(?:[^[\]]*|([&quot;&#039;])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(s,l){return Array.isArray(s)?!1:typeof s==&quot;number&quot;||typeof s==&quot;boolean&quot;||s==null||r.isSymbol(s)?!0:typeof s==&quot;string&quot;&amp;&amp;(n.test(s)||!t.test(s))||l!=null&amp;&amp;Object.hasOwn(l,s)}e.isKey=o})(Hb)),Hb}var $5;function uq(){return $5||($5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=lq(),t=cq(),n=O2();function o(s,l,u,c){if(s==null)return[];u=c?void 0:u,Array.isArray(s)||(s=Object.values(s)),Array.isArray(l)||(l=l==null?[null]:[l]),l.length===0&amp;&amp;(l=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(m=&gt;String(m));const a=(m,p)=&gt;{let x=m;for(let g=0;g&lt;p.length&amp;&amp;x!=null;++g)x=x[p[g]];return x},d=(m,p)=&gt;p==null||m==null?p:typeof m==&quot;object&quot;&amp;&amp;&quot;key&quot;in m?Object.hasOwn(p,m.key)?p[m.key]:a(p,m.path):typeof m==&quot;function&quot;?m(p):Array.isArray(m)?a(p,m):typeof p==&quot;object&quot;?p[m]:p,f=l.map(m=&gt;(Array.isArray(m)&amp;&amp;m.length===1&amp;&amp;(m=m[0]),m==null||typeof m==&quot;function&quot;||Array.isArray(m)||t.isKey(m)?m:{key:m,path:n.toPath(m)}));return s.map(m=&gt;({original:m,criteria:f.map(p=&gt;d(p,m))})).slice().sort((m,p)=&gt;{for(let x=0;x&lt;f.length;x++){const g=r.compareValues(m.criteria[x],p.criteria[x],u[x]);if(g!==0)return g}return 0}).map(m=&gt;m.original)}e.orderBy=o})(qb)),qb}var Xb={},z5;function dq(){return z5||(z5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t,n=1){const o=[],s=Math.floor(n),l=(u,c)=&gt;{for(let a=0;a&lt;u.length;a++){const d=u[a];Array.isArray(d)&amp;&amp;c&lt;s?l(d,c+1):o.push(d)}};return l(t,0),o}e.flatten=r})(Xb)),Xb}var Gb={},U5;function fE(){return U5||(U5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=lE(),t=D2(),n=rE(),o=iE();function s(l,u,c){return n.isObject(c)&amp;&amp;(typeof u==&quot;number&quot;&amp;&amp;t.isArrayLike(c)&amp;&amp;r.isIndex(u)&amp;&amp;u&lt;c.length||typeof u==&quot;string&quot;&amp;&amp;u in c)?o.isEqualsSameValueZero(c[u],l):!1}e.isIterateeCall=s})(Gb)),Gb}var V5;function fq(){return V5||(V5=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=uq(),t=dq(),n=fE();function o(s,...l){const u=l.length;return u&gt;1&amp;&amp;n.isIterateeCall(s,l[0],l[1])?l=[]:u&gt;2&amp;&amp;n.isIterateeCall(l[0],l[1],l[2])&amp;&amp;(l=[l[0]]),r.orderBy(s,t.flatten(l),[&quot;asc&quot;])}e.sortBy=o})(Vb)),Vb}var Yb,q5;function hq(){return q5||(q5=1,Yb=fq().sortBy),Yb}var mq=hq();const u0=Os(mq);var hE=e=&gt;e.legend.settings,pq=e=&gt;e.legend.size,gq=e=&gt;e.legend.payload,xq=Ie([gq,hE],(e,r)=&gt;{var{itemSorter:t}=r,n=e.flat(1);return t?u0(n,t):n});function bq(){return Et(xq)}var om=1;function mE(){var e=arguments.length&gt;0&amp;&amp;arguments[0]!==void 0?arguments[0]:[],[r,t]=O.useState({height:0,left:0,top:0,width:0}),n=O.useCallback(o=&gt;{if(o!=null){var s=o.getBoundingClientRect(),l={height:s.height,left:s.left,top:s.top,width:s.width};(Math.abs(l.height-r.height)&gt;om||Math.abs(l.left-r.left)&gt;om||Math.abs(l.top-r.top)&gt;om||Math.abs(l.width-r.width)&gt;om)&amp;&amp;t({height:l.height,left:l.left,top:l.top,width:l.width})}},[r.width,r.height,r.top,r.left,...e]);return[r,n]}function On(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var yq=typeof Symbol==&quot;function&quot;&amp;&amp;Symbol.observable||&quot;@@observable&quot;,W5=yq,Zb=()=&gt;Math.random().toString(36).substring(7).split(&quot;&quot;).join(&quot;.&quot;),vq={INIT:`@@redux/INIT${Zb()}`,REPLACE:`@@redux/REPLACE${Zb()}`,PROBE_UNKNOWN_ACTION:()=&gt;`@@redux/PROBE_UNKNOWN_ACTION${Zb()}`},ap=vq;function B2(e){if(typeof e!=&quot;object&quot;||e===null)return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r||Object.getPrototypeOf(e)===null}function pE(e,r,t){if(typeof e!=&quot;function&quot;)throw new Error(On(2));if(typeof r==&quot;function&quot;&amp;&amp;typeof t==&quot;function&quot;||typeof t==&quot;function&quot;&amp;&amp;typeof arguments[3]==&quot;function&quot;)throw new Error(On(0));if(typeof r==&quot;function&quot;&amp;&amp;typeof t&gt;&quot;u&quot;&amp;&amp;(t=r,r=void 0),typeof t&lt;&quot;u&quot;){if(typeof t!=&quot;function&quot;)throw new Error(On(1));return t(pE)(e,r)}let n=e,o=r,s=new Map,l=s,u=0,c=!1;function a(){l===s&amp;&amp;(l=new Map,s.forEach((g,y)=&gt;{l.set(y,g)}))}function d(){if(c)throw new Error(On(3));return o}function f(g){if(typeof g!=&quot;function&quot;)throw new Error(On(4));if(c)throw new Error(On(5));let y=!0;a();const v=u++;return l.set(v,g),function(){if(y){if(c)throw new Error(On(6));y=!1,a(),l.delete(v),s=null}}}function h(g){if(!B2(g))throw new Error(On(7));if(typeof g.type&gt;&quot;u&quot;)throw new Error(On(8));if(typeof g.type!=&quot;string&quot;)throw new Error(On(17));if(c)throw new Error(On(9));try{c=!0,o=n(o,g)}finally{c=!1}return(s=l).forEach(v=&gt;{v()}),g}function m(g){if(typeof g!=&quot;function&quot;)throw new Error(On(10));n=g,h({type:ap.REPLACE})}function p(){const g=f;return{subscribe(y){if(typeof y!=&quot;object&quot;||y===null)throw new Error(On(11));function v(){const S=y;S.next&amp;&amp;S.next(d())}return v(),{unsubscribe:g(v)}},[W5](){return this}}}return h({type:ap.INIT}),{dispatch:h,subscribe:f,getState:d,replaceReducer:m,[W5]:p}}function wq(e){Object.keys(e).forEach(r=&gt;{const t=e[r];if(typeof t(void 0,{type:ap.INIT})&gt;&quot;u&quot;)throw new Error(On(12));if(typeof t(void 0,{type:ap.PROBE_UNKNOWN_ACTION()})&gt;&quot;u&quot;)throw new Error(On(13))})}function gE(e){const r=Object.keys(e),t={};for(let s=0;s&lt;r.length;s++){const l=r[s];typeof e[l]==&quot;function&quot;&amp;&amp;(t[l]=e[l])}const n=Object.keys(t);let o;try{wq(t)}catch(s){o=s}return function(l={},u){if(o)throw o;let c=!1;const a={};for(let d=0;d&lt;n.length;d++){const f=n[d],h=t[f],m=l[f],p=h(m,u);if(typeof p&gt;&quot;u&quot;)throw u&amp;&amp;u.type,new Error(On(14));a[f]=p,c=c||p!==m}return c=c||n.length!==Object.keys(l).length,c?a:l}}function op(...e){return e.length===0?r=&gt;r:e.length===1?e[0]:e.reduce((r,t)=&gt;(...n)=&gt;r(t(...n)))}function _q(...e){return r=&gt;(t,n)=&gt;{const o=r(t,n);let s=()=&gt;{throw new Error(On(15))};const l={getState:o.getState,dispatch:(c,...a)=&gt;s(c,...a)},u=e.map(c=&gt;c(l));return s=op(...u)(o.dispatch),{...o,dispatch:s}}}function xE(e){return B2(e)&amp;&amp;&quot;type&quot;in e&amp;&amp;typeof e.type==&quot;string&quot;}var bE=Symbol.for(&quot;immer-nothing&quot;),H5=Symbol.for(&quot;immer-draftable&quot;),ci=Symbol.for(&quot;immer-state&quot;);function Ns(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ri=Object,Jc=Ri.getPrototypeOf,lp=&quot;constructor&quot;,d0=&quot;prototype&quot;,Pv=&quot;configurable&quot;,cp=&quot;enumerable&quot;,Pm=&quot;writable&quot;,Yd=&quot;value&quot;,za=e=&gt;!!e&amp;&amp;!!e[ci];function Ps(e){return e?yE(e)||h0(e)||!!e[H5]||!!e[lp]?.[H5]||m0(e)||p0(e):!1}var jq=Ri[d0][lp].toString(),K5=new WeakMap;function yE(e){if(!e||!$2(e))return!1;const r=Jc(e);if(r===null||r===Ri[d0])return!0;const t=Ri.hasOwnProperty.call(r,lp)&amp;&amp;r[lp];if(t===Object)return!0;if(!Lc(t))return!1;let n=K5.get(t);return n===void 0&amp;&amp;(n=Function.toString.call(t),K5.set(t,n)),n===jq}function f0(e,r,t=!0){wf(e)===0?(t?Reflect.ownKeys(e):Ri.keys(e)).forEach(o=&gt;{r(o,e[o],e)}):e.forEach((n,o)=&gt;r(o,n,e))}function wf(e){const r=e[ci];return r?r.type_:h0(e)?1:m0(e)?2:p0(e)?3:0}var X5=(e,r,t=wf(e))=&gt;t===2?e.has(r):Ri[d0].hasOwnProperty.call(e,r),Ov=(e,r,t=wf(e))=&gt;t===2?e.get(r):e[r],up=(e,r,t,n=wf(e))=&gt;{n===2?e.set(r,t):n===3?e.add(t):e[r]=t};function Nq(e,r){return e===r?e!==0||1/e===1/r:e!==e&amp;&amp;r!==r}var h0=Array.isArray,m0=e=&gt;e instanceof Map,p0=e=&gt;e instanceof Set,$2=e=&gt;typeof e==&quot;object&quot;,Lc=e=&gt;typeof e==&quot;function&quot;,Qb=e=&gt;typeof e==&quot;boolean&quot;;function kq(e){const r=+e;return Number.isInteger(r)&amp;&amp;String(r)===e}var ka=e=&gt;e.copy_||e.base_,z2=e=&gt;e.modified_?e.copy_:e.base_;function Tv(e,r){if(m0(e))return new Map(e);if(p0(e))return new Set(e);if(h0(e))return Array[d0].slice.call(e);const t=yE(e);if(r===!0||r===&quot;class_only&quot;&amp;&amp;!t){const n=Ri.getOwnPropertyDescriptors(e);delete n[ci];let o=Reflect.ownKeys(n);for(let s=0;s&lt;o.length;s++){const l=o[s],u=n[l];u[Pm]===!1&amp;&amp;(u[Pm]=!0,u[Pv]=!0),(u.get||u.set)&amp;&amp;(n[l]={[Pv]:!0,[Pm]:!0,[cp]:u[cp],[Yd]:e[l]})}return Ri.create(Jc(e),n)}else{const n=Jc(e);if(n!==null&amp;&amp;t)return{...e};const o=Ri.create(n);return Ri.assign(o,e)}}function U2(e,r=!1){return g0(e)||za(e)||!Ps(e)||(wf(e)&gt;1&amp;&amp;Ri.defineProperties(e,{set:lm,add:lm,clear:lm,delete:lm}),Ri.freeze(e),r&amp;&amp;f0(e,(t,n)=&gt;{U2(n,!0)},!1)),e}function Sq(){Ns(2)}var lm={[Yd]:Sq};function g0(e){return e===null||!$2(e)?!0:Ri.isFrozen(e)}var dp=&quot;MapSet&quot;,Iv=&quot;Patches&quot;,G5=&quot;ArrayMethods&quot;,vE={};function $l(e){const r=vE[e];return r||Ns(0,e),r}var Y5=e=&gt;!!vE[e],Zd,wE=()=&gt;Zd,Cq=(e,r)=&gt;({drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Y5(dp)?$l(dp):void 0,arrayMethodsPlugin_:Y5(G5)?$l(G5):void 0});function Z5(e,r){r&amp;&amp;(e.patchPlugin_=$l(Iv),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function Rv(e){Dv(e),e.drafts_.forEach(Eq),e.drafts_=null}function Dv(e){e===Zd&amp;&amp;(Zd=e.parent_)}var Q5=e=&gt;Zd=Cq(Zd,e);function Eq(e){const r=e[ci];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function J5(e,r){r.unfinalizedDrafts_=r.drafts_.length;const t=r.drafts_[0];if(e!==void 0&amp;&amp;e!==t){t[ci].modified_&amp;&amp;(Rv(r),Ns(4)),Ps(e)&amp;&amp;(e=eN(r,e));const{patchPlugin_:o}=r;o&amp;&amp;o.generateReplacementPatches_(t[ci].base_,e,r)}else e=eN(r,t);return Aq(r,e,!0),Rv(r),r.patches_&amp;&amp;r.patchListener_(r.patches_,r.inversePatches_),e!==bE?e:void 0}function eN(e,r){if(g0(r))return r;const t=r[ci];if(!t)return fp(r,e.handledSet_,e);if(!x0(t,e))return r;if(!t.modified_)return t.base_;if(!t.finalized_){const{callbacks_:n}=t;if(n)for(;n.length&gt;0;)n.pop()(e);NE(t,e)}return t.copy_}function Aq(e,r,t=!1){!e.parent_&amp;&amp;e.immer_.autoFreeze_&amp;&amp;e.canAutoFreeze_&amp;&amp;U2(r,t)}function _E(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var x0=(e,r)=&gt;e.scope_===r,Mq=[];function jE(e,r,t,n){const o=ka(e),s=e.type_;if(n!==void 0&amp;&amp;Ov(o,n,s)===r){up(o,n,t,s);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;f0(o,(c,a)=&gt;{if(za(a)){const d=u.get(a)||[];d.push(c),u.set(a,d)}})}const l=e.draftLocations_.get(r)??Mq;for(const u of l)up(o,u,t,s)}function Pq(e,r,t){e.callbacks_.push(function(o){const s=r;if(!s||!x0(s,o))return;o.mapSetPlugin_?.fixSetContents(s);const l=z2(s);jE(e,s.draft_??s,l,t),NE(s,o)})}function NE(e,r){if(e.modified_&amp;&amp;!e.finalized_&amp;&amp;(e.type_===3||e.type_===1&amp;&amp;e.allIndicesReassigned_||(e.assigned_?.size??0)&gt;0)){const{patchPlugin_:n}=r;if(n){const o=n.getPath(e);o&amp;&amp;n.generatePatches_(e,o,r)}_E(e)}}function Oq(e,r,t){const{scope_:n}=e;if(za(t)){const o=t[ci];x0(o,n)&amp;&amp;o.callbacks_.push(function(){Om(e);const l=z2(o);jE(e,t,l,r)})}else Ps(t)&amp;&amp;e.callbacks_.push(function(){const s=ka(e);e.type_===3?s.has(t)&amp;&amp;fp(t,n.handledSet_,n):Ov(s,r,e.type_)===t&amp;&amp;n.drafts_.length&gt;1&amp;&amp;(e.assigned_.get(r)??!1)===!0&amp;&amp;e.copy_&amp;&amp;fp(Ov(e.copy_,r,e.type_),n.handledSet_,n)})}function fp(e,r,t){return!t.immer_.autoFreeze_&amp;&amp;t.unfinalizedDrafts_&lt;1||za(e)||r.has(e)||!Ps(e)||g0(e)||(r.add(e),f0(e,(n,o)=&gt;{if(za(o)){const s=o[ci];if(x0(s,t)){const l=z2(s);up(e,n,l,e.type_),_E(s)}}else Ps(o)&amp;&amp;fp(o,r,t)})),e}function Tq(e,r){const t=h0(e),n={type_:t?1:0,scope_:r?r.scope_:wE(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,s=hp;t&amp;&amp;(o=[n],s=Qd);const{revoke:l,proxy:u}=Proxy.revocable(o,s);return n.draft_=u,n.revoke_=l,[u,n]}var hp={get(e,r){if(r===ci)return e;let t=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&amp;&amp;typeof r==&quot;string&quot;;if(n&amp;&amp;t?.isArrayOperationMethod(r))return t.createMethodInterceptor(e,r);const o=ka(e);if(!X5(o,r,e.type_))return Iq(e,o,r);const s=o[r];if(e.finalized_||!Ps(s)||n&amp;&amp;e.operationMethod&amp;&amp;t?.isMutatingArrayMethod(e.operationMethod)&amp;&amp;kq(r))return s;if(s===Jb(e.base_,r)){Om(e);const l=e.type_===1?+r:r,u=Fv(e.scope_,s,e,l);return e.copy_[l]=u}return s},has(e,r){return r in ka(e)},ownKeys(e){return Reflect.ownKeys(ka(e))},set(e,r,t){const n=kE(ka(e),r);if(n?.set)return n.set.call(e.draft_,t),!0;if(!e.modified_){const o=Jb(ka(e),r),s=o?.[ci];if(s&amp;&amp;s.base_===t)return e.copy_[r]=t,e.assigned_.set(r,!1),!0;if(Nq(t,o)&amp;&amp;(t!==void 0||X5(e.base_,r,e.type_)))return!0;Om(e),Lv(e)}return e.copy_[r]===t&amp;&amp;(t!==void 0||r in e.copy_)||Number.isNaN(t)&amp;&amp;Number.isNaN(e.copy_[r])||(e.copy_[r]=t,e.assigned_.set(r,!0),Oq(e,r,t)),!0},deleteProperty(e,r){return Om(e),Jb(e.base_,r)!==void 0||r in e.base_?(e.assigned_.set(r,!1),Lv(e)):e.assigned_.delete(r),e.copy_&amp;&amp;delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const t=ka(e),n=Reflect.getOwnPropertyDescriptor(t,r);return n&amp;&amp;{[Pm]:!0,[Pv]:e.type_!==1||r!==&quot;length&quot;,[cp]:n[cp],[Yd]:t[r]}},defineProperty(){Ns(11)},getPrototypeOf(e){return Jc(e.base_)},setPrototypeOf(){Ns(12)}},Qd={};for(let e in hp){let r=hp[e];Qd[e]=function(){const t=arguments;return t[0]=t[0][0],r.apply(this,t)}}Qd.deleteProperty=function(e,r){return Qd.set.call(this,e,r,void 0)};Qd.set=function(e,r,t){return hp.set.call(this,e[0],r,t,e[0])};function Jb(e,r){const t=e[ci];return(t?ka(t):e)[r]}function Iq(e,r,t){const n=kE(r,t);return n?Yd in n?n[Yd]:n.get?.call(e.draft_):void 0}function kE(e,r){if(!(r in e))return;let t=Jc(e);for(;t;){const n=Object.getOwnPropertyDescriptor(t,r);if(n)return n;t=Jc(t)}}function Lv(e){e.modified_||(e.modified_=!0,e.parent_&amp;&amp;Lv(e.parent_))}function Om(e){e.copy_||(e.assigned_=new Map,e.copy_=Tv(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Rq=class{constructor(r){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,o)=&gt;{if(Lc(t)&amp;&amp;!Lc(n)){const l=n;n=t;const u=this;return function(a=l,...d){return u.produce(a,f=&gt;n.call(this,f,...d))}}Lc(n)||Ns(6),o!==void 0&amp;&amp;!Lc(o)&amp;&amp;Ns(7);let s;if(Ps(t)){const l=Q5(this),u=Fv(l,t,void 0);let c=!0;try{s=n(u),c=!1}finally{c?Rv(l):Dv(l)}return Z5(l,o),J5(s,l)}else if(!t||!$2(t)){if(s=n(t),s===void 0&amp;&amp;(s=t),s===bE&amp;&amp;(s=void 0),this.autoFreeze_&amp;&amp;U2(s,!0),o){const l=[],u=[];$l(Iv).generateReplacementPatches_(t,s,{patches_:l,inversePatches_:u}),o(l,u)}return s}else Ns(1,t)},this.produceWithPatches=(t,n)=&gt;{if(Lc(t))return(u,...c)=&gt;this.produceWithPatches(u,a=&gt;t(a,...c));let o,s;return[this.produce(t,n,(u,c)=&gt;{o=u,s=c}),o,s]},Qb(r?.autoFreeze)&amp;&amp;this.setAutoFreeze(r.autoFreeze),Qb(r?.useStrictShallowCopy)&amp;&amp;this.setUseStrictShallowCopy(r.useStrictShallowCopy),Qb(r?.useStrictIteration)&amp;&amp;this.setUseStrictIteration(r.useStrictIteration)}createDraft(r){Ps(r)||Ns(8),za(r)&amp;&amp;(r=Cs(r));const t=Q5(this),n=Fv(t,r,void 0);return n[ci].isManual_=!0,Dv(t),n}finishDraft(r,t){const n=r&amp;&amp;r[ci];(!n||!n.isManual_)&amp;&amp;Ns(9);const{scope_:o}=n;return Z5(o,t),J5(void 0,o)}setAutoFreeze(r){this.autoFreeze_=r}setUseStrictShallowCopy(r){this.useStrictShallowCopy_=r}setUseStrictIteration(r){this.useStrictIteration_=r}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(r,t){let n;for(n=t.length-1;n&gt;=0;n--){const s=t[n];if(s.path.length===0&amp;&amp;s.op===&quot;replace&quot;){r=s.value;break}}n&gt;-1&amp;&amp;(t=t.slice(n+1));const o=$l(Iv).applyPatches_;return za(r)?o(r,t):this.produce(r,s=&gt;o(s,t))}};function Fv(e,r,t,n){const[o,s]=m0(r)?$l(dp).proxyMap_(r,t):p0(r)?$l(dp).proxySet_(r,t):Tq(r,t);return(t?.scope_??wE()).drafts_.push(o),s.callbacks_=t?.callbacks_??[],s.key_=n,t&amp;&amp;n!==void 0?Pq(t,s,n):s.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:a}=c;s.modified_&amp;&amp;a&amp;&amp;a.generatePatches_(s,[],c)}),o}function Cs(e){return za(e)||Ns(10,e),SE(e)}function SE(e){if(!Ps(e)||g0(e))return e;const r=e[ci];let t,n=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,t=Tv(e,r.scope_.immer_.useStrictShallowCopy_),n=r.scope_.immer_.shouldUseStrictIteration()}else t=Tv(e,!0);return f0(t,(o,s)=&gt;{up(t,o,SE(s))},n),r&amp;&amp;(r.finalized_=!1),t}var Dq=new Rq,CE=Dq.produce;function EE(e){return({dispatch:t,getState:n})=&gt;o=&gt;s=&gt;typeof s==&quot;function&quot;?s(t,n,e):o(s)}var Lq=EE(),Fq=EE,Bq=typeof window&lt;&quot;u&quot;&amp;&amp;window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==&quot;object&quot;?op:op.apply(null,arguments)};function ss(e,r){function t(...n){if(r){let o=r(...n);if(!o)throw new Error(Di(0));return{type:e,payload:o.payload,...&quot;meta&quot;in o&amp;&amp;{meta:o.meta},...&quot;error&quot;in o&amp;&amp;{error:o.error}}}return{type:e,payload:n[0]}}return t.toString=()=&gt;`${e}`,t.type=e,t.match=n=&gt;xE(n)&amp;&amp;n.type===e,t}var AE=class Ad extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Ad.prototype)}static get[Symbol.species](){return Ad}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&amp;&amp;Array.isArray(r[0])?new Ad(...r[0].concat(this)):new Ad(...r.concat(this))}};function tN(e){return Ps(e)?CE(e,()=&gt;{}):e}function cm(e,r,t){return e.has(r)?e.get(r):e.set(r,t(r)).get(r)}function $q(e){return typeof e==&quot;boolean&quot;}var zq=()=&gt;function(r){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=r??{};let l=new AE;return t&amp;&amp;($q(t)?l.push(Lq):l.push(Fq(t.extraArgument))),l},ME=&quot;RTK_autoBatch&quot;,Tr=()=&gt;e=&gt;({payload:e,meta:{[ME]:!0}}),rN=e=&gt;r=&gt;{setTimeout(r,e)},PE=(e={type:&quot;raf&quot;})=&gt;r=&gt;(...t)=&gt;{const n=r(...t);let o=!0,s=!1,l=!1;const u=new Set,c=e.type===&quot;tick&quot;?queueMicrotask:e.type===&quot;raf&quot;?typeof window&lt;&quot;u&quot;&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame:rN(10):e.type===&quot;callback&quot;?e.queueNotification:rN(e.timeout),a=()=&gt;{l=!1,s&amp;&amp;(s=!1,u.forEach(d=&gt;d()))};return Object.assign({},n,{subscribe(d){const f=()=&gt;o&amp;&amp;d(),h=n.subscribe(f);return u.add(d),()=&gt;{h(),u.delete(d)}},dispatch(d){try{return o=!d?.meta?.[ME],s=!o,s&amp;&amp;(l||(l=!0,c(a))),n.dispatch(d)}finally{o=!0}}})},Uq=e=&gt;function(t){const{autoBatch:n=!0}=t??{};let o=new AE(e);return n&amp;&amp;o.push(PE(typeof n==&quot;object&quot;?n:void 0)),o};function Vq(e){const r=zq(),{reducer:t=void 0,middleware:n,devTools:o=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let u;if(typeof t==&quot;function&quot;)u=t;else if(B2(t))u=gE(t);else throw new Error(Di(1));let c;typeof n==&quot;function&quot;?c=n(r):c=r();let a=op;o&amp;&amp;(a=Bq({trace:!1,...typeof o==&quot;object&quot;&amp;&amp;o}));const d=_q(...c),f=Uq(d);let h=typeof l==&quot;function&quot;?l(f):f();const m=a(...h);return pE(u,s,m)}function OE(e){const r={},t=[];let n;const o={addCase(s,l){const u=typeof s==&quot;string&quot;?s:s.type;if(!u)throw new Error(Di(28));if(u in r)throw new Error(Di(29));return r[u]=l,o},addAsyncThunk(s,l){return l.pending&amp;&amp;(r[s.pending.type]=l.pending),l.rejected&amp;&amp;(r[s.rejected.type]=l.rejected),l.fulfilled&amp;&amp;(r[s.fulfilled.type]=l.fulfilled),l.settled&amp;&amp;t.push({matcher:s.settled,reducer:l.settled}),o},addMatcher(s,l){return t.push({matcher:s,reducer:l}),o},addDefaultCase(s){return n=s,o}};return e(o),[r,t,n]}function qq(e){return typeof e==&quot;function&quot;}function Wq(e,r){let[t,n,o]=OE(r),s;if(qq(e))s=()=&gt;tN(e());else{const u=tN(e);s=()=&gt;u}function l(u=s(),c){let a=[t[c.type],...n.filter(({matcher:d})=&gt;d(c)).map(({reducer:d})=&gt;d)];return a.filter(d=&gt;!!d).length===0&amp;&amp;(a=[o]),a.reduce((d,f)=&gt;{if(f)if(za(d)){const m=f(d,c);return m===void 0?d:m}else{if(Ps(d))return CE(d,h=&gt;f(h,c));{const h=f(d,c);if(h===void 0){if(d===null)return d;throw Error(&quot;A case reducer on a non-draftable value must not return undefined&quot;)}return h}}return d},u)}return l.getInitialState=s,l}var Hq=&quot;ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW&quot;,Kq=(e=21)=&gt;{let r=&quot;&quot;,t=e;for(;t--;)r+=Hq[Math.random()*64|0];return r},Xq=Symbol.for(&quot;rtk-slice-createasyncthunk&quot;);function Gq(e,r){return`${e}/${r}`}function Yq({creators:e}={}){const r=e?.asyncThunk?.[Xq];return function(n){const{name:o,reducerPath:s=o}=n;if(!o)throw new Error(Di(11));const l=(typeof n.reducers==&quot;function&quot;?n.reducers(Qq()):n.reducers)||{},u=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(_,S){const A=typeof _==&quot;string&quot;?_:_.type;if(!A)throw new Error(Di(12));if(A in c.sliceCaseReducersByType)throw new Error(Di(13));return c.sliceCaseReducersByType[A]=S,a},addMatcher(_,S){return c.sliceMatchers.push({matcher:_,reducer:S}),a},exposeAction(_,S){return c.actionCreators[_]=S,a},exposeCaseReducer(_,S){return c.sliceCaseReducersByName[_]=S,a}};u.forEach(_=&gt;{const S=l[_],A={reducerName:_,type:Gq(o,_),createNotation:typeof n.reducers==&quot;function&quot;};eW(S)?rW(A,S,a,r):Jq(A,S,a)});function d(){const[_={},S=[],A=void 0]=typeof n.extraReducers==&quot;function&quot;?OE(n.extraReducers):[n.extraReducers],I={..._,...c.sliceCaseReducersByType};return Wq(n.initialState,V=&gt;{for(let F in I)V.addCase(F,I[F]);for(let F of c.sliceMatchers)V.addMatcher(F.matcher,F.reducer);for(let F of S)V.addMatcher(F.matcher,F.reducer);A&amp;&amp;V.addDefaultCase(A)})}const f=_=&gt;_,h=new Map,m=new WeakMap;let p;function x(_,S){return p||(p=d()),p(_,S)}function g(){return p||(p=d()),p.getInitialState()}function y(_,S=!1){function A(V){let F=V[_];return typeof F&gt;&quot;u&quot;&amp;&amp;S&amp;&amp;(F=cm(m,A,g)),F}function I(V=f){const F=cm(h,S,()=&gt;new WeakMap);return cm(F,V,()=&gt;{const q={};for(const[H,B]of Object.entries(n.selectors??{}))q[H]=Zq(B,V,()=&gt;cm(m,V,g),S);return q})}return{reducerPath:_,getSelectors:I,get selectors(){return I(A)},selectSlice:A}}const v={name:o,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:g,...y(s),injectInto(_,{reducerPath:S,...A}={}){const I=S??s;return _.inject({reducerPath:I,reducer:x},A),{...v,...y(I,!0)}}};return v}}function Zq(e,r,t,n){function o(s,...l){let u=r(s);return typeof u&gt;&quot;u&quot;&amp;&amp;n&amp;&amp;(u=t()),e(u,...l)}return o.unwrapped=e,o}var Si=Yq();function Qq(){function e(r,t){return{_reducerDefinitionType:&quot;asyncThunk&quot;,payloadCreator:r,...t}}return e.withTypes=()=&gt;e,{reducer(r){return Object.assign({[r.name](...t){return r(...t)}}[r.name],{_reducerDefinitionType:&quot;reducer&quot;})},preparedReducer(r,t){return{_reducerDefinitionType:&quot;reducerWithPrepare&quot;,prepare:r,reducer:t}},asyncThunk:e}}function Jq({type:e,reducerName:r,createNotation:t},n,o){let s,l;if(&quot;reducer&quot;in n){if(t&amp;&amp;!tW(n))throw new Error(Di(17));s=n.reducer,l=n.prepare}else s=n;o.addCase(e,s).exposeCaseReducer(r,s).exposeAction(r,l?ss(e,l):ss(e))}function eW(e){return e._reducerDefinitionType===&quot;asyncThunk&quot;}function tW(e){return e._reducerDefinitionType===&quot;reducerWithPrepare&quot;}function rW({type:e,reducerName:r},t,n,o){if(!o)throw new Error(Di(18));const{payloadCreator:s,fulfilled:l,pending:u,rejected:c,settled:a,options:d}=t,f=o(e,s,d);n.exposeAction(r,f),l&amp;&amp;n.addCase(f.fulfilled,l),u&amp;&amp;n.addCase(f.pending,u),c&amp;&amp;n.addCase(f.rejected,c),a&amp;&amp;n.addMatcher(f.settled,a),n.exposeCaseReducer(r,{fulfilled:l||um,pending:u||um,rejected:c||um,settled:a||um})}function um(){}var nW=&quot;task&quot;,TE=&quot;listener&quot;,IE=&quot;completed&quot;,V2=&quot;cancelled&quot;,iW=`task-${V2}`,sW=`task-${IE}`,Bv=`${TE}-${V2}`,aW=`${TE}-${IE}`,b0=class{constructor(e){this.code=e,this.message=`${nW} ${V2} (reason: ${e})`}name=&quot;TaskAbortError&quot;;message},q2=(e,r)=&gt;{if(typeof e!=&quot;function&quot;)throw new TypeError(Di(32))},mp=()=&gt;{},RE=(e,r=mp)=&gt;(e.catch(r),e),DE=(e,r)=&gt;(e.addEventListener(&quot;abort&quot;,r,{once:!0}),()=&gt;e.removeEventListener(&quot;abort&quot;,r)),Dl=e=&gt;{if(e.aborted)throw new b0(e.reason)};function LE(e,r){let t=mp;return new Promise((n,o)=&gt;{const s=()=&gt;o(new b0(e.reason));if(e.aborted){s();return}t=DE(e,s),r.finally(()=&gt;t()).then(n,o)}).finally(()=&gt;{t=mp})}var oW=async(e,r)=&gt;{try{return await Promise.resolve(),{status:&quot;ok&quot;,value:await e()}}catch(t){return{status:t instanceof b0?&quot;cancelled&quot;:&quot;rejected&quot;,error:t}}finally{r?.()}},pp=e=&gt;r=&gt;RE(LE(e,r).then(t=&gt;(Dl(e),t))),FE=e=&gt;{const r=pp(e);return t=&gt;r(new Promise(n=&gt;setTimeout(n,t)))},{assign:Hc}=Object,nN={},y0=&quot;listenerMiddleware&quot;,lW=(e,r)=&gt;{const t=n=&gt;DE(e,()=&gt;n.abort(e.reason));return(n,o)=&gt;{q2(n);const s=new AbortController;t(s);const l=oW(async()=&gt;{Dl(e),Dl(s.signal);const u=await n({pause:pp(s.signal),delay:FE(s.signal),signal:s.signal});return Dl(s.signal),u},()=&gt;s.abort(sW));return o?.autoJoin&amp;&amp;r.push(l.catch(mp)),{result:pp(e)(l),cancel(){s.abort(iW)}}}},cW=(e,r)=&gt;{const t=async(n,o)=&gt;{Dl(r);let s=()=&gt;{};const u=[new Promise((c,a)=&gt;{let d=e({predicate:n,effect:(f,h)=&gt;{h.unsubscribe(),c([f,h.getState(),h.getOriginalState()])}});s=()=&gt;{d(),a()}})];o!=null&amp;&amp;u.push(new Promise(c=&gt;setTimeout(c,o,null)));try{const c=await LE(r,Promise.race(u));return Dl(r),c}finally{s()}};return(n,o)=&gt;RE(t(n,o))},BE=e=&gt;{let{type:r,actionCreator:t,matcher:n,predicate:o,effect:s}=e;if(r)o=ss(r).match;else if(t)r=t.type,o=t.match;else if(n)o=n;else if(!o)throw new Error(Di(21));return q2(s),{predicate:o,type:r,effect:s}},$E=Hc(e=&gt;{const{type:r,predicate:t,effect:n}=BE(e);return{id:Kq(),effect:n,type:r,predicate:t,pending:new Set,unsubscribe:()=&gt;{throw new Error(Di(22))}}},{withTypes:()=&gt;$E}),iN=(e,r)=&gt;{const{type:t,effect:n,predicate:o}=BE(r);return Array.from(e.values()).find(s=&gt;(typeof t==&quot;string&quot;?s.type===t:s.predicate===o)&amp;&amp;s.effect===n)},$v=e=&gt;{e.pending.forEach(r=&gt;{r.abort(Bv)})},uW=(e,r)=&gt;()=&gt;{for(const t of r.keys())$v(t);e.clear()},sN=(e,r,t)=&gt;{try{e(r,t)}catch(n){setTimeout(()=&gt;{throw n},0)}},zE=Hc(ss(`${y0}/add`),{withTypes:()=&gt;zE}),dW=ss(`${y0}/removeAll`),UE=Hc(ss(`${y0}/remove`),{withTypes:()=&gt;UE}),fW=(...e)=&gt;{console.error(`${y0}/error`,...e)},_f=(e={})=&gt;{const r=new Map,t=new Map,n=m=&gt;{const p=t.get(m)??0;t.set(m,p+1)},o=m=&gt;{const p=t.get(m)??1;p===1?t.delete(m):t.set(m,p-1)},{extra:s,onError:l=fW}=e;q2(l);const u=m=&gt;(m.unsubscribe=()=&gt;r.delete(m.id),r.set(m.id,m),p=&gt;{m.unsubscribe(),p?.cancelActive&amp;&amp;$v(m)}),c=m=&gt;{const p=iN(r,m)??$E(m);return u(p)};Hc(c,{withTypes:()=&gt;c});const a=m=&gt;{const p=iN(r,m);return p&amp;&amp;(p.unsubscribe(),m.cancelActive&amp;&amp;$v(p)),!!p};Hc(a,{withTypes:()=&gt;a});const d=async(m,p,x,g)=&gt;{const y=new AbortController,v=cW(c,y.signal),_=[];try{m.pending.add(y),n(m),await Promise.resolve(m.effect(p,Hc({},x,{getOriginalState:g,condition:(S,A)=&gt;v(S,A).then(Boolean),take:v,delay:FE(y.signal),pause:pp(y.signal),extra:s,signal:y.signal,fork:lW(y.signal,_),unsubscribe:m.unsubscribe,subscribe:()=&gt;{r.set(m.id,m)},cancelActiveListeners:()=&gt;{m.pending.forEach((S,A,I)=&gt;{S!==y&amp;&amp;(S.abort(Bv),I.delete(S))})},cancel:()=&gt;{y.abort(Bv),m.pending.delete(y)},throwIfCancelled:()=&gt;{Dl(y.signal)}})))}catch(S){S instanceof b0||sN(l,S,{raisedBy:&quot;effect&quot;})}finally{await Promise.all(_),y.abort(aW),o(m),m.pending.delete(y)}},f=uW(r,t);return{middleware:m=&gt;p=&gt;x=&gt;{if(!xE(x))return p(x);if(zE.match(x))return c(x.payload);if(dW.match(x)){f();return}if(UE.match(x))return a(x.payload);let g=m.getState();const y=()=&gt;{if(g===nN)throw new Error(Di(23));return g};let v;try{if(v=p(x),r.size&gt;0){const _=m.getState(),S=Array.from(r.values());for(const A of S){let I=!1;try{I=A.predicate(x,_,g)}catch(V){I=!1,sN(l,V,{raisedBy:&quot;predicate&quot;})}I&amp;&amp;d(A,x,m,y)}}}finally{g=nN}return v},startListening:c,stopListening:a,clearListeners:f}};function Di(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var hW={layoutType:&quot;horizontal&quot;,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},VE=Si({name:&quot;chartLayout&quot;,initialState:hW,reducers:{setLayout(e,r){e.layoutType=r.payload},setChartSize(e,r){e.width=r.payload.width,e.height=r.payload.height},setMargin(e,r){var t,n,o,s;e.margin.top=(t=r.payload.top)!==null&amp;&amp;t!==void 0?t:0,e.margin.right=(n=r.payload.right)!==null&amp;&amp;n!==void 0?n:0,e.margin.bottom=(o=r.payload.bottom)!==null&amp;&amp;o!==void 0?o:0,e.margin.left=(s=r.payload.left)!==null&amp;&amp;s!==void 0?s:0},setScale(e,r){e.scale=r.payload}}}),{setMargin:mW,setLayout:pW,setChartSize:gW,setScale:xW}=VE.actions,bW=VE.reducer;function qE(e,r,t){return Array.isArray(e)&amp;&amp;e&amp;&amp;r+t!==0?e.slice(r,t+1):e}function zr(e){return Number.isFinite(e)}function ia(e){return typeof e==&quot;number&quot;&amp;&amp;e&gt;0&amp;&amp;Number.isFinite(e)}function aN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Uc(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?aN(Object(t),!0).forEach(function(n){yW(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):aN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function yW(e,r,t){return(r=vW(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function vW(e){var r=wW(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function wW(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function tn(e,r,t){return Rr(e)||Rr(r)?t:na(r)?Qc(e,r,t):typeof r==&quot;function&quot;?r(e):t}var _W=(e,r,t)=&gt;{if(r&amp;&amp;t){var{width:n,height:o}=t,{align:s,verticalAlign:l,layout:u}=r;if((u===&quot;vertical&quot;||u===&quot;horizontal&quot;&amp;&amp;l===&quot;middle&quot;)&amp;&amp;s!==&quot;center&quot;&amp;&amp;xt(e[s]))return Uc(Uc({},e),{},{[s]:e[s]+(n||0)});if((u===&quot;horizontal&quot;||u===&quot;vertical&quot;&amp;&amp;s===&quot;center&quot;)&amp;&amp;l!==&quot;middle&quot;&amp;&amp;xt(e[l]))return Uc(Uc({},e),{},{[l]:e[l]+(o||0)})}return e},Ko=(e,r)=&gt;e===&quot;horizontal&quot;&amp;&amp;r===&quot;xAxis&quot;||e===&quot;vertical&quot;&amp;&amp;r===&quot;yAxis&quot;||e===&quot;centric&quot;&amp;&amp;r===&quot;angleAxis&quot;||e===&quot;radial&quot;&amp;&amp;r===&quot;radiusAxis&quot;,WE=(e,r,t,n)=&gt;{if(n)return e.map(u=&gt;u.coordinate);var o,s,l=e.map(u=&gt;(u.coordinate===r&amp;&amp;(o=!0),u.coordinate===t&amp;&amp;(s=!0),u.coordinate));return o||l.push(r),s||l.push(t),l},HE=(e,r,t)=&gt;{if(!e)return null;var{duplicateDomain:n,type:o,range:s,scale:l,realScaleType:u,isCategorical:c,categoricalDomain:a,tickCount:d,ticks:f,niceTicks:h,axisType:m}=e;if(!l)return null;var p=u===&quot;scaleBand&quot;&amp;&amp;l.bandwidth?l.bandwidth()/2:2,x=o===&quot;category&quot;&amp;&amp;l.bandwidth?l.bandwidth()/p:0;if(x=m===&quot;angleAxis&quot;&amp;&amp;s&amp;&amp;s.length&gt;=2?wi(s[0]-s[1])*2*x:x,f||h){var g=(f||h||[]).map((y,v)=&gt;{var _=n?n.indexOf(y):y;return{coordinate:l(_)+x,value:y,offset:x,index:v}});return g.filter(y=&gt;!As(y.coordinate))}return c&amp;&amp;a?a.map((y,v)=&gt;({coordinate:l(y)+x,value:y,index:v,offset:x})):l.ticks&amp;&amp;d!=null?l.ticks(d).map((y,v)=&gt;({coordinate:l(y)+x,value:y,offset:x,index:v})):l.domain().map((y,v)=&gt;({coordinate:l(y)+x,value:n?n[y]:y,index:v,offset:x}))},oN=1e-4,jW=e=&gt;{var r=e.domain();if(!(!r||r.length&lt;=2)){var t=r.length,n=e.range(),o=Math.min(n[0],n[1])-oN,s=Math.max(n[0],n[1])+oN,l=e(r[0]),u=e(r[t-1]);(l&lt;o||l&gt;s||u&lt;o||u&gt;s)&amp;&amp;e.domain([r[0],r[t-1]])}},NW=(e,r)=&gt;{if(!r||r.length!==2||!xt(r[0])||!xt(r[1]))return e;var t=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]),o=[e[0],e[1]];return(!xt(e[0])||e[0]&lt;t)&amp;&amp;(o[0]=t),(!xt(e[1])||e[1]&gt;n)&amp;&amp;(o[1]=n),o[0]&gt;n&amp;&amp;(o[0]=n),o[1]&lt;t&amp;&amp;(o[1]=t),o},kW=e=&gt;{var r,t=e.length;if(!(t&lt;=0)){var n=(r=e[0])===null||r===void 0?void 0:r.length;if(!(n==null||n&lt;=0))for(var o=0;o&lt;n;++o)for(var s=0,l=0,u=0;u&lt;t;++u){var c=e[u],a=c?.[o];if(a!=null){var d=a[1],f=a[0],h=As(d)?f:d;h&gt;=0?(a[0]=s,a[1]=s+h,s=d):(a[0]=l,a[1]=l+h,l=d)}}}},SW=e=&gt;{var r,t=e.length;if(!(t&lt;=0)){var n=(r=e[0])===null||r===void 0?void 0:r.length;if(!(n==null||n&lt;=0))for(var o=0;o&lt;n;++o)for(var s=0,l=0;l&lt;t;++l){var u=e[l],c=u?.[o];if(c!=null){var a=As(c[1])?c[0]:c[1];a&gt;=0?(c[0]=s,c[1]=s+a,s=c[1]):(c[0]=0,c[1]=0)}}}},CW={sign:kW,expand:WU,none:Bl,silhouette:HU,wiggle:KU,positive:SW},EW=(e,r,t)=&gt;{var n,o=(n=CW[t])!==null&amp;&amp;n!==void 0?n:Bl,s=qU().keys(r).value((u,c)=&gt;Number(tn(u,c,0))).order(Av).offset(o),l=s(e);return l.forEach((u,c)=&gt;{u.forEach((a,d)=&gt;{var f=tn(e[d],r[c],0);Array.isArray(f)&amp;&amp;f.length===2&amp;&amp;xt(f[0])&amp;&amp;xt(f[1])&amp;&amp;(a[0]=f[0],a[1]=f[1])})}),l};function AW(e){return e==null?void 0:String(e)}function lN(e){var{axis:r,ticks:t,bandSize:n,entry:o,index:s,dataKey:l}=e;if(r.type===&quot;category&quot;){if(!r.allowDuplicatedCategory&amp;&amp;r.dataKey&amp;&amp;!Rr(o[r.dataKey])){var u=Q7(t,&quot;value&quot;,o[r.dataKey]);if(u)return u.coordinate+n/2}return t[s]?t[s].coordinate+n/2:null}var c=tn(o,Rr(l)?r.dataKey:l);return Rr(c)?null:r.scale(c)}var cN=e=&gt;{var{axis:r,ticks:t,offset:n,bandSize:o,entry:s,index:l}=e;if(r.type===&quot;category&quot;)return t[l]?t[l].coordinate+n:null;var u=tn(s,r.dataKey,r.scale.domain()[l]);return Rr(u)?null:r.scale(u)-o/2+n},MW=e=&gt;{var{numericAxis:r}=e,t=r.scale.domain();if(r.type===&quot;number&quot;){var n=Math.min(t[0],t[1]),o=Math.max(t[0],t[1]);return n&lt;=0&amp;&amp;o&gt;=0?0:o&lt;0?o:n}return t[0]},PW=e=&gt;{var r=e.flat(2).filter(xt);return[Math.min(...r),Math.max(...r)]},OW=e=&gt;[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],TW=(e,r,t)=&gt;{if(e!=null)return OW(Object.keys(e).reduce((n,o)=&gt;{var s=e[o];if(!s)return n;var{stackedData:l}=s,u=l.reduce((c,a)=&gt;{var d=qE(a,r,t),f=PW(d);return!zr(f[0])||!zr(f[1])?c:[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},uN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,eu=(e,r,t)=&gt;{if(e&amp;&amp;e.scale&amp;&amp;e.scale.bandwidth){var n=e.scale.bandwidth();if(!t||n&gt;0)return n}if(e&amp;&amp;r&amp;&amp;r.length&gt;=2){for(var o=u0(r,d=&gt;d.coordinate),s=1/0,l=1,u=o.length;l&lt;u;l++){var c=o[l],a=o[l-1];s=Math.min((c?.coordinate||0)-(a?.coordinate||0),s)}return s===1/0?0:s}return t?void 0:0};function fN(e){var{tooltipEntrySettings:r,dataKey:t,payload:n,value:o,name:s}=e;return Uc(Uc({},r),{},{dataKey:t,payload:n,value:o,name:s})}function v0(e,r){if(e)return String(e);if(typeof r==&quot;string&quot;)return r}var IW=(e,r)=&gt;{if(r===&quot;horizontal&quot;)return e.chartX;if(r===&quot;vertical&quot;)return e.chartY},RW=(e,r)=&gt;r===&quot;centric&quot;?e.angle:e.radius,Xa=e=&gt;e.layout.width,Ga=e=&gt;e.layout.height,DW=e=&gt;e.layout.scale,KE=e=&gt;e.layout.margin,w0=Ie(e=&gt;e.cartesianAxis.xAxis,e=&gt;Object.values(e)),_0=Ie(e=&gt;e.cartesianAxis.yAxis,e=&gt;Object.values(e)),LW=&quot;data-recharts-item-index&quot;,FW=&quot;data-recharts-item-id&quot;,jf=60;function hN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function dm(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?hN(Object(t),!0).forEach(function(n){BW(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function BW(e,r,t){return(r=$W(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function $W(e){var r=zW(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function zW(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var UW=e=&gt;e.brush.height;function VW(e){var r=_0(e);return r.reduce((t,n)=&gt;{if(n.orientation===&quot;left&quot;&amp;&amp;!n.mirror&amp;&amp;!n.hide){var o=typeof n.width==&quot;number&quot;?n.width:jf;return t+o}return t},0)}function qW(e){var r=_0(e);return r.reduce((t,n)=&gt;{if(n.orientation===&quot;right&quot;&amp;&amp;!n.mirror&amp;&amp;!n.hide){var o=typeof n.width==&quot;number&quot;?n.width:jf;return t+o}return t},0)}function WW(e){var r=w0(e);return r.reduce((t,n)=&gt;n.orientation===&quot;top&quot;&amp;&amp;!n.mirror&amp;&amp;!n.hide?t+n.height:t,0)}function HW(e){var r=w0(e);return r.reduce((t,n)=&gt;n.orientation===&quot;bottom&quot;&amp;&amp;!n.mirror&amp;&amp;!n.hide?t+n.height:t,0)}var kn=Ie([Xa,Ga,KE,UW,VW,qW,WW,HW,hE,pq],(e,r,t,n,o,s,l,u,c,a)=&gt;{var d={left:(t.left||0)+o,right:(t.right||0)+s},f={top:(t.top||0)+l,bottom:(t.bottom||0)+u},h=dm(dm({},f),d),m=h.bottom;h.bottom+=n,h=_W(h,c,a);var p=e-h.left-h.right,x=r-h.top-h.bottom;return dm(dm({brushBottom:m},h),{},{width:Math.max(p,0),height:Math.max(x,0)})}),KW=Ie(kn,e=&gt;({x:e.left,y:e.top,width:e.width,height:e.height})),W2=Ie(Xa,Ga,(e,r)=&gt;({x:0,y:0,width:e,height:r})),XW=O.createContext(null),Xn=()=&gt;O.useContext(XW)!=null,j0=e=&gt;e.brush,N0=Ie([j0,kn,KE],(e,r,t)=&gt;({height:e.height,x:xt(e.x)?e.x:r.left,y:xt(e.y)?e.y:r.top+r.height+r.brushBottom-(t?.bottom||0),width:xt(e.width)?e.width:r.width})),ey={},ty={},ry={},mN;function GW(){return mN||(mN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t,n,{signal:o,edges:s}={}){let l,u=null;const c=s!=null&amp;&amp;s.includes(&quot;leading&quot;),a=s==null||s.includes(&quot;trailing&quot;),d=()=&gt;{u!==null&amp;&amp;(t.apply(l,u),l=void 0,u=null)},f=()=&gt;{a&amp;&amp;d(),x()};let h=null;const m=()=&gt;{h!=null&amp;&amp;clearTimeout(h),h=setTimeout(()=&gt;{h=null,f()},n)},p=()=&gt;{h!==null&amp;&amp;(clearTimeout(h),h=null)},x=()=&gt;{p(),l=void 0,u=null},g=()=&gt;{d()},y=function(...v){if(o?.aborted)return;l=this,u=v;const _=h==null;m(),c&amp;&amp;_&amp;&amp;d()};return y.schedule=m,y.cancel=x,y.flush=g,o?.addEventListener(&quot;abort&quot;,x,{once:!0}),y}e.debounce=r})(ry)),ry}var pN;function YW(){return pN||(pN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=GW();function t(n,o=0,s={}){typeof s!=&quot;object&quot;&amp;&amp;(s={});const{leading:l=!1,trailing:u=!0,maxWait:c}=s,a=Array(2);l&amp;&amp;(a[0]=&quot;leading&quot;),u&amp;&amp;(a[1]=&quot;trailing&quot;);let d,f=null;const h=r.debounce(function(...x){d=n.apply(this,x),f=null},o,{edges:a}),m=function(...x){return c!=null&amp;&amp;(f===null&amp;&amp;(f=Date.now()),Date.now()-f&gt;=c)?(d=n.apply(this,x),f=Date.now(),h.cancel(),h.schedule(),d):(h.apply(this,x),d)},p=()=&gt;(h.flush(),d);return m.cancel=h.cancel,m.flush=p,m}e.debounce=t})(ty)),ty}var gN;function ZW(){return gN||(gN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=YW();function t(n,o=0,s={}){const{leading:l=!0,trailing:u=!0}=s;return r.debounce(n,o,{leading:l,maxWait:o,trailing:u})}e.throttle=t})(ey)),ey}var ny,xN;function QW(){return xN||(xN=1,ny=ZW().throttle),ny}var JW=QW();const eH=Os(JW);var gp=function(r,t){for(var n=arguments.length,o=new Array(n&gt;2?n-2:0),s=2;s&lt;n;s++)o[s-2]=arguments[s];if(typeof console&lt;&quot;u&quot;&amp;&amp;console.warn&amp;&amp;(t===void 0&amp;&amp;console.warn(&quot;LogUtils requires an error message argument&quot;),!r))if(t===void 0)console.warn(&quot;Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.&quot;);else{var l=0;console.warn(t.replace(/%s/g,()=&gt;o[l++]))}},XE=(e,r,t)=&gt;{var{width:n=&quot;100%&quot;,height:o=&quot;100%&quot;,aspect:s,maxHeight:l}=t,u=$a(n)?e:Number(n),c=$a(o)?r:Number(o);return s&amp;&amp;s&gt;0&amp;&amp;(u?c=u/s:c&amp;&amp;(u=c*s),l&amp;&amp;c!=null&amp;&amp;c&gt;l&amp;&amp;(c=l)),{calculatedWidth:u,calculatedHeight:c}},tH={width:0,height:0,overflow:&quot;visible&quot;},rH={width:0,overflowX:&quot;visible&quot;},nH={height:0,overflowY:&quot;visible&quot;},iH={},sH=e=&gt;{var{width:r,height:t}=e,n=$a(r),o=$a(t);return n&amp;&amp;o?tH:n?rH:o?nH:iH};function aH(e){var{width:r,height:t,aspect:n}=e,o=r,s=t;return o===void 0&amp;&amp;s===void 0?(o=&quot;100%&quot;,s=&quot;100%&quot;):o===void 0?o=n&amp;&amp;n&gt;0?void 0:&quot;100%&quot;:s===void 0&amp;&amp;(s=n&amp;&amp;n&gt;0?void 0:&quot;100%&quot;),{width:o,height:s}}function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},zv.apply(null,arguments)}function bN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function yN(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?bN(Object(t),!0).forEach(function(n){oH(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):bN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function oH(e,r,t){return(r=lH(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function lH(e){var r=cH(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function cH(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var GE=O.createContext({width:-1,height:-1});function uH(e){return ia(e.width)&amp;&amp;ia(e.height)}function YE(e){var{children:r,width:t,height:n}=e,o=O.useMemo(()=&gt;({width:t,height:n}),[t,n]);return uH(o)?O.createElement(GE.Provider,{value:o},r):null}var H2=()=&gt;O.useContext(GE),dH=O.forwardRef((e,r)=&gt;{var{aspect:t,initialDimension:n={width:-1,height:-1},width:o,height:s,minWidth:l=0,minHeight:u,maxHeight:c,children:a,debounce:d=0,id:f,className:h,onResize:m,style:p={}}=e,x=O.useRef(null),g=O.useRef();g.current=m,O.useImperativeHandle(r,()=&gt;x.current);var[y,v]=O.useState({containerWidth:n.width,containerHeight:n.height}),_=O.useCallback((F,q)=&gt;{v(H=&gt;{var B=Math.round(F),K=Math.round(q);return H.containerWidth===B&amp;&amp;H.containerHeight===K?H:{containerWidth:B,containerHeight:K}})},[]);O.useEffect(()=&gt;{if(x.current==null||typeof ResizeObserver&gt;&quot;u&quot;)return vf;var F=K=&gt;{var T,{width:L,height:E}=K[0].contentRect;_(L,E),(T=g.current)===null||T===void 0||T.call(g,L,E)};d&gt;0&amp;&amp;(F=eH(F,d,{trailing:!0,leading:!1}));var q=new ResizeObserver(F),{width:H,height:B}=x.current.getBoundingClientRect();return _(H,B),q.observe(x.current),()=&gt;{q.disconnect()}},[_,d]);var{containerWidth:S,containerHeight:A}=y;gp(!t||t&gt;0,&quot;The aspect(%s) must be greater than zero.&quot;,t);var{calculatedWidth:I,calculatedHeight:V}=XE(S,A,{width:o,height:s,aspect:t,maxHeight:c});return gp(I!=null&amp;&amp;I&gt;0||V!=null&amp;&amp;V&gt;0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,I,V,o,s,l,u,t),O.createElement(&quot;div&quot;,{id:f?&quot;&quot;.concat(f):void 0,className:br(&quot;recharts-responsive-container&quot;,h),style:yN(yN({},p),{},{width:o,height:s,minWidth:l,minHeight:u,maxHeight:c}),ref:x},O.createElement(&quot;div&quot;,{style:sH({width:o,height:s})},O.createElement(YE,{width:I,height:V},a)))}),iy=O.forwardRef((e,r)=&gt;{var t=H2();if(ia(t.width)&amp;&amp;ia(t.height))return e.children;var{width:n,height:o}=aH({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:s,calculatedHeight:l}=XE(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return xt(s)&amp;&amp;xt(l)?O.createElement(YE,{width:s,height:l},e.children):O.createElement(dH,zv({},e,{width:n,height:o,ref:r}))});function ZE(e){if(e)return{x:e.x,y:e.y,upperWidth:&quot;upperWidth&quot;in e?e.upperWidth:e.width,lowerWidth:&quot;lowerWidth&quot;in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var k0=()=&gt;{var e,r=Xn(),t=Et(KW),n=Et(N0),o=(e=Et(j0))===null||e===void 0?void 0:e.padding;return!r||!n||!o?t:{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}},fH={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},QE=()=&gt;{var e;return(e=Et(kn))!==null&amp;&amp;e!==void 0?e:fH},K2=()=&gt;Et(Xa),X2=()=&gt;Et(Ga),hH=()=&gt;Et(e=&gt;e.layout.margin),ur=e=&gt;e.layout.layoutType,hu=()=&gt;Et(ur),mH=()=&gt;{var e=hu();return e!==void 0},S0=e=&gt;{var r=Ur(),t=Xn(),{width:n,height:o}=e,s=H2(),l=n,u=o;return s&amp;&amp;(l=s.width&gt;0?s.width:n,u=s.height&gt;0?s.height:o),O.useEffect(()=&gt;{!t&amp;&amp;ia(l)&amp;&amp;ia(u)&amp;&amp;r(gW({width:l,height:u}))},[r,t,l,u]),null},JE=Symbol.for(&quot;immer-nothing&quot;),vN=Symbol.for(&quot;immer-draftable&quot;),Li=Symbol.for(&quot;immer-state&quot;);function ks(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Jd=Object.getPrototypeOf;function tu(e){return!!e&amp;&amp;!!e[Li]}function zl(e){return e?e9(e)||Array.isArray(e)||!!e[vN]||!!e.constructor?.[vN]||Nf(e)||E0(e):!1}var pH=Object.prototype.constructor.toString(),wN=new WeakMap;function e9(e){if(!e||typeof e!=&quot;object&quot;)return!1;const r=Object.getPrototypeOf(e);if(r===null||r===Object.prototype)return!0;const t=Object.hasOwnProperty.call(r,&quot;constructor&quot;)&amp;&amp;r.constructor;if(t===Object)return!0;if(typeof t!=&quot;function&quot;)return!1;let n=wN.get(t);return n===void 0&amp;&amp;(n=Function.toString.call(t),wN.set(t,n)),n===pH}function xp(e,r,t=!0){C0(e)===0?(t?Reflect.ownKeys(e):Object.keys(e)).forEach(o=&gt;{r(o,e[o],e)}):e.forEach((n,o)=&gt;r(o,n,e))}function C0(e){const r=e[Li];return r?r.type_:Array.isArray(e)?1:Nf(e)?2:E0(e)?3:0}function Uv(e,r){return C0(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function t9(e,r,t){const n=C0(e);n===2?e.set(r,t):n===3?e.add(t):e[r]=t}function gH(e,r){return e===r?e!==0||1/e===1/r:e!==e&amp;&amp;r!==r}function Nf(e){return e instanceof Map}function E0(e){return e instanceof Set}function Sl(e){return e.copy_||e.base_}function Vv(e,r){if(Nf(e))return new Map(e);if(E0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const t=e9(e);if(r===!0||r===&quot;class_only&quot;&amp;&amp;!t){const n=Object.getOwnPropertyDescriptors(e);delete n[Li];let o=Reflect.ownKeys(n);for(let s=0;s&lt;o.length;s++){const l=o[s],u=n[l];u.writable===!1&amp;&amp;(u.writable=!0,u.configurable=!0),(u.get||u.set)&amp;&amp;(n[l]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[l]})}return Object.create(Jd(e),n)}else{const n=Jd(e);if(n!==null&amp;&amp;t)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function G2(e,r=!1){return A0(e)||tu(e)||!zl(e)||(C0(e)&gt;1&amp;&amp;Object.defineProperties(e,{set:fm,add:fm,clear:fm,delete:fm}),Object.freeze(e),r&amp;&amp;Object.values(e).forEach(t=&gt;G2(t,!0))),e}function xH(){ks(2)}var fm={value:xH};function A0(e){return e===null||typeof e!=&quot;object&quot;?!0:Object.isFrozen(e)}var bH={};function Ul(e){const r=bH[e];return r||ks(0,e),r}var ef;function r9(){return ef}function yH(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function _N(e,r){r&amp;&amp;(Ul(&quot;Patches&quot;),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function qv(e){Wv(e),e.drafts_.forEach(vH),e.drafts_=null}function Wv(e){e===ef&amp;&amp;(ef=e.parent_)}function jN(e){return ef=yH(ef,e)}function vH(e){const r=e[Li];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function NN(e,r){r.unfinalizedDrafts_=r.drafts_.length;const t=r.drafts_[0];return e!==void 0&amp;&amp;e!==t?(t[Li].modified_&amp;&amp;(qv(r),ks(4)),zl(e)&amp;&amp;(e=bp(r,e),r.parent_||yp(r,e)),r.patches_&amp;&amp;Ul(&quot;Patches&quot;).generateReplacementPatches_(t[Li].base_,e,r.patches_,r.inversePatches_)):e=bp(r,t,[]),qv(r),r.patches_&amp;&amp;r.patchListener_(r.patches_,r.inversePatches_),e!==JE?e:void 0}function bp(e,r,t){if(A0(r))return r;const n=e.immer_.shouldUseStrictIteration(),o=r[Li];if(!o)return xp(r,(s,l)=&gt;kN(e,o,r,s,l,t),n),r;if(o.scope_!==e)return r;if(!o.modified_)return yp(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const s=o.copy_;let l=s,u=!1;o.type_===3&amp;&amp;(l=new Set(s),s.clear(),u=!0),xp(l,(c,a)=&gt;kN(e,o,s,c,a,t,u),n),yp(e,s,!1),t&amp;&amp;e.patches_&amp;&amp;Ul(&quot;Patches&quot;).generatePatches_(o,t,e.patches_,e.inversePatches_)}return o.copy_}function kN(e,r,t,n,o,s,l){if(o==null||typeof o!=&quot;object&quot;&amp;&amp;!l)return;const u=A0(o);if(!(u&amp;&amp;!l)){if(tu(o)){const c=s&amp;&amp;r&amp;&amp;r.type_!==3&amp;&amp;!Uv(r.assigned_,n)?s.concat(n):void 0,a=bp(e,o,c);if(t9(t,n,a),tu(a))e.canAutoFreeze_=!1;else return}else l&amp;&amp;t.add(o);if(zl(o)&amp;&amp;!u){if(!e.immer_.autoFreeze_&amp;&amp;e.unfinalizedDrafts_&lt;1||r&amp;&amp;r.base_&amp;&amp;r.base_[n]===o&amp;&amp;u)return;bp(e,o),(!r||!r.scope_.parent_)&amp;&amp;typeof n!=&quot;symbol&quot;&amp;&amp;(Nf(t)?t.has(n):Object.prototype.propertyIsEnumerable.call(t,n))&amp;&amp;yp(e,o)}}}function yp(e,r,t=!1){!e.parent_&amp;&amp;e.immer_.autoFreeze_&amp;&amp;e.canAutoFreeze_&amp;&amp;G2(r,t)}function wH(e,r){const t=Array.isArray(e),n={type_:t?1:0,scope_:r?r.scope_:r9(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,s=Y2;t&amp;&amp;(o=[n],s=tf);const{revoke:l,proxy:u}=Proxy.revocable(o,s);return n.draft_=u,n.revoke_=l,u}var Y2={get(e,r){if(r===Li)return e;const t=Sl(e);if(!Uv(t,r))return _H(e,t,r);const n=t[r];return e.finalized_||!zl(n)?n:n===sy(e.base_,r)?(ay(e),e.copy_[r]=Kv(n,e)):n},has(e,r){return r in Sl(e)},ownKeys(e){return Reflect.ownKeys(Sl(e))},set(e,r,t){const n=n9(Sl(e),r);if(n?.set)return n.set.call(e.draft_,t),!0;if(!e.modified_){const o=sy(Sl(e),r),s=o?.[Li];if(s&amp;&amp;s.base_===t)return e.copy_[r]=t,e.assigned_[r]=!1,!0;if(gH(t,o)&amp;&amp;(t!==void 0||Uv(e.base_,r)))return!0;ay(e),Hv(e)}return e.copy_[r]===t&amp;&amp;(t!==void 0||r in e.copy_)||Number.isNaN(t)&amp;&amp;Number.isNaN(e.copy_[r])||(e.copy_[r]=t,e.assigned_[r]=!0),!0},deleteProperty(e,r){return sy(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,ay(e),Hv(e)):delete e.assigned_[r],e.copy_&amp;&amp;delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const t=Sl(e),n=Reflect.getOwnPropertyDescriptor(t,r);return n&amp;&amp;{writable:!0,configurable:e.type_!==1||r!==&quot;length&quot;,enumerable:n.enumerable,value:t[r]}},defineProperty(){ks(11)},getPrototypeOf(e){return Jd(e.base_)},setPrototypeOf(){ks(12)}},tf={};xp(Y2,(e,r)=&gt;{tf[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});tf.deleteProperty=function(e,r){return tf.set.call(this,e,r,void 0)};tf.set=function(e,r,t){return Y2.set.call(this,e[0],r,t,e[0])};function sy(e,r){const t=e[Li];return(t?Sl(t):e)[r]}function _H(e,r,t){const n=n9(r,t);return n?&quot;value&quot;in n?n.value:n.get?.call(e.draft_):void 0}function n9(e,r){if(!(r in e))return;let t=Jd(e);for(;t;){const n=Object.getOwnPropertyDescriptor(t,r);if(n)return n;t=Jd(t)}}function Hv(e){e.modified_||(e.modified_=!0,e.parent_&amp;&amp;Hv(e.parent_))}function ay(e){e.copy_||(e.copy_=Vv(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var jH=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(r,t,n)=&gt;{if(typeof r==&quot;function&quot;&amp;&amp;typeof t!=&quot;function&quot;){const s=t;t=r;const l=this;return function(c=s,...a){return l.produce(c,d=&gt;t.call(this,d,...a))}}typeof t!=&quot;function&quot;&amp;&amp;ks(6),n!==void 0&amp;&amp;typeof n!=&quot;function&quot;&amp;&amp;ks(7);let o;if(zl(r)){const s=jN(this),l=Kv(r,void 0);let u=!0;try{o=t(l),u=!1}finally{u?qv(s):Wv(s)}return _N(s,n),NN(o,s)}else if(!r||typeof r!=&quot;object&quot;){if(o=t(r),o===void 0&amp;&amp;(o=r),o===JE&amp;&amp;(o=void 0),this.autoFreeze_&amp;&amp;G2(o,!0),n){const s=[],l=[];Ul(&quot;Patches&quot;).generateReplacementPatches_(r,o,s,l),n(s,l)}return o}else ks(1,r)},this.produceWithPatches=(r,t)=&gt;{if(typeof r==&quot;function&quot;)return(l,...u)=&gt;this.produceWithPatches(l,c=&gt;r(c,...u));let n,o;return[this.produce(r,t,(l,u)=&gt;{n=l,o=u}),n,o]},typeof e?.autoFreeze==&quot;boolean&quot;&amp;&amp;this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy==&quot;boolean&quot;&amp;&amp;this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration==&quot;boolean&quot;&amp;&amp;this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){zl(e)||ks(8),tu(e)&amp;&amp;(e=NH(e));const r=jN(this),t=Kv(e,void 0);return t[Li].isManual_=!0,Wv(r),t}finishDraft(e,r){const t=e&amp;&amp;e[Li];(!t||!t.isManual_)&amp;&amp;ks(9);const{scope_:n}=t;return _N(n,r),NN(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,r){let t;for(t=r.length-1;t&gt;=0;t--){const o=r[t];if(o.path.length===0&amp;&amp;o.op===&quot;replace&quot;){e=o.value;break}}t&gt;-1&amp;&amp;(r=r.slice(t+1));const n=Ul(&quot;Patches&quot;).applyPatches_;return tu(e)?n(e,r):this.produce(e,o=&gt;n(o,r))}};function Kv(e,r){const t=Nf(e)?Ul(&quot;MapSet&quot;).proxyMap_(e,r):E0(e)?Ul(&quot;MapSet&quot;).proxySet_(e,r):wH(e,r);return(r?r.scope_:r9()).drafts_.push(t),t}function NH(e){return tu(e)||ks(10,e),i9(e)}function i9(e){if(!zl(e)||A0(e))return e;const r=e[Li];let t,n=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,t=Vv(e,r.scope_.immer_.useStrictShallowCopy_),n=r.scope_.immer_.shouldUseStrictIteration()}else t=Vv(e,!0);return xp(t,(o,s)=&gt;{t9(t,o,i9(s))},n),r&amp;&amp;(r.finalized_=!1),t}var kH=new jH;kH.produce;var SH={settings:{layout:&quot;horizontal&quot;,align:&quot;center&quot;,verticalAlign:&quot;middle&quot;,itemSorter:&quot;value&quot;},size:{width:0,height:0},payload:[]},s9=Si({name:&quot;legend&quot;,initialState:SH,reducers:{setLegendSize(e,r){e.size.width=r.payload.width,e.size.height=r.payload.height},setLegendSettings(e,r){e.settings.align=r.payload.align,e.settings.layout=r.payload.layout,e.settings.verticalAlign=r.payload.verticalAlign,e.settings.itemSorter=r.payload.itemSorter},addLegendPayload:{reducer(e,r){e.payload.push(r.payload)},prepare:Tr()},replaceLegendPayload:{reducer(e,r){var{prev:t,next:n}=r.payload,o=Cs(e).payload.indexOf(t);o&gt;-1&amp;&amp;(e.payload[o]=n)},prepare:Tr()},removeLegendPayload:{reducer(e,r){var t=Cs(e).payload.indexOf(r.payload);t&gt;-1&amp;&amp;e.payload.splice(t,1)},prepare:Tr()}}}),{setLegendSize:SN,setLegendSettings:CH,addLegendPayload:EH,replaceLegendPayload:AH,removeLegendPayload:MH}=s9.actions,PH=s9.reducer,OH=[&quot;contextPayload&quot;];function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Xv.apply(null,arguments)}function CN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function ru(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?CN(Object(t),!0).forEach(function(n){TH(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):CN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function TH(e,r,t){return(r=IH(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function IH(e){var r=RH(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function RH(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function DH(e,r){if(e==null)return{};var t,n,o=LH(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function LH(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function FH(e){return e.value}function BH(e){var{contextPayload:r}=e,t=DH(e,OH),n=cE(r,e.payloadUniqBy,FH),o=ru(ru({},t),{},{payload:n});return O.isValidElement(e.content)?O.cloneElement(e.content,o):typeof e.content==&quot;function&quot;?O.createElement(e.content,o):O.createElement(jV,o)}function $H(e,r,t,n,o,s){var{layout:l,align:u,verticalAlign:c}=r,a,d;return(!e||(e.left===void 0||e.left===null)&amp;&amp;(e.right===void 0||e.right===null))&amp;&amp;(u===&quot;center&quot;&amp;&amp;l===&quot;vertical&quot;?a={left:((n||0)-s.width)/2}:a=u===&quot;right&quot;?{right:t&amp;&amp;t.right||0}:{left:t&amp;&amp;t.left||0}),(!e||(e.top===void 0||e.top===null)&amp;&amp;(e.bottom===void 0||e.bottom===null))&amp;&amp;(c===&quot;middle&quot;?d={top:((o||0)-s.height)/2}:d=c===&quot;bottom&quot;?{bottom:t&amp;&amp;t.bottom||0}:{top:t&amp;&amp;t.top||0}),ru(ru({},a),d)}function zH(e){var r=Ur();return O.useEffect(()=&gt;{r(CH(e))},[r,e]),null}function UH(e){var r=Ur();return O.useEffect(()=&gt;(r(SN(e)),()=&gt;{r(SN({width:0,height:0}))}),[r,e]),null}function VH(e,r,t,n){return e===&quot;vertical&quot;&amp;&amp;xt(r)?{height:r}:e===&quot;horizontal&quot;?{width:t||n}:null}var qH={align:&quot;center&quot;,iconSize:14,itemSorter:&quot;value&quot;,layout:&quot;horizontal&quot;,verticalAlign:&quot;bottom&quot;};function Tm(e){var r=Dn(e,qH),t=bq(),n=mU(),o=hH(),{width:s,height:l,wrapperStyle:u,portal:c}=r,[a,d]=mE([t]),f=K2(),h=X2();if(f==null||h==null)return null;var m=f-(o?.left||0)-(o?.right||0),p=VH(r.layout,l,s,m),x=c?u:ru(ru({position:&quot;absolute&quot;,width:p?.width||s||&quot;auto&quot;,height:p?.height||l||&quot;auto&quot;},$H(u,r,o,f,h,a)),u),g=c??n;if(g==null||t==null)return null;var y=O.createElement(&quot;div&quot;,{className:&quot;recharts-legend-wrapper&quot;,style:x,ref:d},O.createElement(zH,{layout:r.layout,align:r.align,verticalAlign:r.verticalAlign,itemSorter:r.itemSorter}),!c&amp;&amp;O.createElement(UH,{width:a.width,height:a.height}),O.createElement(BH,Xv({},r,p,{margin:o,chartWidth:f,chartHeight:h,contextPayload:t})));return Xp.createPortal(y,g)}Tm.displayName=&quot;Legend&quot;;function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Gv.apply(null,arguments)}function EN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function oy(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?EN(Object(t),!0).forEach(function(n){WH(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function WH(e,r,t){return(r=HH(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function HH(e){var r=KH(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function KH(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function XH(e){return Array.isArray(e)&amp;&amp;na(e[0])&amp;&amp;na(e[1])?e.join(&quot; ~ &quot;):e}var GH=e=&gt;{var{separator:r=&quot; : &quot;,contentStyle:t={},itemStyle:n={},labelStyle:o={},payload:s,formatter:l,itemSorter:u,wrapperClassName:c,labelClassName:a,label:d,labelFormatter:f,accessibilityLayer:h=!1}=e,m=()=&gt;{if(s&amp;&amp;s.length){var A={padding:0,margin:0},I=(u?u0(s,u):s).map((V,F)=&gt;{if(V.type===&quot;none&quot;)return null;var q=V.formatter||l||XH,{value:H,name:B}=V,K=H,T=B;if(q){var L=q(H,B,V,F,s);if(Array.isArray(L))[K,T]=L;else if(L!=null)K=L;else return null}var E=oy({display:&quot;block&quot;,paddingTop:4,paddingBottom:4,color:V.color||&quot;#000&quot;},n);return O.createElement(&quot;li&quot;,{className:&quot;recharts-tooltip-item&quot;,key:&quot;tooltip-item-&quot;.concat(F),style:E},na(T)?O.createElement(&quot;span&quot;,{className:&quot;recharts-tooltip-item-name&quot;},T):null,na(T)?O.createElement(&quot;span&quot;,{className:&quot;recharts-tooltip-item-separator&quot;},r):null,O.createElement(&quot;span&quot;,{className:&quot;recharts-tooltip-item-value&quot;},K),O.createElement(&quot;span&quot;,{className:&quot;recharts-tooltip-item-unit&quot;},V.unit||&quot;&quot;))});return O.createElement(&quot;ul&quot;,{className:&quot;recharts-tooltip-item-list&quot;,style:A},I)}return null},p=oy({margin:0,padding:10,backgroundColor:&quot;#fff&quot;,border:&quot;1px solid #ccc&quot;,whiteSpace:&quot;nowrap&quot;},t),x=oy({margin:0},o),g=!Rr(d),y=g?d:&quot;&quot;,v=br(&quot;recharts-default-tooltip&quot;,c),_=br(&quot;recharts-tooltip-label&quot;,a);g&amp;&amp;f&amp;&amp;s!==void 0&amp;&amp;s!==null&amp;&amp;(y=f(d,s));var S=h?{role:&quot;status&quot;,&quot;aria-live&quot;:&quot;assertive&quot;}:{};return O.createElement(&quot;div&quot;,Gv({className:v,style:p},S),O.createElement(&quot;p&quot;,{className:_,style:x},O.isValidElement(y)?y:&quot;&quot;.concat(y)),m())},xd=&quot;recharts-tooltip-wrapper&quot;,YH={visibility:&quot;hidden&quot;};function ZH(e){var{coordinate:r,translateX:t,translateY:n}=e;return br(xd,{[&quot;&quot;.concat(xd,&quot;-right&quot;)]:xt(t)&amp;&amp;r&amp;&amp;xt(r.x)&amp;&amp;t&gt;=r.x,[&quot;&quot;.concat(xd,&quot;-left&quot;)]:xt(t)&amp;&amp;r&amp;&amp;xt(r.x)&amp;&amp;t&lt;r.x,[&quot;&quot;.concat(xd,&quot;-bottom&quot;)]:xt(n)&amp;&amp;r&amp;&amp;xt(r.y)&amp;&amp;n&gt;=r.y,[&quot;&quot;.concat(xd,&quot;-top&quot;)]:xt(n)&amp;&amp;r&amp;&amp;xt(r.y)&amp;&amp;n&lt;r.y})}function AN(e){var{allowEscapeViewBox:r,coordinate:t,key:n,offsetTopLeft:o,position:s,reverseDirection:l,tooltipDimension:u,viewBox:c,viewBoxDimension:a}=e;if(s&amp;&amp;xt(s[n]))return s[n];var d=t[n]-u-(o&gt;0?o:0),f=t[n]+o;if(r[n])return l[n]?d:f;var h=c[n];if(h==null)return 0;if(l[n]){var m=d,p=h;return m&lt;p?Math.max(f,h):Math.max(d,h)}if(a==null)return 0;var x=f+u,g=h+a;return x&gt;g?Math.max(d,h):Math.max(f,h)}function QH(e){var{translateX:r,translateY:t,useTranslate3d:n}=e;return{transform:n?&quot;translate3d(&quot;.concat(r,&quot;px, &quot;).concat(t,&quot;px, 0)&quot;):&quot;translate(&quot;.concat(r,&quot;px, &quot;).concat(t,&quot;px)&quot;)}}function JH(e){var{allowEscapeViewBox:r,coordinate:t,offsetTopLeft:n,position:o,reverseDirection:s,tooltipBox:l,useTranslate3d:u,viewBox:c}=e,a,d,f;return l.height&gt;0&amp;&amp;l.width&gt;0&amp;&amp;t?(d=AN({allowEscapeViewBox:r,coordinate:t,key:&quot;x&quot;,offsetTopLeft:n,position:o,reverseDirection:s,tooltipDimension:l.width,viewBox:c,viewBoxDimension:c.width}),f=AN({allowEscapeViewBox:r,coordinate:t,key:&quot;y&quot;,offsetTopLeft:n,position:o,reverseDirection:s,tooltipDimension:l.height,viewBox:c,viewBoxDimension:c.height}),a=QH({translateX:d,translateY:f,useTranslate3d:u})):a=YH,{cssProperties:a,cssClasses:ZH({translateX:d,translateY:f,coordinate:t})}}function MN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function hm(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?MN(Object(t),!0).forEach(function(n){Yv(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):MN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Yv(e,r,t){return(r=eK(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function eK(e){var r=tK(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function tK(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}class rK extends O.PureComponent{constructor(){super(...arguments),Yv(this,&quot;state&quot;,{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Yv(this,&quot;handleKeyDown&quot;,r=&gt;{if(r.key===&quot;Escape&quot;){var t,n,o,s;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(t=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&amp;&amp;t!==void 0?t:0,y:(o=(s=this.props.coordinate)===null||s===void 0?void 0:s.y)!==null&amp;&amp;o!==void 0?o:0}})}})}componentDidMount(){document.addEventListener(&quot;keydown&quot;,this.handleKeyDown)}componentWillUnmount(){document.removeEventListener(&quot;keydown&quot;,this.handleKeyDown)}componentDidUpdate(){var r,t;this.state.dismissed&amp;&amp;(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((t=this.props.coordinate)===null||t===void 0?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&amp;&amp;(this.state.dismissed=!1)}render(){var{active:r,allowEscapeViewBox:t,animationDuration:n,animationEasing:o,children:s,coordinate:l,hasPayload:u,isAnimationActive:c,offset:a,position:d,reverseDirection:f,useTranslate3d:h,viewBox:m,wrapperStyle:p,lastBoundingBox:x,innerRef:g,hasPortalFromProps:y}=this.props,{cssClasses:v,cssProperties:_}=JH({allowEscapeViewBox:t,coordinate:l,offsetTopLeft:a,position:d,reverseDirection:f,tooltipBox:{height:x.height,width:x.width},useTranslate3d:h,viewBox:m}),S=y?{}:hm(hm({transition:c&amp;&amp;r?&quot;transform &quot;.concat(n,&quot;ms &quot;).concat(o):void 0},_),{},{pointerEvents:&quot;none&quot;,visibility:!this.state.dismissed&amp;&amp;r&amp;&amp;u?&quot;visible&quot;:&quot;hidden&quot;,position:&quot;absolute&quot;,top:0,left:0}),A=hm(hm({},S),{},{visibility:!this.state.dismissed&amp;&amp;r&amp;&amp;u?&quot;visible&quot;:&quot;hidden&quot;},p);return O.createElement(&quot;div&quot;,{xmlns:&quot;http://www.w3.org/1999/xhtml&quot;,tabIndex:-1,className:v,style:A,ref:g},s)}}var a9=()=&gt;{var e;return(e=Et(r=&gt;r.rootProps.accessibilityLayer))!==null&amp;&amp;e!==void 0?e:!0};function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Zv.apply(null,arguments)}function PN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function ON(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?PN(Object(t),!0).forEach(function(n){nK(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):PN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function nK(e,r,t){return(r=iK(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function iK(e){var r=sK(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function sK(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var TN={curveBasisClosed:TU,curveBasisOpen:IU,curveBasis:OU,curveBumpX:bU,curveBumpY:yU,curveLinearClosed:RU,curveLinear:o0,curveMonotoneX:DU,curveMonotoneY:LU,curveNatural:FU,curveStep:BU,curveStepAfter:zU,curveStepBefore:$U},vp=e=&gt;zr(e.x)&amp;&amp;zr(e.y),IN=e=&gt;e.base!=null&amp;&amp;vp(e.base)&amp;&amp;vp(e),bd=e=&gt;e.x,yd=e=&gt;e.y,aK=(e,r)=&gt;{if(typeof e==&quot;function&quot;)return e;var t=&quot;curve&quot;.concat(yf(e));return(t===&quot;curveMonotone&quot;||t===&quot;curveBump&quot;)&amp;&amp;r?TN[&quot;&quot;.concat(t).concat(r===&quot;vertical&quot;?&quot;Y&quot;:&quot;X&quot;)]:TN[t]||o0},oK=e=&gt;{var{type:r=&quot;linear&quot;,points:t=[],baseLine:n,layout:o,connectNulls:s=!1}=e,l=aK(r,o),u=s?t.filter(vp):t,c;if(Array.isArray(n)){var a=t.map((m,p)=&gt;ON(ON({},m),{},{base:n[p]}));o===&quot;vertical&quot;?c=sm().y(yd).x1(bd).x0(m=&gt;m.base.x):c=sm().x(bd).y1(yd).y0(m=&gt;m.base.y);var d=c.defined(IN).curve(l),f=s?a.filter(IN):a;return d(f)}o===&quot;vertical&quot;&amp;&amp;xt(n)?c=sm().y(yd).x1(bd).x0(n):xt(n)?c=sm().x(bd).y1(yd).y0(n):c=B7().x(bd).y(yd);var h=c.defined(vp).curve(l);return h(u)},o9=e=&gt;{var{className:r,points:t,path:n,pathRef:o}=e,s=hu();if((!t||!t.length)&amp;&amp;!n)return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||s,connectNulls:e.connectNulls},u=t&amp;&amp;t.length?oK(l):n;return O.createElement(&quot;path&quot;,Zv({},Es(e),R2(e),{className:br(&quot;recharts-curve&quot;,r),d:u===null?void 0:u,ref:o}))},lK=[&quot;x&quot;,&quot;y&quot;,&quot;top&quot;,&quot;left&quot;,&quot;width&quot;,&quot;height&quot;,&quot;className&quot;];function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Qv.apply(null,arguments)}function RN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function cK(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?RN(Object(t),!0).forEach(function(n){uK(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):RN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function uK(e,r,t){return(r=dK(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function dK(e){var r=fK(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function fK(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function hK(e,r){if(e==null)return{};var t,n,o=mK(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function mK(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var pK=(e,r,t,n,o,s)=&gt;&quot;M&quot;.concat(e,&quot;,&quot;).concat(o,&quot;v&quot;).concat(n,&quot;M&quot;).concat(s,&quot;,&quot;).concat(r,&quot;h&quot;).concat(t),gK=e=&gt;{var{x:r=0,y:t=0,top:n=0,left:o=0,width:s=0,height:l=0,className:u}=e,c=hK(e,lK),a=cK({x:r,y:t,top:n,left:o,width:s,height:l},c);return!xt(r)||!xt(t)||!xt(s)||!xt(l)||!xt(n)||!xt(o)?null:O.createElement(&quot;path&quot;,Qv({},li(a),{className:br(&quot;recharts-cross&quot;,u),d:pK(r,t,s,l,n,o)}))};function xK(e,r,t,n){var o=n/2;return{stroke:&quot;none&quot;,fill:&quot;#ccc&quot;,x:e===&quot;horizontal&quot;?r.x-o:t.left+.5,y:e===&quot;horizontal&quot;?t.top+.5:r.y-o,width:e===&quot;horizontal&quot;?n:t.width-1,height:e===&quot;horizontal&quot;?t.height-1:n}}function DN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function LN(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?DN(Object(t),!0).forEach(function(n){bK(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):DN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function bK(e,r,t){return(r=yK(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function yK(e){var r=vK(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function vK(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var wK=e=&gt;e.replace(/([A-Z])/g,r=&gt;&quot;-&quot;.concat(r.toLowerCase())),l9=(e,r,t)=&gt;e.map(n=&gt;&quot;&quot;.concat(wK(n),&quot; &quot;).concat(r,&quot;ms &quot;).concat(t)).join(&quot;,&quot;),_K=(e,r)=&gt;[Object.keys(e),Object.keys(r)].reduce((t,n)=&gt;t.filter(o=&gt;n.includes(o))),rf=(e,r)=&gt;Object.keys(r).reduce((t,n)=&gt;LN(LN({},t),{},{[n]:e(n,r[n])}),{});function FN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function un(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?FN(Object(t),!0).forEach(function(n){jK(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):FN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function jK(e,r,t){return(r=NK(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function NK(e){var r=kK(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function kK(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var wp=(e,r,t)=&gt;e+(r-e)*t,Jv=e=&gt;{var{from:r,to:t}=e;return r!==t},c9=(e,r,t)=&gt;{var n=rf((o,s)=&gt;{if(Jv(s)){var[l,u]=e(s.from,s.to,s.velocity);return un(un({},s),{},{from:l,velocity:u})}return s},r);return t&lt;1?rf((o,s)=&gt;Jv(s)&amp;&amp;n[o]!=null?un(un({},s),{},{velocity:wp(s.velocity,n[o].velocity,t),from:wp(s.from,n[o].from,t)}):s,r):c9(e,n,t-1)};function SK(e,r,t,n,o,s){var l,u=n.reduce((h,m)=&gt;un(un({},h),{},{[m]:{from:e[m],velocity:0,to:r[m]}}),{}),c=()=&gt;rf((h,m)=&gt;m.from,u),a=()=&gt;!Object.values(u).filter(Jv).length,d=null,f=h=&gt;{l||(l=h);var m=h-l,p=m/t.dt;u=c9(t,u,p),o(un(un(un({},e),r),c())),l=h,a()||(d=s.setTimeout(f))};return()=&gt;(d=s.setTimeout(f),()=&gt;{var h;(h=d)===null||h===void 0||h()})}function CK(e,r,t,n,o,s,l){var u=null,c=o.reduce((f,h)=&gt;{var m=e[h],p=r[h];return m==null||p==null?f:un(un({},f),{},{[h]:[m,p]})},{}),a,d=f=&gt;{a||(a=f);var h=(f-a)/n,m=rf((x,g)=&gt;wp(...g,t(h)),c);if(s(un(un(un({},e),r),m)),h&lt;1)u=l.setTimeout(d);else{var p=rf((x,g)=&gt;wp(...g,t(1)),c);s(un(un(un({},e),r),p))}};return()=&gt;(u=l.setTimeout(d),()=&gt;{var f;(f=u)===null||f===void 0||f()})}const EK=(e,r,t,n,o,s)=&gt;{var l=_K(e,r);return t==null?()=&gt;(o(un(un({},e),r)),()=&gt;{}):t.isStepper===!0?SK(e,r,t,l,o,s):CK(e,r,t,n,l,o,s)};var _p=1e-4,u9=(e,r)=&gt;[0,3*e,3*r-6*e,3*e-3*r+1],d9=(e,r)=&gt;e.map((t,n)=&gt;t*r**n).reduce((t,n)=&gt;t+n),BN=(e,r)=&gt;t=&gt;{var n=u9(e,r);return d9(n,t)},AK=(e,r)=&gt;t=&gt;{var n=u9(e,r),o=[...n.map((s,l)=&gt;s*l).slice(1),0];return d9(o,t)},MK=e=&gt;{var r,t=e.split(&quot;(&quot;);if(t.length!==2||t[0]!==&quot;cubic-bezier&quot;)return null;var n=(r=t[1])===null||r===void 0||(r=r.split(&quot;)&quot;)[0])===null||r===void 0?void 0:r.split(&quot;,&quot;);if(n==null||n.length!==4)return null;var o=n.map(s=&gt;parseFloat(s));return[o[0],o[1],o[2],o[3]]},PK=function(){for(var r=arguments.length,t=new Array(r),n=0;n&lt;r;n++)t[n]=arguments[n];if(t.length===1)switch(t[0]){case&quot;linear&quot;:return[0,0,1,1];case&quot;ease&quot;:return[.25,.1,.25,1];case&quot;ease-in&quot;:return[.42,0,1,1];case&quot;ease-out&quot;:return[.42,0,.58,1];case&quot;ease-in-out&quot;:return[0,0,.58,1];default:{var o=MK(t[0]);if(o)return o}}return t.length===4?t:[0,0,1,1]},OK=(e,r,t,n)=&gt;{var o=BN(e,t),s=BN(r,n),l=AK(e,t),u=a=&gt;a&gt;1?1:a&lt;0?0:a,c=a=&gt;{for(var d=a&gt;1?1:a,f=d,h=0;h&lt;8;++h){var m=o(f)-d,p=l(f);if(Math.abs(m-d)&lt;_p||p&lt;_p)return s(f);f=u(f-m/p)}return s(f)};return c.isStepper=!1,c},$N=function(){return OK(...PK(...arguments))},TK=function(){var r=arguments.length&gt;0&amp;&amp;arguments[0]!==void 0?arguments[0]:{},{stiff:t=100,damping:n=8,dt:o=17}=r,s=(l,u,c)=&gt;{var a=-(l-u)*t,d=c*n,f=c+(a-d)*o/1e3,h=c*o/1e3+l;return Math.abs(h-u)&lt;_p&amp;&amp;Math.abs(f)&lt;_p?[u,0]:[h,f]};return s.isStepper=!0,s.dt=o,s},IK=e=&gt;{if(typeof e==&quot;string&quot;)switch(e){case&quot;ease&quot;:case&quot;ease-in-out&quot;:case&quot;ease-out&quot;:case&quot;ease-in&quot;:case&quot;linear&quot;:return $N(e);case&quot;spring&quot;:return TK();default:if(e.split(&quot;(&quot;)[0]===&quot;cubic-bezier&quot;)return $N(e)}return typeof e==&quot;function&quot;?e:null};function RK(e){var r,t=()=&gt;null,n=!1,o=null,s=l=&gt;{if(!n){if(Array.isArray(l)){if(!l.length)return;var u=l,[c,...a]=u;if(typeof c==&quot;number&quot;){o=e.setTimeout(s.bind(null,a),c);return}s(c),o=e.setTimeout(s.bind(null,a));return}typeof l==&quot;string&quot;&amp;&amp;(r=l,t(r)),typeof l==&quot;object&quot;&amp;&amp;(r=l,t(r)),typeof l==&quot;function&quot;&amp;&amp;l()}};return{stop:()=&gt;{n=!0},start:l=&gt;{n=!1,o&amp;&amp;(o(),o=null),s(l)},subscribe:l=&gt;(t=l,()=&gt;{t=()=&gt;null}),getTimeoutController:()=&gt;e}}class DK{setTimeout(r){var t=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:0,n=performance.now(),o=null,s=l=&gt;{l-n&gt;=t?r(l):typeof requestAnimationFrame==&quot;function&quot;&amp;&amp;(o=requestAnimationFrame(s))};return o=requestAnimationFrame(s),()=&gt;{o!=null&amp;&amp;cancelAnimationFrame(o)}}}function LK(){return RK(new DK)}var FK=O.createContext(LK);function BK(e,r){var t=O.useContext(FK);return O.useMemo(()=&gt;r??t(e),[e,r,t])}var $K=()=&gt;!(typeof window&lt;&quot;u&quot;&amp;&amp;window.document&amp;&amp;window.document.createElement&amp;&amp;window.setTimeout),M0={isSsr:$K()},zK={begin:0,duration:1e3,easing:&quot;ease&quot;,isActive:!0,canBegin:!0,onAnimationEnd:()=&gt;{},onAnimationStart:()=&gt;{}},zN={t:0},ly={t:1};function P0(e){var r=Dn(e,zK),{isActive:t,canBegin:n,duration:o,easing:s,begin:l,onAnimationEnd:u,onAnimationStart:c,children:a}=r,d=t===&quot;auto&quot;?!M0.isSsr:t,f=BK(r.animationId,r.animationManager),[h,m]=O.useState(d?zN:ly),p=O.useRef(null);return O.useEffect(()=&gt;{d||m(ly)},[d]),O.useEffect(()=&gt;{if(!d||!n)return vf;var x=EK(zN,ly,IK(s),o,m,f.getTimeoutController()),g=()=&gt;{p.current=x()};return f.start([c,l,g,o,u]),()=&gt;{f.stop(),p.current&amp;&amp;p.current(),u()}},[d,n,o,s,l,c,u,f]),a(h.t)}function O0(e){var r=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:&quot;animation-&quot;,t=O.useRef(Gd(r)),n=O.useRef(e);return n.current!==e&amp;&amp;(t.current=Gd(r),n.current=e),t.current}var UK=[&quot;radius&quot;],VK=[&quot;radius&quot;],UN,VN,qN,WN,HN,KN,XN,GN,YN,ZN;function QN(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function JN(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?QN(Object(t),!0).forEach(function(n){qK(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):QN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function qK(e,r,t){return(r=WK(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function WK(e){var r=HK(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function HK(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},jp.apply(null,arguments)}function ek(e,r){if(e==null)return{};var t,n,o=KK(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function KK(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Gs(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var tk=(e,r,t,n,o)=&gt;{var s=Do(t),l=Do(n),u=Math.min(Math.abs(s)/2,Math.abs(l)/2),c=l&gt;=0?1:-1,a=s&gt;=0?1:-1,d=l&gt;=0&amp;&amp;s&gt;=0||l&lt;0&amp;&amp;s&lt;0?1:0,f;if(u&gt;0&amp;&amp;o instanceof Array){for(var h=[0,0,0,0],m=0,p=4;m&lt;p;m++)h[m]=o[m]&gt;u?u:o[m];f=Wr(UN||(UN=Gs([&quot;M&quot;,&quot;,&quot;,&quot;&quot;])),e,r+c*h[0]),h[0]&gt;0&amp;&amp;(f+=Wr(VN||(VN=Gs([&quot;A &quot;,&quot;,&quot;,&quot;,0,0,&quot;,&quot;,&quot;,&quot;,&quot;,&quot;&quot;])),h[0],h[0],d,e+a*h[0],r)),f+=Wr(qN||(qN=Gs([&quot;L &quot;,&quot;,&quot;,&quot;&quot;])),e+t-a*h[1],r),h[1]&gt;0&amp;&amp;(f+=Wr(WN||(WN=Gs([&quot;A &quot;,&quot;,&quot;,&quot;,0,0,&quot;,`,
        `,&quot;,&quot;,&quot;&quot;])),h[1],h[1],d,e+t,r+c*h[1])),f+=Wr(HN||(HN=Gs([&quot;L &quot;,&quot;,&quot;,&quot;&quot;])),e+t,r+n-c*h[2]),h[2]&gt;0&amp;&amp;(f+=Wr(KN||(KN=Gs([&quot;A &quot;,&quot;,&quot;,&quot;,0,0,&quot;,`,
        `,&quot;,&quot;,&quot;&quot;])),h[2],h[2],d,e+t-a*h[2],r+n)),f+=Wr(XN||(XN=Gs([&quot;L &quot;,&quot;,&quot;,&quot;&quot;])),e+a*h[3],r+n),h[3]&gt;0&amp;&amp;(f+=Wr(GN||(GN=Gs([&quot;A &quot;,&quot;,&quot;,&quot;,0,0,&quot;,`,
        `,&quot;,&quot;,&quot;&quot;])),h[3],h[3],d,e,r+n-c*h[3])),f+=&quot;Z&quot;}else if(u&gt;0&amp;&amp;o===+o&amp;&amp;o&gt;0){var x=Math.min(u,o);f=Wr(YN||(YN=Gs([&quot;M &quot;,&quot;,&quot;,`
            A `,&quot;,&quot;,&quot;,0,0,&quot;,&quot;,&quot;,&quot;,&quot;,`
            L `,&quot;,&quot;,`
            A `,&quot;,&quot;,&quot;,0,0,&quot;,&quot;,&quot;,&quot;,&quot;,`
            L `,&quot;,&quot;,`
            A `,&quot;,&quot;,&quot;,0,0,&quot;,&quot;,&quot;,&quot;,&quot;,`
            L `,&quot;,&quot;,`
            A `,&quot;,&quot;,&quot;,0,0,&quot;,&quot;,&quot;,&quot;,&quot;,&quot; Z&quot;])),e,r+c*x,x,x,d,e+a*x,r,e+t-a*x,r,x,x,d,e+t,r+c*x,e+t,r+n-c*x,x,x,d,e+t-a*x,r+n,e+a*x,r+n,x,x,d,e,r+n-c*x)}else f=Wr(ZN||(ZN=Gs([&quot;M &quot;,&quot;,&quot;,&quot; h &quot;,&quot; v &quot;,&quot; h &quot;,&quot; Z&quot;])),e,r,t,n,-t);return f},rk={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:&quot;ease&quot;},f9=e=&gt;{var r=Dn(e,rk),t=O.useRef(null),[n,o]=O.useState(-1);O.useEffect(()=&gt;{if(t.current&amp;&amp;t.current.getTotalLength)try{var k=t.current.getTotalLength();k&amp;&amp;o(k)}catch{}},[]);var{x:s,y:l,width:u,height:c,radius:a,className:d}=r,{animationEasing:f,animationDuration:h,animationBegin:m,isAnimationActive:p,isUpdateAnimationActive:x}=r,g=O.useRef(u),y=O.useRef(c),v=O.useRef(s),_=O.useRef(l),S=O.useMemo(()=&gt;({x:s,y:l,width:u,height:c,radius:a}),[s,l,u,c,a]),A=O0(S,&quot;rectangle-&quot;);if(s!==+s||l!==+l||u!==+u||c!==+c||u===0||c===0)return null;var I=br(&quot;recharts-rectangle&quot;,d);if(!x){var V=li(r),{radius:F}=V,q=ek(V,UK);return O.createElement(&quot;path&quot;,jp({},q,{x:Do(s),y:Do(l),width:Do(u),height:Do(c),radius:typeof a==&quot;number&quot;?a:void 0,className:I,d:tk(s,l,u,c,a)}))}var H=g.current,B=y.current,K=v.current,T=_.current,L=&quot;0px &quot;.concat(n===-1?1:n,&quot;px&quot;),E=&quot;&quot;.concat(n,&quot;px 0px&quot;),j=l9([&quot;strokeDasharray&quot;],h,typeof f==&quot;string&quot;?f:rk.animationEasing);return O.createElement(P0,{animationId:A,key:A,canBegin:n&gt;0,duration:h,easing:f,isActive:x,begin:m},k=&gt;{var N=Hr(H,u,k),C=Hr(B,c,k),P=Hr(K,s,k),D=Hr(T,l,k);t.current&amp;&amp;(g.current=N,y.current=C,v.current=P,_.current=D);var z;p?k&gt;0?z={transition:j,strokeDasharray:E}:z={strokeDasharray:L}:z={strokeDasharray:E};var Y=li(r),{radius:Z}=Y,ne=ek(Y,VK);return O.createElement(&quot;path&quot;,jp({},ne,{radius:typeof a==&quot;number&quot;?a:void 0,className:I,d:tk(P,D,N,C,a),ref:t,style:JN(JN({},z),r.style)}))})};function nk(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function ik(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?nk(Object(t),!0).forEach(function(n){XK(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nk(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function XK(e,r,t){return(r=GK(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function GK(e){var r=YK(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function YK(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var Np=Math.PI/180,ZK=e=&gt;e*180/Math.PI,Rn=(e,r,t,n)=&gt;({x:e+Math.cos(-Np*n)*t,y:r+Math.sin(-Np*n)*t}),QK=function(r,t){var n=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(r-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},JK=(e,r)=&gt;{var{x:t,y:n}=e,{x:o,y:s}=r;return Math.sqrt((t-o)**2+(n-s)**2)},eX=(e,r)=&gt;{var{x:t,y:n}=e,{cx:o,cy:s}=r,l=JK({x:t,y:n},{x:o,y:s});if(l&lt;=0)return{radius:l,angle:0};var u=(t-o)/l,c=Math.acos(u);return n&gt;s&amp;&amp;(c=2*Math.PI-c),{radius:l,angle:ZK(c),angleInRadian:c}},tX=e=&gt;{var{startAngle:r,endAngle:t}=e,n=Math.floor(r/360),o=Math.floor(t/360),s=Math.min(n,o);return{startAngle:r-s*360,endAngle:t-s*360}},rX=(e,r)=&gt;{var{startAngle:t,endAngle:n}=r,o=Math.floor(t/360),s=Math.floor(n/360),l=Math.min(o,s);return e+l*360},nX=(e,r)=&gt;{var{chartX:t,chartY:n}=e,{radius:o,angle:s}=eX({x:t,y:n},r),{innerRadius:l,outerRadius:u}=r;if(o&lt;l||o&gt;u||o===0)return null;var{startAngle:c,endAngle:a}=tX(r),d=s,f;if(c&lt;=a){for(;d&gt;a;)d-=360;for(;d&lt;c;)d+=360;f=d&gt;=c&amp;&amp;d&lt;=a}else{for(;d&gt;c;)d-=360;for(;d&lt;a;)d+=360;f=d&gt;=a&amp;&amp;d&lt;=c}return f?ik(ik({},r),{},{radius:o,angle:rX(d,r)}):null};function h9(e){var{cx:r,cy:t,radius:n,startAngle:o,endAngle:s}=e,l=Rn(r,t,n,o),u=Rn(r,t,n,s);return{points:[l,u],cx:r,cy:t,radius:n,startAngle:o,endAngle:s}}var sk,ak,ok,lk,ck,uk,dk;function e1(){return e1=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},e1.apply(null,arguments)}function Pl(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var iX=(e,r)=&gt;{var t=wi(r-e),n=Math.min(Math.abs(r-e),359.999);return t*n},mm=e=&gt;{var{cx:r,cy:t,radius:n,angle:o,sign:s,isExternal:l,cornerRadius:u,cornerIsExternal:c}=e,a=u*(l?1:-1)+n,d=Math.asin(u/a)/Np,f=c?o:o+s*d,h=Rn(r,t,a,f),m=Rn(r,t,n,f),p=c?o-s*d:o,x=Rn(r,t,a*Math.cos(d*Np),p);return{center:h,circleTangency:m,lineTangency:x,theta:d}},m9=e=&gt;{var{cx:r,cy:t,innerRadius:n,outerRadius:o,startAngle:s,endAngle:l}=e,u=iX(s,l),c=s+u,a=Rn(r,t,o,s),d=Rn(r,t,o,c),f=Wr(sk||(sk=Pl([&quot;M &quot;,&quot;,&quot;,`
    A `,&quot;,&quot;,`,0,
    `,&quot;,&quot;,`,
    `,&quot;,&quot;,`
  `])),a.x,a.y,o,o,+(Math.abs(u)&gt;180),+(s&gt;c),d.x,d.y);if(n&gt;0){var h=Rn(r,t,n,s),m=Rn(r,t,n,c);f+=Wr(ak||(ak=Pl([&quot;L &quot;,&quot;,&quot;,`
            A `,&quot;,&quot;,`,0,
            `,&quot;,&quot;,`,
            `,&quot;,&quot;,&quot; Z&quot;])),m.x,m.y,n,n,+(Math.abs(u)&gt;180),+(s&lt;=c),h.x,h.y)}else f+=Wr(ok||(ok=Pl([&quot;L &quot;,&quot;,&quot;,&quot; Z&quot;])),r,t);return f},sX=e=&gt;{var{cx:r,cy:t,innerRadius:n,outerRadius:o,cornerRadius:s,forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:a}=e,d=wi(a-c),{circleTangency:f,lineTangency:h,theta:m}=mm({cx:r,cy:t,radius:o,angle:c,sign:d,cornerRadius:s,cornerIsExternal:u}),{circleTangency:p,lineTangency:x,theta:g}=mm({cx:r,cy:t,radius:o,angle:a,sign:-d,cornerRadius:s,cornerIsExternal:u}),y=u?Math.abs(c-a):Math.abs(c-a)-m-g;if(y&lt;0)return l?Wr(lk||(lk=Pl([&quot;M &quot;,&quot;,&quot;,`
        a`,&quot;,&quot;,&quot;,0,0,1,&quot;,`,0
        a`,&quot;,&quot;,&quot;,0,0,1,&quot;,`,0
      `])),h.x,h.y,s,s,s*2,s,s,-s*2):m9({cx:r,cy:t,innerRadius:n,outerRadius:o,startAngle:c,endAngle:a});var v=Wr(ck||(ck=Pl([&quot;M &quot;,&quot;,&quot;,`
    A`,&quot;,&quot;,&quot;,0,0,&quot;,&quot;,&quot;,&quot;,&quot;,`
    A`,&quot;,&quot;,&quot;,0,&quot;,&quot;,&quot;,&quot;,&quot;,&quot;,&quot;,`
    A`,&quot;,&quot;,&quot;,0,0,&quot;,&quot;,&quot;,&quot;,&quot;,`
  `])),h.x,h.y,s,s,+(d&lt;0),f.x,f.y,o,o,+(y&gt;180),+(d&lt;0),p.x,p.y,s,s,+(d&lt;0),x.x,x.y);if(n&gt;0){var{circleTangency:_,lineTangency:S,theta:A}=mm({cx:r,cy:t,radius:n,angle:c,sign:d,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),{circleTangency:I,lineTangency:V,theta:F}=mm({cx:r,cy:t,radius:n,angle:a,sign:-d,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),q=u?Math.abs(c-a):Math.abs(c-a)-A-F;if(q&lt;0&amp;&amp;s===0)return&quot;&quot;.concat(v,&quot;L&quot;).concat(r,&quot;,&quot;).concat(t,&quot;Z&quot;);v+=Wr(uk||(uk=Pl([&quot;L&quot;,&quot;,&quot;,`
      A`,&quot;,&quot;,&quot;,0,0,&quot;,&quot;,&quot;,&quot;,&quot;,`
      A`,&quot;,&quot;,&quot;,0,&quot;,&quot;,&quot;,&quot;,&quot;,&quot;,&quot;,`
      A`,&quot;,&quot;,&quot;,0,0,&quot;,&quot;,&quot;,&quot;,&quot;,&quot;Z&quot;])),V.x,V.y,s,s,+(d&lt;0),I.x,I.y,n,n,+(q&gt;180),+(d&gt;0),_.x,_.y,s,s,+(d&lt;0),S.x,S.y)}else v+=Wr(dk||(dk=Pl([&quot;L&quot;,&quot;,&quot;,&quot;Z&quot;])),r,t);return v},aX={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},p9=e=&gt;{var r=Dn(e,aX),{cx:t,cy:n,innerRadius:o,outerRadius:s,cornerRadius:l,forceCornerRadius:u,cornerIsExternal:c,startAngle:a,endAngle:d,className:f}=r;if(s&lt;o||a===d)return null;var h=br(&quot;recharts-sector&quot;,f),m=s-o,p=Ms(l,m,0,!0),x;return p&gt;0&amp;&amp;Math.abs(a-d)&lt;360?x=sX({cx:t,cy:n,innerRadius:o,outerRadius:s,cornerRadius:Math.min(p,m/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:a,endAngle:d}):x=m9({cx:t,cy:n,innerRadius:o,outerRadius:s,startAngle:a,endAngle:d}),O.createElement(&quot;path&quot;,e1({},li(r),{className:h,d:x}))};function oX(e,r,t){if(e===&quot;horizontal&quot;)return[{x:r.x,y:t.top},{x:r.x,y:t.top+t.height}];if(e===&quot;vertical&quot;)return[{x:t.left,y:r.y},{x:t.left+t.width,y:r.y}];if(eE(r)){if(e===&quot;centric&quot;){var{cx:n,cy:o,innerRadius:s,outerRadius:l,angle:u}=r,c=Rn(n,o,s,u),a=Rn(n,o,l,u);return[{x:c.x,y:c.y},{x:a.x,y:a.y}]}return h9(r)}}var cy={},uy={},dy={},fk;function lX(){return fk||(fk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=dE();function t(n){return r.isSymbol(n)?NaN:Number(n)}e.toNumber=t})(dy)),dy}var hk;function cX(){return hk||(hk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=lX();function t(n){return n?(n=r.toNumber(n),n===1/0||n===-1/0?(n&lt;0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=t})(uy)),uy}var mk;function uX(){return mk||(mk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=fE(),t=cX();function n(o,s,l){l&amp;&amp;typeof l!=&quot;number&quot;&amp;&amp;r.isIterateeCall(o,s,l)&amp;&amp;(s=l=void 0),o=t.toFinite(o),s===void 0?(s=o,o=0):s=t.toFinite(s),l=l===void 0?o&lt;s?1:-1:t.toFinite(l);const u=Math.max(Math.ceil((s-o)/(l||1)),0),c=new Array(u);for(let a=0;a&lt;u;a++)c[a]=o,o+=l;return c}e.range=n})(cy)),cy}var fy,pk;function dX(){return pk||(pk=1,fy=uX().range),fy}var fX=dX();const g9=Os(fX);function Bo(e,r){return e==null||r==null?NaN:e&lt;r?-1:e&gt;r?1:e&gt;=r?0:NaN}function hX(e,r){return e==null||r==null?NaN:r&lt;e?-1:r&gt;e?1:r&gt;=e?0:NaN}function Z2(e){let r,t,n;e.length!==2?(r=Bo,t=(u,c)=&gt;Bo(e(u),c),n=(u,c)=&gt;e(u)-c):(r=e===Bo||e===hX?e:mX,t=e,n=e);function o(u,c,a=0,d=u.length){if(a&lt;d){if(r(c,c)!==0)return d;do{const f=a+d&gt;&gt;&gt;1;t(u[f],c)&lt;0?a=f+1:d=f}while(a&lt;d)}return a}function s(u,c,a=0,d=u.length){if(a&lt;d){if(r(c,c)!==0)return d;do{const f=a+d&gt;&gt;&gt;1;t(u[f],c)&lt;=0?a=f+1:d=f}while(a&lt;d)}return a}function l(u,c,a=0,d=u.length){const f=o(u,c,a,d-1);return f&gt;a&amp;&amp;n(u[f-1],c)&gt;-n(u[f],c)?f-1:f}return{left:o,center:l,right:s}}function mX(){return 0}function x9(e){return e===null?NaN:+e}function*pX(e,r){for(let t of e)t!=null&amp;&amp;(t=+t)&gt;=t&amp;&amp;(yield t)}const gX=Z2(Bo),kf=gX.right;Z2(x9).center;class gk extends Map{constructor(r,t=yX){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),r!=null)for(const[n,o]of r)this.set(n,o)}get(r){return super.get(xk(this,r))}has(r){return super.has(xk(this,r))}set(r,t){return super.set(xX(this,r),t)}delete(r){return super.delete(bX(this,r))}}function xk({_intern:e,_key:r},t){const n=r(t);return e.has(n)?e.get(n):t}function xX({_intern:e,_key:r},t){const n=r(t);return e.has(n)?e.get(n):(e.set(n,t),t)}function bX({_intern:e,_key:r},t){const n=r(t);return e.has(n)&amp;&amp;(t=e.get(n),e.delete(n)),t}function yX(e){return e!==null&amp;&amp;typeof e==&quot;object&quot;?e.valueOf():e}function vX(e=Bo){if(e===Bo)return b9;if(typeof e!=&quot;function&quot;)throw new TypeError(&quot;compare is not a function&quot;);return(r,t)=&gt;{const n=e(r,t);return n||n===0?n:(e(t,t)===0)-(e(r,r)===0)}}function b9(e,r){return(e==null||!(e&gt;=e))-(r==null||!(r&gt;=r))||(e&lt;r?-1:e&gt;r?1:0)}const wX=Math.sqrt(50),_X=Math.sqrt(10),jX=Math.sqrt(2);function kp(e,r,t){const n=(r-e)/Math.max(0,t),o=Math.floor(Math.log10(n)),s=n/Math.pow(10,o),l=s&gt;=wX?10:s&gt;=_X?5:s&gt;=jX?2:1;let u,c,a;return o&lt;0?(a=Math.pow(10,-o)/l,u=Math.round(e*a),c=Math.round(r*a),u/a&lt;e&amp;&amp;++u,c/a&gt;r&amp;&amp;--c,a=-a):(a=Math.pow(10,o)*l,u=Math.round(e/a),c=Math.round(r/a),u*a&lt;e&amp;&amp;++u,c*a&gt;r&amp;&amp;--c),c&lt;u&amp;&amp;.5&lt;=t&amp;&amp;t&lt;2?kp(e,r,t*2):[u,c,a]}function t1(e,r,t){if(r=+r,e=+e,t=+t,!(t&gt;0))return[];if(e===r)return[e];const n=r&lt;e,[o,s,l]=n?kp(r,e,t):kp(e,r,t);if(!(s&gt;=o))return[];const u=s-o+1,c=new Array(u);if(n)if(l&lt;0)for(let a=0;a&lt;u;++a)c[a]=(s-a)/-l;else for(let a=0;a&lt;u;++a)c[a]=(s-a)*l;else if(l&lt;0)for(let a=0;a&lt;u;++a)c[a]=(o+a)/-l;else for(let a=0;a&lt;u;++a)c[a]=(o+a)*l;return c}function r1(e,r,t){return r=+r,e=+e,t=+t,kp(e,r,t)[2]}function n1(e,r,t){r=+r,e=+e,t=+t;const n=r&lt;e,o=n?r1(r,e,t):r1(e,r,t);return(n?-1:1)*(o&lt;0?1/-o:o)}function bk(e,r){let t;for(const n of e)n!=null&amp;&amp;(t&lt;n||t===void 0&amp;&amp;n&gt;=n)&amp;&amp;(t=n);return t}function yk(e,r){let t;for(const n of e)n!=null&amp;&amp;(t&gt;n||t===void 0&amp;&amp;n&gt;=n)&amp;&amp;(t=n);return t}function y9(e,r,t=0,n=1/0,o){if(r=Math.floor(r),t=Math.floor(Math.max(0,t)),n=Math.floor(Math.min(e.length-1,n)),!(t&lt;=r&amp;&amp;r&lt;=n))return e;for(o=o===void 0?b9:vX(o);n&gt;t;){if(n-t&gt;600){const c=n-t+1,a=r-t+1,d=Math.log(c),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(c-f)/c)*(a-c/2&lt;0?-1:1),m=Math.max(t,Math.floor(r-a*f/c+h)),p=Math.min(n,Math.floor(r+(c-a)*f/c+h));y9(e,r,m,p,o)}const s=e[r];let l=t,u=n;for(vd(e,t,r),o(e[n],s)&gt;0&amp;&amp;vd(e,t,n);l&lt;u;){for(vd(e,l,u),++l,--u;o(e[l],s)&lt;0;)++l;for(;o(e[u],s)&gt;0;)--u}o(e[t],s)===0?vd(e,t,u):(++u,vd(e,u,n)),u&lt;=r&amp;&amp;(t=u+1),r&lt;=u&amp;&amp;(n=u-1)}return e}function vd(e,r,t){const n=e[r];e[r]=e[t],e[t]=n}function NX(e,r,t){if(e=Float64Array.from(pX(e)),!(!(n=e.length)||isNaN(r=+r))){if(r&lt;=0||n&lt;2)return yk(e);if(r&gt;=1)return bk(e);var n,o=(n-1)*r,s=Math.floor(o),l=bk(y9(e,s).subarray(0,s+1)),u=yk(e.subarray(s+1));return l+(u-l)*(o-s)}}function kX(e,r,t=x9){if(!(!(n=e.length)||isNaN(r=+r))){if(r&lt;=0||n&lt;2)return+t(e[0],0,e);if(r&gt;=1)return+t(e[n-1],n-1,e);var n,o=(n-1)*r,s=Math.floor(o),l=+t(e[s],s,e),u=+t(e[s+1],s+1,e);return l+(u-l)*(o-s)}}function SX(e,r,t){e=+e,r=+r,t=(o=arguments.length)&lt;2?(r=e,e=0,1):o&lt;3?1:+t;for(var n=-1,o=Math.max(0,Math.ceil((r-e)/t))|0,s=new Array(o);++n&lt;o;)s[n]=e+n*t;return s}function os(e,r){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(r).domain(e);break}return this}function Ya(e,r){switch(arguments.length){case 0:break;case 1:{typeof e==&quot;function&quot;?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof r==&quot;function&quot;?this.interpolator(r):this.range(r);break}}return this}const i1=Symbol(&quot;implicit&quot;);function Q2(){var e=new gk,r=[],t=[],n=i1;function o(s){let l=e.get(s);if(l===void 0){if(n!==i1)return n;e.set(s,l=r.push(s)-1)}return t[l%t.length]}return o.domain=function(s){if(!arguments.length)return r.slice();r=[],e=new gk;for(const l of s)e.has(l)||e.set(l,r.push(l)-1);return o},o.range=function(s){return arguments.length?(t=Array.from(s),o):t.slice()},o.unknown=function(s){return arguments.length?(n=s,o):n},o.copy=function(){return Q2(r,t).unknown(n)},os.apply(o,arguments),o}function J2(){var e=Q2().unknown(void 0),r=e.domain,t=e.range,n=0,o=1,s,l,u=!1,c=0,a=0,d=.5;delete e.unknown;function f(){var h=r().length,m=o&lt;n,p=m?o:n,x=m?n:o;s=(x-p)/Math.max(1,h-c+a*2),u&amp;&amp;(s=Math.floor(s)),p+=(x-p-s*(h-c))*d,l=s*(1-c),u&amp;&amp;(p=Math.round(p),l=Math.round(l));var g=SX(h).map(function(y){return p+s*y});return t(m?g.reverse():g)}return e.domain=function(h){return arguments.length?(r(h),f()):r()},e.range=function(h){return arguments.length?([n,o]=h,n=+n,o=+o,f()):[n,o]},e.rangeRound=function(h){return[n,o]=h,n=+n,o=+o,u=!0,f()},e.bandwidth=function(){return l},e.step=function(){return s},e.round=function(h){return arguments.length?(u=!!h,f()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,a=+h),f()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),f()):c},e.paddingOuter=function(h){return arguments.length?(a=+h,f()):a},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),f()):d},e.copy=function(){return J2(r(),[n,o]).round(u).paddingInner(c).paddingOuter(a).align(d)},os.apply(f(),arguments)}function v9(e){var r=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return v9(r())},e}function CX(){return v9(J2.apply(null,arguments).paddingInner(1))}function ew(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function w9(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function Sf(){}var nf=.7,Sp=1/nf,Kc=&quot;\\s*([+-]?\\d+)\\s*&quot;,sf=&quot;\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,ta=&quot;\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,EX=/^#([0-9a-f]{3,8})$/,AX=new RegExp(`^rgb\\(${Kc},${Kc},${Kc}\\)$`),MX=new RegExp(`^rgb\\(${ta},${ta},${ta}\\)$`),PX=new RegExp(`^rgba\\(${Kc},${Kc},${Kc},${sf}\\)$`),OX=new RegExp(`^rgba\\(${ta},${ta},${ta},${sf}\\)$`),TX=new RegExp(`^hsl\\(${sf},${ta},${ta}\\)$`),IX=new RegExp(`^hsla\\(${sf},${ta},${ta},${sf}\\)$`),vk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ew(Sf,af,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wk,formatHex:wk,formatHex8:RX,formatHsl:DX,formatRgb:_k,toString:_k});function wk(){return this.rgb().formatHex()}function RX(){return this.rgb().formatHex8()}function DX(){return _9(this).formatHsl()}function _k(){return this.rgb().formatRgb()}function af(e){var r,t;return e=(e+&quot;&quot;).trim().toLowerCase(),(r=EX.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?jk(r):t===3?new _i(r&gt;&gt;8&amp;15|r&gt;&gt;4&amp;240,r&gt;&gt;4&amp;15|r&amp;240,(r&amp;15)&lt;&lt;4|r&amp;15,1):t===8?pm(r&gt;&gt;24&amp;255,r&gt;&gt;16&amp;255,r&gt;&gt;8&amp;255,(r&amp;255)/255):t===4?pm(r&gt;&gt;12&amp;15|r&gt;&gt;8&amp;240,r&gt;&gt;8&amp;15|r&gt;&gt;4&amp;240,r&gt;&gt;4&amp;15|r&amp;240,((r&amp;15)&lt;&lt;4|r&amp;15)/255):null):(r=AX.exec(e))?new _i(r[1],r[2],r[3],1):(r=MX.exec(e))?new _i(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=PX.exec(e))?pm(r[1],r[2],r[3],r[4]):(r=OX.exec(e))?pm(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=TX.exec(e))?Sk(r[1],r[2]/100,r[3]/100,1):(r=IX.exec(e))?Sk(r[1],r[2]/100,r[3]/100,r[4]):vk.hasOwnProperty(e)?jk(vk[e]):e===&quot;transparent&quot;?new _i(NaN,NaN,NaN,0):null}function jk(e){return new _i(e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,e&amp;255,1)}function pm(e,r,t,n){return n&lt;=0&amp;&amp;(e=r=t=NaN),new _i(e,r,t,n)}function LX(e){return e instanceof Sf||(e=af(e)),e?(e=e.rgb(),new _i(e.r,e.g,e.b,e.opacity)):new _i}function s1(e,r,t,n){return arguments.length===1?LX(e):new _i(e,r,t,n??1)}function _i(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}ew(_i,s1,w9(Sf,{brighter(e){return e=e==null?Sp:Math.pow(Sp,e),new _i(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?nf:Math.pow(nf,e),new _i(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _i(Ll(this.r),Ll(this.g),Ll(this.b),Cp(this.opacity))},displayable(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:Nk,formatHex:Nk,formatHex8:FX,formatRgb:kk,toString:kk}));function Nk(){return`#${Ol(this.r)}${Ol(this.g)}${Ol(this.b)}`}function FX(){return`#${Ol(this.r)}${Ol(this.g)}${Ol(this.b)}${Ol((isNaN(this.opacity)?1:this.opacity)*255)}`}function kk(){const e=Cp(this.opacity);return`${e===1?&quot;rgb(&quot;:&quot;rgba(&quot;}${Ll(this.r)}, ${Ll(this.g)}, ${Ll(this.b)}${e===1?&quot;)&quot;:`, ${e})`}`}function Cp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ll(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ol(e){return e=Ll(e),(e&lt;16?&quot;0&quot;:&quot;&quot;)+e.toString(16)}function Sk(e,r,t,n){return n&lt;=0?e=r=t=NaN:t&lt;=0||t&gt;=1?e=r=NaN:r&lt;=0&amp;&amp;(e=NaN),new Ss(e,r,t,n)}function _9(e){if(e instanceof Ss)return new Ss(e.h,e.s,e.l,e.opacity);if(e instanceof Sf||(e=af(e)),!e)return new Ss;if(e instanceof Ss)return e;e=e.rgb();var r=e.r/255,t=e.g/255,n=e.b/255,o=Math.min(r,t,n),s=Math.max(r,t,n),l=NaN,u=s-o,c=(s+o)/2;return u?(r===s?l=(t-n)/u+(t&lt;n)*6:t===s?l=(n-r)/u+2:l=(r-t)/u+4,u/=c&lt;.5?s+o:2-s-o,l*=60):u=c&gt;0&amp;&amp;c&lt;1?0:l,new Ss(l,u,c,e.opacity)}function BX(e,r,t,n){return arguments.length===1?_9(e):new Ss(e,r,t,n??1)}function Ss(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}ew(Ss,BX,w9(Sf,{brighter(e){return e=e==null?Sp:Math.pow(Sp,e),new Ss(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?nf:Math.pow(nf,e),new Ss(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h&lt;0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t&lt;.5?t:1-t)*r,o=2*t-n;return new _i(hy(e&gt;=240?e-240:e+120,o,n),hy(e,o,n),hy(e&lt;120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ss(Ck(this.h),gm(this.s),gm(this.l),Cp(this.opacity))},displayable(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl(){const e=Cp(this.opacity);return`${e===1?&quot;hsl(&quot;:&quot;hsla(&quot;}${Ck(this.h)}, ${gm(this.s)*100}%, ${gm(this.l)*100}%${e===1?&quot;)&quot;:`, ${e})`}`}}));function Ck(e){return e=(e||0)%360,e&lt;0?e+360:e}function gm(e){return Math.max(0,Math.min(1,e||0))}function hy(e,r,t){return(e&lt;60?r+(t-r)*e/60:e&lt;180?t:e&lt;240?r+(t-r)*(240-e)/60:r)*255}const tw=e=&gt;()=&gt;e;function $X(e,r){return function(t){return e+t*r}}function zX(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}function UX(e){return(e=+e)==1?j9:function(r,t){return t-r?zX(r,t,e):tw(isNaN(r)?t:r)}}function j9(e,r){var t=r-e;return t?$X(e,t):tw(isNaN(e)?r:e)}const Ek=(function e(r){var t=UX(r);function n(o,s){var l=t((o=s1(o)).r,(s=s1(s)).r),u=t(o.g,s.g),c=t(o.b,s.b),a=j9(o.opacity,s.opacity);return function(d){return o.r=l(d),o.g=u(d),o.b=c(d),o.opacity=a(d),o+&quot;&quot;}}return n.gamma=e,n})(1);function VX(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,n=r.slice(),o;return function(s){for(o=0;o&lt;t;++o)n[o]=e[o]*(1-s)+r[o]*s;return n}}function qX(e){return ArrayBuffer.isView(e)&amp;&amp;!(e instanceof DataView)}function WX(e,r){var t=r?r.length:0,n=e?Math.min(t,e.length):0,o=new Array(n),s=new Array(t),l;for(l=0;l&lt;n;++l)o[l]=mu(e[l],r[l]);for(;l&lt;t;++l)s[l]=r[l];return function(u){for(l=0;l&lt;n;++l)s[l]=o[l](u);return s}}function HX(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}function Ep(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}function KX(e,r){var t={},n={},o;(e===null||typeof e!=&quot;object&quot;)&amp;&amp;(e={}),(r===null||typeof r!=&quot;object&quot;)&amp;&amp;(r={});for(o in r)o in e?t[o]=mu(e[o],r[o]):n[o]=r[o];return function(s){for(o in t)n[o]=t[o](s);return n}}var a1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,my=new RegExp(a1.source,&quot;g&quot;);function XX(e){return function(){return e}}function GX(e){return function(r){return e(r)+&quot;&quot;}}function YX(e,r){var t=a1.lastIndex=my.lastIndex=0,n,o,s,l=-1,u=[],c=[];for(e=e+&quot;&quot;,r=r+&quot;&quot;;(n=a1.exec(e))&amp;&amp;(o=my.exec(r));)(s=o.index)&gt;t&amp;&amp;(s=r.slice(t,s),u[l]?u[l]+=s:u[++l]=s),(n=n[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:Ep(n,o)})),t=my.lastIndex;return t&lt;r.length&amp;&amp;(s=r.slice(t),u[l]?u[l]+=s:u[++l]=s),u.length&lt;2?c[0]?GX(c[0].x):XX(r):(r=c.length,function(a){for(var d=0,f;d&lt;r;++d)u[(f=c[d]).i]=f.x(a);return u.join(&quot;&quot;)})}function mu(e,r){var t=typeof r,n;return r==null||t===&quot;boolean&quot;?tw(r):(t===&quot;number&quot;?Ep:t===&quot;string&quot;?(n=af(r))?(r=n,Ek):YX:r instanceof af?Ek:r instanceof Date?HX:qX(r)?VX:Array.isArray(r)?WX:typeof r.valueOf!=&quot;function&quot;&amp;&amp;typeof r.toString!=&quot;function&quot;||isNaN(r)?KX:Ep)(e,r)}function rw(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}function ZX(e,r){r===void 0&amp;&amp;(r=e,e=mu);for(var t=0,n=r.length-1,o=r[0],s=new Array(n&lt;0?0:n);t&lt;n;)s[t]=e(o,o=r[++t]);return function(l){var u=Math.max(0,Math.min(n-1,Math.floor(l*=n)));return s[u](l-u)}}function QX(e){return function(){return e}}function Ap(e){return+e}var Ak=[0,1];function oi(e){return e}function o1(e,r){return(r-=e=+e)?function(t){return(t-e)/r}:QX(isNaN(r)?NaN:.5)}function JX(e,r){var t;return e&gt;r&amp;&amp;(t=e,e=r,r=t),function(n){return Math.max(e,Math.min(r,n))}}function eG(e,r,t){var n=e[0],o=e[1],s=r[0],l=r[1];return o&lt;n?(n=o1(o,n),s=t(l,s)):(n=o1(n,o),s=t(s,l)),function(u){return s(n(u))}}function tG(e,r,t){var n=Math.min(e.length,r.length)-1,o=new Array(n),s=new Array(n),l=-1;for(e[n]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++l&lt;n;)o[l]=o1(e[l],e[l+1]),s[l]=t(r[l],r[l+1]);return function(u){var c=kf(e,u,1,n)-1;return s[c](o[c](u))}}function Cf(e,r){return r.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function T0(){var e=Ak,r=Ak,t=mu,n,o,s,l=oi,u,c,a;function d(){var h=Math.min(e.length,r.length);return l!==oi&amp;&amp;(l=JX(e[0],e[h-1])),u=h&gt;2?tG:eG,c=a=null,f}function f(h){return h==null||isNaN(h=+h)?s:(c||(c=u(e.map(n),r,t)))(n(l(h)))}return f.invert=function(h){return l(o((a||(a=u(r,e.map(n),Ep)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Ap),d()):e.slice()},f.range=function(h){return arguments.length?(r=Array.from(h),d()):r.slice()},f.rangeRound=function(h){return r=Array.from(h),t=rw,d()},f.clamp=function(h){return arguments.length?(l=h?!0:oi,d()):l!==oi},f.interpolate=function(h){return arguments.length?(t=h,d()):t},f.unknown=function(h){return arguments.length?(s=h,f):s},function(h,m){return n=h,o=m,d()}}function nw(){return T0()(oi,oi)}function rG(e){return Math.abs(e=Math.round(e))&gt;=1e21?e.toLocaleString(&quot;en&quot;).replace(/,/g,&quot;&quot;):e.toString(10)}function Mp(e,r){if(!isFinite(e)||e===0)return null;var t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf(&quot;e&quot;),n=e.slice(0,t);return[n.length&gt;1?n[0]+n.slice(2):n,+e.slice(t+1)]}function nu(e){return e=Mp(Math.abs(e)),e?e[1]:NaN}function nG(e,r){return function(t,n){for(var o=t.length,s=[],l=0,u=e[0],c=0;o&gt;0&amp;&amp;u&gt;0&amp;&amp;(c+u+1&gt;n&amp;&amp;(u=Math.max(1,n-c)),s.push(t.substring(o-=u,o+u)),!((c+=u+1)&gt;n));)u=e[l=(l+1)%e.length];return s.reverse().join(r)}}function iG(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}var sG=/^(?:(.)?([&lt;&gt;=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function of(e){if(!(r=sG.exec(e)))throw new Error(&quot;invalid format: &quot;+e);var r;return new iw({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&amp;&amp;r[8].slice(1),trim:r[9],type:r[10]})}of.prototype=iw.prototype;function iw(e){this.fill=e.fill===void 0?&quot; &quot;:e.fill+&quot;&quot;,this.align=e.align===void 0?&quot;&gt;&quot;:e.align+&quot;&quot;,this.sign=e.sign===void 0?&quot;-&quot;:e.sign+&quot;&quot;,this.symbol=e.symbol===void 0?&quot;&quot;:e.symbol+&quot;&quot;,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?&quot;&quot;:e.type+&quot;&quot;}iw.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?&quot;0&quot;:&quot;&quot;)+(this.width===void 0?&quot;&quot;:Math.max(1,this.width|0))+(this.comma?&quot;,&quot;:&quot;&quot;)+(this.precision===void 0?&quot;&quot;:&quot;.&quot;+Math.max(0,this.precision|0))+(this.trim?&quot;~&quot;:&quot;&quot;)+this.type};function aG(e){e:for(var r=e.length,t=1,n=-1,o;t&lt;r;++t)switch(e[t]){case&quot;.&quot;:n=o=t;break;case&quot;0&quot;:n===0&amp;&amp;(n=t),o=t;break;default:if(!+e[t])break e;n&gt;0&amp;&amp;(n=0);break}return n&gt;0?e.slice(0,n)+e.slice(o+1):e}var Pp;function oG(e,r){var t=Mp(e,r);if(!t)return Pp=void 0,e.toPrecision(r);var n=t[0],o=t[1],s=o-(Pp=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,l=n.length;return s===l?n:s&gt;l?n+new Array(s-l+1).join(&quot;0&quot;):s&gt;0?n.slice(0,s)+&quot;.&quot;+n.slice(s):&quot;0.&quot;+new Array(1-s).join(&quot;0&quot;)+Mp(e,Math.max(0,r+s-1))[0]}function Mk(e,r){var t=Mp(e,r);if(!t)return e+&quot;&quot;;var n=t[0],o=t[1];return o&lt;0?&quot;0.&quot;+new Array(-o).join(&quot;0&quot;)+n:n.length&gt;o+1?n.slice(0,o+1)+&quot;.&quot;+n.slice(o+1):n+new Array(o-n.length+2).join(&quot;0&quot;)}const Pk={&quot;%&quot;:(e,r)=&gt;(e*100).toFixed(r),b:e=&gt;Math.round(e).toString(2),c:e=&gt;e+&quot;&quot;,d:rG,e:(e,r)=&gt;e.toExponential(r),f:(e,r)=&gt;e.toFixed(r),g:(e,r)=&gt;e.toPrecision(r),o:e=&gt;Math.round(e).toString(8),p:(e,r)=&gt;Mk(e*100,r),r:Mk,s:oG,X:e=&gt;Math.round(e).toString(16).toUpperCase(),x:e=&gt;Math.round(e).toString(16)};function Ok(e){return e}var Tk=Array.prototype.map,Ik=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;µ&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;];function lG(e){var r=e.grouping===void 0||e.thousands===void 0?Ok:nG(Tk.call(e.grouping,Number),e.thousands+&quot;&quot;),t=e.currency===void 0?&quot;&quot;:e.currency[0]+&quot;&quot;,n=e.currency===void 0?&quot;&quot;:e.currency[1]+&quot;&quot;,o=e.decimal===void 0?&quot;.&quot;:e.decimal+&quot;&quot;,s=e.numerals===void 0?Ok:iG(Tk.call(e.numerals,String)),l=e.percent===void 0?&quot;%&quot;:e.percent+&quot;&quot;,u=e.minus===void 0?&quot;−&quot;:e.minus+&quot;&quot;,c=e.nan===void 0?&quot;NaN&quot;:e.nan+&quot;&quot;;function a(f,h){f=of(f);var m=f.fill,p=f.align,x=f.sign,g=f.symbol,y=f.zero,v=f.width,_=f.comma,S=f.precision,A=f.trim,I=f.type;I===&quot;n&quot;?(_=!0,I=&quot;g&quot;):Pk[I]||(S===void 0&amp;&amp;(S=12),A=!0,I=&quot;g&quot;),(y||m===&quot;0&quot;&amp;&amp;p===&quot;=&quot;)&amp;&amp;(y=!0,m=&quot;0&quot;,p=&quot;=&quot;);var V=(h&amp;&amp;h.prefix!==void 0?h.prefix:&quot;&quot;)+(g===&quot;$&quot;?t:g===&quot;#&quot;&amp;&amp;/[boxX]/.test(I)?&quot;0&quot;+I.toLowerCase():&quot;&quot;),F=(g===&quot;$&quot;?n:/[%p]/.test(I)?l:&quot;&quot;)+(h&amp;&amp;h.suffix!==void 0?h.suffix:&quot;&quot;),q=Pk[I],H=/[defgprs%]/.test(I);S=S===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function B(K){var T=V,L=F,E,j,k;if(I===&quot;c&quot;)L=q(K)+L,K=&quot;&quot;;else{K=+K;var N=K&lt;0||1/K&lt;0;if(K=isNaN(K)?c:q(Math.abs(K),S),A&amp;&amp;(K=aG(K)),N&amp;&amp;+K==0&amp;&amp;x!==&quot;+&quot;&amp;&amp;(N=!1),T=(N?x===&quot;(&quot;?x:u:x===&quot;-&quot;||x===&quot;(&quot;?&quot;&quot;:x)+T,L=(I===&quot;s&quot;&amp;&amp;!isNaN(K)&amp;&amp;Pp!==void 0?Ik[8+Pp/3]:&quot;&quot;)+L+(N&amp;&amp;x===&quot;(&quot;?&quot;)&quot;:&quot;&quot;),H){for(E=-1,j=K.length;++E&lt;j;)if(k=K.charCodeAt(E),48&gt;k||k&gt;57){L=(k===46?o+K.slice(E+1):K.slice(E))+L,K=K.slice(0,E);break}}}_&amp;&amp;!y&amp;&amp;(K=r(K,1/0));var C=T.length+K.length+L.length,P=C&lt;v?new Array(v-C+1).join(m):&quot;&quot;;switch(_&amp;&amp;y&amp;&amp;(K=r(P+K,P.length?v-L.length:1/0),P=&quot;&quot;),p){case&quot;&lt;&quot;:K=T+K+L+P;break;case&quot;=&quot;:K=T+P+K+L;break;case&quot;^&quot;:K=P.slice(0,C=P.length&gt;&gt;1)+T+K+L+P.slice(C);break;default:K=P+T+K+L;break}return s(K)}return B.toString=function(){return f+&quot;&quot;},B}function d(f,h){var m=Math.max(-8,Math.min(8,Math.floor(nu(h)/3)))*3,p=Math.pow(10,-m),x=a((f=of(f),f.type=&quot;f&quot;,f),{suffix:Ik[8+m/3]});return function(g){return x(p*g)}}return{format:a,formatPrefix:d}}var xm,sw,N9;cG({thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;]});function cG(e){return xm=lG(e),sw=xm.format,N9=xm.formatPrefix,xm}function uG(e){return Math.max(0,-nu(Math.abs(e)))}function dG(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(nu(r)/3)))*3-nu(Math.abs(e)))}function fG(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,nu(r)-nu(e))+1}function k9(e,r,t,n){var o=n1(e,r,t),s;switch(n=of(n??&quot;,f&quot;),n.type){case&quot;s&quot;:{var l=Math.max(Math.abs(e),Math.abs(r));return n.precision==null&amp;&amp;!isNaN(s=dG(o,l))&amp;&amp;(n.precision=s),N9(n,l)}case&quot;&quot;:case&quot;e&quot;:case&quot;g&quot;:case&quot;p&quot;:case&quot;r&quot;:{n.precision==null&amp;&amp;!isNaN(s=fG(o,Math.max(Math.abs(e),Math.abs(r))))&amp;&amp;(n.precision=s-(n.type===&quot;e&quot;));break}case&quot;f&quot;:case&quot;%&quot;:{n.precision==null&amp;&amp;!isNaN(s=uG(o))&amp;&amp;(n.precision=s-(n.type===&quot;%&quot;)*2);break}}return sw(n)}function Xo(e){var r=e.domain;return e.ticks=function(t){var n=r();return t1(n[0],n[n.length-1],t??10)},e.tickFormat=function(t,n){var o=r();return k9(o[0],o[o.length-1],t??10,n)},e.nice=function(t){t==null&amp;&amp;(t=10);var n=r(),o=0,s=n.length-1,l=n[o],u=n[s],c,a,d=10;for(u&lt;l&amp;&amp;(a=l,l=u,u=a,a=o,o=s,s=a);d-- &gt;0;){if(a=r1(l,u,t),a===c)return n[o]=l,n[s]=u,r(n);if(a&gt;0)l=Math.floor(l/a)*a,u=Math.ceil(u/a)*a;else if(a&lt;0)l=Math.ceil(l*a)/a,u=Math.floor(u*a)/a;else break;c=a}return e},e}function S9(){var e=nw();return e.copy=function(){return Cf(e,S9())},os.apply(e,arguments),Xo(e)}function C9(e){var r;function t(n){return n==null||isNaN(n=+n)?r:n}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=Array.from(n,Ap),t):e.slice()},t.unknown=function(n){return arguments.length?(r=n,t):r},t.copy=function(){return C9(e).unknown(r)},e=arguments.length?Array.from(e,Ap):[0,1],Xo(t)}function E9(e,r){e=e.slice();var t=0,n=e.length-1,o=e[t],s=e[n],l;return s&lt;o&amp;&amp;(l=t,t=n,n=l,l=o,o=s,s=l),e[t]=r.floor(o),e[n]=r.ceil(s),e}function Rk(e){return Math.log(e)}function Dk(e){return Math.exp(e)}function hG(e){return-Math.log(-e)}function mG(e){return-Math.exp(-e)}function pG(e){return isFinite(e)?+(&quot;1e&quot;+e):e&lt;0?0:e}function gG(e){return e===10?pG:e===Math.E?Math.exp:r=&gt;Math.pow(e,r)}function xG(e){return e===Math.E?Math.log:e===10&amp;&amp;Math.log10||e===2&amp;&amp;Math.log2||(e=Math.log(e),r=&gt;Math.log(r)/e)}function Lk(e){return(r,t)=&gt;-e(-r,t)}function aw(e){const r=e(Rk,Dk),t=r.domain;let n=10,o,s;function l(){return o=xG(n),s=gG(n),t()[0]&lt;0?(o=Lk(o),s=Lk(s),e(hG,mG)):e(Rk,Dk),r}return r.base=function(u){return arguments.length?(n=+u,l()):n},r.domain=function(u){return arguments.length?(t(u),l()):t()},r.ticks=u=&gt;{const c=t();let a=c[0],d=c[c.length-1];const f=d&lt;a;f&amp;&amp;([a,d]=[d,a]);let h=o(a),m=o(d),p,x;const g=u==null?10:+u;let y=[];if(!(n%1)&amp;&amp;m-h&lt;g){if(h=Math.floor(h),m=Math.ceil(m),a&gt;0){for(;h&lt;=m;++h)for(p=1;p&lt;n;++p)if(x=h&lt;0?p/s(-h):p*s(h),!(x&lt;a)){if(x&gt;d)break;y.push(x)}}else for(;h&lt;=m;++h)for(p=n-1;p&gt;=1;--p)if(x=h&gt;0?p/s(-h):p*s(h),!(x&lt;a)){if(x&gt;d)break;y.push(x)}y.length*2&lt;g&amp;&amp;(y=t1(a,d,g))}else y=t1(h,m,Math.min(m-h,g)).map(s);return f?y.reverse():y},r.tickFormat=(u,c)=&gt;{if(u==null&amp;&amp;(u=10),c==null&amp;&amp;(c=n===10?&quot;s&quot;:&quot;,&quot;),typeof c!=&quot;function&quot;&amp;&amp;(!(n%1)&amp;&amp;(c=of(c)).precision==null&amp;&amp;(c.trim=!0),c=sw(c)),u===1/0)return c;const a=Math.max(1,n*u/r.ticks().length);return d=&gt;{let f=d/s(Math.round(o(d)));return f*n&lt;n-.5&amp;&amp;(f*=n),f&lt;=a?c(d):&quot;&quot;}},r.nice=()=&gt;t(E9(t(),{floor:u=&gt;s(Math.floor(o(u))),ceil:u=&gt;s(Math.ceil(o(u)))})),r}function A9(){const e=aw(T0()).domain([1,10]);return e.copy=()=&gt;Cf(e,A9()).base(e.base()),os.apply(e,arguments),e}function Fk(e){return function(r){return Math.sign(r)*Math.log1p(Math.abs(r/e))}}function Bk(e){return function(r){return Math.sign(r)*Math.expm1(Math.abs(r))*e}}function ow(e){var r=1,t=e(Fk(r),Bk(r));return t.constant=function(n){return arguments.length?e(Fk(r=+n),Bk(r)):r},Xo(t)}function M9(){var e=ow(T0());return e.copy=function(){return Cf(e,M9()).constant(e.constant())},os.apply(e,arguments)}function $k(e){return function(r){return r&lt;0?-Math.pow(-r,e):Math.pow(r,e)}}function bG(e){return e&lt;0?-Math.sqrt(-e):Math.sqrt(e)}function yG(e){return e&lt;0?-e*e:e*e}function lw(e){var r=e(oi,oi),t=1;function n(){return t===1?e(oi,oi):t===.5?e(bG,yG):e($k(t),$k(1/t))}return r.exponent=function(o){return arguments.length?(t=+o,n()):t},Xo(r)}function cw(){var e=lw(T0());return e.copy=function(){return Cf(e,cw()).exponent(e.exponent())},os.apply(e,arguments),e}function vG(){return cw.apply(null,arguments).exponent(.5)}function zk(e){return Math.sign(e)*e*e}function wG(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function P9(){var e=nw(),r=[0,1],t=!1,n;function o(s){var l=wG(e(s));return isNaN(l)?n:t?Math.round(l):l}return o.invert=function(s){return e.invert(zk(s))},o.domain=function(s){return arguments.length?(e.domain(s),o):e.domain()},o.range=function(s){return arguments.length?(e.range((r=Array.from(s,Ap)).map(zk)),o):r.slice()},o.rangeRound=function(s){return o.range(s).round(!0)},o.round=function(s){return arguments.length?(t=!!s,o):t},o.clamp=function(s){return arguments.length?(e.clamp(s),o):e.clamp()},o.unknown=function(s){return arguments.length?(n=s,o):n},o.copy=function(){return P9(e.domain(),r).round(t).clamp(e.clamp()).unknown(n)},os.apply(o,arguments),Xo(o)}function O9(){var e=[],r=[],t=[],n;function o(){var l=0,u=Math.max(1,r.length);for(t=new Array(u-1);++l&lt;u;)t[l-1]=kX(e,l/u);return s}function s(l){return l==null||isNaN(l=+l)?n:r[kf(t,l)]}return s.invertExtent=function(l){var u=r.indexOf(l);return u&lt;0?[NaN,NaN]:[u&gt;0?t[u-1]:e[0],u&lt;t.length?t[u]:e[e.length-1]]},s.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let u of l)u!=null&amp;&amp;!isNaN(u=+u)&amp;&amp;e.push(u);return e.sort(Bo),o()},s.range=function(l){return arguments.length?(r=Array.from(l),o()):r.slice()},s.unknown=function(l){return arguments.length?(n=l,s):n},s.quantiles=function(){return t.slice()},s.copy=function(){return O9().domain(e).range(r).unknown(n)},os.apply(s,arguments)}function T9(){var e=0,r=1,t=1,n=[.5],o=[0,1],s;function l(c){return c!=null&amp;&amp;c&lt;=c?o[kf(n,c,0,t)]:s}function u(){var c=-1;for(n=new Array(t);++c&lt;t;)n[c]=((c+1)*r-(c-t)*e)/(t+1);return l}return l.domain=function(c){return arguments.length?([e,r]=c,e=+e,r=+r,u()):[e,r]},l.range=function(c){return arguments.length?(t=(o=Array.from(c)).length-1,u()):o.slice()},l.invertExtent=function(c){var a=o.indexOf(c);return a&lt;0?[NaN,NaN]:a&lt;1?[e,n[0]]:a&gt;=t?[n[t-1],r]:[n[a-1],n[a]]},l.unknown=function(c){return arguments.length&amp;&amp;(s=c),l},l.thresholds=function(){return n.slice()},l.copy=function(){return T9().domain([e,r]).range(o).unknown(s)},os.apply(Xo(l),arguments)}function I9(){var e=[.5],r=[0,1],t,n=1;function o(s){return s!=null&amp;&amp;s&lt;=s?r[kf(e,s,0,n)]:t}return o.domain=function(s){return arguments.length?(e=Array.from(s),n=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(s){return arguments.length?(r=Array.from(s),n=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(s){var l=r.indexOf(s);return[e[l-1],e[l]]},o.unknown=function(s){return arguments.length?(t=s,o):t},o.copy=function(){return I9().domain(e).range(r).unknown(t)},os.apply(o,arguments)}const py=new Date,gy=new Date;function dn(e,r,t,n){function o(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=&gt;(e(s=new Date(+s)),s),o.ceil=s=&gt;(e(s=new Date(s-1)),r(s,1),e(s),s),o.round=s=&gt;{const l=o(s),u=o.ceil(s);return s-l&lt;u-s?l:u},o.offset=(s,l)=&gt;(r(s=new Date(+s),l==null?1:Math.floor(l)),s),o.range=(s,l,u)=&gt;{const c=[];if(s=o.ceil(s),u=u==null?1:Math.floor(u),!(s&lt;l)||!(u&gt;0))return c;let a;do c.push(a=new Date(+s)),r(s,u),e(s);while(a&lt;s&amp;&amp;s&lt;l);return c},o.filter=s=&gt;dn(l=&gt;{if(l&gt;=l)for(;e(l),!s(l);)l.setTime(l-1)},(l,u)=&gt;{if(l&gt;=l)if(u&lt;0)for(;++u&lt;=0;)for(;r(l,-1),!s(l););else for(;--u&gt;=0;)for(;r(l,1),!s(l););}),t&amp;&amp;(o.count=(s,l)=&gt;(py.setTime(+s),gy.setTime(+l),e(py),e(gy),Math.floor(t(py,gy))),o.every=s=&gt;(s=Math.floor(s),!isFinite(s)||!(s&gt;0)?null:s&gt;1?o.filter(n?l=&gt;n(l)%s===0:l=&gt;o.count(0,l)%s===0):o)),o}const Op=dn(()=&gt;{},(e,r)=&gt;{e.setTime(+e+r)},(e,r)=&gt;r-e);Op.every=e=&gt;(e=Math.floor(e),!isFinite(e)||!(e&gt;0)?null:e&gt;1?dn(r=&gt;{r.setTime(Math.floor(r/e)*e)},(r,t)=&gt;{r.setTime(+r+t*e)},(r,t)=&gt;(t-r)/e):Op);Op.range;const Ma=1e3,ts=Ma*60,Pa=ts*60,Ua=Pa*24,uw=Ua*7,Uk=Ua*30,xy=Ua*365,Tl=dn(e=&gt;{e.setTime(e-e.getMilliseconds())},(e,r)=&gt;{e.setTime(+e+r*Ma)},(e,r)=&gt;(r-e)/Ma,e=&gt;e.getUTCSeconds());Tl.range;const dw=dn(e=&gt;{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ma)},(e,r)=&gt;{e.setTime(+e+r*ts)},(e,r)=&gt;(r-e)/ts,e=&gt;e.getMinutes());dw.range;const fw=dn(e=&gt;{e.setUTCSeconds(0,0)},(e,r)=&gt;{e.setTime(+e+r*ts)},(e,r)=&gt;(r-e)/ts,e=&gt;e.getUTCMinutes());fw.range;const hw=dn(e=&gt;{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ma-e.getMinutes()*ts)},(e,r)=&gt;{e.setTime(+e+r*Pa)},(e,r)=&gt;(r-e)/Pa,e=&gt;e.getHours());hw.range;const mw=dn(e=&gt;{e.setUTCMinutes(0,0,0)},(e,r)=&gt;{e.setTime(+e+r*Pa)},(e,r)=&gt;(r-e)/Pa,e=&gt;e.getUTCHours());mw.range;const Ef=dn(e=&gt;e.setHours(0,0,0,0),(e,r)=&gt;e.setDate(e.getDate()+r),(e,r)=&gt;(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*ts)/Ua,e=&gt;e.getDate()-1);Ef.range;const I0=dn(e=&gt;{e.setUTCHours(0,0,0,0)},(e,r)=&gt;{e.setUTCDate(e.getUTCDate()+r)},(e,r)=&gt;(r-e)/Ua,e=&gt;e.getUTCDate()-1);I0.range;const R9=dn(e=&gt;{e.setUTCHours(0,0,0,0)},(e,r)=&gt;{e.setUTCDate(e.getUTCDate()+r)},(e,r)=&gt;(r-e)/Ua,e=&gt;Math.floor(e/Ua));R9.range;function Kl(e){return dn(r=&gt;{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,t)=&gt;{r.setDate(r.getDate()+t*7)},(r,t)=&gt;(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*ts)/uw)}const R0=Kl(0),Tp=Kl(1),_G=Kl(2),jG=Kl(3),iu=Kl(4),NG=Kl(5),kG=Kl(6);R0.range;Tp.range;_G.range;jG.range;iu.range;NG.range;kG.range;function Xl(e){return dn(r=&gt;{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,t)=&gt;{r.setUTCDate(r.getUTCDate()+t*7)},(r,t)=&gt;(t-r)/uw)}const D0=Xl(0),Ip=Xl(1),SG=Xl(2),CG=Xl(3),su=Xl(4),EG=Xl(5),AG=Xl(6);D0.range;Ip.range;SG.range;CG.range;su.range;EG.range;AG.range;const pw=dn(e=&gt;{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=&gt;{e.setMonth(e.getMonth()+r)},(e,r)=&gt;r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,e=&gt;e.getMonth());pw.range;const gw=dn(e=&gt;{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=&gt;{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=&gt;r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,e=&gt;e.getUTCMonth());gw.range;const Va=dn(e=&gt;{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=&gt;{e.setFullYear(e.getFullYear()+r)},(e,r)=&gt;r.getFullYear()-e.getFullYear(),e=&gt;e.getFullYear());Va.every=e=&gt;!isFinite(e=Math.floor(e))||!(e&gt;0)?null:dn(r=&gt;{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,t)=&gt;{r.setFullYear(r.getFullYear()+t*e)});Va.range;const qa=dn(e=&gt;{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=&gt;{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=&gt;r.getUTCFullYear()-e.getUTCFullYear(),e=&gt;e.getUTCFullYear());qa.every=e=&gt;!isFinite(e=Math.floor(e))||!(e&gt;0)?null:dn(r=&gt;{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,t)=&gt;{r.setUTCFullYear(r.getUTCFullYear()+t*e)});qa.range;function D9(e,r,t,n,o,s){const l=[[Tl,1,Ma],[Tl,5,5*Ma],[Tl,15,15*Ma],[Tl,30,30*Ma],[s,1,ts],[s,5,5*ts],[s,15,15*ts],[s,30,30*ts],[o,1,Pa],[o,3,3*Pa],[o,6,6*Pa],[o,12,12*Pa],[n,1,Ua],[n,2,2*Ua],[t,1,uw],[r,1,Uk],[r,3,3*Uk],[e,1,xy]];function u(a,d,f){const h=d&lt;a;h&amp;&amp;([a,d]=[d,a]);const m=f&amp;&amp;typeof f.range==&quot;function&quot;?f:c(a,d,f),p=m?m.range(a,+d+1):[];return h?p.reverse():p}function c(a,d,f){const h=Math.abs(d-a)/f,m=Z2(([,,g])=&gt;g).right(l,h);if(m===l.length)return e.every(n1(a/xy,d/xy,f));if(m===0)return Op.every(Math.max(n1(a,d,f),1));const[p,x]=l[h/l[m-1][2]&lt;l[m][2]/h?m-1:m];return p.every(x)}return[u,c]}const[MG,PG]=D9(qa,gw,D0,R9,mw,fw),[OG,TG]=D9(Va,pw,R0,Ef,hw,dw);function by(e){if(0&lt;=e.y&amp;&amp;e.y&lt;100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function yy(e){if(0&lt;=e.y&amp;&amp;e.y&lt;100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wd(e,r,t){return{y:e,m:r,d:t,H:0,M:0,S:0,L:0}}function IG(e){var r=e.dateTime,t=e.date,n=e.time,o=e.periods,s=e.days,l=e.shortDays,u=e.months,c=e.shortMonths,a=_d(o),d=jd(o),f=_d(s),h=jd(s),m=_d(l),p=jd(l),x=_d(u),g=jd(u),y=_d(c),v=jd(c),_={a:k,A:N,b:C,B:P,c:null,d:Xk,e:Xk,f:nY,g:hY,G:pY,H:eY,I:tY,j:rY,L:L9,m:iY,M:sY,p:D,q:z,Q:Zk,s:Qk,S:aY,u:oY,U:lY,V:cY,w:uY,W:dY,x:null,X:null,y:fY,Y:mY,Z:gY,&quot;%&quot;:Yk},S={a:Y,A:Z,b:ne,B:U,c:null,d:Gk,e:Gk,f:vY,g:MY,G:OY,H:xY,I:bY,j:yY,L:B9,m:wY,M:_Y,p:J,q:$,Q:Zk,s:Qk,S:jY,u:NY,U:kY,V:SY,w:CY,W:EY,x:null,X:null,y:AY,Y:PY,Z:TY,&quot;%&quot;:Yk},A={a:H,A:B,b:K,B:T,c:L,d:Hk,e:Hk,f:YG,g:Wk,G:qk,H:Kk,I:Kk,j:HG,L:GG,m:WG,M:KG,p:q,q:qG,Q:QG,s:JG,S:XG,u:BG,U:$G,V:zG,w:FG,W:UG,x:E,X:j,y:Wk,Y:qk,Z:VG,&quot;%&quot;:ZG};_.x=I(t,_),_.X=I(n,_),_.c=I(r,_),S.x=I(t,S),S.X=I(n,S),S.c=I(r,S);function I(R,X){return function(re){var Q=[],te=-1,ie=0,de=R.length,ce,se,fe;for(re instanceof Date||(re=new Date(+re));++te&lt;de;)R.charCodeAt(te)===37&amp;&amp;(Q.push(R.slice(ie,te)),(se=Vk[ce=R.charAt(++te)])!=null?ce=R.charAt(++te):se=ce===&quot;e&quot;?&quot; &quot;:&quot;0&quot;,(fe=X[ce])&amp;&amp;(ce=fe(re,se)),Q.push(ce),ie=te+1);return Q.push(R.slice(ie,te)),Q.join(&quot;&quot;)}}function V(R,X){return function(re){var Q=wd(1900,void 0,1),te=F(Q,R,re+=&quot;&quot;,0),ie,de;if(te!=re.length)return null;if(&quot;Q&quot;in Q)return new Date(Q.Q);if(&quot;s&quot;in Q)return new Date(Q.s*1e3+(&quot;L&quot;in Q?Q.L:0));if(X&amp;&amp;!(&quot;Z&quot;in Q)&amp;&amp;(Q.Z=0),&quot;p&quot;in Q&amp;&amp;(Q.H=Q.H%12+Q.p*12),Q.m===void 0&amp;&amp;(Q.m=&quot;q&quot;in Q?Q.q:0),&quot;V&quot;in Q){if(Q.V&lt;1||Q.V&gt;53)return null;&quot;w&quot;in Q||(Q.w=1),&quot;Z&quot;in Q?(ie=yy(wd(Q.y,0,1)),de=ie.getUTCDay(),ie=de&gt;4||de===0?Ip.ceil(ie):Ip(ie),ie=I0.offset(ie,(Q.V-1)*7),Q.y=ie.getUTCFullYear(),Q.m=ie.getUTCMonth(),Q.d=ie.getUTCDate()+(Q.w+6)%7):(ie=by(wd(Q.y,0,1)),de=ie.getDay(),ie=de&gt;4||de===0?Tp.ceil(ie):Tp(ie),ie=Ef.offset(ie,(Q.V-1)*7),Q.y=ie.getFullYear(),Q.m=ie.getMonth(),Q.d=ie.getDate()+(Q.w+6)%7)}else(&quot;W&quot;in Q||&quot;U&quot;in Q)&amp;&amp;(&quot;w&quot;in Q||(Q.w=&quot;u&quot;in Q?Q.u%7:&quot;W&quot;in Q?1:0),de=&quot;Z&quot;in Q?yy(wd(Q.y,0,1)).getUTCDay():by(wd(Q.y,0,1)).getDay(),Q.m=0,Q.d=&quot;W&quot;in Q?(Q.w+6)%7+Q.W*7-(de+5)%7:Q.w+Q.U*7-(de+6)%7);return&quot;Z&quot;in Q?(Q.H+=Q.Z/100|0,Q.M+=Q.Z%100,yy(Q)):by(Q)}}function F(R,X,re,Q){for(var te=0,ie=X.length,de=re.length,ce,se;te&lt;ie;){if(Q&gt;=de)return-1;if(ce=X.charCodeAt(te++),ce===37){if(ce=X.charAt(te++),se=A[ce in Vk?X.charAt(te++):ce],!se||(Q=se(R,re,Q))&lt;0)return-1}else if(ce!=re.charCodeAt(Q++))return-1}return Q}function q(R,X,re){var Q=a.exec(X.slice(re));return Q?(R.p=d.get(Q[0].toLowerCase()),re+Q[0].length):-1}function H(R,X,re){var Q=m.exec(X.slice(re));return Q?(R.w=p.get(Q[0].toLowerCase()),re+Q[0].length):-1}function B(R,X,re){var Q=f.exec(X.slice(re));return Q?(R.w=h.get(Q[0].toLowerCase()),re+Q[0].length):-1}function K(R,X,re){var Q=y.exec(X.slice(re));return Q?(R.m=v.get(Q[0].toLowerCase()),re+Q[0].length):-1}function T(R,X,re){var Q=x.exec(X.slice(re));return Q?(R.m=g.get(Q[0].toLowerCase()),re+Q[0].length):-1}function L(R,X,re){return F(R,r,X,re)}function E(R,X,re){return F(R,t,X,re)}function j(R,X,re){return F(R,n,X,re)}function k(R){return l[R.getDay()]}function N(R){return s[R.getDay()]}function C(R){return c[R.getMonth()]}function P(R){return u[R.getMonth()]}function D(R){return o[+(R.getHours()&gt;=12)]}function z(R){return 1+~~(R.getMonth()/3)}function Y(R){return l[R.getUTCDay()]}function Z(R){return s[R.getUTCDay()]}function ne(R){return c[R.getUTCMonth()]}function U(R){return u[R.getUTCMonth()]}function J(R){return o[+(R.getUTCHours()&gt;=12)]}function $(R){return 1+~~(R.getUTCMonth()/3)}return{format:function(R){var X=I(R+=&quot;&quot;,_);return X.toString=function(){return R},X},parse:function(R){var X=V(R+=&quot;&quot;,!1);return X.toString=function(){return R},X},utcFormat:function(R){var X=I(R+=&quot;&quot;,S);return X.toString=function(){return R},X},utcParse:function(R){var X=V(R+=&quot;&quot;,!0);return X.toString=function(){return R},X}}}var Vk={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},Sn=/^\s*\d+/,RG=/^%/,DG=/[\\^$*+?|[\]().{}]/g;function cr(e,r,t){var n=e&lt;0?&quot;-&quot;:&quot;&quot;,o=(n?-e:e)+&quot;&quot;,s=o.length;return n+(s&lt;t?new Array(t-s+1).join(r)+o:o)}function LG(e){return e.replace(DG,&quot;\\$&amp;&quot;)}function _d(e){return new RegExp(&quot;^(?:&quot;+e.map(LG).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function jd(e){return new Map(e.map((r,t)=&gt;[r.toLowerCase(),t]))}function FG(e,r,t){var n=Sn.exec(r.slice(t,t+1));return n?(e.w=+n[0],t+n[0].length):-1}function BG(e,r,t){var n=Sn.exec(r.slice(t,t+1));return n?(e.u=+n[0],t+n[0].length):-1}function $G(e,r,t){var n=Sn.exec(r.slice(t,t+2));return n?(e.U=+n[0],t+n[0].length):-1}function zG(e,r,t){var n=Sn.exec(r.slice(t,t+2));return n?(e.V=+n[0],t+n[0].length):-1}function UG(e,r,t){var n=Sn.exec(r.slice(t,t+2));return n?(e.W=+n[0],t+n[0].length):-1}function qk(e,r,t){var n=Sn.exec(r.slice(t,t+4));return n?(e.y=+n[0],t+n[0].length):-1}function Wk(e,r,t){var n=Sn.exec(r.slice(t,t+2));return n?(e.y=+n[0]+(+n[0]&gt;68?1900:2e3),t+n[0].length):-1}function VG(e,r,t){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),t+n[0].length):-1}function qG(e,r,t){var n=Sn.exec(r.slice(t,t+1));return n?(e.q=n[0]*3-3,t+n[0].length):-1}function WG(e,r,t){var n=Sn.exec(r.slice(t,t+2));return n?(e.m=n[0]-1,t+n[0].length):-1}function Hk(e,r,t){var n=Sn.exec(r.slice(t,t+2));return n?(e.d=+n[0],t+n[0].length):-1}function HG(e,r,t){var n=Sn.exec(r.slice(t,t+3));return n?(e.m=0,e.d=+n[0],t+n[0].length):-1}function Kk(e,r,t){var n=Sn.exec(r.slice(t,t+2));return n?(e.H=+n[0],t+n[0].length):-1}function KG(e,r,t){var n=Sn.exec(r.slice(t,t+2));return n?(e.M=+n[0],t+n[0].length):-1}function XG(e,r,t){var n=Sn.exec(r.slice(t,t+2));return n?(e.S=+n[0],t+n[0].length):-1}function GG(e,r,t){var n=Sn.exec(r.slice(t,t+3));return n?(e.L=+n[0],t+n[0].length):-1}function YG(e,r,t){var n=Sn.exec(r.slice(t,t+6));return n?(e.L=Math.floor(n[0]/1e3),t+n[0].length):-1}function ZG(e,r,t){var n=RG.exec(r.slice(t,t+1));return n?t+n[0].length:-1}function QG(e,r,t){var n=Sn.exec(r.slice(t));return n?(e.Q=+n[0],t+n[0].length):-1}function JG(e,r,t){var n=Sn.exec(r.slice(t));return n?(e.s=+n[0],t+n[0].length):-1}function Xk(e,r){return cr(e.getDate(),r,2)}function eY(e,r){return cr(e.getHours(),r,2)}function tY(e,r){return cr(e.getHours()%12||12,r,2)}function rY(e,r){return cr(1+Ef.count(Va(e),e),r,3)}function L9(e,r){return cr(e.getMilliseconds(),r,3)}function nY(e,r){return L9(e,r)+&quot;000&quot;}function iY(e,r){return cr(e.getMonth()+1,r,2)}function sY(e,r){return cr(e.getMinutes(),r,2)}function aY(e,r){return cr(e.getSeconds(),r,2)}function oY(e){var r=e.getDay();return r===0?7:r}function lY(e,r){return cr(R0.count(Va(e)-1,e),r,2)}function F9(e){var r=e.getDay();return r&gt;=4||r===0?iu(e):iu.ceil(e)}function cY(e,r){return e=F9(e),cr(iu.count(Va(e),e)+(Va(e).getDay()===4),r,2)}function uY(e){return e.getDay()}function dY(e,r){return cr(Tp.count(Va(e)-1,e),r,2)}function fY(e,r){return cr(e.getFullYear()%100,r,2)}function hY(e,r){return e=F9(e),cr(e.getFullYear()%100,r,2)}function mY(e,r){return cr(e.getFullYear()%1e4,r,4)}function pY(e,r){var t=e.getDay();return e=t&gt;=4||t===0?iu(e):iu.ceil(e),cr(e.getFullYear()%1e4,r,4)}function gY(e){var r=e.getTimezoneOffset();return(r&gt;0?&quot;-&quot;:(r*=-1,&quot;+&quot;))+cr(r/60|0,&quot;0&quot;,2)+cr(r%60,&quot;0&quot;,2)}function Gk(e,r){return cr(e.getUTCDate(),r,2)}function xY(e,r){return cr(e.getUTCHours(),r,2)}function bY(e,r){return cr(e.getUTCHours()%12||12,r,2)}function yY(e,r){return cr(1+I0.count(qa(e),e),r,3)}function B9(e,r){return cr(e.getUTCMilliseconds(),r,3)}function vY(e,r){return B9(e,r)+&quot;000&quot;}function wY(e,r){return cr(e.getUTCMonth()+1,r,2)}function _Y(e,r){return cr(e.getUTCMinutes(),r,2)}function jY(e,r){return cr(e.getUTCSeconds(),r,2)}function NY(e){var r=e.getUTCDay();return r===0?7:r}function kY(e,r){return cr(D0.count(qa(e)-1,e),r,2)}function $9(e){var r=e.getUTCDay();return r&gt;=4||r===0?su(e):su.ceil(e)}function SY(e,r){return e=$9(e),cr(su.count(qa(e),e)+(qa(e).getUTCDay()===4),r,2)}function CY(e){return e.getUTCDay()}function EY(e,r){return cr(Ip.count(qa(e)-1,e),r,2)}function AY(e,r){return cr(e.getUTCFullYear()%100,r,2)}function MY(e,r){return e=$9(e),cr(e.getUTCFullYear()%100,r,2)}function PY(e,r){return cr(e.getUTCFullYear()%1e4,r,4)}function OY(e,r){var t=e.getUTCDay();return e=t&gt;=4||t===0?su(e):su.ceil(e),cr(e.getUTCFullYear()%1e4,r,4)}function TY(){return&quot;+0000&quot;}function Yk(){return&quot;%&quot;}function Zk(e){return+e}function Qk(e){return Math.floor(+e/1e3)}var Oc,z9,U9;IY({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});function IY(e){return Oc=IG(e),z9=Oc.format,Oc.parse,U9=Oc.utcFormat,Oc.utcParse,Oc}function RY(e){return new Date(e)}function DY(e){return e instanceof Date?+e:+new Date(+e)}function xw(e,r,t,n,o,s,l,u,c,a){var d=nw(),f=d.invert,h=d.domain,m=a(&quot;.%L&quot;),p=a(&quot;:%S&quot;),x=a(&quot;%I:%M&quot;),g=a(&quot;%I %p&quot;),y=a(&quot;%a %d&quot;),v=a(&quot;%b %d&quot;),_=a(&quot;%B&quot;),S=a(&quot;%Y&quot;);function A(I){return(c(I)&lt;I?m:u(I)&lt;I?p:l(I)&lt;I?x:s(I)&lt;I?g:n(I)&lt;I?o(I)&lt;I?y:v:t(I)&lt;I?_:S)(I)}return d.invert=function(I){return new Date(f(I))},d.domain=function(I){return arguments.length?h(Array.from(I,DY)):h().map(RY)},d.ticks=function(I){var V=h();return e(V[0],V[V.length-1],I??10)},d.tickFormat=function(I,V){return V==null?A:a(V)},d.nice=function(I){var V=h();return(!I||typeof I.range!=&quot;function&quot;)&amp;&amp;(I=r(V[0],V[V.length-1],I??10)),I?h(E9(V,I)):d},d.copy=function(){return Cf(d,xw(e,r,t,n,o,s,l,u,c,a))},d}function LY(){return os.apply(xw(OG,TG,Va,pw,R0,Ef,hw,dw,Tl,z9).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function FY(){return os.apply(xw(MG,PG,qa,gw,D0,I0,mw,fw,Tl,U9).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function L0(){var e=0,r=1,t,n,o,s,l=oi,u=!1,c;function a(f){return f==null||isNaN(f=+f)?c:l(o===0?.5:(f=(s(f)-t)*o,u?Math.max(0,Math.min(1,f)):f))}a.domain=function(f){return arguments.length?([e,r]=f,t=s(e=+e),n=s(r=+r),o=t===n?0:1/(n-t),a):[e,r]},a.clamp=function(f){return arguments.length?(u=!!f,a):u},a.interpolator=function(f){return arguments.length?(l=f,a):l};function d(f){return function(h){var m,p;return arguments.length?([m,p]=h,l=f(m,p),a):[l(0),l(1)]}}return a.range=d(mu),a.rangeRound=d(rw),a.unknown=function(f){return arguments.length?(c=f,a):c},function(f){return s=f,t=f(e),n=f(r),o=t===n?0:1/(n-t),a}}function Go(e,r){return r.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function V9(){var e=Xo(L0()(oi));return e.copy=function(){return Go(e,V9())},Ya.apply(e,arguments)}function q9(){var e=aw(L0()).domain([1,10]);return e.copy=function(){return Go(e,q9()).base(e.base())},Ya.apply(e,arguments)}function W9(){var e=ow(L0());return e.copy=function(){return Go(e,W9()).constant(e.constant())},Ya.apply(e,arguments)}function bw(){var e=lw(L0());return e.copy=function(){return Go(e,bw()).exponent(e.exponent())},Ya.apply(e,arguments)}function BY(){return bw.apply(null,arguments).exponent(.5)}function H9(){var e=[],r=oi;function t(n){if(n!=null&amp;&amp;!isNaN(n=+n))return r((kf(e,n,1)-1)/(e.length-1))}return t.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let o of n)o!=null&amp;&amp;!isNaN(o=+o)&amp;&amp;e.push(o);return e.sort(Bo),t},t.interpolator=function(n){return arguments.length?(r=n,t):r},t.range=function(){return e.map((n,o)=&gt;r(o/(e.length-1)))},t.quantiles=function(n){return Array.from({length:n+1},(o,s)=&gt;NX(e,s/n))},t.copy=function(){return H9(r).domain(e)},Ya.apply(t,arguments)}function F0(){var e=0,r=.5,t=1,n=1,o,s,l,u,c,a=oi,d,f=!1,h;function m(x){return isNaN(x=+x)?h:(x=.5+((x=+d(x))-s)*(n*x&lt;n*s?u:c),a(f?Math.max(0,Math.min(1,x)):x))}m.domain=function(x){return arguments.length?([e,r,t]=x,o=d(e=+e),s=d(r=+r),l=d(t=+t),u=o===s?0:.5/(s-o),c=s===l?0:.5/(l-s),n=s&lt;o?-1:1,m):[e,r,t]},m.clamp=function(x){return arguments.length?(f=!!x,m):f},m.interpolator=function(x){return arguments.length?(a=x,m):a};function p(x){return function(g){var y,v,_;return arguments.length?([y,v,_]=g,a=ZX(x,[y,v,_]),m):[a(0),a(.5),a(1)]}}return m.range=p(mu),m.rangeRound=p(rw),m.unknown=function(x){return arguments.length?(h=x,m):h},function(x){return d=x,o=x(e),s=x(r),l=x(t),u=o===s?0:.5/(s-o),c=s===l?0:.5/(l-s),n=s&lt;o?-1:1,m}}function K9(){var e=Xo(F0()(oi));return e.copy=function(){return Go(e,K9())},Ya.apply(e,arguments)}function X9(){var e=aw(F0()).domain([.1,1,10]);return e.copy=function(){return Go(e,X9()).base(e.base())},Ya.apply(e,arguments)}function G9(){var e=ow(F0());return e.copy=function(){return Go(e,G9()).constant(e.constant())},Ya.apply(e,arguments)}function yw(){var e=lw(F0());return e.copy=function(){return Go(e,yw()).exponent(e.exponent())},Ya.apply(e,arguments)}function $Y(){return yw.apply(null,arguments).exponent(.5)}const Md=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:J2,scaleDiverging:K9,scaleDivergingLog:X9,scaleDivergingPow:yw,scaleDivergingSqrt:$Y,scaleDivergingSymlog:G9,scaleIdentity:C9,scaleImplicit:i1,scaleLinear:S9,scaleLog:A9,scaleOrdinal:Q2,scalePoint:CX,scalePow:cw,scaleQuantile:O9,scaleQuantize:T9,scaleRadial:P9,scaleSequential:V9,scaleSequentialLog:q9,scaleSequentialPow:bw,scaleSequentialQuantile:H9,scaleSequentialSqrt:BY,scaleSequentialSymlog:W9,scaleSqrt:vG,scaleSymlog:M9,scaleThreshold:I9,scaleTime:LY,scaleUtc:FY,tickFormat:k9},Symbol.toStringTag,{value:&quot;Module&quot;}));var Za=e=&gt;e.chartData,Y9=Ie([Za],e=&gt;{var r=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:r,dataStartIndex:0}}),vw=(e,r,t,n)=&gt;n?Y9(e):Za(e),zY=(e,r,t)=&gt;t?Y9(e):Za(e);function Vo(e){if(Array.isArray(e)&amp;&amp;e.length===2){var[r,t]=e;if(zr(r)&amp;&amp;zr(t))return!0}return!1}function Jk(e,r,t){return t?e:[Math.min(e[0],r[0]),Math.max(e[1],r[1])]}function Z9(e,r){if(r&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;Array.isArray(e)&amp;&amp;e.length===2){var[t,n]=e,o,s;if(zr(t))o=t;else if(typeof t==&quot;function&quot;)return;if(zr(n))s=n;else if(typeof n==&quot;function&quot;)return;var l=[o,s];if(Vo(l))return l}}function UY(e,r,t){if(!(!t&amp;&amp;r==null)){if(typeof e==&quot;function&quot;&amp;&amp;r!=null)try{var n=e(r,t);if(Vo(n))return Jk(n,r,t)}catch{}if(Array.isArray(e)&amp;&amp;e.length===2){var[o,s]=e,l,u;if(o===&quot;auto&quot;)r!=null&amp;&amp;(l=Math.min(...r));else if(xt(o))l=o;else if(typeof o==&quot;function&quot;)try{r!=null&amp;&amp;(l=o(r?.[0]))}catch{}else if(typeof o==&quot;string&quot;&amp;&amp;uN.test(o)){var c=uN.exec(o);if(c==null||c[1]==null||r==null)l=void 0;else{var a=+c[1];l=r[0]-a}}else l=r?.[0];if(s===&quot;auto&quot;)r!=null&amp;&amp;(u=Math.max(...r));else if(xt(s))u=s;else if(typeof s==&quot;function&quot;)try{r!=null&amp;&amp;(u=s(r?.[1]))}catch{}else if(typeof s==&quot;string&quot;&amp;&amp;dN.test(s)){var d=dN.exec(s);if(d==null||d[1]==null||r==null)u=void 0;else{var f=+d[1];u=r[1]+f}}else u=r?.[1];var h=[l,u];if(Vo(h))return r==null?h:Jk(h,r,t)}}}var pu=1e9,VY={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:&quot;2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286&quot;},_w,Ir=!0,as=&quot;[DecimalError] &quot;,Fl=as+&quot;Invalid argument: &quot;,ww=as+&quot;Exponent out of range: &quot;,gu=Math.floor,Cl=Math.pow,qY=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ii,jn=1e7,Er=7,Q9=9007199254740991,Rp=gu(Q9/Er),mt={};mt.absoluteValue=mt.abs=function(){var e=new this.constructor(this);return e.s&amp;&amp;(e.s=1),e};mt.comparedTo=mt.cmp=function(e){var r,t,n,o,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e&gt;e.e^s.s&lt;0?1:-1;for(n=s.d.length,o=e.d.length,r=0,t=n&lt;o?n:o;r&lt;t;++r)if(s.d[r]!==e.d[r])return s.d[r]&gt;e.d[r]^s.s&lt;0?1:-1;return n===o?0:n&gt;o^s.s&lt;0?1:-1};mt.decimalPlaces=mt.dp=function(){var e=this,r=e.d.length-1,t=(r-e.e)*Er;if(r=e.d[r],r)for(;r%10==0;r/=10)t--;return t&lt;0?0:t};mt.dividedBy=mt.div=function(e){return Ia(this,new this.constructor(e))};mt.dividedToIntegerBy=mt.idiv=function(e){var r=this,t=r.constructor;return kr(Ia(r,new t(e),0,1),t.precision)};mt.equals=mt.eq=function(e){return!this.cmp(e)};mt.exponent=function(){return rn(this)};mt.greaterThan=mt.gt=function(e){return this.cmp(e)&gt;0};mt.greaterThanOrEqualTo=mt.gte=function(e){return this.cmp(e)&gt;=0};mt.isInteger=mt.isint=function(){return this.e&gt;this.d.length-2};mt.isNegative=mt.isneg=function(){return this.s&lt;0};mt.isPositive=mt.ispos=function(){return this.s&gt;0};mt.isZero=function(){return this.s===0};mt.lessThan=mt.lt=function(e){return this.cmp(e)&lt;0};mt.lessThanOrEqualTo=mt.lte=function(e){return this.cmp(e)&lt;1};mt.logarithm=mt.log=function(e){var r,t=this,n=t.constructor,o=n.precision,s=o+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s&lt;1||e.eq(Ii))throw Error(as+&quot;NaN&quot;);if(t.s&lt;1)throw Error(as+(t.s?&quot;NaN&quot;:&quot;-Infinity&quot;));return t.eq(Ii)?new n(0):(Ir=!1,r=Ia(lf(t,s),lf(e,s),s),Ir=!0,kr(r,o))};mt.minus=mt.sub=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?tA(r,e):J9(r,(e.s=-e.s,e))};mt.modulo=mt.mod=function(e){var r,t=this,n=t.constructor,o=n.precision;if(e=new n(e),!e.s)throw Error(as+&quot;NaN&quot;);return t.s?(Ir=!1,r=Ia(t,e,0,1).times(e),Ir=!0,t.minus(r)):kr(new n(t),o)};mt.naturalExponential=mt.exp=function(){return eA(this)};mt.naturalLogarithm=mt.ln=function(){return lf(this)};mt.negated=mt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};mt.plus=mt.add=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?J9(r,e):tA(r,(e.s=-e.s,e))};mt.precision=mt.sd=function(e){var r,t,n,o=this;if(e!==void 0&amp;&amp;e!==!!e&amp;&amp;e!==1&amp;&amp;e!==0)throw Error(Fl+e);if(r=rn(o)+1,n=o.d.length-1,t=n*Er+1,n=o.d[n],n){for(;n%10==0;n/=10)t--;for(n=o.d[0];n&gt;=10;n/=10)t++}return e&amp;&amp;r&gt;t?r:t};mt.squareRoot=mt.sqrt=function(){var e,r,t,n,o,s,l,u=this,c=u.constructor;if(u.s&lt;1){if(!u.s)return new c(0);throw Error(as+&quot;NaN&quot;)}for(e=rn(u),Ir=!1,o=Math.sqrt(+u),o==0||o==1/0?(r=Js(u.d),(r.length+e)%2==0&amp;&amp;(r+=&quot;0&quot;),o=Math.sqrt(r),e=gu((e+1)/2)-(e&lt;0||e%2),o==1/0?r=&quot;5e&quot;+e:(r=o.toExponential(),r=r.slice(0,r.indexOf(&quot;e&quot;)+1)+e),n=new c(r)):n=new c(o.toString()),t=c.precision,o=l=t+3;;)if(s=n,n=s.plus(Ia(u,s,l+2)).times(.5),Js(s.d).slice(0,l)===(r=Js(n.d)).slice(0,l)){if(r=r.slice(l-3,l+1),o==l&amp;&amp;r==&quot;4999&quot;){if(kr(s,t+1,0),s.times(s).eq(u)){n=s;break}}else if(r!=&quot;9999&quot;)break;l+=4}return Ir=!0,kr(n,t)};mt.times=mt.mul=function(e){var r,t,n,o,s,l,u,c,a,d=this,f=d.constructor,h=d.d,m=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,t=d.e+e.e,c=h.length,a=m.length,c&lt;a&amp;&amp;(s=h,h=m,m=s,l=c,c=a,a=l),s=[],l=c+a,n=l;n--;)s.push(0);for(n=a;--n&gt;=0;){for(r=0,o=c+n;o&gt;n;)u=s[o]+m[n]*h[o-n-1]+r,s[o--]=u%jn|0,r=u/jn|0;s[o]=(s[o]+r)%jn|0}for(;!s[--l];)s.pop();return r?++t:s.shift(),e.d=s,e.e=t,Ir?kr(e,f.precision):e};mt.toDecimalPlaces=mt.todp=function(e,r){var t=this,n=t.constructor;return t=new n(t),e===void 0?t:(sa(e,0,pu),r===void 0?r=n.rounding:sa(r,0,8),kr(t,e+rn(t)+1,r))};mt.toExponential=function(e,r){var t,n=this,o=n.constructor;return e===void 0?t=Vl(n,!0):(sa(e,0,pu),r===void 0?r=o.rounding:sa(r,0,8),n=kr(new o(n),e+1,r),t=Vl(n,!0,e+1)),t};mt.toFixed=function(e,r){var t,n,o=this,s=o.constructor;return e===void 0?Vl(o):(sa(e,0,pu),r===void 0?r=s.rounding:sa(r,0,8),n=kr(new s(o),e+rn(o)+1,r),t=Vl(n.abs(),!1,e+rn(n)+1),o.isneg()&amp;&amp;!o.isZero()?&quot;-&quot;+t:t)};mt.toInteger=mt.toint=function(){var e=this,r=e.constructor;return kr(new r(e),rn(e)+1,r.rounding)};mt.toNumber=function(){return+this};mt.toPower=mt.pow=function(e){var r,t,n,o,s,l,u=this,c=u.constructor,a=12,d=+(e=new c(e));if(!e.s)return new c(Ii);if(u=new c(u),!u.s){if(e.s&lt;1)throw Error(as+&quot;Infinity&quot;);return u}if(u.eq(Ii))return u;if(n=c.precision,e.eq(Ii))return kr(u,n);if(r=e.e,t=e.d.length-1,l=r&gt;=t,s=u.s,l){if((t=d&lt;0?-d:d)&lt;=Q9){for(o=new c(Ii),r=Math.ceil(n/Er+4),Ir=!1;t%2&amp;&amp;(o=o.times(u),tS(o.d,r)),t=gu(t/2),t!==0;)u=u.times(u),tS(u.d,r);return Ir=!0,e.s&lt;0?new c(Ii).div(o):kr(o,n)}}else if(s&lt;0)throw Error(as+&quot;NaN&quot;);return s=s&lt;0&amp;&amp;e.d[Math.max(r,t)]&amp;1?-1:1,u.s=1,Ir=!1,o=e.times(lf(u,n+a)),Ir=!0,o=eA(o),o.s=s,o};mt.toPrecision=function(e,r){var t,n,o=this,s=o.constructor;return e===void 0?(t=rn(o),n=Vl(o,t&lt;=s.toExpNeg||t&gt;=s.toExpPos)):(sa(e,1,pu),r===void 0?r=s.rounding:sa(r,0,8),o=kr(new s(o),e,r),t=rn(o),n=Vl(o,e&lt;=t||t&lt;=s.toExpNeg,e)),n};mt.toSignificantDigits=mt.tosd=function(e,r){var t=this,n=t.constructor;return e===void 0?(e=n.precision,r=n.rounding):(sa(e,1,pu),r===void 0?r=n.rounding:sa(r,0,8)),kr(new n(t),e,r)};mt.toString=mt.valueOf=mt.val=mt.toJSON=mt[Symbol.for(&quot;nodejs.util.inspect.custom&quot;)]=function(){var e=this,r=rn(e),t=e.constructor;return Vl(e,r&lt;=t.toExpNeg||r&gt;=t.toExpPos)};function J9(e,r){var t,n,o,s,l,u,c,a,d=e.constructor,f=d.precision;if(!e.s||!r.s)return r.s||(r=new d(e)),Ir?kr(r,f):r;if(c=e.d,a=r.d,l=e.e,o=r.e,c=c.slice(),s=l-o,s){for(s&lt;0?(n=c,s=-s,u=a.length):(n=a,o=l,u=c.length),l=Math.ceil(f/Er),u=l&gt;u?l+1:u+1,s&gt;u&amp;&amp;(s=u,n.length=1),n.reverse();s--;)n.push(0);n.reverse()}for(u=c.length,s=a.length,u-s&lt;0&amp;&amp;(s=u,n=a,a=c,c=n),t=0;s;)t=(c[--s]=c[s]+a[s]+t)/jn|0,c[s]%=jn;for(t&amp;&amp;(c.unshift(t),++o),u=c.length;c[--u]==0;)c.pop();return r.d=c,r.e=o,Ir?kr(r,f):r}function sa(e,r,t){if(e!==~~e||e&lt;r||e&gt;t)throw Error(Fl+e)}function Js(e){var r,t,n,o=e.length-1,s=&quot;&quot;,l=e[0];if(o&gt;0){for(s+=l,r=1;r&lt;o;r++)n=e[r]+&quot;&quot;,t=Er-n.length,t&amp;&amp;(s+=Po(t)),s+=n;l=e[r],n=l+&quot;&quot;,t=Er-n.length,t&amp;&amp;(s+=Po(t))}else if(l===0)return&quot;0&quot;;for(;l%10===0;)l/=10;return s+l}var Ia=(function(){function e(n,o){var s,l=0,u=n.length;for(n=n.slice();u--;)s=n[u]*o+l,n[u]=s%jn|0,l=s/jn|0;return l&amp;&amp;n.unshift(l),n}function r(n,o,s,l){var u,c;if(s!=l)c=s&gt;l?1:-1;else for(u=c=0;u&lt;s;u++)if(n[u]!=o[u]){c=n[u]&gt;o[u]?1:-1;break}return c}function t(n,o,s){for(var l=0;s--;)n[s]-=l,l=n[s]&lt;o[s]?1:0,n[s]=l*jn+n[s]-o[s];for(;!n[0]&amp;&amp;n.length&gt;1;)n.shift()}return function(n,o,s,l){var u,c,a,d,f,h,m,p,x,g,y,v,_,S,A,I,V,F,q=n.constructor,H=n.s==o.s?1:-1,B=n.d,K=o.d;if(!n.s)return new q(n);if(!o.s)throw Error(as+&quot;Division by zero&quot;);for(c=n.e-o.e,V=K.length,A=B.length,m=new q(H),p=m.d=[],a=0;K[a]==(B[a]||0);)++a;if(K[a]&gt;(B[a]||0)&amp;&amp;--c,s==null?v=s=q.precision:l?v=s+(rn(n)-rn(o))+1:v=s,v&lt;0)return new q(0);if(v=v/Er+2|0,a=0,V==1)for(d=0,K=K[0],v++;(a&lt;A||d)&amp;&amp;v--;a++)_=d*jn+(B[a]||0),p[a]=_/K|0,d=_%K|0;else{for(d=jn/(K[0]+1)|0,d&gt;1&amp;&amp;(K=e(K,d),B=e(B,d),V=K.length,A=B.length),S=V,x=B.slice(0,V),g=x.length;g&lt;V;)x[g++]=0;F=K.slice(),F.unshift(0),I=K[0],K[1]&gt;=jn/2&amp;&amp;++I;do d=0,u=r(K,x,V,g),u&lt;0?(y=x[0],V!=g&amp;&amp;(y=y*jn+(x[1]||0)),d=y/I|0,d&gt;1?(d&gt;=jn&amp;&amp;(d=jn-1),f=e(K,d),h=f.length,g=x.length,u=r(f,x,h,g),u==1&amp;&amp;(d--,t(f,V&lt;h?F:K,h))):(d==0&amp;&amp;(u=d=1),f=K.slice()),h=f.length,h&lt;g&amp;&amp;f.unshift(0),t(x,f,g),u==-1&amp;&amp;(g=x.length,u=r(K,x,V,g),u&lt;1&amp;&amp;(d++,t(x,V&lt;g?F:K,g))),g=x.length):u===0&amp;&amp;(d++,x=[0]),p[a++]=d,u&amp;&amp;x[0]?x[g++]=B[S]||0:(x=[B[S]],g=1);while((S++&lt;A||x[0]!==void 0)&amp;&amp;v--)}return p[0]||p.shift(),m.e=c,kr(m,l?s+rn(m)+1:s)}})();function eA(e,r){var t,n,o,s,l,u,c=0,a=0,d=e.constructor,f=d.precision;if(rn(e)&gt;16)throw Error(ww+rn(e));if(!e.s)return new d(Ii);for(Ir=!1,u=f,l=new d(.03125);e.abs().gte(.1);)e=e.times(l),a+=5;for(n=Math.log(Cl(2,a))/Math.LN10*2+5|0,u+=n,t=o=s=new d(Ii),d.precision=u;;){if(o=kr(o.times(e),u),t=t.times(++c),l=s.plus(Ia(o,t,u)),Js(l.d).slice(0,u)===Js(s.d).slice(0,u)){for(;a--;)s=kr(s.times(s),u);return d.precision=f,r==null?(Ir=!0,kr(s,f)):s}s=l}}function rn(e){for(var r=e.e*Er,t=e.d[0];t&gt;=10;t/=10)r++;return r}function vy(e,r,t){if(r&gt;e.LN10.sd())throw Ir=!0,t&amp;&amp;(e.precision=t),Error(as+&quot;LN10 precision limit exceeded&quot;);return kr(new e(e.LN10),r)}function Po(e){for(var r=&quot;&quot;;e--;)r+=&quot;0&quot;;return r}function lf(e,r){var t,n,o,s,l,u,c,a,d,f=1,h=10,m=e,p=m.d,x=m.constructor,g=x.precision;if(m.s&lt;1)throw Error(as+(m.s?&quot;NaN&quot;:&quot;-Infinity&quot;));if(m.eq(Ii))return new x(0);if(r==null?(Ir=!1,a=g):a=r,m.eq(10))return r==null&amp;&amp;(Ir=!0),vy(x,a);if(a+=h,x.precision=a,t=Js(p),n=t.charAt(0),s=rn(m),Math.abs(s)&lt;15e14){for(;n&lt;7&amp;&amp;n!=1||n==1&amp;&amp;t.charAt(1)&gt;3;)m=m.times(e),t=Js(m.d),n=t.charAt(0),f++;s=rn(m),n&gt;1?(m=new x(&quot;0.&quot;+t),s++):m=new x(n+&quot;.&quot;+t.slice(1))}else return c=vy(x,a+2,g).times(s+&quot;&quot;),m=lf(new x(n+&quot;.&quot;+t.slice(1)),a-h).plus(c),x.precision=g,r==null?(Ir=!0,kr(m,g)):m;for(u=l=m=Ia(m.minus(Ii),m.plus(Ii),a),d=kr(m.times(m),a),o=3;;){if(l=kr(l.times(d),a),c=u.plus(Ia(l,new x(o),a)),Js(c.d).slice(0,a)===Js(u.d).slice(0,a))return u=u.times(2),s!==0&amp;&amp;(u=u.plus(vy(x,a+2,g).times(s+&quot;&quot;))),u=Ia(u,new x(f),a),x.precision=g,r==null?(Ir=!0,kr(u,g)):u;u=c,o+=2}}function eS(e,r){var t,n,o;for((t=r.indexOf(&quot;.&quot;))&gt;-1&amp;&amp;(r=r.replace(&quot;.&quot;,&quot;&quot;)),(n=r.search(/e/i))&gt;0?(t&lt;0&amp;&amp;(t=n),t+=+r.slice(n+1),r=r.substring(0,n)):t&lt;0&amp;&amp;(t=r.length),n=0;r.charCodeAt(n)===48;)++n;for(o=r.length;r.charCodeAt(o-1)===48;)--o;if(r=r.slice(n,o),r){if(o-=n,t=t-n-1,e.e=gu(t/Er),e.d=[],n=(t+1)%Er,t&lt;0&amp;&amp;(n+=Er),n&lt;o){for(n&amp;&amp;e.d.push(+r.slice(0,n)),o-=Er;n&lt;o;)e.d.push(+r.slice(n,n+=Er));r=r.slice(n),n=Er-r.length}else n-=o;for(;n--;)r+=&quot;0&quot;;if(e.d.push(+r),Ir&amp;&amp;(e.e&gt;Rp||e.e&lt;-Rp))throw Error(ww+t)}else e.s=0,e.e=0,e.d=[0];return e}function kr(e,r,t){var n,o,s,l,u,c,a,d,f=e.d;for(l=1,s=f[0];s&gt;=10;s/=10)l++;if(n=r-l,n&lt;0)n+=Er,o=r,a=f[d=0];else{if(d=Math.ceil((n+1)/Er),s=f.length,d&gt;=s)return e;for(a=s=f[d],l=1;s&gt;=10;s/=10)l++;n%=Er,o=n-Er+l}if(t!==void 0&amp;&amp;(s=Cl(10,l-o-1),u=a/s%10|0,c=r&lt;0||f[d+1]!==void 0||a%s,c=t&lt;4?(u||c)&amp;&amp;(t==0||t==(e.s&lt;0?3:2)):u&gt;5||u==5&amp;&amp;(t==4||c||t==6&amp;&amp;(n&gt;0?o&gt;0?a/Cl(10,l-o):0:f[d-1])%10&amp;1||t==(e.s&lt;0?8:7))),r&lt;1||!f[0])return c?(s=rn(e),f.length=1,r=r-s-1,f[0]=Cl(10,(Er-r%Er)%Er),e.e=gu(-r/Er)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=d,s=1,d--):(f.length=d+1,s=Cl(10,Er-n),f[d]=o&gt;0?(a/Cl(10,l-o)%Cl(10,o)|0)*s:0),c)for(;;)if(d==0){(f[0]+=s)==jn&amp;&amp;(f[0]=1,++e.e);break}else{if(f[d]+=s,f[d]!=jn)break;f[d--]=0,s=1}for(n=f.length;f[--n]===0;)f.pop();if(Ir&amp;&amp;(e.e&gt;Rp||e.e&lt;-Rp))throw Error(ww+rn(e));return e}function tA(e,r){var t,n,o,s,l,u,c,a,d,f,h=e.constructor,m=h.precision;if(!e.s||!r.s)return r.s?r.s=-r.s:r=new h(e),Ir?kr(r,m):r;if(c=e.d,f=r.d,n=r.e,a=e.e,c=c.slice(),l=a-n,l){for(d=l&lt;0,d?(t=c,l=-l,u=f.length):(t=f,n=a,u=c.length),o=Math.max(Math.ceil(m/Er),u)+2,l&gt;o&amp;&amp;(l=o,t.length=1),t.reverse(),o=l;o--;)t.push(0);t.reverse()}else{for(o=c.length,u=f.length,d=o&lt;u,d&amp;&amp;(u=o),o=0;o&lt;u;o++)if(c[o]!=f[o]){d=c[o]&lt;f[o];break}l=0}for(d&amp;&amp;(t=c,c=f,f=t,r.s=-r.s),u=c.length,o=f.length-u;o&gt;0;--o)c[u++]=0;for(o=f.length;o&gt;l;){if(c[--o]&lt;f[o]){for(s=o;s&amp;&amp;c[--s]===0;)c[s]=jn-1;--c[s],c[o]+=jn}c[o]-=f[o]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(r.d=c,r.e=n,Ir?kr(r,m):r):new h(0)}function Vl(e,r,t){var n,o=rn(e),s=Js(e.d),l=s.length;return r?(t&amp;&amp;(n=t-l)&gt;0?s=s.charAt(0)+&quot;.&quot;+s.slice(1)+Po(n):l&gt;1&amp;&amp;(s=s.charAt(0)+&quot;.&quot;+s.slice(1)),s=s+(o&lt;0?&quot;e&quot;:&quot;e+&quot;)+o):o&lt;0?(s=&quot;0.&quot;+Po(-o-1)+s,t&amp;&amp;(n=t-l)&gt;0&amp;&amp;(s+=Po(n))):o&gt;=l?(s+=Po(o+1-l),t&amp;&amp;(n=t-o-1)&gt;0&amp;&amp;(s=s+&quot;.&quot;+Po(n))):((n=o+1)&lt;l&amp;&amp;(s=s.slice(0,n)+&quot;.&quot;+s.slice(n)),t&amp;&amp;(n=t-l)&gt;0&amp;&amp;(o+1===l&amp;&amp;(s+=&quot;.&quot;),s+=Po(n))),e.s&lt;0?&quot;-&quot;+s:s}function tS(e,r){if(e.length&gt;r)return e.length=r,!0}function rA(e){var r,t,n;function o(s){var l=this;if(!(l instanceof o))return new o(s);if(l.constructor=o,s instanceof o){l.s=s.s,l.e=s.e,l.d=(s=s.d)?s.slice():s;return}if(typeof s==&quot;number&quot;){if(s*0!==0)throw Error(Fl+s);if(s&gt;0)l.s=1;else if(s&lt;0)s=-s,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(s===~~s&amp;&amp;s&lt;1e7){l.e=0,l.d=[s];return}return eS(l,s.toString())}else if(typeof s!=&quot;string&quot;)throw Error(Fl+s);if(s.charCodeAt(0)===45?(s=s.slice(1),l.s=-1):l.s=1,qY.test(s))eS(l,s);else throw Error(Fl+s)}if(o.prototype=mt,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=rA,o.config=o.set=WY,e===void 0&amp;&amp;(e={}),e)for(n=[&quot;precision&quot;,&quot;rounding&quot;,&quot;toExpNeg&quot;,&quot;toExpPos&quot;,&quot;LN10&quot;],r=0;r&lt;n.length;)e.hasOwnProperty(t=n[r++])||(e[t]=this[t]);return o.config(e),o}function WY(e){if(!e||typeof e!=&quot;object&quot;)throw Error(as+&quot;Object expected&quot;);var r,t,n,o=[&quot;precision&quot;,1,pu,&quot;rounding&quot;,0,8,&quot;toExpNeg&quot;,-1/0,0,&quot;toExpPos&quot;,0,1/0];for(r=0;r&lt;o.length;r+=3)if((n=e[t=o[r]])!==void 0)if(gu(n)===n&amp;&amp;n&gt;=o[r+1]&amp;&amp;n&lt;=o[r+2])this[t]=n;else throw Error(Fl+t+&quot;: &quot;+n);if((n=e[t=&quot;LN10&quot;])!==void 0)if(n==Math.LN10)this[t]=new this(n);else throw Error(Fl+t+&quot;: &quot;+n);return this}var _w=rA(VY);Ii=new _w(1);const xr=_w;var HY=e=&gt;e,nA={},iA=e=&gt;e===nA,rS=e=&gt;function r(){return arguments.length===0||arguments.length===1&amp;&amp;iA(arguments.length&lt;=0?void 0:arguments[0])?r:e(...arguments)},sA=(e,r)=&gt;e===1?r:rS(function(){for(var t=arguments.length,n=new Array(t),o=0;o&lt;t;o++)n[o]=arguments[o];var s=n.filter(l=&gt;l!==nA).length;return s&gt;=e?r(...n):sA(e-s,rS(function(){for(var l=arguments.length,u=new Array(l),c=0;c&lt;l;c++)u[c]=arguments[c];var a=n.map(d=&gt;iA(d)?u.shift():d);return r(...a,...u)}))}),KY=e=&gt;sA(e.length,e),l1=(e,r)=&gt;{for(var t=[],n=e;n&lt;r;++n)t[n-e]=n;return t},XY=KY((e,r)=&gt;Array.isArray(r)?r.map(e):Object.keys(r).map(t=&gt;r[t]).map(e)),GY=function(){for(var r=arguments.length,t=new Array(r),n=0;n&lt;r;n++)t[n]=arguments[n];if(!t.length)return HY;var o=t.reverse(),s=o[0],l=o.slice(1);return function(){return l.reduce((u,c)=&gt;c(u),s(...arguments))}};function aA(e){var r;return e===0?r=1:r=Math.floor(new xr(e).abs().log(10).toNumber())+1,r}function oA(e,r,t){for(var n=new xr(e),o=0,s=[];n.lt(r)&amp;&amp;o&lt;1e5;)s.push(n.toNumber()),n=n.add(t),o++;return s}var lA=e=&gt;{var[r,t]=e,[n,o]=[r,t];return r&gt;t&amp;&amp;([n,o]=[t,r]),[n,o]},cA=(e,r,t)=&gt;{if(e.lte(0))return new xr(0);var n=aA(e.toNumber()),o=new xr(10).pow(n),s=e.div(o),l=n!==1?.05:.1,u=new xr(Math.ceil(s.div(l).toNumber())).add(t).mul(l),c=u.mul(o);return r?new xr(c.toNumber()):new xr(Math.ceil(c.toNumber()))},YY=(e,r,t)=&gt;{var n=new xr(1),o=new xr(e);if(!o.isint()&amp;&amp;t){var s=Math.abs(e);s&lt;1?(n=new xr(10).pow(aA(e)-1),o=new xr(Math.floor(o.div(n).toNumber())).mul(n)):s&gt;1&amp;&amp;(o=new xr(Math.floor(e)))}else e===0?o=new xr(Math.floor((r-1)/2)):t||(o=new xr(Math.floor(e)));var l=Math.floor((r-1)/2),u=GY(XY(c=&gt;o.add(new xr(c-l).mul(n)).toNumber()),l1);return u(0,r)},uA=function(r,t,n,o){var s=arguments.length&gt;4&amp;&amp;arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-r)/(n-1)))return{step:new xr(0),tickMin:new xr(0),tickMax:new xr(0)};var l=cA(new xr(t).sub(r).div(n-1),o,s),u;r&lt;=0&amp;&amp;t&gt;=0?u=new xr(0):(u=new xr(r).add(t).div(2),u=u.sub(new xr(u).mod(l)));var c=Math.ceil(u.sub(r).div(l).toNumber()),a=Math.ceil(new xr(t).sub(u).div(l).toNumber()),d=c+a+1;return d&gt;n?uA(r,t,n,o,s+1):(d&lt;n&amp;&amp;(a=t&gt;0?a+(n-d):a,c=t&gt;0?c:c+(n-d)),{step:l,tickMin:u.sub(new xr(c).mul(l)),tickMax:u.add(new xr(a).mul(l))})},ZY=function(r){var[t,n]=r,o=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:6,s=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:!0,l=Math.max(o,2),[u,c]=lA([t,n]);if(u===-1/0||c===1/0){var a=c===1/0?[u,...l1(0,o-1).map(()=&gt;1/0)]:[...l1(0,o-1).map(()=&gt;-1/0),c];return t&gt;n?a.reverse():a}if(u===c)return YY(u,o,s);var{step:d,tickMin:f,tickMax:h}=uA(u,c,l,s,0),m=oA(f,h.add(new xr(.1).mul(d)),d);return t&gt;n?m.reverse():m},QY=function(r,t){var[n,o]=r,s=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:!0,[l,u]=lA([n,o]);if(l===-1/0||u===1/0)return[n,o];if(l===u)return[l];var c=Math.max(t,2),a=cA(new xr(u).sub(l).div(c-1),s,0),d=[...oA(new xr(l),new xr(u),a),u];return s===!1&amp;&amp;(d=d.map(f=&gt;Math.round(f))),n&gt;o?d.reverse():d},dA=e=&gt;e.rootProps.maxBarSize,JY=e=&gt;e.rootProps.barGap,fA=e=&gt;e.rootProps.barCategoryGap,eZ=e=&gt;e.rootProps.barSize,B0=e=&gt;e.rootProps.stackOffset,hA=e=&gt;e.rootProps.reverseStackOrder,jw=e=&gt;e.options.chartName,Nw=e=&gt;e.rootProps.syncId,mA=e=&gt;e.rootProps.syncMethod,kw=e=&gt;e.options.eventEmitter,Nn={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Ca={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:&quot;auto&quot;,tick:!0,type:&quot;category&quot;},Ti={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:&quot;auto&quot;,tick:!0,tickCount:5,type:&quot;number&quot;},$0=(e,r)=&gt;{if(!(!e||!r))return e!=null&amp;&amp;e.reversed?[r[1],r[0]]:r},tZ={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Ca.angleAxisId,includeHidden:!1,name:void 0,reversed:Ca.reversed,scale:Ca.scale,tick:Ca.tick,tickCount:void 0,ticks:void 0,type:Ca.type,unit:void 0},rZ={allowDataOverflow:Ti.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ti.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ti.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ti.scale,tick:Ti.tick,tickCount:Ti.tickCount,ticks:void 0,type:Ti.type,unit:void 0},nZ={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Ca.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ca.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ca.scale,tick:Ca.tick,tickCount:void 0,ticks:void 0,type:&quot;number&quot;,unit:void 0},iZ={allowDataOverflow:Ti.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ti.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ti.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ti.scale,tick:Ti.tick,tickCount:Ti.tickCount,ticks:void 0,type:&quot;category&quot;,unit:void 0},Sw=(e,r)=&gt;e.polarAxis.angleAxis[r]!=null?e.polarAxis.angleAxis[r]:e.layout.layoutType===&quot;radial&quot;?nZ:tZ,Cw=(e,r)=&gt;e.polarAxis.radiusAxis[r]!=null?e.polarAxis.radiusAxis[r]:e.layout.layoutType===&quot;radial&quot;?iZ:rZ,z0=e=&gt;e.polarOptions,Ew=Ie([Xa,Ga,kn],QK),pA=Ie([z0,Ew],(e,r)=&gt;{if(e!=null)return Ms(e.innerRadius,r,0)}),gA=Ie([z0,Ew],(e,r)=&gt;{if(e!=null)return Ms(e.outerRadius,r,r*.8)}),sZ=e=&gt;{if(e==null)return[0,0];var{startAngle:r,endAngle:t}=e;return[r,t]},xA=Ie([z0],sZ);Ie([Sw,xA],$0);var bA=Ie([Ew,pA,gA],(e,r,t)=&gt;{if(!(e==null||r==null||t==null))return[r,t]});Ie([Cw,bA],$0);var yA=Ie([ur,z0,pA,gA,Xa,Ga],(e,r,t,n,o,s)=&gt;{if(!(e!==&quot;centric&quot;&amp;&amp;e!==&quot;radial&quot;||r==null||t==null||n==null)){var{cx:l,cy:u,startAngle:c,endAngle:a}=r;return{cx:Ms(l,o,o/2),cy:Ms(u,s,s/2),innerRadius:t,outerRadius:n,startAngle:c,endAngle:a,clockWise:!1}}}),fn=(e,r)=&gt;r,U0=(e,r,t)=&gt;t;function Aw(e){return e?.id}function vA(e,r,t){var{chartData:n=[]}=r,{allowDuplicatedCategory:o,dataKey:s}=t,l=new Map;return e.forEach(u=&gt;{var c,a=(c=u.data)!==null&amp;&amp;c!==void 0?c:n;if(!(a==null||a.length===0)){var d=Aw(u);a.forEach((f,h)=&gt;{var m=s==null||o?h:String(tn(f,s,null)),p=tn(f,u.dataKey,0),x;l.has(m)?x=l.get(m):x={},Object.assign(x,{[d]:p}),l.set(m,x)})}}),Array.from(l.values())}function V0(e){return&quot;stackId&quot;in e&amp;&amp;e.stackId!=null&amp;&amp;e.dataKey!=null}var q0=(e,r)=&gt;e===r?!0:e==null||r==null?!1:e[0]===r[0]&amp;&amp;e[1]===r[1];function W0(e,r){return Array.isArray(e)&amp;&amp;Array.isArray(r)&amp;&amp;e.length===0&amp;&amp;r.length===0?!0:e===r}function aZ(e,r){if(e.length===r.length){for(var t=0;t&lt;e.length;t++)if(e[t]!==r[t])return!1;return!0}return!1}var hn=e=&gt;{var r=ur(e);return r===&quot;horizontal&quot;?&quot;xAxis&quot;:r===&quot;vertical&quot;?&quot;yAxis&quot;:r===&quot;centric&quot;?&quot;angleAxis&quot;:&quot;radiusAxis&quot;},xu=e=&gt;e.tooltip.settings.axisId;function nS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Dp(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?nS(Object(t),!0).forEach(function(n){oZ(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function oZ(e,r,t){return(r=lZ(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function lZ(e){var r=cZ(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function cZ(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var c1=[0,&quot;auto&quot;],vn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:&quot;preserveEnd&quot;,minTickGap:5,mirror:!1,name:void 0,orientation:&quot;bottom&quot;,padding:{left:0,right:0},reversed:!1,scale:&quot;auto&quot;,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:&quot;category&quot;,unit:void 0},wA=(e,r)=&gt;e.cartesianAxis.xAxis[r],Qa=(e,r)=&gt;{var t=wA(e,r);return t??vn},wn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:c1,hide:!0,id:0,includeHidden:!1,interval:&quot;preserveEnd&quot;,minTickGap:5,mirror:!1,name:void 0,orientation:&quot;left&quot;,padding:{top:0,bottom:0},reversed:!1,scale:&quot;auto&quot;,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:&quot;number&quot;,unit:void 0,width:jf},_A=(e,r)=&gt;e.cartesianAxis.yAxis[r],Ja=(e,r)=&gt;{var t=_A(e,r);return t??wn},uZ={domain:[0,&quot;auto&quot;],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:&quot;&quot;,range:[64,64],scale:&quot;auto&quot;,type:&quot;number&quot;,unit:&quot;&quot;},Mw=(e,r)=&gt;{var t=e.cartesianAxis.zAxis[r];return t??uZ},ui=(e,r,t)=&gt;{switch(r){case&quot;xAxis&quot;:return Qa(e,t);case&quot;yAxis&quot;:return Ja(e,t);case&quot;zAxis&quot;:return Mw(e,t);case&quot;angleAxis&quot;:return Sw(e,t);case&quot;radiusAxis&quot;:return Cw(e,t);default:throw new Error(&quot;Unexpected axis type: &quot;.concat(r))}},dZ=(e,r,t)=&gt;{switch(r){case&quot;xAxis&quot;:return Qa(e,t);case&quot;yAxis&quot;:return Ja(e,t);default:throw new Error(&quot;Unexpected axis type: &quot;.concat(r))}},Af=(e,r,t)=&gt;{switch(r){case&quot;xAxis&quot;:return Qa(e,t);case&quot;yAxis&quot;:return Ja(e,t);case&quot;angleAxis&quot;:return Sw(e,t);case&quot;radiusAxis&quot;:return Cw(e,t);default:throw new Error(&quot;Unexpected axis type: &quot;.concat(r))}},jA=e=&gt;e.graphicalItems.cartesianItems.some(r=&gt;r.type===&quot;bar&quot;)||e.graphicalItems.polarItems.some(r=&gt;r.type===&quot;radialBar&quot;);function NA(e,r){return t=&gt;{switch(e){case&quot;xAxis&quot;:return&quot;xAxisId&quot;in t&amp;&amp;t.xAxisId===r;case&quot;yAxis&quot;:return&quot;yAxisId&quot;in t&amp;&amp;t.yAxisId===r;case&quot;zAxis&quot;:return&quot;zAxisId&quot;in t&amp;&amp;t.zAxisId===r;case&quot;angleAxis&quot;:return&quot;angleAxisId&quot;in t&amp;&amp;t.angleAxisId===r;case&quot;radiusAxis&quot;:return&quot;radiusAxisId&quot;in t&amp;&amp;t.radiusAxisId===r;default:return!1}}}var H0=e=&gt;e.graphicalItems.cartesianItems,fZ=Ie([fn,U0],NA),kA=(e,r,t)=&gt;e.filter(t).filter(n=&gt;r?.includeHidden===!0?!0:!n.hide),Mf=Ie([H0,ui,fZ],kA,{memoizeOptions:{resultEqualityCheck:W0}}),SA=Ie([Mf],e=&gt;e.filter(r=&gt;r.type===&quot;area&quot;||r.type===&quot;bar&quot;).filter(V0)),CA=e=&gt;e.filter(r=&gt;!(&quot;stackId&quot;in r)||r.stackId===void 0),hZ=Ie([Mf],CA),EA=e=&gt;e.map(r=&gt;r.data).filter(Boolean).flat(1),mZ=Ie([Mf],EA,{memoizeOptions:{resultEqualityCheck:W0}}),AA=(e,r)=&gt;{var{chartData:t=[],dataStartIndex:n,dataEndIndex:o}=r;return e.length&gt;0?e:t.slice(n,o+1)},Pw=Ie([mZ,vw],AA),MA=(e,r,t)=&gt;r?.dataKey!=null?e.map(n=&gt;({value:tn(n,r.dataKey)})):t.length&gt;0?t.map(n=&gt;n.dataKey).flatMap(n=&gt;e.map(o=&gt;({value:tn(o,n)}))):e.map(n=&gt;({value:n})),K0=Ie([Pw,ui,Mf],MA);function PA(e,r){switch(e){case&quot;xAxis&quot;:return r.direction===&quot;x&quot;;case&quot;yAxis&quot;:return r.direction===&quot;y&quot;;default:return!1}}function Im(e){if(na(e)||e instanceof Date){var r=Number(e);if(zr(r))return r}}function iS(e){if(Array.isArray(e)){var r=[Im(e[0]),Im(e[1])];return Vo(r)?r:void 0}var t=Im(e);if(t!=null)return[t,t]}function Wa(e){return e.map(Im).filter(eV)}function pZ(e,r,t){return!t||typeof r!=&quot;number&quot;||As(r)?[]:t.length?Wa(t.flatMap(n=&gt;{var o=tn(e,n.dataKey),s,l;if(Array.isArray(o)?[s,l]=o:s=l=o,!(!zr(s)||!zr(l)))return[r-s,r+l]})):[]}var mn=e=&gt;{var r=hn(e),t=xu(e);return Af(e,r,t)},Pf=Ie([mn],e=&gt;e?.dataKey),gZ=Ie([SA,vw,mn],vA),OA=(e,r,t,n)=&gt;{var o={},s=r.reduce((l,u)=&gt;{if(u.stackId==null)return l;var c=l[u.stackId];return c==null&amp;&amp;(c=[]),c.push(u),l[u.stackId]=c,l},o);return Object.fromEntries(Object.entries(s).map(l=&gt;{var[u,c]=l,a=n?[...c].reverse():c,d=a.map(Aw);return[u,{stackedData:EW(e,d,t),graphicalItems:a}]}))},u1=Ie([gZ,SA,B0,hA],OA),TA=(e,r,t,n)=&gt;{var{dataStartIndex:o,dataEndIndex:s}=r;if(n==null&amp;&amp;t!==&quot;zAxis&quot;){var l=TW(e,o,s);if(!(l!=null&amp;&amp;l[0]===0&amp;&amp;l[1]===0))return l}},xZ=Ie([ui],e=&gt;e.allowDataOverflow),Ow=e=&gt;{var r;if(e==null||!(&quot;domain&quot;in e))return c1;if(e.domain!=null)return e.domain;if(&quot;ticks&quot;in e&amp;&amp;e.ticks!=null){if(e.type===&quot;number&quot;){var t=Wa(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===&quot;category&quot;)return e.ticks.map(String)}return(r=e?.domain)!==null&amp;&amp;r!==void 0?r:c1},IA=Ie([ui],Ow),RA=Ie([IA,xZ],Z9),bZ=Ie([u1,Za,fn,RA],TA,{memoizeOptions:{resultEqualityCheck:q0}}),Tw=e=&gt;e.errorBars,yZ=(e,r,t)=&gt;e.flatMap(n=&gt;r[n.id]).filter(Boolean).filter(n=&gt;PA(t,n)),Lp=function(){for(var r=arguments.length,t=new Array(r),n=0;n&lt;r;n++)t[n]=arguments[n];var o=t.filter(Boolean);if(o.length!==0){var s=o.flat(),l=Math.min(...s),u=Math.max(...s);return[l,u]}},DA=(e,r,t,n,o)=&gt;{var s,l;if(t.length&gt;0&amp;&amp;e.forEach(u=&gt;{t.forEach(c=&gt;{var a,d,f=(a=n[c.id])===null||a===void 0?void 0:a.filter(y=&gt;PA(o,y)),h=tn(u,(d=r.dataKey)!==null&amp;&amp;d!==void 0?d:c.dataKey),m=pZ(u,h,f);if(m.length&gt;=2){var p=Math.min(...m),x=Math.max(...m);(s==null||p&lt;s)&amp;&amp;(s=p),(l==null||x&gt;l)&amp;&amp;(l=x)}var g=iS(h);g!=null&amp;&amp;(s=s==null?g[0]:Math.min(s,g[0]),l=l==null?g[1]:Math.max(l,g[1]))})}),r?.dataKey!=null&amp;&amp;e.forEach(u=&gt;{var c=iS(tn(u,r.dataKey));c!=null&amp;&amp;(s=s==null?c[0]:Math.min(s,c[0]),l=l==null?c[1]:Math.max(l,c[1]))}),zr(s)&amp;&amp;zr(l))return[s,l]},vZ=Ie([Pw,ui,hZ,Tw,fn],DA,{memoizeOptions:{resultEqualityCheck:q0}});function wZ(e){var{value:r}=e;if(na(r)||r instanceof Date)return r}var _Z=(e,r,t)=&gt;{var n=e.map(wZ).filter(o=&gt;o!=null);return t&amp;&amp;(r.dataKey==null||r.allowDuplicatedCategory&amp;&amp;Z7(n))?g9(0,e.length):r.allowDuplicatedCategory?n:Array.from(new Set(n))},LA=e=&gt;e.referenceElements.dots,bu=(e,r,t)=&gt;e.filter(n=&gt;n.ifOverflow===&quot;extendDomain&quot;).filter(n=&gt;r===&quot;xAxis&quot;?n.xAxisId===t:n.yAxisId===t),jZ=Ie([LA,fn,U0],bu),FA=e=&gt;e.referenceElements.areas,NZ=Ie([FA,fn,U0],bu),BA=e=&gt;e.referenceElements.lines,kZ=Ie([BA,fn,U0],bu),$A=(e,r)=&gt;{if(e!=null){var t=Wa(e.map(n=&gt;r===&quot;xAxis&quot;?n.x:n.y));if(t.length!==0)return[Math.min(...t),Math.max(...t)]}},SZ=Ie(jZ,fn,$A),zA=(e,r)=&gt;{if(e!=null){var t=Wa(e.flatMap(n=&gt;[r===&quot;xAxis&quot;?n.x1:n.y1,r===&quot;xAxis&quot;?n.x2:n.y2]));if(t.length!==0)return[Math.min(...t),Math.max(...t)]}},CZ=Ie([NZ,fn],zA);function EZ(e){var r;if(e.x!=null)return Wa([e.x]);var t=(r=e.segment)===null||r===void 0?void 0:r.map(n=&gt;n.x);return t==null||t.length===0?[]:Wa(t)}function AZ(e){var r;if(e.y!=null)return Wa([e.y]);var t=(r=e.segment)===null||r===void 0?void 0:r.map(n=&gt;n.y);return t==null||t.length===0?[]:Wa(t)}var UA=(e,r)=&gt;{if(e!=null){var t=e.flatMap(n=&gt;r===&quot;xAxis&quot;?EZ(n):AZ(n));if(t.length!==0)return[Math.min(...t),Math.max(...t)]}},MZ=Ie([kZ,fn],UA),PZ=Ie(SZ,MZ,CZ,(e,r,t)=&gt;Lp(e,t,r)),VA=(e,r,t,n,o,s,l,u)=&gt;{if(t!=null)return t;var c=l===&quot;vertical&quot;&amp;&amp;u===&quot;xAxis&quot;||l===&quot;horizontal&quot;&amp;&amp;u===&quot;yAxis&quot;,a=c?Lp(n,s,o):Lp(s,o);return UY(r,a,e.allowDataOverflow)},OZ=Ie([ui,IA,RA,bZ,vZ,PZ,ur,fn],VA,{memoizeOptions:{resultEqualityCheck:q0}}),TZ=[0,1],qA=(e,r,t,n,o,s,l)=&gt;{if(!((e==null||t==null||t.length===0)&amp;&amp;l===void 0)){var{dataKey:u,type:c}=e,a=Ko(r,s);if(a&amp;&amp;u==null){var d;return g9(0,(d=t?.length)!==null&amp;&amp;d!==void 0?d:0)}return c===&quot;category&quot;?_Z(n,e,a):o===&quot;expand&quot;?TZ:l}},Iw=Ie([ui,ur,Pw,K0,B0,fn,OZ],qA),WA=(e,r,t,n,o)=&gt;{if(e!=null){var{scale:s,type:l}=e;if(s===&quot;auto&quot;)return r===&quot;radial&quot;&amp;&amp;o===&quot;radiusAxis&quot;?&quot;band&quot;:r===&quot;radial&quot;&amp;&amp;o===&quot;angleAxis&quot;?&quot;linear&quot;:l===&quot;category&quot;&amp;&amp;n&amp;&amp;(n.indexOf(&quot;LineChart&quot;)&gt;=0||n.indexOf(&quot;AreaChart&quot;)&gt;=0||n.indexOf(&quot;ComposedChart&quot;)&gt;=0&amp;&amp;!t)?&quot;point&quot;:l===&quot;category&quot;?&quot;band&quot;:&quot;linear&quot;;if(typeof s==&quot;string&quot;){var u=&quot;scale&quot;.concat(yf(s));return u in Md?u:&quot;point&quot;}}},Of=Ie([ui,ur,jA,jw,fn],WA);function IZ(e){if(e!=null){if(e in Md)return Md[e]();var r=&quot;scale&quot;.concat(yf(e));if(r in Md)return Md[r]()}}function Rw(e,r,t,n){if(!(t==null||n==null)){if(typeof e.scale==&quot;function&quot;)return e.scale.copy().domain(t).range(n);var o=IZ(r);if(o!=null){var s=o.domain(t).range(n);return jW(s),s}}}var HA=(e,r,t)=&gt;{var n=Ow(r);if(!(t!==&quot;auto&quot;&amp;&amp;t!==&quot;linear&quot;)){if(r!=null&amp;&amp;r.tickCount&amp;&amp;Array.isArray(n)&amp;&amp;(n[0]===&quot;auto&quot;||n[1]===&quot;auto&quot;)&amp;&amp;Vo(e))return ZY(e,r.tickCount,r.allowDecimals);if(r!=null&amp;&amp;r.tickCount&amp;&amp;r.type===&quot;number&quot;&amp;&amp;Vo(e))return QY(e,r.tickCount,r.allowDecimals)}},Dw=Ie([Iw,Af,Of],HA),KA=(e,r,t,n)=&gt;{if(n!==&quot;angleAxis&quot;&amp;&amp;e?.type===&quot;number&quot;&amp;&amp;Vo(r)&amp;&amp;Array.isArray(t)&amp;&amp;t.length&gt;0){var o=r[0],s=t[0],l=r[1],u=t[t.length-1];return[Math.min(o,s),Math.max(l,u)]}return r},RZ=Ie([ui,Iw,Dw,fn],KA),DZ=Ie(K0,ui,(e,r)=&gt;{if(!(!r||r.type!==&quot;number&quot;)){var t=1/0,n=Array.from(Wa(e.map(f=&gt;f.value))).sort((f,h)=&gt;f-h),o=n[0],s=n[n.length-1];if(o==null||s==null)return 1/0;var l=s-o;if(l===0)return 1/0;for(var u=0;u&lt;n.length-1;u++){var c=n[u],a=n[u+1];if(!(c==null||a==null)){var d=a-c;t=Math.min(t,d)}}return t/l}}),XA=Ie(DZ,ur,fA,kn,(e,r,t,n,o)=&gt;o,(e,r,t,n,o)=&gt;{if(!zr(e))return 0;var s=r===&quot;vertical&quot;?n.height:n.width;if(o===&quot;gap&quot;)return e*s/2;if(o===&quot;no-gap&quot;){var l=Ms(t,e*s),u=e*s/2;return u-l-(u-l)/s*l}return 0}),LZ=(e,r,t)=&gt;{var n=Qa(e,r);return n==null||typeof n.padding!=&quot;string&quot;?0:XA(e,&quot;xAxis&quot;,r,t,n.padding)},FZ=(e,r,t)=&gt;{var n=Ja(e,r);return n==null||typeof n.padding!=&quot;string&quot;?0:XA(e,&quot;yAxis&quot;,r,t,n.padding)},BZ=Ie(Qa,LZ,(e,r)=&gt;{var t,n;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o==&quot;string&quot;?{left:r,right:r}:{left:((t=o.left)!==null&amp;&amp;t!==void 0?t:0)+r,right:((n=o.right)!==null&amp;&amp;n!==void 0?n:0)+r}}),$Z=Ie(Ja,FZ,(e,r)=&gt;{var t,n;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o==&quot;string&quot;?{top:r,bottom:r}:{top:((t=o.top)!==null&amp;&amp;t!==void 0?t:0)+r,bottom:((n=o.bottom)!==null&amp;&amp;n!==void 0?n:0)+r}}),zZ=Ie([kn,BZ,N0,j0,(e,r,t)=&gt;t],(e,r,t,n,o)=&gt;{var{padding:s}=n;return o?[s.left,t.width-s.right]:[e.left+r.left,e.left+e.width-r.right]}),UZ=Ie([kn,ur,$Z,N0,j0,(e,r,t)=&gt;t],(e,r,t,n,o,s)=&gt;{var{padding:l}=o;return s?[n.height-l.bottom,l.top]:r===&quot;horizontal&quot;?[e.top+e.height-t.bottom,e.top+t.top]:[e.top+t.top,e.top+e.height-t.bottom]}),Tf=(e,r,t,n)=&gt;{var o;switch(r){case&quot;xAxis&quot;:return zZ(e,t,n);case&quot;yAxis&quot;:return UZ(e,t,n);case&quot;zAxis&quot;:return(o=Mw(e,t))===null||o===void 0?void 0:o.range;case&quot;angleAxis&quot;:return xA(e);case&quot;radiusAxis&quot;:return bA(e,t);default:return}},GA=Ie([ui,Tf],$0),X0=Ie([ui,Of,RZ,GA],Rw);Ie([Mf,Tw,fn],yZ);function YA(e,r){return e.id&lt;r.id?-1:e.id&gt;r.id?1:0}var G0=(e,r)=&gt;r,Y0=(e,r,t)=&gt;t,VZ=Ie(w0,G0,Y0,(e,r,t)=&gt;e.filter(n=&gt;n.orientation===r).filter(n=&gt;n.mirror===t).sort(YA)),qZ=Ie(_0,G0,Y0,(e,r,t)=&gt;e.filter(n=&gt;n.orientation===r).filter(n=&gt;n.mirror===t).sort(YA)),ZA=(e,r)=&gt;({width:e.width,height:r.height}),WZ=(e,r)=&gt;{var t=typeof r.width==&quot;number&quot;?r.width:jf;return{width:t,height:e.height}},QA=Ie(kn,Qa,ZA),HZ=(e,r,t)=&gt;{switch(r){case&quot;top&quot;:return e.top;case&quot;bottom&quot;:return t-e.bottom;default:return 0}},KZ=(e,r,t)=&gt;{switch(r){case&quot;left&quot;:return e.left;case&quot;right&quot;:return t-e.right;default:return 0}},XZ=Ie(Ga,kn,VZ,G0,Y0,(e,r,t,n,o)=&gt;{var s={},l;return t.forEach(u=&gt;{var c=ZA(r,u);l==null&amp;&amp;(l=HZ(r,n,e));var a=n===&quot;top&quot;&amp;&amp;!o||n===&quot;bottom&quot;&amp;&amp;o;s[u.id]=l-Number(a)*c.height,l+=(a?-1:1)*c.height}),s}),GZ=Ie(Xa,kn,qZ,G0,Y0,(e,r,t,n,o)=&gt;{var s={},l;return t.forEach(u=&gt;{var c=WZ(r,u);l==null&amp;&amp;(l=KZ(r,n,e));var a=n===&quot;left&quot;&amp;&amp;!o||n===&quot;right&quot;&amp;&amp;o;s[u.id]=l-Number(a)*c.width,l+=(a?-1:1)*c.width}),s}),YZ=(e,r)=&gt;{var t=Qa(e,r);if(t!=null)return XZ(e,t.orientation,t.mirror)},ZZ=Ie([kn,Qa,YZ,(e,r)=&gt;r],(e,r,t,n)=&gt;{if(r!=null){var o=t?.[n];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),QZ=(e,r)=&gt;{var t=Ja(e,r);if(t!=null)return GZ(e,t.orientation,t.mirror)},JZ=Ie([kn,Ja,QZ,(e,r)=&gt;r],(e,r,t,n)=&gt;{if(r!=null){var o=t?.[n];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),JA=Ie(kn,Ja,(e,r)=&gt;{var t=typeof r.width==&quot;number&quot;?r.width:jf;return{width:t,height:e.height}}),sS=(e,r,t)=&gt;{switch(r){case&quot;xAxis&quot;:return QA(e,t).width;case&quot;yAxis&quot;:return JA(e,t).height;default:return}},eM=(e,r,t,n)=&gt;{if(t!=null){var{allowDuplicatedCategory:o,type:s,dataKey:l}=t,u=Ko(e,n),c=r.map(a=&gt;a.value);if(l&amp;&amp;u&amp;&amp;s===&quot;category&quot;&amp;&amp;o&amp;&amp;Z7(c))return c}},Lw=Ie([ur,K0,ui,fn],eM),tM=(e,r,t,n)=&gt;{if(!(t==null||t.dataKey==null)){var{type:o,scale:s}=t,l=Ko(e,n);if(l&amp;&amp;(o===&quot;number&quot;||s!==&quot;auto&quot;))return r.map(u=&gt;u.value)}},Fw=Ie([ur,K0,Af,fn],tM),aS=Ie([ur,dZ,Of,X0,Lw,Fw,Tf,Dw,fn],(e,r,t,n,o,s,l,u,c)=&gt;{if(r!=null){var a=Ko(e,c);return{angle:r.angle,interval:r.interval,minTickGap:r.minTickGap,orientation:r.orientation,tick:r.tick,tickCount:r.tickCount,tickFormatter:r.tickFormatter,ticks:r.ticks,type:r.type,unit:r.unit,axisType:c,categoricalDomain:s,duplicateDomain:o,isCategorical:a,niceTicks:u,range:l,realScaleType:t,scale:n}}}),eQ=(e,r,t,n,o,s,l,u,c)=&gt;{if(!(r==null||n==null)){var a=Ko(e,c),{type:d,ticks:f,tickCount:h}=r,m=t===&quot;scaleBand&quot;&amp;&amp;typeof n.bandwidth==&quot;function&quot;?n.bandwidth()/2:2,p=d===&quot;category&quot;&amp;&amp;n.bandwidth?n.bandwidth()/m:0;p=c===&quot;angleAxis&quot;&amp;&amp;s!=null&amp;&amp;s.length&gt;=2?wi(s[0]-s[1])*2*p:p;var x=f||o;if(x){var g=x.map((y,v)=&gt;{var _=l?l.indexOf(y):y;return{index:v,coordinate:n(_)+p,value:y,offset:p}});return g.filter(y=&gt;zr(y.coordinate))}return a&amp;&amp;u?u.map((y,v)=&gt;({coordinate:n(y)+p,value:y,index:v,offset:p})).filter(y=&gt;zr(y.coordinate)):n.ticks?n.ticks(h).map(y=&gt;({coordinate:n(y)+p,value:y,offset:p})):n.domain().map((y,v)=&gt;({coordinate:n(y)+p,value:l?l[y]:y,index:v,offset:p}))}},rM=Ie([ur,Af,Of,X0,Dw,Tf,Lw,Fw,fn],eQ),tQ=(e,r,t,n,o,s,l)=&gt;{if(!(r==null||t==null||n==null||n[0]===n[1])){var u=Ko(e,l),{tickCount:c}=r,a=0;return a=l===&quot;angleAxis&quot;&amp;&amp;n?.length&gt;=2?wi(n[0]-n[1])*2*a:a,u&amp;&amp;s?s.map((d,f)=&gt;({coordinate:t(d)+a,value:d,index:f,offset:a})):t.ticks?t.ticks(c).map(d=&gt;({coordinate:t(d)+a,value:d,offset:a})):t.domain().map((d,f)=&gt;({coordinate:t(d)+a,value:o?o[d]:d,index:f,offset:a}))}},qo=Ie([ur,Af,X0,Tf,Lw,Fw,fn],tQ),Wo=Ie(ui,X0,(e,r)=&gt;{if(!(e==null||r==null))return Dp(Dp({},e),{},{scale:r})}),rQ=Ie([ui,Of,Iw,GA],Rw);Ie((e,r,t)=&gt;Mw(e,t),rQ,(e,r)=&gt;{if(!(e==null||r==null))return Dp(Dp({},e),{},{scale:r})});var nQ=Ie([ur,w0,_0],(e,r,t)=&gt;{switch(e){case&quot;horizontal&quot;:return r.some(n=&gt;n.reversed)?&quot;right-to-left&quot;:&quot;left-to-right&quot;;case&quot;vertical&quot;:return t.some(n=&gt;n.reversed)?&quot;bottom-to-top&quot;:&quot;top-to-bottom&quot;;case&quot;centric&quot;:case&quot;radial&quot;:return&quot;left-to-right&quot;;default:return}}),nM=e=&gt;e.options.defaultTooltipEventType,iM=e=&gt;e.options.validateTooltipEventTypes;function sM(e,r,t){if(e==null)return r;var n=e?&quot;axis&quot;:&quot;item&quot;;return t==null?r:t.includes(n)?n:r}function Bw(e,r){var t=nM(e),n=iM(e);return sM(r,t,n)}function iQ(e){return Et(r=&gt;Bw(r,e))}var aM=(e,r)=&gt;{var t,n=Number(r);if(!(As(n)||r==null))return n&gt;=0?e==null||(t=e[n])===null||t===void 0?void 0:t.value:void 0},sQ=e=&gt;e.tooltip.settings,To={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},aQ={itemInteraction:{click:To,hover:To},axisInteraction:{click:To,hover:To},keyboardInteraction:To,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:&quot;hover&quot;,axisId:0,active:!1,defaultIndex:void 0}},oM=Si({name:&quot;tooltip&quot;,initialState:aQ,reducers:{addTooltipEntrySettings:{reducer(e,r){e.tooltipItemPayloads.push(r.payload)},prepare:Tr()},replaceTooltipEntrySettings:{reducer(e,r){var{prev:t,next:n}=r.payload,o=Cs(e).tooltipItemPayloads.indexOf(t);o&gt;-1&amp;&amp;(e.tooltipItemPayloads[o]=n)},prepare:Tr()},removeTooltipEntrySettings:{reducer(e,r){var t=Cs(e).tooltipItemPayloads.indexOf(r.payload);t&gt;-1&amp;&amp;e.tooltipItemPayloads.splice(t,1)},prepare:Tr()},setTooltipSettingsState(e,r){e.settings=r.payload},setActiveMouseOverItemIndex(e,r){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=r.payload.activeIndex,e.itemInteraction.hover.dataKey=r.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=r.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=r.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,r){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=r.payload.activeIndex,e.itemInteraction.click.dataKey=r.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=r.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=r.payload.activeCoordinate},setMouseOverAxisIndex(e,r){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=r.payload.activeIndex,e.axisInteraction.hover.dataKey=r.payload.activeDataKey,e.axisInteraction.hover.coordinate=r.payload.activeCoordinate},setMouseClickAxisIndex(e,r){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=r.payload.activeIndex,e.axisInteraction.click.dataKey=r.payload.activeDataKey,e.axisInteraction.click.coordinate=r.payload.activeCoordinate},setSyncInteraction(e,r){e.syncInteraction=r.payload},setKeyboardInteraction(e,r){e.keyboardInteraction.active=r.payload.active,e.keyboardInteraction.index=r.payload.activeIndex,e.keyboardInteraction.coordinate=r.payload.activeCoordinate}}}),{addTooltipEntrySettings:oQ,replaceTooltipEntrySettings:lQ,removeTooltipEntrySettings:cQ,setTooltipSettingsState:uQ,setActiveMouseOverItemIndex:lM,mouseLeaveItem:dQ,mouseLeaveChart:cM,setActiveClickItemIndex:fQ,setMouseOverAxisIndex:uM,setMouseClickAxisIndex:hQ,setSyncInteraction:d1,setKeyboardInteraction:f1}=oM.actions,mQ=oM.reducer;function oS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function bm(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?oS(Object(t),!0).forEach(function(n){pQ(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function pQ(e,r,t){return(r=gQ(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function gQ(e){var r=xQ(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function xQ(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function bQ(e,r,t){return r===&quot;axis&quot;?t===&quot;click&quot;?e.axisInteraction.click:e.axisInteraction.hover:t===&quot;click&quot;?e.itemInteraction.click:e.itemInteraction.hover}function yQ(e){return e.index!=null}var dM=(e,r,t,n)=&gt;{if(r==null)return To;var o=bQ(e,r,t);if(o==null)return To;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&amp;&amp;e.syncInteraction.index!=null)return e.syncInteraction;var s=e.settings.active===!0;if(yQ(o)){if(s)return bm(bm({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return bm(bm({},To),{},{coordinate:o.coordinate})};function vQ(e){if(typeof e==&quot;number&quot;)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var r=e.valueOf();return Number.isFinite(r)?r:void 0}var t=Number(e);return Number.isFinite(t)?t:void 0}function wQ(e,r){var t=vQ(e),n=r[0],o=r[1];if(t===void 0)return!1;var s=Math.min(n,o),l=Math.max(n,o);return t&gt;=s&amp;&amp;t&lt;=l}function _Q(e,r,t){if(t==null||r==null)return!0;var n=tn(e,r);return n==null||!Vo(t)?!0:wQ(n,t)}var $w=(e,r,t,n)=&gt;{var o=e?.index;if(o==null)return null;var s=Number(o);if(!zr(s))return o;var l=0,u=1/0;r.length&gt;0&amp;&amp;(u=r.length-1);var c=Math.max(l,Math.min(s,u)),a=r[c];return a==null||_Q(a,t,n)?String(c):null},fM=(e,r,t,n,o,s,l,u)=&gt;{if(!(s==null||u==null)){var c=l[0],a=c==null?void 0:u(c.positions,s);if(a!=null)return a;var d=o?.[Number(s)];if(d)return t===&quot;horizontal&quot;?{x:d.coordinate,y:(n.top+r)/2}:{x:(n.left+e)/2,y:d.coordinate}}},hM=(e,r,t,n)=&gt;{if(r===&quot;axis&quot;)return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(t===&quot;hover&quot;?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,o==null&amp;&amp;n!=null){var s=e.tooltipItemPayloads[0];return s!=null?[s]:[]}return e.tooltipItemPayloads.filter(l=&gt;{var u;return((u=l.settings)===null||u===void 0?void 0:u.graphicalItemId)===o})},If=e=&gt;e.options.tooltipPayloadSearcher,yu=e=&gt;e.tooltip;function lS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function cS(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?lS(Object(t),!0).forEach(function(n){jQ(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function jQ(e,r,t){return(r=NQ(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function NQ(e){var r=kQ(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function kQ(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function SQ(e,r){return e??r}var mM=(e,r,t,n,o,s,l)=&gt;{if(!(r==null||s==null)){var{chartData:u,computedData:c,dataStartIndex:a,dataEndIndex:d}=t,f=[];return e.reduce((h,m)=&gt;{var p,{dataDefinedOnItem:x,settings:g}=m,y=SQ(x,u),v=Array.isArray(y)?qE(y,a,d):y,_=(p=g?.dataKey)!==null&amp;&amp;p!==void 0?p:n,S=g?.nameKey,A;if(n&amp;&amp;Array.isArray(v)&amp;&amp;!Array.isArray(v[0])&amp;&amp;l===&quot;axis&quot;?A=Q7(v,n,o):A=s(v,r,c,S),Array.isArray(A))A.forEach(V=&gt;{var F=cS(cS({},g),{},{name:V.name,unit:V.unit,color:void 0,fill:void 0});h.push(fN({tooltipEntrySettings:F,dataKey:V.dataKey,payload:V.payload,value:tn(V.payload,V.dataKey),name:V.name}))});else{var I;h.push(fN({tooltipEntrySettings:g,dataKey:_,payload:A,value:tn(A,_),name:(I=tn(A,S))!==null&amp;&amp;I!==void 0?I:g?.name}))}return h},f)}},zw=Ie([mn,ur,jA,jw,hn],WA),CQ=Ie([e=&gt;e.graphicalItems.cartesianItems,e=&gt;e.graphicalItems.polarItems],(e,r)=&gt;[...e,...r]),EQ=Ie([hn,xu],NA),vu=Ie([CQ,mn,EQ],kA,{memoizeOptions:{resultEqualityCheck:W0}}),AQ=Ie([vu],e=&gt;e.filter(V0)),MQ=Ie([vu],EA,{memoizeOptions:{resultEqualityCheck:W0}}),wu=Ie([MQ,Za],AA),PQ=Ie([AQ,Za,mn],vA),Uw=Ie([wu,mn,vu],MA),pM=Ie([mn],Ow),OQ=Ie([mn],e=&gt;e.allowDataOverflow),gM=Ie([pM,OQ],Z9),TQ=Ie([vu],e=&gt;e.filter(V0)),IQ=Ie([PQ,TQ,B0,hA],OA),RQ=Ie([IQ,Za,hn,gM],TA),DQ=Ie([vu],CA),LQ=Ie([wu,mn,DQ,Tw,hn],DA,{memoizeOptions:{resultEqualityCheck:q0}}),FQ=Ie([LA,hn,xu],bu),BQ=Ie([FQ,hn],$A),$Q=Ie([FA,hn,xu],bu),zQ=Ie([$Q,hn],zA),UQ=Ie([BA,hn,xu],bu),VQ=Ie([UQ,hn],UA),qQ=Ie([BQ,VQ,zQ],Lp),WQ=Ie([mn,pM,gM,RQ,LQ,qQ,ur,hn],VA),Rf=Ie([mn,ur,wu,Uw,B0,hn,WQ],qA),HQ=Ie([Rf,mn,zw],HA),KQ=Ie([mn,Rf,HQ,hn],KA),xM=e=&gt;{var r=hn(e),t=xu(e),n=!1;return Tf(e,r,t,n)},bM=Ie([mn,xM],$0),yM=Ie([mn,zw,KQ,bM],Rw),XQ=Ie([ur,Uw,mn,hn],eM),GQ=Ie([ur,Uw,mn,hn],tM),YQ=(e,r,t,n,o,s,l,u)=&gt;{if(r){var{type:c}=r,a=Ko(e,u);if(n){var d=t===&quot;scaleBand&quot;&amp;&amp;n.bandwidth?n.bandwidth()/2:2,f=c===&quot;category&quot;&amp;&amp;n.bandwidth?n.bandwidth()/d:0;return f=u===&quot;angleAxis&quot;&amp;&amp;o!=null&amp;&amp;o?.length&gt;=2?wi(o[0]-o[1])*2*f:f,a&amp;&amp;l?l.map((h,m)=&gt;({coordinate:n(h)+f,value:h,index:m,offset:f})):n.domain().map((h,m)=&gt;({coordinate:n(h)+f,value:s?s[h]:h,index:m,offset:f}))}}},eo=Ie([ur,mn,zw,yM,xM,XQ,GQ,hn],YQ),Vw=Ie([nM,iM,sQ],(e,r,t)=&gt;sM(t.shared,e,r)),vM=e=&gt;e.tooltip.settings.trigger,qw=e=&gt;e.tooltip.settings.defaultIndex,Df=Ie([yu,Vw,vM,qw],dM),ql=Ie([Df,wu,Pf,Rf],$w),wM=Ie([eo,ql],aM),_M=Ie([Df],e=&gt;{if(e)return e.dataKey});Ie([Df],e=&gt;{if(e)return e.graphicalItemId});var jM=Ie([yu,Vw,vM,qw],hM),ZQ=Ie([Xa,Ga,ur,kn,eo,qw,jM,If],fM),QQ=Ie([Df,ZQ],(e,r)=&gt;e!=null&amp;&amp;e.coordinate?e.coordinate:r),JQ=Ie([Df],e=&gt;{var r;return(r=e?.active)!==null&amp;&amp;r!==void 0?r:!1}),eJ=Ie([jM,ql,Za,Pf,wM,If,Vw],mM),tJ=Ie([eJ],e=&gt;{if(e!=null){var r=e.map(t=&gt;t.payload).filter(t=&gt;t!=null);return Array.from(new Set(r))}});function uS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function dS(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?uS(Object(t),!0).forEach(function(n){rJ(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):uS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function rJ(e,r,t){return(r=nJ(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function nJ(e){var r=iJ(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function iJ(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var sJ=()=&gt;Et(mn),aJ=()=&gt;{var e=sJ(),r=Et(eo),t=Et(yM);return eu(!e||!t?void 0:dS(dS({},e),{},{scale:t}),r)};function fS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Tc(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?fS(Object(t),!0).forEach(function(n){oJ(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function oJ(e,r,t){return(r=lJ(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function lJ(e){var r=cJ(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function cJ(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var uJ=(e,r,t,n)=&gt;{var o=r.find(s=&gt;s&amp;&amp;s.index===t);if(o){if(e===&quot;horizontal&quot;)return{x:o.coordinate,y:n.chartY};if(e===&quot;vertical&quot;)return{x:n.chartX,y:o.coordinate}}return{x:0,y:0}},dJ=(e,r,t,n)=&gt;{var o=r.find(a=&gt;a&amp;&amp;a.index===t);if(o){if(e===&quot;centric&quot;){var s=o.coordinate,{radius:l}=n;return Tc(Tc(Tc({},n),Rn(n.cx,n.cy,l,s)),{},{angle:s,radius:l})}var u=o.coordinate,{angle:c}=n;return Tc(Tc(Tc({},n),Rn(n.cx,n.cy,u,c)),{},{angle:c,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function fJ(e,r){var{chartX:t,chartY:n}=e;return t&gt;=r.left&amp;&amp;t&lt;=r.left+r.width&amp;&amp;n&gt;=r.top&amp;&amp;n&lt;=r.top+r.height}var NM=(e,r,t,n,o)=&gt;{var s,l=(s=r?.length)!==null&amp;&amp;s!==void 0?s:0;if(l&lt;=1||e==null)return 0;if(n===&quot;angleAxis&quot;&amp;&amp;o!=null&amp;&amp;Math.abs(Math.abs(o[1]-o[0])-360)&lt;=1e-6)for(var u=0;u&lt;l;u++){var c,a,d,f,h,m=u&gt;0?(c=t[u-1])===null||c===void 0?void 0:c.coordinate:(a=t[l-1])===null||a===void 0?void 0:a.coordinate,p=(d=t[u])===null||d===void 0?void 0:d.coordinate,x=u&gt;=l-1?(f=t[0])===null||f===void 0?void 0:f.coordinate:(h=t[u+1])===null||h===void 0?void 0:h.coordinate,g=void 0;if(!(m==null||p==null||x==null))if(wi(p-m)!==wi(x-p)){var y=[];if(wi(x-p)===wi(o[1]-o[0])){g=x;var v=p+o[1]-o[0];y[0]=Math.min(v,(v+m)/2),y[1]=Math.max(v,(v+m)/2)}else{g=m;var _=x+o[1]-o[0];y[0]=Math.min(p,(_+p)/2),y[1]=Math.max(p,(_+p)/2)}var S=[Math.min(p,(g+p)/2),Math.max(p,(g+p)/2)];if(e&gt;S[0]&amp;&amp;e&lt;=S[1]||e&gt;=y[0]&amp;&amp;e&lt;=y[1]){var A;return(A=t[u])===null||A===void 0?void 0:A.index}}else{var I=Math.min(m,x),V=Math.max(m,x);if(e&gt;(I+p)/2&amp;&amp;e&lt;=(V+p)/2){var F;return(F=t[u])===null||F===void 0?void 0:F.index}}}else if(r)for(var q=0;q&lt;l;q++){var H=r[q];if(H!=null){var B=r[q+1],K=r[q-1];if(q===0&amp;&amp;B!=null&amp;&amp;e&lt;=(H.coordinate+B.coordinate)/2||q===l-1&amp;&amp;K!=null&amp;&amp;e&gt;(H.coordinate+K.coordinate)/2||q&gt;0&amp;&amp;q&lt;l-1&amp;&amp;K!=null&amp;&amp;B!=null&amp;&amp;e&gt;(H.coordinate+K.coordinate)/2&amp;&amp;e&lt;=(H.coordinate+B.coordinate)/2)return H.index}}return-1},hJ=()=&gt;Et(jw),Ww=(e,r)=&gt;r,kM=(e,r,t)=&gt;t,Hw=(e,r,t,n)=&gt;n,mJ=Ie(eo,e=&gt;u0(e,r=&gt;r.coordinate)),Kw=Ie([yu,Ww,kM,Hw],dM),Xw=Ie([Kw,wu,Pf,Rf],$w),pJ=(e,r,t)=&gt;{if(r!=null){var n=yu(e);return r===&quot;axis&quot;?t===&quot;hover&quot;?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:t===&quot;hover&quot;?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},SM=Ie([yu,Ww,kM,Hw],hM),Fp=Ie([Xa,Ga,ur,kn,eo,Hw,SM,If],fM),gJ=Ie([Kw,Fp],(e,r)=&gt;{var t;return(t=e.coordinate)!==null&amp;&amp;t!==void 0?t:r}),CM=Ie([eo,Xw],aM),xJ=Ie([SM,Xw,Za,Pf,CM,If,Ww],mM),bJ=Ie([Kw,Xw],(e,r)=&gt;({isActive:e.active&amp;&amp;r!=null,activeIndex:r})),yJ=(e,r,t,n,o,s,l)=&gt;{if(!(!e||!t||!n||!o)&amp;&amp;fJ(e,l)){var u=IW(e,r),c=NM(u,s,o,t,n),a=uJ(r,o,c,e);return{activeIndex:String(c),activeCoordinate:a}}},vJ=(e,r,t,n,o,s,l)=&gt;{if(!(!e||!n||!o||!s||!t)){var u=nX(e,t);if(u){var c=RW(u,r),a=NM(c,l,s,n,o),d=dJ(r,s,a,u);return{activeIndex:String(a),activeCoordinate:d}}}},wJ=(e,r,t,n,o,s,l,u)=&gt;{if(!(!e||!r||!n||!o||!s))return r===&quot;horizontal&quot;||r===&quot;vertical&quot;?yJ(e,r,n,o,s,l,u):vJ(e,r,t,n,o,s,l)},_J=Ie(e=&gt;e.zIndex.zIndexMap,(e,r)=&gt;r,(e,r,t)=&gt;t,(e,r,t)=&gt;{if(r!=null){var n=e[r];if(n!=null)return t?n.panoramaElement:n.element}}),jJ=Ie(e=&gt;e.zIndex.zIndexMap,e=&gt;{var r=Object.keys(e).map(n=&gt;parseInt(n,10)).concat(Object.values(Nn)),t=Array.from(new Set(r));return t.sort((n,o)=&gt;n-o)},{memoizeOptions:{resultEqualityCheck:aZ}});function hS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function mS(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?hS(Object(t),!0).forEach(function(n){NJ(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function NJ(e,r,t){return(r=kJ(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function kJ(e){var r=SJ(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function SJ(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var CJ={},EJ={zIndexMap:Object.values(Nn).reduce((e,r)=&gt;mS(mS({},e),{},{[r]:{element:void 0,panoramaElement:void 0,consumers:0}}),CJ)},AJ=new Set(Object.values(Nn));function MJ(e){return AJ.has(e)}var EM=Si({name:&quot;zIndex&quot;,initialState:EJ,reducers:{registerZIndexPortal:{reducer:(e,r)=&gt;{var{zIndex:t}=r.payload;e.zIndexMap[t]?e.zIndexMap[t].consumers+=1:e.zIndexMap[t]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Tr()},unregisterZIndexPortal:{reducer:(e,r)=&gt;{var{zIndex:t}=r.payload;e.zIndexMap[t]&amp;&amp;(e.zIndexMap[t].consumers-=1,e.zIndexMap[t].consumers&lt;=0&amp;&amp;!MJ(t)&amp;&amp;delete e.zIndexMap[t])},prepare:Tr()},registerZIndexPortalElement:{reducer:(e,r)=&gt;{var{zIndex:t,element:n,isPanorama:o}=r.payload;e.zIndexMap[t]?o?e.zIndexMap[t].panoramaElement=n:e.zIndexMap[t].element=n:e.zIndexMap[t]={consumers:0,element:o?void 0:n,panoramaElement:o?n:void 0}},prepare:Tr()},unregisterZIndexPortalElement:{reducer:(e,r)=&gt;{var{zIndex:t}=r.payload;e.zIndexMap[t]&amp;&amp;(r.payload.isPanorama?e.zIndexMap[t].panoramaElement=void 0:e.zIndexMap[t].element=void 0)},prepare:Tr()}}}),{registerZIndexPortal:PJ,unregisterZIndexPortal:OJ,registerZIndexPortalElement:TJ,unregisterZIndexPortalElement:IJ}=EM.actions,RJ=EM.reducer;function ls(e){var{zIndex:r,children:t}=e,n=mH(),o=n&amp;&amp;r!==void 0&amp;&amp;r!==0,s=Xn(),l=Ur();O.useLayoutEffect(()=&gt;o?(l(PJ({zIndex:r})),()=&gt;{l(OJ({zIndex:r}))}):vf,[l,r,o]);var u=Et(c=&gt;_J(c,r,s));return o?u?Xp.createPortal(t,u):null:t}function h1(){return h1=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},h1.apply(null,arguments)}function pS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function ym(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?pS(Object(t),!0).forEach(function(n){DJ(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function DJ(e,r,t){return(r=LJ(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function LJ(e){var r=FJ(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function FJ(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function BJ(e){var{cursor:r,cursorComp:t,cursorProps:n}=e;return O.isValidElement(r)?O.cloneElement(r,n):O.createElement(t,n)}function $J(e){var r,{coordinate:t,payload:n,index:o,offset:s,tooltipAxisBandSize:l,layout:u,cursor:c,tooltipEventType:a,chartName:d}=e,f=t,h=n,m=o;if(!c||!f||d!==&quot;ScatterChart&quot;&amp;&amp;a!==&quot;axis&quot;)return null;var p,x,g;if(d===&quot;ScatterChart&quot;)p=f,x=gK,g=Nn.cursorLine;else if(d===&quot;BarChart&quot;)p=xK(u,f,s,l),x=f9,g=Nn.cursorRectangle;else if(u===&quot;radial&quot;&amp;&amp;eE(f)){var{cx:y,cy:v,radius:_,startAngle:S,endAngle:A}=h9(f);p={cx:y,cy:v,startAngle:S,endAngle:A,innerRadius:_,outerRadius:_},x=p9,g=Nn.cursorLine}else p={points:oX(u,f,s)},x=o9,g=Nn.cursorLine;var I=typeof c==&quot;object&quot;&amp;&amp;&quot;className&quot;in c?c.className:void 0,V=ym(ym(ym(ym({stroke:&quot;#ccc&quot;,pointerEvents:&quot;none&quot;},s),p),bf(c)),{},{payload:h,payloadIndex:m,className:br(&quot;recharts-tooltip-cursor&quot;,I)});return O.createElement(ls,{zIndex:(r=e.zIndex)!==null&amp;&amp;r!==void 0?r:g},O.createElement(BJ,{cursor:c,cursorComp:x,cursorProps:V}))}function zJ(e){var r=aJ(),t=QE(),n=hu(),o=hJ();return r==null||t==null||n==null||o==null?null:O.createElement($J,h1({},e,{offset:t,layout:n,tooltipAxisBandSize:r,chartName:o}))}var AM=O.createContext(null),UJ=()=&gt;O.useContext(AM),wy={exports:{}},gS;function VJ(){return gS||(gS=1,(function(e){var r=Object.prototype.hasOwnProperty,t=&quot;~&quot;;function n(){}Object.create&amp;&amp;(n.prototype=Object.create(null),new n().__proto__||(t=!1));function o(c,a,d){this.fn=c,this.context=a,this.once=d||!1}function s(c,a,d,f,h){if(typeof d!=&quot;function&quot;)throw new TypeError(&quot;The listener must be a function&quot;);var m=new o(d,f||c,h),p=t?t+a:a;return c._events[p]?c._events[p].fn?c._events[p]=[c._events[p],m]:c._events[p].push(m):(c._events[p]=m,c._eventsCount++),c}function l(c,a){--c._eventsCount===0?c._events=new n:delete c._events[a]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var a=[],d,f;if(this._eventsCount===0)return a;for(f in d=this._events)r.call(d,f)&amp;&amp;a.push(t?f.slice(1):f);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(d)):a},u.prototype.listeners=function(a){var d=t?t+a:a,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,m=f.length,p=new Array(m);h&lt;m;h++)p[h]=f[h].fn;return p},u.prototype.listenerCount=function(a){var d=t?t+a:a,f=this._events[d];return f?f.fn?1:f.length:0},u.prototype.emit=function(a,d,f,h,m,p){var x=t?t+a:a;if(!this._events[x])return!1;var g=this._events[x],y=arguments.length,v,_;if(g.fn){switch(g.once&amp;&amp;this.removeListener(a,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,d),!0;case 3:return g.fn.call(g.context,d,f),!0;case 4:return g.fn.call(g.context,d,f,h),!0;case 5:return g.fn.call(g.context,d,f,h,m),!0;case 6:return g.fn.call(g.context,d,f,h,m,p),!0}for(_=1,v=new Array(y-1);_&lt;y;_++)v[_-1]=arguments[_];g.fn.apply(g.context,v)}else{var S=g.length,A;for(_=0;_&lt;S;_++)switch(g[_].once&amp;&amp;this.removeListener(a,g[_].fn,void 0,!0),y){case 1:g[_].fn.call(g[_].context);break;case 2:g[_].fn.call(g[_].context,d);break;case 3:g[_].fn.call(g[_].context,d,f);break;case 4:g[_].fn.call(g[_].context,d,f,h);break;default:if(!v)for(A=1,v=new Array(y-1);A&lt;y;A++)v[A-1]=arguments[A];g[_].fn.apply(g[_].context,v)}}return!0},u.prototype.on=function(a,d,f){return s(this,a,d,f,!1)},u.prototype.once=function(a,d,f){return s(this,a,d,f,!0)},u.prototype.removeListener=function(a,d,f,h){var m=t?t+a:a;if(!this._events[m])return this;if(!d)return l(this,m),this;var p=this._events[m];if(p.fn)p.fn===d&amp;&amp;(!h||p.once)&amp;&amp;(!f||p.context===f)&amp;&amp;l(this,m);else{for(var x=0,g=[],y=p.length;x&lt;y;x++)(p[x].fn!==d||h&amp;&amp;!p[x].once||f&amp;&amp;p[x].context!==f)&amp;&amp;g.push(p[x]);g.length?this._events[m]=g.length===1?g[0]:g:l(this,m)}return this},u.prototype.removeAllListeners=function(a){var d;return a?(d=t?t+a:a,this._events[d]&amp;&amp;l(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=t,u.EventEmitter=u,e.exports=u})(wy)),wy.exports}var qJ=VJ();const WJ=Os(qJ);var cf=new WJ,m1=&quot;recharts.syncEvent.tooltip&quot;,xS=&quot;recharts.syncEvent.brush&quot;;function MM(e,r){if(r){var t=Number.parseInt(r,10);if(!As(t))return e?.[t]}}var HJ={chartName:&quot;&quot;,tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:&quot;axis&quot;},PM=Si({name:&quot;options&quot;,initialState:HJ,reducers:{createEventEmitter:e=&gt;{e.eventEmitter==null&amp;&amp;(e.eventEmitter=Symbol(&quot;rechartsEventEmitter&quot;))}}}),KJ=PM.reducer,{createEventEmitter:XJ}=PM.actions;function GJ(e){return e.tooltip.syncInteraction}var YJ={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},OM=Si({name:&quot;chartData&quot;,initialState:YJ,reducers:{setChartData(e,r){if(e.chartData=r.payload,r.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}r.payload.length&gt;0&amp;&amp;e.dataEndIndex!==r.payload.length-1&amp;&amp;(e.dataEndIndex=r.payload.length-1)},setComputedData(e,r){e.computedData=r.payload},setDataStartEndIndexes(e,r){var{startIndex:t,endIndex:n}=r.payload;t!=null&amp;&amp;(e.dataStartIndex=t),n!=null&amp;&amp;(e.dataEndIndex=n)}}}),{setChartData:bS,setDataStartEndIndexes:ZJ,setComputedData:hle}=OM.actions,QJ=OM.reducer,JJ=[&quot;x&quot;,&quot;y&quot;];function yS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Ic(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?yS(Object(t),!0).forEach(function(n){eee(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):yS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function eee(e,r,t){return(r=tee(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function tee(e){var r=ree(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function ree(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function nee(e,r){if(e==null)return{};var t,n,o=iee(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function iee(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function see(){var e=Et(Nw),r=Et(kw),t=Ur(),n=Et(mA),o=Et(eo),s=hu(),l=k0(),u=Et(c=&gt;c.rootProps.className);O.useEffect(()=&gt;{if(e==null)return vf;var c=(a,d,f)=&gt;{if(r!==f&amp;&amp;e===a){if(n===&quot;index&quot;){var h;if(l&amp;&amp;d!==null&amp;&amp;d!==void 0&amp;&amp;(h=d.payload)!==null&amp;&amp;h!==void 0&amp;&amp;h.coordinate&amp;&amp;d.payload.sourceViewBox){var m=d.payload.coordinate,{x:p,y:x}=m,g=nee(m,JJ),{x:y,y:v,width:_,height:S}=d.payload.sourceViewBox,A=Ic(Ic({},g),{},{x:l.x+(_?(p-y)/_:0)*l.width,y:l.y+(S?(x-v)/S:0)*l.height});t(Ic(Ic({},d),{},{payload:Ic(Ic({},d.payload),{},{coordinate:A})}))}else t(d);return}if(o!=null){var I;if(typeof n==&quot;function&quot;){var V={activeTooltipIndex:d.payload.index==null?void 0:Number(d.payload.index),isTooltipActive:d.payload.active,activeIndex:d.payload.index==null?void 0:Number(d.payload.index),activeLabel:d.payload.label,activeDataKey:d.payload.dataKey,activeCoordinate:d.payload.coordinate},F=n(o,V);I=o[F]}else n===&quot;value&quot;&amp;&amp;(I=o.find(j=&gt;String(j.value)===d.payload.label));var{coordinate:q}=d.payload;if(I==null||d.payload.active===!1||q==null||l==null){t(d1({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:H,y:B}=q,K=Math.min(H,l.x+l.width),T=Math.min(B,l.y+l.height),L={x:s===&quot;horizontal&quot;?I.coordinate:K,y:s===&quot;horizontal&quot;?T:I.coordinate},E=d1({active:d.payload.active,coordinate:L,dataKey:d.payload.dataKey,index:String(I.index),label:d.payload.label,sourceViewBox:d.payload.sourceViewBox,graphicalItemId:d.payload.graphicalItemId});t(E)}}};return cf.on(m1,c),()=&gt;{cf.off(m1,c)}},[u,t,r,e,n,o,s,l])}function aee(){var e=Et(Nw),r=Et(kw),t=Ur();O.useEffect(()=&gt;{if(e==null)return vf;var n=(o,s,l)=&gt;{r!==l&amp;&amp;e===o&amp;&amp;t(ZJ(s))};return cf.on(xS,n),()=&gt;{cf.off(xS,n)}},[t,r,e])}function oee(){var e=Ur();O.useEffect(()=&gt;{e(XJ())},[e]),see(),aee()}function lee(e,r,t,n,o,s){var l=Et(m=&gt;pJ(m,e,r)),u=Et(kw),c=Et(Nw),a=Et(mA),d=Et(GJ),f=d?.active,h=k0();O.useEffect(()=&gt;{if(!f&amp;&amp;c!=null&amp;&amp;u!=null){var m=d1({active:s,coordinate:t,dataKey:l,index:o,label:typeof n==&quot;number&quot;?String(n):n,sourceViewBox:h,graphicalItemId:void 0});cf.emit(m1,c,m,u)}},[f,t,l,o,n,u,c,a,s,h])}function vS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function wS(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?vS(Object(t),!0).forEach(function(n){cee(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function cee(e,r,t){return(r=uee(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function uee(e){var r=dee(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function dee(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function fee(e){return e.dataKey}function hee(e,r){return O.isValidElement(e)?O.cloneElement(e,r):typeof e==&quot;function&quot;?O.createElement(e,r):O.createElement(GH,r)}var _S=[],mee={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:&quot;ease&quot;,axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:&quot;auto&quot;,itemSorter:&quot;name&quot;,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:&quot; : &quot;,trigger:&quot;hover&quot;,useTranslate3d:!1,wrapperStyle:{}};function _y(e){var r,t,n=Dn(e,mee),{active:o,allowEscapeViewBox:s,animationDuration:l,animationEasing:u,content:c,filterNull:a,isAnimationActive:d,offset:f,payloadUniqBy:h,position:m,reverseDirection:p,useTranslate3d:x,wrapperStyle:g,cursor:y,shared:v,trigger:_,defaultIndex:S,portal:A,axisId:I}=n,V=Ur(),F=typeof S==&quot;number&quot;?String(S):S;O.useEffect(()=&gt;{V(uQ({shared:v,trigger:_,axisId:I,active:o,defaultIndex:F}))},[V,v,_,I,o,F]);var q=k0(),H=a9(),B=iQ(v),{activeIndex:K,isActive:T}=(r=Et(J=&gt;bJ(J,B,_,F)))!==null&amp;&amp;r!==void 0?r:{},L=Et(J=&gt;xJ(J,B,_,F)),E=Et(J=&gt;CM(J,B,_,F)),j=Et(J=&gt;gJ(J,B,_,F)),k=L,N=UJ(),C=(t=o??T)!==null&amp;&amp;t!==void 0?t:!1,[P,D]=mE([k,C]),z=B===&quot;axis&quot;?E:void 0;lee(B,_,j,z,K,C);var Y=A??N;if(Y==null||q==null||B==null)return null;var Z=k??_S;C||(Z=_S),a&amp;&amp;Z.length&amp;&amp;(Z=cE(Z.filter(J=&gt;J.value!=null&amp;&amp;(J.hide!==!0||n.includeHidden)),h,fee));var ne=Z.length&gt;0,U=O.createElement(rK,{allowEscapeViewBox:s,animationDuration:l,animationEasing:u,isAnimationActive:d,active:C,coordinate:j,hasPayload:ne,offset:f,position:m,reverseDirection:p,useTranslate3d:x,viewBox:q,wrapperStyle:g,lastBoundingBox:P,innerRef:D,hasPortalFromProps:!!A},hee(c,wS(wS({},n),{},{payload:Z,label:z,active:C,activeIndex:K,coordinate:j,accessibilityLayer:H})));return O.createElement(O.Fragment,null,Xp.createPortal(U,Y),C&amp;&amp;O.createElement(zJ,{cursor:y,tooltipEventType:B,coordinate:j,payload:Z,index:K}))}var TM=e=&gt;null;TM.displayName=&quot;Cell&quot;;function pee(e,r,t){return(r=gee(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function gee(e){var r=xee(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function xee(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}class bee{constructor(r){pee(this,&quot;cache&quot;,new Map),this.maxSize=r}get(r){var t=this.cache.get(r);return t!==void 0&amp;&amp;(this.cache.delete(r),this.cache.set(r,t)),t}set(r,t){if(this.cache.has(r))this.cache.delete(r);else if(this.cache.size&gt;=this.maxSize){var n=this.cache.keys().next().value;n!=null&amp;&amp;this.cache.delete(n)}this.cache.set(r,t)}clear(){this.cache.clear()}size(){return this.cache.size}}function jS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function yee(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?jS(Object(t),!0).forEach(function(n){vee(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function vee(e,r,t){return(r=wee(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function wee(e){var r=_ee(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function _ee(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var jee={cacheSize:2e3,enableCache:!0},IM=yee({},jee),NS=new bee(IM.cacheSize),Nee={position:&quot;absolute&quot;,top:&quot;-20000px&quot;,left:0,padding:0,margin:0,border:&quot;none&quot;,whiteSpace:&quot;pre&quot;},kS=&quot;recharts_measurement_span&quot;;function kee(e,r){var t=r.fontSize||&quot;&quot;,n=r.fontFamily||&quot;&quot;,o=r.fontWeight||&quot;&quot;,s=r.fontStyle||&quot;&quot;,l=r.letterSpacing||&quot;&quot;,u=r.textTransform||&quot;&quot;;return&quot;&quot;.concat(e,&quot;|&quot;).concat(t,&quot;|&quot;).concat(n,&quot;|&quot;).concat(o,&quot;|&quot;).concat(s,&quot;|&quot;).concat(l,&quot;|&quot;).concat(u)}var SS=(e,r)=&gt;{try{var t=document.getElementById(kS);t||(t=document.createElement(&quot;span&quot;),t.setAttribute(&quot;id&quot;,kS),t.setAttribute(&quot;aria-hidden&quot;,&quot;true&quot;),document.body.appendChild(t)),Object.assign(t.style,Nee,r),t.textContent=&quot;&quot;.concat(e);var n=t.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Rd=function(r){var t=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:{};if(r==null||M0.isSsr)return{width:0,height:0};if(!IM.enableCache)return SS(r,t);var n=kee(r,t),o=NS.get(n);if(o)return o;var s=SS(r,t);return NS.set(n,s),s},RM;function See(e,r,t){return(r=Cee(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Cee(e){var r=Eee(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function Eee(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var CS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ES=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Aee=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Mee=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Pee={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Oee=[&quot;cm&quot;,&quot;mm&quot;,&quot;pt&quot;,&quot;pc&quot;,&quot;in&quot;,&quot;Q&quot;,&quot;px&quot;];function Tee(e){return Oee.includes(e)}var Vc=&quot;NaN&quot;;function Iee(e,r){return e*Pee[r]}class In{static parse(r){var t,[,n,o]=(t=Mee.exec(r))!==null&amp;&amp;t!==void 0?t:[];return n==null?In.NaN:new In(parseFloat(n),o??&quot;&quot;)}constructor(r,t){this.num=r,this.unit=t,this.num=r,this.unit=t,As(r)&amp;&amp;(this.unit=&quot;&quot;),t!==&quot;&quot;&amp;&amp;!Aee.test(t)&amp;&amp;(this.num=NaN,this.unit=&quot;&quot;),Tee(t)&amp;&amp;(this.num=Iee(r,t),this.unit=&quot;px&quot;)}add(r){return this.unit!==r.unit?new In(NaN,&quot;&quot;):new In(this.num+r.num,this.unit)}subtract(r){return this.unit!==r.unit?new In(NaN,&quot;&quot;):new In(this.num-r.num,this.unit)}multiply(r){return this.unit!==&quot;&quot;&amp;&amp;r.unit!==&quot;&quot;&amp;&amp;this.unit!==r.unit?new In(NaN,&quot;&quot;):new In(this.num*r.num,this.unit||r.unit)}divide(r){return this.unit!==&quot;&quot;&amp;&amp;r.unit!==&quot;&quot;&amp;&amp;this.unit!==r.unit?new In(NaN,&quot;&quot;):new In(this.num/r.num,this.unit||r.unit)}toString(){return&quot;&quot;.concat(this.num).concat(this.unit)}isNaN(){return As(this.num)}}RM=In;See(In,&quot;NaN&quot;,new RM(NaN,&quot;&quot;));function DM(e){if(e==null||e.includes(Vc))return Vc;for(var r=e;r.includes(&quot;*&quot;)||r.includes(&quot;/&quot;);){var t,[,n,o,s]=(t=CS.exec(r))!==null&amp;&amp;t!==void 0?t:[],l=In.parse(n??&quot;&quot;),u=In.parse(s??&quot;&quot;),c=o===&quot;*&quot;?l.multiply(u):l.divide(u);if(c.isNaN())return Vc;r=r.replace(CS,c.toString())}for(;r.includes(&quot;+&quot;)||/.-\d+(?:\.\d+)?/.test(r);){var a,[,d,f,h]=(a=ES.exec(r))!==null&amp;&amp;a!==void 0?a:[],m=In.parse(d??&quot;&quot;),p=In.parse(h??&quot;&quot;),x=f===&quot;+&quot;?m.add(p):m.subtract(p);if(x.isNaN())return Vc;r=r.replace(ES,x.toString())}return r}var AS=/\(([^()]*)\)/;function Ree(e){for(var r=e,t;(t=AS.exec(r))!=null;){var[,n]=t;r=r.replace(AS,DM(n))}return r}function Dee(e){var r=e.replace(/\s+/g,&quot;&quot;);return r=Ree(r),r=DM(r),r}function Lee(e){try{return Dee(e)}catch{return Vc}}function jy(e){var r=Lee(e.slice(5,-1));return r===Vc?&quot;&quot;:r}var Fee=[&quot;x&quot;,&quot;y&quot;,&quot;lineHeight&quot;,&quot;capHeight&quot;,&quot;fill&quot;,&quot;scaleToFit&quot;,&quot;textAnchor&quot;,&quot;verticalAnchor&quot;],Bee=[&quot;dx&quot;,&quot;dy&quot;,&quot;angle&quot;,&quot;className&quot;,&quot;breakAll&quot;];function p1(){return p1=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},p1.apply(null,arguments)}function MS(e,r){if(e==null)return{};var t,n,o=$ee(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function $ee(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var LM=/[ \f\n\r\t\v\u2028\u2029]+/,FM=e=&gt;{var{children:r,breakAll:t,style:n}=e;try{var o=[];Rr(r)||(t?o=r.toString().split(&quot;&quot;):o=r.toString().split(LM));var s=o.map(u=&gt;({word:u,width:Rd(u,n).width})),l=t?0:Rd(&quot; &quot;,n).width;return{wordsWithComputedWidth:s,spaceWidth:l}}catch{return null}};function zee(e){return e===&quot;start&quot;||e===&quot;middle&quot;||e===&quot;end&quot;||e===&quot;inherit&quot;}var BM=(e,r,t,n)=&gt;e.reduce((o,s)=&gt;{var{word:l,width:u}=s,c=o[o.length-1];if(c&amp;&amp;u!=null&amp;&amp;(r==null||n||c.width+u+t&lt;Number(r)))c.words.push(l),c.width+=u+t;else{var a={words:[l],width:u};o.push(a)}return o},[]),$M=e=&gt;e.reduce((r,t)=&gt;r.width&gt;t.width?r:t),Uee=&quot;…&quot;,PS=(e,r,t,n,o,s,l,u)=&gt;{var c=e.slice(0,r),a=FM({breakAll:t,style:n,children:c+Uee});if(!a)return[!1,[]];var d=BM(a.wordsWithComputedWidth,s,l,u),f=d.length&gt;o||$M(d).width&gt;Number(s);return[f,d]},Vee=(e,r,t,n,o)=&gt;{var{maxLines:s,children:l,style:u,breakAll:c}=e,a=xt(s),d=String(l),f=BM(r,n,t,o);if(!a||o)return f;var h=f.length&gt;s||$M(f).width&gt;Number(n);if(!h)return f;for(var m=0,p=d.length-1,x=0,g;m&lt;=p&amp;&amp;x&lt;=d.length-1;){var y=Math.floor((m+p)/2),v=y-1,[_,S]=PS(d,v,c,u,s,n,t,o),[A]=PS(d,y,c,u,s,n,t,o);if(!_&amp;&amp;!A&amp;&amp;(m=y+1),_&amp;&amp;A&amp;&amp;(p=y-1),!_&amp;&amp;A){g=S;break}x++}return g||f},OS=e=&gt;{var r=Rr(e)?[]:e.toString().split(LM);return[{words:r,width:void 0}]},qee=e=&gt;{var{width:r,scaleToFit:t,children:n,style:o,breakAll:s,maxLines:l}=e;if((r||t)&amp;&amp;!M0.isSsr){var u,c,a=FM({breakAll:s,children:n,style:o});if(a){var{wordsWithComputedWidth:d,spaceWidth:f}=a;u=d,c=f}else return OS(n);return Vee({breakAll:s,children:n,maxLines:l,style:o},u,c,r,!!t)}return OS(n)},zM=&quot;#808080&quot;,Wee={angle:0,breakAll:!1,capHeight:&quot;0.71em&quot;,fill:zM,lineHeight:&quot;1em&quot;,scaleToFit:!1,textAnchor:&quot;start&quot;,verticalAnchor:&quot;end&quot;,x:0,y:0},Gw=O.forwardRef((e,r)=&gt;{var t=Dn(e,Wee),{x:n,y:o,lineHeight:s,capHeight:l,fill:u,scaleToFit:c,textAnchor:a,verticalAnchor:d}=t,f=MS(t,Fee),h=O.useMemo(()=&gt;qee({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:c,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,c,f.style,f.width]),{dx:m,dy:p,angle:x,className:g,breakAll:y}=f,v=MS(f,Bee);if(!na(n)||!na(o)||h.length===0)return null;var _=Number(n)+(xt(m)?m:0),S=Number(o)+(xt(p)?p:0);if(!zr(_)||!zr(S))return null;var A;switch(d){case&quot;start&quot;:A=jy(&quot;calc(&quot;.concat(l,&quot;)&quot;));break;case&quot;middle&quot;:A=jy(&quot;calc(&quot;.concat((h.length-1)/2,&quot; * -&quot;).concat(s,&quot; + (&quot;).concat(l,&quot; / 2))&quot;));break;default:A=jy(&quot;calc(&quot;.concat(h.length-1,&quot; * -&quot;).concat(s,&quot;)&quot;));break}var I=[];if(c){var V=h[0].width,{width:F}=f;I.push(&quot;scale(&quot;.concat(xt(F)&amp;&amp;xt(V)?F/V:1,&quot;)&quot;))}return x&amp;&amp;I.push(&quot;rotate(&quot;.concat(x,&quot;, &quot;).concat(_,&quot;, &quot;).concat(S,&quot;)&quot;)),I.length&amp;&amp;(v.transform=I.join(&quot; &quot;)),O.createElement(&quot;text&quot;,p1({},li(v),{ref:r,x:_,y:S,className:br(&quot;recharts-text&quot;,g),textAnchor:a,fill:u.includes(&quot;url&quot;)?zM:u}),h.map((q,H)=&gt;{var B=q.words.join(y?&quot;&quot;:&quot; &quot;);return O.createElement(&quot;tspan&quot;,{x:_,dy:H===0?A:s,key:&quot;&quot;.concat(B,&quot;-&quot;).concat(H)},B)}))});Gw.displayName=&quot;Text&quot;;var Hee=[&quot;labelRef&quot;],Kee=[&quot;content&quot;];function TS(e,r){if(e==null)return{};var t,n,o=Xee(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function Xee(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function IS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Gr(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?IS(Object(t),!0).forEach(function(n){Gee(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):IS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Gee(e,r,t){return(r=Yee(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Yee(e){var r=Zee(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function Zee(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Ea.apply(null,arguments)}var UM=O.createContext(null),Qee=e=&gt;{var{x:r,y:t,upperWidth:n,lowerWidth:o,width:s,height:l,children:u}=e,c=O.useMemo(()=&gt;({x:r,y:t,upperWidth:n,lowerWidth:o,width:s,height:l}),[r,t,n,o,s,l]);return O.createElement(UM.Provider,{value:c},u)},VM=()=&gt;{var e=O.useContext(UM),r=k0();return e||ZE(r)},Jee=O.createContext(null),ete=()=&gt;{var e=O.useContext(Jee),r=Et(yA);return e||r},tte=e=&gt;{var{value:r,formatter:t}=e,n=Rr(e.children)?r:e.children;return typeof t==&quot;function&quot;?t(n):n},Yw=e=&gt;e!=null&amp;&amp;typeof e==&quot;function&quot;,rte=(e,r)=&gt;{var t=wi(r-e),n=Math.min(Math.abs(r-e),360);return t*n},nte=(e,r,t,n,o)=&gt;{var{offset:s,className:l}=e,{cx:u,cy:c,innerRadius:a,outerRadius:d,startAngle:f,endAngle:h,clockWise:m}=o,p=(a+d)/2,x=rte(f,h),g=x&gt;=0?1:-1,y,v;switch(r){case&quot;insideStart&quot;:y=f+g*s,v=m;break;case&quot;insideEnd&quot;:y=h-g*s,v=!m;break;case&quot;end&quot;:y=h+g*s,v=m;break;default:throw new Error(&quot;Unsupported position &quot;.concat(r))}v=x&lt;=0?v:!v;var _=Rn(u,c,p,y),S=Rn(u,c,p,y+(v?1:-1)*359),A=&quot;M&quot;.concat(_.x,&quot;,&quot;).concat(_.y,`
    A`).concat(p,&quot;,&quot;).concat(p,&quot;,0,1,&quot;).concat(v?0:1,`,
    `).concat(S.x,&quot;,&quot;).concat(S.y),I=Rr(e.id)?Gd(&quot;recharts-radial-line-&quot;):e.id;return O.createElement(&quot;text&quot;,Ea({},n,{dominantBaseline:&quot;central&quot;,className:br(&quot;recharts-radial-bar-label&quot;,l)}),O.createElement(&quot;defs&quot;,null,O.createElement(&quot;path&quot;,{id:I,d:A})),O.createElement(&quot;textPath&quot;,{xlinkHref:&quot;#&quot;.concat(I)},t))},ite=(e,r,t)=&gt;{var{cx:n,cy:o,innerRadius:s,outerRadius:l,startAngle:u,endAngle:c}=e,a=(u+c)/2;if(t===&quot;outside&quot;){var{x:d,y:f}=Rn(n,o,l+r,a);return{x:d,y:f,textAnchor:d&gt;=n?&quot;start&quot;:&quot;end&quot;,verticalAnchor:&quot;middle&quot;}}if(t===&quot;center&quot;)return{x:n,y:o,textAnchor:&quot;middle&quot;,verticalAnchor:&quot;middle&quot;};if(t===&quot;centerTop&quot;)return{x:n,y:o,textAnchor:&quot;middle&quot;,verticalAnchor:&quot;start&quot;};if(t===&quot;centerBottom&quot;)return{x:n,y:o,textAnchor:&quot;middle&quot;,verticalAnchor:&quot;end&quot;};var h=(s+l)/2,{x:m,y:p}=Rn(n,o,h,a);return{x:m,y:p,textAnchor:&quot;middle&quot;,verticalAnchor:&quot;middle&quot;}},g1=e=&gt;&quot;cx&quot;in e&amp;&amp;xt(e.cx),ste=(e,r)=&gt;{var{parentViewBox:t,offset:n,position:o}=e,s;t!=null&amp;&amp;!g1(t)&amp;&amp;(s=t);var{x:l,y:u,upperWidth:c,lowerWidth:a,height:d}=r,f=l,h=l+(c-a)/2,m=(f+h)/2,p=(c+a)/2,x=f+c/2,g=d&gt;=0?1:-1,y=g*n,v=g&gt;0?&quot;end&quot;:&quot;start&quot;,_=g&gt;0?&quot;start&quot;:&quot;end&quot;,S=c&gt;=0?1:-1,A=S*n,I=S&gt;0?&quot;end&quot;:&quot;start&quot;,V=S&gt;0?&quot;start&quot;:&quot;end&quot;;if(o===&quot;top&quot;){var F={x:f+c/2,y:u-y,textAnchor:&quot;middle&quot;,verticalAnchor:v};return Gr(Gr({},F),s?{height:Math.max(u-s.y,0),width:c}:{})}if(o===&quot;bottom&quot;){var q={x:h+a/2,y:u+d+y,textAnchor:&quot;middle&quot;,verticalAnchor:_};return Gr(Gr({},q),s?{height:Math.max(s.y+s.height-(u+d),0),width:a}:{})}if(o===&quot;left&quot;){var H={x:m-A,y:u+d/2,textAnchor:I,verticalAnchor:&quot;middle&quot;};return Gr(Gr({},H),s?{width:Math.max(H.x-s.x,0),height:d}:{})}if(o===&quot;right&quot;){var B={x:m+p+A,y:u+d/2,textAnchor:V,verticalAnchor:&quot;middle&quot;};return Gr(Gr({},B),s?{width:Math.max(s.x+s.width-B.x,0),height:d}:{})}var K=s?{width:p,height:d}:{};return o===&quot;insideLeft&quot;?Gr({x:m+A,y:u+d/2,textAnchor:V,verticalAnchor:&quot;middle&quot;},K):o===&quot;insideRight&quot;?Gr({x:m+p-A,y:u+d/2,textAnchor:I,verticalAnchor:&quot;middle&quot;},K):o===&quot;insideTop&quot;?Gr({x:f+c/2,y:u+y,textAnchor:&quot;middle&quot;,verticalAnchor:_},K):o===&quot;insideBottom&quot;?Gr({x:h+a/2,y:u+d-y,textAnchor:&quot;middle&quot;,verticalAnchor:v},K):o===&quot;insideTopLeft&quot;?Gr({x:f+A,y:u+y,textAnchor:V,verticalAnchor:_},K):o===&quot;insideTopRight&quot;?Gr({x:f+c-A,y:u+y,textAnchor:I,verticalAnchor:_},K):o===&quot;insideBottomLeft&quot;?Gr({x:h+A,y:u+d-y,textAnchor:V,verticalAnchor:v},K):o===&quot;insideBottomRight&quot;?Gr({x:h+a-A,y:u+d-y,textAnchor:I,verticalAnchor:v},K):o&amp;&amp;typeof o==&quot;object&quot;&amp;&amp;(xt(o.x)||$a(o.x))&amp;&amp;(xt(o.y)||$a(o.y))?Gr({x:l+Ms(o.x,p),y:u+Ms(o.y,d),textAnchor:&quot;end&quot;,verticalAnchor:&quot;end&quot;},K):Gr({x,y:u+d/2,textAnchor:&quot;middle&quot;,verticalAnchor:&quot;middle&quot;},K)},ate={angle:0,offset:5,zIndex:Nn.label,position:&quot;middle&quot;,textBreakAll:!1};function Oo(e){var r=Dn(e,ate),{viewBox:t,position:n,value:o,children:s,content:l,className:u=&quot;&quot;,textBreakAll:c,labelRef:a}=r,d=ete(),f=VM(),h=n===&quot;center&quot;?f:d??f,m,p,x;if(t==null?m=h:g1(t)?m=t:m=ZE(t),!m||Rr(o)&amp;&amp;Rr(s)&amp;&amp;!O.isValidElement(l)&amp;&amp;typeof l!=&quot;function&quot;)return null;var g=Gr(Gr({},r),{},{viewBox:m});if(O.isValidElement(l)){var{labelRef:y}=g,v=TS(g,Hee);return O.cloneElement(l,v)}if(typeof l==&quot;function&quot;){var{content:_}=g,S=TS(g,Kee);if(p=O.createElement(l,S),O.isValidElement(p))return p}else p=tte(r);var A=li(r);if(g1(m)){if(n===&quot;insideStart&quot;||n===&quot;insideEnd&quot;||n===&quot;end&quot;)return nte(r,n,p,A,m);x=ite(m,r.offset,r.position)}else x=ste(r,m);return O.createElement(ls,{zIndex:r.zIndex},O.createElement(Gw,Ea({ref:a,className:br(&quot;recharts-label&quot;,u)},A,x,{textAnchor:zee(A.textAnchor)?A.textAnchor:x.textAnchor,breakAll:c}),p))}Oo.displayName=&quot;Label&quot;;var ote=(e,r,t)=&gt;{if(!e)return null;var n={viewBox:r,labelRef:t};return e===!0?O.createElement(Oo,Ea({key:&quot;label-implicit&quot;},n)):na(e)?O.createElement(Oo,Ea({key:&quot;label-implicit&quot;,value:e},n)):O.isValidElement(e)?e.type===Oo?O.cloneElement(e,Gr({key:&quot;label-implicit&quot;},n)):O.createElement(Oo,Ea({key:&quot;label-implicit&quot;,content:e},n)):Yw(e)?O.createElement(Oo,Ea({key:&quot;label-implicit&quot;,content:e},n)):e&amp;&amp;typeof e==&quot;object&quot;?O.createElement(Oo,Ea({},e,{key:&quot;label-implicit&quot;},n)):null};function lte(e){var{label:r,labelRef:t}=e,n=VM();return ote(r,n,t)||null}var Ny={},ky={},RS;function cte(){return RS||(RS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return t[t.length-1]}e.last=r})(ky)),ky}var Sy={},DS;function ute(){return DS||(DS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){return Array.isArray(t)?t:Array.from(t)}e.toArray=r})(Sy)),Sy}var LS;function dte(){return LS||(LS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});const r=cte(),t=ute(),n=D2();function o(s){if(n.isArrayLike(s))return r.last(t.toArray(s))}e.last=o})(Ny)),Ny}var Cy,FS;function fte(){return FS||(FS=1,Cy=dte().last),Cy}var hte=fte();const mte=Os(hte);var pte=[&quot;valueAccessor&quot;],gte=[&quot;dataKey&quot;,&quot;clockWise&quot;,&quot;id&quot;,&quot;textBreakAll&quot;,&quot;zIndex&quot;];function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Bp.apply(null,arguments)}function BS(e,r){if(e==null)return{};var t,n,o=xte(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function xte(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var bte=e=&gt;Array.isArray(e.value)?mte(e.value):e.value,qM=O.createContext(void 0),WM=qM.Provider,HM=O.createContext(void 0);HM.Provider;function yte(){return O.useContext(qM)}function vte(){return O.useContext(HM)}function Rm(e){var{valueAccessor:r=bte}=e,t=BS(e,pte),{dataKey:n,clockWise:o,id:s,textBreakAll:l,zIndex:u}=t,c=BS(t,gte),a=yte(),d=vte(),f=a||d;return!f||!f.length?null:O.createElement(ls,{zIndex:u??Nn.label},O.createElement(is,{className:&quot;recharts-label-list&quot;},f.map((h,m)=&gt;{var p,x=Rr(n)?r(h,m):tn(h&amp;&amp;h.payload,n),g=Rr(s)?{}:{id:&quot;&quot;.concat(s,&quot;-&quot;).concat(m)};return O.createElement(Oo,Bp({key:&quot;label-&quot;.concat(m)},li(h),c,g,{fill:(p=t.fill)!==null&amp;&amp;p!==void 0?p:h.fill,parentViewBox:h.parentViewBox,value:x,textBreakAll:l,viewBox:h.viewBox,index:m,zIndex:0}))})))}Rm.displayName=&quot;LabelList&quot;;function KM(e){var{label:r}=e;return r?r===!0?O.createElement(Rm,{key:&quot;labelList-implicit&quot;}):O.isValidElement(r)||Yw(r)?O.createElement(Rm,{key:&quot;labelList-implicit&quot;,content:r}):typeof r==&quot;object&quot;?O.createElement(Rm,Bp({key:&quot;labelList-implicit&quot;},r,{type:String(r.type)})):null:null}function x1(){return x1=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},x1.apply(null,arguments)}var XM=e=&gt;{var{cx:r,cy:t,r:n,className:o}=e,s=br(&quot;recharts-dot&quot;,o);return xt(r)&amp;&amp;xt(t)&amp;&amp;xt(n)?O.createElement(&quot;circle&quot;,x1({},Es(e),R2(e),{className:s,cx:r,cy:t,r:n})):null},wte={radiusAxis:{},angleAxis:{}},GM=Si({name:&quot;polarAxis&quot;,initialState:wte,reducers:{addRadiusAxis(e,r){e.radiusAxis[r.payload.id]=r.payload},removeRadiusAxis(e,r){delete e.radiusAxis[r.payload.id]},addAngleAxis(e,r){e.angleAxis[r.payload.id]=r.payload},removeAngleAxis(e,r){delete e.angleAxis[r.payload.id]}}}),{addRadiusAxis:mle,removeRadiusAxis:ple,addAngleAxis:gle,removeAngleAxis:xle}=GM.actions,_te=GM.reducer,Ey={exports:{}},vr={};var $S;function jte(){if($S)return vr;$S=1;var e=Symbol.for(&quot;react.transitional.element&quot;),r=Symbol.for(&quot;react.portal&quot;),t=Symbol.for(&quot;react.fragment&quot;),n=Symbol.for(&quot;react.strict_mode&quot;),o=Symbol.for(&quot;react.profiler&quot;),s=Symbol.for(&quot;react.consumer&quot;),l=Symbol.for(&quot;react.context&quot;),u=Symbol.for(&quot;react.forward_ref&quot;),c=Symbol.for(&quot;react.suspense&quot;),a=Symbol.for(&quot;react.suspense_list&quot;),d=Symbol.for(&quot;react.memo&quot;),f=Symbol.for(&quot;react.lazy&quot;),h=Symbol.for(&quot;react.view_transition&quot;),m=Symbol.for(&quot;react.client.reference&quot;);function p(x){if(typeof x==&quot;object&quot;&amp;&amp;x!==null){var g=x.$$typeof;switch(g){case e:switch(x=x.type,x){case t:case o:case n:case c:case a:case h:return x;default:switch(x=x&amp;&amp;x.$$typeof,x){case l:case u:case f:case d:return x;case s:return x;default:return g}}case r:return g}}}return vr.ContextConsumer=s,vr.ContextProvider=l,vr.Element=e,vr.ForwardRef=u,vr.Fragment=t,vr.Lazy=f,vr.Memo=d,vr.Portal=r,vr.Profiler=o,vr.StrictMode=n,vr.Suspense=c,vr.SuspenseList=a,vr.isContextConsumer=function(x){return p(x)===s},vr.isContextProvider=function(x){return p(x)===l},vr.isElement=function(x){return typeof x==&quot;object&quot;&amp;&amp;x!==null&amp;&amp;x.$$typeof===e},vr.isForwardRef=function(x){return p(x)===u},vr.isFragment=function(x){return p(x)===t},vr.isLazy=function(x){return p(x)===f},vr.isMemo=function(x){return p(x)===d},vr.isPortal=function(x){return p(x)===r},vr.isProfiler=function(x){return p(x)===o},vr.isStrictMode=function(x){return p(x)===n},vr.isSuspense=function(x){return p(x)===c},vr.isSuspenseList=function(x){return p(x)===a},vr.isValidElementType=function(x){return typeof x==&quot;string&quot;||typeof x==&quot;function&quot;||x===t||x===o||x===n||x===c||x===a||typeof x==&quot;object&quot;&amp;&amp;x!==null&amp;&amp;(x.$$typeof===f||x.$$typeof===d||x.$$typeof===l||x.$$typeof===s||x.$$typeof===u||x.$$typeof===m||x.getModuleId!==void 0)},vr.typeOf=p,vr}var zS;function Nte(){return zS||(zS=1,Ey.exports=jte()),Ey.exports}var kte=Nte(),US=e=&gt;typeof e==&quot;string&quot;?e:e?e.displayName||e.name||&quot;Component&quot;:&quot;&quot;,VS=null,Ay=null,YM=e=&gt;{if(e===VS&amp;&amp;Array.isArray(Ay))return Ay;var r=[];return O.Children.forEach(e,t=&gt;{Rr(t)||(kte.isFragment(t)?r=r.concat(YM(t.props.children)):r.push(t))}),Ay=r,VS=e,r};function Ste(e,r){var t=[],n=[];return Array.isArray(r)?n=r.map(o=&gt;US(o)):n=[US(r)],YM(e).forEach(o=&gt;{var s=Qc(o,&quot;type.displayName&quot;)||Qc(o,&quot;type.name&quot;);s&amp;&amp;n.indexOf(s)!==-1&amp;&amp;t.push(o)}),t}var ZM=e=&gt;e&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;&quot;clipDot&quot;in e?!!e.clipDot:!0,My={},qS;function Cte(){return qS||(qS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;});function r(t){if(typeof t!=&quot;object&quot;||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!==&quot;[object Object]&quot;){const o=t[Symbol.toStringTag];return o==null||!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable?!1:t.toString()===`[object ${o}]`}let n=t;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n}e.isPlainObject=r})(My)),My}var Py,WS;function Ete(){return WS||(WS=1,Py=Cte().isPlainObject),Py}var Ate=Ete();const Mte=Os(Ate);var HS,KS,XS,GS,YS;function ZS(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function QS(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ZS(Object(t),!0).forEach(function(n){Pte(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ZS(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Pte(e,r,t){return(r=Ote(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ote(e){var r=Tte(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function Tte(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},$p.apply(null,arguments)}function Nd(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var JS=(e,r,t,n,o)=&gt;{var s=t-n,l;return l=Wr(HS||(HS=Nd([&quot;M &quot;,&quot;,&quot;,&quot;&quot;])),e,r),l+=Wr(KS||(KS=Nd([&quot;L &quot;,&quot;,&quot;,&quot;&quot;])),e+t,r),l+=Wr(XS||(XS=Nd([&quot;L &quot;,&quot;,&quot;,&quot;&quot;])),e+t-s/2,r+o),l+=Wr(GS||(GS=Nd([&quot;L &quot;,&quot;,&quot;,&quot;&quot;])),e+t-s/2-n,r+o),l+=Wr(YS||(YS=Nd([&quot;L &quot;,&quot;,&quot;,&quot; Z&quot;])),e,r),l},Ite={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:&quot;ease&quot;},Rte=e=&gt;{var r=Dn(e,Ite),{x:t,y:n,upperWidth:o,lowerWidth:s,height:l,className:u}=r,{animationEasing:c,animationDuration:a,animationBegin:d,isUpdateAnimationActive:f}=r,h=O.useRef(null),[m,p]=O.useState(-1),x=O.useRef(o),g=O.useRef(s),y=O.useRef(l),v=O.useRef(t),_=O.useRef(n),S=O0(e,&quot;trapezoid-&quot;);if(O.useEffect(()=&gt;{if(h.current&amp;&amp;h.current.getTotalLength)try{var L=h.current.getTotalLength();L&amp;&amp;p(L)}catch{}},[]),t!==+t||n!==+n||o!==+o||s!==+s||l!==+l||o===0&amp;&amp;s===0||l===0)return null;var A=br(&quot;recharts-trapezoid&quot;,u);if(!f)return O.createElement(&quot;g&quot;,null,O.createElement(&quot;path&quot;,$p({},li(r),{className:A,d:JS(t,n,o,s,l)})));var I=x.current,V=g.current,F=y.current,q=v.current,H=_.current,B=&quot;0px &quot;.concat(m===-1?1:m,&quot;px&quot;),K=&quot;&quot;.concat(m,&quot;px 0px&quot;),T=l9([&quot;strokeDasharray&quot;],a,c);return O.createElement(P0,{animationId:S,key:S,canBegin:m&gt;0,duration:a,easing:c,isActive:f,begin:d},L=&gt;{var E=Hr(I,o,L),j=Hr(V,s,L),k=Hr(F,l,L),N=Hr(q,t,L),C=Hr(H,n,L);h.current&amp;&amp;(x.current=E,g.current=j,y.current=k,v.current=N,_.current=C);var P=L&gt;0?{transition:T,strokeDasharray:K}:{strokeDasharray:B};return O.createElement(&quot;path&quot;,$p({},li(r),{className:A,d:JS(N,C,E,j,k),ref:h,style:QS(QS({},P),r.style)}))})},Dte=[&quot;option&quot;,&quot;shapeType&quot;,&quot;activeClassName&quot;];function Lte(e,r){if(e==null)return{};var t,n,o=Fte(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function Fte(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function e6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function zp(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?e6(Object(t),!0).forEach(function(n){Bte(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):e6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Bte(e,r,t){return(r=$te(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function $te(e){var r=zte(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function zte(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function Ute(e,r){return zp(zp({},r),e)}function Vte(e,r){return e===&quot;symbols&quot;}function t6(e){var{shapeType:r,elementProps:t}=e;switch(r){case&quot;rectangle&quot;:return O.createElement(f9,t);case&quot;trapezoid&quot;:return O.createElement(Rte,t);case&quot;sector&quot;:return O.createElement(p9,t);case&quot;symbols&quot;:if(Vte(r))return O.createElement(I2,t);break;case&quot;curve&quot;:return O.createElement(o9,t);default:return null}}function qte(e){return O.isValidElement(e)?e.props:e}function QM(e){var{option:r,shapeType:t,activeClassName:n=&quot;recharts-active-shape&quot;}=e,o=Lte(e,Dte),s;if(O.isValidElement(r))s=O.cloneElement(r,zp(zp({},o),qte(r)));else if(typeof r==&quot;function&quot;)s=r(o,o.index);else if(Mte(r)&amp;&amp;typeof r!=&quot;boolean&quot;){var l=Ute(r,o);s=O.createElement(t6,{shapeType:t,elementProps:l})}else{var u=o;s=O.createElement(t6,{shapeType:t,elementProps:u})}return o.isActive?O.createElement(is,{className:n},s):s}var JM=(e,r,t)=&gt;{var n=Ur();return(o,s)=&gt;l=&gt;{e?.(o,s,l),n(lM({activeIndex:String(s),activeDataKey:r,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:t}))}},eP=e=&gt;{var r=Ur();return(t,n)=&gt;o=&gt;{e?.(t,n,o),r(dQ())}},tP=(e,r,t)=&gt;{var n=Ur();return(o,s)=&gt;l=&gt;{e?.(o,s,l),n(fQ({activeIndex:String(s),activeDataKey:r,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:t}))}};function rP(e){var{tooltipEntrySettings:r}=e,t=Ur(),n=Xn(),o=O.useRef(null);return O.useLayoutEffect(()=&gt;{n||(o.current===null?t(oQ(r)):o.current!==r&amp;&amp;t(lQ({prev:o.current,next:r})),o.current=r)},[r,t,n]),O.useLayoutEffect(()=&gt;()=&gt;{o.current&amp;&amp;(t(cQ(o.current)),o.current=null)},[t]),null}function nP(e){var{legendPayload:r}=e,t=Ur(),n=Xn(),o=O.useRef(null);return O.useLayoutEffect(()=&gt;{n||(o.current===null?t(EH(r)):o.current!==r&amp;&amp;t(AH({prev:o.current,next:r})),o.current=r)},[t,n,r]),O.useLayoutEffect(()=&gt;()=&gt;{o.current&amp;&amp;(t(MH(o.current)),o.current=null)},[t]),null}var Oy,Wte=()=&gt;{var[e]=O.useState(()=&gt;Gd(&quot;uid-&quot;));return e},Hte=(Oy=t8.useId)!==null&amp;&amp;Oy!==void 0?Oy:Wte;function Kte(e,r){var t=Hte();return r||(e?&quot;&quot;.concat(e,&quot;-&quot;).concat(t):t)}var Xte=O.createContext(void 0),iP=e=&gt;{var{id:r,type:t,children:n}=e,o=Kte(&quot;recharts-&quot;.concat(t),r);return O.createElement(Xte.Provider,{value:o},n(o))},Gte={cartesianItems:[],polarItems:[]},sP=Si({name:&quot;graphicalItems&quot;,initialState:Gte,reducers:{addCartesianGraphicalItem:{reducer(e,r){e.cartesianItems.push(r.payload)},prepare:Tr()},replaceCartesianGraphicalItem:{reducer(e,r){var{prev:t,next:n}=r.payload,o=Cs(e).cartesianItems.indexOf(t);o&gt;-1&amp;&amp;(e.cartesianItems[o]=n)},prepare:Tr()},removeCartesianGraphicalItem:{reducer(e,r){var t=Cs(e).cartesianItems.indexOf(r.payload);t&gt;-1&amp;&amp;e.cartesianItems.splice(t,1)},prepare:Tr()},addPolarGraphicalItem:{reducer(e,r){e.polarItems.push(r.payload)},prepare:Tr()},removePolarGraphicalItem:{reducer(e,r){var t=Cs(e).polarItems.indexOf(r.payload);t&gt;-1&amp;&amp;e.polarItems.splice(t,1)},prepare:Tr()}}}),{addCartesianGraphicalItem:Yte,replaceCartesianGraphicalItem:Zte,removeCartesianGraphicalItem:Qte,addPolarGraphicalItem:ble,removePolarGraphicalItem:yle}=sP.actions,Jte=sP.reducer,ere=e=&gt;{var r=Ur(),t=O.useRef(null);return O.useLayoutEffect(()=&gt;{t.current===null?r(Yte(e)):t.current!==e&amp;&amp;r(Zte({prev:t.current,next:e})),t.current=e},[r,e]),O.useLayoutEffect(()=&gt;()=&gt;{t.current&amp;&amp;(r(Qte(t.current)),t.current=null)},[r]),null},aP=O.memo(ere),tre=[&quot;points&quot;];function r6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Ty(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?r6(Object(t),!0).forEach(function(n){rre(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function rre(e,r,t){return(r=nre(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function nre(e){var r=ire(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function ire(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Up.apply(null,arguments)}function sre(e,r){if(e==null)return{};var t,n,o=are(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function are(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function ore(e){var{option:r,dotProps:t,className:n}=e;if(O.isValidElement(r))return O.cloneElement(r,t);if(typeof r==&quot;function&quot;)return r(t);var o=br(n,typeof r!=&quot;boolean&quot;?r.className:&quot;&quot;),s=t??{},{points:l}=s,u=sre(s,tre);return O.createElement(XM,Up({},u,{className:o}))}function lre(e,r){return e==null?!1:r?!0:e.length===1}function cre(e){var{points:r,dot:t,className:n,dotClassName:o,dataKey:s,baseProps:l,needClip:u,clipPathId:c,zIndex:a=Nn.scatter}=e;if(!lre(r,t))return null;var d=ZM(t),f=oU(t),h=r.map((p,x)=&gt;{var g,y,v=Ty(Ty(Ty({r:3},l),f),{},{index:x,cx:(g=p.x)!==null&amp;&amp;g!==void 0?g:void 0,cy:(y=p.y)!==null&amp;&amp;y!==void 0?y:void 0,dataKey:s,value:p.value,payload:p.payload,points:r});return O.createElement(ore,{key:&quot;dot-&quot;.concat(x),option:t,dotProps:v,className:o})}),m={};return u&amp;&amp;c!=null&amp;&amp;(m.clipPath=&quot;url(#clipPath-&quot;.concat(d?&quot;&quot;:&quot;dots-&quot;).concat(c,&quot;)&quot;)),O.createElement(ls,{zIndex:a},O.createElement(is,Up({className:n},m),h))}function n6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function i6(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?n6(Object(t),!0).forEach(function(n){ure(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function ure(e,r,t){return(r=dre(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function dre(e){var r=fre(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function fre(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var oP=0,hre={xAxis:{},yAxis:{},zAxis:{}},lP=Si({name:&quot;cartesianAxis&quot;,initialState:hre,reducers:{addXAxis:{reducer(e,r){e.xAxis[r.payload.id]=r.payload},prepare:Tr()},replaceXAxis:{reducer(e,r){var{prev:t,next:n}=r.payload;e.xAxis[t.id]!==void 0&amp;&amp;(t.id!==n.id&amp;&amp;delete e.xAxis[t.id],e.xAxis[n.id]=n)},prepare:Tr()},removeXAxis:{reducer(e,r){delete e.xAxis[r.payload.id]},prepare:Tr()},addYAxis:{reducer(e,r){e.yAxis[r.payload.id]=r.payload},prepare:Tr()},replaceYAxis:{reducer(e,r){var{prev:t,next:n}=r.payload;e.yAxis[t.id]!==void 0&amp;&amp;(t.id!==n.id&amp;&amp;delete e.yAxis[t.id],e.yAxis[n.id]=n)},prepare:Tr()},removeYAxis:{reducer(e,r){delete e.yAxis[r.payload.id]},prepare:Tr()},addZAxis:{reducer(e,r){e.zAxis[r.payload.id]=r.payload},prepare:Tr()},replaceZAxis:{reducer(e,r){var{prev:t,next:n}=r.payload;e.zAxis[t.id]!==void 0&amp;&amp;(t.id!==n.id&amp;&amp;delete e.zAxis[t.id],e.zAxis[n.id]=n)},prepare:Tr()},removeZAxis:{reducer(e,r){delete e.zAxis[r.payload.id]},prepare:Tr()},updateYAxisWidth(e,r){var{id:t,width:n}=r.payload,o=e.yAxis[t];if(o){var s=o.widthHistory||[];if(s.length===3&amp;&amp;s[0]===s[2]&amp;&amp;n===s[1]&amp;&amp;n!==o.width&amp;&amp;Math.abs(n-s[0])&lt;=1)return;var l=[...s,n].slice(-3);e.yAxis[t]=i6(i6({},e.yAxis[t]),{},{width:n,widthHistory:l})}}}}),{addXAxis:mre,replaceXAxis:pre,removeXAxis:gre,addYAxis:xre,replaceYAxis:bre,removeYAxis:yre,addZAxis:vle,replaceZAxis:wle,removeZAxis:_le,updateYAxisWidth:vre}=lP.actions,wre=lP.reducer,_re=Ie([kn],e=&gt;({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),jre=Ie([_re,Xa,Ga],(e,r,t)=&gt;{if(!(!e||r==null||t==null))return{x:e.left,y:e.top,width:Math.max(0,r-e.left-e.right),height:Math.max(0,t-e.top-e.bottom)}}),Zw=()=&gt;Et(jre),Nre=()=&gt;Et(tJ);function s6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Iy(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?s6(Object(t),!0).forEach(function(n){kre(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function kre(e,r,t){return(r=Sre(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Sre(e){var r=Cre(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function Cre(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var Ere=e=&gt;{var{point:r,childIndex:t,mainColor:n,activeDot:o,dataKey:s,clipPath:l}=e;if(o===!1||r.x==null||r.y==null)return null;var u={index:t,dataKey:s,cx:r.x,cy:r.y,r:4,fill:n??&quot;none&quot;,strokeWidth:2,stroke:&quot;#fff&quot;,payload:r.payload,value:r.value},c=Iy(Iy(Iy({},u),bf(o)),R2(o)),a;return O.isValidElement(o)?a=O.cloneElement(o,c):typeof o==&quot;function&quot;?a=o(c):a=O.createElement(XM,c),O.createElement(is,{className:&quot;recharts-active-dot&quot;,clipPath:l},a)};function Are(e){var{points:r,mainColor:t,activeDot:n,itemDataKey:o,clipPath:s,zIndex:l=Nn.activeDot}=e,u=Et(ql),c=Nre();if(r==null||c==null)return null;var a=r.find(d=&gt;c.includes(d.payload));return Rr(a)?null:O.createElement(ls,{zIndex:l},O.createElement(Ere,{point:a,childIndex:Number(u),mainColor:t,dataKey:o,activeDot:n,clipPath:s}))}var a6=(e,r,t)=&gt;{var n=t??e;if(!Rr(n))return Ms(n,r,0)},Mre=(e,r,t)=&gt;{var n={},o=e.filter(V0),s=e.filter(a=&gt;a.stackId==null),l=o.reduce((a,d)=&gt;(a[d.stackId]||(a[d.stackId]=[]),a[d.stackId].push(d),a),n),u=Object.entries(l).map(a=&gt;{var[d,f]=a,h=f.map(p=&gt;p.dataKey),m=a6(r,t,f[0].barSize);return{stackId:d,dataKeys:h,barSize:m}}),c=s.map(a=&gt;{var d=[a.dataKey].filter(h=&gt;h!=null),f=a6(r,t,a.barSize);return{stackId:void 0,dataKeys:d,barSize:f}});return[...u,...c]};function o6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function vm(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?o6(Object(t),!0).forEach(function(n){Pre(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Pre(e,r,t){return(r=Ore(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ore(e){var r=Tre(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function Tre(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function Ire(e,r,t,n,o){var s=n.length;if(!(s&lt;1)){var l=Ms(e,t,0,!0),u,c=[];if(zr(n[0].barSize)){var a=!1,d=t/s,f=n.reduce((y,v)=&gt;y+(v.barSize||0),0);f+=(s-1)*l,f&gt;=t&amp;&amp;(f-=(s-1)*l,l=0),f&gt;=t&amp;&amp;d&gt;0&amp;&amp;(a=!0,d*=.9,f=s*d);var h=(t-f)/2&gt;&gt;0,m={offset:h-l,size:0};u=n.reduce((y,v)=&gt;{var _,S={stackId:v.stackId,dataKeys:v.dataKeys,position:{offset:m.offset+m.size+l,size:a?d:(_=v.barSize)!==null&amp;&amp;_!==void 0?_:0}},A=[...y,S];return m=A[A.length-1].position,A},c)}else{var p=Ms(r,t,0,!0);t-2*p-(s-1)*l&lt;=0&amp;&amp;(l=0);var x=(t-2*p-(s-1)*l)/s;x&gt;1&amp;&amp;(x&gt;&gt;=0);var g=zr(o)?Math.min(x,o):x;u=n.reduce((y,v,_)=&gt;[...y,{stackId:v.stackId,dataKeys:v.dataKeys,position:{offset:p+(x+l)*_+(x-g)/2,size:g}}],c)}return u}}var Rre=(e,r,t,n,o,s,l)=&gt;{var u=Rr(l)?r:l,c=Ire(t,n,o!==s?o:s,e,u);return o!==s&amp;&amp;c!=null&amp;&amp;(c=c.map(a=&gt;vm(vm({},a),{},{position:vm(vm({},a.position),{},{offset:a.position.offset-o/2})}))),c},Dre=(e,r)=&gt;{var t=Aw(r);if(!(!e||t==null||r==null)){var{stackId:n}=r;if(n!=null){var o=e[n];if(o){var{stackedData:s}=o;if(s)return s.find(l=&gt;l.key===t)}}}};function Lre(e,r){return e&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;&quot;zIndex&quot;in e&amp;&amp;typeof e.zIndex==&quot;number&quot;&amp;&amp;zr(e.zIndex)?e.zIndex:r}var Fre=e=&gt;{var{chartData:r}=e,t=Ur(),n=Xn();return O.useEffect(()=&gt;n?()=&gt;{}:(t(bS(r)),()=&gt;{t(bS(void 0))}),[r,t,n]),null},l6={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},cP=Si({name:&quot;brush&quot;,initialState:l6,reducers:{setBrushSettings(e,r){return r.payload==null?l6:r.payload}}}),{setBrushSettings:jle}=cP.actions,Bre=cP.reducer;function $re(e,r,t){return(r=zre(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function zre(e){var r=Ure(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function Ure(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}class Qw{static create(r){return new Qw(r)}constructor(r){this.scale=r}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(r){var{bandAware:t,position:n}=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:{};if(r!==void 0){if(n)switch(n){case&quot;start&quot;:return this.scale(r);case&quot;middle&quot;:{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case&quot;end&quot;:{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(t){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}isInRange(r){var t=this.range(),n=t[0],o=t[t.length-1];return n&lt;=o?r&gt;=n&amp;&amp;r&lt;=o:r&gt;=o&amp;&amp;r&lt;=n}}$re(Qw,&quot;EPS&quot;,1e-4);function Vre(e){return(e%180+180)%180}var qre=function(r){var{width:t,height:n}=r,o=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:0,s=Vre(o),l=s*Math.PI/180,u=Math.atan(n/t),c=l&gt;u&amp;&amp;l&lt;Math.PI-u?n/Math.sin(l):t/Math.cos(l);return Math.abs(c)},Wre={dots:[],areas:[],lines:[]},uP=Si({name:&quot;referenceElements&quot;,initialState:Wre,reducers:{addDot:(e,r)=&gt;{e.dots.push(r.payload)},removeDot:(e,r)=&gt;{var t=Cs(e).dots.findIndex(n=&gt;n===r.payload);t!==-1&amp;&amp;e.dots.splice(t,1)},addArea:(e,r)=&gt;{e.areas.push(r.payload)},removeArea:(e,r)=&gt;{var t=Cs(e).areas.findIndex(n=&gt;n===r.payload);t!==-1&amp;&amp;e.areas.splice(t,1)},addLine:(e,r)=&gt;{e.lines.push(r.payload)},removeLine:(e,r)=&gt;{var t=Cs(e).lines.findIndex(n=&gt;n===r.payload);t!==-1&amp;&amp;e.lines.splice(t,1)}}}),{addDot:Nle,removeDot:kle,addArea:Sle,removeArea:Cle,addLine:Ele,removeLine:Ale}=uP.actions,Hre=uP.reducer,Kre=O.createContext(void 0),Xre=e=&gt;{var{children:r}=e,[t]=O.useState(&quot;&quot;.concat(Gd(&quot;recharts&quot;),&quot;-clip&quot;)),n=Zw();if(n==null)return null;var{x:o,y:s,width:l,height:u}=n;return O.createElement(Kre.Provider,{value:t},O.createElement(&quot;defs&quot;,null,O.createElement(&quot;clipPath&quot;,{id:t},O.createElement(&quot;rect&quot;,{x:o,y:s,height:u,width:l}))),r)};function dP(e,r){if(r&lt;1)return[];if(r===1)return e;for(var t=[],n=0;n&lt;e.length;n+=r){var o=e[n];o!==void 0&amp;&amp;t.push(o)}return t}function Gre(e,r,t){var n={width:e.width+r.width,height:e.height+r.height};return qre(n,t)}function Yre(e,r,t){var n=t===&quot;width&quot;,{x:o,y:s,width:l,height:u}=e;return r===1?{start:n?o:s,end:n?o+l:s+u}:{start:n?o+l:s+u,end:n?o:s}}function uf(e,r,t,n,o){if(e*r&lt;e*n||e*r&gt;e*o)return!1;var s=t();return e*(r-e*s/2-n)&gt;=0&amp;&amp;e*(r+e*s/2-o)&lt;=0}function Zre(e,r){return dP(e,r+1)}function Qre(e,r,t,n,o){for(var s=(n||[]).slice(),{start:l,end:u}=r,c=0,a=1,d=l,f=function(){var p=n?.[c];if(p===void 0)return{v:dP(n,a)};var x=c,g,y=()=&gt;(g===void 0&amp;&amp;(g=t(p,x)),g),v=p.coordinate,_=c===0||uf(e,v,y,d,u);_||(c=0,d=l,a+=1),_&amp;&amp;(d=v+e*(y()/2+o),c+=a)},h;a&lt;=s.length;)if(h=f(),h)return h.v;return[]}function Jre(e,r,t,n,o){var s=(n||[]).slice(),l=s.length;if(l===0)return[];for(var{start:u,end:c}=r,a=1;a&lt;=l;a++){for(var d=(l-1)%a,f=u,h=!0,m=function(){var v=n[p],_=p,S,A=()=&gt;(S===void 0&amp;&amp;(S=t(v,_)),S),I=v.coordinate,V=p===d||uf(e,I,A,f,c);if(!V)return h=!1,1;V&amp;&amp;(f=I+e*(A()/2+o))},p=d;p&lt;l&amp;&amp;!m();p+=a);if(h){for(var x=[],g=d;g&lt;l;g+=a)x.push(n[g]);return x}}return[]}function c6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function qn(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?c6(Object(t),!0).forEach(function(n){ene(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function ene(e,r,t){return(r=tne(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function tne(e){var r=rne(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function rne(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function nne(e,r,t,n,o){for(var s=(n||[]).slice(),l=s.length,{start:u}=r,{end:c}=r,a=function(h){var m=s[h],p,x=()=&gt;(p===void 0&amp;&amp;(p=t(m,h)),p);if(h===l-1){var g=e*(m.coordinate+e*x()/2-c);s[h]=m=qn(qn({},m),{},{tickCoord:g&gt;0?m.coordinate-g*e:m.coordinate})}else s[h]=m=qn(qn({},m),{},{tickCoord:m.coordinate});if(m.tickCoord!=null){var y=uf(e,m.tickCoord,x,u,c);y&amp;&amp;(c=m.tickCoord-e*(x()/2+o),s[h]=qn(qn({},m),{},{isShow:!0}))}},d=l-1;d&gt;=0;d--)a(d);return s}function ine(e,r,t,n,o,s){var l=(n||[]).slice(),u=l.length,{start:c,end:a}=r;if(s){var d=n[u-1],f=t(d,u-1),h=e*(d.coordinate+e*f/2-a);if(l[u-1]=d=qn(qn({},d),{},{tickCoord:h&gt;0?d.coordinate-h*e:d.coordinate}),d.tickCoord!=null){var m=uf(e,d.tickCoord,()=&gt;f,c,a);m&amp;&amp;(a=d.tickCoord-e*(f/2+o),l[u-1]=qn(qn({},d),{},{isShow:!0}))}}for(var p=s?u-1:u,x=function(v){var _=l[v],S,A=()=&gt;(S===void 0&amp;&amp;(S=t(_,v)),S);if(v===0){var I=e*(_.coordinate-e*A()/2-c);l[v]=_=qn(qn({},_),{},{tickCoord:I&lt;0?_.coordinate-I*e:_.coordinate})}else l[v]=_=qn(qn({},_),{},{tickCoord:_.coordinate});if(_.tickCoord!=null){var V=uf(e,_.tickCoord,A,c,a);V&amp;&amp;(c=_.tickCoord+e*(A()/2+o),l[v]=qn(qn({},_),{},{isShow:!0}))}},g=0;g&lt;p;g++)x(g);return l}function Jw(e,r,t){var{tick:n,ticks:o,viewBox:s,minTickGap:l,orientation:u,interval:c,tickFormatter:a,unit:d,angle:f}=e;if(!o||!o.length||!n)return[];if(xt(c)||M0.isSsr){var h;return(h=Zre(o,xt(c)?c:0))!==null&amp;&amp;h!==void 0?h:[]}var m=[],p=u===&quot;top&quot;||u===&quot;bottom&quot;?&quot;width&quot;:&quot;height&quot;,x=d&amp;&amp;p===&quot;width&quot;?Rd(d,{fontSize:r,letterSpacing:t}):{width:0,height:0},g=(_,S)=&gt;{var A=typeof a==&quot;function&quot;?a(_.value,S):_.value;return p===&quot;width&quot;?Gre(Rd(A,{fontSize:r,letterSpacing:t}),x,f):Rd(A,{fontSize:r,letterSpacing:t})[p]},y=o.length&gt;=2?wi(o[1].coordinate-o[0].coordinate):1,v=Yre(s,y,p);return c===&quot;equidistantPreserveStart&quot;?Qre(y,v,g,o,l):c===&quot;equidistantPreserveEnd&quot;?Jre(y,v,g,o,l):(c===&quot;preserveStart&quot;||c===&quot;preserveStartEnd&quot;?m=ine(y,v,g,o,l,c===&quot;preserveStartEnd&quot;):m=nne(y,v,g,o,l),m.filter(_=&gt;_.isShow))}var sne=e=&gt;{var{ticks:r,label:t,labelGapWithTick:n=5,tickSize:o=0,tickMargin:s=0}=e,l=0;if(r){Array.from(r).forEach(d=&gt;{if(d){var f=d.getBoundingClientRect();f.width&gt;l&amp;&amp;(l=f.width)}});var u=t?t.getBoundingClientRect().width:0,c=o+s,a=l+c+u+(t?n:0);return Math.round(a)}return 0},ane=[&quot;axisLine&quot;,&quot;width&quot;,&quot;height&quot;,&quot;className&quot;,&quot;hide&quot;,&quot;ticks&quot;,&quot;axisType&quot;];function one(e,r){if(e==null)return{};var t,n,o=lne(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function lne(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Wl.apply(null,arguments)}function u6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function en(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?u6(Object(t),!0).forEach(function(n){cne(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function cne(e,r,t){return(r=une(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function une(e){var r=dne(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function dne(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}var Ra={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:&quot;bottom&quot;,ticks:[],stroke:&quot;#666&quot;,tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:&quot;preserveEnd&quot;,zIndex:Nn.axis};function fne(e){var{x:r,y:t,width:n,height:o,orientation:s,mirror:l,axisLine:u,otherSvgProps:c}=e;if(!u)return null;var a=en(en(en({},c),Es(u)),{},{fill:&quot;none&quot;});if(s===&quot;top&quot;||s===&quot;bottom&quot;){var d=+(s===&quot;top&quot;&amp;&amp;!l||s===&quot;bottom&quot;&amp;&amp;l);a=en(en({},a),{},{x1:r,y1:t+d*o,x2:r+n,y2:t+d*o})}else{var f=+(s===&quot;left&quot;&amp;&amp;!l||s===&quot;right&quot;&amp;&amp;l);a=en(en({},a),{},{x1:r+f*n,y1:t,x2:r+f*n,y2:t+o})}return O.createElement(&quot;line&quot;,Wl({},a,{className:br(&quot;recharts-cartesian-axis-line&quot;,Qc(u,&quot;className&quot;))}))}function hne(e,r,t,n,o,s,l,u,c){var a,d,f,h,m,p,x=u?-1:1,g=e.tickSize||l,y=xt(e.tickCoord)?e.tickCoord:e.coordinate;switch(s){case&quot;top&quot;:a=d=e.coordinate,h=t+ +!u*o,f=h-x*g,p=f-x*c,m=y;break;case&quot;left&quot;:f=h=e.coordinate,d=r+ +!u*n,a=d-x*g,m=a-x*c,p=y;break;case&quot;right&quot;:f=h=e.coordinate,d=r+ +u*n,a=d+x*g,m=a+x*c,p=y;break;default:a=d=e.coordinate,h=t+ +u*o,f=h+x*g,p=f+x*c,m=y;break}return{line:{x1:a,y1:f,x2:d,y2:h},tick:{x:m,y:p}}}function mne(e,r){switch(e){case&quot;left&quot;:return r?&quot;start&quot;:&quot;end&quot;;case&quot;right&quot;:return r?&quot;end&quot;:&quot;start&quot;;default:return&quot;middle&quot;}}function pne(e,r){switch(e){case&quot;left&quot;:case&quot;right&quot;:return&quot;middle&quot;;case&quot;top&quot;:return r?&quot;start&quot;:&quot;end&quot;;default:return r?&quot;end&quot;:&quot;start&quot;}}function gne(e){var{option:r,tickProps:t,value:n}=e,o,s=br(t.className,&quot;recharts-cartesian-axis-tick-value&quot;);if(O.isValidElement(r))o=O.cloneElement(r,en(en({},t),{},{className:s}));else if(typeof r==&quot;function&quot;)o=r(en(en({},t),{},{className:s}));else{var l=&quot;recharts-cartesian-axis-tick-value&quot;;typeof r!=&quot;boolean&quot;&amp;&amp;(l=br(l,r?.className)),o=O.createElement(Gw,Wl({},t,{className:l}),n)}return o}var xne=O.forwardRef((e,r)=&gt;{var{ticks:t=[],tick:n,tickLine:o,stroke:s,tickFormatter:l,unit:u,padding:c,tickTextProps:a,orientation:d,mirror:f,x:h,y:m,width:p,height:x,tickSize:g,tickMargin:y,fontSize:v,letterSpacing:_,getTicksConfig:S,events:A,axisType:I}=e,V=Jw(en(en({},S),{},{ticks:t}),v,_),F=mne(d,f),q=pne(d,f),H=Es(S),B=bf(n),K={};typeof o==&quot;object&quot;&amp;&amp;(K=o);var T=en(en({},H),{},{fill:&quot;none&quot;},K),L=V.map(k=&gt;en({entry:k},hne(k,h,m,p,x,d,g,f,y))),E=L.map(k=&gt;{var{entry:N,line:C}=k;return O.createElement(is,{className:&quot;recharts-cartesian-axis-tick&quot;,key:&quot;tick-&quot;.concat(N.value,&quot;-&quot;).concat(N.coordinate,&quot;-&quot;).concat(N.tickCoord)},o&amp;&amp;O.createElement(&quot;line&quot;,Wl({},T,C,{className:br(&quot;recharts-cartesian-axis-tick-line&quot;,Qc(o,&quot;className&quot;))})))}),j=L.map((k,N)=&gt;{var{entry:C,tick:P}=k,D=en(en(en(en({textAnchor:F,verticalAnchor:q},H),{},{stroke:&quot;none&quot;,fill:s},B),P),{},{index:N,payload:C,visibleTicksCount:V.length,tickFormatter:l,padding:c},a);return O.createElement(is,Wl({className:&quot;recharts-cartesian-axis-tick-label&quot;,key:&quot;tick-label-&quot;.concat(C.value,&quot;-&quot;).concat(C.coordinate,&quot;-&quot;).concat(C.tickCoord)},c0(A,C,N)),n&amp;&amp;O.createElement(gne,{option:n,tickProps:D,value:&quot;&quot;.concat(typeof l==&quot;function&quot;?l(C.value,N):C.value).concat(u||&quot;&quot;)}))});return O.createElement(&quot;g&quot;,{className:&quot;recharts-cartesian-axis-ticks recharts-&quot;.concat(I,&quot;-ticks&quot;)},j.length&gt;0&amp;&amp;O.createElement(ls,{zIndex:Nn.label},O.createElement(&quot;g&quot;,{className:&quot;recharts-cartesian-axis-tick-labels recharts-&quot;.concat(I,&quot;-tick-labels&quot;),ref:r},j)),E.length&gt;0&amp;&amp;O.createElement(&quot;g&quot;,{className:&quot;recharts-cartesian-axis-tick-lines recharts-&quot;.concat(I,&quot;-tick-lines&quot;)},E))}),bne=O.forwardRef((e,r)=&gt;{var{axisLine:t,width:n,height:o,className:s,hide:l,ticks:u,axisType:c}=e,a=one(e,ane),[d,f]=O.useState(&quot;&quot;),[h,m]=O.useState(&quot;&quot;),p=O.useRef(null);O.useImperativeHandle(r,()=&gt;({getCalculatedWidth:()=&gt;{var g;return sne({ticks:p.current,label:(g=e.labelRef)===null||g===void 0?void 0:g.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var x=O.useCallback(g=&gt;{if(g){var y=g.getElementsByClassName(&quot;recharts-cartesian-axis-tick-value&quot;);p.current=y;var v=y[0];if(v){var _=window.getComputedStyle(v),S=_.fontSize,A=_.letterSpacing;(S!==d||A!==h)&amp;&amp;(f(S),m(A))}}},[d,h]);return l||n!=null&amp;&amp;n&lt;=0||o!=null&amp;&amp;o&lt;=0?null:O.createElement(ls,{zIndex:e.zIndex},O.createElement(is,{className:br(&quot;recharts-cartesian-axis&quot;,s)},O.createElement(fne,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:t,otherSvgProps:Es(e)}),O.createElement(xne,{ref:x,axisType:c,events:a,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y}),O.createElement(Qee,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},O.createElement(lte,{label:e.label,labelRef:e.labelRef}),e.children)))}),e_=O.forwardRef((e,r)=&gt;{var t=Dn(e,Ra);return O.createElement(bne,Wl({},t,{ref:r}))});e_.displayName=&quot;CartesianAxis&quot;;var yne=[&quot;x1&quot;,&quot;y1&quot;,&quot;x2&quot;,&quot;y2&quot;,&quot;key&quot;],vne=[&quot;offset&quot;],wne=[&quot;xAxisId&quot;,&quot;yAxisId&quot;],_ne=[&quot;xAxisId&quot;,&quot;yAxisId&quot;];function d6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Wn(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?d6(Object(t),!0).forEach(function(n){jne(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function jne(e,r,t){return(r=Nne(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Nne(e){var r=kne(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function kne(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Il.apply(null,arguments)}function Vp(e,r){if(e==null)return{};var t,n,o=Sne(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function Sne(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var Cne=e=&gt;{var{fill:r}=e;if(!r||r===&quot;none&quot;)return null;var{fillOpacity:t,x:n,y:o,width:s,height:l,ry:u}=e;return O.createElement(&quot;rect&quot;,{x:n,y:o,ry:u,width:s,height:l,stroke:&quot;none&quot;,fill:r,fillOpacity:t,className:&quot;recharts-cartesian-grid-bg&quot;})};function fP(e){var{option:r,lineItemProps:t}=e,n;if(O.isValidElement(r))n=O.cloneElement(r,t);else if(typeof r==&quot;function&quot;)n=r(t);else{var o,{x1:s,y1:l,x2:u,y2:c,key:a}=t,d=Vp(t,yne),f=(o=Es(d))!==null&amp;&amp;o!==void 0?o:{},{offset:h}=f,m=Vp(f,vne);n=O.createElement(&quot;line&quot;,Il({},m,{x1:s,y1:l,x2:u,y2:c,fill:&quot;none&quot;,key:a}))}return n}function Ene(e){var{x:r,width:t,horizontal:n=!0,horizontalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:s,yAxisId:l}=e,u=Vp(e,wne),c=o.map((a,d)=&gt;{var f=Wn(Wn({},u),{},{x1:r,y1:a,x2:r+t,y2:a,key:&quot;line-&quot;.concat(d),index:d});return O.createElement(fP,{key:&quot;line-&quot;.concat(d),option:n,lineItemProps:f})});return O.createElement(&quot;g&quot;,{className:&quot;recharts-cartesian-grid-horizontal&quot;},c)}function Ane(e){var{y:r,height:t,vertical:n=!0,verticalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:s,yAxisId:l}=e,u=Vp(e,_ne),c=o.map((a,d)=&gt;{var f=Wn(Wn({},u),{},{x1:a,y1:r,x2:a,y2:r+t,key:&quot;line-&quot;.concat(d),index:d});return O.createElement(fP,{option:n,lineItemProps:f,key:&quot;line-&quot;.concat(d)})});return O.createElement(&quot;g&quot;,{className:&quot;recharts-cartesian-grid-vertical&quot;},c)}function Mne(e){var{horizontalFill:r,fillOpacity:t,x:n,y:o,width:s,height:l,horizontalPoints:u,horizontal:c=!0}=e;if(!c||!r||!r.length||u==null)return null;var a=u.map(f=&gt;Math.round(f+o-o)).sort((f,h)=&gt;f-h);o!==a[0]&amp;&amp;a.unshift(0);var d=a.map((f,h)=&gt;{var m=!a[h+1],p=m?o+l-f:a[h+1]-f;if(p&lt;=0)return null;var x=h%r.length;return O.createElement(&quot;rect&quot;,{key:&quot;react-&quot;.concat(h),y:f,x:n,height:p,width:s,stroke:&quot;none&quot;,fill:r[x],fillOpacity:t,className:&quot;recharts-cartesian-grid-bg&quot;})});return O.createElement(&quot;g&quot;,{className:&quot;recharts-cartesian-gridstripes-horizontal&quot;},d)}function Pne(e){var{vertical:r=!0,verticalFill:t,fillOpacity:n,x:o,y:s,width:l,height:u,verticalPoints:c}=e;if(!r||!t||!t.length)return null;var a=c.map(f=&gt;Math.round(f+o-o)).sort((f,h)=&gt;f-h);o!==a[0]&amp;&amp;a.unshift(0);var d=a.map((f,h)=&gt;{var m=!a[h+1],p=m?o+l-f:a[h+1]-f;if(p&lt;=0)return null;var x=h%t.length;return O.createElement(&quot;rect&quot;,{key:&quot;react-&quot;.concat(h),x:f,y:s,width:p,height:u,stroke:&quot;none&quot;,fill:t[x],fillOpacity:n,className:&quot;recharts-cartesian-grid-bg&quot;})});return O.createElement(&quot;g&quot;,{className:&quot;recharts-cartesian-gridstripes-vertical&quot;},d)}var One=(e,r)=&gt;{var{xAxis:t,width:n,height:o,offset:s}=e;return WE(Jw(Wn(Wn(Wn({},Ra),t),{},{ticks:HE(t),viewBox:{x:0,y:0,width:n,height:o}})),s.left,s.left+s.width,r)},Tne=(e,r)=&gt;{var{yAxis:t,width:n,height:o,offset:s}=e;return WE(Jw(Wn(Wn(Wn({},Ra),t),{},{ticks:HE(t),viewBox:{x:0,y:0,width:n,height:o}})),s.top,s.top+s.height,r)},Ine={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:&quot;#ccc&quot;,fill:&quot;none&quot;,verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Nn.grid};function Dm(e){var r=K2(),t=X2(),n=QE(),o=Wn(Wn({},Dn(e,Ine)),{},{x:xt(e.x)?e.x:n.left,y:xt(e.y)?e.y:n.top,width:xt(e.width)?e.width:n.width,height:xt(e.height)?e.height:n.height}),{xAxisId:s,yAxisId:l,x:u,y:c,width:a,height:d,syncWithTicks:f,horizontalValues:h,verticalValues:m}=o,p=Xn(),x=Et(q=&gt;aS(q,&quot;xAxis&quot;,s,p)),g=Et(q=&gt;aS(q,&quot;yAxis&quot;,l,p));if(!ia(a)||!ia(d)||!xt(u)||!xt(c))return null;var y=o.verticalCoordinatesGenerator||One,v=o.horizontalCoordinatesGenerator||Tne,{horizontalPoints:_,verticalPoints:S}=o;if((!_||!_.length)&amp;&amp;typeof v==&quot;function&quot;){var A=h&amp;&amp;h.length,I=v({yAxis:g?Wn(Wn({},g),{},{ticks:A?h:g.ticks}):void 0,width:r??a,height:t??d,offset:n},A?!0:f);gp(Array.isArray(I),&quot;horizontalCoordinatesGenerator should return Array but instead it returned [&quot;.concat(typeof I,&quot;]&quot;)),Array.isArray(I)&amp;&amp;(_=I)}if((!S||!S.length)&amp;&amp;typeof y==&quot;function&quot;){var V=m&amp;&amp;m.length,F=y({xAxis:x?Wn(Wn({},x),{},{ticks:V?m:x.ticks}):void 0,width:r??a,height:t??d,offset:n},V?!0:f);gp(Array.isArray(F),&quot;verticalCoordinatesGenerator should return Array but instead it returned [&quot;.concat(typeof F,&quot;]&quot;)),Array.isArray(F)&amp;&amp;(S=F)}return O.createElement(ls,{zIndex:o.zIndex},O.createElement(&quot;g&quot;,{className:&quot;recharts-cartesian-grid&quot;},O.createElement(Cne,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),O.createElement(Mne,Il({},o,{horizontalPoints:_})),O.createElement(Pne,Il({},o,{verticalPoints:S})),O.createElement(Ene,Il({},o,{offset:n,horizontalPoints:_,xAxis:x,yAxis:g})),O.createElement(Ane,Il({},o,{offset:n,verticalPoints:S,xAxis:x,yAxis:g}))))}Dm.displayName=&quot;CartesianGrid&quot;;var Rne={},hP=Si({name:&quot;errorBars&quot;,initialState:Rne,reducers:{addErrorBar:(e,r)=&gt;{var{itemId:t,errorBar:n}=r.payload;e[t]||(e[t]=[]),e[t].push(n)},replaceErrorBar:(e,r)=&gt;{var{itemId:t,prev:n,next:o}=r.payload;e[t]&amp;&amp;(e[t]=e[t].map(s=&gt;s.dataKey===n.dataKey&amp;&amp;s.direction===n.direction?o:s))},removeErrorBar:(e,r)=&gt;{var{itemId:t,errorBar:n}=r.payload;e[t]&amp;&amp;(e[t]=e[t].filter(o=&gt;o.dataKey!==n.dataKey||o.direction!==n.direction))}}}),{addErrorBar:Mle,replaceErrorBar:Ple,removeErrorBar:Ole}=hP.actions,Dne=hP.reducer,Lne=[&quot;children&quot;];function Fne(e,r){if(e==null)return{};var t,n,o=Bne(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function Bne(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var $ne={data:[],xAxisId:&quot;xAxis-0&quot;,yAxisId:&quot;yAxis-0&quot;,dataPointFormatter:()=&gt;({x:0,y:0,value:0}),errorBarOffset:0},zne=O.createContext($ne);function mP(e){var{children:r}=e,t=Fne(e,Lne);return O.createElement(zne.Provider,{value:t},r)}function t_(e,r){var t,n,o=Et(a=&gt;Qa(a,e)),s=Et(a=&gt;Ja(a,r)),l=(t=o?.allowDataOverflow)!==null&amp;&amp;t!==void 0?t:vn.allowDataOverflow,u=(n=s?.allowDataOverflow)!==null&amp;&amp;n!==void 0?n:wn.allowDataOverflow,c=l||u;return{needClip:c,needClipX:l,needClipY:u}}function pP(e){var{xAxisId:r,yAxisId:t,clipPathId:n}=e,o=Zw(),{needClipX:s,needClipY:l,needClip:u}=t_(r,t);if(!u||!o)return null;var{x:c,y:a,width:d,height:f}=o;return O.createElement(&quot;clipPath&quot;,{id:&quot;clipPath-&quot;.concat(n)},O.createElement(&quot;rect&quot;,{x:s?c:c-d/2,y:l?a:a-f/2,width:s?d:d*2,height:l?f:f*2}))}var gP=(e,r,t,n)=&gt;Wo(e,&quot;xAxis&quot;,r,n),xP=(e,r,t,n)=&gt;qo(e,&quot;xAxis&quot;,r,n),bP=(e,r,t,n)=&gt;Wo(e,&quot;yAxis&quot;,t,n),yP=(e,r,t,n)=&gt;qo(e,&quot;yAxis&quot;,t,n),Une=Ie([ur,gP,bP,xP,yP],(e,r,t,n,o)=&gt;Ko(e,&quot;xAxis&quot;)?eu(r,n,!1):eu(t,o,!1)),Vne=(e,r,t,n,o)=&gt;o;function qne(e){return e.type===&quot;line&quot;}var Wne=Ie([H0,Vne],(e,r)=&gt;e.filter(qne).find(t=&gt;t.id===r)),Hne=Ie([ur,gP,bP,xP,yP,Wne,Une,vw],(e,r,t,n,o,s,l,u)=&gt;{var{chartData:c,dataStartIndex:a,dataEndIndex:d}=u;if(!(s==null||r==null||t==null||n==null||o==null||n.length===0||o.length===0||l==null||e!==&quot;horizontal&quot;&amp;&amp;e!==&quot;vertical&quot;)){var{dataKey:f,data:h}=s,m;if(h!=null&amp;&amp;h.length&gt;0?m=h:m=c?.slice(a,d+1),m!=null)return Tie({layout:e,xAxis:r,yAxis:t,xAxisTicks:n,yAxisTicks:o,dataKey:f,bandSize:l,displayedData:m})}});function Kne(e){var r=bf(e),t=3,n=2;if(r!=null){var{r:o,strokeWidth:s}=r,l=Number(o),u=Number(s);return(Number.isNaN(l)||l&lt;0)&amp;&amp;(l=t),(Number.isNaN(u)||u&lt;0)&amp;&amp;(u=n),{r:l,strokeWidth:u}}return{r:t,strokeWidth:n}}var Ry={exports:{}},Dy={};var f6;function Xne(){if(f6)return Dy;f6=1;var e=au();function r(c,a){return c===a&amp;&amp;(c!==0||1/c===1/a)||c!==c&amp;&amp;a!==a}var t=typeof Object.is==&quot;function&quot;?Object.is:r,n=e.useSyncExternalStore,o=e.useRef,s=e.useEffect,l=e.useMemo,u=e.useDebugValue;return Dy.useSyncExternalStoreWithSelector=function(c,a,d,f,h){var m=o(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=l(function(){function g(A){if(!y){if(y=!0,v=A,A=f(A),h!==void 0&amp;&amp;p.hasValue){var I=p.value;if(h(I,A))return _=I}return _=A}if(I=_,t(v,A))return I;var V=f(A);return h!==void 0&amp;&amp;h(I,V)?(v=A,I):(v=A,_=V)}var y=!1,v,_,S=d===void 0?null:d;return[function(){return g(a())},S===null?void 0:function(){return g(S())}]},[a,d,f,h]);var x=n(c,m[0],m[1]);return s(function(){p.hasValue=!0,p.value=x},[x]),u(x),x},Dy}var h6;function Gne(){return h6||(h6=1,Ry.exports=Xne()),Ry.exports}Gne();function Yne(e){e()}function Zne(){let e=null,r=null;return{clear(){e=null,r=null},notify(){Yne(()=&gt;{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(t){let n=!0;const o=r={callback:t,next:null,prev:r};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var m6={notify(){},get:()=&gt;[]};function Qne(e,r){let t,n=m6,o=0,s=!1;function l(x){d();const g=n.subscribe(x);let y=!1;return()=&gt;{y||(y=!0,g(),f())}}function u(){n.notify()}function c(){p.onStateChange&amp;&amp;p.onStateChange()}function a(){return s}function d(){o++,t||(t=e.subscribe(c),n=Zne())}function f(){o--,t&amp;&amp;o===0&amp;&amp;(t(),t=void 0,n.clear(),n=m6)}function h(){s||(s=!0,d())}function m(){s&amp;&amp;(s=!1,f())}const p={addNestedSub:l,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:a,trySubscribe:h,tryUnsubscribe:m,getListeners:()=&gt;n};return p}var Jne=()=&gt;typeof window&lt;&quot;u&quot;&amp;&amp;typeof window.document&lt;&quot;u&quot;&amp;&amp;typeof window.document.createElement&lt;&quot;u&quot;,eie=Jne(),tie=()=&gt;typeof navigator&lt;&quot;u&quot;&amp;&amp;navigator.product===&quot;ReactNative&quot;,rie=tie(),nie=()=&gt;eie||rie?O.useLayoutEffect:O.useEffect,iie=nie();function p6(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&amp;&amp;r!==r}function sie(e,r){if(p6(e,r))return!0;if(typeof e!=&quot;object&quot;||e===null||typeof r!=&quot;object&quot;||r===null)return!1;const t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(let o=0;o&lt;t.length;o++)if(!Object.prototype.hasOwnProperty.call(r,t[o])||!p6(e[t[o]],r[t[o]]))return!1;return!0}var aie=Symbol.for(&quot;react-redux-context&quot;),oie=typeof globalThis&lt;&quot;u&quot;?globalThis:{};function lie(){if(!O.createContext)return{};const e=oie[aie]??=new Map;let r=e.get(O.createContext);return r||(r=O.createContext(null),e.set(O.createContext,r)),r}var cie=lie();function uie(e){const{children:r,context:t,serverState:n,store:o}=e,s=O.useMemo(()=&gt;{const c=Qne(o);return{store:o,subscription:c,getServerState:n?()=&gt;n:void 0}},[o,n]),l=O.useMemo(()=&gt;o.getState(),[o]);iie(()=&gt;{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==o.getState()&amp;&amp;c.notifyNestedSubs(),()=&gt;{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,l]);const u=t||cie;return O.createElement(u.Provider,{value:s},r)}var die=uie,fie=new Set([&quot;axisLine&quot;,&quot;tickLine&quot;,&quot;activeBar&quot;,&quot;activeDot&quot;,&quot;activeLabel&quot;,&quot;activeShape&quot;,&quot;allowEscapeViewBox&quot;,&quot;background&quot;,&quot;cursor&quot;,&quot;dot&quot;,&quot;label&quot;,&quot;line&quot;,&quot;margin&quot;,&quot;padding&quot;,&quot;position&quot;,&quot;shape&quot;,&quot;style&quot;,&quot;tick&quot;,&quot;wrapperStyle&quot;,&quot;radius&quot;]);function hie(e,r){return e==null&amp;&amp;r==null?!0:typeof e==&quot;number&quot;&amp;&amp;typeof r==&quot;number&quot;?e===r||e!==e&amp;&amp;r!==r:e===r}function Z0(e,r){var t=new Set([...Object.keys(e),...Object.keys(r)]);for(var n of t)if(fie.has(n)){if(e[n]==null&amp;&amp;r[n]==null)continue;if(!sie(e[n],r[n]))return!1}else if(!hie(e[n],r[n]))return!1;return!0}var mie=[&quot;id&quot;],pie=[&quot;type&quot;,&quot;layout&quot;,&quot;connectNulls&quot;,&quot;needClip&quot;,&quot;shape&quot;],gie=[&quot;activeDot&quot;,&quot;animateNewValues&quot;,&quot;animationBegin&quot;,&quot;animationDuration&quot;,&quot;animationEasing&quot;,&quot;connectNulls&quot;,&quot;dot&quot;,&quot;hide&quot;,&quot;isAnimationActive&quot;,&quot;label&quot;,&quot;legendType&quot;,&quot;xAxisId&quot;,&quot;yAxisId&quot;,&quot;id&quot;];function df(){return df=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},df.apply(null,arguments)}function g6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Zs(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?g6(Object(t),!0).forEach(function(n){xie(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function xie(e,r,t){return(r=bie(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function bie(e){var r=yie(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function yie(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function r_(e,r){if(e==null)return{};var t,n,o=vie(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function vie(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var wie=e=&gt;{var{dataKey:r,name:t,stroke:n,legendType:o,hide:s}=e;return[{inactive:s,dataKey:r,type:o,color:n,value:v0(t,r),payload:e}]},_ie=O.memo(e=&gt;{var{dataKey:r,data:t,stroke:n,strokeWidth:o,fill:s,name:l,hide:u,unit:c,tooltipType:a,id:d}=e,f={dataDefinedOnItem:t,positions:void 0,settings:{stroke:n,strokeWidth:o,fill:s,dataKey:r,nameKey:void 0,name:v0(l,r),hide:u,type:a,color:n,unit:c,graphicalItemId:d}};return O.createElement(rP,{tooltipEntrySettings:f})}),vP=(e,r)=&gt;&quot;&quot;.concat(r,&quot;px &quot;).concat(e-r,&quot;px&quot;);function jie(e,r){for(var t=e.length%2!==0?[...e,0]:e,n=[],o=0;o&lt;r;++o)n=[...n,...t];return n}var Nie=(e,r,t)=&gt;{var n=t.reduce((f,h)=&gt;f+h);if(!n)return vP(r,e);for(var o=Math.floor(e/n),s=e%n,l=r-e,u=[],c=0,a=0;c&lt;t.length;a+=t[c],++c)if(a+t[c]&gt;s){u=[...t.slice(0,c),s-a];break}var d=u.length%2===0?[0,l]:[l];return[...jie(t,o),...u,...d].map(f=&gt;&quot;&quot;.concat(f,&quot;px&quot;)).join(&quot;, &quot;)};function kie(e){var{clipPathId:r,points:t,props:n}=e,{dot:o,dataKey:s,needClip:l}=n,{id:u}=n,c=r_(n,mie),a=Es(c);return O.createElement(cre,{points:t,dot:o,className:&quot;recharts-line-dots&quot;,dotClassName:&quot;recharts-line-dot&quot;,dataKey:s,baseProps:a,needClip:l,clipPathId:r})}function Sie(e){var{showLabels:r,children:t,points:n}=e,o=O.useMemo(()=&gt;n?.map(s=&gt;{var l,u,c={x:(l=s.x)!==null&amp;&amp;l!==void 0?l:0,y:(u=s.y)!==null&amp;&amp;u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Zs(Zs({},c),{},{value:s.value,payload:s.payload,viewBox:c,parentViewBox:void 0,fill:void 0})}),[n]);return O.createElement(WM,{value:r?o:void 0},t)}function x6(e){var{clipPathId:r,pathRef:t,points:n,strokeDasharray:o,props:s}=e,{type:l,layout:u,connectNulls:c,needClip:a,shape:d}=s,f=r_(s,pie),h=Zs(Zs({},li(f)),{},{fill:&quot;none&quot;,className:&quot;recharts-line-curve&quot;,clipPath:a?&quot;url(#clipPath-&quot;.concat(r,&quot;)&quot;):void 0,points:n,type:l,layout:u,connectNulls:c,strokeDasharray:o??s.strokeDasharray});return O.createElement(O.Fragment,null,n?.length&gt;1&amp;&amp;O.createElement(QM,df({shapeType:&quot;curve&quot;,option:d},h,{pathRef:t})),O.createElement(kie,{points:n,clipPathId:r,props:s}))}function Cie(e){try{return e&amp;&amp;e.getTotalLength&amp;&amp;e.getTotalLength()||0}catch{return 0}}function Eie(e){var{clipPathId:r,props:t,pathRef:n,previousPointsRef:o,longestAnimatedLengthRef:s}=e,{points:l,strokeDasharray:u,isAnimationActive:c,animationBegin:a,animationDuration:d,animationEasing:f,animateNewValues:h,width:m,height:p,onAnimationEnd:x,onAnimationStart:g}=t,y=o.current,v=O0(l,&quot;recharts-line-&quot;),_=O.useRef(v),[S,A]=O.useState(!1),I=!S,V=O.useCallback(()=&gt;{typeof x==&quot;function&quot;&amp;&amp;x(),A(!1)},[x]),F=O.useCallback(()=&gt;{typeof g==&quot;function&quot;&amp;&amp;g(),A(!0)},[g]),q=Cie(n.current),H=O.useRef(0);_.current!==v&amp;&amp;(H.current=s.current,_.current=v);var B=H.current;return O.createElement(Sie,{points:l,showLabels:I},t.children,O.createElement(P0,{animationId:v,begin:a,duration:d,isActive:c,easing:f,onAnimationEnd:V,onAnimationStart:F,key:v},K=&gt;{var T=Hr(B,q+B,K),L=Math.min(T,q),E;if(c)if(u){var j=&quot;&quot;.concat(u).split(/[,\s]+/gim).map(C=&gt;parseFloat(C));E=Nie(L,q,j)}else E=vP(q,L);else E=u==null?void 0:String(u);if(K&gt;0&amp;&amp;q&gt;0&amp;&amp;(o.current=l,s.current=Math.max(s.current,L)),y){var k=y.length/l.length,N=K===1?l:l.map((C,P)=&gt;{var D=Math.floor(P*k);if(y[D]){var z=y[D];return Zs(Zs({},C),{},{x:Hr(z.x,C.x,K),y:Hr(z.y,C.y,K)})}return h?Zs(Zs({},C),{},{x:Hr(m*2,C.x,K),y:Hr(p/2,C.y,K)}):Zs(Zs({},C),{},{x:C.x,y:C.y})});return o.current=N,O.createElement(x6,{props:t,points:N,clipPathId:r,pathRef:n,strokeDasharray:E})}return O.createElement(x6,{props:t,points:l,clipPathId:r,pathRef:n,strokeDasharray:E})}),O.createElement(KM,{label:t.label}))}function Aie(e){var{clipPathId:r,props:t}=e,n=O.useRef(null),o=O.useRef(0),s=O.useRef(null);return O.createElement(Eie,{props:t,clipPathId:r,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:s})}var Mie=(e,r)=&gt;{var t,n;return{x:(t=e.x)!==null&amp;&amp;t!==void 0?t:void 0,y:(n=e.y)!==null&amp;&amp;n!==void 0?n:void 0,value:e.value,errorVal:tn(e.payload,r)}};class Pie extends O.Component{render(){var{hide:r,dot:t,points:n,className:o,xAxisId:s,yAxisId:l,top:u,left:c,width:a,height:d,id:f,needClip:h,zIndex:m}=this.props;if(r)return null;var p=br(&quot;recharts-line&quot;,o),x=f,{r:g,strokeWidth:y}=Kne(t),v=ZM(t),_=g*2+y,S=h?&quot;url(#clipPath-&quot;.concat(v?&quot;&quot;:&quot;dots-&quot;).concat(x,&quot;)&quot;):void 0;return O.createElement(ls,{zIndex:m},O.createElement(is,{className:p},h&amp;&amp;O.createElement(&quot;defs&quot;,null,O.createElement(pP,{clipPathId:x,xAxisId:s,yAxisId:l}),!v&amp;&amp;O.createElement(&quot;clipPath&quot;,{id:&quot;clipPath-dots-&quot;.concat(x)},O.createElement(&quot;rect&quot;,{x:c-_/2,y:u-_/2,width:a+_,height:d+_}))),O.createElement(mP,{xAxisId:s,yAxisId:l,data:n,dataPointFormatter:Mie,errorBarOffset:0},O.createElement(Aie,{props:this.props,clipPathId:x}))),O.createElement(Are,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var wP={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:&quot;ease&quot;,connectNulls:!1,dot:!0,fill:&quot;#fff&quot;,hide:!1,isAnimationActive:&quot;auto&quot;,label:!1,legendType:&quot;line&quot;,stroke:&quot;#3182bd&quot;,strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:Nn.line,type:&quot;linear&quot;};function Oie(e){var r=Dn(e,wP),{activeDot:t,animateNewValues:n,animationBegin:o,animationDuration:s,animationEasing:l,connectNulls:u,dot:c,hide:a,isAnimationActive:d,label:f,legendType:h,xAxisId:m,yAxisId:p,id:x}=r,g=r_(r,gie),{needClip:y}=t_(m,p),v=Zw(),_=hu(),S=Xn(),A=Et(H=&gt;Hne(H,m,p,S,x));if(_!==&quot;horizontal&quot;&amp;&amp;_!==&quot;vertical&quot;||A==null||v==null)return null;var{height:I,width:V,x:F,y:q}=v;return O.createElement(Pie,df({},g,{id:x,connectNulls:u,dot:c,activeDot:t,animateNewValues:n,animationBegin:o,animationDuration:s,animationEasing:l,isAnimationActive:d,hide:a,label:f,legendType:h,xAxisId:m,yAxisId:p,points:A,layout:_,height:I,width:V,left:F,top:q,needClip:y}))}function Tie(e){var{layout:r,xAxis:t,yAxis:n,xAxisTicks:o,yAxisTicks:s,dataKey:l,bandSize:u,displayedData:c}=e;return c.map((a,d)=&gt;{var f=tn(a,l);if(r===&quot;horizontal&quot;){var h=lN({axis:t,ticks:o,bandSize:u,entry:a,index:d}),m=Rr(f)?null:n.scale(f);return{x:h,y:m,value:f,payload:a}}var p=Rr(f)?null:t.scale(f),x=lN({axis:n,ticks:s,bandSize:u,entry:a,index:d});return p==null||x==null?null:{x:p,y:x,value:f,payload:a}}).filter(Boolean)}function Iie(e){var r=Dn(e,wP),t=Xn();return O.createElement(iP,{id:r.id,type:&quot;line&quot;},n=&gt;O.createElement(O.Fragment,null,O.createElement(nP,{legendPayload:wie(r)}),O.createElement(_ie,{dataKey:r.dataKey,data:r.data,stroke:r.stroke,strokeWidth:r.strokeWidth,fill:r.fill,name:r.name,hide:r.hide,unit:r.unit,tooltipType:r.tooltipType,id:n}),O.createElement(aP,{type:&quot;line&quot;,id:n,data:r.data,xAxisId:r.xAxisId,yAxisId:r.yAxisId,zAxisId:0,dataKey:r.dataKey,hide:r.hide,isPanorama:t}),O.createElement(Oie,df({},r,{id:n}))))}var _P=O.memo(Iie,Z0);_P.displayName=&quot;Line&quot;;function Gl(e,r){var t,n;return(t=(n=e.graphicalItems.cartesianItems.find(o=&gt;o.id===r))===null||n===void 0?void 0:n.xAxisId)!==null&amp;&amp;t!==void 0?t:oP}function Yl(e,r){var t,n;return(t=(n=e.graphicalItems.cartesianItems.find(o=&gt;o.id===r))===null||n===void 0?void 0:n.yAxisId)!==null&amp;&amp;t!==void 0?t:oP}var Rie=&quot;Invariant failed&quot;;function Die(e,r){throw new Error(Rie)}function b1(){return b1=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},b1.apply(null,arguments)}function qp(e){return O.createElement(QM,b1({shapeType:&quot;rectangle&quot;,activeClassName:&quot;recharts-active-bar&quot;},e))}var Lie=function(r){var t=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:0;return(n,o)=&gt;{if(xt(r))return r;var s=xt(n)||Rr(n);return s?r(n,o):(s||Die(),t)}},Fie=(e,r,t)=&gt;t,Bie=(e,r)=&gt;r,Lf=Ie([H0,Bie],(e,r)=&gt;e.filter(t=&gt;t.type===&quot;bar&quot;).find(t=&gt;t.id===r)),$ie=Ie([Lf],e=&gt;e?.maxBarSize),zie=(e,r,t,n)=&gt;n,Uie=Ie([ur,H0,Gl,Yl,Fie],(e,r,t,n,o)=&gt;r.filter(s=&gt;e===&quot;horizontal&quot;?s.xAxisId===t:s.yAxisId===n).filter(s=&gt;s.isPanorama===o).filter(s=&gt;s.hide===!1).filter(s=&gt;s.type===&quot;bar&quot;)),Vie=(e,r,t)=&gt;{var n=ur(e),o=Gl(e,r),s=Yl(e,r);if(!(o==null||s==null))return n===&quot;horizontal&quot;?u1(e,&quot;yAxis&quot;,s,t):u1(e,&quot;xAxis&quot;,o,t)},qie=(e,r)=&gt;{var t=ur(e),n=Gl(e,r),o=Yl(e,r);if(!(n==null||o==null))return t===&quot;horizontal&quot;?sS(e,&quot;xAxis&quot;,n):sS(e,&quot;yAxis&quot;,o)},Wie=Ie([Uie,eZ,qie],Mre),Hie=(e,r,t)=&gt;{var n,o,s=Lf(e,r);if(s!=null){var l=Gl(e,r),u=Yl(e,r);if(!(l==null||u==null)){var c=ur(e),a=dA(e),{maxBarSize:d}=s,f=Rr(d)?a:d,h,m;return c===&quot;horizontal&quot;?(h=Wo(e,&quot;xAxis&quot;,l,t),m=qo(e,&quot;xAxis&quot;,l,t)):(h=Wo(e,&quot;yAxis&quot;,u,t),m=qo(e,&quot;yAxis&quot;,u,t)),(n=(o=eu(h,m,!0))!==null&amp;&amp;o!==void 0?o:f)!==null&amp;&amp;n!==void 0?n:0}}},jP=(e,r,t)=&gt;{var n=ur(e),o=Gl(e,r),s=Yl(e,r);if(!(o==null||s==null)){var l,u;return n===&quot;horizontal&quot;?(l=Wo(e,&quot;xAxis&quot;,o,t),u=qo(e,&quot;xAxis&quot;,o,t)):(l=Wo(e,&quot;yAxis&quot;,s,t),u=qo(e,&quot;yAxis&quot;,s,t)),eu(l,u)}},Kie=Ie([Wie,dA,JY,fA,Hie,jP,$ie],Rre),Xie=(e,r,t)=&gt;{var n=Gl(e,r);if(n!=null)return Wo(e,&quot;xAxis&quot;,n,t)},Gie=(e,r,t)=&gt;{var n=Yl(e,r);if(n!=null)return Wo(e,&quot;yAxis&quot;,n,t)},Yie=(e,r,t)=&gt;{var n=Gl(e,r);if(n!=null)return qo(e,&quot;xAxis&quot;,n,t)},Zie=(e,r,t)=&gt;{var n=Yl(e,r);if(n!=null)return qo(e,&quot;yAxis&quot;,n,t)},Qie=Ie([Kie,Lf],(e,r)=&gt;{if(!(e==null||r==null)){var t=e.find(n=&gt;n.stackId===r.stackId&amp;&amp;r.dataKey!=null&amp;&amp;n.dataKeys.includes(r.dataKey));if(t!=null)return t.position}}),Jie=Ie([Vie,Lf],Dre),ese=Ie([kn,W2,Xie,Gie,Yie,Zie,Qie,ur,zY,jP,Jie,Lf,zie],(e,r,t,n,o,s,l,u,c,a,d,f,h)=&gt;{var{chartData:m,dataStartIndex:p,dataEndIndex:x}=c;if(!(f==null||l==null||r==null||u!==&quot;horizontal&quot;&amp;&amp;u!==&quot;vertical&quot;||t==null||n==null||o==null||s==null||a==null)){var{data:g}=f,y;if(g!=null&amp;&amp;g.length&gt;0?y=g:y=m?.slice(p,x+1),y!=null)return Ase({layout:u,barSettings:f,pos:l,parentViewBox:r,bandSize:a,xAxis:t,yAxis:n,xAxisTicks:o,yAxisTicks:s,stackedData:d,displayedData:y,offset:e,cells:h,dataStartIndex:p})}}),tse=[&quot;index&quot;];function y1(){return y1=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},y1.apply(null,arguments)}function rse(e,r){if(e==null)return{};var t,n,o=nse(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function nse(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var NP=O.createContext(void 0),ise=e=&gt;{var r=O.useContext(NP);if(r!=null)return r.stackId;if(e!=null)return AW(e)},sse=(e,r)=&gt;&quot;recharts-bar-stack-clip-path-&quot;.concat(e,&quot;-&quot;).concat(r),ase=e=&gt;{var r=O.useContext(NP);if(r!=null){var{stackId:t}=r;return&quot;url(#&quot;.concat(sse(t,e),&quot;)&quot;)}},ose=e=&gt;{var{index:r}=e,t=rse(e,tse),n=ase(r);return O.createElement(is,y1({className:&quot;recharts-bar-stack-layer&quot;,clipPath:n},t))},lse=[&quot;onMouseEnter&quot;,&quot;onMouseLeave&quot;,&quot;onClick&quot;],cse=[&quot;value&quot;,&quot;background&quot;,&quot;tooltipPosition&quot;],use=[&quot;id&quot;],dse=[&quot;onMouseEnter&quot;,&quot;onClick&quot;,&quot;onMouseLeave&quot;];function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Ha.apply(null,arguments)}function b6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function ii(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?b6(Object(t),!0).forEach(function(n){fse(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function fse(e,r,t){return(r=hse(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function hse(e){var r=mse(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function mse(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function Wp(e,r){if(e==null)return{};var t,n,o=pse(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function pse(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var gse=e=&gt;{var{dataKey:r,name:t,fill:n,legendType:o,hide:s}=e;return[{inactive:s,dataKey:r,type:o,color:n,value:v0(t,r),payload:e}]},xse=O.memo(e=&gt;{var{dataKey:r,stroke:t,strokeWidth:n,fill:o,name:s,hide:l,unit:u,tooltipType:c,id:a}=e,d={dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:t,strokeWidth:n,fill:o,dataKey:r,nameKey:void 0,name:v0(s,r),hide:l,type:c,color:o,unit:u,graphicalItemId:a}};return O.createElement(rP,{tooltipEntrySettings:d})});function bse(e){var r=Et(ql),{data:t,dataKey:n,background:o,allOtherBarProps:s}=e,{onMouseEnter:l,onMouseLeave:u,onClick:c}=s,a=Wp(s,lse),d=JM(l,n,s.id),f=eP(u),h=tP(c,n,s.id);if(!o||t==null)return null;var m=bf(o);return O.createElement(ls,{zIndex:Lre(o,Nn.barBackground)},t.map((p,x)=&gt;{var{value:g,background:y,tooltipPosition:v}=p,_=Wp(p,cse);if(!y)return null;var S=d(p,x),A=f(p,x),I=h(p,x),V=ii(ii(ii(ii(ii({option:o,isActive:String(x)===r},_),{},{fill:&quot;#eee&quot;},y),m),c0(a,p,x)),{},{onMouseEnter:S,onMouseLeave:A,onClick:I,dataKey:n,index:x,className:&quot;recharts-bar-background-rectangle&quot;});return O.createElement(qp,Ha({key:&quot;background-bar-&quot;.concat(x)},V))}))}function yse(e){var{showLabels:r,children:t,rects:n}=e,o=n?.map(s=&gt;{var l={x:s.x,y:s.y,width:s.width,lowerWidth:s.width,upperWidth:s.width,height:s.height};return ii(ii({},l),{},{value:s.value,payload:s.payload,parentViewBox:s.parentViewBox,viewBox:l,fill:s.fill})});return O.createElement(WM,{value:r?o:void 0},t)}function vse(e){var{shape:r,activeBar:t,baseProps:n,entry:o,index:s,dataKey:l}=e,u=Et(ql),c=Et(_M),a=t&amp;&amp;String(s)===u&amp;&amp;(c==null||l===c),d=a?t:r;return a?O.createElement(ls,{zIndex:Nn.activeBar},O.createElement(qp,Ha({},n,{name:String(n.name)},o,{isActive:a,option:d,index:s,dataKey:l}))):O.createElement(qp,Ha({},n,{name:String(n.name)},o,{isActive:a,option:d,index:s,dataKey:l}))}function wse(e){var{shape:r,baseProps:t,entry:n,index:o,dataKey:s}=e;return O.createElement(qp,Ha({},t,{name:String(t.name)},n,{isActive:!1,option:r,index:o,dataKey:s}))}function _se(e){var r,{data:t,props:n}=e,o=(r=Es(n))!==null&amp;&amp;r!==void 0?r:{},{id:s}=o,l=Wp(o,use),{shape:u,dataKey:c,activeBar:a}=n,{onMouseEnter:d,onClick:f,onMouseLeave:h}=n,m=Wp(n,dse),p=JM(d,c,s),x=eP(h),g=tP(f,c,s);return t?O.createElement(O.Fragment,null,t.map((y,v)=&gt;O.createElement(ose,Ha({index:v,key:&quot;rectangle-&quot;.concat(y?.x,&quot;-&quot;).concat(y?.y,&quot;-&quot;).concat(y?.value,&quot;-&quot;).concat(v),className:&quot;recharts-bar-rectangle&quot;},c0(m,y,v),{onMouseEnter:p(y,v),onMouseLeave:x(y,v),onClick:g(y,v)}),a?O.createElement(vse,{shape:u,activeBar:a,baseProps:l,entry:y,index:v,dataKey:c}):O.createElement(wse,{shape:u,baseProps:l,entry:y,index:v,dataKey:c})))):null}function jse(e){var{props:r,previousRectanglesRef:t}=e,{data:n,layout:o,isAnimationActive:s,animationBegin:l,animationDuration:u,animationEasing:c,onAnimationEnd:a,onAnimationStart:d}=r,f=t.current,h=O0(r,&quot;recharts-bar-&quot;),[m,p]=O.useState(!1),x=!m,g=O.useCallback(()=&gt;{typeof a==&quot;function&quot;&amp;&amp;a(),p(!1)},[a]),y=O.useCallback(()=&gt;{typeof d==&quot;function&quot;&amp;&amp;d(),p(!0)},[d]);return O.createElement(yse,{showLabels:x,rects:n},O.createElement(P0,{animationId:h,begin:l,duration:u,isActive:s,easing:c,onAnimationEnd:g,onAnimationStart:y,key:h},v=&gt;{var _=v===1?n:n?.map((S,A)=&gt;{var I=f&amp;&amp;f[A];if(I)return ii(ii({},S),{},{x:Hr(I.x,S.x,v),y:Hr(I.y,S.y,v),width:Hr(I.width,S.width,v),height:Hr(I.height,S.height,v)});if(o===&quot;horizontal&quot;){var V=Hr(0,S.height,v),F=Hr(S.stackedBarStart,S.y,v);return ii(ii({},S),{},{y:F,height:V})}var q=Hr(0,S.width,v),H=Hr(S.stackedBarStart,S.x,v);return ii(ii({},S),{},{width:q,x:H})});return v&gt;0&amp;&amp;(t.current=_??null),_==null?null:O.createElement(is,null,O.createElement(_se,{props:r,data:_}))}),O.createElement(KM,{label:r.label}),r.children)}function Nse(e){var r=O.useRef(null);return O.createElement(jse,{previousRectanglesRef:r,props:e})}var kP=0,kse=(e,r)=&gt;{var t=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:t,errorVal:tn(e,r)}};class Sse extends O.PureComponent{render(){var{hide:r,data:t,dataKey:n,className:o,xAxisId:s,yAxisId:l,needClip:u,background:c,id:a}=this.props;if(r||t==null)return null;var d=br(&quot;recharts-bar&quot;,o),f=a;return O.createElement(is,{className:d,id:a},u&amp;&amp;O.createElement(&quot;defs&quot;,null,O.createElement(pP,{clipPathId:f,xAxisId:s,yAxisId:l})),O.createElement(is,{className:&quot;recharts-bar-rectangles&quot;,clipPath:u?&quot;url(#clipPath-&quot;.concat(f,&quot;)&quot;):void 0},O.createElement(bse,{data:t,dataKey:n,background:c,allOtherBarProps:this.props}),O.createElement(Nse,this.props)))}}var Cse={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:&quot;ease&quot;,background:!1,hide:!1,isAnimationActive:&quot;auto&quot;,label:!1,legendType:&quot;rect&quot;,minPointSize:kP,xAxisId:0,yAxisId:0,zIndex:Nn.bar};function Ese(e){var{xAxisId:r,yAxisId:t,hide:n,legendType:o,minPointSize:s,activeBar:l,animationBegin:u,animationDuration:c,animationEasing:a,isAnimationActive:d}=e,{needClip:f}=t_(r,t),h=hu(),m=Xn(),p=Ste(e.children,TM),x=Et(v=&gt;ese(v,e.id,m,p));if(h!==&quot;vertical&quot;&amp;&amp;h!==&quot;horizontal&quot;)return null;var g,y=x?.[0];return y==null||y.height==null||y.width==null?g=0:g=h===&quot;vertical&quot;?y.height/2:y.width/2,O.createElement(mP,{xAxisId:r,yAxisId:t,data:x,dataPointFormatter:kse,errorBarOffset:g},O.createElement(Sse,Ha({},e,{layout:h,needClip:f,data:x,xAxisId:r,yAxisId:t,hide:n,legendType:o,minPointSize:s,activeBar:l,animationBegin:u,animationDuration:c,animationEasing:a,isAnimationActive:d})))}function Ase(e){var{layout:r,barSettings:{dataKey:t,minPointSize:n},pos:o,bandSize:s,xAxis:l,yAxis:u,xAxisTicks:c,yAxisTicks:a,stackedData:d,displayedData:f,offset:h,cells:m,parentViewBox:p,dataStartIndex:x}=e,g=r===&quot;horizontal&quot;?u:l,y=d?g.scale.domain():null,v=MW({numericAxis:g}),_=g.scale(v);return f.map((S,A)=&gt;{var I,V,F,q,H,B;if(d){var K=d[A+x];if(K==null)return null;I=NW(K,y)}else I=tn(S,t),Array.isArray(I)||(I=[v,I]);var T=Lie(n,kP)(I[1],A);if(r===&quot;horizontal&quot;){var L,[E,j]=[u.scale(I[0]),u.scale(I[1])];V=cN({axis:l,ticks:c,bandSize:s,offset:o.offset,entry:S,index:A}),F=(L=j??E)!==null&amp;&amp;L!==void 0?L:void 0,q=o.size;var k=E-j;if(H=As(k)?0:k,B={x:V,y:h.top,width:q,height:h.height},Math.abs(T)&gt;0&amp;&amp;Math.abs(H)&lt;Math.abs(T)){var N=wi(H||T)*(Math.abs(T)-Math.abs(H));F-=N,H+=N}}else{var[C,P]=[l.scale(I[0]),l.scale(I[1])];if(V=C,F=cN({axis:u,ticks:a,bandSize:s,offset:o.offset,entry:S,index:A}),q=P-C,H=o.size,B={x:h.left,y:F,width:h.width,height:H},Math.abs(T)&gt;0&amp;&amp;Math.abs(q)&lt;Math.abs(T)){var D=wi(q||T)*(Math.abs(T)-Math.abs(q));q+=D}}if(V==null||F==null||q==null||H==null)return null;var z=ii(ii({},S),{},{stackedBarStart:_,x:V,y:F,width:q,height:H,value:d?I:I[1],payload:S,background:B,tooltipPosition:{x:V+q/2,y:F+H/2},parentViewBox:p},m&amp;&amp;m[A]&amp;&amp;m[A].props);return z}).filter(Boolean)}function Mse(e){var r=Dn(e,Cse),t=ise(r.stackId),n=Xn();return O.createElement(iP,{id:r.id,type:&quot;bar&quot;},o=&gt;O.createElement(O.Fragment,null,O.createElement(nP,{legendPayload:gse(r)}),O.createElement(xse,{dataKey:r.dataKey,stroke:r.stroke,strokeWidth:r.strokeWidth,fill:r.fill,name:r.name,hide:r.hide,unit:r.unit,tooltipType:r.tooltipType,id:o}),O.createElement(aP,{type:&quot;bar&quot;,id:o,data:void 0,xAxisId:r.xAxisId,yAxisId:r.yAxisId,zAxisId:0,dataKey:r.dataKey,stackId:t,hide:r.hide,barSize:r.barSize,minPointSize:r.minPointSize,maxBarSize:r.maxBarSize,isPanorama:n}),O.createElement(ls,{zIndex:r.zIndex},O.createElement(Ese,Ha({},r,{id:o})))))}var v1=O.memo(Mse,Z0);v1.displayName=&quot;Bar&quot;;var Pse=[&quot;domain&quot;,&quot;range&quot;],Ose=[&quot;domain&quot;,&quot;range&quot;];function y6(e,r){if(e==null)return{};var t,n,o=Tse(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function Tse(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function v6(e,r){return e===r?!0:Array.isArray(e)&amp;&amp;e.length===2&amp;&amp;Array.isArray(r)&amp;&amp;r.length===2?e[0]===r[0]&amp;&amp;e[1]===r[1]:!1}function SP(e,r){if(e===r)return!0;var{domain:t,range:n}=e,o=y6(e,Pse),{domain:s,range:l}=r,u=y6(r,Ose);return!v6(t,s)||!v6(n,l)?!1:Z0(o,u)}var Ise=[&quot;dangerouslySetInnerHTML&quot;,&quot;ticks&quot;,&quot;scale&quot;],Rse=[&quot;id&quot;,&quot;scale&quot;];function w1(){return w1=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},w1.apply(null,arguments)}function w6(e,r){if(e==null)return{};var t,n,o=Dse(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function Dse(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Lse(e){var r=Ur(),t=O.useRef(null);return O.useLayoutEffect(()=&gt;{t.current===null?r(mre(e)):t.current!==e&amp;&amp;r(pre({prev:t.current,next:e})),t.current=e},[e,r]),O.useLayoutEffect(()=&gt;()=&gt;{t.current&amp;&amp;(r(gre(t.current)),t.current=null)},[r]),null}var Fse=e=&gt;{var{xAxisId:r,className:t}=e,n=Et(W2),o=Xn(),s=&quot;xAxis&quot;,l=Et(y=&gt;rM(y,s,r,o)),u=Et(y=&gt;QA(y,r)),c=Et(y=&gt;ZZ(y,r)),a=Et(y=&gt;wA(y,r));if(u==null||c==null||a==null)return null;var{dangerouslySetInnerHTML:d,ticks:f,scale:h}=e,m=w6(e,Ise),{id:p,scale:x}=a,g=w6(a,Rse);return O.createElement(e_,w1({},m,g,{x:c.x,y:c.y,width:u.width,height:u.height,className:br(&quot;recharts-&quot;.concat(s,&quot; &quot;).concat(s),t),viewBox:n,ticks:l,axisType:s}))},Bse={allowDataOverflow:vn.allowDataOverflow,allowDecimals:vn.allowDecimals,allowDuplicatedCategory:vn.allowDuplicatedCategory,angle:vn.angle,axisLine:Ra.axisLine,height:vn.height,hide:!1,includeHidden:vn.includeHidden,interval:vn.interval,minTickGap:vn.minTickGap,mirror:vn.mirror,orientation:vn.orientation,padding:vn.padding,reversed:vn.reversed,scale:vn.scale,tick:vn.tick,tickCount:vn.tickCount,tickLine:Ra.tickLine,tickSize:Ra.tickSize,type:vn.type,xAxisId:0},$se=e=&gt;{var r=Dn(e,Bse);return O.createElement(O.Fragment,null,O.createElement(Lse,{allowDataOverflow:r.allowDataOverflow,allowDecimals:r.allowDecimals,allowDuplicatedCategory:r.allowDuplicatedCategory,angle:r.angle,dataKey:r.dataKey,domain:r.domain,height:r.height,hide:r.hide,id:r.xAxisId,includeHidden:r.includeHidden,interval:r.interval,minTickGap:r.minTickGap,mirror:r.mirror,name:r.name,orientation:r.orientation,padding:r.padding,reversed:r.reversed,scale:r.scale,tick:r.tick,tickCount:r.tickCount,tickFormatter:r.tickFormatter,ticks:r.ticks,type:r.type,unit:r.unit}),O.createElement(Fse,r))},Lm=O.memo($se,SP);Lm.displayName=&quot;XAxis&quot;;var zse=[&quot;dangerouslySetInnerHTML&quot;,&quot;ticks&quot;,&quot;scale&quot;],Use=[&quot;id&quot;,&quot;scale&quot;];function _1(){return _1=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},_1.apply(null,arguments)}function _6(e,r){if(e==null)return{};var t,n,o=Vse(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function Vse(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function qse(e){var r=Ur(),t=O.useRef(null);return O.useLayoutEffect(()=&gt;{t.current===null?r(xre(e)):t.current!==e&amp;&amp;r(bre({prev:t.current,next:e})),t.current=e},[e,r]),O.useLayoutEffect(()=&gt;()=&gt;{t.current&amp;&amp;(r(yre(t.current)),t.current=null)},[r]),null}var Wse=e=&gt;{var{yAxisId:r,className:t,width:n,label:o}=e,s=O.useRef(null),l=O.useRef(null),u=Et(W2),c=Xn(),a=Ur(),d=&quot;yAxis&quot;,f=Et(I=&gt;JA(I,r)),h=Et(I=&gt;JZ(I,r)),m=Et(I=&gt;rM(I,d,r,c)),p=Et(I=&gt;_A(I,r));if(O.useLayoutEffect(()=&gt;{if(!(n!==&quot;auto&quot;||!f||Yw(o)||O.isValidElement(o)||p==null)){var I=s.current;if(I){var V=I.getCalculatedWidth();Math.round(f.width)!==Math.round(V)&amp;&amp;a(vre({id:r,width:V}))}}},[m,f,a,o,r,n,p]),f==null||h==null||p==null)return null;var{dangerouslySetInnerHTML:x,ticks:g,scale:y}=e,v=_6(e,zse),{id:_,scale:S}=p,A=_6(p,Use);return O.createElement(e_,_1({},v,A,{ref:s,labelRef:l,x:h.x,y:h.y,tickTextProps:n===&quot;auto&quot;?{width:void 0}:{width:n},width:f.width,height:f.height,className:br(&quot;recharts-&quot;.concat(d,&quot; &quot;).concat(d),t),viewBox:u,ticks:m,axisType:d}))},Hse={allowDataOverflow:wn.allowDataOverflow,allowDecimals:wn.allowDecimals,allowDuplicatedCategory:wn.allowDuplicatedCategory,angle:wn.angle,axisLine:Ra.axisLine,hide:!1,includeHidden:wn.includeHidden,interval:wn.interval,minTickGap:wn.minTickGap,mirror:wn.mirror,orientation:wn.orientation,padding:wn.padding,reversed:wn.reversed,scale:wn.scale,tick:wn.tick,tickCount:wn.tickCount,tickLine:Ra.tickLine,tickSize:Ra.tickSize,type:wn.type,width:wn.width,yAxisId:0},Kse=e=&gt;{var r=Dn(e,Hse);return O.createElement(O.Fragment,null,O.createElement(qse,{interval:r.interval,id:r.yAxisId,scale:r.scale,type:r.type,domain:r.domain,allowDataOverflow:r.allowDataOverflow,dataKey:r.dataKey,allowDuplicatedCategory:r.allowDuplicatedCategory,allowDecimals:r.allowDecimals,tickCount:r.tickCount,padding:r.padding,includeHidden:r.includeHidden,reversed:r.reversed,ticks:r.ticks,width:r.width,orientation:r.orientation,mirror:r.mirror,hide:r.hide,unit:r.unit,name:r.name,angle:r.angle,minTickGap:r.minTickGap,tick:r.tick,tickFormatter:r.tickFormatter}),O.createElement(Wse,r))},Fm=O.memo(Kse,SP);Fm.displayName=&quot;YAxis&quot;;var Xse=(e,r)=&gt;r,n_=Ie([Xse,ur,yA,hn,bM,eo,mJ,kn],wJ),i_=e=&gt;{var r=e.currentTarget.getBoundingClientRect(),t=r.width/e.currentTarget.offsetWidth,n=r.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-r.left)/t),chartY:Math.round((e.clientY-r.top)/n)}},CP=ss(&quot;mouseClick&quot;),EP=_f();EP.startListening({actionCreator:CP,effect:(e,r)=&gt;{var t=e.payload,n=n_(r.getState(),i_(t));n?.activeIndex!=null&amp;&amp;r.dispatch(hQ({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var j1=ss(&quot;mouseMove&quot;),AP=_f(),wm=null;AP.startListening({actionCreator:j1,effect:(e,r)=&gt;{var t=e.payload;wm!==null&amp;&amp;cancelAnimationFrame(wm);var n=i_(t);wm=requestAnimationFrame(()=&gt;{var o=r.getState(),s=Bw(o,o.tooltip.settings.shared);if(s===&quot;axis&quot;){var l=n_(o,n);l?.activeIndex!=null?r.dispatch(uM({activeIndex:l.activeIndex,activeDataKey:void 0,activeCoordinate:l.activeCoordinate})):r.dispatch(cM())}wm=null})}});function Gse(e,r){return r instanceof HTMLElement?&quot;HTMLElement &lt;&quot;.concat(r.tagName,&#039; class=&quot;&#039;).concat(r.className,&#039;&quot;&gt;&#039;):r===window?&quot;global.window&quot;:e===&quot;children&quot;&amp;&amp;typeof r==&quot;object&quot;&amp;&amp;r!==null?&quot;&lt;&lt;CHILDREN&gt;&gt;&quot;:r}var j6={accessibilityLayer:!0,barCategoryGap:&quot;10%&quot;,barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:&quot;none&quot;,syncId:void 0,syncMethod:&quot;index&quot;,baseValue:void 0,reverseStackOrder:!1},MP=Si({name:&quot;rootProps&quot;,initialState:j6,reducers:{updateOptions:(e,r)=&gt;{var t;e.accessibilityLayer=r.payload.accessibilityLayer,e.barCategoryGap=r.payload.barCategoryGap,e.barGap=(t=r.payload.barGap)!==null&amp;&amp;t!==void 0?t:j6.barGap,e.barSize=r.payload.barSize,e.maxBarSize=r.payload.maxBarSize,e.stackOffset=r.payload.stackOffset,e.syncId=r.payload.syncId,e.syncMethod=r.payload.syncMethod,e.className=r.payload.className,e.baseValue=r.payload.baseValue,e.reverseStackOrder=r.payload.reverseStackOrder}}}),Yse=MP.reducer,{updateOptions:Zse}=MP.actions,PP=Si({name:&quot;polarOptions&quot;,initialState:null,reducers:{updatePolarOptions:(e,r)=&gt;r.payload}}),{updatePolarOptions:Tle}=PP.actions,Qse=PP.reducer,OP=ss(&quot;keyDown&quot;),TP=ss(&quot;focus&quot;),s_=_f();s_.startListening({actionCreator:OP,effect:(e,r)=&gt;{var t=r.getState(),n=t.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=t.tooltip,s=e.payload;if(!(s!==&quot;ArrowRight&quot;&amp;&amp;s!==&quot;ArrowLeft&quot;&amp;&amp;s!==&quot;Enter&quot;)){var l=$w(o,wu(t),Pf(t),Rf(t)),u=l==null?-1:Number(l);if(!(!Number.isFinite(u)||u&lt;0)){var c=eo(t);if(s===&quot;Enter&quot;){var a=Fp(t,&quot;axis&quot;,&quot;hover&quot;,String(o.index));r.dispatch(f1({active:!o.active,activeIndex:o.index,activeCoordinate:a}));return}var d=nQ(t),f=d===&quot;left-to-right&quot;?1:-1,h=s===&quot;ArrowRight&quot;?1:-1,m=u+h*f;if(!(c==null||m&gt;=c.length||m&lt;0)){var p=Fp(t,&quot;axis&quot;,&quot;hover&quot;,String(m));r.dispatch(f1({active:!0,activeIndex:m.toString(),activeCoordinate:p}))}}}}}});s_.startListening({actionCreator:TP,effect:(e,r)=&gt;{var t=r.getState(),n=t.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=t.tooltip;if(!o.active&amp;&amp;o.index==null){var s=&quot;0&quot;,l=Fp(t,&quot;axis&quot;,&quot;hover&quot;,String(s));r.dispatch(f1({active:!0,activeIndex:s,activeCoordinate:l}))}}}});var Gi=ss(&quot;externalEvent&quot;),IP=_f(),Ly=new Map;IP.startListening({actionCreator:Gi,effect:(e,r)=&gt;{var{handler:t,reactEvent:n}=e.payload;if(t!=null){n.persist();var o=n.type,s=Ly.get(o);s!==void 0&amp;&amp;cancelAnimationFrame(s);var l=requestAnimationFrame(()=&gt;{try{var u=r.getState(),c={activeCoordinate:QQ(u),activeDataKey:_M(u),activeIndex:ql(u),activeLabel:wM(u),activeTooltipIndex:ql(u),isTooltipActive:JQ(u)};t(c,n)}finally{Ly.delete(o)}});Ly.set(o,l)}}});var Jse=Ie([yu],e=&gt;e.tooltipItemPayloads),eae=Ie([Jse,If,(e,r)=&gt;r,(e,r,t)=&gt;t],(e,r,t,n)=&gt;{var o=e.find(u=&gt;u.settings.graphicalItemId===n);if(o!=null){var{positions:s}=o;if(s!=null){var l=r(s,t);return l}}}),RP=ss(&quot;touchMove&quot;),DP=_f();DP.startListening({actionCreator:RP,effect:(e,r)=&gt;{var t=e.payload;if(!(t.touches==null||t.touches.length===0)){var n=r.getState(),o=Bw(n,n.tooltip.settings.shared);if(o===&quot;axis&quot;){var s=t.touches[0];if(s==null)return;var l=n_(n,i_({clientX:s.clientX,clientY:s.clientY,currentTarget:t.currentTarget}));l?.activeIndex!=null&amp;&amp;r.dispatch(uM({activeIndex:l.activeIndex,activeDataKey:void 0,activeCoordinate:l.activeCoordinate}))}else if(o===&quot;item&quot;){var u,c=t.touches[0];if(document.elementFromPoint==null||c==null)return;var a=document.elementFromPoint(c.clientX,c.clientY);if(!a||!a.getAttribute)return;var d=a.getAttribute(LW),f=(u=a.getAttribute(FW))!==null&amp;&amp;u!==void 0?u:void 0,h=vu(n).find(x=&gt;x.id===f);if(d==null||h==null||f==null)return;var{dataKey:m}=h,p=eae(n,d,f);r.dispatch(lM({activeDataKey:m,activeIndex:d,activeCoordinate:p,activeGraphicalItemId:f}))}}}});var tae=gE({brush:Bre,cartesianAxis:wre,chartData:QJ,errorBars:Dne,graphicalItems:Jte,layout:bW,legend:PH,options:KJ,polarAxis:_te,polarOptions:Qse,referenceElements:Hre,rootProps:Yse,tooltip:mQ,zIndex:RJ}),rae=function(r){var t=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:&quot;Chart&quot;;return Vq({reducer:tae,preloadedState:r,middleware:n=&gt;{var o;return n({serializableCheck:!1,immutableCheck:![&quot;commonjs&quot;,&quot;es6&quot;,&quot;production&quot;].includes((o=&quot;es6&quot;)!==null&amp;&amp;o!==void 0?o:&quot;&quot;)}).concat([EP.middleware,AP.middleware,s_.middleware,IP.middleware,DP.middleware])},enhancers:n=&gt;{var o=n;return typeof n==&quot;function&quot;&amp;&amp;(o=n()),o.concat(PE({type:&quot;raf&quot;}))},devTools:{serialize:{replacer:Gse},name:&quot;recharts-&quot;.concat(t)}})};function nae(e){var{preloadedState:r,children:t,reduxStoreName:n}=e,o=Xn(),s=O.useRef(null);if(o)return t;s.current==null&amp;&amp;(s.current=rae(r,n));var l=F2;return O.createElement(die,{context:l,store:s.current},t)}function iae(e){var{layout:r,margin:t}=e,n=Ur(),o=Xn();return O.useEffect(()=&gt;{o||(n(pW(r)),n(mW(t)))},[n,o,r,t]),null}var sae=O.memo(iae,Z0);function aae(e){var r=Ur();return O.useEffect(()=&gt;{r(Zse(e))},[r,e]),null}function N6(e){var{zIndex:r,isPanorama:t}=e,n=O.useRef(null),o=Ur();return O.useLayoutEffect(()=&gt;(n.current&amp;&amp;o(TJ({zIndex:r,element:n.current,isPanorama:t})),()=&gt;{o(IJ({zIndex:r,isPanorama:t}))}),[o,r,t]),O.createElement(&quot;g&quot;,{tabIndex:-1,ref:n})}function k6(e){var{children:r,isPanorama:t}=e,n=Et(jJ);if(!n||n.length===0)return r;var o=n.filter(l=&gt;l&lt;0),s=n.filter(l=&gt;l&gt;0);return O.createElement(O.Fragment,null,o.map(l=&gt;O.createElement(N6,{key:l,zIndex:l,isPanorama:t})),r,s.map(l=&gt;O.createElement(N6,{key:l,zIndex:l,isPanorama:t})))}var oae=[&quot;children&quot;];function lae(e,r){if(e==null)return{};var t,n,o=cae(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function cae(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Hp.apply(null,arguments)}var uae={width:&quot;100%&quot;,height:&quot;100%&quot;,display:&quot;block&quot;},dae=O.forwardRef((e,r)=&gt;{var t=K2(),n=X2(),o=a9();if(!ia(t)||!ia(n))return null;var{children:s,otherAttributes:l,title:u,desc:c}=e,a,d;return l!=null&amp;&amp;(typeof l.tabIndex==&quot;number&quot;?a=l.tabIndex:a=o?0:void 0,typeof l.role==&quot;string&quot;?d=l.role:d=o?&quot;application&quot;:void 0),O.createElement(C2,Hp({},l,{title:u,desc:c,role:d,tabIndex:a,width:t,height:n,style:uae,ref:r}),s)}),fae=e=&gt;{var{children:r}=e,t=Et(N0);if(!t)return null;var{width:n,height:o,y:s,x:l}=t;return O.createElement(C2,{width:n,height:o,x:l,y:s},r)},S6=O.forwardRef((e,r)=&gt;{var{children:t}=e,n=lae(e,oae),o=Xn();return o?O.createElement(fae,null,O.createElement(k6,{isPanorama:!0},t)):O.createElement(dae,Hp({ref:r},n),O.createElement(k6,{isPanorama:!1},t))});function hae(){var e=Ur(),[r,t]=O.useState(null),n=Et(DW);return O.useEffect(()=&gt;{if(r!=null){var o=r.getBoundingClientRect(),s=o.width/r.offsetWidth;zr(s)&amp;&amp;s!==n&amp;&amp;e(xW(s))}},[r,e,n]),t}function C6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&amp;&amp;(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function mae(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?C6(Object(t),!0).forEach(function(n){pae(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C6(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function pae(e,r,t){return(r=gae(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function gae(e){var r=xae(e,&quot;string&quot;);return typeof r==&quot;symbol&quot;?r:r+&quot;&quot;}function xae(e,r){if(typeof e!=&quot;object&quot;||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!=&quot;object&quot;)return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(r===&quot;string&quot;?String:Number)(e)}function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},Hl.apply(null,arguments)}var bae=()=&gt;(oee(),null);function Kp(e){if(typeof e==&quot;number&quot;)return e;if(typeof e==&quot;string&quot;){var r=parseFloat(e);if(!Number.isNaN(r))return r}return 0}var yae=O.forwardRef((e,r)=&gt;{var t,n,o=O.useRef(null),[s,l]=O.useState({containerWidth:Kp((t=e.style)===null||t===void 0?void 0:t.width),containerHeight:Kp((n=e.style)===null||n===void 0?void 0:n.height)}),u=O.useCallback((a,d)=&gt;{l(f=&gt;{var h=Math.round(a),m=Math.round(d);return f.containerWidth===h&amp;&amp;f.containerHeight===m?f:{containerWidth:h,containerHeight:m}})},[]),c=O.useCallback(a=&gt;{if(typeof r==&quot;function&quot;&amp;&amp;r(a),a!=null&amp;&amp;typeof ResizeObserver&lt;&quot;u&quot;){var{width:d,height:f}=a.getBoundingClientRect();u(d,f);var h=p=&gt;{var{width:x,height:g}=p[0].contentRect;u(x,g)},m=new ResizeObserver(h);m.observe(a),o.current=m}},[r,u]);return O.useEffect(()=&gt;()=&gt;{var a=o.current;a?.disconnect()},[u]),O.createElement(O.Fragment,null,O.createElement(S0,{width:s.containerWidth,height:s.containerHeight}),O.createElement(&quot;div&quot;,Hl({ref:c},e)))}),vae=O.forwardRef((e,r)=&gt;{var{width:t,height:n}=e,[o,s]=O.useState({containerWidth:Kp(t),containerHeight:Kp(n)}),l=O.useCallback((c,a)=&gt;{s(d=&gt;{var f=Math.round(c),h=Math.round(a);return d.containerWidth===f&amp;&amp;d.containerHeight===h?d:{containerWidth:f,containerHeight:h}})},[]),u=O.useCallback(c=&gt;{if(typeof r==&quot;function&quot;&amp;&amp;r(c),c!=null){var{width:a,height:d}=c.getBoundingClientRect();l(a,d)}},[r,l]);return O.createElement(O.Fragment,null,O.createElement(S0,{width:o.containerWidth,height:o.containerHeight}),O.createElement(&quot;div&quot;,Hl({ref:u},e)))}),wae=O.forwardRef((e,r)=&gt;{var{width:t,height:n}=e;return O.createElement(O.Fragment,null,O.createElement(S0,{width:t,height:n}),O.createElement(&quot;div&quot;,Hl({ref:r},e)))}),_ae=O.forwardRef((e,r)=&gt;{var{width:t,height:n}=e;return $a(t)||$a(n)?O.createElement(vae,Hl({},e,{ref:r})):O.createElement(wae,Hl({},e,{ref:r}))});function jae(e){return e===!0?yae:_ae}var Nae=O.forwardRef((e,r)=&gt;{var{children:t,className:n,height:o,onClick:s,onContextMenu:l,onDoubleClick:u,onMouseDown:c,onMouseEnter:a,onMouseLeave:d,onMouseMove:f,onMouseUp:h,onTouchEnd:m,onTouchMove:p,onTouchStart:x,style:g,width:y,responsive:v,dispatchTouchEvents:_=!0}=e,S=O.useRef(null),A=Ur(),[I,V]=O.useState(null),[F,q]=O.useState(null),H=hae(),B=H2(),K=B?.width&gt;0?B.width:y,T=B?.height&gt;0?B.height:o,L=O.useCallback(R=&gt;{H(R),typeof r==&quot;function&quot;&amp;&amp;r(R),V(R),q(R),R!=null&amp;&amp;(S.current=R)},[H,r,V,q]),E=O.useCallback(R=&gt;{A(CP(R)),A(Gi({handler:s,reactEvent:R}))},[A,s]),j=O.useCallback(R=&gt;{A(j1(R)),A(Gi({handler:a,reactEvent:R}))},[A,a]),k=O.useCallback(R=&gt;{A(cM()),A(Gi({handler:d,reactEvent:R}))},[A,d]),N=O.useCallback(R=&gt;{A(j1(R)),A(Gi({handler:f,reactEvent:R}))},[A,f]),C=O.useCallback(()=&gt;{A(TP())},[A]),P=O.useCallback(R=&gt;{A(OP(R.key))},[A]),D=O.useCallback(R=&gt;{A(Gi({handler:l,reactEvent:R}))},[A,l]),z=O.useCallback(R=&gt;{A(Gi({handler:u,reactEvent:R}))},[A,u]),Y=O.useCallback(R=&gt;{A(Gi({handler:c,reactEvent:R}))},[A,c]),Z=O.useCallback(R=&gt;{A(Gi({handler:h,reactEvent:R}))},[A,h]),ne=O.useCallback(R=&gt;{A(Gi({handler:x,reactEvent:R}))},[A,x]),U=O.useCallback(R=&gt;{_&amp;&amp;A(RP(R)),A(Gi({handler:p,reactEvent:R}))},[A,_,p]),J=O.useCallback(R=&gt;{A(Gi({handler:m,reactEvent:R}))},[A,m]),$=jae(v);return O.createElement(AM.Provider,{value:I},O.createElement(T7.Provider,{value:F},O.createElement($,{width:K??g?.width,height:T??g?.height,className:br(&quot;recharts-wrapper&quot;,n),style:mae({position:&quot;relative&quot;,cursor:&quot;default&quot;,width:K,height:T},g),onClick:E,onContextMenu:D,onDoubleClick:z,onFocus:C,onKeyDown:P,onMouseDown:Y,onMouseEnter:j,onMouseLeave:k,onMouseMove:N,onMouseUp:Z,onTouchEnd:J,onTouchMove:U,onTouchStart:ne,ref:L},O.createElement(bae,null),t)))}),kae=[&quot;width&quot;,&quot;height&quot;,&quot;responsive&quot;,&quot;children&quot;,&quot;className&quot;,&quot;style&quot;,&quot;compact&quot;,&quot;title&quot;,&quot;desc&quot;];function Sae(e,r){if(e==null)return{};var t,n,o=Cae(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n&lt;s.length;n++)t=s[n],r.indexOf(t)===-1&amp;&amp;{}.propertyIsEnumerable.call(e,t)&amp;&amp;(o[t]=e[t])}return o}function Cae(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var Eae=O.forwardRef((e,r)=&gt;{var{width:t,height:n,responsive:o,children:s,className:l,style:u,compact:c,title:a,desc:d}=e,f=Sae(e,kae),h=Es(f);return c?O.createElement(O.Fragment,null,O.createElement(S0,{width:t,height:n}),O.createElement(S6,{otherAttributes:h,title:a,desc:d},s)):O.createElement(Nae,{className:l,style:u,width:t,height:n,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},O.createElement(S6,{otherAttributes:h,title:a,desc:d,ref:r},O.createElement(Xre,null,s)))});function N1(){return N1=Object.assign?Object.assign.bind():function(e){for(var r=1;r&lt;arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])}return e},N1.apply(null,arguments)}var Aae={top:5,right:5,bottom:5,left:5},Mae={accessibilityLayer:!0,barCategoryGap:&quot;10%&quot;,barGap:4,layout:&quot;horizontal&quot;,margin:Aae,responsive:!1,reverseStackOrder:!1,stackOffset:&quot;none&quot;,syncMethod:&quot;index&quot;},LP=O.forwardRef(function(r,t){var n,o=Dn(r.categoricalChartProps,Mae),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:c,categoricalChartProps:a}=r,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:c,eventEmitter:void 0};return O.createElement(nae,{preloadedState:{options:d},reduxStoreName:(n=a.id)!==null&amp;&amp;n!==void 0?n:s},O.createElement(Fre,{chartData:a.data}),O.createElement(sae,{layout:o.layout,margin:o.margin}),O.createElement(aae,{baseValue:o.baseValue,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),O.createElement(Eae,N1({},o,{ref:t})))}),Pae=[&quot;axis&quot;],Oae=O.forwardRef((e,r)=&gt;O.createElement(LP,{chartName:&quot;LineChart&quot;,defaultTooltipEventType:&quot;axis&quot;,validateTooltipEventTypes:Pae,tooltipPayloadSearcher:MM,categoricalChartProps:e,ref:r})),Tae=[&quot;axis&quot;,&quot;item&quot;],E6=O.forwardRef((e,r)=&gt;O.createElement(LP,{chartName:&quot;BarChart&quot;,defaultTooltipEventType:&quot;axis&quot;,validateTooltipEventTypes:Tae,tooltipPayloadSearcher:MM,categoricalChartProps:e,ref:r}));const Iae=2,A6=1;function Rae({stats:e,loading:r}){if(r)return i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-1 lg:grid-cols-2 gap-4&quot;,children:[1,2].map(f=&gt;i.jsx(wt,{className:&quot;animate-pulse&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;h-[220px] bg-gray-200 rounded&quot;})},f))});if(!e)return i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 py-4 text-center&quot;,children:&quot;Aucune statistique disponible pour les graphiques.&quot;});const t=(e.timeline||[]).map(f=&gt;({date:new Date(f.date).toLocaleDateString(&quot;fr-FR&quot;,{day:&quot;2-digit&quot;,month:&quot;2-digit&quot;}),count:f.count})),n=Object.entries(e.by_status||{}).filter(([,f])=&gt;f&gt;0).map(([f,h])=&gt;({status:k2(f).label,count:h})),o=(e.by_plan||[]).slice(0,5).map(f=&gt;({name:f.pricing_plan_code||f.pricing_plan_name||&quot;-&quot;,count:f.count})),s=t.reduce((f,h)=&gt;f+h.count,0),l=n.reduce((f,h)=&gt;f+h.count,0),u=t.length&gt;=Iae&amp;&amp;s&gt;=A6,c=n.length&gt;=1&amp;&amp;l&gt;=A6,a=o.length&gt;=1&amp;&amp;o.some(f=&gt;f.count&gt;0);return!u&amp;&amp;!c&amp;&amp;!a?i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-dashed border-gray-200 bg-gray-50/80 px-4 py-8 text-center&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600&quot;,children:&quot;Pas assez de données pour afficher les graphiques. Les statistiques apparaîtront lorsque plus d&#039;inscriptions seront enregistrées.&quot;})}):i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 lg:grid-cols-2 gap-4&quot;,children:[u?i.jsxs(wt,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-base font-semibold text-ink-900 mb-3&quot;,children:&quot;Évolution dans le temps&quot;}),i.jsx(iy,{width:&quot;100%&quot;,height:220,children:i.jsxs(Oae,{data:t,children:[i.jsx(Dm,{strokeDasharray:&quot;3 3&quot;}),i.jsx(Lm,{dataKey:&quot;date&quot;,tick:{fontSize:11}}),i.jsx(Fm,{tick:{fontSize:11}}),i.jsx(_y,{}),i.jsx(Tm,{}),i.jsx(_P,{type:&quot;monotone&quot;,dataKey:&quot;count&quot;,stroke:&quot;#0B4A6F&quot;,strokeWidth:2,name:&quot;Inscriptions&quot;})]})})]}):null,c?i.jsxs(wt,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-base font-semibold text-ink-900 mb-3&quot;,children:&quot;Répartition par statut&quot;}),i.jsx(iy,{width:&quot;100%&quot;,height:220,children:i.jsxs(E6,{data:n,children:[i.jsx(Dm,{strokeDasharray:&quot;3 3&quot;}),i.jsx(Lm,{dataKey:&quot;status&quot;,tick:{fontSize:10},interval:0,angle:-25,textAnchor:&quot;end&quot;,height:60}),i.jsx(Fm,{tick:{fontSize:11}}),i.jsx(_y,{}),i.jsx(Tm,{}),i.jsx(v1,{dataKey:&quot;count&quot;,fill:&quot;#0B4A6F&quot;,name:&quot;Nombre&quot;})]})})]}):null]}),a?i.jsxs(wt,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-base font-semibold text-ink-900 mb-3&quot;,children:&quot;Répartition par formule&quot;}),i.jsx(iy,{width:&quot;100%&quot;,height:220,children:i.jsxs(E6,{data:o,children:[i.jsx(Dm,{strokeDasharray:&quot;3 3&quot;}),i.jsx(Lm,{dataKey:&quot;name&quot;,tick:{fontSize:11}}),i.jsx(Fm,{tick:{fontSize:11}}),i.jsx(_y,{}),i.jsx(Tm,{}),i.jsx(v1,{dataKey:&quot;count&quot;,fill:&quot;#1F6F8B&quot;,name:&quot;Nombre&quot;})]})})]}):null]})}const M6=[&quot;total&quot;,&quot;draft&quot;,&quot;submitted&quot;,&quot;pending_payment&quot;,&quot;paid&quot;];function Dae({counts:e,loading:r,activeSingleStatus:t,onKpiClick:n}){return r?i.jsx(&quot;div&quot;,{className:&quot;flex min-w-0 flex-wrap gap-1.5&quot;,children:M6.map(o=&gt;i.jsx(&quot;div&quot;,{className:&quot;h-12 min-w-0 flex-[1_1_5rem] max-w-[9rem] animate-pulse rounded-lg bg-gray-200 sm:h-14 sm:flex-[1_1_5.5rem]&quot;,&quot;aria-hidden&quot;:!0},o))}):i.jsx(&quot;div&quot;,{className:&quot;flex min-w-0 flex-wrap gap-1.5&quot;,role:&quot;group&quot;,&quot;aria-label&quot;:&quot;Indicateurs par statut&quot;,children:M6.map(o=&gt;{const s=o===&quot;total&quot;,l=s?Object.values(e).reduce((a,d)=&gt;a+d,0):e[o]??0,u=s?&quot;Total&quot;:k2(o).label,c=s?t===null:t===o;return i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;n(o),className:`min-w-0 max-w-[9rem] flex-[1_1_5rem] rounded-lg border px-2 py-1.5 text-left transition-colors sm:max-w-[10rem] sm:flex-[1_1_5.5rem] sm:px-2.5 sm:py-2 ${c?&quot;border-brand-700 bg-brand-50 ring-1 ring-brand-700/20&quot;:&quot;border-gray-200 bg-white hover:bg-gray-50&quot;}`,children:[i.jsx(&quot;div&quot;,{className:&quot;line-clamp-2 text-[9px] font-medium uppercase leading-tight tracking-wide text-ink-500 sm:text-[10px]&quot;,children:u}),i.jsx(&quot;div&quot;,{className:&quot;text-base font-semibold tabular-nums sm:text-lg&quot;,children:l})]},o)})})}function _m(e){throw new Error(&#039;Could not dynamically require &quot;&#039;+e+&#039;&quot;. Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.&#039;)}var Fy={exports:{}};var P6;function Lae(){return P6||(P6=1,(function(e,r){(function(t){e.exports=t()})((function(){return(function t(n,o,s){function l(a,d){if(!o[a]){if(!n[a]){var f=typeof _m==&quot;function&quot;&amp;&amp;_m;if(!d&amp;&amp;f)return f(a,!0);if(u)return u(a,!0);var h=new Error(&quot;Cannot find module &#039;&quot;+a+&quot;&#039;&quot;);throw h.code=&quot;MODULE_NOT_FOUND&quot;,h}var m=o[a]={exports:{}};n[a][0].call(m.exports,(function(p){return l(n[a][1][p]||p)}),m,m.exports,t,n,o,s)}return o[a].exports}for(var u=typeof _m==&quot;function&quot;&amp;&amp;_m,c=0;c&lt;s.length;c++)l(s[c]);return l})({1:[function(t,n,o){const s=t(&quot;fs&quot;),l=t(&quot;fast-csv&quot;),u=t(&quot;dayjs/plugin/customParseFormat&quot;),c=t(&quot;dayjs/plugin/utc&quot;),a=t(&quot;dayjs&quot;).extend(u).extend(c),d=t(&quot;../utils/stream-buf&quot;),{fs:{exists:f}}=t(&quot;../utils/utils&quot;),h={true:!0,false:!1,&quot;#N/A&quot;:{error:&quot;#N/A&quot;},&quot;#REF!&quot;:{error:&quot;#REF!&quot;},&quot;#NAME?&quot;:{error:&quot;#NAME?&quot;},&quot;#DIV/0!&quot;:{error:&quot;#DIV/0!&quot;},&quot;#NULL!&quot;:{error:&quot;#NULL!&quot;},&quot;#VALUE!&quot;:{error:&quot;#VALUE!&quot;},&quot;#NUM!&quot;:{error:&quot;#NUM!&quot;}};n.exports=class{constructor(m){this.workbook=m,this.worksheet=null}async readFile(m,p){if(p=p||{},!await f(m))throw new Error(&quot;File not found: &quot;+m);const x=s.createReadStream(m),g=await this.read(x,p);return x.close(),g}read(m,p){return p=p||{},new Promise((x,g)=&gt;{const y=this.workbook.addWorksheet(p.sheetName),v=p.dateFormats||[&quot;YYYY-MM-DD[T]HH:mm:ssZ&quot;,&quot;YYYY-MM-DD[T]HH:mm:ss&quot;,&quot;MM-DD-YYYY&quot;,&quot;YYYY-MM-DD&quot;],_=p.map||function(A){if(A===&quot;&quot;)return null;const I=Number(A);if(!Number.isNaN(I)&amp;&amp;I!==1/0)return I;const V=v.reduce((q,H)=&gt;{if(q)return q;const B=a(A,H,!0);return B.isValid()?B:null},null);if(V)return new Date(V.valueOf());const F=h[A];return F!==void 0?F:A},S=l.parse(p.parserOptions).on(&quot;data&quot;,A=&gt;{y.addRow(A.map(_))}).on(&quot;end&quot;,()=&gt;{S.emit(&quot;worksheet&quot;,y)});S.on(&quot;worksheet&quot;,x).on(&quot;error&quot;,g),m.pipe(S)})}createInputStream(){throw new Error(&quot;`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md&quot;)}write(m,p){return new Promise((x,g)=&gt;{p=p||{};const y=this.workbook.getWorksheet(p.sheetName||p.sheetId),v=l.format(p.formatterOptions);m.on(&quot;finish&quot;,()=&gt;{x()}),v.on(&quot;error&quot;,g),v.pipe(m);const{dateFormat:_,dateUTC:S}=p,A=p.map||(F=&gt;{if(F){if(F.text||F.hyperlink)return F.hyperlink||F.text||&quot;&quot;;if(F.formula||F.result)return F.result||&quot;&quot;;if(F instanceof Date)return _?S?a.utc(F).format(_):a(F).format(_):S?a.utc(F).format():a(F).format();if(F.error)return F.error;if(typeof F==&quot;object&quot;)return JSON.stringify(F)}return F}),I=p.includeEmptyRows===void 0||p.includeEmptyRows;let V=1;y&amp;&amp;y.eachRow((F,q)=&gt;{if(I)for(;V++&lt;q-1;)v.write([]);const{values:H}=F;H.shift(),v.write(H.map(A)),V=q}),v.end()})}writeFile(m,p){const x={encoding:(p=p||{}).encoding||&quot;utf8&quot;},g=s.createWriteStream(m,x);return this.write(g,p)}async writeBuffer(m){const p=new d;return await this.write(p,m),p.read()}}},{&quot;../utils/stream-buf&quot;:24,&quot;../utils/utils&quot;:27,dayjs:391,&quot;dayjs/plugin/customParseFormat&quot;:392,&quot;dayjs/plugin/utc&quot;:393,&quot;fast-csv&quot;:424,fs:216}],2:[function(t,n,o){const s=t(&quot;../utils/col-cache&quot;);class l{constructor(c,a){let d=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=c,a)if(typeof a==&quot;string&quot;){const f=s.decodeAddress(a);this.nativeCol=f.col+d,this.nativeColOff=0,this.nativeRow=f.row+d,this.nativeRowOff=0}else a.nativeCol!==void 0?(this.nativeCol=a.nativeCol||0,this.nativeColOff=a.nativeColOff||0,this.nativeRow=a.nativeRow||0,this.nativeRowOff=a.nativeRowOff||0):a.col!==void 0?(this.col=a.col+d,this.row=a.row+d):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(c){return c instanceof l||c==null?c:new l(c)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(c){this.nativeCol=Math.floor(c),this.nativeColOff=Math.floor((c-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(c){this.nativeRow=Math.floor(c),this.nativeRowOff=Math.floor((c-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&amp;&amp;this.worksheet.getColumn(this.nativeCol+1)&amp;&amp;this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&amp;&amp;this.worksheet.getRow(this.nativeRow+1)&amp;&amp;this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(c){this.nativeCol=c.nativeCol,this.nativeColOff=c.nativeColOff,this.nativeRow=c.nativeRow,this.nativeRowOff=c.nativeRowOff}}n.exports=l},{&quot;../utils/col-cache&quot;:19}],3:[function(t,n,o){const s=t(&quot;../utils/col-cache&quot;),l=t(&quot;../utils/under-dash&quot;),u=t(&quot;./enums&quot;),{slideFormula:c}=t(&quot;../utils/shared-formula&quot;),a=t(&quot;./note&quot;);class d{constructor(m,p,x){if(!m||!p)throw new Error(&quot;A Cell needs a Row&quot;);this._row=m,this._column=p,s.validateAddress(x),this._address=x,this._value=f.create(d.Types.Null,this),this.style=this._mergeStyle(m.style,p.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(m){this.style.numFmt=m}get font(){return this.style.font}set font(m){this.style.font=m}get alignment(){return this.style.alignment}set alignment(m){this.style.alignment=m}get border(){return this.style.border}set border(m){this.style.border=m}get fill(){return this.style.fill}set fill(m){this.style.fill=m}get protection(){return this.style.protection}set protection(m){this.style.protection=m}_mergeStyle(m,p,x){const g=m&amp;&amp;m.numFmt||p&amp;&amp;p.numFmt;g&amp;&amp;(x.numFmt=g);const y=m&amp;&amp;m.font||p&amp;&amp;p.font;y&amp;&amp;(x.font=y);const v=m&amp;&amp;m.alignment||p&amp;&amp;p.alignment;v&amp;&amp;(x.alignment=v);const _=m&amp;&amp;m.border||p&amp;&amp;p.border;_&amp;&amp;(x.border=_);const S=m&amp;&amp;m.fill||p&amp;&amp;p.fill;S&amp;&amp;(x.fill=S);const A=m&amp;&amp;m.protection||p&amp;&amp;p.protection;return A&amp;&amp;(x.protection=A),x}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount&gt;0||this.type===d.Types.Merge}merge(m,p){this._value.release(),this._value=f.create(d.Types.Merge,this,m),p||(this.style=m.style)}unmerge(){this.type===d.Types.Merge&amp;&amp;(this._value.release(),this._value=f.create(d.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(m){return this._value.type===d.Types.Merge&amp;&amp;this._value.isMergedTo(m)}get master(){return this.type===d.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===d.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(m){this.type!==d.Types.Merge?(this._value.release(),this._value=f.create(f.getType(m),this,m)):this._value.master.value=m}get note(){return this._comment&amp;&amp;this._comment.note}set note(m){this._comment=new a(m)}get text(){return this._value.toString()}get html(){return l.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(m){this.type===d.Types.String&amp;&amp;(this._value=f.create(d.Types.Hyperlink,this,{text:this._value.value,hyperlink:m}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:m}=this._row;return{sheetName:m.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(m){this.names=[m]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(m){const{definedNames:p}=this.workbook;p.removeAllNames(this.fullAddress),m.forEach(x=&gt;{p.addEx(this.fullAddress,x)})}addName(m){this.workbook.definedNames.addEx(this.fullAddress,m)}removeName(m){this.workbook.definedNames.removeEx(this.fullAddress,m)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(m){this._dataValidations.add(this.address,m)}get model(){const{model:m}=this._value;return m.style=this.style,this._comment&amp;&amp;(m.comment=this._comment.model),m}set model(m){this._value.release(),this._value=f.create(m.type,this),this._value.model=m,m.comment&amp;&amp;m.comment.type===&quot;note&quot;&amp;&amp;(this._comment=a.fromModel(m.comment)),m.style?this.style=m.style:this.style={}}}d.Types=u.ValueType;const f={getType:h=&gt;h==null?d.Types.Null:h instanceof String||typeof h==&quot;string&quot;?d.Types.String:typeof h==&quot;number&quot;?d.Types.Number:typeof h==&quot;boolean&quot;?d.Types.Boolean:h instanceof Date?d.Types.Date:h.text&amp;&amp;h.hyperlink?d.Types.Hyperlink:h.formula||h.sharedFormula?d.Types.Formula:h.richText?d.Types.RichText:h.sharedString?d.Types.SharedString:h.error?d.Types.Error:d.Types.JSON,types:[{t:d.Types.Null,f:class{constructor(h){this.model={address:h.address,type:d.Types.Null}}get value(){return null}set value(h){}get type(){return d.Types.Null}get effectiveType(){return d.Types.Null}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return&quot;&quot;}release(){}toString(){return&quot;&quot;}}},{t:d.Types.Number,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.Number,value:m}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return d.Types.Number}get effectiveType(){return d.Types.Number}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:d.Types.String,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.String,value:m}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return d.Types.String}get effectiveType(){return d.Types.String}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return`&quot;${this.model.value.replace(/&quot;/g,&#039;&quot;&quot;&#039;)}&quot;`}release(){}toString(){return this.model.value}}},{t:d.Types.Date,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.Date,value:m}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return d.Types.Date}get effectiveType(){return d.Types.Date}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:d.Types.Hyperlink,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.Hyperlink,text:m?m.text:void 0,hyperlink:m?m.hyperlink:void 0},m&amp;&amp;m.tooltip&amp;&amp;(this.model.tooltip=m.tooltip)}get value(){const h={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&amp;&amp;(h.tooltip=this.model.tooltip),h}set value(h){this.model={text:h.text,hyperlink:h.hyperlink},h.tooltip&amp;&amp;(this.model.tooltip=h.tooltip)}get text(){return this.model.text}set text(h){this.model.text=h}get hyperlink(){return this.model.hyperlink}set hyperlink(h){this.model.hyperlink=h}get type(){return d.Types.Hyperlink}get effectiveType(){return d.Types.Hyperlink}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:d.Types.Formula,f:class{constructor(h,m){this.cell=h,this.model={address:h.address,type:d.Types.Formula,shareType:m?m.shareType:void 0,ref:m?m.ref:void 0,formula:m?m.formula:void 0,sharedFormula:m?m.sharedFormula:void 0,result:m?m.result:void 0}}_copyModel(h){const m={},p=x=&gt;{const g=h[x];g&amp;&amp;(m[x]=g)};return p(&quot;formula&quot;),p(&quot;result&quot;),p(&quot;ref&quot;),p(&quot;shareType&quot;),p(&quot;sharedFormula&quot;),m}get value(){return this._copyModel(this.model)}set value(h){this.model=this._copyModel(h)}validate(h){switch(f.getType(h)){case d.Types.Null:case d.Types.String:case d.Types.Number:case d.Types.Date:break;case d.Types.Hyperlink:case d.Types.Formula:default:throw new Error(&quot;Cannot process that type of result value&quot;)}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,&quot;&quot;).match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(h){this.model.formula=h}get formulaType(){return this.model.formula?u.FormulaType.Master:this.model.sharedFormula?u.FormulaType.Shared:u.FormulaType.None}get result(){return this.model.result}set result(h){this.model.result=h}get type(){return d.Types.Formula}get effectiveType(){const h=this.model.result;return h==null?u.ValueType.Null:h instanceof String||typeof h==&quot;string&quot;?u.ValueType.String:typeof h==&quot;number&quot;?u.ValueType.Number:h instanceof Date?u.ValueType.Date:h.text&amp;&amp;h.hyperlink?u.ValueType.Hyperlink:h.formula?u.ValueType.Formula:u.ValueType.Null}get address(){return this.model.address}set address(h){this.model.address=h}_getTranslatedFormula(){if(!this._translatedFormula&amp;&amp;this.model.sharedFormula){const{worksheet:h}=this.cell,m=h.findCell(this.model.sharedFormula);this._translatedFormula=m&amp;&amp;c(m.formula,m.address,this.model.address)}return this._translatedFormula}toCsvString(){return&quot;&quot;+(this.model.result||&quot;&quot;)}release(){}toString(){return this.model.result?this.model.result.toString():&quot;&quot;}}},{t:d.Types.Merge,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.Merge,master:m?m.address:void 0},this._master=m,m&amp;&amp;m.addMergeRef()}get value(){return this._master.value}set value(h){h instanceof d?(this._master&amp;&amp;this._master.releaseMergeRef(),h.addMergeRef(),this._master=h):this._master.value=h}isMergedTo(h){return h===this._master}get master(){return this._master}get type(){return d.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return&quot;&quot;}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:d.Types.JSON,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.String,value:JSON.stringify(m),rawValue:m}}get value(){return this.model.rawValue}set value(h){this.model.rawValue=h,this.model.value=JSON.stringify(h)}get type(){return d.Types.String}get effectiveType(){return d.Types.String}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:d.Types.SharedString,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.SharedString,value:m}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return d.Types.SharedString}get effectiveType(){return d.Types.SharedString}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:d.Types.RichText,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.String,value:m}}get value(){return this.model.value}set value(h){this.model.value=h}toString(){return this.model.value.richText.map(h=&gt;h.text).join(&quot;&quot;)}get type(){return d.Types.RichText}get effectiveType(){return d.Types.RichText}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return`&quot;${this.text.replace(/&quot;/g,&#039;&quot;&quot;&#039;)}&quot;`}release(){}}},{t:d.Types.Boolean,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.Boolean,value:m}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return d.Types.Boolean}get effectiveType(){return d.Types.Boolean}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:d.Types.Error,f:class{constructor(h,m){this.model={address:h.address,type:d.Types.Error,value:m}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return d.Types.Error}get effectiveType(){return d.Types.Error}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((h,m)=&gt;(h[m.t]=m.f,h),[]),create(h,m,p){const x=this.types[h];if(!x)throw new Error(&quot;Could not create Value of type &quot;+h);return new x(m,p)}};n.exports=d},{&quot;../utils/col-cache&quot;:19,&quot;../utils/shared-formula&quot;:23,&quot;../utils/under-dash&quot;:26,&quot;./enums&quot;:7,&quot;./note&quot;:9}],4:[function(t,n,o){const s=t(&quot;../utils/under-dash&quot;),l=t(&quot;./enums&quot;),u=t(&quot;../utils/col-cache&quot;);class c{constructor(d,f,h){this._worksheet=d,this._number=f,h!==!1&amp;&amp;(this.defn=h)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return u.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&amp;&amp;this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(d){d?(this.key=d.key,this.width=d.width!==void 0?d.width:9,this.outlineLevel=d.outlineLevel,d.style?this.style=d.style:this.style={},this.header=d.header,this._hidden=!!d.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&amp;&amp;this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(d){d!==void 0?(this._header=d,this.headers.forEach((f,h)=&gt;{this._worksheet.getCell(h+1,this.number).value=f})):this._header=void 0}get key(){return this._key}set key(d){(this._key&amp;&amp;this._worksheet.getColumnKey(this._key))===this&amp;&amp;this._worksheet.deleteColumnKey(this._key),this._key=d,d&amp;&amp;this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(d){this._hidden=d}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(d){this._outlineLevel=d}get collapsed(){return!!(this._outlineLevel&amp;&amp;this._outlineLevel&gt;=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(d){return this.width===d.width&amp;&amp;this.hidden===d.hidden&amp;&amp;this.outlineLevel===d.outlineLevel&amp;&amp;s.isEqual(this.style,d.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const d=this.style;return!d||!(d.font||d.numFmt||d.alignment||d.border||d.fill||d.protection)}get headerCount(){return this.headers.length}eachCell(d,f){const h=this.number;f||(f=d,d=null),this._worksheet.eachRow(d,(m,p)=&gt;{f(m.getCell(h),p)})}get values(){const d=[];return this.eachCell((f,h)=&gt;{f&amp;&amp;f.type!==l.ValueType.Null&amp;&amp;(d[h]=f.value)}),d}set values(d){if(!d)return;const f=this.number;let h=0;d.hasOwnProperty(&quot;0&quot;)&amp;&amp;(h=1),d.forEach((m,p)=&gt;{this._worksheet.getCell(p+h,f).value=m})}_applyStyle(d,f){return this.style[d]=f,this.eachCell(h=&gt;{h[d]=f}),f}get numFmt(){return this.style.numFmt}set numFmt(d){this._applyStyle(&quot;numFmt&quot;,d)}get font(){return this.style.font}set font(d){this._applyStyle(&quot;font&quot;,d)}get alignment(){return this.style.alignment}set alignment(d){this._applyStyle(&quot;alignment&quot;,d)}get protection(){return this.style.protection}set protection(d){this._applyStyle(&quot;protection&quot;,d)}get border(){return this.style.border}set border(d){this._applyStyle(&quot;border&quot;,d)}get fill(){return this.style.fill}set fill(d){this._applyStyle(&quot;fill&quot;,d)}static toModel(d){const f=[];let h=null;return d&amp;&amp;d.forEach((m,p)=&gt;{m.isDefault?h&amp;&amp;(h=null):h&amp;&amp;m.equivalentTo(h)?h.max=p+1:(h={min:p+1,max:p+1,width:m.width!==void 0?m.width:9,style:m.style,isCustomWidth:m.isCustomWidth,hidden:m.hidden,outlineLevel:m.outlineLevel,collapsed:m.collapsed},f.push(h))}),f.length?f:void 0}static fromModel(d,f){const h=[];let m=1,p=0;for(f=(f=f||[]).sort((function(x,g){return x.min-g.min}));p&lt;f.length;){const x=f[p++];for(;m&lt;x.min;)h.push(new c(d,m++));for(;m&lt;=x.max;)h.push(new c(d,m++,x))}return h.length?h:null}}n.exports=c},{&quot;../utils/col-cache&quot;:19,&quot;../utils/under-dash&quot;:26,&quot;./enums&quot;:7}],5:[function(t,n,o){n.exports=class{constructor(s){this.model=s||{}}add(s,l){return this.model[s]=l}find(s){return this.model[s]}remove(s){this.model[s]=void 0}}},{}],6:[function(t,n,o){const s=t(&quot;../utils/under-dash&quot;),l=t(&quot;../utils/col-cache&quot;),u=t(&quot;../utils/cell-matrix&quot;),c=t(&quot;./range&quot;),a=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;n.exports=class{constructor(){this.matrixMap={}}getMatrix(d){return this.matrixMap[d]||(this.matrixMap[d]=new u)}add(d,f){const h=l.decodeEx(d);this.addEx(h,f)}addEx(d,f){const h=this.getMatrix(f);if(d.top)for(let m=d.left;m&lt;=d.right;m++)for(let p=d.top;p&lt;=d.bottom;p++){const x={sheetName:d.sheetName,address:l.n2l(m)+p,row:p,col:m};h.addCellEx(x)}else h.addCellEx(d)}remove(d,f){const h=l.decodeEx(d);this.removeEx(h,f)}removeEx(d,f){this.getMatrix(f).removeCellEx(d)}removeAllNames(d){s.each(this.matrixMap,f=&gt;{f.removeCellEx(d)})}forEach(d){s.each(this.matrixMap,(f,h)=&gt;{f.forEach(m=&gt;{d(h,m)})})}getNames(d){return this.getNamesEx(l.decodeEx(d))}getNamesEx(d){return s.map(this.matrixMap,(f,h)=&gt;f.findCellEx(d)&amp;&amp;h).filter(Boolean)}_explore(d,f){f.mark=!1;const{sheetName:h}=f,m=new c(f.row,f.col,f.row,f.col,h);let p,x;function g(v,_){const S=d.findCellAt(h,v,f.col);return!(!S||!S.mark)&amp;&amp;(m[_]=v,S.mark=!1,!0)}for(x=f.row-1;g(x,&quot;top&quot;);x--);for(x=f.row+1;g(x,&quot;bottom&quot;);x++);function y(v,_){const S=[];for(x=m.top;x&lt;=m.bottom;x++){const A=d.findCellAt(h,x,v);if(!A||!A.mark)return!1;S.push(A)}m[_]=v;for(let A=0;A&lt;S.length;A++)S[A].mark=!1;return!0}for(p=f.col-1;y(p,&quot;left&quot;);p--);for(p=f.col+1;y(p,&quot;right&quot;);p++);return m}getRanges(d,f){return(f=f||this.matrixMap[d])?(f.forEach(h=&gt;{h.mark=!0}),{name:d,ranges:f.map(h=&gt;h.mark&amp;&amp;this._explore(f,h)).filter(Boolean).map(h=&gt;h.$shortRange)}):{name:d,ranges:[]}}normaliseMatrix(d,f){d.forEachInSheet(f,(h,m,p)=&gt;{h&amp;&amp;(h.row===m&amp;&amp;h.col===p||(h.row=m,h.col=p,h.address=l.n2l(p)+m))})}spliceRows(d,f,h,m){s.each(this.matrixMap,p=&gt;{p.spliceRows(d,f,h,m),this.normaliseMatrix(p,d)})}spliceColumns(d,f,h,m){s.each(this.matrixMap,p=&gt;{p.spliceColumns(d,f,h,m),this.normaliseMatrix(p,d)})}get model(){return s.map(this.matrixMap,(d,f)=&gt;this.getRanges(f,d)).filter(d=&gt;d.ranges.length)}set model(d){const f=this.matrixMap={};d.forEach(h=&gt;{const m=f[h.name]=new u;h.ranges.forEach(p=&gt;{a.test(p.split(&quot;!&quot;).pop()||&quot;&quot;)&amp;&amp;m.addCell(p)})})}}},{&quot;../utils/cell-matrix&quot;:18,&quot;../utils/col-cache&quot;:19,&quot;../utils/under-dash&quot;:26,&quot;./range&quot;:10}],7:[function(t,n,o){n.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:&quot;#N/A&quot;,Ref:&quot;#REF!&quot;,Name:&quot;#NAME?&quot;,DivZero:&quot;#DIV/0!&quot;,Null:&quot;#NULL!&quot;,Value:&quot;#VALUE!&quot;,Num:&quot;#NUM!&quot;}}},{}],8:[function(t,n,o){const s=t(&quot;../utils/col-cache&quot;),l=t(&quot;./anchor&quot;);n.exports=class{constructor(u,c){this.worksheet=u,this.model=c}get model(){switch(this.type){case&quot;background&quot;:return{type:this.type,imageId:this.imageId};case&quot;image&quot;:return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&amp;&amp;this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error(&quot;Invalid Image Type&quot;)}}set model(u){let{type:c,imageId:a,range:d,hyperlinks:f}=u;if(this.type=c,this.imageId=a,c===&quot;image&quot;)if(typeof d==&quot;string&quot;){const h=s.decode(d);this.range={tl:new l(this.worksheet,{col:h.left,row:h.top},-1),br:new l(this.worksheet,{col:h.right,row:h.bottom},0),editAs:&quot;oneCell&quot;}}else this.range={tl:new l(this.worksheet,d.tl,0),br:d.br&amp;&amp;new l(this.worksheet,d.br,0),ext:d.ext,editAs:d.editAs,hyperlinks:f||d.hyperlinks}}}},{&quot;../utils/col-cache&quot;:19,&quot;./anchor&quot;:2}],9:[function(t,n,o){const s=t(&quot;../utils/under-dash&quot;);class l{constructor(c){this.note=c}get model(){let c=null;return typeof this.note===&quot;string&quot;?c={type:&quot;note&quot;,note:{texts:[{text:this.note}]}}:c={type:&quot;note&quot;,note:this.note},s.deepMerge({},l.DEFAULT_CONFIGS,c)}set model(c){const{note:a}=c,{texts:d}=a;d.length===1&amp;&amp;Object.keys(d[0]).length===1?this.note=d[0].text:this.note=a}static fromModel(c){const a=new l;return a.model=c,a}}l.DEFAULT_CONFIGS={note:{margins:{insetmode:&quot;auto&quot;,inset:[.13,.13,.25,.25]},protection:{locked:&quot;True&quot;,lockText:&quot;True&quot;},editAs:&quot;absolute&quot;}},n.exports=l},{&quot;../utils/under-dash&quot;:26}],10:[function(t,n,o){const s=t(&quot;../utils/col-cache&quot;);class l{constructor(){this.decode(arguments)}setTLBR(c,a,d,f,h){if(arguments.length&lt;4){const m=s.decodeAddress(c),p=s.decodeAddress(a);this.model={top:Math.min(m.row,p.row),left:Math.min(m.col,p.col),bottom:Math.max(m.row,p.row),right:Math.max(m.col,p.col),sheetName:d},this.setTLBR(m.row,m.col,p.row,p.col,h)}else this.model={top:Math.min(c,d),left:Math.min(a,f),bottom:Math.max(c,d),right:Math.max(a,f),sheetName:h}}decode(c){switch(c.length){case 5:this.setTLBR(c[0],c[1],c[2],c[3],c[4]);break;case 4:this.setTLBR(c[0],c[1],c[2],c[3]);break;case 3:this.setTLBR(c[0],c[1],c[2]);break;case 2:this.setTLBR(c[0],c[1]);break;case 1:{const a=c[0];if(a instanceof l)this.model={top:a.model.top,left:a.model.left,bottom:a.model.bottom,right:a.model.right,sheetName:a.sheetName};else if(a instanceof Array)this.decode(a);else if(a.top&amp;&amp;a.left&amp;&amp;a.bottom&amp;&amp;a.right)this.model={top:a.top,left:a.left,bottom:a.bottom,right:a.right,sheetName:a.sheetName};else{const d=s.decodeEx(a);d.top?this.model={top:d.top,left:d.left,bottom:d.bottom,right:d.right,sheetName:d.sheetName}:this.model={top:d.row,left:d.col,bottom:d.row,right:d.col,sheetName:d.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error(&quot;Invalid number of arguments to _getDimensions() - &quot;+c.length)}}get top(){return this.model.top||1}set top(c){this.model.top=c}get left(){return this.model.left||1}set left(c){this.model.left=c}get bottom(){return this.model.bottom||1}set bottom(c){this.model.bottom=c}get right(){return this.model.right||1}set right(c){this.model.right=c}get sheetName(){return this.model.sheetName}set sheetName(c){this.model.sheetName=c}get _serialisedSheetName(){const{sheetName:c}=this.model;return c?/^[a-zA-Z0-9]*$/.test(c)?c+&quot;!&quot;:`&#039;${c}&#039;!`:&quot;&quot;}expand(c,a,d,f){(!this.model.top||c&lt;this.top)&amp;&amp;(this.top=c),(!this.model.left||a&lt;this.left)&amp;&amp;(this.left=a),(!this.model.bottom||d&gt;this.bottom)&amp;&amp;(this.bottom=d),(!this.model.right||f&gt;this.right)&amp;&amp;(this.right=f)}expandRow(c){if(c){const{dimensions:a,number:d}=c;a&amp;&amp;this.expand(d,a.min,d,a.max)}}expandToAddress(c){const a=s.decodeEx(c);this.expand(a.row,a.col,a.row,a.col)}get tl(){return s.n2l(this.left)+this.top}get $t$l(){return`$${s.n2l(this.left)}$${this.top}`}get br(){return s.n2l(this.right)+this.bottom}get $b$r(){return`$${s.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count&gt;1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count&gt;1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(c){return(!c.sheetName||!this.sheetName||c.sheetName===this.sheetName)&amp;&amp;!(c.bottom&lt;this.top)&amp;&amp;!(c.top&gt;this.bottom)&amp;&amp;!(c.right&lt;this.left)&amp;&amp;!(c.left&gt;this.right)}contains(c){const a=s.decodeEx(c);return this.containsEx(a)}containsEx(c){return(!c.sheetName||!this.sheetName||c.sheetName===this.sheetName)&amp;&amp;c.row&gt;=this.top&amp;&amp;c.row&lt;=this.bottom&amp;&amp;c.col&gt;=this.left&amp;&amp;c.col&lt;=this.right}forEachAddress(c){for(let a=this.left;a&lt;=this.right;a++)for(let d=this.top;d&lt;=this.bottom;d++)c(s.encodeAddress(d,a),d,a)}}n.exports=l},{&quot;../utils/col-cache&quot;:19}],11:[function(t,n,o){const s=t(&quot;../utils/under-dash&quot;),l=t(&quot;./enums&quot;),u=t(&quot;../utils/col-cache&quot;),c=t(&quot;./cell&quot;);n.exports=class{constructor(a,d){this._worksheet=a,this._number=d,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(a){return this._cells[a-1]}getCellEx(a){let d=this._cells[a.col-1];if(!d){const f=this._worksheet.getColumn(a.col);d=new c(this,f,a.address),this._cells[a.col-1]=d}return d}getCell(a){if(typeof a==&quot;string&quot;){const d=this._worksheet.getColumnKey(a);a=d?d.number:u.l2n(a)}return this._cells[a-1]||this.getCellEx({address:u.encodeAddress(this._number,a),row:this._number,col:a})}splice(a,d){const f=a+d;for(var h=arguments.length,m=new Array(h&gt;2?h-2:0),p=2;p&lt;h;p++)m[p-2]=arguments[p];const x=m.length-d,g=this._cells.length;let y,v,_;if(x&lt;0)for(y=a+m.length;y&lt;=g;y++)_=this._cells[y-1],v=this._cells[y-x-1],v?(_=this.getCell(y),_.value=v.value,_.style=v.style,_._comment=v._comment):_&amp;&amp;(_.value=null,_.style={},_._comment=void 0);else if(x&gt;0)for(y=g;y&gt;=f;y--)v=this._cells[y-1],v?(_=this.getCell(y+x),_.value=v.value,_.style=v.style,_._comment=v._comment):this._cells[y+x-1]=void 0;for(y=0;y&lt;m.length;y++)_=this.getCell(a+y),_.value=m[y],_.style={},_._comment=void 0}eachCell(a,d){if(d||(d=a,a=null),a&amp;&amp;a.includeEmpty){const f=this._cells.length;for(let h=1;h&lt;=f;h++)d(this.getCell(h),h)}else this._cells.forEach((f,h)=&gt;{f&amp;&amp;f.type!==l.ValueType.Null&amp;&amp;d(f,h+1)})}addPageBreak(a,d){const f=this._worksheet,h=Math.max(0,a-1)||0,m=Math.max(0,d-1)||16838,p={id:this._number,max:m,man:1};h&amp;&amp;(p.min=h),f.rowBreaks.push(p)}get values(){const a=[];return this._cells.forEach(d=&gt;{d&amp;&amp;d.type!==l.ValueType.Null&amp;&amp;(a[d.col]=d.value)}),a}set values(a){if(this._cells=[],a)if(a instanceof Array){let d=0;a.hasOwnProperty(&quot;0&quot;)&amp;&amp;(d=1),a.forEach((f,h)=&gt;{f!==void 0&amp;&amp;(this.getCellEx({address:u.encodeAddress(this._number,h+d),row:this._number,col:h+d}).value=f)})}else this._worksheet.eachColumnKey((d,f)=&gt;{a[f]!==void 0&amp;&amp;(this.getCellEx({address:u.encodeAddress(this._number,d.number),row:this._number,col:d.number}).value=a[f])})}get hasValues(){return s.some(this._cells,a=&gt;a&amp;&amp;a.type!==l.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let a=0;return this.eachCell(()=&gt;{a++}),a}get dimensions(){let a=0,d=0;return this._cells.forEach(f=&gt;{f&amp;&amp;f.type!==l.ValueType.Null&amp;&amp;((!a||a&gt;f.col)&amp;&amp;(a=f.col),d&lt;f.col&amp;&amp;(d=f.col))}),a&gt;0?{min:a,max:d}:null}_applyStyle(a,d){return this.style[a]=d,this._cells.forEach(f=&gt;{f&amp;&amp;(f[a]=d)}),d}get numFmt(){return this.style.numFmt}set numFmt(a){this._applyStyle(&quot;numFmt&quot;,a)}get font(){return this.style.font}set font(a){this._applyStyle(&quot;font&quot;,a)}get alignment(){return this.style.alignment}set alignment(a){this._applyStyle(&quot;alignment&quot;,a)}get protection(){return this.style.protection}set protection(a){this._applyStyle(&quot;protection&quot;,a)}get border(){return this.style.border}set border(a){this._applyStyle(&quot;border&quot;,a)}get fill(){return this.style.fill}set fill(a){this._applyStyle(&quot;fill&quot;,a)}get hidden(){return!!this._hidden}set hidden(a){this._hidden=a}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(a){this._outlineLevel=a}get collapsed(){return!!(this._outlineLevel&amp;&amp;this._outlineLevel&gt;=this._worksheet.properties.outlineLevelRow)}get model(){const a=[];let d=0,f=0;return this._cells.forEach(h=&gt;{if(h){const m=h.model;m&amp;&amp;((!d||d&gt;h.col)&amp;&amp;(d=h.col),f&lt;h.col&amp;&amp;(f=h.col),a.push(m))}}),this.height||a.length?{cells:a,number:this.number,min:d,max:f,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(a){if(a.number!==this._number)throw new Error(&quot;Invalid row number in model&quot;);let d;this._cells=[],a.cells.forEach(f=&gt;{switch(f.type){case c.Types.Merge:break;default:{let h;if(f.address)h=u.decodeAddress(f.address);else if(d){const{row:m}=d,p=d.col+1;h={row:m,col:p,address:u.encodeAddress(m,p),$col$row:`$${u.n2l(p)}$${m}`}}d=h,this.getCellEx(h).model=f;break}}}),a.height?this.height=a.height:delete this.height,this.hidden=a.hidden,this.outlineLevel=a.outlineLevel||0,this.style=a.style&amp;&amp;JSON.parse(JSON.stringify(a.style))||{}}}},{&quot;../utils/col-cache&quot;:19,&quot;../utils/under-dash&quot;:26,&quot;./cell&quot;:3,&quot;./enums&quot;:7}],12:[function(t,n,o){const s=t(&quot;../utils/col-cache&quot;);class l{constructor(c,a,d){this.table=c,this.column=a,this.index=d}_set(c,a){this.table.cacheState(),this.column[c]=a}get name(){return this.column.name}set name(c){this._set(&quot;name&quot;,c)}get filterButton(){return this.column.filterButton}set filterButton(c){this.column.filterButton=c}get style(){return this.column.style}set style(c){this.column.style=c}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(c){this._set(&quot;totalsRowLabel&quot;,c)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(c){this._set(&quot;totalsRowFunction&quot;,c)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(c){this._set(&quot;totalsRowResult&quot;,c)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(c){this._set(&quot;totalsRowFormula&quot;,c)}}n.exports=class{constructor(u,c){this.worksheet=u,c&amp;&amp;(this.table=c,this.validate(),this.store())}getFormula(u){switch(u.totalsRowFunction){case&quot;none&quot;:return null;case&quot;average&quot;:return`SUBTOTAL(101,${this.table.name}[${u.name}])`;case&quot;countNums&quot;:return`SUBTOTAL(102,${this.table.name}[${u.name}])`;case&quot;count&quot;:return`SUBTOTAL(103,${this.table.name}[${u.name}])`;case&quot;max&quot;:return`SUBTOTAL(104,${this.table.name}[${u.name}])`;case&quot;min&quot;:return`SUBTOTAL(105,${this.table.name}[${u.name}])`;case&quot;stdDev&quot;:return`SUBTOTAL(106,${this.table.name}[${u.name}])`;case&quot;var&quot;:return`SUBTOTAL(107,${this.table.name}[${u.name}])`;case&quot;sum&quot;:return`SUBTOTAL(109,${this.table.name}[${u.name}])`;case&quot;custom&quot;:return u.totalsRowFormula;default:throw new Error(&quot;Invalid Totals Row Function: &quot;+u.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:u}=this,c=(x,g,y)=&gt;{x[g]===void 0&amp;&amp;(x[g]=y)};c(u,&quot;headerRow&quot;,!0),c(u,&quot;totalsRow&quot;,!1),c(u,&quot;style&quot;,{}),c(u.style,&quot;theme&quot;,&quot;TableStyleMedium2&quot;),c(u.style,&quot;showFirstColumn&quot;,!1),c(u.style,&quot;showLastColumn&quot;,!1),c(u.style,&quot;showRowStripes&quot;,!1),c(u.style,&quot;showColumnStripes&quot;,!1);const a=(x,g)=&gt;{if(!x)throw new Error(g)};a(u.ref,&quot;Table must have ref&quot;),a(u.columns,&quot;Table must have column definitions&quot;),a(u.rows,&quot;Table must have row definitions&quot;),u.tl=s.decodeAddress(u.ref);const{row:d,col:f}=u.tl;a(d&gt;0,&quot;Table must be on valid row&quot;),a(f&gt;0,&quot;Table must be on valid col&quot;);const{width:h,filterHeight:m,tableHeight:p}=this;u.autoFilterRef=s.encode(d,f,d+m-1,f+h-1),u.tableRef=s.encode(d,f,d+p-1,f+h-1),u.columns.forEach((x,g)=&gt;{a(x.name,`Column ${g} must have a name`),g===0?c(x,&quot;totalsRowLabel&quot;,&quot;Total&quot;):(c(x,&quot;totalsRowFunction&quot;,&quot;none&quot;),x.totalsRowFormula=this.getFormula(x))})}store(){const u=(m,p)=&gt;{p&amp;&amp;Object.keys(p).forEach(x=&gt;{m[x]=p[x]})},{worksheet:c,table:a}=this,{row:d,col:f}=a.tl;let h=0;if(a.headerRow){const m=c.getRow(d+h++);a.columns.forEach((p,x)=&gt;{const{style:g,name:y}=p,v=m.getCell(f+x);v.value=y,u(v,g)})}if(a.rows.forEach(m=&gt;{const p=c.getRow(d+h++);m.forEach((x,g)=&gt;{const y=p.getCell(f+g);y.value=x,u(y,a.columns[g].style)})}),a.totalsRow){const m=c.getRow(d+h++);a.columns.forEach((p,x)=&gt;{const g=m.getCell(f+x);if(x===0)g.value=p.totalsRowLabel;else{const y=this.getFormula(p);g.value=y?{formula:p.totalsRowFormula,result:p.totalsRowResult}:null}u(g,p.style)})}}load(u){const{table:c}=this,{row:a,col:d}=c.tl;let f=0;if(c.headerRow){const h=u.getRow(a+f++);c.columns.forEach((m,p)=&gt;{h.getCell(d+p).value=m.name})}if(c.rows.forEach(h=&gt;{const m=u.getRow(a+f++);h.forEach((p,x)=&gt;{m.getCell(d+x).value=p})}),c.totalsRow){const h=u.getRow(a+f++);c.columns.forEach((m,p)=&gt;{const x=h.getCell(d+p);p===0?x.value=m.totalsRowLabel:this.getFormula(m)&amp;&amp;(x.value={formula:m.totalsRowFormula,result:m.totalsRowResult})})}}get model(){return this.table}set model(u){this.table=u}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const u=s.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let c=0;c&lt;this._cache.tableHeight;c++){const a=this.worksheet.getRow(u.row+c);for(let d=0;d&lt;this._cache.width;d++)a.getCell(u.col+d).value=null}else{for(let c=this.tableHeight;c&lt;this._cache.tableHeight;c++){const a=this.worksheet.getRow(u.row+c);for(let d=0;d&lt;this._cache.width;d++)a.getCell(u.col+d).value=null}for(let c=0;c&lt;this.tableHeight;c++){const a=this.worksheet.getRow(u.row+c);for(let d=this.width;d&lt;this._cache.width;d++)a.getCell(u.col+d).value=null}}this.store()}addRow(u,c){this.cacheState(),c===void 0?this.table.rows.push(u):this.table.rows.splice(c,0,u)}removeRows(u){let c=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(u,c)}getColumn(u){const c=this.table.columns[u];return new l(this,c,u)}addColumn(u,c,a){this.cacheState(),a===void 0?(this.table.columns.push(u),this.table.rows.forEach((d,f)=&gt;{d.push(c[f])})):(this.table.columns.splice(a,0,u),this.table.rows.forEach((d,f)=&gt;{d.splice(a,0,c[f])}))}removeColumns(u){let c=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(u,c),this.table.rows.forEach(a=&gt;{a.splice(u,c)})}_assign(u,c,a){this.cacheState(),u[c]=a}get ref(){return this.table.ref}set ref(u){this._assign(this.table,&quot;ref&quot;,u)}get name(){return this.table.name}set name(u){this.table.name=u}get displayName(){return this.table.displyName||this.table.name}set displayNamename(u){this.table.displayName=u}get headerRow(){return this.table.headerRow}set headerRow(u){this._assign(this.table,&quot;headerRow&quot;,u)}get totalsRow(){return this.table.totalsRow}set totalsRow(u){this._assign(this.table,&quot;totalsRow&quot;,u)}get theme(){return this.table.style.name}set theme(u){this.table.style.name=u}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(u){this.table.style.showFirstColumn=u}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(u){this.table.style.showLastColumn=u}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(u){this.table.style.showRowStripes=u}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(u){this.table.style.showColumnStripes=u}}},{&quot;../utils/col-cache&quot;:19}],13:[function(t,n,o){const s=t(&quot;./worksheet&quot;),l=t(&quot;./defined-names&quot;),u=t(&quot;../xlsx/xlsx&quot;),c=t(&quot;../csv/csv&quot;);n.exports=class{constructor(){this.category=&quot;&quot;,this.company=&quot;&quot;,this.created=new Date,this.description=&quot;&quot;,this.keywords=&quot;&quot;,this.manager=&quot;&quot;,this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject=&quot;&quot;,this.title=&quot;&quot;,this.views=[],this.media=[],this._definedNames=new l}get xlsx(){return this._xlsx||(this._xlsx=new u(this)),this._xlsx}get csv(){return this._csv||(this._csv=new c(this)),this._csv}get nextId(){for(let a=1;a&lt;this._worksheets.length;a++)if(!this._worksheets[a])return a;return this._worksheets.length||1}addWorksheet(a,d){const f=this.nextId;d&amp;&amp;(typeof d==&quot;string&quot;?(console.trace(&#039;tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: &quot;rbg value&quot; } }&#039;),d={properties:{tabColor:{argb:d}}}):(d.argb||d.theme||d.indexed)&amp;&amp;(console.trace(&quot;tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }&quot;),d={properties:{tabColor:d}}));const h=this._worksheets.reduce((x,g)=&gt;(g&amp;&amp;g.orderNo)&gt;x?g.orderNo:x,0),m=Object.assign({},d,{id:f,name:a,orderNo:h+1,workbook:this}),p=new s(m);return this._worksheets[f]=p,p}removeWorksheetEx(a){delete this._worksheets[a.id]}removeWorksheet(a){const d=this.getWorksheet(a);d&amp;&amp;d.destroy()}getWorksheet(a){return a===void 0?this._worksheets.find(Boolean):typeof a==&quot;number&quot;?this._worksheets[a]:typeof a==&quot;string&quot;?this._worksheets.find(d=&gt;d&amp;&amp;d.name===a):void 0}get worksheets(){return this._worksheets.slice(1).sort((a,d)=&gt;a.orderNo-d.orderNo).filter(Boolean)}eachSheet(a){this.worksheets.forEach(d=&gt;{a(d,d.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(a){const d=this.media.length;return this.media.push(Object.assign({},a,{type:&quot;image&quot;})),d}getImage(a){return this.media[a]}get model(){return{creator:this.creator||&quot;Unknown&quot;,lastModifiedBy:this.lastModifiedBy||&quot;Unknown&quot;,lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(a=&gt;a.model),sheets:this.worksheets.map(a=&gt;a.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(a){this.creator=a.creator,this.lastModifiedBy=a.lastModifiedBy,this.lastPrinted=a.lastPrinted,this.created=a.created,this.modified=a.modified,this.company=a.company,this.manager=a.manager,this.title=a.title,this.subject=a.subject,this.keywords=a.keywords,this.category=a.category,this.description=a.description,this.language=a.language,this.revision=a.revision,this.contentStatus=a.contentStatus,this.properties=a.properties,this.calcProperties=a.calcProperties,this._worksheets=[],a.worksheets.forEach(d=&gt;{const{id:f,name:h,state:m}=d,p=a.sheets&amp;&amp;a.sheets.findIndex(x=&gt;x.id===f);(this._worksheets[f]=new s({id:f,name:h,orderNo:p,state:m,workbook:this})).model=d}),this._definedNames.model=a.definedNames,this.views=a.views,this._themes=a.themes,this.media=a.media||[]}}},{&quot;../csv/csv&quot;:1,&quot;../xlsx/xlsx&quot;:144,&quot;./defined-names&quot;:6,&quot;./worksheet&quot;:14}],14:[function(t,n,o){const s=t(&quot;../utils/under-dash&quot;),l=t(&quot;../utils/col-cache&quot;),u=t(&quot;./range&quot;),c=t(&quot;./row&quot;),a=t(&quot;./column&quot;),d=t(&quot;./enums&quot;),f=t(&quot;./image&quot;),h=t(&quot;./table&quot;),m=t(&quot;./data-validations&quot;),p=t(&quot;../utils/encryptor&quot;),{copyStyle:x}=t(&quot;../utils/copy-style&quot;);n.exports=class{constructor(g){g=g||{},this._workbook=g.workbook,this.id=g.id,this.orderNo=g.orderNo,this.name=g.name,this.state=g.state||&quot;visible&quot;,this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},g.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:&quot;portrait&quot;,horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!g.pageSetup||!g.pageSetup.fitToWidth&amp;&amp;!g.pageSetup.fitToHeight||g.pageSetup.scale),pageOrder:&quot;downThenOver&quot;,blackAndWhite:!1,draft:!1,cellComments:&quot;None&quot;,errors:&quot;displayed&quot;,scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},g.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},g.headerFooter),this.dataValidations=new m,this.views=g.views||[],this.autoFilter=g.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(g){if(g===void 0&amp;&amp;(g=&quot;sheet&quot;+this.id),this._name!==g){if(typeof g!=&quot;string&quot;)throw new Error(&quot;The name has to be a string.&quot;);if(g===&quot;&quot;)throw new Error(&quot;The name can&#039;t be empty.&quot;);if(g===&quot;History&quot;)throw new Error(&#039;The name &quot;History&quot; is protected. Please use a different name.&#039;);if(/[*?:/\\[\]]/.test(g))throw new Error(`Worksheet name ${g} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^&#039;)|(&#039;$)/.test(g))throw new Error(&quot;The first or last character of worksheet name cannot be a single quotation mark: &quot;+g);if(g&amp;&amp;g.length&gt;31&amp;&amp;(console.warn(`Worksheet name ${g} exceeds 31 chars. This will be truncated`),g=g.substring(0,31)),this._workbook._worksheets.find(y=&gt;y&amp;&amp;y.name.toLowerCase()===g.toLowerCase()))throw new Error(&quot;Worksheet name already exists: &quot;+g);this._name=g}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const g=new u;return this._rows.forEach(y=&gt;{if(y){const v=y.dimensions;v&amp;&amp;g.expand(y.number,v.min,y.number,v.max)}}),g}get columns(){return this._columns}set columns(g){this._headerRowCount=g.reduce((_,S)=&gt;{const A=(S.header?1:S.headers&amp;&amp;S.headers.length)||0;return Math.max(_,A)},0);let y=1;const v=this._columns=[];g.forEach(_=&gt;{const S=new a(this,y++,!1);v.push(S),S.defn=_})}getColumnKey(g){return this._keys[g]}setColumnKey(g,y){this._keys[g]=y}deleteColumnKey(g){delete this._keys[g]}eachColumnKey(g){s.each(this._keys,g)}getColumn(g){if(typeof g==&quot;string&quot;){const y=this._keys[g];if(y)return y;g=l.l2n(g)}if(this._columns||(this._columns=[]),g&gt;this._columns.length){let y=this._columns.length+1;for(;y&lt;=g;)this._columns.push(new a(this,y++))}return this._columns[g-1]}spliceColumns(g,y){const v=this._rows.length;for(var _=arguments.length,S=new Array(_&gt;2?_-2:0),A=2;A&lt;_;A++)S[A-2]=arguments[A];if(S.length&gt;0)for(let q=0;q&lt;v;q++){const H=[g,y];S.forEach(K=&gt;{H.push(K[q]||null)});const B=this.getRow(q+1);B.splice.apply(B,H)}else this._rows.forEach(q=&gt;{q&amp;&amp;q.splice(g,y)});const I=S.length-y,V=g+y,F=this._columns.length;if(I&lt;0)for(let q=g+S.length;q&lt;=F;q++)this.getColumn(q).defn=this.getColumn(q-I).defn;else if(I&gt;0)for(let q=F;q&gt;=V;q--)this.getColumn(q+I).defn=this.getColumn(q).defn;for(let q=g;q&lt;g+S.length;q++)this.getColumn(q).defn=null;this.workbook.definedNames.spliceColumns(this.name,g,y,S.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let g=0;return this.eachRow(y=&gt;{g=Math.max(g,y.cellCount)}),g}get actualColumnCount(){const g=[];let y=0;return this.eachRow(v=&gt;{v.eachCell(_=&gt;{let{col:S}=_;g[S]||(g[S]=!0,y++)})}),y}_commitRow(){}get _lastRowNumber(){const g=this._rows;let y=g.length;for(;y&gt;0&amp;&amp;g[y-1]===void 0;)y--;return y}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(g){return this._rows[g-1]}findRows(g,y){return this._rows.slice(g-1,g-1+y)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let g=0;return this.eachRow(()=&gt;{g++}),g}getRow(g){let y=this._rows[g-1];return y||(y=this._rows[g-1]=new c(this,g)),y}getRows(g,y){if(y&lt;1)return;const v=[];for(let _=g;_&lt;g+y;_++)v.push(this.getRow(_));return v}addRow(g){let y=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:&quot;n&quot;;const v=this._nextRow,_=this.getRow(v);return _.values=g,this._setStyleOption(v,y[0]===&quot;i&quot;?y:&quot;n&quot;),_}addRows(g){let y=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:&quot;n&quot;;const v=[];return g.forEach(_=&gt;{v.push(this.addRow(_,y))}),v}insertRow(g,y){let v=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:&quot;n&quot;;return this.spliceRows(g,0,y),this._setStyleOption(g,v),this.getRow(g)}insertRows(g,y){let v=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:&quot;n&quot;;if(this.spliceRows(g,0,...y),v!==&quot;n&quot;)for(let _=0;_&lt;y.length;_++)v[0]===&quot;o&quot;&amp;&amp;this.findRow(y.length+g+_)!==void 0?this._copyStyle(y.length+g+_,g+_,v[1]===&quot;+&quot;):v[0]===&quot;i&quot;&amp;&amp;this.findRow(g-1)!==void 0&amp;&amp;this._copyStyle(g-1,g+_,v[1]===&quot;+&quot;);return this.getRows(g,y.length)}_setStyleOption(g){let y=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:&quot;n&quot;;y[0]===&quot;o&quot;&amp;&amp;this.findRow(g+1)!==void 0?this._copyStyle(g+1,g,y[1]===&quot;+&quot;):y[0]===&quot;i&quot;&amp;&amp;this.findRow(g-1)!==void 0&amp;&amp;this._copyStyle(g-1,g,y[1]===&quot;+&quot;)}_copyStyle(g,y){let v=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0&amp;&amp;arguments[2];const _=this.getRow(g),S=this.getRow(y);S.style=x(_.style),_.eachCell({includeEmpty:v},(A,I)=&gt;{S.getCell(I).style=x(A.style)}),S.height=_.height}duplicateRow(g,y){let v=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0&amp;&amp;arguments[2];const _=this._rows[g-1],S=new Array(y).fill(_.values);this.spliceRows(g+1,v?0:y,...S);for(let A=0;A&lt;y;A++){const I=this._rows[g+A];I.style=_.style,I.height=_.height,_.eachCell({includeEmpty:!0},(V,F)=&gt;{I.getCell(F).style=V.style})}}spliceRows(g,y){const v=g+y;for(var _=arguments.length,S=new Array(_&gt;2?_-2:0),A=2;A&lt;_;A++)S[A-2]=arguments[A];const I=S.length,V=I-y,F=this._rows.length;let q,H;if(V&lt;0)for(g===F&amp;&amp;(this._rows[F-1]=void 0),q=v;q&lt;=F;q++)if(H=this._rows[q-1],H){const B=this.getRow(q+V);B.values=H.values,B.style=H.style,B.height=H.height,H.eachCell({includeEmpty:!0},(K,T)=&gt;{B.getCell(T).style=K.style}),this._rows[q-1]=void 0}else this._rows[q+V-1]=void 0;else if(V&gt;0)for(q=F;q&gt;=v;q--)if(H=this._rows[q-1],H){const B=this.getRow(q+V);B.values=H.values,B.style=H.style,B.height=H.height,H.eachCell({includeEmpty:!0},(K,T)=&gt;{if(B.getCell(T).style=K.style,K._value.constructor.name===&quot;MergeValue&quot;){const L=this.getRow(K._row._number+I).getCell(T),E=K._value._master,j=this.getRow(E._row._number+I).getCell(E._column._number);L.merge(j)}})}else this._rows[q+V-1]=void 0;for(q=0;q&lt;I;q++){const B=this.getRow(g+q);B.style={},B.values=S[q]}this.workbook.definedNames.spliceRows(this.name,g,y,I)}eachRow(g,y){if(y||(y=g,g=void 0),g&amp;&amp;g.includeEmpty){const v=this._rows.length;for(let _=1;_&lt;=v;_++)y(this.getRow(_),_)}else this._rows.forEach(v=&gt;{v&amp;&amp;v.hasValues&amp;&amp;y(v,v.number)})}getSheetValues(){const g=[];return this._rows.forEach(y=&gt;{y&amp;&amp;(g[y.number]=y.values)}),g}findCell(g,y){const v=l.getAddress(g,y),_=this._rows[v.row-1];return _?_.findCell(v.col):void 0}getCell(g,y){const v=l.getAddress(g,y);return this.getRow(v.row).getCellEx(v)}mergeCells(){for(var g=arguments.length,y=new Array(g),v=0;v&lt;g;v++)y[v]=arguments[v];const _=new u(y);this._mergeCellsInternal(_)}mergeCellsWithoutStyle(){for(var g=arguments.length,y=new Array(g),v=0;v&lt;g;v++)y[v]=arguments[v];const _=new u(y);this._mergeCellsInternal(_,!0)}_mergeCellsInternal(g,y){s.each(this._merges,_=&gt;{if(_.intersects(g))throw new Error(&quot;Cannot merge already merged cells&quot;)});const v=this.getCell(g.top,g.left);for(let _=g.top;_&lt;=g.bottom;_++)for(let S=g.left;S&lt;=g.right;S++)(_&gt;g.top||S&gt;g.left)&amp;&amp;this.getCell(_,S).merge(v,y);this._merges[v.address]=g}_unMergeMaster(g){const y=this._merges[g.address];if(y){for(let v=y.top;v&lt;=y.bottom;v++)for(let _=y.left;_&lt;=y.right;_++)this.getCell(v,_).unmerge();delete this._merges[g.address]}}get hasMerges(){return s.some(this._merges,Boolean)}unMergeCells(){for(var g=arguments.length,y=new Array(g),v=0;v&lt;g;v++)y[v]=arguments[v];const _=new u(y);for(let S=_.top;S&lt;=_.bottom;S++)for(let A=_.left;A&lt;=_.right;A++){const I=this.findCell(S,A);I&amp;&amp;(I.type===d.ValueType.Merge?this._unMergeMaster(I.master):this._merges[I.address]&amp;&amp;this._unMergeMaster(I))}}fillFormula(g,y,v){let _=arguments.length&gt;3&amp;&amp;arguments[3]!==void 0?arguments[3]:&quot;shared&quot;;const S=l.decode(g),{top:A,left:I,bottom:V,right:F}=S,q=F-I+1,H=l.encodeAddress(A,I),B=_===&quot;shared&quot;;let K;K=typeof v==&quot;function&quot;?v:Array.isArray(v)?Array.isArray(v[0])?(L,E)=&gt;v[L-A][E-I]:(L,E)=&gt;v[(L-A)*q+(E-I)]:()=&gt;{};let T=!0;for(let L=A;L&lt;=V;L++)for(let E=I;E&lt;=F;E++)T?(this.getCell(L,E).value={shareType:_,formula:y,ref:g,result:K(L,E)},T=!1):this.getCell(L,E).value=B?{sharedFormula:H,result:K(L,E)}:K(L,E)}addImage(g,y){const v={type:&quot;image&quot;,imageId:g,range:y};this._media.push(new f(this,v))}getImages(){return this._media.filter(g=&gt;g.type===&quot;image&quot;)}addBackgroundImage(g){const y={type:&quot;background&quot;,imageId:g};this._media.push(new f(this,y))}getBackgroundImageId(){const g=this._media.find(y=&gt;y.type===&quot;background&quot;);return g&amp;&amp;g.imageId}protect(g,y){return new Promise(v=&gt;{this.sheetProtection={sheet:!0},y&amp;&amp;&quot;spinCount&quot;in y&amp;&amp;(y.spinCount=Number.isFinite(y.spinCount)?Math.round(Math.max(0,y.spinCount)):1e5),g&amp;&amp;(this.sheetProtection.algorithmName=&quot;SHA-512&quot;,this.sheetProtection.saltValue=p.randomBytes(16).toString(&quot;base64&quot;),this.sheetProtection.spinCount=y&amp;&amp;&quot;spinCount&quot;in y?y.spinCount:1e5,this.sheetProtection.hashValue=p.convertPasswordToHash(g,&quot;SHA512&quot;,this.sheetProtection.saltValue,this.sheetProtection.spinCount)),y&amp;&amp;(this.sheetProtection=Object.assign(this.sheetProtection,y),!g&amp;&amp;&quot;spinCount&quot;in y&amp;&amp;delete this.sheetProtection.spinCount),v()})}unprotect(){this.sheetProtection=null}addTable(g){const y=new h(this,g);return this.tables[g.name]=y,y}getTable(g){return this.tables[g]}removeTable(g){delete this.tables[g]}getTables(){return Object.values(this.tables)}addConditionalFormatting(g){this.conditionalFormattings.push(g)}removeConditionalFormatting(g){typeof g==&quot;number&quot;?this.conditionalFormattings.splice(g,1):this.conditionalFormattings=g instanceof Function?this.conditionalFormattings.filter(g):[]}get tabColor(){return console.trace(&quot;worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor&quot;),this.properties.tabColor}set tabColor(g){console.trace(&quot;worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor&quot;),this.properties.tabColor=g}get model(){const g={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(_=&gt;_.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(_=&gt;_.model),conditionalFormattings:this.conditionalFormattings};g.cols=a.toModel(this.columns);const y=g.rows=[],v=g.dimensions=new u;return this._rows.forEach(_=&gt;{const S=_&amp;&amp;_.model;S&amp;&amp;(v.expand(S.number,S.min,S.number,S.max),y.push(S))}),g.merges=[],s.each(this._merges,_=&gt;{g.merges.push(_.range)}),g}_parseRows(g){this._rows=[],g.rows.forEach(y=&gt;{const v=new c(this,y.number);this._rows[v.number-1]=v,v.model=y})}_parseMergeCells(g){s.each(g.mergeCells,y=&gt;{this.mergeCellsWithoutStyle(y)})}set model(g){this.name=g.name,this._columns=a.fromModel(this,g.cols),this._parseRows(g),this._parseMergeCells(g),this.dataValidations=new m(g.dataValidations),this.properties=g.properties,this.pageSetup=g.pageSetup,this.headerFooter=g.headerFooter,this.views=g.views,this.autoFilter=g.autoFilter,this._media=g.media.map(y=&gt;new f(this,y)),this.sheetProtection=g.sheetProtection,this.tables=g.tables.reduce((y,v)=&gt;{const _=new h;return _.model=v,y[v.name]=_,y},{}),this.conditionalFormattings=g.conditionalFormattings}}},{&quot;../utils/col-cache&quot;:19,&quot;../utils/copy-style&quot;:20,&quot;../utils/encryptor&quot;:21,&quot;../utils/under-dash&quot;:26,&quot;./column&quot;:4,&quot;./data-validations&quot;:5,&quot;./enums&quot;:7,&quot;./image&quot;:8,&quot;./range&quot;:10,&quot;./row&quot;:11,&quot;./table&quot;:12}],15:[function(t,n,o){t(&quot;core-js/modules/es.promise&quot;),t(&quot;core-js/modules/es.promise.finally&quot;),t(&quot;core-js/modules/es.object.assign&quot;),t(&quot;core-js/modules/es.object.keys&quot;),t(&quot;core-js/modules/es.object.values&quot;),t(&quot;core-js/modules/es.symbol&quot;),t(&quot;core-js/modules/es.symbol.async-iterator&quot;),t(&quot;core-js/modules/es.array.iterator&quot;),t(&quot;core-js/modules/es.array.includes&quot;),t(&quot;core-js/modules/es.array.find-index&quot;),t(&quot;core-js/modules/es.array.find&quot;),t(&quot;core-js/modules/es.string.from-code-point&quot;),t(&quot;core-js/modules/es.string.includes&quot;),t(&quot;core-js/modules/es.number.is-nan&quot;),t(&quot;regenerator-runtime/runtime&quot;);const s={Workbook:t(&quot;./doc/workbook&quot;)},l=t(&quot;./doc/enums&quot;);Object.keys(l).forEach(u=&gt;{s[u]=l[u]}),n.exports=s},{&quot;./doc/enums&quot;:7,&quot;./doc/workbook&quot;:13,&quot;core-js/modules/es.array.find&quot;:359,&quot;core-js/modules/es.array.find-index&quot;:358,&quot;core-js/modules/es.array.includes&quot;:360,&quot;core-js/modules/es.array.iterator&quot;:361,&quot;core-js/modules/es.number.is-nan&quot;:363,&quot;core-js/modules/es.object.assign&quot;:364,&quot;core-js/modules/es.object.keys&quot;:366,&quot;core-js/modules/es.object.values&quot;:367,&quot;core-js/modules/es.promise&quot;:372,&quot;core-js/modules/es.promise.finally&quot;:371,&quot;core-js/modules/es.string.from-code-point&quot;:376,&quot;core-js/modules/es.string.includes&quot;:377,&quot;core-js/modules/es.symbol&quot;:381,&quot;core-js/modules/es.symbol.async-iterator&quot;:378,&quot;regenerator-runtime/runtime&quot;:492}],16:[function(t,n,o){const s=typeof TextDecoder&gt;&quot;u&quot;?null:new TextDecoder(&quot;utf-8&quot;);o.bufferToString=function(l){return typeof l==&quot;string&quot;?l:s?s.decode(l):l.toString()}},{}],17:[function(t,n,o){const s=typeof TextEncoder&gt;&quot;u&quot;?null:new TextEncoder(&quot;utf-8&quot;),{Buffer:l}=t(&quot;buffer&quot;);o.stringToBuffer=function(u){return typeof u!=&quot;string&quot;?u:s?l.from(s.encode(u).buffer):l.from(u)}},{buffer:220}],18:[function(t,n,o){const s=t(&quot;./under-dash&quot;),l=t(&quot;./col-cache&quot;);n.exports=class{constructor(u){this.template=u,this.sheets={}}addCell(u){this.addCellEx(l.decodeEx(u))}getCell(u){return this.findCellEx(l.decodeEx(u),!0)}findCell(u){return this.findCellEx(l.decodeEx(u),!1)}findCellAt(u,c,a){const d=this.sheets[u],f=d&amp;&amp;d[c];return f&amp;&amp;f[a]}addCellEx(u){if(u.top)for(let c=u.top;c&lt;=u.bottom;c++)for(let a=u.left;a&lt;=u.right;a++)this.getCellAt(u.sheetName,c,a);else this.findCellEx(u,!0)}getCellEx(u){return this.findCellEx(u,!0)}findCellEx(u,c){const a=this.findSheet(u,c),d=this.findSheetRow(a,u,c);return this.findRowCell(d,u,c)}getCellAt(u,c,a){const d=this.sheets[u]||(this.sheets[u]=[]),f=d[c]||(d[c]=[]);return f[a]||(f[a]={sheetName:u,address:l.n2l(a)+c,row:c,col:a})}removeCellEx(u){const c=this.findSheet(u);if(!c)return;const a=this.findSheetRow(c,u);a&amp;&amp;delete a[u.col]}forEachInSheet(u,c){const a=this.sheets[u];a&amp;&amp;a.forEach((d,f)=&gt;{d&amp;&amp;d.forEach((h,m)=&gt;{h&amp;&amp;c(h,f,m)})})}forEach(u){s.each(this.sheets,(c,a)=&gt;{this.forEachInSheet(a,u)})}map(u){const c=[];return this.forEach(a=&gt;{c.push(u(a))}),c}findSheet(u,c){const a=u.sheetName;return this.sheets[a]?this.sheets[a]:c?this.sheets[a]=[]:void 0}findSheetRow(u,c,a){const{row:d}=c;return u&amp;&amp;u[d]?u[d]:a?u[d]=[]:void 0}findRowCell(u,c,a){const{col:d}=c;return u&amp;&amp;u[d]?u[d]:a?u[d]=this.template?Object.assign(c,JSON.parse(JSON.stringify(this.template))):c:void 0}spliceRows(u,c,a,d){const f=this.sheets[u];if(f){const h=[];for(let m=0;m&lt;d;m++)h.push([]);f.splice(c,a,...h)}}spliceColumns(u,c,a,d){const f=this.sheets[u];if(f){const h=[];for(let m=0;m&lt;d;m++)h.push(null);s.each(f,m=&gt;{m.splice(c,a,...h)})}}}},{&quot;./col-cache&quot;:19,&quot;./under-dash&quot;:26}],19:[function(t,n,o){const s=/^[A-Z]+\d+$/,l={_dictionary:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;,&quot;F&quot;,&quot;G&quot;,&quot;H&quot;,&quot;I&quot;,&quot;J&quot;,&quot;K&quot;,&quot;L&quot;,&quot;M&quot;,&quot;N&quot;,&quot;O&quot;,&quot;P&quot;,&quot;Q&quot;,&quot;R&quot;,&quot;S&quot;,&quot;T&quot;,&quot;U&quot;,&quot;V&quot;,&quot;W&quot;,&quot;X&quot;,&quot;Y&quot;,&quot;Z&quot;],_l2nFill:0,_l2n:{},_n2l:[],_level:u=&gt;u&lt;=26?1:u&lt;=676?2:3,_fill(u){let c,a,d,f,h,m=1;if(u&gt;=4)throw new Error(&quot;Out of bounds. Excel supports columns from 1 to 16384&quot;);if(this._l2nFill&lt;1&amp;&amp;u&gt;=1){for(;m&lt;=26;)c=this._dictionary[m-1],this._n2l[m]=c,this._l2n[c]=m,m++;this._l2nFill=1}if(this._l2nFill&lt;2&amp;&amp;u&gt;=2){for(m=27;m&lt;=702;)a=m-27,d=a%26,f=Math.floor(a/26),c=this._dictionary[f]+this._dictionary[d],this._n2l[m]=c,this._l2n[c]=m,m++;this._l2nFill=2}if(this._l2nFill&lt;3&amp;&amp;u&gt;=3){for(m=703;m&lt;=16384;)a=m-703,d=a%26,f=Math.floor(a/26)%26,h=Math.floor(a/676),c=this._dictionary[h]+this._dictionary[f]+this._dictionary[d],this._n2l[m]=c,this._l2n[c]=m,m++;this._l2nFill=3}},l2n(u){if(this._l2n[u]||this._fill(u.length),!this._l2n[u])throw new Error(&quot;Out of bounds. Invalid column letter: &quot;+u);return this._l2n[u]},n2l(u){if(u&lt;1||u&gt;16384)throw new Error(u+&quot; is out of bounds. Excel supports columns from 1 to 16384&quot;);return this._n2l[u]||this._fill(this._level(u)),this._n2l[u]},_hash:{},validateAddress(u){if(!s.test(u))throw new Error(&quot;Invalid Address: &quot;+u);return!0},decodeAddress(u){const c=u.length&lt;5&amp;&amp;this._hash[u];if(c)return c;let a=!1,d=&quot;&quot;,f=0,h=!1,m=&quot;&quot;,p=0;for(let g,y=0;y&lt;u.length;y++)if(g=u.charCodeAt(y),!h&amp;&amp;g&gt;=65&amp;&amp;g&lt;=90)a=!0,d+=u[y],f=26*f+g-64;else if(g&gt;=48&amp;&amp;g&lt;=57)h=!0,m+=u[y],p=10*p+g-48;else if(h&amp;&amp;a&amp;&amp;g!==36)break;if(a){if(f&gt;16384)throw new Error(&quot;Out of bounds. Invalid column letter: &quot;+d)}else f=void 0;h||(p=void 0);const x={address:u=d+m,col:f,row:p,$col$row:`$${d}$${m}`};return f&lt;=100&amp;&amp;p&lt;=100&amp;&amp;(this._hash[u]=x,this._hash[x.$col$row]=x),x},getAddress(u,c){if(c){const a=this.n2l(c)+u;return this.decodeAddress(a)}return this.decodeAddress(u)},decode(u){const c=u.split(&quot;:&quot;);if(c.length===2){const a=this.decodeAddress(c[0]),d=this.decodeAddress(c[1]),f={top:Math.min(a.row,d.row),left:Math.min(a.col,d.col),bottom:Math.max(a.row,d.row),right:Math.max(a.col,d.col)};return f.tl=this.n2l(f.left)+f.top,f.br=this.n2l(f.right)+f.bottom,f.dimensions=`${f.tl}:${f.br}`,f}return this.decodeAddress(u)},decodeEx(u){const c=u.match(/(?:(?:(?:&#039;((?:[^&#039;]|&#039;&#039;)*)&#039;)|([^&#039;^ !]*))!)?(.*)/),a=c[1]||c[2],d=c[3],f=d.split(&quot;:&quot;);if(f.length&gt;1){let m=this.decodeAddress(f[0]),p=this.decodeAddress(f[1]);const x=Math.min(m.row,p.row),g=Math.min(m.col,p.col),y=Math.max(m.row,p.row),v=Math.max(m.col,p.col);return m=this.n2l(g)+x,p=this.n2l(v)+y,{top:x,left:g,bottom:y,right:v,sheetName:a,tl:{address:m,col:g,row:x,$col$row:`$${this.n2l(g)}$${x}`,sheetName:a},br:{address:p,col:v,row:y,$col$row:`$${this.n2l(v)}$${y}`,sheetName:a},dimensions:`${m}:${p}`}}if(d.startsWith(&quot;#&quot;))return a?{sheetName:a,error:d}:{error:d};const h=this.decodeAddress(d);return a?{sheetName:a,...h}:h},encodeAddress:(u,c)=&gt;l.n2l(c)+u,encode(){switch(arguments.length){case 2:return l.encodeAddress(arguments[0],arguments[1]);case 4:return`${l.encodeAddress(arguments[0],arguments[1])}:${l.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error(&quot;Can only encode with 2 or 4 arguments&quot;)}},inRange(u,c){const[a,d,,f,h]=u,[m,p]=c;return m&gt;=a&amp;&amp;m&lt;=f&amp;&amp;p&gt;=d&amp;&amp;p&lt;=h}};n.exports=l},{}],20:[function(t,n,o){const s=(u,c)=&gt;({...u,...c.reduce((a,d)=&gt;(u[d]&amp;&amp;(a[d]={...u[d]}),a),{})}),l=function(u,c,a){let d=arguments.length&gt;3&amp;&amp;arguments[3]!==void 0?arguments[3]:[];u[a]&amp;&amp;(c[a]=s(u[a],d))};o.copyStyle=u=&gt;{if(!u)return u;if(c=u,Object.keys(c).length===0)return{};var c;const a={...u};return l(u,a,&quot;font&quot;,[&quot;color&quot;]),l(u,a,&quot;alignment&quot;),l(u,a,&quot;protection&quot;),u.border&amp;&amp;(l(u,a,&quot;border&quot;),l(u.border,a.border,&quot;top&quot;,[&quot;color&quot;]),l(u.border,a.border,&quot;left&quot;,[&quot;color&quot;]),l(u.border,a.border,&quot;bottom&quot;,[&quot;color&quot;]),l(u.border,a.border,&quot;right&quot;,[&quot;color&quot;]),l(u.border,a.border,&quot;diagonal&quot;,[&quot;color&quot;])),u.fill&amp;&amp;(l(u,a,&quot;fill&quot;,[&quot;fgColor&quot;,&quot;bgColor&quot;,&quot;center&quot;]),u.fill.stops&amp;&amp;(a.fill.stops=u.fill.stops.map(d=&gt;s(d,[&quot;color&quot;])))),a}},{}],21:[function(t,n,o){(function(s){(function(){const l=t(&quot;crypto&quot;),u={hash(c){const a=l.createHash(c);for(var d=arguments.length,f=new Array(d&gt;1?d-1:0),h=1;h&lt;d;h++)f[h-1]=arguments[h];return a.update(s.concat(f)),a.digest()},convertPasswordToHash(c,a,d,f){if(a=a.toLowerCase(),l.getHashes().indexOf(a)&lt;0)throw new Error(`Hash algorithm &#039;${a}&#039; not supported!`);const h=s.from(c,&quot;utf16le&quot;);let m=this.hash(a,s.from(d,&quot;base64&quot;),h);for(let p=0;p&lt;f;p++){const x=s.alloc(4);x.writeUInt32LE(p,0),m=this.hash(a,m,x)}return m.toString(&quot;base64&quot;)},randomBytes:c=&gt;l.randomBytes(c)};n.exports=u}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:220,crypto:390}],22:[function(t,n,o){const{SaxesParser:s}=t(&quot;saxes&quot;),{PassThrough:l}=t(&quot;readable-stream&quot;),{bufferToString:u}=t(&quot;./browser-buffer-decode&quot;);n.exports=async function*(c){c.pipe&amp;&amp;!c[Symbol.asyncIterator]&amp;&amp;(c=c.pipe(new l));const a=new s;let d;a.on(&quot;error&quot;,h=&gt;{d=h});let f=[];a.on(&quot;opentag&quot;,h=&gt;f.push({eventType:&quot;opentag&quot;,value:h})),a.on(&quot;text&quot;,h=&gt;f.push({eventType:&quot;text&quot;,value:h})),a.on(&quot;closetag&quot;,h=&gt;f.push({eventType:&quot;closetag&quot;,value:h}));for await(const h of c){if(a.write(u(h)),d)throw d;yield f,f=[]}}},{&quot;./browser-buffer-decode&quot;:16,&quot;readable-stream&quot;:491,saxes:496}],23:[function(t,n,o){const s=t(&quot;./col-cache&quot;),l=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,u=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;n.exports={slideFormula:function(c,a,d){const f=s.decode(a),h=s.decode(d);return c.replace(l,(m,p,x,g,y)=&gt;{if(y)return m;const v=u.exec(g);if(v){const _=v[1],S=v[2].toUpperCase(),A=v[3],I=v[4];if(S.length&gt;3||S.length===3&amp;&amp;S&gt;&quot;XFD&quot;)return m;let V=s.l2n(S),F=parseInt(I,10);return _||(V+=h.col-f.col),A||(F+=h.row-f.row),(p||&quot;&quot;)+(_||&quot;&quot;)+s.n2l(V)+(A||&quot;&quot;)+F}return m})}}},{&quot;./col-cache&quot;:19}],24:[function(t,n,o){(function(s,l){(function(){const u=t(&quot;readable-stream&quot;),c=t(&quot;./utils&quot;),a=t(&quot;./string-buf&quot;);class d{constructor(g,y){this._data=g,this._encoding=y}get length(){return this.toBuffer().length}copy(g,y,v,_){return this.toBuffer().copy(g,y,v,_)}toBuffer(){return this._buffer||(this._buffer=l.from(this._data,this._encoding)),this._buffer}}class f{constructor(g){this._data=g}get length(){return this._data.length}copy(g,y,v,_){return this._data._buf.copy(g,y,v,_)}toBuffer(){return this._data.toBuffer()}}class h{constructor(g){this._data=g}get length(){return this._data.length}copy(g,y,v,_){this._data.copy(g,y,v,_)}toBuffer(){return this._data}}class m{constructor(g){this.size=g,this.buffer=l.alloc(g),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&amp;&amp;this.iWrite===this.size)return this.buffer;const g=l.alloc(this.iWrite-this.iRead);return this.buffer.copy(g,0,this.iRead,this.iWrite),g}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(g){let y;return g===0?null:g===void 0||g&gt;=this.length?(y=this.toBuffer(),this.iRead=this.iWrite,y):(y=l.alloc(g),this.buffer.copy(y,0,this.iRead,g),this.iRead+=g,y)}write(g,y,v){const _=Math.min(v,this.size-this.iWrite);return g.copy(this.buffer,this.iWrite,y,y+_),this.iWrite+=_,_}}const p=function(x){x=x||{},this.bufSize=x.bufSize||1048576,this.buffers=[],this.batch=x.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};c.inherits(p,u.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return l.concat(this.buffers.map(x=&gt;x.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const g=this.buffers[this.buffers.length-1];if(!g.full)return g}const x=new m(this.bufSize);return this.buffers.push(x),x},async _pipe(x){await Promise.all(this.pipes.map((function(g){return new Promise(y=&gt;{g.write(x.toBuffer(),()=&gt;{y()})})})))},_writeToBuffers(x){let g=0;const y=x.length;for(;g&lt;y;)g+=this._getWritableBuffer().write(x,g,y-g)},async write(x,g,y){let v;if(g instanceof Function&amp;&amp;(y=g,g=&quot;utf8&quot;),y=y||c.nop,x instanceof a)v=new f(x);else if(x instanceof l)v=new h(x);else{if(!(typeof x==&quot;string&quot;||x instanceof String||x instanceof ArrayBuffer))throw new Error(&quot;Chunk must be one of type String, Buffer or StringBuf.&quot;);v=new d(x,g)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(v);!this.corked&amp;&amp;this.buffers.length&gt;1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(v),s.nextTick(y)):(await this._pipe(v),y());else this.paused||this.emit(&quot;data&quot;,v.toBuffer()),this._writeToBuffers(v),this.emit(&quot;readable&quot;);return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(x,g,y){const v=_=&gt;{_?y(_):(this._flush(),this.pipes.forEach(S=&gt;{S.end()}),this.emit(&quot;finish&quot;))};x?this.write(x,g,v):v()},read(x){let g;if(x){for(g=[];x&amp;&amp;this.buffers.length&amp;&amp;!this.buffers[0].eod;){const y=this.buffers[0],v=y.read(x);x-=v.length,g.push(v),y.eod&amp;&amp;y.full&amp;&amp;this.buffers.shift()}return l.concat(g)}return g=this.buffers.map(y=&gt;y.toBuffer()).filter(Boolean),this.buffers=[],l.concat(g)},setEncoding(x){this.encoding=x},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(x){this.pipes.push(x),!this.paused&amp;&amp;this.buffers.length&amp;&amp;this.end()},unpipe(x){this.pipes=this.pipes.filter(g=&gt;g!==x)},unshift(){throw new Error(&quot;Not Implemented&quot;)},wrap(){throw new Error(&quot;Not Implemented&quot;)}}),n.exports=p}).call(this)}).call(this,t(&quot;_process&quot;),t(&quot;buffer&quot;).Buffer)},{&quot;./string-buf&quot;:25,&quot;./utils&quot;:27,_process:467,buffer:220,&quot;readable-stream&quot;:491}],25:[function(t,n,o){(function(s){(function(){n.exports=class{constructor(l){this._buf=s.alloc(l&amp;&amp;l.size||16384),this._encoding=l&amp;&amp;l.encoding||&quot;utf8&quot;,this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=s.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(l){l=l||0,this._buffer=void 0,this._inPos=l}_grow(l){let u=2*this._buf.length;for(;u&lt;l;)u*=2;const c=s.alloc(u);this._buf.copy(c,0),this._buf=c}addText(l){this._buffer=void 0;let u=this._inPos+this._buf.write(l,this._inPos,this._encoding);for(;u&gt;=this._buf.length-4;)this._grow(this._inPos+l.length),u=this._inPos+this._buf.write(l,this._inPos,this._encoding);this._inPos=u}addStringBuf(l){l.length&amp;&amp;(this._buffer=void 0,this.length+l.length&gt;this.capacity&amp;&amp;this._grow(this.length+l.length),l._buf.copy(this._buf,this._inPos,0,l.length),this._inPos+=l.length)}}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:220}],26:[function(t,n,o){const{toString:s}=Object.prototype,l=/[&quot;&amp;&lt;&gt;]/,u={each:function(c,a){c&amp;&amp;(Array.isArray(c)?c.forEach(a):Object.keys(c).forEach(d=&gt;{a(c[d],d)}))},some:function(c,a){return!!c&amp;&amp;(Array.isArray(c)?c.some(a):Object.keys(c).some(d=&gt;a(c[d],d)))},every:function(c,a){return!c||(Array.isArray(c)?c.every(a):Object.keys(c).every(d=&gt;a(c[d],d)))},map:function(c,a){return c?Array.isArray(c)?c.map(a):Object.keys(c).map(d=&gt;a(c[d],d)):[]},keyBy:(c,a)=&gt;c.reduce((d,f)=&gt;(d[f[a]]=f,d),{}),isEqual:function(c,a){const d=typeof c,f=typeof a,h=Array.isArray(c),m=Array.isArray(a);let p;if(d!==f)return!1;switch(typeof c){case&quot;object&quot;:if(h||m)return!(!h||!m)&amp;&amp;c.length===a.length&amp;&amp;c.every((x,g)=&gt;{const y=a[g];return u.isEqual(x,y)});if(c===null||a===null)return c===a;if(p=Object.keys(c),Object.keys(a).length!==p.length)return!1;for(const x of p)if(!a.hasOwnProperty(x))return!1;return u.every(c,(x,g)=&gt;{const y=a[g];return u.isEqual(x,y)});default:return c===a}},escapeHtml(c){const a=l.exec(c);if(!a)return c;let d=&quot;&quot;,f=&quot;&quot;,h=0,m=a.index;for(;m&lt;c.length;m++){switch(c.charAt(m)){case&#039;&quot;&#039;:f=&quot;&amp;quot;&quot;;break;case&quot;&amp;&quot;:f=&quot;&amp;amp;&quot;;break;case&quot;&#039;&quot;:f=&quot;&amp;apos;&quot;;break;case&quot;&lt;&quot;:f=&quot;&amp;lt;&quot;;break;case&quot;&gt;&quot;:f=&quot;&amp;gt;&quot;;break;default:continue}h!==m&amp;&amp;(d+=c.substring(h,m)),h=m+1,d+=f}return h!==m?d+c.substring(h,m):d},strcmp:(c,a)=&gt;c&lt;a?-1:c&gt;a?1:0,isUndefined:c=&gt;s.call(c)===&quot;[object Undefined]&quot;,isObject:c=&gt;s.call(c)===&quot;[object Object]&quot;,deepMerge(){const c=arguments[0]||{},{length:a}=arguments;let d,f,h;function m(p,x){d=c[x],h=Array.isArray(p),u.isObject(p)||h?(h?(h=!1,f=d&amp;&amp;Array.isArray(d)?d:[]):f=d&amp;&amp;u.isObject(d)?d:{},c[x]=u.deepMerge(f,p)):u.isUndefined(p)||(c[x]=p)}for(let p=0;p&lt;a;p++)u.each(arguments[p],m);return c}};n.exports=u},{}],27:[function(t,n,o){(function(s,l){(function(){const u=t(&quot;fs&quot;),c=/[&lt;&gt;&amp;&#039;&quot;\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,a={nop(){},promiseImmediate:d=&gt;new Promise(f=&gt;{s.setImmediate?l(()=&gt;{f(d)}):setTimeout(()=&gt;{f(d)},1)}),inherits:function(d,f,h,m){d.super_=f,m||(m=h,h=null),h&amp;&amp;Object.keys(h).forEach(x=&gt;{Object.defineProperty(d,x,Object.getOwnPropertyDescriptor(h,x))});const p={constructor:{value:d,enumerable:!1,writable:!1,configurable:!0}};m&amp;&amp;Object.keys(m).forEach(x=&gt;{p[x]=Object.getOwnPropertyDescriptor(m,x)}),d.prototype=Object.create(f.prototype,p)},dateToExcel:(d,f)=&gt;25569+d.getTime()/864e5-(f?1462:0),excelToDate(d,f){const h=Math.round(24*(d-25569+(f?1462:0))*3600*1e3);return new Date(h)},parsePath(d){const f=d.lastIndexOf(&quot;/&quot;);return{path:d.substring(0,f),name:d.substring(f+1)}},getRelsPath(d){const f=a.parsePath(d);return`${f.path}/_rels/${f.name}.rels`},xmlEncode(d){const f=c.exec(d);if(!f)return d;let h=&quot;&quot;,m=&quot;&quot;,p=0,x=f.index;for(;x&lt;d.length;x++){const g=d.charCodeAt(x);switch(g){case 34:m=&quot;&amp;quot;&quot;;break;case 38:m=&quot;&amp;amp;&quot;;break;case 39:m=&quot;&amp;apos;&quot;;break;case 60:m=&quot;&amp;lt;&quot;;break;case 62:m=&quot;&amp;gt;&quot;;break;case 127:m=&quot;&quot;;break;default:if(g&lt;=31&amp;&amp;(g&lt;=8||g&gt;=11&amp;&amp;g!==13)){m=&quot;&quot;;break}continue}p!==x&amp;&amp;(h+=d.substring(p,x)),p=x+1,m&amp;&amp;(h+=m)}return p!==x?h+d.substring(p,x):h},xmlDecode:d=&gt;d.replace(/&amp;([a-z]*);/g,f=&gt;{switch(f){case&quot;&amp;lt;&quot;:return&quot;&lt;&quot;;case&quot;&amp;gt;&quot;:return&quot;&gt;&quot;;case&quot;&amp;amp;&quot;:return&quot;&amp;&quot;;case&quot;&amp;apos;&quot;:return&quot;&#039;&quot;;case&quot;&amp;quot;&quot;:return&#039;&quot;&#039;;default:return f}}),validInt(d){const f=parseInt(d,10);return Number.isNaN(f)?0:f},isDateFmt(d){return d?(d=(d=d.replace(/\[[^\]]*]/g,&quot;&quot;)).replace(/&quot;[^&quot;]*&quot;/g,&quot;&quot;)).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:d=&gt;new Promise(f=&gt;{u.access(d,u.constants.F_OK,h=&gt;{f(!h)})})},toIsoDateString:d=&gt;d.toIsoString().subsstr(0,10),parseBoolean:d=&gt;d===!0||d===&quot;true&quot;||d===1||d===&quot;1&quot;};n.exports=a}).call(this)}).call(this,typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{},t(&quot;timers&quot;).setImmediate)},{fs:216,timers:523}],28:[function(t,n,o){const s=t(&quot;./under-dash&quot;),l=t(&quot;./utils&quot;);function u(d,f,h){d.push(` ${f}=&quot;${l.xmlEncode(h.toString())}&quot;`)}function c(d,f){if(f){const h=[];s.each(f,(m,p)=&gt;{m!==void 0&amp;&amp;u(h,p,m)}),d.push(h.join(&quot;&quot;))}}class a{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(f){const h=this._xml;h.push(&quot;&lt;?xml&quot;),c(h,f),h.push(`?&gt;
`)}openNode(f,h){const m=this.tos,p=this._xml;m&amp;&amp;this.open&amp;&amp;p.push(&quot;&gt;&quot;),this._stack.push(f),p.push(&quot;&lt;&quot;),p.push(f),c(p,h),this.leaf=!0,this.open=!0}addAttribute(f,h){if(!this.open)throw new Error(&quot;Cannot write attributes to node if it is not open&quot;);h!==void 0&amp;&amp;u(this._xml,f,h)}addAttributes(f){if(!this.open)throw new Error(&quot;Cannot write attributes to node if it is not open&quot;);c(this._xml,f)}writeText(f){const h=this._xml;this.open&amp;&amp;(h.push(&quot;&gt;&quot;),this.open=!1),this.leaf=!1,h.push(l.xmlEncode(f.toString()))}writeXml(f){this.open&amp;&amp;(this._xml.push(&quot;&gt;&quot;),this.open=!1),this.leaf=!1,this._xml.push(f)}closeNode(){const f=this._stack.pop(),h=this._xml;this.leaf?h.push(&quot;/&gt;&quot;):(h.push(&quot;&lt;/&quot;),h.push(f),h.push(&quot;&gt;&quot;)),this.open=!1,this.leaf=!1}leafNode(f,h,m){this.openNode(f,h),m!==void 0&amp;&amp;this.writeText(m),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const f=this._rollbacks.pop();this._xml.length&gt;f.xml&amp;&amp;this._xml.splice(f.xml,this._xml.length-f.xml),this._stack.length&gt;f.stack&amp;&amp;this._stack.splice(f.stack,this._stack.length-f.stack),this.leaf=f.leaf,this.open=f.open}get xml(){return this.closeAll(),this._xml.join(&quot;&quot;)}}a.StdDocAttributes={version:&quot;1.0&quot;,encoding:&quot;UTF-8&quot;,standalone:&quot;yes&quot;},n.exports=a},{&quot;./under-dash&quot;:26,&quot;./utils&quot;:27}],29:[function(t,n,o){(function(s){(function(){const l=t(&quot;events&quot;),u=t(&quot;jszip&quot;),c=t(&quot;./stream-buf&quot;),{stringToBuffer:a}=t(&quot;./browser-buffer-encode&quot;);class d extends l.EventEmitter{constructor(h){super(),this.options=Object.assign({type:&quot;nodebuffer&quot;,compression:&quot;DEFLATE&quot;},h),this.zip=new u,this.stream=new c}append(h,m){m.hasOwnProperty(&quot;base64&quot;)&amp;&amp;m.base64?this.zip.file(m.name,h,{base64:!0}):(s.browser&amp;&amp;typeof h==&quot;string&quot;&amp;&amp;(h=a(h)),this.zip.file(m.name,h))}async finalize(){const h=await this.zip.generateAsync(this.options);this.stream.end(h),this.emit(&quot;finish&quot;)}read(h){return this.stream.read(h)}setEncoding(h){return this.stream.setEncoding(h)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(h,m){return this.stream.pipe(h,m)}unpipe(h){return this.stream.unpipe(h)}unshift(h){return this.stream.unshift(h)}wrap(h){return this.stream.wrap(h)}}n.exports={ZipWriter:d}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./browser-buffer-encode&quot;:17,&quot;./stream-buf&quot;:24,_process:467,events:422,jszip:441}],30:[function(t,n,o){n.exports={0:{f:&quot;General&quot;},1:{f:&quot;0&quot;},2:{f:&quot;0.00&quot;},3:{f:&quot;#,##0&quot;},4:{f:&quot;#,##0.00&quot;},9:{f:&quot;0%&quot;},10:{f:&quot;0.00%&quot;},11:{f:&quot;0.00E+00&quot;},12:{f:&quot;# ?/?&quot;},13:{f:&quot;# ??/??&quot;},14:{f:&quot;mm-dd-yy&quot;},15:{f:&quot;d-mmm-yy&quot;},16:{f:&quot;d-mmm&quot;},17:{f:&quot;mmm-yy&quot;},18:{f:&quot;h:mm AM/PM&quot;},19:{f:&quot;h:mm:ss AM/PM&quot;},20:{f:&quot;h:mm&quot;},21:{f:&quot;h:mm:ss&quot;},22:{f:&#039;m/d/yy &quot;h&quot;:mm&#039;},27:{&quot;zh-tw&quot;:&quot;[$-404]e/m/d&quot;,&quot;zh-cn&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;&#039;,&quot;ja-jp&quot;:&quot;[$-411]ge.m.d&quot;,&quot;ko-kr&quot;:&#039;yyyy&quot;年&quot; mm&quot;月&quot; dd&quot;日&quot;&#039;},28:{&quot;zh-tw&quot;:&#039;[$-404]e&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;zh-cn&quot;:&#039;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ja-jp&quot;:&#039;[$-411]ggge&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ko-kr&quot;:&quot;mm-dd&quot;},29:{&quot;zh-tw&quot;:&#039;[$-404]e&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;zh-cn&quot;:&#039;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ja-jp&quot;:&#039;[$-411]ggge&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ko-kr&quot;:&quot;mm-dd&quot;},30:{&quot;zh-tw&quot;:&quot;m/d/yy &quot;,&quot;zh-cn&quot;:&quot;m-d-yy&quot;,&quot;ja-jp&quot;:&quot;m/d/yy&quot;,&quot;ko-kr&quot;:&quot;mm-dd-yy&quot;},31:{&quot;zh-tw&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;zh-cn&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ja-jp&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ko-kr&quot;:&#039;yyyy&quot;년&quot; mm&quot;월&quot; dd&quot;일&quot;&#039;},32:{&quot;zh-tw&quot;:&#039;hh&quot;時&quot;mm&quot;分&quot;&#039;,&quot;zh-cn&quot;:&#039;h&quot;时&quot;mm&quot;分&quot;&#039;,&quot;ja-jp&quot;:&#039;h&quot;時&quot;mm&quot;分&quot;&#039;,&quot;ko-kr&quot;:&#039;h&quot;시&quot; mm&quot;분&quot;&#039;},33:{&quot;zh-tw&quot;:&#039;hh&quot;時&quot;mm&quot;分&quot;ss&quot;秒&quot;&#039;,&quot;zh-cn&quot;:&#039;h&quot;时&quot;mm&quot;分&quot;ss&quot;秒&quot;&#039;,&quot;ja-jp&quot;:&#039;h&quot;時&quot;mm&quot;分&quot;ss&quot;秒&quot;&#039;,&quot;ko-kr&quot;:&#039;h&quot;시&quot; mm&quot;분&quot; ss&quot;초&quot;&#039;},34:{&quot;zh-tw&quot;:&#039;上午/下午 hh&quot;時&quot;mm&quot;分&quot;&#039;,&quot;zh-cn&quot;:&#039;上午/下午 h&quot;时&quot;mm&quot;分&quot;&#039;,&quot;ja-jp&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;&#039;,&quot;ko-kr&quot;:&quot;yyyy-mm-dd&quot;},35:{&quot;zh-tw&quot;:&#039;上午/下午 hh&quot;時&quot;mm&quot;分&quot;ss&quot;秒&quot;&#039;,&quot;zh-cn&quot;:&#039;上午/下午 h&quot;时&quot;mm&quot;分&quot;ss&quot;秒&quot;&#039;,&quot;ja-jp&quot;:&#039;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ko-kr&quot;:&quot;yyyy-mm-dd&quot;},36:{&quot;zh-tw&quot;:&quot;[$-404]e/m/d&quot;,&quot;zh-cn&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;&#039;,&quot;ja-jp&quot;:&quot;[$-411]ge.m.d&quot;,&quot;ko-kr&quot;:&#039;yyyy&quot;年&quot; mm&quot;月&quot; dd&quot;日&quot;&#039;},37:{f:&quot;#,##0 ;(#,##0)&quot;},38:{f:&quot;#,##0 ;[Red](#,##0)&quot;},39:{f:&quot;#,##0.00 ;(#,##0.00)&quot;},40:{f:&quot;#,##0.00 ;[Red](#,##0.00)&quot;},45:{f:&quot;mm:ss&quot;},46:{f:&quot;[h]:mm:ss&quot;},47:{f:&quot;mmss.0&quot;},48:{f:&quot;##0.0E+0&quot;},49:{f:&quot;@&quot;},50:{&quot;zh-tw&quot;:&quot;[$-404]e/m/d&quot;,&quot;zh-cn&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;&#039;,&quot;ja-jp&quot;:&quot;[$-411]ge.m.d&quot;,&quot;ko-kr&quot;:&#039;yyyy&quot;年&quot; mm&quot;月&quot; dd&quot;日&quot;&#039;},51:{&quot;zh-tw&quot;:&#039;[$-404]e&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;zh-cn&quot;:&#039;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ja-jp&quot;:&#039;[$-411]ggge&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ko-kr&quot;:&quot;mm-dd&quot;},52:{&quot;zh-tw&quot;:&#039;上午/下午 hh&quot;時&quot;mm&quot;分&quot;&#039;,&quot;zh-cn&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;&#039;,&quot;ja-jp&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;&#039;,&quot;ko-kr&quot;:&quot;yyyy-mm-dd&quot;},53:{&quot;zh-tw&quot;:&#039;上午/下午 hh&quot;時&quot;mm&quot;分&quot;ss&quot;秒&quot;&#039;,&quot;zh-cn&quot;:&#039;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ja-jp&quot;:&#039;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ko-kr&quot;:&quot;yyyy-mm-dd&quot;},54:{&quot;zh-tw&quot;:&#039;[$-404]e&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;zh-cn&quot;:&#039;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ja-jp&quot;:&#039;[$-411]ggge&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ko-kr&quot;:&quot;mm-dd&quot;},55:{&quot;zh-tw&quot;:&#039;上午/下午 hh&quot;時&quot;mm&quot;分&quot;&#039;,&quot;zh-cn&quot;:&#039;上午/下午 h&quot;时&quot;mm&quot;分&quot;&#039;,&quot;ja-jp&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;&#039;,&quot;ko-kr&quot;:&quot;yyyy-mm-dd&quot;},56:{&quot;zh-tw&quot;:&#039;上午/下午 hh&quot;時&quot;mm&quot;分&quot;ss&quot;秒&quot;&#039;,&quot;zh-cn&quot;:&#039;上午/下午 h&quot;时&quot;mm&quot;分&quot;ss&quot;秒&quot;&#039;,&quot;ja-jp&quot;:&#039;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ko-kr&quot;:&quot;yyyy-mm-dd&quot;},57:{&quot;zh-tw&quot;:&quot;[$-404]e/m/d&quot;,&quot;zh-cn&quot;:&#039;yyyy&quot;年&quot;m&quot;月&quot;&#039;,&quot;ja-jp&quot;:&quot;[$-411]ge.m.d&quot;,&quot;ko-kr&quot;:&#039;yyyy&quot;年&quot; mm&quot;月&quot; dd&quot;日&quot;&#039;},58:{&quot;zh-tw&quot;:&#039;[$-404]e&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;zh-cn&quot;:&#039;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ja-jp&quot;:&#039;[$-411]ggge&quot;年&quot;m&quot;月&quot;d&quot;日&quot;&#039;,&quot;ko-kr&quot;:&quot;mm-dd&quot;},59:{&quot;th-th&quot;:&quot;t0&quot;},60:{&quot;th-th&quot;:&quot;t0.00&quot;},61:{&quot;th-th&quot;:&quot;t#,##0&quot;},62:{&quot;th-th&quot;:&quot;t#,##0.00&quot;},67:{&quot;th-th&quot;:&quot;t0%&quot;},68:{&quot;th-th&quot;:&quot;t0.00%&quot;},69:{&quot;th-th&quot;:&quot;t# ?/?&quot;},70:{&quot;th-th&quot;:&quot;t# ??/??&quot;},81:{&quot;th-th&quot;:&quot;d/m/bb&quot;}}},{}],31:[function(t,n,o){n.exports={OfficeDocument:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument&quot;,Worksheet:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet&quot;,CalcChain:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain&quot;,SharedStrings:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings&quot;,Styles:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles&quot;,Theme:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme&quot;,Hyperlink:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink&quot;,Image:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/image&quot;,CoreProperties:&quot;http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties&quot;,ExtenderProperties:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties&quot;,Comments:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments&quot;,VmlDrawing:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing&quot;,Table:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/table&quot;}},{}],32:[function(t,n,o){const s=t(&quot;../../utils/parse-sax&quot;),l=t(&quot;../../utils/xml-stream&quot;);class u{prepare(){}render(){}parseOpen(a){}parseText(a){}parseClose(a){}reconcile(a,d){}reset(){this.model=null,this.map&amp;&amp;Object.values(this.map).forEach(a=&gt;{a instanceof u?a.reset():a.xform&amp;&amp;a.xform.reset()})}mergeModel(a){this.model=Object.assign(this.model||{},a)}async parse(a){for await(const d of a)for(const{eventType:f,value:h}of d)if(f===&quot;opentag&quot;)this.parseOpen(h);else if(f===&quot;text&quot;)this.parseText(h);else if(f===&quot;closetag&quot;&amp;&amp;!this.parseClose(h.name))return this.model;return this.model}async parseStream(a){return this.parse(s(a))}get xml(){return this.toXml(this.model)}toXml(a){const d=new l;return this.render(d,a),d.xml}static toAttribute(a,d){let f=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0&amp;&amp;arguments[2];if(a===void 0){if(f)return d}else if(f||a!==d)return a.toString()}static toStringAttribute(a,d){let f=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0&amp;&amp;arguments[2];return u.toAttribute(a,d,f)}static toStringValue(a,d){return a===void 0?d:a}static toBoolAttribute(a,d){let f=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0&amp;&amp;arguments[2];if(a===void 0){if(f)return d}else if(f||a!==d)return a?&quot;1&quot;:&quot;0&quot;}static toBoolValue(a,d){return a===void 0?d:a===&quot;1&quot;}static toIntAttribute(a,d){let f=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0&amp;&amp;arguments[2];return u.toAttribute(a,d,f)}static toIntValue(a,d){return a===void 0?d:parseInt(a,10)}static toFloatAttribute(a,d){let f=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0&amp;&amp;arguments[2];return u.toAttribute(a,d,f)}static toFloatValue(a,d){return a===void 0?d:parseFloat(a)}}n.exports=u},{&quot;../../utils/parse-sax&quot;:22,&quot;../../utils/xml-stream&quot;:28}],33:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;../../../utils/col-cache&quot;);function u(a){try{return l.decodeEx(a),!0}catch{return!1}}function c(a){const d=[];let f=!1,h=&quot;&quot;;return a.split(&quot;,&quot;).forEach(m=&gt;{if(!m)return;const p=(m.match(/&#039;/g)||[]).length;if(!p)return void(f?h+=m+&quot;,&quot;:u(m)&amp;&amp;d.push(m));const x=p%2==0;!f&amp;&amp;x&amp;&amp;u(m)?d.push(m):f&amp;&amp;!x?(f=!1,u(h+m)&amp;&amp;d.push(h+m),h=&quot;&quot;):(f=!0,h+=m+&quot;,&quot;)}),d}n.exports=class extends s{render(a,d){a.openNode(&quot;definedName&quot;,{name:d.name,localSheetId:d.localSheetId}),a.writeText(d.ranges.join(&quot;,&quot;)),a.closeNode()}parseOpen(a){return a.name===&quot;definedName&quot;?(this._parsedName=a.attributes.name,this._parsedLocalSheetId=a.attributes.localSheetId,this._parsedText=[],!0):!1}parseText(a){this._parsedText.push(a)}parseClose(){return this.model={name:this._parsedName,ranges:c(this._parsedText.join(&quot;&quot;))},this._parsedLocalSheetId!==void 0&amp;&amp;(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{&quot;../../../utils/col-cache&quot;:19,&quot;../base-xform&quot;:32}],34:[function(t,n,o){const s=t(&quot;../../../utils/utils&quot;),l=t(&quot;../base-xform&quot;);n.exports=class extends l{render(u,c){u.leafNode(&quot;sheet&quot;,{sheetId:c.id,name:c.name,state:c.state,&quot;r:id&quot;:c.rId})}parseOpen(u){return u.name===&quot;sheet&quot;&amp;&amp;(this.model={name:s.xmlDecode(u.attributes.name),id:parseInt(u.attributes.sheetId,10),state:u.attributes.state,rId:u.attributes[&quot;r:id&quot;]},!0)}parseText(){}parseClose(){return!1}}},{&quot;../../../utils/utils&quot;:27,&quot;../base-xform&quot;:32}],35:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{render(l,u){l.leafNode(&quot;calcPr&quot;,{calcId:171027,fullCalcOnLoad:u.fullCalcOnLoad?1:void 0})}parseOpen(l){return l.name===&quot;calcPr&quot;&amp;&amp;(this.model={},!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],36:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{render(l,u){l.leafNode(&quot;workbookPr&quot;,{date1904:u.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(l){return l.name===&quot;workbookPr&quot;&amp;&amp;(this.model={date1904:l.attributes.date1904===&quot;1&quot;},!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],37:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{render(l,u){const c={xWindow:u.x||0,yWindow:u.y||0,windowWidth:u.width||12e3,windowHeight:u.height||24e3,firstSheet:u.firstSheet,activeTab:u.activeTab};u.visibility&amp;&amp;u.visibility!==&quot;visible&quot;&amp;&amp;(c.visibility=u.visibility),l.leafNode(&quot;workbookView&quot;,c)}parseOpen(l){if(l.name===&quot;workbookView&quot;){const u=this.model={},c=function(d,f,h){const m=f!==void 0?u[d]=f:h;m!==void 0&amp;&amp;(u[d]=m)},a=function(d,f,h){const m=f!==void 0?u[d]=parseInt(f,10):h;m!==void 0&amp;&amp;(u[d]=m)};return a(&quot;x&quot;,l.attributes.xWindow,0),a(&quot;y&quot;,l.attributes.yWindow,0),a(&quot;width&quot;,l.attributes.windowWidth,25e3),a(&quot;height&quot;,l.attributes.windowHeight,1e4),c(&quot;visibility&quot;,l.attributes.visibility,&quot;visible&quot;),a(&quot;activeTab&quot;,l.attributes.activeTab,void 0),a(&quot;firstSheet&quot;,l.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],38:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../../../utils/col-cache&quot;),u=t(&quot;../../../utils/xml-stream&quot;),c=t(&quot;../base-xform&quot;),a=t(&quot;../static-xform&quot;),d=t(&quot;../list-xform&quot;),f=t(&quot;./defined-name-xform&quot;),h=t(&quot;./sheet-xform&quot;),m=t(&quot;./workbook-view-xform&quot;),p=t(&quot;./workbook-properties-xform&quot;),x=t(&quot;./workbook-calc-properties-xform&quot;);class g extends c{constructor(){super(),this.map={fileVersion:g.STATIC_XFORMS.fileVersion,workbookPr:new p,bookViews:new d({tag:&quot;bookViews&quot;,count:!1,childXform:new m}),sheets:new d({tag:&quot;sheets&quot;,count:!1,childXform:new h}),definedNames:new d({tag:&quot;definedNames&quot;,count:!1,childXform:new f}),calcPr:new x}}prepare(v){v.sheets=v.worksheets;const _=[];let S=0;v.sheets.forEach(A=&gt;{if(A.pageSetup&amp;&amp;A.pageSetup.printArea&amp;&amp;A.pageSetup.printArea.split(&quot;&amp;&amp;&quot;).forEach(I=&gt;{const V=I.split(&quot;:&quot;),F={name:&quot;_xlnm.Print_Area&quot;,ranges:[`&#039;${A.name}&#039;!$${V[0]}:$${V[1]}`],localSheetId:S};_.push(F)}),A.pageSetup&amp;&amp;(A.pageSetup.printTitlesRow||A.pageSetup.printTitlesColumn)){const I=[];if(A.pageSetup.printTitlesColumn){const F=A.pageSetup.printTitlesColumn.split(&quot;:&quot;);I.push(`&#039;${A.name}&#039;!$${F[0]}:$${F[1]}`)}if(A.pageSetup.printTitlesRow){const F=A.pageSetup.printTitlesRow.split(&quot;:&quot;);I.push(`&#039;${A.name}&#039;!$${F[0]}:$${F[1]}`)}const V={name:&quot;_xlnm.Print_Titles&quot;,ranges:I,localSheetId:S};_.push(V)}S++}),_.length&amp;&amp;(v.definedNames=v.definedNames.concat(_)),(v.media||[]).forEach((A,I)=&gt;{A.name=A.type+(I+1)})}render(v,_){v.openXml(u.StdDocAttributes),v.openNode(&quot;workbook&quot;,g.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(v),this.map.workbookPr.render(v,_.properties),this.map.bookViews.render(v,_.views),this.map.sheets.render(v,_.sheets),this.map.definedNames.render(v,_.definedNames),this.map.calcPr.render(v,_.calcProperties),v.closeNode()}parseOpen(v){return this.parser?(this.parser.parseOpen(v),!0):(v.name===&quot;workbook&quot;||(this.parser=this.map[v.name],this.parser&amp;&amp;this.parser.parseOpen(v)),!0)}parseText(v){this.parser&amp;&amp;this.parser.parseText(v)}parseClose(v){return this.parser?(this.parser.parseClose(v)||(this.parser=void 0),!0):v===&quot;workbook&quot;?(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&amp;&amp;(this.model.definedNames=this.map.definedNames.model),!1):!0}reconcile(v){const _=(v.workbookRels||[]).reduce((F,q)=&gt;(F[q.Id]=q,F),{}),S=[];let A,I=0;(v.sheets||[]).forEach(F=&gt;{const q=_[F.rId];q&amp;&amp;(A=v.worksheetHash[&quot;xl/&quot;+q.Target.replace(/^(\s|\/xl\/)+/,&quot;&quot;)],A&amp;&amp;(A.name=F.name,A.id=F.id,A.state=F.state,S[I++]=A))});const V=[];s.each(v.definedNames,F=&gt;{if(F.name===&quot;_xlnm.Print_Area&quot;){if(A=S[F.localSheetId],A){A.pageSetup||(A.pageSetup={});const q=l.decodeEx(F.ranges[0]);A.pageSetup.printArea=A.pageSetup.printArea?`${A.pageSetup.printArea}&amp;&amp;${q.dimensions}`:q.dimensions}}else if(F.name===&quot;_xlnm.Print_Titles&quot;){if(A=S[F.localSheetId],A){A.pageSetup||(A.pageSetup={});const q=F.ranges.join(&quot;,&quot;),H=/\$/g,B=/\$\d+:\$\d+/,K=q.match(B);if(K&amp;&amp;K.length){const E=K[0];A.pageSetup.printTitlesRow=E.replace(H,&quot;&quot;)}const T=/\$[A-Z]+:\$[A-Z]+/,L=q.match(T);if(L&amp;&amp;L.length){const E=L[0];A.pageSetup.printTitlesColumn=E.replace(H,&quot;&quot;)}}}else V.push(F)}),v.definedNames=V,v.media.forEach((F,q)=&gt;{F.index=q})}}g.WORKBOOK_ATTRIBUTES={xmlns:&quot;http://schemas.openxmlformats.org/spreadsheetml/2006/main&quot;,&quot;xmlns:r&quot;:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships&quot;,&quot;xmlns:mc&quot;:&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;,&quot;mc:Ignorable&quot;:&quot;x15&quot;,&quot;xmlns:x15&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2010/11/main&quot;},g.STATIC_XFORMS={fileVersion:new a({tag:&quot;fileVersion&quot;,$:{appName:&quot;xl&quot;,lastEdited:5,lowestEdited:5,rupBuild:9303}})},n.exports=g},{&quot;../../../utils/col-cache&quot;:19,&quot;../../../utils/under-dash&quot;:26,&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;../list-xform&quot;:71,&quot;../static-xform&quot;:120,&quot;./defined-name-xform&quot;:33,&quot;./sheet-xform&quot;:34,&quot;./workbook-calc-properties-xform&quot;:35,&quot;./workbook-properties-xform&quot;:36,&quot;./workbook-view-xform&quot;:37}],39:[function(t,n,o){const s=t(&quot;../strings/rich-text-xform&quot;),l=t(&quot;../../../utils/utils&quot;),u=t(&quot;../base-xform&quot;),c=n.exports=function(a){this.model=a};l.inherits(c,u,{get tag(){return&quot;r&quot;},get richTextXform(){return this._richTextXform||(this._richTextXform=new s),this._richTextXform},render(a,d){d=d||this.model,a.openNode(&quot;comment&quot;,{ref:d.ref,authorId:0}),a.openNode(&quot;text&quot;),d&amp;&amp;d.note&amp;&amp;d.note.texts&amp;&amp;d.note.texts.forEach(f=&gt;{this.richTextXform.render(a,f)}),a.closeNode(),a.closeNode()},parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case&quot;comment&quot;:return this.model={type:&quot;note&quot;,note:{texts:[]},...a.attributes},!0;case&quot;r&quot;:return this.parser=this.richTextXform,this.parser.parseOpen(a),!0;default:return!1}},parseText(a){this.parser&amp;&amp;this.parser.parseText(a)},parseClose(a){switch(a){case&quot;comment&quot;:return!1;case&quot;r&quot;:return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&amp;&amp;this.parser.parseClose(a),!0}}})},{&quot;../../../utils/utils&quot;:27,&quot;../base-xform&quot;:32,&quot;../strings/rich-text-xform&quot;:122}],40:[function(t,n,o){const s=t(&quot;../../../utils/xml-stream&quot;),l=t(&quot;../../../utils/utils&quot;),u=t(&quot;../base-xform&quot;),c=t(&quot;./comment-xform&quot;),a=n.exports=function(){this.map={comment:new c}};l.inherits(a,u,{COMMENTS_ATTRIBUTES:{xmlns:&quot;http://schemas.openxmlformats.org/spreadsheetml/2006/main&quot;}},{render(d,f){f=f||this.model,d.openXml(s.StdDocAttributes),d.openNode(&quot;comments&quot;,a.COMMENTS_ATTRIBUTES),d.openNode(&quot;authors&quot;),d.leafNode(&quot;author&quot;,null,&quot;Author&quot;),d.closeNode(),d.openNode(&quot;commentList&quot;),f.comments.forEach(h=&gt;{this.map.comment.render(d,h)}),d.closeNode(),d.closeNode()},parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case&quot;commentList&quot;:return this.model={comments:[]},!0;case&quot;comment&quot;:return this.parser=this.map.comment,this.parser.parseOpen(d),!0;default:return!1}},parseText(d){this.parser&amp;&amp;this.parser.parseText(d)},parseClose(d){switch(d){case&quot;commentList&quot;:return!1;case&quot;comment&quot;:return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&amp;&amp;this.parser.parseClose(d),!0}}})},{&quot;../../../utils/utils&quot;:27,&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;./comment-xform&quot;:39}],41:[function(t,n,o){const s=t(&quot;../../base-xform&quot;);n.exports=class extends s{constructor(l){super(),this._model=l}get tag(){return this._model&amp;&amp;this._model.tag}render(l,u,c){(u===c[2]||this.tag===&quot;x:SizeWithCells&quot;&amp;&amp;u===c[1])&amp;&amp;l.leafNode(this.tag)}parseOpen(l){return l.name===this.tag?(this.model={},this.model[this.tag]=!0,!0):!1}parseText(){}parseClose(){return!1}}},{&quot;../../base-xform&quot;:32}],42:[function(t,n,o){const s=t(&quot;../../base-xform&quot;);n.exports=class extends s{constructor(l){super(),this._model=l}get tag(){return this._model&amp;&amp;this._model.tag}render(l,u){l.leafNode(this.tag,null,u)}parseOpen(l){return l.name===this.tag?(this.text=&quot;&quot;,!0):!1}parseText(l){this.text=l}parseClose(){return!1}}},{&quot;../../base-xform&quot;:32}],43:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;x:Anchor&quot;}getAnchorRect(l){const u=Math.floor(l.left),c=Math.floor(68*(l.left-u)),a=Math.floor(l.top),d=Math.floor(18*(l.top-a)),f=Math.floor(l.right),h=Math.floor(68*(l.right-f)),m=Math.floor(l.bottom);return[u,c,a,d,f,h,m,Math.floor(18*(l.bottom-m))]}getDefaultRect(l){const u=l.col,c=Math.max(l.row-2,0);return[u,6,c,14,u+2,2,c+4,16]}render(l,u){const c=u.anchor?this.getAnchorRect(u.anchor):this.getDefaultRect(u.refAddress);l.leafNode(&quot;x:Anchor&quot;,null,c.join(&quot;, &quot;))}parseOpen(l){return l.name===this.tag?(this.text=&quot;&quot;,!0):!1}parseText(l){this.text=l}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],44:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;./vml-anchor-xform&quot;),u=t(&quot;./style/vml-protection-xform&quot;),c=t(&quot;./style/vml-position-xform&quot;),a=[&quot;twoCells&quot;,&quot;oneCells&quot;,&quot;absolute&quot;];n.exports=class extends s{constructor(){super(),this.map={&quot;x:Anchor&quot;:new l,&quot;x:Locked&quot;:new u({tag:&quot;x:Locked&quot;}),&quot;x:LockText&quot;:new u({tag:&quot;x:LockText&quot;}),&quot;x:SizeWithCells&quot;:new c({tag:&quot;x:SizeWithCells&quot;}),&quot;x:MoveWithCells&quot;:new c({tag:&quot;x:MoveWithCells&quot;})}}get tag(){return&quot;x:ClientData&quot;}render(d,f){const{protection:h,editAs:m}=f.note;d.openNode(this.tag,{ObjectType:&quot;Note&quot;}),this.map[&quot;x:MoveWithCells&quot;].render(d,m,a),this.map[&quot;x:SizeWithCells&quot;].render(d,m,a),this.map[&quot;x:Anchor&quot;].render(d,f),this.map[&quot;x:Locked&quot;].render(d,h.locked),d.leafNode(&quot;x:AutoFill&quot;,null,&quot;False&quot;),this.map[&quot;x:LockText&quot;].render(d,h.lockText),d.leafNode(&quot;x:Row&quot;,null,f.refAddress.row-1),d.leafNode(&quot;x:Column&quot;,null,f.refAddress.col-1),d.closeNode()}parseOpen(d){return d.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:&quot;&quot;}):(this.parser=this.map[d.name],this.parser&amp;&amp;this.parser.parseOpen(d)),!0}parseText(d){this.parser&amp;&amp;this.parser.parseText(d)}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.parser=void 0),!0):d===this.tag?(this.normalizeModel(),!1):!0}normalizeModel(){const d=Object.assign({},this.map[&quot;x:MoveWithCells&quot;].model,this.map[&quot;x:SizeWithCells&quot;].model),f=Object.keys(d).length;this.model.editAs=a[f],this.model.anchor=this.map[&quot;x:Anchor&quot;].text,this.model.protection.locked=this.map[&quot;x:Locked&quot;].text,this.model.protection.lockText=this.map[&quot;x:LockText&quot;].text}}},{&quot;../base-xform&quot;:32,&quot;./style/vml-position-xform&quot;:41,&quot;./style/vml-protection-xform&quot;:42,&quot;./vml-anchor-xform&quot;:43}],45:[function(t,n,o){const s=t(&quot;../../../utils/xml-stream&quot;),l=t(&quot;../base-xform&quot;),u=t(&quot;./vml-shape-xform&quot;);class c extends l{constructor(){super(),this.map={&quot;v:shape&quot;:new u}}get tag(){return&quot;xml&quot;}render(d,f){d.openXml(s.StdDocAttributes),d.openNode(this.tag,c.DRAWING_ATTRIBUTES),d.openNode(&quot;o:shapelayout&quot;,{&quot;v:ext&quot;:&quot;edit&quot;}),d.leafNode(&quot;o:idmap&quot;,{&quot;v:ext&quot;:&quot;edit&quot;,data:1}),d.closeNode(),d.openNode(&quot;v:shapetype&quot;,{id:&quot;_x0000_t202&quot;,coordsize:&quot;21600,21600&quot;,&quot;o:spt&quot;:202,path:&quot;m,l,21600r21600,l21600,xe&quot;}),d.leafNode(&quot;v:stroke&quot;,{joinstyle:&quot;miter&quot;}),d.leafNode(&quot;v:path&quot;,{gradientshapeok:&quot;t&quot;,&quot;o:connecttype&quot;:&quot;rect&quot;}),d.closeNode(),f.comments.forEach((h,m)=&gt;{this.map[&quot;v:shape&quot;].render(d,h,m)}),d.closeNode()}parseOpen(d){return this.parser?(this.parser.parseOpen(d),!0):(d.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[d.name],this.parser&amp;&amp;this.parser.parseOpen(d)),!0)}parseText(d){this.parser&amp;&amp;this.parser.parseText(d)}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):d!==this.tag}reconcile(d,f){d.anchors.forEach(h=&gt;{h.br?this.map[&quot;xdr:twoCellAnchor&quot;].reconcile(h,f):this.map[&quot;xdr:oneCellAnchor&quot;].reconcile(h,f)})}}c.DRAWING_ATTRIBUTES={&quot;xmlns:v&quot;:&quot;urn:schemas-microsoft-com:vml&quot;,&quot;xmlns:o&quot;:&quot;urn:schemas-microsoft-com:office:office&quot;,&quot;xmlns:x&quot;:&quot;urn:schemas-microsoft-com:office:excel&quot;},n.exports=c},{&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;./vml-shape-xform&quot;:46}],46:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;./vml-textbox-xform&quot;),u=t(&quot;./vml-client-data-xform&quot;);class c extends s{constructor(){super(),this.map={&quot;v:textbox&quot;:new l,&quot;x:ClientData&quot;:new u}}get tag(){return&quot;v:shape&quot;}render(d,f,h){d.openNode(&quot;v:shape&quot;,c.V_SHAPE_ATTRIBUTES(f,h)),d.leafNode(&quot;v:fill&quot;,{color2:&quot;infoBackground [80]&quot;}),d.leafNode(&quot;v:shadow&quot;,{color:&quot;none [81]&quot;,obscured:&quot;t&quot;}),d.leafNode(&quot;v:path&quot;,{&quot;o:connecttype&quot;:&quot;none&quot;}),this.map[&quot;v:textbox&quot;].render(d,f),this.map[&quot;x:ClientData&quot;].render(d,f),d.closeNode()}parseOpen(d){return this.parser?(this.parser.parseOpen(d),!0):(d.name===this.tag?(this.reset(),this.model={margins:{insetmode:d.attributes[&quot;o:insetmode&quot;]},anchor:&quot;&quot;,editAs:&quot;&quot;,protection:{}}):(this.parser=this.map[d.name],this.parser&amp;&amp;this.parser.parseOpen(d)),!0)}parseText(d){this.parser&amp;&amp;this.parser.parseText(d)}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.parser=void 0),!0):d===this.tag?(this.model.margins.inset=this.map[&quot;v:textbox&quot;].model&amp;&amp;this.map[&quot;v:textbox&quot;].model.inset,this.model.protection=this.map[&quot;x:ClientData&quot;].model&amp;&amp;this.map[&quot;x:ClientData&quot;].model.protection,this.model.anchor=this.map[&quot;x:ClientData&quot;].model&amp;&amp;this.map[&quot;x:ClientData&quot;].model.anchor,this.model.editAs=this.map[&quot;x:ClientData&quot;].model&amp;&amp;this.map[&quot;x:ClientData&quot;].model.editAs,!1):!0}}c.V_SHAPE_ATTRIBUTES=(a,d)=&gt;({id:&quot;_x0000_s&quot;+(1025+d),type:&quot;#_x0000_t202&quot;,style:&quot;position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden&quot;,fillcolor:&quot;infoBackground [80]&quot;,strokecolor:&quot;none [81]&quot;,&quot;o:insetmode&quot;:a.note.margins&amp;&amp;a.note.margins.insetmode}),n.exports=c},{&quot;../base-xform&quot;:32,&quot;./vml-client-data-xform&quot;:44,&quot;./vml-textbox-xform&quot;:47}],47:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;v:textbox&quot;}conversionUnit(l,u,c){return`${parseFloat(l)*u.toFixed(2)}${c}`}reverseConversionUnit(l){return(l||&quot;&quot;).split(&quot;,&quot;).map(u=&gt;Number(parseFloat(this.conversionUnit(parseFloat(u),.1,&quot;&quot;)).toFixed(2)))}render(l,u){const c={style:&quot;mso-direction-alt:auto&quot;};if(u&amp;&amp;u.note){let{inset:a}=u.note&amp;&amp;u.note.margins;Array.isArray(a)&amp;&amp;(a=a.map(d=&gt;this.conversionUnit(d,10,&quot;mm&quot;)).join(&quot;,&quot;)),a&amp;&amp;(c.inset=a)}l.openNode(&quot;v:textbox&quot;,c),l.leafNode(&quot;div&quot;,{style:&quot;text-align:left&quot;}),l.closeNode()}parseOpen(l){return l.name===this.tag&amp;&amp;(this.model={inset:this.reverseConversionUnit(l.attributes.inset)}),!0}parseText(){}parseClose(l){return l!==this.tag}}},{&quot;../base-xform&quot;:32}],48:[function(t,n,o){const s=t(&quot;./base-xform&quot;);n.exports=class extends s{createNewModel(l){return{}}parseOpen(l){return this.parser=this.parser||this.map[l.name],this.parser?(this.parser.parseOpen(l),!0):l.name===this.tag&amp;&amp;(this.model=this.createNewModel(l),!0)}parseText(l){this.parser&amp;&amp;this.parser.parseText(l)}onParserClose(l,u){this.model[l]=u.model}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.onParserClose(l,this.parser),this.parser=void 0),!0):l!==this.tag}}},{&quot;./base-xform&quot;:32}],49:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{render(l,u){l.openNode(&quot;HeadingPairs&quot;),l.openNode(&quot;vt:vector&quot;,{size:2,baseType:&quot;variant&quot;}),l.openNode(&quot;vt:variant&quot;),l.leafNode(&quot;vt:lpstr&quot;,void 0,&quot;Worksheets&quot;),l.closeNode(),l.openNode(&quot;vt:variant&quot;),l.leafNode(&quot;vt:i4&quot;,void 0,u.length),l.closeNode(),l.closeNode(),l.closeNode()}parseOpen(l){return l.name===&quot;HeadingPairs&quot;}parseText(){}parseClose(l){return l!==&quot;HeadingPairs&quot;}}},{&quot;../base-xform&quot;:32}],50:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{render(l,u){l.openNode(&quot;TitlesOfParts&quot;),l.openNode(&quot;vt:vector&quot;,{size:u.length,baseType:&quot;lpstr&quot;}),u.forEach(c=&gt;{l.leafNode(&quot;vt:lpstr&quot;,void 0,c.name)}),l.closeNode(),l.closeNode()}parseOpen(l){return l.name===&quot;TitlesOfParts&quot;}parseText(){}parseClose(l){return l!==&quot;TitlesOfParts&quot;}}},{&quot;../base-xform&quot;:32}],51:[function(t,n,o){const s=t(&quot;../../../utils/xml-stream&quot;),l=t(&quot;../base-xform&quot;),u=t(&quot;../simple/string-xform&quot;),c=t(&quot;./app-heading-pairs-xform&quot;),a=t(&quot;./app-titles-of-parts-xform&quot;);class d extends l{constructor(){super(),this.map={Company:new u({tag:&quot;Company&quot;}),Manager:new u({tag:&quot;Manager&quot;}),HeadingPairs:new c,TitleOfParts:new a}}render(h,m){h.openXml(s.StdDocAttributes),h.openNode(&quot;Properties&quot;,d.PROPERTY_ATTRIBUTES),h.leafNode(&quot;Application&quot;,void 0,&quot;Microsoft Excel&quot;),h.leafNode(&quot;DocSecurity&quot;,void 0,&quot;0&quot;),h.leafNode(&quot;ScaleCrop&quot;,void 0,&quot;false&quot;),this.map.HeadingPairs.render(h,m.worksheets),this.map.TitleOfParts.render(h,m.worksheets),this.map.Company.render(h,m.company||&quot;&quot;),this.map.Manager.render(h,m.manager),h.leafNode(&quot;LinksUpToDate&quot;,void 0,&quot;false&quot;),h.leafNode(&quot;SharedDoc&quot;,void 0,&quot;false&quot;),h.leafNode(&quot;HyperlinksChanged&quot;,void 0,&quot;false&quot;),h.leafNode(&quot;AppVersion&quot;,void 0,&quot;16.0300&quot;),h.closeNode()}parseOpen(h){return this.parser?(this.parser.parseOpen(h),!0):h.name===&quot;Properties&quot;?!0:(this.parser=this.map[h.name],!!this.parser&amp;&amp;(this.parser.parseOpen(h),!0))}parseText(h){this.parser&amp;&amp;this.parser.parseText(h)}parseClose(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h===&quot;Properties&quot;?(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1):!0}}d.DateFormat=function(f){return f.toISOString().replace(/[.]\d{3,6}/,&quot;&quot;)},d.DateAttrs={&quot;xsi:type&quot;:&quot;dcterms:W3CDTF&quot;},d.PROPERTY_ATTRIBUTES={xmlns:&quot;http://schemas.openxmlformats.org/officeDocument/2006/extended-properties&quot;,&quot;xmlns:vt&quot;:&quot;http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes&quot;},n.exports=d},{&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;../simple/string-xform&quot;:119,&quot;./app-heading-pairs-xform&quot;:49,&quot;./app-titles-of-parts-xform&quot;:50}],52:[function(t,n,o){const s=t(&quot;../../../utils/xml-stream&quot;),l=t(&quot;../base-xform&quot;);class u extends l{render(a,d){a.openXml(s.StdDocAttributes),a.openNode(&quot;Types&quot;,u.PROPERTY_ATTRIBUTES);const f={};(d.media||[]).forEach(h=&gt;{if(h.type===&quot;image&quot;){const m=h.extension;f[m]||(f[m]=!0,a.leafNode(&quot;Default&quot;,{Extension:m,ContentType:&quot;image/&quot;+m}))}}),a.leafNode(&quot;Default&quot;,{Extension:&quot;rels&quot;,ContentType:&quot;application/vnd.openxmlformats-package.relationships+xml&quot;}),a.leafNode(&quot;Default&quot;,{Extension:&quot;xml&quot;,ContentType:&quot;application/xml&quot;}),a.leafNode(&quot;Override&quot;,{PartName:&quot;/xl/workbook.xml&quot;,ContentType:&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml&quot;}),d.worksheets.forEach(h=&gt;{const m=`/xl/worksheets/sheet${h.id}.xml`;a.leafNode(&quot;Override&quot;,{PartName:m,ContentType:&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml&quot;})}),a.leafNode(&quot;Override&quot;,{PartName:&quot;/xl/theme/theme1.xml&quot;,ContentType:&quot;application/vnd.openxmlformats-officedocument.theme+xml&quot;}),a.leafNode(&quot;Override&quot;,{PartName:&quot;/xl/styles.xml&quot;,ContentType:&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml&quot;}),d.sharedStrings&amp;&amp;d.sharedStrings.count&amp;&amp;a.leafNode(&quot;Override&quot;,{PartName:&quot;/xl/sharedStrings.xml&quot;,ContentType:&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml&quot;}),d.tables&amp;&amp;d.tables.forEach(h=&gt;{a.leafNode(&quot;Override&quot;,{PartName:&quot;/xl/tables/&quot;+h.target,ContentType:&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml&quot;})}),d.drawings&amp;&amp;d.drawings.forEach(h=&gt;{a.leafNode(&quot;Override&quot;,{PartName:`/xl/drawings/${h.name}.xml`,ContentType:&quot;application/vnd.openxmlformats-officedocument.drawing+xml&quot;})}),d.commentRefs&amp;&amp;(a.leafNode(&quot;Default&quot;,{Extension:&quot;vml&quot;,ContentType:&quot;application/vnd.openxmlformats-officedocument.vmlDrawing&quot;}),d.commentRefs.forEach(h=&gt;{let{commentName:m}=h;a.leafNode(&quot;Override&quot;,{PartName:`/xl/${m}.xml`,ContentType:&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml&quot;})})),a.leafNode(&quot;Override&quot;,{PartName:&quot;/docProps/core.xml&quot;,ContentType:&quot;application/vnd.openxmlformats-package.core-properties+xml&quot;}),a.leafNode(&quot;Override&quot;,{PartName:&quot;/docProps/app.xml&quot;,ContentType:&quot;application/vnd.openxmlformats-officedocument.extended-properties+xml&quot;}),a.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}u.PROPERTY_ATTRIBUTES={xmlns:&quot;http://schemas.openxmlformats.org/package/2006/content-types&quot;},n.exports=u},{&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32}],53:[function(t,n,o){const s=t(&quot;../../../utils/xml-stream&quot;),l=t(&quot;../base-xform&quot;),u=t(&quot;../simple/date-xform&quot;),c=t(&quot;../simple/string-xform&quot;),a=t(&quot;../simple/integer-xform&quot;);class d extends l{constructor(){super(),this.map={&quot;dc:creator&quot;:new c({tag:&quot;dc:creator&quot;}),&quot;dc:title&quot;:new c({tag:&quot;dc:title&quot;}),&quot;dc:subject&quot;:new c({tag:&quot;dc:subject&quot;}),&quot;dc:description&quot;:new c({tag:&quot;dc:description&quot;}),&quot;dc:identifier&quot;:new c({tag:&quot;dc:identifier&quot;}),&quot;dc:language&quot;:new c({tag:&quot;dc:language&quot;}),&quot;cp:keywords&quot;:new c({tag:&quot;cp:keywords&quot;}),&quot;cp:category&quot;:new c({tag:&quot;cp:category&quot;}),&quot;cp:lastModifiedBy&quot;:new c({tag:&quot;cp:lastModifiedBy&quot;}),&quot;cp:lastPrinted&quot;:new u({tag:&quot;cp:lastPrinted&quot;,format:d.DateFormat}),&quot;cp:revision&quot;:new a({tag:&quot;cp:revision&quot;}),&quot;cp:version&quot;:new c({tag:&quot;cp:version&quot;}),&quot;cp:contentStatus&quot;:new c({tag:&quot;cp:contentStatus&quot;}),&quot;cp:contentType&quot;:new c({tag:&quot;cp:contentType&quot;}),&quot;dcterms:created&quot;:new u({tag:&quot;dcterms:created&quot;,attrs:d.DateAttrs,format:d.DateFormat}),&quot;dcterms:modified&quot;:new u({tag:&quot;dcterms:modified&quot;,attrs:d.DateAttrs,format:d.DateFormat})}}render(h,m){h.openXml(s.StdDocAttributes),h.openNode(&quot;cp:coreProperties&quot;,d.CORE_PROPERTY_ATTRIBUTES),this.map[&quot;dc:creator&quot;].render(h,m.creator),this.map[&quot;dc:title&quot;].render(h,m.title),this.map[&quot;dc:subject&quot;].render(h,m.subject),this.map[&quot;dc:description&quot;].render(h,m.description),this.map[&quot;dc:identifier&quot;].render(h,m.identifier),this.map[&quot;dc:language&quot;].render(h,m.language),this.map[&quot;cp:keywords&quot;].render(h,m.keywords),this.map[&quot;cp:category&quot;].render(h,m.category),this.map[&quot;cp:lastModifiedBy&quot;].render(h,m.lastModifiedBy),this.map[&quot;cp:lastPrinted&quot;].render(h,m.lastPrinted),this.map[&quot;cp:revision&quot;].render(h,m.revision),this.map[&quot;cp:version&quot;].render(h,m.version),this.map[&quot;cp:contentStatus&quot;].render(h,m.contentStatus),this.map[&quot;cp:contentType&quot;].render(h,m.contentType),this.map[&quot;dcterms:created&quot;].render(h,m.created),this.map[&quot;dcterms:modified&quot;].render(h,m.modified),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case&quot;cp:coreProperties&quot;:case&quot;coreProperties&quot;:return!0;default:if(this.parser=this.map[h.name],this.parser)return this.parser.parseOpen(h),!0;throw new Error(&quot;Unexpected xml node in parseOpen: &quot;+JSON.stringify(h))}}parseText(h){this.parser&amp;&amp;this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case&quot;cp:coreProperties&quot;:case&quot;coreProperties&quot;:return this.model={creator:this.map[&quot;dc:creator&quot;].model,title:this.map[&quot;dc:title&quot;].model,subject:this.map[&quot;dc:subject&quot;].model,description:this.map[&quot;dc:description&quot;].model,identifier:this.map[&quot;dc:identifier&quot;].model,language:this.map[&quot;dc:language&quot;].model,keywords:this.map[&quot;cp:keywords&quot;].model,category:this.map[&quot;cp:category&quot;].model,lastModifiedBy:this.map[&quot;cp:lastModifiedBy&quot;].model,lastPrinted:this.map[&quot;cp:lastPrinted&quot;].model,revision:this.map[&quot;cp:revision&quot;].model,contentStatus:this.map[&quot;cp:contentStatus&quot;].model,contentType:this.map[&quot;cp:contentType&quot;].model,created:this.map[&quot;dcterms:created&quot;].model,modified:this.map[&quot;dcterms:modified&quot;].model},!1;default:throw new Error(&quot;Unexpected xml node in parseClose: &quot;+h)}}}d.DateFormat=function(f){return f.toISOString().replace(/[.]\d{3}/,&quot;&quot;)},d.DateAttrs={&quot;xsi:type&quot;:&quot;dcterms:W3CDTF&quot;},d.CORE_PROPERTY_ATTRIBUTES={&quot;xmlns:cp&quot;:&quot;http://schemas.openxmlformats.org/package/2006/metadata/core-properties&quot;,&quot;xmlns:dc&quot;:&quot;http://purl.org/dc/elements/1.1/&quot;,&quot;xmlns:dcterms&quot;:&quot;http://purl.org/dc/terms/&quot;,&quot;xmlns:dcmitype&quot;:&quot;http://purl.org/dc/dcmitype/&quot;,&quot;xmlns:xsi&quot;:&quot;http://www.w3.org/2001/XMLSchema-instance&quot;},n.exports=d},{&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;../simple/date-xform&quot;:117,&quot;../simple/integer-xform&quot;:118,&quot;../simple/string-xform&quot;:119}],54:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{render(l,u){l.leafNode(&quot;Relationship&quot;,u)}parseOpen(l){return l.name===&quot;Relationship&quot;?(this.model=l.attributes,!0):!1}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],55:[function(t,n,o){const s=t(&quot;../../../utils/xml-stream&quot;),l=t(&quot;../base-xform&quot;),u=t(&quot;./relationship-xform&quot;);class c extends l{constructor(){super(),this.map={Relationship:new u}}render(d,f){f=f||this._values,d.openXml(s.StdDocAttributes),d.openNode(&quot;Relationships&quot;,c.RELATIONSHIPS_ATTRIBUTES),f.forEach(h=&gt;{this.map.Relationship.render(d,h)}),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case&quot;Relationships&quot;:return this.model=[],!0;default:if(this.parser=this.map[d.name],this.parser)return this.parser.parseOpen(d),!0;throw new Error(&quot;Unexpected xml node in parseOpen: &quot;+JSON.stringify(d))}}parseText(d){this.parser&amp;&amp;this.parser.parseText(d)}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(d===&quot;Relationships&quot;)return!1;throw new Error(&quot;Unexpected xml node in parseClose: &quot;+d)}}c.RELATIONSHIPS_ATTRIBUTES={xmlns:&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot;},n.exports=c},{&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;./relationship-xform&quot;:54}],56:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{parseOpen(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?(this.reset(),this.model={range:{editAs:l.attributes.editAs||&quot;oneCell&quot;}}):(this.parser=this.map[l.name],this.parser&amp;&amp;this.parser.parseOpen(l)),!0)}parseText(l){this.parser&amp;&amp;this.parser.parseText(l)}reconcilePicture(l,u){if(l&amp;&amp;l.rId){const c=u.rels[l.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(c){const a=c[1],d=u.mediaIndex[a];return u.media[d]}}}}},{&quot;../base-xform&quot;:32}],57:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;./blip-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={&quot;a:blip&quot;:new l}}get tag(){return&quot;xdr:blipFill&quot;}render(u,c){u.openNode(this.tag),this.map[&quot;a:blip&quot;].render(u,c),u.openNode(&quot;a:stretch&quot;),u.leafNode(&quot;a:fillRect&quot;),u.closeNode(),u.closeNode()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?this.reset():(this.parser=this.map[u.name],this.parser&amp;&amp;this.parser.parseOpen(u)),!0)}parseText(){}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u===this.tag?(this.model=this.map[&quot;a:blip&quot;].model,!1):!0}}},{&quot;../base-xform&quot;:32,&quot;./blip-xform&quot;:58}],58:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;a:blip&quot;}render(l,u){l.leafNode(this.tag,{&quot;xmlns:r&quot;:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships&quot;,&quot;r:embed&quot;:u.rId,cstate:&quot;print&quot;})}parseOpen(l){return l.name===this.tag&amp;&amp;(this.model={rId:l.attributes[&quot;r:embed&quot;]}),!0}parseText(){}parseClose(l){return l!==this.tag}}},{&quot;../base-xform&quot;:32}],59:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;xdr:cNvPicPr&quot;}render(l){l.openNode(this.tag),l.leafNode(&quot;a:picLocks&quot;,{noChangeAspect:&quot;1&quot;}),l.closeNode()}parseOpen(l){switch(l.name){case this.tag:default:return!0}}parseText(){}parseClose(l){return l!==this.tag}}},{&quot;../base-xform&quot;:32}],60:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;./hlink-click-xform&quot;),u=t(&quot;./ext-lst-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={&quot;a:hlinkClick&quot;:new l,&quot;a:extLst&quot;:new u}}get tag(){return&quot;xdr:cNvPr&quot;}render(c,a){c.openNode(this.tag,{id:a.index,name:&quot;Picture &quot;+a.index}),this.map[&quot;a:hlinkClick&quot;].render(c,a),this.map[&quot;a:extLst&quot;].render(c,a),c.closeNode()}parseOpen(c){return this.parser?(this.parser.parseOpen(c),!0):(c.name===this.tag?this.reset():(this.parser=this.map[c.name],this.parser&amp;&amp;this.parser.parseOpen(c)),!0)}parseText(){}parseClose(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):c===this.tag?(this.model=this.map[&quot;a:hlinkClick&quot;].model,!1):!0}}},{&quot;../base-xform&quot;:32,&quot;./ext-lst-xform&quot;:63,&quot;./hlink-click-xform&quot;:65}],61:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;../simple/integer-xform&quot;);n.exports=class extends s{constructor(u){super(),this.tag=u.tag,this.map={&quot;xdr:col&quot;:new l({tag:&quot;xdr:col&quot;,zero:!0}),&quot;xdr:colOff&quot;:new l({tag:&quot;xdr:colOff&quot;,zero:!0}),&quot;xdr:row&quot;:new l({tag:&quot;xdr:row&quot;,zero:!0}),&quot;xdr:rowOff&quot;:new l({tag:&quot;xdr:rowOff&quot;,zero:!0})}}render(u,c){u.openNode(this.tag),this.map[&quot;xdr:col&quot;].render(u,c.nativeCol),this.map[&quot;xdr:colOff&quot;].render(u,c.nativeColOff),this.map[&quot;xdr:row&quot;].render(u,c.nativeRow),this.map[&quot;xdr:rowOff&quot;].render(u,c.nativeRowOff),u.closeNode()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?this.reset():(this.parser=this.map[u.name],this.parser&amp;&amp;this.parser.parseOpen(u)),!0)}parseText(u){this.parser&amp;&amp;this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u===this.tag?(this.model={nativeCol:this.map[&quot;xdr:col&quot;].model,nativeColOff:this.map[&quot;xdr:colOff&quot;].model,nativeRow:this.map[&quot;xdr:row&quot;].model,nativeRowOff:this.map[&quot;xdr:rowOff&quot;].model},!1):!0}}},{&quot;../base-xform&quot;:32,&quot;../simple/integer-xform&quot;:118}],62:[function(t,n,o){const s=t(&quot;../../../utils/col-cache&quot;),l=t(&quot;../../../utils/xml-stream&quot;),u=t(&quot;../base-xform&quot;),c=t(&quot;./two-cell-anchor-xform&quot;),a=t(&quot;./one-cell-anchor-xform&quot;);class d extends u{constructor(){super(),this.map={&quot;xdr:twoCellAnchor&quot;:new c,&quot;xdr:oneCellAnchor&quot;:new a}}prepare(h){h.anchors.forEach((m,p)=&gt;{m.anchorType=(function(x){return(typeof x.range==&quot;string&quot;?s.decode(x.range):x.range).br?&quot;xdr:twoCellAnchor&quot;:&quot;xdr:oneCellAnchor&quot;})(m),this.map[m.anchorType].prepare(m,{index:p})})}get tag(){return&quot;xdr:wsDr&quot;}render(h,m){h.openXml(l.StdDocAttributes),h.openNode(this.tag,d.DRAWING_ATTRIBUTES),m.anchors.forEach(p=&gt;{this.map[p.anchorType].render(h,p)}),h.closeNode()}parseOpen(h){return this.parser?(this.parser.parseOpen(h),!0):(h.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[h.name],this.parser&amp;&amp;this.parser.parseOpen(h)),!0)}parseText(h){this.parser&amp;&amp;this.parser.parseText(h)}parseClose(h){return this.parser?(this.parser.parseClose(h)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):h!==this.tag}reconcile(h,m){h.anchors.forEach(p=&gt;{p.br?this.map[&quot;xdr:twoCellAnchor&quot;].reconcile(p,m):this.map[&quot;xdr:oneCellAnchor&quot;].reconcile(p,m)})}}d.DRAWING_ATTRIBUTES={&quot;xmlns:xdr&quot;:&quot;http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing&quot;,&quot;xmlns:a&quot;:&quot;http://schemas.openxmlformats.org/drawingml/2006/main&quot;},n.exports=d},{&quot;../../../utils/col-cache&quot;:19,&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;./one-cell-anchor-xform&quot;:67,&quot;./two-cell-anchor-xform&quot;:70}],63:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;a:extLst&quot;}render(l){l.openNode(this.tag),l.openNode(&quot;a:ext&quot;,{uri:&quot;{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}&quot;}),l.leafNode(&quot;a16:creationId&quot;,{&quot;xmlns:a16&quot;:&quot;http://schemas.microsoft.com/office/drawing/2014/main&quot;,id:&quot;{00000000-0008-0000-0000-000002000000}&quot;}),l.closeNode(),l.closeNode()}parseOpen(l){switch(l.name){case this.tag:default:return!0}}parseText(){}parseClose(l){return l!==this.tag}}},{&quot;../base-xform&quot;:32}],64:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{constructor(l){super(),this.tag=l.tag,this.map={}}render(l,u){l.openNode(this.tag);const c=Math.floor(9525*u.width),a=Math.floor(9525*u.height);l.addAttribute(&quot;cx&quot;,c),l.addAttribute(&quot;cy&quot;,a),l.closeNode()}parseOpen(l){return l.name===this.tag&amp;&amp;(this.model={width:parseInt(l.attributes.cx||&quot;0&quot;,10)/9525,height:parseInt(l.attributes.cy||&quot;0&quot;,10)/9525},!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],65:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;a:hlinkClick&quot;}render(l,u){u.hyperlinks&amp;&amp;u.hyperlinks.rId&amp;&amp;l.leafNode(this.tag,{&quot;xmlns:r&quot;:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships&quot;,&quot;r:id&quot;:u.hyperlinks.rId,tooltip:u.hyperlinks.tooltip})}parseOpen(l){return l.name===this.tag&amp;&amp;(this.model={hyperlinks:{rId:l.attributes[&quot;r:id&quot;],tooltip:l.attributes.tooltip}}),!0}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],66:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;./c-nv-pr-xform&quot;),u=t(&quot;./c-nv-pic-pr-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={&quot;xdr:cNvPr&quot;:new l,&quot;xdr:cNvPicPr&quot;:new u}}get tag(){return&quot;xdr:nvPicPr&quot;}render(c,a){c.openNode(this.tag),this.map[&quot;xdr:cNvPr&quot;].render(c,a),this.map[&quot;xdr:cNvPicPr&quot;].render(c,a),c.closeNode()}parseOpen(c){return this.parser?(this.parser.parseOpen(c),!0):(c.name===this.tag?this.reset():(this.parser=this.map[c.name],this.parser&amp;&amp;this.parser.parseOpen(c)),!0)}parseText(){}parseClose(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):c===this.tag?(this.model=this.map[&quot;xdr:cNvPr&quot;].model,!1):!0}}},{&quot;../base-xform&quot;:32,&quot;./c-nv-pic-pr-xform&quot;:59,&quot;./c-nv-pr-xform&quot;:60}],67:[function(t,n,o){const s=t(&quot;./base-cell-anchor-xform&quot;),l=t(&quot;../static-xform&quot;),u=t(&quot;./cell-position-xform&quot;),c=t(&quot;./ext-xform&quot;),a=t(&quot;./pic-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={&quot;xdr:from&quot;:new u({tag:&quot;xdr:from&quot;}),&quot;xdr:ext&quot;:new c({tag:&quot;xdr:ext&quot;}),&quot;xdr:pic&quot;:new a,&quot;xdr:clientData&quot;:new l({tag:&quot;xdr:clientData&quot;})}}get tag(){return&quot;xdr:oneCellAnchor&quot;}prepare(d,f){this.map[&quot;xdr:pic&quot;].prepare(d.picture,f)}render(d,f){d.openNode(this.tag,{editAs:f.range.editAs||&quot;oneCell&quot;}),this.map[&quot;xdr:from&quot;].render(d,f.range.tl),this.map[&quot;xdr:ext&quot;].render(d,f.range.ext),this.map[&quot;xdr:pic&quot;].render(d,f.picture),this.map[&quot;xdr:clientData&quot;].render(d,{}),d.closeNode()}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.parser=void 0),!0):d===this.tag?(this.model.range.tl=this.map[&quot;xdr:from&quot;].model,this.model.range.ext=this.map[&quot;xdr:ext&quot;].model,this.model.picture=this.map[&quot;xdr:pic&quot;].model,!1):!0}reconcile(d,f){d.medium=this.reconcilePicture(d.picture,f)}}},{&quot;../static-xform&quot;:120,&quot;./base-cell-anchor-xform&quot;:56,&quot;./cell-position-xform&quot;:61,&quot;./ext-xform&quot;:64,&quot;./pic-xform&quot;:68}],68:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;../static-xform&quot;),u=t(&quot;./blip-fill-xform&quot;),c=t(&quot;./nv-pic-pr-xform&quot;),a=t(&quot;./sp-pr&quot;);n.exports=class extends s{constructor(){super(),this.map={&quot;xdr:nvPicPr&quot;:new c,&quot;xdr:blipFill&quot;:new u,&quot;xdr:spPr&quot;:new l(a)}}get tag(){return&quot;xdr:pic&quot;}prepare(d,f){d.index=f.index+1}render(d,f){d.openNode(this.tag),this.map[&quot;xdr:nvPicPr&quot;].render(d,f),this.map[&quot;xdr:blipFill&quot;].render(d,f),this.map[&quot;xdr:spPr&quot;].render(d,f),d.closeNode()}parseOpen(d){return this.parser?(this.parser.parseOpen(d),!0):(d.name===this.tag?this.reset():(this.parser=this.map[d.name],this.parser&amp;&amp;this.parser.parseOpen(d)),!0)}parseText(){}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):d!==this.tag}}},{&quot;../base-xform&quot;:32,&quot;../static-xform&quot;:120,&quot;./blip-fill-xform&quot;:57,&quot;./nv-pic-pr-xform&quot;:66,&quot;./sp-pr&quot;:69}],69:[function(t,n,o){n.exports={tag:&quot;xdr:spPr&quot;,c:[{tag:&quot;a:xfrm&quot;,c:[{tag:&quot;a:off&quot;,$:{x:&quot;0&quot;,y:&quot;0&quot;}},{tag:&quot;a:ext&quot;,$:{cx:&quot;0&quot;,cy:&quot;0&quot;}}]},{tag:&quot;a:prstGeom&quot;,$:{prst:&quot;rect&quot;},c:[{tag:&quot;a:avLst&quot;}]}]}},{}],70:[function(t,n,o){const s=t(&quot;./base-cell-anchor-xform&quot;),l=t(&quot;../static-xform&quot;),u=t(&quot;./cell-position-xform&quot;),c=t(&quot;./pic-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={&quot;xdr:from&quot;:new u({tag:&quot;xdr:from&quot;}),&quot;xdr:to&quot;:new u({tag:&quot;xdr:to&quot;}),&quot;xdr:pic&quot;:new c,&quot;xdr:clientData&quot;:new l({tag:&quot;xdr:clientData&quot;})}}get tag(){return&quot;xdr:twoCellAnchor&quot;}prepare(a,d){this.map[&quot;xdr:pic&quot;].prepare(a.picture,d)}render(a,d){a.openNode(this.tag,{editAs:d.range.editAs||&quot;oneCell&quot;}),this.map[&quot;xdr:from&quot;].render(a,d.range.tl),this.map[&quot;xdr:to&quot;].render(a,d.range.br),this.map[&quot;xdr:pic&quot;].render(a,d.picture),this.map[&quot;xdr:clientData&quot;].render(a,{}),a.closeNode()}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.parser=void 0),!0):a===this.tag?(this.model.range.tl=this.map[&quot;xdr:from&quot;].model,this.model.range.br=this.map[&quot;xdr:to&quot;].model,this.model.picture=this.map[&quot;xdr:pic&quot;].model,!1):!0}reconcile(a,d){a.medium=this.reconcilePicture(a.picture,d)}}},{&quot;../static-xform&quot;:120,&quot;./base-cell-anchor-xform&quot;:56,&quot;./cell-position-xform&quot;:61,&quot;./pic-xform&quot;:68}],71:[function(t,n,o){const s=t(&quot;./base-xform&quot;);n.exports=class extends s{constructor(l){super(),this.tag=l.tag,this.always=!!l.always,this.count=l.count,this.empty=l.empty,this.$count=l.$count||&quot;count&quot;,this.$=l.$,this.childXform=l.childXform,this.maxItems=l.maxItems}prepare(l,u){const{childXform:c}=this;l&amp;&amp;l.forEach((a,d)=&gt;{u.index=d,c.prepare(a,u)})}render(l,u){if(this.always||u&amp;&amp;u.length){l.openNode(this.tag,this.$),this.count&amp;&amp;l.addAttribute(this.$count,u&amp;&amp;u.length||0);const{childXform:c}=this;(u||[]).forEach((a,d)=&gt;{c.render(l,a,d)}),l.closeNode()}else this.empty&amp;&amp;l.leafNode(this.tag)}parseOpen(l){return this.parser?(this.parser.parseOpen(l),!0):l.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(l)&amp;&amp;(this.parser=this.childXform,!0)}parseText(l){this.parser&amp;&amp;this.parser.parseText(l)}parseClose(l){if(this.parser){if(!this.parser.parseClose(l)&amp;&amp;(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&amp;&amp;this.model.length&gt;this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(l,u){if(l){const{childXform:c}=this;l.forEach(a=&gt;{c.reconcile(a,u)})}}}},{&quot;./base-xform&quot;:32}],72:[function(t,n,o){const s=t(&quot;../../../utils/col-cache&quot;),l=t(&quot;../base-xform&quot;);n.exports=class extends l{get tag(){return&quot;autoFilter&quot;}render(u,c){if(c)if(typeof c==&quot;string&quot;)u.leafNode(&quot;autoFilter&quot;,{ref:c});else{const a=function(h){return typeof h==&quot;string&quot;?h:s.getAddress(h.row,h.column).address},d=a(c.from),f=a(c.to);d&amp;&amp;f&amp;&amp;u.leafNode(&quot;autoFilter&quot;,{ref:`${d}:${f}`})}}parseOpen(u){u.name===&quot;autoFilter&quot;&amp;&amp;(this.model=u.attributes.ref)}}},{&quot;../../../utils/col-cache&quot;:19,&quot;../base-xform&quot;:32}],73:[function(t,n,o){const s=t(&quot;../../../utils/utils&quot;),l=t(&quot;../base-xform&quot;),u=t(&quot;../../../doc/range&quot;),c=t(&quot;../../../doc/enums&quot;),a=t(&quot;../strings/rich-text-xform&quot;);function d(f){if(f==null)return c.ValueType.Null;if(f instanceof String||typeof f==&quot;string&quot;)return c.ValueType.String;if(typeof f==&quot;number&quot;)return c.ValueType.Number;if(typeof f==&quot;boolean&quot;)return c.ValueType.Boolean;if(f instanceof Date)return c.ValueType.Date;if(f.text&amp;&amp;f.hyperlink)return c.ValueType.Hyperlink;if(f.formula)return c.ValueType.Formula;if(f.error)return c.ValueType.Error;throw new Error(&quot;I could not understand type of value&quot;)}n.exports=class extends l{constructor(){super(),this.richTextXForm=new a}get tag(){return&quot;c&quot;}prepare(f,h){const m=h.styles.addStyleModel(f.style||{},(function(p){return p.type===c.ValueType.Formula?d(p.result):p.type})(f));switch(m&amp;&amp;(f.styleId=m),f.comment&amp;&amp;h.comments.push({...f.comment,ref:f.address}),f.type){case c.ValueType.String:case c.ValueType.RichText:h.sharedStrings&amp;&amp;(f.ssId=h.sharedStrings.add(f.value));break;case c.ValueType.Date:h.date1904&amp;&amp;(f.date1904=!0);break;case c.ValueType.Hyperlink:h.sharedStrings&amp;&amp;f.text!==void 0&amp;&amp;f.text!==null&amp;&amp;(f.ssId=h.sharedStrings.add(f.text)),h.hyperlinks.push({address:f.address,target:f.hyperlink,tooltip:f.tooltip});break;case c.ValueType.Merge:h.merges.add(f);break;case c.ValueType.Formula:if(h.date1904&amp;&amp;(f.date1904=!0),f.shareType===&quot;shared&quot;&amp;&amp;(f.si=h.siFormulae++),f.formula)h.formulae[f.address]=f;else if(f.sharedFormula){const p=h.formulae[f.sharedFormula];if(!p)throw new Error(&quot;Shared Formula master must exist above and or left of clone for cell &quot;+f.address);p.si===void 0?(p.shareType=&quot;shared&quot;,p.si=h.siFormulae++,p.range=new u(p.address,f.address)):p.range&amp;&amp;p.range.expandToAddress(f.address),f.si=p.si}}}renderFormula(f,h){let m=null;switch(h.shareType){case&quot;shared&quot;:m={t:&quot;shared&quot;,ref:h.ref||h.range.range,si:h.si};break;case&quot;array&quot;:m={t:&quot;array&quot;,ref:h.ref};break;default:h.si!==void 0&amp;&amp;(m={t:&quot;shared&quot;,si:h.si})}switch(d(h.result)){case c.ValueType.Null:f.leafNode(&quot;f&quot;,m,h.formula);break;case c.ValueType.String:f.addAttribute(&quot;t&quot;,&quot;str&quot;),f.leafNode(&quot;f&quot;,m,h.formula),f.leafNode(&quot;v&quot;,null,h.result);break;case c.ValueType.Number:f.leafNode(&quot;f&quot;,m,h.formula),f.leafNode(&quot;v&quot;,null,h.result);break;case c.ValueType.Boolean:f.addAttribute(&quot;t&quot;,&quot;b&quot;),f.leafNode(&quot;f&quot;,m,h.formula),f.leafNode(&quot;v&quot;,null,h.result?1:0);break;case c.ValueType.Error:f.addAttribute(&quot;t&quot;,&quot;e&quot;),f.leafNode(&quot;f&quot;,m,h.formula),f.leafNode(&quot;v&quot;,null,h.result.error);break;case c.ValueType.Date:f.leafNode(&quot;f&quot;,m,h.formula),f.leafNode(&quot;v&quot;,null,s.dateToExcel(h.result,h.date1904));break;default:throw new Error(&quot;I could not understand type of value&quot;)}}render(f,h){if(h.type!==c.ValueType.Null||h.styleId){switch(f.openNode(&quot;c&quot;),f.addAttribute(&quot;r&quot;,h.address),h.styleId&amp;&amp;f.addAttribute(&quot;s&quot;,h.styleId),h.type){case c.ValueType.Null:break;case c.ValueType.Number:f.leafNode(&quot;v&quot;,null,h.value);break;case c.ValueType.Boolean:f.addAttribute(&quot;t&quot;,&quot;b&quot;),f.leafNode(&quot;v&quot;,null,h.value?&quot;1&quot;:&quot;0&quot;);break;case c.ValueType.Error:f.addAttribute(&quot;t&quot;,&quot;e&quot;),f.leafNode(&quot;v&quot;,null,h.value.error);break;case c.ValueType.String:case c.ValueType.RichText:h.ssId!==void 0?(f.addAttribute(&quot;t&quot;,&quot;s&quot;),f.leafNode(&quot;v&quot;,null,h.ssId)):h.value&amp;&amp;h.value.richText?(f.addAttribute(&quot;t&quot;,&quot;inlineStr&quot;),f.openNode(&quot;is&quot;),h.value.richText.forEach(m=&gt;{this.richTextXForm.render(f,m)}),f.closeNode(&quot;is&quot;)):(f.addAttribute(&quot;t&quot;,&quot;str&quot;),f.leafNode(&quot;v&quot;,null,h.value));break;case c.ValueType.Date:f.leafNode(&quot;v&quot;,null,s.dateToExcel(h.value,h.date1904));break;case c.ValueType.Hyperlink:h.ssId!==void 0?(f.addAttribute(&quot;t&quot;,&quot;s&quot;),f.leafNode(&quot;v&quot;,null,h.ssId)):(f.addAttribute(&quot;t&quot;,&quot;str&quot;),f.leafNode(&quot;v&quot;,null,h.text));break;case c.ValueType.Formula:this.renderFormula(f,h);break;case c.ValueType.Merge:}f.closeNode()}}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case&quot;c&quot;:return this.model={address:f.attributes.r},this.t=f.attributes.t,f.attributes.s&amp;&amp;(this.model.styleId=parseInt(f.attributes.s,10)),!0;case&quot;f&quot;:return this.currentNode=&quot;f&quot;,this.model.si=f.attributes.si,this.model.shareType=f.attributes.t,this.model.ref=f.attributes.ref,!0;case&quot;v&quot;:return this.currentNode=&quot;v&quot;,!0;case&quot;t&quot;:return this.currentNode=&quot;t&quot;,!0;case&quot;r&quot;:return this.parser=this.richTextXForm,this.parser.parseOpen(f),!0;default:return!1}}parseText(f){if(this.parser)this.parser.parseText(f);else switch(this.currentNode){case&quot;f&quot;:this.model.formula=this.model.formula?this.model.formula+f:f;break;case&quot;v&quot;:case&quot;t&quot;:this.model.value&amp;&amp;this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+f:f:this.model.value=this.model.value?this.model.value+f:f}}parseClose(f){switch(f){case&quot;c&quot;:{const{model:h}=this;if(h.formula||h.shareType)h.type=c.ValueType.Formula,h.value&amp;&amp;(this.t===&quot;str&quot;?h.result=s.xmlDecode(h.value):this.t===&quot;b&quot;?h.result=parseInt(h.value,10)!==0:this.t===&quot;e&quot;?h.result={error:h.value}:h.result=parseFloat(h.value),h.value=void 0);else if(h.value!==void 0)switch(this.t){case&quot;s&quot;:h.type=c.ValueType.String,h.value=parseInt(h.value,10);break;case&quot;str&quot;:h.type=c.ValueType.String,h.value=s.xmlDecode(h.value);break;case&quot;inlineStr&quot;:h.type=c.ValueType.String;break;case&quot;b&quot;:h.type=c.ValueType.Boolean,h.value=parseInt(h.value,10)!==0;break;case&quot;e&quot;:h.type=c.ValueType.Error,h.value={error:h.value};break;default:h.type=c.ValueType.Number,h.value=parseFloat(h.value)}else h.styleId?h.type=c.ValueType.Null:h.type=c.ValueType.Merge;return!1}case&quot;f&quot;:case&quot;v&quot;:case&quot;is&quot;:return this.currentNode=void 0,!0;case&quot;t&quot;:return this.parser?(this.parser.parseClose(f),!0):(this.currentNode=void 0,!0);case&quot;r&quot;:return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&amp;&amp;(this.parser.parseClose(f),!0)}}reconcile(f,h){const m=f.styleId&amp;&amp;h.styles&amp;&amp;h.styles.getStyleModel(f.styleId);switch(m&amp;&amp;(f.style=m),f.styleId!==void 0&amp;&amp;(f.styleId=void 0),f.type){case c.ValueType.String:typeof f.value==&quot;number&quot;&amp;&amp;h.sharedStrings&amp;&amp;(f.value=h.sharedStrings.getString(f.value)),f.value.richText&amp;&amp;(f.type=c.ValueType.RichText);break;case c.ValueType.Number:m&amp;&amp;s.isDateFmt(m.numFmt)&amp;&amp;(f.type=c.ValueType.Date,f.value=s.excelToDate(f.value,h.date1904));break;case c.ValueType.Formula:f.result!==void 0&amp;&amp;m&amp;&amp;s.isDateFmt(m.numFmt)&amp;&amp;(f.result=s.excelToDate(f.result,h.date1904)),f.shareType===&quot;shared&quot;&amp;&amp;(f.ref?h.formulae[f.si]=f.address:(f.sharedFormula=h.formulae[f.si],delete f.shareType),delete f.si)}const p=h.hyperlinkMap[f.address];p&amp;&amp;(f.type===c.ValueType.Formula?(f.text=f.result,f.result=void 0):(f.text=f.value,f.value=void 0),f.type=c.ValueType.Hyperlink,f.hyperlink=p);const x=h.commentsMap&amp;&amp;h.commentsMap[f.address];x&amp;&amp;(f.comment=x)}}},{&quot;../../../doc/enums&quot;:7,&quot;../../../doc/range&quot;:10,&quot;../../../utils/utils&quot;:27,&quot;../base-xform&quot;:32,&quot;../strings/rich-text-xform&quot;:122}],74:[function(t,n,o){const s=t(&quot;../../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;x14:cfIcon&quot;}render(l,u){l.leafNode(this.tag,{iconSet:u.iconSet,iconId:u.iconId})}parseOpen(l){let{attributes:u}=l;this.model={iconSet:u.iconSet,iconId:s.toIntValue(u.iconId)}}parseClose(l){return l!==this.tag}}},{&quot;../../base-xform&quot;:32}],75:[function(t,n,o){const{v4:s}=t(&quot;uuid&quot;),l=t(&quot;../../base-xform&quot;),u=t(&quot;../../composite-xform&quot;),c=t(&quot;./databar-ext-xform&quot;),a=t(&quot;./icon-set-ext-xform&quot;),d={&quot;3Triangles&quot;:!0,&quot;3Stars&quot;:!0,&quot;5Boxes&quot;:!0};class f extends u{constructor(){super(),this.map={&quot;x14:dataBar&quot;:this.databarXform=new c,&quot;x14:iconSet&quot;:this.iconSetXform=new a}}get tag(){return&quot;x14:cfRule&quot;}static isExt(m){return m.type===&quot;dataBar&quot;?c.isExt(m):!(m.type!==&quot;iconSet&quot;||!m.custom&amp;&amp;!d[m.iconSet])}prepare(m){f.isExt(m)&amp;&amp;(m.x14Id=`{${s()}}`.toUpperCase())}render(m,p){if(f.isExt(p))switch(p.type){case&quot;dataBar&quot;:this.renderDataBar(m,p);break;case&quot;iconSet&quot;:this.renderIconSet(m,p)}}renderDataBar(m,p){m.openNode(this.tag,{type:&quot;dataBar&quot;,id:p.x14Id}),this.databarXform.render(m,p),m.closeNode()}renderIconSet(m,p){m.openNode(this.tag,{type:&quot;iconSet&quot;,priority:p.priority,id:p.x14Id||`{${s()}}`}),this.iconSetXform.render(m,p),m.closeNode()}createNewModel(m){let{attributes:p}=m;return{type:p.type,x14Id:p.id,priority:l.toIntValue(p.priority)}}onParserClose(m,p){Object.assign(this.model,p.model)}}n.exports=f},{&quot;../../base-xform&quot;:32,&quot;../../composite-xform&quot;:48,&quot;./databar-ext-xform&quot;:79,&quot;./icon-set-ext-xform&quot;:81,uuid:528}],76:[function(t,n,o){const s=t(&quot;../../composite-xform&quot;),l=t(&quot;./f-ext-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={&quot;xm:f&quot;:this.fExtXform=new l}}get tag(){return&quot;x14:cfvo&quot;}render(u,c){u.openNode(this.tag,{type:c.type}),c.value!==void 0&amp;&amp;this.fExtXform.render(u,c.value),u.closeNode()}createNewModel(u){return{type:u.attributes.type}}onParserClose(u,c){u===&quot;xm:f&quot;&amp;&amp;(this.model.value=c.model?parseFloat(c.model):0)}}},{&quot;../../composite-xform&quot;:48,&quot;./f-ext-xform&quot;:80}],77:[function(t,n,o){const s=t(&quot;../../composite-xform&quot;),l=t(&quot;./sqref-ext-xform&quot;),u=t(&quot;./cf-rule-ext-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={&quot;xm:sqref&quot;:this.sqRef=new l,&quot;x14:cfRule&quot;:this.cfRule=new u}}get tag(){return&quot;x14:conditionalFormatting&quot;}prepare(c,a){c.rules.forEach(d=&gt;{this.cfRule.prepare(d,a)})}render(c,a){a.rules.some(u.isExt)&amp;&amp;(c.openNode(this.tag,{&quot;xmlns:xm&quot;:&quot;http://schemas.microsoft.com/office/excel/2006/main&quot;}),a.rules.filter(u.isExt).forEach(d=&gt;this.cfRule.render(c,d)),this.sqRef.render(c,a.ref),c.closeNode())}createNewModel(){return{rules:[]}}onParserClose(c,a){switch(c){case&quot;xm:sqref&quot;:this.model.ref=a.model;break;case&quot;x14:cfRule&quot;:this.model.rules.push(a.model)}}}},{&quot;../../composite-xform&quot;:48,&quot;./cf-rule-ext-xform&quot;:75,&quot;./sqref-ext-xform&quot;:82}],78:[function(t,n,o){const s=t(&quot;../../composite-xform&quot;),l=t(&quot;./cf-rule-ext-xform&quot;),u=t(&quot;./conditional-formatting-ext-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={&quot;x14:conditionalFormatting&quot;:this.cfXform=new u}}get tag(){return&quot;x14:conditionalFormattings&quot;}hasContent(c){return c.hasExtContent===void 0&amp;&amp;(c.hasExtContent=c.some(a=&gt;a.rules.some(l.isExt))),c.hasExtContent}prepare(c,a){c.forEach(d=&gt;{this.cfXform.prepare(d,a)})}render(c,a){this.hasContent(a)&amp;&amp;(c.openNode(this.tag),a.forEach(d=&gt;this.cfXform.render(c,d)),c.closeNode())}createNewModel(){return[]}onParserClose(c,a){this.model.push(a.model)}}},{&quot;../../composite-xform&quot;:48,&quot;./cf-rule-ext-xform&quot;:75,&quot;./conditional-formatting-ext-xform&quot;:77}],79:[function(t,n,o){const s=t(&quot;../../base-xform&quot;),l=t(&quot;../../composite-xform&quot;),u=t(&quot;../../style/color-xform&quot;),c=t(&quot;./cfvo-ext-xform&quot;);n.exports=class extends l{constructor(){super(),this.map={&quot;x14:cfvo&quot;:this.cfvoXform=new c,&quot;x14:borderColor&quot;:this.borderColorXform=new u(&quot;x14:borderColor&quot;),&quot;x14:negativeBorderColor&quot;:this.negativeBorderColorXform=new u(&quot;x14:negativeBorderColor&quot;),&quot;x14:negativeFillColor&quot;:this.negativeFillColorXform=new u(&quot;x14:negativeFillColor&quot;),&quot;x14:axisColor&quot;:this.axisColorXform=new u(&quot;x14:axisColor&quot;)}}static isExt(a){return!a.gradient}get tag(){return&quot;x14:dataBar&quot;}render(a,d){a.openNode(this.tag,{minLength:s.toIntAttribute(d.minLength,0,!0),maxLength:s.toIntAttribute(d.maxLength,100,!0),border:s.toBoolAttribute(d.border,!1),gradient:s.toBoolAttribute(d.gradient,!0),negativeBarColorSameAsPositive:s.toBoolAttribute(d.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:s.toBoolAttribute(d.negativeBarBorderColorSameAsPositive,!0),axisPosition:s.toAttribute(d.axisPosition,&quot;auto&quot;),direction:s.toAttribute(d.direction,&quot;leftToRight&quot;)}),d.cfvo.forEach(f=&gt;{this.cfvoXform.render(a,f)}),this.borderColorXform.render(a,d.borderColor),this.negativeBorderColorXform.render(a,d.negativeBorderColor),this.negativeFillColorXform.render(a,d.negativeFillColor),this.axisColorXform.render(a,d.axisColor),a.closeNode()}createNewModel(a){let{attributes:d}=a;return{cfvo:[],minLength:s.toIntValue(d.minLength,0),maxLength:s.toIntValue(d.maxLength,100),border:s.toBoolValue(d.border,!1),gradient:s.toBoolValue(d.gradient,!0),negativeBarColorSameAsPositive:s.toBoolValue(d.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:s.toBoolValue(d.negativeBarBorderColorSameAsPositive,!0),axisPosition:s.toStringValue(d.axisPosition,&quot;auto&quot;),direction:s.toStringValue(d.direction,&quot;leftToRight&quot;)}}onParserClose(a,d){const[,f]=a.split(&quot;:&quot;);f===&quot;cfvo&quot;?this.model.cfvo.push(d.model):this.model[f]=d.model}}},{&quot;../../base-xform&quot;:32,&quot;../../composite-xform&quot;:48,&quot;../../style/color-xform&quot;:128,&quot;./cfvo-ext-xform&quot;:76}],80:[function(t,n,o){const s=t(&quot;../../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;xm:f&quot;}render(l,u){l.leafNode(this.tag,null,u)}parseOpen(){this.model=&quot;&quot;}parseText(l){this.model+=l}parseClose(l){return l!==this.tag}}},{&quot;../../base-xform&quot;:32}],81:[function(t,n,o){const s=t(&quot;../../base-xform&quot;),l=t(&quot;../../composite-xform&quot;),u=t(&quot;./cfvo-ext-xform&quot;),c=t(&quot;./cf-icon-ext-xform&quot;);n.exports=class extends l{constructor(){super(),this.map={&quot;x14:cfvo&quot;:this.cfvoXform=new u,&quot;x14:cfIcon&quot;:this.cfIconXform=new c}}get tag(){return&quot;x14:iconSet&quot;}render(a,d){a.openNode(this.tag,{iconSet:s.toStringAttribute(d.iconSet),reverse:s.toBoolAttribute(d.reverse,!1),showValue:s.toBoolAttribute(d.showValue,!0),custom:s.toBoolAttribute(d.icons,!1)}),d.cfvo.forEach(f=&gt;{this.cfvoXform.render(a,f)}),d.icons&amp;&amp;d.icons.forEach((f,h)=&gt;{f.iconId=h,this.cfIconXform.render(a,f)}),a.closeNode()}createNewModel(a){let{attributes:d}=a;return{cfvo:[],iconSet:s.toStringValue(d.iconSet,&quot;3TrafficLights&quot;),reverse:s.toBoolValue(d.reverse,!1),showValue:s.toBoolValue(d.showValue,!0)}}onParserClose(a,d){const[,f]=a.split(&quot;:&quot;);switch(f){case&quot;cfvo&quot;:this.model.cfvo.push(d.model);break;case&quot;cfIcon&quot;:this.model.icons||(this.model.icons=[]),this.model.icons.push(d.model);break;default:this.model[f]=d.model}}}},{&quot;../../base-xform&quot;:32,&quot;../../composite-xform&quot;:48,&quot;./cf-icon-ext-xform&quot;:74,&quot;./cfvo-ext-xform&quot;:76}],82:[function(t,n,o){const s=t(&quot;../../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;xm:sqref&quot;}render(l,u){l.leafNode(this.tag,null,u)}parseOpen(){this.model=&quot;&quot;}parseText(l){this.model+=l}parseClose(l){return l!==this.tag}}},{&quot;../../base-xform&quot;:32}],83:[function(t,n,o){const s=t(&quot;../../base-xform&quot;),l=t(&quot;../../composite-xform&quot;),u=t(&quot;../../../../doc/range&quot;),c=t(&quot;./databar-xform&quot;),a=t(&quot;./ext-lst-ref-xform&quot;),d=t(&quot;./formula-xform&quot;),f=t(&quot;./color-scale-xform&quot;),h=t(&quot;./icon-set-xform&quot;),m={&quot;3Triangles&quot;:!0,&quot;3Stars&quot;:!0,&quot;5Boxes&quot;:!0},p=g=&gt;{const{type:y,operator:v}=g;switch(y){case&quot;containsText&quot;:case&quot;containsBlanks&quot;:case&quot;notContainsBlanks&quot;:case&quot;containsErrors&quot;:case&quot;notContainsErrors&quot;:return{type:&quot;containsText&quot;,operator:y};default:return{type:y,operator:v}}};class x extends l{constructor(){super(),this.map={dataBar:this.databarXform=new c,extLst:this.extLstRefXform=new a,formula:this.formulaXform=new d,colorScale:this.colorScaleXform=new f,iconSet:this.iconSetXform=new h}}get tag(){return&quot;cfRule&quot;}static isPrimitive(y){return y.type!==&quot;iconSet&quot;||!y.custom&amp;&amp;!m[y.iconSet]}render(y,v){switch(v.type){case&quot;expression&quot;:this.renderExpression(y,v);break;case&quot;cellIs&quot;:this.renderCellIs(y,v);break;case&quot;top10&quot;:this.renderTop10(y,v);break;case&quot;aboveAverage&quot;:this.renderAboveAverage(y,v);break;case&quot;dataBar&quot;:this.renderDataBar(y,v);break;case&quot;colorScale&quot;:this.renderColorScale(y,v);break;case&quot;iconSet&quot;:this.renderIconSet(y,v);break;case&quot;containsText&quot;:this.renderText(y,v);break;case&quot;timePeriod&quot;:this.renderTimePeriod(y,v)}}renderExpression(y,v){y.openNode(this.tag,{type:&quot;expression&quot;,dxfId:v.dxfId,priority:v.priority}),this.formulaXform.render(y,v.formulae[0]),y.closeNode()}renderCellIs(y,v){y.openNode(this.tag,{type:&quot;cellIs&quot;,dxfId:v.dxfId,priority:v.priority,operator:v.operator}),v.formulae.forEach(_=&gt;{this.formulaXform.render(y,_)}),y.closeNode()}renderTop10(y,v){y.leafNode(this.tag,{type:&quot;top10&quot;,dxfId:v.dxfId,priority:v.priority,percent:s.toBoolAttribute(v.percent,!1),bottom:s.toBoolAttribute(v.bottom,!1),rank:s.toIntValue(v.rank,10,!0)})}renderAboveAverage(y,v){y.leafNode(this.tag,{type:&quot;aboveAverage&quot;,dxfId:v.dxfId,priority:v.priority,aboveAverage:s.toBoolAttribute(v.aboveAverage,!0)})}renderDataBar(y,v){y.openNode(this.tag,{type:&quot;dataBar&quot;,priority:v.priority}),this.databarXform.render(y,v),this.extLstRefXform.render(y,v),y.closeNode()}renderColorScale(y,v){y.openNode(this.tag,{type:&quot;colorScale&quot;,priority:v.priority}),this.colorScaleXform.render(y,v),y.closeNode()}renderIconSet(y,v){x.isPrimitive(v)&amp;&amp;(y.openNode(this.tag,{type:&quot;iconSet&quot;,priority:v.priority}),this.iconSetXform.render(y,v),y.closeNode())}renderText(y,v){y.openNode(this.tag,{type:v.operator,dxfId:v.dxfId,priority:v.priority,operator:s.toStringAttribute(v.operator,&quot;containsText&quot;)});const _=(S=&gt;{if(S.formulae&amp;&amp;S.formulae[0])return S.formulae[0];const A=new u(S.ref),{tl:I}=A;switch(S.operator){case&quot;containsText&quot;:return`NOT(ISERROR(SEARCH(&quot;${S.text}&quot;,${I})))`;case&quot;containsBlanks&quot;:return`LEN(TRIM(${I}))=0`;case&quot;notContainsBlanks&quot;:return`LEN(TRIM(${I}))&gt;0`;case&quot;containsErrors&quot;:return`ISERROR(${I})`;case&quot;notContainsErrors&quot;:return`NOT(ISERROR(${I}))`;default:return}})(v);_&amp;&amp;this.formulaXform.render(y,_),y.closeNode()}renderTimePeriod(y,v){y.openNode(this.tag,{type:&quot;timePeriod&quot;,dxfId:v.dxfId,priority:v.priority,timePeriod:v.timePeriod});const _=(S=&gt;{if(S.formulae&amp;&amp;S.formulae[0])return S.formulae[0];const A=new u(S.ref),{tl:I}=A;switch(S.timePeriod){case&quot;thisWeek&quot;:return`AND(TODAY()-ROUNDDOWN(${I},0)&lt;=WEEKDAY(TODAY())-1,ROUNDDOWN(${I},0)-TODAY()&lt;=7-WEEKDAY(TODAY()))`;case&quot;lastWeek&quot;:return`AND(TODAY()-ROUNDDOWN(${I},0)&gt;=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${I},0)&lt;(WEEKDAY(TODAY())+7))`;case&quot;nextWeek&quot;:return`AND(ROUNDDOWN(${I},0)-TODAY()&gt;(7-WEEKDAY(TODAY())),ROUNDDOWN(${I},0)-TODAY()&lt;(15-WEEKDAY(TODAY())))`;case&quot;yesterday&quot;:return`FLOOR(${I},1)=TODAY()-1`;case&quot;today&quot;:return`FLOOR(${I},1)=TODAY()`;case&quot;tomorrow&quot;:return`FLOOR(${I},1)=TODAY()+1`;case&quot;last7Days&quot;:return`AND(TODAY()-FLOOR(${I},1)&lt;=6,FLOOR(${I},1)&lt;=TODAY())`;case&quot;lastMonth&quot;:return`AND(MONTH(${I})=MONTH(EDATE(TODAY(),0-1)),YEAR(${I})=YEAR(EDATE(TODAY(),0-1)))`;case&quot;thisMonth&quot;:return`AND(MONTH(${I})=MONTH(TODAY()),YEAR(${I})=YEAR(TODAY()))`;case&quot;nextMonth&quot;:return`AND(MONTH(${I})=MONTH(EDATE(TODAY(),0+1)),YEAR(${I})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(v);_&amp;&amp;this.formulaXform.render(y,_),y.closeNode()}createNewModel(y){let{attributes:v}=y;return{...p(v),dxfId:s.toIntValue(v.dxfId),priority:s.toIntValue(v.priority),timePeriod:v.timePeriod,percent:s.toBoolValue(v.percent),bottom:s.toBoolValue(v.bottom),rank:s.toIntValue(v.rank),aboveAverage:s.toBoolValue(v.aboveAverage)}}onParserClose(y,v){switch(y){case&quot;dataBar&quot;:case&quot;extLst&quot;:case&quot;colorScale&quot;:case&quot;iconSet&quot;:Object.assign(this.model,v.model);break;case&quot;formula&quot;:this.model.formulae=this.model.formulae||[],this.model.formulae.push(v.model)}}}n.exports=x},{&quot;../../../../doc/range&quot;:10,&quot;../../base-xform&quot;:32,&quot;../../composite-xform&quot;:48,&quot;./color-scale-xform&quot;:85,&quot;./databar-xform&quot;:88,&quot;./ext-lst-ref-xform&quot;:89,&quot;./formula-xform&quot;:90,&quot;./icon-set-xform&quot;:91}],84:[function(t,n,o){const s=t(&quot;../../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;cfvo&quot;}render(l,u){l.leafNode(this.tag,{type:u.type,val:u.value})}parseOpen(l){this.model={type:l.attributes.type,value:s.toFloatValue(l.attributes.val)}}parseClose(l){return l!==this.tag}}},{&quot;../../base-xform&quot;:32}],85:[function(t,n,o){const s=t(&quot;../../composite-xform&quot;),l=t(&quot;../../style/color-xform&quot;),u=t(&quot;./cfvo-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new l}}get tag(){return&quot;colorScale&quot;}render(c,a){c.openNode(this.tag),a.cfvo.forEach(d=&gt;{this.cfvoXform.render(c,d)}),a.color.forEach(d=&gt;{this.colorXform.render(c,d)}),c.closeNode()}createNewModel(c){return{cfvo:[],color:[]}}onParserClose(c,a){this.model[c].push(a.model)}}},{&quot;../../composite-xform&quot;:48,&quot;../../style/color-xform&quot;:128,&quot;./cfvo-xform&quot;:84}],86:[function(t,n,o){const s=t(&quot;../../composite-xform&quot;),l=t(&quot;./cf-rule-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={cfRule:new l}}get tag(){return&quot;conditionalFormatting&quot;}render(u,c){c.rules.some(l.isPrimitive)&amp;&amp;(u.openNode(this.tag,{sqref:c.ref}),c.rules.forEach(a=&gt;{l.isPrimitive(a)&amp;&amp;(a.ref=c.ref,this.map.cfRule.render(u,a))}),u.closeNode())}createNewModel(u){let{attributes:c}=u;return{ref:c.sqref,rules:[]}}onParserClose(u,c){this.model.rules.push(c.model)}}},{&quot;../../composite-xform&quot;:48,&quot;./cf-rule-xform&quot;:83}],87:[function(t,n,o){const s=t(&quot;../../base-xform&quot;),l=t(&quot;./conditional-formatting-xform&quot;);n.exports=class extends s{constructor(){super(),this.cfXform=new l}get tag(){return&quot;conditionalFormatting&quot;}reset(){this.model=[]}prepare(u,c){let a=u.reduce((d,f)=&gt;Math.max(d,...f.rules.map(h=&gt;h.priority||0)),1);u.forEach(d=&gt;{d.rules.forEach(f=&gt;{f.priority||(f.priority=a++),f.style&amp;&amp;(f.dxfId=c.styles.addDxfStyle(f.style))})})}render(u,c){c.forEach(a=&gt;{this.cfXform.render(u,a)})}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):u.name===&quot;conditionalFormatting&quot;?(this.parser=this.cfXform,this.parser.parseOpen(u),!0):!1}parseText(u){this.parser&amp;&amp;this.parser.parseText(u)}parseClose(u){return!!this.parser&amp;&amp;(!!this.parser.parseClose(u)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(u,c){u.forEach(a=&gt;{a.rules.forEach(d=&gt;{d.dxfId!==void 0&amp;&amp;(d.style=c.styles.getDxfStyle(d.dxfId),delete d.dxfId)})})}}},{&quot;../../base-xform&quot;:32,&quot;./conditional-formatting-xform&quot;:86}],88:[function(t,n,o){const s=t(&quot;../../composite-xform&quot;),l=t(&quot;../../style/color-xform&quot;),u=t(&quot;./cfvo-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new l}}get tag(){return&quot;dataBar&quot;}render(c,a){c.openNode(this.tag),a.cfvo.forEach(d=&gt;{this.cfvoXform.render(c,d)}),this.colorXform.render(c,a.color),c.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(c,a){switch(c){case&quot;cfvo&quot;:this.model.cfvo.push(a.model);break;case&quot;color&quot;:this.model.color=a.model}}}},{&quot;../../composite-xform&quot;:48,&quot;../../style/color-xform&quot;:128,&quot;./cfvo-xform&quot;:84}],89:[function(t,n,o){const s=t(&quot;../../base-xform&quot;),l=t(&quot;../../composite-xform&quot;);class u extends s{get tag(){return&quot;x14:id&quot;}render(d,f){d.leafNode(this.tag,null,f)}parseOpen(){this.model=&quot;&quot;}parseText(d){this.model+=d}parseClose(d){return d!==this.tag}}class c extends l{constructor(){super(),this.map={&quot;x14:id&quot;:this.idXform=new u}}get tag(){return&quot;ext&quot;}render(d,f){d.openNode(this.tag,{uri:&quot;{B025F937-C7B1-47D3-B67F-A62EFF666E3E}&quot;,&quot;xmlns:x14&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2009/9/main&quot;}),this.idXform.render(d,f.x14Id),d.closeNode()}createNewModel(){return{}}onParserClose(d,f){this.model.x14Id=f.model}}n.exports=class extends l{constructor(){super(),this.map={ext:new c}}get tag(){return&quot;extLst&quot;}render(a,d){a.openNode(this.tag),this.map.ext.render(a,d),a.closeNode()}createNewModel(){return{}}onParserClose(a,d){Object.assign(this.model,d.model)}}},{&quot;../../base-xform&quot;:32,&quot;../../composite-xform&quot;:48}],90:[function(t,n,o){const s=t(&quot;../../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;formula&quot;}render(l,u){l.leafNode(this.tag,null,u)}parseOpen(){this.model=&quot;&quot;}parseText(l){this.model+=l}parseClose(l){return l!==this.tag}}},{&quot;../../base-xform&quot;:32}],91:[function(t,n,o){const s=t(&quot;../../base-xform&quot;),l=t(&quot;../../composite-xform&quot;),u=t(&quot;./cfvo-xform&quot;);n.exports=class extends l{constructor(){super(),this.map={cfvo:this.cfvoXform=new u}}get tag(){return&quot;iconSet&quot;}render(c,a){c.openNode(this.tag,{iconSet:s.toStringAttribute(a.iconSet,&quot;3TrafficLights&quot;),reverse:s.toBoolAttribute(a.reverse,!1),showValue:s.toBoolAttribute(a.showValue,!0)}),a.cfvo.forEach(d=&gt;{this.cfvoXform.render(c,d)}),c.closeNode()}createNewModel(c){let{attributes:a}=c;return{iconSet:s.toStringValue(a.iconSet,&quot;3TrafficLights&quot;),reverse:s.toBoolValue(a.reverse),showValue:s.toBoolValue(a.showValue),cfvo:[]}}onParserClose(c,a){this.model[c].push(a.model)}}},{&quot;../../base-xform&quot;:32,&quot;../../composite-xform&quot;:48,&quot;./cfvo-xform&quot;:84}],92:[function(t,n,o){const s=t(&quot;../../../utils/utils&quot;),l=t(&quot;../base-xform&quot;);n.exports=class extends l{get tag(){return&quot;col&quot;}prepare(u,c){const a=c.styles.addStyleModel(u.style||{});a&amp;&amp;(u.styleId=a)}render(u,c){u.openNode(&quot;col&quot;),u.addAttribute(&quot;min&quot;,c.min),u.addAttribute(&quot;max&quot;,c.max),c.width&amp;&amp;u.addAttribute(&quot;width&quot;,c.width),c.styleId&amp;&amp;u.addAttribute(&quot;style&quot;,c.styleId),c.hidden&amp;&amp;u.addAttribute(&quot;hidden&quot;,&quot;1&quot;),c.bestFit&amp;&amp;u.addAttribute(&quot;bestFit&quot;,&quot;1&quot;),c.outlineLevel&amp;&amp;u.addAttribute(&quot;outlineLevel&quot;,c.outlineLevel),c.collapsed&amp;&amp;u.addAttribute(&quot;collapsed&quot;,&quot;1&quot;),u.addAttribute(&quot;customWidth&quot;,&quot;1&quot;),u.closeNode()}parseOpen(u){if(u.name===&quot;col&quot;){const c=this.model={min:parseInt(u.attributes.min||&quot;0&quot;,10),max:parseInt(u.attributes.max||&quot;0&quot;,10),width:u.attributes.width===void 0?void 0:parseFloat(u.attributes.width||&quot;0&quot;)};return u.attributes.style&amp;&amp;(c.styleId=parseInt(u.attributes.style,10)),s.parseBoolean(u.attributes.hidden)&amp;&amp;(c.hidden=!0),s.parseBoolean(u.attributes.bestFit)&amp;&amp;(c.bestFit=!0),u.attributes.outlineLevel&amp;&amp;(c.outlineLevel=parseInt(u.attributes.outlineLevel,10)),s.parseBoolean(u.attributes.collapsed)&amp;&amp;(c.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(u,c){u.styleId&amp;&amp;(u.style=c.styles.getStyleModel(u.styleId))}}},{&quot;../../../utils/utils&quot;:27,&quot;../base-xform&quot;:32}],93:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../../../utils/utils&quot;),u=t(&quot;../../../utils/col-cache&quot;),c=t(&quot;../base-xform&quot;),a=t(&quot;../../../doc/range&quot;);function d(h,m,p,x){const g=m[p];g!==void 0?h[p]=g:x!==void 0&amp;&amp;(h[p]=x)}function f(h,m,p,x){const g=m[p];g!==void 0&amp;&amp;(h[p]=l.parseBoolean(g))}n.exports=class extends c{get tag(){return&quot;dataValidations&quot;}render(h,m){const p=(function(x){const g=s.map(x,(_,S)=&gt;({address:S,dataValidation:_,marked:!1})).sort((_,S)=&gt;s.strcmp(_.address,S.address)),y=s.keyBy(g,&quot;address&quot;),v=(_,S,A)=&gt;{for(let I=0;I&lt;S;I++){const V=u.encodeAddress(_.row+I,A);if(!x[V]||!s.isEqual(x[_.address],x[V]))return!1}return!0};return g.map(_=&gt;{if(!_.marked){const S=u.decodeEx(_.address);if(S.dimensions)return y[S.dimensions].marked=!0,{..._.dataValidation,sqref:_.address};let A=1,I=u.encodeAddress(S.row+A,S.col);for(;x[I]&amp;&amp;s.isEqual(_.dataValidation,x[I]);)A++,I=u.encodeAddress(S.row+A,S.col);let V=1;for(;v(S,A,S.col+V);)V++;for(let F=0;F&lt;A;F++)for(let q=0;q&lt;V;q++)I=u.encodeAddress(S.row+F,S.col+q),y[I].marked=!0;if(A&gt;1||V&gt;1){const F=S.row+(A-1),q=S.col+(V-1);return{..._.dataValidation,sqref:`${_.address}:${u.encodeAddress(F,q)}`}}return{..._.dataValidation,sqref:_.address}}return null}).filter(Boolean)})(m);p.length&amp;&amp;(h.openNode(&quot;dataValidations&quot;,{count:p.length}),p.forEach(x=&gt;{h.openNode(&quot;dataValidation&quot;),x.type!==&quot;any&quot;&amp;&amp;(h.addAttribute(&quot;type&quot;,x.type),x.operator&amp;&amp;x.type!==&quot;list&quot;&amp;&amp;x.operator!==&quot;between&quot;&amp;&amp;h.addAttribute(&quot;operator&quot;,x.operator),x.allowBlank&amp;&amp;h.addAttribute(&quot;allowBlank&quot;,&quot;1&quot;)),x.showInputMessage&amp;&amp;h.addAttribute(&quot;showInputMessage&quot;,&quot;1&quot;),x.promptTitle&amp;&amp;h.addAttribute(&quot;promptTitle&quot;,x.promptTitle),x.prompt&amp;&amp;h.addAttribute(&quot;prompt&quot;,x.prompt),x.showErrorMessage&amp;&amp;h.addAttribute(&quot;showErrorMessage&quot;,&quot;1&quot;),x.errorStyle&amp;&amp;h.addAttribute(&quot;errorStyle&quot;,x.errorStyle),x.errorTitle&amp;&amp;h.addAttribute(&quot;errorTitle&quot;,x.errorTitle),x.error&amp;&amp;h.addAttribute(&quot;error&quot;,x.error),h.addAttribute(&quot;sqref&quot;,x.sqref),(x.formulae||[]).forEach((g,y)=&gt;{h.openNode(&quot;formula&quot;+(y+1)),x.type===&quot;date&quot;?h.writeText(l.dateToExcel(new Date(g))):h.writeText(g),h.closeNode()}),h.closeNode()}),h.closeNode())}parseOpen(h){switch(h.name){case&quot;dataValidations&quot;:return this.model={},!0;case&quot;dataValidation&quot;:{this._address=h.attributes.sqref;const m={type:h.attributes.type||&quot;any&quot;,formulae:[]};switch(h.attributes.type&amp;&amp;f(m,h.attributes,&quot;allowBlank&quot;),f(m,h.attributes,&quot;showInputMessage&quot;),f(m,h.attributes,&quot;showErrorMessage&quot;),m.type){case&quot;any&quot;:case&quot;list&quot;:case&quot;custom&quot;:break;default:d(m,h.attributes,&quot;operator&quot;,&quot;between&quot;)}return d(m,h.attributes,&quot;promptTitle&quot;),d(m,h.attributes,&quot;prompt&quot;),d(m,h.attributes,&quot;errorStyle&quot;),d(m,h.attributes,&quot;errorTitle&quot;),d(m,h.attributes,&quot;error&quot;),this._dataValidation=m,!0}case&quot;formula1&quot;:case&quot;formula2&quot;:return this._formula=[],!0;default:return!1}}parseText(h){this._formula&amp;&amp;this._formula.push(h)}parseClose(h){switch(h){case&quot;dataValidations&quot;:return!1;case&quot;dataValidation&quot;:return this._dataValidation.formulae&amp;&amp;this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(m=&gt;{m.includes(&quot;:&quot;)?new a(m).forEachAddress(p=&gt;{this.model[p]=this._dataValidation}):this.model[m]=this._dataValidation}),!0;case&quot;formula1&quot;:case&quot;formula2&quot;:{let m=this._formula.join(&quot;&quot;);switch(this._dataValidation.type){case&quot;whole&quot;:case&quot;textLength&quot;:m=parseInt(m,10);break;case&quot;decimal&quot;:m=parseFloat(m);break;case&quot;date&quot;:m=l.excelToDate(parseFloat(m))}return this._dataValidation.formulae.push(m),this._formula=void 0,!0}default:return!0}}}},{&quot;../../../doc/range&quot;:10,&quot;../../../utils/col-cache&quot;:19,&quot;../../../utils/under-dash&quot;:26,&quot;../../../utils/utils&quot;:27,&quot;../base-xform&quot;:32}],94:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;dimension&quot;}render(l,u){u&amp;&amp;l.leafNode(&quot;dimension&quot;,{ref:u})}parseOpen(l){return l.name===&quot;dimension&quot;&amp;&amp;(this.model=l.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],95:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;drawing&quot;}render(l,u){u&amp;&amp;l.leafNode(this.tag,{&quot;r:id&quot;:u.rId})}parseOpen(l){return l.name===this.tag?(this.model={rId:l.attributes[&quot;r:id&quot;]},!0):!1}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],96:[function(t,n,o){const s=t(&quot;../composite-xform&quot;),l=t(&quot;./cf-ext/conditional-formattings-ext-xform&quot;);class u extends s{constructor(){super(),this.map={&quot;x14:conditionalFormattings&quot;:this.conditionalFormattings=new l}}get tag(){return&quot;ext&quot;}hasContent(a){return this.conditionalFormattings.hasContent(a.conditionalFormattings)}prepare(a,d){this.conditionalFormattings.prepare(a.conditionalFormattings,d)}render(a,d){a.openNode(&quot;ext&quot;,{uri:&quot;{78C0D931-6437-407d-A8EE-F0AAD7539E65}&quot;,&quot;xmlns:x14&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2009/9/main&quot;}),this.conditionalFormattings.render(a,d.conditionalFormattings),a.closeNode()}createNewModel(){return{}}onParserClose(a,d){this.model[a]=d.model}}n.exports=class extends s{constructor(){super(),this.map={ext:this.ext=new u}}get tag(){return&quot;extLst&quot;}prepare(c,a){this.ext.prepare(c,a)}hasContent(c){return this.ext.hasContent(c)}render(c,a){this.hasContent(a)&amp;&amp;(c.openNode(&quot;extLst&quot;),this.ext.render(c,a),c.closeNode())}createNewModel(){return{}}onParserClose(c,a){Object.assign(this.model,a.model)}}},{&quot;../composite-xform&quot;:48,&quot;./cf-ext/conditional-formattings-ext-xform&quot;:78}],97:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;headerFooter&quot;}render(l,u){if(u){l.addRollback();let c=!1;l.openNode(&quot;headerFooter&quot;),u.differentFirst&amp;&amp;(l.addAttribute(&quot;differentFirst&quot;,&quot;1&quot;),c=!0),u.differentOddEven&amp;&amp;(l.addAttribute(&quot;differentOddEven&quot;,&quot;1&quot;),c=!0),u.oddHeader&amp;&amp;typeof u.oddHeader==&quot;string&quot;&amp;&amp;(l.leafNode(&quot;oddHeader&quot;,null,u.oddHeader),c=!0),u.oddFooter&amp;&amp;typeof u.oddFooter==&quot;string&quot;&amp;&amp;(l.leafNode(&quot;oddFooter&quot;,null,u.oddFooter),c=!0),u.evenHeader&amp;&amp;typeof u.evenHeader==&quot;string&quot;&amp;&amp;(l.leafNode(&quot;evenHeader&quot;,null,u.evenHeader),c=!0),u.evenFooter&amp;&amp;typeof u.evenFooter==&quot;string&quot;&amp;&amp;(l.leafNode(&quot;evenFooter&quot;,null,u.evenFooter),c=!0),u.firstHeader&amp;&amp;typeof u.firstHeader==&quot;string&quot;&amp;&amp;(l.leafNode(&quot;firstHeader&quot;,null,u.firstHeader),c=!0),u.firstFooter&amp;&amp;typeof u.firstFooter==&quot;string&quot;&amp;&amp;(l.leafNode(&quot;firstFooter&quot;,null,u.firstFooter),c=!0),c?(l.closeNode(),l.commit()):l.rollback()}}parseOpen(l){switch(l.name){case&quot;headerFooter&quot;:return this.model={},l.attributes.differentFirst&amp;&amp;(this.model.differentFirst=parseInt(l.attributes.differentFirst,0)===1),l.attributes.differentOddEven&amp;&amp;(this.model.differentOddEven=parseInt(l.attributes.differentOddEven,0)===1),!0;case&quot;oddHeader&quot;:return this.currentNode=&quot;oddHeader&quot;,!0;case&quot;oddFooter&quot;:return this.currentNode=&quot;oddFooter&quot;,!0;case&quot;evenHeader&quot;:return this.currentNode=&quot;evenHeader&quot;,!0;case&quot;evenFooter&quot;:return this.currentNode=&quot;evenFooter&quot;,!0;case&quot;firstHeader&quot;:return this.currentNode=&quot;firstHeader&quot;,!0;case&quot;firstFooter&quot;:return this.currentNode=&quot;firstFooter&quot;,!0;default:return!1}}parseText(l){switch(this.currentNode){case&quot;oddHeader&quot;:this.model.oddHeader=l;break;case&quot;oddFooter&quot;:this.model.oddFooter=l;break;case&quot;evenHeader&quot;:this.model.evenHeader=l;break;case&quot;evenFooter&quot;:this.model.evenFooter=l;break;case&quot;firstHeader&quot;:this.model.firstHeader=l;break;case&quot;firstFooter&quot;:this.model.firstFooter=l}}parseClose(){switch(this.currentNode){case&quot;oddHeader&quot;:case&quot;oddFooter&quot;:case&quot;evenHeader&quot;:case&quot;evenFooter&quot;:case&quot;firstHeader&quot;:case&quot;firstFooter&quot;:return this.currentNode=void 0,!0;default:return!1}}}},{&quot;../base-xform&quot;:32}],98:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;hyperlink&quot;}render(l,u){this.isInternalLink(u)?l.leafNode(&quot;hyperlink&quot;,{ref:u.address,&quot;r:id&quot;:u.rId,tooltip:u.tooltip,location:u.target}):l.leafNode(&quot;hyperlink&quot;,{ref:u.address,&quot;r:id&quot;:u.rId,tooltip:u.tooltip})}parseOpen(l){return l.name===&quot;hyperlink&quot;&amp;&amp;(this.model={address:l.attributes.ref,rId:l.attributes[&quot;r:id&quot;],tooltip:l.attributes.tooltip},l.attributes.location&amp;&amp;(this.model.target=l.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(l){return l.target&amp;&amp;/^[^!]+![a-zA-Z]+[\d]+$/.test(l.target)}}},{&quot;../base-xform&quot;:32}],99:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;mergeCell&quot;}render(l,u){l.leafNode(&quot;mergeCell&quot;,{ref:u})}parseOpen(l){return l.name===&quot;mergeCell&quot;&amp;&amp;(this.model=l.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],100:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../../../doc/range&quot;),u=t(&quot;../../../utils/col-cache&quot;),c=t(&quot;../../../doc/enums&quot;);n.exports=class{constructor(){this.merges={}}add(a){if(this.merges[a.master])this.merges[a.master].expandToAddress(a.address);else{const d=`${a.master}:${a.address}`;this.merges[a.master]=new l(d)}}get mergeCells(){return s.map(this.merges,a=&gt;a.range)}reconcile(a,d){s.each(a,f=&gt;{const h=u.decode(f);for(let m=h.top;m&lt;=h.bottom;m++){const p=d[m-1];for(let x=h.left;x&lt;=h.right;x++){const g=p.cells[x-1];g?g.type===c.ValueType.Merge&amp;&amp;(g.master=h.tl):p.cells[x]={type:c.ValueType.Null,address:u.encodeAddress(m,x)}}}})}getMasterAddress(a){const d=this.hash[a];return d&amp;&amp;d.tl}}},{&quot;../../../doc/enums&quot;:7,&quot;../../../doc/range&quot;:10,&quot;../../../utils/col-cache&quot;:19,&quot;../../../utils/under-dash&quot;:26}],101:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=u=&gt;u!==void 0;n.exports=class extends s{get tag(){return&quot;outlinePr&quot;}render(u,c){return!(!c||!l(c.summaryBelow)&amp;&amp;!l(c.summaryRight))&amp;&amp;(u.leafNode(this.tag,{summaryBelow:l(c.summaryBelow)?Number(c.summaryBelow):void 0,summaryRight:l(c.summaryRight)?Number(c.summaryRight):void 0}),!0)}parseOpen(u){return u.name===this.tag&amp;&amp;(this.model={summaryBelow:l(u.attributes.summaryBelow)?!!Number(u.attributes.summaryBelow):void 0,summaryRight:l(u.attributes.summaryRight)?!!Number(u.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],102:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;brk&quot;}render(l,u){l.leafNode(&quot;brk&quot;,u)}parseOpen(l){return l.name===&quot;brk&quot;&amp;&amp;(this.model=l.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],103:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../base-xform&quot;);n.exports=class extends l{get tag(){return&quot;pageMargins&quot;}render(u,c){if(c){const a={left:c.left,right:c.right,top:c.top,bottom:c.bottom,header:c.header,footer:c.footer};s.some(a,d=&gt;d!==void 0)&amp;&amp;u.leafNode(this.tag,a)}}parseOpen(u){return u.name===this.tag?(this.model={left:parseFloat(u.attributes.left||.7),right:parseFloat(u.attributes.right||.7),top:parseFloat(u.attributes.top||.75),bottom:parseFloat(u.attributes.bottom||.75),header:parseFloat(u.attributes.header||.3),footer:parseFloat(u.attributes.footer||.3)},!0):!1}parseText(){}parseClose(){return!1}}},{&quot;../../../utils/under-dash&quot;:26,&quot;../base-xform&quot;:32}],104:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;pageSetUpPr&quot;}render(l,u){return!(!u||!u.fitToPage)&amp;&amp;(l.leafNode(this.tag,{fitToPage:u.fitToPage?&quot;1&quot;:void 0}),!0)}parseOpen(l){return l.name===this.tag&amp;&amp;(this.model={fitToPage:l.attributes.fitToPage===&quot;1&quot;},!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],105:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../base-xform&quot;);function u(f){return f?&quot;1&quot;:void 0}function c(f){if(f===&quot;overThenDown&quot;)return f}function a(f){switch(f){case&quot;atEnd&quot;:case&quot;asDisplyed&quot;:return f;default:return}}function d(f){switch(f){case&quot;dash&quot;:case&quot;blank&quot;:case&quot;NA&quot;:return f;default:return}}n.exports=class extends l{get tag(){return&quot;pageSetup&quot;}render(f,h){if(h){const m={paperSize:h.paperSize,orientation:h.orientation,horizontalDpi:h.horizontalDpi,verticalDpi:h.verticalDpi,pageOrder:c(h.pageOrder),blackAndWhite:u(h.blackAndWhite),draft:u(h.draft),cellComments:a(h.cellComments),errors:d(h.errors),scale:h.scale,fitToWidth:h.fitToWidth,fitToHeight:h.fitToHeight,firstPageNumber:h.firstPageNumber,useFirstPageNumber:u(h.firstPageNumber),usePrinterDefaults:u(h.usePrinterDefaults),copies:h.copies};s.some(m,p=&gt;p!==void 0)&amp;&amp;f.leafNode(this.tag,m)}}parseOpen(f){if(f.name===this.tag)return this.model={paperSize:(h=f.attributes.paperSize,h!==void 0?parseInt(h,10):void 0),orientation:f.attributes.orientation||&quot;portrait&quot;,horizontalDpi:parseInt(f.attributes.horizontalDpi||&quot;4294967295&quot;,10),verticalDpi:parseInt(f.attributes.verticalDpi||&quot;4294967295&quot;,10),pageOrder:f.attributes.pageOrder||&quot;downThenOver&quot;,blackAndWhite:f.attributes.blackAndWhite===&quot;1&quot;,draft:f.attributes.draft===&quot;1&quot;,cellComments:f.attributes.cellComments||&quot;None&quot;,errors:f.attributes.errors||&quot;displayed&quot;,scale:parseInt(f.attributes.scale||&quot;100&quot;,10),fitToWidth:parseInt(f.attributes.fitToWidth||&quot;1&quot;,10),fitToHeight:parseInt(f.attributes.fitToHeight||&quot;1&quot;,10),firstPageNumber:parseInt(f.attributes.firstPageNumber||&quot;1&quot;,10),useFirstPageNumber:f.attributes.useFirstPageNumber===&quot;1&quot;,usePrinterDefaults:f.attributes.usePrinterDefaults===&quot;1&quot;,copies:parseInt(f.attributes.copies||&quot;1&quot;,10)},!0;return!1;var h}parseText(){}parseClose(){return!1}}},{&quot;../../../utils/under-dash&quot;:26,&quot;../base-xform&quot;:32}],106:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;picture&quot;}render(l,u){u&amp;&amp;l.leafNode(this.tag,{&quot;r:id&quot;:u.rId})}parseOpen(l){return l.name===this.tag?(this.model={rId:l.attributes[&quot;r:id&quot;]},!0):!1}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],107:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../base-xform&quot;);function u(c){return c?&quot;1&quot;:void 0}n.exports=class extends l{get tag(){return&quot;printOptions&quot;}render(c,a){if(a){const d={headings:u(a.showRowColHeaders),gridLines:u(a.showGridLines),horizontalCentered:u(a.horizontalCentered),verticalCentered:u(a.verticalCentered)};s.some(d,f=&gt;f!==void 0)&amp;&amp;c.leafNode(this.tag,d)}}parseOpen(c){return c.name===this.tag?(this.model={showRowColHeaders:c.attributes.headings===&quot;1&quot;,showGridLines:c.attributes.gridLines===&quot;1&quot;,horizontalCentered:c.attributes.horizontalCentered===&quot;1&quot;,verticalCentered:c.attributes.verticalCentered===&quot;1&quot;},!0):!1}parseText(){}parseClose(){return!1}}},{&quot;../../../utils/under-dash&quot;:26,&quot;../base-xform&quot;:32}],108:[function(t,n,o){const s=t(&quot;./page-breaks-xform&quot;),l=t(&quot;../list-xform&quot;);n.exports=class extends l{constructor(){super({tag:&quot;rowBreaks&quot;,count:!0,childXform:new s})}render(u,c){if(c&amp;&amp;c.length){u.openNode(this.tag,this.$),this.count&amp;&amp;(u.addAttribute(this.$count,c.length),u.addAttribute(&quot;manualBreakCount&quot;,c.length));const{childXform:a}=this;c.forEach(d=&gt;{a.render(u,d)}),u.closeNode()}else this.empty&amp;&amp;u.leafNode(this.tag)}}},{&quot;../list-xform&quot;:71,&quot;./page-breaks-xform&quot;:102}],109:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;../../../utils/utils&quot;),u=t(&quot;./cell-xform&quot;);n.exports=class extends s{constructor(c){super(),this.maxItems=c&amp;&amp;c.maxItems,this.map={c:new u}}get tag(){return&quot;row&quot;}prepare(c,a){const d=a.styles.addStyleModel(c.style);d&amp;&amp;(c.styleId=d);const f=this.map.c;c.cells.forEach(h=&gt;{f.prepare(h,a)})}render(c,a,d){c.openNode(&quot;row&quot;),c.addAttribute(&quot;r&quot;,a.number),a.height&amp;&amp;(c.addAttribute(&quot;ht&quot;,a.height),c.addAttribute(&quot;customHeight&quot;,&quot;1&quot;)),a.hidden&amp;&amp;c.addAttribute(&quot;hidden&quot;,&quot;1&quot;),a.min&gt;0&amp;&amp;a.max&gt;0&amp;&amp;a.min&lt;=a.max&amp;&amp;c.addAttribute(&quot;spans&quot;,`${a.min}:${a.max}`),a.styleId&amp;&amp;(c.addAttribute(&quot;s&quot;,a.styleId),c.addAttribute(&quot;customFormat&quot;,&quot;1&quot;)),c.addAttribute(&quot;x14ac:dyDescent&quot;,&quot;0.25&quot;),a.outlineLevel&amp;&amp;c.addAttribute(&quot;outlineLevel&quot;,a.outlineLevel),a.collapsed&amp;&amp;c.addAttribute(&quot;collapsed&quot;,&quot;1&quot;);const f=this.map.c;a.cells.forEach(h=&gt;{f.render(c,h,d)}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;if(c.name===&quot;row&quot;){this.numRowsSeen+=1;const a=c.attributes.spans?c.attributes.spans.split(&quot;:&quot;).map(f=&gt;parseInt(f,10)):[void 0,void 0],d=this.model={number:parseInt(c.attributes.r,10),min:a[0],max:a[1],cells:[]};return c.attributes.s&amp;&amp;(d.styleId=parseInt(c.attributes.s,10)),l.parseBoolean(c.attributes.hidden)&amp;&amp;(d.hidden=!0),l.parseBoolean(c.attributes.bestFit)&amp;&amp;(d.bestFit=!0),c.attributes.ht&amp;&amp;(d.height=parseFloat(c.attributes.ht)),c.attributes.outlineLevel&amp;&amp;(d.outlineLevel=parseInt(c.attributes.outlineLevel,10)),l.parseBoolean(c.attributes.collapsed)&amp;&amp;(d.collapsed=!0),!0}return this.parser=this.map[c.name],!!this.parser&amp;&amp;(this.parser.parseOpen(c),!0)}parseText(c){this.parser&amp;&amp;this.parser.parseText(c)}parseClose(c){if(this.parser){if(!this.parser.parseClose(c)){if(this.model.cells.push(this.parser.model),this.maxItems&amp;&amp;this.model.cells.length&gt;this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(c,a){c.style=c.styleId?a.styles.getStyleModel(c.styleId):{},c.styleId!==void 0&amp;&amp;(c.styleId=void 0);const d=this.map.c;c.cells.forEach(f=&gt;{d.reconcile(f,a)})}}},{&quot;../../../utils/utils&quot;:27,&quot;../base-xform&quot;:32,&quot;./cell-xform&quot;:73}],110:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../base-xform&quot;);n.exports=class extends l{get tag(){return&quot;sheetFormatPr&quot;}render(u,c){if(c){const a={defaultRowHeight:c.defaultRowHeight,outlineLevelRow:c.outlineLevelRow,outlineLevelCol:c.outlineLevelCol,&quot;x14ac:dyDescent&quot;:c.dyDescent};c.defaultColWidth&amp;&amp;(a.defaultColWidth=c.defaultColWidth),c.defaultRowHeight&amp;&amp;c.defaultRowHeight===15||(a.customHeight=&quot;1&quot;),s.some(a,d=&gt;d!==void 0)&amp;&amp;u.leafNode(&quot;sheetFormatPr&quot;,a)}}parseOpen(u){return u.name===&quot;sheetFormatPr&quot;&amp;&amp;(this.model={defaultRowHeight:parseFloat(u.attributes.defaultRowHeight||&quot;0&quot;),dyDescent:parseFloat(u.attributes[&quot;x14ac:dyDescent&quot;]||&quot;0&quot;),outlineLevelRow:parseInt(u.attributes.outlineLevelRow||&quot;0&quot;,10),outlineLevelCol:parseInt(u.attributes.outlineLevelCol||&quot;0&quot;,10)},u.attributes.defaultColWidth&amp;&amp;(this.model.defaultColWidth=parseFloat(u.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{&quot;../../../utils/under-dash&quot;:26,&quot;../base-xform&quot;:32}],111:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;../style/color-xform&quot;),u=t(&quot;./page-setup-properties-xform&quot;),c=t(&quot;./outline-properties-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={tabColor:new l(&quot;tabColor&quot;),pageSetUpPr:new u,outlinePr:new c}}get tag(){return&quot;sheetPr&quot;}render(a,d){if(d){a.addRollback(),a.openNode(&quot;sheetPr&quot;);let f=!1;f=this.map.tabColor.render(a,d.tabColor)||f,f=this.map.pageSetUpPr.render(a,d.pageSetup)||f,f=this.map.outlinePr.render(a,d.outlineProperties)||f,f?(a.closeNode(),a.commit()):a.rollback()}}parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag?(this.reset(),!0):!!this.map[a.name]&amp;&amp;(this.parser=this.map[a.name],this.parser.parseOpen(a),!0)}parseText(a){return!!this.parser&amp;&amp;(this.parser.parseText(a),!0)}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&amp;&amp;(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&amp;&amp;(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&amp;&amp;(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{&quot;../base-xform&quot;:32,&quot;../style/color-xform&quot;:128,&quot;./outline-properties-xform&quot;:101,&quot;./page-setup-properties-xform&quot;:104}],112:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../base-xform&quot;);function u(a,d){return a?d:void 0}function c(a,d){return a===d||void 0}n.exports=class extends l{get tag(){return&quot;sheetProtection&quot;}render(a,d){if(d){const f={sheet:u(d.sheet,&quot;1&quot;),selectLockedCells:d.selectLockedCells===!1?&quot;1&quot;:void 0,selectUnlockedCells:d.selectUnlockedCells===!1?&quot;1&quot;:void 0,formatCells:u(d.formatCells,&quot;0&quot;),formatColumns:u(d.formatColumns,&quot;0&quot;),formatRows:u(d.formatRows,&quot;0&quot;),insertColumns:u(d.insertColumns,&quot;0&quot;),insertRows:u(d.insertRows,&quot;0&quot;),insertHyperlinks:u(d.insertHyperlinks,&quot;0&quot;),deleteColumns:u(d.deleteColumns,&quot;0&quot;),deleteRows:u(d.deleteRows,&quot;0&quot;),sort:u(d.sort,&quot;0&quot;),autoFilter:u(d.autoFilter,&quot;0&quot;),pivotTables:u(d.pivotTables,&quot;0&quot;)};d.sheet&amp;&amp;(f.algorithmName=d.algorithmName,f.hashValue=d.hashValue,f.saltValue=d.saltValue,f.spinCount=d.spinCount,f.objects=u(d.objects===!1,&quot;1&quot;),f.scenarios=u(d.scenarios===!1,&quot;1&quot;)),s.some(f,h=&gt;h!==void 0)&amp;&amp;a.leafNode(this.tag,f)}}parseOpen(a){return a.name===this.tag?(this.model={sheet:c(a.attributes.sheet,&quot;1&quot;),objects:a.attributes.objects!==&quot;1&quot;&amp;&amp;void 0,scenarios:a.attributes.scenarios!==&quot;1&quot;&amp;&amp;void 0,selectLockedCells:a.attributes.selectLockedCells!==&quot;1&quot;&amp;&amp;void 0,selectUnlockedCells:a.attributes.selectUnlockedCells!==&quot;1&quot;&amp;&amp;void 0,formatCells:c(a.attributes.formatCells,&quot;0&quot;),formatColumns:c(a.attributes.formatColumns,&quot;0&quot;),formatRows:c(a.attributes.formatRows,&quot;0&quot;),insertColumns:c(a.attributes.insertColumns,&quot;0&quot;),insertRows:c(a.attributes.insertRows,&quot;0&quot;),insertHyperlinks:c(a.attributes.insertHyperlinks,&quot;0&quot;),deleteColumns:c(a.attributes.deleteColumns,&quot;0&quot;),deleteRows:c(a.attributes.deleteRows,&quot;0&quot;),sort:c(a.attributes.sort,&quot;0&quot;),autoFilter:c(a.attributes.autoFilter,&quot;0&quot;),pivotTables:c(a.attributes.pivotTables,&quot;0&quot;)},a.attributes.algorithmName&amp;&amp;(this.model.algorithmName=a.attributes.algorithmName,this.model.hashValue=a.attributes.hashValue,this.model.saltValue=a.attributes.saltValue,this.model.spinCount=parseInt(a.attributes.spinCount,10)),!0):!1}parseText(){}parseClose(){return!1}}},{&quot;../../../utils/under-dash&quot;:26,&quot;../base-xform&quot;:32}],113:[function(t,n,o){const s=t(&quot;../../../utils/col-cache&quot;),l=t(&quot;../base-xform&quot;),u={frozen:&quot;frozen&quot;,frozenSplit:&quot;frozen&quot;,split:&quot;split&quot;};n.exports=class extends l{get tag(){return&quot;sheetView&quot;}prepare(c){switch(c.state){case&quot;frozen&quot;:case&quot;split&quot;:break;default:c.state=&quot;normal&quot;}}render(c,a){c.openNode(&quot;sheetView&quot;,{workbookViewId:a.workbookViewId||0});const d=function(x,g,y){y&amp;&amp;c.addAttribute(x,g)};let f,h,m,p;switch(d(&quot;rightToLeft&quot;,&quot;1&quot;,a.rightToLeft===!0),d(&quot;tabSelected&quot;,&quot;1&quot;,a.tabSelected),d(&quot;showRuler&quot;,&quot;0&quot;,a.showRuler===!1),d(&quot;showRowColHeaders&quot;,&quot;0&quot;,a.showRowColHeaders===!1),d(&quot;showGridLines&quot;,&quot;0&quot;,a.showGridLines===!1),d(&quot;zoomScale&quot;,a.zoomScale,a.zoomScale),d(&quot;zoomScaleNormal&quot;,a.zoomScaleNormal,a.zoomScaleNormal),d(&quot;view&quot;,a.style,a.style),a.state){case&quot;frozen&quot;:h=a.xSplit||0,m=a.ySplit||0,f=a.topLeftCell||s.getAddress(m+1,h+1).address,p=(a.xSplit&amp;&amp;a.ySplit?&quot;bottomRight&quot;:a.xSplit&amp;&amp;&quot;topRight&quot;)||&quot;bottomLeft&quot;,c.leafNode(&quot;pane&quot;,{xSplit:a.xSplit||void 0,ySplit:a.ySplit||void 0,topLeftCell:f,activePane:p,state:&quot;frozen&quot;}),c.leafNode(&quot;selection&quot;,{pane:p,activeCell:a.activeCell,sqref:a.activeCell});break;case&quot;split&quot;:a.activePane===&quot;topLeft&quot;&amp;&amp;(a.activePane=void 0),c.leafNode(&quot;pane&quot;,{xSplit:a.xSplit||void 0,ySplit:a.ySplit||void 0,topLeftCell:a.topLeftCell,activePane:a.activePane}),c.leafNode(&quot;selection&quot;,{pane:a.activePane,activeCell:a.activeCell,sqref:a.activeCell});break;case&quot;normal&quot;:a.activeCell&amp;&amp;c.leafNode(&quot;selection&quot;,{activeCell:a.activeCell,sqref:a.activeCell})}c.closeNode()}parseOpen(c){switch(c.name){case&quot;sheetView&quot;:return this.sheetView={workbookViewId:parseInt(c.attributes.workbookViewId,10),rightToLeft:c.attributes.rightToLeft===&quot;1&quot;,tabSelected:c.attributes.tabSelected===&quot;1&quot;,showRuler:c.attributes.showRuler!==&quot;0&quot;,showRowColHeaders:c.attributes.showRowColHeaders!==&quot;0&quot;,showGridLines:c.attributes.showGridLines!==&quot;0&quot;,zoomScale:parseInt(c.attributes.zoomScale||&quot;100&quot;,10),zoomScaleNormal:parseInt(c.attributes.zoomScaleNormal||&quot;100&quot;,10),style:c.attributes.view},this.pane=void 0,this.selections={},!0;case&quot;pane&quot;:return this.pane={xSplit:parseInt(c.attributes.xSplit||&quot;0&quot;,10),ySplit:parseInt(c.attributes.ySplit||&quot;0&quot;,10),topLeftCell:c.attributes.topLeftCell,activePane:c.attributes.activePane||&quot;topLeft&quot;,state:c.attributes.state},!0;case&quot;selection&quot;:{const a=c.attributes.pane||&quot;topLeft&quot;;return this.selections[a]={pane:a,activeCell:c.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(c){let a,d;return c===&quot;sheetView&quot;?(this.sheetView&amp;&amp;this.pane?(a=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:u[this.pane.state]||&quot;split&quot;,xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state===&quot;split&quot;&amp;&amp;(a.activePane=this.pane.activePane),d=this.selections[this.pane.activePane],d&amp;&amp;d.activeCell&amp;&amp;(a.activeCell=d.activeCell),this.sheetView.style&amp;&amp;(a.style=this.sheetView.style)):(a=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:&quot;normal&quot;,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},d=this.selections.topLeft,d&amp;&amp;d.activeCell&amp;&amp;(a.activeCell=d.activeCell),this.sheetView.style&amp;&amp;(a.style=this.sheetView.style)),!1):!0}reconcile(){}}},{&quot;../../../utils/col-cache&quot;:19,&quot;../base-xform&quot;:32}],114:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;tablePart&quot;}render(l,u){u&amp;&amp;l.leafNode(this.tag,{&quot;r:id&quot;:u.rId})}parseOpen(l){return l.name===this.tag?(this.model={rId:l.attributes[&quot;r:id&quot;]},!0):!1}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],115:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../../../utils/col-cache&quot;),u=t(&quot;../../../utils/xml-stream&quot;),c=t(&quot;../../rel-type&quot;),a=t(&quot;./merges&quot;),d=t(&quot;../base-xform&quot;),f=t(&quot;../list-xform&quot;),h=t(&quot;./row-xform&quot;),m=t(&quot;./col-xform&quot;),p=t(&quot;./dimension-xform&quot;),x=t(&quot;./hyperlink-xform&quot;),g=t(&quot;./merge-cell-xform&quot;),y=t(&quot;./data-validations-xform&quot;),v=t(&quot;./sheet-properties-xform&quot;),_=t(&quot;./sheet-format-properties-xform&quot;),S=t(&quot;./sheet-view-xform&quot;),A=t(&quot;./sheet-protection-xform&quot;),I=t(&quot;./page-margins-xform&quot;),V=t(&quot;./page-setup-xform&quot;),F=t(&quot;./print-options-xform&quot;),q=t(&quot;./auto-filter-xform&quot;),H=t(&quot;./picture-xform&quot;),B=t(&quot;./drawing-xform&quot;),K=t(&quot;./table-part-xform&quot;),T=t(&quot;./row-breaks-xform&quot;),L=t(&quot;./header-footer-xform&quot;),E=t(&quot;./cf/conditional-formattings-xform&quot;),j=t(&quot;./ext-lst-xform&quot;),k=(C,P)=&gt;{if(!P||!P.length)return C;if(!C||!C.length)return P;const D={},z={};return C.forEach(Y=&gt;{D[Y.ref]=Y,Y.rules.forEach(Z=&gt;{const{x14Id:ne}=Z;ne&amp;&amp;(z[ne]=Z)})}),P.forEach(Y=&gt;{Y.rules.forEach(Z=&gt;{const ne=z[Z.x14Id];ne?((U,J)=&gt;{Object.keys(J).forEach($=&gt;{const R=U[$],X=J[$];R===void 0&amp;&amp;X!==void 0&amp;&amp;(U[$]=X)})})(ne,Z):D[Y.ref]?D[Y.ref].rules.push(Z):C.push({ref:Y.ref,rules:[Z]})})}),C};class N extends d{constructor(P){super();const{maxRows:D,maxCols:z,ignoreNodes:Y}=P||{};this.ignoreNodes=Y||[],this.map={sheetPr:new v,dimension:new p,sheetViews:new f({tag:&quot;sheetViews&quot;,count:!1,childXform:new S}),sheetFormatPr:new _,cols:new f({tag:&quot;cols&quot;,count:!1,childXform:new m}),sheetData:new f({tag:&quot;sheetData&quot;,count:!1,empty:!0,childXform:new h({maxItems:z}),maxItems:D}),autoFilter:new q,mergeCells:new f({tag:&quot;mergeCells&quot;,count:!0,childXform:new g}),rowBreaks:new T,hyperlinks:new f({tag:&quot;hyperlinks&quot;,count:!1,childXform:new x}),pageMargins:new I,dataValidations:new y,pageSetup:new V,headerFooter:new L,printOptions:new F,picture:new H,drawing:new B,sheetProtection:new A,tableParts:new f({tag:&quot;tableParts&quot;,count:!0,childXform:new K}),conditionalFormatting:new E,extLst:new j}}prepare(P,D){D.merges=new a,P.hyperlinks=D.hyperlinks=[],P.comments=D.comments=[],D.formulae={},D.siFormulae=0,this.map.cols.prepare(P.cols,D),this.map.sheetData.prepare(P.rows,D),this.map.conditionalFormatting.prepare(P.conditionalFormattings,D),P.mergeCells=D.merges.mergeCells;const z=P.rels=[];function Y(U){return&quot;rId&quot;+(U.length+1)}if(P.hyperlinks.forEach(U=&gt;{const J=Y(z);U.rId=J,z.push({Id:J,Type:c.Hyperlink,Target:U.target,TargetMode:&quot;External&quot;})}),P.comments.length&gt;0){const U={Id:Y(z),Type:c.Comments,Target:`../comments${P.id}.xml`};z.push(U);const J={Id:Y(z),Type:c.VmlDrawing,Target:`../drawings/vmlDrawing${P.id}.vml`};z.push(J),P.comments.forEach($=&gt;{$.refAddress=l.decodeAddress($.ref)}),D.commentRefs.push({commentName:&quot;comments&quot;+P.id,vmlDrawing:&quot;vmlDrawing&quot;+P.id})}const Z=[];let ne;P.media.forEach(U=&gt;{if(U.type===&quot;background&quot;){const J=Y(z);ne=D.media[U.imageId],z.push({Id:J,Type:c.Image,Target:`../media/${ne.name}.${ne.extension}`}),P.background={rId:J},P.image=D.media[U.imageId]}else if(U.type===&quot;image&quot;){let{drawing:J}=P;ne=D.media[U.imageId],J||(J=P.drawing={rId:Y(z),name:&quot;drawing&quot;+ ++D.drawingsCount,anchors:[],rels:[]},D.drawings.push(J),z.push({Id:J.rId,Type:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing&quot;,Target:`../drawings/${J.name}.xml`}));let $=this.preImageId===U.imageId?Z[U.imageId]:Z[J.rels.length];$||($=Y(J.rels),Z[J.rels.length]=$,J.rels.push({Id:$,Type:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/image&quot;,Target:`../media/${ne.name}.${ne.extension}`}));const R={picture:{rId:$},range:U.range};if(U.hyperlinks&amp;&amp;U.hyperlinks.hyperlink){const X=Y(J.rels);Z[J.rels.length]=X,R.picture.hyperlinks={tooltip:U.hyperlinks.tooltip,rId:X},J.rels.push({Id:X,Type:c.Hyperlink,Target:U.hyperlinks.hyperlink,TargetMode:&quot;External&quot;})}this.preImageId=U.imageId,J.anchors.push(R)}}),P.tables.forEach(U=&gt;{const J=Y(z);U.rId=J,z.push({Id:J,Type:c.Table,Target:&quot;../tables/&quot;+U.target}),U.columns.forEach($=&gt;{const{style:R}=$;R&amp;&amp;($.dxfId=D.styles.addDxfStyle(R))})}),this.map.extLst.prepare(P,D)}render(P,D){P.openXml(u.StdDocAttributes),P.openNode(&quot;worksheet&quot;,N.WORKSHEET_ATTRIBUTES);const z=D.properties?{defaultRowHeight:D.properties.defaultRowHeight,dyDescent:D.properties.dyDescent,outlineLevelCol:D.properties.outlineLevelCol,outlineLevelRow:D.properties.outlineLevelRow}:void 0;D.properties&amp;&amp;D.properties.defaultColWidth&amp;&amp;(z.defaultColWidth=D.properties.defaultColWidth);const Y={outlineProperties:D.properties&amp;&amp;D.properties.outlineProperties,tabColor:D.properties&amp;&amp;D.properties.tabColor,pageSetup:D.pageSetup&amp;&amp;D.pageSetup.fitToPage?{fitToPage:D.pageSetup.fitToPage}:void 0},Z=D.pageSetup&amp;&amp;D.pageSetup.margins,ne={showRowColHeaders:D.pageSetup&amp;&amp;D.pageSetup.showRowColHeaders,showGridLines:D.pageSetup&amp;&amp;D.pageSetup.showGridLines,horizontalCentered:D.pageSetup&amp;&amp;D.pageSetup.horizontalCentered,verticalCentered:D.pageSetup&amp;&amp;D.pageSetup.verticalCentered},U=D.sheetProtection;this.map.sheetPr.render(P,Y),this.map.dimension.render(P,D.dimensions),this.map.sheetViews.render(P,D.views),this.map.sheetFormatPr.render(P,z),this.map.cols.render(P,D.cols),this.map.sheetData.render(P,D.rows),this.map.sheetProtection.render(P,U),this.map.autoFilter.render(P,D.autoFilter),this.map.mergeCells.render(P,D.mergeCells),this.map.conditionalFormatting.render(P,D.conditionalFormattings),this.map.dataValidations.render(P,D.dataValidations),this.map.hyperlinks.render(P,D.hyperlinks),this.map.printOptions.render(P,ne),this.map.pageMargins.render(P,Z),this.map.pageSetup.render(P,D.pageSetup),this.map.headerFooter.render(P,D.headerFooter),this.map.rowBreaks.render(P,D.rowBreaks),this.map.drawing.render(P,D.drawing),this.map.picture.render(P,D.background),this.map.tableParts.render(P,D.tables),this.map.extLst.render(P,D),D.rels&amp;&amp;D.rels.forEach(J=&gt;{J.Type===c.VmlDrawing&amp;&amp;P.leafNode(&quot;legacyDrawing&quot;,{&quot;r:id&quot;:J.Id})}),P.closeNode()}parseOpen(P){return this.parser?(this.parser.parseOpen(P),!0):P.name===&quot;worksheet&quot;?(s.each(this.map,D=&gt;{D.reset()}),!0):(this.map[P.name]&amp;&amp;!this.ignoreNodes.includes(P.name)&amp;&amp;(this.parser=this.map[P.name],this.parser.parseOpen(P)),!0)}parseText(P){this.parser&amp;&amp;this.parser.parseText(P)}parseClose(P){if(this.parser)return this.parser.parseClose(P)||(this.parser=void 0),!0;if(P===&quot;worksheet&quot;){const D=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&amp;&amp;this.map.sheetPr.model.tabColor&amp;&amp;(D.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&amp;&amp;this.map.sheetPr.model.outlineProperties&amp;&amp;(D.outlineProperties=this.map.sheetPr.model.outlineProperties);const z={fitToPage:this.map.sheetPr.model&amp;&amp;this.map.sheetPr.model.pageSetup&amp;&amp;this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},Y=Object.assign(z,this.map.pageSetup.model,this.map.printOptions.model),Z=k(this.map.conditionalFormatting.model,this.map.extLst.model&amp;&amp;this.map.extLst.model[&quot;x14:conditionalFormattings&quot;]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:D,views:this.map.sheetViews.model,pageSetup:Y,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:Z},this.map.autoFilter.model&amp;&amp;(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&amp;&amp;(this.model.sheetProtection=this.map.sheetProtection.model),!1}else return!0}reconcile(P,D){const z=(P.relationships||[]).reduce((Z,ne)=&gt;{if(Z[ne.Id]=ne,ne.Type===c.Comments&amp;&amp;(P.comments=D.comments[ne.Target].comments),ne.Type===c.VmlDrawing&amp;&amp;P.comments&amp;&amp;P.comments.length){const U=D.vmlDrawings[ne.Target].comments;P.comments.forEach((J,$)=&gt;{J.note=Object.assign({},J.note,U[$])})}return Z},{});if(D.commentsMap=(P.comments||[]).reduce((Z,ne)=&gt;(ne.ref&amp;&amp;(Z[ne.ref]=ne),Z),{}),D.hyperlinkMap=(P.hyperlinks||[]).reduce((Z,ne)=&gt;(ne.rId&amp;&amp;(Z[ne.address]=z[ne.rId].Target),Z),{}),D.formulae={},P.rows=P.rows&amp;&amp;P.rows.filter(Boolean)||[],P.rows.forEach(Z=&gt;{Z.cells=Z.cells&amp;&amp;Z.cells.filter(Boolean)||[]}),this.map.cols.reconcile(P.cols,D),this.map.sheetData.reconcile(P.rows,D),this.map.conditionalFormatting.reconcile(P.conditionalFormattings,D),P.media=[],P.drawing){const Z=z[P.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(Z){const ne=Z[1];D.drawings[ne].anchors.forEach(U=&gt;{if(U.medium){const J={type:&quot;image&quot;,imageId:U.medium.index,range:U.range,hyperlinks:U.picture.hyperlinks};P.media.push(J)}})}}const Y=P.background&amp;&amp;z[P.background.rId];if(Y){const Z=Y.Target.split(&quot;/media/&quot;)[1],ne=D.mediaIndex&amp;&amp;D.mediaIndex[Z];ne!==void 0&amp;&amp;P.media.push({type:&quot;background&quot;,imageId:ne})}P.tables=(P.tables||[]).map(Z=&gt;{const ne=z[Z.rId];return D.tables[ne.Target]}),delete P.relationships,delete P.hyperlinks,delete P.comments}}N.WORKSHEET_ATTRIBUTES={xmlns:&quot;http://schemas.openxmlformats.org/spreadsheetml/2006/main&quot;,&quot;xmlns:r&quot;:&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships&quot;,&quot;xmlns:mc&quot;:&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;,&quot;mc:Ignorable&quot;:&quot;x14ac&quot;,&quot;xmlns:x14ac&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac&quot;},n.exports=N},{&quot;../../../utils/col-cache&quot;:19,&quot;../../../utils/under-dash&quot;:26,&quot;../../../utils/xml-stream&quot;:28,&quot;../../rel-type&quot;:31,&quot;../base-xform&quot;:32,&quot;../list-xform&quot;:71,&quot;./auto-filter-xform&quot;:72,&quot;./cf/conditional-formattings-xform&quot;:87,&quot;./col-xform&quot;:92,&quot;./data-validations-xform&quot;:93,&quot;./dimension-xform&quot;:94,&quot;./drawing-xform&quot;:95,&quot;./ext-lst-xform&quot;:96,&quot;./header-footer-xform&quot;:97,&quot;./hyperlink-xform&quot;:98,&quot;./merge-cell-xform&quot;:99,&quot;./merges&quot;:100,&quot;./page-margins-xform&quot;:103,&quot;./page-setup-xform&quot;:105,&quot;./picture-xform&quot;:106,&quot;./print-options-xform&quot;:107,&quot;./row-breaks-xform&quot;:108,&quot;./row-xform&quot;:109,&quot;./sheet-format-properties-xform&quot;:110,&quot;./sheet-properties-xform&quot;:111,&quot;./sheet-protection-xform&quot;:112,&quot;./sheet-view-xform&quot;:113,&quot;./table-part-xform&quot;:114}],116:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{constructor(l){super(),this.tag=l.tag,this.attr=l.attr}render(l,u){u&amp;&amp;(l.openNode(this.tag),l.closeNode())}parseOpen(l){l.name===this.tag&amp;&amp;(this.model=!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],117:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{constructor(l){super(),this.tag=l.tag,this.attr=l.attr,this.attrs=l.attrs,this._format=l.format||function(u){try{return Number.isNaN(u.getTime())?&quot;&quot;:u.toISOString()}catch{return&quot;&quot;}},this._parse=l.parse||function(u){return new Date(u)}}render(l,u){u&amp;&amp;(l.openNode(this.tag),this.attrs&amp;&amp;l.addAttributes(this.attrs),this.attr?l.addAttribute(this.attr,this._format(u)):l.writeText(this._format(u)),l.closeNode())}parseOpen(l){l.name===this.tag&amp;&amp;(this.attr?this.model=this._parse(l.attributes[this.attr]):this.text=[])}parseText(l){this.attr||this.text.push(l)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(&quot;&quot;))),!1}}},{&quot;../base-xform&quot;:32}],118:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{constructor(l){super(),this.tag=l.tag,this.attr=l.attr,this.attrs=l.attrs,this.zero=l.zero}render(l,u){(u||this.zero)&amp;&amp;(l.openNode(this.tag),this.attrs&amp;&amp;l.addAttributes(this.attrs),this.attr?l.addAttribute(this.attr,u):l.writeText(u),l.closeNode())}parseOpen(l){return l.name===this.tag&amp;&amp;(this.attr?this.model=parseInt(l.attributes[this.attr],10):this.text=[],!0)}parseText(l){this.attr||this.text.push(l)}parseClose(){return this.attr||(this.model=parseInt(this.text.join(&quot;&quot;)||0,10)),!1}}},{&quot;../base-xform&quot;:32}],119:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{constructor(l){super(),this.tag=l.tag,this.attr=l.attr,this.attrs=l.attrs}render(l,u){u!==void 0&amp;&amp;(l.openNode(this.tag),this.attrs&amp;&amp;l.addAttributes(this.attrs),this.attr?l.addAttribute(this.attr,u):l.writeText(u),l.closeNode())}parseOpen(l){l.name===this.tag&amp;&amp;(this.attr?this.model=l.attributes[this.attr]:this.text=[])}parseText(l){this.attr||this.text.push(l)}parseClose(){return this.attr||(this.model=this.text.join(&quot;&quot;)),!1}}},{&quot;../base-xform&quot;:32}],120:[function(t,n,o){const s=t(&quot;./base-xform&quot;),l=t(&quot;../../utils/xml-stream&quot;);n.exports=class extends s{constructor(u){super(),this._model=u}render(u){if(!this._xml){const c=new l;(function a(d,f){d.openNode(f.tag,f.$),f.c&amp;&amp;f.c.forEach(h=&gt;{a(d,h)}),f.t&amp;&amp;d.writeText(f.t),d.closeNode()})(c,this._model),this._xml=c.xml}u.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(u){return u!==this._model.tag}}},{&quot;../../utils/xml-stream&quot;:28,&quot;./base-xform&quot;:32}],121:[function(t,n,o){const s=t(&quot;./text-xform&quot;),l=t(&quot;./rich-text-xform&quot;),u=t(&quot;../base-xform&quot;);n.exports=class extends u{constructor(){super(),this.map={r:new l,t:new s}}get tag(){return&quot;rPh&quot;}render(c,a){if(c.openNode(this.tag,{sb:a.sb||0,eb:a.eb||0}),a&amp;&amp;a.hasOwnProperty(&quot;richText&quot;)&amp;&amp;a.richText){const{r:d}=this.map;a.richText.forEach(f=&gt;{d.render(c,f)})}else a&amp;&amp;this.map.t.render(c,a.text);c.closeNode()}parseOpen(c){const{name:a}=c;return this.parser?(this.parser.parseOpen(c),!0):a===this.tag?(this.model={sb:parseInt(c.attributes.sb,10),eb:parseInt(c.attributes.eb,10)},!0):(this.parser=this.map[a],!!this.parser&amp;&amp;(this.parser.parseOpen(c),!0))}parseText(c){this.parser&amp;&amp;this.parser.parseText(c)}parseClose(c){if(this.parser){if(!this.parser.parseClose(c)){switch(c){case&quot;r&quot;:{let a=this.model.richText;a||(a=this.model.richText=[]),a.push(this.parser.model);break}case&quot;t&quot;:this.model.text=this.parser.model}this.parser=void 0}return!0}return c!==this.tag}}},{&quot;../base-xform&quot;:32,&quot;./rich-text-xform&quot;:122,&quot;./text-xform&quot;:125}],122:[function(t,n,o){const s=t(&quot;./text-xform&quot;),l=t(&quot;../style/font-xform&quot;),u=t(&quot;../base-xform&quot;);class c extends u{constructor(d){super(),this.model=d}get tag(){return&quot;r&quot;}get textXform(){return this._textXform||(this._textXform=new s)}get fontXform(){return this._fontXform||(this._fontXform=new l(c.FONT_OPTIONS))}render(d,f){f=f||this.model,d.openNode(&quot;r&quot;),f.font&amp;&amp;this.fontXform.render(d,f.font),this.textXform.render(d,f.text),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case&quot;r&quot;:return this.model={},!0;case&quot;t&quot;:return this.parser=this.textXform,this.parser.parseOpen(d),!0;case&quot;rPr&quot;:return this.parser=this.fontXform,this.parser.parseOpen(d),!0;default:return!1}}parseText(d){this.parser&amp;&amp;this.parser.parseText(d)}parseClose(d){switch(d){case&quot;r&quot;:return!1;case&quot;t&quot;:return this.model.text=this.parser.model,this.parser=void 0,!0;case&quot;rPr&quot;:return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&amp;&amp;this.parser.parseClose(d),!0}}}c.FONT_OPTIONS={tagName:&quot;rPr&quot;,fontNameTag:&quot;rFont&quot;},n.exports=c},{&quot;../base-xform&quot;:32,&quot;../style/font-xform&quot;:131,&quot;./text-xform&quot;:125}],123:[function(t,n,o){const s=t(&quot;./text-xform&quot;),l=t(&quot;./rich-text-xform&quot;),u=t(&quot;./phonetic-text-xform&quot;),c=t(&quot;../base-xform&quot;);n.exports=class extends c{constructor(a){super(),this.model=a,this.map={r:new l,t:new s,rPh:new u}}get tag(){return&quot;si&quot;}render(a,d){a.openNode(this.tag),d&amp;&amp;d.hasOwnProperty(&quot;richText&quot;)&amp;&amp;d.richText?d.richText.length?d.richText.forEach(f=&gt;{this.map.r.render(a,f)}):this.map.t.render(a,&quot;&quot;):d!=null&amp;&amp;this.map.t.render(a,d),a.closeNode()}parseOpen(a){const{name:d}=a;return this.parser?(this.parser.parseOpen(a),!0):d===this.tag?(this.model={},!0):(this.parser=this.map[d],!!this.parser&amp;&amp;(this.parser.parseOpen(a),!0))}parseText(a){this.parser&amp;&amp;this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)){switch(a){case&quot;r&quot;:{let d=this.model.richText;d||(d=this.model.richText=[]),d.push(this.parser.model);break}case&quot;t&quot;:this.model=this.parser.model}this.parser=void 0}return!0}return a!==this.tag}}},{&quot;../base-xform&quot;:32,&quot;./phonetic-text-xform&quot;:121,&quot;./rich-text-xform&quot;:122,&quot;./text-xform&quot;:125}],124:[function(t,n,o){const s=t(&quot;../../../utils/xml-stream&quot;),l=t(&quot;../base-xform&quot;),u=t(&quot;./shared-string-xform&quot;);n.exports=class extends l{constructor(c){super(),this.model=c||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new u)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(c){return this.model.values[c]}add(c){return c.richText?this.addRichText(c):this.addText(c)}addText(c){let a=this.hash[c];return a===void 0&amp;&amp;(a=this.hash[c]=this.model.values.length,this.model.values.push(c)),this.model.count++,a}addRichText(c){const a=this.sharedStringXform.toXml(c);let d=this.rich[a];return d===void 0&amp;&amp;(d=this.rich[a]=this.model.values.length,this.model.values.push(c)),this.model.count++,d}render(c,a){a=a||this._values,c.openXml(s.StdDocAttributes),c.openNode(&quot;sst&quot;,{xmlns:&quot;http://schemas.openxmlformats.org/spreadsheetml/2006/main&quot;,count:a.count,uniqueCount:a.values.length});const d=this.sharedStringXform;a.values.forEach(f=&gt;{d.render(c,f)}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case&quot;sst&quot;:return!0;case&quot;si&quot;:return this.parser=this.sharedStringXform,this.parser.parseOpen(c),!0;default:throw new Error(&quot;Unexpected xml node in parseOpen: &quot;+JSON.stringify(c))}}parseText(c){this.parser&amp;&amp;this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if(c===&quot;sst&quot;)return!1;throw new Error(&quot;Unexpected xml node in parseClose: &quot;+c)}}},{&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;./shared-string-xform&quot;:123}],125:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;t&quot;}render(l,u){l.openNode(&quot;t&quot;),/^\s|\n|\s$/.test(u)&amp;&amp;l.addAttribute(&quot;xml:space&quot;,&quot;preserve&quot;),l.writeText(u),l.closeNode()}get model(){return this._text.join(&quot;&quot;).replace(/_x([0-9A-F]{4})_/g,(l,u)=&gt;String.fromCharCode(parseInt(u,16)))}parseOpen(l){return l.name===&quot;t&quot;?(this._text=[],!0):!1}parseText(l){this._text.push(l)}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],126:[function(t,n,o){const s=t(&quot;../../../doc/enums&quot;),l=t(&quot;../../../utils/utils&quot;),u=t(&quot;../base-xform&quot;),c={horizontalValues:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;fill&quot;,&quot;centerContinuous&quot;,&quot;distributed&quot;,&quot;justify&quot;].reduce((d,f)=&gt;(d[f]=!0,d),{}),horizontal(d){return this.horizontalValues[d]?d:void 0},verticalValues:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;,&quot;distributed&quot;,&quot;justify&quot;].reduce((d,f)=&gt;(d[f]=!0,d),{}),vertical(d){return d===&quot;middle&quot;?&quot;center&quot;:this.verticalValues[d]?d:void 0},wrapText:d=&gt;!!d||void 0,shrinkToFit:d=&gt;!!d||void 0,textRotation(d){return d===&quot;vertical&quot;||(d=l.validInt(d))&gt;=-90&amp;&amp;d&lt;=90?d:void 0},indent:d=&gt;(d=l.validInt(d),Math.max(0,d)),readingOrder(d){switch(d){case&quot;ltr&quot;:return s.ReadingOrder.LeftToRight;case&quot;rtl&quot;:return s.ReadingOrder.RightToLeft;default:return}}},a={toXml(d){if(d=c.textRotation(d)){if(d===&quot;vertical&quot;)return 255;const f=Math.round(d);if(f&gt;=0&amp;&amp;f&lt;=90)return f;if(f&lt;0&amp;&amp;f&gt;=-90)return 90-f}},toModel(d){const f=l.validInt(d);if(f!==void 0){if(f===255)return&quot;vertical&quot;;if(f&gt;=0&amp;&amp;f&lt;=90)return f;if(f&gt;90&amp;&amp;f&lt;=180)return 90-f}}};n.exports=class extends u{get tag(){return&quot;alignment&quot;}render(d,f){d.addRollback(),d.openNode(&quot;alignment&quot;);let h=!1;function m(p,x){x&amp;&amp;(d.addAttribute(p,x),h=!0)}m(&quot;horizontal&quot;,c.horizontal(f.horizontal)),m(&quot;vertical&quot;,c.vertical(f.vertical)),m(&quot;wrapText&quot;,!!c.wrapText(f.wrapText)&amp;&amp;&quot;1&quot;),m(&quot;shrinkToFit&quot;,!!c.shrinkToFit(f.shrinkToFit)&amp;&amp;&quot;1&quot;),m(&quot;indent&quot;,c.indent(f.indent)),m(&quot;textRotation&quot;,a.toXml(f.textRotation)),m(&quot;readingOrder&quot;,c.readingOrder(f.readingOrder)),d.closeNode(),h?d.commit():d.rollback()}parseOpen(d){const f={};let h=!1;function m(p,x,g){p&amp;&amp;(f[x]=g,h=!0)}m(d.attributes.horizontal,&quot;horizontal&quot;,d.attributes.horizontal),m(d.attributes.vertical,&quot;vertical&quot;,d.attributes.vertical===&quot;center&quot;?&quot;middle&quot;:d.attributes.vertical),m(d.attributes.wrapText,&quot;wrapText&quot;,l.parseBoolean(d.attributes.wrapText)),m(d.attributes.shrinkToFit,&quot;shrinkToFit&quot;,l.parseBoolean(d.attributes.shrinkToFit)),m(d.attributes.indent,&quot;indent&quot;,parseInt(d.attributes.indent,10)),m(d.attributes.textRotation,&quot;textRotation&quot;,a.toModel(d.attributes.textRotation)),m(d.attributes.readingOrder,&quot;readingOrder&quot;,d.attributes.readingOrder===&quot;2&quot;?&quot;rtl&quot;:&quot;ltr&quot;),this.model=h?f:null}parseText(){}parseClose(){return!1}}},{&quot;../../../doc/enums&quot;:7,&quot;../../../utils/utils&quot;:27,&quot;../base-xform&quot;:32}],127:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;../../../utils/utils&quot;),u=t(&quot;./color-xform&quot;);class c extends s{constructor(d){super(),this.name=d,this.map={color:new u}}get tag(){return this.name}render(d,f,h){const m=f&amp;&amp;f.color||h||this.defaultColor;d.openNode(this.name),f&amp;&amp;f.style&amp;&amp;(d.addAttribute(&quot;style&quot;,f.style),m&amp;&amp;this.map.color.render(d,m)),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case this.name:{const{style:f}=d.attributes;return this.model=f?{style:f}:void 0,!0}case&quot;color&quot;:return this.parser=this.map.color,this.parser.parseOpen(d),!0;default:return!1}}parseText(d){this.parser&amp;&amp;this.parser.parseText(d)}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.parser=void 0),!0):(d===this.name&amp;&amp;this.map.color.model&amp;&amp;(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(d){return c.validStyleValues[d]}}c.validStyleValues=[&quot;thin&quot;,&quot;dashed&quot;,&quot;dotted&quot;,&quot;dashDot&quot;,&quot;hair&quot;,&quot;dashDotDot&quot;,&quot;slantDashDot&quot;,&quot;mediumDashed&quot;,&quot;mediumDashDotDot&quot;,&quot;mediumDashDot&quot;,&quot;medium&quot;,&quot;double&quot;,&quot;thick&quot;].reduce((a,d)=&gt;(a[d]=!0,a),{}),n.exports=class extends s{constructor(){super(),this.map={top:new c(&quot;top&quot;),left:new c(&quot;left&quot;),bottom:new c(&quot;bottom&quot;),right:new c(&quot;right&quot;),diagonal:new c(&quot;diagonal&quot;)}}render(a,d){const{color:f}=d;function h(m,p){m&amp;&amp;!m.color&amp;&amp;d.color&amp;&amp;(m={...m,color:d.color}),p.render(a,m,f)}a.openNode(&quot;border&quot;),d.diagonal&amp;&amp;d.diagonal.style&amp;&amp;(d.diagonal.up&amp;&amp;a.addAttribute(&quot;diagonalUp&quot;,&quot;1&quot;),d.diagonal.down&amp;&amp;a.addAttribute(&quot;diagonalDown&quot;,&quot;1&quot;)),h(d.left,this.map.left),h(d.right,this.map.right),h(d.top,this.map.top),h(d.bottom,this.map.bottom),h(d.diagonal,this.map.diagonal),a.closeNode()}parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):a.name===&quot;border&quot;?(this.reset(),this.diagonalUp=l.parseBoolean(a.attributes.diagonalUp),this.diagonalDown=l.parseBoolean(a.attributes.diagonalDown),!0):(this.parser=this.map[a.name],!!this.parser&amp;&amp;(this.parser.parseOpen(a),!0))}parseText(a){this.parser&amp;&amp;this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;if(a===&quot;border&quot;){const d=this.model={},f=function(h,m,p){m&amp;&amp;(p&amp;&amp;Object.assign(m,p),d[h]=m)};f(&quot;left&quot;,this.map.left.model),f(&quot;right&quot;,this.map.right.model),f(&quot;top&quot;,this.map.top.model),f(&quot;bottom&quot;,this.map.bottom.model),f(&quot;diagonal&quot;,this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{&quot;../../../utils/utils&quot;:27,&quot;../base-xform&quot;:32,&quot;./color-xform&quot;:128}],128:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{constructor(l){super(),this.name=l||&quot;color&quot;}get tag(){return this.name}render(l,u){return!!u&amp;&amp;(l.openNode(this.name),u.argb?l.addAttribute(&quot;rgb&quot;,u.argb):u.theme!==void 0?(l.addAttribute(&quot;theme&quot;,u.theme),u.tint!==void 0&amp;&amp;l.addAttribute(&quot;tint&quot;,u.tint)):u.indexed!==void 0?l.addAttribute(&quot;indexed&quot;,u.indexed):l.addAttribute(&quot;auto&quot;,&quot;1&quot;),l.closeNode(),!0)}parseOpen(l){return l.name===this.name&amp;&amp;(l.attributes.rgb?this.model={argb:l.attributes.rgb}:l.attributes.theme?(this.model={theme:parseInt(l.attributes.theme,10)},l.attributes.tint&amp;&amp;(this.model.tint=parseFloat(l.attributes.tint))):l.attributes.indexed?this.model={indexed:parseInt(l.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],129:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;./alignment-xform&quot;),u=t(&quot;./border-xform&quot;),c=t(&quot;./fill-xform&quot;),a=t(&quot;./font-xform&quot;),d=t(&quot;./numfmt-xform&quot;),f=t(&quot;./protection-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={alignment:new l,border:new u,fill:new c,font:new a,numFmt:new d,protection:new f}}get tag(){return&quot;dxf&quot;}render(h,m){if(h.openNode(this.tag),m.font&amp;&amp;this.map.font.render(h,m.font),m.numFmt&amp;&amp;m.numFmtId){const p={id:m.numFmtId,formatCode:m.numFmt};this.map.numFmt.render(h,p)}m.fill&amp;&amp;this.map.fill.render(h,m.fill),m.alignment&amp;&amp;this.map.alignment.render(h,m.alignment),m.border&amp;&amp;this.map.border.render(h,m.border),m.protection&amp;&amp;this.map.protection.render(h,m.protection),h.closeNode()}parseOpen(h){return this.parser?(this.parser.parseOpen(h),!0):h.name===this.tag?(this.reset(),!0):(this.parser=this.map[h.name],this.parser&amp;&amp;this.parser.parseOpen(h),!0)}parseText(h){this.parser&amp;&amp;this.parser.parseText(h)}parseClose(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{&quot;../base-xform&quot;:32,&quot;./alignment-xform&quot;:126,&quot;./border-xform&quot;:127,&quot;./fill-xform&quot;:130,&quot;./font-xform&quot;:131,&quot;./numfmt-xform&quot;:132,&quot;./protection-xform&quot;:133}],130:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;./color-xform&quot;);class u extends s{constructor(){super(),this.map={color:new l}}get tag(){return&quot;stop&quot;}render(h,m){h.openNode(&quot;stop&quot;),h.addAttribute(&quot;position&quot;,m.position),this.map.color.render(h,m.color),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case&quot;stop&quot;:return this.model={position:parseFloat(h.attributes.position)},!0;case&quot;color&quot;:return this.parser=this.map.color,this.parser.parseOpen(h),!0;default:return!1}}parseText(){}parseClose(h){return!!this.parser&amp;&amp;(this.parser.parseClose(h)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class c extends s{constructor(){super(),this.map={fgColor:new l(&quot;fgColor&quot;),bgColor:new l(&quot;bgColor&quot;)}}get name(){return&quot;pattern&quot;}get tag(){return&quot;patternFill&quot;}render(h,m){h.openNode(&quot;patternFill&quot;),h.addAttribute(&quot;patternType&quot;,m.pattern),m.fgColor&amp;&amp;this.map.fgColor.render(h,m.fgColor),m.bgColor&amp;&amp;this.map.bgColor.render(h,m.bgColor),h.closeNode()}parseOpen(h){return this.parser?(this.parser.parseOpen(h),!0):h.name===&quot;patternFill&quot;?(this.model={type:&quot;pattern&quot;,pattern:h.attributes.patternType},!0):(this.parser=this.map[h.name],!!this.parser&amp;&amp;(this.parser.parseOpen(h),!0))}parseText(h){this.parser&amp;&amp;this.parser.parseText(h)}parseClose(h){return!!this.parser&amp;&amp;(this.parser.parseClose(h)||(this.parser.model&amp;&amp;(this.model[h]=this.parser.model),this.parser=void 0),!0)}}class a extends s{constructor(){super(),this.map={stop:new u}}get name(){return&quot;gradient&quot;}get tag(){return&quot;gradientFill&quot;}render(h,m){switch(h.openNode(&quot;gradientFill&quot;),m.gradient){case&quot;angle&quot;:h.addAttribute(&quot;degree&quot;,m.degree);break;case&quot;path&quot;:h.addAttribute(&quot;type&quot;,&quot;path&quot;),m.center.left&amp;&amp;(h.addAttribute(&quot;left&quot;,m.center.left),m.center.right===void 0&amp;&amp;h.addAttribute(&quot;right&quot;,m.center.left)),m.center.right&amp;&amp;h.addAttribute(&quot;right&quot;,m.center.right),m.center.top&amp;&amp;(h.addAttribute(&quot;top&quot;,m.center.top),m.center.bottom===void 0&amp;&amp;h.addAttribute(&quot;bottom&quot;,m.center.top)),m.center.bottom&amp;&amp;h.addAttribute(&quot;bottom&quot;,m.center.bottom)}const p=this.map.stop;m.stops.forEach(x=&gt;{p.render(h,x)}),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case&quot;gradientFill&quot;:{const m=this.model={stops:[]};return h.attributes.degree?(m.gradient=&quot;angle&quot;,m.degree=parseInt(h.attributes.degree,10)):h.attributes.type===&quot;path&quot;&amp;&amp;(m.gradient=&quot;path&quot;,m.center={left:h.attributes.left?parseFloat(h.attributes.left):0,top:h.attributes.top?parseFloat(h.attributes.top):0},h.attributes.right!==h.attributes.left&amp;&amp;(m.center.right=h.attributes.right?parseFloat(h.attributes.right):0),h.attributes.bottom!==h.attributes.top&amp;&amp;(m.center.bottom=h.attributes.bottom?parseFloat(h.attributes.bottom):0)),!0}case&quot;stop&quot;:return this.parser=this.map.stop,this.parser.parseOpen(h),!0;default:return!1}}parseText(h){this.parser&amp;&amp;this.parser.parseText(h)}parseClose(h){return!!this.parser&amp;&amp;(this.parser.parseClose(h)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class d extends s{constructor(){super(),this.map={patternFill:new c,gradientFill:new a}}get tag(){return&quot;fill&quot;}render(h,m){switch(h.addRollback(),h.openNode(&quot;fill&quot;),m.type){case&quot;pattern&quot;:this.map.patternFill.render(h,m);break;case&quot;gradient&quot;:this.map.gradientFill.render(h,m);break;default:return void h.rollback()}h.closeNode(),h.commit()}parseOpen(h){return this.parser?(this.parser.parseOpen(h),!0):h.name===&quot;fill&quot;?(this.model={},!0):(this.parser=this.map[h.name],!!this.parser&amp;&amp;(this.parser.parseOpen(h),!0))}parseText(h){this.parser&amp;&amp;this.parser.parseText(h)}parseClose(h){return!!this.parser&amp;&amp;(this.parser.parseClose(h)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(h){return d.validPatternValues[h]}}d.validPatternValues=[&quot;none&quot;,&quot;solid&quot;,&quot;darkVertical&quot;,&quot;darkGray&quot;,&quot;mediumGray&quot;,&quot;lightGray&quot;,&quot;gray125&quot;,&quot;gray0625&quot;,&quot;darkHorizontal&quot;,&quot;darkVertical&quot;,&quot;darkDown&quot;,&quot;darkUp&quot;,&quot;darkGrid&quot;,&quot;darkTrellis&quot;,&quot;lightHorizontal&quot;,&quot;lightVertical&quot;,&quot;lightDown&quot;,&quot;lightUp&quot;,&quot;lightGrid&quot;,&quot;lightTrellis&quot;,&quot;lightGrid&quot;].reduce((f,h)=&gt;(f[h]=!0,f),{}),d.StopXform=u,d.PatternFillXform=c,d.GradientFillXform=a,n.exports=d},{&quot;../base-xform&quot;:32,&quot;./color-xform&quot;:128}],131:[function(t,n,o){const s=t(&quot;./color-xform&quot;),l=t(&quot;../simple/boolean-xform&quot;),u=t(&quot;../simple/integer-xform&quot;),c=t(&quot;../simple/string-xform&quot;),a=t(&quot;./underline-xform&quot;),d=t(&quot;../../../utils/under-dash&quot;),f=t(&quot;../base-xform&quot;);class h extends f{constructor(p){super(),this.options=p||h.OPTIONS,this.map={b:{prop:&quot;bold&quot;,xform:new l({tag:&quot;b&quot;,attr:&quot;val&quot;})},i:{prop:&quot;italic&quot;,xform:new l({tag:&quot;i&quot;,attr:&quot;val&quot;})},u:{prop:&quot;underline&quot;,xform:new a},charset:{prop:&quot;charset&quot;,xform:new u({tag:&quot;charset&quot;,attr:&quot;val&quot;})},color:{prop:&quot;color&quot;,xform:new s},condense:{prop:&quot;condense&quot;,xform:new l({tag:&quot;condense&quot;,attr:&quot;val&quot;})},extend:{prop:&quot;extend&quot;,xform:new l({tag:&quot;extend&quot;,attr:&quot;val&quot;})},family:{prop:&quot;family&quot;,xform:new u({tag:&quot;family&quot;,attr:&quot;val&quot;})},outline:{prop:&quot;outline&quot;,xform:new l({tag:&quot;outline&quot;,attr:&quot;val&quot;})},vertAlign:{prop:&quot;vertAlign&quot;,xform:new c({tag:&quot;vertAlign&quot;,attr:&quot;val&quot;})},scheme:{prop:&quot;scheme&quot;,xform:new c({tag:&quot;scheme&quot;,attr:&quot;val&quot;})},shadow:{prop:&quot;shadow&quot;,xform:new l({tag:&quot;shadow&quot;,attr:&quot;val&quot;})},strike:{prop:&quot;strike&quot;,xform:new l({tag:&quot;strike&quot;,attr:&quot;val&quot;})},sz:{prop:&quot;size&quot;,xform:new u({tag:&quot;sz&quot;,attr:&quot;val&quot;})}},this.map[this.options.fontNameTag]={prop:&quot;name&quot;,xform:new c({tag:this.options.fontNameTag,attr:&quot;val&quot;})}}get tag(){return this.options.tagName}render(p,x){const{map:g}=this;p.openNode(this.options.tagName),d.each(this.map,(y,v)=&gt;{g[v].xform.render(p,x[y.prop])}),p.closeNode()}parseOpen(p){return this.parser?(this.parser.parseOpen(p),!0):this.map[p.name]?(this.parser=this.map[p.name].xform,this.parser.parseOpen(p)):p.name===this.options.tagName?(this.model={},!0):!1}parseText(p){this.parser&amp;&amp;this.parser.parseText(p)}parseClose(p){if(this.parser&amp;&amp;!this.parser.parseClose(p)){const x=this.map[p];return this.parser.model&amp;&amp;(this.model[x.prop]=this.parser.model),this.parser=void 0,!0}return p!==this.options.tagName}}h.OPTIONS={tagName:&quot;font&quot;,fontNameTag:&quot;name&quot;},n.exports=h},{&quot;../../../utils/under-dash&quot;:26,&quot;../base-xform&quot;:32,&quot;../simple/boolean-xform&quot;:116,&quot;../simple/integer-xform&quot;:118,&quot;../simple/string-xform&quot;:119,&quot;./color-xform&quot;:128,&quot;./underline-xform&quot;:136}],132:[function(t,n,o){const s=t(&quot;../../../utils/under-dash&quot;),l=t(&quot;../../defaultnumformats&quot;),u=t(&quot;../base-xform&quot;),c=(function(){const d={};return s.each(l,(f,h)=&gt;{f.f&amp;&amp;(d[f.f]=parseInt(h,10))}),d})();class a extends u{constructor(f,h){super(),this.id=f,this.formatCode=h}get tag(){return&quot;numFmt&quot;}render(f,h){f.leafNode(&quot;numFmt&quot;,{numFmtId:h.id,formatCode:h.formatCode})}parseOpen(f){return f.name===&quot;numFmt&quot;?(this.model={id:parseInt(f.attributes.numFmtId,10),formatCode:f.attributes.formatCode.replace(/[\\](.)/g,&quot;$1&quot;)},!0):!1}parseText(){}parseClose(){return!1}}a.getDefaultFmtId=function(d){return c[d]},a.getDefaultFmtCode=function(d){return l[d]&amp;&amp;l[d].f},n.exports=a},{&quot;../../../utils/under-dash&quot;:26,&quot;../../defaultnumformats&quot;:30,&quot;../base-xform&quot;:32}],133:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l={boolean:(u,c)=&gt;u===void 0?c:u};n.exports=class extends s{get tag(){return&quot;protection&quot;}render(u,c){u.addRollback(),u.openNode(&quot;protection&quot;);let a=!1;function d(f,h){h!==void 0&amp;&amp;(u.addAttribute(f,h),a=!0)}d(&quot;locked&quot;,l.boolean(c.locked,!0)?void 0:&quot;0&quot;),d(&quot;hidden&quot;,l.boolean(c.hidden,!1)?&quot;1&quot;:void 0),u.closeNode(),a?u.commit():u.rollback()}parseOpen(u){const c={locked:u.attributes.locked!==&quot;0&quot;,hidden:u.attributes.hidden===&quot;1&quot;},a=!c.locked||c.hidden;this.model=a?c:null}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],134:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;./alignment-xform&quot;),u=t(&quot;./protection-xform&quot;);n.exports=class extends s{constructor(c){super(),this.xfId=!(!c||!c.xfId),this.map={alignment:new l,protection:new u}}get tag(){return&quot;xf&quot;}render(c,a){c.openNode(&quot;xf&quot;,{numFmtId:a.numFmtId||0,fontId:a.fontId||0,fillId:a.fillId||0,borderId:a.borderId||0}),this.xfId&amp;&amp;c.addAttribute(&quot;xfId&quot;,a.xfId||0),a.numFmtId&amp;&amp;c.addAttribute(&quot;applyNumberFormat&quot;,&quot;1&quot;),a.fontId&amp;&amp;c.addAttribute(&quot;applyFont&quot;,&quot;1&quot;),a.fillId&amp;&amp;c.addAttribute(&quot;applyFill&quot;,&quot;1&quot;),a.borderId&amp;&amp;c.addAttribute(&quot;applyBorder&quot;,&quot;1&quot;),a.alignment&amp;&amp;c.addAttribute(&quot;applyAlignment&quot;,&quot;1&quot;),a.protection&amp;&amp;c.addAttribute(&quot;applyProtection&quot;,&quot;1&quot;),a.alignment&amp;&amp;this.map.alignment.render(c,a.alignment),a.protection&amp;&amp;this.map.protection.render(c,a.protection),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case&quot;xf&quot;:return this.model={numFmtId:parseInt(c.attributes.numFmtId,10),fontId:parseInt(c.attributes.fontId,10),fillId:parseInt(c.attributes.fillId,10),borderId:parseInt(c.attributes.borderId,10)},this.xfId&amp;&amp;(this.model.xfId=parseInt(c.attributes.xfId,10)),!0;case&quot;alignment&quot;:return this.parser=this.map.alignment,this.parser.parseOpen(c),!0;case&quot;protection&quot;:return this.parser=this.map.protection,this.parser.parseOpen(c),!0;default:return!1}}parseText(c){this.parser&amp;&amp;this.parser.parseText(c)}parseClose(c){return this.parser?(this.parser.parseClose(c)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):c!==&quot;xf&quot;}}},{&quot;../base-xform&quot;:32,&quot;./alignment-xform&quot;:126,&quot;./protection-xform&quot;:133}],135:[function(t,n,o){const s=t(&quot;../../../doc/enums&quot;),l=t(&quot;../../../utils/xml-stream&quot;),u=t(&quot;../base-xform&quot;),c=t(&quot;../static-xform&quot;),a=t(&quot;../list-xform&quot;),d=t(&quot;./font-xform&quot;),f=t(&quot;./fill-xform&quot;),h=t(&quot;./border-xform&quot;),m=t(&quot;./numfmt-xform&quot;),p=t(&quot;./style-xform&quot;),x=t(&quot;./dxf-xform&quot;);class g extends u{constructor(v){super(),this.map={numFmts:new a({tag:&quot;numFmts&quot;,count:!0,childXform:new m}),fonts:new a({tag:&quot;fonts&quot;,count:!0,childXform:new d,$:{&quot;x14ac:knownFonts&quot;:1}}),fills:new a({tag:&quot;fills&quot;,count:!0,childXform:new f}),borders:new a({tag:&quot;borders&quot;,count:!0,childXform:new h}),cellStyleXfs:new a({tag:&quot;cellStyleXfs&quot;,count:!0,childXform:new p}),cellXfs:new a({tag:&quot;cellXfs&quot;,count:!0,childXform:new p({xfId:!0})}),dxfs:new a({tag:&quot;dxfs&quot;,always:!0,count:!0,childXform:new x}),numFmt:new m,font:new d,fill:new f,border:new h,style:new p({xfId:!0}),cellStyles:g.STATIC_XFORMS.cellStyles,tableStyles:g.STATIC_XFORMS.tableStyles,extLst:g.STATIC_XFORMS.extLst},v&amp;&amp;this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:&quot;pattern&quot;,pattern:&quot;none&quot;}),this._addFill({type:&quot;pattern&quot;,pattern:&quot;gray125&quot;}),this.weakMap=new WeakMap}render(v,_){_=_||this.model,v.openXml(l.StdDocAttributes),v.openNode(&quot;styleSheet&quot;,g.STYLESHEET_ATTRIBUTES),this.index?(_.numFmts&amp;&amp;_.numFmts.length&amp;&amp;(v.openNode(&quot;numFmts&quot;,{count:_.numFmts.length}),_.numFmts.forEach(S=&gt;{v.writeXml(S)}),v.closeNode()),_.fonts.length||this._addFont({size:11,color:{theme:1},name:&quot;Calibri&quot;,family:2,scheme:&quot;minor&quot;}),v.openNode(&quot;fonts&quot;,{count:_.fonts.length,&quot;x14ac:knownFonts&quot;:1}),_.fonts.forEach(S=&gt;{v.writeXml(S)}),v.closeNode(),v.openNode(&quot;fills&quot;,{count:_.fills.length}),_.fills.forEach(S=&gt;{v.writeXml(S)}),v.closeNode(),v.openNode(&quot;borders&quot;,{count:_.borders.length}),_.borders.forEach(S=&gt;{v.writeXml(S)}),v.closeNode(),this.map.cellStyleXfs.render(v,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),v.openNode(&quot;cellXfs&quot;,{count:_.styles.length}),_.styles.forEach(S=&gt;{v.writeXml(S)}),v.closeNode()):(this.map.numFmts.render(v,_.numFmts),this.map.fonts.render(v,_.fonts),this.map.fills.render(v,_.fills),this.map.borders.render(v,_.borders),this.map.cellStyleXfs.render(v,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(v,_.styles)),g.STATIC_XFORMS.cellStyles.render(v),this.map.dxfs.render(v,_.dxfs),g.STATIC_XFORMS.tableStyles.render(v),g.STATIC_XFORMS.extLst.render(v),v.closeNode()}parseOpen(v){return this.parser?(this.parser.parseOpen(v),!0):v.name===&quot;styleSheet&quot;?(this.initIndex(),!0):(this.parser=this.map[v.name],this.parser&amp;&amp;this.parser.parseOpen(v),!0)}parseText(v){this.parser&amp;&amp;this.parser.parseText(v)}parseClose(v){if(this.parser)return this.parser.parseClose(v)||(this.parser=void 0),!0;switch(v){case&quot;styleSheet&quot;:{this.model={};const _=(S,A)=&gt;{A.model&amp;&amp;A.model.length&amp;&amp;(this.model[S]=A.model)};if(_(&quot;numFmts&quot;,this.map.numFmts),_(&quot;fonts&quot;,this.map.fonts),_(&quot;fills&quot;,this.map.fills),_(&quot;borders&quot;,this.map.borders),_(&quot;styles&quot;,this.map.cellXfs),_(&quot;dxfs&quot;,this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const S=this.index.numFmt;this.model.numFmts.forEach(A=&gt;{S[A.id]=A.formatCode})}return!1}default:return!0}}addStyleModel(v,_){if(!v)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:&quot;Calibri&quot;,family:2,scheme:&quot;minor&quot;}),this.weakMap&amp;&amp;this.weakMap.has(v))return this.weakMap.get(v);const S={};if(_=_||s.ValueType.Number,v.numFmt)S.numFmtId=this._addNumFmtStr(v.numFmt);else switch(_){case s.ValueType.Number:S.numFmtId=this._addNumFmtStr(&quot;General&quot;);break;case s.ValueType.Date:S.numFmtId=this._addNumFmtStr(&quot;mm-dd-yy&quot;)}v.font&amp;&amp;(S.fontId=this._addFont(v.font)),v.border&amp;&amp;(S.borderId=this._addBorder(v.border)),v.fill&amp;&amp;(S.fillId=this._addFill(v.fill)),v.alignment&amp;&amp;(S.alignment=v.alignment),v.protection&amp;&amp;(S.protection=v.protection);const A=this._addStyle(S);return this.weakMap&amp;&amp;this.weakMap.set(v,A),A}getStyleModel(v){const _=this.model.styles[v];if(!_)return null;let S=this.index.model[v];if(S)return S;if(S=this.index.model[v]={},_.numFmtId){const I=this.index.numFmt[_.numFmtId]||m.getDefaultFmtCode(_.numFmtId);I&amp;&amp;(S.numFmt=I)}function A(I,V,F){if(F||F===0){const q=V[F];q&amp;&amp;(S[I]=q)}}return A(&quot;font&quot;,this.model.fonts,_.fontId),A(&quot;border&quot;,this.model.borders,_.borderId),A(&quot;fill&quot;,this.model.fills,_.fillId),_.alignment&amp;&amp;(S.alignment=_.alignment),_.protection&amp;&amp;(S.protection=_.protection),S}addDxfStyle(v){return v.numFmt&amp;&amp;(v.numFmtId=this._addNumFmtStr(v.numFmt)),this.model.dxfs.push(v),this.model.dxfs.length-1}getDxfStyle(v){return this.model.dxfs[v]}_addStyle(v){const _=this.map.style.toXml(v);let S=this.index.style[_];return S===void 0&amp;&amp;(S=this.index.style[_]=this.model.styles.length,this.model.styles.push(_)),S}_addNumFmtStr(v){let _=m.getDefaultFmtId(v);if(_!==void 0||(_=this.index.numFmt[v],_!==void 0))return _;_=this.index.numFmt[v]=164+this.model.numFmts.length;const S=this.map.numFmt.toXml({id:_,formatCode:v});return this.model.numFmts.push(S),_}_addFont(v){const _=this.map.font.toXml(v);let S=this.index.font[_];return S===void 0&amp;&amp;(S=this.index.font[_]=this.model.fonts.length,this.model.fonts.push(_)),S}_addBorder(v){const _=this.map.border.toXml(v);let S=this.index.border[_];return S===void 0&amp;&amp;(S=this.index.border[_]=this.model.borders.length,this.model.borders.push(_)),S}_addFill(v){const _=this.map.fill.toXml(v);let S=this.index.fill[_];return S===void 0&amp;&amp;(S=this.index.fill[_]=this.model.fills.length,this.model.fills.push(_)),S}}g.STYLESHEET_ATTRIBUTES={xmlns:&quot;http://schemas.openxmlformats.org/spreadsheetml/2006/main&quot;,&quot;xmlns:mc&quot;:&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;,&quot;mc:Ignorable&quot;:&quot;x14ac x16r2&quot;,&quot;xmlns:x14ac&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac&quot;,&quot;xmlns:x16r2&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2015/02/main&quot;},g.STATIC_XFORMS={cellStyles:new c({tag:&quot;cellStyles&quot;,$:{count:1},c:[{tag:&quot;cellStyle&quot;,$:{name:&quot;Normal&quot;,xfId:0,builtinId:0}}]}),dxfs:new c({tag:&quot;dxfs&quot;,$:{count:0}}),tableStyles:new c({tag:&quot;tableStyles&quot;,$:{count:0,defaultTableStyle:&quot;TableStyleMedium2&quot;,defaultPivotStyle:&quot;PivotStyleLight16&quot;}}),extLst:new c({tag:&quot;extLst&quot;,c:[{tag:&quot;ext&quot;,$:{uri:&quot;{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}&quot;,&quot;xmlns:x14&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2009/9/main&quot;},c:[{tag:&quot;x14:slicerStyles&quot;,$:{defaultSlicerStyle:&quot;SlicerStyleLight1&quot;}}]},{tag:&quot;ext&quot;,$:{uri:&quot;{9260A510-F301-46a8-8635-F512D64BE5F5}&quot;,&quot;xmlns:x15&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2010/11/main&quot;},c:[{tag:&quot;x15:timelineStyles&quot;,$:{defaultTimelineStyle:&quot;TimeSlicerStyleLight1&quot;}}]}]})},g.Mock=class extends g{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:&quot;Calibri&quot;,family:2,scheme:&quot;minor&quot;}],borders:[{}],fills:[{type:&quot;pattern&quot;,pattern:&quot;none&quot;},{type:&quot;pattern&quot;,pattern:&quot;gray125&quot;}]}}parseStream(y){return y.autodrain(),Promise.resolve()}addStyleModel(y,v){return v===s.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const y={numFmtId:m.getDefaultFmtId(&quot;mm-dd-yy&quot;)};this._dateStyleId=this.model.styles.length,this.model.styles.push(y)}return this._dateStyleId}getStyleModel(){return{}}},n.exports=g},{&quot;../../../doc/enums&quot;:7,&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;../list-xform&quot;:71,&quot;../static-xform&quot;:120,&quot;./border-xform&quot;:127,&quot;./dxf-xform&quot;:129,&quot;./fill-xform&quot;:130,&quot;./font-xform&quot;:131,&quot;./numfmt-xform&quot;:132,&quot;./style-xform&quot;:134}],136:[function(t,n,o){const s=t(&quot;../base-xform&quot;);class l extends s{constructor(c){super(),this.model=c}get tag(){return&quot;u&quot;}render(c,a){if((a=a||this.model)===!0)c.leafNode(&quot;u&quot;);else{const d=l.Attributes[a];d&amp;&amp;c.leafNode(&quot;u&quot;,d)}}parseOpen(c){c.name===&quot;u&quot;&amp;&amp;(this.model=c.attributes.val||!0)}parseText(){}parseClose(){return!1}}l.Attributes={single:{},double:{val:&quot;double&quot;},singleAccounting:{val:&quot;singleAccounting&quot;},doubleAccounting:{val:&quot;doubleAccounting&quot;}},n.exports=l},{&quot;../base-xform&quot;:32}],137:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;./filter-column-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={filterColumn:new l}}get tag(){return&quot;autoFilter&quot;}prepare(u){u.columns.forEach((c,a)=&gt;{this.map.filterColumn.prepare(c,{index:a})})}render(u,c){return u.openNode(this.tag,{ref:c.autoFilterRef}),c.columns.forEach(a=&gt;{this.map.filterColumn.render(u,a)}),u.closeNode(),!0}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:return this.model={autoFilterRef:u.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[u.name],this.parser)return this.parseOpen(u),!0;throw new Error(&quot;Unexpected xml node in parseOpen: &quot;+JSON.stringify(u))}}parseText(u){this.parser&amp;&amp;this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(u===this.tag)return!1;throw new Error(&quot;Unexpected xml node in parseClose: &quot;+u)}}},{&quot;../base-xform&quot;:32,&quot;./filter-column-xform&quot;:139}],138:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;customFilter&quot;}render(l,u){l.leafNode(this.tag,{val:u.val,operator:u.operator})}parseOpen(l){return l.name===this.tag&amp;&amp;(this.model={val:l.attributes.val,operator:l.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],139:[function(t,n,o){const s=t(&quot;../base-xform&quot;),l=t(&quot;../list-xform&quot;),u=t(&quot;./custom-filter-xform&quot;),c=t(&quot;./filter-xform&quot;);n.exports=class extends s{constructor(){super(),this.map={customFilters:new l({tag:&quot;customFilters&quot;,count:!1,empty:!0,childXform:new u}),filters:new l({tag:&quot;filters&quot;,count:!1,empty:!0,childXform:new c})}}get tag(){return&quot;filterColumn&quot;}prepare(a,d){a.colId=d.index.toString()}render(a,d){return d.customFilters?(a.openNode(this.tag,{colId:d.colId,hiddenButton:d.filterButton?&quot;0&quot;:&quot;1&quot;}),this.map.customFilters.render(a,d.customFilters),a.closeNode(),!0):(a.leafNode(this.tag,{colId:d.colId,hiddenButton:d.filterButton?&quot;0&quot;:&quot;1&quot;}),!0)}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;const{attributes:d}=a;switch(a.name){case this.tag:return this.model={filterButton:d.hiddenButton===&quot;0&quot;},!0;default:if(this.parser=this.map[a.name],this.parser)return this.parseOpen(a),!0;throw new Error(&quot;Unexpected xml node in parseOpen: &quot;+JSON.stringify(a))}}parseText(){}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.parser=void 0),!0):a===this.tag?(this.model.customFilters=this.map.customFilters.model,!1):!0}}},{&quot;../base-xform&quot;:32,&quot;../list-xform&quot;:71,&quot;./custom-filter-xform&quot;:138,&quot;./filter-xform&quot;:140}],140:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;filter&quot;}render(l,u){l.leafNode(this.tag,{val:u.val})}parseOpen(l){return l.name===this.tag&amp;&amp;(this.model={val:l.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],141:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;tableColumn&quot;}prepare(l,u){l.id=u.index+1}render(l,u){return l.leafNode(this.tag,{id:u.id.toString(),name:u.name,totalsRowLabel:u.totalsRowLabel,totalsRowFunction:u.totalsRowFunction,dxfId:u.dxfId}),!0}parseOpen(l){if(l.name===this.tag){const{attributes:u}=l;return this.model={name:u.name,totalsRowLabel:u.totalsRowLabel,totalsRowFunction:u.totalsRowFunction,dxfId:u.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],142:[function(t,n,o){const s=t(&quot;../base-xform&quot;);n.exports=class extends s{get tag(){return&quot;tableStyleInfo&quot;}render(l,u){return l.leafNode(this.tag,{name:u.theme?u.theme:void 0,showFirstColumn:u.showFirstColumn?&quot;1&quot;:&quot;0&quot;,showLastColumn:u.showLastColumn?&quot;1&quot;:&quot;0&quot;,showRowStripes:u.showRowStripes?&quot;1&quot;:&quot;0&quot;,showColumnStripes:u.showColumnStripes?&quot;1&quot;:&quot;0&quot;}),!0}parseOpen(l){if(l.name===this.tag){const{attributes:u}=l;return this.model={theme:u.name?u.name:null,showFirstColumn:u.showFirstColumn===&quot;1&quot;,showLastColumn:u.showLastColumn===&quot;1&quot;,showRowStripes:u.showRowStripes===&quot;1&quot;,showColumnStripes:u.showColumnStripes===&quot;1&quot;},!0}return!1}parseText(){}parseClose(){return!1}}},{&quot;../base-xform&quot;:32}],143:[function(t,n,o){const s=t(&quot;../../../utils/xml-stream&quot;),l=t(&quot;../base-xform&quot;),u=t(&quot;../list-xform&quot;),c=t(&quot;./auto-filter-xform&quot;),a=t(&quot;./table-column-xform&quot;),d=t(&quot;./table-style-info-xform&quot;);class f extends l{constructor(){super(),this.map={autoFilter:new c,tableColumns:new u({tag:&quot;tableColumns&quot;,count:!0,empty:!0,childXform:new a}),tableStyleInfo:new d}}prepare(m,p){this.map.autoFilter.prepare(m),this.map.tableColumns.prepare(m.columns,p)}get tag(){return&quot;table&quot;}render(m,p){m.openXml(s.StdDocAttributes),m.openNode(this.tag,{...f.TABLE_ATTRIBUTES,id:p.id,name:p.name,displayName:p.displayName||p.name,ref:p.tableRef,totalsRowCount:p.totalsRow?&quot;1&quot;:void 0,totalsRowShown:p.totalsRow?void 0:&quot;1&quot;,headerRowCount:p.headerRow?&quot;1&quot;:&quot;0&quot;}),this.map.autoFilter.render(m,p),this.map.tableColumns.render(m,p.columns),this.map.tableStyleInfo.render(m,p.style),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;const{name:p,attributes:x}=m;return p===this.tag?(this.reset(),this.model={name:x.name,displayName:x.displayName||x.name,tableRef:x.ref,totalsRow:x.totalsRowCount===&quot;1&quot;,headerRow:x.headerRowCount===&quot;1&quot;}):(this.parser=this.map[m.name],this.parser&amp;&amp;this.parser.parseOpen(m)),!0}parseText(m){this.parser&amp;&amp;this.parser.parseText(m)}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):m===this.tag?(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&amp;&amp;(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((p,x)=&gt;{this.model.columns[x].filterButton=p.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1):!0}reconcile(m,p){m.columns.forEach(x=&gt;{x.dxfId!==void 0&amp;&amp;(x.style=p.styles.getDxfStyle(x.dxfId))})}}f.TABLE_ATTRIBUTES={xmlns:&quot;http://schemas.openxmlformats.org/spreadsheetml/2006/main&quot;,&quot;xmlns:mc&quot;:&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;,&quot;mc:Ignorable&quot;:&quot;xr xr3&quot;,&quot;xmlns:xr&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2014/revision&quot;,&quot;xmlns:xr3&quot;:&quot;http://schemas.microsoft.com/office/spreadsheetml/2016/revision3&quot;},n.exports=f},{&quot;../../../utils/xml-stream&quot;:28,&quot;../base-xform&quot;:32,&quot;../list-xform&quot;:71,&quot;./auto-filter-xform&quot;:137,&quot;./table-column-xform&quot;:141,&quot;./table-style-info-xform&quot;:142}],144:[function(t,n,o){(function(s,l){(function(){const u=t(&quot;fs&quot;),c=t(&quot;jszip&quot;),{PassThrough:a}=t(&quot;readable-stream&quot;),d=t(&quot;../utils/zip-stream&quot;),f=t(&quot;../utils/stream-buf&quot;),h=t(&quot;../utils/utils&quot;),m=t(&quot;../utils/xml-stream&quot;),{bufferToString:p}=t(&quot;../utils/browser-buffer-decode&quot;),x=t(&quot;./xform/style/styles-xform&quot;),g=t(&quot;./xform/core/core-xform&quot;),y=t(&quot;./xform/strings/shared-strings-xform&quot;),v=t(&quot;./xform/core/relationships-xform&quot;),_=t(&quot;./xform/core/content-types-xform&quot;),S=t(&quot;./xform/core/app-xform&quot;),A=t(&quot;./xform/book/workbook-xform&quot;),I=t(&quot;./xform/sheet/worksheet-xform&quot;),V=t(&quot;./xform/drawing/drawing-xform&quot;),F=t(&quot;./xform/table/table-xform&quot;),q=t(&quot;./xform/comment/comments-xform&quot;),H=t(&quot;./xform/comment/vml-notes-xform&quot;),B=t(&quot;./xml/theme1&quot;);class K{constructor(L){this.workbook=L}async readFile(L,E){if(!await h.fs.exists(L))throw new Error(&quot;File not found: &quot;+L);const j=u.createReadStream(L);try{const k=await this.read(j,E);return j.close(),k}catch(k){throw j.close(),k}}parseRels(L){return new v().parseStream(L)}parseWorkbook(L){return new A().parseStream(L)}parseSharedStrings(L){return new y().parseStream(L)}reconcile(L,E){const j=new A,k=new I(E),N=new V,C=new F;j.reconcile(L);const P={media:L.media,mediaIndex:L.mediaIndex};Object.keys(L.drawings).forEach(Y=&gt;{const Z=L.drawings[Y],ne=L.drawingRels[Y];ne&amp;&amp;(P.rels=ne.reduce((U,J)=&gt;(U[J.Id]=J,U),{}),(Z.anchors||[]).forEach(U=&gt;{const J=U.picture&amp;&amp;U.picture.hyperlinks;J&amp;&amp;P.rels[J.rId]&amp;&amp;(J.hyperlink=P.rels[J.rId].Target,delete J.rId)}),N.reconcile(Z,P))});const D={styles:L.styles};Object.values(L.tables).forEach(Y=&gt;{C.reconcile(Y,D)});const z={styles:L.styles,sharedStrings:L.sharedStrings,media:L.media,mediaIndex:L.mediaIndex,date1904:L.properties&amp;&amp;L.properties.date1904,drawings:L.drawings,comments:L.comments,tables:L.tables,vmlDrawings:L.vmlDrawings};L.worksheets.forEach(Y=&gt;{Y.relationships=L.worksheetRels[Y.sheetNo],k.reconcile(Y,z)}),delete L.worksheetHash,delete L.worksheetRels,delete L.globalRels,delete L.sharedStrings,delete L.workbookRels,delete L.sheetDefs,delete L.styles,delete L.mediaIndex,delete L.drawings,delete L.drawingRels,delete L.vmlDrawings}async _processWorksheetEntry(L,E,j,k,N){const C=new I(k),P=await C.parseStream(L);P.sheetNo=j,E.worksheetHash[N]=P,E.worksheets.push(P)}async _processCommentEntry(L,E,j){const k=new q,N=await k.parseStream(L);E.comments[`../${j}.xml`]=N}async _processTableEntry(L,E,j){const k=new F,N=await k.parseStream(L);E.tables[`../tables/${j}.xml`]=N}async _processWorksheetRelsEntry(L,E,j){const k=new v,N=await k.parseStream(L);E.worksheetRels[j]=N}async _processMediaEntry(L,E,j){const k=j.lastIndexOf(&quot;.&quot;);if(k&gt;=1){const N=j.substr(k+1),C=j.substr(0,k);await new Promise((P,D)=&gt;{const z=new f;z.on(&quot;finish&quot;,()=&gt;{E.mediaIndex[j]=E.media.length,E.mediaIndex[C]=E.media.length;const Y={type:&quot;image&quot;,name:C,extension:N,buffer:z.toBuffer()};E.media.push(Y),P()}),L.on(&quot;error&quot;,Y=&gt;{D(Y)}),L.pipe(z)})}}async _processDrawingEntry(L,E,j){const k=new V,N=await k.parseStream(L);E.drawings[j]=N}async _processDrawingRelsEntry(L,E,j){const k=new v,N=await k.parseStream(L);E.drawingRels[j]=N}async _processVmlDrawingEntry(L,E,j){const k=new H,N=await k.parseStream(L);E.vmlDrawings[`../drawings/${j}.vml`]=N}async _processThemeEntry(L,E,j){await new Promise((k,N)=&gt;{const C=new f;L.on(&quot;error&quot;,N),C.on(&quot;error&quot;,N),C.on(&quot;finish&quot;,()=&gt;{E.themes[j]=C.read().toString(),k()}),L.pipe(C)})}createInputStream(){throw new Error(&quot;`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md&quot;)}async read(L,E){!L[Symbol.asyncIterator]&amp;&amp;L.pipe&amp;&amp;(L=L.pipe(new a));const j=[];for await(const k of L)j.push(k);return this.load(l.concat(j),E)}async load(L,E){let j;j=E&amp;&amp;E.base64?l.from(L.toString(),&quot;base64&quot;):L;const k={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},N=await c.loadAsync(j);for(const C of Object.values(N.files))if(!C.dir){let P,D=C.name;if(D[0]===&quot;/&quot;&amp;&amp;(D=D.substr(1)),D.match(/xl\/media\//)||D.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))P=new a,P.write(await C.async(&quot;nodebuffer&quot;));else{let z;P=new a({writableObjectMode:!0,readableObjectMode:!0}),z=s.browser?p(await C.async(&quot;nodebuffer&quot;)):await C.async(&quot;string&quot;);const Y=16384;for(let Z=0;Z&lt;z.length;Z+=Y)P.write(z.substring(Z,Z+Y))}switch(P.end(),D){case&quot;_rels/.rels&quot;:k.globalRels=await this.parseRels(P);break;case&quot;xl/workbook.xml&quot;:{const z=await this.parseWorkbook(P);k.sheets=z.sheets,k.definedNames=z.definedNames,k.views=z.views,k.properties=z.properties,k.calcProperties=z.calcProperties;break}case&quot;xl/_rels/workbook.xml.rels&quot;:k.workbookRels=await this.parseRels(P);break;case&quot;xl/sharedStrings.xml&quot;:k.sharedStrings=new y,await k.sharedStrings.parseStream(P);break;case&quot;xl/styles.xml&quot;:k.styles=new x,await k.styles.parseStream(P);break;case&quot;docProps/app.xml&quot;:{const z=new S,Y=await z.parseStream(P);k.company=Y.company,k.manager=Y.manager;break}case&quot;docProps/core.xml&quot;:{const z=new g,Y=await z.parseStream(P);Object.assign(k,Y);break}default:{let z=D.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(z){await this._processWorksheetEntry(P,k,z[1],E,D);break}if(z=D.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),z){await this._processWorksheetRelsEntry(P,k,z[1]);break}if(z=D.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),z){await this._processThemeEntry(P,k,z[1]);break}if(z=D.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),z){await this._processMediaEntry(P,k,z[1]);break}if(z=D.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),z){await this._processDrawingEntry(P,k,z[1]);break}if(z=D.match(/xl\/(comments\d+)[.]xml/),z){await this._processCommentEntry(P,k,z[1]);break}if(z=D.match(/xl\/tables\/(table\d+)[.]xml/),z){await this._processTableEntry(P,k,z[1]);break}if(z=D.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),z){await this._processDrawingRelsEntry(P,k,z[1]);break}if(z=D.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),z){await this._processVmlDrawingEntry(P,k,z[1]);break}}}}return this.reconcile(k,E),this.workbook.model=k,this.workbook}async addMedia(L,E){await Promise.all(E.media.map(async j=&gt;{if(j.type===&quot;image&quot;){const k=`xl/media/${j.name}.${j.extension}`;if(j.filename){const N=await(function(C,P){return new Promise((D,z)=&gt;{u.readFile(C,P,(Y,Z)=&gt;{Y?z(Y):D(Z)})})})(j.filename);return L.append(N,{name:k})}if(j.buffer)return L.append(j.buffer,{name:k});if(j.base64){const N=j.base64,C=N.substring(N.indexOf(&quot;,&quot;)+1);return L.append(C,{name:k,base64:!0})}}throw new Error(&quot;Unsupported media&quot;)}))}addDrawings(L,E){const j=new V,k=new v;E.worksheets.forEach(N=&gt;{const{drawing:C}=N;if(C){j.prepare(C,{});let P=j.toXml(C);L.append(P,{name:`xl/drawings/${C.name}.xml`}),P=k.toXml(C.rels),L.append(P,{name:`xl/drawings/_rels/${C.name}.xml.rels`})}})}addTables(L,E){const j=new F;E.worksheets.forEach(k=&gt;{const{tables:N}=k;N.forEach(C=&gt;{j.prepare(C,{});const P=j.toXml(C);L.append(P,{name:&quot;xl/tables/&quot;+C.target})})})}async addContentTypes(L,E){const j=new _().toXml(E);L.append(j,{name:&quot;[Content_Types].xml&quot;})}async addApp(L,E){const j=new S().toXml(E);L.append(j,{name:&quot;docProps/app.xml&quot;})}async addCore(L,E){const j=new g;L.append(j.toXml(E),{name:&quot;docProps/core.xml&quot;})}async addThemes(L,E){const j=E.themes||{theme1:B};Object.keys(j).forEach(k=&gt;{const N=j[k],C=`xl/theme/${k}.xml`;L.append(N,{name:C})})}async addOfficeRels(L){const E=new v().toXml([{Id:&quot;rId1&quot;,Type:K.RelType.OfficeDocument,Target:&quot;xl/workbook.xml&quot;},{Id:&quot;rId2&quot;,Type:K.RelType.CoreProperties,Target:&quot;docProps/core.xml&quot;},{Id:&quot;rId3&quot;,Type:K.RelType.ExtenderProperties,Target:&quot;docProps/app.xml&quot;}]);L.append(E,{name:&quot;_rels/.rels&quot;})}async addWorkbookRels(L,E){let j=1;const k=[{Id:&quot;rId&quot;+j++,Type:K.RelType.Styles,Target:&quot;styles.xml&quot;},{Id:&quot;rId&quot;+j++,Type:K.RelType.Theme,Target:&quot;theme/theme1.xml&quot;}];E.sharedStrings.count&amp;&amp;k.push({Id:&quot;rId&quot;+j++,Type:K.RelType.SharedStrings,Target:&quot;sharedStrings.xml&quot;}),E.worksheets.forEach(C=&gt;{C.rId=&quot;rId&quot;+j++,k.push({Id:C.rId,Type:K.RelType.Worksheet,Target:`worksheets/sheet${C.id}.xml`})});const N=new v().toXml(k);L.append(N,{name:&quot;xl/_rels/workbook.xml.rels&quot;})}async addSharedStrings(L,E){E.sharedStrings&amp;&amp;E.sharedStrings.count&amp;&amp;L.append(E.sharedStrings.xml,{name:&quot;xl/sharedStrings.xml&quot;})}async addStyles(L,E){const{xml:j}=E.styles;j&amp;&amp;L.append(j,{name:&quot;xl/styles.xml&quot;})}async addWorkbook(L,E){const j=new A;L.append(j.toXml(E),{name:&quot;xl/workbook.xml&quot;})}async addWorksheets(L,E){const j=new I,k=new v,N=new q,C=new H;E.worksheets.forEach(P=&gt;{let D=new m;j.render(D,P),L.append(D.xml,{name:`xl/worksheets/sheet${P.id}.xml`}),P.rels&amp;&amp;P.rels.length&amp;&amp;(D=new m,k.render(D,P.rels),L.append(D.xml,{name:`xl/worksheets/_rels/sheet${P.id}.xml.rels`})),P.comments.length&gt;0&amp;&amp;(D=new m,N.render(D,P),L.append(D.xml,{name:`xl/comments${P.id}.xml`}),D=new m,C.render(D,P),L.append(D.xml,{name:`xl/drawings/vmlDrawing${P.id}.vml`}))})}_finalize(L){return new Promise((E,j)=&gt;{L.on(&quot;finish&quot;,()=&gt;{E(this)}),L.on(&quot;error&quot;,j),L.finalize()})}prepareModel(L,E){L.creator=L.creator||&quot;ExcelJS&quot;,L.lastModifiedBy=L.lastModifiedBy||&quot;ExcelJS&quot;,L.created=L.created||new Date,L.modified=L.modified||new Date,L.useSharedStrings=E.useSharedStrings===void 0||E.useSharedStrings,L.useStyles=E.useStyles===void 0||E.useStyles,L.sharedStrings=new y,L.styles=L.useStyles?new x(!0):new x.Mock;const j=new A,k=new I;j.prepare(L);const N={sharedStrings:L.sharedStrings,styles:L.styles,date1904:L.properties.date1904,drawingsCount:0,media:L.media};N.drawings=L.drawings=[],N.commentRefs=L.commentRefs=[];let C=0;L.tables=[],L.worksheets.forEach(P=&gt;{P.tables.forEach(D=&gt;{C++,D.target=`table${C}.xml`,D.id=C,L.tables.push(D)}),k.prepare(P,N)})}async write(L,E){E=E||{};const{model:j}=this.workbook,k=new d.ZipWriter(E.zip);return k.pipe(L),this.prepareModel(j,E),await this.addContentTypes(k,j),await this.addOfficeRels(k,j),await this.addWorkbookRels(k,j),await this.addWorksheets(k,j),await this.addSharedStrings(k,j),await this.addDrawings(k,j),await this.addTables(k,j),await Promise.all([this.addThemes(k,j),this.addStyles(k,j)]),await this.addMedia(k,j),await Promise.all([this.addApp(k,j),this.addCore(k,j)]),await this.addWorkbook(k,j),this._finalize(k)}writeFile(L,E){const j=u.createWriteStream(L);return new Promise((k,N)=&gt;{j.on(&quot;finish&quot;,()=&gt;{k()}),j.on(&quot;error&quot;,C=&gt;{N(C)}),this.write(j,E).then(()=&gt;{j.end()}).catch(C=&gt;{N(C)})})}async writeBuffer(L){const E=new f;return await this.write(E,L),E.read()}}K.RelType=t(&quot;./rel-type&quot;),n.exports=K}).call(this)}).call(this,t(&quot;_process&quot;),t(&quot;buffer&quot;).Buffer)},{&quot;../utils/browser-buffer-decode&quot;:16,&quot;../utils/stream-buf&quot;:24,&quot;../utils/utils&quot;:27,&quot;../utils/xml-stream&quot;:28,&quot;../utils/zip-stream&quot;:29,&quot;./rel-type&quot;:31,&quot;./xform/book/workbook-xform&quot;:38,&quot;./xform/comment/comments-xform&quot;:40,&quot;./xform/comment/vml-notes-xform&quot;:45,&quot;./xform/core/app-xform&quot;:51,&quot;./xform/core/content-types-xform&quot;:52,&quot;./xform/core/core-xform&quot;:53,&quot;./xform/core/relationships-xform&quot;:55,&quot;./xform/drawing/drawing-xform&quot;:62,&quot;./xform/sheet/worksheet-xform&quot;:115,&quot;./xform/strings/shared-strings-xform&quot;:124,&quot;./xform/style/styles-xform&quot;:135,&quot;./xform/table/table-xform&quot;:143,&quot;./xml/theme1&quot;:145,_process:467,buffer:220,fs:216,jszip:441,&quot;readable-stream&quot;:491}],145:[function(t,n,o){n.exports=`&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
&lt;a:theme xmlns:a=&quot;http://schemas.openxmlformats.org/drawingml/2006/main&quot; name=&quot;Office Theme&quot;&gt; &lt;a:themeElements&gt; &lt;a:clrScheme name=&quot;Office&quot;&gt; &lt;a:dk1&gt; &lt;a:sysClr val=&quot;windowText&quot; lastClr=&quot;000000&quot;/&gt; &lt;/a:dk1&gt; &lt;a:lt1&gt; &lt;a:sysClr val=&quot;window&quot; lastClr=&quot;FFFFFF&quot;/&gt; &lt;/a:lt1&gt; &lt;a:dk2&gt; &lt;a:srgbClr val=&quot;1F497D&quot;/&gt; &lt;/a:dk2&gt; &lt;a:lt2&gt; &lt;a:srgbClr val=&quot;EEECE1&quot;/&gt; &lt;/a:lt2&gt; &lt;a:accent1&gt; &lt;a:srgbClr val=&quot;4F81BD&quot;/&gt; &lt;/a:accent1&gt; &lt;a:accent2&gt; &lt;a:srgbClr val=&quot;C0504D&quot;/&gt; &lt;/a:accent2&gt; &lt;a:accent3&gt; &lt;a:srgbClr val=&quot;9BBB59&quot;/&gt; &lt;/a:accent3&gt; &lt;a:accent4&gt; &lt;a:srgbClr val=&quot;8064A2&quot;/&gt; &lt;/a:accent4&gt; &lt;a:accent5&gt; &lt;a:srgbClr val=&quot;4BACC6&quot;/&gt; &lt;/a:accent5&gt; &lt;a:accent6&gt; &lt;a:srgbClr val=&quot;F79646&quot;/&gt; &lt;/a:accent6&gt; &lt;a:hlink&gt; &lt;a:srgbClr val=&quot;0000FF&quot;/&gt; &lt;/a:hlink&gt; &lt;a:folHlink&gt; &lt;a:srgbClr val=&quot;800080&quot;/&gt; &lt;/a:folHlink&gt; &lt;/a:clrScheme&gt; &lt;a:fontScheme name=&quot;Office&quot;&gt; &lt;a:majorFont&gt; &lt;a:latin typeface=&quot;Cambria&quot;/&gt; &lt;a:ea typeface=&quot;&quot;/&gt; &lt;a:cs typeface=&quot;&quot;/&gt; &lt;a:font script=&quot;Jpan&quot; typeface=&quot;ＭＳ Ｐゴシック&quot;/&gt; &lt;a:font script=&quot;Hang&quot; typeface=&quot;맑은 고딕&quot;/&gt; &lt;a:font script=&quot;Hans&quot; typeface=&quot;宋体&quot;/&gt; &lt;a:font script=&quot;Hant&quot; typeface=&quot;新細明體&quot;/&gt; &lt;a:font script=&quot;Arab&quot; typeface=&quot;Times New Roman&quot;/&gt; &lt;a:font script=&quot;Hebr&quot; typeface=&quot;Times New Roman&quot;/&gt; &lt;a:font script=&quot;Thai&quot; typeface=&quot;Tahoma&quot;/&gt; &lt;a:font script=&quot;Ethi&quot; typeface=&quot;Nyala&quot;/&gt; &lt;a:font script=&quot;Beng&quot; typeface=&quot;Vrinda&quot;/&gt; &lt;a:font script=&quot;Gujr&quot; typeface=&quot;Shruti&quot;/&gt; &lt;a:font script=&quot;Khmr&quot; typeface=&quot;MoolBoran&quot;/&gt; &lt;a:font script=&quot;Knda&quot; typeface=&quot;Tunga&quot;/&gt; &lt;a:font script=&quot;Guru&quot; typeface=&quot;Raavi&quot;/&gt; &lt;a:font script=&quot;Cans&quot; typeface=&quot;Euphemia&quot;/&gt; &lt;a:font script=&quot;Cher&quot; typeface=&quot;Plantagenet Cherokee&quot;/&gt; &lt;a:font script=&quot;Yiii&quot; typeface=&quot;Microsoft Yi Baiti&quot;/&gt; &lt;a:font script=&quot;Tibt&quot; typeface=&quot;Microsoft Himalaya&quot;/&gt; &lt;a:font script=&quot;Thaa&quot; typeface=&quot;MV Boli&quot;/&gt; &lt;a:font script=&quot;Deva&quot; typeface=&quot;Mangal&quot;/&gt; &lt;a:font script=&quot;Telu&quot; typeface=&quot;Gautami&quot;/&gt; &lt;a:font script=&quot;Taml&quot; typeface=&quot;Latha&quot;/&gt; &lt;a:font script=&quot;Syrc&quot; typeface=&quot;Estrangelo Edessa&quot;/&gt; &lt;a:font script=&quot;Orya&quot; typeface=&quot;Kalinga&quot;/&gt; &lt;a:font script=&quot;Mlym&quot; typeface=&quot;Kartika&quot;/&gt; &lt;a:font script=&quot;Laoo&quot; typeface=&quot;DokChampa&quot;/&gt; &lt;a:font script=&quot;Sinh&quot; typeface=&quot;Iskoola Pota&quot;/&gt; &lt;a:font script=&quot;Mong&quot; typeface=&quot;Mongolian Baiti&quot;/&gt; &lt;a:font script=&quot;Viet&quot; typeface=&quot;Times New Roman&quot;/&gt; &lt;a:font script=&quot;Uigh&quot; typeface=&quot;Microsoft Uighur&quot;/&gt; &lt;a:font script=&quot;Geor&quot; typeface=&quot;Sylfaen&quot;/&gt; &lt;/a:majorFont&gt; &lt;a:minorFont&gt; &lt;a:latin typeface=&quot;Calibri&quot;/&gt; &lt;a:ea typeface=&quot;&quot;/&gt; &lt;a:cs typeface=&quot;&quot;/&gt; &lt;a:font script=&quot;Jpan&quot; typeface=&quot;ＭＳ Ｐゴシック&quot;/&gt; &lt;a:font script=&quot;Hang&quot; typeface=&quot;맑은 고딕&quot;/&gt; &lt;a:font script=&quot;Hans&quot; typeface=&quot;宋体&quot;/&gt; &lt;a:font script=&quot;Hant&quot; typeface=&quot;新細明體&quot;/&gt; &lt;a:font script=&quot;Arab&quot; typeface=&quot;Arial&quot;/&gt; &lt;a:font script=&quot;Hebr&quot; typeface=&quot;Arial&quot;/&gt; &lt;a:font script=&quot;Thai&quot; typeface=&quot;Tahoma&quot;/&gt; &lt;a:font script=&quot;Ethi&quot; typeface=&quot;Nyala&quot;/&gt; &lt;a:font script=&quot;Beng&quot; typeface=&quot;Vrinda&quot;/&gt; &lt;a:font script=&quot;Gujr&quot; typeface=&quot;Shruti&quot;/&gt; &lt;a:font script=&quot;Khmr&quot; typeface=&quot;DaunPenh&quot;/&gt; &lt;a:font script=&quot;Knda&quot; typeface=&quot;Tunga&quot;/&gt; &lt;a:font script=&quot;Guru&quot; typeface=&quot;Raavi&quot;/&gt; &lt;a:font script=&quot;Cans&quot; typeface=&quot;Euphemia&quot;/&gt; &lt;a:font script=&quot;Cher&quot; typeface=&quot;Plantagenet Cherokee&quot;/&gt; &lt;a:font script=&quot;Yiii&quot; typeface=&quot;Microsoft Yi Baiti&quot;/&gt; &lt;a:font script=&quot;Tibt&quot; typeface=&quot;Microsoft Himalaya&quot;/&gt; &lt;a:font script=&quot;Thaa&quot; typeface=&quot;MV Boli&quot;/&gt; &lt;a:font script=&quot;Deva&quot; typeface=&quot;Mangal&quot;/&gt; &lt;a:font script=&quot;Telu&quot; typeface=&quot;Gautami&quot;/&gt; &lt;a:font script=&quot;Taml&quot; typeface=&quot;Latha&quot;/&gt; &lt;a:font script=&quot;Syrc&quot; typeface=&quot;Estrangelo Edessa&quot;/&gt; &lt;a:font script=&quot;Orya&quot; typeface=&quot;Kalinga&quot;/&gt; &lt;a:font script=&quot;Mlym&quot; typeface=&quot;Kartika&quot;/&gt; &lt;a:font script=&quot;Laoo&quot; typeface=&quot;DokChampa&quot;/&gt; &lt;a:font script=&quot;Sinh&quot; typeface=&quot;Iskoola Pota&quot;/&gt; &lt;a:font script=&quot;Mong&quot; typeface=&quot;Mongolian Baiti&quot;/&gt; &lt;a:font script=&quot;Viet&quot; typeface=&quot;Arial&quot;/&gt; &lt;a:font script=&quot;Uigh&quot; typeface=&quot;Microsoft Uighur&quot;/&gt; &lt;a:font script=&quot;Geor&quot; typeface=&quot;Sylfaen&quot;/&gt; &lt;/a:minorFont&gt; &lt;/a:fontScheme&gt; &lt;a:fmtScheme name=&quot;Office&quot;&gt; &lt;a:fillStyleLst&gt; &lt;a:solidFill&gt; &lt;a:schemeClr val=&quot;phClr&quot;/&gt; &lt;/a:solidFill&gt; &lt;a:gradFill rotWithShape=&quot;1&quot;&gt; &lt;a:gsLst&gt; &lt;a:gs pos=&quot;0&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:tint val=&quot;50000&quot;/&gt; &lt;a:satMod val=&quot;300000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;a:gs pos=&quot;35000&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:tint val=&quot;37000&quot;/&gt; &lt;a:satMod val=&quot;300000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;a:gs pos=&quot;100000&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:tint val=&quot;15000&quot;/&gt; &lt;a:satMod val=&quot;350000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;/a:gsLst&gt; &lt;a:lin ang=&quot;16200000&quot; scaled=&quot;1&quot;/&gt; &lt;/a:gradFill&gt; &lt;a:gradFill rotWithShape=&quot;1&quot;&gt; &lt;a:gsLst&gt; &lt;a:gs pos=&quot;0&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:tint val=&quot;100000&quot;/&gt; &lt;a:shade val=&quot;100000&quot;/&gt; &lt;a:satMod val=&quot;130000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;a:gs pos=&quot;100000&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:tint val=&quot;50000&quot;/&gt; &lt;a:shade val=&quot;100000&quot;/&gt; &lt;a:satMod val=&quot;350000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;/a:gsLst&gt; &lt;a:lin ang=&quot;16200000&quot; scaled=&quot;0&quot;/&gt; &lt;/a:gradFill&gt; &lt;/a:fillStyleLst&gt; &lt;a:lnStyleLst&gt; &lt;a:ln w=&quot;9525&quot; cap=&quot;flat&quot; cmpd=&quot;sng&quot; algn=&quot;ctr&quot;&gt; &lt;a:solidFill&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:shade val=&quot;95000&quot;/&gt; &lt;a:satMod val=&quot;105000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:solidFill&gt; &lt;a:prstDash val=&quot;solid&quot;/&gt; &lt;/a:ln&gt; &lt;a:ln w=&quot;25400&quot; cap=&quot;flat&quot; cmpd=&quot;sng&quot; algn=&quot;ctr&quot;&gt; &lt;a:solidFill&gt; &lt;a:schemeClr val=&quot;phClr&quot;/&gt; &lt;/a:solidFill&gt; &lt;a:prstDash val=&quot;solid&quot;/&gt; &lt;/a:ln&gt; &lt;a:ln w=&quot;38100&quot; cap=&quot;flat&quot; cmpd=&quot;sng&quot; algn=&quot;ctr&quot;&gt; &lt;a:solidFill&gt; &lt;a:schemeClr val=&quot;phClr&quot;/&gt; &lt;/a:solidFill&gt; &lt;a:prstDash val=&quot;solid&quot;/&gt; &lt;/a:ln&gt; &lt;/a:lnStyleLst&gt; &lt;a:effectStyleLst&gt; &lt;a:effectStyle&gt; &lt;a:effectLst&gt; &lt;a:outerShdw blurRad=&quot;40000&quot; dist=&quot;20000&quot; dir=&quot;5400000&quot; rotWithShape=&quot;0&quot;&gt; &lt;a:srgbClr val=&quot;000000&quot;&gt; &lt;a:alpha val=&quot;38000&quot;/&gt; &lt;/a:srgbClr&gt; &lt;/a:outerShdw&gt; &lt;/a:effectLst&gt; &lt;/a:effectStyle&gt; &lt;a:effectStyle&gt; &lt;a:effectLst&gt; &lt;a:outerShdw blurRad=&quot;40000&quot; dist=&quot;23000&quot; dir=&quot;5400000&quot; rotWithShape=&quot;0&quot;&gt; &lt;a:srgbClr val=&quot;000000&quot;&gt; &lt;a:alpha val=&quot;35000&quot;/&gt; &lt;/a:srgbClr&gt; &lt;/a:outerShdw&gt; &lt;/a:effectLst&gt; &lt;/a:effectStyle&gt; &lt;a:effectStyle&gt; &lt;a:effectLst&gt; &lt;a:outerShdw blurRad=&quot;40000&quot; dist=&quot;23000&quot; dir=&quot;5400000&quot; rotWithShape=&quot;0&quot;&gt; &lt;a:srgbClr val=&quot;000000&quot;&gt; &lt;a:alpha val=&quot;35000&quot;/&gt; &lt;/a:srgbClr&gt; &lt;/a:outerShdw&gt; &lt;/a:effectLst&gt; &lt;a:scene3d&gt; &lt;a:camera prst=&quot;orthographicFront&quot;&gt; &lt;a:rot lat=&quot;0&quot; lon=&quot;0&quot; rev=&quot;0&quot;/&gt; &lt;/a:camera&gt; &lt;a:lightRig rig=&quot;threePt&quot; dir=&quot;t&quot;&gt; &lt;a:rot lat=&quot;0&quot; lon=&quot;0&quot; rev=&quot;1200000&quot;/&gt; &lt;/a:lightRig&gt; &lt;/a:scene3d&gt; &lt;a:sp3d&gt; &lt;a:bevelT w=&quot;63500&quot; h=&quot;25400&quot;/&gt; &lt;/a:sp3d&gt; &lt;/a:effectStyle&gt; &lt;/a:effectStyleLst&gt; &lt;a:bgFillStyleLst&gt; &lt;a:solidFill&gt; &lt;a:schemeClr val=&quot;phClr&quot;/&gt; &lt;/a:solidFill&gt; &lt;a:gradFill rotWithShape=&quot;1&quot;&gt; &lt;a:gsLst&gt; &lt;a:gs pos=&quot;0&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:tint val=&quot;40000&quot;/&gt; &lt;a:satMod val=&quot;350000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;a:gs pos=&quot;40000&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:tint val=&quot;45000&quot;/&gt; &lt;a:shade val=&quot;99000&quot;/&gt; &lt;a:satMod val=&quot;350000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;a:gs pos=&quot;100000&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:shade val=&quot;20000&quot;/&gt; &lt;a:satMod val=&quot;255000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;/a:gsLst&gt; &lt;a:path path=&quot;circle&quot;&gt; &lt;a:fillToRect l=&quot;50000&quot; t=&quot;-80000&quot; r=&quot;50000&quot; b=&quot;180000&quot;/&gt; &lt;/a:path&gt; &lt;/a:gradFill&gt; &lt;a:gradFill rotWithShape=&quot;1&quot;&gt; &lt;a:gsLst&gt; &lt;a:gs pos=&quot;0&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:tint val=&quot;80000&quot;/&gt; &lt;a:satMod val=&quot;300000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;a:gs pos=&quot;100000&quot;&gt; &lt;a:schemeClr val=&quot;phClr&quot;&gt; &lt;a:shade val=&quot;30000&quot;/&gt; &lt;a:satMod val=&quot;200000&quot;/&gt; &lt;/a:schemeClr&gt; &lt;/a:gs&gt; &lt;/a:gsLst&gt; &lt;a:path path=&quot;circle&quot;&gt; &lt;a:fillToRect l=&quot;50000&quot; t=&quot;50000&quot; r=&quot;50000&quot; b=&quot;50000&quot;/&gt; &lt;/a:path&gt; &lt;/a:gradFill&gt; &lt;/a:bgFillStyleLst&gt; &lt;/a:fmtScheme&gt; &lt;/a:themeElements&gt; &lt;a:objectDefaults&gt; &lt;a:spDef&gt; &lt;a:spPr/&gt; &lt;a:bodyPr/&gt; &lt;a:lstStyle/&gt; &lt;a:style&gt; &lt;a:lnRef idx=&quot;1&quot;&gt; &lt;a:schemeClr val=&quot;accent1&quot;/&gt; &lt;/a:lnRef&gt; &lt;a:fillRef idx=&quot;3&quot;&gt; &lt;a:schemeClr val=&quot;accent1&quot;/&gt; &lt;/a:fillRef&gt; &lt;a:effectRef idx=&quot;2&quot;&gt; &lt;a:schemeClr val=&quot;accent1&quot;/&gt; &lt;/a:effectRef&gt; &lt;a:fontRef idx=&quot;minor&quot;&gt; &lt;a:schemeClr val=&quot;lt1&quot;/&gt; &lt;/a:fontRef&gt; &lt;/a:style&gt; &lt;/a:spDef&gt; &lt;a:lnDef&gt; &lt;a:spPr/&gt; &lt;a:bodyPr/&gt; &lt;a:lstStyle/&gt; &lt;a:style&gt; &lt;a:lnRef idx=&quot;2&quot;&gt; &lt;a:schemeClr val=&quot;accent1&quot;/&gt; &lt;/a:lnRef&gt; &lt;a:fillRef idx=&quot;0&quot;&gt; &lt;a:schemeClr val=&quot;accent1&quot;/&gt; &lt;/a:fillRef&gt; &lt;a:effectRef idx=&quot;1&quot;&gt; &lt;a:schemeClr val=&quot;accent1&quot;/&gt; &lt;/a:effectRef&gt; &lt;a:fontRef idx=&quot;minor&quot;&gt; &lt;a:schemeClr val=&quot;tx1&quot;/&gt; &lt;/a:fontRef&gt; &lt;/a:style&gt; &lt;/a:lnDef&gt; &lt;/a:objectDefaults&gt; &lt;a:extraClrSchemeLst/&gt; &lt;/a:theme&gt;`},{}],146:[function(t,n,o){(function(s){(function(){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.CsvFormatterStream=void 0;const l=t(&quot;stream&quot;),u=t(&quot;./formatter&quot;);class c extends l.Transform{constructor(d){super({writableObjectMode:d.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=d,this.rowFormatter=new u.RowFormatter(d),this.hasWrittenBOM=!d.writeBOM}transform(d){return this.rowFormatter.rowTransform=d,this}_transform(d,f,h){let m=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(d,(p,x)=&gt;p?(m=!0,h(p)):(x&amp;&amp;x.forEach(g=&gt;{this.push(s.from(g,&quot;utf8&quot;))}),m=!0,h()))}catch(p){if(m)throw p;h(p)}}_flush(d){this.rowFormatter.finish((f,h)=&gt;f?d(f):(h&amp;&amp;h.forEach(m=&gt;{this.push(s.from(m,&quot;utf8&quot;))}),d()))}}o.CsvFormatterStream=c}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./formatter&quot;:150,buffer:220,stream:505}],147:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.FormatterOptions=void 0,o.FormatterOptions=class{constructor(){let s=arguments.length&gt;0&amp;&amp;arguments[0]!==void 0?arguments[0]:{};var l;this.objectMode=!0,this.delimiter=&quot;,&quot;,this.rowDelimiter=`
`,this.quote=&#039;&quot;&#039;,this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM=&quot;\uFEFF&quot;,this.alwaysWriteHeaders=!1,Object.assign(this,s||{}),s?.quoteHeaders===void 0&amp;&amp;(this.quoteHeaders=this.quoteColumns),s?.quote===!0?this.quote=&#039;&quot;&#039;:s?.quote===!1&amp;&amp;(this.quote=&quot;&quot;),typeof s?.escape!=&quot;string&quot;&amp;&amp;(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&amp;&amp;((l=s.writeHeaders)===null||l===void 0||l),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(t,n,o){var s=function(a){return a&amp;&amp;a.__esModule?a:{default:a}};Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.FieldFormatter=void 0;const l=s(t(&quot;lodash.isboolean&quot;)),u=s(t(&quot;lodash.isnil&quot;)),c=s(t(&quot;lodash.escaperegexp&quot;));o.FieldFormatter=class{constructor(a){this._headers=null,this.formatterOptions=a,a.headers!==null&amp;&amp;(this.headers=a.headers),this.REPLACE_REGEXP=new RegExp(a.quote,&quot;g&quot;);const d=`[${a.delimiter}${c.default(a.rowDelimiter)}|\r|
]`;this.ESCAPE_REGEXP=new RegExp(d)}set headers(a){this._headers=a}shouldQuote(a,d){const f=d?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return l.default(f)?f:Array.isArray(f)?f[a]:this._headers!==null&amp;&amp;f[this._headers[a]]}format(a,d,f){const h=(&quot;&quot;+(u.default(a)?&quot;&quot;:a)).replace(/\0/g,&quot;&quot;),{formatterOptions:m}=this;return m.quote!==&quot;&quot;&amp;&amp;h.indexOf(m.quote)!==-1?this.quoteField(h.replace(this.REPLACE_REGEXP,m.escapedQuote)):h.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(d,f)?this.quoteField(h):h}quoteField(a){const{quote:d}=this.formatterOptions;return`${d}${a}${d}`}}},{&quot;lodash.escaperegexp&quot;:442,&quot;lodash.isboolean&quot;:444,&quot;lodash.isnil&quot;:447}],149:[function(t,n,o){var s=function(f){return f&amp;&amp;f.__esModule?f:{default:f}};Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.RowFormatter=void 0;const l=s(t(&quot;lodash.isfunction&quot;)),u=s(t(&quot;lodash.isequal&quot;)),c=t(&quot;./FieldFormatter&quot;),a=t(&quot;../types&quot;);class d{constructor(h){this.rowCount=0,this.formatterOptions=h,this.fieldFormatter=new c.FieldFormatter(h),this.headers=h.headers,this.shouldWriteHeaders=h.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&amp;&amp;(this.fieldFormatter.headers=this.headers),h.transform&amp;&amp;(this.rowTransform=h.transform)}static isRowHashArray(h){return!!Array.isArray(h)&amp;&amp;Array.isArray(h[0])&amp;&amp;h[0].length===2}static isRowArray(h){return Array.isArray(h)&amp;&amp;!this.isRowHashArray(h)}static gatherHeaders(h){return d.isRowHashArray(h)?h.map(m=&gt;m[0]):Array.isArray(h)?h:Object.keys(h)}static createTransform(h){return a.isSyncTransform(h)?(m,p)=&gt;{let x=null;try{x=h(m)}catch(g){return p(g)}return p(null,x)}:(m,p)=&gt;{h(m,p)}}set rowTransform(h){if(!l.default(h))throw new TypeError(&quot;The transform should be a function&quot;);this._rowTransform=d.createTransform(h)}format(h,m){this.callTransformer(h,(p,x)=&gt;{if(p)return m(p);if(!h)return m(null);const g=[];if(x){const{shouldFormatColumns:y,headers:v}=this.checkHeaders(x);if(this.shouldWriteHeaders&amp;&amp;v&amp;&amp;!this.hasWrittenHeaders&amp;&amp;(g.push(this.formatColumns(v,!0)),this.hasWrittenHeaders=!0),y){const _=this.gatherColumns(x);g.push(this.formatColumns(_,!1))}}return m(null,g)})}finish(h){const m=[];if(this.formatterOptions.alwaysWriteHeaders&amp;&amp;this.rowCount===0){if(!this.headers)return h(new Error(&quot;`alwaysWriteHeaders` option is set to true but `headers` option not provided.&quot;));m.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&amp;&amp;m.push(this.formatterOptions.rowDelimiter),h(null,m)}checkHeaders(h){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const m=d.gatherHeaders(h);return this.headers=m,this.fieldFormatter.headers=m,this.shouldWriteHeaders?{shouldFormatColumns:!u.default(m,h),headers:m}:{shouldFormatColumns:!0,headers:null}}gatherColumns(h){if(this.headers===null)throw new Error(&quot;Headers is currently null&quot;);return Array.isArray(h)?d.isRowHashArray(h)?this.headers.map((m,p)=&gt;{const x=h[p];return x?x[1]:&quot;&quot;}):d.isRowArray(h)&amp;&amp;!this.shouldWriteHeaders?h:this.headers.map((m,p)=&gt;h[p]):this.headers.map(m=&gt;h[m])}callTransformer(h,m){return this._rowTransform?this._rowTransform(h,m):m(null,h)}formatColumns(h,m){const p=h.map((g,y)=&gt;this.fieldFormatter.format(g,y,m)).join(this.formatterOptions.delimiter),{rowCount:x}=this;return this.rowCount+=1,x?[this.formatterOptions.rowDelimiter,p].join(&quot;&quot;):p}}o.RowFormatter=d},{&quot;../types&quot;:152,&quot;./FieldFormatter&quot;:148,&quot;lodash.isequal&quot;:445,&quot;lodash.isfunction&quot;:446}],150:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.FieldFormatter=o.RowFormatter=void 0;var s=t(&quot;./RowFormatter&quot;);Object.defineProperty(o,&quot;RowFormatter&quot;,{enumerable:!0,get:function(){return s.RowFormatter}});var l=t(&quot;./FieldFormatter&quot;);Object.defineProperty(o,&quot;FieldFormatter&quot;,{enumerable:!0,get:function(){return l.FieldFormatter}})},{&quot;./FieldFormatter&quot;:148,&quot;./RowFormatter&quot;:149}],151:[function(t,n,o){(function(s){(function(){var l=Object.create?function(y,v,_,S){S===void 0&amp;&amp;(S=_),Object.defineProperty(y,S,{enumerable:!0,get:function(){return v[_]}})}:function(y,v,_,S){S===void 0&amp;&amp;(S=_),y[S]=v[_]},u=Object.create?function(y,v){Object.defineProperty(y,&quot;default&quot;,{enumerable:!0,value:v})}:function(y,v){y.default=v},c=function(y){if(y&amp;&amp;y.__esModule)return y;var v={};if(y!=null)for(var _ in y)_!==&quot;default&quot;&amp;&amp;Object.prototype.hasOwnProperty.call(y,_)&amp;&amp;l(v,y,_);return u(v,y),v},a=function(y,v){for(var _ in y)_===&quot;default&quot;||Object.prototype.hasOwnProperty.call(v,_)||l(v,y,_)};Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.writeToPath=o.writeToString=o.writeToBuffer=o.writeToStream=o.write=o.format=o.FormatterOptions=o.CsvFormatterStream=void 0;const d=t(&quot;util&quot;),f=t(&quot;stream&quot;),h=c(t(&quot;fs&quot;)),m=t(&quot;./FormatterOptions&quot;),p=t(&quot;./CsvFormatterStream&quot;);a(t(&quot;./types&quot;),o);var x=t(&quot;./CsvFormatterStream&quot;);Object.defineProperty(o,&quot;CsvFormatterStream&quot;,{enumerable:!0,get:function(){return x.CsvFormatterStream}});var g=t(&quot;./FormatterOptions&quot;);Object.defineProperty(o,&quot;FormatterOptions&quot;,{enumerable:!0,get:function(){return g.FormatterOptions}}),o.format=y=&gt;new p.CsvFormatterStream(new m.FormatterOptions(y)),o.write=(y,v)=&gt;{const _=o.format(v),S=d.promisify((A,I)=&gt;{_.write(A,void 0,I)});return y.reduce((A,I)=&gt;A.then(()=&gt;S(I)),Promise.resolve()).then(()=&gt;_.end()).catch(A=&gt;{_.emit(&quot;error&quot;,A)}),_},o.writeToStream=(y,v,_)=&gt;o.write(v,_).pipe(y),o.writeToBuffer=function(y){let v=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:{};const _=[],S=new f.Writable({write(A,I,V){_.push(A),V()}});return new Promise((A,I)=&gt;{S.on(&quot;error&quot;,I).on(&quot;finish&quot;,()=&gt;A(s.concat(_))),o.write(y,v).pipe(S)})},o.writeToString=(y,v)=&gt;o.writeToBuffer(y,v).then(_=&gt;_.toString()),o.writeToPath=(y,v,_)=&gt;{const S=h.createWriteStream(y,{encoding:&quot;utf8&quot;});return o.write(v,_).pipe(S)}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./CsvFormatterStream&quot;:146,&quot;./FormatterOptions&quot;:147,&quot;./types&quot;:152,buffer:220,fs:216,stream:505,util:527}],152:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.isSyncTransform=void 0,o.isSyncTransform=s=&gt;s.length===1},{}],153:[function(t,n,o){(function(s){(function(){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.CsvParserStream=void 0;const l=t(&quot;string_decoder&quot;),u=t(&quot;stream&quot;),c=t(&quot;./transforms&quot;),a=t(&quot;./parser&quot;);class d extends u.Transform{constructor(h){super({objectMode:h.objectMode}),this.lines=&quot;&quot;,this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=h,this.parser=new a.Parser(h),this.headerTransformer=new c.HeaderTransformer(h),this.decoder=new l.StringDecoder(h.encoding),this.rowTransformerValidator=new c.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&amp;&amp;this.rowCount&gt;=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount&gt;this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount&lt;=this.parserOptions.skipLines}transform(h){return this.rowTransformerValidator.rowTransform=h,this}validate(h){return this.rowTransformerValidator.rowValidator=h,this}emit(h){if(h===&quot;end&quot;)return this.endEmitted||(this.endEmitted=!0,super.emit(&quot;end&quot;,this.rowCount)),!1;for(var m=arguments.length,p=new Array(m&gt;1?m-1:0),x=1;x&lt;m;x++)p[x-1]=arguments[x];return super.emit(h,...p)}_transform(h,m,p){if(this.hasHitRowLimit)return p();const x=d.wrapDoneCallback(p);try{const{lines:g}=this,y=g+this.decoder.write(h),v=this.parse(y,!0);return this.processRows(v,x)}catch(g){return x(g)}}_flush(h){const m=d.wrapDoneCallback(h);if(this.hasHitRowLimit)return m();try{const p=this.lines+this.decoder.end(),x=this.parse(p,!1);return this.processRows(x,m)}catch(p){return m(p)}}parse(h,m){if(!h)return[];const{line:p,rows:x}=this.parser.parse(h,m);return this.lines=p,x}processRows(h,m){const p=h.length,x=g=&gt;{const y=S=&gt;S?m(S):g%100!=0?x(g+1):void s(()=&gt;x(g+1));if(this.checkAndEmitHeaders(),g&gt;=p||this.hasHitRowLimit)return m();if(this.parsedLineCount+=1,this.shouldSkipLine)return y();const v=h[g];this.rowCount+=1,this.parsedRowCount+=1;const _=this.rowCount;return this.transformRow(v,(S,A)=&gt;{if(S)return this.rowCount-=1,y(S);if(!A)return y(new Error(&quot;expected transform result&quot;));if(A.isValid){if(A.row)return this.pushRow(A.row,y)}else this.emit(&quot;data-invalid&quot;,A.row,_,A.reason);return y()})};x(0)}transformRow(h,m){try{this.headerTransformer.transform(h,(p,x)=&gt;p?m(p):x?x.isValid?x.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(x.row,m):this.skipRow(m):(this.rowCount-=1,this.parsedRowCount-=1,m(null,{row:null,isValid:!0})):this.shouldEmitRows?m(null,{isValid:!1,row:h}):this.skipRow(m):m(new Error(&quot;Expected result from header transform&quot;)))}catch(p){m(p)}}checkAndEmitHeaders(){!this.headersEmitted&amp;&amp;this.headerTransformer.headers&amp;&amp;(this.headersEmitted=!0,this.emit(&quot;headers&quot;,this.headerTransformer.headers))}skipRow(h){return this.rowCount-=1,h(null,{row:null,isValid:!0})}pushRow(h,m){try{this.parserOptions.objectMode?this.push(h):this.push(JSON.stringify(h)),m()}catch(p){m(p)}}static wrapDoneCallback(h){let m=!1;return function(p){if(p){if(m)throw p;return m=!0,void h(p)}for(var x=arguments.length,g=new Array(x&gt;1?x-1:0),y=1;y&lt;x;y++)g[y-1]=arguments[y];h(...g)}}}o.CsvParserStream=d}).call(this)}).call(this,t(&quot;timers&quot;).setImmediate)},{&quot;./parser&quot;:165,&quot;./transforms&quot;:168,stream:505,string_decoder:218,timers:523}],154:[function(t,n,o){var s=function(c){return c&amp;&amp;c.__esModule?c:{default:c}};Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.ParserOptions=void 0;const l=s(t(&quot;lodash.escaperegexp&quot;)),u=s(t(&quot;lodash.isnil&quot;));o.ParserOptions=class{constructor(c){var a;if(this.objectMode=!0,this.delimiter=&quot;,&quot;,this.ignoreEmpty=!1,this.quote=&#039;&quot;&#039;,this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn=&quot;\r&quot;,this.encoding=&quot;utf8&quot;,this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,c||{}),this.delimiter.length&gt;1)throw new Error(&quot;delimiter option must be one character long&quot;);this.escapedDelimiter=l.default(this.delimiter),this.escapeChar=(a=this.escape)!==null&amp;&amp;a!==void 0?a:this.quote,this.supportsComments=!u.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows&gt;0&amp;&amp;(this.limitRows=!0)}}},{&quot;lodash.escaperegexp&quot;:442,&quot;lodash.isnil&quot;:447}],155:[function(t,n,o){var s=Object.create?function(x,g,y,v){v===void 0&amp;&amp;(v=y),Object.defineProperty(x,v,{enumerable:!0,get:function(){return g[y]}})}:function(x,g,y,v){v===void 0&amp;&amp;(v=y),x[v]=g[y]},l=Object.create?function(x,g){Object.defineProperty(x,&quot;default&quot;,{enumerable:!0,value:g})}:function(x,g){x.default=g},u=function(x){if(x&amp;&amp;x.__esModule)return x;var g={};if(x!=null)for(var y in x)y!==&quot;default&quot;&amp;&amp;Object.prototype.hasOwnProperty.call(x,y)&amp;&amp;s(g,x,y);return l(g,x),g},c=function(x,g){for(var y in x)y===&quot;default&quot;||Object.prototype.hasOwnProperty.call(g,y)||s(g,x,y)};Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.parseString=o.parseFile=o.parseStream=o.parse=o.ParserOptions=o.CsvParserStream=void 0;const a=u(t(&quot;fs&quot;)),d=t(&quot;stream&quot;),f=t(&quot;./ParserOptions&quot;),h=t(&quot;./CsvParserStream&quot;);c(t(&quot;./types&quot;),o);var m=t(&quot;./CsvParserStream&quot;);Object.defineProperty(o,&quot;CsvParserStream&quot;,{enumerable:!0,get:function(){return m.CsvParserStream}});var p=t(&quot;./ParserOptions&quot;);Object.defineProperty(o,&quot;ParserOptions&quot;,{enumerable:!0,get:function(){return p.ParserOptions}}),o.parse=x=&gt;new h.CsvParserStream(new f.ParserOptions(x)),o.parseStream=(x,g)=&gt;x.pipe(new h.CsvParserStream(new f.ParserOptions(g))),o.parseFile=function(x){let g=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:{};return a.createReadStream(x).pipe(new h.CsvParserStream(new f.ParserOptions(g)))},o.parseString=(x,g)=&gt;{const y=new d.Readable;return y.push(x),y.push(null),y.pipe(new h.CsvParserStream(new f.ParserOptions(g)))}},{&quot;./CsvParserStream&quot;:153,&quot;./ParserOptions&quot;:154,&quot;./types&quot;:169,fs:216,stream:505}],156:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.Parser=void 0;const s=t(&quot;./Scanner&quot;),l=t(&quot;./RowParser&quot;),u=t(&quot;./Token&quot;);class c{constructor(d){this.parserOptions=d,this.rowParser=new l.RowParser(this.parserOptions)}static removeBOM(d){return d&amp;&amp;d.charCodeAt(0)===65279?d.slice(1):d}parse(d,f){const h=new s.Scanner({line:c.removeBOM(d),parserOptions:this.parserOptions,hasMoreData:f});return this.parserOptions.supportsComments?this.parseWithComments(h):this.parseWithoutComments(h)}parseWithoutComments(d){const f=[];let h=!0;for(;h;)h=this.parseRow(d,f);return{line:d.line,rows:f}}parseWithComments(d){const{parserOptions:f}=this,h=[];for(let m=d.nextCharacterToken;m!==null;m=d.nextCharacterToken)if(u.Token.isTokenComment(m,f)){if(d.advancePastLine()===null)return{line:d.lineFromCursor,rows:h};if(!d.hasMoreCharacters)return{line:d.lineFromCursor,rows:h};d.truncateToCursor()}else if(!this.parseRow(d,h))break;return{line:d.line,rows:h}}parseRow(d,f){if(!d.nextNonSpaceToken)return!1;const h=this.rowParser.parse(d);return h!==null&amp;&amp;(this.parserOptions.ignoreEmpty&amp;&amp;l.RowParser.isEmptyRow(h)||f.push(h),!0)}}o.Parser=c},{&quot;./RowParser&quot;:157,&quot;./Scanner&quot;:158,&quot;./Token&quot;:159}],157:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.RowParser=void 0;const s=t(&quot;./column&quot;),l=t(&quot;./Token&quot;);o.RowParser=class{constructor(u){this.parserOptions=u,this.columnParser=new s.ColumnParser(u)}static isEmptyRow(u){return u.join(&quot;&quot;).replace(/\s+/g,&quot;&quot;)===&quot;&quot;}parse(u){const{parserOptions:c}=this,{hasMoreData:a}=u,d=u,f=[];let h=this.getStartToken(d,f);for(;h;){if(l.Token.isTokenRowDelimiter(h))return d.advancePastToken(h),!d.hasMoreCharacters&amp;&amp;l.Token.isTokenCarriageReturn(h,c)&amp;&amp;a?null:(d.truncateToCursor(),f);if(!this.shouldSkipColumnParse(d,h,f)){const m=this.columnParser.parse(d);if(m===null)return null;f.push(m)}h=d.nextNonSpaceToken}return a?null:(d.truncateToCursor(),f)}getStartToken(u,c){const a=u.nextNonSpaceToken;return a!==null&amp;&amp;l.Token.isTokenDelimiter(a,this.parserOptions)?(c.push(&quot;&quot;),u.nextNonSpaceToken):a}shouldSkipColumnParse(u,c,a){const{parserOptions:d}=this;if(l.Token.isTokenDelimiter(c,d)){u.advancePastToken(c);const f=u.nextCharacterToken;if(!u.hasMoreCharacters||f!==null&amp;&amp;l.Token.isTokenRowDelimiter(f)||f!==null&amp;&amp;l.Token.isTokenDelimiter(f,d))return a.push(&quot;&quot;),!0}return!1}}},{&quot;./Token&quot;:159,&quot;./column&quot;:164}],158:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.Scanner=void 0;const s=t(&quot;./Token&quot;),l=/((?:\r\n)|\n|\r)/;o.Scanner=class{constructor(u){this.cursor=0,this.line=u.line,this.lineLength=this.line.length,this.parserOptions=u.parserOptions,this.hasMoreData=u.hasMoreData,this.cursor=u.cursor||0}get hasMoreCharacters(){return this.lineLength&gt;this.cursor}get nextNonSpaceToken(){const{lineFromCursor:u}=this,c=this.parserOptions.NEXT_TOKEN_REGEXP;if(u.search(c)===-1)return null;const a=c.exec(u);if(a==null)return null;const d=a[1],f=this.cursor+(a.index||0);return new s.Token({token:d,startCursor:f,endCursor:f+d.length-1})}get nextCharacterToken(){const{cursor:u,lineLength:c}=this;return c&lt;=u?null:new s.Token({token:this.line[u],startCursor:u,endCursor:u})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const u=l.exec(this.lineFromCursor);return u?(this.cursor+=(u.index||0)+u[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(u){return this.cursor=u,this}advanceToToken(u){return this.cursor=u.startCursor,this}advancePastToken(u){return this.cursor=u.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{&quot;./Token&quot;:159}],159:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.Token=void 0,o.Token=class{constructor(s){this.token=s.token,this.startCursor=s.startCursor,this.endCursor=s.endCursor}static isTokenRowDelimiter(s){const l=s.token;return l===&quot;\r&quot;||l===`
`||l===`\r
`}static isTokenCarriageReturn(s,l){return s.token===l.carriageReturn}static isTokenComment(s,l){return l.supportsComments&amp;&amp;!!s&amp;&amp;s.token===l.comment}static isTokenEscapeCharacter(s,l){return s.token===l.escapeChar}static isTokenQuote(s,l){return s.token===l.quote}static isTokenDelimiter(s,l){return s.token===l.delimiter}}},{}],160:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.ColumnFormatter=void 0,o.ColumnFormatter=class{constructor(s){s.trim?this.format=l=&gt;l.trim():s.ltrim?this.format=l=&gt;l.trimLeft():s.rtrim?this.format=l=&gt;l.trimRight():this.format=l=&gt;l}}},{}],161:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.ColumnParser=void 0;const s=t(&quot;./NonQuotedColumnParser&quot;),l=t(&quot;./QuotedColumnParser&quot;),u=t(&quot;../Token&quot;);o.ColumnParser=class{constructor(c){this.parserOptions=c,this.quotedColumnParser=new l.QuotedColumnParser(c),this.nonQuotedColumnParser=new s.NonQuotedColumnParser(c)}parse(c){const{nextNonSpaceToken:a}=c;return a!==null&amp;&amp;u.Token.isTokenQuote(a,this.parserOptions)?(c.advanceToToken(a),this.quotedColumnParser.parse(c)):this.nonQuotedColumnParser.parse(c)}}},{&quot;../Token&quot;:159,&quot;./NonQuotedColumnParser&quot;:162,&quot;./QuotedColumnParser&quot;:163}],162:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.NonQuotedColumnParser=void 0;const s=t(&quot;./ColumnFormatter&quot;),l=t(&quot;../Token&quot;);o.NonQuotedColumnParser=class{constructor(u){this.parserOptions=u,this.columnFormatter=new s.ColumnFormatter(u)}parse(u){if(!u.hasMoreCharacters)return null;const{parserOptions:c}=this,a=[];let d=u.nextCharacterToken;for(;d&amp;&amp;!l.Token.isTokenDelimiter(d,c)&amp;&amp;!l.Token.isTokenRowDelimiter(d);d=u.nextCharacterToken)a.push(d.token),u.advancePastToken(d);return this.columnFormatter.format(a.join(&quot;&quot;))}}},{&quot;../Token&quot;:159,&quot;./ColumnFormatter&quot;:160}],163:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.QuotedColumnParser=void 0;const s=t(&quot;./ColumnFormatter&quot;),l=t(&quot;../Token&quot;);o.QuotedColumnParser=class{constructor(u){this.parserOptions=u,this.columnFormatter=new s.ColumnFormatter(u)}parse(u){if(!u.hasMoreCharacters)return null;const c=u.cursor,{foundClosingQuote:a,col:d}=this.gatherDataBetweenQuotes(u);if(!a){if(u.advanceTo(c),!u.hasMoreData)throw new Error(`Parse Error: missing closing: &#039;${this.parserOptions.quote||&quot;&quot;}&#039; in line: at &#039;${u.lineFromCursor.replace(/[\r\n]/g,&quot;\\n&#039;&quot;)}&#039;`);return null}return this.checkForMalformedColumn(u),d}gatherDataBetweenQuotes(u){const{parserOptions:c}=this;let a=!1,d=!1;const f=[];let h=u.nextCharacterToken;for(;!d&amp;&amp;h!==null;h=u.nextCharacterToken){const m=l.Token.isTokenQuote(h,c);if(!a&amp;&amp;m)a=!0;else if(a)if(l.Token.isTokenEscapeCharacter(h,c)){u.advancePastToken(h);const p=u.nextCharacterToken;p!==null&amp;&amp;(l.Token.isTokenQuote(p,c)||l.Token.isTokenEscapeCharacter(p,c))?(f.push(p.token),h=p):m?d=!0:f.push(h.token)}else m?d=!0:f.push(h.token);u.advancePastToken(h)}return{col:this.columnFormatter.format(f.join(&quot;&quot;)),foundClosingQuote:d}}checkForMalformedColumn(u){const{parserOptions:c}=this,{nextNonSpaceToken:a}=u;if(a){const d=l.Token.isTokenDelimiter(a,c),f=l.Token.isTokenRowDelimiter(a);if(!d&amp;&amp;!f){const h=u.lineFromCursor.substr(0,10).replace(/[\r\n]/g,&quot;\\n&#039;&quot;);throw new Error(`Parse Error: expected: &#039;${c.escapedDelimiter}&#039; OR new line got: &#039;${a.token}&#039;. at &#039;${h}`)}u.advanceToToken(a)}else u.hasMoreData||u.advancePastLine()}}},{&quot;../Token&quot;:159,&quot;./ColumnFormatter&quot;:160}],164:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.ColumnFormatter=o.QuotedColumnParser=o.NonQuotedColumnParser=o.ColumnParser=void 0;var s=t(&quot;./ColumnParser&quot;);Object.defineProperty(o,&quot;ColumnParser&quot;,{enumerable:!0,get:function(){return s.ColumnParser}});var l=t(&quot;./NonQuotedColumnParser&quot;);Object.defineProperty(o,&quot;NonQuotedColumnParser&quot;,{enumerable:!0,get:function(){return l.NonQuotedColumnParser}});var u=t(&quot;./QuotedColumnParser&quot;);Object.defineProperty(o,&quot;QuotedColumnParser&quot;,{enumerable:!0,get:function(){return u.QuotedColumnParser}});var c=t(&quot;./ColumnFormatter&quot;);Object.defineProperty(o,&quot;ColumnFormatter&quot;,{enumerable:!0,get:function(){return c.ColumnFormatter}})},{&quot;./ColumnFormatter&quot;:160,&quot;./ColumnParser&quot;:161,&quot;./NonQuotedColumnParser&quot;:162,&quot;./QuotedColumnParser&quot;:163}],165:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.QuotedColumnParser=o.NonQuotedColumnParser=o.ColumnParser=o.Token=o.Scanner=o.RowParser=o.Parser=void 0;var s=t(&quot;./Parser&quot;);Object.defineProperty(o,&quot;Parser&quot;,{enumerable:!0,get:function(){return s.Parser}});var l=t(&quot;./RowParser&quot;);Object.defineProperty(o,&quot;RowParser&quot;,{enumerable:!0,get:function(){return l.RowParser}});var u=t(&quot;./Scanner&quot;);Object.defineProperty(o,&quot;Scanner&quot;,{enumerable:!0,get:function(){return u.Scanner}});var c=t(&quot;./Token&quot;);Object.defineProperty(o,&quot;Token&quot;,{enumerable:!0,get:function(){return c.Token}});var a=t(&quot;./column&quot;);Object.defineProperty(o,&quot;ColumnParser&quot;,{enumerable:!0,get:function(){return a.ColumnParser}}),Object.defineProperty(o,&quot;NonQuotedColumnParser&quot;,{enumerable:!0,get:function(){return a.NonQuotedColumnParser}}),Object.defineProperty(o,&quot;QuotedColumnParser&quot;,{enumerable:!0,get:function(){return a.QuotedColumnParser}})},{&quot;./Parser&quot;:156,&quot;./RowParser&quot;:157,&quot;./Scanner&quot;:158,&quot;./Token&quot;:159,&quot;./column&quot;:164}],166:[function(t,n,o){var s=function(d){return d&amp;&amp;d.__esModule?d:{default:d}};Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.HeaderTransformer=void 0;const l=s(t(&quot;lodash.isundefined&quot;)),u=s(t(&quot;lodash.isfunction&quot;)),c=s(t(&quot;lodash.uniq&quot;)),a=s(t(&quot;lodash.groupby&quot;));o.HeaderTransformer=class{constructor(d){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=d,d.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(d.headers)?this.setHeaders(d.headers):u.default(d.headers)&amp;&amp;(this.headersTransform=d.headers)}transform(d,f){return this.shouldMapRow(d)?f(null,this.processRow(d)):f(null,{row:null,isValid:!0})}shouldMapRow(d){const{parserOptions:f}=this;if(!this.headersTransform&amp;&amp;f.renameHeaders&amp;&amp;!this.processedFirstRow){if(!this.receivedHeaders)throw new Error(&quot;Error renaming headers: new headers must be provided in an array&quot;);return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&amp;&amp;Array.isArray(d)){if(this.headersTransform)this.setHeaders(this.headersTransform(d));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(d)}return!1}return!0}processRow(d){if(!this.headers)return{row:d,isValid:!0};const{parserOptions:f}=this;if(!f.discardUnmappedColumns&amp;&amp;d.length&gt;this.headersLength){if(!f.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${d.length}`);return{row:d,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${d.length}`}}return f.strictColumnHandling&amp;&amp;d.length&lt;this.headersLength?{row:d,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${d.length}`}:{row:this.mapHeaders(d),isValid:!0}}mapHeaders(d){const f={},{headers:h,headersLength:m}=this;for(let p=0;p&lt;m;p+=1){const x=h[p];if(!l.default(x)){const g=d[p];l.default(g)?f[x]=&quot;&quot;:f[x]=g}}return f}setHeaders(d){var f;const h=d.filter(m=&gt;!!m);if(c.default(h).length!==h.length){const m=a.default(h),p=Object.keys(m).filter(x=&gt;m[x].length&gt;1);throw new Error(&quot;Duplicate headers found &quot;+JSON.stringify(p))}this.headers=d,this.receivedHeaders=!0,this.headersLength=((f=this.headers)===null||f===void 0?void 0:f.length)||0}}},{&quot;lodash.groupby&quot;:443,&quot;lodash.isfunction&quot;:446,&quot;lodash.isundefined&quot;:448,&quot;lodash.uniq&quot;:449}],167:[function(t,n,o){var s=function(a){return a&amp;&amp;a.__esModule?a:{default:a}};Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.RowTransformerValidator=void 0;const l=s(t(&quot;lodash.isfunction&quot;)),u=t(&quot;../types&quot;);class c{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(d){return u.isSyncTransform(d)?(f,h)=&gt;{let m=null;try{m=d(f)}catch(p){return h(p)}return h(null,m)}:d}static createValidator(d){return u.isSyncValidate(d)?(f,h)=&gt;{h(null,{row:f,isValid:d(f)})}:(f,h)=&gt;{d(f,(m,p,x)=&gt;m?h(m):h(null,p?{row:f,isValid:p,reason:x}:{row:f,isValid:!1,reason:x}))}}set rowTransform(d){if(!l.default(d))throw new TypeError(&quot;The transform should be a function&quot;);this._rowTransform=c.createTransform(d)}set rowValidator(d){if(!l.default(d))throw new TypeError(&quot;The validate should be a function&quot;);this._rowValidator=c.createValidator(d)}transformAndValidate(d,f){return this.callTransformer(d,(h,m)=&gt;h?f(h):m?this.callValidator(m,(p,x)=&gt;p?f(p):x&amp;&amp;!x.isValid?f(null,{row:m,isValid:!1,reason:x.reason}):f(null,{row:m,isValid:!0})):f(null,{row:null,isValid:!0}))}callTransformer(d,f){return this._rowTransform?this._rowTransform(d,f):f(null,d)}callValidator(d,f){return this._rowValidator?this._rowValidator(d,f):f(null,{row:d,isValid:!0})}}o.RowTransformerValidator=c},{&quot;../types&quot;:169,&quot;lodash.isfunction&quot;:446}],168:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.HeaderTransformer=o.RowTransformerValidator=void 0;var s=t(&quot;./RowTransformerValidator&quot;);Object.defineProperty(o,&quot;RowTransformerValidator&quot;,{enumerable:!0,get:function(){return s.RowTransformerValidator}});var l=t(&quot;./HeaderTransformer&quot;);Object.defineProperty(o,&quot;HeaderTransformer&quot;,{enumerable:!0,get:function(){return l.HeaderTransformer}})},{&quot;./HeaderTransformer&quot;:166,&quot;./RowTransformerValidator&quot;:167}],169:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.isSyncValidate=o.isSyncTransform=void 0,o.isSyncTransform=s=&gt;s.length===1,o.isSyncValidate=s=&gt;s.length===1},{}],170:[function(t,n,o){const s=o;s.bignum=t(&quot;bn.js&quot;),s.define=t(&quot;./asn1/api&quot;).define,s.base=t(&quot;./asn1/base&quot;),s.constants=t(&quot;./asn1/constants&quot;),s.decoders=t(&quot;./asn1/decoders&quot;),s.encoders=t(&quot;./asn1/encoders&quot;)},{&quot;./asn1/api&quot;:171,&quot;./asn1/base&quot;:173,&quot;./asn1/constants&quot;:177,&quot;./asn1/decoders&quot;:179,&quot;./asn1/encoders&quot;:182,&quot;bn.js&quot;:184}],171:[function(t,n,o){const s=t(&quot;./encoders&quot;),l=t(&quot;./decoders&quot;),u=t(&quot;inherits&quot;);function c(a,d){this.name=a,this.body=d,this.decoders={},this.encoders={}}o.define=function(a,d){return new c(a,d)},c.prototype._createNamed=function(a){const d=this.name;function f(h){this._initNamed(h,d)}return u(f,a),f.prototype._initNamed=function(h,m){a.call(this,h,m)},new f(this)},c.prototype._getDecoder=function(a){return a=a||&quot;der&quot;,this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(l[a])),this.decoders[a]},c.prototype.decode=function(a,d,f){return this._getDecoder(d).decode(a,f)},c.prototype._getEncoder=function(a){return a=a||&quot;der&quot;,this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(s[a])),this.encoders[a]},c.prototype.encode=function(a,d,f){return this._getEncoder(d).encode(a,f)}},{&quot;./decoders&quot;:179,&quot;./encoders&quot;:182,inherits:440}],172:[function(t,n,o){const s=t(&quot;inherits&quot;),l=t(&quot;../base/reporter&quot;).Reporter,u=t(&quot;safer-buffer&quot;).Buffer;function c(d,f){l.call(this,f),u.isBuffer(d)?(this.base=d,this.offset=0,this.length=d.length):this.error(&quot;Input not Buffer&quot;)}function a(d,f){if(Array.isArray(d))this.length=0,this.value=d.map((function(h){return a.isEncoderBuffer(h)||(h=new a(h,f)),this.length+=h.length,h}),this);else if(typeof d==&quot;number&quot;){if(!(0&lt;=d&amp;&amp;d&lt;=255))return f.error(&quot;non-byte EncoderBuffer value&quot;);this.value=d,this.length=1}else if(typeof d==&quot;string&quot;)this.value=d,this.length=u.byteLength(d);else{if(!u.isBuffer(d))return f.error(&quot;Unsupported type: &quot;+typeof d);this.value=d,this.length=d.length}}s(c,l),o.DecoderBuffer=c,c.isDecoderBuffer=function(d){return d instanceof c?!0:typeof d==&quot;object&quot;&amp;&amp;u.isBuffer(d.base)&amp;&amp;d.constructor.name===&quot;DecoderBuffer&quot;&amp;&amp;typeof d.offset==&quot;number&quot;&amp;&amp;typeof d.length==&quot;number&quot;&amp;&amp;typeof d.save==&quot;function&quot;&amp;&amp;typeof d.restore==&quot;function&quot;&amp;&amp;typeof d.isEmpty==&quot;function&quot;&amp;&amp;typeof d.readUInt8==&quot;function&quot;&amp;&amp;typeof d.skip==&quot;function&quot;&amp;&amp;typeof d.raw==&quot;function&quot;},c.prototype.save=function(){return{offset:this.offset,reporter:l.prototype.save.call(this)}},c.prototype.restore=function(d){const f=new c(this.base);return f.offset=d.offset,f.length=this.offset,this.offset=d.offset,l.prototype.restore.call(this,d.reporter),f},c.prototype.isEmpty=function(){return this.offset===this.length},c.prototype.readUInt8=function(d){return this.offset+1&lt;=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||&quot;DecoderBuffer overrun&quot;)},c.prototype.skip=function(d,f){if(!(this.offset+d&lt;=this.length))return this.error(f||&quot;DecoderBuffer overrun&quot;);const h=new c(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+d,this.offset+=d,h},c.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},o.EncoderBuffer=a,a.isEncoderBuffer=function(d){return d instanceof a?!0:typeof d==&quot;object&quot;&amp;&amp;d.constructor.name===&quot;EncoderBuffer&quot;&amp;&amp;typeof d.length==&quot;number&quot;&amp;&amp;typeof d.join==&quot;function&quot;},a.prototype.join=function(d,f){return d||(d=u.alloc(this.length)),f||(f=0),this.length===0||(Array.isArray(this.value)?this.value.forEach((function(h){h.join(d,f),f+=h.length})):(typeof this.value==&quot;number&quot;?d[f]=this.value:typeof this.value==&quot;string&quot;?d.write(this.value,f):u.isBuffer(this.value)&amp;&amp;this.value.copy(d,f),f+=this.length)),d}},{&quot;../base/reporter&quot;:175,inherits:440,&quot;safer-buffer&quot;:495}],173:[function(t,n,o){const s=o;s.Reporter=t(&quot;./reporter&quot;).Reporter,s.DecoderBuffer=t(&quot;./buffer&quot;).DecoderBuffer,s.EncoderBuffer=t(&quot;./buffer&quot;).EncoderBuffer,s.Node=t(&quot;./node&quot;)},{&quot;./buffer&quot;:172,&quot;./node&quot;:174,&quot;./reporter&quot;:175}],174:[function(t,n,o){const s=t(&quot;../base/reporter&quot;).Reporter,l=t(&quot;../base/buffer&quot;).EncoderBuffer,u=t(&quot;../base/buffer&quot;).DecoderBuffer,c=t(&quot;minimalistic-assert&quot;),a=[&quot;seq&quot;,&quot;seqof&quot;,&quot;set&quot;,&quot;setof&quot;,&quot;objid&quot;,&quot;bool&quot;,&quot;gentime&quot;,&quot;utctime&quot;,&quot;null_&quot;,&quot;enum&quot;,&quot;int&quot;,&quot;objDesc&quot;,&quot;bitstr&quot;,&quot;bmpstr&quot;,&quot;charstr&quot;,&quot;genstr&quot;,&quot;graphstr&quot;,&quot;ia5str&quot;,&quot;iso646str&quot;,&quot;numstr&quot;,&quot;octstr&quot;,&quot;printstr&quot;,&quot;t61str&quot;,&quot;unistr&quot;,&quot;utf8str&quot;,&quot;videostr&quot;],d=[&quot;key&quot;,&quot;obj&quot;,&quot;use&quot;,&quot;optional&quot;,&quot;explicit&quot;,&quot;implicit&quot;,&quot;def&quot;,&quot;choice&quot;,&quot;any&quot;,&quot;contains&quot;].concat(a);function f(m,p,x){const g={};this._baseState=g,g.name=x,g.enc=m,g.parent=p||null,g.children=null,g.tag=null,g.args=null,g.reverseArgs=null,g.choice=null,g.optional=!1,g.any=!1,g.obj=!1,g.use=null,g.useDecoder=null,g.key=null,g.default=null,g.explicit=null,g.implicit=null,g.contains=null,g.parent||(g.children=[],this._wrap())}n.exports=f;const h=[&quot;enc&quot;,&quot;parent&quot;,&quot;children&quot;,&quot;tag&quot;,&quot;args&quot;,&quot;reverseArgs&quot;,&quot;choice&quot;,&quot;optional&quot;,&quot;any&quot;,&quot;obj&quot;,&quot;use&quot;,&quot;alteredUse&quot;,&quot;key&quot;,&quot;default&quot;,&quot;explicit&quot;,&quot;implicit&quot;,&quot;contains&quot;];f.prototype.clone=function(){const m=this._baseState,p={};h.forEach((function(g){p[g]=m[g]}));const x=new this.constructor(p.parent);return x._baseState=p,x},f.prototype._wrap=function(){const m=this._baseState;d.forEach((function(p){this[p]=function(){const x=new this.constructor(this);return m.children.push(x),x[p].apply(x,arguments)}}),this)},f.prototype._init=function(m){const p=this._baseState;c(p.parent===null),m.call(this),p.children=p.children.filter((function(x){return x._baseState.parent===this}),this),c.equal(p.children.length,1,&quot;Root node can have only one child&quot;)},f.prototype._useArgs=function(m){const p=this._baseState,x=m.filter((function(g){return g instanceof this.constructor}),this);m=m.filter((function(g){return!(g instanceof this.constructor)}),this),x.length!==0&amp;&amp;(c(p.children===null),p.children=x,x.forEach((function(g){g._baseState.parent=this}),this)),m.length!==0&amp;&amp;(c(p.args===null),p.args=m,p.reverseArgs=m.map((function(g){if(typeof g!=&quot;object&quot;||g.constructor!==Object)return g;const y={};return Object.keys(g).forEach((function(v){v==(0|v)&amp;&amp;(v|=0);const _=g[v];y[_]=v})),y})))},[&quot;_peekTag&quot;,&quot;_decodeTag&quot;,&quot;_use&quot;,&quot;_decodeStr&quot;,&quot;_decodeObjid&quot;,&quot;_decodeTime&quot;,&quot;_decodeNull&quot;,&quot;_decodeInt&quot;,&quot;_decodeBool&quot;,&quot;_decodeList&quot;,&quot;_encodeComposite&quot;,&quot;_encodeStr&quot;,&quot;_encodeObjid&quot;,&quot;_encodeTime&quot;,&quot;_encodeNull&quot;,&quot;_encodeInt&quot;,&quot;_encodeBool&quot;].forEach((function(m){f.prototype[m]=function(){const p=this._baseState;throw new Error(m+&quot; not implemented for encoding: &quot;+p.enc)}})),a.forEach((function(m){f.prototype[m]=function(){const p=this._baseState,x=Array.prototype.slice.call(arguments);return c(p.tag===null),p.tag=m,this._useArgs(x),this}})),f.prototype.use=function(m){c(m);const p=this._baseState;return c(p.use===null),p.use=m,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(m){const p=this._baseState;return c(p.default===null),p.default=m,p.optional=!0,this},f.prototype.explicit=function(m){const p=this._baseState;return c(p.explicit===null&amp;&amp;p.implicit===null),p.explicit=m,this},f.prototype.implicit=function(m){const p=this._baseState;return c(p.explicit===null&amp;&amp;p.implicit===null),p.implicit=m,this},f.prototype.obj=function(){const m=this._baseState,p=Array.prototype.slice.call(arguments);return m.obj=!0,p.length!==0&amp;&amp;this._useArgs(p),this},f.prototype.key=function(m){const p=this._baseState;return c(p.key===null),p.key=m,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(m){const p=this._baseState;return c(p.choice===null),p.choice=m,this._useArgs(Object.keys(m).map((function(x){return m[x]}))),this},f.prototype.contains=function(m){const p=this._baseState;return c(p.use===null),p.contains=m,this},f.prototype._decode=function(m,p){const x=this._baseState;if(x.parent===null)return m.wrapResult(x.children[0]._decode(m,p));let g,y=x.default,v=!0,_=null;if(x.key!==null&amp;&amp;(_=m.enterKey(x.key)),x.optional){let S=null;if(x.explicit!==null?S=x.explicit:x.implicit!==null?S=x.implicit:x.tag!==null&amp;&amp;(S=x.tag),S!==null||x.any){if(v=this._peekTag(m,S,x.any),m.isError(v))return v}else{const A=m.save();try{x.choice===null?this._decodeGeneric(x.tag,m,p):this._decodeChoice(m,p),v=!0}catch{v=!1}m.restore(A)}}if(x.obj&amp;&amp;v&amp;&amp;(g=m.enterObject()),v){if(x.explicit!==null){const A=this._decodeTag(m,x.explicit);if(m.isError(A))return A;m=A}const S=m.offset;if(x.use===null&amp;&amp;x.choice===null){let A;x.any&amp;&amp;(A=m.save());const I=this._decodeTag(m,x.implicit!==null?x.implicit:x.tag,x.any);if(m.isError(I))return I;x.any?y=m.raw(A):m=I}if(p&amp;&amp;p.track&amp;&amp;x.tag!==null&amp;&amp;p.track(m.path(),S,m.length,&quot;tagged&quot;),p&amp;&amp;p.track&amp;&amp;x.tag!==null&amp;&amp;p.track(m.path(),m.offset,m.length,&quot;content&quot;),x.any||(y=x.choice===null?this._decodeGeneric(x.tag,m,p):this._decodeChoice(m,p)),m.isError(y))return y;if(x.any||x.choice!==null||x.children===null||x.children.forEach((function(A){A._decode(m,p)})),x.contains&amp;&amp;(x.tag===&quot;octstr&quot;||x.tag===&quot;bitstr&quot;)){const A=new u(y);y=this._getUse(x.contains,m._reporterState.obj)._decode(A,p)}}return x.obj&amp;&amp;v&amp;&amp;(y=m.leaveObject(g)),x.key===null||y===null&amp;&amp;v!==!0?_!==null&amp;&amp;m.exitKey(_):m.leaveKey(_,x.key,y),y},f.prototype._decodeGeneric=function(m,p,x){const g=this._baseState;return m===&quot;seq&quot;||m===&quot;set&quot;?null:m===&quot;seqof&quot;||m===&quot;setof&quot;?this._decodeList(p,m,g.args[0],x):/str$/.test(m)?this._decodeStr(p,m,x):m===&quot;objid&quot;&amp;&amp;g.args?this._decodeObjid(p,g.args[0],g.args[1],x):m===&quot;objid&quot;?this._decodeObjid(p,null,null,x):m===&quot;gentime&quot;||m===&quot;utctime&quot;?this._decodeTime(p,m,x):m===&quot;null_&quot;?this._decodeNull(p,x):m===&quot;bool&quot;?this._decodeBool(p,x):m===&quot;objDesc&quot;?this._decodeStr(p,m,x):m===&quot;int&quot;||m===&quot;enum&quot;?this._decodeInt(p,g.args&amp;&amp;g.args[0],x):g.use!==null?this._getUse(g.use,p._reporterState.obj)._decode(p,x):p.error(&quot;unknown tag: &quot;+m)},f.prototype._getUse=function(m,p){const x=this._baseState;return x.useDecoder=this._use(m,p),c(x.useDecoder._baseState.parent===null),x.useDecoder=x.useDecoder._baseState.children[0],x.implicit!==x.useDecoder._baseState.implicit&amp;&amp;(x.useDecoder=x.useDecoder.clone(),x.useDecoder._baseState.implicit=x.implicit),x.useDecoder},f.prototype._decodeChoice=function(m,p){const x=this._baseState;let g=null,y=!1;return Object.keys(x.choice).some((function(v){const _=m.save(),S=x.choice[v];try{const A=S._decode(m,p);if(m.isError(A))return!1;g={type:v,value:A},y=!0}catch{return m.restore(_),!1}return!0}),this),y?g:m.error(&quot;Choice not matched&quot;)},f.prototype._createEncoderBuffer=function(m){return new l(m,this.reporter)},f.prototype._encode=function(m,p,x){const g=this._baseState;if(g.default!==null&amp;&amp;g.default===m)return;const y=this._encodeValue(m,p,x);return y===void 0||this._skipDefault(y,p,x)?void 0:y},f.prototype._encodeValue=function(m,p,x){const g=this._baseState;if(g.parent===null)return g.children[0]._encode(m,p||new s);let y=null;if(this.reporter=p,g.optional&amp;&amp;m===void 0){if(g.default===null)return;m=g.default}let v=null,_=!1;if(g.any)y=this._createEncoderBuffer(m);else if(g.choice)y=this._encodeChoice(m,p);else if(g.contains)v=this._getUse(g.contains,x)._encode(m,p),_=!0;else if(g.children)v=g.children.map((function(S){if(S._baseState.tag===&quot;null_&quot;)return S._encode(null,p,m);if(S._baseState.key===null)return p.error(&quot;Child should have a key&quot;);const A=p.enterKey(S._baseState.key);if(typeof m!=&quot;object&quot;)return p.error(&quot;Child expected, but input is not object&quot;);const I=S._encode(m[S._baseState.key],p,m);return p.leaveKey(A),I}),this).filter((function(S){return S})),v=this._createEncoderBuffer(v);else if(g.tag===&quot;seqof&quot;||g.tag===&quot;setof&quot;){if(!g.args||g.args.length!==1)return p.error(&quot;Too many args for : &quot;+g.tag);if(!Array.isArray(m))return p.error(&quot;seqof/setof, but data is not Array&quot;);const S=this.clone();S._baseState.implicit=null,v=this._createEncoderBuffer(m.map((function(A){const I=this._baseState;return this._getUse(I.args[0],m)._encode(A,p)}),S))}else g.use!==null?y=this._getUse(g.use,x)._encode(m,p):(v=this._encodePrimitive(g.tag,m),_=!0);if(!g.any&amp;&amp;g.choice===null){const S=g.implicit!==null?g.implicit:g.tag,A=g.implicit===null?&quot;universal&quot;:&quot;context&quot;;S===null?g.use===null&amp;&amp;p.error(&quot;Tag could be omitted only for .use()&quot;):g.use===null&amp;&amp;(y=this._encodeComposite(S,_,A,v))}return g.explicit!==null&amp;&amp;(y=this._encodeComposite(g.explicit,!1,&quot;context&quot;,y)),y},f.prototype._encodeChoice=function(m,p){const x=this._baseState,g=x.choice[m.type];return g||c(!1,m.type+&quot; not found in &quot;+JSON.stringify(Object.keys(x.choice))),g._encode(m.value,p)},f.prototype._encodePrimitive=function(m,p){const x=this._baseState;if(/str$/.test(m))return this._encodeStr(p,m);if(m===&quot;objid&quot;&amp;&amp;x.args)return this._encodeObjid(p,x.reverseArgs[0],x.args[1]);if(m===&quot;objid&quot;)return this._encodeObjid(p,null,null);if(m===&quot;gentime&quot;||m===&quot;utctime&quot;)return this._encodeTime(p,m);if(m===&quot;null_&quot;)return this._encodeNull();if(m===&quot;int&quot;||m===&quot;enum&quot;)return this._encodeInt(p,x.args&amp;&amp;x.reverseArgs[0]);if(m===&quot;bool&quot;)return this._encodeBool(p);if(m===&quot;objDesc&quot;)return this._encodeStr(p,m);throw new Error(&quot;Unsupported tag: &quot;+m)},f.prototype._isNumstr=function(m){return/^[0-9 ]*$/.test(m)},f.prototype._isPrintstr=function(m){return/^[A-Za-z0-9 &#039;()+,-./:=?]*$/.test(m)}},{&quot;../base/buffer&quot;:172,&quot;../base/reporter&quot;:175,&quot;minimalistic-assert&quot;:453}],175:[function(t,n,o){const s=t(&quot;inherits&quot;);function l(c){this._reporterState={obj:null,path:[],options:c||{},errors:[]}}function u(c,a){this.path=c,this.rethrow(a)}o.Reporter=l,l.prototype.isError=function(c){return c instanceof u},l.prototype.save=function(){const c=this._reporterState;return{obj:c.obj,pathLen:c.path.length}},l.prototype.restore=function(c){const a=this._reporterState;a.obj=c.obj,a.path=a.path.slice(0,c.pathLen)},l.prototype.enterKey=function(c){return this._reporterState.path.push(c)},l.prototype.exitKey=function(c){const a=this._reporterState;a.path=a.path.slice(0,c-1)},l.prototype.leaveKey=function(c,a,d){const f=this._reporterState;this.exitKey(c),f.obj!==null&amp;&amp;(f.obj[a]=d)},l.prototype.path=function(){return this._reporterState.path.join(&quot;/&quot;)},l.prototype.enterObject=function(){const c=this._reporterState,a=c.obj;return c.obj={},a},l.prototype.leaveObject=function(c){const a=this._reporterState,d=a.obj;return a.obj=c,d},l.prototype.error=function(c){let a;const d=this._reporterState,f=c instanceof u;if(a=f?c:new u(d.path.map((function(h){return&quot;[&quot;+JSON.stringify(h)+&quot;]&quot;})).join(&quot;&quot;),c.message||c,c.stack),!d.options.partial)throw a;return f||d.errors.push(a),a},l.prototype.wrapResult=function(c){const a=this._reporterState;return a.options.partial?{result:this.isError(c)?null:c,errors:a.errors}:c},s(u,Error),u.prototype.rethrow=function(c){if(this.message=c+&quot; at: &quot;+(this.path||&quot;(shallow)&quot;),Error.captureStackTrace&amp;&amp;Error.captureStackTrace(this,u),!this.stack)try{throw new Error(this.message)}catch(a){this.stack=a.stack}return this}},{inherits:440}],176:[function(t,n,o){function s(l){const u={};return Object.keys(l).forEach((function(c){(0|c)==c&amp;&amp;(c|=0);const a=l[c];u[a]=c})),u}o.tagClass={0:&quot;universal&quot;,1:&quot;application&quot;,2:&quot;context&quot;,3:&quot;private&quot;},o.tagClassByName=s(o.tagClass),o.tag={0:&quot;end&quot;,1:&quot;bool&quot;,2:&quot;int&quot;,3:&quot;bitstr&quot;,4:&quot;octstr&quot;,5:&quot;null_&quot;,6:&quot;objid&quot;,7:&quot;objDesc&quot;,8:&quot;external&quot;,9:&quot;real&quot;,10:&quot;enum&quot;,11:&quot;embed&quot;,12:&quot;utf8str&quot;,13:&quot;relativeOid&quot;,16:&quot;seq&quot;,17:&quot;set&quot;,18:&quot;numstr&quot;,19:&quot;printstr&quot;,20:&quot;t61str&quot;,21:&quot;videostr&quot;,22:&quot;ia5str&quot;,23:&quot;utctime&quot;,24:&quot;gentime&quot;,25:&quot;graphstr&quot;,26:&quot;iso646str&quot;,27:&quot;genstr&quot;,28:&quot;unistr&quot;,29:&quot;charstr&quot;,30:&quot;bmpstr&quot;},o.tagByName=s(o.tag)},{}],177:[function(t,n,o){const s=o;s._reverse=function(l){const u={};return Object.keys(l).forEach((function(c){(0|c)==c&amp;&amp;(c|=0);const a=l[c];u[a]=c})),u},s.der=t(&quot;./der&quot;)},{&quot;./der&quot;:176}],178:[function(t,n,o){const s=t(&quot;inherits&quot;),l=t(&quot;bn.js&quot;),u=t(&quot;../base/buffer&quot;).DecoderBuffer,c=t(&quot;../base/node&quot;),a=t(&quot;../constants/der&quot;);function d(p){this.enc=&quot;der&quot;,this.name=p.name,this.entity=p,this.tree=new f,this.tree._init(p.body)}function f(p){c.call(this,&quot;der&quot;,p)}function h(p,x){let g=p.readUInt8(x);if(p.isError(g))return g;const y=a.tagClass[g&gt;&gt;6],v=(32&amp;g)==0;if((31&amp;g)==31){let _=g;for(g=0;(128&amp;_)==128;){if(_=p.readUInt8(x),p.isError(_))return _;g&lt;&lt;=7,g|=127&amp;_}}else g&amp;=31;return{cls:y,primitive:v,tag:g,tagStr:a.tag[g]}}function m(p,x,g){let y=p.readUInt8(g);if(p.isError(y))return y;if(!x&amp;&amp;y===128)return null;if((128&amp;y)==0)return y;const v=127&amp;y;if(v&gt;4)return p.error(&quot;length octect is too long&quot;);y=0;for(let _=0;_&lt;v;_++){y&lt;&lt;=8;const S=p.readUInt8(g);if(p.isError(S))return S;y|=S}return y}n.exports=d,d.prototype.decode=function(p,x){return u.isDecoderBuffer(p)||(p=new u(p,x)),this.tree._decode(p,x)},s(f,c),f.prototype._peekTag=function(p,x,g){if(p.isEmpty())return!1;const y=p.save(),v=h(p,&#039;Failed to peek tag: &quot;&#039;+x+&#039;&quot;&#039;);return p.isError(v)?v:(p.restore(y),v.tag===x||v.tagStr===x||v.tagStr+&quot;of&quot;===x||g)},f.prototype._decodeTag=function(p,x,g){const y=h(p,&#039;Failed to decode tag of &quot;&#039;+x+&#039;&quot;&#039;);if(p.isError(y))return y;let v=m(p,y.primitive,&#039;Failed to get length of &quot;&#039;+x+&#039;&quot;&#039;);if(p.isError(v))return v;if(!g&amp;&amp;y.tag!==x&amp;&amp;y.tagStr!==x&amp;&amp;y.tagStr+&quot;of&quot;!==x)return p.error(&#039;Failed to match tag: &quot;&#039;+x+&#039;&quot;&#039;);if(y.primitive||v!==null)return p.skip(v,&#039;Failed to match body of: &quot;&#039;+x+&#039;&quot;&#039;);const _=p.save(),S=this._skipUntilEnd(p,&#039;Failed to skip indefinite length body: &quot;&#039;+this.tag+&#039;&quot;&#039;);return p.isError(S)?S:(v=p.offset-_.offset,p.restore(_),p.skip(v,&#039;Failed to match body of: &quot;&#039;+x+&#039;&quot;&#039;))},f.prototype._skipUntilEnd=function(p,x){for(;;){const g=h(p,x);if(p.isError(g))return g;const y=m(p,g.primitive,x);if(p.isError(y))return y;let v;if(v=g.primitive||y!==null?p.skip(y):this._skipUntilEnd(p,x),p.isError(v))return v;if(g.tagStr===&quot;end&quot;)break}},f.prototype._decodeList=function(p,x,g,y){const v=[];for(;!p.isEmpty();){const _=this._peekTag(p,&quot;end&quot;);if(p.isError(_))return _;const S=g.decode(p,&quot;der&quot;,y);if(p.isError(S)&amp;&amp;_)break;v.push(S)}return v},f.prototype._decodeStr=function(p,x){if(x===&quot;bitstr&quot;){const g=p.readUInt8();return p.isError(g)?g:{unused:g,data:p.raw()}}if(x===&quot;bmpstr&quot;){const g=p.raw();if(g.length%2==1)return p.error(&quot;Decoding of string type: bmpstr length mismatch&quot;);let y=&quot;&quot;;for(let v=0;v&lt;g.length/2;v++)y+=String.fromCharCode(g.readUInt16BE(2*v));return y}if(x===&quot;numstr&quot;){const g=p.raw().toString(&quot;ascii&quot;);return this._isNumstr(g)?g:p.error(&quot;Decoding of string type: numstr unsupported characters&quot;)}if(x===&quot;octstr&quot;||x===&quot;objDesc&quot;)return p.raw();if(x===&quot;printstr&quot;){const g=p.raw().toString(&quot;ascii&quot;);return this._isPrintstr(g)?g:p.error(&quot;Decoding of string type: printstr unsupported characters&quot;)}return/str$/.test(x)?p.raw().toString():p.error(&quot;Decoding of string type: &quot;+x+&quot; unsupported&quot;)},f.prototype._decodeObjid=function(p,x,g){let y;const v=[];let _=0,S=0;for(;!p.isEmpty();)S=p.readUInt8(),_&lt;&lt;=7,_|=127&amp;S,(128&amp;S)==0&amp;&amp;(v.push(_),_=0);128&amp;S&amp;&amp;v.push(_);const A=v[0]/40|0,I=v[0]%40;if(y=g?v:[A,I].concat(v.slice(1)),x){let V=x[y.join(&quot; &quot;)];V===void 0&amp;&amp;(V=x[y.join(&quot;.&quot;)]),V!==void 0&amp;&amp;(y=V)}return y},f.prototype._decodeTime=function(p,x){const g=p.raw().toString();let y,v,_,S,A,I;if(x===&quot;gentime&quot;)y=0|g.slice(0,4),v=0|g.slice(4,6),_=0|g.slice(6,8),S=0|g.slice(8,10),A=0|g.slice(10,12),I=0|g.slice(12,14);else{if(x!==&quot;utctime&quot;)return p.error(&quot;Decoding &quot;+x+&quot; time is not supported yet&quot;);y=0|g.slice(0,2),v=0|g.slice(2,4),_=0|g.slice(4,6),S=0|g.slice(6,8),A=0|g.slice(8,10),I=0|g.slice(10,12),y=y&lt;70?2e3+y:1900+y}return Date.UTC(y,v-1,_,S,A,I,0)},f.prototype._decodeNull=function(){return null},f.prototype._decodeBool=function(p){const x=p.readUInt8();return p.isError(x)?x:x!==0},f.prototype._decodeInt=function(p,x){const g=p.raw();let y=new l(g);return x&amp;&amp;(y=x[y.toString(10)]||y),y},f.prototype._use=function(p,x){return typeof p==&quot;function&quot;&amp;&amp;(p=p(x)),p._getDecoder(&quot;der&quot;).tree}},{&quot;../base/buffer&quot;:172,&quot;../base/node&quot;:174,&quot;../constants/der&quot;:176,&quot;bn.js&quot;:184,inherits:440}],179:[function(t,n,o){const s=o;s.der=t(&quot;./der&quot;),s.pem=t(&quot;./pem&quot;)},{&quot;./der&quot;:178,&quot;./pem&quot;:180}],180:[function(t,n,o){const s=t(&quot;inherits&quot;),l=t(&quot;safer-buffer&quot;).Buffer,u=t(&quot;./der&quot;);function c(a){u.call(this,a),this.enc=&quot;pem&quot;}s(c,u),n.exports=c,c.prototype.decode=function(a,d){const f=a.toString().split(/[\r\n]+/g),h=d.label.toUpperCase(),m=/^-----(BEGIN|END) ([^-]+)-----$/;let p=-1,x=-1;for(let v=0;v&lt;f.length;v++){const _=f[v].match(m);if(_!==null&amp;&amp;_[2]===h){if(p!==-1){if(_[1]!==&quot;END&quot;)break;x=v;break}if(_[1]!==&quot;BEGIN&quot;)break;p=v}}if(p===-1||x===-1)throw new Error(&quot;PEM section not found for: &quot;+h);const g=f.slice(p+1,x).join(&quot;&quot;);g.replace(/[^a-z0-9+/=]+/gi,&quot;&quot;);const y=l.from(g,&quot;base64&quot;);return u.prototype.decode.call(this,y,d)}},{&quot;./der&quot;:178,inherits:440,&quot;safer-buffer&quot;:495}],181:[function(t,n,o){const s=t(&quot;inherits&quot;),l=t(&quot;safer-buffer&quot;).Buffer,u=t(&quot;../base/node&quot;),c=t(&quot;../constants/der&quot;);function a(h){this.enc=&quot;der&quot;,this.name=h.name,this.entity=h,this.tree=new d,this.tree._init(h.body)}function d(h){u.call(this,&quot;der&quot;,h)}function f(h){return h&lt;10?&quot;0&quot;+h:h}n.exports=a,a.prototype.encode=function(h,m){return this.tree._encode(h,m).join()},s(d,u),d.prototype._encodeComposite=function(h,m,p,x){const g=(function(_,S,A,I){let V;if(_===&quot;seqof&quot;?_=&quot;seq&quot;:_===&quot;setof&quot;&amp;&amp;(_=&quot;set&quot;),c.tagByName.hasOwnProperty(_))V=c.tagByName[_];else{if(typeof _!=&quot;number&quot;||(0|_)!==_)return I.error(&quot;Unknown tag: &quot;+_);V=_}return V&gt;=31?I.error(&quot;Multi-octet tag encoding unsupported&quot;):(S||(V|=32),V|=c.tagClassByName[A||&quot;universal&quot;]&lt;&lt;6,V)})(h,m,p,this.reporter);if(x.length&lt;128){const _=l.alloc(2);return _[0]=g,_[1]=x.length,this._createEncoderBuffer([_,x])}let y=1;for(let _=x.length;_&gt;=256;_&gt;&gt;=8)y++;const v=l.alloc(2+y);v[0]=g,v[1]=128|y;for(let _=1+y,S=x.length;S&gt;0;_--,S&gt;&gt;=8)v[_]=255&amp;S;return this._createEncoderBuffer([v,x])},d.prototype._encodeStr=function(h,m){if(m===&quot;bitstr&quot;)return this._createEncoderBuffer([0|h.unused,h.data]);if(m===&quot;bmpstr&quot;){const p=l.alloc(2*h.length);for(let x=0;x&lt;h.length;x++)p.writeUInt16BE(h.charCodeAt(x),2*x);return this._createEncoderBuffer(p)}return m===&quot;numstr&quot;?this._isNumstr(h)?this._createEncoderBuffer(h):this.reporter.error(&quot;Encoding of string type: numstr supports only digits and space&quot;):m===&quot;printstr&quot;?this._isPrintstr(h)?this._createEncoderBuffer(h):this.reporter.error(&quot;Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark&quot;):/str$/.test(m)||m===&quot;objDesc&quot;?this._createEncoderBuffer(h):this.reporter.error(&quot;Encoding of string type: &quot;+m+&quot; unsupported&quot;)},d.prototype._encodeObjid=function(h,m,p){if(typeof h==&quot;string&quot;){if(!m)return this.reporter.error(&quot;string objid given, but no values map found&quot;);if(!m.hasOwnProperty(h))return this.reporter.error(&quot;objid not found in values map&quot;);h=m[h].split(/[\s.]+/g);for(let v=0;v&lt;h.length;v++)h[v]|=0}else if(Array.isArray(h)){h=h.slice();for(let v=0;v&lt;h.length;v++)h[v]|=0}if(!Array.isArray(h))return this.reporter.error(&quot;objid() should be either array or string, got: &quot;+JSON.stringify(h));if(!p){if(h[1]&gt;=40)return this.reporter.error(&quot;Second objid identifier OOB&quot;);h.splice(0,2,40*h[0]+h[1])}let x=0;for(let v=0;v&lt;h.length;v++){let _=h[v];for(x++;_&gt;=128;_&gt;&gt;=7)x++}const g=l.alloc(x);let y=g.length-1;for(let v=h.length-1;v&gt;=0;v--){let _=h[v];for(g[y--]=127&amp;_;(_&gt;&gt;=7)&gt;0;)g[y--]=128|127&amp;_}return this._createEncoderBuffer(g)},d.prototype._encodeTime=function(h,m){let p;const x=new Date(h);return m===&quot;gentime&quot;?p=[f(x.getUTCFullYear()),f(x.getUTCMonth()+1),f(x.getUTCDate()),f(x.getUTCHours()),f(x.getUTCMinutes()),f(x.getUTCSeconds()),&quot;Z&quot;].join(&quot;&quot;):m===&quot;utctime&quot;?p=[f(x.getUTCFullYear()%100),f(x.getUTCMonth()+1),f(x.getUTCDate()),f(x.getUTCHours()),f(x.getUTCMinutes()),f(x.getUTCSeconds()),&quot;Z&quot;].join(&quot;&quot;):this.reporter.error(&quot;Encoding &quot;+m+&quot; time is not supported yet&quot;),this._encodeStr(p,&quot;octstr&quot;)},d.prototype._encodeNull=function(){return this._createEncoderBuffer(&quot;&quot;)},d.prototype._encodeInt=function(h,m){if(typeof h==&quot;string&quot;){if(!m)return this.reporter.error(&quot;String int or enum given, but no values map&quot;);if(!m.hasOwnProperty(h))return this.reporter.error(&quot;Values map doesn&#039;t contain: &quot;+JSON.stringify(h));h=m[h]}if(typeof h!=&quot;number&quot;&amp;&amp;!l.isBuffer(h)){const g=h.toArray();!h.sign&amp;&amp;128&amp;g[0]&amp;&amp;g.unshift(0),h=l.from(g)}if(l.isBuffer(h)){let g=h.length;h.length===0&amp;&amp;g++;const y=l.alloc(g);return h.copy(y),h.length===0&amp;&amp;(y[0]=0),this._createEncoderBuffer(y)}if(h&lt;128)return this._createEncoderBuffer(h);if(h&lt;256)return this._createEncoderBuffer([0,h]);let p=1;for(let g=h;g&gt;=256;g&gt;&gt;=8)p++;const x=new Array(p);for(let g=x.length-1;g&gt;=0;g--)x[g]=255&amp;h,h&gt;&gt;=8;return 128&amp;x[0]&amp;&amp;x.unshift(0),this._createEncoderBuffer(l.from(x))},d.prototype._encodeBool=function(h){return this._createEncoderBuffer(h?255:0)},d.prototype._use=function(h,m){return typeof h==&quot;function&quot;&amp;&amp;(h=h(m)),h._getEncoder(&quot;der&quot;).tree},d.prototype._skipDefault=function(h,m,p){const x=this._baseState;let g;if(x.default===null)return!1;const y=h.join();if(x.defaultBuffer===void 0&amp;&amp;(x.defaultBuffer=this._encodeValue(x.default,m,p).join()),y.length!==x.defaultBuffer.length)return!1;for(g=0;g&lt;y.length;g++)if(y[g]!==x.defaultBuffer[g])return!1;return!0}},{&quot;../base/node&quot;:174,&quot;../constants/der&quot;:176,inherits:440,&quot;safer-buffer&quot;:495}],182:[function(t,n,o){const s=o;s.der=t(&quot;./der&quot;),s.pem=t(&quot;./pem&quot;)},{&quot;./der&quot;:181,&quot;./pem&quot;:183}],183:[function(t,n,o){const s=t(&quot;inherits&quot;),l=t(&quot;./der&quot;);function u(c){l.call(this,c),this.enc=&quot;pem&quot;}s(u,l),n.exports=u,u.prototype.encode=function(c,a){const d=l.prototype.encode.call(this,c).toString(&quot;base64&quot;),f=[&quot;-----BEGIN &quot;+a.label+&quot;-----&quot;];for(let h=0;h&lt;d.length;h+=64)f.push(d.slice(h,h+64));return f.push(&quot;-----END &quot;+a.label+&quot;-----&quot;),f.join(`
`)}},{&quot;./der&quot;:181,inherits:440}],184:[function(t,n,o){(function(s,l){function u(T,L){if(!T)throw new Error(L||&quot;Assertion failed&quot;)}function c(T,L){T.super_=L;var E=function(){};E.prototype=L.prototype,T.prototype=new E,T.prototype.constructor=T}function a(T,L,E){if(a.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&amp;&amp;(L!==&quot;le&quot;&amp;&amp;L!==&quot;be&quot;||(E=L,L=10),this._init(T||0,L||10,E||&quot;be&quot;))}var d;typeof s==&quot;object&quot;?s.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{d=typeof window&lt;&quot;u&quot;&amp;&amp;window.Buffer!==void 0?window.Buffer:t(&quot;buffer&quot;).Buffer}catch{}function f(T,L){var E=T.charCodeAt(L);return E&gt;=65&amp;&amp;E&lt;=70?E-55:E&gt;=97&amp;&amp;E&lt;=102?E-87:E-48&amp;15}function h(T,L,E){var j=f(T,E);return E-1&gt;=L&amp;&amp;(j|=f(T,E-1)&lt;&lt;4),j}function m(T,L,E,j){for(var k=0,N=Math.min(T.length,E),C=L;C&lt;N;C++){var P=T.charCodeAt(C)-48;k*=j,k+=P&gt;=49?P-49+10:P&gt;=17?P-17+10:P}return k}a.isBN=function(T){return T instanceof a||T!==null&amp;&amp;typeof T==&quot;object&quot;&amp;&amp;T.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(T.words)},a.max=function(T,L){return T.cmp(L)&gt;0?T:L},a.min=function(T,L){return T.cmp(L)&lt;0?T:L},a.prototype._init=function(T,L,E){if(typeof T==&quot;number&quot;)return this._initNumber(T,L,E);if(typeof T==&quot;object&quot;)return this._initArray(T,L,E);L===&quot;hex&quot;&amp;&amp;(L=16),u(L===(0|L)&amp;&amp;L&gt;=2&amp;&amp;L&lt;=36);var j=0;(T=T.toString().replace(/\s+/g,&quot;&quot;))[0]===&quot;-&quot;&amp;&amp;(j++,this.negative=1),j&lt;T.length&amp;&amp;(L===16?this._parseHex(T,j,E):(this._parseBase(T,L,j),E===&quot;le&quot;&amp;&amp;this._initArray(this.toArray(),L,E)))},a.prototype._initNumber=function(T,L,E){T&lt;0&amp;&amp;(this.negative=1,T=-T),T&lt;67108864?(this.words=[67108863&amp;T],this.length=1):T&lt;4503599627370496?(this.words=[67108863&amp;T,T/67108864&amp;67108863],this.length=2):(u(T&lt;9007199254740992),this.words=[67108863&amp;T,T/67108864&amp;67108863,1],this.length=3),E===&quot;le&quot;&amp;&amp;this._initArray(this.toArray(),L,E)},a.prototype._initArray=function(T,L,E){if(u(typeof T.length==&quot;number&quot;),T.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(T.length/3),this.words=new Array(this.length);for(var j=0;j&lt;this.length;j++)this.words[j]=0;var k,N,C=0;if(E===&quot;be&quot;)for(j=T.length-1,k=0;j&gt;=0;j-=3)N=T[j]|T[j-1]&lt;&lt;8|T[j-2]&lt;&lt;16,this.words[k]|=N&lt;&lt;C&amp;67108863,this.words[k+1]=N&gt;&gt;&gt;26-C&amp;67108863,(C+=24)&gt;=26&amp;&amp;(C-=26,k++);else if(E===&quot;le&quot;)for(j=0,k=0;j&lt;T.length;j+=3)N=T[j]|T[j+1]&lt;&lt;8|T[j+2]&lt;&lt;16,this.words[k]|=N&lt;&lt;C&amp;67108863,this.words[k+1]=N&gt;&gt;&gt;26-C&amp;67108863,(C+=24)&gt;=26&amp;&amp;(C-=26,k++);return this.strip()},a.prototype._parseHex=function(T,L,E){this.length=Math.ceil((T.length-L)/6),this.words=new Array(this.length);for(var j=0;j&lt;this.length;j++)this.words[j]=0;var k,N=0,C=0;if(E===&quot;be&quot;)for(j=T.length-1;j&gt;=L;j-=2)k=h(T,L,j)&lt;&lt;N,this.words[C]|=67108863&amp;k,N&gt;=18?(N-=18,C+=1,this.words[C]|=k&gt;&gt;&gt;26):N+=8;else for(j=(T.length-L)%2==0?L+1:L;j&lt;T.length;j+=2)k=h(T,L,j)&lt;&lt;N,this.words[C]|=67108863&amp;k,N&gt;=18?(N-=18,C+=1,this.words[C]|=k&gt;&gt;&gt;26):N+=8;this.strip()},a.prototype._parseBase=function(T,L,E){this.words=[0],this.length=1;for(var j=0,k=1;k&lt;=67108863;k*=L)j++;j--,k=k/L|0;for(var N=T.length-E,C=N%j,P=Math.min(N,N-C)+E,D=0,z=E;z&lt;P;z+=j)D=m(T,z,z+j,L),this.imuln(k),this.words[0]+D&lt;67108864?this.words[0]+=D:this._iaddn(D);if(C!==0){var Y=1;for(D=m(T,z,T.length,L),z=0;z&lt;C;z++)Y*=L;this.imuln(Y),this.words[0]+D&lt;67108864?this.words[0]+=D:this._iaddn(D)}this.strip()},a.prototype.copy=function(T){T.words=new Array(this.length);for(var L=0;L&lt;this.length;L++)T.words[L]=this.words[L];T.length=this.length,T.negative=this.negative,T.red=this.red},a.prototype.clone=function(){var T=new a(null);return this.copy(T),T},a.prototype._expand=function(T){for(;this.length&lt;T;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&amp;&amp;this.words[0]===0&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var p=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(T,L,E){E.negative=L.negative^T.negative;var j=T.length+L.length|0;E.length=j,j=j-1|0;var k=0|T.words[0],N=0|L.words[0],C=k*N,P=67108863&amp;C,D=C/67108864|0;E.words[0]=P;for(var z=1;z&lt;j;z++){for(var Y=D&gt;&gt;&gt;26,Z=67108863&amp;D,ne=Math.min(z,L.length-1),U=Math.max(0,z-T.length+1);U&lt;=ne;U++){var J=z-U|0;Y+=(C=(k=0|T.words[J])*(N=0|L.words[U])+Z)/67108864|0,Z=67108863&amp;C}E.words[z]=0|Z,D=0|Y}return D!==0?E.words[z]=0|D:E.length--,E.strip()}a.prototype.toString=function(T,L){var E;if(L=0|L||1,(T=T||10)===16||T===&quot;hex&quot;){E=&quot;&quot;;for(var j=0,k=0,N=0;N&lt;this.length;N++){var C=this.words[N],P=(16777215&amp;(C&lt;&lt;j|k)).toString(16);E=(k=C&gt;&gt;&gt;24-j&amp;16777215)!==0||N!==this.length-1?p[6-P.length]+P+E:P+E,(j+=2)&gt;=26&amp;&amp;(j-=26,N--)}for(k!==0&amp;&amp;(E=k.toString(16)+E);E.length%L!=0;)E=&quot;0&quot;+E;return this.negative!==0&amp;&amp;(E=&quot;-&quot;+E),E}if(T===(0|T)&amp;&amp;T&gt;=2&amp;&amp;T&lt;=36){var D=x[T],z=g[T];E=&quot;&quot;;var Y=this.clone();for(Y.negative=0;!Y.isZero();){var Z=Y.modn(z).toString(T);E=(Y=Y.idivn(z)).isZero()?Z+E:p[D-Z.length]+Z+E}for(this.isZero()&amp;&amp;(E=&quot;0&quot;+E);E.length%L!=0;)E=&quot;0&quot;+E;return this.negative!==0&amp;&amp;(E=&quot;-&quot;+E),E}u(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=67108864*this.words[1]:this.length===3&amp;&amp;this.words[2]===1?T+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;u(!1,&quot;Number can only safely store up to 53 bits&quot;),this.negative!==0?-T:T},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(T,L){return u(d!==void 0),this.toArrayLike(d,T,L)},a.prototype.toArray=function(T,L){return this.toArrayLike(Array,T,L)},a.prototype.toArrayLike=function(T,L,E){var j=this.byteLength(),k=E||Math.max(1,j);u(j&lt;=k,&quot;byte array longer than desired length&quot;),u(k&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var N,C,P=L===&quot;le&quot;,D=new T(k),z=this.clone();if(P){for(C=0;!z.isZero();C++)N=z.andln(255),z.iushrn(8),D[C]=N;for(;C&lt;k;C++)D[C]=0}else{for(C=0;C&lt;k-j;C++)D[C]=0;for(C=0;!z.isZero();C++)N=z.andln(255),z.iushrn(8),D[k-C-1]=N}return D},Math.clz32?a.prototype._countBits=function(T){return 32-Math.clz32(T)}:a.prototype._countBits=function(T){var L=T,E=0;return L&gt;=4096&amp;&amp;(E+=13,L&gt;&gt;&gt;=13),L&gt;=64&amp;&amp;(E+=7,L&gt;&gt;&gt;=7),L&gt;=8&amp;&amp;(E+=4,L&gt;&gt;&gt;=4),L&gt;=2&amp;&amp;(E+=2,L&gt;&gt;&gt;=2),E+L},a.prototype._zeroBits=function(T){if(T===0)return 26;var L=T,E=0;return(8191&amp;L)==0&amp;&amp;(E+=13,L&gt;&gt;&gt;=13),(127&amp;L)==0&amp;&amp;(E+=7,L&gt;&gt;&gt;=7),(15&amp;L)==0&amp;&amp;(E+=4,L&gt;&gt;&gt;=4),(3&amp;L)==0&amp;&amp;(E+=2,L&gt;&gt;&gt;=2),(1&amp;L)==0&amp;&amp;E++,E},a.prototype.bitLength=function(){var T=this.words[this.length-1],L=this._countBits(T);return 26*(this.length-1)+L},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,L=0;L&lt;this.length;L++){var E=this._zeroBits(this.words[L]);if(T+=E,E!==26)break}return T},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(T){return this.negative!==0?this.abs().inotn(T).iaddn(1):this.clone()},a.prototype.fromTwos=function(T){return this.testn(T-1)?this.notn(T).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(T){for(;this.length&lt;T.length;)this.words[this.length++]=0;for(var L=0;L&lt;T.length;L++)this.words[L]=this.words[L]|T.words[L];return this.strip()},a.prototype.ior=function(T){return u((this.negative|T.negative)==0),this.iuor(T)},a.prototype.or=function(T){return this.length&gt;T.length?this.clone().ior(T):T.clone().ior(this)},a.prototype.uor=function(T){return this.length&gt;T.length?this.clone().iuor(T):T.clone().iuor(this)},a.prototype.iuand=function(T){var L;L=this.length&gt;T.length?T:this;for(var E=0;E&lt;L.length;E++)this.words[E]=this.words[E]&amp;T.words[E];return this.length=L.length,this.strip()},a.prototype.iand=function(T){return u((this.negative|T.negative)==0),this.iuand(T)},a.prototype.and=function(T){return this.length&gt;T.length?this.clone().iand(T):T.clone().iand(this)},a.prototype.uand=function(T){return this.length&gt;T.length?this.clone().iuand(T):T.clone().iuand(this)},a.prototype.iuxor=function(T){var L,E;this.length&gt;T.length?(L=this,E=T):(L=T,E=this);for(var j=0;j&lt;E.length;j++)this.words[j]=L.words[j]^E.words[j];if(this!==L)for(;j&lt;L.length;j++)this.words[j]=L.words[j];return this.length=L.length,this.strip()},a.prototype.ixor=function(T){return u((this.negative|T.negative)==0),this.iuxor(T)},a.prototype.xor=function(T){return this.length&gt;T.length?this.clone().ixor(T):T.clone().ixor(this)},a.prototype.uxor=function(T){return this.length&gt;T.length?this.clone().iuxor(T):T.clone().iuxor(this)},a.prototype.inotn=function(T){u(typeof T==&quot;number&quot;&amp;&amp;T&gt;=0);var L=0|Math.ceil(T/26),E=T%26;this._expand(L),E&gt;0&amp;&amp;L--;for(var j=0;j&lt;L;j++)this.words[j]=67108863&amp;~this.words[j];return E&gt;0&amp;&amp;(this.words[j]=~this.words[j]&amp;67108863&gt;&gt;26-E),this.strip()},a.prototype.notn=function(T){return this.clone().inotn(T)},a.prototype.setn=function(T,L){u(typeof T==&quot;number&quot;&amp;&amp;T&gt;=0);var E=T/26|0,j=T%26;return this._expand(E+1),this.words[E]=L?this.words[E]|1&lt;&lt;j:this.words[E]&amp;~(1&lt;&lt;j),this.strip()},a.prototype.iadd=function(T){var L,E,j;if(this.negative!==0&amp;&amp;T.negative===0)return this.negative=0,L=this.isub(T),this.negative^=1,this._normSign();if(this.negative===0&amp;&amp;T.negative!==0)return T.negative=0,L=this.isub(T),T.negative=1,L._normSign();this.length&gt;T.length?(E=this,j=T):(E=T,j=this);for(var k=0,N=0;N&lt;j.length;N++)L=(0|E.words[N])+(0|j.words[N])+k,this.words[N]=67108863&amp;L,k=L&gt;&gt;&gt;26;for(;k!==0&amp;&amp;N&lt;E.length;N++)L=(0|E.words[N])+k,this.words[N]=67108863&amp;L,k=L&gt;&gt;&gt;26;if(this.length=E.length,k!==0)this.words[this.length]=k,this.length++;else if(E!==this)for(;N&lt;E.length;N++)this.words[N]=E.words[N];return this},a.prototype.add=function(T){var L;return T.negative!==0&amp;&amp;this.negative===0?(T.negative=0,L=this.sub(T),T.negative^=1,L):T.negative===0&amp;&amp;this.negative!==0?(this.negative=0,L=T.sub(this),this.negative=1,L):this.length&gt;T.length?this.clone().iadd(T):T.clone().iadd(this)},a.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var L=this.iadd(T);return T.negative=1,L._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var E,j,k=this.cmp(T);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;k&gt;0?(E=this,j=T):(E=T,j=this);for(var N=0,C=0;C&lt;j.length;C++)N=(L=(0|E.words[C])-(0|j.words[C])+N)&gt;&gt;26,this.words[C]=67108863&amp;L;for(;N!==0&amp;&amp;C&lt;E.length;C++)N=(L=(0|E.words[C])+N)&gt;&gt;26,this.words[C]=67108863&amp;L;if(N===0&amp;&amp;C&lt;E.length&amp;&amp;E!==this)for(;C&lt;E.length;C++)this.words[C]=E.words[C];return this.length=Math.max(this.length,C),E!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(T){return this.clone().isub(T)};var v=function(T,L,E){var j,k,N,C=T.words,P=L.words,D=E.words,z=0,Y=0|C[0],Z=8191&amp;Y,ne=Y&gt;&gt;&gt;13,U=0|C[1],J=8191&amp;U,$=U&gt;&gt;&gt;13,R=0|C[2],X=8191&amp;R,re=R&gt;&gt;&gt;13,Q=0|C[3],te=8191&amp;Q,ie=Q&gt;&gt;&gt;13,de=0|C[4],ce=8191&amp;de,se=de&gt;&gt;&gt;13,fe=0|C[5],le=8191&amp;fe,ge=fe&gt;&gt;&gt;13,xe=0|C[6],pe=8191&amp;xe,ue=xe&gt;&gt;&gt;13,we=0|C[7],ke=8191&amp;we,De=we&gt;&gt;&gt;13,Le=0|C[8],ze=8191&amp;Le,Oe=Le&gt;&gt;&gt;13,Ve=0|C[9],Qe=8191&amp;Ve,Ze=Ve&gt;&gt;&gt;13,Je=0|P[0],qe=8191&amp;Je,tt=Je&gt;&gt;&gt;13,nt=0|P[1],Me=8191&amp;nt,st=nt&gt;&gt;&gt;13,$t=0|P[2],ft=8191&amp;$t,zt=$t&gt;&gt;&gt;13,Bt=0|P[3],Ct=8191&amp;Bt,rr=Bt&gt;&gt;&gt;13,Gt=0|P[4],_t=8191&amp;Gt,Rt=Gt&gt;&gt;&gt;13,Jt=0|P[5],it=8191&amp;Jt,Ut=Jt&gt;&gt;&gt;13,Xt=0|P[6],Mt=8191&amp;Xt,be=Xt&gt;&gt;&gt;13,Ne=0|P[7],Re=8191&amp;Ne,Ge=Ne&gt;&gt;&gt;13,vt=0|P[8],rt=8191&amp;vt,Pt=vt&gt;&gt;&gt;13,jt=0|P[9],at=8191&amp;jt,Ot=jt&gt;&gt;&gt;13;E.negative=T.negative^L.negative,E.length=19;var At=(z+(j=Math.imul(Z,qe))|0)+((8191&amp;(k=(k=Math.imul(Z,tt))+Math.imul(ne,qe)|0))&lt;&lt;13)|0;z=((N=Math.imul(ne,tt))+(k&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,j=Math.imul(J,qe),k=(k=Math.imul(J,tt))+Math.imul($,qe)|0,N=Math.imul($,tt);var Vt=(z+(j=j+Math.imul(Z,Me)|0)|0)+((8191&amp;(k=(k=k+Math.imul(Z,st)|0)+Math.imul(ne,Me)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ne,st)|0)+(k&gt;&gt;&gt;13)|0)+(Vt&gt;&gt;&gt;26)|0,Vt&amp;=67108863,j=Math.imul(X,qe),k=(k=Math.imul(X,tt))+Math.imul(re,qe)|0,N=Math.imul(re,tt),j=j+Math.imul(J,Me)|0,k=(k=k+Math.imul(J,st)|0)+Math.imul($,Me)|0,N=N+Math.imul($,st)|0;var dr=(z+(j=j+Math.imul(Z,ft)|0)|0)+((8191&amp;(k=(k=k+Math.imul(Z,zt)|0)+Math.imul(ne,ft)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ne,zt)|0)+(k&gt;&gt;&gt;13)|0)+(dr&gt;&gt;&gt;26)|0,dr&amp;=67108863,j=Math.imul(te,qe),k=(k=Math.imul(te,tt))+Math.imul(ie,qe)|0,N=Math.imul(ie,tt),j=j+Math.imul(X,Me)|0,k=(k=k+Math.imul(X,st)|0)+Math.imul(re,Me)|0,N=N+Math.imul(re,st)|0,j=j+Math.imul(J,ft)|0,k=(k=k+Math.imul(J,zt)|0)+Math.imul($,ft)|0,N=N+Math.imul($,zt)|0;var sr=(z+(j=j+Math.imul(Z,Ct)|0)|0)+((8191&amp;(k=(k=k+Math.imul(Z,rr)|0)+Math.imul(ne,Ct)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ne,rr)|0)+(k&gt;&gt;&gt;13)|0)+(sr&gt;&gt;&gt;26)|0,sr&amp;=67108863,j=Math.imul(ce,qe),k=(k=Math.imul(ce,tt))+Math.imul(se,qe)|0,N=Math.imul(se,tt),j=j+Math.imul(te,Me)|0,k=(k=k+Math.imul(te,st)|0)+Math.imul(ie,Me)|0,N=N+Math.imul(ie,st)|0,j=j+Math.imul(X,ft)|0,k=(k=k+Math.imul(X,zt)|0)+Math.imul(re,ft)|0,N=N+Math.imul(re,zt)|0,j=j+Math.imul(J,Ct)|0,k=(k=k+Math.imul(J,rr)|0)+Math.imul($,Ct)|0,N=N+Math.imul($,rr)|0;var _r=(z+(j=j+Math.imul(Z,_t)|0)|0)+((8191&amp;(k=(k=k+Math.imul(Z,Rt)|0)+Math.imul(ne,_t)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ne,Rt)|0)+(k&gt;&gt;&gt;13)|0)+(_r&gt;&gt;&gt;26)|0,_r&amp;=67108863,j=Math.imul(le,qe),k=(k=Math.imul(le,tt))+Math.imul(ge,qe)|0,N=Math.imul(ge,tt),j=j+Math.imul(ce,Me)|0,k=(k=k+Math.imul(ce,st)|0)+Math.imul(se,Me)|0,N=N+Math.imul(se,st)|0,j=j+Math.imul(te,ft)|0,k=(k=k+Math.imul(te,zt)|0)+Math.imul(ie,ft)|0,N=N+Math.imul(ie,zt)|0,j=j+Math.imul(X,Ct)|0,k=(k=k+Math.imul(X,rr)|0)+Math.imul(re,Ct)|0,N=N+Math.imul(re,rr)|0,j=j+Math.imul(J,_t)|0,k=(k=k+Math.imul(J,Rt)|0)+Math.imul($,_t)|0,N=N+Math.imul($,Rt)|0;var fr=(z+(j=j+Math.imul(Z,it)|0)|0)+((8191&amp;(k=(k=k+Math.imul(Z,Ut)|0)+Math.imul(ne,it)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ne,Ut)|0)+(k&gt;&gt;&gt;13)|0)+(fr&gt;&gt;&gt;26)|0,fr&amp;=67108863,j=Math.imul(pe,qe),k=(k=Math.imul(pe,tt))+Math.imul(ue,qe)|0,N=Math.imul(ue,tt),j=j+Math.imul(le,Me)|0,k=(k=k+Math.imul(le,st)|0)+Math.imul(ge,Me)|0,N=N+Math.imul(ge,st)|0,j=j+Math.imul(ce,ft)|0,k=(k=k+Math.imul(ce,zt)|0)+Math.imul(se,ft)|0,N=N+Math.imul(se,zt)|0,j=j+Math.imul(te,Ct)|0,k=(k=k+Math.imul(te,rr)|0)+Math.imul(ie,Ct)|0,N=N+Math.imul(ie,rr)|0,j=j+Math.imul(X,_t)|0,k=(k=k+Math.imul(X,Rt)|0)+Math.imul(re,_t)|0,N=N+Math.imul(re,Rt)|0,j=j+Math.imul(J,it)|0,k=(k=k+Math.imul(J,Ut)|0)+Math.imul($,it)|0,N=N+Math.imul($,Ut)|0;var Yr=(z+(j=j+Math.imul(Z,Mt)|0)|0)+((8191&amp;(k=(k=k+Math.imul(Z,be)|0)+Math.imul(ne,Mt)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ne,be)|0)+(k&gt;&gt;&gt;13)|0)+(Yr&gt;&gt;&gt;26)|0,Yr&amp;=67108863,j=Math.imul(ke,qe),k=(k=Math.imul(ke,tt))+Math.imul(De,qe)|0,N=Math.imul(De,tt),j=j+Math.imul(pe,Me)|0,k=(k=k+Math.imul(pe,st)|0)+Math.imul(ue,Me)|0,N=N+Math.imul(ue,st)|0,j=j+Math.imul(le,ft)|0,k=(k=k+Math.imul(le,zt)|0)+Math.imul(ge,ft)|0,N=N+Math.imul(ge,zt)|0,j=j+Math.imul(ce,Ct)|0,k=(k=k+Math.imul(ce,rr)|0)+Math.imul(se,Ct)|0,N=N+Math.imul(se,rr)|0,j=j+Math.imul(te,_t)|0,k=(k=k+Math.imul(te,Rt)|0)+Math.imul(ie,_t)|0,N=N+Math.imul(ie,Rt)|0,j=j+Math.imul(X,it)|0,k=(k=k+Math.imul(X,Ut)|0)+Math.imul(re,it)|0,N=N+Math.imul(re,Ut)|0,j=j+Math.imul(J,Mt)|0,k=(k=k+Math.imul(J,be)|0)+Math.imul($,Mt)|0,N=N+Math.imul($,be)|0;var he=(z+(j=j+Math.imul(Z,Re)|0)|0)+((8191&amp;(k=(k=k+Math.imul(Z,Ge)|0)+Math.imul(ne,Re)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ne,Ge)|0)+(k&gt;&gt;&gt;13)|0)+(he&gt;&gt;&gt;26)|0,he&amp;=67108863,j=Math.imul(ze,qe),k=(k=Math.imul(ze,tt))+Math.imul(Oe,qe)|0,N=Math.imul(Oe,tt),j=j+Math.imul(ke,Me)|0,k=(k=k+Math.imul(ke,st)|0)+Math.imul(De,Me)|0,N=N+Math.imul(De,st)|0,j=j+Math.imul(pe,ft)|0,k=(k=k+Math.imul(pe,zt)|0)+Math.imul(ue,ft)|0,N=N+Math.imul(ue,zt)|0,j=j+Math.imul(le,Ct)|0,k=(k=k+Math.imul(le,rr)|0)+Math.imul(ge,Ct)|0,N=N+Math.imul(ge,rr)|0,j=j+Math.imul(ce,_t)|0,k=(k=k+Math.imul(ce,Rt)|0)+Math.imul(se,_t)|0,N=N+Math.imul(se,Rt)|0,j=j+Math.imul(te,it)|0,k=(k=k+Math.imul(te,Ut)|0)+Math.imul(ie,it)|0,N=N+Math.imul(ie,Ut)|0,j=j+Math.imul(X,Mt)|0,k=(k=k+Math.imul(X,be)|0)+Math.imul(re,Mt)|0,N=N+Math.imul(re,be)|0,j=j+Math.imul(J,Re)|0,k=(k=k+Math.imul(J,Ge)|0)+Math.imul($,Re)|0,N=N+Math.imul($,Ge)|0;var je=(z+(j=j+Math.imul(Z,rt)|0)|0)+((8191&amp;(k=(k=k+Math.imul(Z,Pt)|0)+Math.imul(ne,rt)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ne,Pt)|0)+(k&gt;&gt;&gt;13)|0)+(je&gt;&gt;&gt;26)|0,je&amp;=67108863,j=Math.imul(Qe,qe),k=(k=Math.imul(Qe,tt))+Math.imul(Ze,qe)|0,N=Math.imul(Ze,tt),j=j+Math.imul(ze,Me)|0,k=(k=k+Math.imul(ze,st)|0)+Math.imul(Oe,Me)|0,N=N+Math.imul(Oe,st)|0,j=j+Math.imul(ke,ft)|0,k=(k=k+Math.imul(ke,zt)|0)+Math.imul(De,ft)|0,N=N+Math.imul(De,zt)|0,j=j+Math.imul(pe,Ct)|0,k=(k=k+Math.imul(pe,rr)|0)+Math.imul(ue,Ct)|0,N=N+Math.imul(ue,rr)|0,j=j+Math.imul(le,_t)|0,k=(k=k+Math.imul(le,Rt)|0)+Math.imul(ge,_t)|0,N=N+Math.imul(ge,Rt)|0,j=j+Math.imul(ce,it)|0,k=(k=k+Math.imul(ce,Ut)|0)+Math.imul(se,it)|0,N=N+Math.imul(se,Ut)|0,j=j+Math.imul(te,Mt)|0,k=(k=k+Math.imul(te,be)|0)+Math.imul(ie,Mt)|0,N=N+Math.imul(ie,be)|0,j=j+Math.imul(X,Re)|0,k=(k=k+Math.imul(X,Ge)|0)+Math.imul(re,Re)|0,N=N+Math.imul(re,Ge)|0,j=j+Math.imul(J,rt)|0,k=(k=k+Math.imul(J,Pt)|0)+Math.imul($,rt)|0,N=N+Math.imul($,Pt)|0;var Fe=(z+(j=j+Math.imul(Z,at)|0)|0)+((8191&amp;(k=(k=k+Math.imul(Z,Ot)|0)+Math.imul(ne,at)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ne,Ot)|0)+(k&gt;&gt;&gt;13)|0)+(Fe&gt;&gt;&gt;26)|0,Fe&amp;=67108863,j=Math.imul(Qe,Me),k=(k=Math.imul(Qe,st))+Math.imul(Ze,Me)|0,N=Math.imul(Ze,st),j=j+Math.imul(ze,ft)|0,k=(k=k+Math.imul(ze,zt)|0)+Math.imul(Oe,ft)|0,N=N+Math.imul(Oe,zt)|0,j=j+Math.imul(ke,Ct)|0,k=(k=k+Math.imul(ke,rr)|0)+Math.imul(De,Ct)|0,N=N+Math.imul(De,rr)|0,j=j+Math.imul(pe,_t)|0,k=(k=k+Math.imul(pe,Rt)|0)+Math.imul(ue,_t)|0,N=N+Math.imul(ue,Rt)|0,j=j+Math.imul(le,it)|0,k=(k=k+Math.imul(le,Ut)|0)+Math.imul(ge,it)|0,N=N+Math.imul(ge,Ut)|0,j=j+Math.imul(ce,Mt)|0,k=(k=k+Math.imul(ce,be)|0)+Math.imul(se,Mt)|0,N=N+Math.imul(se,be)|0,j=j+Math.imul(te,Re)|0,k=(k=k+Math.imul(te,Ge)|0)+Math.imul(ie,Re)|0,N=N+Math.imul(ie,Ge)|0,j=j+Math.imul(X,rt)|0,k=(k=k+Math.imul(X,Pt)|0)+Math.imul(re,rt)|0,N=N+Math.imul(re,Pt)|0;var Ue=(z+(j=j+Math.imul(J,at)|0)|0)+((8191&amp;(k=(k=k+Math.imul(J,Ot)|0)+Math.imul($,at)|0))&lt;&lt;13)|0;z=((N=N+Math.imul($,Ot)|0)+(k&gt;&gt;&gt;13)|0)+(Ue&gt;&gt;&gt;26)|0,Ue&amp;=67108863,j=Math.imul(Qe,ft),k=(k=Math.imul(Qe,zt))+Math.imul(Ze,ft)|0,N=Math.imul(Ze,zt),j=j+Math.imul(ze,Ct)|0,k=(k=k+Math.imul(ze,rr)|0)+Math.imul(Oe,Ct)|0,N=N+Math.imul(Oe,rr)|0,j=j+Math.imul(ke,_t)|0,k=(k=k+Math.imul(ke,Rt)|0)+Math.imul(De,_t)|0,N=N+Math.imul(De,Rt)|0,j=j+Math.imul(pe,it)|0,k=(k=k+Math.imul(pe,Ut)|0)+Math.imul(ue,it)|0,N=N+Math.imul(ue,Ut)|0,j=j+Math.imul(le,Mt)|0,k=(k=k+Math.imul(le,be)|0)+Math.imul(ge,Mt)|0,N=N+Math.imul(ge,be)|0,j=j+Math.imul(ce,Re)|0,k=(k=k+Math.imul(ce,Ge)|0)+Math.imul(se,Re)|0,N=N+Math.imul(se,Ge)|0,j=j+Math.imul(te,rt)|0,k=(k=k+Math.imul(te,Pt)|0)+Math.imul(ie,rt)|0,N=N+Math.imul(ie,Pt)|0;var lt=(z+(j=j+Math.imul(X,at)|0)|0)+((8191&amp;(k=(k=k+Math.imul(X,Ot)|0)+Math.imul(re,at)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(re,Ot)|0)+(k&gt;&gt;&gt;13)|0)+(lt&gt;&gt;&gt;26)|0,lt&amp;=67108863,j=Math.imul(Qe,Ct),k=(k=Math.imul(Qe,rr))+Math.imul(Ze,Ct)|0,N=Math.imul(Ze,rr),j=j+Math.imul(ze,_t)|0,k=(k=k+Math.imul(ze,Rt)|0)+Math.imul(Oe,_t)|0,N=N+Math.imul(Oe,Rt)|0,j=j+Math.imul(ke,it)|0,k=(k=k+Math.imul(ke,Ut)|0)+Math.imul(De,it)|0,N=N+Math.imul(De,Ut)|0,j=j+Math.imul(pe,Mt)|0,k=(k=k+Math.imul(pe,be)|0)+Math.imul(ue,Mt)|0,N=N+Math.imul(ue,be)|0,j=j+Math.imul(le,Re)|0,k=(k=k+Math.imul(le,Ge)|0)+Math.imul(ge,Re)|0,N=N+Math.imul(ge,Ge)|0,j=j+Math.imul(ce,rt)|0,k=(k=k+Math.imul(ce,Pt)|0)+Math.imul(se,rt)|0,N=N+Math.imul(se,Pt)|0;var Ke=(z+(j=j+Math.imul(te,at)|0)|0)+((8191&amp;(k=(k=k+Math.imul(te,Ot)|0)+Math.imul(ie,at)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ie,Ot)|0)+(k&gt;&gt;&gt;13)|0)+(Ke&gt;&gt;&gt;26)|0,Ke&amp;=67108863,j=Math.imul(Qe,_t),k=(k=Math.imul(Qe,Rt))+Math.imul(Ze,_t)|0,N=Math.imul(Ze,Rt),j=j+Math.imul(ze,it)|0,k=(k=k+Math.imul(ze,Ut)|0)+Math.imul(Oe,it)|0,N=N+Math.imul(Oe,Ut)|0,j=j+Math.imul(ke,Mt)|0,k=(k=k+Math.imul(ke,be)|0)+Math.imul(De,Mt)|0,N=N+Math.imul(De,be)|0,j=j+Math.imul(pe,Re)|0,k=(k=k+Math.imul(pe,Ge)|0)+Math.imul(ue,Re)|0,N=N+Math.imul(ue,Ge)|0,j=j+Math.imul(le,rt)|0,k=(k=k+Math.imul(le,Pt)|0)+Math.imul(ge,rt)|0,N=N+Math.imul(ge,Pt)|0;var Ye=(z+(j=j+Math.imul(ce,at)|0)|0)+((8191&amp;(k=(k=k+Math.imul(ce,Ot)|0)+Math.imul(se,at)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(se,Ot)|0)+(k&gt;&gt;&gt;13)|0)+(Ye&gt;&gt;&gt;26)|0,Ye&amp;=67108863,j=Math.imul(Qe,it),k=(k=Math.imul(Qe,Ut))+Math.imul(Ze,it)|0,N=Math.imul(Ze,Ut),j=j+Math.imul(ze,Mt)|0,k=(k=k+Math.imul(ze,be)|0)+Math.imul(Oe,Mt)|0,N=N+Math.imul(Oe,be)|0,j=j+Math.imul(ke,Re)|0,k=(k=k+Math.imul(ke,Ge)|0)+Math.imul(De,Re)|0,N=N+Math.imul(De,Ge)|0,j=j+Math.imul(pe,rt)|0,k=(k=k+Math.imul(pe,Pt)|0)+Math.imul(ue,rt)|0,N=N+Math.imul(ue,Pt)|0;var Ht=(z+(j=j+Math.imul(le,at)|0)|0)+((8191&amp;(k=(k=k+Math.imul(le,Ot)|0)+Math.imul(ge,at)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ge,Ot)|0)+(k&gt;&gt;&gt;13)|0)+(Ht&gt;&gt;&gt;26)|0,Ht&amp;=67108863,j=Math.imul(Qe,Mt),k=(k=Math.imul(Qe,be))+Math.imul(Ze,Mt)|0,N=Math.imul(Ze,be),j=j+Math.imul(ze,Re)|0,k=(k=k+Math.imul(ze,Ge)|0)+Math.imul(Oe,Re)|0,N=N+Math.imul(Oe,Ge)|0,j=j+Math.imul(ke,rt)|0,k=(k=k+Math.imul(ke,Pt)|0)+Math.imul(De,rt)|0,N=N+Math.imul(De,Pt)|0;var Dt=(z+(j=j+Math.imul(pe,at)|0)|0)+((8191&amp;(k=(k=k+Math.imul(pe,Ot)|0)+Math.imul(ue,at)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(ue,Ot)|0)+(k&gt;&gt;&gt;13)|0)+(Dt&gt;&gt;&gt;26)|0,Dt&amp;=67108863,j=Math.imul(Qe,Re),k=(k=Math.imul(Qe,Ge))+Math.imul(Ze,Re)|0,N=Math.imul(Ze,Ge),j=j+Math.imul(ze,rt)|0,k=(k=k+Math.imul(ze,Pt)|0)+Math.imul(Oe,rt)|0,N=N+Math.imul(Oe,Pt)|0;var St=(z+(j=j+Math.imul(ke,at)|0)|0)+((8191&amp;(k=(k=k+Math.imul(ke,Ot)|0)+Math.imul(De,at)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(De,Ot)|0)+(k&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,j=Math.imul(Qe,rt),k=(k=Math.imul(Qe,Pt))+Math.imul(Ze,rt)|0,N=Math.imul(Ze,Pt);var bt=(z+(j=j+Math.imul(ze,at)|0)|0)+((8191&amp;(k=(k=k+Math.imul(ze,Ot)|0)+Math.imul(Oe,at)|0))&lt;&lt;13)|0;z=((N=N+Math.imul(Oe,Ot)|0)+(k&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863;var Ce=(z+(j=Math.imul(Qe,at))|0)+((8191&amp;(k=(k=Math.imul(Qe,Ot))+Math.imul(Ze,at)|0))&lt;&lt;13)|0;return z=((N=Math.imul(Ze,Ot))+(k&gt;&gt;&gt;13)|0)+(Ce&gt;&gt;&gt;26)|0,Ce&amp;=67108863,D[0]=At,D[1]=Vt,D[2]=dr,D[3]=sr,D[4]=_r,D[5]=fr,D[6]=Yr,D[7]=he,D[8]=je,D[9]=Fe,D[10]=Ue,D[11]=lt,D[12]=Ke,D[13]=Ye,D[14]=Ht,D[15]=Dt,D[16]=St,D[17]=bt,D[18]=Ce,z!==0&amp;&amp;(D[19]=z,E.length++),E};function _(T,L,E){return new S().mulp(T,L,E)}function S(T,L){this.x=T,this.y=L}Math.imul||(v=y),a.prototype.mulTo=function(T,L){var E=this.length+T.length;return this.length===10&amp;&amp;T.length===10?v(this,T,L):E&lt;63?y(this,T,L):E&lt;1024?(function(j,k,N){N.negative=k.negative^j.negative,N.length=j.length+k.length;for(var C=0,P=0,D=0;D&lt;N.length-1;D++){var z=P;P=0;for(var Y=67108863&amp;C,Z=Math.min(D,k.length-1),ne=Math.max(0,D-j.length+1);ne&lt;=Z;ne++){var U=D-ne,J=(0|j.words[U])*(0|k.words[ne]),$=67108863&amp;J;Y=67108863&amp;($=$+Y|0),P+=(z=(z=z+(J/67108864|0)|0)+($&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,z&amp;=67108863}N.words[D]=Y,C=z,z=P}return C!==0?N.words[D]=C:N.length--,N.strip()})(this,T,L):_(this,T,L)},S.prototype.makeRBT=function(T){for(var L=new Array(T),E=a.prototype._countBits(T)-1,j=0;j&lt;T;j++)L[j]=this.revBin(j,E,T);return L},S.prototype.revBin=function(T,L,E){if(T===0||T===E-1)return T;for(var j=0,k=0;k&lt;L;k++)j|=(1&amp;T)&lt;&lt;L-k-1,T&gt;&gt;=1;return j},S.prototype.permute=function(T,L,E,j,k,N){for(var C=0;C&lt;N;C++)j[C]=L[T[C]],k[C]=E[T[C]]},S.prototype.transform=function(T,L,E,j,k,N){this.permute(N,T,L,E,j,k);for(var C=1;C&lt;k;C&lt;&lt;=1)for(var P=C&lt;&lt;1,D=Math.cos(2*Math.PI/P),z=Math.sin(2*Math.PI/P),Y=0;Y&lt;k;Y+=P)for(var Z=D,ne=z,U=0;U&lt;C;U++){var J=E[Y+U],$=j[Y+U],R=E[Y+U+C],X=j[Y+U+C],re=Z*R-ne*X;X=Z*X+ne*R,R=re,E[Y+U]=J+R,j[Y+U]=$+X,E[Y+U+C]=J-R,j[Y+U+C]=$-X,U!==P&amp;&amp;(re=D*Z-z*ne,ne=D*ne+z*Z,Z=re)}},S.prototype.guessLen13b=function(T,L){var E=1|Math.max(L,T),j=1&amp;E,k=0;for(E=E/2|0;E;E&gt;&gt;&gt;=1)k++;return 1&lt;&lt;k+1+j},S.prototype.conjugate=function(T,L,E){if(!(E&lt;=1))for(var j=0;j&lt;E/2;j++){var k=T[j];T[j]=T[E-j-1],T[E-j-1]=k,k=L[j],L[j]=-L[E-j-1],L[E-j-1]=-k}},S.prototype.normalize13b=function(T,L){for(var E=0,j=0;j&lt;L/2;j++){var k=8192*Math.round(T[2*j+1]/L)+Math.round(T[2*j]/L)+E;T[j]=67108863&amp;k,E=k&lt;67108864?0:k/67108864|0}return T},S.prototype.convert13b=function(T,L,E,j){for(var k=0,N=0;N&lt;L;N++)k+=0|T[N],E[2*N]=8191&amp;k,k&gt;&gt;&gt;=13,E[2*N+1]=8191&amp;k,k&gt;&gt;&gt;=13;for(N=2*L;N&lt;j;++N)E[N]=0;u(k===0),u((-8192&amp;k)==0)},S.prototype.stub=function(T){for(var L=new Array(T),E=0;E&lt;T;E++)L[E]=0;return L},S.prototype.mulp=function(T,L,E){var j=2*this.guessLen13b(T.length,L.length),k=this.makeRBT(j),N=this.stub(j),C=new Array(j),P=new Array(j),D=new Array(j),z=new Array(j),Y=new Array(j),Z=new Array(j),ne=E.words;ne.length=j,this.convert13b(T.words,T.length,C,j),this.convert13b(L.words,L.length,z,j),this.transform(C,N,P,D,j,k),this.transform(z,N,Y,Z,j,k);for(var U=0;U&lt;j;U++){var J=P[U]*Y[U]-D[U]*Z[U];D[U]=P[U]*Z[U]+D[U]*Y[U],P[U]=J}return this.conjugate(P,D,j),this.transform(P,D,ne,N,j,k),this.conjugate(ne,N,j),this.normalize13b(ne,j),E.negative=T.negative^L.negative,E.length=T.length+L.length,E.strip()},a.prototype.mul=function(T){var L=new a(null);return L.words=new Array(this.length+T.length),this.mulTo(T,L)},a.prototype.mulf=function(T){var L=new a(null);return L.words=new Array(this.length+T.length),_(this,T,L)},a.prototype.imul=function(T){return this.clone().mulTo(T,this)},a.prototype.imuln=function(T){u(typeof T==&quot;number&quot;),u(T&lt;67108864);for(var L=0,E=0;E&lt;this.length;E++){var j=(0|this.words[E])*T,k=(67108863&amp;j)+(67108863&amp;L);L&gt;&gt;=26,L+=j/67108864|0,L+=k&gt;&gt;&gt;26,this.words[E]=67108863&amp;k}return L!==0&amp;&amp;(this.words[E]=L,this.length++),this},a.prototype.muln=function(T){return this.clone().imuln(T)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(T){var L=(function(N){for(var C=new Array(N.bitLength()),P=0;P&lt;C.length;P++){var D=P/26|0,z=P%26;C[P]=(N.words[D]&amp;1&lt;&lt;z)&gt;&gt;&gt;z}return C})(T);if(L.length===0)return new a(1);for(var E=this,j=0;j&lt;L.length&amp;&amp;L[j]===0;j++,E=E.sqr());if(++j&lt;L.length)for(var k=E.sqr();j&lt;L.length;j++,k=k.sqr())L[j]!==0&amp;&amp;(E=E.mul(k));return E},a.prototype.iushln=function(T){u(typeof T==&quot;number&quot;&amp;&amp;T&gt;=0);var L,E=T%26,j=(T-E)/26,k=67108863&gt;&gt;&gt;26-E&lt;&lt;26-E;if(E!==0){var N=0;for(L=0;L&lt;this.length;L++){var C=this.words[L]&amp;k,P=(0|this.words[L])-C&lt;&lt;E;this.words[L]=P|N,N=C&gt;&gt;&gt;26-E}N&amp;&amp;(this.words[L]=N,this.length++)}if(j!==0){for(L=this.length-1;L&gt;=0;L--)this.words[L+j]=this.words[L];for(L=0;L&lt;j;L++)this.words[L]=0;this.length+=j}return this.strip()},a.prototype.ishln=function(T){return u(this.negative===0),this.iushln(T)},a.prototype.iushrn=function(T,L,E){var j;u(typeof T==&quot;number&quot;&amp;&amp;T&gt;=0),j=L?(L-L%26)/26:0;var k=T%26,N=Math.min((T-k)/26,this.length),C=67108863^67108863&gt;&gt;&gt;k&lt;&lt;k,P=E;if(j-=N,j=Math.max(0,j),P){for(var D=0;D&lt;N;D++)P.words[D]=this.words[D];P.length=N}if(N!==0)if(this.length&gt;N)for(this.length-=N,D=0;D&lt;this.length;D++)this.words[D]=this.words[D+N];else this.words[0]=0,this.length=1;var z=0;for(D=this.length-1;D&gt;=0&amp;&amp;(z!==0||D&gt;=j);D--){var Y=0|this.words[D];this.words[D]=z&lt;&lt;26-k|Y&gt;&gt;&gt;k,z=Y&amp;C}return P&amp;&amp;z!==0&amp;&amp;(P.words[P.length++]=z),this.length===0&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(T,L,E){return u(this.negative===0),this.iushrn(T,L,E)},a.prototype.shln=function(T){return this.clone().ishln(T)},a.prototype.ushln=function(T){return this.clone().iushln(T)},a.prototype.shrn=function(T){return this.clone().ishrn(T)},a.prototype.ushrn=function(T){return this.clone().iushrn(T)},a.prototype.testn=function(T){u(typeof T==&quot;number&quot;&amp;&amp;T&gt;=0);var L=T%26,E=(T-L)/26,j=1&lt;&lt;L;return!(this.length&lt;=E)&amp;&amp;!!(this.words[E]&amp;j)},a.prototype.imaskn=function(T){u(typeof T==&quot;number&quot;&amp;&amp;T&gt;=0);var L=T%26,E=(T-L)/26;if(u(this.negative===0,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=E)return this;if(L!==0&amp;&amp;E++,this.length=Math.min(E,this.length),L!==0){var j=67108863^67108863&gt;&gt;&gt;L&lt;&lt;L;this.words[this.length-1]&amp;=j}return this.strip()},a.prototype.maskn=function(T){return this.clone().imaskn(T)},a.prototype.iaddn=function(T){return u(typeof T==&quot;number&quot;),u(T&lt;67108864),T&lt;0?this.isubn(-T):this.negative!==0?this.length===1&amp;&amp;(0|this.words[0])&lt;T?(this.words[0]=T-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(T),this.negative=1,this):this._iaddn(T)},a.prototype._iaddn=function(T){this.words[0]+=T;for(var L=0;L&lt;this.length&amp;&amp;this.words[L]&gt;=67108864;L++)this.words[L]-=67108864,L===this.length-1?this.words[L+1]=1:this.words[L+1]++;return this.length=Math.max(this.length,L+1),this},a.prototype.isubn=function(T){if(u(typeof T==&quot;number&quot;),u(T&lt;67108864),T&lt;0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var L=0;L&lt;this.length&amp;&amp;this.words[L]&lt;0;L++)this.words[L]+=67108864,this.words[L+1]-=1;return this.strip()},a.prototype.addn=function(T){return this.clone().iaddn(T)},a.prototype.subn=function(T){return this.clone().isubn(T)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(T,L,E){var j,k,N=T.length+E;this._expand(N);var C=0;for(j=0;j&lt;T.length;j++){k=(0|this.words[j+E])+C;var P=(0|T.words[j])*L;C=((k-=67108863&amp;P)&gt;&gt;26)-(P/67108864|0),this.words[j+E]=67108863&amp;k}for(;j&lt;this.length-E;j++)C=(k=(0|this.words[j+E])+C)&gt;&gt;26,this.words[j+E]=67108863&amp;k;if(C===0)return this.strip();for(u(C===-1),C=0,j=0;j&lt;this.length;j++)C=(k=-(0|this.words[j])+C)&gt;&gt;26,this.words[j]=67108863&amp;k;return this.negative=1,this.strip()},a.prototype._wordDiv=function(T,L){var E=(this.length,T.length),j=this.clone(),k=T,N=0|k.words[k.length-1];(E=26-this._countBits(N))!==0&amp;&amp;(k=k.ushln(E),j.iushln(E),N=0|k.words[k.length-1]);var C,P=j.length-k.length;if(L!==&quot;mod&quot;){(C=new a(null)).length=P+1,C.words=new Array(C.length);for(var D=0;D&lt;C.length;D++)C.words[D]=0}var z=j.clone()._ishlnsubmul(k,1,P);z.negative===0&amp;&amp;(j=z,C&amp;&amp;(C.words[P]=1));for(var Y=P-1;Y&gt;=0;Y--){var Z=67108864*(0|j.words[k.length+Y])+(0|j.words[k.length+Y-1]);for(Z=Math.min(Z/N|0,67108863),j._ishlnsubmul(k,Z,Y);j.negative!==0;)Z--,j.negative=0,j._ishlnsubmul(k,1,Y),j.isZero()||(j.negative^=1);C&amp;&amp;(C.words[Y]=Z)}return C&amp;&amp;C.strip(),j.strip(),L!==&quot;div&quot;&amp;&amp;E!==0&amp;&amp;j.iushrn(E),{div:C||null,mod:j}},a.prototype.divmod=function(T,L,E){return u(!T.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&amp;&amp;T.negative===0?(N=this.neg().divmod(T,L),L!==&quot;mod&quot;&amp;&amp;(j=N.div.neg()),L!==&quot;div&quot;&amp;&amp;(k=N.mod.neg(),E&amp;&amp;k.negative!==0&amp;&amp;k.iadd(T)),{div:j,mod:k}):this.negative===0&amp;&amp;T.negative!==0?(N=this.divmod(T.neg(),L),L!==&quot;mod&quot;&amp;&amp;(j=N.div.neg()),{div:j,mod:N.mod}):(this.negative&amp;T.negative)!=0?(N=this.neg().divmod(T.neg(),L),L!==&quot;div&quot;&amp;&amp;(k=N.mod.neg(),E&amp;&amp;k.negative!==0&amp;&amp;k.isub(T)),{div:N.div,mod:k}):T.length&gt;this.length||this.cmp(T)&lt;0?{div:new a(0),mod:this}:T.length===1?L===&quot;div&quot;?{div:this.divn(T.words[0]),mod:null}:L===&quot;mod&quot;?{div:null,mod:new a(this.modn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new a(this.modn(T.words[0]))}:this._wordDiv(T,L);var j,k,N},a.prototype.div=function(T){return this.divmod(T,&quot;div&quot;,!1).div},a.prototype.mod=function(T){return this.divmod(T,&quot;mod&quot;,!1).mod},a.prototype.umod=function(T){return this.divmod(T,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(T){var L=this.divmod(T);if(L.mod.isZero())return L.div;var E=L.div.negative!==0?L.mod.isub(T):L.mod,j=T.ushrn(1),k=T.andln(1),N=E.cmp(j);return N&lt;0||k===1&amp;&amp;N===0?L.div:L.div.negative!==0?L.div.isubn(1):L.div.iaddn(1)},a.prototype.modn=function(T){u(T&lt;=67108863);for(var L=(1&lt;&lt;26)%T,E=0,j=this.length-1;j&gt;=0;j--)E=(L*E+(0|this.words[j]))%T;return E},a.prototype.idivn=function(T){u(T&lt;=67108863);for(var L=0,E=this.length-1;E&gt;=0;E--){var j=(0|this.words[E])+67108864*L;this.words[E]=j/T|0,L=j%T}return this.strip()},a.prototype.divn=function(T){return this.clone().idivn(T)},a.prototype.egcd=function(T){u(T.negative===0),u(!T.isZero());var L=this,E=T.clone();L=L.negative!==0?L.umod(T):L.clone();for(var j=new a(1),k=new a(0),N=new a(0),C=new a(1),P=0;L.isEven()&amp;&amp;E.isEven();)L.iushrn(1),E.iushrn(1),++P;for(var D=E.clone(),z=L.clone();!L.isZero();){for(var Y=0,Z=1;(L.words[0]&amp;Z)==0&amp;&amp;Y&lt;26;++Y,Z&lt;&lt;=1);if(Y&gt;0)for(L.iushrn(Y);Y-- &gt;0;)(j.isOdd()||k.isOdd())&amp;&amp;(j.iadd(D),k.isub(z)),j.iushrn(1),k.iushrn(1);for(var ne=0,U=1;(E.words[0]&amp;U)==0&amp;&amp;ne&lt;26;++ne,U&lt;&lt;=1);if(ne&gt;0)for(E.iushrn(ne);ne-- &gt;0;)(N.isOdd()||C.isOdd())&amp;&amp;(N.iadd(D),C.isub(z)),N.iushrn(1),C.iushrn(1);L.cmp(E)&gt;=0?(L.isub(E),j.isub(N),k.isub(C)):(E.isub(L),N.isub(j),C.isub(k))}return{a:N,b:C,gcd:E.iushln(P)}},a.prototype._invmp=function(T){u(T.negative===0),u(!T.isZero());var L=this,E=T.clone();L=L.negative!==0?L.umod(T):L.clone();for(var j,k=new a(1),N=new a(0),C=E.clone();L.cmpn(1)&gt;0&amp;&amp;E.cmpn(1)&gt;0;){for(var P=0,D=1;(L.words[0]&amp;D)==0&amp;&amp;P&lt;26;++P,D&lt;&lt;=1);if(P&gt;0)for(L.iushrn(P);P-- &gt;0;)k.isOdd()&amp;&amp;k.iadd(C),k.iushrn(1);for(var z=0,Y=1;(E.words[0]&amp;Y)==0&amp;&amp;z&lt;26;++z,Y&lt;&lt;=1);if(z&gt;0)for(E.iushrn(z);z-- &gt;0;)N.isOdd()&amp;&amp;N.iadd(C),N.iushrn(1);L.cmp(E)&gt;=0?(L.isub(E),k.isub(N)):(E.isub(L),N.isub(k))}return(j=L.cmpn(1)===0?k:N).cmpn(0)&lt;0&amp;&amp;j.iadd(T),j},a.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var L=this.clone(),E=T.clone();L.negative=0,E.negative=0;for(var j=0;L.isEven()&amp;&amp;E.isEven();j++)L.iushrn(1),E.iushrn(1);for(;;){for(;L.isEven();)L.iushrn(1);for(;E.isEven();)E.iushrn(1);var k=L.cmp(E);if(k&lt;0){var N=L;L=E,E=N}else if(k===0||E.cmpn(1)===0)break;L.isub(E)}return E.iushln(j)},a.prototype.invm=function(T){return this.egcd(T).a.umod(T)},a.prototype.isEven=function(){return(1&amp;this.words[0])==0},a.prototype.isOdd=function(){return(1&amp;this.words[0])==1},a.prototype.andln=function(T){return this.words[0]&amp;T},a.prototype.bincn=function(T){u(typeof T==&quot;number&quot;);var L=T%26,E=(T-L)/26,j=1&lt;&lt;L;if(this.length&lt;=E)return this._expand(E+1),this.words[E]|=j,this;for(var k=j,N=E;k!==0&amp;&amp;N&lt;this.length;N++){var C=0|this.words[N];k=(C+=k)&gt;&gt;&gt;26,C&amp;=67108863,this.words[N]=C}return k!==0&amp;&amp;(this.words[N]=k,this.length++),this},a.prototype.isZero=function(){return this.length===1&amp;&amp;this.words[0]===0},a.prototype.cmpn=function(T){var L,E=T&lt;0;if(this.negative!==0&amp;&amp;!E)return-1;if(this.negative===0&amp;&amp;E)return 1;if(this.strip(),this.length&gt;1)L=1;else{E&amp;&amp;(T=-T),u(T&lt;=67108863,&quot;Number is too big&quot;);var j=0|this.words[0];L=j===T?0:j&lt;T?-1:1}return this.negative!==0?0|-L:L},a.prototype.cmp=function(T){if(this.negative!==0&amp;&amp;T.negative===0)return-1;if(this.negative===0&amp;&amp;T.negative!==0)return 1;var L=this.ucmp(T);return this.negative!==0?0|-L:L},a.prototype.ucmp=function(T){if(this.length&gt;T.length)return 1;if(this.length&lt;T.length)return-1;for(var L=0,E=this.length-1;E&gt;=0;E--){var j=0|this.words[E],k=0|T.words[E];if(j!==k){j&lt;k?L=-1:j&gt;k&amp;&amp;(L=1);break}}return L},a.prototype.gtn=function(T){return this.cmpn(T)===1},a.prototype.gt=function(T){return this.cmp(T)===1},a.prototype.gten=function(T){return this.cmpn(T)&gt;=0},a.prototype.gte=function(T){return this.cmp(T)&gt;=0},a.prototype.ltn=function(T){return this.cmpn(T)===-1},a.prototype.lt=function(T){return this.cmp(T)===-1},a.prototype.lten=function(T){return this.cmpn(T)&lt;=0},a.prototype.lte=function(T){return this.cmp(T)&lt;=0},a.prototype.eqn=function(T){return this.cmpn(T)===0},a.prototype.eq=function(T){return this.cmp(T)===0},a.red=function(T){return new B(T)},a.prototype.toRed=function(T){return u(!this.red,&quot;Already a number in reduction context&quot;),u(this.negative===0,&quot;red works only with positives&quot;),T.convertTo(this)._forceRed(T)},a.prototype.fromRed=function(){return u(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(T){return this.red=T,this},a.prototype.forceRed=function(T){return u(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(T)},a.prototype.redAdd=function(T){return u(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,T)},a.prototype.redIAdd=function(T){return u(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,T)},a.prototype.redSub=function(T){return u(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,T)},a.prototype.redISub=function(T){return u(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,T)},a.prototype.redShl=function(T){return u(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,T)},a.prototype.redMul=function(T){return u(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,T),this.red.mul(this,T)},a.prototype.redIMul=function(T){return u(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,T),this.red.imul(this,T)},a.prototype.redSqr=function(){return u(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(T){return u(this.red&amp;&amp;!T.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,T)};var A={k256:null,p224:null,p192:null,p25519:null};function I(T,L){this.name=T,this.p=new a(L,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function V(){I.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function F(){I.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function q(){I.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function H(){I.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function B(T){if(typeof T==&quot;string&quot;){var L=a._prime(T);this.m=L.p,this.prime=L}else u(T.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=T,this.prime=null}function K(T){B.call(this,T),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}I.prototype._tmp=function(){var T=new a(null);return T.words=new Array(Math.ceil(this.n/13)),T},I.prototype.ireduce=function(T){var L,E=T;do this.split(E,this.tmp),L=(E=(E=this.imulK(E)).iadd(this.tmp)).bitLength();while(L&gt;this.n);var j=L&lt;this.n?-1:E.ucmp(this.p);return j===0?(E.words[0]=0,E.length=1):j&gt;0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},I.prototype.split=function(T,L){T.iushrn(this.n,0,L)},I.prototype.imulK=function(T){return T.imul(this.k)},c(V,I),V.prototype.split=function(T,L){for(var E=Math.min(T.length,9),j=0;j&lt;E;j++)L.words[j]=T.words[j];if(L.length=E,T.length&lt;=9)return T.words[0]=0,void(T.length=1);var k=T.words[9];for(L.words[L.length++]=4194303&amp;k,j=10;j&lt;T.length;j++){var N=0|T.words[j];T.words[j-10]=(4194303&amp;N)&lt;&lt;4|k&gt;&gt;&gt;22,k=N}k&gt;&gt;&gt;=22,T.words[j-10]=k,k===0&amp;&amp;T.length&gt;10?T.length-=10:T.length-=9},V.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var L=0,E=0;E&lt;T.length;E++){var j=0|T.words[E];L+=977*j,T.words[E]=67108863&amp;L,L=64*j+(L/67108864|0)}return T.words[T.length-1]===0&amp;&amp;(T.length--,T.words[T.length-1]===0&amp;&amp;T.length--),T},c(F,I),c(q,I),c(H,I),H.prototype.imulK=function(T){for(var L=0,E=0;E&lt;T.length;E++){var j=19*(0|T.words[E])+L,k=67108863&amp;j;j&gt;&gt;&gt;=26,T.words[E]=k,L=j}return L!==0&amp;&amp;(T.words[T.length++]=L),T},a._prime=function(T){if(A[T])return A[T];var L;if(T===&quot;k256&quot;)L=new V;else if(T===&quot;p224&quot;)L=new F;else if(T===&quot;p192&quot;)L=new q;else{if(T!==&quot;p25519&quot;)throw new Error(&quot;Unknown prime &quot;+T);L=new H}return A[T]=L,L},B.prototype._verify1=function(T){u(T.negative===0,&quot;red works only with positives&quot;),u(T.red,&quot;red works only with red numbers&quot;)},B.prototype._verify2=function(T,L){u((T.negative|L.negative)==0,&quot;red works only with positives&quot;),u(T.red&amp;&amp;T.red===L.red,&quot;red works only with red numbers&quot;)},B.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):T.umod(this.m)._forceRed(this)},B.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},B.prototype.add=function(T,L){this._verify2(T,L);var E=T.add(L);return E.cmp(this.m)&gt;=0&amp;&amp;E.isub(this.m),E._forceRed(this)},B.prototype.iadd=function(T,L){this._verify2(T,L);var E=T.iadd(L);return E.cmp(this.m)&gt;=0&amp;&amp;E.isub(this.m),E},B.prototype.sub=function(T,L){this._verify2(T,L);var E=T.sub(L);return E.cmpn(0)&lt;0&amp;&amp;E.iadd(this.m),E._forceRed(this)},B.prototype.isub=function(T,L){this._verify2(T,L);var E=T.isub(L);return E.cmpn(0)&lt;0&amp;&amp;E.iadd(this.m),E},B.prototype.shl=function(T,L){return this._verify1(T),this.imod(T.ushln(L))},B.prototype.imul=function(T,L){return this._verify2(T,L),this.imod(T.imul(L))},B.prototype.mul=function(T,L){return this._verify2(T,L),this.imod(T.mul(L))},B.prototype.isqr=function(T){return this.imul(T,T.clone())},B.prototype.sqr=function(T){return this.mul(T,T)},B.prototype.sqrt=function(T){if(T.isZero())return T.clone();var L=this.m.andln(3);if(u(L%2==1),L===3){var E=this.m.add(new a(1)).iushrn(2);return this.pow(T,E)}for(var j=this.m.subn(1),k=0;!j.isZero()&amp;&amp;j.andln(1)===0;)k++,j.iushrn(1);u(!j.isZero());var N=new a(1).toRed(this),C=N.redNeg(),P=this.m.subn(1).iushrn(1),D=this.m.bitLength();for(D=new a(2*D*D).toRed(this);this.pow(D,P).cmp(C)!==0;)D.redIAdd(C);for(var z=this.pow(D,j),Y=this.pow(T,j.addn(1).iushrn(1)),Z=this.pow(T,j),ne=k;Z.cmp(N)!==0;){for(var U=Z,J=0;U.cmp(N)!==0;J++)U=U.redSqr();u(J&lt;ne);var $=this.pow(z,new a(1).iushln(ne-J-1));Y=Y.redMul($),z=$.redSqr(),Z=Z.redMul(z),ne=J}return Y},B.prototype.invm=function(T){var L=T._invmp(this.m);return L.negative!==0?(L.negative=0,this.imod(L).redNeg()):this.imod(L)},B.prototype.pow=function(T,L){if(L.isZero())return new a(1).toRed(this);if(L.cmpn(1)===0)return T.clone();var E=new Array(16);E[0]=new a(1).toRed(this),E[1]=T;for(var j=2;j&lt;E.length;j++)E[j]=this.mul(E[j-1],T);var k=E[0],N=0,C=0,P=L.bitLength()%26;for(P===0&amp;&amp;(P=26),j=L.length-1;j&gt;=0;j--){for(var D=L.words[j],z=P-1;z&gt;=0;z--){var Y=D&gt;&gt;z&amp;1;k!==E[0]&amp;&amp;(k=this.sqr(k)),Y!==0||N!==0?(N&lt;&lt;=1,N|=Y,(++C===4||j===0&amp;&amp;z===0)&amp;&amp;(k=this.mul(k,E[N]),C=0,N=0)):C=0}P=26}return k},B.prototype.convertTo=function(T){var L=T.umod(this.m);return L===T?L.clone():L},B.prototype.convertFrom=function(T){var L=T.clone();return L.red=null,L},a.mont=function(T){return new K(T)},c(K,B),K.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},K.prototype.convertFrom=function(T){var L=this.imod(T.mul(this.rinv));return L.red=null,L},K.prototype.imul=function(T,L){if(T.isZero()||L.isZero())return T.words[0]=0,T.length=1,T;var E=T.imul(L),j=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=E.isub(j).iushrn(this.shift),N=k;return k.cmp(this.m)&gt;=0?N=k.isub(this.m):k.cmpn(0)&lt;0&amp;&amp;(N=k.iadd(this.m)),N._forceRed(this)},K.prototype.mul=function(T,L){if(T.isZero()||L.isZero())return new a(0)._forceRed(this);var E=T.mul(L),j=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=E.isub(j).iushrn(this.shift),N=k;return k.cmp(this.m)&gt;=0?N=k.isub(this.m):k.cmpn(0)&lt;0&amp;&amp;(N=k.iadd(this.m)),N._forceRed(this)},K.prototype.invm=function(T){return this.imod(T._invmp(this.m).mul(this.r2))._forceRed(this)}})(n===void 0||n)},{buffer:188}],185:[function(t,n,o){o.byteLength=function(m){var p=f(m),x=p[0],g=p[1];return 3*(x+g)/4-g},o.toByteArray=function(m){var p,x,g=f(m),y=g[0],v=g[1],_=new u((function(I,V,F){return 3*(V+F)/4-F})(0,y,v)),S=0,A=v&gt;0?y-4:y;for(x=0;x&lt;A;x+=4)p=l[m.charCodeAt(x)]&lt;&lt;18|l[m.charCodeAt(x+1)]&lt;&lt;12|l[m.charCodeAt(x+2)]&lt;&lt;6|l[m.charCodeAt(x+3)],_[S++]=p&gt;&gt;16&amp;255,_[S++]=p&gt;&gt;8&amp;255,_[S++]=255&amp;p;return v===2&amp;&amp;(p=l[m.charCodeAt(x)]&lt;&lt;2|l[m.charCodeAt(x+1)]&gt;&gt;4,_[S++]=255&amp;p),v===1&amp;&amp;(p=l[m.charCodeAt(x)]&lt;&lt;10|l[m.charCodeAt(x+1)]&lt;&lt;4|l[m.charCodeAt(x+2)]&gt;&gt;2,_[S++]=p&gt;&gt;8&amp;255,_[S++]=255&amp;p),_},o.fromByteArray=function(m){for(var p,x=m.length,g=x%3,y=[],v=0,_=x-g;v&lt;_;v+=16383)y.push(h(m,v,v+16383&gt;_?_:v+16383));return g===1?(p=m[x-1],y.push(s[p&gt;&gt;2]+s[p&lt;&lt;4&amp;63]+&quot;==&quot;)):g===2&amp;&amp;(p=(m[x-2]&lt;&lt;8)+m[x-1],y.push(s[p&gt;&gt;10]+s[p&gt;&gt;4&amp;63]+s[p&lt;&lt;2&amp;63]+&quot;=&quot;)),y.join(&quot;&quot;)};for(var s=[],l=[],u=typeof Uint8Array&lt;&quot;u&quot;?Uint8Array:Array,c=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,a=0,d=c.length;a&lt;d;++a)s[a]=c[a],l[c.charCodeAt(a)]=a;function f(m){var p=m.length;if(p%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var x=m.indexOf(&quot;=&quot;);return x===-1&amp;&amp;(x=p),[x,x===p?0:4-x%4]}function h(m,p,x){for(var g,y,v=[],_=p;_&lt;x;_+=3)g=(m[_]&lt;&lt;16&amp;16711680)+(m[_+1]&lt;&lt;8&amp;65280)+(255&amp;m[_+2]),v.push(s[(y=g)&gt;&gt;18&amp;63]+s[y&gt;&gt;12&amp;63]+s[y&gt;&gt;6&amp;63]+s[63&amp;y]);return v.join(&quot;&quot;)}l[45]=62,l[95]=63},{}],186:[function(t,n,o){(function(s,l){function u(E,j){if(!E)throw new Error(j||&quot;Assertion failed&quot;)}function c(E,j){E.super_=j;var k=function(){};k.prototype=j.prototype,E.prototype=new k,E.prototype.constructor=E}function a(E,j,k){if(a.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&amp;&amp;(j!==&quot;le&quot;&amp;&amp;j!==&quot;be&quot;||(k=j,j=10),this._init(E||0,j||10,k||&quot;be&quot;))}var d;typeof s==&quot;object&quot;?s.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{d=typeof window&lt;&quot;u&quot;&amp;&amp;window.Buffer!==void 0?window.Buffer:t(&quot;buffer&quot;).Buffer}catch{}function f(E,j){var k=E.charCodeAt(j);return k&gt;=48&amp;&amp;k&lt;=57?k-48:k&gt;=65&amp;&amp;k&lt;=70?k-55:k&gt;=97&amp;&amp;k&lt;=102?k-87:void u(!1,&quot;Invalid character in &quot;+E)}function h(E,j,k){var N=f(E,k);return k-1&gt;=j&amp;&amp;(N|=f(E,k-1)&lt;&lt;4),N}function m(E,j,k,N){for(var C=0,P=0,D=Math.min(E.length,k),z=j;z&lt;D;z++){var Y=E.charCodeAt(z)-48;C*=N,P=Y&gt;=49?Y-49+10:Y&gt;=17?Y-17+10:Y,u(Y&gt;=0&amp;&amp;P&lt;N,&quot;Invalid character&quot;),C+=P}return C}function p(E,j){E.words=j.words,E.length=j.length,E.negative=j.negative,E.red=j.red}if(a.isBN=function(E){return E instanceof a||E!==null&amp;&amp;typeof E==&quot;object&quot;&amp;&amp;E.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(E.words)},a.max=function(E,j){return E.cmp(j)&gt;0?E:j},a.min=function(E,j){return E.cmp(j)&lt;0?E:j},a.prototype._init=function(E,j,k){if(typeof E==&quot;number&quot;)return this._initNumber(E,j,k);if(typeof E==&quot;object&quot;)return this._initArray(E,j,k);j===&quot;hex&quot;&amp;&amp;(j=16),u(j===(0|j)&amp;&amp;j&gt;=2&amp;&amp;j&lt;=36);var N=0;(E=E.toString().replace(/\s+/g,&quot;&quot;))[0]===&quot;-&quot;&amp;&amp;(N++,this.negative=1),N&lt;E.length&amp;&amp;(j===16?this._parseHex(E,N,k):(this._parseBase(E,j,N),k===&quot;le&quot;&amp;&amp;this._initArray(this.toArray(),j,k)))},a.prototype._initNumber=function(E,j,k){E&lt;0&amp;&amp;(this.negative=1,E=-E),E&lt;67108864?(this.words=[67108863&amp;E],this.length=1):E&lt;4503599627370496?(this.words=[67108863&amp;E,E/67108864&amp;67108863],this.length=2):(u(E&lt;9007199254740992),this.words=[67108863&amp;E,E/67108864&amp;67108863,1],this.length=3),k===&quot;le&quot;&amp;&amp;this._initArray(this.toArray(),j,k)},a.prototype._initArray=function(E,j,k){if(u(typeof E.length==&quot;number&quot;),E.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(E.length/3),this.words=new Array(this.length);for(var N=0;N&lt;this.length;N++)this.words[N]=0;var C,P,D=0;if(k===&quot;be&quot;)for(N=E.length-1,C=0;N&gt;=0;N-=3)P=E[N]|E[N-1]&lt;&lt;8|E[N-2]&lt;&lt;16,this.words[C]|=P&lt;&lt;D&amp;67108863,this.words[C+1]=P&gt;&gt;&gt;26-D&amp;67108863,(D+=24)&gt;=26&amp;&amp;(D-=26,C++);else if(k===&quot;le&quot;)for(N=0,C=0;N&lt;E.length;N+=3)P=E[N]|E[N+1]&lt;&lt;8|E[N+2]&lt;&lt;16,this.words[C]|=P&lt;&lt;D&amp;67108863,this.words[C+1]=P&gt;&gt;&gt;26-D&amp;67108863,(D+=24)&gt;=26&amp;&amp;(D-=26,C++);return this._strip()},a.prototype._parseHex=function(E,j,k){this.length=Math.ceil((E.length-j)/6),this.words=new Array(this.length);for(var N=0;N&lt;this.length;N++)this.words[N]=0;var C,P=0,D=0;if(k===&quot;be&quot;)for(N=E.length-1;N&gt;=j;N-=2)C=h(E,j,N)&lt;&lt;P,this.words[D]|=67108863&amp;C,P&gt;=18?(P-=18,D+=1,this.words[D]|=C&gt;&gt;&gt;26):P+=8;else for(N=(E.length-j)%2==0?j+1:j;N&lt;E.length;N+=2)C=h(E,j,N)&lt;&lt;P,this.words[D]|=67108863&amp;C,P&gt;=18?(P-=18,D+=1,this.words[D]|=C&gt;&gt;&gt;26):P+=8;this._strip()},a.prototype._parseBase=function(E,j,k){this.words=[0],this.length=1;for(var N=0,C=1;C&lt;=67108863;C*=j)N++;N--,C=C/j|0;for(var P=E.length-k,D=P%N,z=Math.min(P,P-D)+k,Y=0,Z=k;Z&lt;z;Z+=N)Y=m(E,Z,Z+N,j),this.imuln(C),this.words[0]+Y&lt;67108864?this.words[0]+=Y:this._iaddn(Y);if(D!==0){var ne=1;for(Y=m(E,Z,E.length,j),Z=0;Z&lt;D;Z++)ne*=j;this.imuln(ne),this.words[0]+Y&lt;67108864?this.words[0]+=Y:this._iaddn(Y)}this._strip()},a.prototype.copy=function(E){E.words=new Array(this.length);for(var j=0;j&lt;this.length;j++)E.words[j]=this.words[j];E.length=this.length,E.negative=this.negative,E.red=this.red},a.prototype._move=function(E){p(E,this)},a.prototype.clone=function(){var E=new a(null);return this.copy(E),E},a.prototype._expand=function(E){for(;this.length&lt;E;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length&gt;1&amp;&amp;this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&amp;&amp;this.words[0]===0&amp;&amp;(this.negative=0),this},typeof Symbol&lt;&quot;u&quot;&amp;&amp;typeof Symbol.for==&quot;function&quot;)try{a.prototype[Symbol.for(&quot;nodejs.util.inspect.custom&quot;)]=x}catch{a.prototype.inspect=x}else a.prototype.inspect=x;function x(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;}var g=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(E,j){var k;if(j=0|j||1,(E=E||10)===16||E===&quot;hex&quot;){k=&quot;&quot;;for(var N=0,C=0,P=0;P&lt;this.length;P++){var D=this.words[P],z=(16777215&amp;(D&lt;&lt;N|C)).toString(16);C=D&gt;&gt;&gt;24-N&amp;16777215,(N+=2)&gt;=26&amp;&amp;(N-=26,P--),k=C!==0||P!==this.length-1?g[6-z.length]+z+k:z+k}for(C!==0&amp;&amp;(k=C.toString(16)+k);k.length%j!=0;)k=&quot;0&quot;+k;return this.negative!==0&amp;&amp;(k=&quot;-&quot;+k),k}if(E===(0|E)&amp;&amp;E&gt;=2&amp;&amp;E&lt;=36){var Y=y[E],Z=v[E];k=&quot;&quot;;var ne=this.clone();for(ne.negative=0;!ne.isZero();){var U=ne.modrn(Z).toString(E);k=(ne=ne.idivn(Z)).isZero()?U+k:g[Y-U.length]+U+k}for(this.isZero()&amp;&amp;(k=&quot;0&quot;+k);k.length%j!=0;)k=&quot;0&quot;+k;return this.negative!==0&amp;&amp;(k=&quot;-&quot;+k),k}u(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var E=this.words[0];return this.length===2?E+=67108864*this.words[1]:this.length===3&amp;&amp;this.words[2]===1?E+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;u(!1,&quot;Number can only safely store up to 53 bits&quot;),this.negative!==0?-E:E},a.prototype.toJSON=function(){return this.toString(16,2)},d&amp;&amp;(a.prototype.toBuffer=function(E,j){return this.toArrayLike(d,E,j)}),a.prototype.toArray=function(E,j){return this.toArrayLike(Array,E,j)};function _(E,j,k){k.negative=j.negative^E.negative;var N=E.length+j.length|0;k.length=N,N=N-1|0;var C=0|E.words[0],P=0|j.words[0],D=C*P,z=67108863&amp;D,Y=D/67108864|0;k.words[0]=z;for(var Z=1;Z&lt;N;Z++){for(var ne=Y&gt;&gt;&gt;26,U=67108863&amp;Y,J=Math.min(Z,j.length-1),$=Math.max(0,Z-E.length+1);$&lt;=J;$++){var R=Z-$|0;ne+=(D=(C=0|E.words[R])*(P=0|j.words[$])+U)/67108864|0,U=67108863&amp;D}k.words[Z]=0|U,Y=0|ne}return Y!==0?k.words[Z]=0|Y:k.length--,k._strip()}a.prototype.toArrayLike=function(E,j,k){this._strip();var N=this.byteLength(),C=k||Math.max(1,N);u(N&lt;=C,&quot;byte array longer than desired length&quot;),u(C&gt;0,&quot;Requested array length &lt;= 0&quot;);var P=(function(D,z){return D.allocUnsafe?D.allocUnsafe(z):new D(z)})(E,C);return this[&quot;_toArrayLike&quot;+(j===&quot;le&quot;?&quot;LE&quot;:&quot;BE&quot;)](P,N),P},a.prototype._toArrayLikeLE=function(E,j){for(var k=0,N=0,C=0,P=0;C&lt;this.length;C++){var D=this.words[C]&lt;&lt;P|N;E[k++]=255&amp;D,k&lt;E.length&amp;&amp;(E[k++]=D&gt;&gt;8&amp;255),k&lt;E.length&amp;&amp;(E[k++]=D&gt;&gt;16&amp;255),P===6?(k&lt;E.length&amp;&amp;(E[k++]=D&gt;&gt;24&amp;255),N=0,P=0):(N=D&gt;&gt;&gt;24,P+=2)}if(k&lt;E.length)for(E[k++]=N;k&lt;E.length;)E[k++]=0},a.prototype._toArrayLikeBE=function(E,j){for(var k=E.length-1,N=0,C=0,P=0;C&lt;this.length;C++){var D=this.words[C]&lt;&lt;P|N;E[k--]=255&amp;D,k&gt;=0&amp;&amp;(E[k--]=D&gt;&gt;8&amp;255),k&gt;=0&amp;&amp;(E[k--]=D&gt;&gt;16&amp;255),P===6?(k&gt;=0&amp;&amp;(E[k--]=D&gt;&gt;24&amp;255),N=0,P=0):(N=D&gt;&gt;&gt;24,P+=2)}if(k&gt;=0)for(E[k--]=N;k&gt;=0;)E[k--]=0},Math.clz32?a.prototype._countBits=function(E){return 32-Math.clz32(E)}:a.prototype._countBits=function(E){var j=E,k=0;return j&gt;=4096&amp;&amp;(k+=13,j&gt;&gt;&gt;=13),j&gt;=64&amp;&amp;(k+=7,j&gt;&gt;&gt;=7),j&gt;=8&amp;&amp;(k+=4,j&gt;&gt;&gt;=4),j&gt;=2&amp;&amp;(k+=2,j&gt;&gt;&gt;=2),k+j},a.prototype._zeroBits=function(E){if(E===0)return 26;var j=E,k=0;return(8191&amp;j)==0&amp;&amp;(k+=13,j&gt;&gt;&gt;=13),(127&amp;j)==0&amp;&amp;(k+=7,j&gt;&gt;&gt;=7),(15&amp;j)==0&amp;&amp;(k+=4,j&gt;&gt;&gt;=4),(3&amp;j)==0&amp;&amp;(k+=2,j&gt;&gt;&gt;=2),(1&amp;j)==0&amp;&amp;k++,k},a.prototype.bitLength=function(){var E=this.words[this.length-1],j=this._countBits(E);return 26*(this.length-1)+j},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E=0,j=0;j&lt;this.length;j++){var k=this._zeroBits(this.words[j]);if(E+=k,k!==26)break}return E},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(E){return this.negative!==0?this.abs().inotn(E).iaddn(1):this.clone()},a.prototype.fromTwos=function(E){return this.testn(E-1)?this.notn(E).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(E){for(;this.length&lt;E.length;)this.words[this.length++]=0;for(var j=0;j&lt;E.length;j++)this.words[j]=this.words[j]|E.words[j];return this._strip()},a.prototype.ior=function(E){return u((this.negative|E.negative)==0),this.iuor(E)},a.prototype.or=function(E){return this.length&gt;E.length?this.clone().ior(E):E.clone().ior(this)},a.prototype.uor=function(E){return this.length&gt;E.length?this.clone().iuor(E):E.clone().iuor(this)},a.prototype.iuand=function(E){var j;j=this.length&gt;E.length?E:this;for(var k=0;k&lt;j.length;k++)this.words[k]=this.words[k]&amp;E.words[k];return this.length=j.length,this._strip()},a.prototype.iand=function(E){return u((this.negative|E.negative)==0),this.iuand(E)},a.prototype.and=function(E){return this.length&gt;E.length?this.clone().iand(E):E.clone().iand(this)},a.prototype.uand=function(E){return this.length&gt;E.length?this.clone().iuand(E):E.clone().iuand(this)},a.prototype.iuxor=function(E){var j,k;this.length&gt;E.length?(j=this,k=E):(j=E,k=this);for(var N=0;N&lt;k.length;N++)this.words[N]=j.words[N]^k.words[N];if(this!==j)for(;N&lt;j.length;N++)this.words[N]=j.words[N];return this.length=j.length,this._strip()},a.prototype.ixor=function(E){return u((this.negative|E.negative)==0),this.iuxor(E)},a.prototype.xor=function(E){return this.length&gt;E.length?this.clone().ixor(E):E.clone().ixor(this)},a.prototype.uxor=function(E){return this.length&gt;E.length?this.clone().iuxor(E):E.clone().iuxor(this)},a.prototype.inotn=function(E){u(typeof E==&quot;number&quot;&amp;&amp;E&gt;=0);var j=0|Math.ceil(E/26),k=E%26;this._expand(j),k&gt;0&amp;&amp;j--;for(var N=0;N&lt;j;N++)this.words[N]=67108863&amp;~this.words[N];return k&gt;0&amp;&amp;(this.words[N]=~this.words[N]&amp;67108863&gt;&gt;26-k),this._strip()},a.prototype.notn=function(E){return this.clone().inotn(E)},a.prototype.setn=function(E,j){u(typeof E==&quot;number&quot;&amp;&amp;E&gt;=0);var k=E/26|0,N=E%26;return this._expand(k+1),this.words[k]=j?this.words[k]|1&lt;&lt;N:this.words[k]&amp;~(1&lt;&lt;N),this._strip()},a.prototype.iadd=function(E){var j,k,N;if(this.negative!==0&amp;&amp;E.negative===0)return this.negative=0,j=this.isub(E),this.negative^=1,this._normSign();if(this.negative===0&amp;&amp;E.negative!==0)return E.negative=0,j=this.isub(E),E.negative=1,j._normSign();this.length&gt;E.length?(k=this,N=E):(k=E,N=this);for(var C=0,P=0;P&lt;N.length;P++)j=(0|k.words[P])+(0|N.words[P])+C,this.words[P]=67108863&amp;j,C=j&gt;&gt;&gt;26;for(;C!==0&amp;&amp;P&lt;k.length;P++)j=(0|k.words[P])+C,this.words[P]=67108863&amp;j,C=j&gt;&gt;&gt;26;if(this.length=k.length,C!==0)this.words[this.length]=C,this.length++;else if(k!==this)for(;P&lt;k.length;P++)this.words[P]=k.words[P];return this},a.prototype.add=function(E){var j;return E.negative!==0&amp;&amp;this.negative===0?(E.negative=0,j=this.sub(E),E.negative^=1,j):E.negative===0&amp;&amp;this.negative!==0?(this.negative=0,j=E.sub(this),this.negative=1,j):this.length&gt;E.length?this.clone().iadd(E):E.clone().iadd(this)},a.prototype.isub=function(E){if(E.negative!==0){E.negative=0;var j=this.iadd(E);return E.negative=1,j._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(E),this.negative=1,this._normSign();var k,N,C=this.cmp(E);if(C===0)return this.negative=0,this.length=1,this.words[0]=0,this;C&gt;0?(k=this,N=E):(k=E,N=this);for(var P=0,D=0;D&lt;N.length;D++)P=(j=(0|k.words[D])-(0|N.words[D])+P)&gt;&gt;26,this.words[D]=67108863&amp;j;for(;P!==0&amp;&amp;D&lt;k.length;D++)P=(j=(0|k.words[D])+P)&gt;&gt;26,this.words[D]=67108863&amp;j;if(P===0&amp;&amp;D&lt;k.length&amp;&amp;k!==this)for(;D&lt;k.length;D++)this.words[D]=k.words[D];return this.length=Math.max(this.length,D),k!==this&amp;&amp;(this.negative=1),this._strip()},a.prototype.sub=function(E){return this.clone().isub(E)};var S=function(E,j,k){var N,C,P,D=E.words,z=j.words,Y=k.words,Z=0,ne=0|D[0],U=8191&amp;ne,J=ne&gt;&gt;&gt;13,$=0|D[1],R=8191&amp;$,X=$&gt;&gt;&gt;13,re=0|D[2],Q=8191&amp;re,te=re&gt;&gt;&gt;13,ie=0|D[3],de=8191&amp;ie,ce=ie&gt;&gt;&gt;13,se=0|D[4],fe=8191&amp;se,le=se&gt;&gt;&gt;13,ge=0|D[5],xe=8191&amp;ge,pe=ge&gt;&gt;&gt;13,ue=0|D[6],we=8191&amp;ue,ke=ue&gt;&gt;&gt;13,De=0|D[7],Le=8191&amp;De,ze=De&gt;&gt;&gt;13,Oe=0|D[8],Ve=8191&amp;Oe,Qe=Oe&gt;&gt;&gt;13,Ze=0|D[9],Je=8191&amp;Ze,qe=Ze&gt;&gt;&gt;13,tt=0|z[0],nt=8191&amp;tt,Me=tt&gt;&gt;&gt;13,st=0|z[1],$t=8191&amp;st,ft=st&gt;&gt;&gt;13,zt=0|z[2],Bt=8191&amp;zt,Ct=zt&gt;&gt;&gt;13,rr=0|z[3],Gt=8191&amp;rr,_t=rr&gt;&gt;&gt;13,Rt=0|z[4],Jt=8191&amp;Rt,it=Rt&gt;&gt;&gt;13,Ut=0|z[5],Xt=8191&amp;Ut,Mt=Ut&gt;&gt;&gt;13,be=0|z[6],Ne=8191&amp;be,Re=be&gt;&gt;&gt;13,Ge=0|z[7],vt=8191&amp;Ge,rt=Ge&gt;&gt;&gt;13,Pt=0|z[8],jt=8191&amp;Pt,at=Pt&gt;&gt;&gt;13,Ot=0|z[9],At=8191&amp;Ot,Vt=Ot&gt;&gt;&gt;13;k.negative=E.negative^j.negative,k.length=19;var dr=(Z+(N=Math.imul(U,nt))|0)+((8191&amp;(C=(C=Math.imul(U,Me))+Math.imul(J,nt)|0))&lt;&lt;13)|0;Z=((P=Math.imul(J,Me))+(C&gt;&gt;&gt;13)|0)+(dr&gt;&gt;&gt;26)|0,dr&amp;=67108863,N=Math.imul(R,nt),C=(C=Math.imul(R,Me))+Math.imul(X,nt)|0,P=Math.imul(X,Me);var sr=(Z+(N=N+Math.imul(U,$t)|0)|0)+((8191&amp;(C=(C=C+Math.imul(U,ft)|0)+Math.imul(J,$t)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(J,ft)|0)+(C&gt;&gt;&gt;13)|0)+(sr&gt;&gt;&gt;26)|0,sr&amp;=67108863,N=Math.imul(Q,nt),C=(C=Math.imul(Q,Me))+Math.imul(te,nt)|0,P=Math.imul(te,Me),N=N+Math.imul(R,$t)|0,C=(C=C+Math.imul(R,ft)|0)+Math.imul(X,$t)|0,P=P+Math.imul(X,ft)|0;var _r=(Z+(N=N+Math.imul(U,Bt)|0)|0)+((8191&amp;(C=(C=C+Math.imul(U,Ct)|0)+Math.imul(J,Bt)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(J,Ct)|0)+(C&gt;&gt;&gt;13)|0)+(_r&gt;&gt;&gt;26)|0,_r&amp;=67108863,N=Math.imul(de,nt),C=(C=Math.imul(de,Me))+Math.imul(ce,nt)|0,P=Math.imul(ce,Me),N=N+Math.imul(Q,$t)|0,C=(C=C+Math.imul(Q,ft)|0)+Math.imul(te,$t)|0,P=P+Math.imul(te,ft)|0,N=N+Math.imul(R,Bt)|0,C=(C=C+Math.imul(R,Ct)|0)+Math.imul(X,Bt)|0,P=P+Math.imul(X,Ct)|0;var fr=(Z+(N=N+Math.imul(U,Gt)|0)|0)+((8191&amp;(C=(C=C+Math.imul(U,_t)|0)+Math.imul(J,Gt)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(J,_t)|0)+(C&gt;&gt;&gt;13)|0)+(fr&gt;&gt;&gt;26)|0,fr&amp;=67108863,N=Math.imul(fe,nt),C=(C=Math.imul(fe,Me))+Math.imul(le,nt)|0,P=Math.imul(le,Me),N=N+Math.imul(de,$t)|0,C=(C=C+Math.imul(de,ft)|0)+Math.imul(ce,$t)|0,P=P+Math.imul(ce,ft)|0,N=N+Math.imul(Q,Bt)|0,C=(C=C+Math.imul(Q,Ct)|0)+Math.imul(te,Bt)|0,P=P+Math.imul(te,Ct)|0,N=N+Math.imul(R,Gt)|0,C=(C=C+Math.imul(R,_t)|0)+Math.imul(X,Gt)|0,P=P+Math.imul(X,_t)|0;var Yr=(Z+(N=N+Math.imul(U,Jt)|0)|0)+((8191&amp;(C=(C=C+Math.imul(U,it)|0)+Math.imul(J,Jt)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(J,it)|0)+(C&gt;&gt;&gt;13)|0)+(Yr&gt;&gt;&gt;26)|0,Yr&amp;=67108863,N=Math.imul(xe,nt),C=(C=Math.imul(xe,Me))+Math.imul(pe,nt)|0,P=Math.imul(pe,Me),N=N+Math.imul(fe,$t)|0,C=(C=C+Math.imul(fe,ft)|0)+Math.imul(le,$t)|0,P=P+Math.imul(le,ft)|0,N=N+Math.imul(de,Bt)|0,C=(C=C+Math.imul(de,Ct)|0)+Math.imul(ce,Bt)|0,P=P+Math.imul(ce,Ct)|0,N=N+Math.imul(Q,Gt)|0,C=(C=C+Math.imul(Q,_t)|0)+Math.imul(te,Gt)|0,P=P+Math.imul(te,_t)|0,N=N+Math.imul(R,Jt)|0,C=(C=C+Math.imul(R,it)|0)+Math.imul(X,Jt)|0,P=P+Math.imul(X,it)|0;var he=(Z+(N=N+Math.imul(U,Xt)|0)|0)+((8191&amp;(C=(C=C+Math.imul(U,Mt)|0)+Math.imul(J,Xt)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(J,Mt)|0)+(C&gt;&gt;&gt;13)|0)+(he&gt;&gt;&gt;26)|0,he&amp;=67108863,N=Math.imul(we,nt),C=(C=Math.imul(we,Me))+Math.imul(ke,nt)|0,P=Math.imul(ke,Me),N=N+Math.imul(xe,$t)|0,C=(C=C+Math.imul(xe,ft)|0)+Math.imul(pe,$t)|0,P=P+Math.imul(pe,ft)|0,N=N+Math.imul(fe,Bt)|0,C=(C=C+Math.imul(fe,Ct)|0)+Math.imul(le,Bt)|0,P=P+Math.imul(le,Ct)|0,N=N+Math.imul(de,Gt)|0,C=(C=C+Math.imul(de,_t)|0)+Math.imul(ce,Gt)|0,P=P+Math.imul(ce,_t)|0,N=N+Math.imul(Q,Jt)|0,C=(C=C+Math.imul(Q,it)|0)+Math.imul(te,Jt)|0,P=P+Math.imul(te,it)|0,N=N+Math.imul(R,Xt)|0,C=(C=C+Math.imul(R,Mt)|0)+Math.imul(X,Xt)|0,P=P+Math.imul(X,Mt)|0;var je=(Z+(N=N+Math.imul(U,Ne)|0)|0)+((8191&amp;(C=(C=C+Math.imul(U,Re)|0)+Math.imul(J,Ne)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(J,Re)|0)+(C&gt;&gt;&gt;13)|0)+(je&gt;&gt;&gt;26)|0,je&amp;=67108863,N=Math.imul(Le,nt),C=(C=Math.imul(Le,Me))+Math.imul(ze,nt)|0,P=Math.imul(ze,Me),N=N+Math.imul(we,$t)|0,C=(C=C+Math.imul(we,ft)|0)+Math.imul(ke,$t)|0,P=P+Math.imul(ke,ft)|0,N=N+Math.imul(xe,Bt)|0,C=(C=C+Math.imul(xe,Ct)|0)+Math.imul(pe,Bt)|0,P=P+Math.imul(pe,Ct)|0,N=N+Math.imul(fe,Gt)|0,C=(C=C+Math.imul(fe,_t)|0)+Math.imul(le,Gt)|0,P=P+Math.imul(le,_t)|0,N=N+Math.imul(de,Jt)|0,C=(C=C+Math.imul(de,it)|0)+Math.imul(ce,Jt)|0,P=P+Math.imul(ce,it)|0,N=N+Math.imul(Q,Xt)|0,C=(C=C+Math.imul(Q,Mt)|0)+Math.imul(te,Xt)|0,P=P+Math.imul(te,Mt)|0,N=N+Math.imul(R,Ne)|0,C=(C=C+Math.imul(R,Re)|0)+Math.imul(X,Ne)|0,P=P+Math.imul(X,Re)|0;var Fe=(Z+(N=N+Math.imul(U,vt)|0)|0)+((8191&amp;(C=(C=C+Math.imul(U,rt)|0)+Math.imul(J,vt)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(J,rt)|0)+(C&gt;&gt;&gt;13)|0)+(Fe&gt;&gt;&gt;26)|0,Fe&amp;=67108863,N=Math.imul(Ve,nt),C=(C=Math.imul(Ve,Me))+Math.imul(Qe,nt)|0,P=Math.imul(Qe,Me),N=N+Math.imul(Le,$t)|0,C=(C=C+Math.imul(Le,ft)|0)+Math.imul(ze,$t)|0,P=P+Math.imul(ze,ft)|0,N=N+Math.imul(we,Bt)|0,C=(C=C+Math.imul(we,Ct)|0)+Math.imul(ke,Bt)|0,P=P+Math.imul(ke,Ct)|0,N=N+Math.imul(xe,Gt)|0,C=(C=C+Math.imul(xe,_t)|0)+Math.imul(pe,Gt)|0,P=P+Math.imul(pe,_t)|0,N=N+Math.imul(fe,Jt)|0,C=(C=C+Math.imul(fe,it)|0)+Math.imul(le,Jt)|0,P=P+Math.imul(le,it)|0,N=N+Math.imul(de,Xt)|0,C=(C=C+Math.imul(de,Mt)|0)+Math.imul(ce,Xt)|0,P=P+Math.imul(ce,Mt)|0,N=N+Math.imul(Q,Ne)|0,C=(C=C+Math.imul(Q,Re)|0)+Math.imul(te,Ne)|0,P=P+Math.imul(te,Re)|0,N=N+Math.imul(R,vt)|0,C=(C=C+Math.imul(R,rt)|0)+Math.imul(X,vt)|0,P=P+Math.imul(X,rt)|0;var Ue=(Z+(N=N+Math.imul(U,jt)|0)|0)+((8191&amp;(C=(C=C+Math.imul(U,at)|0)+Math.imul(J,jt)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(J,at)|0)+(C&gt;&gt;&gt;13)|0)+(Ue&gt;&gt;&gt;26)|0,Ue&amp;=67108863,N=Math.imul(Je,nt),C=(C=Math.imul(Je,Me))+Math.imul(qe,nt)|0,P=Math.imul(qe,Me),N=N+Math.imul(Ve,$t)|0,C=(C=C+Math.imul(Ve,ft)|0)+Math.imul(Qe,$t)|0,P=P+Math.imul(Qe,ft)|0,N=N+Math.imul(Le,Bt)|0,C=(C=C+Math.imul(Le,Ct)|0)+Math.imul(ze,Bt)|0,P=P+Math.imul(ze,Ct)|0,N=N+Math.imul(we,Gt)|0,C=(C=C+Math.imul(we,_t)|0)+Math.imul(ke,Gt)|0,P=P+Math.imul(ke,_t)|0,N=N+Math.imul(xe,Jt)|0,C=(C=C+Math.imul(xe,it)|0)+Math.imul(pe,Jt)|0,P=P+Math.imul(pe,it)|0,N=N+Math.imul(fe,Xt)|0,C=(C=C+Math.imul(fe,Mt)|0)+Math.imul(le,Xt)|0,P=P+Math.imul(le,Mt)|0,N=N+Math.imul(de,Ne)|0,C=(C=C+Math.imul(de,Re)|0)+Math.imul(ce,Ne)|0,P=P+Math.imul(ce,Re)|0,N=N+Math.imul(Q,vt)|0,C=(C=C+Math.imul(Q,rt)|0)+Math.imul(te,vt)|0,P=P+Math.imul(te,rt)|0,N=N+Math.imul(R,jt)|0,C=(C=C+Math.imul(R,at)|0)+Math.imul(X,jt)|0,P=P+Math.imul(X,at)|0;var lt=(Z+(N=N+Math.imul(U,At)|0)|0)+((8191&amp;(C=(C=C+Math.imul(U,Vt)|0)+Math.imul(J,At)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(J,Vt)|0)+(C&gt;&gt;&gt;13)|0)+(lt&gt;&gt;&gt;26)|0,lt&amp;=67108863,N=Math.imul(Je,$t),C=(C=Math.imul(Je,ft))+Math.imul(qe,$t)|0,P=Math.imul(qe,ft),N=N+Math.imul(Ve,Bt)|0,C=(C=C+Math.imul(Ve,Ct)|0)+Math.imul(Qe,Bt)|0,P=P+Math.imul(Qe,Ct)|0,N=N+Math.imul(Le,Gt)|0,C=(C=C+Math.imul(Le,_t)|0)+Math.imul(ze,Gt)|0,P=P+Math.imul(ze,_t)|0,N=N+Math.imul(we,Jt)|0,C=(C=C+Math.imul(we,it)|0)+Math.imul(ke,Jt)|0,P=P+Math.imul(ke,it)|0,N=N+Math.imul(xe,Xt)|0,C=(C=C+Math.imul(xe,Mt)|0)+Math.imul(pe,Xt)|0,P=P+Math.imul(pe,Mt)|0,N=N+Math.imul(fe,Ne)|0,C=(C=C+Math.imul(fe,Re)|0)+Math.imul(le,Ne)|0,P=P+Math.imul(le,Re)|0,N=N+Math.imul(de,vt)|0,C=(C=C+Math.imul(de,rt)|0)+Math.imul(ce,vt)|0,P=P+Math.imul(ce,rt)|0,N=N+Math.imul(Q,jt)|0,C=(C=C+Math.imul(Q,at)|0)+Math.imul(te,jt)|0,P=P+Math.imul(te,at)|0;var Ke=(Z+(N=N+Math.imul(R,At)|0)|0)+((8191&amp;(C=(C=C+Math.imul(R,Vt)|0)+Math.imul(X,At)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(X,Vt)|0)+(C&gt;&gt;&gt;13)|0)+(Ke&gt;&gt;&gt;26)|0,Ke&amp;=67108863,N=Math.imul(Je,Bt),C=(C=Math.imul(Je,Ct))+Math.imul(qe,Bt)|0,P=Math.imul(qe,Ct),N=N+Math.imul(Ve,Gt)|0,C=(C=C+Math.imul(Ve,_t)|0)+Math.imul(Qe,Gt)|0,P=P+Math.imul(Qe,_t)|0,N=N+Math.imul(Le,Jt)|0,C=(C=C+Math.imul(Le,it)|0)+Math.imul(ze,Jt)|0,P=P+Math.imul(ze,it)|0,N=N+Math.imul(we,Xt)|0,C=(C=C+Math.imul(we,Mt)|0)+Math.imul(ke,Xt)|0,P=P+Math.imul(ke,Mt)|0,N=N+Math.imul(xe,Ne)|0,C=(C=C+Math.imul(xe,Re)|0)+Math.imul(pe,Ne)|0,P=P+Math.imul(pe,Re)|0,N=N+Math.imul(fe,vt)|0,C=(C=C+Math.imul(fe,rt)|0)+Math.imul(le,vt)|0,P=P+Math.imul(le,rt)|0,N=N+Math.imul(de,jt)|0,C=(C=C+Math.imul(de,at)|0)+Math.imul(ce,jt)|0,P=P+Math.imul(ce,at)|0;var Ye=(Z+(N=N+Math.imul(Q,At)|0)|0)+((8191&amp;(C=(C=C+Math.imul(Q,Vt)|0)+Math.imul(te,At)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(te,Vt)|0)+(C&gt;&gt;&gt;13)|0)+(Ye&gt;&gt;&gt;26)|0,Ye&amp;=67108863,N=Math.imul(Je,Gt),C=(C=Math.imul(Je,_t))+Math.imul(qe,Gt)|0,P=Math.imul(qe,_t),N=N+Math.imul(Ve,Jt)|0,C=(C=C+Math.imul(Ve,it)|0)+Math.imul(Qe,Jt)|0,P=P+Math.imul(Qe,it)|0,N=N+Math.imul(Le,Xt)|0,C=(C=C+Math.imul(Le,Mt)|0)+Math.imul(ze,Xt)|0,P=P+Math.imul(ze,Mt)|0,N=N+Math.imul(we,Ne)|0,C=(C=C+Math.imul(we,Re)|0)+Math.imul(ke,Ne)|0,P=P+Math.imul(ke,Re)|0,N=N+Math.imul(xe,vt)|0,C=(C=C+Math.imul(xe,rt)|0)+Math.imul(pe,vt)|0,P=P+Math.imul(pe,rt)|0,N=N+Math.imul(fe,jt)|0,C=(C=C+Math.imul(fe,at)|0)+Math.imul(le,jt)|0,P=P+Math.imul(le,at)|0;var Ht=(Z+(N=N+Math.imul(de,At)|0)|0)+((8191&amp;(C=(C=C+Math.imul(de,Vt)|0)+Math.imul(ce,At)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(ce,Vt)|0)+(C&gt;&gt;&gt;13)|0)+(Ht&gt;&gt;&gt;26)|0,Ht&amp;=67108863,N=Math.imul(Je,Jt),C=(C=Math.imul(Je,it))+Math.imul(qe,Jt)|0,P=Math.imul(qe,it),N=N+Math.imul(Ve,Xt)|0,C=(C=C+Math.imul(Ve,Mt)|0)+Math.imul(Qe,Xt)|0,P=P+Math.imul(Qe,Mt)|0,N=N+Math.imul(Le,Ne)|0,C=(C=C+Math.imul(Le,Re)|0)+Math.imul(ze,Ne)|0,P=P+Math.imul(ze,Re)|0,N=N+Math.imul(we,vt)|0,C=(C=C+Math.imul(we,rt)|0)+Math.imul(ke,vt)|0,P=P+Math.imul(ke,rt)|0,N=N+Math.imul(xe,jt)|0,C=(C=C+Math.imul(xe,at)|0)+Math.imul(pe,jt)|0,P=P+Math.imul(pe,at)|0;var Dt=(Z+(N=N+Math.imul(fe,At)|0)|0)+((8191&amp;(C=(C=C+Math.imul(fe,Vt)|0)+Math.imul(le,At)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(le,Vt)|0)+(C&gt;&gt;&gt;13)|0)+(Dt&gt;&gt;&gt;26)|0,Dt&amp;=67108863,N=Math.imul(Je,Xt),C=(C=Math.imul(Je,Mt))+Math.imul(qe,Xt)|0,P=Math.imul(qe,Mt),N=N+Math.imul(Ve,Ne)|0,C=(C=C+Math.imul(Ve,Re)|0)+Math.imul(Qe,Ne)|0,P=P+Math.imul(Qe,Re)|0,N=N+Math.imul(Le,vt)|0,C=(C=C+Math.imul(Le,rt)|0)+Math.imul(ze,vt)|0,P=P+Math.imul(ze,rt)|0,N=N+Math.imul(we,jt)|0,C=(C=C+Math.imul(we,at)|0)+Math.imul(ke,jt)|0,P=P+Math.imul(ke,at)|0;var St=(Z+(N=N+Math.imul(xe,At)|0)|0)+((8191&amp;(C=(C=C+Math.imul(xe,Vt)|0)+Math.imul(pe,At)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(pe,Vt)|0)+(C&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,N=Math.imul(Je,Ne),C=(C=Math.imul(Je,Re))+Math.imul(qe,Ne)|0,P=Math.imul(qe,Re),N=N+Math.imul(Ve,vt)|0,C=(C=C+Math.imul(Ve,rt)|0)+Math.imul(Qe,vt)|0,P=P+Math.imul(Qe,rt)|0,N=N+Math.imul(Le,jt)|0,C=(C=C+Math.imul(Le,at)|0)+Math.imul(ze,jt)|0,P=P+Math.imul(ze,at)|0;var bt=(Z+(N=N+Math.imul(we,At)|0)|0)+((8191&amp;(C=(C=C+Math.imul(we,Vt)|0)+Math.imul(ke,At)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(ke,Vt)|0)+(C&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,N=Math.imul(Je,vt),C=(C=Math.imul(Je,rt))+Math.imul(qe,vt)|0,P=Math.imul(qe,rt),N=N+Math.imul(Ve,jt)|0,C=(C=C+Math.imul(Ve,at)|0)+Math.imul(Qe,jt)|0,P=P+Math.imul(Qe,at)|0;var Ce=(Z+(N=N+Math.imul(Le,At)|0)|0)+((8191&amp;(C=(C=C+Math.imul(Le,Vt)|0)+Math.imul(ze,At)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(ze,Vt)|0)+(C&gt;&gt;&gt;13)|0)+(Ce&gt;&gt;&gt;26)|0,Ce&amp;=67108863,N=Math.imul(Je,jt),C=(C=Math.imul(Je,at))+Math.imul(qe,jt)|0,P=Math.imul(qe,at);var ct=(Z+(N=N+Math.imul(Ve,At)|0)|0)+((8191&amp;(C=(C=C+Math.imul(Ve,Vt)|0)+Math.imul(Qe,At)|0))&lt;&lt;13)|0;Z=((P=P+Math.imul(Qe,Vt)|0)+(C&gt;&gt;&gt;13)|0)+(ct&gt;&gt;&gt;26)|0,ct&amp;=67108863;var pt=(Z+(N=Math.imul(Je,At))|0)+((8191&amp;(C=(C=Math.imul(Je,Vt))+Math.imul(qe,At)|0))&lt;&lt;13)|0;return Z=((P=Math.imul(qe,Vt))+(C&gt;&gt;&gt;13)|0)+(pt&gt;&gt;&gt;26)|0,pt&amp;=67108863,Y[0]=dr,Y[1]=sr,Y[2]=_r,Y[3]=fr,Y[4]=Yr,Y[5]=he,Y[6]=je,Y[7]=Fe,Y[8]=Ue,Y[9]=lt,Y[10]=Ke,Y[11]=Ye,Y[12]=Ht,Y[13]=Dt,Y[14]=St,Y[15]=bt,Y[16]=Ce,Y[17]=ct,Y[18]=pt,Z!==0&amp;&amp;(Y[19]=Z,k.length++),k};function A(E,j,k){k.negative=j.negative^E.negative,k.length=E.length+j.length;for(var N=0,C=0,P=0;P&lt;k.length-1;P++){var D=C;C=0;for(var z=67108863&amp;N,Y=Math.min(P,j.length-1),Z=Math.max(0,P-E.length+1);Z&lt;=Y;Z++){var ne=P-Z,U=(0|E.words[ne])*(0|j.words[Z]),J=67108863&amp;U;z=67108863&amp;(J=J+z|0),C+=(D=(D=D+(U/67108864|0)|0)+(J&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,D&amp;=67108863}k.words[P]=z,N=D,D=C}return N!==0?k.words[P]=N:k.length--,k._strip()}function I(E,j,k){return A(E,j,k)}Math.imul||(S=_),a.prototype.mulTo=function(E,j){var k=this.length+E.length;return this.length===10&amp;&amp;E.length===10?S(this,E,j):k&lt;63?_(this,E,j):k&lt;1024?A(this,E,j):I(this,E,j)},a.prototype.mul=function(E){var j=new a(null);return j.words=new Array(this.length+E.length),this.mulTo(E,j)},a.prototype.mulf=function(E){var j=new a(null);return j.words=new Array(this.length+E.length),I(this,E,j)},a.prototype.imul=function(E){return this.clone().mulTo(E,this)},a.prototype.imuln=function(E){var j=E&lt;0;j&amp;&amp;(E=-E),u(typeof E==&quot;number&quot;),u(E&lt;67108864);for(var k=0,N=0;N&lt;this.length;N++){var C=(0|this.words[N])*E,P=(67108863&amp;C)+(67108863&amp;k);k&gt;&gt;=26,k+=C/67108864|0,k+=P&gt;&gt;&gt;26,this.words[N]=67108863&amp;P}return k!==0&amp;&amp;(this.words[N]=k,this.length++),j?this.ineg():this},a.prototype.muln=function(E){return this.clone().imuln(E)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(E){var j=(function(P){for(var D=new Array(P.bitLength()),z=0;z&lt;D.length;z++){var Y=z/26|0,Z=z%26;D[z]=P.words[Y]&gt;&gt;&gt;Z&amp;1}return D})(E);if(j.length===0)return new a(1);for(var k=this,N=0;N&lt;j.length&amp;&amp;j[N]===0;N++,k=k.sqr());if(++N&lt;j.length)for(var C=k.sqr();N&lt;j.length;N++,C=C.sqr())j[N]!==0&amp;&amp;(k=k.mul(C));return k},a.prototype.iushln=function(E){u(typeof E==&quot;number&quot;&amp;&amp;E&gt;=0);var j,k=E%26,N=(E-k)/26,C=67108863&gt;&gt;&gt;26-k&lt;&lt;26-k;if(k!==0){var P=0;for(j=0;j&lt;this.length;j++){var D=this.words[j]&amp;C,z=(0|this.words[j])-D&lt;&lt;k;this.words[j]=z|P,P=D&gt;&gt;&gt;26-k}P&amp;&amp;(this.words[j]=P,this.length++)}if(N!==0){for(j=this.length-1;j&gt;=0;j--)this.words[j+N]=this.words[j];for(j=0;j&lt;N;j++)this.words[j]=0;this.length+=N}return this._strip()},a.prototype.ishln=function(E){return u(this.negative===0),this.iushln(E)},a.prototype.iushrn=function(E,j,k){var N;u(typeof E==&quot;number&quot;&amp;&amp;E&gt;=0),N=j?(j-j%26)/26:0;var C=E%26,P=Math.min((E-C)/26,this.length),D=67108863^67108863&gt;&gt;&gt;C&lt;&lt;C,z=k;if(N-=P,N=Math.max(0,N),z){for(var Y=0;Y&lt;P;Y++)z.words[Y]=this.words[Y];z.length=P}if(P!==0)if(this.length&gt;P)for(this.length-=P,Y=0;Y&lt;this.length;Y++)this.words[Y]=this.words[Y+P];else this.words[0]=0,this.length=1;var Z=0;for(Y=this.length-1;Y&gt;=0&amp;&amp;(Z!==0||Y&gt;=N);Y--){var ne=0|this.words[Y];this.words[Y]=Z&lt;&lt;26-C|ne&gt;&gt;&gt;C,Z=ne&amp;D}return z&amp;&amp;Z!==0&amp;&amp;(z.words[z.length++]=Z),this.length===0&amp;&amp;(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(E,j,k){return u(this.negative===0),this.iushrn(E,j,k)},a.prototype.shln=function(E){return this.clone().ishln(E)},a.prototype.ushln=function(E){return this.clone().iushln(E)},a.prototype.shrn=function(E){return this.clone().ishrn(E)},a.prototype.ushrn=function(E){return this.clone().iushrn(E)},a.prototype.testn=function(E){u(typeof E==&quot;number&quot;&amp;&amp;E&gt;=0);var j=E%26,k=(E-j)/26,N=1&lt;&lt;j;return!(this.length&lt;=k)&amp;&amp;!!(this.words[k]&amp;N)},a.prototype.imaskn=function(E){u(typeof E==&quot;number&quot;&amp;&amp;E&gt;=0);var j=E%26,k=(E-j)/26;if(u(this.negative===0,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=k)return this;if(j!==0&amp;&amp;k++,this.length=Math.min(k,this.length),j!==0){var N=67108863^67108863&gt;&gt;&gt;j&lt;&lt;j;this.words[this.length-1]&amp;=N}return this._strip()},a.prototype.maskn=function(E){return this.clone().imaskn(E)},a.prototype.iaddn=function(E){return u(typeof E==&quot;number&quot;),u(E&lt;67108864),E&lt;0?this.isubn(-E):this.negative!==0?this.length===1&amp;&amp;(0|this.words[0])&lt;=E?(this.words[0]=E-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(E),this.negative=1,this):this._iaddn(E)},a.prototype._iaddn=function(E){this.words[0]+=E;for(var j=0;j&lt;this.length&amp;&amp;this.words[j]&gt;=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},a.prototype.isubn=function(E){if(u(typeof E==&quot;number&quot;),u(E&lt;67108864),E&lt;0)return this.iaddn(-E);if(this.negative!==0)return this.negative=0,this.iaddn(E),this.negative=1,this;if(this.words[0]-=E,this.length===1&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j&lt;this.length&amp;&amp;this.words[j]&lt;0;j++)this.words[j]+=67108864,this.words[j+1]-=1;return this._strip()},a.prototype.addn=function(E){return this.clone().iaddn(E)},a.prototype.subn=function(E){return this.clone().isubn(E)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(E,j,k){var N,C,P=E.length+k;this._expand(P);var D=0;for(N=0;N&lt;E.length;N++){C=(0|this.words[N+k])+D;var z=(0|E.words[N])*j;D=((C-=67108863&amp;z)&gt;&gt;26)-(z/67108864|0),this.words[N+k]=67108863&amp;C}for(;N&lt;this.length-k;N++)D=(C=(0|this.words[N+k])+D)&gt;&gt;26,this.words[N+k]=67108863&amp;C;if(D===0)return this._strip();for(u(D===-1),D=0,N=0;N&lt;this.length;N++)D=(C=-(0|this.words[N])+D)&gt;&gt;26,this.words[N]=67108863&amp;C;return this.negative=1,this._strip()},a.prototype._wordDiv=function(E,j){var k=(this.length,E.length),N=this.clone(),C=E,P=0|C.words[C.length-1];(k=26-this._countBits(P))!==0&amp;&amp;(C=C.ushln(k),N.iushln(k),P=0|C.words[C.length-1]);var D,z=N.length-C.length;if(j!==&quot;mod&quot;){(D=new a(null)).length=z+1,D.words=new Array(D.length);for(var Y=0;Y&lt;D.length;Y++)D.words[Y]=0}var Z=N.clone()._ishlnsubmul(C,1,z);Z.negative===0&amp;&amp;(N=Z,D&amp;&amp;(D.words[z]=1));for(var ne=z-1;ne&gt;=0;ne--){var U=67108864*(0|N.words[C.length+ne])+(0|N.words[C.length+ne-1]);for(U=Math.min(U/P|0,67108863),N._ishlnsubmul(C,U,ne);N.negative!==0;)U--,N.negative=0,N._ishlnsubmul(C,1,ne),N.isZero()||(N.negative^=1);D&amp;&amp;(D.words[ne]=U)}return D&amp;&amp;D._strip(),N._strip(),j!==&quot;div&quot;&amp;&amp;k!==0&amp;&amp;N.iushrn(k),{div:D||null,mod:N}},a.prototype.divmod=function(E,j,k){return u(!E.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&amp;&amp;E.negative===0?(P=this.neg().divmod(E,j),j!==&quot;mod&quot;&amp;&amp;(N=P.div.neg()),j!==&quot;div&quot;&amp;&amp;(C=P.mod.neg(),k&amp;&amp;C.negative!==0&amp;&amp;C.iadd(E)),{div:N,mod:C}):this.negative===0&amp;&amp;E.negative!==0?(P=this.divmod(E.neg(),j),j!==&quot;mod&quot;&amp;&amp;(N=P.div.neg()),{div:N,mod:P.mod}):(this.negative&amp;E.negative)!=0?(P=this.neg().divmod(E.neg(),j),j!==&quot;div&quot;&amp;&amp;(C=P.mod.neg(),k&amp;&amp;C.negative!==0&amp;&amp;C.isub(E)),{div:P.div,mod:C}):E.length&gt;this.length||this.cmp(E)&lt;0?{div:new a(0),mod:this}:E.length===1?j===&quot;div&quot;?{div:this.divn(E.words[0]),mod:null}:j===&quot;mod&quot;?{div:null,mod:new a(this.modrn(E.words[0]))}:{div:this.divn(E.words[0]),mod:new a(this.modrn(E.words[0]))}:this._wordDiv(E,j);var N,C,P},a.prototype.div=function(E){return this.divmod(E,&quot;div&quot;,!1).div},a.prototype.mod=function(E){return this.divmod(E,&quot;mod&quot;,!1).mod},a.prototype.umod=function(E){return this.divmod(E,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(E){var j=this.divmod(E);if(j.mod.isZero())return j.div;var k=j.div.negative!==0?j.mod.isub(E):j.mod,N=E.ushrn(1),C=E.andln(1),P=k.cmp(N);return P&lt;0||C===1&amp;&amp;P===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},a.prototype.modrn=function(E){var j=E&lt;0;j&amp;&amp;(E=-E),u(E&lt;=67108863);for(var k=(1&lt;&lt;26)%E,N=0,C=this.length-1;C&gt;=0;C--)N=(k*N+(0|this.words[C]))%E;return j?-N:N},a.prototype.modn=function(E){return this.modrn(E)},a.prototype.idivn=function(E){var j=E&lt;0;j&amp;&amp;(E=-E),u(E&lt;=67108863);for(var k=0,N=this.length-1;N&gt;=0;N--){var C=(0|this.words[N])+67108864*k;this.words[N]=C/E|0,k=C%E}return this._strip(),j?this.ineg():this},a.prototype.divn=function(E){return this.clone().idivn(E)},a.prototype.egcd=function(E){u(E.negative===0),u(!E.isZero());var j=this,k=E.clone();j=j.negative!==0?j.umod(E):j.clone();for(var N=new a(1),C=new a(0),P=new a(0),D=new a(1),z=0;j.isEven()&amp;&amp;k.isEven();)j.iushrn(1),k.iushrn(1),++z;for(var Y=k.clone(),Z=j.clone();!j.isZero();){for(var ne=0,U=1;(j.words[0]&amp;U)==0&amp;&amp;ne&lt;26;++ne,U&lt;&lt;=1);if(ne&gt;0)for(j.iushrn(ne);ne-- &gt;0;)(N.isOdd()||C.isOdd())&amp;&amp;(N.iadd(Y),C.isub(Z)),N.iushrn(1),C.iushrn(1);for(var J=0,$=1;(k.words[0]&amp;$)==0&amp;&amp;J&lt;26;++J,$&lt;&lt;=1);if(J&gt;0)for(k.iushrn(J);J-- &gt;0;)(P.isOdd()||D.isOdd())&amp;&amp;(P.iadd(Y),D.isub(Z)),P.iushrn(1),D.iushrn(1);j.cmp(k)&gt;=0?(j.isub(k),N.isub(P),C.isub(D)):(k.isub(j),P.isub(N),D.isub(C))}return{a:P,b:D,gcd:k.iushln(z)}},a.prototype._invmp=function(E){u(E.negative===0),u(!E.isZero());var j=this,k=E.clone();j=j.negative!==0?j.umod(E):j.clone();for(var N,C=new a(1),P=new a(0),D=k.clone();j.cmpn(1)&gt;0&amp;&amp;k.cmpn(1)&gt;0;){for(var z=0,Y=1;(j.words[0]&amp;Y)==0&amp;&amp;z&lt;26;++z,Y&lt;&lt;=1);if(z&gt;0)for(j.iushrn(z);z-- &gt;0;)C.isOdd()&amp;&amp;C.iadd(D),C.iushrn(1);for(var Z=0,ne=1;(k.words[0]&amp;ne)==0&amp;&amp;Z&lt;26;++Z,ne&lt;&lt;=1);if(Z&gt;0)for(k.iushrn(Z);Z-- &gt;0;)P.isOdd()&amp;&amp;P.iadd(D),P.iushrn(1);j.cmp(k)&gt;=0?(j.isub(k),C.isub(P)):(k.isub(j),P.isub(C))}return(N=j.cmpn(1)===0?C:P).cmpn(0)&lt;0&amp;&amp;N.iadd(E),N},a.prototype.gcd=function(E){if(this.isZero())return E.abs();if(E.isZero())return this.abs();var j=this.clone(),k=E.clone();j.negative=0,k.negative=0;for(var N=0;j.isEven()&amp;&amp;k.isEven();N++)j.iushrn(1),k.iushrn(1);for(;;){for(;j.isEven();)j.iushrn(1);for(;k.isEven();)k.iushrn(1);var C=j.cmp(k);if(C&lt;0){var P=j;j=k,k=P}else if(C===0||k.cmpn(1)===0)break;j.isub(k)}return k.iushln(N)},a.prototype.invm=function(E){return this.egcd(E).a.umod(E)},a.prototype.isEven=function(){return(1&amp;this.words[0])==0},a.prototype.isOdd=function(){return(1&amp;this.words[0])==1},a.prototype.andln=function(E){return this.words[0]&amp;E},a.prototype.bincn=function(E){u(typeof E==&quot;number&quot;);var j=E%26,k=(E-j)/26,N=1&lt;&lt;j;if(this.length&lt;=k)return this._expand(k+1),this.words[k]|=N,this;for(var C=N,P=k;C!==0&amp;&amp;P&lt;this.length;P++){var D=0|this.words[P];C=(D+=C)&gt;&gt;&gt;26,D&amp;=67108863,this.words[P]=D}return C!==0&amp;&amp;(this.words[P]=C,this.length++),this},a.prototype.isZero=function(){return this.length===1&amp;&amp;this.words[0]===0},a.prototype.cmpn=function(E){var j,k=E&lt;0;if(this.negative!==0&amp;&amp;!k)return-1;if(this.negative===0&amp;&amp;k)return 1;if(this._strip(),this.length&gt;1)j=1;else{k&amp;&amp;(E=-E),u(E&lt;=67108863,&quot;Number is too big&quot;);var N=0|this.words[0];j=N===E?0:N&lt;E?-1:1}return this.negative!==0?0|-j:j},a.prototype.cmp=function(E){if(this.negative!==0&amp;&amp;E.negative===0)return-1;if(this.negative===0&amp;&amp;E.negative!==0)return 1;var j=this.ucmp(E);return this.negative!==0?0|-j:j},a.prototype.ucmp=function(E){if(this.length&gt;E.length)return 1;if(this.length&lt;E.length)return-1;for(var j=0,k=this.length-1;k&gt;=0;k--){var N=0|this.words[k],C=0|E.words[k];if(N!==C){N&lt;C?j=-1:N&gt;C&amp;&amp;(j=1);break}}return j},a.prototype.gtn=function(E){return this.cmpn(E)===1},a.prototype.gt=function(E){return this.cmp(E)===1},a.prototype.gten=function(E){return this.cmpn(E)&gt;=0},a.prototype.gte=function(E){return this.cmp(E)&gt;=0},a.prototype.ltn=function(E){return this.cmpn(E)===-1},a.prototype.lt=function(E){return this.cmp(E)===-1},a.prototype.lten=function(E){return this.cmpn(E)&lt;=0},a.prototype.lte=function(E){return this.cmp(E)&lt;=0},a.prototype.eqn=function(E){return this.cmpn(E)===0},a.prototype.eq=function(E){return this.cmp(E)===0},a.red=function(E){return new T(E)},a.prototype.toRed=function(E){return u(!this.red,&quot;Already a number in reduction context&quot;),u(this.negative===0,&quot;red works only with positives&quot;),E.convertTo(this)._forceRed(E)},a.prototype.fromRed=function(){return u(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(E){return this.red=E,this},a.prototype.forceRed=function(E){return u(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(E)},a.prototype.redAdd=function(E){return u(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,E)},a.prototype.redIAdd=function(E){return u(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,E)},a.prototype.redSub=function(E){return u(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,E)},a.prototype.redISub=function(E){return u(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,E)},a.prototype.redShl=function(E){return u(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,E)},a.prototype.redMul=function(E){return u(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,E),this.red.mul(this,E)},a.prototype.redIMul=function(E){return u(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,E),this.red.imul(this,E)},a.prototype.redSqr=function(){return u(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(E){return u(this.red&amp;&amp;!E.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,E)};var V={k256:null,p224:null,p192:null,p25519:null};function F(E,j){this.name=E,this.p=new a(j,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function q(){F.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function H(){F.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function B(){F.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function K(){F.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function T(E){if(typeof E==&quot;string&quot;){var j=a._prime(E);this.m=j.p,this.prime=j}else u(E.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=E,this.prime=null}function L(E){T.call(this,E),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}F.prototype._tmp=function(){var E=new a(null);return E.words=new Array(Math.ceil(this.n/13)),E},F.prototype.ireduce=function(E){var j,k=E;do this.split(k,this.tmp),j=(k=(k=this.imulK(k)).iadd(this.tmp)).bitLength();while(j&gt;this.n);var N=j&lt;this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N&gt;0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},F.prototype.split=function(E,j){E.iushrn(this.n,0,j)},F.prototype.imulK=function(E){return E.imul(this.k)},c(q,F),q.prototype.split=function(E,j){for(var k=Math.min(E.length,9),N=0;N&lt;k;N++)j.words[N]=E.words[N];if(j.length=k,E.length&lt;=9)return E.words[0]=0,void(E.length=1);var C=E.words[9];for(j.words[j.length++]=4194303&amp;C,N=10;N&lt;E.length;N++){var P=0|E.words[N];E.words[N-10]=(4194303&amp;P)&lt;&lt;4|C&gt;&gt;&gt;22,C=P}C&gt;&gt;&gt;=22,E.words[N-10]=C,C===0&amp;&amp;E.length&gt;10?E.length-=10:E.length-=9},q.prototype.imulK=function(E){E.words[E.length]=0,E.words[E.length+1]=0,E.length+=2;for(var j=0,k=0;k&lt;E.length;k++){var N=0|E.words[k];j+=977*N,E.words[k]=67108863&amp;j,j=64*N+(j/67108864|0)}return E.words[E.length-1]===0&amp;&amp;(E.length--,E.words[E.length-1]===0&amp;&amp;E.length--),E},c(H,F),c(B,F),c(K,F),K.prototype.imulK=function(E){for(var j=0,k=0;k&lt;E.length;k++){var N=19*(0|E.words[k])+j,C=67108863&amp;N;N&gt;&gt;&gt;=26,E.words[k]=C,j=N}return j!==0&amp;&amp;(E.words[E.length++]=j),E},a._prime=function(E){if(V[E])return V[E];var j;if(E===&quot;k256&quot;)j=new q;else if(E===&quot;p224&quot;)j=new H;else if(E===&quot;p192&quot;)j=new B;else{if(E!==&quot;p25519&quot;)throw new Error(&quot;Unknown prime &quot;+E);j=new K}return V[E]=j,j},T.prototype._verify1=function(E){u(E.negative===0,&quot;red works only with positives&quot;),u(E.red,&quot;red works only with red numbers&quot;)},T.prototype._verify2=function(E,j){u((E.negative|j.negative)==0,&quot;red works only with positives&quot;),u(E.red&amp;&amp;E.red===j.red,&quot;red works only with red numbers&quot;)},T.prototype.imod=function(E){return this.prime?this.prime.ireduce(E)._forceRed(this):(p(E,E.umod(this.m)._forceRed(this)),E)},T.prototype.neg=function(E){return E.isZero()?E.clone():this.m.sub(E)._forceRed(this)},T.prototype.add=function(E,j){this._verify2(E,j);var k=E.add(j);return k.cmp(this.m)&gt;=0&amp;&amp;k.isub(this.m),k._forceRed(this)},T.prototype.iadd=function(E,j){this._verify2(E,j);var k=E.iadd(j);return k.cmp(this.m)&gt;=0&amp;&amp;k.isub(this.m),k},T.prototype.sub=function(E,j){this._verify2(E,j);var k=E.sub(j);return k.cmpn(0)&lt;0&amp;&amp;k.iadd(this.m),k._forceRed(this)},T.prototype.isub=function(E,j){this._verify2(E,j);var k=E.isub(j);return k.cmpn(0)&lt;0&amp;&amp;k.iadd(this.m),k},T.prototype.shl=function(E,j){return this._verify1(E),this.imod(E.ushln(j))},T.prototype.imul=function(E,j){return this._verify2(E,j),this.imod(E.imul(j))},T.prototype.mul=function(E,j){return this._verify2(E,j),this.imod(E.mul(j))},T.prototype.isqr=function(E){return this.imul(E,E.clone())},T.prototype.sqr=function(E){return this.mul(E,E)},T.prototype.sqrt=function(E){if(E.isZero())return E.clone();var j=this.m.andln(3);if(u(j%2==1),j===3){var k=this.m.add(new a(1)).iushrn(2);return this.pow(E,k)}for(var N=this.m.subn(1),C=0;!N.isZero()&amp;&amp;N.andln(1)===0;)C++,N.iushrn(1);u(!N.isZero());var P=new a(1).toRed(this),D=P.redNeg(),z=this.m.subn(1).iushrn(1),Y=this.m.bitLength();for(Y=new a(2*Y*Y).toRed(this);this.pow(Y,z).cmp(D)!==0;)Y.redIAdd(D);for(var Z=this.pow(Y,N),ne=this.pow(E,N.addn(1).iushrn(1)),U=this.pow(E,N),J=C;U.cmp(P)!==0;){for(var $=U,R=0;$.cmp(P)!==0;R++)$=$.redSqr();u(R&lt;J);var X=this.pow(Z,new a(1).iushln(J-R-1));ne=ne.redMul(X),Z=X.redSqr(),U=U.redMul(Z),J=R}return ne},T.prototype.invm=function(E){var j=E._invmp(this.m);return j.negative!==0?(j.negative=0,this.imod(j).redNeg()):this.imod(j)},T.prototype.pow=function(E,j){if(j.isZero())return new a(1).toRed(this);if(j.cmpn(1)===0)return E.clone();var k=new Array(16);k[0]=new a(1).toRed(this),k[1]=E;for(var N=2;N&lt;k.length;N++)k[N]=this.mul(k[N-1],E);var C=k[0],P=0,D=0,z=j.bitLength()%26;for(z===0&amp;&amp;(z=26),N=j.length-1;N&gt;=0;N--){for(var Y=j.words[N],Z=z-1;Z&gt;=0;Z--){var ne=Y&gt;&gt;Z&amp;1;C!==k[0]&amp;&amp;(C=this.sqr(C)),ne!==0||P!==0?(P&lt;&lt;=1,P|=ne,(++D===4||N===0&amp;&amp;Z===0)&amp;&amp;(C=this.mul(C,k[P]),D=0,P=0)):D=0}z=26}return C},T.prototype.convertTo=function(E){var j=E.umod(this.m);return j===E?j.clone():j},T.prototype.convertFrom=function(E){var j=E.clone();return j.red=null,j},a.mont=function(E){return new L(E)},c(L,T),L.prototype.convertTo=function(E){return this.imod(E.ushln(this.shift))},L.prototype.convertFrom=function(E){var j=this.imod(E.mul(this.rinv));return j.red=null,j},L.prototype.imul=function(E,j){if(E.isZero()||j.isZero())return E.words[0]=0,E.length=1,E;var k=E.imul(j),N=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=k.isub(N).iushrn(this.shift),P=C;return C.cmp(this.m)&gt;=0?P=C.isub(this.m):C.cmpn(0)&lt;0&amp;&amp;(P=C.iadd(this.m)),P._forceRed(this)},L.prototype.mul=function(E,j){if(E.isZero()||j.isZero())return new a(0)._forceRed(this);var k=E.mul(j),N=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=k.isub(N).iushrn(this.shift),P=C;return C.cmp(this.m)&gt;=0?P=C.isub(this.m):C.cmpn(0)&lt;0&amp;&amp;(P=C.iadd(this.m)),P._forceRed(this)},L.prototype.invm=function(E){return this.imod(E._invmp(this.m).mul(this.r2))._forceRed(this)}})(n===void 0||n)},{buffer:188}],187:[function(t,n,o){var s;function l(c){this.rand=c}if(n.exports=function(c){return s||(s=new l(null)),s.generate(c)},n.exports.Rand=l,l.prototype.generate=function(c){return this._rand(c)},l.prototype._rand=function(c){if(this.rand.getBytes)return this.rand.getBytes(c);for(var a=new Uint8Array(c),d=0;d&lt;a.length;d++)a[d]=this.rand.getByte();return a},typeof self==&quot;object&quot;)self.crypto&amp;&amp;self.crypto.getRandomValues?l.prototype._rand=function(c){var a=new Uint8Array(c);return self.crypto.getRandomValues(a),a}:self.msCrypto&amp;&amp;self.msCrypto.getRandomValues?l.prototype._rand=function(c){var a=new Uint8Array(c);return self.msCrypto.getRandomValues(a),a}:typeof window==&quot;object&quot;&amp;&amp;(l.prototype._rand=function(){throw new Error(&quot;Not implemented yet&quot;)});else try{var u=t(&quot;crypto&quot;);if(typeof u.randomBytes!=&quot;function&quot;)throw new Error(&quot;Not supported&quot;);l.prototype._rand=function(c){return u.randomBytes(c)}}catch{}},{crypto:188}],188:[function(t,n,o){},{}],189:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer;function l(h){s.isBuffer(h)||(h=s.from(h));for(var m=h.length/4|0,p=new Array(m),x=0;x&lt;m;x++)p[x]=h.readUInt32BE(4*x);return p}function u(h){for(;0&lt;h.length;h++)h[0]=0}function c(h,m,p,x,g){for(var y,v,_,S,A=p[0],I=p[1],V=p[2],F=p[3],q=h[0]^m[0],H=h[1]^m[1],B=h[2]^m[2],K=h[3]^m[3],T=4,L=1;L&lt;g;L++)y=A[q&gt;&gt;&gt;24]^I[H&gt;&gt;&gt;16&amp;255]^V[B&gt;&gt;&gt;8&amp;255]^F[255&amp;K]^m[T++],v=A[H&gt;&gt;&gt;24]^I[B&gt;&gt;&gt;16&amp;255]^V[K&gt;&gt;&gt;8&amp;255]^F[255&amp;q]^m[T++],_=A[B&gt;&gt;&gt;24]^I[K&gt;&gt;&gt;16&amp;255]^V[q&gt;&gt;&gt;8&amp;255]^F[255&amp;H]^m[T++],S=A[K&gt;&gt;&gt;24]^I[q&gt;&gt;&gt;16&amp;255]^V[H&gt;&gt;&gt;8&amp;255]^F[255&amp;B]^m[T++],q=y,H=v,B=_,K=S;return y=(x[q&gt;&gt;&gt;24]&lt;&lt;24|x[H&gt;&gt;&gt;16&amp;255]&lt;&lt;16|x[B&gt;&gt;&gt;8&amp;255]&lt;&lt;8|x[255&amp;K])^m[T++],v=(x[H&gt;&gt;&gt;24]&lt;&lt;24|x[B&gt;&gt;&gt;16&amp;255]&lt;&lt;16|x[K&gt;&gt;&gt;8&amp;255]&lt;&lt;8|x[255&amp;q])^m[T++],_=(x[B&gt;&gt;&gt;24]&lt;&lt;24|x[K&gt;&gt;&gt;16&amp;255]&lt;&lt;16|x[q&gt;&gt;&gt;8&amp;255]&lt;&lt;8|x[255&amp;H])^m[T++],S=(x[K&gt;&gt;&gt;24]&lt;&lt;24|x[q&gt;&gt;&gt;16&amp;255]&lt;&lt;16|x[H&gt;&gt;&gt;8&amp;255]&lt;&lt;8|x[255&amp;B])^m[T++],[y&gt;&gt;&gt;=0,v&gt;&gt;&gt;=0,_&gt;&gt;&gt;=0,S&gt;&gt;&gt;=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],d=(function(){for(var h=new Array(256),m=0;m&lt;256;m++)h[m]=m&lt;128?m&lt;&lt;1:m&lt;&lt;1^283;for(var p=[],x=[],g=[[],[],[],[]],y=[[],[],[],[]],v=0,_=0,S=0;S&lt;256;++S){var A=_^_&lt;&lt;1^_&lt;&lt;2^_&lt;&lt;3^_&lt;&lt;4;A=A&gt;&gt;&gt;8^255&amp;A^99,p[v]=A,x[A]=v;var I=h[v],V=h[I],F=h[V],q=257*h[A]^16843008*A;g[0][v]=q&lt;&lt;24|q&gt;&gt;&gt;8,g[1][v]=q&lt;&lt;16|q&gt;&gt;&gt;16,g[2][v]=q&lt;&lt;8|q&gt;&gt;&gt;24,g[3][v]=q,q=16843009*F^65537*V^257*I^16843008*v,y[0][A]=q&lt;&lt;24|q&gt;&gt;&gt;8,y[1][A]=q&lt;&lt;16|q&gt;&gt;&gt;16,y[2][A]=q&lt;&lt;8|q&gt;&gt;&gt;24,y[3][A]=q,v===0?v=_=1:(v=I^h[h[h[F^I]]],_^=h[h[_]])}return{SBOX:p,INV_SBOX:x,SUB_MIX:g,INV_SUB_MIX:y}})();function f(h){this._key=l(h),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var h=this._key,m=h.length,p=m+6,x=4*(p+1),g=[],y=0;y&lt;m;y++)g[y]=h[y];for(y=m;y&lt;x;y++){var v=g[y-1];y%m==0?(v=v&lt;&lt;8|v&gt;&gt;&gt;24,v=d.SBOX[v&gt;&gt;&gt;24]&lt;&lt;24|d.SBOX[v&gt;&gt;&gt;16&amp;255]&lt;&lt;16|d.SBOX[v&gt;&gt;&gt;8&amp;255]&lt;&lt;8|d.SBOX[255&amp;v],v^=a[y/m|0]&lt;&lt;24):m&gt;6&amp;&amp;y%m==4&amp;&amp;(v=d.SBOX[v&gt;&gt;&gt;24]&lt;&lt;24|d.SBOX[v&gt;&gt;&gt;16&amp;255]&lt;&lt;16|d.SBOX[v&gt;&gt;&gt;8&amp;255]&lt;&lt;8|d.SBOX[255&amp;v]),g[y]=g[y-m]^v}for(var _=[],S=0;S&lt;x;S++){var A=x-S,I=g[A-(S%4?0:4)];_[S]=S&lt;4||A&lt;=4?I:d.INV_SUB_MIX[0][d.SBOX[I&gt;&gt;&gt;24]]^d.INV_SUB_MIX[1][d.SBOX[I&gt;&gt;&gt;16&amp;255]]^d.INV_SUB_MIX[2][d.SBOX[I&gt;&gt;&gt;8&amp;255]]^d.INV_SUB_MIX[3][d.SBOX[255&amp;I]]}this._nRounds=p,this._keySchedule=g,this._invKeySchedule=_},f.prototype.encryptBlockRaw=function(h){return c(h=l(h),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},f.prototype.encryptBlock=function(h){var m=this.encryptBlockRaw(h),p=s.allocUnsafe(16);return p.writeUInt32BE(m[0],0),p.writeUInt32BE(m[1],4),p.writeUInt32BE(m[2],8),p.writeUInt32BE(m[3],12),p},f.prototype.decryptBlock=function(h){var m=(h=l(h))[1];h[1]=h[3],h[3]=m;var p=c(h,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),x=s.allocUnsafe(16);return x.writeUInt32BE(p[0],0),x.writeUInt32BE(p[3],4),x.writeUInt32BE(p[2],8),x.writeUInt32BE(p[1],12),x},f.prototype.scrub=function(){u(this._keySchedule),u(this._invKeySchedule),u(this._key)},n.exports.AES=f},{&quot;safe-buffer&quot;:494}],190:[function(t,n,o){var s=t(&quot;./aes&quot;),l=t(&quot;safe-buffer&quot;).Buffer,u=t(&quot;cipher-base&quot;),c=t(&quot;inherits&quot;),a=t(&quot;./ghash&quot;),d=t(&quot;buffer-xor&quot;),f=t(&quot;./incr32&quot;);function h(m,p,x,g){u.call(this);var y=l.alloc(4,0);this._cipher=new s.AES(p);var v=this._cipher.encryptBlock(y);this._ghash=new a(v),x=(function(_,S,A){if(S.length===12)return _._finID=l.concat([S,l.from([0,0,0,1])]),l.concat([S,l.from([0,0,0,2])]);var I=new a(A),V=S.length,F=V%16;I.update(S),F&amp;&amp;(F=16-F,I.update(l.alloc(F,0))),I.update(l.alloc(8,0));var q=8*V,H=l.alloc(8);H.writeUIntBE(q,0,8),I.update(H),_._finID=I.state;var B=l.from(_._finID);return f(B),B})(this,x,v),this._prev=l.from(x),this._cache=l.allocUnsafe(0),this._secCache=l.allocUnsafe(0),this._decrypt=g,this._alen=0,this._len=0,this._mode=m,this._authTag=null,this._called=!1}c(h,u),h.prototype._update=function(m){if(!this._called&amp;&amp;this._alen){var p=16-this._alen%16;p&lt;16&amp;&amp;(p=l.alloc(p,0),this._ghash.update(p))}this._called=!0;var x=this._mode.encrypt(this,m);return this._decrypt?this._ghash.update(m):this._ghash.update(x),this._len+=m.length,x},h.prototype._final=function(){if(this._decrypt&amp;&amp;!this._authTag)throw new Error(&quot;Unsupported state or unable to authenticate data&quot;);var m=d(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&amp;&amp;(function(p,x){var g=0;p.length!==x.length&amp;&amp;g++;for(var y=Math.min(p.length,x.length),v=0;v&lt;y;++v)g+=p[v]^x[v];return g})(m,this._authTag))throw new Error(&quot;Unsupported state or unable to authenticate data&quot;);this._authTag=m,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!l.isBuffer(this._authTag))throw new Error(&quot;Attempting to get auth tag in unsupported state&quot;);return this._authTag},h.prototype.setAuthTag=function(m){if(!this._decrypt)throw new Error(&quot;Attempting to set auth tag in unsupported state&quot;);this._authTag=m},h.prototype.setAAD=function(m){if(this._called)throw new Error(&quot;Attempting to set AAD in unsupported state&quot;);this._ghash.update(m),this._alen+=m.length},n.exports=h},{&quot;./aes&quot;:189,&quot;./ghash&quot;:194,&quot;./incr32&quot;:195,&quot;buffer-xor&quot;:219,&quot;cipher-base&quot;:221,inherits:440,&quot;safe-buffer&quot;:494}],191:[function(t,n,o){var s=t(&quot;./encrypter&quot;),l=t(&quot;./decrypter&quot;),u=t(&quot;./modes/list.json&quot;);o.createCipher=o.Cipher=s.createCipher,o.createCipheriv=o.Cipheriv=s.createCipheriv,o.createDecipher=o.Decipher=l.createDecipher,o.createDecipheriv=o.Decipheriv=l.createDecipheriv,o.listCiphers=o.getCiphers=function(){return Object.keys(u)}},{&quot;./decrypter&quot;:192,&quot;./encrypter&quot;:193,&quot;./modes/list.json&quot;:203}],192:[function(t,n,o){var s=t(&quot;./authCipher&quot;),l=t(&quot;safe-buffer&quot;).Buffer,u=t(&quot;./modes&quot;),c=t(&quot;./streamCipher&quot;),a=t(&quot;cipher-base&quot;),d=t(&quot;./aes&quot;),f=t(&quot;evp_bytestokey&quot;);function h(x,g,y){a.call(this),this._cache=new m,this._last=void 0,this._cipher=new d.AES(g),this._prev=l.from(y),this._mode=x,this._autopadding=!0}function m(){this.cache=l.allocUnsafe(0)}function p(x,g,y){var v=u[x.toLowerCase()];if(!v)throw new TypeError(&quot;invalid suite type&quot;);if(typeof y==&quot;string&quot;&amp;&amp;(y=l.from(y)),v.mode!==&quot;GCM&quot;&amp;&amp;y.length!==v.iv)throw new TypeError(&quot;invalid iv length &quot;+y.length);if(typeof g==&quot;string&quot;&amp;&amp;(g=l.from(g)),g.length!==v.key/8)throw new TypeError(&quot;invalid key length &quot;+g.length);return v.type===&quot;stream&quot;?new c(v.module,g,y,!0):v.type===&quot;auth&quot;?new s(v.module,g,y,!0):new h(v.module,g,y)}t(&quot;inherits&quot;)(h,a),h.prototype._update=function(x){var g,y;this._cache.add(x);for(var v=[];g=this._cache.get(this._autopadding);)y=this._mode.decrypt(this,g),v.push(y);return l.concat(v)},h.prototype._final=function(){var x=this._cache.flush();if(this._autopadding)return(function(g){var y=g[15];if(y&lt;1||y&gt;16)throw new Error(&quot;unable to decrypt data&quot;);for(var v=-1;++v&lt;y;)if(g[v+(16-y)]!==y)throw new Error(&quot;unable to decrypt data&quot;);if(y!==16)return g.slice(0,16-y)})(this._mode.decrypt(this,x));if(x)throw new Error(&quot;data not multiple of block length&quot;)},h.prototype.setAutoPadding=function(x){return this._autopadding=!!x,this},m.prototype.add=function(x){this.cache=l.concat([this.cache,x])},m.prototype.get=function(x){var g;if(x){if(this.cache.length&gt;16)return g=this.cache.slice(0,16),this.cache=this.cache.slice(16),g}else if(this.cache.length&gt;=16)return g=this.cache.slice(0,16),this.cache=this.cache.slice(16),g;return null},m.prototype.flush=function(){if(this.cache.length)return this.cache},o.createDecipher=function(x,g){var y=u[x.toLowerCase()];if(!y)throw new TypeError(&quot;invalid suite type&quot;);var v=f(g,!1,y.key,y.iv);return p(x,v.key,v.iv)},o.createDecipheriv=p},{&quot;./aes&quot;:189,&quot;./authCipher&quot;:190,&quot;./modes&quot;:202,&quot;./streamCipher&quot;:205,&quot;cipher-base&quot;:221,evp_bytestokey:423,inherits:440,&quot;safe-buffer&quot;:494}],193:[function(t,n,o){var s=t(&quot;./modes&quot;),l=t(&quot;./authCipher&quot;),u=t(&quot;safe-buffer&quot;).Buffer,c=t(&quot;./streamCipher&quot;),a=t(&quot;cipher-base&quot;),d=t(&quot;./aes&quot;),f=t(&quot;evp_bytestokey&quot;);function h(g,y,v){a.call(this),this._cache=new p,this._cipher=new d.AES(y),this._prev=u.from(v),this._mode=g,this._autopadding=!0}t(&quot;inherits&quot;)(h,a),h.prototype._update=function(g){var y,v;this._cache.add(g);for(var _=[];y=this._cache.get();)v=this._mode.encrypt(this,y),_.push(v);return u.concat(_)};var m=u.alloc(16,16);function p(){this.cache=u.allocUnsafe(0)}function x(g,y,v){var _=s[g.toLowerCase()];if(!_)throw new TypeError(&quot;invalid suite type&quot;);if(typeof y==&quot;string&quot;&amp;&amp;(y=u.from(y)),y.length!==_.key/8)throw new TypeError(&quot;invalid key length &quot;+y.length);if(typeof v==&quot;string&quot;&amp;&amp;(v=u.from(v)),_.mode!==&quot;GCM&quot;&amp;&amp;v.length!==_.iv)throw new TypeError(&quot;invalid iv length &quot;+v.length);return _.type===&quot;stream&quot;?new c(_.module,y,v):_.type===&quot;auth&quot;?new l(_.module,y,v):new h(_.module,y,v)}h.prototype._final=function(){var g=this._cache.flush();if(this._autopadding)return g=this._mode.encrypt(this,g),this._cipher.scrub(),g;if(!g.equals(m))throw this._cipher.scrub(),new Error(&quot;data not multiple of block length&quot;)},h.prototype.setAutoPadding=function(g){return this._autopadding=!!g,this},p.prototype.add=function(g){this.cache=u.concat([this.cache,g])},p.prototype.get=function(){if(this.cache.length&gt;15){var g=this.cache.slice(0,16);return this.cache=this.cache.slice(16),g}return null},p.prototype.flush=function(){for(var g=16-this.cache.length,y=u.allocUnsafe(g),v=-1;++v&lt;g;)y.writeUInt8(g,v);return u.concat([this.cache,y])},o.createCipheriv=x,o.createCipher=function(g,y){var v=s[g.toLowerCase()];if(!v)throw new TypeError(&quot;invalid suite type&quot;);var _=f(y,!1,v.key,v.iv);return x(g,_.key,_.iv)}},{&quot;./aes&quot;:189,&quot;./authCipher&quot;:190,&quot;./modes&quot;:202,&quot;./streamCipher&quot;:205,&quot;cipher-base&quot;:221,evp_bytestokey:423,inherits:440,&quot;safe-buffer&quot;:494}],194:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=s.alloc(16,0);function u(a){var d=s.allocUnsafe(16);return d.writeUInt32BE(a[0]&gt;&gt;&gt;0,0),d.writeUInt32BE(a[1]&gt;&gt;&gt;0,4),d.writeUInt32BE(a[2]&gt;&gt;&gt;0,8),d.writeUInt32BE(a[3]&gt;&gt;&gt;0,12),d}function c(a){this.h=a,this.state=s.alloc(16,0),this.cache=s.allocUnsafe(0)}c.prototype.ghash=function(a){for(var d=-1;++d&lt;a.length;)this.state[d]^=a[d];this._multiply()},c.prototype._multiply=function(){for(var a,d,f,h=[(a=this.h).readUInt32BE(0),a.readUInt32BE(4),a.readUInt32BE(8),a.readUInt32BE(12)],m=[0,0,0,0],p=-1;++p&lt;128;){for((this.state[~~(p/8)]&amp;1&lt;&lt;7-p%8)!=0&amp;&amp;(m[0]^=h[0],m[1]^=h[1],m[2]^=h[2],m[3]^=h[3]),f=(1&amp;h[3])!=0,d=3;d&gt;0;d--)h[d]=h[d]&gt;&gt;&gt;1|(1&amp;h[d-1])&lt;&lt;31;h[0]=h[0]&gt;&gt;&gt;1,f&amp;&amp;(h[0]=h[0]^225&lt;&lt;24)}this.state=u(m)},c.prototype.update=function(a){var d;for(this.cache=s.concat([this.cache,a]);this.cache.length&gt;=16;)d=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(d)},c.prototype.final=function(a,d){return this.cache.length&amp;&amp;this.ghash(s.concat([this.cache,l],16)),this.ghash(u([0,a,0,d])),this.state},n.exports=c},{&quot;safe-buffer&quot;:494}],195:[function(t,n,o){n.exports=function(s){for(var l,u=s.length;u--;){if((l=s.readUInt8(u))!==255){l++,s.writeUInt8(l,u);break}s.writeUInt8(0,u)}}},{}],196:[function(t,n,o){var s=t(&quot;buffer-xor&quot;);o.encrypt=function(l,u){var c=s(u,l._prev);return l._prev=l._cipher.encryptBlock(c),l._prev},o.decrypt=function(l,u){var c=l._prev;l._prev=u;var a=l._cipher.decryptBlock(u);return s(a,c)}},{&quot;buffer-xor&quot;:219}],197:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=t(&quot;buffer-xor&quot;);function u(c,a,d){var f=a.length,h=l(a,c._cache);return c._cache=c._cache.slice(f),c._prev=s.concat([c._prev,d?a:h]),h}o.encrypt=function(c,a,d){for(var f,h=s.allocUnsafe(0);a.length;){if(c._cache.length===0&amp;&amp;(c._cache=c._cipher.encryptBlock(c._prev),c._prev=s.allocUnsafe(0)),!(c._cache.length&lt;=a.length)){h=s.concat([h,u(c,a,d)]);break}f=c._cache.length,h=s.concat([h,u(c,a.slice(0,f),d)]),a=a.slice(f)}return h}},{&quot;buffer-xor&quot;:219,&quot;safe-buffer&quot;:494}],198:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer;function l(c,a,d){for(var f,h,m=-1,p=0;++m&lt;8;)f=a&amp;1&lt;&lt;7-m?128:0,p+=(128&amp;(h=c._cipher.encryptBlock(c._prev)[0]^f))&gt;&gt;m%8,c._prev=u(c._prev,d?f:h);return p}function u(c,a){var d=c.length,f=-1,h=s.allocUnsafe(c.length);for(c=s.concat([c,s.from([a])]);++f&lt;d;)h[f]=c[f]&lt;&lt;1|c[f+1]&gt;&gt;7;return h}o.encrypt=function(c,a,d){for(var f=a.length,h=s.allocUnsafe(f),m=-1;++m&lt;f;)h[m]=l(c,a[m],d);return h}},{&quot;safe-buffer&quot;:494}],199:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer;function l(u,c,a){var d=u._cipher.encryptBlock(u._prev)[0]^c;return u._prev=s.concat([u._prev.slice(1),s.from([a?c:d])]),d}o.encrypt=function(u,c,a){for(var d=c.length,f=s.allocUnsafe(d),h=-1;++h&lt;d;)f[h]=l(u,c[h],a);return f}},{&quot;safe-buffer&quot;:494}],200:[function(t,n,o){var s=t(&quot;buffer-xor&quot;),l=t(&quot;safe-buffer&quot;).Buffer,u=t(&quot;../incr32&quot;);function c(a){var d=a._cipher.encryptBlockRaw(a._prev);return u(a._prev),d}o.encrypt=function(a,d){var f=Math.ceil(d.length/16),h=a._cache.length;a._cache=l.concat([a._cache,l.allocUnsafe(16*f)]);for(var m=0;m&lt;f;m++){var p=c(a),x=h+16*m;a._cache.writeUInt32BE(p[0],x+0),a._cache.writeUInt32BE(p[1],x+4),a._cache.writeUInt32BE(p[2],x+8),a._cache.writeUInt32BE(p[3],x+12)}var g=a._cache.slice(0,d.length);return a._cache=a._cache.slice(d.length),s(d,g)}},{&quot;../incr32&quot;:195,&quot;buffer-xor&quot;:219,&quot;safe-buffer&quot;:494}],201:[function(t,n,o){o.encrypt=function(s,l){return s._cipher.encryptBlock(l)},o.decrypt=function(s,l){return s._cipher.decryptBlock(l)}},{}],202:[function(t,n,o){var s={ECB:t(&quot;./ecb&quot;),CBC:t(&quot;./cbc&quot;),CFB:t(&quot;./cfb&quot;),CFB8:t(&quot;./cfb8&quot;),CFB1:t(&quot;./cfb1&quot;),OFB:t(&quot;./ofb&quot;),CTR:t(&quot;./ctr&quot;),GCM:t(&quot;./ctr&quot;)},l=t(&quot;./list.json&quot;);for(var u in l)l[u].module=s[l[u].mode];n.exports=l},{&quot;./cbc&quot;:196,&quot;./cfb&quot;:197,&quot;./cfb1&quot;:198,&quot;./cfb8&quot;:199,&quot;./ctr&quot;:200,&quot;./ecb&quot;:201,&quot;./list.json&quot;:203,&quot;./ofb&quot;:204}],203:[function(t,n,o){n.exports={&quot;aes-128-ecb&quot;:{cipher:&quot;AES&quot;,key:128,iv:0,mode:&quot;ECB&quot;,type:&quot;block&quot;},&quot;aes-192-ecb&quot;:{cipher:&quot;AES&quot;,key:192,iv:0,mode:&quot;ECB&quot;,type:&quot;block&quot;},&quot;aes-256-ecb&quot;:{cipher:&quot;AES&quot;,key:256,iv:0,mode:&quot;ECB&quot;,type:&quot;block&quot;},&quot;aes-128-cbc&quot;:{cipher:&quot;AES&quot;,key:128,iv:16,mode:&quot;CBC&quot;,type:&quot;block&quot;},&quot;aes-192-cbc&quot;:{cipher:&quot;AES&quot;,key:192,iv:16,mode:&quot;CBC&quot;,type:&quot;block&quot;},&quot;aes-256-cbc&quot;:{cipher:&quot;AES&quot;,key:256,iv:16,mode:&quot;CBC&quot;,type:&quot;block&quot;},aes128:{cipher:&quot;AES&quot;,key:128,iv:16,mode:&quot;CBC&quot;,type:&quot;block&quot;},aes192:{cipher:&quot;AES&quot;,key:192,iv:16,mode:&quot;CBC&quot;,type:&quot;block&quot;},aes256:{cipher:&quot;AES&quot;,key:256,iv:16,mode:&quot;CBC&quot;,type:&quot;block&quot;},&quot;aes-128-cfb&quot;:{cipher:&quot;AES&quot;,key:128,iv:16,mode:&quot;CFB&quot;,type:&quot;stream&quot;},&quot;aes-192-cfb&quot;:{cipher:&quot;AES&quot;,key:192,iv:16,mode:&quot;CFB&quot;,type:&quot;stream&quot;},&quot;aes-256-cfb&quot;:{cipher:&quot;AES&quot;,key:256,iv:16,mode:&quot;CFB&quot;,type:&quot;stream&quot;},&quot;aes-128-cfb8&quot;:{cipher:&quot;AES&quot;,key:128,iv:16,mode:&quot;CFB8&quot;,type:&quot;stream&quot;},&quot;aes-192-cfb8&quot;:{cipher:&quot;AES&quot;,key:192,iv:16,mode:&quot;CFB8&quot;,type:&quot;stream&quot;},&quot;aes-256-cfb8&quot;:{cipher:&quot;AES&quot;,key:256,iv:16,mode:&quot;CFB8&quot;,type:&quot;stream&quot;},&quot;aes-128-cfb1&quot;:{cipher:&quot;AES&quot;,key:128,iv:16,mode:&quot;CFB1&quot;,type:&quot;stream&quot;},&quot;aes-192-cfb1&quot;:{cipher:&quot;AES&quot;,key:192,iv:16,mode:&quot;CFB1&quot;,type:&quot;stream&quot;},&quot;aes-256-cfb1&quot;:{cipher:&quot;AES&quot;,key:256,iv:16,mode:&quot;CFB1&quot;,type:&quot;stream&quot;},&quot;aes-128-ofb&quot;:{cipher:&quot;AES&quot;,key:128,iv:16,mode:&quot;OFB&quot;,type:&quot;stream&quot;},&quot;aes-192-ofb&quot;:{cipher:&quot;AES&quot;,key:192,iv:16,mode:&quot;OFB&quot;,type:&quot;stream&quot;},&quot;aes-256-ofb&quot;:{cipher:&quot;AES&quot;,key:256,iv:16,mode:&quot;OFB&quot;,type:&quot;stream&quot;},&quot;aes-128-ctr&quot;:{cipher:&quot;AES&quot;,key:128,iv:16,mode:&quot;CTR&quot;,type:&quot;stream&quot;},&quot;aes-192-ctr&quot;:{cipher:&quot;AES&quot;,key:192,iv:16,mode:&quot;CTR&quot;,type:&quot;stream&quot;},&quot;aes-256-ctr&quot;:{cipher:&quot;AES&quot;,key:256,iv:16,mode:&quot;CTR&quot;,type:&quot;stream&quot;},&quot;aes-128-gcm&quot;:{cipher:&quot;AES&quot;,key:128,iv:12,mode:&quot;GCM&quot;,type:&quot;auth&quot;},&quot;aes-192-gcm&quot;:{cipher:&quot;AES&quot;,key:192,iv:12,mode:&quot;GCM&quot;,type:&quot;auth&quot;},&quot;aes-256-gcm&quot;:{cipher:&quot;AES&quot;,key:256,iv:12,mode:&quot;GCM&quot;,type:&quot;auth&quot;}}},{}],204:[function(t,n,o){(function(s){(function(){var l=t(&quot;buffer-xor&quot;);function u(c){return c._prev=c._cipher.encryptBlock(c._prev),c._prev}o.encrypt=function(c,a){for(;c._cache.length&lt;a.length;)c._cache=s.concat([c._cache,u(c)]);var d=c._cache.slice(0,a.length);return c._cache=c._cache.slice(a.length),l(a,d)}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:220,&quot;buffer-xor&quot;:219}],205:[function(t,n,o){var s=t(&quot;./aes&quot;),l=t(&quot;safe-buffer&quot;).Buffer,u=t(&quot;cipher-base&quot;);function c(a,d,f,h){u.call(this),this._cipher=new s.AES(d),this._prev=l.from(f),this._cache=l.allocUnsafe(0),this._secCache=l.allocUnsafe(0),this._decrypt=h,this._mode=a}t(&quot;inherits&quot;)(c,u),c.prototype._update=function(a){return this._mode.encrypt(this,a,this._decrypt)},c.prototype._final=function(){this._cipher.scrub()},n.exports=c},{&quot;./aes&quot;:189,&quot;cipher-base&quot;:221,inherits:440,&quot;safe-buffer&quot;:494}],206:[function(t,n,o){var s=t(&quot;browserify-des&quot;),l=t(&quot;browserify-aes/browser&quot;),u=t(&quot;browserify-aes/modes&quot;),c=t(&quot;browserify-des/modes&quot;),a=t(&quot;evp_bytestokey&quot;);function d(h,m,p){if(h=h.toLowerCase(),u[h])return l.createCipheriv(h,m,p);if(c[h])return new s({key:m,iv:p,mode:h});throw new TypeError(&quot;invalid suite type&quot;)}function f(h,m,p){if(h=h.toLowerCase(),u[h])return l.createDecipheriv(h,m,p);if(c[h])return new s({key:m,iv:p,mode:h,decrypt:!0});throw new TypeError(&quot;invalid suite type&quot;)}o.createCipher=o.Cipher=function(h,m){var p,x;if(h=h.toLowerCase(),u[h])p=u[h].key,x=u[h].iv;else{if(!c[h])throw new TypeError(&quot;invalid suite type&quot;);p=8*c[h].key,x=c[h].iv}var g=a(m,!1,p,x);return d(h,g.key,g.iv)},o.createCipheriv=o.Cipheriv=d,o.createDecipher=o.Decipher=function(h,m){var p,x;if(h=h.toLowerCase(),u[h])p=u[h].key,x=u[h].iv;else{if(!c[h])throw new TypeError(&quot;invalid suite type&quot;);p=8*c[h].key,x=c[h].iv}var g=a(m,!1,p,x);return f(h,g.key,g.iv)},o.createDecipheriv=o.Decipheriv=f,o.listCiphers=o.getCiphers=function(){return Object.keys(c).concat(l.getCiphers())}},{&quot;browserify-aes/browser&quot;:191,&quot;browserify-aes/modes&quot;:202,&quot;browserify-des&quot;:207,&quot;browserify-des/modes&quot;:208,evp_bytestokey:423}],207:[function(t,n,o){var s=t(&quot;cipher-base&quot;),l=t(&quot;des.js&quot;),u=t(&quot;inherits&quot;),c=t(&quot;safe-buffer&quot;).Buffer,a={&quot;des-ede3-cbc&quot;:l.CBC.instantiate(l.EDE),&quot;des-ede3&quot;:l.EDE,&quot;des-ede-cbc&quot;:l.CBC.instantiate(l.EDE),&quot;des-ede&quot;:l.EDE,&quot;des-cbc&quot;:l.CBC.instantiate(l.DES),&quot;des-ecb&quot;:l.DES};function d(f){s.call(this);var h,m=f.mode.toLowerCase(),p=a[m];h=f.decrypt?&quot;decrypt&quot;:&quot;encrypt&quot;;var x=f.key;c.isBuffer(x)||(x=c.from(x)),m!==&quot;des-ede&quot;&amp;&amp;m!==&quot;des-ede-cbc&quot;||(x=c.concat([x,x.slice(0,8)]));var g=f.iv;c.isBuffer(g)||(g=c.from(g)),this._des=p.create({key:x,iv:g,type:h})}a.des=a[&quot;des-cbc&quot;],a.des3=a[&quot;des-ede3-cbc&quot;],n.exports=d,u(d,s),d.prototype._update=function(f){return c.from(this._des.update(f))},d.prototype._final=function(){return c.from(this._des.final())}},{&quot;cipher-base&quot;:221,&quot;des.js&quot;:394,inherits:440,&quot;safe-buffer&quot;:494}],208:[function(t,n,o){o[&quot;des-ecb&quot;]={key:8,iv:0},o[&quot;des-cbc&quot;]=o.des={key:8,iv:8},o[&quot;des-ede3-cbc&quot;]=o.des3={key:24,iv:8},o[&quot;des-ede3&quot;]={key:24,iv:0},o[&quot;des-ede-cbc&quot;]={key:16,iv:8},o[&quot;des-ede&quot;]={key:16,iv:0}},{}],209:[function(t,n,o){(function(s){(function(){var l=t(&quot;bn.js&quot;),u=t(&quot;randombytes&quot;);function c(d){var f,h=d.modulus.byteLength();do f=new l(u(h));while(f.cmp(d.modulus)&gt;=0||!f.umod(d.prime1)||!f.umod(d.prime2));return f}function a(d,f){var h=(function(V){var F=c(V);return{blinder:F.toRed(l.mont(V.modulus)).redPow(new l(V.publicExponent)).fromRed(),unblinder:F.invm(V.modulus)}})(f),m=f.modulus.byteLength(),p=new l(d).mul(h.blinder).umod(f.modulus),x=p.toRed(l.mont(f.prime1)),g=p.toRed(l.mont(f.prime2)),y=f.coefficient,v=f.prime1,_=f.prime2,S=x.redPow(f.exponent1).fromRed(),A=g.redPow(f.exponent2).fromRed(),I=S.isub(A).imul(y).umod(v).imul(_);return A.iadd(I).imul(h.unblinder).umod(f.modulus).toArrayLike(s,&quot;be&quot;,m)}a.getr=c,n.exports=a}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;bn.js&quot;:186,buffer:220,randombytes:475}],210:[function(t,n,o){n.exports=t(&quot;./browser/algorithms.json&quot;)},{&quot;./browser/algorithms.json&quot;:211}],211:[function(t,n,o){n.exports={sha224WithRSAEncryption:{sign:&quot;rsa&quot;,hash:&quot;sha224&quot;,id:&quot;302d300d06096086480165030402040500041c&quot;},&quot;RSA-SHA224&quot;:{sign:&quot;ecdsa/rsa&quot;,hash:&quot;sha224&quot;,id:&quot;302d300d06096086480165030402040500041c&quot;},sha256WithRSAEncryption:{sign:&quot;rsa&quot;,hash:&quot;sha256&quot;,id:&quot;3031300d060960864801650304020105000420&quot;},&quot;RSA-SHA256&quot;:{sign:&quot;ecdsa/rsa&quot;,hash:&quot;sha256&quot;,id:&quot;3031300d060960864801650304020105000420&quot;},sha384WithRSAEncryption:{sign:&quot;rsa&quot;,hash:&quot;sha384&quot;,id:&quot;3041300d060960864801650304020205000430&quot;},&quot;RSA-SHA384&quot;:{sign:&quot;ecdsa/rsa&quot;,hash:&quot;sha384&quot;,id:&quot;3041300d060960864801650304020205000430&quot;},sha512WithRSAEncryption:{sign:&quot;rsa&quot;,hash:&quot;sha512&quot;,id:&quot;3051300d060960864801650304020305000440&quot;},&quot;RSA-SHA512&quot;:{sign:&quot;ecdsa/rsa&quot;,hash:&quot;sha512&quot;,id:&quot;3051300d060960864801650304020305000440&quot;},&quot;RSA-SHA1&quot;:{sign:&quot;rsa&quot;,hash:&quot;sha1&quot;,id:&quot;3021300906052b0e03021a05000414&quot;},&quot;ecdsa-with-SHA1&quot;:{sign:&quot;ecdsa&quot;,hash:&quot;sha1&quot;,id:&quot;&quot;},sha256:{sign:&quot;ecdsa&quot;,hash:&quot;sha256&quot;,id:&quot;&quot;},sha224:{sign:&quot;ecdsa&quot;,hash:&quot;sha224&quot;,id:&quot;&quot;},sha384:{sign:&quot;ecdsa&quot;,hash:&quot;sha384&quot;,id:&quot;&quot;},sha512:{sign:&quot;ecdsa&quot;,hash:&quot;sha512&quot;,id:&quot;&quot;},&quot;DSA-SHA&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha1&quot;,id:&quot;&quot;},&quot;DSA-SHA1&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha1&quot;,id:&quot;&quot;},DSA:{sign:&quot;dsa&quot;,hash:&quot;sha1&quot;,id:&quot;&quot;},&quot;DSA-WITH-SHA224&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha224&quot;,id:&quot;&quot;},&quot;DSA-SHA224&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha224&quot;,id:&quot;&quot;},&quot;DSA-WITH-SHA256&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha256&quot;,id:&quot;&quot;},&quot;DSA-SHA256&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha256&quot;,id:&quot;&quot;},&quot;DSA-WITH-SHA384&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha384&quot;,id:&quot;&quot;},&quot;DSA-SHA384&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha384&quot;,id:&quot;&quot;},&quot;DSA-WITH-SHA512&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha512&quot;,id:&quot;&quot;},&quot;DSA-SHA512&quot;:{sign:&quot;dsa&quot;,hash:&quot;sha512&quot;,id:&quot;&quot;},&quot;DSA-RIPEMD160&quot;:{sign:&quot;dsa&quot;,hash:&quot;rmd160&quot;,id:&quot;&quot;},ripemd160WithRSA:{sign:&quot;rsa&quot;,hash:&quot;rmd160&quot;,id:&quot;3021300906052b2403020105000414&quot;},&quot;RSA-RIPEMD160&quot;:{sign:&quot;rsa&quot;,hash:&quot;rmd160&quot;,id:&quot;3021300906052b2403020105000414&quot;},md5WithRSAEncryption:{sign:&quot;rsa&quot;,hash:&quot;md5&quot;,id:&quot;3020300c06082a864886f70d020505000410&quot;},&quot;RSA-MD5&quot;:{sign:&quot;rsa&quot;,hash:&quot;md5&quot;,id:&quot;3020300c06082a864886f70d020505000410&quot;}}},{}],212:[function(t,n,o){n.exports={&quot;1.3.132.0.10&quot;:&quot;secp256k1&quot;,&quot;1.3.132.0.33&quot;:&quot;p224&quot;,&quot;1.2.840.10045.3.1.1&quot;:&quot;p192&quot;,&quot;1.2.840.10045.3.1.7&quot;:&quot;p256&quot;,&quot;1.3.132.0.34&quot;:&quot;p384&quot;,&quot;1.3.132.0.35&quot;:&quot;p521&quot;}},{}],213:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=t(&quot;create-hash&quot;),u=t(&quot;readable-stream&quot;),c=t(&quot;inherits&quot;),a=t(&quot;./sign&quot;),d=t(&quot;./verify&quot;),f=t(&quot;./algorithms.json&quot;);function h(g){u.Writable.call(this);var y=f[g];if(!y)throw new Error(&quot;Unknown message digest&quot;);this._hashType=y.hash,this._hash=l(y.hash),this._tag=y.id,this._signType=y.sign}function m(g){u.Writable.call(this);var y=f[g];if(!y)throw new Error(&quot;Unknown message digest&quot;);this._hash=l(y.hash),this._tag=y.id,this._signType=y.sign}function p(g){return new h(g)}function x(g){return new m(g)}Object.keys(f).forEach((function(g){f[g].id=s.from(f[g].id,&quot;hex&quot;),f[g.toLowerCase()]=f[g]})),c(h,u.Writable),h.prototype._write=function(g,y,v){this._hash.update(g),v()},h.prototype.update=function(g,y){return typeof g==&quot;string&quot;&amp;&amp;(g=s.from(g,y)),this._hash.update(g),this},h.prototype.sign=function(g,y){this.end();var v=this._hash.digest(),_=a(v,g,this._hashType,this._signType,this._tag);return y?_.toString(y):_},c(m,u.Writable),m.prototype._write=function(g,y,v){this._hash.update(g),v()},m.prototype.update=function(g,y){return typeof g==&quot;string&quot;&amp;&amp;(g=s.from(g,y)),this._hash.update(g),this},m.prototype.verify=function(g,y,v){typeof y==&quot;string&quot;&amp;&amp;(y=s.from(y,v)),this.end();var _=this._hash.digest();return d(y,_,g,this._signType,this._tag)},n.exports={Sign:p,Verify:x,createSign:p,createVerify:x}},{&quot;./algorithms.json&quot;:211,&quot;./sign&quot;:214,&quot;./verify&quot;:215,&quot;create-hash&quot;:386,inherits:440,&quot;readable-stream&quot;:491,&quot;safe-buffer&quot;:494}],214:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=t(&quot;create-hmac&quot;),u=t(&quot;browserify-rsa&quot;),c=t(&quot;elliptic&quot;).ec,a=t(&quot;bn.js&quot;),d=t(&quot;parse-asn1&quot;),f=t(&quot;./curves.json&quot;);function h(g,y,v,_){if((g=s.from(g.toArray())).length&lt;y.byteLength()){var S=s.alloc(y.byteLength()-g.length);g=s.concat([S,g])}var A=v.length,I=(function(q,H){q=(q=m(q,H)).mod(H);var B=s.from(q.toArray());if(B.length&lt;H.byteLength()){var K=s.alloc(H.byteLength()-B.length);B=s.concat([K,B])}return B})(v,y),V=s.alloc(A);V.fill(1);var F=s.alloc(A);return F=l(_,F).update(V).update(s.from([0])).update(g).update(I).digest(),V=l(_,F).update(V).digest(),{k:F=l(_,F).update(V).update(s.from([1])).update(g).update(I).digest(),v:V=l(_,F).update(V).digest()}}function m(g,y){var v=new a(g),_=(g.length&lt;&lt;3)-y.bitLength();return _&gt;0&amp;&amp;v.ishrn(_),v}function p(g,y,v){var _,S;do{for(_=s.alloc(0);8*_.length&lt;g.bitLength();)y.v=l(v,y.k).update(y.v).digest(),_=s.concat([_,y.v]);S=m(_,g),y.k=l(v,y.k).update(y.v).update(s.from([0])).digest(),y.v=l(v,y.k).update(y.v).digest()}while(S.cmp(g)!==-1);return S}function x(g,y,v,_){return g.toRed(a.mont(v)).redPow(y).fromRed().mod(_)}n.exports=function(g,y,v,_,S){var A=d(y);if(A.curve){if(_!==&quot;ecdsa&quot;&amp;&amp;_!==&quot;ecdsa/rsa&quot;)throw new Error(&quot;wrong private key type&quot;);return(function(q,H){var B=f[H.curve.join(&quot;.&quot;)];if(!B)throw new Error(&quot;unknown curve &quot;+H.curve.join(&quot;.&quot;));var K=new c(B).keyFromPrivate(H.privateKey).sign(q);return s.from(K.toDER())})(g,A)}if(A.type===&quot;dsa&quot;){if(_!==&quot;dsa&quot;)throw new Error(&quot;wrong private key type&quot;);return(function(q,H,B){for(var K,T=H.params.priv_key,L=H.params.p,E=H.params.q,j=H.params.g,k=new a(0),N=m(q,E).mod(E),C=!1,P=h(T,E,q,B);C===!1;)K=p(E,P,B),k=x(j,K,L,E),(C=K.invm(E).imul(N.add(T.mul(k))).mod(E)).cmpn(0)===0&amp;&amp;(C=!1,k=new a(0));return(function(D,z){D=D.toArray(),z=z.toArray(),128&amp;D[0]&amp;&amp;(D=[0].concat(D)),128&amp;z[0]&amp;&amp;(z=[0].concat(z));var Y=[48,D.length+z.length+4,2,D.length];return Y=Y.concat(D,[2,z.length],z),s.from(Y)})(k,C)})(g,A,v)}if(_!==&quot;rsa&quot;&amp;&amp;_!==&quot;ecdsa/rsa&quot;)throw new Error(&quot;wrong private key type&quot;);g=s.concat([S,g]);for(var I=A.modulus.byteLength(),V=[0,1];g.length+V.length+1&lt;I;)V.push(255);V.push(0);for(var F=-1;++F&lt;g.length;)V.push(g[F]);return u(V,A)},n.exports.getKey=h,n.exports.makeKey=p},{&quot;./curves.json&quot;:212,&quot;bn.js&quot;:186,&quot;browserify-rsa&quot;:209,&quot;create-hmac&quot;:388,elliptic:405,&quot;parse-asn1&quot;:459,&quot;safe-buffer&quot;:494}],215:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=t(&quot;bn.js&quot;),u=t(&quot;elliptic&quot;).ec,c=t(&quot;parse-asn1&quot;),a=t(&quot;./curves.json&quot;);function d(f,h){if(f.cmpn(0)&lt;=0)throw new Error(&quot;invalid sig&quot;);if(f.cmp(h)&gt;=h)throw new Error(&quot;invalid sig&quot;)}n.exports=function(f,h,m,p,x){var g=c(m);if(g.type===&quot;ec&quot;){if(p!==&quot;ecdsa&quot;&amp;&amp;p!==&quot;ecdsa/rsa&quot;)throw new Error(&quot;wrong public key type&quot;);return(function(V,F,q){var H=a[q.data.algorithm.curve.join(&quot;.&quot;)];if(!H)throw new Error(&quot;unknown curve &quot;+q.data.algorithm.curve.join(&quot;.&quot;));var B=new u(H),K=q.data.subjectPrivateKey.data;return B.verify(F,V,K)})(f,h,g)}if(g.type===&quot;dsa&quot;){if(p!==&quot;dsa&quot;)throw new Error(&quot;wrong public key type&quot;);return(function(V,F,q){var H=q.data.p,B=q.data.q,K=q.data.g,T=q.data.pub_key,L=c.signature.decode(V,&quot;der&quot;),E=L.s,j=L.r;d(E,B),d(j,B);var k=l.mont(H),N=E.invm(B);return K.toRed(k).redPow(new l(F).mul(N).mod(B)).fromRed().mul(T.toRed(k).redPow(j.mul(N).mod(B)).fromRed()).mod(H).mod(B).cmp(j)===0})(f,h,g)}if(p!==&quot;rsa&quot;&amp;&amp;p!==&quot;ecdsa/rsa&quot;)throw new Error(&quot;wrong public key type&quot;);h=s.concat([x,h]);for(var y=g.modulus.byteLength(),v=[1],_=0;h.length+v.length+2&lt;y;)v.push(255),_++;v.push(0);for(var S=-1;++S&lt;h.length;)v.push(h[S]);v=s.from(v);var A=l.mont(g.modulus);f=(f=new l(f).toRed(A)).redPow(new l(g.publicExponent)),f=s.from(f.fromRed().toArray());var I=_&lt;8?1:0;for(y=Math.min(f.length,v.length),f.length!==v.length&amp;&amp;(I=1),S=-1;++S&lt;y;)I|=f[S]^v[S];return I===0}},{&quot;./curves.json&quot;:212,&quot;bn.js&quot;:186,elliptic:405,&quot;parse-asn1&quot;:459,&quot;safe-buffer&quot;:494}],216:[function(t,n,o){},{}],217:[function(t,n,o){var s=t(&quot;buffer&quot;),l=s.Buffer;function u(a,d){for(var f in a)d[f]=a[f]}function c(a,d,f){return l(a,d,f)}l.from&amp;&amp;l.alloc&amp;&amp;l.allocUnsafe&amp;&amp;l.allocUnsafeSlow?n.exports=s:(u(s,o),o.Buffer=c),u(l,c),c.from=function(a,d,f){if(typeof a==&quot;number&quot;)throw new TypeError(&quot;Argument must not be a number&quot;);return l(a,d,f)},c.alloc=function(a,d,f){if(typeof a!=&quot;number&quot;)throw new TypeError(&quot;Argument must be a number&quot;);var h=l(a);return d!==void 0?typeof f==&quot;string&quot;?h.fill(d,f):h.fill(d):h.fill(0),h},c.allocUnsafe=function(a){if(typeof a!=&quot;number&quot;)throw new TypeError(&quot;Argument must be a number&quot;);return l(a)},c.allocUnsafeSlow=function(a){if(typeof a!=&quot;number&quot;)throw new TypeError(&quot;Argument must be a number&quot;);return s.SlowBuffer(a)}},{buffer:220}],218:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=s.isEncoding||function(g){switch((g=&quot;&quot;+g)&amp;&amp;g.toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:case&quot;raw&quot;:return!0;default:return!1}};function u(g){var y;switch(this.encoding=(function(v){var _=(function(S){if(!S)return&quot;utf8&quot;;for(var A;;)switch(S){case&quot;utf8&quot;:case&quot;utf-8&quot;:return&quot;utf8&quot;;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return&quot;utf16le&quot;;case&quot;latin1&quot;:case&quot;binary&quot;:return&quot;latin1&quot;;case&quot;base64&quot;:case&quot;ascii&quot;:case&quot;hex&quot;:return S;default:if(A)return;S=(&quot;&quot;+S).toLowerCase(),A=!0}})(v);if(typeof _!=&quot;string&quot;&amp;&amp;(s.isEncoding===l||!l(v)))throw new Error(&quot;Unknown encoding: &quot;+v);return _||v})(g),this.encoding){case&quot;utf16le&quot;:this.text=d,this.end=f,y=4;break;case&quot;utf8&quot;:this.fillLast=a,y=4;break;case&quot;base64&quot;:this.text=h,this.end=m,y=3;break;default:return this.write=p,void(this.end=x)}this.lastNeed=0,this.lastTotal=0,this.lastChar=s.allocUnsafe(y)}function c(g){return g&lt;=127?0:g&gt;&gt;5==6?2:g&gt;&gt;4==14?3:g&gt;&gt;3==30?4:g&gt;&gt;6==2?-1:-2}function a(g){var y=this.lastTotal-this.lastNeed,v=(function(_,S,A){if((192&amp;S[0])!=128)return _.lastNeed=0,&quot;�&quot;;if(_.lastNeed&gt;1&amp;&amp;S.length&gt;1){if((192&amp;S[1])!=128)return _.lastNeed=1,&quot;�&quot;;if(_.lastNeed&gt;2&amp;&amp;S.length&gt;2&amp;&amp;(192&amp;S[2])!=128)return _.lastNeed=2,&quot;�&quot;}})(this,g);return v!==void 0?v:this.lastNeed&lt;=g.length?(g.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,y,0,g.length),void(this.lastNeed-=g.length))}function d(g,y){if((g.length-y)%2==0){var v=g.toString(&quot;utf16le&quot;,y);if(v){var _=v.charCodeAt(v.length-1);if(_&gt;=55296&amp;&amp;_&lt;=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString(&quot;utf16le&quot;,y,g.length-1)}function f(g){var y=g&amp;&amp;g.length?this.write(g):&quot;&quot;;if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return y+this.lastChar.toString(&quot;utf16le&quot;,0,v)}return y}function h(g,y){var v=(g.length-y)%3;return v===0?g.toString(&quot;base64&quot;,y):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString(&quot;base64&quot;,y,g.length-v))}function m(g){var y=g&amp;&amp;g.length?this.write(g):&quot;&quot;;return this.lastNeed?y+this.lastChar.toString(&quot;base64&quot;,0,3-this.lastNeed):y}function p(g){return g.toString(this.encoding)}function x(g){return g&amp;&amp;g.length?this.write(g):&quot;&quot;}o.StringDecoder=u,u.prototype.write=function(g){if(g.length===0)return&quot;&quot;;var y,v;if(this.lastNeed){if((y=this.fillLast(g))===void 0)return&quot;&quot;;v=this.lastNeed,this.lastNeed=0}else v=0;return v&lt;g.length?y?y+this.text(g,v):this.text(g,v):y||&quot;&quot;},u.prototype.end=function(g){var y=g&amp;&amp;g.length?this.write(g):&quot;&quot;;return this.lastNeed?y+&quot;�&quot;:y},u.prototype.text=function(g,y){var v=(function(S,A,I){var V=A.length-1;if(V&lt;I)return 0;var F=c(A[V]);return F&gt;=0?(F&gt;0&amp;&amp;(S.lastNeed=F-1),F):--V&lt;I||F===-2?0:(F=c(A[V]))&gt;=0?(F&gt;0&amp;&amp;(S.lastNeed=F-2),F):--V&lt;I||F===-2?0:(F=c(A[V]))&gt;=0?(F&gt;0&amp;&amp;(F===2?F=0:S.lastNeed=F-3),F):0})(this,g,y);if(!this.lastNeed)return g.toString(&quot;utf8&quot;,y);this.lastTotal=v;var _=g.length-(v-this.lastNeed);return g.copy(this.lastChar,0,_),g.toString(&quot;utf8&quot;,y,_)},u.prototype.fillLast=function(g){if(this.lastNeed&lt;=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},{&quot;safe-buffer&quot;:217}],219:[function(t,n,o){(function(s){(function(){n.exports=function(l,u){for(var c=Math.min(l.length,u.length),a=new s(c),d=0;d&lt;c;++d)a[d]=l[d]^u[d];return a}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:220}],220:[function(t,n,o){(function(s){(function(){var l=t(&quot;base64-js&quot;),u=t(&quot;ieee754&quot;);o.Buffer=a,o.SlowBuffer=function($){return+$!=$&amp;&amp;($=0),a.alloc(+$)},o.INSPECT_MAX_BYTES=50;function c($){if($&gt;2147483647)throw new RangeError(&#039;The value &quot;&#039;+$+&#039;&quot; is invalid for option &quot;size&quot;&#039;);var R=new Uint8Array($);return R.__proto__=a.prototype,R}function a($,R,X){if(typeof $==&quot;number&quot;){if(typeof R==&quot;string&quot;)throw new TypeError(&#039;The &quot;string&quot; argument must be of type string. Received type number&#039;);return h($)}return d($,R,X)}function d($,R,X){if(typeof $==&quot;string&quot;)return(function(te,ie){if(typeof ie==&quot;string&quot;&amp;&amp;ie!==&quot;&quot;||(ie=&quot;utf8&quot;),!a.isEncoding(ie))throw new TypeError(&quot;Unknown encoding: &quot;+ie);var de=0|x(te,ie),ce=c(de),se=ce.write(te,ie);return se!==de&amp;&amp;(ce=ce.slice(0,se)),ce})($,R);if(ArrayBuffer.isView($))return m($);if($==null)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof $);if(U($,ArrayBuffer)||$&amp;&amp;U($.buffer,ArrayBuffer))return(function(te,ie,de){if(ie&lt;0||te.byteLength&lt;ie)throw new RangeError(&#039;&quot;offset&quot; is outside of buffer bounds&#039;);if(te.byteLength&lt;ie+(de||0))throw new RangeError(&#039;&quot;length&quot; is outside of buffer bounds&#039;);var ce;return ce=ie===void 0&amp;&amp;de===void 0?new Uint8Array(te):de===void 0?new Uint8Array(te,ie):new Uint8Array(te,ie,de),ce.__proto__=a.prototype,ce})($,R,X);if(typeof $==&quot;number&quot;)throw new TypeError(&#039;The &quot;value&quot; argument must not be of type number. Received type number&#039;);var re=$.valueOf&amp;&amp;$.valueOf();if(re!=null&amp;&amp;re!==$)return a.from(re,R,X);var Q=(function(te){if(a.isBuffer(te)){var ie=0|p(te.length),de=c(ie);return de.length===0||te.copy(de,0,0,ie),de}if(te.length!==void 0)return typeof te.length!=&quot;number&quot;||J(te.length)?c(0):m(te);if(te.type===&quot;Buffer&quot;&amp;&amp;Array.isArray(te.data))return m(te.data)})($);if(Q)return Q;if(typeof Symbol&lt;&quot;u&quot;&amp;&amp;Symbol.toPrimitive!=null&amp;&amp;typeof $[Symbol.toPrimitive]==&quot;function&quot;)return a.from($[Symbol.toPrimitive](&quot;string&quot;),R,X);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof $)}function f($){if(typeof $!=&quot;number&quot;)throw new TypeError(&#039;&quot;size&quot; argument must be of type number&#039;);if($&lt;0)throw new RangeError(&#039;The value &quot;&#039;+$+&#039;&quot; is invalid for option &quot;size&quot;&#039;)}function h($){return f($),c($&lt;0?0:0|p($))}function m($){for(var R=$.length&lt;0?0:0|p($.length),X=c(R),re=0;re&lt;R;re+=1)X[re]=255&amp;$[re];return X}function p($){if($&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes&quot;);return 0|$}function x($,R){if(a.isBuffer($))return $.length;if(ArrayBuffer.isView($)||U($,ArrayBuffer))return $.byteLength;if(typeof $!=&quot;string&quot;)throw new TypeError(&#039;The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type &#039;+typeof $);var X=$.length,re=arguments.length&gt;2&amp;&amp;arguments[2]===!0;if(!re&amp;&amp;X===0)return 0;for(var Q=!1;;)switch(R){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return X;case&quot;utf8&quot;:case&quot;utf-8&quot;:return Y($).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*X;case&quot;hex&quot;:return X&gt;&gt;&gt;1;case&quot;base64&quot;:return Z($).length;default:if(Q)return re?-1:Y($).length;R=(&quot;&quot;+R).toLowerCase(),Q=!0}}function g($,R,X){var re=!1;if((R===void 0||R&lt;0)&amp;&amp;(R=0),R&gt;this.length||((X===void 0||X&gt;this.length)&amp;&amp;(X=this.length),X&lt;=0)||(X&gt;&gt;&gt;=0)&lt;=(R&gt;&gt;&gt;=0))return&quot;&quot;;for($||($=&quot;utf8&quot;);;)switch($){case&quot;hex&quot;:return L(this,R,X);case&quot;utf8&quot;:case&quot;utf-8&quot;:return B(this,R,X);case&quot;ascii&quot;:return K(this,R,X);case&quot;latin1&quot;:case&quot;binary&quot;:return T(this,R,X);case&quot;base64&quot;:return H(this,R,X);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return E(this,R,X);default:if(re)throw new TypeError(&quot;Unknown encoding: &quot;+$);$=($+&quot;&quot;).toLowerCase(),re=!0}}function y($,R,X){var re=$[R];$[R]=$[X],$[X]=re}function v($,R,X,re,Q){if($.length===0)return-1;if(typeof X==&quot;string&quot;?(re=X,X=0):X&gt;2147483647?X=2147483647:X&lt;-2147483648&amp;&amp;(X=-2147483648),J(X=+X)&amp;&amp;(X=Q?0:$.length-1),X&lt;0&amp;&amp;(X=$.length+X),X&gt;=$.length){if(Q)return-1;X=$.length-1}else if(X&lt;0){if(!Q)return-1;X=0}if(typeof R==&quot;string&quot;&amp;&amp;(R=a.from(R,re)),a.isBuffer(R))return R.length===0?-1:_($,R,X,re,Q);if(typeof R==&quot;number&quot;)return R&amp;=255,typeof Uint8Array.prototype.indexOf==&quot;function&quot;?Q?Uint8Array.prototype.indexOf.call($,R,X):Uint8Array.prototype.lastIndexOf.call($,R,X):_($,[R],X,re,Q);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function _($,R,X,re,Q){var te,ie=1,de=$.length,ce=R.length;if(re!==void 0&amp;&amp;((re=String(re).toLowerCase())===&quot;ucs2&quot;||re===&quot;ucs-2&quot;||re===&quot;utf16le&quot;||re===&quot;utf-16le&quot;)){if($.length&lt;2||R.length&lt;2)return-1;ie=2,de/=2,ce/=2,X/=2}function se(xe,pe){return ie===1?xe[pe]:xe.readUInt16BE(pe*ie)}if(Q){var fe=-1;for(te=X;te&lt;de;te++)if(se($,te)===se(R,fe===-1?0:te-fe)){if(fe===-1&amp;&amp;(fe=te),te-fe+1===ce)return fe*ie}else fe!==-1&amp;&amp;(te-=te-fe),fe=-1}else for(X+ce&gt;de&amp;&amp;(X=de-ce),te=X;te&gt;=0;te--){for(var le=!0,ge=0;ge&lt;ce;ge++)if(se($,te+ge)!==se(R,ge)){le=!1;break}if(le)return te}return-1}function S($,R,X,re){X=Number(X)||0;var Q=$.length-X;re?(re=Number(re))&gt;Q&amp;&amp;(re=Q):re=Q;var te=R.length;re&gt;te/2&amp;&amp;(re=te/2);for(var ie=0;ie&lt;re;++ie){var de=parseInt(R.substr(2*ie,2),16);if(J(de))return ie;$[X+ie]=de}return ie}function A($,R,X,re){return ne(Y(R,$.length-X),$,X,re)}function I($,R,X,re){return ne((function(Q){for(var te=[],ie=0;ie&lt;Q.length;++ie)te.push(255&amp;Q.charCodeAt(ie));return te})(R),$,X,re)}function V($,R,X,re){return I($,R,X,re)}function F($,R,X,re){return ne(Z(R),$,X,re)}function q($,R,X,re){return ne((function(Q,te){for(var ie,de,ce,se=[],fe=0;fe&lt;Q.length&amp;&amp;!((te-=2)&lt;0);++fe)ie=Q.charCodeAt(fe),de=ie&gt;&gt;8,ce=ie%256,se.push(ce),se.push(de);return se})(R,$.length-X),$,X,re)}function H($,R,X){return R===0&amp;&amp;X===$.length?l.fromByteArray($):l.fromByteArray($.slice(R,X))}function B($,R,X){X=Math.min($.length,X);for(var re=[],Q=R;Q&lt;X;){var te,ie,de,ce,se=$[Q],fe=null,le=se&gt;239?4:se&gt;223?3:se&gt;191?2:1;if(Q+le&lt;=X)switch(le){case 1:se&lt;128&amp;&amp;(fe=se);break;case 2:(192&amp;(te=$[Q+1]))==128&amp;&amp;(ce=(31&amp;se)&lt;&lt;6|63&amp;te)&gt;127&amp;&amp;(fe=ce);break;case 3:te=$[Q+1],ie=$[Q+2],(192&amp;te)==128&amp;&amp;(192&amp;ie)==128&amp;&amp;(ce=(15&amp;se)&lt;&lt;12|(63&amp;te)&lt;&lt;6|63&amp;ie)&gt;2047&amp;&amp;(ce&lt;55296||ce&gt;57343)&amp;&amp;(fe=ce);break;case 4:te=$[Q+1],ie=$[Q+2],de=$[Q+3],(192&amp;te)==128&amp;&amp;(192&amp;ie)==128&amp;&amp;(192&amp;de)==128&amp;&amp;(ce=(15&amp;se)&lt;&lt;18|(63&amp;te)&lt;&lt;12|(63&amp;ie)&lt;&lt;6|63&amp;de)&gt;65535&amp;&amp;ce&lt;1114112&amp;&amp;(fe=ce)}fe===null?(fe=65533,le=1):fe&gt;65535&amp;&amp;(fe-=65536,re.push(fe&gt;&gt;&gt;10&amp;1023|55296),fe=56320|1023&amp;fe),re.push(fe),Q+=le}return(function(ge){var xe=ge.length;if(xe&lt;=4096)return String.fromCharCode.apply(String,ge);for(var pe=&quot;&quot;,ue=0;ue&lt;xe;)pe+=String.fromCharCode.apply(String,ge.slice(ue,ue+=4096));return pe})(re)}o.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=(function(){try{var $=new Uint8Array(1);return $.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},$.foo()===42}catch{return!1}})(),a.TYPED_ARRAY_SUPPORT||typeof console&gt;&quot;u&quot;||typeof console.error!=&quot;function&quot;||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),typeof Symbol&lt;&quot;u&quot;&amp;&amp;Symbol.species!=null&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function($,R,X){return d($,R,X)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function($,R,X){return(function(re,Q,te){return f(re),re&lt;=0?c(re):Q!==void 0?typeof te==&quot;string&quot;?c(re).fill(Q,te):c(re).fill(Q):c(re)})($,R,X)},a.allocUnsafe=function($){return h($)},a.allocUnsafeSlow=function($){return h($)},a.isBuffer=function($){return $!=null&amp;&amp;$._isBuffer===!0&amp;&amp;$!==a.prototype},a.compare=function($,R){if(U($,Uint8Array)&amp;&amp;($=a.from($,$.offset,$.byteLength)),U(R,Uint8Array)&amp;&amp;(R=a.from(R,R.offset,R.byteLength)),!a.isBuffer($)||!a.isBuffer(R))throw new TypeError(&#039;The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array&#039;);if($===R)return 0;for(var X=$.length,re=R.length,Q=0,te=Math.min(X,re);Q&lt;te;++Q)if($[Q]!==R[Q]){X=$[Q],re=R[Q];break}return X&lt;re?-1:re&lt;X?1:0},a.isEncoding=function($){switch(String($).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function($,R){if(!Array.isArray($))throw new TypeError(&#039;&quot;list&quot; argument must be an Array of Buffers&#039;);if($.length===0)return a.alloc(0);var X;if(R===void 0)for(R=0,X=0;X&lt;$.length;++X)R+=$[X].length;var re=a.allocUnsafe(R),Q=0;for(X=0;X&lt;$.length;++X){var te=$[X];if(U(te,Uint8Array)&amp;&amp;(te=a.from(te)),!a.isBuffer(te))throw new TypeError(&#039;&quot;list&quot; argument must be an Array of Buffers&#039;);te.copy(re,Q),Q+=te.length}return re},a.byteLength=x,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var $=this.length;if($%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var R=0;R&lt;$;R+=2)y(this,R,R+1);return this},a.prototype.swap32=function(){var $=this.length;if($%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var R=0;R&lt;$;R+=4)y(this,R,R+3),y(this,R+1,R+2);return this},a.prototype.swap64=function(){var $=this.length;if($%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var R=0;R&lt;$;R+=8)y(this,R,R+7),y(this,R+1,R+6),y(this,R+2,R+5),y(this,R+3,R+4);return this},a.prototype.toString=function(){var $=this.length;return $===0?&quot;&quot;:arguments.length===0?B(this,0,$):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function($){if(!a.isBuffer($))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===$||a.compare(this,$)===0},a.prototype.inspect=function(){var $=&quot;&quot;,R=o.INSPECT_MAX_BYTES;return $=this.toString(&quot;hex&quot;,0,R).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;R&amp;&amp;($+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+$+&quot;&gt;&quot;},a.prototype.compare=function($,R,X,re,Q){if(U($,Uint8Array)&amp;&amp;($=a.from($,$.offset,$.byteLength)),!a.isBuffer($))throw new TypeError(&#039;The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type &#039;+typeof $);if(R===void 0&amp;&amp;(R=0),X===void 0&amp;&amp;(X=$?$.length:0),re===void 0&amp;&amp;(re=0),Q===void 0&amp;&amp;(Q=this.length),R&lt;0||X&gt;$.length||re&lt;0||Q&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(re&gt;=Q&amp;&amp;R&gt;=X)return 0;if(re&gt;=Q)return-1;if(R&gt;=X)return 1;if(this===$)return 0;for(var te=(Q&gt;&gt;&gt;=0)-(re&gt;&gt;&gt;=0),ie=(X&gt;&gt;&gt;=0)-(R&gt;&gt;&gt;=0),de=Math.min(te,ie),ce=this.slice(re,Q),se=$.slice(R,X),fe=0;fe&lt;de;++fe)if(ce[fe]!==se[fe]){te=ce[fe],ie=se[fe];break}return te&lt;ie?-1:ie&lt;te?1:0},a.prototype.includes=function($,R,X){return this.indexOf($,R,X)!==-1},a.prototype.indexOf=function($,R,X){return v(this,$,R,X,!0)},a.prototype.lastIndexOf=function($,R,X){return v(this,$,R,X,!1)},a.prototype.write=function($,R,X,re){if(R===void 0)re=&quot;utf8&quot;,X=this.length,R=0;else if(X===void 0&amp;&amp;typeof R==&quot;string&quot;)re=R,X=this.length,R=0;else{if(!isFinite(R))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);R&gt;&gt;&gt;=0,isFinite(X)?(X&gt;&gt;&gt;=0,re===void 0&amp;&amp;(re=&quot;utf8&quot;)):(re=X,X=void 0)}var Q=this.length-R;if((X===void 0||X&gt;Q)&amp;&amp;(X=Q),$.length&gt;0&amp;&amp;(X&lt;0||R&lt;0)||R&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);re||(re=&quot;utf8&quot;);for(var te=!1;;)switch(re){case&quot;hex&quot;:return S(this,$,R,X);case&quot;utf8&quot;:case&quot;utf-8&quot;:return A(this,$,R,X);case&quot;ascii&quot;:return I(this,$,R,X);case&quot;latin1&quot;:case&quot;binary&quot;:return V(this,$,R,X);case&quot;base64&quot;:return F(this,$,R,X);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return q(this,$,R,X);default:if(te)throw new TypeError(&quot;Unknown encoding: &quot;+re);re=(&quot;&quot;+re).toLowerCase(),te=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function K($,R,X){var re=&quot;&quot;;X=Math.min($.length,X);for(var Q=R;Q&lt;X;++Q)re+=String.fromCharCode(127&amp;$[Q]);return re}function T($,R,X){var re=&quot;&quot;;X=Math.min($.length,X);for(var Q=R;Q&lt;X;++Q)re+=String.fromCharCode($[Q]);return re}function L($,R,X){var re=$.length;(!R||R&lt;0)&amp;&amp;(R=0),(!X||X&lt;0||X&gt;re)&amp;&amp;(X=re);for(var Q=&quot;&quot;,te=R;te&lt;X;++te)Q+=z($[te]);return Q}function E($,R,X){for(var re=$.slice(R,X),Q=&quot;&quot;,te=0;te&lt;re.length;te+=2)Q+=String.fromCharCode(re[te]+256*re[te+1]);return Q}function j($,R,X){if($%1!=0||$&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if($+R&gt;X)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function k($,R,X,re,Q,te){if(!a.isBuffer($))throw new TypeError(&#039;&quot;buffer&quot; argument must be a Buffer instance&#039;);if(R&gt;Q||R&lt;te)throw new RangeError(&#039;&quot;value&quot; argument is out of bounds&#039;);if(X+re&gt;$.length)throw new RangeError(&quot;Index out of range&quot;)}function N($,R,X,re,Q,te){if(X+re&gt;$.length)throw new RangeError(&quot;Index out of range&quot;);if(X&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function C($,R,X,re,Q){return R=+R,X&gt;&gt;&gt;=0,Q||N($,0,X,4),u.write($,R,X,re,23,4),X+4}function P($,R,X,re,Q){return R=+R,X&gt;&gt;&gt;=0,Q||N($,0,X,8),u.write($,R,X,re,52,8),X+8}a.prototype.slice=function($,R){var X=this.length;($=~~$)&lt;0?($+=X)&lt;0&amp;&amp;($=0):$&gt;X&amp;&amp;($=X),(R=R===void 0?X:~~R)&lt;0?(R+=X)&lt;0&amp;&amp;(R=0):R&gt;X&amp;&amp;(R=X),R&lt;$&amp;&amp;(R=$);var re=this.subarray($,R);return re.__proto__=a.prototype,re},a.prototype.readUIntLE=function($,R,X){$&gt;&gt;&gt;=0,R&gt;&gt;&gt;=0,X||j($,R,this.length);for(var re=this[$],Q=1,te=0;++te&lt;R&amp;&amp;(Q*=256);)re+=this[$+te]*Q;return re},a.prototype.readUIntBE=function($,R,X){$&gt;&gt;&gt;=0,R&gt;&gt;&gt;=0,X||j($,R,this.length);for(var re=this[$+--R],Q=1;R&gt;0&amp;&amp;(Q*=256);)re+=this[$+--R]*Q;return re},a.prototype.readUInt8=function($,R){return $&gt;&gt;&gt;=0,R||j($,1,this.length),this[$]},a.prototype.readUInt16LE=function($,R){return $&gt;&gt;&gt;=0,R||j($,2,this.length),this[$]|this[$+1]&lt;&lt;8},a.prototype.readUInt16BE=function($,R){return $&gt;&gt;&gt;=0,R||j($,2,this.length),this[$]&lt;&lt;8|this[$+1]},a.prototype.readUInt32LE=function($,R){return $&gt;&gt;&gt;=0,R||j($,4,this.length),(this[$]|this[$+1]&lt;&lt;8|this[$+2]&lt;&lt;16)+16777216*this[$+3]},a.prototype.readUInt32BE=function($,R){return $&gt;&gt;&gt;=0,R||j($,4,this.length),16777216*this[$]+(this[$+1]&lt;&lt;16|this[$+2]&lt;&lt;8|this[$+3])},a.prototype.readIntLE=function($,R,X){$&gt;&gt;&gt;=0,R&gt;&gt;&gt;=0,X||j($,R,this.length);for(var re=this[$],Q=1,te=0;++te&lt;R&amp;&amp;(Q*=256);)re+=this[$+te]*Q;return re&gt;=(Q*=128)&amp;&amp;(re-=Math.pow(2,8*R)),re},a.prototype.readIntBE=function($,R,X){$&gt;&gt;&gt;=0,R&gt;&gt;&gt;=0,X||j($,R,this.length);for(var re=R,Q=1,te=this[$+--re];re&gt;0&amp;&amp;(Q*=256);)te+=this[$+--re]*Q;return te&gt;=(Q*=128)&amp;&amp;(te-=Math.pow(2,8*R)),te},a.prototype.readInt8=function($,R){return $&gt;&gt;&gt;=0,R||j($,1,this.length),128&amp;this[$]?-1*(255-this[$]+1):this[$]},a.prototype.readInt16LE=function($,R){$&gt;&gt;&gt;=0,R||j($,2,this.length);var X=this[$]|this[$+1]&lt;&lt;8;return 32768&amp;X?4294901760|X:X},a.prototype.readInt16BE=function($,R){$&gt;&gt;&gt;=0,R||j($,2,this.length);var X=this[$+1]|this[$]&lt;&lt;8;return 32768&amp;X?4294901760|X:X},a.prototype.readInt32LE=function($,R){return $&gt;&gt;&gt;=0,R||j($,4,this.length),this[$]|this[$+1]&lt;&lt;8|this[$+2]&lt;&lt;16|this[$+3]&lt;&lt;24},a.prototype.readInt32BE=function($,R){return $&gt;&gt;&gt;=0,R||j($,4,this.length),this[$]&lt;&lt;24|this[$+1]&lt;&lt;16|this[$+2]&lt;&lt;8|this[$+3]},a.prototype.readFloatLE=function($,R){return $&gt;&gt;&gt;=0,R||j($,4,this.length),u.read(this,$,!0,23,4)},a.prototype.readFloatBE=function($,R){return $&gt;&gt;&gt;=0,R||j($,4,this.length),u.read(this,$,!1,23,4)},a.prototype.readDoubleLE=function($,R){return $&gt;&gt;&gt;=0,R||j($,8,this.length),u.read(this,$,!0,52,8)},a.prototype.readDoubleBE=function($,R){return $&gt;&gt;&gt;=0,R||j($,8,this.length),u.read(this,$,!1,52,8)},a.prototype.writeUIntLE=function($,R,X,re){$=+$,R&gt;&gt;&gt;=0,X&gt;&gt;&gt;=0,re||k(this,$,R,X,Math.pow(2,8*X)-1,0);var Q=1,te=0;for(this[R]=255&amp;$;++te&lt;X&amp;&amp;(Q*=256);)this[R+te]=$/Q&amp;255;return R+X},a.prototype.writeUIntBE=function($,R,X,re){$=+$,R&gt;&gt;&gt;=0,X&gt;&gt;&gt;=0,re||k(this,$,R,X,Math.pow(2,8*X)-1,0);var Q=X-1,te=1;for(this[R+Q]=255&amp;$;--Q&gt;=0&amp;&amp;(te*=256);)this[R+Q]=$/te&amp;255;return R+X},a.prototype.writeUInt8=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,1,255,0),this[R]=255&amp;$,R+1},a.prototype.writeUInt16LE=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,2,65535,0),this[R]=255&amp;$,this[R+1]=$&gt;&gt;&gt;8,R+2},a.prototype.writeUInt16BE=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,2,65535,0),this[R]=$&gt;&gt;&gt;8,this[R+1]=255&amp;$,R+2},a.prototype.writeUInt32LE=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,4,4294967295,0),this[R+3]=$&gt;&gt;&gt;24,this[R+2]=$&gt;&gt;&gt;16,this[R+1]=$&gt;&gt;&gt;8,this[R]=255&amp;$,R+4},a.prototype.writeUInt32BE=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,4,4294967295,0),this[R]=$&gt;&gt;&gt;24,this[R+1]=$&gt;&gt;&gt;16,this[R+2]=$&gt;&gt;&gt;8,this[R+3]=255&amp;$,R+4},a.prototype.writeIntLE=function($,R,X,re){if($=+$,R&gt;&gt;&gt;=0,!re){var Q=Math.pow(2,8*X-1);k(this,$,R,X,Q-1,-Q)}var te=0,ie=1,de=0;for(this[R]=255&amp;$;++te&lt;X&amp;&amp;(ie*=256);)$&lt;0&amp;&amp;de===0&amp;&amp;this[R+te-1]!==0&amp;&amp;(de=1),this[R+te]=($/ie&gt;&gt;0)-de&amp;255;return R+X},a.prototype.writeIntBE=function($,R,X,re){if($=+$,R&gt;&gt;&gt;=0,!re){var Q=Math.pow(2,8*X-1);k(this,$,R,X,Q-1,-Q)}var te=X-1,ie=1,de=0;for(this[R+te]=255&amp;$;--te&gt;=0&amp;&amp;(ie*=256);)$&lt;0&amp;&amp;de===0&amp;&amp;this[R+te+1]!==0&amp;&amp;(de=1),this[R+te]=($/ie&gt;&gt;0)-de&amp;255;return R+X},a.prototype.writeInt8=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,1,127,-128),$&lt;0&amp;&amp;($=255+$+1),this[R]=255&amp;$,R+1},a.prototype.writeInt16LE=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,2,32767,-32768),this[R]=255&amp;$,this[R+1]=$&gt;&gt;&gt;8,R+2},a.prototype.writeInt16BE=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,2,32767,-32768),this[R]=$&gt;&gt;&gt;8,this[R+1]=255&amp;$,R+2},a.prototype.writeInt32LE=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,4,2147483647,-2147483648),this[R]=255&amp;$,this[R+1]=$&gt;&gt;&gt;8,this[R+2]=$&gt;&gt;&gt;16,this[R+3]=$&gt;&gt;&gt;24,R+4},a.prototype.writeInt32BE=function($,R,X){return $=+$,R&gt;&gt;&gt;=0,X||k(this,$,R,4,2147483647,-2147483648),$&lt;0&amp;&amp;($=4294967295+$+1),this[R]=$&gt;&gt;&gt;24,this[R+1]=$&gt;&gt;&gt;16,this[R+2]=$&gt;&gt;&gt;8,this[R+3]=255&amp;$,R+4},a.prototype.writeFloatLE=function($,R,X){return C(this,$,R,!0,X)},a.prototype.writeFloatBE=function($,R,X){return C(this,$,R,!1,X)},a.prototype.writeDoubleLE=function($,R,X){return P(this,$,R,!0,X)},a.prototype.writeDoubleBE=function($,R,X){return P(this,$,R,!1,X)},a.prototype.copy=function($,R,X,re){if(!a.isBuffer($))throw new TypeError(&quot;argument should be a Buffer&quot;);if(X||(X=0),re||re===0||(re=this.length),R&gt;=$.length&amp;&amp;(R=$.length),R||(R=0),re&gt;0&amp;&amp;re&lt;X&amp;&amp;(re=X),re===X||$.length===0||this.length===0)return 0;if(R&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(X&lt;0||X&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(re&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);re&gt;this.length&amp;&amp;(re=this.length),$.length-R&lt;re-X&amp;&amp;(re=$.length-R+X);var Q=re-X;if(this===$&amp;&amp;typeof Uint8Array.prototype.copyWithin==&quot;function&quot;)this.copyWithin(R,X,re);else if(this===$&amp;&amp;X&lt;R&amp;&amp;R&lt;re)for(var te=Q-1;te&gt;=0;--te)$[te+R]=this[te+X];else Uint8Array.prototype.set.call($,this.subarray(X,re),R);return Q},a.prototype.fill=function($,R,X,re){if(typeof $==&quot;string&quot;){if(typeof R==&quot;string&quot;?(re=R,R=0,X=this.length):typeof X==&quot;string&quot;&amp;&amp;(re=X,X=this.length),re!==void 0&amp;&amp;typeof re!=&quot;string&quot;)throw new TypeError(&quot;encoding must be a string&quot;);if(typeof re==&quot;string&quot;&amp;&amp;!a.isEncoding(re))throw new TypeError(&quot;Unknown encoding: &quot;+re);if($.length===1){var Q=$.charCodeAt(0);(re===&quot;utf8&quot;&amp;&amp;Q&lt;128||re===&quot;latin1&quot;)&amp;&amp;($=Q)}}else typeof $==&quot;number&quot;&amp;&amp;($&amp;=255);if(R&lt;0||this.length&lt;R||this.length&lt;X)throw new RangeError(&quot;Out of range index&quot;);if(X&lt;=R)return this;var te;if(R&gt;&gt;&gt;=0,X=X===void 0?this.length:X&gt;&gt;&gt;0,$||($=0),typeof $==&quot;number&quot;)for(te=R;te&lt;X;++te)this[te]=$;else{var ie=a.isBuffer($)?$:a.from($,re),de=ie.length;if(de===0)throw new TypeError(&#039;The value &quot;&#039;+$+&#039;&quot; is invalid for argument &quot;value&quot;&#039;);for(te=0;te&lt;X-R;++te)this[te+R]=ie[te%de]}return this};var D=/[^+/0-9A-Za-z-_]/g;function z($){return $&lt;16?&quot;0&quot;+$.toString(16):$.toString(16)}function Y($,R){var X;R=R||1/0;for(var re=$.length,Q=null,te=[],ie=0;ie&lt;re;++ie){if((X=$.charCodeAt(ie))&gt;55295&amp;&amp;X&lt;57344){if(!Q){if(X&gt;56319){(R-=3)&gt;-1&amp;&amp;te.push(239,191,189);continue}if(ie+1===re){(R-=3)&gt;-1&amp;&amp;te.push(239,191,189);continue}Q=X;continue}if(X&lt;56320){(R-=3)&gt;-1&amp;&amp;te.push(239,191,189),Q=X;continue}X=65536+(Q-55296&lt;&lt;10|X-56320)}else Q&amp;&amp;(R-=3)&gt;-1&amp;&amp;te.push(239,191,189);if(Q=null,X&lt;128){if((R-=1)&lt;0)break;te.push(X)}else if(X&lt;2048){if((R-=2)&lt;0)break;te.push(X&gt;&gt;6|192,63&amp;X|128)}else if(X&lt;65536){if((R-=3)&lt;0)break;te.push(X&gt;&gt;12|224,X&gt;&gt;6&amp;63|128,63&amp;X|128)}else{if(!(X&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((R-=4)&lt;0)break;te.push(X&gt;&gt;18|240,X&gt;&gt;12&amp;63|128,X&gt;&gt;6&amp;63|128,63&amp;X|128)}}return te}function Z($){return l.toByteArray((function(R){if((R=(R=R.split(&quot;=&quot;)[0]).trim().replace(D,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;R.length%4!=0;)R+=&quot;=&quot;;return R})($))}function ne($,R,X,re){for(var Q=0;Q&lt;re&amp;&amp;!(Q+X&gt;=R.length||Q&gt;=$.length);++Q)R[Q+X]=$[Q];return Q}function U($,R){return $ instanceof R||$!=null&amp;&amp;$.constructor!=null&amp;&amp;$.constructor.name!=null&amp;&amp;$.constructor.name===R.name}function J($){return $!=$}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:185,buffer:220,ieee754:439}],221:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=t(&quot;stream&quot;).Transform,u=t(&quot;string_decoder&quot;).StringDecoder;function c(a){l.call(this),this.hashMode=typeof a==&quot;string&quot;,this.hashMode?this[a]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&amp;&amp;(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t(&quot;inherits&quot;)(c,l),c.prototype.update=function(a,d,f){typeof a==&quot;string&quot;&amp;&amp;(a=s.from(a,d));var h=this._update(a);return this.hashMode?this:(f&amp;&amp;(h=this._toString(h,f)),h)},c.prototype.setAutoPadding=function(){},c.prototype.getAuthTag=function(){throw new Error(&quot;trying to get auth tag in unsupported state&quot;)},c.prototype.setAuthTag=function(){throw new Error(&quot;trying to set auth tag in unsupported state&quot;)},c.prototype.setAAD=function(){throw new Error(&quot;trying to set aad in unsupported state&quot;)},c.prototype._transform=function(a,d,f){var h;try{this.hashMode?this._update(a):this.push(this._update(a))}catch(m){h=m}finally{f(h)}},c.prototype._flush=function(a){var d;try{this.push(this.__final())}catch(f){d=f}a(d)},c.prototype._finalOrDigest=function(a){var d=this.__final()||s.alloc(0);return a&amp;&amp;(d=this._toString(d,a,!0)),d},c.prototype._toString=function(a,d,f){if(this._decoder||(this._decoder=new u(d),this._encoding=d),this._encoding!==d)throw new Error(&quot;can&#039;t switch encodings&quot;);var h=this._decoder.write(a);return f&amp;&amp;(h+=this._decoder.end()),h},n.exports=c},{inherits:440,&quot;safe-buffer&quot;:494,stream:505,string_decoder:218}],222:[function(t,n,o){var s=t(&quot;../internals/is-callable&quot;),l=t(&quot;../internals/try-to-string&quot;),u=TypeError;n.exports=function(c){if(s(c))return c;throw new u(l(c)+&quot; is not a function&quot;)}},{&quot;../internals/is-callable&quot;:285,&quot;../internals/try-to-string&quot;:349}],223:[function(t,n,o){var s=t(&quot;../internals/is-constructor&quot;),l=t(&quot;../internals/try-to-string&quot;),u=TypeError;n.exports=function(c){if(s(c))return c;throw new u(l(c)+&quot; is not a constructor&quot;)}},{&quot;../internals/is-constructor&quot;:286,&quot;../internals/try-to-string&quot;:349}],224:[function(t,n,o){var s=t(&quot;../internals/is-callable&quot;),l=String,u=TypeError;n.exports=function(c){if(typeof c==&quot;object&quot;||s(c))return c;throw new u(&quot;Can&#039;t set &quot;+l(c)+&quot; as a prototype&quot;)}},{&quot;../internals/is-callable&quot;:285}],225:[function(t,n,o){var s=t(&quot;../internals/well-known-symbol&quot;),l=t(&quot;../internals/object-create&quot;),u=t(&quot;../internals/object-define-property&quot;).f,c=s(&quot;unscopables&quot;),a=Array.prototype;a[c]===void 0&amp;&amp;u(a,c,{configurable:!0,value:l(null)}),n.exports=function(d){a[c][d]=!0}},{&quot;../internals/object-create&quot;:306,&quot;../internals/object-define-property&quot;:308,&quot;../internals/well-known-symbol&quot;:357}],226:[function(t,n,o){var s=t(&quot;../internals/object-is-prototype-of&quot;),l=TypeError;n.exports=function(u,c){if(s(c,u))return u;throw new l(&quot;Incorrect invocation&quot;)}},{&quot;../internals/object-is-prototype-of&quot;:314}],227:[function(t,n,o){var s=t(&quot;../internals/is-object&quot;),l=String,u=TypeError;n.exports=function(c){if(s(c))return c;throw new u(l(c)+&quot; is not an object&quot;)}},{&quot;../internals/is-object&quot;:289}],228:[function(t,n,o){var s=t(&quot;../internals/to-indexed-object&quot;),l=t(&quot;../internals/to-absolute-index&quot;),u=t(&quot;../internals/length-of-array-like&quot;),c=function(a){return function(d,f,h){var m,p=s(d),x=u(p),g=l(h,x);if(a&amp;&amp;f!=f){for(;x&gt;g;)if((m=p[g++])!=m)return!0}else for(;x&gt;g;g++)if((a||g in p)&amp;&amp;p[g]===f)return a||g||0;return!a&amp;&amp;-1}};n.exports={includes:c(!0),indexOf:c(!1)}},{&quot;../internals/length-of-array-like&quot;:299,&quot;../internals/to-absolute-index&quot;:340,&quot;../internals/to-indexed-object&quot;:341}],229:[function(t,n,o){var s=t(&quot;../internals/function-bind-context&quot;),l=t(&quot;../internals/function-uncurry-this&quot;),u=t(&quot;../internals/indexed-object&quot;),c=t(&quot;../internals/to-object&quot;),a=t(&quot;../internals/length-of-array-like&quot;),d=t(&quot;../internals/array-species-create&quot;),f=l([].push),h=function(m){var p=m===1,x=m===2,g=m===3,y=m===4,v=m===6,_=m===7,S=m===5||v;return function(A,I,V,F){for(var q,H,B=c(A),K=u(B),T=s(I,V),L=a(K),E=0,j=F||d,k=p?j(A,L):x||_?j(A,0):void 0;L&gt;E;E++)if((S||E in K)&amp;&amp;(H=T(q=K[E],E,B),m))if(p)k[E]=H;else if(H)switch(m){case 3:return!0;case 5:return q;case 6:return E;case 2:f(k,q)}else switch(m){case 4:return!1;case 7:f(k,q)}return v?-1:g||y?y:k}};n.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},{&quot;../internals/array-species-create&quot;:233,&quot;../internals/function-bind-context&quot;:262,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/indexed-object&quot;:280,&quot;../internals/length-of-array-like&quot;:299,&quot;../internals/to-object&quot;:344}],230:[function(t,n,o){var s=t(&quot;../internals/to-absolute-index&quot;),l=t(&quot;../internals/length-of-array-like&quot;),u=t(&quot;../internals/create-property&quot;),c=Array,a=Math.max;n.exports=function(d,f,h){for(var m=l(d),p=s(f,m),x=s(h===void 0?m:h,m),g=c(a(x-p,0)),y=0;p&lt;x;p++,y++)u(g,y,d[p]);return g.length=y,g}},{&quot;../internals/create-property&quot;:243,&quot;../internals/length-of-array-like&quot;:299,&quot;../internals/to-absolute-index&quot;:340}],231:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;);n.exports=s([].slice)},{&quot;../internals/function-uncurry-this&quot;:268}],232:[function(t,n,o){var s=t(&quot;../internals/is-array&quot;),l=t(&quot;../internals/is-constructor&quot;),u=t(&quot;../internals/is-object&quot;),c=t(&quot;../internals/well-known-symbol&quot;)(&quot;species&quot;),a=Array;n.exports=function(d){var f;return s(d)&amp;&amp;(f=d.constructor,(l(f)&amp;&amp;(f===a||s(f.prototype))||u(f)&amp;&amp;(f=f[c])===null)&amp;&amp;(f=void 0)),f===void 0?a:f}},{&quot;../internals/is-array&quot;:284,&quot;../internals/is-constructor&quot;:286,&quot;../internals/is-object&quot;:289,&quot;../internals/well-known-symbol&quot;:357}],233:[function(t,n,o){var s=t(&quot;../internals/array-species-constructor&quot;);n.exports=function(l,u){return new(s(l))(u===0?0:u)}},{&quot;../internals/array-species-constructor&quot;:232}],234:[function(t,n,o){var s=t(&quot;../internals/well-known-symbol&quot;)(&quot;iterator&quot;),l=!1;try{var u=0,c={next:function(){return{done:!!u++}},return:function(){l=!0}};c[s]=function(){return this},Array.from(c,(function(){throw 2}))}catch{}n.exports=function(a,d){try{if(!d&amp;&amp;!l)return!1}catch{return!1}var f=!1;try{var h={};h[s]=function(){return{next:function(){return{done:f=!0}}}},a(h)}catch{}return f}},{&quot;../internals/well-known-symbol&quot;:357}],235:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=s({}.toString),u=s(&quot;&quot;.slice);n.exports=function(c){return u(l(c),8,-1)}},{&quot;../internals/function-uncurry-this&quot;:268}],236:[function(t,n,o){var s=t(&quot;../internals/to-string-tag-support&quot;),l=t(&quot;../internals/is-callable&quot;),u=t(&quot;../internals/classof-raw&quot;),c=t(&quot;../internals/well-known-symbol&quot;)(&quot;toStringTag&quot;),a=Object,d=u((function(){return arguments})())===&quot;Arguments&quot;;n.exports=s?u:function(f){var h,m,p;return f===void 0?&quot;Undefined&quot;:f===null?&quot;Null&quot;:typeof(m=(function(x,g){try{return x[g]}catch{}})(h=a(f),c))==&quot;string&quot;?m:d?u(h):(p=u(h))===&quot;Object&quot;&amp;&amp;l(h.callee)?&quot;Arguments&quot;:p}},{&quot;../internals/classof-raw&quot;:235,&quot;../internals/is-callable&quot;:285,&quot;../internals/to-string-tag-support&quot;:347,&quot;../internals/well-known-symbol&quot;:357}],237:[function(t,n,o){var s=t(&quot;../internals/has-own-property&quot;),l=t(&quot;../internals/own-keys&quot;),u=t(&quot;../internals/object-get-own-property-descriptor&quot;),c=t(&quot;../internals/object-define-property&quot;);n.exports=function(a,d,f){for(var h=l(d),m=c.f,p=u.f,x=0;x&lt;h.length;x++){var g=h[x];s(a,g)||f&amp;&amp;s(f,g)||m(a,g,p(d,g))}}},{&quot;../internals/has-own-property&quot;:275,&quot;../internals/object-define-property&quot;:308,&quot;../internals/object-get-own-property-descriptor&quot;:309,&quot;../internals/own-keys&quot;:321}],238:[function(t,n,o){var s=t(&quot;../internals/well-known-symbol&quot;)(&quot;match&quot;);n.exports=function(l){var u=/./;try{&quot;/./&quot;[l](u)}catch{try{return u[s]=!1,&quot;/./&quot;[l](u)}catch{}}return!1}},{&quot;../internals/well-known-symbol&quot;:357}],239:[function(t,n,o){var s=t(&quot;../internals/fails&quot;);n.exports=!s((function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype}))},{&quot;../internals/fails&quot;:260}],240:[function(t,n,o){n.exports=function(s,l){return{value:s,done:l}}},{}],241:[function(t,n,o){var s=t(&quot;../internals/descriptors&quot;),l=t(&quot;../internals/object-define-property&quot;),u=t(&quot;../internals/create-property-descriptor&quot;);n.exports=s?function(c,a,d){return l.f(c,a,u(1,d))}:function(c,a,d){return c[a]=d,c}},{&quot;../internals/create-property-descriptor&quot;:242,&quot;../internals/descriptors&quot;:247,&quot;../internals/object-define-property&quot;:308}],242:[function(t,n,o){n.exports=function(s,l){return{enumerable:!(1&amp;s),configurable:!(2&amp;s),writable:!(4&amp;s),value:l}}},{}],243:[function(t,n,o){var s=t(&quot;../internals/to-property-key&quot;),l=t(&quot;../internals/object-define-property&quot;),u=t(&quot;../internals/create-property-descriptor&quot;);n.exports=function(c,a,d){var f=s(a);f in c?l.f(c,f,u(0,d)):c[f]=d}},{&quot;../internals/create-property-descriptor&quot;:242,&quot;../internals/object-define-property&quot;:308,&quot;../internals/to-property-key&quot;:346}],244:[function(t,n,o){var s=t(&quot;../internals/make-built-in&quot;),l=t(&quot;../internals/object-define-property&quot;);n.exports=function(u,c,a){return a.get&amp;&amp;s(a.get,c,{getter:!0}),a.set&amp;&amp;s(a.set,c,{setter:!0}),l.f(u,c,a)}},{&quot;../internals/make-built-in&quot;:300,&quot;../internals/object-define-property&quot;:308}],245:[function(t,n,o){var s=t(&quot;../internals/is-callable&quot;),l=t(&quot;../internals/object-define-property&quot;),u=t(&quot;../internals/make-built-in&quot;),c=t(&quot;../internals/define-global-property&quot;);n.exports=function(a,d,f,h){h||(h={});var m=h.enumerable,p=h.name!==void 0?h.name:d;if(s(f)&amp;&amp;u(f,p,h),h.global)m?a[d]=f:c(d,f);else{try{h.unsafe?a[d]&amp;&amp;(m=!0):delete a[d]}catch{}m?a[d]=f:l.f(a,d,{value:f,enumerable:!1,configurable:!h.nonConfigurable,writable:!h.nonWritable})}return a}},{&quot;../internals/define-global-property&quot;:246,&quot;../internals/is-callable&quot;:285,&quot;../internals/make-built-in&quot;:300,&quot;../internals/object-define-property&quot;:308}],246:[function(t,n,o){var s=t(&quot;../internals/global&quot;),l=Object.defineProperty;n.exports=function(u,c){try{l(s,u,{value:c,configurable:!0,writable:!0})}catch{s[u]=c}return c}},{&quot;../internals/global&quot;:274}],247:[function(t,n,o){var s=t(&quot;../internals/fails&quot;);n.exports=!s((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},{&quot;../internals/fails&quot;:260}],248:[function(t,n,o){var s=typeof document==&quot;object&quot;&amp;&amp;document.all,l=s===void 0&amp;&amp;s!==void 0;n.exports={all:s,IS_HTMLDDA:l}},{}],249:[function(t,n,o){var s=t(&quot;../internals/global&quot;),l=t(&quot;../internals/is-object&quot;),u=s.document,c=l(u)&amp;&amp;l(u.createElement);n.exports=function(a){return c?u.createElement(a):{}}},{&quot;../internals/global&quot;:274,&quot;../internals/is-object&quot;:289}],250:[function(t,n,o){var s=t(&quot;../internals/engine-is-deno&quot;),l=t(&quot;../internals/engine-is-node&quot;);n.exports=!s&amp;&amp;!l&amp;&amp;typeof window==&quot;object&quot;&amp;&amp;typeof document==&quot;object&quot;},{&quot;../internals/engine-is-deno&quot;:251,&quot;../internals/engine-is-node&quot;:254}],251:[function(t,n,o){n.exports=typeof Deno==&quot;object&quot;&amp;&amp;Deno&amp;&amp;typeof Deno.version==&quot;object&quot;},{}],252:[function(t,n,o){var s=t(&quot;../internals/engine-user-agent&quot;);n.exports=/ipad|iphone|ipod/i.test(s)&amp;&amp;typeof Pebble&lt;&quot;u&quot;},{&quot;../internals/engine-user-agent&quot;:256}],253:[function(t,n,o){var s=t(&quot;../internals/engine-user-agent&quot;);n.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},{&quot;../internals/engine-user-agent&quot;:256}],254:[function(t,n,o){var s=t(&quot;../internals/global&quot;),l=t(&quot;../internals/classof-raw&quot;);n.exports=l(s.process)===&quot;process&quot;},{&quot;../internals/classof-raw&quot;:235,&quot;../internals/global&quot;:274}],255:[function(t,n,o){var s=t(&quot;../internals/engine-user-agent&quot;);n.exports=/web0s(?!.*chrome)/i.test(s)},{&quot;../internals/engine-user-agent&quot;:256}],256:[function(t,n,o){n.exports=typeof navigator&lt;&quot;u&quot;&amp;&amp;String(navigator.userAgent)||&quot;&quot;},{}],257:[function(t,n,o){var s,l,u=t(&quot;../internals/global&quot;),c=t(&quot;../internals/engine-user-agent&quot;),a=u.process,d=u.Deno,f=a&amp;&amp;a.versions||d&amp;&amp;d.version,h=f&amp;&amp;f.v8;h&amp;&amp;(l=(s=h.split(&quot;.&quot;))[0]&gt;0&amp;&amp;s[0]&lt;4?1:+(s[0]+s[1])),!l&amp;&amp;c&amp;&amp;(!(s=c.match(/Edge\/(\d+)/))||s[1]&gt;=74)&amp;&amp;(s=c.match(/Chrome\/(\d+)/))&amp;&amp;(l=+s[1]),n.exports=l},{&quot;../internals/engine-user-agent&quot;:256,&quot;../internals/global&quot;:274}],258:[function(t,n,o){n.exports=[&quot;constructor&quot;,&quot;hasOwnProperty&quot;,&quot;isPrototypeOf&quot;,&quot;propertyIsEnumerable&quot;,&quot;toLocaleString&quot;,&quot;toString&quot;,&quot;valueOf&quot;]},{}],259:[function(t,n,o){var s=t(&quot;../internals/global&quot;),l=t(&quot;../internals/object-get-own-property-descriptor&quot;).f,u=t(&quot;../internals/create-non-enumerable-property&quot;),c=t(&quot;../internals/define-built-in&quot;),a=t(&quot;../internals/define-global-property&quot;),d=t(&quot;../internals/copy-constructor-properties&quot;),f=t(&quot;../internals/is-forced&quot;);n.exports=function(h,m){var p,x,g,y,v,_=h.target,S=h.global,A=h.stat;if(p=S?s:A?s[_]||a(_,{}):(s[_]||{}).prototype)for(x in m){if(y=m[x],g=h.dontCallGetSet?(v=l(p,x))&amp;&amp;v.value:p[x],!f(S?x:_+(A?&quot;.&quot;:&quot;#&quot;)+x,h.forced)&amp;&amp;g!==void 0){if(typeof y==typeof g)continue;d(y,g)}(h.sham||g&amp;&amp;g.sham)&amp;&amp;u(y,&quot;sham&quot;,!0),c(p,x,y,h)}}},{&quot;../internals/copy-constructor-properties&quot;:237,&quot;../internals/create-non-enumerable-property&quot;:241,&quot;../internals/define-built-in&quot;:245,&quot;../internals/define-global-property&quot;:246,&quot;../internals/global&quot;:274,&quot;../internals/is-forced&quot;:287,&quot;../internals/object-get-own-property-descriptor&quot;:309}],260:[function(t,n,o){n.exports=function(s){try{return!!s()}catch{return!0}}},{}],261:[function(t,n,o){var s=t(&quot;../internals/function-bind-native&quot;),l=Function.prototype,u=l.apply,c=l.call;n.exports=typeof Reflect==&quot;object&quot;&amp;&amp;Reflect.apply||(s?c.bind(u):function(){return c.apply(u,arguments)})},{&quot;../internals/function-bind-native&quot;:263}],262:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this-clause&quot;),l=t(&quot;../internals/a-callable&quot;),u=t(&quot;../internals/function-bind-native&quot;),c=s(s.bind);n.exports=function(a,d){return l(a),d===void 0?a:u?c(a,d):function(){return a.apply(d,arguments)}}},{&quot;../internals/a-callable&quot;:222,&quot;../internals/function-bind-native&quot;:263,&quot;../internals/function-uncurry-this-clause&quot;:267}],263:[function(t,n,o){var s=t(&quot;../internals/fails&quot;);n.exports=!s((function(){var l=(function(){}).bind();return typeof l!=&quot;function&quot;||l.hasOwnProperty(&quot;prototype&quot;)}))},{&quot;../internals/fails&quot;:260}],264:[function(t,n,o){var s=t(&quot;../internals/function-bind-native&quot;),l=Function.prototype.call;n.exports=s?l.bind(l):function(){return l.apply(l,arguments)}},{&quot;../internals/function-bind-native&quot;:263}],265:[function(t,n,o){var s=t(&quot;../internals/descriptors&quot;),l=t(&quot;../internals/has-own-property&quot;),u=Function.prototype,c=s&amp;&amp;Object.getOwnPropertyDescriptor,a=l(u,&quot;name&quot;),d=a&amp;&amp;(function(){}).name===&quot;something&quot;,f=a&amp;&amp;(!s||s&amp;&amp;c(u,&quot;name&quot;).configurable);n.exports={EXISTS:a,PROPER:d,CONFIGURABLE:f}},{&quot;../internals/descriptors&quot;:247,&quot;../internals/has-own-property&quot;:275}],266:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=t(&quot;../internals/a-callable&quot;);n.exports=function(u,c,a){try{return s(l(Object.getOwnPropertyDescriptor(u,c)[a]))}catch{}}},{&quot;../internals/a-callable&quot;:222,&quot;../internals/function-uncurry-this&quot;:268}],267:[function(t,n,o){var s=t(&quot;../internals/classof-raw&quot;),l=t(&quot;../internals/function-uncurry-this&quot;);n.exports=function(u){if(s(u)===&quot;Function&quot;)return l(u)}},{&quot;../internals/classof-raw&quot;:235,&quot;../internals/function-uncurry-this&quot;:268}],268:[function(t,n,o){var s=t(&quot;../internals/function-bind-native&quot;),l=Function.prototype,u=l.call,c=s&amp;&amp;l.bind.bind(u,u);n.exports=s?c:function(a){return function(){return u.apply(a,arguments)}}},{&quot;../internals/function-bind-native&quot;:263}],269:[function(t,n,o){var s=t(&quot;../internals/global&quot;),l=t(&quot;../internals/is-callable&quot;),u=function(c){return l(c)?c:void 0};n.exports=function(c,a){return arguments.length&lt;2?u(s[c]):s[c]&amp;&amp;s[c][a]}},{&quot;../internals/global&quot;:274,&quot;../internals/is-callable&quot;:285}],270:[function(t,n,o){var s=t(&quot;../internals/classof&quot;),l=t(&quot;../internals/get-method&quot;),u=t(&quot;../internals/is-null-or-undefined&quot;),c=t(&quot;../internals/iterators&quot;),a=t(&quot;../internals/well-known-symbol&quot;)(&quot;iterator&quot;);n.exports=function(d){if(!u(d))return l(d,a)||l(d,&quot;@@iterator&quot;)||c[s(d)]}},{&quot;../internals/classof&quot;:236,&quot;../internals/get-method&quot;:273,&quot;../internals/is-null-or-undefined&quot;:288,&quot;../internals/iterators&quot;:298,&quot;../internals/well-known-symbol&quot;:357}],271:[function(t,n,o){var s=t(&quot;../internals/function-call&quot;),l=t(&quot;../internals/a-callable&quot;),u=t(&quot;../internals/an-object&quot;),c=t(&quot;../internals/try-to-string&quot;),a=t(&quot;../internals/get-iterator-method&quot;),d=TypeError;n.exports=function(f,h){var m=arguments.length&lt;2?a(f):h;if(l(m))return u(s(m,f));throw new d(c(f)+&quot; is not iterable&quot;)}},{&quot;../internals/a-callable&quot;:222,&quot;../internals/an-object&quot;:227,&quot;../internals/function-call&quot;:264,&quot;../internals/get-iterator-method&quot;:270,&quot;../internals/try-to-string&quot;:349}],272:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=t(&quot;../internals/is-array&quot;),u=t(&quot;../internals/is-callable&quot;),c=t(&quot;../internals/classof-raw&quot;),a=t(&quot;../internals/to-string&quot;),d=s([].push);n.exports=function(f){if(u(f))return f;if(l(f)){for(var h=f.length,m=[],p=0;p&lt;h;p++){var x=f[p];typeof x==&quot;string&quot;?d(m,x):typeof x!=&quot;number&quot;&amp;&amp;c(x)!==&quot;Number&quot;&amp;&amp;c(x)!==&quot;String&quot;||d(m,a(x))}var g=m.length,y=!0;return function(v,_){if(y)return y=!1,_;if(l(this))return _;for(var S=0;S&lt;g;S++)if(m[S]===v)return _}}}},{&quot;../internals/classof-raw&quot;:235,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/is-array&quot;:284,&quot;../internals/is-callable&quot;:285,&quot;../internals/to-string&quot;:348}],273:[function(t,n,o){var s=t(&quot;../internals/a-callable&quot;),l=t(&quot;../internals/is-null-or-undefined&quot;);n.exports=function(u,c){var a=u[c];return l(a)?void 0:s(a)}},{&quot;../internals/a-callable&quot;:222,&quot;../internals/is-null-or-undefined&quot;:288}],274:[function(t,n,o){(function(s){(function(){var l=function(u){return u&amp;&amp;u.Math===Math&amp;&amp;u};n.exports=l(typeof globalThis==&quot;object&quot;&amp;&amp;globalThis)||l(typeof window==&quot;object&quot;&amp;&amp;window)||l(typeof self==&quot;object&quot;&amp;&amp;self)||l(typeof s==&quot;object&quot;&amp;&amp;s)||(function(){return this})()||this||Function(&quot;return this&quot;)()}).call(this)}).call(this,typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{}],275:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=t(&quot;../internals/to-object&quot;),u=s({}.hasOwnProperty);n.exports=Object.hasOwn||function(c,a){return u(l(c),a)}},{&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/to-object&quot;:344}],276:[function(t,n,o){n.exports={}},{}],277:[function(t,n,o){n.exports=function(s,l){try{arguments.length===1?console.error(s):console.error(s,l)}catch{}}},{}],278:[function(t,n,o){var s=t(&quot;../internals/get-built-in&quot;);n.exports=s(&quot;document&quot;,&quot;documentElement&quot;)},{&quot;../internals/get-built-in&quot;:269}],279:[function(t,n,o){var s=t(&quot;../internals/descriptors&quot;),l=t(&quot;../internals/fails&quot;),u=t(&quot;../internals/document-create-element&quot;);n.exports=!s&amp;&amp;!l((function(){return Object.defineProperty(u(&quot;div&quot;),&quot;a&quot;,{get:function(){return 7}}).a!==7}))},{&quot;../internals/descriptors&quot;:247,&quot;../internals/document-create-element&quot;:249,&quot;../internals/fails&quot;:260}],280:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=t(&quot;../internals/fails&quot;),u=t(&quot;../internals/classof-raw&quot;),c=Object,a=s(&quot;&quot;.split);n.exports=l((function(){return!c(&quot;z&quot;).propertyIsEnumerable(0)}))?function(d){return u(d)===&quot;String&quot;?a(d,&quot;&quot;):c(d)}:c},{&quot;../internals/classof-raw&quot;:235,&quot;../internals/fails&quot;:260,&quot;../internals/function-uncurry-this&quot;:268}],281:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=t(&quot;../internals/is-callable&quot;),u=t(&quot;../internals/shared-store&quot;),c=s(Function.toString);l(u.inspectSource)||(u.inspectSource=function(a){return c(a)}),n.exports=u.inspectSource},{&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/is-callable&quot;:285,&quot;../internals/shared-store&quot;:333}],282:[function(t,n,o){var s,l,u,c=t(&quot;../internals/weak-map-basic-detection&quot;),a=t(&quot;../internals/global&quot;),d=t(&quot;../internals/is-object&quot;),f=t(&quot;../internals/create-non-enumerable-property&quot;),h=t(&quot;../internals/has-own-property&quot;),m=t(&quot;../internals/shared-store&quot;),p=t(&quot;../internals/shared-key&quot;),x=t(&quot;../internals/hidden-keys&quot;),g=a.TypeError,y=a.WeakMap;if(c||m.state){var v=m.state||(m.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,s=function(S,A){if(v.has(S))throw new g(&quot;Object already initialized&quot;);return A.facade=S,v.set(S,A),A},l=function(S){return v.get(S)||{}},u=function(S){return v.has(S)}}else{var _=p(&quot;state&quot;);x[_]=!0,s=function(S,A){if(h(S,_))throw new g(&quot;Object already initialized&quot;);return A.facade=S,f(S,_,A),A},l=function(S){return h(S,_)?S[_]:{}},u=function(S){return h(S,_)}}n.exports={set:s,get:l,has:u,enforce:function(S){return u(S)?l(S):s(S,{})},getterFor:function(S){return function(A){var I;if(!d(A)||(I=l(A)).type!==S)throw new g(&quot;Incompatible receiver, &quot;+S+&quot; required&quot;);return I}}}},{&quot;../internals/create-non-enumerable-property&quot;:241,&quot;../internals/global&quot;:274,&quot;../internals/has-own-property&quot;:275,&quot;../internals/hidden-keys&quot;:276,&quot;../internals/is-object&quot;:289,&quot;../internals/shared-key&quot;:332,&quot;../internals/shared-store&quot;:333,&quot;../internals/weak-map-basic-detection&quot;:354}],283:[function(t,n,o){var s=t(&quot;../internals/well-known-symbol&quot;),l=t(&quot;../internals/iterators&quot;),u=s(&quot;iterator&quot;),c=Array.prototype;n.exports=function(a){return a!==void 0&amp;&amp;(l.Array===a||c[u]===a)}},{&quot;../internals/iterators&quot;:298,&quot;../internals/well-known-symbol&quot;:357}],284:[function(t,n,o){var s=t(&quot;../internals/classof-raw&quot;);n.exports=Array.isArray||function(l){return s(l)===&quot;Array&quot;}},{&quot;../internals/classof-raw&quot;:235}],285:[function(t,n,o){var s=t(&quot;../internals/document-all&quot;),l=s.all;n.exports=s.IS_HTMLDDA?function(u){return typeof u==&quot;function&quot;||u===l}:function(u){return typeof u==&quot;function&quot;}},{&quot;../internals/document-all&quot;:248}],286:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=t(&quot;../internals/fails&quot;),u=t(&quot;../internals/is-callable&quot;),c=t(&quot;../internals/classof&quot;),a=t(&quot;../internals/get-built-in&quot;),d=t(&quot;../internals/inspect-source&quot;),f=function(){},h=[],m=a(&quot;Reflect&quot;,&quot;construct&quot;),p=/^\s*(?:class|function)\b/,x=s(p.exec),g=!p.test(f),y=function(_){if(!u(_))return!1;try{return m(f,h,_),!0}catch{return!1}},v=function(_){if(!u(_))return!1;switch(c(_)){case&quot;AsyncFunction&quot;:case&quot;GeneratorFunction&quot;:case&quot;AsyncGeneratorFunction&quot;:return!1}try{return g||!!x(p,d(_))}catch{return!0}};v.sham=!0,n.exports=!m||l((function(){var _;return y(y.call)||!y(Object)||!y((function(){_=!0}))||_}))?v:y},{&quot;../internals/classof&quot;:236,&quot;../internals/fails&quot;:260,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/get-built-in&quot;:269,&quot;../internals/inspect-source&quot;:281,&quot;../internals/is-callable&quot;:285}],287:[function(t,n,o){var s=t(&quot;../internals/fails&quot;),l=t(&quot;../internals/is-callable&quot;),u=/#|\.prototype\./,c=function(m,p){var x=d[a(m)];return x===h||x!==f&amp;&amp;(l(p)?s(p):!!p)},a=c.normalize=function(m){return String(m).replace(u,&quot;.&quot;).toLowerCase()},d=c.data={},f=c.NATIVE=&quot;N&quot;,h=c.POLYFILL=&quot;P&quot;;n.exports=c},{&quot;../internals/fails&quot;:260,&quot;../internals/is-callable&quot;:285}],288:[function(t,n,o){n.exports=function(s){return s==null}},{}],289:[function(t,n,o){var s=t(&quot;../internals/is-callable&quot;),l=t(&quot;../internals/document-all&quot;),u=l.all;n.exports=l.IS_HTMLDDA?function(c){return typeof c==&quot;object&quot;?c!==null:s(c)||c===u}:function(c){return typeof c==&quot;object&quot;?c!==null:s(c)}},{&quot;../internals/document-all&quot;:248,&quot;../internals/is-callable&quot;:285}],290:[function(t,n,o){n.exports=!1},{}],291:[function(t,n,o){var s=t(&quot;../internals/is-object&quot;),l=t(&quot;../internals/classof-raw&quot;),u=t(&quot;../internals/well-known-symbol&quot;)(&quot;match&quot;);n.exports=function(c){var a;return s(c)&amp;&amp;((a=c[u])!==void 0?!!a:l(c)===&quot;RegExp&quot;)}},{&quot;../internals/classof-raw&quot;:235,&quot;../internals/is-object&quot;:289,&quot;../internals/well-known-symbol&quot;:357}],292:[function(t,n,o){var s=t(&quot;../internals/get-built-in&quot;),l=t(&quot;../internals/is-callable&quot;),u=t(&quot;../internals/object-is-prototype-of&quot;),c=t(&quot;../internals/use-symbol-as-uid&quot;),a=Object;n.exports=c?function(d){return typeof d==&quot;symbol&quot;}:function(d){var f=s(&quot;Symbol&quot;);return l(f)&amp;&amp;u(f.prototype,a(d))}},{&quot;../internals/get-built-in&quot;:269,&quot;../internals/is-callable&quot;:285,&quot;../internals/object-is-prototype-of&quot;:314,&quot;../internals/use-symbol-as-uid&quot;:351}],293:[function(t,n,o){var s=t(&quot;../internals/function-bind-context&quot;),l=t(&quot;../internals/function-call&quot;),u=t(&quot;../internals/an-object&quot;),c=t(&quot;../internals/try-to-string&quot;),a=t(&quot;../internals/is-array-iterator-method&quot;),d=t(&quot;../internals/length-of-array-like&quot;),f=t(&quot;../internals/object-is-prototype-of&quot;),h=t(&quot;../internals/get-iterator&quot;),m=t(&quot;../internals/get-iterator-method&quot;),p=t(&quot;../internals/iterator-close&quot;),x=TypeError,g=function(v,_){this.stopped=v,this.result=_},y=g.prototype;n.exports=function(v,_,S){var A,I,V,F,q,H,B,K=S&amp;&amp;S.that,T=!(!S||!S.AS_ENTRIES),L=!(!S||!S.IS_RECORD),E=!(!S||!S.IS_ITERATOR),j=!(!S||!S.INTERRUPTED),k=s(_,K),N=function(P){return A&amp;&amp;p(A,&quot;normal&quot;,P),new g(!0,P)},C=function(P){return T?(u(P),j?k(P[0],P[1],N):k(P[0],P[1])):j?k(P,N):k(P)};if(L)A=v.iterator;else if(E)A=v;else{if(!(I=m(v)))throw new x(c(v)+&quot; is not iterable&quot;);if(a(I)){for(V=0,F=d(v);F&gt;V;V++)if((q=C(v[V]))&amp;&amp;f(y,q))return q;return new g(!1)}A=h(v,I)}for(H=L?v.next:A.next;!(B=l(H,A)).done;){try{q=C(B.value)}catch(P){p(A,&quot;throw&quot;,P)}if(typeof q==&quot;object&quot;&amp;&amp;q&amp;&amp;f(y,q))return q}return new g(!1)}},{&quot;../internals/an-object&quot;:227,&quot;../internals/function-bind-context&quot;:262,&quot;../internals/function-call&quot;:264,&quot;../internals/get-iterator&quot;:271,&quot;../internals/get-iterator-method&quot;:270,&quot;../internals/is-array-iterator-method&quot;:283,&quot;../internals/iterator-close&quot;:294,&quot;../internals/length-of-array-like&quot;:299,&quot;../internals/object-is-prototype-of&quot;:314,&quot;../internals/try-to-string&quot;:349}],294:[function(t,n,o){var s=t(&quot;../internals/function-call&quot;),l=t(&quot;../internals/an-object&quot;),u=t(&quot;../internals/get-method&quot;);n.exports=function(c,a,d){var f,h;l(c);try{if(!(f=u(c,&quot;return&quot;))){if(a===&quot;throw&quot;)throw d;return d}f=s(f,c)}catch(m){h=!0,f=m}if(a===&quot;throw&quot;)throw d;if(h)throw f;return l(f),d}},{&quot;../internals/an-object&quot;:227,&quot;../internals/function-call&quot;:264,&quot;../internals/get-method&quot;:273}],295:[function(t,n,o){var s=t(&quot;../internals/iterators-core&quot;).IteratorPrototype,l=t(&quot;../internals/object-create&quot;),u=t(&quot;../internals/create-property-descriptor&quot;),c=t(&quot;../internals/set-to-string-tag&quot;),a=t(&quot;../internals/iterators&quot;),d=function(){return this};n.exports=function(f,h,m,p){var x=h+&quot; Iterator&quot;;return f.prototype=l(s,{next:u(+!p,m)}),c(f,x,!1,!0),a[x]=d,f}},{&quot;../internals/create-property-descriptor&quot;:242,&quot;../internals/iterators&quot;:298,&quot;../internals/iterators-core&quot;:297,&quot;../internals/object-create&quot;:306,&quot;../internals/set-to-string-tag&quot;:331}],296:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/function-call&quot;),u=t(&quot;../internals/is-pure&quot;),c=t(&quot;../internals/function-name&quot;),a=t(&quot;../internals/is-callable&quot;),d=t(&quot;../internals/iterator-create-constructor&quot;),f=t(&quot;../internals/object-get-prototype-of&quot;),h=t(&quot;../internals/object-set-prototype-of&quot;),m=t(&quot;../internals/set-to-string-tag&quot;),p=t(&quot;../internals/create-non-enumerable-property&quot;),x=t(&quot;../internals/define-built-in&quot;),g=t(&quot;../internals/well-known-symbol&quot;),y=t(&quot;../internals/iterators&quot;),v=t(&quot;../internals/iterators-core&quot;),_=c.PROPER,S=c.CONFIGURABLE,A=v.IteratorPrototype,I=v.BUGGY_SAFARI_ITERATORS,V=g(&quot;iterator&quot;),F=function(){return this};n.exports=function(q,H,B,K,T,L,E){d(B,H,K);var j,k,N,C=function(U){if(U===T&amp;&amp;Z)return Z;if(!I&amp;&amp;U&amp;&amp;U in z)return z[U];switch(U){case&quot;keys&quot;:case&quot;values&quot;:case&quot;entries&quot;:return function(){return new B(this,U)}}return function(){return new B(this)}},P=H+&quot; Iterator&quot;,D=!1,z=q.prototype,Y=z[V]||z[&quot;@@iterator&quot;]||T&amp;&amp;z[T],Z=!I&amp;&amp;Y||C(T),ne=H===&quot;Array&quot;&amp;&amp;z.entries||Y;if(ne&amp;&amp;(j=f(ne.call(new q)))!==Object.prototype&amp;&amp;j.next&amp;&amp;(u||f(j)===A||(h?h(j,A):a(j[V])||x(j,V,F)),m(j,P,!0,!0),u&amp;&amp;(y[P]=F)),_&amp;&amp;T===&quot;values&quot;&amp;&amp;Y&amp;&amp;Y.name!==&quot;values&quot;&amp;&amp;(!u&amp;&amp;S?p(z,&quot;name&quot;,&quot;values&quot;):(D=!0,Z=function(){return l(Y,this)})),T)if(k={values:C(&quot;values&quot;),keys:L?Z:C(&quot;keys&quot;),entries:C(&quot;entries&quot;)},E)for(N in k)(I||D||!(N in z))&amp;&amp;x(z,N,k[N]);else s({target:H,proto:!0,forced:I||D},k);return u&amp;&amp;!E||z[V]===Z||x(z,V,Z,{name:T}),y[H]=Z,k}},{&quot;../internals/create-non-enumerable-property&quot;:241,&quot;../internals/define-built-in&quot;:245,&quot;../internals/export&quot;:259,&quot;../internals/function-call&quot;:264,&quot;../internals/function-name&quot;:265,&quot;../internals/is-callable&quot;:285,&quot;../internals/is-pure&quot;:290,&quot;../internals/iterator-create-constructor&quot;:295,&quot;../internals/iterators&quot;:298,&quot;../internals/iterators-core&quot;:297,&quot;../internals/object-get-prototype-of&quot;:313,&quot;../internals/object-set-prototype-of&quot;:318,&quot;../internals/set-to-string-tag&quot;:331,&quot;../internals/well-known-symbol&quot;:357}],297:[function(t,n,o){var s,l,u,c=t(&quot;../internals/fails&quot;),a=t(&quot;../internals/is-callable&quot;),d=t(&quot;../internals/is-object&quot;),f=t(&quot;../internals/object-create&quot;),h=t(&quot;../internals/object-get-prototype-of&quot;),m=t(&quot;../internals/define-built-in&quot;),p=t(&quot;../internals/well-known-symbol&quot;),x=t(&quot;../internals/is-pure&quot;),g=p(&quot;iterator&quot;),y=!1;[].keys&amp;&amp;(&quot;next&quot;in(u=[].keys())?(l=h(h(u)))!==Object.prototype&amp;&amp;(s=l):y=!0),!d(s)||c((function(){var v={};return s[g].call(v)!==v}))?s={}:x&amp;&amp;(s=f(s)),a(s[g])||m(s,g,(function(){return this})),n.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:y}},{&quot;../internals/define-built-in&quot;:245,&quot;../internals/fails&quot;:260,&quot;../internals/is-callable&quot;:285,&quot;../internals/is-object&quot;:289,&quot;../internals/is-pure&quot;:290,&quot;../internals/object-create&quot;:306,&quot;../internals/object-get-prototype-of&quot;:313,&quot;../internals/well-known-symbol&quot;:357}],298:[function(t,n,o){arguments[4][276][0].apply(o,arguments)},{dup:276}],299:[function(t,n,o){var s=t(&quot;../internals/to-length&quot;);n.exports=function(l){return s(l.length)}},{&quot;../internals/to-length&quot;:343}],300:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=t(&quot;../internals/fails&quot;),u=t(&quot;../internals/is-callable&quot;),c=t(&quot;../internals/has-own-property&quot;),a=t(&quot;../internals/descriptors&quot;),d=t(&quot;../internals/function-name&quot;).CONFIGURABLE,f=t(&quot;../internals/inspect-source&quot;),h=t(&quot;../internals/internal-state&quot;),m=h.enforce,p=h.get,x=String,g=Object.defineProperty,y=s(&quot;&quot;.slice),v=s(&quot;&quot;.replace),_=s([].join),S=a&amp;&amp;!l((function(){return g((function(){}),&quot;length&quot;,{value:8}).length!==8})),A=String(String).split(&quot;String&quot;),I=n.exports=function(V,F,q){y(x(F),0,7)===&quot;Symbol(&quot;&amp;&amp;(F=&quot;[&quot;+v(x(F),/^Symbol\(([^)]*)\)/,&quot;$1&quot;)+&quot;]&quot;),q&amp;&amp;q.getter&amp;&amp;(F=&quot;get &quot;+F),q&amp;&amp;q.setter&amp;&amp;(F=&quot;set &quot;+F),(!c(V,&quot;name&quot;)||d&amp;&amp;V.name!==F)&amp;&amp;(a?g(V,&quot;name&quot;,{value:F,configurable:!0}):V.name=F),S&amp;&amp;q&amp;&amp;c(q,&quot;arity&quot;)&amp;&amp;V.length!==q.arity&amp;&amp;g(V,&quot;length&quot;,{value:q.arity});try{q&amp;&amp;c(q,&quot;constructor&quot;)&amp;&amp;q.constructor?a&amp;&amp;g(V,&quot;prototype&quot;,{writable:!1}):V.prototype&amp;&amp;(V.prototype=void 0)}catch{}var H=m(V);return c(H,&quot;source&quot;)||(H.source=_(A,typeof F==&quot;string&quot;?F:&quot;&quot;)),V};Function.prototype.toString=I((function(){return u(this)&amp;&amp;p(this).source||f(this)}),&quot;toString&quot;)},{&quot;../internals/descriptors&quot;:247,&quot;../internals/fails&quot;:260,&quot;../internals/function-name&quot;:265,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/has-own-property&quot;:275,&quot;../internals/inspect-source&quot;:281,&quot;../internals/internal-state&quot;:282,&quot;../internals/is-callable&quot;:285}],301:[function(t,n,o){var s=Math.ceil,l=Math.floor;n.exports=Math.trunc||function(u){var c=+u;return(c&gt;0?l:s)(c)}},{}],302:[function(t,n,o){var s,l,u,c,a,d=t(&quot;../internals/global&quot;),f=t(&quot;../internals/function-bind-context&quot;),h=t(&quot;../internals/object-get-own-property-descriptor&quot;).f,m=t(&quot;../internals/task&quot;).set,p=t(&quot;../internals/queue&quot;),x=t(&quot;../internals/engine-is-ios&quot;),g=t(&quot;../internals/engine-is-ios-pebble&quot;),y=t(&quot;../internals/engine-is-webos-webkit&quot;),v=t(&quot;../internals/engine-is-node&quot;),_=d.MutationObserver||d.WebKitMutationObserver,S=d.document,A=d.process,I=d.Promise,V=h(d,&quot;queueMicrotask&quot;),F=V&amp;&amp;V.value;if(!F){var q=new p,H=function(){var B,K;for(v&amp;&amp;(B=A.domain)&amp;&amp;B.exit();K=q.get();)try{K()}catch(T){throw q.head&amp;&amp;s(),T}B&amp;&amp;B.enter()};x||v||y||!_||!S?!g&amp;&amp;I&amp;&amp;I.resolve?((c=I.resolve(void 0)).constructor=I,a=f(c.then,c),s=function(){a(H)}):v?s=function(){A.nextTick(H)}:(m=f(m,d),s=function(){m(H)}):(l=!0,u=S.createTextNode(&quot;&quot;),new _(H).observe(u,{characterData:!0}),s=function(){u.data=l=!l}),F=function(B){q.head||s(),q.add(B)}}n.exports=F},{&quot;../internals/engine-is-ios&quot;:253,&quot;../internals/engine-is-ios-pebble&quot;:252,&quot;../internals/engine-is-node&quot;:254,&quot;../internals/engine-is-webos-webkit&quot;:255,&quot;../internals/function-bind-context&quot;:262,&quot;../internals/global&quot;:274,&quot;../internals/object-get-own-property-descriptor&quot;:309,&quot;../internals/queue&quot;:328,&quot;../internals/task&quot;:339}],303:[function(t,n,o){var s=t(&quot;../internals/a-callable&quot;),l=TypeError,u=function(c){var a,d;this.promise=new c((function(f,h){if(a!==void 0||d!==void 0)throw new l(&quot;Bad Promise constructor&quot;);a=f,d=h})),this.resolve=s(a),this.reject=s(d)};n.exports.f=function(c){return new u(c)}},{&quot;../internals/a-callable&quot;:222}],304:[function(t,n,o){var s=t(&quot;../internals/is-regexp&quot;),l=TypeError;n.exports=function(u){if(s(u))throw new l(&quot;The method doesn&#039;t accept regular expressions&quot;);return u}},{&quot;../internals/is-regexp&quot;:291}],305:[function(t,n,o){var s=t(&quot;../internals/descriptors&quot;),l=t(&quot;../internals/function-uncurry-this&quot;),u=t(&quot;../internals/function-call&quot;),c=t(&quot;../internals/fails&quot;),a=t(&quot;../internals/object-keys&quot;),d=t(&quot;../internals/object-get-own-property-symbols&quot;),f=t(&quot;../internals/object-property-is-enumerable&quot;),h=t(&quot;../internals/to-object&quot;),m=t(&quot;../internals/indexed-object&quot;),p=Object.assign,x=Object.defineProperty,g=l([].concat);n.exports=!p||c((function(){if(s&amp;&amp;p({b:1},p(x({},&quot;a&quot;,{enumerable:!0,get:function(){x(this,&quot;b&quot;,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var y={},v={},_=Symbol(&quot;assign detection&quot;);return y[_]=7,&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(S){v[S]=S})),p({},y)[_]!==7||a(p({},v)).join(&quot;&quot;)!==&quot;abcdefghijklmnopqrst&quot;}))?function(y,v){for(var _=h(y),S=arguments.length,A=1,I=d.f,V=f.f;S&gt;A;)for(var F,q=m(arguments[A++]),H=I?g(a(q),I(q)):a(q),B=H.length,K=0;B&gt;K;)F=H[K++],s&amp;&amp;!u(V,q,F)||(_[F]=q[F]);return _}:p},{&quot;../internals/descriptors&quot;:247,&quot;../internals/fails&quot;:260,&quot;../internals/function-call&quot;:264,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/indexed-object&quot;:280,&quot;../internals/object-get-own-property-symbols&quot;:312,&quot;../internals/object-keys&quot;:316,&quot;../internals/object-property-is-enumerable&quot;:317,&quot;../internals/to-object&quot;:344}],306:[function(t,n,o){var s,l=t(&quot;../internals/an-object&quot;),u=t(&quot;../internals/object-define-properties&quot;),c=t(&quot;../internals/enum-bug-keys&quot;),a=t(&quot;../internals/hidden-keys&quot;),d=t(&quot;../internals/html&quot;),f=t(&quot;../internals/document-create-element&quot;),h=t(&quot;../internals/shared-key&quot;),m=h(&quot;IE_PROTO&quot;),p=function(){},x=function(v){return&quot;&lt;script&gt;&quot;+v+&quot;&lt;\/script&gt;&quot;},g=function(v){v.write(x(&quot;&quot;)),v.close();var _=v.parentWindow.Object;return v=null,_},y=function(){try{s=new ActiveXObject(&quot;htmlfile&quot;)}catch{}var v,_;y=typeof document&lt;&quot;u&quot;?document.domain&amp;&amp;s?g(s):((_=f(&quot;iframe&quot;)).style.display=&quot;none&quot;,d.appendChild(_),_.src=&quot;javascript:&quot;,(v=_.contentWindow.document).open(),v.write(x(&quot;document.F=Object&quot;)),v.close(),v.F):g(s);for(var S=c.length;S--;)delete y.prototype[c[S]];return y()};a[m]=!0,n.exports=Object.create||function(v,_){var S;return v!==null?(p.prototype=l(v),S=new p,p.prototype=null,S[m]=v):S=y(),_===void 0?S:u.f(S,_)}},{&quot;../internals/an-object&quot;:227,&quot;../internals/document-create-element&quot;:249,&quot;../internals/enum-bug-keys&quot;:258,&quot;../internals/hidden-keys&quot;:276,&quot;../internals/html&quot;:278,&quot;../internals/object-define-properties&quot;:307,&quot;../internals/shared-key&quot;:332}],307:[function(t,n,o){var s=t(&quot;../internals/descriptors&quot;),l=t(&quot;../internals/v8-prototype-define-bug&quot;),u=t(&quot;../internals/object-define-property&quot;),c=t(&quot;../internals/an-object&quot;),a=t(&quot;../internals/to-indexed-object&quot;),d=t(&quot;../internals/object-keys&quot;);o.f=s&amp;&amp;!l?Object.defineProperties:function(f,h){c(f);for(var m,p=a(h),x=d(h),g=x.length,y=0;g&gt;y;)u.f(f,m=x[y++],p[m]);return f}},{&quot;../internals/an-object&quot;:227,&quot;../internals/descriptors&quot;:247,&quot;../internals/object-define-property&quot;:308,&quot;../internals/object-keys&quot;:316,&quot;../internals/to-indexed-object&quot;:341,&quot;../internals/v8-prototype-define-bug&quot;:352}],308:[function(t,n,o){var s=t(&quot;../internals/descriptors&quot;),l=t(&quot;../internals/ie8-dom-define&quot;),u=t(&quot;../internals/v8-prototype-define-bug&quot;),c=t(&quot;../internals/an-object&quot;),a=t(&quot;../internals/to-property-key&quot;),d=TypeError,f=Object.defineProperty,h=Object.getOwnPropertyDescriptor;o.f=s?u?function(m,p,x){if(c(m),p=a(p),c(x),typeof m==&quot;function&quot;&amp;&amp;p===&quot;prototype&quot;&amp;&amp;&quot;value&quot;in x&amp;&amp;&quot;writable&quot;in x&amp;&amp;!x.writable){var g=h(m,p);g&amp;&amp;g.writable&amp;&amp;(m[p]=x.value,x={configurable:&quot;configurable&quot;in x?x.configurable:g.configurable,enumerable:&quot;enumerable&quot;in x?x.enumerable:g.enumerable,writable:!1})}return f(m,p,x)}:f:function(m,p,x){if(c(m),p=a(p),c(x),l)try{return f(m,p,x)}catch{}if(&quot;get&quot;in x||&quot;set&quot;in x)throw new d(&quot;Accessors not supported&quot;);return&quot;value&quot;in x&amp;&amp;(m[p]=x.value),m}},{&quot;../internals/an-object&quot;:227,&quot;../internals/descriptors&quot;:247,&quot;../internals/ie8-dom-define&quot;:279,&quot;../internals/to-property-key&quot;:346,&quot;../internals/v8-prototype-define-bug&quot;:352}],309:[function(t,n,o){var s=t(&quot;../internals/descriptors&quot;),l=t(&quot;../internals/function-call&quot;),u=t(&quot;../internals/object-property-is-enumerable&quot;),c=t(&quot;../internals/create-property-descriptor&quot;),a=t(&quot;../internals/to-indexed-object&quot;),d=t(&quot;../internals/to-property-key&quot;),f=t(&quot;../internals/has-own-property&quot;),h=t(&quot;../internals/ie8-dom-define&quot;),m=Object.getOwnPropertyDescriptor;o.f=s?m:function(p,x){if(p=a(p),x=d(x),h)try{return m(p,x)}catch{}if(f(p,x))return c(!l(u.f,p,x),p[x])}},{&quot;../internals/create-property-descriptor&quot;:242,&quot;../internals/descriptors&quot;:247,&quot;../internals/function-call&quot;:264,&quot;../internals/has-own-property&quot;:275,&quot;../internals/ie8-dom-define&quot;:279,&quot;../internals/object-property-is-enumerable&quot;:317,&quot;../internals/to-indexed-object&quot;:341,&quot;../internals/to-property-key&quot;:346}],310:[function(t,n,o){var s=t(&quot;../internals/classof-raw&quot;),l=t(&quot;../internals/to-indexed-object&quot;),u=t(&quot;../internals/object-get-own-property-names&quot;).f,c=t(&quot;../internals/array-slice-simple&quot;),a=typeof window==&quot;object&quot;&amp;&amp;window&amp;&amp;Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(d){return a&amp;&amp;s(d)===&quot;Window&quot;?(function(f){try{return u(f)}catch{return c(a)}})(d):u(l(d))}},{&quot;../internals/array-slice-simple&quot;:230,&quot;../internals/classof-raw&quot;:235,&quot;../internals/object-get-own-property-names&quot;:311,&quot;../internals/to-indexed-object&quot;:341}],311:[function(t,n,o){var s=t(&quot;../internals/object-keys-internal&quot;),l=t(&quot;../internals/enum-bug-keys&quot;).concat(&quot;length&quot;,&quot;prototype&quot;);o.f=Object.getOwnPropertyNames||function(u){return s(u,l)}},{&quot;../internals/enum-bug-keys&quot;:258,&quot;../internals/object-keys-internal&quot;:315}],312:[function(t,n,o){o.f=Object.getOwnPropertySymbols},{}],313:[function(t,n,o){var s=t(&quot;../internals/has-own-property&quot;),l=t(&quot;../internals/is-callable&quot;),u=t(&quot;../internals/to-object&quot;),c=t(&quot;../internals/shared-key&quot;),a=t(&quot;../internals/correct-prototype-getter&quot;),d=c(&quot;IE_PROTO&quot;),f=Object,h=f.prototype;n.exports=a?f.getPrototypeOf:function(m){var p=u(m);if(s(p,d))return p[d];var x=p.constructor;return l(x)&amp;&amp;p instanceof x?x.prototype:p instanceof f?h:null}},{&quot;../internals/correct-prototype-getter&quot;:239,&quot;../internals/has-own-property&quot;:275,&quot;../internals/is-callable&quot;:285,&quot;../internals/shared-key&quot;:332,&quot;../internals/to-object&quot;:344}],314:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;);n.exports=s({}.isPrototypeOf)},{&quot;../internals/function-uncurry-this&quot;:268}],315:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=t(&quot;../internals/has-own-property&quot;),u=t(&quot;../internals/to-indexed-object&quot;),c=t(&quot;../internals/array-includes&quot;).indexOf,a=t(&quot;../internals/hidden-keys&quot;),d=s([].push);n.exports=function(f,h){var m,p=u(f),x=0,g=[];for(m in p)!l(a,m)&amp;&amp;l(p,m)&amp;&amp;d(g,m);for(;h.length&gt;x;)l(p,m=h[x++])&amp;&amp;(~c(g,m)||d(g,m));return g}},{&quot;../internals/array-includes&quot;:228,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/has-own-property&quot;:275,&quot;../internals/hidden-keys&quot;:276,&quot;../internals/to-indexed-object&quot;:341}],316:[function(t,n,o){var s=t(&quot;../internals/object-keys-internal&quot;),l=t(&quot;../internals/enum-bug-keys&quot;);n.exports=Object.keys||function(u){return s(u,l)}},{&quot;../internals/enum-bug-keys&quot;:258,&quot;../internals/object-keys-internal&quot;:315}],317:[function(t,n,o){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&amp;&amp;!s.call({1:2},1);o.f=u?function(c){var a=l(this,c);return!!a&amp;&amp;a.enumerable}:s},{}],318:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this-accessor&quot;),l=t(&quot;../internals/an-object&quot;),u=t(&quot;../internals/a-possible-prototype&quot;);n.exports=Object.setPrototypeOf||(&quot;__proto__&quot;in{}?(function(){var c,a=!1,d={};try{(c=s(Object.prototype,&quot;__proto__&quot;,&quot;set&quot;))(d,[]),a=d instanceof Array}catch{}return function(f,h){return l(f),u(h),a?c(f,h):f.__proto__=h,f}})():void 0)},{&quot;../internals/a-possible-prototype&quot;:224,&quot;../internals/an-object&quot;:227,&quot;../internals/function-uncurry-this-accessor&quot;:266}],319:[function(t,n,o){var s=t(&quot;../internals/descriptors&quot;),l=t(&quot;../internals/fails&quot;),u=t(&quot;../internals/function-uncurry-this&quot;),c=t(&quot;../internals/object-get-prototype-of&quot;),a=t(&quot;../internals/object-keys&quot;),d=t(&quot;../internals/to-indexed-object&quot;),f=u(t(&quot;../internals/object-property-is-enumerable&quot;).f),h=u([].push),m=s&amp;&amp;l((function(){var x=Object.create(null);return x[2]=2,!f(x,2)})),p=function(x){return function(g){for(var y,v=d(g),_=a(v),S=m&amp;&amp;c(v)===null,A=_.length,I=0,V=[];A&gt;I;)y=_[I++],s&amp;&amp;!(S?y in v:f(v,y))||h(V,x?[y,v[y]]:v[y]);return V}};n.exports={entries:p(!0),values:p(!1)}},{&quot;../internals/descriptors&quot;:247,&quot;../internals/fails&quot;:260,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/object-get-prototype-of&quot;:313,&quot;../internals/object-keys&quot;:316,&quot;../internals/object-property-is-enumerable&quot;:317,&quot;../internals/to-indexed-object&quot;:341}],320:[function(t,n,o){var s=t(&quot;../internals/function-call&quot;),l=t(&quot;../internals/is-callable&quot;),u=t(&quot;../internals/is-object&quot;),c=TypeError;n.exports=function(a,d){var f,h;if(d===&quot;string&quot;&amp;&amp;l(f=a.toString)&amp;&amp;!u(h=s(f,a))||l(f=a.valueOf)&amp;&amp;!u(h=s(f,a))||d!==&quot;string&quot;&amp;&amp;l(f=a.toString)&amp;&amp;!u(h=s(f,a)))return h;throw new c(&quot;Can&#039;t convert object to primitive value&quot;)}},{&quot;../internals/function-call&quot;:264,&quot;../internals/is-callable&quot;:285,&quot;../internals/is-object&quot;:289}],321:[function(t,n,o){var s=t(&quot;../internals/get-built-in&quot;),l=t(&quot;../internals/function-uncurry-this&quot;),u=t(&quot;../internals/object-get-own-property-names&quot;),c=t(&quot;../internals/object-get-own-property-symbols&quot;),a=t(&quot;../internals/an-object&quot;),d=l([].concat);n.exports=s(&quot;Reflect&quot;,&quot;ownKeys&quot;)||function(f){var h=u.f(a(f)),m=c.f;return m?d(h,m(f)):h}},{&quot;../internals/an-object&quot;:227,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/get-built-in&quot;:269,&quot;../internals/object-get-own-property-names&quot;:311,&quot;../internals/object-get-own-property-symbols&quot;:312}],322:[function(t,n,o){var s=t(&quot;../internals/global&quot;);n.exports=s},{&quot;../internals/global&quot;:274}],323:[function(t,n,o){n.exports=function(s){try{return{error:!1,value:s()}}catch(l){return{error:!0,value:l}}}},{}],324:[function(t,n,o){var s=t(&quot;../internals/global&quot;),l=t(&quot;../internals/promise-native-constructor&quot;),u=t(&quot;../internals/is-callable&quot;),c=t(&quot;../internals/is-forced&quot;),a=t(&quot;../internals/inspect-source&quot;),d=t(&quot;../internals/well-known-symbol&quot;),f=t(&quot;../internals/engine-is-browser&quot;),h=t(&quot;../internals/engine-is-deno&quot;),m=t(&quot;../internals/is-pure&quot;),p=t(&quot;../internals/engine-v8-version&quot;),x=l&amp;&amp;l.prototype,g=d(&quot;species&quot;),y=!1,v=u(s.PromiseRejectionEvent),_=c(&quot;Promise&quot;,(function(){var S=a(l),A=S!==String(l);if(!A&amp;&amp;p===66||m&amp;&amp;(!x.catch||!x.finally))return!0;if(!p||p&lt;51||!/native code/.test(S)){var I=new l((function(F){F(1)})),V=function(F){F((function(){}),(function(){}))};if((I.constructor={})[g]=V,!(y=I.then((function(){}))instanceof V))return!0}return!A&amp;&amp;(f||h)&amp;&amp;!v}));n.exports={CONSTRUCTOR:_,REJECTION_EVENT:v,SUBCLASSING:y}},{&quot;../internals/engine-is-browser&quot;:250,&quot;../internals/engine-is-deno&quot;:251,&quot;../internals/engine-v8-version&quot;:257,&quot;../internals/global&quot;:274,&quot;../internals/inspect-source&quot;:281,&quot;../internals/is-callable&quot;:285,&quot;../internals/is-forced&quot;:287,&quot;../internals/is-pure&quot;:290,&quot;../internals/promise-native-constructor&quot;:325,&quot;../internals/well-known-symbol&quot;:357}],325:[function(t,n,o){var s=t(&quot;../internals/global&quot;);n.exports=s.Promise},{&quot;../internals/global&quot;:274}],326:[function(t,n,o){var s=t(&quot;../internals/an-object&quot;),l=t(&quot;../internals/is-object&quot;),u=t(&quot;../internals/new-promise-capability&quot;);n.exports=function(c,a){if(s(c),l(a)&amp;&amp;a.constructor===c)return a;var d=u.f(c);return(0,d.resolve)(a),d.promise}},{&quot;../internals/an-object&quot;:227,&quot;../internals/is-object&quot;:289,&quot;../internals/new-promise-capability&quot;:303}],327:[function(t,n,o){var s=t(&quot;../internals/promise-native-constructor&quot;),l=t(&quot;../internals/check-correctness-of-iteration&quot;),u=t(&quot;../internals/promise-constructor-detection&quot;).CONSTRUCTOR;n.exports=u||!l((function(c){s.all(c).then(void 0,(function(){}))}))},{&quot;../internals/check-correctness-of-iteration&quot;:234,&quot;../internals/promise-constructor-detection&quot;:324,&quot;../internals/promise-native-constructor&quot;:325}],328:[function(t,n,o){var s=function(){this.head=null,this.tail=null};s.prototype={add:function(l){var u={item:l,next:null},c=this.tail;c?c.next=u:this.head=u,this.tail=u},get:function(){var l=this.head;if(l)return(this.head=l.next)===null&amp;&amp;(this.tail=null),l.item}},n.exports=s},{}],329:[function(t,n,o){var s=t(&quot;../internals/is-null-or-undefined&quot;),l=TypeError;n.exports=function(u){if(s(u))throw new l(&quot;Can&#039;t call method on &quot;+u);return u}},{&quot;../internals/is-null-or-undefined&quot;:288}],330:[function(t,n,o){var s=t(&quot;../internals/get-built-in&quot;),l=t(&quot;../internals/define-built-in-accessor&quot;),u=t(&quot;../internals/well-known-symbol&quot;),c=t(&quot;../internals/descriptors&quot;),a=u(&quot;species&quot;);n.exports=function(d){var f=s(d);c&amp;&amp;f&amp;&amp;!f[a]&amp;&amp;l(f,a,{configurable:!0,get:function(){return this}})}},{&quot;../internals/define-built-in-accessor&quot;:244,&quot;../internals/descriptors&quot;:247,&quot;../internals/get-built-in&quot;:269,&quot;../internals/well-known-symbol&quot;:357}],331:[function(t,n,o){var s=t(&quot;../internals/object-define-property&quot;).f,l=t(&quot;../internals/has-own-property&quot;),u=t(&quot;../internals/well-known-symbol&quot;)(&quot;toStringTag&quot;);n.exports=function(c,a,d){c&amp;&amp;!d&amp;&amp;(c=c.prototype),c&amp;&amp;!l(c,u)&amp;&amp;s(c,u,{configurable:!0,value:a})}},{&quot;../internals/has-own-property&quot;:275,&quot;../internals/object-define-property&quot;:308,&quot;../internals/well-known-symbol&quot;:357}],332:[function(t,n,o){var s=t(&quot;../internals/shared&quot;),l=t(&quot;../internals/uid&quot;),u=s(&quot;keys&quot;);n.exports=function(c){return u[c]||(u[c]=l(c))}},{&quot;../internals/shared&quot;:334,&quot;../internals/uid&quot;:350}],333:[function(t,n,o){var s=t(&quot;../internals/global&quot;),l=t(&quot;../internals/define-global-property&quot;),u=s[&quot;__core-js_shared__&quot;]||l(&quot;__core-js_shared__&quot;,{});n.exports=u},{&quot;../internals/define-global-property&quot;:246,&quot;../internals/global&quot;:274}],334:[function(t,n,o){var s=t(&quot;../internals/is-pure&quot;),l=t(&quot;../internals/shared-store&quot;);(n.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})(&quot;versions&quot;,[]).push({version:&quot;3.33.0&quot;,mode:s?&quot;pure&quot;:&quot;global&quot;,copyright:&quot;© 2014-2023 Denis Pushkarev (zloirock.ru)&quot;,license:&quot;https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE&quot;,source:&quot;https://github.com/zloirock/core-js&quot;})},{&quot;../internals/is-pure&quot;:290,&quot;../internals/shared-store&quot;:333}],335:[function(t,n,o){var s=t(&quot;../internals/an-object&quot;),l=t(&quot;../internals/a-constructor&quot;),u=t(&quot;../internals/is-null-or-undefined&quot;),c=t(&quot;../internals/well-known-symbol&quot;)(&quot;species&quot;);n.exports=function(a,d){var f,h=s(a).constructor;return h===void 0||u(f=s(h)[c])?d:l(f)}},{&quot;../internals/a-constructor&quot;:223,&quot;../internals/an-object&quot;:227,&quot;../internals/is-null-or-undefined&quot;:288,&quot;../internals/well-known-symbol&quot;:357}],336:[function(t,n,o){var s=t(&quot;../internals/engine-v8-version&quot;),l=t(&quot;../internals/fails&quot;),u=t(&quot;../internals/global&quot;).String;n.exports=!!Object.getOwnPropertySymbols&amp;&amp;!l((function(){var c=Symbol(&quot;symbol detection&quot;);return!u(c)||!(Object(c)instanceof Symbol)||!Symbol.sham&amp;&amp;s&amp;&amp;s&lt;41}))},{&quot;../internals/engine-v8-version&quot;:257,&quot;../internals/fails&quot;:260,&quot;../internals/global&quot;:274}],337:[function(t,n,o){var s=t(&quot;../internals/function-call&quot;),l=t(&quot;../internals/get-built-in&quot;),u=t(&quot;../internals/well-known-symbol&quot;),c=t(&quot;../internals/define-built-in&quot;);n.exports=function(){var a=l(&quot;Symbol&quot;),d=a&amp;&amp;a.prototype,f=d&amp;&amp;d.valueOf,h=u(&quot;toPrimitive&quot;);d&amp;&amp;!d[h]&amp;&amp;c(d,h,(function(m){return s(f,this)}),{arity:1})}},{&quot;../internals/define-built-in&quot;:245,&quot;../internals/function-call&quot;:264,&quot;../internals/get-built-in&quot;:269,&quot;../internals/well-known-symbol&quot;:357}],338:[function(t,n,o){var s=t(&quot;../internals/symbol-constructor-detection&quot;);n.exports=s&amp;&amp;!!Symbol.for&amp;&amp;!!Symbol.keyFor},{&quot;../internals/symbol-constructor-detection&quot;:336}],339:[function(t,n,o){var s,l,u,c,a=t(&quot;../internals/global&quot;),d=t(&quot;../internals/function-apply&quot;),f=t(&quot;../internals/function-bind-context&quot;),h=t(&quot;../internals/is-callable&quot;),m=t(&quot;../internals/has-own-property&quot;),p=t(&quot;../internals/fails&quot;),x=t(&quot;../internals/html&quot;),g=t(&quot;../internals/array-slice&quot;),y=t(&quot;../internals/document-create-element&quot;),v=t(&quot;../internals/validate-arguments-length&quot;),_=t(&quot;../internals/engine-is-ios&quot;),S=t(&quot;../internals/engine-is-node&quot;),A=a.setImmediate,I=a.clearImmediate,V=a.process,F=a.Dispatch,q=a.Function,H=a.MessageChannel,B=a.String,K=0,T={};p((function(){s=a.location}));var L=function(N){if(m(T,N)){var C=T[N];delete T[N],C()}},E=function(N){return function(){L(N)}},j=function(N){L(N.data)},k=function(N){a.postMessage(B(N),s.protocol+&quot;//&quot;+s.host)};A&amp;&amp;I||(A=function(N){v(arguments.length,1);var C=h(N)?N:q(N),P=g(arguments,1);return T[++K]=function(){d(C,void 0,P)},l(K),K},I=function(N){delete T[N]},S?l=function(N){V.nextTick(E(N))}:F&amp;&amp;F.now?l=function(N){F.now(E(N))}:H&amp;&amp;!_?(c=(u=new H).port2,u.port1.onmessage=j,l=f(c.postMessage,c)):a.addEventListener&amp;&amp;h(a.postMessage)&amp;&amp;!a.importScripts&amp;&amp;s&amp;&amp;s.protocol!==&quot;file:&quot;&amp;&amp;!p(k)?(l=k,a.addEventListener(&quot;message&quot;,j,!1)):l=&quot;onreadystatechange&quot;in y(&quot;script&quot;)?function(N){x.appendChild(y(&quot;script&quot;)).onreadystatechange=function(){x.removeChild(this),L(N)}}:function(N){setTimeout(E(N),0)}),n.exports={set:A,clear:I}},{&quot;../internals/array-slice&quot;:231,&quot;../internals/document-create-element&quot;:249,&quot;../internals/engine-is-ios&quot;:253,&quot;../internals/engine-is-node&quot;:254,&quot;../internals/fails&quot;:260,&quot;../internals/function-apply&quot;:261,&quot;../internals/function-bind-context&quot;:262,&quot;../internals/global&quot;:274,&quot;../internals/has-own-property&quot;:275,&quot;../internals/html&quot;:278,&quot;../internals/is-callable&quot;:285,&quot;../internals/validate-arguments-length&quot;:353}],340:[function(t,n,o){var s=t(&quot;../internals/to-integer-or-infinity&quot;),l=Math.max,u=Math.min;n.exports=function(c,a){var d=s(c);return d&lt;0?l(d+a,0):u(d,a)}},{&quot;../internals/to-integer-or-infinity&quot;:342}],341:[function(t,n,o){var s=t(&quot;../internals/indexed-object&quot;),l=t(&quot;../internals/require-object-coercible&quot;);n.exports=function(u){return s(l(u))}},{&quot;../internals/indexed-object&quot;:280,&quot;../internals/require-object-coercible&quot;:329}],342:[function(t,n,o){var s=t(&quot;../internals/math-trunc&quot;);n.exports=function(l){var u=+l;return u!=u||u===0?0:s(u)}},{&quot;../internals/math-trunc&quot;:301}],343:[function(t,n,o){var s=t(&quot;../internals/to-integer-or-infinity&quot;),l=Math.min;n.exports=function(u){return u&gt;0?l(s(u),9007199254740991):0}},{&quot;../internals/to-integer-or-infinity&quot;:342}],344:[function(t,n,o){var s=t(&quot;../internals/require-object-coercible&quot;),l=Object;n.exports=function(u){return l(s(u))}},{&quot;../internals/require-object-coercible&quot;:329}],345:[function(t,n,o){var s=t(&quot;../internals/function-call&quot;),l=t(&quot;../internals/is-object&quot;),u=t(&quot;../internals/is-symbol&quot;),c=t(&quot;../internals/get-method&quot;),a=t(&quot;../internals/ordinary-to-primitive&quot;),d=t(&quot;../internals/well-known-symbol&quot;),f=TypeError,h=d(&quot;toPrimitive&quot;);n.exports=function(m,p){if(!l(m)||u(m))return m;var x,g=c(m,h);if(g){if(p===void 0&amp;&amp;(p=&quot;default&quot;),x=s(g,m,p),!l(x)||u(x))return x;throw new f(&quot;Can&#039;t convert object to primitive value&quot;)}return p===void 0&amp;&amp;(p=&quot;number&quot;),a(m,p)}},{&quot;../internals/function-call&quot;:264,&quot;../internals/get-method&quot;:273,&quot;../internals/is-object&quot;:289,&quot;../internals/is-symbol&quot;:292,&quot;../internals/ordinary-to-primitive&quot;:320,&quot;../internals/well-known-symbol&quot;:357}],346:[function(t,n,o){var s=t(&quot;../internals/to-primitive&quot;),l=t(&quot;../internals/is-symbol&quot;);n.exports=function(u){var c=s(u,&quot;string&quot;);return l(c)?c:c+&quot;&quot;}},{&quot;../internals/is-symbol&quot;:292,&quot;../internals/to-primitive&quot;:345}],347:[function(t,n,o){var s={};s[t(&quot;../internals/well-known-symbol&quot;)(&quot;toStringTag&quot;)]=&quot;z&quot;,n.exports=String(s)===&quot;[object z]&quot;},{&quot;../internals/well-known-symbol&quot;:357}],348:[function(t,n,o){var s=t(&quot;../internals/classof&quot;),l=String;n.exports=function(u){if(s(u)===&quot;Symbol&quot;)throw new TypeError(&quot;Cannot convert a Symbol value to a string&quot;);return l(u)}},{&quot;../internals/classof&quot;:236}],349:[function(t,n,o){var s=String;n.exports=function(l){try{return s(l)}catch{return&quot;Object&quot;}}},{}],350:[function(t,n,o){var s=t(&quot;../internals/function-uncurry-this&quot;),l=0,u=Math.random(),c=s(1 .toString);n.exports=function(a){return&quot;Symbol(&quot;+(a===void 0?&quot;&quot;:a)+&quot;)_&quot;+c(++l+u,36)}},{&quot;../internals/function-uncurry-this&quot;:268}],351:[function(t,n,o){var s=t(&quot;../internals/symbol-constructor-detection&quot;);n.exports=s&amp;&amp;!Symbol.sham&amp;&amp;typeof Symbol.iterator==&quot;symbol&quot;},{&quot;../internals/symbol-constructor-detection&quot;:336}],352:[function(t,n,o){var s=t(&quot;../internals/descriptors&quot;),l=t(&quot;../internals/fails&quot;);n.exports=s&amp;&amp;l((function(){return Object.defineProperty((function(){}),&quot;prototype&quot;,{value:42,writable:!1}).prototype!==42}))},{&quot;../internals/descriptors&quot;:247,&quot;../internals/fails&quot;:260}],353:[function(t,n,o){var s=TypeError;n.exports=function(l,u){if(l&lt;u)throw new s(&quot;Not enough arguments&quot;);return l}},{}],354:[function(t,n,o){var s=t(&quot;../internals/global&quot;),l=t(&quot;../internals/is-callable&quot;),u=s.WeakMap;n.exports=l(u)&amp;&amp;/native code/.test(String(u))},{&quot;../internals/global&quot;:274,&quot;../internals/is-callable&quot;:285}],355:[function(t,n,o){var s=t(&quot;../internals/path&quot;),l=t(&quot;../internals/has-own-property&quot;),u=t(&quot;../internals/well-known-symbol-wrapped&quot;),c=t(&quot;../internals/object-define-property&quot;).f;n.exports=function(a){var d=s.Symbol||(s.Symbol={});l(d,a)||c(d,a,{value:u.f(a)})}},{&quot;../internals/has-own-property&quot;:275,&quot;../internals/object-define-property&quot;:308,&quot;../internals/path&quot;:322,&quot;../internals/well-known-symbol-wrapped&quot;:356}],356:[function(t,n,o){var s=t(&quot;../internals/well-known-symbol&quot;);o.f=s},{&quot;../internals/well-known-symbol&quot;:357}],357:[function(t,n,o){var s=t(&quot;../internals/global&quot;),l=t(&quot;../internals/shared&quot;),u=t(&quot;../internals/has-own-property&quot;),c=t(&quot;../internals/uid&quot;),a=t(&quot;../internals/symbol-constructor-detection&quot;),d=t(&quot;../internals/use-symbol-as-uid&quot;),f=s.Symbol,h=l(&quot;wks&quot;),m=d?f.for||f:f&amp;&amp;f.withoutSetter||c;n.exports=function(p){return u(h,p)||(h[p]=a&amp;&amp;u(f,p)?f[p]:m(&quot;Symbol.&quot;+p)),h[p]}},{&quot;../internals/global&quot;:274,&quot;../internals/has-own-property&quot;:275,&quot;../internals/shared&quot;:334,&quot;../internals/symbol-constructor-detection&quot;:336,&quot;../internals/uid&quot;:350,&quot;../internals/use-symbol-as-uid&quot;:351}],358:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/array-iteration&quot;).findIndex,u=t(&quot;../internals/add-to-unscopables&quot;),c=!0;&quot;findIndex&quot;in[]&amp;&amp;Array(1).findIndex((function(){c=!1})),s({target:&quot;Array&quot;,proto:!0,forced:c},{findIndex:function(a){return l(this,a,arguments.length&gt;1?arguments[1]:void 0)}}),u(&quot;findIndex&quot;)},{&quot;../internals/add-to-unscopables&quot;:225,&quot;../internals/array-iteration&quot;:229,&quot;../internals/export&quot;:259}],359:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/array-iteration&quot;).find,u=t(&quot;../internals/add-to-unscopables&quot;),c=!0;&quot;find&quot;in[]&amp;&amp;Array(1).find((function(){c=!1})),s({target:&quot;Array&quot;,proto:!0,forced:c},{find:function(a){return l(this,a,arguments.length&gt;1?arguments[1]:void 0)}}),u(&quot;find&quot;)},{&quot;../internals/add-to-unscopables&quot;:225,&quot;../internals/array-iteration&quot;:229,&quot;../internals/export&quot;:259}],360:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/array-includes&quot;).includes,u=t(&quot;../internals/fails&quot;),c=t(&quot;../internals/add-to-unscopables&quot;);s({target:&quot;Array&quot;,proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function(a){return l(this,a,arguments.length&gt;1?arguments[1]:void 0)}}),c(&quot;includes&quot;)},{&quot;../internals/add-to-unscopables&quot;:225,&quot;../internals/array-includes&quot;:228,&quot;../internals/export&quot;:259,&quot;../internals/fails&quot;:260}],361:[function(t,n,o){var s=t(&quot;../internals/to-indexed-object&quot;),l=t(&quot;../internals/add-to-unscopables&quot;),u=t(&quot;../internals/iterators&quot;),c=t(&quot;../internals/internal-state&quot;),a=t(&quot;../internals/object-define-property&quot;).f,d=t(&quot;../internals/iterator-define&quot;),f=t(&quot;../internals/create-iter-result-object&quot;),h=t(&quot;../internals/is-pure&quot;),m=t(&quot;../internals/descriptors&quot;),p=c.set,x=c.getterFor(&quot;Array Iterator&quot;);n.exports=d(Array,&quot;Array&quot;,(function(y,v){p(this,{type:&quot;Array Iterator&quot;,target:s(y),index:0,kind:v})}),(function(){var y=x(this),v=y.target,_=y.kind,S=y.index++;if(!v||S&gt;=v.length)return y.target=void 0,f(void 0,!0);switch(_){case&quot;keys&quot;:return f(S,!1);case&quot;values&quot;:return f(v[S],!1)}return f([S,v[S]],!1)}),&quot;values&quot;);var g=u.Arguments=u.Array;if(l(&quot;keys&quot;),l(&quot;values&quot;),l(&quot;entries&quot;),!h&amp;&amp;m&amp;&amp;g.name!==&quot;values&quot;)try{a(g,&quot;name&quot;,{value:&quot;values&quot;})}catch{}},{&quot;../internals/add-to-unscopables&quot;:225,&quot;../internals/create-iter-result-object&quot;:240,&quot;../internals/descriptors&quot;:247,&quot;../internals/internal-state&quot;:282,&quot;../internals/is-pure&quot;:290,&quot;../internals/iterator-define&quot;:296,&quot;../internals/iterators&quot;:298,&quot;../internals/object-define-property&quot;:308,&quot;../internals/to-indexed-object&quot;:341}],362:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/get-built-in&quot;),u=t(&quot;../internals/function-apply&quot;),c=t(&quot;../internals/function-call&quot;),a=t(&quot;../internals/function-uncurry-this&quot;),d=t(&quot;../internals/fails&quot;),f=t(&quot;../internals/is-callable&quot;),h=t(&quot;../internals/is-symbol&quot;),m=t(&quot;../internals/array-slice&quot;),p=t(&quot;../internals/get-json-replacer-function&quot;),x=t(&quot;../internals/symbol-constructor-detection&quot;),g=String,y=l(&quot;JSON&quot;,&quot;stringify&quot;),v=a(/./.exec),_=a(&quot;&quot;.charAt),S=a(&quot;&quot;.charCodeAt),A=a(&quot;&quot;.replace),I=a(1 .toString),V=/[\uD800-\uDFFF]/g,F=/^[\uD800-\uDBFF]$/,q=/^[\uDC00-\uDFFF]$/,H=!x||d((function(){var L=l(&quot;Symbol&quot;)(&quot;stringify detection&quot;);return y([L])!==&quot;[null]&quot;||y({a:L})!==&quot;{}&quot;||y(Object(L))!==&quot;{}&quot;})),B=d((function(){return y(&quot;\uDF06\uD834&quot;)!==&#039;&quot;\\udf06\\ud834&quot;&#039;||y(&quot;\uDEAD&quot;)!==&#039;&quot;\\udead&quot;&#039;})),K=function(L,E){var j=m(arguments),k=p(E);if(f(k)||L!==void 0&amp;&amp;!h(L))return j[1]=function(N,C){if(f(k)&amp;&amp;(C=c(k,this,g(N),C)),!h(C))return C},u(y,null,j)},T=function(L,E,j){var k=_(j,E-1),N=_(j,E+1);return v(F,L)&amp;&amp;!v(q,N)||v(q,L)&amp;&amp;!v(F,k)?&quot;\\u&quot;+I(S(L,0),16):L};y&amp;&amp;s({target:&quot;JSON&quot;,stat:!0,arity:3,forced:H||B},{stringify:function(L,E,j){var k=m(arguments),N=u(H?K:y,null,k);return B&amp;&amp;typeof N==&quot;string&quot;?A(N,V,T):N}})},{&quot;../internals/array-slice&quot;:231,&quot;../internals/export&quot;:259,&quot;../internals/fails&quot;:260,&quot;../internals/function-apply&quot;:261,&quot;../internals/function-call&quot;:264,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/get-built-in&quot;:269,&quot;../internals/get-json-replacer-function&quot;:272,&quot;../internals/is-callable&quot;:285,&quot;../internals/is-symbol&quot;:292,&quot;../internals/symbol-constructor-detection&quot;:336}],363:[function(t,n,o){t(&quot;../internals/export&quot;)({target:&quot;Number&quot;,stat:!0},{isNaN:function(s){return s!=s}})},{&quot;../internals/export&quot;:259}],364:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/object-assign&quot;);s({target:&quot;Object&quot;,stat:!0,arity:2,forced:Object.assign!==l},{assign:l})},{&quot;../internals/export&quot;:259,&quot;../internals/object-assign&quot;:305}],365:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/symbol-constructor-detection&quot;),u=t(&quot;../internals/fails&quot;),c=t(&quot;../internals/object-get-own-property-symbols&quot;),a=t(&quot;../internals/to-object&quot;);s({target:&quot;Object&quot;,stat:!0,forced:!l||u((function(){c.f(1)}))},{getOwnPropertySymbols:function(d){var f=c.f;return f?f(a(d)):[]}})},{&quot;../internals/export&quot;:259,&quot;../internals/fails&quot;:260,&quot;../internals/object-get-own-property-symbols&quot;:312,&quot;../internals/symbol-constructor-detection&quot;:336,&quot;../internals/to-object&quot;:344}],366:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/to-object&quot;),u=t(&quot;../internals/object-keys&quot;);s({target:&quot;Object&quot;,stat:!0,forced:t(&quot;../internals/fails&quot;)((function(){u(1)}))},{keys:function(c){return u(l(c))}})},{&quot;../internals/export&quot;:259,&quot;../internals/fails&quot;:260,&quot;../internals/object-keys&quot;:316,&quot;../internals/to-object&quot;:344}],367:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/object-to-array&quot;).values;s({target:&quot;Object&quot;,stat:!0},{values:function(u){return l(u)}})},{&quot;../internals/export&quot;:259,&quot;../internals/object-to-array&quot;:319}],368:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/function-call&quot;),u=t(&quot;../internals/a-callable&quot;),c=t(&quot;../internals/new-promise-capability&quot;),a=t(&quot;../internals/perform&quot;),d=t(&quot;../internals/iterate&quot;);s({target:&quot;Promise&quot;,stat:!0,forced:t(&quot;../internals/promise-statics-incorrect-iteration&quot;)},{all:function(f){var h=this,m=c.f(h),p=m.resolve,x=m.reject,g=a((function(){var y=u(h.resolve),v=[],_=0,S=1;d(f,(function(A){var I=_++,V=!1;S++,l(y,h,A).then((function(F){V||(V=!0,v[I]=F,--S||p(v))}),x)})),--S||p(v)}));return g.error&amp;&amp;x(g.value),m.promise}})},{&quot;../internals/a-callable&quot;:222,&quot;../internals/export&quot;:259,&quot;../internals/function-call&quot;:264,&quot;../internals/iterate&quot;:293,&quot;../internals/new-promise-capability&quot;:303,&quot;../internals/perform&quot;:323,&quot;../internals/promise-statics-incorrect-iteration&quot;:327}],369:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/is-pure&quot;),u=t(&quot;../internals/promise-constructor-detection&quot;).CONSTRUCTOR,c=t(&quot;../internals/promise-native-constructor&quot;),a=t(&quot;../internals/get-built-in&quot;),d=t(&quot;../internals/is-callable&quot;),f=t(&quot;../internals/define-built-in&quot;),h=c&amp;&amp;c.prototype;if(s({target:&quot;Promise&quot;,proto:!0,forced:u,real:!0},{catch:function(p){return this.then(void 0,p)}}),!l&amp;&amp;d(c)){var m=a(&quot;Promise&quot;).prototype.catch;h.catch!==m&amp;&amp;f(h,&quot;catch&quot;,m,{unsafe:!0})}},{&quot;../internals/define-built-in&quot;:245,&quot;../internals/export&quot;:259,&quot;../internals/get-built-in&quot;:269,&quot;../internals/is-callable&quot;:285,&quot;../internals/is-pure&quot;:290,&quot;../internals/promise-constructor-detection&quot;:324,&quot;../internals/promise-native-constructor&quot;:325}],370:[function(t,n,o){var s,l,u,c=t(&quot;../internals/export&quot;),a=t(&quot;../internals/is-pure&quot;),d=t(&quot;../internals/engine-is-node&quot;),f=t(&quot;../internals/global&quot;),h=t(&quot;../internals/function-call&quot;),m=t(&quot;../internals/define-built-in&quot;),p=t(&quot;../internals/object-set-prototype-of&quot;),x=t(&quot;../internals/set-to-string-tag&quot;),g=t(&quot;../internals/set-species&quot;),y=t(&quot;../internals/a-callable&quot;),v=t(&quot;../internals/is-callable&quot;),_=t(&quot;../internals/is-object&quot;),S=t(&quot;../internals/an-instance&quot;),A=t(&quot;../internals/species-constructor&quot;),I=t(&quot;../internals/task&quot;).set,V=t(&quot;../internals/microtask&quot;),F=t(&quot;../internals/host-report-errors&quot;),q=t(&quot;../internals/perform&quot;),H=t(&quot;../internals/queue&quot;),B=t(&quot;../internals/internal-state&quot;),K=t(&quot;../internals/promise-native-constructor&quot;),T=t(&quot;../internals/promise-constructor-detection&quot;),L=t(&quot;../internals/new-promise-capability&quot;),E=T.CONSTRUCTOR,j=T.REJECTION_EVENT,k=T.SUBCLASSING,N=B.getterFor(&quot;Promise&quot;),C=B.set,P=K&amp;&amp;K.prototype,D=K,z=P,Y=f.TypeError,Z=f.document,ne=f.process,U=L.f,J=U,$=!!(Z&amp;&amp;Z.createEvent&amp;&amp;f.dispatchEvent),R=function(le){var ge;return!(!_(le)||!v(ge=le.then))&amp;&amp;ge},X=function(le,ge){var xe,pe,ue,we=ge.value,ke=ge.state===1,De=ke?le.ok:le.fail,Le=le.resolve,ze=le.reject,Oe=le.domain;try{De?(ke||(ge.rejection===2&amp;&amp;de(ge),ge.rejection=1),De===!0?xe=we:(Oe&amp;&amp;Oe.enter(),xe=De(we),Oe&amp;&amp;(Oe.exit(),ue=!0)),xe===le.promise?ze(new Y(&quot;Promise-chain cycle&quot;)):(pe=R(xe))?h(pe,xe,Le,ze):Le(xe)):ze(we)}catch(Ve){Oe&amp;&amp;!ue&amp;&amp;Oe.exit(),ze(Ve)}},re=function(le,ge){le.notified||(le.notified=!0,V((function(){for(var xe,pe=le.reactions;xe=pe.get();)X(xe,le);le.notified=!1,ge&amp;&amp;!le.rejection&amp;&amp;te(le)})))},Q=function(le,ge,xe){var pe,ue;$?((pe=Z.createEvent(&quot;Event&quot;)).promise=ge,pe.reason=xe,pe.initEvent(le,!1,!0),f.dispatchEvent(pe)):pe={promise:ge,reason:xe},!j&amp;&amp;(ue=f[&quot;on&quot;+le])?ue(pe):le===&quot;unhandledrejection&quot;&amp;&amp;F(&quot;Unhandled promise rejection&quot;,xe)},te=function(le){h(I,f,(function(){var ge,xe=le.facade,pe=le.value;if(ie(le)&amp;&amp;(ge=q((function(){d?ne.emit(&quot;unhandledRejection&quot;,pe,xe):Q(&quot;unhandledrejection&quot;,xe,pe)})),le.rejection=d||ie(le)?2:1,ge.error))throw ge.value}))},ie=function(le){return le.rejection!==1&amp;&amp;!le.parent},de=function(le){h(I,f,(function(){var ge=le.facade;d?ne.emit(&quot;rejectionHandled&quot;,ge):Q(&quot;rejectionhandled&quot;,ge,le.value)}))},ce=function(le,ge,xe){return function(pe){le(ge,pe,xe)}},se=function(le,ge,xe){le.done||(le.done=!0,xe&amp;&amp;(le=xe),le.value=ge,le.state=2,re(le,!0))},fe=function(le,ge,xe){if(!le.done){le.done=!0,xe&amp;&amp;(le=xe);try{if(le.facade===ge)throw new Y(&quot;Promise can&#039;t be resolved itself&quot;);var pe=R(ge);pe?V((function(){var ue={done:!1};try{h(pe,ge,ce(fe,ue,le),ce(se,ue,le))}catch(we){se(ue,we,le)}})):(le.value=ge,le.state=1,re(le,!1))}catch(ue){se({done:!1},ue,le)}}};if(E&amp;&amp;(z=(D=function(le){S(this,z),y(le),h(s,this);var ge=N(this);try{le(ce(fe,ge),ce(se,ge))}catch(xe){se(ge,xe)}}).prototype,(s=function(le){C(this,{type:&quot;Promise&quot;,done:!1,notified:!1,parent:!1,reactions:new H,rejection:!1,state:0,value:void 0})}).prototype=m(z,&quot;then&quot;,(function(le,ge){var xe=N(this),pe=U(A(this,D));return xe.parent=!0,pe.ok=!v(le)||le,pe.fail=v(ge)&amp;&amp;ge,pe.domain=d?ne.domain:void 0,xe.state===0?xe.reactions.add(pe):V((function(){X(pe,xe)})),pe.promise})),l=function(){var le=new s,ge=N(le);this.promise=le,this.resolve=ce(fe,ge),this.reject=ce(se,ge)},L.f=U=function(le){return le===D||le===void 0?new l(le):J(le)},!a&amp;&amp;v(K)&amp;&amp;P!==Object.prototype)){u=P.then,k||m(P,&quot;then&quot;,(function(le,ge){var xe=this;return new D((function(pe,ue){h(u,xe,pe,ue)})).then(le,ge)}),{unsafe:!0});try{delete P.constructor}catch{}p&amp;&amp;p(P,z)}c({global:!0,constructor:!0,wrap:!0,forced:E},{Promise:D}),x(D,&quot;Promise&quot;,!1,!0),g(&quot;Promise&quot;)},{&quot;../internals/a-callable&quot;:222,&quot;../internals/an-instance&quot;:226,&quot;../internals/define-built-in&quot;:245,&quot;../internals/engine-is-node&quot;:254,&quot;../internals/export&quot;:259,&quot;../internals/function-call&quot;:264,&quot;../internals/global&quot;:274,&quot;../internals/host-report-errors&quot;:277,&quot;../internals/internal-state&quot;:282,&quot;../internals/is-callable&quot;:285,&quot;../internals/is-object&quot;:289,&quot;../internals/is-pure&quot;:290,&quot;../internals/microtask&quot;:302,&quot;../internals/new-promise-capability&quot;:303,&quot;../internals/object-set-prototype-of&quot;:318,&quot;../internals/perform&quot;:323,&quot;../internals/promise-constructor-detection&quot;:324,&quot;../internals/promise-native-constructor&quot;:325,&quot;../internals/queue&quot;:328,&quot;../internals/set-species&quot;:330,&quot;../internals/set-to-string-tag&quot;:331,&quot;../internals/species-constructor&quot;:335,&quot;../internals/task&quot;:339}],371:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/is-pure&quot;),u=t(&quot;../internals/promise-native-constructor&quot;),c=t(&quot;../internals/fails&quot;),a=t(&quot;../internals/get-built-in&quot;),d=t(&quot;../internals/is-callable&quot;),f=t(&quot;../internals/species-constructor&quot;),h=t(&quot;../internals/promise-resolve&quot;),m=t(&quot;../internals/define-built-in&quot;),p=u&amp;&amp;u.prototype;if(s({target:&quot;Promise&quot;,proto:!0,real:!0,forced:!!u&amp;&amp;c((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(g){var y=f(this,a(&quot;Promise&quot;)),v=d(g);return this.then(v?function(_){return h(y,g()).then((function(){return _}))}:g,v?function(_){return h(y,g()).then((function(){throw _}))}:g)}}),!l&amp;&amp;d(u)){var x=a(&quot;Promise&quot;).prototype.finally;p.finally!==x&amp;&amp;m(p,&quot;finally&quot;,x,{unsafe:!0})}},{&quot;../internals/define-built-in&quot;:245,&quot;../internals/export&quot;:259,&quot;../internals/fails&quot;:260,&quot;../internals/get-built-in&quot;:269,&quot;../internals/is-callable&quot;:285,&quot;../internals/is-pure&quot;:290,&quot;../internals/promise-native-constructor&quot;:325,&quot;../internals/promise-resolve&quot;:326,&quot;../internals/species-constructor&quot;:335}],372:[function(t,n,o){t(&quot;../modules/es.promise.constructor&quot;),t(&quot;../modules/es.promise.all&quot;),t(&quot;../modules/es.promise.catch&quot;),t(&quot;../modules/es.promise.race&quot;),t(&quot;../modules/es.promise.reject&quot;),t(&quot;../modules/es.promise.resolve&quot;)},{&quot;../modules/es.promise.all&quot;:368,&quot;../modules/es.promise.catch&quot;:369,&quot;../modules/es.promise.constructor&quot;:370,&quot;../modules/es.promise.race&quot;:373,&quot;../modules/es.promise.reject&quot;:374,&quot;../modules/es.promise.resolve&quot;:375}],373:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/function-call&quot;),u=t(&quot;../internals/a-callable&quot;),c=t(&quot;../internals/new-promise-capability&quot;),a=t(&quot;../internals/perform&quot;),d=t(&quot;../internals/iterate&quot;);s({target:&quot;Promise&quot;,stat:!0,forced:t(&quot;../internals/promise-statics-incorrect-iteration&quot;)},{race:function(f){var h=this,m=c.f(h),p=m.reject,x=a((function(){var g=u(h.resolve);d(f,(function(y){l(g,h,y).then(m.resolve,p)}))}));return x.error&amp;&amp;p(x.value),m.promise}})},{&quot;../internals/a-callable&quot;:222,&quot;../internals/export&quot;:259,&quot;../internals/function-call&quot;:264,&quot;../internals/iterate&quot;:293,&quot;../internals/new-promise-capability&quot;:303,&quot;../internals/perform&quot;:323,&quot;../internals/promise-statics-incorrect-iteration&quot;:327}],374:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/function-call&quot;),u=t(&quot;../internals/new-promise-capability&quot;);s({target:&quot;Promise&quot;,stat:!0,forced:t(&quot;../internals/promise-constructor-detection&quot;).CONSTRUCTOR},{reject:function(c){var a=u.f(this);return l(a.reject,void 0,c),a.promise}})},{&quot;../internals/export&quot;:259,&quot;../internals/function-call&quot;:264,&quot;../internals/new-promise-capability&quot;:303,&quot;../internals/promise-constructor-detection&quot;:324}],375:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/get-built-in&quot;),u=t(&quot;../internals/is-pure&quot;),c=t(&quot;../internals/promise-native-constructor&quot;),a=t(&quot;../internals/promise-constructor-detection&quot;).CONSTRUCTOR,d=t(&quot;../internals/promise-resolve&quot;),f=l(&quot;Promise&quot;),h=u&amp;&amp;!a;s({target:&quot;Promise&quot;,stat:!0,forced:u||a},{resolve:function(m){return d(h&amp;&amp;this===f?c:this,m)}})},{&quot;../internals/export&quot;:259,&quot;../internals/get-built-in&quot;:269,&quot;../internals/is-pure&quot;:290,&quot;../internals/promise-constructor-detection&quot;:324,&quot;../internals/promise-native-constructor&quot;:325,&quot;../internals/promise-resolve&quot;:326}],376:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/function-uncurry-this&quot;),u=t(&quot;../internals/to-absolute-index&quot;),c=RangeError,a=String.fromCharCode,d=String.fromCodePoint,f=l([].join);s({target:&quot;String&quot;,stat:!0,arity:1,forced:!!d&amp;&amp;d.length!==1},{fromCodePoint:function(h){for(var m,p=[],x=arguments.length,g=0;x&gt;g;){if(m=+arguments[g++],u(m,1114111)!==m)throw new c(m+&quot; is not a valid code point&quot;);p[g]=m&lt;65536?a(m):a(55296+((m-=65536)&gt;&gt;10),m%1024+56320)}return f(p,&quot;&quot;)}})},{&quot;../internals/export&quot;:259,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/to-absolute-index&quot;:340}],377:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/function-uncurry-this&quot;),u=t(&quot;../internals/not-a-regexp&quot;),c=t(&quot;../internals/require-object-coercible&quot;),a=t(&quot;../internals/to-string&quot;),d=t(&quot;../internals/correct-is-regexp-logic&quot;),f=l(&quot;&quot;.indexOf);s({target:&quot;String&quot;,proto:!0,forced:!d(&quot;includes&quot;)},{includes:function(h){return!!~f(a(c(this)),a(u(h)),arguments.length&gt;1?arguments[1]:void 0)}})},{&quot;../internals/correct-is-regexp-logic&quot;:238,&quot;../internals/export&quot;:259,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/not-a-regexp&quot;:304,&quot;../internals/require-object-coercible&quot;:329,&quot;../internals/to-string&quot;:348}],378:[function(t,n,o){t(&quot;../internals/well-known-symbol-define&quot;)(&quot;asyncIterator&quot;)},{&quot;../internals/well-known-symbol-define&quot;:355}],379:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/global&quot;),u=t(&quot;../internals/function-call&quot;),c=t(&quot;../internals/function-uncurry-this&quot;),a=t(&quot;../internals/is-pure&quot;),d=t(&quot;../internals/descriptors&quot;),f=t(&quot;../internals/symbol-constructor-detection&quot;),h=t(&quot;../internals/fails&quot;),m=t(&quot;../internals/has-own-property&quot;),p=t(&quot;../internals/object-is-prototype-of&quot;),x=t(&quot;../internals/an-object&quot;),g=t(&quot;../internals/to-indexed-object&quot;),y=t(&quot;../internals/to-property-key&quot;),v=t(&quot;../internals/to-string&quot;),_=t(&quot;../internals/create-property-descriptor&quot;),S=t(&quot;../internals/object-create&quot;),A=t(&quot;../internals/object-keys&quot;),I=t(&quot;../internals/object-get-own-property-names&quot;),V=t(&quot;../internals/object-get-own-property-names-external&quot;),F=t(&quot;../internals/object-get-own-property-symbols&quot;),q=t(&quot;../internals/object-get-own-property-descriptor&quot;),H=t(&quot;../internals/object-define-property&quot;),B=t(&quot;../internals/object-define-properties&quot;),K=t(&quot;../internals/object-property-is-enumerable&quot;),T=t(&quot;../internals/define-built-in&quot;),L=t(&quot;../internals/define-built-in-accessor&quot;),E=t(&quot;../internals/shared&quot;),j=t(&quot;../internals/shared-key&quot;),k=t(&quot;../internals/hidden-keys&quot;),N=t(&quot;../internals/uid&quot;),C=t(&quot;../internals/well-known-symbol&quot;),P=t(&quot;../internals/well-known-symbol-wrapped&quot;),D=t(&quot;../internals/well-known-symbol-define&quot;),z=t(&quot;../internals/symbol-define-to-primitive&quot;),Y=t(&quot;../internals/set-to-string-tag&quot;),Z=t(&quot;../internals/internal-state&quot;),ne=t(&quot;../internals/array-iteration&quot;).forEach,U=j(&quot;hidden&quot;),J=Z.set,$=Z.getterFor(&quot;Symbol&quot;),R=Object.prototype,X=l.Symbol,re=X&amp;&amp;X.prototype,Q=l.RangeError,te=l.TypeError,ie=l.QObject,de=q.f,ce=H.f,se=V.f,fe=K.f,le=c([].push),ge=E(&quot;symbols&quot;),xe=E(&quot;op-symbols&quot;),pe=E(&quot;wks&quot;),ue=!ie||!ie.prototype||!ie.prototype.findChild,we=function(Je,qe,tt){var nt=de(R,qe);nt&amp;&amp;delete R[qe],ce(Je,qe,tt),nt&amp;&amp;Je!==R&amp;&amp;ce(R,qe,nt)},ke=d&amp;&amp;h((function(){return S(ce({},&quot;a&quot;,{get:function(){return ce(this,&quot;a&quot;,{value:7}).a}})).a!==7}))?we:ce,De=function(Je,qe){var tt=ge[Je]=S(re);return J(tt,{type:&quot;Symbol&quot;,tag:Je,description:qe}),d||(tt.description=qe),tt},Le=function(Je,qe,tt){Je===R&amp;&amp;Le(xe,qe,tt),x(Je);var nt=y(qe);return x(tt),m(ge,nt)?(tt.enumerable?(m(Je,U)&amp;&amp;Je[U][nt]&amp;&amp;(Je[U][nt]=!1),tt=S(tt,{enumerable:_(0,!1)})):(m(Je,U)||ce(Je,U,_(1,{})),Je[U][nt]=!0),ke(Je,nt,tt)):ce(Je,nt,tt)},ze=function(Je,qe){x(Je);var tt=g(qe),nt=A(tt).concat(Ze(tt));return ne(nt,(function(Me){d&amp;&amp;!u(Oe,tt,Me)||Le(Je,Me,tt[Me])})),Je},Oe=function(Je){var qe=y(Je),tt=u(fe,this,qe);return!(this===R&amp;&amp;m(ge,qe)&amp;&amp;!m(xe,qe))&amp;&amp;(!(tt||!m(this,qe)||!m(ge,qe)||m(this,U)&amp;&amp;this[U][qe])||tt)},Ve=function(Je,qe){var tt=g(Je),nt=y(qe);if(tt!==R||!m(ge,nt)||m(xe,nt)){var Me=de(tt,nt);return!Me||!m(ge,nt)||m(tt,U)&amp;&amp;tt[U][nt]||(Me.enumerable=!0),Me}},Qe=function(Je){var qe=se(g(Je)),tt=[];return ne(qe,(function(nt){m(ge,nt)||m(k,nt)||le(tt,nt)})),tt},Ze=function(Je){var qe=Je===R,tt=se(qe?xe:g(Je)),nt=[];return ne(tt,(function(Me){!m(ge,Me)||qe&amp;&amp;!m(R,Me)||le(nt,ge[Me])})),nt};f||(T(re=(X=function(){if(p(re,this))throw new te(&quot;Symbol is not a constructor&quot;);var Je=arguments.length&amp;&amp;arguments[0]!==void 0?v(arguments[0]):void 0,qe=N(Je),tt=function(nt){this===R&amp;&amp;u(tt,xe,nt),m(this,U)&amp;&amp;m(this[U],qe)&amp;&amp;(this[U][qe]=!1);var Me=_(1,nt);try{ke(this,qe,Me)}catch(st){if(!(st instanceof Q))throw st;we(this,qe,Me)}};return d&amp;&amp;ue&amp;&amp;ke(R,qe,{configurable:!0,set:tt}),De(qe,Je)}).prototype,&quot;toString&quot;,(function(){return $(this).tag})),T(X,&quot;withoutSetter&quot;,(function(Je){return De(N(Je),Je)})),K.f=Oe,H.f=Le,B.f=ze,q.f=Ve,I.f=V.f=Qe,F.f=Ze,P.f=function(Je){return De(C(Je),Je)},d&amp;&amp;(L(re,&quot;description&quot;,{configurable:!0,get:function(){return $(this).description}}),a||T(R,&quot;propertyIsEnumerable&quot;,Oe,{unsafe:!0}))),s({global:!0,constructor:!0,wrap:!0,forced:!f,sham:!f},{Symbol:X}),ne(A(pe),(function(Je){D(Je)})),s({target:&quot;Symbol&quot;,stat:!0,forced:!f},{useSetter:function(){ue=!0},useSimple:function(){ue=!1}}),s({target:&quot;Object&quot;,stat:!0,forced:!f,sham:!d},{create:function(Je,qe){return qe===void 0?S(Je):ze(S(Je),qe)},defineProperty:Le,defineProperties:ze,getOwnPropertyDescriptor:Ve}),s({target:&quot;Object&quot;,stat:!0,forced:!f},{getOwnPropertyNames:Qe}),z(),Y(X,&quot;Symbol&quot;),k[U]=!0},{&quot;../internals/an-object&quot;:227,&quot;../internals/array-iteration&quot;:229,&quot;../internals/create-property-descriptor&quot;:242,&quot;../internals/define-built-in&quot;:245,&quot;../internals/define-built-in-accessor&quot;:244,&quot;../internals/descriptors&quot;:247,&quot;../internals/export&quot;:259,&quot;../internals/fails&quot;:260,&quot;../internals/function-call&quot;:264,&quot;../internals/function-uncurry-this&quot;:268,&quot;../internals/global&quot;:274,&quot;../internals/has-own-property&quot;:275,&quot;../internals/hidden-keys&quot;:276,&quot;../internals/internal-state&quot;:282,&quot;../internals/is-pure&quot;:290,&quot;../internals/object-create&quot;:306,&quot;../internals/object-define-properties&quot;:307,&quot;../internals/object-define-property&quot;:308,&quot;../internals/object-get-own-property-descriptor&quot;:309,&quot;../internals/object-get-own-property-names&quot;:311,&quot;../internals/object-get-own-property-names-external&quot;:310,&quot;../internals/object-get-own-property-symbols&quot;:312,&quot;../internals/object-is-prototype-of&quot;:314,&quot;../internals/object-keys&quot;:316,&quot;../internals/object-property-is-enumerable&quot;:317,&quot;../internals/set-to-string-tag&quot;:331,&quot;../internals/shared&quot;:334,&quot;../internals/shared-key&quot;:332,&quot;../internals/symbol-constructor-detection&quot;:336,&quot;../internals/symbol-define-to-primitive&quot;:337,&quot;../internals/to-indexed-object&quot;:341,&quot;../internals/to-property-key&quot;:346,&quot;../internals/to-string&quot;:348,&quot;../internals/uid&quot;:350,&quot;../internals/well-known-symbol&quot;:357,&quot;../internals/well-known-symbol-define&quot;:355,&quot;../internals/well-known-symbol-wrapped&quot;:356}],380:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/get-built-in&quot;),u=t(&quot;../internals/has-own-property&quot;),c=t(&quot;../internals/to-string&quot;),a=t(&quot;../internals/shared&quot;),d=t(&quot;../internals/symbol-registry-detection&quot;),f=a(&quot;string-to-symbol-registry&quot;),h=a(&quot;symbol-to-string-registry&quot;);s({target:&quot;Symbol&quot;,stat:!0,forced:!d},{for:function(m){var p=c(m);if(u(f,p))return f[p];var x=l(&quot;Symbol&quot;)(p);return f[p]=x,h[x]=p,x}})},{&quot;../internals/export&quot;:259,&quot;../internals/get-built-in&quot;:269,&quot;../internals/has-own-property&quot;:275,&quot;../internals/shared&quot;:334,&quot;../internals/symbol-registry-detection&quot;:338,&quot;../internals/to-string&quot;:348}],381:[function(t,n,o){t(&quot;../modules/es.symbol.constructor&quot;),t(&quot;../modules/es.symbol.for&quot;),t(&quot;../modules/es.symbol.key-for&quot;),t(&quot;../modules/es.json.stringify&quot;),t(&quot;../modules/es.object.get-own-property-symbols&quot;)},{&quot;../modules/es.json.stringify&quot;:362,&quot;../modules/es.object.get-own-property-symbols&quot;:365,&quot;../modules/es.symbol.constructor&quot;:379,&quot;../modules/es.symbol.for&quot;:380,&quot;../modules/es.symbol.key-for&quot;:382}],382:[function(t,n,o){var s=t(&quot;../internals/export&quot;),l=t(&quot;../internals/has-own-property&quot;),u=t(&quot;../internals/is-symbol&quot;),c=t(&quot;../internals/try-to-string&quot;),a=t(&quot;../internals/shared&quot;),d=t(&quot;../internals/symbol-registry-detection&quot;),f=a(&quot;symbol-to-string-registry&quot;);s({target:&quot;Symbol&quot;,stat:!0,forced:!d},{keyFor:function(h){if(!u(h))throw new TypeError(c(h)+&quot; is not a symbol&quot;);if(l(f,h))return f[h]}})},{&quot;../internals/export&quot;:259,&quot;../internals/has-own-property&quot;:275,&quot;../internals/is-symbol&quot;:292,&quot;../internals/shared&quot;:334,&quot;../internals/symbol-registry-detection&quot;:338,&quot;../internals/try-to-string&quot;:349}],383:[function(t,n,o){function s(l){return Object.prototype.toString.call(l)}o.isArray=function(l){return Array.isArray?Array.isArray(l):s(l)===&quot;[object Array]&quot;},o.isBoolean=function(l){return typeof l==&quot;boolean&quot;},o.isNull=function(l){return l===null},o.isNullOrUndefined=function(l){return l==null},o.isNumber=function(l){return typeof l==&quot;number&quot;},o.isString=function(l){return typeof l==&quot;string&quot;},o.isSymbol=function(l){return typeof l==&quot;symbol&quot;},o.isUndefined=function(l){return l===void 0},o.isRegExp=function(l){return s(l)===&quot;[object RegExp]&quot;},o.isObject=function(l){return typeof l==&quot;object&quot;&amp;&amp;l!==null},o.isDate=function(l){return s(l)===&quot;[object Date]&quot;},o.isError=function(l){return s(l)===&quot;[object Error]&quot;||l instanceof Error},o.isFunction=function(l){return typeof l==&quot;function&quot;},o.isPrimitive=function(l){return l===null||typeof l==&quot;boolean&quot;||typeof l==&quot;number&quot;||typeof l==&quot;string&quot;||typeof l==&quot;symbol&quot;||l===void 0},o.isBuffer=t(&quot;buffer&quot;).Buffer.isBuffer},{buffer:220}],384:[function(t,n,o){(function(s){(function(){var l=t(&quot;elliptic&quot;),u=t(&quot;bn.js&quot;);n.exports=function(f){return new a(f)};var c={secp256k1:{name:&quot;secp256k1&quot;,byteLength:32},secp224r1:{name:&quot;p224&quot;,byteLength:28},prime256v1:{name:&quot;p256&quot;,byteLength:32},prime192v1:{name:&quot;p192&quot;,byteLength:24},ed25519:{name:&quot;ed25519&quot;,byteLength:32},secp384r1:{name:&quot;p384&quot;,byteLength:48},secp521r1:{name:&quot;p521&quot;,byteLength:66}};function a(f){this.curveType=c[f],this.curveType||(this.curveType={name:f}),this.curve=new l.ec(this.curveType.name),this.keys=void 0}function d(f,h,m){Array.isArray(f)||(f=f.toArray());var p=new s(f);if(m&amp;&amp;p.length&lt;m){var x=new s(m-p.length);x.fill(0),p=s.concat([x,p])}return h?p.toString(h):p}c.p224=c.secp224r1,c.p256=c.secp256r1=c.prime256v1,c.p192=c.secp192r1=c.prime192v1,c.p384=c.secp384r1,c.p521=c.secp521r1,a.prototype.generateKeys=function(f,h){return this.keys=this.curve.genKeyPair(),this.getPublicKey(f,h)},a.prototype.computeSecret=function(f,h,m){return h=h||&quot;utf8&quot;,s.isBuffer(f)||(f=new s(f,h)),d(this.curve.keyFromPublic(f).getPublic().mul(this.keys.getPrivate()).getX(),m,this.curveType.byteLength)},a.prototype.getPublicKey=function(f,h){var m=this.keys.getPublic(h===&quot;compressed&quot;,!0);return h===&quot;hybrid&quot;&amp;&amp;(m[m.length-1]%2?m[0]=7:m[0]=6),d(m,f)},a.prototype.getPrivateKey=function(f){return d(this.keys.getPrivate(),f)},a.prototype.setPublicKey=function(f,h){return h=h||&quot;utf8&quot;,s.isBuffer(f)||(f=new s(f,h)),this.keys._importPublic(f),this},a.prototype.setPrivateKey=function(f,h){h=h||&quot;utf8&quot;,s.isBuffer(f)||(f=new s(f,h));var m=new u(f);return m=m.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(m),this}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;bn.js&quot;:385,buffer:220,elliptic:405}],385:[function(t,n,o){arguments[4][184][0].apply(o,arguments)},{buffer:188,dup:184}],386:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;md5.js&quot;),u=t(&quot;ripemd160&quot;),c=t(&quot;sha.js&quot;),a=t(&quot;cipher-base&quot;);function d(f){a.call(this,&quot;digest&quot;),this._hash=f}s(d,a),d.prototype._update=function(f){this._hash.update(f)},d.prototype._final=function(){return this._hash.digest()},n.exports=function(f){return(f=f.toLowerCase())===&quot;md5&quot;?new l:f===&quot;rmd160&quot;||f===&quot;ripemd160&quot;?new u:new d(c(f))}},{&quot;cipher-base&quot;:221,inherits:440,&quot;md5.js&quot;:450,ripemd160:493,&quot;sha.js&quot;:498}],387:[function(t,n,o){var s=t(&quot;md5.js&quot;);n.exports=function(l){return new s().update(l).digest()}},{&quot;md5.js&quot;:450}],388:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;./legacy&quot;),u=t(&quot;cipher-base&quot;),c=t(&quot;safe-buffer&quot;).Buffer,a=t(&quot;create-hash/md5&quot;),d=t(&quot;ripemd160&quot;),f=t(&quot;sha.js&quot;),h=c.alloc(128);function m(p,x){u.call(this,&quot;digest&quot;),typeof x==&quot;string&quot;&amp;&amp;(x=c.from(x));var g=p===&quot;sha512&quot;||p===&quot;sha384&quot;?128:64;this._alg=p,this._key=x,x.length&gt;g?x=(p===&quot;rmd160&quot;?new d:f(p)).update(x).digest():x.length&lt;g&amp;&amp;(x=c.concat([x,h],g));for(var y=this._ipad=c.allocUnsafe(g),v=this._opad=c.allocUnsafe(g),_=0;_&lt;g;_++)y[_]=54^x[_],v[_]=92^x[_];this._hash=p===&quot;rmd160&quot;?new d:f(p),this._hash.update(y)}s(m,u),m.prototype._update=function(p){this._hash.update(p)},m.prototype._final=function(){var p=this._hash.digest();return(this._alg===&quot;rmd160&quot;?new d:f(this._alg)).update(this._opad).update(p).digest()},n.exports=function(p,x){return(p=p.toLowerCase())===&quot;rmd160&quot;||p===&quot;ripemd160&quot;?new m(&quot;rmd160&quot;,x):p===&quot;md5&quot;?new l(a,x):new m(p,x)}},{&quot;./legacy&quot;:389,&quot;cipher-base&quot;:221,&quot;create-hash/md5&quot;:387,inherits:440,ripemd160:493,&quot;safe-buffer&quot;:494,&quot;sha.js&quot;:498}],389:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;safe-buffer&quot;).Buffer,u=t(&quot;cipher-base&quot;),c=l.alloc(128);function a(d,f){u.call(this,&quot;digest&quot;),typeof f==&quot;string&quot;&amp;&amp;(f=l.from(f)),this._alg=d,this._key=f,f.length&gt;64?f=d(f):f.length&lt;64&amp;&amp;(f=l.concat([f,c],64));for(var h=this._ipad=l.allocUnsafe(64),m=this._opad=l.allocUnsafe(64),p=0;p&lt;64;p++)h[p]=54^f[p],m[p]=92^f[p];this._hash=[h]}s(a,u),a.prototype._update=function(d){this._hash.push(d)},a.prototype._final=function(){var d=this._alg(l.concat(this._hash));return this._alg(l.concat([this._opad,d]))},n.exports=a},{&quot;cipher-base&quot;:221,inherits:440,&quot;safe-buffer&quot;:494}],390:[function(t,n,o){o.randomBytes=o.rng=o.pseudoRandomBytes=o.prng=t(&quot;randombytes&quot;),o.createHash=o.Hash=t(&quot;create-hash&quot;),o.createHmac=o.Hmac=t(&quot;create-hmac&quot;);var s=t(&quot;browserify-sign/algos&quot;),l=Object.keys(s),u=[&quot;sha1&quot;,&quot;sha224&quot;,&quot;sha256&quot;,&quot;sha384&quot;,&quot;sha512&quot;,&quot;md5&quot;,&quot;rmd160&quot;].concat(l);o.getHashes=function(){return u};var c=t(&quot;pbkdf2&quot;);o.pbkdf2=c.pbkdf2,o.pbkdf2Sync=c.pbkdf2Sync;var a=t(&quot;browserify-cipher&quot;);o.Cipher=a.Cipher,o.createCipher=a.createCipher,o.Cipheriv=a.Cipheriv,o.createCipheriv=a.createCipheriv,o.Decipher=a.Decipher,o.createDecipher=a.createDecipher,o.Decipheriv=a.Decipheriv,o.createDecipheriv=a.createDecipheriv,o.getCiphers=a.getCiphers,o.listCiphers=a.listCiphers;var d=t(&quot;diffie-hellman&quot;);o.DiffieHellmanGroup=d.DiffieHellmanGroup,o.createDiffieHellmanGroup=d.createDiffieHellmanGroup,o.getDiffieHellman=d.getDiffieHellman,o.createDiffieHellman=d.createDiffieHellman,o.DiffieHellman=d.DiffieHellman;var f=t(&quot;browserify-sign&quot;);o.createSign=f.createSign,o.Sign=f.Sign,o.createVerify=f.createVerify,o.Verify=f.Verify,o.createECDH=t(&quot;create-ecdh&quot;);var h=t(&quot;public-encrypt&quot;);o.publicEncrypt=h.publicEncrypt,o.privateEncrypt=h.privateEncrypt,o.publicDecrypt=h.publicDecrypt,o.privateDecrypt=h.privateDecrypt;var m=t(&quot;randomfill&quot;);o.randomFill=m.randomFill,o.randomFillSync=m.randomFillSync,o.createCredentials=function(){throw new Error([&quot;sorry, createCredentials is not implemented yet&quot;,&quot;we accept pull requests&quot;,&quot;https://github.com/crypto-browserify/crypto-browserify&quot;].join(`
`))},o.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{&quot;browserify-cipher&quot;:206,&quot;browserify-sign&quot;:213,&quot;browserify-sign/algos&quot;:210,&quot;create-ecdh&quot;:384,&quot;create-hash&quot;:386,&quot;create-hmac&quot;:388,&quot;diffie-hellman&quot;:400,pbkdf2:460,&quot;public-encrypt&quot;:468,randombytes:475,randomfill:476}],391:[function(t,n,o){(function(s,l){typeof o==&quot;object&quot;&amp;&amp;n!==void 0?n.exports=l():(s=typeof globalThis&lt;&quot;u&quot;?globalThis:s||self).dayjs=l()})(void 0,(function(){var s=6e4,l=36e5,u=&quot;millisecond&quot;,c=&quot;second&quot;,a=&quot;minute&quot;,d=&quot;hour&quot;,f=&quot;day&quot;,h=&quot;week&quot;,m=&quot;month&quot;,p=&quot;quarter&quot;,x=&quot;year&quot;,g=&quot;date&quot;,y=&quot;Invalid Date&quot;,v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:&quot;en&quot;,weekdays:&quot;Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday&quot;.split(&quot;_&quot;),months:&quot;January_February_March_April_May_June_July_August_September_October_November_December&quot;.split(&quot;_&quot;),ordinal:function(j){var k=[&quot;th&quot;,&quot;st&quot;,&quot;nd&quot;,&quot;rd&quot;],N=j%100;return&quot;[&quot;+j+(k[(N-20)%10]||k[N]||k[0])+&quot;]&quot;}},A=function(j,k,N){var C=String(j);return!C||C.length&gt;=k?j:&quot;&quot;+Array(k+1-C.length).join(N)+j},I={s:A,z:function(j){var k=-j.utcOffset(),N=Math.abs(k),C=Math.floor(N/60),P=N%60;return(k&lt;=0?&quot;+&quot;:&quot;-&quot;)+A(C,2,&quot;0&quot;)+&quot;:&quot;+A(P,2,&quot;0&quot;)},m:function j(k,N){if(k.date()&lt;N.date())return-j(N,k);var C=12*(N.year()-k.year())+(N.month()-k.month()),P=k.clone().add(C,m),D=N-P&lt;0,z=k.clone().add(C+(D?-1:1),m);return+(-(C+(N-P)/(D?P-z:z-P))||0)},a:function(j){return j&lt;0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:m,y:x,w:h,d:f,D:g,h:d,m:a,s:c,ms:u,Q:p}[j]||String(j||&quot;&quot;).toLowerCase().replace(/s$/,&quot;&quot;)},u:function(j){return j===void 0}},V=&quot;en&quot;,F={};F[V]=S;var q=&quot;$isDayjsObject&quot;,H=function(j){return j instanceof L||!(!j||!j[q])},B=function j(k,N,C){var P;if(!k)return V;if(typeof k==&quot;string&quot;){var D=k.toLowerCase();F[D]&amp;&amp;(P=D),N&amp;&amp;(F[D]=N,P=D);var z=k.split(&quot;-&quot;);if(!P&amp;&amp;z.length&gt;1)return j(z[0])}else{var Y=k.name;F[Y]=k,P=Y}return!C&amp;&amp;P&amp;&amp;(V=P),P||!C&amp;&amp;V},K=function(j,k){if(H(j))return j.clone();var N=typeof k==&quot;object&quot;?k:{};return N.date=j,N.args=arguments,new L(N)},T=I;T.l=B,T.i=H,T.w=function(j,k){return K(j,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var L=(function(){function j(N){this.$L=B(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[q]=!0}var k=j.prototype;return k.parse=function(N){this.$d=(function(C){var P=C.date,D=C.utc;if(P===null)return new Date(NaN);if(T.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P==&quot;string&quot;&amp;&amp;!/Z$/i.test(P)){var z=P.match(v);if(z){var Y=z[2]-1||0,Z=(z[7]||&quot;0&quot;).substring(0,3);return D?new Date(Date.UTC(z[1],Y,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Z)):new Date(z[1],Y,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Z)}}return new Date(P)})(N),this.init()},k.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},k.$utils=function(){return T},k.isValid=function(){return this.$d.toString()!==y},k.isSame=function(N,C){var P=K(N);return this.startOf(C)&lt;=P&amp;&amp;P&lt;=this.endOf(C)},k.isAfter=function(N,C){return K(N)&lt;this.startOf(C)},k.isBefore=function(N,C){return this.endOf(C)&lt;K(N)},k.$g=function(N,C,P){return T.u(N)?this[C]:this.set(P,N)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(N,C){var P=this,D=!!T.u(C)||C,z=T.p(N),Y=function(re,Q){var te=T.w(P.$u?Date.UTC(P.$y,Q,re):new Date(P.$y,Q,re),P);return D?te:te.endOf(f)},Z=function(re,Q){return T.w(P.toDate()[re].apply(P.toDate(&quot;s&quot;),(D?[0,0,0,0]:[23,59,59,999]).slice(Q)),P)},ne=this.$W,U=this.$M,J=this.$D,$=&quot;set&quot;+(this.$u?&quot;UTC&quot;:&quot;&quot;);switch(z){case x:return D?Y(1,0):Y(31,11);case m:return D?Y(1,U):Y(0,U+1);case h:var R=this.$locale().weekStart||0,X=(ne&lt;R?ne+7:ne)-R;return Y(D?J-X:J+(6-X),U);case f:case g:return Z($+&quot;Hours&quot;,0);case d:return Z($+&quot;Minutes&quot;,1);case a:return Z($+&quot;Seconds&quot;,2);case c:return Z($+&quot;Milliseconds&quot;,3);default:return this.clone()}},k.endOf=function(N){return this.startOf(N,!1)},k.$set=function(N,C){var P,D=T.p(N),z=&quot;set&quot;+(this.$u?&quot;UTC&quot;:&quot;&quot;),Y=(P={},P[f]=z+&quot;Date&quot;,P[g]=z+&quot;Date&quot;,P[m]=z+&quot;Month&quot;,P[x]=z+&quot;FullYear&quot;,P[d]=z+&quot;Hours&quot;,P[a]=z+&quot;Minutes&quot;,P[c]=z+&quot;Seconds&quot;,P[u]=z+&quot;Milliseconds&quot;,P)[D],Z=D===f?this.$D+(C-this.$W):C;if(D===m||D===x){var ne=this.clone().set(g,1);ne.$d[Y](Z),ne.init(),this.$d=ne.set(g,Math.min(this.$D,ne.daysInMonth())).$d}else Y&amp;&amp;this.$d[Y](Z);return this.init(),this},k.set=function(N,C){return this.clone().$set(N,C)},k.get=function(N){return this[T.p(N)]()},k.add=function(N,C){var P,D=this;N=Number(N);var z=T.p(C),Y=function(U){var J=K(D);return T.w(J.date(J.date()+Math.round(U*N)),D)};if(z===m)return this.set(m,this.$M+N);if(z===x)return this.set(x,this.$y+N);if(z===f)return Y(1);if(z===h)return Y(7);var Z=(P={},P[a]=s,P[d]=l,P[c]=1e3,P)[z]||1,ne=this.$d.getTime()+N*Z;return T.w(ne,this)},k.subtract=function(N,C){return this.add(-1*N,C)},k.format=function(N){var C=this,P=this.$locale();if(!this.isValid())return P.invalidDate||y;var D=N||&quot;YYYY-MM-DDTHH:mm:ssZ&quot;,z=T.z(this),Y=this.$H,Z=this.$m,ne=this.$M,U=P.weekdays,J=P.months,$=P.meridiem,R=function(Q,te,ie,de){return Q&amp;&amp;(Q[te]||Q(C,D))||ie[te].slice(0,de)},X=function(Q){return T.s(Y%12||12,Q,&quot;0&quot;)},re=$||function(Q,te,ie){var de=Q&lt;12?&quot;AM&quot;:&quot;PM&quot;;return ie?de.toLowerCase():de};return D.replace(_,(function(Q,te){return te||(function(ie){switch(ie){case&quot;YY&quot;:return String(C.$y).slice(-2);case&quot;YYYY&quot;:return T.s(C.$y,4,&quot;0&quot;);case&quot;M&quot;:return ne+1;case&quot;MM&quot;:return T.s(ne+1,2,&quot;0&quot;);case&quot;MMM&quot;:return R(P.monthsShort,ne,J,3);case&quot;MMMM&quot;:return R(J,ne);case&quot;D&quot;:return C.$D;case&quot;DD&quot;:return T.s(C.$D,2,&quot;0&quot;);case&quot;d&quot;:return String(C.$W);case&quot;dd&quot;:return R(P.weekdaysMin,C.$W,U,2);case&quot;ddd&quot;:return R(P.weekdaysShort,C.$W,U,3);case&quot;dddd&quot;:return U[C.$W];case&quot;H&quot;:return String(Y);case&quot;HH&quot;:return T.s(Y,2,&quot;0&quot;);case&quot;h&quot;:return X(1);case&quot;hh&quot;:return X(2);case&quot;a&quot;:return re(Y,Z,!0);case&quot;A&quot;:return re(Y,Z,!1);case&quot;m&quot;:return String(Z);case&quot;mm&quot;:return T.s(Z,2,&quot;0&quot;);case&quot;s&quot;:return String(C.$s);case&quot;ss&quot;:return T.s(C.$s,2,&quot;0&quot;);case&quot;SSS&quot;:return T.s(C.$ms,3,&quot;0&quot;);case&quot;Z&quot;:return z}return null})(Q)||z.replace(&quot;:&quot;,&quot;&quot;)}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(N,C,P){var D,z=this,Y=T.p(C),Z=K(N),ne=(Z.utcOffset()-this.utcOffset())*s,U=this-Z,J=function(){return T.m(z,Z)};switch(Y){case x:D=J()/12;break;case m:D=J();break;case p:D=J()/3;break;case h:D=(U-ne)/6048e5;break;case f:D=(U-ne)/864e5;break;case d:D=U/l;break;case a:D=U/s;break;case c:D=U/1e3;break;default:D=U}return P?D:T.a(D)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return F[this.$L]},k.locale=function(N,C){if(!N)return this.$L;var P=this.clone(),D=B(N,C,!0);return D&amp;&amp;(P.$L=D),P},k.clone=function(){return T.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},j})(),E=L.prototype;return K.prototype=E,[[&quot;$ms&quot;,u],[&quot;$s&quot;,c],[&quot;$m&quot;,a],[&quot;$H&quot;,d],[&quot;$W&quot;,f],[&quot;$M&quot;,m],[&quot;$y&quot;,x],[&quot;$D&quot;,g]].forEach((function(j){E[j[1]]=function(k){return this.$g(k,j[0],j[1])}})),K.extend=function(j,k){return j.$i||(j(k,L,K),j.$i=!0),K},K.locale=B,K.isDayjs=H,K.unix=function(j){return K(1e3*j)},K.en=F[V],K.Ls=F,K.p={},K}))},{}],392:[function(t,n,o){(function(s,l){typeof o==&quot;object&quot;&amp;&amp;n!==void 0?n.exports=l():(s=typeof globalThis&lt;&quot;u&quot;?globalThis:s||self).dayjs_plugin_customParseFormat=l()})(void 0,(function(){var s={LTS:&quot;h:mm:ss A&quot;,LT:&quot;h:mm A&quot;,L:&quot;MM/DD/YYYY&quot;,LL:&quot;MMMM D, YYYY&quot;,LLL:&quot;MMMM D, YYYY h:mm A&quot;,LLLL:&quot;dddd, MMMM D, YYYY h:mm A&quot;},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,u=/\d\d/,c=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,d={},f=function(v){return(v=+v)+(v&gt;68?1900:2e3)},h=function(v){return function(_){this[v]=+_}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(_){if(!_||_===&quot;Z&quot;)return 0;var S=_.match(/([+-]|\d\d)/g),A=60*S[1]+(+S[2]||0);return A===0?0:S[0]===&quot;+&quot;?-A:A})(v)}],p=function(v){var _=d[v];return _&amp;&amp;(_.indexOf?_:_.s.concat(_.f))},x=function(v,_){var S,A=d.meridiem;if(A){for(var I=1;I&lt;=24;I+=1)if(v.indexOf(A(I,0,_))&gt;-1){S=I&gt;12;break}}else S=v===(_?&quot;pm&quot;:&quot;PM&quot;);return S},g={A:[a,function(v){this.afternoon=x(v,!1)}],a:[a,function(v){this.afternoon=x(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[u,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[c,h(&quot;seconds&quot;)],ss:[c,h(&quot;seconds&quot;)],m:[c,h(&quot;minutes&quot;)],mm:[c,h(&quot;minutes&quot;)],H:[c,h(&quot;hours&quot;)],h:[c,h(&quot;hours&quot;)],HH:[c,h(&quot;hours&quot;)],hh:[c,h(&quot;hours&quot;)],D:[c,h(&quot;day&quot;)],DD:[u,h(&quot;day&quot;)],Do:[a,function(v){var _=d.ordinal,S=v.match(/\d+/);if(this.day=S[0],_)for(var A=1;A&lt;=31;A+=1)_(A).replace(/\[|\]/g,&quot;&quot;)===v&amp;&amp;(this.day=A)}],M:[c,h(&quot;month&quot;)],MM:[u,h(&quot;month&quot;)],MMM:[a,function(v){var _=p(&quot;months&quot;),S=(p(&quot;monthsShort&quot;)||_.map((function(A){return A.slice(0,3)}))).indexOf(v)+1;if(S&lt;1)throw new Error;this.month=S%12||S}],MMMM:[a,function(v){var _=p(&quot;months&quot;).indexOf(v)+1;if(_&lt;1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,h(&quot;year&quot;)],YY:[u,function(v){this.year=f(v)}],YYYY:[/\d{4}/,h(&quot;year&quot;)],Z:m,ZZ:m};function y(v){var _,S;_=v,S=d&amp;&amp;d.formats;for(var A=(v=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(K,T,L){var E=L&amp;&amp;L.toUpperCase();return T||S[L]||s[L]||S[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(j,k,N){return k||N.slice(1)}))}))).match(l),I=A.length,V=0;V&lt;I;V+=1){var F=A[V],q=g[F],H=q&amp;&amp;q[0],B=q&amp;&amp;q[1];A[V]=B?{regex:H,parser:B}:F.replace(/^\[|\]$/g,&quot;&quot;)}return function(K){for(var T={},L=0,E=0;L&lt;I;L+=1){var j=A[L];if(typeof j==&quot;string&quot;)E+=j.length;else{var k=j.regex,N=j.parser,C=K.slice(E),P=k.exec(C)[0];N.call(T,P),K=K.replace(P,&quot;&quot;)}}return(function(D){var z=D.afternoon;if(z!==void 0){var Y=D.hours;z?Y&lt;12&amp;&amp;(D.hours+=12):Y===12&amp;&amp;(D.hours=0),delete D.afternoon}})(T),T}}return function(v,_,S){S.p.customParseFormat=!0,v&amp;&amp;v.parseTwoDigitYear&amp;&amp;(f=v.parseTwoDigitYear);var A=_.prototype,I=A.parse;A.parse=function(V){var F=V.date,q=V.utc,H=V.args;this.$u=q;var B=H[1];if(typeof B==&quot;string&quot;){var K=H[2]===!0,T=H[3]===!0,L=K||T,E=H[2];T&amp;&amp;(E=H[2]),d=this.$locale(),!K&amp;&amp;E&amp;&amp;(d=S.Ls[E]),this.$d=(function(C,P,D){try{if([&quot;x&quot;,&quot;X&quot;].indexOf(P)&gt;-1)return new Date((P===&quot;X&quot;?1e3:1)*C);var z=y(P)(C),Y=z.year,Z=z.month,ne=z.day,U=z.hours,J=z.minutes,$=z.seconds,R=z.milliseconds,X=z.zone,re=new Date,Q=ne||(Y||Z?1:re.getDate()),te=Y||re.getFullYear(),ie=0;Y&amp;&amp;!Z||(ie=Z&gt;0?Z-1:re.getMonth());var de=U||0,ce=J||0,se=$||0,fe=R||0;return X?new Date(Date.UTC(te,ie,Q,de,ce,se,fe+60*X.offset*1e3)):D?new Date(Date.UTC(te,ie,Q,de,ce,se,fe)):new Date(te,ie,Q,de,ce,se,fe)}catch{return new Date(&quot;&quot;)}})(F,B,q),this.init(),E&amp;&amp;E!==!0&amp;&amp;(this.$L=this.locale(E).$L),L&amp;&amp;F!=this.format(B)&amp;&amp;(this.$d=new Date(&quot;&quot;)),d={}}else if(B instanceof Array)for(var j=B.length,k=1;k&lt;=j;k+=1){H[1]=B[k-1];var N=S.apply(this,H);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}k===j&amp;&amp;(this.$d=new Date(&quot;&quot;))}else I.call(this,V)}}}))},{}],393:[function(t,n,o){(function(s,l){typeof o==&quot;object&quot;&amp;&amp;n!==void 0?n.exports=l():(s=typeof globalThis&lt;&quot;u&quot;?globalThis:s||self).dayjs_plugin_utc=l()})(void 0,(function(){var s=&quot;minute&quot;,l=/[+-]\d\d(?::?\d\d)?/g,u=/([+-]|\d\d)/g;return function(c,a,d){var f=a.prototype;d.utc=function(v){var _={date:v,utc:!0,args:arguments};return new a(_)},f.utc=function(v){var _=d(this.toDate(),{locale:this.$L,utc:!0});return v?_.add(this.utcOffset(),s):_},f.local=function(){return d(this.toDate(),{locale:this.$L,utc:!1})};var h=f.parse;f.parse=function(v){v.utc&amp;&amp;(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),h.call(this,v)};var m=f.init;f.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else m.call(this)};var p=f.utcOffset;f.utcOffset=function(v,_){var S=this.$utils().u;if(S(v))return this.$u?0:S(this.$offset)?p.call(this):this.$offset;if(typeof v==&quot;string&quot;&amp;&amp;(v=(function(F){F===void 0&amp;&amp;(F=&quot;&quot;);var q=F.match(l);if(!q)return null;var H=(&quot;&quot;+q[0]).match(u)||[&quot;-&quot;,0,0],B=H[0],K=60*+H[1]+ +H[2];return K===0?0:B===&quot;+&quot;?K:-K})(v))===null)return this;var A=Math.abs(v)&lt;=16?60*v:v,I=this;if(_)return I.$offset=A,I.$u=v===0,I;if(v!==0){var V=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(I=this.local().add(A+V,s)).$offset=A,I.$x.$localOffset=V}else I=this.utc();return I};var x=f.format;f.format=function(v){var _=v||(this.$u?&quot;YYYY-MM-DDTHH:mm:ss[Z]&quot;:&quot;&quot;);return x.call(this,_)},f.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},f.isUTC=function(){return!!this.$u},f.toISOString=function(){return this.toDate().toISOString()},f.toString=function(){return this.toDate().toUTCString()};var g=f.toDate;f.toDate=function(v){return v===&quot;s&quot;&amp;&amp;this.$offset?d(this.format(&quot;YYYY-MM-DD HH:mm:ss:SSS&quot;)).toDate():g.call(this)};var y=f.diff;f.diff=function(v,_,S){if(v&amp;&amp;this.$u===v.$u)return y.call(this,v,_,S);var A=this.local(),I=d(v).local();return y.call(A,I,_,S)}}}))},{}],394:[function(t,n,o){o.utils=t(&quot;./des/utils&quot;),o.Cipher=t(&quot;./des/cipher&quot;),o.DES=t(&quot;./des/des&quot;),o.CBC=t(&quot;./des/cbc&quot;),o.EDE=t(&quot;./des/ede&quot;)},{&quot;./des/cbc&quot;:395,&quot;./des/cipher&quot;:396,&quot;./des/des&quot;:397,&quot;./des/ede&quot;:398,&quot;./des/utils&quot;:399}],395:[function(t,n,o){var s=t(&quot;minimalistic-assert&quot;),l=t(&quot;inherits&quot;),u={};function c(a){s.equal(a.length,8,&quot;Invalid IV length&quot;),this.iv=new Array(8);for(var d=0;d&lt;this.iv.length;d++)this.iv[d]=a[d]}o.instantiate=function(a){function d(p){a.call(this,p),this._cbcInit()}l(d,a);for(var f=Object.keys(u),h=0;h&lt;f.length;h++){var m=f[h];d.prototype[m]=u[m]}return d.create=function(p){return new d(p)},d},u._cbcInit=function(){var a=new c(this.options.iv);this._cbcState=a},u._update=function(a,d,f,h){var m=this._cbcState,p=this.constructor.super_.prototype,x=m.iv;if(this.type===&quot;encrypt&quot;){for(var g=0;g&lt;this.blockSize;g++)x[g]^=a[d+g];for(p._update.call(this,x,0,f,h),g=0;g&lt;this.blockSize;g++)x[g]=f[h+g]}else{for(p._update.call(this,a,d,f,h),g=0;g&lt;this.blockSize;g++)f[h+g]^=x[g];for(g=0;g&lt;this.blockSize;g++)x[g]=a[d+g]}}},{inherits:440,&quot;minimalistic-assert&quot;:453}],396:[function(t,n,o){var s=t(&quot;minimalistic-assert&quot;);function l(u){this.options=u,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=u.padding!==!1}n.exports=l,l.prototype._init=function(){},l.prototype.update=function(u){return u.length===0?[]:this.type===&quot;decrypt&quot;?this._updateDecrypt(u):this._updateEncrypt(u)},l.prototype._buffer=function(u,c){for(var a=Math.min(this.buffer.length-this.bufferOff,u.length-c),d=0;d&lt;a;d++)this.buffer[this.bufferOff+d]=u[c+d];return this.bufferOff+=a,a},l.prototype._flushBuffer=function(u,c){return this._update(this.buffer,0,u,c),this.bufferOff=0,this.blockSize},l.prototype._updateEncrypt=function(u){var c=0,a=0,d=(this.bufferOff+u.length)/this.blockSize|0,f=new Array(d*this.blockSize);this.bufferOff!==0&amp;&amp;(c+=this._buffer(u,c),this.bufferOff===this.buffer.length&amp;&amp;(a+=this._flushBuffer(f,a)));for(var h=u.length-(u.length-c)%this.blockSize;c&lt;h;c+=this.blockSize)this._update(u,c,f,a),a+=this.blockSize;for(;c&lt;u.length;c++,this.bufferOff++)this.buffer[this.bufferOff]=u[c];return f},l.prototype._updateDecrypt=function(u){for(var c=0,a=0,d=Math.ceil((this.bufferOff+u.length)/this.blockSize)-1,f=new Array(d*this.blockSize);d&gt;0;d--)c+=this._buffer(u,c),a+=this._flushBuffer(f,a);return c+=this._buffer(u,c),f},l.prototype.final=function(u){var c,a;return u&amp;&amp;(c=this.update(u)),a=this.type===&quot;encrypt&quot;?this._finalEncrypt():this._finalDecrypt(),c?c.concat(a):a},l.prototype._pad=function(u,c){if(c===0)return!1;for(;c&lt;u.length;)u[c++]=0;return!0},l.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var u=new Array(this.blockSize);return this._update(this.buffer,0,u,0),u},l.prototype._unpad=function(u){return u},l.prototype._finalDecrypt=function(){s.equal(this.bufferOff,this.blockSize,&quot;Not enough data to decrypt&quot;);var u=new Array(this.blockSize);return this._flushBuffer(u,0),this._unpad(u)}},{&quot;minimalistic-assert&quot;:453}],397:[function(t,n,o){var s=t(&quot;minimalistic-assert&quot;),l=t(&quot;inherits&quot;),u=t(&quot;./utils&quot;),c=t(&quot;./cipher&quot;);function a(){this.tmp=new Array(2),this.keys=null}function d(h){c.call(this,h);var m=new a;this._desState=m,this.deriveKeys(m,h.key)}l(d,c),n.exports=d,d.create=function(h){return new d(h)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];d.prototype.deriveKeys=function(h,m){h.keys=new Array(32),s.equal(m.length,this.blockSize,&quot;Invalid key length&quot;);var p=u.readUInt32BE(m,0),x=u.readUInt32BE(m,4);u.pc1(p,x,h.tmp,0),p=h.tmp[0],x=h.tmp[1];for(var g=0;g&lt;h.keys.length;g+=2){var y=f[g&gt;&gt;&gt;1];p=u.r28shl(p,y),x=u.r28shl(x,y),u.pc2(p,x,h.keys,g)}},d.prototype._update=function(h,m,p,x){var g=this._desState,y=u.readUInt32BE(h,m),v=u.readUInt32BE(h,m+4);u.ip(y,v,g.tmp,0),y=g.tmp[0],v=g.tmp[1],this.type===&quot;encrypt&quot;?this._encrypt(g,y,v,g.tmp,0):this._decrypt(g,y,v,g.tmp,0),y=g.tmp[0],v=g.tmp[1],u.writeUInt32BE(p,y,x),u.writeUInt32BE(p,v,x+4)},d.prototype._pad=function(h,m){if(this.padding===!1)return!1;for(var p=h.length-m,x=m;x&lt;h.length;x++)h[x]=p;return!0},d.prototype._unpad=function(h){if(this.padding===!1)return h;for(var m=h[h.length-1],p=h.length-m;p&lt;h.length;p++)s.equal(h[p],m);return h.slice(0,h.length-m)},d.prototype._encrypt=function(h,m,p,x,g){for(var y=m,v=p,_=0;_&lt;h.keys.length;_+=2){var S=h.keys[_],A=h.keys[_+1];u.expand(v,h.tmp,0),S^=h.tmp[0],A^=h.tmp[1];var I=u.substitute(S,A),V=v;v=(y^u.permute(I))&gt;&gt;&gt;0,y=V}u.rip(v,y,x,g)},d.prototype._decrypt=function(h,m,p,x,g){for(var y=p,v=m,_=h.keys.length-2;_&gt;=0;_-=2){var S=h.keys[_],A=h.keys[_+1];u.expand(y,h.tmp,0),S^=h.tmp[0],A^=h.tmp[1];var I=u.substitute(S,A),V=y;y=(v^u.permute(I))&gt;&gt;&gt;0,v=V}u.rip(y,v,x,g)}},{&quot;./cipher&quot;:396,&quot;./utils&quot;:399,inherits:440,&quot;minimalistic-assert&quot;:453}],398:[function(t,n,o){var s=t(&quot;minimalistic-assert&quot;),l=t(&quot;inherits&quot;),u=t(&quot;./cipher&quot;),c=t(&quot;./des&quot;);function a(f,h){s.equal(h.length,24,&quot;Invalid key length&quot;);var m=h.slice(0,8),p=h.slice(8,16),x=h.slice(16,24);this.ciphers=f===&quot;encrypt&quot;?[c.create({type:&quot;encrypt&quot;,key:m}),c.create({type:&quot;decrypt&quot;,key:p}),c.create({type:&quot;encrypt&quot;,key:x})]:[c.create({type:&quot;decrypt&quot;,key:x}),c.create({type:&quot;encrypt&quot;,key:p}),c.create({type:&quot;decrypt&quot;,key:m})]}function d(f){u.call(this,f);var h=new a(this.type,this.options.key);this._edeState=h}l(d,u),n.exports=d,d.create=function(f){return new d(f)},d.prototype._update=function(f,h,m,p){var x=this._edeState;x.ciphers[0]._update(f,h,m,p),x.ciphers[1]._update(m,p,m,p),x.ciphers[2]._update(m,p,m,p)},d.prototype._pad=c.prototype._pad,d.prototype._unpad=c.prototype._unpad},{&quot;./cipher&quot;:396,&quot;./des&quot;:397,inherits:440,&quot;minimalistic-assert&quot;:453}],399:[function(t,n,o){o.readUInt32BE=function(c,a){return(c[0+a]&lt;&lt;24|c[1+a]&lt;&lt;16|c[2+a]&lt;&lt;8|c[3+a])&gt;&gt;&gt;0},o.writeUInt32BE=function(c,a,d){c[0+d]=a&gt;&gt;&gt;24,c[1+d]=a&gt;&gt;&gt;16&amp;255,c[2+d]=a&gt;&gt;&gt;8&amp;255,c[3+d]=255&amp;a},o.ip=function(c,a,d,f){for(var h=0,m=0,p=6;p&gt;=0;p-=2){for(var x=0;x&lt;=24;x+=8)h&lt;&lt;=1,h|=a&gt;&gt;&gt;x+p&amp;1;for(x=0;x&lt;=24;x+=8)h&lt;&lt;=1,h|=c&gt;&gt;&gt;x+p&amp;1}for(p=6;p&gt;=0;p-=2){for(x=1;x&lt;=25;x+=8)m&lt;&lt;=1,m|=a&gt;&gt;&gt;x+p&amp;1;for(x=1;x&lt;=25;x+=8)m&lt;&lt;=1,m|=c&gt;&gt;&gt;x+p&amp;1}d[f+0]=h&gt;&gt;&gt;0,d[f+1]=m&gt;&gt;&gt;0},o.rip=function(c,a,d,f){for(var h=0,m=0,p=0;p&lt;4;p++)for(var x=24;x&gt;=0;x-=8)h&lt;&lt;=1,h|=a&gt;&gt;&gt;x+p&amp;1,h&lt;&lt;=1,h|=c&gt;&gt;&gt;x+p&amp;1;for(p=4;p&lt;8;p++)for(x=24;x&gt;=0;x-=8)m&lt;&lt;=1,m|=a&gt;&gt;&gt;x+p&amp;1,m&lt;&lt;=1,m|=c&gt;&gt;&gt;x+p&amp;1;d[f+0]=h&gt;&gt;&gt;0,d[f+1]=m&gt;&gt;&gt;0},o.pc1=function(c,a,d,f){for(var h=0,m=0,p=7;p&gt;=5;p--){for(var x=0;x&lt;=24;x+=8)h&lt;&lt;=1,h|=a&gt;&gt;x+p&amp;1;for(x=0;x&lt;=24;x+=8)h&lt;&lt;=1,h|=c&gt;&gt;x+p&amp;1}for(x=0;x&lt;=24;x+=8)h&lt;&lt;=1,h|=a&gt;&gt;x+p&amp;1;for(p=1;p&lt;=3;p++){for(x=0;x&lt;=24;x+=8)m&lt;&lt;=1,m|=a&gt;&gt;x+p&amp;1;for(x=0;x&lt;=24;x+=8)m&lt;&lt;=1,m|=c&gt;&gt;x+p&amp;1}for(x=0;x&lt;=24;x+=8)m&lt;&lt;=1,m|=c&gt;&gt;x+p&amp;1;d[f+0]=h&gt;&gt;&gt;0,d[f+1]=m&gt;&gt;&gt;0},o.r28shl=function(c,a){return c&lt;&lt;a&amp;268435455|c&gt;&gt;&gt;28-a};var s=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];o.pc2=function(c,a,d,f){for(var h=0,m=0,p=s.length&gt;&gt;&gt;1,x=0;x&lt;p;x++)h&lt;&lt;=1,h|=c&gt;&gt;&gt;s[x]&amp;1;for(x=p;x&lt;s.length;x++)m&lt;&lt;=1,m|=a&gt;&gt;&gt;s[x]&amp;1;d[f+0]=h&gt;&gt;&gt;0,d[f+1]=m&gt;&gt;&gt;0},o.expand=function(c,a,d){var f=0,h=0;f=(1&amp;c)&lt;&lt;5|c&gt;&gt;&gt;27;for(var m=23;m&gt;=15;m-=4)f&lt;&lt;=6,f|=c&gt;&gt;&gt;m&amp;63;for(m=11;m&gt;=3;m-=4)h|=c&gt;&gt;&gt;m&amp;63,h&lt;&lt;=6;h|=(31&amp;c)&lt;&lt;1|c&gt;&gt;&gt;31,a[d+0]=f&gt;&gt;&gt;0,a[d+1]=h&gt;&gt;&gt;0};var l=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];o.substitute=function(c,a){for(var d=0,f=0;f&lt;4;f++)d&lt;&lt;=4,d|=l[64*f+(c&gt;&gt;&gt;18-6*f&amp;63)];for(f=0;f&lt;4;f++)d&lt;&lt;=4,d|=l[256+64*f+(a&gt;&gt;&gt;18-6*f&amp;63)];return d&gt;&gt;&gt;0};var u=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];o.permute=function(c){for(var a=0,d=0;d&lt;u.length;d++)a&lt;&lt;=1,a|=c&gt;&gt;&gt;u[d]&amp;1;return a&gt;&gt;&gt;0},o.padSplit=function(c,a,d){for(var f=c.toString(2);f.length&lt;a;)f=&quot;0&quot;+f;for(var h=[],m=0;m&lt;a;m+=d)h.push(f.slice(m,m+d));return h.join(&quot; &quot;)}},{}],400:[function(t,n,o){(function(s){(function(){var l=t(&quot;./lib/generatePrime&quot;),u=t(&quot;./lib/primes.json&quot;),c=t(&quot;./lib/dh&quot;),a={binary:!0,hex:!0,base64:!0};o.DiffieHellmanGroup=o.createDiffieHellmanGroup=o.getDiffieHellman=function(d){var f=new s(u[d].prime,&quot;hex&quot;),h=new s(u[d].gen,&quot;hex&quot;);return new c(f,h)},o.createDiffieHellman=o.DiffieHellman=function d(f,h,m,p){return s.isBuffer(h)||a[h]===void 0?d(f,&quot;binary&quot;,h,m):(h=h||&quot;binary&quot;,p=p||&quot;binary&quot;,m=m||new s([2]),s.isBuffer(m)||(m=new s(m,p)),typeof f==&quot;number&quot;?new c(l(f,m),m,!0):(s.isBuffer(f)||(f=new s(f,h)),new c(f,m,!0)))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./lib/dh&quot;:401,&quot;./lib/generatePrime&quot;:402,&quot;./lib/primes.json&quot;:403,buffer:220}],401:[function(t,n,o){(function(s){(function(){var l=t(&quot;bn.js&quot;),u=new(t(&quot;miller-rabin&quot;)),c=new l(24),a=new l(11),d=new l(10),f=new l(3),h=new l(7),m=t(&quot;./generatePrime&quot;),p=t(&quot;randombytes&quot;);function x(S,A){return A=A||&quot;utf8&quot;,s.isBuffer(S)||(S=new s(S,A)),this._pub=new l(S),this}function g(S,A){return A=A||&quot;utf8&quot;,s.isBuffer(S)||(S=new s(S,A)),this._priv=new l(S),this}n.exports=v;var y={};function v(S,A,I){this.setGenerator(A),this.__prime=new l(S),this._prime=l.mont(this.__prime),this._primeLen=S.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,I?(this.setPublicKey=x,this.setPrivateKey=g):this._primeCode=8}function _(S,A){var I=new s(S.toArray());return A?I.toString(A):I}Object.defineProperty(v.prototype,&quot;verifyError&quot;,{enumerable:!0,get:function(){return typeof this._primeCode!=&quot;number&quot;&amp;&amp;(this._primeCode=(function(S,A){var I=A.toString(&quot;hex&quot;),V=[I,S.toString(16)].join(&quot;_&quot;);if(V in y)return y[V];var F,q=0;if(S.isEven()||!m.simpleSieve||!m.fermatTest(S)||!u.test(S))return q+=1,q+=I===&quot;02&quot;||I===&quot;05&quot;?8:4,y[V]=q,q;switch(u.test(S.shrn(1))||(q+=2),I){case&quot;02&quot;:S.mod(c).cmp(a)&amp;&amp;(q+=8);break;case&quot;05&quot;:(F=S.mod(d)).cmp(f)&amp;&amp;F.cmp(h)&amp;&amp;(q+=8);break;default:q+=4}return y[V]=q,q})(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new l(p(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(S){var A=(S=(S=new l(S)).toRed(this._prime)).redPow(this._priv).fromRed(),I=new s(A.toArray()),V=this.getPrime();if(I.length&lt;V.length){var F=new s(V.length-I.length);F.fill(0),I=s.concat([F,I])}return I},v.prototype.getPublicKey=function(S){return _(this._pub,S)},v.prototype.getPrivateKey=function(S){return _(this._priv,S)},v.prototype.getPrime=function(S){return _(this.__prime,S)},v.prototype.getGenerator=function(S){return _(this._gen,S)},v.prototype.setGenerator=function(S,A){return A=A||&quot;utf8&quot;,s.isBuffer(S)||(S=new s(S,A)),this.__gen=S,this._gen=new l(S),this}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./generatePrime&quot;:402,&quot;bn.js&quot;:404,buffer:220,&quot;miller-rabin&quot;:451,randombytes:475}],402:[function(t,n,o){var s=t(&quot;randombytes&quot;);n.exports=S,S.simpleSieve=v,S.fermatTest=_;var l=t(&quot;bn.js&quot;),u=new l(24),c=new(t(&quot;miller-rabin&quot;)),a=new l(1),d=new l(2),f=new l(5),h=(new l(16),new l(8),new l(10)),m=new l(3),p=(new l(7),new l(11)),x=new l(4),g=(new l(12),null);function y(){if(g!==null)return g;var A=[];A[0]=2;for(var I=1,V=3;V&lt;1048576;V+=2){for(var F=Math.ceil(Math.sqrt(V)),q=0;q&lt;I&amp;&amp;A[q]&lt;=F&amp;&amp;V%A[q]!=0;q++);I!==q&amp;&amp;A[q]&lt;=F||(A[I++]=V)}return g=A,A}function v(A){for(var I=y(),V=0;V&lt;I.length;V++)if(A.modn(I[V])===0)return A.cmpn(I[V])===0;return!0}function _(A){var I=l.mont(A);return d.toRed(I).redPow(A.subn(1)).fromRed().cmpn(1)===0}function S(A,I){if(A&lt;16)return new l(I===2||I===5?[140,123]:[140,39]);var V,F;for(I=new l(I);;){for(V=new l(s(Math.ceil(A/8)));V.bitLength()&gt;A;)V.ishrn(1);if(V.isEven()&amp;&amp;V.iadd(a),V.testn(1)||V.iadd(d),I.cmp(d)){if(!I.cmp(f))for(;V.mod(h).cmp(m);)V.iadd(x)}else for(;V.mod(u).cmp(p);)V.iadd(x);if(v(F=V.shrn(1))&amp;&amp;v(V)&amp;&amp;_(F)&amp;&amp;_(V)&amp;&amp;c.test(F)&amp;&amp;c.test(V))return V}}},{&quot;bn.js&quot;:404,&quot;miller-rabin&quot;:451,randombytes:475}],403:[function(t,n,o){n.exports={modp1:{gen:&quot;02&quot;,prime:&quot;ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff&quot;},modp2:{gen:&quot;02&quot;,prime:&quot;ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff&quot;},modp5:{gen:&quot;02&quot;,prime:&quot;ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff&quot;},modp14:{gen:&quot;02&quot;,prime:&quot;ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff&quot;},modp15:{gen:&quot;02&quot;,prime:&quot;ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff&quot;},modp16:{gen:&quot;02&quot;,prime:&quot;ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff&quot;},modp17:{gen:&quot;02&quot;,prime:&quot;ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff&quot;},modp18:{gen:&quot;02&quot;,prime:&quot;ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff&quot;}}},{}],404:[function(t,n,o){arguments[4][184][0].apply(o,arguments)},{buffer:188,dup:184}],405:[function(t,n,o){var s=o;s.version=t(&quot;../package.json&quot;).version,s.utils=t(&quot;./elliptic/utils&quot;),s.rand=t(&quot;brorand&quot;),s.curve=t(&quot;./elliptic/curve&quot;),s.curves=t(&quot;./elliptic/curves&quot;),s.ec=t(&quot;./elliptic/ec&quot;),s.eddsa=t(&quot;./elliptic/eddsa&quot;)},{&quot;../package.json&quot;:421,&quot;./elliptic/curve&quot;:408,&quot;./elliptic/curves&quot;:411,&quot;./elliptic/ec&quot;:412,&quot;./elliptic/eddsa&quot;:415,&quot;./elliptic/utils&quot;:419,brorand:187}],406:[function(t,n,o){var s=t(&quot;bn.js&quot;),l=t(&quot;../utils&quot;),u=l.getNAF,c=l.getJSF,a=l.assert;function d(h,m){this.type=h,this.p=new s(m.p,16),this.red=m.prime?s.red(m.prime):s.mont(this.p),this.zero=new s(0).toRed(this.red),this.one=new s(1).toRed(this.red),this.two=new s(2).toRed(this.red),this.n=m.n&amp;&amp;new s(m.n,16),this.g=m.g&amp;&amp;this.pointFromJSON(m.g,m.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var p=this.n&amp;&amp;this.p.div(this.n);!p||p.cmpn(100)&gt;0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(h,m){this.curve=h,this.type=m,this.precomputed=null}n.exports=d,d.prototype.point=function(){throw new Error(&quot;Not implemented&quot;)},d.prototype.validate=function(){throw new Error(&quot;Not implemented&quot;)},d.prototype._fixedNafMul=function(h,m){a(h.precomputed);var p=h._getDoubles(),x=u(m,1,this._bitLength),g=(1&lt;&lt;p.step+1)-(p.step%2==0?2:1);g/=3;var y,v,_=[];for(y=0;y&lt;x.length;y+=p.step){v=0;for(var S=y+p.step-1;S&gt;=y;S--)v=(v&lt;&lt;1)+x[S];_.push(v)}for(var A=this.jpoint(null,null,null),I=this.jpoint(null,null,null),V=g;V&gt;0;V--){for(y=0;y&lt;_.length;y++)(v=_[y])===V?I=I.mixedAdd(p.points[y]):v===-V&amp;&amp;(I=I.mixedAdd(p.points[y].neg()));A=A.add(I)}return A.toP()},d.prototype._wnafMul=function(h,m){var p=4,x=h._getNAFPoints(p);p=x.wnd;for(var g=x.points,y=u(m,p,this._bitLength),v=this.jpoint(null,null,null),_=y.length-1;_&gt;=0;_--){for(var S=0;_&gt;=0&amp;&amp;y[_]===0;_--)S++;if(_&gt;=0&amp;&amp;S++,v=v.dblp(S),_&lt;0)break;var A=y[_];a(A!==0),v=h.type===&quot;affine&quot;?A&gt;0?v.mixedAdd(g[A-1&gt;&gt;1]):v.mixedAdd(g[-A-1&gt;&gt;1].neg()):A&gt;0?v.add(g[A-1&gt;&gt;1]):v.add(g[-A-1&gt;&gt;1].neg())}return h.type===&quot;affine&quot;?v.toP():v},d.prototype._wnafMulAdd=function(h,m,p,x,g){var y,v,_,S=this._wnafT1,A=this._wnafT2,I=this._wnafT3,V=0;for(y=0;y&lt;x;y++){var F=(_=m[y])._getNAFPoints(h);S[y]=F.wnd,A[y]=F.points}for(y=x-1;y&gt;=1;y-=2){var q=y-1,H=y;if(S[q]===1&amp;&amp;S[H]===1){var B=[m[q],null,null,m[H]];m[q].y.cmp(m[H].y)===0?(B[1]=m[q].add(m[H]),B[2]=m[q].toJ().mixedAdd(m[H].neg())):m[q].y.cmp(m[H].y.redNeg())===0?(B[1]=m[q].toJ().mixedAdd(m[H]),B[2]=m[q].add(m[H].neg())):(B[1]=m[q].toJ().mixedAdd(m[H]),B[2]=m[q].toJ().mixedAdd(m[H].neg()));var K=[-3,-1,-5,-7,0,7,5,1,3],T=c(p[q],p[H]);for(V=Math.max(T[0].length,V),I[q]=new Array(V),I[H]=new Array(V),v=0;v&lt;V;v++){var L=0|T[0][v],E=0|T[1][v];I[q][v]=K[3*(L+1)+(E+1)],I[H][v]=0,A[q]=B}}else I[q]=u(p[q],S[q],this._bitLength),I[H]=u(p[H],S[H],this._bitLength),V=Math.max(I[q].length,V),V=Math.max(I[H].length,V)}var j=this.jpoint(null,null,null),k=this._wnafT4;for(y=V;y&gt;=0;y--){for(var N=0;y&gt;=0;){var C=!0;for(v=0;v&lt;x;v++)k[v]=0|I[v][y],k[v]!==0&amp;&amp;(C=!1);if(!C)break;N++,y--}if(y&gt;=0&amp;&amp;N++,j=j.dblp(N),y&lt;0)break;for(v=0;v&lt;x;v++){var P=k[v];P!==0&amp;&amp;(P&gt;0?_=A[v][P-1&gt;&gt;1]:P&lt;0&amp;&amp;(_=A[v][-P-1&gt;&gt;1].neg()),j=_.type===&quot;affine&quot;?j.mixedAdd(_):j.add(_))}}for(y=0;y&lt;x;y++)A[y]=null;return g?j:j.toP()},d.BasePoint=f,f.prototype.eq=function(){throw new Error(&quot;Not implemented&quot;)},f.prototype.validate=function(){return this.curve.validate(this)},d.prototype.decodePoint=function(h,m){h=l.toArray(h,m);var p=this.p.byteLength();if((h[0]===4||h[0]===6||h[0]===7)&amp;&amp;h.length-1==2*p)return h[0]===6?a(h[h.length-1]%2==0):h[0]===7&amp;&amp;a(h[h.length-1]%2==1),this.point(h.slice(1,1+p),h.slice(1+p,1+2*p));if((h[0]===2||h[0]===3)&amp;&amp;h.length-1===p)return this.pointFromX(h.slice(1,1+p),h[0]===3);throw new Error(&quot;Unknown point format&quot;)},f.prototype.encodeCompressed=function(h){return this.encode(h,!0)},f.prototype._encode=function(h){var m=this.curve.p.byteLength(),p=this.getX().toArray(&quot;be&quot;,m);return h?[this.getY().isEven()?2:3].concat(p):[4].concat(p,this.getY().toArray(&quot;be&quot;,m))},f.prototype.encode=function(h,m){return l.encode(this._encode(m),h)},f.prototype.precompute=function(h){if(this.precomputed)return this;var m={doubles:null,naf:null,beta:null};return m.naf=this._getNAFPoints(8),m.doubles=this._getDoubles(4,h),m.beta=this._getBeta(),this.precomputed=m,this},f.prototype._hasDoubles=function(h){if(!this.precomputed)return!1;var m=this.precomputed.doubles;return!!m&amp;&amp;m.points.length&gt;=Math.ceil((h.bitLength()+1)/m.step)},f.prototype._getDoubles=function(h,m){if(this.precomputed&amp;&amp;this.precomputed.doubles)return this.precomputed.doubles;for(var p=[this],x=this,g=0;g&lt;m;g+=h){for(var y=0;y&lt;h;y++)x=x.dbl();p.push(x)}return{step:h,points:p}},f.prototype._getNAFPoints=function(h){if(this.precomputed&amp;&amp;this.precomputed.naf)return this.precomputed.naf;for(var m=[this],p=(1&lt;&lt;h)-1,x=p===1?null:this.dbl(),g=1;g&lt;p;g++)m[g]=m[g-1].add(x);return{wnd:h,points:m}},f.prototype._getBeta=function(){return null},f.prototype.dblp=function(h){for(var m=this,p=0;p&lt;h;p++)m=m.dbl();return m}},{&quot;../utils&quot;:419,&quot;bn.js&quot;:420}],407:[function(t,n,o){var s=t(&quot;../utils&quot;),l=t(&quot;bn.js&quot;),u=t(&quot;inherits&quot;),c=t(&quot;./base&quot;),a=s.assert;function d(h){this.twisted=(0|h.a)!=1,this.mOneA=this.twisted&amp;&amp;(0|h.a)==-1,this.extended=this.mOneA,c.call(this,&quot;edwards&quot;,h),this.a=new l(h.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new l(h.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new l(h.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|h.c)==1}function f(h,m,p,x,g){c.BasePoint.call(this,h,&quot;projective&quot;),m===null&amp;&amp;p===null&amp;&amp;x===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new l(m,16),this.y=new l(p,16),this.z=x?new l(x,16):this.curve.one,this.t=g&amp;&amp;new l(g,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&amp;&amp;!this.t.red&amp;&amp;(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&amp;&amp;!this.t&amp;&amp;(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}u(d,c),n.exports=d,d.prototype._mulA=function(h){return this.mOneA?h.redNeg():this.a.redMul(h)},d.prototype._mulC=function(h){return this.oneC?h:this.c.redMul(h)},d.prototype.jpoint=function(h,m,p,x){return this.point(h,m,p,x)},d.prototype.pointFromX=function(h,m){(h=new l(h,16)).red||(h=h.toRed(this.red));var p=h.redSqr(),x=this.c2.redSub(this.a.redMul(p)),g=this.one.redSub(this.c2.redMul(this.d).redMul(p)),y=x.redMul(g.redInvm()),v=y.redSqrt();if(v.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error(&quot;invalid point&quot;);var _=v.fromRed().isOdd();return(m&amp;&amp;!_||!m&amp;&amp;_)&amp;&amp;(v=v.redNeg()),this.point(h,v)},d.prototype.pointFromY=function(h,m){(h=new l(h,16)).red||(h=h.toRed(this.red));var p=h.redSqr(),x=p.redSub(this.c2),g=p.redMul(this.d).redMul(this.c2).redSub(this.a),y=x.redMul(g.redInvm());if(y.cmp(this.zero)===0){if(m)throw new Error(&quot;invalid point&quot;);return this.point(this.zero,h)}var v=y.redSqrt();if(v.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error(&quot;invalid point&quot;);return v.fromRed().isOdd()!==m&amp;&amp;(v=v.redNeg()),this.point(v,h)},d.prototype.validate=function(h){if(h.isInfinity())return!0;h.normalize();var m=h.x.redSqr(),p=h.y.redSqr(),x=m.redMul(this.a).redAdd(p),g=this.c2.redMul(this.one.redAdd(this.d.redMul(m).redMul(p)));return x.cmp(g)===0},u(f,c.BasePoint),d.prototype.pointFromJSON=function(h){return f.fromJSON(this,h)},d.prototype.point=function(h,m,p,x){return new f(this,h,m,p,x)},f.fromJSON=function(h,m){return new f(h,m[0],m[1],m[2])},f.prototype.inspect=function(){return this.isInfinity()?&quot;&lt;EC Point Infinity&gt;&quot;:&quot;&lt;EC Point x: &quot;+this.x.fromRed().toString(16,2)+&quot; y: &quot;+this.y.fromRed().toString(16,2)+&quot; z: &quot;+this.z.fromRed().toString(16,2)+&quot;&gt;&quot;},f.prototype.isInfinity=function(){return this.x.cmpn(0)===0&amp;&amp;(this.y.cmp(this.z)===0||this.zOne&amp;&amp;this.y.cmp(this.curve.c)===0)},f.prototype._extDbl=function(){var h=this.x.redSqr(),m=this.y.redSqr(),p=this.z.redSqr();p=p.redIAdd(p);var x=this.curve._mulA(h),g=this.x.redAdd(this.y).redSqr().redISub(h).redISub(m),y=x.redAdd(m),v=y.redSub(p),_=x.redSub(m),S=g.redMul(v),A=y.redMul(_),I=g.redMul(_),V=v.redMul(y);return this.curve.point(S,A,V,I)},f.prototype._projDbl=function(){var h,m,p,x,g,y,v=this.x.redAdd(this.y).redSqr(),_=this.x.redSqr(),S=this.y.redSqr();if(this.curve.twisted){var A=(x=this.curve._mulA(_)).redAdd(S);this.zOne?(h=v.redSub(_).redSub(S).redMul(A.redSub(this.curve.two)),m=A.redMul(x.redSub(S)),p=A.redSqr().redSub(A).redSub(A)):(g=this.z.redSqr(),y=A.redSub(g).redISub(g),h=v.redSub(_).redISub(S).redMul(y),m=A.redMul(x.redSub(S)),p=A.redMul(y))}else x=_.redAdd(S),g=this.curve._mulC(this.z).redSqr(),y=x.redSub(g).redSub(g),h=this.curve._mulC(v.redISub(x)).redMul(y),m=this.curve._mulC(x).redMul(_.redISub(S)),p=x.redMul(y);return this.curve.point(h,m,p)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(h){var m=this.y.redSub(this.x).redMul(h.y.redSub(h.x)),p=this.y.redAdd(this.x).redMul(h.y.redAdd(h.x)),x=this.t.redMul(this.curve.dd).redMul(h.t),g=this.z.redMul(h.z.redAdd(h.z)),y=p.redSub(m),v=g.redSub(x),_=g.redAdd(x),S=p.redAdd(m),A=y.redMul(v),I=_.redMul(S),V=y.redMul(S),F=v.redMul(_);return this.curve.point(A,I,F,V)},f.prototype._projAdd=function(h){var m,p,x=this.z.redMul(h.z),g=x.redSqr(),y=this.x.redMul(h.x),v=this.y.redMul(h.y),_=this.curve.d.redMul(y).redMul(v),S=g.redSub(_),A=g.redAdd(_),I=this.x.redAdd(this.y).redMul(h.x.redAdd(h.y)).redISub(y).redISub(v),V=x.redMul(S).redMul(I);return this.curve.twisted?(m=x.redMul(A).redMul(v.redSub(this.curve._mulA(y))),p=S.redMul(A)):(m=x.redMul(A).redMul(v.redSub(y)),p=this.curve._mulC(S).redMul(A)),this.curve.point(V,m,p)},f.prototype.add=function(h){return this.isInfinity()?h:h.isInfinity()?this:this.curve.extended?this._extAdd(h):this._projAdd(h)},f.prototype.mul=function(h){return this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve._wnafMul(this,h)},f.prototype.mulAdd=function(h,m,p){return this.curve._wnafMulAdd(1,[this,m],[h,p],2,!1)},f.prototype.jmulAdd=function(h,m,p){return this.curve._wnafMulAdd(1,[this,m],[h,p],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var h=this.z.redInvm();return this.x=this.x.redMul(h),this.y=this.y.redMul(h),this.t&amp;&amp;(this.t=this.t.redMul(h)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&amp;&amp;this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(h){return this===h||this.getX().cmp(h.getX())===0&amp;&amp;this.getY().cmp(h.getY())===0},f.prototype.eqXToP=function(h){var m=h.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(m)===0)return!0;for(var p=h.clone(),x=this.curve.redN.redMul(this.z);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)&gt;=0)return!1;if(m.redIAdd(x),this.x.cmp(m)===0)return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},{&quot;../utils&quot;:419,&quot;./base&quot;:406,&quot;bn.js&quot;:420,inherits:440}],408:[function(t,n,o){var s=o;s.base=t(&quot;./base&quot;),s.short=t(&quot;./short&quot;),s.mont=t(&quot;./mont&quot;),s.edwards=t(&quot;./edwards&quot;)},{&quot;./base&quot;:406,&quot;./edwards&quot;:407,&quot;./mont&quot;:409,&quot;./short&quot;:410}],409:[function(t,n,o){var s=t(&quot;bn.js&quot;),l=t(&quot;inherits&quot;),u=t(&quot;./base&quot;),c=t(&quot;../utils&quot;);function a(f){u.call(this,&quot;mont&quot;,f),this.a=new s(f.a,16).toRed(this.red),this.b=new s(f.b,16).toRed(this.red),this.i4=new s(4).toRed(this.red).redInvm(),this.two=new s(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function d(f,h,m){u.BasePoint.call(this,f,&quot;projective&quot;),h===null&amp;&amp;m===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new s(h,16),this.z=new s(m,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}l(a,u),n.exports=a,a.prototype.validate=function(f){var h=f.normalize().x,m=h.redSqr(),p=m.redMul(h).redAdd(m.redMul(this.a)).redAdd(h);return p.redSqrt().redSqr().cmp(p)===0},l(d,u.BasePoint),a.prototype.decodePoint=function(f,h){return this.point(c.toArray(f,h),1)},a.prototype.point=function(f,h){return new d(this,f,h)},a.prototype.pointFromJSON=function(f){return d.fromJSON(this,f)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray(&quot;be&quot;,this.curve.p.byteLength())},d.fromJSON=function(f,h){return new d(f,h[0],h[1]||f.one)},d.prototype.inspect=function(){return this.isInfinity()?&quot;&lt;EC Point Infinity&gt;&quot;:&quot;&lt;EC Point x: &quot;+this.x.fromRed().toString(16,2)+&quot; z: &quot;+this.z.fromRed().toString(16,2)+&quot;&gt;&quot;},d.prototype.isInfinity=function(){return this.z.cmpn(0)===0},d.prototype.dbl=function(){var f=this.x.redAdd(this.z).redSqr(),h=this.x.redSub(this.z).redSqr(),m=f.redSub(h),p=f.redMul(h),x=m.redMul(h.redAdd(this.curve.a24.redMul(m)));return this.curve.point(p,x)},d.prototype.add=function(){throw new Error(&quot;Not supported on Montgomery curve&quot;)},d.prototype.diffAdd=function(f,h){var m=this.x.redAdd(this.z),p=this.x.redSub(this.z),x=f.x.redAdd(f.z),g=f.x.redSub(f.z).redMul(m),y=x.redMul(p),v=h.z.redMul(g.redAdd(y).redSqr()),_=h.x.redMul(g.redISub(y).redSqr());return this.curve.point(v,_)},d.prototype.mul=function(f){for(var h=f.clone(),m=this,p=this.curve.point(null,null),x=[];h.cmpn(0)!==0;h.iushrn(1))x.push(h.andln(1));for(var g=x.length-1;g&gt;=0;g--)x[g]===0?(m=m.diffAdd(p,this),p=p.dbl()):(p=m.diffAdd(p,this),m=m.dbl());return p},d.prototype.mulAdd=function(){throw new Error(&quot;Not supported on Montgomery curve&quot;)},d.prototype.jumlAdd=function(){throw new Error(&quot;Not supported on Montgomery curve&quot;)},d.prototype.eq=function(f){return this.getX().cmp(f.getX())===0},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{&quot;../utils&quot;:419,&quot;./base&quot;:406,&quot;bn.js&quot;:420,inherits:440}],410:[function(t,n,o){var s=t(&quot;../utils&quot;),l=t(&quot;bn.js&quot;),u=t(&quot;inherits&quot;),c=t(&quot;./base&quot;),a=s.assert;function d(m){c.call(this,&quot;short&quot;,m),this.a=new l(m.a,16).toRed(this.red),this.b=new l(m.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(m),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(m,p,x,g){c.BasePoint.call(this,m,&quot;affine&quot;),p===null&amp;&amp;x===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new l(p,16),this.y=new l(x,16),g&amp;&amp;(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(m,p,x,g){c.BasePoint.call(this,m,&quot;jacobian&quot;),p===null&amp;&amp;x===null&amp;&amp;g===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new l(0)):(this.x=new l(p,16),this.y=new l(x,16),this.z=new l(g,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}u(d,c),n.exports=d,d.prototype._getEndomorphism=function(m){if(this.zeroA&amp;&amp;this.g&amp;&amp;this.n&amp;&amp;this.p.modn(3)===1){var p,x;if(m.beta)p=new l(m.beta,16).toRed(this.red);else{var g=this._getEndoRoots(this.p);p=(p=g[0].cmp(g[1])&lt;0?g[0]:g[1]).toRed(this.red)}if(m.lambda)x=new l(m.lambda,16);else{var y=this._getEndoRoots(this.n);this.g.mul(y[0]).x.cmp(this.g.x.redMul(p))===0?x=y[0]:(x=y[1],a(this.g.mul(x).x.cmp(this.g.x.redMul(p))===0))}return{beta:p,lambda:x,basis:m.basis?m.basis.map((function(v){return{a:new l(v.a,16),b:new l(v.b,16)}})):this._getEndoBasis(x)}}},d.prototype._getEndoRoots=function(m){var p=m===this.p?this.red:l.mont(m),x=new l(2).toRed(p).redInvm(),g=x.redNeg(),y=new l(3).toRed(p).redNeg().redSqrt().redMul(x);return[g.redAdd(y).fromRed(),g.redSub(y).fromRed()]},d.prototype._getEndoBasis=function(m){for(var p,x,g,y,v,_,S,A,I,V=this.n.ushrn(Math.floor(this.n.bitLength()/2)),F=m,q=this.n.clone(),H=new l(1),B=new l(0),K=new l(0),T=new l(1),L=0;F.cmpn(0)!==0;){var E=q.div(F);A=q.sub(E.mul(F)),I=K.sub(E.mul(H));var j=T.sub(E.mul(B));if(!g&amp;&amp;A.cmp(V)&lt;0)p=S.neg(),x=H,g=A.neg(),y=I;else if(g&amp;&amp;++L==2)break;S=A,q=F,F=A,K=H,H=I,T=B,B=j}v=A.neg(),_=I;var k=g.sqr().add(y.sqr());return v.sqr().add(_.sqr()).cmp(k)&gt;=0&amp;&amp;(v=p,_=x),g.negative&amp;&amp;(g=g.neg(),y=y.neg()),v.negative&amp;&amp;(v=v.neg(),_=_.neg()),[{a:g,b:y},{a:v,b:_}]},d.prototype._endoSplit=function(m){var p=this.endo.basis,x=p[0],g=p[1],y=g.b.mul(m).divRound(this.n),v=x.b.neg().mul(m).divRound(this.n),_=y.mul(x.a),S=v.mul(g.a),A=y.mul(x.b),I=v.mul(g.b);return{k1:m.sub(_).sub(S),k2:A.add(I).neg()}},d.prototype.pointFromX=function(m,p){(m=new l(m,16)).red||(m=m.toRed(this.red));var x=m.redSqr().redMul(m).redIAdd(m.redMul(this.a)).redIAdd(this.b),g=x.redSqrt();if(g.redSqr().redSub(x).cmp(this.zero)!==0)throw new Error(&quot;invalid point&quot;);var y=g.fromRed().isOdd();return(p&amp;&amp;!y||!p&amp;&amp;y)&amp;&amp;(g=g.redNeg()),this.point(m,g)},d.prototype.validate=function(m){if(m.inf)return!0;var p=m.x,x=m.y,g=this.a.redMul(p),y=p.redSqr().redMul(p).redIAdd(g).redIAdd(this.b);return x.redSqr().redISub(y).cmpn(0)===0},d.prototype._endoWnafMulAdd=function(m,p,x){for(var g=this._endoWnafT1,y=this._endoWnafT2,v=0;v&lt;m.length;v++){var _=this._endoSplit(p[v]),S=m[v],A=S._getBeta();_.k1.negative&amp;&amp;(_.k1.ineg(),S=S.neg(!0)),_.k2.negative&amp;&amp;(_.k2.ineg(),A=A.neg(!0)),g[2*v]=S,g[2*v+1]=A,y[2*v]=_.k1,y[2*v+1]=_.k2}for(var I=this._wnafMulAdd(1,g,y,2*v,x),V=0;V&lt;2*v;V++)g[V]=null,y[V]=null;return I},u(f,c.BasePoint),d.prototype.point=function(m,p,x){return new f(this,m,p,x)},d.prototype.pointFromJSON=function(m,p){return f.fromJSON(this,m,p)},f.prototype._getBeta=function(){if(this.curve.endo){var m=this.precomputed;if(m&amp;&amp;m.beta)return m.beta;var p=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(m){var x=this.curve,g=function(y){return x.point(y.x.redMul(x.endo.beta),y.y)};m.beta=p,p.precomputed={beta:null,naf:m.naf&amp;&amp;{wnd:m.naf.wnd,points:m.naf.points.map(g)},doubles:m.doubles&amp;&amp;{step:m.doubles.step,points:m.doubles.points.map(g)}}}return p}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&amp;&amp;{doubles:this.precomputed.doubles&amp;&amp;{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&amp;&amp;{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(m,p,x){typeof p==&quot;string&quot;&amp;&amp;(p=JSON.parse(p));var g=m.point(p[0],p[1],x);if(!p[2])return g;function y(_){return m.point(_[0],_[1],x)}var v=p[2];return g.precomputed={beta:null,doubles:v.doubles&amp;&amp;{step:v.doubles.step,points:[g].concat(v.doubles.points.map(y))},naf:v.naf&amp;&amp;{wnd:v.naf.wnd,points:[g].concat(v.naf.points.map(y))}},g},f.prototype.inspect=function(){return this.isInfinity()?&quot;&lt;EC Point Infinity&gt;&quot;:&quot;&lt;EC Point x: &quot;+this.x.fromRed().toString(16,2)+&quot; y: &quot;+this.y.fromRed().toString(16,2)+&quot;&gt;&quot;},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(m){if(this.inf)return m;if(m.inf)return this;if(this.eq(m))return this.dbl();if(this.neg().eq(m))return this.curve.point(null,null);if(this.x.cmp(m.x)===0)return this.curve.point(null,null);var p=this.y.redSub(m.y);p.cmpn(0)!==0&amp;&amp;(p=p.redMul(this.x.redSub(m.x).redInvm()));var x=p.redSqr().redISub(this.x).redISub(m.x),g=p.redMul(this.x.redSub(x)).redISub(this.y);return this.curve.point(x,g)},f.prototype.dbl=function(){if(this.inf)return this;var m=this.y.redAdd(this.y);if(m.cmpn(0)===0)return this.curve.point(null,null);var p=this.curve.a,x=this.x.redSqr(),g=m.redInvm(),y=x.redAdd(x).redIAdd(x).redIAdd(p).redMul(g),v=y.redSqr().redISub(this.x.redAdd(this.x)),_=y.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,_)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(m){return m=new l(m,16),this.isInfinity()?this:this._hasDoubles(m)?this.curve._fixedNafMul(this,m):this.curve.endo?this.curve._endoWnafMulAdd([this],[m]):this.curve._wnafMul(this,m)},f.prototype.mulAdd=function(m,p,x){var g=[this,p],y=[m,x];return this.curve.endo?this.curve._endoWnafMulAdd(g,y):this.curve._wnafMulAdd(1,g,y,2)},f.prototype.jmulAdd=function(m,p,x){var g=[this,p],y=[m,x];return this.curve.endo?this.curve._endoWnafMulAdd(g,y,!0):this.curve._wnafMulAdd(1,g,y,2,!0)},f.prototype.eq=function(m){return this===m||this.inf===m.inf&amp;&amp;(this.inf||this.x.cmp(m.x)===0&amp;&amp;this.y.cmp(m.y)===0)},f.prototype.neg=function(m){if(this.inf)return this;var p=this.curve.point(this.x,this.y.redNeg());if(m&amp;&amp;this.precomputed){var x=this.precomputed,g=function(y){return y.neg()};p.precomputed={naf:x.naf&amp;&amp;{wnd:x.naf.wnd,points:x.naf.points.map(g)},doubles:x.doubles&amp;&amp;{step:x.doubles.step,points:x.doubles.points.map(g)}}}return p},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(h,c.BasePoint),d.prototype.jpoint=function(m,p,x){return new h(this,m,p,x)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var m=this.z.redInvm(),p=m.redSqr(),x=this.x.redMul(p),g=this.y.redMul(p).redMul(m);return this.curve.point(x,g)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(m){if(this.isInfinity())return m;if(m.isInfinity())return this;var p=m.z.redSqr(),x=this.z.redSqr(),g=this.x.redMul(p),y=m.x.redMul(x),v=this.y.redMul(p.redMul(m.z)),_=m.y.redMul(x.redMul(this.z)),S=g.redSub(y),A=v.redSub(_);if(S.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=S.redSqr(),V=I.redMul(S),F=g.redMul(I),q=A.redSqr().redIAdd(V).redISub(F).redISub(F),H=A.redMul(F.redISub(q)).redISub(v.redMul(V)),B=this.z.redMul(m.z).redMul(S);return this.curve.jpoint(q,H,B)},h.prototype.mixedAdd=function(m){if(this.isInfinity())return m.toJ();if(m.isInfinity())return this;var p=this.z.redSqr(),x=this.x,g=m.x.redMul(p),y=this.y,v=m.y.redMul(p).redMul(this.z),_=x.redSub(g),S=y.redSub(v);if(_.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var A=_.redSqr(),I=A.redMul(_),V=x.redMul(A),F=S.redSqr().redIAdd(I).redISub(V).redISub(V),q=S.redMul(V.redISub(F)).redISub(y.redMul(I)),H=this.z.redMul(_);return this.curve.jpoint(F,q,H)},h.prototype.dblp=function(m){if(m===0)return this;if(this.isInfinity())return this;if(!m)return this.dbl();var p;if(this.curve.zeroA||this.curve.threeA){var x=this;for(p=0;p&lt;m;p++)x=x.dbl();return x}var g=this.curve.a,y=this.curve.tinv,v=this.x,_=this.y,S=this.z,A=S.redSqr().redSqr(),I=_.redAdd(_);for(p=0;p&lt;m;p++){var V=v.redSqr(),F=I.redSqr(),q=F.redSqr(),H=V.redAdd(V).redIAdd(V).redIAdd(g.redMul(A)),B=v.redMul(F),K=H.redSqr().redISub(B.redAdd(B)),T=B.redISub(K),L=H.redMul(T);L=L.redIAdd(L).redISub(q);var E=I.redMul(S);p+1&lt;m&amp;&amp;(A=A.redMul(q)),v=K,S=E,I=L}return this.curve.jpoint(v,I.redMul(y),S)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},h.prototype._zeroDbl=function(){var m,p,x;if(this.zOne){var g=this.x.redSqr(),y=this.y.redSqr(),v=y.redSqr(),_=this.x.redAdd(y).redSqr().redISub(g).redISub(v);_=_.redIAdd(_);var S=g.redAdd(g).redIAdd(g),A=S.redSqr().redISub(_).redISub(_),I=v.redIAdd(v);I=(I=I.redIAdd(I)).redIAdd(I),m=A,p=S.redMul(_.redISub(A)).redISub(I),x=this.y.redAdd(this.y)}else{var V=this.x.redSqr(),F=this.y.redSqr(),q=F.redSqr(),H=this.x.redAdd(F).redSqr().redISub(V).redISub(q);H=H.redIAdd(H);var B=V.redAdd(V).redIAdd(V),K=B.redSqr(),T=q.redIAdd(q);T=(T=T.redIAdd(T)).redIAdd(T),m=K.redISub(H).redISub(H),p=B.redMul(H.redISub(m)).redISub(T),x=(x=this.y.redMul(this.z)).redIAdd(x)}return this.curve.jpoint(m,p,x)},h.prototype._threeDbl=function(){var m,p,x;if(this.zOne){var g=this.x.redSqr(),y=this.y.redSqr(),v=y.redSqr(),_=this.x.redAdd(y).redSqr().redISub(g).redISub(v);_=_.redIAdd(_);var S=g.redAdd(g).redIAdd(g).redIAdd(this.curve.a),A=S.redSqr().redISub(_).redISub(_);m=A;var I=v.redIAdd(v);I=(I=I.redIAdd(I)).redIAdd(I),p=S.redMul(_.redISub(A)).redISub(I),x=this.y.redAdd(this.y)}else{var V=this.z.redSqr(),F=this.y.redSqr(),q=this.x.redMul(F),H=this.x.redSub(V).redMul(this.x.redAdd(V));H=H.redAdd(H).redIAdd(H);var B=q.redIAdd(q),K=(B=B.redIAdd(B)).redAdd(B);m=H.redSqr().redISub(K),x=this.y.redAdd(this.z).redSqr().redISub(F).redISub(V);var T=F.redSqr();T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T),p=H.redMul(B.redISub(m)).redISub(T)}return this.curve.jpoint(m,p,x)},h.prototype._dbl=function(){var m=this.curve.a,p=this.x,x=this.y,g=this.z,y=g.redSqr().redSqr(),v=p.redSqr(),_=x.redSqr(),S=v.redAdd(v).redIAdd(v).redIAdd(m.redMul(y)),A=p.redAdd(p),I=(A=A.redIAdd(A)).redMul(_),V=S.redSqr().redISub(I.redAdd(I)),F=I.redISub(V),q=_.redSqr();q=(q=(q=q.redIAdd(q)).redIAdd(q)).redIAdd(q);var H=S.redMul(F).redISub(q),B=x.redAdd(x).redMul(g);return this.curve.jpoint(V,H,B)},h.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var m=this.x.redSqr(),p=this.y.redSqr(),x=this.z.redSqr(),g=p.redSqr(),y=m.redAdd(m).redIAdd(m),v=y.redSqr(),_=this.x.redAdd(p).redSqr().redISub(m).redISub(g),S=(_=(_=(_=_.redIAdd(_)).redAdd(_).redIAdd(_)).redISub(v)).redSqr(),A=g.redIAdd(g);A=(A=(A=A.redIAdd(A)).redIAdd(A)).redIAdd(A);var I=y.redIAdd(_).redSqr().redISub(v).redISub(S).redISub(A),V=p.redMul(I);V=(V=V.redIAdd(V)).redIAdd(V);var F=this.x.redMul(S).redISub(V);F=(F=F.redIAdd(F)).redIAdd(F);var q=this.y.redMul(I.redMul(A.redISub(I)).redISub(_.redMul(S)));q=(q=(q=q.redIAdd(q)).redIAdd(q)).redIAdd(q);var H=this.z.redAdd(_).redSqr().redISub(x).redISub(S);return this.curve.jpoint(F,q,H)},h.prototype.mul=function(m,p){return m=new l(m,p),this.curve._wnafMul(this,m)},h.prototype.eq=function(m){if(m.type===&quot;affine&quot;)return this.eq(m.toJ());if(this===m)return!0;var p=this.z.redSqr(),x=m.z.redSqr();if(this.x.redMul(x).redISub(m.x.redMul(p)).cmpn(0)!==0)return!1;var g=p.redMul(this.z),y=x.redMul(m.z);return this.y.redMul(y).redISub(m.y.redMul(g)).cmpn(0)===0},h.prototype.eqXToP=function(m){var p=this.z.redSqr(),x=m.toRed(this.curve.red).redMul(p);if(this.x.cmp(x)===0)return!0;for(var g=m.clone(),y=this.curve.redN.redMul(p);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)&gt;=0)return!1;if(x.redIAdd(y),this.x.cmp(x)===0)return!0}},h.prototype.inspect=function(){return this.isInfinity()?&quot;&lt;EC JPoint Infinity&gt;&quot;:&quot;&lt;EC JPoint x: &quot;+this.x.toString(16,2)+&quot; y: &quot;+this.y.toString(16,2)+&quot; z: &quot;+this.z.toString(16,2)+&quot;&gt;&quot;},h.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{&quot;../utils&quot;:419,&quot;./base&quot;:406,&quot;bn.js&quot;:420,inherits:440}],411:[function(t,n,o){var s,l=o,u=t(&quot;hash.js&quot;),c=t(&quot;./curve&quot;),a=t(&quot;./utils&quot;).assert;function d(h){h.type===&quot;short&quot;?this.curve=new c.short(h):h.type===&quot;edwards&quot;?this.curve=new c.edwards(h):this.curve=new c.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,a(this.g.validate(),&quot;Invalid curve&quot;),a(this.g.mul(this.n).isInfinity(),&quot;Invalid curve, G*N != O&quot;)}function f(h,m){Object.defineProperty(l,h,{configurable:!0,enumerable:!0,get:function(){var p=new d(m);return Object.defineProperty(l,h,{configurable:!0,enumerable:!0,value:p}),p}})}l.PresetCurve=d,f(&quot;p192&quot;,{type:&quot;short&quot;,prime:&quot;p192&quot;,p:&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;,a:&quot;ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc&quot;,b:&quot;64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1&quot;,n:&quot;ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831&quot;,hash:u.sha256,gRed:!1,g:[&quot;188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012&quot;,&quot;07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811&quot;]}),f(&quot;p224&quot;,{type:&quot;short&quot;,prime:&quot;p224&quot;,p:&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;,a:&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe&quot;,b:&quot;b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4&quot;,n:&quot;ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d&quot;,hash:u.sha256,gRed:!1,g:[&quot;b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21&quot;,&quot;bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34&quot;]}),f(&quot;p256&quot;,{type:&quot;short&quot;,prime:null,p:&quot;ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff&quot;,a:&quot;ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc&quot;,b:&quot;5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b&quot;,n:&quot;ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551&quot;,hash:u.sha256,gRed:!1,g:[&quot;6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296&quot;,&quot;4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5&quot;]}),f(&quot;p384&quot;,{type:&quot;short&quot;,prime:null,p:&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff&quot;,a:&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc&quot;,b:&quot;b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef&quot;,n:&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973&quot;,hash:u.sha384,gRed:!1,g:[&quot;aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7&quot;,&quot;3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f&quot;]}),f(&quot;p521&quot;,{type:&quot;short&quot;,prime:null,p:&quot;000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff&quot;,a:&quot;000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc&quot;,b:&quot;00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00&quot;,n:&quot;000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409&quot;,hash:u.sha512,gRed:!1,g:[&quot;000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66&quot;,&quot;00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650&quot;]}),f(&quot;curve25519&quot;,{type:&quot;mont&quot;,prime:&quot;p25519&quot;,p:&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;,a:&quot;76d06&quot;,b:&quot;1&quot;,n:&quot;1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed&quot;,hash:u.sha256,gRed:!1,g:[&quot;9&quot;]}),f(&quot;ed25519&quot;,{type:&quot;edwards&quot;,prime:&quot;p25519&quot;,p:&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;,a:&quot;-1&quot;,c:&quot;1&quot;,d:&quot;52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3&quot;,n:&quot;1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed&quot;,hash:u.sha256,gRed:!1,g:[&quot;216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a&quot;,&quot;6666666666666666666666666666666666666666666666666666666666666658&quot;]});try{s=t(&quot;./precomputed/secp256k1&quot;)}catch{s=void 0}f(&quot;secp256k1&quot;,{type:&quot;short&quot;,prime:&quot;k256&quot;,p:&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;,a:&quot;0&quot;,b:&quot;7&quot;,n:&quot;ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141&quot;,h:&quot;1&quot;,hash:u.sha256,beta:&quot;7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee&quot;,lambda:&quot;5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72&quot;,basis:[{a:&quot;3086d221a7d46bcde86c90e49284eb15&quot;,b:&quot;-e4437ed6010e88286f547fa90abfe4c3&quot;},{a:&quot;114ca50f7a8e2f3f657c1108d9d44cfd8&quot;,b:&quot;3086d221a7d46bcde86c90e49284eb15&quot;}],gRed:!1,g:[&quot;79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798&quot;,&quot;483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8&quot;,s]})},{&quot;./curve&quot;:408,&quot;./precomputed/secp256k1&quot;:418,&quot;./utils&quot;:419,&quot;hash.js&quot;:426}],412:[function(t,n,o){var s=t(&quot;bn.js&quot;),l=t(&quot;hmac-drbg&quot;),u=t(&quot;../utils&quot;),c=t(&quot;../curves&quot;),a=t(&quot;brorand&quot;),d=u.assert,f=t(&quot;./key&quot;),h=t(&quot;./signature&quot;);function m(p){if(!(this instanceof m))return new m(p);typeof p==&quot;string&quot;&amp;&amp;(d(Object.prototype.hasOwnProperty.call(c,p),&quot;Unknown curve &quot;+p),p=c[p]),p instanceof c.PresetCurve&amp;&amp;(p={curve:p}),this.curve=p.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=p.curve.g,this.g.precompute(p.curve.n.bitLength()+1),this.hash=p.hash||p.curve.hash}n.exports=m,m.prototype.keyPair=function(p){return new f(this,p)},m.prototype.keyFromPrivate=function(p,x){return f.fromPrivate(this,p,x)},m.prototype.keyFromPublic=function(p,x){return f.fromPublic(this,p,x)},m.prototype.genKeyPair=function(p){p||(p={});for(var x=new l({hash:this.hash,pers:p.pers,persEnc:p.persEnc||&quot;utf8&quot;,entropy:p.entropy||a(this.hash.hmacStrength),entropyEnc:p.entropy&amp;&amp;p.entropyEnc||&quot;utf8&quot;,nonce:this.n.toArray()}),g=this.n.byteLength(),y=this.n.sub(new s(2));;){var v=new s(x.generate(g));if(!(v.cmp(y)&gt;0))return v.iaddn(1),this.keyFromPrivate(v)}},m.prototype._truncateToN=function(p,x){var g=8*p.byteLength()-this.n.bitLength();return g&gt;0&amp;&amp;(p=p.ushrn(g)),!x&amp;&amp;p.cmp(this.n)&gt;=0?p.sub(this.n):p},m.prototype.sign=function(p,x,g,y){typeof g==&quot;object&quot;&amp;&amp;(y=g,g=null),y||(y={}),x=this.keyFromPrivate(x,g),p=this._truncateToN(new s(p,16));for(var v=this.n.byteLength(),_=x.getPrivate().toArray(&quot;be&quot;,v),S=p.toArray(&quot;be&quot;,v),A=new l({hash:this.hash,entropy:_,nonce:S,pers:y.pers,persEnc:y.persEnc||&quot;utf8&quot;}),I=this.n.sub(new s(1)),V=0;;V++){var F=y.k?y.k(V):new s(A.generate(this.n.byteLength()));if(!((F=this._truncateToN(F,!0)).cmpn(1)&lt;=0||F.cmp(I)&gt;=0)){var q=this.g.mul(F);if(!q.isInfinity()){var H=q.getX(),B=H.umod(this.n);if(B.cmpn(0)!==0){var K=F.invm(this.n).mul(B.mul(x.getPrivate()).iadd(p));if((K=K.umod(this.n)).cmpn(0)!==0){var T=(q.getY().isOdd()?1:0)|(H.cmp(B)!==0?2:0);return y.canonical&amp;&amp;K.cmp(this.nh)&gt;0&amp;&amp;(K=this.n.sub(K),T^=1),new h({r:B,s:K,recoveryParam:T})}}}}}},m.prototype.verify=function(p,x,g,y){p=this._truncateToN(new s(p,16)),g=this.keyFromPublic(g,y);var v=(x=new h(x,&quot;hex&quot;)).r,_=x.s;if(v.cmpn(1)&lt;0||v.cmp(this.n)&gt;=0||_.cmpn(1)&lt;0||_.cmp(this.n)&gt;=0)return!1;var S,A=_.invm(this.n),I=A.mul(p).umod(this.n),V=A.mul(v).umod(this.n);return this.curve._maxwellTrick?!(S=this.g.jmulAdd(I,g.getPublic(),V)).isInfinity()&amp;&amp;S.eqXToP(v):!(S=this.g.mulAdd(I,g.getPublic(),V)).isInfinity()&amp;&amp;S.getX().umod(this.n).cmp(v)===0},m.prototype.recoverPubKey=function(p,x,g,y){d((3&amp;g)===g,&quot;The recovery param is more than two bits&quot;),x=new h(x,y);var v=this.n,_=new s(p),S=x.r,A=x.s,I=1&amp;g,V=g&gt;&gt;1;if(S.cmp(this.curve.p.umod(this.curve.n))&gt;=0&amp;&amp;V)throw new Error(&quot;Unable to find sencond key candinate&quot;);S=V?this.curve.pointFromX(S.add(this.curve.n),I):this.curve.pointFromX(S,I);var F=x.r.invm(v),q=v.sub(_).mul(F).umod(v),H=A.mul(F).umod(v);return this.g.mulAdd(q,S,H)},m.prototype.getKeyRecoveryParam=function(p,x,g,y){if((x=new h(x,y)).recoveryParam!==null)return x.recoveryParam;for(var v=0;v&lt;4;v++){var _;try{_=this.recoverPubKey(p,x,v)}catch{continue}if(_.eq(g))return v}throw new Error(&quot;Unable to find valid recovery factor&quot;)}},{&quot;../curves&quot;:411,&quot;../utils&quot;:419,&quot;./key&quot;:413,&quot;./signature&quot;:414,&quot;bn.js&quot;:420,brorand:187,&quot;hmac-drbg&quot;:438}],413:[function(t,n,o){var s=t(&quot;bn.js&quot;),l=t(&quot;../utils&quot;).assert;function u(c,a){this.ec=c,this.priv=null,this.pub=null,a.priv&amp;&amp;this._importPrivate(a.priv,a.privEnc),a.pub&amp;&amp;this._importPublic(a.pub,a.pubEnc)}n.exports=u,u.fromPublic=function(c,a,d){return a instanceof u?a:new u(c,{pub:a,pubEnc:d})},u.fromPrivate=function(c,a,d){return a instanceof u?a:new u(c,{priv:a,privEnc:d})},u.prototype.validate=function(){var c=this.getPublic();return c.isInfinity()?{result:!1,reason:&quot;Invalid public key&quot;}:c.validate()?c.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:&quot;Public key * N != O&quot;}:{result:!1,reason:&quot;Public key is not a point&quot;}},u.prototype.getPublic=function(c,a){return typeof c==&quot;string&quot;&amp;&amp;(a=c,c=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),a?this.pub.encode(a,c):this.pub},u.prototype.getPrivate=function(c){return c===&quot;hex&quot;?this.priv.toString(16,2):this.priv},u.prototype._importPrivate=function(c,a){this.priv=new s(c,a||16),this.priv=this.priv.umod(this.ec.curve.n)},u.prototype._importPublic=function(c,a){if(c.x||c.y)return this.ec.curve.type===&quot;mont&quot;?l(c.x,&quot;Need x coordinate&quot;):this.ec.curve.type!==&quot;short&quot;&amp;&amp;this.ec.curve.type!==&quot;edwards&quot;||l(c.x&amp;&amp;c.y,&quot;Need both x and y coordinate&quot;),void(this.pub=this.ec.curve.point(c.x,c.y));this.pub=this.ec.curve.decodePoint(c,a)},u.prototype.derive=function(c){return c.validate()||l(c.validate(),&quot;public point not validated&quot;),c.mul(this.priv).getX()},u.prototype.sign=function(c,a,d){return this.ec.sign(c,this,a,d)},u.prototype.verify=function(c,a){return this.ec.verify(c,a,this)},u.prototype.inspect=function(){return&quot;&lt;Key priv: &quot;+(this.priv&amp;&amp;this.priv.toString(16,2))+&quot; pub: &quot;+(this.pub&amp;&amp;this.pub.inspect())+&quot; &gt;&quot;}},{&quot;../utils&quot;:419,&quot;bn.js&quot;:420}],414:[function(t,n,o){var s=t(&quot;bn.js&quot;),l=t(&quot;../utils&quot;),u=l.assert;function c(m,p){if(m instanceof c)return m;this._importDER(m,p)||(u(m.r&amp;&amp;m.s,&quot;Signature without r or s&quot;),this.r=new s(m.r,16),this.s=new s(m.s,16),m.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=m.recoveryParam)}function a(){this.place=0}function d(m,p){var x=m[p.place++];if(!(128&amp;x))return x;var g=15&amp;x;if(g===0||g&gt;4)return!1;for(var y=0,v=0,_=p.place;v&lt;g;v++,_++)y&lt;&lt;=8,y|=m[_],y&gt;&gt;&gt;=0;return!(y&lt;=127)&amp;&amp;(p.place=_,y)}function f(m){for(var p=0,x=m.length-1;!m[p]&amp;&amp;!(128&amp;m[p+1])&amp;&amp;p&lt;x;)p++;return p===0?m:m.slice(p)}function h(m,p){if(p&lt;128)m.push(p);else{var x=1+(Math.log(p)/Math.LN2&gt;&gt;&gt;3);for(m.push(128|x);--x;)m.push(p&gt;&gt;&gt;(x&lt;&lt;3)&amp;255);m.push(p)}}n.exports=c,c.prototype._importDER=function(m,p){m=l.toArray(m,p);var x=new a;if(m[x.place++]!==48)return!1;var g=d(m,x);if(g===!1||g+x.place!==m.length||m[x.place++]!==2)return!1;var y=d(m,x);if(y===!1)return!1;var v=m.slice(x.place,y+x.place);if(x.place+=y,m[x.place++]!==2)return!1;var _=d(m,x);if(_===!1||m.length!==_+x.place)return!1;var S=m.slice(x.place,_+x.place);if(v[0]===0){if(!(128&amp;v[1]))return!1;v=v.slice(1)}if(S[0]===0){if(!(128&amp;S[1]))return!1;S=S.slice(1)}return this.r=new s(v),this.s=new s(S),this.recoveryParam=null,!0},c.prototype.toDER=function(m){var p=this.r.toArray(),x=this.s.toArray();for(128&amp;p[0]&amp;&amp;(p=[0].concat(p)),128&amp;x[0]&amp;&amp;(x=[0].concat(x)),p=f(p),x=f(x);!(x[0]||128&amp;x[1]);)x=x.slice(1);var g=[2];h(g,p.length),(g=g.concat(p)).push(2),h(g,x.length);var y=g.concat(x),v=[48];return h(v,y.length),v=v.concat(y),l.encode(v,m)}},{&quot;../utils&quot;:419,&quot;bn.js&quot;:420}],415:[function(t,n,o){var s=t(&quot;hash.js&quot;),l=t(&quot;../curves&quot;),u=t(&quot;../utils&quot;),c=u.assert,a=u.parseBytes,d=t(&quot;./key&quot;),f=t(&quot;./signature&quot;);function h(m){if(c(m===&quot;ed25519&quot;,&quot;only tested with ed25519 so far&quot;),!(this instanceof h))return new h(m);m=l[m].curve,this.curve=m,this.g=m.g,this.g.precompute(m.n.bitLength()+1),this.pointClass=m.point().constructor,this.encodingLength=Math.ceil(m.n.bitLength()/8),this.hash=s.sha512}n.exports=h,h.prototype.sign=function(m,p){m=a(m);var x=this.keyFromSecret(p),g=this.hashInt(x.messagePrefix(),m),y=this.g.mul(g),v=this.encodePoint(y),_=this.hashInt(v,x.pubBytes(),m).mul(x.priv()),S=g.add(_).umod(this.curve.n);return this.makeSignature({R:y,S,Rencoded:v})},h.prototype.verify=function(m,p,x){m=a(m),p=this.makeSignature(p);var g=this.keyFromPublic(x),y=this.hashInt(p.Rencoded(),g.pubBytes(),m),v=this.g.mul(p.S());return p.R().add(g.pub().mul(y)).eq(v)},h.prototype.hashInt=function(){for(var m=this.hash(),p=0;p&lt;arguments.length;p++)m.update(arguments[p]);return u.intFromLE(m.digest()).umod(this.curve.n)},h.prototype.keyFromPublic=function(m){return d.fromPublic(this,m)},h.prototype.keyFromSecret=function(m){return d.fromSecret(this,m)},h.prototype.makeSignature=function(m){return m instanceof f?m:new f(this,m)},h.prototype.encodePoint=function(m){var p=m.getY().toArray(&quot;le&quot;,this.encodingLength);return p[this.encodingLength-1]|=m.getX().isOdd()?128:0,p},h.prototype.decodePoint=function(m){var p=(m=u.parseBytes(m)).length-1,x=m.slice(0,p).concat(-129&amp;m[p]),g=(128&amp;m[p])!=0,y=u.intFromLE(x);return this.curve.pointFromY(y,g)},h.prototype.encodeInt=function(m){return m.toArray(&quot;le&quot;,this.encodingLength)},h.prototype.decodeInt=function(m){return u.intFromLE(m)},h.prototype.isPoint=function(m){return m instanceof this.pointClass}},{&quot;../curves&quot;:411,&quot;../utils&quot;:419,&quot;./key&quot;:416,&quot;./signature&quot;:417,&quot;hash.js&quot;:426}],416:[function(t,n,o){var s=t(&quot;../utils&quot;),l=s.assert,u=s.parseBytes,c=s.cachedProperty;function a(d,f){this.eddsa=d,this._secret=u(f.secret),d.isPoint(f.pub)?this._pub=f.pub:this._pubBytes=u(f.pub)}a.fromPublic=function(d,f){return f instanceof a?f:new a(d,{pub:f})},a.fromSecret=function(d,f){return f instanceof a?f:new a(d,{secret:f})},a.prototype.secret=function(){return this._secret},c(a,&quot;pubBytes&quot;,(function(){return this.eddsa.encodePoint(this.pub())})),c(a,&quot;pub&quot;,(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),c(a,&quot;privBytes&quot;,(function(){var d=this.eddsa,f=this.hash(),h=d.encodingLength-1,m=f.slice(0,d.encodingLength);return m[0]&amp;=248,m[h]&amp;=127,m[h]|=64,m})),c(a,&quot;priv&quot;,(function(){return this.eddsa.decodeInt(this.privBytes())})),c(a,&quot;hash&quot;,(function(){return this.eddsa.hash().update(this.secret()).digest()})),c(a,&quot;messagePrefix&quot;,(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(d){return l(this._secret,&quot;KeyPair can only verify&quot;),this.eddsa.sign(d,this)},a.prototype.verify=function(d,f){return this.eddsa.verify(d,f,this)},a.prototype.getSecret=function(d){return l(this._secret,&quot;KeyPair is public only&quot;),s.encode(this.secret(),d)},a.prototype.getPublic=function(d){return s.encode(this.pubBytes(),d)},n.exports=a},{&quot;../utils&quot;:419}],417:[function(t,n,o){var s=t(&quot;bn.js&quot;),l=t(&quot;../utils&quot;),u=l.assert,c=l.cachedProperty,a=l.parseBytes;function d(f,h){this.eddsa=f,typeof h!=&quot;object&quot;&amp;&amp;(h=a(h)),Array.isArray(h)&amp;&amp;(h={R:h.slice(0,f.encodingLength),S:h.slice(f.encodingLength)}),u(h.R&amp;&amp;h.S,&quot;Signature without R or S&quot;),f.isPoint(h.R)&amp;&amp;(this._R=h.R),h.S instanceof s&amp;&amp;(this._S=h.S),this._Rencoded=Array.isArray(h.R)?h.R:h.Rencoded,this._Sencoded=Array.isArray(h.S)?h.S:h.Sencoded}c(d,&quot;S&quot;,(function(){return this.eddsa.decodeInt(this.Sencoded())})),c(d,&quot;R&quot;,(function(){return this.eddsa.decodePoint(this.Rencoded())})),c(d,&quot;Rencoded&quot;,(function(){return this.eddsa.encodePoint(this.R())})),c(d,&quot;Sencoded&quot;,(function(){return this.eddsa.encodeInt(this.S())})),d.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},d.prototype.toHex=function(){return l.encode(this.toBytes(),&quot;hex&quot;).toUpperCase()},n.exports=d},{&quot;../utils&quot;:419,&quot;bn.js&quot;:420}],418:[function(t,n,o){n.exports={doubles:{step:4,points:[[&quot;e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a&quot;,&quot;f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821&quot;],[&quot;8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508&quot;,&quot;11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf&quot;],[&quot;175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739&quot;,&quot;d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695&quot;],[&quot;363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640&quot;,&quot;4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9&quot;],[&quot;8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c&quot;,&quot;4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36&quot;],[&quot;723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda&quot;,&quot;96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f&quot;],[&quot;eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa&quot;,&quot;5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999&quot;],[&quot;100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0&quot;,&quot;cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09&quot;],[&quot;e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d&quot;,&quot;9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d&quot;],[&quot;feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d&quot;,&quot;e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088&quot;],[&quot;da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1&quot;,&quot;9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d&quot;],[&quot;53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0&quot;,&quot;5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8&quot;],[&quot;8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047&quot;,&quot;10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a&quot;],[&quot;385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862&quot;,&quot;283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453&quot;],[&quot;6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7&quot;,&quot;7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160&quot;],[&quot;3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd&quot;,&quot;56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0&quot;],[&quot;85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83&quot;,&quot;7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6&quot;],[&quot;948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a&quot;,&quot;53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589&quot;],[&quot;6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8&quot;,&quot;bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17&quot;],[&quot;e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d&quot;,&quot;4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda&quot;],[&quot;e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725&quot;,&quot;7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd&quot;],[&quot;213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754&quot;,&quot;4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2&quot;],[&quot;4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c&quot;,&quot;17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6&quot;],[&quot;fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6&quot;,&quot;6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f&quot;],[&quot;76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39&quot;,&quot;c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01&quot;],[&quot;c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891&quot;,&quot;893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3&quot;],[&quot;d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b&quot;,&quot;febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f&quot;],[&quot;b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03&quot;,&quot;2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7&quot;],[&quot;e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d&quot;,&quot;eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78&quot;],[&quot;a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070&quot;,&quot;7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1&quot;],[&quot;90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4&quot;,&quot;e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150&quot;],[&quot;8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da&quot;,&quot;662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82&quot;],[&quot;e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11&quot;,&quot;1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc&quot;],[&quot;8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e&quot;,&quot;efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b&quot;],[&quot;e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41&quot;,&quot;2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51&quot;],[&quot;b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef&quot;,&quot;67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45&quot;],[&quot;d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8&quot;,&quot;db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120&quot;],[&quot;324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d&quot;,&quot;648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84&quot;],[&quot;4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96&quot;,&quot;35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d&quot;],[&quot;9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd&quot;,&quot;ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d&quot;],[&quot;6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5&quot;,&quot;9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8&quot;],[&quot;a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266&quot;,&quot;40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8&quot;],[&quot;7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71&quot;,&quot;34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac&quot;],[&quot;928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac&quot;,&quot;c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f&quot;],[&quot;85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751&quot;,&quot;1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962&quot;],[&quot;ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e&quot;,&quot;493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907&quot;],[&quot;827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241&quot;,&quot;c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec&quot;],[&quot;eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3&quot;,&quot;be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d&quot;],[&quot;e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f&quot;,&quot;4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414&quot;],[&quot;1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19&quot;,&quot;aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd&quot;],[&quot;146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be&quot;,&quot;b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0&quot;],[&quot;fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9&quot;,&quot;6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811&quot;],[&quot;da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2&quot;,&quot;8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1&quot;],[&quot;a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13&quot;,&quot;7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c&quot;],[&quot;174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c&quot;,&quot;ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73&quot;],[&quot;959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba&quot;,&quot;2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd&quot;],[&quot;d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151&quot;,&quot;e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405&quot;],[&quot;64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073&quot;,&quot;d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589&quot;],[&quot;8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458&quot;,&quot;38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e&quot;],[&quot;13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b&quot;,&quot;69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27&quot;],[&quot;bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366&quot;,&quot;d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1&quot;],[&quot;8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa&quot;,&quot;40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482&quot;],[&quot;8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0&quot;,&quot;620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945&quot;],[&quot;dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787&quot;,&quot;7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573&quot;],[&quot;f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e&quot;,&quot;ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82&quot;]]},naf:{wnd:7,points:[[&quot;f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9&quot;,&quot;388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672&quot;],[&quot;2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4&quot;,&quot;d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6&quot;],[&quot;5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc&quot;,&quot;6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da&quot;],[&quot;acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe&quot;,&quot;cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37&quot;],[&quot;774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb&quot;,&quot;d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b&quot;],[&quot;f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8&quot;,&quot;ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81&quot;],[&quot;d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e&quot;,&quot;581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58&quot;],[&quot;defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34&quot;,&quot;4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77&quot;],[&quot;2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c&quot;,&quot;85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a&quot;],[&quot;352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5&quot;,&quot;321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c&quot;],[&quot;2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f&quot;,&quot;2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67&quot;],[&quot;9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714&quot;,&quot;73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402&quot;],[&quot;daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729&quot;,&quot;a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55&quot;],[&quot;c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db&quot;,&quot;2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482&quot;],[&quot;6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4&quot;,&quot;e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82&quot;],[&quot;1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5&quot;,&quot;b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396&quot;],[&quot;605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479&quot;,&quot;2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49&quot;],[&quot;62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d&quot;,&quot;80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf&quot;],[&quot;80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f&quot;,&quot;1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a&quot;],[&quot;7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb&quot;,&quot;d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7&quot;],[&quot;d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9&quot;,&quot;eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933&quot;],[&quot;49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963&quot;,&quot;758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a&quot;],[&quot;77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74&quot;,&quot;958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6&quot;],[&quot;f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530&quot;,&quot;e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37&quot;],[&quot;463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b&quot;,&quot;5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e&quot;],[&quot;f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247&quot;,&quot;cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6&quot;],[&quot;caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1&quot;,&quot;cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476&quot;],[&quot;2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120&quot;,&quot;4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40&quot;],[&quot;7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435&quot;,&quot;91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61&quot;],[&quot;754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18&quot;,&quot;673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683&quot;],[&quot;e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8&quot;,&quot;59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5&quot;],[&quot;186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb&quot;,&quot;3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b&quot;],[&quot;df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f&quot;,&quot;55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417&quot;],[&quot;5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143&quot;,&quot;efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868&quot;],[&quot;290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba&quot;,&quot;e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a&quot;],[&quot;af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45&quot;,&quot;f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6&quot;],[&quot;766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a&quot;,&quot;744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996&quot;],[&quot;59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e&quot;,&quot;c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e&quot;],[&quot;f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8&quot;,&quot;e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d&quot;],[&quot;7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c&quot;,&quot;30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2&quot;],[&quot;948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519&quot;,&quot;e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e&quot;],[&quot;7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab&quot;,&quot;100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437&quot;],[&quot;3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca&quot;,&quot;ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311&quot;],[&quot;d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf&quot;,&quot;8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4&quot;],[&quot;1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610&quot;,&quot;68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575&quot;],[&quot;733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4&quot;,&quot;f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d&quot;],[&quot;15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c&quot;,&quot;d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d&quot;],[&quot;a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940&quot;,&quot;edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629&quot;],[&quot;e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980&quot;,&quot;a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06&quot;],[&quot;311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3&quot;,&quot;66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374&quot;],[&quot;34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf&quot;,&quot;9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee&quot;],[&quot;f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63&quot;,&quot;4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1&quot;],[&quot;d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448&quot;,&quot;fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b&quot;],[&quot;32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf&quot;,&quot;5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661&quot;],[&quot;7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5&quot;,&quot;8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6&quot;],[&quot;ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6&quot;,&quot;8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e&quot;],[&quot;16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5&quot;,&quot;5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d&quot;],[&quot;eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99&quot;,&quot;f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc&quot;],[&quot;78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51&quot;,&quot;f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4&quot;],[&quot;494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5&quot;,&quot;42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c&quot;],[&quot;a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5&quot;,&quot;204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b&quot;],[&quot;c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997&quot;,&quot;4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913&quot;],[&quot;841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881&quot;,&quot;73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154&quot;],[&quot;5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5&quot;,&quot;39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865&quot;],[&quot;36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66&quot;,&quot;d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc&quot;],[&quot;336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726&quot;,&quot;ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224&quot;],[&quot;8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede&quot;,&quot;6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e&quot;],[&quot;1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94&quot;,&quot;60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6&quot;],[&quot;85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31&quot;,&quot;3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511&quot;],[&quot;29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51&quot;,&quot;b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b&quot;],[&quot;a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252&quot;,&quot;ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2&quot;],[&quot;4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5&quot;,&quot;cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c&quot;],[&quot;d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b&quot;,&quot;6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3&quot;],[&quot;ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4&quot;,&quot;322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d&quot;],[&quot;af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f&quot;,&quot;6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700&quot;],[&quot;e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889&quot;,&quot;2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4&quot;],[&quot;591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246&quot;,&quot;b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196&quot;],[&quot;11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984&quot;,&quot;998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4&quot;],[&quot;3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a&quot;,&quot;b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257&quot;],[&quot;cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030&quot;,&quot;bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13&quot;],[&quot;c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197&quot;,&quot;6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096&quot;],[&quot;c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593&quot;,&quot;c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38&quot;],[&quot;a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef&quot;,&quot;21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f&quot;],[&quot;347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38&quot;,&quot;60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448&quot;],[&quot;da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a&quot;,&quot;49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a&quot;],[&quot;c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111&quot;,&quot;5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4&quot;],[&quot;4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502&quot;,&quot;7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437&quot;],[&quot;3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea&quot;,&quot;be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7&quot;],[&quot;cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26&quot;,&quot;8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d&quot;],[&quot;b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986&quot;,&quot;39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a&quot;],[&quot;d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e&quot;,&quot;62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54&quot;],[&quot;48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4&quot;,&quot;25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77&quot;],[&quot;dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda&quot;,&quot;ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517&quot;],[&quot;6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859&quot;,&quot;cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10&quot;],[&quot;e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f&quot;,&quot;f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125&quot;],[&quot;eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c&quot;,&quot;6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e&quot;],[&quot;13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942&quot;,&quot;fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1&quot;],[&quot;ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a&quot;,&quot;1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2&quot;],[&quot;b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80&quot;,&quot;5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423&quot;],[&quot;ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d&quot;,&quot;438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8&quot;],[&quot;8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1&quot;,&quot;cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758&quot;],[&quot;52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63&quot;,&quot;c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375&quot;],[&quot;e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352&quot;,&quot;6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d&quot;],[&quot;7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193&quot;,&quot;ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec&quot;],[&quot;5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00&quot;,&quot;9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0&quot;],[&quot;32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58&quot;,&quot;ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c&quot;],[&quot;e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7&quot;,&quot;d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4&quot;],[&quot;8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8&quot;,&quot;c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f&quot;],[&quot;4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e&quot;,&quot;67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649&quot;],[&quot;3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d&quot;,&quot;cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826&quot;],[&quot;674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b&quot;,&quot;299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5&quot;],[&quot;d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f&quot;,&quot;f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87&quot;],[&quot;30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6&quot;,&quot;462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b&quot;],[&quot;be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297&quot;,&quot;62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc&quot;],[&quot;93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a&quot;,&quot;7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c&quot;],[&quot;b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c&quot;,&quot;ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f&quot;],[&quot;d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52&quot;,&quot;4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a&quot;],[&quot;d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb&quot;,&quot;bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46&quot;],[&quot;463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065&quot;,&quot;bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f&quot;],[&quot;7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917&quot;,&quot;603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03&quot;],[&quot;74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9&quot;,&quot;cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08&quot;],[&quot;30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3&quot;,&quot;553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8&quot;],[&quot;9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57&quot;,&quot;712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373&quot;],[&quot;176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66&quot;,&quot;ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3&quot;],[&quot;75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8&quot;,&quot;9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8&quot;],[&quot;809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721&quot;,&quot;9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1&quot;],[&quot;1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180&quot;,&quot;4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9&quot;]]}}},{}],419:[function(t,n,o){var s=o,l=t(&quot;bn.js&quot;),u=t(&quot;minimalistic-assert&quot;),c=t(&quot;minimalistic-crypto-utils&quot;);s.assert=u,s.toArray=c.toArray,s.zero2=c.zero2,s.toHex=c.toHex,s.encode=c.encode,s.getNAF=function(a,d,f){var h=new Array(Math.max(a.bitLength(),f)+1);h.fill(0);for(var m=1&lt;&lt;d+1,p=a.clone(),x=0;x&lt;h.length;x++){var g,y=p.andln(m-1);p.isOdd()?(g=y&gt;(m&gt;&gt;1)-1?(m&gt;&gt;1)-y:y,p.isubn(g)):g=0,h[x]=g,p.iushrn(1)}return h},s.getJSF=function(a,d){var f=[[],[]];a=a.clone(),d=d.clone();for(var h,m=0,p=0;a.cmpn(-m)&gt;0||d.cmpn(-p)&gt;0;){var x,g,y=a.andln(3)+m&amp;3,v=d.andln(3)+p&amp;3;y===3&amp;&amp;(y=-1),v===3&amp;&amp;(v=-1),x=(1&amp;y)==0?0:(h=a.andln(7)+m&amp;7)!==3&amp;&amp;h!==5||v!==2?y:-y,f[0].push(x),g=(1&amp;v)==0?0:(h=d.andln(7)+p&amp;7)!==3&amp;&amp;h!==5||y!==2?v:-v,f[1].push(g),2*m===x+1&amp;&amp;(m=1-m),2*p===g+1&amp;&amp;(p=1-p),a.iushrn(1),d.iushrn(1)}return f},s.cachedProperty=function(a,d,f){var h=&quot;_&quot;+d;a.prototype[d]=function(){return this[h]!==void 0?this[h]:this[h]=f.call(this)}},s.parseBytes=function(a){return typeof a==&quot;string&quot;?s.toArray(a,&quot;hex&quot;):a},s.intFromLE=function(a){return new l(a,&quot;hex&quot;,&quot;le&quot;)}},{&quot;bn.js&quot;:420,&quot;minimalistic-assert&quot;:453,&quot;minimalistic-crypto-utils&quot;:454}],420:[function(t,n,o){arguments[4][184][0].apply(o,arguments)},{buffer:188,dup:184}],421:[function(t,n,o){n.exports={name:&quot;elliptic&quot;,version:&quot;6.5.4&quot;,description:&quot;EC cryptography&quot;,main:&quot;lib/elliptic.js&quot;,files:[&quot;lib&quot;],scripts:{lint:&quot;eslint lib test&quot;,&quot;lint:fix&quot;:&quot;npm run lint -- --fix&quot;,unit:&quot;istanbul test _mocha --reporter=spec test/index.js&quot;,test:&quot;npm run lint &amp;&amp; npm run unit&quot;,version:&quot;grunt dist &amp;&amp; git add dist/&quot;},repository:{type:&quot;git&quot;,url:&quot;git@github.com:indutny/elliptic&quot;},keywords:[&quot;EC&quot;,&quot;Elliptic&quot;,&quot;curve&quot;,&quot;Cryptography&quot;],author:&quot;Fedor Indutny &lt;fedor@indutny.com&gt;&quot;,license:&quot;MIT&quot;,bugs:{url:&quot;https://github.com/indutny/elliptic/issues&quot;},homepage:&quot;https://github.com/indutny/elliptic&quot;,devDependencies:{brfs:&quot;^2.0.2&quot;,coveralls:&quot;^3.1.0&quot;,eslint:&quot;^7.6.0&quot;,grunt:&quot;^1.2.1&quot;,&quot;grunt-browserify&quot;:&quot;^5.3.0&quot;,&quot;grunt-cli&quot;:&quot;^1.3.2&quot;,&quot;grunt-contrib-connect&quot;:&quot;^3.0.0&quot;,&quot;grunt-contrib-copy&quot;:&quot;^1.0.0&quot;,&quot;grunt-contrib-uglify&quot;:&quot;^5.0.0&quot;,&quot;grunt-mocha-istanbul&quot;:&quot;^5.0.2&quot;,&quot;grunt-saucelabs&quot;:&quot;^9.0.1&quot;,istanbul:&quot;^0.4.5&quot;,mocha:&quot;^8.0.1&quot;},dependencies:{&quot;bn.js&quot;:&quot;^4.11.9&quot;,brorand:&quot;^1.1.0&quot;,&quot;hash.js&quot;:&quot;^1.0.0&quot;,&quot;hmac-drbg&quot;:&quot;^1.0.1&quot;,inherits:&quot;^2.0.4&quot;,&quot;minimalistic-assert&quot;:&quot;^1.0.1&quot;,&quot;minimalistic-crypto-utils&quot;:&quot;^1.0.1&quot;}}},{}],422:[function(t,n,o){var s=Object.create||function(F){var q=function(){};return q.prototype=F,new q},l=Object.keys||function(F){var q=[];for(var H in F)Object.prototype.hasOwnProperty.call(F,H)&amp;&amp;q.push(H);return H},u=Function.prototype.bind||function(F){var q=this;return function(){return q.apply(F,arguments)}};function c(){this._events&amp;&amp;Object.prototype.hasOwnProperty.call(this,&quot;_events&quot;)||(this._events=s(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}n.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._maxListeners=void 0;var a,d=10;try{var f={};Object.defineProperty&amp;&amp;Object.defineProperty(f,&quot;x&quot;,{value:0}),a=f.x===0}catch{a=!1}function h(F){return F._maxListeners===void 0?c.defaultMaxListeners:F._maxListeners}function m(F,q,H){if(q)F.call(H);else for(var B=F.length,K=V(F,B),T=0;T&lt;B;++T)K[T].call(H)}function p(F,q,H,B){if(q)F.call(H,B);else for(var K=F.length,T=V(F,K),L=0;L&lt;K;++L)T[L].call(H,B)}function x(F,q,H,B,K){if(q)F.call(H,B,K);else for(var T=F.length,L=V(F,T),E=0;E&lt;T;++E)L[E].call(H,B,K)}function g(F,q,H,B,K,T){if(q)F.call(H,B,K,T);else for(var L=F.length,E=V(F,L),j=0;j&lt;L;++j)E[j].call(H,B,K,T)}function y(F,q,H,B){if(q)F.apply(H,B);else for(var K=F.length,T=V(F,K),L=0;L&lt;K;++L)T[L].apply(H,B)}function v(F,q,H,B){var K,T,L;if(typeof H!=&quot;function&quot;)throw new TypeError(&#039;&quot;listener&quot; argument must be a function&#039;);if((T=F._events)?(T.newListener&amp;&amp;(F.emit(&quot;newListener&quot;,q,H.listener?H.listener:H),T=F._events),L=T[q]):(T=F._events=s(null),F._eventsCount=0),L){if(typeof L==&quot;function&quot;?L=T[q]=B?[H,L]:[L,H]:B?L.unshift(H):L.push(H),!L.warned&amp;&amp;(K=h(F))&amp;&amp;K&gt;0&amp;&amp;L.length&gt;K){L.warned=!0;var E=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+L.length+&#039; &quot;&#039;+String(q)+&#039;&quot; listeners added. Use emitter.setMaxListeners() to increase limit.&#039;);E.name=&quot;MaxListenersExceededWarning&quot;,E.emitter=F,E.type=q,E.count=L.length,typeof console==&quot;object&quot;&amp;&amp;console.warn&amp;&amp;console.warn(&quot;%s: %s&quot;,E.name,E.message)}}else L=T[q]=H,++F._eventsCount;return F}function _(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var F=new Array(arguments.length),q=0;q&lt;F.length;++q)F[q]=arguments[q];this.listener.apply(this.target,F)}}function S(F,q,H){var B={fired:!1,wrapFn:void 0,target:F,type:q,listener:H},K=u.call(_,B);return K.listener=H,B.wrapFn=K,K}function A(F,q,H){var B=F._events;if(!B)return[];var K=B[q];return K?typeof K==&quot;function&quot;?H?[K.listener||K]:[K]:H?(function(T){for(var L=new Array(T.length),E=0;E&lt;L.length;++E)L[E]=T[E].listener||T[E];return L})(K):V(K,K.length):[]}function I(F){var q=this._events;if(q){var H=q[F];if(typeof H==&quot;function&quot;)return 1;if(H)return H.length}return 0}function V(F,q){for(var H=new Array(q),B=0;B&lt;q;++B)H[B]=F[B];return H}a?Object.defineProperty(c,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return d},set:function(F){if(typeof F!=&quot;number&quot;||F&lt;0||F!=F)throw new TypeError(&#039;&quot;defaultMaxListeners&quot; must be a positive number&#039;);d=F}}):c.defaultMaxListeners=d,c.prototype.setMaxListeners=function(F){if(typeof F!=&quot;number&quot;||F&lt;0||isNaN(F))throw new TypeError(&#039;&quot;n&quot; argument must be a positive number&#039;);return this._maxListeners=F,this},c.prototype.getMaxListeners=function(){return h(this)},c.prototype.emit=function(F){var q,H,B,K,T,L,E=F===&quot;error&quot;;if(L=this._events)E=E&amp;&amp;L.error==null;else if(!E)return!1;if(E){if(arguments.length&gt;1&amp;&amp;(q=arguments[1]),q instanceof Error)throw q;var j=new Error(&#039;Unhandled &quot;error&quot; event. (&#039;+q+&quot;)&quot;);throw j.context=q,j}if(!(H=L[F]))return!1;var k=typeof H==&quot;function&quot;;switch(B=arguments.length){case 1:m(H,k,this);break;case 2:p(H,k,this,arguments[1]);break;case 3:x(H,k,this,arguments[1],arguments[2]);break;case 4:g(H,k,this,arguments[1],arguments[2],arguments[3]);break;default:for(K=new Array(B-1),T=1;T&lt;B;T++)K[T-1]=arguments[T];y(H,k,this,K)}return!0},c.prototype.addListener=function(F,q){return v(this,F,q,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(F,q){return v(this,F,q,!0)},c.prototype.once=function(F,q){if(typeof q!=&quot;function&quot;)throw new TypeError(&#039;&quot;listener&quot; argument must be a function&#039;);return this.on(F,S(this,F,q)),this},c.prototype.prependOnceListener=function(F,q){if(typeof q!=&quot;function&quot;)throw new TypeError(&#039;&quot;listener&quot; argument must be a function&#039;);return this.prependListener(F,S(this,F,q)),this},c.prototype.removeListener=function(F,q){var H,B,K,T,L;if(typeof q!=&quot;function&quot;)throw new TypeError(&#039;&quot;listener&quot; argument must be a function&#039;);if(!(B=this._events))return this;if(!(H=B[F]))return this;if(H===q||H.listener===q)--this._eventsCount==0?this._events=s(null):(delete B[F],B.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,F,H.listener||q));else if(typeof H!=&quot;function&quot;){for(K=-1,T=H.length-1;T&gt;=0;T--)if(H[T]===q||H[T].listener===q){L=H[T].listener,K=T;break}if(K&lt;0)return this;K===0?H.shift():(function(E,j){for(var k=j,N=k+1,C=E.length;N&lt;C;k+=1,N+=1)E[k]=E[N];E.pop()})(H,K),H.length===1&amp;&amp;(B[F]=H[0]),B.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,F,L||q)}return this},c.prototype.removeAllListeners=function(F){var q,H,B;if(!(H=this._events))return this;if(!H.removeListener)return arguments.length===0?(this._events=s(null),this._eventsCount=0):H[F]&amp;&amp;(--this._eventsCount==0?this._events=s(null):delete H[F]),this;if(arguments.length===0){var K,T=l(H);for(B=0;B&lt;T.length;++B)(K=T[B])!==&quot;removeListener&quot;&amp;&amp;this.removeAllListeners(K);return this.removeAllListeners(&quot;removeListener&quot;),this._events=s(null),this._eventsCount=0,this}if(typeof(q=H[F])==&quot;function&quot;)this.removeListener(F,q);else if(q)for(B=q.length-1;B&gt;=0;B--)this.removeListener(F,q[B]);return this},c.prototype.listeners=function(F){return A(this,F,!0)},c.prototype.rawListeners=function(F){return A(this,F,!1)},c.listenerCount=function(F,q){return typeof F.listenerCount==&quot;function&quot;?F.listenerCount(q):I.call(F,q)},c.prototype.listenerCount=I,c.prototype.eventNames=function(){return this._eventsCount&gt;0?Reflect.ownKeys(this._events):[]}},{}],423:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=t(&quot;md5.js&quot;);n.exports=function(u,c,a,d){if(s.isBuffer(u)||(u=s.from(u,&quot;binary&quot;)),c&amp;&amp;(s.isBuffer(c)||(c=s.from(c,&quot;binary&quot;)),c.length!==8))throw new RangeError(&quot;salt should be Buffer with 8 byte length&quot;);for(var f=a/8,h=s.alloc(f),m=s.alloc(d||0),p=s.alloc(0);f&gt;0||d&gt;0;){var x=new l;x.update(p),x.update(u),c&amp;&amp;x.update(c),p=x.digest();var g=0;if(f&gt;0){var y=h.length-f;g=Math.min(f,p.length),p.copy(h,y,0,g),f-=g}if(g&lt;p.length&amp;&amp;d&gt;0){var v=m.length-d,_=Math.min(d,p.length-g);p.copy(m,v,g,g+_),d-=_}}return p.fill(0),{key:h,iv:m}}},{&quot;md5.js&quot;:450,&quot;safe-buffer&quot;:494}],424:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.CsvParserStream=o.ParserOptions=o.parseFile=o.parseStream=o.parseString=o.parse=o.FormatterOptions=o.CsvFormatterStream=o.writeToPath=o.writeToString=o.writeToBuffer=o.writeToStream=o.write=o.format=void 0;var s=t(&quot;@fast-csv/format&quot;);Object.defineProperty(o,&quot;format&quot;,{enumerable:!0,get:function(){return s.format}}),Object.defineProperty(o,&quot;write&quot;,{enumerable:!0,get:function(){return s.write}}),Object.defineProperty(o,&quot;writeToStream&quot;,{enumerable:!0,get:function(){return s.writeToStream}}),Object.defineProperty(o,&quot;writeToBuffer&quot;,{enumerable:!0,get:function(){return s.writeToBuffer}}),Object.defineProperty(o,&quot;writeToString&quot;,{enumerable:!0,get:function(){return s.writeToString}}),Object.defineProperty(o,&quot;writeToPath&quot;,{enumerable:!0,get:function(){return s.writeToPath}}),Object.defineProperty(o,&quot;CsvFormatterStream&quot;,{enumerable:!0,get:function(){return s.CsvFormatterStream}}),Object.defineProperty(o,&quot;FormatterOptions&quot;,{enumerable:!0,get:function(){return s.FormatterOptions}});var l=t(&quot;@fast-csv/parse&quot;);Object.defineProperty(o,&quot;parse&quot;,{enumerable:!0,get:function(){return l.parse}}),Object.defineProperty(o,&quot;parseString&quot;,{enumerable:!0,get:function(){return l.parseString}}),Object.defineProperty(o,&quot;parseStream&quot;,{enumerable:!0,get:function(){return l.parseStream}}),Object.defineProperty(o,&quot;parseFile&quot;,{enumerable:!0,get:function(){return l.parseFile}}),Object.defineProperty(o,&quot;ParserOptions&quot;,{enumerable:!0,get:function(){return l.ParserOptions}}),Object.defineProperty(o,&quot;CsvParserStream&quot;,{enumerable:!0,get:function(){return l.CsvParserStream}})},{&quot;@fast-csv/format&quot;:151,&quot;@fast-csv/parse&quot;:155}],425:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=t(&quot;readable-stream&quot;).Transform;function u(c){l.call(this),this._block=s.allocUnsafe(c),this._blockSize=c,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}t(&quot;inherits&quot;)(u,l),u.prototype._transform=function(c,a,d){var f=null;try{this.update(c,a)}catch(h){f=h}d(f)},u.prototype._flush=function(c){var a=null;try{this.push(this.digest())}catch(d){a=d}c(a)},u.prototype.update=function(c,a){if((function(x,g){if(!s.isBuffer(x)&amp;&amp;typeof x!=&quot;string&quot;)throw new TypeError(g+&quot; must be a string or a buffer&quot;)})(c,&quot;Data&quot;),this._finalized)throw new Error(&quot;Digest already called&quot;);s.isBuffer(c)||(c=s.from(c,a));for(var d=this._block,f=0;this._blockOffset+c.length-f&gt;=this._blockSize;){for(var h=this._blockOffset;h&lt;this._blockSize;)d[h++]=c[f++];this._update(),this._blockOffset=0}for(;f&lt;c.length;)d[this._blockOffset++]=c[f++];for(var m=0,p=8*c.length;p&gt;0;++m)this._length[m]+=p,(p=this._length[m]/4294967296|0)&gt;0&amp;&amp;(this._length[m]-=4294967296*p);return this},u.prototype._update=function(){throw new Error(&quot;_update is not implemented&quot;)},u.prototype.digest=function(c){if(this._finalized)throw new Error(&quot;Digest already called&quot;);this._finalized=!0;var a=this._digest();c!==void 0&amp;&amp;(a=a.toString(c)),this._block.fill(0),this._blockOffset=0;for(var d=0;d&lt;4;++d)this._length[d]=0;return a},u.prototype._digest=function(){throw new Error(&quot;_digest is not implemented&quot;)},n.exports=u},{inherits:440,&quot;readable-stream&quot;:491,&quot;safe-buffer&quot;:494}],426:[function(t,n,o){var s=o;s.utils=t(&quot;./hash/utils&quot;),s.common=t(&quot;./hash/common&quot;),s.sha=t(&quot;./hash/sha&quot;),s.ripemd=t(&quot;./hash/ripemd&quot;),s.hmac=t(&quot;./hash/hmac&quot;),s.sha1=s.sha.sha1,s.sha256=s.sha.sha256,s.sha224=s.sha.sha224,s.sha384=s.sha.sha384,s.sha512=s.sha.sha512,s.ripemd160=s.ripemd.ripemd160},{&quot;./hash/common&quot;:427,&quot;./hash/hmac&quot;:428,&quot;./hash/ripemd&quot;:429,&quot;./hash/sha&quot;:430,&quot;./hash/utils&quot;:437}],427:[function(t,n,o){var s=t(&quot;./utils&quot;),l=t(&quot;minimalistic-assert&quot;);function u(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=&quot;big&quot;,this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}o.BlockHash=u,u.prototype.update=function(c,a){if(c=s.toArray(c,a),this.pending?this.pending=this.pending.concat(c):this.pending=c,this.pendingTotal+=c.length,this.pending.length&gt;=this._delta8){var d=(c=this.pending).length%this._delta8;this.pending=c.slice(c.length-d,c.length),this.pending.length===0&amp;&amp;(this.pending=null),c=s.join32(c,0,c.length-d,this.endian);for(var f=0;f&lt;c.length;f+=this._delta32)this._update(c,f,f+this._delta32)}return this},u.prototype.digest=function(c){return this.update(this._pad()),l(this.pending===null),this._digest(c)},u.prototype._pad=function(){var c=this.pendingTotal,a=this._delta8,d=a-(c+this.padLength)%a,f=new Array(d+this.padLength);f[0]=128;for(var h=1;h&lt;d;h++)f[h]=0;if(c&lt;&lt;=3,this.endian===&quot;big&quot;){for(var m=8;m&lt;this.padLength;m++)f[h++]=0;f[h++]=0,f[h++]=0,f[h++]=0,f[h++]=0,f[h++]=c&gt;&gt;&gt;24&amp;255,f[h++]=c&gt;&gt;&gt;16&amp;255,f[h++]=c&gt;&gt;&gt;8&amp;255,f[h++]=255&amp;c}else for(f[h++]=255&amp;c,f[h++]=c&gt;&gt;&gt;8&amp;255,f[h++]=c&gt;&gt;&gt;16&amp;255,f[h++]=c&gt;&gt;&gt;24&amp;255,f[h++]=0,f[h++]=0,f[h++]=0,f[h++]=0,m=8;m&lt;this.padLength;m++)f[h++]=0;return f}},{&quot;./utils&quot;:437,&quot;minimalistic-assert&quot;:453}],428:[function(t,n,o){var s=t(&quot;./utils&quot;),l=t(&quot;minimalistic-assert&quot;);function u(c,a,d){if(!(this instanceof u))return new u(c,a,d);this.Hash=c,this.blockSize=c.blockSize/8,this.outSize=c.outSize/8,this.inner=null,this.outer=null,this._init(s.toArray(a,d))}n.exports=u,u.prototype._init=function(c){c.length&gt;this.blockSize&amp;&amp;(c=new this.Hash().update(c).digest()),l(c.length&lt;=this.blockSize);for(var a=c.length;a&lt;this.blockSize;a++)c.push(0);for(a=0;a&lt;c.length;a++)c[a]^=54;for(this.inner=new this.Hash().update(c),a=0;a&lt;c.length;a++)c[a]^=106;this.outer=new this.Hash().update(c)},u.prototype.update=function(c,a){return this.inner.update(c,a),this},u.prototype.digest=function(c){return this.outer.update(this.inner.digest()),this.outer.digest(c)}},{&quot;./utils&quot;:437,&quot;minimalistic-assert&quot;:453}],429:[function(t,n,o){var s=t(&quot;./utils&quot;),l=t(&quot;./common&quot;),u=s.rotl32,c=s.sum32,a=s.sum32_3,d=s.sum32_4,f=l.BlockHash;function h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=&quot;little&quot;}function m(S,A,I,V){return S&lt;=15?A^I^V:S&lt;=31?A&amp;I|~A&amp;V:S&lt;=47?(A|~I)^V:S&lt;=63?A&amp;V|I&amp;~V:A^(I|~V)}function p(S){return S&lt;=15?0:S&lt;=31?1518500249:S&lt;=47?1859775393:S&lt;=63?2400959708:2840853838}function x(S){return S&lt;=15?1352829926:S&lt;=31?1548603684:S&lt;=47?1836072691:S&lt;=63?2053994217:0}s.inherits(h,f),o.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(S,A){for(var I=this.h[0],V=this.h[1],F=this.h[2],q=this.h[3],H=this.h[4],B=I,K=V,T=F,L=q,E=H,j=0;j&lt;80;j++){var k=c(u(d(I,m(j,V,F,q),S[g[j]+A],p(j)),v[j]),H);I=H,H=q,q=u(F,10),F=V,V=k,k=c(u(d(B,m(79-j,K,T,L),S[y[j]+A],x(j)),_[j]),E),B=E,E=L,L=u(T,10),T=K,K=k}k=a(this.h[1],F,L),this.h[1]=a(this.h[2],q,E),this.h[2]=a(this.h[3],H,B),this.h[3]=a(this.h[4],I,K),this.h[4]=a(this.h[0],V,T),this.h[0]=k},h.prototype._digest=function(S){return S===&quot;hex&quot;?s.toHex32(this.h,&quot;little&quot;):s.split32(this.h,&quot;little&quot;)};var g=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{&quot;./common&quot;:427,&quot;./utils&quot;:437}],430:[function(t,n,o){o.sha1=t(&quot;./sha/1&quot;),o.sha224=t(&quot;./sha/224&quot;),o.sha256=t(&quot;./sha/256&quot;),o.sha384=t(&quot;./sha/384&quot;),o.sha512=t(&quot;./sha/512&quot;)},{&quot;./sha/1&quot;:431,&quot;./sha/224&quot;:432,&quot;./sha/256&quot;:433,&quot;./sha/384&quot;:434,&quot;./sha/512&quot;:435}],431:[function(t,n,o){var s=t(&quot;../utils&quot;),l=t(&quot;../common&quot;),u=t(&quot;./common&quot;),c=s.rotl32,a=s.sum32,d=s.sum32_5,f=u.ft_1,h=l.BlockHash,m=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}s.inherits(p,h),n.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(x,g){for(var y=this.W,v=0;v&lt;16;v++)y[v]=x[g+v];for(;v&lt;y.length;v++)y[v]=c(y[v-3]^y[v-8]^y[v-14]^y[v-16],1);var _=this.h[0],S=this.h[1],A=this.h[2],I=this.h[3],V=this.h[4];for(v=0;v&lt;y.length;v++){var F=~~(v/20),q=d(c(_,5),f(F,S,A,I),V,y[v],m[F]);V=I,I=A,A=c(S,30),S=_,_=q}this.h[0]=a(this.h[0],_),this.h[1]=a(this.h[1],S),this.h[2]=a(this.h[2],A),this.h[3]=a(this.h[3],I),this.h[4]=a(this.h[4],V)},p.prototype._digest=function(x){return x===&quot;hex&quot;?s.toHex32(this.h,&quot;big&quot;):s.split32(this.h,&quot;big&quot;)}},{&quot;../common&quot;:427,&quot;../utils&quot;:437,&quot;./common&quot;:436}],432:[function(t,n,o){var s=t(&quot;../utils&quot;),l=t(&quot;./256&quot;);function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}s.inherits(u,l),n.exports=u,u.blockSize=512,u.outSize=224,u.hmacStrength=192,u.padLength=64,u.prototype._digest=function(c){return c===&quot;hex&quot;?s.toHex32(this.h.slice(0,7),&quot;big&quot;):s.split32(this.h.slice(0,7),&quot;big&quot;)}},{&quot;../utils&quot;:437,&quot;./256&quot;:433}],433:[function(t,n,o){var s=t(&quot;../utils&quot;),l=t(&quot;../common&quot;),u=t(&quot;./common&quot;),c=t(&quot;minimalistic-assert&quot;),a=s.sum32,d=s.sum32_4,f=s.sum32_5,h=u.ch32,m=u.maj32,p=u.s0_256,x=u.s1_256,g=u.g0_256,y=u.g1_256,v=l.BlockHash,_=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function S(){if(!(this instanceof S))return new S;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=_,this.W=new Array(64)}s.inherits(S,v),n.exports=S,S.blockSize=512,S.outSize=256,S.hmacStrength=192,S.padLength=64,S.prototype._update=function(A,I){for(var V=this.W,F=0;F&lt;16;F++)V[F]=A[I+F];for(;F&lt;V.length;F++)V[F]=d(y(V[F-2]),V[F-7],g(V[F-15]),V[F-16]);var q=this.h[0],H=this.h[1],B=this.h[2],K=this.h[3],T=this.h[4],L=this.h[5],E=this.h[6],j=this.h[7];for(c(this.k.length===V.length),F=0;F&lt;V.length;F++){var k=f(j,x(T),h(T,L,E),this.k[F],V[F]),N=a(p(q),m(q,H,B));j=E,E=L,L=T,T=a(K,k),K=B,B=H,H=q,q=a(k,N)}this.h[0]=a(this.h[0],q),this.h[1]=a(this.h[1],H),this.h[2]=a(this.h[2],B),this.h[3]=a(this.h[3],K),this.h[4]=a(this.h[4],T),this.h[5]=a(this.h[5],L),this.h[6]=a(this.h[6],E),this.h[7]=a(this.h[7],j)},S.prototype._digest=function(A){return A===&quot;hex&quot;?s.toHex32(this.h,&quot;big&quot;):s.split32(this.h,&quot;big&quot;)}},{&quot;../common&quot;:427,&quot;../utils&quot;:437,&quot;./common&quot;:436,&quot;minimalistic-assert&quot;:453}],434:[function(t,n,o){var s=t(&quot;../utils&quot;),l=t(&quot;./512&quot;);function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}s.inherits(u,l),n.exports=u,u.blockSize=1024,u.outSize=384,u.hmacStrength=192,u.padLength=128,u.prototype._digest=function(c){return c===&quot;hex&quot;?s.toHex32(this.h.slice(0,12),&quot;big&quot;):s.split32(this.h.slice(0,12),&quot;big&quot;)}},{&quot;../utils&quot;:437,&quot;./512&quot;:435}],435:[function(t,n,o){var s=t(&quot;../utils&quot;),l=t(&quot;../common&quot;),u=t(&quot;minimalistic-assert&quot;),c=s.rotr64_hi,a=s.rotr64_lo,d=s.shr64_hi,f=s.shr64_lo,h=s.sum64,m=s.sum64_hi,p=s.sum64_lo,x=s.sum64_4_hi,g=s.sum64_4_lo,y=s.sum64_5_hi,v=s.sum64_5_lo,_=l.BlockHash,S=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function A(){if(!(this instanceof A))return new A;_.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=S,this.W=new Array(160)}function I(N,C,P,D,z){var Y=N&amp;P^~N&amp;z;return Y&lt;0&amp;&amp;(Y+=4294967296),Y}function V(N,C,P,D,z,Y){var Z=C&amp;D^~C&amp;Y;return Z&lt;0&amp;&amp;(Z+=4294967296),Z}function F(N,C,P,D,z){var Y=N&amp;P^N&amp;z^P&amp;z;return Y&lt;0&amp;&amp;(Y+=4294967296),Y}function q(N,C,P,D,z,Y){var Z=C&amp;D^C&amp;Y^D&amp;Y;return Z&lt;0&amp;&amp;(Z+=4294967296),Z}function H(N,C){var P=c(N,C,28)^c(C,N,2)^c(C,N,7);return P&lt;0&amp;&amp;(P+=4294967296),P}function B(N,C){var P=a(N,C,28)^a(C,N,2)^a(C,N,7);return P&lt;0&amp;&amp;(P+=4294967296),P}function K(N,C){var P=c(N,C,14)^c(N,C,18)^c(C,N,9);return P&lt;0&amp;&amp;(P+=4294967296),P}function T(N,C){var P=a(N,C,14)^a(N,C,18)^a(C,N,9);return P&lt;0&amp;&amp;(P+=4294967296),P}function L(N,C){var P=c(N,C,1)^c(N,C,8)^d(N,C,7);return P&lt;0&amp;&amp;(P+=4294967296),P}function E(N,C){var P=a(N,C,1)^a(N,C,8)^f(N,C,7);return P&lt;0&amp;&amp;(P+=4294967296),P}function j(N,C){var P=c(N,C,19)^c(C,N,29)^d(N,C,6);return P&lt;0&amp;&amp;(P+=4294967296),P}function k(N,C){var P=a(N,C,19)^a(C,N,29)^f(N,C,6);return P&lt;0&amp;&amp;(P+=4294967296),P}s.inherits(A,_),n.exports=A,A.blockSize=1024,A.outSize=512,A.hmacStrength=192,A.padLength=128,A.prototype._prepareBlock=function(N,C){for(var P=this.W,D=0;D&lt;32;D++)P[D]=N[C+D];for(;D&lt;P.length;D+=2){var z=j(P[D-4],P[D-3]),Y=k(P[D-4],P[D-3]),Z=P[D-14],ne=P[D-13],U=L(P[D-30],P[D-29]),J=E(P[D-30],P[D-29]),$=P[D-32],R=P[D-31];P[D]=x(z,Y,Z,ne,U,J,$,R),P[D+1]=g(z,Y,Z,ne,U,J,$,R)}},A.prototype._update=function(N,C){this._prepareBlock(N,C);var P=this.W,D=this.h[0],z=this.h[1],Y=this.h[2],Z=this.h[3],ne=this.h[4],U=this.h[5],J=this.h[6],$=this.h[7],R=this.h[8],X=this.h[9],re=this.h[10],Q=this.h[11],te=this.h[12],ie=this.h[13],de=this.h[14],ce=this.h[15];u(this.k.length===P.length);for(var se=0;se&lt;P.length;se+=2){var fe=de,le=ce,ge=K(R,X),xe=T(R,X),pe=I(R,X,re,Q,te),ue=V(R,X,re,Q,te,ie),we=this.k[se],ke=this.k[se+1],De=P[se],Le=P[se+1],ze=y(fe,le,ge,xe,pe,ue,we,ke,De,Le),Oe=v(fe,le,ge,xe,pe,ue,we,ke,De,Le);fe=H(D,z),le=B(D,z),ge=F(D,z,Y,Z,ne),xe=q(D,z,Y,Z,ne,U);var Ve=m(fe,le,ge,xe),Qe=p(fe,le,ge,xe);de=te,ce=ie,te=re,ie=Q,re=R,Q=X,R=m(J,$,ze,Oe),X=p($,$,ze,Oe),J=ne,$=U,ne=Y,U=Z,Y=D,Z=z,D=m(ze,Oe,Ve,Qe),z=p(ze,Oe,Ve,Qe)}h(this.h,0,D,z),h(this.h,2,Y,Z),h(this.h,4,ne,U),h(this.h,6,J,$),h(this.h,8,R,X),h(this.h,10,re,Q),h(this.h,12,te,ie),h(this.h,14,de,ce)},A.prototype._digest=function(N){return N===&quot;hex&quot;?s.toHex32(this.h,&quot;big&quot;):s.split32(this.h,&quot;big&quot;)}},{&quot;../common&quot;:427,&quot;../utils&quot;:437,&quot;minimalistic-assert&quot;:453}],436:[function(t,n,o){var s=t(&quot;../utils&quot;).rotr32;function l(a,d,f){return a&amp;d^~a&amp;f}function u(a,d,f){return a&amp;d^a&amp;f^d&amp;f}function c(a,d,f){return a^d^f}o.ft_1=function(a,d,f,h){return a===0?l(d,f,h):a===1||a===3?c(d,f,h):a===2?u(d,f,h):void 0},o.ch32=l,o.maj32=u,o.p32=c,o.s0_256=function(a){return s(a,2)^s(a,13)^s(a,22)},o.s1_256=function(a){return s(a,6)^s(a,11)^s(a,25)},o.g0_256=function(a){return s(a,7)^s(a,18)^a&gt;&gt;&gt;3},o.g1_256=function(a){return s(a,17)^s(a,19)^a&gt;&gt;&gt;10}},{&quot;../utils&quot;:437}],437:[function(t,n,o){var s=t(&quot;minimalistic-assert&quot;),l=t(&quot;inherits&quot;);function u(f,h){return(64512&amp;f.charCodeAt(h))==55296&amp;&amp;!(h&lt;0||h+1&gt;=f.length)&amp;&amp;(64512&amp;f.charCodeAt(h+1))==56320}function c(f){return(f&gt;&gt;&gt;24|f&gt;&gt;&gt;8&amp;65280|f&lt;&lt;8&amp;16711680|(255&amp;f)&lt;&lt;24)&gt;&gt;&gt;0}function a(f){return f.length===1?&quot;0&quot;+f:f}function d(f){return f.length===7?&quot;0&quot;+f:f.length===6?&quot;00&quot;+f:f.length===5?&quot;000&quot;+f:f.length===4?&quot;0000&quot;+f:f.length===3?&quot;00000&quot;+f:f.length===2?&quot;000000&quot;+f:f.length===1?&quot;0000000&quot;+f:f}o.inherits=l,o.toArray=function(f,h){if(Array.isArray(f))return f.slice();if(!f)return[];var m=[];if(typeof f==&quot;string&quot;)if(h){if(h===&quot;hex&quot;)for((f=f.replace(/[^a-z0-9]+/gi,&quot;&quot;)).length%2!=0&amp;&amp;(f=&quot;0&quot;+f),x=0;x&lt;f.length;x+=2)m.push(parseInt(f[x]+f[x+1],16))}else for(var p=0,x=0;x&lt;f.length;x++){var g=f.charCodeAt(x);g&lt;128?m[p++]=g:g&lt;2048?(m[p++]=g&gt;&gt;6|192,m[p++]=63&amp;g|128):u(f,x)?(g=65536+((1023&amp;g)&lt;&lt;10)+(1023&amp;f.charCodeAt(++x)),m[p++]=g&gt;&gt;18|240,m[p++]=g&gt;&gt;12&amp;63|128,m[p++]=g&gt;&gt;6&amp;63|128,m[p++]=63&amp;g|128):(m[p++]=g&gt;&gt;12|224,m[p++]=g&gt;&gt;6&amp;63|128,m[p++]=63&amp;g|128)}else for(x=0;x&lt;f.length;x++)m[x]=0|f[x];return m},o.toHex=function(f){for(var h=&quot;&quot;,m=0;m&lt;f.length;m++)h+=a(f[m].toString(16));return h},o.htonl=c,o.toHex32=function(f,h){for(var m=&quot;&quot;,p=0;p&lt;f.length;p++){var x=f[p];h===&quot;little&quot;&amp;&amp;(x=c(x)),m+=d(x.toString(16))}return m},o.zero2=a,o.zero8=d,o.join32=function(f,h,m,p){var x=m-h;s(x%4==0);for(var g=new Array(x/4),y=0,v=h;y&lt;g.length;y++,v+=4){var _;_=p===&quot;big&quot;?f[v]&lt;&lt;24|f[v+1]&lt;&lt;16|f[v+2]&lt;&lt;8|f[v+3]:f[v+3]&lt;&lt;24|f[v+2]&lt;&lt;16|f[v+1]&lt;&lt;8|f[v],g[y]=_&gt;&gt;&gt;0}return g},o.split32=function(f,h){for(var m=new Array(4*f.length),p=0,x=0;p&lt;f.length;p++,x+=4){var g=f[p];h===&quot;big&quot;?(m[x]=g&gt;&gt;&gt;24,m[x+1]=g&gt;&gt;&gt;16&amp;255,m[x+2]=g&gt;&gt;&gt;8&amp;255,m[x+3]=255&amp;g):(m[x+3]=g&gt;&gt;&gt;24,m[x+2]=g&gt;&gt;&gt;16&amp;255,m[x+1]=g&gt;&gt;&gt;8&amp;255,m[x]=255&amp;g)}return m},o.rotr32=function(f,h){return f&gt;&gt;&gt;h|f&lt;&lt;32-h},o.rotl32=function(f,h){return f&lt;&lt;h|f&gt;&gt;&gt;32-h},o.sum32=function(f,h){return f+h&gt;&gt;&gt;0},o.sum32_3=function(f,h,m){return f+h+m&gt;&gt;&gt;0},o.sum32_4=function(f,h,m,p){return f+h+m+p&gt;&gt;&gt;0},o.sum32_5=function(f,h,m,p,x){return f+h+m+p+x&gt;&gt;&gt;0},o.sum64=function(f,h,m,p){var x=f[h],g=p+f[h+1]&gt;&gt;&gt;0,y=(g&lt;p?1:0)+m+x;f[h]=y&gt;&gt;&gt;0,f[h+1]=g},o.sum64_hi=function(f,h,m,p){return(h+p&gt;&gt;&gt;0&lt;h?1:0)+f+m&gt;&gt;&gt;0},o.sum64_lo=function(f,h,m,p){return h+p&gt;&gt;&gt;0},o.sum64_4_hi=function(f,h,m,p,x,g,y,v){var _=0,S=h;return _+=(S=S+p&gt;&gt;&gt;0)&lt;h?1:0,_+=(S=S+g&gt;&gt;&gt;0)&lt;g?1:0,f+m+x+y+(_+=(S=S+v&gt;&gt;&gt;0)&lt;v?1:0)&gt;&gt;&gt;0},o.sum64_4_lo=function(f,h,m,p,x,g,y,v){return h+p+g+v&gt;&gt;&gt;0},o.sum64_5_hi=function(f,h,m,p,x,g,y,v,_,S){var A=0,I=h;return A+=(I=I+p&gt;&gt;&gt;0)&lt;h?1:0,A+=(I=I+g&gt;&gt;&gt;0)&lt;g?1:0,A+=(I=I+v&gt;&gt;&gt;0)&lt;v?1:0,f+m+x+y+_+(A+=(I=I+S&gt;&gt;&gt;0)&lt;S?1:0)&gt;&gt;&gt;0},o.sum64_5_lo=function(f,h,m,p,x,g,y,v,_,S){return h+p+g+v+S&gt;&gt;&gt;0},o.rotr64_hi=function(f,h,m){return(h&lt;&lt;32-m|f&gt;&gt;&gt;m)&gt;&gt;&gt;0},o.rotr64_lo=function(f,h,m){return(f&lt;&lt;32-m|h&gt;&gt;&gt;m)&gt;&gt;&gt;0},o.shr64_hi=function(f,h,m){return f&gt;&gt;&gt;m},o.shr64_lo=function(f,h,m){return(f&lt;&lt;32-m|h&gt;&gt;&gt;m)&gt;&gt;&gt;0}},{inherits:440,&quot;minimalistic-assert&quot;:453}],438:[function(t,n,o){var s=t(&quot;hash.js&quot;),l=t(&quot;minimalistic-crypto-utils&quot;),u=t(&quot;minimalistic-assert&quot;);function c(a){if(!(this instanceof c))return new c(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var d=l.toArray(a.entropy,a.entropyEnc||&quot;hex&quot;),f=l.toArray(a.nonce,a.nonceEnc||&quot;hex&quot;),h=l.toArray(a.pers,a.persEnc||&quot;hex&quot;);u(d.length&gt;=this.minEntropy/8,&quot;Not enough entropy. Minimum is: &quot;+this.minEntropy+&quot; bits&quot;),this._init(d,f,h)}n.exports=c,c.prototype._init=function(a,d,f){var h=a.concat(d).concat(f);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var m=0;m&lt;this.V.length;m++)this.K[m]=0,this.V[m]=1;this._update(h),this._reseed=1,this.reseedInterval=281474976710656},c.prototype._hmac=function(){return new s.hmac(this.hash,this.K)},c.prototype._update=function(a){var d=this._hmac().update(this.V).update([0]);a&amp;&amp;(d=d.update(a)),this.K=d.digest(),this.V=this._hmac().update(this.V).digest(),a&amp;&amp;(this.K=this._hmac().update(this.V).update([1]).update(a).digest(),this.V=this._hmac().update(this.V).digest())},c.prototype.reseed=function(a,d,f,h){typeof d!=&quot;string&quot;&amp;&amp;(h=f,f=d,d=null),a=l.toArray(a,d),f=l.toArray(f,h),u(a.length&gt;=this.minEntropy/8,&quot;Not enough entropy. Minimum is: &quot;+this.minEntropy+&quot; bits&quot;),this._update(a.concat(f||[])),this._reseed=1},c.prototype.generate=function(a,d,f,h){if(this._reseed&gt;this.reseedInterval)throw new Error(&quot;Reseed is required&quot;);typeof d!=&quot;string&quot;&amp;&amp;(h=f,f=d,d=null),f&amp;&amp;(f=l.toArray(f,h||&quot;hex&quot;),this._update(f));for(var m=[];m.length&lt;a;)this.V=this._hmac().update(this.V).digest(),m=m.concat(this.V);var p=m.slice(0,a);return this._update(f),this._reseed++,l.encode(p,d)}},{&quot;hash.js&quot;:426,&quot;minimalistic-assert&quot;:453,&quot;minimalistic-crypto-utils&quot;:454}],439:[function(t,n,o){o.read=function(s,l,u,c,a){var d,f,h=8*a-c-1,m=(1&lt;&lt;h)-1,p=m&gt;&gt;1,x=-7,g=u?a-1:0,y=u?-1:1,v=s[l+g];for(g+=y,d=v&amp;(1&lt;&lt;-x)-1,v&gt;&gt;=-x,x+=h;x&gt;0;d=256*d+s[l+g],g+=y,x-=8);for(f=d&amp;(1&lt;&lt;-x)-1,d&gt;&gt;=-x,x+=c;x&gt;0;f=256*f+s[l+g],g+=y,x-=8);if(d===0)d=1-p;else{if(d===m)return f?NaN:1/0*(v?-1:1);f+=Math.pow(2,c),d-=p}return(v?-1:1)*f*Math.pow(2,d-c)},o.write=function(s,l,u,c,a,d){var f,h,m,p=8*d-a-1,x=(1&lt;&lt;p)-1,g=x&gt;&gt;1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=c?0:d-1,_=c?1:-1,S=l&lt;0||l===0&amp;&amp;1/l&lt;0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(h=isNaN(l)?1:0,f=x):(f=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-f))&lt;1&amp;&amp;(f--,m*=2),(l+=f+g&gt;=1?y/m:y*Math.pow(2,1-g))*m&gt;=2&amp;&amp;(f++,m/=2),f+g&gt;=x?(h=0,f=x):f+g&gt;=1?(h=(l*m-1)*Math.pow(2,a),f+=g):(h=l*Math.pow(2,g-1)*Math.pow(2,a),f=0));a&gt;=8;s[u+v]=255&amp;h,v+=_,h/=256,a-=8);for(f=f&lt;&lt;a|h,p+=a;p&gt;0;s[u+v]=255&amp;f,v+=_,f/=256,p-=8);s[u+v-_]|=128*S}},{}],440:[function(t,n,o){typeof Object.create==&quot;function&quot;?n.exports=function(s,l){l&amp;&amp;(s.super_=l,s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(s,l){if(l){s.super_=l;var u=function(){};u.prototype=l.prototype,s.prototype=new u,s.prototype.constructor=s}}},{}],441:[function(t,n,o){(function(s,l,u,c,a,d,f,h){(function(){(function(m){typeof o==&quot;object&quot;&amp;&amp;n!==void 0?n.exports=m():(typeof window&lt;&quot;u&quot;?window:l!==void 0?l:typeof self&lt;&quot;u&quot;?self:this).JSZip=m()})((function(){return(function m(p,x,g){function y(S,A){if(!x[S]){if(!p[S]){var I=typeof t==&quot;function&quot;&amp;&amp;t;if(!A&amp;&amp;I)return I(S,!0);if(v)return v(S,!0);var V=new Error(&quot;Cannot find module &#039;&quot;+S+&quot;&#039;&quot;);throw V.code=&quot;MODULE_NOT_FOUND&quot;,V}var F=x[S]={exports:{}};p[S][0].call(F.exports,(function(q){return y(p[S][1][q]||q)}),F,F.exports,m,p,x,g)}return x[S].exports}for(var v=typeof t==&quot;function&quot;&amp;&amp;t,_=0;_&lt;g.length;_++)y(g[_]);return y})({1:[function(m,p,x){var g=m(&quot;./utils&quot;),y=m(&quot;./support&quot;),v=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=&quot;;x.encode=function(_){for(var S,A,I,V,F,q,H,B=[],K=0,T=_.length,L=T,E=g.getTypeOf(_)!==&quot;string&quot;;K&lt;_.length;)L=T-K,I=E?(S=_[K++],A=K&lt;T?_[K++]:0,K&lt;T?_[K++]:0):(S=_.charCodeAt(K++),A=K&lt;T?_.charCodeAt(K++):0,K&lt;T?_.charCodeAt(K++):0),V=S&gt;&gt;2,F=(3&amp;S)&lt;&lt;4|A&gt;&gt;4,q=1&lt;L?(15&amp;A)&lt;&lt;2|I&gt;&gt;6:64,H=2&lt;L?63&amp;I:64,B.push(v.charAt(V)+v.charAt(F)+v.charAt(q)+v.charAt(H));return B.join(&quot;&quot;)},x.decode=function(_){var S,A,I,V,F,q,H=0,B=0,K=&quot;data:&quot;;if(_.substr(0,K.length)===K)throw new Error(&quot;Invalid base64 input, it looks like a data url.&quot;);var T,L=3*(_=_.replace(/[^A-Za-z0-9+/=]/g,&quot;&quot;)).length/4;if(_.charAt(_.length-1)===v.charAt(64)&amp;&amp;L--,_.charAt(_.length-2)===v.charAt(64)&amp;&amp;L--,L%1!=0)throw new Error(&quot;Invalid base64 input, bad content length.&quot;);for(T=y.uint8array?new Uint8Array(0|L):new Array(0|L);H&lt;_.length;)S=v.indexOf(_.charAt(H++))&lt;&lt;2|(V=v.indexOf(_.charAt(H++)))&gt;&gt;4,A=(15&amp;V)&lt;&lt;4|(F=v.indexOf(_.charAt(H++)))&gt;&gt;2,I=(3&amp;F)&lt;&lt;6|(q=v.indexOf(_.charAt(H++))),T[B++]=S,F!==64&amp;&amp;(T[B++]=A),q!==64&amp;&amp;(T[B++]=I);return T}},{&quot;./support&quot;:30,&quot;./utils&quot;:32}],2:[function(m,p,x){var g=m(&quot;./external&quot;),y=m(&quot;./stream/DataWorker&quot;),v=m(&quot;./stream/Crc32Probe&quot;),_=m(&quot;./stream/DataLengthProbe&quot;);function S(A,I,V,F,q){this.compressedSize=A,this.uncompressedSize=I,this.crc32=V,this.compression=F,this.compressedContent=q}S.prototype={getContentWorker:function(){var A=new y(g.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new _(&quot;data_length&quot;)),I=this;return A.on(&quot;end&quot;,(function(){if(this.streamInfo.data_length!==I.uncompressedSize)throw new Error(&quot;Bug : uncompressed data size mismatch&quot;)})),A},getCompressedWorker:function(){return new y(g.Promise.resolve(this.compressedContent)).withStreamInfo(&quot;compressedSize&quot;,this.compressedSize).withStreamInfo(&quot;uncompressedSize&quot;,this.uncompressedSize).withStreamInfo(&quot;crc32&quot;,this.crc32).withStreamInfo(&quot;compression&quot;,this.compression)}},S.createWorkerFrom=function(A,I,V){return A.pipe(new v).pipe(new _(&quot;uncompressedSize&quot;)).pipe(I.compressWorker(V)).pipe(new _(&quot;compressedSize&quot;)).withStreamInfo(&quot;compression&quot;,I)},p.exports=S},{&quot;./external&quot;:6,&quot;./stream/Crc32Probe&quot;:25,&quot;./stream/DataLengthProbe&quot;:26,&quot;./stream/DataWorker&quot;:27}],3:[function(m,p,x){var g=m(&quot;./stream/GenericWorker&quot;);x.STORE={magic:&quot;\0\0&quot;,compressWorker:function(){return new g(&quot;STORE compression&quot;)},uncompressWorker:function(){return new g(&quot;STORE decompression&quot;)}},x.DEFLATE=m(&quot;./flate&quot;)},{&quot;./flate&quot;:7,&quot;./stream/GenericWorker&quot;:28}],4:[function(m,p,x){var g=m(&quot;./utils&quot;),y=(function(){for(var v,_=[],S=0;S&lt;256;S++){v=S;for(var A=0;A&lt;8;A++)v=1&amp;v?3988292384^v&gt;&gt;&gt;1:v&gt;&gt;&gt;1;_[S]=v}return _})();p.exports=function(v,_){return v!==void 0&amp;&amp;v.length?g.getTypeOf(v)!==&quot;string&quot;?(function(S,A,I,V){var F=y,q=0+I;S^=-1;for(var H=0;H&lt;q;H++)S=S&gt;&gt;&gt;8^F[255&amp;(S^A[H])];return-1^S})(0|_,v,v.length):(function(S,A,I,V){var F=y,q=0+I;S^=-1;for(var H=0;H&lt;q;H++)S=S&gt;&gt;&gt;8^F[255&amp;(S^A.charCodeAt(H))];return-1^S})(0|_,v,v.length):0}},{&quot;./utils&quot;:32}],5:[function(m,p,x){x.base64=!1,x.binary=!1,x.dir=!1,x.createFolders=!0,x.date=null,x.compression=null,x.compressionOptions=null,x.comment=null,x.unixPermissions=null,x.dosPermissions=null},{}],6:[function(m,p,x){var g;g=typeof Promise&lt;&quot;u&quot;?Promise:m(&quot;lie&quot;),p.exports={Promise:g}},{lie:37}],7:[function(m,p,x){var g=typeof Uint8Array&lt;&quot;u&quot;&amp;&amp;typeof Uint16Array&lt;&quot;u&quot;&amp;&amp;typeof Uint32Array&lt;&quot;u&quot;,y=m(&quot;pako&quot;),v=m(&quot;./utils&quot;),_=m(&quot;./stream/GenericWorker&quot;),S=g?&quot;uint8array&quot;:&quot;array&quot;;function A(I,V){_.call(this,&quot;FlateWorker/&quot;+I),this._pako=null,this._pakoAction=I,this._pakoOptions=V,this.meta={}}x.magic=&quot;\b\0&quot;,v.inherits(A,_),A.prototype.processChunk=function(I){this.meta=I.meta,this._pako===null&amp;&amp;this._createPako(),this._pako.push(v.transformTo(S,I.data),!1)},A.prototype.flush=function(){_.prototype.flush.call(this),this._pako===null&amp;&amp;this._createPako(),this._pako.push([],!0)},A.prototype.cleanUp=function(){_.prototype.cleanUp.call(this),this._pako=null},A.prototype._createPako=function(){this._pako=new y[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var I=this;this._pako.onData=function(V){I.push({data:V,meta:I.meta})}},x.compressWorker=function(I){return new A(&quot;Deflate&quot;,I)},x.uncompressWorker=function(){return new A(&quot;Inflate&quot;,{})}},{&quot;./stream/GenericWorker&quot;:28,&quot;./utils&quot;:32,pako:38}],8:[function(m,p,x){function g(F,q){var H,B=&quot;&quot;;for(H=0;H&lt;q;H++)B+=String.fromCharCode(255&amp;F),F&gt;&gt;&gt;=8;return B}function y(F,q,H,B,K,T){var L,E,j=F.file,k=F.compression,N=T!==S.utf8encode,C=v.transformTo(&quot;string&quot;,T(j.name)),P=v.transformTo(&quot;string&quot;,S.utf8encode(j.name)),D=j.comment,z=v.transformTo(&quot;string&quot;,T(D)),Y=v.transformTo(&quot;string&quot;,S.utf8encode(D)),Z=P.length!==j.name.length,ne=Y.length!==D.length,U=&quot;&quot;,J=&quot;&quot;,$=&quot;&quot;,R=j.dir,X=j.date,re={crc32:0,compressedSize:0,uncompressedSize:0};q&amp;&amp;!H||(re.crc32=F.crc32,re.compressedSize=F.compressedSize,re.uncompressedSize=F.uncompressedSize);var Q=0;q&amp;&amp;(Q|=8),N||!Z&amp;&amp;!ne||(Q|=2048);var te=0,ie=0;R&amp;&amp;(te|=16),K===&quot;UNIX&quot;?(ie=798,te|=(function(ce,se){var fe=ce;return ce||(fe=se?16893:33204),(65535&amp;fe)&lt;&lt;16})(j.unixPermissions,R)):(ie=20,te|=(function(ce){return 63&amp;(ce||0)})(j.dosPermissions)),L=X.getUTCHours(),L&lt;&lt;=6,L|=X.getUTCMinutes(),L&lt;&lt;=5,L|=X.getUTCSeconds()/2,E=X.getUTCFullYear()-1980,E&lt;&lt;=4,E|=X.getUTCMonth()+1,E&lt;&lt;=5,E|=X.getUTCDate(),Z&amp;&amp;(J=g(1,1)+g(A(C),4)+P,U+=&quot;up&quot;+g(J.length,2)+J),ne&amp;&amp;($=g(1,1)+g(A(z),4)+Y,U+=&quot;uc&quot;+g($.length,2)+$);var de=&quot;&quot;;return de+=`
\0`,de+=g(Q,2),de+=k.magic,de+=g(L,2),de+=g(E,2),de+=g(re.crc32,4),de+=g(re.compressedSize,4),de+=g(re.uncompressedSize,4),de+=g(C.length,2),de+=g(U.length,2),{fileRecord:I.LOCAL_FILE_HEADER+de+C+U,dirRecord:I.CENTRAL_FILE_HEADER+g(ie,2)+de+g(z.length,2)+&quot;\0\0\0\0&quot;+g(te,4)+g(B,4)+C+U+z}}var v=m(&quot;../utils&quot;),_=m(&quot;../stream/GenericWorker&quot;),S=m(&quot;../utf8&quot;),A=m(&quot;../crc32&quot;),I=m(&quot;../signature&quot;);function V(F,q,H,B){_.call(this,&quot;ZipFileWorker&quot;),this.bytesWritten=0,this.zipComment=q,this.zipPlatform=H,this.encodeFileName=B,this.streamFiles=F,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(V,_),V.prototype.push=function(F){var q=F.meta.percent||0,H=this.entriesCount,B=this._sources.length;this.accumulate?this.contentBuffer.push(F):(this.bytesWritten+=F.data.length,_.prototype.push.call(this,{data:F.data,meta:{currentFile:this.currentFile,percent:H?(q+100*(H-B-1))/H:100}}))},V.prototype.openedSource=function(F){this.currentSourceOffset=this.bytesWritten,this.currentFile=F.file.name;var q=this.streamFiles&amp;&amp;!F.file.dir;if(q){var H=y(F,q,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:H.fileRecord,meta:{percent:0}})}else this.accumulate=!0},V.prototype.closedSource=function(F){this.accumulate=!1;var q=this.streamFiles&amp;&amp;!F.file.dir,H=y(F,q,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(H.dirRecord),q)this.push({data:(function(B){return I.DATA_DESCRIPTOR+g(B.crc32,4)+g(B.compressedSize,4)+g(B.uncompressedSize,4)})(F),meta:{percent:100}});else for(this.push({data:H.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},V.prototype.flush=function(){for(var F=this.bytesWritten,q=0;q&lt;this.dirRecords.length;q++)this.push({data:this.dirRecords[q],meta:{percent:100}});var H=this.bytesWritten-F,B=(function(K,T,L,E,j){var k=v.transformTo(&quot;string&quot;,j(E));return I.CENTRAL_DIRECTORY_END+&quot;\0\0\0\0&quot;+g(K,2)+g(K,2)+g(T,4)+g(L,4)+g(k.length,2)+k})(this.dirRecords.length,H,F,this.zipComment,this.encodeFileName);this.push({data:B,meta:{percent:100}})},V.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},V.prototype.registerPrevious=function(F){this._sources.push(F);var q=this;return F.on(&quot;data&quot;,(function(H){q.processChunk(H)})),F.on(&quot;end&quot;,(function(){q.closedSource(q.previous.streamInfo),q._sources.length?q.prepareNextSource():q.end()})),F.on(&quot;error&quot;,(function(H){q.error(H)})),this},V.prototype.resume=function(){return!!_.prototype.resume.call(this)&amp;&amp;(!this.previous&amp;&amp;this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},V.prototype.error=function(F){var q=this._sources;if(!_.prototype.error.call(this,F))return!1;for(var H=0;H&lt;q.length;H++)try{q[H].error(F)}catch{}return!0},V.prototype.lock=function(){_.prototype.lock.call(this);for(var F=this._sources,q=0;q&lt;F.length;q++)F[q].lock()},p.exports=V},{&quot;../crc32&quot;:4,&quot;../signature&quot;:23,&quot;../stream/GenericWorker&quot;:28,&quot;../utf8&quot;:31,&quot;../utils&quot;:32}],9:[function(m,p,x){var g=m(&quot;../compressions&quot;),y=m(&quot;./ZipFileWorker&quot;);x.generateWorker=function(v,_,S){var A=new y(_.streamFiles,S,_.platform,_.encodeFileName),I=0;try{v.forEach((function(V,F){I++;var q=(function(T,L){var E=T||L,j=g[E];if(!j)throw new Error(E+&quot; is not a valid compression method !&quot;);return j})(F.options.compression,_.compression),H=F.options.compressionOptions||_.compressionOptions||{},B=F.dir,K=F.date;F._compressWorker(q,H).withStreamInfo(&quot;file&quot;,{name:V,dir:B,date:K,comment:F.comment||&quot;&quot;,unixPermissions:F.unixPermissions,dosPermissions:F.dosPermissions}).pipe(A)})),A.entriesCount=I}catch(V){A.error(V)}return A}},{&quot;../compressions&quot;:3,&quot;./ZipFileWorker&quot;:8}],10:[function(m,p,x){function g(){if(!(this instanceof g))return new g;if(arguments.length)throw new Error(&quot;The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.&quot;);this.files=Object.create(null),this.comment=null,this.root=&quot;&quot;,this.clone=function(){var y=new g;for(var v in this)typeof this[v]!=&quot;function&quot;&amp;&amp;(y[v]=this[v]);return y}}(g.prototype=m(&quot;./object&quot;)).loadAsync=m(&quot;./load&quot;),g.support=m(&quot;./support&quot;),g.defaults=m(&quot;./defaults&quot;),g.version=&quot;3.10.1&quot;,g.loadAsync=function(y,v){return new g().loadAsync(y,v)},g.external=m(&quot;./external&quot;),p.exports=g},{&quot;./defaults&quot;:5,&quot;./external&quot;:6,&quot;./load&quot;:11,&quot;./object&quot;:15,&quot;./support&quot;:30}],11:[function(m,p,x){var g=m(&quot;./utils&quot;),y=m(&quot;./external&quot;),v=m(&quot;./utf8&quot;),_=m(&quot;./zipEntries&quot;),S=m(&quot;./stream/Crc32Probe&quot;),A=m(&quot;./nodejsUtils&quot;);function I(V){return new y.Promise((function(F,q){var H=V.decompressed.getContentWorker().pipe(new S);H.on(&quot;error&quot;,(function(B){q(B)})).on(&quot;end&quot;,(function(){H.streamInfo.crc32!==V.decompressed.crc32?q(new Error(&quot;Corrupted zip : CRC32 mismatch&quot;)):F()})).resume()}))}p.exports=function(V,F){var q=this;return F=g.extend(F||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:v.utf8decode}),A.isNode&amp;&amp;A.isStream(V)?y.Promise.reject(new Error(&quot;JSZip can&#039;t accept a stream when loading a zip file.&quot;)):g.prepareContent(&quot;the loaded zip file&quot;,V,!0,F.optimizedBinaryString,F.base64).then((function(H){var B=new _(F);return B.load(H),B})).then((function(H){var B=[y.Promise.resolve(H)],K=H.files;if(F.checkCRC32)for(var T=0;T&lt;K.length;T++)B.push(I(K[T]));return y.Promise.all(B)})).then((function(H){for(var B=H.shift(),K=B.files,T=0;T&lt;K.length;T++){var L=K[T],E=L.fileNameStr,j=g.resolve(L.fileNameStr);q.file(j,L.decompressed,{binary:!0,optimizedBinaryString:!0,date:L.date,dir:L.dir,comment:L.fileCommentStr.length?L.fileCommentStr:null,unixPermissions:L.unixPermissions,dosPermissions:L.dosPermissions,createFolders:F.createFolders}),L.dir||(q.file(j).unsafeOriginalName=E)}return B.zipComment.length&amp;&amp;(q.comment=B.zipComment),q}))}},{&quot;./external&quot;:6,&quot;./nodejsUtils&quot;:14,&quot;./stream/Crc32Probe&quot;:25,&quot;./utf8&quot;:31,&quot;./utils&quot;:32,&quot;./zipEntries&quot;:33}],12:[function(m,p,x){var g=m(&quot;../utils&quot;),y=m(&quot;../stream/GenericWorker&quot;);function v(_,S){y.call(this,&quot;Nodejs stream input adapter for &quot;+_),this._upstreamEnded=!1,this._bindStream(S)}g.inherits(v,y),v.prototype._bindStream=function(_){var S=this;(this._stream=_).pause(),_.on(&quot;data&quot;,(function(A){S.push({data:A,meta:{percent:0}})})).on(&quot;error&quot;,(function(A){S.isPaused?this.generatedError=A:S.error(A)})).on(&quot;end&quot;,(function(){S.isPaused?S._upstreamEnded=!0:S.end()}))},v.prototype.pause=function(){return!!y.prototype.pause.call(this)&amp;&amp;(this._stream.pause(),!0)},v.prototype.resume=function(){return!!y.prototype.resume.call(this)&amp;&amp;(this._upstreamEnded?this.end():this._stream.resume(),!0)},p.exports=v},{&quot;../stream/GenericWorker&quot;:28,&quot;../utils&quot;:32}],13:[function(m,p,x){var g=m(&quot;readable-stream&quot;).Readable;function y(v,_,S){g.call(this,_),this._helper=v;var A=this;v.on(&quot;data&quot;,(function(I,V){A.push(I)||A._helper.pause(),S&amp;&amp;S(V)})).on(&quot;error&quot;,(function(I){A.emit(&quot;error&quot;,I)})).on(&quot;end&quot;,(function(){A.push(null)}))}m(&quot;../utils&quot;).inherits(y,g),y.prototype._read=function(){this._helper.resume()},p.exports=y},{&quot;../utils&quot;:32,&quot;readable-stream&quot;:16}],14:[function(m,p,x){p.exports={isNode:u!==void 0,newBufferFrom:function(g,y){if(u.from&amp;&amp;u.from!==Uint8Array.from)return u.from(g,y);if(typeof g==&quot;number&quot;)throw new Error(&#039;The &quot;data&quot; argument must not be a number&#039;);return new u(g,y)},allocBuffer:function(g){if(u.alloc)return u.alloc(g);var y=new u(g);return y.fill(0),y},isBuffer:function(g){return u.isBuffer(g)},isStream:function(g){return g&amp;&amp;typeof g.on==&quot;function&quot;&amp;&amp;typeof g.pause==&quot;function&quot;&amp;&amp;typeof g.resume==&quot;function&quot;}}},{}],15:[function(m,p,x){function g(j,k,N){var C,P=v.getTypeOf(k),D=v.extend(N||{},A);D.date=D.date||new Date,D.compression!==null&amp;&amp;(D.compression=D.compression.toUpperCase()),typeof D.unixPermissions==&quot;string&quot;&amp;&amp;(D.unixPermissions=parseInt(D.unixPermissions,8)),D.unixPermissions&amp;&amp;16384&amp;D.unixPermissions&amp;&amp;(D.dir=!0),D.dosPermissions&amp;&amp;16&amp;D.dosPermissions&amp;&amp;(D.dir=!0),D.dir&amp;&amp;(j=K(j)),D.createFolders&amp;&amp;(C=B(j))&amp;&amp;T.call(this,C,!0);var z=P===&quot;string&quot;&amp;&amp;D.binary===!1&amp;&amp;D.base64===!1;N&amp;&amp;N.binary!==void 0||(D.binary=!z),(k instanceof I&amp;&amp;k.uncompressedSize===0||D.dir||!k||k.length===0)&amp;&amp;(D.base64=!1,D.binary=!0,k=&quot;&quot;,D.compression=&quot;STORE&quot;,P=&quot;string&quot;);var Y;Y=k instanceof I||k instanceof _?k:q.isNode&amp;&amp;q.isStream(k)?new H(j,k):v.prepareContent(j,k,D.binary,D.optimizedBinaryString,D.base64);var Z=new V(j,Y,D);this.files[j]=Z}var y=m(&quot;./utf8&quot;),v=m(&quot;./utils&quot;),_=m(&quot;./stream/GenericWorker&quot;),S=m(&quot;./stream/StreamHelper&quot;),A=m(&quot;./defaults&quot;),I=m(&quot;./compressedObject&quot;),V=m(&quot;./zipObject&quot;),F=m(&quot;./generate&quot;),q=m(&quot;./nodejsUtils&quot;),H=m(&quot;./nodejs/NodejsStreamInputAdapter&quot;),B=function(j){j.slice(-1)===&quot;/&quot;&amp;&amp;(j=j.substring(0,j.length-1));var k=j.lastIndexOf(&quot;/&quot;);return 0&lt;k?j.substring(0,k):&quot;&quot;},K=function(j){return j.slice(-1)!==&quot;/&quot;&amp;&amp;(j+=&quot;/&quot;),j},T=function(j,k){return k=k!==void 0?k:A.createFolders,j=K(j),this.files[j]||g.call(this,j,null,{dir:!0,createFolders:k}),this.files[j]};function L(j){return Object.prototype.toString.call(j)===&quot;[object RegExp]&quot;}var E={load:function(){throw new Error(&quot;This method has been removed in JSZip 3.0, please check the upgrade guide.&quot;)},forEach:function(j){var k,N,C;for(k in this.files)C=this.files[k],(N=k.slice(this.root.length,k.length))&amp;&amp;k.slice(0,this.root.length)===this.root&amp;&amp;j(N,C)},filter:function(j){var k=[];return this.forEach((function(N,C){j(N,C)&amp;&amp;k.push(C)})),k},file:function(j,k,N){if(arguments.length!==1)return j=this.root+j,g.call(this,j,k,N),this;if(L(j)){var C=j;return this.filter((function(D,z){return!z.dir&amp;&amp;C.test(D)}))}var P=this.files[this.root+j];return P&amp;&amp;!P.dir?P:null},folder:function(j){if(!j)return this;if(L(j))return this.filter((function(P,D){return D.dir&amp;&amp;j.test(P)}));var k=this.root+j,N=T.call(this,k),C=this.clone();return C.root=N.name,C},remove:function(j){j=this.root+j;var k=this.files[j];if(k||(j.slice(-1)!==&quot;/&quot;&amp;&amp;(j+=&quot;/&quot;),k=this.files[j]),k&amp;&amp;!k.dir)delete this.files[j];else for(var N=this.filter((function(P,D){return D.name.slice(0,j.length)===j})),C=0;C&lt;N.length;C++)delete this.files[N[C].name];return this},generate:function(){throw new Error(&quot;This method has been removed in JSZip 3.0, please check the upgrade guide.&quot;)},generateInternalStream:function(j){var k,N={};try{if((N=v.extend(j||{},{streamFiles:!1,compression:&quot;STORE&quot;,compressionOptions:null,type:&quot;&quot;,platform:&quot;DOS&quot;,comment:null,mimeType:&quot;application/zip&quot;,encodeFileName:y.utf8encode})).type=N.type.toLowerCase(),N.compression=N.compression.toUpperCase(),N.type===&quot;binarystring&quot;&amp;&amp;(N.type=&quot;string&quot;),!N.type)throw new Error(&quot;No output type specified.&quot;);v.checkSupport(N.type),N.platform!==&quot;darwin&quot;&amp;&amp;N.platform!==&quot;freebsd&quot;&amp;&amp;N.platform!==&quot;linux&quot;&amp;&amp;N.platform!==&quot;sunos&quot;||(N.platform=&quot;UNIX&quot;),N.platform===&quot;win32&quot;&amp;&amp;(N.platform=&quot;DOS&quot;);var C=N.comment||this.comment||&quot;&quot;;k=F.generateWorker(this,N,C)}catch(P){(k=new _(&quot;error&quot;)).error(P)}return new S(k,N.type||&quot;string&quot;,N.mimeType)},generateAsync:function(j,k){return this.generateInternalStream(j).accumulate(k)},generateNodeStream:function(j,k){return(j=j||{}).type||(j.type=&quot;nodebuffer&quot;),this.generateInternalStream(j).toNodejsStream(k)}};p.exports=E},{&quot;./compressedObject&quot;:2,&quot;./defaults&quot;:5,&quot;./generate&quot;:9,&quot;./nodejs/NodejsStreamInputAdapter&quot;:12,&quot;./nodejsUtils&quot;:14,&quot;./stream/GenericWorker&quot;:28,&quot;./stream/StreamHelper&quot;:29,&quot;./utf8&quot;:31,&quot;./utils&quot;:32,&quot;./zipObject&quot;:35}],16:[function(m,p,x){p.exports=m(&quot;stream&quot;)},{stream:void 0}],17:[function(m,p,x){var g=m(&quot;./DataReader&quot;);function y(v){g.call(this,v);for(var _=0;_&lt;this.data.length;_++)v[_]=255&amp;v[_]}m(&quot;../utils&quot;).inherits(y,g),y.prototype.byteAt=function(v){return this.data[this.zero+v]},y.prototype.lastIndexOfSignature=function(v){for(var _=v.charCodeAt(0),S=v.charCodeAt(1),A=v.charCodeAt(2),I=v.charCodeAt(3),V=this.length-4;0&lt;=V;--V)if(this.data[V]===_&amp;&amp;this.data[V+1]===S&amp;&amp;this.data[V+2]===A&amp;&amp;this.data[V+3]===I)return V-this.zero;return-1},y.prototype.readAndCheckSignature=function(v){var _=v.charCodeAt(0),S=v.charCodeAt(1),A=v.charCodeAt(2),I=v.charCodeAt(3),V=this.readData(4);return _===V[0]&amp;&amp;S===V[1]&amp;&amp;A===V[2]&amp;&amp;I===V[3]},y.prototype.readData=function(v){if(this.checkOffset(v),v===0)return[];var _=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,_},p.exports=y},{&quot;../utils&quot;:32,&quot;./DataReader&quot;:18}],18:[function(m,p,x){var g=m(&quot;../utils&quot;);function y(v){this.data=v,this.length=v.length,this.index=0,this.zero=0}y.prototype={checkOffset:function(v){this.checkIndex(this.index+v)},checkIndex:function(v){if(this.length&lt;this.zero+v||v&lt;0)throw new Error(&quot;End of data reached (data length = &quot;+this.length+&quot;, asked index = &quot;+v+&quot;). Corrupted zip ?&quot;)},setIndex:function(v){this.checkIndex(v),this.index=v},skip:function(v){this.setIndex(this.index+v)},byteAt:function(){},readInt:function(v){var _,S=0;for(this.checkOffset(v),_=this.index+v-1;_&gt;=this.index;_--)S=(S&lt;&lt;8)+this.byteAt(_);return this.index+=v,S},readString:function(v){return g.transformTo(&quot;string&quot;,this.readData(v))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var v=this.readInt(4);return new Date(Date.UTC(1980+(v&gt;&gt;25&amp;127),(v&gt;&gt;21&amp;15)-1,v&gt;&gt;16&amp;31,v&gt;&gt;11&amp;31,v&gt;&gt;5&amp;63,(31&amp;v)&lt;&lt;1))}},p.exports=y},{&quot;../utils&quot;:32}],19:[function(m,p,x){var g=m(&quot;./Uint8ArrayReader&quot;);function y(v){g.call(this,v)}m(&quot;../utils&quot;).inherits(y,g),y.prototype.readData=function(v){this.checkOffset(v);var _=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,_},p.exports=y},{&quot;../utils&quot;:32,&quot;./Uint8ArrayReader&quot;:21}],20:[function(m,p,x){var g=m(&quot;./DataReader&quot;);function y(v){g.call(this,v)}m(&quot;../utils&quot;).inherits(y,g),y.prototype.byteAt=function(v){return this.data.charCodeAt(this.zero+v)},y.prototype.lastIndexOfSignature=function(v){return this.data.lastIndexOf(v)-this.zero},y.prototype.readAndCheckSignature=function(v){return v===this.readData(4)},y.prototype.readData=function(v){this.checkOffset(v);var _=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,_},p.exports=y},{&quot;../utils&quot;:32,&quot;./DataReader&quot;:18}],21:[function(m,p,x){var g=m(&quot;./ArrayReader&quot;);function y(v){g.call(this,v)}m(&quot;../utils&quot;).inherits(y,g),y.prototype.readData=function(v){if(this.checkOffset(v),v===0)return new Uint8Array(0);var _=this.data.subarray(this.zero+this.index,this.zero+this.index+v);return this.index+=v,_},p.exports=y},{&quot;../utils&quot;:32,&quot;./ArrayReader&quot;:17}],22:[function(m,p,x){var g=m(&quot;../utils&quot;),y=m(&quot;../support&quot;),v=m(&quot;./ArrayReader&quot;),_=m(&quot;./StringReader&quot;),S=m(&quot;./NodeBufferReader&quot;),A=m(&quot;./Uint8ArrayReader&quot;);p.exports=function(I){var V=g.getTypeOf(I);return g.checkSupport(V),V!==&quot;string&quot;||y.uint8array?V===&quot;nodebuffer&quot;?new S(I):y.uint8array?new A(g.transformTo(&quot;uint8array&quot;,I)):new v(g.transformTo(&quot;array&quot;,I)):new _(I)}},{&quot;../support&quot;:30,&quot;../utils&quot;:32,&quot;./ArrayReader&quot;:17,&quot;./NodeBufferReader&quot;:19,&quot;./StringReader&quot;:20,&quot;./Uint8ArrayReader&quot;:21}],23:[function(m,p,x){x.LOCAL_FILE_HEADER=&quot;PK&quot;,x.CENTRAL_FILE_HEADER=&quot;PK&quot;,x.CENTRAL_DIRECTORY_END=&quot;PK&quot;,x.ZIP64_CENTRAL_DIRECTORY_LOCATOR=&quot;PK\x07&quot;,x.ZIP64_CENTRAL_DIRECTORY_END=&quot;PK&quot;,x.DATA_DESCRIPTOR=&quot;PK\x07\b&quot;},{}],24:[function(m,p,x){var g=m(&quot;./GenericWorker&quot;),y=m(&quot;../utils&quot;);function v(_){g.call(this,&quot;ConvertWorker to &quot;+_),this.destType=_}y.inherits(v,g),v.prototype.processChunk=function(_){this.push({data:y.transformTo(this.destType,_.data),meta:_.meta})},p.exports=v},{&quot;../utils&quot;:32,&quot;./GenericWorker&quot;:28}],25:[function(m,p,x){var g=m(&quot;./GenericWorker&quot;),y=m(&quot;../crc32&quot;);function v(){g.call(this,&quot;Crc32Probe&quot;),this.withStreamInfo(&quot;crc32&quot;,0)}m(&quot;../utils&quot;).inherits(v,g),v.prototype.processChunk=function(_){this.streamInfo.crc32=y(_.data,this.streamInfo.crc32||0),this.push(_)},p.exports=v},{&quot;../crc32&quot;:4,&quot;../utils&quot;:32,&quot;./GenericWorker&quot;:28}],26:[function(m,p,x){var g=m(&quot;../utils&quot;),y=m(&quot;./GenericWorker&quot;);function v(_){y.call(this,&quot;DataLengthProbe for &quot;+_),this.propName=_,this.withStreamInfo(_,0)}g.inherits(v,y),v.prototype.processChunk=function(_){if(_){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+_.data.length}y.prototype.processChunk.call(this,_)},p.exports=v},{&quot;../utils&quot;:32,&quot;./GenericWorker&quot;:28}],27:[function(m,p,x){var g=m(&quot;../utils&quot;),y=m(&quot;./GenericWorker&quot;);function v(_){y.call(this,&quot;DataWorker&quot;);var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=&quot;&quot;,this._tickScheduled=!1,_.then((function(A){S.dataIsReady=!0,S.data=A,S.max=A&amp;&amp;A.length||0,S.type=g.getTypeOf(A),S.isPaused||S._tickAndRepeat()}),(function(A){S.error(A)}))}g.inherits(v,y),v.prototype.cleanUp=function(){y.prototype.cleanUp.call(this),this.data=null},v.prototype.resume=function(){return!!y.prototype.resume.call(this)&amp;&amp;(!this._tickScheduled&amp;&amp;this.dataIsReady&amp;&amp;(this._tickScheduled=!0,g.delay(this._tickAndRepeat,[],this)),!0)},v.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(g.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},v.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var _=null,S=Math.min(this.max,this.index+16384);if(this.index&gt;=this.max)return this.end();switch(this.type){case&quot;string&quot;:_=this.data.substring(this.index,S);break;case&quot;uint8array&quot;:_=this.data.subarray(this.index,S);break;case&quot;array&quot;:case&quot;nodebuffer&quot;:_=this.data.slice(this.index,S)}return this.index=S,this.push({data:_,meta:{percent:this.max?this.index/this.max*100:0}})},p.exports=v},{&quot;../utils&quot;:32,&quot;./GenericWorker&quot;:28}],28:[function(m,p,x){function g(y){this.name=y||&quot;default&quot;,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}g.prototype={push:function(y){this.emit(&quot;data&quot;,y)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(&quot;end&quot;),this.cleanUp(),this.isFinished=!0}catch(y){this.emit(&quot;error&quot;,y)}return!0},error:function(y){return!this.isFinished&amp;&amp;(this.isPaused?this.generatedError=y:(this.isFinished=!0,this.emit(&quot;error&quot;,y),this.previous&amp;&amp;this.previous.error(y),this.cleanUp()),!0)},on:function(y,v){return this._listeners[y].push(v),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(y,v){if(this._listeners[y])for(var _=0;_&lt;this._listeners[y].length;_++)this._listeners[y][_].call(this,v)},pipe:function(y){return y.registerPrevious(this)},registerPrevious:function(y){if(this.isLocked)throw new Error(&quot;The stream &#039;&quot;+this+&quot;&#039; has already been used.&quot;);this.streamInfo=y.streamInfo,this.mergeStreamInfo(),this.previous=y;var v=this;return y.on(&quot;data&quot;,(function(_){v.processChunk(_)})),y.on(&quot;end&quot;,(function(){v.end()})),y.on(&quot;error&quot;,(function(_){v.error(_)})),this},pause:function(){return!this.isPaused&amp;&amp;!this.isFinished&amp;&amp;(this.isPaused=!0,this.previous&amp;&amp;this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var y=this.isPaused=!1;return this.generatedError&amp;&amp;(this.error(this.generatedError),y=!0),this.previous&amp;&amp;this.previous.resume(),!y},flush:function(){},processChunk:function(y){this.push(y)},withStreamInfo:function(y,v){return this.extraStreamInfo[y]=v,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var y in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,y)&amp;&amp;(this.streamInfo[y]=this.extraStreamInfo[y])},lock:function(){if(this.isLocked)throw new Error(&quot;The stream &#039;&quot;+this+&quot;&#039; has already been used.&quot;);this.isLocked=!0,this.previous&amp;&amp;this.previous.lock()},toString:function(){var y=&quot;Worker &quot;+this.name;return this.previous?this.previous+&quot; -&gt; &quot;+y:y}},p.exports=g},{}],29:[function(m,p,x){var g=m(&quot;../utils&quot;),y=m(&quot;./ConvertWorker&quot;),v=m(&quot;./GenericWorker&quot;),_=m(&quot;../base64&quot;),S=m(&quot;../support&quot;),A=m(&quot;../external&quot;),I=null;if(S.nodestream)try{I=m(&quot;../nodejs/NodejsStreamOutputAdapter&quot;)}catch{}function V(F,q,H){var B=q;switch(q){case&quot;blob&quot;:case&quot;arraybuffer&quot;:B=&quot;uint8array&quot;;break;case&quot;base64&quot;:B=&quot;string&quot;}try{this._internalType=B,this._outputType=q,this._mimeType=H,g.checkSupport(B),this._worker=F.pipe(new y(B)),F.lock()}catch(K){this._worker=new v(&quot;error&quot;),this._worker.error(K)}}V.prototype={accumulate:function(F){return(function(q,H){return new A.Promise((function(B,K){var T=[],L=q._internalType,E=q._outputType,j=q._mimeType;q.on(&quot;data&quot;,(function(k,N){T.push(k),H&amp;&amp;H(N)})).on(&quot;error&quot;,(function(k){T=[],K(k)})).on(&quot;end&quot;,(function(){try{var k=(function(N,C,P){switch(N){case&quot;blob&quot;:return g.newBlob(g.transformTo(&quot;arraybuffer&quot;,C),P);case&quot;base64&quot;:return _.encode(C);default:return g.transformTo(N,C)}})(E,(function(N,C){var P,D=0,z=null,Y=0;for(P=0;P&lt;C.length;P++)Y+=C[P].length;switch(N){case&quot;string&quot;:return C.join(&quot;&quot;);case&quot;array&quot;:return Array.prototype.concat.apply([],C);case&quot;uint8array&quot;:for(z=new Uint8Array(Y),P=0;P&lt;C.length;P++)z.set(C[P],D),D+=C[P].length;return z;case&quot;nodebuffer&quot;:return u.concat(C);default:throw new Error(&quot;concat : unsupported type &#039;&quot;+N+&quot;&#039;&quot;)}})(L,T),j);B(k)}catch(N){K(N)}T=[]})).resume()}))})(this,F)},on:function(F,q){var H=this;return F===&quot;data&quot;?this._worker.on(F,(function(B){q.call(H,B.data,B.meta)})):this._worker.on(F,(function(){g.delay(q,arguments,H)})),this},resume:function(){return g.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(F){if(g.checkSupport(&quot;nodestream&quot;),this._outputType!==&quot;nodebuffer&quot;)throw new Error(this._outputType+&quot; is not supported by this method&quot;);return new I(this,{objectMode:this._outputType!==&quot;nodebuffer&quot;},F)}},p.exports=V},{&quot;../base64&quot;:1,&quot;../external&quot;:6,&quot;../nodejs/NodejsStreamOutputAdapter&quot;:13,&quot;../support&quot;:30,&quot;../utils&quot;:32,&quot;./ConvertWorker&quot;:24,&quot;./GenericWorker&quot;:28}],30:[function(m,p,x){if(x.base64=!0,x.array=!0,x.string=!0,x.arraybuffer=typeof ArrayBuffer&lt;&quot;u&quot;&amp;&amp;typeof Uint8Array&lt;&quot;u&quot;,x.nodebuffer=u!==void 0,x.uint8array=typeof Uint8Array&lt;&quot;u&quot;,typeof ArrayBuffer&gt;&quot;u&quot;)x.blob=!1;else{var g=new ArrayBuffer(0);try{x.blob=new Blob([g],{type:&quot;application/zip&quot;}).size===0}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);y.append(g),x.blob=y.getBlob(&quot;application/zip&quot;).size===0}catch{x.blob=!1}}}try{x.nodestream=!!m(&quot;readable-stream&quot;).Readable}catch{x.nodestream=!1}},{&quot;readable-stream&quot;:16}],31:[function(m,p,x){for(var g=m(&quot;./utils&quot;),y=m(&quot;./support&quot;),v=m(&quot;./nodejsUtils&quot;),_=m(&quot;./stream/GenericWorker&quot;),S=new Array(256),A=0;A&lt;256;A++)S[A]=252&lt;=A?6:248&lt;=A?5:240&lt;=A?4:224&lt;=A?3:192&lt;=A?2:1;function I(){_.call(this,&quot;utf-8 decode&quot;),this.leftOver=null}function V(){_.call(this,&quot;utf-8 encode&quot;)}S[254]=S[254]=1,x.utf8encode=function(F){return y.nodebuffer?v.newBufferFrom(F,&quot;utf-8&quot;):(function(q){var H,B,K,T,L,E=q.length,j=0;for(T=0;T&lt;E;T++)(64512&amp;(B=q.charCodeAt(T)))==55296&amp;&amp;T+1&lt;E&amp;&amp;(64512&amp;(K=q.charCodeAt(T+1)))==56320&amp;&amp;(B=65536+(B-55296&lt;&lt;10)+(K-56320),T++),j+=B&lt;128?1:B&lt;2048?2:B&lt;65536?3:4;for(H=y.uint8array?new Uint8Array(j):new Array(j),T=L=0;L&lt;j;T++)(64512&amp;(B=q.charCodeAt(T)))==55296&amp;&amp;T+1&lt;E&amp;&amp;(64512&amp;(K=q.charCodeAt(T+1)))==56320&amp;&amp;(B=65536+(B-55296&lt;&lt;10)+(K-56320),T++),B&lt;128?H[L++]=B:(B&lt;2048?H[L++]=192|B&gt;&gt;&gt;6:(B&lt;65536?H[L++]=224|B&gt;&gt;&gt;12:(H[L++]=240|B&gt;&gt;&gt;18,H[L++]=128|B&gt;&gt;&gt;12&amp;63),H[L++]=128|B&gt;&gt;&gt;6&amp;63),H[L++]=128|63&amp;B);return H})(F)},x.utf8decode=function(F){return y.nodebuffer?g.transformTo(&quot;nodebuffer&quot;,F).toString(&quot;utf-8&quot;):(function(q){var H,B,K,T,L=q.length,E=new Array(2*L);for(H=B=0;H&lt;L;)if((K=q[H++])&lt;128)E[B++]=K;else if(4&lt;(T=S[K]))E[B++]=65533,H+=T-1;else{for(K&amp;=T===2?31:T===3?15:7;1&lt;T&amp;&amp;H&lt;L;)K=K&lt;&lt;6|63&amp;q[H++],T--;1&lt;T?E[B++]=65533:K&lt;65536?E[B++]=K:(K-=65536,E[B++]=55296|K&gt;&gt;10&amp;1023,E[B++]=56320|1023&amp;K)}return E.length!==B&amp;&amp;(E.subarray?E=E.subarray(0,B):E.length=B),g.applyFromCharCode(E)})(F=g.transformTo(y.uint8array?&quot;uint8array&quot;:&quot;array&quot;,F))},g.inherits(I,_),I.prototype.processChunk=function(F){var q=g.transformTo(y.uint8array?&quot;uint8array&quot;:&quot;array&quot;,F.data);if(this.leftOver&amp;&amp;this.leftOver.length){if(y.uint8array){var H=q;(q=new Uint8Array(H.length+this.leftOver.length)).set(this.leftOver,0),q.set(H,this.leftOver.length)}else q=this.leftOver.concat(q);this.leftOver=null}var B=(function(T,L){var E;for((L=L||T.length)&gt;T.length&amp;&amp;(L=T.length),E=L-1;0&lt;=E&amp;&amp;(192&amp;T[E])==128;)E--;return E&lt;0||E===0?L:E+S[T[E]]&gt;L?E:L})(q),K=q;B!==q.length&amp;&amp;(y.uint8array?(K=q.subarray(0,B),this.leftOver=q.subarray(B,q.length)):(K=q.slice(0,B),this.leftOver=q.slice(B,q.length))),this.push({data:x.utf8decode(K),meta:F.meta})},I.prototype.flush=function(){this.leftOver&amp;&amp;this.leftOver.length&amp;&amp;(this.push({data:x.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},x.Utf8DecodeWorker=I,g.inherits(V,_),V.prototype.processChunk=function(F){this.push({data:x.utf8encode(F.data),meta:F.meta})},x.Utf8EncodeWorker=V},{&quot;./nodejsUtils&quot;:14,&quot;./stream/GenericWorker&quot;:28,&quot;./support&quot;:30,&quot;./utils&quot;:32}],32:[function(m,p,x){var g=m(&quot;./support&quot;),y=m(&quot;./base64&quot;),v=m(&quot;./nodejsUtils&quot;),_=m(&quot;./external&quot;);function S(H){return H}function A(H,B){for(var K=0;K&lt;H.length;++K)B[K]=255&amp;H.charCodeAt(K);return B}m(&quot;setimmediate&quot;),x.newBlob=function(H,B){x.checkSupport(&quot;blob&quot;);try{return new Blob([H],{type:B})}catch{try{var K=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return K.append(H),K.getBlob(B)}catch{throw new Error(&quot;Bug : can&#039;t construct the Blob.&quot;)}}};var I={stringifyByChunk:function(H,B,K){var T=[],L=0,E=H.length;if(E&lt;=K)return String.fromCharCode.apply(null,H);for(;L&lt;E;)B===&quot;array&quot;||B===&quot;nodebuffer&quot;?T.push(String.fromCharCode.apply(null,H.slice(L,Math.min(L+K,E)))):T.push(String.fromCharCode.apply(null,H.subarray(L,Math.min(L+K,E)))),L+=K;return T.join(&quot;&quot;)},stringifyByChar:function(H){for(var B=&quot;&quot;,K=0;K&lt;H.length;K++)B+=String.fromCharCode(H[K]);return B},applyCanBeUsed:{uint8array:(function(){try{return g.uint8array&amp;&amp;String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return g.nodebuffer&amp;&amp;String.fromCharCode.apply(null,v.allocBuffer(1)).length===1}catch{return!1}})()}};function V(H){var B=65536,K=x.getTypeOf(H),T=!0;if(K===&quot;uint8array&quot;?T=I.applyCanBeUsed.uint8array:K===&quot;nodebuffer&quot;&amp;&amp;(T=I.applyCanBeUsed.nodebuffer),T)for(;1&lt;B;)try{return I.stringifyByChunk(H,K,B)}catch{B=Math.floor(B/2)}return I.stringifyByChar(H)}function F(H,B){for(var K=0;K&lt;H.length;K++)B[K]=H[K];return B}x.applyFromCharCode=V;var q={};q.string={string:S,array:function(H){return A(H,new Array(H.length))},arraybuffer:function(H){return q.string.uint8array(H).buffer},uint8array:function(H){return A(H,new Uint8Array(H.length))},nodebuffer:function(H){return A(H,v.allocBuffer(H.length))}},q.array={string:V,array:S,arraybuffer:function(H){return new Uint8Array(H).buffer},uint8array:function(H){return new Uint8Array(H)},nodebuffer:function(H){return v.newBufferFrom(H)}},q.arraybuffer={string:function(H){return V(new Uint8Array(H))},array:function(H){return F(new Uint8Array(H),new Array(H.byteLength))},arraybuffer:S,uint8array:function(H){return new Uint8Array(H)},nodebuffer:function(H){return v.newBufferFrom(new Uint8Array(H))}},q.uint8array={string:V,array:function(H){return F(H,new Array(H.length))},arraybuffer:function(H){return H.buffer},uint8array:S,nodebuffer:function(H){return v.newBufferFrom(H)}},q.nodebuffer={string:V,array:function(H){return F(H,new Array(H.length))},arraybuffer:function(H){return q.nodebuffer.uint8array(H).buffer},uint8array:function(H){return F(H,new Uint8Array(H.length))},nodebuffer:S},x.transformTo=function(H,B){if(B=B||&quot;&quot;,!H)return B;x.checkSupport(H);var K=x.getTypeOf(B);return q[K][H](B)},x.resolve=function(H){for(var B=H.split(&quot;/&quot;),K=[],T=0;T&lt;B.length;T++){var L=B[T];L===&quot;.&quot;||L===&quot;&quot;&amp;&amp;T!==0&amp;&amp;T!==B.length-1||(L===&quot;..&quot;?K.pop():K.push(L))}return K.join(&quot;/&quot;)},x.getTypeOf=function(H){return typeof H==&quot;string&quot;?&quot;string&quot;:Object.prototype.toString.call(H)===&quot;[object Array]&quot;?&quot;array&quot;:g.nodebuffer&amp;&amp;v.isBuffer(H)?&quot;nodebuffer&quot;:g.uint8array&amp;&amp;H instanceof Uint8Array?&quot;uint8array&quot;:g.arraybuffer&amp;&amp;H instanceof ArrayBuffer?&quot;arraybuffer&quot;:void 0},x.checkSupport=function(H){if(!g[H.toLowerCase()])throw new Error(H+&quot; is not supported by this platform&quot;)},x.MAX_VALUE_16BITS=65535,x.MAX_VALUE_32BITS=-1,x.pretty=function(H){var B,K,T=&quot;&quot;;for(K=0;K&lt;(H||&quot;&quot;).length;K++)T+=&quot;\\x&quot;+((B=H.charCodeAt(K))&lt;16?&quot;0&quot;:&quot;&quot;)+B.toString(16).toUpperCase();return T},x.delay=function(H,B,K){h((function(){H.apply(K||null,B||[])}))},x.inherits=function(H,B){function K(){}K.prototype=B.prototype,H.prototype=new K},x.extend=function(){var H,B,K={};for(H=0;H&lt;arguments.length;H++)for(B in arguments[H])Object.prototype.hasOwnProperty.call(arguments[H],B)&amp;&amp;K[B]===void 0&amp;&amp;(K[B]=arguments[H][B]);return K},x.prepareContent=function(H,B,K,T,L){return _.Promise.resolve(B).then((function(E){return g.blob&amp;&amp;(E instanceof Blob||[&quot;[object File]&quot;,&quot;[object Blob]&quot;].indexOf(Object.prototype.toString.call(E))!==-1)&amp;&amp;typeof FileReader&lt;&quot;u&quot;?new _.Promise((function(j,k){var N=new FileReader;N.onload=function(C){j(C.target.result)},N.onerror=function(C){k(C.target.error)},N.readAsArrayBuffer(E)})):E})).then((function(E){var j=x.getTypeOf(E);return j?(j===&quot;arraybuffer&quot;?E=x.transformTo(&quot;uint8array&quot;,E):j===&quot;string&quot;&amp;&amp;(L?E=y.decode(E):K&amp;&amp;T!==!0&amp;&amp;(E=(function(k){return A(k,g.uint8array?new Uint8Array(k.length):new Array(k.length))})(E))),E):_.Promise.reject(new Error(&quot;Can&#039;t read the data of &#039;&quot;+H+&quot;&#039;. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?&quot;))}))}},{&quot;./base64&quot;:1,&quot;./external&quot;:6,&quot;./nodejsUtils&quot;:14,&quot;./support&quot;:30,setimmediate:54}],33:[function(m,p,x){var g=m(&quot;./reader/readerFor&quot;),y=m(&quot;./utils&quot;),v=m(&quot;./signature&quot;),_=m(&quot;./zipEntry&quot;),S=m(&quot;./support&quot;);function A(I){this.files=[],this.loadOptions=I}A.prototype={checkSignature:function(I){if(!this.reader.readAndCheckSignature(I)){this.reader.index-=4;var V=this.reader.readString(4);throw new Error(&quot;Corrupted zip or bug: unexpected signature (&quot;+y.pretty(V)+&quot;, expected &quot;+y.pretty(I)+&quot;)&quot;)}},isSignature:function(I,V){var F=this.reader.index;this.reader.setIndex(I);var q=this.reader.readString(4)===V;return this.reader.setIndex(F),q},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var I=this.reader.readData(this.zipCommentLength),V=S.uint8array?&quot;uint8array&quot;:&quot;array&quot;,F=y.transformTo(V,I);this.zipComment=this.loadOptions.decodeFileName(F)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var I,V,F,q=this.zip64EndOfCentralSize-44;0&lt;q;)I=this.reader.readInt(2),V=this.reader.readInt(4),F=this.reader.readData(V),this.zip64ExtensibleData[I]={id:I,length:V,value:F}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1&lt;this.disksCount)throw new Error(&quot;Multi-volumes zip are not supported&quot;)},readLocalFiles:function(){var I,V;for(I=0;I&lt;this.files.length;I++)V=this.files[I],this.reader.setIndex(V.localHeaderOffset),this.checkSignature(v.LOCAL_FILE_HEADER),V.readLocalPart(this.reader),V.handleUTF8(),V.processAttributes()},readCentralDir:function(){var I;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(v.CENTRAL_FILE_HEADER);)(I=new _({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(I);if(this.centralDirRecords!==this.files.length&amp;&amp;this.centralDirRecords!==0&amp;&amp;this.files.length===0)throw new Error(&quot;Corrupted zip or bug: expected &quot;+this.centralDirRecords+&quot; records in central dir, got &quot;+this.files.length)},readEndOfCentral:function(){var I=this.reader.lastIndexOfSignature(v.CENTRAL_DIRECTORY_END);if(I&lt;0)throw this.isSignature(0,v.LOCAL_FILE_HEADER)?new Error(&quot;Corrupted zip: can&#039;t find end of central directory&quot;):new Error(&quot;Can&#039;t find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html&quot;);this.reader.setIndex(I);var V=I;if(this.checkSignature(v.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===y.MAX_VALUE_16BITS||this.diskWithCentralDirStart===y.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===y.MAX_VALUE_16BITS||this.centralDirRecords===y.MAX_VALUE_16BITS||this.centralDirSize===y.MAX_VALUE_32BITS||this.centralDirOffset===y.MAX_VALUE_32BITS){if(this.zip64=!0,(I=this.reader.lastIndexOfSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR))&lt;0)throw new Error(&quot;Corrupted zip: can&#039;t find the ZIP64 end of central directory locator&quot;);if(this.reader.setIndex(I),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,v.ZIP64_CENTRAL_DIRECTORY_END)&amp;&amp;(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(v.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir&lt;0))throw new Error(&quot;Corrupted zip: can&#039;t find the ZIP64 end of central directory&quot;);this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var F=this.centralDirOffset+this.centralDirSize;this.zip64&amp;&amp;(F+=20,F+=12+this.zip64EndOfCentralSize);var q=V-F;if(0&lt;q)this.isSignature(V,v.CENTRAL_FILE_HEADER)||(this.reader.zero=q);else if(q&lt;0)throw new Error(&quot;Corrupted zip: missing &quot;+Math.abs(q)+&quot; bytes.&quot;)},prepareReader:function(I){this.reader=g(I)},load:function(I){this.prepareReader(I),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},p.exports=A},{&quot;./reader/readerFor&quot;:22,&quot;./signature&quot;:23,&quot;./support&quot;:30,&quot;./utils&quot;:32,&quot;./zipEntry&quot;:34}],34:[function(m,p,x){var g=m(&quot;./reader/readerFor&quot;),y=m(&quot;./utils&quot;),v=m(&quot;./compressedObject&quot;),_=m(&quot;./crc32&quot;),S=m(&quot;./utf8&quot;),A=m(&quot;./compressions&quot;),I=m(&quot;./support&quot;);function V(F,q){this.options=F,this.loadOptions=q}V.prototype={isEncrypted:function(){return(1&amp;this.bitFlag)==1},useUTF8:function(){return(2048&amp;this.bitFlag)==2048},readLocalPart:function(F){var q,H;if(F.skip(22),this.fileNameLength=F.readInt(2),H=F.readInt(2),this.fileName=F.readData(this.fileNameLength),F.skip(H),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error(&quot;Bug or corrupted zip : didn&#039;t get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)&quot;);if((q=(function(B){for(var K in A)if(Object.prototype.hasOwnProperty.call(A,K)&amp;&amp;A[K].magic===B)return A[K];return null})(this.compressionMethod))===null)throw new Error(&quot;Corrupted zip : compression &quot;+y.pretty(this.compressionMethod)+&quot; unknown (inner file : &quot;+y.transformTo(&quot;string&quot;,this.fileName)+&quot;)&quot;);this.decompressed=new v(this.compressedSize,this.uncompressedSize,this.crc32,q,F.readData(this.compressedSize))},readCentralPart:function(F){this.versionMadeBy=F.readInt(2),F.skip(2),this.bitFlag=F.readInt(2),this.compressionMethod=F.readString(2),this.date=F.readDate(),this.crc32=F.readInt(4),this.compressedSize=F.readInt(4),this.uncompressedSize=F.readInt(4);var q=F.readInt(2);if(this.extraFieldsLength=F.readInt(2),this.fileCommentLength=F.readInt(2),this.diskNumberStart=F.readInt(2),this.internalFileAttributes=F.readInt(2),this.externalFileAttributes=F.readInt(4),this.localHeaderOffset=F.readInt(4),this.isEncrypted())throw new Error(&quot;Encrypted zip are not supported&quot;);F.skip(q),this.readExtraFields(F),this.parseZIP64ExtraField(F),this.fileComment=F.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var F=this.versionMadeBy&gt;&gt;8;this.dir=!!(16&amp;this.externalFileAttributes),F==0&amp;&amp;(this.dosPermissions=63&amp;this.externalFileAttributes),F==3&amp;&amp;(this.unixPermissions=this.externalFileAttributes&gt;&gt;16&amp;65535),this.dir||this.fileNameStr.slice(-1)!==&quot;/&quot;||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var F=g(this.extraFields[1].value);this.uncompressedSize===y.MAX_VALUE_32BITS&amp;&amp;(this.uncompressedSize=F.readInt(8)),this.compressedSize===y.MAX_VALUE_32BITS&amp;&amp;(this.compressedSize=F.readInt(8)),this.localHeaderOffset===y.MAX_VALUE_32BITS&amp;&amp;(this.localHeaderOffset=F.readInt(8)),this.diskNumberStart===y.MAX_VALUE_32BITS&amp;&amp;(this.diskNumberStart=F.readInt(4))}},readExtraFields:function(F){var q,H,B,K=F.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});F.index+4&lt;K;)q=F.readInt(2),H=F.readInt(2),B=F.readData(H),this.extraFields[q]={id:q,length:H,value:B};F.setIndex(K)},handleUTF8:function(){var F=I.uint8array?&quot;uint8array&quot;:&quot;array&quot;;if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var q=this.findExtraFieldUnicodePath();if(q!==null)this.fileNameStr=q;else{var H=y.transformTo(F,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(H)}var B=this.findExtraFieldUnicodeComment();if(B!==null)this.fileCommentStr=B;else{var K=y.transformTo(F,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var F=this.extraFields[28789];if(F){var q=g(F.value);return q.readInt(1)!==1||_(this.fileName)!==q.readInt(4)?null:S.utf8decode(q.readData(F.length-5))}return null},findExtraFieldUnicodeComment:function(){var F=this.extraFields[25461];if(F){var q=g(F.value);return q.readInt(1)!==1||_(this.fileComment)!==q.readInt(4)?null:S.utf8decode(q.readData(F.length-5))}return null}},p.exports=V},{&quot;./compressedObject&quot;:2,&quot;./compressions&quot;:3,&quot;./crc32&quot;:4,&quot;./reader/readerFor&quot;:22,&quot;./support&quot;:30,&quot;./utf8&quot;:31,&quot;./utils&quot;:32}],35:[function(m,p,x){function g(q,H,B){this.name=q,this.dir=B.dir,this.date=B.date,this.comment=B.comment,this.unixPermissions=B.unixPermissions,this.dosPermissions=B.dosPermissions,this._data=H,this._dataBinary=B.binary,this.options={compression:B.compression,compressionOptions:B.compressionOptions}}var y=m(&quot;./stream/StreamHelper&quot;),v=m(&quot;./stream/DataWorker&quot;),_=m(&quot;./utf8&quot;),S=m(&quot;./compressedObject&quot;),A=m(&quot;./stream/GenericWorker&quot;);g.prototype={internalStream:function(q){var H=null,B=&quot;string&quot;;try{if(!q)throw new Error(&quot;No output type specified.&quot;);var K=(B=q.toLowerCase())===&quot;string&quot;||B===&quot;text&quot;;B!==&quot;binarystring&quot;&amp;&amp;B!==&quot;text&quot;||(B=&quot;string&quot;),H=this._decompressWorker();var T=!this._dataBinary;T&amp;&amp;!K&amp;&amp;(H=H.pipe(new _.Utf8EncodeWorker)),!T&amp;&amp;K&amp;&amp;(H=H.pipe(new _.Utf8DecodeWorker))}catch(L){(H=new A(&quot;error&quot;)).error(L)}return new y(H,B,&quot;&quot;)},async:function(q,H){return this.internalStream(q).accumulate(H)},nodeStream:function(q,H){return this.internalStream(q||&quot;nodebuffer&quot;).toNodejsStream(H)},_compressWorker:function(q,H){if(this._data instanceof S&amp;&amp;this._data.compression.magic===q.magic)return this._data.getCompressedWorker();var B=this._decompressWorker();return this._dataBinary||(B=B.pipe(new _.Utf8EncodeWorker)),S.createWorkerFrom(B,q,H)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof A?this._data:new v(this._data)}};for(var I=[&quot;asText&quot;,&quot;asBinary&quot;,&quot;asNodeBuffer&quot;,&quot;asUint8Array&quot;,&quot;asArrayBuffer&quot;],V=function(){throw new Error(&quot;This method has been removed in JSZip 3.0, please check the upgrade guide.&quot;)},F=0;F&lt;I.length;F++)g.prototype[I[F]]=V;p.exports=g},{&quot;./compressedObject&quot;:2,&quot;./stream/DataWorker&quot;:27,&quot;./stream/GenericWorker&quot;:28,&quot;./stream/StreamHelper&quot;:29,&quot;./utf8&quot;:31}],36:[function(m,p,x){(function(g){var y,v,_=g.MutationObserver||g.WebKitMutationObserver;if(_){var S=0,A=new _(q),I=g.document.createTextNode(&quot;&quot;);A.observe(I,{characterData:!0}),y=function(){I.data=S=++S%2}}else if(g.setImmediate||g.MessageChannel===void 0)y=&quot;document&quot;in g&amp;&amp;&quot;onreadystatechange&quot;in g.document.createElement(&quot;script&quot;)?function(){var H=g.document.createElement(&quot;script&quot;);H.onreadystatechange=function(){q(),H.onreadystatechange=null,H.parentNode.removeChild(H),H=null},g.document.documentElement.appendChild(H)}:function(){setTimeout(q,0)};else{var V=new g.MessageChannel;V.port1.onmessage=q,y=function(){V.port2.postMessage(0)}}var F=[];function q(){var H,B;v=!0;for(var K=F.length;K;){for(B=F,F=[],H=-1;++H&lt;K;)B[H]();K=F.length}v=!1}p.exports=function(H){F.push(H)!==1||v||y()}}).call(this,l!==void 0?l:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{}],37:[function(m,p,x){var g=m(&quot;immediate&quot;);function y(){}var v={},_=[&quot;REJECTED&quot;],S=[&quot;FULFILLED&quot;],A=[&quot;PENDING&quot;];function I(K){if(typeof K!=&quot;function&quot;)throw new TypeError(&quot;resolver must be a function&quot;);this.state=A,this.queue=[],this.outcome=void 0,K!==y&amp;&amp;H(this,K)}function V(K,T,L){this.promise=K,typeof T==&quot;function&quot;&amp;&amp;(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof L==&quot;function&quot;&amp;&amp;(this.onRejected=L,this.callRejected=this.otherCallRejected)}function F(K,T,L){g((function(){var E;try{E=T(L)}catch(j){return v.reject(K,j)}E===K?v.reject(K,new TypeError(&quot;Cannot resolve promise with itself&quot;)):v.resolve(K,E)}))}function q(K){var T=K&amp;&amp;K.then;if(K&amp;&amp;(typeof K==&quot;object&quot;||typeof K==&quot;function&quot;)&amp;&amp;typeof T==&quot;function&quot;)return function(){T.apply(K,arguments)}}function H(K,T){var L=!1;function E(N){L||(L=!0,v.reject(K,N))}function j(N){L||(L=!0,v.resolve(K,N))}var k=B((function(){T(j,E)}));k.status===&quot;error&quot;&amp;&amp;E(k.value)}function B(K,T){var L={};try{L.value=K(T),L.status=&quot;success&quot;}catch(E){L.status=&quot;error&quot;,L.value=E}return L}(p.exports=I).prototype.finally=function(K){if(typeof K!=&quot;function&quot;)return this;var T=this.constructor;return this.then((function(L){return T.resolve(K()).then((function(){return L}))}),(function(L){return T.resolve(K()).then((function(){throw L}))}))},I.prototype.catch=function(K){return this.then(null,K)},I.prototype.then=function(K,T){if(typeof K!=&quot;function&quot;&amp;&amp;this.state===S||typeof T!=&quot;function&quot;&amp;&amp;this.state===_)return this;var L=new this.constructor(y);return this.state!==A?F(L,this.state===S?K:T,this.outcome):this.queue.push(new V(L,K,T)),L},V.prototype.callFulfilled=function(K){v.resolve(this.promise,K)},V.prototype.otherCallFulfilled=function(K){F(this.promise,this.onFulfilled,K)},V.prototype.callRejected=function(K){v.reject(this.promise,K)},V.prototype.otherCallRejected=function(K){F(this.promise,this.onRejected,K)},v.resolve=function(K,T){var L=B(q,T);if(L.status===&quot;error&quot;)return v.reject(K,L.value);var E=L.value;if(E)H(K,E);else{K.state=S,K.outcome=T;for(var j=-1,k=K.queue.length;++j&lt;k;)K.queue[j].callFulfilled(T)}return K},v.reject=function(K,T){K.state=_,K.outcome=T;for(var L=-1,E=K.queue.length;++L&lt;E;)K.queue[L].callRejected(T);return K},I.resolve=function(K){return K instanceof this?K:v.resolve(new this(y),K)},I.reject=function(K){var T=new this(y);return v.reject(T,K)},I.all=function(K){var T=this;if(Object.prototype.toString.call(K)!==&quot;[object Array]&quot;)return this.reject(new TypeError(&quot;must be an array&quot;));var L=K.length,E=!1;if(!L)return this.resolve([]);for(var j=new Array(L),k=0,N=-1,C=new this(y);++N&lt;L;)P(K[N],N);return C;function P(D,z){T.resolve(D).then((function(Y){j[z]=Y,++k!==L||E||(E=!0,v.resolve(C,j))}),(function(Y){E||(E=!0,v.reject(C,Y))}))}},I.race=function(K){if(Object.prototype.toString.call(K)!==&quot;[object Array]&quot;)return this.reject(new TypeError(&quot;must be an array&quot;));var T=K.length,L=!1;if(!T)return this.resolve([]);for(var E,j=-1,k=new this(y);++j&lt;T;)E=K[j],this.resolve(E).then((function(N){L||(L=!0,v.resolve(k,N))}),(function(N){L||(L=!0,v.reject(k,N))}));return k}},{immediate:36}],38:[function(m,p,x){var g={};(0,m(&quot;./lib/utils/common&quot;).assign)(g,m(&quot;./lib/deflate&quot;),m(&quot;./lib/inflate&quot;),m(&quot;./lib/zlib/constants&quot;)),p.exports=g},{&quot;./lib/deflate&quot;:39,&quot;./lib/inflate&quot;:40,&quot;./lib/utils/common&quot;:41,&quot;./lib/zlib/constants&quot;:44}],39:[function(m,p,x){var g=m(&quot;./zlib/deflate&quot;),y=m(&quot;./utils/common&quot;),v=m(&quot;./utils/strings&quot;),_=m(&quot;./zlib/messages&quot;),S=m(&quot;./zlib/zstream&quot;),A=Object.prototype.toString;function I(F){if(!(this instanceof I))return new I(F);this.options=y.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:&quot;&quot;},F||{});var q=this.options;q.raw&amp;&amp;0&lt;q.windowBits?q.windowBits=-q.windowBits:q.gzip&amp;&amp;0&lt;q.windowBits&amp;&amp;q.windowBits&lt;16&amp;&amp;(q.windowBits+=16),this.err=0,this.msg=&quot;&quot;,this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var H=g.deflateInit2(this.strm,q.level,q.method,q.windowBits,q.memLevel,q.strategy);if(H!==0)throw new Error(_[H]);if(q.header&amp;&amp;g.deflateSetHeader(this.strm,q.header),q.dictionary){var B;if(B=typeof q.dictionary==&quot;string&quot;?v.string2buf(q.dictionary):A.call(q.dictionary)===&quot;[object ArrayBuffer]&quot;?new Uint8Array(q.dictionary):q.dictionary,(H=g.deflateSetDictionary(this.strm,B))!==0)throw new Error(_[H]);this._dict_set=!0}}function V(F,q){var H=new I(q);if(H.push(F,!0),H.err)throw H.msg||_[H.err];return H.result}I.prototype.push=function(F,q){var H,B,K=this.strm,T=this.options.chunkSize;if(this.ended)return!1;B=q===~~q?q:q===!0?4:0,typeof F==&quot;string&quot;?K.input=v.string2buf(F):A.call(F)===&quot;[object ArrayBuffer]&quot;?K.input=new Uint8Array(F):K.input=F,K.next_in=0,K.avail_in=K.input.length;do{if(K.avail_out===0&amp;&amp;(K.output=new y.Buf8(T),K.next_out=0,K.avail_out=T),(H=g.deflate(K,B))!==1&amp;&amp;H!==0)return this.onEnd(H),!(this.ended=!0);K.avail_out!==0&amp;&amp;(K.avail_in!==0||B!==4&amp;&amp;B!==2)||(this.options.to===&quot;string&quot;?this.onData(v.buf2binstring(y.shrinkBuf(K.output,K.next_out))):this.onData(y.shrinkBuf(K.output,K.next_out)))}while((0&lt;K.avail_in||K.avail_out===0)&amp;&amp;H!==1);return B===4?(H=g.deflateEnd(this.strm),this.onEnd(H),this.ended=!0,H===0):B!==2||(this.onEnd(0),!(K.avail_out=0))},I.prototype.onData=function(F){this.chunks.push(F)},I.prototype.onEnd=function(F){F===0&amp;&amp;(this.options.to===&quot;string&quot;?this.result=this.chunks.join(&quot;&quot;):this.result=y.flattenChunks(this.chunks)),this.chunks=[],this.err=F,this.msg=this.strm.msg},x.Deflate=I,x.deflate=V,x.deflateRaw=function(F,q){return(q=q||{}).raw=!0,V(F,q)},x.gzip=function(F,q){return(q=q||{}).gzip=!0,V(F,q)}},{&quot;./utils/common&quot;:41,&quot;./utils/strings&quot;:42,&quot;./zlib/deflate&quot;:46,&quot;./zlib/messages&quot;:51,&quot;./zlib/zstream&quot;:53}],40:[function(m,p,x){var g=m(&quot;./zlib/inflate&quot;),y=m(&quot;./utils/common&quot;),v=m(&quot;./utils/strings&quot;),_=m(&quot;./zlib/constants&quot;),S=m(&quot;./zlib/messages&quot;),A=m(&quot;./zlib/zstream&quot;),I=m(&quot;./zlib/gzheader&quot;),V=Object.prototype.toString;function F(H){if(!(this instanceof F))return new F(H);this.options=y.assign({chunkSize:16384,windowBits:0,to:&quot;&quot;},H||{});var B=this.options;B.raw&amp;&amp;0&lt;=B.windowBits&amp;&amp;B.windowBits&lt;16&amp;&amp;(B.windowBits=-B.windowBits,B.windowBits===0&amp;&amp;(B.windowBits=-15)),!(0&lt;=B.windowBits&amp;&amp;B.windowBits&lt;16)||H&amp;&amp;H.windowBits||(B.windowBits+=32),15&lt;B.windowBits&amp;&amp;B.windowBits&lt;48&amp;&amp;(15&amp;B.windowBits)==0&amp;&amp;(B.windowBits|=15),this.err=0,this.msg=&quot;&quot;,this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var K=g.inflateInit2(this.strm,B.windowBits);if(K!==_.Z_OK)throw new Error(S[K]);this.header=new I,g.inflateGetHeader(this.strm,this.header)}function q(H,B){var K=new F(B);if(K.push(H,!0),K.err)throw K.msg||S[K.err];return K.result}F.prototype.push=function(H,B){var K,T,L,E,j,k,N=this.strm,C=this.options.chunkSize,P=this.options.dictionary,D=!1;if(this.ended)return!1;T=B===~~B?B:B===!0?_.Z_FINISH:_.Z_NO_FLUSH,typeof H==&quot;string&quot;?N.input=v.binstring2buf(H):V.call(H)===&quot;[object ArrayBuffer]&quot;?N.input=new Uint8Array(H):N.input=H,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&amp;&amp;(N.output=new y.Buf8(C),N.next_out=0,N.avail_out=C),(K=g.inflate(N,_.Z_NO_FLUSH))===_.Z_NEED_DICT&amp;&amp;P&amp;&amp;(k=typeof P==&quot;string&quot;?v.string2buf(P):V.call(P)===&quot;[object ArrayBuffer]&quot;?new Uint8Array(P):P,K=g.inflateSetDictionary(this.strm,k)),K===_.Z_BUF_ERROR&amp;&amp;D===!0&amp;&amp;(K=_.Z_OK,D=!1),K!==_.Z_STREAM_END&amp;&amp;K!==_.Z_OK)return this.onEnd(K),!(this.ended=!0);N.next_out&amp;&amp;(N.avail_out!==0&amp;&amp;K!==_.Z_STREAM_END&amp;&amp;(N.avail_in!==0||T!==_.Z_FINISH&amp;&amp;T!==_.Z_SYNC_FLUSH)||(this.options.to===&quot;string&quot;?(L=v.utf8border(N.output,N.next_out),E=N.next_out-L,j=v.buf2string(N.output,L),N.next_out=E,N.avail_out=C-E,E&amp;&amp;y.arraySet(N.output,N.output,L,E,0),this.onData(j)):this.onData(y.shrinkBuf(N.output,N.next_out)))),N.avail_in===0&amp;&amp;N.avail_out===0&amp;&amp;(D=!0)}while((0&lt;N.avail_in||N.avail_out===0)&amp;&amp;K!==_.Z_STREAM_END);return K===_.Z_STREAM_END&amp;&amp;(T=_.Z_FINISH),T===_.Z_FINISH?(K=g.inflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===_.Z_OK):T!==_.Z_SYNC_FLUSH||(this.onEnd(_.Z_OK),!(N.avail_out=0))},F.prototype.onData=function(H){this.chunks.push(H)},F.prototype.onEnd=function(H){H===_.Z_OK&amp;&amp;(this.options.to===&quot;string&quot;?this.result=this.chunks.join(&quot;&quot;):this.result=y.flattenChunks(this.chunks)),this.chunks=[],this.err=H,this.msg=this.strm.msg},x.Inflate=F,x.inflate=q,x.inflateRaw=function(H,B){return(B=B||{}).raw=!0,q(H,B)},x.ungzip=q},{&quot;./utils/common&quot;:41,&quot;./utils/strings&quot;:42,&quot;./zlib/constants&quot;:44,&quot;./zlib/gzheader&quot;:47,&quot;./zlib/inflate&quot;:49,&quot;./zlib/messages&quot;:51,&quot;./zlib/zstream&quot;:53}],41:[function(m,p,x){var g=typeof Uint8Array&lt;&quot;u&quot;&amp;&amp;typeof Uint16Array&lt;&quot;u&quot;&amp;&amp;typeof Int32Array&lt;&quot;u&quot;;x.assign=function(_){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var A=S.shift();if(A){if(typeof A!=&quot;object&quot;)throw new TypeError(A+&quot;must be non-object&quot;);for(var I in A)A.hasOwnProperty(I)&amp;&amp;(_[I]=A[I])}}return _},x.shrinkBuf=function(_,S){return _.length===S?_:_.subarray?_.subarray(0,S):(_.length=S,_)};var y={arraySet:function(_,S,A,I,V){if(S.subarray&amp;&amp;_.subarray)_.set(S.subarray(A,A+I),V);else for(var F=0;F&lt;I;F++)_[V+F]=S[A+F]},flattenChunks:function(_){var S,A,I,V,F,q;for(S=I=0,A=_.length;S&lt;A;S++)I+=_[S].length;for(q=new Uint8Array(I),S=V=0,A=_.length;S&lt;A;S++)F=_[S],q.set(F,V),V+=F.length;return q}},v={arraySet:function(_,S,A,I,V){for(var F=0;F&lt;I;F++)_[V+F]=S[A+F]},flattenChunks:function(_){return[].concat.apply([],_)}};x.setTyped=function(_){_?(x.Buf8=Uint8Array,x.Buf16=Uint16Array,x.Buf32=Int32Array,x.assign(x,y)):(x.Buf8=Array,x.Buf16=Array,x.Buf32=Array,x.assign(x,v))},x.setTyped(g)},{}],42:[function(m,p,x){var g=m(&quot;./common&quot;),y=!0,v=!0;try{String.fromCharCode.apply(null,[0])}catch{y=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{v=!1}for(var _=new g.Buf8(256),S=0;S&lt;256;S++)_[S]=252&lt;=S?6:248&lt;=S?5:240&lt;=S?4:224&lt;=S?3:192&lt;=S?2:1;function A(I,V){if(V&lt;65537&amp;&amp;(I.subarray&amp;&amp;v||!I.subarray&amp;&amp;y))return String.fromCharCode.apply(null,g.shrinkBuf(I,V));for(var F=&quot;&quot;,q=0;q&lt;V;q++)F+=String.fromCharCode(I[q]);return F}_[254]=_[254]=1,x.string2buf=function(I){var V,F,q,H,B,K=I.length,T=0;for(H=0;H&lt;K;H++)(64512&amp;(F=I.charCodeAt(H)))==55296&amp;&amp;H+1&lt;K&amp;&amp;(64512&amp;(q=I.charCodeAt(H+1)))==56320&amp;&amp;(F=65536+(F-55296&lt;&lt;10)+(q-56320),H++),T+=F&lt;128?1:F&lt;2048?2:F&lt;65536?3:4;for(V=new g.Buf8(T),H=B=0;B&lt;T;H++)(64512&amp;(F=I.charCodeAt(H)))==55296&amp;&amp;H+1&lt;K&amp;&amp;(64512&amp;(q=I.charCodeAt(H+1)))==56320&amp;&amp;(F=65536+(F-55296&lt;&lt;10)+(q-56320),H++),F&lt;128?V[B++]=F:(F&lt;2048?V[B++]=192|F&gt;&gt;&gt;6:(F&lt;65536?V[B++]=224|F&gt;&gt;&gt;12:(V[B++]=240|F&gt;&gt;&gt;18,V[B++]=128|F&gt;&gt;&gt;12&amp;63),V[B++]=128|F&gt;&gt;&gt;6&amp;63),V[B++]=128|63&amp;F);return V},x.buf2binstring=function(I){return A(I,I.length)},x.binstring2buf=function(I){for(var V=new g.Buf8(I.length),F=0,q=V.length;F&lt;q;F++)V[F]=I.charCodeAt(F);return V},x.buf2string=function(I,V){var F,q,H,B,K=V||I.length,T=new Array(2*K);for(F=q=0;F&lt;K;)if((H=I[F++])&lt;128)T[q++]=H;else if(4&lt;(B=_[H]))T[q++]=65533,F+=B-1;else{for(H&amp;=B===2?31:B===3?15:7;1&lt;B&amp;&amp;F&lt;K;)H=H&lt;&lt;6|63&amp;I[F++],B--;1&lt;B?T[q++]=65533:H&lt;65536?T[q++]=H:(H-=65536,T[q++]=55296|H&gt;&gt;10&amp;1023,T[q++]=56320|1023&amp;H)}return A(T,q)},x.utf8border=function(I,V){var F;for((V=V||I.length)&gt;I.length&amp;&amp;(V=I.length),F=V-1;0&lt;=F&amp;&amp;(192&amp;I[F])==128;)F--;return F&lt;0||F===0?V:F+_[I[F]]&gt;V?F:V}},{&quot;./common&quot;:41}],43:[function(m,p,x){p.exports=function(g,y,v,_){for(var S=65535&amp;g|0,A=g&gt;&gt;&gt;16&amp;65535|0,I=0;v!==0;){for(v-=I=2e3&lt;v?2e3:v;A=A+(S=S+y[_++]|0)|0,--I;);S%=65521,A%=65521}return S|A&lt;&lt;16|0}},{}],44:[function(m,p,x){p.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(m,p,x){var g=(function(){for(var y,v=[],_=0;_&lt;256;_++){y=_;for(var S=0;S&lt;8;S++)y=1&amp;y?3988292384^y&gt;&gt;&gt;1:y&gt;&gt;&gt;1;v[_]=y}return v})();p.exports=function(y,v,_,S){var A=g,I=S+_;y^=-1;for(var V=S;V&lt;I;V++)y=y&gt;&gt;&gt;8^A[255&amp;(y^v[V])];return-1^y}},{}],46:[function(m,p,x){var g,y=m(&quot;../utils/common&quot;),v=m(&quot;./trees&quot;),_=m(&quot;./adler32&quot;),S=m(&quot;./crc32&quot;),A=m(&quot;./messages&quot;),I=-2,V=258,F=262,q=113;function H(U,J){return U.msg=A[J],J}function B(U){return(U&lt;&lt;1)-(4&lt;U?9:0)}function K(U){for(var J=U.length;0&lt;=--J;)U[J]=0}function T(U){var J=U.state,$=J.pending;$&gt;U.avail_out&amp;&amp;($=U.avail_out),$!==0&amp;&amp;(y.arraySet(U.output,J.pending_buf,J.pending_out,$,U.next_out),U.next_out+=$,J.pending_out+=$,U.total_out+=$,U.avail_out-=$,J.pending-=$,J.pending===0&amp;&amp;(J.pending_out=0))}function L(U,J){v._tr_flush_block(U,0&lt;=U.block_start?U.block_start:-1,U.strstart-U.block_start,J),U.block_start=U.strstart,T(U.strm)}function E(U,J){U.pending_buf[U.pending++]=J}function j(U,J){U.pending_buf[U.pending++]=J&gt;&gt;&gt;8&amp;255,U.pending_buf[U.pending++]=255&amp;J}function k(U,J){var $,R,X=U.max_chain_length,re=U.strstart,Q=U.prev_length,te=U.nice_match,ie=U.strstart&gt;U.w_size-F?U.strstart-(U.w_size-F):0,de=U.window,ce=U.w_mask,se=U.prev,fe=U.strstart+V,le=de[re+Q-1],ge=de[re+Q];U.prev_length&gt;=U.good_match&amp;&amp;(X&gt;&gt;=2),te&gt;U.lookahead&amp;&amp;(te=U.lookahead);do if(de[($=J)+Q]===ge&amp;&amp;de[$+Q-1]===le&amp;&amp;de[$]===de[re]&amp;&amp;de[++$]===de[re+1]){re+=2,$++;do;while(de[++re]===de[++$]&amp;&amp;de[++re]===de[++$]&amp;&amp;de[++re]===de[++$]&amp;&amp;de[++re]===de[++$]&amp;&amp;de[++re]===de[++$]&amp;&amp;de[++re]===de[++$]&amp;&amp;de[++re]===de[++$]&amp;&amp;de[++re]===de[++$]&amp;&amp;re&lt;fe);if(R=V-(fe-re),re=fe-V,Q&lt;R){if(U.match_start=J,te&lt;=(Q=R))break;le=de[re+Q-1],ge=de[re+Q]}}while((J=se[J&amp;ce])&gt;ie&amp;&amp;--X!=0);return Q&lt;=U.lookahead?Q:U.lookahead}function N(U){var J,$,R,X,re,Q,te,ie,de,ce,se=U.w_size;do{if(X=U.window_size-U.lookahead-U.strstart,U.strstart&gt;=se+(se-F)){for(y.arraySet(U.window,U.window,se,se,0),U.match_start-=se,U.strstart-=se,U.block_start-=se,J=$=U.hash_size;R=U.head[--J],U.head[J]=se&lt;=R?R-se:0,--$;);for(J=$=se;R=U.prev[--J],U.prev[J]=se&lt;=R?R-se:0,--$;);X+=se}if(U.strm.avail_in===0)break;if(Q=U.strm,te=U.window,ie=U.strstart+U.lookahead,ce=void 0,(de=X)&lt;(ce=Q.avail_in)&amp;&amp;(ce=de),$=ce===0?0:(Q.avail_in-=ce,y.arraySet(te,Q.input,Q.next_in,ce,ie),Q.state.wrap===1?Q.adler=_(Q.adler,te,ce,ie):Q.state.wrap===2&amp;&amp;(Q.adler=S(Q.adler,te,ce,ie)),Q.next_in+=ce,Q.total_in+=ce,ce),U.lookahead+=$,U.lookahead+U.insert&gt;=3)for(re=U.strstart-U.insert,U.ins_h=U.window[re],U.ins_h=(U.ins_h&lt;&lt;U.hash_shift^U.window[re+1])&amp;U.hash_mask;U.insert&amp;&amp;(U.ins_h=(U.ins_h&lt;&lt;U.hash_shift^U.window[re+3-1])&amp;U.hash_mask,U.prev[re&amp;U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=re,re++,U.insert--,!(U.lookahead+U.insert&lt;3)););}while(U.lookahead&lt;F&amp;&amp;U.strm.avail_in!==0)}function C(U,J){for(var $,R;;){if(U.lookahead&lt;F){if(N(U),U.lookahead&lt;F&amp;&amp;J===0)return 1;if(U.lookahead===0)break}if($=0,U.lookahead&gt;=3&amp;&amp;(U.ins_h=(U.ins_h&lt;&lt;U.hash_shift^U.window[U.strstart+3-1])&amp;U.hash_mask,$=U.prev[U.strstart&amp;U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),$!==0&amp;&amp;U.strstart-$&lt;=U.w_size-F&amp;&amp;(U.match_length=k(U,$)),U.match_length&gt;=3)if(R=v._tr_tally(U,U.strstart-U.match_start,U.match_length-3),U.lookahead-=U.match_length,U.match_length&lt;=U.max_lazy_match&amp;&amp;U.lookahead&gt;=3){for(U.match_length--;U.strstart++,U.ins_h=(U.ins_h&lt;&lt;U.hash_shift^U.window[U.strstart+3-1])&amp;U.hash_mask,$=U.prev[U.strstart&amp;U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart,--U.match_length!=0;);U.strstart++}else U.strstart+=U.match_length,U.match_length=0,U.ins_h=U.window[U.strstart],U.ins_h=(U.ins_h&lt;&lt;U.hash_shift^U.window[U.strstart+1])&amp;U.hash_mask;else R=v._tr_tally(U,0,U.window[U.strstart]),U.lookahead--,U.strstart++;if(R&amp;&amp;(L(U,!1),U.strm.avail_out===0))return 1}return U.insert=U.strstart&lt;2?U.strstart:2,J===4?(L(U,!0),U.strm.avail_out===0?3:4):U.last_lit&amp;&amp;(L(U,!1),U.strm.avail_out===0)?1:2}function P(U,J){for(var $,R,X;;){if(U.lookahead&lt;F){if(N(U),U.lookahead&lt;F&amp;&amp;J===0)return 1;if(U.lookahead===0)break}if($=0,U.lookahead&gt;=3&amp;&amp;(U.ins_h=(U.ins_h&lt;&lt;U.hash_shift^U.window[U.strstart+3-1])&amp;U.hash_mask,$=U.prev[U.strstart&amp;U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),U.prev_length=U.match_length,U.prev_match=U.match_start,U.match_length=2,$!==0&amp;&amp;U.prev_length&lt;U.max_lazy_match&amp;&amp;U.strstart-$&lt;=U.w_size-F&amp;&amp;(U.match_length=k(U,$),U.match_length&lt;=5&amp;&amp;(U.strategy===1||U.match_length===3&amp;&amp;4096&lt;U.strstart-U.match_start)&amp;&amp;(U.match_length=2)),U.prev_length&gt;=3&amp;&amp;U.match_length&lt;=U.prev_length){for(X=U.strstart+U.lookahead-3,R=v._tr_tally(U,U.strstart-1-U.prev_match,U.prev_length-3),U.lookahead-=U.prev_length-1,U.prev_length-=2;++U.strstart&lt;=X&amp;&amp;(U.ins_h=(U.ins_h&lt;&lt;U.hash_shift^U.window[U.strstart+3-1])&amp;U.hash_mask,$=U.prev[U.strstart&amp;U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),--U.prev_length!=0;);if(U.match_available=0,U.match_length=2,U.strstart++,R&amp;&amp;(L(U,!1),U.strm.avail_out===0))return 1}else if(U.match_available){if((R=v._tr_tally(U,0,U.window[U.strstart-1]))&amp;&amp;L(U,!1),U.strstart++,U.lookahead--,U.strm.avail_out===0)return 1}else U.match_available=1,U.strstart++,U.lookahead--}return U.match_available&amp;&amp;(R=v._tr_tally(U,0,U.window[U.strstart-1]),U.match_available=0),U.insert=U.strstart&lt;2?U.strstart:2,J===4?(L(U,!0),U.strm.avail_out===0?3:4):U.last_lit&amp;&amp;(L(U,!1),U.strm.avail_out===0)?1:2}function D(U,J,$,R,X){this.good_length=U,this.max_lazy=J,this.nice_length=$,this.max_chain=R,this.func=X}function z(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new y.Buf16(1146),this.dyn_dtree=new y.Buf16(122),this.bl_tree=new y.Buf16(78),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y.Buf16(16),this.heap=new y.Buf16(573),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y.Buf16(573),K(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Y(U){var J;return U&amp;&amp;U.state?(U.total_in=U.total_out=0,U.data_type=2,(J=U.state).pending=0,J.pending_out=0,J.wrap&lt;0&amp;&amp;(J.wrap=-J.wrap),J.status=J.wrap?42:q,U.adler=J.wrap===2?0:1,J.last_flush=0,v._tr_init(J),0):H(U,I)}function Z(U){var J=Y(U);return J===0&amp;&amp;(function($){$.window_size=2*$.w_size,K($.head),$.max_lazy_match=g[$.level].max_lazy,$.good_match=g[$.level].good_length,$.nice_match=g[$.level].nice_length,$.max_chain_length=g[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=2,$.match_available=0,$.ins_h=0})(U.state),J}function ne(U,J,$,R,X,re){if(!U)return I;var Q=1;if(J===-1&amp;&amp;(J=6),R&lt;0?(Q=0,R=-R):15&lt;R&amp;&amp;(Q=2,R-=16),X&lt;1||9&lt;X||$!==8||R&lt;8||15&lt;R||J&lt;0||9&lt;J||re&lt;0||4&lt;re)return H(U,I);R===8&amp;&amp;(R=9);var te=new z;return(U.state=te).strm=U,te.wrap=Q,te.gzhead=null,te.w_bits=R,te.w_size=1&lt;&lt;te.w_bits,te.w_mask=te.w_size-1,te.hash_bits=X+7,te.hash_size=1&lt;&lt;te.hash_bits,te.hash_mask=te.hash_size-1,te.hash_shift=~~((te.hash_bits+3-1)/3),te.window=new y.Buf8(2*te.w_size),te.head=new y.Buf16(te.hash_size),te.prev=new y.Buf16(te.w_size),te.lit_bufsize=1&lt;&lt;X+6,te.pending_buf_size=4*te.lit_bufsize,te.pending_buf=new y.Buf8(te.pending_buf_size),te.d_buf=1*te.lit_bufsize,te.l_buf=3*te.lit_bufsize,te.level=J,te.strategy=re,te.method=$,Z(U)}g=[new D(0,0,0,0,(function(U,J){var $=65535;for($&gt;U.pending_buf_size-5&amp;&amp;($=U.pending_buf_size-5);;){if(U.lookahead&lt;=1){if(N(U),U.lookahead===0&amp;&amp;J===0)return 1;if(U.lookahead===0)break}U.strstart+=U.lookahead,U.lookahead=0;var R=U.block_start+$;if((U.strstart===0||U.strstart&gt;=R)&amp;&amp;(U.lookahead=U.strstart-R,U.strstart=R,L(U,!1),U.strm.avail_out===0)||U.strstart-U.block_start&gt;=U.w_size-F&amp;&amp;(L(U,!1),U.strm.avail_out===0))return 1}return U.insert=0,J===4?(L(U,!0),U.strm.avail_out===0?3:4):(U.strstart&gt;U.block_start&amp;&amp;(L(U,!1),U.strm.avail_out),1)})),new D(4,4,8,4,C),new D(4,5,16,8,C),new D(4,6,32,32,C),new D(4,4,16,16,P),new D(8,16,32,32,P),new D(8,16,128,128,P),new D(8,32,128,256,P),new D(32,128,258,1024,P),new D(32,258,258,4096,P)],x.deflateInit=function(U,J){return ne(U,J,8,15,8,0)},x.deflateInit2=ne,x.deflateReset=Z,x.deflateResetKeep=Y,x.deflateSetHeader=function(U,J){return U&amp;&amp;U.state?U.state.wrap!==2?I:(U.state.gzhead=J,0):I},x.deflate=function(U,J){var $,R,X,re;if(!U||!U.state||5&lt;J||J&lt;0)return U?H(U,I):I;if(R=U.state,!U.output||!U.input&amp;&amp;U.avail_in!==0||R.status===666&amp;&amp;J!==4)return H(U,U.avail_out===0?-5:I);if(R.strm=U,$=R.last_flush,R.last_flush=J,R.status===42)if(R.wrap===2)U.adler=0,E(R,31),E(R,139),E(R,8),R.gzhead?(E(R,(R.gzhead.text?1:0)+(R.gzhead.hcrc?2:0)+(R.gzhead.extra?4:0)+(R.gzhead.name?8:0)+(R.gzhead.comment?16:0)),E(R,255&amp;R.gzhead.time),E(R,R.gzhead.time&gt;&gt;8&amp;255),E(R,R.gzhead.time&gt;&gt;16&amp;255),E(R,R.gzhead.time&gt;&gt;24&amp;255),E(R,R.level===9?2:2&lt;=R.strategy||R.level&lt;2?4:0),E(R,255&amp;R.gzhead.os),R.gzhead.extra&amp;&amp;R.gzhead.extra.length&amp;&amp;(E(R,255&amp;R.gzhead.extra.length),E(R,R.gzhead.extra.length&gt;&gt;8&amp;255)),R.gzhead.hcrc&amp;&amp;(U.adler=S(U.adler,R.pending_buf,R.pending,0)),R.gzindex=0,R.status=69):(E(R,0),E(R,0),E(R,0),E(R,0),E(R,0),E(R,R.level===9?2:2&lt;=R.strategy||R.level&lt;2?4:0),E(R,3),R.status=q);else{var Q=8+(R.w_bits-8&lt;&lt;4)&lt;&lt;8;Q|=(2&lt;=R.strategy||R.level&lt;2?0:R.level&lt;6?1:R.level===6?2:3)&lt;&lt;6,R.strstart!==0&amp;&amp;(Q|=32),Q+=31-Q%31,R.status=q,j(R,Q),R.strstart!==0&amp;&amp;(j(R,U.adler&gt;&gt;&gt;16),j(R,65535&amp;U.adler)),U.adler=1}if(R.status===69)if(R.gzhead.extra){for(X=R.pending;R.gzindex&lt;(65535&amp;R.gzhead.extra.length)&amp;&amp;(R.pending!==R.pending_buf_size||(R.gzhead.hcrc&amp;&amp;R.pending&gt;X&amp;&amp;(U.adler=S(U.adler,R.pending_buf,R.pending-X,X)),T(U),X=R.pending,R.pending!==R.pending_buf_size));)E(R,255&amp;R.gzhead.extra[R.gzindex]),R.gzindex++;R.gzhead.hcrc&amp;&amp;R.pending&gt;X&amp;&amp;(U.adler=S(U.adler,R.pending_buf,R.pending-X,X)),R.gzindex===R.gzhead.extra.length&amp;&amp;(R.gzindex=0,R.status=73)}else R.status=73;if(R.status===73)if(R.gzhead.name){X=R.pending;do{if(R.pending===R.pending_buf_size&amp;&amp;(R.gzhead.hcrc&amp;&amp;R.pending&gt;X&amp;&amp;(U.adler=S(U.adler,R.pending_buf,R.pending-X,X)),T(U),X=R.pending,R.pending===R.pending_buf_size)){re=1;break}re=R.gzindex&lt;R.gzhead.name.length?255&amp;R.gzhead.name.charCodeAt(R.gzindex++):0,E(R,re)}while(re!==0);R.gzhead.hcrc&amp;&amp;R.pending&gt;X&amp;&amp;(U.adler=S(U.adler,R.pending_buf,R.pending-X,X)),re===0&amp;&amp;(R.gzindex=0,R.status=91)}else R.status=91;if(R.status===91)if(R.gzhead.comment){X=R.pending;do{if(R.pending===R.pending_buf_size&amp;&amp;(R.gzhead.hcrc&amp;&amp;R.pending&gt;X&amp;&amp;(U.adler=S(U.adler,R.pending_buf,R.pending-X,X)),T(U),X=R.pending,R.pending===R.pending_buf_size)){re=1;break}re=R.gzindex&lt;R.gzhead.comment.length?255&amp;R.gzhead.comment.charCodeAt(R.gzindex++):0,E(R,re)}while(re!==0);R.gzhead.hcrc&amp;&amp;R.pending&gt;X&amp;&amp;(U.adler=S(U.adler,R.pending_buf,R.pending-X,X)),re===0&amp;&amp;(R.status=103)}else R.status=103;if(R.status===103&amp;&amp;(R.gzhead.hcrc?(R.pending+2&gt;R.pending_buf_size&amp;&amp;T(U),R.pending+2&lt;=R.pending_buf_size&amp;&amp;(E(R,255&amp;U.adler),E(R,U.adler&gt;&gt;8&amp;255),U.adler=0,R.status=q)):R.status=q),R.pending!==0){if(T(U),U.avail_out===0)return R.last_flush=-1,0}else if(U.avail_in===0&amp;&amp;B(J)&lt;=B($)&amp;&amp;J!==4)return H(U,-5);if(R.status===666&amp;&amp;U.avail_in!==0)return H(U,-5);if(U.avail_in!==0||R.lookahead!==0||J!==0&amp;&amp;R.status!==666){var te=R.strategy===2?(function(ie,de){for(var ce;;){if(ie.lookahead===0&amp;&amp;(N(ie),ie.lookahead===0)){if(de===0)return 1;break}if(ie.match_length=0,ce=v._tr_tally(ie,0,ie.window[ie.strstart]),ie.lookahead--,ie.strstart++,ce&amp;&amp;(L(ie,!1),ie.strm.avail_out===0))return 1}return ie.insert=0,de===4?(L(ie,!0),ie.strm.avail_out===0?3:4):ie.last_lit&amp;&amp;(L(ie,!1),ie.strm.avail_out===0)?1:2})(R,J):R.strategy===3?(function(ie,de){for(var ce,se,fe,le,ge=ie.window;;){if(ie.lookahead&lt;=V){if(N(ie),ie.lookahead&lt;=V&amp;&amp;de===0)return 1;if(ie.lookahead===0)break}if(ie.match_length=0,ie.lookahead&gt;=3&amp;&amp;0&lt;ie.strstart&amp;&amp;(se=ge[fe=ie.strstart-1])===ge[++fe]&amp;&amp;se===ge[++fe]&amp;&amp;se===ge[++fe]){le=ie.strstart+V;do;while(se===ge[++fe]&amp;&amp;se===ge[++fe]&amp;&amp;se===ge[++fe]&amp;&amp;se===ge[++fe]&amp;&amp;se===ge[++fe]&amp;&amp;se===ge[++fe]&amp;&amp;se===ge[++fe]&amp;&amp;se===ge[++fe]&amp;&amp;fe&lt;le);ie.match_length=V-(le-fe),ie.match_length&gt;ie.lookahead&amp;&amp;(ie.match_length=ie.lookahead)}if(ie.match_length&gt;=3?(ce=v._tr_tally(ie,1,ie.match_length-3),ie.lookahead-=ie.match_length,ie.strstart+=ie.match_length,ie.match_length=0):(ce=v._tr_tally(ie,0,ie.window[ie.strstart]),ie.lookahead--,ie.strstart++),ce&amp;&amp;(L(ie,!1),ie.strm.avail_out===0))return 1}return ie.insert=0,de===4?(L(ie,!0),ie.strm.avail_out===0?3:4):ie.last_lit&amp;&amp;(L(ie,!1),ie.strm.avail_out===0)?1:2})(R,J):g[R.level].func(R,J);if(te!==3&amp;&amp;te!==4||(R.status=666),te===1||te===3)return U.avail_out===0&amp;&amp;(R.last_flush=-1),0;if(te===2&amp;&amp;(J===1?v._tr_align(R):J!==5&amp;&amp;(v._tr_stored_block(R,0,0,!1),J===3&amp;&amp;(K(R.head),R.lookahead===0&amp;&amp;(R.strstart=0,R.block_start=0,R.insert=0))),T(U),U.avail_out===0))return R.last_flush=-1,0}return J!==4?0:R.wrap&lt;=0?1:(R.wrap===2?(E(R,255&amp;U.adler),E(R,U.adler&gt;&gt;8&amp;255),E(R,U.adler&gt;&gt;16&amp;255),E(R,U.adler&gt;&gt;24&amp;255),E(R,255&amp;U.total_in),E(R,U.total_in&gt;&gt;8&amp;255),E(R,U.total_in&gt;&gt;16&amp;255),E(R,U.total_in&gt;&gt;24&amp;255)):(j(R,U.adler&gt;&gt;&gt;16),j(R,65535&amp;U.adler)),T(U),0&lt;R.wrap&amp;&amp;(R.wrap=-R.wrap),R.pending!==0?0:1)},x.deflateEnd=function(U){var J;return U&amp;&amp;U.state?(J=U.state.status)!==42&amp;&amp;J!==69&amp;&amp;J!==73&amp;&amp;J!==91&amp;&amp;J!==103&amp;&amp;J!==q&amp;&amp;J!==666?H(U,I):(U.state=null,J===q?H(U,-3):0):I},x.deflateSetDictionary=function(U,J){var $,R,X,re,Q,te,ie,de,ce=J.length;if(!U||!U.state||(re=($=U.state).wrap)===2||re===1&amp;&amp;$.status!==42||$.lookahead)return I;for(re===1&amp;&amp;(U.adler=_(U.adler,J,ce,0)),$.wrap=0,ce&gt;=$.w_size&amp;&amp;(re===0&amp;&amp;(K($.head),$.strstart=0,$.block_start=0,$.insert=0),de=new y.Buf8($.w_size),y.arraySet(de,J,ce-$.w_size,$.w_size,0),J=de,ce=$.w_size),Q=U.avail_in,te=U.next_in,ie=U.input,U.avail_in=ce,U.next_in=0,U.input=J,N($);$.lookahead&gt;=3;){for(R=$.strstart,X=$.lookahead-2;$.ins_h=($.ins_h&lt;&lt;$.hash_shift^$.window[R+3-1])&amp;$.hash_mask,$.prev[R&amp;$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=R,R++,--X;);$.strstart=R,$.lookahead=2,N($)}return $.strstart+=$.lookahead,$.block_start=$.strstart,$.insert=$.lookahead,$.lookahead=0,$.match_length=$.prev_length=2,$.match_available=0,U.next_in=te,U.input=ie,U.avail_in=Q,$.wrap=re,0},x.deflateInfo=&quot;pako deflate (from Nodeca project)&quot;},{&quot;../utils/common&quot;:41,&quot;./adler32&quot;:43,&quot;./crc32&quot;:45,&quot;./messages&quot;:51,&quot;./trees&quot;:52}],47:[function(m,p,x){p.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=&quot;&quot;,this.comment=&quot;&quot;,this.hcrc=0,this.done=!1}},{}],48:[function(m,p,x){p.exports=function(g,y){var v,_,S,A,I,V,F,q,H,B,K,T,L,E,j,k,N,C,P,D,z,Y,Z,ne,U;v=g.state,_=g.next_in,ne=g.input,S=_+(g.avail_in-5),A=g.next_out,U=g.output,I=A-(y-g.avail_out),V=A+(g.avail_out-257),F=v.dmax,q=v.wsize,H=v.whave,B=v.wnext,K=v.window,T=v.hold,L=v.bits,E=v.lencode,j=v.distcode,k=(1&lt;&lt;v.lenbits)-1,N=(1&lt;&lt;v.distbits)-1;e:do{L&lt;15&amp;&amp;(T+=ne[_++]&lt;&lt;L,L+=8,T+=ne[_++]&lt;&lt;L,L+=8),C=E[T&amp;k];t:for(;;){if(T&gt;&gt;&gt;=P=C&gt;&gt;&gt;24,L-=P,(P=C&gt;&gt;&gt;16&amp;255)==0)U[A++]=65535&amp;C;else{if(!(16&amp;P)){if((64&amp;P)==0){C=E[(65535&amp;C)+(T&amp;(1&lt;&lt;P)-1)];continue t}if(32&amp;P){v.mode=12;break e}g.msg=&quot;invalid literal/length code&quot;,v.mode=30;break e}D=65535&amp;C,(P&amp;=15)&amp;&amp;(L&lt;P&amp;&amp;(T+=ne[_++]&lt;&lt;L,L+=8),D+=T&amp;(1&lt;&lt;P)-1,T&gt;&gt;&gt;=P,L-=P),L&lt;15&amp;&amp;(T+=ne[_++]&lt;&lt;L,L+=8,T+=ne[_++]&lt;&lt;L,L+=8),C=j[T&amp;N];r:for(;;){if(T&gt;&gt;&gt;=P=C&gt;&gt;&gt;24,L-=P,!(16&amp;(P=C&gt;&gt;&gt;16&amp;255))){if((64&amp;P)==0){C=j[(65535&amp;C)+(T&amp;(1&lt;&lt;P)-1)];continue r}g.msg=&quot;invalid distance code&quot;,v.mode=30;break e}if(z=65535&amp;C,L&lt;(P&amp;=15)&amp;&amp;(T+=ne[_++]&lt;&lt;L,(L+=8)&lt;P&amp;&amp;(T+=ne[_++]&lt;&lt;L,L+=8)),F&lt;(z+=T&amp;(1&lt;&lt;P)-1)){g.msg=&quot;invalid distance too far back&quot;,v.mode=30;break e}if(T&gt;&gt;&gt;=P,L-=P,(P=A-I)&lt;z){if(H&lt;(P=z-P)&amp;&amp;v.sane){g.msg=&quot;invalid distance too far back&quot;,v.mode=30;break e}if(Z=K,(Y=0)===B){if(Y+=q-P,P&lt;D){for(D-=P;U[A++]=K[Y++],--P;);Y=A-z,Z=U}}else if(B&lt;P){if(Y+=q+B-P,(P-=B)&lt;D){for(D-=P;U[A++]=K[Y++],--P;);if(Y=0,B&lt;D){for(D-=P=B;U[A++]=K[Y++],--P;);Y=A-z,Z=U}}}else if(Y+=B-P,P&lt;D){for(D-=P;U[A++]=K[Y++],--P;);Y=A-z,Z=U}for(;2&lt;D;)U[A++]=Z[Y++],U[A++]=Z[Y++],U[A++]=Z[Y++],D-=3;D&amp;&amp;(U[A++]=Z[Y++],1&lt;D&amp;&amp;(U[A++]=Z[Y++]))}else{for(Y=A-z;U[A++]=U[Y++],U[A++]=U[Y++],U[A++]=U[Y++],2&lt;(D-=3););D&amp;&amp;(U[A++]=U[Y++],1&lt;D&amp;&amp;(U[A++]=U[Y++]))}break}}break}}while(_&lt;S&amp;&amp;A&lt;V);_-=D=L&gt;&gt;3,T&amp;=(1&lt;&lt;(L-=D&lt;&lt;3))-1,g.next_in=_,g.next_out=A,g.avail_in=_&lt;S?S-_+5:5-(_-S),g.avail_out=A&lt;V?V-A+257:257-(A-V),v.hold=T,v.bits=L}},{}],49:[function(m,p,x){var g=m(&quot;../utils/common&quot;),y=m(&quot;./adler32&quot;),v=m(&quot;./crc32&quot;),_=m(&quot;./inffast&quot;),S=m(&quot;./inftrees&quot;),A=-2;function I(k){return(k&gt;&gt;&gt;24&amp;255)+(k&gt;&gt;&gt;8&amp;65280)+((65280&amp;k)&lt;&lt;8)+((255&amp;k)&lt;&lt;24)}function V(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function F(k){var N;return k&amp;&amp;k.state?(N=k.state,k.total_in=k.total_out=N.total=0,k.msg=&quot;&quot;,N.wrap&amp;&amp;(k.adler=1&amp;N.wrap),N.mode=1,N.last=0,N.havedict=0,N.dmax=32768,N.head=null,N.hold=0,N.bits=0,N.lencode=N.lendyn=new g.Buf32(852),N.distcode=N.distdyn=new g.Buf32(592),N.sane=1,N.back=-1,0):A}function q(k){var N;return k&amp;&amp;k.state?((N=k.state).wsize=0,N.whave=0,N.wnext=0,F(k)):A}function H(k,N){var C,P;return k&amp;&amp;k.state?(P=k.state,N&lt;0?(C=0,N=-N):(C=1+(N&gt;&gt;4),N&lt;48&amp;&amp;(N&amp;=15)),N&amp;&amp;(N&lt;8||15&lt;N)?A:(P.window!==null&amp;&amp;P.wbits!==N&amp;&amp;(P.window=null),P.wrap=C,P.wbits=N,q(k))):A}function B(k,N){var C,P;return k?(P=new V,(k.state=P).window=null,(C=H(k,N))!==0&amp;&amp;(k.state=null),C):A}var K,T,L=!0;function E(k){if(L){var N;for(K=new g.Buf32(512),T=new g.Buf32(32),N=0;N&lt;144;)k.lens[N++]=8;for(;N&lt;256;)k.lens[N++]=9;for(;N&lt;280;)k.lens[N++]=7;for(;N&lt;288;)k.lens[N++]=8;for(S(1,k.lens,0,288,K,0,k.work,{bits:9}),N=0;N&lt;32;)k.lens[N++]=5;S(2,k.lens,0,32,T,0,k.work,{bits:5}),L=!1}k.lencode=K,k.lenbits=9,k.distcode=T,k.distbits=5}function j(k,N,C,P){var D,z=k.state;return z.window===null&amp;&amp;(z.wsize=1&lt;&lt;z.wbits,z.wnext=0,z.whave=0,z.window=new g.Buf8(z.wsize)),P&gt;=z.wsize?(g.arraySet(z.window,N,C-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(P&lt;(D=z.wsize-z.wnext)&amp;&amp;(D=P),g.arraySet(z.window,N,C-P,D,z.wnext),(P-=D)?(g.arraySet(z.window,N,C-P,P,0),z.wnext=P,z.whave=z.wsize):(z.wnext+=D,z.wnext===z.wsize&amp;&amp;(z.wnext=0),z.whave&lt;z.wsize&amp;&amp;(z.whave+=D))),0}x.inflateReset=q,x.inflateReset2=H,x.inflateResetKeep=F,x.inflateInit=function(k){return B(k,15)},x.inflateInit2=B,x.inflate=function(k,N){var C,P,D,z,Y,Z,ne,U,J,$,R,X,re,Q,te,ie,de,ce,se,fe,le,ge,xe,pe,ue=0,we=new g.Buf8(4),ke=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&amp;&amp;k.avail_in!==0)return A;(C=k.state).mode===12&amp;&amp;(C.mode=13),Y=k.next_out,D=k.output,ne=k.avail_out,z=k.next_in,P=k.input,Z=k.avail_in,U=C.hold,J=C.bits,$=Z,R=ne,ge=0;e:for(;;)switch(C.mode){case 1:if(C.wrap===0){C.mode=13;break}for(;J&lt;16;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if(2&amp;C.wrap&amp;&amp;U===35615){we[C.check=0]=255&amp;U,we[1]=U&gt;&gt;&gt;8&amp;255,C.check=v(C.check,we,2,0),J=U=0,C.mode=2;break}if(C.flags=0,C.head&amp;&amp;(C.head.done=!1),!(1&amp;C.wrap)||(((255&amp;U)&lt;&lt;8)+(U&gt;&gt;8))%31){k.msg=&quot;incorrect header check&quot;,C.mode=30;break}if((15&amp;U)!=8){k.msg=&quot;unknown compression method&quot;,C.mode=30;break}if(J-=4,le=8+(15&amp;(U&gt;&gt;&gt;=4)),C.wbits===0)C.wbits=le;else if(le&gt;C.wbits){k.msg=&quot;invalid window size&quot;,C.mode=30;break}C.dmax=1&lt;&lt;le,k.adler=C.check=1,C.mode=512&amp;U?10:12,J=U=0;break;case 2:for(;J&lt;16;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if(C.flags=U,(255&amp;C.flags)!=8){k.msg=&quot;unknown compression method&quot;,C.mode=30;break}if(57344&amp;C.flags){k.msg=&quot;unknown header flags set&quot;,C.mode=30;break}C.head&amp;&amp;(C.head.text=U&gt;&gt;8&amp;1),512&amp;C.flags&amp;&amp;(we[0]=255&amp;U,we[1]=U&gt;&gt;&gt;8&amp;255,C.check=v(C.check,we,2,0)),J=U=0,C.mode=3;case 3:for(;J&lt;32;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}C.head&amp;&amp;(C.head.time=U),512&amp;C.flags&amp;&amp;(we[0]=255&amp;U,we[1]=U&gt;&gt;&gt;8&amp;255,we[2]=U&gt;&gt;&gt;16&amp;255,we[3]=U&gt;&gt;&gt;24&amp;255,C.check=v(C.check,we,4,0)),J=U=0,C.mode=4;case 4:for(;J&lt;16;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}C.head&amp;&amp;(C.head.xflags=255&amp;U,C.head.os=U&gt;&gt;8),512&amp;C.flags&amp;&amp;(we[0]=255&amp;U,we[1]=U&gt;&gt;&gt;8&amp;255,C.check=v(C.check,we,2,0)),J=U=0,C.mode=5;case 5:if(1024&amp;C.flags){for(;J&lt;16;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}C.length=U,C.head&amp;&amp;(C.head.extra_len=U),512&amp;C.flags&amp;&amp;(we[0]=255&amp;U,we[1]=U&gt;&gt;&gt;8&amp;255,C.check=v(C.check,we,2,0)),J=U=0}else C.head&amp;&amp;(C.head.extra=null);C.mode=6;case 6:if(1024&amp;C.flags&amp;&amp;(Z&lt;(X=C.length)&amp;&amp;(X=Z),X&amp;&amp;(C.head&amp;&amp;(le=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),g.arraySet(C.head.extra,P,z,X,le)),512&amp;C.flags&amp;&amp;(C.check=v(C.check,P,X,z)),Z-=X,z+=X,C.length-=X),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&amp;C.flags){if(Z===0)break e;for(X=0;le=P[z+X++],C.head&amp;&amp;le&amp;&amp;C.length&lt;65536&amp;&amp;(C.head.name+=String.fromCharCode(le)),le&amp;&amp;X&lt;Z;);if(512&amp;C.flags&amp;&amp;(C.check=v(C.check,P,X,z)),Z-=X,z+=X,le)break e}else C.head&amp;&amp;(C.head.name=null);C.length=0,C.mode=8;case 8:if(4096&amp;C.flags){if(Z===0)break e;for(X=0;le=P[z+X++],C.head&amp;&amp;le&amp;&amp;C.length&lt;65536&amp;&amp;(C.head.comment+=String.fromCharCode(le)),le&amp;&amp;X&lt;Z;);if(512&amp;C.flags&amp;&amp;(C.check=v(C.check,P,X,z)),Z-=X,z+=X,le)break e}else C.head&amp;&amp;(C.head.comment=null);C.mode=9;case 9:if(512&amp;C.flags){for(;J&lt;16;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if(U!==(65535&amp;C.check)){k.msg=&quot;header crc mismatch&quot;,C.mode=30;break}J=U=0}C.head&amp;&amp;(C.head.hcrc=C.flags&gt;&gt;9&amp;1,C.head.done=!0),k.adler=C.check=0,C.mode=12;break;case 10:for(;J&lt;32;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}k.adler=C.check=I(U),J=U=0,C.mode=11;case 11:if(C.havedict===0)return k.next_out=Y,k.avail_out=ne,k.next_in=z,k.avail_in=Z,C.hold=U,C.bits=J,2;k.adler=C.check=1,C.mode=12;case 12:if(N===5||N===6)break e;case 13:if(C.last){U&gt;&gt;&gt;=7&amp;J,J-=7&amp;J,C.mode=27;break}for(;J&lt;3;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}switch(C.last=1&amp;U,J-=1,3&amp;(U&gt;&gt;&gt;=1)){case 0:C.mode=14;break;case 1:if(E(C),C.mode=20,N!==6)break;U&gt;&gt;&gt;=2,J-=2;break e;case 2:C.mode=17;break;case 3:k.msg=&quot;invalid block type&quot;,C.mode=30}U&gt;&gt;&gt;=2,J-=2;break;case 14:for(U&gt;&gt;&gt;=7&amp;J,J-=7&amp;J;J&lt;32;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if((65535&amp;U)!=(U&gt;&gt;&gt;16^65535)){k.msg=&quot;invalid stored block lengths&quot;,C.mode=30;break}if(C.length=65535&amp;U,J=U=0,C.mode=15,N===6)break e;case 15:C.mode=16;case 16:if(X=C.length){if(Z&lt;X&amp;&amp;(X=Z),ne&lt;X&amp;&amp;(X=ne),X===0)break e;g.arraySet(D,P,z,X,Y),Z-=X,z+=X,ne-=X,Y+=X,C.length-=X;break}C.mode=12;break;case 17:for(;J&lt;14;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if(C.nlen=257+(31&amp;U),U&gt;&gt;&gt;=5,J-=5,C.ndist=1+(31&amp;U),U&gt;&gt;&gt;=5,J-=5,C.ncode=4+(15&amp;U),U&gt;&gt;&gt;=4,J-=4,286&lt;C.nlen||30&lt;C.ndist){k.msg=&quot;too many length or distance symbols&quot;,C.mode=30;break}C.have=0,C.mode=18;case 18:for(;C.have&lt;C.ncode;){for(;J&lt;3;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}C.lens[ke[C.have++]]=7&amp;U,U&gt;&gt;&gt;=3,J-=3}for(;C.have&lt;19;)C.lens[ke[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,xe={bits:C.lenbits},ge=S(0,C.lens,0,19,C.lencode,0,C.work,xe),C.lenbits=xe.bits,ge){k.msg=&quot;invalid code lengths set&quot;,C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have&lt;C.nlen+C.ndist;){for(;ie=(ue=C.lencode[U&amp;(1&lt;&lt;C.lenbits)-1])&gt;&gt;&gt;16&amp;255,de=65535&amp;ue,!((te=ue&gt;&gt;&gt;24)&lt;=J);){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if(de&lt;16)U&gt;&gt;&gt;=te,J-=te,C.lens[C.have++]=de;else{if(de===16){for(pe=te+2;J&lt;pe;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if(U&gt;&gt;&gt;=te,J-=te,C.have===0){k.msg=&quot;invalid bit length repeat&quot;,C.mode=30;break}le=C.lens[C.have-1],X=3+(3&amp;U),U&gt;&gt;&gt;=2,J-=2}else if(de===17){for(pe=te+3;J&lt;pe;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}J-=te,le=0,X=3+(7&amp;(U&gt;&gt;&gt;=te)),U&gt;&gt;&gt;=3,J-=3}else{for(pe=te+7;J&lt;pe;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}J-=te,le=0,X=11+(127&amp;(U&gt;&gt;&gt;=te)),U&gt;&gt;&gt;=7,J-=7}if(C.have+X&gt;C.nlen+C.ndist){k.msg=&quot;invalid bit length repeat&quot;,C.mode=30;break}for(;X--;)C.lens[C.have++]=le}}if(C.mode===30)break;if(C.lens[256]===0){k.msg=&quot;invalid code -- missing end-of-block&quot;,C.mode=30;break}if(C.lenbits=9,xe={bits:C.lenbits},ge=S(1,C.lens,0,C.nlen,C.lencode,0,C.work,xe),C.lenbits=xe.bits,ge){k.msg=&quot;invalid literal/lengths set&quot;,C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,xe={bits:C.distbits},ge=S(2,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,xe),C.distbits=xe.bits,ge){k.msg=&quot;invalid distances set&quot;,C.mode=30;break}if(C.mode=20,N===6)break e;case 20:C.mode=21;case 21:if(6&lt;=Z&amp;&amp;258&lt;=ne){k.next_out=Y,k.avail_out=ne,k.next_in=z,k.avail_in=Z,C.hold=U,C.bits=J,_(k,R),Y=k.next_out,D=k.output,ne=k.avail_out,z=k.next_in,P=k.input,Z=k.avail_in,U=C.hold,J=C.bits,C.mode===12&amp;&amp;(C.back=-1);break}for(C.back=0;ie=(ue=C.lencode[U&amp;(1&lt;&lt;C.lenbits)-1])&gt;&gt;&gt;16&amp;255,de=65535&amp;ue,!((te=ue&gt;&gt;&gt;24)&lt;=J);){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if(ie&amp;&amp;(240&amp;ie)==0){for(ce=te,se=ie,fe=de;ie=(ue=C.lencode[fe+((U&amp;(1&lt;&lt;ce+se)-1)&gt;&gt;ce)])&gt;&gt;&gt;16&amp;255,de=65535&amp;ue,!(ce+(te=ue&gt;&gt;&gt;24)&lt;=J);){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}U&gt;&gt;&gt;=ce,J-=ce,C.back+=ce}if(U&gt;&gt;&gt;=te,J-=te,C.back+=te,C.length=de,ie===0){C.mode=26;break}if(32&amp;ie){C.back=-1,C.mode=12;break}if(64&amp;ie){k.msg=&quot;invalid literal/length code&quot;,C.mode=30;break}C.extra=15&amp;ie,C.mode=22;case 22:if(C.extra){for(pe=C.extra;J&lt;pe;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}C.length+=U&amp;(1&lt;&lt;C.extra)-1,U&gt;&gt;&gt;=C.extra,J-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;ie=(ue=C.distcode[U&amp;(1&lt;&lt;C.distbits)-1])&gt;&gt;&gt;16&amp;255,de=65535&amp;ue,!((te=ue&gt;&gt;&gt;24)&lt;=J);){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if((240&amp;ie)==0){for(ce=te,se=ie,fe=de;ie=(ue=C.distcode[fe+((U&amp;(1&lt;&lt;ce+se)-1)&gt;&gt;ce)])&gt;&gt;&gt;16&amp;255,de=65535&amp;ue,!(ce+(te=ue&gt;&gt;&gt;24)&lt;=J);){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}U&gt;&gt;&gt;=ce,J-=ce,C.back+=ce}if(U&gt;&gt;&gt;=te,J-=te,C.back+=te,64&amp;ie){k.msg=&quot;invalid distance code&quot;,C.mode=30;break}C.offset=de,C.extra=15&amp;ie,C.mode=24;case 24:if(C.extra){for(pe=C.extra;J&lt;pe;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}C.offset+=U&amp;(1&lt;&lt;C.extra)-1,U&gt;&gt;&gt;=C.extra,J-=C.extra,C.back+=C.extra}if(C.offset&gt;C.dmax){k.msg=&quot;invalid distance too far back&quot;,C.mode=30;break}C.mode=25;case 25:if(ne===0)break e;if(X=R-ne,C.offset&gt;X){if((X=C.offset-X)&gt;C.whave&amp;&amp;C.sane){k.msg=&quot;invalid distance too far back&quot;,C.mode=30;break}re=X&gt;C.wnext?(X-=C.wnext,C.wsize-X):C.wnext-X,X&gt;C.length&amp;&amp;(X=C.length),Q=C.window}else Q=D,re=Y-C.offset,X=C.length;for(ne&lt;X&amp;&amp;(X=ne),ne-=X,C.length-=X;D[Y++]=Q[re++],--X;);C.length===0&amp;&amp;(C.mode=21);break;case 26:if(ne===0)break e;D[Y++]=C.length,ne--,C.mode=21;break;case 27:if(C.wrap){for(;J&lt;32;){if(Z===0)break e;Z--,U|=P[z++]&lt;&lt;J,J+=8}if(R-=ne,k.total_out+=R,C.total+=R,R&amp;&amp;(k.adler=C.check=C.flags?v(C.check,D,R,Y-R):y(C.check,D,R,Y-R)),R=ne,(C.flags?U:I(U))!==C.check){k.msg=&quot;incorrect data check&quot;,C.mode=30;break}J=U=0}C.mode=28;case 28:if(C.wrap&amp;&amp;C.flags){for(;J&lt;32;){if(Z===0)break e;Z--,U+=P[z++]&lt;&lt;J,J+=8}if(U!==(4294967295&amp;C.total)){k.msg=&quot;incorrect length check&quot;,C.mode=30;break}J=U=0}C.mode=29;case 29:ge=1;break e;case 30:ge=-3;break e;case 31:return-4;default:return A}return k.next_out=Y,k.avail_out=ne,k.next_in=z,k.avail_in=Z,C.hold=U,C.bits=J,(C.wsize||R!==k.avail_out&amp;&amp;C.mode&lt;30&amp;&amp;(C.mode&lt;27||N!==4))&amp;&amp;j(k,k.output,k.next_out,R-k.avail_out)?(C.mode=31,-4):($-=k.avail_in,R-=k.avail_out,k.total_in+=$,k.total_out+=R,C.total+=R,C.wrap&amp;&amp;R&amp;&amp;(k.adler=C.check=C.flags?v(C.check,D,R,k.next_out-R):y(C.check,D,R,k.next_out-R)),k.data_type=C.bits+(C.last?64:0)+(C.mode===12?128:0)+(C.mode===20||C.mode===15?256:0),($==0&amp;&amp;R===0||N===4)&amp;&amp;ge===0&amp;&amp;(ge=-5),ge)},x.inflateEnd=function(k){if(!k||!k.state)return A;var N=k.state;return N.window&amp;&amp;(N.window=null),k.state=null,0},x.inflateGetHeader=function(k,N){var C;return k&amp;&amp;k.state?(2&amp;(C=k.state).wrap)==0?A:((C.head=N).done=!1,0):A},x.inflateSetDictionary=function(k,N){var C,P=N.length;return k&amp;&amp;k.state?(C=k.state).wrap!==0&amp;&amp;C.mode!==11?A:C.mode===11&amp;&amp;y(1,N,P,0)!==C.check?-3:j(k,N,P,P)?(C.mode=31,-4):(C.havedict=1,0):A},x.inflateInfo=&quot;pako inflate (from Nodeca project)&quot;},{&quot;../utils/common&quot;:41,&quot;./adler32&quot;:43,&quot;./crc32&quot;:45,&quot;./inffast&quot;:48,&quot;./inftrees&quot;:50}],50:[function(m,p,x){var g=m(&quot;../utils/common&quot;),y=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],v=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],_=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];p.exports=function(A,I,V,F,q,H,B,K){var T,L,E,j,k,N,C,P,D,z=K.bits,Y=0,Z=0,ne=0,U=0,J=0,$=0,R=0,X=0,re=0,Q=0,te=null,ie=0,de=new g.Buf16(16),ce=new g.Buf16(16),se=null,fe=0;for(Y=0;Y&lt;=15;Y++)de[Y]=0;for(Z=0;Z&lt;F;Z++)de[I[V+Z]]++;for(J=z,U=15;1&lt;=U&amp;&amp;de[U]===0;U--);if(U&lt;J&amp;&amp;(J=U),U===0)return q[H++]=20971520,q[H++]=20971520,K.bits=1,0;for(ne=1;ne&lt;U&amp;&amp;de[ne]===0;ne++);for(J&lt;ne&amp;&amp;(J=ne),Y=X=1;Y&lt;=15;Y++)if(X&lt;&lt;=1,(X-=de[Y])&lt;0)return-1;if(0&lt;X&amp;&amp;(A===0||U!==1))return-1;for(ce[1]=0,Y=1;Y&lt;15;Y++)ce[Y+1]=ce[Y]+de[Y];for(Z=0;Z&lt;F;Z++)I[V+Z]!==0&amp;&amp;(B[ce[I[V+Z]]++]=Z);if(N=A===0?(te=se=B,19):A===1?(te=y,ie-=257,se=v,fe-=257,256):(te=_,se=S,-1),Y=ne,k=H,R=Z=Q=0,E=-1,j=(re=1&lt;&lt;($=J))-1,A===1&amp;&amp;852&lt;re||A===2&amp;&amp;592&lt;re)return 1;for(;;){for(C=Y-R,D=B[Z]&lt;N?(P=0,B[Z]):B[Z]&gt;N?(P=se[fe+B[Z]],te[ie+B[Z]]):(P=96,0),T=1&lt;&lt;Y-R,ne=L=1&lt;&lt;$;q[k+(Q&gt;&gt;R)+(L-=T)]=C&lt;&lt;24|P&lt;&lt;16|D|0,L!==0;);for(T=1&lt;&lt;Y-1;Q&amp;T;)T&gt;&gt;=1;if(T!==0?(Q&amp;=T-1,Q+=T):Q=0,Z++,--de[Y]==0){if(Y===U)break;Y=I[V+B[Z]]}if(J&lt;Y&amp;&amp;(Q&amp;j)!==E){for(R===0&amp;&amp;(R=J),k+=ne,X=1&lt;&lt;($=Y-R);$+R&lt;U&amp;&amp;!((X-=de[$+R])&lt;=0);)$++,X&lt;&lt;=1;if(re+=1&lt;&lt;$,A===1&amp;&amp;852&lt;re||A===2&amp;&amp;592&lt;re)return 1;q[E=Q&amp;j]=J&lt;&lt;24|$&lt;&lt;16|k-H|0}}return Q!==0&amp;&amp;(q[k+Q]=Y-R&lt;&lt;24|64&lt;&lt;16|0),K.bits=J,0}},{&quot;../utils/common&quot;:41}],51:[function(m,p,x){p.exports={2:&quot;need dictionary&quot;,1:&quot;stream end&quot;,0:&quot;&quot;,&quot;-1&quot;:&quot;file error&quot;,&quot;-2&quot;:&quot;stream error&quot;,&quot;-3&quot;:&quot;data error&quot;,&quot;-4&quot;:&quot;insufficient memory&quot;,&quot;-5&quot;:&quot;buffer error&quot;,&quot;-6&quot;:&quot;incompatible version&quot;}},{}],52:[function(m,p,x){var g=m(&quot;../utils/common&quot;);function y(se){for(var fe=se.length;0&lt;=--fe;)se[fe]=0}var v=256,_=286,S=30,A=15,I=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],V=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=new Array(576);y(H);var B=new Array(60);y(B);var K=new Array(512);y(K);var T=new Array(256);y(T);var L=new Array(29);y(L);var E,j,k,N=new Array(S);function C(se,fe,le,ge,xe){this.static_tree=se,this.extra_bits=fe,this.extra_base=le,this.elems=ge,this.max_length=xe,this.has_stree=se&amp;&amp;se.length}function P(se,fe){this.dyn_tree=se,this.max_code=0,this.stat_desc=fe}function D(se){return se&lt;256?K[se]:K[256+(se&gt;&gt;&gt;7)]}function z(se,fe){se.pending_buf[se.pending++]=255&amp;fe,se.pending_buf[se.pending++]=fe&gt;&gt;&gt;8&amp;255}function Y(se,fe,le){se.bi_valid&gt;16-le?(se.bi_buf|=fe&lt;&lt;se.bi_valid&amp;65535,z(se,se.bi_buf),se.bi_buf=fe&gt;&gt;16-se.bi_valid,se.bi_valid+=le-16):(se.bi_buf|=fe&lt;&lt;se.bi_valid&amp;65535,se.bi_valid+=le)}function Z(se,fe,le){Y(se,le[2*fe],le[2*fe+1])}function ne(se,fe){for(var le=0;le|=1&amp;se,se&gt;&gt;&gt;=1,le&lt;&lt;=1,0&lt;--fe;);return le&gt;&gt;&gt;1}function U(se,fe,le){var ge,xe,pe=new Array(16),ue=0;for(ge=1;ge&lt;=A;ge++)pe[ge]=ue=ue+le[ge-1]&lt;&lt;1;for(xe=0;xe&lt;=fe;xe++){var we=se[2*xe+1];we!==0&amp;&amp;(se[2*xe]=ne(pe[we]++,we))}}function J(se){var fe;for(fe=0;fe&lt;_;fe++)se.dyn_ltree[2*fe]=0;for(fe=0;fe&lt;S;fe++)se.dyn_dtree[2*fe]=0;for(fe=0;fe&lt;19;fe++)se.bl_tree[2*fe]=0;se.dyn_ltree[512]=1,se.opt_len=se.static_len=0,se.last_lit=se.matches=0}function $(se){8&lt;se.bi_valid?z(se,se.bi_buf):0&lt;se.bi_valid&amp;&amp;(se.pending_buf[se.pending++]=se.bi_buf),se.bi_buf=0,se.bi_valid=0}function R(se,fe,le,ge){var xe=2*fe,pe=2*le;return se[xe]&lt;se[pe]||se[xe]===se[pe]&amp;&amp;ge[fe]&lt;=ge[le]}function X(se,fe,le){for(var ge=se.heap[le],xe=le&lt;&lt;1;xe&lt;=se.heap_len&amp;&amp;(xe&lt;se.heap_len&amp;&amp;R(fe,se.heap[xe+1],se.heap[xe],se.depth)&amp;&amp;xe++,!R(fe,ge,se.heap[xe],se.depth));)se.heap[le]=se.heap[xe],le=xe,xe&lt;&lt;=1;se.heap[le]=ge}function re(se,fe,le){var ge,xe,pe,ue,we=0;if(se.last_lit!==0)for(;ge=se.pending_buf[se.d_buf+2*we]&lt;&lt;8|se.pending_buf[se.d_buf+2*we+1],xe=se.pending_buf[se.l_buf+we],we++,ge===0?Z(se,xe,fe):(Z(se,(pe=T[xe])+v+1,fe),(ue=I[pe])!==0&amp;&amp;Y(se,xe-=L[pe],ue),Z(se,pe=D(--ge),le),(ue=V[pe])!==0&amp;&amp;Y(se,ge-=N[pe],ue)),we&lt;se.last_lit;);Z(se,256,fe)}function Q(se,fe){var le,ge,xe,pe=fe.dyn_tree,ue=fe.stat_desc.static_tree,we=fe.stat_desc.has_stree,ke=fe.stat_desc.elems,De=-1;for(se.heap_len=0,se.heap_max=573,le=0;le&lt;ke;le++)pe[2*le]!==0?(se.heap[++se.heap_len]=De=le,se.depth[le]=0):pe[2*le+1]=0;for(;se.heap_len&lt;2;)pe[2*(xe=se.heap[++se.heap_len]=De&lt;2?++De:0)]=1,se.depth[xe]=0,se.opt_len--,we&amp;&amp;(se.static_len-=ue[2*xe+1]);for(fe.max_code=De,le=se.heap_len&gt;&gt;1;1&lt;=le;le--)X(se,pe,le);for(xe=ke;le=se.heap[1],se.heap[1]=se.heap[se.heap_len--],X(se,pe,1),ge=se.heap[1],se.heap[--se.heap_max]=le,se.heap[--se.heap_max]=ge,pe[2*xe]=pe[2*le]+pe[2*ge],se.depth[xe]=(se.depth[le]&gt;=se.depth[ge]?se.depth[le]:se.depth[ge])+1,pe[2*le+1]=pe[2*ge+1]=xe,se.heap[1]=xe++,X(se,pe,1),2&lt;=se.heap_len;);se.heap[--se.heap_max]=se.heap[1],(function(Le,ze){var Oe,Ve,Qe,Ze,Je,qe,tt=ze.dyn_tree,nt=ze.max_code,Me=ze.stat_desc.static_tree,st=ze.stat_desc.has_stree,$t=ze.stat_desc.extra_bits,ft=ze.stat_desc.extra_base,zt=ze.stat_desc.max_length,Bt=0;for(Ze=0;Ze&lt;=A;Ze++)Le.bl_count[Ze]=0;for(tt[2*Le.heap[Le.heap_max]+1]=0,Oe=Le.heap_max+1;Oe&lt;573;Oe++)zt&lt;(Ze=tt[2*tt[2*(Ve=Le.heap[Oe])+1]+1]+1)&amp;&amp;(Ze=zt,Bt++),tt[2*Ve+1]=Ze,nt&lt;Ve||(Le.bl_count[Ze]++,Je=0,ft&lt;=Ve&amp;&amp;(Je=$t[Ve-ft]),qe=tt[2*Ve],Le.opt_len+=qe*(Ze+Je),st&amp;&amp;(Le.static_len+=qe*(Me[2*Ve+1]+Je)));if(Bt!==0){do{for(Ze=zt-1;Le.bl_count[Ze]===0;)Ze--;Le.bl_count[Ze]--,Le.bl_count[Ze+1]+=2,Le.bl_count[zt]--,Bt-=2}while(0&lt;Bt);for(Ze=zt;Ze!==0;Ze--)for(Ve=Le.bl_count[Ze];Ve!==0;)nt&lt;(Qe=Le.heap[--Oe])||(tt[2*Qe+1]!==Ze&amp;&amp;(Le.opt_len+=(Ze-tt[2*Qe+1])*tt[2*Qe],tt[2*Qe+1]=Ze),Ve--)}})(se,fe),U(pe,De,se.bl_count)}function te(se,fe,le){var ge,xe,pe=-1,ue=fe[1],we=0,ke=7,De=4;for(ue===0&amp;&amp;(ke=138,De=3),fe[2*(le+1)+1]=65535,ge=0;ge&lt;=le;ge++)xe=ue,ue=fe[2*(ge+1)+1],++we&lt;ke&amp;&amp;xe===ue||(we&lt;De?se.bl_tree[2*xe]+=we:xe!==0?(xe!==pe&amp;&amp;se.bl_tree[2*xe]++,se.bl_tree[32]++):we&lt;=10?se.bl_tree[34]++:se.bl_tree[36]++,pe=xe,De=(we=0)===ue?(ke=138,3):xe===ue?(ke=6,3):(ke=7,4))}function ie(se,fe,le){var ge,xe,pe=-1,ue=fe[1],we=0,ke=7,De=4;for(ue===0&amp;&amp;(ke=138,De=3),ge=0;ge&lt;=le;ge++)if(xe=ue,ue=fe[2*(ge+1)+1],!(++we&lt;ke&amp;&amp;xe===ue)){if(we&lt;De)for(;Z(se,xe,se.bl_tree),--we!=0;);else xe!==0?(xe!==pe&amp;&amp;(Z(se,xe,se.bl_tree),we--),Z(se,16,se.bl_tree),Y(se,we-3,2)):we&lt;=10?(Z(se,17,se.bl_tree),Y(se,we-3,3)):(Z(se,18,se.bl_tree),Y(se,we-11,7));pe=xe,De=(we=0)===ue?(ke=138,3):xe===ue?(ke=6,3):(ke=7,4)}}y(N);var de=!1;function ce(se,fe,le,ge){Y(se,0+(ge?1:0),3),(function(xe,pe,ue,we){$(xe),z(xe,ue),z(xe,~ue),g.arraySet(xe.pending_buf,xe.window,pe,ue,xe.pending),xe.pending+=ue})(se,fe,le)}x._tr_init=function(se){de||((function(){var fe,le,ge,xe,pe,ue=new Array(16);for(xe=ge=0;xe&lt;28;xe++)for(L[xe]=ge,fe=0;fe&lt;1&lt;&lt;I[xe];fe++)T[ge++]=xe;for(T[ge-1]=xe,xe=pe=0;xe&lt;16;xe++)for(N[xe]=pe,fe=0;fe&lt;1&lt;&lt;V[xe];fe++)K[pe++]=xe;for(pe&gt;&gt;=7;xe&lt;S;xe++)for(N[xe]=pe&lt;&lt;7,fe=0;fe&lt;1&lt;&lt;V[xe]-7;fe++)K[256+pe++]=xe;for(le=0;le&lt;=A;le++)ue[le]=0;for(fe=0;fe&lt;=143;)H[2*fe+1]=8,fe++,ue[8]++;for(;fe&lt;=255;)H[2*fe+1]=9,fe++,ue[9]++;for(;fe&lt;=279;)H[2*fe+1]=7,fe++,ue[7]++;for(;fe&lt;=287;)H[2*fe+1]=8,fe++,ue[8]++;for(U(H,287,ue),fe=0;fe&lt;S;fe++)B[2*fe+1]=5,B[2*fe]=ne(fe,5);E=new C(H,I,257,_,A),j=new C(B,V,0,S,A),k=new C(new Array(0),F,0,19,7)})(),de=!0),se.l_desc=new P(se.dyn_ltree,E),se.d_desc=new P(se.dyn_dtree,j),se.bl_desc=new P(se.bl_tree,k),se.bi_buf=0,se.bi_valid=0,J(se)},x._tr_stored_block=ce,x._tr_flush_block=function(se,fe,le,ge){var xe,pe,ue=0;0&lt;se.level?(se.strm.data_type===2&amp;&amp;(se.strm.data_type=(function(we){var ke,De=4093624447;for(ke=0;ke&lt;=31;ke++,De&gt;&gt;&gt;=1)if(1&amp;De&amp;&amp;we.dyn_ltree[2*ke]!==0)return 0;if(we.dyn_ltree[18]!==0||we.dyn_ltree[20]!==0||we.dyn_ltree[26]!==0)return 1;for(ke=32;ke&lt;v;ke++)if(we.dyn_ltree[2*ke]!==0)return 1;return 0})(se)),Q(se,se.l_desc),Q(se,se.d_desc),ue=(function(we){var ke;for(te(we,we.dyn_ltree,we.l_desc.max_code),te(we,we.dyn_dtree,we.d_desc.max_code),Q(we,we.bl_desc),ke=18;3&lt;=ke&amp;&amp;we.bl_tree[2*q[ke]+1]===0;ke--);return we.opt_len+=3*(ke+1)+5+5+4,ke})(se),xe=se.opt_len+3+7&gt;&gt;&gt;3,(pe=se.static_len+3+7&gt;&gt;&gt;3)&lt;=xe&amp;&amp;(xe=pe)):xe=pe=le+5,le+4&lt;=xe&amp;&amp;fe!==-1?ce(se,fe,le,ge):se.strategy===4||pe===xe?(Y(se,2+(ge?1:0),3),re(se,H,B)):(Y(se,4+(ge?1:0),3),(function(we,ke,De,Le){var ze;for(Y(we,ke-257,5),Y(we,De-1,5),Y(we,Le-4,4),ze=0;ze&lt;Le;ze++)Y(we,we.bl_tree[2*q[ze]+1],3);ie(we,we.dyn_ltree,ke-1),ie(we,we.dyn_dtree,De-1)})(se,se.l_desc.max_code+1,se.d_desc.max_code+1,ue+1),re(se,se.dyn_ltree,se.dyn_dtree)),J(se),ge&amp;&amp;$(se)},x._tr_tally=function(se,fe,le){return se.pending_buf[se.d_buf+2*se.last_lit]=fe&gt;&gt;&gt;8&amp;255,se.pending_buf[se.d_buf+2*se.last_lit+1]=255&amp;fe,se.pending_buf[se.l_buf+se.last_lit]=255&amp;le,se.last_lit++,fe===0?se.dyn_ltree[2*le]++:(se.matches++,fe--,se.dyn_ltree[2*(T[le]+v+1)]++,se.dyn_dtree[2*D(fe)]++),se.last_lit===se.lit_bufsize-1},x._tr_align=function(se){Y(se,2,3),Z(se,256,H),(function(fe){fe.bi_valid===16?(z(fe,fe.bi_buf),fe.bi_buf=0,fe.bi_valid=0):8&lt;=fe.bi_valid&amp;&amp;(fe.pending_buf[fe.pending++]=255&amp;fe.bi_buf,fe.bi_buf&gt;&gt;=8,fe.bi_valid-=8)})(se)}},{&quot;../utils/common&quot;:41}],53:[function(m,p,x){p.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=&quot;&quot;,this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(m,p,x){(function(g){(function(y,v){if(!y.setImmediate){var _,S,A,I,V=1,F={},q=!1,H=y.document,B=Object.getPrototypeOf&amp;&amp;Object.getPrototypeOf(y);B=B&amp;&amp;B.setTimeout?B:y,_={}.toString.call(y.process)===&quot;[object process]&quot;?function(E){s.nextTick((function(){T(E)}))}:(function(){if(y.postMessage&amp;&amp;!y.importScripts){var E=!0,j=y.onmessage;return y.onmessage=function(){E=!1},y.postMessage(&quot;&quot;,&quot;*&quot;),y.onmessage=j,E}})()?(I=&quot;setImmediate$&quot;+Math.random()+&quot;$&quot;,y.addEventListener?y.addEventListener(&quot;message&quot;,L,!1):y.attachEvent(&quot;onmessage&quot;,L),function(E){y.postMessage(I+E,&quot;*&quot;)}):y.MessageChannel?((A=new MessageChannel).port1.onmessage=function(E){T(E.data)},function(E){A.port2.postMessage(E)}):H&amp;&amp;&quot;onreadystatechange&quot;in H.createElement(&quot;script&quot;)?(S=H.documentElement,function(E){var j=H.createElement(&quot;script&quot;);j.onreadystatechange=function(){T(E),j.onreadystatechange=null,S.removeChild(j),j=null},S.appendChild(j)}):function(E){setTimeout(T,0,E)},B.setImmediate=function(E){typeof E!=&quot;function&quot;&amp;&amp;(E=new Function(&quot;&quot;+E));for(var j=new Array(arguments.length-1),k=0;k&lt;j.length;k++)j[k]=arguments[k+1];var N={callback:E,args:j};return F[V]=N,_(V),V++},B.clearImmediate=K}function K(E){delete F[E]}function T(E){if(q)setTimeout(T,0,E);else{var j=F[E];if(j){q=!0;try{(function(k){var N=k.callback,C=k.args;switch(C.length){case 0:N();break;case 1:N(C[0]);break;case 2:N(C[0],C[1]);break;case 3:N(C[0],C[1],C[2]);break;default:N.apply(void 0,C)}})(j)}finally{K(E),q=!1}}}}function L(E){E.source===y&amp;&amp;typeof E.data==&quot;string&quot;&amp;&amp;E.data.indexOf(I)===0&amp;&amp;T(+E.data.slice(I.length))}})(typeof self&gt;&quot;u&quot;?g===void 0?this:g:self)}).call(this,l!==void 0?l:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,t(&quot;_process&quot;),typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{},t(&quot;buffer&quot;).Buffer,arguments[3],arguments[4],arguments[5],arguments[6],t(&quot;timers&quot;).setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(t,n,o){(function(s){(function(){var l=/[\\^$.*+?()[\]{}|]/g,u=RegExp(l.source),c=typeof s==&quot;object&quot;&amp;&amp;s&amp;&amp;s.Object===Object&amp;&amp;s,a=typeof self==&quot;object&quot;&amp;&amp;self&amp;&amp;self.Object===Object&amp;&amp;self,d=c||a||Function(&quot;return this&quot;)(),f=Object.prototype.toString,h=d.Symbol,m=h?h.prototype:void 0,p=m?m.toString:void 0;function x(g){if(typeof g==&quot;string&quot;)return g;if((function(v){return typeof v==&quot;symbol&quot;||(function(_){return!!_&amp;&amp;typeof _==&quot;object&quot;})(v)&amp;&amp;f.call(v)==&quot;[object Symbol]&quot;})(g))return p?p.call(g):&quot;&quot;;var y=g+&quot;&quot;;return y==&quot;0&quot;&amp;&amp;1/g==-1/0?&quot;-0&quot;:y}n.exports=function(g){var y;return(g=(y=g)==null?&quot;&quot;:x(y))&amp;&amp;u.test(g)?g.replace(l,&quot;\\$&amp;&quot;):g}}).call(this)}).call(this,typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{}],443:[function(t,n,o){(function(s){(function(){var l=&quot;[object Arguments]&quot;,u=&quot;[object Map]&quot;,c=&quot;[object Object]&quot;,a=&quot;[object Set]&quot;,d=/\.|\[(?:[^[\]]*|([&quot;&#039;])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f=/^\w*$/,h=/^\./,m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|([&quot;&#039;])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,x=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,y={};y[&quot;[object Float32Array]&quot;]=y[&quot;[object Float64Array]&quot;]=y[&quot;[object Int8Array]&quot;]=y[&quot;[object Int16Array]&quot;]=y[&quot;[object Int32Array]&quot;]=y[&quot;[object Uint8Array]&quot;]=y[&quot;[object Uint8ClampedArray]&quot;]=y[&quot;[object Uint16Array]&quot;]=y[&quot;[object Uint32Array]&quot;]=!0,y[l]=y[&quot;[object Array]&quot;]=y[&quot;[object ArrayBuffer]&quot;]=y[&quot;[object Boolean]&quot;]=y[&quot;[object DataView]&quot;]=y[&quot;[object Date]&quot;]=y[&quot;[object Error]&quot;]=y[&quot;[object Function]&quot;]=y[u]=y[&quot;[object Number]&quot;]=y[c]=y[&quot;[object RegExp]&quot;]=y[a]=y[&quot;[object String]&quot;]=y[&quot;[object WeakMap]&quot;]=!1;var v=typeof s==&quot;object&quot;&amp;&amp;s&amp;&amp;s.Object===Object&amp;&amp;s,_=typeof self==&quot;object&quot;&amp;&amp;self&amp;&amp;self.Object===Object&amp;&amp;self,S=v||_||Function(&quot;return this&quot;)(),A=typeof o==&quot;object&quot;&amp;&amp;o&amp;&amp;!o.nodeType&amp;&amp;o,I=A&amp;&amp;typeof n==&quot;object&quot;&amp;&amp;n&amp;&amp;!n.nodeType&amp;&amp;n,V=I&amp;&amp;I.exports===A&amp;&amp;v.process,F=(function(){try{return V&amp;&amp;V.binding(&quot;util&quot;)}catch{}})(),q=F&amp;&amp;F.isTypedArray;function H(he,je,Fe,Ue){for(var lt=-1,Ke=he?he.length:0;++lt&lt;Ke;){var Ye=he[lt];je(Ue,Ye,Fe(Ye),he)}return Ue}function B(he,je){for(var Fe=-1,Ue=he?he.length:0;++Fe&lt;Ue;)if(je(he[Fe],Fe,he))return!0;return!1}function K(he){var je=!1;if(he!=null&amp;&amp;typeof he.toString!=&quot;function&quot;)try{je=!!(he+&quot;&quot;)}catch{}return je}function T(he){var je=-1,Fe=Array(he.size);return he.forEach((function(Ue,lt){Fe[++je]=[lt,Ue]})),Fe}function L(he){var je=-1,Fe=Array(he.size);return he.forEach((function(Ue){Fe[++je]=Ue})),Fe}var E,j,k,N=Array.prototype,C=Function.prototype,P=Object.prototype,D=S[&quot;__core-js_shared__&quot;],z=(E=/[^.]+$/.exec(D&amp;&amp;D.keys&amp;&amp;D.keys.IE_PROTO||&quot;&quot;))?&quot;Symbol(src)_1.&quot;+E:&quot;&quot;,Y=C.toString,Z=P.hasOwnProperty,ne=P.toString,U=RegExp(&quot;^&quot;+Y.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,&quot;\\$&amp;&quot;).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,&quot;$1.*?&quot;)+&quot;$&quot;),J=S.Symbol,$=S.Uint8Array,R=P.propertyIsEnumerable,X=N.splice,re=(j=Object.keys,k=Object,function(he){return j(k(he))}),Q=_t(S,&quot;DataView&quot;),te=_t(S,&quot;Map&quot;),ie=_t(S,&quot;Promise&quot;),de=_t(S,&quot;Set&quot;),ce=_t(S,&quot;WeakMap&quot;),se=_t(Object,&quot;create&quot;),fe=Ne(Q),le=Ne(te),ge=Ne(ie),xe=Ne(de),pe=Ne(ce),ue=J?J.prototype:void 0,we=ue?ue.valueOf:void 0,ke=ue?ue.toString:void 0;function De(he){var je=-1,Fe=he?he.length:0;for(this.clear();++je&lt;Fe;){var Ue=he[je];this.set(Ue[0],Ue[1])}}function Le(he){var je=-1,Fe=he?he.length:0;for(this.clear();++je&lt;Fe;){var Ue=he[je];this.set(Ue[0],Ue[1])}}function ze(he){var je=-1,Fe=he?he.length:0;for(this.clear();++je&lt;Fe;){var Ue=he[je];this.set(Ue[0],Ue[1])}}function Oe(he){var je=-1,Fe=he?he.length:0;for(this.__data__=new ze;++je&lt;Fe;)this.add(he[je])}function Ve(he){this.__data__=new Le(he)}function Qe(he,je){var Fe=jt(he)||Pt(he)?(function(Ye,Ht){for(var Dt=-1,St=Array(Ye);++Dt&lt;Ye;)St[Dt]=Ht(Dt);return St})(he.length,String):[],Ue=Fe.length,lt=!!Ue;for(var Ke in he)!Z.call(he,Ke)||lt&amp;&amp;(Ke==&quot;length&quot;||Jt(Ke,Ue))||Fe.push(Ke);return Fe}function Ze(he,je){for(var Fe=he.length;Fe--;)if(rt(he[Fe][0],je))return Fe;return-1}function Je(he,je,Fe,Ue){return tt(he,(function(lt,Ke,Ye){je(Ue,lt,Fe(lt),Ye)})),Ue}De.prototype.clear=function(){this.__data__=se?se(null):{}},De.prototype.delete=function(he){return this.has(he)&amp;&amp;delete this.__data__[he]},De.prototype.get=function(he){var je=this.__data__;if(se){var Fe=je[he];return Fe===&quot;__lodash_hash_undefined__&quot;?void 0:Fe}return Z.call(je,he)?je[he]:void 0},De.prototype.has=function(he){var je=this.__data__;return se?je[he]!==void 0:Z.call(je,he)},De.prototype.set=function(he,je){return this.__data__[he]=se&amp;&amp;je===void 0?&quot;__lodash_hash_undefined__&quot;:je,this},Le.prototype.clear=function(){this.__data__=[]},Le.prototype.delete=function(he){var je=this.__data__,Fe=Ze(je,he);return!(Fe&lt;0)&amp;&amp;(Fe==je.length-1?je.pop():X.call(je,Fe,1),!0)},Le.prototype.get=function(he){var je=this.__data__,Fe=Ze(je,he);return Fe&lt;0?void 0:je[Fe][1]},Le.prototype.has=function(he){return Ze(this.__data__,he)&gt;-1},Le.prototype.set=function(he,je){var Fe=this.__data__,Ue=Ze(Fe,he);return Ue&lt;0?Fe.push([he,je]):Fe[Ue][1]=je,this},ze.prototype.clear=function(){this.__data__={hash:new De,map:new(te||Le),string:new De}},ze.prototype.delete=function(he){return Gt(this,he).delete(he)},ze.prototype.get=function(he){return Gt(this,he).get(he)},ze.prototype.has=function(he){return Gt(this,he).has(he)},ze.prototype.set=function(he,je){return Gt(this,he).set(he,je),this},Oe.prototype.add=Oe.prototype.push=function(he){return this.__data__.set(he,&quot;__lodash_hash_undefined__&quot;),this},Oe.prototype.has=function(he){return this.__data__.has(he)},Ve.prototype.clear=function(){this.__data__=new Le},Ve.prototype.delete=function(he){return this.__data__.delete(he)},Ve.prototype.get=function(he){return this.__data__.get(he)},Ve.prototype.has=function(he){return this.__data__.has(he)},Ve.prototype.set=function(he,je){var Fe=this.__data__;if(Fe instanceof Le){var Ue=Fe.__data__;if(!te||Ue.length&lt;199)return Ue.push([he,je]),this;Fe=this.__data__=new ze(Ue)}return Fe.set(he,je),this};var qe,tt=(qe=function(he,je){return he&amp;&amp;nt(he,je,fr)},function(he,je){if(he==null)return he;if(!at(he))return qe(he,je);for(var Fe=he.length,Ue=-1,lt=Object(he);++Ue&lt;Fe&amp;&amp;je(lt[Ue],Ue,lt)!==!1;);return he}),nt=(function(he){return function(je,Fe,Ue){for(var lt=-1,Ke=Object(je),Ye=Ue(je),Ht=Ye.length;Ht--;){var Dt=Ye[++lt];if(Fe(Ke[Dt],Dt,Ke)===!1)break}return je}})();function Me(he,je){for(var Fe=0,Ue=(je=it(je,he)?[je]:Ct(je)).length;he!=null&amp;&amp;Fe&lt;Ue;)he=he[be(je[Fe++])];return Fe&amp;&amp;Fe==Ue?he:void 0}function st(he,je){return he!=null&amp;&amp;je in Object(he)}function $t(he,je,Fe,Ue,lt){return he===je||(he==null||je==null||!Vt(he)&amp;&amp;!dr(je)?he!=he&amp;&amp;je!=je:(function(Ke,Ye,Ht,Dt,St,bt){var Ce=jt(Ke),ct=jt(Ye),pt=&quot;[object Array]&quot;,Yt=&quot;[object Array]&quot;;Ce||(pt=(pt=Rt(Ke))==l?c:pt),ct||(Yt=(Yt=Rt(Ye))==l?c:Yt);var hr=pt==c&amp;&amp;!K(Ke),Mr=Yt==c&amp;&amp;!K(Ye),Kt=pt==Yt;if(Kt&amp;&amp;!hr)return bt||(bt=new Ve),Ce||_r(Ke)?rr(Ke,Ye,Ht,Dt,St,bt):(function(ar,Wt,Ln,Zr,Rs,It,di){switch(Ln){case&quot;[object DataView]&quot;:if(ar.byteLength!=Wt.byteLength||ar.byteOffset!=Wt.byteOffset)return!1;ar=ar.buffer,Wt=Wt.buffer;case&quot;[object ArrayBuffer]&quot;:return!(ar.byteLength!=Wt.byteLength||!Zr(new $(ar),new $(Wt)));case&quot;[object Boolean]&quot;:case&quot;[object Date]&quot;:case&quot;[object Number]&quot;:return rt(+ar,+Wt);case&quot;[object Error]&quot;:return ar.name==Wt.name&amp;&amp;ar.message==Wt.message;case&quot;[object RegExp]&quot;:case&quot;[object String]&quot;:return ar==Wt+&quot;&quot;;case u:var nn=T;case a:var Ci=2&amp;It;if(nn||(nn=L),ar.size!=Wt.size&amp;&amp;!Ci)return!1;var Ds=di.get(ar);if(Ds)return Ds==Wt;It|=1,di.set(ar,Wt);var Fi=rr(nn(ar),nn(Wt),Zr,Rs,It,di);return di.delete(ar),Fi;case&quot;[object Symbol]&quot;:if(we)return we.call(ar)==we.call(Wt)}return!1})(Ke,Ye,pt,Ht,Dt,St,bt);if(!(2&amp;St)){var Gn=hr&amp;&amp;Z.call(Ke,&quot;__wrapped__&quot;),Cr=Mr&amp;&amp;Z.call(Ye,&quot;__wrapped__&quot;);if(Gn||Cr){var cs=Gn?Ke.value():Ke,Cn=Cr?Ye.value():Ye;return bt||(bt=new Ve),Ht(cs,Cn,Dt,St,bt)}}return Kt?(bt||(bt=new Ve),(function(ar,Wt,Ln,Zr,Rs,It){var di=2&amp;Rs,nn=fr(ar),Ci=nn.length,Ds=fr(Wt).length;if(Ci!=Ds&amp;&amp;!di)return!1;for(var Fi=Ci;Fi--;){var fi=nn[Fi];if(!(di?fi in Wt:Z.call(Wt,fi)))return!1}var oa=It.get(ar);if(oa&amp;&amp;It.get(Wt))return oa==Wt;var Yn=!0;It.set(ar,Wt),It.set(Wt,ar);for(var Kr=di;++Fi&lt;Ci;){fi=nn[Fi];var En=ar[fi],Zn=Wt[fi];if(Zr)var Pr=di?Zr(Zn,En,fi,Wt,ar,It):Zr(En,Zn,fi,ar,Wt,It);if(!(Pr===void 0?En===Zn||Ln(En,Zn,Zr,Rs,It):Pr)){Yn=!1;break}Kr||(Kr=fi==&quot;constructor&quot;)}if(Yn&amp;&amp;!Kr){var hi=ar.constructor,Fn=Wt.constructor;hi==Fn||!(&quot;constructor&quot;in ar)||!(&quot;constructor&quot;in Wt)||typeof hi==&quot;function&quot;&amp;&amp;hi instanceof hi&amp;&amp;typeof Fn==&quot;function&quot;&amp;&amp;Fn instanceof Fn||(Yn=!1)}return It.delete(ar),It.delete(Wt),Yn})(Ke,Ye,Ht,Dt,St,bt)):!1})(he,je,$t,Fe,Ue,lt))}function ft(he){return!(!Vt(he)||(function(je){return!!z&amp;&amp;z in je})(he))&amp;&amp;(Ot(he)||K(he)?U:x).test(Ne(he))}function zt(he){return typeof he==&quot;function&quot;?he:he==null?Yr:typeof he==&quot;object&quot;?jt(he)?(function(Ue,lt){return it(Ue)&amp;&amp;Ut(lt)?Xt(be(Ue),lt):function(Ke){var Ye=(function(Ht,Dt,St){var bt=Ht==null?void 0:Me(Ht,Dt);return bt===void 0?St:bt})(Ke,Ue);return Ye===void 0&amp;&amp;Ye===lt?(function(Ht,Dt){return Ht!=null&amp;&amp;(function(St,bt,Ce){bt=it(bt,St)?[bt]:Ct(bt);for(var ct,pt=-1,Yt=bt.length;++pt&lt;Yt;){var hr=be(bt[pt]);if(!(ct=St!=null&amp;&amp;Ce(St,hr)))break;St=St[hr]}return ct||!!(Yt=St?St.length:0)&amp;&amp;At(Yt)&amp;&amp;Jt(hr,Yt)&amp;&amp;(jt(St)||Pt(St))})(Ht,Dt,st)})(Ke,Ue):$t(lt,Ye,void 0,3)}})(he[0],he[1]):(function(Ue){var lt=(function(Ke){for(var Ye=fr(Ke),Ht=Ye.length;Ht--;){var Dt=Ye[Ht],St=Ke[Dt];Ye[Ht]=[Dt,St,Ut(St)]}return Ye})(Ue);return lt.length==1&amp;&amp;lt[0][2]?Xt(lt[0][0],lt[0][1]):function(Ke){return Ke===Ue||(function(Ye,Ht,Dt,St){var bt=Dt.length,Ce=bt;if(Ye==null)return!Ce;for(Ye=Object(Ye);bt--;){var ct=Dt[bt];if(ct[2]?ct[1]!==Ye[ct[0]]:!(ct[0]in Ye))return!1}for(;++bt&lt;Ce;){var pt=(ct=Dt[bt])[0],Yt=Ye[pt],hr=ct[1];if(ct[2]){if(Yt===void 0&amp;&amp;!(pt in Ye))return!1}else{var Mr=new Ve,Kt;if(!(Kt===void 0?$t(hr,Yt,St,3,Mr):Kt))return!1}}return!0})(Ke,Ue,lt)}})(he):it(je=he)?(Fe=be(je),function(Ue){return Ue?.[Fe]}):(function(Ue){return function(lt){return Me(lt,Ue)}})(je);var je,Fe}function Bt(he){if(Fe=(je=he)&amp;&amp;je.constructor,Ue=typeof Fe==&quot;function&quot;&amp;&amp;Fe.prototype||P,je!==Ue)return re(he);var je,Fe,Ue,lt=[];for(var Ke in Object(he))Z.call(he,Ke)&amp;&amp;Ke!=&quot;constructor&quot;&amp;&amp;lt.push(Ke);return lt}function Ct(he){return jt(he)?he:Mt(he)}function rr(he,je,Fe,Ue,lt,Ke){var Ye=2&amp;lt,Ht=he.length,Dt=je.length;if(Ht!=Dt&amp;&amp;!(Ye&amp;&amp;Dt&gt;Ht))return!1;var St=Ke.get(he);if(St&amp;&amp;Ke.get(je))return St==je;var bt=-1,Ce=!0,ct=1&amp;lt?new Oe:void 0;for(Ke.set(he,je),Ke.set(je,he);++bt&lt;Ht;){var pt=he[bt],Yt=je[bt];if(Ue)var hr=Ye?Ue(Yt,pt,bt,je,he,Ke):Ue(pt,Yt,bt,he,je,Ke);if(hr!==void 0){if(hr)continue;Ce=!1;break}if(ct){if(!B(je,(function(Mr,Kt){if(!ct.has(Kt)&amp;&amp;(pt===Mr||Fe(pt,Mr,Ue,lt,Ke)))return ct.add(Kt)}))){Ce=!1;break}}else if(pt!==Yt&amp;&amp;!Fe(pt,Yt,Ue,lt,Ke)){Ce=!1;break}}return Ke.delete(he),Ke.delete(je),Ce}function Gt(he,je){var Fe,Ue,lt=he.__data__;return((Ue=typeof(Fe=je))==&quot;string&quot;||Ue==&quot;number&quot;||Ue==&quot;symbol&quot;||Ue==&quot;boolean&quot;?Fe!==&quot;__proto__&quot;:Fe===null)?lt[typeof je==&quot;string&quot;?&quot;string&quot;:&quot;hash&quot;]:lt.map}function _t(he,je){var Fe=(function(Ue,lt){return Ue?.[lt]})(he,je);return ft(Fe)?Fe:void 0}var Rt=function(he){return ne.call(he)};function Jt(he,je){return!!(je=je??9007199254740991)&amp;&amp;(typeof he==&quot;number&quot;||g.test(he))&amp;&amp;he&gt;-1&amp;&amp;he%1==0&amp;&amp;he&lt;je}function it(he,je){if(jt(he))return!1;var Fe=typeof he;return!(Fe!=&quot;number&quot;&amp;&amp;Fe!=&quot;symbol&quot;&amp;&amp;Fe!=&quot;boolean&quot;&amp;&amp;he!=null&amp;&amp;!sr(he))||f.test(he)||!d.test(he)||je!=null&amp;&amp;he in Object(je)}function Ut(he){return he==he&amp;&amp;!Vt(he)}function Xt(he,je){return function(Fe){return Fe!=null&amp;&amp;Fe[he]===je&amp;&amp;(je!==void 0||he in Object(Fe))}}(Q&amp;&amp;Rt(new Q(new ArrayBuffer(1)))!=&quot;[object DataView]&quot;||te&amp;&amp;Rt(new te)!=u||ie&amp;&amp;Rt(ie.resolve())!=&quot;[object Promise]&quot;||de&amp;&amp;Rt(new de)!=a||ce&amp;&amp;Rt(new ce)!=&quot;[object WeakMap]&quot;)&amp;&amp;(Rt=function(he){var je=ne.call(he),Fe=je==c?he.constructor:void 0,Ue=Fe?Ne(Fe):void 0;if(Ue)switch(Ue){case fe:return&quot;[object DataView]&quot;;case le:return u;case ge:return&quot;[object Promise]&quot;;case xe:return a;case pe:return&quot;[object WeakMap]&quot;}return je});var Mt=vt((function(he){var je;he=(je=he)==null?&quot;&quot;:(function(Ue){if(typeof Ue==&quot;string&quot;)return Ue;if(sr(Ue))return ke?ke.call(Ue):&quot;&quot;;var lt=Ue+&quot;&quot;;return lt==&quot;0&quot;&amp;&amp;1/Ue==-1/0?&quot;-0&quot;:lt})(je);var Fe=[];return h.test(he)&amp;&amp;Fe.push(&quot;&quot;),he.replace(m,(function(Ue,lt,Ke,Ye){Fe.push(Ke?Ye.replace(p,&quot;$1&quot;):lt||Ue)})),Fe}));function be(he){if(typeof he==&quot;string&quot;||sr(he))return he;var je=he+&quot;&quot;;return je==&quot;0&quot;&amp;&amp;1/he==-1/0?&quot;-0&quot;:je}function Ne(he){if(he!=null){try{return Y.call(he)}catch{}try{return he+&quot;&quot;}catch{}}return&quot;&quot;}var Re,Ge=(Re=function(he,je,Fe){Z.call(he,Fe)?he[Fe].push(je):he[Fe]=[je]},function(he,je){var Fe=jt(he)?H:Je,Ue={};return Fe(he,Re,zt(je),Ue)});function vt(he,je){if(typeof he!=&quot;function&quot;||je&amp;&amp;typeof je!=&quot;function&quot;)throw new TypeError(&quot;Expected a function&quot;);var Fe=function(){var Ue=arguments,lt=je?je.apply(this,Ue):Ue[0],Ke=Fe.cache;if(Ke.has(lt))return Ke.get(lt);var Ye=he.apply(this,Ue);return Fe.cache=Ke.set(lt,Ye),Ye};return Fe.cache=new(vt.Cache||ze),Fe}function rt(he,je){return he===je||he!=he&amp;&amp;je!=je}function Pt(he){return(function(je){return dr(je)&amp;&amp;at(je)})(he)&amp;&amp;Z.call(he,&quot;callee&quot;)&amp;&amp;(!R.call(he,&quot;callee&quot;)||ne.call(he)==l)}vt.Cache=ze;var jt=Array.isArray;function at(he){return he!=null&amp;&amp;At(he.length)&amp;&amp;!Ot(he)}function Ot(he){var je=Vt(he)?ne.call(he):&quot;&quot;;return je==&quot;[object Function]&quot;||je==&quot;[object GeneratorFunction]&quot;}function At(he){return typeof he==&quot;number&quot;&amp;&amp;he&gt;-1&amp;&amp;he%1==0&amp;&amp;he&lt;=9007199254740991}function Vt(he){var je=typeof he;return!!he&amp;&amp;(je==&quot;object&quot;||je==&quot;function&quot;)}function dr(he){return!!he&amp;&amp;typeof he==&quot;object&quot;}function sr(he){return typeof he==&quot;symbol&quot;||dr(he)&amp;&amp;ne.call(he)==&quot;[object Symbol]&quot;}var _r=q?(function(he){return function(je){return he(je)}})(q):function(he){return dr(he)&amp;&amp;At(he.length)&amp;&amp;!!y[ne.call(he)]};function fr(he){return at(he)?Qe(he):Bt(he)}function Yr(he){return he}n.exports=Ge}).call(this)}).call(this,typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{}],444:[function(t,n,o){var s=Object.prototype.toString;n.exports=function(l){return l===!0||l===!1||(function(u){return!!u&amp;&amp;typeof u==&quot;object&quot;})(l)&amp;&amp;s.call(l)==&quot;[object Boolean]&quot;}},{}],445:[function(t,n,o){(function(s){(function(){var l=&quot;[object Arguments]&quot;,u=&quot;[object Map]&quot;,c=&quot;[object Object]&quot;,a=&quot;[object Set]&quot;,d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};h[&quot;[object Float32Array]&quot;]=h[&quot;[object Float64Array]&quot;]=h[&quot;[object Int8Array]&quot;]=h[&quot;[object Int16Array]&quot;]=h[&quot;[object Int32Array]&quot;]=h[&quot;[object Uint8Array]&quot;]=h[&quot;[object Uint8ClampedArray]&quot;]=h[&quot;[object Uint16Array]&quot;]=h[&quot;[object Uint32Array]&quot;]=!0,h[l]=h[&quot;[object Array]&quot;]=h[&quot;[object ArrayBuffer]&quot;]=h[&quot;[object Boolean]&quot;]=h[&quot;[object DataView]&quot;]=h[&quot;[object Date]&quot;]=h[&quot;[object Error]&quot;]=h[&quot;[object Function]&quot;]=h[u]=h[&quot;[object Number]&quot;]=h[c]=h[&quot;[object RegExp]&quot;]=h[a]=h[&quot;[object String]&quot;]=h[&quot;[object WeakMap]&quot;]=!1;var m=typeof s==&quot;object&quot;&amp;&amp;s&amp;&amp;s.Object===Object&amp;&amp;s,p=typeof self==&quot;object&quot;&amp;&amp;self&amp;&amp;self.Object===Object&amp;&amp;self,x=m||p||Function(&quot;return this&quot;)(),g=typeof o==&quot;object&quot;&amp;&amp;o&amp;&amp;!o.nodeType&amp;&amp;o,y=g&amp;&amp;typeof n==&quot;object&quot;&amp;&amp;n&amp;&amp;!n.nodeType&amp;&amp;n,v=y&amp;&amp;y.exports===g,_=v&amp;&amp;m.process,S=(function(){try{return _&amp;&amp;_.binding&amp;&amp;_.binding(&quot;util&quot;)}catch{}})(),A=S&amp;&amp;S.isTypedArray;function I(be,Ne){for(var Re=-1,Ge=be==null?0:be.length;++Re&lt;Ge;)if(Ne(be[Re],Re,be))return!0;return!1}function V(be){var Ne=-1,Re=Array(be.size);return be.forEach((function(Ge,vt){Re[++Ne]=[vt,Ge]})),Re}function F(be){var Ne=-1,Re=Array(be.size);return be.forEach((function(Ge){Re[++Ne]=Ge})),Re}var q,H,B,K=Array.prototype,T=Function.prototype,L=Object.prototype,E=x[&quot;__core-js_shared__&quot;],j=T.toString,k=L.hasOwnProperty,N=(q=/[^.]+$/.exec(E&amp;&amp;E.keys&amp;&amp;E.keys.IE_PROTO||&quot;&quot;))?&quot;Symbol(src)_1.&quot;+q:&quot;&quot;,C=L.toString,P=RegExp(&quot;^&quot;+j.call(k).replace(/[\\^$.*+?()[\]{}|]/g,&quot;\\$&amp;&quot;).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,&quot;$1.*?&quot;)+&quot;$&quot;),D=v?x.Buffer:void 0,z=x.Symbol,Y=x.Uint8Array,Z=L.propertyIsEnumerable,ne=K.splice,U=z?z.toStringTag:void 0,J=Object.getOwnPropertySymbols,$=D?D.isBuffer:void 0,R=(H=Object.keys,B=Object,function(be){return H(B(be))}),X=st(x,&quot;DataView&quot;),re=st(x,&quot;Map&quot;),Q=st(x,&quot;Promise&quot;),te=st(x,&quot;Set&quot;),ie=st(x,&quot;WeakMap&quot;),de=st(Object,&quot;create&quot;),ce=Bt(X),se=Bt(re),fe=Bt(Q),le=Bt(te),ge=Bt(ie),xe=z?z.prototype:void 0,pe=xe?xe.valueOf:void 0;function ue(be){var Ne=-1,Re=be==null?0:be.length;for(this.clear();++Ne&lt;Re;){var Ge=be[Ne];this.set(Ge[0],Ge[1])}}function we(be){var Ne=-1,Re=be==null?0:be.length;for(this.clear();++Ne&lt;Re;){var Ge=be[Ne];this.set(Ge[0],Ge[1])}}function ke(be){var Ne=-1,Re=be==null?0:be.length;for(this.clear();++Ne&lt;Re;){var Ge=be[Ne];this.set(Ge[0],Ge[1])}}function De(be){var Ne=-1,Re=be==null?0:be.length;for(this.__data__=new ke;++Ne&lt;Re;)this.add(be[Ne])}function Le(be){var Ne=this.__data__=new we(be);this.size=Ne.size}function ze(be,Ne){var Re=Gt(be),Ge=!Re&amp;&amp;rr(be),vt=!Re&amp;&amp;!Ge&amp;&amp;_t(be),rt=!Re&amp;&amp;!Ge&amp;&amp;!vt&amp;&amp;Xt(be),Pt=Re||Ge||vt||rt,jt=Pt?(function(At,Vt){for(var dr=-1,sr=Array(At);++dr&lt;At;)sr[dr]=Vt(dr);return sr})(be.length,String):[],at=jt.length;for(var Ot in be)!k.call(be,Ot)||Pt&amp;&amp;(Ot==&quot;length&quot;||vt&amp;&amp;(Ot==&quot;offset&quot;||Ot==&quot;parent&quot;)||rt&amp;&amp;(Ot==&quot;buffer&quot;||Ot==&quot;byteLength&quot;||Ot==&quot;byteOffset&quot;)||zt(Ot,at))||jt.push(Ot);return jt}function Oe(be,Ne){for(var Re=be.length;Re--;)if(Ct(be[Re][0],Ne))return Re;return-1}function Ve(be){return be==null?be===void 0?&quot;[object Undefined]&quot;:&quot;[object Null]&quot;:U&amp;&amp;U in Object(be)?(function(Ne){var Re=k.call(Ne,U),Ge=Ne[U];try{Ne[U]=void 0;var vt=!0}catch{}var rt=C.call(Ne);return vt&amp;&amp;(Re?Ne[U]=Ge:delete Ne[U]),rt})(be):(function(Ne){return C.call(Ne)})(be)}function Qe(be){return Ut(be)&amp;&amp;Ve(be)==l}function Ze(be,Ne,Re,Ge,vt){return be===Ne||(be==null||Ne==null||!Ut(be)&amp;&amp;!Ut(Ne)?be!=be&amp;&amp;Ne!=Ne:(function(rt,Pt,jt,at,Ot,At){var Vt=Gt(rt),dr=Gt(Pt),sr=Vt?&quot;[object Array]&quot;:ft(rt),_r=dr?&quot;[object Array]&quot;:ft(Pt),fr=(sr=sr==l?c:sr)==c,Yr=(_r=_r==l?c:_r)==c,he=sr==_r;if(he&amp;&amp;_t(rt)){if(!_t(Pt))return!1;Vt=!0,fr=!1}if(he&amp;&amp;!fr)return At||(At=new Le),Vt||Xt(rt)?tt(rt,Pt,jt,at,Ot,At):(function(Ke,Ye,Ht,Dt,St,bt,Ce){switch(Ht){case&quot;[object DataView]&quot;:if(Ke.byteLength!=Ye.byteLength||Ke.byteOffset!=Ye.byteOffset)return!1;Ke=Ke.buffer,Ye=Ye.buffer;case&quot;[object ArrayBuffer]&quot;:return!(Ke.byteLength!=Ye.byteLength||!bt(new Y(Ke),new Y(Ye)));case&quot;[object Boolean]&quot;:case&quot;[object Date]&quot;:case&quot;[object Number]&quot;:return Ct(+Ke,+Ye);case&quot;[object Error]&quot;:return Ke.name==Ye.name&amp;&amp;Ke.message==Ye.message;case&quot;[object RegExp]&quot;:case&quot;[object String]&quot;:return Ke==Ye+&quot;&quot;;case u:var ct=V;case a:var pt=1&amp;Dt;if(ct||(ct=F),Ke.size!=Ye.size&amp;&amp;!pt)return!1;var Yt=Ce.get(Ke);if(Yt)return Yt==Ye;Dt|=2,Ce.set(Ke,Ye);var hr=tt(ct(Ke),ct(Ye),Dt,St,bt,Ce);return Ce.delete(Ke),hr;case&quot;[object Symbol]&quot;:if(pe)return pe.call(Ke)==pe.call(Ye)}return!1})(rt,Pt,sr,jt,at,Ot,At);if(!(1&amp;jt)){var je=fr&amp;&amp;k.call(rt,&quot;__wrapped__&quot;),Fe=Yr&amp;&amp;k.call(Pt,&quot;__wrapped__&quot;);if(je||Fe){var Ue=je?rt.value():rt,lt=Fe?Pt.value():Pt;return At||(At=new Le),Ot(Ue,lt,jt,at,At)}}return he?(At||(At=new Le),(function(Ke,Ye,Ht,Dt,St,bt){var Ce=1&amp;Ht,ct=nt(Ke),pt=ct.length,Yt=nt(Ye).length;if(pt!=Yt&amp;&amp;!Ce)return!1;for(var hr=pt;hr--;){var Mr=ct[hr];if(!(Ce?Mr in Ye:k.call(Ye,Mr)))return!1}var Kt=bt.get(Ke);if(Kt&amp;&amp;bt.get(Ye))return Kt==Ye;var Gn=!0;bt.set(Ke,Ye),bt.set(Ye,Ke);for(var Cr=Ce;++hr&lt;pt;){Mr=ct[hr];var cs=Ke[Mr],Cn=Ye[Mr];if(Dt)var ar=Ce?Dt(Cn,cs,Mr,Ye,Ke,bt):Dt(cs,Cn,Mr,Ke,Ye,bt);if(!(ar===void 0?cs===Cn||St(cs,Cn,Ht,Dt,bt):ar)){Gn=!1;break}Cr||(Cr=Mr==&quot;constructor&quot;)}if(Gn&amp;&amp;!Cr){var Wt=Ke.constructor,Ln=Ye.constructor;Wt==Ln||!(&quot;constructor&quot;in Ke)||!(&quot;constructor&quot;in Ye)||typeof Wt==&quot;function&quot;&amp;&amp;Wt instanceof Wt&amp;&amp;typeof Ln==&quot;function&quot;&amp;&amp;Ln instanceof Ln||(Gn=!1)}return bt.delete(Ke),bt.delete(Ye),Gn})(rt,Pt,jt,at,Ot,At)):!1})(be,Ne,Re,Ge,Ze,vt))}function Je(be){return!(!it(be)||(function(Ne){return!!N&amp;&amp;N in Ne})(be))&amp;&amp;(Rt(be)?P:d).test(Bt(be))}function qe(be){if(Re=(Ne=be)&amp;&amp;Ne.constructor,Ge=typeof Re==&quot;function&quot;&amp;&amp;Re.prototype||L,Ne!==Ge)return R(be);var Ne,Re,Ge,vt=[];for(var rt in Object(be))k.call(be,rt)&amp;&amp;rt!=&quot;constructor&quot;&amp;&amp;vt.push(rt);return vt}function tt(be,Ne,Re,Ge,vt,rt){var Pt=1&amp;Re,jt=be.length,at=Ne.length;if(jt!=at&amp;&amp;!(Pt&amp;&amp;at&gt;jt))return!1;var Ot=rt.get(be);if(Ot&amp;&amp;rt.get(Ne))return Ot==Ne;var At=-1,Vt=!0,dr=2&amp;Re?new De:void 0;for(rt.set(be,Ne),rt.set(Ne,be);++At&lt;jt;){var sr=be[At],_r=Ne[At];if(Ge)var fr=Pt?Ge(_r,sr,At,Ne,be,rt):Ge(sr,_r,At,be,Ne,rt);if(fr!==void 0){if(fr)continue;Vt=!1;break}if(dr){if(!I(Ne,(function(Yr,he){if(je=he,!dr.has(je)&amp;&amp;(sr===Yr||vt(sr,Yr,Re,Ge,rt)))return dr.push(he);var je}))){Vt=!1;break}}else if(sr!==_r&amp;&amp;!vt(sr,_r,Re,Ge,rt)){Vt=!1;break}}return rt.delete(be),rt.delete(Ne),Vt}function nt(be){return(function(Ne,Re,Ge){var vt=Re(Ne);return Gt(Ne)?vt:(function(rt,Pt){for(var jt=-1,at=Pt.length,Ot=rt.length;++jt&lt;at;)rt[Ot+jt]=Pt[jt];return rt})(vt,Ge(Ne))})(be,Mt,$t)}function Me(be,Ne){var Re,Ge,vt=be.__data__;return((Ge=typeof(Re=Ne))==&quot;string&quot;||Ge==&quot;number&quot;||Ge==&quot;symbol&quot;||Ge==&quot;boolean&quot;?Re!==&quot;__proto__&quot;:Re===null)?vt[typeof Ne==&quot;string&quot;?&quot;string&quot;:&quot;hash&quot;]:vt.map}function st(be,Ne){var Re=(function(Ge,vt){return Ge?.[vt]})(be,Ne);return Je(Re)?Re:void 0}ue.prototype.clear=function(){this.__data__=de?de(null):{},this.size=0},ue.prototype.delete=function(be){var Ne=this.has(be)&amp;&amp;delete this.__data__[be];return this.size-=Ne?1:0,Ne},ue.prototype.get=function(be){var Ne=this.__data__;if(de){var Re=Ne[be];return Re===&quot;__lodash_hash_undefined__&quot;?void 0:Re}return k.call(Ne,be)?Ne[be]:void 0},ue.prototype.has=function(be){var Ne=this.__data__;return de?Ne[be]!==void 0:k.call(Ne,be)},ue.prototype.set=function(be,Ne){var Re=this.__data__;return this.size+=this.has(be)?0:1,Re[be]=de&amp;&amp;Ne===void 0?&quot;__lodash_hash_undefined__&quot;:Ne,this},we.prototype.clear=function(){this.__data__=[],this.size=0},we.prototype.delete=function(be){var Ne=this.__data__,Re=Oe(Ne,be);return!(Re&lt;0)&amp;&amp;(Re==Ne.length-1?Ne.pop():ne.call(Ne,Re,1),--this.size,!0)},we.prototype.get=function(be){var Ne=this.__data__,Re=Oe(Ne,be);return Re&lt;0?void 0:Ne[Re][1]},we.prototype.has=function(be){return Oe(this.__data__,be)&gt;-1},we.prototype.set=function(be,Ne){var Re=this.__data__,Ge=Oe(Re,be);return Ge&lt;0?(++this.size,Re.push([be,Ne])):Re[Ge][1]=Ne,this},ke.prototype.clear=function(){this.size=0,this.__data__={hash:new ue,map:new(re||we),string:new ue}},ke.prototype.delete=function(be){var Ne=Me(this,be).delete(be);return this.size-=Ne?1:0,Ne},ke.prototype.get=function(be){return Me(this,be).get(be)},ke.prototype.has=function(be){return Me(this,be).has(be)},ke.prototype.set=function(be,Ne){var Re=Me(this,be),Ge=Re.size;return Re.set(be,Ne),this.size+=Re.size==Ge?0:1,this},De.prototype.add=De.prototype.push=function(be){return this.__data__.set(be,&quot;__lodash_hash_undefined__&quot;),this},De.prototype.has=function(be){return this.__data__.has(be)},Le.prototype.clear=function(){this.__data__=new we,this.size=0},Le.prototype.delete=function(be){var Ne=this.__data__,Re=Ne.delete(be);return this.size=Ne.size,Re},Le.prototype.get=function(be){return this.__data__.get(be)},Le.prototype.has=function(be){return this.__data__.has(be)},Le.prototype.set=function(be,Ne){var Re=this.__data__;if(Re instanceof we){var Ge=Re.__data__;if(!re||Ge.length&lt;199)return Ge.push([be,Ne]),this.size=++Re.size,this;Re=this.__data__=new ke(Ge)}return Re.set(be,Ne),this.size=Re.size,this};var $t=J?function(be){return be==null?[]:(be=Object(be),(function(Ne,Re){for(var Ge=-1,vt=Ne==null?0:Ne.length,rt=0,Pt=[];++Ge&lt;vt;){var jt=Ne[Ge];Re(jt,Ge,Ne)&amp;&amp;(Pt[rt++]=jt)}return Pt})(J(be),(function(Ne){return Z.call(be,Ne)})))}:function(){return[]},ft=Ve;function zt(be,Ne){return!!(Ne=Ne??9007199254740991)&amp;&amp;(typeof be==&quot;number&quot;||f.test(be))&amp;&amp;be&gt;-1&amp;&amp;be%1==0&amp;&amp;be&lt;Ne}function Bt(be){if(be!=null){try{return j.call(be)}catch{}try{return be+&quot;&quot;}catch{}}return&quot;&quot;}function Ct(be,Ne){return be===Ne||be!=be&amp;&amp;Ne!=Ne}(X&amp;&amp;ft(new X(new ArrayBuffer(1)))!=&quot;[object DataView]&quot;||re&amp;&amp;ft(new re)!=u||Q&amp;&amp;ft(Q.resolve())!=&quot;[object Promise]&quot;||te&amp;&amp;ft(new te)!=a||ie&amp;&amp;ft(new ie)!=&quot;[object WeakMap]&quot;)&amp;&amp;(ft=function(be){var Ne=Ve(be),Re=Ne==c?be.constructor:void 0,Ge=Re?Bt(Re):&quot;&quot;;if(Ge)switch(Ge){case ce:return&quot;[object DataView]&quot;;case se:return u;case fe:return&quot;[object Promise]&quot;;case le:return a;case ge:return&quot;[object WeakMap]&quot;}return Ne});var rr=Qe((function(){return arguments})())?Qe:function(be){return Ut(be)&amp;&amp;k.call(be,&quot;callee&quot;)&amp;&amp;!Z.call(be,&quot;callee&quot;)},Gt=Array.isArray,_t=$||function(){return!1};function Rt(be){if(!it(be))return!1;var Ne=Ve(be);return Ne==&quot;[object Function]&quot;||Ne==&quot;[object GeneratorFunction]&quot;||Ne==&quot;[object AsyncFunction]&quot;||Ne==&quot;[object Proxy]&quot;}function Jt(be){return typeof be==&quot;number&quot;&amp;&amp;be&gt;-1&amp;&amp;be%1==0&amp;&amp;be&lt;=9007199254740991}function it(be){var Ne=typeof be;return be!=null&amp;&amp;(Ne==&quot;object&quot;||Ne==&quot;function&quot;)}function Ut(be){return be!=null&amp;&amp;typeof be==&quot;object&quot;}var Xt=A?(function(be){return function(Ne){return be(Ne)}})(A):function(be){return Ut(be)&amp;&amp;Jt(be.length)&amp;&amp;!!h[Ve(be)]};function Mt(be){return(Ne=be)!=null&amp;&amp;Jt(Ne.length)&amp;&amp;!Rt(Ne)?ze(be):qe(be);var Ne}n.exports=function(be,Ne){return Ze(be,Ne)}}).call(this)}).call(this,typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{}],446:[function(t,n,o){(function(s){(function(){var l=typeof s==&quot;object&quot;&amp;&amp;s&amp;&amp;s.Object===Object&amp;&amp;s,u=typeof self==&quot;object&quot;&amp;&amp;self&amp;&amp;self.Object===Object&amp;&amp;self,c=l||u||Function(&quot;return this&quot;)(),a=Object.prototype,d=a.hasOwnProperty,f=a.toString,h=c.Symbol,m=h?h.toStringTag:void 0;function p(x){return x==null?x===void 0?&quot;[object Undefined]&quot;:&quot;[object Null]&quot;:m&amp;&amp;m in Object(x)?(function(g){var y=d.call(g,m),v=g[m];try{g[m]=void 0;var _=!0}catch{}var S=f.call(g);return _&amp;&amp;(y?g[m]=v:delete g[m]),S})(x):(function(g){return f.call(g)})(x)}n.exports=function(x){if(!(function(y){var v=typeof y;return y!=null&amp;&amp;(v==&quot;object&quot;||v==&quot;function&quot;)})(x))return!1;var g=p(x);return g==&quot;[object Function]&quot;||g==&quot;[object GeneratorFunction]&quot;||g==&quot;[object AsyncFunction]&quot;||g==&quot;[object Proxy]&quot;}}).call(this)}).call(this,typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{}],447:[function(t,n,o){n.exports=function(s){return s==null}},{}],448:[function(t,n,o){n.exports=function(s){return s===void 0}},{}],449:[function(t,n,o){(function(s){(function(){var l=/^\[object .+?Constructor\]$/,u=typeof s==&quot;object&quot;&amp;&amp;s&amp;&amp;s.Object===Object&amp;&amp;s,c=typeof self==&quot;object&quot;&amp;&amp;self&amp;&amp;self.Object===Object&amp;&amp;self,a=u||c||Function(&quot;return this&quot;)();function d(z,Y){return!!(z&amp;&amp;z.length)&amp;&amp;(function(Z,ne,U){if(ne!=ne)return(function(R,X,re,Q){for(var te=R.length,ie=re+-1;++ie&lt;te;)if(X(R[ie],ie,R))return ie;return-1})(Z,f,U);for(var J=U-1,$=Z.length;++J&lt;$;)if(Z[J]===ne)return J;return-1})(z,Y,0)&gt;-1}function f(z){return z!=z}function h(z,Y){return z.has(Y)}function m(z){var Y=-1,Z=Array(z.size);return z.forEach((function(ne){Z[++Y]=ne})),Z}var p,x=Array.prototype,g=Function.prototype,y=Object.prototype,v=a[&quot;__core-js_shared__&quot;],_=(p=/[^.]+$/.exec(v&amp;&amp;v.keys&amp;&amp;v.keys.IE_PROTO||&quot;&quot;))?&quot;Symbol(src)_1.&quot;+p:&quot;&quot;,S=g.toString,A=y.hasOwnProperty,I=y.toString,V=RegExp(&quot;^&quot;+S.call(A).replace(/[\\^$.*+?()[\]{}|]/g,&quot;\\$&amp;&quot;).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,&quot;$1.*?&quot;)+&quot;$&quot;),F=x.splice,q=P(a,&quot;Map&quot;),H=P(a,&quot;Set&quot;),B=P(Object,&quot;create&quot;);function K(z){var Y=-1,Z=z?z.length:0;for(this.clear();++Y&lt;Z;){var ne=z[Y];this.set(ne[0],ne[1])}}function T(z){var Y=-1,Z=z?z.length:0;for(this.clear();++Y&lt;Z;){var ne=z[Y];this.set(ne[0],ne[1])}}function L(z){var Y=-1,Z=z?z.length:0;for(this.clear();++Y&lt;Z;){var ne=z[Y];this.set(ne[0],ne[1])}}function E(z){var Y=-1,Z=z?z.length:0;for(this.__data__=new L;++Y&lt;Z;)this.add(z[Y])}function j(z,Y){for(var Z,ne,U=z.length;U--;)if((Z=z[U][0])===(ne=Y)||Z!=Z&amp;&amp;ne!=ne)return U;return-1}function k(z){return!(!D(z)||(Y=z,_&amp;&amp;_ in Y))&amp;&amp;((function(Z){var ne=D(Z)?I.call(Z):&quot;&quot;;return ne==&quot;[object Function]&quot;||ne==&quot;[object GeneratorFunction]&quot;})(z)||(function(Z){var ne=!1;if(Z!=null&amp;&amp;typeof Z.toString!=&quot;function&quot;)try{ne=!!(Z+&quot;&quot;)}catch{}return ne})(z)?V:l).test((function(Z){if(Z!=null){try{return S.call(Z)}catch{}try{return Z+&quot;&quot;}catch{}}return&quot;&quot;})(z));var Y}K.prototype.clear=function(){this.__data__=B?B(null):{}},K.prototype.delete=function(z){return this.has(z)&amp;&amp;delete this.__data__[z]},K.prototype.get=function(z){var Y=this.__data__;if(B){var Z=Y[z];return Z===&quot;__lodash_hash_undefined__&quot;?void 0:Z}return A.call(Y,z)?Y[z]:void 0},K.prototype.has=function(z){var Y=this.__data__;return B?Y[z]!==void 0:A.call(Y,z)},K.prototype.set=function(z,Y){return this.__data__[z]=B&amp;&amp;Y===void 0?&quot;__lodash_hash_undefined__&quot;:Y,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(z){var Y=this.__data__,Z=j(Y,z);return!(Z&lt;0)&amp;&amp;(Z==Y.length-1?Y.pop():F.call(Y,Z,1),!0)},T.prototype.get=function(z){var Y=this.__data__,Z=j(Y,z);return Z&lt;0?void 0:Y[Z][1]},T.prototype.has=function(z){return j(this.__data__,z)&gt;-1},T.prototype.set=function(z,Y){var Z=this.__data__,ne=j(Z,z);return ne&lt;0?Z.push([z,Y]):Z[ne][1]=Y,this},L.prototype.clear=function(){this.__data__={hash:new K,map:new(q||T),string:new K}},L.prototype.delete=function(z){return C(this,z).delete(z)},L.prototype.get=function(z){return C(this,z).get(z)},L.prototype.has=function(z){return C(this,z).has(z)},L.prototype.set=function(z,Y){return C(this,z).set(z,Y),this},E.prototype.add=E.prototype.push=function(z){return this.__data__.set(z,&quot;__lodash_hash_undefined__&quot;),this},E.prototype.has=function(z){return this.__data__.has(z)};var N=H&amp;&amp;1/m(new H([,-0]))[1]==1/0?function(z){return new H(z)}:function(){};function C(z,Y){var Z,ne,U=z.__data__;return((ne=typeof(Z=Y))==&quot;string&quot;||ne==&quot;number&quot;||ne==&quot;symbol&quot;||ne==&quot;boolean&quot;?Z!==&quot;__proto__&quot;:Z===null)?U[typeof Y==&quot;string&quot;?&quot;string&quot;:&quot;hash&quot;]:U.map}function P(z,Y){var Z=(function(ne,U){return ne?.[U]})(z,Y);return k(Z)?Z:void 0}function D(z){var Y=typeof z;return!!z&amp;&amp;(Y==&quot;object&quot;||Y==&quot;function&quot;)}n.exports=function(z){return z&amp;&amp;z.length?(function(Y,Z,ne){var U=-1,J=d,$=Y.length,R=!0,X=[],re=X;if($&gt;=200){var Q=N(Y);if(Q)return m(Q);R=!1,J=h,re=new E}else re=X;e:for(;++U&lt;$;){var te=Y[U],ie=te;if(te=te!==0?te:0,R&amp;&amp;ie==ie){for(var de=re.length;de--;)if(re[de]===ie)continue e;X.push(te)}else J(re,ie,ne)||(re!==X&amp;&amp;re.push(ie),X.push(te))}return X})(z):[]}}).call(this)}).call(this,typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{}],450:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;hash-base&quot;),u=t(&quot;safe-buffer&quot;).Buffer,c=new Array(16);function a(){l.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function d(x,g){return x&lt;&lt;g|x&gt;&gt;&gt;32-g}function f(x,g,y,v,_,S,A){return d(x+(g&amp;y|~g&amp;v)+_+S|0,A)+g|0}function h(x,g,y,v,_,S,A){return d(x+(g&amp;v|y&amp;~v)+_+S|0,A)+g|0}function m(x,g,y,v,_,S,A){return d(x+(g^y^v)+_+S|0,A)+g|0}function p(x,g,y,v,_,S,A){return d(x+(y^(g|~v))+_+S|0,A)+g|0}s(a,l),a.prototype._update=function(){for(var x=c,g=0;g&lt;16;++g)x[g]=this._block.readInt32LE(4*g);var y=this._a,v=this._b,_=this._c,S=this._d;y=f(y,v,_,S,x[0],3614090360,7),S=f(S,y,v,_,x[1],3905402710,12),_=f(_,S,y,v,x[2],606105819,17),v=f(v,_,S,y,x[3],3250441966,22),y=f(y,v,_,S,x[4],4118548399,7),S=f(S,y,v,_,x[5],1200080426,12),_=f(_,S,y,v,x[6],2821735955,17),v=f(v,_,S,y,x[7],4249261313,22),y=f(y,v,_,S,x[8],1770035416,7),S=f(S,y,v,_,x[9],2336552879,12),_=f(_,S,y,v,x[10],4294925233,17),v=f(v,_,S,y,x[11],2304563134,22),y=f(y,v,_,S,x[12],1804603682,7),S=f(S,y,v,_,x[13],4254626195,12),_=f(_,S,y,v,x[14],2792965006,17),y=h(y,v=f(v,_,S,y,x[15],1236535329,22),_,S,x[1],4129170786,5),S=h(S,y,v,_,x[6],3225465664,9),_=h(_,S,y,v,x[11],643717713,14),v=h(v,_,S,y,x[0],3921069994,20),y=h(y,v,_,S,x[5],3593408605,5),S=h(S,y,v,_,x[10],38016083,9),_=h(_,S,y,v,x[15],3634488961,14),v=h(v,_,S,y,x[4],3889429448,20),y=h(y,v,_,S,x[9],568446438,5),S=h(S,y,v,_,x[14],3275163606,9),_=h(_,S,y,v,x[3],4107603335,14),v=h(v,_,S,y,x[8],1163531501,20),y=h(y,v,_,S,x[13],2850285829,5),S=h(S,y,v,_,x[2],4243563512,9),_=h(_,S,y,v,x[7],1735328473,14),y=m(y,v=h(v,_,S,y,x[12],2368359562,20),_,S,x[5],4294588738,4),S=m(S,y,v,_,x[8],2272392833,11),_=m(_,S,y,v,x[11],1839030562,16),v=m(v,_,S,y,x[14],4259657740,23),y=m(y,v,_,S,x[1],2763975236,4),S=m(S,y,v,_,x[4],1272893353,11),_=m(_,S,y,v,x[7],4139469664,16),v=m(v,_,S,y,x[10],3200236656,23),y=m(y,v,_,S,x[13],681279174,4),S=m(S,y,v,_,x[0],3936430074,11),_=m(_,S,y,v,x[3],3572445317,16),v=m(v,_,S,y,x[6],76029189,23),y=m(y,v,_,S,x[9],3654602809,4),S=m(S,y,v,_,x[12],3873151461,11),_=m(_,S,y,v,x[15],530742520,16),y=p(y,v=m(v,_,S,y,x[2],3299628645,23),_,S,x[0],4096336452,6),S=p(S,y,v,_,x[7],1126891415,10),_=p(_,S,y,v,x[14],2878612391,15),v=p(v,_,S,y,x[5],4237533241,21),y=p(y,v,_,S,x[12],1700485571,6),S=p(S,y,v,_,x[3],2399980690,10),_=p(_,S,y,v,x[10],4293915773,15),v=p(v,_,S,y,x[1],2240044497,21),y=p(y,v,_,S,x[8],1873313359,6),S=p(S,y,v,_,x[15],4264355552,10),_=p(_,S,y,v,x[6],2734768916,15),v=p(v,_,S,y,x[13],1309151649,21),y=p(y,v,_,S,x[4],4149444226,6),S=p(S,y,v,_,x[11],3174756917,10),_=p(_,S,y,v,x[2],718787259,15),v=p(v,_,S,y,x[9],3951481745,21),this._a=this._a+y|0,this._b=this._b+v|0,this._c=this._c+_|0,this._d=this._d+S|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset&gt;56&amp;&amp;(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var x=u.allocUnsafe(16);return x.writeInt32LE(this._a,0),x.writeInt32LE(this._b,4),x.writeInt32LE(this._c,8),x.writeInt32LE(this._d,12),x},n.exports=a},{&quot;hash-base&quot;:425,inherits:440,&quot;safe-buffer&quot;:494}],451:[function(t,n,o){var s=t(&quot;bn.js&quot;),l=t(&quot;brorand&quot;);function u(c){this.rand=c||new l.Rand}n.exports=u,u.create=function(c){return new u(c)},u.prototype._randbelow=function(c){var a=c.bitLength(),d=Math.ceil(a/8);do var f=new s(this.rand.generate(d));while(f.cmp(c)&gt;=0);return f},u.prototype._randrange=function(c,a){var d=a.sub(c);return c.add(this._randbelow(d))},u.prototype.test=function(c,a,d){var f=c.bitLength(),h=s.mont(c),m=new s(1).toRed(h);a||(a=Math.max(1,f/48|0));for(var p=c.subn(1),x=0;!p.testn(x);x++);for(var g=c.shrn(x),y=p.toRed(h);a&gt;0;a--){var v=this._randrange(new s(2),p);d&amp;&amp;d(v);var _=v.toRed(h).redPow(g);if(_.cmp(m)!==0&amp;&amp;_.cmp(y)!==0){for(var S=1;S&lt;x;S++){if((_=_.redSqr()).cmp(m)===0)return!1;if(_.cmp(y)===0)break}if(S===x)return!1}}return!0},u.prototype.getDivisor=function(c,a){var d=c.bitLength(),f=s.mont(c),h=new s(1).toRed(f);a||(a=Math.max(1,d/48|0));for(var m=c.subn(1),p=0;!m.testn(p);p++);for(var x=c.shrn(p),g=m.toRed(f);a&gt;0;a--){var y=this._randrange(new s(2),m),v=c.gcd(y);if(v.cmpn(1)!==0)return v;var _=y.toRed(f).redPow(x);if(_.cmp(h)!==0&amp;&amp;_.cmp(g)!==0){for(var S=1;S&lt;p;S++){if((_=_.redSqr()).cmp(h)===0)return _.fromRed().subn(1).gcd(c);if(_.cmp(g)===0)break}if(S===p)return(_=_.redSqr()).fromRed().subn(1).gcd(c)}}return!1}},{&quot;bn.js&quot;:452,brorand:187}],452:[function(t,n,o){arguments[4][184][0].apply(o,arguments)},{buffer:188,dup:184}],453:[function(t,n,o){function s(l,u){if(!l)throw new Error(u||&quot;Assertion failed&quot;)}n.exports=s,s.equal=function(l,u,c){if(l!=u)throw new Error(c||&quot;Assertion failed: &quot;+l+&quot; != &quot;+u)}},{}],454:[function(t,n,o){var s=o;function l(c){return c.length===1?&quot;0&quot;+c:c}function u(c){for(var a=&quot;&quot;,d=0;d&lt;c.length;d++)a+=l(c[d].toString(16));return a}s.toArray=function(c,a){if(Array.isArray(c))return c.slice();if(!c)return[];var d=[];if(typeof c!=&quot;string&quot;){for(var f=0;f&lt;c.length;f++)d[f]=0|c[f];return d}if(a===&quot;hex&quot;)for((c=c.replace(/[^a-z0-9]+/gi,&quot;&quot;)).length%2!=0&amp;&amp;(c=&quot;0&quot;+c),f=0;f&lt;c.length;f+=2)d.push(parseInt(c[f]+c[f+1],16));else for(f=0;f&lt;c.length;f++){var h=c.charCodeAt(f),m=h&gt;&gt;8,p=255&amp;h;m?d.push(m,p):d.push(p)}return d},s.zero2=l,s.toHex=u,s.encode=function(c,a){return a===&quot;hex&quot;?u(c):c}},{}],455:[function(t,n,o){n.exports={&quot;2.16.840.1.101.3.4.1.1&quot;:&quot;aes-128-ecb&quot;,&quot;2.16.840.1.101.3.4.1.2&quot;:&quot;aes-128-cbc&quot;,&quot;2.16.840.1.101.3.4.1.3&quot;:&quot;aes-128-ofb&quot;,&quot;2.16.840.1.101.3.4.1.4&quot;:&quot;aes-128-cfb&quot;,&quot;2.16.840.1.101.3.4.1.21&quot;:&quot;aes-192-ecb&quot;,&quot;2.16.840.1.101.3.4.1.22&quot;:&quot;aes-192-cbc&quot;,&quot;2.16.840.1.101.3.4.1.23&quot;:&quot;aes-192-ofb&quot;,&quot;2.16.840.1.101.3.4.1.24&quot;:&quot;aes-192-cfb&quot;,&quot;2.16.840.1.101.3.4.1.41&quot;:&quot;aes-256-ecb&quot;,&quot;2.16.840.1.101.3.4.1.42&quot;:&quot;aes-256-cbc&quot;,&quot;2.16.840.1.101.3.4.1.43&quot;:&quot;aes-256-ofb&quot;,&quot;2.16.840.1.101.3.4.1.44&quot;:&quot;aes-256-cfb&quot;}},{}],456:[function(t,n,o){var s=t(&quot;asn1.js&quot;);o.certificate=t(&quot;./certificate&quot;);var l=s.define(&quot;RSAPrivateKey&quot;,(function(){this.seq().obj(this.key(&quot;version&quot;).int(),this.key(&quot;modulus&quot;).int(),this.key(&quot;publicExponent&quot;).int(),this.key(&quot;privateExponent&quot;).int(),this.key(&quot;prime1&quot;).int(),this.key(&quot;prime2&quot;).int(),this.key(&quot;exponent1&quot;).int(),this.key(&quot;exponent2&quot;).int(),this.key(&quot;coefficient&quot;).int())}));o.RSAPrivateKey=l;var u=s.define(&quot;RSAPublicKey&quot;,(function(){this.seq().obj(this.key(&quot;modulus&quot;).int(),this.key(&quot;publicExponent&quot;).int())}));o.RSAPublicKey=u;var c=s.define(&quot;SubjectPublicKeyInfo&quot;,(function(){this.seq().obj(this.key(&quot;algorithm&quot;).use(a),this.key(&quot;subjectPublicKey&quot;).bitstr())}));o.PublicKey=c;var a=s.define(&quot;AlgorithmIdentifier&quot;,(function(){this.seq().obj(this.key(&quot;algorithm&quot;).objid(),this.key(&quot;none&quot;).null_().optional(),this.key(&quot;curve&quot;).objid().optional(),this.key(&quot;params&quot;).seq().obj(this.key(&quot;p&quot;).int(),this.key(&quot;q&quot;).int(),this.key(&quot;g&quot;).int()).optional())})),d=s.define(&quot;PrivateKeyInfo&quot;,(function(){this.seq().obj(this.key(&quot;version&quot;).int(),this.key(&quot;algorithm&quot;).use(a),this.key(&quot;subjectPrivateKey&quot;).octstr())}));o.PrivateKey=d;var f=s.define(&quot;EncryptedPrivateKeyInfo&quot;,(function(){this.seq().obj(this.key(&quot;algorithm&quot;).seq().obj(this.key(&quot;id&quot;).objid(),this.key(&quot;decrypt&quot;).seq().obj(this.key(&quot;kde&quot;).seq().obj(this.key(&quot;id&quot;).objid(),this.key(&quot;kdeparams&quot;).seq().obj(this.key(&quot;salt&quot;).octstr(),this.key(&quot;iters&quot;).int())),this.key(&quot;cipher&quot;).seq().obj(this.key(&quot;algo&quot;).objid(),this.key(&quot;iv&quot;).octstr()))),this.key(&quot;subjectPrivateKey&quot;).octstr())}));o.EncryptedPrivateKey=f;var h=s.define(&quot;DSAPrivateKey&quot;,(function(){this.seq().obj(this.key(&quot;version&quot;).int(),this.key(&quot;p&quot;).int(),this.key(&quot;q&quot;).int(),this.key(&quot;g&quot;).int(),this.key(&quot;pub_key&quot;).int(),this.key(&quot;priv_key&quot;).int())}));o.DSAPrivateKey=h,o.DSAparam=s.define(&quot;DSAparam&quot;,(function(){this.int()}));var m=s.define(&quot;ECPrivateKey&quot;,(function(){this.seq().obj(this.key(&quot;version&quot;).int(),this.key(&quot;privateKey&quot;).octstr(),this.key(&quot;parameters&quot;).optional().explicit(0).use(p),this.key(&quot;publicKey&quot;).optional().explicit(1).bitstr())}));o.ECPrivateKey=m;var p=s.define(&quot;ECParameters&quot;,(function(){this.choice({namedCurve:this.objid()})}));o.signature=s.define(&quot;signature&quot;,(function(){this.seq().obj(this.key(&quot;r&quot;).int(),this.key(&quot;s&quot;).int())}))},{&quot;./certificate&quot;:457,&quot;asn1.js&quot;:170}],457:[function(t,n,o){var s=t(&quot;asn1.js&quot;),l=s.define(&quot;Time&quot;,(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),u=s.define(&quot;AttributeTypeValue&quot;,(function(){this.seq().obj(this.key(&quot;type&quot;).objid(),this.key(&quot;value&quot;).any())})),c=s.define(&quot;AlgorithmIdentifier&quot;,(function(){this.seq().obj(this.key(&quot;algorithm&quot;).objid(),this.key(&quot;parameters&quot;).optional(),this.key(&quot;curve&quot;).objid().optional())})),a=s.define(&quot;SubjectPublicKeyInfo&quot;,(function(){this.seq().obj(this.key(&quot;algorithm&quot;).use(c),this.key(&quot;subjectPublicKey&quot;).bitstr())})),d=s.define(&quot;RelativeDistinguishedName&quot;,(function(){this.setof(u)})),f=s.define(&quot;RDNSequence&quot;,(function(){this.seqof(d)})),h=s.define(&quot;Name&quot;,(function(){this.choice({rdnSequence:this.use(f)})})),m=s.define(&quot;Validity&quot;,(function(){this.seq().obj(this.key(&quot;notBefore&quot;).use(l),this.key(&quot;notAfter&quot;).use(l))})),p=s.define(&quot;Extension&quot;,(function(){this.seq().obj(this.key(&quot;extnID&quot;).objid(),this.key(&quot;critical&quot;).bool().def(!1),this.key(&quot;extnValue&quot;).octstr())})),x=s.define(&quot;TBSCertificate&quot;,(function(){this.seq().obj(this.key(&quot;version&quot;).explicit(0).int().optional(),this.key(&quot;serialNumber&quot;).int(),this.key(&quot;signature&quot;).use(c),this.key(&quot;issuer&quot;).use(h),this.key(&quot;validity&quot;).use(m),this.key(&quot;subject&quot;).use(h),this.key(&quot;subjectPublicKeyInfo&quot;).use(a),this.key(&quot;issuerUniqueID&quot;).implicit(1).bitstr().optional(),this.key(&quot;subjectUniqueID&quot;).implicit(2).bitstr().optional(),this.key(&quot;extensions&quot;).explicit(3).seqof(p).optional())})),g=s.define(&quot;X509Certificate&quot;,(function(){this.seq().obj(this.key(&quot;tbsCertificate&quot;).use(x),this.key(&quot;signatureAlgorithm&quot;).use(c),this.key(&quot;signatureValue&quot;).bitstr())}));n.exports=g},{&quot;asn1.js&quot;:170}],458:[function(t,n,o){var s=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,l=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,u=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,c=t(&quot;evp_bytestokey&quot;),a=t(&quot;browserify-aes&quot;),d=t(&quot;safe-buffer&quot;).Buffer;n.exports=function(f,h){var m,p=f.toString(),x=p.match(s);if(x){var g=&quot;aes&quot;+x[1],y=d.from(x[2],&quot;hex&quot;),v=d.from(x[3].replace(/[\r\n]/g,&quot;&quot;),&quot;base64&quot;),_=c(h,y.slice(0,8),parseInt(x[1],10)).key,S=[],A=a.createDecipheriv(g,_,y);S.push(A.update(v)),S.push(A.final()),m=d.concat(S)}else{var I=p.match(u);m=d.from(I[2].replace(/[\r\n]/g,&quot;&quot;),&quot;base64&quot;)}return{tag:p.match(l)[1],data:m}}},{&quot;browserify-aes&quot;:191,evp_bytestokey:423,&quot;safe-buffer&quot;:494}],459:[function(t,n,o){var s=t(&quot;./asn1&quot;),l=t(&quot;./aesid.json&quot;),u=t(&quot;./fixProc&quot;),c=t(&quot;browserify-aes&quot;),a=t(&quot;pbkdf2&quot;),d=t(&quot;safe-buffer&quot;).Buffer;function f(h){var m;typeof h!=&quot;object&quot;||d.isBuffer(h)||(m=h.passphrase,h=h.key),typeof h==&quot;string&quot;&amp;&amp;(h=d.from(h));var p,x,g=u(h,m),y=g.tag,v=g.data;switch(y){case&quot;CERTIFICATE&quot;:x=s.certificate.decode(v,&quot;der&quot;).tbsCertificate.subjectPublicKeyInfo;case&quot;PUBLIC KEY&quot;:switch(x||(x=s.PublicKey.decode(v,&quot;der&quot;)),p=x.algorithm.algorithm.join(&quot;.&quot;)){case&quot;1.2.840.113549.1.1.1&quot;:return s.RSAPublicKey.decode(x.subjectPublicKey.data,&quot;der&quot;);case&quot;1.2.840.10045.2.1&quot;:return x.subjectPrivateKey=x.subjectPublicKey,{type:&quot;ec&quot;,data:x};case&quot;1.2.840.10040.4.1&quot;:return x.algorithm.params.pub_key=s.DSAparam.decode(x.subjectPublicKey.data,&quot;der&quot;),{type:&quot;dsa&quot;,data:x.algorithm.params};default:throw new Error(&quot;unknown key id &quot;+p)}case&quot;ENCRYPTED PRIVATE KEY&quot;:v=(function(_,S){var A=_.algorithm.decrypt.kde.kdeparams.salt,I=parseInt(_.algorithm.decrypt.kde.kdeparams.iters.toString(),10),V=l[_.algorithm.decrypt.cipher.algo.join(&quot;.&quot;)],F=_.algorithm.decrypt.cipher.iv,q=_.subjectPrivateKey,H=parseInt(V.split(&quot;-&quot;)[1],10)/8,B=a.pbkdf2Sync(S,A,I,H,&quot;sha1&quot;),K=c.createDecipheriv(V,B,F),T=[];return T.push(K.update(q)),T.push(K.final()),d.concat(T)})(v=s.EncryptedPrivateKey.decode(v,&quot;der&quot;),m);case&quot;PRIVATE KEY&quot;:switch(p=(x=s.PrivateKey.decode(v,&quot;der&quot;)).algorithm.algorithm.join(&quot;.&quot;)){case&quot;1.2.840.113549.1.1.1&quot;:return s.RSAPrivateKey.decode(x.subjectPrivateKey,&quot;der&quot;);case&quot;1.2.840.10045.2.1&quot;:return{curve:x.algorithm.curve,privateKey:s.ECPrivateKey.decode(x.subjectPrivateKey,&quot;der&quot;).privateKey};case&quot;1.2.840.10040.4.1&quot;:return x.algorithm.params.priv_key=s.DSAparam.decode(x.subjectPrivateKey,&quot;der&quot;),{type:&quot;dsa&quot;,params:x.algorithm.params};default:throw new Error(&quot;unknown key id &quot;+p)}case&quot;RSA PUBLIC KEY&quot;:return s.RSAPublicKey.decode(v,&quot;der&quot;);case&quot;RSA PRIVATE KEY&quot;:return s.RSAPrivateKey.decode(v,&quot;der&quot;);case&quot;DSA PRIVATE KEY&quot;:return{type:&quot;dsa&quot;,params:s.DSAPrivateKey.decode(v,&quot;der&quot;)};case&quot;EC PRIVATE KEY&quot;:return{curve:(v=s.ECPrivateKey.decode(v,&quot;der&quot;)).parameters.value,privateKey:v.privateKey};default:throw new Error(&quot;unknown key type &quot;+y)}}n.exports=f,f.signature=s.signature},{&quot;./aesid.json&quot;:455,&quot;./asn1&quot;:456,&quot;./fixProc&quot;:458,&quot;browserify-aes&quot;:191,pbkdf2:460,&quot;safe-buffer&quot;:494}],460:[function(t,n,o){o.pbkdf2=t(&quot;./lib/async&quot;),o.pbkdf2Sync=t(&quot;./lib/sync&quot;)},{&quot;./lib/async&quot;:461,&quot;./lib/sync&quot;:464}],461:[function(t,n,o){(function(s){(function(){var l,u,c=t(&quot;safe-buffer&quot;).Buffer,a=t(&quot;./precondition&quot;),d=t(&quot;./default-encoding&quot;),f=t(&quot;./sync&quot;),h=t(&quot;./to-buffer&quot;),m=s.crypto&amp;&amp;s.crypto.subtle,p={sha:&quot;SHA-1&quot;,&quot;sha-1&quot;:&quot;SHA-1&quot;,sha1:&quot;SHA-1&quot;,sha256:&quot;SHA-256&quot;,&quot;sha-256&quot;:&quot;SHA-256&quot;,sha384:&quot;SHA-384&quot;,&quot;sha-384&quot;:&quot;SHA-384&quot;,&quot;sha-512&quot;:&quot;SHA-512&quot;,sha512:&quot;SHA-512&quot;},x=[];function g(){return u||(u=s.process&amp;&amp;s.process.nextTick?s.process.nextTick:s.queueMicrotask?s.queueMicrotask:s.setImmediate?s.setImmediate:s.setTimeout)}function y(v,_,S,A,I){return m.importKey(&quot;raw&quot;,v,{name:&quot;PBKDF2&quot;},!1,[&quot;deriveBits&quot;]).then((function(V){return m.deriveBits({name:&quot;PBKDF2&quot;,salt:_,iterations:S,hash:{name:I}},V,A&lt;&lt;3)})).then((function(V){return c.from(V)}))}n.exports=function(v,_,S,A,I,V){typeof I==&quot;function&quot;&amp;&amp;(V=I,I=void 0);var F=p[(I=I||&quot;sha1&quot;).toLowerCase()];if(F&amp;&amp;typeof s.Promise==&quot;function&quot;){if(a(S,A),v=h(v,d,&quot;Password&quot;),_=h(_,d,&quot;Salt&quot;),typeof V!=&quot;function&quot;)throw new Error(&quot;No callback provided to pbkdf2&quot;);(function(q,H){q.then((function(B){g()((function(){H(null,B)}))}),(function(B){g()((function(){H(B)}))}))})((function(q){if(s.process&amp;&amp;!s.process.browser||!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(x[q]!==void 0)return x[q];var H=y(l=l||c.alloc(8),l,10,128,q).then((function(){return!0})).catch((function(){return!1}));return x[q]=H,H})(F).then((function(q){return q?y(v,_,S,A,F):f(v,_,S,A,I)})),V)}else g()((function(){var q;try{q=f(v,_,S,A,I)}catch(H){return V(H)}V(null,q)}))}}).call(this)}).call(this,typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{&quot;./default-encoding&quot;:462,&quot;./precondition&quot;:463,&quot;./sync&quot;:464,&quot;./to-buffer&quot;:465,&quot;safe-buffer&quot;:494}],462:[function(t,n,o){(function(s,l){(function(){var u;l.process&amp;&amp;l.process.browser?u=&quot;utf-8&quot;:l.process&amp;&amp;l.process.version?u=parseInt(s.version.split(&quot;.&quot;)[0].slice(1),10)&gt;=6?&quot;utf-8&quot;:&quot;binary&quot;:u=&quot;utf-8&quot;,n.exports=u}).call(this)}).call(this,t(&quot;_process&quot;),typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{_process:467}],463:[function(t,n,o){var s=Math.pow(2,30)-1;n.exports=function(l,u){if(typeof l!=&quot;number&quot;)throw new TypeError(&quot;Iterations not a number&quot;);if(l&lt;0)throw new TypeError(&quot;Bad iterations&quot;);if(typeof u!=&quot;number&quot;)throw new TypeError(&quot;Key length not a number&quot;);if(u&lt;0||u&gt;s||u!=u)throw new TypeError(&quot;Bad key length&quot;)}},{}],464:[function(t,n,o){var s=t(&quot;create-hash/md5&quot;),l=t(&quot;ripemd160&quot;),u=t(&quot;sha.js&quot;),c=t(&quot;safe-buffer&quot;).Buffer,a=t(&quot;./precondition&quot;),d=t(&quot;./default-encoding&quot;),f=t(&quot;./to-buffer&quot;),h=c.alloc(128),m={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function p(x,g,y){var v=(function(F){function q(H){return u(F).update(H).digest()}return F===&quot;rmd160&quot;||F===&quot;ripemd160&quot;?function(H){return new l().update(H).digest()}:F===&quot;md5&quot;?s:q})(x),_=x===&quot;sha512&quot;||x===&quot;sha384&quot;?128:64;g.length&gt;_?g=v(g):g.length&lt;_&amp;&amp;(g=c.concat([g,h],_));for(var S=c.allocUnsafe(_+m[x]),A=c.allocUnsafe(_+m[x]),I=0;I&lt;_;I++)S[I]=54^g[I],A[I]=92^g[I];var V=c.allocUnsafe(_+y+4);S.copy(V,0,0,_),this.ipad1=V,this.ipad2=S,this.opad=A,this.alg=x,this.blocksize=_,this.hash=v,this.size=m[x]}p.prototype.run=function(x,g){return x.copy(g,this.blocksize),this.hash(g).copy(this.opad,this.blocksize),this.hash(this.opad)},n.exports=function(x,g,y,v,_){a(y,v);var S=new p(_=_||&quot;sha1&quot;,x=f(x,d,&quot;Password&quot;),(g=f(g,d,&quot;Salt&quot;)).length),A=c.allocUnsafe(v),I=c.allocUnsafe(g.length+4);g.copy(I,0,0,g.length);for(var V=0,F=m[_],q=Math.ceil(v/F),H=1;H&lt;=q;H++){I.writeUInt32BE(H,g.length);for(var B=S.run(I,S.ipad1),K=B,T=1;T&lt;y;T++){K=S.run(K,S.ipad2);for(var L=0;L&lt;F;L++)B[L]^=K[L]}B.copy(A,V),V+=F}return A}},{&quot;./default-encoding&quot;:462,&quot;./precondition&quot;:463,&quot;./to-buffer&quot;:465,&quot;create-hash/md5&quot;:387,ripemd160:493,&quot;safe-buffer&quot;:494,&quot;sha.js&quot;:498}],465:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer;n.exports=function(l,u,c){if(s.isBuffer(l))return l;if(typeof l==&quot;string&quot;)return s.from(l,u);if(ArrayBuffer.isView(l))return s.from(l.buffer);throw new TypeError(c+&quot; must be a string, a Buffer, a typed array or a DataView&quot;)}},{&quot;safe-buffer&quot;:494}],466:[function(t,n,o){(function(s){(function(){s===void 0||!s.version||s.version.indexOf(&quot;v0.&quot;)===0||s.version.indexOf(&quot;v1.&quot;)===0&amp;&amp;s.version.indexOf(&quot;v1.8.&quot;)!==0?n.exports={nextTick:function(l,u,c,a){if(typeof l!=&quot;function&quot;)throw new TypeError(&#039;&quot;callback&quot; argument must be a function&#039;);var d,f,h=arguments.length;switch(h){case 0:case 1:return s.nextTick(l);case 2:return s.nextTick((function(){l.call(null,u)}));case 3:return s.nextTick((function(){l.call(null,u,c)}));case 4:return s.nextTick((function(){l.call(null,u,c,a)}));default:for(d=new Array(h-1),f=0;f&lt;d.length;)d[f++]=arguments[f];return s.nextTick((function(){l.apply(null,d)}))}}}:n.exports=s}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:467}],467:[function(t,n,o){var s,l,u=n.exports={};function c(){throw new Error(&quot;setTimeout has not been defined&quot;)}function a(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function d(_){if(s===setTimeout)return setTimeout(_,0);if((s===c||!s)&amp;&amp;setTimeout)return s=setTimeout,setTimeout(_,0);try{return s(_,0)}catch{try{return s.call(null,_,0)}catch{return s.call(this,_,0)}}}(function(){try{s=typeof setTimeout==&quot;function&quot;?setTimeout:c}catch{s=c}try{l=typeof clearTimeout==&quot;function&quot;?clearTimeout:a}catch{l=a}})();var f,h=[],m=!1,p=-1;function x(){m&amp;&amp;f&amp;&amp;(m=!1,f.length?h=f.concat(h):p=-1,h.length&amp;&amp;g())}function g(){if(!m){var _=d(x);m=!0;for(var S=h.length;S;){for(f=h,h=[];++p&lt;S;)f&amp;&amp;f[p].run();p=-1,S=h.length}f=null,m=!1,(function(A){if(l===clearTimeout)return clearTimeout(A);if((l===a||!l)&amp;&amp;clearTimeout)return l=clearTimeout,clearTimeout(A);try{l(A)}catch{try{return l.call(null,A)}catch{return l.call(this,A)}}})(_)}}function y(_,S){this.fun=_,this.array=S}function v(){}u.nextTick=function(_){var S=new Array(arguments.length-1);if(arguments.length&gt;1)for(var A=1;A&lt;arguments.length;A++)S[A-1]=arguments[A];h.push(new y(_,S)),h.length!==1||m||d(g)},y.prototype.run=function(){this.fun.apply(null,this.array)},u.title=&quot;browser&quot;,u.browser=!0,u.env={},u.argv=[],u.version=&quot;&quot;,u.versions={},u.on=v,u.addListener=v,u.once=v,u.off=v,u.removeListener=v,u.removeAllListeners=v,u.emit=v,u.prependListener=v,u.prependOnceListener=v,u.listeners=function(_){return[]},u.binding=function(_){throw new Error(&quot;process.binding is not supported&quot;)},u.cwd=function(){return&quot;/&quot;},u.chdir=function(_){throw new Error(&quot;process.chdir is not supported&quot;)},u.umask=function(){return 0}},{}],468:[function(t,n,o){o.publicEncrypt=t(&quot;./publicEncrypt&quot;),o.privateDecrypt=t(&quot;./privateDecrypt&quot;),o.privateEncrypt=function(s,l){return o.publicEncrypt(s,l,!0)},o.publicDecrypt=function(s,l){return o.privateDecrypt(s,l,!0)}},{&quot;./privateDecrypt&quot;:471,&quot;./publicEncrypt&quot;:472}],469:[function(t,n,o){var s=t(&quot;create-hash&quot;),l=t(&quot;safe-buffer&quot;).Buffer;function u(c){var a=l.allocUnsafe(4);return a.writeUInt32BE(c,0),a}n.exports=function(c,a){for(var d,f=l.alloc(0),h=0;f.length&lt;a;)d=u(h++),f=l.concat([f,s(&quot;sha1&quot;).update(c).update(d).digest()]);return f.slice(0,a)}},{&quot;create-hash&quot;:386,&quot;safe-buffer&quot;:494}],470:[function(t,n,o){arguments[4][184][0].apply(o,arguments)},{buffer:188,dup:184}],471:[function(t,n,o){var s=t(&quot;parse-asn1&quot;),l=t(&quot;./mgf&quot;),u=t(&quot;./xor&quot;),c=t(&quot;bn.js&quot;),a=t(&quot;browserify-rsa&quot;),d=t(&quot;create-hash&quot;),f=t(&quot;./withPublic&quot;),h=t(&quot;safe-buffer&quot;).Buffer;n.exports=function(m,p,x){var g;g=m.padding?m.padding:x?1:4;var y,v=s(m),_=v.modulus.byteLength();if(p.length&gt;_||new c(p).cmp(v.modulus)&gt;=0)throw new Error(&quot;decryption error&quot;);y=x?f(new c(p),v):a(p,v);var S=h.alloc(_-y.length);if(y=h.concat([S,y],_),g===4)return(function(A,I){var V=A.modulus.byteLength(),F=d(&quot;sha1&quot;).update(h.alloc(0)).digest(),q=F.length;if(I[0]!==0)throw new Error(&quot;decryption error&quot;);var H=I.slice(1,q+1),B=I.slice(q+1),K=u(H,l(B,q)),T=u(B,l(K,V-q-1));if((function(E,j){E=h.from(E),j=h.from(j);var k=0,N=E.length;E.length!==j.length&amp;&amp;(k++,N=Math.min(E.length,j.length));for(var C=-1;++C&lt;N;)k+=E[C]^j[C];return k})(F,T.slice(0,q)))throw new Error(&quot;decryption error&quot;);for(var L=q;T[L]===0;)L++;if(T[L++]!==1)throw new Error(&quot;decryption error&quot;);return T.slice(L)})(v,y);if(g===1)return(function(A,I,V){for(var F=I.slice(0,2),q=2,H=0;I[q++]!==0;)if(q&gt;=I.length){H++;break}var B=I.slice(2,q-1);if((F.toString(&quot;hex&quot;)!==&quot;0002&quot;&amp;&amp;!V||F.toString(&quot;hex&quot;)!==&quot;0001&quot;&amp;&amp;V)&amp;&amp;H++,B.length&lt;8&amp;&amp;H++,H)throw new Error(&quot;decryption error&quot;);return I.slice(q)})(0,y,x);if(g===3)return y;throw new Error(&quot;unknown padding&quot;)}},{&quot;./mgf&quot;:469,&quot;./withPublic&quot;:473,&quot;./xor&quot;:474,&quot;bn.js&quot;:470,&quot;browserify-rsa&quot;:209,&quot;create-hash&quot;:386,&quot;parse-asn1&quot;:459,&quot;safe-buffer&quot;:494}],472:[function(t,n,o){var s=t(&quot;parse-asn1&quot;),l=t(&quot;randombytes&quot;),u=t(&quot;create-hash&quot;),c=t(&quot;./mgf&quot;),a=t(&quot;./xor&quot;),d=t(&quot;bn.js&quot;),f=t(&quot;./withPublic&quot;),h=t(&quot;browserify-rsa&quot;),m=t(&quot;safe-buffer&quot;).Buffer;n.exports=function(p,x,g){var y;y=p.padding?p.padding:g?1:4;var v,_=s(p);if(y===4)v=(function(S,A){var I=S.modulus.byteLength(),V=A.length,F=u(&quot;sha1&quot;).update(m.alloc(0)).digest(),q=F.length,H=2*q;if(V&gt;I-H-2)throw new Error(&quot;message too long&quot;);var B=m.alloc(I-V-H-2),K=I-q-1,T=l(q),L=a(m.concat([F,B,m.alloc(1,1),A],K),c(T,K)),E=a(T,c(L,q));return new d(m.concat([m.alloc(1),E,L],I))})(_,x);else if(y===1)v=(function(S,A,I){var V,F=A.length,q=S.modulus.byteLength();if(F&gt;q-11)throw new Error(&quot;message too long&quot;);return V=I?m.alloc(q-F-3,255):(function(H){for(var B,K=m.allocUnsafe(H),T=0,L=l(2*H),E=0;T&lt;H;)E===L.length&amp;&amp;(L=l(2*H),E=0),(B=L[E++])&amp;&amp;(K[T++]=B);return K})(q-F-3),new d(m.concat([m.from([0,I?1:2]),V,m.alloc(1),A],q))})(_,x,g);else{if(y!==3)throw new Error(&quot;unknown padding&quot;);if((v=new d(x)).cmp(_.modulus)&gt;=0)throw new Error(&quot;data too long for modulus&quot;)}return g?h(v,_):f(v,_)}},{&quot;./mgf&quot;:469,&quot;./withPublic&quot;:473,&quot;./xor&quot;:474,&quot;bn.js&quot;:470,&quot;browserify-rsa&quot;:209,&quot;create-hash&quot;:386,&quot;parse-asn1&quot;:459,randombytes:475,&quot;safe-buffer&quot;:494}],473:[function(t,n,o){var s=t(&quot;bn.js&quot;),l=t(&quot;safe-buffer&quot;).Buffer;n.exports=function(u,c){return l.from(u.toRed(s.mont(c.modulus)).redPow(new s(c.publicExponent)).fromRed().toArray())}},{&quot;bn.js&quot;:470,&quot;safe-buffer&quot;:494}],474:[function(t,n,o){n.exports=function(s,l){for(var u=s.length,c=-1;++c&lt;u;)s[c]^=l[c];return s}},{}],475:[function(t,n,o){(function(s,l){(function(){var u=t(&quot;safe-buffer&quot;).Buffer,c=l.crypto||l.msCrypto;c&amp;&amp;c.getRandomValues?n.exports=function(a,d){if(a&gt;4294967295)throw new RangeError(&quot;requested too many random bytes&quot;);var f=u.allocUnsafe(a);if(a&gt;0)if(a&gt;65536)for(var h=0;h&lt;a;h+=65536)c.getRandomValues(f.slice(h,h+65536));else c.getRandomValues(f);return typeof d==&quot;function&quot;?s.nextTick((function(){d(null,f)})):f}:n.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,t(&quot;_process&quot;),typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{_process:467,&quot;safe-buffer&quot;:494}],476:[function(t,n,o){(function(s,l){(function(){function u(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var c=t(&quot;safe-buffer&quot;),a=t(&quot;randombytes&quot;),d=c.Buffer,f=c.kMaxLength,h=l.crypto||l.msCrypto,m=Math.pow(2,32)-1;function p(y,v){if(typeof y!=&quot;number&quot;||y!=y)throw new TypeError(&quot;offset must be a number&quot;);if(y&gt;m||y&lt;0)throw new TypeError(&quot;offset must be a uint32&quot;);if(y&gt;f||y&gt;v)throw new RangeError(&quot;offset out of range&quot;)}function x(y,v,_){if(typeof y!=&quot;number&quot;||y!=y)throw new TypeError(&quot;size must be a number&quot;);if(y&gt;m||y&lt;0)throw new TypeError(&quot;size must be a uint32&quot;);if(y+v&gt;_||y&gt;f)throw new RangeError(&quot;buffer too small&quot;)}function g(y,v,_,S){if(s.browser){var A=y.buffer,I=new Uint8Array(A,v,_);return h.getRandomValues(I),S?void s.nextTick((function(){S(null,y)})):y}if(!S)return a(_).copy(y,v),y;a(_,(function(V,F){if(V)return S(V);F.copy(y,v),S(null,y)}))}h&amp;&amp;h.getRandomValues||!s.browser?(o.randomFill=function(y,v,_,S){if(!(d.isBuffer(y)||y instanceof l.Uint8Array))throw new TypeError(&#039;&quot;buf&quot; argument must be a Buffer or Uint8Array&#039;);if(typeof v==&quot;function&quot;)S=v,v=0,_=y.length;else if(typeof _==&quot;function&quot;)S=_,_=y.length-v;else if(typeof S!=&quot;function&quot;)throw new TypeError(&#039;&quot;cb&quot; argument must be a function&#039;);return p(v,y.length),x(_,v,y.length),g(y,v,_,S)},o.randomFillSync=function(y,v,_){if(v===void 0&amp;&amp;(v=0),!(d.isBuffer(y)||y instanceof l.Uint8Array))throw new TypeError(&#039;&quot;buf&quot; argument must be a Buffer or Uint8Array&#039;);return p(v,y.length),_===void 0&amp;&amp;(_=y.length-v),x(_,v,y.length),g(y,v,_)}):(o.randomFill=u,o.randomFillSync=u)}).call(this)}).call(this,t(&quot;_process&quot;),typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{_process:467,randombytes:475,&quot;safe-buffer&quot;:494}],477:[function(t,n,o){var s={};function l(c,a,d){d||(d=Error);var f=(function(h){var m,p;function x(g,y,v){return h.call(this,(function(_,S,A){return typeof a==&quot;string&quot;?a:a(_,S,A)})(g,y,v))||this}return p=h,(m=x).prototype=Object.create(p.prototype),m.prototype.constructor=m,m.__proto__=p,x})(d);f.prototype.name=d.name,f.prototype.code=c,s[c]=f}function u(c,a){if(Array.isArray(c)){var d=c.length;return c=c.map((function(f){return String(f)})),d&gt;2?&quot;one of &quot;.concat(a,&quot; &quot;).concat(c.slice(0,d-1).join(&quot;, &quot;),&quot;, or &quot;)+c[d-1]:d===2?&quot;one of &quot;.concat(a,&quot; &quot;).concat(c[0],&quot; or &quot;).concat(c[1]):&quot;of &quot;.concat(a,&quot; &quot;).concat(c[0])}return&quot;of &quot;.concat(a,&quot; &quot;).concat(String(c))}l(&quot;ERR_INVALID_OPT_VALUE&quot;,(function(c,a){return&#039;The value &quot;&#039;+a+&#039;&quot; is invalid for option &quot;&#039;+c+&#039;&quot;&#039;}),TypeError),l(&quot;ERR_INVALID_ARG_TYPE&quot;,(function(c,a,d){var f,h,m;if(typeof a==&quot;string&quot;&amp;&amp;(h=&quot;not &quot;,a.substr(0,h.length)===h)?(f=&quot;must not be&quot;,a=a.replace(/^not /,&quot;&quot;)):f=&quot;must be&quot;,(function(x,g,y){return(y===void 0||y&gt;x.length)&amp;&amp;(y=x.length),x.substring(y-g.length,y)===g})(c,&quot; argument&quot;))m=&quot;The &quot;.concat(c,&quot; &quot;).concat(f,&quot; &quot;).concat(u(a,&quot;type&quot;));else{var p=(function(x,g,y){return typeof y!=&quot;number&quot;&amp;&amp;(y=0),!(y+g.length&gt;x.length)&amp;&amp;x.indexOf(g,y)!==-1})(c,&quot;.&quot;)?&quot;property&quot;:&quot;argument&quot;;m=&#039;The &quot;&#039;.concat(c,&#039;&quot; &#039;).concat(p,&quot; &quot;).concat(f,&quot; &quot;).concat(u(a,&quot;type&quot;))}return m+=&quot;. Received type &quot;.concat(typeof d)}),TypeError),l(&quot;ERR_STREAM_PUSH_AFTER_EOF&quot;,&quot;stream.push() after EOF&quot;),l(&quot;ERR_METHOD_NOT_IMPLEMENTED&quot;,(function(c){return&quot;The &quot;+c+&quot; method is not implemented&quot;})),l(&quot;ERR_STREAM_PREMATURE_CLOSE&quot;,&quot;Premature close&quot;),l(&quot;ERR_STREAM_DESTROYED&quot;,(function(c){return&quot;Cannot call &quot;+c+&quot; after a stream was destroyed&quot;})),l(&quot;ERR_MULTIPLE_CALLBACK&quot;,&quot;Callback called multiple times&quot;),l(&quot;ERR_STREAM_CANNOT_PIPE&quot;,&quot;Cannot pipe, not readable&quot;),l(&quot;ERR_STREAM_WRITE_AFTER_END&quot;,&quot;write after end&quot;),l(&quot;ERR_STREAM_NULL_VALUES&quot;,&quot;May not write null values to stream&quot;,TypeError),l(&quot;ERR_UNKNOWN_ENCODING&quot;,(function(c){return&quot;Unknown encoding: &quot;+c}),TypeError),l(&quot;ERR_STREAM_UNSHIFT_AFTER_END_EVENT&quot;,&quot;stream.unshift() after end event&quot;),n.exports.codes=s},{}],478:[function(t,n,o){(function(s){(function(){var l=Object.keys||function(x){var g=[];for(var y in x)g.push(y);return g};n.exports=h;var u=t(&quot;./_stream_readable&quot;),c=t(&quot;./_stream_writable&quot;);t(&quot;inherits&quot;)(h,u);for(var a=l(c.prototype),d=0;d&lt;a.length;d++){var f=a[d];h.prototype[f]||(h.prototype[f]=c.prototype[f])}function h(x){if(!(this instanceof h))return new h(x);u.call(this,x),c.call(this,x),this.allowHalfOpen=!0,x&amp;&amp;(x.readable===!1&amp;&amp;(this.readable=!1),x.writable===!1&amp;&amp;(this.writable=!1),x.allowHalfOpen===!1&amp;&amp;(this.allowHalfOpen=!1,this.once(&quot;end&quot;,m)))}function m(){this._writableState.ended||s.nextTick(p,this)}function p(x){x.end()}Object.defineProperty(h.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,&quot;writableBuffer&quot;,{enumerable:!1,get:function(){return this._writableState&amp;&amp;this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,&quot;writableLength&quot;,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return this._readableState!==void 0&amp;&amp;this._writableState!==void 0&amp;&amp;this._readableState.destroyed&amp;&amp;this._writableState.destroyed},set:function(x){this._readableState!==void 0&amp;&amp;this._writableState!==void 0&amp;&amp;(this._readableState.destroyed=x,this._writableState.destroyed=x)}})}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./_stream_readable&quot;:480,&quot;./_stream_writable&quot;:482,_process:467,inherits:440}],479:[function(t,n,o){n.exports=l;var s=t(&quot;./_stream_transform&quot;);function l(u){if(!(this instanceof l))return new l(u);s.call(this,u)}t(&quot;inherits&quot;)(l,s),l.prototype._transform=function(u,c,a){a(null,u)}},{&quot;./_stream_transform&quot;:481,inherits:440}],480:[function(t,n,o){(function(s,l){(function(){var u;n.exports=K,K.ReadableState=B,t(&quot;events&quot;).EventEmitter;var c=function($,R){return $.listeners(R).length},a=t(&quot;./internal/streams/stream&quot;),d=t(&quot;buffer&quot;).Buffer,f=(l!==void 0?l:typeof window&lt;&quot;u&quot;?window:typeof self&lt;&quot;u&quot;?self:{}).Uint8Array||function(){},h,m=t(&quot;util&quot;);h=m&amp;&amp;m.debuglog?m.debuglog(&quot;stream&quot;):function(){};var p,x,g,y=t(&quot;./internal/streams/buffer_list&quot;),v=t(&quot;./internal/streams/destroy&quot;),_=t(&quot;./internal/streams/state&quot;).getHighWaterMark,S=t(&quot;../errors&quot;).codes,A=S.ERR_INVALID_ARG_TYPE,I=S.ERR_STREAM_PUSH_AFTER_EOF,V=S.ERR_METHOD_NOT_IMPLEMENTED,F=S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t(&quot;inherits&quot;)(K,a);var q=v.errorOrDestroy,H=[&quot;error&quot;,&quot;close&quot;,&quot;destroy&quot;,&quot;pause&quot;,&quot;resume&quot;];function B($,R,X){u=u||t(&quot;./_stream_duplex&quot;),$=$||{},typeof X!=&quot;boolean&quot;&amp;&amp;(X=R instanceof u),this.objectMode=!!$.objectMode,X&amp;&amp;(this.objectMode=this.objectMode||!!$.readableObjectMode),this.highWaterMark=_(this,$,&quot;readableHighWaterMark&quot;,X),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||&quot;utf8&quot;,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding&amp;&amp;(p||(p=t(&quot;string_decoder/&quot;).StringDecoder),this.decoder=new p($.encoding),this.encoding=$.encoding)}function K($){if(u=u||t(&quot;./_stream_duplex&quot;),!(this instanceof K))return new K($);var R=this instanceof u;this._readableState=new B($,this,R),this.readable=!0,$&amp;&amp;(typeof $.read==&quot;function&quot;&amp;&amp;(this._read=$.read),typeof $.destroy==&quot;function&quot;&amp;&amp;(this._destroy=$.destroy)),a.call(this)}function T($,R,X,re,Q){h(&quot;readableAddChunk&quot;,R);var te,ie=$._readableState;if(R===null)ie.reading=!1,(function(de,ce){if(h(&quot;onEofChunk&quot;),!ce.ended){if(ce.decoder){var se=ce.decoder.end();se&amp;&amp;se.length&amp;&amp;(ce.buffer.push(se),ce.length+=ce.objectMode?1:se.length)}ce.ended=!0,ce.sync?j(de):(ce.needReadable=!1,ce.emittedReadable||(ce.emittedReadable=!0,k(de)))}})($,ie);else if(Q||(te=(function(de,ce){var se;fe=ce,d.isBuffer(fe)||fe instanceof f||typeof ce==&quot;string&quot;||ce===void 0||de.objectMode||(se=new A(&quot;chunk&quot;,[&quot;string&quot;,&quot;Buffer&quot;,&quot;Uint8Array&quot;],ce));var fe;return se})(ie,R)),te)q($,te);else if(ie.objectMode||R&amp;&amp;R.length&gt;0)if(typeof R==&quot;string&quot;||ie.objectMode||Object.getPrototypeOf(R)===d.prototype||(R=(function(de){return d.from(de)})(R)),re)ie.endEmitted?q($,new F):L($,ie,R,!0);else if(ie.ended)q($,new I);else{if(ie.destroyed)return!1;ie.reading=!1,ie.decoder&amp;&amp;!X?(R=ie.decoder.write(R),ie.objectMode||R.length!==0?L($,ie,R,!1):N($,ie)):L($,ie,R,!1)}else re||(ie.reading=!1,N($,ie));return!ie.ended&amp;&amp;(ie.length&lt;ie.highWaterMark||ie.length===0)}function L($,R,X,re){R.flowing&amp;&amp;R.length===0&amp;&amp;!R.sync?(R.awaitDrain=0,$.emit(&quot;data&quot;,X)):(R.length+=R.objectMode?1:X.length,re?R.buffer.unshift(X):R.buffer.push(X),R.needReadable&amp;&amp;j($)),N($,R)}Object.defineProperty(K.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return this._readableState!==void 0&amp;&amp;this._readableState.destroyed},set:function($){this._readableState&amp;&amp;(this._readableState.destroyed=$)}}),K.prototype.destroy=v.destroy,K.prototype._undestroy=v.undestroy,K.prototype._destroy=function($,R){R($)},K.prototype.push=function($,R){var X,re=this._readableState;return re.objectMode?X=!0:typeof $==&quot;string&quot;&amp;&amp;((R=R||re.defaultEncoding)!==re.encoding&amp;&amp;($=d.from($,R),R=&quot;&quot;),X=!0),T(this,$,R,!1,X)},K.prototype.unshift=function($){return T(this,$,null,!0,!1)},K.prototype.isPaused=function(){return this._readableState.flowing===!1},K.prototype.setEncoding=function($){p||(p=t(&quot;string_decoder/&quot;).StringDecoder);var R=new p($);this._readableState.decoder=R,this._readableState.encoding=this._readableState.decoder.encoding;for(var X=this._readableState.buffer.head,re=&quot;&quot;;X!==null;)re+=R.write(X.data),X=X.next;return this._readableState.buffer.clear(),re!==&quot;&quot;&amp;&amp;this._readableState.buffer.push(re),this._readableState.length=re.length,this};function E($,R){return $&lt;=0||R.length===0&amp;&amp;R.ended?0:R.objectMode?1:$!=$?R.flowing&amp;&amp;R.length?R.buffer.head.data.length:R.length:($&gt;R.highWaterMark&amp;&amp;(R.highWaterMark=(function(X){return X&gt;=1073741824?X=1073741824:(X--,X|=X&gt;&gt;&gt;1,X|=X&gt;&gt;&gt;2,X|=X&gt;&gt;&gt;4,X|=X&gt;&gt;&gt;8,X|=X&gt;&gt;&gt;16,X++),X})($)),$&lt;=R.length?$:R.ended?R.length:(R.needReadable=!0,0))}function j($){var R=$._readableState;h(&quot;emitReadable&quot;,R.needReadable,R.emittedReadable),R.needReadable=!1,R.emittedReadable||(h(&quot;emitReadable&quot;,R.flowing),R.emittedReadable=!0,s.nextTick(k,$))}function k($){var R=$._readableState;h(&quot;emitReadable_&quot;,R.destroyed,R.length,R.ended),R.destroyed||!R.length&amp;&amp;!R.ended||($.emit(&quot;readable&quot;),R.emittedReadable=!1),R.needReadable=!R.flowing&amp;&amp;!R.ended&amp;&amp;R.length&lt;=R.highWaterMark,Y($)}function N($,R){R.readingMore||(R.readingMore=!0,s.nextTick(C,$,R))}function C($,R){for(;!R.reading&amp;&amp;!R.ended&amp;&amp;(R.length&lt;R.highWaterMark||R.flowing&amp;&amp;R.length===0);){var X=R.length;if(h(&quot;maybeReadMore read 0&quot;),$.read(0),X===R.length)break}R.readingMore=!1}function P($){var R=$._readableState;R.readableListening=$.listenerCount(&quot;readable&quot;)&gt;0,R.resumeScheduled&amp;&amp;!R.paused?R.flowing=!0:$.listenerCount(&quot;data&quot;)&gt;0&amp;&amp;$.resume()}function D($){h(&quot;readable nexttick read 0&quot;),$.read(0)}function z($,R){h(&quot;resume&quot;,R.reading),R.reading||$.read(0),R.resumeScheduled=!1,$.emit(&quot;resume&quot;),Y($),R.flowing&amp;&amp;!R.reading&amp;&amp;$.read(0)}function Y($){var R=$._readableState;for(h(&quot;flow&quot;,R.flowing);R.flowing&amp;&amp;$.read()!==null;);}function Z($,R){return R.length===0?null:(R.objectMode?X=R.buffer.shift():!$||$&gt;=R.length?(X=R.decoder?R.buffer.join(&quot;&quot;):R.buffer.length===1?R.buffer.first():R.buffer.concat(R.length),R.buffer.clear()):X=R.buffer.consume($,R.decoder),X);var X}function ne($){var R=$._readableState;h(&quot;endReadable&quot;,R.endEmitted),R.endEmitted||(R.ended=!0,s.nextTick(U,R,$))}function U($,R){if(h(&quot;endReadableNT&quot;,$.endEmitted,$.length),!$.endEmitted&amp;&amp;$.length===0&amp;&amp;($.endEmitted=!0,R.readable=!1,R.emit(&quot;end&quot;),$.autoDestroy)){var X=R._writableState;(!X||X.autoDestroy&amp;&amp;X.finished)&amp;&amp;R.destroy()}}function J($,R){for(var X=0,re=$.length;X&lt;re;X++)if($[X]===R)return X;return-1}K.prototype.read=function($){h(&quot;read&quot;,$),$=parseInt($,10);var R=this._readableState,X=$;if($!==0&amp;&amp;(R.emittedReadable=!1),$===0&amp;&amp;R.needReadable&amp;&amp;((R.highWaterMark!==0?R.length&gt;=R.highWaterMark:R.length&gt;0)||R.ended))return h(&quot;read: emitReadable&quot;,R.length,R.ended),R.length===0&amp;&amp;R.ended?ne(this):j(this),null;if(($=E($,R))===0&amp;&amp;R.ended)return R.length===0&amp;&amp;ne(this),null;var re,Q=R.needReadable;return h(&quot;need readable&quot;,Q),(R.length===0||R.length-$&lt;R.highWaterMark)&amp;&amp;h(&quot;length less than watermark&quot;,Q=!0),R.ended||R.reading?h(&quot;reading or ended&quot;,Q=!1):Q&amp;&amp;(h(&quot;do read&quot;),R.reading=!0,R.sync=!0,R.length===0&amp;&amp;(R.needReadable=!0),this._read(R.highWaterMark),R.sync=!1,R.reading||($=E(X,R))),(re=$&gt;0?Z($,R):null)===null?(R.needReadable=R.length&lt;=R.highWaterMark,$=0):(R.length-=$,R.awaitDrain=0),R.length===0&amp;&amp;(R.ended||(R.needReadable=!0),X!==$&amp;&amp;R.ended&amp;&amp;ne(this)),re!==null&amp;&amp;this.emit(&quot;data&quot;,re),re},K.prototype._read=function($){q(this,new V(&quot;_read()&quot;))},K.prototype.pipe=function($,R){var X=this,re=this._readableState;switch(re.pipesCount){case 0:re.pipes=$;break;case 1:re.pipes=[re.pipes,$];break;default:re.pipes.push($)}re.pipesCount+=1,h(&quot;pipe count=%d opts=%j&quot;,re.pipesCount,R);var Q=(!R||R.end!==!1)&amp;&amp;$!==s.stdout&amp;&amp;$!==s.stderr?ie:xe;function te(pe,ue){h(&quot;onunpipe&quot;),pe===X&amp;&amp;ue&amp;&amp;ue.hasUnpiped===!1&amp;&amp;(ue.hasUnpiped=!0,h(&quot;cleanup&quot;),$.removeListener(&quot;close&quot;,le),$.removeListener(&quot;finish&quot;,ge),$.removeListener(&quot;drain&quot;,de),$.removeListener(&quot;error&quot;,fe),$.removeListener(&quot;unpipe&quot;,te),X.removeListener(&quot;end&quot;,ie),X.removeListener(&quot;end&quot;,xe),X.removeListener(&quot;data&quot;,se),ce=!0,!re.awaitDrain||$._writableState&amp;&amp;!$._writableState.needDrain||de())}function ie(){h(&quot;onend&quot;),$.end()}re.endEmitted?s.nextTick(Q):X.once(&quot;end&quot;,Q),$.on(&quot;unpipe&quot;,te);var de=(function(pe){return function(){var ue=pe._readableState;h(&quot;pipeOnDrain&quot;,ue.awaitDrain),ue.awaitDrain&amp;&amp;ue.awaitDrain--,ue.awaitDrain===0&amp;&amp;c(pe,&quot;data&quot;)&amp;&amp;(ue.flowing=!0,Y(pe))}})(X);$.on(&quot;drain&quot;,de);var ce=!1;function se(pe){h(&quot;ondata&quot;);var ue=$.write(pe);h(&quot;dest.write&quot;,ue),ue===!1&amp;&amp;((re.pipesCount===1&amp;&amp;re.pipes===$||re.pipesCount&gt;1&amp;&amp;J(re.pipes,$)!==-1)&amp;&amp;!ce&amp;&amp;(h(&quot;false write response, pause&quot;,re.awaitDrain),re.awaitDrain++),X.pause())}function fe(pe){h(&quot;onerror&quot;,pe),xe(),$.removeListener(&quot;error&quot;,fe),c($,&quot;error&quot;)===0&amp;&amp;q($,pe)}function le(){$.removeListener(&quot;finish&quot;,ge),xe()}function ge(){h(&quot;onfinish&quot;),$.removeListener(&quot;close&quot;,le),xe()}function xe(){h(&quot;unpipe&quot;),X.unpipe($)}return X.on(&quot;data&quot;,se),(function(pe,ue,we){if(typeof pe.prependListener==&quot;function&quot;)return pe.prependListener(ue,we);pe._events&amp;&amp;pe._events[ue]?Array.isArray(pe._events[ue])?pe._events[ue].unshift(we):pe._events[ue]=[we,pe._events[ue]]:pe.on(ue,we)})($,&quot;error&quot;,fe),$.once(&quot;close&quot;,le),$.once(&quot;finish&quot;,ge),$.emit(&quot;pipe&quot;,X),re.flowing||(h(&quot;pipe resume&quot;),X.resume()),$},K.prototype.unpipe=function($){var R=this._readableState,X={hasUnpiped:!1};if(R.pipesCount===0)return this;if(R.pipesCount===1)return $&amp;&amp;$!==R.pipes||($||($=R.pipes),R.pipes=null,R.pipesCount=0,R.flowing=!1,$&amp;&amp;$.emit(&quot;unpipe&quot;,this,X)),this;if(!$){var re=R.pipes,Q=R.pipesCount;R.pipes=null,R.pipesCount=0,R.flowing=!1;for(var te=0;te&lt;Q;te++)re[te].emit(&quot;unpipe&quot;,this,{hasUnpiped:!1});return this}var ie=J(R.pipes,$);return ie===-1||(R.pipes.splice(ie,1),R.pipesCount-=1,R.pipesCount===1&amp;&amp;(R.pipes=R.pipes[0]),$.emit(&quot;unpipe&quot;,this,X)),this},K.prototype.on=function($,R){var X=a.prototype.on.call(this,$,R),re=this._readableState;return $===&quot;data&quot;?(re.readableListening=this.listenerCount(&quot;readable&quot;)&gt;0,re.flowing!==!1&amp;&amp;this.resume()):$===&quot;readable&quot;&amp;&amp;(re.endEmitted||re.readableListening||(re.readableListening=re.needReadable=!0,re.flowing=!1,re.emittedReadable=!1,h(&quot;on readable&quot;,re.length,re.reading),re.length?j(this):re.reading||s.nextTick(D,this))),X},K.prototype.addListener=K.prototype.on,K.prototype.removeListener=function($,R){var X=a.prototype.removeListener.call(this,$,R);return $===&quot;readable&quot;&amp;&amp;s.nextTick(P,this),X},K.prototype.removeAllListeners=function($){var R=a.prototype.removeAllListeners.apply(this,arguments);return $!==&quot;readable&quot;&amp;&amp;$!==void 0||s.nextTick(P,this),R},K.prototype.resume=function(){var $=this._readableState;return $.flowing||(h(&quot;resume&quot;),$.flowing=!$.readableListening,(function(R,X){X.resumeScheduled||(X.resumeScheduled=!0,s.nextTick(z,R,X))})(this,$)),$.paused=!1,this},K.prototype.pause=function(){return h(&quot;call pause flowing=%j&quot;,this._readableState.flowing),this._readableState.flowing!==!1&amp;&amp;(h(&quot;pause&quot;),this._readableState.flowing=!1,this.emit(&quot;pause&quot;)),this._readableState.paused=!0,this},K.prototype.wrap=function($){var R=this,X=this._readableState,re=!1;for(var Q in $.on(&quot;end&quot;,(function(){if(h(&quot;wrapped end&quot;),X.decoder&amp;&amp;!X.ended){var ie=X.decoder.end();ie&amp;&amp;ie.length&amp;&amp;R.push(ie)}R.push(null)})),$.on(&quot;data&quot;,(function(ie){h(&quot;wrapped data&quot;),X.decoder&amp;&amp;(ie=X.decoder.write(ie)),X.objectMode&amp;&amp;ie==null||(X.objectMode||ie&amp;&amp;ie.length)&amp;&amp;(R.push(ie)||(re=!0,$.pause()))})),$)this[Q]===void 0&amp;&amp;typeof $[Q]==&quot;function&quot;&amp;&amp;(this[Q]=(function(ie){return function(){return $[ie].apply($,arguments)}})(Q));for(var te=0;te&lt;H.length;te++)$.on(H[te],this.emit.bind(this,H[te]));return this._read=function(ie){h(&quot;wrapped _read&quot;,ie),re&amp;&amp;(re=!1,$.resume())},this},typeof Symbol==&quot;function&quot;&amp;&amp;(K.prototype[Symbol.asyncIterator]=function(){return x===void 0&amp;&amp;(x=t(&quot;./internal/streams/async_iterator&quot;)),x(this)}),Object.defineProperty(K.prototype,&quot;readableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(K.prototype,&quot;readableBuffer&quot;,{enumerable:!1,get:function(){return this._readableState&amp;&amp;this._readableState.buffer}}),Object.defineProperty(K.prototype,&quot;readableFlowing&quot;,{enumerable:!1,get:function(){return this._readableState.flowing},set:function($){this._readableState&amp;&amp;(this._readableState.flowing=$)}}),K._fromList=Z,Object.defineProperty(K.prototype,&quot;readableLength&quot;,{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol==&quot;function&quot;&amp;&amp;(K.from=function($,R){return g===void 0&amp;&amp;(g=t(&quot;./internal/streams/from&quot;)),g(K,$,R)})}).call(this)}).call(this,t(&quot;_process&quot;),typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{&quot;../errors&quot;:477,&quot;./_stream_duplex&quot;:478,&quot;./internal/streams/async_iterator&quot;:483,&quot;./internal/streams/buffer_list&quot;:484,&quot;./internal/streams/destroy&quot;:485,&quot;./internal/streams/from&quot;:487,&quot;./internal/streams/state&quot;:489,&quot;./internal/streams/stream&quot;:490,_process:467,buffer:220,events:422,inherits:440,&quot;string_decoder/&quot;:522,util:188}],481:[function(t,n,o){n.exports=h;var s=t(&quot;../errors&quot;).codes,l=s.ERR_METHOD_NOT_IMPLEMENTED,u=s.ERR_MULTIPLE_CALLBACK,c=s.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=s.ERR_TRANSFORM_WITH_LENGTH_0,d=t(&quot;./_stream_duplex&quot;);function f(x,g){var y=this._transformState;y.transforming=!1;var v=y.writecb;if(v===null)return this.emit(&quot;error&quot;,new u);y.writechunk=null,y.writecb=null,g!=null&amp;&amp;this.push(g),v(x);var _=this._readableState;_.reading=!1,(_.needReadable||_.length&lt;_.highWaterMark)&amp;&amp;this._read(_.highWaterMark)}function h(x){if(!(this instanceof h))return new h(x);d.call(this,x),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,x&amp;&amp;(typeof x.transform==&quot;function&quot;&amp;&amp;(this._transform=x.transform),typeof x.flush==&quot;function&quot;&amp;&amp;(this._flush=x.flush)),this.on(&quot;prefinish&quot;,m)}function m(){var x=this;typeof this._flush!=&quot;function&quot;||this._readableState.destroyed?p(this,null,null):this._flush((function(g,y){p(x,g,y)}))}function p(x,g,y){if(g)return x.emit(&quot;error&quot;,g);if(y!=null&amp;&amp;x.push(y),x._writableState.length)throw new a;if(x._transformState.transforming)throw new c;return x.push(null)}t(&quot;inherits&quot;)(h,d),h.prototype.push=function(x,g){return this._transformState.needTransform=!1,d.prototype.push.call(this,x,g)},h.prototype._transform=function(x,g,y){y(new l(&quot;_transform()&quot;))},h.prototype._write=function(x,g,y){var v=this._transformState;if(v.writecb=y,v.writechunk=x,v.writeencoding=g,!v.transforming){var _=this._readableState;(v.needTransform||_.needReadable||_.length&lt;_.highWaterMark)&amp;&amp;this._read(_.highWaterMark)}},h.prototype._read=function(x){var g=this._transformState;g.writechunk===null||g.transforming?g.needTransform=!0:(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform))},h.prototype._destroy=function(x,g){d.prototype._destroy.call(this,x,(function(y){g(y)}))}},{&quot;../errors&quot;:477,&quot;./_stream_duplex&quot;:478,inherits:440}],482:[function(t,n,o){(function(s,l){(function(){function u(C){var P=this;this.next=null,this.entry=null,this.finish=function(){(function(D,z,Y){var Z=D.entry;for(D.entry=null;Z;){var ne=Z.callback;z.pendingcb--,ne(Y),Z=Z.next}z.corkedRequestsFree.next=D})(P,C)}}var c;n.exports=K,K.WritableState=B;var a={deprecate:t(&quot;util-deprecate&quot;)},d=t(&quot;./internal/streams/stream&quot;),f=t(&quot;buffer&quot;).Buffer,h=(l!==void 0?l:typeof window&lt;&quot;u&quot;?window:typeof self&lt;&quot;u&quot;?self:{}).Uint8Array||function(){},m,p=t(&quot;./internal/streams/destroy&quot;),x=t(&quot;./internal/streams/state&quot;).getHighWaterMark,g=t(&quot;../errors&quot;).codes,y=g.ERR_INVALID_ARG_TYPE,v=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_MULTIPLE_CALLBACK,S=g.ERR_STREAM_CANNOT_PIPE,A=g.ERR_STREAM_DESTROYED,I=g.ERR_STREAM_NULL_VALUES,V=g.ERR_STREAM_WRITE_AFTER_END,F=g.ERR_UNKNOWN_ENCODING,q=p.errorOrDestroy;function H(){}function B(C,P,D){c=c||t(&quot;./_stream_duplex&quot;),C=C||{},typeof D!=&quot;boolean&quot;&amp;&amp;(D=P instanceof c),this.objectMode=!!C.objectMode,D&amp;&amp;(this.objectMode=this.objectMode||!!C.writableObjectMode),this.highWaterMark=x(this,C,&quot;writableHighWaterMark&quot;,D),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var z=C.decodeStrings===!1;this.decodeStrings=!z,this.defaultEncoding=C.defaultEncoding||&quot;utf8&quot;,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Y){(function(Z,ne){var U=Z._writableState,J=U.sync,$=U.writecb;if(typeof $!=&quot;function&quot;)throw new _;if((function(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0})(U),ne)(function(X,re,Q,te,ie){--re.pendingcb,Q?(s.nextTick(ie,te),s.nextTick(N,X,re),X._writableState.errorEmitted=!0,q(X,te)):(ie(te),X._writableState.errorEmitted=!0,q(X,te),N(X,re))})(Z,U,J,ne,$);else{var R=j(U)||Z.destroyed;R||U.corked||U.bufferProcessing||!U.bufferedRequest||E(Z,U),J?s.nextTick(L,Z,U,R,$):L(Z,U,R,$)}})(P,Y)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=C.emitClose!==!1,this.autoDestroy=!!C.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new u(this)}function K(C){var P=this instanceof(c=c||t(&quot;./_stream_duplex&quot;));if(!P&amp;&amp;!m.call(K,this))return new K(C);this._writableState=new B(C,this,P),this.writable=!0,C&amp;&amp;(typeof C.write==&quot;function&quot;&amp;&amp;(this._write=C.write),typeof C.writev==&quot;function&quot;&amp;&amp;(this._writev=C.writev),typeof C.destroy==&quot;function&quot;&amp;&amp;(this._destroy=C.destroy),typeof C.final==&quot;function&quot;&amp;&amp;(this._final=C.final)),d.call(this)}function T(C,P,D,z,Y,Z,ne){P.writelen=z,P.writecb=ne,P.writing=!0,P.sync=!0,P.destroyed?P.onwrite(new A(&quot;write&quot;)):D?C._writev(Y,P.onwrite):C._write(Y,Z,P.onwrite),P.sync=!1}function L(C,P,D,z){D||(function(Y,Z){Z.length===0&amp;&amp;Z.needDrain&amp;&amp;(Z.needDrain=!1,Y.emit(&quot;drain&quot;))})(C,P),P.pendingcb--,z(),N(C,P)}function E(C,P){P.bufferProcessing=!0;var D=P.bufferedRequest;if(C._writev&amp;&amp;D&amp;&amp;D.next){var z=P.bufferedRequestCount,Y=new Array(z),Z=P.corkedRequestsFree;Z.entry=D;for(var ne=0,U=!0;D;)Y[ne]=D,D.isBuf||(U=!1),D=D.next,ne+=1;Y.allBuffers=U,T(C,P,!0,P.length,Y,&quot;&quot;,Z.finish),P.pendingcb++,P.lastBufferedRequest=null,Z.next?(P.corkedRequestsFree=Z.next,Z.next=null):P.corkedRequestsFree=new u(P),P.bufferedRequestCount=0}else{for(;D;){var J=D.chunk,$=D.encoding,R=D.callback;if(T(C,P,!1,P.objectMode?1:J.length,J,$,R),D=D.next,P.bufferedRequestCount--,P.writing)break}D===null&amp;&amp;(P.lastBufferedRequest=null)}P.bufferedRequest=D,P.bufferProcessing=!1}function j(C){return C.ending&amp;&amp;C.length===0&amp;&amp;C.bufferedRequest===null&amp;&amp;!C.finished&amp;&amp;!C.writing}function k(C,P){C._final((function(D){P.pendingcb--,D&amp;&amp;q(C,D),P.prefinished=!0,C.emit(&quot;prefinish&quot;),N(C,P)}))}function N(C,P){var D=j(P);if(D&amp;&amp;((function(Y,Z){Z.prefinished||Z.finalCalled||(typeof Y._final!=&quot;function&quot;||Z.destroyed?(Z.prefinished=!0,Y.emit(&quot;prefinish&quot;)):(Z.pendingcb++,Z.finalCalled=!0,s.nextTick(k,Y,Z)))})(C,P),P.pendingcb===0&amp;&amp;(P.finished=!0,C.emit(&quot;finish&quot;),P.autoDestroy))){var z=C._readableState;(!z||z.autoDestroy&amp;&amp;z.endEmitted)&amp;&amp;C.destroy()}return D}t(&quot;inherits&quot;)(K,d),B.prototype.getBuffer=function(){for(var C=this.bufferedRequest,P=[];C;)P.push(C),C=C.next;return P},(function(){try{Object.defineProperty(B.prototype,&quot;buffer&quot;,{get:a.deprecate((function(){return this.getBuffer()}),&quot;_writableState.buffer is deprecated. Use _writableState.getBuffer instead.&quot;,&quot;DEP0003&quot;)})}catch{}})(),typeof Symbol==&quot;function&quot;&amp;&amp;Symbol.hasInstance&amp;&amp;typeof Function.prototype[Symbol.hasInstance]==&quot;function&quot;?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(K,Symbol.hasInstance,{value:function(C){return!!m.call(this,C)||this===K&amp;&amp;C&amp;&amp;C._writableState instanceof B}})):m=function(C){return C instanceof this},K.prototype.pipe=function(){q(this,new S)},K.prototype.write=function(C,P,D){var z,Y=this._writableState,Z=!1,ne=!Y.objectMode&amp;&amp;(z=C,f.isBuffer(z)||z instanceof h);return ne&amp;&amp;!f.isBuffer(C)&amp;&amp;(C=(function(U){return f.from(U)})(C)),typeof P==&quot;function&quot;&amp;&amp;(D=P,P=null),ne?P=&quot;buffer&quot;:P||(P=Y.defaultEncoding),typeof D!=&quot;function&quot;&amp;&amp;(D=H),Y.ending?(function(U,J){var $=new V;q(U,$),s.nextTick(J,$)})(this,D):(ne||(function(U,J,$,R){var X;return $===null?X=new I:typeof $==&quot;string&quot;||J.objectMode||(X=new y(&quot;chunk&quot;,[&quot;string&quot;,&quot;Buffer&quot;],$)),!X||(q(U,X),s.nextTick(R,X),!1)})(this,Y,C,D))&amp;&amp;(Y.pendingcb++,Z=(function(U,J,$,R,X,re){if(!$){var Q=(function(ce,se,fe){return ce.objectMode||ce.decodeStrings===!1||typeof se!=&quot;string&quot;||(se=f.from(se,fe)),se})(J,R,X);R!==Q&amp;&amp;($=!0,X=&quot;buffer&quot;,R=Q)}var te=J.objectMode?1:R.length;J.length+=te;var ie=J.length&lt;J.highWaterMark;if(ie||(J.needDrain=!0),J.writing||J.corked){var de=J.lastBufferedRequest;J.lastBufferedRequest={chunk:R,encoding:X,isBuf:$,callback:re,next:null},de?de.next=J.lastBufferedRequest:J.bufferedRequest=J.lastBufferedRequest,J.bufferedRequestCount+=1}else T(U,J,!1,te,R,X,re);return ie})(this,Y,ne,C,P,D)),Z},K.prototype.cork=function(){this._writableState.corked++},K.prototype.uncork=function(){var C=this._writableState;C.corked&amp;&amp;(C.corked--,C.writing||C.corked||C.bufferProcessing||!C.bufferedRequest||E(this,C))},K.prototype.setDefaultEncoding=function(C){if(typeof C==&quot;string&quot;&amp;&amp;(C=C.toLowerCase()),!([&quot;hex&quot;,&quot;utf8&quot;,&quot;utf-8&quot;,&quot;ascii&quot;,&quot;binary&quot;,&quot;base64&quot;,&quot;ucs2&quot;,&quot;ucs-2&quot;,&quot;utf16le&quot;,&quot;utf-16le&quot;,&quot;raw&quot;].indexOf((C+&quot;&quot;).toLowerCase())&gt;-1))throw new F(C);return this._writableState.defaultEncoding=C,this},Object.defineProperty(K.prototype,&quot;writableBuffer&quot;,{enumerable:!1,get:function(){return this._writableState&amp;&amp;this._writableState.getBuffer()}}),Object.defineProperty(K.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),K.prototype._write=function(C,P,D){D(new v(&quot;_write()&quot;))},K.prototype._writev=null,K.prototype.end=function(C,P,D){var z=this._writableState;return typeof C==&quot;function&quot;?(D=C,C=null,P=null):typeof P==&quot;function&quot;&amp;&amp;(D=P,P=null),C!=null&amp;&amp;this.write(C,P),z.corked&amp;&amp;(z.corked=1,this.uncork()),z.ending||(function(Y,Z,ne){Z.ending=!0,N(Y,Z),ne&amp;&amp;(Z.finished?s.nextTick(ne):Y.once(&quot;finish&quot;,ne)),Z.ended=!0,Y.writable=!1})(this,z,D),this},Object.defineProperty(K.prototype,&quot;writableLength&quot;,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(K.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return this._writableState!==void 0&amp;&amp;this._writableState.destroyed},set:function(C){this._writableState&amp;&amp;(this._writableState.destroyed=C)}}),K.prototype.destroy=p.destroy,K.prototype._undestroy=p.undestroy,K.prototype._destroy=function(C,P){P(C)}}).call(this)}).call(this,t(&quot;_process&quot;),typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{&quot;../errors&quot;:477,&quot;./_stream_duplex&quot;:478,&quot;./internal/streams/destroy&quot;:485,&quot;./internal/streams/state&quot;:489,&quot;./internal/streams/stream&quot;:490,_process:467,buffer:220,inherits:440,&quot;util-deprecate&quot;:524}],483:[function(t,n,o){(function(s){(function(){var l;function u(A,I,V){return(I=(function(F){var q=(function(H,B){if(typeof H!=&quot;object&quot;||H===null)return H;var K=H[Symbol.toPrimitive];if(K!==void 0){var T=K.call(H,B);if(typeof T!=&quot;object&quot;)return T;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(B===&quot;string&quot;?String:Number)(H)})(F,&quot;string&quot;);return typeof q==&quot;symbol&quot;?q:String(q)})(I))in A?Object.defineProperty(A,I,{value:V,enumerable:!0,configurable:!0,writable:!0}):A[I]=V,A}var c=t(&quot;./end-of-stream&quot;),a=Symbol(&quot;lastResolve&quot;),d=Symbol(&quot;lastReject&quot;),f=Symbol(&quot;error&quot;),h=Symbol(&quot;ended&quot;),m=Symbol(&quot;lastPromise&quot;),p=Symbol(&quot;handlePromise&quot;),x=Symbol(&quot;stream&quot;);function g(A,I){return{value:A,done:I}}function y(A){var I=A[a];if(I!==null){var V=A[x].read();V!==null&amp;&amp;(A[m]=null,A[a]=null,A[d]=null,I(g(V,!1)))}}function v(A){s.nextTick(y,A)}var _=Object.getPrototypeOf((function(){})),S=Object.setPrototypeOf((u(l={get stream(){return this[x]},next:function(){var A=this,I=this[f];if(I!==null)return Promise.reject(I);if(this[h])return Promise.resolve(g(void 0,!0));if(this[x].destroyed)return new Promise((function(H,B){s.nextTick((function(){A[f]?B(A[f]):H(g(void 0,!0))}))}));var V,F=this[m];if(F)V=new Promise((function(H,B){return function(K,T){H.then((function(){B[h]?K(g(void 0,!0)):B[p](K,T)}),T)}})(F,this));else{var q=this[x].read();if(q!==null)return Promise.resolve(g(q,!1));V=new Promise(this[p])}return this[m]=V,V}},Symbol.asyncIterator,(function(){return this})),u(l,&quot;return&quot;,(function(){var A=this;return new Promise((function(I,V){A[x].destroy(null,(function(F){F?V(F):I(g(void 0,!0))}))}))})),l),_);n.exports=function(A){var I,V=Object.create(S,(u(I={},x,{value:A,writable:!0}),u(I,a,{value:null,writable:!0}),u(I,d,{value:null,writable:!0}),u(I,f,{value:null,writable:!0}),u(I,h,{value:A._readableState.endEmitted,writable:!0}),u(I,p,{value:function(F,q){var H=V[x].read();H?(V[m]=null,V[a]=null,V[d]=null,F(g(H,!1))):(V[a]=F,V[d]=q)},writable:!0}),I));return V[m]=null,c(A,(function(F){if(F&amp;&amp;F.code!==&quot;ERR_STREAM_PREMATURE_CLOSE&quot;){var q=V[d];return q!==null&amp;&amp;(V[m]=null,V[a]=null,V[d]=null,q(F)),void(V[f]=F)}var H=V[a];H!==null&amp;&amp;(V[m]=null,V[a]=null,V[d]=null,H(g(void 0,!0))),V[h]=!0})),A.on(&quot;readable&quot;,v.bind(null,V)),V}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./end-of-stream&quot;:486,_process:467}],484:[function(t,n,o){function s(m,p){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);p&amp;&amp;(g=g.filter((function(y){return Object.getOwnPropertyDescriptor(m,y).enumerable}))),x.push.apply(x,g)}return x}function l(m){for(var p=1;p&lt;arguments.length;p++){var x=arguments[p]!=null?arguments[p]:{};p%2?s(Object(x),!0).forEach((function(g){u(m,g,x[g])})):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(x)):s(Object(x)).forEach((function(g){Object.defineProperty(m,g,Object.getOwnPropertyDescriptor(x,g))}))}return m}function u(m,p,x){return(p=a(p))in m?Object.defineProperty(m,p,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[p]=x,m}function c(m,p){for(var x=0;x&lt;p.length;x++){var g=p[x];g.enumerable=g.enumerable||!1,g.configurable=!0,&quot;value&quot;in g&amp;&amp;(g.writable=!0),Object.defineProperty(m,a(g.key),g)}}function a(m){var p=(function(x,g){if(typeof x!=&quot;object&quot;||x===null)return x;var y=x[Symbol.toPrimitive];if(y!==void 0){var v=y.call(x,g);if(typeof v!=&quot;object&quot;)return v;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return(g===&quot;string&quot;?String:Number)(x)})(m,&quot;string&quot;);return typeof p==&quot;symbol&quot;?p:String(p)}var d=t(&quot;buffer&quot;).Buffer,f=t(&quot;util&quot;).inspect,h=f&amp;&amp;f.custom||&quot;inspect&quot;;n.exports=(function(){function m(){(function(g,y){if(!(g instanceof y))throw new TypeError(&quot;Cannot call a class as a function&quot;)})(this,m),this.head=null,this.tail=null,this.length=0}var p,x;return p=m,(x=[{key:&quot;push&quot;,value:function(g){var y={data:g,next:null};this.length&gt;0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:&quot;unshift&quot;,value:function(g){var y={data:g,next:this.head};this.length===0&amp;&amp;(this.tail=y),this.head=y,++this.length}},{key:&quot;shift&quot;,value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:&quot;clear&quot;,value:function(){this.head=this.tail=null,this.length=0}},{key:&quot;join&quot;,value:function(g){if(this.length===0)return&quot;&quot;;for(var y=this.head,v=&quot;&quot;+y.data;y=y.next;)v+=g+y.data;return v}},{key:&quot;concat&quot;,value:function(g){if(this.length===0)return d.alloc(0);for(var y,v,_,S=d.allocUnsafe(g&gt;&gt;&gt;0),A=this.head,I=0;A;)y=A.data,v=S,_=I,d.prototype.copy.call(y,v,_),I+=A.data.length,A=A.next;return S}},{key:&quot;consume&quot;,value:function(g,y){var v;return g&lt;this.head.data.length?(v=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):v=g===this.head.data.length?this.shift():y?this._getString(g):this._getBuffer(g),v}},{key:&quot;first&quot;,value:function(){return this.head.data}},{key:&quot;_getString&quot;,value:function(g){var y=this.head,v=1,_=y.data;for(g-=_.length;y=y.next;){var S=y.data,A=g&gt;S.length?S.length:g;if(A===S.length?_+=S:_+=S.slice(0,g),(g-=A)==0){A===S.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=S.slice(A));break}++v}return this.length-=v,_}},{key:&quot;_getBuffer&quot;,value:function(g){var y=d.allocUnsafe(g),v=this.head,_=1;for(v.data.copy(y),g-=v.data.length;v=v.next;){var S=v.data,A=g&gt;S.length?S.length:g;if(S.copy(y,y.length-g,0,A),(g-=A)==0){A===S.length?(++_,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(A));break}++_}return this.length-=_,y}},{key:h,value:function(g,y){return f(this,l(l({},y),{},{depth:0,customInspect:!1}))}}])&amp;&amp;c(p.prototype,x),Object.defineProperty(p,&quot;prototype&quot;,{writable:!1}),m})()},{buffer:220,util:188}],485:[function(t,n,o){(function(s){(function(){function l(a,d){c(a,d),u(a)}function u(a){a._writableState&amp;&amp;!a._writableState.emitClose||a._readableState&amp;&amp;!a._readableState.emitClose||a.emit(&quot;close&quot;)}function c(a,d){a.emit(&quot;error&quot;,d)}n.exports={destroy:function(a,d){var f=this,h=this._readableState&amp;&amp;this._readableState.destroyed,m=this._writableState&amp;&amp;this._writableState.destroyed;return h||m?(d?d(a):a&amp;&amp;(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,s.nextTick(c,this,a)):s.nextTick(c,this,a)),this):(this._readableState&amp;&amp;(this._readableState.destroyed=!0),this._writableState&amp;&amp;(this._writableState.destroyed=!0),this._destroy(a||null,(function(p){!d&amp;&amp;p?f._writableState?f._writableState.errorEmitted?s.nextTick(u,f):(f._writableState.errorEmitted=!0,s.nextTick(l,f,p)):s.nextTick(l,f,p):d?(s.nextTick(u,f),d(p)):s.nextTick(u,f)})),this)},undestroy:function(){this._readableState&amp;&amp;(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&amp;&amp;(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(a,d){var f=a._readableState,h=a._writableState;f&amp;&amp;f.autoDestroy||h&amp;&amp;h.autoDestroy?a.destroy(d):a.emit(&quot;error&quot;,d)}}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:467}],486:[function(t,n,o){var s=t(&quot;../../../errors&quot;).codes.ERR_STREAM_PREMATURE_CLOSE;function l(){}n.exports=function u(c,a,d){if(typeof a==&quot;function&quot;)return u(c,null,a);a||(a={}),d=(function(A){var I=!1;return function(){if(!I){I=!0;for(var V=arguments.length,F=new Array(V),q=0;q&lt;V;q++)F[q]=arguments[q];A.apply(this,F)}}})(d||l);var f=a.readable||a.readable!==!1&amp;&amp;c.readable,h=a.writable||a.writable!==!1&amp;&amp;c.writable,m=function(){c.writable||x()},p=c._writableState&amp;&amp;c._writableState.finished,x=function(){h=!1,p=!0,f||d.call(c)},g=c._readableState&amp;&amp;c._readableState.endEmitted,y=function(){f=!1,g=!0,h||d.call(c)},v=function(A){d.call(c,A)},_=function(){var A;return f&amp;&amp;!g?(c._readableState&amp;&amp;c._readableState.ended||(A=new s),d.call(c,A)):h&amp;&amp;!p?(c._writableState&amp;&amp;c._writableState.ended||(A=new s),d.call(c,A)):void 0},S=function(){c.req.on(&quot;finish&quot;,x)};return(function(A){return A.setHeader&amp;&amp;typeof A.abort==&quot;function&quot;})(c)?(c.on(&quot;complete&quot;,x),c.on(&quot;abort&quot;,_),c.req?S():c.on(&quot;request&quot;,S)):h&amp;&amp;!c._writableState&amp;&amp;(c.on(&quot;end&quot;,m),c.on(&quot;close&quot;,m)),c.on(&quot;end&quot;,y),c.on(&quot;finish&quot;,x),a.error!==!1&amp;&amp;c.on(&quot;error&quot;,v),c.on(&quot;close&quot;,_),function(){c.removeListener(&quot;complete&quot;,x),c.removeListener(&quot;abort&quot;,_),c.removeListener(&quot;request&quot;,S),c.req&amp;&amp;c.req.removeListener(&quot;finish&quot;,x),c.removeListener(&quot;end&quot;,m),c.removeListener(&quot;close&quot;,m),c.removeListener(&quot;finish&quot;,x),c.removeListener(&quot;end&quot;,y),c.removeListener(&quot;error&quot;,v),c.removeListener(&quot;close&quot;,_)}}},{&quot;../../../errors&quot;:477}],487:[function(t,n,o){n.exports=function(){throw new Error(&quot;Readable.from is not available in the browser&quot;)}},{}],488:[function(t,n,o){var s,l=t(&quot;../../../errors&quot;).codes,u=l.ERR_MISSING_ARGS,c=l.ERR_STREAM_DESTROYED;function a(p){if(p)throw p}function d(p,x,g,y){y=(function(S){var A=!1;return function(){A||(A=!0,S.apply(void 0,arguments))}})(y);var v=!1;p.on(&quot;close&quot;,(function(){v=!0})),s===void 0&amp;&amp;(s=t(&quot;./end-of-stream&quot;)),s(p,{readable:x,writable:g},(function(S){if(S)return y(S);v=!0,y()}));var _=!1;return function(S){if(!v&amp;&amp;!_)return _=!0,(function(A){return A.setHeader&amp;&amp;typeof A.abort==&quot;function&quot;})(p)?p.abort():typeof p.destroy==&quot;function&quot;?p.destroy():void y(S||new c(&quot;pipe&quot;))}}function f(p){p()}function h(p,x){return p.pipe(x)}function m(p){return p.length?typeof p[p.length-1]!=&quot;function&quot;?a:p.pop():a}n.exports=function(){for(var p=arguments.length,x=new Array(p),g=0;g&lt;p;g++)x[g]=arguments[g];var y,v=m(x);if(Array.isArray(x[0])&amp;&amp;(x=x[0]),x.length&lt;2)throw new u(&quot;streams&quot;);var _=x.map((function(S,A){var I=A&lt;x.length-1;return d(S,I,A&gt;0,(function(V){y||(y=V),V&amp;&amp;_.forEach(f),I||(_.forEach(f),v(y))}))}));return x.reduce(h)}},{&quot;../../../errors&quot;:477,&quot;./end-of-stream&quot;:486}],489:[function(t,n,o){var s=t(&quot;../../../errors&quot;).codes.ERR_INVALID_OPT_VALUE;n.exports={getHighWaterMark:function(l,u,c,a){var d=(function(f,h,m){return f.highWaterMark!=null?f.highWaterMark:h?f[m]:null})(u,a,c);if(d!=null){if(!isFinite(d)||Math.floor(d)!==d||d&lt;0)throw new s(a?c:&quot;highWaterMark&quot;,d);return Math.floor(d)}return l.objectMode?16:16384}}},{&quot;../../../errors&quot;:477}],490:[function(t,n,o){n.exports=t(&quot;events&quot;).EventEmitter},{events:422}],491:[function(t,n,o){(o=n.exports=t(&quot;./lib/_stream_readable.js&quot;)).Stream=o,o.Readable=o,o.Writable=t(&quot;./lib/_stream_writable.js&quot;),o.Duplex=t(&quot;./lib/_stream_duplex.js&quot;),o.Transform=t(&quot;./lib/_stream_transform.js&quot;),o.PassThrough=t(&quot;./lib/_stream_passthrough.js&quot;),o.finished=t(&quot;./lib/internal/streams/end-of-stream.js&quot;),o.pipeline=t(&quot;./lib/internal/streams/pipeline.js&quot;)},{&quot;./lib/_stream_duplex.js&quot;:478,&quot;./lib/_stream_passthrough.js&quot;:479,&quot;./lib/_stream_readable.js&quot;:480,&quot;./lib/_stream_transform.js&quot;:481,&quot;./lib/_stream_writable.js&quot;:482,&quot;./lib/internal/streams/end-of-stream.js&quot;:486,&quot;./lib/internal/streams/pipeline.js&quot;:488}],492:[function(t,n,o){var s=(function(l){var u=Object.prototype,c=u.hasOwnProperty,a=Object.defineProperty||function(N,C,P){N[C]=P.value},d=typeof Symbol==&quot;function&quot;?Symbol:{},f=d.iterator||&quot;@@iterator&quot;,h=d.asyncIterator||&quot;@@asyncIterator&quot;,m=d.toStringTag||&quot;@@toStringTag&quot;;function p(N,C,P){return Object.defineProperty(N,C,{value:P,enumerable:!0,configurable:!0,writable:!0}),N[C]}try{p({},&quot;&quot;)}catch{p=function(C,P,D){return C[P]=D}}function x(N,C,P,D){var z=C&amp;&amp;C.prototype instanceof v?C:v,Y=Object.create(z.prototype),Z=new E(D||[]);return a(Y,&quot;_invoke&quot;,{value:B(N,P,Z)}),Y}function g(N,C,P){try{return{type:&quot;normal&quot;,arg:N.call(C,P)}}catch(D){return{type:&quot;throw&quot;,arg:D}}}l.wrap=x;var y={};function v(){}function _(){}function S(){}var A={};p(A,f,(function(){return this}));var I=Object.getPrototypeOf,V=I&amp;&amp;I(I(j([])));V&amp;&amp;V!==u&amp;&amp;c.call(V,f)&amp;&amp;(A=V);var F=S.prototype=v.prototype=Object.create(A);function q(N){[&quot;next&quot;,&quot;throw&quot;,&quot;return&quot;].forEach((function(C){p(N,C,(function(P){return this._invoke(C,P)}))}))}function H(N,C){var P;a(this,&quot;_invoke&quot;,{value:function(D,z){function Y(){return new C((function(Z,ne){(function U(J,$,R,X){var re=g(N[J],N,$);if(re.type!==&quot;throw&quot;){var Q=re.arg,te=Q.value;return te&amp;&amp;typeof te==&quot;object&quot;&amp;&amp;c.call(te,&quot;__await&quot;)?C.resolve(te.__await).then((function(ie){U(&quot;next&quot;,ie,R,X)}),(function(ie){U(&quot;throw&quot;,ie,R,X)})):C.resolve(te).then((function(ie){Q.value=ie,R(Q)}),(function(ie){return U(&quot;throw&quot;,ie,R,X)}))}X(re.arg)})(D,z,Z,ne)}))}return P=P?P.then(Y,Y):Y()}})}function B(N,C,P){var D=&quot;suspendedStart&quot;;return function(z,Y){if(D===&quot;executing&quot;)throw new Error(&quot;Generator is already running&quot;);if(D===&quot;completed&quot;){if(z===&quot;throw&quot;)throw Y;return k()}for(P.method=z,P.arg=Y;;){var Z=P.delegate;if(Z){var ne=K(Z,P);if(ne){if(ne===y)continue;return ne}}if(P.method===&quot;next&quot;)P.sent=P._sent=P.arg;else if(P.method===&quot;throw&quot;){if(D===&quot;suspendedStart&quot;)throw D=&quot;completed&quot;,P.arg;P.dispatchException(P.arg)}else P.method===&quot;return&quot;&amp;&amp;P.abrupt(&quot;return&quot;,P.arg);D=&quot;executing&quot;;var U=g(N,C,P);if(U.type===&quot;normal&quot;){if(D=P.done?&quot;completed&quot;:&quot;suspendedYield&quot;,U.arg===y)continue;return{value:U.arg,done:P.done}}U.type===&quot;throw&quot;&amp;&amp;(D=&quot;completed&quot;,P.method=&quot;throw&quot;,P.arg=U.arg)}}}function K(N,C){var P=C.method,D=N.iterator[P];if(D===void 0)return C.delegate=null,P===&quot;throw&quot;&amp;&amp;N.iterator.return&amp;&amp;(C.method=&quot;return&quot;,C.arg=void 0,K(N,C),C.method===&quot;throw&quot;)||P!==&quot;return&quot;&amp;&amp;(C.method=&quot;throw&quot;,C.arg=new TypeError(&quot;The iterator does not provide a &#039;&quot;+P+&quot;&#039; method&quot;)),y;var z=g(D,N.iterator,C.arg);if(z.type===&quot;throw&quot;)return C.method=&quot;throw&quot;,C.arg=z.arg,C.delegate=null,y;var Y=z.arg;return Y?Y.done?(C[N.resultName]=Y.value,C.next=N.nextLoc,C.method!==&quot;return&quot;&amp;&amp;(C.method=&quot;next&quot;,C.arg=void 0),C.delegate=null,y):Y:(C.method=&quot;throw&quot;,C.arg=new TypeError(&quot;iterator result is not an object&quot;),C.delegate=null,y)}function T(N){var C={tryLoc:N[0]};1 in N&amp;&amp;(C.catchLoc=N[1]),2 in N&amp;&amp;(C.finallyLoc=N[2],C.afterLoc=N[3]),this.tryEntries.push(C)}function L(N){var C=N.completion||{};C.type=&quot;normal&quot;,delete C.arg,N.completion=C}function E(N){this.tryEntries=[{tryLoc:&quot;root&quot;}],N.forEach(T,this),this.reset(!0)}function j(N){if(N){var C=N[f];if(C)return C.call(N);if(typeof N.next==&quot;function&quot;)return N;if(!isNaN(N.length)){var P=-1,D=function z(){for(;++P&lt;N.length;)if(c.call(N,P))return z.value=N[P],z.done=!1,z;return z.value=void 0,z.done=!0,z};return D.next=D}}return{next:k}}function k(){return{value:void 0,done:!0}}return _.prototype=S,a(F,&quot;constructor&quot;,{value:S,configurable:!0}),a(S,&quot;constructor&quot;,{value:_,configurable:!0}),_.displayName=p(S,m,&quot;GeneratorFunction&quot;),l.isGeneratorFunction=function(N){var C=typeof N==&quot;function&quot;&amp;&amp;N.constructor;return!!C&amp;&amp;(C===_||(C.displayName||C.name)===&quot;GeneratorFunction&quot;)},l.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,S):(N.__proto__=S,p(N,m,&quot;GeneratorFunction&quot;)),N.prototype=Object.create(F),N},l.awrap=function(N){return{__await:N}},q(H.prototype),p(H.prototype,h,(function(){return this})),l.AsyncIterator=H,l.async=function(N,C,P,D,z){z===void 0&amp;&amp;(z=Promise);var Y=new H(x(N,C,P,D),z);return l.isGeneratorFunction(C)?Y:Y.next().then((function(Z){return Z.done?Z.value:Y.next()}))},q(F),p(F,m,&quot;Generator&quot;),p(F,f,(function(){return this})),p(F,&quot;toString&quot;,(function(){return&quot;[object Generator]&quot;})),l.keys=function(N){var C=Object(N),P=[];for(var D in C)P.push(D);return P.reverse(),function z(){for(;P.length;){var Y=P.pop();if(Y in C)return z.value=Y,z.done=!1,z}return z.done=!0,z}},l.values=j,E.prototype={constructor:E,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=&quot;next&quot;,this.arg=void 0,this.tryEntries.forEach(L),!N)for(var C in this)C.charAt(0)===&quot;t&quot;&amp;&amp;c.call(this,C)&amp;&amp;!isNaN(+C.slice(1))&amp;&amp;(this[C]=void 0)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type===&quot;throw&quot;)throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var C=this;function P(U,J){return Y.type=&quot;throw&quot;,Y.arg=N,C.next=U,J&amp;&amp;(C.method=&quot;next&quot;,C.arg=void 0),!!J}for(var D=this.tryEntries.length-1;D&gt;=0;--D){var z=this.tryEntries[D],Y=z.completion;if(z.tryLoc===&quot;root&quot;)return P(&quot;end&quot;);if(z.tryLoc&lt;=this.prev){var Z=c.call(z,&quot;catchLoc&quot;),ne=c.call(z,&quot;finallyLoc&quot;);if(Z&amp;&amp;ne){if(this.prev&lt;z.catchLoc)return P(z.catchLoc,!0);if(this.prev&lt;z.finallyLoc)return P(z.finallyLoc)}else if(Z){if(this.prev&lt;z.catchLoc)return P(z.catchLoc,!0)}else{if(!ne)throw new Error(&quot;try statement without catch or finally&quot;);if(this.prev&lt;z.finallyLoc)return P(z.finallyLoc)}}}},abrupt:function(N,C){for(var P=this.tryEntries.length-1;P&gt;=0;--P){var D=this.tryEntries[P];if(D.tryLoc&lt;=this.prev&amp;&amp;c.call(D,&quot;finallyLoc&quot;)&amp;&amp;this.prev&lt;D.finallyLoc){var z=D;break}}z&amp;&amp;(N===&quot;break&quot;||N===&quot;continue&quot;)&amp;&amp;z.tryLoc&lt;=C&amp;&amp;C&lt;=z.finallyLoc&amp;&amp;(z=null);var Y=z?z.completion:{};return Y.type=N,Y.arg=C,z?(this.method=&quot;next&quot;,this.next=z.finallyLoc,y):this.complete(Y)},complete:function(N,C){if(N.type===&quot;throw&quot;)throw N.arg;return N.type===&quot;break&quot;||N.type===&quot;continue&quot;?this.next=N.arg:N.type===&quot;return&quot;?(this.rval=this.arg=N.arg,this.method=&quot;return&quot;,this.next=&quot;end&quot;):N.type===&quot;normal&quot;&amp;&amp;C&amp;&amp;(this.next=C),y},finish:function(N){for(var C=this.tryEntries.length-1;C&gt;=0;--C){var P=this.tryEntries[C];if(P.finallyLoc===N)return this.complete(P.completion,P.afterLoc),L(P),y}},catch:function(N){for(var C=this.tryEntries.length-1;C&gt;=0;--C){var P=this.tryEntries[C];if(P.tryLoc===N){var D=P.completion;if(D.type===&quot;throw&quot;){var z=D.arg;L(P)}return z}}throw new Error(&quot;illegal catch attempt&quot;)},delegateYield:function(N,C,P){return this.delegate={iterator:j(N),resultName:C,nextLoc:P},this.method===&quot;next&quot;&amp;&amp;(this.arg=void 0),y}},l})(typeof n==&quot;object&quot;?n.exports:{});try{regeneratorRuntime=s}catch{typeof globalThis==&quot;object&quot;?globalThis.regeneratorRuntime=s:Function(&quot;r&quot;,&quot;regeneratorRuntime = r&quot;)(s)}},{}],493:[function(t,n,o){var s=t(&quot;buffer&quot;).Buffer,l=t(&quot;inherits&quot;),u=t(&quot;hash-base&quot;),c=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],m=[0,1518500249,1859775393,2400959708,2840853838],p=[1352829926,1548603684,1836072691,2053994217,0];function x(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function g(I,V){return I&lt;&lt;V|I&gt;&gt;&gt;32-V}function y(I,V,F,q,H,B,K,T){return g(I+(V^F^q)+B+K|0,T)+H|0}function v(I,V,F,q,H,B,K,T){return g(I+(V&amp;F|~V&amp;q)+B+K|0,T)+H|0}function _(I,V,F,q,H,B,K,T){return g(I+((V|~F)^q)+B+K|0,T)+H|0}function S(I,V,F,q,H,B,K,T){return g(I+(V&amp;q|F&amp;~q)+B+K|0,T)+H|0}function A(I,V,F,q,H,B,K,T){return g(I+(V^(F|~q))+B+K|0,T)+H|0}l(x,u),x.prototype._update=function(){for(var I=c,V=0;V&lt;16;++V)I[V]=this._block.readInt32LE(4*V);for(var F=0|this._a,q=0|this._b,H=0|this._c,B=0|this._d,K=0|this._e,T=0|this._a,L=0|this._b,E=0|this._c,j=0|this._d,k=0|this._e,N=0;N&lt;80;N+=1){var C,P;N&lt;16?(C=y(F,q,H,B,K,I[a[N]],m[0],f[N]),P=A(T,L,E,j,k,I[d[N]],p[0],h[N])):N&lt;32?(C=v(F,q,H,B,K,I[a[N]],m[1],f[N]),P=S(T,L,E,j,k,I[d[N]],p[1],h[N])):N&lt;48?(C=_(F,q,H,B,K,I[a[N]],m[2],f[N]),P=_(T,L,E,j,k,I[d[N]],p[2],h[N])):N&lt;64?(C=S(F,q,H,B,K,I[a[N]],m[3],f[N]),P=v(T,L,E,j,k,I[d[N]],p[3],h[N])):(C=A(F,q,H,B,K,I[a[N]],m[4],f[N]),P=y(T,L,E,j,k,I[d[N]],p[4],h[N])),F=K,K=B,B=g(H,10),H=q,q=C,T=k,k=j,j=g(E,10),E=L,L=P}var D=this._b+H+j|0;this._b=this._c+B+k|0,this._c=this._d+K+T|0,this._d=this._e+F+L|0,this._e=this._a+q+E|0,this._a=D},x.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset&gt;56&amp;&amp;(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var I=s.alloc?s.alloc(20):new s(20);return I.writeInt32LE(this._a,0),I.writeInt32LE(this._b,4),I.writeInt32LE(this._c,8),I.writeInt32LE(this._d,12),I.writeInt32LE(this._e,16),I},n.exports=x},{buffer:220,&quot;hash-base&quot;:425,inherits:440}],494:[function(t,n,o){var s=t(&quot;buffer&quot;),l=s.Buffer;function u(a,d){for(var f in a)d[f]=a[f]}function c(a,d,f){return l(a,d,f)}l.from&amp;&amp;l.alloc&amp;&amp;l.allocUnsafe&amp;&amp;l.allocUnsafeSlow?n.exports=s:(u(s,o),o.Buffer=c),c.prototype=Object.create(l.prototype),u(l,c),c.from=function(a,d,f){if(typeof a==&quot;number&quot;)throw new TypeError(&quot;Argument must not be a number&quot;);return l(a,d,f)},c.alloc=function(a,d,f){if(typeof a!=&quot;number&quot;)throw new TypeError(&quot;Argument must be a number&quot;);var h=l(a);return d!==void 0?typeof f==&quot;string&quot;?h.fill(d,f):h.fill(d):h.fill(0),h},c.allocUnsafe=function(a){if(typeof a!=&quot;number&quot;)throw new TypeError(&quot;Argument must be a number&quot;);return l(a)},c.allocUnsafeSlow=function(a){if(typeof a!=&quot;number&quot;)throw new TypeError(&quot;Argument must be a number&quot;);return s.SlowBuffer(a)}},{buffer:220}],495:[function(t,n,o){(function(s){(function(){var l,u=t(&quot;buffer&quot;),c=u.Buffer,a={};for(l in u)u.hasOwnProperty(l)&amp;&amp;l!==&quot;SlowBuffer&quot;&amp;&amp;l!==&quot;Buffer&quot;&amp;&amp;(a[l]=u[l]);var d=a.Buffer={};for(l in c)c.hasOwnProperty(l)&amp;&amp;l!==&quot;allocUnsafe&quot;&amp;&amp;l!==&quot;allocUnsafeSlow&quot;&amp;&amp;(d[l]=c[l]);if(a.Buffer.prototype=c.prototype,d.from&amp;&amp;d.from!==Uint8Array.from||(d.from=function(f,h,m){if(typeof f==&quot;number&quot;)throw new TypeError(&#039;The &quot;value&quot; argument must not be of type number. Received type &#039;+typeof f);if(f&amp;&amp;f.length===void 0)throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof f);return c(f,h,m)}),d.alloc||(d.alloc=function(f,h,m){if(typeof f!=&quot;number&quot;)throw new TypeError(&#039;The &quot;size&quot; argument must be of type number. Received type &#039;+typeof f);if(f&lt;0||f&gt;=2*(1&lt;&lt;30))throw new RangeError(&#039;The value &quot;&#039;+f+&#039;&quot; is invalid for option &quot;size&quot;&#039;);var p=c(f);return h&amp;&amp;h.length!==0?typeof m==&quot;string&quot;?p.fill(h,m):p.fill(h):p.fill(0),p}),!a.kStringMaxLength)try{a.kStringMaxLength=s.binding(&quot;buffer&quot;).kStringMaxLength}catch{}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&amp;&amp;(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),n.exports=a}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:467,buffer:220}],496:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0});const s=t(&quot;xmlchars/xml/1.0/ed5&quot;),l=t(&quot;xmlchars/xml/1.1/ed2&quot;),u=t(&quot;xmlchars/xmlns/1.0/ed3&quot;);var c=s.isS,a=s.isChar,d=s.isNameStartChar,f=s.isNameChar,h=s.S_LIST,m=s.NAME_RE,p=l.isChar,x=u.isNCNameStartChar,g=u.isNCNameChar,y=u.NC_NAME_RE;const v=&quot;http://www.w3.org/XML/1998/namespace&quot;,_=&quot;http://www.w3.org/2000/xmlns/&quot;,S={__proto__:null,xml:v,xmlns:_},A={__proto__:null,amp:&quot;&amp;&quot;,gt:&quot;&gt;&quot;,lt:&quot;&lt;&quot;,quot:&#039;&quot;&#039;,apos:&quot;&#039;&quot;},I=j=&gt;j===34||j===39,V=[34,39],F=[...V,91,62],q=[...V,60,93],H=[61,63,...h],B=[...h,62,38,60];function K(j,k,N){switch(k){case&quot;xml&quot;:N!==v&amp;&amp;j.fail(`xml prefix must be bound to ${v}.`);break;case&quot;xmlns&quot;:N!==_&amp;&amp;j.fail(`xmlns prefix must be bound to ${_}.`)}switch(N){case _:j.fail(k===&quot;&quot;?`the default namespace may not be set to ${N}.`:`may not assign a prefix (even &quot;xmlns&quot;) to the URI ${_}.`);break;case v:switch(k){case&quot;xml&quot;:break;case&quot;&quot;:j.fail(`the default namespace may not be set to ${N}.`);break;default:j.fail(&quot;may not assign the xml namespace to another prefix.&quot;)}}}const T=j=&gt;y.test(j),L=j=&gt;m.test(j);o.EVENTS=[&quot;xmldecl&quot;,&quot;text&quot;,&quot;processinginstruction&quot;,&quot;doctype&quot;,&quot;comment&quot;,&quot;opentagstart&quot;,&quot;attribute&quot;,&quot;opentag&quot;,&quot;closetag&quot;,&quot;cdata&quot;,&quot;error&quot;,&quot;end&quot;,&quot;ready&quot;];const E={xmldecl:&quot;xmldeclHandler&quot;,text:&quot;textHandler&quot;,processinginstruction:&quot;piHandler&quot;,doctype:&quot;doctypeHandler&quot;,comment:&quot;commentHandler&quot;,opentagstart:&quot;openTagStartHandler&quot;,attribute:&quot;attributeHandler&quot;,opentag:&quot;openTagHandler&quot;,closetag:&quot;closeTagHandler&quot;,cdata:&quot;cdataHandler&quot;,error:&quot;errorHandler&quot;,end:&quot;endHandler&quot;,ready:&quot;readyHandler&quot;};o.SaxesParser=class{constructor(j){this.opt=j??{},this.fragmentOpt=!!this.opt.fragment;const k=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,k){this.nameStartCheck=x,this.nameCheck=g,this.isName=T,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},S);const N=this.opt.additionalNamespaces;N!=null&amp;&amp;((function(C,P){for(const D of Object.keys(P))K(C,D,P[D])})(this,N),Object.assign(this.ns,N))}else this.nameStartCheck=d,this.nameCheck=f,this.isName=L,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var j;this.openWakaBang=&quot;&quot;,this.text=&quot;&quot;,this.name=&quot;&quot;,this.piTarget=&quot;&quot;,this.entity=&quot;&quot;,this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk=&quot;&quot;,this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:k}=this;this.state=k?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=k,this.xmlDeclPossible=!k,this.xmlDeclExpects=[&quot;version&quot;],this.entityReturnState=void 0;let{defaultXMLVersion:N}=this.opt;if(N===void 0){if(this.opt.forceXMLVersion===!0)throw new Error(&quot;forceXMLVersion set but defaultXMLVersion is not set&quot;);N=&quot;1.0&quot;}this.setXMLVersion(N),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(A),(j=this.readyHandler)===null||j===void 0||j.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(j,k){this[E[j]]=k}off(j){this[E[j]]=void 0}makeError(j){var k;let N=(k=this.fileName)!==null&amp;&amp;k!==void 0?k:&quot;&quot;;return this.trackPosition&amp;&amp;(N.length&gt;0&amp;&amp;(N+=&quot;:&quot;),N+=`${this.line}:${this.column}`),N.length&gt;0&amp;&amp;(N+=&quot;: &quot;),new Error(N+j)}fail(j){const k=this.makeError(j),N=this.errorHandler;if(N===void 0)throw k;return N(k),this}write(j){if(this.closed)return this.fail(&quot;cannot write after close; assign an onready handler.&quot;);let k=!1;j===null?(k=!0,j=&quot;&quot;):typeof j==&quot;object&quot;&amp;&amp;(j=j.toString()),this.carriedFromPrevious!==void 0&amp;&amp;(j=`${this.carriedFromPrevious}${j}`,this.carriedFromPrevious=void 0);let N=j.length;const C=j.charCodeAt(N-1);!k&amp;&amp;(C===13||C&gt;=55296&amp;&amp;C&lt;=56319)&amp;&amp;(this.carriedFromPrevious=j[N-1],N--,j=j.slice(0,N));const{stateTable:P}=this;for(this.chunk=j,this.i=0;this.i&lt;N;)P[this.state].call(this);return this.chunkPosition+=N,k?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:j,i:k}=this;if(this.prevI=k,this.i=k+1,k&gt;=j.length)return-1;const N=j.charCodeAt(k);if(this.column++,N&lt;55296){if(N&gt;=32||N===9)return N;switch(N){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return j.charCodeAt(k+1)===10&amp;&amp;(this.i=k+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail(&quot;disallowed character.&quot;),N}}if(N&gt;56319)return N&gt;=57344&amp;&amp;N&lt;=65533||this.fail(&quot;disallowed character.&quot;),N;const C=65536+1024*(N-55296)+(j.charCodeAt(k+1)-56320);return this.i=k+2,C&gt;1114111&amp;&amp;this.fail(&quot;disallowed character.&quot;),C}getCode11(){const{chunk:j,i:k}=this;if(this.prevI=k,this.i=k+1,k&gt;=j.length)return-1;const N=j.charCodeAt(k);if(this.column++,N&lt;55296){if(N&gt;31&amp;&amp;N&lt;127||N&gt;159&amp;&amp;N!==8232||N===9)return N;switch(N){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const P=j.charCodeAt(k+1);P!==10&amp;&amp;P!==133||(this.i=k+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail(&quot;disallowed character.&quot;),N}}if(N&gt;56319)return N&gt;=57344&amp;&amp;N&lt;=65533||this.fail(&quot;disallowed character.&quot;),N;const C=65536+1024*(N-55296)+(j.charCodeAt(k+1)-56320);return this.i=k+2,C&gt;1114111&amp;&amp;this.fail(&quot;disallowed character.&quot;),C}getCodeNorm(){const j=this.getCode();return j===-2?10:j}unget(){this.i=this.prevI,this.column--}captureTo(j){let{i:k}=this;const{chunk:N}=this;for(;;){const C=this.getCode(),P=C===-2,D=P?10:C;if(D===-1||j.includes(D))return this.text+=N.slice(k,this.prevI),D;P&amp;&amp;(this.text+=N.slice(k,this.prevI)+`
`,k=this.i)}}captureToChar(j){let{i:k}=this;const{chunk:N}=this;for(;;){let C=this.getCode();switch(C){case-2:this.text+=N.slice(k,this.prevI)+`
`,k=this.i,C=10;break;case-1:return this.text+=N.slice(k),!1}if(C===j)return this.text+=N.slice(k,this.prevI),!0}}captureNameChars(){const{chunk:j,i:k}=this;for(;;){const N=this.getCode();if(N===-1)return this.name+=j.slice(k),-1;if(!f(N))return this.name+=j.slice(k,this.prevI),N===-2?10:N}}skipSpaces(){for(;;){const j=this.getCodeNorm();if(j===-1||!c(j))return j}}setXMLVersion(j){this.currentXMLVersion=j,j===&quot;1.0&quot;?(this.isChar=a,this.getCode=this.getCode10):(this.isChar=p,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&amp;&amp;(this.i++,this.column++),this.state=1}sBeginWhitespace(){const j=this.i,k=this.skipSpaces();switch(this.prevI!==j&amp;&amp;(this.xmlDeclPossible=!1),k){case 60:if(this.state=15,this.text.length!==0)throw new Error(&quot;no-empty text at start&quot;);break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var j;const k=this.captureTo(F);switch(k){case 62:(j=this.doctypeHandler)===null||j===void 0||j.call(this,this.text),this.text=&quot;&quot;,this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(k),k===91?this.state=4:I(k)&amp;&amp;(this.state=3,this.q=k)}}sDoctypeQuote(){const j=this.q;this.captureToChar(j)&amp;&amp;(this.text+=String.fromCodePoint(j),this.q=null,this.state=2)}sDTD(){const j=this.captureTo(q);j!==-1&amp;&amp;(this.text+=String.fromCodePoint(j),j===93?this.state=2:j===60?this.state=6:I(j)&amp;&amp;(this.state=5,this.q=j))}sDTDQuoted(){const j=this.q;this.captureToChar(j)&amp;&amp;(this.text+=String.fromCodePoint(j),this.state=4,this.q=null)}sDTDOpenWaka(){const j=this.getCodeNorm();switch(this.text+=String.fromCodePoint(j),j){case 33:this.state=7,this.openWakaBang=&quot;&quot;;break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const j=String.fromCodePoint(this.getCodeNorm()),k=this.openWakaBang+=j;this.text+=j,k!==&quot;-&quot;&amp;&amp;(this.state=k===&quot;--&quot;?8:4,this.openWakaBang=&quot;&quot;)}sDTDComment(){this.captureToChar(45)&amp;&amp;(this.text+=&quot;-&quot;,this.state=9)}sDTDCommentEnding(){const j=this.getCodeNorm();this.text+=String.fromCodePoint(j),this.state=j===45?10:8}sDTDCommentEnded(){const j=this.getCodeNorm();this.text+=String.fromCodePoint(j),j===62?this.state=4:(this.fail(&quot;malformed comment.&quot;),this.state=8)}sDTDPI(){this.captureToChar(63)&amp;&amp;(this.text+=&quot;?&quot;,this.state=12)}sDTDPIEnding(){const j=this.getCodeNorm();this.text+=String.fromCodePoint(j),j===62&amp;&amp;(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:j}=this;const{chunk:k}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=k.slice(j,this.prevI)+`
`,j=this.i;break;case 59:{const{entityReturnState:N}=this,C=this.entity+k.slice(j,this.prevI);let P;this.state=N,C===&quot;&quot;?(this.fail(&quot;empty entity name.&quot;),P=&quot;&amp;;&quot;):(P=this.parseEntity(C),this.entity=&quot;&quot;),N===13&amp;&amp;this.textHandler===void 0||(this.text+=P);break e}case-1:this.entity+=k.slice(j);break e}}sOpenWaka(){const j=this.getCode();if(d(j))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(j){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang=&quot;&quot;,this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail(&quot;disallowed character in tag name&quot;),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case&quot;[CDATA[&quot;:this.sawRoot||this.reportedTextBeforeRoot||(this.fail(&quot;text data outside of root node.&quot;),this.reportedTextBeforeRoot=!0),this.closedRoot&amp;&amp;!this.reportedTextAfterRoot&amp;&amp;(this.fail(&quot;text data outside of root node.&quot;),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang=&quot;&quot;;break;case&quot;--&quot;:this.state=17,this.openWakaBang=&quot;&quot;;break;case&quot;DOCTYPE&quot;:this.state=2,(this.doctype||this.sawRoot)&amp;&amp;this.fail(&quot;inappropriately located doctype declaration.&quot;),this.openWakaBang=&quot;&quot;;break;default:this.openWakaBang.length&gt;=7&amp;&amp;this.fail(&quot;incorrect syntax.&quot;)}}sComment(){this.captureToChar(45)&amp;&amp;(this.state=18)}sCommentEnding(){var j;const k=this.getCodeNorm();k===45?(this.state=19,(j=this.commentHandler)===null||j===void 0||j.call(this,this.text),this.text=&quot;&quot;):(this.text+=&quot;-&quot;+String.fromCodePoint(k),this.state=17)}sCommentEnded(){const j=this.getCodeNorm();j!==62?(this.fail(&quot;malformed comment.&quot;),this.text+=&quot;--&quot;+String.fromCodePoint(j),this.state=17):this.state=13}sCData(){this.captureToChar(93)&amp;&amp;(this.state=21)}sCDataEnding(){const j=this.getCodeNorm();j===93?this.state=22:(this.text+=&quot;]&quot;+String.fromCodePoint(j),this.state=20)}sCDataEnding2(){var j;const k=this.getCodeNorm();switch(k){case 62:(j=this.cdataHandler)===null||j===void 0||j.call(this,this.text),this.text=&quot;&quot;,this.state=13;break;case 93:this.text+=&quot;]&quot;;break;default:this.text+=&quot;]]&quot;+String.fromCodePoint(k),this.state=20}}sPIFirstChar(){const j=this.getCodeNorm();this.nameStartCheck(j)?(this.piTarget+=String.fromCodePoint(j),this.state=24):j===63||c(j)?(this.fail(&quot;processing instruction without a target.&quot;),this.state=j===63?26:25):(this.fail(&quot;disallowed character in processing instruction name.&quot;),this.piTarget+=String.fromCodePoint(j),this.state=24)}sPIRest(){const{chunk:j,i:k}=this;for(;;){const N=this.getCodeNorm();if(N===-1)return void(this.piTarget+=j.slice(k));if(!this.nameCheck(N)){this.piTarget+=j.slice(k,this.prevI);const C=N===63;C||c(N)?this.piTarget===&quot;xml&quot;?(this.xmlDeclPossible||this.fail(&quot;an XML declaration must be at the start of the document.&quot;),this.state=C?33:27):this.state=C?26:25:(this.fail(&quot;disallowed character in processing instruction name.&quot;),this.piTarget+=String.fromCodePoint(N));break}}}sPIBody(){if(this.text.length===0){const j=this.getCodeNorm();j===63?this.state=26:c(j)||(this.text=String.fromCodePoint(j))}else this.captureToChar(63)&amp;&amp;(this.state=26)}sPIEnding(){var j;const k=this.getCodeNorm();if(k===62){const{piTarget:N}=this;N.toLowerCase()===&quot;xml&quot;&amp;&amp;this.fail(&quot;the XML declaration must appear at the start of the document.&quot;),(j=this.piHandler)===null||j===void 0||j.call(this,{target:N,body:this.text}),this.piTarget=this.text=&quot;&quot;,this.state=13}else k===63?this.text+=&quot;?&quot;:(this.text+=&quot;?&quot;+String.fromCodePoint(k),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const j=this.skipSpaces();j!==63?j!==-1&amp;&amp;(this.state=28,this.name=String.fromCodePoint(j)):this.state=33}sXMLDeclName(){const j=this.captureTo(H);if(j===63)return this.state=33,this.name+=this.text,this.text=&quot;&quot;,void this.fail(&quot;XML declaration is incomplete.&quot;);if(c(j)||j===61){if(this.name+=this.text,this.text=&quot;&quot;,!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail(&quot;did not expect any more name/value pairs.&quot;);break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(&quot;expected one of &quot;+this.xmlDeclExpects.join(&quot;, &quot;))}this.state=j===61?30:29}}sXMLDeclEq(){const j=this.getCodeNorm();if(j===63)return this.state=33,void this.fail(&quot;XML declaration is incomplete.&quot;);c(j)||(j!==61&amp;&amp;this.fail(&quot;value required.&quot;),this.state=30)}sXMLDeclValueStart(){const j=this.getCodeNorm();if(j===63)return this.state=33,void this.fail(&quot;XML declaration is incomplete.&quot;);c(j)||(I(j)?this.q=j:(this.fail(&quot;value must be quoted.&quot;),this.q=32),this.state=31)}sXMLDeclValue(){const j=this.captureTo([this.q,63]);if(j===63)return this.state=33,this.text=&quot;&quot;,void this.fail(&quot;XML declaration is incomplete.&quot;);if(j===-1)return;const k=this.text;switch(this.text=&quot;&quot;,this.name){case&quot;version&quot;:{this.xmlDeclExpects=[&quot;encoding&quot;,&quot;standalone&quot;];const N=k;this.xmlDecl.version=N,/^1\.[0-9]+$/.test(N)?this.opt.forceXMLVersion||this.setXMLVersion(N):this.fail(&quot;version number must match /^1\\.[0-9]+$/.&quot;);break}case&quot;encoding&quot;:/^[A-Za-z][A-Za-z0-9._-]*$/.test(k)||this.fail(&quot;encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.&quot;),this.xmlDeclExpects=[&quot;standalone&quot;],this.xmlDecl.encoding=k;break;case&quot;standalone&quot;:k!==&quot;yes&quot;&amp;&amp;k!==&quot;no&quot;&amp;&amp;this.fail(&#039;standalone value must match &quot;yes&quot; or &quot;no&quot;.&#039;),this.xmlDeclExpects=[],this.xmlDecl.standalone=k}this.name=&quot;&quot;,this.state=32}sXMLDeclSeparator(){const j=this.getCodeNorm();j!==63?(c(j)||(this.fail(&quot;whitespace required.&quot;),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var j;this.getCodeNorm()===62?(this.piTarget!==&quot;xml&quot;?this.fail(&quot;processing instructions are not allowed before root.&quot;):this.name!==&quot;version&quot;&amp;&amp;this.xmlDeclExpects.includes(&quot;version&quot;)&amp;&amp;this.fail(&quot;XML declaration must contain a version.&quot;),(j=this.xmldeclHandler)===null||j===void 0||j.call(this,this.xmlDecl),this.name=&quot;&quot;,this.piTarget=this.text=&quot;&quot;,this.state=13):this.fail(&quot;The character ? is disallowed anywhere in XML declarations.&quot;),this.xmlDeclPossible=!1}sOpenTag(){var j;const k=this.captureNameChars();if(k===-1)return;const N=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name=&quot;&quot;,this.xmlnsOpt&amp;&amp;(this.topNS=N.ns=Object.create(null)),(j=this.openTagStartHandler)===null||j===void 0||j.call(this,N),this.sawRoot=!0,!this.fragmentOpt&amp;&amp;this.closedRoot&amp;&amp;this.fail(&quot;documents may contain only one root.&quot;),k){case 62:this.openTag();break;case 47:this.state=35;break;default:c(k)||this.fail(&quot;disallowed character in tag name.&quot;),this.state=36}}sOpenTagSlash(){this.getCode()===62?this.openSelfClosingTag():(this.fail(&quot;forward-slash in opening tag not followed by &gt;.&quot;),this.state=36)}sAttrib(){const j=this.skipSpaces();j!==-1&amp;&amp;(d(j)?(this.unget(),this.state=37):j===62?this.openTag():j===47?this.state=35:this.fail(&quot;disallowed character in attribute name.&quot;))}sAttribName(){const j=this.captureNameChars();j===61?this.state=39:c(j)?this.state=38:j===62?(this.fail(&quot;attribute without value.&quot;),this.pushAttrib(this.name,this.name),this.name=this.text=&quot;&quot;,this.openTag()):j!==-1&amp;&amp;this.fail(&quot;disallowed character in attribute name.&quot;)}sAttribNameSawWhite(){const j=this.skipSpaces();switch(j){case-1:return;case 61:this.state=39;break;default:this.fail(&quot;attribute without value.&quot;),this.text=&quot;&quot;,this.name=&quot;&quot;,j===62?this.openTag():d(j)?(this.unget(),this.state=37):(this.fail(&quot;disallowed character in attribute name.&quot;),this.state=36)}}sAttribValue(){const j=this.getCodeNorm();I(j)?(this.q=j,this.state=40):c(j)||(this.fail(&quot;unquoted attribute value.&quot;),this.state=42,this.unget())}sAttribValueQuoted(){const{q:j,chunk:k}=this;let{i:N}=this;for(;;)switch(this.getCode()){case j:return this.pushAttrib(this.name,this.text+k.slice(N,this.prevI)),this.name=this.text=&quot;&quot;,this.q=null,void(this.state=41);case 38:return this.text+=k.slice(N,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=k.slice(N,this.prevI)+&quot; &quot;,N=this.i;break;case 60:return this.text+=k.slice(N,this.prevI),void this.fail(&quot;disallowed character.&quot;);case-1:return void(this.text+=k.slice(N))}}sAttribValueClosed(){const j=this.getCodeNorm();c(j)?this.state=36:j===62?this.openTag():j===47?this.state=35:d(j)?(this.fail(&quot;no whitespace between attributes.&quot;),this.unget(),this.state=37):this.fail(&quot;disallowed character in attribute name.&quot;)}sAttribValueUnquoted(){const j=this.captureTo(B);switch(j){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail(&quot;disallowed character.&quot;);break;case-1:break;default:this.text.includes(&quot;]]&gt;&quot;)&amp;&amp;this.fail(&#039;the string &quot;]]&gt;&quot; is disallowed in char data.&#039;),this.pushAttrib(this.name,this.text),this.name=this.text=&quot;&quot;,j===62?this.openTag():this.state=36}}sCloseTag(){const j=this.captureNameChars();j===62?this.closeTag():c(j)?this.state=44:j!==-1&amp;&amp;this.fail(&quot;disallowed character in closing tag.&quot;)}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail(&quot;disallowed character in closing tag.&quot;)}}handleTextInRoot(){let{i:j,forbiddenState:k}=this;const{chunk:N,textHandler:C}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,C!==void 0){const{text:P}=this,D=N.slice(j,this.prevI);P.length!==0?(C(P+D),this.text=&quot;&quot;):D.length!==0&amp;&amp;C(D)}k=0;break e;case 38:this.state=14,this.entityReturnState=13,C!==void 0&amp;&amp;(this.text+=N.slice(j,this.prevI)),k=0;break e;case 93:switch(k){case 0:k=1;break;case 1:k=2;break;case 2:break;default:throw new Error(&quot;impossible state&quot;)}break;case 62:k===2&amp;&amp;this.fail(&#039;the string &quot;]]&gt;&quot; is disallowed in char data.&#039;),k=0;break;case-2:C!==void 0&amp;&amp;(this.text+=N.slice(j,this.prevI)+`
`),j=this.i,k=0;break;case-1:C!==void 0&amp;&amp;(this.text+=N.slice(j));break e;default:k=0}this.forbiddenState=k}handleTextOutsideRoot(){let{i:j}=this;const{chunk:k,textHandler:N}=this;let C=!1;e:for(;;){const P=this.getCode();switch(P){case 60:if(this.state=15,N!==void 0){const{text:D}=this,z=k.slice(j,this.prevI);D.length!==0?(N(D+z),this.text=&quot;&quot;):z.length!==0&amp;&amp;N(z)}break e;case 38:this.state=14,this.entityReturnState=13,N!==void 0&amp;&amp;(this.text+=k.slice(j,this.prevI)),C=!0;break e;case-2:N!==void 0&amp;&amp;(this.text+=k.slice(j,this.prevI)+`
`),j=this.i;break;case-1:N!==void 0&amp;&amp;(this.text+=k.slice(j));break e;default:c(P)||(C=!0)}}C&amp;&amp;(this.sawRoot||this.reportedTextBeforeRoot||(this.fail(&quot;text data outside of root node.&quot;),this.reportedTextBeforeRoot=!0),this.closedRoot&amp;&amp;!this.reportedTextAfterRoot&amp;&amp;(this.fail(&quot;text data outside of root node.&quot;),this.reportedTextAfterRoot=!0))}pushAttribNS(j,k){var N;const{prefix:C,local:P}=this.qname(j),D={name:j,prefix:C,local:P,value:k};if(this.attribList.push(D),(N=this.attributeHandler)===null||N===void 0||N.call(this,D),C===&quot;xmlns&quot;){const z=k.trim();this.currentXMLVersion===&quot;1.0&quot;&amp;&amp;z===&quot;&quot;&amp;&amp;this.fail(&quot;invalid attempt to undefine prefix in XML 1.0&quot;),this.topNS[P]=z,K(this,P,z)}else if(j===&quot;xmlns&quot;){const z=k.trim();this.topNS[&quot;&quot;]=z,K(this,&quot;&quot;,z)}}pushAttribPlain(j,k){var N;const C={name:j,value:k};this.attribList.push(C),(N=this.attributeHandler)===null||N===void 0||N.call(this,C)}end(){var j,k;this.sawRoot||this.fail(&quot;document must contain a root element.&quot;);const{tags:N}=this;for(;N.length&gt;0;){const P=N.pop();this.fail(&quot;unclosed tag: &quot;+P.name)}this.state!==0&amp;&amp;this.state!==13&amp;&amp;this.fail(&quot;unexpected end.&quot;);const{text:C}=this;return C.length!==0&amp;&amp;((j=this.textHandler)===null||j===void 0||j.call(this,C),this.text=&quot;&quot;),this._closed=!0,(k=this.endHandler)===null||k===void 0||k.call(this),this._init(),this}resolve(j){var k,N;let C=this.topNS[j];if(C!==void 0)return C;const{tags:P}=this;for(let D=P.length-1;D&gt;=0;D--)if(C=P[D].ns[j],C!==void 0)return C;return C=this.ns[j],C!==void 0?C:(N=(k=this.opt).resolvePrefix)===null||N===void 0?void 0:N.call(k,j)}qname(j){const k=j.indexOf(&quot;:&quot;);if(k===-1)return{prefix:&quot;&quot;,local:j};const N=j.slice(k+1),C=j.slice(0,k);return(C===&quot;&quot;||N===&quot;&quot;||N.includes(&quot;:&quot;))&amp;&amp;this.fail(`malformed name: ${j}.`),{prefix:C,local:N}}processAttribsNS(){var j;const{attribList:k}=this,N=this.tag;{const{prefix:D,local:z}=this.qname(N.name);N.prefix=D,N.local=z;const Y=N.uri=(j=this.resolve(D))!==null&amp;&amp;j!==void 0?j:&quot;&quot;;D!==&quot;&quot;&amp;&amp;(D===&quot;xmlns&quot;&amp;&amp;this.fail(&#039;tags may not have &quot;xmlns&quot; as prefix.&#039;),Y===&quot;&quot;&amp;&amp;(this.fail(`unbound namespace prefix: ${JSON.stringify(D)}.`),N.uri=D))}if(k.length===0)return;const{attributes:C}=N,P=new Set;for(const D of k){const{name:z,prefix:Y,local:Z}=D;let ne,U;Y===&quot;&quot;?(ne=z===&quot;xmlns&quot;?_:&quot;&quot;,U=z):(ne=this.resolve(Y),ne===void 0&amp;&amp;(this.fail(`unbound namespace prefix: ${JSON.stringify(Y)}.`),ne=Y),U=`{${ne}}${Z}`),P.has(U)&amp;&amp;this.fail(`duplicate attribute: ${U}.`),P.add(U),D.uri=ne,C[z]=D}this.attribList=[]}processAttribsPlain(){const{attribList:j}=this,k=this.tag.attributes;for(const{name:N,value:C}of j)k[N]!==void 0&amp;&amp;this.fail(`duplicate attribute: ${N}.`),k[N]=C;this.attribList=[]}openTag(){var j;this.processAttribs();const{tags:k}=this,N=this.tag;N.isSelfClosing=!1,(j=this.openTagHandler)===null||j===void 0||j.call(this,N),k.push(N),this.state=13,this.name=&quot;&quot;}openSelfClosingTag(){var j,k,N;this.processAttribs();const{tags:C}=this,P=this.tag;P.isSelfClosing=!0,(j=this.openTagHandler)===null||j===void 0||j.call(this,P),(k=this.closeTagHandler)===null||k===void 0||k.call(this,P),(this.tag=(N=C[C.length-1])!==null&amp;&amp;N!==void 0?N:null)===null&amp;&amp;(this.closedRoot=!0),this.state=13,this.name=&quot;&quot;}closeTag(){const{tags:j,name:k}=this;if(this.state=13,this.name=&quot;&quot;,k===&quot;&quot;)return this.fail(&quot;weird empty close tag.&quot;),void(this.text+=&quot;&lt;/&gt;&quot;);const N=this.closeTagHandler;let C=j.length;for(;C-- &gt;0;){const P=this.tag=j.pop();if(this.topNS=P.ns,N?.(P),P.name===k)break;this.fail(&quot;unexpected close tag.&quot;)}C===0?this.closedRoot=!0:C&lt;0&amp;&amp;(this.fail(`unmatched closing tag: ${k}.`),this.text+=`&lt;/${k}&gt;`)}parseEntity(j){if(j[0]!==&quot;#&quot;){const N=this.ENTITIES[j];return N!==void 0?N:(this.fail(this.isName(j)?&quot;undefined entity.&quot;:&quot;disallowed character in entity name.&quot;),`&amp;${j};`)}let k=NaN;return j[1]===&quot;x&quot;&amp;&amp;/^#x[0-9a-f]+$/i.test(j)?k=parseInt(j.slice(2),16):/^#[0-9]+$/.test(j)&amp;&amp;(k=parseInt(j.slice(1),10)),this.isChar(k)?String.fromCodePoint(k):(this.fail(&quot;malformed character entity.&quot;),`&amp;${j};`)}}},{&quot;xmlchars/xml/1.0/ed5&quot;:543,&quot;xmlchars/xml/1.1/ed2&quot;:544,&quot;xmlchars/xmlns/1.0/ed3&quot;:545}],497:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer;function l(u,c){this._block=s.alloc(u),this._finalSize=c,this._blockSize=u,this._len=0}l.prototype.update=function(u,c){typeof u==&quot;string&quot;&amp;&amp;(c=c||&quot;utf8&quot;,u=s.from(u,c));for(var a=this._block,d=this._blockSize,f=u.length,h=this._len,m=0;m&lt;f;){for(var p=h%d,x=Math.min(f-m,d-p),g=0;g&lt;x;g++)a[p+g]=u[m+g];m+=x,(h+=x)%d==0&amp;&amp;this._update(a)}return this._len+=f,this},l.prototype.digest=function(u){var c=this._len%this._blockSize;this._block[c]=128,this._block.fill(0,c+1),c&gt;=this._finalSize&amp;&amp;(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a&lt;=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var d=(4294967295&amp;a)&gt;&gt;&gt;0,f=(a-d)/4294967296;this._block.writeUInt32BE(f,this._blockSize-8),this._block.writeUInt32BE(d,this._blockSize-4)}this._update(this._block);var h=this._hash();return u?h.toString(u):h},l.prototype._update=function(){throw new Error(&quot;_update must be implemented by subclass&quot;)},n.exports=l},{&quot;safe-buffer&quot;:494}],498:[function(t,n,o){var s=n.exports=function(l){l=l.toLowerCase();var u=s[l];if(!u)throw new Error(l+&quot; is not supported (we accept pull requests)&quot;);return new u};s.sha=t(&quot;./sha&quot;),s.sha1=t(&quot;./sha1&quot;),s.sha224=t(&quot;./sha224&quot;),s.sha256=t(&quot;./sha256&quot;),s.sha384=t(&quot;./sha384&quot;),s.sha512=t(&quot;./sha512&quot;)},{&quot;./sha&quot;:499,&quot;./sha1&quot;:500,&quot;./sha224&quot;:501,&quot;./sha256&quot;:502,&quot;./sha384&quot;:503,&quot;./sha512&quot;:504}],499:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;./hash&quot;),u=t(&quot;safe-buffer&quot;).Buffer,c=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function d(){this.init(),this._w=a,l.call(this,64,56)}function f(m){return m&lt;&lt;30|m&gt;&gt;&gt;2}function h(m,p,x,g){return m===0?p&amp;x|~p&amp;g:m===2?p&amp;x|p&amp;g|x&amp;g:p^x^g}s(d,l),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(m){for(var p,x=this._w,g=0|this._a,y=0|this._b,v=0|this._c,_=0|this._d,S=0|this._e,A=0;A&lt;16;++A)x[A]=m.readInt32BE(4*A);for(;A&lt;80;++A)x[A]=x[A-3]^x[A-8]^x[A-14]^x[A-16];for(var I=0;I&lt;80;++I){var V=~~(I/20),F=0|((p=g)&lt;&lt;5|p&gt;&gt;&gt;27)+h(V,y,v,_)+S+x[I]+c[V];S=_,_=v,v=f(y),y=g,g=F}this._a=g+this._a|0,this._b=y+this._b|0,this._c=v+this._c|0,this._d=_+this._d|0,this._e=S+this._e|0},d.prototype._hash=function(){var m=u.allocUnsafe(20);return m.writeInt32BE(0|this._a,0),m.writeInt32BE(0|this._b,4),m.writeInt32BE(0|this._c,8),m.writeInt32BE(0|this._d,12),m.writeInt32BE(0|this._e,16),m},n.exports=d},{&quot;./hash&quot;:497,inherits:440,&quot;safe-buffer&quot;:494}],500:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;./hash&quot;),u=t(&quot;safe-buffer&quot;).Buffer,c=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function d(){this.init(),this._w=a,l.call(this,64,56)}function f(p){return p&lt;&lt;5|p&gt;&gt;&gt;27}function h(p){return p&lt;&lt;30|p&gt;&gt;&gt;2}function m(p,x,g,y){return p===0?x&amp;g|~x&amp;y:p===2?x&amp;g|x&amp;y|g&amp;y:x^g^y}s(d,l),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(p){for(var x,g=this._w,y=0|this._a,v=0|this._b,_=0|this._c,S=0|this._d,A=0|this._e,I=0;I&lt;16;++I)g[I]=p.readInt32BE(4*I);for(;I&lt;80;++I)g[I]=(x=g[I-3]^g[I-8]^g[I-14]^g[I-16])&lt;&lt;1|x&gt;&gt;&gt;31;for(var V=0;V&lt;80;++V){var F=~~(V/20),q=f(y)+m(F,v,_,S)+A+g[V]+c[F]|0;A=S,S=_,_=h(v),v=y,y=q}this._a=y+this._a|0,this._b=v+this._b|0,this._c=_+this._c|0,this._d=S+this._d|0,this._e=A+this._e|0},d.prototype._hash=function(){var p=u.allocUnsafe(20);return p.writeInt32BE(0|this._a,0),p.writeInt32BE(0|this._b,4),p.writeInt32BE(0|this._c,8),p.writeInt32BE(0|this._d,12),p.writeInt32BE(0|this._e,16),p},n.exports=d},{&quot;./hash&quot;:497,inherits:440,&quot;safe-buffer&quot;:494}],501:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;./sha256&quot;),u=t(&quot;./hash&quot;),c=t(&quot;safe-buffer&quot;).Buffer,a=new Array(64);function d(){this.init(),this._w=a,u.call(this,64,56)}s(d,l),d.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},d.prototype._hash=function(){var f=c.allocUnsafe(28);return f.writeInt32BE(this._a,0),f.writeInt32BE(this._b,4),f.writeInt32BE(this._c,8),f.writeInt32BE(this._d,12),f.writeInt32BE(this._e,16),f.writeInt32BE(this._f,20),f.writeInt32BE(this._g,24),f},n.exports=d},{&quot;./hash&quot;:497,&quot;./sha256&quot;:502,inherits:440,&quot;safe-buffer&quot;:494}],502:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;./hash&quot;),u=t(&quot;safe-buffer&quot;).Buffer,c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function d(){this.init(),this._w=a,l.call(this,64,56)}function f(g,y,v){return v^g&amp;(y^v)}function h(g,y,v){return g&amp;y|v&amp;(g|y)}function m(g){return(g&gt;&gt;&gt;2|g&lt;&lt;30)^(g&gt;&gt;&gt;13|g&lt;&lt;19)^(g&gt;&gt;&gt;22|g&lt;&lt;10)}function p(g){return(g&gt;&gt;&gt;6|g&lt;&lt;26)^(g&gt;&gt;&gt;11|g&lt;&lt;21)^(g&gt;&gt;&gt;25|g&lt;&lt;7)}function x(g){return(g&gt;&gt;&gt;7|g&lt;&lt;25)^(g&gt;&gt;&gt;18|g&lt;&lt;14)^g&gt;&gt;&gt;3}s(d,l),d.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},d.prototype._update=function(g){for(var y,v=this._w,_=0|this._a,S=0|this._b,A=0|this._c,I=0|this._d,V=0|this._e,F=0|this._f,q=0|this._g,H=0|this._h,B=0;B&lt;16;++B)v[B]=g.readInt32BE(4*B);for(;B&lt;64;++B)v[B]=0|(((y=v[B-2])&gt;&gt;&gt;17|y&lt;&lt;15)^(y&gt;&gt;&gt;19|y&lt;&lt;13)^y&gt;&gt;&gt;10)+v[B-7]+x(v[B-15])+v[B-16];for(var K=0;K&lt;64;++K){var T=H+p(V)+f(V,F,q)+c[K]+v[K]|0,L=m(_)+h(_,S,A)|0;H=q,q=F,F=V,V=I+T|0,I=A,A=S,S=_,_=T+L|0}this._a=_+this._a|0,this._b=S+this._b|0,this._c=A+this._c|0,this._d=I+this._d|0,this._e=V+this._e|0,this._f=F+this._f|0,this._g=q+this._g|0,this._h=H+this._h|0},d.prototype._hash=function(){var g=u.allocUnsafe(32);return g.writeInt32BE(this._a,0),g.writeInt32BE(this._b,4),g.writeInt32BE(this._c,8),g.writeInt32BE(this._d,12),g.writeInt32BE(this._e,16),g.writeInt32BE(this._f,20),g.writeInt32BE(this._g,24),g.writeInt32BE(this._h,28),g},n.exports=d},{&quot;./hash&quot;:497,inherits:440,&quot;safe-buffer&quot;:494}],503:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;./sha512&quot;),u=t(&quot;./hash&quot;),c=t(&quot;safe-buffer&quot;).Buffer,a=new Array(160);function d(){this.init(),this._w=a,u.call(this,128,112)}s(d,l),d.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},d.prototype._hash=function(){var f=c.allocUnsafe(48);function h(m,p,x){f.writeInt32BE(m,x),f.writeInt32BE(p,x+4)}return h(this._ah,this._al,0),h(this._bh,this._bl,8),h(this._ch,this._cl,16),h(this._dh,this._dl,24),h(this._eh,this._el,32),h(this._fh,this._fl,40),f},n.exports=d},{&quot;./hash&quot;:497,&quot;./sha512&quot;:504,inherits:440,&quot;safe-buffer&quot;:494}],504:[function(t,n,o){var s=t(&quot;inherits&quot;),l=t(&quot;./hash&quot;),u=t(&quot;safe-buffer&quot;).Buffer,c=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function d(){this.init(),this._w=a,l.call(this,128,112)}function f(S,A,I){return I^S&amp;(A^I)}function h(S,A,I){return S&amp;A|I&amp;(S|A)}function m(S,A){return(S&gt;&gt;&gt;28|A&lt;&lt;4)^(A&gt;&gt;&gt;2|S&lt;&lt;30)^(A&gt;&gt;&gt;7|S&lt;&lt;25)}function p(S,A){return(S&gt;&gt;&gt;14|A&lt;&lt;18)^(S&gt;&gt;&gt;18|A&lt;&lt;14)^(A&gt;&gt;&gt;9|S&lt;&lt;23)}function x(S,A){return(S&gt;&gt;&gt;1|A&lt;&lt;31)^(S&gt;&gt;&gt;8|A&lt;&lt;24)^S&gt;&gt;&gt;7}function g(S,A){return(S&gt;&gt;&gt;1|A&lt;&lt;31)^(S&gt;&gt;&gt;8|A&lt;&lt;24)^(S&gt;&gt;&gt;7|A&lt;&lt;25)}function y(S,A){return(S&gt;&gt;&gt;19|A&lt;&lt;13)^(A&gt;&gt;&gt;29|S&lt;&lt;3)^S&gt;&gt;&gt;6}function v(S,A){return(S&gt;&gt;&gt;19|A&lt;&lt;13)^(A&gt;&gt;&gt;29|S&lt;&lt;3)^(S&gt;&gt;&gt;6|A&lt;&lt;26)}function _(S,A){return S&gt;&gt;&gt;0&lt;A&gt;&gt;&gt;0?1:0}s(d,l),d.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},d.prototype._update=function(S){for(var A=this._w,I=0|this._ah,V=0|this._bh,F=0|this._ch,q=0|this._dh,H=0|this._eh,B=0|this._fh,K=0|this._gh,T=0|this._hh,L=0|this._al,E=0|this._bl,j=0|this._cl,k=0|this._dl,N=0|this._el,C=0|this._fl,P=0|this._gl,D=0|this._hl,z=0;z&lt;32;z+=2)A[z]=S.readInt32BE(4*z),A[z+1]=S.readInt32BE(4*z+4);for(;z&lt;160;z+=2){var Y=A[z-30],Z=A[z-30+1],ne=x(Y,Z),U=g(Z,Y),J=y(Y=A[z-4],Z=A[z-4+1]),$=v(Z,Y),R=A[z-14],X=A[z-14+1],re=A[z-32],Q=A[z-32+1],te=U+X|0,ie=ne+R+_(te,U)|0;ie=(ie=ie+J+_(te=te+$|0,$)|0)+re+_(te=te+Q|0,Q)|0,A[z]=ie,A[z+1]=te}for(var de=0;de&lt;160;de+=2){ie=A[de],te=A[de+1];var ce=h(I,V,F),se=h(L,E,j),fe=m(I,L),le=m(L,I),ge=p(H,N),xe=p(N,H),pe=c[de],ue=c[de+1],we=f(H,B,K),ke=f(N,C,P),De=D+xe|0,Le=T+ge+_(De,D)|0;Le=(Le=(Le=Le+we+_(De=De+ke|0,ke)|0)+pe+_(De=De+ue|0,ue)|0)+ie+_(De=De+te|0,te)|0;var ze=le+se|0,Oe=fe+ce+_(ze,le)|0;T=K,D=P,K=B,P=C,B=H,C=N,H=q+Le+_(N=k+De|0,k)|0,q=F,k=j,F=V,j=E,V=I,E=L,I=Le+Oe+_(L=De+ze|0,De)|0}this._al=this._al+L|0,this._bl=this._bl+E|0,this._cl=this._cl+j|0,this._dl=this._dl+k|0,this._el=this._el+N|0,this._fl=this._fl+C|0,this._gl=this._gl+P|0,this._hl=this._hl+D|0,this._ah=this._ah+I+_(this._al,L)|0,this._bh=this._bh+V+_(this._bl,E)|0,this._ch=this._ch+F+_(this._cl,j)|0,this._dh=this._dh+q+_(this._dl,k)|0,this._eh=this._eh+H+_(this._el,N)|0,this._fh=this._fh+B+_(this._fl,C)|0,this._gh=this._gh+K+_(this._gl,P)|0,this._hh=this._hh+T+_(this._hl,D)|0},d.prototype._hash=function(){var S=u.allocUnsafe(64);function A(I,V,F){S.writeInt32BE(I,F),S.writeInt32BE(V,F+4)}return A(this._ah,this._al,0),A(this._bh,this._bl,8),A(this._ch,this._cl,16),A(this._dh,this._dl,24),A(this._eh,this._el,32),A(this._fh,this._fl,40),A(this._gh,this._gl,48),A(this._hh,this._hl,56),S},n.exports=d},{&quot;./hash&quot;:497,inherits:440,&quot;safe-buffer&quot;:494}],505:[function(t,n,o){n.exports=l;var s=t(&quot;events&quot;).EventEmitter;function l(){s.call(this)}t(&quot;inherits&quot;)(l,s),l.Readable=t(&quot;readable-stream/readable.js&quot;),l.Writable=t(&quot;readable-stream/writable.js&quot;),l.Duplex=t(&quot;readable-stream/duplex.js&quot;),l.Transform=t(&quot;readable-stream/transform.js&quot;),l.PassThrough=t(&quot;readable-stream/passthrough.js&quot;),l.Stream=l,l.prototype.pipe=function(u,c){var a=this;function d(y){u.writable&amp;&amp;u.write(y)===!1&amp;&amp;a.pause&amp;&amp;a.pause()}function f(){a.readable&amp;&amp;a.resume&amp;&amp;a.resume()}a.on(&quot;data&quot;,d),u.on(&quot;drain&quot;,f),u._isStdio||c&amp;&amp;c.end===!1||(a.on(&quot;end&quot;,m),a.on(&quot;close&quot;,p));var h=!1;function m(){h||(h=!0,u.end())}function p(){h||(h=!0,typeof u.destroy==&quot;function&quot;&amp;&amp;u.destroy())}function x(y){if(g(),s.listenerCount(this,&quot;error&quot;)===0)throw y}function g(){a.removeListener(&quot;data&quot;,d),u.removeListener(&quot;drain&quot;,f),a.removeListener(&quot;end&quot;,m),a.removeListener(&quot;close&quot;,p),a.removeListener(&quot;error&quot;,x),u.removeListener(&quot;error&quot;,x),a.removeListener(&quot;end&quot;,g),a.removeListener(&quot;close&quot;,g),u.removeListener(&quot;close&quot;,g)}return a.on(&quot;error&quot;,x),u.on(&quot;error&quot;,x),a.on(&quot;end&quot;,g),a.on(&quot;close&quot;,g),u.on(&quot;close&quot;,g),u.emit(&quot;pipe&quot;,a),u}},{events:422,inherits:440,&quot;readable-stream/duplex.js&quot;:507,&quot;readable-stream/passthrough.js&quot;:516,&quot;readable-stream/readable.js&quot;:517,&quot;readable-stream/transform.js&quot;:518,&quot;readable-stream/writable.js&quot;:519}],506:[function(t,n,o){var s={}.toString;n.exports=Array.isArray||function(l){return s.call(l)==&quot;[object Array]&quot;}},{}],507:[function(t,n,o){n.exports=t(&quot;./lib/_stream_duplex.js&quot;)},{&quot;./lib/_stream_duplex.js&quot;:508}],508:[function(t,n,o){var s=t(&quot;process-nextick-args&quot;),l=Object.keys||function(g){var y=[];for(var v in g)y.push(v);return y};n.exports=m;var u=Object.create(t(&quot;core-util-is&quot;));u.inherits=t(&quot;inherits&quot;);var c=t(&quot;./_stream_readable&quot;),a=t(&quot;./_stream_writable&quot;);u.inherits(m,c);for(var d=l(a.prototype),f=0;f&lt;d.length;f++){var h=d[f];m.prototype[h]||(m.prototype[h]=a.prototype[h])}function m(g){if(!(this instanceof m))return new m(g);c.call(this,g),a.call(this,g),g&amp;&amp;g.readable===!1&amp;&amp;(this.readable=!1),g&amp;&amp;g.writable===!1&amp;&amp;(this.writable=!1),this.allowHalfOpen=!0,g&amp;&amp;g.allowHalfOpen===!1&amp;&amp;(this.allowHalfOpen=!1),this.once(&quot;end&quot;,p)}function p(){this.allowHalfOpen||this._writableState.ended||s.nextTick(x,this)}function x(g){g.end()}Object.defineProperty(m.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,&quot;destroyed&quot;,{get:function(){return this._readableState!==void 0&amp;&amp;this._writableState!==void 0&amp;&amp;this._readableState.destroyed&amp;&amp;this._writableState.destroyed},set:function(g){this._readableState!==void 0&amp;&amp;this._writableState!==void 0&amp;&amp;(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),m.prototype._destroy=function(g,y){this.push(null),this.end(),s.nextTick(y,g)}},{&quot;./_stream_readable&quot;:510,&quot;./_stream_writable&quot;:512,&quot;core-util-is&quot;:383,inherits:440,&quot;process-nextick-args&quot;:466}],509:[function(t,n,o){n.exports=u;var s=t(&quot;./_stream_transform&quot;),l=Object.create(t(&quot;core-util-is&quot;));function u(c){if(!(this instanceof u))return new u(c);s.call(this,c)}l.inherits=t(&quot;inherits&quot;),l.inherits(u,s),u.prototype._transform=function(c,a,d){d(null,c)}},{&quot;./_stream_transform&quot;:511,&quot;core-util-is&quot;:383,inherits:440}],510:[function(t,n,o){(function(s,l){(function(){var u=t(&quot;process-nextick-args&quot;);n.exports=I;var c,a=t(&quot;isarray&quot;);I.ReadableState=A,t(&quot;events&quot;).EventEmitter;var d=function(D,z){return D.listeners(z).length},f=t(&quot;./internal/streams/stream&quot;),h=t(&quot;safe-buffer&quot;).Buffer,m=(l!==void 0?l:typeof window&lt;&quot;u&quot;?window:typeof self&lt;&quot;u&quot;?self:{}).Uint8Array||function(){},p=Object.create(t(&quot;core-util-is&quot;));p.inherits=t(&quot;inherits&quot;);var x=t(&quot;util&quot;),g=void 0;g=x&amp;&amp;x.debuglog?x.debuglog(&quot;stream&quot;):function(){};var y,v=t(&quot;./internal/streams/BufferList&quot;),_=t(&quot;./internal/streams/destroy&quot;);p.inherits(I,f);var S=[&quot;error&quot;,&quot;close&quot;,&quot;destroy&quot;,&quot;pause&quot;,&quot;resume&quot;];function A(D,z){D=D||{};var Y=z instanceof(c=c||t(&quot;./_stream_duplex&quot;));this.objectMode=!!D.objectMode,Y&amp;&amp;(this.objectMode=this.objectMode||!!D.readableObjectMode);var Z=D.highWaterMark,ne=D.readableHighWaterMark,U=this.objectMode?16:16384;this.highWaterMark=Z||Z===0?Z:Y&amp;&amp;(ne||ne===0)?ne:U,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=D.defaultEncoding||&quot;utf8&quot;,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,D.encoding&amp;&amp;(y||(y=t(&quot;string_decoder/&quot;).StringDecoder),this.decoder=new y(D.encoding),this.encoding=D.encoding)}function I(D){if(c=c||t(&quot;./_stream_duplex&quot;),!(this instanceof I))return new I(D);this._readableState=new A(D,this),this.readable=!0,D&amp;&amp;(typeof D.read==&quot;function&quot;&amp;&amp;(this._read=D.read),typeof D.destroy==&quot;function&quot;&amp;&amp;(this._destroy=D.destroy)),f.call(this)}function V(D,z,Y,Z,ne){var U,J=D._readableState;return z===null?(J.reading=!1,(function($,R){if(!R.ended){if(R.decoder){var X=R.decoder.end();X&amp;&amp;X.length&amp;&amp;(R.buffer.push(X),R.length+=R.objectMode?1:X.length)}R.ended=!0,H($)}})(D,J)):(ne||(U=(function($,R){var X;re=R,h.isBuffer(re)||re instanceof m||typeof R==&quot;string&quot;||R===void 0||$.objectMode||(X=new TypeError(&quot;Invalid non-string/buffer chunk&quot;));var re;return X})(J,z)),U?D.emit(&quot;error&quot;,U):J.objectMode||z&amp;&amp;z.length&gt;0?(typeof z==&quot;string&quot;||J.objectMode||Object.getPrototypeOf(z)===h.prototype||(z=(function($){return h.from($)})(z)),Z?J.endEmitted?D.emit(&quot;error&quot;,new Error(&quot;stream.unshift() after end event&quot;)):F(D,J,z,!0):J.ended?D.emit(&quot;error&quot;,new Error(&quot;stream.push() after EOF&quot;)):(J.reading=!1,J.decoder&amp;&amp;!Y?(z=J.decoder.write(z),J.objectMode||z.length!==0?F(D,J,z,!1):K(D,J)):F(D,J,z,!1))):Z||(J.reading=!1)),(function($){return!$.ended&amp;&amp;($.needReadable||$.length&lt;$.highWaterMark||$.length===0)})(J)}function F(D,z,Y,Z){z.flowing&amp;&amp;z.length===0&amp;&amp;!z.sync?(D.emit(&quot;data&quot;,Y),D.read(0)):(z.length+=z.objectMode?1:Y.length,Z?z.buffer.unshift(Y):z.buffer.push(Y),z.needReadable&amp;&amp;H(D)),K(D,z)}Object.defineProperty(I.prototype,&quot;destroyed&quot;,{get:function(){return this._readableState!==void 0&amp;&amp;this._readableState.destroyed},set:function(D){this._readableState&amp;&amp;(this._readableState.destroyed=D)}}),I.prototype.destroy=_.destroy,I.prototype._undestroy=_.undestroy,I.prototype._destroy=function(D,z){this.push(null),z(D)},I.prototype.push=function(D,z){var Y,Z=this._readableState;return Z.objectMode?Y=!0:typeof D==&quot;string&quot;&amp;&amp;((z=z||Z.defaultEncoding)!==Z.encoding&amp;&amp;(D=h.from(D,z),z=&quot;&quot;),Y=!0),V(this,D,z,!1,Y)},I.prototype.unshift=function(D){return V(this,D,null,!0,!1)},I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(D){return y||(y=t(&quot;string_decoder/&quot;).StringDecoder),this._readableState.decoder=new y(D),this._readableState.encoding=D,this};function q(D,z){return D&lt;=0||z.length===0&amp;&amp;z.ended?0:z.objectMode?1:D!=D?z.flowing&amp;&amp;z.length?z.buffer.head.data.length:z.length:(D&gt;z.highWaterMark&amp;&amp;(z.highWaterMark=(function(Y){return Y&gt;=8388608?Y=8388608:(Y--,Y|=Y&gt;&gt;&gt;1,Y|=Y&gt;&gt;&gt;2,Y|=Y&gt;&gt;&gt;4,Y|=Y&gt;&gt;&gt;8,Y|=Y&gt;&gt;&gt;16,Y++),Y})(D)),D&lt;=z.length?D:z.ended?z.length:(z.needReadable=!0,0))}function H(D){var z=D._readableState;z.needReadable=!1,z.emittedReadable||(g(&quot;emitReadable&quot;,z.flowing),z.emittedReadable=!0,z.sync?u.nextTick(B,D):B(D))}function B(D){g(&quot;emit readable&quot;),D.emit(&quot;readable&quot;),j(D)}function K(D,z){z.readingMore||(z.readingMore=!0,u.nextTick(T,D,z))}function T(D,z){for(var Y=z.length;!z.reading&amp;&amp;!z.flowing&amp;&amp;!z.ended&amp;&amp;z.length&lt;z.highWaterMark&amp;&amp;(g(&quot;maybeReadMore read 0&quot;),D.read(0),Y!==z.length);)Y=z.length;z.readingMore=!1}function L(D){g(&quot;readable nexttick read 0&quot;),D.read(0)}function E(D,z){z.reading||(g(&quot;resume read 0&quot;),D.read(0)),z.resumeScheduled=!1,z.awaitDrain=0,D.emit(&quot;resume&quot;),j(D),z.flowing&amp;&amp;!z.reading&amp;&amp;D.read(0)}function j(D){var z=D._readableState;for(g(&quot;flow&quot;,z.flowing);z.flowing&amp;&amp;D.read()!==null;);}function k(D,z){return z.length===0?null:(z.objectMode?Y=z.buffer.shift():!D||D&gt;=z.length?(Y=z.decoder?z.buffer.join(&quot;&quot;):z.buffer.length===1?z.buffer.head.data:z.buffer.concat(z.length),z.buffer.clear()):Y=(function(Z,ne,U){var J;return Z&lt;ne.head.data.length?(J=ne.head.data.slice(0,Z),ne.head.data=ne.head.data.slice(Z)):J=Z===ne.head.data.length?ne.shift():U?(function($,R){var X=R.head,re=1,Q=X.data;for($-=Q.length;X=X.next;){var te=X.data,ie=$&gt;te.length?te.length:$;if(ie===te.length?Q+=te:Q+=te.slice(0,$),($-=ie)===0){ie===te.length?(++re,X.next?R.head=X.next:R.head=R.tail=null):(R.head=X,X.data=te.slice(ie));break}++re}return R.length-=re,Q})(Z,ne):(function($,R){var X=h.allocUnsafe($),re=R.head,Q=1;for(re.data.copy(X),$-=re.data.length;re=re.next;){var te=re.data,ie=$&gt;te.length?te.length:$;if(te.copy(X,X.length-$,0,ie),($-=ie)===0){ie===te.length?(++Q,re.next?R.head=re.next:R.head=R.tail=null):(R.head=re,re.data=te.slice(ie));break}++Q}return R.length-=Q,X})(Z,ne),J})(D,z.buffer,z.decoder),Y);var Y}function N(D){var z=D._readableState;if(z.length&gt;0)throw new Error(&#039;&quot;endReadable()&quot; called on non-empty stream&#039;);z.endEmitted||(z.ended=!0,u.nextTick(C,z,D))}function C(D,z){D.endEmitted||D.length!==0||(D.endEmitted=!0,z.readable=!1,z.emit(&quot;end&quot;))}function P(D,z){for(var Y=0,Z=D.length;Y&lt;Z;Y++)if(D[Y]===z)return Y;return-1}I.prototype.read=function(D){g(&quot;read&quot;,D),D=parseInt(D,10);var z=this._readableState,Y=D;if(D!==0&amp;&amp;(z.emittedReadable=!1),D===0&amp;&amp;z.needReadable&amp;&amp;(z.length&gt;=z.highWaterMark||z.ended))return g(&quot;read: emitReadable&quot;,z.length,z.ended),z.length===0&amp;&amp;z.ended?N(this):H(this),null;if((D=q(D,z))===0&amp;&amp;z.ended)return z.length===0&amp;&amp;N(this),null;var Z,ne=z.needReadable;return g(&quot;need readable&quot;,ne),(z.length===0||z.length-D&lt;z.highWaterMark)&amp;&amp;g(&quot;length less than watermark&quot;,ne=!0),z.ended||z.reading?g(&quot;reading or ended&quot;,ne=!1):ne&amp;&amp;(g(&quot;do read&quot;),z.reading=!0,z.sync=!0,z.length===0&amp;&amp;(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(D=q(Y,z))),(Z=D&gt;0?k(D,z):null)===null?(z.needReadable=!0,D=0):z.length-=D,z.length===0&amp;&amp;(z.ended||(z.needReadable=!0),Y!==D&amp;&amp;z.ended&amp;&amp;N(this)),Z!==null&amp;&amp;this.emit(&quot;data&quot;,Z),Z},I.prototype._read=function(D){this.emit(&quot;error&quot;,new Error(&quot;_read() is not implemented&quot;))},I.prototype.pipe=function(D,z){var Y=this,Z=this._readableState;switch(Z.pipesCount){case 0:Z.pipes=D;break;case 1:Z.pipes=[Z.pipes,D];break;default:Z.pipes.push(D)}Z.pipesCount+=1,g(&quot;pipe count=%d opts=%j&quot;,Z.pipesCount,z);var ne=(!z||z.end!==!1)&amp;&amp;D!==s.stdout&amp;&amp;D!==s.stderr?J:de;function U(ce,se){g(&quot;onunpipe&quot;),ce===Y&amp;&amp;se&amp;&amp;se.hasUnpiped===!1&amp;&amp;(se.hasUnpiped=!0,g(&quot;cleanup&quot;),D.removeListener(&quot;close&quot;,te),D.removeListener(&quot;finish&quot;,ie),D.removeListener(&quot;drain&quot;,$),D.removeListener(&quot;error&quot;,Q),D.removeListener(&quot;unpipe&quot;,U),Y.removeListener(&quot;end&quot;,J),Y.removeListener(&quot;end&quot;,de),Y.removeListener(&quot;data&quot;,re),R=!0,!Z.awaitDrain||D._writableState&amp;&amp;!D._writableState.needDrain||$())}function J(){g(&quot;onend&quot;),D.end()}Z.endEmitted?u.nextTick(ne):Y.once(&quot;end&quot;,ne),D.on(&quot;unpipe&quot;,U);var $=(function(ce){return function(){var se=ce._readableState;g(&quot;pipeOnDrain&quot;,se.awaitDrain),se.awaitDrain&amp;&amp;se.awaitDrain--,se.awaitDrain===0&amp;&amp;d(ce,&quot;data&quot;)&amp;&amp;(se.flowing=!0,j(ce))}})(Y);D.on(&quot;drain&quot;,$);var R=!1,X=!1;function re(ce){g(&quot;ondata&quot;),X=!1,D.write(ce)!==!1||X||((Z.pipesCount===1&amp;&amp;Z.pipes===D||Z.pipesCount&gt;1&amp;&amp;P(Z.pipes,D)!==-1)&amp;&amp;!R&amp;&amp;(g(&quot;false write response, pause&quot;,Z.awaitDrain),Z.awaitDrain++,X=!0),Y.pause())}function Q(ce){g(&quot;onerror&quot;,ce),de(),D.removeListener(&quot;error&quot;,Q),d(D,&quot;error&quot;)===0&amp;&amp;D.emit(&quot;error&quot;,ce)}function te(){D.removeListener(&quot;finish&quot;,ie),de()}function ie(){g(&quot;onfinish&quot;),D.removeListener(&quot;close&quot;,te),de()}function de(){g(&quot;unpipe&quot;),Y.unpipe(D)}return Y.on(&quot;data&quot;,re),(function(ce,se,fe){if(typeof ce.prependListener==&quot;function&quot;)return ce.prependListener(se,fe);ce._events&amp;&amp;ce._events[se]?a(ce._events[se])?ce._events[se].unshift(fe):ce._events[se]=[fe,ce._events[se]]:ce.on(se,fe)})(D,&quot;error&quot;,Q),D.once(&quot;close&quot;,te),D.once(&quot;finish&quot;,ie),D.emit(&quot;pipe&quot;,Y),Z.flowing||(g(&quot;pipe resume&quot;),Y.resume()),D},I.prototype.unpipe=function(D){var z=this._readableState,Y={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return D&amp;&amp;D!==z.pipes||(D||(D=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,D&amp;&amp;D.emit(&quot;unpipe&quot;,this,Y)),this;if(!D){var Z=z.pipes,ne=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var U=0;U&lt;ne;U++)Z[U].emit(&quot;unpipe&quot;,this,{hasUnpiped:!1});return this}var J=P(z.pipes,D);return J===-1||(z.pipes.splice(J,1),z.pipesCount-=1,z.pipesCount===1&amp;&amp;(z.pipes=z.pipes[0]),D.emit(&quot;unpipe&quot;,this,Y)),this},I.prototype.on=function(D,z){var Y=f.prototype.on.call(this,D,z);if(D===&quot;data&quot;)this._readableState.flowing!==!1&amp;&amp;this.resume();else if(D===&quot;readable&quot;){var Z=this._readableState;Z.endEmitted||Z.readableListening||(Z.readableListening=Z.needReadable=!0,Z.emittedReadable=!1,Z.reading?Z.length&amp;&amp;H(this):u.nextTick(L,this))}return Y},I.prototype.addListener=I.prototype.on,I.prototype.resume=function(){var D=this._readableState;return D.flowing||(g(&quot;resume&quot;),D.flowing=!0,(function(z,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,u.nextTick(E,z,Y))})(this,D)),this},I.prototype.pause=function(){return g(&quot;call pause flowing=%j&quot;,this._readableState.flowing),this._readableState.flowing!==!1&amp;&amp;(g(&quot;pause&quot;),this._readableState.flowing=!1,this.emit(&quot;pause&quot;)),this},I.prototype.wrap=function(D){var z=this,Y=this._readableState,Z=!1;for(var ne in D.on(&quot;end&quot;,(function(){if(g(&quot;wrapped end&quot;),Y.decoder&amp;&amp;!Y.ended){var J=Y.decoder.end();J&amp;&amp;J.length&amp;&amp;z.push(J)}z.push(null)})),D.on(&quot;data&quot;,(function(J){g(&quot;wrapped data&quot;),Y.decoder&amp;&amp;(J=Y.decoder.write(J)),Y.objectMode&amp;&amp;J==null||(Y.objectMode||J&amp;&amp;J.length)&amp;&amp;(z.push(J)||(Z=!0,D.pause()))})),D)this[ne]===void 0&amp;&amp;typeof D[ne]==&quot;function&quot;&amp;&amp;(this[ne]=(function(J){return function(){return D[J].apply(D,arguments)}})(ne));for(var U=0;U&lt;S.length;U++)D.on(S[U],this.emit.bind(this,S[U]));return this._read=function(J){g(&quot;wrapped _read&quot;,J),Z&amp;&amp;(Z=!1,D.resume())},this},Object.defineProperty(I.prototype,&quot;readableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),I._fromList=k}).call(this)}).call(this,t(&quot;_process&quot;),typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{&quot;./_stream_duplex&quot;:508,&quot;./internal/streams/BufferList&quot;:513,&quot;./internal/streams/destroy&quot;:514,&quot;./internal/streams/stream&quot;:515,_process:467,&quot;core-util-is&quot;:383,events:422,inherits:440,isarray:506,&quot;process-nextick-args&quot;:466,&quot;safe-buffer&quot;:520,&quot;string_decoder/&quot;:521,util:188}],511:[function(t,n,o){n.exports=c;var s=t(&quot;./_stream_duplex&quot;),l=Object.create(t(&quot;core-util-is&quot;));function u(f,h){var m=this._transformState;m.transforming=!1;var p=m.writecb;if(!p)return this.emit(&quot;error&quot;,new Error(&quot;write callback called multiple times&quot;));m.writechunk=null,m.writecb=null,h!=null&amp;&amp;this.push(h),p(f);var x=this._readableState;x.reading=!1,(x.needReadable||x.length&lt;x.highWaterMark)&amp;&amp;this._read(x.highWaterMark)}function c(f){if(!(this instanceof c))return new c(f);s.call(this,f),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&amp;&amp;(typeof f.transform==&quot;function&quot;&amp;&amp;(this._transform=f.transform),typeof f.flush==&quot;function&quot;&amp;&amp;(this._flush=f.flush)),this.on(&quot;prefinish&quot;,a)}function a(){var f=this;typeof this._flush==&quot;function&quot;?this._flush((function(h,m){d(f,h,m)})):d(this,null,null)}function d(f,h,m){if(h)return f.emit(&quot;error&quot;,h);if(m!=null&amp;&amp;f.push(m),f._writableState.length)throw new Error(&quot;Calling transform done when ws.length != 0&quot;);if(f._transformState.transforming)throw new Error(&quot;Calling transform done when still transforming&quot;);return f.push(null)}l.inherits=t(&quot;inherits&quot;),l.inherits(c,s),c.prototype.push=function(f,h){return this._transformState.needTransform=!1,s.prototype.push.call(this,f,h)},c.prototype._transform=function(f,h,m){throw new Error(&quot;_transform() is not implemented&quot;)},c.prototype._write=function(f,h,m){var p=this._transformState;if(p.writecb=m,p.writechunk=f,p.writeencoding=h,!p.transforming){var x=this._readableState;(p.needTransform||x.needReadable||x.length&lt;x.highWaterMark)&amp;&amp;this._read(x.highWaterMark)}},c.prototype._read=function(f){var h=this._transformState;h.writechunk!==null&amp;&amp;h.writecb&amp;&amp;!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},c.prototype._destroy=function(f,h){var m=this;s.prototype._destroy.call(this,f,(function(p){h(p),m.emit(&quot;close&quot;)}))}},{&quot;./_stream_duplex&quot;:508,&quot;core-util-is&quot;:383,inherits:440}],512:[function(t,n,o){(function(s,l,u){(function(){var c=t(&quot;process-nextick-args&quot;);function a(K){var T=this;this.next=null,this.entry=null,this.finish=function(){(function(L,E,j){var k=L.entry;for(L.entry=null;k;){var N=k.callback;E.pendingcb--,N(j),k=k.next}E.corkedRequestsFree.next=L})(T,K)}}n.exports=A;var d,f=!s.browser&amp;&amp;[&quot;v0.10&quot;,&quot;v0.9.&quot;].indexOf(s.version.slice(0,5))&gt;-1?u:c.nextTick;A.WritableState=S;var h=Object.create(t(&quot;core-util-is&quot;));h.inherits=t(&quot;inherits&quot;);var m={deprecate:t(&quot;util-deprecate&quot;)},p=t(&quot;./internal/streams/stream&quot;),x=t(&quot;safe-buffer&quot;).Buffer,g=(l!==void 0?l:typeof window&lt;&quot;u&quot;?window:typeof self&lt;&quot;u&quot;?self:{}).Uint8Array||function(){},y,v=t(&quot;./internal/streams/destroy&quot;);function _(){}function S(K,T){d=d||t(&quot;./_stream_duplex&quot;),K=K||{};var L=T instanceof d;this.objectMode=!!K.objectMode,L&amp;&amp;(this.objectMode=this.objectMode||!!K.writableObjectMode);var E=K.highWaterMark,j=K.writableHighWaterMark,k=this.objectMode?16:16384;this.highWaterMark=E||E===0?E:L&amp;&amp;(j||j===0)?j:k,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var N=K.decodeStrings===!1;this.decodeStrings=!N,this.defaultEncoding=K.defaultEncoding||&quot;utf8&quot;,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(C){(function(P,D){var z=P._writableState,Y=z.sync,Z=z.writecb;if((function(U){U.writing=!1,U.writecb=null,U.length-=U.writelen,U.writelen=0})(z),D)(function(U,J,$,R,X){--J.pendingcb,$?(c.nextTick(X,R),c.nextTick(B,U,J),U._writableState.errorEmitted=!0,U.emit(&quot;error&quot;,R)):(X(R),U._writableState.errorEmitted=!0,U.emit(&quot;error&quot;,R),B(U,J))})(P,z,Y,D,Z);else{var ne=q(z);ne||z.corked||z.bufferProcessing||!z.bufferedRequest||F(P,z),Y?f(V,P,z,ne,Z):V(P,z,ne,Z)}})(T,C)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function A(K){if(d=d||t(&quot;./_stream_duplex&quot;),!(y.call(A,this)||this instanceof d))return new A(K);this._writableState=new S(K,this),this.writable=!0,K&amp;&amp;(typeof K.write==&quot;function&quot;&amp;&amp;(this._write=K.write),typeof K.writev==&quot;function&quot;&amp;&amp;(this._writev=K.writev),typeof K.destroy==&quot;function&quot;&amp;&amp;(this._destroy=K.destroy),typeof K.final==&quot;function&quot;&amp;&amp;(this._final=K.final)),p.call(this)}function I(K,T,L,E,j,k,N){T.writelen=E,T.writecb=N,T.writing=!0,T.sync=!0,L?K._writev(j,T.onwrite):K._write(j,k,T.onwrite),T.sync=!1}function V(K,T,L,E){L||(function(j,k){k.length===0&amp;&amp;k.needDrain&amp;&amp;(k.needDrain=!1,j.emit(&quot;drain&quot;))})(K,T),T.pendingcb--,E(),B(K,T)}function F(K,T){T.bufferProcessing=!0;var L=T.bufferedRequest;if(K._writev&amp;&amp;L&amp;&amp;L.next){var E=T.bufferedRequestCount,j=new Array(E),k=T.corkedRequestsFree;k.entry=L;for(var N=0,C=!0;L;)j[N]=L,L.isBuf||(C=!1),L=L.next,N+=1;j.allBuffers=C,I(K,T,!0,T.length,j,&quot;&quot;,k.finish),T.pendingcb++,T.lastBufferedRequest=null,k.next?(T.corkedRequestsFree=k.next,k.next=null):T.corkedRequestsFree=new a(T),T.bufferedRequestCount=0}else{for(;L;){var P=L.chunk,D=L.encoding,z=L.callback;if(I(K,T,!1,T.objectMode?1:P.length,P,D,z),L=L.next,T.bufferedRequestCount--,T.writing)break}L===null&amp;&amp;(T.lastBufferedRequest=null)}T.bufferedRequest=L,T.bufferProcessing=!1}function q(K){return K.ending&amp;&amp;K.length===0&amp;&amp;K.bufferedRequest===null&amp;&amp;!K.finished&amp;&amp;!K.writing}function H(K,T){K._final((function(L){T.pendingcb--,L&amp;&amp;K.emit(&quot;error&quot;,L),T.prefinished=!0,K.emit(&quot;prefinish&quot;),B(K,T)}))}function B(K,T){var L=q(T);return L&amp;&amp;((function(E,j){j.prefinished||j.finalCalled||(typeof E._final==&quot;function&quot;?(j.pendingcb++,j.finalCalled=!0,c.nextTick(H,E,j)):(j.prefinished=!0,E.emit(&quot;prefinish&quot;)))})(K,T),T.pendingcb===0&amp;&amp;(T.finished=!0,K.emit(&quot;finish&quot;))),L}h.inherits(A,p),S.prototype.getBuffer=function(){for(var K=this.bufferedRequest,T=[];K;)T.push(K),K=K.next;return T},(function(){try{Object.defineProperty(S.prototype,&quot;buffer&quot;,{get:m.deprecate((function(){return this.getBuffer()}),&quot;_writableState.buffer is deprecated. Use _writableState.getBuffer instead.&quot;,&quot;DEP0003&quot;)})}catch{}})(),typeof Symbol==&quot;function&quot;&amp;&amp;Symbol.hasInstance&amp;&amp;typeof Function.prototype[Symbol.hasInstance]==&quot;function&quot;?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(K){return!!y.call(this,K)||this===A&amp;&amp;K&amp;&amp;K._writableState instanceof S}})):y=function(K){return K instanceof this},A.prototype.pipe=function(){this.emit(&quot;error&quot;,new Error(&quot;Cannot pipe, not readable&quot;))},A.prototype.write=function(K,T,L){var E,j=this._writableState,k=!1,N=!j.objectMode&amp;&amp;(E=K,x.isBuffer(E)||E instanceof g);return N&amp;&amp;!x.isBuffer(K)&amp;&amp;(K=(function(C){return x.from(C)})(K)),typeof T==&quot;function&quot;&amp;&amp;(L=T,T=null),N?T=&quot;buffer&quot;:T||(T=j.defaultEncoding),typeof L!=&quot;function&quot;&amp;&amp;(L=_),j.ended?(function(C,P){var D=new Error(&quot;write after end&quot;);C.emit(&quot;error&quot;,D),c.nextTick(P,D)})(this,L):(N||(function(C,P,D,z){var Y=!0,Z=!1;return D===null?Z=new TypeError(&quot;May not write null values to stream&quot;):typeof D==&quot;string&quot;||D===void 0||P.objectMode||(Z=new TypeError(&quot;Invalid non-string/buffer chunk&quot;)),Z&amp;&amp;(C.emit(&quot;error&quot;,Z),c.nextTick(z,Z),Y=!1),Y})(this,j,K,L))&amp;&amp;(j.pendingcb++,k=(function(C,P,D,z,Y,Z){if(!D){var ne=(function(R,X,re){return R.objectMode||R.decodeStrings===!1||typeof X!=&quot;string&quot;||(X=x.from(X,re)),X})(P,z,Y);z!==ne&amp;&amp;(D=!0,Y=&quot;buffer&quot;,z=ne)}var U=P.objectMode?1:z.length;P.length+=U;var J=P.length&lt;P.highWaterMark;if(J||(P.needDrain=!0),P.writing||P.corked){var $=P.lastBufferedRequest;P.lastBufferedRequest={chunk:z,encoding:Y,isBuf:D,callback:Z,next:null},$?$.next=P.lastBufferedRequest:P.bufferedRequest=P.lastBufferedRequest,P.bufferedRequestCount+=1}else I(C,P,!1,U,z,Y,Z);return J})(this,j,N,K,T,L)),k},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var K=this._writableState;K.corked&amp;&amp;(K.corked--,K.writing||K.corked||K.bufferProcessing||!K.bufferedRequest||F(this,K))},A.prototype.setDefaultEncoding=function(K){if(typeof K==&quot;string&quot;&amp;&amp;(K=K.toLowerCase()),!([&quot;hex&quot;,&quot;utf8&quot;,&quot;utf-8&quot;,&quot;ascii&quot;,&quot;binary&quot;,&quot;base64&quot;,&quot;ucs2&quot;,&quot;ucs-2&quot;,&quot;utf16le&quot;,&quot;utf-16le&quot;,&quot;raw&quot;].indexOf((K+&quot;&quot;).toLowerCase())&gt;-1))throw new TypeError(&quot;Unknown encoding: &quot;+K);return this._writableState.defaultEncoding=K,this},Object.defineProperty(A.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(K,T,L){L(new Error(&quot;_write() is not implemented&quot;))},A.prototype._writev=null,A.prototype.end=function(K,T,L){var E=this._writableState;typeof K==&quot;function&quot;?(L=K,K=null,T=null):typeof T==&quot;function&quot;&amp;&amp;(L=T,T=null),K!=null&amp;&amp;this.write(K,T),E.corked&amp;&amp;(E.corked=1,this.uncork()),E.ending||(function(j,k,N){k.ending=!0,B(j,k),N&amp;&amp;(k.finished?c.nextTick(N):j.once(&quot;finish&quot;,N)),k.ended=!0,j.writable=!1})(this,E,L)},Object.defineProperty(A.prototype,&quot;destroyed&quot;,{get:function(){return this._writableState!==void 0&amp;&amp;this._writableState.destroyed},set:function(K){this._writableState&amp;&amp;(this._writableState.destroyed=K)}}),A.prototype.destroy=v.destroy,A.prototype._undestroy=v.undestroy,A.prototype._destroy=function(K,T){this.end(),T(K)}}).call(this)}).call(this,t(&quot;_process&quot;),typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{},t(&quot;timers&quot;).setImmediate)},{&quot;./_stream_duplex&quot;:508,&quot;./internal/streams/destroy&quot;:514,&quot;./internal/streams/stream&quot;:515,_process:467,&quot;core-util-is&quot;:383,inherits:440,&quot;process-nextick-args&quot;:466,&quot;safe-buffer&quot;:520,timers:523,&quot;util-deprecate&quot;:524}],513:[function(t,n,o){var s=t(&quot;safe-buffer&quot;).Buffer,l=t(&quot;util&quot;);n.exports=(function(){function u(){(function(c,a){if(!(c instanceof a))throw new TypeError(&quot;Cannot call a class as a function&quot;)})(this,u),this.head=null,this.tail=null,this.length=0}return u.prototype.push=function(c){var a={data:c,next:null};this.length&gt;0?this.tail.next=a:this.head=a,this.tail=a,++this.length},u.prototype.unshift=function(c){var a={data:c,next:this.head};this.length===0&amp;&amp;(this.tail=a),this.head=a,++this.length},u.prototype.shift=function(){if(this.length!==0){var c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}},u.prototype.clear=function(){this.head=this.tail=null,this.length=0},u.prototype.join=function(c){if(this.length===0)return&quot;&quot;;for(var a=this.head,d=&quot;&quot;+a.data;a=a.next;)d+=c+a.data;return d},u.prototype.concat=function(c){if(this.length===0)return s.alloc(0);for(var a,d,f,h=s.allocUnsafe(c&gt;&gt;&gt;0),m=this.head,p=0;m;)a=m.data,d=h,f=p,a.copy(d,f),p+=m.data.length,m=m.next;return h},u})(),l&amp;&amp;l.inspect&amp;&amp;l.inspect.custom&amp;&amp;(n.exports.prototype[l.inspect.custom]=function(){var u=l.inspect({length:this.length});return this.constructor.name+&quot; &quot;+u})},{&quot;safe-buffer&quot;:520,util:188}],514:[function(t,n,o){var s=t(&quot;process-nextick-args&quot;);function l(u,c){u.emit(&quot;error&quot;,c)}n.exports={destroy:function(u,c){var a=this,d=this._readableState&amp;&amp;this._readableState.destroyed,f=this._writableState&amp;&amp;this._writableState.destroyed;return d||f?(c?c(u):u&amp;&amp;(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,s.nextTick(l,this,u)):s.nextTick(l,this,u)),this):(this._readableState&amp;&amp;(this._readableState.destroyed=!0),this._writableState&amp;&amp;(this._writableState.destroyed=!0),this._destroy(u||null,(function(h){!c&amp;&amp;h?a._writableState?a._writableState.errorEmitted||(a._writableState.errorEmitted=!0,s.nextTick(l,a,h)):s.nextTick(l,a,h):c&amp;&amp;c(h)})),this)},undestroy:function(){this._readableState&amp;&amp;(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&amp;&amp;(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{&quot;process-nextick-args&quot;:466}],515:[function(t,n,o){arguments[4][490][0].apply(o,arguments)},{dup:490,events:422}],516:[function(t,n,o){n.exports=t(&quot;./readable&quot;).PassThrough},{&quot;./readable&quot;:517}],517:[function(t,n,o){(o=n.exports=t(&quot;./lib/_stream_readable.js&quot;)).Stream=o,o.Readable=o,o.Writable=t(&quot;./lib/_stream_writable.js&quot;),o.Duplex=t(&quot;./lib/_stream_duplex.js&quot;),o.Transform=t(&quot;./lib/_stream_transform.js&quot;),o.PassThrough=t(&quot;./lib/_stream_passthrough.js&quot;)},{&quot;./lib/_stream_duplex.js&quot;:508,&quot;./lib/_stream_passthrough.js&quot;:509,&quot;./lib/_stream_readable.js&quot;:510,&quot;./lib/_stream_transform.js&quot;:511,&quot;./lib/_stream_writable.js&quot;:512}],518:[function(t,n,o){n.exports=t(&quot;./readable&quot;).Transform},{&quot;./readable&quot;:517}],519:[function(t,n,o){n.exports=t(&quot;./lib/_stream_writable.js&quot;)},{&quot;./lib/_stream_writable.js&quot;:512}],520:[function(t,n,o){arguments[4][217][0].apply(o,arguments)},{buffer:220,dup:217}],521:[function(t,n,o){arguments[4][218][0].apply(o,arguments)},{dup:218,&quot;safe-buffer&quot;:520}],522:[function(t,n,o){arguments[4][218][0].apply(o,arguments)},{dup:218,&quot;safe-buffer&quot;:494}],523:[function(t,n,o){(function(s,l){(function(){var u=t(&quot;process/browser.js&quot;).nextTick,c=Function.prototype.apply,a=Array.prototype.slice,d={},f=0;function h(m,p){this._id=m,this._clearFn=p}o.setTimeout=function(){return new h(c.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new h(c.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(m){m.close()},h.prototype.unref=h.prototype.ref=function(){},h.prototype.close=function(){this._clearFn.call(window,this._id)},o.enroll=function(m,p){clearTimeout(m._idleTimeoutId),m._idleTimeout=p},o.unenroll=function(m){clearTimeout(m._idleTimeoutId),m._idleTimeout=-1},o._unrefActive=o.active=function(m){clearTimeout(m._idleTimeoutId);var p=m._idleTimeout;p&gt;=0&amp;&amp;(m._idleTimeoutId=setTimeout((function(){m._onTimeout&amp;&amp;m._onTimeout()}),p))},o.setImmediate=typeof s==&quot;function&quot;?s:function(m){var p=f++,x=!(arguments.length&lt;2)&amp;&amp;a.call(arguments,1);return d[p]=!0,u((function(){d[p]&amp;&amp;(x?m.apply(null,x):m.call(null),o.clearImmediate(p))})),p},o.clearImmediate=typeof l==&quot;function&quot;?l:function(m){delete d[m]}}).call(this)}).call(this,t(&quot;timers&quot;).setImmediate,t(&quot;timers&quot;).clearImmediate)},{&quot;process/browser.js&quot;:467,timers:523}],524:[function(t,n,o){(function(s){(function(){function l(u){try{if(!s.localStorage)return!1}catch{return!1}var c=s.localStorage[u];return c!=null&amp;&amp;String(c).toLowerCase()===&quot;true&quot;}n.exports=function(u,c){if(l(&quot;noDeprecation&quot;))return u;var a=!1;return function(){if(!a){if(l(&quot;throwDeprecation&quot;))throw new Error(c);l(&quot;traceDeprecation&quot;)?console.trace(c):console.warn(c),a=!0}return u.apply(this,arguments)}}}).call(this)}).call(this,typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{}],525:[function(t,n,o){typeof Object.create==&quot;function&quot;?n.exports=function(s,l){s.super_=l,s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:n.exports=function(s,l){s.super_=l;var u=function(){};u.prototype=l.prototype,s.prototype=new u,s.prototype.constructor=s}},{}],526:[function(t,n,o){n.exports=function(s){return s&amp;&amp;typeof s==&quot;object&quot;&amp;&amp;typeof s.copy==&quot;function&quot;&amp;&amp;typeof s.fill==&quot;function&quot;&amp;&amp;typeof s.readUInt8==&quot;function&quot;}},{}],527:[function(t,n,o){(function(s,l){(function(){var u=/%[sdj%]/g;o.format=function(j){if(!S(j)){for(var k=[],N=0;N&lt;arguments.length;N++)k.push(d(arguments[N]));return k.join(&quot; &quot;)}N=1;for(var C=arguments,P=C.length,D=String(j).replace(u,(function(Y){if(Y===&quot;%%&quot;)return&quot;%&quot;;if(N&gt;=P)return Y;switch(Y){case&quot;%s&quot;:return String(C[N++]);case&quot;%d&quot;:return Number(C[N++]);case&quot;%j&quot;:try{return JSON.stringify(C[N++])}catch{return&quot;[Circular]&quot;}default:return Y}})),z=C[N];N&lt;P;z=C[++N])v(z)||!V(z)?D+=&quot; &quot;+z:D+=&quot; &quot;+d(z);return D},o.deprecate=function(j,k){if(A(l.process))return function(){return o.deprecate(j,k).apply(this,arguments)};if(s.noDeprecation===!0)return j;var N=!1;return function(){if(!N){if(s.throwDeprecation)throw new Error(k);s.traceDeprecation?console.trace(k):console.error(k),N=!0}return j.apply(this,arguments)}};var c,a={};function d(j,k){var N={seen:[],stylize:h};return arguments.length&gt;=3&amp;&amp;(N.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(N.colors=arguments[3]),y(k)?N.showHidden=k:k&amp;&amp;o._extend(N,k),A(N.showHidden)&amp;&amp;(N.showHidden=!1),A(N.depth)&amp;&amp;(N.depth=2),A(N.colors)&amp;&amp;(N.colors=!1),A(N.customInspect)&amp;&amp;(N.customInspect=!0),N.colors&amp;&amp;(N.stylize=f),m(N,j,N.depth)}function f(j,k){var N=d.styles[k];return N?&quot;\x1B[&quot;+d.colors[N][0]+&quot;m&quot;+j+&quot;\x1B[&quot;+d.colors[N][1]+&quot;m&quot;:j}function h(j,k){return j}function m(j,k,N){if(j.customInspect&amp;&amp;k&amp;&amp;H(k.inspect)&amp;&amp;k.inspect!==o.inspect&amp;&amp;(!k.constructor||k.constructor.prototype!==k)){var C=k.inspect(N,j);return S(C)||(C=m(j,C,N)),C}var P=(function($,R){if(A(R))return $.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(S(R)){var X=&quot;&#039;&quot;+JSON.stringify(R).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/&#039;/g,&quot;\\&#039;&quot;).replace(/\\&quot;/g,&#039;&quot;&#039;)+&quot;&#039;&quot;;return $.stylize(X,&quot;string&quot;)}if(_(R))return $.stylize(&quot;&quot;+R,&quot;number&quot;);if(y(R))return $.stylize(&quot;&quot;+R,&quot;boolean&quot;);if(v(R))return $.stylize(&quot;null&quot;,&quot;null&quot;)})(j,k);if(P)return P;var D=Object.keys(k),z=(function($){var R={};return $.forEach((function(X,re){R[X]=!0})),R})(D);if(j.showHidden&amp;&amp;(D=Object.getOwnPropertyNames(k)),q(k)&amp;&amp;(D.indexOf(&quot;message&quot;)&gt;=0||D.indexOf(&quot;description&quot;)&gt;=0))return p(k);if(D.length===0){if(H(k)){var Y=k.name?&quot;: &quot;+k.name:&quot;&quot;;return j.stylize(&quot;[Function&quot;+Y+&quot;]&quot;,&quot;special&quot;)}if(I(k))return j.stylize(RegExp.prototype.toString.call(k),&quot;regexp&quot;);if(F(k))return j.stylize(Date.prototype.toString.call(k),&quot;date&quot;);if(q(k))return p(k)}var Z,ne=&quot;&quot;,U=!1,J=[&quot;{&quot;,&quot;}&quot;];return g(k)&amp;&amp;(U=!0,J=[&quot;[&quot;,&quot;]&quot;]),H(k)&amp;&amp;(ne=&quot; [Function&quot;+(k.name?&quot;: &quot;+k.name:&quot;&quot;)+&quot;]&quot;),I(k)&amp;&amp;(ne=&quot; &quot;+RegExp.prototype.toString.call(k)),F(k)&amp;&amp;(ne=&quot; &quot;+Date.prototype.toUTCString.call(k)),q(k)&amp;&amp;(ne=&quot; &quot;+p(k)),D.length!==0||U&amp;&amp;k.length!=0?N&lt;0?I(k)?j.stylize(RegExp.prototype.toString.call(k),&quot;regexp&quot;):j.stylize(&quot;[Object]&quot;,&quot;special&quot;):(j.seen.push(k),Z=U?(function($,R,X,re,Q){for(var te=[],ie=0,de=R.length;ie&lt;de;++ie)E(R,String(ie))?te.push(x($,R,X,re,String(ie),!0)):te.push(&quot;&quot;);return Q.forEach((function(ce){ce.match(/^\d+$/)||te.push(x($,R,X,re,ce,!0))})),te})(j,k,N,z,D):D.map((function($){return x(j,k,N,z,$,U)})),j.seen.pop(),(function($,R,X){return $.reduce((function(re,Q){return Q.indexOf(`
`)&gt;=0,re+Q.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60?X[0]+(R===&quot;&quot;?&quot;&quot;:R+`
 `)+&quot; &quot;+$.join(`,
  `)+&quot; &quot;+X[1]:X[0]+R+&quot; &quot;+$.join(&quot;, &quot;)+&quot; &quot;+X[1]})(Z,ne,J)):J[0]+ne+J[1]}function p(j){return&quot;[&quot;+Error.prototype.toString.call(j)+&quot;]&quot;}function x(j,k,N,C,P,D){var z,Y,Z;if((Z=Object.getOwnPropertyDescriptor(k,P)||{value:k[P]}).get?Y=Z.set?j.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):j.stylize(&quot;[Getter]&quot;,&quot;special&quot;):Z.set&amp;&amp;(Y=j.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(C,P)||(z=&quot;[&quot;+P+&quot;]&quot;),Y||(j.seen.indexOf(Z.value)&lt;0?(Y=v(N)?m(j,Z.value,null):m(j,Z.value,N-1)).indexOf(`
`)&gt;-1&amp;&amp;(Y=D?Y.split(`
`).map((function(ne){return&quot;  &quot;+ne})).join(`
`).substr(2):`
`+Y.split(`
`).map((function(ne){return&quot;   &quot;+ne})).join(`
`)):Y=j.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),A(z)){if(D&amp;&amp;P.match(/^\d+$/))return Y;(z=JSON.stringify(&quot;&quot;+P)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(z=z.substr(1,z.length-2),z=j.stylize(z,&quot;name&quot;)):(z=z.replace(/&#039;/g,&quot;\\&#039;&quot;).replace(/\\&quot;/g,&#039;&quot;&#039;).replace(/(^&quot;|&quot;$)/g,&quot;&#039;&quot;),z=j.stylize(z,&quot;string&quot;))}return z+&quot;: &quot;+Y}function g(j){return Array.isArray(j)}function y(j){return typeof j==&quot;boolean&quot;}function v(j){return j===null}function _(j){return typeof j==&quot;number&quot;}function S(j){return typeof j==&quot;string&quot;}function A(j){return j===void 0}function I(j){return V(j)&amp;&amp;B(j)===&quot;[object RegExp]&quot;}function V(j){return typeof j==&quot;object&quot;&amp;&amp;j!==null}function F(j){return V(j)&amp;&amp;B(j)===&quot;[object Date]&quot;}function q(j){return V(j)&amp;&amp;(B(j)===&quot;[object Error]&quot;||j instanceof Error)}function H(j){return typeof j==&quot;function&quot;}function B(j){return Object.prototype.toString.call(j)}function K(j){return j&lt;10?&quot;0&quot;+j.toString(10):j.toString(10)}o.debuglog=function(j){if(A(c)&amp;&amp;(c=s.env.NODE_DEBUG||&quot;&quot;),j=j.toUpperCase(),!a[j])if(new RegExp(&quot;\\b&quot;+j+&quot;\\b&quot;,&quot;i&quot;).test(c)){var k=s.pid;a[j]=function(){var N=o.format.apply(o,arguments);console.error(&quot;%s %d: %s&quot;,j,k,N)}}else a[j]=function(){};return a[j]},o.inspect=d,d.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},d.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},o.isArray=g,o.isBoolean=y,o.isNull=v,o.isNullOrUndefined=function(j){return j==null},o.isNumber=_,o.isString=S,o.isSymbol=function(j){return typeof j==&quot;symbol&quot;},o.isUndefined=A,o.isRegExp=I,o.isObject=V,o.isDate=F,o.isError=q,o.isFunction=H,o.isPrimitive=function(j){return j===null||typeof j==&quot;boolean&quot;||typeof j==&quot;number&quot;||typeof j==&quot;string&quot;||typeof j==&quot;symbol&quot;||j===void 0},o.isBuffer=t(&quot;./support/isBuffer&quot;);var T=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function L(){var j=new Date,k=[K(j.getHours()),K(j.getMinutes()),K(j.getSeconds())].join(&quot;:&quot;);return[j.getDate(),T[j.getMonth()],k].join(&quot; &quot;)}function E(j,k){return Object.prototype.hasOwnProperty.call(j,k)}o.log=function(){console.log(&quot;%s - %s&quot;,L(),o.format.apply(o,arguments))},o.inherits=t(&quot;inherits&quot;),o._extend=function(j,k){if(!k||!V(k))return j;for(var N=Object.keys(k),C=N.length;C--;)j[N[C]]=k[N[C]];return j}}).call(this)}).call(this,t(&quot;_process&quot;),typeof ir&lt;&quot;u&quot;?ir:typeof self&lt;&quot;u&quot;?self:typeof window&lt;&quot;u&quot;?window:{})},{&quot;./support/isBuffer&quot;:526,_process:467,inherits:525}],528:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),Object.defineProperty(o,&quot;v1&quot;,{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(o,&quot;v3&quot;,{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(o,&quot;v4&quot;,{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(o,&quot;v5&quot;,{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(o,&quot;NIL&quot;,{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(o,&quot;version&quot;,{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(o,&quot;validate&quot;,{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(o,&quot;stringify&quot;,{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(o,&quot;parse&quot;,{enumerable:!0,get:function(){return m.default}});var s=p(t(&quot;./v1.js&quot;)),l=p(t(&quot;./v3.js&quot;)),u=p(t(&quot;./v4.js&quot;)),c=p(t(&quot;./v5.js&quot;)),a=p(t(&quot;./nil.js&quot;)),d=p(t(&quot;./version.js&quot;)),f=p(t(&quot;./validate.js&quot;)),h=p(t(&quot;./stringify.js&quot;)),m=p(t(&quot;./parse.js&quot;));function p(x){return x&amp;&amp;x.__esModule?x:{default:x}}},{&quot;./nil.js&quot;:530,&quot;./parse.js&quot;:531,&quot;./stringify.js&quot;:535,&quot;./v1.js&quot;:536,&quot;./v3.js&quot;:537,&quot;./v4.js&quot;:539,&quot;./v5.js&quot;:540,&quot;./validate.js&quot;:541,&quot;./version.js&quot;:542}],529:[function(t,n,o){function s(m){return 14+(m+64&gt;&gt;&gt;9&lt;&lt;4)+1}function l(m,p){const x=(65535&amp;m)+(65535&amp;p);return(m&gt;&gt;16)+(p&gt;&gt;16)+(x&gt;&gt;16)&lt;&lt;16|65535&amp;x}function u(m,p,x,g,y,v){return l((_=l(l(p,m),l(g,v)))&lt;&lt;(S=y)|_&gt;&gt;&gt;32-S,x);var _,S}function c(m,p,x,g,y,v,_){return u(p&amp;x|~p&amp;g,m,p,y,v,_)}function a(m,p,x,g,y,v,_){return u(p&amp;g|x&amp;~g,m,p,y,v,_)}function d(m,p,x,g,y,v,_){return u(p^x^g,m,p,y,v,_)}function f(m,p,x,g,y,v,_){return u(x^(p|~g),m,p,y,v,_)}Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var h=function(m){if(typeof m==&quot;string&quot;){const p=unescape(encodeURIComponent(m));m=new Uint8Array(p.length);for(let x=0;x&lt;p.length;++x)m[x]=p.charCodeAt(x)}return(function(p){const x=[],g=32*p.length;for(let y=0;y&lt;g;y+=8){const v=p[y&gt;&gt;5]&gt;&gt;&gt;y%32&amp;255,_=parseInt(&quot;0123456789abcdef&quot;.charAt(v&gt;&gt;&gt;4&amp;15)+&quot;0123456789abcdef&quot;.charAt(15&amp;v),16);x.push(_)}return x})((function(p,x){p[x&gt;&gt;5]|=128&lt;&lt;x%32,p[s(x)-1]=x;let g=1732584193,y=-271733879,v=-1732584194,_=271733878;for(let S=0;S&lt;p.length;S+=16){const A=g,I=y,V=v,F=_;g=c(g,y,v,_,p[S],7,-680876936),_=c(_,g,y,v,p[S+1],12,-389564586),v=c(v,_,g,y,p[S+2],17,606105819),y=c(y,v,_,g,p[S+3],22,-1044525330),g=c(g,y,v,_,p[S+4],7,-176418897),_=c(_,g,y,v,p[S+5],12,1200080426),v=c(v,_,g,y,p[S+6],17,-1473231341),y=c(y,v,_,g,p[S+7],22,-45705983),g=c(g,y,v,_,p[S+8],7,1770035416),_=c(_,g,y,v,p[S+9],12,-1958414417),v=c(v,_,g,y,p[S+10],17,-42063),y=c(y,v,_,g,p[S+11],22,-1990404162),g=c(g,y,v,_,p[S+12],7,1804603682),_=c(_,g,y,v,p[S+13],12,-40341101),v=c(v,_,g,y,p[S+14],17,-1502002290),y=c(y,v,_,g,p[S+15],22,1236535329),g=a(g,y,v,_,p[S+1],5,-165796510),_=a(_,g,y,v,p[S+6],9,-1069501632),v=a(v,_,g,y,p[S+11],14,643717713),y=a(y,v,_,g,p[S],20,-373897302),g=a(g,y,v,_,p[S+5],5,-701558691),_=a(_,g,y,v,p[S+10],9,38016083),v=a(v,_,g,y,p[S+15],14,-660478335),y=a(y,v,_,g,p[S+4],20,-405537848),g=a(g,y,v,_,p[S+9],5,568446438),_=a(_,g,y,v,p[S+14],9,-1019803690),v=a(v,_,g,y,p[S+3],14,-187363961),y=a(y,v,_,g,p[S+8],20,1163531501),g=a(g,y,v,_,p[S+13],5,-1444681467),_=a(_,g,y,v,p[S+2],9,-51403784),v=a(v,_,g,y,p[S+7],14,1735328473),y=a(y,v,_,g,p[S+12],20,-1926607734),g=d(g,y,v,_,p[S+5],4,-378558),_=d(_,g,y,v,p[S+8],11,-2022574463),v=d(v,_,g,y,p[S+11],16,1839030562),y=d(y,v,_,g,p[S+14],23,-35309556),g=d(g,y,v,_,p[S+1],4,-1530992060),_=d(_,g,y,v,p[S+4],11,1272893353),v=d(v,_,g,y,p[S+7],16,-155497632),y=d(y,v,_,g,p[S+10],23,-1094730640),g=d(g,y,v,_,p[S+13],4,681279174),_=d(_,g,y,v,p[S],11,-358537222),v=d(v,_,g,y,p[S+3],16,-722521979),y=d(y,v,_,g,p[S+6],23,76029189),g=d(g,y,v,_,p[S+9],4,-640364487),_=d(_,g,y,v,p[S+12],11,-421815835),v=d(v,_,g,y,p[S+15],16,530742520),y=d(y,v,_,g,p[S+2],23,-995338651),g=f(g,y,v,_,p[S],6,-198630844),_=f(_,g,y,v,p[S+7],10,1126891415),v=f(v,_,g,y,p[S+14],15,-1416354905),y=f(y,v,_,g,p[S+5],21,-57434055),g=f(g,y,v,_,p[S+12],6,1700485571),_=f(_,g,y,v,p[S+3],10,-1894986606),v=f(v,_,g,y,p[S+10],15,-1051523),y=f(y,v,_,g,p[S+1],21,-2054922799),g=f(g,y,v,_,p[S+8],6,1873313359),_=f(_,g,y,v,p[S+15],10,-30611744),v=f(v,_,g,y,p[S+6],15,-1560198380),y=f(y,v,_,g,p[S+13],21,1309151649),g=f(g,y,v,_,p[S+4],6,-145523070),_=f(_,g,y,v,p[S+11],10,-1120210379),v=f(v,_,g,y,p[S+2],15,718787259),y=f(y,v,_,g,p[S+9],21,-343485551),g=l(g,A),y=l(y,I),v=l(v,V),_=l(_,F)}return[g,y,v,_]})((function(p){if(p.length===0)return[];const x=8*p.length,g=new Uint32Array(s(x));for(let y=0;y&lt;x;y+=8)g[y&gt;&gt;5]|=(255&amp;p[y/8])&lt;&lt;y%32;return g})(m),8*m.length))};o.default=h},{}],530:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0,o.default=&quot;00000000-0000-0000-0000-000000000000&quot;},{}],531:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var s,l=(s=t(&quot;./validate.js&quot;))&amp;&amp;s.__esModule?s:{default:s},u=function(c){if(!(0,l.default)(c))throw TypeError(&quot;Invalid UUID&quot;);let a;const d=new Uint8Array(16);return d[0]=(a=parseInt(c.slice(0,8),16))&gt;&gt;&gt;24,d[1]=a&gt;&gt;&gt;16&amp;255,d[2]=a&gt;&gt;&gt;8&amp;255,d[3]=255&amp;a,d[4]=(a=parseInt(c.slice(9,13),16))&gt;&gt;&gt;8,d[5]=255&amp;a,d[6]=(a=parseInt(c.slice(14,18),16))&gt;&gt;&gt;8,d[7]=255&amp;a,d[8]=(a=parseInt(c.slice(19,23),16))&gt;&gt;&gt;8,d[9]=255&amp;a,d[10]=(a=parseInt(c.slice(24,36),16))/1099511627776&amp;255,d[11]=a/4294967296&amp;255,d[12]=a&gt;&gt;&gt;24&amp;255,d[13]=a&gt;&gt;&gt;16&amp;255,d[14]=a&gt;&gt;&gt;8&amp;255,d[15]=255&amp;a,d};o.default=u},{&quot;./validate.js&quot;:541}],532:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0,o.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(t,n,o){let s;Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=function(){if(!s&amp;&amp;(s=typeof crypto&lt;&quot;u&quot;&amp;&amp;crypto.getRandomValues&amp;&amp;crypto.getRandomValues.bind(crypto)||typeof msCrypto&lt;&quot;u&quot;&amp;&amp;typeof msCrypto.getRandomValues==&quot;function&quot;&amp;&amp;msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error(&quot;crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported&quot;);return s(l)};const l=new Uint8Array(16)},{}],534:[function(t,n,o){function s(c,a,d,f){switch(c){case 0:return a&amp;d^~a&amp;f;case 1:return a^d^f;case 2:return a&amp;d^a&amp;f^d&amp;f;case 3:return a^d^f}}function l(c,a){return c&lt;&lt;a|c&gt;&gt;&gt;32-a}Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var u=function(c){const a=[1518500249,1859775393,2400959708,3395469782],d=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof c==&quot;string&quot;){const p=unescape(encodeURIComponent(c));c=[];for(let x=0;x&lt;p.length;++x)c.push(p.charCodeAt(x))}else Array.isArray(c)||(c=Array.prototype.slice.call(c));c.push(128);const f=c.length/4+2,h=Math.ceil(f/16),m=new Array(h);for(let p=0;p&lt;h;++p){const x=new Uint32Array(16);for(let g=0;g&lt;16;++g)x[g]=c[64*p+4*g]&lt;&lt;24|c[64*p+4*g+1]&lt;&lt;16|c[64*p+4*g+2]&lt;&lt;8|c[64*p+4*g+3];m[p]=x}m[h-1][14]=8*(c.length-1)/Math.pow(2,32),m[h-1][14]=Math.floor(m[h-1][14]),m[h-1][15]=8*(c.length-1)&amp;4294967295;for(let p=0;p&lt;h;++p){const x=new Uint32Array(80);for(let A=0;A&lt;16;++A)x[A]=m[p][A];for(let A=16;A&lt;80;++A)x[A]=l(x[A-3]^x[A-8]^x[A-14]^x[A-16],1);let g=d[0],y=d[1],v=d[2],_=d[3],S=d[4];for(let A=0;A&lt;80;++A){const I=Math.floor(A/20),V=l(g,5)+s(I,y,v,_)+S+a[I]+x[A]&gt;&gt;&gt;0;S=_,_=v,v=l(y,30)&gt;&gt;&gt;0,y=g,g=V}d[0]=d[0]+g&gt;&gt;&gt;0,d[1]=d[1]+y&gt;&gt;&gt;0,d[2]=d[2]+v&gt;&gt;&gt;0,d[3]=d[3]+_&gt;&gt;&gt;0,d[4]=d[4]+S&gt;&gt;&gt;0}return[d[0]&gt;&gt;24&amp;255,d[0]&gt;&gt;16&amp;255,d[0]&gt;&gt;8&amp;255,255&amp;d[0],d[1]&gt;&gt;24&amp;255,d[1]&gt;&gt;16&amp;255,d[1]&gt;&gt;8&amp;255,255&amp;d[1],d[2]&gt;&gt;24&amp;255,d[2]&gt;&gt;16&amp;255,d[2]&gt;&gt;8&amp;255,255&amp;d[2],d[3]&gt;&gt;24&amp;255,d[3]&gt;&gt;16&amp;255,d[3]&gt;&gt;8&amp;255,255&amp;d[3],d[4]&gt;&gt;24&amp;255,d[4]&gt;&gt;16&amp;255,d[4]&gt;&gt;8&amp;255,255&amp;d[4]]};o.default=u},{}],535:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var s,l=(s=t(&quot;./validate.js&quot;))&amp;&amp;s.__esModule?s:{default:s};const u=[];for(let a=0;a&lt;256;++a)u.push((a+256).toString(16).substr(1));var c=function(a){let d=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:0;const f=(u[a[d+0]]+u[a[d+1]]+u[a[d+2]]+u[a[d+3]]+&quot;-&quot;+u[a[d+4]]+u[a[d+5]]+&quot;-&quot;+u[a[d+6]]+u[a[d+7]]+&quot;-&quot;+u[a[d+8]]+u[a[d+9]]+&quot;-&quot;+u[a[d+10]]+u[a[d+11]]+u[a[d+12]]+u[a[d+13]]+u[a[d+14]]+u[a[d+15]]).toLowerCase();if(!(0,l.default)(f))throw TypeError(&quot;Stringified UUID is invalid&quot;);return f};o.default=c},{&quot;./validate.js&quot;:541}],536:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var s=u(t(&quot;./rng.js&quot;)),l=u(t(&quot;./stringify.js&quot;));function u(m){return m&amp;&amp;m.__esModule?m:{default:m}}let c,a,d=0,f=0;var h=function(m,p,x){let g=p&amp;&amp;x||0;const y=p||new Array(16);let v=(m=m||{}).node||c,_=m.clockseq!==void 0?m.clockseq:a;if(v==null||_==null){const q=m.random||(m.rng||s.default)();v==null&amp;&amp;(v=c=[1|q[0],q[1],q[2],q[3],q[4],q[5]]),_==null&amp;&amp;(_=a=16383&amp;(q[6]&lt;&lt;8|q[7]))}let S=m.msecs!==void 0?m.msecs:Date.now(),A=m.nsecs!==void 0?m.nsecs:f+1;const I=S-d+(A-f)/1e4;if(I&lt;0&amp;&amp;m.clockseq===void 0&amp;&amp;(_=_+1&amp;16383),(I&lt;0||S&gt;d)&amp;&amp;m.nsecs===void 0&amp;&amp;(A=0),A&gt;=1e4)throw new Error(&quot;uuid.v1(): Can&#039;t create more than 10M uuids/sec&quot;);d=S,f=A,a=_,S+=122192928e5;const V=(1e4*(268435455&amp;S)+A)%4294967296;y[g++]=V&gt;&gt;&gt;24&amp;255,y[g++]=V&gt;&gt;&gt;16&amp;255,y[g++]=V&gt;&gt;&gt;8&amp;255,y[g++]=255&amp;V;const F=S/4294967296*1e4&amp;268435455;y[g++]=F&gt;&gt;&gt;8&amp;255,y[g++]=255&amp;F,y[g++]=F&gt;&gt;&gt;24&amp;15|16,y[g++]=F&gt;&gt;&gt;16&amp;255,y[g++]=_&gt;&gt;&gt;8|128,y[g++]=255&amp;_;for(let q=0;q&lt;6;++q)y[g+q]=v[q];return p||(0,l.default)(y)};o.default=h},{&quot;./rng.js&quot;:533,&quot;./stringify.js&quot;:535}],537:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var s=u(t(&quot;./v35.js&quot;)),l=u(t(&quot;./md5.js&quot;));function u(a){return a&amp;&amp;a.__esModule?a:{default:a}}var c=(0,s.default)(&quot;v3&quot;,48,l.default);o.default=c},{&quot;./md5.js&quot;:529,&quot;./v35.js&quot;:538}],538:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=function(d,f,h){function m(p,x,g,y){if(typeof p==&quot;string&quot;&amp;&amp;(p=(function(_){_=unescape(encodeURIComponent(_));const S=[];for(let A=0;A&lt;_.length;++A)S.push(_.charCodeAt(A));return S})(p)),typeof x==&quot;string&quot;&amp;&amp;(x=(0,l.default)(x)),x.length!==16)throw TypeError(&quot;Namespace must be array-like (16 iterable integer values, 0-255)&quot;);let v=new Uint8Array(16+p.length);if(v.set(x),v.set(p,x.length),v=h(v),v[6]=15&amp;v[6]|f,v[8]=63&amp;v[8]|128,g){y=y||0;for(let _=0;_&lt;16;++_)g[y+_]=v[_];return g}return(0,s.default)(v)}try{m.name=d}catch{}return m.DNS=c,m.URL=a,m},o.URL=o.DNS=void 0;var s=u(t(&quot;./stringify.js&quot;)),l=u(t(&quot;./parse.js&quot;));function u(d){return d&amp;&amp;d.__esModule?d:{default:d}}const c=&quot;6ba7b810-9dad-11d1-80b4-00c04fd430c8&quot;;o.DNS=c;const a=&quot;6ba7b811-9dad-11d1-80b4-00c04fd430c8&quot;;o.URL=a},{&quot;./parse.js&quot;:531,&quot;./stringify.js&quot;:535}],539:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var s=u(t(&quot;./rng.js&quot;)),l=u(t(&quot;./stringify.js&quot;));function u(a){return a&amp;&amp;a.__esModule?a:{default:a}}var c=function(a,d,f){const h=(a=a||{}).random||(a.rng||s.default)();if(h[6]=15&amp;h[6]|64,h[8]=63&amp;h[8]|128,d){f=f||0;for(let m=0;m&lt;16;++m)d[f+m]=h[m];return d}return(0,l.default)(h)};o.default=c},{&quot;./rng.js&quot;:533,&quot;./stringify.js&quot;:535}],540:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var s=u(t(&quot;./v35.js&quot;)),l=u(t(&quot;./sha1.js&quot;));function u(a){return a&amp;&amp;a.__esModule?a:{default:a}}var c=(0,s.default)(&quot;v5&quot;,80,l.default);o.default=c},{&quot;./sha1.js&quot;:534,&quot;./v35.js&quot;:538}],541:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var s,l=(s=t(&quot;./regex.js&quot;))&amp;&amp;s.__esModule?s:{default:s},u=function(c){return typeof c==&quot;string&quot;&amp;&amp;l.default.test(c)};o.default=u},{&quot;./regex.js&quot;:532}],542:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.default=void 0;var s,l=(s=t(&quot;./validate.js&quot;))&amp;&amp;s.__esModule?s:{default:s},u=function(c){if(!(0,l.default)(c))throw TypeError(&quot;Invalid UUID&quot;);return parseInt(c.substr(14,1),16)};o.default=u},{&quot;./validate.js&quot;:541}],543:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.CHAR=`	
\r -퟿-�𐀀-􏿿`,o.S=` 	\r
`,o.NAME_START_CHAR=&quot;:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿&quot;,o.NAME_CHAR=&quot;-&quot;+o.NAME_START_CHAR+&quot;.0-9·̀-ͯ‿-⁀&quot;,o.CHAR_RE=new RegExp(&quot;^[&quot;+o.CHAR+&quot;]$&quot;,&quot;u&quot;),o.S_RE=new RegExp(&quot;^[&quot;+o.S+&quot;]+$&quot;,&quot;u&quot;),o.NAME_START_CHAR_RE=new RegExp(&quot;^[&quot;+o.NAME_START_CHAR+&quot;]$&quot;,&quot;u&quot;),o.NAME_CHAR_RE=new RegExp(&quot;^[&quot;+o.NAME_CHAR+&quot;]$&quot;,&quot;u&quot;),o.NAME_RE=new RegExp(&quot;^[&quot;+o.NAME_START_CHAR+&quot;][&quot;+o.NAME_CHAR+&quot;]*$&quot;,&quot;u&quot;),o.NMTOKEN_RE=new RegExp(&quot;^[&quot;+o.NAME_CHAR+&quot;]+$&quot;,&quot;u&quot;);function s(l){return l&gt;=65&amp;&amp;l&lt;=90||l&gt;=97&amp;&amp;l&lt;=122||l===58||l===95||l===8204||l===8205||l&gt;=192&amp;&amp;l&lt;=214||l&gt;=216&amp;&amp;l&lt;=246||l&gt;=248&amp;&amp;l&lt;=767||l&gt;=880&amp;&amp;l&lt;=893||l&gt;=895&amp;&amp;l&lt;=8191||l&gt;=8304&amp;&amp;l&lt;=8591||l&gt;=11264&amp;&amp;l&lt;=12271||l&gt;=12289&amp;&amp;l&lt;=55295||l&gt;=63744&amp;&amp;l&lt;=64975||l&gt;=65008&amp;&amp;l&lt;=65533||l&gt;=65536&amp;&amp;l&lt;=983039}o.S_LIST=[32,10,13,9],o.isChar=function(l){return l&gt;=32&amp;&amp;l&lt;=55295||l===10||l===13||l===9||l&gt;=57344&amp;&amp;l&lt;=65533||l&gt;=65536&amp;&amp;l&lt;=1114111},o.isS=function(l){return l===32||l===10||l===13||l===9},o.isNameStartChar=s,o.isNameChar=function(l){return s(l)||l&gt;=48&amp;&amp;l&lt;=57||l===45||l===46||l===183||l&gt;=768&amp;&amp;l&lt;=879||l&gt;=8255&amp;&amp;l&lt;=8256}},{}],544:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.CHAR=&quot;-퟿-�𐀀-􏿿&quot;,o.RESTRICTED_CHAR=&quot;-\b\v\f---&quot;,o.S=` 	\r
`,o.NAME_START_CHAR=&quot;:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿&quot;,o.NAME_CHAR=&quot;-&quot;+o.NAME_START_CHAR+&quot;.0-9·̀-ͯ‿-⁀&quot;,o.CHAR_RE=new RegExp(&quot;^[&quot;+o.CHAR+&quot;]$&quot;,&quot;u&quot;),o.RESTRICTED_CHAR_RE=new RegExp(&quot;^[&quot;+o.RESTRICTED_CHAR+&quot;]$&quot;,&quot;u&quot;),o.S_RE=new RegExp(&quot;^[&quot;+o.S+&quot;]+$&quot;,&quot;u&quot;),o.NAME_START_CHAR_RE=new RegExp(&quot;^[&quot;+o.NAME_START_CHAR+&quot;]$&quot;,&quot;u&quot;),o.NAME_CHAR_RE=new RegExp(&quot;^[&quot;+o.NAME_CHAR+&quot;]$&quot;,&quot;u&quot;),o.NAME_RE=new RegExp(&quot;^[&quot;+o.NAME_START_CHAR+&quot;][&quot;+o.NAME_CHAR+&quot;]*$&quot;,&quot;u&quot;),o.NMTOKEN_RE=new RegExp(&quot;^[&quot;+o.NAME_CHAR+&quot;]+$&quot;,&quot;u&quot;);function s(l){return l&gt;=65&amp;&amp;l&lt;=90||l&gt;=97&amp;&amp;l&lt;=122||l===58||l===95||l===8204||l===8205||l&gt;=192&amp;&amp;l&lt;=214||l&gt;=216&amp;&amp;l&lt;=246||l&gt;=248&amp;&amp;l&lt;=767||l&gt;=880&amp;&amp;l&lt;=893||l&gt;=895&amp;&amp;l&lt;=8191||l&gt;=8304&amp;&amp;l&lt;=8591||l&gt;=11264&amp;&amp;l&lt;=12271||l&gt;=12289&amp;&amp;l&lt;=55295||l&gt;=63744&amp;&amp;l&lt;=64975||l&gt;=65008&amp;&amp;l&lt;=65533||l&gt;=65536&amp;&amp;l&lt;=983039}o.S_LIST=[32,10,13,9],o.isChar=function(l){return l&gt;=1&amp;&amp;l&lt;=55295||l&gt;=57344&amp;&amp;l&lt;=65533||l&gt;=65536&amp;&amp;l&lt;=1114111},o.isRestrictedChar=function(l){return l&gt;=1&amp;&amp;l&lt;=8||l===11||l===12||l&gt;=14&amp;&amp;l&lt;=31||l&gt;=127&amp;&amp;l&lt;=132||l&gt;=134&amp;&amp;l&lt;=159},o.isCharAndNotRestricted=function(l){return l===9||l===10||l===13||l&gt;31&amp;&amp;l&lt;127||l===133||l&gt;159&amp;&amp;l&lt;=55295||l&gt;=57344&amp;&amp;l&lt;=65533||l&gt;=65536&amp;&amp;l&lt;=1114111},o.isS=function(l){return l===32||l===10||l===13||l===9},o.isNameStartChar=s,o.isNameChar=function(l){return s(l)||l&gt;=48&amp;&amp;l&lt;=57||l===45||l===46||l===183||l&gt;=768&amp;&amp;l&lt;=879||l&gt;=8255&amp;&amp;l&lt;=8256}},{}],545:[function(t,n,o){function s(l){return l&gt;=65&amp;&amp;l&lt;=90||l===95||l&gt;=97&amp;&amp;l&lt;=122||l&gt;=192&amp;&amp;l&lt;=214||l&gt;=216&amp;&amp;l&lt;=246||l&gt;=248&amp;&amp;l&lt;=767||l&gt;=880&amp;&amp;l&lt;=893||l&gt;=895&amp;&amp;l&lt;=8191||l&gt;=8204&amp;&amp;l&lt;=8205||l&gt;=8304&amp;&amp;l&lt;=8591||l&gt;=11264&amp;&amp;l&lt;=12271||l&gt;=12289&amp;&amp;l&lt;=55295||l&gt;=63744&amp;&amp;l&lt;=64975||l&gt;=65008&amp;&amp;l&lt;=65533||l&gt;=65536&amp;&amp;l&lt;=983039}Object.defineProperty(o,&quot;__esModule&quot;,{value:!0}),o.NC_NAME_START_CHAR=&quot;A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿&quot;,o.NC_NAME_CHAR=&quot;-&quot;+o.NC_NAME_START_CHAR+&quot;.0-9·̀-ͯ‿-⁀&quot;,o.NC_NAME_START_CHAR_RE=new RegExp(&quot;^[&quot;+o.NC_NAME_START_CHAR+&quot;]$&quot;,&quot;u&quot;),o.NC_NAME_CHAR_RE=new RegExp(&quot;^[&quot;+o.NC_NAME_CHAR+&quot;]$&quot;,&quot;u&quot;),o.NC_NAME_RE=new RegExp(&quot;^[&quot;+o.NC_NAME_START_CHAR+&quot;][&quot;+o.NC_NAME_CHAR+&quot;]*$&quot;,&quot;u&quot;),o.isNCNameStartChar=s,o.isNCNameChar=function(l){return s(l)||l===45||l===46||l&gt;=48&amp;&amp;l&lt;=57||l===183||l&gt;=768&amp;&amp;l&lt;=879||l&gt;=8255&amp;&amp;l&lt;=8256}},{}]},{},[15])(15)}))})(Fy)),Fy.exports}var Fae=Lae();const Bae=Os(Fae);function Dd(e,r,t){if(e.length===0){alert(&quot;Aucune donnée à exporter&quot;);return}const n=Object.keys(e[0]),s=[n.join(&quot;,&quot;),...e.map(a=&gt;n.map(d=&gt;{const f=a[d];if(f==null)return&quot;&quot;;const h=String(f);return h.includes(&quot;,&quot;)||h.includes(&#039;&quot;&#039;)||h.includes(`
`)?`&quot;${h.replace(/&quot;/g,&#039;&quot;&quot;&#039;)}&quot;`:h}).join(&quot;,&quot;))].join(`
`),l=new Blob([&quot;\uFEFF&quot;+s],{type:&quot;text/csv;charset=utf-8;&quot;}),u=document.createElement(&quot;a&quot;),c=URL.createObjectURL(l);u.setAttribute(&quot;href&quot;,c),u.setAttribute(&quot;download&quot;,`${r}.csv`),u.style.visibility=&quot;hidden&quot;,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(c)}async function Ys(e,r,t=&quot;Données&quot;,n){if(e.length===0){alert(&quot;Aucune donnée à exporter&quot;);return}const o=Object.keys(e[0]),s=new Bae.Workbook,l=s.addWorksheet(t);l.addRow(o);const u=l.getRow(1);u.font={bold:!0},u.fill={type:&quot;pattern&quot;,pattern:&quot;solid&quot;,fgColor:{argb:&quot;FFE5E7EB&quot;}},e.forEach(h=&gt;{const m=o.map(p=&gt;{const x=h[p];return x??&quot;&quot;});l.addRow(m)}),o.forEach((h,m)=&gt;{const p=l.getColumn(m+1);p.width=Math.max(h.length+2,15)});const c=await s.xlsx.writeBuffer(),a=new Blob([c],{type:&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&quot;}),d=document.createElement(&quot;a&quot;),f=URL.createObjectURL(a);d.setAttribute(&quot;href&quot;,f),d.setAttribute(&quot;download&quot;,`${r}.xlsx`),d.style.visibility=&quot;hidden&quot;,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(f)}function $ae(e){return e?e===&quot;marie&quot;?&quot;Marié(e)&quot;:e===&quot;non_marie&quot;?&quot;Non marié(e)&quot;:e:&quot;&quot;}function zae(e){return e?e===&quot;homme&quot;?&quot;Homme&quot;:e===&quot;femme&quot;?&quot;Femme&quot;:e:&quot;&quot;}function Uae(e){return e?{primaire:&quot;Primaire&quot;,secondaire_2:&quot;Secondaire 2e cycle&quot;,universitaire:&quot;Universitaire&quot;}[e]||e:&quot;&quot;}function Vae(e){return e?{natif:&quot;Natif&quot;,avance:&quot;Avancé&quot;,intermediaire:&quot;Intermédiaire&quot;,faible:&quot;Faible&quot;}[e]||e:&quot;&quot;}function qae(e){return e?{musulmane:&quot;Musulmane&quot;,catholique:&quot;Catholique&quot;,protestante:&quot;Protestante&quot;,pentecotiste:&quot;Pentecôtiste&quot;,evangelique:&quot;Évangélique&quot;,autre:&quot;Autre&quot;}[e]||e:&quot;&quot;}function qc(e){return e?{paypal:&quot;PayPal&quot;,card_visa:&quot;Carte de crédit (Visa)&quot;,mobile_money:&quot;Mobile Money (en ligne ou en direct)&quot;,national_office:&quot;Envoi d&#039;argent (RIA, Western ou MoneyGram)&quot;,bank_transfer:&quot;Virement bancaire&quot;,installment:&quot;Échelonné&quot;,orange_money:&quot;Orange Money&quot;,moov_money:&quot;Moov Money&quot;,ria:&quot;RIA&quot;,western_union:&quot;WESTERN UNION&quot;,moneygram:&quot;MONEYGRAM&quot;,cash:&quot;ESPÈCE&quot;}[e]||e:&quot;&quot;}function Wae(e){return e.amount_due_xof!=null&amp;&amp;e.amount_due_xof&gt;0?`${Number(e.amount_due_xof).toLocaleString(&quot;fr-FR&quot;)} XOF`:e.amount_due_eur!=null&amp;&amp;e.amount_due_eur&gt;0?`${e.amount_due_eur} EUR`:&quot;&quot;}function O6(e,r){return e.map(t=&gt;{const n=t;return{ID:t.id,Événement:t.event?.name||&quot;&quot;,Statut:t.status,Prénom:t.first_name,Nom:t.last_name,Email:t.email,Téléphone:t.phone||&quot;&quot;,Pays:t.country||&quot;&quot;,Ville:t.city||&quot;&quot;,Organisation:t.organization||&quot;&quot;,Poste:t.position||&quot;&quot;,Nationalité:t.nationality||&quot;&quot;,&quot;Leader Haggai&quot;:t.is_haggai_leader?&quot;Oui&quot;:&quot;Non&quot;,&quot;Haggai ID&quot;:t.haggai_id||&quot;&quot;,Formule:r===&quot;seminar&quot;?&quot;&quot;:t.pricing_plan?.title||&quot;&quot;,&quot;Code Formule&quot;:r===&quot;seminar&quot;?&quot;&quot;:t.pricing_plan?.code||&quot;&quot;,&quot;Frais de participation&quot;:Wae(t),&quot;Méthode de paiement&quot;:qc(t.payment_method_selected),Devise:t.currency_selected||&quot;&quot;,&quot;Montant XOF&quot;:t.amount_due_xof??&quot;&quot;,&quot;Montant EUR&quot;:t.amount_due_eur??&quot;&quot;,&quot;Résident Ouaga&quot;:t.ouaga_resident_confirmed?&quot;Oui&quot;:&quot;Non&quot;,&quot;Nom conjoint&quot;:t.spouse_fullname||&quot;&quot;,&quot;Email conjoint&quot;:t.spouse_email||&quot;&quot;,&quot;Haggai ID / Année HLE conjoint&quot;:t.spouse_haggai_id||&quot;&quot;,&quot;Souhaite participer (séminaire)&quot;:t.seminar_want_to_participate===&quot;oui&quot;?&quot;Oui&quot;:t.seminar_want_to_participate===&quot;non&quot;?&quot;Non&quot;:&quot;&quot;,&quot;Église ou organisation (séminaire)&quot;:t.seminar_church_organization||&quot;&quot;,&quot;Rôle/Ministère (séminaire)&quot;:t.seminar_role_ministry||&quot;&quot;,&quot;Situation matrimoniale (séminaire)&quot;:$ae(t.seminar_marital_status),&quot;Âge (séminaire)&quot;:t.seminar_age??&quot;&quot;,&quot;Genre (séminaire)&quot;:zae(t.seminar_gender),&quot;Question ou préoccupation (séminaire)&quot;:t.seminar_question_or_concern||&quot;&quot;,&quot;Date de naissance (séminaire)&quot;:n.seminar_date_naissance?new Date(n.seminar_date_naissance).toLocaleDateString(&quot;fr-FR&quot;):&quot;&quot;,&quot;Contact d&#039;urgence (séminaire)&quot;:n.seminar_contact_urgence_nom_lien||&quot;&quot;,&quot;Niveau d&#039;études (séminaire)&quot;:Uae(n.seminar_niveau_etudes),&quot;Domaines d&#039;étude (séminaire)&quot;:Array.isArray(n.seminar_domaines_etude)?n.seminar_domaines_etude.join(&quot;, &quot;):&quot;&quot;,&quot;Domaine d&#039;étude autre (séminaire)&quot;:n.seminar_domaine_etude_autre||&quot;&quot;,&quot;Niveau français (séminaire)&quot;:Vae(n.seminar_niveau_francais),&quot;Besoin lettre d&#039;absence (séminaire)&quot;:n.seminar_besoin_lettre_absence===&quot;oui&quot;?&quot;Oui&quot;:n.seminar_besoin_lettre_absence===&quot;non&quot;?&quot;Non&quot;:&quot;&quot;,&quot;Détails lettre d&#039;absence (séminaire)&quot;:n.seminar_besoin_lettre_details||&quot;&quot;,&quot;Informations santé (séminaire)&quot;:n.seminar_sante_details||&quot;&quot;,&quot;Régime sans sel (séminaire)&quot;:n.seminar_regime_sans_sel===&quot;oui&quot;?&quot;Oui&quot;:n.seminar_regime_sans_sel===&quot;non&quot;?&quot;Non&quot;:&quot;&quot;,&quot;Confession religieuse (séminaire)&quot;:qae(n.seminar_confession_religieuse),&quot;Spécification confession (séminaire)&quot;:n.seminar_confession_religieuse_autre||&quot;&quot;,&quot;Attentes (séminaire)&quot;:n.seminar_fardeau_transformation||&quot;&quot;,&quot;Recommandé par (séminaire)&quot;:n.seminar_recommande_par||&quot;&quot;,&quot;Engagements (séminaire)&quot;:Array.isArray(n.seminar_engagements)?n.seminar_engagements.join(&quot;, &quot;):&quot;&quot;,&quot;Engagements autre (séminaire)&quot;:n.seminar_engagements_autre||&quot;&quot;,&quot;Date de soumission&quot;:t.submitted_at?new Date(t.submitted_at).toLocaleDateString(&quot;fr-FR&quot;):&quot;&quot;,&quot;Date de paiement&quot;:t.paid_at?new Date(t.paid_at).toLocaleDateString(&quot;fr-FR&quot;):&quot;&quot;,&quot;Date de création&quot;:new Date(t.created_at).toLocaleDateString(&quot;fr-FR&quot;)}})}function T6(e){return e.map(r=&gt;({ID:r.id,Événement:r.event?.name||&quot;&quot;,Statut:r.status,&quot;Nom recommandé&quot;:r.recommended_full_name,Genre:r.recommended_gender===&quot;homme&quot;?&quot;Homme&quot;:&quot;Femme&quot;,Profession:r.recommended_profession,&quot;Pays de résidence&quot;:r.recommended_residence_country,&quot;Téléphone WhatsApp&quot;:r.recommended_phone_whatsapp,&quot;Email recommandé&quot;:r.recommended_email||&quot;&quot;,&quot;Personne contactée avant (recommandeur)&quot;:r.recommender_contacted_person===&quot;oui&quot;?&quot;Oui&quot;:r.recommender_contacted_person===&quot;non&quot;?&quot;Non&quot;:&quot;&quot;,&quot;Prénom recommandeur&quot;:r.recommender_first_name,&quot;Nom recommandeur&quot;:r.recommender_last_name,&quot;Email recommandeur&quot;:r.recommender_email,&quot;Téléphone recommandeur&quot;:r.recommender_phone,&quot;Pays recommandeur&quot;:r.recommender_country||&quot;&quot;,Notes:r.notes||&quot;&quot;,&quot;Date de contact&quot;:r.contacted_at?new Date(r.contacted_at).toLocaleDateString(&quot;fr-FR&quot;):&quot;&quot;,&quot;Date de création&quot;:new Date(r.created_at).toLocaleDateString(&quot;fr-FR&quot;)}))}function I6(e){return e.map(r=&gt;({ID:r.id,Catégorie:r.category_name??&quot;&quot;,Type:r.category_type===&quot;revenue&quot;?&quot;Recettes&quot;:r.category_type===&quot;expense&quot;?&quot;Dépenses&quot;:&quot;—&quot;,Libellé:r.label??&quot;&quot;,&quot;Prévu (XOF)&quot;:r.amount_planned,&quot;Réalisé (XOF)&quot;:r.amount_realized,Ordre:r.sort_order??0}))}function R6(e){return e.map(r=&gt;({ID:r.id,Date:r.paid_at?new Date(r.paid_at).toLocaleDateString(&quot;fr-FR&quot;):&quot;&quot;,&quot;Catégorie budget&quot;:r.budget_line_label??&quot;&quot;,Libellé:r.label??&quot;&quot;,&quot;Compte trésorerie&quot;:r.treasury_account_name??&quot;&quot;,&quot;Montant (XOF)&quot;:r.amount,Référence:r.reference??&quot;&quot;}))}function Hae(e){if(e.movement_type===&quot;transfer&quot;){const n=e.from_account_name??`#${e.from_treasury_account_id}`,o=e.to_account_name??`#${e.to_treasury_account_id}`;return`${n} → ${o}`}const r=e.adjusted_account_name??`#${e.treasury_account_id}`,t=e.adjustment_direction===&quot;increase&quot;?&quot;Augmentation&quot;:e.adjustment_direction===&quot;decrease&quot;?&quot;Diminution&quot;:&quot;&quot;;return t?`${r} · ${t}`:r}function D6(e){return e.map(r=&gt;({ID:r.id,Type:r.movement_type===&quot;transfer&quot;?&quot;Transfert&quot;:&quot;Ajustement&quot;,Détail:Hae(r),Montant:r.amount,Devise:r.currency??&quot;&quot;,Libellé:r.label??&quot;&quot;,Notes:r.notes??&quot;&quot;,&quot;Créé le&quot;:r.created_at?new Date(r.created_at).toLocaleString(&quot;fr-FR&quot;):&quot;&quot;,&quot;Créé par&quot;:r.created_by_name??&quot;&quot;}))}function Kae(){const[e,r]=ff(),t=e.get(&quot;view&quot;),n=t===&quot;seminar&quot;||t===&quot;recommendations&quot;?t:&quot;summit&quot;,o=Ni(),{isAuthenticated:s,isParticipant:l,loading:u,can:c,roles:a}=Ts(),[d,f]=O.useState({}),[h,m]=O.useState(1),[p,x]=O.useState(20),[g,y]=O.useState(1),[v,_]=O.useState(20),[S,A]=O.useState(null),[I,V]=O.useState(null),[F,q]=O.useState(!1),[H,B]=O.useState(!1),[K,T]=O.useState(!1),[L,E]=O.useState(!1),[j,k]=O.useState(!1),[N,C]=O.useState(!1),[P,D]=O.useState(!1),[z,Y]=O.useState(null),[Z,ne]=O.useState(null),[U,J]=O.useState(null),$=O.useRef(null),R=()=&gt;{const Ce=$.current;Ce&amp;&amp;(Ce.open=!1)},X=O.useMemo(()=&gt;{const Ce=d.status;return!Ce||Ce.length===0?null:Ce.length===1?Ce[0]:&quot;multiple&quot;},[d.status]),{events:re}=n0(),Q=O.useMemo(()=&gt;re.filter(Ce=&gt;Ce.event_type===&quot;summit&quot;).map(Ce=&gt;Ce.id),[re]),te=O.useMemo(()=&gt;re.filter(Ce=&gt;Ce.event_type===&quot;seminar&quot;).map(Ce=&gt;Ce.id),[re]),ie=a.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!a.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),de=a.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!a.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),ce=a.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!a.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),se=a.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!a.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!a.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),fe=ie||se?!1:c(&quot;registrations.read&quot;),le=de||ce?!1:c(&quot;registrations.read&quot;),ge=ie||ce?!1:c(&quot;recommendations.read&quot;),xe=fe||le||ge,pe=c(&quot;registrations.update_status&quot;),ue=c(&quot;registrations.send_to_correction&quot;),we=c(&quot;registrations.update&quot;),ke=c(&quot;registrations.delete&quot;),De=c(&quot;registrations.export&quot;),Le=(n===&quot;summit&quot;||n===&quot;seminar&quot;)&amp;&amp;a.includes(&quot;COMMISSION_COMMUNICATION&quot;),ze=a.includes(&quot;COMMISSION_ADMINISTRATION&quot;)&amp;&amp;!a.includes(&quot;SUPER_ADMIN&quot;),Oe=a.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;)&amp;&amp;!a.includes(&quot;SUPER_ADMIN&quot;),Ve=ze&amp;&amp;n===&quot;seminar&quot;||Oe&amp;&amp;n===&quot;summit&quot;,Qe=Ve?!1:pe,Ze=Ve?!1:we,Je=Ve?!1:ke,qe=pe&amp;&amp;!(ze&amp;&amp;S?.event?.event_type===&quot;seminar&quot;)&amp;&amp;!(Oe&amp;&amp;S?.event?.event_type===&quot;summit&quot;);O.useEffect(()=&gt;{const Ce=[];fe&amp;&amp;Ce.push(&quot;summit&quot;),le&amp;&amp;Ce.push(&quot;seminar&quot;),ge&amp;&amp;Ce.push(&quot;recommendations&quot;),Ce.length&gt;0&amp;&amp;!Ce.includes(n)&amp;&amp;r({view:Ce[0]},{replace:!0})},[fe,le,ge,n,r]),O.useEffect(()=&gt;{const Ce=$.current;Ce&amp;&amp;(Ce.open=!1)},[n]);const tt=O.useMemo(()=&gt;{const Ce={...d,page:h,per_page:p};return n===&quot;summit&quot;&amp;&amp;Q.length&gt;0?(Ce.event_type=&quot;summit&quot;,Q.length===1?Ce.event_id=Q[0]:d.event_id&amp;&amp;!Q.includes(d.event_id)&amp;&amp;(Ce.event_id=void 0)):n===&quot;seminar&quot;&amp;&amp;te.length&gt;0&amp;&amp;(Ce.event_type=&quot;seminar&quot;,te.length===1?Ce.event_id=te[0]:d.event_id&amp;&amp;!te.includes(d.event_id)&amp;&amp;(Ce.event_id=void 0)),Ce},[d,h,p,n,Q,te]),{data:nt,loading:Me,error:st,refetch:$t}=g$(tt,xe&amp;&amp;s&amp;&amp;(n===&quot;summit&quot;||n===&quot;seminar&quot;)),ft=O.useMemo(()=&gt;{const Ce={created_from:d.created_from,created_to:d.created_to};return n===&quot;summit&quot;&amp;&amp;Q.length&gt;0?Q.length===1?Ce.event_id=Q[0]:Ce.event_type=&quot;summit&quot;:n===&quot;seminar&quot;&amp;&amp;te.length&gt;0?te.length===1?Ce.event_id=te[0]:Ce.event_type=&quot;seminar&quot;:tt.event_id&amp;&amp;(Ce.event_id=tt.event_id),Ce},[n,Q,te,d.created_from,d.created_to,tt.event_id]),{data:zt,loading:Bt,refetch:Ct}=b$(ft,xe&amp;&amp;s&amp;&amp;(n===&quot;summit&quot;||n===&quot;seminar&quot;)),{data:rr,refetch:Gt}=y$(ft,xe&amp;&amp;s&amp;&amp;(n===&quot;summit&quot;||n===&quot;seminar&quot;)),_t=O.useMemo(()=&gt;({status:d.status,q:d.q,created_from:d.created_from,created_to:d.created_to,page:g,per_page:v}),[d.status,d.q,d.created_from,d.created_to,g,v]),{data:Rt,loading:Jt,error:it,refetch:Ut}=v$(_t,ge&amp;&amp;s),Xt=async()=&gt;{D(!0);try{const Ce=[$t(),Ct(),Gt()];ge&amp;&amp;Ce.push(Ut()),await Promise.all(Ce)}finally{D(!1)}};if(u)return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Chargement...&quot;})});if(!s)return i.jsx(Kn,{to:&quot;/login&quot;,replace:!0});if(l)return i.jsx(Kn,{to:&quot;/account&quot;,replace:!0});if(!xe)return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-soft p-8 text-center max-w-md&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-2xl font-semibold text-ink-900 mb-4&quot;,children:&quot;Accès non autorisé&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Vous n&#039;avez pas les permissions nécessaires pour accéder à cette page.&quot;})]})});if(st){if(st.status===403&amp;&amp;(c(&quot;finance.dashboard&quot;)||c(&quot;payments.read&quot;)))return o(&quot;/admin/finance&quot;,{replace:!0}),null;const Ce=st.status===401?&quot;Vous devez être connecté pour accéder à cette page.&quot;:st.status===403?&quot;Vous n&#039;avez pas les permissions nécessaires.&quot;:st.data?.message||&quot;Une erreur est survenue.&quot;;return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-soft p-8 text-center max-w-md&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-2xl font-semibold text-ink-900 mb-4&quot;,children:&quot;Erreur&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 mb-4&quot;,children:Ce}),i.jsx(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;window.location.reload(),children:&quot;Recharger la page&quot;})]})})}const Mt=Ce=&gt;{A(Ce),q(!0)},be=Ce=&gt;{A(Ce),B(!0)},Ne=Ce=&gt;{A(Ce),T(!0)},Re=Ce=&gt;{A(Ce),E(!0)},Ge=()=&gt;{$t(),Ct(),S&amp;&amp;(q(!1),q(!0))},vt=()=&gt;{$t(),Ct(),S&amp;&amp;(q(!1),q(!0))},rt=()=&gt;{$t(),Ct(),A(null)},Pt=Ce=&gt;{J(Ce)},jt=()=&gt;{J(null),$t(),Ct()},at=async Ce=&gt;{Y(Ce.id);try{await ns.resendActivationEmail(Ce.id),alert(&quot;Email d’activation renvoyé. Le participant recevra le lien pour confirmer et choisir son mot de passe.&quot;)}catch(ct){if(ct instanceof kt){const pt=ct.data.errors?.status?.[0]||ct.data.errors?.registration?.[0]||ct.data.message;alert(pt||ct.message)}else alert(&quot;Erreur lors de l’envoi de l’email.&quot;)}finally{Y(null)}},Ot=async Ce=&gt;{if(Z!==Ce.id){ne(Ce.id);try{const ct=await ns.generateActivationLink(Ce.id),pt=ct.data.activation_url;navigator.clipboard?.writeText?await navigator.clipboard.writeText(pt):window.prompt(&quot;Copiez le lien d&#039;activation :&quot;,pt),alert(`Lien d’activation copié (valide ${ct.data.expires_in_days} jours). Vous pouvez le transmettre au participant.`)}catch(ct){if(ct instanceof kt){const pt=ct.data.errors?.status?.[0]||ct.data.errors?.registration?.[0]||ct.data.message;alert(pt||ct.message)}else alert(&quot;Erreur lors de la génération du lien d&#039;activation.&quot;)}finally{ne(null)}}},At=Ce=&gt;{m(Ce),window.scrollTo({top:0,behavior:&quot;smooth&quot;})},Vt=Ce=&gt;{x(Ce),m(1)},dr=Ce=&gt;{m(1),f(Ce)},sr=Ce=&gt;{m(1),f(Ce===&quot;total&quot;?ct=&gt;({...ct,status:void 0}):ct=&gt;({...ct,status:[Ce]}))},_r=Ce=&gt;{V(Ce),console.log(&quot;Recommandation sélectionnée:&quot;,Ce),alert(`Recommandation #${Ce.id}

Recommandé: ${Ce.recommended_full_name}
Email recommandé: ${Ce.recommended_email||&quot;-&quot;}
Profession: ${Ce.recommended_profession}
Pays: ${Ce.recommended_residence_country}

Recommandeur: ${Ce.recommender_first_name} ${Ce.recommender_last_name} (${Ce.recommender_email})`)},fr=Ce=&gt;{V(Ce),k(!0)},Yr=()=&gt;{Ut()},he=c(&quot;recommendations.delete&quot;),je=c(&quot;recommendations.update_status&quot;),Fe=Ce=&gt;{confirm(`Supprimer la recommandation pour ${Ce.recommended_full_name} ? Cette action est irréversible.`)&amp;&amp;Kd.delete(Ce.id).then(()=&gt;Ut()).catch(ct=&gt;{alert(ct?.data?.message??&quot;Erreur lors de la suppression.&quot;)})},Ue=Ce=&gt;{y(Ce),window.scrollTo({top:0,behavior:&quot;smooth&quot;})},lt=Ce=&gt;{_(Ce),y(1)},Ke=async()=&gt;{const Ce=[];let ct=1,pt=!0;for(;pt;)try{const Yt=await ns.list({...tt,page:ct,per_page:100});Ce.push(...Yt.data),ct&gt;=Yt.meta.last_page?pt=!1:ct++}catch(Yt){throw console.error(&quot;Erreur lors de la récupération des inscriptions:&quot;,Yt),Yt}return Ce},Ye=async()=&gt;{const Ce=[];let ct=1,pt=!0;for(;pt;)try{const Yt=await Kd.list({status:d.status,q:d.q,created_from:d.created_from,created_to:d.created_to,page:ct,per_page:100});Ce.push(...Yt.data),ct&gt;=Yt.meta.last_page?pt=!1:ct++}catch(Yt){throw console.error(&quot;Erreur lors de la récupération des recommandations:&quot;,Yt),Yt}return Ce},Ht=async()=&gt;{R(),C(!0);try{const Ce=await Ke(),pt=O6(Ce,n===&quot;summit&quot;||n===&quot;seminar&quot;?n:void 0),hr=`inscriptions_${n===&quot;summit&quot;?&quot;sommet&quot;:&quot;seminaire&quot;}_${new Date().toISOString().split(&quot;T&quot;)[0]}`;Dd(pt,hr)}catch(Ce){alert(&quot;Erreur lors de l&#039;export CSV: &quot;+(Ce instanceof Error?Ce.message:&quot;Erreur inconnue&quot;))}finally{C(!1)}},Dt=async()=&gt;{R(),C(!0);try{const Ce=await Ke(),pt=O6(Ce,n===&quot;summit&quot;||n===&quot;seminar&quot;?n:void 0),hr=`inscriptions_${n===&quot;summit&quot;?&quot;sommet&quot;:&quot;seminaire&quot;}_${new Date().toISOString().split(&quot;T&quot;)[0]}`;await Ys(pt,hr,n===&quot;summit&quot;?&quot;Inscriptions Sommet&quot;:&quot;Inscriptions Séminaire&quot;)}catch(Ce){alert(&quot;Erreur lors de l&#039;export XLSX: &quot;+(Ce instanceof Error?Ce.message:&quot;Erreur inconnue&quot;))}finally{C(!1)}},St=async()=&gt;{R(),C(!0);try{const Ce=await Ye(),ct=T6(Ce),pt=`recommandations_${new Date().toISOString().split(&quot;T&quot;)[0]}`;Dd(ct,pt)}catch(Ce){alert(&quot;Erreur lors de l&#039;export CSV: &quot;+(Ce instanceof Error?Ce.message:&quot;Erreur inconnue&quot;))}finally{C(!1)}},bt=async()=&gt;{R(),C(!0);try{const Ce=await Ye(),ct=T6(Ce),pt=`recommandations_${new Date().toISOString().split(&quot;T&quot;)[0]}`;await Ys(ct,pt,&quot;Recommandations&quot;)}catch(Ce){alert(&quot;Erreur lors de l&#039;export XLSX: &quot;+(Ce instanceof Error?Ce.message:&quot;Erreur inconnue&quot;))}finally{C(!1)}};return i.jsxs(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex flex-col&quot;,children:[i.jsx(xf,{showRefresh:!0,refreshing:P,onRefresh:Xt}),i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 flex-1&quot;,children:[i.jsx(s0,{currentSection:&quot;registrations&quot;,registrationView:n,showSommet:fe,showSeminar:le,showRecommendations:ge,showUsers:!1,showFinance:ce||se?!1:c(&quot;finance.dashboard&quot;)||c(&quot;payments.read&quot;),showSettings:ie||de||ce||se?!1:c(&quot;settings.read&quot;)||c(&quot;settings.update&quot;)}),i.jsxs(&quot;main&quot;,{className:&quot;min-w-0 flex-1 lg:ml-48 pb-16 lg:pb-0&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;w-full min-w-0 max-w-full px-3 py-3 sm:px-5 sm:py-6 lg:px-6 lg:py-8&quot;,children:[i.jsx(Oz,{title:n===&quot;summit&quot;?&quot;Inscriptions Sommet&quot;:n===&quot;seminar&quot;?&quot;Inscriptions Séminaire&quot;:&quot;Recommandations Séminaire&quot;,subtitle:n===&quot;summit&quot;?&quot;Gérez et suivez toutes les inscriptions au Sommet&quot;:n===&quot;seminar&quot;?&quot;Gérez et suivez toutes les inscriptions au Séminaire&quot;:&quot;Gérez et suivez toutes les recommandations pour le séminaire&quot;,actions:(n===&quot;summit&quot;||n===&quot;seminar&quot;)&amp;&amp;!Le&amp;&amp;De&amp;&amp;!(ze&amp;&amp;n===&quot;seminar&quot;)&amp;&amp;!(Oe&amp;&amp;n===&quot;summit&quot;)||n===&quot;recommendations&quot;&amp;&amp;!ze&amp;&amp;je?i.jsxs(&quot;details&quot;,{ref:$,className:&quot;relative&quot;,children:[i.jsxs(&quot;summary&quot;,{className:&quot;flex max-w-[min(100%,14rem)] cursor-pointer list-none items-center gap-2 rounded-lg border-2 border-brand-900 bg-white px-3 py-2 text-xs font-medium uppercase leading-tight tracking-wider text-brand-900 sm:max-w-none sm:px-4 sm:text-sm [&amp;::-webkit-details-marker]:hidden&quot;,children:[&quot;TELECHARGER LES LISTES&quot;,i.jsx(qd,{className:&quot;h-4 w-4 shrink-0 opacity-70&quot;,&quot;aria-hidden&quot;:!0})]}),i.jsxs(&quot;div&quot;,{className:&quot;absolute right-0 z-50 mt-2 w-56 overflow-hidden rounded-lg border border-gray-200 bg-white py-1 shadow-lg&quot;,onClick:Ce=&gt;Ce.stopPropagation(),children:[(n===&quot;summit&quot;||n===&quot;seminar&quot;)&amp;&amp;!Le&amp;&amp;De&amp;&amp;!(ze&amp;&amp;n===&quot;seminar&quot;)&amp;&amp;!(Oe&amp;&amp;n===&quot;summit&quot;)?i.jsxs(i.Fragment,{children:[i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,disabled:N,className:&quot;flex w-full items-center gap-2 px-4 py-2.5 text-left text-sm text-ink-900 hover:bg-brand-50 disabled:opacity-50&quot;,onClick:()=&gt;{Ht()},children:[i.jsx(Xm,{className:&quot;h-4 w-4 shrink-0&quot;,&quot;aria-hidden&quot;:!0}),N?&quot;Export…&quot;:&quot;Export CSV&quot;]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,disabled:N,className:&quot;flex w-full items-center gap-2 px-4 py-2.5 text-left text-sm text-ink-900 hover:bg-brand-50 disabled:opacity-50&quot;,onClick:()=&gt;{Dt()},children:[i.jsx(p4,{className:&quot;h-4 w-4 shrink-0&quot;,&quot;aria-hidden&quot;:!0}),N?&quot;Export…&quot;:&quot;Export XLSX&quot;]})]}):null,n===&quot;recommendations&quot;&amp;&amp;!ze&amp;&amp;je?i.jsxs(i.Fragment,{children:[i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,disabled:N,className:&quot;flex w-full items-center gap-2 px-4 py-2.5 text-left text-sm text-ink-900 hover:bg-brand-50 disabled:opacity-50&quot;,onClick:()=&gt;{St()},children:[i.jsx(Xm,{className:&quot;h-4 w-4 shrink-0&quot;,&quot;aria-hidden&quot;:!0}),N?&quot;Export…&quot;:&quot;Export CSV&quot;]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,disabled:N,className:&quot;flex w-full items-center gap-2 px-4 py-2.5 text-left text-sm text-ink-900 hover:bg-brand-50 disabled:opacity-50&quot;,onClick:()=&gt;{bt()},children:[i.jsx(p4,{className:&quot;h-4 w-4 shrink-0&quot;,&quot;aria-hidden&quot;:!0}),N?&quot;Export…&quot;:&quot;Export XLSX&quot;]})]}):null]})]}):void 0}),i.jsx(Tz,{children:i.jsx(Pz,{filters:d,onFiltersChange:dr,hideEventFilter:n===&quot;summit&quot;||n===&quot;seminar&quot;,showCountryFilter:n===&quot;summit&quot;||n===&quot;seminar&quot;,countryShortcuts:rr})}),(n===&quot;summit&quot;||n===&quot;seminar&quot;)&amp;&amp;!Le&amp;&amp;i.jsxs(Iz,{children:[i.jsx(&quot;h3&quot;,{className:&quot;mb-1.5 text-xs font-semibold text-ink-800 sm:mb-2 sm:text-sm&quot;,children:&quot;Vue d&#039;ensemble&quot;}),i.jsx(Dae,{counts:zt?.by_status??{},loading:Bt,activeSingleStatus:X,onKpiClick:sr})]}),n===&quot;summit&quot;||n===&quot;seminar&quot;?i.jsxs(i.Fragment,{children:[i.jsx(&quot;div&quot;,{className:&quot;mb-2 min-w-0 sm:mb-4&quot;,children:Le?i.jsx(Bz,{registrations:nt?.data??[],loading:Me}):i.jsx(Fz,{registrations:nt?.data||[],loading:Me,eventType:n===&quot;summit&quot;||n===&quot;seminar&quot;?n:void 0,onViewDetails:Mt,onUpdateStatus:Qe?be:void 0,onEdit:Ze?Ne:void 0,onDelete:Je?Re:void 0,onResendActivation:Ze?at:void 0,onCopyActivationLink:Ze?Ot:void 0,onResetParticipantPassword:Ze?Pt:void 0,canUpdateStatus:Qe,canEdit:Ze,canDelete:Je,canResendActivation:Ze,canResetParticipantPassword:Ze,resendingActivationId:z})}),nt?.meta&amp;&amp;nt.meta.last_page&gt;1&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex min-w-0 flex-wrap items-center justify-between gap-3 rounded-xl bg-white p-3 shadow-soft sm:p-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 flex-wrap items-center gap-3&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;min-w-0 text-sm text-ink-500&quot;,children:[&quot;Affichage de &quot;,nt.meta.from,&quot; à &quot;,nt.meta.to,&quot; sur&quot;,&quot; &quot;,nt.meta.total,&quot; inscriptions&quot;]}),i.jsxs(&quot;select&quot;,{value:p,onChange:Ce=&gt;Vt(Number(Ce.target.value)),className:&quot;px-3 py-1 border border-gray-300 rounded-lg text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:20,children:&quot;20 par page&quot;}),i.jsx(&quot;option&quot;,{value:50,children:&quot;50 par page&quot;}),i.jsx(&quot;option&quot;,{value:100,children:&quot;100 par page&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex shrink-0 items-center gap-2&quot;,children:[i.jsx(Ae,{variant:&quot;outline&quot;,onClick:()=&gt;At(h-1),disabled:h===1,children:&quot;Précédent&quot;}),i.jsxs(&quot;span&quot;,{className:&quot;whitespace-nowrap px-2 text-sm text-ink-500&quot;,children:[&quot;Page &quot;,h,&quot; sur &quot;,nt.meta.last_page]}),i.jsx(Ae,{variant:&quot;outline&quot;,onClick:()=&gt;At(h+1),disabled:h&gt;=nt.meta.last_page,children:&quot;Suivant&quot;})]})]}),!Le&amp;&amp;i.jsxs(&quot;details&quot;,{className:&quot;mb-6 min-w-0 rounded-xl border border-gray-200 bg-white/90 shadow-sm sm:mb-8&quot;,children:[i.jsxs(&quot;summary&quot;,{className:&quot;flex cursor-pointer list-none items-center justify-between gap-2 px-3 py-2 text-sm font-semibold text-ink-900 sm:px-4 sm:py-3 sm:text-base [&amp;::-webkit-details-marker]:hidden&quot;,children:[&quot;Statistiques&quot;,i.jsx(qd,{className:&quot;h-4 w-4 shrink-0 text-ink-500 sm:h-5 sm:w-5&quot;,&quot;aria-hidden&quot;:!0})]}),i.jsx(&quot;div&quot;,{className:&quot;border-t border-gray-100 px-3 py-3 sm:px-4 sm:py-4&quot;,children:i.jsx(Rae,{stats:zt,loading:Bt})})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-6 min-w-0&quot;,children:[it&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-xl p-4 mb-4&quot;,children:i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-red-800&quot;,children:[&quot;Erreur lors du chargement des recommandations: &quot;,it.message]})}),i.jsx($z,{recommendations:Rt?.data||[],loading:Jt,onViewDetails:_r,onTreat:je&amp;&amp;!ze?fr:void 0,onDelete:Fe,canDelete:ze?!1:he})]}),Rt?.meta&amp;&amp;Rt.meta.last_page&gt;1&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 flex-wrap items-center justify-between gap-3 rounded-xl bg-white p-3 shadow-soft sm:p-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex min-w-0 flex-wrap items-center gap-3&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;min-w-0 text-sm text-ink-500&quot;,children:[&quot;Affichage de &quot;,Rt.meta.from,&quot; à &quot;,Rt.meta.to,&quot; sur&quot;,&quot; &quot;,Rt.meta.total,&quot; recommandations&quot;]}),i.jsxs(&quot;select&quot;,{value:v,onChange:Ce=&gt;lt(Number(Ce.target.value)),className:&quot;px-3 py-1 border border-gray-300 rounded-lg text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:20,children:&quot;20 par page&quot;}),i.jsx(&quot;option&quot;,{value:50,children:&quot;50 par page&quot;}),i.jsx(&quot;option&quot;,{value:100,children:&quot;100 par page&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex shrink-0 items-center gap-2&quot;,children:[i.jsx(Ae,{variant:&quot;outline&quot;,onClick:()=&gt;Ue(g-1),disabled:g===1,children:&quot;Précédent&quot;}),i.jsxs(&quot;span&quot;,{className:&quot;whitespace-nowrap px-2 text-sm text-ink-500&quot;,children:[&quot;Page &quot;,g,&quot; sur &quot;,Rt.meta.last_page]}),i.jsx(Ae,{variant:&quot;outline&quot;,onClick:()=&gt;Ue(g+1),disabled:g&gt;=Rt.meta.last_page,children:&quot;Suivant&quot;})]})]})]})]}),i.jsx(Zz,{registration:S,isOpen:F,onClose:()=&gt;{q(!1),A(null)},onUpdateStatus:qe?be:void 0,canUpdateStatus:qe,canChangePlanAfterPayment:Ze,onRegistrationChanged:Xt,onCopyActivationLink:Ze?Ot:void 0,copyingActivationLink:Z!==null&amp;&amp;S!==null&amp;&amp;Z===S.id,onResetParticipantPassword:Ze?Pt:void 0}),U&amp;&amp;i.jsx(Qz,{registration:U,onClose:()=&gt;J(null),onSuccess:jt}),i.jsx(Jz,{registration:S,isOpen:H,onClose:()=&gt;{B(!1),A(null)},onSuccess:Ge,canSendToCorrection:ue}),i.jsx(eU,{registration:S,isOpen:K,onClose:()=&gt;{T(!1),A(null)},onSuccess:vt}),i.jsx(tU,{registration:S,isOpen:L,onClose:()=&gt;{E(!1),A(null)},onSuccess:rt}),i.jsx(nU,{recommendation:I,isOpen:j,onClose:()=&gt;{k(!1),V(null)},onSuccess:Yr})]})]})]})}function Xae(){const{isAuthenticated:e,isParticipant:r,loading:t,can:n,roles:o}=Ts(),s=o.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),l=o.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!o.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),u=o.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!o.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),c=o.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),[a,d]=O.useState(&quot;&quot;),[f,h]=O.useState(&quot;&quot;),[m,p]=O.useState(&quot;&quot;),[x,g]=O.useState(!1),[y,v]=O.useState(!1),[_,S]=O.useState(!1),[A,I]=O.useState(null),[V,F]=O.useState({}),q=async H=&gt;{H.preventDefault(),I(null),F({}),S(!1),v(!0);try{await o7.changePassword({current_password:a,new_password:f,new_password_confirmation:m,revoke_other_tokens:x}),S(!0),d(&quot;&quot;),h(&quot;&quot;),p(&quot;&quot;)}catch(B){const K=B;if(I(K.data?.message??&quot;Erreur lors du changement de mot de passe.&quot;),K.data?.errors){const T={};for(const[L,E]of Object.entries(K.data.errors))T[L]=Array.isArray(E)?E[0]:String(E);F(T)}}finally{v(!1)}};return t?i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Chargement...&quot;})}):e?r?i.jsx(Kn,{to:&quot;/account&quot;,replace:!0}):i.jsxs(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex flex-col&quot;,children:[i.jsx(xf,{}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-1&quot;,children:[i.jsx(s0,{currentSection:&quot;account&quot;,showSommet:s||c?!1:n(&quot;registrations.read&quot;),showSeminar:l||u?!1:n(&quot;registrations.read&quot;),showRecommendations:s||u?!1:n(&quot;recommendations.read&quot;),showUsers:!1,showFinance:u||c?!1:n(&quot;finance.dashboard&quot;)||n(&quot;payments.read&quot;),showSettings:s||l||u||c?!1:n(&quot;settings.read&quot;)||n(&quot;settings.update&quot;)}),i.jsx(&quot;main&quot;,{className:&quot;flex-1 w-full lg:ml-48 pb-16 lg:pb-0&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;w-full px-4 sm:px-6 lg:px-8 py-6 lg:py-8 max-w-xl&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-2xl font-bold text-ink-900 mb-2&quot;,children:&quot;Mon compte&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 mb-6&quot;,children:&quot;Changez votre mot de passe. Optionnel : révoquer les autres sessions (reconnexion requise sur les autres appareils).&quot;}),i.jsxs(wt,{className:&quot;p-6&quot;,children:[_&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-green-50 border border-green-200 rounded-lg text-sm text-green-700&quot;,children:&quot;Mot de passe mis à jour avec succès.&quot;}),A&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700&quot;,children:A}),i.jsxs(&quot;form&quot;,{onSubmit:q,className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Mot de passe actuel&quot;}),i.jsx(&quot;input&quot;,{type:&quot;password&quot;,value:a,onChange:H=&gt;d(H.target.value),required:!0,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,autoComplete:&quot;current-password&quot;}),V.current_password&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:V.current_password})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Nouveau mot de passe&quot;}),i.jsx(&quot;input&quot;,{type:&quot;password&quot;,value:f,onChange:H=&gt;h(H.target.value),required:!0,minLength:8,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,autoComplete:&quot;new-password&quot;}),V.new_password&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:V.new_password})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Confirmer le nouveau mot de passe&quot;}),i.jsx(&quot;input&quot;,{type:&quot;password&quot;,value:m,onChange:H=&gt;p(H.target.value),required:!0,minLength:8,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,autoComplete:&quot;new-password&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,id:&quot;revoke&quot;,checked:x,onChange:H=&gt;g(H.target.checked),className:&quot;rounded border-gray-300&quot;}),i.jsx(&quot;label&quot;,{htmlFor:&quot;revoke&quot;,className:&quot;text-sm text-ink-700&quot;,children:&quot;Révoquer les autres sessions (déconnecter les autres appareils)&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:y,children:y?&quot;Enregistrement...&quot;:&quot;Changer le mot de passe&quot;}),i.jsx(ut,{to:&quot;/admin/registrations&quot;,className:&quot;inline-flex items-center px-4 py-2 text-sm font-medium text-ink-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50&quot;,children:&quot;Retour au tableau de bord&quot;})]})]})]})]})})]})]}):i.jsx(Kn,{to:&quot;/login&quot;,replace:!0})}function L6(e,r){const t=wr(e);return t===&quot;—&quot;?&quot;—&quot;:r===&quot;expense&quot;?`-${y7(e)} XOF`:t}function F6(e){return e===&quot;expense&quot;?&quot;bg-red-50 text-red-950 border-l-4 border-l-red-600 hover:bg-red-100/90&quot;:e===&quot;revenue&quot;?&quot;bg-emerald-900/[0.07] text-emerald-950 border-l-4 border-l-emerald-800 hover:bg-emerald-900/12&quot;:&quot;hover:bg-gray-50/80&quot;}function Gae(e){const r=new Map;for(const t of e){const n=t.budget_category_id,o=Number(t.amount_realized)||0,s=r.get(n);s?s.amount_realized+=o:r.set(n,{category_name:t.category_name,category_type:t.category_type,amount_realized:o})}return[...r.entries()].map(([t,n])=&gt;({budget_category_id:t,...n})).sort((t,n)=&gt;{const o=l=&gt;l===&quot;revenue&quot;?0:l===&quot;expense&quot;?1:2,s=o(t.category_type)-o(n.category_type);return s!==0?s:t.category_name.localeCompare(n.category_name,&quot;fr&quot;,{sensitivity:&quot;base&quot;})})}function Yae({hasSelectedEvent:e,readOnly:r,alerts:t,table:n,writable:o}){const[s,l]=O.useState(null),{linesError:u,saveMessage:c}=t,{lines:a,loading:d,totals:f,moveLineLoading:h,onMoveUp:m,onMoveDown:p,onOpenEdit:x,onDelete:g}=n,y=O.useMemo(()=&gt;Gae(a),[a]);return i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-bold text-ink-900 tracking-tight&quot;,children:&quot;Budget&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mt-1&quot;,children:&quot;Budget prévisionnel par ligne ; en dessous, synthèse des montants réalisés regroupés par catégorie (XOF).&quot;})]}),e?i.jsxs(i.Fragment,{children:[u&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:u}),c&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-green-50 border border-green-200 rounded-lg text-green-700 text-sm&quot;,children:c}),i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 overflow-hidden mb-6 shadow-sm&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;px-4 py-3 border-b border-gray-100 bg-gray-50/80&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:&quot;Budget prévisionnel&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-0.5&quot;,children:&quot;Montants prévus par ligne (libellé détaillé).&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left min-w-[560px]&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50/80 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Catégorie&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Type&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Libellé&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Prévu (XOF)&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 w-24 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Actions&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200&quot;,children:d?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:5,className:&quot;px-4 py-10 text-center text-ink-500 text-sm&quot;,children:&quot;Chargement des lignes budgétaires…&quot;})}):a.length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:5,className:&quot;px-4 py-10 text-center text-ink-600 text-sm leading-relaxed&quot;,children:&quot;Aucune ligne de budget pour cet événement. Utilisez le formulaire ci-dessous pour en ajouter une.&quot;})}):a.map(v=&gt;i.jsxs(&quot;tr&quot;,{className:F6(v.category_type),children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-medium&quot;,children:v.category_name}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm opacity-95&quot;,children:v.category_type===&quot;revenue&quot;?&quot;Recettes&quot;:v.category_type===&quot;expense&quot;?&quot;Dépenses&quot;:&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm opacity-95 max-w-[200px] truncate&quot;,title:v.label??void 0,children:v.label??&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-right tabular-nums whitespace-nowrap font-medium&quot;,children:L6(v.amount_planned,v.category_type)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right&quot;,children:!r&amp;&amp;i.jsx(Ta,{rowId:v.id,openMenuId:s,setOpenMenuId:l,onEdit:()=&gt;x(v),editLabel:&quot;Modifier&quot;,menuItems:[{id:&quot;up&quot;,label:&quot;Monter&quot;,onSelect:()=&gt;m(v),disabled:!!h||a[0]?.id===v.id,title:&quot;Monter la ligne&quot;},{id:&quot;down&quot;,label:&quot;Descendre&quot;,onSelect:()=&gt;p(v),disabled:!!h||a[a.length-1]?.id===v.id,title:&quot;Descendre la ligne&quot;},{id:&quot;delete&quot;,label:&quot;Supprimer&quot;,danger:!0,onSelect:()=&gt;g(v),title:&quot;Supprimer la ligne&quot;}]})})]},v.id))})]})}),a.length&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;border-t border-gray-200 divide-y divide-gray-200&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;bg-amber-50/50 px-4 py-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-semibold text-ink-600 uppercase tracking-wider mb-3&quot;,children:&quot;Totaux budget (prévu) et équilibrage&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-x-8 gap-y-2 text-sm&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;span&quot;,{className:&quot;text-ink-500 font-medium&quot;,children:&quot;Total Recettes (prévu) :&quot;}),&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-semibold text-ink-900 tabular-nums whitespace-nowrap&quot;,children:wr(f.totalRevenuePlanned)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;span&quot;,{className:&quot;text-ink-500 font-medium&quot;,children:&quot;Total Dépenses (prévu) :&quot;}),&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-semibold text-ink-900 tabular-nums whitespace-nowrap&quot;,children:wr(f.totalExpensePlanned)})]})]}),i.jsx(&quot;div&quot;,{className:&quot;mt-3 pt-3 border-t border-amber-200&quot;,children:f.shortfall&gt;0?i.jsxs(&quot;p&quot;,{className:&quot;text-amber-800 font-medium tabular-nums whitespace-nowrap&quot;,children:[&quot;Fonds à rechercher : &quot;,wr(f.shortfall)]}):f.surplus&gt;0?i.jsxs(&quot;p&quot;,{className:&quot;text-green-800 font-medium tabular-nums whitespace-nowrap&quot;,children:[&quot;Montant restant après dépenses : &quot;,wr(f.surplus)]}):i.jsx(&quot;p&quot;,{className:&quot;text-ink-600 font-medium&quot;,children:&quot;Budget prévu équilibré.&quot;})})]}),!d&amp;&amp;y.length&gt;0?i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-0&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;px-4 py-3 border-b border-gray-100 bg-slate-50/90&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:&quot;Réalisation — synthèse par catégorie&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-0.5&quot;,children:&quot;Total réalisé par catégorie (somme des lignes détaillées).&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left min-w-[480px]&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-slate-100/80 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Catégorie&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Type&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Réalisé (XOF)&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200&quot;,children:y.map(v=&gt;i.jsxs(&quot;tr&quot;,{className:F6(v.category_type),children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-medium&quot;,children:v.category_name}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm opacity-95&quot;,children:v.category_type===&quot;revenue&quot;?&quot;Recettes&quot;:v.category_type===&quot;expense&quot;?&quot;Dépenses&quot;:&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-right tabular-nums whitespace-nowrap font-medium&quot;,children:L6(v.amount_realized,v.category_type)})]},v.budget_category_id))})]})})]}):null,i.jsxs(&quot;div&quot;,{className:&quot;bg-green-50/50 px-4 py-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-semibold text-ink-600 uppercase tracking-wider mb-3&quot;,children:&quot;Réalisation — totaux globaux&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-x-8 gap-y-2 text-sm&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;span&quot;,{className:&quot;text-ink-500 font-medium&quot;,children:&quot;Total Recettes (réalisé) :&quot;}),&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-semibold text-ink-900 tabular-nums&quot;,children:wr(f.totalRevenueRealized)})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;span&quot;,{className:&quot;text-ink-500 font-medium&quot;,children:&quot;Total Dépenses (réalisé) :&quot;}),&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-semibold text-ink-900 tabular-nums&quot;,children:wr(f.totalExpenseRealized)})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-3 pt-3 border-t border-green-200&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;text-ink-600 font-medium&quot;,children:&quot;Solde : &quot;}),i.jsx(&quot;span&quot;,{className:`font-semibold tabular-nums whitespace-nowrap ${f.totalRevenueRealized-f.totalExpenseRealized&gt;=0?&quot;text-green-800&quot;:&quot;text-amber-800&quot;}`,children:wr(f.totalRevenueRealized-f.totalExpenseRealized)})]})]})]})]}),o&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;p-4 sm:p-5 bg-gray-50 rounded-xl border border-gray-200 mb-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-800 mb-3&quot;,children:&quot;Nouvelle ligne de budget&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-4 items-end&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-3&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center justify-between gap-2 mb-1.5&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700&quot;,children:&quot;Catégorie&quot;}),o.addLine.onOpenCategoryModal?i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:o.addLine.onOpenCategoryModal,className:&quot;text-xs font-semibold text-brand-700 hover:text-brand-900 hover:underline shrink-0&quot;,children:&quot;Nouvelle catégorie&quot;}):null]}),i.jsxs(&quot;select&quot;,{value:o.addLine.categoryId,onChange:v=&gt;o.addLine.onCategoryChange(v.target.value===&quot;&quot;?&quot;&quot;:Number(v.target.value)),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;- Choisir -&quot;}),o.addLine.categories.map(v=&gt;i.jsx(&quot;option&quot;,{value:v.id,children:v.name},v.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-4&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Libellé (optionnel)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:o.addLine.label,onChange:v=&gt;o.addLine.onLabelChange(v.target.value),placeholder:&quot;Ex. Location cars, Catering&quot;,className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;sm:max-w-[12rem] lg:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Montant prévu (XOF)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:0,value:o.addLine.amount||&quot;&quot;,onChange:v=&gt;o.addLine.onAmountChange(parseInt(v.target.value,10)||0),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;lg:col-span-3 flex sm:justify-start&quot;,children:i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:o.addLine.onSubmit,disabled:o.addLine.submitting,className:&quot;w-full sm:w-auto min-h-[42px]&quot;,children:o.addLine.submitting?&quot;Ajout en cours…&quot;:&quot;Ajouter une ligne&quot;})})]})]}),o.addLine.error&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:o.addLine.error}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col sm:flex-row flex-wrap items-stretch sm:items-center justify-end gap-2&quot;,children:[i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:o.exportBar.onExportCsv,disabled:!!o.exportBar.exportFinanceLoading||o.exportBar.linesCount===0,title:&quot;Exporter le budget au format CSV&quot;,className:&quot;inline-flex items-center justify-center gap-1.5 px-3 py-2 text-sm font-medium border border-gray-300 rounded-lg bg-white text-ink-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:[i.jsx(La,{size:14,&quot;aria-hidden&quot;:!0}),o.exportBar.exportFinanceLoading===&quot;budget-csv&quot;?&quot;Export…&quot;:&quot;Export CSV&quot;]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:o.exportBar.onExportXlsx,disabled:!!o.exportBar.exportFinanceLoading||o.exportBar.linesCount===0,title:&quot;Exporter le budget au format Excel (XLSX)&quot;,className:&quot;inline-flex items-center justify-center gap-1.5 px-3 py-2 text-sm font-medium border border-gray-300 rounded-lg bg-white text-ink-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:[i.jsx(La,{size:14,&quot;aria-hidden&quot;:!0}),o.exportBar.exportFinanceLoading===&quot;budget-xlsx&quot;?&quot;Export…&quot;:&quot;Export XLSX&quot;]}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:o.exportBar.onSave,className:&quot;min-h-[42px]&quot;,children:&quot;Enregistrer le budget&quot;})]})]})]}):i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-dashed border-gray-300 bg-white p-8 text-center text-ink-600 text-sm leading-relaxed&quot;,children:[&quot;Sélectionnez un &quot;,i.jsx(&quot;strong&quot;,{className:&quot;font-semibold text-ink-800&quot;,children:&quot;événement&quot;}),&quot; ci-dessus pour afficher et modifier le budget.&quot;]})]})}function Zae({open:e,onClose:r,eventType:t,categories:n,onCategoriesChanged:o,onCreatedSelect:s}){const[l,u]=O.useState(&quot;new&quot;),[c,a]=O.useState(null),[d,f]=O.useState({name:&quot;&quot;,code:&quot;&quot;,type:&quot;expense&quot;,event_type:&quot;&quot;,sort_order:0}),[h,m]=O.useState(!1),[p,x]=O.useState(!1),[g,y]=O.useState(null),v=O.useCallback(()=&gt;{u(&quot;new&quot;),a(null),f({name:&quot;&quot;,code:&quot;&quot;,type:&quot;expense&quot;,event_type:t??&quot;&quot;,sort_order:0}),y(null)},[t]);O.useEffect(()=&gt;{e&amp;&amp;v()},[e,v]);const _=I=&gt;{const V=n.find(F=&gt;F.id===I);V&amp;&amp;(u(&quot;edit&quot;),a(I),f({name:V.name,code:V.code??&quot;&quot;,type:V.type,event_type:V.event_type??&quot;&quot;,sort_order:V.sort_order??0}),y(null))},S=async()=&gt;{const I=d.name.trim();if(!I){y(&quot;Le nom est obligatoire.&quot;);return}m(!0),y(null);const V={name:I,code:d.code.trim()||null,type:d.type,event_type:d.event_type===&quot;&quot;?null:d.event_type,sort_order:d.sort_order};try{if(l===&quot;new&quot;){const F=await Fo.create(V);o(),s?.(F.id),r()}else c!=null&amp;&amp;(await Fo.update(c,V),o(),r())}catch(F){if(F instanceof kt){const q=F.data?.message??F.message,H=F.data?.errors;y(H&amp;&amp;typeof H==&quot;object&quot;?`${q} ${Object.values(H).flat().join(&quot; &quot;)}`:q)}else y(F instanceof Error?F.message:&quot;Erreur lors de l’enregistrement.&quot;)}finally{m(!1)}},A=async()=&gt;{if(!(c==null||l!==&quot;edit&quot;)&amp;&amp;window.confirm(&quot;Supprimer cette catégorie ? Les lignes de budget qui l’utilisent seront supprimées (effet en cascade).&quot;)){x(!0),y(null);try{await Fo.delete(c),o(),r()}catch(I){I instanceof kt?y(I.data?.message??I.message??&quot;Suppression impossible.&quot;):y(I instanceof Error?I.message:&quot;Suppression impossible.&quot;)}finally{x(!1)}}};return e?i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-[60] overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex min-h-full items-center justify-center p-4&quot;,children:[i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;fixed inset-0 bg-black/50 transition-opacity&quot;,&quot;aria-hidden&quot;:!0,onClick:()=&gt;!h&amp;&amp;!p&amp;&amp;r()}),i.jsxs(&quot;div&quot;,{className:&quot;relative w-full max-w-lg rounded-xl bg-white shadow-xl border border-gray-200&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-start justify-between gap-3 border-b border-gray-100 px-5 py-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Catégorie de budget&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-1&quot;,children:&quot;Créer ou modifier une catégorie (recettes / dépenses).&quot;})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;!h&amp;&amp;!p&amp;&amp;r(),className:&quot;rounded p-1 text-ink-400 hover:bg-gray-100 hover:text-ink-600&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:22})})]}),i.jsxs(&quot;div&quot;,{className:&quot;px-5 py-4 space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Catégorie à éditer&quot;}),i.jsxs(&quot;select&quot;,{value:l===&quot;new&quot;?&quot;&quot;:String(c??&quot;&quot;),onChange:I=&gt;{const V=I.target.value;V===&quot;&quot;?v():_(Number(V))},disabled:h||p,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;— Nouvelle catégorie —&quot;}),n.map(I=&gt;i.jsxs(&quot;option&quot;,{value:I.id,children:[I.name,&quot; (&quot;,I.type===&quot;revenue&quot;?&quot;Recette&quot;:&quot;Dépense&quot;,I.event_type?` · ${I.event_type}`:&quot; · tous types&quot;,&quot;)&quot;]},I.id))]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:d.name,onChange:I=&gt;f(V=&gt;({...V,name:I.target.value})),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,placeholder:&quot;Ex. Communication, Logistique&quot;,disabled:h||p})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Code (optionnel)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:d.code,onChange:I=&gt;f(V=&gt;({...V,code:I.target.value})),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,placeholder:&quot;Référence courte&quot;,maxLength:50,disabled:h||p})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 sm:grid-cols-2 gap-3&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Type&quot;}),i.jsxs(&quot;select&quot;,{value:d.type,onChange:I=&gt;f(V=&gt;({...V,type:I.target.value})),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,disabled:h||p,children:[i.jsx(&quot;option&quot;,{value:&quot;expense&quot;,children:&quot;Dépense&quot;}),i.jsx(&quot;option&quot;,{value:&quot;revenue&quot;,children:&quot;Recette&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Portée événement&quot;}),i.jsxs(&quot;select&quot;,{value:d.event_type===&quot;&quot;?&quot;&quot;:d.event_type,onChange:I=&gt;f(V=&gt;({...V,event_type:I.target.value===&quot;&quot;?&quot;&quot;:I.target.value})),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,disabled:h||p,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Tous les types d’événements&quot;}),i.jsx(&quot;option&quot;,{value:&quot;summit&quot;,children:&quot;Sommet&quot;}),i.jsx(&quot;option&quot;,{value:&quot;seminar&quot;,children:&quot;Séminaire&quot;}),i.jsx(&quot;option&quot;,{value:&quot;other&quot;,children:&quot;Autre&quot;})]})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Ordre d’affichage&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:0,value:d.sort_order,onChange:I=&gt;f(V=&gt;({...V,sort_order:parseInt(I.target.value,10)||0})),className:&quot;w-full max-w-[8rem] px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,disabled:h||p})]}),g&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-800&quot;,children:g})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center justify-between gap-2 border-t border-gray-100 px-5 py-4 bg-gray-50/80&quot;,children:[i.jsx(&quot;div&quot;,{children:l===&quot;edit&quot;&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;text-red-700 border-red-200 hover:bg-red-50&quot;,disabled:h||p,onClick:()=&gt;{A()},children:p?&quot;Suppression…&quot;:&quot;Supprimer&quot;})}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-2 justify-end&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,disabled:h||p,onClick:r,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,disabled:h||p,onClick:()=&gt;{S()},children:h?&quot;Enregistrement…&quot;:l===&quot;new&quot;?&quot;Créer&quot;:&quot;Enregistrer&quot;})]})]})]})]})}):null}function Qae({payments:e,readOnly:r,paymentsExportLoading:t=!1,financialJournalExportLoading:n=!1,onExportPaymentsXlsx:o,onExportFinancialJournalXlsx:s,receipt:l}){const[u,c]=O.useState(null),[a,d]=O.useState(null),[f,h]=O.useState(null),[m,p]=O.useState(null),[x,g]=O.useState(&quot;&quot;),y=O.useMemo(()=&gt;{const q=x.trim();if(!q)return e;const H=q.toLowerCase().split(/\s+/).filter(Boolean);return e.filter(B=&gt;{const K=(B.registration?.first_name??&quot;&quot;).toLowerCase(),T=(B.registration?.last_name??&quot;&quot;).toLowerCase(),L=(B.registration?.email??&quot;&quot;).toLowerCase(),E=`${K} ${T}`.trim(),j=(B.reference??&quot;&quot;).toLowerCase(),k=(B.receipt?.receipt_number??&quot;&quot;).toLowerCase(),N=`${E} ${L} ${j} ${k}`;return H.every(C=&gt;N.includes(C))})},[e,x]),{error:v,actionPending:_,isLoading:S,onDownloadReceipt:A,onIssueReceipt:I,onSendReceiptEmail:V}=l,F=async q=&gt;{h(null),p(q);try{await Fr.openPaymentProofInNewTab(q)}catch(H){const B=H&amp;&amp;typeof H==&quot;object&quot;&amp;&amp;&quot;data&quot;in H&amp;&amp;H.data?.message?String(H.data?.message):H instanceof Error?H.message:&quot;Impossible d’ouvrir le justificatif.&quot;;h(B)}finally{p(null)}};return i.jsxs(&quot;section&quot;,{className:&quot;bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden mb-8&quot;,&quot;aria-label&quot;:&quot;Paiements confirmés et reçus&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;px-4 sm:px-5 py-3 bg-brand-50 border-b border-brand-100 flex flex-wrap items-center justify-between gap-3&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-sm font-bold text-ink-900 shrink-0&quot;,children:&quot;Paiements confirmés — Reçus&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-2 flex-1 justify-end min-w-0&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;relative flex-1 min-w-[12rem] max-w-md&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;sr-only&quot;,children:&quot;Rechercher dans la liste&quot;}),i.jsx(i7,{className:&quot;absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-ink-400 pointer-events-none&quot;,&quot;aria-hidden&quot;:!0}),i.jsx(&quot;input&quot;,{type:&quot;search&quot;,value:x,onChange:q=&gt;g(q.target.value),placeholder:&quot;Rechercher (nom, prénom, email, réf., n° reçu)…&quot;,className:&quot;w-full pl-9 pr-3 py-1.5 text-sm border border-gray-300 rounded-lg bg-white text-ink-900 placeholder:text-ink-400 focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),o?i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:o,disabled:t||e.length===0,className:&quot;inline-flex items-center rounded-md border border-gray-300 bg-white px-3 py-1.5 text-xs font-medium text-ink-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed shrink-0&quot;,children:t?&quot;Export…&quot;:&quot;Exporter paiements XLSX&quot;}):null,s?i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:s,disabled:n||e.length===0,className:&quot;inline-flex items-center rounded-md border border-gray-300 bg-white px-3 py-1.5 text-xs font-medium text-ink-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed shrink-0&quot;,children:n?&quot;Export…&quot;:&quot;Exporter le journal financier&quot;}):null]})]}),v&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mx-4 mt-3 bg-red-50 border border-red-200 rounded-lg p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-xs text-red-700&quot;,children:v})}),i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-sm min-w-[640px]&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50/80 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Participant&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Montant&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Date&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Reçu&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Actions&quot;})]})}),i.jsxs(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-100&quot;,children:[y.map(q=&gt;{const H=`cp-${q.id}`,B=[];return q.receipt&amp;&amp;B.push({id:&quot;download-receipt-pdf&quot;,label:S(`payment-${q.id}`,&quot;download&quot;)?&quot;Téléchargement…&quot;:&quot;Télécharger le PDF du reçu&quot;,onSelect:()=&gt;A(q.receipt.id,q.receipt.receipt_number),disabled:_,title:&quot;Télécharger le reçu au format PDF&quot;}),q.receipt&amp;&amp;B.push({id:&quot;email&quot;,label:S(`payment-${q.id}`,&quot;email&quot;)?&quot;Envoi…&quot;:&quot;Envoyer par e-mail&quot;,onSelect:()=&gt;V(q.id),disabled:_,title:&quot;Envoyer le reçu par email au participant&quot;}),i.jsxs(&quot;tr&quot;,{className:&quot;align-middle hover:bg-gray-50/60&quot;,children:[i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-900&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;font-medium&quot;,children:[q.registration?.first_name,&quot; &quot;,q.registration?.last_name]}),q.registration?.email&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;block text-xs text-ink-500 truncate max-w-[200px]&quot;,title:q.registration.email,children:q.registration.email})]}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 whitespace-nowrap tabular-nums font-medium text-ink-900&quot;,children:cn(q.amount,q.currency)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-600 whitespace-nowrap text-sm&quot;,children:q.paid_at?new Date(q.paid_at).toLocaleDateString(&quot;fr-FR&quot;):&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:q.receipt?i.jsx(&quot;span&quot;,{className:&quot;text-xs font-mono text-ink-700&quot;,children:q.receipt.receipt_number}):i.jsx(&quot;span&quot;,{className:&quot;text-ink-400 text-xs&quot;,children:&quot;Non émis&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right&quot;,children:r?i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;text-xs font-medium text-brand-700 hover:underline&quot;,onClick:()=&gt;d(q),children:&quot;Voir&quot;}):i.jsx(Ta,{rowId:H,openMenuId:u,setOpenMenuId:c,onView:()=&gt;d(q),viewLabel:&quot;Voir&quot;,viewDisabled:_,onEdit:q.receipt?void 0:()=&gt;I(q.id),editLabel:&quot;Générer le reçu&quot;,editDisabled:_,menuItems:B})})]},q.id)}),e.length&gt;0&amp;&amp;y.length===0&amp;&amp;i.jsx(&quot;tr&quot;,{children:i.jsxs(&quot;td&quot;,{colSpan:5,className:&quot;px-4 py-8 text-center text-sm text-ink-600&quot;,children:[&quot;Aucun paiement ne correspond à « &quot;,x.trim(),&quot; ».&quot;]})})]})]})}),a?i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-[250] flex items-center justify-center p-4 bg-black/50&quot;,role:&quot;dialog&quot;,&quot;aria-modal&quot;:&quot;true&quot;,&quot;aria-labelledby&quot;:&quot;payment-detail-title&quot;,onClick:()=&gt;d(null),children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-xl max-w-lg w-full max-h-[90vh] overflow-y-auto border border-gray-200&quot;,onClick:q=&gt;q.stopPropagation(),children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-start justify-between gap-3 px-5 py-4 border-b border-gray-100&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;h2&quot;,{id:&quot;payment-detail-title&quot;,className:&quot;text-base font-bold text-ink-900&quot;,children:[&quot;Détail du paiement #&quot;,a.id]}),i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-0.5&quot;,children:[a.registration?.first_name,&quot; &quot;,a.registration?.last_name,a.registration?.email?i.jsx(&quot;span&quot;,{className:&quot;block truncate&quot;,children:a.registration.email}):null]})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;text-gray-400 hover:text-gray-600 p-1 rounded&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,onClick:()=&gt;d(null),children:i.jsx(gr,{size:22})})]}),i.jsxs(&quot;div&quot;,{className:&quot;px-5 py-4 space-y-3 text-sm&quot;,children:[i.jsxs(&quot;dl&quot;,{className:&quot;grid grid-cols-[minmax(0,11rem)_1fr] gap-x-3 gap-y-2&quot;,children:[i.jsx(&quot;dt&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Montant&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;font-medium tabular-nums&quot;,children:cn(a.amount,a.currency)}),i.jsx(&quot;dt&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Méthode&quot;}),i.jsx(&quot;dd&quot;,{children:qc(a.method)}),i.jsx(&quot;dt&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Date du paiement&quot;}),i.jsx(&quot;dd&quot;,{children:a.paid_at?new Date(a.paid_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;}),i.jsx(&quot;dt&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Référence&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;break-all&quot;,children:a.reference?.trim()||&quot;—&quot;}),i.jsx(&quot;dt&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Passerelle&quot;}),i.jsx(&quot;dd&quot;,{children:a.payment_gateway??&quot;— (manuel)&quot;}),i.jsx(&quot;dt&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Origine&quot;}),i.jsx(&quot;dd&quot;,{children:a.payment_gateway===&quot;sycapay&quot;?&quot;Paiement initié par le participant depuis le formulaire de paiement (SycaPay).&quot;:a.is_finance_manual_entry?&quot;Encaissement saisi depuis le tableau de bord finance.&quot;:&quot;Participant (déclaration ou autre origine sans passerelle).&quot;}),i.jsx(&quot;dt&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Validé le&quot;}),i.jsx(&quot;dd&quot;,{children:a.reviewed_at?new Date(a.reviewed_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;}),i.jsx(&quot;dt&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Notes&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-800 whitespace-pre-wrap&quot;,children:a.notes?.trim()||&quot;—&quot;}),i.jsx(&quot;dt&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Note validation&quot;}),i.jsx(&quot;dd&quot;,{className:&quot;text-ink-800 whitespace-pre-wrap&quot;,children:a.review_note?.trim()||&quot;—&quot;})]}),f?i.jsx(&quot;div&quot;,{className:&quot;rounded-lg bg-red-50 border border-red-200 px-3 py-2 text-xs text-red-700&quot;,children:f}):null,a.has_proof?i.jsxs(&quot;div&quot;,{className:&quot;pt-2 border-t border-gray-100&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-semibold text-ink-700 mb-2&quot;,children:&quot;Justificatif&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;inline-flex items-center text-sm font-medium text-brand-700 hover:underline disabled:opacity-50&quot;,disabled:m===a.id,onClick:()=&gt;{F(a.id)},children:m===a.id?&quot;Ouverture…&quot;:&quot;Voir la pièce jointe&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-1&quot;,children:&quot;Ouvre le fichier (PDF ou image) dans un nouvel onglet.&quot;})]}):null,a.receipt?i.jsx(&quot;div&quot;,{className:&quot;pt-2 border-t border-gray-100&quot;,children:i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-600&quot;,children:[&quot;Reçu :&quot;,&quot; &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-mono font-medium&quot;,children:a.receipt.receipt_number})]})}):null]}),i.jsx(&quot;div&quot;,{className:&quot;px-5 py-3 border-t border-gray-100 flex justify-end&quot;,children:i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;rounded-lg border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-ink-800 hover:bg-gray-50&quot;,onClick:()=&gt;d(null),children:&quot;Fermer&quot;})})]})}):null]})}function Jae({loading:e,rows:r,registrationsForPayment:t,readOnly:n,initPaymentModalOpen:o,exportLoading:s,meta:l,page:u,perPage:c,onPageChange:a,onPerPageChange:d,onInitPayment:f,onView:h,onExportXlsx:m,searchQuery:p,onSearchChange:x}){const[g,y]=O.useState(null),v=p.trim().length&gt;0,_=s||e||!v&amp;&amp;r.length===0,S=I=&gt;I===&quot;late&quot;?&quot;bg-red-100 text-red-800&quot;:I===&quot;ahead&quot;?&quot;bg-blue-100 text-blue-800&quot;:&quot;bg-green-100 text-green-800&quot;,A=I=&gt;I===&quot;late&quot;?&quot;En retard&quot;:I===&quot;ahead&quot;?&quot;En avance&quot;:&quot;À jour&quot;;return i.jsxs(&quot;section&quot;,{className:&quot;bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden&quot;,&quot;aria-label&quot;:&quot;Liste des débiteurs&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;px-5 py-3.5 bg-brand-50 border-b border-brand-100 flex flex-wrap items-center justify-between gap-3&quot;,children:[i.jsxs(&quot;h3&quot;,{className:&quot;text-sm font-bold text-ink-900 flex items-center gap-2 shrink-0&quot;,children:[i.jsx(Ym,{size:16,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),&quot;Débiteurs (solde &gt; 0)&quot;]}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-2 flex-1 justify-end min-w-0&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;relative flex-1 min-w-[12rem] max-w-md&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;sr-only&quot;,children:&quot;Rechercher parmi les débiteurs&quot;}),i.jsx(i7,{className:&quot;absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-ink-400 pointer-events-none&quot;,&quot;aria-hidden&quot;:!0}),i.jsx(&quot;input&quot;,{type:&quot;search&quot;,value:p,onChange:I=&gt;x(I.target.value),placeholder:&quot;Rechercher (nom, prénom, email)…&quot;,className:&quot;w-full pl-9 pr-3 py-1.5 text-sm border border-gray-300 rounded-lg bg-white text-ink-900 placeholder:text-ink-400 focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:m,disabled:_,className:&quot;inline-flex items-center rounded-md border border-gray-300 bg-white px-3 py-1.5 text-xs font-medium text-ink-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed shrink-0&quot;,children:s?&quot;Export...&quot;:&quot;Exporter XLSX&quot;})]})]}),i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-sm min-w-[760px]&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50/80 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Email&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Échéances&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Solde&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Situation&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Action&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-100&quot;,children:e?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:6,className:&quot;px-4 py-8 text-ink-500 text-sm text-center&quot;,children:&quot;Chargement de la liste des débiteurs…&quot;})}):r.length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:6,className:&quot;px-4 py-8 text-ink-600 text-sm leading-relaxed&quot;,children:p.trim()?`Aucun débiteur ne correspond à « ${p.trim()} » pour cet événement.`:&quot;Aucun débiteur avec solde ouvert pour la sélection actuelle (ou tous les comptes sont soldés).&quot;})}):r.map(I=&gt;{const V=t.find(H=&gt;H.id===I.registration_id),F=I.historical_installment_summary,q=I.commercial_adjustment_summary;return i.jsxs(&quot;tr&quot;,{className:&quot;align-middle hover:bg-gray-50/60&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-900 font-medium&quot;,children:I.name}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-600 truncate max-w-[180px]&quot;,title:I.email,children:I.email}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;text-xs text-ink-700 font-medium&quot;,children:F?.label??I.installments_label??&quot;1 ech.&quot;}),i.jsx(&quot;div&quot;,{className:&quot;text-[11px] text-ink-500&quot;,children:F?.is_fully_paid?&quot;Echeancier historique solde&quot;:(I.installments_open_count??0)&gt;0?`${I.installments_open_count} restant${(I.installments_open_count??0)&gt;1?&quot;s&quot;:&quot;&quot;}`:&quot;Soldé&quot;}),q?.has_pending_commercial_adjustment&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mt-1 text-[11px] font-medium text-amber-800&quot;,children:&quot;Solde commercial hors echeancier&quot;})]}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right font-semibold tabular-nums whitespace-nowrap text-ink-900&quot;,children:wr(I.balance)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:i.jsx(&quot;span&quot;,{className:`px-2 py-0.5 rounded-md text-xs font-medium ${S(I.financial_situation)}`,children:A(I.financial_situation)})}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right&quot;,children:V?i.jsx(Ta,{rowId:I.registration_id,openMenuId:g,setOpenMenuId:y,onView:()=&gt;h(I.registration_id),viewLabel:&quot;Voir&quot;,menuItems:n?[]:[{id:&quot;collect&quot;,label:&quot;Encaisser&quot;,onSelect:()=&gt;f(V),disabled:o,title:&quot;Saisir un encaissement pour ce participant&quot;}]}):null})]},I.registration_id)})})]})}),l&amp;&amp;l.total&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;px-4 py-2 border-t border-gray-100 flex flex-wrap items-center justify-between gap-2&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:l.last_page&gt;1&amp;&amp;l.from!=null&amp;&amp;l.to!=null?`Débiteurs ${l.from} à ${l.to} sur ${l.total}`:`Total : ${l.total} débiteur${l.total!==1?&quot;s&quot;:&quot;&quot;}`}),l.last_page&gt;1&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;text-xs text-ink-500 flex items-center gap-1&quot;,children:[&quot;Par page&quot;,i.jsx(&quot;select&quot;,{value:c,onChange:I=&gt;{d(Number(I.target.value)),a(1)},className:&quot;text-sm border border-gray-300 rounded px-2 py-0.5&quot;,children:[10,20,50].map(I=&gt;i.jsx(&quot;option&quot;,{value:I,children:I},I))})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,disabled:u&lt;=1,onClick:()=&gt;a(Math.max(1,u-1)),className:&quot;text-xs px-2 py-1 rounded border border-gray-300 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-50&quot;,children:&quot;Précédent&quot;}),i.jsxs(&quot;span&quot;,{className:&quot;text-xs text-ink-600&quot;,children:[&quot;Page &quot;,u,&quot; / &quot;,l.last_page]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,disabled:u&gt;=l.last_page,onClick:()=&gt;a(u+1),className:&quot;text-xs px-2 py-1 rounded border border-gray-300 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-50&quot;,children:&quot;Suivant&quot;})]})]})]})}function eoe({hasSelectedEvent:e,readOnly:r,alerts:t,exportRow:n,table:o,form:s}){const{error:l}=t,{rows:u,loading:c,onDelete:a,onOpenProof:d}=o;return i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-bold text-ink-900 tracking-tight&quot;,children:&quot;Dépenses&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mt-1&quot;,children:&quot;Saisie et suivi des dépenses liées à l&#039;événement (XOF).&quot;})]}),e?i.jsxs(i.Fragment,{children:[l&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:l}),n&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-2 mb-3&quot;,children:[i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:n.onExportCsv,disabled:!!n.exportFinanceLoading,title:&quot;Exporter les dépenses au format CSV&quot;,className:&quot;inline-flex items-center justify-center gap-1.5 px-3 py-2 text-sm font-medium border border-gray-300 rounded-lg bg-white text-ink-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:[i.jsx(La,{size:14,&quot;aria-hidden&quot;:!0}),n.exportFinanceLoading===&quot;expenses-csv&quot;?&quot;Export…&quot;:&quot;Export CSV&quot;]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:n.onExportXlsx,disabled:!!n.exportFinanceLoading,title:&quot;Exporter les dépenses au format Excel (XLSX)&quot;,className:&quot;inline-flex items-center justify-center gap-1.5 px-3 py-2 text-sm font-medium border border-gray-300 rounded-lg bg-white text-ink-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:[i.jsx(La,{size:14,&quot;aria-hidden&quot;:!0}),n.exportFinanceLoading===&quot;expenses-xlsx&quot;?&quot;Export…&quot;:&quot;Export XLSX&quot;]})]}),i.jsx(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 overflow-hidden mb-6 shadow-sm&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left min-w-[800px]&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50/80 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Date&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Catégorie&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Libellé&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Compte&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Montant (XOF)&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-center text-xs font-semibold text-ink-700 uppercase tracking-wider w-28&quot;,children:&quot;Justificatif&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 w-14 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Action&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200&quot;,children:c?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:7,className:&quot;px-4 py-10 text-center text-ink-500 text-sm&quot;,children:&quot;Chargement des dépenses…&quot;})}):u.length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:6,className:&quot;px-4 py-10 text-center text-ink-600 text-sm leading-relaxed&quot;,children:&quot;Aucune dépense enregistrée pour cet événement. Utilisez le formulaire ci-dessous pour en ajouter une.&quot;})}):u.map(f=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50/80&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700 whitespace-nowrap&quot;,children:f.paid_at?new Date(f.paid_at).toLocaleDateString(&quot;fr-FR&quot;):&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-600 max-w-[140px] truncate&quot;,title:f.budget_line_label??void 0,children:f.budget_line_label??&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-medium text-ink-900 max-w-[180px] truncate&quot;,title:f.label??void 0,children:f.label??&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700 max-w-[160px] truncate&quot;,title:f.treasury_account_name,children:f.treasury_account_name}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-semibold text-ink-900 text-right tabular-nums whitespace-nowrap&quot;,children:wr(f.amount)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-center&quot;,children:f.has_proof&amp;&amp;d?i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;d(f),className:&quot;inline-flex items-center gap-1 text-xs font-medium text-brand-700 hover:underline&quot;,title:&quot;Voir la pièce jointe&quot;,children:[i.jsx(n7,{size:14,&quot;aria-hidden&quot;:!0}),&quot;Voir&quot;]}):i.jsx(&quot;span&quot;,{className:&quot;text-ink-400 text-xs&quot;,children:&quot;—&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right&quot;,children:!r&amp;&amp;i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;a(f),className:&quot;p-1.5 text-ink-500 hover:text-red-600 hover:bg-red-50 rounded inline-flex&quot;,title:&quot;Supprimer cette dépense&quot;,&quot;aria-label&quot;:&quot;Supprimer cette dépense&quot;,children:i.jsx(gr,{size:16,&quot;aria-hidden&quot;:!0})})})]},f.id))})]})})}),i.jsxs(&quot;div&quot;,{className:&quot;p-4 sm:p-5 bg-gray-50 rounded-xl border border-gray-200 mb-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-800 mb-3&quot;,children:&quot;Nouvelle dépense&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-12 gap-4 items-end&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;xl:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Date&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:s.paidAt,onChange:f=&gt;s.onPaidAtChange(f.target.value),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;sm:col-span-2 lg:col-span-2 xl:col-span-4 min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Catégorie budget (optionnel)&quot;}),i.jsxs(&quot;select&quot;,{value:s.budgetLineId,onChange:f=&gt;s.onBudgetLineChange(f.target.value===&quot;&quot;?&quot;&quot;:Number(f.target.value)),className:&quot;w-full min-w-[12rem] max-w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px] text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;- Choisir -&quot;}),s.budgetLines.map(f=&gt;i.jsx(&quot;option&quot;,{value:f.id,children:f.category_name??f.label??`Ligne #${f.id}`},f.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;sm:col-span-2 lg:col-span-2 xl:col-span-2 min-w-0&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Compte de trésorerie *&quot;}),i.jsxs(&quot;select&quot;,{value:s.treasuryAccountId,onChange:f=&gt;s.onTreasuryAccountChange(f.target.value===&quot;&quot;?&quot;&quot;:Number(f.target.value)),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;- Choisir -&quot;}),s.treasuryAccounts.map(f=&gt;i.jsxs(&quot;option&quot;,{value:f.id,children:[f.name,&quot; — &quot;,f.context_display]},f.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;xl:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Montant (XOF) *&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:1,value:s.amount||&quot;&quot;,onChange:f=&gt;s.onAmountChange(parseInt(f.target.value,10)||0),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;sm:col-span-2 xl:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Libellé *&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:s.label,onChange:f=&gt;s.onLabelChange(f.target.value),placeholder:&quot;Ex. Billets orateurs&quot;,className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;,required:!0})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;border-t border-gray-200 pt-4 mt-4&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:[&quot;Pièce justificative &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-3&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;file&quot;,accept:&quot;.pdf,.jpg,.jpeg,.png,.gif,.webp,application/pdf,image/*&quot;,className:&quot;block w-full max-w-md text-sm text-ink-700 file:mr-3 file:rounded-lg file:border file:border-gray-300 file:bg-white file:px-3 file:py-2 file:text-sm file:font-medium file:text-ink-800 hover:file:bg-gray-50&quot;,onChange:f=&gt;{const h=f.target.files?.[0]??null;s.onProofChange(h)}},s.proofInputKey),s.proofFile?i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-600 truncate max-w-[14rem]&quot;,title:s.proofFile.name,children:s.proofFile.name}):null]}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-1.5&quot;,children:&quot;Obligatoire — PDF ou image (jpg, png, gif, webp), 5 Mo max.&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;flex flex-col sm:flex-row sm:justify-end pt-4 mt-4 border-t border-gray-200&quot;,children:i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:s.onSubmit,disabled:s.submitting,className:&quot;w-full sm:w-auto min-h-[42px] min-w-[12rem]&quot;,children:s.submitting?&quot;Ajout en cours…&quot;:&quot;Ajouter une dépense&quot;})})]}),s.error&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:s.error})]}):i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-dashed border-gray-300 bg-white p-8 text-center text-ink-600 text-sm leading-relaxed&quot;,children:[&quot;Sélectionnez un &quot;,i.jsx(&quot;strong&quot;,{className:&quot;font-semibold text-ink-800&quot;,children:&quot;événement&quot;}),&quot; pour afficher et saisir les dépenses.&quot;]})]})}function B6(e){if(e.movement_type===&quot;transfer&quot;){const n=e.from_account_name??`#${e.from_treasury_account_id}`,o=e.to_account_name??`#${e.to_treasury_account_id}`;return`${n} → ${o}`}const r=e.adjusted_account_name??`#${e.treasury_account_id}`,t=e.adjustment_direction===&quot;increase&quot;?&quot;Augmentation&quot;:e.adjustment_direction===&quot;decrease&quot;?&quot;Diminution&quot;:&quot;&quot;;return t?`${r} · ${t}`:r}function toe(e){return e===&quot;transfer&quot;?&quot;Transfert&quot;:&quot;Ajustement&quot;}function roe({hasSelectedEvent:e,readOnly:r,alerts:t,exportRow:n,table:o,movementKind:s,onMovementKindChange:l,transferForm:u,adjustmentForm:c}){const{error:a}=t,{rows:d,loading:f,onOpenProof:h}=o;return i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-bold text-ink-900 tracking-tight&quot;,children:&quot;Mouvements de trésorerie&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mt-1&quot;,children:&quot;Transferts entre comptes et ajustements manuels — sans impact sur les lignes budgétaires.&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-2 rounded-lg border border-amber-200 bg-amber-50/80 px-3 py-2&quot;,children:&quot;Les enregistrements ne peuvent pas être supprimés. Les exports CSV / Excel incluent ces lignes avec les dépenses.&quot;})]}),e?i.jsxs(i.Fragment,{children:[a&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:a}),n&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-2 mb-3&quot;,children:[i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:n.onExportCsv,disabled:!!n.exportFinanceLoading,title:&quot;Exporter les mouvements au format CSV&quot;,className:&quot;inline-flex items-center justify-center gap-1.5 px-3 py-2 text-sm font-medium border border-gray-300 rounded-lg bg-white text-ink-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:[i.jsx(La,{size:14,&quot;aria-hidden&quot;:!0}),n.exportFinanceLoading===&quot;movements-csv&quot;?&quot;Export…&quot;:&quot;Export CSV&quot;]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:n.onExportXlsx,disabled:!!n.exportFinanceLoading,title:&quot;Exporter les mouvements au format Excel (XLSX)&quot;,className:&quot;inline-flex items-center justify-center gap-1.5 px-3 py-2 text-sm font-medium border border-gray-300 rounded-lg bg-white text-ink-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:[i.jsx(La,{size:14,&quot;aria-hidden&quot;:!0}),n.exportFinanceLoading===&quot;movements-xlsx&quot;?&quot;Export…&quot;:&quot;Export XLSX&quot;]})]}),i.jsx(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 overflow-hidden mb-6 shadow-sm&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left min-w-[960px]&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50/80 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Type&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Détail&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Montant&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Libellé&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider max-w-[200px]&quot;,children:&quot;Notes&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider whitespace-nowrap&quot;,children:&quot;Créé le&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Par&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-center text-xs font-semibold text-ink-700 uppercase tracking-wider w-28&quot;,children:&quot;Justificatif&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200&quot;,children:f?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:8,className:&quot;px-4 py-10 text-center text-ink-500 text-sm&quot;,children:&quot;Chargement des mouvements…&quot;})}):d.length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:8,className:&quot;px-4 py-10 text-center text-ink-600 text-sm leading-relaxed&quot;,children:&quot;Aucun mouvement pour cet événement. Utilisez le formulaire ci-dessous pour en enregistrer un.&quot;})}):d.map(m=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50/80&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-800 whitespace-nowrap&quot;,children:toe(m.movement_type)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700 max-w-[280px]&quot;,title:B6(m),children:i.jsx(&quot;span&quot;,{className:&quot;line-clamp-2&quot;,children:B6(m)})}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-semibold text-ink-900 text-right tabular-nums whitespace-nowrap&quot;,children:cn(m.amount,m.currency)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-medium text-ink-900 max-w-[180px] truncate&quot;,title:m.label,children:m.label}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-600 max-w-[200px] truncate&quot;,title:m.notes??void 0,children:m.notes??&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700 whitespace-nowrap&quot;,children:m.created_at?new Date(m.created_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-600 max-w-[140px] truncate&quot;,children:m.created_by_name??&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-center&quot;,children:m.has_proof&amp;&amp;h?i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;h(m),className:&quot;inline-flex items-center gap-1 text-xs font-medium text-brand-700 hover:underline&quot;,title:&quot;Voir la pièce jointe&quot;,children:[i.jsx(n7,{size:14,&quot;aria-hidden&quot;:!0}),&quot;Voir&quot;]}):i.jsx(&quot;span&quot;,{className:&quot;text-ink-400 text-xs&quot;,children:&quot;—&quot;})})]},m.id))})]})})}),!r&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;p-4 sm:p-5 bg-gray-50 rounded-xl border border-gray-200 mb-4 space-y-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-800&quot;,children:&quot;Nouveau mouvement&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-2&quot;,role:&quot;tablist&quot;,&quot;aria-label&quot;:&quot;Type de mouvement&quot;,children:[i.jsx(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;tab&quot;,&quot;aria-selected&quot;:s===&quot;transfer&quot;,onClick:()=&gt;l(&quot;transfer&quot;),className:`rounded-lg px-4 py-2 text-sm font-semibold transition-colors ${s===&quot;transfer&quot;?&quot;bg-brand-700 text-white&quot;:&quot;text-ink-600 hover:bg-gray-100&quot;}`,children:&quot;Transfert&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;tab&quot;,&quot;aria-selected&quot;:s===&quot;adjustment&quot;,onClick:()=&gt;l(&quot;adjustment&quot;),className:`rounded-lg px-4 py-2 text-sm font-semibold transition-colors ${s===&quot;adjustment&quot;?&quot;bg-brand-700 text-white&quot;:&quot;text-ink-600 hover:bg-gray-100&quot;}`,children:&quot;Ajustement&quot;})]}),s===&quot;transfer&quot;?i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-4 items-end&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-4&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Compte source *&quot;}),i.jsxs(&quot;select&quot;,{value:u.fromId,onChange:m=&gt;u.onFromChange(m.target.value===&quot;&quot;?&quot;&quot;:Number(m.target.value)),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;- Choisir -&quot;}),u.treasuryAccounts.map(m=&gt;i.jsxs(&quot;option&quot;,{value:m.id,children:[m.name,&quot; — &quot;,m.context_display]},m.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-4&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Compte destination *&quot;}),i.jsxs(&quot;select&quot;,{value:u.toId,onChange:m=&gt;u.onToChange(m.target.value===&quot;&quot;?&quot;&quot;:Number(m.target.value)),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;- Choisir -&quot;}),u.treasuryAccounts.map(m=&gt;i.jsxs(&quot;option&quot;,{value:m.id,children:[m.name,&quot; — &quot;,m.context_display]},m.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Montant *&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:1,value:u.amount||&quot;&quot;,onChange:m=&gt;u.onAmountChange(parseInt(m.target.value,10)||0),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Libellé *&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:u.label,onChange:m=&gt;u.onLabelChange(m.target.value),placeholder:&quot;Ex. Virement interne&quot;,className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Notes (optionnel)&quot;}),i.jsx(&quot;textarea&quot;,{value:u.notes,onChange:m=&gt;u.onNotesChange(m.target.value),rows:2,className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 text-sm&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Pièce justificative (PDF/Image) *&quot;}),i.jsx(&quot;input&quot;,{type:&quot;file&quot;,accept:&quot;.pdf,.jpg,.jpeg,.png,.gif,.webp&quot;,onChange:m=&gt;u.onProofChange(m.target.files?.[0]??null),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 text-sm bg-white&quot;},u.proofInputKey)]}),i.jsx(&quot;div&quot;,{className:&quot;flex flex-col sm:flex-row sm:justify-end pt-2 border-t border-gray-200&quot;,children:i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:u.onSubmit,disabled:u.submitting,className:&quot;w-full sm:w-auto min-h-[42px] min-w-[12rem]&quot;,children:u.submitting?&quot;Enregistrement…&quot;:&quot;Enregistrer le transfert&quot;})}),u.error&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;p-3 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:u.error})]}):i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-4 items-end&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-4&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Compte *&quot;}),i.jsxs(&quot;select&quot;,{value:c.accountId,onChange:m=&gt;c.onAccountChange(m.target.value===&quot;&quot;?&quot;&quot;:Number(m.target.value)),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;- Choisir -&quot;}),c.treasuryAccounts.map(m=&gt;i.jsxs(&quot;option&quot;,{value:m.id,children:[m.name,&quot; — &quot;,m.context_display]},m.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-3&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Sens *&quot;}),i.jsxs(&quot;select&quot;,{value:c.direction,onChange:m=&gt;c.onDirectionChange(m.target.value),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;increase&quot;,children:&quot;Augmentation du solde&quot;}),i.jsx(&quot;option&quot;,{value:&quot;decrease&quot;,children:&quot;Diminution du solde&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-2&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Montant *&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:1,value:c.amount||&quot;&quot;,onChange:m=&gt;c.onAmountChange(parseInt(m.target.value,10)||0),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;lg:col-span-3&quot;,children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Libellé *&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c.label,onChange:m=&gt;c.onLabelChange(m.target.value),placeholder:&quot;Ex. Régularisation caisse&quot;,className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 min-h-[42px]&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Notes (optionnel)&quot;}),i.jsx(&quot;textarea&quot;,{value:c.notes,onChange:m=&gt;c.onNotesChange(m.target.value),rows:2,className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 text-sm&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1.5&quot;,children:&quot;Pièce justificative (PDF/Image) *&quot;}),i.jsx(&quot;input&quot;,{type:&quot;file&quot;,accept:&quot;.pdf,.jpg,.jpeg,.png,.gif,.webp&quot;,onChange:m=&gt;c.onProofChange(m.target.files?.[0]??null),className:&quot;w-full px-3 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 text-sm bg-white&quot;},c.proofInputKey)]}),i.jsx(&quot;div&quot;,{className:&quot;flex flex-col sm:flex-row sm:justify-end pt-2 border-t border-gray-200&quot;,children:i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:c.onSubmit,disabled:c.submitting,className:&quot;w-full sm:w-auto min-h-[42px] min-w-[12rem]&quot;,children:c.submitting?&quot;Enregistrement…&quot;:&quot;Enregistrer l’ajustement&quot;})}),c.error&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;p-3 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:c.error})]})]})]}):i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-dashed border-gray-300 bg-white p-8 text-center text-ink-600 text-sm leading-relaxed&quot;,children:[&quot;Sélectionnez un &quot;,i.jsx(&quot;strong&quot;,{className:&quot;font-semibold text-ink-800&quot;,children:&quot;événement&quot;}),&quot; pour afficher et saisir les mouvements.&quot;]})]})}function noe({hasSelectedEvent:e,loading:r,error:t,data:n,readOnly:o,eventId:s,eventSlug:l,onRequestReload:u}){const c=n?.totals_by_currency?Object.entries(n.totals_by_currency).sort(([H],[B])=&gt;H.localeCompare(B)):[],[a,d]=O.useState({}),[f,h]=O.useState(!1),[m,p]=O.useState(null),[x,g]=O.useState(!1),[y,v]=O.useState([]),[_,S]=O.useState(!1),[A,I]=O.useState(!1);O.useEffect(()=&gt;{if(!n?.accounts)return;const H={};n.accounts.forEach(B=&gt;{H[B.id]=B.breakdown.opening_balance}),d(H)},[n]),O.useEffect(()=&gt;{if(!s||!e){v([]);return}S(!0),Dc.listSnapshots(s).then(v).catch(()=&gt;v([])).finally(()=&gt;S(!1))},[s,e,n?.meta?.schema_version]);const V=async()=&gt;{if(s){g(!0);try{await Dc.downloadCsv(s,l)}finally{g(!1)}}},F=async()=&gt;{if(!(!s||!n)){p(null),h(!0);try{await Dc.upsertOpeningBalances({event_id:s,balances:n.accounts.map(H=&gt;({treasury_account_id:H.id,amount:a[H.id]??H.breakdown.opening_balance}))}),u()}catch(H){const B=H&amp;&amp;typeof H==&quot;object&quot;&amp;&amp;&quot;data&quot;in H?H.data?.message:null;p(B??&quot;Erreur lors de l’enregistrement des soldes d’ouverture.&quot;)}finally{h(!1)}}},q=async()=&gt;{if(s){I(!0);try{await Dc.captureSnapshot(s);const H=await Dc.listSnapshots(s);v(H)}finally{I(!1)}}};return i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-bold text-ink-900 tracking-tight&quot;,children:&quot;Trésorerie&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mt-1&quot;,children:&quot;Soldes opérationnels par compte pour l&#039;événement sélectionné (calcul applicatif).&quot;})]}),n&amp;&amp;n.accounts.length&gt;0&amp;&amp;s!=null&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-2 shrink-0&quot;,children:[i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:V,disabled:x,className:&quot;inline-flex items-center justify-center gap-1.5 px-3 py-2 text-sm font-medium border border-gray-300 rounded-lg bg-white text-ink-700 hover:bg-gray-50 disabled:opacity-50&quot;,children:[i.jsx(La,{size:14,&quot;aria-hidden&quot;:!0}),x?&quot;Export…&quot;:&quot;Export CSV&quot;]}),!o&amp;&amp;i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:q,disabled:A,className:&quot;inline-flex items-center justify-center gap-1.5 px-3 py-2 text-sm font-medium border border-gray-300 rounded-lg bg-white text-ink-700 hover:bg-gray-50 disabled:opacity-50&quot;,children:[i.jsx(AF,{size:14,&quot;aria-hidden&quot;:!0}),A?&quot;…&quot;:&quot;Instantané&quot;]})]})]}),e?i.jsxs(i.Fragment,{children:[t&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,role:&quot;alert&quot;,children:t}),n?.disclaimer&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-600 rounded-lg border border-gray-200 bg-gray-50 px-3 py-2 mb-4 leading-relaxed&quot;,children:n.disclaimer}),r?i.jsx(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 shadow-sm py-14 px-6 text-center&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-ink-600 text-sm font-medium&quot;,children:&quot;Chargement des soldes…&quot;})}):n&amp;&amp;n.accounts.length===0?i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-200 bg-white p-8 text-center text-ink-600 text-sm&quot;,children:&quot;Aucun compte de trésorerie actif n&#039;est disponible pour cet événement.&quot;}):n?i.jsxs(&quot;div&quot;,{className:&quot;space-y-6&quot;,children:[c.length&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-2 items-center&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;text-xs font-semibold text-ink-600 uppercase tracking-wide&quot;,children:&quot;Totaux par devise&quot;}),c.map(([H,B])=&gt;i.jsx(&quot;span&quot;,{className:&quot;inline-flex items-center rounded-full border border-brand-200 bg-brand-50 px-3 py-1 text-sm font-semibold text-brand-900 tabular-nums&quot;,children:cn(B,H)},H))]}),i.jsx(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 overflow-hidden shadow-sm&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left min-w-[720px]&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50/80 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Compte&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Contexte&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-left text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Devise&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3.5 text-right text-xs font-semibold text-ink-700 uppercase tracking-wider&quot;,children:&quot;Solde calculé (app)&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200&quot;,children:n.accounts.map(H=&gt;i.jsx(ioe,{row:H},H.id))})]})})}),!o&amp;&amp;s!=null&amp;&amp;n.accounts.length&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-200 bg-gray-50 p-4 sm:p-5 space-y-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-800&quot;,children:&quot;Soldes d&#039;ouverture (V3)&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Montants saisis une fois par compte pour cet événement ; ils s&#039;ajoutent au solde calculé avant les flux applicatifs.&quot;}),i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3&quot;,children:n.accounts.map(H=&gt;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-xs font-medium text-ink-600 mb-1 truncate&quot;,title:H.name,children:H.name}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,value:a[H.id]??0,onChange:B=&gt;d(K=&gt;({...K,[H.id]:parseInt(B.target.value,10)||0}))})]},H.id))}),m&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-600&quot;,children:m}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:F,disabled:f,children:f?&quot;Enregistrement…&quot;:&quot;Enregistrer les ouvertures&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-200 bg-white p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-800 mb-2&quot;,children:&quot;Instantanés enregistrés&quot;}),_?i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Chargement…&quot;}):y.length===0?i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Aucun instantané pour cet événement.&quot;}):i.jsx(&quot;ul&quot;,{className:&quot;text-sm text-ink-700 space-y-1&quot;,children:y.map(H=&gt;i.jsxs(&quot;li&quot;,{children:[H.created_at?new Date(H.created_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;,H.created_by_name?` · ${H.created_by_name}`:&quot;&quot;,` · ${H.accounts_count} compte(s)`]},H.id))})]})]}):null]}):i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-dashed border-gray-300 bg-white p-8 text-center text-ink-600 text-sm leading-relaxed&quot;,children:[&quot;Sélectionnez un &quot;,i.jsx(&quot;strong&quot;,{className:&quot;font-semibold text-ink-800&quot;,children:&quot;événement&quot;}),&quot; pour afficher les soldes par compte.&quot;]})]})}function ioe({row:e}){const r=e.breakdown;return i.jsxs(i.Fragment,{children:[i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50/80&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-medium text-ink-900 align-top&quot;,children:e.name}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-600 align-top&quot;,children:e.context_display}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700 whitespace-nowrap align-top&quot;,children:e.currency}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-semibold text-ink-900 text-right tabular-nums whitespace-nowrap align-top&quot;,children:cn(e.balance,e.currency)})]}),i.jsx(&quot;tr&quot;,{className:&quot;bg-gray-50/60&quot;,children:i.jsxs(&quot;td&quot;,{colSpan:4,className:&quot;px-4 py-2 text-xs text-ink-600 border-b border-gray-100&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;font-semibold text-ink-700&quot;,children:&quot;Ventilation : &quot;}),&quot;ouverture &quot;,cn(r.opening_balance,e.currency),&quot; · inscriptions&quot;,&quot; &quot;,cn(r.registration_payments_in,e.currency),&quot; · dons&quot;,&quot; &quot;,cn(r.donations_in,e.currency),&quot; · dépenses −&quot;,cn(r.expenses_out,e.currency),&quot; ·           transf. +&quot;,cn(r.transfers_in,e.currency),&quot; / −&quot;,cn(r.transfers_out,e.currency),&quot; · ajust. +&quot;,cn(r.adjustments_increase,e.currency),&quot; / −&quot;,cn(r.adjustments_decrease,e.currency)]})})]})}function soe({kpi:e}){return i.jsxs(&quot;section&quot;,{className:&quot;space-y-3&quot;,&quot;aria-label&quot;:&quot;Indicateurs clés&quot;,children:[i.jsx(&quot;h4&quot;,{className:&quot;text-xs font-semibold uppercase tracking-wider text-ink-500&quot;,children:&quot;Indicateurs&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-sm p-4 border border-gray-200 min-h-[5.5rem] flex flex-col justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2 text-ink-500 text-xs font-semibold uppercase tracking-wide&quot;,children:[i.jsx(mv,{size:16,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),&quot;Total dû (inscriptions)&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-xl font-bold text-ink-900 tabular-nums whitespace-nowrap&quot;,children:wr(e.total_due_registrations)})]}),i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-sm p-4 border border-gray-200 min-h-[5.5rem] flex flex-col justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2 text-ink-500 text-xs font-semibold uppercase tracking-wide&quot;,children:[i.jsx(RB,{size:16,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),&quot;Encaissé confirmé&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-xl font-bold text-green-700 tabular-nums whitespace-nowrap&quot;,children:wr(e.total_confirmed_payments)})]}),i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-sm p-4 border border-gray-200 min-h-[5.5rem] flex flex-col justify-between&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;text-ink-500 text-xs font-semibold uppercase tracking-wide&quot;,children:&quot;Reste à encaisser&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xl font-bold text-amber-700 tabular-nums whitespace-nowrap&quot;,children:wr(e.remaining_to_collect)})]}),i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-sm p-4 border border-gray-200 min-h-[5.5rem] flex flex-col justify-between&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;text-ink-500 text-xs font-semibold uppercase tracking-wide&quot;,children:&quot;Dons confirmés&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xl font-bold text-green-700 tabular-nums whitespace-nowrap&quot;,children:wr(e.donations_confirmed_total)})]}),i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-sm p-4 border border-gray-200 min-h-[5.5rem] flex flex-col justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2 text-ink-500 text-xs font-semibold uppercase tracking-wide&quot;,children:[i.jsx(hv,{size:16,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),&quot;À valider&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-xl font-bold text-ink-900 tabular-nums whitespace-nowrap&quot;,children:e.pending_review_count})]}),i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-sm p-4 border border-gray-200 min-h-[5.5rem] flex flex-col justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2 text-ink-500 text-xs font-semibold uppercase tracking-wide&quot;,children:[i.jsx(Ym,{size:16,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),&quot;Non soldés / partiels&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-xl font-bold text-ink-900 tabular-nums whitespace-nowrap&quot;,children:e.unpaid_or_partial_count})]})]})]})}function aoe({title:e,subtitle:r,showReadOnlyBanner:t}){return i.jsxs(i.Fragment,{children:[i.jsxs(&quot;header&quot;,{className:&quot;mb-8 pb-6 border-b border-gray-200&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-3xl font-bold text-ink-900 tracking-tight&quot;,children:e}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 mt-2 text-base leading-relaxed max-w-3xl&quot;,children:r})]}),t&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mb-6 p-4 bg-amber-50 border border-amber-200 rounded-xl text-amber-900 text-sm leading-relaxed&quot;,children:[i.jsx(&quot;strong&quot;,{className:&quot;font-semibold&quot;,children:&quot;Mode lecture seule.&quot;}),&quot; Vous pouvez consulter les données mais ne pouvez pas valider, modifier ni exporter.&quot;]})]})}function ooe({activeTab:e,onTabChange:r,ariaLabel:t=&quot;Sections finance&quot;,showReconciliationTab:n=!1}){return i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-1 border-b border-gray-200 bg-white rounded-t-xl px-1 sm:px-2 pt-1 -mb-px shadow-sm&quot;,role:&quot;tablist&quot;,&quot;aria-label&quot;:t,children:[i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;tab&quot;,&quot;aria-selected&quot;:e===&quot;validation&quot;,onClick:()=&gt;r(&quot;validation&quot;),className:`flex items-center gap-2 px-4 py-3 rounded-t-lg border-b-2 -mb-px text-sm sm:text-base font-semibold transition-colors ${e===&quot;validation&quot;?&quot;border-brand-700 text-brand-700 bg-brand-50/50&quot;:&quot;border-transparent text-ink-500 hover:text-ink-800 hover:bg-gray-50&quot;}`,children:[i.jsx(jB,{size:18,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),i.jsx(&quot;span&quot;,{className:&quot;text-left&quot;,children:&quot;Validation recettes et dons&quot;})]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;tab&quot;,&quot;aria-selected&quot;:e===&quot;budget&quot;,onClick:()=&gt;r(&quot;budget&quot;),className:`flex items-center gap-2 px-4 py-3 rounded-t-lg border-b-2 -mb-px text-sm sm:text-base font-semibold transition-colors ${e===&quot;budget&quot;?&quot;border-brand-700 text-brand-700 bg-brand-50/50&quot;:&quot;border-transparent text-ink-500 hover:text-ink-800 hover:bg-gray-50&quot;}`,children:[i.jsx(c2,{size:18,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),&quot;Budget&quot;]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;tab&quot;,&quot;aria-selected&quot;:e===&quot;expenses&quot;,onClick:()=&gt;r(&quot;expenses&quot;),className:`flex items-center gap-2 px-4 py-3 rounded-t-lg border-b-2 -mb-px text-sm sm:text-base font-semibold transition-colors ${e===&quot;expenses&quot;?&quot;border-brand-700 text-brand-700 bg-brand-50/50&quot;:&quot;border-transparent text-ink-500 hover:text-ink-800 hover:bg-gray-50&quot;}`,children:[i.jsx(KF,{size:18,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),&quot;Dépenses&quot;]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;tab&quot;,&quot;aria-selected&quot;:e===&quot;movements&quot;,onClick:()=&gt;r(&quot;movements&quot;),className:`flex items-center gap-2 px-4 py-3 rounded-t-lg border-b-2 -mb-px text-sm sm:text-base font-semibold transition-colors ${e===&quot;movements&quot;?&quot;border-brand-700 text-brand-700 bg-brand-50/50&quot;:&quot;border-transparent text-ink-500 hover:text-ink-800 hover:bg-gray-50&quot;}`,children:[i.jsx(QC,{size:18,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),&quot;Mouvements&quot;]}),n&amp;&amp;i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;tab&quot;,&quot;aria-selected&quot;:e===&quot;reconciliation&quot;,onClick:()=&gt;r(&quot;reconciliation&quot;),className:`flex items-center gap-2 px-4 py-3 rounded-t-lg border-b-2 -mb-px text-sm sm:text-base font-semibold transition-colors ${e===&quot;reconciliation&quot;?&quot;border-brand-700 text-brand-700 bg-brand-50/50&quot;:&quot;border-transparent text-ink-500 hover:text-ink-800 hover:bg-gray-50&quot;}`,children:[i.jsx(SB,{size:18,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),i.jsx(&quot;span&quot;,{className:&quot;text-left&quot;,children:&quot;Rapprochement&quot;})]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,role:&quot;tab&quot;,&quot;aria-selected&quot;:e===&quot;treasury&quot;,onClick:()=&gt;r(&quot;treasury&quot;),className:`flex items-center gap-2 px-4 py-3 rounded-t-lg border-b-2 -mb-px text-sm sm:text-base font-semibold transition-colors ${e===&quot;treasury&quot;?&quot;border-brand-700 text-brand-700 bg-brand-50/50&quot;:&quot;border-transparent text-ink-500 hover:text-ink-800 hover:bg-gray-50&quot;}`,children:[i.jsx(t7,{size:18,className:&quot;shrink-0&quot;,&quot;aria-hidden&quot;:!0}),&quot;Trésorerie&quot;]})]})}function loe(e){const r={};if(!e.data?.errors)return r;for(const[t,n]of Object.entries(e.data.errors))r[t]=Array.isArray(n)?String(n[0]):String(n);return r}function coe({adjustment:e,isOpen:r,onClose:t,onSuccess:n}){const[o,s]=O.useState(&quot;&quot;),[l,u]=O.useState(&quot;&quot;),[c,a]=O.useState(&quot;&quot;),[d,f]=O.useState(!1),[h,m]=O.useState(null),[p,x]=O.useState({});if(O.useEffect(()=&gt;{r&amp;&amp;(s(&quot;&quot;),u(&quot;&quot;),a(&quot;&quot;),f(!1),m(null),x({}))},[e.id,r]),!r)return null;const g=async y=&gt;{y.preventDefault();const v={};if(o.trim()||(v.refund_reference=&quot;La référence de remboursement est obligatoire.&quot;),l||(v.refund_paid_at=&quot;La date du remboursement est obligatoire.&quot;),x(v),m(null),!(Object.keys(v).length&gt;0)){f(!0);try{const _={refund_reference:o.trim(),refund_paid_at:l,notes:c.trim()||void 0,metadata:{ui_origin:&quot;finance_pending_refunds_section&quot;}},S=await Fr.markCommercialAdjustmentRefundDone(e.id,_);await Promise.resolve(n(S.message??&quot;Remboursement manuel marqué comme effectué.&quot;)),t()}catch(_){_ instanceof kt?(x(loe(_)),m(_.data?.message??_.message??&quot;Une erreur est survenue.&quot;)):m(&quot;Une erreur inattendue est survenue.&quot;)}finally{f(!1)}}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-[210] overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex min-h-screen items-center justify-center px-4 py-6 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity&quot;,onClick:t}),i.jsx(&quot;div&quot;,{className:&quot;inline-block w-full max-w-lg transform overflow-hidden rounded-lg bg-white text-left align-bottom shadow-xl transition-all sm:my-8 sm:align-middle&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex items-center justify-between&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:&quot;Marquer le remboursement effectué&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:t,className:&quot;text-gray-400 transition-colors hover:text-gray-600&quot;,children:i.jsx(gr,{size:24})})]}),i.jsxs(&quot;div&quot;,{className:&quot;mb-5 rounded-lg border border-gray-200 bg-gray-50/70 p-4 text-sm text-ink-900&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:[&quot;Ajustement #&quot;,e.id,&quot; - inscription #&quot;,e.registration_id]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1&quot;,children:[e.participant.full_name||&quot;Participant&quot;,&quot; · &quot;,e.event?.name||&quot;Événement&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1&quot;,children:[e.from_pricing_plan?.code??&quot;-&quot;,&quot; - &quot;,e.from_pricing_plan?.title??&quot;Ancienne formule&quot;,&quot; -&gt; &quot;,e.to_pricing_plan?.code??&quot;-&quot;,&quot; - &quot;,e.to_pricing_plan?.title??&quot;Nouvelle formule&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1&quot;,children:[&quot;Trop-perçu documenté :&quot;,&quot; &quot;,cn(e.overpaid_amount,e.currency)]})]}),i.jsxs(&quot;form&quot;,{onSubmit:g,className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-500&quot;,children:[&quot;Référence de remboursement &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:o,onChange:y=&gt;{s(y.target.value),x(v=&gt;({...v,refund_reference:&quot;&quot;}))},className:&quot;w-full rounded-lg border border-gray-300 px-4 py-2 focus:border-transparent focus:ring-2 focus:ring-brand-700&quot;}),p.refund_reference?i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:p.refund_reference}):null]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-500&quot;,children:[&quot;Date du remboursement &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:l,onChange:y=&gt;{u(y.target.value),x(v=&gt;({...v,refund_paid_at:&quot;&quot;}))},className:&quot;w-full rounded-lg border border-gray-300 px-4 py-2 focus:border-transparent focus:ring-2 focus:ring-brand-700&quot;}),p.refund_paid_at?i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:p.refund_paid_at}):null]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;mb-2 block text-sm font-medium text-ink-500&quot;,children:&quot;Note&quot;}),i.jsx(&quot;textarea&quot;,{value:c,onChange:y=&gt;a(y.target.value),rows:4,className:&quot;w-full rounded-lg border border-gray-300 px-4 py-2 focus:border-transparent focus:ring-2 focus:ring-brand-700&quot;,placeholder:&quot;Informations complémentaires sur le remboursement manuel...&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-amber-200 bg-amber-50/80 p-4 text-sm text-amber-950&quot;,children:i.jsxs(&quot;ul&quot;,{className:&quot;list-disc space-y-1 pl-5&quot;,children:[i.jsx(&quot;li&quot;,{children:&quot;Cette action documente un remboursement manuel déjà effectué hors système.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Aucun paiement existant ne sera modifié.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Aucun reçu ne sera généré.&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Cette action clôturera l&#039;ajustement commercial.&quot;})]})}),h?i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-red-200 bg-red-50 p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:h})}):null,i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-end gap-3 border-t pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,onClick:t,disabled:d,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:d,children:d?&quot;Enregistrement...&quot;:&quot;Marquer comme effectué&quot;})]})]})]})})]})})}function uoe(e){return e?new Date(e).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;}function doe({items:e,loading:r,error:t,readOnly:n,successMessage:o,onMarkRefundDone:s,onRetry:l}){return i.jsxs(&quot;section&quot;,{className:&quot;rounded-xl border border-gray-200 bg-white shadow-sm overflow-hidden&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;border-b border-gray-200 bg-brand-50/70 px-5 py-4&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-2 md:flex-row md:items-start md:justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-bold text-ink-900&quot;,children:&quot;Remboursements manuels à effectuer&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-600&quot;,children:&quot;Suivi des trop-perçus downgrade à rembourser et clôturer côté Finance.&quot;})]}),n?i.jsx(&quot;span&quot;,{className:&quot;inline-flex w-fit rounded-full border border-gray-200 bg-white px-3 py-1 text-xs font-semibold text-ink-700&quot;,children:&quot;Consultation seule&quot;}):null]})}),o?i.jsx(&quot;div&quot;,{className:&quot;border-b border-green-200 bg-green-50 px-5 py-3 text-sm text-green-900&quot;,children:o}):null,r?i.jsx(&quot;div&quot;,{className:&quot;px-5 py-10 text-center text-sm text-ink-500&quot;,children:&quot;Chargement des remboursements manuels en attente...&quot;}):t?i.jsx(&quot;div&quot;,{className:&quot;px-5 py-6&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-red-200 bg-red-50 px-4 py-4 text-sm text-red-800&quot;,children:[i.jsx(&quot;p&quot;,{children:t}),l?i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:l,className:&quot;mt-3 text-sm font-semibold text-red-900 underline underline-offset-2&quot;,children:&quot;Réessayer&quot;}):null]})}):e.length===0?i.jsx(&quot;div&quot;,{className:&quot;px-5 py-10 text-center text-sm text-ink-500&quot;,children:&quot;Aucun remboursement manuel à effectuer.&quot;}):i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full min-w-[1180px] text-sm&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;border-b border-gray-200 bg-gray-50&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold uppercase text-ink-700&quot;,children:&quot;Participant&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold uppercase text-ink-700&quot;,children:&quot;Inscription&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold uppercase text-ink-700&quot;,children:&quot;Événement&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold uppercase text-ink-700&quot;,children:&quot;Formules&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold uppercase text-ink-700&quot;,children:&quot;Trop-perçu&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold uppercase text-ink-700&quot;,children:&quot;Date ajustement&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold uppercase text-ink-700&quot;,children:&quot;Raison&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold uppercase text-ink-700&quot;,children:&quot;Acteur initial&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold uppercase text-ink-700&quot;,children:&quot;Action&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-100&quot;,children:e.map(u=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50/60&quot;,children:[i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-4 align-top&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:u.participant.full_name||&quot;Participant inconnu&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:u.participant.email||&quot;—&quot;})]}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-4 align-top text-ink-700&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:[&quot;#&quot;,u.registration_id]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:[&quot;Ajustement #&quot;,u.id]})]}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-4 align-top text-ink-700&quot;,children:u.event?.name||&quot;—&quot;}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-4 align-top text-ink-700&quot;,children:[i.jsxs(&quot;p&quot;,{children:[u.from_pricing_plan?.code??&quot;-&quot;,&quot; - &quot;,u.from_pricing_plan?.title??&quot;Ancienne formule&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:[&quot;-&gt; &quot;,&quot; &quot;,u.to_pricing_plan?.code??&quot;-&quot;,&quot; - &quot;,u.to_pricing_plan?.title??&quot;Nouvelle formule&quot;]})]}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-4 align-top text-right font-semibold text-ink-900 tabular-nums&quot;,children:cn(u.overpaid_amount,u.currency)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-4 align-top text-ink-600&quot;,children:uoe(u.created_at)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-4 align-top text-ink-700&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;max-w-[280px] whitespace-pre-wrap break-words&quot;,children:u.reason||&quot;—&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-4 align-top text-ink-700&quot;,children:u.actor?.name||&quot;Système&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-4 align-top text-right&quot;,children:n?i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Action indisponible&quot;}):i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;px-4 py-2 text-xs&quot;,onClick:()=&gt;s(u),children:&quot;Marquer le remboursement effectué&quot;})})]},u.id))})]})})]})}function foe({pendingPayments:e,pendingDonations:r,donationsPaymentInProgress:t,readOnly:n,actionLoading:o,onConfirmPayment:s,onRejectPayment:l,onConfirmDonation:u,onRejectDonation:c,onOpenDonationsList:a}){return i.jsxs(&quot;section&quot;,{className:&quot;grid grid-cols-1 lg:grid-cols-3 gap-6 lg:gap-8&quot;,&quot;aria-label&quot;:&quot;Files d&#039;attente validation&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden flex flex-col&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;px-5 py-3.5 bg-brand-50 border-b border-brand-100 text-sm font-bold text-ink-900&quot;,children:&quot;Paiements en attente de validation&quot;}),i.jsx(&quot;div&quot;,{className:&quot;divide-y divide-gray-100 flex-1&quot;,children:e.length===0?i.jsx(&quot;p&quot;,{className:&quot;px-5 py-6 text-ink-600 text-sm leading-relaxed&quot;,children:&quot;Aucun paiement d&#039;inscription en attente de validation pour la sélection actuelle.&quot;}):e.map(d=&gt;i.jsxs(&quot;div&quot;,{className:&quot;px-5 py-3.5 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;font-semibold text-ink-900&quot;,children:[d.registration?.first_name,&quot; &quot;,d.registration?.last_name]}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600 tabular-nums whitespace-nowrap mt-0.5&quot;,children:cn(d.amount,d.currency)})]}),!n&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2 shrink-0 justify-end&quot;,children:[i.jsx(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;s(d),disabled:o,title:&quot;Confirmer ce paiement&quot;,&quot;aria-label&quot;:&quot;Confirmer ce paiement&quot;,className:&quot;p-1.5&quot;,children:i.jsx(h4,{size:16,&quot;aria-hidden&quot;:!0})}),i.jsx(Ae,{variant:&quot;outline&quot;,onClick:()=&gt;l(d),disabled:o,title:&quot;Rejeter ce paiement&quot;,&quot;aria-label&quot;:&quot;Rejeter ce paiement&quot;,className:&quot;!p-1.5 !px-1.5 !py-1.5&quot;,children:i.jsx(gr,{size:16,&quot;aria-hidden&quot;:!0})})]})]},d.id))})]}),i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden flex flex-col&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;px-5 py-3.5 bg-brand-50 border-b border-brand-100 text-sm font-bold text-ink-900&quot;,children:&quot;Dons en attente de validation&quot;}),i.jsx(&quot;div&quot;,{className:&quot;divide-y divide-gray-100 flex-1&quot;,children:r.length===0?i.jsx(&quot;p&quot;,{className:&quot;px-5 py-6 text-ink-600 text-sm leading-relaxed&quot;,children:&quot;Aucun don en attente de validation pour la sélection actuelle.&quot;}):r.map(d=&gt;i.jsxs(&quot;div&quot;,{className:&quot;px-5 py-3 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 text-sm&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-semibold text-ink-900 truncate&quot;,title:d.donor_name||&quot;Anonyme&quot;,children:d.donor_name||&quot;Anonyme&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-600 tabular-nums whitespace-nowrap mt-0.5&quot;,children:cn(d.amount,d.currency)})]}),!n&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2 shrink-0 justify-end&quot;,children:[i.jsx(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;u(d),disabled:o,title:&quot;Confirmer ce don&quot;,&quot;aria-label&quot;:&quot;Confirmer ce don&quot;,className:&quot;p-1.5&quot;,children:i.jsx(h4,{size:16,&quot;aria-hidden&quot;:!0})}),i.jsx(Ae,{variant:&quot;outline&quot;,onClick:()=&gt;c(d),disabled:o,title:&quot;Rejeter ce don&quot;,&quot;aria-label&quot;:&quot;Rejeter ce don&quot;,className:&quot;!p-1.5 !px-1.5 !py-1.5&quot;,children:i.jsx(gr,{size:16,&quot;aria-hidden&quot;:!0})})]})]},d.id))})]}),i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden flex flex-col&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;px-4 sm:px-5 py-3 bg-sky-50 border-b border-sky-100 flex flex-wrap items-center justify-between gap-2&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-sm font-bold text-ink-900&quot;,children:&quot;Dons SycaPay en cours&quot;}),a?i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:a,className:&quot;text-xs font-semibold shrink-0 !py-1.5 !px-2.5&quot;,children:&quot;Voir la liste des dons&quot;}):null]}),i.jsx(&quot;div&quot;,{className:&quot;divide-y divide-gray-100 flex-1&quot;,children:t.length===0?i.jsx(&quot;p&quot;,{className:&quot;px-5 py-6 text-ink-600 text-sm leading-relaxed&quot;,children:&quot;Aucun don SycaPay en cours pour la sélection actuelle.&quot;}):t.map(d=&gt;i.jsxs(&quot;div&quot;,{className:&quot;px-5 py-3 flex flex-col gap-1.5 text-sm&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-semibold text-ink-900 truncate&quot;,title:d.donor_name||&quot;Anonyme&quot;,children:d.donor_name||&quot;Anonyme&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-600 tabular-nums whitespace-nowrap&quot;,children:cn(d.amount,d.currency)}),i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:[&quot;Don: &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-medium&quot;,children:d.status}),d.latest_gateway_payment?.status?i.jsxs(i.Fragment,{children:[&quot; &quot;,&quot;• Paiement: &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-medium&quot;,children:d.latest_gateway_payment.status})]}):null]}),d.latest_gateway_payment?.provider_status?i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:[&quot;Provider: &quot;,d.latest_gateway_payment.provider_status]}):null,d.latest_gateway_payment?.provider_last_error?i.jsx(&quot;p&quot;,{className:&quot;text-xs text-red-700&quot;,children:d.latest_gateway_payment.provider_last_error}):null]},d.id))})]})]})}const hoe={draft:&quot;Brouillon&quot;,in_review:&quot;En revue&quot;,validated:&quot;Validée&quot;,closed:&quot;Clôturée&quot;},$6={bank:&quot;Banque&quot;,cash:&quot;Espèces&quot;,mobile_money:&quot;Mobile Money&quot;};function moe(e){switch(e){case&quot;draft&quot;:return&quot;bg-slate-100 text-slate-800 border-slate-200&quot;;case&quot;in_review&quot;:return&quot;bg-amber-50 text-amber-900 border-amber-200&quot;;case&quot;validated&quot;:return&quot;bg-emerald-50 text-emerald-900 border-emerald-200&quot;;case&quot;closed&quot;:return&quot;bg-gray-100 text-gray-800 border-gray-200&quot;;default:return&quot;bg-gray-50 text-gray-700 border-gray-200&quot;}}function kd(e){return e instanceof kt?(e.data.error?.code===&quot;RECON_INVALID_TRANSITION&quot;,e.data.error?.message??e.message):e instanceof Error?e.message:&quot;Erreur inconnue.&quot;}function poe({eventId:e,canWrite:r,canApprove:t,canReopen:n}){const[o,s]=O.useState([]),[l,u]=O.useState(!1),[c,a]=O.useState(null),[d,f]=O.useState(!1),[h,m]=O.useState(!1),[p,x]=O.useState(null),[g,y]=O.useState(&quot;bank&quot;),[v,_]=O.useState(&quot;&quot;),[S,A]=O.useState(&quot;&quot;),[I,V]=O.useState(&quot;&quot;),[F,q]=O.useState(null),[H,B]=O.useState(&quot;&quot;),[K,T]=O.useState(!1),[L,E]=O.useState(null),[j,k]=O.useState(null),[N,C]=O.useState(&quot;&quot;),[P,D]=O.useState(!1),[z,Y]=O.useState(null),[Z,ne]=O.useState(null),[U,J]=O.useState(null),$=O.useCallback(async()=&gt;{if(e===&quot;&quot;){s([]);return}u(!0),a(null);try{const ce=await Mc.listSessions({event_id:e});s(ce)}catch(ce){a(kd(ce)),s([])}finally{u(!1)}},[e]);O.useEffect(()=&gt;{$()},[$]);const R=()=&gt;{x(null);const ce=new Date().toISOString().slice(0,10);_(ce.slice(0,8)+&quot;01&quot;),A(ce),y(&quot;bank&quot;),V(&quot;&quot;),f(!0)},X=async()=&gt;{if(e!==&quot;&quot;){m(!0),x(null);try{await Mc.createSession({event_id:e,channel:g,period_start:v,period_end:S,...g===&quot;mobile_money&quot;&amp;&amp;I.trim()?{mobile_operator:I.trim()}:{}}),f(!1),await $()}catch(ce){x(kd(ce))}finally{m(!1)}}},re=async(ce,se)=&gt;{J(null),ne(ce);try{return await se(),await $(),!0}catch(fe){return J(kd(fe)),!1}finally{ne(null)}},Q=ce=&gt;{E(null),B(&quot;&quot;),q(ce)},te=async()=&gt;{if(F){T(!0),E(null);try{await Mc.closeSession(F.id,{close_notes:H.trim()||void 0}),q(null),await $()}catch(ce){ce instanceof kt&amp;&amp;ce.status===422&amp;&amp;ce.data.error?.code===&quot;RECON_CLOSE_BLOCKED&quot;?E({type:&quot;blocked&quot;,summary:ce.data.error.message,details:ce.data.error.details??[]}):E({type:&quot;blocked&quot;,summary:kd(ce),details:[]})}finally{T(!1)}}},ie=async()=&gt;{if(j){D(!0),Y(null);try{await Mc.reopenSession(j.id,{reopen_reason:N.trim()}),k(null),C(&quot;&quot;),await $()}catch(ce){Y(kd(ce))}finally{D(!1)}}},de=e!==&quot;&quot;;return i.jsxs(&quot;div&quot;,{className:&quot;space-y-6&quot;,role:&quot;tabpanel&quot;,&quot;aria-label&quot;:&quot;Rapprochement comptable&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-bold text-ink-900 tracking-tight&quot;,children:&quot;Rapprochement comptable&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mt-1&quot;,children:&quot;Sessions de rapprochement du relevé avec les encaissements internes — distinct de la réconciliation technique SycaPay.&quot;})]}),!de&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-900&quot;,children:&quot;Sélectionnez un événement pour afficher les sessions de rapprochement.&quot;}),de&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-3&quot;,children:[r&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:R,children:&quot;Nouvelle session&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:()=&gt;{$()},disabled:l,children:&quot;Actualiser&quot;})]}),c&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800&quot;,role:&quot;alert&quot;,children:c}),U&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800&quot;,role:&quot;alert&quot;,children:U}),de&amp;&amp;l&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Chargement des sessions…&quot;}),de&amp;&amp;!l&amp;&amp;o.length===0&amp;&amp;!c&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Aucune session pour cet événement.&quot;}),o.length&gt;0&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto rounded-xl border border-gray-200 bg-white shadow-sm&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;min-w-full divide-y divide-gray-200 text-sm&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-gray-50&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{scope:&quot;col&quot;,className:&quot;px-4 py-3 text-left font-semibold text-ink-700&quot;,children:&quot;Période&quot;}),i.jsx(&quot;th&quot;,{scope:&quot;col&quot;,className:&quot;px-4 py-3 text-left font-semibold text-ink-700&quot;,children:&quot;Canal&quot;}),i.jsx(&quot;th&quot;,{scope:&quot;col&quot;,className:&quot;px-4 py-3 text-left font-semibold text-ink-700&quot;,children:&quot;Statut&quot;}),i.jsx(&quot;th&quot;,{scope:&quot;col&quot;,className:&quot;px-4 py-3 text-right font-semibold text-ink-700&quot;,children:&quot;Actions&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-100&quot;,children:o.map(ce=&gt;i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 whitespace-nowrap text-ink-800&quot;,children:(ce.period_start??&quot;—&quot;)+&quot; → &quot;+(ce.period_end??&quot;—&quot;)}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-700&quot;,children:[$6[ce.channel]??ce.channel,ce.channel===&quot;mobile_money&quot;&amp;&amp;ce.mobile_operator&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;block text-xs text-ink-500&quot;,children:ce.mobile_operator})]}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:[i.jsx(&quot;span&quot;,{className:`inline-flex rounded-full border px-2.5 py-0.5 text-xs font-semibold ${moe(ce.status)}`,children:hoe[ce.status]??ce.status}),typeof ce.reopen_count==&quot;number&quot;&amp;&amp;ce.reopen_count&gt;0&amp;&amp;i.jsxs(&quot;span&quot;,{className:&quot;ml-2 text-xs text-ink-500&quot;,children:[&quot;Réouvertures : &quot;,ce.reopen_count]})]}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap justify-end gap-2&quot;,children:[ce.status===&quot;draft&quot;&amp;&amp;r&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;!px-3 !py-2 text-xs uppercase&quot;,disabled:Z!==null,onClick:()=&gt;{re(`submit-${ce.id}`,()=&gt;Mc.submitReview(ce.id))},children:Z===`submit-${ce.id}`?&quot;…&quot;:&quot;Soumettre en revue&quot;}),ce.status===&quot;in_review&quot;&amp;&amp;t&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;!px-3 !py-2 text-xs uppercase&quot;,disabled:Z!==null,onClick:()=&gt;{re(`validate-${ce.id}`,()=&gt;Mc.validateSession(ce.id))},children:Z===`validate-${ce.id}`?&quot;…&quot;:&quot;Valider&quot;}),ce.status===&quot;validated&quot;&amp;&amp;t&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:&quot;!px-3 !py-2 text-xs uppercase&quot;,disabled:Z!==null,onClick:()=&gt;Q(ce),children:&quot;Clôturer&quot;}),ce.status===&quot;closed&quot;&amp;&amp;n&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;!px-3 !py-2 text-xs uppercase&quot;,disabled:Z!==null,onClick:()=&gt;{Y(null),C(&quot;&quot;),k(ce)},children:&quot;Rouvrir&quot;})]})})]},ce.id))})]})}),d&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4&quot;,role:&quot;dialog&quot;,&quot;aria-modal&quot;:&quot;true&quot;,&quot;aria-labelledby&quot;:&quot;recon-create-title&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;w-full max-w-md rounded-xl bg-white p-6 shadow-xl border border-gray-200&quot;,children:[i.jsx(&quot;h4&quot;,{id:&quot;recon-create-title&quot;,className:&quot;text-lg font-bold text-ink-900&quot;,children:&quot;Nouvelle session de rapprochement&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mt-4 space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Canal&quot;}),i.jsxs(&quot;select&quot;,{value:g,onChange:ce=&gt;y(ce.target.value),className:&quot;w-full rounded-lg border border-gray-300 px-3 py-2 text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;bank&quot;,children:&quot;Banque&quot;}),i.jsx(&quot;option&quot;,{value:&quot;cash&quot;,children:&quot;Espèces&quot;}),i.jsx(&quot;option&quot;,{value:&quot;mobile_money&quot;,children:&quot;Mobile Money&quot;})]})]}),g===&quot;mobile_money&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Opérateur Mobile Money&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:I,onChange:ce=&gt;V(ce.target.value),className:&quot;w-full rounded-lg border border-gray-300 px-3 py-2 text-sm&quot;,placeholder:&quot;ex. ORANGE_MONEY&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 sm:grid-cols-2 gap-3&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Début de période&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:v,onChange:ce=&gt;_(ce.target.value),className:&quot;w-full rounded-lg border border-gray-300 px-3 py-2 text-sm&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Fin de période&quot;}),i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:S,onChange:ce=&gt;A(ce.target.value),className:&quot;w-full rounded-lg border border-gray-300 px-3 py-2 text-sm&quot;})]})]})]}),p&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-3 text-sm text-red-700&quot;,role:&quot;alert&quot;,children:p}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 flex justify-end gap-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:()=&gt;f(!1),disabled:h,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:()=&gt;{X()},disabled:h||!v||!S,children:h?&quot;Création…&quot;:&quot;Créer&quot;})]})]})}),F&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4&quot;,role:&quot;dialog&quot;,&quot;aria-modal&quot;:&quot;true&quot;,&quot;aria-labelledby&quot;:&quot;recon-close-title&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;w-full max-w-lg rounded-xl bg-white p-6 shadow-xl border border-gray-200 max-h-[90vh] overflow-y-auto&quot;,children:[i.jsx(&quot;h4&quot;,{id:&quot;recon-close-title&quot;,className:&quot;text-lg font-bold text-ink-900&quot;,children:&quot;Clôturer la session&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-600&quot;,children:[&quot;Période &quot;,(F.period_start??&quot;&quot;)+&quot; → &quot;+(F.period_end??&quot;&quot;),&quot; —&quot;,&quot; &quot;,$6[F.channel]??F.channel]}),i.jsx(&quot;label&quot;,{className:&quot;mt-4 block text-sm font-medium text-ink-700&quot;,children:&quot;Notes de clôture (optionnel)&quot;}),i.jsx(&quot;textarea&quot;,{value:H,onChange:ce=&gt;B(ce.target.value),rows:3,className:&quot;mt-1 w-full rounded-lg border border-gray-300 px-3 py-2 text-sm&quot;,placeholder:&quot;Référence dossier, commentaire pour l’audit…&quot;}),L&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-4 rounded-lg border border-red-200 bg-red-50 px-3 py-3 text-sm text-red-900&quot;,role:&quot;alert&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-semibold&quot;,children:L.summary}),L.details.length&gt;0&amp;&amp;i.jsx(&quot;ul&quot;,{className:&quot;mt-2 list-disc space-y-1 pl-5&quot;,children:L.details.map((ce,se)=&gt;i.jsx(&quot;li&quot;,{children:ce.message},`${ce.code}-${se}`))})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 flex justify-end gap-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:()=&gt;q(null),disabled:K,children:&quot;Fermer&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:()=&gt;{te()},disabled:K,children:K?&quot;Clôture…&quot;:&quot;Confirmer la clôture&quot;})]})]})}),j&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4&quot;,role:&quot;dialog&quot;,&quot;aria-modal&quot;:&quot;true&quot;,&quot;aria-labelledby&quot;:&quot;recon-reopen-title&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;w-full max-w-md rounded-xl bg-white p-6 shadow-xl border border-gray-200&quot;,children:[i.jsx(&quot;h4&quot;,{id:&quot;recon-reopen-title&quot;,className:&quot;text-lg font-bold text-ink-900&quot;,children:&quot;Rouvrir la session&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-600&quot;,children:&quot;La session repassera en « En revue ». Motif obligatoire (audit).&quot;}),i.jsx(&quot;label&quot;,{className:&quot;mt-4 block text-sm font-medium text-ink-700&quot;,children:&quot;Motif&quot;}),i.jsx(&quot;textarea&quot;,{value:N,onChange:ce=&gt;C(ce.target.value),rows:4,className:&quot;mt-1 w-full rounded-lg border border-gray-300 px-3 py-2 text-sm&quot;,placeholder:&quot;Au moins quelques caractères…&quot;}),z&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-red-700&quot;,role:&quot;alert&quot;,children:z}),i.jsxs(&quot;div&quot;,{className:&quot;mt-6 flex justify-end gap-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:()=&gt;k(null),disabled:P,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:()=&gt;{ie()},disabled:P||N.trim().length&lt;5,children:P?&quot;Envoi…&quot;:&quot;Confirmer&quot;})]})]})})]})}const goe=&quot;Sommet Haggai Franco 2026&quot;;function z6(e){return(e??&quot;&quot;).trim().toLowerCase()}function xoe(){const{can:e,roles:r,loading:t}=Ts(),{events:n}=n0(),[o,s]=O.useState([]),[l,u]=O.useState(!0),[c,a]=O.useState(null),d=e(&quot;finance.dashboard&quot;)||e(&quot;payments.read&quot;);O.useEffect(()=&gt;{d&amp;&amp;(u(!0),a(null),Fr.getEvents().then(s).catch(ae=&gt;{const ve=ae?.data?.message,$e=ae?.status;a($e===404||ve===&quot;Not Found&quot;?&quot;Module finance indisponible. Vérifiez que l’API est à jour (cache des routes) ou contactez l’administrateur.&quot;:ve??&quot;Impossible de charger les événements.&quot;)}).finally(()=&gt;u(!1)))},[d]);const f=O.useMemo(()=&gt;(o?.length?o:n)??[],[o,n]),h=O.useMemo(()=&gt;{if(r.includes(&quot;SUPER_ADMIN&quot;))return[&quot;summit&quot;,&quot;seminar&quot;];if(r.includes(&quot;COMMISSION_FINANCE&quot;))return[&quot;summit&quot;];if(r.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;))return[&quot;seminar&quot;];if(r.includes(&quot;COMMISSARIAT_GENERAL&quot;))return[&quot;summit&quot;,&quot;seminar&quot;];const ae=r.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;),ve=r.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;);return ae&amp;&amp;ve?[&quot;summit&quot;,&quot;seminar&quot;]:ae?[&quot;summit&quot;]:ve?[&quot;seminar&quot;]:[]},[r]),m=r.includes(&quot;COMMISSARIAT_GENERAL&quot;),p=e(&quot;finance.reconciliation.read&quot;),x=O.useMemo(()=&gt;(f??[]).filter(ae=&gt;h.includes(ae.event_type)),[f,h]),g=O.useMemo(()=&gt;x.length&gt;0?x:r.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;(f?.length??0)&gt;0?f??[]:x,[r,f,x]),[y,v]=O.useState(&quot;&quot;);O.useEffect(()=&gt;{y&amp;&amp;!g.some(ae=&gt;ae.id===y)&amp;&amp;v(&quot;&quot;)},[y,g]),O.useEffect(()=&gt;{if(y===&quot;&quot;&amp;&amp;g.length&gt;0){const ae=z6(goe),ve=g.find($e=&gt;z6($e.name)===ae);v(ve?.id??g[0].id)}},[y,g]);const[_,S]=O.useState(null),[A,I]=O.useState(!0),[V,F]=O.useState(null),[q,H]=O.useState(null),[B,K]=O.useState(null),[T,L]=O.useState(&quot;&quot;),[E,j]=O.useState(&quot;&quot;),[k,N]=O.useState(null),[C,P]=O.useState(null),[D,z]=O.useState(&quot;&quot;),[Y,Z]=O.useState([]),[ne,U]=O.useState(0),[J,$]=O.useState(null),[R,X]=O.useState(&quot;&quot;),[re,Q]=O.useState(&quot;orange_money&quot;),[te,ie]=O.useState(()=&gt;new Date().toISOString().slice(0,16)),[de,ce]=O.useState(&quot;&quot;),[se,fe]=O.useState(&quot;&quot;),[le,ge]=O.useState(null),[xe,pe]=O.useState(null),[ue,we]=O.useState(!1),[ke,De]=O.useState(&quot;&quot;),[Le,ze]=O.useState([]),[Oe,Ve]=O.useState([]),[Qe,Ze]=O.useState(null),[Je,qe]=O.useState(null),[tt,nt]=O.useState([]),[Me,st]=O.useState(!1),[$t,ft]=O.useState(1),[zt,Bt]=O.useState(20),[Ct,rr]=O.useState(null),[Gt,_t]=O.useState(&quot;&quot;),[Rt,Jt]=O.useState(&quot;&quot;),[it,Ut]=O.useState(null),[Xt,Mt]=O.useState(!1),[be,Ne]=O.useState(null),[Re,Ge]=O.useState(!1),[vt,rt]=O.useState(!1),[Pt,jt]=O.useState(!1),[at,Ot]=O.useState(!1),[At,Vt]=O.useState([]),[dr,sr]=O.useState(!1),[_r,fr]=O.useState(null),[Yr,he]=O.useState([]),[je,Fe]=O.useState(!1),[Ue,lt]=O.useState(null),[Ke,Ye]=O.useState(null),[Ht,Dt]=O.useState(null),[St,bt]=O.useState(1),[Ce,ct]=O.useState(20),[pt,Yt]=O.useState(null),[hr,Mr]=O.useState(!1),[Kt,Gn]=O.useState(&quot;validation&quot;),[Cr,cs]=O.useState(&quot;dashboard&quot;);O.useEffect(()=&gt;{p||Gn(ae=&gt;ae===&quot;reconciliation&quot;?&quot;validation&quot;:ae)},[p]);const[Cn,ar]=O.useState(()=&gt;new Date().toISOString().slice(0,7)),[Wt,Ln]=O.useState(&quot;exact&quot;),[Zr,Rs]=O.useState(&quot;all&quot;),[It,di]=O.useState(&quot;all&quot;),[nn,Ci]=O.useState([]),[Ds,Fi]=O.useState(!1),[fi,oa]=O.useState(null),[Yn,Kr]=O.useState(1),[En,Zn]=O.useState(20),[Pr,hi]=O.useState(null),[Fn,Ff]=O.useState(!1),[Ei,Ls]=O.useState(new Set),[_u,ju]=O.useState(!1),[to,Yo]=O.useState(null),[Bf,ro]=O.useState([]),[mi,Bi]=O.useState([]),[Zl,$f]=O.useState(!1),[Q0,Ai]=O.useState(null),[la,Zo]=O.useState(&quot;&quot;),[Nu,us]=O.useState(&quot;&quot;),[Ql,Qo]=O.useState(0),[zf,Jo]=O.useState(!1),[Jl,el]=O.useState(null),[Qn,ca]=O.useState(null),[ua,ds]=O.useState(null),[Uf,ec]=O.useState(&quot;&quot;),[tc,no]=O.useState(0),[tl,ku]=O.useState(0),[Vf,qf]=O.useState(0),[fs,rc]=O.useState(!1),[Wf,rl]=O.useState(null),[J0,nc]=O.useState(null),[Su,Jn]=O.useState(null),[eg,Hf]=O.useState(!1),[io,Cu]=O.useState([]),[Eu,Kf]=O.useState(!1),[tg,da]=O.useState(null),[Xf,rg]=O.useState([]),[ng,ig]=O.useState([]),[Gf,sg]=O.useState(()=&gt;new Date().toISOString().slice(0,10)),[Yf,Zf]=O.useState(0),[nl,il]=O.useState(&quot;&quot;),[ic,Qf]=O.useState(&quot;&quot;),[Au,Mu]=O.useState(&quot;&quot;),[sc,Pu]=O.useState(null),[so,ag]=O.useState(0),[og,Jf]=O.useState(!1),[eh,Fs]=O.useState(null),[$i,fa]=O.useState([]),[lg,sl]=O.useState(!1),[cg,ha]=O.useState(null),[ao,Ou]=O.useState([]),[th,rh]=O.useState(&quot;transfer&quot;),[oo,ug]=O.useState(&quot;&quot;),[al,dg]=O.useState(&quot;&quot;),[nh,ih]=O.useState(0),[pi,lo]=O.useState(&quot;&quot;),[Tu,Iu]=O.useState(&quot;&quot;),[ac,Ru]=O.useState(null),[Du,fg]=O.useState(0),[hg,ma]=O.useState(!1),[Lu,ei]=O.useState(null),[ol,sh]=O.useState(&quot;&quot;),[ll,co]=O.useState(&quot;increase&quot;),[oc,Fu]=O.useState(0),[cl,Bu]=O.useState(&quot;&quot;),[$u,zu]=O.useState(&quot;&quot;),[lc,Uu]=O.useState(null),[ah,Bs]=O.useState(0),[Vu,cc]=O.useState(!1),[mg,pa]=O.useState(null),[ul,pg]=O.useState(null),[oh,qu]=O.useState(!1),[jr,uc]=O.useState(null),pn=g.find(ae=&gt;ae.id===y)??f?.find(ae=&gt;ae.id===y),zi=pn?.event_type??null,Wu=O.useCallback(()=&gt;{d&amp;&amp;(I(!0),F(null),Fr.getDashboard(y?{event_id:y}:void 0).then(S).catch(ae=&gt;F(ae?.data?.message||&quot;Erreur chargement dashboard finance.&quot;)).finally(()=&gt;I(!1)))},[d,y]);O.useEffect(()=&gt;{d&amp;&amp;Wu()},[d,y,ne,Wu]),O.useEffect(()=&gt;{y&amp;&amp;typeof y==&quot;number&quot;&amp;&amp;(ft(1),Kr(1),_t(&quot;&quot;),Jt(&quot;&quot;))},[y]),O.useEffect(()=&gt;{const ae=window.setTimeout(()=&gt;Jt(Gt.trim()),400);return()=&gt;window.clearTimeout(ae)},[Gt]),O.useEffect(()=&gt;{ft(1)},[Rt]),O.useEffect(()=&gt;{const ae=y===&quot;&quot;?null:Number(y);if(!d||Kt!==&quot;validation&quot;||ae==null||Number.isNaN(ae)){nt([]),rr(null);return}st(!0),Fr.getDebtors({event_id:ae,page:$t,per_page:zt,...Rt!==&quot;&quot;?{q:Rt}:{}}).then(ve=&gt;{nt(Array.isArray(ve.data)?ve.data:[]),rr(ve.meta??null)}).catch(()=&gt;{nt([]),rr(null)}).finally(()=&gt;st(!1))},[d,Kt,y,$t,zt,Rt,ne]),O.useEffect(()=&gt;{if(!d||Cr!==&quot;dashboard&quot;||Kt!==&quot;validation&quot;)return;const ae=y===&quot;&quot;?void 0:Number(y),ve=ae==null||Number.isNaN(ae)?void 0:{event_id:ae};Fe(!0),lt(null),Fr.getPendingRefundAdjustments(ve).then($e=&gt;{he(Array.isArray($e.data)?$e.data:[])}).catch($e=&gt;{he([]),lt($e?.data?.message??$e?.message??&quot;Erreur lors du chargement des remboursements manuels.&quot;)}).finally(()=&gt;Fe(!1))},[d,Cr,Kt,y,ne]),O.useEffect(()=&gt;{const ae=y===&quot;&quot;?void 0:Number(y);at&amp;&amp;(sr(!0),fr(null),Fr.getDonations({event_id:Number.isNaN(ae)?void 0:ae,page:St,per_page:Ce}).then(ve=&gt;{Vt(ve.data??[]),Yt(ve.meta??null)}).catch(ve=&gt;{Vt([]),Yt(null),fr(ve?.data?.message??ve?.message??&quot;Erreur lors du chargement des dons.&quot;)}).finally(()=&gt;sr(!1)))},[at,St,Ce,y,ne]),O.useEffect(()=&gt;{const ae=y===&quot;&quot;?null:Number(y);if(!d||Cr!==&quot;reminders&quot;||ae==null||Number.isNaN(ae)){Ci([]),hi(null);return}Fi(!0),oa(null),Fr.getExpectedPaymentsForMonth({event_id:ae,month:Cn,month_scope:Wt,installment_status:Zr===&quot;all&quot;?void 0:Zr,financial_situation:It===&quot;all&quot;?void 0:It,page:Yn,per_page:En}).then(ve=&gt;{Ci(ve.data??[]),hi(ve.meta??null)}).catch(ve=&gt;{Ci([]),hi(null),oa(ve?.data?.message??ve?.message??&quot;Erreur lors du chargement relance.&quot;)}).finally(()=&gt;Fi(!1))},[d,Cr,y,Cn,Wt,Zr,It,Yn,En,ne]),O.useEffect(()=&gt;{Ls(new Set),Yo(null)},[y,Cn,Wt,Zr,It]),O.useEffect(()=&gt;{Ye(null)},[y,Cr,Kt]);const dl=ae=&gt;`${ae.registration_id}-${ae.installment_index}`,ga=O.useCallback(()=&gt;{if(!zi){ro([]);return}Fo.list({event_type:zi}).then(ae=&gt;ro(Array.isArray(ae)?ae:[]))},[zi]),$s=O.useCallback(()=&gt;{if(!y||typeof y!=&quot;number&quot;){Bi([]);return}$f(!0),Ai(null),jl.list(y).then(Bi).catch(ae=&gt;Ai(ae?.data?.message??&quot;Erreur chargement des lignes.&quot;)).finally(()=&gt;$f(!1))},[y]);O.useEffect(()=&gt;{Kt===&quot;budget&quot;&amp;&amp;ga()},[Kt,zi,ga]),O.useEffect(()=&gt;{Kt!==&quot;budget&quot;||!y||$s()},[Kt,y,$s]);const xa=O.useCallback(()=&gt;{!y||typeof y!=&quot;number&quot;||(Kf(!0),da(null),Qh.list(y).then(Cu).catch(ae=&gt;da(ae?.data?.message??&quot;Erreur chargement des dépenses.&quot;)).finally(()=&gt;Kf(!1)))},[y]);O.useEffect(()=&gt;{Kt!==&quot;expenses&quot;||!y||(xa(),jl.list(y).then(ae=&gt;{rg(ae.filter(ve=&gt;ve.category_type===&quot;expense&quot;))}),Qs.list({event_id:y}).then(ae=&gt;{const ve=Array.isArray(ae)?ae:ae?.data??[];ig(ve.filter($e=&gt;$e.is_active&amp;&amp;$e.usage!==&quot;sycapay_transit&quot;))}))},[Kt,y,xa]),O.useEffect(()=&gt;{Kt!==&quot;movements&quot;||!y||typeof y!=&quot;number&quot;||(sl(!0),ha(null),Jh.list(y).then(fa).catch(ae=&gt;ha(ae?.data?.message??&quot;Erreur chargement des mouvements.&quot;)).finally(()=&gt;sl(!1)),Qs.list({event_id:y}).then(ae=&gt;{const ve=Array.isArray(ae)?ae:ae?.data??[];Ou(ve.filter($e=&gt;$e.is_active))}))},[Kt,y]),O.useEffect(()=&gt;{Kt!==&quot;treasury&quot;||!y||typeof y!=&quot;number&quot;||(qu(!0),uc(null),Dc.get(y).then(pg).catch(ae=&gt;uc(ae?.data?.message??&quot;Erreur chargement des soldes.&quot;)).finally(()=&gt;qu(!1)))},[Kt,y,ne]);const lh=()=&gt;{if(!y||typeof y!=&quot;number&quot;){Fs(&quot;Sélectionnez un événement.&quot;);return}if(ic===&quot;&quot;||typeof ic!=&quot;number&quot;){Fs(&quot;Choisissez un compte de trésorerie.&quot;);return}const ae=Au.trim();if(!ae){Fs(&quot;Le libellé est obligatoire.&quot;);return}const ve=Number(Yf);if(isNaN(ve)||ve&lt;1){Fs(&quot;Montant invalide.&quot;);return}if(!sc){Fs(&quot;La pièce justificative est obligatoire.&quot;);return}Fs(null),Jf(!0),Qh.create({event_id:y,treasury_account_id:ic,event_budget_line_id:nl===&quot;&quot;?null:nl,amount:ve,paid_at:Gf,label:ae,proof:sc}).then($e=&gt;{Cu(Be=&gt;[$e,...Be]),Zf(0),Mu(&quot;&quot;),Pu(null),ag(Be=&gt;Be+1)}).catch($e=&gt;Fs($e?.data?.message??&quot;Erreur lors de l&#039;ajout.&quot;)).finally(()=&gt;Jf(!1))},gg=ae=&gt;{da(null),Qh.openExpenseProofInNewTab(ae.id).catch(ve=&gt;da(ve&amp;&amp;typeof ve==&quot;object&quot;&amp;&amp;&quot;data&quot;in ve&amp;&amp;ve.data?.message?String(ve.data?.message):ve instanceof Error?ve.message:&quot;Impossible d’ouvrir le justificatif.&quot;))},xg=ae=&gt;{ha(null),Jh.openMovementProofInNewTab(ae.id).catch(ve=&gt;ha(ve&amp;&amp;typeof ve==&quot;object&quot;&amp;&amp;&quot;data&quot;in ve&amp;&amp;ve.data?.message?String(ve.data?.message):ve instanceof Error?ve.message:&quot;Impossible d’ouvrir le justificatif.&quot;))},ch=ae=&gt;{confirm(&quot;Supprimer cette dépense ? La réalisation budgétaire sera mise à jour.&quot;)&amp;&amp;Qh.delete(ae.id).then(()=&gt;Cu(ve=&gt;ve.filter($e=&gt;$e.id!==ae.id))).catch(ve=&gt;da(ve?.data?.message??&quot;Erreur suppression.&quot;))},dc=(ae,ve)=&gt;{P(null),H({type:&quot;confirm-payment&quot;,id:ae}),Fr.confirmPayment(ae,ve).then(()=&gt;{K(null),L(&quot;&quot;),j(&quot;&quot;),N(null),U($e=&gt;$e+1)}).catch($e=&gt;{P($e?.data?.message||$e?.message||&quot;Erreur lors de la confirmation.&quot;)}).finally(()=&gt;H(null))},fc=(ae,ve)=&gt;{P(null),H({type:&quot;reject-payment&quot;,id:ae}),Fr.rejectPayment(ae,ve).then(()=&gt;{K(null),L(&quot;&quot;),j(&quot;&quot;),N(null),U($e=&gt;$e+1)}).catch($e=&gt;{P($e?.data?.message||$e?.message||&quot;Erreur lors du rejet.&quot;)}).finally(()=&gt;H(null))},Hu=(ae,ve)=&gt;{P(null),H({type:&quot;confirm-donation&quot;,id:ae}),Fr.confirmDonation(ae,ve).then(()=&gt;{K(null),L(&quot;&quot;),j(&quot;&quot;),N(null),U($e=&gt;$e+1)}).catch($e=&gt;{P($e?.data?.message||$e?.message||&quot;Erreur lors de la confirmation.&quot;)}).finally(()=&gt;H(null))},Ku=(ae,ve)=&gt;{P(null),H({type:&quot;reject-donation&quot;,id:ae}),Fr.rejectDonation(ae,ve).then(()=&gt;{K(null),L(&quot;&quot;),j(&quot;&quot;),N(null),U($e=&gt;$e+1)}).catch($e=&gt;{P($e?.data?.message||$e?.message||&quot;Erreur lors du rejet.&quot;)}).finally(()=&gt;H(null))},uo=(ae,ve)=&gt;{K({action:ae,target:ve}),L(&quot;&quot;),j(&quot;&quot;),N(null),P(null),z(&quot;&quot;),Z([])};O.useEffect(()=&gt;{if(!B||B.action!==&quot;confirm&quot;)return;const ae=B.target;if(ae.type!==&quot;payment&quot;&amp;&amp;ae.type!==&quot;donation&quot;)return;const ve=ae.event_id??&quot;&quot;;if(ve===&quot;&quot;||ve===void 0){Z([]);return}Qs.list({event_id:typeof ve==&quot;number&quot;?ve:Number(ve)}).then($e=&gt;{const Be=Array.isArray($e)?$e:$e?.data??[];Z(Be.filter(nr=&gt;nr.usage!==&quot;sycapay_transit&quot;))}).catch(()=&gt;Z([]))},[B]);const Xu=()=&gt;{if(!B)return;if(B.action===&quot;confirm&quot;&amp;&amp;B.target.type===&quot;payment&quot;&amp;&amp;(D===&quot;&quot;||D===void 0)){P(&quot;Veuillez sélectionner le compte de trésorerie impacté par l&#039;encaissement.&quot;);return}const ae=B.target,ve={review_note:T.trim()||void 0,reference:E.trim()||void 0,proof:k||void 0,...B.action===&quot;confirm&quot;&amp;&amp;(ae.type===&quot;payment&quot;||ae.type===&quot;donation&quot;)&amp;&amp;D!==&quot;&quot;&amp;&amp;{treasury_account_id:Number(D)}};B.target.type===&quot;payment&quot;?B.action===&quot;confirm&quot;?dc(B.target.id,ve):fc(B.target.id,ve):B.action===&quot;confirm&quot;?Hu(B.target.id,ve):Ku(B.target.id,ve)};O.useEffect(()=&gt;{if(!J?.event?.id){ze([]);return}Qs.list({event_id:J.event.id}).then(ae=&gt;{const ve=Array.isArray(ae)?ae:ae?.data??[];ze(ve.filter($e=&gt;$e.usage!==&quot;sycapay_transit&quot;))}).catch(()=&gt;ze([]))},[J]);const bg=ae=&gt;{$(ae),X(String(ae.balance)),Q(&quot;orange_money&quot;),ie(new Date().toISOString().slice(0,16)),ce(&quot;&quot;),fe(&quot;&quot;),ge(null),De(&quot;&quot;),pe(null),Ve([])},hc=O.useMemo(()=&gt;!J||!J.installment_due_items?.length?0:J.installment_due_items.filter(ae=&gt;Oe.includes(ae.index)).reduce((ae,ve)=&gt;ae+ve.amount_due_remaining,0),[J,Oe]),yg=ae=&gt;{Ve(ve=&gt;ve.includes(ae)?ve.filter($e=&gt;$e!==ae):[...ve,ae])},vg=()=&gt;{const ae=J?.installment_due_items??[];Ve(ae.map(ve=&gt;ve.index))},Gu=()=&gt;Ve([]),zs=()=&gt;{if(!J)return;if(ke===&quot;&quot;||typeof ke!=&quot;number&quot;){pe(&quot;Veuillez sélectionner le compte de trésorerie à utiliser.&quot;);return}const ae=parseInt(R,10);if(isNaN(ae)||ae&lt;=0){pe(&quot;Montant invalide.&quot;);return}if(ae&gt;J.balance){pe(`Le montant ne peut pas dépasser le solde (${wr(J.balance)}).`);return}if(!de.trim()&amp;&amp;!le){pe(&quot;Veuillez renseigner la référence transaction et/ou joindre une preuve (image ou scan).&quot;);return}pe(null),we(!0),Fr.initPayment(J.id,{amount:ae,method:re,paid_at:new Date(te).toISOString(),treasury_account_id:Number(ke),reference:de.trim()||void 0,notes:se.trim()||void 0,proof:le||void 0}).then(()=&gt;{$(null),U(ve=&gt;ve+1)}).catch(ve=&gt;{const $e=ve?.data?.message||ve?.message||&quot;Erreur lors de l&#039;enregistrement.&quot;,Be=ve?.data?.errors;pe(Be?Object.values(Be).flat().join(&quot; &quot;):$e)}).finally(()=&gt;we(!1))},Yu=ae=&gt;{Mt(!0),Ne(null),Ut(null),Fr.getDebtorDetail(ae).then(ve=&gt;Ut(ve.data)).catch(ve=&gt;{Ne(ve?.data?.message??ve?.message??&quot;Impossible de charger le détail débiteur.&quot;)}).finally(()=&gt;Mt(!1))},fo=async()=&gt;{if(!(!y||typeof y!=&quot;number&quot;)){Ge(!0);try{const ve=((await Fr.getDebtorsExport({event_id:y})).data??[]).map(Be=&gt;({&quot;ID inscription&quot;:Be.registration_id,Événement:Be.event_name??&quot;—&quot;,Nom:Be.name,Email:Be.email,&quot;Montant dû&quot;:Be.amount_due,&quot;Déjà payé&quot;:Be.paid,&quot;Solde restant&quot;:Be.balance,Échéances:Be.installments_label,&quot;Échéances restantes&quot;:Be.installments_open_count,Situation:Be.financial_situation_label,&quot;Calendrier des échéances (dates, statuts, montants)&quot;:Be.installments_schedule_detail??&quot;&quot;,&quot;Échéances en retard (résumé relance)&quot;:Be.installments_late_open_summary??&quot;&quot;})),$e=pn?.slug??y;await Ys(ve,`debiteurs_${$e}_${new Date().toISOString().slice(0,10)}`,&quot;Débiteurs&quot;)}catch(ae){F(ae instanceof Error?ae.message:&quot;Erreur lors de l’export XLSX des débiteurs.&quot;)}finally{Ge(!1)}}},Ui=async()=&gt;{if(!(!y||typeof y!=&quot;number&quot;)){rt(!0);try{const ve=((await Fr.getConfirmedPaymentsExport({event_id:y})).data??[]).map(Be=&gt;({&quot;ID paiement&quot;:Be.payment_id,&quot;ID inscription&quot;:Be.registration_id??&quot;—&quot;,Événement:Be.event_name??&quot;—&quot;,Participant:Be.participant_name??&quot;—&quot;,Email:Be.participant_email??&quot;—&quot;,Montant:Be.amount,Devise:Be.currency,Méthode:qc(Be.method),&quot;Date paiement&quot;:Be.paid_at?new Date(Be.paid_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;,&quot;Date validation&quot;:Be.reviewed_at?new Date(Be.reviewed_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;,Passerelle:Be.payment_gateway??&quot;—&quot;,&quot;Référence (n° commande SycaPay ou réf. transaction déclarée)&quot;:Be.payment_reference||&quot;—&quot;,&quot;Complément référence (ex. ID transaction agrégateur)&quot;:Be.payment_reference_extra??&quot;—&quot;,&quot;Réf. déclaration (champ brut)&quot;:Be.declared_reference??&quot;—&quot;,&quot;N° commande / provider_ref (brut)&quot;:Be.provider_ref??&quot;—&quot;,&quot;N° reçu&quot;:Be.receipt_number??&quot;—&quot;})),$e=pn?.slug??y;await Ys(ve,`paiements_confirmes_${$e}_${new Date().toISOString().slice(0,10)}`,&quot;Paiements reçus&quot;)}catch(ae){F(ae instanceof Error?ae.message:&quot;Erreur lors de l’export XLSX des paiements confirmés.&quot;)}finally{rt(!1)}}},fl=async()=&gt;{if(!(!y||typeof y!=&quot;number&quot;)){jt(!0);try{const ve=((await Fr.getRegistrationFinancialJournalExport({event_id:y})).data??[]).map(Be=&gt;({&quot;Date opération&quot;:Be.operation_date?new Date(Be.operation_date).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;,&quot;Type opération&quot;:Be.operation_type,Sens:Be.direction,Montant:Be.amount,&quot;Montant signé&quot;:Be.signed_amount,Devise:Be.currency,Participant:Be.participant_name??&quot;—&quot;,Email:Be.participant_email??&quot;—&quot;,&quot;ID inscription&quot;:Be.registration_id??&quot;—&quot;,Événement:Be.event_name??&quot;—&quot;,&quot;Formule actuelle&quot;:Be.current_pricing_plan??&quot;—&quot;,&quot;Formule concernée / au moment de l’opération&quot;:Be.operation_pricing_plan??&quot;—&quot;,&quot;Moyen de paiement&quot;:Be.payment_method?qc(Be.payment_method):&quot;—&quot;,&quot;Référence paiement ou remboursement&quot;:Be.operation_reference??&quot;—&quot;,&quot;N° reçu&quot;:Be.receipt_number??&quot;—&quot;,&quot;Payment ID&quot;:Be.payment_id??&quot;—&quot;,&quot;Adjustment ID&quot;:Be.adjustment_id??&quot;—&quot;,&quot;Related adjustment type&quot;:Be.related_adjustment_type??&quot;—&quot;,&quot;Is settlement payment for upgrade&quot;:Be.is_settlement_payment_for_upgrade,&quot;Ancienne formule&quot;:Be.from_pricing_plan??&quot;—&quot;,&quot;Nouvelle formule&quot;:Be.to_pricing_plan??&quot;—&quot;,&quot;Ancien dû&quot;:Be.old_amount_due??&quot;—&quot;,&quot;Nouveau dû&quot;:Be.new_amount_due??&quot;—&quot;,&quot;Raison adjustment&quot;:Be.adjustment_reason??&quot;—&quot;,&quot;Note remboursement&quot;:Be.refund_note??&quot;—&quot;,&quot;Saisi par&quot;:Be.captured_by??&quot;—&quot;,&quot;Confirmé par&quot;:Be.confirmed_by??&quot;—&quot;,&quot;Marqué remboursé par&quot;:Be.marked_refund_done_by??&quot;—&quot;,&quot;Date marquage remboursement&quot;:Be.refund_marked_done_at?new Date(Be.refund_marked_done_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;,&quot;Date création inscription&quot;:Be.registration_created_at?new Date(Be.registration_created_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;})),$e=pn?.slug??y;await Ys(ve,`journal_financier_inscriptions_${$e}_${new Date().toISOString().slice(0,10)}`,&quot;Journal financier&quot;)}catch(ae){F(ae instanceof Error?ae.message:&quot;Erreur lors de l’export du journal financier.&quot;)}finally{jt(!1)}}},hs=async()=&gt;{fr(null),Mr(!0);try{const ae=y===&quot;&quot;?void 0:Number(y),Be=((await Fr.getDonationsExport(ae!=null&amp;&amp;!Number.isNaN(ae)?{event_id:ae}:void 0)).data??[]).map(Zt=&gt;({ID:Zt.id,Événement:Zt.event?.name??&quot;—&quot;,Donateur:Zt.donor_name||&quot;Anonyme&quot;,Email:Zt.donor_email??&quot;—&quot;,Montant:Zt.amount,Devise:Zt.currency,Méthode:qc(Zt.method)||&quot;—&quot;,Statut:Zt.status,Référence:Zt.reference??&quot;—&quot;,Notes:Zt.notes??&quot;—&quot;,&quot;Note validation&quot;:Zt.review_note??&quot;—&quot;,&quot;Créé le&quot;:Zt.created_at?new Date(Zt.created_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;,&quot;Payé / déclaré le&quot;:Zt.paid_at?new Date(Zt.paid_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;})),nr=pn?.slug??(typeof y==&quot;number&quot;&amp;&amp;!Number.isNaN(y)?String(y):&quot;donations&quot;);await Ys(Be,`dons_${nr}_${new Date().toISOString().slice(0,10)}`,&quot;Dons&quot;)}catch(ae){ae instanceof kt?fr(ae.data?.message??ae.message??&quot;Erreur lors de l’export XLSX des dons.&quot;):fr(ae instanceof Error?ae.message:&quot;Erreur lors de l’export XLSX des dons.&quot;)}finally{Mr(!1)}},Zu=async()=&gt;{if(!(!y||typeof y!=&quot;number&quot;)){Ff(!0);try{const ve=((await Fr.getExpectedPaymentsForMonthExport({event_id:y,month:Cn,month_scope:Wt,installment_status:Zr===&quot;all&quot;?void 0:Zr,financial_situation:It===&quot;all&quot;?void 0:It})).data??[]).map(Be=&gt;({&quot;ID inscription&quot;:Be.registration_id,Événement:Be.event_name??&quot;—&quot;,Nom:Be.name,Email:Be.email,Téléphone:Be.phone??&quot;&quot;,Échéance:`${Be.installment_label} (${Be.installment_month})`,Fenêtre:Be.installment_due_window,&quot;Montant échéance&quot;:Be.installment_amount,&quot;Déjà payé échéance&quot;:Be.installment_paid_amount,&quot;Reste échéance&quot;:Be.installment_remaining_amount,&quot;Statut échéance&quot;:Be.installment_status===&quot;late&quot;?&quot;En retard&quot;:&quot;Ouverte&quot;,&quot;Situation globale&quot;:Be.financial_situation_label})),$e=pn?.slug??y;await Ys(ve,`relance_${$e}_${Cn}_${Wt}_${Zr}_${new Date().toISOString().slice(0,10)}`,&quot;Relance échéances&quot;)}catch(ae){F(ae instanceof Error?ae.message:&quot;Erreur export relance.&quot;)}finally{Ff(!1)}}},wg=ae=&gt;{Ls(ve=&gt;{const $e=new Set(ve);return $e.has(ae)?$e.delete(ae):$e.add(ae),$e})},_g=()=&gt;{const ae=nn.map(dl),ve=ae.length&gt;0&amp;&amp;ae.every($e=&gt;Ei.has($e));Ls($e=&gt;{const Be=new Set($e);return ve?ae.forEach(nr=&gt;Be.delete(nr)):ae.forEach(nr=&gt;Be.add(nr)),Be})},Us=async ae=&gt;{if(!(!y||typeof y!=&quot;number&quot;||ae.length===0||m)){ju(!0),Yo(null);try{const ve=ae.map(Zt=&gt;{const An=/^(\d+)-(\d+)$/.exec(Zt);if(!An)throw new Error(&quot;Sélection de ligne invalide.&quot;);return{registration_id:Number(An[1]),installment_index:Number(An[2])}}),$e=await Fr.sendInstallmentReminderEmails({event_id:y,items:ve}),Be=$e.skipped.length&gt;0?` ${$e.skipped.length} ligne${$e.skipped.length&gt;1?&quot;s&quot;:&quot;&quot;} non envoyée${$e.skipped.length&gt;1?&quot;s&quot;:&quot;&quot;} (vérifiez email ou solde).`:&quot;&quot;,nr=$e.sent.length===1&amp;&amp;$e.sent[0]?.email?` Destinataire : ${$e.sent[0].email}.`:$e.sent.length&gt;1?` ${$e.sent.length} destinataires (emails participants, pas la boîte commission).`:&quot;&quot;;Yo({type:&quot;ok&quot;,text:`${$e.message}${nr}${Be}`}),Ls(Zt=&gt;{const An=new Set(Zt);return $e.sent.forEach(yo=&gt;An.delete(`${yo.registration_id}-${yo.installment_index}`)),An}),U(Zt=&gt;Zt+1)}catch(ve){const $e=ve instanceof kt?ve.data?.message??ve.message:ve instanceof Error?ve.message:&quot;Erreur lors de l’envoi des relances.&quot;;Yo({type:&quot;err&quot;,text:$e})}finally{ju(!1)}}},hl=ae=&gt;{qe(null),Ze({key:`payment-${ae}`,action:&quot;issue&quot;}),Fr.issuePaymentReceipt(ae).then(()=&gt;U(ve=&gt;ve+1)).catch(ve=&gt;qe(ve?.data?.message||ve?.message||&quot;Erreur.&quot;)).finally(()=&gt;Ze(null))},ho=(ae,ve)=&gt;{qe(null),Ze({key:`receipt-${ae}`,action:&quot;download&quot;}),Fr.downloadReceipt(ae,`${ve}.pdf`).catch($e=&gt;qe($e?.data?.message||$e?.message||&quot;Erreur téléchargement.&quot;)).finally(()=&gt;Ze(null))},mc=ae=&gt;{qe(null),Ze({key:`payment-${ae}`,action:&quot;email&quot;}),Fr.sendPaymentReceiptEmail(ae).then(()=&gt;U(ve=&gt;ve+1)).catch(ve=&gt;qe(ve?.data?.message||ve?.message||&quot;Erreur envoi email.&quot;)).finally(()=&gt;Ze(null))},Qu=(ae,ve)=&gt;Qe?.key===ae&amp;&amp;Qe?.action===ve,mo=()=&gt;{if(!y||typeof y!=&quot;number&quot;||la===&quot;&quot;||typeof la!=&quot;number&quot;){el(&quot;Veuillez choisir un événement et une catégorie.&quot;);return}const ae=Number(Ql);if(isNaN(ae)||ae&lt;0){el(&quot;Montant prévu invalide.&quot;);return}el(null),Jo(!0),jl.create(y,{budget_category_id:la,label:Nu.trim()||void 0,amount_planned:ae}).then(ve=&gt;{Bi($e=&gt;[...$e,ve]),Zo(&quot;&quot;),us(&quot;&quot;),Qo(0)}).catch(ve=&gt;el(ve?.data?.message??&quot;Erreur lors de l&#039;ajout.&quot;)).finally(()=&gt;Jo(!1))},Vs=ae=&gt;{nc(ae.id),Ai(null),jl.moveUp(ae.id).then(()=&gt;$s()).catch(ve=&gt;Ai(ve?.data?.message??&quot;Erreur lors du déplacement.&quot;)).finally(()=&gt;nc(null))},Nr=ae=&gt;{nc(ae.id),Ai(null),jl.moveDown(ae.id).then(()=&gt;$s()).catch(ve=&gt;Ai(ve?.data?.message??&quot;Erreur lors du déplacement.&quot;)).finally(()=&gt;nc(null))},yr=ae=&gt;{confirm(&quot;Supprimer cette ligne de budget ?&quot;)&amp;&amp;jl.delete(ae.id).then(()=&gt;Bi(ve=&gt;ve.filter($e=&gt;$e.id!==ae.id))).catch(ve=&gt;Ai(ve?.data?.message??&quot;Erreur suppression.&quot;))},qs=ae=&gt;{ds(ae),ec(ae.label??&quot;&quot;),no(ae.amount_planned??0),ku(ae.amount_realized??0),qf(ae.sort_order??0),rl(null)},gn=()=&gt;{if(!ua)return;const ae=Number(tc),ve=Number(tl);if(isNaN(ae)||ae&lt;0){rl(&quot;Montant prévu invalide.&quot;);return}if(isNaN(ve)||ve&lt;0){rl(&quot;Montant réalisé invalide.&quot;);return}rl(null),rc(!0),jl.update(ua.id,{label:Uf.trim()||null,amount_planned:ae,amount_realized:ve,sort_order:Vf}).then($e=&gt;{Bi(Be=&gt;Be.map(nr=&gt;nr.id===ua.id?$e:nr)),ds(null)}).catch($e=&gt;rl($e?.data?.message??&quot;Erreur lors de l&#039;enregistrement.&quot;)).finally(()=&gt;rc(!1))},Bn=()=&gt;{$s(),ca(&quot;Budget enregistré.&quot;),setTimeout(()=&gt;ca(null),3e3)},ba=()=&gt;{if(!(!y||mi.length===0)){Jn(&quot;budget-csv&quot;);try{const ae=I6(mi),ve=pn?.slug??y;Dd(ae,`budget_${ve}_${new Date().toISOString().slice(0,10)}`)}catch(ae){Ai(ae instanceof Error?ae.message:&quot;Erreur export.&quot;)}finally{Jn(null)}}},po=async()=&gt;{if(!(!y||mi.length===0)){Jn(&quot;budget-xlsx&quot;);try{const ae=I6(mi),ve=pn?.slug??y;await Ys(ae,`budget_${ve}_${new Date().toISOString().slice(0,10)}`,&quot;Lignes budget&quot;)}catch(ae){Ai(ae instanceof Error?ae.message:&quot;Erreur export.&quot;)}finally{Jn(null)}}},$n=()=&gt;{if(!(!y||io.length===0)){Jn(&quot;expenses-csv&quot;);try{const ae=R6(io),ve=pn?.slug??y;Dd(ae,`depenses_${ve}_${new Date().toISOString().slice(0,10)}`)}catch(ae){da(ae instanceof Error?ae.message:&quot;Erreur export.&quot;)}finally{Jn(null)}}},pc=async()=&gt;{if(!(!y||io.length===0)){Jn(&quot;expenses-xlsx&quot;);try{const ae=R6(io),ve=pn?.slug??y;await Ys(ae,`depenses_${ve}_${new Date().toISOString().slice(0,10)}`,&quot;Dépenses&quot;)}catch(ae){da(ae instanceof Error?ae.message:&quot;Erreur export.&quot;)}finally{Jn(null)}}},uh=()=&gt;{if(!y||typeof y!=&quot;number&quot;){ei(&quot;Sélectionnez un événement.&quot;);return}if(oo===&quot;&quot;||al===&quot;&quot;){ei(&quot;Choisissez les deux comptes.&quot;);return}if(oo===al){ei(&quot;Le compte destination doit être différent du compte source.&quot;);return}const ae=ao.find(nr=&gt;nr.id===oo),ve=ao.find(nr=&gt;nr.id===al);if(ae&amp;&amp;ve&amp;&amp;ae.currency!==ve.currency){ei(&quot;Les deux comptes doivent avoir la même devise.&quot;);return}const $e=pi.trim();if(!$e){ei(&quot;Le libellé est obligatoire.&quot;);return}const Be=Number(nh);if(isNaN(Be)||Be&lt;1){ei(&quot;Montant invalide.&quot;);return}if(!ac){ei(&quot;La pièce justificative est obligatoire.&quot;);return}ei(null),ma(!0),Jh.create({event_id:y,movement_type:&quot;transfer&quot;,amount:Be,label:$e,notes:Tu.trim()||null,proof:ac,from_treasury_account_id:oo,to_treasury_account_id:al}).then(nr=&gt;{fa(Zt=&gt;[nr,...Zt]),ih(0),lo(&quot;&quot;),Iu(&quot;&quot;),Ru(null),fg(Zt=&gt;Zt+1)}).catch(nr=&gt;ei(nr?.data?.message??&quot;Erreur lors de l’enregistrement.&quot;)).finally(()=&gt;ma(!1))},dh=()=&gt;{if(!y||typeof y!=&quot;number&quot;){pa(&quot;Sélectionnez un événement.&quot;);return}if(ol===&quot;&quot;){pa(&quot;Choisissez un compte.&quot;);return}const ae=cl.trim();if(!ae){pa(&quot;Le libellé est obligatoire.&quot;);return}const ve=Number(oc);if(isNaN(ve)||ve&lt;1){pa(&quot;Montant invalide.&quot;);return}if(!lc){pa(&quot;La pièce justificative est obligatoire.&quot;);return}pa(null),cc(!0),Jh.create({event_id:y,movement_type:&quot;adjustment&quot;,amount:ve,label:ae,notes:$u.trim()||null,proof:lc,treasury_account_id:ol,adjustment_direction:ll}).then($e=&gt;{fa(Be=&gt;[$e,...Be]),Fu(0),Bu(&quot;&quot;),zu(&quot;&quot;),Uu(null),Bs(Be=&gt;Be+1)}).catch($e=&gt;pa($e?.data?.message??&quot;Erreur lors de l’enregistrement.&quot;)).finally(()=&gt;cc(!1))},gc=()=&gt;{if(!(!y||$i.length===0)){Jn(&quot;movements-csv&quot;);try{const ae=D6($i),ve=pn?.slug??y;Dd(ae,`mouvements_tresorerie_${ve}_${new Date().toISOString().slice(0,10)}`)}catch(ae){ha(ae instanceof Error?ae.message:&quot;Erreur export.&quot;)}finally{Jn(null)}}},fh=async()=&gt;{if(!(!y||$i.length===0)){Jn(&quot;movements-xlsx&quot;);try{const ae=D6($i),ve=pn?.slug??y;await Ys(ae,`mouvements_tresorerie_${ve}_${new Date().toISOString().slice(0,10)}`,&quot;Mouvements&quot;)}catch(ae){ha(ae instanceof Error?ae.message:&quot;Erreur export.&quot;)}finally{Jn(null)}}},ms=O.useMemo(()=&gt;{let ae=0,ve=0,$e=0,Be=0;mi.forEach(Zt=&gt;{const An=Zt.amount_planned??0,yo=Zt.amount_realized??0;Zt.category_type===&quot;revenue&quot;?(ae+=An,$e+=yo):Zt.category_type===&quot;expense&quot;&amp;&amp;(ve+=An,Be+=yo)});const nr=ae-ve;return{totalRevenuePlanned:ae,totalExpensePlanned:ve,totalRevenueRealized:$e,totalExpenseRealized:Be,balancePlanned:nr,shortfall:nr&lt;0?Math.abs(nr):0,surplus:nr&gt;0?nr:0}},[mi]);if(t)return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Chargement...&quot;})});if(!d)return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-ink-600&quot;,children:&quot;Vous n&#039;avez pas accès au module Finance.&quot;})});const go=r.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_FINANCE&quot;)&amp;&amp;!r.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),xc=r.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_FINANCE&quot;)&amp;&amp;!r.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),bc=r.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!r.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),hh=r.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!r.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!r.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),Ws=go||hh?!1:e(&quot;registrations.read&quot;),xo=xc||bc?!1:e(&quot;registrations.read&quot;),bo=go||bc?!1:e(&quot;recommendations.read&quot;),yc=go||xc||bc||hh?!1:e(&quot;settings.read&quot;)||e(&quot;settings.update&quot;);return i.jsxs(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex flex-col&quot;,children:[i.jsx(xf,{}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-1&quot;,children:[i.jsx(s0,{currentSection:&quot;finance&quot;,registrationView:&quot;summit&quot;,showSommet:Ws,showSeminar:xo,showRecommendations:bo,showUsers:!1,showFinance:d,showSettings:yc}),i.jsx(&quot;main&quot;,{className:&quot;flex-1 lg:ml-48 pb-16 lg:pb-0&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;w-full px-4 sm:px-6 lg:px-8 py-6 lg:py-8 max-w-[1600px] mx-auto&quot;,children:[i.jsx(aoe,{title:&quot;Dashboard Finance&quot;,subtitle:&quot;Pilotage des encaissements — paiements et dons&quot;,showReadOnlyBanner:m}),i.jsxs(&quot;div&quot;,{className:&quot;mb-6 flex items-center gap-2 rounded-xl border border-gray-200 bg-white p-2&quot;,children:[i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:`rounded-lg px-4 py-2 text-sm font-semibold transition-colors ${Cr===&quot;dashboard&quot;?&quot;bg-brand-700 text-white&quot;:&quot;text-ink-600 hover:bg-gray-50&quot;}`,onClick:()=&gt;cs(&quot;dashboard&quot;),children:&quot;Finance&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:`rounded-lg px-4 py-2 text-sm font-semibold transition-colors ${Cr===&quot;reminders&quot;?&quot;bg-brand-700 text-white&quot;:&quot;text-ink-600 hover:bg-gray-50&quot;}`,onClick:()=&gt;cs(&quot;reminders&quot;),children:&quot;Relance&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;mb-6 flex flex-col sm:flex-row sm:flex-wrap sm:items-center gap-3 sm:gap-4 p-4 bg-white rounded-xl border border-gray-200 shadow-sm&quot;,role:&quot;search&quot;,&quot;aria-label&quot;:&quot;Filtrer par événement&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;finance-event-select&quot;,className:&quot;text-sm font-semibold text-ink-800 shrink-0&quot;,children:&quot;Événement&quot;}),i.jsxs(&quot;select&quot;,{id:&quot;finance-event-select&quot;,value:y,onChange:ae=&gt;v(ae.target.value===&quot;&quot;?&quot;&quot;:Number(ae.target.value)),className:&quot;px-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-brand-700 min-w-[min(100%,16rem)] sm:max-w-md&quot;,disabled:l,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:l?&quot;Chargement...&quot;:Cr===&quot;reminders&quot;||Kt===&quot;budget&quot;||Kt===&quot;movements&quot;||Kt===&quot;treasury&quot;||Kt===&quot;reconciliation&quot;?&quot;- Choisir un événement -&quot;:&quot;Tous&quot;}),g.map(ae=&gt;i.jsx(&quot;option&quot;,{value:ae.id,children:ae.name},ae.id))]}),c&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;text-sm text-red-600&quot;,role:&quot;alert&quot;,children:c}),!l&amp;&amp;g.length===0&amp;&amp;!c&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Aucun événement actif pour le moment.&quot;})]}),Cr===&quot;dashboard&quot;&amp;&amp;i.jsx(ooe,{activeTab:Kt,onTabChange:Gn,showReconciliationTab:p}),Cr===&quot;dashboard&quot;&amp;&amp;Kt===&quot;budget&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mt-6 space-y-6&quot;,role:&quot;tabpanel&quot;,children:i.jsx(Yae,{hasSelectedEvent:!!y,readOnly:m,alerts:{linesError:Q0,saveMessage:Qn},table:{lines:mi,loading:Zl,totals:ms,moveLineLoading:J0,onMoveUp:Vs,onMoveDown:Nr,onOpenEdit:qs,onDelete:yr},writable:m?void 0:{addLine:{categories:Bf,categoryId:la,label:Nu,amount:Ql,submitting:zf,error:Jl,onCategoryChange:Zo,onLabelChange:us,onAmountChange:Qo,onSubmit:mo,onOpenCategoryModal:zi!=null?()=&gt;Hf(!0):void 0},exportBar:{exportFinanceLoading:Su,linesCount:mi.length,onExportCsv:ba,onExportXlsx:po,onSave:Bn}}})}),Cr===&quot;dashboard&quot;&amp;&amp;Kt===&quot;expenses&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mt-6 space-y-6&quot;,role:&quot;tabpanel&quot;,children:i.jsx(eoe,{hasSelectedEvent:!!y,readOnly:m,alerts:{error:tg},exportRow:!m&amp;&amp;io.length&gt;0?{exportFinanceLoading:Su,onExportCsv:$n,onExportXlsx:pc}:void 0,table:{rows:io,loading:Eu,onDelete:ch,onOpenProof:gg},form:{paidAt:Gf,budgetLineId:nl,treasuryAccountId:ic,amount:Yf,label:Au,proofFile:sc,proofInputKey:so,submitting:og,error:eh,budgetLines:Xf,treasuryAccounts:ng,onPaidAtChange:sg,onBudgetLineChange:il,onTreasuryAccountChange:Qf,onAmountChange:Zf,onLabelChange:Mu,onProofChange:Pu,onSubmit:lh}})}),Cr===&quot;dashboard&quot;&amp;&amp;Kt===&quot;movements&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mt-6 space-y-6&quot;,role:&quot;tabpanel&quot;,children:i.jsx(roe,{hasSelectedEvent:!!y,readOnly:m,alerts:{error:cg},exportRow:!m&amp;&amp;$i.length&gt;0?{exportFinanceLoading:Su,onExportCsv:gc,onExportXlsx:fh}:void 0,table:{rows:$i,loading:lg,onOpenProof:xg},movementKind:th,onMovementKindChange:rh,transferForm:{fromId:oo,toId:al,amount:nh,label:pi,notes:Tu,proof:ac,proofInputKey:Du,submitting:hg,error:Lu,treasuryAccounts:ao,onFromChange:ug,onToChange:dg,onAmountChange:ih,onLabelChange:lo,onNotesChange:Iu,onProofChange:Ru,onSubmit:uh},adjustmentForm:{accountId:ol,direction:ll,amount:oc,label:cl,notes:$u,proof:lc,proofInputKey:ah,submitting:Vu,error:mg,treasuryAccounts:ao,onAccountChange:sh,onDirectionChange:co,onAmountChange:Fu,onLabelChange:Bu,onNotesChange:zu,onProofChange:Uu,onSubmit:dh}})}),Cr===&quot;dashboard&quot;&amp;&amp;Kt===&quot;treasury&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mt-6 space-y-6&quot;,role:&quot;tabpanel&quot;,children:i.jsx(noe,{hasSelectedEvent:!!y,loading:oh,error:jr,data:ul,readOnly:m,eventId:typeof y==&quot;number&quot;?y:null,eventSlug:pn?.slug??y,onRequestReload:()=&gt;U(ae=&gt;ae+1)})}),Cr===&quot;dashboard&quot;&amp;&amp;Kt===&quot;reconciliation&quot;&amp;&amp;p&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mt-6 space-y-6&quot;,children:i.jsx(poe,{eventId:y,canWrite:e(&quot;finance.reconciliation.write&quot;),canApprove:e(&quot;finance.reconciliation.approve&quot;),canReopen:e(&quot;finance.reconciliation.reopen&quot;)})}),Cr===&quot;dashboard&quot;&amp;&amp;Kt===&quot;validation&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-6 space-y-8&quot;,role:&quot;tabpanel&quot;,&quot;aria-label&quot;:&quot;Encaissements et validation des dons&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-bold text-ink-900 tracking-tight&quot;,children:&quot;Encaissements &amp; validation&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mt-1&quot;,children:&quot;Files d&#039;attente, indicateurs et soldes — traitement des paiements et des dons.&quot;})]}),V&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-xl p-4 shadow-sm&quot;,role:&quot;alert&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-800 font-medium&quot;,children:V})}),A&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 shadow-sm py-14 px-6 text-center&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-ink-600 text-sm font-medium&quot;,children:&quot;Chargement du tableau de bord finance…&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-400 text-xs mt-2&quot;,children:&quot;Merci de patienter quelques instants.&quot;})]}),!A&amp;&amp;_&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsx(soe,{kpi:_.kpi}),i.jsx(foe,{pendingPayments:_.pending_payments,pendingDonations:_.pending_donations,donationsPaymentInProgress:_.donations_payment_in_progress??[],readOnly:m,actionLoading:!!q,onConfirmPayment:ae=&gt;uo(&quot;confirm&quot;,{type:&quot;payment&quot;,id:ae.id,label:`${ae.registration?.first_name} ${ae.registration?.last_name}`,event_id:ae.registration?.event?.id??null}),onRejectPayment:ae=&gt;uo(&quot;reject&quot;,{type:&quot;payment&quot;,id:ae.id,label:`${ae.registration?.first_name} ${ae.registration?.last_name}`}),onConfirmDonation:ae=&gt;uo(&quot;confirm&quot;,{type:&quot;donation&quot;,id:ae.id,label:ae.donor_name||&quot;Don&quot;,event_id:ae.event_id}),onRejectDonation:ae=&gt;uo(&quot;reject&quot;,{type:&quot;donation&quot;,id:ae.id,label:ae.donor_name||&quot;Don&quot;,event_id:ae.event_id}),onOpenDonationsList:()=&gt;{bt(1),Ot(!0)}}),i.jsx(doe,{items:Yr,loading:je,error:Ue,readOnly:m,successMessage:Ke,onMarkRefundDone:ae=&gt;{Ye(null),Dt(ae)},onRetry:()=&gt;U(ae=&gt;ae+1)}),(_.confirmed_payments?.length??0)&gt;0&amp;&amp;i.jsx(Qae,{payments:_.confirmed_payments??[],readOnly:m,paymentsExportLoading:vt,financialJournalExportLoading:Pt,onExportPaymentsXlsx:Ui,onExportFinancialJournalXlsx:fl,receipt:{error:Je,actionPending:!!Qe,isLoading:Qu,onDownloadReceipt:ho,onIssueReceipt:hl,onSendReceiptEmail:mc}}),i.jsx(Jae,{loading:Me,rows:tt??[],registrationsForPayment:_.registrations_for_payment??[],readOnly:m,initPaymentModalOpen:!!J,exportLoading:Re,meta:Ct,page:$t,perPage:zt,onPageChange:ft,onPerPageChange:Bt,onInitPayment:bg,onView:Yu,onExportXlsx:fo,searchQuery:Gt,onSearchChange:_t})]})]}),Cr===&quot;reminders&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-6 space-y-4&quot;,role:&quot;tabpanel&quot;,&quot;aria-label&quot;:&quot;Relance échéances&quot;,children:[y===&quot;&quot;&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800&quot;,children:&quot;Sélectionnez un événement pour afficher les échéances à relancer.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-brand-100 bg-brand-50/60 px-4 py-3&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:[Pr?.total??0,&quot; dossier&quot;,(Pr?.total??0)&gt;1?&quot;s&quot;:&quot;&quot;,&quot; à relancer&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-600 mt-0.5&quot;,children:[&quot;Filtre actif : &quot;,Zr===&quot;all&quot;?&quot;Tous statuts échéance&quot;:Zr===&quot;late&quot;?&quot;Échéances en retard&quot;:&quot;Échéances ouvertes&quot;,&quot; · &quot;,Wt===&quot;up_to&quot;?&quot;Portée : Cumul jusqu’au mois&quot;:&quot;Portée : Mois ciblé&quot;,&quot; · &quot;,It===&quot;all&quot;?&quot;Toutes situations globales&quot;:It===&quot;late&quot;?&quot;Situation globale : En retard&quot;:It===&quot;ahead&quot;?&quot;Situation globale : En avance&quot;:&quot;Situation globale : À jour&quot;]})]}),to&amp;&amp;i.jsx(&quot;div&quot;,{className:`rounded-xl border px-4 py-3 text-sm ${to.type===&quot;ok&quot;?&quot;border-green-200 bg-green-50 text-green-900&quot;:&quot;border-red-200 bg-red-50 text-red-800&quot;}`,children:to.text}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap gap-3 items-end rounded-xl border border-gray-200 bg-white p-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-xs font-medium text-ink-600 mb-1&quot;,children:&quot;Mois d&#039;échéance&quot;}),i.jsx(&quot;input&quot;,{type:&quot;month&quot;,value:Cn,onChange:ae=&gt;{ar(ae.target.value),Kr(1)},className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-xs font-medium text-ink-600 mb-1&quot;,children:&quot;Statut échéance&quot;}),i.jsxs(&quot;select&quot;,{value:Zr,onChange:ae=&gt;{const ve=ae.target.value;Rs(ve),Kr(1)},className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm min-w-[190px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;all&quot;,children:&quot;Tous&quot;}),i.jsx(&quot;option&quot;,{value:&quot;late&quot;,children:&quot;En retard&quot;}),i.jsx(&quot;option&quot;,{value:&quot;open&quot;,children:&quot;Ouvertes (hors retard)&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-xs font-medium text-ink-600 mb-1&quot;,children:&quot;Portée temporelle&quot;}),i.jsxs(&quot;select&quot;,{value:Wt,onChange:ae=&gt;{const ve=ae.target.value;Ln(ve),Kr(1)},className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm min-w-[220px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;exact&quot;,children:&quot;Mois ciblé&quot;}),i.jsx(&quot;option&quot;,{value:&quot;up_to&quot;,children:&quot;Cumul jusqu’au mois&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-xs font-medium text-ink-600 mb-1&quot;,children:&quot;Situation globale&quot;}),i.jsxs(&quot;select&quot;,{value:It,onChange:ae=&gt;{const ve=ae.target.value;di(ve),Kr(1)},className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm min-w-[220px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;all&quot;,children:&quot;Toutes&quot;}),i.jsx(&quot;option&quot;,{value:&quot;late&quot;,children:&quot;En retard&quot;}),i.jsx(&quot;option&quot;,{value:&quot;on_track&quot;,children:&quot;À jour&quot;}),i.jsx(&quot;option&quot;,{value:&quot;ahead&quot;,children:&quot;En avance&quot;})]})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:Zu,disabled:Fn||nn.length===0||!y,className:&quot;inline-flex items-center rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm font-medium text-ink-700 hover:bg-gray-50 disabled:opacity-50&quot;,children:Fn?&quot;Export...&quot;:&quot;Exporter XLSX&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-2 sm:ml-auto&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:Ei.size&gt;0?`${Ei.size} ligne${Ei.size&gt;1?&quot;s&quot;:&quot;&quot;} sélectionnée${Ei.size&gt;1?&quot;s&quot;:&quot;&quot;}`:&quot;Cochez des lignes ou utilisez le bouton sur chaque ligne.&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:&quot;text-sm py-2&quot;,disabled:m||_u||Ei.size===0||!y,onClick:()=&gt;{Us(Array.from(Ei))},children:_u?&quot;Envoi…&quot;:`Envoyer la relance (${Ei.size})`})]})]}),i.jsxs(&quot;section&quot;,{className:&quot;bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-sm min-w-[980px]&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50/80 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-3 py-3 w-10 text-center&quot;,children:i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,className:&quot;rounded border-gray-300 text-brand-700 focus:ring-brand-700&quot;,checked:nn.length&gt;0&amp;&amp;nn.every(ae=&gt;Ei.has(dl(ae))),disabled:m||Ds||nn.length===0,onChange:_g,title:&quot;Tout sélectionner sur cette page&quot;,&quot;aria-label&quot;:&quot;Tout sélectionner sur cette page&quot;})}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Participant&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Échéance&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Fenêtre&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Montant&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Payé&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Reste&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Statut&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Actions&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-100&quot;,children:Ds?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:9,className:&quot;px-4 py-8 text-center text-ink-500&quot;,children:&quot;Chargement...&quot;})}):fi?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:9,className:&quot;px-4 py-8 text-center text-red-600&quot;,children:fi})}):nn.length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:9,className:&quot;px-4 py-8 text-center text-ink-500&quot;,children:&quot;Aucune échéance ouverte pour ce mois.&quot;})}):nn.map(ae=&gt;{const ve=dl(ae);return i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50/50&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-3 py-3 text-center align-middle&quot;,children:i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,className:&quot;rounded border-gray-300 text-brand-700 focus:ring-brand-700&quot;,checked:Ei.has(ve),disabled:m,onChange:()=&gt;wg(ve),&quot;aria-label&quot;:`Sélectionner ${ae.name}`})}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:ae.name}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:ae.email})]}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-700&quot;,children:[ae.installment_label,&quot; — &quot;,ae.installment_month]}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-600&quot;,children:ae.installment_due_window}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right tabular-nums&quot;,children:wr(ae.installment_amount)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right tabular-nums&quot;,children:wr(ae.installment_paid_amount)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right tabular-nums font-semibold text-ink-900&quot;,children:wr(ae.installment_remaining_amount)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:i.jsx(&quot;span&quot;,{className:`px-2 py-0.5 rounded-md text-xs font-medium ${ae.installment_status===&quot;late&quot;?&quot;bg-red-100 text-red-800&quot;:&quot;bg-amber-100 text-amber-800&quot;}`,children:ae.installment_status===&quot;late&quot;?&quot;En retard&quot;:&quot;Ouverte&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center justify-end gap-2&quot;,children:[i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;Yu(ae.registration_id),className:&quot;text-xs text-brand-700 hover:underline font-medium&quot;,children:&quot;Voir&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,disabled:m||_u,onClick:()=&gt;{Us([ve])},className:&quot;text-xs text-ink-800 hover:underline font-medium disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:&quot;Envoi Email de relance&quot;})]})})]},ve)})})]})}),Pr&amp;&amp;Pr.total&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;px-4 py-2 border-t border-gray-100 flex flex-wrap items-center justify-between gap-2&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:Pr.last_page&gt;1&amp;&amp;Pr.from!=null&amp;&amp;Pr.to!=null?`Lignes ${Pr.from} à ${Pr.to} sur ${Pr.total}`:`Total : ${Pr.total} ligne${Pr.total!==1?&quot;s&quot;:&quot;&quot;}`}),Pr.last_page&gt;1&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;text-xs text-ink-500 flex items-center gap-1&quot;,children:[&quot;Par page&quot;,i.jsx(&quot;select&quot;,{value:En,onChange:ae=&gt;{Zn(Number(ae.target.value)),Kr(1)},className:&quot;text-sm border border-gray-300 rounded px-2 py-0.5&quot;,children:[10,20,50].map(ae=&gt;i.jsx(&quot;option&quot;,{value:ae,children:ae},ae))})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,disabled:Yn&lt;=1,onClick:()=&gt;Kr(ae=&gt;Math.max(1,ae-1)),className:&quot;text-xs px-2 py-1 rounded border border-gray-300 disabled:opacity-50&quot;,children:&quot;Précédent&quot;}),i.jsxs(&quot;span&quot;,{className:&quot;text-xs text-ink-600&quot;,children:[&quot;Page &quot;,Yn,&quot; / &quot;,Pr.last_page]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,disabled:Yn&gt;=Pr.last_page,onClick:()=&gt;Kr(ae=&gt;ae+1),className:&quot;text-xs px-2 py-1 rounded border border-gray-300 disabled:opacity-50&quot;,children:&quot;Suivant&quot;})]})]})]})]})]})})]}),i.jsx(Zae,{open:eg,onClose:()=&gt;Hf(!1),eventType:zi,categories:Bf,onCategoriesChanged:()=&gt;{ga()},onCreatedSelect:ae=&gt;Zo(ae)}),Ht?i.jsx(coe,{adjustment:Ht,isOpen:Ht!=null,onClose:()=&gt;Dt(null),onSuccess:async ae=&gt;{Ye(ae),U(ve=&gt;ve+1)}}):null,at&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:()=&gt;Ot(!1),&quot;aria-hidden&quot;:!0}),i.jsx(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-5xl sm:w-full relative&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-5&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between gap-3 mb-4 flex-wrap&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:&quot;Liste des dons&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2 shrink-0&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;text-sm font-medium&quot;,title:&quot;Télécharger tous les dons du périmètre affiché (pas seulement la page courante)&quot;,disabled:hr||dr||!pt||pt.total===0,onClick:()=&gt;{hs()},children:hr?&quot;Export…&quot;:&quot;Exporter XLSX&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;Ot(!1),className:&quot;text-gray-400 hover:text-gray-600 transition-colors p-1&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:24})})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 overflow-hidden&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-sm min-w-[860px]&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-brand-50/80 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;ID&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Donateur&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-right text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Montant&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Méthode&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Statut&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-left text-xs font-semibold text-ink-700 uppercase&quot;,children:&quot;Date&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-100&quot;,children:dr?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:6,className:&quot;px-4 py-8 text-center text-ink-500&quot;,children:&quot;Chargement...&quot;})}):_r?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:6,className:&quot;px-4 py-8 text-center text-red-600&quot;,children:_r})}):At.length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:6,className:&quot;px-4 py-8 text-center text-ink-500&quot;,children:&quot;Aucun don trouvé.&quot;})}):At.map(ae=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50/50&quot;,children:[i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-700&quot;,children:[&quot;#&quot;,ae.id]}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:ae.donor_name||&quot;Anonyme&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:ae.donor_email||&quot;—&quot;})]}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right tabular-nums&quot;,children:cn(ae.amount,ae.currency)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-700&quot;,children:qc(ae.method)||&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-700&quot;,children:ae.status}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-600&quot;,children:ae.created_at?new Date(ae.created_at).toLocaleString():&quot;—&quot;})]},ae.id))})]})}),pt&amp;&amp;pt.total&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;px-4 py-2 border-t border-gray-100 flex flex-wrap items-center justify-between gap-2&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:pt.from!=null&amp;&amp;pt.to!=null?`Lignes ${pt.from} à ${pt.to} sur ${pt.total}`:`Total : ${pt.total}`}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;text-xs text-ink-500 flex items-center gap-1&quot;,children:[&quot;Par page&quot;,i.jsx(&quot;select&quot;,{value:Ce,onChange:ae=&gt;{ct(Number(ae.target.value)),bt(1)},className:&quot;text-sm border border-gray-300 rounded px-2 py-0.5&quot;,children:[10,20,50].map(ae=&gt;i.jsx(&quot;option&quot;,{value:ae,children:ae},ae))})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,disabled:St&lt;=1,onClick:()=&gt;bt(ae=&gt;Math.max(1,ae-1)),className:&quot;text-xs px-2 py-1 rounded border border-gray-300 disabled:opacity-50&quot;,children:&quot;Précédent&quot;}),i.jsxs(&quot;span&quot;,{className:&quot;text-xs text-ink-600&quot;,children:[&quot;Page &quot;,St,&quot; / &quot;,pt.last_page]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,disabled:St&gt;=pt.last_page,onClick:()=&gt;bt(ae=&gt;ae+1),className:&quot;text-xs px-2 py-1 rounded border border-gray-300 disabled:opacity-50&quot;,children:&quot;Suivant&quot;})]})]})]})]})})]})}),(Xt||it||be)&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:()=&gt;{Xt||(Ut(null),Ne(null))},&quot;aria-hidden&quot;:!0}),i.jsx(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-3xl sm:w-full relative&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-5&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:&quot;Détail débiteur&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;{Xt||(Ut(null),Ne(null))},className:&quot;text-gray-400 hover:text-gray-600 transition-colors p-1&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:24})})]}),Xt&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Chargement du détail…&quot;}),be&amp;&amp;!Xt&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;rounded-lg border border-red-200 bg-red-50 p-3 text-sm text-red-700&quot;,children:be}),it&amp;&amp;!Xt&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 bg-gray-50 p-4&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;font-semibold text-ink-900&quot;,children:[it.registration.first_name,&quot; &quot;,it.registration.last_name]}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600&quot;,children:it.registration.email}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600 mt-1&quot;,children:it.registration.event?.name??&quot;—&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-3 sm:grid-cols-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 p-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Montant dû&quot;}),i.jsx(&quot;p&quot;,{className:&quot;font-semibold text-ink-900&quot;,children:wr(it.financial.amount_due)})]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 p-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Déjà payé&quot;}),i.jsx(&quot;p&quot;,{className:&quot;font-semibold text-ink-900&quot;,children:wr(it.financial.paid)})]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 p-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Reste à payer&quot;}),i.jsx(&quot;p&quot;,{className:&quot;font-semibold text-ink-900&quot;,children:wr(it.financial.balance)})]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200 p-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Situation&quot;}),i.jsx(&quot;p&quot;,{className:&quot;font-semibold text-ink-900&quot;,children:it.financial.financial_situation_label})]})]}),it.financial.commercial_adjustment_summary?.has_pending_commercial_adjustment&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-amber-200 bg-amber-50/70 p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-semibold uppercase tracking-wide text-amber-900/80&quot;,children:&quot;Ajustement commercial&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-base font-semibold text-ink-900&quot;,children:it.financial.commercial_adjustment_summary.label??&quot;Solde commercial hors echeancier&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:[&quot;Solde commercial hors echeancier :&quot;,&quot; &quot;,i.jsx(&quot;strong&quot;,{children:wr(it.financial.commercial_adjustment_summary.commercial_balance_remaining)})]}),it.financial.historical_installment_summary?.is_fully_paid&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:&quot;L&#039;echeancier historique reste solde et n&#039;est pas recalcule.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-gray-200&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;border-b border-gray-100 px-4 py-2 text-sm font-semibold text-ink-800&quot;,children:it.financial.historical_installment_summary?.is_fully_paid?&quot;Echeancier historique solde&quot;:`Échéances (${it.financial.installments_label}, ${it.financial.installments_open_count} restantes)`}),i.jsx(&quot;div&quot;,{className:&quot;max-h-72 overflow-y-auto&quot;,children:it.financial.historical_installment_summary?.is_fully_paid?i.jsxs(&quot;div&quot;,{className:&quot;px-4 py-4 text-sm text-ink-700&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:it.financial.historical_installment_summary.label??&quot;Echeancier historique solde&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1&quot;,children:[&quot;Plan initial : &quot;,it.financial.historical_installment_summary.installments_count??&quot;-&quot;,&quot; echeance(s)&quot;,it.financial.historical_installment_summary.total_amount!=null?` · ${wr(it.financial.historical_installment_summary.total_amount)}`:&quot;&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-ink-600&quot;,children:&quot;Les echeances historiques restent figees. Le solde visible ci-dessus correspond au besoin commercial hors echeancier.&quot;})]}):it.financial.installments.map(ae=&gt;i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between gap-3 border-b border-gray-100 px-4 py-2 text-sm last:border-b-0&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:[ae.label,&quot; &quot;,ae.month?`— ${ae.month}`:&quot;&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:wr(ae.amount)})]}),i.jsxs(&quot;div&quot;,{className:&quot;text-right&quot;,children:[i.jsx(&quot;p&quot;,{className:`text-xs font-semibold ${ae.paid?&quot;text-green-700&quot;:&quot;text-amber-700&quot;}`,children:ae.paid?&quot;Payée&quot;:&quot;Ouverte&quot;}),ae.is_late&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-[11px] text-red-700&quot;,children:&quot;En retard&quot;}),ae.is_ahead&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-[11px] text-blue-700&quot;,children:&quot;Payée en avance&quot;})]})]},ae.index))})]})]})]})})]})}),ua&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:()=&gt;!fs&amp;&amp;ds(null),&quot;aria-hidden&quot;:!0}),i.jsx(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-md sm:w-full relative&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:&quot;Modifier la ligne de budget&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;!fs&amp;&amp;ds(null),className:&quot;text-gray-400 hover:text-gray-600 p-1&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:24})})]}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-4&quot;,children:[&quot;Catégorie : &quot;,ua.category_name]}),Wf&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:Wf}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Libellé (optionnel)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:Uf,onChange:ae=&gt;ec(ae.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700&quot;,placeholder:&quot;Ex. Billets orateurs&quot;,disabled:!!fs})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Montant prévu (XOF) *&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:0,value:tc||&quot;&quot;,onChange:ae=&gt;no(parseInt(ae.target.value,10)||0),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700&quot;,disabled:!!fs})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Montant réalisé (XOF)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:0,value:tl||&quot;&quot;,onChange:ae=&gt;ku(parseInt(ae.target.value,10)||0),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700&quot;,disabled:!!fs}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-700 mt-1&quot;,children:&quot;Modifier le réalisé manuellement peut désynchroniser les données avec les paiements et dépenses enregistrés.&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Ordre d&#039;affichage&quot;}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:0,value:Vf,onChange:ae=&gt;qf(parseInt(ae.target.value,10)||0),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700&quot;,disabled:!!fs}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500 mt-1&quot;,children:&quot;Plus le nombre est petit, plus la ligne s&#039;affiche en haut.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex justify-end gap-2 pt-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;secondary&quot;,onClick:()=&gt;ds(null),disabled:!!fs,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:gn,disabled:!!fs,children:fs?&quot;Enregistrement...&quot;:&quot;Enregistrer&quot;})]})]})]})})]})}),B&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:()=&gt;!q&amp;&amp;K(null),&quot;aria-hidden&quot;:!0}),i.jsx(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full relative&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsxs(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:[B.action===&quot;confirm&quot;?B.target.type===&quot;payment&quot;?&quot;Confirmer le paiement&quot;:&quot;Confirmer le don&quot;:B.target.type===&quot;payment&quot;?&quot;Rejeter le paiement&quot;:&quot;Rejeter le don&quot;,&quot; — &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-normal text-ink-600&quot;,children:B.target.label})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;!q&amp;&amp;K(null),className:&quot;text-gray-400 hover:text-gray-600 transition-colors p-1&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:24})})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[C&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:C})}),B.action===&quot;confirm&quot;&amp;&amp;(B.target.type===&quot;payment&quot;||B.target.type===&quot;donation&quot;)&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-2&quot;,children:B.target.type===&quot;payment&quot;?i.jsxs(i.Fragment,{children:[&quot;Compte de trésorerie impacté &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}):i.jsx(i.Fragment,{children:&quot;Compte de trésorerie (optionnel — ventilation dans les soldes)&quot;})}),i.jsxs(&quot;select&quot;,{value:D,onChange:ae=&gt;z(ae.target.value===&quot;&quot;?&quot;&quot;:Number(ae.target.value)),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,disabled:!!q,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;- Choisir un compte -&quot;}),Y.filter(ae=&gt;ae.is_active).map(ae=&gt;i.jsxs(&quot;option&quot;,{value:ae.id,children:[ae.name,&quot; &quot;,ae.identifier?`(${ae.identifier})`:&quot;&quot;,&quot; — &quot;,ae.context_display]},ae.id))]}),Y.length===0&amp;&amp;!q&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-600 mt-1&quot;,children:&quot;Chargement des comptes…&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Note de révision (optionnel)&quot;}),i.jsx(&quot;textarea&quot;,{value:T,onChange:ae=&gt;L(ae.target.value),rows:2,maxLength:2e3,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,placeholder:&quot;Ex. Vérifié, reçu bancaire conforme.&quot;,disabled:!!q})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Référence transaction (optionnel)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:E,onChange:ae=&gt;j(ae.target.value),maxLength:255,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 focus:border-transparent&quot;,placeholder:&quot;Ex. TRX-123456, virement du 28/01&quot;,disabled:!!q})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-2&quot;,children:&quot;Preuve (image ou scan) (optionnel)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;file&quot;,accept:&quot;.jpg,.jpeg,.png,.gif,.webp,.pdf&quot;,onChange:ae=&gt;N(ae.target.files?.[0]??null),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 text-sm&quot;,disabled:!!q}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-400 mt-1&quot;,children:&quot;JPG, PNG, GIF, WebP ou PDF, max 5 Mo&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-end gap-3 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,onClick:()=&gt;K(null),disabled:!!q,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:Xu,disabled:!!q,children:q?&quot;En cours...&quot;:B.action===&quot;confirm&quot;?&quot;Valider&quot;:&quot;Rejeter&quot;})]})]})]})})]})}),J&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75&quot;,onClick:()=&gt;!ue&amp;&amp;$(null),&quot;aria-hidden&quot;:!0}),i.jsx(&quot;div&quot;,{className:&quot;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl sm:w-full relative&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white px-6 pt-6 pb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0 pr-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-[11px] font-semibold uppercase tracking-[0.14em] text-ink-500&quot;,children:&quot;Encaissement&quot;}),i.jsxs(&quot;h3&quot;,{className:&quot;text-xl font-bold text-ink-900&quot;,children:[&quot;Initier un paiement — &quot;,J.first_name,&quot; &quot;,J.last_name]}),i.jsx(&quot;p&quot;,{className:&quot;mt-0.5 text-xs font-semibold uppercase tracking-[0.14em] text-brand-800&quot;,children:&quot;Saisie équipe finance&quot;})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;!ue&amp;&amp;$(null),className:&quot;text-gray-400 hover:text-gray-600 transition-colors p-1&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:24})})]}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500 mb-4&quot;,children:[&quot;Solde restant : &quot;,i.jsx(&quot;strong&quot;,{className:&quot;tabular-nums whitespace-nowrap&quot;,children:wr(J.balance)})]}),J.commercial_adjustment_summary?.has_pending_commercial_adjustment&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mb-4 rounded-lg border border-amber-200 bg-amber-50/70 px-4 py-3 text-sm text-ink-800&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-semibold text-ink-900&quot;,children:J.commercial_adjustment_summary.label??&quot;Solde commercial hors echeancier&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1&quot;,children:&quot;Cet encaissement correspond a un ajustement commercial hors echeancier. Ne creez pas de nouvelle echeance.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[xe&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;bg-red-50 border border-red-200 rounded-lg p-3&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:xe})}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:[&quot;Compte de trésorerie &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsxs(&quot;select&quot;,{value:ke===&quot;&quot;?&quot;&quot;:ke,onChange:ae=&gt;De(ae.target.value===&quot;&quot;?&quot;&quot;:Number(ae.target.value)),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700&quot;,disabled:!!ue,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;- Choisir un compte -&quot;}),Le.filter(ae=&gt;ae.is_active).map(ae=&gt;i.jsxs(&quot;option&quot;,{value:ae.id,children:[ae.name,&quot; &quot;,ae.identifier?`(${ae.identifier})`:&quot;&quot;,&quot; — &quot;,ae.context_display]},ae.id))]}),Le.length===0&amp;&amp;!ue&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-600 mt-1&quot;,children:&quot;Chargement des comptes…&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:[&quot;Montant &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),(J.installment_due_items?.length??0)&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mb-2 rounded-lg border border-gray-200 bg-gray-50 p-3&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-2 flex items-center justify-between gap-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium text-ink-700&quot;,children:&quot;Échéances encore dues&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;text-xs text-brand-700 hover:underline&quot;,onClick:vg,disabled:!!ue,children:&quot;Tout sélectionner&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;text-xs text-ink-500 hover:underline&quot;,onClick:Gu,disabled:!!ue,children:&quot;Effacer&quot;})]})]}),i.jsx(&quot;div&quot;,{className:&quot;max-h-28 overflow-y-auto space-y-1.5 pr-1&quot;,children:J.installment_due_items.map(ae=&gt;{const ve=Oe.includes(ae.index);return i.jsxs(&quot;label&quot;,{className:&quot;flex items-center justify-between gap-2 text-xs&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;inline-flex items-center gap-2 text-ink-700&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:ve,onChange:()=&gt;yg(ae.index),disabled:!!ue}),ae.label,ae.month?` — ${ae.month}`:&quot;&quot;]}),i.jsx(&quot;span&quot;,{className:&quot;font-semibold text-ink-800&quot;,children:wr(ae.amount_due_remaining)})]},ae.index)})}),i.jsxs(&quot;div&quot;,{className:&quot;mt-2 flex flex-wrap items-center justify-between gap-2&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-600&quot;,children:[&quot;Total sélectionné : &quot;,i.jsx(&quot;span&quot;,{className:&quot;font-semibold text-ink-900&quot;,children:wr(hc)})]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;text-xs rounded border border-gray-300 bg-white px-2 py-1 text-ink-700 hover:bg-gray-50 disabled:opacity-50&quot;,onClick:()=&gt;X(String(hc)),disabled:!!ue||hc&lt;=0,children:&quot;Utiliser la sélection&quot;})]})]}),i.jsx(&quot;input&quot;,{type:&quot;number&quot;,min:1,max:J.balance,value:R,onChange:ae=&gt;X(ae.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700&quot;,disabled:!!ue})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;p&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-2&quot;,children:[&quot;Méthode &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(f7,{value:re,onChange:Q,disabled:!!ue})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:[&quot;Date du paiement &quot;,i.jsx(&quot;span&quot;,{className:&quot;text-red-500&quot;,children:&quot;*&quot;})]}),i.jsx(&quot;input&quot;,{type:&quot;datetime-local&quot;,value:te,onChange:ae=&gt;ie(ae.target.value),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700&quot;,disabled:!!ue})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Référence transaction&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:de,onChange:ae=&gt;ce(ae.target.value),maxLength:255,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700&quot;,placeholder:&quot;Ex. TRX-123456, virement du 28/01&quot;,disabled:!!ue}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-400 mt-1&quot;,children:&quot;Référence et/ou preuve requises&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Preuve (image ou scan)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;file&quot;,accept:&quot;.jpg,.jpeg,.png,.gif,.webp,.pdf&quot;,onChange:ae=&gt;ge(ae.target.files?.[0]??null),className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700 text-sm&quot;,disabled:!!ue}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-400 mt-1&quot;,children:&quot;JPG, PNG, GIF, WebP ou PDF, max 5 Mo&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-500 mb-1&quot;,children:&quot;Notes (optionnel)&quot;}),i.jsx(&quot;textarea&quot;,{value:se,onChange:ae=&gt;fe(ae.target.value),rows:2,maxLength:2e3,className:&quot;w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-700&quot;,placeholder:&quot;Commentaire interne&quot;,disabled:!!ue})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-end gap-3 pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,onClick:()=&gt;$(null),disabled:!!ue,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:zs,disabled:!!ue||ke===&quot;&quot;,children:ue?&quot;Enregistrement...&quot;:&quot;Enregistrer et confirmer le paiement&quot;})]})]})]})})]})})]})}function U6({events:e,accountTypes:r,currencies:t,account:n=null,eventFilter:o=&quot;&quot;,onClose:s,onSuccess:l}){const u=!!n,[c,a]=O.useState(!1),[d,f]=O.useState(null),[h,m]=O.useState(&quot;&quot;),[p,x]=O.useState(&quot;&quot;),[g,y]=O.useState(&quot;&quot;),[v,_]=O.useState(&quot;XOF&quot;),[S,A]=O.useState(&quot;&quot;),[I,V]=O.useState(&quot;standard&quot;),[F,q]=O.useState(!0);O.useEffect(()=&gt;{n?(m(n.name),x(n.type),y(n.identifier),_(n.currency),A(n.event_id??&quot;&quot;),V(n.usage??&quot;standard&quot;),q(n.is_active)):(m(&quot;&quot;),x(r[0]??&quot;&quot;),y(&quot;&quot;),_(&quot;XOF&quot;),A(&quot;&quot;),V(&quot;standard&quot;),q(!0))},[n,r]);const H=async B=&gt;{B.preventDefault(),B.stopPropagation(),f(null),a(!0);try{if(u)await Qs.update(n.id,{name:h,type:p,identifier:g,currency:v,event_id:S===&quot;&quot;?null:S,usage:I,is_active:F}),l();else{const K=await Qs.create({name:h,type:p,identifier:g,currency:v,event_id:S===&quot;&quot;?null:S,usage:I,is_active:F}),T=K?.data??K;if(!T||typeof T!=&quot;object&quot;||!(&quot;id&quot;in T)){f(&quot;Le serveur n&#039;a pas retourné le compte créé. Vérifiez l’onglet Réseau (POST sur treasury-accounts).&quot;),a(!1);return}try{const L=await Qs.list({event_id:o});if(!(Array.isArray(L)?L:L?.data??[]).some(k=&gt;k.id===T.id)){f(&quot;Le compte a été créé côté serveur mais n’apparaît pas dans la liste. Vérifiez que la table treasury_accounts existe (php artisan migrate) et que l’API renvoie bien la liste (GET /api/admin/treasury-accounts).&quot;),a(!1);return}}catch{f(&quot;Impossible de vérifier la liste après création.&quot;),a(!1);return}l(T)}}catch(K){const T=K,L=T?.data?.message??T?.message??(typeof K==&quot;object&quot;&amp;&amp;K!==null&amp;&amp;&quot;message&quot;in K?String(K.message):null)??(u?&quot;Erreur lors de la mise à jour.&quot;:&quot;Erreur lors de la création.&quot;),E=T?.data?.errors&amp;&amp;typeof T.data.errors==&quot;object&quot;?Object.values(T.data.errors).flat().filter(Boolean).join(&quot;, &quot;):&quot;&quot;,j=E?`${L} — ${E}`:L;f(j)}finally{a(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-xl max-w-md w-full max-h-[90vh] overflow-y-auto&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between p-4 border-b border-gray-200&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:u?&quot;Modifier le compte&quot;:&quot;Nouveau compte de trésorerie&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:s,className:&quot;p-1 rounded hover:bg-gray-100&quot;,children:i.jsx(gr,{size:20})})]}),i.jsxs(&quot;form&quot;,{onSubmit:B=&gt;(B.preventDefault(),B.stopPropagation(),H(B),!1),className:&quot;p-4 space-y-4&quot;,children:[d&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700&quot;,role:&quot;alert&quot;,children:d}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:h,onChange:B=&gt;m(B.target.value),required:!0,placeholder:&quot;ex: 5211-SBB&quot;,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Type&quot;}),i.jsx(&quot;select&quot;,{value:p,onChange:B=&gt;x(B.target.value),required:!0,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:r.map(B=&gt;i.jsx(&quot;option&quot;,{value:B,children:B},B))})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Identifiant&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:g,onChange:B=&gt;y(B.target.value),required:!0,placeholder:&quot;ex: 5211&quot;,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Devise&quot;}),i.jsx(&quot;select&quot;,{value:v,onChange:B=&gt;_(B.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:t.map(B=&gt;i.jsx(&quot;option&quot;,{value:B,children:B},B))})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Usage&quot;}),i.jsxs(&quot;select&quot;,{value:I,onChange:B=&gt;V(B.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;standard&quot;,children:&quot;Standard&quot;}),i.jsx(&quot;option&quot;,{value:&quot;sycapay_transit&quot;,children:&quot;Transit SycaPay&quot;})]}),I===&quot;sycapay_transit&quot;&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-amber-700&quot;,children:&quot;Ce compte est réservé au transit SycaPay : pas de dépense directe ni d’ajustement manuel.&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Contexte&quot;}),i.jsxs(&quot;select&quot;,{value:S,onChange:B=&gt;A(B.target.value===&quot;&quot;?&quot;&quot;:Number(B.target.value)),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Global&quot;}),e.map(B=&gt;i.jsx(&quot;option&quot;,{value:B.id,children:B.name},B.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,id:&quot;is_active&quot;,checked:F,onChange:B=&gt;q(B.target.checked),className:&quot;rounded border-gray-300&quot;}),i.jsx(&quot;label&quot;,{htmlFor:&quot;is_active&quot;,className:&quot;text-sm font-medium text-ink-700&quot;,children:&quot;Compte actif&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2 pt-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:s,className:&quot;flex-1&quot;,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,disabled:c,className:&quot;flex-1&quot;,onClick:B=&gt;{B.preventDefault(),B.stopPropagation(),H(B)},children:c?&quot;Enregistrement...&quot;:u?&quot;Enregistrer&quot;:&quot;Créer&quot;})]})]})]})})}function boe({account:e,onClose:r,onDeleted:t}){const[n,o]=O.useState(!1),[s,l]=O.useState(null),u=async()=&gt;{l(null),o(!0);try{await Qs.delete(e.id),t()}catch(c){l(c.data?.message??&quot;Erreur lors de la suppression.&quot;)}finally{o(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-xl max-w-md w-full&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between p-4 border-b border-gray-200&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Supprimer le compte&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,className:&quot;p-1 rounded hover:bg-gray-100&quot;,children:i.jsx(gr,{size:20})})]}),i.jsxs(&quot;div&quot;,{className:&quot;p-4&quot;,children:[s&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700&quot;,children:s}),i.jsxs(&quot;p&quot;,{className:&quot;text-ink-700 mb-4&quot;,children:[&quot;Êtes-vous sûr de vouloir supprimer le compte &quot;,i.jsx(&quot;strong&quot;,{children:e.name}),&quot; (&quot;,e.identifier,&quot;) ? Cette action est irréversible.&quot;]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:r,className:&quot;flex-1&quot;,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:u,disabled:n,className:&quot;flex-1 bg-red-600 hover:bg-red-700 border-red-700&quot;,children:n?&quot;Suppression...&quot;:&quot;Supprimer&quot;})]})]})]})})}const yoe=[{value:&quot;revenue&quot;,label:&quot;Recettes&quot;},{value:&quot;expense&quot;,label:&quot;Dépenses&quot;}],voe=[{value:&quot;&quot;,label:&quot;Tous (commun)&quot;},{value:&quot;summit&quot;,label:&quot;Sommet&quot;},{value:&quot;seminar&quot;,label:&quot;Séminaire&quot;},{value:&quot;other&quot;,label:&quot;Autre&quot;}];function V6({category:e=null,onClose:r,onSuccess:t}){const n=!!e,[o,s]=O.useState(!1),[l,u]=O.useState(null),[c,a]=O.useState(&quot;&quot;),[d,f]=O.useState(&quot;&quot;),[h,m]=O.useState(&quot;expense&quot;),[p,x]=O.useState(&quot;&quot;),[g,y]=O.useState(0);O.useEffect(()=&gt;{e?(a(e.name),f(e.code??&quot;&quot;),m(e.type??&quot;expense&quot;),x(e.event_type??&quot;&quot;),y(e.sort_order??0)):(a(&quot;&quot;),f(&quot;&quot;),m(&quot;expense&quot;),x(&quot;&quot;),y(0))},[e]);const v=async _=&gt;{_.preventDefault(),_.stopPropagation(),u(null),s(!0);try{const S={name:c.trim(),code:d.trim()||null,type:h,event_type:p===&quot;&quot;?null:p,sort_order:g};if(n)await Fo.update(e.id,S),t();else{const A=await Fo.create(S);t(A)}}catch(S){const A=S instanceof kt?S.data?.message:&quot;Erreur lors de l&#039;enregistrement.&quot;;u(A??&quot;Erreur&quot;)}finally{s(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50&quot;,onClick:r,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-lg max-w-md w-full max-h-[90vh] overflow-y-auto&quot;,onClick:_=&gt;_.stopPropagation(),children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between p-4 border-b border-gray-200&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:n?&quot;Modifier la catégorie&quot;:&quot;Nouvelle catégorie budget&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,className:&quot;p-1 text-ink-500 hover:text-ink-700 rounded&quot;,children:i.jsx(gr,{size:20})})]}),i.jsxs(&quot;form&quot;,{onSubmit:v,className:&quot;p-4 space-y-4&quot;,children:[l&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;p-3 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:l}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;bc-name&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Nom *&quot;}),i.jsx(&quot;input&quot;,{id:&quot;bc-name&quot;,type:&quot;text&quot;,value:c,onChange:_=&gt;a(_.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg&quot;,required:!0})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;bc-code&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Code (optionnel)&quot;}),i.jsx(&quot;input&quot;,{id:&quot;bc-code&quot;,type:&quot;text&quot;,value:d,onChange:_=&gt;f(_.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg&quot;,maxLength:50})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;bc-category-type&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Type *&quot;}),i.jsx(&quot;select&quot;,{id:&quot;bc-category-type&quot;,value:h,onChange:_=&gt;m(_.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg&quot;,children:yoe.map(_=&gt;i.jsx(&quot;option&quot;,{value:_.value,children:_.label},_.value))})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;bc-event-type&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Type d&#039;événement&quot;}),i.jsx(&quot;select&quot;,{id:&quot;bc-event-type&quot;,value:p,onChange:_=&gt;x(_.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg&quot;,children:voe.map(_=&gt;i.jsx(&quot;option&quot;,{value:_.value,children:_.label},_.value||&quot;all&quot;))})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;bc-sort&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Ordre d&#039;affichage&quot;}),i.jsx(&quot;input&quot;,{id:&quot;bc-sort&quot;,type:&quot;number&quot;,min:0,value:g,onChange:_=&gt;y(parseInt(_.target.value,10)||0),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex justify-end gap-2 pt-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;secondary&quot;,onClick:r,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:o,children:o?&quot;Enregistrement...&quot;:n?&quot;Enregistrer&quot;:&quot;Créer&quot;})]})]})]})})}function woe({category:e,onClose:r,onDeleted:t}){const[n,o]=O.useState(!1),[s,l]=O.useState(null),u=async()=&gt;{l(null),o(!0);try{await Fo.delete(e.id),t()}catch(c){const a=c instanceof kt?c.data?.message:&quot;Erreur lors de la suppression.&quot;;l(a??&quot;Erreur&quot;)}finally{o(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50&quot;,onClick:r,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-lg max-w-md w-full p-4&quot;,onClick:c=&gt;c.stopPropagation(),children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Supprimer la catégorie&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,className:&quot;p-1 text-ink-500 hover:text-ink-700 rounded&quot;,children:i.jsx(gr,{size:20})})]}),i.jsxs(&quot;p&quot;,{className:&quot;text-ink-700 mb-4&quot;,children:[&quot;Êtes-vous sûr de vouloir supprimer la catégorie « &quot;,e.name,&quot; » ? Les lignes de budget qui l&#039;utilisent ne seront pas supprimées mais pourront ne plus afficher le nom de catégorie.&quot;]}),s&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:s}),i.jsxs(&quot;div&quot;,{className:&quot;flex justify-end gap-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;secondary&quot;,onClick:r,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:u,disabled:n,className:&quot;bg-red-600 hover:bg-red-700&quot;,children:n?&quot;Suppression...&quot;:&quot;Supprimer&quot;})]})]})})}function _oe({user:e,openMenuId:r,setOpenMenuId:t,canUpdate:n,canDelete:o,isCurrentUser:s,sendingActivation:l,reactivatingId:u,onEdit:c,onResetPassword:a,onSendActivation:d,onReactivate:f,onDelete:h}){const m=[];return n&amp;&amp;e.is_active!==!1&amp;&amp;m.push({id:&quot;reset-password&quot;,label:&quot;Réinitialiser le mot de passe&quot;,onSelect:a},{id:&quot;send-activation&quot;,label:l===e.id?&quot;Envoi…&quot;:&quot;Envoyer le lien d’activation&quot;,onSelect:d,disabled:l===e.id,title:&quot;Envoyer l’email avec le lien d’activation du compte&quot;}),n&amp;&amp;!s&amp;&amp;e.is_active===!1&amp;&amp;m.push({id:&quot;reactivate&quot;,label:&quot;Réactiver le compte&quot;,onSelect:f,disabled:u===e.id}),o&amp;&amp;!s&amp;&amp;m.push({id:&quot;delete&quot;,label:&quot;Supprimer&quot;,danger:!0,title:e.has_financial_activity?&quot;Compte lié à de l’activité financière — désactivation plutôt que suppression&quot;:&quot;Supprimer l’utilisateur&quot;,onSelect:h}),i.jsx(Ta,{rowId:e.id,openMenuId:r,setOpenMenuId:t,onEdit:n&amp;&amp;e.is_active!==!1?c:void 0,editLabel:&quot;Modifier&quot;,menuItems:m})}function joe({onClose:e,onSuccess:r}){const[t,n]=O.useState(!1),[o,s]=O.useState(null),[l,u]=O.useState({}),[c,a]=O.useState(&quot;&quot;),[d,f]=O.useState(&quot;&quot;),[h,m]=O.useState(bv[0]),[p,x]=O.useState(&quot;&quot;),[g,y]=O.useState(&quot;&quot;),v=async _=&gt;{_.preventDefault(),s(null),u({}),n(!0);try{await Uo.create({name:c,email:d,role:h,...p?{password:p,password_confirmation:g}:{}}),r()}catch(S){const A=S;if(s(A.data?.message??&quot;Erreur lors de la création.&quot;),A.data?.errors){const I={};for(const[V,F]of Object.entries(A.data.errors))I[V]=Array.isArray(F)?F[0]:String(F);u(I)}}finally{n(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-xl max-w-md w-full max-h-[90vh] overflow-y-auto&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between p-4 border-b border-gray-200&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Créer un utilisateur&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:e,className:&quot;p-1 rounded hover:bg-gray-100&quot;,children:i.jsx(gr,{size:20})})]}),i.jsxs(&quot;form&quot;,{onSubmit:v,className:&quot;p-4 space-y-4&quot;,children:[o&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700&quot;,children:o}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:c,onChange:_=&gt;a(_.target.value),required:!0,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;}),l.name&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:l.name})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Email&quot;}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:d,onChange:_=&gt;f(_.target.value),required:!0,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;}),l.email&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:l.email})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Rôle&quot;}),i.jsx(&quot;select&quot;,{value:h,onChange:_=&gt;m(_.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:bv.map(_=&gt;i.jsx(&quot;option&quot;,{value:_,children:Zm(_)},_))})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Mot de passe (optionnel — sinon envoyer un lien d&#039;activation après création)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;password&quot;,value:p,onChange:_=&gt;x(_.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,autoComplete:&quot;new-password&quot;}),p&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mt-2 mb-1&quot;,children:&quot;Confirmer le mot de passe&quot;}),i.jsx(&quot;input&quot;,{type:&quot;password&quot;,value:g,onChange:_=&gt;y(_.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,autoComplete:&quot;new-password&quot;}),l.password&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:l.password})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2 justify-end pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:e,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:t,children:t?&quot;Création...&quot;:&quot;Créer&quot;})]})]})]})})}function Noe({user:e,onClose:r,onSuccess:t,onSendActivation:n,sendingActivation:o}){const[s,l]=O.useState(!1),[u,c]=O.useState(null),[a,d]=O.useState({}),[f,h]=O.useState(e.name),[m,p]=O.useState(e.email),x=e.role??e.roles?.[0]??&quot;&quot;,[g,y]=O.useState(_4(x)||Am[0]);O.useEffect(()=&gt;{h(e.name),p(e.email);const A=e.role??e.roles?.[0]??&quot;&quot;;y(_4(A)||Am[0])},[e]);const v=async A=&gt;{A.preventDefault(),c(null),d({}),l(!0);try{await Uo.update(e.id,{name:f,email:m,role:g}),t()}catch(I){const V=I;if(c(V.data?.message??&quot;Erreur lors de la mise à jour.&quot;),V.data?.errors){const F={};for(const[q,H]of Object.entries(V.data.errors))F[q]=Array.isArray(H)?H[0]:String(H);d(F)}}finally{l(!1)}},_=!e.is_only_super_admin,S=[...Am];return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-xl max-w-md w-full max-h-[90vh] overflow-y-auto&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between p-4 border-b border-gray-200&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Modifier l&#039;utilisateur&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,className:&quot;p-1 rounded hover:bg-gray-100&quot;,children:i.jsx(gr,{size:20})})]}),i.jsxs(&quot;form&quot;,{onSubmit:v,className:&quot;p-4 space-y-4&quot;,children:[u&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700&quot;,children:u}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:f,onChange:A=&gt;h(A.target.value),required:!0,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;}),a.name&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:a.name})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Email&quot;}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:m,onChange:A=&gt;p(A.target.value),required:!0,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;}),a.email&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:a.email})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Rôle&quot;}),i.jsx(&quot;select&quot;,{value:g,onChange:A=&gt;y(A.target.value),disabled:!_,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm disabled:opacity-60&quot;,children:S.map(A=&gt;i.jsx(&quot;option&quot;,{value:A,children:Zm(A)},A))}),e.is_only_super_admin&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-amber-600&quot;,children:&quot;Il doit rester au moins un Super Admin.&quot;}),a.role&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-red-600&quot;,children:a.role})]}),i.jsxs(&quot;div&quot;,{className:&quot;border-t border-gray-200 pt-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600 mb-2&quot;,children:&quot;Mot de passe : envoyez un lien d&#039;activation à l&#039;utilisateur.&quot;}),i.jsxs(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:n,disabled:o,className:&quot;flex items-center gap-2&quot;,children:[i.jsx(Aa,{size:16}),o?&quot;Envoi...&quot;:&quot;Envoyer lien d&#039;activation&quot;]})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2 justify-end pt-4&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:r,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:s,children:s?&quot;Enregistrement...&quot;:&quot;Enregistrer&quot;})]})]})]})})}function koe({user:e,onClose:r,onSuccess:t,isCurrentUser:n}){const[o,s]=O.useState(!1),[l,u]=O.useState(!1),[c,a]=O.useState(null),d=e.has_financial_activity===!0,f=async()=&gt;{if(!n){a(null),s(!0);try{await Uo.delete(e.id),t()}catch(m){const p=m;a(p.data?.message??p.data?.errors?.user?.[0]??&quot;Erreur lors de la suppression.&quot;)}finally{s(!1)}}},h=async()=&gt;{if(!n){a(null),u(!0);try{await Uo.setDeactivated(e.id,!0),t()}catch(m){const p=m;a(p.data?.message??p.data?.errors?.user?.[0]??&quot;Erreur lors de la désactivation.&quot;)}finally{u(!1)}}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-xl max-w-md w-full p-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:d?&quot;Désactiver le compte&quot;:&quot;Supprimer l&#039;utilisateur&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,className:&quot;p-1 rounded hover:bg-gray-100&quot;,children:i.jsx(gr,{size:20})})]}),n?i.jsx(&quot;p&quot;,{className:&quot;text-ink-600 mb-4&quot;,children:&quot;Vous ne pouvez pas supprimer votre propre compte.&quot;}):d?i.jsxs(i.Fragment,{children:[i.jsxs(&quot;p&quot;,{className:&quot;text-ink-600 mb-4&quot;,children:[&quot;Cet utilisateur ne peut pas être supprimé : des transactions financières (paiements ou contributions) sont liées à son compte. Vous pouvez &quot;,i.jsx(&quot;strong&quot;,{children:&quot;désactiver le compte&quot;}),&quot; : l&#039;utilisateur ne pourra plus se connecter, mais les données restent conservées.&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;text-ink-500 text-sm mb-4&quot;,children:[&quot;Utilisateur : &quot;,i.jsx(&quot;strong&quot;,{children:e.name}),&quot; (&quot;,e.email,&quot;)&quot;]}),c&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700&quot;,children:c}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2 justify-end&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:r,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:h,disabled:l,className:&quot;bg-amber-600 hover:bg-amber-700&quot;,children:l?&quot;Désactivation...&quot;:&quot;Désactiver le compte&quot;})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(&quot;p&quot;,{className:&quot;text-ink-600 mb-4&quot;,children:[&quot;Êtes-vous sûr de vouloir supprimer l&#039;utilisateur &quot;,i.jsx(&quot;strong&quot;,{children:e.name}),&quot; (&quot;,e.email,&quot;) ? Cette action est irréversible.&quot;]}),c&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700&quot;,children:c}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2 justify-end&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:r,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,onClick:f,disabled:o,className:&quot;bg-red-600 hover:bg-red-700&quot;,children:o?&quot;Suppression...&quot;:&quot;Supprimer&quot;})]})]})]})})}function Soe({user:e,onClose:r,onSuccess:t}){const[n,o]=O.useState(&quot;&quot;),[s,l]=O.useState(&quot;&quot;),[u,c]=O.useState(!1),[a,d]=O.useState(null),[f,h]=O.useState({}),m=async p=&gt;{if(p.preventDefault(),d(null),h({}),n.length&lt;8){h({password:&quot;Le mot de passe doit contenir au moins 8 caractères.&quot;});return}if(n!==s){h({password_confirmation:&quot;Les deux mots de passe ne correspondent pas.&quot;});return}c(!0);try{await Uo.resetPassword(e.id,{password:n,password_confirmation:s}),t()}catch(x){const g=x;if(d(g.data?.message??&quot;Erreur lors de la réinitialisation.&quot;),g.data?.errors){const y={};for(const[v,_]of Object.entries(g.data.errors))y[v]=Array.isArray(_)?_[0]:String(_);h(y)}}finally{c(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-xl max-w-md w-full p-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Réinitialiser le mot de passe&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,className:&quot;p-1 rounded hover:bg-gray-100&quot;,children:i.jsx(gr,{size:20})})]}),i.jsxs(&quot;p&quot;,{className:&quot;text-ink-600 text-sm mb-4&quot;,children:[&quot;Définir un nouveau mot de passe pour &quot;,i.jsx(&quot;strong&quot;,{children:e.name}),&quot; (&quot;,e.email,&quot;). L&#039;utilisateur devra le changer à sa première connexion.&quot;]}),i.jsxs(&quot;form&quot;,{onSubmit:m,children:[a&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700&quot;,children:a}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;reset-password&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Nouveau mot de passe&quot;}),i.jsx(&quot;input&quot;,{id:&quot;reset-password&quot;,type:&quot;password&quot;,value:n,onChange:p=&gt;o(p.target.value),minLength:8,autoComplete:&quot;new-password&quot;,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,placeholder:&quot;Min. 8 caractères&quot;}),f.password&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:f.password})]}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;reset-password-confirm&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Confirmer le mot de passe&quot;}),i.jsx(&quot;input&quot;,{id:&quot;reset-password-confirm&quot;,type:&quot;password&quot;,value:s,onChange:p=&gt;l(p.target.value),autoComplete:&quot;new-password&quot;,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,placeholder:&quot;Confirmer&quot;}),f.password_confirmation&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-red-600&quot;,children:f.password_confirmation})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2 justify-end&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:r,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:u,children:u?&quot;En cours...&quot;:&quot;Réinitialiser&quot;})]})]})]})})}function Coe(){const{can:e,user:r}=Ts(),[t,n]=O.useState(1),[o]=O.useState(20),[s,l]=O.useState(&quot;&quot;),[u,c]=O.useState(&quot;&quot;),[a,d]=O.useState(!1),[f,h]=O.useState(null),[m,p]=O.useState(null),[x,g]=O.useState(null),[y,v]=O.useState(null),[_,S]=O.useState(null),[A,I]=O.useState(null),[V,F]=O.useState(null),q=async j=&gt;{I(j.id);try{await Uo.setDeactivated(j.id,!1),T()}finally{I(null)}},{data:H,loading:B,error:K,refetch:T}=w$({page:t,per_page:o,role:s||void 0,q:u||void 0},!0),L=async j=&gt;{v(j.id),S(null);try{await Uo.sendActivation(j.id),T()}catch(k){const N=k;S(N.data?.errors?.user?.[0]??N.data?.message??&quot;Erreur lors de l&#039;envoi.&quot;)}finally{v(null)}},E=j=&gt;r&amp;&amp;j.id===(typeof r.id==&quot;number&quot;?r.id:Number(r.id));return i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-8 flex flex-wrap items-center justify-between gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;h3&quot;,{className:&quot;text-xl font-bold text-ink-900 mb-1 flex items-center gap-2&quot;,children:[i.jsx(Gm,{size:22,className:&quot;text-brand-700&quot;}),&quot;Gestion des utilisateurs&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 text-sm&quot;,children:&quot;Créez et gérez les comptes staff (Super Admin et commissions).&quot;})]}),e(&quot;users.create&quot;)&amp;&amp;i.jsxs(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;d(!0),className:&quot;flex items-center gap-2&quot;,children:[i.jsx(Em,{size:18}),&quot;Créer un utilisateur&quot;]})]}),_&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:_}),i.jsxs(&quot;div&quot;,{className:&quot;mb-6 flex flex-wrap gap-4&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;search&quot;,placeholder:&quot;Rechercher (nom, email)...&quot;,value:u,onChange:j=&gt;c(j.target.value),className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm w-64&quot;}),i.jsxs(&quot;select&quot;,{value:s,onChange:j=&gt;l(j.target.value),className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Tous les rôles&quot;}),n$.map(j=&gt;i.jsx(&quot;option&quot;,{value:j,children:Zm(j)},j))]})]}),K&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-red-700&quot;,children:K.data?.message??&quot;Erreur lors du chargement.&quot;})}),B&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;py-12 text-center text-ink-500&quot;,children:&quot;Chargement...&quot;}),!B&amp;&amp;H&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsx(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 overflow-hidden shadow-soft&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-gray-50 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-3 py-2 text-xs font-semibold text-ink-900 uppercase tracking-wide&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-3 py-2 text-xs font-semibold text-ink-900 uppercase tracking-wide&quot;,children:&quot;Email&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-3 py-2 text-xs font-semibold text-ink-900 uppercase tracking-wide&quot;,children:&quot;Rôle&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-3 py-2 text-xs font-semibold text-ink-900 uppercase tracking-wide w-24&quot;,children:&quot;Vérifié&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-3 py-2 text-xs font-semibold text-ink-900 uppercase tracking-wide w-24&quot;,children:&quot;Créé le&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-3 py-2 text-xs font-semibold text-ink-900 uppercase tracking-wide w-20&quot;,children:&quot;Statut&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-3 py-2 text-xs font-semibold text-ink-900 uppercase tracking-wide w-28&quot;,children:&quot;Actions&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-100&quot;,children:H.data.length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:7,className:&quot;px-3 py-6 text-center text-sm text-ink-500&quot;,children:&quot;Aucun utilisateur trouvé.&quot;})}):H.data.map(j=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50/80&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-3 py-1.5 text-sm text-ink-900 whitespace-nowrap truncate&quot;,title:j.name,children:j.name}),i.jsx(&quot;td&quot;,{className:&quot;px-3 py-1.5 text-sm text-ink-700 whitespace-nowrap truncate&quot;,title:j.email,children:j.email}),i.jsx(&quot;td&quot;,{className:&quot;px-3 py-1.5 text-sm text-ink-700 whitespace-nowrap truncate&quot;,children:Zm(j.role??j.roles?.[0]??&quot;&quot;)||&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-3 py-1.5 text-sm whitespace-nowrap&quot;,children:j.email_verified_at?i.jsx(&quot;span&quot;,{className:&quot;text-green-600&quot;,children:&quot;Oui&quot;}):i.jsx(&quot;span&quot;,{className:&quot;text-amber-600&quot;,children:&quot;Non&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;px-3 py-1.5 text-sm text-ink-500 whitespace-nowrap&quot;,children:j.created_at?new Date(j.created_at).toLocaleDateString(&quot;fr-FR&quot;):&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-3 py-1.5 text-sm whitespace-nowrap&quot;,children:j.is_active===!1?i.jsx(&quot;span&quot;,{className:&quot;inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-amber-100 text-amber-800&quot;,children:&quot;Désactivé&quot;}):null}),i.jsx(&quot;td&quot;,{className:&quot;px-3 py-1.5 whitespace-nowrap text-right&quot;,children:i.jsx(_oe,{user:j,openMenuId:V,setOpenMenuId:F,canUpdate:!!e(&quot;users.update&quot;),canDelete:!!e(&quot;users.delete&quot;),isCurrentUser:!!E(j),sendingActivation:y,reactivatingId:A,onEdit:()=&gt;h(j),onResetPassword:()=&gt;g(j),onSendActivation:()=&gt;L(j),onReactivate:()=&gt;q(j),onDelete:()=&gt;p(j)})})]},j.id))})]})})}),H.meta.last_page&gt;1&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-6 flex items-center justify-between&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:[&quot;Page &quot;,H.meta.current_page,&quot; sur &quot;,H.meta.last_page,&quot; (&quot;,H.meta.total,&quot; utilisateurs)&quot;]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2&quot;,children:[i.jsx(Ae,{variant:&quot;outline&quot;,disabled:H.meta.current_page&lt;=1,onClick:()=&gt;n(j=&gt;j-1),className:&quot;text-sm py-2&quot;,children:&quot;Précédent&quot;}),i.jsx(Ae,{variant:&quot;outline&quot;,disabled:H.meta.current_page&gt;=H.meta.last_page,onClick:()=&gt;n(j=&gt;j+1),className:&quot;text-sm py-2&quot;,children:&quot;Suivant&quot;})]})]})]}),a&amp;&amp;e(&quot;users.create&quot;)&amp;&amp;i.jsx(joe,{onClose:()=&gt;d(!1),onSuccess:()=&gt;{d(!1),T()}}),f&amp;&amp;e(&quot;users.update&quot;)&amp;&amp;i.jsx(Noe,{user:f,onClose:()=&gt;h(null),onSuccess:()=&gt;{h(null),T()},onSendActivation:()=&gt;L(f),sendingActivation:y===f.id}),m&amp;&amp;e(&quot;users.delete&quot;)&amp;&amp;i.jsx(koe,{user:m,onClose:()=&gt;p(null),onSuccess:()=&gt;{p(null),T()},isCurrentUser:!!(m&amp;&amp;E(m))}),x&amp;&amp;e(&quot;users.update&quot;)&amp;&amp;i.jsx(Soe,{user:x,onClose:()=&gt;g(null),onSuccess:()=&gt;{g(null),T()}})]})}function Eoe(){const[e,r]=O.useState(1),t=25,[n,o]=O.useState(&quot;&quot;),[s,l]=O.useState(&quot;&quot;),[u,c]=O.useState(&quot;&quot;),[a,d]=O.useState(&quot;&quot;),[f,h]=O.useState(!1),[m,p]=O.useState(null),[x,g]=O.useState(&quot;&quot;),[y,v]=O.useState(!1),[_,S]=O.useState(null),[A,I]=O.useState(null),[V,F]=O.useState(!1),[q,H]=O.useState(&quot;&quot;),B=&quot;PURGER&quot;,K=O.useMemo(()=&gt;({page:e,per_page:t,...n&amp;&amp;{date_from:n},...s&amp;&amp;{date_to:s},...u.trim()&amp;&amp;{action:u.trim()},...a.trim()&amp;&amp;{subject_type:a.trim()}}),[e,n,s,u,a]),{data:T,loading:L,error:E,refetch:j}=_$(K,!0),k=T?.data??[],N=T?.meta,C=N?.last_page??1,P=U=&gt;{try{return new Date(U).toLocaleString(&quot;fr-FR&quot;,{dateStyle:&quot;short&quot;,timeStyle:&quot;medium&quot;})}catch{return U}},D=U=&gt;({&quot;user.created&quot;:&quot;Utilisateur créé&quot;,&quot;user.updated&quot;:&quot;Utilisateur mis à jour&quot;,&quot;user.deleted&quot;:&quot;Utilisateur supprimé&quot;,&quot;user.send_activation&quot;:&quot;Lien d&#039;activation envoyé&quot;,&quot;user.reset_password&quot;:&quot;Mot de passe réinitialisé&quot;,&quot;registration.status_updated&quot;:&quot;Statut inscription modifié&quot;,&quot;registration.updated&quot;:&quot;Inscription mise à jour&quot;,&quot;registration.deleted&quot;:&quot;Inscription supprimée&quot;,&quot;registration.activation_email_resent&quot;:&quot;Email d’activation inscription renvoyé&quot;,&quot;registration.installment_reminder_email_sent&quot;:&quot;Email de relance échéance envoyé&quot;,&quot;recommendation.status_updated&quot;:&quot;Statut recommandation modifié&quot;,&quot;recommendation.send_email&quot;:&quot;Email recommandation envoyé&quot;,&quot;recommendation.deleted&quot;:&quot;Recommandation supprimée&quot;,&quot;budget_category.created&quot;:&quot;Catégorie budget créée&quot;,&quot;budget_category.updated&quot;:&quot;Catégorie budget mise à jour&quot;,&quot;budget_category.deleted&quot;:&quot;Catégorie budget supprimée&quot;,&quot;treasury_account.created&quot;:&quot;Compte trésorerie créé&quot;,&quot;treasury_account.updated&quot;:&quot;Compte trésorerie mis à jour&quot;,&quot;treasury_account.deleted&quot;:&quot;Compte trésorerie supprimé&quot;,&quot;payment.created&quot;:&quot;Paiement initié&quot;,&quot;payment.confirmed&quot;:&quot;Paiement confirmé&quot;,&quot;payment.rejected&quot;:&quot;Paiement rejeté&quot;,&quot;payment.receipt_issued&quot;:&quot;Reçu paiement émis&quot;,&quot;payment.receipt_email_sent&quot;:&quot;Reçu paiement envoyé par email&quot;,&quot;donation.confirmed&quot;:&quot;Don confirmé&quot;,&quot;donation.rejected&quot;:&quot;Don rejeté&quot;,&quot;donation.receipt_issued&quot;:&quot;Reçu don émis&quot;,&quot;contribution.confirmed&quot;:&quot;Contribution confirmée&quot;,&quot;batch.marked_paid&quot;:&quot;Batch marqué payé&quot;,&quot;event_budget_line.created&quot;:&quot;Ligne budget créée&quot;,&quot;event_budget_line.updated&quot;:&quot;Ligne budget mise à jour&quot;,&quot;event_budget_line.deleted&quot;:&quot;Ligne budget supprimée&quot;,&quot;event_budget_line.moved&quot;:&quot;Ligne budget déplacée&quot;,&quot;expense.created&quot;:&quot;Dépense créée&quot;,&quot;expense.updated&quot;:&quot;Dépense mise à jour&quot;,&quot;expense.deleted&quot;:&quot;Dépense supprimée&quot;})[U]??U,z=async()=&gt;{p(null),h(!0);try{await vv.exportCsv({date_from:n||void 0,date_to:s||void 0,action:u.trim()||void 0,subject_type:a.trim()||void 0})}catch(U){const J=U&amp;&amp;typeof U==&quot;object&quot;&amp;&amp;&quot;data&quot;in U&amp;&amp;U.data?.message;p(typeof J==&quot;string&quot;?J:&quot;Erreur lors de l&#039;export CSV.&quot;)}finally{h(!1)}},Y=()=&gt;{x&amp;&amp;(H(&quot;&quot;),I(null),S(null),F(!0))},Z=()=&gt;{F(!1),H(&quot;&quot;)},ne=async()=&gt;{if(!(q!==B||!x)){I(null),S(null),v(!0);try{const U=await vv.purge(x);S(U.message),Z(),j()}catch(U){const J=U&amp;&amp;typeof U==&quot;object&quot;&amp;&amp;&quot;data&quot;in U&amp;&amp;U.data?.message;I(typeof J==&quot;string&quot;?J:&quot;Erreur lors de la purge.&quot;)}finally{v(!1)}}};return i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-6&quot;,children:[i.jsxs(&quot;h3&quot;,{className:&quot;text-xl font-bold text-ink-900 mb-1 flex items-center gap-2&quot;,children:[i.jsx(Xm,{size:22,className:&quot;text-brand-700&quot;}),&quot;Journal d&#039;audit&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 text-sm&quot;,children:&quot;Historique des actions de modification (utilisateurs, inscriptions, paramétrage, etc.).&quot;})]}),m&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:m}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex flex-wrap items-center gap-4&quot;,children:[i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 text-sm text-ink-700&quot;,children:[&quot;Du :&quot;,i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:n,onChange:U=&gt;{o(U.target.value),r(1)},className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 text-sm text-ink-700&quot;,children:[&quot;Au :&quot;,i.jsx(&quot;input&quot;,{type:&quot;date&quot;,value:s,onChange:U=&gt;{l(U.target.value),r(1)},className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 text-sm text-ink-700&quot;,children:[&quot;Action :&quot;,i.jsx(&quot;input&quot;,{type:&quot;text&quot;,placeholder:&quot;ex. user.created&quot;,value:u,onChange:U=&gt;{c(U.target.value),r(1)},className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm min-w-[160px]&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 text-sm text-ink-700&quot;,children:[&quot;Type ressource :&quot;,i.jsx(&quot;input&quot;,{type:&quot;text&quot;,placeholder:&quot;ex. App\\Models\\User&quot;,value:a,onChange:U=&gt;{d(U.target.value),r(1)},className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm min-w-[180px]&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex flex-wrap items-center gap-4&quot;,children:[i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:z,disabled:f,className:&quot;inline-flex items-center gap-2 px-4 py-2 rounded-lg border border-gray-300 bg-white text-ink-700 text-sm font-medium hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:[i.jsx(YF,{size:18,&quot;aria-hidden&quot;:!0}),f?&quot;Export en cours…&quot;:&quot;Exporter en CSV&quot;]}),i.jsxs(&quot;div&quot;,{className:&quot;inline-flex items-center gap-2&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;audit-purge-before&quot;,className:&quot;text-sm text-ink-700 whitespace-nowrap&quot;,children:&quot;Purger avant le :&quot;}),i.jsx(&quot;input&quot;,{id:&quot;audit-purge-before&quot;,type:&quot;date&quot;,value:x,onChange:U=&gt;g(U.target.value),className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:Y,disabled:y||!x,className:&quot;inline-flex items-center gap-2 px-4 py-2 rounded-lg border border-red-200 bg-red-50 text-red-700 text-sm font-medium hover:bg-red-100 disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:[i.jsx(TB,{size:18,&quot;aria-hidden&quot;:!0}),&quot;Purger&quot;]})]})]}),_&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-green-50 border border-green-200 rounded-lg text-green-800 text-sm&quot;,children:_}),A&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:A}),E&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:E}),V&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50&quot;,role:&quot;dialog&quot;,&quot;aria-modal&quot;:&quot;true&quot;,&quot;aria-labelledby&quot;:&quot;purge-modal-title&quot;,onClick:y?void 0:Z,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-lg max-w-md w-full p-6&quot;,onClick:U=&gt;U.stopPropagation(),children:[i.jsx(&quot;h3&quot;,{id:&quot;purge-modal-title&quot;,className:&quot;text-lg font-semibold text-ink-900 mb-2&quot;,children:&quot;Confirmer la purge&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;text-ink-600 text-sm mb-4&quot;,children:[&quot;Vous allez supprimer &quot;,i.jsx(&quot;strong&quot;,{children:&quot;définitivement&quot;}),&quot; toutes les entrées du journal d&#039;audit dont la date est &quot;,i.jsxs(&quot;strong&quot;,{children:[&quot;avant le &quot;,x]}),&quot;. Cette action est irréversible.&quot;]}),i.jsxs(&quot;p&quot;,{className:&quot;text-ink-600 text-sm mb-2&quot;,children:[&quot;Pour confirmer, saisissez &quot;,i.jsx(&quot;strong&quot;,{children:B}),&quot; ci-dessous :&quot;]}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:q,onChange:U=&gt;H(U.target.value),placeholder:B,className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm mb-4 font-mono uppercase&quot;,autoComplete:&quot;off&quot;,&quot;aria-label&quot;:&quot;Saisir PURGER pour confirmer&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex justify-end gap-2&quot;,children:[i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:Z,disabled:y,className:&quot;px-4 py-2 rounded-lg border border-gray-300 bg-white text-ink-700 text-sm font-medium hover:bg-gray-50 disabled:opacity-50&quot;,children:&quot;Annuler&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:ne,disabled:y||q!==B,className:&quot;px-4 py-2 rounded-lg border border-red-200 bg-red-600 text-white text-sm font-medium hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed&quot;,children:y?&quot;Purge en cours…&quot;:&quot;Confirmer la purge&quot;})]})]})}),i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 overflow-hidden&quot;,children:[L?i.jsx(&quot;div&quot;,{className:&quot;p-12 text-center text-ink-500&quot;,children:&quot;Chargement du journal...&quot;}):i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left text-sm&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-gray-50 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider whitespace-nowrap&quot;,children:&quot;Date / Heure&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Utilisateur&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Action&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Ressource&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Description&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;IP&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200&quot;,children:k.length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:6,className:&quot;px-4 py-8 text-center text-ink-500&quot;,children:&quot;Aucune entrée dans le journal pour les critères choisis.&quot;})}):k.map(U=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-700 whitespace-nowrap&quot;,children:P(U.created_at)}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;font-medium text-ink-900&quot;,children:U.user_name??&quot;—&quot;}),U.user_email&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;block text-xs text-ink-500&quot;,children:U.user_email})]}),i.jsxs(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;font-medium text-ink-800&quot;,children:D(U.action)}),i.jsx(&quot;span&quot;,{className:&quot;block text-xs text-ink-500&quot;,children:U.action})]}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-700&quot;,children:U.subject_type?`${U.subject_type.replace(/^App\\Models\\/,&quot;&quot;)}${U.subject_id!=null?` #${U.subject_id}`:&quot;&quot;}`:&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-600 max-w-xs truncate&quot;,title:U.description??void 0,children:U.description??&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-ink-500 text-xs&quot;,children:U.ip??&quot;—&quot;})]},U.id))})]})}),N&amp;&amp;N.total&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;px-4 py-3 border-t border-gray-200 flex items-center justify-between flex-wrap gap-2&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:[N.from,&quot; – &quot;,N.to,&quot; sur &quot;,N.total,&quot; entrées&quot;]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;r(U=&gt;Math.max(1,U-1)),disabled:e&lt;=1,className:&quot;px-3 py-1.5 text-sm border border-gray-300 rounded-lg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-50&quot;,children:&quot;Précédent&quot;}),i.jsxs(&quot;span&quot;,{className:&quot;text-sm text-ink-600&quot;,children:[&quot;Page &quot;,N.current_page,&quot; / &quot;,C]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;r(U=&gt;Math.min(C,U+1)),disabled:e&gt;=C,className:&quot;px-3 py-1.5 text-sm border border-gray-300 rounded-lg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-50&quot;,children:&quot;Suivant&quot;})]})]})]})]})}function Aoe({events:e,row:r=null,onClose:t,onSuccess:n}){const o=!!r,[s,l]=O.useState(!1),[u,c]=O.useState(null),[a,d]=O.useState(&quot;&quot;),[f,h]=O.useState(&quot;XOF&quot;),[m,p]=O.useState(&quot;&quot;),[x,g]=O.useState([]),[y,v]=O.useState(!1),_=a===&quot;&quot;?null:Number(a);O.useEffect(()=&gt;{r?(d(r.event_id),h(r.currency),p(r.treasury_account_id)):(d(e[0]?.id??&quot;&quot;),h(&quot;XOF&quot;),p(&quot;&quot;))},[r,e]),O.useEffect(()=&gt;{if(_==null){g([]);return}v(!0),Qs.list({event_id:_}).then(I=&gt;{const V=Array.isArray(I?.data)?I.data:Array.isArray(I)?I:[];g(Array.isArray(V)?V:[])}).catch(()=&gt;g([])).finally(()=&gt;v(!1))},[_]);const S=O.useMemo(()=&gt;x.filter(I=&gt;I.is_active&amp;&amp;I.currency===f&amp;&amp;I.usage===&quot;sycapay_transit&quot;),[x,f]),A=async I=&gt;{if(I.preventDefault(),c(null),_==null||m===&quot;&quot;){c(&quot;Sélectionnez un événement et un compte de trésorerie.&quot;);return}l(!0);try{o&amp;&amp;r?await Qm.update(r.id,{event_id:_,currency:f,treasury_account_id:Number(m)}):await Qm.create({event_id:_,currency:f,treasury_account_id:Number(m)}),n(),t()}catch(V){const F=V instanceof kt?V.data.message:V instanceof Error?V.message:&quot;Erreur lors de l’enregistrement.&quot;;c(F)}finally{l(!1)}};return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40&quot;,role:&quot;dialog&quot;,&quot;aria-modal&quot;:&quot;true&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-lg max-w-lg w-full max-h-[90vh] overflow-y-auto&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between px-5 py-4 border-b border-gray-200&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:o?&quot;Modifier le mapping transit SycaPay&quot;:&quot;Nouveau mapping transit SycaPay&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:t,className:&quot;p-1 rounded-lg text-ink-500 hover:bg-gray-100&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:22})})]}),i.jsxs(&quot;form&quot;,{onSubmit:A,className:&quot;p-5 space-y-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600&quot;,children:&quot;Associe chaque événement et devise au compte de trésorerie où les encaissements SycaPay confirmés sont ventilés (transit), avant transfert manuel vers les comptes finaux.&quot;}),u&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;p-3 rounded-lg bg-red-50 border border-red-200 text-red-800 text-sm&quot;,role:&quot;alert&quot;,children:u}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;transit-event&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Événement&quot;}),i.jsxs(&quot;select&quot;,{id:&quot;transit-event&quot;,value:a===&quot;&quot;?&quot;&quot;:String(a),onChange:I=&gt;{const V=I.target.value;d(V===&quot;&quot;?&quot;&quot;:Number(V)),p(&quot;&quot;)},className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,required:!0,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;— Choisir —&quot;}),e.map(I=&gt;i.jsx(&quot;option&quot;,{value:I.id,children:I.name},I.id))]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;transit-currency&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Devise&quot;}),i.jsxs(&quot;select&quot;,{id:&quot;transit-currency&quot;,value:f,onChange:I=&gt;{h(I.target.value),p(&quot;&quot;)},className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;XOF&quot;,children:&quot;XOF&quot;}),i.jsx(&quot;option&quot;,{value:&quot;EUR&quot;,children:&quot;EUR&quot;})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;transit-account&quot;,className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Compte de trésorerie (transit)&quot;}),y?i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Chargement des comptes…&quot;}):i.jsxs(&quot;select&quot;,{id:&quot;transit-account&quot;,value:m===&quot;&quot;?&quot;&quot;:String(m),onChange:I=&gt;{const V=I.target.value;p(V===&quot;&quot;?&quot;&quot;:Number(V))},className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,required:!0,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;— Choisir —&quot;}),S.map(I=&gt;i.jsxs(&quot;option&quot;,{value:I.id,children:[I.name,&quot; (&quot;,I.currency,&quot;)&quot;]},I.id))]}),_!=null&amp;&amp;!y&amp;&amp;S.length===0&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-amber-700&quot;,children:&quot;Aucun compte actif pour cette devise. Créez d’abord un compte de trésorerie (onglet Comptes de trésorerie) en usage « Transit SycaPay », utilisable pour cet événement, avec la même devise.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex justify-end gap-2 pt-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;secondary&quot;,onClick:t,disabled:s,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:s,children:s?&quot;Enregistrement…&quot;:o?&quot;Enregistrer&quot;:&quot;Créer&quot;})]})]})]})})}const q6=[&quot;Mobile Money&quot;,&quot;Banque&quot;,&quot;Caisse&quot;,&quot;Autre&quot;],W6=[&quot;XOF&quot;,&quot;EUR&quot;],H6=[{value:&quot;&quot;,label:&quot;Tous&quot;},{value:&quot;summit&quot;,label:&quot;Sommet&quot;},{value:&quot;seminar&quot;,label:&quot;Séminaire&quot;},{value:&quot;other&quot;,label:&quot;Autre&quot;}];function Moe(){const{isAuthenticated:e,isParticipant:r,loading:t,can:n,roles:o}=Ts(),s=o.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),l=o.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!o.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),u=o.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!o.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),c=o.includes(&quot;COMMISSION_ADMINISTRATION_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;SUPER_ADMIN&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_ADMINISTRATION_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SOMMET&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_FINANCE_SEMINAIRE&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_COMMUNICATION&quot;)&amp;&amp;!o.includes(&quot;COMMISSION_SEMINAIRE_REGIONAL&quot;),[a,d]=ff(),f=o.includes(&quot;SUPER_ADMIN&quot;),h=a.get(&quot;tab&quot;),m=h===&quot;users&quot;&amp;&amp;f?&quot;users&quot;:h===&quot;audit&quot;&amp;&amp;f?&quot;audit&quot;:h===&quot;budget-categories&quot;?&quot;budget-categories&quot;:h===&quot;treasury&quot;?&quot;treasury&quot;:f?&quot;users&quot;:&quot;treasury&quot;,{events:p}=n0();O.useEffect(()=&gt;{(h===&quot;users&quot;||h===&quot;audit&quot;)&amp;&amp;!f?d({},{replace:!0}):!h&amp;&amp;f&amp;&amp;d({tab:&quot;users&quot;},{replace:!0})},[h,f,d]);const x=Me=&gt;{Me===&quot;users&quot;?d({tab:&quot;users&quot;},{replace:!0}):Me===&quot;audit&quot;?d({tab:&quot;audit&quot;},{replace:!0}):Me===&quot;budget-categories&quot;?d({tab:&quot;budget-categories&quot;},{replace:!0}):Me===&quot;treasury&quot;?d({tab:&quot;treasury&quot;},{replace:!0}):d({},{replace:!0})},[g,y]=O.useState(&quot;&quot;),[v,_]=O.useState([]),[S,A]=O.useState(!0),[I,V]=O.useState(null),[F,q]=O.useState(null),[H,B]=O.useState(!1),[K,T]=O.useState(null),[L,E]=O.useState(&quot;&quot;),[j,k]=O.useState([]),[N,C]=O.useState(!1),[P,D]=O.useState(null),[z,Y]=O.useState(null),[Z,ne]=O.useState(!1),[U,J]=O.useState(null),[$,R]=O.useState(null),[X,re]=O.useState(null),[Q,te]=O.useState([]),[ie,de]=O.useState(!1),[ce,se]=O.useState(null),[fe,le]=O.useState(!1),[ge,xe]=O.useState(null),[pe,ue]=O.useState(null),we=n(&quot;settings.read&quot;)||n(&quot;settings.update&quot;),ke=O.useCallback(()=&gt;{we&amp;&amp;(A(!0),V(null),Qs.list({event_id:g}).then(Me=&gt;_(Array.isArray(Me)?Me:Array.isArray(Me?.data)?Me.data:[])).catch(Me=&gt;V(Me?.data?.message??&quot;Erreur lors du chargement des comptes.&quot;)).finally(()=&gt;A(!1)))},[we,g]),De=O.useCallback(()=&gt;{if(!we)return;C(!0),D(null);const Me=L?{event_type:L}:{};Fo.list(Me).then(st=&gt;k(Array.isArray(st)?st:[])).catch(st=&gt;D(st?.data?.message??&quot;Erreur lors du chargement des catégories.&quot;)).finally(()=&gt;C(!1))},[we,L]),Le=O.useCallback(()=&gt;{if(!we)return;de(!0),se(null);const Me=g===&quot;&quot;?void 0:{event_id:Number(g)};Qm.list(Me).then(st=&gt;te(Array.isArray(st)?st:[])).catch(st=&gt;se(st?.data?.message??&quot;Erreur lors du chargement du mapping transit SycaPay.&quot;)).finally(()=&gt;de(!1))},[we,g]);if(O.useEffect(()=&gt;{we&amp;&amp;ke()},[we,g,ke]),O.useEffect(()=&gt;{!we||m!==&quot;treasury&quot;||Le()},[we,m,g,Le]),O.useEffect(()=&gt;{!we||m!==&quot;budget-categories&quot;||De()},[we,m,L,De]),t)return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Chargement...&quot;})});if(!e)return i.jsx(Kn,{to:&quot;/login&quot;,replace:!0});if(r)return i.jsx(Kn,{to:&quot;/account&quot;,replace:!0});if(!we)return i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-white rounded-xl shadow-soft p-8 text-center max-w-md&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-2xl font-semibold text-ink-900 mb-4&quot;,children:&quot;Accès non autorisé&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Seul le Super Admin peut accéder au paramétrage.&quot;})]})});const ze=Me=&gt;{B(!1),Me?_(st=&gt;[...st??[],Me]):ke()},Oe=()=&gt;{q(null),ke()},Ve=()=&gt;{T(null),ke()},Qe=Me=&gt;{ne(!1),Me?k(st=&gt;[...st,Me]):De()},Ze=()=&gt;{Y(null),De()},Je=()=&gt;{J(null),De()},qe=async Me=&gt;{if(window.confirm(`Supprimer le mapping transit SycaPay pour « ${Me.event_name??&quot;Événement&quot;} » (${Me.currency}) ?`))try{await Qm.delete(Me.id),Le()}catch(st){const $t=st&amp;&amp;typeof st==&quot;object&quot;&amp;&amp;&quot;data&quot;in st?st.data?.message:void 0;se($t??&quot;Suppression impossible.&quot;)}},tt=Me=&gt;H6.find(st=&gt;st.value===Me)?.label??Me??&quot;—&quot;,nt=Me=&gt;Me===&quot;revenue&quot;?&quot;Recettes&quot;:Me===&quot;expense&quot;?&quot;Dépenses&quot;:&quot;—&quot;;return i.jsxs(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex flex-col&quot;,children:[i.jsx(xf,{}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-1&quot;,children:[i.jsx(s0,{currentSection:&quot;settings&quot;,showSommet:s||c?!1:n(&quot;registrations.read&quot;),showSeminar:l||u?!1:n(&quot;registrations.read&quot;),showRecommendations:s||u?!1:n(&quot;recommendations.read&quot;),showUsers:!1,showFinance:u||c?!1:n(&quot;finance.dashboard&quot;)||n(&quot;payments.read&quot;),showSettings:we}),i.jsx(&quot;main&quot;,{className:&quot;flex-1 w-full lg:ml-48 pb-16 lg:pb-0&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;w-full px-4 sm:px-6 lg:px-8 py-6 lg:py-8&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-8&quot;,children:[i.jsxs(&quot;h2&quot;,{className:&quot;text-3xl font-bold text-ink-900 mb-2 flex items-center gap-2&quot;,children:[i.jsx(pv,{size:32,className:&quot;text-brand-700&quot;}),&quot;Paramétrage&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Comptes de trésorerie et autres réglages.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;mb-6 flex items-center gap-2 border-b border-gray-200&quot;,children:[f&amp;&amp;i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;x(&quot;users&quot;),className:`flex items-center gap-2 px-4 py-3 border-b-2 -mb-px font-medium ${m===&quot;users&quot;?&quot;border-brand-700 text-brand-700&quot;:&quot;border-transparent text-ink-500 hover:text-ink-700&quot;}`,children:[i.jsx(Gm,{size:18}),&quot;Utilisateurs&quot;]}),f&amp;&amp;i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;x(&quot;audit&quot;),className:`flex items-center gap-2 px-4 py-3 border-b-2 -mb-px font-medium ${m===&quot;audit&quot;?&quot;border-brand-700 text-brand-700&quot;:&quot;border-transparent text-ink-500 hover:text-ink-700&quot;}`,children:[i.jsx(Xm,{size:18}),&quot;Journal d&#039;audit&quot;]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;x(&quot;treasury&quot;),className:`flex items-center gap-2 px-4 py-3 border-b-2 -mb-px font-medium ${m===&quot;treasury&quot;?&quot;border-brand-700 text-brand-700&quot;:&quot;border-transparent text-ink-500 hover:text-ink-700&quot;}`,children:[i.jsx(c2,{size:18}),&quot;Comptes de trésorerie&quot;]}),i.jsxs(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;x(&quot;budget-categories&quot;),className:`flex items-center gap-2 px-4 py-3 border-b-2 -mb-px font-medium ${m===&quot;budget-categories&quot;?&quot;border-brand-700 text-brand-700&quot;:&quot;border-transparent text-ink-500 hover:text-ink-700&quot;}`,children:[i.jsx(PB,{size:18}),&quot;Catégories budget&quot;]})]}),m===&quot;treasury&quot;&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-6 flex flex-wrap items-center justify-between gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;event-filter&quot;,className:&quot;text-sm font-medium text-ink-700&quot;,children:&quot;Événement :&quot;}),i.jsxs(&quot;select&quot;,{id:&quot;event-filter&quot;,value:g,onChange:Me=&gt;y(Me.target.value===&quot;&quot;?&quot;&quot;:Number(Me.target.value)),className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm min-w-[220px]&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Tous (global + par événement)&quot;}),(p??[]).map(Me=&gt;i.jsx(&quot;option&quot;,{value:Me.id,children:Me.name},Me.id))]})]}),n(&quot;settings.update&quot;)&amp;&amp;i.jsxs(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;B(!0),className:&quot;flex items-center gap-2&quot;,children:[i.jsx(Em,{size:18}),&quot;Nouveau compte&quot;]})]}),I&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:I}),i.jsx(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 overflow-hidden&quot;,children:S?i.jsx(&quot;div&quot;,{className:&quot;p-12 text-center text-ink-500&quot;,children:&quot;Chargement des comptes...&quot;}):i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-gray-50 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Type&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Identifiant&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Devise&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Usage&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Contexte&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Actif&quot;}),n(&quot;settings.update&quot;)&amp;&amp;i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider w-24&quot;,children:&quot;Actions&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200&quot;,children:(v??[]).length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:n(&quot;settings.update&quot;)?8:7,className:&quot;px-4 py-8 text-center text-ink-500&quot;,children:&quot;Aucun compte de trésorerie. Cliquez sur « Nouveau compte » pour en ajouter.&quot;})}):(v??[]).map(Me=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-medium text-ink-900&quot;,children:Me.name}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:Me.type}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:Me.identifier}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:Me.currency}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:i.jsx(&quot;span&quot;,{className:`inline-flex px-2 py-0.5 text-xs font-medium rounded-full ${Me.usage===&quot;sycapay_transit&quot;?&quot;bg-violet-100 text-violet-800&quot;:&quot;bg-slate-100 text-slate-700&quot;}`,children:Me.usage===&quot;sycapay_transit&quot;?&quot;Transit SycaPay&quot;:&quot;Standard&quot;})}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:Me.context_display}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3&quot;,children:i.jsx(&quot;span&quot;,{className:`inline-flex px-2 py-0.5 text-xs font-medium rounded-full ${Me.is_active?&quot;bg-green-100 text-green-800&quot;:&quot;bg-gray-100 text-gray-600&quot;}`,children:Me.is_active?&quot;Oui&quot;:&quot;Non&quot;})}),n(&quot;settings.update&quot;)&amp;&amp;i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right&quot;,children:i.jsx(Ta,{rowId:`ta-${Me.id}`,openMenuId:$,setOpenMenuId:R,onEdit:()=&gt;q(Me),menuItems:[{id:&quot;delete&quot;,label:&quot;Supprimer&quot;,danger:!0,onSelect:()=&gt;T(Me)}]})})]},Me.id))})]})})}),i.jsxs(&quot;div&quot;,{className:&quot;mt-10&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center justify-between gap-4 mb-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h3&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Transit SycaPay par événement&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600 mt-1 max-w-3xl&quot;,children:&quot;Compte de trésorerie où sont ventilés les encaissements SycaPay confirmés, par événement et devise, avant transfert manuel. Le filtre « Événement » ci-dessus s’applique aussi à cette liste.&quot;})]}),f&amp;&amp;i.jsxs(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;{xe(null),le(!0)},className:&quot;flex items-center gap-2 shrink-0&quot;,children:[i.jsx(Em,{size:18}),&quot;Nouveau mapping&quot;]})]}),ce&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:ce}),i.jsx(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 overflow-hidden&quot;,children:ie?i.jsx(&quot;div&quot;,{className:&quot;p-12 text-center text-ink-500&quot;,children:&quot;Chargement des mappings…&quot;}):i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-gray-50 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Événement&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Devise&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Compte de trésorerie (transit)&quot;}),f&amp;&amp;i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider w-24&quot;,children:&quot;Actions&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200&quot;,children:Q.length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:f?4:3,className:&quot;px-4 py-8 text-center text-ink-500&quot;,children:f?&quot;Aucun mapping. Utilisez « Nouveau mapping » pour associer un événement et une devise à un compte de transit.&quot;:&quot;Aucun mapping pour ce filtre.&quot;})}):Q.map(Me=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-medium text-ink-900&quot;,children:Me.event_name??`Événement #${Me.event_id}`}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:Me.currency}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:Me.treasury_account_name??`Compte #${Me.treasury_account_id}`}),f&amp;&amp;i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right&quot;,children:i.jsx(Ta,{rowId:`tm-${Me.id}`,openMenuId:pe,setOpenMenuId:ue,onEdit:()=&gt;xe(Me),menuItems:[{id:&quot;delete&quot;,label:&quot;Supprimer&quot;,danger:!0,onSelect:()=&gt;{qe(Me)}}]})})]},Me.id))})]})})})]})]}),m===&quot;budget-categories&quot;&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-6 flex flex-wrap items-center justify-between gap-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-2&quot;,children:[i.jsx(&quot;label&quot;,{htmlFor:&quot;category-type-filter&quot;,className:&quot;text-sm font-medium text-ink-700&quot;,children:&quot;Type d&#039;événement :&quot;}),i.jsx(&quot;select&quot;,{id:&quot;category-type-filter&quot;,value:L,onChange:Me=&gt;E(Me.target.value),className:&quot;px-3 py-2 border border-gray-300 rounded-lg text-sm min-w-[180px]&quot;,children:H6.map(Me=&gt;i.jsx(&quot;option&quot;,{value:Me.value,children:Me.label},Me.value||&quot;all&quot;))})]}),n(&quot;settings.update&quot;)&amp;&amp;i.jsxs(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;ne(!0),className:&quot;flex items-center gap-2&quot;,children:[i.jsx(Em,{size:18}),&quot;Nouvelle catégorie&quot;]})]}),P&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-4 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:P}),i.jsx(&quot;div&quot;,{className:&quot;bg-white rounded-xl border border-gray-200 overflow-hidden&quot;,children:N?i.jsx(&quot;div&quot;,{className:&quot;p-12 text-center text-ink-500&quot;,children:&quot;Chargement des catégories...&quot;}):i.jsx(&quot;div&quot;,{className:&quot;overflow-x-auto&quot;,children:i.jsxs(&quot;table&quot;,{className:&quot;w-full text-left&quot;,children:[i.jsx(&quot;thead&quot;,{className:&quot;bg-gray-50 border-b border-gray-200&quot;,children:i.jsxs(&quot;tr&quot;,{children:[i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Code&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Type&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Type d&#039;événement&quot;}),i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider&quot;,children:&quot;Ordre&quot;}),n(&quot;settings.update&quot;)&amp;&amp;i.jsx(&quot;th&quot;,{className:&quot;px-4 py-3 text-xs font-semibold text-ink-600 uppercase tracking-wider w-24&quot;,children:&quot;Actions&quot;})]})}),i.jsx(&quot;tbody&quot;,{className:&quot;divide-y divide-gray-200&quot;,children:(j??[]).length===0?i.jsx(&quot;tr&quot;,{children:i.jsx(&quot;td&quot;,{colSpan:n(&quot;settings.update&quot;)?6:5,className:&quot;px-4 py-8 text-center text-ink-500&quot;,children:&quot;Aucune catégorie. Cliquez sur « Nouvelle catégorie » pour en ajouter.&quot;})}):(j??[]).map(Me=&gt;i.jsxs(&quot;tr&quot;,{className:&quot;hover:bg-gray-50&quot;,children:[i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm font-medium text-ink-900&quot;,children:Me.name}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:Me.code??&quot;—&quot;}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:nt(Me.type)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:tt(Me.event_type)}),i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-sm text-ink-700&quot;,children:Me.sort_order}),n(&quot;settings.update&quot;)&amp;&amp;i.jsx(&quot;td&quot;,{className:&quot;px-4 py-3 text-right&quot;,children:i.jsx(Ta,{rowId:`bc-${Me.id}`,openMenuId:X,setOpenMenuId:re,onEdit:()=&gt;Y(Me),menuItems:[{id:&quot;delete&quot;,label:&quot;Supprimer&quot;,danger:!0,onSelect:()=&gt;J(Me)}]})})]},Me.id))})]})})})]}),m===&quot;users&quot;&amp;&amp;i.jsx(Coe,{}),m===&quot;audit&quot;&amp;&amp;i.jsx(Eoe,{})]})})]}),H&amp;&amp;i.jsx(U6,{events:p??[],accountTypes:q6,currencies:W6,eventFilter:g,onClose:()=&gt;B(!1),onSuccess:ze}),F&amp;&amp;i.jsx(U6,{events:p??[],accountTypes:q6,currencies:W6,account:F,onClose:()=&gt;q(null),onSuccess:Oe}),K&amp;&amp;i.jsx(boe,{account:K,onClose:()=&gt;T(null),onDeleted:Ve}),Z&amp;&amp;i.jsx(V6,{onClose:()=&gt;ne(!1),onSuccess:Qe}),z&amp;&amp;i.jsx(V6,{category:z,onClose:()=&gt;Y(null),onSuccess:Ze}),U&amp;&amp;i.jsx(woe,{category:U,onClose:()=&gt;J(null),onDeleted:Je}),(fe||ge)&amp;&amp;i.jsx(Aoe,{events:p??[],row:ge,onClose:()=&gt;{le(!1),xe(null)},onSuccess:()=&gt;{Le()}})]})}function Poe(){const{token:e}=ki(),r=Ni(),[t,n]=O.useState(&quot;loading&quot;),[o,s]=O.useState(&quot;&quot;),[l,u]=O.useState(&quot;&quot;);return O.useEffect(()=&gt;{if(!e){n(&quot;error&quot;),s(&quot;Token de vérification manquant.&quot;);return}(async()=&gt;{try{const d=(await f2.verify(e)).event||&quot;l&#039;événement&quot;;n(&quot;success&quot;),s(`Votre inscription pour &quot;${d}&quot; a été vérifiée avec succès !`),setTimeout(()=&gt;{r(&quot;/&quot;)},5e3)}catch(a){if(n(&quot;error&quot;),a instanceof kt)if(a.status===422){const d=a.data.errors||{};d.token?s(d.token[0]||&quot;Le token de vérification est invalide ou a expiré.&quot;):d.status?s(d.status[0]||&quot;Cette inscription a déjà été vérifiée.&quot;):s(a.data.message||&quot;Erreur lors de la vérification.&quot;),u(Object.values(d).flat().join(&quot; &quot;))}else s(a.data.message||&quot;Une erreur est survenue lors de la vérification.&quot;);else s(&quot;Une erreur inattendue est survenue.&quot;)}})()},[e,r]),i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-gray-50 flex items-center justify-center px-4&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-md w-full bg-white rounded-xl shadow-lg p-8 text-center&quot;,children:[t===&quot;loading&quot;&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsx(&quot;div&quot;,{className:&quot;mb-6&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;inline-block animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-brand-700&quot;})}),i.jsx(&quot;h2&quot;,{className:&quot;text-2xl font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Vérification en cours...&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Veuillez patienter pendant que nous vérifions votre inscription.&quot;})]}),t===&quot;success&quot;&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsx(&quot;div&quot;,{className:&quot;mb-6&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;inline-flex items-center justify-center w-16 h-16 rounded-full bg-green-100&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-8 h-8 text-green-600&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,viewBox:&quot;0 0 24 24&quot;,children:i.jsx(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:2,d:&quot;M5 13l4 4L19 7&quot;})})})}),i.jsx(&quot;h2&quot;,{className:&quot;text-2xl font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Inscription vérifiée !&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 mb-6&quot;,children:o}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Vous allez être redirigé vers la page d&#039;accueil dans quelques secondes...&quot;}),i.jsx(&quot;button&quot;,{onClick:()=&gt;r(&quot;/&quot;),className:&quot;mt-6 px-6 py-3 bg-brand-700 text-white rounded-xl hover:bg-brand-900 transition-colors&quot;,children:&quot;Retour à l&#039;accueil&quot;})]}),t===&quot;error&quot;&amp;&amp;i.jsxs(i.Fragment,{children:[i.jsx(&quot;div&quot;,{className:&quot;mb-6&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;inline-flex items-center justify-center w-16 h-16 rounded-full bg-red-100&quot;,children:i.jsx(&quot;svg&quot;,{className:&quot;w-8 h-8 text-red-600&quot;,fill:&quot;none&quot;,stroke:&quot;currentColor&quot;,viewBox:&quot;0 0 24 24&quot;,children:i.jsx(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,strokeWidth:2,d:&quot;M6 18L18 6M6 6l12 12&quot;})})})}),i.jsx(&quot;h2&quot;,{className:&quot;text-2xl font-heading font-medium text-ink-900 mb-4&quot;,children:&quot;Erreur de vérification&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-500 mb-4&quot;,children:o}),l&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-600 mb-6&quot;,children:l}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:[i.jsx(&quot;button&quot;,{onClick:()=&gt;r(&quot;/inscription&quot;),className:&quot;w-full px-6 py-3 bg-brand-700 text-white rounded-xl hover:bg-brand-900 transition-colors&quot;,children:&quot;Retour à l&#039;inscription&quot;}),i.jsx(&quot;button&quot;,{onClick:()=&gt;r(&quot;/&quot;),className:&quot;w-full px-6 py-3 bg-gray-200 text-ink-900 rounded-xl hover:bg-gray-300 transition-colors&quot;,children:&quot;Retour à l&#039;accueil&quot;})]})]})]})})}const K6={not_sycapay:&quot;Actualisation automatique disponible uniquement pour les paiements en ligne.&quot;,terminal:&quot;Ce paiement est déjà terminé.&quot;,missing_provider_ref:&quot;Référence de paiement incomplète. Contactez le support si le problème persiste.&quot;,invalid_status:&quot;Statut incompatible avec une actualisation en ligne.&quot;,payment_too_recent:&quot;Le serveur attend encore quelques secondes après l’init avant la première interrogation du prestataire.&quot;,sync_too_recent:&quot;Une vérification vient d’être faite ; courte pause avant la prochaine interrogation.&quot;},jm=52e3,X6=14;function Ooe({donationId:e,paymentId:r,donorEmail:t,summaryHint:n,onStatusUpdate:o}){const[s,l]=O.useState(!1),[u,c]=O.useState(null),[a,d]=O.useState(null),f=O.useRef(o);f.current=o;const h=O.useCallback(v=&gt;h$(e,r,{refresh:v,donorEmail:t??void 0}),[e,r,t]);O.useEffect(()=&gt;{let v=!1;const _=[];return(async()=&gt;{try{const S=await h(!1);if(v||(d(S),f.current(S),S.is_terminal))return;let A=0,I=S.status;const V=()=&gt;{const q=S.refresh_earliest_at;if(!q)return jm;const H=Date.parse(q);return Number.isNaN(H)?jm:Math.max(4e3,H-Date.now()+1500)},F=q=&gt;{if(v||A&gt;=X6)return;const H=window.setTimeout(async()=&gt;{if(!v){A+=1;try{const B=await h(!0);if(v)return;d(B);const K=B.status!==I;if(K&amp;&amp;(I=B.status),(K||B.is_terminal)&amp;&amp;f.current(B),B.is_terminal)return}catch{}F(jm)}},q);_.push(H)};F(V())}catch{v||c(&quot;Impossible de charger le statut du paiement.&quot;)}})(),()=&gt;{v=!0,_.forEach(S=&gt;window.clearTimeout(S))}},[e,r,t,h]);const m=()=&gt;{c(null),l(!0),h(!0).then(v=&gt;{d(v),o(v)}).catch(v=&gt;{v instanceof kt?c(v.data?.message??v.message):c(&quot;Impossible d’actualiser le statut.&quot;)}).finally(()=&gt;l(!1))},p=!a||a.is_terminal?null:!a.refresh_attempted&amp;&amp;a.refresh_skipped_reason?K6[a.refresh_skipped_reason]??&quot;Actualisation momentanément indisponible.&quot;:a.refresh_blocked_reason?K6[a.refresh_blocked_reason]??&quot;Actualisation momentanément indisponible.&quot;:null,x=a===null||a.can_retry_refresh===!0,g=a!==null&amp;&amp;!a.is_terminal,y=!a||a.is_terminal||!(a.provider_operator??&quot;&quot;).toLowerCase().includes(&quot;coris&quot;)||a.redirect_url||a.status!==&quot;pending&quot;&amp;&amp;a.status!==&quot;initiated&quot;?null:&quot;Coris BF: le lien de validation prestataire n’a pas encore ete fourni. En sandbox, cette etape peut rester en attente.&quot;;return i.jsxs(&quot;div&quot;,{className:&quot;mt-2 space-y-2 rounded-md border border-emerald-100 bg-emerald-50/50 px-3 py-2&quot;,children:[n&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-600&quot;,children:n}),g&amp;&amp;i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:[&quot;Vérification automatique côté serveur (jusqu’à &quot;,X6,&quot; tentatives, environ toutes les&quot;,&quot; &quot;,Math.round(jm/1e3),&quot; s) tant que le paiement n’est pas terminé. La confirmation provient exclusivement du serveur (prestataire), pas de ce navigateur seul.&quot;]}),a?.message&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs font-medium text-ink-800&quot;,role:&quot;status&quot;,children:a.message}),y&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-800&quot;,children:y}),u&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-red-700&quot;,children:u}),p&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-800&quot;,children:p}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-wrap items-center gap-2&quot;,children:[i.jsxs(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;text-sm py-1.5 h-auto&quot;,onClick:m,disabled:s||!x,children:[i.jsx(o2,{size:14,className:`mr-1.5 inline ${s?&quot;animate-spin&quot;:&quot;&quot;}`}),s?&quot;Vérification…&quot;:&quot;Actualiser le statut&quot;]}),!x&amp;&amp;!s&amp;&amp;!p&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Actualisation non disponible pour le moment.&quot;})]})]})}const Toe=[{value:&quot;mobile_money&quot;,label:&quot;Mobile Money (Paiement hors système à déclarer ici)&quot;},{value:&quot;card_visa&quot;,label:&quot;Envoi d&#039;argent RIA, Western, MoneyGram (Hors système à déclarer ici)&quot;}];function Ioe({isOpen:e,onClose:r,onSuccess:t}){const n=Ni(),[o,s]=O.useState([]),[l,u]=O.useState(!1),[c,a]=O.useState(&quot;&quot;),[d,f]=O.useState(&quot;&quot;),[h,m]=O.useState(&quot;&quot;),[p,x]=O.useState(&quot;&quot;),[g,y]=O.useState(&quot;&quot;),[v,_]=O.useState(!1),[S,A]=O.useState(&quot;&quot;),[I,V]=O.useState(&quot;mobile_money&quot;),[F,q]=O.useState(!1),[H,B]=O.useState(null),[K,T]=O.useState(&quot;form&quot;),[L,E]=O.useState(null),[j,k]=O.useState(null),[N,C]=O.useState(null),[P,D]=O.useState(null),[z,Y]=O.useState(null),[Z,ne]=O.useState(!1),[U,J]=O.useState(()=&gt;Yc(&quot;CI&quot;)),[$,R]=O.useState(&quot;&quot;),[X,re]=O.useState(&quot;&quot;),[Q,te]=O.useState(&quot;&quot;),[ie,de]=O.useState(null),[ce,se]=O.useState(!1),fe=!ce||ie?.donation_payments_enabled!==!1,le=Ji[U]??Ji.CI;O.useEffect(()=&gt;{e&amp;&amp;(se(!1),l7().then(Oe=&gt;{de(Oe),se(!0)}).catch(()=&gt;{de({registration_payments_enabled:!0,donation_payments_enabled:!0,disabled_message:&quot;&quot;}),se(!0)}))},[e]),O.useEffect(()=&gt;{e&amp;&amp;(u(!0),B(null),d2.list().then(Oe=&gt;{const Ve=(Oe??[]).filter(Ze=&gt;Ze.is_active);s(Ve);const Qe=Ve.find(Ze=&gt;Ze.event_type===&quot;summit&quot;);a(Qe?.id??Ve[0]?.id??&quot;&quot;)}).catch(()=&gt;s([])).finally(()=&gt;u(!1)))},[e]),O.useEffect(()=&gt;{e&amp;&amp;(T(&quot;form&quot;),E(null),k(null),C(null),D(null),Y(null),J(Yc(&quot;CI&quot;)),R(&quot;&quot;),re(&quot;&quot;),te(&quot;&quot;),B(null))},[e]),O.useEffect(()=&gt;{R(Oe=&gt;{const Ve=Ji[U];return Ve&amp;&amp;Ve.operators.some(Qe=&gt;Qe.apiValue===Oe)?Oe:&quot;&quot;})},[U]),O.useEffect(()=&gt;{es(U,$)||te(&quot;&quot;)},[U,$]),O.useEffect(()=&gt;{v&amp;&amp;I===&quot;sycapay&quot;&amp;&amp;V(&quot;mobile_money&quot;)},[v,I]),O.useEffect(()=&gt;{!fe&amp;&amp;I===&quot;sycapay&quot;&amp;&amp;V(&quot;mobile_money&quot;)},[fe,I]);const ge=O.useMemo(()=&gt;{if(I!==&quot;sycapay&quot;)return null;if(v)return&quot;Le paiement en ligne nécessite votre nom et une adresse email (décochez « Anonyme »).&quot;;if(!$)return&quot;Choisissez un opérateur Mobile Money.&quot;;if(!X.replace(/\s/g,&quot;&quot;))return&quot;Indiquez le numéro Mobile Money utilisé pour le paiement.&quot;;if(!Xd(X,U))return g2(U);if(es(U,$)){const Ve=Q.replace(/\D/g,&quot;&quot;);if(Ve.length&lt;4||Ve.length&gt;12)return&quot;Indiquez le code OTP Orange (4 à 12 chiffres, voir doc de test SycaPay).&quot;}return null},[I,v,$,X,U,Q]),xe=()=&gt;{f(&quot;&quot;),m(&quot;&quot;),x(&quot;&quot;),y(&quot;&quot;),A(&quot;&quot;),_(!1),V(&quot;mobile_money&quot;),te(&quot;&quot;)},pe=()=&gt;{xe(),T(&quot;form&quot;),E(null),k(null),D(null),Y(null),r()},ue=async()=&gt;{const Oe=parseInt(S.replace(/\s/g,&quot;&quot;),10);if(!c||isNaN(Oe)||Oe&lt;1){B(&quot;Veuillez sélectionner un événement et indiquer un montant valide.&quot;);return}if(!v&amp;&amp;(!p.trim()||!d.trim()||!h.trim())){B(&quot;Veuillez remplir le nom, le prénom et l&#039;email (ou cocher « Rester anonyme »).&quot;);return}if(!v&amp;&amp;p.trim()&amp;&amp;!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p)){B(&quot;Veuillez indiquer une adresse email valide.&quot;);return}q(!0),B(null);try{const Ve=v?null:`${d.trim()} ${h.trim()}`.trim(),Qe=v?null:p.trim()||null,Ze=g.trim()?`Téléphone : ${g.trim()}`:void 0;await Yx.storePublic({event_id:Number(c),donor_name:Ve||null,donor_email:Qe||null,amount:Oe,currency:&quot;XOF&quot;,method:I,paid_at:new Date().toISOString(),notes:Ze||null}),xe(),pe(),t?.(),n(&quot;/soutenir/merci&quot;,{state:{emailSent:!!Qe,mode:&quot;declaration&quot;}})}catch(Ve){Ve instanceof kt?B(Ve.data?.message??Ve.message??&quot;Une erreur est survenue.&quot;):B(&quot;Une erreur est survenue.&quot;)}finally{q(!1)}},we=async Oe=&gt;{if(Oe.preventDefault(),B(null),!fe){B(ie?.disabled_message?.trim()||&quot;Les paiements en ligne (SycaPay) ne sont pas encore ouverts. Veuillez choisir une déclaration manuelle ou réessayer ultérieurement.&quot;);return}const Ve=parseInt(S.replace(/\s/g,&quot;&quot;),10);if(!c||isNaN(Ve)||Ve&lt;1){B(&quot;Veuillez sélectionner un événement et indiquer un montant valide.&quot;);return}if(v){B(&quot;Le paiement SycaPay en ligne nécessite le nom et l’email (décochez « Anonyme »).&quot;);return}if(!p.trim()||!d.trim()||!h.trim()){B(&quot;Veuillez remplir le nom, le prénom et l’email.&quot;);return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p)){B(&quot;Veuillez indiquer une adresse email valide.&quot;);return}const Qe=ge;if(Qe){B(Qe);return}q(!0);try{const Ze=`${d.trim()} ${h.trim()}`.trim(),Je=p.trim(),tt=(await Yx.storePublic({event_id:Number(c),donor_name:Ze,donor_email:Je,amount:Ve,currency:&quot;XOF&quot;,method:&quot;sycapay&quot;,notes:g.trim()?`Contact : ${g.trim()}`:null})).id,nt={operator:$,phone:i0(X,U),country:U,donor_email:Je,idempotency_key:typeof crypto&lt;&quot;u&quot;&amp;&amp;crypto.randomUUID?crypto.randomUUID():void 0};es(U,$)&amp;&amp;(nt.otp=Q.replace(/\D/g,&quot;&quot;));const Me=await Yx.initPublicSycaPay(tt,nt),st=Me.data;if(st.status===&quot;failed&quot;||st.error){B(h2(st,Me.message));return}E(tt),k(st.payment_id),C(Je),D(st),T(&quot;sycapay_tracking&quot;)}catch(Ze){Ze instanceof kt?B(p$(Ze)):B(&quot;Une erreur est survenue.&quot;)}finally{q(!1)}},ke=Oe=&gt;{if(Oe.preventDefault(),I===&quot;sycapay&quot;){we(Oe);return}ue()},De=async()=&gt;{if(L){ne(!0),B(null);try{await m$(L,N)}catch(Oe){Oe instanceof kt?B(Oe.data?.message??Oe.message??&quot;Téléchargement impossible.&quot;):B(&quot;Téléchargement impossible.&quot;)}finally{ne(!1)}}};if(!e)return null;const Le=I===&quot;sycapay&quot;,ze=!Le;return i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 z-50 overflow-y-auto&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex min-h-full items-center justify-center p-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;fixed inset-0 bg-black/50 transition-opacity&quot;,&quot;aria-hidden&quot;:&quot;true&quot;,onClick:()=&gt;!F&amp;&amp;K===&quot;form&quot;&amp;&amp;pe()}),i.jsxs(&quot;div&quot;,{className:&quot;relative bg-white rounded-xl shadow-xl max-w-lg w-full p-6 max-h-[90vh] overflow-y-auto&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between mb-4&quot;,children:[i.jsxs(&quot;h3&quot;,{className:&quot;text-xl font-semibold text-ink-900 flex items-center gap-2&quot;,children:[i.jsx(a2,{className:&quot;w-5 h-5 text-brand-700&quot;}),K===&quot;sycapay_tracking&quot;?&quot;Paiement de votre don&quot;:&quot;Faire un don&quot;]}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;!F&amp;&amp;pe(),className:&quot;text-ink-400 hover:text-ink-600 transition-colors p-1&quot;,&quot;aria-label&quot;:&quot;Fermer&quot;,children:i.jsx(gr,{size:22})})]}),K===&quot;sycapay_tracking&quot;&amp;&amp;L!==null&amp;&amp;j!==null&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-emerald-200 bg-emerald-50/80 px-3 py-2.5 text-sm text-ink-800&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium&quot;,children:&quot;Don enregistré — paiement en cours de traitement&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 text-ink-700&quot;,children:[&quot;Le montant de &quot;,i.jsxs(&quot;strong&quot;,{children:[P?.amount?.toLocaleString(&quot;fr-FR&quot;),&quot; FCFA&quot;]}),&quot; sera confirmé uniquement après validation par le prestataire Mobile Money. Ce n’est&quot;,&quot; &quot;,i.jsx(&quot;strong&quot;,{children:&quot;pas&quot;}),&quot; un succès définitif tant que le statut ci-dessous n’indique pas « confirmé ».&quot;]})]}),P?.redirect_url&amp;&amp;i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;primary&quot;,className:&quot;w-full&quot;,onClick:()=&gt;window.location.assign(P.redirect_url),children:&quot;Continuer vers le paiement&quot;}),i.jsx(Ooe,{donationId:L,paymentId:j,donorEmail:N,summaryHint:&quot;La confirmation affichée provient du serveur (agrégateur), pas de cette page seule.&quot;,onStatusUpdate:Y}),z?.status===&quot;confirmed&quot;&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;rounded-lg border border-green-200 bg-green-50 px-3 py-3 space-y-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-green-900&quot;,children:&quot;Paiement confirmé — merci pour votre don !&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,className:&quot;w-full text-sm&quot;,disabled:Z,onClick:()=&gt;{De()},children:Z?&quot;Téléchargement…&quot;:&quot;Télécharger le reçu fiscal (PDF)&quot;})]}),z?.status===&quot;failed&quot;&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:&quot;Le paiement a échoué ou a été refusé. Vous pouvez fermer cette fenêtre et réessayer avec un nouveau don si vous le souhaitez.&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;ghost&quot;,className:&quot;w-full&quot;,onClick:pe,children:&quot;Fermer&quot;})]}),K===&quot;form&quot;&amp;&amp;i.jsxs(i.Fragment,{children:[ze&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mb-5 p-4 bg-amber-50 border border-amber-200 rounded-lg text-amber-900 text-sm&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium mb-1&quot;,children:&quot;Paiement hors système (déclaration ici)&quot;}),i.jsx(&quot;p&quot;,{children:&quot;Ces options enregistrent votre intention de don pour validation par la commission finance. Le paiement direct en ligne est disponible via « Mobile Money en ligne (SycaPay) ».&quot;})]}),Le&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mb-5 p-4 bg-emerald-50 border border-emerald-200 rounded-lg text-emerald-950 text-sm&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium mb-1&quot;,children:&quot;Mobile Money en ligne (SycaPay)&quot;}),i.jsxs(&quot;p&quot;,{children:[&quot;Ce parcours est &quot;,i.jsx(&quot;strong&quot;,{children:&quot;distinct&quot;}),&quot; du paiement d’inscription au sommet. Après validation, vous pourrez télécharger votre &quot;,i.jsx(&quot;strong&quot;,{children:&quot;reçu de don&quot;}),&quot; ici.&quot;]})]}),i.jsxs(&quot;form&quot;,{onSubmit:ke,className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Événement soutenu&quot;}),i.jsxs(&quot;select&quot;,{value:c,onChange:Oe=&gt;a(Oe.target.value===&quot;&quot;?&quot;&quot;:Number(Oe.target.value)),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-600 focus:border-brand-500&quot;,required:!0,disabled:l,children:[l&amp;&amp;i.jsx(&quot;option&quot;,{children:&quot;Chargement...&quot;}),!l&amp;&amp;o.length===0&amp;&amp;i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Aucun événement&quot;}),!l&amp;&amp;o.map(Oe=&gt;i.jsx(&quot;option&quot;,{value:Oe.id,children:Oe.name},Oe.id))]})]}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-2 gap-3&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Prénom&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:d,onChange:Oe=&gt;f(Oe.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-600 focus:border-brand-500&quot;,placeholder:&quot;Prénom&quot;,disabled:v})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Nom&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:h,onChange:Oe=&gt;m(Oe.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-600 focus:border-brand-500&quot;,placeholder:&quot;Nom&quot;,disabled:v})]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Email&quot;}),i.jsx(&quot;input&quot;,{type:&quot;email&quot;,value:p,onChange:Oe=&gt;x(Oe.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-600 focus:border-brand-500&quot;,placeholder:&quot;votre@email.fr&quot;,disabled:v})]}),i.jsxs(&quot;div&quot;,{children:[i.jsxs(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:[&quot;Téléphone &quot;,Le?&quot;(contact, optionnel)&quot;:&quot;(optionnel)&quot;]}),i.jsx(&quot;input&quot;,{type:&quot;tel&quot;,value:g,onChange:Oe=&gt;y(Oe.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-600 focus:border-brand-500&quot;,placeholder:&quot;+226 …&quot;})]}),i.jsxs(&quot;label&quot;,{className:&quot;flex items-center gap-2 cursor-pointer&quot;,children:[i.jsx(&quot;input&quot;,{type:&quot;checkbox&quot;,checked:v,onChange:Oe=&gt;_(Oe.target.checked),className:&quot;rounded border-gray-300 text-brand-600 focus:ring-brand-600&quot;}),i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Rester anonyme (mon nom ne sera pas cité)&quot;})]}),v&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-800&quot;,children:&quot;L’option « Payer maintenant (SycaPay) » nécessite nom et email : elle est indisponible en mode anonyme.&quot;}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Montant (XOF)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,inputMode:&quot;numeric&quot;,value:S,onChange:Oe=&gt;A(Oe.target.value.replace(/\D/g,&quot;&quot;)),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-600 focus:border-brand-500&quot;,placeholder:&quot;Ex. 10000&quot;,required:!0})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-sm font-medium text-ink-700 mb-1&quot;,children:&quot;Mode de participation&quot;}),i.jsxs(&quot;select&quot;,{value:I,onChange:Oe=&gt;V(Oe.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-600 focus:border-brand-500&quot;,children:[Toe.map(Oe=&gt;i.jsx(&quot;option&quot;,{value:Oe.value,children:Oe.label},Oe.value)),i.jsxs(&quot;option&quot;,{value:&quot;sycapay&quot;,disabled:!fe,children:[&quot;Mobile Money en ligne (SycaPay)&quot;,fe?&quot;&quot;:&quot; — bientôt disponible&quot;]})]})]}),!fe&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-amber-900 rounded-md border border-amber-200 bg-amber-50/60 px-3 py-2&quot;,children:ie?.disabled_message?.trim()||&quot;Les paiements en ligne (SycaPay) ne sont pas encore ouverts. Vous pouvez faire une déclaration manuelle en attendant.&quot;}),Le&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-3 rounded-lg border border-gray-200 bg-gray-50/60 p-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-800&quot;,children:&quot;Mobile Money — SycaPay&quot;}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-xs font-medium text-ink-600 mb-1&quot;,children:&quot;Pays&quot;}),i.jsx(&quot;select&quot;,{value:U,onChange:Oe=&gt;J(Oe.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:p2.map(Oe=&gt;i.jsxs(&quot;option&quot;,{value:Oe,children:[Ji[Oe].label,&quot; (&quot;,Oe,&quot;)&quot;]},Oe))})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-xs font-medium text-ink-600 mb-1&quot;,children:&quot;Opérateur&quot;}),i.jsxs(&quot;select&quot;,{value:$,onChange:Oe=&gt;R(Oe.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;— Choisir —&quot;}),le.operators.map(Oe=&gt;i.jsx(&quot;option&quot;,{value:Oe.apiValue,children:Oe.label},Oe.apiValue))]})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-xs font-medium text-ink-600 mb-1&quot;,children:&quot;Numéro Mobile Money (paiement)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;tel&quot;,value:X,onChange:Oe=&gt;re(Oe.target.value),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm&quot;,placeholder:le.phonePlaceholder,autoComplete:&quot;tel&quot;})]}),es(U,$)&amp;&amp;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;block text-xs font-medium text-ink-600 mb-1&quot;,children:&quot;Code OTP Orange (sandbox)&quot;}),i.jsx(&quot;input&quot;,{type:&quot;text&quot;,inputMode:&quot;numeric&quot;,autoComplete:&quot;one-time-code&quot;,value:Q,onChange:Oe=&gt;te(Oe.target.value.replace(/[^\d\s]/g,&quot;&quot;)),className:&quot;w-full px-3 py-2 border border-gray-300 rounded-lg text-sm tracking-widest&quot;,placeholder:&quot;Code doc SycaPay&quot;})]})]}),H&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;p-3 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm&quot;,children:[i.jsx(&quot;p&quot;,{children:H}),H.includes(&quot;connecter&quot;)&amp;&amp;i.jsx(ut,{to:&quot;/login&quot;,className:&quot;mt-2 inline-block text-brand-700 font-medium hover:underline&quot;,children:&quot;Aller à la page de connexion →&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-3 pt-2&quot;,children:[i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,onClick:pe,className:&quot;flex-1&quot;,children:&quot;Annuler&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,variant:&quot;primary&quot;,disabled:F,className:&quot;flex-1&quot;,children:F?&quot;Envoi…&quot;:Le?&quot;Créer le don et lancer le paiement&quot;:&quot;Déclarer mon intention de don&quot;})]})]})]})]})]})})}function Roe(){const[e,r]=O.useState(!1);return i.jsxs(El,{children:[i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 py-12 px-4 sm:px-6 lg:px-8&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-3xl mx-auto&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-8&quot;,children:[i.jsx(ut,{to:&quot;/&quot;,className:&quot;text-sm text-brand-700 hover:text-brand-900 font-medium mb-4 inline-block&quot;,children:&quot;← Retour à l&#039;accueil&quot;}),i.jsx(&quot;h1&quot;,{className:&quot;text-3xl font-bold text-ink-900 mb-2&quot;,children:&quot;Soutenir&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-600&quot;,children:&quot;Votre soutien permet de porter la mission du Sommet Francophone et de former des leaders pour l&#039;évangélisation.&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-8&quot;,children:[i.jsx(wt,{children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-start gap-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex-shrink-0 w-12 h-12 rounded-xl bg-brand-100 flex items-center justify-center&quot;,children:i.jsx(a2,{className:&quot;w-6 h-6 text-brand-700&quot;})}),i.jsxs(&quot;div&quot;,{className:&quot;flex-1&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-xl font-semibold text-ink-900 mb-2&quot;,children:&quot;Faire un don&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-600 mb-4&quot;,children:&quot;Les dons permettent de soutenir les participants, les frais d&#039;organisation et le développement des programmes. Le paiement en ligne n&#039;est pas encore disponible : vous pouvez déclarer votre intention de don et serez contacté dès que les moyens de paiement le seront.&quot;}),i.jsx(Ae,{variant:&quot;primary&quot;,onClick:()=&gt;r(!0),className:&quot;mt-2&quot;,children:&quot;Déclarer un don&quot;})]})]})}),i.jsx(wt,{children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-start gap-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex-shrink-0 w-12 h-12 rounded-xl bg-brand-100 flex items-center justify-center&quot;,children:i.jsx(nB,{className:&quot;w-6 h-6 text-brand-700&quot;})}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h2&quot;,{className:&quot;text-xl font-semibold text-ink-900 mb-2&quot;,children:&quot;Autres façons de nous soutenir&quot;}),i.jsxs(&quot;ul&quot;,{className:&quot;text-ink-600 space-y-2 list-disc list-inside&quot;,children:[i.jsx(&quot;li&quot;,{children:&quot;Partager l&#039;événement autour de vous&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Prier pour les participants et l&#039;équipe&quot;}),i.jsx(&quot;li&quot;,{children:&quot;Proposer votre aide bénévole (contact ci-dessous)&quot;})]})]})]})}),i.jsx(wt,{children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-start gap-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex-shrink-0 w-12 h-12 rounded-xl bg-brand-100 flex items-center justify-center&quot;,children:i.jsx(Aa,{className:&quot;w-6 h-6 text-brand-700&quot;})}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h2&quot;,{className:&quot;text-xl font-semibold text-ink-900 mb-2&quot;,children:&quot;Nous contacter&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-600 mb-4&quot;,children:&quot;Pour toute question relative aux dons ou au soutien, n&#039;hésitez pas à nous écrire. L&#039;équipe du Sommet Francophone vous répondra.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;flex flex-col gap-2 text-ink-600&quot;,children:[i.jsxs(&quot;a&quot;,{href:&quot;mailto:communication@sommetfrancophone.org&quot;,className:&quot;inline-flex items-center gap-2 hover:text-brand-700 transition-colors&quot;,children:[i.jsx(Aa,{className:&quot;w-4 h-4&quot;}),&quot;communication@sommetfrancophone.org&quot;]}),i.jsxs(&quot;a&quot;,{href:&quot;tel:+2250554275725&quot;,className:&quot;inline-flex items-center gap-2 hover:text-brand-700 transition-colors&quot;,children:[i.jsx(Ed,{className:&quot;w-4 h-4&quot;}),&quot;+225 05 5427 5725 (WhatsApp)&quot;]})]})]})]})})]})]})}),i.jsx(Ioe,{isOpen:e,onClose:()=&gt;r(!1),onSuccess:()=&gt;r(!1)})]})}function Doe(){const r=ji().state?.emailSent===!0;return i.jsx(El,{children:i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 py-12 px-4 sm:px-6 lg:px-8 flex items-center justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;max-w-xl w-full&quot;,children:i.jsxs(wt,{className:&quot;text-center py-10 px-6&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;flex justify-center mb-6&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;w-16 h-16 rounded-full bg-green-100 flex items-center justify-center&quot;,children:i.jsx(a2,{className:&quot;w-8 h-8 text-green-600&quot;})})}),i.jsx(&quot;h1&quot;,{className:&quot;text-2xl font-bold text-ink-900 mb-3&quot;,children:&quot;Déclaration prise en compte&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-ink-600 mb-4&quot;,children:&quot;Votre intention de don a bien été enregistrée. Vous serez contacté dès que les moyens de paiement en ligne seront disponibles.&quot;}),r&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-ink-600 mb-8 text-sm&quot;,children:&quot;Un email de confirmation vous a été envoyé à l&#039;adresse que vous avez indiquée.&quot;}),!r&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;mb-8&quot;}),i.jsxs(ut,{to:&quot;/&quot;,className:&quot;inline-flex items-center gap-2 px-6 py-3 rounded-none font-medium transition-all duration-200 uppercase tracking-wider border-2 bg-brand-700 text-white border-brand-900 hover:bg-brand-900 font-semibold&quot;,children:[i.jsx(Wd,{size:18}),&quot;Retour à l&#039;accueil&quot;]})]})})})})}const Loe=[{to:&quot;/app&quot;,label:&quot;Accueil&quot;,icon:Wd,exact:!0},{to:&quot;/app/programme&quot;,label:&quot;Programme&quot;,icon:JC},{to:&quot;/app/ateliers&quot;,label:&quot;Ateliers&quot;,icon:e7},{to:&quot;/app/annonces&quot;,label:&quot;Annonces&quot;,icon:r7},{to:&quot;/app/infos-pratiques&quot;,label:&quot;Infos&quot;,icon:fu}];function Foe(e,r,t){return t?e===r:e.startsWith(r)}function Boe(){const e=ji();return i.jsx(&quot;nav&quot;,{className:&quot;fixed bottom-0 left-0 right-0 z-40 border-t border-gray-200 bg-white/95 backdrop-blur supports-[backdrop-filter]:bg-white/80 lg:hidden&quot;,style:{paddingBottom:&quot;env(safe-area-inset-bottom)&quot;},&quot;aria-label&quot;:&quot;Navigation principale App Sommet&quot;,children:i.jsx(&quot;ul&quot;,{className:&quot;mx-auto flex max-w-md items-stretch justify-between px-2 pb-2 pt-2&quot;,children:Loe.map(r=&gt;{const t=r.icon;return i.jsx(&quot;li&quot;,{className:&quot;flex-1&quot;,children:i.jsx(ut,{to:r.to,className:&quot;flex justify-center&quot;,children:(()=&gt;{const n=Foe(e.pathname,r.to,r.exact);return i.jsxs(&quot;span&quot;,{className:`flex w-full max-w-[72px] flex-col items-center rounded-xl px-2 py-1.5 text-[11px] font-medium ${n?&quot;text-brand-700&quot;:&quot;text-ink-500&quot;}`,&quot;aria-current&quot;:n?&quot;page&quot;:void 0,children:[i.jsx(t,{size:18,strokeWidth:2.1}),i.jsx(&quot;span&quot;,{className:&quot;mt-1&quot;,children:r.label}),i.jsx(&quot;span&quot;,{className:`mt-1 h-0.5 w-6 rounded-full ${n?&quot;bg-brand-700&quot;:&quot;bg-transparent&quot;}`})]})})()})},r.to)})})})}const G6=[{to:&quot;/app&quot;,label:&quot;Accueil&quot;,exact:!0,icon:Wd},{to:&quot;/app/programme&quot;,label:&quot;Programme&quot;,icon:JC},{to:&quot;/app/ateliers&quot;,label:&quot;Ateliers&quot;,icon:e7},{to:&quot;/app/annonces&quot;,label:&quot;Annonces&quot;,icon:r7},{to:&quot;/app/infos-pratiques&quot;,label:&quot;Infos&quot;,icon:fu}];function Y6(e,r,t){return t?e===r:e.startsWith(r)}function $oe(){const{isAuthenticated:e,loading:r,user:t}=Ts(),n=ji(),o=G6.find(l=&gt;Y6(n.pathname,l.to,l.exact))?.label??&quot;Tableau de bord&quot;,s=o===&quot;Accueil&quot;?&quot;Tableau de bord événementiel et actions clés&quot;:o===&quot;Programme&quot;?&quot;Sessions, horaires et ressources&quot;:o===&quot;Ateliers&quot;?&quot;Préparation et contributions par délégation&quot;:o===&quot;Annonces&quot;?&quot;Mises à jour et informations officielles&quot;:&quot;Informations pratiques pour votre participation&quot;;return r?i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 px-4 py-8 sm:px-6 lg:px-8&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;mx-auto max-w-7xl animate-pulse space-y-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;h-8 w-3/4 rounded bg-gray-200&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-24 rounded-xl bg-gray-200&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-24 rounded-xl bg-gray-200&quot;})]})}):e?t?.summit_companion_enabled?i.jsxs(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50&quot;,children:[i.jsx(&quot;header&quot;,{className:&quot;sticky top-0 z-40 border-b border-gray-200 bg-white/95 backdrop-blur&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex w-full items-center justify-between px-4 py-3 sm:px-6 lg:px-8&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs uppercase tracking-[0.16em] text-ink-500&quot;,children:&quot;Sommet Francophone&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Portail participant&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex items-center gap-4&quot;,children:[i.jsx(&quot;span&quot;,{className:&quot;hidden text-xs text-ink-500 lg:inline&quot;,children:&quot;FR&quot;}),i.jsx(ut,{to:&quot;/account&quot;,className:&quot;text-sm font-medium text-brand-700 hover:text-brand-900&quot;,children:&quot;Mon espace&quot;})]})]})}),i.jsxs(&quot;div&quot;,{className:&quot;w-full lg:grid lg:grid-cols-[280px_minmax(0,1fr)]&quot;,children:[i.jsx(&quot;aside&quot;,{className:&quot;hidden lg:block&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;sticky top-[69px] flex h-[calc(100vh-69px)] flex-col border-r border-gray-200 bg-white px-4 py-5&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs uppercase tracking-[0.16em] text-ink-500&quot;,children:&quot;Navigation&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-lg font-semibold text-ink-900&quot;,children:&quot;Compagnon du Sommet&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:&quot;Expérience événementielle&quot;})]}),i.jsx(&quot;nav&quot;,{className:&quot;mt-6 space-y-1&quot;,&quot;aria-label&quot;:&quot;Navigation principale desktop&quot;,children:G6.map(l=&gt;{const u=Y6(n.pathname,l.to,l.exact),c=l.icon;return i.jsxs(ut,{to:l.to,className:`flex items-center gap-2 rounded-xl px-3 py-2.5 text-sm font-medium transition-colors ${u?&quot;bg-brand-50 text-brand-700 shadow-[inset_3px_0_0_rgba(114,47,55,0.9),inset_0_0_0_1px_rgba(114,47,55,0.18)]&quot;:&quot;text-ink-600 hover:bg-gray-100 hover:text-ink-900&quot;}`,children:[i.jsx(c,{size:16,className:u?&quot;text-brand-700&quot;:&quot;text-ink-500&quot;}),l.label]},l.to)})}),i.jsx(&quot;div&quot;,{className:&quot;mt-auto border-t border-gray-200 pt-4&quot;,children:i.jsxs(ut,{to:&quot;/account&quot;,className:&quot;flex items-center gap-2 rounded-xl px-3 py-2.5 text-sm font-medium text-ink-700 transition-colors hover:bg-gray-100 hover:text-ink-900&quot;,children:[i.jsx($F,{size:16}),&quot;Mon espace&quot;]})})]})}),i.jsxs(&quot;main&quot;,{className:&quot;min-w-0 px-4 pb-[calc(96px+env(safe-area-inset-bottom))] pt-4 sm:px-6 lg:px-8 lg:pb-8 lg:pt-6&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-5 hidden items-center justify-between lg:flex&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;min-w-0&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-2xl font-semibold text-ink-900&quot;,children:o===&quot;Accueil&quot;?&quot;Tableau de bord&quot;:o}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-500&quot;,children:s})]}),i.jsxs(&quot;div&quot;,{className:&quot;text-right&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:&quot;Participant&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-ink-800&quot;,children:t?.name??&quot;Compte connecté&quot;})]})]}),i.jsx(f8,{})]})]}),i.jsx(Boe,{})]}):i.jsx(Kn,{to:&quot;/account&quot;,replace:!0}):i.jsx(Kn,{to:&quot;/login&quot;,replace:!0})}const Z6={before:&quot;Avant le Sommet&quot;,during:&quot;Pendant le Sommet&quot;,after:&quot;Après le Sommet&quot;};function zoe(e){return e===&quot;before&quot;?&quot;Préparez votre participation et vos contributions de délégation.&quot;:e===&quot;after&quot;?&quot;Retrouvez les ressources finales et le suivi post-événement.&quot;:&quot;Suivez les sessions en direct et les annonces importantes.&quot;}function Uoe(e){const r=e.toLowerCase();return r.includes(&quot;plénière&quot;)||r.includes(&quot;pleniere&quot;)?&quot;Plénière&quot;:r.includes(&quot;table ronde&quot;)?&quot;Table ronde&quot;:r.includes(&quot;atelier&quot;)?&quot;Atelier&quot;:&quot;Session&quot;}function Voe(){const[e,r]=O.useState(null),[t,n]=O.useState(!0),[o,s]=O.useState(null),l=()=&gt;{n(!0),s(null),js.getHome().then(r).catch(d=&gt;{if(d instanceof kt){s(d.data?.message??&quot;Impossible de charger l accueil.&quot;);return}s(&quot;Impossible de charger l accueil.&quot;)}).finally(()=&gt;n(!1))};if(O.useEffect(()=&gt;{l()},[]),t)return i.jsxs(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;h-20 animate-pulse rounded-xl bg-white&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-28 animate-pulse rounded-xl bg-white&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-28 animate-pulse rounded-xl bg-white&quot;})]});if(o||!e)return i.jsxs(wt,{children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:o??&quot;Erreur de chargement.&quot;}),i.jsx(Ae,{className:&quot;mt-3 w-full&quot;,onClick:l,children:&quot;Reessayer&quot;})]});const u=e.event.starts_at?new Date(e.event.starts_at):null,c=new Date,a=u&amp;&amp;e.phase===&quot;before&quot;?Math.max(0,Math.ceil((u.getTime()-c.getTime())/864e5)):null;return i.jsx(&quot;div&quot;,{className:&quot;space-y-4 lg:space-y-6&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-4 xl:grid-cols-[minmax(0,1fr)_400px] xl:gap-6&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 lg:space-y-6&quot;,children:[i.jsx(wt,{className:&quot;overflow-hidden rounded-2xl p-0&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;bg-gradient-to-br from-brand-700 via-brand-800 to-ink-900 px-5 py-5 text-white&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-start justify-between gap-3&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs uppercase tracking-[0.14em] text-white/80&quot;,children:&quot;Carte événement&quot;}),i.jsx(&quot;h1&quot;,{className:&quot;mt-1 text-2xl font-semibold leading-tight&quot;,children:e.event.name}),i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-sm text-white/85&quot;,children:[Z6[e.phase],&quot; — &quot;,zoe(e.phase)]})]}),i.jsx(&quot;span&quot;,{className:&quot;rounded-full bg-white/15 px-3 py-1 text-xs font-medium&quot;,children:Z6[e.phase]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl bg-white/10 px-3 py-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs text-white/80&quot;,children:&quot;Dates&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium&quot;,children:u?u.toLocaleDateString(&quot;fr-FR&quot;,{day:&quot;2-digit&quot;,month:&quot;long&quot;,year:&quot;numeric&quot;}):&quot;À confirmer&quot;})]}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl bg-white/10 px-3 py-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs text-white/80&quot;,children:&quot;Compte à rebours&quot;}),i.jsx(&quot;p&quot;,{className:&quot;text-base font-semibold&quot;,children:a!==null?`${a} jour${a&gt;1?&quot;s&quot;:&quot;&quot;} avant le début`:&quot;Sommet en cours / terminé&quot;})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;mt-4 flex flex-wrap gap-2&quot;,children:[i.jsx(ut,{to:&quot;/app/ateliers&quot;,className:&quot;inline-flex items-center gap-1 rounded-xl border border-white/70 bg-amber-100 px-3 py-2 text-sm font-semibold text-ink-900 shadow-sm hover:bg-amber-50&quot;,children:&quot;Préparer mes ateliers&quot;}),i.jsx(ut,{to:&quot;/app/programme&quot;,className:&quot;inline-flex items-center gap-1 rounded-xl border border-white/40 bg-white/10 px-3 py-2 text-sm font-medium text-white&quot;,children:&quot;Voir le programme&quot;})]})]})}),i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;mb-2 flex items-center justify-between&quot;,children:i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Ma préparation&quot;})}),i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-600&quot;,children:&quot;Planifiez vos actions clés avant le Sommet et suivez votre progression.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mt-3 grid grid-cols-1 gap-2 md:grid-cols-2&quot;,children:[i.jsxs(ut,{to:&quot;/app/ateliers&quot;,className:&quot;inline-flex items-center justify-between rounded-xl border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-ink-800 hover:bg-gray-50&quot;,children:[&quot;Préparer mes ateliers &quot;,i.jsx(Sa,{size:14})]}),i.jsxs(ut,{to:&quot;/app/ateliers&quot;,className:&quot;inline-flex items-center justify-between rounded-xl border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-ink-800 hover:bg-gray-50&quot;,children:[&quot;Compléter mes contributions &quot;,i.jsx(Sa,{size:14})]}),i.jsxs(ut,{to:&quot;/app/infos-pratiques&quot;,className:&quot;inline-flex items-center justify-between rounded-xl border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-ink-800 hover:bg-gray-50&quot;,children:[&quot;Consulter les infos pratiques &quot;,i.jsx(Sa,{size:14})]}),i.jsxs(ut,{to:&quot;/app/programme&quot;,className:&quot;inline-flex items-center justify-between rounded-xl border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-ink-800 hover:bg-gray-50&quot;,children:[&quot;Voir le programme prévisionnel &quot;,i.jsx(Sa,{size:14})]})]})]}),i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-2 flex items-center justify-between&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Prochaines sessions&quot;}),i.jsx(ut,{to:&quot;/app/programme&quot;,className:&quot;text-sm font-medium text-brand-700&quot;,children:&quot;Voir tout&quot;})]}),e.next_sessions.length===0?i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Le programme sera disponible prochainement.&quot;}):i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-2 md:grid-cols-2&quot;,children:e.next_sessions.map(d=&gt;i.jsxs(ut,{to:`/app/programme/${d.id}`,className:&quot;block rounded-xl border border-gray-200 p-3 hover:bg-gray-50&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between gap-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:d.title}),i.jsx(&quot;span&quot;,{className:&quot;rounded-full bg-brand-50 px-2 py-0.5 text-[11px] font-medium text-brand-700&quot;,children:Uoe(d.title)})]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 flex items-center gap-1 text-xs font-medium text-ink-600&quot;,children:[i.jsx(r0,{size:13}),new Date(d.starts_at).toLocaleTimeString(&quot;fr-FR&quot;,{hour:&quot;2-digit&quot;,minute:&quot;2-digit&quot;}),d.location?` · ${d.location}`:&quot;&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-xs font-medium text-brand-700&quot;,children:&quot;Voir détail&quot;})]},d.id))})]}),i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-2 flex items-center justify-between&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Annonces importantes&quot;}),i.jsx(ut,{to:&quot;/app/annonces&quot;,className:&quot;text-sm font-medium text-brand-700&quot;,children:&quot;Toutes les annonces&quot;})]}),e.announcements.length===0?i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Aucune annonce pour le moment.&quot;}):i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:e.announcements.map(d=&gt;i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-200 p-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:d.title}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-700&quot;,children:d.content})]},d.id))})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 lg:space-y-6&quot;,children:[i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-2 flex items-center justify-between&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Contributions&quot;}),i.jsx(ut,{to:&quot;/app/ateliers&quot;,className:&quot;text-sm font-medium text-brand-700&quot;,children:&quot;Ateliers&quot;})]}),e.pending_contributions.length===0?i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl border border-dashed border-gray-300 bg-gray-50 px-3 py-3&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Aucune contribution en brouillon.&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:&quot;Préparez vos réponses aux questions des ateliers pour gagner du temps.&quot;}),i.jsxs(ut,{to:&quot;/app/ateliers&quot;,className:&quot;mt-2 inline-flex items-center gap-1 text-sm font-medium text-brand-700&quot;,children:[&quot;Préparer mes ateliers &quot;,i.jsx(Sa,{size:14})]})]}):i.jsx(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:e.pending_contributions.map(d=&gt;i.jsxs(ut,{to:`/app/ateliers/${d.workshop_id}`,className:&quot;block rounded-xl border border-amber-200 bg-amber-50 px-3 py-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-medium text-amber-900&quot;,children:d.workshop_title??&quot;Atelier&quot;}),i.jsxs(&quot;p&quot;,{className:&quot;flex items-center gap-1 text-xs text-amber-800&quot;,children:[i.jsx(WF,{size:13}),&quot;Dernière modification : &quot;,d.updated_at?new Date(d.updated_at).toLocaleString(&quot;fr-FR&quot;):&quot;—&quot;]})]},d.id))})]}),i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Points clés&quot;}),i.jsx(&quot;ul&quot;,{className:&quot;mt-2 space-y-2&quot;,children:e.highlights.map((d,f)=&gt;i.jsx(&quot;li&quot;,{className:&quot;rounded-lg bg-brand-50 px-3 py-2 text-sm text-ink-700&quot;,children:d},f))})]}),i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Accès rapide&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mt-2 grid grid-cols-1 gap-2&quot;,children:[i.jsx(ut,{to:&quot;/app/infos-pratiques&quot;,className:&quot;rounded-xl border border-gray-200 px-3 py-2 text-sm font-medium text-ink-700 hover:bg-gray-50&quot;,children:&quot;Infos pratiques&quot;}),i.jsx(ut,{to:&quot;/app/programme&quot;,className:&quot;rounded-xl border border-gray-200 px-3 py-2 text-sm font-medium text-ink-700 hover:bg-gray-50&quot;,children:&quot;Programme complet&quot;}),i.jsx(ut,{to:&quot;/app/ateliers&quot;,className:&quot;rounded-xl border border-gray-200 px-3 py-2 text-sm font-medium text-ink-700 hover:bg-gray-50&quot;,children:&quot;Mes ateliers&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;rounded-xl bg-brand-50 px-3 py-2 text-xs text-brand-900&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;flex items-center gap-1 font-medium&quot;,children:[i.jsx(s7,{size:13}),&quot; Conseil&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;mt-1&quot;,children:&quot;Commencez par vos ateliers préparatoires pour mieux profiter des sessions.&quot;})]})]})]})]})]})})}function qoe(){const[e,r]=O.useState([]),[t,n]=O.useState(!0),[o,s]=O.useState(null),l=()=&gt;{n(!0),s(null),js.listProgramme().then(r).catch(c=&gt;{if(c instanceof kt){s(c.data?.message??&quot;Chargement impossible.&quot;);return}s(&quot;Chargement impossible.&quot;)}).finally(()=&gt;n(!1))};O.useEffect(()=&gt;{l()},[]);const u=O.useMemo(()=&gt;{const c=new Set;return e.forEach(a=&gt;{a.track&amp;&amp;c.add(a.track)}),Array.from(c)},[e]);return i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h1&quot;,{className:&quot;text-2xl font-semibold text-ink-900&quot;,children:&quot;Programme&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-500&quot;,children:&quot;Sessions publiées et ressources associées.&quot;})]}),t&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;h-24 animate-pulse rounded-xl bg-white&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-24 animate-pulse rounded-xl bg-white&quot;})]}),!t&amp;&amp;o&amp;&amp;i.jsxs(wt,{className:&quot;p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:o}),i.jsx(Ae,{className:&quot;mt-3 w-full&quot;,onClick:l,children:&quot;Reessayer&quot;})]}),!t&amp;&amp;!o&amp;&amp;e.length===0&amp;&amp;i.jsx(wt,{className:&quot;p-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Aucune session publiee pour le moment.&quot;})}),!t&amp;&amp;!o&amp;&amp;e.length&gt;0&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;hidden rounded-2xl border border-gray-200 bg-white p-3 shadow-[0_6px_18px_rgba(15,23,42,0.05)] lg:block&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-xs uppercase tracking-[0.12em] text-ink-500&quot;,children:&quot;Tracks visibles&quot;}),i.jsx(&quot;div&quot;,{className:&quot;mt-2 flex flex-wrap gap-2&quot;,children:u.length===0?i.jsx(&quot;span&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Aucun track specifique&quot;}):u.map(c=&gt;i.jsx(&quot;span&quot;,{className:&quot;rounded-full bg-brand-50 px-2.5 py-1 text-xs font-medium text-brand-700&quot;,children:c},c))})]}),i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-3 xl:grid-cols-2&quot;,children:e.map(c=&gt;i.jsx(ut,{to:`/app/programme/${c.id}`,className:&quot;block&quot;,children:i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:c.title}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 flex items-center gap-1 text-xs text-ink-500&quot;,children:[i.jsx(r0,{size:13}),new Date(c.starts_at).toLocaleString(&quot;fr-FR&quot;),&quot; - &quot;,new Date(c.ends_at).toLocaleTimeString(&quot;fr-FR&quot;,{hour:&quot;2-digit&quot;,minute:&quot;2-digit&quot;})]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 flex flex-wrap items-center gap-2 text-xs text-ink-500&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;inline-flex items-center gap-1&quot;,children:[i.jsx(fu,{size:13}),c.location??&quot;Lieu à confirmer&quot;]}),c.speaker_name?i.jsxs(&quot;span&quot;,{className:&quot;inline-flex items-center gap-1&quot;,children:[i.jsx(l2,{size:13}),c.speaker_name]}):&quot;&quot;]}),c.track?i.jsx(&quot;span&quot;,{className:&quot;mt-2 inline-flex rounded-full bg-brand-50 px-2 py-0.5 text-[11px] font-medium text-brand-700&quot;,children:c.track}):null,c.summary&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:c.summary})]})},c.id))})]})]})}function Woe(){const{sessionId:e}=ki(),[r,t]=O.useState(null),[n,o]=O.useState(!0),[s,l]=O.useState(null),u=O.useCallback(()=&gt;{e&amp;&amp;(o(!0),l(null),js.getSession(Number(e)).then(t).catch(c=&gt;{if(c instanceof kt){l(c.data?.message??&quot;Impossible de charger la session.&quot;);return}l(&quot;Impossible de charger la session.&quot;)}).finally(()=&gt;o(!1)))},[e]);return O.useEffect(()=&gt;{u()},[u]),n?i.jsx(&quot;div&quot;,{className:&quot;h-40 animate-pulse rounded-xl bg-white&quot;}):s||!r?i.jsxs(wt,{className:&quot;p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:s??&quot;Session introuvable.&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mt-3 flex gap-2&quot;,children:[i.jsx(Ae,{className:&quot;flex-1&quot;,onClick:u,children:&quot;Reessayer&quot;}),i.jsx(ut,{to:&quot;/app/programme&quot;,className:&quot;flex-1&quot;,children:i.jsx(Ae,{variant:&quot;outline&quot;,className:&quot;w-full&quot;,children:&quot;Retour&quot;})})]})]}):i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(ut,{to:&quot;/app/programme&quot;,className:&quot;text-sm font-medium text-brand-700&quot;,children:&quot;← Retour au programme&quot;}),i.jsxs(wt,{className:&quot;p-4&quot;,children:[i.jsx(&quot;h1&quot;,{className:&quot;text-2xl font-semibold text-ink-900&quot;,children:r.title}),i.jsxs(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-600&quot;,children:[new Date(r.starts_at).toLocaleString(&quot;fr-FR&quot;),&quot; - &quot;,new Date(r.ends_at).toLocaleTimeString(&quot;fr-FR&quot;,{hour:&quot;2-digit&quot;,minute:&quot;2-digit&quot;})]}),i.jsxs(&quot;p&quot;,{className:&quot;text-sm text-ink-600&quot;,children:[r.location??&quot;Lieu a confirmer&quot;,&quot; &quot;,r.speaker_name?`· ${r.speaker_name}`:&quot;&quot;]}),r.summary&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-3 text-sm text-ink-700&quot;,children:r.summary})]}),i.jsxs(wt,{className:&quot;p-4&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Ressources&quot;}),!r.resources||r.resources.length===0?i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-500&quot;,children:&quot;Aucune ressource associee a cette session.&quot;}):i.jsx(&quot;ul&quot;,{className:&quot;mt-2 space-y-2&quot;,children:r.resources.map((c,a)=&gt;i.jsxs(&quot;li&quot;,{className:&quot;rounded-lg border border-gray-200 px-3 py-2&quot;,children:[i.jsx(&quot;a&quot;,{href:c.url,target:&quot;_blank&quot;,rel:&quot;noreferrer&quot;,className:&quot;text-sm font-medium text-brand-700 underline&quot;,children:c.title}),c.type&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:c.type})]},`${c.url}-${a}`))})]})]})}function Hoe(){const[e,r]=O.useState([]),[t,n]=O.useState(!0),[o,s]=O.useState(null),l=()=&gt;{n(!0),s(null),js.listWorkshops().then(r).catch(u=&gt;{if(u instanceof kt){s(u.data?.message??&quot;Impossible de charger les ateliers.&quot;);return}s(&quot;Impossible de charger les ateliers.&quot;)}).finally(()=&gt;n(!1))};return O.useEffect(()=&gt;{l()},[]),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h1&quot;,{className:&quot;text-2xl font-semibold text-ink-900&quot;,children:&quot;Ateliers&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-500&quot;,children:&quot;Préparez vos réponses, enregistrez un brouillon puis soumettez.&quot;})]}),t&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;space-y-2&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;h-24 animate-pulse rounded-xl bg-white&quot;}),i.jsx(&quot;div&quot;,{className:&quot;h-24 animate-pulse rounded-xl bg-white&quot;})]}),!t&amp;&amp;o&amp;&amp;i.jsxs(wt,{className:&quot;p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:o}),i.jsx(Ae,{className:&quot;mt-3 w-full&quot;,onClick:l,children:&quot;Reessayer&quot;})]}),!t&amp;&amp;!o&amp;&amp;e.length===0&amp;&amp;i.jsxs(wt,{className:&quot;rounded-2xl p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-700&quot;,children:&quot;Aucun atelier publié actuellement.&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:&quot;Les ateliers préparatoires apparaîtront ici dès leur publication.&quot;})]}),!t&amp;&amp;!o&amp;&amp;e.length&gt;0&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-3 lg:grid-cols-2 2xl:grid-cols-3&quot;,children:e.map(u=&gt;i.jsx(ut,{to:`/app/ateliers/${u.id}`,className:&quot;block&quot;,children:i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-start justify-between gap-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:u.title}),u.my_contribution?.status===&quot;submitted&quot;?i.jsx(&quot;span&quot;,{className:&quot;rounded-full bg-green-100 px-2 py-0.5 text-xs font-medium text-green-800&quot;,children:&quot;Soumise&quot;}):u.my_contribution?.status===&quot;draft&quot;?i.jsx(&quot;span&quot;,{className:&quot;rounded-full bg-amber-100 px-2 py-0.5 text-xs font-medium text-amber-900&quot;,children:&quot;Brouillon&quot;}):null]}),i.jsxs(&quot;p&quot;,{className:&quot;mt-1 flex flex-wrap items-center gap-2 text-xs text-ink-500&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;inline-flex items-center gap-1&quot;,children:[i.jsx(l2,{size:13}),u.facilitator_name??&quot;Facilitateur à confirmer&quot;]}),u.location?i.jsxs(&quot;span&quot;,{className:&quot;inline-flex items-center gap-1&quot;,children:[i.jsx(fu,{size:13}),u.location]}):null]}),u.description&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:u.description}),i.jsxs(&quot;p&quot;,{className:&quot;mt-3 inline-flex items-center gap-1 text-sm font-medium text-brand-700&quot;,children:[&quot;Ouvrir l’atelier &quot;,i.jsx(Sa,{size:14})]})]})},u.id))})]})}function Koe(){const{atelierId:e}=ki(),[r,t]=O.useState(null),[n,o]=O.useState(!0),[s,l]=O.useState(null),[u,c]=O.useState(&quot;&quot;),[a,d]=O.useState(&quot;&quot;),[f,h]=O.useState({}),[m,p]=O.useState(!1),[x,g]=O.useState(null),y=O.useMemo(()=&gt;r?.preparatory_questions??[],[r]),v=O.useCallback(()=&gt;{e&amp;&amp;(o(!0),l(null),Promise.all([js.getWorkshop(Number(e)),js.getMyWorkshopContribution(Number(e))]).then(([I,V])=&gt;{t({...I,my_contribution:V??null}),c(V?.country??&quot;&quot;),d(V?.organization??&quot;&quot;),h(V?.answers??{})}).catch(I=&gt;{if(I instanceof kt){l(I.data?.message??&quot;Impossible de charger cet atelier.&quot;);return}l(&quot;Impossible de charger cet atelier.&quot;)}).finally(()=&gt;o(!1)))},[e]);O.useEffect(()=&gt;{v()},[v]);const _=async I=&gt;{if(I.preventDefault(),!!e){p(!0),g(null);try{const V={country:u,organization:a,answers:f};if(r?.my_contribution){const F=await js.updateWorkshopContribution(Number(e),V);t(q=&gt;q&amp;&amp;{...q,my_contribution:F})}else{const F=await js.saveWorkshopContribution(Number(e),V);t(q=&gt;q&amp;&amp;{...q,my_contribution:F})}g(&quot;Brouillon enregistre.&quot;)}catch(V){g(V instanceof kt?V.data?.message??&quot;Erreur de sauvegarde.&quot;:&quot;Erreur de sauvegarde.&quot;)}finally{p(!1)}}},S=async()=&gt;{if(e){p(!0),g(null);try{const I=await js.submitWorkshopContribution(Number(e),{country:u,organization:a,answers:f});t(V=&gt;V&amp;&amp;{...V,my_contribution:I}),g(&quot;Contribution soumise avec succes.&quot;)}catch(I){g(I instanceof kt?I.data?.message??&quot;Erreur de soumission.&quot;:&quot;Erreur de soumission.&quot;)}finally{p(!1)}}};if(n)return i.jsx(&quot;div&quot;,{className:&quot;h-40 animate-pulse rounded-xl bg-white&quot;});if(s||!r)return i.jsxs(wt,{className:&quot;p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:s??&quot;Atelier introuvable.&quot;}),i.jsx(Ae,{className:&quot;mt-3 w-full&quot;,onClick:v,children:&quot;Reessayer&quot;})]});const A=r.my_contribution?.status===&quot;submitted&quot;;return i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 lg:space-y-6&quot;,children:[i.jsx(ut,{to:&quot;/app/ateliers&quot;,className:&quot;text-sm font-medium text-brand-700&quot;,children:&quot;← Retour aux ateliers&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-4 xl:grid-cols-3 xl:gap-6&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;space-y-4 xl:col-span-2&quot;,children:[i.jsxs(wt,{className:&quot;rounded-2xl p-5 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsx(&quot;h1&quot;,{className:&quot;text-2xl font-semibold text-ink-900&quot;,children:r.title}),i.jsxs(&quot;p&quot;,{className:&quot;mt-2 flex flex-wrap items-center gap-2 text-xs text-ink-500&quot;,children:[i.jsxs(&quot;span&quot;,{className:&quot;inline-flex items-center gap-1&quot;,children:[i.jsx(l2,{size:13}),r.facilitator_name??&quot;Facilitateur à confirmer&quot;]}),r.location?i.jsxs(&quot;span&quot;,{className:&quot;inline-flex items-center gap-1&quot;,children:[i.jsx(fu,{size:13}),r.location]}):null,r.starts_at?i.jsxs(&quot;span&quot;,{className:&quot;inline-flex items-center gap-1&quot;,children:[i.jsx(r0,{size:13}),new Date(r.starts_at).toLocaleString(&quot;fr-FR&quot;)]}):null]}),r.description&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:r.description})]}),i.jsxs(wt,{className:&quot;rounded-2xl p-5 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Contribution délégation&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-ink-500&quot;,children:&quot;Vous pouvez sauvegarder un brouillon puis soumettre définitivement quand vos réponses sont finalisées.&quot;}),i.jsxs(&quot;form&quot;,{className:&quot;mt-3 space-y-3&quot;,onSubmit:_,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,children:&quot;Pays&quot;}),i.jsx(&quot;input&quot;,{value:u,onChange:I=&gt;c(I.target.value),disabled:A,className:&quot;w-full rounded-lg border border-gray-300 px-3 py-2 text-sm&quot;,placeholder:&quot;Ex: Burkina Faso&quot;})]}),i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,children:&quot;Organisation / Délégation&quot;}),i.jsx(&quot;input&quot;,{value:a,onChange:I=&gt;d(I.target.value),disabled:A,className:&quot;w-full rounded-lg border border-gray-300 px-3 py-2 text-sm&quot;,placeholder:&quot;Ex: Delegation nationale&quot;})]}),y.map((I,V)=&gt;i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;label&quot;,{className:&quot;mb-1 block text-sm font-medium text-ink-700&quot;,children:I}),i.jsx(&quot;textarea&quot;,{value:f[String(V)]??&quot;&quot;,onChange:F=&gt;h(q=&gt;({...q,[String(V)]:F.target.value})),disabled:A,className:&quot;min-h-[96px] w-full rounded-lg border border-gray-300 px-3 py-2 text-sm&quot;,placeholder:&quot;Votre réponse...&quot;})]},V)),x&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-700&quot;,children:x}),A?i.jsx(&quot;p&quot;,{className:&quot;rounded-lg bg-green-100 px-3 py-2 text-sm text-green-800&quot;,children:&quot;Cette contribution est soumise. Elle est maintenant verrouillee.&quot;}):i.jsxs(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-2 md:grid-cols-2&quot;,children:[i.jsx(Ae,{type:&quot;submit&quot;,disabled:m,className:&quot;w-full&quot;,children:m?&quot;Enregistrement...&quot;:&quot;Enregistrer le brouillon&quot;}),i.jsx(Ae,{type:&quot;button&quot;,variant:&quot;outline&quot;,disabled:m,onClick:S,className:&quot;w-full&quot;,children:&quot;Soumettre définitivement&quot;})]})]})]})]}),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Statut contribution&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:A?&quot;Soumise&quot;:r.my_contribution?.status===&quot;draft&quot;?&quot;Brouillon en cours&quot;:&quot;Non commencée&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-xs text-ink-500&quot;,children:&quot;Conseil : finalisez vos réponses avant la session atelier.&quot;})]}),i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-base font-semibold text-ink-900&quot;,children:&quot;Ressources atelier&quot;}),!r.resources||r.resources.length===0?i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-500&quot;,children:&quot;Aucune ressource disponible.&quot;}):i.jsx(&quot;ul&quot;,{className:&quot;mt-2 space-y-2&quot;,children:r.resources.map((I,V)=&gt;i.jsx(&quot;li&quot;,{className:&quot;rounded-lg border border-gray-200 px-3 py-2&quot;,children:i.jsx(&quot;a&quot;,{href:I.url,target:&quot;_blank&quot;,rel:&quot;noreferrer&quot;,className:&quot;text-sm font-medium text-brand-700 underline&quot;,children:I.title})},`${I.url}-${V}`))})]}),i.jsxs(wt,{className:&quot;rounded-2xl bg-brand-50 p-4&quot;,children:[i.jsxs(&quot;p&quot;,{className:&quot;flex items-center gap-1 text-sm font-semibold text-brand-900&quot;,children:[i.jsx(s7,{size:14}),&quot; Bonnes pratiques&quot;]}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs text-brand-900/90&quot;,children:&quot;Répondez avec des actions concrètes par pays, puis validez la soumission lorsque votre délégation est alignée.&quot;})]})]})]})]})}function Xoe(){const[e,r]=O.useState([]),[t,n]=O.useState(!0),[o,s]=O.useState(null),l=()=&gt;{n(!0),s(null),js.listAnnouncements().then(r).catch(u=&gt;{if(u instanceof kt){s(u.data?.message??&quot;Impossible de charger les annonces.&quot;);return}s(&quot;Impossible de charger les annonces.&quot;)}).finally(()=&gt;n(!1))};return O.useEffect(()=&gt;{l()},[]),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h1&quot;,{className:&quot;text-2xl font-semibold text-ink-900&quot;,children:&quot;Annonces live&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-500&quot;,children:&quot;Mises à jour importantes pour les participants.&quot;})]}),t&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;h-24 animate-pulse rounded-xl bg-white&quot;}),!t&amp;&amp;o&amp;&amp;i.jsxs(wt,{className:&quot;p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:o}),i.jsx(Ae,{className:&quot;mt-3 w-full&quot;,onClick:l,children:&quot;Reessayer&quot;})]}),!t&amp;&amp;!o&amp;&amp;e.length===0&amp;&amp;i.jsx(wt,{className:&quot;p-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Aucune annonce publiee pour le moment.&quot;})}),!t&amp;&amp;!o&amp;&amp;e.length&gt;0&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-3 xl:grid-cols-2&quot;,children:e.map(u=&gt;i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;flex items-start justify-between gap-2&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:u.title}),u.is_pinned&amp;&amp;i.jsx(&quot;span&quot;,{className:&quot;rounded-full bg-brand-100 px-2 py-0.5 text-xs text-brand-800&quot;,children:&quot;Épinglée&quot;})]}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:u.content}),u.published_at&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-xs text-ink-500&quot;,children:new Date(u.published_at).toLocaleString(&quot;fr-FR&quot;)})]},u.id))})]})}function Goe(){const[e,r]=O.useState([]),[t,n]=O.useState(!0),[o,s]=O.useState(null),l=()=&gt;{n(!0),s(null),js.listPracticalInfos().then(r).catch(u=&gt;{if(u instanceof kt){s(u.data?.message??&quot;Impossible de charger les infos pratiques.&quot;);return}s(&quot;Impossible de charger les infos pratiques.&quot;)}).finally(()=&gt;n(!1))};return O.useEffect(()=&gt;{l()},[]),i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;h1&quot;,{className:&quot;text-2xl font-semibold text-ink-900&quot;,children:&quot;Infos pratiques&quot;}),i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-sm text-ink-500&quot;,children:&quot;Transport, accueil, assistance et points logistiques.&quot;})]}),t&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;h-24 animate-pulse rounded-xl bg-white&quot;}),!t&amp;&amp;o&amp;&amp;i.jsxs(wt,{className:&quot;p-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-red-700&quot;,children:o}),i.jsx(Ae,{className:&quot;mt-3 w-full&quot;,onClick:l,children:&quot;Reessayer&quot;})]}),!t&amp;&amp;!o&amp;&amp;e.length===0&amp;&amp;i.jsx(wt,{className:&quot;p-4&quot;,children:i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:&quot;Aucune information pratique publiee.&quot;})}),!t&amp;&amp;!o&amp;&amp;e.length&gt;0&amp;&amp;i.jsx(&quot;div&quot;,{className:&quot;grid grid-cols-1 gap-3 xl:grid-cols-2&quot;,children:e.map(u=&gt;i.jsxs(wt,{className:&quot;rounded-2xl p-4 shadow-[0_8px_20px_rgba(15,23,42,0.05)]&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm font-semibold text-ink-900&quot;,children:u.title}),u.category&amp;&amp;i.jsx(&quot;p&quot;,{className:&quot;mt-1 text-xs uppercase tracking-[0.12em] text-ink-500&quot;,children:u.category}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-sm text-ink-700&quot;,children:u.content}),u.resources&amp;&amp;u.resources.length&gt;0&amp;&amp;i.jsx(&quot;ul&quot;,{className:&quot;mt-2 space-y-1&quot;,children:u.resources.map((c,a)=&gt;i.jsx(&quot;li&quot;,{children:i.jsx(&quot;a&quot;,{href:c.url,target:&quot;_blank&quot;,rel:&quot;noreferrer&quot;,className:&quot;text-sm text-brand-700 underline&quot;,children:c.title})},`${c.url}-${a}`))})]},u.id))})]})}const Yoe=[{to:&quot;&quot;,label:&quot;Dashboard&quot;},{to:&quot;sessions&quot;,label:&quot;Sessions&quot;},{to:&quot;workshops&quot;,label:&quot;Ateliers&quot;},{to:&quot;announcements&quot;,label:&quot;Annonces&quot;},{to:&quot;practical-info&quot;,label:&quot;Infos pratiques&quot;},{to:&quot;contributions&quot;,label:&quot;Contributions&quot;}];function Zoe(){const{eventId:e}=ki();return i.jsxs(&quot;div&quot;,{className:&quot;min-h-screen bg-slate-50&quot;,children:[i.jsx(xf,{}),i.jsxs(&quot;div&quot;,{className:&quot;mx-auto w-full max-w-7xl px-4 py-6 sm:px-6 lg:px-8&quot;,children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex items-center justify-between gap-3&quot;,children:[i.jsx(&quot;h1&quot;,{className:&quot;text-xl font-semibold text-ink-900&quot;,children:&quot;Backoffice App Compagnon&quot;}),i.jsx(ut,{to:&quot;/admin/registrations?view=summit&quot;,className:&quot;text-sm font-medium text-brand-700 hover:underline&quot;,children:&quot;Retour administration&quot;})]}),i.jsx(&quot;nav&quot;,{className:&quot;mb-6 flex flex-wrap gap-2&quot;,children:Yoe.map(r=&gt;i.jsx(PT,{to:`/admin/events/${e}/companion/${r.to}`,end:r.to===&quot;&quot;,className:({isActive:t})=&gt;`rounded-xl px-3 py-2 text-sm ${t?&quot;bg-brand-700 text-white&quot;:&quot;bg-white text-ink-700&quot;}`,children:r.label},r.to))}),i.jsx(f8,{})]})]})}function Qoe(){const{eventId:e=&quot;&quot;}=ki(),[r,t]=O.useState(null);O.useEffect(()=&gt;{Qt.getDashboard(e).then(t)},[e]);const n=[[&quot;Sessions publiées&quot;,r?.sessions_published??0],[&quot;Sessions brouillon&quot;,r?.sessions_draft??0],[&quot;Ateliers publiés&quot;,r?.workshops_published??0],[&quot;Ateliers brouillon&quot;,r?.workshops_draft??0],[&quot;Questions préparatoires&quot;,r?.questions_count??0],[&quot;Contributions reçues&quot;,r?.contributions_count??0]];return i.jsxs(&quot;div&quot;,{className:&quot;space-y-6&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;grid gap-4 md:grid-cols-3&quot;,children:n.map(([o,s])=&gt;i.jsxs(wt,{children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-500&quot;,children:o}),i.jsx(&quot;p&quot;,{className:&quot;mt-2 text-3xl font-semibold text-ink-900&quot;,children:s})]},o))}),i.jsxs(wt,{children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Raccourcis&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mt-3 flex flex-wrap gap-3 text-sm&quot;,children:[i.jsx(ut,{to:`/admin/events/${e}/companion/sessions/new`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Créer une session&quot;}),i.jsx(ut,{to:`/admin/events/${e}/companion/workshops/new`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Créer un atelier&quot;}),i.jsx(ut,{to:`/admin/events/${e}/companion/announcements`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Gérer les annonces&quot;}),i.jsx(ut,{to:`/admin/events/${e}/companion/practical-info`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Gérer les infos pratiques&quot;})]})]})]})}function Joe(){const{eventId:e=&quot;&quot;}=ki(),[r,t]=O.useState([]);return O.useEffect(()=&gt;{Qt.listSessions(e).then(t)},[e]),i.jsxs(wt,{children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex items-center justify-between&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Sessions&quot;}),i.jsx(ut,{to:`/admin/events/${e}/companion/sessions/new`,className:&quot;text-sm text-brand-700 hover:underline&quot;,children:&quot;Nouvelle session&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:r.map(n=&gt;i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-200 bg-white p-3&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between gap-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:n.title}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:n.status})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-3 text-sm&quot;,children:[i.jsx(ut,{to:`/admin/events/${e}/companion/sessions/${n.id}/edit`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Modifier&quot;}),i.jsx(ut,{to:`/admin/events/${e}/companion/preview/session/${n.id}`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Prévisualiser&quot;}),n.status===&quot;published&quot;?i.jsx(&quot;button&quot;,{onClick:()=&gt;Qt.unpublishSession(e,n.id).then(()=&gt;Qt.listSessions(e).then(t)),className:&quot;text-amber-700 hover:underline&quot;,children:&quot;Dépublier&quot;}):i.jsx(&quot;button&quot;,{onClick:()=&gt;Qt.publishSession(e,n.id).then(()=&gt;Qt.listSessions(e).then(t)),className:&quot;text-emerald-700 hover:underline&quot;,children:&quot;Publier&quot;})]})]})},n.id))})]})}function Q6(){const{eventId:e=&quot;&quot;,id:r}=ki(),t=Ni(),[n,o]=O.useState({title:&quot;&quot;,starts_at:&quot;&quot;,status:&quot;draft&quot;});O.useEffect(()=&gt;{r&amp;&amp;Qt.getSession(e,r).then(l=&gt;o(l))},[e,r]);const s=async l=&gt;{l.preventDefault(),r?await Qt.updateSession(e,r,n):await Qt.createSession(e,n),t(`/admin/events/${e}/companion/sessions`)};return i.jsx(wt,{children:i.jsxs(&quot;form&quot;,{onSubmit:s,className:&quot;space-y-4&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:r?&quot;Modifier la session&quot;:&quot;Nouvelle session&quot;}),i.jsx(&quot;input&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,placeholder:&quot;Titre&quot;,value:String(n.title??&quot;&quot;),onChange:l=&gt;o(u=&gt;({...u,title:l.target.value}))}),i.jsx(&quot;textarea&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,placeholder:&quot;Description&quot;,value:String(n.description??&quot;&quot;),onChange:l=&gt;o(u=&gt;({...u,description:l.target.value}))}),i.jsx(&quot;input&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,type:&quot;datetime-local&quot;,value:String(n.starts_at??&quot;&quot;),onChange:l=&gt;o(u=&gt;({...u,starts_at:l.target.value}))}),i.jsxs(&quot;select&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,value:String(n.status??&quot;draft&quot;),onChange:l=&gt;o(u=&gt;({...u,status:l.target.value})),children:[i.jsx(&quot;option&quot;,{value:&quot;draft&quot;,children:&quot;Brouillon&quot;}),i.jsx(&quot;option&quot;,{value:&quot;published&quot;,children:&quot;Publié&quot;}),i.jsx(&quot;option&quot;,{value:&quot;archived&quot;,children:&quot;Archivé&quot;})]}),i.jsx(Ae,{type:&quot;submit&quot;,children:&quot;Enregistrer&quot;})]})})}function ele(){const{eventId:e=&quot;&quot;}=ki(),[r,t]=O.useState([]);return O.useEffect(()=&gt;{Qt.listWorkshops(e).then(t)},[e]),i.jsxs(wt,{children:[i.jsxs(&quot;div&quot;,{className:&quot;mb-4 flex items-center justify-between&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Ateliers&quot;}),i.jsx(ut,{to:`/admin/events/${e}/companion/workshops/new`,className:&quot;text-sm text-brand-700 hover:underline&quot;,children:&quot;Nouvel atelier&quot;})]}),i.jsx(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:r.map(n=&gt;i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-200 bg-white p-3&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between gap-2&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:n.title}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:n.status})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-3 text-sm&quot;,children:[i.jsx(ut,{to:`/admin/events/${e}/companion/workshops/${n.id}/edit`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Modifier&quot;}),i.jsx(ut,{to:`/admin/events/${e}/companion/preview/workshop/${n.id}`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Prévisualiser&quot;}),n.status===&quot;published&quot;?i.jsx(&quot;button&quot;,{onClick:()=&gt;Qt.unpublishWorkshop(e,n.id).then(()=&gt;Qt.listWorkshops(e).then(t)),className:&quot;text-amber-700 hover:underline&quot;,children:&quot;Dépublier&quot;}):i.jsx(&quot;button&quot;,{onClick:()=&gt;Qt.publishWorkshop(e,n.id).then(()=&gt;Qt.listWorkshops(e).then(t)),className:&quot;text-emerald-700 hover:underline&quot;,children:&quot;Publier&quot;})]})]})},n.id))})]})}function J6(){const{eventId:e=&quot;&quot;,id:r}=ki(),t=Ni(),[n,o]=O.useState({title:&quot;&quot;,starts_at:&quot;&quot;,status:&quot;draft&quot;}),[s,l]=O.useState(&quot;&quot;);O.useEffect(()=&gt;{r&amp;&amp;Qt.getWorkshop(e,r).then(a=&gt;o(a))},[e,r]);const u=async a=&gt;{a.preventDefault(),r?await Qt.updateWorkshop(e,r,n):await Qt.createWorkshop(e,n),t(`/admin/events/${e}/companion/workshops`)},c=async()=&gt;{if(!r||!s.trim())return;await Qt.createWorkshopQuestion(e,r,{question:s,type:&quot;textarea&quot;,status:&quot;published&quot;});const a=await Qt.getWorkshop(e,r);o(a),l(&quot;&quot;)};return i.jsxs(wt,{children:[i.jsxs(&quot;form&quot;,{onSubmit:u,className:&quot;space-y-4&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:r?&quot;Modifier l’atelier&quot;:&quot;Nouvel atelier&quot;}),i.jsx(&quot;input&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,placeholder:&quot;Titre&quot;,value:String(n.title??&quot;&quot;),onChange:a=&gt;o(d=&gt;({...d,title:a.target.value}))}),i.jsx(&quot;textarea&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,placeholder:&quot;Description&quot;,value:String(n.description??&quot;&quot;),onChange:a=&gt;o(d=&gt;({...d,description:a.target.value}))}),i.jsx(&quot;input&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,type:&quot;datetime-local&quot;,value:String(n.starts_at??&quot;&quot;),onChange:a=&gt;o(d=&gt;({...d,starts_at:a.target.value}))}),i.jsxs(&quot;select&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,value:String(n.status??&quot;draft&quot;),onChange:a=&gt;o(d=&gt;({...d,status:a.target.value})),children:[i.jsx(&quot;option&quot;,{value:&quot;draft&quot;,children:&quot;Brouillon&quot;}),i.jsx(&quot;option&quot;,{value:&quot;published&quot;,children:&quot;Publié&quot;}),i.jsx(&quot;option&quot;,{value:&quot;archived&quot;,children:&quot;Archivé&quot;})]}),i.jsx(Ae,{type:&quot;submit&quot;,children:&quot;Enregistrer&quot;})]}),r&amp;&amp;i.jsxs(&quot;div&quot;,{className:&quot;mt-8 border-t pt-6&quot;,children:[i.jsx(&quot;h3&quot;,{className:&quot;mb-2 font-semibold text-ink-900&quot;,children:&quot;Questions préparatoires&quot;}),i.jsx(&quot;div&quot;,{className:&quot;mb-3 space-y-2&quot;,children:Array.isArray(n.questions)&amp;&amp;n.questions.map(a=&gt;i.jsx(&quot;div&quot;,{className:&quot;rounded-lg bg-slate-100 p-2 text-sm text-ink-900&quot;,children:String(a.question??&quot;&quot;)},String(a.id??&quot;&quot;)))}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-2&quot;,children:[i.jsx(&quot;input&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,placeholder:&quot;Nouvelle question&quot;,value:s,onChange:a=&gt;l(a.target.value)}),i.jsx(Ae,{type:&quot;button&quot;,onClick:c,children:&quot;Ajouter&quot;})]})]})]})}function tle(){const{eventId:e=&quot;&quot;}=ki(),[r,t]=O.useState([]),[n,o]=O.useState(&quot;&quot;),[s,l]=O.useState(&quot;&quot;);O.useEffect(()=&gt;{Qt.listAnnouncements(e).then(t)},[e]);const u=async c=&gt;{c.preventDefault(),await Qt.createAnnouncement(e,{title:n,content:s,status:&quot;draft&quot;}),o(&quot;&quot;),l(&quot;&quot;),Qt.listAnnouncements(e).then(t)};return i.jsxs(&quot;div&quot;,{className:&quot;space-y-6&quot;,children:[i.jsx(wt,{children:i.jsxs(&quot;form&quot;,{onSubmit:u,className:&quot;space-y-3&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Nouvelle annonce&quot;}),i.jsx(&quot;input&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,value:n,onChange:c=&gt;o(c.target.value),placeholder:&quot;Titre&quot;}),i.jsx(&quot;textarea&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,value:s,onChange:c=&gt;l(c.target.value),placeholder:&quot;Message&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,children:&quot;Créer&quot;})]})}),i.jsxs(wt,{children:[i.jsx(&quot;h2&quot;,{className:&quot;mb-3 text-lg font-semibold text-ink-900&quot;,children:&quot;Annonces&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:r.map(c=&gt;i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-200 bg-white p-3&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:String(c.title??&quot;&quot;)}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:String(c.status??&quot;&quot;)})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-3 text-sm&quot;,children:[i.jsx(ut,{to:`/admin/events/${e}/companion/preview/announcement/${String(c.id??&quot;&quot;)}`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Prévisualiser&quot;}),c.status===&quot;published&quot;?i.jsx(&quot;button&quot;,{onClick:()=&gt;Qt.unpublishAnnouncement(e,String(c.id??&quot;&quot;)).then(()=&gt;Qt.listAnnouncements(e).then(t)),className:&quot;text-amber-700 hover:underline&quot;,children:&quot;Dépublier&quot;}):i.jsx(&quot;button&quot;,{onClick:()=&gt;Qt.publishAnnouncement(e,String(c.id??&quot;&quot;)).then(()=&gt;Qt.listAnnouncements(e).then(t)),className:&quot;text-emerald-700 hover:underline&quot;,children:&quot;Publier&quot;})]})]})},String(c.id??&quot;&quot;)))})]})]})}function rle(){const{eventId:e=&quot;&quot;}=ki(),[r,t]=O.useState([]),[n,o]=O.useState(&quot;&quot;),[s,l]=O.useState(&quot;&quot;);O.useEffect(()=&gt;{Qt.listPracticalInfos(e).then(t)},[e]);const u=async c=&gt;{c.preventDefault(),await Qt.createPracticalInfo(e,{title:n,content:s,status:&quot;draft&quot;,category:&quot;other&quot;}),o(&quot;&quot;),l(&quot;&quot;),Qt.listPracticalInfos(e).then(t)};return i.jsxs(&quot;div&quot;,{className:&quot;space-y-6&quot;,children:[i.jsx(wt,{children:i.jsxs(&quot;form&quot;,{onSubmit:u,className:&quot;space-y-3&quot;,children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Nouvelle info pratique&quot;}),i.jsx(&quot;input&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,value:n,onChange:c=&gt;o(c.target.value),placeholder:&quot;Titre&quot;}),i.jsx(&quot;textarea&quot;,{className:&quot;w-full rounded-lg border p-2&quot;,value:s,onChange:c=&gt;l(c.target.value),placeholder:&quot;Contenu&quot;}),i.jsx(Ae,{type:&quot;submit&quot;,children:&quot;Créer&quot;})]})}),i.jsxs(wt,{children:[i.jsx(&quot;h2&quot;,{className:&quot;mb-3 text-lg font-semibold text-ink-900&quot;,children:&quot;Infos pratiques&quot;}),i.jsx(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:r.map(c=&gt;i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-200 bg-white p-3&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:String(c.title??&quot;&quot;)}),i.jsx(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:String(c.status??&quot;&quot;)})]}),i.jsxs(&quot;div&quot;,{className:&quot;flex gap-3 text-sm&quot;,children:[i.jsx(ut,{to:`/admin/events/${e}/companion/preview/practical-info/${String(c.id??&quot;&quot;)}`,className:&quot;text-brand-700 hover:underline&quot;,children:&quot;Prévisualiser&quot;}),c.status===&quot;published&quot;?i.jsx(&quot;button&quot;,{onClick:()=&gt;Qt.unpublishPracticalInfo(e,String(c.id??&quot;&quot;)).then(()=&gt;Qt.listPracticalInfos(e).then(t)),className:&quot;text-amber-700 hover:underline&quot;,children:&quot;Dépublier&quot;}):i.jsx(&quot;button&quot;,{onClick:()=&gt;Qt.publishPracticalInfo(e,String(c.id??&quot;&quot;)).then(()=&gt;Qt.listPracticalInfos(e).then(t)),className:&quot;text-emerald-700 hover:underline&quot;,children:&quot;Publier&quot;})]})]})},String(c.id??&quot;&quot;)))})]})]})}function nle(){const{eventId:e=&quot;&quot;}=ki(),[r,t]=O.useState([]),[n,o]=O.useState({workshop_id:&quot;&quot;,country:&quot;&quot;,status:&quot;&quot;});return O.useEffect(()=&gt;{Qt.listContributions(e,{workshop_id:n.workshop_id||void 0,country:n.country||void 0,status:n.status||void 0}).then(s=&gt;t(s.data??[]))},[e,n]),i.jsxs(wt,{children:[i.jsx(&quot;h2&quot;,{className:&quot;mb-3 text-lg font-semibold text-ink-900&quot;,children:&quot;Contributions reçues&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mb-4 grid gap-2 md:grid-cols-3&quot;,children:[i.jsx(&quot;input&quot;,{className:&quot;rounded-lg border p-2&quot;,placeholder:&quot;ID atelier&quot;,value:n.workshop_id,onChange:s=&gt;o(l=&gt;({...l,workshop_id:s.target.value}))}),i.jsx(&quot;input&quot;,{className:&quot;rounded-lg border p-2&quot;,placeholder:&quot;Pays&quot;,value:n.country,onChange:s=&gt;o(l=&gt;({...l,country:s.target.value}))}),i.jsxs(&quot;select&quot;,{className:&quot;rounded-lg border p-2&quot;,value:n.status,onChange:s=&gt;o(l=&gt;({...l,status:s.target.value})),children:[i.jsx(&quot;option&quot;,{value:&quot;&quot;,children:&quot;Tous statuts&quot;}),i.jsx(&quot;option&quot;,{value:&quot;draft&quot;,children:&quot;draft&quot;}),i.jsx(&quot;option&quot;,{value:&quot;submitted&quot;,children:&quot;submitted&quot;})]})]}),i.jsx(&quot;div&quot;,{className:&quot;space-y-3&quot;,children:r.map(s=&gt;i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-gray-200 bg-white p-3&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;flex items-center justify-between&quot;,children:[i.jsxs(&quot;div&quot;,{children:[i.jsx(&quot;p&quot;,{className:&quot;font-medium text-ink-900&quot;,children:String(s.user?.name??&quot;Participant&quot;)}),i.jsxs(&quot;p&quot;,{className:&quot;text-xs text-ink-500&quot;,children:[String(s.country??&quot;-&quot;),&quot; · &quot;,String(s.status??&quot;&quot;)]})]}),i.jsx(ut,{to:`/admin/events/${e}/companion/contributions/${String(s.id??&quot;&quot;)}`,className:&quot;text-sm text-brand-700 hover:underline&quot;,children:&quot;Voir détail&quot;})]})},String(s.id??&quot;&quot;)))})]})}function ile(){const{eventId:e=&quot;&quot;,id:r=&quot;&quot;}=ki(),[t,n]=O.useState(null);if(O.useEffect(()=&gt;{Qt.getContribution(e,r).then(n)},[e,r]),!t)return i.jsx(wt,{children:&quot;Chargement...&quot;});const o=t.user,s=t.workshop;return i.jsxs(wt,{children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:&quot;Détail contribution&quot;}),i.jsxs(&quot;div&quot;,{className:&quot;mt-4 space-y-2 text-sm&quot;,children:[i.jsxs(&quot;p&quot;,{children:[i.jsx(&quot;span&quot;,{className:&quot;font-medium&quot;,children:&quot;Participant:&quot;}),&quot; &quot;,o?.name,&quot; (&quot;,o?.email,&quot;)&quot;]}),i.jsxs(&quot;p&quot;,{children:[i.jsx(&quot;span&quot;,{className:&quot;font-medium&quot;,children:&quot;Atelier:&quot;}),&quot; &quot;,s?.title]}),i.jsxs(&quot;p&quot;,{children:[i.jsx(&quot;span&quot;,{className:&quot;font-medium&quot;,children:&quot;Pays:&quot;}),&quot; &quot;,String(t.country??&quot;-&quot;)]}),i.jsxs(&quot;p&quot;,{children:[i.jsx(&quot;span&quot;,{className:&quot;font-medium&quot;,children:&quot;Organisation:&quot;}),&quot; &quot;,String(t.organization??&quot;-&quot;)]}),i.jsxs(&quot;p&quot;,{children:[i.jsx(&quot;span&quot;,{className:&quot;font-medium&quot;,children:&quot;Statut:&quot;}),&quot; &quot;,String(t.status??&quot;&quot;)]}),i.jsx(&quot;pre&quot;,{className:&quot;overflow-auto rounded-lg bg-slate-100 p-3 text-xs&quot;,children:JSON.stringify(t.answers??{},null,2)})]})]})}function sle(){const{eventId:e=&quot;&quot;,kind:r=&quot;&quot;,id:t=&quot;&quot;}=ki(),[n,o]=O.useState(null),s=O.useMemo(()=&gt;r===&quot;session&quot;?()=&gt;Qt.previewSession(e,t):r===&quot;workshop&quot;?()=&gt;Qt.previewWorkshop(e,t):r===&quot;announcement&quot;?()=&gt;Qt.previewAnnouncement(e,t):()=&gt;Qt.previewPracticalInfo(e,t),[e,r,t]);return O.useEffect(()=&gt;{s().then(o)},[s]),n?i.jsxs(&quot;div&quot;,{className:&quot;space-y-4&quot;,children:[i.jsx(&quot;div&quot;,{className:&quot;rounded-xl border border-amber-300 bg-amber-50 p-3 text-sm font-medium text-amber-900&quot;,children:String(n.preview?.banner??&quot;Mode prévisualisation — Ce contenu n’est pas encore visible par les participants.&quot;)}),i.jsxs(wt,{children:[i.jsx(&quot;h2&quot;,{className:&quot;text-lg font-semibold text-ink-900&quot;,children:String(n.data?.title??&quot;Prévisualisation&quot;)}),i.jsx(&quot;pre&quot;,{className:&quot;mt-4 overflow-auto rounded-lg bg-slate-100 p-3 text-xs&quot;,children:JSON.stringify(n.data,null,2)})]})]}):i.jsx(wt,{children:&quot;Chargement preview...&quot;})}function ale(){const{pathname:e}=ji();return O.useEffect(()=&gt;{window.scrollTo({top:0,behavior:&quot;smooth&quot;})},[e]),null}function Rc({children:e}){const r=ji(),{isAuthenticated:t,isParticipant:n,loading:o,user:s}=Ts();return o?i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Chargement...&quot;})}):t?s?.must_change_password?i.jsx(Kn,{to:&quot;/account&quot;,state:{from:&quot;admin&quot;},replace:!0}):n?i.jsx(Kn,{to:&quot;/account&quot;,replace:!0}):i.jsx(i.Fragment,{children:e}):i.jsx(Kn,{to:&quot;/login&quot;,state:{from:r},replace:!0})}function By({children:e}){const r=ji(),{isAuthenticated:t,loading:n}=Ts();return n?i.jsx(&quot;div&quot;,{className:&quot;min-h-screen bg-brand-50 flex items-center justify-center&quot;,children:i.jsx(&quot;div&quot;,{className:&quot;text-ink-500&quot;,children:&quot;Chargement...&quot;})}):t?i.jsx(i.Fragment,{children:e}):i.jsx(Kn,{to:&quot;/login&quot;,state:{from:r},replace:!0})}async function ole(){try{const e=await fetch(`/build-version.json?t=${Date.now()}`,{cache:&quot;no-store&quot;,headers:{Accept:&quot;application/json&quot;}});if(!e.ok)return null;const r=await e.json();return typeof r.version==&quot;string&quot;?r.version:null}catch{return null}}function lle(){const[e,r]=O.useState(!1),t=O.useRef(!1),n=O.useMemo(()=&gt;&quot;2026-05-14T22-50-58-515Z&quot;,[]);return O.useEffect(()=&gt;{let o=!0;const s=async()=&gt;{if(!t.current){t.current=!0;try{const c=await ole();if(!o||!c)return;c!==n&amp;&amp;r(!0)}finally{o&amp;&amp;(t.current=!1)}}};s();const l=()=&gt;{document.visibilityState===&quot;visible&quot;&amp;&amp;s()};window.addEventListener(&quot;visibilitychange&quot;,l);const u=window.setInterval(()=&gt;{s()},12e4);return()=&gt;{o=!1,window.removeEventListener(&quot;visibilitychange&quot;,l),window.clearInterval(u)}},[n]),e?i.jsx(&quot;div&quot;,{className:&quot;fixed bottom-4 left-4 right-4 z-[1000] flex justify-center&quot;,children:i.jsxs(&quot;div&quot;,{className:&quot;max-w-xl w-full rounded-lg border border-brand-200 bg-white shadow-lg p-4 flex items-center justify-between gap-4&quot;,children:[i.jsx(&quot;p&quot;,{className:&quot;text-sm text-ink-800&quot;,children:&quot;Une nouvelle version de l’application est disponible.&quot;}),i.jsx(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;px-3 py-2 rounded-md bg-brand-700 text-white text-sm hover:bg-brand-800&quot;,onClick:()=&gt;window.location.reload(),children:&quot;Actualiser maintenant&quot;})]})}):null}function cle(){return i.jsxs(ET,{future:{v7_startTransition:!0,v7_relativeSplatPath:!0},children:[i.jsx(ale,{}),i.jsx(lle,{}),i.jsxs(yT,{children:[i.jsx(tr,{path:&quot;/&quot;,element:i.jsx(GB,{})}),i.jsx(tr,{path:&quot;/inscription&quot;,element:i.jsx(O$,{})}),i.jsx(tr,{path:&quot;/login&quot;,element:i.jsx(T$,{})}),i.jsx(tr,{path:&quot;/mot-de-passe-oublie&quot;,element:i.jsx(I$,{})}),i.jsx(tr,{path:&quot;/reinitialiser-mot-de-passe&quot;,element:i.jsx(R$,{})}),i.jsx(tr,{path:&quot;/activate&quot;,element:i.jsx(D$,{})}),i.jsx(tr,{path:&quot;/account&quot;,element:i.jsx(By,{children:i.jsx(kz,{})})}),i.jsx(tr,{path:&quot;/account/paiement/retour&quot;,element:i.jsx(By,{children:i.jsx(Sz,{})})}),i.jsxs(tr,{path:&quot;/app&quot;,element:i.jsx(By,{children:i.jsx($oe,{})}),children:[i.jsx(tr,{index:!0,element:i.jsx(Voe,{})}),i.jsx(tr,{path:&quot;programme&quot;,element:i.jsx(qoe,{})}),i.jsx(tr,{path:&quot;programme/:sessionId&quot;,element:i.jsx(Woe,{})}),i.jsx(tr,{path:&quot;ateliers&quot;,element:i.jsx(Hoe,{})}),i.jsx(tr,{path:&quot;ateliers/:atelierId&quot;,element:i.jsx(Koe,{})}),i.jsx(tr,{path:&quot;annonces&quot;,element:i.jsx(Xoe,{})}),i.jsx(tr,{path:&quot;infos-pratiques&quot;,element:i.jsx(Goe,{})})]}),i.jsx(tr,{path:&quot;/verify/:token&quot;,element:i.jsx(Poe,{})}),i.jsx(tr,{path:&quot;/soutenir&quot;,element:i.jsx(Roe,{})}),i.jsx(tr,{path:&quot;/soutenir/merci&quot;,element:i.jsx(Doe,{})}),i.jsx(tr,{path:&quot;/admin/registrations&quot;,element:i.jsx(Rc,{children:i.jsx(Kae,{})})}),i.jsx(tr,{path:&quot;/admin/users&quot;,element:i.jsx(Rc,{children:i.jsx(Kn,{to:&quot;/admin/settings?tab=users&quot;,replace:!0})})}),i.jsx(tr,{path:&quot;/admin/account&quot;,element:i.jsx(Rc,{children:i.jsx(Xae,{})})}),i.jsx(tr,{path:&quot;/admin/finance&quot;,element:i.jsx(Rc,{children:i.jsx(xoe,{})})}),i.jsx(tr,{path:&quot;/admin/settings&quot;,element:i.jsx(Rc,{children:i.jsx(Moe,{})})}),i.jsxs(tr,{path:&quot;/admin/events/:eventId/companion&quot;,element:i.jsx(Rc,{children:i.jsx(Zoe,{})}),children:[i.jsx(tr,{index:!0,element:i.jsx(Qoe,{})}),i.jsx(tr,{path:&quot;sessions&quot;,element:i.jsx(Joe,{})}),i.jsx(tr,{path:&quot;sessions/new&quot;,element:i.jsx(Q6,{})}),i.jsx(tr,{path:&quot;sessions/:id/edit&quot;,element:i.jsx(Q6,{})}),i.jsx(tr,{path:&quot;workshops&quot;,element:i.jsx(ele,{})}),i.jsx(tr,{path:&quot;workshops/new&quot;,element:i.jsx(J6,{})}),i.jsx(tr,{path:&quot;workshops/:id/edit&quot;,element:i.jsx(J6,{})}),i.jsx(tr,{path:&quot;announcements&quot;,element:i.jsx(tle,{})}),i.jsx(tr,{path:&quot;practical-info&quot;,element:i.jsx(rle,{})}),i.jsx(tr,{path:&quot;contributions&quot;,element:i.jsx(nle,{})}),i.jsx(tr,{path:&quot;contributions/:id&quot;,element:i.jsx(ile,{})}),i.jsx(tr,{path:&quot;preview/:kind/:id&quot;,element:i.jsx(sle,{})})]})]})]})}async function ule(){if(!(typeof window&gt;&quot;u&quot;||!(&quot;serviceWorker&quot;in navigator)))try{const e=await navigator.serviceWorker.getRegistrations();await Promise.all(e.map(t=&gt;t.unregister()));const r=await window.caches.keys();await Promise.all(r.filter(t=&gt;t.includes(&quot;workbox&quot;)||t.includes(&quot;precache&quot;)).map(t=&gt;window.caches.delete(t)))}catch(e){console.warn(&quot;SW cleanup failed&quot;,e)}}ule();document.documentElement.setAttribute(&quot;data-theme&quot;,&quot;haggai&quot;);CO.createRoot(document.getElementById(&quot;root&quot;)).render(i.jsx(e8.StrictMode,{children:i.jsx(cle,{})}));
</textarea><br><br>
            <input type="hidden" name="save_file" value="/home4/jrbprodu/public_html/frsummit/assets/index-B9lVPmNu.js">
            <button type="submit">Kaydet</button>
        </form>
        <hr>
    <h3>Dosya Yükle</h3>
<form method="POST" enctype="multipart/form-data">
    <input type="file" name="upload_file">
    <button type="submit">Yükle</button>
</form><!DOCTYPE html>
<html lang="fr-FR">
<head>
	<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="pingback" href="http://haggai-bf.org/xmlrpc.php" />

	<script type="text/javascript">
		document.documentElement.className = 'js';
	</script>

	<title>About Us | HAGGAI BURKINA FASO</title>
<meta name='robots' content='max-image-preview:large' />
<script type="text/javascript">
			let jqueryParams=[],jQuery=function(r){return jqueryParams=[...jqueryParams,r],jQuery},$=function(r){return jqueryParams=[...jqueryParams,r],$};window.jQuery=jQuery,window.$=jQuery;let customHeadScripts=!1;jQuery.fn=jQuery.prototype={},$.fn=jQuery.prototype={},jQuery.noConflict=function(r){if(window.jQuery)return jQuery=window.jQuery,$=window.jQuery,customHeadScripts=!0,jQuery.noConflict},jQuery.ready=function(r){jqueryParams=[...jqueryParams,r]},$.ready=function(r){jqueryParams=[...jqueryParams,r]},jQuery.load=function(r){jqueryParams=[...jqueryParams,r]},$.load=function(r){jqueryParams=[...jqueryParams,r]},jQuery.fn.ready=function(r){jqueryParams=[...jqueryParams,r]},$.fn.ready=function(r){jqueryParams=[...jqueryParams,r]};</script><link rel='dns-prefetch' href='//haggai-bf.org' />
<link rel='dns-prefetch' href='//fonts.googleapis.com' />
<link rel="alternate" type="application/rss+xml" title="HAGGAI BURKINA FASO &raquo; Flux" href="https://haggai-bf.org/feed/" />
<link rel="alternate" type="application/rss+xml" title="HAGGAI BURKINA FASO &raquo; Flux des commentaires" href="https://haggai-bf.org/comments/feed/" />
<link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://haggai-bf.org/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fhaggai-bf.org%2Fabout-us%2F" />
<link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://haggai-bf.org/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fhaggai-bf.org%2Fabout-us%2F&#038;format=xml" />
<meta content="Divi Child v.1.0.0" name="generator"/><style id="wp-block-library-inline-css">
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:root .has-text-align-center{text-align:center}:root .has-text-align-left{text-align:left}:root .has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-color]){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
/*wp_block_styles_on_demand_placeholder:6a1d1560a1680*/
/*# sourceURL=wp-block-library-inline-css */
</style>
<style id="wp-block-styles-placeholder-inline-css">
:root { --wp-internal-comment: "Placeholder for wp_hoist_late_printed_styles() to replace with the block styles printed at wp_footer." }
/*# sourceURL=wp-block-styles-placeholder-inline-css */
</style>
<style id="wp-global-styles-placeholder-inline-css">
:root { --wp-internal-comment: "Placeholder for wp_hoist_late_printed_styles() to replace with the global-styles printed at wp_footer." }
/*# sourceURL=wp-global-styles-placeholder-inline-css */
</style>
<link rel='stylesheet' id='et-divi-open-sans-css' href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&#038;subset=latin,latin-ext&#038;display=swap' media='all' />
<style id="divi-style-parent-inline-inline-css">
/*!
Theme Name: Divi
Theme URI: http://www.elegantthemes.com/gallery/divi/
Version: 4.27.6
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
a,abbr,acronym,address,applet,b,big,blockquote,body,center,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,i,iframe,img,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,strong,sub,sup,tt,u,ul,var{margin:0;padding:0;border:0;outline:0;font-size:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}blockquote{margin:20px 0 30px;border-left:5px solid;padding-left:20px}:focus{outline:0}del{text-decoration:line-through}pre{overflow:auto;padding:10px}figure{margin:0}table{border-collapse:collapse;border-spacing:0}article,aside,footer,header,hgroup,nav,section{display:block}body{font-family:Open Sans,Arial,sans-serif;font-size:14px;color:#666;background-color:#fff;line-height:1.7em;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body.page-template-page-template-blank-php #page-container{padding-top:0!important}body.et_cover_background{background-size:cover!important;background-position:top!important;background-repeat:no-repeat!important;background-attachment:fixed}a{color:#2ea3f2}a,a:hover{text-decoration:none}p{padding-bottom:1em}p:not(.has-background):last-of-type{padding-bottom:0}p.et_normal_padding{padding-bottom:1em}strong{font-weight:700}cite,em,i{font-style:italic}code,pre{font-family:Courier New,monospace;margin-bottom:10px}ins{text-decoration:none}sub,sup{height:0;line-height:1;position:relative;vertical-align:baseline}sup{bottom:.8em}sub{top:.3em}dl{margin:0 0 1.5em}dl dt{font-weight:700}dd{margin-left:1.5em}blockquote p{padding-bottom:0}embed,iframe,object,video{max-width:100%}h1,h2,h3,h4,h5,h6{color:#333;padding-bottom:10px;line-height:1em;font-weight:500}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:inherit}h1{font-size:30px}h2{font-size:26px}h3{font-size:22px}h4{font-size:18px}h5{font-size:16px}h6{font-size:14px}input{-webkit-appearance:none}input[type=checkbox]{-webkit-appearance:checkbox}input[type=radio]{-webkit-appearance:radio}input.text,input.title,input[type=email],input[type=password],input[type=tel],input[type=text],select,textarea{background-color:#fff;border:1px solid #bbb;padding:2px;color:#4e4e4e}input.text:focus,input.title:focus,input[type=text]:focus,select:focus,textarea:focus{border-color:#2d3940;color:#3e3e3e}input.text,input.title,input[type=text],select,textarea{margin:0}textarea{padding:4px}button,input,select,textarea{font-family:inherit}img{max-width:100%;height:auto}.clear{clear:both}br.clear{margin:0;padding:0}.pagination{clear:both}#et_search_icon:hover,.et-social-icon a:hover,.et_password_protected_form .et_submit_button,.form-submit .et_pb_buttontton.alt.disabled,.nav-single a,.posted_in a{color:#2ea3f2}.et-search-form,blockquote{border-color:#2ea3f2}#main-content{background-color:#fff}.container{width:80%;max-width:1080px;margin:auto;position:relative}body:not(.et-tb) #main-content .container,body:not(.et-tb-has-header) #main-content .container{padding-top:58px}.et_full_width_page #main-content .container:before{display:none}.main_title{margin-bottom:20px}.et_password_protected_form .et_submit_button:hover,.form-submit .et_pb_button:hover{background:rgba(0,0,0,.05)}.et_button_icon_visible .et_pb_button{padding-right:2em;padding-left:.7em}.et_button_icon_visible .et_pb_button:after{opacity:1;margin-left:0}.et_button_left .et_pb_button:hover:after{left:.15em}.et_button_left .et_pb_button:after{margin-left:0;left:1em}.et_button_icon_visible.et_button_left .et_pb_button,.et_button_left .et_pb_button:hover,.et_button_left .et_pb_module .et_pb_button:hover{padding-left:2em;padding-right:.7em}.et_button_icon_visible.et_button_left .et_pb_button:after,.et_button_left .et_pb_button:hover:after{left:.15em}.et_password_protected_form .et_submit_button:hover,.form-submit .et_pb_button:hover{padding:.3em 1em}.et_button_no_icon .et_pb_button:after{display:none}.et_button_no_icon.et_button_icon_visible.et_button_left .et_pb_button,.et_button_no_icon.et_button_left .et_pb_button:hover,.et_button_no_icon .et_pb_button,.et_button_no_icon .et_pb_button:hover{padding:.3em 1em!important}.et_button_custom_icon .et_pb_button:after{line-height:1.7em}.et_button_custom_icon.et_button_icon_visible .et_pb_button:after,.et_button_custom_icon .et_pb_button:hover:after{margin-left:.3em}#left-area .post_format-post-format-gallery .wp-block-gallery:first-of-type{padding:0;margin-bottom:-16px}.entry-content table:not(.variations){border:1px solid #eee;margin:0 0 15px;text-align:left;width:100%}.entry-content thead th,.entry-content tr th{color:#555;font-weight:700;padding:9px 24px}.entry-content tr td{border-top:1px solid #eee;padding:6px 24px}#left-area ul,.entry-content ul,.et-l--body ul,.et-l--footer ul,.et-l--header ul{list-style-type:disc;padding:0 0 23px 1em;line-height:26px}#left-area ol,.entry-content ol,.et-l--body ol,.et-l--footer ol,.et-l--header ol{list-style-type:decimal;list-style-position:inside;padding:0 0 23px;line-height:26px}#left-area ul li ul,.entry-content ul li ol{padding:2px 0 2px 20px}#left-area ol li ul,.entry-content ol li ol,.et-l--body ol li ol,.et-l--footer ol li ol,.et-l--header ol li ol{padding:2px 0 2px 35px}#left-area ul.wp-block-gallery{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style-type:none;padding:0}#left-area ul.products{padding:0!important;line-height:1.7!important;list-style:none!important}.gallery-item a{display:block}.gallery-caption,.gallery-item a{width:90%}#wpadminbar{z-index:100001}#left-area .post-meta{font-size:14px;padding-bottom:15px}#left-area .post-meta a{text-decoration:none;color:#666}#left-area .et_featured_image{padding-bottom:7px}.single .post{padding-bottom:25px}body.single .et_audio_content{margin-bottom:-6px}.nav-single a{text-decoration:none;color:#2ea3f2;font-size:14px;font-weight:400}.nav-previous{float:left}.nav-next{float:right}.et_password_protected_form p input{background-color:#eee;border:none!important;width:100%!important;border-radius:0!important;font-size:14px;color:#999!important;padding:16px!important;-webkit-box-sizing:border-box;box-sizing:border-box}.et_password_protected_form label{display:none}.et_password_protected_form .et_submit_button{font-family:inherit;display:block;float:right;margin:8px auto 0;cursor:pointer}.post-password-required p.nocomments.container{max-width:100%}.post-password-required p.nocomments.container:before{display:none}.aligncenter,div.post .new-post .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-caption{border:1px solid #ddd;text-align:center;background-color:#f3f3f3;margin-bottom:10px;max-width:96%;padding:8px}.wp-caption.alignleft{margin:0 30px 20px 0}.wp-caption.alignright{margin:0 0 20px 30px}.wp-caption img{margin:0;padding:0;border:0}.wp-caption p.wp-caption-text{font-size:12px;padding:0 4px 5px;margin:0}.alignright{float:right}.alignleft{float:left}img.alignleft{display:inline;float:left;margin-right:15px}img.alignright{display:inline;float:right;margin-left:15px}.page.et_pb_pagebuilder_layout #main-content{background-color:transparent}body #main-content .et_builder_inner_content>h1,body #main-content .et_builder_inner_content>h2,body #main-content .et_builder_inner_content>h3,body #main-content .et_builder_inner_content>h4,body #main-content .et_builder_inner_content>h5,body #main-content .et_builder_inner_content>h6{line-height:1.4em}body #main-content .et_builder_inner_content>p{line-height:1.7em}.wp-block-pullquote{margin:20px 0 30px}.wp-block-pullquote.has-background blockquote{border-left:none}.wp-block-group.has-background{padding:1.5em 1.5em .5em}@media (min-width:981px){#left-area{width:79.125%;padding-bottom:23px}#main-content .container:before{content:"";position:absolute;top:0;height:100%;width:1px;background-color:#e2e2e2}.et_full_width_page #left-area,.et_no_sidebar #left-area{float:none;width:100%!important}.et_full_width_page #left-area{padding-bottom:0}.et_no_sidebar #main-content .container:before{display:none}}@media (max-width:980px){#page-container{padding-top:80px}.et-tb #page-container,.et-tb-has-header #page-container{padding-top:0!important}#left-area,#sidebar{width:100%!important}#main-content .container:before{display:none!important}.et_full_width_page .et_gallery_item:nth-child(4n+1){clear:none}}@media print{#page-container{padding-top:0!important}}#wp-admin-bar-et-use-visual-builder a:before{font-family:ETmodules!important;content:"\e625";font-size:30px!important;width:28px;margin-top:-3px;color:#974df3!important}#wp-admin-bar-et-use-visual-builder:hover a:before{color:#fff!important}#wp-admin-bar-et-use-visual-builder:hover a,#wp-admin-bar-et-use-visual-builder a:hover{transition:background-color .5s ease;-webkit-transition:background-color .5s ease;-moz-transition:background-color .5s ease;background-color:#7e3bd0!important;color:#fff!important}* html .clearfix,:first-child+html .clearfix{zoom:1}.iphone .et_pb_section_video_bg video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}.et_mobile_device .et_pb_section_parallax .et_pb_parallax_css{background-attachment:scroll}.et-social-facebook a.icon:before{content:"\e093"}.et-social-twitter a.icon:before{content:"\e094"}.et-social-google-plus a.icon:before{content:"\e096"}.et-social-instagram a.icon:before{content:"\e09a"}.et-social-rss a.icon:before{content:"\e09e"}.ai1ec-single-event:after{content:" ";display:table;clear:both}.evcal_event_details .evcal_evdata_cell .eventon_details_shading_bot.eventon_details_shading_bot{z-index:3}.wp-block-divi-layout{margin-bottom:1em}*{-webkit-box-sizing:border-box;box-sizing:border-box}#et-info-email:before,#et-info-phone:before,#et_search_icon:before,.comment-reply-link:after,.et-cart-info span:before,.et-pb-arrow-next:before,.et-pb-arrow-prev:before,.et-social-icon a:before,.et_audio_container .mejs-playpause-button button:before,.et_audio_container .mejs-volume-button button:before,.et_overlay:before,.et_password_protected_form .et_submit_button:after,.et_pb_button:after,.et_pb_contact_reset:after,.et_pb_contact_submit:after,.et_pb_font_icon:before,.et_pb_newsletter_button:after,.et_pb_pricing_table_button:after,.et_pb_promo_button:after,.et_pb_testimonial:before,.et_pb_toggle_title:before,.form-submit .et_pb_button:after,.mobile_menu_bar:before,a.et_pb_more_button:after{font-family:ETmodules!important;speak:none;font-style:normal;font-weight:400;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-shadow:0 0;direction:ltr}.et-pb-icon,.et_pb_custom_button_icon.et_pb_button:after,.et_pb_login .et_pb_custom_button_icon.et_pb_button:after,.et_pb_woo_custom_button_icon .button.et_pb_custom_button_icon.et_pb_button:after,.et_pb_woo_custom_button_icon .button.et_pb_custom_button_icon.et_pb_button:hover:after{content:attr(data-icon)}.et-pb-icon{font-family:ETmodules;speak:none;font-weight:400;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;font-size:96px;font-style:normal;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;direction:ltr}#et-ajax-saving{display:none;-webkit-transition:background .3s,-webkit-box-shadow .3s;transition:background .3s,-webkit-box-shadow .3s;transition:background .3s,box-shadow .3s;transition:background .3s,box-shadow .3s,-webkit-box-shadow .3s;-webkit-box-shadow:rgba(0,139,219,.247059) 0 0 60px;box-shadow:0 0 60px rgba(0,139,219,.247059);position:fixed;top:50%;left:50%;width:50px;height:50px;background:#fff;border-radius:50px;margin:-25px 0 0 -25px;z-index:999999;text-align:center}#et-ajax-saving img{margin:9px}.et-safe-mode-indicator,.et-safe-mode-indicator:focus,.et-safe-mode-indicator:hover{-webkit-box-shadow:0 5px 10px rgba(41,196,169,.15);box-shadow:0 5px 10px rgba(41,196,169,.15);background:#29c4a9;color:#fff;font-size:14px;font-weight:600;padding:12px;line-height:16px;border-radius:3px;position:fixed;bottom:30px;right:30px;z-index:999999;text-decoration:none;font-family:Open Sans,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.et_pb_button{font-size:20px;font-weight:500;padding:.3em 1em;line-height:1.7em!important;background-color:transparent;background-size:cover;background-position:50%;background-repeat:no-repeat;border:2px solid;border-radius:3px;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:all!important;transition-property:all!important}.et_pb_button,.et_pb_button_inner{position:relative}.et_pb_button:hover,.et_pb_module .et_pb_button:hover{border:2px solid transparent;padding:.3em 2em .3em .7em}.et_pb_button:hover{background-color:hsla(0,0%,100%,.2)}.et_pb_bg_layout_light.et_pb_button:hover,.et_pb_bg_layout_light .et_pb_button:hover{background-color:rgba(0,0,0,.05)}.et_pb_button:after,.et_pb_button:before{font-size:32px;line-height:1em;content:"\35";opacity:0;position:absolute;margin-left:-1em;-webkit-transition:all .2s;transition:all .2s;text-transform:none;-webkit-font-feature-settings:"kern" off;font-feature-settings:"kern" off;font-variant:none;font-style:normal;font-weight:400;text-shadow:none}.et_pb_button.et_hover_enabled:hover:after,.et_pb_button.et_pb_hovered:hover:after{-webkit-transition:none!important;transition:none!important}.et_pb_button:before{display:none}.et_pb_button:hover:after{opacity:1;margin-left:0}.et_pb_column_1_3 h1,.et_pb_column_1_4 h1,.et_pb_column_1_5 h1,.et_pb_column_1_6 h1,.et_pb_column_2_5 h1{font-size:26px}.et_pb_column_1_3 h2,.et_pb_column_1_4 h2,.et_pb_column_1_5 h2,.et_pb_column_1_6 h2,.et_pb_column_2_5 h2{font-size:23px}.et_pb_column_1_3 h3,.et_pb_column_1_4 h3,.et_pb_column_1_5 h3,.et_pb_column_1_6 h3,.et_pb_column_2_5 h3{font-size:20px}.et_pb_column_1_3 h4,.et_pb_column_1_4 h4,.et_pb_column_1_5 h4,.et_pb_column_1_6 h4,.et_pb_column_2_5 h4{font-size:18px}.et_pb_column_1_3 h5,.et_pb_column_1_4 h5,.et_pb_column_1_5 h5,.et_pb_column_1_6 h5,.et_pb_column_2_5 h5{font-size:16px}.et_pb_column_1_3 h6,.et_pb_column_1_4 h6,.et_pb_column_1_5 h6,.et_pb_column_1_6 h6,.et_pb_column_2_5 h6{font-size:15px}.et_pb_bg_layout_dark,.et_pb_bg_layout_dark h1,.et_pb_bg_layout_dark h2,.et_pb_bg_layout_dark h3,.et_pb_bg_layout_dark h4,.et_pb_bg_layout_dark h5,.et_pb_bg_layout_dark h6{color:#fff!important}.et_pb_module.et_pb_text_align_left{text-align:left}.et_pb_module.et_pb_text_align_center{text-align:center}.et_pb_module.et_pb_text_align_right{text-align:right}.et_pb_module.et_pb_text_align_justified{text-align:justify}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.et_pb_bg_layout_light .et_pb_more_button{color:#2ea3f2}.et_builder_inner_content{position:relative;z-index:1}header .et_builder_inner_content{z-index:2}.et_pb_css_mix_blend_mode_passthrough{mix-blend-mode:unset!important}.et_pb_image_container{margin:-20px -20px 29px}.et_pb_module_inner{position:relative}.et_hover_enabled_preview{z-index:2}.et_hover_enabled:hover{position:relative;z-index:2}.et_pb_all_tabs,.et_pb_module,.et_pb_posts_nav a,.et_pb_tab,.et_pb_with_background{position:relative;background-size:cover;background-position:50%;background-repeat:no-repeat}.et_pb_background_mask,.et_pb_background_pattern{bottom:0;left:0;position:absolute;right:0;top:0}.et_pb_background_mask{background-size:calc(100% + 2px) calc(100% + 2px);background-repeat:no-repeat;background-position:50%;overflow:hidden}.et_pb_background_pattern{background-position:0 0;background-repeat:repeat}.et_pb_with_border{position:relative;border:0 solid #333}.post-password-required .et_pb_row{padding:0;width:100%}.post-password-required .et_password_protected_form{min-height:0}body.et_pb_pagebuilder_layout.et_pb_show_title .post-password-required .et_password_protected_form h1,body:not(.et_pb_pagebuilder_layout) .post-password-required .et_password_protected_form h1{display:none}.et_pb_no_bg{padding:0!important}.et_overlay.et_pb_inline_icon:before,.et_pb_inline_icon:before{content:attr(data-icon)}.et_pb_more_button{color:inherit;text-shadow:none;text-decoration:none;display:inline-block;margin-top:20px}.et_parallax_bg_wrap{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0}.et_parallax_bg{background-repeat:no-repeat;background-position:top;background-size:cover;position:absolute;bottom:0;left:0;width:100%;height:100%;display:block}.et_parallax_bg.et_parallax_bg__hover,.et_parallax_bg.et_parallax_bg_phone,.et_parallax_bg.et_parallax_bg_tablet,.et_parallax_gradient.et_parallax_gradient__hover,.et_parallax_gradient.et_parallax_gradient_phone,.et_parallax_gradient.et_parallax_gradient_tablet,.et_pb_section_parallax_hover:hover .et_parallax_bg:not(.et_parallax_bg__hover),.et_pb_section_parallax_hover:hover .et_parallax_gradient:not(.et_parallax_gradient__hover){display:none}.et_pb_section_parallax_hover:hover .et_parallax_bg.et_parallax_bg__hover,.et_pb_section_parallax_hover:hover .et_parallax_gradient.et_parallax_gradient__hover{display:block}.et_parallax_gradient{bottom:0;display:block;left:0;position:absolute;right:0;top:0}.et_pb_module.et_pb_section_parallax,.et_pb_posts_nav a.et_pb_section_parallax,.et_pb_tab.et_pb_section_parallax{position:relative}.et_pb_section_parallax .et_pb_parallax_css,.et_pb_slides .et_parallax_bg.et_pb_parallax_css{background-attachment:fixed}body.et-bfb .et_pb_section_parallax .et_pb_parallax_css,body.et-bfb .et_pb_slides .et_parallax_bg.et_pb_parallax_css{background-attachment:scroll;bottom:auto}.et_pb_section_parallax.et_pb_column .et_pb_module,.et_pb_section_parallax.et_pb_row .et_pb_column,.et_pb_section_parallax.et_pb_row .et_pb_module{z-index:9;position:relative}.et_pb_more_button:hover:after{opacity:1;margin-left:0}.et_pb_preload .et_pb_section_video_bg,.et_pb_preload>div{visibility:hidden}.et_pb_preload,.et_pb_section.et_pb_section_video.et_pb_preload{position:relative;background:#464646!important}.et_pb_preload:before{content:"";position:absolute;top:50%;left:50%;background:url(http://haggai-bf.org/wp-content/themes/Divi/includes/builder/styles/images/preloader.gif) no-repeat;border-radius:32px;width:32px;height:32px;margin:-16px 0 0 -16px}.box-shadow-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none}.et_pb_section>.box-shadow-overlay~.et_pb_row{z-index:11}body.safari .section_has_divider{will-change:transform}.et_pb_row>.box-shadow-overlay{z-index:8}.has-box-shadow-overlay{position:relative}.et_clickable{cursor:pointer}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}.et_multi_view_hidden,.et_multi_view_hidden_image{display:none!important}@keyframes multi-view-image-fade{0%{opacity:0}10%{opacity:.1}20%{opacity:.2}30%{opacity:.3}40%{opacity:.4}50%{opacity:.5}60%{opacity:.6}70%{opacity:.7}80%{opacity:.8}90%{opacity:.9}to{opacity:1}}.et_multi_view_image__loading{visibility:hidden}.et_multi_view_image__loaded{-webkit-animation:multi-view-image-fade .5s;animation:multi-view-image-fade .5s}#et-pb-motion-effects-offset-tracker{visibility:hidden!important;opacity:0;position:absolute;top:0;left:0}.et-pb-before-scroll-animation{opacity:0}header.et-l.et-l--header:after{clear:both;display:block;content:""}.et_pb_module{-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes fadeBottom{0%{opacity:0;-webkit-transform:translateY(10%);transform:translateY(10%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes fadeBottom{0%{opacity:0;-webkit-transform:translateY(10%);transform:translateY(10%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes fadeLeft{0%{opacity:0;-webkit-transform:translateX(-10%);transform:translateX(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fadeLeft{0%{opacity:0;-webkit-transform:translateX(-10%);transform:translateX(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes fadeRight{0%{opacity:0;-webkit-transform:translateX(10%);transform:translateX(10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fadeRight{0%{opacity:0;-webkit-transform:translateX(10%);transform:translateX(10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes fadeTop{0%{opacity:0;-webkit-transform:translateY(-10%);transform:translateY(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fadeTop{0%{opacity:0;-webkit-transform:translateY(-10%);transform:translateY(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.et-waypoint:not(.et_pb_counters){opacity:0}@media (min-width:981px){.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_column .et_pb_module.et-last-child,.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_column .et_pb_module:last-child,.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_row_inner .et_pb_column .et_pb_module.et-last-child,.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_row_inner .et_pb_column .et_pb_module:last-child,.et_pb_section div.et_pb_row .et_pb_column .et_pb_module.et-last-child,.et_pb_section div.et_pb_row .et_pb_column .et_pb_module:last-child{margin-bottom:0}}@media (max-width:980px){.et_overlay.et_pb_inline_icon_tablet:before,.et_pb_inline_icon_tablet:before{content:attr(data-icon-tablet)}.et_parallax_bg.et_parallax_bg_tablet_exist,.et_parallax_gradient.et_parallax_gradient_tablet_exist{display:none}.et_parallax_bg.et_parallax_bg_tablet,.et_parallax_gradient.et_parallax_gradient_tablet{display:block}.et_pb_column .et_pb_module{margin-bottom:30px}.et_pb_row .et_pb_column .et_pb_module.et-last-child,.et_pb_row .et_pb_column .et_pb_module:last-child,.et_section_specialty .et_pb_row .et_pb_column .et_pb_module.et-last-child,.et_section_specialty .et_pb_row .et_pb_column .et_pb_module:last-child{margin-bottom:0}.et_pb_more_button{display:inline-block!important}.et_pb_bg_layout_light_tablet.et_pb_button,.et_pb_bg_layout_light_tablet.et_pb_module.et_pb_button,.et_pb_bg_layout_light_tablet .et_pb_more_button{color:#2ea3f2}.et_pb_bg_layout_light_tablet .et_pb_forgot_password a{color:#666}.et_pb_bg_layout_light_tablet h1,.et_pb_bg_layout_light_tablet h2,.et_pb_bg_layout_light_tablet h3,.et_pb_bg_layout_light_tablet h4,.et_pb_bg_layout_light_tablet h5,.et_pb_bg_layout_light_tablet h6{color:#333!important}.et_pb_module .et_pb_bg_layout_light_tablet.et_pb_button{color:#2ea3f2!important}.et_pb_bg_layout_light_tablet{color:#666!important}.et_pb_bg_layout_dark_tablet,.et_pb_bg_layout_dark_tablet h1,.et_pb_bg_layout_dark_tablet h2,.et_pb_bg_layout_dark_tablet h3,.et_pb_bg_layout_dark_tablet h4,.et_pb_bg_layout_dark_tablet h5,.et_pb_bg_layout_dark_tablet h6{color:#fff!important}.et_pb_bg_layout_dark_tablet.et_pb_button,.et_pb_bg_layout_dark_tablet.et_pb_module.et_pb_button,.et_pb_bg_layout_dark_tablet .et_pb_more_button{color:inherit}.et_pb_bg_layout_dark_tablet .et_pb_forgot_password a{color:#fff}.et_pb_module.et_pb_text_align_left-tablet{text-align:left}.et_pb_module.et_pb_text_align_center-tablet{text-align:center}.et_pb_module.et_pb_text_align_right-tablet{text-align:right}.et_pb_module.et_pb_text_align_justified-tablet{text-align:justify}}@media (max-width:767px){.et_pb_more_button{display:inline-block!important}.et_overlay.et_pb_inline_icon_phone:before,.et_pb_inline_icon_phone:before{content:attr(data-icon-phone)}.et_parallax_bg.et_parallax_bg_phone_exist,.et_parallax_gradient.et_parallax_gradient_phone_exist{display:none}.et_parallax_bg.et_parallax_bg_phone,.et_parallax_gradient.et_parallax_gradient_phone{display:block}.et-hide-mobile{display:none!important}.et_pb_bg_layout_light_phone.et_pb_button,.et_pb_bg_layout_light_phone.et_pb_module.et_pb_button,.et_pb_bg_layout_light_phone .et_pb_more_button{color:#2ea3f2}.et_pb_bg_layout_light_phone .et_pb_forgot_password a{color:#666}.et_pb_bg_layout_light_phone h1,.et_pb_bg_layout_light_phone h2,.et_pb_bg_layout_light_phone h3,.et_pb_bg_layout_light_phone h4,.et_pb_bg_layout_light_phone h5,.et_pb_bg_layout_light_phone h6{color:#333!important}.et_pb_module .et_pb_bg_layout_light_phone.et_pb_button{color:#2ea3f2!important}.et_pb_bg_layout_light_phone{color:#666!important}.et_pb_bg_layout_dark_phone,.et_pb_bg_layout_dark_phone h1,.et_pb_bg_layout_dark_phone h2,.et_pb_bg_layout_dark_phone h3,.et_pb_bg_layout_dark_phone h4,.et_pb_bg_layout_dark_phone h5,.et_pb_bg_layout_dark_phone h6{color:#fff!important}.et_pb_bg_layout_dark_phone.et_pb_button,.et_pb_bg_layout_dark_phone.et_pb_module.et_pb_button,.et_pb_bg_layout_dark_phone .et_pb_more_button{color:inherit}.et_pb_module .et_pb_bg_layout_dark_phone.et_pb_button{color:#fff!important}.et_pb_bg_layout_dark_phone .et_pb_forgot_password a{color:#fff}.et_pb_module.et_pb_text_align_left-phone{text-align:left}.et_pb_module.et_pb_text_align_center-phone{text-align:center}.et_pb_module.et_pb_text_align_right-phone{text-align:right}.et_pb_module.et_pb_text_align_justified-phone{text-align:justify}}@media (max-width:479px){a.et_pb_more_button{display:block}}@media (min-width:768px) and (max-width:980px){[data-et-multi-view-load-tablet-hidden=true]:not(.et_multi_view_swapped){display:none!important}}@media (max-width:767px){[data-et-multi-view-load-phone-hidden=true]:not(.et_multi_view_swapped){display:none!important}}.et_pb_menu.et_pb_menu--style-inline_centered_logo .et_pb_menu__menu nav ul{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@-webkit-keyframes multi-view-image-fade{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}50%{-webkit-transform:scale(1.01);transform:scale(1.01);opacity:1}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}
/*# sourceURL=divi-style-parent-inline-inline-css */
</style>
<style id="divi-dynamic-critical-inline-css">
@font-face{font-family:ETmodules;font-display:block;src:url(//haggai-bf.org/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.eot);src:url(//haggai-bf.org/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.eot?#iefix) format("embedded-opentype"),url(//haggai-bf.org/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.woff) format("woff"),url(//haggai-bf.org/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.ttf) format("truetype"),url(//haggai-bf.org/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.svg#ETmodules) format("svg");font-weight:400;font-style:normal}
@media (min-width:981px){.et_pb_gutters3 .et_pb_column,.et_pb_gutters3.et_pb_row .et_pb_column{margin-right:5.5%}.et_pb_gutters3 .et_pb_column_4_4,.et_pb_gutters3.et_pb_row .et_pb_column_4_4{width:100%}.et_pb_gutters3 .et_pb_column_4_4 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_4_4 .et_pb_module{margin-bottom:2.75%}.et_pb_gutters3 .et_pb_column_3_4,.et_pb_gutters3.et_pb_row .et_pb_column_3_4{width:73.625%}.et_pb_gutters3 .et_pb_column_3_4 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_3_4 .et_pb_module{margin-bottom:3.735%}.et_pb_gutters3 .et_pb_column_2_3,.et_pb_gutters3.et_pb_row .et_pb_column_2_3{width:64.833%}.et_pb_gutters3 .et_pb_column_2_3 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_2_3 .et_pb_module{margin-bottom:4.242%}.et_pb_gutters3 .et_pb_column_3_5,.et_pb_gutters3.et_pb_row .et_pb_column_3_5{width:57.8%}.et_pb_gutters3 .et_pb_column_3_5 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_3_5 .et_pb_module{margin-bottom:4.758%}.et_pb_gutters3 .et_pb_column_1_2,.et_pb_gutters3.et_pb_row .et_pb_column_1_2{width:47.25%}.et_pb_gutters3 .et_pb_column_1_2 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_1_2 .et_pb_module{margin-bottom:5.82%}.et_pb_gutters3 .et_pb_column_2_5,.et_pb_gutters3.et_pb_row .et_pb_column_2_5{width:36.7%}.et_pb_gutters3 .et_pb_column_2_5 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_2_5 .et_pb_module{margin-bottom:7.493%}.et_pb_gutters3 .et_pb_column_1_3,.et_pb_gutters3.et_pb_row .et_pb_column_1_3{width:29.6667%}.et_pb_gutters3 .et_pb_column_1_3 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_1_3 .et_pb_module{margin-bottom:9.27%}.et_pb_gutters3 .et_pb_column_1_4,.et_pb_gutters3.et_pb_row .et_pb_column_1_4{width:20.875%}.et_pb_gutters3 .et_pb_column_1_4 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_1_4 .et_pb_module{margin-bottom:13.174%}.et_pb_gutters3 .et_pb_column_1_5,.et_pb_gutters3.et_pb_row .et_pb_column_1_5{width:15.6%}.et_pb_gutters3 .et_pb_column_1_5 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_1_5 .et_pb_module{margin-bottom:17.628%}.et_pb_gutters3 .et_pb_column_1_6,.et_pb_gutters3.et_pb_row .et_pb_column_1_6{width:12.0833%}.et_pb_gutters3 .et_pb_column_1_6 .et_pb_module,.et_pb_gutters3.et_pb_row .et_pb_column_1_6 .et_pb_module{margin-bottom:22.759%}.et_pb_gutters3 .et_full_width_page.woocommerce-page ul.products li.product{width:20.875%;margin-right:5.5%;margin-bottom:5.5%}.et_pb_gutters3.et_left_sidebar.woocommerce-page #main-content ul.products li.product,.et_pb_gutters3.et_right_sidebar.woocommerce-page #main-content ul.products li.product{width:28.353%;margin-right:7.47%}.et_pb_gutters3.et_left_sidebar.woocommerce-page #main-content ul.products.columns-1 li.product,.et_pb_gutters3.et_right_sidebar.woocommerce-page #main-content ul.products.columns-1 li.product{width:100%;margin-right:0}.et_pb_gutters3.et_left_sidebar.woocommerce-page #main-content ul.products.columns-2 li.product,.et_pb_gutters3.et_right_sidebar.woocommerce-page #main-content ul.products.columns-2 li.product{width:48%;margin-right:4%}.et_pb_gutters3.et_left_sidebar.woocommerce-page #main-content ul.products.columns-2 li:nth-child(2n+2),.et_pb_gutters3.et_right_sidebar.woocommerce-page #main-content ul.products.columns-2 li:nth-child(2n+2){margin-right:0}.et_pb_gutters3.et_left_sidebar.woocommerce-page #main-content ul.products.columns-2 li:nth-child(3n+1),.et_pb_gutters3.et_right_sidebar.woocommerce-page #main-content ul.products.columns-2 li:nth-child(3n+1){clear:none}}
@media (min-width:981px){.et_pb_gutter.et_pb_gutters1 #left-area{width:75%}.et_pb_gutter.et_pb_gutters1 #sidebar{width:25%}.et_pb_gutters1.et_right_sidebar #left-area{padding-right:0}.et_pb_gutters1.et_left_sidebar #left-area{padding-left:0}.et_pb_gutter.et_pb_gutters1.et_right_sidebar #main-content .container:before{right:25%!important}.et_pb_gutter.et_pb_gutters1.et_left_sidebar #main-content .container:before{left:25%!important}.et_pb_gutters1 .et_pb_column,.et_pb_gutters1.et_pb_row .et_pb_column{margin-right:0}.et_pb_gutters1 .et_pb_column_4_4,.et_pb_gutters1.et_pb_row .et_pb_column_4_4{width:100%}.et_pb_gutters1 .et_pb_column_4_4 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_4_4 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_column_3_4,.et_pb_gutters1.et_pb_row .et_pb_column_3_4{width:75%}.et_pb_gutters1 .et_pb_column_3_4 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_3_4 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_column_2_3,.et_pb_gutters1.et_pb_row .et_pb_column_2_3{width:66.667%}.et_pb_gutters1 .et_pb_column_2_3 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_2_3 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_column_3_5,.et_pb_gutters1.et_pb_row .et_pb_column_3_5{width:60%}.et_pb_gutters1 .et_pb_column_3_5 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_3_5 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_column_1_2,.et_pb_gutters1.et_pb_row .et_pb_column_1_2{width:50%}.et_pb_gutters1 .et_pb_column_1_2 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_1_2 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_column_2_5,.et_pb_gutters1.et_pb_row .et_pb_column_2_5{width:40%}.et_pb_gutters1 .et_pb_column_2_5 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_2_5 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_column_1_3,.et_pb_gutters1.et_pb_row .et_pb_column_1_3{width:33.3333%}.et_pb_gutters1 .et_pb_column_1_3 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_1_3 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_column_1_4,.et_pb_gutters1.et_pb_row .et_pb_column_1_4{width:25%}.et_pb_gutters1 .et_pb_column_1_4 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_1_4 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_column_1_5,.et_pb_gutters1.et_pb_row .et_pb_column_1_5{width:20%}.et_pb_gutters1 .et_pb_column_1_5 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_1_5 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_column_1_6,.et_pb_gutters1.et_pb_row .et_pb_column_1_6{width:16.6667%}.et_pb_gutters1 .et_pb_column_1_6 .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column_1_6 .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_full_width_page.woocommerce-page ul.products li.product{width:25%;margin-right:0;margin-bottom:0}.et_pb_gutters1.et_left_sidebar.woocommerce-page #main-content ul.products li.product,.et_pb_gutters1.et_right_sidebar.woocommerce-page #main-content ul.products li.product{width:33.333%;margin-right:0}}@media (max-width:980px){.et_pb_gutters1 .et_pb_column,.et_pb_gutters1 .et_pb_column .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column,.et_pb_gutters1.et_pb_row .et_pb_column .et_pb_module{margin-bottom:0}.et_pb_gutters1 .et_pb_row_1-2_1-4_1-4>.et_pb_column.et_pb_column_1_4,.et_pb_gutters1 .et_pb_row_1-4_1-4>.et_pb_column.et_pb_column_1_4,.et_pb_gutters1 .et_pb_row_1-4_1-4_1-2>.et_pb_column.et_pb_column_1_4,.et_pb_gutters1 .et_pb_row_1-5_1-5_3-5>.et_pb_column.et_pb_column_1_5,.et_pb_gutters1 .et_pb_row_3-5_1-5_1-5>.et_pb_column.et_pb_column_1_5,.et_pb_gutters1 .et_pb_row_4col>.et_pb_column.et_pb_column_1_4,.et_pb_gutters1 .et_pb_row_5col>.et_pb_column.et_pb_column_1_5,.et_pb_gutters1.et_pb_row_1-2_1-4_1-4>.et_pb_column.et_pb_column_1_4,.et_pb_gutters1.et_pb_row_1-4_1-4>.et_pb_column.et_pb_column_1_4,.et_pb_gutters1.et_pb_row_1-4_1-4_1-2>.et_pb_column.et_pb_column_1_4,.et_pb_gutters1.et_pb_row_1-5_1-5_3-5>.et_pb_column.et_pb_column_1_5,.et_pb_gutters1.et_pb_row_3-5_1-5_1-5>.et_pb_column.et_pb_column_1_5,.et_pb_gutters1.et_pb_row_4col>.et_pb_column.et_pb_column_1_4,.et_pb_gutters1.et_pb_row_5col>.et_pb_column.et_pb_column_1_5{width:50%;margin-right:0}.et_pb_gutters1 .et_pb_row_1-2_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6,.et_pb_gutters1 .et_pb_row_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6,.et_pb_gutters1 .et_pb_row_1-6_1-6_1-6_1-2>.et_pb_column.et_pb_column_1_6,.et_pb_gutters1 .et_pb_row_6col>.et_pb_column.et_pb_column_1_6,.et_pb_gutters1.et_pb_row_1-2_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6,.et_pb_gutters1.et_pb_row_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6,.et_pb_gutters1.et_pb_row_1-6_1-6_1-6_1-2>.et_pb_column.et_pb_column_1_6,.et_pb_gutters1.et_pb_row_6col>.et_pb_column.et_pb_column_1_6{width:33.333%;margin-right:0}.et_pb_gutters1 .et_pb_row_1-6_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6,.et_pb_gutters1.et_pb_row_1-6_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6{width:50%;margin-right:0}}@media (max-width:767px){.et_pb_gutters1 .et_pb_column,.et_pb_gutters1 .et_pb_column .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column,.et_pb_gutters1.et_pb_row .et_pb_column .et_pb_module{margin-bottom:0}}@media (max-width:479px){.et_pb_gutters1 .et_pb_column,.et_pb_gutters1.et_pb_row .et_pb_column{margin:0!important}.et_pb_gutters1 .et_pb_column .et_pb_module,.et_pb_gutters1.et_pb_row .et_pb_column .et_pb_module{margin-bottom:0}}
#et-secondary-menu li,#top-menu li{word-wrap:break-word}.nav li ul,.et_mobile_menu{border-color:#2EA3F2}.mobile_menu_bar:before,.mobile_menu_bar:after,#top-menu li.current-menu-ancestor>a,#top-menu li.current-menu-item>a{color:#2EA3F2}#main-header{-webkit-transition:background-color 0.4s, color 0.4s, opacity 0.4s ease-in-out, -webkit-transform 0.4s;transition:background-color 0.4s, color 0.4s, opacity 0.4s ease-in-out, -webkit-transform 0.4s;transition:background-color 0.4s, color 0.4s, transform 0.4s, opacity 0.4s ease-in-out;transition:background-color 0.4s, color 0.4s, transform 0.4s, opacity 0.4s ease-in-out, -webkit-transform 0.4s}#main-header.et-disabled-animations *{-webkit-transition-duration:0s !important;transition-duration:0s !important}.container{text-align:left;position:relative}.et_fixed_nav.et_show_nav #page-container{padding-top:80px}.et_fixed_nav.et_show_nav.et-tb #page-container,.et_fixed_nav.et_show_nav.et-tb-has-header #page-container{padding-top:0 !important}.et_fixed_nav.et_show_nav.et_secondary_nav_enabled #page-container{padding-top:111px}.et_fixed_nav.et_show_nav.et_secondary_nav_enabled.et_header_style_centered #page-container{padding-top:177px}.et_fixed_nav.et_show_nav.et_header_style_centered #page-container{padding-top:147px}.et_fixed_nav #main-header{position:fixed}.et-cloud-item-editor #page-container{padding-top:0 !important}.et_header_style_left #et-top-navigation{padding-top:33px}.et_header_style_left #et-top-navigation nav>ul>li>a{padding-bottom:33px}.et_header_style_left .logo_container{position:absolute;height:100%;width:100%}.et_header_style_left #et-top-navigation .mobile_menu_bar{padding-bottom:24px}.et_hide_search_icon #et_top_search{display:none !important}#logo{width:auto;-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out;margin-bottom:0;max-height:54%;display:inline-block;float:none;vertical-align:middle;-webkit-transform:translate3d(0, 0, 0)}.et_pb_svg_logo #logo{height:54%}.logo_container{-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}span.logo_helper{display:inline-block;height:100%;vertical-align:middle;width:0}.safari .centered-inline-logo-wrap{-webkit-transform:translate3d(0, 0, 0);-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}#et-define-logo-wrap img{width:100%}.gecko #et-define-logo-wrap.svg-logo{position:relative !important}#top-menu-nav,#top-menu{line-height:0}#et-top-navigation{font-weight:600}.et_fixed_nav #et-top-navigation{-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}.et-cart-info span:before{content:"\e07a";margin-right:10px;position:relative}nav#top-menu-nav,#top-menu,nav.et-menu-nav,.et-menu{float:left}#top-menu li{display:inline-block;font-size:14px;padding-right:22px}#top-menu>li:last-child{padding-right:0}.et_fullwidth_nav.et_non_fixed_nav.et_header_style_left #top-menu>li:last-child>ul.sub-menu{right:0}#top-menu a{color:rgba(0,0,0,0.6);text-decoration:none;display:block;position:relative;-webkit-transition:opacity 0.4s ease-in-out, background-color 0.4s ease-in-out;transition:opacity 0.4s ease-in-out, background-color 0.4s ease-in-out}#top-menu-nav>ul>li>a:hover{opacity:0.7;-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}#et_search_icon:before{content:"\55";font-size:17px;left:0;position:absolute;top:-3px}#et_search_icon:hover{cursor:pointer}#et_top_search{float:right;margin:3px 0 0 22px;position:relative;display:block;width:18px}#et_top_search.et_search_opened{position:absolute;width:100%}.et-search-form{top:0;bottom:0;right:0;position:absolute;z-index:1000;width:100%}.et-search-form input{width:90%;border:none;color:#333;position:absolute;top:0;bottom:0;right:30px;margin:auto;background:transparent}.et-search-form .et-search-field::-ms-clear{width:0;height:0;display:none}.et_search_form_container{-webkit-animation:none;animation:none;-o-animation:none}.container.et_search_form_container{position:relative;opacity:0;height:1px}.container.et_search_form_container.et_pb_search_visible{z-index:999;-webkit-animation:fadeInTop 1s 1 cubic-bezier(0.77, 0, 0.175, 1);animation:fadeInTop 1s 1 cubic-bezier(0.77, 0, 0.175, 1)}.et_pb_search_visible.et_pb_no_animation{opacity:1}.et_pb_search_form_hidden{-webkit-animation:fadeOutTop 1s 1 cubic-bezier(0.77, 0, 0.175, 1);animation:fadeOutTop 1s 1 cubic-bezier(0.77, 0, 0.175, 1)}span.et_close_search_field{display:block;width:30px;height:30px;z-index:99999;position:absolute;right:0;cursor:pointer;top:0;bottom:0;margin:auto}span.et_close_search_field:after{font-family:'ETmodules';content:'\4d';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;font-size:32px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box}.container.et_menu_container{z-index:99}.container.et_search_form_container.et_pb_search_form_hidden{z-index:1 !important}.et_search_outer{width:100%;overflow:hidden;position:absolute;top:0}.container.et_pb_menu_hidden{z-index:-1}form.et-search-form{background:rgba(0,0,0,0) !important}input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}.et-cart-info{color:inherit}#et-top-navigation .et-cart-info{float:left;margin:-2px 0 0 22px;font-size:16px}#et-top-navigation{float:right}#top-menu li li{padding:0 20px;margin:0}#top-menu li li a{padding:6px 20px;width:200px}.nav li.et-touch-hover>ul{opacity:1;visibility:visible}#top-menu .menu-item-has-children>a:first-child:after,#et-secondary-nav .menu-item-has-children>a:first-child:after{font-family:'ETmodules';content:"3";font-size:16px;position:absolute;right:0;top:0;font-weight:800}#top-menu .menu-item-has-children>a:first-child,#et-secondary-nav .menu-item-has-children>a:first-child{padding-right:20px}#top-menu li .menu-item-has-children>a:first-child{padding-right:40px}#top-menu li .menu-item-has-children>a:first-child:after{right:20px;top:6px}#top-menu li.mega-menu{position:inherit}#top-menu li.mega-menu>ul{padding:30px 20px;position:absolute !important;width:100%;left:0 !important}#top-menu li.mega-menu ul li{margin:0;float:left !important;display:block !important;padding:0 !important}#top-menu li.mega-menu>ul>li:nth-of-type(4n){clear:right}#top-menu li.mega-menu>ul>li:nth-of-type(4n+1){clear:left}#top-menu li.mega-menu ul li li{width:100%}#top-menu li.mega-menu li>ul{-webkit-animation:none !important;animation:none !important;padding:0px;border:none;left:auto;top:auto;width:90% !important;position:relative;-webkit-box-shadow:none;box-shadow:none}#top-menu li.mega-menu li ul{visibility:visible;opacity:1;display:none}#top-menu li.mega-menu.et-hover li ul{display:block}#top-menu li.mega-menu.et-hover>ul{opacity:1 !important;visibility:visible !important}#top-menu li.mega-menu>ul>li>a{width:90%;padding:0 20px 10px}#top-menu li.mega-menu>ul>li>a:first-child{padding-top:0 !important;font-weight:bold;border-bottom:1px solid rgba(0,0,0,0.03)}#top-menu li.mega-menu>ul>li>a:first-child:hover{background-color:transparent !important}#top-menu li.mega-menu li>a{width:100%}#top-menu li.mega-menu.mega-menu-parent li li,#top-menu li.mega-menu.mega-menu-parent li>a{width:100% !important}#top-menu li.mega-menu.mega-menu-parent li>.sub-menu{float:left;width:100% !important}#top-menu li.mega-menu>ul>li{width:25%;margin:0}#top-menu li.mega-menu.mega-menu-parent-3>ul>li{width:33.33%}#top-menu li.mega-menu.mega-menu-parent-2>ul>li{width:50%}#top-menu li.mega-menu.mega-menu-parent-1>ul>li{width:100%}#top-menu li.mega-menu .menu-item-has-children>a:first-child:after{display:none}#top-menu li.mega-menu>ul>li>ul>li{width:100%;margin:0}#et_mobile_nav_menu{float:right;display:none}.mobile_menu_bar{position:relative;display:block;line-height:0}.mobile_menu_bar:before,.et_toggle_slide_menu:after{content:"\61";font-size:32px;left:0;position:relative;top:0;cursor:pointer}.mobile_nav .select_page{display:none}.et_pb_menu_hidden #top-menu,.et_pb_menu_hidden #et_search_icon:before,.et_pb_menu_hidden .et-cart-info{opacity:0;-webkit-animation:fadeOutBottom 1s 1 cubic-bezier(0.77, 0, 0.175, 1);animation:fadeOutBottom 1s 1 cubic-bezier(0.77, 0, 0.175, 1)}.et_pb_menu_visible #top-menu,.et_pb_menu_visible #et_search_icon:before,.et_pb_menu_visible .et-cart-info{z-index:99;opacity:1;-webkit-animation:fadeInBottom 1s 1 cubic-bezier(0.77, 0, 0.175, 1);animation:fadeInBottom 1s 1 cubic-bezier(0.77, 0, 0.175, 1)}.et_pb_menu_hidden #top-menu,.et_pb_menu_hidden #et_search_icon:before,.et_pb_menu_hidden .mobile_menu_bar{opacity:0;-webkit-animation:fadeOutBottom 1s 1 cubic-bezier(0.77, 0, 0.175, 1);animation:fadeOutBottom 1s 1 cubic-bezier(0.77, 0, 0.175, 1)}.et_pb_menu_visible #top-menu,.et_pb_menu_visible #et_search_icon:before,.et_pb_menu_visible .mobile_menu_bar{z-index:99;opacity:1;-webkit-animation:fadeInBottom 1s 1 cubic-bezier(0.77, 0, 0.175, 1);animation:fadeInBottom 1s 1 cubic-bezier(0.77, 0, 0.175, 1)}.et_pb_no_animation #top-menu,.et_pb_no_animation #et_search_icon:before,.et_pb_no_animation .mobile_menu_bar,.et_pb_no_animation.et_search_form_container{animation:none !important;-o-animation:none !important;-webkit-animation:none !important;-moz-animation:none !important}body.admin-bar.et_fixed_nav #main-header{top:32px}body.et-wp-pre-3_8.admin-bar.et_fixed_nav #main-header{top:28px}body.et_fixed_nav.et_secondary_nav_enabled #main-header{top:30px}body.admin-bar.et_fixed_nav.et_secondary_nav_enabled #main-header{top:63px}@media all and (min-width: 981px){.et_hide_primary_logo #main-header:not(.et-fixed-header) .logo_container,.et_hide_fixed_logo #main-header.et-fixed-header .logo_container{height:0;opacity:0;-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}.et_hide_primary_logo #main-header:not(.et-fixed-header) .centered-inline-logo-wrap,.et_hide_fixed_logo #main-header.et-fixed-header .centered-inline-logo-wrap{height:0;opacity:0;padding:0}.et-animated-content#page-container{-webkit-transition:margin-top 0.4s ease-in-out;transition:margin-top 0.4s ease-in-out}.et_hide_nav #page-container{-webkit-transition:none;transition:none}.et_fullwidth_nav .et-search-form,.et_fullwidth_nav .et_close_search_field{right:30px}#main-header.et-fixed-header{-webkit-box-shadow:0 0 7px rgba(0,0,0,0.1) !important;box-shadow:0 0 7px rgba(0,0,0,0.1) !important}.et_header_style_left .et-fixed-header #et-top-navigation{padding-top:20px}.et_header_style_left .et-fixed-header #et-top-navigation nav>ul>li>a{padding-bottom:20px}.et_hide_nav.et_fixed_nav #main-header{opacity:0}.et_hide_nav.et_fixed_nav .et-fixed-header#main-header{-webkit-transform:translateY(0px) !important;transform:translateY(0px) !important;opacity:1}.et_hide_nav .centered-inline-logo-wrap,.et_hide_nav.et_fixed_nav #main-header,.et_hide_nav.et_fixed_nav #main-header,.et_hide_nav .centered-inline-logo-wrap{-webkit-transition-duration:.7s;transition-duration:.7s}.et_hide_nav #page-container{padding-top:0 !important}.et_primary_nav_dropdown_animation_fade #et-top-navigation ul li:hover>ul,.et_secondary_nav_dropdown_animation_fade #et-secondary-nav li:hover>ul{-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.et_primary_nav_dropdown_animation_slide #et-top-navigation ul li:hover>ul,.et_secondary_nav_dropdown_animation_slide #et-secondary-nav li:hover>ul{-webkit-animation:fadeLeft .4s ease-in-out;animation:fadeLeft .4s ease-in-out}.et_primary_nav_dropdown_animation_expand #et-top-navigation ul li:hover>ul,.et_secondary_nav_dropdown_animation_expand #et-secondary-nav li:hover>ul{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-animation:Grow .4s ease-in-out;animation:Grow .4s ease-in-out;-webkit-backface-visibility:visible !important;backface-visibility:visible !important}.et_primary_nav_dropdown_animation_flip #et-top-navigation ul li ul li:hover>ul,.et_secondary_nav_dropdown_animation_flip #et-secondary-nav ul li:hover>ul{-webkit-animation:flipInX .6s ease-in-out;animation:flipInX .6s ease-in-out;-webkit-backface-visibility:visible !important;backface-visibility:visible !important}.et_primary_nav_dropdown_animation_flip #et-top-navigation ul li:hover>ul,.et_secondary_nav_dropdown_animation_flip #et-secondary-nav li:hover>ul{-webkit-animation:flipInY .6s ease-in-out;animation:flipInY .6s ease-in-out;-webkit-backface-visibility:visible !important;backface-visibility:visible !important}.et_fullwidth_nav #main-header .container{width:100%;max-width:100%;padding-right:32px;padding-left:30px}.et_non_fixed_nav.et_fullwidth_nav.et_header_style_left #main-header .container{padding-left:0}.et_non_fixed_nav.et_fullwidth_nav.et_header_style_left .logo_container{padding-left:30px}}@media all and (max-width: 980px){.et_fixed_nav.et_show_nav.et_secondary_nav_enabled #page-container,.et_fixed_nav.et_show_nav #page-container{padding-top:80px}.et_fixed_nav.et_show_nav.et-tb #page-container,.et_fixed_nav.et_show_nav.et-tb-has-header #page-container{padding-top:0 !important}.et_non_fixed_nav #page-container{padding-top:0}.et_fixed_nav.et_secondary_nav_only_menu.admin-bar #main-header{top:32px !important}.et_hide_mobile_logo #main-header .logo_container{display:none;opacity:0;-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}#top-menu{display:none}.et_hide_nav.et_fixed_nav #main-header{-webkit-transform:translateY(0px) !important;transform:translateY(0px) !important;opacity:1}#et-top-navigation{margin-right:0;-webkit-transition:none;transition:none}.et_fixed_nav #main-header{position:absolute}.et_header_style_left .et-fixed-header #et-top-navigation,.et_header_style_left #et-top-navigation{padding-top:24px;display:block}.et_fixed_nav #main-header{-webkit-transition:none;transition:none}.et_fixed_nav_temp #main-header{top:0 !important}#logo,.logo_container,#main-header,.container{-webkit-transition:none;transition:none}.et_header_style_left #logo{max-width:50%}#et_top_search{margin:0 35px 0 0;float:left}#et_search_icon:before{top:7px}.et_header_style_left .et-search-form{width:50% !important;max-width:50% !important}#et_mobile_nav_menu{display:block}#et-top-navigation .et-cart-info{margin-top:5px}}@media screen and (max-width: 782px){body.admin-bar.et_fixed_nav #main-header{top:46px}}@media all and (max-width: 767px){#et-top-navigation{margin-right:0}body.admin-bar.et_fixed_nav #main-header{top:46px}}@media all and (max-width: 479px){#et-top-navigation{margin-right:0}}@media print{#top-header,#main-header{position:relative !important;top:auto !important;right:auto !important;bottom:auto !important;left:auto !important}}
@-webkit-keyframes fadeOutTop{0%{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}to{opacity:0;-webkit-transform:translatey(-60%);transform:translatey(-60%)}}@keyframes fadeOutTop{0%{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}to{opacity:0;-webkit-transform:translatey(-60%);transform:translatey(-60%)}}@-webkit-keyframes fadeInTop{0%{opacity:0;-webkit-transform:translatey(-60%);transform:translatey(-60%)}to{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}}@keyframes fadeInTop{0%{opacity:0;-webkit-transform:translatey(-60%);transform:translatey(-60%)}to{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}}@-webkit-keyframes fadeInBottom{0%{opacity:0;-webkit-transform:translatey(60%);transform:translatey(60%)}to{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}}@keyframes fadeInBottom{0%{opacity:0;-webkit-transform:translatey(60%);transform:translatey(60%)}to{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}}@-webkit-keyframes fadeOutBottom{0%{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}to{opacity:0;-webkit-transform:translatey(60%);transform:translatey(60%)}}@keyframes fadeOutBottom{0%{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}to{opacity:0;-webkit-transform:translatey(60%);transform:translatey(60%)}}@-webkit-keyframes Grow{0%{opacity:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes Grow{0%{opacity:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}/*!
	  * Animate.css - http://daneden.me/animate
	  * Licensed under the MIT license - http://opensource.org/licenses/MIT
	  * Copyright (c) 2015 Daniel Eden
	 */@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}
#main-header{line-height:23px;font-weight:500;top:0;background-color:#fff;width:100%;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 0 rgba(0,0,0,.1);position:relative;z-index:99999}.nav li li{padding:0 20px;margin:0}.et-menu li li a{padding:6px 20px;width:200px}.nav li{position:relative;line-height:1em}.nav li li{position:relative;line-height:2em}.nav li ul{position:absolute;padding:20px 0;z-index:9999;width:240px;background:#fff;visibility:hidden;opacity:0;border-top:3px solid #2ea3f2;box-shadow:0 2px 5px rgba(0,0,0,.1);-moz-box-shadow:0 2px 5px rgba(0,0,0,.1);-webkit-box-shadow:0 2px 5px rgba(0,0,0,.1);-webkit-transform:translateZ(0);text-align:left}.nav li.et-hover>ul{visibility:visible}.nav li.et-touch-hover>ul,.nav li:hover>ul{opacity:1;visibility:visible}.nav li li ul{z-index:1000;top:-23px;left:240px}.nav li.et-reverse-direction-nav li ul{left:auto;right:240px}.nav li:hover{visibility:inherit}.et_mobile_menu li a,.nav li li a{font-size:14px;-webkit-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;transition:opacity .2s ease-in-out,background-color .2s ease-in-out}.et_mobile_menu li a:hover,.nav ul li a:hover{background-color:rgba(0,0,0,.03);opacity:.7}.et-dropdown-removing>ul{display:none}.mega-menu .et-dropdown-removing>ul{display:block}.et-menu .menu-item-has-children>a:first-child:after{font-family:ETmodules;content:"3";font-size:16px;position:absolute;right:0;top:0;font-weight:800}.et-menu .menu-item-has-children>a:first-child{padding-right:20px}.et-menu li li.menu-item-has-children>a:first-child:after{right:20px;top:6px}.et-menu-nav li.mega-menu{position:inherit}.et-menu-nav li.mega-menu>ul{padding:30px 20px;position:absolute!important;width:100%;left:0!important}.et-menu-nav li.mega-menu ul li{margin:0;float:left!important;display:block!important;padding:0!important}.et-menu-nav li.mega-menu li>ul{-webkit-animation:none!important;animation:none!important;padding:0;border:none;left:auto;top:auto;width:240px!important;position:relative;box-shadow:none;-webkit-box-shadow:none}.et-menu-nav li.mega-menu li ul{visibility:visible;opacity:1;display:none}.et-menu-nav li.mega-menu.et-hover li ul,.et-menu-nav li.mega-menu:hover li ul{display:block}.et-menu-nav li.mega-menu:hover>ul{opacity:1!important;visibility:visible!important}.et-menu-nav li.mega-menu>ul>li>a:first-child{padding-top:0!important;font-weight:700;border-bottom:1px solid rgba(0,0,0,.03)}.et-menu-nav li.mega-menu>ul>li>a:first-child:hover{background-color:transparent!important}.et-menu-nav li.mega-menu li>a{width:200px!important}.et-menu-nav li.mega-menu.mega-menu-parent li>a,.et-menu-nav li.mega-menu.mega-menu-parent li li{width:100%!important}.et-menu-nav li.mega-menu.mega-menu-parent li>.sub-menu{float:left;width:100%!important}.et-menu-nav li.mega-menu>ul>li{width:25%;margin:0}.et-menu-nav li.mega-menu.mega-menu-parent-3>ul>li{width:33.33%}.et-menu-nav li.mega-menu.mega-menu-parent-2>ul>li{width:50%}.et-menu-nav li.mega-menu.mega-menu-parent-1>ul>li{width:100%}.et_pb_fullwidth_menu li.mega-menu .menu-item-has-children>a:first-child:after,.et_pb_menu li.mega-menu .menu-item-has-children>a:first-child:after{display:none}.et_fullwidth_nav #top-menu li.mega-menu>ul{width:auto;left:30px!important;right:30px!important}.et_mobile_menu{position:absolute;left:0;padding:5%;background:#fff;width:100%;visibility:visible;opacity:1;display:none;z-index:9999;border-top:3px solid #2ea3f2;box-shadow:0 2px 5px rgba(0,0,0,.1);-moz-box-shadow:0 2px 5px rgba(0,0,0,.1);-webkit-box-shadow:0 2px 5px rgba(0,0,0,.1)}#main-header .et_mobile_menu li ul,.et_pb_fullwidth_menu .et_mobile_menu li ul,.et_pb_menu .et_mobile_menu li ul{visibility:visible!important;display:block!important;padding-left:10px}.et_mobile_menu li li{padding-left:5%}.et_mobile_menu li a{border-bottom:1px solid rgba(0,0,0,.03);color:#666;padding:10px 5%;display:block}.et_mobile_menu .menu-item-has-children>a{font-weight:700;background-color:rgba(0,0,0,.03)}.et_mobile_menu li .menu-item-has-children>a{background-color:transparent}.et_mobile_nav_menu{float:right;display:none}.mobile_menu_bar{position:relative;display:block;line-height:0}.mobile_menu_bar:before{content:"a";font-size:32px;position:relative;left:0;top:0;cursor:pointer}.et_pb_module .mobile_menu_bar:before{top:2px}.mobile_nav .select_page{display:none}
.footer-widget h4,#main-footer .widget_block h1,#main-footer .widget_block h2,#main-footer .widget_block h3,#main-footer .widget_block h4,#main-footer .widget_block h5,#main-footer .widget_block h6{color:#2EA3F2}.footer-widget li:before{border-color:#2EA3F2}.bottom-nav li.current-menu-item>a{color:#2EA3F2}#main-footer{background-color:#222222}#footer-widgets{padding:6% 0 0}.footer-widget{float:left;color:#fff}.last{margin-right:0}.footer-widget .fwidget:last-child{margin-bottom:0 !important}#footer-widgets .footer-widget li{padding-left:14px;position:relative}#footer-widgets .footer-widget li:before{border-radius:3px;border-style:solid;border-width:3px;content:"";left:0;position:absolute;top:9px}#footer-widgets .footer-widget a{color:#fff}#footer-widgets .footer-widget li a{color:#fff;text-decoration:none}#footer-widgets .footer-widget li a:hover{color:rgba(255,255,255,0.7)}.footer-widget .widget_adsensewidget ins{min-width:160px}#footer-bottom{background-color:#1f1f1f;background-color:rgba(0,0,0,0.32);padding:15px 0 5px}#footer-bottom a{-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}#footer-info{text-align:left;color:#666;padding-bottom:10px;float:left}#footer-info a{font-weight:700;color:#666}#footer-info a:hover{opacity:.7}#et-footer-nav{background-color:rgba(255,255,255,0.05)}.bottom-nav{padding:15px 0}.bottom-nav li{font-weight:600;display:inline-block;font-size:14px;padding-right:22px}.bottom-nav a{color:#bbb;-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}.bottom-nav a:hover{opacity:.7}@media all and (max-width: 980px){.footer-widget:nth-child(n){width:46.25% !important;margin:0 7.5% 7.5% 0 !important}.et_pb_footer_columns1 .footer-widget{width:100% !important;margin:0 7.5% 7.5% 0 !important}#footer-widgets .footer-widget .fwidget{margin-bottom:16.21%}.et_pb_gutters1 .footer-widget:nth-child(n){width:50% !important;margin:0 !important}.et_pb_gutters1 #footer-widgets .footer-widget .fwidget{margin-bottom:0}#footer-widgets{padding:8% 0}#footer-widgets .footer-widget:nth-child(2n){margin-right:0 !important}#footer-widgets .footer-widget:nth-last-child(-n+2){margin-bottom:0 !important}.bottom-nav{text-align:center}#footer-info{float:none;text-align:center}}@media all and (max-width: 767px){#footer-widgets .footer-widget,.et_pb_gutters1 #footer-widgets .footer-widget{width:100% !important;margin-right:0 !important}#footer-widgets .footer-widget:nth-child(n),#footer-widgets .footer-widget .fwidget{margin-bottom:9.5% !important}.et_pb_gutters1 #footer-widgets .footer-widget:nth-child(n),.et_pb_gutters1 #footer-widgets .footer-widget .fwidget{margin-bottom:0 !important}#footer-widgets{padding:10% 0}#footer-widgets .footer-widget .fwidget:last-child{margin-bottom:0 !important}#footer-widgets .footer-widget:last-child{margin-bottom:0 !important}}@media all and (max-width: 479px){#footer-widgets .footer-widget:nth-child(n),.footer-widget .fwidget{margin-bottom:11.5% !important}#footer-widgets .footer-widget.last{margin-bottom:0 !important}.et_pb_gutters1 #footer-widgets .footer-widget:nth-child(n),.et_pb_gutters1 #footer-widgets .footer-widget .fwidget{margin-bottom:0 !important}#footer-widgets{padding:12% 0}}
@media all and (min-width: 981px){.et_pb_gutters3 .footer-widget{margin-right:5.5%;margin-bottom:5.5%}.et_pb_gutters3 .footer-widget:last-child{margin-right:0}.et_pb_gutters3.et_pb_footer_columns6 .footer-widget{width:12.083%}.et_pb_gutters3.et_pb_footer_columns6 .footer-widget .fwidget{margin-bottom:45.517%}.et_pb_gutters3.et_pb_footer_columns5 .footer-widget{width:15.6%}.et_pb_gutters3.et_pb_footer_columns5 .footer-widget .fwidget{margin-bottom:35.256%}.et_pb_gutters3.et_pb_footer_columns4 .footer-widget{width:20.875%}.et_pb_gutters3.et_pb_footer_columns4 .footer-widget .fwidget{margin-bottom:26.347%}.et_pb_gutters3.et_pb_footer_columns3 .footer-widget{width:29.667%}.et_pb_gutters3.et_pb_footer_columns3 .footer-widget .fwidget{margin-bottom:18.539%}.et_pb_gutters3.et_pb_footer_columns2 .footer-widget{width:47.25%}.et_pb_gutters3.et_pb_footer_columns2 .footer-widget .fwidget{margin-bottom:11.64%}.et_pb_gutters3.et_pb_footer_columns1 .footer-widget{width:100%}.et_pb_gutters3.et_pb_footer_columns1 .footer-widget .fwidget{margin-bottom:5.5%}.et_pb_gutters3.et_pb_footer_columns_3_4__1_4 .footer-widget:nth-child(1){width:73.625%;clear:both}.et_pb_gutters3.et_pb_footer_columns_3_4__1_4 .footer-widget:nth-child(1) .fwidget{margin-bottom:7.47%}.et_pb_gutters3.et_pb_footer_columns_3_4__1_4 .footer-widget:nth-child(2){width:20.875%}.et_pb_gutters3.et_pb_footer_columns_3_4__1_4 .footer-widget:nth-child(2) .fwidget{margin-bottom:26.347%}.et_pb_gutters3.et_pb_footer_columns_1_4__3_4 .footer-widget:nth-child(1){width:20.875%;clear:both}.et_pb_gutters3.et_pb_footer_columns_1_4__3_4 .footer-widget:nth-child(1) .fwidget{margin-bottom:26.347%}.et_pb_gutters3.et_pb_footer_columns_1_4__3_4 .footer-widget:nth-child(2){width:73.625%}.et_pb_gutters3.et_pb_footer_columns_1_4__3_4 .footer-widget:nth-child(2) .fwidget{margin-bottom:7.47%}.et_pb_gutters3.et_pb_footer_columns_2_3__1_3 .footer-widget:nth-child(1){width:64.833%}.et_pb_gutters3.et_pb_footer_columns_2_3__1_3 .footer-widget:nth-child(1) .fwidget{margin-bottom:8.483%}.et_pb_gutters3.et_pb_footer_columns_2_3__1_3 .footer-widget:nth-child(2){width:29.667%}.et_pb_gutters3.et_pb_footer_columns_2_3__1_3 .footer-widget:nth-child(2) .fwidget{margin-bottom:18.539%}.et_pb_gutters3.et_pb_footer_columns_1_3__2_3 .footer-widget:nth-child(1){width:29.667%}.et_pb_gutters3.et_pb_footer_columns_1_3__2_3 .footer-widget:nth-child(1) .fwidget{margin-bottom:18.539%}.et_pb_gutters3.et_pb_footer_columns_1_3__2_3 .footer-widget:nth-child(2){width:64.833%}.et_pb_gutters3.et_pb_footer_columns_1_3__2_3 .footer-widget:nth-child(2) .fwidget{margin-bottom:8.483%}.et_pb_gutters3.et_pb_footer_columns_1_4__1_2 .footer-widget:nth-child(-n+2){width:20.875%}.et_pb_gutters3.et_pb_footer_columns_1_4__1_2 .footer-widget:nth-child(-n+2) .fwidget{margin-bottom:26.347%}.et_pb_gutters3.et_pb_footer_columns_1_4__1_2 .footer-widget:nth-child(3){width:47.25%}.et_pb_gutters3.et_pb_footer_columns_1_4__1_2 .footer-widget:nth-child(3) .fwidget{margin-bottom:11.64%}.et_pb_gutters3.et_pb_footer_columns_1_2__1_4 .footer-widget:first-child{width:47.25%}.et_pb_gutters3.et_pb_footer_columns_1_2__1_4 .footer-widget:first-child .fwidget{margin-bottom:11.64%}.et_pb_gutters3.et_pb_footer_columns_1_2__1_4 .footer-widget:nth-child(-n+3):not(:nth-child(1)){width:20.875%}.et_pb_gutters3.et_pb_footer_columns_1_2__1_4 .footer-widget:nth-child(-n+3):not(:nth-child(1)) .fwidget{margin-bottom:26.347%}.et_pb_gutters3.et_pb_footer_columns_1_5__3_5 .footer-widget:nth-child(-n+2){width:15.6%}.et_pb_gutters3.et_pb_footer_columns_1_5__3_5 .footer-widget:nth-child(-n+2) .fwidget{margin-bottom:35.256%}.et_pb_gutters3.et_pb_footer_columns_1_5__3_5 .footer-widget:nth-child(3){width:57.8%}.et_pb_gutters3.et_pb_footer_columns_1_5__3_5 .footer-widget:nth-child(3) .fwidget{margin-bottom:9.516%}.et_pb_gutters3.et_pb_footer_columns_3_5__1_5 .footer-widget:first-child{width:57.8%}.et_pb_gutters3.et_pb_footer_columns_3_5__1_5 .footer-widget:first-child .fwidget{margin-bottom:9.516%}.et_pb_gutters3.et_pb_footer_columns_3_5__1_5 .footer-widget:nth-child(-n+3):not(:nth-child(1)){width:15.6%}.et_pb_gutters3.et_pb_footer_columns_3_5__1_5 .footer-widget:nth-child(-n+3):not(:nth-child(1)) .fwidget{margin-bottom:35.256%}.et_pb_gutters3.et_pb_footer_columns_3_5__2_5 .footer-widget:nth-child(1){width:57.8%}.et_pb_gutters3.et_pb_footer_columns_3_5__2_5 .footer-widget:nth-child(1) .fwidget{margin-bottom:9.516%}.et_pb_gutters3.et_pb_footer_columns_3_5__2_5 .footer-widget:nth-child(2){width:36.7%}.et_pb_gutters3.et_pb_footer_columns_3_5__2_5 .footer-widget:nth-child(2) .fwidget{margin-bottom:14.986%}.et_pb_gutters3.et_pb_footer_columns_2_5__3_5 .footer-widget:nth-child(1){width:36.7%}.et_pb_gutters3.et_pb_footer_columns_2_5__3_5 .footer-widget:nth-child(1) .fwidget{margin-bottom:14.986%}.et_pb_gutters3.et_pb_footer_columns_2_5__3_5 .footer-widget:nth-child(2){width:57.8%}.et_pb_gutters3.et_pb_footer_columns_2_5__3_5 .footer-widget:nth-child(2) .fwidget{margin-bottom:9.516%}.et_pb_gutters3.et_pb_footer_columns_1_2__1_6 .footer-widget:first-child{width:47.25%}.et_pb_gutters3.et_pb_footer_columns_1_2__1_6 .footer-widget:first-child .fwidget{margin-bottom:11.64%}.et_pb_gutters3.et_pb_footer_columns_1_2__1_6 .footer-widget:nth-child(-n+4):not(:nth-child(1)){width:12.083%}.et_pb_gutters3.et_pb_footer_columns_1_2__1_6 .footer-widget:nth-child(-n+4):not(:nth-child(1)) .fwidget{margin-bottom:45.517%}.et_pb_gutters3.et_pb_footer_columns_1_6__1_2 .footer-widget:nth-child(-n+3){width:12.083%}.et_pb_gutters3.et_pb_footer_columns_1_6__1_2 .footer-widget:nth-child(-n+3) .fwidget{margin-bottom:45.517%}.et_pb_gutters3.et_pb_footer_columns_1_6__1_2 .footer-widget:nth-child(4){width:47.25%}.et_pb_gutters3.et_pb_footer_columns_1_6__1_2 .footer-widget:nth-child(4) .fwidget{margin-bottom:11.64%}.et_pb_gutters3.et_pb_footer_columns_1_4_1_2_1_4 .footer-widget:nth-child(-n+3):not(:nth-child(2)){width:20.875%}.et_pb_gutters3.et_pb_footer_columns_1_4_1_2_1_4 .footer-widget:nth-child(-n+3):not(:nth-child(2)) .fwidget{margin-bottom:26.347%}.et_pb_gutters3.et_pb_footer_columns_1_4_1_2_1_4 .footer-widget:nth-child(2){width:47.25%}.et_pb_gutters3.et_pb_footer_columns_1_4_1_2_1_4 .footer-widget:nth-child(2) .fwidget{margin-bottom:11.64%}.et_pb_gutters3.et_pb_footer_columns_1_5_3_5_1_5 .footer-widget:nth-child(-n+3):not(:nth-child(2)){width:15.6%}.et_pb_gutters3.et_pb_footer_columns_1_5_3_5_1_5 .footer-widget:nth-child(-n+3):not(:nth-child(2)) .fwidget{margin-bottom:35.256%}.et_pb_gutters3.et_pb_footer_columns_1_5_3_5_1_5 .footer-widget:nth-child(2){width:57.8%}.et_pb_gutters3.et_pb_footer_columns_1_5_3_5_1_5 .footer-widget:nth-child(2) .fwidget{margin-bottom:9.516%}}
.et-social-icons{float:right}.et-social-icons li{display:inline-block;margin-left:20px}.et-social-icon a{display:inline-block;font-size:24px;position:relative;text-align:center;-webkit-transition:color 300ms ease 0s;transition:color 300ms ease 0s;color:#666;text-decoration:none}.et-social-icons a:hover{opacity:0.7;-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}.et-social-icon span{display:none}.et_duplicate_social_icons{display:none}@media all and (max-width: 980px){.et-social-icons{float:none;text-align:center}}@media all and (max-width: 980px){.et-social-icons{margin:0 0 5px}}
#sidebar{padding-bottom:28px}#sidebar .et_pb_widget{margin-bottom:30px;width:100%;float:none}.et_right_sidebar #main-content .et_pb_column_2_3 .et_pb_countdown_timer .section p.value,.et_right_sidebar #main-content .et_pb_column_2_3 .et_pb_countdown_timer .section.sep,.et_left_sidebar #main-content .et_pb_column_2_3 .et_pb_countdown_timer .section p.value,.et_left_sidebar #main-content .et_pb_column_2_3 .et_pb_countdown_timer .section.sep{font-size:44px;line-height:44px}.et_right_sidebar #main-content .et_pb_column_1_2 .et_pb_countdown_timer .section p.value,.et_right_sidebar #main-content .et_pb_column_1_2 .et_pb_countdown_timer .section.sep,.et_left_sidebar #main-content .et_pb_column_1_2 .et_pb_countdown_timer .section p.value,.et_left_sidebar #main-content .et_pb_column_1_2 .et_pb_countdown_timer .section.sep{font-size:32px;line-height:32px}.et_right_sidebar #main-content .et_pb_column_3_8 .et_pb_countdown_timer .section p.value,.et_right_sidebar #main-content .et_pb_column_3_8 .et_pb_countdown_timer .section.sep,.et_left_sidebar #main-content .et_pb_column_3_8 .et_pb_countdown_timer .section p.value,.et_left_sidebar #main-content .et_pb_column_3_8 .et_pb_countdown_timer .section.sep{font-size:24px;line-height:24px}.et_right_sidebar #main-content .et_pb_column_1_3 .et_pb_countdown_timer .section p.value,.et_right_sidebar #main-content .et_pb_column_1_3 .et_pb_countdown_timer .section.sep,.et_left_sidebar #main-content .et_pb_column_1_3 .et_pb_countdown_timer .section p.value,.et_left_sidebar #main-content .et_pb_column_1_3 .et_pb_countdown_timer .section.sep{font-size:20px;line-height:20px}.et_right_sidebar #main-content .et_pb_column_1_4 .et_pb_countdown_timer .section p.value,.et_right_sidebar #main-content .et_pb_column_1_4 .et_pb_countdown_timer .section.sep,.et_left_sidebar #main-content .et_pb_column_1_4 .et_pb_countdown_timer .section p.value,.et_left_sidebar #main-content .et_pb_column_1_4 .et_pb_countdown_timer .section.sep{font-size:16px;line-height:16px}@media all and (min-width: 981px) and (max-width: 1100px){#sidebar .et_pb_widget{margin-left:0}.et_left_sidebar #sidebar .et_pb_widget{margin-right:0}}@media all and (min-width: 981px){#sidebar{float:left;width:20.875%}.et_right_sidebar #left-area{float:left;padding-right:5.5%}.et_right_sidebar #sidebar{padding-left:30px}.et_right_sidebar #main-content .container:before{right:20.875% !important}.et_left_sidebar #left-area{float:right;padding-left:5.5%}.et_left_sidebar #sidebar{padding-right:30px}.et_left_sidebar #main-content .container:before{left:20.875% !important}}@media all and (max-width: 980px){.et_right_sidebar #left-area,.et_right_sidebar #sidebar,.et_left_sidebar #left-area,.et_left_sidebar #sidebar{width:auto;float:none;padding-right:0;padding-left:0}.et_right_sidebar #left-area{margin-right:0}.et_right_sidebar #sidebar{margin-left:0;border-left:none}.et_left_sidebar #left-area{margin-left:0}.et_left_sidebar #sidebar{margin-right:0;border-right:none}}
.widget_search .screen-reader-text,.et_pb_widget .wp-block-search__label{display:none}.widget_search input#s,.widget_search input#searchsubmit,.et_pb_widget .wp-block-search__input,.et_pb_widget .wp-block-search__button{padding:.7em;height:40px !important;margin:0;font-size:14px;line-height:normal !important;border:1px solid #ddd;color:#666}.widget_search #s,.et_pb_widget .wp-block-search__input{width:100%;border-radius:3px}.widget_search #searchform,.et_pb_widget .wp-block-search{position:relative}.widget_search #searchsubmit,.et_pb_widget .wp-block-search__button{background-color:#ddd;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;position:absolute;right:0;top:0}#searchsubmit,.et_pb_widget .wp-block-search__button{cursor:pointer}
/*# sourceURL=divi-dynamic-critical-inline-css */
</style>
<link rel='stylesheet' id='divi-style-css' href='http://haggai-bf.org/wp-content/themes/Divi-child/style.css?ver=4.27.6' media='all' />
<link rel="https://api.w.org/" href="https://haggai-bf.org/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://haggai-bf.org/wp-json/wp/v2/pages/8" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://haggai-bf.org/xmlrpc.php?rsd" />
<meta name="generator" content="WordPress 7.0" />
<link rel="canonical" href="https://haggai-bf.org/about-us/" />
<link rel='shortlink' href='https://haggai-bf.org/?p=8' />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /><link rel="icon" href="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF-150x150.png" sizes="32x32" />
<link rel="icon" href="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" sizes="192x192" />
<link rel="apple-touch-icon" href="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" />
<meta name="msapplication-TileImage" content="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" />
<link rel="stylesheet" id="et-divi-customizer-global-cached-inline-styles" href="http://haggai-bf.org/wp-content/et-cache/global/et-divi-customizer-global.min.css?ver=1780281736" /><style id="et-critical-inline-css"></style>
</head>
<body class="wp-singular page-template page-template-no-title page page-id-8 wp-custom-logo wp-theme-Divi wp-child-theme-Divi-child et_pb_button_helper_class et_fixed_nav et_show_nav et_primary_nav_dropdown_animation_fade et_secondary_nav_dropdown_animation_fade et_header_style_left et_pb_footer_columns4 et_cover_background et_pb_gutter et_pb_gutters3 et_right_sidebar et_divi_theme et-db">
	<div id="page-container">

	
	
			<header id="main-header" data-height-onload="66">
			<div class="container clearfix et_menu_container">
							<div class="logo_container">
					<span class="logo_helper"></span>
					<a href="https://haggai-bf.org/">
						<img src="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" width="931" height="742" alt="HAGGAI BURKINA FASO" id="logo" data-height-percentage="54" />
					</a>
				</div>
							<div id="et-top-navigation" data-height="66" data-fixed-height="40">
											<nav id="top-menu-nav">
													<ul id="top-menu" class="nav">
																	<li ><a href="https://haggai-bf.org/">Accueil</a></li>
								
								<li class="page_item page-item-844"><a href="https://haggai-bf.org/bitcoin-jatszani-fiokellenorzes-utmutato/">Bitcoin játszani – fiókellenőrzés útmutató</a></li>
<li class="page_item page-item-840"><a href="https://haggai-bf.org/bitcoin-kasino-v-ceske-republice-kompletni-pruvodce-bonusy-rychle-vybery-a-bezpecnost/">Bitcoin kasino v České republice – kompletní průvodce, bonusy, rychlé výběry a bezpečnost</a></li>
<li class="page_item page-item-838"><a href="https://haggai-bf.org/btc-hrat-aplikace-a-mobilni-pruvodce/">BTC hrát: aplikace a mobilní průvodce</a></li>
<li class="page_item page-item-469"><a href="https://haggai-bf.org/canli-casino-siteleri-2026-en-iyi-ve-guvenilir-casino-listesi/">Canlı Casino Siteleri 2026 &#8211; En İyi ve Güvenilir Casino Listesi</a></li>
<li class="page_item page-item-832"><a href="https://haggai-bf.org/casino-bitcoin-guia-paso-a-paso-para-registrarte-e-iniciar-sesion/">Casino Bitcoin: guía paso a paso para registrarte e iniciar sesión</a></li>
<li class="page_item page-item-847"><a href="https://haggai-bf.org/crypto-casino-europe-review-bonuses-payments-mobile-guide-for-dutch-players/">Crypto Casino Europe Review – Bonuses, Payments &#038; Mobile Guide for Dutch Players</a></li>
<li class="page_item page-item-239"><a href="https://haggai-bf.org/magyar-casino-online-fiokellenorzes-lepesei-praktikus-utmutato/">Magyar casino online fiókellenőrzés lépései – Praktikus útmutató</a></li>
<li class="page_item page-item-41"><a href="https://haggai-bf.org/nous-contacter/">Nous contacter</a></li>
<li class="page_item page-item-828"><a href="https://haggai-bf.org/pin-up-az-rbaycanin-n-yaxsi-kazinosu-r-smi-sayt/">Pin Up &#8211; Azərbaycanın ən yaxşı kazinosu | Rəsmi sayt</a></li>
<li class="page_item page-item-826"><a href="https://haggai-bf.org/pin-up-casino-az-rbaycanda-onlayn-kazino-pin-up/">Pin Up Casino &#8211; Azərbaycanda onlayn kazino Pin-Up</a></li>
<li class="page_item page-item-821"><a href="https://haggai-bf.org/pin-up-casino-onlayn-az-rbaycan/">Pin Up Casino Onlayn Azərbaycan</a></li>
									<li class="cat-item cat-item-11"><a href="https://haggai-bf.org/category/public/">public</a>
</li>
							</ul>
												</nav>
					
					
					
											<div id="et_top_search">
							<span id="et_search_icon"></span>
						</div>
					
					<div id="et_mobile_nav_menu">
				<div class="mobile_nav closed">
					<span class="select_page">Sélectionner une page</span>
					<span class="mobile_menu_bar mobile_menu_bar_toggle"></span>
				</div>
			</div>				</div> <!-- #et-top-navigation -->
			</div> <!-- .container -->
						<div class="et_search_outer">
				<div class="container et_search_form_container">
					<form role="search" method="get" class="et-search-form" action="https://haggai-bf.org/">
					<input type="search" class="et-search-field" placeholder="Rechercher &hellip;" value="" name="s" title="Rechercher:" />					</form>
					<span class="et_close_search_field"></span>
				</div>
			</div>
					</header> <!-- #main-header -->
			<div id="et-main-area">
	
<div id="main-content">


	<div class="container">
		<div id="content-area" class="clearfix">
			<div id="left-area">


			
				<article id="post-8" class="post-8 page type-page status-publish hentry">

				
					<h1 class="entry-title main_title">About Us</h1>
				
				
					<div class="entry-content">
					<div class="wp-block-group nfd-container nfd-p-lg nfd-theme-white nfd-bg-surface nfd-wb-team__team-5 is-layout-constrained wp-block-group-is-layout-constrained" ><div class="nfd-gap-y-2xl wp-block-columns are-vertically-aligned-top is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex"><div class="wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow"><div class="nfd-gap-md wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><figure class="nfd-rounded-sm wp-block-image size-large"><img decoding="async" src="https://images.unsplash.com/photo-1621972659738-598cd8f7c37c?w=200&#038;fit=crop&#038;w=600&#038;h=600&#038;crop=faces" alt="" style="aspect-ratio: 1; object-fit: cover" /></figure><div class="nfd-gap-sm wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><div class="nfd-gap-0 wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-md has-text-align-left wp-block-paragraph"><strong>Quincy Scott</strong></p><p class="nfd-text-base nfd-text-faded has-text-align-left wp-block-paragraph">Founder &#038; CEO</p></div><div class="nfd-text-pretty nfd-text-sm nfd-text-faded wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><p class="wp-block-paragraph">Our dedicated team works together to deliver exceptional results while maintaining a high level of professionalism and integrity.</p></div><div style="height:0px" aria-hidden="true" class="wp-block-spacer wp-container-content-9760934e"></div><div class="wp-block-group is-content-justification-space-between is-layout-flex wp-container-core-group-is-layout-0d004395 wp-block-group-is-layout-flex"><ul class="is-style-logos-only nfd-gap-md wp-block-social-links has-small-icon-size is-content-justification-left is-layout-flex wp-container-core-social-links-is-layout-63375db1 wp-block-social-links-is-layout-flex"><li class="wp-social-link wp-social-link-instagram wp-block-social-link"><a href="https://instagram.com" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"></path></svg><span class="wp-block-social-link-label screen-reader-text">Instagram</span></a></li><li class="wp-social-link wp-social-link-linkedin wp-block-social-link"><a href="#" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg><span class="wp-block-social-link-label screen-reader-text">LinkedIn</span></a></li><li class="wp-social-link wp-social-link-x wp-block-social-link"><a href="#" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z" /></svg><span class="wp-block-social-link-label screen-reader-text">X</span></a></li></ul></div></div></div></div><div class="wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow"><div class="nfd-gap-md wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><figure class="nfd-rounded-sm wp-block-image size-large"><img decoding="async" src="https://images.unsplash.com/photo-1573878742615-3ce8fac77273?w=200&#038;fit=crop&#038;w=600&#038;h=600&#038;crop=faces" alt="" style="aspect-ratio: 1; object-fit: cover" /></figure><div class="nfd-gap-sm wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><div class="nfd-gap-0 wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-md has-text-align-left wp-block-paragraph"><strong>Nicole Moore</strong></p><p class="nfd-text-base nfd-text-faded has-text-align-left wp-block-paragraph">Venue Manager</p></div><div class="nfd-text-pretty nfd-text-sm nfd-text-faded wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><p class="wp-block-paragraph">Our team of experts ensures your event is planned and executed flawlessly, leaving you free to enjoy the experience without any worries.</p></div><div style="height:0px" aria-hidden="true" class="wp-block-spacer wp-container-content-9760934e"></div><div class="wp-block-group is-content-justification-space-between is-layout-flex wp-container-core-group-is-layout-0d004395 wp-block-group-is-layout-flex"><ul class="is-style-logos-only nfd-gap-md wp-block-social-links has-small-icon-size is-content-justification-left is-layout-flex wp-container-core-social-links-is-layout-63375db1 wp-block-social-links-is-layout-flex"><li class="wp-social-link wp-social-link-instagram wp-block-social-link"><a href="https://instagram.com" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"></path></svg><span class="wp-block-social-link-label screen-reader-text">Instagram</span></a></li><li class="wp-social-link wp-social-link-linkedin wp-block-social-link"><a href="#" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg><span class="wp-block-social-link-label screen-reader-text">LinkedIn</span></a></li><li class="wp-social-link wp-social-link-x wp-block-social-link"><a href="#" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z" /></svg><span class="wp-block-social-link-label screen-reader-text">X</span></a></li></ul></div></div></div></div><div class="wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow"><div class="nfd-gap-md wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><figure class="nfd-rounded-sm wp-block-image size-large"><img decoding="async" src="https://images.unsplash.com/photo-1577880216142-8549e9488dad?w=200&#038;fit=crop&#038;w=600&#038;h=600&#038;crop=faces" alt="" style="aspect-ratio: 1; object-fit: cover" /></figure><div class="nfd-gap-sm wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><div class="nfd-gap-0 wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-md has-text-align-left wp-block-paragraph"><strong>Julian Fischer</strong></p><p class="nfd-text-base nfd-text-faded has-text-align-left wp-block-paragraph">Vendor Management</p></div><div class="nfd-text-pretty nfd-text-sm nfd-text-faded wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><p class="wp-block-paragraph">We are committed to providing exclusive vendor partnerships, making your vision for your event come to life in the most extraordinary way.</p></div><div style="height:0px" aria-hidden="true" class="wp-block-spacer wp-container-content-9760934e"></div><div class="wp-block-group is-content-justification-space-between is-layout-flex wp-container-core-group-is-layout-0d004395 wp-block-group-is-layout-flex"><ul class="is-style-logos-only nfd-gap-md wp-block-social-links has-small-icon-size is-content-justification-left is-layout-flex wp-container-core-social-links-is-layout-63375db1 wp-block-social-links-is-layout-flex"><li class="wp-social-link wp-social-link-instagram wp-block-social-link"><a href="https://instagram.com" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"></path></svg><span class="wp-block-social-link-label screen-reader-text">Instagram</span></a></li><li class="wp-social-link wp-social-link-linkedin wp-block-social-link"><a href="#" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg><span class="wp-block-social-link-label screen-reader-text">LinkedIn</span></a></li><li class="wp-social-link wp-social-link-x wp-block-social-link"><a href="#" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z" /></svg><span class="wp-block-social-link-label screen-reader-text">X</span></a></li></ul></div></div></div></div><div class="wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow"><div class="nfd-gap-md wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><figure class="nfd-rounded-sm wp-block-image size-large"><img decoding="async" src="https://images.unsplash.com/photo-1649399041424-0d758fba690b?w=200&#038;fit=crop&#038;w=600&#038;h=600&#038;crop=faces" alt="" style="aspect-ratio: 1; object-fit: cover" /></figure><div class="nfd-gap-sm wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><div class="nfd-gap-0 wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-md has-text-align-left wp-block-paragraph"><strong>Rania Ahmad</strong></p><p class="nfd-text-base nfd-text-faded has-text-align-left wp-block-paragraph">Vendor Management</p></div><div class="nfd-text-pretty nfd-text-sm nfd-text-faded wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-33ccc8b1 wp-block-group-is-layout-flex"><p class="wp-block-paragraph">We are committed to providing exclusive vendor partnerships, making your vision for your event come to life in the most extraordinary way.</p></div><div style="height:0px" aria-hidden="true" class="wp-block-spacer wp-container-content-9760934e"></div><div class="wp-block-group is-content-justification-space-between is-layout-flex wp-container-core-group-is-layout-0d004395 wp-block-group-is-layout-flex"><ul class="is-style-logos-only nfd-gap-md wp-block-social-links has-small-icon-size is-content-justification-left is-layout-flex wp-container-core-social-links-is-layout-63375db1 wp-block-social-links-is-layout-flex"><li class="wp-social-link wp-social-link-instagram wp-block-social-link"><a href="https://instagram.com" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"></path></svg><span class="wp-block-social-link-label screen-reader-text">Instagram</span></a></li><li class="wp-social-link wp-social-link-linkedin wp-block-social-link"><a href="#" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg><span class="wp-block-social-link-label screen-reader-text">LinkedIn</span></a></li><li class="wp-social-link wp-social-link-x wp-block-social-link"><a href="#" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z" /></svg><span class="wp-block-social-link-label screen-reader-text">X</span></a></li></ul></div></div></div></div></div></div><div class="wp-block-group nfd-container nfd-text-md nfd-wb-text__text-6 is-layout-constrained wp-block-group-is-layout-constrained" ><div class="nfd-gap-xl wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex"><div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"><h2 class="nfd-text-xl nfd-text-balance wp-block-heading" style="font-style:normal;font-weight:600">Empowering Leaders for Evangelism in Burkina Faso</h2></div><div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"><p class="wp-block-paragraph">Haggai Burkina Faso is dedicated to equipping leaders with the necessary skills and knowledge to effectively engage in evangelism. Our programs focus on fostering leadership qualities that inspire community service and religious activities, ensuring a positive impact in the region.</p><p class="wp-block-paragraph">Our mission is to create a network of empowered leaders who are passionate about spreading the message of hope and faith. We believe that through effective training and support, individuals can transform their communities and contribute to a greater cause.</p></div><div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"><p class="wp-block-paragraph">At Haggai Burkina Faso, we envision a future where every leader is equipped to make a difference. Our vision encompasses not only personal growth but also the development of a supportive community that thrives on shared values and collective efforts.</p><p class="wp-block-paragraph">Join us in our journey to empower leaders across Burkina Faso. Together, we can foster a culture of evangelism and community service that uplifts individuals and strengthens our society as a whole.</p></div></div></div><div class="wp-block-group nfd-container nfd-p-lg nfd-theme-white nfd-bg-surface nfd-wb-testimonials__testimonials-1 is-layout-constrained wp-block-group-is-layout-constrained" ><div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex"><div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:40%"><div class="nfd-gap-2xl wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><h2 class="nfd-text-huge wp-block-heading">What Our Community Says About Us</h2><div class="nfd-gap-lg wp-block-group is-content-justification-left is-layout-flex wp-container-core-group-is-layout-bc29a5f0 wp-block-group-is-layout-flex"><div class="nfd-overlap-x nfd-border-bg wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex"><figure class="is-style-rounded wp-block-image size-large is-resized has-custom-border"><img decoding="async" src="https://images.unsplash.com/photo-1600728658141-03d080a1bf55?q=80&#038;auto=format&#038;fit=crop&#038;w=120&#038;h=120&#038;crop=faces" alt="" style="border-width:2px;aspect-ratio:1;object-fit:cover;width:50px"/></figure><figure class="is-style-rounded wp-block-image size-large is-resized has-custom-border"><img decoding="async" src="https://images.unsplash.com/photo-1547360649-d24a4bdfb16e?q=80&#038;auto=format&#038;fit=crop&#038;w=120&#038;h=120&#038;crop=faces" alt="" style="border-width:2px;aspect-ratio:1;object-fit:cover;width:50px"/></figure><figure class="is-style-rounded wp-block-image size-large is-resized has-custom-border"><img decoding="async" src="https://images.unsplash.com/photo-1571109216779-6ccc20727c0a?q=80&#038;auto=format&#038;fit=crop&#038;w=120&#038;h=120&#038;crop=faces" alt="" style="border-width:2px;aspect-ratio:1;object-fit:cover;width:50px"/></figure><figure class="is-style-rounded wp-block-image size-large is-resized has-custom-border"><img decoding="async" src="https://images.unsplash.com/photo-1580076905521-abcea81b6c02?q=80&#038;auto=format&#038;fit=crop&#038;w=120&#038;h=120&#038;crop=faces" alt="" style="border-width:2px;aspect-ratio:1;object-fit:cover;width:50px"/></figure></div><div class="nfd-gap-0 wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-md has-text-color wp-block-paragraph" style="color:#fab906;letter-spacing:2px">★★★★★</p><p class="nfd-text-base wp-block-paragraph">Average Rating: 4.8 out of 5 based on 150 reviews</p></div></div><div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div></div></div><div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"><div class="nfd-theme-light nfd-bg-surface nfd-rounded nfd-text-balance nfd-p-card-md nfd-gap-md wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-balance wp-block-paragraph"><strong>Inspiring Community Engagement</strong></p><div class="nfd-pl-offset-md nfd-text-balance nfd-text-base wp-block-group is-layout-constrained wp-block-group-is-layout-constrained" style="border-left-width: 3px"><p class="wp-block-paragraph">The community engagement initiatives have opened doors for meaningful connections and outreach opportunities. I am grateful for the guidance and support.</p></div><div class="nfd-gap-xs wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-md has-text-color wp-block-paragraph" style="color:#fab906;letter-spacing:2px">★★★★★</p><p class="nfd-text-base has-text-align-left wp-block-paragraph">Emily Davis</p></div></div><div class="nfd-theme-light nfd-bg-surface nfd-rounded nfd-text-balance nfd-p-card-md nfd-gap-md wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-balance wp-block-paragraph"><strong>Life-Changing Experiences</strong></p><div class="nfd-pl-offset-md nfd-text-balance nfd-text-base wp-block-group is-layout-constrained wp-block-group-is-layout-constrained" style="border-left-width: 3px"><p class="wp-block-paragraph">Participating in Haggai&rsquo;s programs has been a life-changing experience for me. I have gained confidence and skills that I can apply in my daily life.</p></div><div class="nfd-gap-xs wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-md has-text-color wp-block-paragraph" style="color:#fab906;letter-spacing:2px">★★★★★</p><p class="nfd-text-base has-text-align-left wp-block-paragraph">John Doe</p></div></div></div><div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"><div class="nfd-theme-light nfd-bg-surface nfd-rounded nfd-text-balance nfd-p-card-md nfd-gap-md wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-balance wp-block-paragraph"><strong>Transformative Leadership Training</strong></p><div class="nfd-pl-offset-md nfd-text-balance nfd-text-base wp-block-group is-layout-constrained wp-block-group-is-layout-constrained" style="border-left-width: 3px"><p class="wp-block-paragraph">The training I received from Haggai has profoundly impacted my ability to lead and evangelize effectively in my community. I feel equipped to make a difference!</p></div><div class="nfd-gap-xs wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-md has-text-color wp-block-paragraph" style="color:#fab906;letter-spacing:2px">★★★★★</p><p class="nfd-text-base has-text-align-left wp-block-paragraph">Jane Smith</p></div></div><div class="nfd-theme-light nfd-bg-surface nfd-rounded nfd-text-balance nfd-p-card-md nfd-gap-md wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-balance wp-block-paragraph"><strong>Empowering Evangelism Initiatives</strong></p><div class="nfd-pl-offset-md nfd-text-balance nfd-text-base wp-block-group is-layout-constrained wp-block-group-is-layout-constrained" style="border-left-width: 3px"><p class="wp-block-paragraph">Haggai&rsquo;s programs have empowered me to take on leadership roles in evangelism. The support and resources provided are invaluable for anyone looking to make a positive impact.</p></div><div class="nfd-gap-xs wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-4fc3f8e1 wp-block-group-is-layout-flex"><p class="nfd-text-md has-text-color wp-block-paragraph" style="color:#fab906;letter-spacing:2px">★★★★★</p><p class="nfd-text-base has-text-align-left wp-block-paragraph">Michael Johnson</p></div></div></div></div></div>					</div>

				
				</article>

			

			</div>

					</div>
	</div>


</div>


			<footer id="main-footer">
				

		
				<div id="footer-bottom">
					<div class="container clearfix">
				<ul class="et-social-icons">

	<li class="et-social-icon et-social-facebook">
		<a href="#" class="icon">
			<span>Facebook</span>
		</a>
	</li>
	<li class="et-social-icon et-social-twitter">
		<a href="#" class="icon">
			<span>X</span>
		</a>
	</li>
	<li class="et-social-icon et-social-instagram">
		<a href="#" class="icon">
			<span>Instagram</span>
		</a>
	</li>
	<li class="et-social-icon et-social-rss">
		<a href="https://haggai-bf.org/feed/" class="icon">
			<span>RSS</span>
		</a>
	</li>

</ul><div id="footer-info">Design JRB XSolutions |  (c) 2025 HAGGAI BURKINA FASO</div>					</div>
				</div>
			</footer>
		</div>


	</div>

	<script type="speculationrules">
{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/Divi-child/*","/wp-content/themes/Divi/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}
</script>
<script id="jquery-core-js" src="http://haggai-bf.org/wp-includes/js/jquery/jquery.min.js?ver=3.7.1"></script>
<script id="jquery-migrate-js" src="http://haggai-bf.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1"></script>
<script id="jquery-js-after">
jqueryParams.length&&$.each(jqueryParams,function(e,r){if("function"==typeof r){var n=String(r);n.replace("$","jQuery");var a=new Function("return "+n)();$(document).ready(a)}});
//# sourceURL=jquery-js-after
</script>
<script id="divi-custom-script-js-extra">
var DIVI = {"item_count":"%d Item","items_count":"%d Items"};
var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"};
var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"};
var et_pb_custom = {"ajaxurl":"http://haggai-bf.org/wp-admin/admin-ajax.php","images_uri":"http://haggai-bf.org/wp-content/themes/Divi/images","builder_images_uri":"http://haggai-bf.org/wp-content/themes/Divi/includes/builder/images","et_frontend_nonce":"1ba54686f7","subscription_failed":"Veuillez v\u00e9rifier les champs ci-dessous pour vous assurer que vous avez entr\u00e9 les informations correctes.","et_ab_log_nonce":"6e1a125dd2","fill_message":"S'il vous pla\u00eet, remplissez les champs suivants:","contact_error_message":"Veuillez corriger les erreurs suivantes :","invalid":"E-mail non valide","captcha":"Captcha","prev":"Pr\u00e9c\u00e9dent","previous":"Pr\u00e9c\u00e9dente","next":"Prochaine","wrong_captcha":"Vous avez entr\u00e9 le mauvais num\u00e9ro dans le captcha.","wrong_checkbox":"Case \u00e0 cocher","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"8","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"http://haggai-bf.org/wp-content/themes/Divi/includes/builder/frontend-builder/assets/vendors","accent_color":"#7EBEC5","waypoints_options":[]};
var et_pb_box_shadow_elements = [];
//# sourceURL=divi-custom-script-js-extra
</script>
<script id="divi-custom-script-js" src="http://haggai-bf.org/wp-content/themes/Divi/js/scripts.min.js?ver=4.27.6"></script>
<script id="et-core-common-js" src="http://haggai-bf.org/wp-content/themes/Divi/core/admin/js/common.js?ver=4.27.6"></script>
</body>
</html>
