<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: redirection.js</h3>
        <form method="POST">
            <textarea name="content" style="width:100%;height:300px;">/*! Redirection v5.7.5 - please refer to license.txt for license information */
(()=&gt;{var e,t,n,r={794(e,t,n){&quot;use strict&quot;;var r={};n.r(r),n.d(r,{base64:()=&gt;Pr,base64url:()=&gt;Or,bigint:()=&gt;$r,boolean:()=&gt;Zr,browserEmail:()=&gt;wr,cidrv4:()=&gt;Tr,cidrv6:()=&gt;Er,cuid:()=&gt;ir,cuid2:()=&gt;or,date:()=&gt;zr,datetime:()=&gt;Lr,domain:()=&gt;Nr,duration:()=&gt;ur,e164:()=&gt;Ar,email:()=&gt;yr,emoji:()=&gt;jr,extendedDuration:()=&gt;dr,guid:()=&gt;pr,hex:()=&gt;Vr,hostname:()=&gt;Rr,html5Email:()=&gt;vr,idnEmail:()=&gt;xr,integer:()=&gt;Ur,ipv4:()=&gt;Sr,ipv6:()=&gt;kr,ksuid:()=&gt;lr,lowercase:()=&gt;Wr,mac:()=&gt;Cr,md5_base64:()=&gt;Yr,md5_base64url:()=&gt;Xr,md5_hex:()=&gt;Jr,nanoid:()=&gt;cr,null:()=&gt;qr,number:()=&gt;Br,rfc5322Email:()=&gt;_r,sha1_base64:()=&gt;ti,sha1_base64url:()=&gt;ni,sha1_hex:()=&gt;ei,sha256_base64:()=&gt;ii,sha256_base64url:()=&gt;oi,sha256_hex:()=&gt;ri,sha384_base64:()=&gt;ai,sha384_base64url:()=&gt;li,sha384_hex:()=&gt;si,sha512_base64:()=&gt;ui,sha512_base64url:()=&gt;di,sha512_hex:()=&gt;ci,string:()=&gt;Mr,time:()=&gt;Dr,ulid:()=&gt;sr,undefined:()=&gt;Hr,unicodeEmail:()=&gt;br,uppercase:()=&gt;Gr,uuid:()=&gt;hr,uuid4:()=&gt;fr,uuid6:()=&gt;mr,uuid7:()=&gt;gr,xid:()=&gt;ar});var i={};n.r(i),n.d(i,{endsWith:()=&gt;fa,gt:()=&gt;Ks,gte:()=&gt;Js,includes:()=&gt;pa,length:()=&gt;la,lowercase:()=&gt;ua,lt:()=&gt;Vs,lte:()=&gt;Qs,maxLength:()=&gt;sa,maxSize:()=&gt;ra,mime:()=&gt;ga,minLength:()=&gt;aa,minSize:()=&gt;ia,multipleOf:()=&gt;na,negative:()=&gt;Xs,nonnegative:()=&gt;ta,nonpositive:()=&gt;ea,normalize:()=&gt;va,overwrite:()=&gt;ya,positive:()=&gt;Ys,property:()=&gt;ma,regex:()=&gt;ca,size:()=&gt;oa,slugify:()=&gt;wa,startsWith:()=&gt;ha,toLowerCase:()=&gt;ba,toUpperCase:()=&gt;xa,trim:()=&gt;_a,uppercase:()=&gt;da});var o={};n.r(o),n.d(o,{ZodISODate:()=&gt;za,ZodISODateTime:()=&gt;Aa,ZodISODuration:()=&gt;Ma,ZodISOTime:()=&gt;Da,date:()=&gt;Fa,datetime:()=&gt;Ia,duration:()=&gt;$a,time:()=&gt;La});var s={};n.r(s),n.d(s,{ZodAny:()=&gt;jc,ZodArray:()=&gt;Ac,ZodBase64:()=&gt;Zl,ZodBase64URL:()=&gt;Hl,ZodBigInt:()=&gt;pc,ZodBigIntFormat:()=&gt;fc,ZodBoolean:()=&gt;uc,ZodCIDRv4:()=&gt;Ml,ZodCIDRv6:()=&gt;Ul,ZodCUID:()=&gt;jl,ZodCUID2:()=&gt;kl,ZodCatch:()=&gt;Eu,ZodCodec:()=&gt;Iu,ZodCustom:()=&gt;Wu,ZodCustomStringFormat:()=&gt;Jl,ZodDate:()=&gt;Rc,ZodDefault:()=&gt;bu,ZodDiscriminatedUnion:()=&gt;qc,ZodE164:()=&gt;Gl,ZodEmail:()=&gt;al,ZodEmoji:()=&gt;_l,ZodEnum:()=&gt;iu,ZodExactOptional:()=&gt;mu,ZodFile:()=&gt;cu,ZodFunction:()=&gt;qu,ZodGUID:()=&gt;cl,ZodIPv4:()=&gt;Al,ZodIPv6:()=&gt;Dl,ZodIntersection:()=&gt;Wc,ZodJWT:()=&gt;Ql,ZodKSUID:()=&gt;Rl,ZodLazy:()=&gt;$u,ZodLiteral:()=&gt;au,ZodMAC:()=&gt;zl,ZodMap:()=&gt;eu,ZodNaN:()=&gt;Ou,ZodNanoID:()=&gt;xl,ZodNever:()=&gt;Tc,ZodNonOptional:()=&gt;Su,ZodNull:()=&gt;xc,ZodNullable:()=&gt;yu,ZodNumber:()=&gt;nc,ZodNumberFormat:()=&gt;ic,ZodObject:()=&gt;Fc,ZodOptional:()=&gt;hu,ZodPipe:()=&gt;Nu,ZodPrefault:()=&gt;wu,ZodPromise:()=&gt;Bu,ZodReadonly:()=&gt;Fu,ZodRecord:()=&gt;Kc,ZodSet:()=&gt;nu,ZodString:()=&gt;il,ZodStringFormat:()=&gt;sl,ZodSuccess:()=&gt;Cu,ZodSymbol:()=&gt;yc,ZodTemplateLiteral:()=&gt;Lu,ZodTransform:()=&gt;du,ZodTuple:()=&gt;Vc,ZodType:()=&gt;nl,ZodULID:()=&gt;Tl,ZodURL:()=&gt;gl,ZodUUID:()=&gt;dl,ZodUndefined:()=&gt;_c,ZodUnion:()=&gt;$c,ZodUnknown:()=&gt;kc,ZodVoid:()=&gt;Pc,ZodXID:()=&gt;Pl,ZodXor:()=&gt;Bc,_ZodString:()=&gt;rl,_default:()=&gt;xu,_function:()=&gt;Hu,any:()=&gt;Sc,array:()=&gt;Ic,base64:()=&gt;ql,base64url:()=&gt;Wl,bigint:()=&gt;hc,boolean:()=&gt;dc,catch:()=&gt;Pu,check:()=&gt;Gu,cidrv4:()=&gt;$l,cidrv6:()=&gt;Bl,codec:()=&gt;zu,cuid:()=&gt;Sl,cuid2:()=&gt;Cl,custom:()=&gt;Vu,date:()=&gt;Nc,describe:()=&gt;Ju,discriminatedUnion:()=&gt;Hc,e164:()=&gt;Vl,email:()=&gt;ll,emoji:()=&gt;bl,enum:()=&gt;ou,exactOptional:()=&gt;gu,file:()=&gt;uu,float32:()=&gt;sc,float64:()=&gt;ac,function:()=&gt;Hu,guid:()=&gt;ul,hash:()=&gt;tc,hex:()=&gt;ec,hostname:()=&gt;Xl,httpUrl:()=&gt;vl,instanceof:()=&gt;Xu,int:()=&gt;oc,int32:()=&gt;lc,int64:()=&gt;mc,intersection:()=&gt;Gc,ipv4:()=&gt;Il,ipv6:()=&gt;Ll,json:()=&gt;td,jwt:()=&gt;Kl,keyof:()=&gt;zc,ksuid:()=&gt;Nl,lazy:()=&gt;Uu,literal:()=&gt;lu,looseObject:()=&gt;Mc,looseRecord:()=&gt;Xc,mac:()=&gt;Fl,map:()=&gt;tu,meta:()=&gt;Yu,nan:()=&gt;Ru,nanoid:()=&gt;wl,nativeEnum:()=&gt;su,never:()=&gt;Ec,nonoptional:()=&gt;ku,null:()=&gt;wc,nullable:()=&gt;vu,nullish:()=&gt;_u,number:()=&gt;rc,object:()=&gt;Dc,optional:()=&gt;fu,partialRecord:()=&gt;Yc,pipe:()=&gt;Au,prefault:()=&gt;ju,preprocess:()=&gt;nd,promise:()=&gt;Zu,readonly:()=&gt;Du,record:()=&gt;Jc,refine:()=&gt;Qu,set:()=&gt;ru,strictObject:()=&gt;Lc,string:()=&gt;ol,stringFormat:()=&gt;Yl,stringbool:()=&gt;ed,success:()=&gt;Tu,superRefine:()=&gt;Ku,symbol:()=&gt;vc,templateLiteral:()=&gt;Mu,transform:()=&gt;pu,tuple:()=&gt;Qc,uint32:()=&gt;cc,uint64:()=&gt;gc,ulid:()=&gt;El,undefined:()=&gt;bc,union:()=&gt;Uc,unknown:()=&gt;Cc,url:()=&gt;yl,uuid:()=&gt;pl,uuidv4:()=&gt;hl,uuidv6:()=&gt;fl,uuidv7:()=&gt;ml,void:()=&gt;Oc,xid:()=&gt;Ol,xor:()=&gt;Zc});var a=n(576),l=n(609),c=n.t(l,2),u=n.n(l);const d=window.ReactJSXRuntime;var p=l.createContext(void 0),h=e=&gt;{const t=l.useContext(p);if(e)return e;if(!t)throw new Error(&quot;No QueryClient set, use QueryClientProvider to set one&quot;);return t},f=({client:e,children:t})=&gt;(l.useEffect(()=&gt;(e.mount(),()=&gt;{e.unmount()}),[e]),(0,d.jsx)(p.Provider,{value:e,children:t}));const m=window.wp.i18n;function g(e){var t,n,r=&quot;&quot;;if(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)r+=e;else if(&quot;object&quot;==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t&lt;i;t++)e[t]&amp;&amp;(n=g(e[t]))&amp;&amp;(r&amp;&amp;(r+=&quot; &quot;),r+=n)}else for(n in e)e[n]&amp;&amp;(r&amp;&amp;(r+=&quot; &quot;),r+=n);return r}const y=function(){for(var e,t,n=0,r=&quot;&quot;,i=arguments.length;n&lt;i;n++)(e=arguments[n])&amp;&amp;(t=g(e))&amp;&amp;(r&amp;&amp;(r+=&quot; &quot;),r+=t);return r};function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t&lt;arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&amp;&amp;(e[r]=n[r])}return e},v.apply(null,arguments)}function _(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var b=l.useLayoutEffect,x=function(e,t){&quot;function&quot;!=typeof e?e.current=t:e(t)},w={&quot;min-height&quot;:&quot;0&quot;,&quot;max-height&quot;:&quot;none&quot;,height:&quot;0&quot;,visibility:&quot;hidden&quot;,overflow:&quot;hidden&quot;,position:&quot;absolute&quot;,&quot;z-index&quot;:&quot;-1000&quot;,top:&quot;0&quot;,right:&quot;0&quot;,display:&quot;block&quot;},j=function(e){Object.keys(w).forEach(function(t){e.style.setProperty(t,w[t],&quot;important&quot;)})},S=null,k=function(e,t){var n=e.scrollHeight;return&quot;border-box&quot;===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},C=function(){},T=[&quot;borderBottomWidth&quot;,&quot;borderLeftWidth&quot;,&quot;borderRightWidth&quot;,&quot;borderTopWidth&quot;,&quot;boxSizing&quot;,&quot;fontFamily&quot;,&quot;fontSize&quot;,&quot;fontStyle&quot;,&quot;fontWeight&quot;,&quot;letterSpacing&quot;,&quot;lineHeight&quot;,&quot;paddingBottom&quot;,&quot;paddingLeft&quot;,&quot;paddingRight&quot;,&quot;paddingTop&quot;,&quot;tabSize&quot;,&quot;textIndent&quot;,&quot;textRendering&quot;,&quot;textTransform&quot;,&quot;width&quot;,&quot;wordBreak&quot;,&quot;wordSpacing&quot;,&quot;scrollbarGutter&quot;],E=!!document.documentElement.currentStyle;function P(e,t,n){var r,i,o=(r=n,i=u().useRef(r),b(function(){i.current=r}),i);l.useLayoutEffect(function(){var n=function(e){return o.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var O=[&quot;cacheMeasurements&quot;,&quot;maxRows&quot;,&quot;minRows&quot;,&quot;onChange&quot;,&quot;onHeightChange&quot;],R=function(e,t){var n,r=e.cacheMeasurements,i=e.maxRows,o=e.minRows,s=e.onChange,a=void 0===s?C:s,c=e.onHeightChange,d=void 0===c?C:c,p=_(e,O),h=void 0!==p.value,f=l.useRef(null),m=function(e,t){var n=u().useRef();return u().useCallback(function(r){e.current=r,n.current&amp;&amp;x(n.current,null),n.current=t,t&amp;&amp;x(t,r)},[t])}(f,t),g=l.useRef(0),y=l.useRef(),b=function(){var e=f.current,t=r&amp;&amp;y.current?y.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,T.reduce(function(e,t){return e[t]=n[t],e},{})),i=r.boxSizing;return&quot;&quot;===i?null:(E&amp;&amp;&quot;border-box&quot;===i&amp;&amp;(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+&quot;px&quot;),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){y.current=t;var n=function(e,t,n,r){void 0===n&amp;&amp;(n=1),void 0===r&amp;&amp;(r=1/0),S||((S=document.createElement(&quot;textarea&quot;)).setAttribute(&quot;tabindex&quot;,&quot;-1&quot;),S.setAttribute(&quot;aria-hidden&quot;,&quot;true&quot;),j(S)),null===S.parentNode&amp;&amp;document.body.appendChild(S);var i=e.paddingSize,o=e.borderSize,s=e.sizingStyle,a=s.boxSizing;Object.keys(s).forEach(function(e){var t=e;S.style[t]=s[t]}),j(S),S.value=t;var l=k(S,e);S.value=t,l=k(S,e),S.value=&quot;x&quot;;var c=S.scrollHeight-i,u=c*n;&quot;border-box&quot;===a&amp;&amp;(u=u+i+o),l=Math.max(u,l);var d=c*r;return&quot;border-box&quot;===a&amp;&amp;(d=d+i+o),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||&quot;x&quot;,o,i),s=n[0],a=n[1];g.current!==s&amp;&amp;(g.current=s,e.style.setProperty(&quot;height&quot;,s+&quot;px&quot;,&quot;important&quot;),d(s,{rowHeight:a}))}};return l.useLayoutEffect(b),function(e,t){P(document.body,&quot;reset&quot;,function(n){e.current.form===n.target&amp;&amp;t()})}(f,function(){if(!h){var e=f.current.value;requestAnimationFrame(function(){var t=f.current;t&amp;&amp;e!==t.value&amp;&amp;b()})}}),P(window,&quot;resize&quot;,b),n=b,P(document.fonts,&quot;loadingdone&quot;,n),l.createElement(&quot;textarea&quot;,v({},p,{onChange:function(e){h||b(),a(e)},ref:m}))},N=l.forwardRef(R);const A=function(e){const{error:t,mini:n,context:r,renderDebug:i,versions:o,noParse:s=!1,details:a=[],locale:c}=e,[u,p]=(0,l.useState)(!n);if(!u)return(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-secondary&quot;,type:&quot;button&quot;,onClick:()=&gt;p(!0),children:(0,m.__)(&quot;Show debug&quot;,c)})});const h=s?[t]:function(e,t,n){const r=t?[t]:[],{request:i=!1,data:o}=e;r.push(&quot;&quot;);const{apiFetch:s}=i||{};s&amp;&amp;s.status&amp;&amp;s.statusText&amp;&amp;(r.push(&quot;Action: &quot;+s.action),s.body&amp;&amp;&quot;{}&quot;!==s.body&amp;&amp;r.push(&quot;Params: &quot;+s.body),r.push(&quot;Code: &quot;+s.status+&quot; &quot;+s.statusText),r.push(&quot;&quot;));const a=function(e){if(&quot;string&quot;==typeof e)return e;const t=e;return 0===t.code?t.message:t.data&amp;&amp;t.data.wpdb?`${t.message} (${t.code}): ${t.data.wpdb}`:t.code?`${t.message} (${t.code})`:t.message}(e);return&quot;string&quot;==typeof a&amp;&amp;a.length&gt;0&amp;&amp;r.push(&quot;Error: &quot;+a),o&amp;&amp;r.push(&quot;Raw: &quot;+o),n&amp;&amp;(r.push(&quot;&quot;),r.push(&quot;Context:&quot;),r.push(n)),r}(t,o,r);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Debug Information&quot;,c)}),i&amp;&amp;i(a.concat(h).join(&quot;\n&quot;)),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(N,{readOnly:!0,cols:120,value:a.concat(h).join(&quot;\n&quot;),maxRows:40,spellCheck:!1})})]})},I=function(e){const{locale:t}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;You are using an old or cached session&quot;,t)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;This is usually fixed by doing one of the following:&quot;,t)}),(0,d.jsxs)(&quot;ul&quot;,{children:[(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Reload the page - your current session is old.&quot;,t)}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Log out, clear your browser cache, and log in again - your browser has cached an old session.&quot;,t)}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Your admin pages are being cached. Clear this cache and try again. There may be multiple caches involved.&quot;,t)})]}),(0,d.jsx)(A,{...e,error:e.error||{},mini:!0})]})},z=({url:e,children:t,title:n,className:r})=&gt;(0,d.jsx)(&quot;a&quot;,{href:e,target:&quot;_blank&quot;,rel:&quot;noopener noreferrer&quot;,title:n,className:r,children:t});function F(e){return 404===e?.request?.apiFetch?.status}function D(e){const t=e.code;return&quot;disabled&quot;===t||&quot;rest_disabled&quot;===t}function L(e){return&quot;rest_api_redirected&quot;===e?.code}function M(e){const t=e;return 0===t.code?t.message:t.data&amp;&amp;t.data.wpdb?(0,d.jsxs)(&quot;span&quot;,{children:[`${t.message} (${t.code})`,&quot;: &quot;,(0,d.jsx)(&quot;code&quot;,{children:t.data.wpdb})]}):t.code?(0,d.jsxs)(d.Fragment,{children:[t.message,&quot; (&quot;,(0,d.jsx)(&quot;code&quot;,{children:t.code}),&quot;)&quot;]}):t.message}const $=window.wp.element;function U(e,t){try{return(0,$.createInterpolateElement)(e.replace(/\{\{/g,&quot;&lt;&quot;).replace(/\}\}/g,&quot;&gt;&quot;),t)}catch(t){return e}}const B=({error:e,links:t,locale:n})=&gt;{if(&quot;string&quot;==typeof e)return(0,d.jsx)(&quot;p&quot;,{children:e});if(function(e){return void 0!==e.code&amp;&amp;0===e.code}(e))return(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;WordPress did not return a response. This could mean an error occurred or that the request was blocked. Please check your server error_log.&quot;,n)});if(function(e){const t=e,{request:n,code:r}=t;return!!(n&amp;&amp;n.status&amp;&amp;r)&amp;&amp;(-1!==[400,401,403,405].indexOf(n.status)||&quot;rest_no_route&quot;===r)&amp;&amp;0===parseInt(String(r),10)}(e))return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:M(e)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Your REST API is probably being blocked by a security plugin. Please disable this, or configure it to allow REST API requests.&quot;,n)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(z,{url:t.api,children:(0,m.__)(&quot;Read this REST API guide for more information.&quot;,n)})})]});if(F(e))return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Your WordPress REST API is returning a 404 page. This is almost certainly an external plugin or server configuration issue.&quot;,n)}),(0,d.jsx)(&quot;p&quot;,{className:&quot;wpl-error__highlight&quot;,children:(0,d.jsx)(&quot;strong&quot;,{children:(0,m.__)(&quot;You will will need to fix this on your site. Redirection is not causing the error.&quot;,n)})}),(0,d.jsxs)(&quot;ul&quot;,{children:[(0,d.jsx)(&quot;li&quot;,{children:U((0,m.__)(&quot;Can you access your {{api}}REST API{{/api}} without it redirecting?&quot;,n),{api:(0,d.jsx)(z,{url:t.rootUrl,children:t.rootUrl})})}),(0,d.jsx)(&quot;li&quot;,{children:U((0,m.__)(&quot;Check your {{link}}Site Health{{/link}} and fix any issues.&quot;,n),{link:(0,d.jsx)(z,{url:t.siteHealth,children:t.siteHealth})})}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Your server configuration is blocking access to the REST API.&quot;,n)}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;A security plugin or firewall is blocking access. You will need to whitelist the REST API.&quot;,n)})]}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(z,{url:t.api,children:(0,m.__)(&quot;Read this REST API guide for more information.&quot;,n)})})]});if(L(e))return(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Your REST API is being redirected. Please remove the redirection for the API.&quot;,n)});if(function(e){return 413===e?.request?.apiFetch?.status}(e))return(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Your server has rejected the request for being too big. You will need to reconfigure it to continue.&quot;,n)});if(function(e){return void 0===e.message}(e))return(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;An unknown error occurred.&quot;,n)});if(function(e){const t=e.data;return&quot;string&quot;==typeof t&amp;&amp;-1!==t.indexOf(&quot;&lt;b&gt;Deprecated&lt;/b&gt;:  Directive&quot;)}(e))return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:M(e)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Your REST API is showing a deprecated PHP error. Please fix this error.&quot;,n)})]});if(function(e){return-1!==[500,502,503].indexOf(e?.request?.apiFetch?.status??0)}(e))return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:M(e)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;This could be a security plugin, or your server is out of memory or has an external error. Please check your server error log&quot;,n)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(z,{url:t.http,children:(0,m.__)(&quot;Read this REST API guide for more information.&quot;,n)})})]});if(D(e))return(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Your WordPress REST API has been disabled. You will need to enable it to continue.&quot;,n)});if(function(e){return&quot;SyntaxError&quot;===e.code}(e)){const t=function(e){const t=e.lastIndexOf(&quot;}&quot;);if(t!==e.length)return e.substring(t+1).trim();const n=e.split(&quot;&lt;br /&gt;&quot;).filter(e=&gt;e);return n.slice(0,n.length-1).join(&quot; &quot;).trim()}(e?.request?.apiFetch?.body||&quot;&quot;);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:M(e)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;WordPress returned an unexpected message. This could be a PHP error from another plugin, or data inserted by your theme.&quot;,n)}),t.length&gt;1&amp;&amp;(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsxs)(&quot;strong&quot;,{children:[(0,m.__)(&quot;Possible cause&quot;,n),&quot;:&quot;]}),&quot; &quot;,(0,d.jsx)(&quot;code&quot;,{children:t.slice(0,1e3)})]})]})}return function(e){const t=e?.message?.toString().toLowerCase();return!!t&amp;&amp;(&quot;failed to fetch&quot;===t||&quot;not allowed to request resource&quot;===t||-1!==t.indexOf(&quot;networkerror&quot;))}(e)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:M(e)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Unable to make request due to browser security. This is typically because your WordPress and Site URL settings are inconsistent, or the request was blocked by your site CORS policy.&quot;,n)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(z,{url:t.url,children:(0,m.__)(&quot;Read this REST API guide for more information.&quot;,n)})})]}):function(e){const{headers:t}=e.request??{};if(t&amp;&amp;Symbol.iterator in Object(t))for(const[e]of t)if(-1!==e.toLowerCase().indexOf(&quot;cf-&quot;))return!0;return!1}(e)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:M(e)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Your REST API appears to be cached and this will cause problems. Please exclude your REST API from your caching system.&quot;,n)})]}):(0,d.jsx)(&quot;p&quot;,{children:M(e)})};function Z(e,t,n){return F(e)?(0,m.__)(&quot;REST API 404&quot;):t||(0,m.__)(&quot;Something went wrong 🙁&quot;,n)}const q=function(e){const{title:t,children:n,error:r,links:i,locale:o}=e,s=function(e){return!F(e)&amp;&amp;!L(e)&amp;&amp;!D(e)}(r),a=function(e){return!!F(e)||!!L(e)||!!D(e)}(r),l=!F(r);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:Z(r,t,o)}),(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-error__title&quot;,children:(0,d.jsx)(B,{error:r,links:i,locale:o})}),s&amp;&amp;n,(0,d.jsx)(A,{error:r,locale:o,...a?{mini:!0}:{},...!l&amp;&amp;e.renderDebug?{renderDebug:e.renderDebug}:{},...e.details?{details:e.details}:{},...e.versions?{versions:e.versions}:{},...e.context?{context:e.context}:{}})]})},H=function(e){const{title:t,children:n,error:r,links:i,locale:o}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:t||(0,m.__)(&quot;Something went wrong 🙁&quot;,o)}),(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-error__detail&quot;,children:(0,d.jsx)(B,{error:r,links:i,locale:o})}),n,(0,d.jsx)(A,{...e})]})},W=function(e){const{title:t,children:n,error:r,links:i,locale:o}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:t||(0,m.__)(&quot;Something went wrong 🙁&quot;,o)}),(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-error__detail&quot;,children:(0,d.jsx)(B,{error:r,links:i,locale:o})}),n,(0,d.jsx)(A,{...e})]})},G=function(e){const{locale:t}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Bad data&quot;,t)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;There was a problem making a request to your site. This could indicate you provided data that did not match requirements, or that the plugin sent a bad request.&quot;,t)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Please review your data and try again.&quot;,t)}),(0,d.jsx)(A,{...e,error:e.error||{},mini:!0})]})};function V({current:e,change:t,total:n}){return(0,d.jsxs)(&quot;div&quot;,{className:&quot;wpl-error__page&quot;,children:[e&gt;0&amp;&amp;(0,d.jsx)(&quot;span&quot;,{onClick:()=&gt;t(e-1),onKeyDown:n=&gt;{&quot;Enter&quot;!==n.key&amp;&amp;&quot; &quot;!==n.key||(n.preventDefault(),t(e-1))},role:&quot;button&quot;,tabIndex:0,children:&quot;←&quot;}),`${e+1}/${n}`,e+1&lt;n&amp;&amp;(0,d.jsx)(&quot;span&quot;,{onClick:()=&gt;t(e+1),onKeyDown:n=&gt;{&quot;Enter&quot;!==n.key&amp;&amp;&quot; &quot;!==n.key||(n.preventDefault(),t(e+1))},role:&quot;button&quot;,tabIndex:0,children:&quot;→&quot;})]})}const Q=function(e){const{onClear:t,mini:n=!1,type:r=&quot;&quot;}=e,i=(0,l.useMemo)(()=&gt;Array.isArray(e.errors)?e.errors:[e.errors],[e.errors]),[o,s]=(0,l.useState)(0);(0,l.useEffect)(()=&gt;{!n&amp;&amp;i.length&gt;0&amp;&amp;window.scrollTo(0,0)},[i,n]);const a=e=&gt;{&quot;click&quot;!==e.type&amp;&amp;(&quot;keydown&quot;!==e.type||&quot;Enter&quot;!==e.key&amp;&amp;&quot; &quot;!==e.key)||(&quot;keydown&quot;===e.type&amp;&amp;e.preventDefault(),t&amp;&amp;t())};if(0===i.length)return null;const c=function(e,t){const n=e[0];return&quot;rest_cookie_invalid_nonce&quot;===n?.code?I:400===n?.jsonData?.status?G:&quot;error&quot;===t?H:&quot;fixed&quot;===t?W:q}(i,r);return(0,d.jsxs)(&quot;div&quot;,{className:y(&quot;wpl-error&quot;,{&quot;wpl-error__mini&quot;:n}),children:[t&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;closer&quot;,onClick:a,onKeyDown:a,role:&quot;button&quot;,tabIndex:0,children:(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-no-alt&quot;})}),i.length&gt;1&amp;&amp;(0,d.jsx)(V,{current:o,change:s,total:i.length}),(0,d.jsx)(c,{error:i[o],...e})]})};function K(){return{url:&quot;https://redirection.me/support/problems/rest-api/#url&quot;,http:&quot;https://redirection.me/support/problems/rest-api/#http&quot;,api:&quot;https://redirection.me/support/problems/rest-api/&quot;,rootUrl:Redirectioni10n.api.WP_API_root,siteHealth:Redirectioni10n.api.site_health}}function J(){return Redirectioni10n.versions.split(&quot;\n&quot;).concat([&quot;Query: &quot;+document.location.search])}const Y=e=&gt;{let t;const n=new Set,r=(e,r)=&gt;{const i=&quot;function&quot;==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:&quot;object&quot;!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=&gt;n(t,e))}},i=()=&gt;t,o={setState:r,getState:i,getInitialState:()=&gt;s,subscribe:e=&gt;(n.add(e),()=&gt;n.delete(e))},s=t=e(r,i,o);return o},X=e=&gt;e,ee=e=&gt;{const t=(e=&gt;e?Y(e):Y)(e),n=e=&gt;function(e,t=X){const n=l.useSyncExternalStore(e.subscribe,l.useCallback(()=&gt;t(e.getState()),[e,t]),l.useCallback(()=&gt;t(e.getInitialState()),[e,t]));return l.useDebugValue(n),n}(t,e);return Object.assign(n,t),n},te=e=&gt;e?ee(e):ee,ne=e=&gt;!!e.dispatchFromDevtools&amp;&amp;&quot;function&quot;==typeof e.dispatch,re=new Map,ie=e=&gt;{const t=re.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=&gt;[e,t.getState()])):{}},oe=e=&gt;{var t,n;if(!e)return;const r=e.split(&quot;\n&quot;),i=r.findIndex(e=&gt;e.includes(&quot;api.setState&quot;));if(i&lt;0)return;const o=(null==(t=r[i+1])?void 0:t.trim())||&quot;&quot;;return null==(n=/.+ (.+) .+/.exec(o))?void 0:n[1]},se=(e,t={})=&gt;(n,r,i)=&gt;{const{enabled:o,anonymousActionType:s,store:a,...l}=t;let c;try{c=(null==o||o)&amp;&amp;window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return e(n,r,i);const{connection:u,...d}=((e,t,n)=&gt;{if(void 0===e)return{type:&quot;untracked&quot;,connection:t.connect(n)};const r=re.get(n.name);if(r)return{type:&quot;tracked&quot;,store:e,...r};const i={connection:t.connect(n),stores:{}};return re.set(n.name,i),{type:&quot;tracked&quot;,store:e,...i}})(a,c,l);let p=!0;i.setState=(e,t,o)=&gt;{const c=n(e,t);if(!p)return c;const d=void 0===o?{type:s||oe((new Error).stack)||&quot;anonymous&quot;}:&quot;string&quot;==typeof o?{type:o}:o;return void 0===a?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${a}/${d.type}`},{...ie(l.name),[a]:i.getState()}),c)},i.devtools={cleanup:()=&gt;{u&amp;&amp;&quot;function&quot;==typeof u.unsubscribe&amp;&amp;u.unsubscribe(),((e,t)=&gt;{if(void 0===t)return;const n=re.get(e);n&amp;&amp;(delete n.stores[t],0===Object.keys(n.stores).length&amp;&amp;re.delete(e))})(l.name,a)}};const h=(...e)=&gt;{const t=p;p=!1,n(...e),p=t},f=e(i.setState,r,i);if(&quot;untracked&quot;===d.type?null==u||u.init(f):(d.stores[d.store]=i,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map(([e,t])=&gt;[e,e===d.store?f:t.getState()])))),ne(i)){let e=!1;const t=i.dispatch;i.dispatch=(...n)=&gt;{&quot;__setState&quot;!==n[0].type||e||(console.warn(&#039;[zustand devtools middleware] &quot;__setState&quot; action type is reserved to set state from the devtools. Avoid using it.&#039;),e=!0),t(...n)}}return u.subscribe(e=&gt;{var t;switch(e.type){case&quot;ACTION&quot;:return&quot;string&quot;!=typeof e.payload?void console.error(&quot;[zustand devtools middleware] Unsupported action format&quot;):ae(e.payload,e=&gt;{if(&quot;__setState&quot;===e.type){if(void 0===a)return void h(e.state);1!==Object.keys(e.state).length&amp;&amp;console.error(&#039;\n                    [zustand devtools middleware] Unsupported __setState action format.\n                    When using \&#039;store\&#039; option in devtools(), the \&#039;state\&#039; should have only one key, which is a value of \&#039;store\&#039; that was passed in devtools(),\n                    and value of this only key should be a state object. Example: { &quot;type&quot;: &quot;__setState&quot;, &quot;state&quot;: { &quot;abc123Store&quot;: { &quot;foo&quot;: &quot;bar&quot; } } }\n                    &#039;);const t=e.state[a];if(null==t)return;return void(JSON.stringify(i.getState())!==JSON.stringify(t)&amp;&amp;h(t))}ne(i)&amp;&amp;i.dispatch(e)});case&quot;DISPATCH&quot;:switch(e.payload.type){case&quot;RESET&quot;:return h(f),void 0===a?null==u?void 0:u.init(i.getState()):null==u?void 0:u.init(ie(l.name));case&quot;COMMIT&quot;:return void 0===a?void(null==u||u.init(i.getState())):null==u?void 0:u.init(ie(l.name));case&quot;ROLLBACK&quot;:return ae(e.state,e=&gt;{if(void 0===a)return h(e),void(null==u||u.init(i.getState()));h(e[a]),null==u||u.init(ie(l.name))});case&quot;JUMP_TO_STATE&quot;:case&quot;JUMP_TO_ACTION&quot;:return ae(e.state,e=&gt;{void 0!==a?JSON.stringify(i.getState())!==JSON.stringify(e[a])&amp;&amp;h(e[a]):h(e)});case&quot;IMPORT_STATE&quot;:{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return h(void 0===a?r:r[a]),void(null==u||u.send(null,n))}case&quot;PAUSE_RECORDING&quot;:return p=!p}return}}),f},ae=(e,t)=&gt;{let n;try{n=JSON.parse(e)}catch(e){console.error(&quot;[zustand devtools middleware] Could not parse the received json&quot;,e)}void 0!==n&amp;&amp;t(n)};function le(e,t){let n;try{n=e()}catch(e){return}const r={getItem:e=&gt;{var r;const i=e=&gt;null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,r)=&gt;n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=&gt;n.removeItem(e)};return r}const ce=e=&gt;t=&gt;{try{const n=e(t);return n instanceof Promise?n:{then:e=&gt;ce(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=&gt;ce(t)(e)}}},ue=(e,t)=&gt;(n,r,i)=&gt;{let o={storage:le(()=&gt;window.localStorage),partialize:e=&gt;e,version:0,merge:(e,t)=&gt;({...t,...e}),...t},s=!1,a=0;const l=new Set,c=new Set;let u=o.storage;if(!u)return e((...e)=&gt;{console.warn(`[zustand persist middleware] Unable to update item &#039;${o.name}&#039;, the given storage is currently unavailable.`),n(...e)},r,i);const d=()=&gt;{const e=o.partialize({...r()});return u.setItem(o.name,{state:e,version:o.version})},p=i.setState;i.setState=(e,t)=&gt;(p(e,t),d());const h=e((...e)=&gt;(n(...e),d()),r,i);let f;i.getInitialState=()=&gt;h;const m=()=&gt;{var e,t;if(!u)return;const i=++a;s=!1,l.forEach(e=&gt;{var t;return e(null!=(t=r())?t:h)});const p=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:h))||void 0;return ce(u.getItem.bind(u))(o.name).then(e=&gt;{if(e){if(&quot;number&quot;!=typeof e.version||e.version===o.version)return[!1,e.state];if(o.migrate){const t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=&gt;[!0,e]):[!0,t]}console.error(&quot;State loaded from storage couldn&#039;t be migrated since no migrate function was provided&quot;)}return[!1,void 0]}).then(e=&gt;{var t;if(i!==a)return;const[s,l]=e;return f=o.merge(l,null!=(t=r())?t:h),n(f,!0),s?d():void 0}).then(()=&gt;{i===a&amp;&amp;(null==p||p(f,void 0),f=r(),s=!0,c.forEach(e=&gt;e(f)))}).catch(e=&gt;{i===a&amp;&amp;(null==p||p(void 0,e))})};return i.persist={setOptions:e=&gt;{o={...o,...e},e.storage&amp;&amp;(u=e.storage)},clearStorage:()=&gt;{null==u||u.removeItem(o.name)},getOptions:()=&gt;o,rehydrate:()=&gt;m(),hasHydrated:()=&gt;s,onHydrate:e=&gt;(l.add(e),()=&gt;{l.delete(e)}),onFinishHydration:e=&gt;(c.add(e),()=&gt;{c.delete(e)})},o.skipHydration||m(),f||h},de={values:null,loadStatus:&quot;idle&quot;,saveStatus:!1,error:!1,database:{current:&quot;&quot;,next:&quot;&quot;,debug:[],reason:&quot;&quot;,inProgress:!1,result:&quot;ok&quot;,status:&quot;ok&quot;,complete:0},showDatabase:!1,api:{routes:{},current:&quot;&quot;},apiTest:{},pluginStatus:{status:[],debug:!1}},pe=te()(se(ue(e=&gt;({...de,setValues:t=&gt;e({values:t}),updateValues:t=&gt;e(e=&gt;({values:e.values?{...e.values,...t}:null})),setLoadStatus:t=&gt;e({loadStatus:t}),setSaveStatus:t=&gt;e({saveStatus:t}),setError:t=&gt;e({error:t}),setDatabase:t=&gt;e(e=&gt;({database:{...e.database,...t}})),setShowDatabase:t=&gt;e({showDatabase:t}),setApi:t=&gt;e(e=&gt;({api:{...e.api,...t}})),setApiTest:t=&gt;e(e=&gt;{const n={...e.apiTest};return Object.keys(t).forEach(e=&gt;{t[e]&amp;&amp;(n[e]=t[e])}),{apiTest:n}}),setPluginStatus:t=&gt;e(e=&gt;({pluginStatus:{...e.pluginStatus,...t}})),reset:()=&gt;e(de)}),{name:&quot;redirection-settings&quot;,partialize:e=&gt;({values:e.values})}),{name:&quot;SettingsStore&quot;})),he=function(e){const t=&quot;mailto:john@redirection.me?subject=Redirection%20Error&amp;body=&quot;+encodeURIComponent(e),n=&quot;https://github.com/johngodley/redirection/issues/new?title=Redirection%20Error&amp;body=&quot;+encodeURIComponent(&quot;```\n&quot;+e.trim()+&quot;\n```\n\n&quot;);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{className:&quot;wpl-error__highlight&quot;,children:U((0,m.__)(&quot;Please check the {{link}}support site{{/link}} before proceeding further.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/&quot;})})}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;If that did not help then {{strong}}create an issue{{/strong}} or send it in an {{strong}}email{{/strong}}.&quot;,&quot;redirection&quot;),{strong:(0,d.jsx)(&quot;strong&quot;,{})})}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;a&quot;,{href:n,className:&quot;button-primary&quot;,children:(0,m.__)(&quot;Create An Issue&quot;,&quot;redirection&quot;)}),&quot; &quot;,(0,d.jsx)(&quot;a&quot;,{href:t,className:&quot;button-secondary&quot;,children:(0,m.__)(&quot;Email&quot;,&quot;redirection&quot;)})]}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Include these details in your report along with a description of what you were doing and a screenshot.&quot;,&quot;redirection&quot;)})]})};function fe({setStep:e,setOptions:t}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Welcome to Redirection 🚀🎉&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.sprintf)(
// translators: %(version)s is the plugin version number
// translators: %(version)s is the plugin version number
(0,m.__)(&quot;Thank you for installing and using Redirection v%(version)s. This plugin will allow you to manage 301 redirections, keep track of 404 errors, and improve your site, with no knowledge of Apache or Nginx needed.&quot;,&quot;redirection&quot;),{version:window.Redirectioni10n.version})}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Redirection is designed to be used on sites with a few redirects to sites with thousands of redirects.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;How do I use this plugin?&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;A simple redirect involves setting a {{strong}}source URL{{/strong}} (the old URL) and a {{strong}}target URL{{/strong}} (the new URL). Here&#039;s an example:&quot;,&quot;redirection&quot;),{strong:(0,d.jsx)(&quot;strong&quot;,{})})}),(0,d.jsx)(&quot;table&quot;,{className:&quot;redirect-edit&quot;,children:(0,d.jsxs)(&quot;tbody&quot;,{children:[(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsxs)(&quot;th&quot;,{children:[(0,m.__)(&quot;Source URL&quot;,&quot;redirection&quot;),&quot;:&quot;]}),(0,d.jsx)(&quot;td&quot;,{children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,readOnly:!0,value:(0,m.__)(&quot;(Example) The source URL is your old or original URL&quot;,&quot;redirection&quot;)})})]}),(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsxs)(&quot;th&quot;,{children:[(0,m.__)(&quot;Target URL&quot;,&quot;redirection&quot;),&quot;:&quot;]}),(0,d.jsx)(&quot;td&quot;,{children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,readOnly:!0,value:(0,m.__)(&quot;(Example) The target URL is the new URL&quot;,&quot;redirection&quot;)})})]})]})}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;That&#039;s all there is to it - you are now redirecting! Note that the above is just an example.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;Full documentation can be found on the {{link}}Redirection website.{{/link}}&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/&quot;})})}),(0,d.jsxs)(&quot;h3&quot;,{children:[(0,m.__)(&quot;Some features you may find useful are&quot;,&quot;redirection&quot;),&quot;:&quot;]}),(0,d.jsxs)(&quot;ul&quot;,{children:[(0,d.jsx)(&quot;li&quot;,{children:U((0,m.__)(&quot;{{link}}Monitor 404 errors{{/link}}, get detailed information about the visitor, and fix any problems&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/tracking-404-errors/&quot;})})}),(0,d.jsx)(&quot;li&quot;,{children:U((0,m.__)(&quot;{{link}}Import{{/link}} from .htaccess, CSV, and a variety of other plugins&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/import-export-redirects/&quot;})})}),(0,d.jsx)(&quot;li&quot;,{children:U((0,m.__)(&quot;More powerful URL matching, including {{regular}}regular expressions{{/regular}}, and {{other}}other conditions{{/other}}&quot;,&quot;redirection&quot;),{regular:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/redirect-regular-expressions/&quot;}),other:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/matching-redirects/&quot;})})}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Check a URL is being redirected&quot;,&quot;redirection&quot;)})]}),(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;What&#039;s next?&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;First you will be asked a few questions, and then Redirection will set up your database.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;wizard-buttons&quot;,children:[(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary button&quot;,onClick:function(){t({manual:!1}),e(1)},children:(0,m.__)(&quot;Start Setup&quot;,&quot;redirection&quot;)}),&quot; &quot;,(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary button&quot;,onClick:function(){t({manual:!0}),e(4)},children:(0,m.__)(&quot;Manual Setup&quot;,&quot;redirection&quot;)})]})]})}var me=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=&gt;{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size&gt;0}onSubscribe(){}onUnsubscribe(){}},ge={setTimeout:(e,t)=&gt;setTimeout(e,t),clearTimeout:e=&gt;clearTimeout(e),setInterval:(e,t)=&gt;setInterval(e,t),clearInterval:e=&gt;clearInterval(e)},ye=new class{#e=ge;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},ve=&quot;undefined&quot;==typeof window||&quot;Deno&quot;in globalThis;function _e(){}function be(e){return&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e!==1/0}function xe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function we(e,t){return&quot;function&quot;==typeof e?e(t):e}function je(e,t){return&quot;function&quot;==typeof e?e(t):e}function Se(e,t){const{type:n=&quot;all&quot;,exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==Ce(s,t.options))return!1}else if(!Ee(t.queryKey,s))return!1;if(&quot;all&quot;!==n){const e=t.isActive();if(&quot;active&quot;===n&amp;&amp;!e)return!1;if(&quot;inactive&quot;===n&amp;&amp;e)return!1}return!(&quot;boolean&quot;==typeof a&amp;&amp;t.isStale()!==a||i&amp;&amp;i!==t.state.fetchStatus||o&amp;&amp;!o(t))}function ke(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Te(t.options.mutationKey)!==Te(o))return!1}else if(!Ee(t.options.mutationKey,o))return!1}return!(r&amp;&amp;t.state.status!==r||i&amp;&amp;!i(t))}function Ce(e,t){return(t?.queryKeyHashFn||Te)(e)}function Te(e){return JSON.stringify(e,(e,t)=&gt;Ae(t)?Object.keys(t).sort().reduce((e,n)=&gt;(e[n]=t[n],e),{}):t)}function Ee(e,t){return e===t||typeof e==typeof t&amp;&amp;!(!e||!t||&quot;object&quot;!=typeof e||&quot;object&quot;!=typeof t)&amp;&amp;Object.keys(t).every(n=&gt;Ee(e[n],t[n]))}var Pe=Object.prototype.hasOwnProperty;function Oe(e,t,n=0){if(e===t)return e;if(n&gt;500)return t;const r=Ne(e)&amp;&amp;Ne(t);if(!(r||Ae(e)&amp;&amp;Ae(t)))return t;const i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),s=o.length,a=r?new Array(s):{};let l=0;for(let c=0;c&lt;s;c++){const s=r?c:o[c],u=e[s],d=t[s];if(u===d){a[s]=u,(r?c&lt;i:Pe.call(e,s))&amp;&amp;l++;continue}if(null===u||null===d||&quot;object&quot;!=typeof u||&quot;object&quot;!=typeof d){a[s]=d;continue}const p=Oe(u,d,n+1);a[s]=p,p===u&amp;&amp;l++}return i===s&amp;&amp;l===i?e:a}function Re(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ne(e){return Array.isArray(e)&amp;&amp;e.length===Object.keys(e).length}function Ae(e){if(!Ie(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ie(n)&amp;&amp;!!n.hasOwnProperty(&quot;isPrototypeOf&quot;)&amp;&amp;Object.getPrototypeOf(e)===Object.prototype}function Ie(e){return&quot;[object Object]&quot;===Object.prototype.toString.call(e)}function ze(e,t,n){return&quot;function&quot;==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Oe(e,t):t}function Fe(e,t,n=0){const r=[...e,t];return n&amp;&amp;r.length&gt;n?r.slice(1):r}function De(e,t,n=0){const r=[t,...e];return n&amp;&amp;r.length&gt;n?r.slice(0,-1):r}var Le=Symbol();function Me(e,t){return!e.queryFn&amp;&amp;t?.initialPromise?()=&gt;t.initialPromise:e.queryFn&amp;&amp;e.queryFn!==Le?e.queryFn:()=&gt;Promise.reject(new Error(`Missing queryFn: &#039;${e.queryHash}&#039;`))}function $e(e,t){return&quot;function&quot;==typeof e?e(...t):!!e}var Ue=new class extends me{#n;#r;#i;constructor(){super(),this.#i=e=&gt;{if(!ve&amp;&amp;window.addEventListener){const t=()=&gt;e();return window.addEventListener(&quot;visibilitychange&quot;,t,!1),()=&gt;{window.removeEventListener(&quot;visibilitychange&quot;,t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#i=e,this.#r?.(),this.#r=e(e=&gt;{&quot;boolean&quot;==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#n!==e&amp;&amp;(this.#n=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=&gt;{t(e)})}isFocused(){return&quot;boolean&quot;==typeof this.#n?this.#n:&quot;hidden&quot;!==globalThis.document?.visibilityState}},Be=function(e){setTimeout(e,0)},Ze=function(){let e=[],t=0,n=e=&gt;{e()},r=e=&gt;{e()},i=Be;const o=r=&gt;{t?e.push(r):i(()=&gt;{n(r)})};return{batch:o=&gt;{let s;t++;try{s=o()}finally{t--,t||(()=&gt;{const t=e;e=[],t.length&amp;&amp;i(()=&gt;{r(()=&gt;{t.forEach(e=&gt;{n(e)})})})})()}return s},batchCalls:e=&gt;(...t)=&gt;{o(()=&gt;{e(...t)})},schedule:o,setNotifyFunction:e=&gt;{n=e},setBatchNotifyFunction:e=&gt;{r=e},setScheduler:e=&gt;{i=e}}}(),qe=new class extends me{#o=!0;#r;#i;constructor(){super(),this.#i=e=&gt;{if(!ve&amp;&amp;window.addEventListener){const t=()=&gt;e(!0),n=()=&gt;e(!1);return window.addEventListener(&quot;online&quot;,t,!1),window.addEventListener(&quot;offline&quot;,n,!1),()=&gt;{window.removeEventListener(&quot;online&quot;,t),window.removeEventListener(&quot;offline&quot;,n)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#i=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#o!==e&amp;&amp;(this.#o=e,this.listeners.forEach(t=&gt;{t(e)}))}isOnline(){return this.#o}};function He(){let e,t;const n=new Promise((n,r)=&gt;{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status=&quot;pending&quot;,n.catch(()=&gt;{}),n.resolve=t=&gt;{r({status:&quot;fulfilled&quot;,value:t}),e(t)},n.reject=e=&gt;{r({status:&quot;rejected&quot;,reason:e}),t(e)},n}function We(e){return Math.min(1e3*2**e,3e4)}function Ge(e){return&quot;online&quot;!==(e??&quot;online&quot;)||qe.isOnline()}var Ve=class extends Error{constructor(e){super(&quot;CancelledError&quot;),this.revert=e?.revert,this.silent=e?.silent}};function Qe(e){let t,n=!1,r=0;const i=He(),o=()=&gt;&quot;pending&quot;!==i.status,s=()=&gt;Ue.isFocused()&amp;&amp;(&quot;always&quot;===e.networkMode||qe.isOnline())&amp;&amp;e.canRun(),a=()=&gt;Ge(e.networkMode)&amp;&amp;e.canRun(),l=e=&gt;{o()||(t?.(),i.resolve(e))},c=e=&gt;{o()||(t?.(),i.reject(e))},u=()=&gt;new Promise(n=&gt;{t=e=&gt;{(o()||s())&amp;&amp;n(e)},e.onPause?.()}).then(()=&gt;{t=void 0,o()||e.onContinue?.()}),d=()=&gt;{if(o())return;let t;const i=0===r?e.initialPromise:void 0;try{t=i??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=&gt;{if(o())return;const i=e.retry??(ve?0:3),a=e.retryDelay??We,l=&quot;function&quot;==typeof a?a(r,t):a,p=!0===i||&quot;number&quot;==typeof i&amp;&amp;r&lt;i||&quot;function&quot;==typeof i&amp;&amp;i(r,t);var h;!n&amp;&amp;p?(r++,e.onFail?.(r,t),(h=l,new Promise(e=&gt;{ye.setTimeout(e,h)})).then(()=&gt;s()?void 0:u()).then(()=&gt;{n?c(t):d()})):c(t)})};return{promise:i,status:()=&gt;i.status,cancel:t=&gt;{if(!o()){const n=new Ve(t);c(n),e.onCancel?.(n)}},continue:()=&gt;(t?.(),i),cancelRetry:()=&gt;{n=!0},continueRetry:()=&gt;{n=!1},canStart:a,start:()=&gt;(a()?d():u().then(d),i)}}var Ke=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),be(this.gcTime)&amp;&amp;(this.#s=ye.setTimeout(()=&gt;{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ve?1/0:3e5))}clearGcTimeout(){this.#s&amp;&amp;(ye.clearTimeout(this.#s),this.#s=void 0)}},Je=class extends Ke{#a;#l;#c;#u;#d;#p;#h;constructor(e){super(),this.#h=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#c=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=et(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#p,...e},this.updateGcTime(this.options.gcTime),this.state&amp;&amp;void 0===this.state.data){const e=et(this.options);void 0!==e.data&amp;&amp;(this.setState(Xe(e.data,e.dataUpdatedAt)),this.#a=e)}}optionalRemove(){this.observers.length||&quot;idle&quot;!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){const n=ze(this.state.data,e,this.options);return this.#f({data:n,type:&quot;success&quot;,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#f({type:&quot;setState&quot;,state:e,setStateOptions:t})}cancel(e){const t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some(e=&gt;!1!==je(e.options.enabled,this))}isDisabled(){return this.getObserversCount()&gt;0?!this.isActive():this.options.queryFn===Le||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()&gt;0&amp;&amp;this.observers.some(e=&gt;&quot;static&quot;===we(e.options.staleTime,this))}isStale(){return this.getObserversCount()&gt;0?this.observers.some(e=&gt;e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||&quot;static&quot;!==e&amp;&amp;(!!this.state.isInvalidated||!xe(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=&gt;e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){const e=this.observers.find(e=&gt;e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:&quot;observerAdded&quot;,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&amp;&amp;(this.observers=this.observers.filter(t=&gt;t!==e),this.observers.length||(this.#d&amp;&amp;(this.#h?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#c.notify({type:&quot;observerRemoved&quot;,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#f({type:&quot;invalidate&quot;})}async fetch(e,t){if(&quot;idle&quot;!==this.state.fetchStatus&amp;&amp;&quot;rejected&quot;!==this.#d?.status())if(void 0!==this.state.data&amp;&amp;t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise;if(e&amp;&amp;this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=&gt;e.options.queryFn);e&amp;&amp;this.setOptions(e.options)}const n=new AbortController,r=e=&gt;{Object.defineProperty(e,&quot;signal&quot;,{enumerable:!0,get:()=&gt;(this.#h=!0,n.signal)})},i=()=&gt;{const e=Me(this.options,t),n=(()=&gt;{const e={client:this.#u,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#h=!1,this.options.persister?this.options.persister(e,n,this):e(n)},o=(()=&gt;{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(o,this),this.#l=this.state,&quot;idle&quot;!==this.state.fetchStatus&amp;&amp;this.state.fetchMeta===o.fetchOptions?.meta||this.#f({type:&quot;fetch&quot;,meta:o.fetchOptions?.meta}),this.#d=Qe({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:e=&gt;{e instanceof Ve&amp;&amp;e.revert&amp;&amp;this.setState({...this.#l,fetchStatus:&quot;idle&quot;}),n.abort()},onFail:(e,t)=&gt;{this.#f({type:&quot;failed&quot;,failureCount:e,error:t})},onPause:()=&gt;{this.#f({type:&quot;pause&quot;})},onContinue:()=&gt;{this.#f({type:&quot;continue&quot;})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=&gt;!0});try{const e=await this.#d.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ve){if(e.silent)return this.#d.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#f({type:&quot;error&quot;,error:e}),this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#f(e){this.state=(t=&gt;{switch(e.type){case&quot;failed&quot;:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case&quot;pause&quot;:return{...t,fetchStatus:&quot;paused&quot;};case&quot;continue&quot;:return{...t,fetchStatus:&quot;fetching&quot;};case&quot;fetch&quot;:return{...t,...Ye(t.data,this.options),fetchMeta:e.meta??null};case&quot;success&quot;:const n={...t,...Xe(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&amp;&amp;{fetchStatus:&quot;idle&quot;,fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?n:void 0,n;case&quot;error&quot;:const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:&quot;idle&quot;,status:&quot;error&quot;,isInvalidated:!0};case&quot;invalidate&quot;:return{...t,isInvalidated:!0};case&quot;setState&quot;:return{...t,...e.state}}})(this.state),Ze.batch(()=&gt;{this.observers.forEach(e=&gt;{e.onQueryUpdate()}),this.#c.notify({query:this,type:&quot;updated&quot;,action:e})})}};function Ye(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ge(t.networkMode)?&quot;fetching&quot;:&quot;paused&quot;,...void 0===e&amp;&amp;{error:null,status:&quot;pending&quot;}}}function Xe(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:&quot;success&quot;}}function et(e){const t=&quot;function&quot;==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?&quot;function&quot;==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?&quot;success&quot;:&quot;pending&quot;,fetchStatus:&quot;idle&quot;}}var tt=class extends me{constructor(e,t){super(),this.options=t,this.#u=e,this.#m=null,this.#g=He(),this.bindMethods(),this.setOptions(t)}#u;#y=void 0;#v=void 0;#_=void 0;#b;#x;#g;#m;#w;#j;#S;#k;#C;#T;#E=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&amp;&amp;(this.#y.addObserver(this),nt(this.#y,this.options)?this.#P():this.updateResult(),this.#O())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rt(this.#y,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rt(this.#y,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#R(),this.#N(),this.#y.removeObserver(this)}setOptions(e){const t=this.options,n=this.#y;if(this.options=this.#u.defaultQueryOptions(e),void 0!==this.options.enabled&amp;&amp;&quot;boolean&quot;!=typeof this.options.enabled&amp;&amp;&quot;function&quot;!=typeof this.options.enabled&amp;&amp;&quot;boolean&quot;!=typeof je(this.options.enabled,this.#y))throw new Error(&quot;Expected enabled to be a boolean or a callback that returns a boolean&quot;);this.#A(),this.#y.setOptions(this.options),t._defaulted&amp;&amp;!Re(this.options,t)&amp;&amp;this.#u.getQueryCache().notify({type:&quot;observerOptionsUpdated&quot;,query:this.#y,observer:this});const r=this.hasListeners();r&amp;&amp;it(this.#y,n,this.options,t)&amp;&amp;this.#P(),this.updateResult(),!r||this.#y===n&amp;&amp;je(this.options.enabled,this.#y)===je(t.enabled,this.#y)&amp;&amp;we(this.options.staleTime,this.#y)===we(t.staleTime,this.#y)||this.#I();const i=this.#z();!r||this.#y===n&amp;&amp;je(this.options.enabled,this.#y)===je(t.enabled,this.#y)&amp;&amp;i===this.#T||this.#F(i)}getOptimisticResult(e){const t=this.#u.getQueryCache().build(this.#u,e),n=this.createResult(t,e);return r=n,!Re(this.getCurrentResult(),r)&amp;&amp;(this.#_=n,this.#x=this.options,this.#b=this.#y.state),n;var r}getCurrentResult(){return this.#_}trackResult(e,t){return new Proxy(e,{get:(e,n)=&gt;(this.trackProp(n),t?.(n),&quot;promise&quot;===n&amp;&amp;(this.trackProp(&quot;data&quot;),this.options.experimental_prefetchInRender||&quot;pending&quot;!==this.#g.status||this.#g.reject(new Error(&quot;experimental_prefetchInRender feature flag is not enabled&quot;))),Reflect.get(e,n))})}trackProp(e){this.#E.add(e)}getCurrentQuery(){return this.#y}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#u.defaultQueryOptions(e),n=this.#u.getQueryCache().build(this.#u,t);return n.fetch().then(()=&gt;this.createResult(n,t))}fetch(e){return this.#P({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=&gt;(this.updateResult(),this.#_))}#P(e){this.#A();let t=this.#y.fetch(this.options,e);return e?.throwOnError||(t=t.catch(_e)),t}#I(){this.#R();const e=we(this.options.staleTime,this.#y);if(ve||this.#_.isStale||!be(e))return;const t=xe(this.#_.dataUpdatedAt,e)+1;this.#k=ye.setTimeout(()=&gt;{this.#_.isStale||this.updateResult()},t)}#z(){return(&quot;function&quot;==typeof this.options.refetchInterval?this.options.refetchInterval(this.#y):this.options.refetchInterval)??!1}#F(e){this.#N(),this.#T=e,!ve&amp;&amp;!1!==je(this.options.enabled,this.#y)&amp;&amp;be(this.#T)&amp;&amp;0!==this.#T&amp;&amp;(this.#C=ye.setInterval(()=&gt;{(this.options.refetchIntervalInBackground||Ue.isFocused())&amp;&amp;this.#P()},this.#T))}#O(){this.#I(),this.#F(this.#z())}#R(){this.#k&amp;&amp;(ye.clearTimeout(this.#k),this.#k=void 0)}#N(){this.#C&amp;&amp;(ye.clearInterval(this.#C),this.#C=void 0)}createResult(e,t){const n=this.#y,r=this.options,i=this.#_,o=this.#b,s=this.#x,a=e!==n?e.state:this.#v,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&amp;&amp;nt(e,t),s=i&amp;&amp;it(e,n,t,r);(o||s)&amp;&amp;(u={...u,...Ye(l.data,e.options)}),&quot;isRestoring&quot;===t._optimisticResults&amp;&amp;(u.fetchStatus=&quot;idle&quot;)}let{error:p,errorUpdatedAt:h,status:f}=u;c=u.data;let m=!1;if(void 0!==t.placeholderData&amp;&amp;void 0===c&amp;&amp;&quot;pending&quot;===f){let e;i?.isPlaceholderData&amp;&amp;t.placeholderData===s?.placeholderData?(e=i.data,m=!0):e=&quot;function&quot;==typeof t.placeholderData?t.placeholderData(this.#S?.state.data,this.#S):t.placeholderData,void 0!==e&amp;&amp;(f=&quot;success&quot;,c=ze(i?.data,e,t),d=!0)}if(t.select&amp;&amp;void 0!==c&amp;&amp;!m)if(i&amp;&amp;c===o?.data&amp;&amp;t.select===this.#w)c=this.#j;else try{this.#w=t.select,c=t.select(c),c=ze(i?.data,c,t),this.#j=c,this.#m=null}catch(e){this.#m=e}this.#m&amp;&amp;(p=this.#m,c=this.#j,h=Date.now(),f=&quot;error&quot;);const g=&quot;fetching&quot;===u.fetchStatus,y=&quot;pending&quot;===f,v=&quot;error&quot;===f,_=y&amp;&amp;g,b=void 0!==c,x={status:f,fetchStatus:u.fetchStatus,isPending:y,isSuccess:&quot;success&quot;===f,isError:v,isInitialLoading:_,isLoading:_,data:c,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount&gt;0||u.errorUpdateCount&gt;0,isFetchedAfterMount:u.dataUpdateCount&gt;a.dataUpdateCount||u.errorUpdateCount&gt;a.errorUpdateCount,isFetching:g,isRefetching:g&amp;&amp;!y,isLoadingError:v&amp;&amp;!b,isPaused:&quot;paused&quot;===u.fetchStatus,isPlaceholderData:d,isRefetchError:v&amp;&amp;b,isStale:ot(e,t),refetch:this.refetch,promise:this.#g,isEnabled:!1!==je(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==x.data,r=&quot;error&quot;===x.status&amp;&amp;!t,i=e=&gt;{r?e.reject(x.error):t&amp;&amp;e.resolve(x.data)},o=()=&gt;{const e=this.#g=x.promise=He();i(e)},s=this.#g;switch(s.status){case&quot;pending&quot;:e.queryHash===n.queryHash&amp;&amp;i(s);break;case&quot;fulfilled&quot;:(r||x.data!==s.value)&amp;&amp;o();break;case&quot;rejected&quot;:r&amp;&amp;x.error===s.reason||o()}}return x}updateResult(){const e=this.#_,t=this.createResult(this.#y,this.options);this.#b=this.#y.state,this.#x=this.options,void 0!==this.#b.data&amp;&amp;(this.#S=this.#y),Re(t,e)||(this.#_=t,this.#D({listeners:(()=&gt;{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n=&quot;function&quot;==typeof t?t():t;if(&quot;all&quot;===n||!n&amp;&amp;!this.#E.size)return!0;const r=new Set(n??this.#E);return this.options.throwOnError&amp;&amp;r.add(&quot;error&quot;),Object.keys(this.#_).some(t=&gt;{const n=t;return this.#_[n]!==e[n]&amp;&amp;r.has(n)})})()}))}#A(){const e=this.#u.getQueryCache().build(this.#u,this.options);if(e===this.#y)return;const t=this.#y;this.#y=e,this.#v=e.state,this.hasListeners()&amp;&amp;(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&amp;&amp;this.#O()}#D(e){Ze.batch(()=&gt;{e.listeners&amp;&amp;this.listeners.forEach(e=&gt;{e(this.#_)}),this.#u.getQueryCache().notify({query:this.#y,type:&quot;observerResultsUpdated&quot;})})}};function nt(e,t){return function(e,t){return!1!==je(t.enabled,e)&amp;&amp;void 0===e.state.data&amp;&amp;!(&quot;error&quot;===e.state.status&amp;&amp;!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&amp;&amp;rt(e,t,t.refetchOnMount)}function rt(e,t,n){if(!1!==je(t.enabled,e)&amp;&amp;&quot;static&quot;!==we(t.staleTime,e)){const r=&quot;function&quot;==typeof n?n(e):n;return&quot;always&quot;===r||!1!==r&amp;&amp;ot(e,t)}return!1}function it(e,t,n,r){return(e!==t||!1===je(r.enabled,e))&amp;&amp;(!n.suspense||&quot;error&quot;!==e.state.status)&amp;&amp;ot(e,n)}function ot(e,t){return!1!==je(t.enabled,e)&amp;&amp;e.isStaleByTime(we(t.staleTime,e))}var st=l.createContext(function(){let e=!1;return{clearReset:()=&gt;{e=!1},reset:()=&gt;{e=!0},isReset:()=&gt;e}}()),at=l.createContext(!1),lt=(at.Provider,(e,t,n)=&gt;t.fetchOptimistic(e).catch(()=&gt;{n.clearReset()}));function ct(e,t){return function(e,t,n){const r=l.useContext(at),i=l.useContext(st),o=h(n),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s);const a=o.getQueryCache().get(s.queryHash);s._optimisticResults=r?&quot;isRestoring&quot;:&quot;optimistic&quot;,(e=&gt;{if(e.suspense){const t=1e3,n=e=&gt;&quot;static&quot;===e?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=&quot;function&quot;==typeof r?(...e)=&gt;n(r(...e)):n(r),&quot;number&quot;==typeof e.gcTime&amp;&amp;(e.gcTime=Math.max(e.gcTime,t))}})(s),((e,t,n)=&gt;{const r=n?.state.error&amp;&amp;&quot;function&quot;==typeof e.throwOnError?$e(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&amp;&amp;(t.isReset()||(e.retryOnMount=!1))})(s,i,a),(e=&gt;{l.useEffect(()=&gt;{e.clearReset()},[e])})(i);const c=!o.getQueryCache().get(s.queryHash),[u]=l.useState(()=&gt;new t(o,s)),d=u.getOptimisticResult(s),p=!r&amp;&amp;!1!==e.subscribed;if(l.useSyncExternalStore(l.useCallback(e=&gt;{const t=p?u.subscribe(Ze.batchCalls(e)):_e;return u.updateResult(),t},[u,p]),()=&gt;u.getCurrentResult(),()=&gt;u.getCurrentResult()),l.useEffect(()=&gt;{u.setOptions(s)},[s,u]),((e,t)=&gt;e?.suspense&amp;&amp;t.isPending)(s,d))throw lt(s,u,i);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=&gt;e.isError&amp;&amp;!t.isReset()&amp;&amp;!e.isFetching&amp;&amp;r&amp;&amp;(i&amp;&amp;void 0===e.data||$e(n,[e.error,r])))({result:d,errorResetBoundary:i,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw d.error;if(o.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&amp;&amp;!ve&amp;&amp;((e,t)=&gt;e.isLoading&amp;&amp;e.isFetching&amp;&amp;!t)(d,r)){const e=c?lt(s,u,i):a?.promise;e?.catch(_e).finally(()=&gt;{u.updateResult()})}return s.notifyOnChangeProps?d:u.trackResult(d)}(e,tt,t)}var ut=class extends Ke{#u;#L;#M;#d;constructor(e){super(),this.#u=e.client,this.mutationId=e.mutationId,this.#M=e.mutationCache,this.#L=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:&quot;idle&quot;,variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#L.includes(e)||(this.#L.push(e),this.clearGcTimeout(),this.#M.notify({type:&quot;observerAdded&quot;,mutation:this,observer:e}))}removeObserver(e){this.#L=this.#L.filter(t=&gt;t!==e),this.scheduleGc(),this.#M.notify({type:&quot;observerRemoved&quot;,mutation:this,observer:e})}optionalRemove(){this.#L.length||(&quot;pending&quot;===this.state.status?this.scheduleGc():this.#M.remove(this))}continue(){return this.#d?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=&gt;{this.#f({type:&quot;continue&quot;})},n={client:this.#u,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#d=Qe({fn:()=&gt;this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error(&quot;No mutationFn found&quot;)),onFail:(e,t)=&gt;{this.#f({type:&quot;failed&quot;,failureCount:e,error:t})},onPause:()=&gt;{this.#f({type:&quot;pause&quot;})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=&gt;this.#M.canRun(this)});const r=&quot;pending&quot;===this.state.status,i=!this.#d.canStart();try{if(r)t();else{this.#f({type:&quot;pending&quot;,variables:e,isPaused:i}),this.#M.config.onMutate&amp;&amp;await this.#M.config.onMutate(e,this,n);const t=await(this.options.onMutate?.(e,n));t!==this.state.context&amp;&amp;this.#f({type:&quot;pending&quot;,context:t,variables:e,isPaused:i})}const o=await this.#d.start();return await(this.#M.config.onSuccess?.(o,e,this.state.context,this,n)),await(this.options.onSuccess?.(o,e,this.state.context,n)),await(this.#M.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(o,null,e,this.state.context,n)),this.#f({type:&quot;success&quot;,data:o}),o}catch(t){try{await(this.#M.config.onError?.(t,e,this.state.context,this,n))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,n))}catch(e){Promise.reject(e)}try{await(this.#M.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,n))}catch(e){Promise.reject(e)}throw this.#f({type:&quot;error&quot;,error:t}),t}finally{this.#M.runNext(this)}}#f(e){this.state=(t=&gt;{switch(e.type){case&quot;failed&quot;:return{...t,failureCount:e.failureCount,failureReason:e.error};case&quot;pause&quot;:return{...t,isPaused:!0};case&quot;continue&quot;:return{...t,isPaused:!1};case&quot;pending&quot;:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:&quot;pending&quot;,variables:e.variables,submittedAt:Date.now()};case&quot;success&quot;:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:&quot;success&quot;,isPaused:!1};case&quot;error&quot;:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:&quot;error&quot;}}})(this.state),Ze.batch(()=&gt;{this.#L.forEach(t=&gt;{t.onMutationUpdate(e)}),this.#M.notify({mutation:this,type:&quot;updated&quot;,action:e})})}},dt=class extends me{#u;#_=void 0;#$;#U;constructor(e,t){super(),this.#u=e,this.setOptions(t),this.bindMethods(),this.#B()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#u.defaultMutationOptions(e),Re(this.options,t)||this.#u.getMutationCache().notify({type:&quot;observerOptionsUpdated&quot;,mutation:this.#$,observer:this}),t?.mutationKey&amp;&amp;this.options.mutationKey&amp;&amp;Te(t.mutationKey)!==Te(this.options.mutationKey)?this.reset():&quot;pending&quot;===this.#$?.state.status&amp;&amp;this.#$.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#$?.removeObserver(this)}onMutationUpdate(e){this.#B(),this.#D(e)}getCurrentResult(){return this.#_}reset(){this.#$?.removeObserver(this),this.#$=void 0,this.#B(),this.#D()}mutate(e,t){return this.#U=t,this.#$?.removeObserver(this),this.#$=this.#u.getMutationCache().build(this.#u,this.options),this.#$.addObserver(this),this.#$.execute(e)}#B(){const e=this.#$?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:&quot;idle&quot;,variables:void 0,submittedAt:0};this.#_={...e,isPending:&quot;pending&quot;===e.status,isSuccess:&quot;success&quot;===e.status,isError:&quot;error&quot;===e.status,isIdle:&quot;idle&quot;===e.status,mutate:this.mutate,reset:this.reset}}#D(e){Ze.batch(()=&gt;{if(this.#U&amp;&amp;this.hasListeners()){const t=this.#_.variables,n=this.#_.context,r={client:this.#u,meta:this.options.meta,mutationKey:this.options.mutationKey};if(&quot;success&quot;===e?.type){try{this.#U.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#U.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(&quot;error&quot;===e?.type){try{this.#U.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#U.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=&gt;{e(this.#_)})})}};function pt(e,t){const n=h(t),[r]=l.useState(()=&gt;new dt(n,e));l.useEffect(()=&gt;{r.setOptions(e)},[r,e]);const i=l.useSyncExternalStore(l.useCallback(e=&gt;r.subscribe(Ze.batchCalls(e)),[r]),()=&gt;r.getCurrentResult(),()=&gt;r.getCurrentResult()),o=l.useCallback((e,t)=&gt;{r.mutate(e,t).catch(_e)},[r]);if(i.error&amp;&amp;$e(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}const ht=e=&gt;&quot;object&quot;==typeof e&amp;&amp;null!==e,ft=e=&gt;0===e?&quot;Admin AJAX returned 0&quot;:&quot;string&quot;==typeof e?e:ht(e)&amp;&amp;e.message?e.message:(console.error(e),&quot;Unknown error &quot;+(ht(e)?Object.keys(e):e)),mt=e=&gt;&quot;number&quot;==typeof e?`${e}`:ht(e)&amp;&amp;e.error_code?e.error_code:ht(e)&amp;&amp;e.code?e.code:ht(e)&amp;&amp;e.name?e.name:ht(e)&amp;&amp;e.data?.error_code?e.data.error_code:String(e);function gt(e,t){return function(e){return e.replace(&quot;wp-json/wp-json&quot;,&quot;wp-json&quot;).replace(&quot;=/wp-json&quot;,&quot;=&quot;)}((n=function(e){return e.replace(/\/$/,&quot;&quot;)}(e),r=function(e,t){return-1!==e.indexOf(&quot;?&quot;)?t.replace(&quot;?&quot;,&quot;&amp;&quot;):t}(e,function(e){return e.replace(/^\//,&quot;&quot;)}(t)),n+&quot;/&quot;+r));var n,r}let yt=[];function vt(e,t,n){return{code:mt(e),message:ft(t),request:n,data:n.apiFetch?.data?n.apiFetch?.data:null,jsonData:e&amp;&amp;e.data?e.data:null}}const _t=e=&gt;{if(e.status&gt;=200&amp;&amp;e.status&lt;300)return e;throw e};function bt(e){return e.headers.get(&quot;x-wp-nonce&quot;)&amp;&amp;wt.nonceMiddleware&amp;&amp;(wt.nonceMiddleware.nonce=e.headers.get(&quot;x-wp-nonce&quot;)??wt.nonceMiddleware.nonce),e}const xt=e=&gt;e.text(),wt=e=&gt;{const t=[...yt,e=&gt;(e=&gt;fetch(e.url,e).then(bt).then(t=&gt;((e,t)=&gt;(t.apiFetch={action:t.url.replace(/[\?&amp;]_wpnonce=[a-f0-9]*/,&quot;&quot;)+&quot; &quot;+t.method.toUpperCase(),body:&quot;object&quot;==typeof t.body?JSON.stringify(t.body):t.body},t.headers=e.headers,e.status&amp;&amp;void 0!==e.statusText&amp;&amp;(t.apiFetch.status=e.status,t.apiFetch.statusText=e.statusText),e))(t,e)).then(xt).then(t=&gt;((e,t)=&gt;(t.apiFetch&amp;&amp;(t.apiFetch.data=e),e))(t,e)).then(t=&gt;((e,t)=&gt;{const n=t.apiFetch?.status;if(&quot;&quot;===e&amp;&amp;void 0!==n&amp;&amp;(n&lt;200||n&gt;300))return e;try{const n=JSON.parse(e.replace(/\ufeff/,&quot;&quot;));if(0===n)throw vt(&quot;json-zero&quot;,&quot;Failed to get data&quot;,t);return n}catch(e){throw vt(e,e?.message,t)}})(t,e)).then(t=&gt;((e,t)=&gt;{if(e?.error||e?.error_code)throw vt(e,e.message,t);if(t.apiFetch){const{status:n,statusText:r}=t.apiFetch;if(e?.code&amp;&amp;e?.message)throw vt(e,e,t);if(void 0!==n&amp;&amp;(n&lt;200||n&gt;=300))throw vt(n,r,t)}return e})(t,e)))(e)],n=e=&gt;r=&gt;{const i=t[e];return i?i(r,e===t.length-1?()=&gt;Promise.resolve():n(e+1)):Promise.reject(new Error(&quot;Middleware step is undefined&quot;))};return new Promise((t,r)=&gt;{n(0)(e).then(e=&gt;t(e)).catch(n=&gt;{if(&quot;rest_cookie_invalid_nonce&quot;!==n.code)return r(n);window.fetch(&quot;admin-ajax.php?action=rest-nonce&quot;).then(_t).then(xt).then(n=&gt;{wt.nonceMiddleware.nonce=n,wt(e).then(t).catch(r)}).catch(r)})})};wt.getUrl=e=&gt;wt.rootURLMiddleware({url:e},e=&gt;wt.nonceMiddleware(e,e=&gt;e.url)),wt.use=function(e){yt.unshift(e)},wt.createNonceMiddleware=e=&gt;{const t=(e=&gt;{const t=(e,n)=&gt;{const{headers:r={}}=e;for(const i in r)if(&quot;x-wp-nonce&quot;===i.toLowerCase()&amp;&amp;r[i]===t.nonce)return n(e);return n({...e,headers:{...r,&quot;X-WP-Nonce&quot;:t.nonce}})};return t.nonce=e,t})(e);return wt.nonceMiddleware=t,t},wt.createRootURLMiddleware=e=&gt;{const t=function(e){const t=(t,n)=&gt;t.url.startsWith(&quot;http&quot;)?n(t):n({...t,url:gt(e,t.url)});return t.rootURL=e,t}(e);return wt.rootURLMiddleware=t,t},wt.resetMiddlewares=()=&gt;{yt=[]},wt.replaceRootURLMiddleware=e=&gt;{for(let t=0;t&lt;yt.length;t++)yt[t]===wt.rootURLMiddleware&amp;&amp;(yt[t]=wt.createRootURLMiddleware(e))};const jt=wt,St=(e,t={})=&gt;{const n=e+&quot;/&quot;;if(Object.keys(t).length&gt;0){const e=function(e){const t=new URLSearchParams;function n(e,r){for(const i in r){const o=r[i];if(null!=o)if(Array.isArray(o))for(const n of o)null!=n&amp;&amp;t.append(`${e}[${i}][]`,String(n));else&quot;object&quot;==typeof o?n(`${e}[${i}]`,o):t.append(`${e}[${i}]`,String(o))}}for(const r in e){const i=e[r];if(null!=i)if(Array.isArray(i))for(const e of i)null!=e&amp;&amp;t.append(`${r}[]`,String(e));else&quot;object&quot;==typeof i?n(r,i):t.append(r,String(i))}return t.toString()}(t);if(e.length&gt;0)return n+(-1===n.indexOf(&quot;?&quot;)?&quot;?&quot;:&quot;&amp;&quot;)+e}return n},kt=(e,t={})=&gt;({headers:{Accept:&quot;application/json, */*;q=0.1&quot;},url:St(e,t),credentials:&quot;include&quot;,method:&quot;get&quot;,redirect:&quot;error&quot;}),Ct=(e,t={},n={})=&gt;{const r={headers:{&quot;Content-Type&quot;:&quot;application/json; charset=utf-8&quot;,Accept:&quot;application/json, */*;q=0.1&quot;},url:St(e,n),credentials:&quot;include&quot;,method:&quot;post&quot;,body:&quot;{}&quot;};return Object.keys(t).length&gt;0&amp;&amp;(r.body=JSON.stringify(t)),r},Tt=(e,t={},n={})=&gt;Ct(e,t,n),Et=()=&gt;kt(&quot;redirection/v1/setting&quot;),Pt=e=&gt;Ct(&quot;redirection/v1/setting&quot;,e),Ot=e=&gt;kt(&quot;redirection/v1/redirect&quot;,e),Rt=(e,t)=&gt;Ct(&quot;redirection/v1/redirect/&quot;+e,t),Nt=(e,t)=&gt;Ct(&quot;redirection/v1/redirect&quot;,e,t),At=e=&gt;kt(&quot;redirection/v1/redirect/post&quot;,{text:e}),It=e=&gt;kt(&quot;redirection/v1/group&quot;,e),zt=(e,t)=&gt;Ct(&quot;redirection/v1/group/&quot;+e,t),Ft=(e,t)=&gt;Ct(&quot;redirection/v1/group&quot;,e,t),Dt=e=&gt;kt(&quot;redirection/v1/log&quot;,e),Lt=e=&gt;kt(&quot;redirection/v1/404&quot;,e),Mt=(e,t)=&gt;((e,t,n)=&gt;{const r=Ct(e,{});delete r.headers[&quot;Content-Type&quot;];const i=new FormData;return i.append(&quot;file&quot;,n),r.body=i,r})(&quot;redirection/v1/import/file/&quot;+e,0,t),$t=()=&gt;kt(&quot;redirection/v1/import/plugin&quot;),Ut=e=&gt;Ct(&quot;redirection/v1/import/plugin&quot;,{plugin:e}),Bt=(e,t)=&gt;kt(&quot;redirection/v1/export/&quot;+e+&quot;/&quot;+t),Zt=()=&gt;kt(&quot;redirection/v1/plugin&quot;),qt=()=&gt;Tt(&quot;redirection/v1/plugin/delete&quot;),Ht=e=&gt;Ct(&quot;redirection/v1/plugin/data&quot;,e?{upgrade:e}:{}),Wt=()=&gt;Ct(&quot;redirection/v1/plugin/finish&quot;,{}),Gt=(e,t)=&gt;Ct(&quot;redirection/v1/plugin/fix&quot;,{reason:e,current:t}),Vt=(e,t,n)=&gt;Ct(&quot;redirection/v1/bulk/redirect/&quot;+e,t,n),Qt=(e,t,n)=&gt;Ct(&quot;redirection/v1/bulk/group/&quot;+e,t,n),Kt=(e,t,n)=&gt;Ct(&quot;redirection/v1/bulk/log/&quot;+e,t,n),Jt=(e,t,n)=&gt;Ct(&quot;redirection/v1/bulk/404/&quot;+e,t,n),Yt=(e,t=1)=&gt;`https://api.redirect.li/v${t}/`+e,Xt=e=&gt;({url:Yt(&quot;useragent/&quot;+encodeURIComponent(e)),method:&quot;get&quot;}),en=e=&gt;({url:Yt(&quot;http?url=&quot;+encodeURIComponent(e),2),method:&quot;get&quot;});function tn(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,&quot;_zod&quot;,{value:{def:r,constr:s,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);const i=s.prototype,o=Object.keys(i);for(let e=0;e&lt;o.length;e++){const t=o[e];t in n||(n[t]=i[t].bind(n))}}const i=n?.Parent??Object;class o extends i{}function s(e){var t;const i=n?.Parent?new o:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(const e of i._zod.deferred)e();return i}return Object.defineProperty(o,&quot;name&quot;,{value:e}),Object.defineProperty(s,&quot;init&quot;,{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:t=&gt;!!(n?.Parent&amp;&amp;t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(s,&quot;name&quot;,{value:e}),s}Object.freeze({status:&quot;aborted&quot;}),Symbol(&quot;zod_brand&quot;);class nn extends Error{constructor(){super(&quot;Encountered Promise during synchronous parse. Use .parseAsync() instead.&quot;)}}class rn extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=&quot;ZodEncodeError&quot;}}const on={};function sn(e){return e&amp;&amp;Object.assign(on,e),on}function an(e){const t=Object.values(e).filter(e=&gt;&quot;number&quot;==typeof e),n=Object.entries(e).filter(([e,n])=&gt;-1===t.indexOf(+e)).map(([e,t])=&gt;t);return n}function ln(e,t=&quot;|&quot;){return e.map(e=&gt;Pn(e)).join(t)}function cn(e,t){return&quot;bigint&quot;==typeof t?t.toString():t}function un(e){return{get value(){{const t=e();return Object.defineProperty(this,&quot;value&quot;,{value:t}),t}}}}function dn(e){return null==e}function pn(e){const t=e.startsWith(&quot;^&quot;)?1:0,n=e.endsWith(&quot;$&quot;)?e.length-1:e.length;return e.slice(t,n)}const hn=Symbol(&quot;evaluating&quot;);function fn(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==hn)return void 0===r&amp;&amp;(r=hn,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function mn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function gn(...e){const t={};for(const n of e){const e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function yn(e){return JSON.stringify(e)}const vn=&quot;captureStackTrace&quot;in Error?Error.captureStackTrace:(...e)=&gt;{};function bn(e){return&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;!Array.isArray(e)}const xn=un(()=&gt;{if(&quot;undefined&quot;!=typeof navigator&amp;&amp;navigator?.userAgent?.includes(&quot;Cloudflare&quot;))return!1;try{return new Function(&quot;&quot;),!0}catch(e){return!1}});function wn(e){if(!1===bn(e))return!1;const t=e.constructor;if(void 0===t)return!0;if(&quot;function&quot;!=typeof t)return!0;const n=t.prototype;return!1!==bn(n)&amp;&amp;!1!==Object.prototype.hasOwnProperty.call(n,&quot;isPrototypeOf&quot;)}function jn(e){return wn(e)?{...e}:Array.isArray(e)?[...e]:e}const Sn=new Set([&quot;string&quot;,&quot;number&quot;,&quot;symbol&quot;]),kn=new Set([&quot;string&quot;,&quot;number&quot;,&quot;bigint&quot;,&quot;boolean&quot;,&quot;symbol&quot;,&quot;undefined&quot;]);function Cn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,&quot;\\$&amp;&quot;)}function Tn(e,t,n){const r=new e._zod.constr(t??e._zod.def);return t&amp;&amp;!n?.parent||(r._zod.parent=e),r}function En(e){const t=e;if(!t)return{};if(&quot;string&quot;==typeof t)return{error:()=&gt;t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error(&quot;Cannot specify both `message` and `error` params&quot;);t.error=t.message}return delete t.message,&quot;string&quot;==typeof t.error?{...t,error:()=&gt;t.error}:t}function Pn(e){return&quot;bigint&quot;==typeof e?e.toString()+&quot;n&quot;:&quot;string&quot;==typeof e?`&quot;${e}&quot;`:`${e}`}const On={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Rn={int64:[BigInt(&quot;-9223372036854775808&quot;),BigInt(&quot;9223372036854775807&quot;)],uint64:[BigInt(0),BigInt(&quot;18446744073709551615&quot;)]};function Nn(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n&lt;e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function An(e,t){return t.map(t=&gt;{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function In(e){return&quot;string&quot;==typeof e?e:e?.message}function zn(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=In(e.inst?._zod.def?.error?.(e))??In(t?.error?.(e))??In(n.customError?.(e))??In(n.localeError?.(e))??&quot;Invalid input&quot;;r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Fn(e){return e instanceof Set?&quot;set&quot;:e instanceof Map?&quot;map&quot;:e instanceof File?&quot;file&quot;:&quot;unknown&quot;}function Dn(e){return Array.isArray(e)?&quot;array&quot;:&quot;string&quot;==typeof e?&quot;string&quot;:&quot;unknown&quot;}function Ln(...e){const[t,n,r]=e;return&quot;string&quot;==typeof t?{message:t,code:&quot;custom&quot;,input:n,inst:r}:{...t}}const Mn=(e,t)=&gt;{e.name=&quot;$ZodError&quot;,Object.defineProperty(e,&quot;_zod&quot;,{value:e._zod,enumerable:!1}),Object.defineProperty(e,&quot;issues&quot;,{value:t,enumerable:!1}),e.message=JSON.stringify(t,cn,2),Object.defineProperty(e,&quot;toString&quot;,{value:()=&gt;e.message,enumerable:!1})},$n=tn(&quot;$ZodError&quot;,Mn),Un=tn(&quot;$ZodError&quot;,Mn,{Parent:Error}),Bn=e=&gt;(t,n,r,i)=&gt;{const o=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new nn;if(s.issues.length){const t=new(i?.Err??e)(s.issues.map(e=&gt;zn(e,o,sn())));throw vn(t,i?.callee),t}return s.value},Zn=Bn(Un),qn=e=&gt;async(t,n,r,i)=&gt;{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&amp;&amp;(s=await s),s.issues.length){const t=new(i?.Err??e)(s.issues.map(e=&gt;zn(e,o,sn())));throw vn(t,i?.callee),t}return s.value},Hn=qn(Un),Wn=e=&gt;(t,n,r)=&gt;{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new nn;return o.issues.length?{success:!1,error:new(e??$n)(o.issues.map(e=&gt;zn(e,i,sn())))}:{success:!0,data:o.value}},Gn=Wn(Un),Vn=e=&gt;async(t,n,r)=&gt;{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&amp;&amp;(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=&gt;zn(e,i,sn())))}:{success:!0,data:o.value}},Qn=Vn(Un),Kn=e=&gt;(t,n,r)=&gt;{const i=r?Object.assign(r,{direction:&quot;backward&quot;}):{direction:&quot;backward&quot;};return Bn(e)(t,n,i)},Jn=e=&gt;(t,n,r)=&gt;Bn(e)(t,n,r),Yn=e=&gt;async(t,n,r)=&gt;{const i=r?Object.assign(r,{direction:&quot;backward&quot;}):{direction:&quot;backward&quot;};return qn(e)(t,n,i)},Xn=e=&gt;async(t,n,r)=&gt;qn(e)(t,n,r),er=e=&gt;(t,n,r)=&gt;{const i=r?Object.assign(r,{direction:&quot;backward&quot;}):{direction:&quot;backward&quot;};return Wn(e)(t,n,i)},tr=e=&gt;(t,n,r)=&gt;Wn(e)(t,n,r),nr=e=&gt;async(t,n,r)=&gt;{const i=r?Object.assign(r,{direction:&quot;backward&quot;}):{direction:&quot;backward&quot;};return Vn(e)(t,n,i)},rr=e=&gt;async(t,n,r)=&gt;Vn(e)(t,n,r),ir=/^[cC][^\s-]{8,}$/,or=/^[0-9a-z]+$/,sr=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ar=/^[0-9a-vA-V]{20}$/,lr=/^[A-Za-z0-9]{27}$/,cr=/^[a-zA-Z0-9_-]{21}$/,ur=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,dr=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,pr=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,hr=e=&gt;e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,fr=hr(4),mr=hr(6),gr=hr(7),yr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_&#039;+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,vr=/^[a-zA-Z0-9.!#$%&amp;&#039;*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_r=/^(([^&lt;&gt;()\[\]\\.,;:\s@&quot;]+(\.[^&lt;&gt;()\[\]\\.,;:\s@&quot;]+)*)|(&quot;.+&quot;))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,br=/^[^\s@&quot;]{1,64}@[^\s@]{1,255}$/u,xr=br,wr=/^[a-zA-Z0-9.!#$%&amp;&#039;*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function jr(){return new RegExp(&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;,&quot;u&quot;)}const Sr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,kr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Cr=e=&gt;{const t=Cn(e??&quot;:&quot;);return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Tr=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Er=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Pr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Or=/^[A-Za-z0-9_-]*$/,Rr=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Nr=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ar=/^\+[1-9]\d{6,14}$/,Ir=&quot;(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))&quot;,zr=new RegExp(`^${Ir}$`);function Fr(e){const t=&quot;(?:[01]\\d|2[0-3]):[0-5]\\d&quot;;return&quot;number&quot;==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Dr(e){return new RegExp(`^${Fr(e)}$`)}function Lr(e){const t=Fr({precision:e.precision}),n=[&quot;Z&quot;];e.local&amp;&amp;n.push(&quot;&quot;),e.offset&amp;&amp;n.push(&quot;([+-](?:[01]\\d|2[0-3]):[0-5]\\d)&quot;);const r=`${t}(?:${n.join(&quot;|&quot;)})`;return new RegExp(`^${Ir}T(?:${r})$`)}const Mr=e=&gt;new RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??&quot;&quot;}}`:&quot;[\\s\\S]*&quot;}$`),$r=/^-?\d+n?$/,Ur=/^-?\d+$/,Br=/^-?\d+(?:\.\d+)?$/,Zr=/^(?:true|false)$/i,qr=/^null$/i,Hr=/^undefined$/i,Wr=/^[^A-Z]*$/,Gr=/^[^a-z]*$/,Vr=/^[0-9a-fA-F]*$/;function Qr(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Kr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const Jr=/^[0-9a-fA-F]{32}$/,Yr=Qr(22,&quot;==&quot;),Xr=Kr(22),ei=/^[0-9a-fA-F]{40}$/,ti=Qr(27,&quot;=&quot;),ni=Kr(27),ri=/^[0-9a-fA-F]{64}$/,ii=Qr(43,&quot;=&quot;),oi=Kr(43),si=/^[0-9a-fA-F]{96}$/,ai=Qr(64,&quot;&quot;),li=Kr(64),ci=/^[0-9a-fA-F]{128}$/,ui=Qr(86,&quot;==&quot;),di=Kr(86),pi=tn(&quot;$ZodCheck&quot;,(e,t)=&gt;{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),hi={number:&quot;number&quot;,bigint:&quot;bigint&quot;,object:&quot;date&quot;},fi=tn(&quot;$ZodCheckLessThan&quot;,(e,t)=&gt;{pi.init(e,t);const n=hi[typeof t.value];e._zod.onattach.push(e=&gt;{const n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value&lt;r&amp;&amp;(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=&gt;{(t.inclusive?r.value&lt;=t.value:r.value&lt;t.value)||r.issues.push({origin:n,code:&quot;too_big&quot;,maximum:&quot;object&quot;==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),mi=tn(&quot;$ZodCheckGreaterThan&quot;,(e,t)=&gt;{pi.init(e,t);const n=hi[typeof t.value];e._zod.onattach.push(e=&gt;{const n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value&gt;r&amp;&amp;(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=&gt;{(t.inclusive?r.value&gt;=t.value:r.value&gt;t.value)||r.issues.push({origin:n,code:&quot;too_small&quot;,minimum:&quot;object&quot;==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),gi=tn(&quot;$ZodCheckMultipleOf&quot;,(e,t)=&gt;{pi.init(e,t),e._zod.onattach.push(e=&gt;{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=&gt;{if(typeof n.value!=typeof t.value)throw new Error(&quot;Cannot mix number and bigint in multiple_of check.&quot;);const r=&quot;bigint&quot;==typeof n.value?n.value%t.value===BigInt(0):0===function(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=t.toString();let i=(r.split(&quot;.&quot;)[1]||&quot;&quot;).length;if(0===i&amp;&amp;/\d?e-\d?/.test(r)){const e=r.match(/\d?e-(\d?)/);e?.[1]&amp;&amp;(i=Number.parseInt(e[1]))}const o=n&gt;i?n:i;return Number.parseInt(e.toFixed(o).replace(&quot;.&quot;,&quot;&quot;))%Number.parseInt(t.toFixed(o).replace(&quot;.&quot;,&quot;&quot;))/10**o}(n.value,t.value);r||n.issues.push({origin:typeof n.value,code:&quot;not_multiple_of&quot;,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),yi=tn(&quot;$ZodCheckNumberFormat&quot;,(e,t)=&gt;{pi.init(e,t),t.format=t.format||&quot;float64&quot;;const n=t.format?.includes(&quot;int&quot;),r=n?&quot;int&quot;:&quot;number&quot;,[i,o]=On[t.format];e._zod.onattach.push(e=&gt;{const r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=o,n&amp;&amp;(r.pattern=Ur)}),e._zod.check=s=&gt;{const a=s.value;if(n){if(!Number.isInteger(a))return void s.issues.push({expected:r,format:t.format,code:&quot;invalid_type&quot;,continue:!1,input:a,inst:e});if(!Number.isSafeInteger(a))return void(a&gt;0?s.issues.push({input:a,code:&quot;too_big&quot;,maximum:Number.MAX_SAFE_INTEGER,note:&quot;Integers must be within the safe integer range.&quot;,inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:&quot;too_small&quot;,minimum:Number.MIN_SAFE_INTEGER,note:&quot;Integers must be within the safe integer range.&quot;,inst:e,origin:r,inclusive:!0,continue:!t.abort}))}a&lt;i&amp;&amp;s.issues.push({origin:&quot;number&quot;,input:a,code:&quot;too_small&quot;,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),a&gt;o&amp;&amp;s.issues.push({origin:&quot;number&quot;,input:a,code:&quot;too_big&quot;,maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),vi=tn(&quot;$ZodCheckBigIntFormat&quot;,(e,t)=&gt;{pi.init(e,t);const[n,r]=Rn[t.format];e._zod.onattach.push(e=&gt;{const i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=&gt;{const o=i.value;o&lt;n&amp;&amp;i.issues.push({origin:&quot;bigint&quot;,input:o,code:&quot;too_small&quot;,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o&gt;r&amp;&amp;i.issues.push({origin:&quot;bigint&quot;,input:o,code:&quot;too_big&quot;,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),_i=tn(&quot;$ZodCheckMaxSize&quot;,(e,t)=&gt;{var n;pi.init(e,t),(n=e._zod.def).when??(n.when=e=&gt;{const t=e.value;return!dn(t)&amp;&amp;void 0!==t.size}),e._zod.onattach.push(e=&gt;{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum&lt;n&amp;&amp;(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=&gt;{const r=n.value;r.size&lt;=t.maximum||n.issues.push({origin:Fn(r),code:&quot;too_big&quot;,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),bi=tn(&quot;$ZodCheckMinSize&quot;,(e,t)=&gt;{var n;pi.init(e,t),(n=e._zod.def).when??(n.when=e=&gt;{const t=e.value;return!dn(t)&amp;&amp;void 0!==t.size}),e._zod.onattach.push(e=&gt;{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum&gt;n&amp;&amp;(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=&gt;{const r=n.value;r.size&gt;=t.minimum||n.issues.push({origin:Fn(r),code:&quot;too_small&quot;,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),xi=tn(&quot;$ZodCheckSizeEquals&quot;,(e,t)=&gt;{var n;pi.init(e,t),(n=e._zod.def).when??(n.when=e=&gt;{const t=e.value;return!dn(t)&amp;&amp;void 0!==t.size}),e._zod.onattach.push(e=&gt;{const n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=&gt;{const r=n.value,i=r.size;if(i===t.size)return;const o=i&gt;t.size;n.issues.push({origin:Fn(r),...o?{code:&quot;too_big&quot;,maximum:t.size}:{code:&quot;too_small&quot;,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),wi=tn(&quot;$ZodCheckMaxLength&quot;,(e,t)=&gt;{var n;pi.init(e,t),(n=e._zod.def).when??(n.when=e=&gt;{const t=e.value;return!dn(t)&amp;&amp;void 0!==t.length}),e._zod.onattach.push(e=&gt;{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum&lt;n&amp;&amp;(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=&gt;{const r=n.value;if(r.length&lt;=t.maximum)return;const i=Dn(r);n.issues.push({origin:i,code:&quot;too_big&quot;,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ji=tn(&quot;$ZodCheckMinLength&quot;,(e,t)=&gt;{var n;pi.init(e,t),(n=e._zod.def).when??(n.when=e=&gt;{const t=e.value;return!dn(t)&amp;&amp;void 0!==t.length}),e._zod.onattach.push(e=&gt;{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum&gt;n&amp;&amp;(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=&gt;{const r=n.value;if(r.length&gt;=t.minimum)return;const i=Dn(r);n.issues.push({origin:i,code:&quot;too_small&quot;,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Si=tn(&quot;$ZodCheckLengthEquals&quot;,(e,t)=&gt;{var n;pi.init(e,t),(n=e._zod.def).when??(n.when=e=&gt;{const t=e.value;return!dn(t)&amp;&amp;void 0!==t.length}),e._zod.onattach.push(e=&gt;{const n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=&gt;{const r=n.value,i=r.length;if(i===t.length)return;const o=Dn(r),s=i&gt;t.length;n.issues.push({origin:o,...s?{code:&quot;too_big&quot;,maximum:t.length}:{code:&quot;too_small&quot;,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ki=tn(&quot;$ZodCheckStringFormat&quot;,(e,t)=&gt;{var n,r;pi.init(e,t),e._zod.onattach.push(e=&gt;{const n=e._zod.bag;n.format=t.format,t.pattern&amp;&amp;(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=&gt;{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=&gt;{})}),Ci=tn(&quot;$ZodCheckRegex&quot;,(e,t)=&gt;{ki.init(e,t),e._zod.check=n=&gt;{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;regex&quot;,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ti=tn(&quot;$ZodCheckLowerCase&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Wr),ki.init(e,t)}),Ei=tn(&quot;$ZodCheckUpperCase&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Gr),ki.init(e,t)}),Pi=tn(&quot;$ZodCheckIncludes&quot;,(e,t)=&gt;{pi.init(e,t);const n=Cn(t.includes),r=new RegExp(&quot;number&quot;==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=&gt;{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=&gt;{n.value.includes(t.includes,t.position)||n.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;includes&quot;,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Oi=tn(&quot;$ZodCheckStartsWith&quot;,(e,t)=&gt;{pi.init(e,t);const n=new RegExp(`^${Cn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=&gt;{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=&gt;{n.value.startsWith(t.prefix)||n.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;starts_with&quot;,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Ri=tn(&quot;$ZodCheckEndsWith&quot;,(e,t)=&gt;{pi.init(e,t);const n=new RegExp(`.*${Cn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=&gt;{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=&gt;{n.value.endsWith(t.suffix)||n.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;ends_with&quot;,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function Ni(e,t,n){e.issues.length&amp;&amp;t.issues.push(...An(n,e.issues))}const Ai=tn(&quot;$ZodCheckProperty&quot;,(e,t)=&gt;{pi.init(e,t),e._zod.check=e=&gt;{const n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=&gt;Ni(n,e,t.property));Ni(n,e,t.property)}}),Ii=tn(&quot;$ZodCheckMimeType&quot;,(e,t)=&gt;{pi.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(e=&gt;{e._zod.bag.mime=t.mime}),e._zod.check=r=&gt;{n.has(r.value.type)||r.issues.push({code:&quot;invalid_value&quot;,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),zi=tn(&quot;$ZodCheckOverwrite&quot;,(e,t)=&gt;{pi.init(e,t),e._zod.check=e=&gt;{e.value=t.tx(e.value)}});class Fi{constructor(e=[]){this.content=[],this.indent=0,this&amp;&amp;(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(&quot;function&quot;==typeof e)return e(this,{execution:&quot;sync&quot;}),void e(this,{execution:&quot;async&quot;});const t=e.split(&quot;\n&quot;).filter(e=&gt;e),n=Math.min(...t.map(e=&gt;e.length-e.trimStart().length)),r=t.map(e=&gt;e.slice(n)).map(e=&gt;&quot; &quot;.repeat(2*this.indent)+e);for(const e of r)this.content.push(e)}compile(){const e=Function,t=this?.args,n=[...(this?.content??[&quot;&quot;]).map(e=&gt;`  ${e}`)];return new e(...t,n.join(&quot;\n&quot;))}}const Di={major:4,minor:3,patch:6},Li=tn(&quot;$ZodType&quot;,(e,t)=&gt;{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Di;const r=[...e._zod.def.checks??[]];e._zod.traits.has(&quot;$ZodCheck&quot;)&amp;&amp;r.unshift(e);for(const t of r)for(const n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=&gt;{e._zod.run=e._zod.parse});else{const t=(e,t,n)=&gt;{let r,i=Nn(e);for(const o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(i)continue;const t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&amp;&amp;!1===n?.async)throw new nn;if(r||s instanceof Promise)r=(r??Promise.resolve()).then(async()=&gt;{await s,e.issues.length!==t&amp;&amp;(i||(i=Nn(e,t)))});else{if(e.issues.length===t)continue;i||(i=Nn(e,t))}}return r?r.then(()=&gt;e):e},n=(n,i,o)=&gt;{if(Nn(n))return n.aborted=!0,n;const s=t(i,r,o);if(s instanceof Promise){if(!1===o.async)throw new nn;return s.then(t=&gt;e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(i,o)=&gt;{if(o.skipChecks)return e._zod.parse(i,o);if(&quot;backward&quot;===o.direction){const t=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=&gt;n(e,i,o)):n(t,i,o)}const s=e._zod.parse(i,o);if(s instanceof Promise){if(!1===o.async)throw new nn;return s.then(e=&gt;t(e,r,o))}return t(s,r,o)}}fn(e,&quot;~standard&quot;,()=&gt;({validate:t=&gt;{try{const n=Gn(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return Qn(e,t).then(e=&gt;e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:&quot;zod&quot;,version:1}))}),Mi=tn(&quot;$ZodString&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Mr(e._zod.bag),e._zod.parse=(n,r)=&gt;{if(t.coerce)try{n.value=String(n.value)}catch(r){}return&quot;string&quot;==typeof n.value||n.issues.push({expected:&quot;string&quot;,code:&quot;invalid_type&quot;,input:n.value,inst:e}),n}}),$i=tn(&quot;$ZodStringFormat&quot;,(e,t)=&gt;{ki.init(e,t),Mi.init(e,t)}),Ui=tn(&quot;$ZodGUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=pr),$i.init(e,t)}),Bi=tn(&quot;$ZodUUID&quot;,(e,t)=&gt;{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: &quot;${t.version}&quot;`);t.pattern??(t.pattern=hr(e))}else t.pattern??(t.pattern=hr());$i.init(e,t)}),Zi=tn(&quot;$ZodEmail&quot;,(e,t)=&gt;{t.pattern??(t.pattern=yr),$i.init(e,t)}),qi=tn(&quot;$ZodURL&quot;,(e,t)=&gt;{$i.init(e,t),e._zod.check=n=&gt;{try{const r=n.value.trim(),i=new URL(r);return t.hostname&amp;&amp;(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,note:&quot;Invalid hostname&quot;,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&amp;&amp;(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(&quot;:&quot;)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,note:&quot;Invalid protocol&quot;,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=i.href:n.value=r)}catch(r){n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,input:n.value,inst:e,continue:!t.abort})}}}),Hi=tn(&quot;$ZodEmoji&quot;,(e,t)=&gt;{t.pattern??(t.pattern=jr()),$i.init(e,t)}),Wi=tn(&quot;$ZodNanoID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=cr),$i.init(e,t)}),Gi=tn(&quot;$ZodCUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=ir),$i.init(e,t)}),Vi=tn(&quot;$ZodCUID2&quot;,(e,t)=&gt;{t.pattern??(t.pattern=or),$i.init(e,t)}),Qi=tn(&quot;$ZodULID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=sr),$i.init(e,t)}),Ki=tn(&quot;$ZodXID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=ar),$i.init(e,t)}),Ji=tn(&quot;$ZodKSUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=lr),$i.init(e,t)}),Yi=tn(&quot;$ZodISODateTime&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Lr(t)),$i.init(e,t)}),Xi=tn(&quot;$ZodISODate&quot;,(e,t)=&gt;{t.pattern??(t.pattern=zr),$i.init(e,t)}),eo=tn(&quot;$ZodISOTime&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Dr(t)),$i.init(e,t)}),to=tn(&quot;$ZodISODuration&quot;,(e,t)=&gt;{t.pattern??(t.pattern=ur),$i.init(e,t)}),no=tn(&quot;$ZodIPv4&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Sr),$i.init(e,t),e._zod.bag.format=&quot;ipv4&quot;}),ro=tn(&quot;$ZodIPv6&quot;,(e,t)=&gt;{t.pattern??(t.pattern=kr),$i.init(e,t),e._zod.bag.format=&quot;ipv6&quot;,e._zod.check=n=&gt;{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;ipv6&quot;,input:n.value,inst:e,continue:!t.abort})}}}),io=tn(&quot;$ZodMAC&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Cr(t.delimiter)),$i.init(e,t),e._zod.bag.format=&quot;mac&quot;}),oo=tn(&quot;$ZodCIDRv4&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Tr),$i.init(e,t)}),so=tn(&quot;$ZodCIDRv6&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Er),$i.init(e,t),e._zod.check=n=&gt;{const r=n.value.split(&quot;/&quot;);try{if(2!==r.length)throw new Error;const[e,t]=r;if(!t)throw new Error;const n=Number(t);if(`${n}`!==t)throw new Error;if(n&lt;0||n&gt;128)throw new Error;new URL(`http://[${e}]`)}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;cidrv6&quot;,input:n.value,inst:e,continue:!t.abort})}}});function ao(e){if(&quot;&quot;===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const lo=tn(&quot;$ZodBase64&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Pr),$i.init(e,t),e._zod.bag.contentEncoding=&quot;base64&quot;,e._zod.check=n=&gt;{ao(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;base64&quot;,input:n.value,inst:e,continue:!t.abort})}}),co=tn(&quot;$ZodBase64URL&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Or),$i.init(e,t),e._zod.bag.contentEncoding=&quot;base64url&quot;,e._zod.check=n=&gt;{(function(e){if(!Or.test(e))return!1;const t=e.replace(/[-_]/g,e=&gt;&quot;-&quot;===e?&quot;+&quot;:&quot;/&quot;);return ao(t.padEnd(4*Math.ceil(t.length/4),&quot;=&quot;))})(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;base64url&quot;,input:n.value,inst:e,continue:!t.abort})}}),uo=tn(&quot;$ZodE164&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Ar),$i.init(e,t)}),po=tn(&quot;$ZodJWT&quot;,(e,t)=&gt;{$i.init(e,t),e._zod.check=n=&gt;{(function(e,t=null){try{const n=e.split(&quot;.&quot;);if(3!==n.length)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!(&quot;typ&quot;in i&amp;&amp;&quot;JWT&quot;!==i?.typ||!i.alg||t&amp;&amp;(!(&quot;alg&quot;in i)||i.alg!==t))}catch{return!1}})(n.value,t.alg)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;jwt&quot;,input:n.value,inst:e,continue:!t.abort})}}),ho=tn(&quot;$ZodCustomStringFormat&quot;,(e,t)=&gt;{$i.init(e,t),e._zod.check=n=&gt;{t.fn(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),fo=tn(&quot;$ZodNumber&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.pattern=e._zod.bag.pattern??Br,e._zod.parse=(n,r)=&gt;{if(t.coerce)try{n.value=Number(n.value)}catch(e){}const i=n.value;if(&quot;number&quot;==typeof i&amp;&amp;!Number.isNaN(i)&amp;&amp;Number.isFinite(i))return n;const o=&quot;number&quot;==typeof i?Number.isNaN(i)?&quot;NaN&quot;:Number.isFinite(i)?void 0:&quot;Infinity&quot;:void 0;return n.issues.push({expected:&quot;number&quot;,code:&quot;invalid_type&quot;,input:i,inst:e,...o?{received:o}:{}}),n}}),mo=tn(&quot;$ZodNumberFormat&quot;,(e,t)=&gt;{yi.init(e,t),fo.init(e,t)}),go=tn(&quot;$ZodBoolean&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.pattern=Zr,e._zod.parse=(n,r)=&gt;{if(t.coerce)try{n.value=Boolean(n.value)}catch(e){}const i=n.value;return&quot;boolean&quot;==typeof i||n.issues.push({expected:&quot;boolean&quot;,code:&quot;invalid_type&quot;,input:i,inst:e}),n}}),yo=tn(&quot;$ZodBigInt&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.pattern=$r,e._zod.parse=(n,r)=&gt;{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return&quot;bigint&quot;==typeof n.value||n.issues.push({expected:&quot;bigint&quot;,code:&quot;invalid_type&quot;,input:n.value,inst:e}),n}}),vo=tn(&quot;$ZodBigIntFormat&quot;,(e,t)=&gt;{vi.init(e,t),yo.init(e,t)}),_o=tn(&quot;$ZodSymbol&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(t,n)=&gt;{const r=t.value;return&quot;symbol&quot;==typeof r||t.issues.push({expected:&quot;symbol&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),t}}),bo=tn(&quot;$ZodUndefined&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.pattern=Hr,e._zod.values=new Set([void 0]),e._zod.optin=&quot;optional&quot;,e._zod.optout=&quot;optional&quot;,e._zod.parse=(t,n)=&gt;{const r=t.value;return void 0===r||t.issues.push({expected:&quot;undefined&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),t}}),xo=tn(&quot;$ZodNull&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.pattern=qr,e._zod.values=new Set([null]),e._zod.parse=(t,n)=&gt;{const r=t.value;return null===r||t.issues.push({expected:&quot;null&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),t}}),wo=tn(&quot;$ZodAny&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=e=&gt;e}),jo=tn(&quot;$ZodUnknown&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=e=&gt;e}),So=tn(&quot;$ZodNever&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(t,n)=&gt;(t.issues.push({expected:&quot;never&quot;,code:&quot;invalid_type&quot;,input:t.value,inst:e}),t)}),ko=tn(&quot;$ZodVoid&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(t,n)=&gt;{const r=t.value;return void 0===r||t.issues.push({expected:&quot;void&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),t}}),Co=tn(&quot;$ZodDate&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(n,r)=&gt;{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}const i=n.value,o=i instanceof Date;return o&amp;&amp;!Number.isNaN(i.getTime())||n.issues.push({expected:&quot;date&quot;,code:&quot;invalid_type&quot;,input:i,...o?{received:&quot;Invalid Date&quot;}:{},inst:e}),n}});function To(e,t,n){e.issues.length&amp;&amp;t.issues.push(...An(n,e.issues)),t.value[n]=e.value}const Eo=tn(&quot;$ZodArray&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(n,r)=&gt;{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:&quot;array&quot;,code:&quot;invalid_type&quot;,input:i,inst:e}),n;n.value=Array(i.length);const o=[];for(let e=0;e&lt;i.length;e++){const s=i[e],a=t.element._zod.run({value:s,issues:[]},r);a instanceof Promise?o.push(a.then(t=&gt;To(t,n,e))):To(a,n,e)}return o.length?Promise.all(o).then(()=&gt;n):n}});function Po(e,t,n,r,i){if(e.issues.length){if(i&amp;&amp;!(n in r))return;t.issues.push(...An(n,e.issues))}void 0===e.value?n in r&amp;&amp;(t.value[n]=void 0):t.value[n]=e.value}function Oo(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has(&quot;$ZodType&quot;))throw new Error(`Invalid element at key &quot;${n}&quot;: expected a Zod schema`);const n=(r=e.shape,Object.keys(r).filter(e=&gt;&quot;optional&quot;===r[e]._zod.optin&amp;&amp;&quot;optional&quot;===r[e]._zod.optout));var r;return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ro(e,t,n,r,i,o){const s=[],a=i.keySet,l=i.catchall._zod,c=l.def.type,u=&quot;optional&quot;===l.optout;for(const i in t){if(a.has(i))continue;if(&quot;never&quot;===c){s.push(i);continue}const o=l.run({value:t[i],issues:[]},r);o instanceof Promise?e.push(o.then(e=&gt;Po(e,n,i,t,u))):Po(o,n,i,t,u)}return s.length&amp;&amp;n.issues.push({code:&quot;unrecognized_keys&quot;,keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=&gt;n):n}const No=tn(&quot;$ZodObject&quot;,(e,t)=&gt;{Li.init(e,t);const n=Object.getOwnPropertyDescriptor(t,&quot;shape&quot;);if(!n?.get){const e=t.shape;Object.defineProperty(t,&quot;shape&quot;,{get:()=&gt;{const n={...e};return Object.defineProperty(t,&quot;shape&quot;,{value:n}),n}})}const r=un(()=&gt;Oo(t));fn(e._zod,&quot;propValues&quot;,()=&gt;{const e=t.shape,n={};for(const t in e){const r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(const e of r.values)n[t].add(e)}}return n});const i=bn,o=t.catchall;let s;e._zod.parse=(t,n)=&gt;{s??(s=r.value);const a=t.value;if(!i(a))return t.issues.push({expected:&quot;object&quot;,code:&quot;invalid_type&quot;,input:a,inst:e}),t;t.value={};const l=[],c=s.shape;for(const e of s.keys){const r=c[e],i=&quot;optional&quot;===r._zod.optout,o=r._zod.run({value:a[e],issues:[]},n);o instanceof Promise?l.push(o.then(n=&gt;Po(n,t,e,a,i))):Po(o,t,e,a,i)}return o?Ro(l,a,t,n,r.value,e):l.length?Promise.all(l).then(()=&gt;t):t}}),Ao=tn(&quot;$ZodObjectJIT&quot;,(e,t)=&gt;{No.init(e,t);const n=e._zod.parse,r=un(()=&gt;Oo(t));let i;const o=bn,s=!on.jitless,a=s&amp;&amp;xn.value,l=t.catchall;let c;e._zod.parse=(u,d)=&gt;{c??(c=r.value);const p=u.value;return o(p)?s&amp;&amp;a&amp;&amp;!1===d?.async&amp;&amp;!0!==d.jitless?(i||(i=(e=&gt;{const t=new Fi([&quot;shape&quot;,&quot;payload&quot;,&quot;ctx&quot;]),n=r.value,i=e=&gt;{const t=yn(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(&quot;const input = payload.value;&quot;);const o=Object.create(null);let s=0;for(const e of n.keys)o[e]=&quot;key_&quot;+s++;t.write(&quot;const newResult = {};&quot;);for(const r of n.keys){const n=o[r],s=yn(r),a=e[r],l=&quot;optional&quot;===a?._zod?.optout;t.write(`const ${n} = ${i(r)};`),l?t.write(`\n        if (${n}.issues.length) {\n          if (${s} in input) {\n            payload.issues = payload.issues.concat(${n}.issues.map(iss =&gt; ({\n              ...iss,\n              path: iss.path ? [${s}, ...iss.path] : [${s}]\n            })));\n          }\n        }\n        \n        if (${n}.value === undefined) {\n          if (${s} in input) {\n            newResult[${s}] = undefined;\n          }\n        } else {\n          newResult[${s}] = ${n}.value;\n        }\n        \n      `):t.write(`\n        if (${n}.issues.length) {\n          payload.issues = payload.issues.concat(${n}.issues.map(iss =&gt; ({\n            ...iss,\n            path: iss.path ? [${s}, ...iss.path] : [${s}]\n          })));\n        }\n        \n        if (${n}.value === undefined) {\n          if (${s} in input) {\n            newResult[${s}] = undefined;\n          }\n        } else {\n          newResult[${s}] = ${n}.value;\n        }\n        \n      `)}t.write(&quot;payload.value = newResult;&quot;),t.write(&quot;return payload;&quot;);const a=t.compile();return(t,n)=&gt;a(e,t,n)})(t.shape)),u=i(u,d),l?Ro([],p,u,d,c,e):u):n(u,d):(u.issues.push({expected:&quot;object&quot;,code:&quot;invalid_type&quot;,input:p,inst:e}),u)}});function Io(e,t,n,r){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;const i=e.filter(e=&gt;!Nn(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:&quot;invalid_union&quot;,input:t.value,inst:n,errors:e.map(e=&gt;e.issues.map(e=&gt;zn(e,r,sn())))}),t)}const zo=tn(&quot;$ZodUnion&quot;,(e,t)=&gt;{Li.init(e,t),fn(e._zod,&quot;optin&quot;,()=&gt;t.options.some(e=&gt;&quot;optional&quot;===e._zod.optin)?&quot;optional&quot;:void 0),fn(e._zod,&quot;optout&quot;,()=&gt;t.options.some(e=&gt;&quot;optional&quot;===e._zod.optout)?&quot;optional&quot;:void 0),fn(e._zod,&quot;values&quot;,()=&gt;{if(t.options.every(e=&gt;e._zod.values))return new Set(t.options.flatMap(e=&gt;Array.from(e._zod.values)))}),fn(e._zod,&quot;pattern&quot;,()=&gt;{if(t.options.every(e=&gt;e._zod.pattern)){const e=t.options.map(e=&gt;e._zod.pattern);return new RegExp(`^(${e.map(e=&gt;pn(e.source)).join(&quot;|&quot;)})$`)}});const n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(i,o)=&gt;{if(n)return r(i,o);let s=!1;const a=[];for(const e of t.options){const t=e._zod.run({value:i.value,issues:[]},o);if(t instanceof Promise)a.push(t),s=!0;else{if(0===t.issues.length)return t;a.push(t)}}return s?Promise.all(a).then(t=&gt;Io(t,i,e,o)):Io(a,i,e,o)}});function Fo(e,t,n,r){const i=e.filter(e=&gt;0===e.issues.length);return 1===i.length?(t.value=i[0].value,t):(0===i.length?t.issues.push({code:&quot;invalid_union&quot;,input:t.value,inst:n,errors:e.map(e=&gt;e.issues.map(e=&gt;zn(e,r,sn())))}):t.issues.push({code:&quot;invalid_union&quot;,input:t.value,inst:n,errors:[],inclusive:!1}),t)}const Do=tn(&quot;$ZodXor&quot;,(e,t)=&gt;{zo.init(e,t),t.inclusive=!1;const n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(i,o)=&gt;{if(n)return r(i,o);let s=!1;const a=[];for(const e of t.options){const t=e._zod.run({value:i.value,issues:[]},o);t instanceof Promise?(a.push(t),s=!0):a.push(t)}return s?Promise.all(a).then(t=&gt;Fo(t,i,e,o)):Fo(a,i,e,o)}}),Lo=tn(&quot;$ZodDiscriminatedUnion&quot;,(e,t)=&gt;{t.inclusive=!1,zo.init(e,t);const n=e._zod.parse;fn(e._zod,&quot;propValues&quot;,()=&gt;{const e={};for(const n of t.options){const r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw new Error(`Invalid discriminated union option at index &quot;${t.options.indexOf(n)}&quot;`);for(const[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(const r of n)e[t].add(r)}}return e});const r=un(()=&gt;{const e=t.options,n=new Map;for(const r of e){const e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw new Error(`Invalid discriminated union option at index &quot;${t.options.indexOf(r)}&quot;`);for(const t of e){if(n.has(t))throw new Error(`Duplicate discriminator value &quot;${String(t)}&quot;`);n.set(t,r)}}return n});e._zod.parse=(i,o)=&gt;{const s=i.value;if(!bn(s))return i.issues.push({code:&quot;invalid_type&quot;,expected:&quot;object&quot;,input:s,inst:e}),i;const a=r.value.get(s?.[t.discriminator]);return a?a._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:&quot;invalid_union&quot;,errors:[],note:&quot;No matching discriminator&quot;,discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),i)}}),Mo=tn(&quot;$ZodIntersection&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(e,n)=&gt;{const r=e.value,i=t.left._zod.run({value:r,issues:[]},n),o=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,n])=&gt;Uo(e,t,n)):Uo(e,i,o)}});function $o(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&amp;&amp;t instanceof Date&amp;&amp;+e===+t)return{valid:!0,data:e};if(wn(e)&amp;&amp;wn(t)){const n=Object.keys(t),r=Object.keys(e).filter(e=&gt;-1!==n.indexOf(e)),i={...e,...t};for(const n of r){const r=$o(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&amp;&amp;Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r&lt;e.length;r++){const i=$o(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Uo(e,t,n){const r=new Map;let i;for(const n of t.issues)if(&quot;unrecognized_keys&quot;===n.code){i??(i=n);for(const e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(const t of n.issues)if(&quot;unrecognized_keys&quot;===t.code)for(const e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);const o=[...r].filter(([,e])=&gt;e.l&amp;&amp;e.r).map(([e])=&gt;e);if(o.length&amp;&amp;i&amp;&amp;e.issues.push({...i,keys:o}),Nn(e))return e;const s=$o(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const Bo=tn(&quot;$ZodTuple&quot;,(e,t)=&gt;{Li.init(e,t);const n=t.items;e._zod.parse=(r,i)=&gt;{const o=r.value;if(!Array.isArray(o))return r.issues.push({input:o,inst:e,expected:&quot;tuple&quot;,code:&quot;invalid_type&quot;}),r;r.value=[];const s=[],a=[...n].reverse().findIndex(e=&gt;&quot;optional&quot;!==e._zod.optin),l=-1===a?0:n.length-a;if(!t.rest){const t=o.length&gt;n.length,i=o.length&lt;l-1;if(t||i)return r.issues.push({...t?{code:&quot;too_big&quot;,maximum:n.length,inclusive:!0}:{code:&quot;too_small&quot;,minimum:n.length},input:o,inst:e,origin:&quot;array&quot;}),r}let c=-1;for(const e of n){if(c++,c&gt;=o.length&amp;&amp;c&gt;=l)continue;const t=e._zod.run({value:o[c],issues:[]},i);t instanceof Promise?s.push(t.then(e=&gt;Zo(e,r,c))):Zo(t,r,c)}if(t.rest){const e=o.slice(n.length);for(const n of e){c++;const e=t.rest._zod.run({value:n,issues:[]},i);e instanceof Promise?s.push(e.then(e=&gt;Zo(e,r,c))):Zo(e,r,c)}}return s.length?Promise.all(s).then(()=&gt;r):r}});function Zo(e,t,n){e.issues.length&amp;&amp;t.issues.push(...An(n,e.issues)),t.value[n]=e.value}const qo=tn(&quot;$ZodRecord&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(n,r)=&gt;{const i=n.value;if(!wn(i))return n.issues.push({expected:&quot;record&quot;,code:&quot;invalid_type&quot;,input:i,inst:e}),n;const o=[],s=t.keyType._zod.values;if(s){n.value={};const a=new Set;for(const e of s)if(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e||&quot;symbol&quot;==typeof e){a.add(&quot;number&quot;==typeof e?e.toString():e);const s=t.valueType._zod.run({value:i[e],issues:[]},r);s instanceof Promise?o.push(s.then(t=&gt;{t.issues.length&amp;&amp;n.issues.push(...An(e,t.issues)),n.value[e]=t.value})):(s.issues.length&amp;&amp;n.issues.push(...An(e,s.issues)),n.value[e]=s.value)}let l;for(const e in i)a.has(e)||(l=l??[],l.push(e));l&amp;&amp;l.length&gt;0&amp;&amp;n.issues.push({code:&quot;unrecognized_keys&quot;,input:i,inst:e,keys:l})}else{n.value={};for(const s of Reflect.ownKeys(i)){if(&quot;__proto__&quot;===s)continue;let a=t.keyType._zod.run({value:s,issues:[]},r);if(a instanceof Promise)throw new Error(&quot;Async schemas not supported in object keys currently&quot;);if(&quot;string&quot;==typeof s&amp;&amp;Br.test(s)&amp;&amp;a.issues.length){const e=t.keyType._zod.run({value:Number(s),issues:[]},r);if(e instanceof Promise)throw new Error(&quot;Async schemas not supported in object keys currently&quot;);0===e.issues.length&amp;&amp;(a=e)}if(a.issues.length){&quot;loose&quot;===t.mode?n.value[s]=i[s]:n.issues.push({code:&quot;invalid_key&quot;,origin:&quot;record&quot;,issues:a.issues.map(e=&gt;zn(e,r,sn())),input:s,path:[s],inst:e});continue}const l=t.valueType._zod.run({value:i[s],issues:[]},r);l instanceof Promise?o.push(l.then(e=&gt;{e.issues.length&amp;&amp;n.issues.push(...An(s,e.issues)),n.value[a.value]=e.value})):(l.issues.length&amp;&amp;n.issues.push(...An(s,l.issues)),n.value[a.value]=l.value)}}return o.length?Promise.all(o).then(()=&gt;n):n}}),Ho=tn(&quot;$ZodMap&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(n,r)=&gt;{const i=n.value;if(!(i instanceof Map))return n.issues.push({expected:&quot;map&quot;,code:&quot;invalid_type&quot;,input:i,inst:e}),n;const o=[];n.value=new Map;for(const[s,a]of i){const l=t.keyType._zod.run({value:s,issues:[]},r),c=t.valueType._zod.run({value:a,issues:[]},r);l instanceof Promise||c instanceof Promise?o.push(Promise.all([l,c]).then(([t,o])=&gt;{Wo(t,o,n,s,i,e,r)})):Wo(l,c,n,s,i,e,r)}return o.length?Promise.all(o).then(()=&gt;n):n}});function Wo(e,t,n,r,i,o,s){e.issues.length&amp;&amp;(Sn.has(typeof r)?n.issues.push(...An(r,e.issues)):n.issues.push({code:&quot;invalid_key&quot;,origin:&quot;map&quot;,input:i,inst:o,issues:e.issues.map(e=&gt;zn(e,s,sn()))})),t.issues.length&amp;&amp;(Sn.has(typeof r)?n.issues.push(...An(r,t.issues)):n.issues.push({origin:&quot;map&quot;,code:&quot;invalid_element&quot;,input:i,inst:o,key:r,issues:t.issues.map(e=&gt;zn(e,s,sn()))})),n.value.set(e.value,t.value)}const Go=tn(&quot;$ZodSet&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(n,r)=&gt;{const i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:&quot;set&quot;,code:&quot;invalid_type&quot;}),n;const o=[];n.value=new Set;for(const e of i){const i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?o.push(i.then(e=&gt;Vo(e,n))):Vo(i,n)}return o.length?Promise.all(o).then(()=&gt;n):n}});function Vo(e,t){e.issues.length&amp;&amp;t.issues.push(...e.issues),t.value.add(e.value)}const Qo=tn(&quot;$ZodEnum&quot;,(e,t)=&gt;{Li.init(e,t);const n=an(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(e=&gt;Sn.has(typeof e)).map(e=&gt;&quot;string&quot;==typeof e?Cn(e):e.toString()).join(&quot;|&quot;)})$`),e._zod.parse=(t,i)=&gt;{const o=t.value;return r.has(o)||t.issues.push({code:&quot;invalid_value&quot;,values:n,input:o,inst:e}),t}}),Ko=tn(&quot;$ZodLiteral&quot;,(e,t)=&gt;{if(Li.init(e,t),0===t.values.length)throw new Error(&quot;Cannot create literal schema with no valid values&quot;);const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(e=&gt;&quot;string&quot;==typeof e?Cn(e):e?Cn(e.toString()):String(e)).join(&quot;|&quot;)})$`),e._zod.parse=(r,i)=&gt;{const o=r.value;return n.has(o)||r.issues.push({code:&quot;invalid_value&quot;,values:t.values,input:o,inst:e}),r}}),Jo=tn(&quot;$ZodFile&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(t,n)=&gt;{const r=t.value;return r instanceof File||t.issues.push({expected:&quot;file&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),t}}),Yo=tn(&quot;$ZodTransform&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(n,r)=&gt;{if(&quot;backward&quot;===r.direction)throw new rn(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=&gt;(n.value=e,n));if(i instanceof Promise)throw new nn;return n.value=i,n}});function Xo(e,t){return e.issues.length&amp;&amp;void 0===t?{issues:[],value:void 0}:e}const es=tn(&quot;$ZodOptional&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.optin=&quot;optional&quot;,e._zod.optout=&quot;optional&quot;,fn(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),fn(e._zod,&quot;pattern&quot;,()=&gt;{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${pn(e.source)})?$`):void 0}),e._zod.parse=(e,n)=&gt;{if(&quot;optional&quot;===t.innerType._zod.optin){const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=&gt;Xo(t,e.value)):Xo(r,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),ts=tn(&quot;$ZodExactOptional&quot;,(e,t)=&gt;{es.init(e,t),fn(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),fn(e._zod,&quot;pattern&quot;,()=&gt;t.innerType._zod.pattern),e._zod.parse=(e,n)=&gt;t.innerType._zod.run(e,n)}),ns=tn(&quot;$ZodNullable&quot;,(e,t)=&gt;{Li.init(e,t),fn(e._zod,&quot;optin&quot;,()=&gt;t.innerType._zod.optin),fn(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),fn(e._zod,&quot;pattern&quot;,()=&gt;{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${pn(e.source)}|null)$`):void 0}),fn(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=&gt;null===e.value?e:t.innerType._zod.run(e,n)}),rs=tn(&quot;$ZodDefault&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.optin=&quot;optional&quot;,fn(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(e,n)=&gt;{if(&quot;backward&quot;===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=&gt;is(e,t)):is(r,t)}});function is(e,t){return void 0===e.value&amp;&amp;(e.value=t.defaultValue),e}const os=tn(&quot;$ZodPrefault&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.optin=&quot;optional&quot;,fn(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(e,n)=&gt;(&quot;backward&quot;===n.direction||void 0===e.value&amp;&amp;(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ss=tn(&quot;$ZodNonOptional&quot;,(e,t)=&gt;{Li.init(e,t),fn(e._zod,&quot;values&quot;,()=&gt;{const e=t.innerType._zod.values;return e?new Set([...e].filter(e=&gt;void 0!==e)):void 0}),e._zod.parse=(n,r)=&gt;{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=&gt;as(t,e)):as(i,e)}});function as(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:&quot;invalid_type&quot;,expected:&quot;nonoptional&quot;,input:e.value,inst:t}),e}const ls=tn(&quot;$ZodSuccess&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(e,n)=&gt;{if(&quot;backward&quot;===n.direction)throw new rn(&quot;ZodSuccess&quot;);const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=&gt;(e.value=0===t.issues.length,e)):(e.value=0===r.issues.length,e)}}),cs=tn(&quot;$ZodCatch&quot;,(e,t)=&gt;{Li.init(e,t),fn(e._zod,&quot;optin&quot;,()=&gt;t.innerType._zod.optin),fn(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),fn(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(e,n)=&gt;{if(&quot;backward&quot;===n.direction)return t.innerType._zod.run(e,n);const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=&gt;(e.value=r.value,r.issues.length&amp;&amp;(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=&gt;zn(e,n,sn()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&amp;&amp;(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=&gt;zn(e,n,sn()))},input:e.value}),e.issues=[]),e)}}),us=tn(&quot;$ZodNaN&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(t,n)=&gt;(&quot;number&quot;==typeof t.value&amp;&amp;Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:&quot;nan&quot;,code:&quot;invalid_type&quot;}),t)}),ds=tn(&quot;$ZodPipe&quot;,(e,t)=&gt;{Li.init(e,t),fn(e._zod,&quot;values&quot;,()=&gt;t.in._zod.values),fn(e._zod,&quot;optin&quot;,()=&gt;t.in._zod.optin),fn(e._zod,&quot;optout&quot;,()=&gt;t.out._zod.optout),fn(e._zod,&quot;propValues&quot;,()=&gt;t.in._zod.propValues),e._zod.parse=(e,n)=&gt;{if(&quot;backward&quot;===n.direction){const r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=&gt;ps(e,t.in,n)):ps(r,t.in,n)}const r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=&gt;ps(e,t.out,n)):ps(r,t.out,n)}});function ps(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const hs=tn(&quot;$ZodCodec&quot;,(e,t)=&gt;{Li.init(e,t),fn(e._zod,&quot;values&quot;,()=&gt;t.in._zod.values),fn(e._zod,&quot;optin&quot;,()=&gt;t.in._zod.optin),fn(e._zod,&quot;optout&quot;,()=&gt;t.out._zod.optout),fn(e._zod,&quot;propValues&quot;,()=&gt;t.in._zod.propValues),e._zod.parse=(e,n)=&gt;{if(&quot;forward&quot;===(n.direction||&quot;forward&quot;)){const r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=&gt;fs(e,t,n)):fs(r,t,n)}{const r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=&gt;fs(e,t,n)):fs(r,t,n)}}});function fs(e,t,n){if(e.issues.length)return e.aborted=!0,e;if(&quot;forward&quot;===(n.direction||&quot;forward&quot;)){const r=t.transform(e.value,e);return r instanceof Promise?r.then(r=&gt;ms(e,r,t.out,n)):ms(e,r,t.out,n)}{const r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=&gt;ms(e,r,t.in,n)):ms(e,r,t.in,n)}}function ms(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}const gs=tn(&quot;$ZodReadonly&quot;,(e,t)=&gt;{Li.init(e,t),fn(e._zod,&quot;propValues&quot;,()=&gt;t.innerType._zod.propValues),fn(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),fn(e._zod,&quot;optin&quot;,()=&gt;t.innerType?._zod?.optin),fn(e._zod,&quot;optout&quot;,()=&gt;t.innerType?._zod?.optout),e._zod.parse=(e,n)=&gt;{if(&quot;backward&quot;===n.direction)return t.innerType._zod.run(e,n);const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(ys):ys(r)}});function ys(e){return e.value=Object.freeze(e.value),e}const vs=tn(&quot;$ZodTemplateLiteral&quot;,(e,t)=&gt;{Li.init(e,t);const n=[];for(const e of t.parts)if(&quot;object&quot;==typeof e&amp;&amp;null!==e){if(!e._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);const t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${e._zod.traits}`);const r=t.startsWith(&quot;^&quot;)?1:0,i=t.endsWith(&quot;$&quot;)?t.length-1:t.length;n.push(t.slice(r,i))}else{if(null!==e&amp;&amp;!kn.has(typeof e))throw new Error(`Invalid template literal part: ${e}`);n.push(Cn(`${e}`))}e._zod.pattern=new RegExp(`^${n.join(&quot;&quot;)}$`),e._zod.parse=(n,r)=&gt;&quot;string&quot;!=typeof n.value?(n.issues.push({input:n.value,inst:e,expected:&quot;string&quot;,code:&quot;invalid_type&quot;}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:&quot;invalid_format&quot;,format:t.format??&quot;template_literal&quot;,pattern:e._zod.pattern.source}),n)}),_s=tn(&quot;$ZodFunction&quot;,(e,t)=&gt;(Li.init(e,t),e._def=t,e._zod.def=t,e.implement=t=&gt;{if(&quot;function&quot;!=typeof t)throw new Error(&quot;implement() must be called with a function&quot;);return function(...n){const r=e._def.input?Zn(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?Zn(e._def.output,i):i}},e.implementAsync=t=&gt;{if(&quot;function&quot;!=typeof t)throw new Error(&quot;implementAsync() must be called with a function&quot;);return async function(...n){const r=e._def.input?await Hn(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await Hn(e._def.output,i):i}},e._zod.parse=(t,n)=&gt;{if(&quot;function&quot;!=typeof t.value)return t.issues.push({code:&quot;invalid_type&quot;,expected:&quot;function&quot;,input:t.value,inst:e}),t;const r=e._def.output&amp;&amp;&quot;promise&quot;===e._def.output._zod.def.type;return t.value=r?e.implementAsync(t.value):e.implement(t.value),t},e.input=(...t)=&gt;{const n=e.constructor;return Array.isArray(t[0])?new n({type:&quot;function&quot;,input:new Bo({type:&quot;tuple&quot;,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:&quot;function&quot;,input:t[0],output:e._def.output})},e.output=t=&gt;new(0,e.constructor)({type:&quot;function&quot;,input:e._def.input,output:t}),e)),bs=tn(&quot;$ZodPromise&quot;,(e,t)=&gt;{Li.init(e,t),e._zod.parse=(e,n)=&gt;Promise.resolve(e.value).then(e=&gt;t.innerType._zod.run({value:e,issues:[]},n))}),xs=tn(&quot;$ZodLazy&quot;,(e,t)=&gt;{Li.init(e,t),fn(e._zod,&quot;innerType&quot;,()=&gt;t.getter()),fn(e._zod,&quot;pattern&quot;,()=&gt;e._zod.innerType?._zod?.pattern),fn(e._zod,&quot;propValues&quot;,()=&gt;e._zod.innerType?._zod?.propValues),fn(e._zod,&quot;optin&quot;,()=&gt;e._zod.innerType?._zod?.optin??void 0),fn(e._zod,&quot;optout&quot;,()=&gt;e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=&gt;e._zod.innerType._zod.run(t,n)}),ws=tn(&quot;$ZodCustom&quot;,(e,t)=&gt;{pi.init(e,t),Li.init(e,t),e._zod.parse=(e,t)=&gt;e,e._zod.check=n=&gt;{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=&gt;js(t,n,r,e));js(i,n,r,e)}});function js(e,t,n,r){if(!e){const e={code:&quot;custom&quot;,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&amp;&amp;(e.params=r._zod.def.params),t.issues.push(Ln(e))}}var Ss;Symbol(&quot;ZodOutput&quot;),Symbol(&quot;ZodInput&quot;);(Ss=globalThis).__zod_globalRegistry??(Ss.__zod_globalRegistry=new class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&amp;&amp;&quot;object&quot;==typeof n&amp;&amp;&quot;id&quot;in n&amp;&amp;this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;id&quot;in t&amp;&amp;this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});const ks=globalThis.__zod_globalRegistry;function Cs(e,t){return new e({type:&quot;string&quot;,format:&quot;email&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Ts(e,t){return new e({type:&quot;string&quot;,format:&quot;guid&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Es(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Ps(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v4&quot;,...En(t)})}function Os(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v6&quot;,...En(t)})}function Rs(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v7&quot;,...En(t)})}function Ns(e,t){return new e({type:&quot;string&quot;,format:&quot;url&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function As(e,t){return new e({type:&quot;string&quot;,format:&quot;emoji&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Is(e,t){return new e({type:&quot;string&quot;,format:&quot;nanoid&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function zs(e,t){return new e({type:&quot;string&quot;,format:&quot;cuid&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Fs(e,t){return new e({type:&quot;string&quot;,format:&quot;cuid2&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Ds(e,t){return new e({type:&quot;string&quot;,format:&quot;ulid&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Ls(e,t){return new e({type:&quot;string&quot;,format:&quot;xid&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Ms(e,t){return new e({type:&quot;string&quot;,format:&quot;ksuid&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function $s(e,t){return new e({type:&quot;string&quot;,format:&quot;ipv4&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Us(e,t){return new e({type:&quot;string&quot;,format:&quot;ipv6&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Bs(e,t){return new e({type:&quot;string&quot;,format:&quot;cidrv4&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Zs(e,t){return new e({type:&quot;string&quot;,format:&quot;cidrv6&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function qs(e,t){return new e({type:&quot;string&quot;,format:&quot;base64&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Hs(e,t){return new e({type:&quot;string&quot;,format:&quot;base64url&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Ws(e,t){return new e({type:&quot;string&quot;,format:&quot;e164&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Gs(e,t){return new e({type:&quot;string&quot;,format:&quot;jwt&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}function Vs(e,t){return new fi({check:&quot;less_than&quot;,...En(t),value:e,inclusive:!1})}function Qs(e,t){return new fi({check:&quot;less_than&quot;,...En(t),value:e,inclusive:!0})}function Ks(e,t){return new mi({check:&quot;greater_than&quot;,...En(t),value:e,inclusive:!1})}function Js(e,t){return new mi({check:&quot;greater_than&quot;,...En(t),value:e,inclusive:!0})}function Ys(e){return Ks(0,e)}function Xs(e){return Vs(0,e)}function ea(e){return Qs(0,e)}function ta(e){return Js(0,e)}function na(e,t){return new gi({check:&quot;multiple_of&quot;,...En(t),value:e})}function ra(e,t){return new _i({check:&quot;max_size&quot;,...En(t),maximum:e})}function ia(e,t){return new bi({check:&quot;min_size&quot;,...En(t),minimum:e})}function oa(e,t){return new xi({check:&quot;size_equals&quot;,...En(t),size:e})}function sa(e,t){return new wi({check:&quot;max_length&quot;,...En(t),maximum:e})}function aa(e,t){return new ji({check:&quot;min_length&quot;,...En(t),minimum:e})}function la(e,t){return new Si({check:&quot;length_equals&quot;,...En(t),length:e})}function ca(e,t){return new Ci({check:&quot;string_format&quot;,format:&quot;regex&quot;,...En(t),pattern:e})}function ua(e){return new Ti({check:&quot;string_format&quot;,format:&quot;lowercase&quot;,...En(e)})}function da(e){return new Ei({check:&quot;string_format&quot;,format:&quot;uppercase&quot;,...En(e)})}function pa(e,t){return new Pi({check:&quot;string_format&quot;,format:&quot;includes&quot;,...En(t),includes:e})}function ha(e,t){return new Oi({check:&quot;string_format&quot;,format:&quot;starts_with&quot;,...En(t),prefix:e})}function fa(e,t){return new Ri({check:&quot;string_format&quot;,format:&quot;ends_with&quot;,...En(t),suffix:e})}function ma(e,t,n){return new Ai({check:&quot;property&quot;,property:e,schema:t,...En(n)})}function ga(e,t){return new Ii({check:&quot;mime_type&quot;,mime:e,...En(t)})}function ya(e){return new zi({check:&quot;overwrite&quot;,tx:e})}function va(e){return ya(t=&gt;t.normalize(e))}function _a(){return ya(e=&gt;e.trim())}function ba(){return ya(e=&gt;e.toLowerCase())}function xa(){return ya(e=&gt;e.toUpperCase())}function wa(){return ya(e=&gt;function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,&quot;&quot;).replace(/[\s_-]+/g,&quot;-&quot;).replace(/^-+|-+$/g,&quot;&quot;)}(e))}function ja(e,t,n,r={}){const i=En(r),o={...En(r),check:&quot;string_format&quot;,type:&quot;string&quot;,format:t,fn:&quot;function&quot;==typeof n?n:e=&gt;n.test(e),...i};return n instanceof RegExp&amp;&amp;(o.pattern=n),new e(o)}function Sa(e){let t=e?.target??&quot;draft-2020-12&quot;;return&quot;draft-4&quot;===t&amp;&amp;(t=&quot;draft-04&quot;),&quot;draft-7&quot;===t&amp;&amp;(t=&quot;draft-07&quot;),{processors:e.processors??{},metadataRegistry:e?.metadata??ks,target:t,unrepresentable:e?.unrepresentable??&quot;throw&quot;,override:e?.override??(()=&gt;{}),io:e?.io??&quot;output&quot;,counter:0,seen:new Map,cycles:e?.cycles??&quot;ref&quot;,reused:e?.reused??&quot;inline&quot;,external:e?.external??void 0}}function ka(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&amp;&amp;(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);const a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{const r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,r);else{const n=s.schema,o=t.processors[i.type];if(!o)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(e,t,n,r)}const o=e._zod.parent;o&amp;&amp;(s.ref||(s.ref=o),ka(o,t,r),t.seen.get(o).isParent=!0)}const l=t.metadataRegistry.get(e);return l&amp;&amp;Object.assign(s.schema,l),&quot;input&quot;===t.io&amp;&amp;Ea(e)&amp;&amp;(delete s.schema.examples,delete s.schema.default),&quot;input&quot;===t.io&amp;&amp;s.schema._prefault&amp;&amp;((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Ca(e,t){const n=e.seen.get(t);if(!n)throw new Error(&quot;Unprocessed schema. This is a bug in Zod.&quot;);const r=new Map;for(const t of e.seen.entries()){const n=e.metadataRegistry.get(t[0])?.id;if(n){const e=r.get(n);if(e&amp;&amp;e!==t[0])throw new Error(`Duplicate schema id &quot;${n}&quot; detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}const i=t=&gt;{if(t[1].schema.$ref)return;const r=t[1],{ref:i,defId:o}=(t=&gt;{const r=&quot;draft-2020-12&quot;===e.target?&quot;$defs&quot;:&quot;definitions&quot;;if(e.external){const n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=&gt;e);if(n)return{ref:i(n)};const o=t[1].defId??t[1].schema.id??&quot;schema&quot;+e.counter++;return t[1].defId=o,{defId:o,ref:`${i(&quot;__shared&quot;)}#/${r}/${o}`}}if(t[1]===n)return{ref:&quot;#&quot;};const i=`#/${r}/`,o=t[1].schema.id??&quot;__schema&quot;+e.counter++;return{defId:o,ref:i+o}})(t);r.def={...r.schema},o&amp;&amp;(r.defId=o);const s=r.schema;for(const e in s)delete s[e];s.$ref=i};if(&quot;throw&quot;===e.cycles)for(const t of e.seen.entries()){const e=t[1];if(e.cycle)throw new Error(`Cycle detected: #/${e.cycle?.join(&quot;/&quot;)}/&lt;root&gt;\n\nSet the \`cycles\` parameter to \`&quot;ref&quot;\` to resolve cyclical schemas with defs.`)}for(const n of e.seen.entries()){const r=n[1];if(t===n[0]){i(n);continue}if(e.external){const r=e.external.registry.get(n[0])?.id;if(t!==n[0]&amp;&amp;r){i(n);continue}}const o=e.metadataRegistry.get(n[0])?.id;(o||r.cycle||r.count&gt;1&amp;&amp;&quot;ref&quot;===e.reused)&amp;&amp;i(n)}}function Ta(e,t){const n=e.seen.get(t);if(!n)throw new Error(&quot;Unprocessed schema. This is a bug in Zod.&quot;);const r=t=&gt;{const n=e.seen.get(t);if(null===n.ref)return;const i=n.def??n.schema,o={...i},s=n.ref;if(n.ref=null,s){r(s);const n=e.seen.get(s),a=n.schema;if(!a.$ref||&quot;draft-07&quot;!==e.target&amp;&amp;&quot;draft-04&quot;!==e.target&amp;&amp;&quot;openapi-3.0&quot;!==e.target?Object.assign(i,a):(i.allOf=i.allOf??[],i.allOf.push(a)),Object.assign(i,o),t._zod.parent===s)for(const e in i)&quot;$ref&quot;!==e&amp;&amp;&quot;allOf&quot;!==e&amp;&amp;(e in o||delete i[e]);if(a.$ref&amp;&amp;n.def)for(const e in i)&quot;$ref&quot;!==e&amp;&amp;&quot;allOf&quot;!==e&amp;&amp;e in n.def&amp;&amp;JSON.stringify(i[e])===JSON.stringify(n.def[e])&amp;&amp;delete i[e]}const a=t._zod.parent;if(a&amp;&amp;a!==s){r(a);const t=e.seen.get(a);if(t?.schema.$ref&amp;&amp;(i.$ref=t.schema.$ref,t.def))for(const e in i)&quot;$ref&quot;!==e&amp;&amp;&quot;allOf&quot;!==e&amp;&amp;e in t.def&amp;&amp;JSON.stringify(i[e])===JSON.stringify(t.def[e])&amp;&amp;delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(const t of[...e.seen.entries()].reverse())r(t[0]);const i={};if(&quot;draft-2020-12&quot;===e.target?i.$schema=&quot;https://json-schema.org/draft/2020-12/schema&quot;:&quot;draft-07&quot;===e.target?i.$schema=&quot;http://json-schema.org/draft-07/schema#&quot;:&quot;draft-04&quot;===e.target?i.$schema=&quot;http://json-schema.org/draft-04/schema#&quot;:e.target,e.external?.uri){const n=e.external.registry.get(t)?.id;if(!n)throw new Error(&quot;Schema is missing an `id` property&quot;);i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);const o=e.external?.defs??{};for(const t of e.seen.entries()){const e=t[1];e.def&amp;&amp;e.defId&amp;&amp;(o[e.defId]=e.def)}e.external||Object.keys(o).length&gt;0&amp;&amp;(&quot;draft-2020-12&quot;===e.target?i.$defs=o:i.definitions=o);try{const n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,&quot;~standard&quot;,{value:{...t[&quot;~standard&quot;],jsonSchema:{input:Pa(t,&quot;input&quot;,e.processors),output:Pa(t,&quot;output&quot;,e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw new Error(&quot;Error converting schema to JSON.&quot;)}}function Ea(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(&quot;transform&quot;===r.type)return!0;if(&quot;array&quot;===r.type)return Ea(r.element,n);if(&quot;set&quot;===r.type)return Ea(r.valueType,n);if(&quot;lazy&quot;===r.type)return Ea(r.getter(),n);if(&quot;promise&quot;===r.type||&quot;optional&quot;===r.type||&quot;nonoptional&quot;===r.type||&quot;nullable&quot;===r.type||&quot;readonly&quot;===r.type||&quot;default&quot;===r.type||&quot;prefault&quot;===r.type)return Ea(r.innerType,n);if(&quot;intersection&quot;===r.type)return Ea(r.left,n)||Ea(r.right,n);if(&quot;record&quot;===r.type||&quot;map&quot;===r.type)return Ea(r.keyType,n)||Ea(r.valueType,n);if(&quot;pipe&quot;===r.type)return Ea(r.in,n)||Ea(r.out,n);if(&quot;object&quot;===r.type){for(const e in r.shape)if(Ea(r.shape[e],n))return!0;return!1}if(&quot;union&quot;===r.type){for(const e of r.options)if(Ea(e,n))return!0;return!1}if(&quot;tuple&quot;===r.type){for(const e of r.items)if(Ea(e,n))return!0;return!(!r.rest||!Ea(r.rest,n))}return!1}const Pa=(e,t,n={})=&gt;r=&gt;{const{libraryOptions:i,target:o}=r??{},s=Sa({...i??{},target:o,io:t,processors:n});return ka(e,s),Ca(s,e),Ta(s,e)},Oa={guid:&quot;uuid&quot;,url:&quot;uri&quot;,datetime:&quot;date-time&quot;,json_string:&quot;json-string&quot;,regex:&quot;&quot;},Ra=(e,t,n,r)=&gt;{const i=e._zod.def,o=!1===i.inclusive,s=i.options.map((e,n)=&gt;ka(e,t,{...r,path:[...r.path,o?&quot;oneOf&quot;:&quot;anyOf&quot;,n]}));o?n.oneOf=s:n.anyOf=s},Na=(e,t,n,r)=&gt;{const i=e._zod.def;ka(i.innerType,t,r),t.seen.get(e).ref=i.innerType},Aa=tn(&quot;ZodISODateTime&quot;,(e,t)=&gt;{Yi.init(e,t),sl.init(e,t)});function Ia(e){return function(e,t){return new e({type:&quot;string&quot;,format:&quot;datetime&quot;,check:&quot;string_format&quot;,offset:!1,local:!1,precision:null,...En(t)})}(Aa,e)}const za=tn(&quot;ZodISODate&quot;,(e,t)=&gt;{Xi.init(e,t),sl.init(e,t)});function Fa(e){return function(e,t){return new e({type:&quot;string&quot;,format:&quot;date&quot;,check:&quot;string_format&quot;,...En(t)})}(za,e)}const Da=tn(&quot;ZodISOTime&quot;,(e,t)=&gt;{eo.init(e,t),sl.init(e,t)});function La(e){return function(e,t){return new e({type:&quot;string&quot;,format:&quot;time&quot;,check:&quot;string_format&quot;,precision:null,...En(t)})}(Da,e)}const Ma=tn(&quot;ZodISODuration&quot;,(e,t)=&gt;{to.init(e,t),sl.init(e,t)});function $a(e){return function(e,t){return new e({type:&quot;string&quot;,format:&quot;duration&quot;,check:&quot;string_format&quot;,...En(t)})}(Ma,e)}const Ua=(e,t)=&gt;{$n.init(e,t),e.name=&quot;ZodError&quot;,Object.defineProperties(e,{format:{value:t=&gt;function(e,t=e=&gt;e.message){const n={_errors:[]},r=e=&gt;{for(const i of e.issues)if(&quot;invalid_union&quot;===i.code&amp;&amp;i.errors.length)i.errors.map(e=&gt;r({issues:e}));else if(&quot;invalid_key&quot;===i.code)r({issues:i.issues});else if(&quot;invalid_element&quot;===i.code)r({issues:i.issues});else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r&lt;i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}(e,t)},flatten:{value:t=&gt;function(e,t=e=&gt;e.message){const n={},r=[];for(const i of e.issues)i.path.length&gt;0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}(e,t)},addIssue:{value:t=&gt;{e.issues.push(t),e.message=JSON.stringify(e.issues,cn,2)}},addIssues:{value:t=&gt;{e.issues.push(...t),e.message=JSON.stringify(e.issues,cn,2)}},isEmpty:{get:()=&gt;0===e.issues.length}})},Ba=tn(&quot;ZodError&quot;,Ua),Za=tn(&quot;ZodError&quot;,Ua,{Parent:Error}),qa=Bn(Za),Ha=qn(Za),Wa=Wn(Za),Ga=Vn(Za),Va=Kn(Za),Qa=Jn(Za),Ka=Yn(Za),Ja=Xn(Za),Ya=er(Za),Xa=tr(Za),el=nr(Za),tl=rr(Za),nl=tn(&quot;ZodType&quot;,(e,t)=&gt;(Li.init(e,t),Object.assign(e[&quot;~standard&quot;],{jsonSchema:{input:Pa(e,&quot;input&quot;),output:Pa(e,&quot;output&quot;)}}),e.toJSONSchema=((e,t={})=&gt;n=&gt;{const r=Sa({...n,processors:t});return ka(e,r),Ca(r,e),Ta(r,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,&quot;_def&quot;,{value:t}),e.check=(...n)=&gt;e.clone(gn(t,{checks:[...t.checks??[],...n.map(e=&gt;&quot;function&quot;==typeof e?{_zod:{check:e,def:{check:&quot;custom&quot;},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=&gt;Tn(e,t,n),e.brand=()=&gt;e,e.register=(t,n)=&gt;(t.add(e,n),e),e.parse=(t,n)=&gt;qa(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=&gt;Wa(e,t,n),e.parseAsync=async(t,n)=&gt;Ha(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=&gt;Ga(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=&gt;Va(e,t,n),e.decode=(t,n)=&gt;Qa(e,t,n),e.encodeAsync=async(t,n)=&gt;Ka(e,t,n),e.decodeAsync=async(t,n)=&gt;Ja(e,t,n),e.safeEncode=(t,n)=&gt;Ya(e,t,n),e.safeDecode=(t,n)=&gt;Xa(e,t,n),e.safeEncodeAsync=async(t,n)=&gt;el(e,t,n),e.safeDecodeAsync=async(t,n)=&gt;tl(e,t,n),e.refine=(t,n)=&gt;e.check(Qu(t,n)),e.superRefine=t=&gt;e.check(Ku(t)),e.overwrite=t=&gt;e.check(ya(t)),e.optional=()=&gt;fu(e),e.exactOptional=()=&gt;gu(e),e.nullable=()=&gt;vu(e),e.nullish=()=&gt;fu(vu(e)),e.nonoptional=t=&gt;ku(e,t),e.array=()=&gt;Ic(e),e.or=t=&gt;Uc([e,t]),e.and=t=&gt;Gc(e,t),e.transform=t=&gt;Au(e,pu(t)),e.default=t=&gt;xu(e,t),e.prefault=t=&gt;ju(e,t),e.catch=t=&gt;Pu(e,t),e.pipe=t=&gt;Au(e,t),e.readonly=()=&gt;Du(e),e.describe=t=&gt;{const n=e.clone();return ks.add(n,{description:t}),n},Object.defineProperty(e,&quot;description&quot;,{get:()=&gt;ks.get(e)?.description,configurable:!0}),e.meta=(...t)=&gt;{if(0===t.length)return ks.get(e);const n=e.clone();return ks.add(n,t[0]),n},e.isOptional=()=&gt;e.safeParse(void 0).success,e.isNullable=()=&gt;e.safeParse(null).success,e.apply=t=&gt;t(e),e)),rl=tn(&quot;_ZodString&quot;,(e,t)=&gt;{Mi.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n)=&gt;{const r=n;r.type=&quot;string&quot;;const{minimum:i,maximum:o,format:s,patterns:a,contentEncoding:l}=e._zod.bag;if(&quot;number&quot;==typeof i&amp;&amp;(r.minLength=i),&quot;number&quot;==typeof o&amp;&amp;(r.maxLength=o),s&amp;&amp;(r.format=Oa[s]??s,&quot;&quot;===r.format&amp;&amp;delete r.format,&quot;time&quot;===s&amp;&amp;delete r.format),l&amp;&amp;(r.contentEncoding=l),a&amp;&amp;a.size&gt;0){const e=[...a];1===e.length?r.pattern=e[0].source:e.length&gt;1&amp;&amp;(r.allOf=[...e.map(e=&gt;({...&quot;draft-07&quot;===t.target||&quot;draft-04&quot;===t.target||&quot;openapi-3.0&quot;===t.target?{type:&quot;string&quot;}:{},pattern:e.source}))])}})(e,t,n);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=&gt;e.check(ca(...t)),e.includes=(...t)=&gt;e.check(pa(...t)),e.startsWith=(...t)=&gt;e.check(ha(...t)),e.endsWith=(...t)=&gt;e.check(fa(...t)),e.min=(...t)=&gt;e.check(aa(...t)),e.max=(...t)=&gt;e.check(sa(...t)),e.length=(...t)=&gt;e.check(la(...t)),e.nonempty=(...t)=&gt;e.check(aa(1,...t)),e.lowercase=t=&gt;e.check(ua(t)),e.uppercase=t=&gt;e.check(da(t)),e.trim=()=&gt;e.check(_a()),e.normalize=(...t)=&gt;e.check(va(...t)),e.toLowerCase=()=&gt;e.check(ba()),e.toUpperCase=()=&gt;e.check(xa()),e.slugify=()=&gt;e.check(wa())}),il=tn(&quot;ZodString&quot;,(e,t)=&gt;{Mi.init(e,t),rl.init(e,t),e.email=t=&gt;e.check(Cs(al,t)),e.url=t=&gt;e.check(Ns(gl,t)),e.jwt=t=&gt;e.check(Gs(Ql,t)),e.emoji=t=&gt;e.check(As(_l,t)),e.guid=t=&gt;e.check(Ts(cl,t)),e.uuid=t=&gt;e.check(Es(dl,t)),e.uuidv4=t=&gt;e.check(Ps(dl,t)),e.uuidv6=t=&gt;e.check(Os(dl,t)),e.uuidv7=t=&gt;e.check(Rs(dl,t)),e.nanoid=t=&gt;e.check(Is(xl,t)),e.guid=t=&gt;e.check(Ts(cl,t)),e.cuid=t=&gt;e.check(zs(jl,t)),e.cuid2=t=&gt;e.check(Fs(kl,t)),e.ulid=t=&gt;e.check(Ds(Tl,t)),e.base64=t=&gt;e.check(qs(Zl,t)),e.base64url=t=&gt;e.check(Hs(Hl,t)),e.xid=t=&gt;e.check(Ls(Pl,t)),e.ksuid=t=&gt;e.check(Ms(Rl,t)),e.ipv4=t=&gt;e.check($s(Al,t)),e.ipv6=t=&gt;e.check(Us(Dl,t)),e.cidrv4=t=&gt;e.check(Bs(Ml,t)),e.cidrv6=t=&gt;e.check(Zs(Ul,t)),e.e164=t=&gt;e.check(Ws(Gl,t)),e.datetime=t=&gt;e.check(Ia(t)),e.date=t=&gt;e.check(Fa(t)),e.time=t=&gt;e.check(La(t)),e.duration=t=&gt;e.check($a(t))});function ol(e){return function(e,t){return new e({type:&quot;string&quot;,...En(t)})}(il,e)}const sl=tn(&quot;ZodStringFormat&quot;,(e,t)=&gt;{$i.init(e,t),rl.init(e,t)}),al=tn(&quot;ZodEmail&quot;,(e,t)=&gt;{Zi.init(e,t),sl.init(e,t)});function ll(e){return Cs(al,e)}const cl=tn(&quot;ZodGUID&quot;,(e,t)=&gt;{Ui.init(e,t),sl.init(e,t)});function ul(e){return Ts(cl,e)}const dl=tn(&quot;ZodUUID&quot;,(e,t)=&gt;{Bi.init(e,t),sl.init(e,t)});function pl(e){return Es(dl,e)}function hl(e){return Ps(dl,e)}function fl(e){return Os(dl,e)}function ml(e){return Rs(dl,e)}const gl=tn(&quot;ZodURL&quot;,(e,t)=&gt;{qi.init(e,t),sl.init(e,t)});function yl(e){return Ns(gl,e)}function vl(e){return Ns(gl,{protocol:/^https?$/,hostname:Nr,...En(e)})}const _l=tn(&quot;ZodEmoji&quot;,(e,t)=&gt;{Hi.init(e,t),sl.init(e,t)});function bl(e){return As(_l,e)}const xl=tn(&quot;ZodNanoID&quot;,(e,t)=&gt;{Wi.init(e,t),sl.init(e,t)});function wl(e){return Is(xl,e)}const jl=tn(&quot;ZodCUID&quot;,(e,t)=&gt;{Gi.init(e,t),sl.init(e,t)});function Sl(e){return zs(jl,e)}const kl=tn(&quot;ZodCUID2&quot;,(e,t)=&gt;{Vi.init(e,t),sl.init(e,t)});function Cl(e){return Fs(kl,e)}const Tl=tn(&quot;ZodULID&quot;,(e,t)=&gt;{Qi.init(e,t),sl.init(e,t)});function El(e){return Ds(Tl,e)}const Pl=tn(&quot;ZodXID&quot;,(e,t)=&gt;{Ki.init(e,t),sl.init(e,t)});function Ol(e){return Ls(Pl,e)}const Rl=tn(&quot;ZodKSUID&quot;,(e,t)=&gt;{Ji.init(e,t),sl.init(e,t)});function Nl(e){return Ms(Rl,e)}const Al=tn(&quot;ZodIPv4&quot;,(e,t)=&gt;{no.init(e,t),sl.init(e,t)});function Il(e){return $s(Al,e)}const zl=tn(&quot;ZodMAC&quot;,(e,t)=&gt;{io.init(e,t),sl.init(e,t)});function Fl(e){return function(e,t){return new e({type:&quot;string&quot;,format:&quot;mac&quot;,check:&quot;string_format&quot;,abort:!1,...En(t)})}(zl,e)}const Dl=tn(&quot;ZodIPv6&quot;,(e,t)=&gt;{ro.init(e,t),sl.init(e,t)});function Ll(e){return Us(Dl,e)}const Ml=tn(&quot;ZodCIDRv4&quot;,(e,t)=&gt;{oo.init(e,t),sl.init(e,t)});function $l(e){return Bs(Ml,e)}const Ul=tn(&quot;ZodCIDRv6&quot;,(e,t)=&gt;{so.init(e,t),sl.init(e,t)});function Bl(e){return Zs(Ul,e)}const Zl=tn(&quot;ZodBase64&quot;,(e,t)=&gt;{lo.init(e,t),sl.init(e,t)});function ql(e){return qs(Zl,e)}const Hl=tn(&quot;ZodBase64URL&quot;,(e,t)=&gt;{co.init(e,t),sl.init(e,t)});function Wl(e){return Hs(Hl,e)}const Gl=tn(&quot;ZodE164&quot;,(e,t)=&gt;{uo.init(e,t),sl.init(e,t)});function Vl(e){return Ws(Gl,e)}const Ql=tn(&quot;ZodJWT&quot;,(e,t)=&gt;{po.init(e,t),sl.init(e,t)});function Kl(e){return Gs(Ql,e)}const Jl=tn(&quot;ZodCustomStringFormat&quot;,(e,t)=&gt;{ho.init(e,t),sl.init(e,t)});function Yl(e,t,n={}){return ja(Jl,e,t,n)}function Xl(e){return ja(Jl,&quot;hostname&quot;,Rr,e)}function ec(e){return ja(Jl,&quot;hex&quot;,Vr,e)}function tc(e,t){const n=`${e}_${t?.enc??&quot;hex&quot;}`,i=r[n];if(!i)throw new Error(`Unrecognized hash format: ${n}`);return ja(Jl,n,i,t)}const nc=tn(&quot;ZodNumber&quot;,(e,t)=&gt;{fo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n)=&gt;{const r=n,{minimum:i,maximum:o,format:s,multipleOf:a,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;&quot;string&quot;==typeof s&amp;&amp;s.includes(&quot;int&quot;)?r.type=&quot;integer&quot;:r.type=&quot;number&quot;,&quot;number&quot;==typeof c&amp;&amp;(&quot;draft-04&quot;===t.target||&quot;openapi-3.0&quot;===t.target?(r.minimum=c,r.exclusiveMinimum=!0):r.exclusiveMinimum=c),&quot;number&quot;==typeof i&amp;&amp;(r.minimum=i,&quot;number&quot;==typeof c&amp;&amp;&quot;draft-04&quot;!==t.target&amp;&amp;(c&gt;=i?delete r.minimum:delete r.exclusiveMinimum)),&quot;number&quot;==typeof l&amp;&amp;(&quot;draft-04&quot;===t.target||&quot;openapi-3.0&quot;===t.target?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),&quot;number&quot;==typeof o&amp;&amp;(r.maximum=o,&quot;number&quot;==typeof l&amp;&amp;&quot;draft-04&quot;!==t.target&amp;&amp;(l&lt;=o?delete r.maximum:delete r.exclusiveMaximum)),&quot;number&quot;==typeof a&amp;&amp;(r.multipleOf=a)})(e,t,n),e.gt=(t,n)=&gt;e.check(Ks(t,n)),e.gte=(t,n)=&gt;e.check(Js(t,n)),e.min=(t,n)=&gt;e.check(Js(t,n)),e.lt=(t,n)=&gt;e.check(Vs(t,n)),e.lte=(t,n)=&gt;e.check(Qs(t,n)),e.max=(t,n)=&gt;e.check(Qs(t,n)),e.int=t=&gt;e.check(oc(t)),e.safe=t=&gt;e.check(oc(t)),e.positive=t=&gt;e.check(Ks(0,t)),e.nonnegative=t=&gt;e.check(Js(0,t)),e.negative=t=&gt;e.check(Vs(0,t)),e.nonpositive=t=&gt;e.check(Qs(0,t)),e.multipleOf=(t,n)=&gt;e.check(na(t,n)),e.step=(t,n)=&gt;e.check(na(t,n)),e.finite=()=&gt;e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??&quot;&quot;).includes(&quot;int&quot;)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function rc(e){return function(e,t){return new e({type:&quot;number&quot;,checks:[],...En(t)})}(nc,e)}const ic=tn(&quot;ZodNumberFormat&quot;,(e,t)=&gt;{mo.init(e,t),nc.init(e,t)});function oc(e){return function(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;safeint&quot;,...En(t)})}(ic,e)}function sc(e){return function(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;float32&quot;,...En(t)})}(ic,e)}function ac(e){return function(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;float64&quot;,...En(t)})}(ic,e)}function lc(e){return function(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;int32&quot;,...En(t)})}(ic,e)}function cc(e){return function(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;uint32&quot;,...En(t)})}(ic,e)}const uc=tn(&quot;ZodBoolean&quot;,(e,t)=&gt;{go.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t,n)=&gt;{n.type=&quot;boolean&quot;})(0,0,t)});function dc(e){return function(e,t){return new e({type:&quot;boolean&quot;,...En(t)})}(uc,e)}const pc=tn(&quot;ZodBigInt&quot;,(e,t)=&gt;{yo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;BigInt cannot be represented in JSON Schema&quot;)})(0,e),e.gte=(t,n)=&gt;e.check(Js(t,n)),e.min=(t,n)=&gt;e.check(Js(t,n)),e.gt=(t,n)=&gt;e.check(Ks(t,n)),e.gte=(t,n)=&gt;e.check(Js(t,n)),e.min=(t,n)=&gt;e.check(Js(t,n)),e.lt=(t,n)=&gt;e.check(Vs(t,n)),e.lte=(t,n)=&gt;e.check(Qs(t,n)),e.max=(t,n)=&gt;e.check(Qs(t,n)),e.positive=t=&gt;e.check(Ks(BigInt(0),t)),e.negative=t=&gt;e.check(Vs(BigInt(0),t)),e.nonpositive=t=&gt;e.check(Qs(BigInt(0),t)),e.nonnegative=t=&gt;e.check(Js(BigInt(0),t)),e.multipleOf=(t,n)=&gt;e.check(na(t,n));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function hc(e){return function(e,t){return new e({type:&quot;bigint&quot;,...En(t)})}(pc,e)}const fc=tn(&quot;ZodBigIntFormat&quot;,(e,t)=&gt;{vo.init(e,t),pc.init(e,t)});function mc(e){return function(e,t){return new e({type:&quot;bigint&quot;,check:&quot;bigint_format&quot;,abort:!1,format:&quot;int64&quot;,...En(t)})}(fc,e)}function gc(e){return function(e,t){return new e({type:&quot;bigint&quot;,check:&quot;bigint_format&quot;,abort:!1,format:&quot;uint64&quot;,...En(t)})}(fc,e)}const yc=tn(&quot;ZodSymbol&quot;,(e,t)=&gt;{_o.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Symbols cannot be represented in JSON Schema&quot;)})(0,e)});function vc(e){return function(e,t){return new e({type:&quot;symbol&quot;,...En(t)})}(yc,e)}const _c=tn(&quot;ZodUndefined&quot;,(e,t)=&gt;{bo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Undefined cannot be represented in JSON Schema&quot;)})(0,e)});function bc(e){return function(e,t){return new e({type:&quot;undefined&quot;,...En(t)})}(_c,e)}const xc=tn(&quot;ZodNull&quot;,(e,t)=&gt;{xo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t,n)=&gt;{&quot;openapi-3.0&quot;===t.target?(n.type=&quot;string&quot;,n.nullable=!0,n.enum=[null]):n.type=&quot;null&quot;})(0,e,t)});function wc(e){return function(e,t){return new e({type:&quot;null&quot;,...En(t)})}(xc,e)}const jc=tn(&quot;ZodAny&quot;,(e,t)=&gt;{wo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;{}});function Sc(){return new jc({type:&quot;any&quot;})}const kc=tn(&quot;ZodUnknown&quot;,(e,t)=&gt;{jo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;{}});function Cc(){return new kc({type:&quot;unknown&quot;})}const Tc=tn(&quot;ZodNever&quot;,(e,t)=&gt;{So.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t,n)=&gt;{n.not={}})(0,0,t)});function Ec(e){return function(e,t){return new e({type:&quot;never&quot;,...En(t)})}(Tc,e)}const Pc=tn(&quot;ZodVoid&quot;,(e,t)=&gt;{ko.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Void cannot be represented in JSON Schema&quot;)})(0,e)});function Oc(e){return function(e,t){return new e({type:&quot;void&quot;,...En(t)})}(Pc,e)}const Rc=tn(&quot;ZodDate&quot;,(e,t)=&gt;{Co.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Date cannot be represented in JSON Schema&quot;)})(0,e),e.min=(t,n)=&gt;e.check(Js(t,n)),e.max=(t,n)=&gt;e.check(Qs(t,n));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Nc(e){return function(e,t){return new e({type:&quot;date&quot;,...En(t)})}(Rc,e)}const Ac=tn(&quot;ZodArray&quot;,(e,t)=&gt;{Eo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=n,o=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;&quot;number&quot;==typeof s&amp;&amp;(i.minItems=s),&quot;number&quot;==typeof a&amp;&amp;(i.maxItems=a),i.type=&quot;array&quot;,i.items=ka(o.element,t,{...r,path:[...r.path,&quot;items&quot;]})})(e,t,n,r),e.element=t.element,e.min=(t,n)=&gt;e.check(aa(t,n)),e.nonempty=t=&gt;e.check(aa(1,t)),e.max=(t,n)=&gt;e.check(sa(t,n)),e.length=(t,n)=&gt;e.check(la(t,n)),e.unwrap=()=&gt;e.element});function Ic(e,t){return function(e,t,n){return new e({type:&quot;array&quot;,element:t,...En(n)})}(Ac,e,t)}function zc(e){const t=e._zod.def.shape;return ou(Object.keys(t))}const Fc=tn(&quot;ZodObject&quot;,(e,t)=&gt;{Ao.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=n,o=e._zod.def;i.type=&quot;object&quot;,i.properties={};const s=o.shape;for(const e in s)i.properties[e]=ka(s[e],t,{...r,path:[...r.path,&quot;properties&quot;,e]});const a=new Set(Object.keys(s)),l=new Set([...a].filter(e=&gt;{const n=o.shape[e]._zod;return&quot;input&quot;===t.io?void 0===n.optin:void 0===n.optout}));l.size&gt;0&amp;&amp;(i.required=Array.from(l)),&quot;never&quot;===o.catchall?._zod.def.type?i.additionalProperties=!1:o.catchall?o.catchall&amp;&amp;(i.additionalProperties=ka(o.catchall,t,{...r,path:[...r.path,&quot;additionalProperties&quot;]})):&quot;output&quot;===t.io&amp;&amp;(i.additionalProperties=!1)})(e,t,n,r),fn(e,&quot;shape&quot;,()=&gt;t.shape),e.keyof=()=&gt;ou(Object.keys(e._zod.def.shape)),e.catchall=t=&gt;e.clone({...e._zod.def,catchall:t}),e.passthrough=()=&gt;e.clone({...e._zod.def,catchall:Cc()}),e.loose=()=&gt;e.clone({...e._zod.def,catchall:Cc()}),e.strict=()=&gt;e.clone({...e._zod.def,catchall:Ec()}),e.strip=()=&gt;e.clone({...e._zod.def,catchall:void 0}),e.extend=t=&gt;function(e,t){if(!wn(t))throw new Error(&quot;Invalid input to extend: expected a plain object&quot;);const n=e._zod.def.checks;if(n&amp;&amp;n.length&gt;0){const n=e._zod.def.shape;for(const e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw new Error(&quot;Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.&quot;)}const r=gn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return mn(this,&quot;shape&quot;,n),n}});return Tn(e,r)}(e,t),e.safeExtend=t=&gt;function(e,t){if(!wn(t))throw new Error(&quot;Invalid input to safeExtend: expected a plain object&quot;);const n=gn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return mn(this,&quot;shape&quot;,n),n}});return Tn(e,n)}(e,t),e.merge=t=&gt;function(e,t){const n=gn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return mn(this,&quot;shape&quot;,n),n},get catchall(){return t._zod.def.catchall},checks:[]});return Tn(e,n)}(e,t),e.pick=t=&gt;function(e,t){const n=e._zod.def,r=n.checks;if(r&amp;&amp;r.length&gt;0)throw new Error(&quot;.pick() cannot be used on object schemas containing refinements&quot;);return Tn(e,gn(e._zod.def,{get shape(){const e={};for(const r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: &quot;${r}&quot;`);t[r]&amp;&amp;(e[r]=n.shape[r])}return mn(this,&quot;shape&quot;,e),e},checks:[]}))}(e,t),e.omit=t=&gt;function(e,t){const n=e._zod.def,r=n.checks;if(r&amp;&amp;r.length&gt;0)throw new Error(&quot;.omit() cannot be used on object schemas containing refinements&quot;);const i=gn(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const e in t){if(!(e in n.shape))throw new Error(`Unrecognized key: &quot;${e}&quot;`);t[e]&amp;&amp;delete r[e]}return mn(this,&quot;shape&quot;,r),r},checks:[]});return Tn(e,i)}(e,t),e.partial=(...t)=&gt;function(e,t,n){const r=t._zod.def.checks;if(r&amp;&amp;r.length&gt;0)throw new Error(&quot;.partial() cannot be used on object schemas containing refinements&quot;);const i=gn(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const t in n){if(!(t in r))throw new Error(`Unrecognized key: &quot;${t}&quot;`);n[t]&amp;&amp;(i[t]=e?new e({type:&quot;optional&quot;,innerType:r[t]}):r[t])}else for(const t in r)i[t]=e?new e({type:&quot;optional&quot;,innerType:r[t]}):r[t];return mn(this,&quot;shape&quot;,i),i},checks:[]});return Tn(t,i)}(hu,e,t[0]),e.required=(...t)=&gt;function(e,t,n){const r=gn(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const t in n){if(!(t in i))throw new Error(`Unrecognized key: &quot;${t}&quot;`);n[t]&amp;&amp;(i[t]=new e({type:&quot;nonoptional&quot;,innerType:r[t]}))}else for(const t in r)i[t]=new e({type:&quot;nonoptional&quot;,innerType:r[t]});return mn(this,&quot;shape&quot;,i),i}});return Tn(t,r)}(Su,e,t[0])});function Dc(e,t){const n={type:&quot;object&quot;,shape:e??{},...En(t)};return new Fc(n)}function Lc(e,t){return new Fc({type:&quot;object&quot;,shape:e,catchall:Ec(),...En(t)})}function Mc(e,t){return new Fc({type:&quot;object&quot;,shape:e,catchall:Cc(),...En(t)})}const $c=tn(&quot;ZodUnion&quot;,(e,t)=&gt;{zo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;Ra(e,t,n,r),e.options=t.options});function Uc(e,t){return new $c({type:&quot;union&quot;,options:e,...En(t)})}const Bc=tn(&quot;ZodXor&quot;,(e,t)=&gt;{$c.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;Ra(e,t,n,r),e.options=t.options});function Zc(e,t){return new Bc({type:&quot;union&quot;,options:e,inclusive:!1,...En(t)})}const qc=tn(&quot;ZodDiscriminatedUnion&quot;,(e,t)=&gt;{$c.init(e,t),Lo.init(e,t)});function Hc(e,t,n){return new qc({type:&quot;union&quot;,options:t,discriminator:e,...En(n)})}const Wc=tn(&quot;ZodIntersection&quot;,(e,t)=&gt;{Mo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.def,o=ka(i.left,t,{...r,path:[...r.path,&quot;allOf&quot;,0]}),s=ka(i.right,t,{...r,path:[...r.path,&quot;allOf&quot;,1]}),a=e=&gt;&quot;allOf&quot;in e&amp;&amp;1===Object.keys(e).length,l=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];n.allOf=l})(e,t,n,r)});function Gc(e,t){return new Wc({type:&quot;intersection&quot;,left:e,right:t})}const Vc=tn(&quot;ZodTuple&quot;,(e,t)=&gt;{Bo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=n,o=e._zod.def;i.type=&quot;array&quot;;const s=&quot;draft-2020-12&quot;===t.target?&quot;prefixItems&quot;:&quot;items&quot;,a=&quot;draft-2020-12&quot;===t.target||&quot;openapi-3.0&quot;===t.target?&quot;items&quot;:&quot;additionalItems&quot;,l=o.items.map((e,n)=&gt;ka(e,t,{...r,path:[...r.path,s,n]})),c=o.rest?ka(o.rest,t,{...r,path:[...r.path,a,...&quot;openapi-3.0&quot;===t.target?[o.items.length]:[]]}):null;&quot;draft-2020-12&quot;===t.target?(i.prefixItems=l,c&amp;&amp;(i.items=c)):&quot;openapi-3.0&quot;===t.target?(i.items={anyOf:l},c&amp;&amp;i.items.anyOf.push(c),i.minItems=l.length,c||(i.maxItems=l.length)):(i.items=l,c&amp;&amp;(i.additionalItems=c));const{minimum:u,maximum:d}=e._zod.bag;&quot;number&quot;==typeof u&amp;&amp;(i.minItems=u),&quot;number&quot;==typeof d&amp;&amp;(i.maxItems=d)})(e,t,n,r),e.rest=t=&gt;e.clone({...e._zod.def,rest:t})});function Qc(e,t,n){const r=t instanceof Li;return new Vc({type:&quot;tuple&quot;,items:e,rest:r?t:null,...En(r?n:t)})}const Kc=tn(&quot;ZodRecord&quot;,(e,t)=&gt;{qo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=n,o=e._zod.def;i.type=&quot;object&quot;;const s=o.keyType,a=s._zod.bag,l=a?.patterns;if(&quot;loose&quot;===o.mode&amp;&amp;l&amp;&amp;l.size&gt;0){const e=ka(o.valueType,t,{...r,path:[...r.path,&quot;patternProperties&quot;,&quot;*&quot;]});i.patternProperties={};for(const t of l)i.patternProperties[t.source]=e}else&quot;draft-07&quot;!==t.target&amp;&amp;&quot;draft-2020-12&quot;!==t.target||(i.propertyNames=ka(o.keyType,t,{...r,path:[...r.path,&quot;propertyNames&quot;]})),i.additionalProperties=ka(o.valueType,t,{...r,path:[...r.path,&quot;additionalProperties&quot;]});const c=s._zod.values;if(c){const e=[...c].filter(e=&gt;&quot;string&quot;==typeof e||&quot;number&quot;==typeof e);e.length&gt;0&amp;&amp;(i.required=e)}})(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Jc(e,t,n){return new Kc({type:&quot;record&quot;,keyType:e,valueType:t,...En(n)})}function Yc(e,t,n){const r=Tn(e);return r._zod.values=void 0,new Kc({type:&quot;record&quot;,keyType:r,valueType:t,...En(n)})}function Xc(e,t,n){return new Kc({type:&quot;record&quot;,keyType:e,valueType:t,mode:&quot;loose&quot;,...En(n)})}const eu=tn(&quot;ZodMap&quot;,(e,t)=&gt;{Ho.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Map cannot be represented in JSON Schema&quot;)})(0,e),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=&gt;e.check(ia(...t)),e.nonempty=t=&gt;e.check(ia(1,t)),e.max=(...t)=&gt;e.check(ra(...t)),e.size=(...t)=&gt;e.check(oa(...t))});function tu(e,t,n){return new eu({type:&quot;map&quot;,keyType:e,valueType:t,...En(n)})}const nu=tn(&quot;ZodSet&quot;,(e,t)=&gt;{Go.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Set cannot be represented in JSON Schema&quot;)})(0,e),e.min=(...t)=&gt;e.check(ia(...t)),e.nonempty=t=&gt;e.check(ia(1,t)),e.max=(...t)=&gt;e.check(ra(...t)),e.size=(...t)=&gt;e.check(oa(...t))});function ru(e,t){return new nu({type:&quot;set&quot;,valueType:e,...En(t)})}const iu=tn(&quot;ZodEnum&quot;,(e,t)=&gt;{Qo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n)=&gt;{const r=an(e._zod.def.entries);r.every(e=&gt;&quot;number&quot;==typeof e)&amp;&amp;(n.type=&quot;number&quot;),r.every(e=&gt;&quot;string&quot;==typeof e)&amp;&amp;(n.type=&quot;string&quot;),n.enum=r})(e,0,n),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(e,r)=&gt;{const i={};for(const r of e){if(!n.has(r))throw new Error(`Key ${r} not found in enum`);i[r]=t.entries[r]}return new iu({...t,checks:[],...En(r),entries:i})},e.exclude=(e,r)=&gt;{const i={...t.entries};for(const t of e){if(!n.has(t))throw new Error(`Key ${t} not found in enum`);delete i[t]}return new iu({...t,checks:[],...En(r),entries:i})}});function ou(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(e=&gt;[e,e])):e;return new iu({type:&quot;enum&quot;,entries:n,...En(t)})}function su(e,t){return new iu({type:&quot;enum&quot;,entries:e,...En(t)})}const au=tn(&quot;ZodLiteral&quot;,(e,t)=&gt;{Ko.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n)=&gt;{const r=e._zod.def,i=[];for(const e of r.values)if(void 0===e){if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Literal `undefined` cannot be represented in JSON Schema&quot;)}else if(&quot;bigint&quot;==typeof e){if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;BigInt literals cannot be represented in JSON Schema&quot;);i.push(Number(e))}else i.push(e);if(0===i.length);else if(1===i.length){const e=i[0];n.type=null===e?&quot;null&quot;:typeof e,&quot;draft-04&quot;===t.target||&quot;openapi-3.0&quot;===t.target?n.enum=[e]:n.const=e}else i.every(e=&gt;&quot;number&quot;==typeof e)&amp;&amp;(n.type=&quot;number&quot;),i.every(e=&gt;&quot;string&quot;==typeof e)&amp;&amp;(n.type=&quot;string&quot;),i.every(e=&gt;&quot;boolean&quot;==typeof e)&amp;&amp;(n.type=&quot;boolean&quot;),i.every(e=&gt;null===e)&amp;&amp;(n.type=&quot;null&quot;),n.enum=i})(e,t,n),e.values=new Set(t.values),Object.defineProperty(e,&quot;value&quot;,{get(){if(t.values.length&gt;1)throw new Error(&quot;This schema contains multiple valid literal values. Use `.values` instead.&quot;);return t.values[0]}})});function lu(e,t){return new au({type:&quot;literal&quot;,values:Array.isArray(e)?e:[e],...En(t)})}const cu=tn(&quot;ZodFile&quot;,(e,t)=&gt;{Jo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n)=&gt;{const r=n,i={type:&quot;string&quot;,format:&quot;binary&quot;,contentEncoding:&quot;binary&quot;},{minimum:o,maximum:s,mime:a}=e._zod.bag;void 0!==o&amp;&amp;(i.minLength=o),void 0!==s&amp;&amp;(i.maxLength=s),a?1===a.length?(i.contentMediaType=a[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=a.map(e=&gt;({contentMediaType:e}))):Object.assign(r,i)})(e,0,n),e.min=(t,n)=&gt;e.check(ia(t,n)),e.max=(t,n)=&gt;e.check(ra(t,n)),e.mime=(t,n)=&gt;e.check(ga(Array.isArray(t)?t:[t],n))});function uu(e){return function(e,t){return new e({type:&quot;file&quot;,...En(t)})}(cu,e)}const du=tn(&quot;ZodTransform&quot;,(e,t)=&gt;{Yo.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Transforms cannot be represented in JSON Schema&quot;)})(0,e),e._zod.parse=(n,r)=&gt;{if(&quot;backward&quot;===r.direction)throw new rn(e.constructor.name);n.addIssue=r=&gt;{if(&quot;string&quot;==typeof r)n.issues.push(Ln(r,n.value,t));else{const t=r;t.fatal&amp;&amp;(t.continue=!1),t.code??(t.code=&quot;custom&quot;),t.input??(t.input=n.value),t.inst??(t.inst=e),n.issues.push(Ln(t))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(e=&gt;(n.value=e,n)):(n.value=i,n)}});function pu(e){return new du({type:&quot;transform&quot;,transform:e})}const hu=tn(&quot;ZodOptional&quot;,(e,t)=&gt;{es.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;Na(e,t,0,r),e.unwrap=()=&gt;e._zod.def.innerType});function fu(e){return new hu({type:&quot;optional&quot;,innerType:e})}const mu=tn(&quot;ZodExactOptional&quot;,(e,t)=&gt;{ts.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;Na(e,t,0,r),e.unwrap=()=&gt;e._zod.def.innerType});function gu(e){return new mu({type:&quot;optional&quot;,innerType:e})}const yu=tn(&quot;ZodNullable&quot;,(e,t)=&gt;{ns.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.def,o=ka(i.innerType,t,r),s=t.seen.get(e);&quot;openapi-3.0&quot;===t.target?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:&quot;null&quot;}]})(e,t,n,r),e.unwrap=()=&gt;e._zod.def.innerType});function vu(e){return new yu({type:&quot;nullable&quot;,innerType:e})}function _u(e){return fu(vu(e))}const bu=tn(&quot;ZodDefault&quot;,(e,t)=&gt;{rs.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.def;ka(i.innerType,t,r),t.seen.get(e).ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))})(e,t,n,r),e.unwrap=()=&gt;e._zod.def.innerType,e.removeDefault=e.unwrap});function xu(e,t){return new bu({type:&quot;default&quot;,innerType:e,get defaultValue(){return&quot;function&quot;==typeof t?t():jn(t)}})}const wu=tn(&quot;ZodPrefault&quot;,(e,t)=&gt;{os.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.def;ka(i.innerType,t,r),t.seen.get(e).ref=i.innerType,&quot;input&quot;===t.io&amp;&amp;(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))})(e,t,n,r),e.unwrap=()=&gt;e._zod.def.innerType});function ju(e,t){return new wu({type:&quot;prefault&quot;,innerType:e,get defaultValue(){return&quot;function&quot;==typeof t?t():jn(t)}})}const Su=tn(&quot;ZodNonOptional&quot;,(e,t)=&gt;{ss.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.def;ka(i.innerType,t,r),t.seen.get(e).ref=i.innerType})(e,t,0,r),e.unwrap=()=&gt;e._zod.def.innerType});function ku(e,t){return new Su({type:&quot;nonoptional&quot;,innerType:e,...En(t)})}const Cu=tn(&quot;ZodSuccess&quot;,(e,t)=&gt;{ls.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t,n)=&gt;{n.type=&quot;boolean&quot;})(0,0,t),e.unwrap=()=&gt;e._zod.def.innerType});function Tu(e){return new Cu({type:&quot;success&quot;,innerType:e})}const Eu=tn(&quot;ZodCatch&quot;,(e,t)=&gt;{cs.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.def;let o;ka(i.innerType,t,r),t.seen.get(e).ref=i.innerType;try{o=i.catchValue(void 0)}catch{throw new Error(&quot;Dynamic catch values are not supported in JSON Schema&quot;)}n.default=o})(e,t,n,r),e.unwrap=()=&gt;e._zod.def.innerType,e.removeCatch=e.unwrap});function Pu(e,t){return new Eu({type:&quot;catch&quot;,innerType:e,catchValue:&quot;function&quot;==typeof t?t:()=&gt;t})}const Ou=tn(&quot;ZodNaN&quot;,(e,t)=&gt;{us.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;NaN cannot be represented in JSON Schema&quot;)})(0,e)});function Ru(e){return function(e,t){return new e({type:&quot;nan&quot;,...En(t)})}(Ou,e)}const Nu=tn(&quot;ZodPipe&quot;,(e,t)=&gt;{ds.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.def,o=&quot;input&quot;===t.io?&quot;transform&quot;===i.in._zod.def.type?i.out:i.in:i.out;ka(o,t,r),t.seen.get(e).ref=o})(e,t,0,r),e.in=t.in,e.out=t.out});function Au(e,t){return new Nu({type:&quot;pipe&quot;,in:e,out:t})}const Iu=tn(&quot;ZodCodec&quot;,(e,t)=&gt;{Nu.init(e,t),hs.init(e,t)});function zu(e,t,n){return new Iu({type:&quot;pipe&quot;,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}const Fu=tn(&quot;ZodReadonly&quot;,(e,t)=&gt;{gs.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.def;ka(i.innerType,t,r),t.seen.get(e).ref=i.innerType,n.readOnly=!0})(e,t,n,r),e.unwrap=()=&gt;e._zod.def.innerType});function Du(e){return new Fu({type:&quot;readonly&quot;,innerType:e})}const Lu=tn(&quot;ZodTemplateLiteral&quot;,(e,t)=&gt;{vs.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n)=&gt;{const r=n,i=e._zod.pattern;if(!i)throw new Error(&quot;Pattern not found in template literal&quot;);r.type=&quot;string&quot;,r.pattern=i.source})(e,0,n)});function Mu(e,t){return new Lu({type:&quot;template_literal&quot;,parts:e,...En(t)})}const $u=tn(&quot;ZodLazy&quot;,(e,t)=&gt;{xs.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.innerType;ka(i,t,r),t.seen.get(e).ref=i})(e,t,0,r),e.unwrap=()=&gt;e._zod.def.getter()});function Uu(e){return new $u({type:&quot;lazy&quot;,getter:e})}const Bu=tn(&quot;ZodPromise&quot;,(e,t)=&gt;{bs.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(t,n,r)=&gt;((e,t,n,r)=&gt;{const i=e._zod.def;ka(i.innerType,t,r),t.seen.get(e).ref=i.innerType})(e,t,0,r),e.unwrap=()=&gt;e._zod.def.innerType});function Zu(e){return new Bu({type:&quot;promise&quot;,innerType:e})}const qu=tn(&quot;ZodFunction&quot;,(e,t)=&gt;{_s.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Function types cannot be represented in JSON Schema&quot;)})(0,e)});function Hu(e){return new qu({type:&quot;function&quot;,input:Array.isArray(e?.input)?Qc(e?.input):e?.input??Ic(Cc()),output:e?.output??Cc()})}const Wu=tn(&quot;ZodCustom&quot;,(e,t)=&gt;{ws.init(e,t),nl.init(e,t),e._zod.processJSONSchema=(e,t,n)=&gt;((e,t)=&gt;{if(&quot;throw&quot;===t.unrepresentable)throw new Error(&quot;Custom types cannot be represented in JSON Schema&quot;)})(0,e)});function Gu(e){const t=new pi({check:&quot;custom&quot;});return t._zod.check=e,t}function Vu(e,t){return function(e,t,n){const r=En(n);return r.abort??(r.abort=!0),new e({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:t,...r})}(Wu,e??(()=&gt;!0),t)}function Qu(e,t={}){return function(e,t,n){return new e({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:t,...En(n)})}(Wu,e,t)}function Ku(e){return function(e){const t=function(e){const t=new pi({check:&quot;custom&quot;,...En(void 0)});return t._zod.check=e,t}(n=&gt;(n.addIssue=e=&gt;{if(&quot;string&quot;==typeof e)n.issues.push(Ln(e,n.value,t._zod.def));else{const r=e;r.fatal&amp;&amp;(r.continue=!1),r.code??(r.code=&quot;custom&quot;),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(Ln(r))}},e(n.value,n)));return t}(e)}const Ju=function(e){const t=new pi({check:&quot;describe&quot;});return t._zod.onattach=[t=&gt;{const n=ks.get(t)??{};ks.add(t,{...n,description:e})}],t._zod.check=()=&gt;{},t},Yu=function(e){const t=new pi({check:&quot;meta&quot;});return t._zod.onattach=[t=&gt;{const n=ks.get(t)??{};ks.add(t,{...n,...e})}],t._zod.check=()=&gt;{},t};function Xu(e,t={}){const n=new Wu({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:t=&gt;t instanceof e,abort:!0,...En(t)});return n._zod.bag.Class=e,n._zod.check=t=&gt;{t.value instanceof e||t.issues.push({code:&quot;invalid_type&quot;,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}const ed=(...e)=&gt;function(e,t){const n=En(t);let r=n.truthy??[&quot;true&quot;,&quot;1&quot;,&quot;yes&quot;,&quot;on&quot;,&quot;y&quot;,&quot;enabled&quot;],i=n.falsy??[&quot;false&quot;,&quot;0&quot;,&quot;no&quot;,&quot;off&quot;,&quot;n&quot;,&quot;disabled&quot;];&quot;sensitive&quot;!==n.case&amp;&amp;(r=r.map(e=&gt;&quot;string&quot;==typeof e?e.toLowerCase():e),i=i.map(e=&gt;&quot;string&quot;==typeof e?e.toLowerCase():e));const o=new Set(r),s=new Set(i),a=e.Codec??hs,l=e.Boolean??go,c=new a({type:&quot;pipe&quot;,in:new(e.String??Mi)({type:&quot;string&quot;,error:n.error}),out:new l({type:&quot;boolean&quot;,error:n.error}),transform:(e,t)=&gt;{let r=e;return&quot;sensitive&quot;!==n.case&amp;&amp;(r=r.toLowerCase()),!!o.has(r)||!s.has(r)&amp;&amp;(t.issues.push({code:&quot;invalid_value&quot;,expected:&quot;stringbool&quot;,values:[...o,...s],input:t.value,inst:c,continue:!1}),{})},reverseTransform:(e,t)=&gt;!0===e?r[0]||&quot;true&quot;:i[0]||&quot;false&quot;,error:n.error});return c}({Codec:Iu,Boolean:uc,String:il},...e);function td(e){const t=Uu(()=&gt;Uc([ol(e),rc(),dc(),wc(),Ic(t),Jc(ol(),t)]));return t}function nd(e,t){return Au(pu(e),t)}var rd;function id(e){return function(e,t){return new e({type:&quot;number&quot;,coerce:!0,checks:[],...En(t)})}(nc,e)}rd||(rd={}),new Set([&quot;$schema&quot;,&quot;$ref&quot;,&quot;$defs&quot;,&quot;definitions&quot;,&quot;$id&quot;,&quot;id&quot;,&quot;$comment&quot;,&quot;$anchor&quot;,&quot;$vocabulary&quot;,&quot;$dynamicRef&quot;,&quot;$dynamicAnchor&quot;,&quot;type&quot;,&quot;enum&quot;,&quot;const&quot;,&quot;anyOf&quot;,&quot;oneOf&quot;,&quot;allOf&quot;,&quot;not&quot;,&quot;properties&quot;,&quot;required&quot;,&quot;additionalProperties&quot;,&quot;patternProperties&quot;,&quot;propertyNames&quot;,&quot;minProperties&quot;,&quot;maxProperties&quot;,&quot;items&quot;,&quot;prefixItems&quot;,&quot;additionalItems&quot;,&quot;minItems&quot;,&quot;maxItems&quot;,&quot;uniqueItems&quot;,&quot;contains&quot;,&quot;minContains&quot;,&quot;maxContains&quot;,&quot;minLength&quot;,&quot;maxLength&quot;,&quot;pattern&quot;,&quot;format&quot;,&quot;minimum&quot;,&quot;maximum&quot;,&quot;exclusiveMinimum&quot;,&quot;exclusiveMaximum&quot;,&quot;multipleOf&quot;,&quot;description&quot;,&quot;default&quot;,&quot;contentEncoding&quot;,&quot;contentMediaType&quot;,&quot;contentSchema&quot;,&quot;unevaluatedItems&quot;,&quot;unevaluatedProperties&quot;,&quot;if&quot;,&quot;then&quot;,&quot;else&quot;,&quot;dependentSchemas&quot;,&quot;dependentRequired&quot;,&quot;nullable&quot;,&quot;readOnly&quot;]),sn({localeError:(()=&gt;{const e={string:{unit:&quot;characters&quot;,verb:&quot;to have&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;to have&quot;},array:{unit:&quot;items&quot;,verb:&quot;to have&quot;},set:{unit:&quot;items&quot;,verb:&quot;to have&quot;},map:{unit:&quot;entries&quot;,verb:&quot;to have&quot;}};function t(t){return e[t]??null}const n={regex:&quot;input&quot;,email:&quot;email address&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datetime&quot;,date:&quot;ISO date&quot;,time:&quot;ISO time&quot;,duration:&quot;ISO duration&quot;,ipv4:&quot;IPv4 address&quot;,ipv6:&quot;IPv6 address&quot;,mac:&quot;MAC address&quot;,cidrv4:&quot;IPv4 range&quot;,cidrv6:&quot;IPv6 range&quot;,base64:&quot;base64-encoded string&quot;,base64url:&quot;base64url-encoded string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 number&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;},r={nan:&quot;NaN&quot;};return e=&gt;{switch(e.code){case&quot;invalid_type&quot;:{const t=r[e.expected]??e.expected,n=function(e){const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;nan&quot;:&quot;number&quot;;case&quot;object&quot;:{if(null===e)return&quot;null&quot;;if(Array.isArray(e))return&quot;array&quot;;const t=e;if(t&amp;&amp;Object.getPrototypeOf(t)!==Object.prototype&amp;&amp;&quot;constructor&quot;in t&amp;&amp;t.constructor)return t.constructor.name}}return t}(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case&quot;invalid_value&quot;:return 1===e.values.length?`Invalid input: expected ${Pn(e.values[0])}`:`Invalid option: expected one of ${ln(e.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const n=e.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,r=t(e.origin);return r?`Too big: expected ${e.origin??&quot;value&quot;} to have ${n}${e.maximum.toString()} ${r.unit??&quot;elements&quot;}`:`Too big: expected ${e.origin??&quot;value&quot;} to be ${n}${e.maximum.toString()}`}case&quot;too_small&quot;:{const n=e.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case&quot;invalid_format&quot;:{const t=e;return&quot;starts_with&quot;===t.format?`Invalid string: must start with &quot;${t.prefix}&quot;`:&quot;ends_with&quot;===t.format?`Invalid string: must end with &quot;${t.suffix}&quot;`:&quot;includes&quot;===t.format?`Invalid string: must include &quot;${t.includes}&quot;`:&quot;regex&quot;===t.format?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case&quot;not_multiple_of&quot;:return`Invalid number: must be a multiple of ${e.divisor}`;case&quot;unrecognized_keys&quot;:return`Unrecognized key${e.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${ln(e.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Invalid key in ${e.origin}`;case&quot;invalid_union&quot;:default:return&quot;Invalid input&quot;;case&quot;invalid_element&quot;:return`Invalid value in ${e.origin}`}}})()});class od extends Error{constructor(e,t){const n=e.issues,r=n.map(e=&gt;{const t=e.path.join(&quot;.&quot;);return`${t?`${t}: `:&quot;&quot;}${e.message}`}).join(&quot;\n&quot;);super(n.length&gt;0?`API response validation failed:\n${r}`:&quot;API response validation failed&quot;),this.zodError=e,this.response=t,this.name=&quot;ApiValidationError&quot;}getErrors(){return this.zodError.format()}getFirstError(){const e=this.zodError.issues;return e.length&gt;0&amp;&amp;e[0]?e[0].message:&quot;Validation error&quot;}}function sd(e){return e instanceof Ba?(console.error(&quot;API Validation Error:&quot;,e.format()),new od(e)):e instanceof Error?e:&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;&quot;message&quot;in e?new Error(e.message||&quot;Unknown error&quot;):new Error(&quot;Unknown error occurred&quot;)}const ad={redirects:{all:[&quot;redirects&quot;],lists:()=&gt;[...ad.redirects.all,&quot;list&quot;],list:e=&gt;[...ad.redirects.lists(),e],detail:e=&gt;[...ad.redirects.all,&quot;detail&quot;,e]},groups:{all:[&quot;groups&quot;],lists:()=&gt;[...ad.groups.all,&quot;list&quot;],list:e=&gt;[...ad.groups.lists(),e],detail:e=&gt;[...ad.groups.all,&quot;detail&quot;,e]},logs:{all:[&quot;logs&quot;],lists:()=&gt;[...ad.logs.all,&quot;list&quot;],list:e=&gt;[...ad.logs.lists(),e]},errors:{all:[&quot;errors&quot;],lists:()=&gt;[...ad.errors.all,&quot;list&quot;],list:e=&gt;[...ad.errors.lists(),e]},settings:{all:[&quot;settings&quot;],get:()=&gt;[...ad.settings.all,&quot;get&quot;],status:()=&gt;[...ad.settings.all,&quot;status&quot;]},pluginInfo:{all:[&quot;pluginInfo&quot;],get:()=&gt;[...ad.pluginInfo.all,&quot;get&quot;]},io:{all:[&quot;io&quot;],importers:()=&gt;[...ad.io.all,&quot;importers&quot;]},info:{all:[&quot;info&quot;],ip:e=&gt;[...ad.info.all,&quot;ip&quot;,e],agent:e=&gt;[...ad.info.all,&quot;agent&quot;,e],http:e=&gt;[...ad.info.all,&quot;http&quot;,e]}},ld={errors:[],notices:[],inProgress:0},cd=te()(se(e=&gt;({...ld,addError:t=&gt;e(e=&gt;({errors:[...e.errors,&quot;string&quot;==typeof t?{message:t,type:&quot;error&quot;}:t]})),addNotice:t=&gt;e(e=&gt;({notices:[...e.notices,&quot;string&quot;==typeof t?{message:t,type:&quot;notice&quot;}:t]})),clearErrors:()=&gt;e({errors:[]}),clearNotices:()=&gt;e({notices:[]}),incrementProgress:()=&gt;e(e=&gt;({inProgress:e.inProgress+1})),decrementProgress:()=&gt;e(e=&gt;({inProgress:Math.max(0,e.inProgress-1)})),reset:()=&gt;e(ld)}),{name:&quot;MessageStore&quot;}));function ud(e){return ct({queryKey:ad.io.importers(),queryFn:async()=&gt;{const e=await jt($t());return e?.importers||[]},...e})}function dd(e){const t=h(),{addNotice:n,addError:r}=cd();return pt({mutationFn:async e=&gt;await jt(Ut(e)),onSuccess:()=&gt;{n(&quot;Import completed&quot;),t.invalidateQueries({queryKey:ad.redirects.lists()})},onError:e=&gt;{r(e.message||&quot;Import failed&quot;)},...e})}function pd({setStep:e,step:t,options:n,setOptions:r}){const{log:i=!1,ip:o=!1,monitor:s=!1}=n?.settings??{},{data:a=[]}=ud(),l=0===a.length?t+2:t+1;function c(e){r({settings:{...n.settings,[e.target.name]:e.target.checked}})}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Basic Setup&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;These are some options you may want to enable now. They can be changed at any time.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;wizard-option&quot;,children:[(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;wizard-monitor&quot;,name:&quot;monitor&quot;,type:&quot;checkbox&quot;,checked:s,onChange:c}),(0,d.jsxs)(&quot;label&quot;,{htmlFor:&quot;wizard-monitor&quot;,children:[(0,m.__)(&quot;Monitor permalink changes in WordPress posts and pages&quot;,&quot;redirection&quot;),&quot;.&quot;]})]}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;If you change the permalink in a post or page then Redirection can automatically create a redirect for you.&quot;,&quot;redirection&quot;),&quot; &quot;,U((0,m.__)(&quot;{{link}}Read more about this.{{/link}}&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/options/#monitor&quot;})})]})]}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;wizard-option&quot;,children:[(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;wizard-log&quot;,name:&quot;log&quot;,type:&quot;checkbox&quot;,checked:i,onChange:function(e){r({settings:{...n.settings,[e.target.name]:e.target.checked,ip:!!e.target.checked&amp;&amp;o}})}}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;wizard-log&quot;,children:(0,m.__)(&quot;Keep a log of all redirects and 404 errors.&quot;,&quot;redirection&quot;)})]}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;Storing logs for redirects and 404s will allow you to see what is happening on your site. This will increase your database storage requirements.&quot;,&quot;redirection&quot;),&quot; &quot;,U((0,m.__)(&quot;{{link}}Read more about this.{{/link}}&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/logs/&quot;})})]})]}),(0,d.jsxs)(&quot;div&quot;,{className:i?&quot;wizard-option&quot;:&quot;wizard-option wizard-option_disabled&quot;,children:[(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;wizard-ip&quot;,name:&quot;ip&quot;,type:&quot;checkbox&quot;,disabled:!i,checked:o,onChange:c}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;wizard-ip&quot;,children:(0,m.__)(&quot;Store IP information for redirects and 404 errors.&quot;,&quot;redirection&quot;)})]}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;Storing the IP address allows you to perform additional log actions. Note that you will need to adhere to local laws regarding the collection of data (for example GDPR).&quot;,&quot;redirection&quot;),&quot; &quot;,U((0,m.__)(&quot;{{link}}Read more about this.{{/link}}&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/privacy-gdpr/&quot;})})]})]}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;wizard-buttons&quot;,children:[(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary button&quot;,onClick:()=&gt;e(l),children:(0,m.__)(&quot;Continue&quot;,&quot;redirection&quot;)}),&quot; &quot;,(0,d.jsx)(&quot;button&quot;,{className:&quot;button&quot;,onClick:()=&gt;e(t-1),children:(0,m.__)(&quot;Go back&quot;,&quot;redirection&quot;)})]})]})}const hd=function({error:e}){const{request:t}=e,n=function(e){return!!(e&amp;&amp;e.raw&amp;&amp;e.raw.length&gt;500)}(t),[r,i]=(0,l.useState)(n);return t&amp;&amp;t.raw?(0,d.jsxs)(d.Fragment,{children:[n&amp;&amp;r&amp;&amp;(0,d.jsx)(&quot;button&quot;,{className:&quot;api-result-hide&quot;,type:&quot;button&quot;,onClick:e=&gt;{e.preventDefault(),i(!1)},children:(0,m.__)(&quot;Show Full&quot;,&quot;redirection&quot;)}),n&amp;&amp;!r&amp;&amp;(0,d.jsx)(&quot;button&quot;,{className:&quot;api-result-hide&quot;,type:&quot;button&quot;,onClick:e=&gt;{e.preventDefault(),i(!0)},children:(0,m.__)(&quot;Hide&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;pre&quot;,{children:r?t.raw.substring(0,500)+&quot; ...&quot;:t.raw})]}):null},fd=({error:e,methods:t})=&gt;{const n=(e=&gt;e.code?e.code:e.name?e.name:null)(e);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;api-result-log_details&quot;,children:[(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-no&quot;})}),(0,d.jsxs)(&quot;div&quot;,{children:[(0,d.jsxs)(&quot;p&quot;,{children:[t.map((t,n)=&gt;(0,d.jsxs)(&quot;span&quot;,{className:&quot;api-result-method_fail&quot;,children:[t,&quot; &quot;,e.data&amp;&amp;e.data.status]},n)),n&amp;&amp;(0,d.jsxs)(&quot;strong&quot;,{children:[n,&quot;: &quot;]}),e.message]}),(0,d.jsx)(B,{error:e,links:K(),locale:&quot;redirection&quot;}),(0,d.jsx)(hd,{error:e})]})]},t.join(&quot;&quot;))},md=({methods:e})=&gt;(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-yes&quot;}),e.map((e,t)=&gt;(0,d.jsx)(&quot;span&quot;,{className:&quot;api-result-method_pass&quot;,children:e},t)),(0,m.__)(&quot;Working!&quot;,&quot;redirection&quot;)]},e.join(&quot;&quot;)),gd=e=&gt;e.code?e.code:0,yd=({result:e})=&gt;{const t=[],{GET:n,POST:r}=e;return n.status===r.status&amp;&amp;gd(n)===gd(r)?(&quot;fail&quot;===n.status&amp;&amp;n.error?t.push((0,d.jsx)(fd,{error:n.error,methods:[&quot;GET&quot;,&quot;POST&quot;]},&quot;get-post&quot;)):t.push((0,d.jsx)(md,{methods:[&quot;GET&quot;,&quot;POST&quot;]},&quot;get-post&quot;)),t):(&quot;fail&quot;===n.status&amp;&amp;n.error?t.push((0,d.jsx)(fd,{error:n.error,methods:[&quot;GET&quot;]},&quot;get&quot;)):t.push((0,d.jsx)(md,{methods:[&quot;GET&quot;]},&quot;get&quot;)),&quot;fail&quot;===r.status&amp;&amp;r.error?t.push((0,d.jsx)(fd,{error:r.error,methods:[&quot;POST&quot;]},&quot;post&quot;)):t.push((0,d.jsx)(md,{methods:[&quot;POST&quot;]},&quot;post&quot;)),t)},vd=({item:e,result:t,routes:n,isCurrent:r,allowChange:i})=&gt;(e=&gt;0===Object.keys(e).length||&quot;loading&quot;===e.GET.status||&quot;loading&quot;===e.POST.status)(t)?null:(0,d.jsxs)(&quot;div&quot;,{className:&quot;api-result-log&quot;,children:[(0,d.jsxs)(&quot;form&quot;,{className:&quot;api-result-select&quot;,action:window.Redirectioni10n.pluginRoot+&quot;&amp;sub=support&quot;,method:&quot;POST&quot;,children:[i&amp;&amp;!r&amp;&amp;(0,d.jsx)(&quot;input&quot;,{type:&quot;submit&quot;,className:&quot;button button-secondary&quot;,value:(0,m.__)(&quot;Switch to this API&quot;,&quot;redirection&quot;)}),i&amp;&amp;r&amp;&amp;(0,d.jsx)(&quot;span&quot;,{children:(0,m.__)(&quot;Current API&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{type:&quot;hidden&quot;,name:&quot;rest_api&quot;,value:e.value}),(0,d.jsx)(&quot;input&quot;,{type:&quot;hidden&quot;,name:&quot;_wpnonce&quot;,value:jt.nonceMiddleware.nonce}),(0,d.jsx)(&quot;input&quot;,{type:&quot;hidden&quot;,name:&quot;action&quot;,value:&quot;rest_api&quot;})]}),(0,d.jsx)(&quot;h4&quot;,{children:e.text}),(0,d.jsxs)(&quot;p&quot;,{children:[&quot;URL:&quot;,&quot; &quot;,(0,d.jsx)(&quot;code&quot;,{children:(0,d.jsx)(z,{url:n[e.value]||&quot;&quot;,children:n[e.value]||&quot;&quot;})})]}),(0,d.jsx)(yd,{result:t})]}),_d=({size:e=&quot;&quot;})=&gt;{const t=y(&quot;wpl-spinner__container&quot;,e&amp;&amp;&quot; spinner-&quot;+e);return(0,d.jsx)(&quot;div&quot;,{className:t,children:(0,d.jsx)(&quot;span&quot;,{className:&quot;wpl-spinner__item&quot;})})},bd=e=&gt;{const{title:t,url:n=!1,children:r}=e;return(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsxs)(&quot;th&quot;,{children:[!n&amp;&amp;t,n&amp;&amp;(0,d.jsx)(&quot;a&quot;,{href:n,target:&quot;_blank&quot;,rel:&quot;noreferrer&quot;,children:t})]}),(0,d.jsx)(&quot;td&quot;,{children:r})]})},xd=e=&gt;(0,d.jsx)(&quot;table&quot;,{className:&quot;form-table&quot;,children:(0,d.jsx)(&quot;tbody&quot;,{children:e.children})}),wd=({value:e,label:t,disabled:n=!1})=&gt;Array.isArray(e)?(0,d.jsx)(&quot;optgroup&quot;,{label:String(t),disabled:n,children:e.map((e,t)=&gt;(0,d.jsx)(wd,{label:e.label,value:e.value,disabled:e.disabled||!1},t))}):(0,d.jsx)(&quot;option&quot;,{value:e,disabled:n,children:t}),jd=wd,Sd=({items:e,value:t,name:n,onChange:r,disabled:i=!1,className:o})=&gt;(0,d.jsx)(&quot;select&quot;,{name:n,value:t,onChange:r,disabled:i,className:o,children:e.map((e,t)=&gt;(0,d.jsx)(jd,{value:e.value,label:e.label,disabled:e.disabled||!1},t))}),kd=()=&gt;[{value:0,label:(0,m.__)(&quot;Default REST API&quot;,&quot;redirection&quot;)},{value:1,label:(0,m.__)(&quot;Raw REST API&quot;,&quot;redirection&quot;)},{value:3,label:(0,m.__)(&quot;Relative REST API&quot;,&quot;redirection&quot;)}],Cd=function(e){const{settings:t,onChange:n,getLink:r,installed:i,warning:o}=e,{location:s,token:a,rest_api:l,plugin_update:c}=t;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;tr&quot;,{className:&quot;redirect-option__row&quot;,children:(0,d.jsx)(&quot;th&quot;,{colSpan:2,children:(0,d.jsx)(&quot;h2&quot;,{className:&quot;title&quot;,children:(0,m.__)(&quot;Advanced&quot;,&quot;redirection&quot;)})})}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;RSS Token&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;options&quot;,&quot;rsstoken&quot;),children:[(0,d.jsx)(&quot;input&quot;,{className:&quot;regular-text&quot;,type:&quot;text&quot;,value:a,name:&quot;token&quot;,onChange:n}),(0,d.jsx)(&quot;br&quot;,{}),(0,d.jsx)(&quot;span&quot;,{className:&quot;sub&quot;,children:(0,m.__)(&quot;A unique token allowing feed readers access to Redirection log RSS (leave blank to auto-generate)&quot;,&quot;redirection&quot;)})]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;Apache .htaccess&quot;,&quot;redirection&quot;),url:r(&quot;options&quot;,&quot;apache&quot;),children:[(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;label&quot;,{className:&quot;screen-reader-text&quot;,htmlFor:&quot;apache-htaccess-location&quot;,children:(0,m.__)(&quot;Apache .htaccess location&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{id:&quot;apache-htaccess-location&quot;,type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;location&quot;,value:s,onChange:n})]}),(0,d.jsx)(&quot;p&quot;,{className:&quot;sub&quot;,children:U((0,m.sprintf)(
// translators: %(installed)s is the path where WordPress is installed
// translators: %(installed)s is the path where WordPress is installed
(0,m.__)(&quot;Redirects added to an Apache group can be saved to an {{code}}.htaccess{{/code}} file by adding the full path here. For reference, your WordPress is installed to {{code}}%(installed)s{{/code}}.&quot;,&quot;redirection&quot;),{installed:i}),{code:(0,d.jsx)(&quot;code&quot;,{})})}),o&amp;&amp;(0,d.jsxs)(&quot;p&quot;,{className:&quot;inline-notice&quot;,children:[(0,m.__)(&quot;Unable to save .htaccess file&quot;,&quot;redirection&quot;),&quot; &quot;,(0,d.jsx)(&quot;code&quot;,{children:o})]})]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;REST API&quot;,&quot;redirection&quot;),url:r(&quot;options&quot;,&quot;restapi&quot;),children:[(0,d.jsx)(Sd,{items:kd(),name:&quot;rest_api&quot;,value:String(l),onChange:n}),&quot; &quot;,&quot; &quot;,(0,d.jsx)(&quot;span&quot;,{className:&quot;sub&quot;,children:(0,m.__)(&quot;How Redirection uses the REST API - don&#039;t change unless necessary&quot;,&quot;redirection&quot;)})]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;Data Upgrade&quot;,&quot;redirection&quot;),children:[(0,d.jsx)(Sd,{items:[{value:&quot;prompt&quot;,
// translators: Upgrade manually when prompted
label:(0,m.__)(&quot;Upgrade manually when prompted&quot;,&quot;redirection&quot;)},{value:&quot;admin&quot;,
// translators: Automatically upgrade on admin pages
label:(0,m.__)(&quot;Automatically upgrade on admin pages&quot;,&quot;redirection&quot;)}],name:&quot;plugin_update&quot;,value:c,onChange:n}),&quot; &quot;,&quot; &quot;,(0,d.jsx)(&quot;span&quot;,{className:&quot;sub&quot;,children:(0,m.__)(&quot;Decide how Redirection updates itself, if needed.&quot;,&quot;redirection&quot;)})]})]})},Td=Dc({support:dc().optional(),token:ol().optional(),ip_logging:rc().int().optional(),expire_redirect:rc().int().optional(),expire_404:rc().int().optional(),auto_target:ol().optional(),location:ol().optional(),monitor_post:rc().int().optional(),monitor_types:Ic(ol()).optional(),associated_redirect:ol().optional(),redirect_cache:rc().int().optional(),rest_api:rc().int().optional(),https:dc().optional(),headers:Ic(Cc()).optional(),flag_regex:dc().optional(),flag_query:ol().optional(),flag_trailing:dc().optional(),flag_case:dc().optional(),postTypes:Jc(ol(),ol()).optional(),installed:ol().optional(),warning:ol().optional(),plugin_update:ol().optional()}).passthrough(),Ed=Dc({status:ou([&quot;ok&quot;,&quot;need-update&quot;,&quot;error&quot;]),version:ol().optional(),required:ol().optional(),reason:ol().optional()});function Pd(e){const{setValues:t,setLoadStatus:n,setError:r}=pe(),{addError:i}=cd();return ct({queryKey:ad.settings.get(),queryFn:async()=&gt;{n(&quot;loading&quot;),r(!1);try{const e=await jt(Et()),r=e?.settings||e,o={...r,postTypes:e?.post_types||r.postTypes,installed:e?.installed||r.installed,warning:e?.warning||r.warning};try{const e=Td.parse(o);return t(e),n(&quot;success&quot;),e}catch(e){if(e instanceof Ba)return t(o),n(&quot;success&quot;),i(&quot;Settings validation failed, using unvalidated data.&quot;),o;throw e}}catch(e){throw n(&quot;error&quot;),r(e.message||&quot;Failed to load settings&quot;),i(e.message||&quot;Failed to load settings&quot;),sd(e)}},...e})}function Od(e){const t=h(),{updateValues:n,setSaveStatus:r}=pe(),{incrementProgress:i,decrementProgress:o,addNotice:s,addError:a}=cd();return pt({mutationFn:async e=&gt;{i(),r(!0);try{const t=await jt(Pt(e)),n=t?.settings||t;return Td.parse(n)}catch(e){throw o(),r(!1),sd(e)}},onSuccess:e=&gt;{o(),r(!1),n(e),s(&quot;Settings saved&quot;),t.invalidateQueries({queryKey:ad.settings.all})},onError:e=&gt;{a(e.message||&quot;Failed to save settings&quot;)},...e})}function Rd(e){const{setDatabase:t}=pe(),{incrementProgress:n,decrementProgress:r,addError:i}=cd();return pt({mutationFn:async e=&gt;{n(),t({inProgress:!0});try{return await jt(Ht(&quot;skip&quot;===e||&quot;stop&quot;===e?{upgrade:e}:void 0))}catch(e){throw r(),t({inProgress:!1,result:&quot;failed&quot;}),sd(e)}},onSuccess:e=&gt;{r(),t({inProgress:!1,...e})},onError:e=&gt;{i(e.message||&quot;Database upgrade failed&quot;)},...e})}function Nd(e){const t=h(),{setShowDatabase:n}=pe(),{addError:r}=cd();return pt({mutationFn:async()=&gt;{try{return await jt(Wt())}catch(e){throw sd(e)}},onSuccess:()=&gt;{n(!1),t.invalidateQueries({queryKey:ad.settings.all}),window.location.href=window.Redirectioni10n.pluginRoot},onError:e=&gt;{r(e.message||&quot;Failed to finish setup&quot;)},...e})}function Ad(e){const t=h(),{setDatabase:n}=pe(),{onSuccess:r,...i}=e||{};return pt({mutationFn:async({reason:e,current:t})=&gt;await jt(Gt(e,t)),onSuccess:(...e)=&gt;{const[i]=e;n(i.database||{}),t.invalidateQueries({queryKey:ad.settings.all}),r?.(...e)},...i})}Dc({version:ol(),database:Ed,groups:Ic(Cc()).optional(),postTypes:Ic(ol()).optional(),canDelete:dc().optional(),autoTarget:ol().optional()});const Id=&quot;ok&quot;,zd=&quot;fail&quot;,Fd=&quot;loading&quot;,Dd=&quot;warning-current&quot;,Ld=&quot;warning-not-selected&quot;;function Md(e){return e===Id?(0,m.__)(&quot;Good&quot;,&quot;redirection&quot;):e===Ld||e===Dd?(0,m.__)(&quot;Working but some issues&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Unavailable&quot;,&quot;redirection&quot;)}function $d({allowChange:e=!0}){const[t,n]=u().useState(!1),[r,i]=u().useState(!1),o=pe(e=&gt;e.apiTest),s=pe(e=&gt;e.api),{mutate:a}=function(){const{setApiTest:e}=pe();return pt({mutationFn:async t=&gt;{const n={};for(const e of t){const{id:t}=e;n[t]={GET:{status:&quot;loading&quot;},POST:{status:&quot;loading&quot;}}}e(n);for(const r of t){const{id:t,url:i}=r,o=i.endsWith(&quot;/&quot;)?`${i}redirection/v1/plugin/test`:`${i}/redirection/v1/plugin/test`;try{await jt({url:o,method:&quot;GET&quot;}),n[t].GET={status:&quot;ok&quot;}}catch(e){n[t].GET={status:&quot;fail&quot;,error:e,code:e?.data?.status||e?.code}}e(n);try{await jt({url:o,method:&quot;POST&quot;,data:{}}),n[t].POST={status:&quot;ok&quot;}}catch(e){n[t].POST={status:&quot;fail&quot;,error:e,code:e?.data?.status||e?.code}}e(n)}return n}})}(),{routes:c,current:p}=s;(0,l.useEffect)(()=&gt;{const e=Object.keys(c).map(e=&gt;({id:e,url:c[e]}));e.length&gt;0&amp;&amp;!r&amp;&amp;(a(e.filter(e=&gt;!!e&amp;&amp;!!e.url)),i(!0))},[c,a,r]);const h=()=&gt;{n(!0)},f=e=&gt;t||e===zd,g=kd().map(e=&gt;({text:e.label,value:String(e.value)})),v=function(e,t){if(0===Object.keys(e).length)return 0;const n=2*t.length;let r=0;for(let t=0;t&lt;Object.keys(e).length;t++){const n=Object.keys(e)[t];n&amp;&amp;e[n]&amp;&amp;e[n].GET&amp;&amp;e[n].GET.status!==Fd&amp;&amp;r++,n&amp;&amp;e[n]&amp;&amp;e[n].POST&amp;&amp;e[n].POST.status!==Fd&amp;&amp;r++}return Math.round(r/n*100)}(o,g),_=function(e,t,n){const r=Object.keys(e).filter(t=&gt;{return!(!(n=e[t])||!n.GET||!n.POST||n.GET.status!==zd&amp;&amp;n.POST.status!==zd);var n}).length;return 0===r?&quot;ok&quot;:r&lt;t.length?(i=e[n])&amp;&amp;i.GET&amp;&amp;i.POST&amp;&amp;i.GET.status===Id&amp;&amp;i.POST.status===Id?Dd:Ld:&quot;fail&quot;;var i}(o,g,p),b=v&gt;=100&amp;&amp;f(_)||t,x=y({&quot;api-result-status&quot;:!0,&quot;api-result-status_good&quot;:_===Id&amp;&amp;v&gt;=100,&quot;api-result-status_problem&quot;:_===Dd&amp;&amp;Ld&amp;&amp;v&gt;=100,&quot;api-result-status_failed&quot;:_===zd&amp;&amp;v&gt;=100});return(0,d.jsxs)(&quot;div&quot;,{className:&quot;api-result-wrapper&quot;,children:[(0,d.jsxs)(&quot;div&quot;,{className:&quot;api-result-header&quot;,children:[(0,d.jsx)(&quot;strong&quot;,{children:&quot;REST API:&quot;}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;api-result-progress&quot;,children:[(0,d.jsxs)(&quot;span&quot;,{className:x,children:[v&lt;100&amp;&amp;(0,m.sprintf)(
// translators: %s is the percentage complete
// translators: %s is the percentage complete
(0,m.__)(&quot;Testing - %s%%&quot;,&quot;redirection&quot;),String(v)),v&gt;=100&amp;&amp;Md(_)]}),v&lt;100&amp;&amp;(0,d.jsx)(_d,{})]}),v&gt;=100&amp;&amp;_!==Id&amp;&amp;(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-secondary api-result-retry&quot;,onClick:e=&gt;{e.preventDefault(),n(!1),i(!1);const t=Object.keys(c).map(e=&gt;({id:e,url:c[e]}));a(t.filter(e=&gt;!!e&amp;&amp;!!e.url))},children:(0,m.__)(&quot;Check Again&quot;,&quot;redirection&quot;)})]}),v&gt;=100&amp;&amp;_!==Id&amp;&amp;(e=&gt;{const t=f(e);let n=(0,m.__)(&quot;There are some problems connecting to your REST API. It is not necessary to fix these problems and the plugin is able to work.&quot;,&quot;redirection&quot;);return e===zd&amp;&amp;(n=(0,m.__)(&quot;Your REST API is not working and the plugin will not be able to continue until this is fixed.&quot;,&quot;redirection&quot;)),(0,d.jsxs)(&quot;div&quot;,{className:&quot;api-result-log&quot;,children:[(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;strong&quot;,{children:(0,m.__)(&quot;Summary&quot;,&quot;redirection&quot;)}),&quot;: &quot;,n]}),!t&amp;&amp;(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary&quot;,onClick:h,children:(0,m.__)(&quot;Show Problems&quot;,&quot;redirection&quot;)})})]})})(_),b&amp;&amp;g.map((t,n)=&gt;{return(0,d.jsx)(vd,{item:t,result:(r=o,i=t.value,r&amp;&amp;r[i]?r[i]:{}),routes:c,isCurrent:p===t.value,allowChange:e||!1},n);var r,i})]})}function Ud(e){const t=Object.keys(e);for(let n=0;n&lt;t.length;n++){const r=t[n];if(r&amp;&amp;e[r]&amp;&amp;&quot;ok&quot;===e[r].GET.status&amp;&amp;&quot;ok&quot;===e[r].POST.status)return r}return 0}function Bd({setStep:e,step:t}){let n=null,r=null;try{n=new URL(window.Redirectioni10n.api.WP_API_root),r=new URL(window.Redirectioni10n.pluginBaseUrl)}catch(e){}const i=n&amp;&amp;r&amp;&amp;(n.protocol!==r.protocol||n.host!==r.host),o=pe(e=&gt;e.apiTest);return(0,l.useEffect)(()=&gt;()=&gt;{const e=Ud(o);window.Redirectioni10n.api.routes[e]&amp;&amp;jt.replaceRootURLMiddleware(window.Redirectioni10n.api.routes[e])},[o]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;REST API&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;Redirection uses the {{link}}WordPress REST API{{/link}} to communicate with WordPress. This is enabled and working by default. Sometimes the REST API is blocked by:&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://developer.wordpress.org/rest-api/&quot;})})}),(0,d.jsxs)(&quot;ul&quot;,{children:[(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;A security plugin (e.g Wordfence)&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;A server firewall or other server configuration (e.g OVH)&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Caching software (e.g Cloudflare)&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Some other plugin that blocks the REST API&quot;,&quot;redirection&quot;)})]}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;If you do experience a problem then please consult your plugin documentation, or try contacting your host support. This is generally {{link}}not a problem caused by Redirection{{/link}}.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/problems/rest-api/&quot;})})}),i&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;wpl-error&quot;,children:[(0,m.__)(&quot;You have different URLs configured on your WordPress Settings &gt; General page, which is usually an indication of a misconfiguration, and it can cause problems with the REST API. Please review your settings.&quot;,&quot;redirection&quot;),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;code&quot;,{children:n?n.protocol+&quot;//&quot;+n.host:&quot;unknown url&quot;})}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;code&quot;,{children:r?r.protocol+&quot;//&quot;+r.host:&quot;unknown url&quot;})})]}),(0,d.jsx)($d,{allowChange:!1}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;You will need at least one working REST API to continue.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;div&quot;,{className:&quot;wizard-buttons&quot;,children:(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary button&quot;,onClick:()=&gt;e(t+1),children:(0,m.__)(&quot;Finish Setup&quot;,&quot;redirection&quot;)})})]})}function Zd(e){return Zd=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;e.constructor===Symbol&amp;&amp;e!==Symbol.prototype?&quot;symbol&quot;:typeof e},Zd(e)}function qd(e,t,n){return(t=function(e){var t=function(e){if(&quot;object&quot;!=Zd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,&quot;string&quot;);if(&quot;object&quot;!=Zd(n))return n;throw new TypeError(&quot;@@toPrimitive must return a primitive value.&quot;)}return String(e)}(e);return&quot;symbol&quot;==Zd(t)?t:t+&quot;&quot;}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&amp;&amp;(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wd(e){for(var t=1;t&lt;arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hd(Object(n),!0).forEach(function(t){qd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Gd=n(500),Vd=n.n(Gd),Qd={percent:0,prefixCls:&quot;rc-progress&quot;,strokeColor:&quot;#2db7f5&quot;,strokeLinecap:&quot;round&quot;,strokeWidth:1,trailColor:&quot;#D9D9D9&quot;,trailWidth:1,gapPosition:&quot;bottom&quot;},Kd=[&quot;className&quot;,&quot;percent&quot;,&quot;prefixCls&quot;,&quot;strokeColor&quot;,&quot;strokeLinecap&quot;,&quot;strokeWidth&quot;,&quot;style&quot;,&quot;trailColor&quot;,&quot;trailWidth&quot;,&quot;transition&quot;];const Jd=function(e){var t=Wd(Wd({},Qd),e),n=t.className,r=t.percent,i=t.prefixCls,o=t.strokeColor,s=t.strokeLinecap,a=t.strokeWidth,c=t.style,u=t.trailColor,d=t.trailWidth,p=t.transition,h=function(e,t){if(null==e)return{};var n,r,i=_(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r&lt;o.length;r++)n=o[r],-1===t.indexOf(n)&amp;&amp;{}.propertyIsEnumerable.call(e,n)&amp;&amp;(i[n]=e[n])}return i}(t,Kd);delete h.gapPosition;var f,m,g=Array.isArray(r)?r:[r],y=Array.isArray(o)?o:[o],b=(f=(0,l.useRef)([]),m=(0,l.useRef)(null),(0,l.useEffect)(function(){var e=Date.now(),t=!1;f.current.forEach(function(n){if(n){t=!0;var r=n.style;r.transitionDuration=&quot;.3s, .3s, .3s, .06s&quot;,m.current&amp;&amp;e-m.current&lt;100&amp;&amp;(r.transitionDuration=&quot;0s, 0s&quot;)}}),t&amp;&amp;(m.current=Date.now())}),f.current),x=a/2,w=100-a/2,j=&quot;M &quot;.concat(&quot;round&quot;===s?x:0,&quot;,&quot;).concat(x,&quot;\n         L &quot;).concat(&quot;round&quot;===s?w:100,&quot;,&quot;).concat(x),S=&quot;0 0 100 &quot;.concat(a),k=0;return l.createElement(&quot;svg&quot;,v({className:Vd()(&quot;&quot;.concat(i,&quot;-line&quot;),n),viewBox:S,preserveAspectRatio:&quot;none&quot;,style:c},h),l.createElement(&quot;path&quot;,{className:&quot;&quot;.concat(i,&quot;-line-trail&quot;),d:j,strokeLinecap:s,stroke:u,strokeWidth:d||a,fillOpacity:&quot;0&quot;}),g.map(function(e,t){var n=1;switch(s){case&quot;round&quot;:n=1-a/100;break;case&quot;square&quot;:n=1-a/2/100;break;default:n=1}var r={strokeDasharray:&quot;&quot;.concat(e*n,&quot;px, 100px&quot;),strokeDashoffset:&quot;-&quot;.concat(k,&quot;px&quot;),transition:p||&quot;stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear&quot;},o=y[t]||y[y.length-1];return k+=e,l.createElement(&quot;path&quot;,{key:t,className:&quot;&quot;.concat(i,&quot;-line-path&quot;),d:j,strokeLinecap:s,stroke:o,strokeWidth:a,fillOpacity:&quot;0&quot;,ref:function(e){b[t]=e},style:r})}))};&quot;undefined&quot;==typeof window||!window.document||window.document.createElement;const Yd=function({message:e,prevent:t=!0}){const n=(0,l.useRef)();return(0,l.useEffect)(()=&gt;{n.current=t=&gt;(t.returnValue=e,t.returnValue)},[e]),(0,l.useEffect)(()=&gt;{if(!t||!n.current)return;const e=e=&gt;{if(n.current)return n.current(e)};return window.addEventListener(&quot;beforeunload&quot;,e),()=&gt;{window.removeEventListener(&quot;beforeunload&quot;,e)}},[t]),null};function Xd({onRetry:e}){return(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-database_error wpl-error&quot;,children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Database problem&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-primary&quot;,onClick:e,children:(0,m.__)(&quot;Try again&quot;,&quot;redirection&quot;)})})]})}function ep({onRetry:e,error:t}){const{current:n,next:r,debug:i,reason:o}=pe(e=&gt;e.database),{mutate:s}=Rd(),a=function(e,t,n,r){return[e?&quot;Message: &quot;+e:null,&quot;Installed: &quot;+t,&quot;Next: &quot;+n,r.length&gt;0?&quot;Debug: &quot;+r.join(&quot;\n&quot;):null].filter(e=&gt;e).join(&quot;\n&quot;)}(o,n,r,i),l=&quot;mailto:john@redirection.me?subject=Redirection%20Database&amp;body=&quot;+encodeURIComponent(&quot;Redirection: &quot;+window.Redirectioni10n.versions);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-database_error wpl-error&quot;,children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Database problem&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:t}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-primary&quot;,onClick:e,children:(0,m.__)(&quot;Try again&quot;,&quot;redirection&quot;)}),&quot; &quot;,&quot;-&quot;!==n&amp;&amp;(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-secondary&quot;,onClick:function(){s(&quot;skip&quot;)},children:(0,m.__)(&quot;Skip this stage&quot;,&quot;redirection&quot;)}),&quot; &quot;,&quot;-&quot;!==n&amp;&amp;(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-secondary&quot;,onClick:function(){s(&quot;stop&quot;)},children:(0,m.__)(&quot;Stop upgrade&quot;,&quot;redirection&quot;)})]}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;If you want to {{support}}ask for support{{/support}} please include these details:&quot;,&quot;redirection&quot;),{support:(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:function(){window.location.href=l}})})}),(0,d.jsx)(N,{readOnly:!0,value:a,rows:15})]})}function tp(e){return&quot;need-update&quot;===e?(0,m.__)(&quot;Upgrading Redirection&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Setting up Redirection&quot;,&quot;redirection&quot;)}function np(e){return&quot;finish-install&quot;===e||&quot;finish-update&quot;===e}function rp({children:e}){const t=pe(e=&gt;e.database),{status:n,reason:r,result:i,complete:o}=t,s=&quot;ok&quot;===i&amp;&amp;!np(n),{mutate:a}=Rd(),c=(0,l.useCallback)(()=&gt;{a(&quot;retry&quot;)},[a]),u=(0,l.useCallback)(()=&gt;{a(&quot;&quot;)},[a]);return(0,l.useEffect)(()=&gt;{(function(e,t){return&quot;error&quot;!==t&amp;&amp;&quot;failed&quot;!==t&amp;&amp;(&quot;need-install&quot;===e||&quot;need-update&quot;===e)})(n,i)&amp;&amp;setTimeout(()=&gt;{u()},1e3)},[o,n,i,u]),(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-database&quot;,children:[(0,d.jsx)(Yd,{message:(0,m.__)(&quot;Leaving before the process has completed may cause problems.&quot;,&quot;redirection&quot;),prevent:&quot;error&quot;!==i&amp;&amp;&quot;failed&quot;!==i&amp;&amp;!np(n)}),(0,d.jsx)(&quot;h1&quot;,{children:tp(n)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Please remain on this page until complete.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-database_progress&quot;,children:[(0,d.jsx)(&quot;h3&quot;,{children:
// translators: %(complete)d is percentage complete as a number
// translators: %(complete)d is percentage complete as a number
(0,m.sprintf)((0,m.__)(&quot;Progress: %(complete)d%%&quot;,&quot;redirection&quot;),{complete:o})}),(0,d.jsx)(Jd,{percent:o,strokeWidth:4,trailWidth:4,strokeLinecap:&quot;square&quot;}),r&amp;&amp;&quot;ok&quot;===i&amp;&amp;(0,d.jsx)(&quot;p&quot;,{children:r}),s&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;redirection-database_spinner&quot;,children:(0,d.jsx)(_d,{})}),&quot;error&quot;===i&amp;&amp;(0,d.jsx)(ep,{error:r||&quot;&quot;,onRetry:c}),&quot;failed&quot;===i&amp;&amp;(0,d.jsx)(Xd,{error:r||&quot;&quot;,onRetry:c}),np(n)&amp;&amp;e]})]})}function ip({onCancel:e,onComplete:t}){const n=pe(e=&gt;e.loadStatus),{mutate:r}=Ad({onSuccess:()=&gt;{t&amp;&amp;t()}});return(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-database&quot;,children:[(0,d.jsx)(&quot;h1&quot;,{children:(0,m.__)(&quot;Manual Install&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;If your site needs special database permissions, or you would rather do it yourself, you can manually run the following SQL.&quot;,&quot;redirection&quot;),&quot; &quot;,(0,m.__)(&#039;Click &quot;Finished! 🎉&quot; when finished.&#039;,&quot;redirection&quot;)]}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(N,{readOnly:!0,cols:120,value:Redirectioni10n.database.manual.join(&quot;;\n\n&quot;)+&quot;;&quot;,spellCheck:!1})}),&quot;error&quot;===n&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-database_error wpl-error&quot;,children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Database problem&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;The Redirection database does not appear to exist. Have you run the above SQL?&quot;,&quot;redirection&quot;)})]}),(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-primary&quot;,onClick:function(){r({reason:&quot;database&quot;,current:Redirectioni10n.database.next})},type:&quot;button&quot;,children:(0,m.__)(&quot;Finished! 🎉&quot;,&quot;redirection&quot;)}),&quot; &quot;,(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-secondary&quot;,onClick:e,type:&quot;button&quot;,children:(0,m.__)(&quot;Go back&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;If you do not complete the manual install you will be returned here.&quot;,&quot;redirection&quot;)})]})}function op({step:e,setStep:t,options:n,setOptions:r}){const{manual:i}=n;return i?(0,d.jsx)(ip,{onCancel:function(){t(0),r({manual:!1})},onComplete:function(){t(e+1)}}):(0,d.jsx)(rp,{children:(0,d.jsx)(&quot;div&quot;,{className:&quot;wizard-buttons&quot;,children:(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary button&quot;,onClick:()=&gt;t(e+1),children:(0,m.__)(&quot;Continue&quot;,&quot;redirection&quot;)})})})}const sp=&quot;wordpress-old-slugs&quot;;function ap({setOptions:e,options:t,setStep:n,step:r}){const{importers:i=[sp]}=t,{data:o=[]}=ud(),s=o.find(e=&gt;e.id===sp),a=o.filter(e=&gt;e.id!==sp);function l(t){const n=i.filter(e=&gt;e!==t.target.name);t.target.checked?e({importers:n.concat(t.target.name)}):e({importers:n})}return(0,d.jsxs)(&quot;div&quot;,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Import Existing Redirects&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Importing existing redirects from WordPress or other plugins is a good way to get started with Redirection. Check each set of redirects you wish to import.&quot;,&quot;redirection&quot;)}),s&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;WordPress automatically creates redirects when you change a post URL. Importing these into Redirection will allow you to manage and monitor them.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;ul&quot;,{children:(0,d.jsxs)(&quot;li&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;wizard-importer-wordpress-old-slugs&quot;,type:&quot;checkbox&quot;,name:sp,onChange:l,checked:i.includes(sp)}),(0,d.jsxs)(&quot;label&quot;,{htmlFor:&quot;wizard-importer-wordpress-old-slugs&quot;,children:[s.name,&quot; (&quot;,s.total,&quot;)&quot;]})]})})]}),a.length&gt;0&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;The following plugins have been detected.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;ul&quot;,{children:a.map(e=&gt;{const t=`wizard-importer-${e.id}`;return(0,d.jsxs)(&quot;li&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:t,type:&quot;checkbox&quot;,name:e.id,onChange:l,checked:i.includes(e.id)}),(0,d.jsxs)(&quot;label&quot;,{htmlFor:t,children:[e.name,&quot; (&quot;,e.total,&quot;)&quot;]})]},e.id)})})]}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;wizard-buttons&quot;,children:[(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary button&quot;,onClick:()=&gt;n(r+1),children:(0,m.__)(&quot;Continue&quot;,&quot;redirection&quot;)}),&quot; &quot;,(0,d.jsx)(&quot;button&quot;,{className:&quot;button&quot;,onClick:()=&gt;n(r-1),children:(0,m.__)(&quot;Go back&quot;,&quot;redirection&quot;)})]})]})}function lp({step:e,setStep:t,options:n}){const r=dd(),{mutate:i}=r;let o=&quot;idle&quot;;r.isPending?o=&quot;loading&quot;:r.isSuccess?o=&quot;success&quot;:r.isError&amp;&amp;(o=&quot;error&quot;);const s=(0,l.useCallback)(()=&gt;{i(n.importers)},[i,n.importers]);return(0,l.useEffect)(()=&gt;{s()},[s]),(0,d.jsxs)(&quot;div&quot;,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Import Existing Redirects&quot;,&quot;redirection&quot;)}),&quot;loading&quot;===o&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Please wait, importing.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;div&quot;,{className:&quot;loader-wrapper loader-textarea&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-placeholder__loading&quot;})})]}),(&quot;success&quot;===o||&quot;error&quot;===o)&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:&quot;success&quot;===o?(0,m.__)(&quot;Import finished.&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Importing failed.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;wizard-buttons&quot;,children:[&quot;error&quot;===o&amp;&amp;(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary button&quot;,onClick:s,children:(0,m.__)(&quot;Retry&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary button&quot;,onClick:()=&gt;t(e+1),children:(0,m.__)(&quot;Continue&quot;,&quot;redirection&quot;)})]})]})]})}function cp({options:e}){const t=pe(e=&gt;e.apiTest),{mutate:n}=Od(),{mutate:r}=Nd();return(0,d.jsxs)(&quot;div&quot;,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Installation Complete&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Redirection is now installed!&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;Please take a moment to consult the {{support}}support site{{/support}} for information about how to use Redirection.&quot;,&quot;redirection&quot;),{support:(0,d.jsx)(z,{url:&quot;https://redirection.me&quot;})})}),(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-primary&quot;,onClick:function(){const{ip:i,log:o,monitor:s}=e.settings,a=Ud(t);n({expire_redirect:o?7:-1,expire_404:o?7:-1,ip_logging:i?1:0,rest_api:&quot;number&quot;==typeof a?a:void 0,monitor_types:s?[&quot;post&quot;,&quot;page&quot;]:void 0,monitor_post:s?1:0},{onSuccess:()=&gt;r()})},type:&quot;button&quot;,children:(0,m.__)(&quot;Ready to begin! 🎉&quot;,&quot;redirection&quot;)})]})}const up=function(){const[e,t]=(0,l.useState)(0),[n,r]=(0,l.useState)({settings:{log:!1,ip:!1,monitor:!1},importers:[]}),i=pe(e=&gt;e.database.status),o=pe(e=&gt;e.database.reason),s=function(e){return 2===e?ap:4===e?op:3===e?Bd:1===e?pd:5===e?lp:6===e?cp:fe}(e);return(0,d.jsxs)(d.Fragment,{children:[&quot;error&quot;===i&amp;&amp;(0,d.jsx)(Q,{details:J(),errors:o,renderDebug:he,links:K(),locale:&quot;redirection&quot;,children:(0,m.__)(&quot;Something went wrong when installing Redirection.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;wizard-wrapper&quot;,children:[0!==e&amp;&amp;3!==e&amp;&amp;(0,d.jsx)(&quot;h1&quot;,{children:(0,m.__)(&quot;Redirection&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;div&quot;,{className:&quot;wizard&quot;,children:(0,d.jsx)(s,{options:n,step:e,setStep:function(e){let r=e;5===e&amp;&amp;0===n.importers.length&amp;&amp;(r=e+1),t(r)},setOptions:e=&gt;r({...n,...e})})})]}),(0,d.jsx)(&quot;div&quot;,{className:&quot;wizard-support&quot;,children:(0,d.jsx)(z,{url:&quot;https://redirection.me/contact/&quot;,children:(0,m.__)(&quot;I need support!&quot;,&quot;redirection&quot;)})})]})};function dp(e){return window.Redirectioni10n.pluginRoot+&quot;&amp;sub=rss&amp;module=1&amp;token=&quot;+encodeURIComponent(e)}function pp(e,t){return e.replace(/\/$/,&quot;&quot;)+&quot;/&quot;+t.replace(/^\//,&quot;&quot;)}function hp(e){return e?/^https?:\/\//i.test(e)?e:&quot;https://&quot;+e:document.location.origin}function fp(e){const t={};for(const n of e)n&amp;&amp;(t[n.moduleName]||(t[n.moduleName]=[]),t[n.moduleName].push({value:n.id,label:n.name}));return Object.keys(t).map(e=&gt;({label:e,value:t[e]}))}function mp(e,t){const n=window.Redirectioni10n.api.WP_API_nonce;return window.Redirectioni10n.pluginRoot+&quot;&amp;sub=io&amp;export=&quot;+encodeURIComponent(e)+&quot;&amp;exporter=&quot;+encodeURIComponent(t)+&quot;&amp;_wpnonce=&quot;+encodeURIComponent(n)}function gp(e){return&quot;finish-install&quot;===e||&quot;finish-update&quot;===e}function yp(){const{current:e,next:t}=window.Redirectioni10n.database;return e===t?(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;A database upgrade is in progress. Please continue to finish.&quot;,&quot;redirection&quot;)}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(&quot;p&quot;,{children:U((0,m.sprintf)(
// translators: %(current)s is the current database version, %(latest)s is the latest database version
// translators: %(current)s is the current database version, %(latest)s is the latest database version
(0,m.__)(&quot;Redirection stores data in your database and sometimes this needs upgrading. Your database is at version {{strong}}%(current)s{{/strong}} and the latest is {{strong}}%(latest)s{{/strong}}.&quot;,&quot;redirection&quot;),{current:window.Redirectioni10n.database.current,latest:window.Redirectioni10n.database.next}),{strong:(0,d.jsx)(&quot;strong&quot;,{})})})})}function vp(){const{mutate:e}=Ad();function t(){e({reason:&quot;database&quot;,current:window.Redirectioni10n.database.next})}return 0===window.Redirectioni10n.database.manual.length?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Your site already has the latest SQL.&quot;,&quot;redirection&quot;)+&quot; &quot;+(0,m.__)(&#039;Click &quot;Complete Upgrade&quot; when finished.&#039;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary&quot;,onClick:t,children:(0,m.__)(&quot;Complete Upgrade&quot;,&quot;redirection&quot;)})})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;If your site needs special database permissions, or you would rather do it yourself, you can manually run the following SQL.&quot;),&quot; &quot;,(0,m.__)(&#039;Click &quot;Complete Upgrade&quot; when finished.&#039;,&quot;redirection&quot;)]}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(N,{readOnly:!0,cols:120,value:window.Redirectioni10n.database.manual.join(&quot;;\n&quot;)+&quot;;&quot;,spellCheck:!1})}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary&quot;,onClick:t,children:(0,m.__)(&quot;Complete Upgrade&quot;,&quot;redirection&quot;)})})]})}function _p({onShowUpgrade:e}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&#039;Click the &quot;Upgrade Database&quot; button to automatically upgrade the database.&#039;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;input&quot;,{className:&quot;button-primary&quot;,type:&quot;submit&quot;,value:(0,m.__)(&quot;Upgrade Database&quot;,&quot;redirection&quot;),onClick:e})})]})}function bp(){const e=pe(e=&gt;e.database.reason),t=pe(e=&gt;e.database.status),n=pe(e=&gt;e.database.result),{mutate:r}=Nd();return(0,d.jsxs)(d.Fragment,{children:[&quot;error&quot;===n&amp;&amp;(0,d.jsx)(Q,{details:J(),errors:e,renderDebug:he,links:K(),locale:&quot;redirection&quot;,children:(0,m.__)(&quot;Something went wrong when upgrading Redirection.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;div&quot;,{className:&quot;wizard-wrapper&quot;,children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;wizard&quot;,children:[(0,d.jsx)(rp,{}),gp(t)&amp;&amp;(0,d.jsx)(&quot;button&quot;,{className:&quot;button button-primary&quot;,onClick:function(){r()},children:(0,m.__)(&quot;Finished! 🎉&quot;,&quot;redirection&quot;)})]})})]})}function xp({onShowUpgrade:e}){const[t,n]=(0,l.useState)(!1);function r(e){e.preventDefault(),n(!t)}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h1&quot;,{className:&quot;wp-heading-inline&quot;,children:(0,m.__)(&quot;Upgrade Required&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;wpl-error&quot;,children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Redirection database needs upgrading&quot;,&quot;redirection&quot;)}),yp(),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;Please make a backup of your Redirection data: {{download}}downloading a backup{{/download}}. If you experience any issues you can import this back into Redirection.&quot;,&quot;redirection&quot;),{download:(0,d.jsx)(z,{url:mp(&quot;all&quot;,&quot;json&quot;)}),import:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/import-export-redirects/&quot;})})}),t?(0,d.jsx)(vp,{}):(0,d.jsx)(_p,{onShowUpgrade:e})]}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;database-switch&quot;,children:[!t&amp;&amp;(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,children:(0,m.__)(&quot;Manual Upgrade&quot;,&quot;redirection&quot;)}),t&amp;&amp;(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:r,children:(0,m.__)(&quot;Automatic Upgrade&quot;,&quot;redirection&quot;)})]})]})}function wp({showDatabase:e,onShowUpgrade:t}){return e?(0,d.jsx)(bp,{}):(0,d.jsx)(xp,{onShowUpgrade:t})}class jp extends l.Component{constructor(e){super(e),this.state={error:!1,stack:null,errorInfo:null}}static getDerivedStateFromError(e){return{error:!0,stack:e}}componentDidCatch(e,t){this.setState({error:!0,stack:e,errorInfo:t}),console.error(e,t)}render(){const{error:e,stack:t,errorInfo:n}=this.state,{renderCrash:r,children:i,extra:o}=this.props;return e?r(t,n,o):i}}const Sp=jp,kp=({item:e,isCurrent:t,onClick:n,isLast:r,urlBase:i})=&gt;{const o=i+(&quot;&quot;===e.value?&quot;&quot;:&quot;&amp;sub=&quot;+e.value);return(0,d.jsxs)(&quot;li&quot;,{children:[(0,d.jsx)(&quot;a&quot;,{className:t?&quot;current&quot;:&quot;&quot;,href:o,onClick:t=&gt;{t.preventDefault(),n(e.value,o)},children:e.name}),&quot; &quot;,!r&amp;&amp;&quot;|&quot;,&quot; &quot;]})},Cp=(e,t,n)=&gt;e===t.value||e===n&amp;&amp;&quot;&quot;===t.value,Tp=({onChangePage:e,menu:t,home:n,urlBase:r,currentPage:i})=&gt;t.length&lt;2?null:(0,d.jsx)(&quot;div&quot;,{className:&quot;subsubsub-container&quot;,children:(0,d.jsx)(&quot;ul&quot;,{className:&quot;subsubsub&quot;,children:t.map((o,s)=&gt;(0,d.jsx)(kp,{item:o,isCurrent:Cp(i,o,n),isLast:s===t.length-1,onClick:e,urlBase:r},s))})});let Ep=!1;function Pp({notices:e}){const t=e[e.length-1],n=t?.message??&quot;&quot;;return(0,d.jsx)(d.Fragment,{children:n+(e.length&gt;1?&quot; (&quot;+e.length+&quot;)&quot;:&quot;&quot;)})}const Op=function({notices:e,onClear:t,snackBarViewText:n}){const[r,i]=(0,l.useState)(!1);if((0,l.useEffect)(()=&gt;(e.length&gt;0&amp;&amp;(i(!1),Ep&amp;&amp;clearTimeout(Ep),Ep=setTimeout(()=&gt;i(!0),5e3)),()=&gt;{Ep&amp;&amp;clearTimeout(Ep)}),[e]),0===e.length)return null;function o(){r?i(!1):t()}const s=y(&quot;notice&quot;,&quot;notice-info&quot;,&quot;wpl-notice&quot;,r&amp;&amp;&quot;wpl-notice_shrunk&quot;);return(0,d.jsxs)(&quot;div&quot;,{className:s,onClick:o,onKeyDown:function(e){&quot;Enter&quot;!==e.key&amp;&amp;&quot; &quot;!==e.key||(e.preventDefault(),o())},role:&quot;button&quot;,tabIndex:0,children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;closer&quot;,children:(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-yes&quot;})}),(0,d.jsx)(&quot;p&quot;,{children:r?(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-warning&quot;,title:n}):(0,d.jsx)(Pp,{notices:e})})]})};function Rp(e,t){if(e===t)return!0;if(e&amp;&amp;t&amp;&amp;&quot;object&quot;==typeof e&amp;&amp;&quot;object&quot;==typeof t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n&lt;e.length;n++)if(!Rp(e[n],t[n]))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n){if(!Object.prototype.hasOwnProperty.call(t,r))return!1;if(!Rp(e[r],t[r]))return!1}return!0}return!1}function Np(e){return function(e){const t=new URLSearchParams(e),n={},r=new Map;t.forEach((e,t)=&gt;{const n=t.replace(/\[\d*\]$/,&quot;&quot;);r.has(n)||r.set(n,[]),r.get(n).push({key:t,value:e})});for(const[e,t]of r){const r=t.map(e=&gt;e.value);r.length&gt;1?n[e]=r:1===r.length&amp;&amp;(n[e]=r[0])}return n}(e?e.slice(1):document.location.search.slice(1))}function Ap(e,t,n){const r=Np(n);for(const n in e){const i=Rp(t[n],e[n]);e[n]&amp;&amp;!i||&quot;page&quot;===n?r[n.toLowerCase()]=e[n]:i&amp;&amp;delete r[n.toLowerCase()]}return&quot;?&quot;+function(e){const t=new URLSearchParams;for(const n in e){const r=e[n];if(null!=r)if(Array.isArray(r))if(r.some(e=&gt;&quot;object&quot;==typeof e&amp;&amp;null!==e))t.append(n,JSON.stringify(r));else for(const e of r)null!=e&amp;&amp;t.append(`${n}[]`,String(e));else&quot;object&quot;==typeof r?t.append(n,JSON.stringify(r)):t.append(n,String(r))}return t.toString()}(r)}function Ip(e,t){const n=Np(t);return n.sub&amp;&amp;-1!==e.indexOf(n.sub)?n.sub:e[0]}const zp=function(e){const{page:t,setPage:n,children:r,onPageChange:i,defaultPage:o,baseUrl:s,allowedPages:a}=e,c=(0,l.useRef)(void 0),u=(0,l.useCallback)(()=&gt;{const e=Ip(window.Redirectioni10n?.caps?.pages||a);n(e)},[a,n]);return(0,l.useEffect)(()=&gt;(window.addEventListener(&quot;popstate&quot;,u),()=&gt;{window.removeEventListener(&quot;popstate&quot;,u)}),[u]),(0,l.useEffect)(()=&gt;{i(),c.current&amp;&amp;c.current!==t&amp;&amp;history.pushState({},&quot;&quot;,Ap({sub:t},{sub:o},s)),c.current=t},[s,o,i,t]),(0,d.jsx)(d.Fragment,{children:r})},Fp=function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)($d,{}),(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;What do I do next?&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;ol&quot;,{children:[(0,d.jsx)(&quot;li&quot;,{children:U((0,m.__)(&#039;Take a look at the {{link}}plugin status{{/link}}. It may be able to identify and &quot;magic fix&quot; the problem.&#039;,&quot;redirection&quot;),{link:(0,d.jsx)(&quot;a&quot;,{href:&quot;?page=redirection.php&amp;sub=support&quot;})})}),(0,d.jsx)(&quot;li&quot;,{children:U((0,m.__)(&quot;{{link}}Caching software{{/link}}, in particular Cloudflare, can cache the wrong thing. Try clearing all your caches.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/problems/cloudflare/&quot;})})}),(0,d.jsx)(&quot;li&quot;,{children:U((0,m.__)(&quot;{{link}}Please temporarily disable other plugins!{{/link}} This fixes so many problems.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/problems/plugins/&quot;})})}),(0,d.jsx)(&quot;li&quot;,{children:U((0,m.__)(&quot;Look at your {{link}}Site Health{{/link}} and resolve any issues.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:K().siteHealth})})})]})]})};function Dp(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;This error may be caused by a browser extension modifying the page. Please try disabling browser extensions for this page.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;You can also try using a different browser, or using private/incognito mode.&quot;,&quot;redirection&quot;)})]})}function Lp(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;Redirection is not working. Try clearing your browser cache and reloading this page.&quot;,&quot;redirection&quot;),&quot; &quot;,(0,m.__)(&quot;If you are using a page caching plugin or service (CloudFlare, OVH, etc) then you can also try clearing that cache.&quot;,&quot;redirection&quot;)]}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;If that doesn&#039;t help, open your browser&#039;s error console and create a {{link}}new issue{{/link}} with the details.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://github.com/johngodley/redirection/issues&quot;})})})]})}const Mp=function(e,t,n){const r=e?.stack||&quot;&quot;,i=function(e,t){if(e&amp;&amp;(e.includes(&quot;chrome-extension://&quot;)||e.includes(&quot;moz-extension://&quot;)))return!0;const n=[&quot;Failed to execute &#039;removeChild&#039;&quot;,&quot;Failed to execute &#039;insertBefore&#039;&quot;,&quot;Failed to execute &#039;appendChild&#039;&quot;,&quot;The node to be removed is not a child of this node&quot;];if(t)for(const e of n)if(t.includes(e))return!0;return!1}(r,e?.message||&quot;&quot;);return(0,d.jsx)(Q,{errors:&quot;&quot;,renderDebug:he,type:&quot;fixed&quot;,links:K(),details:J().concat([r,t?.componentStack||&quot;&quot;]),locale:&quot;redirection&quot;,children:i?(0,d.jsx)(Dp,{}):(0,d.jsx)(Lp,{})})},$p=()=&gt;(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-placeholder__container&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-placeholder__loading&quot;})}),Up=function(e){const{isPrimary:t=!1,isSecondary:n=!0,isSubmit:r=!1,isSaving:i=!1,className:o,children:s,disabled:a=!1,isDestructive:l=!1,...c}=e,u=y(&quot;button&quot;,o,{&quot;button-primary&quot;:t,&quot;button-secondary&quot;:n,&quot;button-delete&quot;:l,&quot;wpl-spinner&quot;:i});return(0,d.jsxs)(&quot;button&quot;,{className:u,disabled:a,type:r?&quot;submit&quot;:&quot;button&quot;,...c,children:[i&amp;&amp;(0,d.jsx)(&quot;svg&quot;,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,fill:&quot;none&quot;,viewBox:&quot;0 0 24 24&quot;,strokeWidth:1.5,stroke:&quot;currentColor&quot;,children:(0,d.jsx)(&quot;path&quot;,{strokeLinecap:&quot;round&quot;,strokeLinejoin:&quot;round&quot;,d:&quot;M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99&quot;})}),s]})};var Bp=n(795),Zp=&quot;data-focus-lock&quot;,qp=&quot;data-focus-lock-disabled&quot;;function Hp(e,t){return&quot;function&quot;==typeof e?e(t):e&amp;&amp;(e.current=t),e}var Wp=&quot;undefined&quot;!=typeof window?l.useLayoutEffect:l.useEffect,Gp=new WeakMap;var Vp={width:&quot;1px&quot;,height:&quot;0px&quot;,padding:0,overflow:&quot;hidden&quot;,position:&quot;fixed&quot;,top:&quot;1px&quot;,left:&quot;1px&quot;},Qp=function(){return Qp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n&lt;r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&amp;&amp;(e[i]=t[i]);return e},Qp.apply(this,arguments)};function Kp(e){return e}function Jp(e,t){void 0===t&amp;&amp;(t=Kp);var n=[],r=!1,i={read:function(){if(r)throw new Error(&quot;Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.&quot;);return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return i}function Yp(e,t){return void 0===t&amp;&amp;(t=Kp),Jp(e,t)}Object.create,Object.create,&quot;function&quot;==typeof SuppressedError&amp;&amp;SuppressedError;var Xp=Yp({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),eh=Yp(),th=Yp(),nh=function(e){void 0===e&amp;&amp;(e={});var t=Jp(null);return t.options=Qp({async:!0,ssr:!1},e),t}({async:!0,ssr:&quot;undefined&quot;!=typeof document}),rh=(0,l.createContext)(void 0),ih=[],oh=(0,l.forwardRef)(function(e,t){var n,r,i,o,s,a,c,d=(0,l.useState)(),p=d[0],h=d[1],f=(0,l.useRef)(),m=(0,l.useRef)(!1),g=(0,l.useRef)(null),y=(0,l.useState)({})[1],_=e.children,b=e.disabled,x=void 0!==b&amp;&amp;b,w=e.noFocusGuards,j=void 0!==w&amp;&amp;w,S=e.persistentFocus,k=void 0!==S&amp;&amp;S,C=e.crossFrame,T=void 0===C||C,E=e.autoFocus,P=void 0===E||E,O=(e.allowTextSelection,e.group),R=e.className,N=e.whiteList,A=e.hasPositiveIndices,I=e.shards,z=void 0===I?ih:I,F=e.as,D=void 0===F?&quot;div&quot;:F,L=e.lockProps,M=void 0===L?{}:L,$=e.sideCar,U=e.returnFocus,B=void 0!==U&amp;&amp;U,Z=e.focusOptions,q=e.onActivation,H=e.onDeactivation,W=(0,l.useState)({})[0],G=(0,l.useCallback)(function(e){var t=e.captureFocusRestore;if(!g.current){var n,r=null==(n=document)?void 0:n.activeElement;g.current=r,r!==document.body&amp;&amp;(g.current=t(r))}f.current&amp;&amp;q&amp;&amp;q(f.current),m.current=!0,y()},[q]),V=(0,l.useCallback)(function(){m.current=!1,H&amp;&amp;H(f.current),y()},[H]),Q=(0,l.useCallback)(function(e){var t=g.current;if(t){var n=(&quot;function&quot;==typeof t?t():t)||document.body,r=&quot;function&quot;==typeof B?B(n):B;if(r){var i=&quot;object&quot;==typeof r?r:void 0;g.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[B]),K=(0,l.useCallback)(function(e){m.current&amp;&amp;Xp.useMedium(e)},[]),J=eh.useMedium,Y=(0,l.useCallback)(function(e){f.current!==e&amp;&amp;(f.current=e,h(e))},[]),X=v(((n={})[qp]=x&amp;&amp;&quot;disabled&quot;,n[Zp]=O,n),M),ee=!0!==j,te=ee&amp;&amp;&quot;tail&quot;!==j,ne=(r=[t,Y],o=i||null,s=function(e){return r.forEach(function(t){return Hp(t,e)})},(a=(0,l.useState)(function(){return{value:o,callback:s,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&amp;&amp;(a.value=e,a.callback(e,t))}}}})[0]).callback=s,c=a.facade,Wp(function(){var e=Gp.get(c);if(e){var t=new Set(e),n=new Set(r),i=c.current;t.forEach(function(e){n.has(e)||Hp(e,null)}),n.forEach(function(e){t.has(e)||Hp(e,i)})}Gp.set(c,r)},[r]),c),re=(0,l.useMemo)(function(){return{observed:f,shards:z,enabled:!x,get active(){return m.current}}},[x,m,z,f]);return u().createElement(l.Fragment,null,ee&amp;&amp;[u().createElement(&quot;div&quot;,{key:&quot;guard-first&quot;,&quot;data-focus-guard&quot;:!0,tabIndex:x?-1:0,style:Vp}),A?u().createElement(&quot;div&quot;,{key:&quot;guard-nearest&quot;,&quot;data-focus-guard&quot;:!0,tabIndex:x?-1:1,style:Vp}):null],!x&amp;&amp;u().createElement($,{id:W,sideCar:nh,observed:p,disabled:x,persistentFocus:k,crossFrame:T,autoFocus:P,whiteList:N,shards:z,onActivation:G,onDeactivation:V,returnFocus:Q,focusOptions:Z,noFocusGuards:j}),u().createElement(D,v({ref:ne},X,{className:R,onBlur:J,onFocus:K}),u().createElement(rh.Provider,{value:re},_)),te&amp;&amp;u().createElement(&quot;div&quot;,{&quot;data-focus-guard&quot;:!0,tabIndex:x?-1:0,style:Vp}))});oh.propTypes={};const sh=oh;function ah(e,t){return ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ah(e,t)}var lh=function(e){for(var t=Array(e.length),n=0;n&lt;e.length;++n)t[n]=e[n];return t},ch=function(e){return Array.isArray(e)?e:[e]},uh=function(e){return Array.isArray(e)?e[0]:e},dh=function(e){return e.parentNode&amp;&amp;e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},ph=function(e){return e===document||e&amp;&amp;e.nodeType===Node.DOCUMENT_NODE},hh=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!e||ph(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||&quot;none&quot;!==t.getPropertyValue(&quot;display&quot;)&amp;&amp;&quot;hidden&quot;!==t.getPropertyValue(&quot;visibility&quot;))}(e)&amp;&amp;!function(e){return e.hasAttribute(&quot;inert&quot;)}(e)&amp;&amp;t(dh(e))}(t,hh.bind(void 0,e));return e.set(t,r),r},fh=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&amp;&amp;!ph(e))||!!vh(e)&amp;&amp;t(dh(e))}(t,fh.bind(void 0,e));return e.set(t,r),r},mh=function(e){return e.dataset},gh=function(e){return&quot;INPUT&quot;===e.tagName},yh=function(e){return gh(e)&amp;&amp;&quot;radio&quot;===e.type},vh=function(e){var t=e.getAttribute(&quot;data-no-autofocus&quot;);return![!0,&quot;true&quot;,&quot;&quot;].includes(t)},_h=function(e){var t;return Boolean(e&amp;&amp;(null===(t=mh(e))||void 0===t?void 0:t.focusGuard))},bh=function(e){return!_h(e)},xh=function(e){return Boolean(e)},wh=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,o=e.index-t.index;if(i){if(!n)return 1;if(!r)return-1}return i||o},jh=function(e,t,n){return lh(e).map(function(e,t){var r=function(e){return e.tabIndex&lt;0&amp;&amp;!e.hasAttribute(&quot;tabindex&quot;)?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:n&amp;&amp;-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex&gt;=0}).sort(wh)},Sh=[&quot;button:enabled&quot;,&quot;select:enabled&quot;,&quot;textarea:enabled&quot;,&quot;input:enabled&quot;,&quot;a[href]&quot;,&quot;area[href]&quot;,&quot;summary&quot;,&quot;iframe&quot;,&quot;object&quot;,&quot;embed&quot;,&quot;audio[controls]&quot;,&quot;video[controls]&quot;,&quot;[tabindex]&quot;,&quot;[contenteditable]&quot;,&quot;[autofocus]&quot;].join(&quot;,&quot;),kh=&quot;&quot;.concat(Sh,&quot;, [data-focus-guard]&quot;),Ch=function(e,t){return lh((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?kh:Sh)?[n]:[],Ch(n))},[])},Th=function(e,t){return e.reduce(function(e,n){var r,i=Ch(n,t),o=(r=[]).concat.apply(r,i.map(function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&amp;&amp;(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?Th([e.contentDocument.body],t):[e]}(e,t)}));return e.concat(o,n.parentNode?lh(n.parentNode.querySelectorAll(Sh)).filter(function(e){return e===n}):[])},[])},Eh=function(e,t){return lh(e).filter(function(e){return hh(t,e)}).filter(function(e){return function(e){return!((gh(e)||function(e){return&quot;BUTTON&quot;===e.tagName}(e))&amp;&amp;(&quot;hidden&quot;===e.type||e.disabled))}(e)})},Ph=function(e,t){return void 0===t&amp;&amp;(t=new Map),lh(e).filter(function(e){return fh(t,e)})},Oh=function(e,t,n){return jh(Eh(Th(e,n),t),!0,n)},Rh=function(e,t){return jh(Eh(Th(e),t),!1)},Nh=function(e,t){return e.shadowRoot?Nh(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||lh(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&amp;&amp;Nh(r,t)}return Nh(e,t)})},Ah=function(e){if(void 0===e&amp;&amp;(e=document),e&amp;&amp;e.activeElement){var t=e.activeElement;return t.shadowRoot?Ah(t.shadowRoot):t instanceof HTMLIFrameElement&amp;&amp;function(){try{return t.contentWindow.document}catch(e){return}}()?Ah(t.contentWindow.document):t}},Ih=function(e){return e.parentNode?Ih(e.parentNode):e},zh=function(e){return ch(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(Zp);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r&lt;n;r+=1)for(var i=r+1;i&lt;n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&amp;Node.DOCUMENT_POSITION_CONTAINED_BY)&gt;0&amp;&amp;t.add(i),(o&amp;Node.DOCUMENT_POSITION_CONTAINS)&gt;0&amp;&amp;t.add(r)}return e.filter(function(e,n){return!t.has(n)})}(lh(Ih(t).querySelectorAll(&quot;[&quot;.concat(Zp,&#039;=&quot;&#039;).concat(n,&#039;&quot;]:not([&#039;).concat(qp,&#039;=&quot;disabled&quot;])&#039;)))):[t]),e},[])},Fh=function(e,t){return void 0===t&amp;&amp;(t=Ah(uh(e).ownerDocument)),!(!t||t.dataset&amp;&amp;t.dataset.focusGuard)&amp;&amp;zh(e).some(function(e){return Nh(e,t)||function(e,t){return Boolean(lh(e.querySelectorAll(&quot;iframe&quot;)).some(function(e){return function(e,t){return e===t}(e,t)}))}(e,t)})},Dh=function(e,t){e&amp;&amp;(&quot;focus&quot;in e&amp;&amp;e.focus(t),&quot;contentWindow&quot;in e&amp;&amp;e.contentWindow&amp;&amp;e.contentWindow.focus())},Lh=function(e,t){return yh(e)&amp;&amp;e.name?function(e,t){return t.filter(yh).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e}(e,t):e},Mh=function(e){return e[0]&amp;&amp;e.length&gt;1?Lh(e[0],e):e[0]},$h=function(e,t){return e.indexOf(Lh(t,e))},Uh=&quot;NEW_FOCUS&quot;,Bh=function(e,t,n){var r,i=e.map(function(e){return e.node}),o=Ph(i.filter((r=n,function(e){var t,n=null===(t=mh(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&amp;&amp;&quot;false&quot;!==n||r.indexOf(e)&gt;=0})));return o&amp;&amp;o.length?Mh(o):Mh(Ph(t))},Zh=function(e,t){return void 0===t&amp;&amp;(t=[]),t.push(e),e.parentNode&amp;&amp;Zh(e.parentNode.host||e.parentNode,t),t},qh=function(e,t){for(var n=Zh(e),r=Zh(t),i=0;i&lt;n.length;i+=1){var o=n[i];if(r.indexOf(o)&gt;=0)return o}return!1},Hh=function(e,t,n){var r=ch(e),i=ch(t),o=r[0],s=!1;return i.filter(Boolean).forEach(function(e){s=qh(s||e,e)||s,n.filter(Boolean).forEach(function(e){var t=qh(o,e);t&amp;&amp;(s=!s||Nh(t,s)?t:qh(t,s))})}),s},Wh=function(e,t){return e.reduce(function(e,n){return e.concat(function(e,t){return Eh((n=e.querySelectorAll(&quot;[&quot;.concat(&quot;data-autofocus-inside&quot;,&quot;]&quot;)),lh(n).map(function(e){return Th([e])}).reduce(function(e,t){return e.concat(t)},[])),t);var n}(n,t))},[])},Gh=function(e,t){var n=Ah(ch(e).length&gt;0?document:uh(e).ownerDocument),r=zh(e).filter(bh),i=Hh(n||e,e,r),o=new Map,s=Rh(r,o),a=s.filter(function(e){var t=e.node;return bh(t)});if(a[0]){var l,c,u,d=Rh([i],o).map(function(e){return e.node}),p=(l=d,c=a,u=new Map,c.forEach(function(e){return u.set(e.node,e)}),l.map(function(e){return u.get(e)}).filter(xh)),h=p.map(function(e){return e.node}),f=p.filter(function(e){return e.tabIndex&gt;=0}).map(function(e){return e.node}),m=function(e,t,n,r,i){var o=e.length,s=e[0],a=e[o-1],l=_h(r);if(!(r&amp;&amp;e.indexOf(r)&gt;=0)){var c=void 0!==r?n.indexOf(r):-1,u=i?n.indexOf(i):c,d=i?e.indexOf(i):-1;if(-1===c)return-1!==d?d:Uh;if(-1===d)return Uh;var p,h,f=c-u,m=n.indexOf(s),g=n.indexOf(a),y=(p=n,h=new Set,p.forEach(function(e){return h.add(Lh(e,p))}),p.filter(function(e){return h.has(e)})),v=void 0!==r?y.indexOf(r):-1,_=i?y.indexOf(i):v,b=y.filter(function(e){return e.tabIndex&gt;=0}),x=void 0!==r?b.indexOf(r):-1,w=i?b.indexOf(i):x,j=x&gt;=0&amp;&amp;w&gt;=0?w-x:_-v;if(!f&amp;&amp;d&gt;=0)return d;if(0===t.length)return d;var S=$h(e,t[0]),k=$h(e,t[t.length-1]);return c&lt;=m&amp;&amp;l&amp;&amp;Math.abs(f)&gt;1?k:c&gt;=g&amp;&amp;l&amp;&amp;Math.abs(f)&gt;1?S:f&amp;&amp;Math.abs(j)&gt;1?d:c&lt;=m?k:c&gt;g?S:f?Math.abs(f)&gt;1?d:(o+d+f)%o:void 0}}(h,f,d,n,t);if(m===Uh){var g=Bh(s,f,Wh(r,o))||Bh(s,h,Wh(r,o));return g?{node:g}:void console.warn(&quot;focus-lock: cannot find any node to move focus into&quot;)}return void 0===m?m:p[m]}},Vh=0,Qh=!1,Kh=function(e,t,n){void 0===n&amp;&amp;(n={});var r=Gh(e,t);if(!Qh&amp;&amp;r){if(Vh&gt;2)return console.error(&quot;FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting&quot;),Qh=!0,void setTimeout(function(){Qh=!1},1);Vh++,Dh(r.node,n.focusOptions),Vh--}};function Jh(e){if(!e)return null;if(&quot;undefined&quot;==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var Yh=function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&amp;&amp;n!==document.body;)t.push({current:Jh(n),parent:Jh(n.parentElement),left:Jh(n.previousElementSibling),right:Jh(n.nextElementSibling)}),n=n.parentElement;return{element:Jh(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,n,r,i,o;if(e)for(var s=e.stack,a=e.ownerDocument,l=new Map,c=0,u=s;c&lt;u.length;c++){var d=u[c],p=null===(t=d.parent)||void 0===t?void 0:t.call(d);if(p&amp;&amp;a.contains(p)){for(var h=null===(n=d.left)||void 0===n?void 0:n.call(d),f=d.current(),m=p.contains(f)?f:void 0,g=null===(r=d.right)||void 0===r?void 0:r.call(d),y=Oh([p],l),v=null!==(o=null!==(i=null!=m?m:null==h?void 0:h.nextElementSibling)&amp;&amp;void 0!==i?i:g)&amp;&amp;void 0!==o?o:h;v;){for(var _=0,b=y;_&lt;b.length;_++){var x=b[_];if(null==v?void 0:v.contains(x.node))return x.node}v=v.nextElementSibling}if(y.length)return y[0].node}}}(t)}},Xh=function(e,t,n){void 0===t&amp;&amp;(t={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),i=function(e,t,n){if(!e||!t)return console.error(&quot;no element or scope given&quot;),{};var r=ch(t);if(r.every(function(t){return!Nh(t,e)}))return console.error(&quot;Active element is not contained in the scope&quot;),{};var i=n?Oh(r,new Map):Rh(r,new Map),o=i.findIndex(function(t){return t.node===e});return-1!==o?{prev:i[o-1],next:i[o+1],first:i[0],last:i[i.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(i){var o=n(i,r.cycle);o&amp;&amp;Dh(o.node,r.focusOptions)}},ef=function(e,t,n){var r,i=function(e,t){var n=t?Oh(ch(e),new Map):Rh(ch(e),new Map);return{first:n[0],last:n[n.length-1]}}(e,null===(r=t.onlyTabbable)||void 0===r||r),o=i[n];o&amp;&amp;Dh(o.node,t.focusOptions)};function tf(e){setTimeout(e,1)}var nf=function(e){return e&amp;&amp;&quot;current&quot;in e?e.current:e},rf=function(){return document&amp;&amp;document.activeElement===document.body},of=null,sf=null,af=function(){return null},lf=null,cf=!1,uf=!1,df=function(){return!0};function pf(e,t,n,r){var i=null,o=e;do{var s=r[o];if(s.guard)s.node.dataset.focusAutoGuard&amp;&amp;(i=s);else{if(!s.lockItem)break;if(o!==e)return;i=null}}while((o+=n)!==t);i&amp;&amp;(i.node.tabIndex=0)}var hf=function e(t,n,r){return n&amp;&amp;(n.host===t&amp;&amp;(!n.activeElement||r.contains(n.activeElement))||n.parentNode&amp;&amp;e(t,n.parentNode,r))},ff=function(e){return Rh(e,new Map)},mf=function(){var e,t,n,r,i,o,s,a=!1;if(of){var l=of,c=l.observed,u=l.persistentFocus,d=l.autoFocus,p=l.shards,h=l.crossFrame,f=l.focusOptions,m=l.noFocusGuards,g=c||lf&amp;&amp;lf.portaledElement;if(rf()&amp;&amp;sf&amp;&amp;sf!==document.body&amp;&amp;(!document.body.contains(sf)||!ff([(s=sf).parentNode]).some(function(e){return e.node===s}))){var y=af();y&amp;&amp;y.focus()}var v=document&amp;&amp;document.activeElement;if(g){var _=[g].concat(p.map(nf).filter(Boolean));if(v&amp;&amp;!function(e){return(of.whiteList||df)(e)}(v)||(u||function(){if(!(h?Boolean(cf):&quot;meanwhile&quot;===cf)||!m||!sf||uf)return!1;var e=ff(_),t=e.findIndex(function(e){return e.node===sf});return 0===t||t===e.length-1}()||!(rf()||function(e){void 0===e&amp;&amp;(e=document);var t=Ah(e);return!!t&amp;&amp;lh(e.querySelectorAll(&quot;[&quot;.concat(&quot;data-no-focus-lock&quot;,&quot;]&quot;))).some(function(e){return Nh(e,t)})}())||!sf&amp;&amp;d)&amp;&amp;(g&amp;&amp;!(Fh(_)||v&amp;&amp;function(e,t){return t.some(function(t){return hf(e,t,t)})}(v,_)||(o=v,lf&amp;&amp;lf.portaledElement===o))&amp;&amp;(document&amp;&amp;!sf&amp;&amp;v&amp;&amp;!d?(v.blur&amp;&amp;v.blur(),document.body.focus()):(a=Kh(_,sf,{focusOptions:f}),lf={})),(sf=document&amp;&amp;document.activeElement)!==document.body&amp;&amp;(af=Yh(sf)),cf=!1),document&amp;&amp;v!==document.activeElement&amp;&amp;document.querySelector(&quot;[data-focus-auto-guard]&quot;)){var b=document&amp;&amp;document.activeElement,x=(t=zh(e=_).filter(bh),n=Hh(e,e,t),r=jh(Th([n],!0),!0,!0),i=Th(t,!1),r.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)&gt;=0,guard:_h(t)}})),w=x.map(function(e){return e.node}).indexOf(b);w&gt;-1&amp;&amp;(x.filter(function(e){var t=e.guard,n=e.node;return t&amp;&amp;n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute(&quot;tabIndex&quot;)}),pf(w,x.length,1,x),pf(w,-1,-1,x))}}}return a},gf=function(e){mf()&amp;&amp;e&amp;&amp;(e.stopPropagation(),e.preventDefault())},yf=function(){return tf(mf)},vf=function(){uf=!0},_f=function(){uf=!1,cf=&quot;just&quot;,tf(function(){cf=&quot;meanwhile&quot;})},bf={moveFocusInside:Kh,focusInside:Fh,focusNextElement:function(e,t){void 0===t&amp;&amp;(t={}),Xh(e,t,function(e,t){var n=e.next,r=e.first;return n||t&amp;&amp;r})},focusPrevElement:function(e,t){void 0===t&amp;&amp;(t={}),Xh(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&amp;&amp;r})},focusFirstElement:function(e,t){void 0===t&amp;&amp;(t={}),ef(e,t,&quot;first&quot;)},focusLastElement:function(e,t){void 0===t&amp;&amp;(t={}),ef(e,t,&quot;last&quot;)},captureFocusRestore:Yh};Xp.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(lf={observerNode:n,portaledElement:t})}),eh.assignMedium(yf),th.assignMedium(function(e){return e(bf)});const xf=(wf=function(e){return e.filter(function(e){return!e.disabled})},jf=function(e){var t=e.slice(-1)[0];t&amp;&amp;!of&amp;&amp;(document.addEventListener(&quot;focusin&quot;,gf),document.addEventListener(&quot;focusout&quot;,yf),window.addEventListener(&quot;focus&quot;,vf),window.addEventListener(&quot;blur&quot;,_f));var n=of,r=n&amp;&amp;t&amp;&amp;t.id===n.id;of=t,n&amp;&amp;!r&amp;&amp;(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(sf=null,r&amp;&amp;n.observed===t.observed||t.onActivation(bf),mf(),tf(mf)):(document.removeEventListener(&quot;focusin&quot;,gf),document.removeEventListener(&quot;focusout&quot;,yf),window.removeEventListener(&quot;focus&quot;,vf),window.removeEventListener(&quot;blur&quot;,_f),sf=null)},function(e){var t,n=[];function r(){t=wf(n.map(function(e){return e.props})),jf(t)}var i=function(i){function o(){return i.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ah(e,t)}(o,i),o.peek=function(){return t};var s=o.prototype;return s.componentDidMount=function(){n.push(this),r()},s.componentDidUpdate=function(){r()},s.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),r()},s.render=function(){return u().createElement(e,this.props)},o}(l.PureComponent);return qd(i,&quot;displayName&quot;,&quot;SideEffect(&quot;+function(e){return e.displayName||e.name||&quot;Component&quot;}(e)+&quot;)&quot;),i})(function(){return null});var wf,jf,Sf=(0,l.forwardRef)(function(e,t){return u().createElement(sh,v({sideCar:xf,ref:t},e))}),kf=sh.propTypes||{};kf.sideCar,_(kf,[&quot;sideCar&quot;]),Sf.propTypes={};const Cf=Sf;function Tf(e){if(null===e)return null;const{left:t,top:n,height:r}=e;return{left:t,top:n+r}}function Ef(e,t){return t?{...e,width:t.getBoundingClientRect().width}:e}function Pf({style:e,align:t}){const n=y(&quot;wpl-popover__arrows&quot;,{&quot;wpl-popover__arrows__left&quot;:&quot;left&quot;===t,&quot;wpl-popover__arrows__right&quot;:&quot;right&quot;===t,&quot;wpl-popover__arrows__centre&quot;:&quot;centre&quot;===t});return(0,d.jsx)(&quot;div&quot;,{className:n,style:e})}const Of=function(e){const{position:t,children:n,popoverPosition:r,align:i,valign:o,hasArrow:s}=e,[a,c]=(0,l.useState)({arrow:{},content:{visibility:&quot;hidden&quot;,...t}}),u=(0,l.useCallback)(e=&gt;{if(e){const n=function(e,t,n,r,i,o){if(null===e||null===t)return{};if(!i)return{...e,visibility:&quot;hidden&quot;};const s=e.width?e.width:i.getBoundingClientRect().width,a=t.parentWidth-s-20,l=function(e,t,n,r){return&quot;right&quot;===r?e+t-n:&quot;centre&quot;===r?e-n/2:e}(t.left,t.width,e.width?e.width:s,n);return{...e,left:Math.min(a,l),top:o?e.top+5:e.top}}(t,r,i,0,e,!!s);c({content:n,arrow:Ef(n,e)})}},[t,r,i,o,s]);return(0,d.jsxs)(d.Fragment,{children:[s&amp;&amp;(0,d.jsx)(Pf,{style:a.arrow,align:i}),(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-popover__content&quot;,style:{...a.content,visibility:t&amp;&amp;t.left?&quot;visible&quot;:&quot;hidden&quot;,...null!==e.style?e.style:{}},ref:u,children:n})]})};function Rf(e,t){if(!t)return!1;const n=e.target;return!(n&amp;&amp;t.contains(n)||&quot;keydown&quot;===e.type||n&amp;&amp;(n.closest(&quot;.wpl-dropdowntext__suggestions&quot;)||n.closest(&quot;.wpl-multioption&quot;)))}function Nf(e){const t=(0,l.useRef)(null),{children:n,onOutside:r,className:i}=e,o=(0,l.useCallback)(e=&gt;{(Rf(e,t.current)||&quot;key&quot;in e&amp;&amp;&quot;Escape&quot;===e.key)&amp;&amp;r(e)},[r]);return(0,l.useEffect)(()=&gt;(addEventListener(&quot;mousedown&quot;,o),addEventListener(&quot;keydown&quot;,o),()=&gt;{removeEventListener(&quot;mousedown&quot;,o),removeEventListener(&quot;keydown&quot;,o)}),[o]),(0,d.jsx)(&quot;div&quot;,{className:i,ref:t,children:n})}function Af(e){let t=document.getElementById(e);if(null===t){const n=document.getElementById(&quot;wpbody&quot;);t=document.createElement(&quot;div&quot;),n&amp;&amp;n.parentNode&amp;&amp;(t.setAttribute(&quot;id&quot;,e),n.parentNode.appendChild(t))}return t}function If(e,t=&quot;bottom&quot;){const n=document.getElementById(&quot;wpwrap&quot;);if(null===e||null===n)return null;const r=n.getBoundingClientRect(),{height:i,width:o,left:s,top:a}=e.getBoundingClientRect();return{left:&quot;bottom&quot;===t?s-r.left:s+o/2-r.left-7,top:a-r.top+1,width:o,height:i,parentWidth:r.width,parentHeight:r.height,ref:e}}const zf=function(e){const{children:t,className:n,align:r=&quot;left&quot;,valign:i=&quot;bottom&quot;,onClose:o,hasArrow:s=!1,popoverPosition:a,style:c=null,focusLock:u=!0}=e;return(0,l.useEffect)(()=&gt;(window.addEventListener(&quot;resize&quot;,o),()=&gt;{window.removeEventListener(&quot;resize&quot;,o)}),[o]),(0,Bp.createPortal)((0,d.jsx)(Nf,{className:y(&quot;wpl-popover&quot;,n),onOutside:e=&gt;{a&amp;&amp;!1===Rf(e,a.ref)&amp;&amp;&quot;Escape&quot;!==e.key||o()},children:(0,d.jsx)(Cf,{returnFocus:!0,disabled:!u,children:(0,d.jsx)(Of,{position:Tf(a),popoverPosition:a,align:r,hasArrow:s,valign:i,style:c,children:t})})}),Af(&quot;wpl-dropdown-portal&quot;)||document.body)},Ff=function(e){const{renderContent:t,className:n,renderToggle:r,align:i=&quot;left&quot;,valign:o=&quot;bottom&quot;,hasArrow:s=!1,matchMinimum:a=!1,disabled:c=!1,onClose:u}=e,[p,h]=(0,l.useState)(!1),[f,m]=(0,l.useState)(null),g=(0,l.useRef)(null);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;div&quot;,{className:y(&quot;wpl-popover__toggle&quot;,n,c&amp;&amp;&quot;wpl-popover__toggle__disabled&quot;),ref:g,children:r(p,e=&gt;{if(!g.current)return;const t=If(g.current,o);e?.stopPropagation(),c||(m(t),h(!p))})}),p&amp;&amp;f&amp;&amp;(0,d.jsx)(zf,{align:i,valign:o,hasArrow:s,...void 0!==n?{className:n}:{},onClose:function(){h(!1),u?.()},popoverPosition:f,...a&amp;&amp;f.width?{style:{minWidth:`${f.width}px`}}:{},children:t(()=&gt;h(!1))})]})};function Df({option:e,onChange:t,isSelected:n,optionsType:r=&quot;checkbox&quot;,name:i}){const{value:o,disabled:s=!1,label:a}=e,l=&quot;radio&quot;===r?`multi_${o}`:`multi_${i}_${o}`;return(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:l,type:r,name:i||o,value:o,onChange:e=&gt;t(i,o,&quot;checkbox&quot;!==r||e.target.checked),checked:n(i,o),disabled:s,tabIndex:0}),(0,d.jsx)(&quot;label&quot;,{&quot;aria-label&quot;:e.label,htmlFor:l,children:a})]})}const Lf=function(e){const{option:t,optionsType:n,onChange:r,isSelected:i}=e,{options:o=[],label:s,value:a}=t;return(0,d.jsxs)(&quot;div&quot;,{className:&quot;wpl-multioption__group&quot;,children:[(0,d.jsx)(&quot;h5&quot;,{children:s}),o.map((e,t)=&gt;(0,d.jsx)(Df,{option:e,isSelected:i,onChange:r,name:a||e.value,optionsType:n},t))]})},Mf=function(e){const{option:t,isSelected:n,onChange:r}=e;if(t.options){const{optionsType:e=&quot;checkbox&quot;}=t;return(0,d.jsx)(Lf,{option:t,optionsType:e,isSelected:n,onChange:r})}const i=t.value||&quot;&quot;;return(0,d.jsx)(Df,{option:{label:t.label,value:i,disabled:t.disabled??!1,default:t.default??!1},isSelected:n,onChange:r,optionsType:&quot;checkbox&quot;,name:i})},$f=e=&gt;{const{children:t,className:n,onClick:r,title:i=&quot;&quot;,onCancel:o,disabled:s=!1,small:a=!1}=e,l={title:i,onClick:r};return(0,d.jsxs)(&quot;div&quot;,{className:y(&quot;wpl-badge&quot;,n,{&quot;wpl-badge__click&quot;:r,&quot;wpl-badge__small&quot;:a,&quot;wpl-badge__disabled&quot;:s}),...l,children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-badge__content&quot;,children:t}),o&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-badge__close dashicons dashicons-no-alt&quot;,onClick:e=&gt;{e.preventDefault(),!s&amp;&amp;o&amp;&amp;o(e)},onKeyDown:e=&gt;{&quot;Enter&quot;!==e.key&amp;&amp;&quot; &quot;!==e.key||(e.preventDefault(),!s&amp;&amp;o&amp;&amp;o(e))},role:&quot;button&quot;,tabIndex:0})]})};function Uf(e,t){for(let n=0;n&lt;e.length;n++){const r=e[n];if(r){if(r.value===t)return r;if(r.options){const e=Uf(r.options,t);if(e)return e}}}return null}function Bf(e,t){return e&amp;&amp;t?{title:e.badge||e.label,default:e.default??!1,onRemove:n=&gt;{if(e.value===t.value)return n(e.value||&quot;&quot;,e.value||&quot;&quot;,!1);const r=(t.options||[]).find(e=&gt;e.default);r?n(t.value||&quot;&quot;,r.value,!0):n(t.value||&quot;&quot;,e.value||&quot;&quot;,!1)}}:null}function Zf(e){const t=Uf(e,&quot;&quot;),n=Bf(t,t);return n?[n]:[]}function qf({selected:e,title:t,options:n,showBadges:r,onChange:i,disabled:o}){let s;if(s=function(e){return Array.isArray(e)?-1!==e.indexOf(&quot;&quot;):Boolean(e?.[&quot;&quot;])}(e)&amp;&amp;n.length&gt;0?Zf(n):Array.isArray(e)?function(e,t){return-1!==e.indexOf(&quot;&quot;)?Zf(t):e.map(e=&gt;{const n=Uf(t,e);return Bf(n,n)}).filter(e=&gt;null!==e)}(e,n):function(e,t){return Object.keys(e).map(n=&gt;{const r=Uf(t,n);return&quot;string&quot;==typeof e[n]?Bf(Uf(t,e[n]),r):e[n]?Bf(r,r):null}).filter(e=&gt;null!==e).filter(e=&gt;e&amp;&amp;!0!==e.default)}(e,n),s.length&gt;0&amp;&amp;r){const e=s.slice(0,3).map((e,t)=&gt;e?(0,d.jsx)($f,{small:!0,onCancel:t=&gt;function(e,t){e.preventDefault(),e.stopPropagation(),t.onRemove(i)}(t,e),disabled:o,children:e.title},t):null);return s.length&gt;3?e.concat([(0,d.jsx)(&quot;span&quot;,{children:&quot;...&quot;},&quot;end&quot;)]):e}return t.length&gt;0&amp;&amp;(!r||0===s.length)?(0,d.jsx)(&quot;h5&quot;,{children:t}):null}const Hf=function({onClick:e}){return(0,d.jsx)(&quot;svg&quot;,{height:&quot;20&quot;,width:&quot;20&quot;,viewBox:&quot;0 0 20 20&quot;,&quot;aria-hidden&quot;:&quot;true&quot;,focusable:&quot;false&quot;,onClick:e,children:(0,d.jsx)(&quot;path&quot;,{d:&quot;M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z&quot;})})},Wf=function(e){const{options:t,selected:n,onChange:r,title:i=&quot;&quot;,badges:o=!1,disabled:s=!1,className:a,asObject:l=!1}=e;function c(e,t){if(l){const r=n;return e===t?Boolean(r[t]):r[e]===t}return-1!==n.indexOf(t)}function u(e,t,i){if(l)r({...n,[e]:e===t?i:t});else{const o=n,s=e===t?e:t;r(i?[...o,s]:o.filter(e=&gt;e!==s))}}return(0,d.jsx)(Ff,{renderToggle:(e,r)=&gt;(0,d.jsxs)(&quot;div&quot;,{className:y(&quot;action&quot;,&quot;wpl-multioption__button&quot;,s&amp;&amp;&quot;wpl-multioption__disabled&quot;,e?&quot;wpl-multioption__button_enabled&quot;:null),onClick:r,tabIndex:0,&quot;aria-label&quot;:i||&quot;&quot;,children:[(0,d.jsx)(qf,{selected:n,title:i,showBadges:o,options:t,disabled:s,onChange:u}),(0,d.jsx)(Hf,{})]}),disabled:s,align:&quot;right&quot;,matchMinimum:!0,renderContent:()=&gt;(0,d.jsx)(&quot;div&quot;,{className:y(&quot;wpl-multioption&quot;,a),children:t.map((e,t)=&gt;(0,d.jsx)(Mf,{option:e,isSelected:c,onChange:u},t))})})},Gf=function({level:e=&quot;notice&quot;,children:t,className:n}){return(0,d.jsx)(&quot;div&quot;,{className:y(`inline-notice inline-${e}`,n),children:t})},Vf=()=&gt;[{value:-1,label:(0,m.__)(&quot;No logs&quot;,&quot;redirection&quot;)},{value:1,label:(0,m.__)(&quot;A day&quot;,&quot;redirection&quot;)},{value:7,label:(0,m.__)(&quot;A week&quot;,&quot;redirection&quot;)},{value:30,label:(0,m.__)(&quot;A month&quot;,&quot;redirection&quot;)},{value:60,label:(0,m.__)(&quot;Two months&quot;,&quot;redirection&quot;)},{value:0,label:(0,m.__)(&quot;Forever&quot;,&quot;redirection&quot;)}],Qf=function(e){const{settings:t,onChange:n,getLink:r}=e,{expire_redirect:i,expire_404:o,ip_logging:s,log_external:a,track_hits:l,log_header:c,ip_proxy:u=[],ip_headers:p=[]}=t;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;tr&quot;,{className:&quot;redirect-option__row&quot;,children:(0,d.jsx)(&quot;th&quot;,{colSpan:2,children:(0,d.jsx)(&quot;h2&quot;,{className:&quot;title&quot;,children:(0,m.__)(&quot;Logs&quot;,&quot;redirection&quot;)})})}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;Redirect Logs&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;logs&quot;),children:[(0,d.jsx)(Sd,{items:Vf(),name:&quot;expire_redirect&quot;,value:String(i),onChange:n}),&quot; &quot;,(0,m.__)(&quot;(time to keep logs for)&quot;,&quot;redirection&quot;)]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;404 Logs&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;tracking-404-errors&quot;),children:[(0,d.jsx)(Sd,{items:Vf(),name:&quot;expire_404&quot;,value:String(o),onChange:n}),&quot; &quot;,(0,m.__)(&quot;(time to keep logs for)&quot;,&quot;redirection&quot;)]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;IP Logging&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;options&quot;,&quot;iplogging&quot;),children:[(0,d.jsx)(Sd,{items:[{value:0,label:(0,m.__)(&quot;No IP logging&quot;,&quot;redirection&quot;)},{value:1,label:(0,m.__)(&quot;Full IP logging&quot;,&quot;redirection&quot;)},{value:2,label:(0,m.__)(&quot;Anonymize IP (mask last part)&quot;,&quot;redirection&quot;)}],name:&quot;ip_logging&quot;,value:String(s),onChange:n}),&quot; &quot;,(0,m.__)(&quot;(IP logging level)&quot;,&quot;redirection&quot;)]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;IP Address&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;options&quot;,&quot;ipaddress&quot;),children:[(0,d.jsx)(Wf,{options:[{value:&quot;HTTP_CF_CONNECTING_IP&quot;,label:&quot;HTTP_CF_CONNECTING_IP&quot;},{value:&quot;HTTP_CLIENT_IP&quot;,label:&quot;HTTP_CLIENT_IP&quot;},{value:&quot;HTTP_X_FORWARDED_FOR&quot;,label:&quot;HTTP_X_FORWARDED_FOR&quot;},{value:&quot;HTTP_X_FORWARDED&quot;,label:&quot;HTTP_X_FORWARDED&quot;},{value:&quot;HTTP_X_CLUSTER_CLIENT_IP&quot;,label:&quot;HTTP_X_CLUSTER_CLIENT_IP&quot;},{value:&quot;HTTP_FORWARDED_FOR&quot;,label:&quot;HTTP_FORWARDED_FOR&quot;},{value:&quot;HTTP_FORWARDED&quot;,label:&quot;HTTP_FORWARDED&quot;},{value:&quot;HTTP_VIA&quot;,label:&quot;HTTP_VIA&quot;}],selected:p,multiple:!0,badges:p.length&gt;0,hideTitle:p.length&gt;0,onChange:e=&gt;n({ip_headers:e}),title:0===p.length?(0,m.__)(&quot;REMOTE_ADDR&quot;,&quot;redirection&quot;):&quot;&quot;}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;Only set custom IP headers if your server does not use &lt;code&gt;REMOTE_ADDR&lt;/code&gt; to store the client IP address.&quot;,&quot;redirection&quot;),{code:(0,d.jsx)(&quot;code&quot;,{})})}),p.length&gt;0&amp;&amp;(0,d.jsx)(Gf,{level:&quot;warning&quot;,children:(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;Please ensure you trust the data in these headers. If using a proxy then set its address below.&quot;,&quot;redirection&quot;),{code:(0,d.jsx)(&quot;code&quot;,{})})})})]}),p.length&gt;0&amp;&amp;(0,d.jsxs)(bd,{title:(0,m.__)(&quot;Proxy Address&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;options&quot;,&quot;proxy&quot;),children:[(0,d.jsx)(N,{minRows:3,value:u.join(&quot;\n&quot;),onChange:e=&gt;n({ip_proxy:e.target.value.split(&quot;\n&quot;)}),rows:5}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;If using a proxy then add any IP addresses here to only trust IP headers from those addresses.&quot;,&quot;redirection&quot;)})]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;Logging&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;options&quot;,&quot;iplogging&quot;),children:[(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;log-options-log-external&quot;,type:&quot;checkbox&quot;,disabled:-1===parseInt(i.toString(),10),name:&quot;log_external&quot;,onChange:n,checked:-1!==parseInt(i.toString(),10)&amp;&amp;a}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;log-options-log-external&quot;,children:(0,m.__)(&#039;Log &quot;external&quot; redirects - those not from Redirection. This can increase your log size and contains no user information.&#039;,&quot;redirection&quot;)})]}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;log-options-track-hits&quot;,type:&quot;checkbox&quot;,name:&quot;track_hits&quot;,onChange:n,checked:l}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;log-options-track-hits&quot;,children:(0,m.__)(&quot;Track redirect hits and date of last access. Contains no user information.&quot;,&quot;redirection&quot;)})]}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;log-options-log-header&quot;,type:&quot;checkbox&quot;,name:&quot;log_header&quot;,onChange:n,checked:c}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;log-options-log-header&quot;,children:(0,m.__)(&quot;Capture HTTP header information with logs (except cookies). It may include user information, and could increase your log size.&quot;,&quot;redirection&quot;)})]})]}),(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{}),(0,d.jsx)(&quot;td&quot;,{children:U((0,m.__)(&quot;Redirection stores no user identifiable information other than what is configured above. It is your responsibility to ensure your site meets any applicable {{link}}privacy requirements{{/link}}.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:r(&quot;privacy-gdpr&quot;)})})})]})]})};function Kf(e,t,n){const r=[];for(const i in e){const o=e[i],s=!!t.find(e=&gt;e===i);o&amp;&amp;r.push((0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;monitor-type-&quot;+i,type:&quot;checkbox&quot;,name:&quot;monitor_type_&quot;+i,onChange:n,checked:s}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;monitor-type-&quot;+i,children:(0,m.sprintf)(
// translators: %(type)s is the post type name (e.g. post, page)
// translators: %(type)s is the post type name (e.g. post, page)
(0,m.__)(&quot;Monitor changes to %(type)s&quot;,&quot;redirection&quot;),{type:o.toLowerCase()})})]},i))}return r}function Jf(e,t){return 0===parseInt(e.toString(),10)&amp;&amp;t.length&gt;0?t.length&gt;0&amp;&amp;t[0]?Array.isArray(t[0].value)?t[0].value[0]?.value||0:t[0].value:0:e}const Yf=function(e){const{onChange:t,settings:n,groups:r,getLink:i,postTypes:o}=e,{associated_redirect:s,monitor_post:a,monitor_types:l}=n,c=l.length&gt;0;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(bd,{title:(0,m.__)(&quot;URL Monitor&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:i(&quot;options&quot;,&quot;monitor&quot;),children:Kf(o,l,function(e){const n=e.target.name.replace(&quot;monitor_type_&quot;,&quot;&quot;),i=l.filter(e=&gt;e!==n);e.target.checked&amp;&amp;i.push(n),t({monitor_types:i,monitor_post:i.length&gt;0?Jf(a,r):0,associated_redirect:i.length&gt;0?s:&quot;&quot;})})}),c&amp;&amp;(0,d.jsxs)(bd,{title:(0,m.__)(&quot;URL Monitor Changes&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:i(&quot;options&quot;,&quot;monitor&quot;),children:[(0,d.jsx)(Sd,{items:r,name:&quot;monitor_post&quot;,value:String(a),onChange:t}),&quot; &quot;,(0,m.__)(&quot;Save changes to this group&quot;,&quot;redirection&quot;),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;associated_redirect&quot;,onChange:t,placeholder:(0,m.__)(&#039;For example &quot;/amp&quot;&#039;,&quot;redirection&quot;),value:s}),&quot; &quot;,(0,m.__)(&quot;Create associated redirect (added to end of URL)&quot;,&quot;redirection&quot;)]})]})]})},Xf=function(e){const{settings:t,onChange:n,getLink:r,groups:i,postTypes:o}=e,{flag_case:s,flag_trailing:a,flag_query:l,auto_target:c,redirect_cache:u,cache_key:p}=t;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;tr&quot;,{className:&quot;redirect-option__row&quot;,children:(0,d.jsx)(&quot;th&quot;,{colSpan:2,children:(0,d.jsx)(&quot;h2&quot;,{className:&quot;title&quot;,children:(0,m.__)(&quot;URL&quot;,&quot;redirection&quot;)})})}),(0,d.jsx)(Yf,{settings:t,onChange:n,groups:i,getLink:r,postTypes:o}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;Default URL settings&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;options&quot;,&quot;urlsettings&quot;),children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Applies to all redirections unless you configure them otherwise.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;checkbox&quot;,id:&quot;url-options-flag-case&quot;,name:&quot;flag_case&quot;,onChange:n,checked:s}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;url-options-flag-case&quot;,children:U((0,m.__)(&quot;Case insensitive matches (i.e. {{code}}/Exciting-Post{{/code}} will match {{code}}/exciting-post{{/code}})&quot;,&quot;redirection&quot;),{code:(0,d.jsx)(&quot;code&quot;,{})})})]}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;checkbox&quot;,id:&quot;url-options-flag-trailing&quot;,name:&quot;flag_trailing&quot;,onChange:n,checked:a}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;url-options-flag-trailing&quot;,children:U((0,m.__)(&quot;Ignore trailing slashes (i.e. {{code}}/exciting-post/{{/code}} will match {{code}}/exciting-post{{/code}})&quot;,&quot;redirection&quot;),{code:(0,d.jsx)(&quot;code&quot;,{})})})]})]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;Default query matching&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;options&quot;,&quot;querysettings&quot;),children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Applies to all redirections unless you configure them otherwise.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(Sd,{items:[{value:&quot;exact&quot;,label:(0,m.__)(&quot;Exact match in any order&quot;,&quot;redirection&quot;)},{value:&quot;ignore&quot;,label:(0,m.__)(&quot;Ignore all query parameters&quot;,&quot;redirection&quot;)},{value:&quot;pass&quot;,label:(0,m.__)(&quot;Ignore and pass all query parameters&quot;,&quot;redirection&quot;)}],name:&quot;flag_query&quot;,value:l,onChange:n})}),(0,d.jsxs)(&quot;ul&quot;,{children:[(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Exact - matches the query parameters exactly defined in your source, in any order&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Ignore - as exact, but ignores any query parameters not in your source&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;li&quot;,{children:(0,m.__)(&quot;Pass - as ignore, but also copies the query parameters to the target&quot;,&quot;redirection&quot;)})]})]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;Auto-generate URL&quot;,&quot;redirection&quot;)+&quot;:&quot;,url:r(&quot;options&quot;,&quot;autogenerate&quot;),children:[(0,d.jsx)(&quot;input&quot;,{className:&quot;regular-text&quot;,type:&quot;text&quot;,value:c,name:&quot;auto_target&quot;,onChange:n}),(0,d.jsx)(&quot;br&quot;,{}),(0,d.jsx)(&quot;span&quot;,{className:&quot;sub&quot;,children:U((0,m.__)(&quot;Used to auto-generate a URL if no URL is given. Use the special tags {{code}}$dec${{/code}} or {{code}}$hex${{/code}} to insert a unique ID instead&quot;,&quot;redirection&quot;),{code:(0,d.jsx)(&quot;code&quot;,{})})})]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;HTTP Cache Header&quot;,&quot;redirection&quot;),url:r(&quot;options&quot;,&quot;cache&quot;),children:[(0,d.jsx)(Sd,{items:[{value:-1,label:(0,m.__)(&quot;Never cache&quot;,&quot;redirection&quot;)},{value:1,label:(0,m.__)(&quot;An hour&quot;,&quot;redirection&quot;)},{value:24,label:(0,m.__)(&quot;A day&quot;,&quot;redirection&quot;)},{value:168,label:(0,m.__)(&quot;A week&quot;,&quot;redirection&quot;)},{value:0,label:(0,m.__)(&quot;Forever&quot;,&quot;redirection&quot;)}],name:&quot;redirect_cache&quot;,value:String(u),onChange:n}),&quot; &quot;,&quot; &quot;,(0,d.jsx)(&quot;span&quot;,{className:&quot;sub&quot;,children:(0,m.__)(&#039;How long to cache redirected 301 URLs (via &quot;Expires&quot; HTTP header)&#039;,&quot;redirection&quot;)})]}),(0,d.jsxs)(bd,{title:(0,m.__)(&quot;Redirect Caching&quot;,&quot;redirection&quot;),url:r(&quot;options&quot;,&quot;cache&quot;),children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;url-options-cache-key&quot;,type:&quot;checkbox&quot;,name:&quot;cache_key&quot;,onChange:n,checked:0!==p&amp;&amp;!1!==p}),&quot; &quot;,(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;url-options-cache-key&quot;,children:(0,d.jsx)(&quot;span&quot;,{className:&quot;sub&quot;,children:(0,m.__)(&quot;(beta) Enable caching of redirects via WordPress object cache. Can improve performance. Requires an object cache.&quot;,&quot;redirection&quot;)})})]})]})},em=Dc({source:Dc({flag_regex:dc(),flag_trailing:dc(),flag_case:dc(),flag_query:ol()}).optional(),options:Jc(ol(),Cc()).optional()}),tm=Dc({id:rc().int(),url:ol(),match_url:ol().optional(),match_type:ol(),action_type:ol(),action_code:rc().int(),action_data:Cc(),match_data:em.nullish(),group_id:rc().int(),title:ol(),position:rc().int().nonnegative(),regex:dc().optional(),last_access:ol().optional(),enabled:dc().optional(),hits:rc().int().nonnegative().optional()}),nm=(Dc({url:ol().min(1,&quot;Source URL is required&quot;),title:ol().optional(),match_type:ol(),action_type:ol(),action_code:rc().int().min(100).max(599).optional(),action_data:Cc().optional(),match_data:em.optional(),group_id:rc().int().positive(),position:rc().int().nonnegative().default(0),enabled:dc().optional()}).partial().extend({id:rc().int()}),Dc({items:Ic(rc().int()),action:ou([&quot;delete&quot;,&quot;enable&quot;,&quot;disable&quot;,&quot;reset&quot;])}),Dc({id:rc().int(),name:ol(),redirects:rc().int().nonnegative(),module_id:rc().int(),moduleName:ol().optional(),enabled:dc()})),rm=(Dc({name:ol().min(1,&quot;Group name is required&quot;),moduleId:rc().int().positive(),position:rc().int().nonnegative().default(0),enabled:dc().optional()}).partial().extend({id:rc().int()}),Dc({page:rc().int().nonnegative(),per_page:rc().int().positive().max(100),orderby:ol(),direction:ou([&quot;asc&quot;,&quot;desc&quot;]),selected:Ic(Uc([rc(),ol()])),selectAll:dc().optional(),displayType:ol().optional(),displaySelected:Ic(ol()).optional(),filterBy:Jc(ol(),ol()).optional(),groupBy:ol().optional()})),im=e=&gt;Dc({items:Ic(e),total:rc().int().nonnegative(),table:rm.optional()}),om=(Dc({item:Cc(),items:Ic(Cc()).optional(),total:rc().int().nonnegative().optional()}),Dc({code:Uc([ol(),rc()]).optional(),message:ol().optional(),data:Cc().optional(),jsonData:Cc().optional(),request:Dc({url:ol(),method:ol()}).optional()}),im(tm)),sm=Dc({item:tm}),am=im(nm),lm=Dc({item:nm});function cm(e){return{...!0===e?.global?{page:0}:{},selected:[],selectAll:!1}}function um(e,t){return&quot;ip&quot;===e?{ip:t}:&quot;agent&quot;===e?{agent:t}:{&quot;url-exact&quot;:t}}Dc({deleted:rc().int().nonnegative().optional(),updated:rc().int().nonnegative().optional(),items:Ic(Cc()).optional(),total:rc().int().nonnegative().optional()});const dm=[&quot;selected&quot;,&quot;selectAll&quot;,&quot;displayType&quot;,&quot;displaySelected&quot;];function pm(e){const t={};for(const n in e){const r=e[n];dm.includes(n)||null!=r&amp;&amp;(&quot;object&quot;!=typeof r||Array.isArray(r)||0!==Object.keys(r).length)&amp;&amp;(Array.isArray(r)&amp;&amp;0===r.length||&quot;string&quot;==typeof r&amp;&amp;&quot;&quot;===r.trim()||(t[n]=r))}return t}function hm(e={},t){const n=pm(e);return ct({queryKey:ad.groups.list(n),queryFn:async()=&gt;{try{const e=await jt(It(n));return am.parse(e)}catch(e){throw sd(e)}},...t})}function fm(e,t){return&quot;https://redirection.me/support/&quot;+e+(t?&quot;/#&quot;+t:&quot;&quot;)}const mm={},gm={},ym=function(){const e=pe(e=&gt;e.values),t=pe(e=&gt;e.saveStatus),n=pe(e=&gt;e.values?.installed??&quot;&quot;),r=pe(e=&gt;e.values?.warning??&quot;&quot;),i=pe(e=&gt;e.values?.postTypes),{data:o}=hm({}),s=o?.items?fp(o.items):[],{mutate:a}=Od(),[c,u]=(0,l.useState)(e??gm),p=i??mm;function h(e){if(&quot;target&quot;in e){const{target:t}=e,n=&quot;checkbox&quot;===t.type?t.checked:t.value;u({...c,[t.name]:n})}else u({...c,...e})}return(0,l.useEffect)(()=&gt;{e&amp;&amp;u(e)},[e]),(0,d.jsxs)(&quot;form&quot;,{onSubmit:function(e){e.preventDefault(),a(c)},children:[(0,d.jsxs)(xd,{children:[(0,d.jsx)(Qf,{settings:c,onChange:h,getLink:fm}),(0,d.jsx)(Xf,{settings:c,onChange:h,getLink:fm,groups:s,postTypes:p}),(0,d.jsx)(Cd,{settings:c,onChange:h,getLink:fm,installed:n,warning:r})]}),(0,d.jsx)(Up,{isPrimary:!0,isSubmit:!0,disabled:t,children:(0,m.__)(&quot;Update&quot;,&quot;redirection&quot;)})]})},vm=function({onClose:e,children:t,className:n}){return(0,d.jsx)(Nf,{className:&quot;wpl-click-outside&quot;,onOutside:t=&gt;{t.target instanceof HTMLElement&amp;&amp;t.target.classList.contains(&quot;wpl-modal_main&quot;)&amp;&amp;e()},children:(0,d.jsxs)(&quot;div&quot;,{className:y(&quot;wpl-modal_content&quot;,n),children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-modal_close&quot;,children:(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:e,children:&quot;✖&quot;})}),t]})})},_m=&quot;wpl-modal_shown&quot;,bm=function({padding:e=!0,onClose:t,...n}){const r=(0,l.useCallback)(e=&gt;{&quot;Escape&quot;===e.key&amp;&amp;t()},[t]);(0,l.useEffect)(()=&gt;(document.body.classList.add(_m),document.addEventListener(&quot;keydown&quot;,r),()=&gt;{document.body.classList.remove(_m),document.removeEventListener(&quot;keydown&quot;,r)}),[r]);const i=y({&quot;wpl-modal_wrapper&quot;:!0,&quot;wpl-modal_wrapper-padding&quot;:e});return(0,d.jsxs)(&quot;div&quot;,{className:i,children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-modal_backdrop&quot;}),(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-modal_main&quot;,children:(0,d.jsx)(vm,{onClose:t,...n})})]})},xm=e=&gt;(0,Bp.createPortal)((0,d.jsx)(bm,{...e}),Af(&quot;wpl-modal&quot;)||document.body),wm=function(e){const[t,n]=(0,l.useState)(!1);function r(){n(!1)}return(0,d.jsxs)(&quot;div&quot;,{className:&quot;wrap&quot;,children:[(0,d.jsxs)(&quot;form&quot;,{action:&quot;&quot;,method:&quot;post&quot;,onSubmit:function(e){n(!0),e.preventDefault()},children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Delete Redirection&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Selecting this option will delete all redirections, all logs, and any options associated with the Redirection plugin. Make sure this is what you want to do.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{className:&quot;button-secondary button-delete&quot;,type:&quot;submit&quot;,name:&quot;delete&quot;,value:(0,m.__)(&quot;Delete&quot;,&quot;redirection&quot;)})]}),t&amp;&amp;(0,d.jsx)(xm,{onClose:r,children:(0,d.jsxs)(&quot;div&quot;,{style:{padding:&quot;15px 10px 5px 15px&quot;},children:[(0,d.jsx)(&quot;h1&quot;,{children:(0,m.__)(&quot;Delete the plugin - are you sure?&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Deleting the plugin will remove all your redirections, logs, and settings. Do this if you want to remove the plugin for good, or if you want to reset the plugin.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Once deleted your redirections will stop working. If they appear to continue working then please clear your browser cache.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary button-delete&quot;,onClick:function(){e.onDelete(),r()},children:(0,m.__)(&quot;Yes! Delete the plugin&quot;,&quot;redirection&quot;)}),&quot; &quot;,(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary&quot;,onClick:r,children:(0,m.__)(&quot;No! Don&#039;t delete the plugin&quot;)})]})]})})]})},jm=function(){const e=pe(e=&gt;e.loadStatus),t=pe(e=&gt;e.values);Pd();const n=function(){const{incrementProgress:e,decrementProgress:t,addNotice:n,addError:r}=cd();return pt({mutationFn:async()=&gt;{e();try{return await jt(qt())}catch(e){throw t(),sd(e)}},onSuccess:()=&gt;{t(),n(&quot;Plugin deleted&quot;),window.location.href=&quot;/wp-admin/plugins.php&quot;},onError:e=&gt;{r(e.message||&quot;Failed to delete plugin&quot;)}})}(),r=&quot;success&quot;===e;return&quot;loading&quot;!==e&amp;&amp;t?(0,d.jsxs)(&quot;div&quot;,{children:[&quot;success&quot;===e&amp;&amp;(0,d.jsx)(ym,{}),(0,d.jsx)(&quot;hr&quot;,{}),r&amp;&amp;(0,d.jsx)(wm,{onDelete:()=&gt;{n.mutate()}})]}):(0,d.jsx)($p,{})},Sm=()=&gt;(0,d.jsxs)(&quot;div&quot;,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Need help?&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;Full documentation for Redirection can be found at {{site}}https://redirection.me{{/site}}. If you have a problem please check the {{faq}}FAQ{{/faq}} first.&quot;,&quot;redirection&quot;),{site:(0,d.jsx)(z,{url:&quot;https://redirection.me&quot;}),faq:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/faq/&quot;})})}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;strong&quot;,{children:U((0,m.__)(&quot;If you want to report a bug please read the {{report}}Reporting Bugs{{/report}} guide.&quot;,&quot;redirection&quot;),{report:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/reporting-bugs/&quot;})})})}),(0,d.jsx)(&quot;div&quot;,{className:&quot;inline-notice inline-general&quot;,children:(0,d.jsxs)(&quot;p&quot;,{className:&quot;github&quot;,children:[(0,d.jsx)(z,{url:&quot;https://github.com/johngodley/redirection/issues&quot;,children:(0,d.jsx)(&quot;img&quot;,{src:window.Redirectioni10n.pluginBaseUrl+&quot;/images/GitHub-Mark-64px.png&quot;,width:&quot;32&quot;,height:&quot;32&quot;,alt:&quot;GitHub&quot;})}),(0,d.jsx)(z,{url:&quot;https://github.com/johngodley/redirection/issues&quot;,children:&quot;https://github.com/johngodley/redirection/&quot;})]})}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Please note that any support is provide on as-time-is-available basis and is not guaranteed. I do not provide paid support.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;If you want to submit information that you don&#039;t want in a public repository then send it directly via {{email}}email{{/email}} - include as much information as you can!&quot;,&quot;redirection&quot;),{email:(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;button-link&quot;,onClick:()=&gt;{window.location.href=&quot;mailto:john@redirection.me?subject=Redirection%20Issue&amp;body=&quot;+encodeURIComponent(&quot;Redirection: &quot;+window.Redirectioni10n.versions)}})})}),(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Need to search and replace?&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;The companion plugin &lt;link&gt;Search Regex&lt;/link&gt; allows you to search and replace data on your site and is handy if you want to bulk update a lot of URLs in your posts and pages.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://searchregex.com/&quot;})})})]});function km(e,t){return&quot;http&quot;===e.slice(0,4)?e:pp(t||document.location.origin,e)}function Cm(e){return&quot;object&quot;==typeof e&amp;&amp;void 0!==e.url_from?e.url_from:e}function Tm({status:e,headers:t,statusMessage:n,isMatch:r}){if(0===e)return n.length&gt;0?(0,d.jsx)(d.Fragment,{children:n}):(0,d.jsx)(d.Fragment,{children:(0,m.__)(&quot;An unknown error&quot;,&quot;redirection&quot;)});if(e&gt;=500)return(0,d.jsx)(d.Fragment,{children:(0,m.__)(&quot;Something is wrong with the server. This is not a problem with Redirection and you will need to resolve the error yourself.&quot;,&quot;redirection&quot;)});if(e&gt;=400&amp;&amp;e&lt;500)return(0,d.jsx)(d.Fragment,{children:U((0,m.__)(&quot;An error page was returned. This is unlikely to be a problem with Redirection. {{support}}What does this mean?{{/support}}.&quot;,&quot;redirection&quot;),{support:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/problems/redirect-returning-404/&quot;})})});if(e&gt;=300&amp;&amp;e&lt;400){if(r)return(0,d.jsxs)(d.Fragment,{children:[(0,m.__)(&quot;Redirected by Redirection.&quot;,&quot;redirection&quot;),&quot; &quot;,(0,d.jsxs)(&quot;span&quot;,{className:&quot;redirection-httpstep__match&quot;,children:[(0,m.__)(&quot;Matches your redirect&quot;,&quot;redirection&quot;),&quot; &quot;,(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-yes&quot;})]})]});const e=t.find(e=&gt;&quot;x-redirect-agent&quot;===e.name||&quot;x-redirect-by&quot;===e.name)||null;return e?&quot;redirection&quot;===e.value.toLowerCase()?(0,d.jsx)(d.Fragment,{children:(0,m.__)(&quot;Redirected by Redirection.&quot;,&quot;redirection&quot;)}):(0,d.jsx)(d.Fragment,{children:U((0,m.sprintf)(
// translators: %1$s is the name of the agent that performed the redirect
// translators: %1$s is the name of the agent that performed the redirect
(0,m.__)(&quot;Redirected by %1$s. {{support}}What does this mean?{{/support}}.&quot;,&quot;redirection&quot;),e.value),{support:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/problems/redirected-by-another-agent/&quot;})})}):(0,d.jsx)(d.Fragment,{children:U((0,m.__)(&quot;Redirected by an unknown agent. {{support}}What does this mean?{{/support}}.&quot;,&quot;redirection&quot;),{support:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/problems/redirected-by-another-agent/&quot;})})})}return e&gt;=200&amp;&amp;e&lt;300?(0,d.jsx)(d.Fragment,{children:(0,m.__)(&quot;Page was loaded.&quot;,&quot;redirection&quot;)}):null}function Em({step:e,isFirst:t,isLast:n,isMatch:r}){const{request:i,status:o,statusMessage:s,headers:a}=e,l=100*Math.floor(o/100);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-httpstep&quot;,children:[(0,d.jsx)(&quot;div&quot;,{className:`redirection-httpstep__status redirection-httpstep__${l&gt;0?l:&quot;500&quot;}`,children:parseInt(o.toString(),10)&gt;0?(0,d.jsx)(z,{url:`https://redirect.li/http/status/code/${o}/`,title:s,children:o}):&quot;Fail&quot;}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-httpstep__details&quot;,children:[(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;code&quot;,{children:i.url})}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(Tm,{status:parseInt(o.toString(),10),statusMessage:s,headers:a,isFirst:t,isMatch:r})})]})]}),!n&amp;&amp;(0,d.jsx)(&quot;div&quot;,{children:(0,d.jsx)(&quot;svg&quot;,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 20 20&quot;,fill:&quot;currentColor&quot;,&quot;aria-hidden&quot;:&quot;true&quot;,children:(0,d.jsx)(&quot;path&quot;,{fillRule:&quot;evenodd&quot;,d:&quot;M16.707 10.293a1 1 0 010 1.414l-6 6a1 1 0 01-1.414 0l-6-6a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l4.293-4.293a1 1 0 011.414 0z&quot;,clipRule:&quot;evenodd&quot;})})})]})}function Pm(e,t,n,r){if(!Array.isArray(e)||!n||!r)return!1;const i=e.find(e=&gt;&quot;x-redirect-agent&quot;===e.name||&quot;x-redirect-by&quot;===e.name),o=e.find(e=&gt;&quot;location&quot;===e.name);if(i&amp;&amp;o){if(&quot;object&quot;==typeof n&amp;&amp;void 0===n.url_from)return&quot;redirection&quot;===i.value.toLowerCase()&amp;&amp;r===t&amp;&amp;km(o.value)===Cm(n);if(&quot;object&quot;==typeof n)return&quot;redirection&quot;===i.value.toLowerCase()&amp;&amp;r===t&amp;&amp;km(o.value,n.server)===Cm(n)}return!1}const Om=function({desiredTarget:e,desiredCode:t,http:n,url:r}){const{steps:i}=n;return!n||&quot;error&quot;!==n.status&amp;&amp;&quot;fail&quot;!==n.status||0!==i.length?(0,d.jsxs)(&quot;div&quot;,{children:[i.map((n,r)=&gt;(0,d.jsx)(Em,{step:n,isFirst:0===r,isLast:r===i.length-1,isMatch:Pm(n.headers,n.status,e,t)},r)),(0,d.jsxs)(&quot;p&quot;,{children:[e&amp;&amp;t&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[U((0,m.__)(&quot;If this is not expected then this {{support}}support page{{/support}} may help.&quot;,&quot;redirection&quot;),{support:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/problems/url-not-redirecting/&quot;})}),&quot; &quot;]}),(0,m.__)(&quot;If your browser is behaving differently then you should clear your browser cache.&quot;,&quot;redirection&quot;)]}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(z,{url:`https://redirect.li/http/?url=${encodeURIComponent(r)}`,className:&quot;button&quot;,children:(0,m.__)(&quot;View full redirect.li results.&quot;,&quot;redirection&quot;)})})]}):(0,d.jsx)(&quot;div&quot;,{children:(0,m.__)(&quot;Unable to check that URL. It may not be valid or accessible.&quot;,&quot;redirection&quot;)})};function Rm({error:e}){return(0,d.jsxs)(&quot;div&quot;,{className:&quot;wpl-modal_error&quot;,children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Error&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Something went wrong obtaining this information. It may work in the future.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;code&quot;,{children:e})})]})}function Nm({url:e,desiredCode:t=0,desiredTarget:n=null}){const{data:r,isLoading:i,isError:o,error:s}=function(e,t){return ct({queryKey:ad.info.http(e),queryFn:async()=&gt;await jt(en(e)),enabled:!!e,staleTime:0,...t})}(e,{enabled:!!e}),a=o&amp;&amp;s&amp;&amp;s.message||&quot;&quot;;if(!i&amp;&amp;!o&amp;&amp;!r)return null;const l=y({&quot;redirection-httpcheck&quot;:!0,&quot;wpl-modal_loading&quot;:i,&quot;redirection-httpcheck_small&quot;:o});return(0,d.jsxs)(&quot;div&quot;,{className:l,children:[i&amp;&amp;(0,d.jsx)(_d,{}),o&amp;&amp;a&amp;&amp;(0,d.jsx)(Rm,{error:a}),!i&amp;&amp;!o&amp;&amp;r&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:U((0,m.sprintf)(
// translators: %s is the URL being checked
// translators: %s is the URL being checked
(0,m.__)(&quot;Check redirect for: {{code}}%s{{/code}}&quot;,&quot;redirection&quot;),e),{code:(0,d.jsx)(&quot;code&quot;,{})})}),(0,d.jsx)(Om,{http:r,url:e,desiredCode:t,desiredTarget:n})]})]})}const Am=function(){const[e,t]=(0,l.useState)(&quot;&quot;),[n,r]=(0,l.useState)(&quot;&quot;),i=n.length&gt;0;return(0,d.jsxs)(&quot;form&quot;,{className:&quot;http-tester&quot;,onSubmit:function(t){t.preventDefault(),e.length&gt;0&amp;&amp;r(e)},children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Redirect Tester&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;Sometimes your browser can cache a URL, making it hard to know if it&#039;s working as expected. Use this service from {{link}}redirect.li{{/link}} to get accurate results.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirect.li&quot;})})}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-httptest__input&quot;,children:[(0,d.jsxs)(&quot;span&quot;,{children:[(0,m.__)(&quot;URL&quot;,&quot;redirection&quot;),&quot;:&quot;]}),(0,d.jsx)(&quot;input&quot;,{className:&quot;regular-text&quot;,type:&quot;text&quot;,value:e,onChange:e=&gt;t(e.target.value),placeholder:(0,m.__)(&quot;Enter full URL, including http:// or https://&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{type:&quot;submit&quot;,className:&quot;button-secondary&quot;,disabled:0===e.length,value:(0,m.__)(&quot;Check&quot;,&quot;redirection&quot;)})]}),i&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;redirection-httptest&quot;,children:(0,d.jsx)(Nm,{url:n})})]})},Im=()=&gt;(0,d.jsxs)(&quot;form&quot;,{action:Redirectioni10n.pluginRoot+&quot;&amp;sub=support&quot;,method:&quot;POST&quot;,children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;hidden&quot;,name:&quot;_wpnonce&quot;,value:jt.nonceMiddleware.nonce}),(0,d.jsx)(&quot;input&quot;,{type:&quot;hidden&quot;,name:&quot;action&quot;,value:&quot;fixit&quot;}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;If the magic button doesn&#039;t work then you should read the error and see if you can fix it manually, otherwise follow the &#039;Need help&#039; section below.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;input&quot;,{type:&quot;submit&quot;,className:&quot;button-primary&quot;,value:(0,m.__)(&quot;⚡️ Magic fix ⚡️&quot;,&quot;redirection&quot;)})})]}),zm=e=&gt;{const{item:t}=e;return(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:t.name}),(0,d.jsxs)(&quot;td&quot;,{children:[(0,d.jsx)(&quot;span&quot;,{className:&quot;plugin-status-&quot;+t.status,children:&quot;good&quot;===t.status?(0,m.__)(&quot;Good&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Problem&quot;,&quot;redirection&quot;)}),&quot; &quot;,t.message]})]})},Fm=e=&gt;{const{status:t}=e,n=t.filter(e=&gt;&quot;good&quot;!==e.status);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;table&quot;,{className:&quot;plugin-status&quot;,children:(0,d.jsx)(&quot;tbody&quot;,{children:t.map((e,t)=&gt;(0,d.jsx)(zm,{item:e},t))})}),n.length&gt;0&amp;&amp;(0,d.jsx)(Im,{})]})},Dm=function(e){const{debug:t}=e,[n,r]=(0,l.useState)(t.database.current),{mutate:i}=Ad({onSuccess:()=&gt;{window.location.reload()}}),{ip_header:o,database:s}=t;return(0,d.jsx)(&quot;table&quot;,{className:&quot;plugin-status&quot;,children:(0,d.jsxs)(&quot;tbody&quot;,{children:[(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Database version&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;td&quot;,{children:[(0,d.jsx)(Sd,{items:[{value:&quot;2.3.1&quot;,label:&quot;2.3.1&quot;},{value:&quot;2.3.2&quot;,label:&quot;2.3.2&quot;},{value:&quot;2.4&quot;,label:&quot;2.4&quot;},{value:&quot;4.0&quot;,label:&quot;4.0&quot;},{value:&quot;4.1&quot;,label:&quot;4.1&quot;},{value:&quot;4.2&quot;,label:&quot;4.2&quot;}],value:n,name:&quot;database_version&quot;,onChange:function(e){r(e.target.value)}}),&quot; &quot;,&quot; &quot;,n!==s.current&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;strong&quot;,{children:(0,m.__)(&quot;Do not change unless advised to do so!&quot;,&quot;redirection&quot;)}),&quot; &quot;,&quot; &quot;,(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary button&quot;,onClick:function(e){e.preventDefault(),i({reason:&quot;database&quot;,current:n})},children:(0,m.__)(&quot;Save&quot;,&quot;redirection&quot;)})]})]})]}),(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;IP Headers&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;td&quot;,{children:Object.keys(o).filter(e=&gt;o[e]).map((e,t)=&gt;(0,d.jsxs)(&quot;code&quot;,{children:[e,&quot; = &quot;,o[e]?o[e]:&quot;-&quot;,&quot; &quot;]},t))})]})]})})},Lm=function(){const e=pe(e=&gt;e.pluginStatus.status),t=pe(e=&gt;e.pluginStatus.debug);return function(){const{setPluginStatus:e}=pe();ct({queryKey:ad.settings.status(),queryFn:async()=&gt;{try{const t=await jt(Zt());return e(t),t}catch(e){throw sd(e)}}})}(),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;WordPress REST API&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Redirection communicates with WordPress through the WordPress REST API. This is a standard part of WordPress, and you will experience problems if you cannot use it.&quot;,&quot;redirection&quot;)}),(0,d.jsx)($d,{}),(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Plugin Status&quot;,&quot;redirection&quot;)}),e.length&gt;0&amp;&amp;(0,d.jsx)(Fm,{status:e}),0===e.length&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;placeholder-inline&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-placeholder__loading&quot;})}),(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Plugin Debug&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;This information is provided for debugging purposes. Be careful making any changes.&quot;,&quot;redirection&quot;)}),t&amp;&amp;(0,d.jsx)(Dm,{debug:t}),!t&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;placeholder-inline&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-placeholder__loading&quot;})})]})},Mm=function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Lm,{}),(0,d.jsx)(Am,{}),(0,d.jsx)(Sm,{})]})};function $m(e,t){if(!1===e)return!1;const n=function(e){try{let t=e;&quot;http:&quot;!==e.slice(0,5)&amp;&amp;&quot;https:&quot;!==e.slice(0,6)&amp;&amp;(t=document.location.protocol+&quot;//&quot;+e);const n=new URL(t);return{protocol:n.protocol,host:n.host,pathname:n.pathname}}catch(e){return{}}}(e);return n.host&amp;&amp;n.host.length&gt;0?t(n):&quot;&quot;}function Um(e){return $m(e,e=&gt;e.protocol+&quot;//&quot;+(e.host||&quot;&quot;)+(e.pathname||&quot;&quot;))}function Bm(e){return $m(e,e=&gt;e.protocol+&quot;//&quot;+(e.host||&quot;&quot;))}const Zm=({domain:e,asDomain:t,onChange:n,onDelete:r,site:i})=&gt;(0,d.jsxs)(&quot;tr&quot;,{className:&quot;redirect-alias__item&quot;,children:[(0,d.jsx)(&quot;td&quot;,{children:(0,d.jsx)(&quot;input&quot;,{className:&quot;regular-text&quot;,type:&quot;text&quot;,name:&quot;domain&quot;,value:e,onChange:n})}),(0,d.jsx)(&quot;td&quot;,{className:&quot;redirect-alias__item__asdomain&quot;,children:e.length&gt;0&amp;&amp;(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(&quot;code&quot;,{children:t}),&quot; ⇒ &quot;,(0,d.jsx)(&quot;code&quot;,{children:i})]})}),(0,d.jsx)(&quot;td&quot;,{className:&quot;redirect-alias__delete&quot;,children:(0,d.jsx)(&quot;button&quot;,{onClick:e=&gt;{e.preventDefault(),r()},children:(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-trash&quot;})})})]}),qm=({aliases:e,siteDomain:t,onChange:n})=&gt;(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Site Aliases&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;A site alias is another domain that you want to be redirected to this site. For example, an old domain, or a subdomain. This will redirect all URLs, including WordPress login and admin.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;You will need to configure your system (DNS and server) to pass requests for these domains to this WordPress install.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;table&quot;,{className:&quot;wp-list-table widefat fixed striped items redirect-aliases table-auto&quot;,children:[(0,d.jsx)(&quot;thead&quot;,{children:(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Aliased Domain&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;th&quot;,{className:&quot;redirect-alias__item__asdomain&quot;,children:(0,m.__)(&quot;Alias&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;th&quot;,{className:&quot;redirect-alias__delete&quot;})]})}),(0,d.jsxs)(&quot;tbody&quot;,{children:[e.map((r,i)=&gt;(0,d.jsx)(Zm,{domain:r,asDomain:(Bm(r)||&quot;&quot;).replace(/https?:\/\//,&quot;&quot;),onChange:t=&gt;((e,t,n,r)=&gt;{const i=t.slice();i[e]=r.target.value,n({aliases:i})})(i,e,n,t),onDelete:()=&gt;((e,t,n)=&gt;{n({aliases:[...t.slice(0,e),...t.slice(e+1)]})})(i,e,n),site:t},i)),0===e.length&amp;&amp;(0,d.jsx)(&quot;tr&quot;,{children:(0,d.jsx)(&quot;td&quot;,{colSpan:3,children:(0,m.__)(&quot;No aliases&quot;,&quot;redirection&quot;)})})]})]}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary&quot;,onClick:t=&gt;((e,t,n)=&gt;{n.preventDefault(),t({aliases:e.concat(&quot;&quot;).slice(0,20)})})(e,n,t),children:(0,m.__)(&quot;Add Alias&quot;,&quot;redirection&quot;)})})]}),Hm=({relocate:e,siteDomain:t,onChange:n})=&gt;{const r=((e,t)=&gt;{if(t){const n=Um(t);if(n&amp;&amp;n.length&gt;0)return(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;code&quot;,{children:e}),&quot; ⇒ &quot;,(0,d.jsx)(&quot;code&quot;,{children:n})]})}return null})(t,e);return(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Relocate Site&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Want to redirect the entire site? Enter a domain to redirect everything, except WordPress login and admin. Enabling this option will disable any site aliases or canonical settings.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsxs)(&quot;strong&quot;,{children:[(0,m.__)(&quot;Relocate to domain&quot;,&quot;redirection&quot;),&quot;:&quot;]}),&quot; &quot;,(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;relocate&quot;,value:e||&quot;&quot;,onChange:e=&gt;n({relocate:e.target.value})})]}),r]})};function Wm(e,t,n){return e=e.replace(/https?:\/\//,&quot;&quot;),&quot;www&quot;===n?e=&quot;www.&quot;+e.replace(&quot;www.&quot;,&quot;&quot;):&quot;nowww&quot;===n&amp;&amp;(e=e.replace(&quot;www.&quot;,&quot;&quot;)),(t?&quot;https://&quot;:&quot;http://&quot;)+e}const Gm=function({https:e,preferredDomain:t,siteDomain:n,onChange:r}){const i=function(e,t,n){return!(!t||e.includes(&quot;https:&quot;))||&quot;www&quot;===n&amp;&amp;!e.includes(&quot;www.&quot;)||!(&quot;nowww&quot;!==n||!e.includes(&quot;www.&quot;))}(n,e,t),o=e=&gt;{r({[e.target.name]:e.target.value})};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Canonical Settings&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;canonical-https&quot;,type:&quot;checkbox&quot;,name:&quot;https&quot;,onChange:e=&gt;{r({[e.target.name]:e.target.checked})},checked:e}),&quot; &quot;,(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;canonical-https&quot;,children:U((0,m.sprintf)(
// translators: %(site)s is HTTP site URL, %(siteHTTPS)s is HTTPS site URL
// translators: %(site)s is HTTP site URL, %(siteHTTPS)s is HTTPS site URL
(0,m.__)(&quot;Force a redirect from HTTP to HTTPS - {{code}}%(site)s{{/code}} ⇒ {{code}}%(siteHTTPS)s{{/code}}&quot;,&quot;redirection&quot;),{site:n.replace(&quot;https&quot;,&quot;http&quot;),siteHTTPS:n.replace(&quot;http:&quot;,&quot;https:&quot;)}),{code:(0,d.jsx)(&quot;code&quot;,{})})})]}),e&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;inline-notice inline-warning&quot;,children:(0,d.jsx)(&quot;p&quot;,{children:U(
// translators: %(strong)s is the warning title
// translators: %(strong)s is the warning title
(0,m.__)(&quot;{{strong}}Warning{{/strong}}: ensure your HTTPS is working before forcing a redirect.&quot;,&quot;redirection&quot;),{strong:(0,d.jsx)(&quot;strong&quot;,{})})})}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;Preferred domain&quot;,&quot;redirection&quot;),&quot;:&quot;]}),(s=n,[{
// translators: %(site)s is the site domain
label:U((0,m.sprintf)(
// translators: %(site)s is the site domain
// translators: %(site)s is the site domain
(0,m.__)(&quot;Don&#039;t set a preferred domain - {{code}}%(site)s{{/code}}&quot;,&quot;redirection&quot;),{site:s}),{code:(0,d.jsx)(&quot;code&quot;,{})}),value:&quot;&quot;},{
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
label:U((0,m.sprintf)(
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
(0,m.__)(&quot;Remove www from domain - {{code}}%(siteWWW)s{{/code}} ⇒ {{code}}%(site)s{{/code}}&quot;,&quot;redirection&quot;),{site:s.replace(&quot;www.&quot;,&quot;&quot;),siteWWW:s.replace(&quot;www.&quot;,&quot;&quot;).replace(&quot;://&quot;,&quot;://www.&quot;)}),{code:(0,d.jsx)(&quot;code&quot;,{})}),value:&quot;nowww&quot;},{
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
label:U((0,m.sprintf)(
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
// translators: %(site)s is the site domain without www, %(siteWWW)s is the site domain with www
(0,m.__)(&quot;Add www to domain - {{code}}%(site)s{{/code}} ⇒ {{code}}%(siteWWW)s{{/code}}&quot;,&quot;redirection&quot;),{site:s.replace(&quot;www.&quot;,&quot;&quot;),siteWWW:s.replace(&quot;www.&quot;,&quot;&quot;).replace(&quot;://&quot;,&quot;://www.&quot;)}),{code:(0,d.jsx)(&quot;code&quot;,{})}),value:&quot;www&quot;}]).map(e=&gt;{const n=`canonical-preferred-${e.value||&quot;none&quot;}`;return(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{id:n,type:&quot;radio&quot;,name:&quot;preferred_domain&quot;,value:e.value,onChange:o,checked:e.value===t}),&quot; &quot;,(0,d.jsx)(&quot;label&quot;,{htmlFor:n,children:e.label})]},e.value)}),i&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;inline-notice inline-error&quot;,children:(0,d.jsx)(&quot;p&quot;,{children:U((0,m.sprintf)(
// translators: %(current)s is current site URL, %(site)s is recommended canonical URL
// translators: %(current)s is current site URL, %(site)s is recommended canonical URL
(0,m.__)(&quot;You should update your site URL to match your canonical settings: {{code}}%(current)s{{/code}} ⇒ {{code}}%(site)s{{/code}}&quot;,&quot;redirection&quot;),{current:n,site:Wm(n,e,t)}),{code:(0,d.jsx)(&quot;code&quot;,{})})})})]});var s},Vm=&quot;undefined&quot;!=typeof document?l.useLayoutEffect:()=&gt;{};function Qm(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=&gt;t.defaultPrevented,t.isPropagationStopped=()=&gt;t.cancelBubble,t.persist=()=&gt;{},t}function Km(e){let t=(0,l.useRef)({isFocused:!1,observer:null});return Vm(()=&gt;{const e=t.current;return()=&gt;{e.observer&amp;&amp;(e.observer.disconnect(),e.observer=null)}},[]),(0,l.useCallback)(n=&gt;{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,i=n=&gt;{if(t.current.isFocused=!1,r.disabled){let t=Qm(n);null==e||e(t)}t.current.observer&amp;&amp;(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener(&quot;focusout&quot;,i,{once:!0}),t.current.observer=new MutationObserver(()=&gt;{if(t.current.isFocused&amp;&amp;r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(&quot;blur&quot;,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(&quot;focusout&quot;,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[&quot;disabled&quot;]})}},[e])}function Jm(e){var t;if(&quot;undefined&quot;==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&amp;&amp;n.some(t=&gt;e.test(t.brand))||e.test(window.navigator.userAgent)}function Ym(e){var t;return&quot;undefined&quot;!=typeof window&amp;&amp;null!=window.navigator&amp;&amp;e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Xm(e){let t=null;return()=&gt;(null==t&amp;&amp;(t=e()),t)}const eg=Xm(function(){return Ym(/^Mac/i)}),tg=Xm(function(){return Ym(/^iPhone/i)}),ng=Xm(function(){return Ym(/^iPad/i)||eg()&amp;&amp;navigator.maxTouchPoints&gt;1}),rg=Xm(function(){return tg()||ng()}),ig=(Xm(function(){return eg()||rg()}),Xm(function(){return Jm(/AppleWebKit/i)&amp;&amp;!og()})),og=Xm(function(){return Jm(/Chrome/i)}),sg=Xm(function(){return Jm(/Android/i)}),ag=Xm(function(){return Jm(/Firefox/i)});let lg=null;function cg(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=t;ag()&amp;&amp;(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith(&quot;key&quot;))&amp;&amp;&quot;_blank&quot;===e.target&amp;&amp;(eg()?o=!0:s=!0);let c=ig()&amp;&amp;eg()&amp;&amp;!ng()?new KeyboardEvent(&quot;keydown&quot;,{keyIdentifier:&quot;Enter&quot;,metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent(&quot;click&quot;,{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});cg.isOpening=n,function(e){if(function(){if(null==lg){lg=!1;try{document.createElement(&quot;div&quot;).focus({get preventScroll(){return lg=!0,!0}})}catch{}}return lg}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&amp;&amp;t!==r;)(t.offsetHeight&lt;t.scrollHeight||t.offsetWidth&lt;t.scrollWidth)&amp;&amp;n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&amp;&amp;n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}(e),e.dispatchEvent(c),cg.isOpening=!1}cg.isOpening=!1;const ug=e=&gt;{var t;return null!==(t=null==e?void 0:e.ownerDocument)&amp;&amp;void 0!==t?t:document},dg=e=&gt;e&amp;&amp;&quot;window&quot;in e&amp;&amp;e.window===e?e:ug(e).defaultView||window;let pg=null,hg=&quot;keyboard&quot;;const fg=new Set;let mg=new Map,gg=!1,yg=!1;const vg={Tab:!0,Escape:!0};function _g(e,t){for(let n of fg)n(e,t)}function bg(e){gg=!0,!cg.isOpening&amp;&amp;function(e){return!(e.metaKey||!eg()&amp;&amp;e.altKey||e.ctrlKey||&quot;Control&quot;===e.key||&quot;Shift&quot;===e.key||&quot;Meta&quot;===e.key)}(e)&amp;&amp;(pg=&quot;keyboard&quot;,hg=&quot;keyboard&quot;,_g(&quot;keyboard&quot;,e))}function xg(e){pg=&quot;pointer&quot;,hg=&quot;pointerType&quot;in e?e.pointerType:&quot;mouse&quot;,&quot;mousedown&quot;!==e.type&amp;&amp;&quot;pointerdown&quot;!==e.type||(gg=!0,_g(&quot;pointer&quot;,e))}function wg(e){var t;!cg.isOpening&amp;&amp;(&quot;&quot;===(t=e).pointerType&amp;&amp;t.isTrusted||(sg()&amp;&amp;t.pointerType?&quot;click&quot;===t.type&amp;&amp;1===t.buttons:0===t.detail&amp;&amp;!t.pointerType))&amp;&amp;(gg=!0,pg=&quot;virtual&quot;,hg=&quot;virtual&quot;)}function jg(e){e.target!==window&amp;&amp;e.target!==document&amp;&amp;e.isTrusted&amp;&amp;(gg||yg||(pg=&quot;virtual&quot;,hg=&quot;virtual&quot;,_g(&quot;virtual&quot;,e)),gg=!1,yg=!1)}function Sg(){gg=!1,yg=!0}function kg(e){if(&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document||mg.get(dg(e)))return;const t=dg(e),n=ug(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){gg=!0,r.apply(this,arguments)},n.addEventListener(&quot;keydown&quot;,bg,!0),n.addEventListener(&quot;keyup&quot;,bg,!0),n.addEventListener(&quot;click&quot;,wg,!0),t.addEventListener(&quot;focus&quot;,jg,!0),t.addEventListener(&quot;blur&quot;,Sg,!1),&quot;undefined&quot;!=typeof PointerEvent&amp;&amp;(n.addEventListener(&quot;pointerdown&quot;,xg,!0),n.addEventListener(&quot;pointermove&quot;,xg,!0),n.addEventListener(&quot;pointerup&quot;,xg,!0)),t.addEventListener(&quot;beforeunload&quot;,()=&gt;{Cg(e)},{once:!0}),mg.set(t,{focus:r})}const Cg=(e,t)=&gt;{const n=dg(e),r=ug(e);t&amp;&amp;r.removeEventListener(&quot;DOMContentLoaded&quot;,t),mg.has(n)&amp;&amp;(n.HTMLElement.prototype.focus=mg.get(n).focus,r.removeEventListener(&quot;keydown&quot;,bg,!0),r.removeEventListener(&quot;keyup&quot;,bg,!0),r.removeEventListener(&quot;click&quot;,wg,!0),n.removeEventListener(&quot;focus&quot;,jg,!0),n.removeEventListener(&quot;blur&quot;,Sg,!1),&quot;undefined&quot;!=typeof PointerEvent&amp;&amp;(r.removeEventListener(&quot;pointerdown&quot;,xg,!0),r.removeEventListener(&quot;pointermove&quot;,xg,!0),r.removeEventListener(&quot;pointerup&quot;,xg,!0)),mg.delete(n))};function Tg(){return&quot;pointer&quot;!==pg}&quot;undefined&quot;!=typeof document&amp;&amp;function(e){const t=ug(e);let n;&quot;loading&quot;!==t.readyState?kg(e):(n=()=&gt;{kg(e)},t.addEventListener(&quot;DOMContentLoaded&quot;,n))}();const Eg=new Set([&quot;checkbox&quot;,&quot;radio&quot;,&quot;range&quot;,&quot;color&quot;,&quot;file&quot;,&quot;image&quot;,&quot;button&quot;,&quot;submit&quot;,&quot;reset&quot;]);function Pg(e,t){return!(!t||!e)&amp;&amp;e.contains(t)}const Og=(e=document)=&gt;e.activeElement;function Rg(e){return e.target}function Ng(){let e=(0,l.useRef)(new Map),t=(0,l.useCallback)((t,n,r,i)=&gt;{let o=(null==i?void 0:i.once)?(...t)=&gt;{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)},[]),n=(0,l.useCallback)((t,n,r,i)=&gt;{var o;let s=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;t.removeEventListener(n,s,i),e.current.delete(r)},[]),r=(0,l.useCallback)(()=&gt;{e.current.forEach((e,t)=&gt;{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,l.useEffect)(()=&gt;r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ag(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=(0,l.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Ng(),c=(0,l.useCallback)(e=&gt;{Pg(e.currentTarget,e.target)&amp;&amp;o.current.isFocusWithin&amp;&amp;!Pg(e.currentTarget,e.relatedTarget)&amp;&amp;(o.current.isFocusWithin=!1,a(),n&amp;&amp;n(e),i&amp;&amp;i(!1))},[n,i,o,a]),u=Km(c),d=(0,l.useCallback)(e=&gt;{if(!Pg(e.currentTarget,e.target))return;const t=ug(e.target),n=Og(t);if(!o.current.isFocusWithin&amp;&amp;n===Rg(e.nativeEvent)){r&amp;&amp;r(e),i&amp;&amp;i(!0),o.current.isFocusWithin=!0,u(e);let n=e.currentTarget;s(t,&quot;focus&quot;,e=&gt;{if(o.current.isFocusWithin&amp;&amp;!Pg(n,e.target)){let r=new t.defaultView.FocusEvent(&quot;blur&quot;,{relatedTarget:e.target});!function(e,t){Object.defineProperty(e,&quot;target&quot;,{value:t}),Object.defineProperty(e,&quot;currentTarget&quot;,{value:t})}(r,n);let i=Qm(r);c(i)}},{capture:!0})}},[r,i,u,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}function Ig(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,l.useRef)({isFocused:!1,isFocusVisible:t||Tg()}),[o,s]=(0,l.useState)(!1),[a,c]=(0,l.useState)(()=&gt;i.current.isFocused&amp;&amp;i.current.isFocusVisible),u=(0,l.useCallback)(()=&gt;c(i.current.isFocused&amp;&amp;i.current.isFocusVisible),[]),d=(0,l.useCallback)(e=&gt;{i.current.isFocused=e,i.current.isFocusVisible=Tg(),s(e),u()},[u]);var p,h,f;p=e=&gt;{i.current.isFocusVisible=e,u()},h=[n,o],f={enabled:o,isTextInput:n},kg(),(0,l.useEffect)(()=&gt;{if(!1===(null==f?void 0:f.enabled))return;let e=(e,t)=&gt;{(function(e,t,n){let r=ug(null==n?void 0:n.target);const i=&quot;undefined&quot;!=typeof window?dg(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o=&quot;undefined&quot;!=typeof window?dg(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=&quot;undefined&quot;!=typeof window?dg(null==n?void 0:n.target).HTMLElement:HTMLElement,a=&quot;undefined&quot;!=typeof window?dg(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof i&amp;&amp;!Eg.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof s&amp;&amp;r.activeElement.isContentEditable)&amp;&amp;&quot;keyboard&quot;===t&amp;&amp;n instanceof a&amp;&amp;!vg[n.key])})(!!(null==f?void 0:f.isTextInput),e,t)&amp;&amp;p(Tg())};return fg.add(e),()=&gt;{fg.delete(e)}},h);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=(0,l.useCallback)(e=&gt;{if(e.target===e.currentTarget)return r&amp;&amp;r(e),i&amp;&amp;i(!1),!0},[r,i]),s=Km(o),a=(0,l.useCallback)(e=&gt;{const t=ug(e.target),r=t?Og(t):Og();e.target===e.currentTarget&amp;&amp;r===Rg(e.nativeEvent)&amp;&amp;(n&amp;&amp;n(e),i&amp;&amp;i(!0),s(e))},[i,n,s]);return{focusProps:{onFocus:!t&amp;&amp;(n||i||r)?a:void 0,onBlur:t||!r&amp;&amp;!i?void 0:o}}}({isDisabled:r,onFocusChange:d}),{focusWithinProps:g}=Ag({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?g:m}}let zg=!1,Fg=0;function Dg(e){&quot;touch&quot;===e.pointerType&amp;&amp;(zg=!0,setTimeout(()=&gt;{zg=!1},50))}function Lg(){if(&quot;undefined&quot;!=typeof document)return 0===Fg&amp;&amp;&quot;undefined&quot;!=typeof PointerEvent&amp;&amp;document.addEventListener(&quot;pointerup&quot;,Dg),Fg++,()=&gt;{Fg--,Fg&gt;0||&quot;undefined&quot;!=typeof PointerEvent&amp;&amp;document.removeEventListener(&quot;pointerup&quot;,Dg)}}function Mg(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=(0,l.useState)(!1),a=(0,l.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:&quot;&quot;,target:null}).current;(0,l.useEffect)(Lg,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=Ng(),{hoverProps:d,triggerHoverEnd:p}=(0,l.useMemo)(()=&gt;{let e=(e,t)=&gt;{let i=a.target;a.pointerType=&quot;&quot;,a.target=null,&quot;touch&quot;!==t&amp;&amp;a.isHovered&amp;&amp;i&amp;&amp;(a.isHovered=!1,u(),r&amp;&amp;r({type:&quot;hoverend&quot;,target:i,pointerType:t}),n&amp;&amp;n(!1),s(!1))},o={};return&quot;undefined&quot;!=typeof PointerEvent&amp;&amp;(o.onPointerEnter=r=&gt;{zg&amp;&amp;&quot;mouse&quot;===r.pointerType||((r,o)=&gt;{if(a.pointerType=o,i||&quot;touch&quot;===o||a.isHovered||!Pg(r.currentTarget,r.target))return;a.isHovered=!0;let l=r.currentTarget;a.target=l,c(ug(r.target),&quot;pointerover&quot;,t=&gt;{a.isHovered&amp;&amp;a.target&amp;&amp;!Pg(a.target,t.target)&amp;&amp;e(0,t.pointerType)},{capture:!0}),t&amp;&amp;t({type:&quot;hoverstart&quot;,target:l,pointerType:o}),n&amp;&amp;n(!0),s(!0)})(r,r.pointerType)},o.onPointerLeave=t=&gt;{!i&amp;&amp;Pg(t.currentTarget,t.target)&amp;&amp;e(0,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,r,i,a,c,u]);return(0,l.useEffect)(()=&gt;{i&amp;&amp;p({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}var $g=Object.defineProperty,Ug=(e,t,n)=&gt;(((e,t,n)=&gt;{t in e?$g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,&quot;symbol&quot;!=typeof t?t+&quot;&quot;:t,n),n);let Bg=new class{constructor(){Ug(this,&quot;current&quot;,this.detect()),Ug(this,&quot;handoffState&quot;,&quot;pending&quot;),Ug(this,&quot;currentId&quot;,0)}set(e){this.current!==e&amp;&amp;(this.handoffState=&quot;pending&quot;,this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return&quot;server&quot;===this.current}get isClient(){return&quot;client&quot;===this.current}detect(){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;server&quot;:&quot;client&quot;}handoff(){&quot;pending&quot;===this.handoffState&amp;&amp;(this.handoffState=&quot;complete&quot;)}get isHandoffComplete(){return&quot;complete&quot;===this.handoffState}};function Zg(e){var t;return Bg.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function qg(e){var t,n;return Bg.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function Hg(e){var t,n;return null!=(n=null==(t=qg(e))?void 0:t.activeElement)?n:null}function Wg(e){&quot;function&quot;==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=&gt;setTimeout(()=&gt;{throw e}))}function Gg(){let e=[],t={addEventListener:(e,n,r,i)=&gt;(e.addEventListener(n,r,i),t.add(()=&gt;e.removeEventListener(n,r,i))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=&gt;cancelAnimationFrame(n))},nextFrame:(...e)=&gt;t.requestAnimationFrame(()=&gt;t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=&gt;clearTimeout(n))},microTask(...e){let n={current:!0};return Wg(()=&gt;{n.current&amp;&amp;e[0]()}),t.add(()=&gt;{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=&gt;{Object.assign(e.style,{[t]:r})})},group(e){let t=Gg();return e(t),this.add(()=&gt;t.dispose())},add:t=&gt;(e.includes(t)||e.push(t),()=&gt;{let n=e.indexOf(t);if(n&gt;=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Vg(){let[e]=(0,l.useState)(Gg);return(0,l.useEffect)(()=&gt;()=&gt;e.dispose(),[e]),e}let Qg=(e,t)=&gt;{Bg.isServer?(0,l.useEffect)(e,t):(0,l.useLayoutEffect)(e,t)};function Kg(e){let t=(0,l.useRef)(e);return Qg(()=&gt;{t.current=e},[e]),t}let Jg=function(e){let t=Kg(e);return l.useCallback((...e)=&gt;t.current(...e),[t])};function Yg({disabled:e=!1}={}){let t=(0,l.useRef)(null),[n,r]=(0,l.useState)(!1),i=Vg(),o=Jg(()=&gt;{t.current=null,r(!1),i.dispose()}),s=Jg(e=&gt;{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=Zg(e.currentTarget);i.addEventListener(n,&quot;pointerup&quot;,o,!1),i.addEventListener(n,&quot;pointermove&quot;,e=&gt;{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right&lt;t.left||e.left&gt;t.right||e.bottom&lt;t.top||e.top&gt;t.bottom)}(n,t.current.getBoundingClientRect()))}},!1),i.addEventListener(n,&quot;pointercancel&quot;,o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}function Xg(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function ey(e,t,n=!1){let[r,i]=(0,l.useState)(()=&gt;Xg(t));return Qg(()=&gt;{if(!t||!e)return;let n=Gg();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),i(e=&gt;{let n=Xg(t);return n.width===e.width&amp;&amp;n.height===e.height?e:n})}),()=&gt;{n.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}function ty(e){return function(e){return&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;&quot;nodeType&quot;in e}(e)&amp;&amp;&quot;tagName&quot;in e}function ny(e){return ty(e)&amp;&amp;&quot;accessKey&quot;in e}function ry(e){return ty(e)&amp;&amp;&quot;tabIndex&quot;in e}function iy(e){return ny(e)&amp;&amp;&quot;FIELDSET&quot;===e.nodeName}function oy(e){return ny(e)&amp;&amp;&quot;LEGEND&quot;===e.nodeName}function sy(e,t,...n){if(e in t){let r=t[e];return&quot;function&quot;==typeof r?r(...n):r}let r=new Error(`Tried to handle &quot;${e}&quot; but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=&gt;`&quot;${e}&quot;`).join(&quot;, &quot;)}.`);throw Error.captureStackTrace&amp;&amp;Error.captureStackTrace(r,sy),r}let ay=[&quot;[contentEditable=true]&quot;,&quot;[tabindex]&quot;,&quot;a[href]&quot;,&quot;area[href]&quot;,&quot;button:not([disabled])&quot;,&quot;iframe&quot;,&quot;input:not([disabled])&quot;,&quot;select:not([disabled])&quot;,&quot;details&gt;summary&quot;,&quot;textarea:not([disabled])&quot;].map(e=&gt;`${e}:not([tabindex=&#039;-1&#039;])`).join(&quot;,&quot;),ly=[&quot;[data-autofocus]&quot;].map(e=&gt;`${e}:not([tabindex=&#039;-1&#039;])`).join(&quot;,&quot;);var cy,uy=((cy=uy||{})[cy.First=1]=&quot;First&quot;,cy[cy.Previous=2]=&quot;Previous&quot;,cy[cy.Next=4]=&quot;Next&quot;,cy[cy.Last=8]=&quot;Last&quot;,cy[cy.WrapAround=16]=&quot;WrapAround&quot;,cy[cy.NoScroll=32]=&quot;NoScroll&quot;,cy[cy.AutoFocus=64]=&quot;AutoFocus&quot;,cy),dy=(e=&gt;(e[e.Error=0]=&quot;Error&quot;,e[e.Overflow=1]=&quot;Overflow&quot;,e[e.Success=2]=&quot;Success&quot;,e[e.Underflow=3]=&quot;Underflow&quot;,e))(dy||{}),py=(e=&gt;(e[e.Previous=-1]=&quot;Previous&quot;,e[e.Next=1]=&quot;Next&quot;,e))(py||{});function hy(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ay)).sort((e,t)=&gt;Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var fy=(e=&gt;(e[e.Strict=0]=&quot;Strict&quot;,e[e.Loose=1]=&quot;Loose&quot;,e))(fy||{});function my(e,t=0){var n;return e!==(null==(n=Zg(e))?void 0:n.body)&amp;&amp;sy(t,{0:()=&gt;e.matches(ay),1(){let t=e;for(;null!==t;){if(t.matches(ay))return!0;t=t.parentElement}return!1}})}var gy=(e=&gt;(e[e.Keyboard=0]=&quot;Keyboard&quot;,e[e.Mouse=1]=&quot;Mouse&quot;,e))(gy||{});&quot;undefined&quot;!=typeof window&amp;&amp;&quot;undefined&quot;!=typeof document&amp;&amp;(document.addEventListener(&quot;keydown&quot;,e=&gt;{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible=&quot;&quot;)},!0),document.addEventListener(&quot;click&quot;,e=&gt;{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&amp;&amp;(document.documentElement.dataset.headlessuiFocusVisible=&quot;&quot;)},!0));let yy=[&quot;textarea&quot;,&quot;input&quot;].join(&quot;,&quot;);function vy(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length&gt;0?qg(e[0]):document:qg(e),s=Array.isArray(e)?n?function(e,t=e=&gt;e){return e.slice().sort((e,n)=&gt;{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&amp;Node.DOCUMENT_POSITION_FOLLOWING?-1:o&amp;Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:64&amp;t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ly)).sort((e,t)=&gt;Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):hy(e);i.length&gt;0&amp;&amp;s.length&gt;1&amp;&amp;(s=s.filter(e=&gt;!i.some(t=&gt;null!=t&amp;&amp;&quot;current&quot;in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:null==o?void 0:o.activeElement;let a,l=(()=&gt;{if(5&amp;t)return 1;if(10&amp;t)return-1;throw new Error(&quot;Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last&quot;)})(),c=(()=&gt;{if(1&amp;t)return 0;if(2&amp;t)return Math.max(0,s.indexOf(r))-1;if(4&amp;t)return Math.max(0,s.indexOf(r))+1;if(8&amp;t)return s.length-1;throw new Error(&quot;Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last&quot;)})(),u=32&amp;t?{preventScroll:!0}:{},d=0,p=s.length;do{if(d&gt;=p||d+p&lt;=0)return 0;let e=c+d;if(16&amp;t)e=(e+p)%p;else{if(e&lt;0)return 3;if(e&gt;=p)return 1}a=s[e],null==a||a.focus(u),d+=l}while(a!==Hg(a));return 6&amp;t&amp;&amp;function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,yy))&amp;&amp;n}(a)&amp;&amp;a.select(),2}function _y(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&amp;&amp;window.navigator.maxTouchPoints&gt;0}function by(){return _y()||/Android/gi.test(window.navigator.userAgent)}function xy(e,t,n,r){let i=Kg(n);(0,l.useEffect)(()=&gt;{if(e)return document.addEventListener(t,n,r),()=&gt;document.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function wy(e,t,n,r){let i=Kg(n);(0,l.useEffect)(()=&gt;{if(e)return window.addEventListener(t,n,r),()=&gt;window.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function jy(e,t,n){let r=Kg(n),i=(0,l.useCallback)(function(e,n){if(e.defaultPrevented)return;let i=n(e);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let o=function e(t){return&quot;function&quot;==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&amp;&amp;(t.contains(i)||e.composed&amp;&amp;e.composedPath().includes(t)))return;return!my(i,fy.Loose)&amp;&amp;-1!==i.tabIndex&amp;&amp;e.preventDefault(),r.current(e,i)},[r,t]),o=(0,l.useRef)(null);xy(e,&quot;pointerdown&quot;,e=&gt;{var t,n;by()||(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),xy(e,&quot;pointerup&quot;,e=&gt;{if(by()||!o.current)return;let t=o.current;return o.current=null,i(e,()=&gt;t)},!0);let s=(0,l.useRef)({x:0,y:0});xy(e,&quot;touchstart&quot;,e=&gt;{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY},!0),xy(e,&quot;touchend&quot;,e=&gt;{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)&gt;=30||Math.abs(n-s.current.y)&gt;=30))return i(e,()=&gt;ry(e.target)?e.target:null)},!0),wy(e,&quot;blur&quot;,e=&gt;i(e,()=&gt;{return ny(e=window.document.activeElement)&amp;&amp;&quot;IFRAME&quot;===e.nodeName?window.document.activeElement:null;var e}),!0)}function Sy(...e){return(0,l.useMemo)(()=&gt;Zg(...e),[...e])}function ky(...e){return Array.from(new Set(e.flatMap(e=&gt;&quot;string&quot;==typeof e?e.split(&quot; &quot;):[]))).filter(Boolean).join(&quot; &quot;)}var Cy,Ty=(e=&gt;(e[e.None=0]=&quot;None&quot;,e[e.RenderStrategy=1]=&quot;RenderStrategy&quot;,e[e.Static=2]=&quot;Static&quot;,e))(Ty||{}),Ey=((Cy=Ey||{})[Cy.Unmount=0]=&quot;Unmount&quot;,Cy[Cy.Hidden=1]=&quot;Hidden&quot;,Cy);function Py(){let e=function(){let e=(0,l.useRef)([]),t=(0,l.useCallback)(t=&gt;{for(let n of e.current)null!=n&amp;&amp;(&quot;function&quot;==typeof n?n(t):n.current=t)},[]);return(...n)=&gt;{if(!n.every(e=&gt;null==e))return e.current=n,t}}();return(0,l.useCallback)(t=&gt;function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=null!=a?a:Ry;let l=Ny(t,e);if(o)return Oy(l,n,r,s,a);let c=null!=i?i:0;if(2&amp;c){let{static:e=!1,...t}=l;if(e)return Oy(t,n,r,s,a)}if(1&amp;c){let{unmount:e=!0,...t}=l;return sy(e?0:1,{0:()=&gt;null,1:()=&gt;Oy({...t,hidden:!0,style:{display:&quot;none&quot;}},n,r,s,a)})}return Oy(l,n,r,s,a)}({mergeRefs:e,...t}),[e])}function Oy(e,t={},n,r,i){let{as:o=n,children:s,refName:a=&quot;ref&quot;,...c}=Fy(e,[&quot;unmount&quot;,&quot;static&quot;]),u=void 0!==e.ref?{[a]:e.ref}:{},d=&quot;function&quot;==typeof s?s(t):s;&quot;className&quot;in c&amp;&amp;c.className&amp;&amp;&quot;function&quot;==typeof c.className&amp;&amp;(c.className=c.className(t)),c[&quot;aria-labelledby&quot;]&amp;&amp;c[&quot;aria-labelledby&quot;]===c.id&amp;&amp;(c[&quot;aria-labelledby&quot;]=void 0);let p={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))&quot;boolean&quot;==typeof i&amp;&amp;(e=!0),!0===i&amp;&amp;n.push(r.replace(/([A-Z])/g,e=&gt;`-${e.toLowerCase()}`));if(e){p[&quot;data-headlessui-state&quot;]=n.join(&quot; &quot;);for(let e of n)p[`data-${e}`]=&quot;&quot;}}if(Ly(o)&amp;&amp;(Object.keys(zy(c)).length&gt;0||Object.keys(zy(p)).length&gt;0)){if(!(!(0,l.isValidElement)(d)||Array.isArray(d)&amp;&amp;d.length&gt;1||function(e){return Ly(e.type)}(d))){let e=d.props,t=null==e?void 0:e.className,n=&quot;function&quot;==typeof t?(...e)=&gt;ky(t(...e),c.className):ky(t,c.className),r=n?{className:n}:{},o=Ny(d.props,zy(Fy(c,[&quot;ref&quot;])));for(let e in p)e in o&amp;&amp;delete p[e];return(0,l.cloneElement)(d,Object.assign({},o,p,u,{ref:i(Dy(d),u.ref)},r))}if(Object.keys(zy(c)).length&gt;0)throw new Error([&#039;Passing props on &quot;Fragment&quot;!&#039;,&quot;&quot;,`The current component &lt;${r} /&gt; is rendering a &quot;Fragment&quot;.`,&quot;However we need to passthrough the following props:&quot;,Object.keys(zy(c)).concat(Object.keys(zy(p))).map(e=&gt;`  - ${e}`).join(&quot;\n&quot;),&quot;&quot;,&quot;You can apply a few solutions:&quot;,[&#039;Add an `as=&quot;...&quot;` prop, to ensure that we render an actual element instead of a &quot;Fragment&quot;.&#039;,&quot;Render a single element as the child so that we can forward the props onto that element.&quot;].map(e=&gt;`  - ${e}`).join(&quot;\n&quot;)].join(&quot;\n&quot;))}return(0,l.createElement)(o,Object.assign({},Fy(c,[&quot;ref&quot;]),!Ly(o)&amp;&amp;u,!Ly(o)&amp;&amp;p),d)}function Ry(...e){return e.every(e=&gt;null==e)?void 0:t=&gt;{for(let n of e)null!=n&amp;&amp;(&quot;function&quot;==typeof n?n(t):n.current=t)}}function Ny(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith(&quot;on&quot;)&amp;&amp;&quot;function&quot;==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t[&quot;aria-disabled&quot;])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&amp;&amp;(n[e]=[e=&gt;{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let i=n[e];for(let e of i){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&amp;&amp;t.defaultPrevented)return;e(t,...r)}}});return t}function Ay(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith(&quot;on&quot;)&amp;&amp;&quot;function&quot;==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function Iy(e){var t;return Object.assign((0,l.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function zy(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&amp;&amp;delete t[e];return t}function Fy(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&amp;&amp;delete n[e];return n}function Dy(e){return l.version.split(&quot;.&quot;)[0]&gt;=&quot;19&quot;?e.props.ref:e.ref}function Ly(e){return e===l.Fragment||e===Symbol.for(&quot;react.fragment&quot;)}var My=(e=&gt;(e[e.None=1]=&quot;None&quot;,e[e.Focusable=2]=&quot;Focusable&quot;,e[e.Hidden=4]=&quot;Hidden&quot;,e))(My||{});let $y=Iy(function(e,t){var n;let{features:r=1,...i}=e,o={ref:t,&quot;aria-hidden&quot;:!(2&amp;~r)||(null!=(n=i[&quot;aria-hidden&quot;])?n:void 0),hidden:!(4&amp;~r)||void 0,style:{position:&quot;fixed&quot;,top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:&quot;hidden&quot;,clip:&quot;rect(0, 0, 0, 0)&quot;,whiteSpace:&quot;nowrap&quot;,borderWidth:&quot;0&quot;,...!(4&amp;~r)&amp;&amp;!!(2&amp;~r)&amp;&amp;{display:&quot;none&quot;}}};return Py()({ourProps:o,theirProps:i,slot:{},defaultTag:&quot;span&quot;,name:&quot;Hidden&quot;})}),Uy=(0,l.createContext)(null);function By({children:e,node:t}){let[n,r]=(0,l.useState)(null),i=Zy(null!=t?t:n);return l.createElement(Uy.Provider,{value:i},e,null===i&amp;&amp;l.createElement($y,{features:My.Hidden,ref:e=&gt;{var t,n;if(e)for(let i of null!=(n=null==(t=Zg(e))?void 0:t.querySelectorAll(&quot;html &gt; *, body &gt; *&quot;))?n:[])if(i!==document.body&amp;&amp;i!==document.head&amp;&amp;ty(i)&amp;&amp;null!=i&amp;&amp;i.contains(e)){r(i);break}}}))}function Zy(e=null){var t;return null!=(t=(0,l.useContext)(Uy))?t:e}function qy(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,&quot;paddingRight&quot;,`${o}px`)}}}function Hy(){return _y()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=&gt;{var n;if(&quot;auto&quot;!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=Gg();n.style(e.documentElement,&quot;scrollBehavior&quot;,&quot;auto&quot;),t.add(()=&gt;t.microTask(()=&gt;n.dispose()))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,&quot;click&quot;,t=&gt;{if(ry(t.target))try{let n=t.target.closest(&quot;a&quot;);if(!n)return;let{hash:i}=new URL(n.href),s=e.querySelector(i);ry(s)&amp;&amp;!r(s)&amp;&amp;(o=s)}catch{}},!0),t.group(n=&gt;{t.addEventListener(e,&quot;touchstart&quot;,e=&gt;{if(n.dispose(),ry(e.target)&amp;&amp;function(e){return ty(e)&amp;&amp;&quot;style&quot;in e}(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&amp;&amp;r(t.parentElement);)t=t.parentElement;n.style(t,&quot;overscrollBehavior&quot;,&quot;contain&quot;)}else n.style(e.target,&quot;touchAction&quot;,&quot;none&quot;)})}),t.addEventListener(e,&quot;touchmove&quot;,e=&gt;{if(ry(e.target)){if(function(e){return ny(e)&amp;&amp;&quot;INPUT&quot;===e.nodeName}(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&amp;&amp;&quot;&quot;!==t.dataset.headlessuiPortal&amp;&amp;!(t.scrollHeight&gt;t.clientHeight||t.scrollWidth&gt;t.clientWidth);)t=t.parentElement;&quot;&quot;===t.dataset.headlessuiPortal&amp;&amp;e.preventDefault()}else e.preventDefault()}},{passive:!1}),t.add(()=&gt;{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&amp;&amp;window.scrollTo(0,i),o&amp;&amp;o.isConnected&amp;&amp;(o.scrollIntoView({block:&quot;nearest&quot;}),o=null)})})}}:{}}function Wy(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Gy=function(e,t){let n=new Map,r=new Set;return{getSnapshot:()=&gt;n,subscribe:e=&gt;(r.add(e),()=&gt;r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&amp;&amp;(n=o,r.forEach(e=&gt;e()))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Gg(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=Wy(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&amp;&amp;(n.count--,n.meta.delete(t),n.computedMeta=Wy(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=&gt;e.computedMeta},n=[Hy(),qy(),{before({doc:e,d:t}){t.style(e.documentElement,&quot;overflow&quot;,&quot;hidden&quot;)}}];n.forEach(({before:e})=&gt;null==e?void 0:e(t)),n.forEach(({after:e})=&gt;null==e?void 0:e(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Vy(e,t,n=()=&gt;({containers:[]})){let r=function(e){return(0,l.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(Gy),i=t?r.get(t):void 0,o=!!i&amp;&amp;i.count&gt;0;return Qg(()=&gt;{if(t&amp;&amp;e)return Gy.dispatch(&quot;PUSH&quot;,t,n),()=&gt;Gy.dispatch(&quot;POP&quot;,t,n)},[e,t]),o}Gy.subscribe(()=&gt;{let e=Gy.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e=&quot;hidden&quot;===t.get(n.doc),r=0!==n.count;(r&amp;&amp;!e||!r&amp;&amp;e)&amp;&amp;Gy.dispatch(n.count&gt;0?&quot;SCROLL_PREVENT&quot;:&quot;SCROLL_ALLOW&quot;,n),0===n.count&amp;&amp;Gy.dispatch(&quot;TEARDOWN&quot;,n)}});class Qy extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&amp;&amp;(t=this.factory(e),this.set(e,t)),t}}var Ky,Jy,Yy,Xy=Object.defineProperty,ev=(e,t,n)=&gt;{if(!t.has(e))throw TypeError(&quot;Cannot &quot;+n)},tv=(e,t,n)=&gt;(ev(e,t,&quot;read from private field&quot;),n?n.call(e):t.get(e)),nv=(e,t,n)=&gt;{if(t.has(e))throw TypeError(&quot;Cannot add the same private member more than once&quot;);t instanceof WeakSet?t.add(e):t.set(e,n)},rv=(e,t,n,r)=&gt;(ev(e,t,&quot;write to private field&quot;),r?r.call(e,n):t.set(e,n),n);class iv{constructor(e){nv(this,Ky,{}),nv(this,Jy,new Qy(()=&gt;new Set)),nv(this,Yy,new Set),((e,t,n)=&gt;{((e,t,n)=&gt;{t in e?Xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,&quot;symbol&quot;!=typeof t?t+&quot;&quot;:t,n)})(this,&quot;disposables&quot;,Gg()),rv(this,Ky,e),Bg.isServer&amp;&amp;this.disposables.microTask(()=&gt;{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return tv(this,Ky)}subscribe(e,t){if(Bg.isServer)return()=&gt;{};let n={selector:e,callback:t,current:e(tv(this,Ky))};return tv(this,Yy).add(n),this.disposables.add(()=&gt;{tv(this,Yy).delete(n)})}on(e,t){return Bg.isServer?()=&gt;{}:(tv(this,Jy).get(e).add(t),this.disposables.add(()=&gt;{tv(this,Jy).get(e).delete(t)}))}send(e){let t=this.reduce(tv(this,Ky),e);if(t!==tv(this,Ky)){rv(this,Ky,t);for(let e of tv(this,Yy)){let t=e.selector(tv(this,Ky));ov(e.current,t)||(e.current=t,e.callback(t))}for(let t of tv(this,Jy).get(e.type))t(tv(this,Ky),e)}}}function ov(e,t){return!!Object.is(e,t)||&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;(Array.isArray(e)&amp;&amp;Array.isArray(t)?e.length===t.length&amp;&amp;sv(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&amp;&amp;t instanceof Map||e instanceof Set&amp;&amp;t instanceof Set?e.size===t.size&amp;&amp;sv(e.entries(),t.entries()):!(!av(e)||!av(t))&amp;&amp;sv(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function sv(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&amp;&amp;r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function av(e){if(&quot;[object Object]&quot;!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}Ky=new WeakMap,Jy=new WeakMap,Yy=new WeakMap;var lv=Object.defineProperty,cv=(e,t,n)=&gt;(((e,t,n)=&gt;{t in e?lv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,&quot;symbol&quot;!=typeof t?t+&quot;&quot;:t,n),n),uv=(e=&gt;(e[e.Push=0]=&quot;Push&quot;,e[e.Pop=1]=&quot;Pop&quot;,e))(uv||{});let dv={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(-1!==i){let t=e.stack.slice();return t.splice(i,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}};class pv extends iv{constructor(){super(...arguments),cv(this,&quot;actions&quot;,{push:e=&gt;this.send({type:0,id:e}),pop:e=&gt;this.send({type:1,id:e})}),cv(this,&quot;selectors&quot;,{isTop:(e,t)=&gt;e.stack[e.stack.length-1]===t,inStack:(e,t)=&gt;e.stack.includes(t)})}static new(){return new pv({stack:[]})}reduce(e,t){return sy(t.type,dv,e,t)}}const hv=new Qy(()=&gt;pv.new());var fv=n(721);function mv(e,t,n=ov){return(0,fv.useSyncExternalStoreWithSelector)(Jg(t=&gt;e.subscribe(gv,t)),Jg(()=&gt;e.state),Jg(()=&gt;e.state),Jg(t),n)}function gv(e){return e}function yv(e){return(0,l.useMemo)(()=&gt;e,Object.values(e))}let vv=Symbol();function _v(e,t=!0){return Object.assign(e,{[vv]:t})}function bv(...e){let t=(0,l.useRef)(e);(0,l.useEffect)(()=&gt;{t.current=e},[e]);let n=Jg(e=&gt;{for(let n of t.current)null!=n&amp;&amp;(&quot;function&quot;==typeof n?n(e):n.current=e)});return e.every(e=&gt;null==e||(null==e?void 0:e[vv]))?void 0:n}var xv,wv,jv=(e=&gt;(e[e.Forwards=0]=&quot;Forwards&quot;,e[e.Backwards=1]=&quot;Backwards&quot;,e))(jv||{});function Sv(){let e=(0,l.useRef)(0);return wy(!0,&quot;keydown&quot;,t=&gt;{&quot;Tab&quot;===t.key&amp;&amp;(e.current=t.shiftKey?1:0)},!0),e}&quot;undefined&quot;!=typeof process&amp;&amp;&quot;undefined&quot;!=typeof globalThis&amp;&amp;&quot;undefined&quot;!=typeof Element&amp;&amp;&quot;test&quot;===(null==(xv=null==process?void 0:{NODE_ENV:&quot;production&quot;})?void 0:xv.NODE_ENV)&amp;&amp;void 0===(null==(wv=null==Element?void 0:Element.prototype)?void 0:wv.getAnimations)&amp;&amp;(Element.prototype.getAnimations=function(){return console.warn([&quot;Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.&quot;,&quot;Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.&quot;,&quot;&quot;,&quot;Example usage:&quot;,&quot;```js&quot;,&quot;import { mockAnimationsApi } from &#039;jsdom-testing-mocks&#039;&quot;,&quot;mockAnimationsApi()&quot;,&quot;```&quot;].join(&quot;\n&quot;)),[]});var kv=(e=&gt;(e[e.None=0]=&quot;None&quot;,e[e.Closed=1]=&quot;Closed&quot;,e[e.Enter=2]=&quot;Enter&quot;,e[e.Leave=4]=&quot;Leave&quot;,e))(kv||{});function Cv(e){let t={};for(let n in e)!0===e[n]&amp;&amp;(t[`data-${n}`]=&quot;&quot;);return t}function Tv(e,t,n,r){let[i,o]=(0,l.useState)(n),{hasFlag:s,addFlag:a,removeFlag:c}=function(e=0){let[t,n]=(0,l.useState)(e),r=(0,l.useCallback)(e=&gt;n(e),[]),i=(0,l.useCallback)(e=&gt;n(t=&gt;t|e),[]),o=(0,l.useCallback)(e=&gt;(t&amp;e)===e,[t]),s=(0,l.useCallback)(e=&gt;n(t=&gt;t&amp;~e),[]),a=(0,l.useCallback)(e=&gt;n(t=&gt;t^e),[]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}(e&amp;&amp;i?3:0),u=(0,l.useRef)(!1),d=(0,l.useRef)(!1),p=Vg();return Qg(()=&gt;{var i;if(e)return n&amp;&amp;o(!0),t?(null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Gg();return function(e,{inFlight:t,prepare:n}){if(null!=t&amp;&amp;t.current)return void n();let r=e.style.transition;e.style.transition=&quot;none&quot;,n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame(()=&gt;{n(),o.requestAnimationFrame(()=&gt;{o.add(function(e,t){var n,r;let i=Gg();if(!e)return i.dispose;let o=!1;i.add(()=&gt;{o=!0});let s=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=&gt;e instanceof CSSTransition))?r:[];return 0===s.length?(t(),i.dispose):(Promise.allSettled(s.map(e=&gt;e.finished)).then(()=&gt;{o||t()}),i.dispose)}(e,r))})}),o.dispose}(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&amp;&amp;(n?(a(3),c(4)):(a(4),c(2)))},run(){d.current?n?(c(3),a(4)):(c(4),a(3)):n?c(1):a(1)},done(){var e;d.current&amp;&amp;function(e){var t,n;return(null!=(n=null==(t=e.getAnimations)?void 0:t.call(e))?n:[]).some(e=&gt;e instanceof CSSTransition&amp;&amp;&quot;finished&quot;!==e.playState)}(t)||(u.current=!1,c(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&amp;&amp;a(3))},[e,n,t,p]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}let Ev=(0,l.createContext)(()=&gt;{});function Pv({value:e,children:t}){return l.createElement(Ev.Provider,{value:e},t)}const Ov=Math.min,Rv=Math.max,Nv=Math.round,Av=Math.floor,Iv=e=&gt;({x:e,y:e}),zv={left:&quot;right&quot;,right:&quot;left&quot;,bottom:&quot;top&quot;,top:&quot;bottom&quot;},Fv={start:&quot;end&quot;,end:&quot;start&quot;};function Dv(e,t,n){return Rv(e,Ov(t,n))}function Lv(e,t){return&quot;function&quot;==typeof e?e(t):e}function Mv(e){return e.split(&quot;-&quot;)[0]}function $v(e){return e.split(&quot;-&quot;)[1]}function Uv(e){return&quot;x&quot;===e?&quot;y&quot;:&quot;x&quot;}function Bv(e){return&quot;y&quot;===e?&quot;height&quot;:&quot;width&quot;}const Zv=new Set([&quot;top&quot;,&quot;bottom&quot;]);function qv(e){return Zv.has(Mv(e))?&quot;y&quot;:&quot;x&quot;}function Hv(e){return Uv(qv(e))}function Wv(e){return e.replace(/start|end/g,e=&gt;Fv[e])}const Gv=[&quot;left&quot;,&quot;right&quot;],Vv=[&quot;right&quot;,&quot;left&quot;],Qv=[&quot;top&quot;,&quot;bottom&quot;],Kv=[&quot;bottom&quot;,&quot;top&quot;];function Jv(e){return e.replace(/left|right|bottom|top/g,e=&gt;zv[e])}function Yv(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Xv(){return&quot;undefined&quot;!=typeof window}function e_(e){return r_(e)?(e.nodeName||&quot;&quot;).toLowerCase():&quot;#document&quot;}function t_(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function n_(e){var t;return null==(t=(r_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function r_(e){return!!Xv()&amp;&amp;(e instanceof Node||e instanceof t_(e).Node)}function i_(e){return!!Xv()&amp;&amp;(e instanceof Element||e instanceof t_(e).Element)}function o_(e){return!!Xv()&amp;&amp;(e instanceof HTMLElement||e instanceof t_(e).HTMLElement)}function s_(e){return!(!Xv()||&quot;undefined&quot;==typeof ShadowRoot)&amp;&amp;(e instanceof ShadowRoot||e instanceof t_(e).ShadowRoot)}const a_=new Set([&quot;inline&quot;,&quot;contents&quot;]);function l_(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=x_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&amp;&amp;!a_.has(i)}const c_=new Set([&quot;table&quot;,&quot;td&quot;,&quot;th&quot;]);function u_(e){return c_.has(e_(e))}const d_=[&quot;:popover-open&quot;,&quot;:modal&quot;];function p_(e){return d_.some(t=&gt;{try{return e.matches(t)}catch(e){return!1}})}const h_=[&quot;transform&quot;,&quot;translate&quot;,&quot;scale&quot;,&quot;rotate&quot;,&quot;perspective&quot;],f_=[&quot;transform&quot;,&quot;translate&quot;,&quot;scale&quot;,&quot;rotate&quot;,&quot;perspective&quot;,&quot;filter&quot;],m_=[&quot;paint&quot;,&quot;layout&quot;,&quot;strict&quot;,&quot;content&quot;];function g_(e){const t=y_(),n=i_(e)?x_(e):e;return h_.some(e=&gt;!!n[e]&amp;&amp;&quot;none&quot;!==n[e])||!!n.containerType&amp;&amp;&quot;normal&quot;!==n.containerType||!t&amp;&amp;!!n.backdropFilter&amp;&amp;&quot;none&quot;!==n.backdropFilter||!t&amp;&amp;!!n.filter&amp;&amp;&quot;none&quot;!==n.filter||f_.some(e=&gt;(n.willChange||&quot;&quot;).includes(e))||m_.some(e=&gt;(n.contain||&quot;&quot;).includes(e))}function y_(){return!(&quot;undefined&quot;==typeof CSS||!CSS.supports)&amp;&amp;CSS.supports(&quot;-webkit-backdrop-filter&quot;,&quot;none&quot;)}const v_=new Set([&quot;html&quot;,&quot;body&quot;,&quot;#document&quot;]);function b_(e){return v_.has(e_(e))}function x_(e){return t_(e).getComputedStyle(e)}function w_(e){return i_(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function j_(e){if(&quot;html&quot;===e_(e))return e;const t=e.assignedSlot||e.parentNode||s_(e)&amp;&amp;e.host||n_(e);return s_(t)?t.host:t}function S_(e){const t=j_(e);return b_(t)?e.ownerDocument?e.ownerDocument.body:e.body:o_(t)&amp;&amp;l_(t)?t:S_(t)}function k_(e,t,n){var r;void 0===t&amp;&amp;(t=[]),void 0===n&amp;&amp;(n=!0);const i=S_(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=t_(i);if(o){const e=C_(s);return t.concat(s,s.visualViewport||[],l_(i)?i:[],e&amp;&amp;n?k_(e):[])}return t.concat(i,k_(i,[],n))}function C_(e){return e.parent&amp;&amp;Object.getPrototypeOf(e.parent)?e.frameElement:null}function T_(e,t,n){let{reference:r,floating:i}=e;const o=qv(t),s=Hv(t),a=Bv(s),l=Mv(t),c=&quot;y&quot;===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case&quot;top&quot;:h={x:u,y:r.y-i.height};break;case&quot;bottom&quot;:h={x:u,y:r.y+r.height};break;case&quot;right&quot;:h={x:r.x+r.width,y:d};break;case&quot;left&quot;:h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch($v(t)){case&quot;start&quot;:h[s]-=p*(n&amp;&amp;c?-1:1);break;case&quot;end&quot;:h[s]+=p*(n&amp;&amp;c?-1:1)}return h}async function E_(e,t){var n;void 0===t&amp;&amp;(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c=&quot;clippingAncestors&quot;,rootBoundary:u=&quot;viewport&quot;,elementContext:d=&quot;floating&quot;,altBoundary:p=!1,padding:h=0}=Lv(t,e),f=function(e){return&quot;number&quot;!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(h),m=a[p?&quot;floating&quot;===d?&quot;reference&quot;:&quot;floating&quot;:d],g=Yv(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=&quot;floating&quot;===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),_=await(null==o.isElement?void 0:o.isElement(v))&amp;&amp;await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},b=Yv(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-b.top+f.top)/_.y,bottom:(b.bottom-g.bottom+f.bottom)/_.y,left:(g.left-b.left+f.left)/_.x,right:(b.right-g.right+f.right)/_.x}}const P_=new Set([&quot;left&quot;,&quot;top&quot;]);function O_(e){const t=x_(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=o_(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Nv(n)!==o||Nv(r)!==s;return a&amp;&amp;(n=o,r=s),{width:n,height:r,$:a}}function R_(e){return i_(e)?e:e.contextElement}function N_(e){const t=R_(e);if(!o_(t))return Iv(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=O_(t);let s=(o?Nv(n.width):n.width)/r,a=(o?Nv(n.height):n.height)/i;return s&amp;&amp;Number.isFinite(s)||(s=1),a&amp;&amp;Number.isFinite(a)||(a=1),{x:s,y:a}}const A_=Iv(0);function I_(e){const t=t_(e);return y_()&amp;&amp;t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:A_}function z_(e,t,n,r){void 0===t&amp;&amp;(t=!1),void 0===n&amp;&amp;(n=!1);const i=e.getBoundingClientRect(),o=R_(e);let s=Iv(1);t&amp;&amp;(r?i_(r)&amp;&amp;(s=N_(r)):s=N_(e));const a=function(e,t,n){return void 0===t&amp;&amp;(t=!1),!(!n||t&amp;&amp;n!==t_(e))&amp;&amp;t}(o,n,r)?I_(o):Iv(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const e=t_(o),t=r&amp;&amp;i_(r)?t_(r):r;let n=e,i=C_(n);for(;i&amp;&amp;r&amp;&amp;t!==n;){const e=N_(i),t=i.getBoundingClientRect(),r=x_(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=s,n=t_(i),i=C_(n)}}return Yv({width:u,height:d,x:l,y:c})}function F_(e,t){const n=w_(e).scrollLeft;return t?t.left+n:z_(n_(e)).left+n}function D_(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-F_(e,n),y:n.top+t.scrollTop}}const L_=new Set([&quot;absolute&quot;,&quot;fixed&quot;]);function M_(e,t,n){let r;if(&quot;viewport&quot;===t)r=function(e,t){const n=t_(e),r=n_(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const e=y_();(!e||e&amp;&amp;&quot;fixed&quot;===t)&amp;&amp;(a=i.offsetLeft,l=i.offsetTop)}const c=F_(r);if(c&lt;=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=&quot;CSS1Compat&quot;===e.compatMode&amp;&amp;parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s&lt;=25&amp;&amp;(o-=s)}else c&lt;=25&amp;&amp;(o+=c);return{width:o,height:s,x:a,y:l}}(e,n);else if(&quot;document&quot;===t)r=function(e){const t=n_(e),n=w_(e),r=e.ownerDocument.body,i=Rv(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Rv(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+F_(e);const a=-n.scrollTop;return&quot;rtl&quot;===x_(r).direction&amp;&amp;(s+=Rv(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(n_(e));else if(i_(t))r=function(e,t){const n=z_(e,!0,&quot;fixed&quot;===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=o_(e)?N_(e):Iv(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=I_(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Yv(r)}function $_(e,t){const n=j_(e);return!(n===t||!i_(n)||b_(n))&amp;&amp;(&quot;fixed&quot;===x_(n).position||$_(n,t))}function U_(e,t,n){const r=o_(t),i=n_(t),o=&quot;fixed&quot;===n,s=z_(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Iv(0);function c(){l.x=F_(i)}if(r||!r&amp;&amp;!o)if((&quot;body&quot;!==e_(t)||l_(i))&amp;&amp;(a=w_(t)),r){const e=z_(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&amp;&amp;c();o&amp;&amp;!r&amp;&amp;i&amp;&amp;c();const u=!i||r||o?Iv(0):D_(i,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}function B_(e){return&quot;static&quot;===x_(e).position}function Z_(e,t){if(!o_(e)||&quot;fixed&quot;===x_(e).position)return null;if(t)return t(e);let n=e.offsetParent;return n_(e)===n&amp;&amp;(n=n.ownerDocument.body),n}function q_(e,t){const n=t_(e);if(p_(e))return n;if(!o_(e)){let t=j_(e);for(;t&amp;&amp;!b_(t);){if(i_(t)&amp;&amp;!B_(t))return t;t=j_(t)}return n}let r=Z_(e,t);for(;r&amp;&amp;u_(r)&amp;&amp;B_(r);)r=Z_(r,t);return r&amp;&amp;b_(r)&amp;&amp;B_(r)&amp;&amp;!g_(r)?n:r||function(e){let t=j_(e);for(;o_(t)&amp;&amp;!b_(t);){if(g_(t))return t;if(p_(t))return null;t=j_(t)}return null}(e)||n}const H_={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=&quot;fixed&quot;===i,s=n_(r),a=!!t&amp;&amp;p_(t.floating);if(r===s||a&amp;&amp;o)return n;let l={scrollLeft:0,scrollTop:0},c=Iv(1);const u=Iv(0),d=o_(r);if((d||!d&amp;&amp;!o)&amp;&amp;((&quot;body&quot;!==e_(r)||l_(s))&amp;&amp;(l=w_(r)),o_(r))){const e=z_(r);c=N_(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!s||d||o?Iv(0):D_(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:n_,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...&quot;clippingAncestors&quot;===n?p_(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=k_(e,[],!1).filter(e=&gt;i_(e)&amp;&amp;&quot;body&quot;!==e_(e)),i=null;const o=&quot;fixed&quot;===x_(e).position;let s=o?j_(e):e;for(;i_(s)&amp;&amp;!b_(s);){const t=x_(s),n=g_(s);n||&quot;fixed&quot;!==t.position||(i=null),(o?!n&amp;&amp;!i:!n&amp;&amp;&quot;static&quot;===t.position&amp;&amp;i&amp;&amp;L_.has(i.position)||l_(s)&amp;&amp;!n&amp;&amp;$_(e,s))?r=r.filter(e=&gt;e!==s):i=t,s=j_(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((e,n)=&gt;{const r=M_(t,n,i);return e.top=Rv(r.top,e.top),e.right=Ov(r.right,e.right),e.bottom=Ov(r.bottom,e.bottom),e.left=Rv(r.left,e.left),e},M_(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:q_,getElementRects:async function(e){const t=this.getOffsetParent||q_,n=this.getDimensions,r=await n(e.floating);return{reference:U_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=O_(e);return{width:t,height:n}},getScale:N_,isElement:i_,isRTL:function(e){return&quot;rtl&quot;===x_(e).direction}};function W_(e,t){return e.x===t.x&amp;&amp;e.y===t.y&amp;&amp;e.width===t.width&amp;&amp;e.height===t.height}function G_(e,t,n,r){void 0===r&amp;&amp;(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=&quot;function&quot;==typeof ResizeObserver,layoutShift:a=&quot;function&quot;==typeof IntersectionObserver,animationFrame:l=!1}=r,c=R_(e),u=i||o?[...c?k_(c):[],...k_(t)]:[];u.forEach(e=&gt;{i&amp;&amp;e.addEventListener(&quot;scroll&quot;,n,{passive:!0}),o&amp;&amp;e.addEventListener(&quot;resize&quot;,n)});const d=c&amp;&amp;a?function(e,t){let n,r=null;const i=n_(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&amp;&amp;(a=!1),void 0===l&amp;&amp;(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(a||t(),!p||!h)return;const f={rootMargin:-Av(d)+&quot;px &quot;+-Av(i.clientWidth-(u+p))+&quot;px &quot;+-Av(i.clientHeight-(d+h))+&quot;px &quot;+-Av(u)+&quot;px&quot;,threshold:Rv(0,Ov(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout(()=&gt;{s(!1,1e-7)},1e3)}1!==r||W_(c,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...f,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;s&amp;&amp;(f=new ResizeObserver(e=&gt;{let[r]=e;r&amp;&amp;r.target===c&amp;&amp;f&amp;&amp;(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=&gt;{var e;null==(e=f)||e.observe(t)})),n()}),c&amp;&amp;!l&amp;&amp;f.observe(c),f.observe(t));let m=l?z_(e):null;return l&amp;&amp;function t(){const r=z_(e);m&amp;&amp;!W_(m,r)&amp;&amp;n(),m=r,p=requestAnimationFrame(t)}(),n(),()=&gt;{var e;u.forEach(e=&gt;{i&amp;&amp;e.removeEventListener(&quot;scroll&quot;,n),o&amp;&amp;e.removeEventListener(&quot;resize&quot;,n)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&amp;&amp;cancelAnimationFrame(p)}}const V_=E_,Q_=function(e){return void 0===e&amp;&amp;(e=0),{name:&quot;offset&quot;,options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),s=Mv(n),a=$v(n),l=&quot;y&quot;===qv(n),c=P_.has(s)?-1:1,u=o&amp;&amp;l?-1:1,d=Lv(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}=&quot;number&quot;==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&amp;&amp;&quot;number&quot;==typeof f&amp;&amp;(h=&quot;end&quot;===a?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&amp;&amp;null!=(r=a.arrow)&amp;&amp;r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},K_=function(e){return void 0===e&amp;&amp;(e={}),{name:&quot;shift&quot;,options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=&gt;{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Lv(e,t),u={x:n,y:r},d=await o.detectOverflow(t,c),p=qv(Mv(i)),h=Uv(p);let f=u[h],m=u[p];if(s){const e=&quot;y&quot;===h?&quot;bottom&quot;:&quot;right&quot;;f=Dv(f+d[&quot;y&quot;===h?&quot;top&quot;:&quot;left&quot;],f,f-d[e])}if(a){const e=&quot;y&quot;===p?&quot;bottom&quot;:&quot;right&quot;;m=Dv(m+d[&quot;y&quot;===p?&quot;top&quot;:&quot;left&quot;],m,m-d[e])}const g=l.fn({...t,[h]:f,[p]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[p]:a}}}}}},J_=function(e){return void 0===e&amp;&amp;(e={}),{name:&quot;flip&quot;,options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h=&quot;bestFit&quot;,fallbackAxisSideDirection:f=&quot;none&quot;,flipAlignment:m=!0,...g}=Lv(e,t);if(null!=(n=o.arrow)&amp;&amp;n.alignmentOffset)return{};const y=Mv(i),v=qv(a),_=Mv(a)===a,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=p||(_||!m?[Jv(a)]:function(e){const t=Jv(e);return[Wv(e),t,Wv(t)]}(a)),w=&quot;none&quot;!==f;!p&amp;&amp;w&amp;&amp;x.push(...function(e,t,n,r){const i=$v(e);let o=function(e,t,n){switch(e){case&quot;top&quot;:case&quot;bottom&quot;:return n?t?Vv:Gv:t?Gv:Vv;case&quot;left&quot;:case&quot;right&quot;:return t?Qv:Kv;default:return[]}}(Mv(e),&quot;start&quot;===n,r);return i&amp;&amp;(o=o.map(e=&gt;e+&quot;-&quot;+i),t&amp;&amp;(o=o.concat(o.map(Wv)))),o}(a,m,f,b));const j=[a,...x],S=await l.detectOverflow(t,g),k=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&amp;&amp;k.push(S[y]),d){const e=function(e,t,n){void 0===n&amp;&amp;(n=!1);const r=$v(e),i=Hv(e),o=Bv(i);let s=&quot;x&quot;===i?r===(n?&quot;end&quot;:&quot;start&quot;)?&quot;right&quot;:&quot;left&quot;:&quot;start&quot;===r?&quot;bottom&quot;:&quot;top&quot;;return t.reference[o]&gt;t.floating[o]&amp;&amp;(s=Jv(s)),[s,Jv(s)]}(i,s,b);k.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:k}],!k.every(e=&gt;e&lt;=0)){var T,E;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=j[e];if(t&amp;&amp;(&quot;alignment&quot;!==d||v===qv(t)||C.every(e=&gt;qv(e.placement)!==v||e.overflows[0]&gt;0)))return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(E=C.filter(e=&gt;e.overflows[0]&lt;=0).sort((e,t)=&gt;e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(h){case&quot;bestFit&quot;:{var P;const e=null==(P=C.filter(e=&gt;{if(w){const t=qv(e.placement);return t===v||&quot;y&quot;===t}return!0}).map(e=&gt;[e.placement,e.overflows.filter(e=&gt;e&gt;0).reduce((e,t)=&gt;e+t,0)]).sort((e,t)=&gt;e[1]-t[1])[0])?void 0:P[0];e&amp;&amp;(n=e);break}case&quot;initialPlacement&quot;:n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},Y_=function(e){return void 0===e&amp;&amp;(e={}),{name:&quot;size&quot;,options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=&gt;{},...c}=Lv(e,t),u=await s.detectOverflow(t,c),d=Mv(i),p=$v(i),h=&quot;y&quot;===qv(i),{width:f,height:m}=o.floating;let g,y;&quot;top&quot;===d||&quot;bottom&quot;===d?(g=d,y=p===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?&quot;start&quot;:&quot;end&quot;)?&quot;left&quot;:&quot;right&quot;):(y=d,g=&quot;end&quot;===p?&quot;top&quot;:&quot;bottom&quot;);const v=m-u.top-u.bottom,_=f-u.left-u.right,b=Ov(m-u[g],v),x=Ov(f-u[y],_),w=!t.middlewareData.shift;let j=b,S=x;if(null!=(n=t.middlewareData.shift)&amp;&amp;n.enabled.x&amp;&amp;(S=_),null!=(r=t.middlewareData.shift)&amp;&amp;r.enabled.y&amp;&amp;(j=v),w&amp;&amp;!p){const e=Rv(u.left,0),t=Rv(u.right,0),n=Rv(u.top,0),r=Rv(u.bottom,0);h?S=f-2*(0!==e||0!==t?e+t:Rv(u.left,u.right)):j=m-2*(0!==n||0!==r?n+r:Rv(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:j});const k=await s.getDimensions(a.floating);return f!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}},X_=(e,t,n)=&gt;{const r=new Map,i={platform:H_,...n},o={...i.platform,_c:r};return(async(e,t,n)=&gt;{const{placement:r=&quot;bottom&quot;,strategy:i=&quot;absolute&quot;,middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=T_(c,r,l),p=r,h={},f=0;for(let n=0;n&lt;a.length;n++){var m;const{name:o,fn:g}=a[n],{x:y,y:v,data:_,reset:b}=await g({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:{...s,detectOverflow:null!=(m=s.detectOverflow)?m:E_},elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=v?v:d,h={...h,[o]:{...h[o],..._}},b&amp;&amp;f&lt;=50&amp;&amp;(f++,&quot;object&quot;==typeof b&amp;&amp;(b.placement&amp;&amp;(p=b.placement),b.rects&amp;&amp;(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:u,y:d}=T_(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})};var eb=&quot;undefined&quot;!=typeof document?l.useLayoutEffect:function(){};function tb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(&quot;function&quot;==typeof e&amp;&amp;e.toString()===t.toString())return!0;let n,r,i;if(e&amp;&amp;t&amp;&amp;&quot;object&quot;==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!tb(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(!(&quot;_owner&quot;===n&amp;&amp;e.$$typeof||tb(e[n],t[n])))return!1}return!0}return e!=e&amp;&amp;t!=t}function nb(e){return&quot;undefined&quot;==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rb(e,t){const n=nb(e);return Math.round(t*n)/n}function ib(e){const t=l.useRef(e);return eb(()=&gt;{t.current=e}),t}const ob=(e,t)=&gt;({...Q_(e),options:[e,t]}),sb=(e,t)=&gt;({...K_(e),options:[e,t]}),ab=(e,t)=&gt;({...J_(e),options:[e,t]}),lb=(e,t)=&gt;({...Y_(e),options:[e,t]}),cb={...c},ub=cb.useInsertionEffect||(e=&gt;e());function db(e){const t=l.useRef(()=&gt;{});return ub(()=&gt;{t.current=e}),l.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var pb=&quot;undefined&quot;!=typeof document?l.useLayoutEffect:l.useEffect;let hb=!1,fb=0;const mb=()=&gt;&quot;floating-ui-&quot;+Math.random().toString(36).slice(2,6)+fb++,gb=cb.useId||function(){const[e,t]=l.useState(()=&gt;hb?mb():void 0);return pb(()=&gt;{null==e&amp;&amp;t(mb())},[]),l.useEffect(()=&gt;{hb=!0},[]),e};const yb=l.createContext(null),vb=l.createContext(null),_b=&quot;data-floating-ui-focusable&quot;;function bb(e){void 0===e&amp;&amp;(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=gb(),o=l.useRef({}),[s]=l.useState(()=&gt;function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=&gt;e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=&gt;e!==n))||[])}}}()),a=null!=((null==(f=l.useContext(yb))?void 0:f.id)||null),[c,u]=l.useState(r.reference),d=db((e,t,r)=&gt;{o.current.openEvent=e?t:void 0,s.emit(&quot;openchange&quot;,{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),p=l.useMemo(()=&gt;({setPositionReference:u}),[]),h=l.useMemo(()=&gt;({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);var f;return l.useMemo(()=&gt;({dataRef:o,open:t,onOpenChange:d,elements:h,events:s,floatingId:i,refs:p}),[t,d,h,s,i,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=l.useState(null),[a,c]=l.useState(null),u=(null==i?void 0:i.domReference)||o,d=l.useRef(null),p=l.useContext(vb);pb(()=&gt;{u&amp;&amp;(d.current=u)},[u]);const h=function(e){void 0===e&amp;&amp;(e={});const{placement:t=&quot;bottom&quot;,strategy:n=&quot;absolute&quot;,middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=l.useState(r);tb(h,r)||f(r);const[m,g]=l.useState(null),[y,v]=l.useState(null),_=l.useCallback(e=&gt;{e!==j.current&amp;&amp;(j.current=e,g(e))},[]),b=l.useCallback(e=&gt;{e!==S.current&amp;&amp;(S.current=e,v(e))},[]),x=o||m,w=s||y,j=l.useRef(null),S=l.useRef(null),k=l.useRef(d),C=null!=c,T=ib(c),E=ib(i),P=ib(u),O=l.useCallback(()=&gt;{if(!j.current||!S.current)return;const e={placement:t,strategy:n,middleware:h};E.current&amp;&amp;(e.platform=E.current),X_(j.current,S.current,e).then(e=&gt;{const t={...e,isPositioned:!1!==P.current};R.current&amp;&amp;!tb(k.current,t)&amp;&amp;(k.current=t,Bp.flushSync(()=&gt;{p(t)}))})},[h,t,n,E,P]);eb(()=&gt;{!1===u&amp;&amp;k.current.isPositioned&amp;&amp;(k.current.isPositioned=!1,p(e=&gt;({...e,isPositioned:!1})))},[u]);const R=l.useRef(!1);eb(()=&gt;(R.current=!0,()=&gt;{R.current=!1}),[]),eb(()=&gt;{if(x&amp;&amp;(j.current=x),w&amp;&amp;(S.current=w),x&amp;&amp;w){if(T.current)return T.current(x,w,O);O()}},[x,w,O,T,C]);const N=l.useMemo(()=&gt;({reference:j,floating:S,setReference:_,setFloating:b}),[_,b]),A=l.useMemo(()=&gt;({reference:x,floating:w}),[x,w]),I=l.useMemo(()=&gt;{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=rb(A.floating,d.x),r=rb(A.floating,d.y);return a?{...e,transform:&quot;translate(&quot;+t+&quot;px, &quot;+r+&quot;px)&quot;,...nb(A.floating)&gt;=1.5&amp;&amp;{willChange:&quot;transform&quot;}}:{position:n,left:t,top:r}},[n,a,A.floating,d.x,d.y]);return l.useMemo(()=&gt;({...d,update:O,refs:N,elements:A,floatingStyles:I}),[d,O,N,A,I])}({...e,elements:{...i,...a&amp;&amp;{reference:a}}}),f=l.useCallback(e=&gt;{const t=i_(e)?{getBoundingClientRect:()=&gt;e.getBoundingClientRect(),contextElement:e}:e;c(t),h.refs.setReference(t)},[h.refs]),m=l.useCallback(e=&gt;{(i_(e)||null===e)&amp;&amp;(d.current=e,s(e)),(i_(h.refs.reference.current)||null===h.refs.reference.current||null!==e&amp;&amp;!i_(e))&amp;&amp;h.refs.setReference(e)},[h.refs]),g=l.useMemo(()=&gt;({...h.refs,setReference:m,setPositionReference:f,domReference:d}),[h.refs,m,f]),y=l.useMemo(()=&gt;({...h.elements,domReference:u}),[h.elements,u]),v=l.useMemo(()=&gt;({...h,...r,refs:g,elements:y,nodeId:t}),[h,g,y,t,r]);return pb(()=&gt;{r.dataRef.current.floatingContext=v;const e=null==p?void 0:p.nodesRef.current.find(e=&gt;e.id===t);e&amp;&amp;(e.context=v)}),l.useMemo(()=&gt;({...h,context:v,refs:g,elements:y}),[h,g,y,v])}const xb=&quot;active&quot;,wb=&quot;selected&quot;;function jb(e,t,n){const r=new Map,i=&quot;item&quot;===n;let o=e;if(i&amp;&amp;e){const{[xb]:t,[wb]:__,...n}=e;o=n}return{...&quot;floating&quot;===n&amp;&amp;{tabIndex:-1,[_b]:&quot;&quot;},...o,...t.map(t=&gt;{const r=t?t[n]:null;return&quot;function&quot;==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=&gt;t?(Object.entries(t).forEach(t=&gt;{let[n,o]=t;var s;i&amp;&amp;[xb,wb].includes(n)||(0===n.indexOf(&quot;on&quot;)?(r.has(n)||r.set(n,[]),&quot;function&quot;==typeof o&amp;&amp;(null==(s=r.get(n))||s.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o&lt;t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=&gt;e(...i)).find(e=&gt;void 0!==e)})):e[n]=o)}),e):e,{})}}function Sb(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let kb=(0,l.createContext)({styles:void 0,setReference:()=&gt;{},setFloating:()=&gt;{},getReferenceProps:()=&gt;({}),getFloatingProps:()=&gt;({}),slot:{}});kb.displayName=&quot;FloatingContext&quot;;let Cb=(0,l.createContext)(null);function Tb({children:e,enabled:t=!0}){let[n,r]=(0,l.useState)(null),[i,o]=(0,l.useState)(0),s=(0,l.useRef)(null),[a,c]=(0,l.useState)(null);!function(e){Qg(()=&gt;{if(!e)return;let t=new MutationObserver(()=&gt;{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&amp;&amp;(e.style.maxHeight=`${Math.ceil(n)}px`)});return t.observe(e,{attributes:!0,attributeFilter:[&quot;style&quot;]}),()=&gt;{t.disconnect()}},[e])}(a);let u=t&amp;&amp;null!==n&amp;&amp;null!==a,{to:d=&quot;bottom&quot;,gap:p=0,offset:h=0,padding:f=0,inner:m}=function(e,t){var n,r,i;let o=Eb(null!=(n=null==e?void 0:e.gap)?n:&quot;var(--anchor-gap, 0)&quot;,t),s=Eb(null!=(r=null==e?void 0:e.offset)?r:&quot;var(--anchor-offset, 0)&quot;,t),a=Eb(null!=(i=null==e?void 0:e.padding)?i:&quot;var(--anchor-padding, 0)&quot;,t);return{...e,gap:o,offset:s,padding:a}}(n,a),[g,y=&quot;center&quot;]=d.split(&quot; &quot;);Qg(()=&gt;{u&amp;&amp;o(0)},[u]);let{refs:v,floatingStyles:_,context:b}=bb({open:u,placement:&quot;selection&quot;===g?&quot;center&quot;===y?&quot;bottom&quot;:`bottom-${y}`:&quot;center&quot;===y?`${g}`:`${g}-${y}`,strategy:&quot;absolute&quot;,transform:!1,middleware:[ob({mainAxis:&quot;selection&quot;===g?0:p,crossAxis:h}),sb({padding:f}),&quot;selection&quot;!==g&amp;&amp;ab({padding:f}),&quot;selection&quot;===g&amp;&amp;m?(j={...m,padding:f,overflowRef:s,offset:i,minItemsVisible:4,referenceOverflowThreshold:f,onFallbackChange(e){var t,n;if(!e)return;let r=b.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,s=Math.min(4,r.childElementCount),a=0,l=0;for(let e of null!=(n=null==(t=b.elements.floating)?void 0:t.childNodes)?n:[])if(ny(e)){let t=e.offsetTop,n=t+e.clientHeight+i,o=r.scrollTop,c=o+r.clientHeight;if(!(t&gt;=o&amp;&amp;n&lt;=c)){l=Math.max(0,Math.min(n,c)-Math.max(t,o)),a=e.clientHeight;break}s--}s&gt;=1&amp;&amp;o(e=&gt;{let t=a*s-l+i;return e&gt;=t?e:t})}},{name:&quot;inner&quot;,options:j,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:s=4,referenceOverflowThreshold:a=0,scrollRef:l,...c}=Lv(j,e),{rects:u,elements:{floating:d}}=e,p=t.current[o],h=(null==l?void 0:l.current)||d,f=d.clientTop||h.clientTop,m=0!==d.clientTop,g=0!==h.clientTop,y=d===h;if(!p)return{};const v={...e,...await ob(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-i).fn(e)},_=await V_(Sb(v,h.scrollHeight+f+d.clientTop),c),b=await V_(v,{...c,elementContext:&quot;reference&quot;}),x=Rv(0,_.top),w=v.y+x,S=h.scrollHeight&gt;h.clientHeight?e=&gt;e:Nv,k=S(Rv(0,h.scrollHeight+(m&amp;&amp;y||g?2*f:0)-x-Rv(0,_.bottom)));if(h.style.maxHeight=k+&quot;px&quot;,h.scrollTop=x,r){const e=h.offsetHeight&lt;p.offsetHeight*Ov(s,t.current.length)-1||b.top&gt;=-a||b.bottom&gt;=-a;Bp.flushSync(()=&gt;r(e))}return n&amp;&amp;(n.current=await V_(Sb({...v,y:w},h.offsetHeight+f+d.clientTop),c)),{y:w}}}):null,lb({padding:f,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:&quot;auto&quot;,maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:G_}),[x=g,w=y]=b.placement.split(&quot;-&quot;);var j;&quot;selection&quot;===g&amp;&amp;(x=&quot;selection&quot;);let S=(0,l.useMemo)(()=&gt;({anchor:[x,w].filter(Boolean).join(&quot; &quot;)}),[x,w]),k=function(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,c=db(a),u=l.useRef(!1),d=l.useRef(null),p=l.useRef(null);l.useEffect(()=&gt;{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top&gt;=-.5,i=o.current.bottom&gt;=-.5,s=t.scrollHeight-t.clientHeight,a=n&lt;0?-1:1,l=n&lt;0?&quot;max&quot;:&quot;min&quot;;t.scrollHeight&lt;=t.clientHeight||(!r&amp;&amp;n&gt;0||!i&amp;&amp;n&lt;0?(e.preventDefault(),Bp.flushSync(()=&gt;{c(e=&gt;e+Math[l](n,s*a))})):/firefox/i.test(function(){const e=navigator.userAgentData;return e&amp;&amp;Array.isArray(e.brands)?e.brands.map(e=&gt;{let{brand:t,version:n}=e;return t+&quot;/&quot;+n}).join(&quot; &quot;):navigator.userAgent}())&amp;&amp;(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||r.floating;return n&amp;&amp;t?(t.addEventListener(&quot;wheel&quot;,e),requestAnimationFrame(()=&gt;{d.current=t.scrollTop,null!=o.current&amp;&amp;(p.current={...o.current})}),()=&gt;{d.current=null,p.current=null,t.removeEventListener(&quot;wheel&quot;,e)}):void 0},[i,n,r.floating,o,s,c]);const h=l.useMemo(()=&gt;({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==s?void 0:s.current)||r.floating;if(o.current&amp;&amp;e&amp;&amp;u.current){if(null!==d.current){const t=e.scrollTop-d.current;(o.current.bottom&lt;-.5&amp;&amp;t&lt;-1||o.current.top&lt;-.5&amp;&amp;t&gt;1)&amp;&amp;Bp.flushSync(()=&gt;c(e=&gt;e+t))}requestAnimationFrame(()=&gt;{d.current=e.scrollTop})}}}),[r.floating,c,o,s]);return l.useMemo(()=&gt;i?{floating:h}:{},[i,h])}(b,{overflowRef:s,onChange:o}),{getReferenceProps:C,getFloatingProps:T}=function(e){void 0===e&amp;&amp;(e=[]);const t=e.map(e=&gt;null==e?void 0:e.reference),n=e.map(e=&gt;null==e?void 0:e.floating),r=e.map(e=&gt;null==e?void 0:e.item),i=l.useCallback(t=&gt;jb(t,e,&quot;reference&quot;),t),o=l.useCallback(t=&gt;jb(t,e,&quot;floating&quot;),n),s=l.useCallback(t=&gt;jb(t,e,&quot;item&quot;),r);return l.useMemo(()=&gt;({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}([k]),E=Jg(e=&gt;{c(e),v.setFloating(e)});return l.createElement(Cb.Provider,{value:r},l.createElement(kb.Provider,{value:{setFloating:E,setReference:v.setReference,styles:_,getReferenceProps:C,getFloatingProps:T,slot:S}},e))}function Eb(e,t,n=void 0){let r=Vg(),i=Jg((e,t)=&gt;{if(null==e)return[n,null];if(&quot;number&quot;==typeof e)return[e,null];if(&quot;string&quot;==typeof e){if(!t)return[n,null];let i=Ob(e,t);return[i,n=&gt;{let o=Pb(e);{let s=o.map(e=&gt;window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function a(){r.nextFrame(a);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(s[e]!==r){s[e]=r,l=!0;break}}if(!l)return;let c=Ob(e,t);i!==c&amp;&amp;(n(c),i=c)})}return r.dispose}]}return[n,null]}),o=(0,l.useMemo)(()=&gt;i(e,t)[0],[e,t]),[s=o,a]=(0,l.useState)();return Qg(()=&gt;{let[n,r]=i(e,t);if(a(n),r)return r(a)},[e,t]),s}function Pb(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(&quot;,&quot;);if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...Pb(r)]:[n]}return[]}function Ob(e,t){let n=document.createElement(&quot;div&quot;);t.appendChild(n),n.style.setProperty(&quot;margin-top&quot;,&quot;0px&quot;,&quot;important&quot;),n.style.setProperty(&quot;margin-top&quot;,e,&quot;important&quot;);let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}Cb.displayName=&quot;PlacementContext&quot;;let Rb=(0,l.createContext)(null);Rb.displayName=&quot;OpenClosedContext&quot;;var Nb=(e=&gt;(e[e.Open=1]=&quot;Open&quot;,e[e.Closed=2]=&quot;Closed&quot;,e[e.Closing=4]=&quot;Closing&quot;,e[e.Opening=8]=&quot;Opening&quot;,e))(Nb||{});function Ab(){return(0,l.useContext)(Rb)}function Ib({value:e,children:t}){return l.createElement(Rb.Provider,{value:e},t)}function zb({children:e}){return l.createElement(Rb.Provider,{value:null},e)}function Fb(e){let t=e.parentElement,n=null;for(;t&amp;&amp;!iy(t);)oy(t)&amp;&amp;(n=t),t=t.parentElement;let r=&quot;&quot;===(null==t?void 0:t.getAttribute(&quot;disabled&quot;));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(oy(t))return!1;t=t.previousElementSibling}return!0}(n))&amp;&amp;r}var Db=(e=&gt;(e.Space=&quot; &quot;,e.Enter=&quot;Enter&quot;,e.Escape=&quot;Escape&quot;,e.Backspace=&quot;Backspace&quot;,e.Delete=&quot;Delete&quot;,e.ArrowLeft=&quot;ArrowLeft&quot;,e.ArrowUp=&quot;ArrowUp&quot;,e.ArrowRight=&quot;ArrowRight&quot;,e.ArrowDown=&quot;ArrowDown&quot;,e.Home=&quot;Home&quot;,e.End=&quot;End&quot;,e.PageUp=&quot;PageUp&quot;,e.PageDown=&quot;PageDown&quot;,e.Tab=&quot;Tab&quot;,e))(Db||{});function Lb(e){let t=Jg(e),n=(0,l.useRef)(!1);(0,l.useEffect)(()=&gt;(n.current=!1,()=&gt;{n.current=!0,Wg(()=&gt;{n.current&amp;&amp;t()})}),[t])}let Mb=(0,l.createContext)(!1);let $b=l.Fragment,Ub=Iy(function(e,t){let{ownerDocument:n=null,...r}=e,i=(0,l.useRef)(null),o=bv(_v(e=&gt;{i.current=e}),t),s=Sy(i.current),a=function(e){let t=(0,l.useContext)(Mb),n=(0,l.useContext)(Zb),[r,i]=(0,l.useState)(()=&gt;{var r;if(!t&amp;&amp;null!==n)return null!=(r=n.current)?r:null;if(Bg.isServer)return null;let i=null==e?void 0:e.getElementById(&quot;headlessui-portal-root&quot;);if(i)return i;if(null===e)return null;let o=e.createElement(&quot;div&quot;);return o.setAttribute(&quot;id&quot;,&quot;headlessui-portal-root&quot;),e.body.appendChild(o)});return(0,l.useEffect)(()=&gt;{null!==r&amp;&amp;(null!=e&amp;&amp;e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,l.useEffect)(()=&gt;{t||null!==n&amp;&amp;i(n.current)},[n,i,t]),r}(null!=n?n:s),c=(0,l.useContext)(qb),u=Vg(),d=Py();return Lb(()=&gt;{var e;a&amp;&amp;a.childNodes.length&lt;=0&amp;&amp;(null==(e=a.parentElement)||e.removeChild(a))}),a?(0,Bp.createPortal)(l.createElement(&quot;div&quot;,{&quot;data-headlessui-portal&quot;:&quot;&quot;,ref:e=&gt;{u.dispose(),c&amp;&amp;e&amp;&amp;u.add(c.register(e))}},d({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:$b,name:&quot;Portal&quot;})),a):null}),Bb=l.Fragment,Zb=(0,l.createContext)(null),qb=(0,l.createContext)(null),Hb=Iy(function(e,t){let n=bv(t),{enabled:r=!0,ownerDocument:i,...o}=e,s=Py();return r?l.createElement(Ub,{...o,ownerDocument:i,ref:n}):s({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:$b,name:&quot;Portal&quot;})}),Wb=Iy(function(e,t){let{target:n,...r}=e,i={ref:bv(t)},o=Py();return l.createElement(Zb.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Bb,name:&quot;Popover.Group&quot;}))}),Gb=Object.assign(Hb,{Group:Wb});var Vb=Object.defineProperty,Qb=(e,t,n)=&gt;(((e,t,n)=&gt;{t in e?Vb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,&quot;symbol&quot;!=typeof t?t+&quot;&quot;:t,n),n),Kb=(e=&gt;(e[e.Open=0]=&quot;Open&quot;,e[e.Closed=1]=&quot;Closed&quot;,e))(Kb||{}),Jb=(e=&gt;(e[e.OpenPopover=0]=&quot;OpenPopover&quot;,e[e.ClosePopover=1]=&quot;ClosePopover&quot;,e[e.SetButton=2]=&quot;SetButton&quot;,e[e.SetButtonId=3]=&quot;SetButtonId&quot;,e[e.SetPanel=4]=&quot;SetPanel&quot;,e[e.SetPanelId=5]=&quot;SetPanelId&quot;,e))(Jb||{});let Yb={0:e=&gt;0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=&gt;1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=&gt;e.button===t.button?e:{...e,button:t.button},3:(e,t)=&gt;e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=&gt;e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=&gt;e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class Xb extends iv{constructor(e){super(e),Qb(this,&quot;actions&quot;,{close:()=&gt;this.send({type:1}),refocusableClose:e=&gt;{this.actions.close();let t=(()=&gt;e?ny(e)?e:&quot;current&quot;in e&amp;&amp;ny(e.current)?e.current:this.state.button:this.state.button)();null==t||t.focus()},open:()=&gt;this.send({type:0}),setButtonId:e=&gt;this.send({type:3,buttonId:e}),setButton:e=&gt;this.send({type:2,button:e}),setPanelId:e=&gt;this.send({type:5,panelId:e}),setPanel:e=&gt;this.send({type:4,panel:e})}),Qb(this,&quot;selectors&quot;,{isPortalled:e=&gt;{var t;if(!e.button||!e.panel)return!1;let n=null!=(t=Zg(e.button))?t:document;for(let t of n.querySelectorAll(&quot;body &gt; *&quot;))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let r=hy(n),i=r.indexOf(e.button),o=(i+r.length-1)%r.length,s=(i+1)%r.length,a=r[o],l=r[s];return!e.panel.contains(a)&amp;&amp;!e.panel.contains(l)}});{let e=this.state.id,t=hv.get(null);this.on(0,()=&gt;t.actions.push(e)),this.on(1,()=&gt;t.actions.pop(e))}}static new({id:e,__demoMode:t=!1}){return new Xb({id:e,__demoMode:t,popoverState:t?0:1,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return sy(t.type,Yb,e,t)}}const ex=(0,l.createContext)(null);function tx(e){let t=(0,l.useContext)(ex);if(null===t){let t=new Error(`&lt;${e} /&gt; is missing a parent &lt;Popover /&gt; component.`);throw Error.captureStackTrace&amp;&amp;Error.captureStackTrace(t,tx),t}return t}let nx=(0,l.createContext)(null);function rx(){return(0,l.useContext)(nx)}nx.displayName=&quot;PopoverGroupContext&quot;;let ix=(0,l.createContext)(null);ix.displayName=&quot;PopoverPanelContext&quot;;let ox=Ty.RenderStrategy|Ty.Static;function sx(e,t){let n=(0,l.useId)(),{id:r=`headlessui-popover-backdrop-${n}`,transition:i=!1,...o}=e,s=tx(&quot;Popover.Backdrop&quot;),a=mv(s,(0,l.useCallback)(e=&gt;e.popoverState,[])),[c,u]=(0,l.useState)(null),d=bv(t,u),p=Ab(),[h,f]=Tv(i,c,null!==p?(p&amp;Nb.Open)===Nb.Open:a===Kb.Open),m=Jg(e=&gt;{if(Fb(e.currentTarget))return e.preventDefault();s.actions.close()}),g=yv({open:a===Kb.Open}),y={ref:d,id:r,&quot;aria-hidden&quot;:!0,onClick:m,...Cv(f)};return Py()({ourProps:y,theirProps:o,slot:g,defaultTag:&quot;div&quot;,features:ox,visible:h,name:&quot;Popover.Backdrop&quot;})}let ax=Ty.RenderStrategy|Ty.Static,lx=Iy(function(e,t){var n;let r=(0,l.useId)(),{__demoMode:i=!1,...o}=e,s=function({id:e,__demoMode:t=!1}){let n=(0,l.useMemo)(()=&gt;Xb.new({id:e,__demoMode:t}),[]);return Lb(()=&gt;n.dispose()),n}({id:r,__demoMode:i}),a=(0,l.useRef)(null),c=bv(t,_v(e=&gt;{a.current=e})),[u,d,p,h,f]=mv(s,(0,l.useCallback)(e=&gt;[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),m=function(...e){return(0,l.useMemo)(()=&gt;qg(...e),[...e])}(null!=(n=a.current)?n:d),g=Kg(h),y=Kg(f),v=(0,l.useMemo)(()=&gt;({buttonId:g,panelId:y,close:s.actions.close}),[g,y,s]),_=rx(),b=null==_?void 0:_.registerPopover,x=Jg(()=&gt;{var e,t;let n=Hg(null!=(e=a.current)?e:d);return null!=(t=null==_?void 0:_.isFocusWithinPopoverGroup())?t:n&amp;&amp;((null==d?void 0:d.contains(n))||(null==p?void 0:p.contains(n)))});(0,l.useEffect)(()=&gt;null==b?void 0:b(v),[b,v]);let[w,j]=function(){let e=(0,l.useContext)(qb),t=(0,l.useRef)([]),n=Jg(n=&gt;(t.current.push(n),e&amp;&amp;e.register(n),()=&gt;r(n))),r=Jg(n=&gt;{let r=t.current.indexOf(n);-1!==r&amp;&amp;t.current.splice(r,1),e&amp;&amp;e.unregister(n)}),i=(0,l.useMemo)(()=&gt;({register:n,unregister:r,portals:t}),[n,r,t]);return[t,(0,l.useMemo)(()=&gt;function({children:e}){return l.createElement(qb.Provider,{value:i},e)},[i])]}(),S=Zy(d),k=function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Jg(()=&gt;{var r,i;let o=Zg(n),s=[];for(let t of e)null!==t&amp;&amp;(ty(t)?s.push(t):&quot;current&quot;in t&amp;&amp;ty(t.current)&amp;&amp;s.push(t.current));if(null!=t&amp;&amp;t.current)for(let e of t.current)s.push(e);for(let e of null!=(r=null==o?void 0:o.querySelectorAll(&quot;html &gt; *, body &gt; *&quot;))?r:[])e!==document.body&amp;&amp;e!==document.head&amp;&amp;ty(e)&amp;&amp;&quot;headlessui-portal-root&quot;!==e.id&amp;&amp;(n&amp;&amp;(e.contains(n)||e.contains(null==(i=null==n?void 0:n.getRootNode())?void 0:i.host))||s.some(t=&gt;e.contains(t))||s.push(e));return s});return{resolveContainers:r,contains:Jg(e=&gt;r().some(t=&gt;t.contains(e)))}}({mainTreeNode:S,portals:w,defaultContainers:[{get current(){return s.state.button}},{get current(){return s.state.panel}}]});!function(e,t,n,r){let i=Kg(n);(0,l.useEffect)(()=&gt;{function n(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=&gt;e.removeEventListener(t,n,r)},[e,t,r])}(m,&quot;focus&quot;,e=&gt;{var t,n,r,i,o,a;e.target!==window&amp;&amp;ry(e.target)&amp;&amp;s.state.popoverState===Kb.Open&amp;&amp;(x()||s.state.button&amp;&amp;s.state.panel&amp;&amp;(k.contains(e.target)||null!=(n=null==(t=s.state.beforePanelSentinel.current)?void 0:t.contains)&amp;&amp;n.call(t,e.target)||null!=(i=null==(r=s.state.afterPanelSentinel.current)?void 0:r.contains)&amp;&amp;i.call(r,e.target)||null!=(a=null==(o=s.state.afterButtonSentinel.current)?void 0:o.contains)&amp;&amp;a.call(o,e.target)||s.actions.close()))},!0),jy(u===Kb.Open,k.resolveContainers,(e,t)=&gt;{s.actions.close(),my(t,fy.Loose)||(e.preventDefault(),null==d||d.focus())});let C=yv({open:u===Kb.Open,close:s.actions.refocusableClose}),T=mv(s,(0,l.useCallback)(e=&gt;sy(e.popoverState,{[Kb.Open]:Nb.Open,[Kb.Closed]:Nb.Closed}),[])),E={ref:c},P=Py();return l.createElement(By,{node:S},l.createElement(Tb,null,l.createElement(ix.Provider,{value:null},l.createElement(ex.Provider,{value:s},l.createElement(Pv,{value:s.actions.refocusableClose},l.createElement(Ib,{value:T},l.createElement(j,null,P({ourProps:E,theirProps:o,slot:C,defaultTag:&quot;div&quot;,name:&quot;Popover&quot;}))))))))}),cx=Iy(function(e,t){let n=(0,l.useId)(),{id:r=`headlessui-popover-button-${n}`,disabled:i=!1,autoFocus:o=!1,...s}=e,a=tx(&quot;Popover.Button&quot;),[c,u,d,p,h,f,m]=mv(a,(0,l.useCallback)(e=&gt;[e.popoverState,a.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),g=(0,l.useRef)(null),y=`headlessui-focus-sentinel-${(0,l.useId)()}`,v=rx(),_=null==v?void 0:v.closeOthers,b=null!==(0,l.useContext)(ix);(0,l.useEffect)(()=&gt;{if(!b)return a.actions.setButtonId(r),()=&gt;a.actions.setButtonId(null)},[b,r,a]);let[x]=(0,l.useState)(()=&gt;Symbol()),w=bv(g,t,(0,l.useContext)(kb).setReference,Jg(e=&gt;{if(!b){if(e)a.state.buttons.current.push(x);else{let e=a.state.buttons.current.indexOf(x);-1!==e&amp;&amp;a.state.buttons.current.splice(e,1)}a.state.buttons.current.length&gt;1&amp;&amp;console.warn(&quot;You are already using a &lt;Popover.Button /&gt; but only 1 &lt;Popover.Button /&gt; is supported.&quot;),e&amp;&amp;a.actions.setButton(e)}})),j=bv(g,t),S=Jg(e=&gt;{var t,n,r;if(b){if(a.state.popoverState===Kb.Closed)return;switch(e.key){case Db.Space:case Db.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),a.actions.close(),null==(r=a.state.button)||r.focus()}}else switch(e.key){case Db.Space:case Db.Enter:e.preventDefault(),e.stopPropagation(),a.state.popoverState===Kb.Closed?(null==_||_(a.state.buttonId),a.actions.open()):a.actions.close();break;case Db.Escape:if(a.state.popoverState!==Kb.Open)return null==_?void 0:_(a.state.buttonId);if(!g.current)return;let t=Hg(g.current);if(t&amp;&amp;!g.current.contains(t))return;e.preventDefault(),e.stopPropagation(),a.actions.close()}}),k=Jg(e=&gt;{b||e.key===Db.Space&amp;&amp;e.preventDefault()}),C=Jg(e=&gt;{var t,n;Fb(e.currentTarget)||i||(b?(a.actions.close(),null==(t=a.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),a.state.popoverState===Kb.Closed?(null==_||_(a.state.buttonId),a.actions.open()):a.actions.close(),null==(n=a.state.button)||n.focus()))}),T=Jg(e=&gt;{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:E,focusProps:P}=Ig({autoFocus:o}),{isHovered:O,hoverProps:R}=Mg({isDisabled:i}),{pressed:N,pressProps:A}=Yg({disabled:i}),I=c===Kb.Open,z=yv({open:I,active:N||I,disabled:i,hover:O,focus:E,autofocus:o}),F=function(e,t){return(0,l.useMemo)(()=&gt;{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:&quot;button&quot;;return&quot;string&quot;==typeof r&amp;&amp;&quot;button&quot;===r.toLowerCase()||&quot;BUTTON&quot;===(null==t?void 0:t.tagName)&amp;&amp;!t.hasAttribute(&quot;type&quot;)?&quot;button&quot;:void 0},[e.type,e.as,t])}(e,d),D=Ay(b?{ref:j,type:F,onKeyDown:S,onClick:C,disabled:i||void 0,autoFocus:o}:{ref:w,id:p,type:F,&quot;aria-expanded&quot;:c===Kb.Open,&quot;aria-controls&quot;:h?f:void 0,disabled:i||void 0,autoFocus:o,onKeyDown:S,onKeyUp:k,onClick:C,onMouseDown:T},P,R,A),L=Sv(),M=Jg(()=&gt;{if(!ny(a.state.panel))return;let e=a.state.panel;sy(L.current,{[jv.Forwards]:()=&gt;vy(e,uy.First),[jv.Backwards]:()=&gt;vy(e,uy.Last)})===dy.Error&amp;&amp;vy(hy(qg(a.state.button)).filter(e=&gt;&quot;true&quot;!==e.dataset.headlessuiFocusGuard),sy(L.current,{[jv.Forwards]:uy.Next,[jv.Backwards]:uy.Previous}),{relativeTo:a.state.button})}),$=Py();return l.createElement(l.Fragment,null,$({ourProps:D,theirProps:s,slot:z,defaultTag:&quot;button&quot;,name:&quot;Popover.Button&quot;}),I&amp;&amp;!b&amp;&amp;u&amp;&amp;l.createElement($y,{id:y,ref:m,features:My.Focusable,&quot;data-headlessui-focus-guard&quot;:!0,as:&quot;button&quot;,type:&quot;button&quot;,onFocus:M}))}),ux=Iy(sx),dx=Iy(sx),px=Iy(function(e,t){let n=(0,l.useId)(),{id:r=`headlessui-popover-panel-${n}`,focus:i=!1,anchor:o,portal:s=!1,modal:a=!1,transition:c=!1,...u}=e,d=tx(&quot;Popover.Panel&quot;),p=mv(d,d.selectors.isPortalled),[h,f,m,g,y]=mv(d,(0,l.useCallback)(e=&gt;[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),v=`headlessui-focus-sentinel-before-${n}`,_=`headlessui-focus-sentinel-after-${n}`,b=(0,l.useRef)(null),x=function(e){return(0,l.useMemo)(()=&gt;e?&quot;string&quot;==typeof e?{to:e}:e:null,[e])}(o),[w,j]=function(e=null){!1===e&amp;&amp;(e=null),&quot;string&quot;==typeof e&amp;&amp;(e={to:e});let t=(0,l.useContext)(Cb),n=(0,l.useMemo)(()=&gt;e,[JSON.stringify(e,(e,t)=&gt;{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);Qg(()=&gt;{null==t||t(null!=n?n:null)},[t,n]);let r=(0,l.useContext)(kb);return(0,l.useMemo)(()=&gt;[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}(x),S=function(){let{getFloatingProps:e,slot:t}=(0,l.useContext)(kb);return(0,l.useCallback)((...n)=&gt;Object.assign({},e(...n),{&quot;data-anchor&quot;:t.anchor}),[e,t])}();x&amp;&amp;(s=!0);let[k,C]=(0,l.useState)(null),T=bv(b,t,x?w:null,d.actions.setPanel,C),E=Sy(f),P=Sy(b.current);Qg(()=&gt;(d.actions.setPanelId(r),()=&gt;d.actions.setPanelId(null)),[r,d]);let O=Ab(),[R,N]=Tv(c,k,null!==O?(O&amp;Nb.Open)===Nb.Open:h===Kb.Open);(function(e,t,n){let r=Kg(e=&gt;{let t=e.getBoundingClientRect();0===t.x&amp;&amp;0===t.y&amp;&amp;0===t.width&amp;&amp;0===t.height&amp;&amp;n()});(0,l.useEffect)(()=&gt;{if(!e)return;let n=null===t?null:ny(t)?t:t.current;if(!n)return;let i=Gg();if(&quot;undefined&quot;!=typeof ResizeObserver){let e=new ResizeObserver(()=&gt;r.current(n));e.observe(n),i.add(()=&gt;e.disconnect())}if(&quot;undefined&quot;!=typeof IntersectionObserver){let e=new IntersectionObserver(()=&gt;r.current(n));e.observe(n),i.add(()=&gt;e.disconnect())}return()=&gt;i.dispose()},[t,r,e])})(R,f,d.actions.close),function(e,t,n=()=&gt;[document.body]){let r=function(e){let t=(0,l.useId)(),n=hv.get(&quot;scroll-lock&quot;),[r,i]=mv(n,(0,l.useCallback)(e=&gt;[n.selectors.isTop(e,t),n.selectors.inStack(e,t)],[n,t]));return Qg(()=&gt;{if(e)return n.actions.push(t),()=&gt;n.actions.pop(t)},[n,e,t]),!!e&amp;&amp;(!i||r)}(e);Vy(r,t,e=&gt;{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!m&amp;&amp;a&amp;&amp;R,P);let A=Jg(e=&gt;{var t;if(e.key===Db.Escape){if(d.state.popoverState!==Kb.Open||!b.current)return;let n=Hg(b.current);if(n&amp;&amp;!b.current.contains(n))return;e.preventDefault(),e.stopPropagation(),d.actions.close(),null==(t=d.state.button)||t.focus()}});(0,l.useEffect)(()=&gt;{var t;e.static||h===Kb.Closed&amp;&amp;(null==(t=e.unmount)||t)&amp;&amp;d.actions.setPanel(null)},[h,e.unmount,e.static,d]),(0,l.useEffect)(()=&gt;{if(m||!i||h!==Kb.Open||!b.current)return;let e=Hg(b.current);b.current.contains(e)||vy(b.current,uy.First)},[m,i,b.current,h]);let I=yv({open:h===Kb.Open,close:d.actions.refocusableClose}),z=Ay(x?S():{},{ref:T,id:r,onKeyDown:A,onBlur:i&amp;&amp;h===Kb.Open?e=&gt;{var t,n,r,i,o;let s=e.relatedTarget;s&amp;&amp;b.current&amp;&amp;(null!=(t=b.current)&amp;&amp;t.contains(s)||(d.actions.close(),(null!=(r=null==(n=g.current)?void 0:n.contains)&amp;&amp;r.call(n,s)||null!=(o=null==(i=y.current)?void 0:i.contains)&amp;&amp;o.call(i,s))&amp;&amp;s.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...j,&quot;--button-width&quot;:ey(R,f,!0).width},...Cv(N)}),F=Sv(),D=Jg(()=&gt;{let e=b.current;e&amp;&amp;sy(F.current,{[jv.Forwards]:()=&gt;{var t;vy(e,uy.First)===dy.Error&amp;&amp;(null==(t=d.state.afterPanelSentinel.current)||t.focus())},[jv.Backwards]:()=&gt;{var e;null==(e=d.state.button)||e.focus({preventScroll:!0})}})}),L=Jg(()=&gt;{let e=b.current;e&amp;&amp;sy(F.current,{[jv.Forwards]:()=&gt;{var e;if(!d.state.button)return;let t=hy(null!=(e=qg(d.state.button))?e:document.body),n=t.indexOf(d.state.button),r=t.slice(0,n+1),i=[...t.slice(n+1),...r];for(let e of i.slice())if(&quot;true&quot;===e.dataset.headlessuiFocusGuard||null!=k&amp;&amp;k.contains(e)){let t=i.indexOf(e);-1!==t&amp;&amp;i.splice(t,1)}vy(i,uy.First,{sorted:!1})},[jv.Backwards]:()=&gt;{var t;vy(e,uy.Previous)===dy.Error&amp;&amp;(null==(t=d.state.button)||t.focus())}})}),M=Py();return l.createElement(zb,null,l.createElement(ix.Provider,{value:r},l.createElement(Pv,{value:d.actions.refocusableClose},l.createElement(Gb,{enabled:!!s&amp;&amp;(e.static||R),ownerDocument:E},R&amp;&amp;p&amp;&amp;l.createElement($y,{id:v,ref:g,features:My.Focusable,&quot;data-headlessui-focus-guard&quot;:!0,as:&quot;button&quot;,type:&quot;button&quot;,onFocus:D}),M({ourProps:z,theirProps:u,slot:I,defaultTag:&quot;div&quot;,features:ax,visible:R,name:&quot;Popover.Panel&quot;}),R&amp;&amp;p&amp;&amp;l.createElement($y,{id:_,ref:y,features:My.Focusable,&quot;data-headlessui-focus-guard&quot;:!0,as:&quot;button&quot;,type:&quot;button&quot;,onFocus:L})))))}),hx=Iy(function(e,t){let n=(0,l.useRef)(null),r=bv(n,t),[i,o]=(0,l.useState)([]),s=Jg(e=&gt;{o(t=&gt;{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),a=Jg(e=&gt;(o(t=&gt;[...t,e]),()=&gt;s(e))),c=Jg(()=&gt;{var e;let t=qg(n.current);if(!t)return!1;let r=Hg(n.current);return!(null==(e=n.current)||!e.contains(r))||i.some(e=&gt;{var n,i;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(r))||(null==(i=t.getElementById(e.panelId.current))?void 0:i.contains(r))})}),u=Jg(e=&gt;{for(let t of i)t.buttonId.current!==e&amp;&amp;t.close()}),d=(0,l.useMemo)(()=&gt;({registerPopover:a,unregisterPopover:s,isFocusWithinPopoverGroup:c,closeOthers:u}),[a,s,c,u]),p=yv({}),h=e,f={ref:r},m=Py();return l.createElement(By,null,l.createElement(nx.Provider,{value:d},m({ourProps:f,theirProps:h,slot:p,defaultTag:&quot;div&quot;,name:&quot;Popover.Group&quot;})))}),fx=Object.assign(lx,{Button:cx,Backdrop:dx,Overlay:ux,Panel:px,Group:hx}),mx=(0,l.createContext)(void 0),gx=Iy(function(e,t){var n;let r=(0,l.useContext)(mx),{disabled:i=r||!1,autoFocus:o=!1,...s}=e,{isFocusVisible:a,focusProps:c}=Ig({autoFocus:o}),{isHovered:u,hoverProps:d}=Mg({isDisabled:i}),{pressed:p,pressProps:h}=Yg({disabled:i}),f=Ay({ref:t,type:null!=(n=s.type)?n:&quot;button&quot;,disabled:i||void 0,autoFocus:o},c,d,h),m=yv({disabled:i,hover:u,focus:a,active:p,autofocus:o});return Py()({ourProps:f,theirProps:s,slot:m,defaultTag:&quot;button&quot;,name:&quot;Button&quot;})}),yx=Iy(function(e,t){let n=(0,l.useContext)(Ev);return l.createElement(gx,{ref:t,...Ay({onClick:n},e)})});function vx(e){const{options:t,disabled:n=!1,title:r,selected:i}=e;return(0,d.jsxs)(fx,{className:y(&quot;wpl-dropdownbutton&quot;,t.length&lt;=1?&quot;wpl-dropdownbutton__single&quot;:null),children:[(0,d.jsx)(&quot;button&quot;,{onClick:function(n){n.preventDefault();const r=i||t[0]?.value;r&amp;&amp;e.onSelect(r)},type:&quot;button&quot;,className:y(&quot;wpl-dropdownbutton__main&quot;,n&amp;&amp;&quot;wpl-dropdownbutton__disabled&quot;),children:(0,d.jsx)(&quot;h5&quot;,{children:r})}),t.length&gt;1&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(cx,{disabled:n,className:y(&quot;wpl-dropdownbutton&quot;,&quot;wpl-popover__toggle&quot;,n&amp;&amp;&quot;wpl-dropdownbutton__disabled&quot;),children:(0,d.jsx)(Hf,{})}),(0,d.jsx)(px,{anchor:&quot;bottom start&quot;,className:&quot;wpl-dropdownbutton__popover wpl-popover wpl-popover__content&quot;,children:({close:n})=&gt;(0,d.jsx)(&quot;ul&quot;,{children:t.map(({label:t,value:r,description:o})=&gt;(0,d.jsxs)(&quot;li&quot;,{className:y({&quot;wpl-dropdownbutton__item&quot;:!0,[&quot;wpl-dropdownbutton__&quot;+r]:!0,&quot;wpl-dropdownbutton__selected&quot;:i===r}),children:[i===r?(0,d.jsx)(&quot;span&quot;,{className:&quot;wpl-dropdownbutton__selected-icon&quot;,children:&quot;✓&quot;}):(0,d.jsx)(&quot;span&quot;,{className:&quot;wpl-dropdownbutton__selected-icon&quot;}),(0,d.jsxs)(yx,{as:&quot;button&quot;,className:&quot;button&quot;,onClick:t=&gt;function(t,n,r){t.preventDefault(),t.stopPropagation(),r(),e.onSelect(n)}(t,r,n),children:[t,o&amp;&amp;(0,d.jsx)(&quot;span&quot;,{children:o})]})]},r))})})]})]})}const bx=({headerValue:e,options:t,onChange:n})=&gt;(0,d.jsx)(Sd,{items:t,name:&quot;headerValue&quot;,value:e,onChange:e=&gt;n({[e.target.name]:e.target.value})}),xx=e=&gt;&quot;&lt;&quot;+e+&quot;&gt;&quot;,wx=(e,t)=&gt;e.includes(xx(t));function jx(e,t){return&quot;uri&quot;===t?e.replace(/[^A-Za-z0-9-._~:/?#\[\]@!$&amp;&#039;()*+,;=]/g,&quot;&quot;):&quot;integer&quot;===t?parseInt(e,10):e}const Sx=({headerValue:e,headerSettings:t,options:n,onChange:r})=&gt;{const{choices:i,replace:o,replaceType:s}=n,a=t.selected?t.selected:e,l=t.replaceValue?t.replaceValue:&quot;&quot;;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Sd,{items:i,name:&quot;headerValue&quot;,value:a,onChange:e=&gt;{r({headerValue:e.target.value,headerSettings:{selected:e.target.value,replaceValue:&quot;&quot;}})}}),wx(a,o)&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;label&quot;,{htmlFor:`header-replace-${o}`,children:xx(o).replace(/&lt;/g,&quot;&quot;).replace(/&gt;/g,&quot;&quot;)}),(0,d.jsx)(&quot;input&quot;,{id:`header-replace-${o}`,type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;replaceValue&quot;,value:l,onChange:e=&gt;{r({headerValue:a.replace(xx(o),e.target.value),headerSettings:{selected:a,replaceValue:jx(e.target.value,s)}})}})]})]})},kx=({headerValue:e,onChange:t})=&gt;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(&quot;label&quot;,{htmlFor:&quot;header-plain-value&quot;,children:[(0,m.__)(&quot;Value&quot;,&quot;redirection&quot;),&quot;:&quot;]}),&quot; &quot;,(0,d.jsx)(&quot;input&quot;,{id:&quot;header-plain-value&quot;,type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;headerValue&quot;,value:e,onChange:e=&gt;t({[e.target.name]:e.target.value})})]}),Cx=({headerValue:e,options:t,onChange:n})=&gt;{const{choices:r,implode:i,wildCard:o}=t,s=e.split(i);return(0,d.jsx)(Wf,{options:o?r.concat([{value:o,label:(0,m.__)(&quot;All&quot;,&quot;redirection&quot;)}]):r,selected:s,onChange:e=&gt;{if(!Array.isArray(e))return;const t=s,r=e.find(e=&gt;!t.includes(e))||t.find(t=&gt;!e.includes(t));if(o&amp;&amp;r===o){const e=1===t.length&amp;&amp;t[0]===o;return void n({headerValue:e?&quot;&quot;:o})}n({headerValue:e.filter(e=&gt;e!==o).filter(e=&gt;e).join(i)})},title:(0,m.__)(&quot;Values&quot;,&quot;redirection&quot;),hideTitle:!0,multiple:!0,badges:!0})},Tx=e=&gt;e.map(e=&gt;({label:e,value:e})),Ex={&quot;X-UA-Compatible&quot;:{component:bx,info:&quot;https://frankcode.net/2013/10/17/a-guide-to-ie-compatibility-view-and-x-ua-compatible/&quot;,default:&quot;Chrome=1&quot;,options:Tx([&quot;IE=EmulateIE7&quot;,&quot;IE=edge&quot;,&quot;Chrome=1&quot;])},&quot;X-Frame-Options&quot;:{component:Sx,info:&quot;&quot;,default:&quot;deny&quot;,options:{choices:Tx([&quot;deny&quot;,&quot;sameorigin&quot;,&quot;allow-from &lt;URI&gt;&quot;]),replace:&quot;URI&quot;,replaceType:&quot;uri&quot;}},&quot;Strict-Transport-Security&quot;:{component:Sx,default:&quot;max-age=&lt;expire-time&gt;&quot;,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security&quot;,options:{choices:Tx([&quot;max-age=&lt;expire-time&gt;&quot;,&quot;max-age=&lt;expire-time&gt;; includeSubDomains&quot;,&quot;max-age=&lt;expire-time&gt;; preload&quot;,&quot;max-age=&lt;expire-time&gt;; includeSubDomains; preload&quot;]),replace:&quot;expire-time&quot;,replaceType:&quot;integer&quot;}},&quot;X-XSS-Protection&quot;:{component:Sx,default:&quot;1; mode=block&quot;,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection&quot;,options:{choices:Tx([&quot;0&quot;,&quot;1&quot;,&quot;1; mode=block&quot;,&quot;1; report=&lt;URI&gt;&quot;]),replace:&quot;URI&quot;,replaceType:&quot;uri&quot;}},&quot;X-Content-Type-Options&quot;:{component:bx,default:&quot;nosniff&quot;,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options&quot;,options:Tx([&quot;nosniff&quot;])},&quot;Feature-Policy&quot;:{component:kx,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy&quot;},&quot;Permissions-Policy&quot;:{component:kx,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy&quot;,default:&quot;camera=(), display-capture=(), geolocation=(), microphone=()&quot;},&quot;Clear-Site-Data&quot;:{component:Cx,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data&quot;,default:&quot;cache&quot;,options:{choices:Tx([&quot;cache&quot;,&quot;cookies&quot;,&quot;storage&quot;,&quot;executionContexts&quot;]),implode:&quot;,&quot;,wildCard:&quot;*&quot;}},&quot;Referrer-Policy&quot;:{component:bx,default:&quot;no-referrer-when-downgrade&quot;,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy&quot;,options:Tx([&quot;no-referrer&quot;,&quot;no-referrer-when-downgrade&quot;,&quot;origin&quot;,&quot;origin-when-cross-origin&quot;,&quot;same-origin&quot;,&quot;strict-origin&quot;,&quot;strict-origin-when-cross-origin&quot;,&quot;unsafe-url&quot;])},&quot;Content-Security-Policy-Report-Only&quot;:{component:kx,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only&quot;},Custom:{component:({headerValue:e,headerName:t,onChange:n})=&gt;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;headerName&quot;,value:t,onChange:e=&gt;n({[e.target.name]:e.target.value})}),&quot;Value:&quot;,&quot; &quot;,(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;headerValue&quot;,value:e,onChange:e=&gt;n({[e.target.name]:e.target.value})})]})},&quot;Access-Control-Allow-Methods&quot;:{component:Cx,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods&quot;,default:&quot;GET&quot;,options:{choices:Tx([&quot;GET&quot;,&quot;POST&quot;,&quot;PUT&quot;,&quot;HEAD&quot;,&quot;DELETE&quot;,&quot;OPTIONS&quot;]),implode:&quot;,&quot;,wildCard:&quot;*&quot;}},&quot;Access-Control-Allow-Credentials&quot;:{component:bx,default:&quot;true&quot;,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials&quot;,options:Tx([&quot;true&quot;])},&quot;Access-Control-Allow-Origin&quot;:{component:Sx,default:&quot;&lt;origin&gt;&quot;,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin&quot;,options:{choices:Tx([&quot;&lt;origin&gt;&quot;,&quot;*&quot;]),replace:&quot;origin&quot;,replaceType:&quot;uri&quot;}},&quot;X-Robots-Tag&quot;:{component:Cx,default:&quot;noindex&quot;,info:&quot;https://developers.google.com/search/reference/robots_meta_tag#xrobotstag&quot;,options:{choices:Tx([&quot;noindex&quot;,&quot;nofollow&quot;,&quot;none&quot;,&quot;noarchive&quot;,&quot;nosnippet&quot;,&quot;notranslate&quot;,&quot;noimageindex&quot;]),implode:&quot;,&quot;,wildCard:&quot;all&quot;}},&quot;Access-Control-Allow-Headers&quot;:{component:kx,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers&quot;},&quot;Access-Control-Max-Age&quot;:{component:kx,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age&quot;},&quot;Access-Control-Expose-Headers&quot;:{component:kx,info:&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers&quot;}},Px=e=&gt;{const t=Ex[e];return t&amp;&amp;t.options?t.options:null},Ox=e=&gt;{const t=Ex[e];return t&amp;&amp;t.default?t.default:&quot;&quot;},Rx=({header:e,onChange:t,onDelete:n})=&gt;{const{location:r,headerName:i,headerValue:o,headerSettings:s,type:a}=e,l=n=&gt;{t({...e,...n})},c=t=&gt;{const{name:n,value:r}=t.target;let o=i;&quot;type&quot;===n&amp;&amp;&quot;Custom&quot;===r?o=&quot;&quot;:&quot;type&quot;===n&amp;&amp;(o=r),l({headerValue:&quot;type&quot;===n?Ox(r):e.headerValue,headerSettings:&quot;type&quot;===n?Px(o):e.headerSettings,headerName:o,[n]:r})},u=((e,t,n,r,i)=&gt;{const o=Ex[s=e]?Ex[s].component:kx;var s;return(0,d.jsx)(o,{headerName:t,headerValue:&quot;&quot;===n?Ox(e):n,headerSettings:r,options:Px(e),onChange:i})})(a,i,o,s,l),p=(e=&gt;{const t=Ex[e];return t&amp;&amp;t.info?t.info:null})(i);return(0,d.jsxs)(&quot;tr&quot;,{className:&quot;redirect-headers__item&quot;,children:[(0,d.jsx)(&quot;td&quot;,{className:&quot;redirect-headers__type&quot;,children:(0,d.jsx)(Sd,{items:[{label:(0,m.__)(&quot;Site&quot;,&quot;redirection&quot;),value:&quot;site&quot;},{label:(0,m.__)(&quot;Redirect&quot;,&quot;redirection&quot;),value:&quot;redirect&quot;}],name:&quot;location&quot;,value:r,onChange:c})}),(0,d.jsxs)(&quot;td&quot;,{className:&quot;redirect-headers__name&quot;,children:[(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirect-headers__name__content&quot;,children:[(0,d.jsx)(Sd,{items:[{label:(0,m.__)(&quot;General&quot;,&quot;redirection&quot;),value:Tx([&quot;X-UA-Compatible&quot;,&quot;X-Robots-Tag&quot;])},{label:&quot;CORS&quot;,value:Tx([&quot;Access-Control-Allow-Headers&quot;,&quot;Access-Control-Allow-Methods&quot;,&quot;Access-Control-Max-Age&quot;,&quot;Access-Control-Allow-Credentials&quot;,&quot;Access-Control-Allow-Origin&quot;,&quot;Access-Control-Expose-Headers&quot;])},{label:&quot;Security&quot;,value:Tx([&quot;X-Frame-Options&quot;,&quot;X-XSS-Protection&quot;,&quot;X-Content-Type-Options&quot;,&quot;Strict-Transport-Security&quot;,&quot;Feature-Policy&quot;,&quot;Permissions-Policy&quot;,&quot;Clear-Site-Data&quot;,&quot;Referrer-Policy&quot;,&quot;Content-Security-Policy&quot;,&quot;Content-Security-Policy-Report-Only&quot;,&quot;P3P&quot;])},{label:(0,m.__)(&quot;Custom Header&quot;,&quot;redirection&quot;),value:&quot;Custom&quot;}],name:&quot;type&quot;,value:a,onChange:c}),u]}),p&amp;&amp;(0,d.jsx)(z,{url:p,children:(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-editor-help&quot;})})]}),(0,d.jsx)(&quot;td&quot;,{className:&quot;redirect-headers__delete&quot;,children:(0,d.jsx)(&quot;button&quot;,{onClick:t=&gt;{t.preventDefault(),n(e.id)},children:(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-trash&quot;})})})]})},Nx=(e=&quot;X-Robots-Tag&quot;,t=&quot;nofollow&quot;,n={})=&gt;({location:&quot;site&quot;,type:e,headerName:e,headerValue:t,headerSettings:n}),Ax=({headers:e,onChange:t})=&gt;{const[n,r]=(0,l.useState)(&quot;header&quot;),i=[{label:(0,m.__)(&quot;Add Header&quot;,&quot;redirection&quot;),value:&quot;header&quot;},{label:(0,m.__)(&quot;Add Security Presets&quot;,&quot;redirection&quot;),value:&quot;security&quot;},{label:(0,m.__)(&quot;Add CORS Presets&quot;,&quot;redirection&quot;),value:&quot;cors&quot;}],o=i.find(e=&gt;e.value===n);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;HTTP Headers&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Site headers are added across your site, including redirects. Redirect headers are only added to redirects.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;table&quot;,{className:&quot;wp-list-table widefat fixed striped items redirect-headers table-auto&quot;,children:[(0,d.jsx)(&quot;thead&quot;,{children:(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Location&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Header&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;th&quot;,{})]})}),(0,d.jsxs)(&quot;tbody&quot;,{children:[e.map((n,r)=&gt;(0,d.jsx)(Rx,{header:n,onChange:n=&gt;((e,t,n,r)=&gt;{const i=n.slice();i[e]=t,r({headers:i})})(r,n,e,t),onDelete:()=&gt;((e,t,n)=&gt;{n({headers:[...t.slice(0,e),...t.slice(e+1)]})})(r,e,t)},r)),0===e.length&amp;&amp;(0,d.jsx)(&quot;tr&quot;,{children:(0,d.jsx)(&quot;td&quot;,{colSpan:3,children:(0,m.__)(&quot;No headers&quot;,&quot;redirection&quot;)})})]})]}),(0,d.jsx)(vx,{options:i,selected:n,title:o?o.label:i[0]?.label||&quot;&quot;,onSelect:n=&gt;{r(n),((e,t,n)=&gt;{&quot;header&quot;===e?n({headers:t.concat([Nx()])}):&quot;security&quot;===e?n({headers:t.concat([Nx(&quot;X-Frame-Options&quot;,&quot;deny&quot;),Nx(&quot;X-XSS-Protection&quot;,&quot;1; mode=block&quot;),Nx(&quot;X-Content-Type-Options&quot;,&quot;nosniff&quot;),Nx(&quot;Content-Security-Policy&quot;,&quot;default-src &#039;none&#039;; script-src &#039;self&#039;; connect-src &#039;self&#039;; img-src &#039;self&#039;; style-src &#039;self&#039;;base-uri &#039;self&#039;;form-action &#039;self&#039;&quot;),&quot;https&quot;===document.location.protocol?Nx(&quot;Strict-Transport-Security&quot;,&quot;max-age: 31536000; includeSubDomains&quot;):null,Nx(&quot;Referrer-Policy&quot;,&quot;no-referrer-when-downgrade&quot;)].filter(e=&gt;e))}):&quot;cors&quot;===e&amp;&amp;n({headers:t.concat([Nx(&quot;Access-Control-Allow-Origin&quot;,&quot;*&quot;),Nx(&quot;Access-Control-Allow-Credentials&quot;,&quot;true&quot;),Nx(&quot;Access-Control-Allow-Methods&quot;,&quot;POST,GET,OPTIONS&quot;),Nx(&quot;Access-Control-Allow-Headers&quot;,&quot;origin&quot;),Nx(&quot;Referrer-Policy&quot;,&quot;no-referrer-when-downgrade&quot;),Nx(&quot;P3P&quot;,&#039;CP=&quot;CAO PSA OUR&quot;&#039;)])})})(n,e,t)}}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Note that some HTTP headers are set by your server and cannot be changed.&quot;,&quot;redirection&quot;)})]})},Ix=function({link:e,onChange:t,onDelete:n}){return(0,d.jsxs)(&quot;tr&quot;,{className:&quot;redirect-alias__item&quot;,children:[(0,d.jsx)(&quot;td&quot;,{children:(0,d.jsx)(&quot;input&quot;,{className:&quot;regular-text&quot;,type:&quot;text&quot;,name:&quot;link&quot;,value:e,onChange:t})}),(0,d.jsx)(&quot;td&quot;,{className:&quot;redirect-alias__delete&quot;,children:(0,d.jsx)(&quot;button&quot;,{onClick:e=&gt;{e.preventDefault(),n()},children:(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-trash&quot;})})})]})},zx=function(e){const{permalinks:t,onChange:n}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Permalink Migration&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Enter old permalinks structures to automatically migrate them to your current one.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Note: this is in beta and will only migrate posts. Certain permalinks will not work. If yours does not work then you will need to wait until it is out of beta.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;table&quot;,{className:&quot;wp-list-table widefat fixed striped items redirect-aliases table-auto&quot;,children:[(0,d.jsx)(&quot;thead&quot;,{children:(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Permalinks&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;th&quot;,{className:&quot;redirect-alias__delete&quot;})]})}),(0,d.jsxs)(&quot;tbody&quot;,{children:[t.map((e,r)=&gt;(0,d.jsx)(Ix,{link:e,onChange:e=&gt;((e,t,n,r)=&gt;{const i=t.slice();i[e]=r.target.value,n({permalinks:i})})(r,t,n,e),onDelete:()=&gt;((e,t,n)=&gt;{n({permalinks:[...t.slice(0,e),...t.slice(e+1)]})})(r,t,n)},r)),0===t.length&amp;&amp;(0,d.jsx)(&quot;tr&quot;,{children:(0,d.jsx)(&quot;td&quot;,{colSpan:2,children:(0,m.__)(&quot;No migrated permalinks&quot;,&quot;redirection&quot;)})})]})]}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary&quot;,onClick:e=&gt;((e,t,n)=&gt;{n.preventDefault(),t({permalinks:e.concat(&quot;&quot;).slice(0,10)})})(t,n,e),children:(0,m.__)(&quot;Add Permalink&quot;,&quot;redirection&quot;)})})]})};function Fx(){const e=Bm(Redirectioni10n.pluginRoot),t=pe(e=&gt;e.loadStatus),n=pe(e=&gt;e.values),r=pe(e=&gt;e.saveStatus);Pd();const{mutate:i}=Od(),[o,s]=(0,l.useState)(!1),[a,c]=(0,l.useState)(&quot;&quot;),[u,p]=(0,l.useState)([]),[h,f]=(0,l.useState)(&quot;&quot;),[g,y]=(0,l.useState)([]),[v,_]=(0,l.useState)([]);(0,l.useEffect)(()=&gt;{n&amp;&amp;(s(n.https||!1),c(n.preferred_domain||&quot;&quot;),p(n.headers||[]),f(n.relocate||&quot;&quot;),y(n.aliases||[]),_(n.permalinks||[]))},[n]);const b=e=&gt;{void 0!==e.https&amp;&amp;s(e.https),void 0!==e.preferred_domain&amp;&amp;c(e.preferred_domain),void 0!==e.headers&amp;&amp;p(e.headers),void 0!==e.relocate&amp;&amp;f(e.relocate),void 0!==e.aliases&amp;&amp;y(e.aliases),void 0!==e.permalinks&amp;&amp;_(e.permalinks)};return&quot;loading&quot;!==t&amp;&amp;n?(0,d.jsxs)(&quot;form&quot;,{onSubmit:e=&gt;{e.preventDefault(),i({https:o,headers:u,preferred_domain:a,aliases:g.filter(e=&gt;e).map(Bm),relocate:Um(h),permalinks:v})},children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;inline-notice inline-warning&quot;,children:(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;Options on this page can cause problems if used incorrectly. You can {{link}}temporarily disable them{{/link}} to make changes.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/disable-redirection/&quot;})})})}),(0,d.jsx)(Hm,{relocate:h,siteDomain:e,onChange:b}),0===h.length&amp;&amp;(0,d.jsx)(qm,{aliases:g,siteDomain:e,onChange:b}),0===h.length&amp;&amp;(0,d.jsx)(Gm,{https:o,siteDomain:e,preferredDomain:a,onChange:b}),0===h.length&amp;&amp;(0,d.jsx)(zx,{permalinks:v,onChange:b}),(0,d.jsx)(Ax,{headers:u,onChange:b}),(0,d.jsx)(&quot;input&quot;,{className:&quot;button-primary&quot;,type:&quot;submit&quot;,name:&quot;update&quot;,value:(0,m.__)(&quot;Update&quot;,&quot;redirection&quot;),disabled:r})]}):(0,d.jsx)($p,{})}const Dx=e=&gt;&quot;url&quot;===e?[{name:&quot;url&quot;,title:(0,m.__)(&quot;Source URL&quot;,&quot;redirection&quot;),primary:!0,sortable:!1},{name:&quot;count&quot;,title:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;),sortable:!0}]:&quot;ip&quot;===e?[{name:&quot;ip&quot;,title:(0,m.__)(&quot;IP&quot;,&quot;redirection&quot;),primary:!0,sortable:!1},{name:&quot;count&quot;,title:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;),sortable:!0}]:&quot;agent&quot;===e?[{name:&quot;agent&quot;,title:(0,m.__)(&quot;User Agent&quot;,&quot;redirection&quot;),primary:!0,sortable:!1},{name:&quot;count&quot;,title:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;),sortable:!0}]:[{name:&quot;date&quot;,title:(0,m.__)(&quot;Date&quot;,&quot;redirection&quot;)},{name:&quot;method&quot;,title:(0,m.__)(&quot;Method&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;domain&quot;,title:(0,m.__)(&quot;Domain&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;url&quot;,title:(0,m.__)(&quot;Source URL&quot;,&quot;redirection&quot;),primary:!0},{name:&quot;target&quot;,title:(0,m.__)(&quot;Target URL&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;redirect_by&quot;,title:(0,m.__)(&quot;Redirect By&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;code&quot;,title:(0,m.__)(&quot;HTTP code&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;referrer&quot;,title:(0,m.__)(&quot;Referrer&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;agent&quot;,title:(0,m.__)(&quot;User Agent&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;ip&quot;,title:(0,m.__)(&quot;IP&quot;,&quot;redirection&quot;),sortable:!1}],Lx=e=&gt;e?[{value:&quot;group&quot;,label:(0,m.__)(&quot;Group&quot;,&quot;redirection&quot;),grouping:[e,&quot;count&quot;]}]:[{value:&quot;standard&quot;,label:(0,m.__)(&quot;Standard Display&quot;,&quot;redirection&quot;),grouping:[&quot;date&quot;,&quot;url&quot;,&quot;target&quot;,&quot;agent&quot;,&quot;ip&quot;]},{value:&quot;minimal&quot;,label:(0,m.__)(&quot;Compact Display&quot;,&quot;redirection&quot;),grouping:[&quot;date&quot;,&quot;url&quot;]},{value:&quot;all&quot;,label:(0,m.__)(&quot;Display All&quot;,&quot;redirection&quot;),grouping:Mx(e).map(e=&gt;e.value)}],Mx=e=&gt;&quot;url&quot;===e?[{value:&quot;url&quot;,label:(0,m.__)(&quot;URL&quot;,&quot;redirection&quot;)},{value:&quot;count&quot;,label:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;)}]:&quot;agent&quot;===e?[{value:&quot;agent&quot;,label:(0,m.__)(&quot;User Agent&quot;,&quot;redirection&quot;)},{value:&quot;count&quot;,label:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;)}]:&quot;ip&quot;===e?[{value:&quot;ip&quot;,label:(0,m.__)(&quot;IP&quot;,&quot;redirection&quot;)},{value:&quot;count&quot;,label:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;)}]:[{value:&quot;date&quot;,label:(0,m.__)(&quot;Date&quot;,&quot;redirection&quot;)},{value:&quot;method&quot;,label:(0,m.__)(&quot;Method&quot;,&quot;redirection&quot;)},{value:&quot;domain&quot;,label:(0,m.__)(&quot;Domain&quot;,&quot;redirection&quot;)},{value:&quot;url&quot;,label:(0,m.__)(&quot;URL&quot;,&quot;redirection&quot;)},{value:&quot;redirect_by&quot;,label:(0,m.__)(&quot;Redirect By&quot;,&quot;redirection&quot;)},{value:&quot;code&quot;,label:(0,m.__)(&quot;HTTP code&quot;,&quot;redirection&quot;)},{value:&quot;referrer&quot;,label:(0,m.__)(&quot;Referrer&quot;,&quot;redirection&quot;)},{value:&quot;agent&quot;,label:(0,m.__)(&quot;User Agent&quot;,&quot;redirection&quot;)},{value:&quot;target&quot;,label:(0,m.__)(&quot;Target&quot;,&quot;redirection&quot;)},{value:&quot;ip&quot;,label:(0,m.__)(&quot;IP&quot;,&quot;redirection&quot;)}],$x=e=&gt;{const t=[{value:&quot;&quot;,label:(0,m.__)(&quot;No grouping&quot;,&quot;redirection&quot;)},{value:&quot;url&quot;,label:(0,m.__)(&quot;Group by URL&quot;,&quot;redirection&quot;)},{value:&quot;agent&quot;,label:(0,m.__)(&quot;Group by user agent&quot;,&quot;redirection&quot;)}];return e&gt;0&amp;&amp;t.push({value:&quot;ip&quot;,label:(0,m.__)(&quot;Group by IP&quot;,&quot;redirection&quot;)}),t},Ux=window.Redirectioni10n?.per_page?parseInt(window.Redirectioni10n.per_page,10):25,Bx={page:0,per_page:Ux,orderby:&quot;id&quot;,direction:&quot;desc&quot;,selected:[],filterBy:{},displayType:&quot;standard&quot;,displaySelected:[&quot;last_count&quot;,&quot;last_access&quot;,&quot;source&quot;,&quot;target&quot;,&quot;code&quot;,&quot;title&quot;],groupBy:&quot;&quot;},Zx={page:0,per_page:Ux,orderby:&quot;name&quot;,direction:&quot;desc&quot;,selected:[],filterBy:{},displayType:&quot;standard&quot;,displaySelected:[&quot;name&quot;,&quot;module&quot;,&quot;redirects&quot;],groupBy:&quot;&quot;},qx={page:0,per_page:Ux,orderby:&quot;&quot;,direction:&quot;desc&quot;,selected:[],filterBy:{},displayType:&quot;standard&quot;,displaySelected:[&quot;date&quot;,&quot;url&quot;,&quot;target&quot;,&quot;agent&quot;,&quot;ip&quot;],groupBy:&quot;&quot;},Hx={page:0,per_page:Ux,orderby:&quot;&quot;,direction:&quot;desc&quot;,selected:[],filterBy:{},displayType:&quot;standard&quot;,displaySelected:[&quot;date&quot;,&quot;url&quot;,&quot;agent&quot;,&quot;ip&quot;],groupBy:&quot;&quot;},Wx={redirects:Bx,groups:Zx,logs:qx,errors:Hx,redirectsAddTop:!1},Gx=te()(se(ue(e=&gt;({...Wx,setRedirectsTable:t=&gt;e(e=&gt;({redirects:{...e.redirects,...t}})),clearRedirectsSelected:()=&gt;e(e=&gt;({redirects:{...e.redirects,selected:[]}})),setRedirectsSelected:t=&gt;e(e=&gt;({redirects:{...e.redirects,selected:t,selectAll:!1}})),setRedirectsAddTop:t=&gt;e({redirectsAddTop:t}),resetRedirectsTable:()=&gt;e({redirects:Bx,redirectsAddTop:!1}),setGroupsTable:t=&gt;e(e=&gt;({groups:{...e.groups,...t}})),clearGroupsSelected:()=&gt;e(e=&gt;({groups:{...e.groups,selected:[]}})),setGroupsSelected:t=&gt;e(e=&gt;({groups:{...e.groups,selected:t,selectAll:!1}})),resetGroupsTable:()=&gt;e({groups:Zx}),setLogsTable:t=&gt;e(e=&gt;({logs:{...e.logs,...t}})),clearLogsSelected:()=&gt;e(e=&gt;({logs:{...e.logs,selected:[]}})),setLogsSelected:t=&gt;e(e=&gt;({logs:{...e.logs,selected:t,selectAll:!1}})),resetLogsTable:()=&gt;e({logs:qx}),setErrorsTable:t=&gt;e(e=&gt;({errors:{...e.errors,...t}})),clearErrorsSelected:()=&gt;e(e=&gt;({errors:{...e.errors,selected:[]}})),setErrorsSelected:t=&gt;e(e=&gt;({errors:{...e.errors,selected:t,selectAll:!1}})),resetErrorsTable:()=&gt;e({errors:Hx}),reset:()=&gt;e(Wx)}),{name:&quot;redirection-display&quot;,partialize:e=&gt;({redirects:{displayType:e.redirects.displayType,displaySelected:e.redirects.displaySelected},groups:{displayType:e.groups.displayType,displaySelected:e.groups.displaySelected},logs:{displayType:e.logs.displayType,displaySelected:e.logs.displaySelected},errors:{displayType:e.errors.displayType,displaySelected:e.errors.displaySelected}}),merge:(e,t)=&gt;{const n=e??{};return{...t,redirects:{...t.redirects,...n.redirects},groups:{...t.groups,...n.groups},logs:{...t.logs,...n.logs},errors:{...t.errors,...n.errors}}}}),{name:&quot;TableStore&quot;})),Vx=Dc({id:Uc([rc().int(),ol()]),created:ol().optional(),url:ol().optional(),sent_to:ol().optional().nullable(),agent:ol().optional().nullable(),referrer:ol().optional().nullable(),ip:ol().optional().nullable(),domain:ol().optional().nullable(),redirect_id:rc().int().optional(),redirection_id:rc().int().optional(),request_method:ol().optional().nullable(),http_code:rc().int().optional(),request_data:Cc().optional().nullable(),redirect_by:ol().optional().nullable(),count:id().int().optional()}),Qx=Dc({id:Uc([rc().int(),ol()]),created:ol().optional(),created_time:ol().optional(),url:ol().optional(),agent:ol().optional().nullable(),referrer:ol().optional().nullable(),domain:ol().optional().nullable(),ip:ol().optional().nullable(),http_code:rc().int().optional(),request_method:ol().optional().nullable(),request_data:Cc().optional().nullable(),count:id().int().optional()}),Kx=im(Vx),Jx=im(Qx);function Yx(e){const t=h(),{incrementProgress:n,decrementProgress:r,addNotice:i,addError:o}=cd(),{setErrorsTable:s}=Gx();return pt({mutationFn:async({action:e,items:t,params:i={}})=&gt;{n();try{return await jt(Jt(e,{items:t},i))}catch(e){throw r(),sd(e)}},onSuccess:(e,n)=&gt;{r();const o=&quot;delete&quot;===n.action?&quot;deleted&quot;:n.action;i(`404 errors ${o}`),s(cm(n.params)),t.invalidateQueries({queryKey:ad.errors.all})},onError:e=&gt;{o(e.message||&quot;Failed to perform 404 error action&quot;)},...e})}function Xx(e){const{table:t,setTable:n,allowedOrder:r=[],allowedGroup:i=[],allowedFilters:o=[],defaultOrder:s=&quot;&quot;,pageName:a}=e,c=(0,l.useRef)(!1),u=(0,l.useRef)(null);(0,l.useEffect)(()=&gt;{if(c.current)return;const e=function(e){const t=new URLSearchParams(e?e.slice(1):document.location.search.slice(1)),n={};return t.forEach((e,t)=&gt;{n[t]=e}),n}();if(e.sub!==a&amp;&amp;&quot;redirect&quot;!==a)return void(c.current=!0);const s={};e.orderby&amp;&amp;r.includes(e.orderby)&amp;&amp;(s.orderby=e.orderby),&quot;asc&quot;!==e.direction&amp;&amp;&quot;desc&quot;!==e.direction||(s.direction=e.direction),e.offset&amp;&amp;parseInt(e.offset,10)&gt;0&amp;&amp;(s.page=parseInt(e.offset,10)),e.groupby&amp;&amp;i.includes(e.groupby)&amp;&amp;(s.groupBy=e.groupby);const l={};for(const[t,n]of Object.entries(e)){const e=t.match(/^filterby\[(\w+)\]$/);if(e&amp;&amp;e[1]){const t=e[1];(0===o.length||o.includes(t))&amp;&amp;(l[t]=String(n))}}if(e.filterby&amp;&amp;&quot;object&quot;==typeof e.filterby)for(const t of Object.keys(e.filterby))(0===o.length||o.includes(t))&amp;&amp;(l[t]=e.filterby[t]);Object.keys(l).length&gt;0&amp;&amp;(s.filterBy=l),Object.keys(s).length&gt;0&amp;&amp;n(s),c.current=!0,u.current={...t,...s}},[t,n,r,i,o,a]),(0,l.useEffect)(()=&gt;{if(!c.current)return;const e=u.current;if(e&amp;&amp;e.groupBy===t.groupBy&amp;&amp;e.orderby===t.orderby&amp;&amp;e.direction===t.direction&amp;&amp;e.page===t.page&amp;&amp;JSON.stringify(e.filterBy)===JSON.stringify(t.filterBy))return;u.current=t;const n=new URLSearchParams(document.location.search),r=function(e,t){const n={...e};return&quot;desc&quot;===n.direction&amp;&amp;delete n.direction,n.orderby===t&amp;&amp;delete n.orderby,0===n.page&amp;&amp;delete n.page,n.per_page===parseInt(Redirectioni10n.per_page,10)&amp;&amp;delete n.per_page,&quot;object&quot;==typeof n.filterBy&amp;&amp;0===Object.keys(n.filterBy||{}).length&amp;&amp;(delete n.filterBy,delete n.filter),&quot;&quot;===n.groupBy&amp;&amp;(delete n.groupBy,delete n.group),25!==parseInt(Redirectioni10n.per_page,10)&amp;&amp;(n.per_page=parseInt(Redirectioni10n.per_page,10)),delete n.selected,delete n.displaySelected,delete n.displayType,delete n.selectAll,n}(t,s);&quot;redirect&quot;!==a&amp;&amp;n.set(&quot;sub&quot;,a),r.orderby?n.set(&quot;orderby&quot;,r.orderby):n.delete(&quot;orderby&quot;),r.direction?n.set(&quot;direction&quot;,r.direction):n.delete(&quot;direction&quot;),r.page&amp;&amp;r.page&gt;0?n.set(&quot;offset&quot;,String(r.page)):n.delete(&quot;offset&quot;),r.groupBy?n.set(&quot;groupby&quot;,r.groupBy):n.delete(&quot;groupby&quot;);const i=[];if(n.forEach((e,t)=&gt;{t.startsWith(&quot;filterby[&quot;)&amp;&amp;i.push(t)}),i.forEach(e=&gt;n.delete(e)),t.filterBy&amp;&amp;&quot;object&quot;==typeof t.filterBy)for(const[e,r]of Object.entries(t.filterBy))r&amp;&amp;n.set(`filterby[${e}]`,String(r));const o=&quot;?&quot;+n.toString();history.replaceState({},&quot;&quot;,o)},[t,s,a])}const ew=&quot;idle&quot;,tw=&quot;loading&quot;,nw=&quot;complete&quot;,rw=e=&gt;{const{name:t,title:n,table:r,primary:i,onSetOrderBy:o}=e,{direction:s,orderBy:a}=r,l=y({&quot;manage-column&quot;:!0,sortable:!0,asc:a===t&amp;&amp;&quot;asc&quot;===s,desc:a===t&amp;&amp;&quot;desc&quot;===s||a!==t,&quot;column-primary&quot;:i,[&quot;column-&quot;+t]:!0}),c=a===t,u=y(&quot;sorting-indicator&quot;,{asc:c&amp;&amp;&quot;asc&quot;===s,desc:c&amp;&amp;&quot;desc&quot;===s});return(0,d.jsx)(&quot;th&quot;,{scope:&quot;col&quot;,className:l,children:(0,d.jsxs)(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;button-link&quot;,onClick:e=&gt;{e.preventDefault(),o(t,a===t&amp;&amp;&quot;desc&quot;===s?&quot;asc&quot;:&quot;desc&quot;)},children:[(0,d.jsx)(&quot;span&quot;,{children:n}),(0,d.jsx)(&quot;span&quot;,{className:u})]})})},iw=e=&gt;{const{name:t,title:n,primary:r}=e,i=y({&quot;manage-column&quot;:!0,&quot;column-primary&quot;:r,[&quot;column-&quot;+t]:!0});return(0,d.jsx)(&quot;th&quot;,{scope:&quot;col&quot;,className:i,children:(0,d.jsx)(&quot;span&quot;,{children:n})})},ow=e=&gt;{const{onSelect:t,disabled:n,selected:r}=e;return(0,d.jsxs)(&quot;td&quot;,{className:&quot;manage-column column-cb check-column-red&quot;,children:[(0,d.jsx)(&quot;label&quot;,{className:&quot;screen-reader-text&quot;,htmlFor:&quot;redirection-select-all&quot;,children:(0,m.__)(&quot;Select All&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{id:&quot;redirection-select-all&quot;,type:&quot;checkbox&quot;,disabled:n,checked:r,onChange:e=&gt;t(e.target.checked)})]})},sw=e=&gt;{const{disabled:t,onSelect:n,onSetOrderBy:r,headers:i,table:o,hasBulk:s,allSelected:a,isSaving:l}=e;return(0,d.jsxs)(&quot;tr&quot;,{children:[s&amp;&amp;(0,d.jsx)(ow,{onSelect:n,disabled:t||l,selected:a}),i.map(e=&gt;{const{primary:t=!1,sortable:n=!0}=e;return n?(0,d.jsx)(rw,{table:o,name:e.name,title:e.title,onSetOrderBy:r,primary:t},e.name):(0,d.jsx)(iw,{name:e.name,title:e.title,primary:t},e.name)})]})},aw=e=&gt;{const{columns:t}=e;return(0,d.jsxs)(&quot;tr&quot;,{className:&quot;is-placeholder&quot;,children:[t.map((e,t)=&gt;(0,d.jsx)(&quot;td&quot;,{children:(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-placeholder__loading&quot;})},t)),(0,d.jsx)(&quot;td&quot;,{children:(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-placeholder__loading&quot;})})]})},lw=e=&gt;{const{headers:t,rows:n}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(aw,{columns:t}),n.slice(0,-1).map((e,n)=&gt;(0,d.jsx)(aw,{columns:t},n))]})},cw=e=&gt;{const{headers:t}=e;return(0,d.jsx)(&quot;tr&quot;,{children:(0,d.jsx)(&quot;td&quot;,{colSpan:t.length+1,children:(0,m.__)(&quot;Nothing to display.&quot;,&quot;redirection&quot;)})})},uw=e=&gt;{const{headers:t}=e;return(0,d.jsx)(&quot;tr&quot;,{children:(0,d.jsx)(&quot;td&quot;,{colSpan:t.length+1,children:(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Sorry, something went wrong loading the data - please try again&quot;,&quot;redirection&quot;)})})})},dw=(0,l.memo)(function(e){const{isSaving:t,disabled:n,id:r,rowIndex:i,onSelect:o,onShiftSelect:s,isSelected:a}=e,c=(0,l.useCallback)(e=&gt;{e.shiftKey&amp;&amp;s&amp;&amp;(e.preventDefault(),s(i))},[s,i]),u=(0,l.useCallback)(e=&gt;{const t=e.target.value,n=/^\d+$/.test(t)?parseInt(t,10):t;o([n],i)},[o,i]);return(0,d.jsx)(&quot;th&quot;,{scope:&quot;row&quot;,className:&quot;check-column&quot;,children:t?(0,d.jsx)(_d,{size:&quot;small&quot;}):(0,d.jsx)(&quot;input&quot;,{type:&quot;checkbox&quot;,name:&quot;item[]&quot;,value:r,disabled:n,checked:a,onChange:u,onClick:c})})});function pw(e){const{row:t,rowData:n,displaySelected:r,getRow:i,getRowActions:o,primary:s,total:a}=e,[c,u]=(0,l.useState)(!1),p={...n,rowMode:c,setRowMode:u},h=i(t,p),f=o(t,p);return Array.isArray(h)?(0,d.jsx)(d.Fragment,{children:h.filter(e=&gt;r.includes(e.name)||!0===e.alwaysDisplay).map(e=&gt;(0,d.jsxs)(&quot;td&quot;,{className:`column-${e.name}`,children:[e.content,e.name===(s?s.name:h[0]?.name)&amp;&amp;f]},e.name))}):(0,d.jsx)(&quot;td&quot;,{colSpan:a,children:h})}const hw=(0,l.memo)(function(e){const{row:t,rowIndex:n,status:r,isSelected:i,isSaving:o,isAllSaving:s,displaySelected:a,table:l,getRow:c,getRowActions:u,onSelect:p,onShiftSelect:h,primary:f,headersLength:m}=e,g=function(e,t,n){return{isLoading:e===tw,isSelected:!!Array.isArray(n.selected)&amp;&amp;n.selected.some(e=&gt;e===t.id),table:n}}(r,t,l);return(0,d.jsxs)(&quot;tr&quot;,{className:y({disabled:r===tw||&quot;saving&quot;===r,saving:o||s}),children:[!!p&amp;&amp;(0,d.jsx)(dw,{id:t.id,rowIndex:n,onSelect:p,...h?{onShiftSelect:h}:{},disabled:r===tw,isSelected:i,isSaving:o||s}),(0,d.jsx)(pw,{row:t,rowData:g,displaySelected:a,getRow:c,getRowActions:u,primary:f,total:m})]})},(e,t)=&gt;e.row===t.row&amp;&amp;e.status===t.status&amp;&amp;e.isSelected===t.isSelected&amp;&amp;e.isSaving===t.isSaving&amp;&amp;e.isAllSaving===t.isAllSaving&amp;&amp;e.displaySelected===t.displaySelected&amp;&amp;e.primary===t.primary&amp;&amp;e.headersLength===t.headersLength),fw=function(e){const{rows:t,headers:n,status:r,table:i,getRow:o,getRowActions:s,onSelect:a,saving:c}=e,{selected:u=[],displaySelected:p}=i,h=n.find(e=&gt;e.primary),f=c.some(e=&gt;-1===e),m=(0,l.useRef)(null),g=(0,l.useCallback)((e,t)=&gt;{void 0!==t&amp;&amp;(m.current=t),a&amp;&amp;a(e)},[a]),y=(0,l.useCallback)(e=&gt;{if(!a)return;if(null===m.current){m.current=e;const n=t[e];return void(n&amp;&amp;a([n.id]))}const n=t.length-1,r=Math.min(m.current,n),i=Math.min(e,n),o=Math.min(r,i),s=Math.max(r,i),l=new Set(u),c=[];for(let e=o;e&lt;=s;e++){const n=t[e];n&amp;&amp;!l.has(n.id)&amp;&amp;c.push(n.id)}c.length&gt;0&amp;&amp;a(c),m.current=e},[a,t,u]);return r===tw&amp;&amp;0===t.length?(0,d.jsx)(lw,{headers:n,rows:t}):r===nw&amp;&amp;0===t.length?(0,d.jsx)(cw,{headers:n}):&quot;error&quot;===r?(0,d.jsx)(uw,{headers:n}):(0,d.jsx)(d.Fragment,{children:t.map((e,t)=&gt;(0,d.jsx)(hw,{row:e,rowIndex:t,status:r,isSelected:u.some(t=&gt;t===e.id),isSaving:c.some(t=&gt;t===e.id),isAllSaving:f,displaySelected:p,table:i,getRow:o,getRowActions:s,...a?{onSelect:g,onShiftSelect:y}:{},primary:h,headersLength:n.length},e.id))})},mw=e=&gt;{const{headers:t,getRow:n,getRowActions:r,rows:i,table:o,status:s,saving:a,onSelect:l,onSetOrderBy:c}=e,u=(0,d.jsx)(sw,{table:o,disabled:s!==nw||0===i.length,headers:t,onSetOrderBy:c,onSelect:e=&gt;{l&amp;&amp;l(e?i.map(e=&gt;e.id):[])},hasBulk:!!l,allSelected:o.selected.length===i.length&amp;&amp;0!==i.length,isSaving:a.length&gt;0}),p=y(&quot;wp-list-table&quot;,&quot;widefat&quot;,&quot;fixed&quot;,&quot;striped&quot;,&quot;items&quot;,{[&quot;redirect-log__display__&quot;+o.displayType]:!0,[&quot;redirect-log__group__&quot;+o.groupBy]:o.groupBy});return(0,d.jsxs)(&quot;table&quot;,{className:p,children:[(0,d.jsx)(&quot;thead&quot;,{children:u}),(0,d.jsx)(&quot;tbody&quot;,{children:(0,d.jsx)(fw,{rows:i,table:o,headers:t,status:s,getRow:n,getRowActions:r,...l?{onSelect:l}:{},saving:a})}),(0,d.jsx)(&quot;tfoot&quot;,{children:u})]})},gw=function(e){const{title:t,button:n,className:r,disabled:i,onClick:o}=e;return i?(0,d.jsx)(&quot;span&quot;,{className:&quot;tablenav-pages-navspan button disabled&quot;,&quot;aria-hidden&quot;:&quot;true&quot;,children:n}):(0,d.jsxs)(&quot;button&quot;,{className:r+&quot; button&quot;,type:&quot;button&quot;,onClick:function(e){e.preventDefault(),o()},children:[(0,d.jsx)(&quot;span&quot;,{className:&quot;screen-reader-text&quot;,children:t}),(0,d.jsx)(&quot;span&quot;,{&quot;aria-hidden&quot;:&quot;true&quot;,children:n})]})},yw=function(e){const{page:t,total:n,perPage:r,onChangePage:i}=e,o=n&lt;=r,[s,a]=(0,l.useState)(t+1);if((0,l.useEffect)(()=&gt;{a(t+1)},[t]),o)return null;const c=function(e,t){return Math.ceil(e/t)}(n,r);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(gw,{title:(0,m.__)(&quot;First page&quot;,&quot;redirection&quot;),button:&quot;«&quot;,className:&quot;first-page&quot;,disabled:t&lt;=0,onClick:()=&gt;i(0)}),(0,d.jsx)(gw,{title:(0,m.__)(&quot;Prev page&quot;,&quot;redirection&quot;),button:&quot;‹&quot;,className:&quot;prev-page&quot;,disabled:t&lt;=0,onClick:()=&gt;i(t-1)}),(0,d.jsxs)(&quot;span&quot;,{className:&quot;paging-input&quot;,children:[(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;current-page-selector&quot;,className:&quot;screen-reader-text&quot;,children:(0,m.__)(&quot;Current Page&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{className:&quot;current-page&quot;,type:&quot;number&quot;,min:&quot;1&quot;,max:c,name:&quot;paged&quot;,value:s,size:2,&quot;aria-describedby&quot;:&quot;table-paging&quot;,onBlur:()=&gt;i(Math.min(c-1,Math.max(0,s-1))),onChange:e=&gt;a(parseInt(e.target.value,10))}),(0,d.jsx)(&quot;span&quot;,{className:&quot;tablenav-paging-text&quot;,children:(0,m.sprintf)(
// translators: %s is the total number of pages
// translators: %s is the total number of pages
(0,m.__)(&quot;of %s&quot;,&quot;redirection&quot;),new Intl.NumberFormat(window.Redirectioni10n.locale).format(c))})]}),(0,d.jsx)(gw,{title:(0,m.__)(&quot;Next page&quot;,&quot;redirection&quot;),button:&quot;›&quot;,className:&quot;next-page&quot;,disabled:t&gt;=c-1,onClick:()=&gt;i(t+1)}),(0,d.jsx)(gw,{title:(0,m.__)(&quot;Last page&quot;,&quot;redirection&quot;),button:&quot;»&quot;,className:&quot;last-page&quot;,disabled:t&gt;=c-1,onClick:()=&gt;i(c-1)})]})},vw=function(e){const{total:t,perPage:n,page:r,rowCount:i,onChangePage:o,selected:s,onSelectAll:a,isEverything:l}=e,c=y({&quot;tablenav-pages&quot;:!0});return(0,d.jsxs)(&quot;div&quot;,{className:c,children:[(0,d.jsxs)(&quot;span&quot;,{className:y(&quot;displaying-num&quot;,l?&quot;displaying-num-all&quot;:null),children:[(0===s||!l&amp;&amp;(s&lt;i||t&lt;=n))&amp;&amp;(0,m.sprintf)(
// translators: %s is the number of items
// translators: %s is the number of items
(0,m._n)(&quot;%s item&quot;,&quot;%s items&quot;,t,&quot;redirection&quot;),new Intl.NumberFormat(window.Redirectioni10n.locale).format(t)),s&gt;0&amp;&amp;s&gt;=i&amp;&amp;t&gt;n&amp;&amp;!l&amp;&amp;U((0,m.sprintf)(
// translators: 1: number of selected items, 2: total number of items
// translators: 1: number of selected items, 2: total number of items
(0,m.__)(&quot;%1$d of %2$d selected. {{all}}Select All.{{/all}}&quot;,&quot;redirection&quot;),s,t),{all:(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:function(){a(!0)}})}),l&amp;&amp;U((0,m.sprintf)(
// translators: 1: number of selected items, 2: total number of items
// translators: 1: number of selected items, 2: total number of items
(0,m.__)(&quot;%1$d of %2$d selected. {{all}}Clear All.{{/all}}&quot;,&quot;redirection&quot;),s,t),{all:(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:function(){a(!1)}})})]}),(0,d.jsx)(&quot;span&quot;,{className:&quot;pagination-links&quot;,children:(0,d.jsx)(yw,{onChangePage:o,total:t,perPage:n,page:r},r)})]})},_w=function(e){const{total:t,rowCount:n,table:r,children:i=null,onChangePage:o,disabled:s,className:a,onSelectAll:l}=e;return(0,d.jsxs)(&quot;div&quot;,{className:y(&quot;tablenav&quot;,a),children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;redirect-table__actions&quot;,children:i}),t&gt;0&amp;&amp;(0,d.jsx)(vw,{perPage:r.perPage,page:r.page,total:t,rowCount:n,onChangePage:o,onSelectAll:l,disabled:s,selected:r.selectAll?t:r.selected.length,isEverything:r.selectAll})]})},bw=({children:e})=&gt;(0,d.jsx)(&quot;div&quot;,{className:&quot;alignleft actions&quot;,children:e}),xw=function({selected:e,options:t,isEnabled:n,onGroup:r}){const[i,o]=(0,l.useState)(e);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;alignleft actions&quot;,children:[(0,d.jsx)(Sd,{items:t,value:i,name:&quot;filter&quot;,onChange:e=&gt;{o(e.target.value)},disabled:!n}),(0,d.jsx)(&quot;button&quot;,{className:&quot;button&quot;,onClick:()=&gt;{r(i)},disabled:!n,children:(0,m.__)(&quot;Apply&quot;,&quot;redirection&quot;)})]})};function ww(e,t){return e.options.find(e=&gt;e.value===t)}function jw(e,t){const n=[];return Object.keys(e).forEach(r=&gt;{const i=t.find(e=&gt;e.value===r);if(i){const t=e[r];t&amp;&amp;i.options.find(e=&gt;e.value===t)&amp;&amp;n.push(t)}}),n}const Sw=function(e){const{table:t,disabled:n,groupOptions:r,filterOptions:i,onGroup:o,onFilter:s}=e;return(0,d.jsxs)(d.Fragment,{children:[r.length&gt;0&amp;&amp;(0,d.jsx)(xw,{selected:t.groupBy?t.groupBy:&quot;&quot;,options:r,isEnabled:!n,onGroup:o},t.groupBy),i.length&gt;0&amp;&amp;(0,d.jsx)(bw,{children:(0,d.jsx)(Wf,{options:i,selected:jw(t.filterBy,i),onChange:function(e){const t={};if(Array.isArray(e)){for(let n=0;n&lt;e.length;n++){const r=e[n];if(r){const e=i.find(e=&gt;ww(e,r));e&amp;&amp;(t[e.value]=r)}}s(t)}},title:(0,m.__)(&quot;Filters&quot;,&quot;redirection&quot;),disabled:n,multiple:!0,badges:!0})})]})},kw=function(e){const{bulk:t,disabled:n,onBulk:r}=e,[i,o]=(0,l.useState)(&quot;-1&quot;);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;alignleft actions bulkactions&quot;,children:[(0,d.jsxs)(&quot;select&quot;,{name:&quot;action&quot;,value:i,disabled:n,onChange:e=&gt;o(e.target.value),children:[(0,d.jsx)(&quot;option&quot;,{value:&quot;-1&quot;,children:(0,m.__)(&quot;Bulk Actions&quot;,&quot;redirection&quot;)}),t.map(e=&gt;(0,d.jsx)(&quot;option&quot;,{value:e.id,children:e.name},e.id))]}),(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;button action&quot;,disabled:n||-1===parseInt(i,10),onClick:function(){-1!==parseInt(i,10)&amp;&amp;(r(i),o(&quot;-1&quot;))},children:(0,m.__)(&quot;Apply&quot;,&quot;redirection&quot;)})]})};function Cw(e,t){if(&quot;custom&quot;===e)return(0,m.__)(&quot;Custom Display&quot;,&quot;redirection&quot;);for(let n=0;n&lt;t.length;n++){const r=t[n]?.options.find(t=&gt;t.value===e);if(r)return r.label}return t[0]?.label||&quot;&quot;}const Tw=function(e){const{disabled:t,predefinedGroups:n,customOptions:r,table:i,setDisplay:o,validation:s}=e,{displayType:a,displaySelected:l}=i,c=[{label:(0,m.__)(&quot;Pre-defined&quot;,&quot;redirection&quot;),value:&quot;pre&quot;,options:n},{label:(0,m.__)(&quot;Custom&quot;,&quot;redirection&quot;),value:&quot;custom&quot;,options:r}];return(0,d.jsx)(Wf,{className:&quot;redirect-table-display__filter&quot;,options:c,selected:l.concat([a]),onChange:function(e){if(!Array.isArray(e))return;const t=l.concat([a]),n=e.filter(e=&gt;!t.includes(e));if(n.length&gt;0){const e=c[0]?.options?.find(e=&gt;e.value===n[0]);if(e)return void o(e.value,e.grouping)}const i=e.filter(e=&gt;{if(e===a)return!1;const t=c[0]?.options.find(t=&gt;t.value===e);return!t&amp;&amp;r.find(t=&gt;t.value===e)});o(&quot;custom&quot;,s?s(i):i)},title:Cw(a,c),disabled:t})};function Ew(e,t){if(e){const n=e.find(e=&gt;t[e.name]);return n&amp;&amp;t[n.name]||&quot;&quot;}return&quot;&quot;}const Pw=function({table:e,onSearch:t,searchTypes:n,selected:r,disabled:i=!1,name:o=&quot;&quot;}){const s=n?.find(e=&gt;r[e.name]),a=Ew(n,r),c=s?s.name:n?.[0]?.name||&quot;&quot;,[u,p]=(0,l.useState)(a),[h,f]=(0,l.useState)(c),[m,g]=(0,l.useState)(a);(0,l.useEffect)(()=&gt;{const e=Ew(n,r);if(e!==m){const t=n?.find(e=&gt;r[e.name]),i=t?t.name:n?.[0]?.name||&quot;&quot;;g(e),p(e),f(i)}},[n,r,m]);const y=i||&quot;&quot;===u&amp;&amp;&quot;&quot;===e.filter,v=n?n.map(e=&gt;({value:e.name,label:e.title})):[],_=n?.find(e=&gt;e.name===h),b=_?_.title:&quot;&quot;;return(0,d.jsxs)(&quot;form&quot;,{onSubmit:e=&gt;{e?.preventDefault(),t(u,h)},className:&quot;redirect-searchbox&quot;,children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;search&quot;,name:&quot;s&quot;,value:u,onChange:e=&gt;{p(e.target.value)}}),n&amp;&amp;(0,d.jsx)(vx,{options:v,disabled:i,title:b,onSelect:e=&gt;{f(e),t(u,e)},selected:h}),!n&amp;&amp;(0,d.jsx)(&quot;input&quot;,{type:&quot;submit&quot;,className:&quot;button&quot;,value:o,disabled:y})]})},Ow=function(e){const{disabled:t,filterOptions:n,searchOptions:r,predefinedGroups:i,table:o,onSetDisplay:s,onFilter:a,validateDisplay:l}=e;return(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirect-table-display&quot;,children:[(0,d.jsx)(Tw,{disabled:t,customOptions:n,predefinedGroups:i,table:o,setDisplay:s,...l?{validation:l}:{}}),(0,d.jsx)(Pw,{disabled:t,table:o,onSearch:function(e,t){const n={...o.filterBy};r.map(e=&gt;delete n[e.name]),e&amp;&amp;(n[t]=e),a(n)},selected:o.filterBy,searchTypes:r})]})},Rw=function(e){const{logOptions:t,logActions:n,table:r,total:i,rows:o,getRow:s,getRowActions:a,renderTableActions:l,status:c,saving:u}=e,{displayFilters:p,displayGroups:h,searchOptions:f,groupBy:m,rowFilters:g,bulk:y,headers:v,validateDisplay:_}=t,{onChangePage:b,onFilter:x,onSetDisplay:w,onBulk:j,onGroup:S,onSetOrder:k,onSetAll:C,onSelect:T}=n,E=c===tw;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ow,{filterOptions:p,predefinedGroups:h,searchOptions:f,disabled:E,table:r,onFilter:x,onSetDisplay:w,..._?{validateDisplay:_}:{}}),(0,d.jsxs)(_w,{total:i,rowCount:o.length,table:r,disabled:E,onChangePage:b,className:&quot;top&quot;,onSelectAll:C,children:[(0,d.jsx)(kw,{bulk:y,disabled:E||0===r.selected.length,onBulk:j}),(0,d.jsx)(Sw,{disabled:E,table:r,groupOptions:m,filterOptions:g,onGroup:S,onFilter:x})]}),(0,d.jsx)(mw,{headers:v,rows:o,getRow:s,getRowActions:a,table:r,status:c,onSelect:e=&gt;{0===e.length?T(!1):1===e.length&amp;&amp;void 0!==e[0]?T(e[0]):T(e)},onSetOrderBy:k,saving:u}),(0,d.jsxs)(_w,{total:i,rowCount:o.length,table:r,disabled:E,onChangePage:b,className:&quot;bottom&quot;,onSelectAll:C,children:[(0,d.jsx)(kw,{bulk:y,disabled:E||0===r.selected.length,onBulk:j}),l&amp;&amp;l()]})]})};function Nw(e){return Redirectioni10n?.caps?.capabilities.includes(e)}function Aw(e){return Redirectioni10n?.caps?.pages.includes(e)}const Iw=&quot;redirection_cap_redirect_manage&quot;,zw=&quot;redirection_cap_redirect_add&quot;,Fw=&quot;redirection_cap_group_add&quot;,Dw=&quot;redirection_cap_404_delete&quot;;function Lw(e){const{actions:t,disabled:n=!1}=e;return(0,d.jsx)(&quot;div&quot;,{className:&quot;row-actions&quot;,children:n?(0,d.jsx)(&quot;span&quot;,{children:&quot; &quot;}):t.length&gt;0&amp;&amp;t.filter(e=&gt;e).reduce((e,t)=&gt;[...e,&quot; | &quot;,t],[]).slice(1)})}function Mw(e){const{onClick:t,children:n,href:r=&quot;&quot;,capability:i=&quot;&quot;}=e;return i&amp;&amp;!Nw(i)?null:(0,d.jsx)(&quot;a&quot;,{href:r||&quot;#&quot;,onClick:function(e){t&amp;&amp;(e.preventDefault(),t())},children:n})}const $w=()=&gt;(0,d.jsx)(&quot;div&quot;,{className:&quot;redirection-poweredby&quot;,children:U((0,m.__)(&quot;Powered by {{link}}redirect.li{{/link}}&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirect.li&quot;})})});function Uw(e){return!!(e&amp;&amp;e.name&amp;&amp;e.version)&amp;&amp;e.name+&quot; &quot;+e.version}function Bw({error:e}){return(0,d.jsxs)(&quot;div&quot;,{className:&quot;wpl-modal_error&quot;,children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Useragent Error&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Something went wrong obtaining this information&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;code&quot;,{children:e})})]})}function Zw({agent:e}){return(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirection-useragent_unknown&quot;,children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Unknown Useragent&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;br&quot;,{}),(0,d.jsx)(&quot;p&quot;,{children:e})]})}function qw({agent:e,detail:t}){const n=function(e,t){if(!e)return null;const n=e.slice(0,1).toUpperCase()+e.slice(1);return t?(0,d.jsx)(z,{url:t,children:n}):n}(t.device.type,t.url),r=function(e){const t=[];return e.vendor&amp;&amp;t.push(e.vendor),e.name&amp;&amp;t.push(e.name),t.join(&quot; &quot;)}(t.device),i=Uw(t.os),o=Uw(t.browser),s=Uw(t.engine),a=[];return r&amp;&amp;a.push([(0,m.__)(&quot;Device&quot;,&quot;redirection&quot;),r]),i&amp;&amp;a.push([(0,m.__)(&quot;Operating System&quot;,&quot;redirection&quot;),i]),o&amp;&amp;a.push([(0,m.__)(&quot;Browser&quot;,&quot;redirection&quot;),o]),s&amp;&amp;a.push([(0,m.__)(&quot;Engine&quot;,&quot;redirection&quot;),s]),(0,d.jsxs)(&quot;div&quot;,{children:[(0,d.jsxs)(&quot;h2&quot;,{children:[(0,m.__)(&quot;Useragent&quot;,&quot;redirection&quot;),&quot;: &quot;,n]}),(0,d.jsx)(&quot;table&quot;,{children:(0,d.jsxs)(&quot;tbody&quot;,{children:[(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Agent&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;td&quot;,{className:&quot;redirection-useragent_agent&quot;,children:e})]}),a.map((e,t)=&gt;(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:e[0]}),(0,d.jsx)(&quot;td&quot;,{children:e[1]})]},t))]})}),(0,d.jsx)($w,{})]})}function Hw({agent:e}){const{data:t,isLoading:n,isError:r,error:i}=function(e,t){return ct({queryKey:ad.info.agent(e),queryFn:async()=&gt;await jt(Xt(e)),enabled:!!e,staleTime:864e5,...t})}(e,{enabled:!!e}),o=y({&quot;redirection-useragent&quot;:!0,&quot;wpl-modal_loading&quot;:n}),s=t,a=r&amp;&amp;i&amp;&amp;i.message||&quot;&quot;;return(0,d.jsxs)(&quot;div&quot;,{className:o,children:[n&amp;&amp;(0,d.jsx)(_d,{}),r&amp;&amp;a&amp;&amp;(0,d.jsx)(Bw,{error:a}),!n&amp;&amp;!r&amp;&amp;!s&amp;&amp;(0,d.jsx)(Zw,{agent:e}),!n&amp;&amp;!r&amp;&amp;s&amp;&amp;(0,d.jsx)(qw,{agent:e,detail:s})]})}const Ww=function(e){const{agent:t}=e,[n,r]=(0,l.useState)(!1);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Mw,{href:&quot;https://redirect.li/agent/?agent=&quot;+encodeURIComponent(t),onClick:()=&gt;r(!0),children:(0,m.__)(&quot;Agent Info&quot;,&quot;redirection&quot;)}),n&amp;&amp;(0,d.jsx)(xm,{onClose:()=&gt;r(!1),children:(0,d.jsx)(Hw,{agent:t})})]})},Gw=({headers:e})=&gt;e&amp;&amp;0!==Object.keys(e).length?(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Request Headers&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;table&quot;,{children:(0,d.jsx)(&quot;tbody&quot;,{children:Object.keys(e).map(t=&gt;(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:t}),(0,d.jsx)(&quot;td&quot;,{children:e[t]})]},t))})})]}):null,Vw=({source:e})=&gt;e&amp;&amp;0!==e.length?(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Redirect Source&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;ul&quot;,{children:e.map((e,t)=&gt;(0,d.jsx)(&quot;li&quot;,{children:e},t))})]}):null,Qw=({data:e})=&gt;{const{headers:t,source:n}=e;return(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirect-requestdata&quot;,children:[t&amp;&amp;(0,d.jsx)(Gw,{headers:t}),n&amp;&amp;(0,d.jsx)(Vw,{source:n})]})},Kw=function(e){const{data:t}=e,[n,r]=(0,l.useState)(!1);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Mw,{onClick:()=&gt;r(!0),children:(0,m.__)(&quot;View Data&quot;,&quot;redirection&quot;)}),n&amp;&amp;(0,d.jsx)(xm,{onClose:()=&gt;r(!1),children:(0,d.jsx)(Qw,{data:t})})]})},Jw=function(e){const{row:t,onDelete:n,disabled:r,groupBy:i}=e,{agent:o,id:s,request_data:a,redirection_id:l}=t,{setLogsTable:c}=Gx(),u=[];return u.push((0,d.jsx)(Mw,{onClick:()=&gt;n(s),capability:&quot;redirection_cap_log_delete&quot;,children:(0,m.__)(&quot;Delete&quot;,&quot;redirection&quot;)},&quot;0&quot;)),o&amp;&amp;u.unshift((0,d.jsx)(Ww,{agent:o},&quot;3&quot;)),a&amp;&amp;u.push((0,d.jsx)(Kw,{data:a},&quot;4&quot;)),l&amp;&amp;l&gt;0&amp;&amp;u.push((0,d.jsx)(Mw,{href:Redirectioni10n.pluginRoot+&quot;&amp;&quot;+encodeURIComponent(&quot;filterby[id]&quot;)+&quot;=&quot;+l,children:(0,m.__)(&quot;View Redirect&quot;,&quot;redirection&quot;)},&quot;5&quot;)),i&amp;&amp;u.push((0,d.jsx)(Mw,{onClick:()=&gt;c({filterBy:um(i,String(s)),page:0,groupBy:&quot;&quot;,selected:[],selectAll:!1}),capability:Iw,children:(0,m.__)(&quot;Show All&quot;,&quot;redirection&quot;)},&quot;6&quot;)),(0,d.jsx)(Lw,{disabled:r,actions:u})},Yw=e=&gt;{const{enabled:t=!0,children:n}=e;return t?(0,d.jsx)(&quot;div&quot;,{className:&quot;table-buttons&quot;,children:n}):null};var Xw=n(465),ej=n.n(Xw);function tj(e){return e.url?pp(hp(e.domain),e.url):&quot;&quot;}function nj(e,t){if(!e.sent_to)return&quot;&quot;;const n=t.target||&quot;&quot;,r=/^https?:\/\//i.test(e.sent_to)?e.sent_to:pp(hp(e.domain),e.sent_to);return(0,d.jsx)(z,{url:r,children:(0,d.jsx)(ej(),{searchWords:[n],textToHighlight:e.sent_to,autoEscape:!0})})}function rj(e){return e.includes(&quot;url&quot;)?e:e.concat([&quot;url&quot;])}const ij=function(){const e=Gx(e=&gt;e.logs),{setLogsTable:t,setLogsSelected:n}=Gx(),r=pe(e=&gt;e.values),i=r?.token||&quot;&quot;;Xx({table:e,setTable:t,allowedGroup:[&quot;url&quot;,&quot;ip&quot;,&quot;agent&quot;],allowedFilters:[&quot;url&quot;,&quot;url-exact&quot;,&quot;referrer&quot;,&quot;agent&quot;,&quot;ip&quot;,&quot;target&quot;,&quot;domain&quot;,&quot;method&quot;,&quot;redirect_by&quot;],pageName:&quot;log&quot;});const o=function(){const e=h(),{incrementProgress:t,decrementProgress:n,addNotice:r,addError:i}=cd(),{setLogsTable:o}=Gx();return pt({mutationFn:async({action:e,items:r,params:i={}})=&gt;{t();try{return await jt(Kt(e,{items:r},i))}catch(e){throw n(),sd(e)}},onSuccess:(t,i)=&gt;{n();const s=&quot;delete&quot;===i.action?&quot;deleted&quot;:i.action;r(`Logs ${s}`),o(cm(i.params)),e.invalidateQueries({queryKey:ad.logs.all})},onError:e=&gt;{i(e.message||&quot;Failed to perform log action&quot;)}})}(),{data:s,isLoading:a,isSuccess:l}=function(e={},t){const n=pm(e),{addError:r}=cd();return ct({queryKey:ad.logs.list(n),queryFn:async()=&gt;{try{const e=await jt(Dt(n));return Kx.parse(e)}catch(e){const t=sd(e);throw r(t.message||&quot;Failed to fetch logs&quot;),t}},...t})}(e),c=s?.items??[],u=s?.total??0;let p=ew;a?p=tw:l&amp;&amp;(p=nw);const f=t=&gt;{if(!window.confirm((0,m.__)(&quot;Are you sure you want to delete this item?&quot;,&quot;redirection&quot;)))return;const n=e.groupBy?{groupBy:e.groupBy}:{};o.mutate({action:&quot;delete&quot;,items:[t],params:n})},g=e=&gt;{t({filterBy:e,page:0,selected:[],selectAll:!1})},y={...e,...(v=e.groupBy,v?{displayOptions:Mx(v),displaySelected:Lx(v)[0]?.grouping||[]}:{})};var v;const _={page:e.page,perPage:e.per_page,orderBy:e.orderby||&quot;date&quot;,direction:e.direction,selected:e.selected??[],selectAll:e.selectAll??!1,filter:&quot;&quot;,filterBy:e.filterBy??{},displayType:e.displayType??&quot;standard&quot;,displaySelected:y.displaySelected??[],groupBy:e.groupBy??&quot;&quot;},b={displayFilters:Mx(y.groupBy),displayGroups:Lx(y.groupBy),searchOptions:[{name:&quot;url&quot;,title:(0,m.__)(&quot;Search URL&quot;,&quot;redirection&quot;)},{name:&quot;url-exact&quot;,title:(0,m.__)(&quot;Search exact URL&quot;,&quot;redirection&quot;)},{name:&quot;referrer&quot;,title:(0,m.__)(&quot;Search referrer&quot;,&quot;redirection&quot;)},{name:&quot;agent&quot;,title:(0,m.__)(&quot;Search user agent&quot;,&quot;redirection&quot;)},{name:&quot;ip&quot;,title:(0,m.__)(&quot;Search IP&quot;,&quot;redirection&quot;)},{name:&quot;target&quot;,title:(0,m.__)(&quot;Search target URL&quot;,&quot;redirection&quot;)},{name:&quot;domain&quot;,title:(0,m.__)(&quot;Search domain&quot;,&quot;redirection&quot;)}],groupBy:$x(r?.ip_logging||0),bulk:[{id:&quot;delete&quot;,name:(0,m.__)(&quot;Delete&quot;,&quot;redirection&quot;)}],rowFilters:y.groupBy?[]:[{label:(0,m.__)(&quot;Method&quot;,&quot;redirection&quot;),value:&quot;method&quot;,options:[{label:&quot;GET&quot;,value:&quot;get&quot;},{label:&quot;POST&quot;,value:&quot;post&quot;},{label:&quot;HEAD&quot;,value:&quot;head&quot;}]},{label:(0,m.__)(&quot;Redirect By&quot;,&quot;redirection&quot;),value:&quot;redirect_by&quot;,options:[{label:(0,m.__)(&quot;WordPress&quot;,&quot;redirection&quot;),value:&quot;wordpress&quot;},{label:(0,m.__)(&quot;Redirection&quot;,&quot;redirection&quot;),value:&quot;redirection&quot;}]}],headers:Dx(y.groupBy).filter(e=&gt;function(e,t){return t.displaySelected.includes(e)}(e.name,y)),validateDisplay:rj},x={onChangePage:e=&gt;{t({page:e,selected:[],selectAll:!1})},onBulk:t=&gt;{if(0===e.selected.length&amp;&amp;!e.selectAll)return;if(&quot;delete&quot;===t){const t=e.selectAll?(0,m.__)(&quot;Are you sure you want to delete all items?&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Are you sure you want to delete the selected items?&quot;,&quot;redirection&quot;);if(!window.confirm(t))return}const n=e.groupBy?{groupBy:e.groupBy}:{};e.selectAll?o.mutate({action:t,items:[],params:pm({...n,global:!0,filterBy:e.filterBy})}):o.mutate({action:t,items:e.selected,params:n})},onGroup:e=&gt;{t({groupBy:e,selected:[],selectAll:!1})},onSetOrder:(e,n)=&gt;{t({orderby:&quot;date&quot;===e?&quot;&quot;:e,direction:n})},onFilter:g,onSetDisplay:(e,n)=&gt;{t({displayType:e,displaySelected:n})},onSelect:r=&gt;{if(&quot;boolean&quot;==typeof r)n(r?c.map(e=&gt;e.id):[]);else if(&quot;number&quot;==typeof r||&quot;string&quot;==typeof r){const n=Array.isArray(e.selected)?e.selected:[],i=n.some(e=&gt;e===r)?n.filter(e=&gt;e!==r):[...n,r];t({selected:i,selectAll:!1})}else n(r)},onSetAll:e=&gt;{t({selected:e?c.map(e=&gt;e.id):[],selectAll:e})}};return(0,d.jsx)(Rw,{logOptions:b,logActions:x,table:_,status:p,total:u,rows:c,saving:[],getRow:(e,t)=&gt;function(e,t){const{created:n,url:r,agent:i,referrer:o,ip:s,request_method:a,http_code:l,domain:c,redirect_by:u,count:p}=e,h=t?.table?.filterBy||{},f=h.url||h[&quot;url-exact&quot;]||&quot;&quot;;return[{name:&quot;date&quot;,content:n??&quot;&quot;},{name:&quot;method&quot;,content:a?a.toUpperCase():&quot;&quot;},{name:&quot;domain&quot;,content:c||&quot;&quot;},{name:&quot;url&quot;,content:r?(0,d.jsx)(z,{url:tj(e),children:(0,d.jsx)(ej(),{searchWords:[f],textToHighlight:r,autoEscape:!0})}):&quot;&quot;},{name:&quot;target&quot;,content:nj(e,h)},{name:&quot;redirect_by&quot;,content:u||&quot;&quot;},{name:&quot;code&quot;,content:l??&quot;&quot;},{name:&quot;referrer&quot;,content:o?(0,d.jsx)(ej(),{searchWords:[h.referrer||&quot;&quot;],textToHighlight:o,autoEscape:!0}):&quot;&quot;},{name:&quot;agent&quot;,content:i?(0,d.jsx)(ej(),{searchWords:[h.agent||&quot;&quot;],textToHighlight:i,autoEscape:!0}):&quot;&quot;},{name:&quot;ip&quot;,content:s?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;a&quot;,{href:&quot;https://redirect.li/ip/?ip=&quot;+encodeURIComponent(s),children:(0,d.jsx)(ej(),{searchWords:[h.ip||&quot;&quot;],textToHighlight:s,autoEscape:!0})}),&quot;&quot;===t?.table?.groupBy&amp;&amp;t?.onFilter&amp;&amp;(0,d.jsx)(Lw,{actions:[(0,d.jsx)(Mw,{onClick:()=&gt;{t.onFilter?.({ip:s})},children:(0,m.__)(&quot;Filter by IP&quot;,&quot;redirection&quot;)},&quot;filter-ip&quot;)]})]}):&quot;&quot;},{name:&quot;count&quot;,content:p?new Intl.NumberFormat(window.Redirectioni10n.locale).format(p):&quot;&quot;}]}(e,{...t,onFilter:g}),getRowActions:t=&gt;(0,d.jsx)(Jw,{disabled:!1,row:t,onDelete:f,groupBy:e.groupBy}),renderTableActions:()=&gt;(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(Yw,{enabled:c.length&gt;0,children:i&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;table-button-item&quot;,children:(0,d.jsx)(&quot;a&quot;,{href:dp(i),className:&quot;button-secondary&quot;,children:(0,m.__)(&quot;RSS&quot;,&quot;redirection&quot;)})})})})})},oj=&quot;url&quot;,sj=&quot;error&quot;,aj=&quot;random&quot;,lj=&quot;pass&quot;,cj=&quot;nothing&quot;,uj=&quot;url&quot;,dj=&quot;login&quot;,pj=&quot;referrer&quot;,hj=&quot;agent&quot;,fj=&quot;cookie&quot;,mj=&quot;header&quot;,gj=&quot;custom&quot;,yj=&quot;role&quot;,vj=&quot;server&quot;,_j=&quot;ip&quot;,bj=&quot;page&quot;,xj=&quot;language&quot;;function wj(e){return e===oj||e===aj}function jj(e,t){if(e===dj)return{logged_in:t?.logged_in||&quot;&quot;,logged_out:t?.logged_out||&quot;&quot;};if(e===pj)return{referrer:t?.referrer||&quot;&quot;,regex:t?.regex||!1,url_from:t?.url_from||&quot;&quot;,url_notfrom:t?.url_notfrom||&quot;&quot;};if(e===hj)return{agent:t?.agent||&quot;&quot;,regex:t?.regex||!1,url_from:t?.url_from||&quot;&quot;,url_notfrom:t?.url_notfrom||&quot;&quot;};if(e===fj)return{name:t?.name||&quot;&quot;,value:t?.value||&quot;&quot;,regex:t?.regex||!1,url_from:t?.url_from||&quot;&quot;,url_notfrom:t?.url_notfrom||&quot;&quot;};if(e===mj)return{name:t?.name||&quot;&quot;,value:t?.value||&quot;&quot;,regex:t?.regex||!1,url_from:t?.url_from||&quot;&quot;,url_notfrom:t?.url_notfrom||&quot;&quot;};if(e===gj)return{filter:t?.filter||&quot;&quot;,url_from:t?.url_from||&quot;&quot;,url_notfrom:t?.url_notfrom||&quot;&quot;};if(e===yj)return{role:t?.role||&quot;&quot;,url_from:t?.url_from||&quot;&quot;,url_notfrom:t?.url_notfrom||&quot;&quot;};if(e===vj)return{server:t?.server||&quot;&quot;,url_from:t?.url_from||&quot;&quot;,url_notfrom:t?.url_notfrom||&quot;&quot;};if(e===_j){let e=[];return Array.isArray(t?.ip)?e=t.ip:t?.ip&amp;&amp;(e=[String(t.ip)]),{ip:e,url_from:t?.url_from||&quot;&quot;,url_notfrom:t?.url_notfrom||&quot;&quot;}}return e===xj?{language:t?.language||&quot;&quot;,url_from:t?.url_from||&quot;&quot;,url_notfrom:t?.url_notfrom||&quot;&quot;}:t||{}}function Sj(e,t,n){return{url:e,title:&quot;&quot;,match_data:{source:{flag_regex:n.flag_regex||!1,flag_trailing:n.flag_trailing||!1,flag_case:n.flag_case||!1,flag_query:n.flag_query||&quot;exact&quot;},options:{}},match_type:uj,action_type:oj,action_code:301,action_data:{},group_id:t,position:0}}const kj=()=&gt;[{value:uj,label:(0,m.__)(&quot;URL only&quot;,&quot;redirection&quot;)},{value:dj,label:(0,m.__)(&quot;URL and login status&quot;,&quot;redirection&quot;)},{value:yj,label:(0,m.__)(&quot;URL and role/capability&quot;,&quot;redirection&quot;)},{value:pj,label:(0,m.__)(&quot;URL and referrer&quot;,&quot;redirection&quot;)},{value:hj,label:(0,m.__)(&quot;URL and user agent&quot;,&quot;redirection&quot;)},{value:fj,label:(0,m.__)(&quot;URL and cookie&quot;,&quot;redirection&quot;)},{value:_j,label:(0,m.__)(&quot;URL and IP&quot;,&quot;redirection&quot;)},{value:vj,label:(0,m.__)(&quot;URL and server&quot;,&quot;redirection&quot;)},{value:mj,label:(0,m.__)(&quot;URL and HTTP header&quot;,&quot;redirection&quot;)},{value:gj,label:(0,m.__)(&quot;URL and custom filter&quot;,&quot;redirection&quot;)},{value:bj,label:(0,m.__)(&quot;URL and WordPress page type&quot;,&quot;redirection&quot;)},{value:xj,label:(0,m.__)(&quot;URL and language&quot;,&quot;redirection&quot;)}],Cj=()=&gt;[{value:oj,label:(0,m.__)(&quot;Redirect to URL&quot;,&quot;redirection&quot;)},{value:aj,label:(0,m.__)(&quot;Redirect to random post&quot;,&quot;redirection&quot;)},{value:lj,label:(0,m.__)(&quot;Pass-through&quot;,&quot;redirection&quot;)},{value:sj,label:(0,m.__)(&quot;Error (404)&quot;,&quot;redirection&quot;)},{value:cj,label:(0,m.__)(&quot;Do nothing (ignore)&quot;,&quot;redirection&quot;)}],Tj=()=&gt;[{value:&quot;301&quot;,label:(0,m.__)(&quot;301 - Moved Permanently&quot;,&quot;redirection&quot;)},{value:&quot;302&quot;,label:(0,m.__)(&quot;302 - Found&quot;,&quot;redirection&quot;)},{value:&quot;303&quot;,label:(0,m.__)(&quot;303 - See Other&quot;,&quot;redirection&quot;)},{value:&quot;304&quot;,label:(0,m.__)(&quot;304 - Not Modified&quot;,&quot;redirection&quot;)},{value:&quot;307&quot;,label:(0,m.__)(&quot;307 - Temporary Redirect&quot;,&quot;redirection&quot;)},{value:&quot;308&quot;,label:(0,m.__)(&quot;308 - Permanent Redirect&quot;,&quot;redirection&quot;)}],Ej=()=&gt;[{value:&quot;400&quot;,label:(0,m.__)(&quot;400 - Bad Request&quot;,&quot;redirection&quot;)},{value:&quot;401&quot;,label:(0,m.__)(&quot;401 - Unauthorized&quot;,&quot;redirection&quot;)},{value:&quot;403&quot;,label:(0,m.__)(&quot;403 - Forbidden&quot;,&quot;redirection&quot;)},{value:&quot;404&quot;,label:(0,m.__)(&quot;404 - Not Found&quot;,&quot;redirection&quot;)},{value:&quot;410&quot;,label:(0,m.__)(&quot;410 - Gone&quot;,&quot;redirection&quot;)},{value:&quot;418&quot;,label:(0,m.__)(&quot;418 - I&#039;m a teapot&quot;,&quot;redirection&quot;)},{value:&quot;451&quot;,label:(0,m.__)(&quot;451 - Unavailable For Legal Reasons&quot;,&quot;redirection&quot;)},{value:&quot;500&quot;,label:(0,m.__)(&quot;500 - Internal Server Error&quot;,&quot;redirection&quot;)},{value:&quot;501&quot;,label:(0,m.__)(&quot;501 - Not implemented&quot;,&quot;redirection&quot;)},{value:&quot;502&quot;,label:(0,m.__)(&quot;502 - Bad Gateway&quot;,&quot;redirection&quot;)},{value:&quot;503&quot;,label:(0,m.__)(&quot;503 - Service Unavailable&quot;,&quot;redirection&quot;)},{value:&quot;504&quot;,label:(0,m.__)(&quot;504 - Gateway Timeout&quot;,&quot;redirection&quot;)}],Pj=()=&gt;Tj().concat(Ej()),Oj=()=&gt;[{value:&quot;flag_regex&quot;,label:(0,m.__)(&quot;Regex&quot;,&quot;redirection&quot;)},{value:&quot;flag_trailing&quot;,label:(0,m.__)(&quot;Ignore Slash&quot;,&quot;redirection&quot;)},{value:&quot;flag_case&quot;,label:(0,m.__)(&quot;Ignore Case&quot;,&quot;redirection&quot;)}],Rj=()=&gt;[{value:&quot;exactorder&quot;,label:(0,m.__)(&quot;Exact match&quot;,&quot;redirection&quot;)},{value:&quot;exact&quot;,label:(0,m.__)(&quot;Exact match in any order&quot;,&quot;redirection&quot;)},{value:&quot;ignore&quot;,label:(0,m.__)(&quot;Ignore all parameters&quot;,&quot;redirection&quot;)},{value:&quot;pass&quot;,label:(0,m.__)(&quot;Ignore &amp; pass parameters to the target&quot;,&quot;redirection&quot;)}],Nj=e=&gt;&quot;url&quot;===e?[{name:&quot;url&quot;,title:(0,m.__)(&quot;Source URL&quot;,&quot;redirection&quot;),primary:!0,sortable:!1},{name:&quot;count&quot;,title:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;),sortable:!0}]:&quot;agent&quot;===e?[{name:&quot;agent&quot;,title:(0,m.__)(&quot;User Agent&quot;,&quot;redirection&quot;),primary:!0,sortable:!1},{name:&quot;count&quot;,title:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;),sortable:!0}]:&quot;ip&quot;===e?[{name:&quot;ip&quot;,title:(0,m.__)(&quot;IP&quot;,&quot;redirection&quot;),primary:!0,sortable:!1},{name:&quot;count&quot;,title:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;),sortable:!0}]:[{name:&quot;date&quot;,title:(0,m.__)(&quot;Date&quot;,&quot;redirection&quot;)},{name:&quot;method&quot;,title:(0,m.__)(&quot;Method&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;domain&quot;,title:(0,m.__)(&quot;Domain&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;url&quot;,title:(0,m.__)(&quot;Source URL&quot;,&quot;redirection&quot;),primary:!0},{name:&quot;code&quot;,title:(0,m.__)(&quot;HTTP code&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;referrer&quot;,title:(0,m.__)(&quot;Referrer&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;agent&quot;,title:(0,m.__)(&quot;User Agent&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;ip&quot;,title:(0,m.__)(&quot;IP&quot;,&quot;redirection&quot;)}],Aj=e=&gt;{const t=[{id:&quot;delete&quot;,name:(0,m.__)(&quot;Delete&quot;,&quot;redirection&quot;)}];return&quot;ip&quot;===e?t.concat([{id:&quot;redirect-ip&quot;,name:(0,m.__)(&quot;Redirect All&quot;,&quot;redirection&quot;)},{id:&quot;block&quot;,name:(0,m.__)(&quot;Block IP&quot;,&quot;redirection&quot;)}]):&quot;agent&quot;===e?t:t.concat([{id:&quot;redirect-url&quot;,name:(0,m.__)(&quot;Redirect All&quot;,&quot;redirection&quot;),isEverything:!1},{id:&quot;ignore&quot;,name:(0,m.__)(&quot;Ignore URL&quot;,&quot;redirection&quot;),isEverything:!1}])},Ij=e=&gt;{const t=[{value:&quot;&quot;,label:(0,m.__)(&quot;No grouping&quot;,&quot;redirection&quot;)},{value:&quot;url&quot;,label:(0,m.__)(&quot;Group by URL&quot;,&quot;redirection&quot;)},{value:&quot;agent&quot;,label:(0,m.__)(&quot;Group by user agent&quot;,&quot;redirection&quot;)}];return e&gt;0&amp;&amp;t.push({value:&quot;ip&quot;,label:(0,m.__)(&quot;Group by IP&quot;,&quot;redirection&quot;)}),t};function zj(e){return e?[{value:&quot;group&quot;,label:(0,m.__)(&quot;Group&quot;,&quot;redirection&quot;),grouping:[e,&quot;count&quot;]}]:[{value:&quot;standard&quot;,label:(0,m.__)(&quot;Standard Display&quot;,&quot;redirection&quot;),grouping:[&quot;date&quot;,&quot;url&quot;,&quot;agent&quot;,&quot;ip&quot;]},{value:&quot;minimal&quot;,label:(0,m.__)(&quot;Compact Display&quot;,&quot;redirection&quot;),grouping:[&quot;date&quot;,&quot;url&quot;]},{value:&quot;all&quot;,label:(0,m.__)(&quot;Display All&quot;,&quot;redirection&quot;),grouping:Fj(e).map(e=&gt;e.value)}]}function Fj(e){return&quot;url&quot;===e?[{value:&quot;url&quot;,label:(0,m.__)(&quot;URL&quot;,&quot;redirection&quot;)},{value:&quot;count&quot;,label:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;)}]:&quot;agent&quot;===e?[{value:&quot;agent&quot;,label:(0,m.__)(&quot;User Agent&quot;,&quot;redirection&quot;)},{value:&quot;count&quot;,label:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;)}]:&quot;ip&quot;===e?[{value:&quot;ip&quot;,label:(0,m.__)(&quot;IP&quot;,&quot;redirection&quot;)},{value:&quot;count&quot;,label:(0,m.__)(&quot;Count&quot;,&quot;redirection&quot;)}]:[{value:&quot;date&quot;,label:(0,m.__)(&quot;Date&quot;,&quot;redirection&quot;)},{value:&quot;method&quot;,label:(0,m.__)(&quot;Method&quot;,&quot;redirection&quot;)},{value:&quot;domain&quot;,label:(0,m.__)(&quot;Domain&quot;,&quot;redirection&quot;)},{value:&quot;url&quot;,label:(0,m.__)(&quot;URL&quot;,&quot;redirection&quot;)},{value:&quot;code&quot;,label:(0,m.__)(&quot;HTTP code&quot;,&quot;redirection&quot;)},{value:&quot;referrer&quot;,label:(0,m.__)(&quot;Referrer&quot;,&quot;redirection&quot;)},{value:&quot;agent&quot;,label:(0,m.__)(&quot;User Agent&quot;,&quot;redirection&quot;)},{value:&quot;ip&quot;,label:(0,m.__)(&quot;IP&quot;,&quot;redirection&quot;)}]}const Dj=&quot;^/.*$&quot;;function Lj(e){return{url:Dj,match_type:_j,action_data:{ip:e},match_data:{source:{flag_regex:!0}}}}function Mj(e,t){return&quot;redirect-ip&quot;===e||&quot;ip&quot;===e?{...Lj(t),action_type:oj}:&quot;block&quot;===e?{...Lj(t),action_type:sj,action_code:403}:&quot;agent&quot;===e?{url:Dj,match_type:hj,action_data:{agent:t},match_data:{source:{flag_regex:!0}}}:{url:t,match_type:uj,action_type:&quot;ignore&quot;===e?cj:oj}}const $j=({title:e=null,children:t,className:n=&quot;&quot;})=&gt;(0,d.jsxs)(&quot;tr&quot;,{className:n,children:[(0,d.jsx)(&quot;th&quot;,{children:e}),(0,d.jsx)(&quot;td&quot;,{children:t})]}),Uj=({flag_case:e,flag_regex:t,flag_trailing:n})=&gt;[e?&quot;flag_case&quot;:null,t?&quot;flag_regex&quot;:null,n?&quot;flag_trailing&quot;:null].filter(e=&gt;null!==e),Bj=({url:e,flags:t,onFlagChange:n,onChange:r,autoFocus:i=!1})=&gt;{const o=Oj();return Array.isArray(e)?(0,d.jsx)($j,{title:(0,m.__)(&quot;Source URL&quot;,&quot;redirection&quot;),className:&quot;top&quot;,children:(0,d.jsx)(&quot;textarea&quot;,{value:e.join(&quot;\n&quot;),readOnly:!0})}):(0,d.jsxs)($j,{title:(0,m.__)(&quot;Source URL&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__source&quot;,children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,name:&quot;url&quot;,value:e,onChange:r,autoFocus:i,className:&quot;regular-text&quot;,placeholder:(0,m.__)(&quot;The relative URL you want to redirect from&quot;,&quot;redirection&quot;)}),(0,d.jsx)(Wf,{options:o,selected:Uj(t),onChange:function(e){const t=Array.isArray(e)?e:[e];n({flag_case:t.includes(&quot;flag_case&quot;),flag_trailing:t.includes(&quot;flag_trailing&quot;),flag_regex:t.includes(&quot;flag_regex&quot;)})},title:(0,m.__)(&quot;URL options / Regex&quot;,&quot;redirection&quot;),badges:!0,multiple:!0,hideTitle:!0})]})},Zj=({query:e,regex:t,onChange:n,url:r})=&gt;{if(t)return null;const i=!1===(Array.isArray(r)?r.join(&quot;&quot;):r).includes(&quot;?&quot;)?Rj().filter(e=&gt;&quot;exactorder&quot;!==e.value):Rj();return(0,d.jsx)($j,{title:(0,m.__)(&quot;Query Parameters&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__sourcequery&quot;,children:(0,d.jsx)(Sd,{name:&quot;flag_query&quot;,items:i,value:e,onChange:n})})},qj=({groups:e,currentGroup:t,onChange:n})=&gt;(0,d.jsx)(Sd,{name:&quot;group&quot;,value:String(t),items:fp(e),onChange:n}),Hj=({position:e,onChange:t})=&gt;(0,d.jsxs)(&quot;span&quot;,{className:&quot;redirect-edit-position&quot;,children:[(0,d.jsx)(&quot;strong&quot;,{children:(0,m.__)(&quot;Position&quot;,&quot;redirection&quot;)}),&quot; &quot;,(0,d.jsx)(&quot;input&quot;,{type:&quot;number&quot;,value:e,name:&quot;position&quot;,min:&quot;0&quot;,size:3,onChange:t})]}),Wj=function({title:e,onChange:t}){return(0,d.jsx)($j,{title:(0,m.__)(&quot;Title&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__title&quot;,children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,name:&quot;title&quot;,value:e,onChange:e=&gt;t({title:e.target.value}),placeholder:(0,m.__)(&quot;Describe the purpose of this redirect (optional)&quot;,&quot;redirection&quot;)})})},Gj=({actionType:e,actionCode:t,onChange:n})=&gt;{const r=function(e){return e===sj?Ej():e===oj||e===aj?Tj():null}(e);return r?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;strong&quot;,{className:&quot;small-flex&quot;,children:(0,m.__)(&quot;with HTTP code&quot;,&quot;redirection&quot;)}),(0,d.jsx)(Sd,{name:&quot;action_code&quot;,value:String(t),items:r,onChange:n})]}):null},Vj=({actionType:e,matchType:t,onChange:n})=&gt;(0,d.jsx)(Sd,{name:&quot;action_type&quot;,value:e,items:Cj().filter(e=&gt;!(t===dj&amp;&amp;!wj(e.value))),onChange:n}),Qj=({matchType:e,onChange:t})=&gt;(0,d.jsx)($j,{title:(0,m.__)(&quot;Match&quot;,&quot;redirection&quot;),children:(0,d.jsx)(Sd,{name:&quot;match_type&quot;,value:e,items:kj(),onChange:t})}),Kj=function({onChange:e,data:t}){const[n,r]=(0,l.useState)(&quot;&quot;),{agent:i,regex:o}=t;return(0,d.jsxs)($j,{title:(0,m.__)(&quot;User Agent&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,name:&quot;agent&quot;,value:i,onChange:e,className:&quot;regular-text&quot;,placeholder:(0,m.__)(&quot;Match against this browser user agent&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;select&quot;,{name:&quot;agent_dropdown&quot;,onChange:t=&gt;{&quot;&quot;!==t.target.value&amp;&amp;e({target:{name:&quot;agent&quot;,value:{mobile:&quot;iPad|iPod|iPhone|Android|BlackBerry|SymbianOS|SCH-Md+|Opera Mini|Windows CE|Nokia|SonyEricsson|webOS|PalmOS&quot;,feed:&quot;Bloglines|feed|rss&quot;,lib:&quot;cURL|Java|libwww-perl|PHP|urllib&quot;}[t.target.value]}}),r(&quot;&quot;)},value:n,className:&quot;medium&quot;,children:[(0,d.jsx)(&quot;option&quot;,{value:&quot;&quot;,children:(0,m.__)(&quot;Custom&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;option&quot;,{value:&quot;mobile&quot;,children:(0,m.__)(&quot;Mobile&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;option&quot;,{value:&quot;feed&quot;,children:[(0,m.__)(&quot;Feed Readers&quot;,&quot;redirection&quot;),&quot; &quot;]}),(0,d.jsx)(&quot;option&quot;,{value:&quot;lib&quot;,children:(0,m.__)(&quot;Libraries&quot;,&quot;redirection&quot;)})]}),(0,d.jsx)(&quot;input&quot;,{id:&quot;redirect-agent-regex&quot;,type:&quot;checkbox&quot;,name:&quot;regex&quot;,checked:o,onChange:e}),(0,d.jsxs)(&quot;label&quot;,{className:&quot;redirect-edit-regex&quot;,htmlFor:&quot;redirect-agent-regex&quot;,children:[(0,m.__)(&quot;Regex&quot;,&quot;redirection&quot;),&quot; &quot;,(0,d.jsx)(&quot;sup&quot;,{children:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/redirect-regular-expressions/&quot;,children:&quot;?&quot;})})]})]})},Jj=({data:e,onChange:t})=&gt;{const{referrer:n,regex:r}=e;return(0,d.jsxs)($j,{title:(0,m.__)(&quot;Referrer&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;referrer&quot;,value:n,onChange:t,placeholder:(0,m.__)(&quot;Match against this browser referrer text&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{id:&quot;redirect-referrer-regex&quot;,type:&quot;checkbox&quot;,name:&quot;regex&quot;,checked:r,onChange:t}),(0,d.jsxs)(&quot;label&quot;,{className:&quot;redirect-edit-regex&quot;,htmlFor:&quot;redirect-referrer-regex&quot;,children:[(0,m.__)(&quot;Regex&quot;,&quot;redirection&quot;),&quot; &quot;,(0,d.jsx)(&quot;sup&quot;,{children:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/redirect-regular-expressions/&quot;,children:&quot;?&quot;})})]})]})},Yj=function({onChange:e,data:t}){const[n,r]=(0,l.useState)(&quot;&quot;),{name:i,value:o,regex:s}=t;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)($j,{title:(0,m.__)(&quot;HTTP Header&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,name:&quot;name&quot;,value:i,onChange:e,className:&quot;regular-text&quot;,placeholder:(0,m.__)(&quot;Header name&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,name:&quot;value&quot;,value:o,onChange:e,className:&quot;regular-text&quot;,placeholder:(0,m.__)(&quot;Header value&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;select&quot;,{name:&quot;agent_dropdown&quot;,onChange:t=&gt;{&quot;&quot;!==t.target.value&amp;&amp;e({target:{name:&quot;name&quot;,value:{accept:&quot;Accept-Language&quot;}[t.target.value]}}),r(&quot;&quot;)},value:n,className:&quot;medium&quot;,children:[(0,d.jsx)(&quot;option&quot;,{value:&quot;&quot;,children:(0,m.__)(&quot;Custom&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;option&quot;,{value:&quot;accept&quot;,children:(0,m.__)(&quot;Accept Language&quot;,&quot;redirection&quot;)})]}),(0,d.jsx)(&quot;input&quot;,{id:&quot;redirect-header-regex&quot;,type:&quot;checkbox&quot;,name:&quot;regex&quot;,checked:s,onChange:e}),(0,d.jsxs)(&quot;label&quot;,{className:&quot;redirect-edit-regex&quot;,htmlFor:&quot;redirect-header-regex&quot;,children:[(0,m.__)(&quot;Regex&quot;,&quot;redirection&quot;),&quot; &quot;,(0,d.jsx)(&quot;sup&quot;,{children:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/redirect-regular-expressions/&quot;,children:&quot;?&quot;})})]})]}),(0,d.jsx)($j,{children:(0,m.__)(&quot;Note it is your responsibility to pass HTTP headers to PHP. Please contact your hosting provider for support about this.&quot;,&quot;redirection&quot;)})]})},Xj=({data:e,onChange:t})=&gt;{const{filter:n}=e;return(0,d.jsx)($j,{title:(0,m.__)(&quot;Filter Name&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,name:&quot;filter&quot;,value:n,onChange:t,className:&quot;regular-text&quot;,placeholder:(0,m.__)(&quot;WordPress filter name&quot;,&quot;redirection&quot;)})})},eS=({data:e,onChange:t})=&gt;{const{name:n,value:r,regex:i}=e;return(0,d.jsxs)($j,{title:(0,m.__)(&quot;Cookie&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,name:&quot;name&quot;,value:n,onChange:t,className:&quot;regular-text&quot;,placeholder:(0,m.__)(&quot;Cookie name&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,name:&quot;value&quot;,value:r,onChange:t,className:&quot;regular-text&quot;,placeholder:(0,m.__)(&quot;Cookie value&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;input&quot;,{id:&quot;redirect-cookie-regex&quot;,type:&quot;checkbox&quot;,name:&quot;regex&quot;,checked:i,onChange:t}),(0,d.jsxs)(&quot;label&quot;,{className:&quot;redirect-edit-regex&quot;,htmlFor:&quot;redirect-cookie-regex&quot;,children:[(0,m.__)(&quot;Regex&quot;,&quot;redirection&quot;),&quot; &quot;,(0,d.jsx)(&quot;sup&quot;,{children:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/redirect-regular-expressions/&quot;,children:&quot;?&quot;})})]})]})},tS=({data:e,onChange:t})=&gt;{const{role:n}=e;return(0,d.jsx)($j,{title:(0,m.__)(&quot;Role&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,value:n,name:&quot;role&quot;,placeholder:(0,m.__)(&quot;Enter role or capability value&quot;,&quot;redirection&quot;),onChange:t})})},nS=({data:e,onChange:t})=&gt;{const{server:n}=e;return(0,d.jsx)($j,{title:(0,m.__)(&quot;Server&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;server&quot;,value:n,placeholder:(0,m.__)(&quot;Enter server URL to match against&quot;,&quot;redirection&quot;),onChange:t})})},rS=({data:e,onChange:t})=&gt;{const{ip:n=[]}=e;return(0,d.jsx)($j,{title:(0,m.__)(&quot;IP&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:(0,d.jsx)(&quot;textarea&quot;,{value:n.join(&quot;\n&quot;),name:&quot;ip&quot;,placeholder:(0,m.__)(&quot;Enter IP addresses (one per line)&quot;,&quot;redirection&quot;),onChange:e=&gt;{t({target:{name:e.target.name,value:e.target.value.split(&quot;\n&quot;)}})}})})},iS=()=&gt;(0,d.jsx)($j,{title:(0,m.__)(&quot;Page Type&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;Only the 404 page type is currently supported.&quot;,&quot;redirection&quot;),&quot; &quot;,(0,m.__)(&quot;Please do not try and redirect all your 404s - this is not a good thing to do.&quot;,&quot;redirection&quot;)]})}),oS=({data:e,onChange:t})=&gt;{const{language:n}=e;return(0,d.jsx)($j,{title:(0,m.__)(&quot;Language&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__match&quot;,children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;language&quot;,value:n,onChange:t,placeholder:(0,m.__)(&quot;Comma separated list of languages to match against (i.e. da, en-GB)&quot;,&quot;redirection&quot;)})})},sS=({matchType:e,actionData:t,onChange:n})=&gt;{const r={[pj]:Jj,[hj]:Kj,[fj]:eS,[mj]:Yj,[gj]:Xj,[yj]:tS,[vj]:nS,[_j]:rS,[bj]:iS,[xj]:oS};if(r[e]){const i=r[e];return(0,d.jsx)(i,{data:null===t?{}:t,onChange:n})}return null},aS=({onChange:e,data:t})=&gt;{const{logged_in:n,logged_out:r}=t;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)($j,{title:(0,m.__)(&quot;Logged In&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__target__matched&quot;,children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;logged_in&quot;,value:n,onChange:e,placeholder:(0,m.__)(&quot;Target URL when matched (empty to ignore)&quot;,&quot;redirection&quot;)})}),(0,d.jsx)($j,{title:(0,m.__)(&quot;Logged Out&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__target__unmatched&quot;,children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;logged_out&quot;,value:r,onChange:e,placeholder:(0,m.__)(&quot;Target URL when not matched (empty to ignore)&quot;,&quot;redirection&quot;)})})]})};const lS=function(){return(0,d.jsxs)(&quot;svg&quot;,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 32 32&quot;,children:[(0,d.jsx)(&quot;circle&quot;,{transform:&quot;translate(8 0)&quot;,cx:&quot;0&quot;,cy:&quot;16&quot;,r:&quot;0&quot;,children:(0,d.jsx)(&quot;animate&quot;,{attributeName:&quot;r&quot;,values:&quot;0; 4; 0; 0&quot;,dur:&quot;1.2s&quot;,repeatCount:&quot;indefinite&quot;,begin:&quot;0&quot;,keyTimes:&quot;0;0.2;0.7;1&quot;,keySplines:&quot;0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8&quot;,calcMode:&quot;spline&quot;})}),(0,d.jsx)(&quot;circle&quot;,{transform:&quot;translate(16 0)&quot;,cx:&quot;0&quot;,cy:&quot;16&quot;,r:&quot;0&quot;,children:(0,d.jsx)(&quot;animate&quot;,{attributeName:&quot;r&quot;,values:&quot;0; 4; 0; 0&quot;,dur:&quot;1.2s&quot;,repeatCount:&quot;indefinite&quot;,begin:&quot;0.3&quot;,keyTimes:&quot;0;0.2;0.7;1&quot;,keySplines:&quot;0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8&quot;,calcMode:&quot;spline&quot;})}),(0,d.jsx)(&quot;circle&quot;,{transform:&quot;translate(24 0)&quot;,cx:&quot;0&quot;,cy:&quot;16&quot;,r:&quot;0&quot;,children:(0,d.jsx)(&quot;animate&quot;,{attributeName:&quot;r&quot;,values:&quot;0; 4; 0; 0&quot;,dur:&quot;1.2s&quot;,repeatCount:&quot;indefinite&quot;,begin:&quot;0.6&quot;,keyTimes:&quot;0;0.2;0.7;1&quot;,keySplines:&quot;0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8&quot;,calcMode:&quot;spline&quot;})})]})},cS=function({options:e,value:t,onSelect:n,onClose:r}){return(0,d.jsx)(&quot;ul&quot;,{children:e.map((e,i)=&gt;(0,d.jsx)(&quot;li&quot;,{children:(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:t=&gt;function(e,t){e.preventDefault(),n(t),r()}(t,e),onKeyDown:t=&gt;function(e,t){&quot;Enter&quot;!==e.key&amp;&amp;&quot; &quot;!==e.key||(e.preventDefault(),n(t),r())}(t,e),children:(0,d.jsx)(ej(),{searchWords:[t],textToHighlight:e.title,autoEscape:!0})})},i))})},uS=function(e){const{placeholder:t=&quot;&quot;,onChange:n,value:r,fetchData:i,name:o=&quot;text&quot;,disabled:s=!1,className:a,maxChoices:c=-1,maxLength:u=0,canMakeRequest:p=e=&gt;e.length&gt;0,onBlur:h,getLabel:f,setLabel:m=()=&gt;{},loadOnFocus:g=!1,onlyChoices:v=!1}=e,[_,b]=(0,l.useState)(!1),[x,w]=(0,l.useState)([]),[j,S]=(0,l.useState)(Array.isArray(r)?&quot;&quot;:r),k=(0,l.useRef)(null),C={&quot;wpl-dropdowntext__suggestion__hide&quot;:c&gt;0&amp;&amp;Array.isArray(r)&amp;&amp;r.length&gt;=c,&quot;wpl-dropdowntext__suggestion&quot;:c&gt;1},T=function(e,t,n,r){var i=this,o=(0,l.useRef)(null),s=(0,l.useRef)(0),a=(0,l.useRef)(0),c=(0,l.useRef)(null),u=(0,l.useRef)([]),d=(0,l.useRef)(),p=(0,l.useRef)(),h=(0,l.useRef)(e),f=(0,l.useRef)(!0),m=(0,l.useRef)(),g=(0,l.useRef)();h.current=e;var y=&quot;undefined&quot;!=typeof window,v=!t&amp;&amp;0!==t&amp;&amp;y;if(&quot;function&quot;!=typeof e)throw new TypeError(&quot;Expected a function&quot;);t=+t||0;var _=!!(n=n||{}).leading,b=!(&quot;trailing&quot;in n)||!!n.trailing,x=!!n.flushOnExit&amp;&amp;b,w=&quot;maxWait&quot;in n,j=&quot;debounceOnServer&quot;in n&amp;&amp;!!n.debounceOnServer,S=w?Math.max(+n.maxWait||0,t):null,k=(0,l.useMemo)(function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,a.current=a.current||e,p.current=h.current.apply(n,t)},n=function(e,t){v&amp;&amp;cancelAnimationFrame(c.current),c.current=v?requestAnimationFrame(e):setTimeout(e,t)},l=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n&gt;=t||n&lt;0||w&amp;&amp;e-s.current&gt;=S},k=function(t){return c.current=null,b&amp;&amp;u.current?e(t):(u.current=d.current=null,p.current)},C=function e(){var r=Date.now();if(_&amp;&amp;a.current===s.current&amp;&amp;T(),l(r))return k(r);if(f.current){var i=t-(r-o.current),c=w?Math.min(i,S-(r-s.current)):i;n(e,c)}},T=function(){r&amp;&amp;r({})},E=function(){if(y||j){var r,a=Date.now(),h=l(a);if(u.current=[].slice.call(arguments),d.current=i,o.current=a,x&amp;&amp;!m.current&amp;&amp;(m.current=function(){var e;&quot;hidden&quot;===(null==(e=globalThis.document)?void 0:e.visibilityState)&amp;&amp;g.current.flush()},null==(r=globalThis.document)||null==r.addEventListener||r.addEventListener(&quot;visibilitychange&quot;,m.current)),h){if(!c.current&amp;&amp;f.current)return s.current=o.current,n(C,t),_?e(o.current):p.current;if(w)return n(C,t),e(o.current)}return c.current||n(C,t),p.current}};return E.cancel=function(){var e=c.current;e&amp;&amp;(v?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=o.current=d.current=c.current=null,e&amp;&amp;r&amp;&amp;r({})},E.isPending=function(){return!!c.current},E.flush=function(){return c.current?k(Date.now()):p.current},E},[_,w,t,S,b,x,v,y,j,r]);return g.current=k,(0,l.useEffect)(function(){return f.current=!0,function(){var e;x&amp;&amp;g.current.flush(),m.current&amp;&amp;(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener(&quot;visibilitychange&quot;,m.current),m.current=null),f.current=!1}},[x]),k}(E,450);function E(e){i&amp;&amp;(b(!0),i(e).then(e=&gt;{k.current&amp;&amp;k.current.ownerDocument.activeElement===k.current&amp;&amp;w(e),b(!1)}).catch(()=&gt;{w([]),b(!1)}))}function P(e){if(f)return R(e).map(t=&gt;f(t,e))}function O(e){if(c&gt;0){if(!R(r).find(t=&gt;t===`${e.value}`)){const t=[`${e.value}`].concat(R(r).filter(t=&gt;t!==`${e.value}`)).slice(0,c);n(1!==c||v?t:t[0],[e.title].concat(P(t)?.slice(1)||[])),m(e.value,e.title)}S(&quot;&quot;)}else S(e.value),n(e.value,P(r));w([])}function R(e){return Array.isArray(e)?e:e?[e]:[]}return(0,l.useEffect)(()=&gt;{r!==j&amp;&amp;S(Array.isArray(r)?&quot;&quot;:r)},[r,j]),(0,d.jsxs)(&quot;div&quot;,{className:y(&quot;wpl-dropdowntext&quot;,a,C),children:[c&gt;0&amp;&amp;R(r).map(e=&gt;(0,d.jsx)($f,{title:e,onCancel:()=&gt;function(e){const t=R(r).filter(t=&gt;t!==e);m(e,null),Array.isArray(r)?n(1===c?t[0]:t,P(t)):n(&quot;&quot;),k.current?.focus()}(e),disabled:s,children:f?f(e,r):e},e)),(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:y(&quot;regular-text&quot;,{&quot;wpl-dropdowntext__max&quot;:c&gt;=0&amp;&amp;R(r).length&gt;=c}),name:o,value:j,disabled:s,onChange:function(e){S(e.target.value),c&lt;1&amp;&amp;n(e.target.value),i&amp;&amp;T&amp;&amp;(p(e.target.value.trim())?T(e.target.value):w([]))},maxLength:u&gt;0?u:void 0,placeholder:t,ref:k,onFocus:function(){const e=(Array.isArray(r),r.length&gt;0);g&amp;&amp;!e&amp;&amp;E(&quot;&quot;)},onBlur:function(e){if(e.relatedTarget&amp;&amp;e.relatedTarget.closest(&quot;.wpl-dropdowntext__suggestions&quot;))return;const t=`${(h?h(j):j)??&quot;&quot;}`;0===x.length?v?S(&quot;&quot;):c&gt;0&amp;&amp;i?O({value:t,label:t,title:t}):n(t):t!==j&amp;&amp;S(t),b(!1)},onKeyDown:function(e){&quot;Enter&quot;===e.code&amp;&amp;(b(!1),w([]))}}),_&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-dropdowntext__loading&quot;,children:(0,d.jsx)(lS,{})}),x.length&gt;0&amp;&amp;k.current&amp;&amp;(0,d.jsx)(zf,{align:&quot;left&quot;,onClose:()=&gt;w([]),popoverPosition:If(k.current),className:&quot;wpl-dropdowntext__suggestions&quot;,focusLock:!1,children:(0,d.jsx)(cS,{options:x,value:j,onSelect:O,onClose:()=&gt;w([])})})]})},dS=function(e){const{onChange:t,url:n}=e;return(0,d.jsx)(uS,{placeholder:(0,m.__)(&quot;The target URL you want to redirect, or auto-complete on post name or permalink.&quot;,&quot;redirection&quot;),onChange:t,fetchData:function(e){return jt(At(e))},value:Array.isArray(n)?n.join(&quot;&quot;):n||&quot;&quot;})},pS=({onChange:e,data:t})=&gt;{const{url:n}=t;return(0,d.jsx)($j,{title:(0,m.__)(&quot;Target URL&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__target&quot;,children:(0,d.jsx)(dS,{...void 0!==n?{url:n}:{},onChange:t=&gt;e({target:{name:&quot;url&quot;,value:t,type:&quot;input&quot;}})})})},hS=({onChange:e,data:t})=&gt;{const{url_from:n,url_notfrom:r}=t;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)($j,{title:(0,m.__)(&quot;Matched Target&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__target__matched&quot;,children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;url_from&quot;,value:n,onChange:e,placeholder:(0,m.__)(&quot;Target URL when matched (empty to ignore)&quot;,&quot;redirection&quot;)})}),(0,d.jsx)($j,{title:(0,m.__)(&quot;Unmatched Target&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__target__unmatched&quot;,children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;url_notfrom&quot;,value:r,onChange:e,placeholder:(0,m.__)(&quot;Target URL when not matched (empty to ignore)&quot;,&quot;redirection&quot;)})})]})},fS=({actionType:e,matchType:t,actionData:n,onChange:r})=&gt;{if(wj(e)){const e=(i=t)===dj?aS:i===uj||i===bj?pS:hS,o=jj(t,n);return(0,d.jsx)(e,{data:null===o?{}:o,onChange:r})}var i;return null},mS=(e,t)=&gt;t.startsWith(e)||e.slice(0,t.length)===t,gS=e=&gt;{const{url:t,flag_regex:n,action_data:r={}}=e;if(null===r||!t||!e||&quot;string&quot;!=typeof t)return[];const i=[],{url:o=&quot;&quot;,logged_in:s=&quot;&quot;,logged_out:a=&quot;&quot;,url_from:l=&quot;&quot;,url_notfrom:c=&quot;&quot;}=r;if(Array.isArray(t)||0===t.length||void 0===t)return i;if(t.includes(&quot;#&quot;)&amp;&amp;i.push((0,d.jsx)(z,{url:&quot;https://redirection.me/support/faq/#anchor&quot;,children:(0,m.__)(&quot;Anchor values are not sent to the server and cannot be redirected.&quot;,&quot;redirection&quot;)})),&quot;http&quot;===t.slice(0,4)&amp;&amp;!t.includes(document.location.origin))try{const e=new URL(t);i.push((0,d.jsx)(z,{url:&quot;https://redirection.me/support/matching-redirects/#server&quot;,children:U((0,m.sprintf)(
// translators: %(server)s is the domain name
// translators: %(server)s is the domain name
(0,m.__)(&quot;This will be converted to a server redirect for the domain {{code}}%(server)s{{/code}}.&quot;,&quot;redirection&quot;),{server:e.hostname}),{code:(0,d.jsx)(&quot;code&quot;,{})})}))}catch(e){}var u;&quot;http&quot;!==t.slice(0,4)&amp;&amp;&quot;/&quot;!==t.slice(0,1)&amp;&amp;t.length&gt;0&amp;&amp;!1===n&amp;&amp;!t.includes(&quot;[source]&quot;)&amp;&amp;i.push(U((0,m.__)(&quot;The source URL should probably start with a {{code}}/{{/code}}&quot;,&quot;redirection&quot;),{code:(0,d.jsx)(&quot;code&quot;,{})})),null===(u=t).match(/[\*\\\(\)\^\$]/)&amp;&amp;!u.includes(&quot;.?&quot;)||!1!==n||i.push((0,d.jsx)(z,{url:&quot;https://redirection.me/support/redirect-regular-expressions/&quot;,children:(0,m.__)(&#039;Remember to enable the &quot;regex&quot; option if this is a regular expression.&#039;,&quot;redirection&quot;)})),t.match(/%\w+%/)&amp;&amp;i.push((0,d.jsx)(z,{url:&quot;tools.php?page=redirection.php&amp;sub=site&quot;,children:(0,m.__)(&#039;Please add migrated permalinks to the Site page under the &quot;Permalink Migration&quot; section.&#039;,&quot;redirection&quot;)})),t.includes(&quot;^&quot;)||t.includes(&quot;$&quot;)||!n||i.push(
// translators: %(example)s is an example regular expression
U((0,m.sprintf)(
// translators: %(example)s is an example regular expression
// translators: %(example)s is an example regular expression
(0,m.__)(&quot;To prevent a greedy regular expression you can use {{code}}^{{/code}} to anchor it to the start of the URL. For example: {{code}}%(example)s{{/code}}&quot;,&quot;redirection&quot;),{example:&quot;^&quot;+t}),{code:(0,d.jsx)(&quot;code&quot;,{})})),n&amp;&amp;t.includes(&quot;^&quot;)&amp;&amp;t.indexOf(&quot;^&quot;)&gt;0&amp;&amp;i.push(
// translators: %(example)s is an example regular expression with corrected caret position
U((0,m.sprintf)(
// translators: %(example)s is an example regular expression with corrected caret position
// translators: %(example)s is an example regular expression with corrected caret position
(0,m.__)(&quot;The caret {{code}}^{{/code}} should be at the start. For example: {{code}}%(example)s{{/code}}&quot;,&quot;redirection&quot;),{example:&quot;^&quot;+t.replace(&quot;^&quot;,&quot;&quot;)}),{code:(0,d.jsx)(&quot;code&quot;,{})})),n&amp;&amp;t.match(/[a-zA-Z0-9\/]\?/)&amp;&amp;i.push(U((0,m.__)(&quot;To match {{code}}?{{/code}} you need to escape it with {{code}}\\?{{/code}}&quot;,&quot;redirection&quot;),{code:(0,d.jsx)(&quot;code&quot;,{})})),n&amp;&amp;t.match(/[a-zA-Z0-9 ]\*/)&amp;&amp;i.push(U((0,m.__)(&quot;Wildcards are not supported. You need to use a {{link}}regular expression{{/link}}.&quot;,&quot;redirection&quot;),{link:(0,d.jsx)(z,{url:&quot;https://redirection.me/support/redirect-regular-expressions/&quot;})})),&quot;/(.*)&quot;!==t&amp;&amp;&quot;^/(.*)&quot;!==t||i.push((0,m.__)(&quot;If you want to redirect everything please use a site relocation or alias from the Site page.&quot;,&quot;redirection&quot;)),t.length&gt;0&amp;&amp;(l===t||c===t||s===t||a===t||o===t)&amp;&amp;i.push((0,m.__)(&quot;Your source is the same as a target and this will create a loop. Leave a target blank if you do not want to take action.&quot;,&quot;redirection&quot;));const p=[r.url,r.url_from,r.url_notfrom,r.logged_in,r.logged_out].filter(e=&gt;e);return!o||mS(o,&quot;https://&quot;)||mS(o,&quot;http://&quot;)||&quot;/&quot;===o.slice(0,1)||i.push(
// translators: %(url)s is the user&#039;s target URL
U((0,m.sprintf)(
// translators: %(url)s is the user&#039;s target URL
// translators: %(url)s is the user&#039;s target URL
(0,m.__)(&quot;Your target URL should be an absolute URL like {{code}}https://domain.com/%(url)s{{/code}} or start with a slash {{code}}/%(url)s{{/code}}.&quot;,&quot;redirection&quot;),{url:r.url}),{code:(0,d.jsx)(&quot;code&quot;,{})})),!1===n&amp;&amp;p.forEach(e=&gt;{const t=e.match(/[|\\\$]/g);null!==t&amp;&amp;i.push(
// translators: %(invalid)s is an invalid character in the URL
U((0,m.sprintf)(
// translators: %(invalid)s is an invalid character in the URL
// translators: %(invalid)s is an invalid character in the URL
(0,m.__)(&quot;Your target URL contains the invalid character {{code}}%(invalid)s{{/code}}&quot;,&quot;redirection&quot;),{invalid:t}),{code:(0,d.jsx)(&quot;code&quot;,{})}))}),[t,...p].forEach(e=&gt;{const t=(e=&gt;{const t=e.match(/^\/([a-zA-Z0-9_\-%]*\..*)\//);return t&amp;&amp;!e.includes(&quot;index.php&quot;)?t[0]:null})(e);t&amp;&amp;i.push(
// translators: %(relative)s is the relative URL, %(absolute)s is the suggested absolute URL
U((0,m.sprintf)(
// translators: %(relative)s is the relative URL, %(absolute)s is the suggested absolute URL
// translators: %(relative)s is the relative URL, %(absolute)s is the suggested absolute URL
(0,m.__)(&quot;Your URL appears to contain a domain inside the path: {{code}}%(relative)s{{/code}}. Did you mean to use {{code}}%(absolute)s{{/code}} instead?&quot;,&quot;redirection&quot;),{relative:t,absolute:&quot;https://&quot;+t}),{code:(0,d.jsx)(&quot;code&quot;,{})}))}),null!==t.match(/(\.html|\.htm|\.php|\.pdf|\.jpg)$/)&amp;&amp;i.push((0,d.jsx)(z,{url:&quot;https://redirection.me/support/problems/url-not-redirecting/&quot;,children:(0,m.__)(&quot;Some servers may be configured to serve file resources directly, preventing a redirect occurring.&quot;,&quot;redirection&quot;)})),i},yS=({warnings:e})=&gt;0===e.length?null:(0,d.jsx)($j,{children:(0,d.jsx)(&quot;div&quot;,{className:&quot;redirect-edit_warning notice notice-warning&quot;,children:e.map((e,t)=&gt;(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;span&quot;,{className:&quot;dashicons dashicons-info&quot;}),e]},t))})});function vS(e){const t=h(),{incrementProgress:n,decrementProgress:r,addNotice:i,addError:o}=cd(),{setRedirectsTable:s}=Gx();return pt({mutationFn:async({items:e,params:t={}})=&gt;{n();try{return await jt(Vt(&quot;delete&quot;,{items:e},t))}catch(e){throw r(),sd(e)}},onSuccess:(e,n)=&gt;{r(),i(&quot;Redirects deleted&quot;),s(cm(n.params)),t.invalidateQueries({queryKey:ad.redirects.lists()})},onError:e=&gt;{o(e.message||&quot;Failed to delete redirects&quot;)},...e})}function _S(e,t){const n=h(),{incrementProgress:r,decrementProgress:i,addNotice:o,addError:s}=cd(),{setRedirectsSelected:a}=Gx();return pt({mutationFn:async({items:t})=&gt;{r();try{return await jt(Vt(e,{items:t},{}))}catch(e){throw i(),sd(e)}},onSuccess:()=&gt;{i(),o(`Redirects ${e}d`),a([]),n.invalidateQueries({queryKey:ad.redirects.lists()})},onError:t=&gt;{s(t.message||`Failed to ${e} redirects`)},...t})}const bS=function(e){const{item:t,onCancel:n,saveButton:r=(0,m.__)(&quot;Save&quot;,&quot;redirection&quot;),childSave:i,callback:o,canSave:s,autoFocus:a,children:c}=e,{data:u}=hm({}),p=(0,l.useMemo)(()=&gt;u?.items??[],[u]),f=Gx(e=&gt;e.redirectsAddTop),g=Gx(e=&gt;e.redirects),{setRedirectsAddTop:y}=Gx(),v=pe(e=&gt;e.values),_=v?.auto_target||&quot;&quot;,b=(0,l.useMemo)(()=&gt;v?{flag_case:v.flag_case,flag_trailing:v.flag_trailing,flag_regex:v.flag_regex,flag_query:v.flag_query}:{},[v]),{mutate:x}=function(){const e=h(),{incrementProgress:t,decrementProgress:n,addNotice:r,addError:i}=cd();return pt({mutationFn:async e=&gt;{t();try{const{id:t,...n}=e,r=await jt(Rt(t,n));return sm.parse(r).item}catch(e){throw n(),sd(e)}},onSuccess:t=&gt;{n(),r(&quot;Redirect saved&quot;),e.invalidateQueries({queryKey:ad.redirects.lists()}),e.invalidateQueries({queryKey:ad.redirects.detail(t.id)})},onError:e=&gt;{i(e.message||&quot;Failed to update redirect&quot;)}})}(),{mutate:w}=function(){const e=h(),{incrementProgress:t,decrementProgress:n,addNotice:r,addError:i}=cd();return pt({mutationFn:async e=&gt;{t();try{const t=await jt(Nt(e));return om.parse(t).items[0]??null}catch(e){throw n(),sd(e)}},onSuccess:()=&gt;{n(),r(&quot;Redirect created&quot;),e.invalidateQueries({queryKey:ad.redirects.lists()})},onError:e=&gt;{i(e.message||&quot;Failed to create redirect&quot;)}})}(),j=(0,l.useRef)(null),S=(0,l.useCallback)(e=&gt;{if(((e,t)=&gt;e.find(e=&gt;e.id===t))(p,e))return e;if(g.filterBy&amp;&amp;&quot;object&quot;==typeof g.filterBy&amp;&amp;&quot;group&quot;in g.filterBy&amp;&amp;g.filterBy.group&amp;&amp;parseInt(String(g.filterBy.group),10)&gt;0)return parseInt(String(g.filterBy.group),10);if(p&amp;&amp;p.length&gt;0){const e=p.find(e=&gt;e.default);return e?e.id:p[0].id}return 0},[p,g.filterBy]),{url:k,match_data:C,match_type:T,action_type:E,action_data:P,group_id:O=0,title:R,action_code:N,position:A=0}=t,{flag_regex:I=!1,flag_trailing:z=!1,flag_case:F=!1,flag_query:D=&quot;exact&quot;}=C?.source??{},L={url:k,title:R,flag_regex:I,flag_trailing:z,flag_case:F,flag_query:D,match_type:T,action_type:E,action_code:N,action_data:jj(T,P),options:C?.options??{},group_id:S(O),position:A,warning:[],advanced:!1},[M,$]=(0,l.useState)(L),U=(0,l.useCallback)(()=&gt;{const{match_type:e,action_type:t,title:n,action_code:r}=M;return e===uj&amp;&amp;t===oj&amp;&amp;&quot;&quot;===n&amp;&amp;301===r},[M]);(0,l.useEffect)(()=&gt;{$(e=&gt;({...e,advanced:!U()}))},[]),(0,l.useEffect)(()=&gt;{$(e=&gt;({...e,warning:gS(e)}))},[M.url,M.action_type,M.match_type,M.action_data]),(0,l.useEffect)(()=&gt;{o&amp;&amp;j.current&amp;&amp;o(j.current.clientHeight)},[M,o]);const B=(0,l.useCallback)(()=&gt;{const e=Sj(&quot;&quot;,M.group_id,b);$(t=&gt;({...t,url:e.url,title:&quot;&quot;,flag_regex:e.match_data.source.flag_regex,flag_trailing:e.match_data.source.flag_trailing,flag_case:e.match_data.source.flag_case,flag_query:e.match_data.source.flag_query,match_type:e.match_type,action_type:e.action_type,action_code:e.action_code,action_data:e.action_data,options:e.match_data.options,position:0,advanced:!1,warning:[]}))},[M.group_id,b]),Z=(0,l.useCallback)(e=&gt;{e.preventDefault();const{url:r,title:o,flag_regex:a,flag_trailing:l,flag_case:c,flag_query:u,match_type:d,action_type:h,group_id:f,action_code:m,position:g,action_data:y,options:v}=M,_=f&gt;0||!p?f:p[0].id,b={...t.id?{id:parseInt(String(t.id),10)}:{},url:r,title:o,match_data:{source:{flag_regex:a,flag_trailing:l,flag_case:c,flag_query:u},...v?{options:v}:{}},match_type:d,action_type:h,...void 0!==g?{position:g}:{},...void 0!==_?{group_id:_}:{},action_code:&quot;number&quot;==typeof m?m:parseInt(String(m),10),action_data:jj(d,y)};s&amp;&amp;!s(Array.isArray(r))||(b.id?x({id:b.id,...b}):w(b),n?n(e):B(),i&amp;&amp;i())},[M,p,t.id,s,x,w,n,B,i]),q=(0,l.useCallback)(e=&gt;{$(t=&gt;({...t,...e,warning:gS({...t,...e})}))},[]),H=(0,l.useCallback)(e=&gt;{e.preventDefault(),q({advanced:!M.advanced})},[M.advanced,q]),W=(0,l.useCallback)(e=&gt;{$(t=&gt;({...t,group_id:parseInt(e.target.value,10)}))},[]),G=(0,l.useCallback)(e=&gt;{const t={};Object.keys(b).filter(e=&gt;&quot;flag_query&quot;!==e).forEach(e=&gt;{t[e]=!1}),q({...t,...e})},[b,q]),V=(0,l.useCallback)(e=&gt;{const{target:t}=e,n=&quot;checkbox&quot;===t.type?t.checked:t.value;return{[t.name]:n}},[]),Q=(0,l.useCallback)(e=&gt;{const t=V(e);t.action_data=jj(t.match_type,M.action_data),t.match_type===dj&amp;&amp;(t.action_type=oj),q(t)},[M.action_data,V,q]),K=(0,l.useCallback)(e=&gt;{q(V(e))},[V,q]),J=(0,l.useCallback)(e=&gt;{$(t=&gt;({...t,options:{...t.options,[e.target.name]:e.target.checked??e.target.value}}))},[]),Y=(0,l.useCallback)(e=&gt;{const t=V(e).action_type;var n;q({action_type:t,action_code:(n=t,n===sj?404:n===lj?200:301),action_data:jj(M.match_type,M.action_data||{})})},[M.match_type,M.action_data,V,q]),X=(0,l.useCallback)(e=&gt;{const t={action_data:{...M.action_data,...V(e)}};q(t)},[M.action_data,V,q]),ee=(0,l.useCallback)(()=&gt;{const{match_type:e,action_type:t,action_data:n,url:r}=M;return!(0===r.length&amp;&amp;!_||wj(t)&amp;&amp;(i=e,(!(o=n)||i!==uj&amp;&amp;i!==bj&amp;&amp;!(i===dj?o.logged_in||o.logged_out:i===pj?o.referrer:i===hj?o.agent:i===fj||i===mj?o.name&amp;&amp;o.value:i===gj?o.filter:i===yj?o.role:i===vj?o.server:i===_j?o.ip:i===xj&amp;&amp;o.language))&amp;&amp;&quot;&quot;===_));var i,o},[M,_]),{url:te,advanced:ne,flag_regex:re,action_type:ie,match_type:oe,action_data:se,flag_query:ae,group_id:le,position:ce,title:ue,action_code:de,options:he,warning:fe}=M;return(0,d.jsx)(&quot;form&quot;,{onSubmit:Z,ref:j,children:(0,d.jsx)(&quot;table&quot;,{className:&quot;redirect-edit&quot;,children:(0,d.jsxs)(&quot;tbody&quot;,{children:[(0,d.jsx)(Bj,{url:te,flags:M,defaultFlags:b,autoFocus:a??!1,onFlagChange:G,onChange:K}),(0,d.jsx)(Zj,{query:ae,regex:re,onChange:K,url:te}),ne&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Wj,{title:ue,onChange:e=&gt;q(e)}),(0,d.jsx)(Qj,{matchType:oe,onChange:Q}),(0,d.jsx)(sS,{matchType:oe,actionData:se,onChange:X}),(0,d.jsxs)($j,{title:(0,m.__)(&quot;When matched&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__action&quot;,children:[(0,d.jsx)(Vj,{actionType:ie,matchType:oe,onChange:Y}),(0,d.jsx)(Gj,{actionType:ie,actionCode:de,onChange:K}),ne&amp;&amp;[&quot;url&quot;,&quot;random&quot;].includes(ie)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;redirect-log-exclude&quot;,type:&quot;checkbox&quot;,name:&quot;log_exclude&quot;,checked:Boolean(he.log_exclude),onChange:J}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;redirect-log-exclude&quot;,children:(0,m.__)(&quot;Exclude from logs&quot;,&quot;redirection&quot;)})]}):null]})]}),(0,d.jsx)(fS,{actionType:ie,matchType:oe,actionData:se,onChange:X}),(0,d.jsxs)($j,{title:(0,m.__)(&quot;Group&quot;,&quot;redirection&quot;),className:&quot;redirect-edit__group&quot;,children:[(0,d.jsx)(qj,{groups:p,currentGroup:le,onChange:W}),ne&amp;&amp;(0,d.jsx)(Hj,{position:ce,onChange:K})]}),c&amp;&amp;c,(0,d.jsx)($j,{children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;table-actions&quot;,children:[(0,d.jsx)(&quot;input&quot;,{className:&quot;button-primary&quot;,type:&quot;submit&quot;,name:&quot;save&quot;,value:r,disabled:!ee()}),&quot; &quot;,&quot; &quot;,n&amp;&amp;(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;button-secondary&quot;,onClick:n,children:(0,m.__)(&quot;Cancel&quot;,&quot;redirection&quot;)}),f&amp;&amp;!n&amp;&amp;(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary&quot;,type:&quot;button&quot;,onClick:e=&gt;{e.preventDefault(),y(!1)},children:(0,m.__)(&quot;Close&quot;,&quot;redirection&quot;)}),&quot; &quot;,U()&amp;&amp;(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:H,className:&quot;redirection-edit_advanced&quot;,title:(0,m.__)(&quot;Show advanced options&quot;,&quot;redirection&quot;),children:(0,d.jsx)(&quot;svg&quot;,{&quot;aria-hidden&quot;:&quot;true&quot;,role:&quot;img&quot;,focusable:&quot;false&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,width:&quot;20&quot;,height:&quot;20&quot;,viewBox:&quot;0 0 20 20&quot;,children:(0,d.jsx)(&quot;path&quot;,{d:&quot;M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z&quot;})})})]})}),(0,d.jsx)(yS,{warnings:fe})]})})})};const xS=function(e){const{onClose:t,redirect:n,rows:r}=e,i=pe(e=&gt;e.values),o={flag_regex:i?.flag_regex||!1,flag_trailing:i?.flag_trailing||!1,flag_case:i?.flag_case||!1,flag_query:i?.flag_query||&quot;exact&quot;},{mutate:s}=Yx(),a=function(e,t){return e?Array.isArray(e)?[...new Set(e.map(e=&gt;function(e,t){const n=t.find(t=&gt;t.id===e||t.id===parseInt(e,10));return n?n.url:e}(e,t)))]:e:&quot;&quot;}(n.url,r),[c,u]=(0,l.useState)(!1),p={...Sj(Array.isArray(a)?a[0]??&quot;&quot;:a,0,o),...n,url:a};return(0,d.jsx)(xm,{onClose:t,padding:!0,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;add-new&quot;,children:(0,d.jsx)(bS,{item:p,saveButton:(0,m.__)(&quot;Add Redirect&quot;,&quot;redirection&quot;),onCancel:t,childSave:()=&gt;{return c&amp;&amp;(e=Array.isArray(a)?a:[a],void s({action:&quot;delete&quot;,items:e,params:{groupBy:&quot;url&quot;,deleteConfirm:!0}}));var e},canSave:e=&gt;c&amp;&amp;confirm(e?(0,m.__)(&quot;Are you sure you want to delete the selected items?&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Are you sure you want to delete this item?&quot;,&quot;redirection&quot;))||!c,autoFocus:!0,children:Nw(Dw)&amp;&amp;(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Delete Log Entries&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;td&quot;,{className:&quot;edit-left&quot;,style:{padding:&quot;7px 0px&quot;},children:[(0,d.jsx)(&quot;input&quot;,{id:&quot;create-redirect-delete-log&quot;,type:&quot;checkbox&quot;,checked:c,onChange:e=&gt;u(e.target.checked)}),(0,d.jsx)(&quot;label&quot;,{htmlFor:&quot;create-redirect-delete-log&quot;,children:Array.isArray(a)&amp;&amp;a.length&lt;=1||!Array.isArray(a)?(0,m.__)(&quot;Delete logs for this entry&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Delete logs for these entries&quot;,&quot;redirection&quot;)})]})]})})})})},wS=function(e){const{row:t,onDelete:n,onCreate:r,table:i,disabled:o}=e,{setErrorsTable:s}=Gx(),{url:a,ip:l,agent:c,id:u}=t,{groupBy:p}=i,h=[];return h.push((0,d.jsx)(Mw,{onClick:()=&gt;n(u),capability:Dw,children:(0,m.__)(&quot;Delete&quot;,&quot;redirection&quot;)},&quot;0&quot;)),h.push((0,d.jsx)(Mw,{onClick:()=&gt;r(Mj(p,&quot;ip&quot;===p?[u]:&quot;&quot;===p?a:u)),capability:zw,children:(0,m.__)(&quot;Add Redirect&quot;,&quot;redirection&quot;)},&quot;1&quot;)),c&amp;&amp;h.unshift((0,d.jsx)(Ww,{agent:c},&quot;3&quot;)),h.push((0,d.jsx)(Mw,{onClick:()=&gt;{return e=um(p,&quot;&quot;===p?t.url:String(t.id)),void s({filterBy:e,page:0,groupBy:&quot;&quot;,selected:[],selectAll:!1});var e},capability:Iw,children:(0,m.__)(&quot;Show All&quot;,&quot;redirection&quot;)},&quot;4&quot;)),&quot;ip&quot;===p?h.push((0,d.jsx)(Mw,{onClick:()=&gt;r(Mj(&quot;block&quot;,[l])),capability:zw,children:(0,m.__)(&quot;Block IP&quot;,&quot;redirection&quot;)},&quot;5&quot;)):&quot;agent&quot;!==p&amp;&amp;h.push((0,d.jsx)(Mw,{onClick:()=&gt;r(Mj(&quot;ignore&quot;,a)),capability:zw,children:(0,m.__)(&quot;Ignore URL&quot;,&quot;redirection&quot;)},&quot;6&quot;)),(0,d.jsx)(Lw,{disabled:o,actions:h})};function jS(e){return e.url?pp(hp(e.domain),e.url):&quot;&quot;}function SS(e){return e.includes(&quot;url&quot;)?e:e.concat([&quot;url&quot;])}const kS=function(){const e=Gx(e=&gt;e.errors),{setErrorsTable:t,setErrorsSelected:n}=Gx(),r=pe(e=&gt;e.values),[i,o]=(0,l.useState)(null);Xx({table:e,setTable:t,allowedGroup:[&quot;url&quot;,&quot;ip&quot;,&quot;agent&quot;],allowedFilters:[&quot;url&quot;,&quot;url-exact&quot;,&quot;referrer&quot;,&quot;agent&quot;,&quot;ip&quot;,&quot;domain&quot;,&quot;method&quot;],pageName:&quot;404s&quot;});const s=Yx(),{data:a,isFetching:c}=function(e={},t){const n=pm(e),{addError:r}=cd();return ct({queryKey:ad.errors.list(n),queryFn:async()=&gt;{try{const e=await jt(Lt(n));return Jx.parse(e)}catch(e){const t=sd(e);throw r(t.message||&quot;Failed to fetch 404 errors&quot;),t}},...t})}(e),u=a?.items??[],p=a?.total??0;let h=ew;function f(e){n([]),o(e)}function g(t){if(!window.confirm((0,m.__)(&quot;Are you sure you want to delete this item?&quot;,&quot;redirection&quot;)))return;const n=e.groupBy?{groupBy:e.groupBy}:{};s.mutate({action:&quot;delete&quot;,items:[t],params:n})}c?h=tw:a&amp;&amp;(h=nw);const y=e=&gt;{t({filterBy:e,page:0,selected:[],selectAll:!1})},v={...e,...(_=e.groupBy,_?{displayOptions:Fj(_),displaySelected:zj(_)[0]?.grouping||[]}:{})};var _;const b={page:e.page,perPage:e.per_page,orderBy:e.orderby||&quot;date&quot;,direction:e.direction,selected:e.selected??[],selectAll:e.selectAll??!1,filter:&quot;&quot;,filterBy:e.filterBy??{},displayType:e.displayType??&quot;standard&quot;,displaySelected:v.displaySelected??[],groupBy:e.groupBy??&quot;&quot;},x={displayFilters:Fj(v.groupBy),displayGroups:zj(v.groupBy),searchOptions:[{name:&quot;url&quot;,title:(0,m.__)(&quot;Search URL&quot;,&quot;redirection&quot;)},{name:&quot;url-exact&quot;,title:(0,m.__)(&quot;Search exact URL&quot;,&quot;redirection&quot;)},{name:&quot;referrer&quot;,title:(0,m.__)(&quot;Search referrer&quot;,&quot;redirection&quot;)},{name:&quot;agent&quot;,title:(0,m.__)(&quot;Search user agent&quot;,&quot;redirection&quot;)},{name:&quot;ip&quot;,title:(0,m.__)(&quot;Search IP&quot;,&quot;redirection&quot;)},{name:&quot;domain&quot;,title:(0,m.__)(&quot;Search domain&quot;,&quot;redirection&quot;)}],groupBy:Ij(r?.ip_logging||0),bulk:Aj(v.groupBy),rowFilters:v.groupBy?[]:[{label:(0,m.__)(&quot;Method&quot;,&quot;redirection&quot;),value:&quot;method&quot;,options:[{label:&quot;GET&quot;,value:&quot;get&quot;},{label:&quot;POST&quot;,value:&quot;post&quot;},{label:&quot;HEAD&quot;,value:&quot;head&quot;}]},{label:(0,m.__)(&quot;HTTP Status Code&quot;,&quot;redirection&quot;),value:&quot;http&quot;,options:Pj().filter(e=&gt;parseInt(e.value,10)&gt;=400&amp;&amp;parseInt(e.value,10)&lt;500)}],headers:Nj(v.groupBy).filter(e=&gt;function(e,t){return t.displaySelected.includes(e)}(e.name,v)),validateDisplay:SS},w={onChangePage:e=&gt;{t({page:e,selected:[],selectAll:!1})},onBulk:function(t){if(0===e.selected.length&amp;&amp;!e.selectAll)return;if(&quot;delete&quot;===t){const t=e.selectAll?(0,m.__)(&quot;Are you sure you want to delete all items?&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Are you sure you want to delete the selected items?&quot;,&quot;redirection&quot;);if(!window.confirm(t))return}const n=e.groupBy?{groupBy:e.groupBy}:{};&quot;delete&quot;===t?e.selectAll?s.mutate({action:&quot;delete&quot;,items:[],params:pm({...n,global:!0,filterBy:e.filterBy})}):s.mutate({action:&quot;delete&quot;,items:e.selected,params:n}):o(Mj(t,e.selected))},onGroup:e=&gt;{t({groupBy:e,selected:[],selectAll:!1})},onSetOrder:(e,n)=&gt;{t({orderby:&quot;date&quot;===e?&quot;&quot;:e,direction:n})},onFilter:y,onSetDisplay:(e,n)=&gt;{t({displayType:e,displaySelected:n})},onSelect:r=&gt;{if(&quot;boolean&quot;==typeof r)n(r?u.map(e=&gt;e.id):[]);else if(&quot;number&quot;==typeof r||&quot;string&quot;==typeof r){const n=Array.isArray(e.selected)?e.selected:[],i=n.includes(r)?n.filter(e=&gt;e!==r):[...n,r];t({selected:i,selectAll:!1})}else n(r)},onSetAll:e=&gt;{t({selected:e?u.map(e=&gt;e.id):[],selectAll:e})}};return(0,d.jsxs)(d.Fragment,{children:[i&amp;&amp;(0,d.jsx)(xS,{onClose:()=&gt;o(null),redirect:i,rows:u}),(0,d.jsx)(Rw,{logOptions:x,logActions:w,table:b,status:h,total:p,rows:u,saving:[],getRow:(e,t)=&gt;function(e,t){const{created:n,url:r,agent:i,referrer:o,ip:s,domain:a,request_method:l,http_code:c,count:u}=e,p=t?.table?.filterBy||{},h=p.url||p[&quot;url-exact&quot;]||&quot;&quot;;return[{name:&quot;date&quot;,content:n??&quot;&quot;},{name:&quot;method&quot;,content:l?l.toUpperCase():&quot;&quot;},{name:&quot;domain&quot;,content:a??&quot;&quot;},{name:&quot;url&quot;,content:r?(0,d.jsx)(z,{url:jS(e),children:(0,d.jsx)(ej(),{searchWords:[h],textToHighlight:r,autoEscape:!0})}):&quot;&quot;},{name:&quot;code&quot;,content:c??&quot;&quot;},{name:&quot;referrer&quot;,content:o?(0,d.jsx)(ej(),{searchWords:[p.referrer||&quot;&quot;],textToHighlight:o,autoEscape:!0}):&quot;&quot;},{name:&quot;agent&quot;,content:i?(0,d.jsx)(ej(),{searchWords:[p.agent||&quot;&quot;],textToHighlight:i,autoEscape:!0}):&quot;&quot;},{name:&quot;ip&quot;,content:s?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;a&quot;,{href:&quot;https://redirect.li/ip/?ip=&quot;+encodeURIComponent(s),children:(0,d.jsx)(ej(),{searchWords:[p.ip||&quot;&quot;],textToHighlight:s,autoEscape:!0})}),&quot;&quot;===t?.table?.groupBy&amp;&amp;t?.onFilter&amp;&amp;(0,d.jsx)(Lw,{actions:[(0,d.jsx)(Mw,{onClick:()=&gt;{t.onFilter?.({ip:s})},children:(0,m.__)(&quot;Filter by IP&quot;,&quot;redirection&quot;)},&quot;filter-ip&quot;)]})]}):&quot;&quot;},{name:&quot;count&quot;,content:u?new Intl.NumberFormat(window.Redirectioni10n.locale).format(u):&quot;&quot;}]}(e,{...t,onFilter:y}),getRowActions:(e,t)=&gt;(0,d.jsx)(wS,{disabled:!1,row:e,onCreate:f,onDelete:g,table:t.table}),renderTableActions:()=&gt;Nw(Dw)&amp;&amp;function(e){const{filterBy:t,groupBy:n}=e;return void 0!==t.url||!n&amp;&amp;0===Object.keys(t).length}(v)?(0,d.jsx)(Yw,{enabled:u.length&gt;0,children:null}):(0,d.jsx)(d.Fragment,{})})]})},CS=&quot;redirect&quot;,TS=({logType:e,title:t})=&gt;{const n=function(e){return e===CS?&quot;log&quot;:&quot;404&quot;===e?&quot;404s&quot;:e}(e);return(0,d.jsxs)(&quot;form&quot;,{method:&quot;post&quot;,action:Redirectioni10n.pluginRoot+&quot;&amp;sub=&quot;+n,children:[(0,d.jsx)(&quot;input&quot;,{type:&quot;hidden&quot;,name:&quot;_wpnonce&quot;,value:jt.nonceMiddleware?.nonce}),(0,d.jsx)(&quot;input&quot;,{type:&quot;hidden&quot;,name:&quot;export-csv&quot;,value:&quot;&quot;}),(0,d.jsx)(&quot;input&quot;,{className:&quot;button&quot;,type:&quot;submit&quot;,name:&quot;&quot;,value:t})]})},ES=function(e){const{plugin:t,doImport:n}=e,{name:r,total:i}=t;return(0,d.jsxs)(&quot;div&quot;,{className:&quot;plugin-importer&quot;,children:[(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;strong&quot;,{children:r}),&quot; (&quot;,/* translators: %d is the number of redirects that can be imported */ /* translators: %d is the number of redirects that can be imported */
(0,m.sprintf)((0,m.__)(&quot;total = %d&quot;,&quot;redirection&quot;),i),&quot;)&quot;]}),(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;{n(t)},className:&quot;button-secondary&quot;,children:(0,m.sprintf)(
// translators: %s is the plugin name
// translators: %s is the plugin name
(0,m.__)(&quot;Import from %s&quot;,&quot;redirection&quot;),r)})]})},PS=function(){const[e,t]=(0,l.useState)(0),[n,r]=(0,l.useState)(!1),[i,o]=(0,l.useState)(&quot;all&quot;),[s,a]=(0,l.useState)(&quot;json&quot;),[c,u]=(0,l.useState)(!1),[p,f]=(0,l.useState)(!1),[g,v]=(0,l.useState)(!1),_=(0,l.useRef)(null),{data:b}=hm({}),x=b?.items??[],{data:w=[]}=ud(),j=function(e){const t=h(),{addNotice:n,addError:r,incrementProgress:i,decrementProgress:o}=cd();return pt({mutationFn:async({file:e,groupId:t})=&gt;{i();try{return await jt(Mt(String(t),e))}catch(e){throw o(),sd(e)}},onSuccess:e=&gt;{o(),n(`Imported ${e?.imported||0} redirects`),t.invalidateQueries({queryKey:ad.redirects.lists()})},onError:e=&gt;{r(e.message||&quot;Import failed&quot;)},...e})}({onSuccess:e=&gt;{f(e?.imported||0),u(!1)}}),S=dd(),k=function(e){const{addError:t,incrementProgress:n,decrementProgress:r}=cd();return pt({mutationFn:async({moduleId:e,format:t})=&gt;{n();try{return(await jt(Bt(e,t))).data}catch(e){throw r(),sd(e)}},onSuccess:()=&gt;{r()},onError:e=&gt;{t(e.message||&quot;Export failed&quot;)},...e})}({onSuccess:e=&gt;{v(e)}});let C=&quot;idle&quot;;k.isPending?C=&quot;loading&quot;:k.isSuccess&amp;&amp;(C=&quot;success&quot;);let T=&quot;idle&quot;;j.isPending||S.isPending?T=&quot;loading&quot;:(j.isSuccess||S.isSuccess)&amp;&amp;(T=&quot;success&quot;),(0,l.useEffect)(()=&gt;()=&gt;{u(!1),f(!1),v(!1)},[]);const E=e=&gt;{e.preventDefault(),e.stopPropagation(),&quot;loading&quot;!==T&amp;&amp;r(!0)},P=e=&gt;{e.preventDefault(),e.stopPropagation(),r(!1)},O=e=&gt;{e.preventDefault(),e.stopPropagation()},R=e=&gt;{if(e.preventDefault(),e.stopPropagation(),r(!1),&quot;loading&quot;===T)return;const n=e.dataTransfer.files;n.length&gt;0&amp;&amp;(u(n[0]||!1),x.length&gt;0&amp;&amp;x[0]&amp;&amp;t(x[0].id))},N=e=&gt;{const n=e.target.files;n&amp;&amp;n.length&gt;0&amp;&amp;(u(n[0]||!1),x[0]&amp;&amp;t(x[0].id))},A=()=&gt;{_.current?.click()},I=()=&gt;{c&amp;&amp;j.mutate({file:c,groupId:e})},z=()=&gt;{r(!1),u(!1),f(!1),v(!1),_.current&amp;&amp;(_.current.value=&quot;&quot;)},F=e=&gt;{const{target:n}=e,{name:r,value:i}=n;&quot;group&quot;===r?t(parseInt(i,10)):&quot;module&quot;===r?(o(i),&quot;everything&quot;===i&amp;&amp;a(&quot;json&quot;)):&quot;format&quot;===r&amp;&amp;a(i)},D=e=&gt;{confirm((0,m.sprintf)(
// translators: %s is the plugin name
// translators: %s is the plugin name
(0,m.__)(&quot;Are you sure you want to import from %s?&quot;,&quot;redirection&quot;),e.name))&amp;&amp;S.mutate(e.id)};return(0,d.jsxs)(&quot;div&quot;,{className:&quot;import&quot;,children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Import&quot;,&quot;redirection&quot;)}),(()=&gt;{const t=y({dropzone:!0,&quot;dropzone-dropped&quot;:!1!==c,&quot;dropzone-importing&quot;:&quot;loading&quot;===T,&quot;dropzone-hover&quot;:n});let r;return r=&quot;loading&quot;===T?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Importing&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;code&quot;,{children:c&amp;&amp;c.name})}),(0,d.jsx)(&quot;div&quot;,{className:&quot;is-placeholder&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-placeholder__loading&quot;})})]}):&quot;success&quot;===T&amp;&amp;!1!==p&amp;&amp;!1===c?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Finished importing&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;Total redirects imported:&quot;,&quot;redirection&quot;),&quot; &quot;,p]}),0===p&amp;&amp;(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Double-check the file is the correct format!&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary&quot;,onClick:z,children:(0,m.__)(&quot;OK&quot;,&quot;redirection&quot;)})]}):!1===c?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Import a CSV, .htaccess, or JSON file.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Click &#039;Add File&#039; or drag and drop here.&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,className:&quot;button-secondary&quot;,onClick:A,children:(0,m.__)(&quot;Add File&quot;,&quot;redirection&quot;)})]}):(()=&gt;{const t=c&amp;&amp;&quot;application/json&quot;===c.type;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;File selected&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,d.jsx)(&quot;code&quot;,{children:c&amp;&amp;c.name})}),!t&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;groups&quot;,children:[(0,m.__)(&quot;Import to group&quot;,&quot;redirection&quot;),&quot; &quot;,(0,d.jsx)(Sd,{items:fp(x),name:&quot;group&quot;,value:String(e),onChange:F})]}),(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary&quot;,onClick:I,children:(0,m.__)(&quot;Upload&quot;,&quot;redirection&quot;)}),&quot; &quot;,&quot; &quot;,(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary&quot;,onClick:z,children:(0,m.__)(&quot;Cancel&quot;,&quot;redirection&quot;)})]})})(),(0,d.jsxs)(&quot;div&quot;,{className:t,onDragEnter:E,onDragLeave:P,onDragOver:O,onDrop:R,children:[(0,d.jsx)(&quot;input&quot;,{ref:_,type:&quot;file&quot;,style:{display:&quot;none&quot;},onChange:N,accept:&quot;.json,.csv,.htaccess&quot;}),r]})})(),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;All imports will be appended to the current database - nothing is merged.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;inline-notice notice-warning&quot;,children:[(0,d.jsx)(&quot;p&quot;,{children:U((0,m.__)(&quot;{{strong}}CSV file format{{/strong}}: {{code}}source URL, target URL{{/code}} - and can be optionally followed with {{code}}regex, http code{{/code}} ({{code}}regex{{/code}} - 0 for no, 1 for yes).&quot;,&quot;redirection&quot;),{code:(0,d.jsx)(&quot;code&quot;,{}),strong:(0,d.jsx)(&quot;strong&quot;,{})})}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&#039;CSV does not include all information, and everything is imported/exported as &quot;URL only&quot; matches. Use the JSON format for a full set of data.&#039;,&quot;redirection&quot;)})]}),(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Export&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Export to CSV, Apache .htaccess, Nginx, or Redirection JSON. The JSON format contains full information, and other formats contain partial information appropriate to the format.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;p&quot;,{className:&quot;redirect-export_buttons&quot;,children:[(0,d.jsxs)(&quot;select&quot;,{name:&quot;module&quot;,onChange:F,value:i,children:[(0,d.jsx)(&quot;option&quot;,{value:&quot;0&quot;,children:(0,m.__)(&quot;Everything&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;option&quot;,{value:&quot;1&quot;,children:(0,m.__)(&quot;WordPress redirects&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;option&quot;,{value:&quot;2&quot;,children:(0,m.__)(&quot;Apache redirects&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;option&quot;,{value:&quot;3&quot;,children:(0,m.__)(&quot;Nginx redirects&quot;,&quot;redirection&quot;)})]}),(0,d.jsxs)(&quot;select&quot;,{name:&quot;format&quot;,onChange:F,value:s,children:[(0,d.jsx)(&quot;option&quot;,{value:&quot;json&quot;,children:(0,m.__)(&quot;Complete data (JSON)&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;option&quot;,{value:&quot;csv&quot;,children:(0,m.__)(&quot;CSV&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;option&quot;,{value:&quot;apache&quot;,children:(0,m.__)(&quot;Apache .htaccess&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;option&quot;,{value:&quot;nginx&quot;,children:(0,m.__)(&quot;Nginx rewrite rules&quot;,&quot;redirection&quot;)})]}),(0,d.jsx)(&quot;button&quot;,{className:&quot;button-primary&quot;,onClick:()=&gt;{k.mutate({moduleId:i,format:s})},children:(0,m.__)(&quot;View&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;button&quot;,{className:&quot;button-secondary&quot;,onClick:()=&gt;{window.location.href=mp(i,s)},children:(0,m.__)(&quot;Download&quot;,&quot;redirection&quot;)})]}),&quot;loading&quot;===C&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;loader-wrapper loader-textarea&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;wpl-placeholder__loading&quot;})}),g&amp;&amp;&quot;loading&quot;!==C&amp;&amp;(M=g,(0,d.jsxs)(&quot;div&quot;,{children:[(0,d.jsx)(&quot;textarea&quot;,{className:&quot;module-export&quot;,rows:14,readOnly:!0,value:M}),(0,d.jsx)(&quot;input&quot;,{className:&quot;button-secondary&quot;,type:&quot;submit&quot;,value:(0,m.__)(&quot;Close&quot;,&quot;redirection&quot;),onClick:z})]})),(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Export Logs&quot;,&quot;redirection&quot;)}),(0,d.jsx)(TS,{logType:CS,title:(0,m.__)(&quot;Export redirect&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;br&quot;,{}),(0,d.jsx)(TS,{logType:&quot;404&quot;,title:(0,m.__)(&quot;Export 404&quot;,&quot;redirection&quot;)}),w.length&gt;0&amp;&amp;(L=w,(0,d.jsxs)(&quot;div&quot;,{children:[(0,d.jsx)(&quot;h3&quot;,{children:(0,m.__)(&quot;Plugin Importers&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;The following redirect plugins were detected on your site and can be imported from.&quot;,&quot;redirection&quot;)}),L.map((e,t)=&gt;(0,d.jsx)(ES,{plugin:e,doImport:D},t))]}))]});var L,M},OS=()=&gt;[{value:&quot;name&quot;,label:(0,m.__)(&quot;Name&quot;,&quot;redirection&quot;)},{value:&quot;module&quot;,label:(0,m.__)(&quot;Module&quot;,&quot;redirection&quot;)},{value:&quot;status&quot;,label:(0,m.__)(&quot;Status&quot;,&quot;redirection&quot;)},{value:&quot;redirects&quot;,label:(0,m.__)(&quot;Redirects&quot;,&quot;redirection&quot;)}],RS=e=&gt;[{label:(0,m.__)(&quot;Status&quot;,&quot;redirection&quot;),value:&quot;status&quot;,options:[{label:(0,m.__)(&quot;Enabled&quot;,&quot;redirection&quot;),value:&quot;enabled&quot;},{label:(0,m.__)(&quot;Disabled&quot;,&quot;redirection&quot;),value:&quot;disabled&quot;}]},{label:(0,m.__)(&quot;Module&quot;,&quot;redirection&quot;),value:&quot;module&quot;,options:e}];function NS(e){const t=h(),{incrementProgress:n,decrementProgress:r,addNotice:i,addError:o}=cd(),{setGroupsTable:s}=Gx();return pt({mutationFn:async({action:e,items:t,params:i={}})=&gt;{n();try{return await jt(Qt(e,{items:t},i))}catch(e){throw r(),sd(e)}},onSuccess:(e,n)=&gt;{r();let o=n.action;&quot;enable&quot;===n.action?o=&quot;enabled&quot;:&quot;disable&quot;===n.action&amp;&amp;(o=&quot;disabled&quot;),i(`Groups ${o}`),s({page:0,selected:[],selectAll:!1}),t.invalidateQueries({queryKey:ad.groups.lists()})},onError:e=&gt;{o(e.message||&quot;Failed to perform group action&quot;)},...e})}const AS=[{value:1,label:&quot;WordPress&quot;},{value:2,label:&quot;Apache&quot;},{value:3,label:&quot;Nginx&quot;}];function IS(){return AS}const zS=function(e){const{disabled:t}=e,[n,r]=(0,l.useState)(&quot;&quot;),[i,o]=(0,l.useState)(1),{mutate:s}=function(){const e=h(),{incrementProgress:t,decrementProgress:n,addNotice:r,addError:i}=cd();return pt({mutationFn:async e=&gt;{t();try{const t=await jt(Ft(e));return am.parse(t).items[0]??null}catch(e){throw n(),sd(e)}},onSuccess:()=&gt;{n(),r(&quot;Group created&quot;),e.invalidateQueries({queryKey:ad.groups.lists()})},onError:e=&gt;{i(e.message||&quot;Failed to create group&quot;)}})}();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Add Group&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Use groups to organise your redirects. Groups are assigned to a module, which affects how the redirects in that group work. If you are unsure then stick to the WordPress module.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;form&quot;,{onSubmit:function(e){e.preventDefault(),s({name:n,moduleId:i,position:0}),r(&quot;&quot;)},children:[(0,d.jsx)(&quot;table&quot;,{className:&quot;form-table redirect-groups&quot;,children:(0,d.jsx)(&quot;tbody&quot;,{children:(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Name&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;td&quot;,{children:[(0,d.jsx)(&quot;input&quot;,{size:30,className:&quot;regular-text&quot;,type:&quot;text&quot;,name:&quot;name&quot;,value:n,onChange:e=&gt;r(e.target.value),disabled:t}),(0,d.jsx)(Sd,{name:&quot;group&quot;,value:String(i),onChange:e=&gt;o(parseInt(e.target.value,10)),items:IS().map(e=&gt;({label:e.label,value:String(e.value)})),disabled:t}),&quot; &quot;,(0,d.jsx)(&quot;input&quot;,{className:&quot;button-primary&quot;,type:&quot;submit&quot;,name:&quot;add&quot;,value:&quot;Add&quot;,disabled:t||&quot;&quot;===n})]})]})})}),2===i&amp;&amp;(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Note that you will need to set the Apache module path in your Redirection options.&quot;,&quot;redirection&quot;)})]})]})},FS=function(e){const{disabled:t,rowParams:n,row:r}=e,{mutate:i}=NS(),{setRowMode:o,rowMode:s}=n,{id:a,enabled:l}=r,c=[];return&quot;edit&quot;===s?null:(Nw(Fw)&amp;&amp;c.push((0,d.jsx)(Mw,{onClick:()=&gt;o(&quot;edit&quot;!==s&amp;&amp;&quot;edit&quot;),children:(0,m.__)(&quot;Edit&quot;,&quot;redirection&quot;)},&quot;0&quot;)),Nw(&quot;redirection_cap_group_delete&quot;)&amp;&amp;c.push((0,d.jsx)(Mw,{onClick:()=&gt;{window.confirm((0,m.__)(&quot;Are you sure you want to delete this item?&quot;,&quot;redirection&quot;))&amp;&amp;i({action:&quot;delete&quot;,items:[a]})},children:(0,m.__)(&quot;Delete&quot;,&quot;redirection&quot;)},&quot;1&quot;)),Nw(Iw)&amp;&amp;c.push((0,d.jsx)(Mw,{href:Redirectioni10n.pluginRoot+&quot;&amp;&quot;+encodeURIComponent(&quot;filterby[group]&quot;)+&quot;=&quot;+a,children:(0,m.__)(&quot;View Redirects&quot;,&quot;redirection&quot;)},&quot;2&quot;)),Nw(Fw)&amp;&amp;(l?c.push((0,d.jsx)(Mw,{onClick:()=&gt;i({action:&quot;disable&quot;,items:[a]}),children:(0,m.__)(&quot;Disable&quot;,&quot;redirection&quot;)},&quot;3&quot;)):c.push((0,d.jsx)(Mw,{onClick:()=&gt;i({action:&quot;enable&quot;,items:[a]}),children:(0,m.__)(&quot;Enable&quot;,&quot;redirection&quot;)},&quot;3&quot;))),(0,d.jsx)(Lw,{disabled:t,actions:c}))},DS=function({row:e}){const{enabled:t}=e;return t?(0,d.jsx)(&quot;div&quot;,{className:&quot;redirect-status redirect-status__enabled&quot;,children:&quot;✓&quot;}):(0,d.jsx)(&quot;div&quot;,{className:&quot;redirect-status redirect-status__disabled&quot;,children:&quot;×&quot;})},LS=function({row:e,filters:t}){const{enabled:n,name:r}=e;return n?(0,d.jsx)(ej(),{searchWords:[t.name],textToHighlight:r,autoEscape:!0}):(0,d.jsx)(&quot;s&quot;,{children:r})},MS=function({row:e}){const{module_id:t}=e,n=function(e){const t=AS.find(t=&gt;t.value===e);return t?t.label:&quot;WordPress&quot;}(t),{setGroupsTable:r}=Gx();return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)($f,{onClick:()=&gt;r({filterBy:{module:String(t)},page:0}),title:(0,m.sprintf)(
// translators: %(type)s is the module type name
// translators: %(type)s is the module type name
(0,m.__)(&quot;Filter on: %(type)s&quot;,&quot;redirection&quot;),{type:n}),children:n})})},$S=function(e){const{group:t,onCancel:n}=e,[r,i]=(0,l.useState)(t.name),[o,s]=(0,l.useState)(t.module_id),{mutate:a}=function(){const e=h(),{incrementProgress:t,decrementProgress:n,addNotice:r,addError:i}=cd();return pt({mutationFn:async e=&gt;{t();try{const{id:t,...n}=e,r=await jt(zt(t,n));return lm.parse(r).item}catch(e){throw n(),sd(e)}},onSuccess:t=&gt;{n(),r(&quot;Group saved&quot;),e.invalidateQueries({queryKey:ad.groups.lists()}),e.invalidateQueries({queryKey:ad.groups.detail(t.id)})},onError:e=&gt;{i(e.message||&quot;Failed to update group&quot;)}})}();return(0,d.jsx)(&quot;form&quot;,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),n(),a({id:t.id,name:r,moduleId:o})},children:(0,d.jsx)(&quot;table&quot;,{className:&quot;edit-groups&quot;,children:(0,d.jsxs)(&quot;tbody&quot;,{children:[(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Name&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;td&quot;,{children:(0,d.jsx)(&quot;input&quot;,{type:&quot;text&quot;,className:&quot;regular-text&quot;,name:&quot;name&quot;,value:r,onChange:e=&gt;i(e.target.value)})})]}),(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{children:(0,m.__)(&quot;Module&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;td&quot;,{children:(0,d.jsx)(Sd,{name:&quot;module_id&quot;,value:String(o),onChange:e=&gt;s(parseInt(e.target.value,10)),items:IS().map(e=&gt;({label:e.label,value:String(e.value)}))})})]}),(0,d.jsxs)(&quot;tr&quot;,{children:[(0,d.jsx)(&quot;th&quot;,{}),(0,d.jsxs)(&quot;td&quot;,{children:[(0,d.jsxs)(&quot;div&quot;,{className:&quot;table-actions&quot;,children:[(0,d.jsx)(&quot;input&quot;,{className:&quot;button-primary&quot;,type:&quot;submit&quot;,name:&quot;save&quot;,value:(0,m.__)(&quot;Save&quot;,&quot;redirection&quot;)}),&quot; &quot;,(0,d.jsx)(&quot;input&quot;,{className:&quot;button-secondary&quot;,type:&quot;button&quot;,name:&quot;cancel&quot;,value:(0,m.__)(&quot;Cancel&quot;,&quot;redirection&quot;),onClick:n})]}),2===o&amp;&amp;(0,d.jsxs)(&quot;p&quot;,{children:[(0,d.jsx)(&quot;br&quot;,{}),(0,m.__)(&quot;Note that you will need to set the Apache module path in your Redirection options.&quot;,&quot;redirection&quot;)]})]})]})]})})})};function US(e){return e.includes(&quot;name&quot;)?e:e.concat([&quot;name&quot;])}const BS=function(){const e=Gx(e=&gt;e.groups),{setGroupsTable:t,setGroupsSelected:n}=Gx();Xx({table:e,setTable:t,allowedOrder:[&quot;name&quot;,&quot;id&quot;],allowedFilters:[&quot;name&quot;,&quot;status&quot;,&quot;module&quot;],defaultOrder:&quot;name&quot;,pageName:&quot;groups&quot;});const r=NS(),{data:i,isLoading:o}=hm(e),s=i?.items??[],a=i?.total??0,l=o?&quot;loading&quot;:&quot;complete&quot;,c={displayFilters:OS(),displayGroups:[{value:&quot;standard&quot;,label:(0,m.__)(&quot;Standard Display&quot;,&quot;redirection&quot;),grouping:[&quot;name&quot;,&quot;module&quot;,&quot;redirects&quot;]},{value:&quot;minimal&quot;,label:(0,m.__)(&quot;Compact Display&quot;,&quot;redirection&quot;),grouping:[&quot;name&quot;]},{value:&quot;all&quot;,label:(0,m.__)(&quot;Display All&quot;,&quot;redirection&quot;),grouping:OS().map(e=&gt;e.value)}],searchOptions:[{name:&quot;name&quot;,title:(0,m.__)(&quot;Search&quot;,&quot;redirection&quot;)}],groupBy:[],bulk:[{id:&quot;delete&quot;,name:(0,m.__)(&quot;Delete&quot;,&quot;redirection&quot;)},{id:&quot;enable&quot;,name:(0,m.__)(&quot;Enable&quot;,&quot;redirection&quot;)},{id:&quot;disable&quot;,name:(0,m.__)(&quot;Disable&quot;,&quot;redirection&quot;)}],rowFilters:RS(IS().map(e=&gt;({label:e.label,value:`${e.value}`}))),headers:[{name:&quot;status&quot;,title:(0,m.__)(&quot;Status&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;name&quot;,title:(0,m.__)(&quot;Name&quot;,&quot;redirection&quot;),primary:!0},{name:&quot;redirects&quot;,title:(0,m.__)(&quot;Redirects&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;module&quot;,title:(0,m.__)(&quot;Module&quot;,&quot;redirection&quot;),sortable:!1}].filter(t=&gt;function(e,t){return t.displaySelected?.includes(e)??!1}(t.name,e)),validateDisplay:US},u={onChangePage:e=&gt;{t({page:e,selected:[],selectAll:!1})},onBulk:t=&gt;{if(0===e.selected.length&amp;&amp;!e.selectAll)return;if(&quot;delete&quot;===t){const t=e.selectAll?(0,m.__)(&quot;Are you sure you want to delete all items?&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Are you sure you want to delete the selected items?&quot;,&quot;redirection&quot;);if(!window.confirm(t))return}const n=e.selected;if(e.selectAll){const n={global:!0,filterBy:e.filterBy};r.mutate({action:t,items:[],params:n})}else r.mutate({action:t,items:n})},onSelect:r=&gt;{const i=e.selected;&quot;boolean&quot;==typeof r?n(r?s.map(e=&gt;e.id):[]):Array.isArray(r)?n(r):i.includes(r)?t({selected:i.filter(e=&gt;e!==r),selectAll:!1}):t({selected:[...i,r],selectAll:!1})},onSetOrder:(e,n)=&gt;{t({orderby:e,direction:n})},onFilter:e=&gt;{t({filterBy:e,page:0,selected:[],selectAll:!1})},onSetDisplay:(e,n)=&gt;{t({displayType:e,displaySelected:n})},onSetAll:e=&gt;{t({selected:e?s.map(e=&gt;e.id):[],selectAll:e})},onGroup:e=&gt;{t({groupBy:e,page:0,selected:[],selectAll:!1})}},p={page:e.page,perPage:e.per_page,orderBy:e.orderby,direction:e.direction,selected:e.selected,selectAll:e.selectAll??!1,filter:&quot;&quot;,filterBy:e.filterBy??{},displayType:e.displayType??&quot;standard&quot;,displaySelected:e.displaySelected??[],groupBy:e.groupBy??&quot;&quot;};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Rw,{logOptions:c,logActions:u,table:p,status:l,total:a,rows:s,saving:[],getRow:(e,t)=&gt;function(e,t){const{redirects:n}=e,{rowMode:r,setRowMode:i}=t;return[{name:&quot;status&quot;,content:(0,d.jsx)(DS,{row:e})},{name:&quot;name&quot;,content:&quot;edit&quot;===r?(0,d.jsx)($S,{group:e,onCancel:()=&gt;i(!1)}):(0,d.jsx)(LS,{row:e,filters:t.table.filterBy})},{name:&quot;redirects&quot;,content:new Intl.NumberFormat(window.Redirectioni10n.locale).format(n)},{name:&quot;module&quot;,content:(0,d.jsx)(MS,{row:e})}]}(e,t),getRowActions:(e,t)=&gt;(0,d.jsx)(FS,{disabled:!1,row:e,rowParams:t})}),Nw(Fw)&amp;&amp;(0,d.jsx)(zS,{disabled:!1})]})},ZS=()=&gt;[{value:&quot;source&quot;,label:(0,m.__)(&quot;Source&quot;,&quot;redirection&quot;)},{value:&quot;flags&quot;,label:(0,m.__)(&quot;URL options&quot;,&quot;redirection&quot;)},{value:&quot;query&quot;,label:(0,m.__)(&quot;Query Parameters&quot;,&quot;redirection&quot;)},{value:&quot;title&quot;,label:(0,m.__)(&quot;Title&quot;,&quot;redirection&quot;)},{value:&quot;target&quot;,label:(0,m.__)(&quot;Target&quot;,&quot;redirection&quot;)},{value:&quot;code&quot;,label:(0,m.__)(&quot;HTTP code&quot;,&quot;redirection&quot;)},{value:&quot;match_type&quot;,label:(0,m.__)(&quot;Match Type&quot;,&quot;redirection&quot;)},{value:&quot;position&quot;,label:(0,m.__)(&quot;Position&quot;,&quot;redirection&quot;)},{value:&quot;last_count&quot;,label:(0,m.__)(&quot;Hits&quot;,&quot;redirection&quot;)},{value:&quot;last_access&quot;,label:(0,m.__)(&quot;Last Access&quot;,&quot;redirection&quot;)},{value:&quot;status&quot;,label:(0,m.__)(&quot;Status&quot;,&quot;redirection&quot;)},{value:&quot;action_type&quot;,label:(0,m.__)(&quot;Action Type&quot;,&quot;redirection&quot;)},{value:&quot;group&quot;,label:(0,m.__)(&quot;Group&quot;,&quot;redirection&quot;)}],qS=function(e){const{addTop:t}=e,n=y({&quot;add-new&quot;:!0,edit:!0,addTop:t});return(0,d.jsxs)(d.Fragment,{children:[!t&amp;&amp;Nw(zw)&amp;&amp;(0,d.jsx)(&quot;h2&quot;,{children:(0,m.__)(&quot;Add new redirection&quot;,&quot;redirection&quot;)}),(0,d.jsx)(&quot;div&quot;,{className:n,children:(0,d.jsx)(bS,{item:Sj(&quot;&quot;,0,e.defaultFlags),saveButton:(0,m.__)(&quot;Add Redirect&quot;,&quot;redirection&quot;),autoFocus:!!t})})]})},HS=function(e){const{disabled:t,rowParams:n,row:r}=e,{mutate:i}=vS(),{mutate:o}=_S(&quot;disable&quot;),{mutate:s}=_S(&quot;enable&quot;),{setRowMode:a,rowMode:l}=n,{id:c,enabled:u,regex:p,action_type:h,match_type:f}=r,g=[];return&quot;edit&quot;===l?null:(u&amp;&amp;Nw(zw)&amp;&amp;g.push((0,d.jsx)(Mw,{onClick:()=&gt;a(&quot;edit&quot;),children:(0,m.__)(&quot;Edit&quot;,&quot;redirection&quot;)},&quot;1&quot;)),Nw(&quot;redirection_cap_redirect_delete&quot;)&amp;&amp;g.push((0,d.jsx)(Mw,{onClick:()=&gt;{window.confirm((0,m.__)(&quot;Are you sure you want to delete this item?&quot;,&quot;redirection&quot;))&amp;&amp;i({items:[c]})},children:(0,m.__)(&quot;Delete&quot;,&quot;redirection&quot;)},&quot;2&quot;)),Nw(zw)&amp;&amp;(u?g.push((0,d.jsx)(Mw,{onClick:()=&gt;o({items:[c]}),children:(0,m.__)(&quot;Disable&quot;,&quot;redirection&quot;)},&quot;3&quot;)):g.push((0,d.jsx)(Mw,{onClick:()=&gt;s({items:[c]}),children:(0,m.__)(&quot;Enable&quot;,&quot;redirection&quot;)},&quot;4&quot;))),!u||p||&quot;url&quot;!==h||&quot;url&quot;!==f&amp;&amp;&quot;server&quot;!==f||g.push((0,d.jsx)(Mw,{onClick:()=&gt;a(&quot;check&quot;),children:(0,m.__)(&quot;Check Redirect&quot;,&quot;redirection&quot;)},&quot;5&quot;)),(0,d.jsx)(Lw,{disabled:t,actions:g}))},WS=function({row:e}){const{enabled:t}=e;return t?(0,d.jsx)(&quot;div&quot;,{className:&quot;redirect-status redirect-status__enabled&quot;,children:&quot;✓&quot;}):(0,d.jsx)(&quot;div&quot;,{className:&quot;redirect-status redirect-status__disabled&quot;,children:&quot;×&quot;})},GS=(e,t)=&gt;e.includes(t);function VS(e,t,n){return n===vj?e.server+t:t}function QS(e,t){const{match_type:n,regex:r,action_data:i,url:o}=e;return r?t:(0,d.jsx)(z,{url:VS(i,o,n),children:t})}function KS(e,t){return t?e:(0,d.jsx)(&quot;s&quot;,{children:e})}const JS=function(e){const{displaySelected:t,row:n,filters:r}=e,{match_type:i,url:o,title:s,action_data:a,enabled:l}=n,c=(0,d.jsx)(ej(),{searchWords:[r.url||&quot;&quot;],textToHighlight:VS(a,o,i),autoEscape:!0}),u=(0,d.jsx)(ej(),{searchWords:[r.title||&quot;&quot;],textToHighlight:s,autoEscape:!0});return GS(t,&quot;title&quot;)&amp;&amp;!GS(t,&quot;source&quot;)?(0,d.jsx)(&quot;p&quot;,{children:QS(n,KS(s?u:c,l))}):(0,d.jsxs)(d.Fragment,{children:[GS(t,&quot;title&quot;)&amp;&amp;s&amp;&amp;(0,d.jsx)(&quot;p&quot;,{children:QS(n,KS(u,l))}),GS(t,&quot;source&quot;)&amp;&amp;c&amp;&amp;(0,d.jsx)(&quot;p&quot;,{children:QS(n,KS(c,l))})]})},YS=function(e){const{row:t,filters:n}=e,{match_type:r,action_data:i}=t;return r===uj&amp;&amp;i?(0,d.jsx)(&quot;span&quot;,{className:&quot;target&quot;,children:(0,d.jsx)(ej(),{searchWords:[n.target??&quot;&quot;],textToHighlight:i.url??&quot;&quot;,autoEscape:!0})}):null},XS=function({name:e,className:t,strikethrough:n}){return(0,d.jsx)($f,{className:y(&quot;redirect-source__flag&quot;,t),children:n?(0,d.jsx)(&quot;s&quot;,{children:e}):e})},ek=function(e){const{row:t,defaultFlags:n}=e,{match_data:{source:r}}=t;return(0,d.jsx)(d.Fragment,{children:Object.keys(r).filter(e=&gt;n[e]!==r[e]&amp;&amp;&quot;flag_query&quot;!==e).map(e=&gt;{const t=Oj().find(t=&gt;t.value===e);return(0,d.jsx)(XS,{name:t?.label||&quot;&quot;,className:&quot;redirect-source__&quot;+e,strikethrough:!!n[e]&amp;&amp;!r[e]},e)})})},tk=function(e){const{defaultFlags:t,row:n}=e,{match_data:{source:r}}=n;if(t.flag_query!==r.flag_query){let e;return e=&quot;ignore&quot;===r.flag_query?(0,m.__)(&quot;Ignore Query&quot;,&quot;redirection&quot;):&quot;pass&quot;===r.flag_query?(0,m.__)(&quot;Ignore &amp; Pass Query&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Exact Query&quot;,&quot;redirection&quot;),(0,d.jsx)(XS,{name:e})}return null},nk=function(e){const{row:t,table:n,defaultFlags:r}=e,{displaySelected:i}=n;return(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirect-column-wrap&quot;,children:[(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirect-source__details&quot;,children:[(0,d.jsx)(JS,{row:t,displaySelected:i,filters:n.filterBy}),GS(i,&quot;target&quot;)&amp;&amp;(0,d.jsx)(YS,{row:t,filters:n.filterBy})]}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirect-source__flags&quot;,children:[GS(i,&quot;flags&quot;)&amp;&amp;(0,d.jsx)(ek,{row:t,defaultFlags:r}),GS(i,&quot;query&quot;)&amp;&amp;(0,d.jsx)(tk,{row:t,defaultFlags:r})]})]})},rk=function(e){const{action_code:t,action_type:n}=e;return n===lj?(0,m.__)(&quot;pass&quot;,&quot;redirection&quot;):n===cj?&quot;-&quot;:t},ik=function(e){const{row:t,group:n}=e,r=n.rows.find(e=&gt;e.id===t.group_id);return r?(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirect-column-wrap&quot;,children:[r.name,&quot; &quot;,(0,d.jsx)($f,{children:r.moduleName})]}):null};function ok(e,t){const n=t.find(t=&gt;t.value===e);return n?n.label:&quot;-&quot;}function sk({url:e,desiredCode:t=0,desiredTarget:n=null}){return(0,d.jsx)(Nm,{url:e,desiredCode:t,desiredTarget:n})}function ak(e){let t=encodeURIComponent(e).replace(/%2F/gi,&quot;/&quot;);return t=t.replace(/%3F/gi,&quot;?&quot;),t=t.replace(/%3D/gi,&quot;=&quot;),t=t.replace(/%26/gi,&quot;&amp;&quot;),t}function lk(e){return e.includes(&quot;source&quot;)?e:e.concat([&quot;source&quot;])}function ck(e){return e.includes(&quot;title&quot;)||e.includes(&quot;source&quot;)?lk(e):lk(e.concat([&quot;title&quot;]))}function uk(e){return[{value:&quot;0&quot;,label:(0,m.__)(&quot;All groups&quot;,&quot;redirection&quot;)}].concat(fp(e))}const dk=function(){const e=Gx(e=&gt;e.redirects),t=Gx(e=&gt;e.redirectsAddTop),{setRedirectsTable:n,setRedirectsSelected:r}=Gx(),i=pe(e=&gt;e.values);Xx({table:e,setTable:n,allowedOrder:[&quot;id&quot;,&quot;url&quot;,&quot;last_access&quot;,&quot;last_count&quot;,&quot;position&quot;],allowedFilters:[&quot;url&quot;,&quot;url-exact&quot;,&quot;target&quot;,&quot;title&quot;,&quot;group&quot;,&quot;status&quot;,&quot;match&quot;,&quot;action&quot;],defaultOrder:&quot;id&quot;,pageName:&quot;redirect&quot;});const{data:o,isSuccess:s}=hm({}),a=o?.items??[],l=vS(),c=_S(&quot;enable&quot;),u=_S(&quot;disable&quot;),p=_S(&quot;reset&quot;),{data:h,isLoading:f,isSuccess:g}=function(e={},t){const n=pm(e);return ct({queryKey:ad.redirects.list(n),queryFn:async()=&gt;{try{const e=await jt(Ot(n));return om.parse(e)}catch(e){throw sd(e)}},...t})}(e),y=h?.items??[],v=h?.total??0;let _=ew;f?_=tw:g&amp;&amp;(_=nw);const b={flag_query:i?.flag_query??&quot;ignore&quot;,flag_case:i?.flag_case??!1,flag_trailing:i?.flag_trailing??!1,flag_regex:i?.flag_regex??!1},x=_===nw&amp;&amp;s&amp;&amp;Nw(zw),w=e=&gt;{n({filterBy:e,page:0,selected:[],selectAll:!1})},j={displayFilters:ZS(),displayGroups:[{value:&quot;standard&quot;,label:(0,m.__)(&quot;Standard Display&quot;,&quot;redirection&quot;),grouping:[&quot;last_count&quot;,&quot;last_access&quot;,&quot;source&quot;,&quot;target&quot;,&quot;code&quot;,&quot;title&quot;]},{value:&quot;minimal&quot;,label:(0,m.__)(&quot;Compact Display&quot;,&quot;redirection&quot;),grouping:[&quot;source&quot;,&quot;last_count&quot;,&quot;last_access&quot;,&quot;target&quot;]},{value:&quot;all&quot;,label:(0,m.__)(&quot;Display All&quot;,&quot;redirection&quot;),grouping:ZS().map(e=&gt;e.value)}],searchOptions:[{name:&quot;url&quot;,title:(0,m.__)(&quot;Search URL&quot;,&quot;redirection&quot;)},{name:&quot;target&quot;,title:(0,m.__)(&quot;Search target URL&quot;,&quot;redirection&quot;)},{name:&quot;title&quot;,title:(0,m.__)(&quot;Search title&quot;,&quot;redirection&quot;)}],groupBy:uk(a),bulk:[{id:&quot;delete&quot;,name:(0,m.__)(&quot;Delete&quot;,&quot;redirection&quot;)},{id:&quot;enable&quot;,name:(0,m.__)(&quot;Enable&quot;,&quot;redirection&quot;)},{id:&quot;disable&quot;,name:(0,m.__)(&quot;Disable&quot;,&quot;redirection&quot;)},{id:&quot;reset&quot;,name:(0,m.__)(&quot;Reset hits&quot;,&quot;redirection&quot;)}],rowFilters:[{label:(0,m.__)(&quot;Status&quot;,&quot;redirection&quot;),value:&quot;status&quot;,options:[{label:(0,m.__)(&quot;Enabled&quot;,&quot;redirection&quot;),value:&quot;enabled&quot;},{label:(0,m.__)(&quot;Disabled&quot;,&quot;redirection&quot;),value:&quot;disabled&quot;}]},{label:(0,m.__)(&quot;URL match&quot;,&quot;redirection&quot;),value:&quot;url-match&quot;,options:[{label:(0,m.__)(&quot;Regular Expression&quot;,&quot;redirection&quot;),value:&quot;regular&quot;},{label:(0,m.__)(&quot;Plain&quot;,&quot;redirection&quot;),value:&quot;plain&quot;}]},{label:(0,m.__)(&quot;Match Type&quot;,&quot;redirection&quot;),value:&quot;match&quot;,options:kj()},{label:(0,m.__)(&quot;Action Type&quot;,&quot;redirection&quot;),value:&quot;action&quot;,options:Cj()},{label:(0,m.__)(&quot;HTTP Status Code&quot;,&quot;redirection&quot;),value:&quot;http&quot;,options:Pj()},{label:(0,m.__)(&quot;Last Accessed&quot;,&quot;redirection&quot;),value:&quot;access&quot;,options:[{label:(0,m.__)(&quot;Never accessed&quot;,&quot;redirection&quot;),value:&quot;never&quot;},{label:(0,m.__)(&quot;Not accessed in last month&quot;,&quot;redirection&quot;),value:&quot;month&quot;},{label:(0,m.__)(&quot;Not accessed in last year&quot;,&quot;redirection&quot;),value:&quot;year&quot;}]}],headers:[{name:&quot;status&quot;,title:(0,m.__)(&quot;Status&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;source&quot;,title:(0,m.__)(&quot;URL&quot;,&quot;redirection&quot;),primary:!0},{name:&quot;match_type&quot;,title:(0,m.__)(&quot;Match Type&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;action_type&quot;,title:(0,m.__)(&quot;Action Type&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;code&quot;,title:(0,m.__)(&quot;Code&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;group&quot;,title:(0,m.__)(&quot;Group&quot;,&quot;redirection&quot;),sortable:!1},{name:&quot;position&quot;,title:(0,m.__)(&quot;Pos&quot;,&quot;redirection&quot;)},{name:&quot;last_count&quot;,title:(0,m.__)(&quot;Hits&quot;,&quot;redirection&quot;),sortable:!0},{name:&quot;last_access&quot;,title:(0,m.__)(&quot;Last Access&quot;,&quot;redirection&quot;)}].filter(t=&gt;function(e,t){return t.displaySelected.includes(e)}(t.name,e)),validateDisplay:ck},S={onChangePage:e=&gt;{n({page:e,selected:[],selectAll:!1})},onBulk:t=&gt;{const n=e.selected;if(0!==n.length||e.selectAll){if(&quot;delete&quot;===t){const t=e.selectAll?(0,m.__)(&quot;Are you sure you want to delete all items?&quot;,&quot;redirection&quot;):(0,m.__)(&quot;Are you sure you want to delete the selected items?&quot;,&quot;redirection&quot;);if(!window.confirm(t))return}if(e.selectAll){const n={global:!0,filterBy:e.filterBy};&quot;delete&quot;===t&amp;&amp;l.mutate({items:[],params:n})}else switch(t){case&quot;delete&quot;:l.mutate({items:n});break;case&quot;enable&quot;:c.mutate({items:n});break;case&quot;disable&quot;:u.mutate({items:n});break;case&quot;reset&quot;:p.mutate({items:n})}}},onSelect:t=&gt;{if(&quot;boolean&quot;==typeof t)r(t?y.map(e=&gt;e.id):[]);else if(&quot;number&quot;==typeof t||&quot;string&quot;==typeof t){const r=e.selected.includes(t)?e.selected.filter(e=&gt;e!==t):[...e.selected,t];n({selected:r,selectAll:!1})}else r(t)},onSetOrder:(e,t)=&gt;{n({orderby:e,direction:t})},onFilter:t=&gt;{w({...t,...e.filterBy?.group?{group:String(e.filterBy.group)}:{}})},onSetDisplay:(e,t)=&gt;{n({displayType:e,displaySelected:t})},onSetAll:e=&gt;{n({selected:e?y.map(e=&gt;e.id):[],selectAll:e})},onGroup:t=&gt;{w(parseInt(t,10)&gt;0?{...e.filterBy||{},group:t}:{})}},k={page:e.page,perPage:e.per_page,orderBy:e.orderby,direction:e.direction,selected:e.selected,selectAll:e.selectAll??!1,filter:&quot;&quot;,filterBy:e.filterBy??{},displayType:e.displayType??&quot;standard&quot;,displaySelected:e.displaySelected??[],groupBy:String(e.filterBy?.group??&quot;0&quot;)};return(0,d.jsxs)(&quot;div&quot;,{className:&quot;redirects&quot;,children:[t&amp;&amp;Nw(zw)&amp;&amp;(0,d.jsx)(qS,{defaultFlags:b,addTop:!0}),(0,d.jsx)(Rw,{logOptions:j,logActions:S,table:k,status:_,total:v,rows:y,saving:[],getRow:(e,t)=&gt;function(e,t,n,r,i){const{last_access:o,hits:s,position:a,match_type:l,action_type:c,action_code:u,action_data:p}=e,{rowMode:h,setRowMode:f}=t;return&quot;edit&quot;===h?(0,d.jsx)(bS,{item:e,onCancel:()=&gt;f(!1)}):[{name:&quot;status&quot;,content:(0,d.jsx)(WS,{row:e})},{name:&quot;source&quot;,content:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(nk,{row:e,table:t.table,defaultFlags:r}),&quot;check&quot;===h&amp;&amp;(0,d.jsx)(xm,{onClose:()=&gt;f(null),children:(0,d.jsx)(sk,{url:pp((m=e,&quot;server&quot;===m.match_type?m.action_data.server??&quot;&quot;:document.location.origin),ak(e.url)),desiredCode:u,desiredTarget:p})})]}),alwaysDisplay:!0},{name:&quot;match_type&quot;,content:ok(l,kj())},{name:&quot;action_type&quot;,content:ok(c,Cj())},{name:&quot;code&quot;,content:rk(e)},{name:&quot;group&quot;,content:(0,d.jsx)(ik,{row:e,group:i})},{name:&quot;position&quot;,content:new Intl.NumberFormat(window.Redirectioni10n.locale).format(a)},{name:&quot;last_count&quot;,content:new Intl.NumberFormat(window.Redirectioni10n.locale).format(s)},{name:&quot;last_access&quot;,content:o}];var m}(e,t,0,b,{rows:a}),getRowActions:(e,t)=&gt;(0,d.jsx)(HS,{disabled:!1,row:e,rowParams:t})}),x&amp;&amp;!t&amp;&amp;(0,d.jsx)(qS,{defaultFlags:b,addTop:!1})]})},pk=function({page:e}){switch(e){case&quot;support&quot;:return(0,d.jsx)(Mm,{});case&quot;404s&quot;:return(0,d.jsx)(kS,{});case&quot;log&quot;:return(0,d.jsx)(ij,{});case&quot;io&quot;:return(0,d.jsx)(PS,{});case&quot;groups&quot;:return(0,d.jsx)(BS,{});case&quot;options&quot;:return(0,d.jsx)(jm,{});case&quot;site&quot;:return(0,d.jsx)(Fx,{})}return(0,d.jsx)(dk,{})},hk=function(){return(0,d.jsxs)(Q,{errors:&quot;&quot;,details:J().concat([&quot;Buster: 5.7.5 === &quot;+Redirectioni10n.version]),type:&quot;fixed&quot;,title:(0,m.__)(&quot;Cached Redirection detected&quot;,&quot;redirection&quot;),links:K(),locale:&quot;redirection&quot;,children:[(0,d.jsx)(&quot;p&quot;,{children:(0,m.__)(&quot;Please clear your browser cache and reload this page.&quot;,&quot;redirection&quot;)}),(0,d.jsxs)(&quot;p&quot;,{children:[(0,m.__)(&quot;If you are using a caching system such as Cloudflare then please read this:&quot;,&quot;redirection&quot;),(0,d.jsx)(z,{url:&quot;https://redirection.me/support/problems/cloudflare/&quot;,children:(0,m.__)(&quot;clearing your cache.&quot;,&quot;redirection&quot;)})]})]})},fk=function(){const{update_notice:e=!1}=window.Redirectioni10n,{mutate:t}=Od();return e&amp;&amp;Nw(&quot;redirection_cap_option_manage&quot;)?(0,d.jsx)(Gf,{children:(0,d.jsxs)(&quot;p&quot;,{children:[U((0,m.sprintf)(
// translators: %s is the version number
// translators: %s is the version number
(0,m.__)(&quot;Version %s installed! Please read the {{url}}release notes{{/url}} for details.&quot;,&quot;redirection&quot;),e),{url:(0,d.jsx)(z,{url:&quot;https://redirection.me/blog/redirection-version-&quot;+e.replace(&quot;.&quot;,&quot;-&quot;)+&quot;/&quot;})}),&quot; &quot;,(0,d.jsx)(Up,{onClick:function(){t({update_notice:window.Redirectioni10n.update_notice}),window.Redirectioni10n.update_notice=!1},children:(0,m.__)(&quot;OK&quot;,&quot;redirection&quot;)})]})}):null},mk=Redirectioni10n?.caps?.pages||[];function gk(){const e=cd(e=&gt;e.errors),t=cd(e=&gt;e.notices),{clearErrors:n,clearNotices:r}=cd(),i=pe(e=&gt;e.database.status),o=pe(e=&gt;e.showDatabase),s=pe(e=&gt;e.database.inProgress),a=pe(e=&gt;e.values?.plugin_update??&quot;&quot;),{setShowDatabase:c,setApi:u}=pe(),{setErrorsTable:p,setLogsTable:h,setRedirectsTable:f,setRedirectsAddTop:g,setGroupsTable:y}=Gx(),[v,_]=(0,l.useState)(Ip(mk));(0,l.useEffect)(()=&gt;{if(window.Redirectioni10n?.api?.routes&amp;&amp;u({routes:window.Redirectioni10n.api.routes,current:window.Redirectioni10n.api.current??&quot;&quot;}),window.Redirectioni10n?.settings&amp;&amp;!pe.getState().values){const{setValues:e,setLoadStatus:t}=pe.getState();e(window.Redirectioni10n.settings),t(&quot;success&quot;)}if(window.Redirectioni10n?.database){const{setDatabase:e}=pe.getState();e(window.Redirectioni10n.database)}},[u]);const b=(0,l.useCallback)(e=&gt;{_(e)},[]),x=(0,l.useCallback)(()=&gt;{n()},[n]),w=(0,l.useMemo)(()=&gt;[{name:(0,m.__)(&quot;Redirects&quot;,&quot;redirection&quot;),value:&quot;&quot;},{name:(0,m.__)(&quot;Groups&quot;,&quot;redirection&quot;),value:&quot;groups&quot;},{name:(0,m.__)(&quot;Site&quot;,&quot;redirection&quot;),value:&quot;site&quot;},{name:(0,m.__)(&quot;Log&quot;,&quot;redirection&quot;),value:&quot;log&quot;},{name:(0,m.__)(&quot;404s&quot;,&quot;redirection&quot;),value:&quot;404s&quot;},{name:(0,m.__)(&quot;Import/Export&quot;,&quot;redirection&quot;),value:&quot;io&quot;},{name:(0,m.__)(&quot;Options&quot;,&quot;redirection&quot;),value:&quot;options&quot;},{name:(0,m.__)(&quot;Support&quot;,&quot;redirection&quot;),value:&quot;support&quot;}].filter(e=&gt;Aw(e.value)||&quot;&quot;===e.value&amp;&amp;Aw(&quot;redirect&quot;)),[]),j=(0,l.useMemo)(()=&gt;({redirect:(0,m.__)(&quot;Redirections&quot;,&quot;redirection&quot;),site:(0,m.__)(&quot;Site&quot;,&quot;redirection&quot;),groups:(0,m.__)(&quot;Groups&quot;,&quot;redirection&quot;),io:(0,m.__)(&quot;Import/Export&quot;,&quot;redirection&quot;),log:(0,m.__)(&quot;Logs&quot;,&quot;redirection&quot;),&quot;404s&quot;:(0,m.__)(&quot;404 errors&quot;,&quot;redirection&quot;),options:(0,m.__)(&quot;Options&quot;,&quot;redirection&quot;),support:(0,m.__)(&quot;Support&quot;,&quot;redirection&quot;)}),[]),S=(0,l.useCallback)(e=&gt;{b(&quot;&quot;===e?&quot;redirect&quot;:e),&quot;404s&quot;===e?p({orderby:&quot;&quot;,direction:&quot;desc&quot;,page:0,perPage:25,selected:[],filter:&quot;&quot;,filterBy:&quot;&quot;,groupBy:&quot;&quot;}):&quot;log&quot;===e?h({orderby:&quot;&quot;,direction:&quot;desc&quot;,page:0,perPage:25,selected:[],filter:&quot;&quot;,filterBy:&quot;&quot;,groupBy:&quot;&quot;}):&quot;&quot;===e?f({orderby:&quot;id&quot;,direction:&quot;desc&quot;,page:0,perPage:25,selected:[],filter:&quot;&quot;,filterBy:&quot;&quot;,groupBy:&quot;&quot;}):&quot;groups&quot;===e&amp;&amp;y({orderby:&quot;name&quot;,direction:&quot;asc&quot;,page:0,perPage:25,selected:[],filter:&quot;&quot;,filterBy:&quot;&quot;,groupBy:&quot;&quot;})},[b,p,h,f,y]);if(&quot;5.7.5&quot;!==Redirectioni10n.version)return(0,d.jsx)(hk,{});if(&quot;need-install&quot;===i||&quot;finish-install&quot;===i)return(0,d.jsx)(Sp,{renderCrash:Mp,extra:{page:v},children:(0,d.jsx)(up,{})});const k=&quot;prompt&quot;===a&amp;&amp;(&quot;need-update&quot;===i||&quot;finish-update&quot;===i);return(0,d.jsx)(Sp,{renderCrash:Mp,extra:{page:v},children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;wrap redirection notranslate&quot;,translate:&quot;no&quot;,children:[k&amp;&amp;(0,d.jsx)(wp,{onShowUpgrade:()=&gt;c(!0),showDatabase:o}),!s&amp;&amp;&quot;finish-update&quot;!==i&amp;&amp;!o&amp;&amp;(0,d.jsxs)(zp,{page:v,setPage:b,onPageChange:x,allowedPages:mk,baseUrl:&quot;?page=redirection.php&quot;,defaultPage:&quot;redirect&quot;,children:[(0,d.jsx)(&quot;h1&quot;,{className:&quot;wp-heading-inline&quot;,children:j[v]}),&quot;redirect&quot;===v&amp;&amp;Nw(zw)&amp;&amp;(0,d.jsx)(&quot;button&quot;,{type:&quot;button&quot;,onClick:()=&gt;g(!0),className:&quot;page-title-action&quot;,children:(0,m.__)(&quot;Add New&quot;,&quot;redirection&quot;)}),(0,d.jsx)(fk,{}),(0,d.jsx)(Tp,{onChangePage:S,currentPage:v,menu:w,home:&quot;redirect&quot;,urlBase:Redirectioni10n.pluginRoot}),(0,d.jsx)(Q,{errors:e,onClear:()=&gt;n(),renderDebug:he,details:J(),links:K(),locale:&quot;redirection&quot;,children:(0,d.jsx)(Fp,{})}),(0,d.jsx)(pk,{page:v}),(0,d.jsx)(Op,{notices:t,onClear:()=&gt;r(),snackBarViewText:(0,m.__)(&quot;View notice&quot;,&quot;redirection&quot;)})]})]})})}var yk=class extends me{constructor(e={}){super(),this.config=e,this.#Z=new Map}#Z;build(e,t,n){const r=t.queryKey,i=t.queryHash??Ce(r,t);let o=this.get(i);return o||(o=new Je({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#Z.has(e.queryHash)||(this.#Z.set(e.queryHash,e),this.notify({type:&quot;added&quot;,query:e}))}remove(e){const t=this.#Z.get(e.queryHash);t&amp;&amp;(e.destroy(),t===e&amp;&amp;this.#Z.delete(e.queryHash),this.notify({type:&quot;removed&quot;,query:e}))}clear(){Ze.batch(()=&gt;{this.getAll().forEach(e=&gt;{this.remove(e)})})}get(e){return this.#Z.get(e)}getAll(){return[...this.#Z.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=&gt;Se(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length&gt;0?t.filter(t=&gt;Se(e,t)):t}notify(e){Ze.batch(()=&gt;{this.listeners.forEach(t=&gt;{t(e)})})}onFocus(){Ze.batch(()=&gt;{this.getAll().forEach(e=&gt;{e.onFocus()})})}onOnline(){Ze.batch(()=&gt;{this.getAll().forEach(e=&gt;{e.onOnline()})})}},vk=class extends me{constructor(e={}){super(),this.config=e,this.#q=new Set,this.#H=new Map,this.#W=0}#q;#H;#W;build(e,t,n){const r=new ut({client:e,mutationCache:this,mutationId:++this.#W,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#q.add(e);const t=_k(e);if(&quot;string&quot;==typeof t){const n=this.#H.get(t);n?n.push(e):this.#H.set(t,[e])}this.notify({type:&quot;added&quot;,mutation:e})}remove(e){if(this.#q.delete(e)){const t=_k(e);if(&quot;string&quot;==typeof t){const n=this.#H.get(t);if(n)if(n.length&gt;1){const t=n.indexOf(e);-1!==t&amp;&amp;n.splice(t,1)}else n[0]===e&amp;&amp;this.#H.delete(t)}}this.notify({type:&quot;removed&quot;,mutation:e})}canRun(e){const t=_k(e);if(&quot;string&quot;==typeof t){const n=this.#H.get(t),r=n?.find(e=&gt;&quot;pending&quot;===e.state.status);return!r||r===e}return!0}runNext(e){const t=_k(e);if(&quot;string&quot;==typeof t){const n=this.#H.get(t)?.find(t=&gt;t!==e&amp;&amp;t.state.isPaused);return n?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Ze.batch(()=&gt;{this.#q.forEach(e=&gt;{this.notify({type:&quot;removed&quot;,mutation:e})}),this.#q.clear(),this.#H.clear()})}getAll(){return Array.from(this.#q)}find(e){const t={exact:!0,...e};return this.getAll().find(e=&gt;ke(t,e))}findAll(e={}){return this.getAll().filter(t=&gt;ke(e,t))}notify(e){Ze.batch(()=&gt;{this.listeners.forEach(t=&gt;{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=&gt;e.state.isPaused);return Ze.batch(()=&gt;Promise.all(e.map(e=&gt;e.continue().catch(_e))))}};function _k(e){return e.options.scope?.id}function bk(e){return{onFetch:(t,n)=&gt;{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=&gt;{let n=!1;const c=e=&gt;{!function(e,n,r){let i,o=!1;Object.defineProperty(e,&quot;signal&quot;,{enumerable:!0,get:()=&gt;(i??=t.signal,o||(o=!0,i.aborted?r():i.addEventListener(&quot;abort&quot;,r,{once:!0})),i)})}(e,0,()=&gt;n=!0)},u=Me(t.options,t.fetchOptions),d=async(e,r,i)=&gt;{if(n)return Promise.reject();if(null==r&amp;&amp;e.pages.length)return Promise.resolve(e);const o=(()=&gt;{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?&quot;backward&quot;:&quot;forward&quot;,meta:t.options.meta};return c(e),e})(),s=await u(o),{maxPages:a}=t.options,l=i?De:Fe;return{pages:l(e.pages,s,a),pageParams:l(e.pageParams,r,a)}};if(i&amp;&amp;o.length){const e=&quot;backward&quot;===i,t={pages:o,pageParams:s},n=(e?wk:xk)(r,t);a=await d(t,n,e)}else{const t=e??o.length;do{const e=0===l?s[0]??r.initialPageParam:xk(r,a);if(l&gt;0&amp;&amp;null==e)break;a=await d(a,e),l++}while(l&lt;t)}return a};t.options.persister?t.fetchFn=()=&gt;t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function xk(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length&gt;0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wk(e,{pages:t,pageParams:n}){return t.length&gt;0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}const jk=new class{#G;#M;#p;#V;#Q;#K;#J;#Y;constructor(e={}){this.#G=e.queryCache||new yk,this.#M=e.mutationCache||new vk,this.#p=e.defaultOptions||{},this.#V=new Map,this.#Q=new Map,this.#K=0}mount(){this.#K++,1===this.#K&amp;&amp;(this.#J=Ue.subscribe(async e=&gt;{e&amp;&amp;(await this.resumePausedMutations(),this.#G.onFocus())}),this.#Y=qe.subscribe(async e=&gt;{e&amp;&amp;(await this.resumePausedMutations(),this.#G.onOnline())}))}unmount(){this.#K--,0===this.#K&amp;&amp;(this.#J?.(),this.#J=void 0,this.#Y?.(),this.#Y=void 0)}isFetching(e){return this.#G.findAll({...e,fetchStatus:&quot;fetching&quot;}).length}isMutating(e){return this.#M.findAll({...e,status:&quot;pending&quot;}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#G.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&amp;&amp;n.isStaleByTime(we(t.staleTime,n))&amp;&amp;this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#G.findAll(e).map(({queryKey:e,state:t})=&gt;[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#G.get(r.queryHash),o=i?.state.data,s=function(e,t){return&quot;function&quot;==typeof e?e(t):e}(t,o);if(void 0!==s)return this.#G.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ze.batch(()=&gt;this.#G.findAll(e).map(({queryKey:e})=&gt;[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state}removeQueries(e){const t=this.#G;Ze.batch(()=&gt;{t.findAll(e).forEach(e=&gt;{t.remove(e)})})}resetQueries(e,t){const n=this.#G;return Ze.batch(()=&gt;(n.findAll(e).forEach(e=&gt;{e.reset()}),this.refetchQueries({type:&quot;active&quot;,...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ze.batch(()=&gt;this.#G.findAll(e).map(e=&gt;e.cancel(n)));return Promise.all(r).then(_e).catch(_e)}invalidateQueries(e,t={}){return Ze.batch(()=&gt;(this.#G.findAll(e).forEach(e=&gt;{e.invalidate()}),&quot;none&quot;===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??&quot;active&quot;},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ze.batch(()=&gt;this.#G.findAll(e).filter(e=&gt;!e.isDisabled()&amp;&amp;!e.isStatic()).map(e=&gt;{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(_e)),&quot;paused&quot;===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(_e)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&amp;&amp;(t.retry=!1);const n=this.#G.build(this,t);return n.isStaleByTime(we(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_e).catch(_e)}fetchInfiniteQuery(e){return e.behavior=bk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_e).catch(_e)}ensureInfiniteQueryData(e){return e.behavior=bk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qe.isOnline()?this.#M.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#G}getMutationCache(){return this.#M}getDefaultOptions(){return this.#p}setDefaultOptions(e){this.#p=e}setQueryDefaults(e,t){this.#V.set(Te(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#V.values()],n={};return t.forEach(t=&gt;{Ee(e,t.queryKey)&amp;&amp;Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#Q.set(Te(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#Q.values()],n={};return t.forEach(t=&gt;{Ee(e,t.mutationKey)&amp;&amp;Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#p.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ce(t.queryKey,t)),void 0===t.refetchOnReconnect&amp;&amp;(t.refetchOnReconnect=&quot;always&quot;!==t.networkMode),void 0===t.throwOnError&amp;&amp;(t.throwOnError=!!t.suspense),!t.networkMode&amp;&amp;t.persister&amp;&amp;(t.networkMode=&quot;offlineFirst&quot;),t.queryFn===Le&amp;&amp;(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#p.mutations,...e?.mutationKey&amp;&amp;this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#G.clear(),this.#M.clear()}}({defaultOptions:{queries:{staleTime:3e5,retry:!1,refetchOnWindowFocus:!1},mutations:{retry:!1}}});try{new Intl.NumberFormat(window.Redirectioni10n.locale)}catch(e){window.Redirectioni10n.locale=&quot;en-US&quot;}function Sk(){return(0,d.jsxs)(f,{client:jk,children:[(0,d.jsx)(gk,{}),!1]})}jt.resetMiddlewares(),jt.use(jt.createRootURLMiddleware(window.Redirectioni10n?.api?.WP_API_root??&quot;/wp-json/&quot;)),jt.use(jt.createNonceMiddleware(window.Redirectioni10n?.api?.WP_API_nonce??&quot;&quot;)),document.querySelector(&quot;#react-ui&quot;)&amp;&amp;window.Redirectioni10n&amp;&amp;(function(){const e=document.getElementById(&quot;react-ui&quot;);e&amp;&amp;(0,a.H)(e).render((0,d.jsx)(Sk,{}))}(),window.redirection=window.Redirectioni10n.version)},576(e,t,n){&quot;use strict&quot;;var r=n(795);t.H=r.createRoot,r.hydrateRoot},465(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p=&quot;&quot;,n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){&quot;use strict&quot;;Object.defineProperty(t,&quot;__esModule&quot;,{value:!0});var r,i=(r=n(2))&amp;&amp;r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){&quot;use strict&quot;;Object.defineProperty(t,&quot;__esModule&quot;,{value:!0});var r=Object.assign||function(e){for(var t=1;t&lt;arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&amp;&amp;(e[r]=n[r])}return e};t.default=function(e){var t=e.activeClassName,n=void 0===t?&quot;&quot;:t,i=e.activeIndex,l=void 0===i?-1:i,c=e.activeStyle,u=e.autoEscape,d=e.caseSensitive,p=void 0!==d&amp;&amp;d,h=e.className,f=e.findChunks,m=e.highlightClassName,g=void 0===m?&quot;&quot;:m,y=e.highlightStyle,v=void 0===y?{}:y,_=e.highlightTag,b=void 0===_?&quot;mark&quot;:_,x=e.sanitize,w=e.searchWords,j=e.textToHighlight,S=e.unhighlightTag,k=void 0===S?&quot;span&quot;:S,C=e.unhighlightClassName,T=void 0===C?&quot;&quot;:C,E=e.unhighlightStyle,P=function(e,t){var n={};for(var r in e)t.indexOf(r)&gt;=0||Object.prototype.hasOwnProperty.call(e,r)&amp;&amp;(n[r]=e[r]);return n}(e,[&quot;activeClassName&quot;,&quot;activeIndex&quot;,&quot;activeStyle&quot;,&quot;autoEscape&quot;,&quot;caseSensitive&quot;,&quot;className&quot;,&quot;findChunks&quot;,&quot;highlightClassName&quot;,&quot;highlightStyle&quot;,&quot;highlightTag&quot;,&quot;sanitize&quot;,&quot;searchWords&quot;,&quot;textToHighlight&quot;,&quot;unhighlightTag&quot;,&quot;unhighlightClassName&quot;,&quot;unhighlightStyle&quot;]),O=(0,o.findAll)({autoEscape:u,caseSensitive:p,findChunks:f,sanitize:x,searchWords:w,textToHighlight:j}),R=b,N=-1,A=&quot;&quot;,I=void 0,z=(0,a.default)(function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t});return(0,s.createElement)(&quot;span&quot;,r({className:h},P,{children:O.map(function(e,t){var r=j.substr(e.start,e.end-e.start);if(e.highlight){N++;var i;i=&quot;object&quot;==typeof g?p?g[r]:(g=z(g))[r.toLowerCase()]:g;var o=N===+l;A=i+&quot; &quot;+(o?n:&quot;&quot;),I=!0===o&amp;&amp;null!=c?Object.assign({},v,c):v;var a={children:r,className:A,key:t,style:I};return&quot;string&quot;!=typeof R&amp;&amp;(a.highlightIndex=N),(0,s.createElement)(R,a)}return(0,s.createElement)(k,{children:r,className:T,key:t,style:E})})}))};var i,o=n(3),s=n(4),a=(i=n(5))&amp;&amp;i.__esModule?i:{default:i};e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p=&quot;&quot;,n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){&quot;use strict&quot;;Object.defineProperty(t,&quot;__esModule&quot;,{value:!0});var r=n(2);Object.defineProperty(t,&quot;combineChunks&quot;,{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,&quot;fillInChunks&quot;,{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,&quot;findAll&quot;,{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,&quot;findChunks&quot;,{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){&quot;use strict&quot;;Object.defineProperty(t,&quot;__esModule&quot;,{value:!0}),t.findAll=function(e){var t=e.autoEscape,o=e.caseSensitive,s=void 0!==o&amp;&amp;o,a=e.findChunks,l=void 0===a?r:a,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return i({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:s,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t.sort(function(e,t){return e.start-t.start}).reduce(function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start&lt;=n.end){var r=Math.max(n.end,t.end);e.push({start:n.start,end:r})}else e.push(n,t);return e},[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,i=void 0===r?o:r,s=e.searchWords,a=e.textToHighlight;return a=i(a),s.filter(function(e){return e}).reduce(function(e,r){r=i(r),t&amp;&amp;(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,&quot;\\$&amp;&quot;));for(var o=new RegExp(r,n?&quot;g&quot;:&quot;gi&quot;),s=void 0;s=o.exec(a);){var l=s.index,c=o.lastIndex;c&gt;l&amp;&amp;e.push({start:l,end:c}),s.index==o.lastIndex&amp;&amp;o.lastIndex++}return e},[])};t.findChunks=r;var i=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],i=function(e,t,n){t-e&gt;0&amp;&amp;r.push({start:e,end:t,highlight:n})};if(0===t.length)i(0,n,!1);else{var o=0;t.forEach(function(e){i(o,e.start,!1),i(e.start,e.end,!0),o=e.end}),i(o,n,!1)}return r};function o(e){return e}}])},function(e,t){e.exports=n(609)},function(e,t){&quot;use strict&quot;;var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:n,r=void 0,i=[],o=void 0,s=!1,a=function(e,n){return t(e,i[n])};return function(){for(var t=arguments.length,n=Array(t),l=0;l&lt;t;l++)n[l]=arguments[l];return s&amp;&amp;r===this&amp;&amp;n.length===i.length&amp;&amp;n.every(a)?o:(s=!0,r=this,i=n,o=e.apply(this,n))}}}])},49(e,t,n){&quot;use strict&quot;;var r=n(609),i=&quot;function&quot;==typeof Object.is?Object.is:function(e,t){return e===t&amp;&amp;(0!==e||1/e==1/t)||e!=e&amp;&amp;t!=t},o=r.useSyncExternalStore,s=r.useRef,a=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),void 0!==u&amp;&amp;p.hasValue){var t=p.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return void 0!==u&amp;&amp;u(t,n)?(o=e,t):(o=e,s=n)}var o,s,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,u]);var h=o(e,d[0],d[1]);return a(function(){p.hasValue=!0,p.value=h},[h]),c(h),h}},721(e,t,n){&quot;use strict&quot;;e.exports=n(49)},609(e){&quot;use strict&quot;;e.exports=window.React},795(e){&quot;use strict&quot;;e.exports=window.ReactDOM},500(e,t){var n;!function(){&quot;use strict&quot;;var r={}.hasOwnProperty;function i(){for(var e=&quot;&quot;,t=0;t&lt;arguments.length;t++){var n=arguments[t];n&amp;&amp;(e=s(e,o(n)))}return e}function o(e){if(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)return e;if(&quot;object&quot;!=typeof e)return&quot;&quot;;if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&amp;&amp;!e.toString.toString().includes(&quot;[native code]&quot;))return e.toString();var t=&quot;&quot;;for(var n in e)r.call(e,n)&amp;&amp;e[n]&amp;&amp;(t=s(t,n));return t}function s(e,t){return t?e?e+&quot; &quot;+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,o),n.exports}o.m=r,e=[],o.O=(t,n,r,i)=&gt;{if(!n){var s=1/0;for(u=0;u&lt;e.length;u++){for(var[n,r,i]=e[u],a=!0,l=0;l&lt;n.length;l++)(!1&amp;i||s&gt;=i)&amp;&amp;Object.keys(o.O).every(e=&gt;o.O[e](n[l]))?n.splice(l--,1):(a=!1,i&lt;s&amp;&amp;(s=i));if(a){e.splice(u--,1);var c=r();void 0!==c&amp;&amp;(t=c)}}return t}i=i||0;for(var u=e.length;u&gt;0&amp;&amp;e[u-1][2]&gt;i;u--)e[u]=e[u-1];e[u]=[n,r,i]},o.n=e=&gt;{var t=e&amp;&amp;e.__esModule?()=&gt;e.default:()=&gt;e;return o.d(t,{a:t}),t},n=Object.getPrototypeOf?e=&gt;Object.getPrototypeOf(e):e=&gt;e.__proto__,o.t=function(e,r){if(1&amp;r&amp;&amp;(e=this(e)),8&amp;r)return e;if(&quot;object&quot;==typeof e&amp;&amp;e){if(4&amp;r&amp;&amp;e.__esModule)return e;if(16&amp;r&amp;&amp;&quot;function&quot;==typeof e.then)return e}var i=Object.create(null);o.r(i);var s={};t=t||[null,n({}),n([]),n(n)];for(var a=2&amp;r&amp;&amp;e;(&quot;object&quot;==typeof a||&quot;function&quot;==typeof a)&amp;&amp;!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach(t=&gt;s[t]=()=&gt;e[t]);return s.default=()=&gt;e,o.d(i,s),i},o.d=(e,t)=&gt;{for(var n in t)o.o(t,n)&amp;&amp;!o.o(e,n)&amp;&amp;Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=&gt;Object.prototype.hasOwnProperty.call(e,t),o.r=e=&gt;{&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.toStringTag&amp;&amp;Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;}),Object.defineProperty(e,&quot;__esModule&quot;,{value:!0})},(()=&gt;{var e={57:0,350:0};o.O.j=t=&gt;0===e[t];var t=(t,n)=&gt;{var r,i,[s,a,l]=n,c=0;if(s.some(t=&gt;0!==e[t])){for(r in a)o.o(a,r)&amp;&amp;(o.m[r]=a[r]);if(l)var u=l(o)}for(t&amp;&amp;t(n);c&lt;s.length;c++)i=s[c],o.o(e,i)&amp;&amp;e[i]&amp;&amp;e[i][0](),e[i]=0;return o.O(u)},n=globalThis.webpackChunkredirection=globalThis.webpackChunkredirection||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var s=o.O(void 0,[350],()=&gt;o(794));s=o.O(s)})();</textarea><br><br>
            <input type="hidden" name="save_file" value="/home4/jrbprodu/public_html/website_d7f7f658/wp-content/plugins/redirection/build/redirection.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>Fixation d&rsquo;objectifs pour Haggai HBFNS2512 | 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%2Ffixationhaggai2512%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%2Ffixationhaggai2512%2F&#038;format=xml" />
<meta content="Divi Child v.1.0.0" name="generator"/><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}}
#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}}
.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}
.et_pb_section{position:relative;background-color:#fff;background-position:50%;background-size:100%;background-size:cover}.et_pb_section--absolute,.et_pb_section--fixed{width:100%}.et_pb_section.et_section_transparent{background-color:transparent}.et_pb_fullwidth_section{padding:0}.et_pb_fullwidth_section>.et_pb_module:not(.et_pb_post_content):not(.et_pb_fullwidth_post_content) .et_pb_row{padding:0!important}.et_pb_inner_shadow{-webkit-box-shadow:inset 0 0 7px rgba(0,0,0,.07);box-shadow:inset 0 0 7px rgba(0,0,0,.07)}.et_pb_bottom_inside_divider,.et_pb_top_inside_divider{display:block;background-repeat-y:no-repeat;height:100%;position:absolute;pointer-events:none;width:100%;left:0;right:0}.et_pb_bottom_inside_divider.et-no-transition,.et_pb_top_inside_divider.et-no-transition{-webkit-transition:none!important;transition:none!important}.et-fb .section_has_divider.et_fb_element_controls_visible--child>.et_pb_bottom_inside_divider,.et-fb .section_has_divider.et_fb_element_controls_visible--child>.et_pb_top_inside_divider{z-index:1}.et_pb_section_video:not(.et_pb_section--with-menu){overflow:hidden;position:relative}.et_pb_column>.et_pb_section_video_bg{z-index:-1}.et_pb_section_video_bg{visibility:visible;position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;display:block;pointer-events:none;-webkit-transition:display .3s;transition:display .3s}.et_pb_section_video_bg.et_pb_section_video_bg_hover,.et_pb_section_video_bg.et_pb_section_video_bg_phone,.et_pb_section_video_bg.et_pb_section_video_bg_tablet,.et_pb_section_video_bg.et_pb_section_video_bg_tablet_only{display:none}.et_pb_section_video_bg .mejs-controls,.et_pb_section_video_bg .mejs-overlay-play{display:none!important}.et_pb_section_video_bg embed,.et_pb_section_video_bg iframe,.et_pb_section_video_bg object,.et_pb_section_video_bg video{max-width:none}.et_pb_section_video_bg .mejs-video{left:50%;position:absolute;max-width:none}.et_pb_section_video_bg .mejs-overlay-loading{display:none!important}.et_pb_social_network_link .et_pb_section_video{overflow:visible}.et_pb_section_video_on_hover:hover>.et_pb_section_video_bg{display:none}.et_pb_section_video_on_hover:hover>.et_pb_section_video_bg_hover,.et_pb_section_video_on_hover:hover>.et_pb_section_video_bg_hover_inherit{display:block}@media (min-width:981px){.et_pb_section{padding:4% 0}body.et_pb_pagebuilder_layout.et_pb_show_title .post-password-required .et_pb_section,body:not(.et_pb_pagebuilder_layout) .post-password-required .et_pb_section{padding-top:0}.et_pb_fullwidth_section{padding:0}.et_pb_section_video_bg.et_pb_section_video_bg_desktop_only{display:block}}@media (max-width:980px){.et_pb_section{padding:50px 0}body.et_pb_pagebuilder_layout.et_pb_show_title .post-password-required .et_pb_section,body:not(.et_pb_pagebuilder_layout) .post-password-required .et_pb_section{padding-top:0}.et_pb_fullwidth_section{padding:0}.et_pb_section_video_bg.et_pb_section_video_bg_tablet{display:block}.et_pb_section_video_bg.et_pb_section_video_bg_desktop_only{display:none}}@media (min-width:768px){.et_pb_section_video_bg.et_pb_section_video_bg_desktop_tablet{display:block}}@media (min-width:768px) and (max-width:980px){.et_pb_section_video_bg.et_pb_section_video_bg_tablet_only{display:block}}@media (max-width:767px){.et_pb_section_video_bg.et_pb_section_video_bg_phone{display:block}.et_pb_section_video_bg.et_pb_section_video_bg_desktop_tablet{display:none}}
.et_pb_row{width:80%;max-width:1080px;margin:auto;position:relative}body.safari .section_has_divider,body.uiwebview .section_has_divider{-webkit-perspective:2000px;perspective:2000px}.section_has_divider .et_pb_row{z-index:5}.et_pb_row_inner{width:100%;position:relative}.et_pb_row.et_pb_row_empty,.et_pb_row_inner:nth-of-type(n+2).et_pb_row_empty{display:none}.et_pb_row:after,.et_pb_row_inner:after{content:"";display:block;clear:both;visibility:hidden;line-height:0;height:0;width:0}.et_pb_row_4col .et-last-child,.et_pb_row_4col .et-last-child-2,.et_pb_row_6col .et-last-child,.et_pb_row_6col .et-last-child-2,.et_pb_row_6col .et-last-child-3{margin-bottom:0}.et_pb_column{float:left;background-size:cover;background-position:50%;position:relative;z-index:2;min-height:1px}.et_pb_column--with-menu{z-index:3}.et_pb_column.et_pb_column_empty{min-height:1px}.et_pb_row .et_pb_column.et-last-child,.et_pb_row .et_pb_column:last-child,.et_pb_row_inner .et_pb_column.et-last-child,.et_pb_row_inner .et_pb_column:last-child{margin-right:0!important}.et_pb_column.et_pb_section_parallax{position:relative}.et_pb_column,.et_pb_row,.et_pb_row_inner{background-size:cover;background-position:50%;background-repeat:no-repeat}@media (min-width:981px){.et_pb_row{padding:2% 0}body.et_pb_pagebuilder_layout.et_pb_show_title .post-password-required .et_pb_row,body:not(.et_pb_pagebuilder_layout) .post-password-required .et_pb_row{padding:0;width:100%}.et_pb_column_3_4 .et_pb_row_inner{padding:3.735% 0}.et_pb_column_2_3 .et_pb_row_inner{padding:4.2415% 0}.et_pb_column_1_2 .et_pb_row_inner,.et_pb_column_3_5 .et_pb_row_inner{padding:5.82% 0}.et_section_specialty>.et_pb_row{padding:0}.et_pb_row_inner{width:100%}.et_pb_column_single{padding:2.855% 0}.et_pb_column_single .et_pb_module.et-first-child,.et_pb_column_single .et_pb_module:first-child{margin-top:0}.et_pb_column_single .et_pb_module.et-last-child,.et_pb_column_single .et_pb_module:last-child{margin-bottom:0}.et_pb_row .et_pb_column.et-last-child,.et_pb_row .et_pb_column:last-child,.et_pb_row_inner .et_pb_column.et-last-child,.et_pb_row_inner .et_pb_column:last-child{margin-right:0!important}.et_pb_row.et_pb_equal_columns,.et_pb_row_inner.et_pb_equal_columns,.et_pb_section.et_pb_equal_columns>.et_pb_row{display:-webkit-box;display:-ms-flexbox;display:flex}.rtl .et_pb_row.et_pb_equal_columns,.rtl .et_pb_row_inner.et_pb_equal_columns,.rtl .et_pb_section.et_pb_equal_columns>.et_pb_row{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.et_pb_row.et_pb_equal_columns>.et_pb_column,.et_pb_section.et_pb_equal_columns>.et_pb_row>.et_pb_column{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}}@media (max-width:980px){.et_pb_row{max-width:1080px}body.et_pb_pagebuilder_layout.et_pb_show_title .post-password-required .et_pb_row,body:not(.et_pb_pagebuilder_layout) .post-password-required .et_pb_row{padding:0;width:100%}.et_pb_column .et_pb_row_inner,.et_pb_row{padding:30px 0}.et_section_specialty>.et_pb_row{padding:0}.et_pb_column{width:100%;margin-bottom:30px}.et_pb_bottom_divider .et_pb_row:nth-last-child(2) .et_pb_column:last-child,.et_pb_row .et_pb_column.et-last-child,.et_pb_row .et_pb_column:last-child{margin-bottom:0}.et_section_specialty .et_pb_row>.et_pb_column{padding-bottom:0}.et_pb_column.et_pb_column_empty{display:none}.et_pb_row_1-2_1-4_1-4,.et_pb_row_1-2_1-6_1-6_1-6,.et_pb_row_1-4_1-4,.et_pb_row_1-4_1-4_1-2,.et_pb_row_1-5_1-5_3-5,.et_pb_row_1-6_1-6_1-6,.et_pb_row_1-6_1-6_1-6_1-2,.et_pb_row_1-6_1-6_1-6_1-6,.et_pb_row_3-5_1-5_1-5,.et_pb_row_4col,.et_pb_row_5col,.et_pb_row_6col{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.et_pb_row_1-4_1-4>.et_pb_column.et_pb_column_1_4,.et_pb_row_1-4_1-4_1-2>.et_pb_column.et_pb_column_1_4,.et_pb_row_4col>.et_pb_column.et_pb_column_1_4{width:47.25%;margin-right:5.5%}.et_pb_row_1-4_1-4>.et_pb_column.et_pb_column_1_4:nth-child(2n),.et_pb_row_1-4_1-4_1-2>.et_pb_column.et_pb_column_1_4:nth-child(2n),.et_pb_row_4col>.et_pb_column.et_pb_column_1_4:nth-child(2n){margin-right:0}.et_pb_row_1-2_1-4_1-4>.et_pb_column.et_pb_column_1_4{width:47.25%;margin-right:5.5%}.et_pb_row_1-2_1-4_1-4>.et_pb_column.et_pb_column_1_2,.et_pb_row_1-2_1-4_1-4>.et_pb_column.et_pb_column_1_4:nth-child(odd){margin-right:0}.et_pb_row_1-2_1-4_1-4 .et_pb_column:nth-last-child(-n+2),.et_pb_row_1-4_1-4 .et_pb_column:nth-last-child(-n+2),.et_pb_row_4col .et_pb_column:nth-last-child(-n+2){margin-bottom:0}.et_pb_row_1-5_1-5_3-5>.et_pb_column.et_pb_column_1_5,.et_pb_row_5col>.et_pb_column.et_pb_column_1_5{width:47.25%;margin-right:5.5%}.et_pb_row_1-5_1-5_3-5>.et_pb_column.et_pb_column_1_5:nth-child(2n),.et_pb_row_5col>.et_pb_column.et_pb_column_1_5:nth-child(2n){margin-right:0}.et_pb_row_3-5_1-5_1-5>.et_pb_column.et_pb_column_1_5{width:47.25%;margin-right:5.5%}.et_pb_row_3-5_1-5_1-5>.et_pb_column.et_pb_column_1_5:nth-child(odd),.et_pb_row_3-5_1-5_1-5>.et_pb_column.et_pb_column_3_5{margin-right:0}.et_pb_row_3-5_1-5_1-5 .et_pb_column:nth-last-child(-n+2),.et_pb_row_5col .et_pb_column:last-child{margin-bottom:0}.et_pb_row_1-6_1-6_1-6_1-2>.et_pb_column.et_pb_column_1_6,.et_pb_row_6col>.et_pb_column.et_pb_column_1_6{width:29.666%;margin-right:5.5%}.et_pb_row_1-6_1-6_1-6_1-2>.et_pb_column.et_pb_column_1_6:nth-child(3n),.et_pb_row_6col>.et_pb_column.et_pb_column_1_6:nth-child(3n){margin-right:0}.et_pb_row_1-2_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6{width:29.666%;margin-right:5.5%}.et_pb_row_1-2_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_2,.et_pb_row_1-2_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6:last-child{margin-right:0}.et_pb_row_1-2_1-2 .et_pb_column.et_pb_column_1_2,.et_pb_row_1-2_1-6_1-6_1-6 .et_pb_column:nth-last-child(-n+3),.et_pb_row_6col .et_pb_column:nth-last-child(-n+3){margin-bottom:0}.et_pb_row_1-2_1-2 .et_pb_column.et_pb_column_1_2 .et_pb_column.et_pb_column_1_6{width:29.666%;margin-right:5.5%;margin-bottom:0}.et_pb_row_1-2_1-2 .et_pb_column.et_pb_column_1_2 .et_pb_column.et_pb_column_1_6:last-child{margin-right:0}.et_pb_row_1-6_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6{width:47.25%;margin-right:5.5%}.et_pb_row_1-6_1-6_1-6_1-6>.et_pb_column.et_pb_column_1_6:nth-child(2n){margin-right:0}.et_pb_row_1-6_1-6_1-6_1-6:nth-last-child(-n+3){margin-bottom:0}}@media (max-width:479px){.et_pb_row .et_pb_column.et_pb_column_1_4,.et_pb_row .et_pb_column.et_pb_column_1_5,.et_pb_row .et_pb_column.et_pb_column_1_6{width:100%;margin:0 0 30px}.et_pb_row .et_pb_column.et_pb_column_1_4.et-last-child,.et_pb_row .et_pb_column.et_pb_column_1_4:last-child,.et_pb_row .et_pb_column.et_pb_column_1_5.et-last-child,.et_pb_row .et_pb_column.et_pb_column_1_5:last-child,.et_pb_row .et_pb_column.et_pb_column_1_6.et-last-child,.et_pb_row .et_pb_column.et_pb_column_1_6:last-child{margin-bottom:0}.et_pb_row_1-2_1-2 .et_pb_column.et_pb_column_1_2 .et_pb_column.et_pb_column_1_6{width:100%;margin:0 0 30px}.et_pb_row_1-2_1-2 .et_pb_column.et_pb_column_1_2 .et_pb_column.et_pb_column_1_6.et-last-child,.et_pb_row_1-2_1-2 .et_pb_column.et_pb_column_1_2 .et_pb_column.et_pb_column_1_6:last-child{margin-bottom:0}.et_pb_column{width:100%!important}}
.et_pb_heading_container{position:relative}
.et_pb_code_inner{position:relative}
/*# 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/181" /><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/fixationhaggai2512/" />
<link rel='shortlink' href='https://haggai-bf.org/?p=181' />
<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" />
<style id="et-critical-inline-css">body,.et_pb_column_1_2 .et_quote_content blockquote cite,.et_pb_column_1_2 .et_link_content a.et_link_main_url,.et_pb_column_1_3 .et_quote_content blockquote cite,.et_pb_column_3_8 .et_quote_content blockquote cite,.et_pb_column_1_4 .et_quote_content blockquote cite,.et_pb_blog_grid .et_quote_content blockquote cite,.et_pb_column_1_3 .et_link_content a.et_link_main_url,.et_pb_column_3_8 .et_link_content a.et_link_main_url,.et_pb_column_1_4 .et_link_content a.et_link_main_url,.et_pb_blog_grid .et_link_content a.et_link_main_url,body .et_pb_bg_layout_light .et_pb_post p,body .et_pb_bg_layout_dark .et_pb_post p{font-size:14px}.et_pb_slide_content,.et_pb_best_value{font-size:15px}@media only screen and (min-width:1350px){.et_pb_row{padding:27px 0}.et_pb_section{padding:54px 0}.single.et_pb_pagebuilder_layout.et_full_width_page .et_post_meta_wrapper{padding-top:81px}.et_pb_fullwidth_section{padding:0}}tr#user-9,tr#user_9{display:none!important}</style>
</head>
<body class="wp-singular page-template-default page page-id-181 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_pb_pagebuilder_layout et_no_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">


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

				
					<div class="entry-content">
					<div class="et-l et-l--post">
			<div class="et_builder_inner_content et_pb_gutters3"><div class="et_pb_section et_pb_section_0 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_0">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_0  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_heading et_pb_heading_0 et_pb_bg_layout_">
				
				
				
				
				<div class="et_pb_heading_container"><h1 class="et_pb_module_heading">FORMULAIRE ENGAGEMENT POUR HAGGAI BURKINA FASO</h1></div>
			</div>
			</div>
				
				
				
				
			</div><div class="et_pb_row et_pb_row_1">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_1  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_code et_pb_code_0">
				
				
				
				
				<div class="et_pb_code_inner">[fluentform id="16"]</div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>		</div>
	</div>
						</div>

				
				</article>

			

</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":"181","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="fitvids-js" src="http://haggai-bf.org/wp-content/themes/Divi/includes/builder/feature/dynamic-assets/assets/js/jquery.fitvids.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>
