From 035402629263739be0d2fa4e753f34fd89fc46b7 Mon Sep 17 00:00:00 2001 From: Andrey Nekrasov Date: Tue, 21 Apr 2020 10:30:12 +0300 Subject: [PATCH] runner: initial automatic update (#2141) --- .pipelines/pipeline.user.windows.yml | 1 + PowerToys.sln | 2 +- installer/PowerToysSetup/Product.wxs | 4 + src/action_runner/action_runner.cpp | 108 +++++++- src/action_runner/action_runner.vcxproj | 4 +- src/common/common.vcxproj | 1 + src/common/common.vcxproj.filters | 8 +- .../msi_to_msix_upgrade.cpp | 157 ----------- .../msi_to_msix_upgrade.h | 20 -- src/common/msi_to_msix_upgrade_lib/pch.h | 13 - .../pch.cpp | 0 src/common/updating/pch.h | 17 ++ src/common/updating/updating.cpp | 244 ++++++++++++++++++ src/common/updating/updating.h | 31 +++ .../updating.vcxproj} | 7 +- .../updating.vcxproj.filters} | 4 +- src/common/version.cpp | 21 ++ src/common/version.h | 11 +- src/runner/action_runner_utils.cpp | 28 ++ src/runner/action_runner_utils.h | 15 ++ src/runner/general_settings.cpp | 24 +- src/runner/general_settings.h | 3 +- src/runner/main.cpp | 119 +++------ src/runner/resource.h | 1 + src/runner/runner.rc | 1 + src/runner/runner.vcxproj | 6 +- src/runner/runner.vcxproj.filters | 12 + src/runner/settings_window.cpp | 4 +- src/runner/trace.cpp | 1 + src/runner/tray_icon.cpp | 5 +- src/runner/tray_icon.h | 2 + src/runner/update_state.cpp | 60 +++-- src/runner/update_state.h | 9 +- src/runner/update_utils.cpp | 90 +++++++ src/runner/update_utils.h | 5 + .../src/components/GeneralSettings.tsx | 22 +- src/settings/settings-html/dist/bundle.js | 2 +- 37 files changed, 736 insertions(+), 326 deletions(-) delete mode 100644 src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade.cpp delete mode 100644 src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade.h delete mode 100644 src/common/msi_to_msix_upgrade_lib/pch.h rename src/common/{msi_to_msix_upgrade_lib => updating}/pch.cpp (100%) create mode 100644 src/common/updating/pch.h create mode 100644 src/common/updating/updating.cpp create mode 100644 src/common/updating/updating.h rename src/common/{msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj => updating/updating.vcxproj} (98%) rename src/common/{msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj.filters => updating/updating.vcxproj.filters} (92%) create mode 100644 src/common/version.cpp create mode 100644 src/runner/action_runner_utils.cpp create mode 100644 src/runner/action_runner_utils.h create mode 100644 src/runner/update_utils.cpp create mode 100644 src/runner/update_utils.h diff --git a/.pipelines/pipeline.user.windows.yml b/.pipelines/pipeline.user.windows.yml index 804cd9a133..3ae9a112ef 100644 --- a/.pipelines/pipeline.user.windows.yml +++ b/.pipelines/pipeline.user.windows.yml @@ -46,6 +46,7 @@ build: include: - 'PowerToys.exe' - 'PowerToysSettings.exe' + - 'action_runner.exe' - 'modules\FancyZonesEditor.exe' - 'modules\fancyzones.dll' - 'modules\shortcut_guide.dll' diff --git a/PowerToys.sln b/PowerToys.sln index a7366e334d..d9bdc094b9 100644 --- a/PowerToys.sln +++ b/PowerToys.sln @@ -151,7 +151,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "action_runner", "src\action {17DA04DF-E393-4397-9CF0-84DABE11032E} = {17DA04DF-E393-4397-9CF0-84DABE11032E} EndProjectSection EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "msi_to_msix_upgrade_lib", "src\common\msi_to_msix_upgrade_lib\msi_to_msix_upgrade_lib.vcxproj", "{17DA04DF-E393-4397-9CF0-84DABE11032E}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "updating", "src\common\updating\updating.vcxproj", "{17DA04DF-E393-4397-9CF0-84DABE11032E}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{E775CC2C-24CB-48D6-9C3A-BE4CCE0DB17A}" EndProject diff --git a/installer/PowerToysSetup/Product.wxs b/installer/PowerToysSetup/Product.wxs index e9cf7046d3..13737a9660 100644 --- a/installer/PowerToysSetup/Product.wxs +++ b/installer/PowerToysSetup/Product.wxs @@ -253,6 +253,9 @@ + + + @@ -507,6 +510,7 @@ + diff --git a/src/action_runner/action_runner.cpp b/src/action_runner/action_runner.cpp index f2a13d6aaf..222d2506e0 100644 --- a/src/action_runner/action_runner.cpp +++ b/src/action_runner/action_runner.cpp @@ -4,19 +4,24 @@ #include -#include +#include +#include #include #include +#include + +#include "../runner/tray_icon.h" +#include "../runner/action_runner_utils.h" int uninstall_msi_action() { - const auto package_path = get_msi_package_path(); + const auto package_path = updating::get_msi_package_path(); if (package_path.empty()) { return 0; } - if (!uninstall_msi_version(package_path)) + if (!updating::uninstall_msi_version(package_path)) { return -1; } @@ -33,6 +38,90 @@ int uninstall_msi_action() return 0; } +namespace fs = std::filesystem; + +std::optional copy_self_to_temp_dir() +{ + std::error_code error; + auto dst_path = fs::temp_directory_path() / "action_runner.exe"; + fs::copy_file(get_module_filename(), dst_path, fs::copy_options::overwrite_existing, error); + if (error) + { + return std::nullopt; + } + return std::move(dst_path); +} + +bool install_new_version_stage_1(const bool must_restart = false) +{ + std::optional installer; + for (auto path : fs::directory_iterator{ updating::get_pending_updates_path() }) + { + if (path.path().native().find(updating::installer_filename_pattern) != std::wstring::npos) + { + installer.emplace(std::move(path)); + break; + } + } + if (!installer) + { + return false; + } + + if (auto copy_in_temp = copy_self_to_temp_dir()) + { + // detect if PT was running + const auto pt_main_window = FindWindowW(pt_tray_icon_window_class, nullptr); + const bool launch_powertoys = must_restart || pt_main_window != nullptr; + if (pt_main_window != nullptr) + { + SendMessageW(pt_main_window, WM_CLOSE, 0, 0); + } + + std::wstring arguments{ UPDATE_NOW_LAUNCH_STAGE2_CMDARG }; + arguments += L" \""; + arguments += installer->c_str(); + arguments += L"\" \""; + arguments += get_module_folderpath(); + arguments += L"\" "; + arguments += launch_powertoys ? UPDATE_STAGE2_RESTART_PT_CMDARG : UPDATE_STAGE2_DONT_START_PT_CMDARG; + SHELLEXECUTEINFOW sei{ sizeof(sei) }; + sei.fMask = { SEE_MASK_FLAG_NO_UI | SEE_MASK_NOASYNC }; + sei.lpFile = copy_in_temp->c_str(); + sei.nShow = SW_SHOWNORMAL; + + sei.lpParameters = arguments.c_str(); + return ShellExecuteExW(&sei) == TRUE; + } + else + { + return false; + } +} + +bool install_new_version_stage_2(std::wstring_view installer_path, std::wstring_view install_path, const bool launch_powertoys) +{ + if (MsiInstallProductW(installer_path.data(), nullptr) != ERROR_SUCCESS) + { + return false; + } + + std::error_code _; + fs::remove(installer_path, _); + if (launch_powertoys) + { + std::wstring new_pt_path{ install_path }; + new_pt_path += L"\\PowerToys.exe"; + SHELLEXECUTEINFOW sei{ sizeof(sei) }; + sei.fMask = { SEE_MASK_FLAG_NO_UI | SEE_MASK_NOASYNC }; + sei.lpFile = new_pt_path.c_str(); + sei.nShow = SW_SHOWNORMAL; + sei.lpParameters = UPDATE_REPORT_SUCCESS; + return ShellExecuteExW(&sei) == TRUE; + } + return true; +} + int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { int nArgs = 0; @@ -47,6 +136,19 @@ int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { return uninstall_msi_action(); } + else if (action == UPDATE_NOW_LAUNCH_STAGE1_CMDARG) + { + return !install_new_version_stage_1(); + } + else if (action == UPDATE_NOW_LAUNCH_STAGE1_START_PT_CMDARG) + { + return !install_new_version_stage_1(true); + } + else if (action == UPDATE_NOW_LAUNCH_STAGE2_CMDARG) + { + using namespace std::string_view_literals; + return !install_new_version_stage_2(args[2], args[3], args[4] == std::wstring_view{ UPDATE_STAGE2_RESTART_PT_CMDARG }); + } return 0; } \ No newline at end of file diff --git a/src/action_runner/action_runner.vcxproj b/src/action_runner/action_runner.vcxproj index 5e14d3ada3..06f5f44e6a 100644 --- a/src/action_runner/action_runner.vcxproj +++ b/src/action_runner/action_runner.vcxproj @@ -157,12 +157,12 @@ {74485049-c722-400f-abe5-86ac52d929b3} - + {17da04df-e393-4397-9cf0-84dabe11032e} - + diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj index eecc209872..1cc6b98376 100644 --- a/src/common/common.vcxproj +++ b/src/common/common.vcxproj @@ -162,6 +162,7 @@ + diff --git a/src/common/common.vcxproj.filters b/src/common/common.vcxproj.filters index 20dedbc650..43096af190 100644 --- a/src/common/common.vcxproj.filters +++ b/src/common/common.vcxproj.filters @@ -159,5 +159,11 @@ Source Files + + Source Files + - + + + + \ No newline at end of file diff --git a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade.cpp b/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade.cpp deleted file mode 100644 index a333db4fd4..0000000000 --- a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade.cpp +++ /dev/null @@ -1,157 +0,0 @@ -#include "pch.h" - -#include "version.h" - -#include "msi_to_msix_upgrade.h" - -#include -#include -#include - -#include -#include -#include - -#include -#include -#include - -#include "VersionHelper.h" - -namespace -{ - const wchar_t* POWER_TOYS_UPGRADE_CODE = L"{42B84BF7-5FBF-473B-9C8B-049DC16F7708}"; - const wchar_t* DONT_SHOW_AGAIN_RECORD_REGISTRY_PATH = L"delete_previous_powertoys_confirm"; - const wchar_t* USER_AGENT = L"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)"; - const wchar_t* LATEST_RELEASE_ENDPOINT = L"https://api.github.com/repos/microsoft/PowerToys/releases/latest"; - const wchar_t* MSIX_PACKAGE_NAME = L"Microsoft.PowerToys"; - const wchar_t* MSIX_PACKAGE_PUBLISHER = L"CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"; -} - -namespace localized_strings -{ - const wchar_t* OFFER_UNINSTALL_MSI = L"We've detected a previous installation of PowerToys. Would you like to remove it?"; - const wchar_t* OFFER_UNINSTALL_MSI_TITLE = L"PowerToys: uninstall previous version?"; - const wchar_t* UNINSTALLATION_SUCCESS = L"Previous version of PowerToys was uninstalled successfully."; - const wchar_t* UNINSTALLATION_UNKNOWN_ERROR = L"Error: please uninstall the previous version of PowerToys manually."; -} - -std::wstring get_msi_package_path() -{ - std::wstring package_path; - wchar_t GUID_product_string[39]; - if (const bool found = ERROR_SUCCESS == MsiEnumRelatedProductsW(POWER_TOYS_UPGRADE_CODE, 0, 0, GUID_product_string); !found) - { - return package_path; - } - - if (const bool installed = INSTALLSTATE_DEFAULT == MsiQueryProductStateW(GUID_product_string); !installed) - { - return package_path; - } - - DWORD package_path_size = 0; - - if (const bool has_package_path = ERROR_SUCCESS == MsiGetProductInfoW(GUID_product_string, INSTALLPROPERTY_LOCALPACKAGE, nullptr, &package_path_size); !has_package_path) - { - return package_path; - } - - package_path = std::wstring(++package_path_size, L'\0'); - if (const bool got_package_path = ERROR_SUCCESS == MsiGetProductInfoW(GUID_product_string, INSTALLPROPERTY_LOCALPACKAGE, package_path.data(), &package_path_size); !got_package_path) - { - package_path = {}; - return package_path; - } - - package_path.resize(size(package_path) - 1); // trim additional \0 which we got from MsiGetProductInfoW - - return package_path; -} - -bool offer_msi_uninstallation() -{ - const auto selection = SHMessageBoxCheckW(nullptr, localized_strings::OFFER_UNINSTALL_MSI, localized_strings::OFFER_UNINSTALL_MSI_TITLE, MB_ICONQUESTION | MB_YESNO, IDNO, DONT_SHOW_AGAIN_RECORD_REGISTRY_PATH); - return selection == IDYES; -} - -bool uninstall_msi_version(const std::wstring& package_path) -{ - const auto uninstall_result = MsiInstallProductW(package_path.c_str(), L"REMOVE=ALL"); - if (ERROR_SUCCESS == uninstall_result) - { - notifications::show_toast(localized_strings::UNINSTALLATION_SUCCESS); - return true; - } - else if (auto system_message = get_last_error_message(uninstall_result); system_message.has_value()) - { - try - { - notifications::show_toast(*system_message); - } - catch (...) - { - notifications::show_toast(localized_strings::UNINSTALLATION_UNKNOWN_ERROR); - } - } - return false; -} - -std::future> check_for_new_github_release_async() -{ - try - { - winrt::Windows::Web::Http::HttpClient client; - auto headers = client.DefaultRequestHeaders(); - headers.UserAgent().TryParseAdd(USER_AGENT); - - auto response = co_await client.GetAsync(winrt::Windows::Foundation::Uri{ LATEST_RELEASE_ENDPOINT }); - (void)response.EnsureSuccessStatusCode(); - const auto body = co_await response.Content().ReadAsStringAsync(); - auto json_body = json::JsonValue::Parse(body).GetObjectW(); - auto new_version = json_body.GetNamedString(L"tag_name"); - winrt::Windows::Foundation::Uri release_page_uri{ json_body.GetNamedString(L"html_url") }; - - VersionHelper github_version(winrt::to_string(new_version)); - VersionHelper current_version(VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION); - - if (github_version > current_version) - { - co_return new_version_download_info{ std::move(release_page_uri), new_version.c_str() }; - } - else - { - co_return std::nullopt; - } - } - catch (...) - { - co_return std::nullopt; - } -} - -std::future uninstall_previous_msix_version_async() -{ - winrt::Windows::Management::Deployment::PackageManager package_manager; - - try - { - auto packages = package_manager.FindPackagesForUser({}, MSIX_PACKAGE_NAME, MSIX_PACKAGE_PUBLISHER); - VersionHelper current_version(VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION); - - for (auto package : packages) - { - VersionHelper msix_version(package.Id().Version().Major, package.Id().Version().Minor, package.Id().Version().Revision); - - if (msix_version < current_version) - { - co_await package_manager.RemovePackageAsync(package.Id().FullName()); - co_return true; - } - } - } - catch (...) - { - } - co_return false; -} diff --git a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade.h b/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade.h deleted file mode 100644 index 8a54481766..0000000000 --- a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade.h +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once - -#include -#include -#include - -#include - -std::wstring get_msi_package_path(); -bool uninstall_msi_version(const std::wstring& package_path); -bool offer_msi_uninstallation(); - -std::future uninstall_previous_msix_version_async(); - -struct new_version_download_info -{ - winrt::Windows::Foundation::Uri release_page_uri; - std::wstring version_string; -}; -std::future> check_for_new_github_release_async(); diff --git a/src/common/msi_to_msix_upgrade_lib/pch.h b/src/common/msi_to_msix_upgrade_lib/pch.h deleted file mode 100644 index 3b153d0513..0000000000 --- a/src/common/msi_to_msix_upgrade_lib/pch.h +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#ifndef PCH_H -#define PCH_H - -#pragma warning (disable: 5205) -#include -#pragma warning (default: 5205) -#include -#include -#include - -#endif //PCH_H diff --git a/src/common/msi_to_msix_upgrade_lib/pch.cpp b/src/common/updating/pch.cpp similarity index 100% rename from src/common/msi_to_msix_upgrade_lib/pch.cpp rename to src/common/updating/pch.cpp diff --git a/src/common/updating/pch.h b/src/common/updating/pch.h new file mode 100644 index 0000000000..6dcc374983 --- /dev/null +++ b/src/common/updating/pch.h @@ -0,0 +1,17 @@ +#pragma once + +#ifndef PCH_H +#define PCH_H + +#pragma warning(disable : 5205) +#include +#pragma warning(default : 5205) +#define WIN32_LEAN_AND_MEAN +#include +#include +#include +#include +#include +#include + +#endif //PCH_H diff --git a/src/common/updating/updating.cpp b/src/common/updating/updating.cpp new file mode 100644 index 0000000000..e463525e92 --- /dev/null +++ b/src/common/updating/updating.cpp @@ -0,0 +1,244 @@ +#include "pch.h" + +#include "version.h" + +#include "updating.h" + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "VersionHelper.h" + +namespace +{ + const wchar_t POWER_TOYS_UPGRADE_CODE[] = L"{42B84BF7-5FBF-473B-9C8B-049DC16F7708}"; + const wchar_t DONT_SHOW_AGAIN_RECORD_REGISTRY_PATH[] = L"delete_previous_powertoys_confirm"; + const wchar_t USER_AGENT[] = L"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)"; + const wchar_t LATEST_RELEASE_ENDPOINT[] = L"https://api.github.com/repos/microsoft/PowerToys/releases/latest"; + const wchar_t MSIX_PACKAGE_NAME[] = L"Microsoft.PowerToys"; + const wchar_t MSIX_PACKAGE_PUBLISHER[] = L"CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"; +} + +namespace localized_strings +{ + const wchar_t OFFER_UNINSTALL_MSI[] = L"We've detected a previous installation of PowerToys. Would you like to remove it?"; + const wchar_t OFFER_UNINSTALL_MSI_TITLE[] = L"PowerToys: uninstall previous version?"; + const wchar_t UNINSTALLATION_SUCCESS[] = L"Previous version of PowerToys was uninstalled successfully."; + const wchar_t UNINSTALLATION_UNKNOWN_ERROR[] = L"Error: please uninstall the previous version of PowerToys manually."; + + const wchar_t GITHUB_NEW_VERSION_READY_TO_INSTALL[] = L"An update to PowerToys is ready to install."; + const wchar_t GITHUB_NEW_VERSION_UPDATE_NOW[] = L"Update now"; + const wchar_t GITHUB_NEW_VERSION_UPDATE_AFTER_RESTART[] = L"At next launch"; + + const wchar_t GITHUB_NEW_VERSION_AVAILABLE_OFFER_VISIT[] = L"An update to PowerToys is available. Visit our GitHub page to get "; + const wchar_t GITHUB_NEW_VERSION_AGREE[] = L"Visit"; + const wchar_t GITHUB_NEW_VERSION_UPDATE_SNOOZE_1D[] = L"1 day"; + const wchar_t GITHUB_NEW_VERSION_UPDATE_SNOOZE_5D[] = L"5 days"; +} +namespace updating +{ + inline winrt::Windows::Web::Http::HttpClient create_http_client() + { + winrt::Windows::Web::Http::HttpClient client; + auto headers = client.DefaultRequestHeaders(); + headers.UserAgent().TryParseAdd(USER_AGENT); + return client; + } + + std::wstring get_msi_package_path() + { + std::wstring package_path; + wchar_t GUID_product_string[39]; + if (const bool found = ERROR_SUCCESS == MsiEnumRelatedProductsW(POWER_TOYS_UPGRADE_CODE, 0, 0, GUID_product_string); !found) + { + return package_path; + } + + if (const bool installed = INSTALLSTATE_DEFAULT == MsiQueryProductStateW(GUID_product_string); !installed) + { + return package_path; + } + + DWORD package_path_size = 0; + + if (const bool has_package_path = ERROR_SUCCESS == MsiGetProductInfoW(GUID_product_string, INSTALLPROPERTY_LOCALPACKAGE, nullptr, &package_path_size); !has_package_path) + { + return package_path; + } + + package_path = std::wstring(++package_path_size, L'\0'); + if (const bool got_package_path = ERROR_SUCCESS == MsiGetProductInfoW(GUID_product_string, INSTALLPROPERTY_LOCALPACKAGE, package_path.data(), &package_path_size); !got_package_path) + { + package_path = {}; + return package_path; + } + + package_path.resize(size(package_path) - 1); // trim additional \0 which we got from MsiGetProductInfoW + + return package_path; + } + + bool offer_msi_uninstallation() + { + const auto selection = SHMessageBoxCheckW(nullptr, localized_strings::OFFER_UNINSTALL_MSI, localized_strings::OFFER_UNINSTALL_MSI_TITLE, MB_ICONQUESTION | MB_YESNO, IDNO, DONT_SHOW_AGAIN_RECORD_REGISTRY_PATH); + return selection == IDYES; + } + + bool uninstall_msi_version(const std::wstring& package_path) + { + const auto uninstall_result = MsiInstallProductW(package_path.c_str(), L"REMOVE=ALL"); + if (ERROR_SUCCESS == uninstall_result) + { + notifications::show_toast(localized_strings::UNINSTALLATION_SUCCESS); + return true; + } + else if (auto system_message = get_last_error_message(uninstall_result); system_message.has_value()) + { + try + { + notifications::show_toast(*system_message); + } + catch (...) + { + notifications::show_toast(localized_strings::UNINSTALLATION_UNKNOWN_ERROR); + } + } + return false; + } + + std::future> get_new_github_version_info_async() + { + try + { + auto client = create_http_client(); + auto response = co_await client.GetAsync(winrt::Windows::Foundation::Uri{ LATEST_RELEASE_ENDPOINT }); + (void)response.EnsureSuccessStatusCode(); + const auto body = co_await response.Content().ReadAsStringAsync(); + auto json_body = json::JsonValue::Parse(body).GetObjectW(); + auto new_version = json_body.GetNamedString(L"tag_name"); + winrt::Windows::Foundation::Uri release_page_uri{ json_body.GetNamedString(L"html_url") }; + + VersionHelper github_version(winrt::to_string(new_version)); + VersionHelper current_version(VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION); + + if (github_version > current_version) + { + const std::wstring_view required_asset_extension = winstore::running_as_packaged() ? L".msix" : L".msi"; + const std::wstring_view required_architecture = get_architecture_string(get_current_architecture()); + constexpr const std::wstring_view required_filename_pattern = updating::installer_filename_pattern; + for (auto asset_elem : json_body.GetNamedArray(L"assets")) + { + auto asset{ asset_elem.GetObjectW() }; + std::wstring filename_lower = asset.GetNamedString(L"name", {}).c_str(); + std::transform(begin(filename_lower), end(filename_lower), begin(filename_lower), ::towlower); + + const bool extension_matched = filename_lower.ends_with(required_asset_extension); + const bool architecture_matched = filename_lower.find(required_architecture) != std::wstring::npos; + const bool filename_matched = filename_lower.find(required_filename_pattern) != std::wstring::npos; + if (extension_matched && architecture_matched && filename_matched) + { + winrt::Windows::Foundation::Uri msi_download_url{ asset.GetNamedString(L"browser_download_url") }; + co_return new_version_download_info{ std::move(release_page_uri), new_version.c_str(), std::move(msi_download_url), std::move(filename_lower) }; + } + } + } + else + { + co_return std::nullopt; + } + } + catch (...) + { + co_return std::nullopt; + } + } + + std::future uninstall_previous_msix_version_async() + { + winrt::Windows::Management::Deployment::PackageManager package_manager; + + try + { + auto packages = package_manager.FindPackagesForUser({}, MSIX_PACKAGE_NAME, MSIX_PACKAGE_PUBLISHER); + VersionHelper current_version(VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION); + + for (auto package : packages) + { + VersionHelper msix_version(package.Id().Version().Major, package.Id().Version().Minor, package.Id().Version().Revision); + + if (msix_version < current_version) + { + co_await package_manager.RemovePackageAsync(package.Id().FullName()); + co_return true; + } + } + } + catch (...) + { + } + co_return false; + } + + bool could_be_costly_connection() + { + using namespace winrt::Windows::Networking::Connectivity; + ConnectionProfile internetConnectionProfile = NetworkInformation::GetInternetConnectionProfile(); + return internetConnectionProfile.IsWwanConnectionProfile(); + } + + std::filesystem::path get_pending_updates_path() + { + auto path_str{ PTSettingsHelper::get_root_save_folder_location() }; + path_str += L"\\Updates"; + return { std::move(path_str) }; + } + + std::future try_autoupdate(const bool download_updates_automatically) + { + const auto new_version = co_await get_new_github_version_info_async(); + if (!new_version) + { + co_return; + } + using namespace localized_strings; + namespace storage = winrt::Windows::Storage; + + if (download_updates_automatically && !could_be_costly_connection()) + { + auto client = create_http_client(); + auto response = co_await client.GetAsync(new_version->msi_download_url); + (void)response.EnsureSuccessStatusCode(); + + auto download_dst = get_pending_updates_path(); + std::error_code _; + std::filesystem::create_directories(download_dst, _); + download_dst /= new_version->msi_filename; + auto msi_installer_file_stream = co_await storage::Streams::FileRandomAccessStream::OpenAsync(download_dst.c_str(), storage::FileAccessMode::ReadWrite, storage::StorageOpenOptions::AllowReadersAndWriters, storage::Streams::FileOpenDisposition::CreateAlways); + co_await response.Content().WriteToStreamAsync(msi_installer_file_stream); + notifications::toast_params toast_params{ L"PTUpdateReadyTag", false }; + std::wstring new_version_ready{ GITHUB_NEW_VERSION_READY_TO_INSTALL }; + new_version_ready += L" "; + new_version_ready += new_version->version_string; + notifications::show_toast_with_activations(std::move(new_version_ready), {}, { notifications::link_button{ GITHUB_NEW_VERSION_UPDATE_NOW, L"powertoys://update_now/" }, notifications::link_button{ GITHUB_NEW_VERSION_UPDATE_AFTER_RESTART, L"powertoys://schedule_update/" }, notifications::snooze_button{ { { GITHUB_NEW_VERSION_UPDATE_SNOOZE_1D, 24 * 60 }, { GITHUB_NEW_VERSION_UPDATE_SNOOZE_5D, 120 * 60 } } } }, std::move(toast_params)); + } + else + { + notifications::toast_params toast_params{ L"PTUpdateNotifyTag", false }; + std::wstring contents = GITHUB_NEW_VERSION_AVAILABLE_OFFER_VISIT; + contents += new_version->version_string; + contents += L'.'; + notifications::show_toast_with_activations(std::move(contents), {}, { notifications::link_button{ GITHUB_NEW_VERSION_AGREE, new_version->release_page_uri.ToString().c_str() } }, std::move(toast_params)); + } + } +} \ No newline at end of file diff --git a/src/common/updating/updating.h b/src/common/updating/updating.h new file mode 100644 index 0000000000..e9ee25cff8 --- /dev/null +++ b/src/common/updating/updating.h @@ -0,0 +1,31 @@ +#pragma once + +#include +#include +#include +#include + +#include + +namespace updating +{ + std::wstring get_msi_package_path(); + bool uninstall_msi_version(const std::wstring& package_path); + bool offer_msi_uninstallation(); + + std::future uninstall_previous_msix_version_async(); + + struct new_version_download_info + { + winrt::Windows::Foundation::Uri release_page_uri; + std::wstring version_string; + winrt::Windows::Foundation::Uri msi_download_url; + std::wstring msi_filename; + }; + + std::future> get_new_github_version_info_async(); + std::future try_autoupdate(const bool download_updates_automatically); + std::filesystem::path get_pending_updates_path(); + + constexpr inline std::wstring_view installer_filename_pattern = L"powertoyssetup"; +} \ No newline at end of file diff --git a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj b/src/common/updating/updating.vcxproj similarity index 98% rename from src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj rename to src/common/updating/updating.vcxproj index b0e4168daa..31eba75a8c 100644 --- a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj +++ b/src/common/updating/updating.vcxproj @@ -22,8 +22,9 @@ 16.0 {17DA04DF-E393-4397-9CF0-84DABE11032E} Win32Proj - msitomsixupgradelib + updating 10.0 + updating @@ -171,11 +172,11 @@ - + - + Create Create diff --git a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj.filters b/src/common/updating/updating.vcxproj.filters similarity index 92% rename from src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj.filters rename to src/common/updating/updating.vcxproj.filters index 9d66a9cb27..c708d3e9f6 100644 --- a/src/common/msi_to_msix_upgrade_lib/msi_to_msix_upgrade_lib.vcxproj.filters +++ b/src/common/updating/updating.vcxproj.filters @@ -18,7 +18,7 @@ Header Files - + Header Files @@ -26,7 +26,7 @@ Source Files - + Source Files diff --git a/src/common/version.cpp b/src/common/version.cpp new file mode 100644 index 0000000000..3797e96675 --- /dev/null +++ b/src/common/version.cpp @@ -0,0 +1,21 @@ +#include "pch.h" +#include "version.h" + +version_architecture get_current_architecture() +{ + // TODO: detect ARM build with #ifdef + return version_architecture::x64; +} + +const wchar_t* get_architecture_string(const version_architecture v) +{ + switch (v) + { + case version_architecture::x64: + return L"x64"; + case version_architecture::arm: + return L"arm"; + default: + throw std::runtime_error("unknown architecture"); + } +} \ No newline at end of file diff --git a/src/common/version.h b/src/common/version.h index 264b8905cc..8417e53194 100644 --- a/src/common/version.h +++ b/src/common/version.h @@ -2,7 +2,7 @@ #define STRINGIZE2(s) #s #define STRINGIZE(s) STRINGIZE2(s) - + #include "Generated Files\version_gen.h" #define FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, 0 @@ -14,3 +14,12 @@ #define COMPANY_NAME "Microsoft Corporation" #define COPYRIGHT_NOTE "Copyright (C) 2019 Microsoft Corporation" + +enum class version_architecture +{ + x64, + arm +}; + +version_architecture get_current_architecture(); +const wchar_t* get_architecture_string(const version_architecture); \ No newline at end of file diff --git a/src/runner/action_runner_utils.cpp b/src/runner/action_runner_utils.cpp new file mode 100644 index 0000000000..a0870dec6d --- /dev/null +++ b/src/runner/action_runner_utils.cpp @@ -0,0 +1,28 @@ +#include "pch.h" + +#include "action_runner_utils.h" + +#include +#include + +SHELLEXECUTEINFOW launch_action_runner(const wchar_t* cmdline) +{ + std::wstring action_runner_path; + if (winstore::running_as_packaged()) + { + action_runner_path = winrt::Windows::ApplicationModel::Package::Current().InstalledLocation().Path(); + } + else + { + action_runner_path = get_module_folderpath(); + } + + action_runner_path += L"\\action_runner.exe"; + SHELLEXECUTEINFOW sei{ sizeof(sei) }; + sei.fMask = { SEE_MASK_FLAG_NO_UI | SEE_MASK_NOASYNC | SEE_MASK_NOCLOSEPROCESS }; + sei.lpFile = action_runner_path.c_str(); + sei.nShow = SW_SHOWNORMAL; + sei.lpParameters = cmdline; + ShellExecuteExW(&sei); + return sei; +} diff --git a/src/runner/action_runner_utils.h b/src/runner/action_runner_utils.h new file mode 100644 index 0000000000..67ef54b8ec --- /dev/null +++ b/src/runner/action_runner_utils.h @@ -0,0 +1,15 @@ +#pragma once + +#define WIN32_LEAN_AND_MEAN +#include + +SHELLEXECUTEINFOW launch_action_runner(const wchar_t* cmdline); + +const inline wchar_t* UPDATE_NOW_LAUNCH_STAGE1_START_PT_CMDARG = L"-update_now_and_start_pt"; +const inline wchar_t* UPDATE_NOW_LAUNCH_STAGE1_CMDARG = L"-update_now"; + +const inline wchar_t* UPDATE_NOW_LAUNCH_STAGE2_CMDARG = L"-update_now_stage_2"; +const inline wchar_t* UPDATE_STAGE2_RESTART_PT_CMDARG = L"restart"; +const inline wchar_t* UPDATE_STAGE2_DONT_START_PT_CMDARG = L"dont_start"; + +const inline wchar_t* UPDATE_REPORT_SUCCESS = L"-report_update_success"; diff --git a/src/runner/general_settings.cpp b/src/runner/general_settings.cpp index 73a6787e5f..09fe4868c6 100644 --- a/src/runner/general_settings.cpp +++ b/src/runner/general_settings.cpp @@ -10,8 +10,10 @@ #include "trace.h" +// TODO: would be nice to get rid of these globals, since they're basically cached json settings static std::wstring settings_theme = L"system"; static bool run_as_elevated = false; +static bool download_updates_automatically = true; // TODO: add resource.rc for settings project and localize namespace localized_strings @@ -40,6 +42,7 @@ json::JsonObject GeneralSettings::to_json() result.SetNamedValue(L"is_elevated", json::value(isElevated)); result.SetNamedValue(L"run_elevated", json::value(isRunElevated)); + result.SetNamedValue(L"download_updates_automatically", json::value(downloadUpdatesAutomatically)); result.SetNamedValue(L"is_admin", json::value(isAdmin)); result.SetNamedValue(L"theme", json::value(theme)); result.SetNamedValue(L"system_theme", json::value(systemTheme)); @@ -57,19 +60,22 @@ json::JsonObject load_general_settings() settings_theme = L"system"; } run_as_elevated = loaded.GetNamedBoolean(L"run_elevated", false); + download_updates_automatically = loaded.GetNamedBoolean(L"download_updates_automatically", true); + return loaded; } -GeneralSettings get_settings() +GeneralSettings get_general_settings() { GeneralSettings settings{ .isPackaged = winstore::running_as_packaged(), .isElevated = is_process_elevated(), .isRunElevated = run_as_elevated, .isAdmin = check_user_is_admin(), + .downloadUpdatesAutomatically = download_updates_automatically, .theme = settings_theme, .systemTheme = WindowsColors::is_dark_mode() ? L"dark" : L"light", - .powerToysVersion = get_product_version(), + .powerToysVersion = get_product_version() }; if (winstore::running_as_packaged()) @@ -107,16 +113,12 @@ GeneralSettings get_settings() return settings; } -json::JsonObject get_general_settings() -{ - auto settings = get_settings(); - return settings.to_json(); -} - void apply_general_settings(const json::JsonObject& general_configs) { run_as_elevated = general_configs.GetNamedBoolean(L"run_elevated", false); + download_updates_automatically = general_configs.GetNamedBoolean(L"download_updates_automatically", true); + if (json::has(general_configs, L"startup", json::JsonValueType::Boolean)) { const bool startup = general_configs.GetNamedBoolean(L"startup"); @@ -192,7 +194,7 @@ void apply_general_settings(const json::JsonObject& general_configs) settings_theme = general_configs.GetNamedString(L"theme"); } - GeneralSettings save_settings = get_settings(); + GeneralSettings save_settings = get_general_settings(); PTSettingsHelper::save_general_settings(save_settings.to_json()); Trace::SettingsChanged(save_settings); } @@ -217,7 +219,9 @@ void start_initial_powertoys() } } } - catch (...) { } + catch (...) + { + } if (powertoys_to_disable.empty()) { diff --git a/src/runner/general_settings.h b/src/runner/general_settings.h index 9e942c1eb9..d72b970d51 100644 --- a/src/runner/general_settings.h +++ b/src/runner/general_settings.h @@ -11,6 +11,7 @@ struct GeneralSettings bool isElevated; bool isRunElevated; bool isAdmin; + bool downloadUpdatesAutomatically; std::wstring theme; std::wstring systemTheme; std::wstring powerToysVersion; @@ -19,6 +20,6 @@ struct GeneralSettings }; json::JsonObject load_general_settings(); -json::JsonObject get_general_settings(); +GeneralSettings get_general_settings(); void apply_general_settings(const json::JsonObject& general_configs); void start_initial_powertoys(); diff --git a/src/runner/main.cpp b/src/runner/main.cpp index 0c197f103d..8f5d9ef6f9 100644 --- a/src/runner/main.cpp +++ b/src/runner/main.cpp @@ -13,12 +13,14 @@ #include #include -#include #include #include -#include + +#include #include "update_state.h" +#include "update_utils.h" +#include "action_runner_utils.h" #include @@ -33,9 +35,6 @@ namespace localized_strings { const wchar_t MSI_VERSION_IS_ALREADY_RUNNING[] = L"An older version of PowerToys is already running."; const wchar_t OLDER_MSIX_UNINSTALLED[] = L"An older MSIX version of PowerToys was uninstalled."; - - const wchar_t GITHUB_NEW_VERSION_AVAILABLE_OFFER_VISIT[] = L"An update to PowerToys is available. Visit our GitHub page to get "; - const wchar_t GITHUB_NEW_VERSION_AGREE[] = L"Visit"; } namespace @@ -78,78 +77,6 @@ wil::unique_mutex_nothrow create_msix_mutex() return create_runner_mutex(true); } -bool start_msi_uninstallation_sequence() -{ - const auto package_path = get_msi_package_path(); - - if (package_path.empty()) - { - // No MSI version detected - return true; - } - - if (!offer_msi_uninstallation()) - { - // User declined to uninstall or opted for "Don't show again" - return false; - } - - std::wstring action_runner_path{ winrt::Windows::ApplicationModel::Package::Current().InstalledLocation().Path() }; - action_runner_path += L"\\action_runner.exe"; - SHELLEXECUTEINFOW sei{ sizeof(sei) }; - sei.fMask = { SEE_MASK_FLAG_NO_UI | SEE_MASK_NOASYNC | SEE_MASK_NOCLOSEPROCESS }; - sei.lpFile = action_runner_path.c_str(); - sei.nShow = SW_SHOWNORMAL; - sei.lpParameters = L"-uninstall_msi"; - ShellExecuteExW(&sei); - WaitForSingleObject(sei.hProcess, INFINITE); - DWORD exit_code = 0; - GetExitCodeProcess(sei.hProcess, &exit_code); - CloseHandle(sei.hProcess); - return exit_code == 0; -} - -std::future check_github_updates() -{ - const auto new_version = co_await check_for_new_github_release_async(); - if (!new_version) - { - co_return; - } - using namespace localized_strings; - - std::wstring contents = GITHUB_NEW_VERSION_AVAILABLE_OFFER_VISIT; - contents += new_version->version_string; - contents += L'.'; - notifications::show_toast_with_activations(std::move(contents), {}, { notifications::link_button{ GITHUB_NEW_VERSION_AGREE, new_version->release_page_uri.ToString().c_str() } }); -} - -void github_update_checking_worker() -{ - const int64_t update_check_period_minutes = 60 * 24; - - auto state = UpdateState::load(); - for (;;) - { - int64_t sleep_minutes_till_next_update = 0; - if (state.github_update_last_checked_date.has_value()) - { - int64_t last_checked_minutes_ago = timeutil::diff::in_minutes(timeutil::now(), *state.github_update_last_checked_date); - if (last_checked_minutes_ago < 0) - { - last_checked_minutes_ago = update_check_period_minutes; - } - sleep_minutes_till_next_update = max(0, update_check_period_minutes - last_checked_minutes_ago); - } - - std::this_thread::sleep_for(std::chrono::minutes(sleep_minutes_till_next_update)); - - check_github_updates().get(); - state.github_update_last_checked_date.emplace(timeutil::now()); - state.save(); - } -} - void open_menu_from_another_instance() { HWND hwnd_main = FindWindow(L"PToyTrayIconWindow", NULL); @@ -172,7 +99,7 @@ int runner(bool isProcessElevated) try { std::thread{ [] { - github_update_checking_worker(); + github_update_worker(); } }.detach(); if (winstore::running_as_packaged()) @@ -183,13 +110,12 @@ int runner(bool isProcessElevated) } else { - std::thread{[] { - if(uninstall_previous_msix_version_async().get()) + std::thread{ [] { + if (updating::uninstall_previous_msix_version_async().get()) { notifications::show_toast(localized_strings::OLDER_MSIX_UNINSTALLED); } - }}.detach(); - + } }.detach(); } notifications::register_background_toast_handler(); @@ -243,7 +169,8 @@ enum class SpecialMode { None, Win32ToastNotificationCOMServer, - ToastNotificationHandler + ToastNotificationHandler, + ReportSuccessfulUpdate }; SpecialMode should_run_in_special_mode(const int n_cmd_args, LPWSTR* cmd_arg_list) @@ -258,6 +185,10 @@ SpecialMode should_run_in_special_mode(const int n_cmd_args, LPWSTR* cmd_arg_lis { return SpecialMode::ToastNotificationHandler; } + else if (n_cmd_args == 2 && !wcscmp(UPDATE_REPORT_SUCCESS, cmd_arg_list[i])) + { + return SpecialMode::ReportSuccessfulUpdate; + } } return SpecialMode::None; @@ -281,6 +212,19 @@ toast_notification_handler_result toast_notification_handler(const std::wstring_ { return disable_cant_drag_elevated_warning() ? toast_notification_handler_result::exit_success : toast_notification_handler_result::exit_error; } + else if (param == L"update_now/") + { + launch_action_runner(UPDATE_NOW_LAUNCH_STAGE1_CMDARG); + return toast_notification_handler_result::exit_success; + } + else if (param == L"schedule_update/") + { + UpdateState::store([](UpdateState& state) { + state.pending_update = true; + }); + + return toast_notification_handler_result::exit_success; + } else { return toast_notification_handler_result::exit_error; @@ -291,6 +235,11 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine { winrt::init_apartment(); + if (launch_pending_update()) + { + return 0; + } + int n_cmd_args = 0; LPWSTR* cmd_arg_list = CommandLineToArgvW(GetCommandLineW(), &n_cmd_args); switch (should_run_in_special_mode(n_cmd_args, cmd_arg_list)) @@ -305,6 +254,10 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine case toast_notification_handler_result::exit_success: return 0; } + case SpecialMode::ReportSuccessfulUpdate: + notifications::show_toast(GET_RESOURCE_STRING(IDS_AUTOUPDATE_SUCCESS)); + break; + case SpecialMode::None: // continue as usual break; diff --git a/src/runner/resource.h b/src/runner/resource.h index 4c46fef4c9..bd66019edb 100644 --- a/src/runner/resource.h +++ b/src/runner/resource.h @@ -6,6 +6,7 @@ #define IDS_COULDNOT_RESTART_NONELEVATED 105 #define IDS_COULDNOT_RESTART_ELEVATED 106 #define IDS_ANOTHER_INSTANCE_RUNNING 107 +#define IDS_AUTOUPDATE_SUCCESS 108 #define ID_EXIT_MENU_COMMAND 40001 #define ID_SETTINGS_MENU_COMMAND 40002 diff --git a/src/runner/runner.rc b/src/runner/runner.rc index 18cf1bf8d6..99aad3ad70 100644 --- a/src/runner/runner.rc +++ b/src/runner/runner.rc @@ -10,6 +10,7 @@ IDS_COULDNOT_RESTART_NONELEVATED "Could not start PowerToys as a user!" IDS_COULDNOT_RESTART_ELEVATED "Could not start PowerToys as an administrator!" IDS_ANOTHER_INSTANCE_RUNNING "PowerToys is already running." + IDS_AUTOUPDATE_SUCCESS "PowerToys was successfully updated!" END diff --git a/src/runner/runner.vcxproj b/src/runner/runner.vcxproj index 8e1a891e96..264a6f5bd4 100644 --- a/src/runner/runner.vcxproj +++ b/src/runner/runner.vcxproj @@ -105,6 +105,7 @@ + @@ -121,14 +122,17 @@ + + + @@ -234,7 +238,7 @@ {74485049-c722-400f-abe5-86ac52d929b3} - + {17da04df-e393-4397-9cf0-84dabe11032e} diff --git a/src/runner/runner.vcxproj.filters b/src/runner/runner.vcxproj.filters index 41c2e61788..2359edf1f6 100644 --- a/src/runner/runner.vcxproj.filters +++ b/src/runner/runner.vcxproj.filters @@ -42,6 +42,12 @@ Utils + + Utils + + + Utils + @@ -85,6 +91,12 @@ Utils + + Utils + + + Utils + diff --git a/src/runner/settings_window.cpp b/src/runner/settings_window.cpp index 2af4e5e4f5..ea86f4e916 100644 --- a/src/runner/settings_window.cpp +++ b/src/runner/settings_window.cpp @@ -40,7 +40,7 @@ json::JsonObject get_all_settings() { json::JsonObject result; - result.SetNamedValue(L"general", get_general_settings()); + result.SetNamedValue(L"general", get_general_settings().to_json()); result.SetNamedValue(L"powertoys", get_power_toys_settings()); return result; } @@ -243,7 +243,7 @@ void run_settings_window() DWORD powertoys_pid = GetCurrentProcessId(); // Arg 4: settings theme. - const std::wstring settings_theme_setting{ get_general_settings().GetNamedString(L"theme").c_str() }; + const std::wstring settings_theme_setting{ get_general_settings().theme }; std::wstring settings_theme; if (settings_theme_setting == L"dark" || (settings_theme_setting == L"system" && WindowsColors::is_dark_mode())) { diff --git a/src/runner/trace.cpp b/src/runner/trace.cpp index 26c0597371..5e5bdcbf38 100644 --- a/src/runner/trace.cpp +++ b/src/runner/trace.cpp @@ -55,6 +55,7 @@ void Trace::SettingsChanged(const GeneralSettings& settings) TraceLoggingWideString(settings.startupDisabledReason.c_str(), "StartupDisabledReason"), TraceLoggingWideString(enabledModules.c_str(), "ModulesEnabled"), TraceLoggingBoolean(settings.isRunElevated, "AlwaysRunElevated"), + TraceLoggingBoolean(settings.downloadUpdatesAutomatically, "DownloadUpdatesAutomatically"), TraceLoggingWideString(settings.theme.c_str(), "Theme"), ProjectTelemetryPrivacyDataTag(ProjectTelemetryTag_ProductAndServicePerformance), TraceLoggingBoolean(TRUE, "UTCReplace_AppSessionGuid"), diff --git a/src/runner/tray_icon.cpp b/src/runner/tray_icon.cpp index 6e8e03d574..04bf03322d 100644 --- a/src/runner/tray_icon.cpp +++ b/src/runner/tray_icon.cpp @@ -164,17 +164,16 @@ void start_tray_icon() { UINT id_tray_icon = wm_icon_notify = RegisterWindowMessageW(L"WM_PowerToysIconNotify"); - static LPCWSTR class_name = L"PToyTrayIconWindow"; WNDCLASS wc = {}; wc.hCursor = LoadCursor(nullptr, IDC_ARROW); wc.hInstance = h_instance; - wc.lpszClassName = class_name; + wc.lpszClassName = pt_tray_icon_window_class; wc.style = CS_HREDRAW | CS_VREDRAW; wc.lpfnWndProc = tray_icon_window_proc; wc.hIcon = icon; RegisterClass(&wc); auto hwnd = CreateWindowW(wc.lpszClassName, - L"PToyTrayIconWindow", + pt_tray_icon_window_class, WS_OVERLAPPEDWINDOW | WS_POPUP, CW_USEDEFAULT, CW_USEDEFAULT, diff --git a/src/runner/tray_icon.h b/src/runner/tray_icon.h index 1180bc5e71..f97cc6ea95 100644 --- a/src/runner/tray_icon.h +++ b/src/runner/tray_icon.h @@ -9,3 +9,5 @@ void open_settings_window(); typedef void (*main_loop_callback_function)(PVOID); // Calls a callback in _callback bool dispatch_run_on_main_ui_thread(main_loop_callback_function _callback, PVOID data); + +const inline wchar_t* pt_tray_icon_window_class = L"PToyTrayIconWindow"; \ No newline at end of file diff --git a/src/runner/update_state.cpp b/src/runner/update_state.cpp index 97ea677197..d52b5f86d0 100644 --- a/src/runner/update_state.cpp +++ b/src/runner/update_state.cpp @@ -8,31 +8,59 @@ namespace { const wchar_t PERSISTENT_STATE_FILENAME[] = L"\\update_state.json"; + const wchar_t UPDATE_STATE_MUTEX[] = L"PTUpdateStateMutex"; } -UpdateState UpdateState::load() +UpdateState deserialize(const json::JsonObject& json) { - const auto file_name = PTSettingsHelper::get_root_save_folder_location() + PERSISTENT_STATE_FILENAME; - auto json = json::from_file(file_name); - UpdateState state; + UpdateState result; - if (!json) - { - return state; - } + result.github_update_last_checked_date = timeutil::from_string(json.GetNamedString(L"github_update_last_checked_date", L"invalid").c_str()); + result.pending_update = json.GetNamedBoolean(L"pending_update", false); - state.github_update_last_checked_date = timeutil::from_string(json->GetNamedString(L"github_update_last_checked_date", L"invalid").c_str()); - - return state; + return result; } -void UpdateState::save() +json::JsonObject serialize(const UpdateState& state) { json::JsonObject json; - if (github_update_last_checked_date.has_value()) + if (state.github_update_last_checked_date.has_value()) { - json.SetNamedValue(L"github_update_last_checked_date", json::value(timeutil::to_string(*github_update_last_checked_date))); + json.SetNamedValue(L"github_update_last_checked_date", json::value(timeutil::to_string(*state.github_update_last_checked_date))); + } + json.SetNamedValue(L"pending_update", json::value(state.pending_update)); + + return json; +} + +UpdateState UpdateState::read() +{ + const auto file_name = PTSettingsHelper::get_root_save_folder_location() + PERSISTENT_STATE_FILENAME; + std::optional json; + { + wil::unique_mutex_nothrow mutex{ CreateMutexW(nullptr, FALSE, UPDATE_STATE_MUTEX) }; + auto lock = mutex.acquire(); + json = json::from_file(file_name); + } + return json ? deserialize(*json) : UpdateState{}; +} + +void UpdateState::store(std::function state_modifier) +{ + const auto file_name = PTSettingsHelper::get_root_save_folder_location() + PERSISTENT_STATE_FILENAME; + + std::optional json; + { + wil::unique_mutex_nothrow mutex{ CreateMutexW(nullptr, FALSE, UPDATE_STATE_MUTEX) }; + auto lock = mutex.acquire(); + json = json::from_file(file_name); + UpdateState state; + if (json) + { + state = deserialize(*json); + } + state_modifier(state); + json.emplace(serialize(state)); + json::to_file(file_name, *json); } - const auto file_name = PTSettingsHelper::get_root_save_folder_location() + PERSISTENT_STATE_FILENAME; - json::to_file(file_name, json); } diff --git a/src/runner/update_state.h b/src/runner/update_state.h index 4431956ed0..d88bf1323d 100644 --- a/src/runner/update_state.h +++ b/src/runner/update_state.h @@ -2,11 +2,16 @@ #include #include +#include +// All fields must be default-initialized struct UpdateState { std::optional github_update_last_checked_date; + bool pending_update = false; - static UpdateState load(); - void save(); + // To prevent concurrent modification of the file, we enforce this interface, which locks the file while + // the state_modifier is active. + static void store(std::function state_modifier); + static UpdateState read(); }; \ No newline at end of file diff --git a/src/runner/update_utils.cpp b/src/runner/update_utils.cpp new file mode 100644 index 0000000000..478f5e929c --- /dev/null +++ b/src/runner/update_utils.cpp @@ -0,0 +1,90 @@ +#include "pch.h" + +#include "action_runner_utils.h" +#include "update_state.h" +#include "update_utils.h" + +#include +#include +#include + +#include +#include + +bool start_msi_uninstallation_sequence() +{ + const auto package_path = updating::get_msi_package_path(); + + if (package_path.empty()) + { + // No MSI version detected + return true; + } + + if (!updating::offer_msi_uninstallation()) + { + // User declined to uninstall or opted for "Don't show again" + return false; + } + auto sei = launch_action_runner(L"-uninstall_msi"); + + WaitForSingleObject(sei.hProcess, INFINITE); + DWORD exit_code = 0; + GetExitCodeProcess(sei.hProcess, &exit_code); + CloseHandle(sei.hProcess); + return exit_code == 0; +} + +void github_update_worker() +{ + const int64_t update_check_period_minutes = 60 * 24; + + for (;;) + { + auto state = UpdateState::read(); + int64_t sleep_minutes_till_next_update = 0; + if (state.github_update_last_checked_date.has_value()) + { + int64_t last_checked_minutes_ago = timeutil::diff::in_minutes(timeutil::now(), *state.github_update_last_checked_date); + if (last_checked_minutes_ago < 0) + { + last_checked_minutes_ago = update_check_period_minutes; + } + sleep_minutes_till_next_update = max(0, update_check_period_minutes - last_checked_minutes_ago); + } + + std::this_thread::sleep_for(std::chrono::minutes(sleep_minutes_till_next_update)); + const bool download_updates_automatically = get_general_settings().downloadUpdatesAutomatically; + try + { + updating::try_autoupdate(download_updates_automatically).get(); + } + catch (...) + { + // Couldn't autoupdate + } + UpdateState::store([](UpdateState& state) { + state.github_update_last_checked_date.emplace(timeutil::now()); + }); + } +} + +bool launch_pending_update() +{ + try + { + auto update_state = UpdateState::read(); + if (update_state.pending_update) + { + UpdateState::store([](UpdateState& state) { + state.pending_update = false; + }); + launch_action_runner(UPDATE_NOW_LAUNCH_STAGE1_START_PT_CMDARG); + return true; + } + } + catch (...) + { + } + return false; +} diff --git a/src/runner/update_utils.h b/src/runner/update_utils.h new file mode 100644 index 0000000000..1fc90eb966 --- /dev/null +++ b/src/runner/update_utils.h @@ -0,0 +1,5 @@ +#pragma once + +bool start_msi_uninstallation_sequence(); +void github_update_worker(); +bool launch_pending_update(); \ No newline at end of file diff --git a/src/settings-web/src/components/GeneralSettings.tsx b/src/settings-web/src/components/GeneralSettings.tsx index ead7f66f8a..198f196f3b 100644 --- a/src/settings-web/src/components/GeneralSettings.tsx +++ b/src/settings-web/src/components/GeneralSettings.tsx @@ -7,6 +7,7 @@ import { CustomActionSettingsControl } from './CustomActionSettingsControl'; export class GeneralSettings extends React.Component { references: any = {}; + download_updates_automatically_reference: any; startup_reference: any; elevated_reference: any; restart_reference: any; @@ -14,10 +15,11 @@ export class GeneralSettings extends React.Component { parent_on_change: Function; constructor(props: any) { super(props); - this.references={}; - this.startup_reference=null; - this.elevated_reference=null; - this.restart_reference=null; + this.references = {}; + this.download_updates_automatically_reference = null; + this.startup_reference = null; + this.elevated_reference = null; + this.restart_reference = null; this.parent_on_change = props.on_change; this.state = { settings_key: props.settings_key, @@ -42,6 +44,7 @@ export class GeneralSettings extends React.Component { }); let result : any = {}; result[this.state.settings_key]= { + download_updates_automatically: this.download_updates_automatically_reference.get_value().value, startup: this.startup_reference.get_value().value, run_elevated: this.elevated_reference != null && this.elevated_reference.get_value().value, theme: this.theme_reference.get_value().value, @@ -121,6 +124,17 @@ export class GeneralSettings extends React.Component { } General + + + + {this.download_updates_automatically_reference=input;}} + /> + + + {this.state.settings.general.startup_disabled_reason != null && diff --git a/src/settings/settings-html/dist/bundle.js b/src/settings/settings-html/dist/bundle.js index 3659336c44..9568e848c4 100644 --- a/src/settings/settings-html/dist/bundle.js +++ b/src/settings/settings-html/dist/bundle.js @@ -28,4 +28,4 @@ object-assign * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -Object.defineProperty(t,"__esModule",{value:!0});var n=null,o=!1,r=3,i=-1,a=-1,s=!1,l=!1;function u(){if(!s){var e=n.expirationTime;l?C():l=!0,x(p,e)}}function c(){var e=n,t=n.next;if(n===t)n=null;else{var o=n.previous;n=o.next=t,t.previous=o}e.next=e.previous=null,o=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=r,s=a;r=e,a=t;try{var l=o()}finally{r=i,a=s}if("function"==typeof l)if(l={callback:l,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=l.next=l.previous=l;else{o=null,e=n;do{if(e.expirationTime>=t){o=e;break}e=e.next}while(e!==n);null===o?o=n:o===n&&(n=l,u()),(t=o.previous).next=o.previous=l,l.next=o,l.previous=t}}function d(){if(-1===i&&null!==n&&1===n.priorityLevel){s=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?u():l=!1}}}function p(e){s=!0;var r=o;o=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{c()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{c()}while(null!==n&&!w())}finally{s=!1,o=r,null!==n?u():l=!1,d()}}var f,h,m=Date,g="function"==typeof setTimeout?setTimeout:void 0,v="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function _(e){f=y((function(t){v(h),e(t)})),h=g((function(){b(f),e(t.unstable_now())}),100)}if("object"==typeof performance&&"function"==typeof performance.now){var k=performance;t.unstable_now=function(){return k.now()}}else t.unstable_now=function(){return m.now()};var x,C,w,S=null;if("undefined"!=typeof window?S=window:void 0!==e&&(S=e),S&&S._schedMock){var E=S._schedMock;x=E[0],C=E[1],w=E[2],t.unstable_now=E[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var T=null,I=function(e){if(null!==T)try{T(e)}finally{T=null}};x=function(e){null!==T?setTimeout(x,0,e):(T=e,setTimeout(I,0,!1))},C=function(){T=null},w=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var P=null,M=!1,N=-1,D=!1,A=!1,B=0,F=33,O=33;w=function(){return B<=t.unstable_now()};var R=new MessageChannel,L=R.port2;R.port1.onmessage=function(){M=!1;var e=P,n=N;P=null,N=-1;var o=t.unstable_now(),r=!1;if(0>=B-o){if(!(-1!==n&&n<=o))return D||(D=!0,_(H)),P=e,void(N=n);r=!0}if(null!==e){A=!0;try{e(r)}finally{A=!1}}};var H=function(e){if(null!==P){_(H);var t=e-B+O;tt&&(t=8),O=tt?L.postMessage(void 0):D||(D=!0,_(H))},C=function(){P=null,M=!1,N=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var o=r,a=i;r=e,i=t.unstable_now();try{return n()}finally{r=o,i=a,d()}},t.unstable_next=function(e){switch(r){case 1:case 2:case 3:var n=3;break;default:n=r}var o=r,a=i;r=n,i=t.unstable_now();try{return e()}finally{r=o,i=a,d()}},t.unstable_scheduleCallback=function(e,o){var a=-1!==i?i:t.unstable_now();if("object"==typeof o&&null!==o&&"number"==typeof o.timeout)o=a+o.timeout;else switch(r){case 1:o=a+-1;break;case 2:o=a+250;break;case 5:o=a+1073741823;break;case 4:o=a+1e4;break;default:o=a+5e3}if(e={callback:e,priorityLevel:r,expirationTime:o,next:null,previous:null},null===n)n=e.next=e.previous=e,u();else{a=null;var s=n;do{if(s.expirationTime>o){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=e,u()),(o=a.previous).next=a.previous=e,e.next=a,e.previous=o}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var o=e.previous;o.next=t,t.previous=o}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=r;return function(){var o=r,a=i;r=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{r=o,i=a,d()}}},t.unstable_getCurrentPriorityLevel=function(){return r},t.unstable_shouldYield=function(){return!o&&(null!==n&&n.expirationTime=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var o=function(){0;return n.nc}();o&&(e.attrs.nonce=o)}return y(t,e.attrs),m(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,o,r,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=u||(u=v(t)),o=x.bind(null,n,a,!1),r=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),m(e,t),t}(t),o=w.bind(null,n,t),r=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),o=C.bind(null,n),r=function(){g(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return f(n,t),function(e){for(var o=[],r=0;r=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function p(){for(var e=0,t=0,n=arguments.length;t=0)e(s.split(" "));else{var l=r.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(e),{classes:n,objects:o}}function b(){return void 0===_&&(_="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),_}var _=b();function k(){return{rtl:b()}}var x,C={};var w={"user-select":1};function S(e,t){var n=function(){if(!x){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;x=e?{isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return x}(),o=e[t];if(w[o]){var r=e[t+1];w[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var E,T=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function I(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=-1===T.indexOf(n)?"px":"";e[t+1]=""+o+r}}var P="left",M="right",N="@noflip",D=((E={})[P]=M,E[M]=P,E),A={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function B(e,t,n){if(e.rtl){var o=t[n];if(!o)return;var r=t[n+1];if("string"==typeof r&&r.indexOf(N)>=0)t[n+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(o.indexOf(P)>=0)t[n]=o.replace(P,M);else if(o.indexOf(M)>=0)t[n]=o.replace(M,P);else if(String(r).indexOf(P)>=0)t[n+1]=r.replace(P,M);else if(String(r).indexOf(M)>=0)t[n+1]=r.replace(M,P);else if(D[o])t[n]=D[o];else if(A[r])t[n+1]=A[r];else switch(o){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),o=parseInt(n[t],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(r,0)}}}var F="displayName";var O=/\:global\((.+?)\)/g;function R(e){if(!O.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)}),e)}function L(e,t){return e.indexOf(":global(")>=0?e.replace(O,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function H(e,t,n){var o="string"==typeof n?n.split(" "):[n];e[t+"Top"]=o[0],e[t+"Right"]=o[1]||o[0],e[t+"Bottom"]=o[2]||o[0],e[t+"Left"]=o[3]||o[1]||o[0]}function W(e,t){if(!t)return"";var n,o,r,i=[];for(var a in t)t.hasOwnProperty(a)&&a!==F&&void 0!==t[a]&&i.push(a,t[a]);for(var s=0;s-1?R(t).split(",").map((function(e){return e.trim()})).forEach((function(t){return e([r],n,L(t,o))})):e([r],n,L(t,o))}};for(var f in d)p(f)}else void 0!==l[c]&&("margin"===c||"padding"===c?H(i,c,l[c]):i[c]=l[c])}return n}(t),r=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],o=!1,r=0,i=t.__order;r0){n.subComponentStyles={};var f=n.subComponentStyles,h=function(e){if(o.hasOwnProperty(e)){var t=o[e];f[e]=function(e){return j.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var u in o)h(u)}return n}function V(){for(var e=[],t=0;t10?" (+ "+(he.length-10)+" more)":"")),me=void 0,he=[]}),2e3)))}var ve="cubic-bezier(.1,.9,.2,1)",ye="cubic-bezier(.1,.25,.75,.9)",be=G({from:{opacity:0},to:{opacity:1}}),_e=G({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),ke=nt(-10),xe=nt(-20),Ce=nt(-40),we=nt(-400),Se=nt(10),Ee=nt(20),Te=nt(40),Ie=nt(400),Pe=ot(10),Me=ot(20),Ne=ot(-10),De=ot(-20),Ae=rt(10),Be=rt(20),Fe=rt(40),Oe=rt(400),Re=rt(-10),Le=rt(-20),He=rt(-40),We=rt(-400),ze=it(-10),Ue=it(-20),Ke=it(10),je=it(20),Ve=G({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),Ge=G({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),qe=G({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Ze=G({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Qe=G({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Ye=G({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),Xe=ye,Je="0.267s",$e="0.367s",et={slideRightIn10:tt(be+","+ke,"0.367s",ve),slideRightIn20:tt(be+","+xe,"0.367s",ve),slideRightIn40:tt(be+","+Ce,"0.367s",ve),slideRightIn400:tt(be+","+we,"0.367s",ve),slideLeftIn10:tt(be+","+Se,"0.367s",ve),slideLeftIn20:tt(be+","+Ee,"0.367s",ve),slideLeftIn40:tt(be+","+Te,"0.367s",ve),slideLeftIn400:tt(be+","+Ie,"0.367s",ve),slideUpIn10:tt(be+","+Pe,"0.367s",ve),slideUpIn20:tt(be+","+Me,"0.367s",ve),slideDownIn10:tt(be+","+Ne,"0.367s",ve),slideDownIn20:tt(be+","+De,"0.367s",ve),slideRightOut10:tt(_e+","+Ae,"0.367s",ve),slideRightOut20:tt(_e+","+Be,"0.367s",ve),slideRightOut40:tt(_e+","+Fe,"0.367s",ve),slideRightOut400:tt(_e+","+Oe,"0.367s",ve),slideLeftOut10:tt(_e+","+Re,"0.367s",ve),slideLeftOut20:tt(_e+","+Le,"0.367s",ve),slideLeftOut40:tt(_e+","+He,"0.367s",ve),slideLeftOut400:tt(_e+","+We,"0.367s",ve),slideUpOut10:tt(_e+","+ze,"0.367s",ve),slideUpOut20:tt(_e+","+Ue,"0.367s",ve),slideDownOut10:tt(_e+","+Ke,"0.367s",ve),slideDownOut20:tt(_e+","+je,"0.367s",ve),scaleUpIn100:tt(be+","+Ve,"0.367s",ve),scaleDownIn100:tt(be+","+qe,"0.367s",ve),scaleUpOut103:tt(_e+","+Ze,"0.167s",ye),scaleDownOut98:tt(_e+","+Ge,"0.167s",ye),fadeIn100:tt(be,"0.167s",ye),fadeIn200:tt(be,"0.267s",ye),fadeIn400:tt(be,"0.367s",ye),fadeIn500:tt(be,"0.467s",ye),fadeOut100:tt(_e,"0.167s",ye),fadeOut200:tt(_e,"0.267s",ye),fadeOut400:tt(_e,"0.367s",ye),fadeOut500:tt(_e,"0.467s",ye),rotate90deg:tt(Qe,"0.1s",ye),rotateN90deg:tt(Ye,"0.1s",ye)};function tt(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function nt(e){return G({from:{transform:"translate3d("+e+"px,0,0)"},to:{transform:"translate3d(0,0,0)"}})}function ot(e){return G({from:{transform:"translate3d(0,"+e+"px,0)"},to:{transform:"translate3d(0,0,0)"}})}function rt(e){return G({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function it(e){return G({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var at,st,lt={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},ut={elevation4:"0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",elevation8:"0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",elevation16:"0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",elevation64:"0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)",roundedCorner2:"2px"},ct="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(at||(at={})),function(e){e.Arabic="'"+at.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+at.Cyrillic+"'",e.EastEuropean="'"+at.EastEuropean+"'",e.Greek="'"+at.Greek+"'",e.Hebrew="'"+at.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+at.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+at.Vietnamese+"'",e.WestEuropean="'"+at.WestEuropean+"'",e.Armenian="'"+at.Armenian+"'",e.Georgian="'"+at.Georgian+"'"}(st||(st={}));var dt,pt,ft,ht,mt="'Segoe UI', '"+at.WestEuropean+"'",gt={ar:st.Arabic,bg:st.Cyrillic,cs:st.EastEuropean,el:st.Greek,et:st.EastEuropean,he:st.Hebrew,hi:st.Hindi,hr:st.EastEuropean,hu:st.EastEuropean,ja:st.Japanese,kk:st.EastEuropean,ko:st.Korean,lt:st.EastEuropean,lv:st.EastEuropean,pl:st.EastEuropean,ru:st.Cyrillic,sk:st.EastEuropean,"sr-latn":st.EastEuropean,th:st.Thai,tr:st.EastEuropean,uk:st.Cyrillic,vi:st.Vietnamese,"zh-hans":st.ChineseSimplified,"zh-hant":st.ChineseTraditional,hy:st.Armenian,ka:st.Georgian};function vt(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function yt(e){if(!X&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}!function(e){e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(dt||(dt={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(pt||(pt={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(ft||(ft={}));var bt,_t,kt,xt,Ct="https://static2.sharepointonline.com/files/fabric/assets",wt=(bt=function(){if(void 0===ht){var e=yt(),t=function(e){var t=null;try{var n=$();t=n?n.localStorage.getItem(e):null}catch(e){}return t}("language");null!==t&&(ht=t),void 0===ht&&e&&(ht=e.documentElement.getAttribute("lang")),void 0===ht&&(ht="en")}return ht}(),_t=function(e){for(var t in gt)if(gt.hasOwnProperty(t)&&e&&0===t.indexOf(e))return gt[t];return mt}(bt)+", "+ct,{tiny:vt(dt.mini,pt.regular,_t),xSmall:vt(dt.xSmall,pt.regular,_t),small:vt(dt.small,pt.regular,_t),smallPlus:vt(dt.smallPlus,pt.regular,_t),medium:vt(dt.medium,pt.regular,_t),mediumPlus:vt(dt.mediumPlus,pt.regular,_t),large:vt(dt.large,pt.regular,_t),xLarge:vt(dt.xLarge,pt.semibold,_t),xLargePlus:vt(dt.xLargePlus,pt.semibold,_t),xxLarge:vt(dt.xxLarge,pt.semibold,_t),xxLargePlus:vt(dt.xxLargePlus,pt.semibold,_t),superLarge:vt(dt.superLarge,pt.semibold,_t),mega:vt(dt.mega,pt.semibold,_t)});function St(e,t,n,o){se({fontFamily:e="'"+e+"'",src:(void 0!==o?"local('"+o+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Et(e,t,n,o,r){void 0===o&&(o="segoeui");var i=e+"/"+n+"/"+o;St(t,i+"-light",pt.light,r&&r+" Light"),St(t,i+"-semilight",pt.semilight,r&&r+" SemiLight"),St(t,i+"-regular",pt.regular,r),St(t,i+"-semibold",pt.semibold,r&&r+" SemiBold")}!function(e){if(e){var t=e+"/fonts";Et(t,at.Thai,"leelawadeeui-thai","leelawadeeui"),Et(t,at.Arabic,"segoeui-arabic"),Et(t,at.Cyrillic,"segoeui-cyrillic"),Et(t,at.EastEuropean,"segoeui-easteuropean"),Et(t,at.Greek,"segoeui-greek"),Et(t,at.Hebrew,"segoeui-hebrew"),Et(t,at.Vietnamese,"segoeui-vietnamese"),Et(t,at.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Et(t,st.Selawik,"selawik","selawik"),Et(t,at.Armenian,"segoeui-armenian"),Et(t,at.Georgian,"segoeui-georgian"),St("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",pt.light),St("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",pt.semibold)}}((kt=$(),xt=kt?kt.FabricConfig:void 0,xt&&void 0!==xt.fontBaseUrl?xt.fontBaseUrl:Ct));var Tt="@media screen and (-ms-high-contrast: active)";function It(e,t){return"@media only screen and (min-width: "+e+"px) and (max-width: "+t+"px)"}var Pt,Mt="ms-Fabric--isFocusVisible",Nt="ms-Fabric--isFocusHidden";function Dt(e,t){var n=t?$(t):$();if(n){var o=n.document.body.classList;o.add(e?Mt:Nt),o.remove(e?Nt:Mt)}}function At(e,t,n,o,r,i,a){return Bt(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:o,borderColor:r,outlineColor:i,isFocusedOnly:a})}function Bt(e,t){var n,o;void 0===t&&(t={});var r=t.inset,i=void 0===r?0:r,a=t.width,s=void 0===a?1:a,l=t.position,u=void 0===l?"relative":l,c=t.highContrastStyle,d=t.borderColor,p=void 0===d?e.palette.white:d,f=t.outlineColor,h=void 0===f?e.palette.neutralSecondary:f,m=t.isFocusedOnly;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n["."+Mt+" &"+(void 0===m||m?":focus":"")+":after"]={content:'""',position:"absolute",left:i+1,top:i+1,bottom:i+1,right:i+1,border:s+"px solid "+p,outline:s+"px solid "+h,zIndex:Pt.FocusStyle,selectors:(o={},o[Tt]=c,o)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Pt||(Pt={}));var Ft=function(e,t,n,o){var r,i,a;return void 0===n&&(n="border"),void 0===o&&(o=-1),{borderColor:e,selectors:{":after":(r={pointerEvents:"none",content:"''",position:"absolute",left:o,top:o,bottom:o,right:o},r[n]="2px solid "+e,r.borderRadius=t,r.width="borderBottom"===n?"100%":void 0,r.selectors=(i={},i[Tt]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),r)}}},Ot={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden"};var Rt,Lt={none:0,insertNode:1,appendChild:2},Ht="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),Wt={};try{Wt=window}catch(e){}var zt=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=u({injectionMode:Lt.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e)}return e.getInstance=function(){if(!(Rt=Wt.__stylesheet__)||Rt._lastStyleElement&&Rt._lastStyleElement.ownerDocument!==document){var t=Wt&&Wt.FabricConfig||{};Rt=Wt.__stylesheet__=new e(t.mergeStyles)}return Rt},e.prototype.setConfig=function(e){this._config=u(u({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,o){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:o}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==Lt.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case Lt.insertNode:var o=n.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case Lt.appendChild:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),Ht||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var o=this._findPlaceholderStyleTag();o?e.insertBefore(t,o.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}(),Ut=zt.getInstance();Ut&&Ut.onReset&&zt.getInstance().onReset((function(){Kt++}));var Kt=0,jt={empty:!0},Vt={},Gt="undefined"==typeof WeakMap?null:WeakMap;function qt(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Gt)return e;var o,r=0,i=Kt;return function(){for(var a=[],s=0;s0&&r>t)&&(o=Yt(),r=0,i=Kt),l=o;for(var u=0;u-1;e[o]=i?r:ln(e[o]||{},r,n)}else e[o]=r}return n.pop(),e}var un,cn={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},dn=n(18),pn=yn({palette:lt,semanticColors:bn(lt,!1,!1),fonts:wt,isInverted:!1,disableGlobalClassNames:!1}),fn=[],hn="theme";if(!nn.getSettings([hn]).theme){var mn=$();mn&&mn.FabricConfig&&mn.FabricConfig.theme&&(pn=yn(mn.FabricConfig.theme)),nn.applySettings(((un={})[hn]=pn,un))}function gn(e){return void 0===e&&(e=!1),!0===e&&(pn=yn({},e)),pn}function vn(e,t){var n;return void 0===t&&(t=!1),pn=yn(e,t),Object(dn.a)(u(u(u(u({},pn.palette),pn.semanticColors),pn.effects),function(e){for(var t={},n=0,o=Object.keys(e.fonts);n0){n.subComponentStyles={};var f=n.subComponentStyles,h=function(e){if(o.hasOwnProperty(e)){var t=o[e];f[e]=function(e){return En.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var u in o)h(u)}return n}Q("@uifabric/styling","7.10.1");var Tn=o.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}}),In=["theme","styles"];function Pn(e,t,n,r,i){var a=(r=r||{scope:"",fields:void 0}).scope,s=r.fields,d=void 0===s?In:s;return function(r){function i(){var t=null!==r&&r.apply(this,arguments)||this;return t._inCustomizerContext=!1,t._renderContent=function(r){t._inCustomizerContext=!!r.customizations.inCustomizerContext;var i=nn.getSettings(d,a,r.customizations),s=i.styles,l=(i.dir,c(i,["styles","dir"])),p=n?n(t.props):void 0;return t._updateStyles(s),o.createElement(e,u({},l,p,t.props,{styles:t._styles}))},t._onSettingsChanged=function(){return t.forceUpdate()},t}return l(i,r),i.prototype.render=function(){return o.createElement(Tn.Consumer,null,this._renderContent)},i.prototype.componentDidMount=function(){this._inCustomizerContext||nn.observe(this._onSettingsChanged)},i.prototype.componentWillUnmount=function(){this._inCustomizerContext||nn.unobserve(this._onSettingsChanged)},i.prototype._updateStyles=function(e){var n=this;this._styles&&e===this._styles.__cachedInputs__[1]&&!this.props.styles||(this._styles=function(o){return function(e){for(var t=[],n=1;n=0)}),{},e)}var $n,eo=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[o],e.apply(n._parent)}catch(e){n._onErrorHandler&&n._onErrorHandler(e)}}),t),this._timeoutIds[o]=!0),o},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,o=0,r=$(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});o=r.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[o],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(e,t){var n=$(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var o=this;if(this._isDisposed)return this._noop;var r,i,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=(new Date).getTime(),p=n-u,f=s?a-p:a;return p>=a&&(!t||s)?(u=n,c&&(o.clearTimeout(c),c=null),r=e.apply(o._parent,i)):null===c&&l&&(c=o.setTimeout(d,f)),r};return function(){for(var e=[],t=0;t=s&&(n=!0),d=t);var r=t-d,a=s-r,h=t-p,v=!1;return null!==c&&(h>=c&&f?v=!0:a=Math.min(a,c-h)),r>=s||v||n?m(t):null!==f&&e||!u||(f=o.setTimeout(g,a)),i},v=function(){return!!f},y=function(){for(var e=[],t=0;t-1)for(var a=n.split(/[ ,]+/),s=0;s1?e[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new eo(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new to(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){this.className,this.props},t.prototype._warnMutuallyExclusive=function(e){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(e,t,n){this.className,this.props},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))},t}(o.Component);function uo(e,t,n){var o=e[n],r=t[n];(o||r)&&(e[n]=function(){var e;return r&&(e=r.apply(this,arguments)),o!==r&&(e=o.apply(this,arguments)),e})}function co(){return null}function po(){for(var e=[],t=0;t=0)e(s.split(" "));else{var l=r.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(e),{classes:n,objects:o}}function ho(e){go!==e&&(go=e)}function mo(){return void 0===go&&(go="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),go}!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(so||(so={}));var go=mo();function vo(){return{rtl:mo()}}var yo,bo={};var _o={"user-select":1};function ko(e,t){var n=function(){if(!yo){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;yo=e?{isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return yo}(),o=e[t];if(_o[o]){var r=e[t+1];_o[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var xo,Co=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function wo(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=-1===Co.indexOf(n)?"px":"";e[t+1]=""+o+r}}var So="left",Eo="right",To="@noflip",Io=((xo={})[So]=Eo,xo[Eo]=So,xo),Po={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Mo(e,t,n){if(e.rtl){var o=t[n];if(!o)return;var r=t[n+1];if("string"==typeof r&&r.indexOf(To)>=0)t[n+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(o.indexOf(So)>=0)t[n]=o.replace(So,Eo);else if(o.indexOf(Eo)>=0)t[n]=o.replace(Eo,So);else if(String(r).indexOf(So)>=0)t[n+1]=r.replace(So,Eo);else if(String(r).indexOf(Eo)>=0)t[n+1]=r.replace(Eo,So);else if(Io[o])t[n]=Io[o];else if(Po[r])t[n+1]=Po[r];else switch(o){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),o=parseInt(n[t],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(r,0)}}}var No="displayName";var Do=/\:global\((.+?)\)/g;function Ao(e){if(!Do.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)}),e)}function Bo(e,t){return e.indexOf(":global(")>=0?e.replace(Do,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Fo(e,t,n){var o="string"==typeof n?n.split(" "):[n];e[t+"Top"]=o[0],e[t+"Right"]=o[1]||o[0],e[t+"Bottom"]=o[2]||o[0],e[t+"Left"]=o[3]||o[1]||o[0]}function Oo(e,t){if(!t)return"";var n,o,r,i=[];for(var a in t)t.hasOwnProperty(a)&&a!==No&&void 0!==t[a]&&i.push(a,t[a]);for(var s=0;s-1?Ao(t).split(",").map((function(e){return e.trim()})).forEach((function(t){return e([r],n,Bo(t,o))})):e([r],n,Bo(t,o))}};for(var f in d)p(f)}else void 0!==l[c]&&("margin"===c||"padding"===c?Fo(i,c,l[c]):i[c]=l[c])}return n}(t),r=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],o=!1,r=0,i=t.__order;rKo&&(t.clear(),n=0,e.disableCaching=!0),a[Qo]}}function Xo(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function Jo(e,t){if("function"==typeof t&&t.__cachedInputs__)for(var n=0,o=t.__cachedInputs__;n0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:Zo.loaded})))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,n=e.width,o=e.height;if((t===Go.cover||t===Go.contain||t===Go.centerContain||t===Go.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var r=void 0;r=n&&o&&t!==Go.centerContain&&t!==Go.centerCover?n/o:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var i=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=i>r?qo.landscape:qo.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(o.Component),nr={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},or=Pn(tr,(function(e){var t=e.className,n=e.width,o=e.height,r=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,p=e.isCenterContain,f=e.isCenterCover,h=e.isNone,m=e.isError,g=e.isNotImageFit,v=e.theme,y=Jt(nr,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},_=$(),k=void 0!==_&&void 0===_.navigator.msMaxTouchPoints,x=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,v.fonts.medium,{overflow:"hidden"},r&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&xn.fadeIn400,(u||c||d||p||f)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],u&&[y.imageCenter,b],c&&[y.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&x,b],d&&[y.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&x,b],p&&[y.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},b],f&&[y.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},b],h&&[y.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!o&&{height:"auto",width:"100%"},!n&&!!o&&{height:"100%",width:"auto"},!!n&&!!o&&{height:"100%",width:"100%"}],l&&y.imageLandscape,!l&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",m&&"is-error"]}}),void 0,{scope:"Image"},!0),rr=V({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),ir=qt((function(e){var t=fe(e)||{subset:{},code:void 0},n=t.code,o=t.subset;return n?{children:n,iconClassName:o.className,fontFamily:o.fontFace&&o.fontFace.fontFamily}:null}),void 0,!0),ar=function(e){var t=e.iconName,n=e.className,r=e.style,i=void 0===r?{}:r,a=ir(t)||{},s=a.iconClassName,l=a.children,c=a.fontFamily,d=Jn(e,Vn),p=e["aria-label"]?{}:{role:"presentation","aria-hidden":!0};return o.createElement("i",u({"data-icon-name":t},p,d,{className:Mn("ms-Icon",rr.root,s,!t&&rr.placeholder,n),style:u({fontFamily:c},i)}),l)},sr=(qt((function(e,t,n){return ar({iconName:e,className:t,"aria-label":n})})),Yo({disableCaching:!0})),lr=Pn(function(e){function t(t){var n=e.call(this,t)||this;return n.onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===Zo.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.iconName,i=e.imageErrorAs,a=e.theme,s="string"==typeof r&&0===r.length,l=this.props.iconType===so.image||this.props.iconType===so.Image||!!this.props.imageProps,c=ir(r)||{},d=c.iconClassName,p=c.children,f=sr(n,{theme:a,className:t,iconClassName:d,isImage:l,isPlaceholder:s}),h=l?"span":"i",m=Jn(this.props,Vn,["aria-label"]),g=this.state.imageLoadError,v=u(u({},this.props.imageProps),{onLoadingStateChange:this.onImageLoadingStateChange}),y=g&&i||or,b=this.props.ariaLabel||this.props["aria-label"],_=b?{"aria-label":b}:{"aria-hidden":!this.props["aria-labelledby"]&&!v["aria-labelledby"]};return o.createElement(h,u({"data-icon-name":r},_,m,{className:f.root}),l?o.createElement(y,u({},v)):p)},t}(o.Component),(function(e){var t=e.className,n=e.iconClassName,o=e.isPlaceholder,r=e.isImage,i=e.styles;return{root:[o&&rr.placeholder,rr.root,r&&rr.image,n,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0),ur=function(e){var t=e.className,n=e.imageProps,r=Jn(e,Vn),i=e["aria-label"]?{}:{role:"presentation","aria-hidden":!n.alt&&!n["aria-labelledby"]};return o.createElement("div",u({},i,r,{className:Mn("ms-Icon",rr.root,rr.image,t)}),o.createElement(or,u({},n)))},cr={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}($o||($o={}));var dr,pr={none:0,all:1,inputOnly:2};function fr(e,t,n){void 0===n&&(n=!0);var o=!1;if(e&&t)if(n)for(o=!1;t;){var r=Nn(t);if(r===e){o=!0;break}t=r}else e.contains&&(o=e.contains(t));return o}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(dr||(dr={}));var hr="data-is-focusable",mr="data-is-visible",gr="data-focuszone-id",vr="data-is-sub-focuszone";function yr(e,t,n){return kr(e,t,!0,!1,!1,n)}function br(e,t,n){return _r(e,t,!0,!1,!0,n)}function _r(e,t,n,o,r,i,a,s){if(!t||!a&&t===e)return null;var l=xr(t);if(r&&l&&(i||!wr(t)&&!Sr(t))){var u=_r(e,t.lastElementChild,!0,!0,!0,i,a,s);if(u){if(s&&Cr(u,!0)||!s)return u;var c=_r(e,u.previousElementSibling,!0,!0,!0,i,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var p=_r(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}if(n&&l&&Cr(t,s))return t;var f=_r(e,t.previousElementSibling,!0,!0,!0,i,a,s);return f||(o?null:_r(e,t.parentElement,!0,!1,!1,i,a,s))}function kr(e,t,n,o,r,i,a,s){if(!t||t===e&&r&&!a)return null;var l=xr(t);if(n&&l&&Cr(t,s))return t;if(!r&&l&&(i||!wr(t)&&!Sr(t))){var u=kr(e,t.firstElementChild,!0,!0,!1,i,a,s);if(u)return u}if(t===e)return null;var c=kr(e,t.nextElementSibling,!0,!0,!1,i,a,s);return c||(o?null:kr(e,t.parentElement,!1,!1,!0,i,a,s))}function xr(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(mr);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Cr(e,t){if(!e||e.disabled)return!1;var n=0,o=null;e&&e.getAttribute&&(o=e.getAttribute("tabIndex"))&&(n=parseInt(o,10));var r=e.getAttribute?e.getAttribute(hr):null,i=null!==o&&n>=0,a=!!e&&"false"!==r&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===r||i);return t?-1!==n&&a:a}function wr(e){return!!(e&&e.getAttribute&&e.getAttribute(gr))}function Sr(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(vr))}function Er(e,t){return"true"!==function(e,t){var n=Dn(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var Tr,Ir=void 0;function Pr(e){if(e){if(Ir)return void(Ir=e);Ir=e;var t=$(e);t&&t.requestAnimationFrame((function(){Ir&&Ir.focus(),Ir=void 0}))}}function Mr(e){for(var t=[],n=1;n0&&e.preventDefault(),Wr.scrollHeight-Wr.scrollTop<=Wr.clientHeight&&t<0&&e.preventDefault()}},function(e,t){e&&(t.on(e,"touchstart",zr,{passive:!1}),t.on(e,"touchmove",Ur,{passive:!1}),Wr=e)}),qr=function(e,t){if(e){t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})}},Zr=function(e){e.preventDefault()};function Qr(){if(void 0===Tr){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Tr=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Tr}function Yr(e){for(var t=e,n=yt(e);t&&t!==n.body;){if("true"===t.getAttribute(Vr))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(Vr)){var o=getComputedStyle(t),r=o?o.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return t}t=t.parentElement}return t&&t!==n.body||(t=$(e)),t}var Xr,Jr={none:0,insertNode:1,appendChild:2},$r="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),ei={};try{ei=window}catch(e){}var ti=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=u({injectionMode:Jr.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e)}return e.getInstance=function(){if(!(Xr=ei.__stylesheet__)||Xr._lastStyleElement&&Xr._lastStyleElement.ownerDocument!==document){var t=ei&&ei.FabricConfig||{};Xr=ei.__stylesheet__=new e(t.mergeStyles)}return Xr},e.prototype.setConfig=function(e){this._config=u(u({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,o){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:o}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==Jr.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case Jr.insertNode:var o=n.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case Jr.appendChild:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),$r||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var o=this._findPlaceholderStyleTag();o?e.insertBefore(t,o.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function ni(){return void 0===oi&&(oi="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),oi}var oi=ni();var ri,ii={};var ai={"user-select":1};function si(e,t){var n=function(){if(!ri){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;ri=e?{isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return ri}(),o=e[t];if(ai[o]){var r=e[t+1];ai[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var li,ui=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function ci(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=-1===ui.indexOf(n)?"px":"";e[t+1]=""+o+r}}var di="left",pi="right",fi="@noflip",hi=((li={})[di]=pi,li[pi]=di,li),mi={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function gi(e,t,n){if(e.rtl){var o=t[n];if(!o)return;var r=t[n+1];if("string"==typeof r&&r.indexOf(fi)>=0)t[n+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(o.indexOf(di)>=0)t[n]=o.replace(di,pi);else if(o.indexOf(pi)>=0)t[n]=o.replace(pi,di);else if(String(r).indexOf(di)>=0)t[n+1]=r.replace(di,pi);else if(String(r).indexOf(pi)>=0)t[n+1]=r.replace(pi,di);else if(hi[o])t[n]=hi[o];else if(mi[r])t[n+1]=mi[r];else switch(o){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),o=parseInt(n[t],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(r,0)}}}var vi="displayName";var yi=/\:global\((.+?)\)/g;function bi(e){if(!yi.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)}),e)}function _i(e,t){return e.indexOf(":global(")>=0?e.replace(yi,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function ki(e,t,n){var o="string"==typeof n?n.split(" "):[n];e[t+"Top"]=o[0],e[t+"Right"]=o[1]||o[0],e[t+"Bottom"]=o[2]||o[0],e[t+"Left"]=o[3]||o[1]||o[0]}function xi(e,t){if(!t)return"";var n,o,r,i=[];for(var a in t)t.hasOwnProperty(a)&&a!==vi&&void 0!==t[a]&&i.push(a,t[a]);for(var s=0;s-1?bi(t).split(",").map((function(e){return e.trim()})).forEach((function(t){return e([r],n,_i(t,o))})):e([r],n,_i(t,o))}};for(var f in d)p(f)}else void 0!==l[c]&&("margin"===c||"padding"===c?ki(i,c,l[c]):i[c]=l[c])}return n}(t),r=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],o=!1,r=0,i=t.__order;r=0)e(s.split(" "));else{var l=r.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(e),{classes:n,objects:o}}(e instanceof Array?e:[e]),o=n.classes,r=n.objects;r.length&&o.push(wi(t||{},r));return o.join(" ")}(e,{rtl:ni()})}var Ei,Ti="data-no-vertical-wrap",Ii="data-no-horizontal-wrap",Pi=999999999,Mi=-999999999,Ni="ms-FocusZone";var Di,Ai,Bi={},Fi=new Set,Oi=["text","number","password","email","tel","url","search"],Ri=!1,Li=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=o.createRef(),n._onFocus=function(e){if(!n._portalContainsElement(e.target)){var t,o=n.props,r=o.onActiveElementChanged,i=o.doNotAllowFocusEventToPropagate,a=o.onFocusNotification,s=n._isImmediateDescendantOfZone(e.target);if(a&&a(),s)t=e.target;else for(var l=e.target;l&&l!==n._root.current;){if(Cr(l)&&n._isImmediateDescendantOfZone(l)){t=l;break}l=Nn(l,Ri)}var u=!n._activeElement;t&&t!==n._activeElement&&((s||u)&&n._setFocusAlignment(t,!0,!0),n._activeElement=t,u&&n._updateTabIndexes()),r&&r(n._activeElement,e),i&&e.stopPropagation()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onKeyDownCapture=function(e){e.which===Fn.tab&&Fi.forEach((function(e){return e._updateTabIndexes()}))},n._onMouseDown=function(e){if(!n._portalContainsElement(e.target)&&!n.props.disabled){for(var t=e.target,o=[];t&&t!==n._root.current;)o.push(t),t=Nn(t,Ri);for(;o.length&&((t=o.pop())&&Cr(t)&&n._setActiveElement(t,!0),!wr(t)););}},n._onKeyDown=function(e){if(!n._portalContainsElement(e.target)){var t=n.props,o=t.direction,r=t.disabled,i=t.isInnerZoneKeystroke;if(!(r||(n.props.onKeyDown&&n.props.onKeyDown(e),e.isDefaultPrevented()||n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if(i&&i(e)&&n._isImmediateDescendantOfZone(e.target)){var a=n._getFirstInnerZone();if(a){if(!a.focus(!0))return}else{if(!Sr(e.target))return;if(!n.focusElement(kr(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case Fn.space:if(n._tryInvokeClickForFocusable(e.target))break;return;case Fn.left:if(o!==dr.vertical&&n._moveFocusLeft())break;return;case Fn.right:if(o!==dr.vertical&&n._moveFocusRight())break;return;case Fn.up:if(o!==dr.horizontal&&n._moveFocusUp())break;return;case Fn.down:if(o!==dr.horizontal&&n._moveFocusDown())break;return;case Fn.pageDown:if(n._moveFocusPaging(!0))break;return;case Fn.pageUp:if(n._moveFocusPaging(!1))break;return;case Fn.tab:if(n.props.allowTabKey||n.props.handleTabKey===pr.all||n.props.handleTabKey===pr.inputOnly&&n._isElementInput(e.target)){var s=!1;if(n._processingTabKey=!0,o!==dr.vertical&&n._shouldWrapFocus(n._activeElement,Ii))s=(Uo()?!e.shiftKey:e.shiftKey)?n._moveFocusLeft():n._moveFocusRight();else s=e.shiftKey?n._moveFocusUp():n._moveFocusDown();if(n._processingTabKey=!1,s)break}return;case Fn.home:if(n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!1))return!1;var l=n._root.current&&n._root.current.firstChild;if(n._root.current&&l&&n.focusElement(kr(n._root.current,l,!0)))break;return;case Fn.end:if(n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!0))return!1;var u=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(_r(n._root.current,u,!0,!0,!0)))break;return;case Fn.enter:if(n._tryInvokeClickForFocusable(e.target))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(e,t,o){var r=n._focusAlignment.x,i=Math.floor(o.top),a=Math.floor(t.bottom),s=Math.floor(o.bottom),l=Math.floor(t.top);return e&&i>a||!e&&s=o.left&&r<=o.left+o.width?0:Math.abs(o.left+o.width/2-r):n._shouldWrapFocus(n._activeElement,Ti)?Pi:Mi},Dr(n),n._id=Hn("FocusZone"),n._focusAlignment={x:0,y:0},n._processingTabKey=!1,n}return l(t,e),t.getOuterZones=function(){return Fi.size},t.prototype.componentDidMount=function(){var e=this._root.current;if(Bi[this._id]=this,e){for(var t=$(e),n=Nn(e,Ri);n&&n!==this._getDocument().body&&1===n.nodeType;){if(wr(n)){this._isInnerZone=!0;break}n=Nn(n,Ri)}this._isInnerZone||(Fi.add(this),t&&1===Fi.size&&(Di=Rr(t,"keydown",this._onKeyDownCapture,!0))),this._disposables.push(Rr(e,"blur",this._onBlur,!0)),this._updateTabIndexes(),this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement),this.focus())}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||t.activeElement===e)){var n=function(e,t){for(var n=e,o=0,r=t;o-1&&(-1===i||c=0&&c<0)break}}while(r);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&o)return e?this.focusElement(kr(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(_r(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.x;return!!this._moveFocus(!0,(function(o,r){var i=-1,a=Math.floor(r.top),s=Math.floor(o.bottom);return a=s||a===t)&&(t=a,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.x;return!!this._moveFocus(!1,(function(o,r){var i=-1,a=Math.floor(r.bottom),s=Math.floor(r.top),l=Math.floor(o.top);return a>l?e._shouldWrapFocus(e._activeElement,Ti)?Pi:Mi:((-1===t&&a<=l||s===t)&&(t=s,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,Ii);return!!this._moveFocus(Uo(),(function(n,o){var r=-1;return(Uo()?parseFloat(o.top.toFixed(3))parseFloat(n.top.toFixed(3)))&&o.right<=n.right&&e.props.direction!==dr.vertical?r=n.right-o.right:t||(r=Mi),r}),void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,Ii);return!!this._moveFocus(!Uo(),(function(n,o){var r=-1;return(Uo()?parseFloat(o.bottom.toFixed(3))>parseFloat(n.top.toFixed(3)):parseFloat(o.top.toFixed(3))=n.left&&e.props.direction!==dr.vertical?r=o.left-n.left:t||(r=Mi),r}),void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0),void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var o=Yr(n);if(!o)return!1;var r=-1,i=void 0,a=-1,s=-1,l=o.clientHeight,u=n.getBoundingClientRect();do{if(n=e?kr(this._root.current,n):_r(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),p=Math.floor(u.bottom),f=Math.floor(c.bottom),h=Math.floor(u.top),m=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>p+l||!e&&f-1&&(e&&d>a?(a=d,r=m,i=n):!e&&f-1){var n=e.selectionStart,o=n!==e.selectionEnd,r=e.value,i=e.readOnly;if(o||n>0&&!t&&!i||n!==r.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Er(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Bn(e,this._root.current)},t.prototype._getDocument=function(){return yt(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:dr.bidirectional},t}(o.Component);function Hi(e){if(void 0===Ai||e){var t=$(),n=t&&t.navigator.userAgent;Ai=!!n&&-1!==n.indexOf("Macintosh")}return!!Ai}var Wi=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function zi(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function Ui(e){return!(!e.subMenuProps&&!e.items)}function Ki(e){return!(!e.isDisabled&&!e.disabled)}var ji=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];var Vi,Gi=function(e){function t(t){var n=e.call(this,t)||this;return n._skipComponentRefResolution=!0,n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return l(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=ji);var o=[],r=function(r){"function"!=typeof t[r]||void 0!==e[r]||n&&-1!==n.indexOf(r)||(o.push(r),e[r]=function(){t[r].apply(t,arguments)})};for(var i in t)r(i);return o}(this,e):this._hoisted&&(t=this,this._hoisted.forEach((function(e){return delete t[e]})))},t}(lo);function qi(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(Vi||(Vi={}));var Zi,Qi,Yi,Xi,Ji=[479,639,1023,1365,1919,99999999];function $i(e){var t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=n._getResponsiveMode();e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:Zi||Qi||Vi.large},n}return l(n,t),n.prototype.componentDidMount=function(){this._events.on(window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===Vi.unknown?null:o.createElement(e,u({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n.prototype._getResponsiveMode=function(){var e=Vi.small,t=$(Object(i.findDOMNode)(this));if(void 0!==t){try{for(;t.innerWidth>Ji[e];)e++}catch(t){e=Zi||Qi||Vi.large}Qi=e}else{if(void 0===Zi)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");e=Zi}return e},n}(Gi);return qi(e,t)}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Yi||(Yi={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Xi||(Xi={}));var ea,ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(function(){function e(e,t,n,o){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=0),this.top=n,this.bottom=o,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}());function na(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var oa=((ea={})[cr.topLeftEdge]=na(Yi.top,Yi.left),ea[cr.topCenter]=na(Yi.top),ea[cr.topRightEdge]=na(Yi.top,Yi.right),ea[cr.topAutoEdge]=na(Yi.top,void 0,!0),ea[cr.bottomLeftEdge]=na(Yi.bottom,Yi.left),ea[cr.bottomCenter]=na(Yi.bottom),ea[cr.bottomRightEdge]=na(Yi.bottom,Yi.right),ea[cr.bottomAutoEdge]=na(Yi.bottom,void 0,!0),ea[cr.leftTopEdge]=na(Yi.left,Yi.top),ea[cr.leftCenter]=na(Yi.left),ea[cr.leftBottomEdge]=na(Yi.left,Yi.bottom),ea[cr.rightTopEdge]=na(Yi.right,Yi.top),ea[cr.rightCenter]=na(Yi.right),ea[cr.rightBottomEdge]=na(Yi.right,Yi.bottom),ea);function ra(e,t){return!(e.topt.bottom)&&(!(e.leftt.right)))}function ia(e,t){var n=new Array;return e.topt.bottom&&n.push(Yi.bottom),e.leftt.right&&n.push(Yi.right),n}function aa(e,t){return e[Yi[t]]}function sa(e,t,n){return e[Yi[t]]=n,e}function la(e,t){var n=ba(t);return(aa(e,n.positiveEdge)+aa(e,n.negativeEdge))/2}function ua(e,t){return e>0?t:-1*t}function ca(e,t){return ua(e,aa(t,e))}function da(e,t,n){return ua(n,aa(e,n)-aa(t,n))}function pa(e,t,n){var o=aa(e,t)-n;return e=sa(e,t,n),e=sa(e,-1*t,aa(e,-1*t)-o)}function fa(e,t,n,o){return void 0===o&&(o=0),pa(e,n,aa(t,n)+ua(n,o))}function ha(e,t,n){return ca(n,e)>ca(n,t)}function ma(e,t,n,o,r,i,a){void 0===r&&(r=0);var s=o.alignmentEdge,l=o.alignTargetEdge,u={elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:s};i||a||(u=function(e,t,n,o,r){void 0===r&&(r=0);var i=[Yi.left,Yi.right,Yi.bottom,Yi.top];Uo()&&(i[0]*=-1,i[1]*=-1);for(var a=e,s=o.targetEdge,l=o.alignmentEdge,u=0;u<4;u++){if(ha(a,n,s))return{elementRectangle:a,targetEdge:s,alignmentEdge:l};i.splice(i.indexOf(s),1),i.length>0&&(i.indexOf(-1*s)>-1?s*=-1:(l=s,s=i.slice(-1)[0]),a=ya(e,t,{targetEdge:s,alignmentEdge:l},r))}return{elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:l}}(e,t,n,o,r));var c=ia(e,n);if(l){if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var d=function(e,t,n,o){var r=e.alignmentEdge,i=e.targetEdge,a=-1*r;return{elementRectangle:ya(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,o),targetEdge:i,alignmentEdge:a}}(u,t,r,a);if(ra(d.elementRectangle,n))return d;u=ga(ia(d.elementRectangle,n),u,n)}}else u=ga(c,u,n);return u}function ga(e,t,n){for(var o=0,r=e;oMath.abs(da(e,n,-1*t))?-1*t:t}function ka(e){return Math.sqrt(e*e*2)}function xa(e,t,n){if(void 0===e&&(e=cr.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var o=u({},oa[e]);return Uo()?(o.alignmentEdge&&o.alignmentEdge%2==0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==t?oa[t]:o):o}function Ca(e,t,n){var o=la(t,e),r=la(n,e),i=ba(e),a=i.positiveEdge,s=i.negativeEdge;return o<=r?a:s}function wa(e,t,n,o,r,i,a){var s=ya(e,t,o,r,a);return ra(s,n)?{elementRectangle:s,targetEdge:o.targetEdge,alignmentEdge:o.alignmentEdge}:ma(e,t,n,o,r,i,a)}function Sa(e,t,n){var o=-1*e.targetEdge,r=new ta(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=_a(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:ba(o).positiveEdge,n);return i[Yi[o]]=aa(t,o),i[Yi[a]]=da(t,r,a),{elementPosition:u({},i),closestEdge:Ca(e.targetEdge,t,r),targetEdge:o}}function Ea(e,t){var n=t.targetRectangle,o=ba(t.targetEdge),r=o.positiveEdge,i=o.negativeEdge,a=la(n,t.targetEdge),s=new ta(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new ta(0,e,0,e);return ha(l=va(l=pa(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-ca(r,t.elementRectangle)),s,r)?ha(l,s,i)||(l=fa(l,s,i)):l=fa(l,s,r),l}function Ta(e){var t=e.getBoundingClientRect();return new ta(t.left,t.right,t.top,t.bottom)}function Ia(e){return new ta(e.left,e.right,e.top,e.bottom)}function Pa(e,t,n,o,r){var i=0,a=oa[t],s=r?-1*a.targetEdge:a.targetEdge;return(i=s===Yi.top?aa(e,a.targetEdge)-o.top-n:s===Yi.bottom?o.bottom-aa(e,a.targetEdge)-n:o.bottom-e.top-n)>0?i:o.height}function Ma(e,t,n,o){var r=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var o=t;n=new ta(o.clientX,o.clientX,o.clientY,o.clientY)}else if(t.getBoundingClientRect)n=Ta(t);else{var r=t;n=new ta(r.x,r.x,r.y,r.y)}if(!ra(n,e))for(var i=0,a=ia(n,e);i0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(o.Component),Oa=((Ba={})[Yi.top]=xn.slideUpIn10,Ba[Yi.bottom]=xn.slideDownIn10,Ba[Yi.left]=xn.slideLeftIn10,Ba[Yi.right]=xn.slideRightIn10,Ba),Ra=Yo({disableCaching:!0}),La=0,Ha=0,Wa={opacity:0,filter:"opacity(0)"},za=["role","aria-roledescription"],Ua=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=o.createRef(),n._calloutElement=o.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props.preventDismissOnScroll;n.state.positions&&!t&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){n.props.preventDismissOnResize||n.dismiss(e)},n._dismissOnLostFocus=function(e){n.props.preventDismissOnLostFocus||n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame((function(){return e=n._calloutElement.current,!!(t=kr(e,e,!0,!1,!1,!0))&&(Pr(t),!0);var e,t}),n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._mouseDownOnPopup=function(){n._isMouseDownOnPopup=!0},n._mouseUpOnPopup=function(){n._isMouseDownOnPopup=!1},n._async=new eo(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return l(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden)&&(!zn(this.props,e)||!zn(this.state,t))},t.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach((function(e){return e()}))},t.prototype.UNSAFE_componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"==typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),this._didPositionPropsChange(e,this.props)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,n=t.styles,r=t.style,i=t.ariaLabel,a=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,c=t.isBeakVisible,d=t.children,p=t.beakWidth,f=t.calloutWidth,h=t.calloutMaxWidth,m=t.finalHeight,g=t.hideOverflow,v=void 0===g?!!m:g,y=t.backgroundColor,b=t.calloutMaxHeight,_=t.onScroll,k=t.shouldRestoreFocus,x=void 0===k||k;e=this._getTarget();var C=this.state.positions,w=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,S=b&&w&&b0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds,t="function"==typeof e?e(this.props.target,this._targetWindow):e;t||(t={top:0+this.props.minPagePadding,left:0+this.props.minPagePadding,right:this._targetWindow.innerWidth-this.props.minPagePadding,bottom:this._targetWindow.innerHeight-this.props.minPagePadding,width:this._targetWindow.innerWidth-2*this.props.minPagePadding,height:this._targetWindow.innerHeight-2*this.props.minPagePadding}),this._bounds=t}return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,n=(this.props.gapSpace?this.props.gapSpace:0)+t;this._async.requestAnimationFrame((function(){e._target&&(e._maxHeight=function(e,t,n,o,r){void 0===n&&(n=0);var i=e,a=e,s=e,l=o?Ia(o):new ta(0,window.innerWidth-Qr(),0,window.innerHeight);return Pa(i.stopPropagation?new ta(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==s.x&&void 0!==s.y?new ta(s.x,s.x,s.y,s.y):Ta(a),t,n,l,r)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())}),this._target)}else this._maxHeight=this._getBounds().height;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var o=e[n],r=t[n];if(void 0===o||void 0===r)return!1;if(o.toFixed(2)!==r.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"==typeof e){var n=yt(t);this._target=n?n.querySelector(e):null,this._targetWindow=$(t)}else if(e.stopPropagation)this._targetWindow=$(e.target),this._target=e;else if(e.getBoundingClientRect){var o=e;this._targetWindow=$(o),this._target=e}else void 0!==e.current?(this._target=e.current,this._targetWindow=$(this._target)):(this._targetWindow=$(t),this._target=e);else this._targetWindow=$(t)},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame((function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight-1&&r._virtual.children.splice(i,1)}n._virtual.parent=o||void 0,o&&(o._virtual||(o._virtual={children:[]}),o._virtual.children.push(n))}(r,n._rootRef.current),n.props.insertFirst?o.insertBefore(r,o.firstChild):o.appendChild(r),n.setState({hostId:e,layerElement:r},(function(){var e=n.props,t=e.onLayerDidMount,o=e.onLayerMounted;o&&o(),t&&t()}))}},n.state={},n}return l(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){ns[e]||(ns[e]=[]),ns[e].push(t)}(e,this._createLayerElement)},t.prototype.render=function(){var e=this.state.layerElement,t=this._getClassNames(),n=this.props.eventBubblingEnabled;return o.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&i.createPortal(o.createElement($a,u({},!n&&function(){os||(os={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return os[e]=as})));return os}(),{className:t.content}),this.props.children),e))},t.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},t.prototype.componentWillUnmount=function(){var e=this.props.hostId;this._removeLayerElement(),e&&function(e,t){if(ns[e]){var n=ns[e].indexOf(t);n>=0&&(ns[e].splice(n,1),0===ns[e].length&&delete ns[e])}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,o=e.theme;return rs(n,{theme:o,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e=this.props.hostId,t=yt(this._rootRef.current);if(t){if(e)return t.getElementById(e);var n=ts;return n?t.querySelector(n):t.body}},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},t=d([es("Layer",["theme","hostId"])],t)}(o.Component),as=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var ss={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},ls=Pn(is,(function(e){var t=e.className,n=e.isNotHost,o=e.theme,r=Jt(ss,o);return{root:[r.root,o.fonts.medium,n&&[r.rootNoHost,{position:"fixed",zIndex:Pt.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=c(e,["layerProps"]),r=o.createElement(Va,u({},n));return this.props.doNotLayer?r:o.createElement(ls,u({},t),r)},t}(o.Component),cs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openSubMenu=function(){var e=t.props,n=e.item,o=e.openSubMenu,r=e.getSubmenuTarget;if(r){var i=r();Ui(n)&&o&&i&&o(n,i)}},t.dismissSubMenu=function(){var e=t.props,n=e.item,o=e.dismissSubMenu;Ui(n)&&o&&o()},t.dismissMenu=function(e){var n=t.props.dismissMenu;n&&n(void 0,e)},t}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames;return o.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=zi(n);if(t){return o.createElement(lr,{iconName:i?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null}(this.props),function(e){var t=e.item,n=e.hasIcons,r=e.classNames,i=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):o.createElement(lr,u({},i,{className:r.icon})):null}(this.props),function(e){var t=e.item,n=e.classNames;return t.text||t.name?o.createElement("span",{className:n.label},t.text||t.name):null}(this.props),function(e){var t=e.item,n=e.classNames;return t.secondaryText?o.createElement("span",{className:n.secondaryText},t.secondaryText):null}(this.props),function(e){var t=e.item,n=e.classNames,r=e.theme;return Ui(t)?o.createElement(lr,u({iconName:Uo(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null}(this.props))},t}(lo),ds=qt((function(e){return V({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),ps=It(0,639),fs=qt((function(){var e;return{selectors:(e={},e[Tt]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},e)}})),hs=qt((function(e){var t,n,o,r,i,a,s,l=e.semanticColors,c=e.fonts,d=e.palette,p=l.menuItemBackgroundHovered,f=l.menuItemTextHovered,h=l.menuItemBackgroundPressed,m=l.bodyDivider;return j({item:[c.medium,{color:l.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:m,position:"relative"},root:[At(e),c.medium,{color:l.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:36,lineHeight:36,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:l.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Tt]={color:"GrayText",opacity:1},t)},rootHovered:u({backgroundColor:p,color:f,selectors:{".ms-ContextualMenu-icon":{color:d.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:d.neutralPrimary}}},fs()),rootFocused:u({backgroundColor:d.white},fs()),rootChecked:u({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:d.neutralPrimary}}},fs()),rootPressed:u({backgroundColor:h,selectors:{".ms-ContextualMenu-icon":{color:d.themeDark},".ms-ContextualMenu-submenuIcon":{color:d.neutralPrimary}}},fs()),rootExpanded:u({backgroundColor:h,color:l.bodyTextChecked},fs()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:36,fontSize:ft.medium,width:ft.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(n={},n[ps]={fontSize:ft.large,width:ft.large},n)},iconColor:{color:l.menuIcon,selectors:(o={},o[Tt]={color:"inherit"},o["$root:hover &"]={selectors:(r={},r[Tt]={color:"HighlightText"},r)},o["$root:focus &"]={selectors:(i={},i[Tt]={color:"HighlightText"},i)},o)},iconDisabled:{color:l.disabledBodyText},checkmarkIcon:{color:l.bodySubtext,selectors:(a={},a[Tt]={color:"HighlightText"},a)},subMenuIcon:{height:36,lineHeight:36,color:d.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:ft.small,selectors:(s={":hover":{color:d.neutralPrimary},":active":{color:d.neutralPrimary}},s[ps]={fontSize:ft.medium},s)},splitButtonFlexContainer:[At(e),{display:"flex",height:36,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),ms=It(0,639),gs=qt((function(e){var t;return V(ds(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[ms]={right:32},t)},divider:{height:16,width:1}})})),vs={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu"},ys=qt((function(e,t,n,o,r,i,a,s,l,u,c,d){var p,f,h,m,g=hs(e),v=Jt(vs,e);return V({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,o&&[v.isChecked,g.rootChecked],r&&g.anchorLink,n&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p["."+Mt+" &:focus, ."+Mt+" &:focus:hover"]=g.rootFocused,p["."+Mt+" &:hover"]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - 28px)"},o&&["is-checked",g.rootChecked],(t||c)&&["is-disabled",g.rootDisabled],!(t||c)&&!o&&[{selectors:(f={":hover":g.rootHovered},f[":hover ~ ."+v.splitMenu]=g.rootHovered,f[":active"]=g.rootPressed,f["."+Mt+" &:focus, ."+Mt+" &:focus:hover"]=g.rootFocused,f["."+Mt+" &:hover"]={background:"inherit;"},f)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:"28px"},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(h={":hover":g.rootHovered,":active":g.rootPressed},h["."+Mt+" &:focus, ."+Mt+" &:focus:hover"]=g.rootFocused,h["."+Mt+" &:hover"]={background:"inherit;"},h)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,l,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!o&&[{selectors:(m={},m["."+Mt+" &:focus, ."+Mt+" &:focus:hover"]=g.rootFocused,m)}]]})})),bs=function(e){var t=e.theme,n=e.disabled,o=e.expanded,r=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return ys(t,n,o,r,i,a,s,l,u,c,d,p)},_s=Pn(cs,bs,void 0,{scope:"ContextualMenuItem"}),ks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onItemMouseEnter=function(e){var n=t.props,o=n.item,r=n.onItemMouseEnter;r&&r(o,e,e.currentTarget)},t._onItemClick=function(e){var n=t.props,o=n.item,r=n.onItemClickBase;r&&r(o,e,e.currentTarget)},t._onItemMouseLeave=function(e){var n=t.props,o=n.item,r=n.onItemMouseLeave;r&&r(o,e)},t._onItemKeyDown=function(e){var n=t.props,o=n.item,r=n.onItemKeyDown;r&&r(o,e)},t._onItemMouseMove=function(e){var n=t.props,o=n.item,r=n.onItemMouseMove;r&&r(o,e,e.currentTarget)},t._getSubMenuId=function(e){var n=t.props.getSubMenuId;if(n)return n(e)},t._getSubmenuTarget=function(){},t}return l(t,e),t.prototype.shouldComponentUpdate=function(e){return!zn(e,this.props)},t}(lo);function xs(e,t){for(var n=-1,o=0;e&&o=0&&(s.keytip.visible=this.keytips[l].keytip.visible,this.keytips=(n=this.keytips,o=s,r=l,(i=n.slice())[r]=o,i),to.raise(this,ws.KEYTIP_UPDATED,{keytip:s.keytip,uniqueID:s.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?this.persistedKeytips=this.persistedKeytips.filter((function(e){return e.uniqueID!==t})):this.keytips=this.keytips.filter((function(e){return e.uniqueID!==t}));var o=n?ws.PERSISTED_KEYTIP_REMOVED:ws.KEYTIP_REMOVED;to.raise(this,o,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){to.raise(this,ws.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){to.raise(this,ws.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){return this.keytips.map((function(e){return e.keytip}))},e.prototype.addParentOverflow=function(e){var t=p(e.keySequences);if(t.pop(),0!==t.length){var n=Cs(this.getKeytips(),(function(e){return function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0){for(var W=0,z=0,U=r;z0?o.createElement("li",{role:"presentation",key:s.key||e.key||"section-"+n},o.createElement("div",u({},c),o.createElement("ul",{className:this._classNames.list},s.topDivider&&this._renderSeparator(n,t,!0,!0),l&&this._renderListItem(l,e.key||n,t,e.title),s.items.map((function(e,t){return a._renderMenuItem(e,t,t,s.items.length,r,i)})),s.bottomDivider&&this._renderSeparator(n,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,n,r){return o.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},t.prototype._renderSeparator=function(e,t,n,r){return r||e>0?o.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,n,o,r,i,a){return e.onRender?e.onRender(u({"aria-posinset":o+1,"aria-setsize":r},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,o,r,i,a):e.split&&Ui(e)?this._renderSplitButton(e,t,n,o,r,i,a):this._renderButtonItem(e,t,n,o,r,i,a)},t.prototype._renderHeaderMenuItem=function(e,t,n,r,i){var a=this.props.contextualMenuItemAs,s=void 0===a?_s:a,l=e.itemProps,c=e.id,d=l&&Jn(l,Xn);return o.createElement("div",u({id:c,className:this._classNames.header},d,{style:e.style}),o.createElement(s,u({item:e,classNames:t,index:n,onCheckmarkClick:r?this._onItemClick:void 0,hasIcons:i},l)))},t.prototype._renderAnchorMenuItem=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Ns,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderButtonItem=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Ds,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderSplitButton=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Fs,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:u,onTap:this._onPointerAndTouchEvent})},t.prototype._isAltOrMeta=function(e){return e.which===Fn.alt||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._updateFocusOnMouseEvent=function(e,t,n){var o=this,r=n||t.currentTarget,i=this.props.subMenuHoverDelay,a=void 0===i?Ws:i;e.key!==this.state.expandedMenuItemKey&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===this.state.expandedMenuItemKey&&r.focus(),Ui(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout((function(){r.focus(),o.setState({expandedByMouseClick:!0}),o._onItemSubMenuExpand(e,r),o._enterTimerId=void 0}),a)):this._enterTimerId=this._async.setTimeout((function(){o._onSubMenuDismiss(t),r.focus(),o._enterTimerId=void 0}),a))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,n=e.expandedMenuItemKey,o=this._findItemByKey(n),r=null;return o&&(r={items:Ls(o),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:Uo(this.props.theme)?cr.leftTopEdge:cr.rightTopEdge,className:this.props.className,gapSpace:0,isBeakVisible:!1},o.subMenuProps&&Un(r,o.subMenuProps)),r},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var n=0,o=t;n *":{position:"relative",left:0,top:0}}}],rootDisabled:[At(e,{inset:1,highContrastStyle:l,borderColor:"transparent"}),{backgroundColor:a,borderColor:a,color:s,cursor:"default",pointerEvents:"none",selectors:(t={":hover":Qs,":focus":Qs},t[Tt]={color:"grayText",borderColor:"grayText"},t)}],iconDisabled:{color:s},menuIconDisabled:{color:s},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:Ys(r.mediumPlus.fontSize),menuIcon:Ys(r.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Ot}})),Js=qt((function(e,t){var n;return j(Xs(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"},rootHovered:{color:e.palette.themePrimary,selectors:(n={},n[Tt]={borderColor:"Highlight",color:"Highlight"},n)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent"},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)})),$s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(Zs,u({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:Js(n,t),onRenderDescription:co}))},t=d([es("ActionButton",["theme","styles"],!0)],t)}(lo),el={root:"ms-Nav",linkText:"ms-Nav-linkText",compositeLink:"ms-Nav-compositeLink",link:"ms-Nav-link",chevronButton:"ms-Nav-chevronButton",chevronIcon:"ms-Nav-chevron",navItem:"ms-Nav-navItem",navItems:"ms-Nav-navItems",group:"ms-Nav-group",groupContent:"ms-Nav-groupContent"},tl={textContainer:{overflow:"hidden"},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}};var nl=Zt((function(e){var t=e;return Zt((function(n){if(e===n)throw new Error("Attempted to compose a component with itself.");var r=n,i=Zt((function(e){return function(t){return o.createElement(r,u({},t,{defaultRender:e}))}}));return function(e){var n=e.defaultRender;return o.createElement(t,u({},e,{defaultRender:n?i(n):r}))}}))}));var ol=Zt((function(e){return Zt((function(t){var n=Zt((function(e){return function(n){return t(n,e)}}));return function(o,r){return e(o,r?n(r):t)}}))}));function rl(e,t){return ol(e)(t)}var il;var al=Yo(),sl=Pn(function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=o.createRef(),n._onRenderLink=function(e){var t=n.props,r=t.styles,i=t.groups,a=t.theme,s=al(r,{theme:a,groups:i});return o.createElement("div",{className:s.linkText},e.name)},n._renderGroup=function(e,t){var r=n.props,i=r.styles,a=r.groups,s=r.theme,l=r.onRenderGroupHeader,u=void 0===l?n._renderGroupHeader:l,c=al(i,{theme:s,isGroup:!0,isExpanded:n._isGroupExpanded(e),groups:a});return o.createElement("div",{key:t,className:c.group},e.name?u(e,n._renderGroupHeader):null,o.createElement("div",{className:c.groupContent},n._renderLinks(e.links,0)))},n._renderGroupHeader=function(e){var t=n.props,r=t.styles,i=t.groups,a=t.theme,s=t.expandButtonAriaLabel,l=al(r,{theme:a,isGroup:!0,isExpanded:n._isGroupExpanded(e),groups:i}),u=n._isGroupExpanded(e),c=(u?e.collapseAriaLabel:e.expandAriaLabel)||s;return o.createElement("button",{className:l.chevronButton,onClick:n._onGroupHeaderClicked.bind(n,e),"aria-label":c,"aria-expanded":u},o.createElement(lr,{className:l.chevronIcon,iconName:"ChevronDown"}),e.name)},Dr(n),n.state={isGroupCollapsed:{},isLinkExpandStateChanged:!1,selectedKey:t.initialSelectedKey||t.selectedKey},n}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.groups,r=e.className,i=e.isOnTop,a=e.theme;if(!n)return null;var s=n.map(this._renderGroup),l=al(t,{theme:a,className:r,isOnTop:i,groups:n});return o.createElement(Li,{direction:dr.vertical,componentRef:this._focusZone},o.createElement("nav",{role:"navigation",className:l.root,"aria-label":this.props.ariaLabel},s))},Object.defineProperty(t.prototype,"selectedKey",{get:function(){return this.state.selectedKey},enumerable:!0,configurable:!0}),t.prototype.focus=function(e){return void 0===e&&(e=!1),!(!this._focusZone||!this._focusZone.current)&&this._focusZone.current.focus(e)},t.prototype._renderNavLink=function(e,t,n){var r,i,a,s=this.props,l=s.styles,u=s.groups,c=s.theme,d=s.selectedAriaLabel,p=e.icon||e.iconProps,f=this._isLinkSelected(e),h=al(l,{theme:c,isSelected:f,isDisabled:e.disabled,isButtonEntry:e.onClick&&!e.forceAnchor,leftPadding:14*n+3+(p?0:24),groups:u}),m=e.url&&e.target&&(!(r=e.url)||/^[a-z0-9+-.]:\/\//i.test(r))?"noopener noreferrer":void 0,g=f&&d?d:void 0,v=this.props.linkAs?(i=this.props.linkAs,a=$s,nl(i)(a)):$s,y=this.props.onRenderLink?rl(this.props.onRenderLink,this._onRenderLink):this._onRenderLink;return o.createElement(v,{className:h.link,styles:tl,href:e.url||(e.forceAnchor?"#":void 0),iconProps:e.iconProps||{iconName:e.icon},onClick:e.onClick?this._onNavButtonLinkClicked.bind(this,e):this._onNavAnchorLinkClicked.bind(this,e),title:void 0!==e.title?e.title:e.name,target:e.target,rel:m,disabled:e.disabled,"aria-label":e.ariaLabel&&g?e.ariaLabel+" "+g:g||(e.ariaLabel?e.ariaLabel:void 0),link:e},y(e))},t.prototype._renderCompositeLink=function(e,t,n){var r=u({},Jn(e,Xn,["onClick"])),i=this.props,a=i.expandButtonAriaLabel,s=i.styles,l=i.groups,c=i.theme,d=al(s,{theme:c,isExpanded:!!e.isExpanded,isSelected:this._isLinkSelected(e),isLink:!0,isDisabled:e.disabled,position:14*n+1,groups:l}),p="";return e.links&&e.links.length>0&&(p=e.collapseAriaLabel||e.expandAriaLabel?e.isExpanded?e.collapseAriaLabel:e.expandAriaLabel:a?e.name+" "+a:e.name),o.createElement("div",u({},r,{key:e.key||t,className:d.compositeLink}),e.links&&e.links.length>0?o.createElement("button",{className:d.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":p,"aria-expanded":e.isExpanded?"true":"false"},o.createElement(lr,{className:d.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,n))},t.prototype._renderLink=function(e,t,n){var r=this.props,i=r.styles,a=r.groups,s=r.theme,l=al(i,{theme:s,groups:a});return o.createElement("li",{key:e.key||t,role:"listitem",className:l.navItem},this._renderCompositeLink(e,t,n),e.isExpanded?this._renderLinks(e.links,++n):null)},t.prototype._renderLinks=function(e,t){var n=this;if(!e||!e.length)return null;var r=e.map((function(e,o){return n._renderLink(e,o,t)})),i=this.props,a=i.styles,s=i.groups,l=i.theme,u=al(a,{theme:l,groups:s});return o.createElement("ul",{role:"list",className:u.navItems},r)},t.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),this._toggleCollapsed(e),t.preventDefault(),t.stopPropagation()},t.prototype._onLinkExpandClicked=function(e,t){var n=this.props.onLinkExpandClick;n&&n(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},t.prototype._preventBounce=function(e,t){!e.url&&e.forceAnchor&&t.preventDefault()},t.prototype._onNavAnchorLinkClicked=function(e,t){this._preventBounce(e,t),this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._onNavButtonLinkClicked=function(e,t){this._preventBounce(e,t),e.onClick&&e.onClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if(void 0===$()||!e.url)return!1;(il=il||document.createElement("a")).href=e.url||"";var t=il.href;return location.href===t||(location.protocol+"//"+location.host+location.pathname===t||!!location.hash&&(location.hash===e.url||(il.href=location.hash.substring(1),il.href===t)))},t.prototype._isGroupExpanded=function(e){return e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},t.prototype._toggleCollapsed=function(e){var t;if(e.name){var n=u(u({},this.state.isGroupCollapsed),((t={})[e.name]=this._isGroupExpanded(e),t));this.setState({isGroupCollapsed:n})}},t.defaultProps={groups:null},t}(o.Component),(function(e){var t,n=e.className,o=e.theme,r=e.isOnTop,i=e.isExpanded,a=e.isGroup,s=e.isLink,l=e.isSelected,u=e.isDisabled,c=e.isButtonEntry,d=e.navHeight,p=void 0===d?44:d,f=e.position,h=e.leftPadding,m=void 0===h?20:h,g=e.leftPaddingExpanded,v=void 0===g?28:g,y=e.rightPadding,b=void 0===y?20:y,_=o.palette,k=o.semanticColors,x=o.fonts,C=Jt(el,o);return{root:[C.root,n,x.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},r&&[{position:"absolute"},xn.slideRightIn40]],linkText:[C.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[C.compositeLink,{display:"block",position:"relative",color:k.bodyText},i&&"is-expanded",l&&"is-selected",u&&"is-disabled",u&&{color:k.disabledText}],link:[C.link,At(o),{display:"block",position:"relative",height:p,width:"100%",lineHeight:p+"px",textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:m,paddingRight:b,color:k.bodyText,selectors:(t={},t[Tt]={borderColor:"transparent",selectors:{":focus":{borderColor:"WindowText"}}},t)},!u&&{selectors:{".ms-Nav-compositeLink:hover &":{backgroundColor:k.bodyBackgroundHovered}}},l&&{color:k.bodyTextChecked,fontWeight:pt.semibold,backgroundColor:k.bodyBackgroundChecked,selectors:{"&:after":{borderLeft:"2px solid "+_.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},u&&{color:k.disabledText},c&&{color:_.themePrimary}],chevronButton:[C.chevronButton,At(o),x.small,{display:"block",textAlign:"left",lineHeight:p+"px",margin:"5px 0",padding:"0px, "+b+"px, 0px, "+v+"px",border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:k.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:k.bodyText}}},a&&{fontSize:x.large.fontSize,width:"100%",height:p,borderBottom:"1px solid "+k.bodyDivider},s&&{display:"block",width:v-2,height:p-2,position:"absolute",top:"1px",left:f+"px",zIndex:Pt.Nav,padding:0,margin:0},l&&{color:_.themePrimary,backgroundColor:_.neutralLighterAlt,selectors:{"&:after":{borderLeft:"2px solid "+_.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}}],chevronIcon:[C.chevronIcon,{position:"absolute",left:"8px",height:p,lineHeight:p+"px",fontSize:x.small.fontSize,transition:"transform .1s linear"},i&&{transform:"rotate(-180deg)"},s&&{top:0}],navItem:[C.navItem,{padding:0}],navItems:[C.navItems,{listStyleType:"none",padding:0,margin:0}],group:[C.group,i&&"is-expanded"],groupContent:[C.groupContent,{display:"none",marginBottom:"40px"},xn.slideDownIn20,i&&{display:"block"}]}}),void 0,{scope:"Nav"}),ll=u;function ul(e,t){for(var n=[],r=2;r0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return fl(t[e],n,o[e],o.slots&&o.slots[e],o._defaultStyles&&o._defaultStyles[e])};r.isSlot=!0,n[e]=r}};for(var i in t)r(i);return n}function fl(e,t,n,o,r){return void 0!==e.create?e.create(t,n,o,r):dl(e)(t,n,o,r)}function hl(e,t){void 0===t&&(t={});var n=t.factoryOptions,r=(void 0===n?{}:n).defaultProp,i=function(n){var r,i,a,s=(r=t.displayName,i=o.useContext(Tn),a=t.fields,nn.getSettings(a||["theme","styles","tokens"],r,i.customizations)),l=t.state;l&&(n=u(u({},n),l(n)));var c=n.theme||s.theme,d=function e(t,n){for(var o=[],r=2;r2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:vl(gl(n[0],t)),columnGap:vl(gl(n[1],t))};var o=vl(gl(e,t));return{rowGap:o,columnGap:o}}(x,t),T=E.rowGap,I=E.columnGap,P=""+-.5*I.value+I.unit,M=""+-.5*T.value+T.unit,N={textOverflow:"ellipsis"},D={"> *:not(.ms-StackItem)":{flexShrink:b?0:1}};return g?{root:[k.root,{flexWrap:"wrap",maxWidth:w,maxHeight:C,width:"auto",overflow:"visible",height:"100%"},v&&(o={},o[p?"justifyContent":"alignItems"]=bl[v]||v,o),y&&(r={},r[p?"alignItems":"justifyContent"]=bl[y]||y,r),_,{display:"flex"},p&&{height:d?"100%":"auto"}],inner:[k.inner,{display:"flex",flexWrap:"wrap",marginLeft:P,marginRight:P,marginTop:M,marginBottom:M,overflow:"visible",boxSizing:"border-box",padding:yl(S,t),width:0===I.value?"100%":"calc(100% + "+I.value+I.unit+")",maxWidth:"100vw",selectors:u({"> *":u({margin:""+.5*T.value+T.unit+" "+.5*I.value+I.unit},N)},D)},v&&(i={},i[p?"justifyContent":"alignItems"]=bl[v]||v,i),y&&(a={},a[p?"alignItems":"justifyContent"]=bl[y]||y,a),p&&{flexDirection:f?"row-reverse":"row",height:0===T.value?"100%":"calc(100% + "+T.value+T.unit+")",selectors:{"> *":{maxWidth:0===I.value?"100%":"calc(100% - "+I.value+I.unit+")"}}},!p&&{flexDirection:f?"column-reverse":"column",height:"calc(100% + "+T.value+T.unit+")",selectors:{"> *":{maxHeight:0===T.value?"100%":"calc(100% - "+T.value+T.unit+")"}}}]}:{root:[k.root,{display:"flex",flexDirection:p?f?"row-reverse":"row":f?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:d?"100%":"auto",maxWidth:w,maxHeight:C,padding:yl(S,t),boxSizing:"border-box",selectors:u((s={"> *":N},s[f?"> *:not(:last-child)":"> *:not(:first-child)"]=[p&&{marginLeft:""+I.value+I.unit},!p&&{marginTop:""+T.value+T.unit}],s),D)},m&&{flexGrow:!0===m?1:m},v&&(l={},l[p?"justifyContent":"alignItems"]=bl[v]||v,l),y&&(c={},c[p?"alignItems":"justifyContent"]=bl[y]||y,c),_]}},statics:{Item:Cl}}),Sl=qt((function(e,t){var n,o,r,i,a,s,l,c,d,p,f=e.effects,h=e.palette,m={position:"absolute",width:1,right:31,top:8,bottom:8};return j({splitButtonContainer:[At(e,{highContrastStyle:{left:-2,top:-2,bottom:-2,right:-2,border:"none"},inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:(n={},n[Tt]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none"}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(o={},o[Tt]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{selectors:(r={},r[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(i={},i[Tt]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},i)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(a={},a[Tt]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},a)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:{padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:f.roundedCorner2,borderBottomRightRadius:f.roundedCorner2,border:"1px solid "+h.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},splitButtonDivider:u(u({},m),{selectors:(s={},s[Tt]={backgroundColor:"WindowText"},s)}),splitButtonDividerDisabled:u(u({},m),{selectors:(l={},l[Tt]={backgroundColor:"GrayText"},l)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(c={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(d={},d[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},d)}},c[Tt]={border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},c)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(p={},p[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},p)}},t)})),El=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};var Tl,Il,Pl=qt((function(e,t,n){var o=Xs(e),r=Sl(e);return j(o,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:pt.semibold}},n?function(e){var t,n,o,r,i,a,s,l,c,d=e.palette,p=e.semanticColors;return{root:{backgroundColor:p.primaryButtonBackground,border:"1px solid "+p.primaryButtonBackground,color:p.primaryButtonText,selectors:(t={},t[Tt]={color:"Window",backgroundColor:"WindowText",borderColor:"WindowText",MsHighContrastAdjust:"none"},t["."+Mt+" &:focus"]={selectors:{":after":{border:"none",outlineColor:d.white}}},t)},rootHovered:{backgroundColor:p.primaryButtonBackgroundHovered,border:"1px solid "+p.primaryButtonBackgroundHovered,color:p.primaryButtonTextHovered,selectors:(n={},n[Tt]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:p.primaryButtonBackgroundPressed,border:"1px solid "+p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed,selectors:(o={},o[Tt]={color:"Window",backgroundColor:"WindowText",borderColor:"WindowText",MsHighContrastAdjust:"none"},o)},rootExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootChecked:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootDisabled:{selectors:(r={},r[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)},splitButtonContainer:{selectors:(i={},i[Tt]={border:"none"},i)},splitButtonDivider:u(u({},El()),{backgroundColor:d.white,selectors:(a={},a[Tt]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:p.primaryButtonBackground,color:p.primaryButtonText,selectors:(s={},s[Tt]={backgroundColor:"WindowText"},s[":hover"]={backgroundColor:p.primaryButtonBackgroundHovered,selectors:(l={},l[Tt]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:p.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:p.primaryButtonText},splitButtonMenuIconDisabled:{color:d.neutralTertiary,selectors:(c={},c[Tt]={color:"GrayText"},c)}}}(e):function(e){var t,n,o,r,i,a=e.semanticColors,s=e.palette,l=a.buttonBackground,c=a.buttonBackgroundPressed,d=a.buttonBackgroundHovered,p=a.buttonText,f=a.buttonTextHovered,h=a.buttonTextChecked,m=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:p},rootHovered:{backgroundColor:d,color:f,selectors:(t={},t[Tt]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:c,color:h},rootExpanded:{backgroundColor:c,color:h},rootChecked:{backgroundColor:c,color:h},rootCheckedHovered:{backgroundColor:c,color:m},rootDisabled:{selectors:(n={},n[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(o={},o[Tt]={border:"none"},o)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(r={},r[Tt]={color:"Highlight"},r)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:u(u({},El()),{backgroundColor:s.neutralTertiaryAlt,selectors:(i={},i[Tt]={backgroundColor:"WindowText"},i)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}(e),r,t)})),Ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,i=e.theme;return o.createElement(Zs,u({},this.props,{variantClassName:n?"ms-Button--primary":"ms-Button--default",styles:Pl(i,r,n),onRenderDescription:co}))},t=d([es("DefaultButton",["theme","styles"],!0)],t)}(lo),Nl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return l(t,e),t.prototype.render=function(){return o.createElement(Ml,u({},this.props,{primary:!0,onRenderDescription:co}))},t=d([es("PrimaryButton",["theme","styles"],!0)],t)}(lo);!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(Tl||(Tl={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Il||(Il={}));var Dl,Al=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return l(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?o.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(o.Component),Bl=Yo(),Fl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,i=e.ariaLive,a=e.styles,s=e.label,l=e.theme,c=e.className,d=e.labelPosition,p=r,f=Jn(this.props,Xn,["size"]),h=n;void 0===h&&void 0!==t&&(h=t===Il.large?Tl.large:Tl.medium);var m=Bl(a,{theme:l,size:h,className:c,labelPosition:d});return o.createElement("div",u({},f,{className:m.root}),o.createElement("div",{className:m.circle}),s&&o.createElement("div",{className:m.label},s),p&&o.createElement("div",{role:"status","aria-live":i},o.createElement(Al,null,o.createElement("div",{className:m.screenReaderText},p))))},t.defaultProps={size:Tl.medium,ariaLive:"polite",labelPosition:"bottom"},t}(lo),Ol={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Rl=G({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ll=Pn(Fl,(function(e){var t,n=e.theme,o=e.size,r=e.className,i=e.labelPosition,a=n.palette,s=Jt(Ol,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},r],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:Rl,animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[Tt]={borderTopColor:"Highlight"},t)},o===Tl.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],o===Tl.small&&["ms-Spinner--small",{width:16,height:16}],o===Tl.medium&&["ms-Spinner--medium",{width:20,height:20}],o===Tl.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 8px"},"right"===i&&{margin:"0 0 0 8px"},"left"===i&&{margin:"0 8px 0 0"}],screenReaderText:Ot}}),void 0,{scope:"Spinner"}),Hl={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},Wl=o.createContext({scrollablePane:void 0}),zl=Yo(),Ul=Pn(function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._stickyAboveRef=o.createRef(),n._stickyBelowRef=o.createRef(),n._contentContainer=o.createRef(),n.subscribe=function(e){n._subscribers.add(e)},n.unsubscribe=function(e){n._subscribers.delete(e)},n.addSticky=function(e){n._stickies.add(e),n.contentContainer&&(e.setDistanceFromTop(n.contentContainer),n.sortSticky(e))},n.removeSticky=function(e){n._stickies.delete(e),n._removeStickyFromContainers(e),n.notifySubscribers()},n.sortSticky=function(e,t){n.stickyAbove&&n.stickyBelow&&(t&&n._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&n._addToStickyContainer(e,n.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&n._addToStickyContainer(e,n.stickyBelow,e.stickyContentBottom))},n.updateStickyRefHeights=function(){var e=n._stickies,t=0,o=0;e.forEach((function(e){var r=e.state,i=r.isStickyTop,a=r.isStickyBottom;e.nonStickyContent&&(i&&(t+=e.nonStickyContent.offsetHeight),a&&(o+=e.nonStickyContent.offsetHeight),n._checkStickyStatus(e))})),n.setState({stickyTopHeight:t,stickyBottomHeight:o})},n.notifySubscribers=function(){n.contentContainer&&n._subscribers.forEach((function(e){e(n.contentContainer,n.stickyBelow)}))},n.getScrollPosition=function(){return n.contentContainer?n.contentContainer.scrollTop:0},n.syncScrollSticky=function(e){e&&n.contentContainer&&e.syncScroll(n.contentContainer)},n._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:n.subscribe,unsubscribe:n.unsubscribe,addSticky:n.addSticky,removeSticky:n.removeSticky,updateStickyRefHeights:n.updateStickyRefHeights,sortSticky:n.sortSticky,notifySubscribers:n.notifySubscribers,syncScrollSticky:n.syncScrollSticky}}},n._addToStickyContainer=function(e,t,o){if(t.children.length){if(!t.contains(o)){var r=[].slice.call(t.children),i=[];n._stickies.forEach((function(o){t===n.stickyAbove&&e.canStickyTop?i.push(o):e.canStickyBottom&&i.push(o)}));for(var a=void 0,s=0,l=i.sort((function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)})).filter((function(e){var o=t===n.stickyAbove?e.stickyContentTop:e.stickyContentBottom;if(o)return r.indexOf(o)>-1}));s=(e.state.distanceFromTop||0)){a=u;break}}var c=null;a&&(c=t===n.stickyAbove?a.stickyContentTop:a.stickyContentBottom),t.insertBefore(o,c)}}else t.appendChild(o)},n._removeStickyFromContainers=function(e){n.stickyAbove&&e.stickyContentTop&&n.stickyAbove.contains(e.stickyContentTop)&&n.stickyAbove.removeChild(e.stickyContentTop),n.stickyBelow&&e.stickyContentBottom&&n.stickyBelow.contains(e.stickyContentBottom)&&n.stickyBelow.removeChild(e.stickyContentBottom)},n._onWindowResize=function(){var e=n._getScrollbarWidth(),t=n._getScrollbarHeight();n.setState({scrollbarWidth:e,scrollbarHeight:t}),n.notifySubscribers()},n._getStickyContainerStyle=function(e,t){return u(u({height:e},Uo(n.props.theme)?{right:"0",left:(n.state.scrollbarWidth||n._getScrollbarWidth()||0)+"px"}:{left:"0",right:(n.state.scrollbarWidth||n._getScrollbarWidth()||0)+"px"}),t?{top:"0"}:{bottom:(n.state.scrollbarHeight||n._getScrollbarHeight()||0)+"px"})},n._onScroll=function(){var e=n.contentContainer;e&&n._stickies.forEach((function(t){t.syncScroll(e)})),n._notifyThrottled()},n._subscribers=new Set,n._stickies=new Set,n.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},n._notifyThrottled=n._async.throttle(n.notifySubscribers,50),n}return l(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this,t=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&t&&(this.contentContainer.scrollTop=t),this.setStickiesDistanceFromTop(),this._stickies.forEach((function(t){e.sortSticky(t)})),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver((function(t){var n=e._getScrollbarHeight();if(n!==e.state.scrollbarHeight&&e.setState({scrollbarHeight:n}),e.notifySubscribers(),t.some(function(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}.bind(e)))e.updateStickyRefHeights();else{var o=[];e._stickies.forEach((function(e){e.root&&e.root.contains(t[0].target)&&o.push(e)})),o.length&&o.forEach((function(e){e.forceUpdate()}))}})),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},t.prototype.componentWillUnmount=function(){this._events.off(this.contentContainer),this._events.off(window),this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},t.prototype.componentDidUpdate=function(e,t){var n=this.props.initialScrollPosition;this.contentContainer&&"number"==typeof n&&e.initialScrollPosition!==n&&(this.contentContainer.scrollTop=n),t.stickyTopHeight===this.state.stickyTopHeight&&t.stickyBottomHeight===this.state.stickyBottomHeight||this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.theme,r=e.styles,i=this.state,a=i.stickyTopHeight,s=i.stickyBottomHeight,l=zl(r,{theme:n,className:t,scrollbarVisibility:this.props.scrollbarVisibility});return o.createElement("div",u({},Jn(this.props,Xn),{ref:this._root,className:l.root}),o.createElement("div",{"aria-hidden":"true",ref:this._stickyAboveRef,className:l.stickyAbove,style:this._getStickyContainerStyle(a,!0)}),o.createElement("div",{ref:this._contentContainer,className:l.contentContainer,"data-is-scrollable":!0},o.createElement(Wl.Provider,{value:this._getScrollablePaneContext()},this.props.children)),o.createElement("div",{"aria-hidden":"true",className:l.stickyBelow,style:this._getStickyContainerStyle(s,!1)},o.createElement("div",{ref:this._stickyBelowRef,className:l.stickyBelowItems})))},t.prototype.setStickiesDistanceFromTop=function(){var e=this;this.contentContainer&&this._stickies.forEach((function(t){t.setDistanceFromTop(e.contentContainer)}))},t.prototype.forceLayoutUpdate=function(){this._onWindowResize()},t.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},t.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},t.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},t}(lo),(function(e){var t,n,o=e.className,r=e.theme,i=Jt(Hl,r),a={position:"absolute",pointerEvents:"auto"},s={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[i.root,r.fonts.medium,s,o],contentContainer:[i.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},s],stickyAbove:[{top:0,zIndex:1,selectors:(t={},t[Tt]={borderBottom:"1px solid WindowText"},t)},a],stickyBelow:[{bottom:0,selectors:(n={},n[Tt]={borderTop:"1px solid WindowText"},n)},a],stickyBelowItems:[{bottom:0},a,{width:"100%"}]}}),void 0,{scope:"ScrollablePane"});!function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"}(Dl||(Dl={}));var Kl=function(e){function t(n){var r=e.call(this,n)||this;return r._root=o.createRef(),r._firstBumper=o.createRef(),r._lastBumper=o.createRef(),r._hasFocus=!1,r._onRootFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r._hasFocus=!0},r._onRootBlur=function(e){r.props.onBlur&&r.props.onBlur(e);var t=e.relatedTarget;null===e.relatedTarget&&(t=r._getDocument().activeElement),fr(r._root.current,t)||(r._hasFocus=!1)},r._onFirstBumperFocus=function(){r._onBumperFocus(!0)},r._onLastBumperFocus=function(){r._onBumperFocus(!1)},r._onBumperFocus=function(e){if(!r.props.disabled){var t,n,o=e===r._hasFocus?r._lastBumper.current:r._firstBumper.current;if(r._root.current){var i=e===r._hasFocus?(t=r._root.current,void 0===(n=!1)&&(n=!0),_r(t,o,n,!1,!0,!0,!1,!0)):function(e,t,n,o){return void 0===o&&(o=!0),kr(e,t,o,!1,!1,n,!1,!0)}(r._root.current,o,!0,!1);i&&(r._isBumper(i)?r.focus():i.focus())}}},r._onFocusCapture=function(e){r.props.onFocusCapture&&r.props.onFocusCapture(e),e.target===e.currentTarget||r._isBumper(e.target)||(r._previouslyFocusedElementInTrapZone=e.target)},r._forceFocusInTrap=function(e){if(!r.props.disabled&&t._focusStack.length&&r===t._focusStack[t._focusStack.length-1]){var n=r._getDocument().activeElement;fr(r._root.current,n)||(r.focus(),r._hasFocus=!0,e.preventDefault(),e.stopPropagation())}},r._forceClickInTrap=function(e){if(!r.props.disabled&&t._focusStack.length&&r===t._focusStack[t._focusStack.length-1]){var n=e.target;n&&!fr(r._root.current,n)&&(r.focus(),r._hasFocus=!0,e.preventDefault(),e.stopPropagation())}},Dr(r),r}return l(t,e),t.prototype.componentDidMount=function(){this._bringFocusIntoZone(),this._updateEventHandlers(this.props)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.elementToFocusOnDismiss;t&&this._previouslyFocusedElementOutsideTrapZone!==t&&(this._previouslyFocusedElementOutsideTrapZone=t),this._updateEventHandlers(e)},t.prototype.componentDidUpdate=function(e){var t=void 0===e.forceFocusInsideTrap||e.forceFocusInsideTrap,n=void 0===this.props.forceFocusInsideTrap||this.props.forceFocusInsideTrap,o=void 0!==e.disabled&&e.disabled,r=void 0!==this.props.disabled&&this.props.disabled;!t&&n||o&&!r?this._bringFocusIntoZone():(t&&!n||!o&&r)&&this._returnFocusToInitiator()},t.prototype.componentWillUnmount=function(){this.props.disabled&&!this.props.forceFocusInsideTrap&&fr(this._root.current,this._getDocument().activeElement)||this._returnFocusToInitiator(),this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0),this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),delete this._previouslyFocusedElementInTrapZone,delete this._previouslyFocusedElementOutsideTrapZone},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,r=void 0!==n&&n,i=e.ariaLabelledBy,a=Jn(this.props,Xn),s={style:{pointerEvents:"none",position:"fixed"},tabIndex:r?-1:0,"data-is-visible":!0};return o.createElement("div",u({},a,{className:t,ref:this._root,"aria-labelledby":i,onFocusCapture:this._onFocusCapture,onFocus:this._onRootFocus,onBlur:this._onRootBlur}),o.createElement("div",u({},s,{ref:this._firstBumper,onFocus:this._onFirstBumperFocus})),this.props.children,o.createElement("div",u({},s,{ref:this._lastBumper,onFocus:this._onLastBumperFocus})))},t.prototype.focus=function(){var e=this.props,t=e.focusPreviouslyFocusedInnerElement,n=e.firstFocusableSelector;if(t&&this._previouslyFocusedElementInTrapZone&&fr(this._root.current,this._previouslyFocusedElementInTrapZone))this._focusAsync(this._previouslyFocusedElementInTrapZone);else{var o="string"==typeof n?n:n&&n(),r=null;this._root.current&&(o&&(r=this._root.current.querySelector("."+o)),r||(r=kr(this._root.current,this._root.current.firstChild,!1,!1,!1,!0))),r&&this._focusAsync(r)}},t.prototype._focusAsync=function(e){this._isBumper(e)||Pr(e)},t.prototype._bringFocusIntoZone=function(){var e=this.props,n=e.elementToFocusOnDismiss,o=e.disabled,r=void 0!==o&&o,i=e.disableFirstFocus,a=void 0!==i&&i;r||(t._focusStack.push(this),this._previouslyFocusedElementOutsideTrapZone=n||this._getDocument().activeElement,a||fr(this._root.current,this._previouslyFocusedElementOutsideTrapZone)||this.focus())},t.prototype._returnFocusToInitiator=function(){var e=this,n=this.props.ignoreExternalFocusing;t._focusStack=t._focusStack.filter((function(t){return e!==t}));var o=this._getDocument(),r=o.activeElement;n||!this._previouslyFocusedElementOutsideTrapZone||"function"!=typeof this._previouslyFocusedElementOutsideTrapZone.focus||!fr(this._root.current,r)&&r!==o.body||this._focusAsync(this._previouslyFocusedElementOutsideTrapZone)},t.prototype._updateEventHandlers=function(e){var t=e.isClickableOutsideFocusTrap,n=void 0!==t&&t,o=e.forceFocusInsideTrap,r=void 0===o||o;r&&!this._disposeFocusHandler?this._disposeFocusHandler=Rr(window,"focus",this._forceFocusInTrap,!0):!r&&this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),n||this._disposeClickHandler?n&&this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0):this._disposeClickHandler=Rr(window,"click",this._forceClickInTrap,!0)},t.prototype._isBumper=function(e){return e===this._firstBumper.current||e===this._lastBumper.current},t.prototype._getDocument=function(){return yt(this._root.current)},t._focusStack=[],t}(o.Component),jl=Je,Vl={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},Gl=Yo(),ql=function(e){function t(t){var n=e.call(this,t)||this,o=n.props.allowTouchBodyScroll,r=void 0!==o&&o;return n._allowTouchBodyScroll=r,n}return l(t,e),t.prototype.componentDidMount=function(){var e;!this._allowTouchBodyScroll&&((e=yt())&&e.body&&!Kr&&(e.body.classList.add(jr),e.body.addEventListener("touchmove",Zr,{passive:!1,capture:!1})),Kr++)},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&function(){if(Kr>0){var e=yt();e&&e.body&&1===Kr&&(e.body.classList.remove(jr),e.body.removeEventListener("touchmove",Zr)),Kr--}}()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,r=e.theme,i=e.styles,a=Jn(this.props,Xn),s=Gl(i,{theme:r,className:n,isDark:t});return o.createElement("div",u({},a,{className:s.root}))},t}(lo),Zl={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},Ql=Pn(ql,(function(e){var t,n=e.className,o=e.theme,r=e.isNone,i=e.isDark,a=o.palette,s=Jt(Zl,o);return{root:[s.root,o.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[Tt]={border:"1px solid WindowText",opacity:0},t)},r&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"}),Yl=qt((function(e,t){return{root:K(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),Xl={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Jl=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=Xl.mouse,n._events=[],n._onMouseDown=function(e){var t=o.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=Xl.mouse,n._onDragStart(e)},n._onMouseUp=function(e){var t=o.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=Xl.mouse,n._onDragStop(e)},n._onTouchStart=function(e){var t=o.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=Xl.touch,n._onDragStart(e)},n._onTouchEnd=function(e){var t=o.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=Xl.touch,n._onDragStop(e)},n._onDragStart=function(e){if("number"==typeof e.button&&0!==e.button)return!1;if(!(n.props.handleSelector&&!n._matchesSelector(e.target,n.props.handleSelector)||n.props.preventDragSelector&&n._matchesSelector(e.target,n.props.preventDragSelector))){n._touchId=n._getTouchId(e);var t=n._getControlPosition(e);if(void 0!==t){var o=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,o),n.setState({isDragging:!0,lastPosition:t}),n._events=[Rr(document.body,n._currentEventType.move,n._onDrag),Rr(document.body,n._currentEventType.stop,n._onDragStop)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var o=n._createUpdatedDragData(n._createDragDataFromPosition(t)),r=o.position;n.props.onDragChange&&n.props.onDragChange(e,o),n.setState({position:r,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var o=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,o),n.props.position&&n.setState({position:n.props.position}),n._events.forEach((function(e){return e()}))}}},n.state={isDragging:!1,position:n.props.position||{x:0,y:0},lastPosition:void 0},n}return l(t,e),t.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach((function(e){return e()}))},t.prototype.render=function(){var e=o.Children.only(this.props.children),t=e.props,n=this.props.position,r=this.state,i=r.position,a=r.isDragging,s=i.x,l=i.y;return n&&!a&&(s=n.x,l=n.y),o.cloneElement(e,{style:u(u({},t.style),{transform:"translate("+s+"px, "+l+"px)"}),className:Yl(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!n&&(n.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t0&&(n=t[0].getBoundingClientRect(),this.setState({modalRectangleTop:n.top}))}}else this.setState({isOpen:!0}),e.dragOptions&&this._registerForKeyUp();!e.isOpen&&this.state.isOpen&&(this._onModalCloseTimer=this._async.setTimeout(this._onModalClose,1e3*parseFloat(jl)),this.setState({isVisible:!1}))},t.prototype.componentDidMount=function(){this.state.isOpen&&this.state.isVisible&&this._registerForKeyUp()},t.prototype.componentDidUpdate=function(e,t){e.isOpen||t.isVisible||this.setState({isVisible:!0})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.containerClassName,r=e.scrollableContentClassName,i=e.elementToFocusOnDismiss,a=e.firstFocusableSelector,s=e.forceFocusInsideTrap,l=e.ignoreExternalFocusing,c=e.isBlocking,d=e.isClickableOutsideFocusTrap,p=e.isDarkOverlay,f=e.onDismiss,h=e.layerProps,m=e.overlay,g=e.responsiveMode,v=e.titleAriaId,y=e.styles,b=e.subtitleAriaId,_=e.theme,k=e.topOffsetFixed,x=e.onLayerDidMount,C=e.isModeless,w=e.dragOptions,S=this.state,E=S.isOpen,T=S.isVisible,I=S.hasBeenOpened,P=S.modalRectangleTop,M=S.x,N=S.y,D=S.isInKeyboardMoveMode;if(!E)return null;var A=void 0===h?"":h.className,B=eu(y,{theme:_,className:t,containerClassName:n,scrollableContentClassName:r,isOpen:E,isVisible:T,hasBeenOpened:I,modalRectangleTop:P,topOffsetFixed:k,isModeless:C,layerClassName:A,isDefaultDragHandle:w&&!w.dragHandleSelector}),F=u(u(u({},$l),this.props.layerProps),{onLayerDidMount:h&&h.onLayerDidMount?h.onLayerDidMount:x,insertFirst:C,className:B.layer}),O=o.createElement(Kl,{componentRef:this._focusTrapZone,className:B.main,elementToFocusOnDismiss:i,isClickableOutsideFocusTrap:C||d||!c,ignoreExternalFocusing:l,forceFocusInsideTrap:C?!C:s,firstFocusableSelector:a,focusPreviouslyFocusedInnerElement:!0,onBlur:D?this._onExitKeyboardMoveMode:void 0},w&&D&&o.createElement("div",{className:B.keyboardMoveIconContainer},w.keyboardMoveIconProps?o.createElement(lr,u({},w.keyboardMoveIconProps)):o.createElement(lr,{iconName:"move",className:B.keyboardMoveIcon})),o.createElement("div",{ref:this._allowScrollOnModal,className:B.scrollableContent,"data-is-scrollable":!0},w&&this.state.isModalMenuOpen&&o.createElement(w.menu,{items:[{key:"move",text:w.moveMenuItemText,onClick:this._onEnterKeyboardMoveMode},{key:"close",text:w.closeMenuItemText,onClick:this._onModalClose}],onDismiss:this._onModalContextMenuClose,alignTargetEdge:!0,coverTarget:!0,directionalHint:cr.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:this._scrollableContent}),this.props.children));return g>=Vi.small?o.createElement(ls,u({},F),o.createElement(Fa,{role:C||!c?"dialog":"alertdialog","aria-modal":!C,ariaLabelledBy:v,ariaDescribedBy:b,onDismiss:f,shouldRestoreFocus:!l},o.createElement("div",{className:B.root},!C&&o.createElement(Ql,u({isDarkThemed:p,onClick:c?void 0:f,allowTouchBodyScroll:this._allowTouchBodyScroll},m)),w?o.createElement(Jl,{handleSelector:w.dragHandleSelector||"."+B.main.split(" ")[0],preventDragSelector:"button",onStart:this._onDragStart,onDragChange:this._onDrag,onStop:this._onDragStop,position:{x:M,y:N}},O):O))):null},t.prototype.focus=function(){this._focusTrapZone.current&&this._focusTrapZone.current.focus()},t.prototype._getMoveDelta=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t},t.defaultProps={isOpen:!1,isDarkOverlay:!0,isBlocking:!1,className:"",containerClassName:""},t=d([$i],t)}(lo),(function(e){var t,n=e.className,o=e.containerClassName,r=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,u=e.theme,c=e.topOffsetFixed,d=e.isModeless,p=e.layerClassName,f=e.isDefaultDragHandle,h=u.palette,m=u.effects,g=u.fonts,v=Jt(Vl,u);return{root:[v.root,g.medium,{backgroundColor:"transparent",position:d?"absolute":"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+jl},c&&s&&{alignItems:"flex-start"},i&&v.isOpen,a&&{opacity:1,pointerEvents:"auto"},n],main:[v.main,{boxShadow:m.elevation64,borderRadius:m.roundedCorner2,backgroundColor:h.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?Pt.Layer:void 0},c&&s&&{top:l},f&&{cursor:"move"},o],scrollableContent:[v.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:window.innerHeight},t)},r],layer:d&&[p,v.layer,{position:"static",width:"unset",height:"unset"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:g.xLargePlus.fontSize,width:"24px"}}}),void 0,{scope:"Modal"}),nu=qt((function(e,t){var n,o=Xs(e),r=Sl(e),i=e.palette;return j(o,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[Tt]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},r,t)})),ou=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(Zs,u({},this.props,{variantClassName:"ms-Button--icon",styles:nu(n,t),onRenderText:co,onRenderDescription:co}))},t=d([es("IconButton",["theme","styles"],!0)],t)}(lo),ru=Yo(),iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return this._classNames=ru(n,{theme:r,className:t}),o.createElement("div",{className:this._classNames.actions},o.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return o.Children.map(this.props.children,(function(t){return t?o.createElement("span",{className:e._classNames.action},t):null}))},t}(lo),au={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},su=Pn(iu,(function(e){var t=e.className,n=e.theme,o=Jt(au,n);return{actions:[o.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal"}}},t],action:[o.action,{margin:"0 4px"}],actionsRight:[o.actionsRight,{textAlign:"right",marginRight:"-4px",fontSize:"0"}]}}),void 0,{scope:"DialogFooter"}),lu=Yo(),uu=o.createElement(su,null).type,cu=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.render=function(){var e,t=this.props,n=t.showCloseButton,r=t.className,i=t.closeButtonAriaLabel,a=t.onDismiss,s=t.subTextId,l=t.subText,c=t.titleId,d=t.title,p=t.type,f=t.styles,h=t.theme,m=t.draggableHeaderClassName,g=lu(f,{theme:h,className:r,isLargeHeader:p===Dl.largeHeader,isClose:p===Dl.close,draggableHeaderClassName:m}),v=this._groupChildren();return l&&(e=o.createElement("p",{className:g.subText,id:s},l)),o.createElement("div",{className:g.content},o.createElement("div",{className:g.header},o.createElement("p",{className:g.title,id:c,role:"heading","aria-level":2},d),o.createElement("div",{className:g.topButton},this.props.topButtonsProps.map((function(e,t){return o.createElement(ou,u({key:e.uniqueId||t},e))})),(p===Dl.close||n&&p!==Dl.largeHeader)&&o.createElement(ou,{className:g.button,iconProps:{iconName:"Cancel"},ariaLabel:i,onClick:a,title:i}))),o.createElement("div",{className:g.inner},o.createElement("div",{className:g.innerContent},e,v.contents),v.footers))},t.prototype._groupChildren=function(){var e={footers:[],contents:[]};return o.Children.map(this.props.children,(function(t){"object"==typeof t&&null!==t&&t.type===uu?e.footers.push(t):e.contents.push(t)})),e},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=d([$i],t)}(lo),du={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},pu=Pn(cu,(function(e){var t,n,o,r=e.className,i=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,u=e.isMultiline,c=e.draggableHeaderClassName,d=i.palette,p=i.fonts,f=i.effects,h=i.semanticColors,m=Jt(du,i);return{content:[a&&[m.contentLgHeader,{borderTop:"4px solid "+d.themePrimary}],s&&m.close,{flexGrow:1,overflowY:"hidden"},r],subText:[m.subText,p.medium,{margin:"0 0 24px 0",color:h.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:pt.regular}],header:[m.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&m.close,c&&[c,{cursor:"move"}]],button:[m.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:h.buttonText,fontSize:ft.medium}}}],inner:[m.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: 320px) and (max-width: 479px)"]={padding:"0 16px 16px"},t)}],innerContent:[m.content,{position:"relative",width:"100%"}],title:[m.title,p.xLarge,{color:h.bodyText,margin:"0",padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: 320px) and (max-width: 479px)"]={padding:"16px 46px 16px 16px"},n)},a&&{color:h.menuHeader},u&&{fontSize:p.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(o={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:h.buttonText},".ms-Dialog-button:hover":{color:h.buttonTextHovered,borderRadius:f.roundedCorner2}},o["@media (min-width: 320px) and (max-width: 479px)"]={padding:"15px 8px 0 0"},o)}]}}),void 0,{scope:"DialogContent"}),fu=Yo(),hu={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1},mu={type:Dl.normal,className:"",topButtonsProps:[]},gu=function(e){function t(t){var n=e.call(this,t)||this;return n._getSubTextId=function(){var e=n.props,t=e.ariaDescribedById,o=e.modalProps,r=e.dialogContentProps,i=e.subText,a=t||o&&o.subtitleAriaId;return a||(a=(i||r&&r.subText)&&n._defaultSubTextId),a},n._getTitleTextId=function(){var e=n.props,t=e.ariaLabelledById,o=e.modalProps,r=e.dialogContentProps,i=e.title,a=t||o&&o.titleAriaId;return a||(a=(i||r&&r.title)&&n._defaultTitleTextId),a},n._id=Hn("Dialog"),n._defaultTitleTextId=n._id+"-title",n._defaultSubTextId=n._id+"-subText",n}return l(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.className,i=n.containerClassName,a=n.contentClassName,s=n.elementToFocusOnDismiss,l=n.firstFocusableSelector,c=n.forceFocusInsideTrap,d=n.styles,p=n.hidden,f=n.ignoreExternalFocusing,h=n.isBlocking,m=n.isClickableOutsideFocusTrap,g=n.isDarkOverlay,v=n.isOpen,y=n.onDismiss,b=n.onDismissed,_=n.onLayerDidMount,k=n.responsiveMode,x=n.subText,C=n.theme,w=n.title,S=n.topButtonsProps,E=n.type,T=n.minWidth,I=n.maxWidth,P=n.modalProps,M=u({},P?P.layerProps:{onLayerDidMount:_});_&&!M.onLayerDidMount&&(M.onLayerDidMount=_),P&&P.dragOptions&&!P.dragOptions.dragHandleSelector?(e="ms-Dialog-draggable-header",t=u(u({},P.dragOptions),{dragHandleSelector:"."+e})):t=P&&P.dragOptions;var N=u(u(u({},hu),P),{layerProps:M,dragOptions:t}),D=u(u(u({},mu),this.props.dialogContentProps),{draggableHeaderClassName:e}),A=fu(d,{theme:C,className:r||N.className,containerClassName:i||N.containerClassName,hidden:p,dialogDefaultMinWidth:T,dialogDefaultMaxWidth:I});return o.createElement(tu,u({elementToFocusOnDismiss:s,firstFocusableSelector:l,forceFocusInsideTrap:c,ignoreExternalFocusing:f,isClickableOutsideFocusTrap:m,onDismissed:b,responsiveMode:k},N,{isDarkOverlay:void 0!==g?g:N.isDarkOverlay,isBlocking:void 0!==h?h:N.isBlocking,isOpen:void 0!==v?v:!p,className:A.root,containerClassName:A.main,onDismiss:y||N.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),o.createElement(pu,u({titleId:this._defaultTitleTextId,subTextId:this._defaultSubTextId,title:w,subText:x,showCloseButton:void 0!==h?!h:!N.isBlocking,topButtonsProps:S||D.topButtonsProps,type:void 0!==E?E:D.type,onDismiss:y||D.onDismiss,className:a||D.className},D),this.props.children))},t.defaultProps={hidden:!0},t=d([$i],t)}(o.Component),vu={root:"ms-Dialog"},yu=Pn(gu,(function(e){var t,n=e.className,o=e.containerClassName,r=e.dialogDefaultMinWidth,i=void 0===r?"288px":r,a=e.dialogDefaultMaxWidth,s=void 0===a?"340px":a,l=e.hidden,u=e.theme;return{root:[Jt(vu,u).root,u.fonts.medium,n],main:[{width:i,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: 480px)"]={width:"auto",maxWidth:s,minWidth:i},t)},!l&&{display:"flex"},o]}}),void 0,{scope:"Dialog"}),bu=Yo({disableCaching:!0}),_u=Pn(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,r=e.children,i=e.className,a=e.disabled,s=e.styles,l=e.required,c=e.theme,d=bu(s,{className:i,disabled:a,required:l,theme:c});return o.createElement(n,u({},Jn(this.props,Xn),{className:d.root}),r)},t}(o.Component),(function(e){var t,n=e.theme,o=e.className,r=e.disabled,i=e.required,a=n.semanticColors,s=pt.semibold,l=a.bodyText,u=a.disabledBodyText,c=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},r&&{color:u,selectors:(t={},t[Tt]={color:"GrayText"},t)},i&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},o]}}),void 0,{scope:"Label"}),ku=Yo(),xu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._link=o.createRef(),t._onClick=function(e){var n=t.props,o=n.onClick;n.disabled?e.preventDefault():o&&o(e)},t}return l(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.children,i=t.className,a=t.href,s=t.theme,l=t.styles,c=t.keytipProps,d=ku(l,{className:i,isButton:!a,isDisabled:n,theme:s}),p=this._getRootType(this.props);return o.createElement(Ms,{keytipProps:c,ariaDescribedBy:this.props["aria-describedby"],disabled:n},(function(t){return o.createElement(p,u({},t,e._adjustPropsForRootType(p,e.props),{className:d.root,onClick:e._onClick,ref:e._link,"aria-disabled":n}),r)}))},t.prototype.focus=function(){var e=this._link.current;e&&e.focus&&e.focus()},t.prototype._adjustPropsForRootType=function(e,t){t.children,t.as;var n=t.disabled,o=t.target,r=t.href,i=(t.theme,t.getStyles,t.styles,t.componentRef,c(t,["children","as","disabled","target","href","theme","getStyles","styles","componentRef"]));return"string"==typeof e?"a"===e?u({target:o,href:n?void 0:r},i):"button"===e?u({type:"button",disabled:n},i):u(u({},i),{disabled:n}):u({target:o,href:r,disabled:n},i)},t.prototype._getRootType=function(e){return e.as?e.as:e.href?"a":"button"},t}(lo),Cu={root:"ms-Link"},wu=Pn(xu,(function(e){var t,n,o,r=e.className,i=e.isButton,a=e.isDisabled,s=e.theme,l=s.semanticColors,u=l.link,c=l.linkHovered,d=l.disabledText,p=l.focusBorder,f=Jt(Cu,s);return{root:[f.root,s.fonts.medium,{color:u,outline:"none",fontSize:"inherit",fontWeight:"inherit",selectors:(t={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px "+p+" inset",selectors:(n={},n[Tt]={outline:"1px solid WindowText"},n)}},t[Tt]={borderBottom:"none"},t)},i&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(o={},o["@media screen and (-ms-high-contrast: white-on-black)"]={color:"#FFFF00"},o["@media screen and (-ms-high-contrast: black-on-white)"]={color:"#00009F"},o)},!i&&{textDecoration:"none"},a&&["is-disabled",{color:d,cursor:"default"},{selectors:{"&:link, &:visited":{pointerEvents:"none"}}}],!a&&{selectors:{"&:active, &:hover, &:active:hover":{color:c,textDecoration:"underline"},"&:focus":{color:u}}},f.root,r]}}),void 0,{scope:"Link"}),Su=function(e){function t(t){var n=e.call(this,t)||this;return n.parent_on_change=t.on_change,n}return l(t,e),t.prototype.get_value=function(){return null},t}(r.a.Component),Eu=Yo(),Tu=function(e){function t(t){var n=e.call(this,t)||this;return n._toggleButton=o.createRef(),n._onClick=function(e){var t=n.props,o=t.disabled,r=t.checked,i=t.onChange,a=t.onChanged,s=t.onClick,l=n.state.checked;o||(void 0===r&&n.setState({checked:!l}),i&&i(e,!l),a&&a(!l),s&&s(e))},n._warnMutuallyExclusive({checked:"defaultChecked"}),n._warnDeprecations({onAriaLabel:"ariaLabel",offAriaLabel:void 0,onChanged:"onChange"}),n.state={checked:!(!t.checked&&!t.defaultChecked)},n._id=t.id||Hn("Toggle"),n}return l(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.checked?null:{checked:!!e.checked}},Object.defineProperty(t.prototype,"checked",{get:function(){return this.state.checked},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=void 0===n?"div":n,i=t.className,a=t.theme,s=t.disabled,l=t.keytipProps,c=t.label,d=t.ariaLabel,p=t.onAriaLabel,f=t.offAriaLabel,h=t.offText,m=t.onText,g=t.styles,v=t.inlineLabel,y=this.state.checked,b=y?m:h,_=y?p:f,k=Jn(this.props,Zn,["defaultChecked"]),x=Eu(g,{theme:a,className:i,disabled:s,checked:y,inlineLabel:v,onOffMissing:!m&&!h}),C=this._id+"-label",w=this._id+"-stateText",S=void 0;d||_||(c?S=C:b&&(S=w));var E=this.props.role?this.props.role:"switch";return o.createElement(r,{className:x.root,hidden:k.hidden},c&&o.createElement(_u,{htmlFor:this._id,className:x.label,id:C},c),o.createElement("div",{className:x.container},o.createElement(Ms,{keytipProps:l,ariaDescribedBy:k["aria-describedby"],disabled:s},(function(t){return o.createElement("button",u({},k,t,{className:x.pill,disabled:s,id:e._id,type:"button",role:E,ref:e._toggleButton,"aria-disabled":s,"aria-checked":y,"aria-label":d||_,"data-is-focusable":!0,onChange:e._noop,onClick:e._onClick,"aria-labelledby":S}),o.createElement("span",{className:x.thumb}))})),b&&o.createElement(_u,{htmlFor:this._id,className:x.text,id:w},b)))},t.prototype.focus=function(){this._toggleButton.current&&this._toggleButton.current.focus()},t.prototype._noop=function(){},t}(lo),Iu=Pn(Tu,(function(e){var t,n,o,r,i,a,s,l=e.theme,u=e.className,c=e.disabled,d=e.checked,p=e.inlineLabel,f=e.onOffMissing,h=l.semanticColors,m=l.palette,g=h.bodyBackground,v=h.inputBackgroundChecked,y=m.themeDark,b=m.neutralDark,_=h.disabledBodySubtext,k=h.smallInputBorder,x=h.inputForegroundChecked,C=h.disabledBodySubtext,w=h.disabledBackground,S=h.smallInputBorder,E=h.inputBorderHovered,T=h.disabledBodySubtext,I=h.disabledText;return{root:["ms-Toggle",d&&"is-checked",!c&&"is-enabled",c&&"is-disabled",l.fonts.medium,{marginBottom:"8px"},p&&{display:"flex",alignItems:"center"},u],label:["ms-Toggle-label",c&&{color:I,selectors:(t={},t[Tt]={color:"GrayText"},t)},p&&!f&&{marginRight:16},f&&p&&{order:1,marginLeft:16},p&&{wordBreak:"break-all"}],container:["ms-Toggle-innerContainer",{display:"inline-flex",position:"relative"}],pill:["ms-Toggle-background",At(l,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid "+S,background:g,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px"},!c&&[!d&&{selectors:{":hover":[{borderColor:E}],":hover .ms-Toggle-thumb":[{backgroundColor:b,selectors:(n={},n[Tt]={borderColor:"Highlight"},n)}]}},d&&[{background:v,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(o={":hover":[{backgroundColor:y,borderColor:"transparent",selectors:(r={},r[Tt]={backgroundColor:"Highlight"},r)}]},o[Tt]={backgroundColor:"WindowText"},o)}]],c&&[{cursor:"default"},!d&&[{borderColor:T}],d&&[{backgroundColor:_,borderColor:"transparent",justifyContent:"flex-end"}]],!c&&{selectors:{"&:hover":{selectors:(i={},i[Tt]={borderColor:"Highlight"},i)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:k,borderColor:"transparent",borderWidth:".28em",borderStyle:"solid",boxSizing:"border-box"},!c&&d&&[{backgroundColor:x,selectors:(a={},a[Tt]={backgroundColor:"Window",borderColor:"Window"},a)}],c&&[!d&&[{backgroundColor:C}],d&&[{backgroundColor:w}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:pt.regular}}},c&&{selectors:{"&&":{color:I,selectors:(s={},s[Tt]={color:"GrayText"},s)}}}]}}),void 0,{scope:"Toggle"}),Pu=function(e){function t(t){var n=e.call(this,t)||this;return n.toggleref=null,n.toggleref=null,n.state={property_values:t.setting},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting})},t.prototype.get_value=function(){return{value:this.toggleref.checked}},t.prototype.render=function(){var e=this;return r.a.createElement(Iu,{disabled:this.props.disabled,onChange:function(t,n){e.setState((function(e){return{property_values:u({},e.property_values,{value:n})}})),e.parent_on_change()},checked:this.state.property_values.value,label:this.state.property_values.display_name,onText:"On",offText:"Off",componentRef:function(t){e.toggleref=t}})},t}(Su);function Mu(e,t){return void 0!==e[t]&&null!==e[t]}var Nu=Yo(),Du=function(e){function t(t){var n=e.call(this,t)||this;return n._onChange=function(e){var t=n.props.onChange;t&&t(e,n.props)},n._onBlur=function(e){var t=n.props.onBlur;t&&t(e,n.props)},n._onFocus=function(e){var t=n.props.onFocus;t&&t(e,n.props)},n._onRenderField=function(e){var t=e.id,r=e.imageSrc,i=e.imageAlt,a=void 0===i?"":i,s=e.selectedImageSrc,l=e.iconProps,c=e.imageSize?e.imageSize:{width:32,height:32},d=(e.onRenderLabel?rl(e.onRenderLabel,n._onRenderLabel):n._onRenderLabel)(e);return o.createElement("label",{htmlFor:t,className:n._classNames.field},r&&o.createElement("div",{className:n._classNames.innerField},o.createElement("div",{className:n._classNames.imageWrapper},o.createElement(or,{src:r,alt:a,width:c.width,height:c.height})),o.createElement("div",{className:n._classNames.selectedImageWrapper},o.createElement(or,{src:s,alt:a,width:c.width,height:c.height}))),l&&o.createElement("div",{className:n._classNames.innerField},o.createElement("div",{className:n._classNames.iconWrapper},o.createElement(lr,u({},l)))),r||l?o.createElement("div",{className:n._classNames.labelWrapper},d):d)},n._onRenderLabel=function(e){return o.createElement("span",{id:e.labelId,className:"ms-ChoiceFieldLabel"},e.text)},Dr(n),n}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.ariaLabel,n=e.focused,r=e.required,i=e.theme,a=e.iconProps,s=e.imageSrc,l=e.imageSize,d=void 0===l?{width:32,height:32}:l,p=e.disabled,f=e.checked,h=e.id,m=e.styles,g=e.name,v=e.onRenderField,y=void 0===v?this._onRenderField:v,b=c(e,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name","onRenderField"]);this._classNames=Nu(m,{theme:i,hasIcon:!!a,hasImage:!!s,checked:f,disabled:p,imageIsLarge:!!s&&(d.width>71||d.height>71),imageSize:d,focused:n});var _=Jn(b,Zn),k=_.className,x=c(_,["className"]);return o.createElement("div",{className:this._classNames.root},o.createElement("div",{className:this._classNames.choiceFieldWrapper},o.createElement("input",u({"aria-label":t,id:h,className:Mn(this._classNames.input,k),type:"radio",name:g,disabled:p,checked:f,required:r},x,{onChange:this._onChange,onFocus:this._onFocus,onBlur:this._onBlur})),y(this.props,this._onRenderField)))},t}(o.Component),Au={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},Bu="200ms";function Fu(e,t){var n,o;return["is-inFocus",{selectors:(n={},n["."+Mt+" &"]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid "+e,position:"absolute",selectors:(o={},o[Tt]={borderColor:"WindowText",borderWidth:t?1:2},o)}}},n)}]}function Ou(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:Bu,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var Ru=Pn(Du,(function(e){var t,n,o,r,i,a=e.theme,s=e.hasIcon,l=e.hasImage,u=e.checked,c=e.disabled,d=e.imageIsLarge,p=e.focused,f=e.imageSize,h=a.palette,m=a.semanticColors,g=a.fonts,v=Jt(Au,a),y=h.neutralPrimary,b=m.inputBorderHovered,_=m.inputBackgroundChecked,k=h.themeDark,x=m.disabledBodySubtext,C=m.bodyBackground,w=h.neutralSecondary,S=m.inputBackgroundChecked,E=h.themeDark,T=m.disabledBodySubtext,I=h.neutralDark,P=m.focusBorder,M=m.inputBorderHovered,N=m.inputBackgroundChecked,D=h.themeDark,A=h.neutralLighter,B={selectors:{".ms-ChoiceFieldLabel":{color:I},":before":{borderColor:u?k:b},":after":[!s&&!l&&!u&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:w},u&&{borderColor:E}]}},F={borderColor:u?D:M,selectors:{":before":{opacity:1,borderColor:u?k:b}}},O=[{content:'""',display:"inline-block",backgroundColor:C,borderWidth:1,borderStyle:"solid",borderColor:y,width:20,height:20,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:Bu,transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",borderRadius:"50%"},c&&{borderColor:x,selectors:(t={},t[Tt]={color:"GrayText"},t)},u&&{borderColor:c?x:_,selectors:(n={},n[Tt]={borderColor:"Highlight"},n)},(s||l)&&{top:3,right:3,left:"auto",opacity:u?1:0}],R=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:Bu,transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",boxSizing:"border-box"},u&&{borderWidth:5,borderStyle:"solid",borderColor:c?T:S,left:5,top:5,width:10,height:10,selectors:(o={},o[Tt]={borderColor:"Highlight"},o)},u&&(s||l)&&{top:8,right:8,left:"auto"}];return{root:[v.root,a.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:m.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!s&&!l&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},l&&"ms-ChoiceField--image",s&&"ms-ChoiceField--icon",(s||l)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:A,height:"100%"}],choiceFieldWrapper:[v.choiceFieldWrapper,p&&Fu(P,s||l)],input:[v.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},c&&"is-disabled"],field:[v.field,u&&v.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!c&&B,":focus":!c&&B,":before":O,":after":R}},s&&"ms-ChoiceField--icon",l&&"ms-ChoiceField-field--image",(s||l)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:Bu,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},u&&{borderColor:N},(s||l)&&!c&&{selectors:{":hover":F,":focus":F}},c&&{cursor:"default",selectors:(r={".ms-ChoiceFieldLabel":{color:m.disabledBodyText}},r[Tt]={color:"GrayText"},r)},u&&c&&{borderColor:A}],innerField:[v.innerField,l&&{height:f.height,width:f.width},(s||l)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(s||l)&&d&&{paddingLeft:24,paddingRight:24},(s||l)&&c&&{opacity:.25,selectors:(i={},i[Tt]={color:"GrayText",opacity:1},i)}],imageWrapper:Ou(!1,v.imageWrapper,u),selectedImageWrapper:Ou(!0,v.imageWrapper,u),iconWrapper:[v.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[v.labelWrapper,g.medium,(s||l)&&{display:"block",position:"relative",margin:"4px 8px",height:30,lineHeight:15,maxWidth:2*f.width,overflow:"hidden",whiteSpace:"pre-wrap",textOverflow:"ellipsis"}]}}),void 0,{scope:"ChoiceGroupOption"}),Lu=Yo(),Hu=function(e){function t(t){var n=e.call(this,t)||this;n._focusCallbacks={},n._changeCallbacks={},n._onBlur=function(e,t){n.setState({keyFocused:void 0})},Dr(n);var o=t.defaultSelectedKey,r=t.options,i=void 0===r?[]:r,a=!Wu(t)&&void 0!==o&&i.some((function(e){return e.key===o}));return n.state={keyChecked:a?o:n._getKeyChecked(t)},n._id=Hn("ChoiceGroup"),n._labelId=Hn("ChoiceGroupLabel"),n}return l(t,e),Object.defineProperty(t.prototype,"checkedOption",{get:function(){var e=this,t=this.props.options;return Cs(void 0===t?[]:t,(function(t){return t.key===e.state.keyChecked}))},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(e!==this.props){var n=this._getKeyChecked(this.props);n!==this._getKeyChecked(e)&&this.setState({keyChecked:n})}},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.theme,i=t.styles,a=t.options,s=void 0===a?[]:a,l=t.label,c=t.required,d=t.disabled,p=t.name,f=this.state,h=f.keyChecked,m=f.keyFocused,g=Jn(this.props,Xn,["onChange","className","required"]),v=Lu(i,{theme:r,className:n,optionsContainIconOrImage:s.some((function(e){return!(!e.iconProps&&!e.imageSrc)}))}),y=this._id+"-label",b=this.props.ariaLabelledBy||(l?y:this.props["aria-labelledby"]);return o.createElement("div",u({className:v.applicationRole},g),o.createElement("div",u({className:v.root,role:"radiogroup"},b&&{"aria-labelledby":b}),l&&o.createElement(_u,{className:v.label,required:c,id:y,disabled:d},l),o.createElement("div",{className:v.flexContainer},s.map((function(t){var n=u(u({},t),{focused:t.key===m,checked:t.key===h,disabled:t.disabled||d,id:e._getOptionId(t),labelId:e._labelId+"-"+t.key,name:p||e._id,required:c});return o.createElement(Ru,u({key:t.key,onBlur:e._onBlur,onFocus:e._onFocus(t.key),onChange:e._onChange(t.key)},n))})))))},t.prototype.focus=function(){var e=this.props.options,t=void 0===e?[]:e,n=this.checkedOption||t.filter((function(e){return!e.disabled}))[0],o=n&&document.getElementById(this._getOptionId(n));o&&o.focus()},t.prototype._onFocus=function(e){var t=this;return this._focusCallbacks[e]||(this._focusCallbacks[e]=function(n,o){t.setState({keyFocused:e})}),this._focusCallbacks[e]},t.prototype._onChange=function(e){var t=this;return this._changeCallbacks[e]||(this._changeCallbacks[e]=function(n,o){var r=t.props,i=r.onChanged,a=r.onChange;Wu(t.props)||t.setState({keyChecked:e});var s=Cs(t.props.options||[],(function(t){return t.key===e}));a?a(n,s):i&&i(s,n)}),this._changeCallbacks[e]},t.prototype._getKeyChecked=function(e){if(void 0!==e.selectedKey)return e.selectedKey;var t=e.options,n=(void 0===t?[]:t).filter((function(e){return e.checked}));return n[0]&&n[0].key},t.prototype._getOptionId=function(e){return this._id+"-"+e.key},t}(o.Component);function Wu(e){return Mu(e,"selectedKey")}var zu={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},Uu=Pn(Hu,(function(e){var t=e.className,n=e.optionsContainIconOrImage,o=e.theme,r=Jt(zu,o);return{applicationRole:t,root:[r.root,o.fonts.medium,{display:"block"}],flexContainer:[r.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}}),void 0,{scope:"ChoiceGroup"}),Ku=function(e){function t(t){var n=e.call(this,t)||this;return n.choiceref=null,n.choiceref=null,n.state={property_values:t.setting},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting}),this.selected=e.setting.value},t.prototype.get_value=function(){return{value:this.selected}},t.prototype.render=function(){var e=this;return r.a.createElement(Uu,{className:"defaultChoiceGroup",defaultSelectedKey:this.state.property_values.value,options:this.state.property_values.options,label:this.state.property_values.display_name,componentRef:function(t){e.choiceref=t},onChange:function(t,n){e.selected=n.key,e.parent_on_change()}})},t}(Su),ju=Yo(),Vu=Pn((function(e){var t=e.styles,n=e.theme,r=e.className,i=e.vertical,a=e.alignContent,s=ju(t,{theme:n,className:r,alignContent:a,vertical:i});return o.createElement("div",{className:s.root},o.createElement("div",{className:s.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},e.children))}),(function(e){var t=e.theme,n=e.alignContent,o=e.vertical,r=e.className,i="start"===n,a="center"===n,s="end"===n;return{root:[t.fonts.medium,{position:"relative"},n&&{textAlign:n},!n&&{textAlign:"center"},o&&(a||!n)&&{verticalAlign:"middle"},o&&i&&{verticalAlign:"top"},o&&s&&{verticalAlign:"bottom"},o&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":{backgroundColor:t.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1}}},!o&&{padding:"4px 0",selectors:{":before":{backgroundColor:t.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"}}},r],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:t.semanticColors.bodyText,background:t.semanticColors.bodyBackground},o&&{padding:"12px 0"}]}}),void 0,{scope:"Separator"}),Gu=function(e){function t(t){var n=e.call(this,t)||this;return n.colorpickerref=null,n.colorpickerref=null,n.state={property_values:t.setting,name:t.action_name},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting,name:e.action_name})},t.prototype.get_value=function(){return{value:this.state.property_values.value}},t.prototype.render=function(){var e=this;return r.a.createElement(wl,null,this.state.property_values.display_name?r.a.createElement(_u,null,this.state.property_values.display_name):null,r.a.createElement(wl,{horizontal:!0,tokens:{childrenGap:5}},this.state.property_values.value?r.a.createElement(ml,{styles:{root:{paddingBottom:"0.5em"}}},this.state.property_values.value):r.a.createElement("span",null),this.state.property_values.help_link_url&&this.state.property_values.help_link_text?r.a.createElement(wu,{styles:{root:{alignSelf:"center",paddingBottom:"0.5em"}},href:this.state.property_values.help_link_url,target:"_blank"},this.state.property_values.help_link_text):r.a.createElement("span",null)),r.a.createElement(Nl,{styles:{root:{alignSelf:"start"}},text:this.state.property_values.button_text,onClick:function(){return e.props.action_callback(e.state.name,e.state.property_values)}}))},t}(Su),qu=function(e){function t(t){var n=e.call(this,t)||this;return n.references={},n.references={},n.startup_reference=null,n.elevated_reference=null,n.restart_reference=null,n.parent_on_change=t.on_change,n.state={settings_key:t.settings_key,settings:t.settings},n}return l(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!1},t.prototype.componentWillReceiveProps=function(e){this.setState({settings:e.settings})},t.prototype.get_data=function(){var e=this,t={};Object.keys(this.references).forEach((function(n){t[n]=e.references[n].get_value().value}));var n={};return n[this.state.settings_key]={startup:this.startup_reference.get_value().value,run_elevated:null!=this.elevated_reference&&this.elevated_reference.get_value().value,theme:this.theme_reference.get_value().value,enabled:t},n},t.prototype.render=function(){var e=this,t=this.state.settings.general.enabled;return r.a.createElement(wl,{tokens:{childrenGap:20}},r.a.createElement(ml,{variant:"xLarge"},"Available PowerToys"),Object.keys(t).map((function(n){var o=t[n];return r.a.createElement(wl,{key:n},r.a.createElement(wl,{horizontal:!0,tokens:{childrenGap:5}},r.a.createElement(_u,null,n),e.state.settings.powertoys&&e.state.settings.powertoys.hasOwnProperty(n)&&e.state.settings.powertoys[n].hasOwnProperty("overview_link")?r.a.createElement(wu,{styles:{root:{alignSelf:"center"}},href:e.state.settings.powertoys[n].overview_link,target:"_blank"},"(Overview)"):null,e.state.settings.powertoys&&e.state.settings.powertoys.hasOwnProperty(n)&&e.state.settings.powertoys[n].hasOwnProperty("video_link")?r.a.createElement(wu,{styles:{root:{alignSelf:"center"}},href:e.state.settings.powertoys[n].video_link,target:"_blank"},"(Video)"):null),e.state.settings.powertoys&&e.state.settings.powertoys.hasOwnProperty(n)&&e.state.settings.powertoys[n].hasOwnProperty("description")?r.a.createElement(ml,{styles:{root:{paddingBottom:"5px"}}},e.state.settings.powertoys[n].description):null,r.a.createElement(Pu,{setting:{value:o},on_change:e.parent_on_change,ref:function(t){e.references[n]=t}}))})),r.a.createElement(Vu,null),r.a.createElement(ml,{variant:"xLarge"},"General"),r.a.createElement(wl,null,null!=this.state.settings.general.startup_disabled_reason&&r.a.createElement("span",{style:{color:"#c50500"},dangerouslySetInnerHTML:{__html:this.state.settings.general.startup_disabled_reason}}),r.a.createElement(_u,null,"Run at Startup"),r.a.createElement(Pu,{disabled:this.state.settings.general.startup_disabled_reason,setting:{value:this.state.settings.general.startup},on_change:this.parent_on_change,ref:function(t){e.startup_reference=t}})),this.state.settings.general.is_elevated&&r.a.createElement(_u,null,"Currently running as administrator"),this.state.settings.general.is_admin&&r.a.createElement(Pu,{setting:{display_name:this.state.settings.general.is_elevated?"Always run as administrator":"Always run as administrator (Restart as administrator to change this)",value:this.state.settings.general.run_elevated},disabled:!this.state.settings.general.is_elevated,on_change:this.parent_on_change,ref:function(t){e.elevated_reference=t}}),this.state.settings.general.is_admin&&!this.state.settings.general.is_elevated&&r.a.createElement(Gu,{setting:{display_name:"",value:"Running as user. Do you wish to run as administrator instead?",button_text:"Restart as administrator",help_link_url:"https://aka.ms/powertoysDetectedElevatedHelp",help_link_text:"(Learn more about Admin mode)"},action_name:"restart_elevation",action_callback:function(e,t){window.output_from_webview(JSON.stringify({action:{general:{action_name:e,value:t}}}))},ref:function(t){e.restart_reference=t}}),r.a.createElement(Ku,{setting:{display_name:"Choose Settings color",value:this.state.settings.general.theme,options:[{key:"system",text:"System default app mode"},{key:"light",text:"Light"},{key:"dark",text:"Dark"}]},on_change:function(){vn("dark"===e.theme_reference.get_value().value||"system"===e.theme_reference.get_value().value&&"dark"===e.state.settings.general.system_theme?{palette:{themePrimary:"#0088e4",themeLighterAlt:"#000509",themeLighter:"#001624",themeLight:"#002944",themeTertiary:"#005288",themeSecondary:"#0078c8",themeDarkAlt:"#1793e6",themeDark:"#38a3ea",themeDarker:"#69baef",neutralLighterAlt:"#0b0b0b",neutralLighter:"#151515",neutralLight:"#252525",neutralQuaternaryAlt:"#2f2f2f",neutralQuaternary:"#373737",neutralTertiaryAlt:"#595959",neutralTertiary:"#eaeaea",neutralSecondary:"#eeeeee",neutralPrimaryAlt:"#f1f1f1",neutralPrimary:"#e0e0e0",neutralDark:"#f8f8f8",black:"#fbfbfb",white:"#000000"}}:{palette:{themePrimary:"#0078d4",themeLighterAlt:"#f3f9fd",themeLighter:"#d0e7f8",themeLight:"#a9d3f2",themeTertiary:"#5ca9e5",themeSecondary:"#1a86d9",themeDarkAlt:"#006cbe",themeDark:"#005ba1",themeDarker:"#004377",neutralLighterAlt:"#f8f8f8",neutralLighter:"#f4f4f4",neutralLight:"#eaeaea",neutralQuaternaryAlt:"#dadada",neutralQuaternary:"#d0d0d0",neutralTertiaryAlt:"#c8c8c8",neutralTertiary:"#bab8b7",neutralSecondary:"#a3a2a0",neutralPrimaryAlt:"#8d8b8a",neutralPrimary:"#323130",neutralDark:"#605e5d",black:"#494847",white:"#ffffff"}}),e.parent_on_change()},ref:function(t){e.theme_reference=t}}),r.a.createElement(wl,null,r.a.createElement(ml,{variant:"xLarge"},"About PowerToys (Preview)"),r.a.createElement(_u,null,"Version ",this.state.settings.general.powertoys_version),r.a.createElement(Nl,{styles:{root:{alignSelf:"start"}},href:"https://github.com/microsoft/PowerToys/releases",target:"_blank"},"Check for updates"),r.a.createElement(wu,{href:"https://github.com/microsoft/PowerToys/issues/new?assignees=&labels=&template=bug_report.md&title=",target:"_blank",styles:{root:{paddingTop:"10px"}}},"Report a bug"),r.a.createElement(wu,{href:"https://github.com/microsoft/PowerToys/issues/new?assignees=&labels=&template=feature_request.md&title=",target:"_blank"},"Request a feature"),r.a.createElement(wu,{href:"https://github.com/microsoft/PowerToys#privacy-statement",target:"_blank"},"Privacy statement")),r.a.createElement("span",null))},t}(r.a.Component);var Zu=Yo(),Qu="",Yu="TextField",Xu=function(e){function t(t){var n=e.call(this,t)||this;n._textElement=o.createRef(),n._onFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({isFocused:!0},(function(){n.props.validateOnFocusIn&&n._validate(n.value)}))},n._onBlur=function(e){n.props.onBlur&&n.props.onBlur(e),n.setState({isFocused:!1},(function(){n.props.validateOnFocusOut&&n._validate(n.value)}))},n._onRenderLabel=function(e){var t=e.label,r=e.required,i=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?o.createElement(_u,{required:r,htmlFor:n._id,styles:i,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?o.createElement("span",{className:n._classNames.description},e.description):null},n._onInputChange=function(e){var t,o=e.target.value;void 0!==o&&o!==n._lastChangeValue&&(n._lastChangeValue=o,e.persist(),n.setState((function(e,r){var i=Ju(r,e)||"";return(t=o===i)?null:n._isControlled?null:{uncontrolledValue:o}}),(function(){var r=n.props.onChange;!t&&r&&r(e,o)})))},Dr(n),n._async=new eo(n),n._fallbackId=Hn(Yu),n._descriptionId=Hn(Yu+"Description"),n._labelId=Hn(Yu+"Label"),n._warnControlledUsage();var r=t.defaultValue,i=void 0===r?Qu:r;return"number"==typeof i&&(i=String(i)),n.state={uncontrolledValue:n._isControlled?void 0:i,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return l(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return Ju(this.props,this.state)},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(e,t,n){var o=this.props,r=(n||{}).selection,i=void 0===r?[null,null]:r,a=i[0],s=i[1];!!e.multiline!=!!o.multiline&&t.isFocused&&(this.focus(),null!==a&&null!==s&&a>=0&&s>=0&&this.setSelectionRange(a,s));var l=Ju(e,t),u=this.value;l!==u&&(this._warnControlledUsage(e),this.state.errorMessage&&!o.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),this._lastChangeValue=void 0,$u(o)&&this._delayedValidate(u))},t.prototype.render=function(){var e=this.props,t=e.borderless,n=e.className,r=e.disabled,i=e.iconProps,a=e.inputClassName,s=e.label,l=e.multiline,c=e.required,d=e.underlined,p=e.prefix,f=e.resizable,h=e.suffix,m=e.theme,g=e.styles,v=e.autoAdjustHeight,y=e.onRenderPrefix,b=void 0===y?this._onRenderPrefix:y,_=e.onRenderSuffix,k=void 0===_?this._onRenderSuffix:_,x=e.onRenderLabel,C=void 0===x?this._onRenderLabel:x,w=e.onRenderDescription,S=void 0===w?this._onRenderDescription:w,E=this.state.isFocused,T=this._errorMessage;return this._classNames=Zu(g,{theme:m,className:n,disabled:r,focused:E,required:c,multiline:l,hasLabel:!!s,hasErrorMessage:!!T,borderless:t,resizable:f,hasIcon:!!i,underlined:d,inputClassName:a,autoAdjustHeight:v}),o.createElement("div",{className:this._classNames.root},o.createElement("div",{className:this._classNames.wrapper},C(this.props,this._onRenderLabel),o.createElement("div",{className:this._classNames.fieldGroup},(void 0!==p||this.props.onRenderPrefix)&&o.createElement("div",{className:this._classNames.prefix},b(this.props,this._onRenderPrefix)),l?this._renderTextArea():this._renderInput(),i&&o.createElement(lr,u({className:this._classNames.icon},i)),(void 0!==h||this.props.onRenderSuffix)&&o.createElement("div",{className:this._classNames.suffix},k(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&o.createElement("span",{id:this._descriptionId},S(this.props,this._onRenderDescription),T&&o.createElement("div",{role:"alert"},o.createElement(Al,null,o.createElement("p",{className:this._classNames.errorMessage},o.createElement("span",{"data-automation-id":"error-message"},T))))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!0,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._warnControlledUsage=function(e){this._id,this.props,null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,ae("Warning: 'value' prop on '"+Yu+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return Mu(this.props,"value")},enumerable:!0,configurable:!0}),t.prototype._onRenderPrefix=function(e){var t=e.prefix;return o.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return o.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!0,configurable:!0}),t.prototype._renderTextArea=function(){var e=Jn(this.props,Qn,["defaultValue"]),t=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return o.createElement("textarea",u({id:this._id},e,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e=Jn(this.props,Zn,["defaultValue"]),t=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return o.createElement("input",u({type:"text",id:this._id,"aria-labelledby":t},e,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":this.props.ariaLabel,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._validate=function(e){var t=this;if(this._latestValidateValue!==e||!$u(this.props)){this._latestValidateValue=e;var n=this.props.onGetErrorMessage,o=n&&n(e||"");if(void 0!==o)if("string"!=typeof o&&"then"in o){var r=++this._lastValidation;o.then((function(n){r===t._lastValidation&&t.setState({errorMessage:n}),t._notifyAfterValidate(e,n)}))}else this.setState({errorMessage:o}),this._notifyAfterValidate(e,o);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var e=this._textElement.current;e.style.height="",e.style.height=e.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(o.Component);function Ju(e,t){var n=e.value,o=void 0===n?t.uncontrolledValue:n;return"number"==typeof o?String(o):o}function $u(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var ec={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function tc(e){var t=e.underlined,n=e.disabled,o=e.focused,r=e.theme,i=r.palette,a=r.fonts;return function(){var e;return{root:[t&&n&&{color:i.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&o&&{selectors:(e={},e[Tt]={height:31},e)}]}}}var nc=Pn(Xu,(function(e){var t,n,o,r,i,a,s,l=e.theme,u=e.className,c=e.disabled,d=e.focused,p=e.required,f=e.multiline,h=e.hasLabel,m=e.borderless,g=e.underlined,v=e.hasIcon,y=e.resizable,b=e.hasErrorMessage,_=e.inputClassName,k=e.autoAdjustHeight,x=l.semanticColors,C=l.effects,w=l.fonts,S=Jt(ec,l),E={background:x.disabledBackground,color:c?x.disabledText:x.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0},T=[w.medium,{color:x.inputPlaceholderText,opacity:1}],I={color:x.disabledText};return{root:[S.root,w.medium,p&&S.required,c&&S.disabled,d&&S.active,f&&S.multiline,m&&S.borderless,g&&S.underlined,_n,{position:"relative"},u],wrapper:[S.wrapper,g&&[{display:"flex",borderBottom:"1px solid "+(b?x.errorText:x.inputBorder),width:"100%"},c&&{borderBottomColor:x.disabledBackground,selectors:(t={},t[Tt]={borderColor:"GrayText"},t)},!c&&{selectors:{":hover":{borderBottomColor:b?x.errorText:x.inputBorderHovered,selectors:(n={},n[Tt]={borderBottomColor:"Highlight"},n)}}},d&&Ft(b?x.errorText:x.inputFocusBorderAlt,C.roundedCorner2,"borderBottom")]],fieldGroup:[S.fieldGroup,_n,{border:"1px solid "+x.inputBorder,borderRadius:C.roundedCorner2,background:x.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},f&&{minHeight:"60px",height:"auto",display:"flex"},!d&&!c&&{selectors:{":hover":{borderColor:x.inputBorderHovered,selectors:(o={},o[Tt]={borderColor:"Highlight"},o)}}},d&&!g&&Ft(b?x.errorText:x.inputFocusBorderAlt,C.roundedCorner2),c&&{borderColor:x.disabledBackground,selectors:(r={},r[Tt]={borderColor:"GrayText"},r),cursor:"default"},m&&{border:"none"},m&&d&&{border:"none",selectors:{":after":{border:"none"}}},g&&{flex:"1 1 0px",border:"none",textAlign:"left"},g&&c&&{backgroundColor:"transparent"},b&&!g&&{borderColor:x.errorText,selectors:{"&:hover":{borderColor:x.errorText}}},!h&&p&&{selectors:(i={":before":{content:"'*'",color:x.errorText,position:"absolute",top:-5,right:-10}},i[Tt]={selectors:{":before":{right:-14}}},i)}],field:[w.medium,S.field,_n,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:x.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:{"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}}},kn(T),f&&!y&&[S.unresizable,{resize:"none"}],f&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},f&&k&&{overflow:"hidden"},v&&{paddingRight:24},f&&v&&{paddingRight:40},c&&[{backgroundColor:x.disabledBackground,color:x.disabledText,borderColor:x.disabledBackground},kn(I)],g&&{textAlign:"left"},d&&!m&&{selectors:(a={},a[Tt]={paddingLeft:11,paddingRight:11},a)},d&&f&&!m&&{selectors:(s={},s[Tt]={paddingTop:4},s)},_],icon:[f&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:ft.medium,lineHeight:18},c&&{color:x.disabledText}],description:[S.description,{color:x.bodySubtext,fontSize:w.xSmall.fontSize}],errorMessage:[S.errorMessage,xn.slideDownIn20,w.small,{color:x.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[S.prefix,E],suffix:[S.suffix,E],subComponentStyles:{label:tc(e)}}}),void 0,{scope:"TextField"}),oc=function(e){function t(t){var n=e.call(this,t)||this;return n.textref=null,n.textref=null,n.state={property_values:t.setting,multiline:!!t.setting.multiline},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting})},t.prototype.get_value=function(){return{value:this.textref.value}},t.prototype.render=function(){var e=this;return r.a.createElement(nc,{styles:{fieldGroup:{width:"350px",alignSelf:"start"}},onChange:function(t,n){e.setState((function(e){return{property_values:u({},e.property_values,{value:n})}})),e.parent_on_change()},multiline:this.state.multiline,value:this.state.property_values.value,label:this.state.property_values.display_name,componentRef:function(t){e.textref=t}})},t}(Su);function rc(e,t,n){void 0===n&&(n=10);var o=Math.pow(n,t);return Math.round(e*o)/o}var ic,ac=qt((function(e){var t,n=e.semanticColors,o=n.disabledText,r=n.disabledBackground;return{backgroundColor:r,borderColor:r,pointerEvents:"none",cursor:"default",color:o,selectors:(t={},t[Tt]={color:"GrayText"},t)}})),sc=qt((function(e,t,n){var o,r,i,a=e.palette,s=e.effects,l=a.neutralSecondary,u=a.neutralPrimary,c=a.neutralPrimary,d=a.neutralLighter,p=a.neutralLight;return j({root:{outline:"none",display:"block",height:"50%",width:23,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:l,selectors:{"&.ms-DownButton":{borderRadius:"0 0 "+s.roundedCorner2+" 0"},"&.ms-UpButton":{borderRadius:"0 "+s.roundedCorner2+" 0 0"}}},rootHovered:{backgroundColor:d,color:u},rootChecked:{backgroundColor:p,color:c,selectors:(o={},o[Tt]={backgroundColor:"Highlight",color:"HighlightText"},o)},rootPressed:{backgroundColor:p,color:c,selectors:(r={},r[Tt]={backgroundColor:"Highlight",color:"HighlightText"},r)},rootDisabled:{opacity:.5,selectors:(i={},i[Tt]={color:"GrayText",opacity:1},i)},icon:{fontSize:8,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},{},n)})),lc=qt((function(e,t){var n,o,r,i=e.palette,a=e.semanticColors,s=e.effects,l=e.fonts,u=a.inputBorder,c=a.inputBorderHovered,d=a.inputFocusBorderAlt,p=a.bodyText,f=i.white,h=i.themePrimary,m=a.disabledText;return j({root:{outline:"none",fontSize:l.medium.fontSize,width:"100%",minWidth:86},labelWrapper:{display:"inline-flex",alignItems:"center"},labelWrapperStart:{height:32,float:"left",marginRight:10},labelWrapperEnd:{height:32,float:"right",marginLeft:10},labelWrapperTop:{marginBottom:-1},labelWrapperBottom:{},icon:{padding:"0 5px",fontSize:ft.large},iconDisabled:{color:m},label:{pointerEvents:"none",lineHeight:ft.large},labelDisabled:{},spinButtonWrapper:{display:"flex",position:"relative",boxSizing:"border-box",height:32,minWidth:86,border:"1px solid "+u,borderRadius:s.roundedCorner2},spinButtonWrapperTopBottom:{width:"100%"},spinButtonWrapperHovered:{borderColor:c,selectors:(n={},n[Tt]={borderColor:"Highlight"},n)},spinButtonWrapperFocused:{selectors:(o={},o[Tt]={borderColor:"Highlight"},o[":after"]={pointerEvents:"none",content:"''",position:"absolute",left:-1,top:-1,bottom:-1,right:-1,border:"2px solid "+d,borderRadius:s.roundedCorner2},o)},spinButtonWrapperDisabled:ac(e),input:{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:l.medium.fontSize,color:p,height:"100%",padding:"0 8px",outline:0,display:"block",minWidth:61,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:s.roundedCorner2+" 0 0 "+s.roundedCorner2},inputTextSelected:{backgroundColor:h,color:f,selectors:(r={},r[Tt]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},r)},inputDisabled:ac(e),arrowButtonsContainer:{display:"block",height:"100%",cursor:"default"},arrowButtonsContainerDisabled:ac(e)},t)})),uc=qt((function(e,t,n,o,r,i){return void 0===r&&(r=Xi.start),void 0===i&&(i=void 0),{root:K(e.root,i),labelWrapper:K(e.labelWrapper,cc(r,e)),icon:K(e.icon,t&&e.iconDisabled),label:K(e.label),spinButtonWrapper:K(e.spinButtonWrapper,dc(r,e),!t&&[{selectors:{":hover":e.spinButtonWrapperHovered}},n&&{selectors:{"&&":e.spinButtonWrapperFocused}}],t&&e.spinButtonWrapperDisabled),input:K("ms-spinButton-input",e.input,!t&&{selectors:{"::selection":e.inputTextSelected}},t&&e.inputDisabled),arrowBox:K(e.arrowButtonsContainer,t&&e.arrowButtonsContainerDisabled)}}));function cc(e,t){switch(e){case Xi.start:return t.labelWrapperStart;case Xi.end:return t.labelWrapperEnd;case Xi.top:return t.labelWrapperTop;case Xi.bottom:return t.labelWrapperBottom}}function dc(e,t){switch(e){case Xi.top:case Xi.bottom:return t.spinButtonWrapperTopBottom;default:return{}}}!function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"}(ic||(ic={}));var pc=function(e){function t(t){var n=e.call(this,t)||this;n._input=o.createRef(),n._initialStepDelay=400,n._stepDelay=75,n._onFocus=function(e){n._input.current&&((n._spinningByMouse||n.state.keyboardSpinDirection!==ic.notSpinning)&&n._stop(),n._input.current.select(),n.setState({isFocused:!0}),n.props.onFocus&&n.props.onFocus(e))},n._onBlur=function(e){n._validate(e),n.setState({isFocused:!1}),n.props.onBlur&&n.props.onBlur(e)},n._onValidate=function(e,t){return n.props.onValidate?n.props.onValidate(e,t):n._defaultOnValidate(e)},n._calculatePrecision=function(e){var t=e.precision;return void 0===t?Math.max(function(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}(e.step),0):t},n._defaultOnValidate=function(e){if(null===e||0===e.trim().length||isNaN(Number(e)))return n._lastValidValue;var t=Math.min(n.props.max,Math.max(n.props.min,Number(e)));return String(t)},n._onIncrement=function(e){return n.props.onIncrement?n.props.onIncrement(e):n._defaultOnIncrement(e)},n._defaultOnIncrement=function(e){var t=n.props,o=t.max,r=t.step,i=Math.min(Number(e)+Number(r),o);return i=rc(i,n._precision),String(i)},n._onDecrement=function(e){return n.props.onDecrement?n.props.onDecrement(e):n._defaultOnDecrement(e)},n._defaultOnDecrement=function(e){var t=n.props,o=t.min,r=t.step,i=Math.max(Number(e)-Number(r),o);return i=rc(i,n._precision),String(i)},n._validate=function(e){if(void 0!==n.state.value&&void 0!==n._valueToValidate&&n._valueToValidate!==n._lastValidValue){var t=n._onValidate(n._valueToValidate,e);t&&(n._lastValidValue=t,n._valueToValidate=void 0,n.setState({value:t}))}},n._onInputChange=function(e){var t=e.target.value;n._valueToValidate=t,n.setState({value:t})},n._updateValue=function(e,t,o){var r=o(n.state.value);r&&(n._lastValidValue=r,n.setState({value:r})),n._spinningByMouse!==e&&(n._spinningByMouse=e),e&&(n._currentStepFunctionHandle=n._async.setTimeout((function(){n._updateValue(e,n._stepDelay,o)}),t))},n._stop=function(){n._currentStepFunctionHandle>=0&&(n._async.clearTimeout(n._currentStepFunctionHandle),n._currentStepFunctionHandle=-1),(n._spinningByMouse||n.state.keyboardSpinDirection!==ic.notSpinning)&&(n._spinningByMouse=!1,n.setState({keyboardSpinDirection:ic.notSpinning}))},n._handleKeyDown=function(e){if(e.which!==Fn.up&&e.which!==Fn.down&&e.which!==Fn.enter||(e.preventDefault(),e.stopPropagation()),n.props.disabled)n._stop();else{var t=ic.notSpinning;switch(e.which){case Fn.up:t=ic.up,n._updateValue(!1,n._initialStepDelay,n._onIncrement);break;case Fn.down:t=ic.down,n._updateValue(!1,n._initialStepDelay,n._onDecrement);break;case Fn.enter:case Fn.tab:n._validate(e);break;case Fn.escape:n.state.value!==n._lastValidValue&&n.setState({value:n._lastValidValue})}n.state.keyboardSpinDirection!==t&&n.setState({keyboardSpinDirection:t})}},n._handleKeyUp=function(e){(n.props.disabled||e.which===Fn.up||e.which===Fn.down)&&n._stop()},n._onIncrementMouseDown=function(){n._updateValue(!0,n._initialStepDelay,n._onIncrement)},n._onDecrementMouseDown=function(){n._updateValue(!0,n._initialStepDelay,n._onDecrement)},Dr(n),ro();var r=t.value||t.defaultValue||String(t.min)||"0";return n._lastValidValue=r,n._precision=n._calculatePrecision(n.props),n.state={isFocused:!1,value:r,keyboardSpinDirection:ic.notSpinning},n._async=new eo(n),n._currentStepFunctionHandle=-1,n._labelId=Hn("Label"),n._inputId=Hn("input"),n._spinningByMouse=!1,n._valueToValidate=void 0,n}return l(t,e),t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this._lastValidValue=this.state.value;var t=void 0!==e.value?e.value:String(e.min);e.defaultValue&&(t=String(Math.max(e.min,Math.min(e.max,Number(e.defaultValue))))),void 0!==e.value&&this.setState({value:t}),this._precision=this._calculatePrecision(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.label,i=t.min,a=t.max,s=t.labelPosition,l=t.iconProps,c=t.incrementButtonIcon,d=t.incrementButtonAriaLabel,p=t.decrementButtonIcon,f=t.decrementButtonAriaLabel,h=t.ariaLabel,m=t.ariaDescribedBy,g=t.styles,v=t.upArrowButtonStyles,y=t.downArrowButtonStyles,b=t.theme,_=t.ariaPositionInSet,k=t.ariaSetSize,x=t.ariaValueNow,C=t.ariaValueText,w=t.keytipProps,S=t.className,E=t.inputProps,T=t.iconButtonProps,I=this.state,P=I.isFocused,M=I.value,N=I.keyboardSpinDirection,D=this.props.getClassNames?this.props.getClassNames(b,n,P,N,s,S):uc(lc(b,g),n,P,N,s,S),A=Jn(this.props,Xn,["onBlur","onFocus","className"]);return o.createElement("div",{className:D.root},s!==Xi.bottom&&(l||r)&&o.createElement("div",{className:D.labelWrapper},l&&o.createElement(lr,u({},l,{className:D.icon,"aria-hidden":"true"})),r&&o.createElement(_u,{id:this._labelId,htmlFor:this._inputId,className:D.label,disabled:n},r)),o.createElement(Ms,{keytipProps:w,disabled:n},(function(t){return o.createElement("div",u({},A,{className:D.spinButtonWrapper,"aria-label":h&&h,"aria-posinset":_,"aria-setsize":k,"data-ktp-target":t["data-ktp-target"]}),o.createElement("input",u({value:M,id:e._inputId,onChange:e._onChange,onInput:e._onInputChange,className:D.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":r&&e._labelId,"aria-valuenow":isNaN(Number(x))?isNaN(Number(M))?void 0:Number(M):x,"aria-valuetext":C||(isNaN(Number(M))?M:void 0),"aria-valuemin":i,"aria-valuemax":a,"aria-describedby":po(m,t["aria-describedby"]),onBlur:e._onBlur,ref:e._input,onFocus:e._onFocus,onKeyDown:e._handleKeyDown,onKeyUp:e._handleKeyUp,readOnly:n,"aria-disabled":n,"data-lpignore":!0,"data-ktp-execute-target":t["data-ktp-execute-target"]},E)),o.createElement("span",{className:D.arrowBox},o.createElement(ou,u({styles:sc(b,!0,v),className:"ms-UpButton",checked:N===ic.up,disabled:n,iconProps:c,onMouseDown:e._onIncrementMouseDown,onMouseLeave:e._stop,onMouseUp:e._stop,tabIndex:-1,ariaLabel:d,"data-is-focusable":!1},T)),o.createElement(ou,u({styles:sc(b,!1,y),className:"ms-DownButton",checked:N===ic.down,disabled:n,iconProps:p,onMouseDown:e._onDecrementMouseDown,onMouseLeave:e._stop,onMouseUp:e._stop,tabIndex:-1,ariaLabel:f,"data-is-focusable":!1},T))))})),s===Xi.bottom&&(l||r)&&o.createElement("div",{className:D.labelWrapper},l&&o.createElement(lr,{iconName:l.iconName,className:D.icon,"aria-hidden":"true"}),r&&o.createElement(_u,{id:this._labelId,htmlFor:this._inputId,className:D.label,disabled:n},r)))},t.prototype.focus=function(){this._input.current&&this._input.current.focus()},Object.defineProperty(t.prototype,"value",{get:function(){return void 0===this.props.value?this.state.value:this.props.value},enumerable:!0,configurable:!0}),t.prototype._onChange=function(){},t.defaultProps={step:1,min:0,max:100,disabled:!1,labelPosition:Xi.start,label:"",incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},t=d([es("SpinButton",["theme","styles"],!0)],t)}(o.Component),fc=function(e){function t(t){var n=e.call(this,t)||this;return n.spinbuttonref=null,n.spinbuttonref=null,n.state={property_values:t.setting},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting})},t.prototype.get_value=function(){return{value:parseInt(this.spinbuttonref.value)}},t.prototype.render=function(){var e=this;return r.a.createElement(pc,{styles:{spinButtonWrapperTopBottom:{maxWidth:"250px",alignSelf:"start"},input:{backgroundColor:"transparent"}},value:this.state.property_values.value,onValidate:function(t){return 0===t.trim().length||isNaN(+t)?t=String(e.state.property_values.value):Number(t)e.spinbuttonref.props.max&&(t=String(e.spinbuttonref.props.max)),e.setState((function(e){return{property_values:u({},e.property_values,{value:parseInt(t)})}})),e.parent_on_change(),t},onIncrement:function(t){return t=Number(t)+e.spinbuttonref.props.step>e.spinbuttonref.props.max?String(e.spinbuttonref.props.max):String(+t+e.spinbuttonref.props.step),e.setState((function(e){return{property_values:u({},e.property_values,{value:parseInt(t)})}})),e.parent_on_change(),t},onDecrement:function(t){return t=Number(t)-e.spinbuttonref.props.stept?t:e}function Tc(e,t,n){return[Ic(e),Ic(t),Ic(n)].join("")}function Ic(e){var t=(e=Ec(e,gc)).toString(16);return 1===t.length?"0"+t:t}function Pc(e,t,n,o,r){return o===vc||"number"!=typeof o?"#"+r:"rgba("+e+", "+t+", "+n+", "+o/vc+")"}function Mc(e){var t=e.a,n=void 0===t?vc:t,o=e.b,r=e.g,i=e.r,a=function(e,t,n){var o=NaN,r=Math.max(e,t,n),i=r-Math.min(e,t,n);return 0===i?o=0:e===r?o=(t-n)/i%6:t===r?o=(n-e)/i+2:n===r&&(o=(e-t)/i+4),(o=Math.round(60*o))<0&&(o+=360),{h:o,s:Math.round(100*(0===r?0:i/r)),v:Math.round(r/gc*100)}}(i,r,o),s=a.h,l=a.s,u=a.v,c=Tc(i,r,o);return{a:n,b:o,g:r,h:s,hex:c,r:i,s:l,str:Pc(i,r,o,n,c),v:u}}function Nc(e){var t=wc(e);if(t)return u(u({},Mc(t)),{str:e})}function Dc(e){return"#"+(t=e.h,Tc((n=Cc(t,hc,mc)).r,n.g,n.b));var t,n}function Ac(e,t,n){var o=Cc(e.h,t,n),r=o.r,i=o.g,a=o.b,s=Tc(r,i,a);return{a:e.a,b:a,g:i,h:e.h,hex:s,r:r,s:t,str:Pc(r,i,a,e.a,s),v:n}}var Bc=Yo(),Fc=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._isAdjustingSaturation=!0,n._descriptionId=Hn("ColorRectangle-description"),n._onKeyDown=function(e){var t=n.state.color,o=t.s,r=t.v,i=e.shiftKey?10:1;switch(e.which){case Fn.up:n._isAdjustingSaturation=!1,r+=i;break;case Fn.down:n._isAdjustingSaturation=!1,r-=i;break;case Fn.left:n._isAdjustingSaturation=!0,o-=i;break;case Fn.right:n._isAdjustingSaturation=!0,o+=i;break;default:return}n._updateColor(e,Ac(t,Ec(o,hc),Ec(r,mc)))},n._onMouseDown=function(e){n._events.on(window,"mousemove",n._onMouseMove,!0),n._events.on(window,"mouseup",n._disableEvents,!0),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=function(e,t,n){var o=n.getBoundingClientRect(),r=(e.clientX-o.left)/o.width,i=(e.clientY-o.top)/o.height;return Ac(t,Ec(Math.round(r*hc),hc),Ec(Math.round(mc-i*mc),mc))}(e,n.state.color,n._root.current);t&&n._updateColor(e,t)}},n._disableEvents=function(){n._events.off()},Dr(n),n._events=new to(n),n.state={color:t.color},n}return l(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&this.props.color&&this.setState({color:this.props.color})},t.prototype.componentWillUnmount=function(){this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.minSize,n=e.theme,r=e.className,i=e.styles,a=e.ariaValueFormat,s=e.ariaLabel,l=e.ariaDescription,u=this.state.color,c=Bc(i,{theme:n,className:r,minSize:t}),d=a.replace("{0}",String(u.s)).replace("{1}",String(u.v));return o.createElement("div",{ref:this._root,tabIndex:0,className:c.root,style:{backgroundColor:Dc(u)},onMouseDown:this._onMouseDown,onKeyDown:this._onKeyDown,role:"slider","aria-valuetext":d,"aria-valuenow":this._isAdjustingSaturation?u.s:u.v,"aria-valuemin":0,"aria-valuemax":mc,"aria-label":s,"aria-describedby":this._descriptionId,"data-is-focusable":!0},o.createElement("div",{className:c.description,id:this._descriptionId},l),o.createElement("div",{className:c.light}),o.createElement("div",{className:c.dark}),o.createElement("div",{className:c.thumb,style:{left:u.s+"%",top:mc-u.v+"%",backgroundColor:u.str}}))},t.prototype._updateColor=function(e,t){var n=this.props.onChange,o=this.state.color;t.s===o.s&&t.v===o.v||(n&&n(e,t),e.defaultPrevented||(this.setState({color:t}),e.preventDefault()))},t.defaultProps={minSize:220,ariaLabel:"Saturation and brightness",ariaValueFormat:"Saturation {0} brightness {1}",ariaDescription:"Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."},t}(o.Component);var Oc=Pn(Fc,(function(e){var t,n=e.className,o=e.theme,r=e.minSize,i=o.palette,a=o.effects;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:8,border:"1px solid "+i.neutralLighter,borderRadius:a.roundedCorner2,minWidth:r,minHeight:r,outline:"none",selectors:(t={},t[Tt]={MsHighContrastAdjust:"none"},t["."+Mt+" &:focus"]={outline:"1px solid "+i.neutralSecondary},t)},n],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+i.neutralSecondaryAlt,borderRadius:"50%",boxShadow:a.elevation8,transform:"translate(-50%, -50%)",selectors:{":before":{position:"absolute",left:0,right:0,top:0,bottom:0,border:"2px solid "+i.white,borderRadius:"50%",boxSizing:"border-box",content:'""'}}}],description:Ot}}),void 0,{scope:"ColorRectangle"}),Rc=Yo(),Lc=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._onKeyDown=function(e){var t=n.value,o=n.props,r=o.minValue,i=o.maxValue,a=e.shiftKey?10:1;switch(e.which){case Fn.left:t-=a;break;case Fn.right:t+=a;break;case Fn.home:t=r;break;case Fn.end:t=i;break;default:return}n._updateValue(e,Ec(t,i,r))},n._onMouseDown=function(e){var t=$(n);n._events.on(t,"mousemove",n._onMouseMove,!0),n._events.on(t,"mouseup",n._onMouseUp,!0),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=n.props,o=t.minValue,r=t.maxValue,i=n._root.current.getBoundingClientRect(),a=(e.clientX-i.left)/i.width,s=Ec(Math.round(a*r),r,o);n._updateValue(e,s)}},n._onMouseUp=function(){n._events.off()},Dr(n),n._events=new to(n),n.state={currentValue:t.value||0},n}return l(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.state.currentValue},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&void 0!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.componentWillUnmount=function(){this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.isAlpha,n=e.minValue,r=e.maxValue,i=e.overlayStyle,a=e.overlayColor,s=e.theme,l=e.className,u=e.styles,c=this.props.ariaLabel,d=void 0===c?t?"Alpha":"Hue":c,p=this.value,f=Rc(u,{theme:s,className:l,isAlpha:t}),h=100*(p-n)/(r-n);return o.createElement("div",{ref:this._root,className:f.root,tabIndex:0,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,role:"slider","aria-valuenow":p,"aria-valuetext":String(p),"aria-valuemin":n,"aria-valuemax":r,"aria-label":d,"data-is-focusable":!0},!(!i&&!a)&&o.createElement("div",{className:f.sliderOverlay,style:i||{background:"linear-gradient(to right, transparent 0, #"+a+" 100%)"}}),o.createElement("div",{className:f.sliderThumb,style:{left:h+"%"}}))},t.prototype._updateValue=function(e,t){if(t!==this.value){var n=this.props.onChange;n&&n(e,t),e.defaultPrevented||(this.setState({currentValue:t}),e.preventDefault())}},t.defaultProps={minValue:0,maxValue:100,value:0},t}(o.Component),Hc={background:"linear-gradient(to left,red 0,#f09 10%,#cd00ff 20%,#3200ff 30%,#06f 40%,#00fffd 50%,#0f6 60%,#35ff00 70%,#cdff00 80%,#f90 90%,red 100%)"},Wc={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},zc=Pn(Lc,(function(e){var t,n=e.theme,o=e.className,r=e.isAlpha,i=n.palette,a=n.effects;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:8,border:"1px solid "+i.neutralLight,borderRadius:a.roundedCorner2,boxSizing:"border-box",outline:"none",selectors:(t={},t["."+Mt+" &:focus"]={outline:"1px solid "+i.neutralSecondary},t)},r?Wc:Hc,o],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+i.neutralSecondaryAlt,borderRadius:"50%",boxShadow:a.elevation8,transform:"translate(-50%, -50%)",top:"50%"}]}}),void 0,{scope:"ColorSlider"});var Uc=Yo(),Kc=["hex","r","g","b","a"];function jc(e){var t=e.color;return"string"==typeof t?Nc(t):t}var Vc=Pn(function(e){function t(n){var o=e.call(this,n)||this;o._onSVChanged=function(e,t){o._updateColor(e,t)},o._onHChanged=function(e,t){o._updateColor(e,function(e,t){var n=Cc(t,e.s,e.v),o=n.r,r=n.g,i=n.b,a=Tc(o,r,i);return{a:e.a,b:i,g:r,h:t,hex:a,r:o,s:e.s,str:Pc(o,r,i,e.a,a),v:e.v}}(o.state.color,t))},o._onAChanged=function(e,t){o._updateColor(e,function(e,t){return u(u({},e),{a:t,str:Pc(e.r,e.g,e.b,t,e.hex)})}(o.state.color,Math.round(t)))},o._onBlur=function(e){var t,n=o.state,r=n.color,i=n.editingColor;if(i){var a,s=i.value,l=i.component,c="hex"===l,d=c?yc:_c;if(s.length>=d&&(c||!isNaN(Number(s)))){var p=void 0;p=c?Nc("#"+(!(a=s)||a.length=bc?a.substring(0,bc):a.substring(0,yc))):Mc(function(e){return{r:Ec(e.r,gc),g:Ec(e.g,gc),b:Ec(e.b,gc),a:"number"==typeof e.a?Ec(e.a,vc):e.a}}(u(u({},r),((t={})[l]=Number(s),t)))),o._updateColor(e,p)}else o.setState({editingColor:void 0})}},Dr(o),o.state={color:jc(n)||Nc("#ffffff")},o._textChangeHandlers={};for(var r=0,i=Kc;rthis._displayOnlyOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index "+e+" is not a selectable element.");return e-t+1}},e}();!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(nd||(nd={}));var rd,id=Yo();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(rd||(rd={}));var ad,sd,ld,ud,cd,dd=function(e){function t(t){var n=e.call(this,t)||this;n._panel=o.createRef(),n._animationCallback=null,n.dismiss=function(e){n.props.onDismiss&&n.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&n.close()},n._allowScrollOnPanel=function(e){e?n._allowTouchBodyScroll?qr(e,n._events):Gr(e,n._events):n._events.off(n._scrollableContent),n._scrollableContent=e},n._onRenderNavigation=function(e){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var t=n.props.onRenderNavigationContent,r=void 0===t?n._onRenderNavigationContent:t;return o.createElement("div",{className:n._classNames.navigation},r(e,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(e){var t=e.closeButtonAriaLabel,r=e.hasCloseButton,i=gn();return r?o.createElement(ou,{styles:{root:{height:"auto",width:"44px",color:i.palette.neutralSecondary,fontSize:ft.large},rootHovered:{color:i.palette.neutralPrimary}},className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:t,title:t,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}):null},n._onRenderHeader=function(e,t,r){var i=e.headerText;return i?o.createElement("div",{className:n._classNames.header},o.createElement("p",{className:n._classNames.headerText,id:r,role:"heading","aria-level":2},i)):null},n._onRenderBody=function(e){return o.createElement("div",{className:n._classNames.content},e.children)},n._onRenderFooter=function(e){var t=n.props.onRenderFooterContent,r=void 0===t?null:t;return r?o.createElement("div",{className:n._classNames.footer},o.createElement("div",{className:n._classNames.footerInner},r())):null},n._animateTo=function(e){n._animationCallback=n._async.setTimeout((function(){n.setState({visibility:e}),n._onTransitionComplete()}),200)},n._clearExistingAnimationTimer=function(){null!==n._animationCallback&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(e){n.dismiss(e)},n._onTransitionComplete=function(){n._updateFooterPosition(),n.state.visibility===rd.open&&n.props.onOpened&&n.props.onOpened(),n.state.visibility===rd.closed&&n.props.onDismissed&&n.props.onDismissed()};var r=n.props.allowTouchBodyScroll,i=void 0!==r&&r;return n._allowTouchBodyScroll=i,n._warnDeprecations({ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),n.state={isFooterSticky:!1,visibility:rd.closed,id:Hn("Panel")},n}return l(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==rd.closed&&t.visibility!==rd.animatingClosed?e.isOpen||t.visibility!==rd.open&&t.visibility!==rd.animatingOpen?null:{visibility:rd.animatingClosed}:{visibility:rd.animatingOpen}},t.prototype.componentDidMount=function(){this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:rd.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),o=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===rd.animatingOpen?this._animateTo(rd.open):this.state.visibility===rd.animatingClosed&&this._animateTo(rd.closed)),n&&!o?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!n&&o&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.render=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.elementToFocusOnDismiss,i=e.firstFocusableSelector,a=e.focusTrapZoneProps,s=e.forceFocusInsideTrap,l=e.hasCloseButton,c=e.headerText,d=e.headerClassName,p=void 0===d?"":d,f=e.ignoreExternalFocusing,h=e.isBlocking,m=e.isFooterAtBottom,g=e.isLightDismiss,v=e.isHiddenOnDismiss,y=e.layerProps,b=e.overlayProps,_=e.type,k=e.styles,x=e.theme,C=e.customWidth,w=e.onLightDismissClick,S=void 0===w?this._onPanelClick:w,E=e.onRenderNavigation,T=void 0===E?this._onRenderNavigation:E,I=e.onRenderHeader,P=void 0===I?this._onRenderHeader:I,M=e.onRenderBody,N=void 0===M?this._onRenderBody:M,D=e.onRenderFooter,A=void 0===D?this._onRenderFooter:D,B=this.state,F=B.isFooterSticky,O=B.visibility,R=B.id,L=_===nd.smallFixedNear||_===nd.customNear,H=Uo(x)?L:!L,W=c&&R+"-headerText",z=_===nd.custom||_===nd.customNear?{width:C}:{},U=Jn(this.props,Xn),K=this.isActive,j=O===rd.animatingClosed||O===rd.animatingOpen;if(!K&&!j&&!v)return null;this._classNames=id(k,{theme:x,className:n,focusTrapZoneClassName:a?a.className:void 0,hasCloseButton:l,headerClassName:p,isAnimating:j,isFooterSticky:F,isFooterAtBottom:m,isOnRightSide:H,isOpen:K,isHiddenOnDismiss:v,type:_});var V,G=this._classNames,q=this._allowTouchBodyScroll;h&&K&&(V=o.createElement(Ql,u({className:G.overlay,isDarkThemed:!1,onClick:g?S:void 0,allowTouchBodyScroll:q},b)));var Z=P(this.props,this._onRenderHeader,W);return o.createElement(ls,u({},y),o.createElement(Fa,{role:"dialog","aria-modal":"true",ariaLabelledBy:Z?W:void 0,onDismiss:this.dismiss,className:G.hiddenPanel},o.createElement("div",u({"aria-hidden":!K&&j},U,{ref:this._panel,className:G.root}),V,o.createElement(Kl,u({ignoreExternalFocusing:f,forceFocusInsideTrap:!(!h||v&&!K)&&s,firstFocusableSelector:i,isClickableOutsideFocusTrap:!0},a,{className:G.main,style:z,elementToFocusOnDismiss:r}),o.createElement("div",{className:G.commands,"data-is-visible":!0},T(this.props,this._onRenderNavigation)),o.createElement("div",{className:G.contentInner},Z,o.createElement("div",{ref:this._allowScrollOnPanel,className:G.scrollableContent,"data-is-scrollable":!0},N(this.props,this._onRenderBody)),A(this.props,this._onRenderFooter))))))},t.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||(this.props.onOpen&&this.props.onOpen(),this.setState({visibility:rd.animatingOpen})))},t.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:rd.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===rd.open||this.state.visibility===rd.animatingOpen},enumerable:!0,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t0&&s();var o=r._id+e.key;i.items.push(n(u(u({id:o},e),{index:t}),r._onRenderItem)),i.id=o;break;case Zc.Divider:t>0&&i.items.push(n(u(u({},e),{index:t}),r._onRenderItem)),i.items.length>0&&s();break;default:i.items.push(n(u(u({},e),{index:t}),r._onRenderItem))}}(e,t)})),i.items.length>0&&s(),o.createElement(o.Fragment,null,a)},r._onRenderItem=function(e){switch(e.itemType){case Zc.Divider:return r._renderSeparator(e);case Zc.Header:return r._renderHeader(e);default:return r._renderOption(e)}},r._renderOption=function(e){var t=r.props.onRenderOption,n=void 0===t?r._onRenderOption:t,i=r.state.selectedIndices,a=void 0===i?[]:i,s=!(void 0===e.index||!a)&&a.indexOf(e.index)>-1,l=e.hidden?r._classNames.dropdownItemHidden:s&&!0===e.disabled?r._classNames.dropdownItemSelectedAndDisabled:s?r._classNames.dropdownItemSelected:!0===e.disabled?r._classNames.dropdownItemDisabled:r._classNames.dropdownItem,u=e.title,c=void 0===u?e.text:u,d=r._classNames.subComponentStyles?r._classNames.subComponentStyles.multiSelectItem:void 0;return r.props.multiSelect?o.createElement(ed,{id:r._listId+e.index,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,onChange:r._onItemClick(e),inputProps:{onMouseEnter:r._onItemMouseEnter.bind(r,e),onMouseLeave:r._onMouseItemLeave.bind(r,e),onMouseMove:r._onItemMouseMove.bind(r,e)},label:e.text,title:c,onRenderLabel:r._onRenderItemLabel.bind(r,e),className:l,role:"option","aria-selected":s?"true":"false",checked:s,styles:d,ariaPositionInSet:r._sizePosCache.positionInSet(e.index),ariaSetSize:r._sizePosCache.optionSetSize}):o.createElement(td,{id:r._listId+e.index,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:l,onClick:r._onItemClick(e),onMouseEnter:r._onItemMouseEnter.bind(r,e),onMouseLeave:r._onMouseItemLeave.bind(r,e),onMouseMove:r._onItemMouseMove.bind(r,e),role:"option","aria-selected":s?"true":"false",ariaLabel:e.ariaLabel,title:c,"aria-posinset":r._sizePosCache.positionInSet(e.index),"aria-setsize":r._sizePosCache.optionSetSize},n(e,r._onRenderOption))},r._onRenderOption=function(e){return o.createElement("span",{className:r._classNames.dropdownOptionText},e.text)},r._onRenderItemLabel=function(e){var t=r.props.onRenderOption;return(void 0===t?r._onRenderOption:t)(e,r._onRenderOption)},r._onPositioned=function(e){r._focusZone.current&&r._requestAnimationFrame((function(){var e=r.state.selectedIndices;if(r._focusZone.current)if(e&&e[0]&&!r.props.options[e[0]].disabled){var t=yt().querySelector("#"+r._id+"-list"+e[0]);r._focusZone.current.focusElement(t)}else r._focusZone.current.focus()})),r.state.calloutRenderEdge&&r.state.calloutRenderEdge===e.targetEdge||r.setState({calloutRenderEdge:e.targetEdge})},r._onItemClick=function(e){return function(t){e.disabled||(r.setSelectedIndex(t,e.index),r.props.multiSelect||r.setState({isOpen:!1}))}},r._onScroll=function(){r._isScrollIdle||void 0===r._scrollIdleTimeoutId?r._isScrollIdle=!1:(clearTimeout(r._scrollIdleTimeoutId),r._scrollIdleTimeoutId=void 0),r._scrollIdleTimeoutId=setTimeout((function(){r._isScrollIdle=!0}),r._scrollIdleDelay)},r._onMouseItemLeave=function(e,t){if(!r._shouldIgnoreMouseEvent()&&r._host.current)if(r._host.current.setActive)try{r._host.current.setActive()}catch(e){}else r._host.current.focus()},r._onDismiss=function(){r.setState({isOpen:!1}),r._dropDown.current&&r._dropDown.current.focus()},r._onDropdownBlur=function(e){r._isDisabled()||(r.setState({hasFocus:!1}),r.state.isOpen||r.props.onBlur&&r.props.onBlur(e))},r._onDropdownKeyDown=function(e){if(!r._isDisabled()&&(r._lastKeyDownWasAltOrMeta=r._isAltOrMeta(e),!r.props.onKeyDown||(r.props.onKeyDown(e),!e.defaultPrevented))){var t,n=r.state.selectedIndices.length?r.state.selectedIndices[0]:-1,o=e.altKey||e.metaKey,i=r.state.isOpen;switch(e.which){case Fn.enter:r.setState({isOpen:!i});break;case Fn.escape:if(!i)return;r.setState({isOpen:!1});break;case Fn.up:if(o){if(i){r.setState({isOpen:!1});break}return}r.props.multiSelect?r.setState({isOpen:!0}):r._isDisabled()||(t=r._moveIndex(e,-1,n-1,n));break;case Fn.down:o&&(e.stopPropagation(),e.preventDefault()),o&&!i||r.props.multiSelect?r.setState({isOpen:!0}):r._isDisabled()||(t=r._moveIndex(e,1,n+1,n));break;case Fn.home:r.props.multiSelect||(t=r._moveIndex(e,1,0,n));break;case Fn.end:r.props.multiSelect||(t=r._moveIndex(e,-1,r.props.options.length-1,n));break;case Fn.space:break;default:return}t!==n&&(e.stopPropagation(),e.preventDefault())}},r._onDropdownKeyUp=function(e){if(!r._isDisabled()){var t=r._shouldHandleKeyUp(e),n=r.state.isOpen;if(!r.props.onKeyUp||(r.props.onKeyUp(e),!e.defaultPrevented)){switch(e.which){case Fn.space:r.setState({isOpen:!n});break;default:return void(t&&n&&r.setState({isOpen:!1}))}e.stopPropagation(),e.preventDefault()}}},r._onZoneKeyDown=function(e){var t;r._lastKeyDownWasAltOrMeta=r._isAltOrMeta(e);var n=e.altKey||e.metaKey;switch(e.which){case Fn.up:n?r.setState({isOpen:!1}):r._host.current&&(t=br(r._host.current,r._host.current.lastChild,!0));break;case Fn.home:case Fn.end:case Fn.pageUp:case Fn.pageDown:break;case Fn.down:!n&&r._host.current&&(t=yr(r._host.current,r._host.current.firstChild,!0));break;case Fn.escape:r.setState({isOpen:!1});break;case Fn.tab:return void r.setState({isOpen:!1});default:return}t&&t.focus(),e.stopPropagation(),e.preventDefault()},r._onZoneKeyUp=function(e){r._shouldHandleKeyUp(e)&&r.state.isOpen&&(r.setState({isOpen:!1}),e.preventDefault())},r._onDropdownClick=function(e){if(!r.props.onClick||(r.props.onClick(e),!e.defaultPrevented)){var t=r.state.isOpen;r._isDisabled()||r._shouldOpenOnFocus()||r.setState({isOpen:!t}),r._isFocusedByClick=!1}},r._onDropdownMouseDown=function(){r._isFocusedByClick=!0},r._onFocus=function(e){var t=r.state,n=t.isOpen,o=t.selectedIndices,i=r.props.multiSelect;if(!r._isDisabled()){r._isFocusedByClick||n||0!==o.length||i||r._moveIndex(e,1,0,-1),r.props.onFocus&&r.props.onFocus(e);var a={hasFocus:!0};r._shouldOpenOnFocus()&&(a.isOpen=!0),r.setState(a)}},r._isDisabled=function(){var e=r.props.disabled,t=r.props.isDisabled;return void 0!==t&&(e=t),e},r._onRenderLabel=function(e){var t=e.label,n=e.required,i=e.disabled,a=r._classNames.subComponentStyles?r._classNames.subComponentStyles.label:void 0;return t?o.createElement(_u,{className:r._classNames.label,id:r._labelId,required:n,styles:a,disabled:i},t):null},Dr(r),r._id=t.id||Hn("Dropdown"),r._labelId=r._id+"-label",r._listId=r._id+"-list",r._optionId=r._id+"-option",r._isScrollIdle=!0,r.props.multiSelect){var i=void 0!==t.defaultSelectedKeys?t.defaultSelectedKeys:t.selectedKeys;n=r._getSelectedIndexes(t.options,i)}else{var a=void 0!==t.defaultSelectedKey?t.defaultSelectedKey:t.selectedKey;n=r._getSelectedIndexes(t.options,a)}return r._sizePosCache.updateOptions(t.options),r.state={isOpen:!1,selectedIndices:n,hasFocus:!1,calloutRenderEdge:void 0},r}return l(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return Dd(this.props.options,this.state.selectedIndices)},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t,n=e.options!==this.props.options;void 0===e[t=e.multiSelect?n&&void 0!==e.defaultSelectedKeys?"defaultSelectedKeys":"selectedKeys":n&&void 0!==e.defaultSelectedKey?"defaultSelectedKey":"selectedKey"]||e[t]===this.props[t]&&!n||this.setState({selectedIndices:this._getSelectedIndexes(e.options,e[t])}),e.options!==this.props.options&&this._sizePosCache.updateOptions(e.options)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._dropDown.current&&this._dropDown.current.focus(),this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this,t=this._id,n=this.props,r=n.className,i=n.label,a=n.options,s=n.ariaLabel,l=n.required,c=n.errorMessage,d=n.keytipProps,p=n.styles,f=n.theme,h=n.panelProps,m=n.calloutProps,g=n.multiSelect,v=n.onRenderTitle,y=void 0===v?this._onRenderTitle:v,b=n.onRenderContainer,_=void 0===b?this._onRenderContainer:b,k=n.onRenderCaretDown,x=void 0===k?this._onRenderCaretDown:k,C=n.onRenderLabel,w=void 0===C?this._onRenderLabel:C,S=this.state,E=S.isOpen,T=S.selectedIndices,I=S.calloutRenderEdge,P=n.onRenderPlaceholder||n.onRenderPlaceHolder||this._onRenderPlaceholder,M=Dd(a,T),N=Jn(n,Xn),D=this._isDisabled(),A=t+"-errorMessage",B=D?void 0:E&&1===T.length&&T[0]>=0?this._listId+T[0]:void 0,F=g?{role:"button"}:{role:"listbox",childRole:"option",ariaSetSize:this._sizePosCache.optionSetSize,ariaPosInSet:this._sizePosCache.positionInSet(T[0]),ariaSelected:void 0!==T[0]||void 0};this._classNames=Od(p,{theme:f,className:r,hasError:!!(c&&c.length>0),hasLabel:!!i,isOpen:E,required:l,disabled:D,isRenderingPlaceholder:!M.length,panelClassName:h?h.className:void 0,calloutClassName:m?m.className:void 0,calloutRenderEdge:I});var O=!!c&&c.length>0;return o.createElement("div",{className:this._classNames.root},w(this.props,this._onRenderLabel),o.createElement(Ms,{keytipProps:d,disabled:D},(function(r){return o.createElement("div",u({},r,{"data-is-focusable":!D,ref:e._dropDown,id:t,tabIndex:D?-1:0,role:F.role,"aria-haspopup":"listbox","aria-expanded":E?"true":"false","aria-label":s,"aria-labelledby":i&&!s?po(e._labelId,e._optionId):void 0,"aria-describedby":po(r["aria-describedby"],O?e._id+"-errorMessage":void 0),"aria-activedescendant":B,"aria-required":l,"aria-disabled":D,"aria-owns":E?e._listId:void 0},N,{className:e._classNames.dropdown,onBlur:e._onDropdownBlur,onKeyDown:e._onDropdownKeyDown,onKeyUp:e._onDropdownKeyUp,onClick:e._onDropdownClick,onMouseDown:e._onDropdownMouseDown,onFocus:e._onFocus}),o.createElement("span",{id:e._optionId,className:e._classNames.title,"aria-live":"polite","aria-atomic":!0,"aria-invalid":O,role:F.childRole,"aria-setsize":F.ariaSetSize,"aria-posinset":F.ariaPosInSet,"aria-selected":F.ariaSelected},M.length?y(M,e._onRenderTitle):P(n,e._onRenderPlaceholder)),o.createElement("span",{className:e._classNames.caretDownWrapper},x(n,e._onRenderCaretDown)))})),E&&_(u(u({},n),{onDismiss:this._onDismiss}),this._onRenderContainer),O&&o.createElement("div",{role:"alert",id:A,className:this._classNames.errorMessage},c))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var n=this,o=this.props,r=o.options,i=o.selectedKey,a=o.selectedKeys,s=o.multiSelect,l=o.notifyOnReselect,u=this.state.selectedIndices,c=void 0===u?[]:u,d=!!c&&c.indexOf(t)>-1,p=[];if(t=Math.max(0,Math.min(r.length-1,t)),void 0===i&&void 0===a){if(s||l||t!==c[0]){if(s)if(p=c?this._copyArray(c):[],d){var f=p.indexOf(t);f>-1&&p.splice(f,1)}else p.push(t);else p=[t];e.persist(),this.setState({selectedIndices:p},(function(){n._onChange(e,r,t,d,s)}))}}else this._onChange(e,r,t,d,s)},Object.defineProperty(t.prototype,"_placeholder",{get:function(){return this.props.placeholder||this.props.placeHolder},enumerable:!0,configurable:!0}),t.prototype._copyArray=function(e){for(var t=[],n=0,o=e;n=r.length&&(n=r.length-1);for(var i=0;r[n].itemType===Zc.Header||r[n].itemType===Zc.Divider||r[n].disabled;){if(i>=r.length)return o;n+t<0?n=r.length:n+t>=r.length&&(n=-1),n+=t,i++}return this.setSelectedIndex(e,n),n},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,r=e.label,i=e.ariaLabel,a=e.multiSelect;return o.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},o.createElement(Li,{ref:this._focusZone,direction:dr.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":i,"aria-labelledby":r&&!i?this._labelId:void 0,"aria-multiselectable":a},n(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key;return t>0?o.createElement("div",{role:"separator",key:n,className:this._classNames.dropdownDivider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,r=e.key,i=e.id;return o.createElement("div",{id:i,key:r,className:this._classNames.dropdownItemHeader},n(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},t.prototype._onItemMouseMove=function(e,t){var n=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==n&&n.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._getSelectedIndexes=function(e,t){if(void 0===t)return this.props.multiSelect?this._getAllSelectedIndices(e):-1!==(i=this._getSelectedIndex(e,null))?[i]:[];if(!Array.isArray(t))return-1!==(i=this._getSelectedIndex(e,t))?[i]:[];for(var n=[],o=0,r=t;o svg":{paddingTop:"2px"},"&:hover i.ms-Button-icon":{color:i.palette.neutralPrimary},"&:active i.ms-Button-icon":{color:i.palette.neutralPrimary}}}},groups:[{links:[{name:"General Settings",key:"general",url:"",icon:"Settings"}].concat(n)}]})),r.a.createElement("div",{className:"editorzone",style:{backgroundColor:i.palette.white,color:i.palette.black}},r.a.createElement("div",{className:"editorhead"},r.a.createElement("div",{className:"editortitle"},r.a.createElement(ml,{variant:"xxLarge",styles:{root:{display:"block",whiteSpace:"no-wrap",overflow:"hidden",textOverflow:"ellipsis"}}},"general"!=this.state.selected_menu?t[this.state.selected_menu].name+" Settings":"PowerToys General Settings")),r.a.createElement("div",{className:"editorheadbuttons"},r.a.createElement(wl,{horizontal:!0,tokens:{childrenGap:16}},r.a.createElement(Nl,{styles:{root:{minWidth:"100px"}},disabled:!this.state.data_changed||this.state.saving,text:this.state.saving?"Saving":"Save",onClick:this.save_clicked},this.state.saving?r.a.createElement(Ll,{size:Tl.small}):r.a.createElement("span",null))))),r.a.createElement("div",{className:"editorbody"},r.a.createElement(Ul,{styles:{contentContainer:{paddingTop:"16px",paddingLeft:"16px",paddingRight:"16px"}}},"general"===e.state.selected_menu&&e.state.settings.hasOwnProperty("general")?r.a.createElement(qu,{key:"general",settings_key:"general",settings:e.state.settings,on_change:e.on_setting_change,ref:function(t){e.settings_screen_ref=t}}):e.state.settings.hasOwnProperty("powertoys")&&e.state.selected_menu in e.state.settings.powertoys?r.a.createElement(Vd,{key:e.state.selected_menu,settings_key:e.state.selected_menu,powertoy:e.state.settings.powertoys[e.state.selected_menu],on_change:e.on_setting_change,ref:function(t){e.settings_screen_ref=t}}):void 0))),r.a.createElement(yu,{hidden:!this.state.show_save_discard_dialog,onDismiss:this.close_save_discard_dialog,dialogContentProps:{type:Dl.normal,title:"Changes not saved",subText:this.state.user_trying_to_exit?"Would you like to save your changes or exit the settings?":"Would you like to save or discard your changes?"},modalProps:{isBlocking:!0,styles:{main:{maxWidth:450}}}},r.a.createElement(su,{styles:{actionsRight:{textAlign:"center"}}},r.a.createElement(Nl,{onClick:this.save_save_discard_dialog,text:"Save"}),r.a.createElement(Nl,{onClick:this.discard_save_discard_dialog,text:this.state.user_trying_to_exit?"Exit":"Discard"}),r.a.createElement(Ml,{onClick:this.close_save_discard_dialog,text:"Cancel"}))))},t}(r.a.Component);window.start_with_dark_theme&&vn({palette:{themePrimary:"#0088e4",themeLighterAlt:"#000509",themeLighter:"#001624",themeLight:"#002944",themeTertiary:"#005288",themeSecondary:"#0078c8",themeDarkAlt:"#1793e6",themeDark:"#38a3ea",themeDarker:"#69baef",neutralLighterAlt:"#0b0b0b",neutralLighter:"#151515",neutralLight:"#252525",neutralQuaternaryAlt:"#2f2f2f",neutralQuaternary:"#373737",neutralTertiaryAlt:"#595959",neutralTertiary:"#eaeaea",neutralSecondary:"#eeeeee",neutralPrimaryAlt:"#f1f1f1",neutralPrimary:"#e0e0e0",neutralDark:"#f8f8f8",black:"#fbfbfb",white:"#000000"}}),K({selectors:{":global(body), :global(html), :global(#app)":{margin:0,padding:0,height:"100vh"}}});var gp=document.getElementById("app");gp&&gp.hasChildNodes()?a.a.hydrate(r.a.createElement(mp,{ref:function(e){window.react_app_component=e}}),gp):a.a.render(r.a.createElement(mp,{ref:function(e){window.react_app_component=e}}),gp)}]); \ No newline at end of file +Object.defineProperty(t,"__esModule",{value:!0});var n=null,o=!1,r=3,i=-1,a=-1,s=!1,l=!1;function u(){if(!s){var e=n.expirationTime;l?C():l=!0,x(p,e)}}function c(){var e=n,t=n.next;if(n===t)n=null;else{var o=n.previous;n=o.next=t,t.previous=o}e.next=e.previous=null,o=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=r,s=a;r=e,a=t;try{var l=o()}finally{r=i,a=s}if("function"==typeof l)if(l={callback:l,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=l.next=l.previous=l;else{o=null,e=n;do{if(e.expirationTime>=t){o=e;break}e=e.next}while(e!==n);null===o?o=n:o===n&&(n=l,u()),(t=o.previous).next=o.previous=l,l.next=o,l.previous=t}}function d(){if(-1===i&&null!==n&&1===n.priorityLevel){s=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?u():l=!1}}}function p(e){s=!0;var r=o;o=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{c()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{c()}while(null!==n&&!w())}finally{s=!1,o=r,null!==n?u():l=!1,d()}}var f,h,m=Date,g="function"==typeof setTimeout?setTimeout:void 0,v="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function _(e){f=y((function(t){v(h),e(t)})),h=g((function(){b(f),e(t.unstable_now())}),100)}if("object"==typeof performance&&"function"==typeof performance.now){var k=performance;t.unstable_now=function(){return k.now()}}else t.unstable_now=function(){return m.now()};var x,C,w,S=null;if("undefined"!=typeof window?S=window:void 0!==e&&(S=e),S&&S._schedMock){var E=S._schedMock;x=E[0],C=E[1],w=E[2],t.unstable_now=E[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var T=null,I=function(e){if(null!==T)try{T(e)}finally{T=null}};x=function(e){null!==T?setTimeout(x,0,e):(T=e,setTimeout(I,0,!1))},C=function(){T=null},w=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var P=null,M=!1,N=-1,D=!1,A=!1,B=0,F=33,O=33;w=function(){return B<=t.unstable_now()};var R=new MessageChannel,L=R.port2;R.port1.onmessage=function(){M=!1;var e=P,n=N;P=null,N=-1;var o=t.unstable_now(),r=!1;if(0>=B-o){if(!(-1!==n&&n<=o))return D||(D=!0,_(H)),P=e,void(N=n);r=!0}if(null!==e){A=!0;try{e(r)}finally{A=!1}}};var H=function(e){if(null!==P){_(H);var t=e-B+O;tt&&(t=8),O=tt?L.postMessage(void 0):D||(D=!0,_(H))},C=function(){P=null,M=!1,N=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var o=r,a=i;r=e,i=t.unstable_now();try{return n()}finally{r=o,i=a,d()}},t.unstable_next=function(e){switch(r){case 1:case 2:case 3:var n=3;break;default:n=r}var o=r,a=i;r=n,i=t.unstable_now();try{return e()}finally{r=o,i=a,d()}},t.unstable_scheduleCallback=function(e,o){var a=-1!==i?i:t.unstable_now();if("object"==typeof o&&null!==o&&"number"==typeof o.timeout)o=a+o.timeout;else switch(r){case 1:o=a+-1;break;case 2:o=a+250;break;case 5:o=a+1073741823;break;case 4:o=a+1e4;break;default:o=a+5e3}if(e={callback:e,priorityLevel:r,expirationTime:o,next:null,previous:null},null===n)n=e.next=e.previous=e,u();else{a=null;var s=n;do{if(s.expirationTime>o){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=e,u()),(o=a.previous).next=a.previous=e,e.next=a,e.previous=o}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var o=e.previous;o.next=t,t.previous=o}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=r;return function(){var o=r,a=i;r=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{r=o,i=a,d()}}},t.unstable_getCurrentPriorityLevel=function(){return r},t.unstable_shouldYield=function(){return!o&&(null!==n&&n.expirationTime=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var o=function(){0;return n.nc}();o&&(e.attrs.nonce=o)}return y(t,e.attrs),m(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,o,r,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=u||(u=v(t)),o=x.bind(null,n,a,!1),r=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),m(e,t),t}(t),o=w.bind(null,n,t),r=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),o=C.bind(null,n),r=function(){g(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return f(n,t),function(e){for(var o=[],r=0;r=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function p(){for(var e=0,t=0,n=arguments.length;t=0)e(s.split(" "));else{var l=r.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(e),{classes:n,objects:o}}function b(){return void 0===_&&(_="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),_}var _=b();function k(){return{rtl:b()}}var x,C={};var w={"user-select":1};function S(e,t){var n=function(){if(!x){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;x=e?{isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return x}(),o=e[t];if(w[o]){var r=e[t+1];w[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var E,T=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function I(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=-1===T.indexOf(n)?"px":"";e[t+1]=""+o+r}}var P="left",M="right",N="@noflip",D=((E={})[P]=M,E[M]=P,E),A={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function B(e,t,n){if(e.rtl){var o=t[n];if(!o)return;var r=t[n+1];if("string"==typeof r&&r.indexOf(N)>=0)t[n+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(o.indexOf(P)>=0)t[n]=o.replace(P,M);else if(o.indexOf(M)>=0)t[n]=o.replace(M,P);else if(String(r).indexOf(P)>=0)t[n+1]=r.replace(P,M);else if(String(r).indexOf(M)>=0)t[n+1]=r.replace(M,P);else if(D[o])t[n]=D[o];else if(A[r])t[n+1]=A[r];else switch(o){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),o=parseInt(n[t],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(r,0)}}}var F="displayName";var O=/\:global\((.+?)\)/g;function R(e){if(!O.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)}),e)}function L(e,t){return e.indexOf(":global(")>=0?e.replace(O,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function H(e,t,n){var o="string"==typeof n?n.split(" "):[n];e[t+"Top"]=o[0],e[t+"Right"]=o[1]||o[0],e[t+"Bottom"]=o[2]||o[0],e[t+"Left"]=o[3]||o[1]||o[0]}function W(e,t){if(!t)return"";var n,o,r,i=[];for(var a in t)t.hasOwnProperty(a)&&a!==F&&void 0!==t[a]&&i.push(a,t[a]);for(var s=0;s-1?R(t).split(",").map((function(e){return e.trim()})).forEach((function(t){return e([r],n,L(t,o))})):e([r],n,L(t,o))}};for(var f in d)p(f)}else void 0!==l[c]&&("margin"===c||"padding"===c?H(i,c,l[c]):i[c]=l[c])}return n}(t),r=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],o=!1,r=0,i=t.__order;r0){n.subComponentStyles={};var f=n.subComponentStyles,h=function(e){if(o.hasOwnProperty(e)){var t=o[e];f[e]=function(e){return j.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var u in o)h(u)}return n}function V(){for(var e=[],t=0;t10?" (+ "+(he.length-10)+" more)":"")),me=void 0,he=[]}),2e3)))}var ve="cubic-bezier(.1,.9,.2,1)",ye="cubic-bezier(.1,.25,.75,.9)",be=G({from:{opacity:0},to:{opacity:1}}),_e=G({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),ke=nt(-10),xe=nt(-20),Ce=nt(-40),we=nt(-400),Se=nt(10),Ee=nt(20),Te=nt(40),Ie=nt(400),Pe=ot(10),Me=ot(20),Ne=ot(-10),De=ot(-20),Ae=rt(10),Be=rt(20),Fe=rt(40),Oe=rt(400),Re=rt(-10),Le=rt(-20),He=rt(-40),We=rt(-400),ze=it(-10),Ue=it(-20),Ke=it(10),je=it(20),Ve=G({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),Ge=G({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),qe=G({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Ze=G({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Qe=G({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Ye=G({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),Xe=ye,Je="0.267s",$e="0.367s",et={slideRightIn10:tt(be+","+ke,"0.367s",ve),slideRightIn20:tt(be+","+xe,"0.367s",ve),slideRightIn40:tt(be+","+Ce,"0.367s",ve),slideRightIn400:tt(be+","+we,"0.367s",ve),slideLeftIn10:tt(be+","+Se,"0.367s",ve),slideLeftIn20:tt(be+","+Ee,"0.367s",ve),slideLeftIn40:tt(be+","+Te,"0.367s",ve),slideLeftIn400:tt(be+","+Ie,"0.367s",ve),slideUpIn10:tt(be+","+Pe,"0.367s",ve),slideUpIn20:tt(be+","+Me,"0.367s",ve),slideDownIn10:tt(be+","+Ne,"0.367s",ve),slideDownIn20:tt(be+","+De,"0.367s",ve),slideRightOut10:tt(_e+","+Ae,"0.367s",ve),slideRightOut20:tt(_e+","+Be,"0.367s",ve),slideRightOut40:tt(_e+","+Fe,"0.367s",ve),slideRightOut400:tt(_e+","+Oe,"0.367s",ve),slideLeftOut10:tt(_e+","+Re,"0.367s",ve),slideLeftOut20:tt(_e+","+Le,"0.367s",ve),slideLeftOut40:tt(_e+","+He,"0.367s",ve),slideLeftOut400:tt(_e+","+We,"0.367s",ve),slideUpOut10:tt(_e+","+ze,"0.367s",ve),slideUpOut20:tt(_e+","+Ue,"0.367s",ve),slideDownOut10:tt(_e+","+Ke,"0.367s",ve),slideDownOut20:tt(_e+","+je,"0.367s",ve),scaleUpIn100:tt(be+","+Ve,"0.367s",ve),scaleDownIn100:tt(be+","+qe,"0.367s",ve),scaleUpOut103:tt(_e+","+Ze,"0.167s",ye),scaleDownOut98:tt(_e+","+Ge,"0.167s",ye),fadeIn100:tt(be,"0.167s",ye),fadeIn200:tt(be,"0.267s",ye),fadeIn400:tt(be,"0.367s",ye),fadeIn500:tt(be,"0.467s",ye),fadeOut100:tt(_e,"0.167s",ye),fadeOut200:tt(_e,"0.267s",ye),fadeOut400:tt(_e,"0.367s",ye),fadeOut500:tt(_e,"0.467s",ye),rotate90deg:tt(Qe,"0.1s",ye),rotateN90deg:tt(Ye,"0.1s",ye)};function tt(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function nt(e){return G({from:{transform:"translate3d("+e+"px,0,0)"},to:{transform:"translate3d(0,0,0)"}})}function ot(e){return G({from:{transform:"translate3d(0,"+e+"px,0)"},to:{transform:"translate3d(0,0,0)"}})}function rt(e){return G({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function it(e){return G({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var at,st,lt={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},ut={elevation4:"0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",elevation8:"0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",elevation16:"0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",elevation64:"0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)",roundedCorner2:"2px"},ct="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(at||(at={})),function(e){e.Arabic="'"+at.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+at.Cyrillic+"'",e.EastEuropean="'"+at.EastEuropean+"'",e.Greek="'"+at.Greek+"'",e.Hebrew="'"+at.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+at.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+at.Vietnamese+"'",e.WestEuropean="'"+at.WestEuropean+"'",e.Armenian="'"+at.Armenian+"'",e.Georgian="'"+at.Georgian+"'"}(st||(st={}));var dt,pt,ft,ht,mt="'Segoe UI', '"+at.WestEuropean+"'",gt={ar:st.Arabic,bg:st.Cyrillic,cs:st.EastEuropean,el:st.Greek,et:st.EastEuropean,he:st.Hebrew,hi:st.Hindi,hr:st.EastEuropean,hu:st.EastEuropean,ja:st.Japanese,kk:st.EastEuropean,ko:st.Korean,lt:st.EastEuropean,lv:st.EastEuropean,pl:st.EastEuropean,ru:st.Cyrillic,sk:st.EastEuropean,"sr-latn":st.EastEuropean,th:st.Thai,tr:st.EastEuropean,uk:st.Cyrillic,vi:st.Vietnamese,"zh-hans":st.ChineseSimplified,"zh-hant":st.ChineseTraditional,hy:st.Armenian,ka:st.Georgian};function vt(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function yt(e){if(!X&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}!function(e){e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(dt||(dt={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(pt||(pt={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(ft||(ft={}));var bt,_t,kt,xt,Ct="https://static2.sharepointonline.com/files/fabric/assets",wt=(bt=function(){if(void 0===ht){var e=yt(),t=function(e){var t=null;try{var n=$();t=n?n.localStorage.getItem(e):null}catch(e){}return t}("language");null!==t&&(ht=t),void 0===ht&&e&&(ht=e.documentElement.getAttribute("lang")),void 0===ht&&(ht="en")}return ht}(),_t=function(e){for(var t in gt)if(gt.hasOwnProperty(t)&&e&&0===t.indexOf(e))return gt[t];return mt}(bt)+", "+ct,{tiny:vt(dt.mini,pt.regular,_t),xSmall:vt(dt.xSmall,pt.regular,_t),small:vt(dt.small,pt.regular,_t),smallPlus:vt(dt.smallPlus,pt.regular,_t),medium:vt(dt.medium,pt.regular,_t),mediumPlus:vt(dt.mediumPlus,pt.regular,_t),large:vt(dt.large,pt.regular,_t),xLarge:vt(dt.xLarge,pt.semibold,_t),xLargePlus:vt(dt.xLargePlus,pt.semibold,_t),xxLarge:vt(dt.xxLarge,pt.semibold,_t),xxLargePlus:vt(dt.xxLargePlus,pt.semibold,_t),superLarge:vt(dt.superLarge,pt.semibold,_t),mega:vt(dt.mega,pt.semibold,_t)});function St(e,t,n,o){se({fontFamily:e="'"+e+"'",src:(void 0!==o?"local('"+o+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Et(e,t,n,o,r){void 0===o&&(o="segoeui");var i=e+"/"+n+"/"+o;St(t,i+"-light",pt.light,r&&r+" Light"),St(t,i+"-semilight",pt.semilight,r&&r+" SemiLight"),St(t,i+"-regular",pt.regular,r),St(t,i+"-semibold",pt.semibold,r&&r+" SemiBold")}!function(e){if(e){var t=e+"/fonts";Et(t,at.Thai,"leelawadeeui-thai","leelawadeeui"),Et(t,at.Arabic,"segoeui-arabic"),Et(t,at.Cyrillic,"segoeui-cyrillic"),Et(t,at.EastEuropean,"segoeui-easteuropean"),Et(t,at.Greek,"segoeui-greek"),Et(t,at.Hebrew,"segoeui-hebrew"),Et(t,at.Vietnamese,"segoeui-vietnamese"),Et(t,at.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Et(t,st.Selawik,"selawik","selawik"),Et(t,at.Armenian,"segoeui-armenian"),Et(t,at.Georgian,"segoeui-georgian"),St("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",pt.light),St("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",pt.semibold)}}((kt=$(),xt=kt?kt.FabricConfig:void 0,xt&&void 0!==xt.fontBaseUrl?xt.fontBaseUrl:Ct));var Tt="@media screen and (-ms-high-contrast: active)";function It(e,t){return"@media only screen and (min-width: "+e+"px) and (max-width: "+t+"px)"}var Pt,Mt="ms-Fabric--isFocusVisible",Nt="ms-Fabric--isFocusHidden";function Dt(e,t){var n=t?$(t):$();if(n){var o=n.document.body.classList;o.add(e?Mt:Nt),o.remove(e?Nt:Mt)}}function At(e,t,n,o,r,i,a){return Bt(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:o,borderColor:r,outlineColor:i,isFocusedOnly:a})}function Bt(e,t){var n,o;void 0===t&&(t={});var r=t.inset,i=void 0===r?0:r,a=t.width,s=void 0===a?1:a,l=t.position,u=void 0===l?"relative":l,c=t.highContrastStyle,d=t.borderColor,p=void 0===d?e.palette.white:d,f=t.outlineColor,h=void 0===f?e.palette.neutralSecondary:f,m=t.isFocusedOnly;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n["."+Mt+" &"+(void 0===m||m?":focus":"")+":after"]={content:'""',position:"absolute",left:i+1,top:i+1,bottom:i+1,right:i+1,border:s+"px solid "+p,outline:s+"px solid "+h,zIndex:Pt.FocusStyle,selectors:(o={},o[Tt]=c,o)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Pt||(Pt={}));var Ft=function(e,t,n,o){var r,i,a;return void 0===n&&(n="border"),void 0===o&&(o=-1),{borderColor:e,selectors:{":after":(r={pointerEvents:"none",content:"''",position:"absolute",left:o,top:o,bottom:o,right:o},r[n]="2px solid "+e,r.borderRadius=t,r.width="borderBottom"===n?"100%":void 0,r.selectors=(i={},i[Tt]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),r)}}},Ot={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden"};var Rt,Lt={none:0,insertNode:1,appendChild:2},Ht="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),Wt={};try{Wt=window}catch(e){}var zt=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=u({injectionMode:Lt.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e)}return e.getInstance=function(){if(!(Rt=Wt.__stylesheet__)||Rt._lastStyleElement&&Rt._lastStyleElement.ownerDocument!==document){var t=Wt&&Wt.FabricConfig||{};Rt=Wt.__stylesheet__=new e(t.mergeStyles)}return Rt},e.prototype.setConfig=function(e){this._config=u(u({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,o){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:o}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==Lt.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case Lt.insertNode:var o=n.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case Lt.appendChild:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),Ht||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var o=this._findPlaceholderStyleTag();o?e.insertBefore(t,o.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}(),Ut=zt.getInstance();Ut&&Ut.onReset&&zt.getInstance().onReset((function(){Kt++}));var Kt=0,jt={empty:!0},Vt={},Gt="undefined"==typeof WeakMap?null:WeakMap;function qt(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Gt)return e;var o,r=0,i=Kt;return function(){for(var a=[],s=0;s0&&r>t)&&(o=Yt(),r=0,i=Kt),l=o;for(var u=0;u-1;e[o]=i?r:ln(e[o]||{},r,n)}else e[o]=r}return n.pop(),e}var un,cn={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},dn=n(18),pn=yn({palette:lt,semanticColors:bn(lt,!1,!1),fonts:wt,isInverted:!1,disableGlobalClassNames:!1}),fn=[],hn="theme";if(!nn.getSettings([hn]).theme){var mn=$();mn&&mn.FabricConfig&&mn.FabricConfig.theme&&(pn=yn(mn.FabricConfig.theme)),nn.applySettings(((un={})[hn]=pn,un))}function gn(e){return void 0===e&&(e=!1),!0===e&&(pn=yn({},e)),pn}function vn(e,t){var n;return void 0===t&&(t=!1),pn=yn(e,t),Object(dn.a)(u(u(u(u({},pn.palette),pn.semanticColors),pn.effects),function(e){for(var t={},n=0,o=Object.keys(e.fonts);n0){n.subComponentStyles={};var f=n.subComponentStyles,h=function(e){if(o.hasOwnProperty(e)){var t=o[e];f[e]=function(e){return En.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var u in o)h(u)}return n}Q("@uifabric/styling","7.10.1");var Tn=o.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}}),In=["theme","styles"];function Pn(e,t,n,r,i){var a=(r=r||{scope:"",fields:void 0}).scope,s=r.fields,d=void 0===s?In:s;return function(r){function i(){var t=null!==r&&r.apply(this,arguments)||this;return t._inCustomizerContext=!1,t._renderContent=function(r){t._inCustomizerContext=!!r.customizations.inCustomizerContext;var i=nn.getSettings(d,a,r.customizations),s=i.styles,l=(i.dir,c(i,["styles","dir"])),p=n?n(t.props):void 0;return t._updateStyles(s),o.createElement(e,u({},l,p,t.props,{styles:t._styles}))},t._onSettingsChanged=function(){return t.forceUpdate()},t}return l(i,r),i.prototype.render=function(){return o.createElement(Tn.Consumer,null,this._renderContent)},i.prototype.componentDidMount=function(){this._inCustomizerContext||nn.observe(this._onSettingsChanged)},i.prototype.componentWillUnmount=function(){this._inCustomizerContext||nn.unobserve(this._onSettingsChanged)},i.prototype._updateStyles=function(e){var n=this;this._styles&&e===this._styles.__cachedInputs__[1]&&!this.props.styles||(this._styles=function(o){return function(e){for(var t=[],n=1;n=0)}),{},e)}var $n,eo=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[o],e.apply(n._parent)}catch(e){n._onErrorHandler&&n._onErrorHandler(e)}}),t),this._timeoutIds[o]=!0),o},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,o=0,r=$(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});o=r.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[o],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(e,t){var n=$(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var o=this;if(this._isDisposed)return this._noop;var r,i,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=(new Date).getTime(),p=n-u,f=s?a-p:a;return p>=a&&(!t||s)?(u=n,c&&(o.clearTimeout(c),c=null),r=e.apply(o._parent,i)):null===c&&l&&(c=o.setTimeout(d,f)),r};return function(){for(var e=[],t=0;t=s&&(n=!0),d=t);var r=t-d,a=s-r,h=t-p,v=!1;return null!==c&&(h>=c&&f?v=!0:a=Math.min(a,c-h)),r>=s||v||n?m(t):null!==f&&e||!u||(f=o.setTimeout(g,a)),i},v=function(){return!!f},y=function(){for(var e=[],t=0;t-1)for(var a=n.split(/[ ,]+/),s=0;s1?e[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new eo(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new to(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){this.className,this.props},t.prototype._warnMutuallyExclusive=function(e){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(e,t,n){this.className,this.props},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))},t}(o.Component);function uo(e,t,n){var o=e[n],r=t[n];(o||r)&&(e[n]=function(){var e;return r&&(e=r.apply(this,arguments)),o!==r&&(e=o.apply(this,arguments)),e})}function co(){return null}function po(){for(var e=[],t=0;t=0)e(s.split(" "));else{var l=r.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(e),{classes:n,objects:o}}function ho(e){go!==e&&(go=e)}function mo(){return void 0===go&&(go="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),go}!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(so||(so={}));var go=mo();function vo(){return{rtl:mo()}}var yo,bo={};var _o={"user-select":1};function ko(e,t){var n=function(){if(!yo){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;yo=e?{isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return yo}(),o=e[t];if(_o[o]){var r=e[t+1];_o[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var xo,Co=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function wo(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=-1===Co.indexOf(n)?"px":"";e[t+1]=""+o+r}}var So="left",Eo="right",To="@noflip",Io=((xo={})[So]=Eo,xo[Eo]=So,xo),Po={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Mo(e,t,n){if(e.rtl){var o=t[n];if(!o)return;var r=t[n+1];if("string"==typeof r&&r.indexOf(To)>=0)t[n+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(o.indexOf(So)>=0)t[n]=o.replace(So,Eo);else if(o.indexOf(Eo)>=0)t[n]=o.replace(Eo,So);else if(String(r).indexOf(So)>=0)t[n+1]=r.replace(So,Eo);else if(String(r).indexOf(Eo)>=0)t[n+1]=r.replace(Eo,So);else if(Io[o])t[n]=Io[o];else if(Po[r])t[n+1]=Po[r];else switch(o){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),o=parseInt(n[t],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(r,0)}}}var No="displayName";var Do=/\:global\((.+?)\)/g;function Ao(e){if(!Do.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)}),e)}function Bo(e,t){return e.indexOf(":global(")>=0?e.replace(Do,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Fo(e,t,n){var o="string"==typeof n?n.split(" "):[n];e[t+"Top"]=o[0],e[t+"Right"]=o[1]||o[0],e[t+"Bottom"]=o[2]||o[0],e[t+"Left"]=o[3]||o[1]||o[0]}function Oo(e,t){if(!t)return"";var n,o,r,i=[];for(var a in t)t.hasOwnProperty(a)&&a!==No&&void 0!==t[a]&&i.push(a,t[a]);for(var s=0;s-1?Ao(t).split(",").map((function(e){return e.trim()})).forEach((function(t){return e([r],n,Bo(t,o))})):e([r],n,Bo(t,o))}};for(var f in d)p(f)}else void 0!==l[c]&&("margin"===c||"padding"===c?Fo(i,c,l[c]):i[c]=l[c])}return n}(t),r=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],o=!1,r=0,i=t.__order;rKo&&(t.clear(),n=0,e.disableCaching=!0),a[Qo]}}function Xo(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function Jo(e,t){if("function"==typeof t&&t.__cachedInputs__)for(var n=0,o=t.__cachedInputs__;n0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:Zo.loaded})))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,n=e.width,o=e.height;if((t===Go.cover||t===Go.contain||t===Go.centerContain||t===Go.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var r=void 0;r=n&&o&&t!==Go.centerContain&&t!==Go.centerCover?n/o:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var i=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=i>r?qo.landscape:qo.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(o.Component),nr={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},or=Pn(tr,(function(e){var t=e.className,n=e.width,o=e.height,r=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,p=e.isCenterContain,f=e.isCenterCover,h=e.isNone,m=e.isError,g=e.isNotImageFit,v=e.theme,y=Jt(nr,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},_=$(),k=void 0!==_&&void 0===_.navigator.msMaxTouchPoints,x=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,v.fonts.medium,{overflow:"hidden"},r&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&xn.fadeIn400,(u||c||d||p||f)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],u&&[y.imageCenter,b],c&&[y.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&x,b],d&&[y.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&x,b],p&&[y.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},b],f&&[y.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},b],h&&[y.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!o&&{height:"auto",width:"100%"},!n&&!!o&&{height:"100%",width:"auto"},!!n&&!!o&&{height:"100%",width:"100%"}],l&&y.imageLandscape,!l&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",m&&"is-error"]}}),void 0,{scope:"Image"},!0),rr=V({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),ir=qt((function(e){var t=fe(e)||{subset:{},code:void 0},n=t.code,o=t.subset;return n?{children:n,iconClassName:o.className,fontFamily:o.fontFace&&o.fontFace.fontFamily}:null}),void 0,!0),ar=function(e){var t=e.iconName,n=e.className,r=e.style,i=void 0===r?{}:r,a=ir(t)||{},s=a.iconClassName,l=a.children,c=a.fontFamily,d=Jn(e,Vn),p=e["aria-label"]?{}:{role:"presentation","aria-hidden":!0};return o.createElement("i",u({"data-icon-name":t},p,d,{className:Mn("ms-Icon",rr.root,s,!t&&rr.placeholder,n),style:u({fontFamily:c},i)}),l)},sr=(qt((function(e,t,n){return ar({iconName:e,className:t,"aria-label":n})})),Yo({disableCaching:!0})),lr=Pn(function(e){function t(t){var n=e.call(this,t)||this;return n.onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===Zo.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.iconName,i=e.imageErrorAs,a=e.theme,s="string"==typeof r&&0===r.length,l=this.props.iconType===so.image||this.props.iconType===so.Image||!!this.props.imageProps,c=ir(r)||{},d=c.iconClassName,p=c.children,f=sr(n,{theme:a,className:t,iconClassName:d,isImage:l,isPlaceholder:s}),h=l?"span":"i",m=Jn(this.props,Vn,["aria-label"]),g=this.state.imageLoadError,v=u(u({},this.props.imageProps),{onLoadingStateChange:this.onImageLoadingStateChange}),y=g&&i||or,b=this.props.ariaLabel||this.props["aria-label"],_=b?{"aria-label":b}:{"aria-hidden":!this.props["aria-labelledby"]&&!v["aria-labelledby"]};return o.createElement(h,u({"data-icon-name":r},_,m,{className:f.root}),l?o.createElement(y,u({},v)):p)},t}(o.Component),(function(e){var t=e.className,n=e.iconClassName,o=e.isPlaceholder,r=e.isImage,i=e.styles;return{root:[o&&rr.placeholder,rr.root,r&&rr.image,n,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0),ur=function(e){var t=e.className,n=e.imageProps,r=Jn(e,Vn),i=e["aria-label"]?{}:{role:"presentation","aria-hidden":!n.alt&&!n["aria-labelledby"]};return o.createElement("div",u({},i,r,{className:Mn("ms-Icon",rr.root,rr.image,t)}),o.createElement(or,u({},n)))},cr={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}($o||($o={}));var dr,pr={none:0,all:1,inputOnly:2};function fr(e,t,n){void 0===n&&(n=!0);var o=!1;if(e&&t)if(n)for(o=!1;t;){var r=Nn(t);if(r===e){o=!0;break}t=r}else e.contains&&(o=e.contains(t));return o}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(dr||(dr={}));var hr="data-is-focusable",mr="data-is-visible",gr="data-focuszone-id",vr="data-is-sub-focuszone";function yr(e,t,n){return kr(e,t,!0,!1,!1,n)}function br(e,t,n){return _r(e,t,!0,!1,!0,n)}function _r(e,t,n,o,r,i,a,s){if(!t||!a&&t===e)return null;var l=xr(t);if(r&&l&&(i||!wr(t)&&!Sr(t))){var u=_r(e,t.lastElementChild,!0,!0,!0,i,a,s);if(u){if(s&&Cr(u,!0)||!s)return u;var c=_r(e,u.previousElementSibling,!0,!0,!0,i,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var p=_r(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}if(n&&l&&Cr(t,s))return t;var f=_r(e,t.previousElementSibling,!0,!0,!0,i,a,s);return f||(o?null:_r(e,t.parentElement,!0,!1,!1,i,a,s))}function kr(e,t,n,o,r,i,a,s){if(!t||t===e&&r&&!a)return null;var l=xr(t);if(n&&l&&Cr(t,s))return t;if(!r&&l&&(i||!wr(t)&&!Sr(t))){var u=kr(e,t.firstElementChild,!0,!0,!1,i,a,s);if(u)return u}if(t===e)return null;var c=kr(e,t.nextElementSibling,!0,!0,!1,i,a,s);return c||(o?null:kr(e,t.parentElement,!1,!1,!0,i,a,s))}function xr(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(mr);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Cr(e,t){if(!e||e.disabled)return!1;var n=0,o=null;e&&e.getAttribute&&(o=e.getAttribute("tabIndex"))&&(n=parseInt(o,10));var r=e.getAttribute?e.getAttribute(hr):null,i=null!==o&&n>=0,a=!!e&&"false"!==r&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===r||i);return t?-1!==n&&a:a}function wr(e){return!!(e&&e.getAttribute&&e.getAttribute(gr))}function Sr(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(vr))}function Er(e,t){return"true"!==function(e,t){var n=Dn(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var Tr,Ir=void 0;function Pr(e){if(e){if(Ir)return void(Ir=e);Ir=e;var t=$(e);t&&t.requestAnimationFrame((function(){Ir&&Ir.focus(),Ir=void 0}))}}function Mr(e){for(var t=[],n=1;n0&&e.preventDefault(),Wr.scrollHeight-Wr.scrollTop<=Wr.clientHeight&&t<0&&e.preventDefault()}},function(e,t){e&&(t.on(e,"touchstart",zr,{passive:!1}),t.on(e,"touchmove",Ur,{passive:!1}),Wr=e)}),qr=function(e,t){if(e){t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})}},Zr=function(e){e.preventDefault()};function Qr(){if(void 0===Tr){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Tr=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Tr}function Yr(e){for(var t=e,n=yt(e);t&&t!==n.body;){if("true"===t.getAttribute(Vr))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(Vr)){var o=getComputedStyle(t),r=o?o.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return t}t=t.parentElement}return t&&t!==n.body||(t=$(e)),t}var Xr,Jr={none:0,insertNode:1,appendChild:2},$r="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),ei={};try{ei=window}catch(e){}var ti=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=u({injectionMode:Jr.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e)}return e.getInstance=function(){if(!(Xr=ei.__stylesheet__)||Xr._lastStyleElement&&Xr._lastStyleElement.ownerDocument!==document){var t=ei&&ei.FabricConfig||{};Xr=ei.__stylesheet__=new e(t.mergeStyles)}return Xr},e.prototype.setConfig=function(e){this._config=u(u({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,o){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:o}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==Jr.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case Jr.insertNode:var o=n.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case Jr.appendChild:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),$r||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var o=this._findPlaceholderStyleTag();o?e.insertBefore(t,o.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function ni(){return void 0===oi&&(oi="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),oi}var oi=ni();var ri,ii={};var ai={"user-select":1};function si(e,t){var n=function(){if(!ri){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;ri=e?{isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return ri}(),o=e[t];if(ai[o]){var r=e[t+1];ai[o]&&(n.isWebkit&&e.push("-webkit-"+o,r),n.isMoz&&e.push("-moz-"+o,r),n.isMs&&e.push("-ms-"+o,r),n.isOpera&&e.push("-o-"+o,r))}}var li,ui=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function ci(e,t){var n=e[t],o=e[t+1];if("number"==typeof o){var r=-1===ui.indexOf(n)?"px":"";e[t+1]=""+o+r}}var di="left",pi="right",fi="@noflip",hi=((li={})[di]=pi,li[pi]=di,li),mi={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function gi(e,t,n){if(e.rtl){var o=t[n];if(!o)return;var r=t[n+1];if("string"==typeof r&&r.indexOf(fi)>=0)t[n+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(o.indexOf(di)>=0)t[n]=o.replace(di,pi);else if(o.indexOf(pi)>=0)t[n]=o.replace(pi,di);else if(String(r).indexOf(di)>=0)t[n+1]=r.replace(di,pi);else if(String(r).indexOf(pi)>=0)t[n+1]=r.replace(pi,di);else if(hi[o])t[n]=hi[o];else if(mi[r])t[n+1]=mi[r];else switch(o){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),o=parseInt(n[t],10);return n[0]=n[0].replace(String(o),String(-1*o)),n.join(" ")}(r,0)}}}var vi="displayName";var yi=/\:global\((.+?)\)/g;function bi(e){if(!yi.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,o=null;o=n.exec(e);)o[1].indexOf(",")>-1&&t.push([o.index,o.index+o[0].length,o[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],o=t[1],r=t[2];return e.slice(0,n)+r+e.slice(o)}),e)}function _i(e,t){return e.indexOf(":global(")>=0?e.replace(yi,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function ki(e,t,n){var o="string"==typeof n?n.split(" "):[n];e[t+"Top"]=o[0],e[t+"Right"]=o[1]||o[0],e[t+"Bottom"]=o[2]||o[0],e[t+"Left"]=o[3]||o[1]||o[0]}function xi(e,t){if(!t)return"";var n,o,r,i=[];for(var a in t)t.hasOwnProperty(a)&&a!==vi&&void 0!==t[a]&&i.push(a,t[a]);for(var s=0;s-1?bi(t).split(",").map((function(e){return e.trim()})).forEach((function(t){return e([r],n,_i(t,o))})):e([r],n,_i(t,o))}};for(var f in d)p(f)}else void 0!==l[c]&&("margin"===c||"padding"===c?ki(i,c,l[c]):i[c]=l[c])}return n}(t),r=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],o=!1,r=0,i=t.__order;r=0)e(s.split(" "));else{var l=r.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(e),{classes:n,objects:o}}(e instanceof Array?e:[e]),o=n.classes,r=n.objects;r.length&&o.push(wi(t||{},r));return o.join(" ")}(e,{rtl:ni()})}var Ei,Ti="data-no-vertical-wrap",Ii="data-no-horizontal-wrap",Pi=999999999,Mi=-999999999,Ni="ms-FocusZone";var Di,Ai,Bi={},Fi=new Set,Oi=["text","number","password","email","tel","url","search"],Ri=!1,Li=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=o.createRef(),n._onFocus=function(e){if(!n._portalContainsElement(e.target)){var t,o=n.props,r=o.onActiveElementChanged,i=o.doNotAllowFocusEventToPropagate,a=o.onFocusNotification,s=n._isImmediateDescendantOfZone(e.target);if(a&&a(),s)t=e.target;else for(var l=e.target;l&&l!==n._root.current;){if(Cr(l)&&n._isImmediateDescendantOfZone(l)){t=l;break}l=Nn(l,Ri)}var u=!n._activeElement;t&&t!==n._activeElement&&((s||u)&&n._setFocusAlignment(t,!0,!0),n._activeElement=t,u&&n._updateTabIndexes()),r&&r(n._activeElement,e),i&&e.stopPropagation()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onKeyDownCapture=function(e){e.which===Fn.tab&&Fi.forEach((function(e){return e._updateTabIndexes()}))},n._onMouseDown=function(e){if(!n._portalContainsElement(e.target)&&!n.props.disabled){for(var t=e.target,o=[];t&&t!==n._root.current;)o.push(t),t=Nn(t,Ri);for(;o.length&&((t=o.pop())&&Cr(t)&&n._setActiveElement(t,!0),!wr(t)););}},n._onKeyDown=function(e){if(!n._portalContainsElement(e.target)){var t=n.props,o=t.direction,r=t.disabled,i=t.isInnerZoneKeystroke;if(!(r||(n.props.onKeyDown&&n.props.onKeyDown(e),e.isDefaultPrevented()||n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if(i&&i(e)&&n._isImmediateDescendantOfZone(e.target)){var a=n._getFirstInnerZone();if(a){if(!a.focus(!0))return}else{if(!Sr(e.target))return;if(!n.focusElement(kr(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case Fn.space:if(n._tryInvokeClickForFocusable(e.target))break;return;case Fn.left:if(o!==dr.vertical&&n._moveFocusLeft())break;return;case Fn.right:if(o!==dr.vertical&&n._moveFocusRight())break;return;case Fn.up:if(o!==dr.horizontal&&n._moveFocusUp())break;return;case Fn.down:if(o!==dr.horizontal&&n._moveFocusDown())break;return;case Fn.pageDown:if(n._moveFocusPaging(!0))break;return;case Fn.pageUp:if(n._moveFocusPaging(!1))break;return;case Fn.tab:if(n.props.allowTabKey||n.props.handleTabKey===pr.all||n.props.handleTabKey===pr.inputOnly&&n._isElementInput(e.target)){var s=!1;if(n._processingTabKey=!0,o!==dr.vertical&&n._shouldWrapFocus(n._activeElement,Ii))s=(Uo()?!e.shiftKey:e.shiftKey)?n._moveFocusLeft():n._moveFocusRight();else s=e.shiftKey?n._moveFocusUp():n._moveFocusDown();if(n._processingTabKey=!1,s)break}return;case Fn.home:if(n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!1))return!1;var l=n._root.current&&n._root.current.firstChild;if(n._root.current&&l&&n.focusElement(kr(n._root.current,l,!0)))break;return;case Fn.end:if(n._isElementInput(e.target)&&!n._shouldInputLoseFocus(e.target,!0))return!1;var u=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(_r(n._root.current,u,!0,!0,!0)))break;return;case Fn.enter:if(n._tryInvokeClickForFocusable(e.target))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(e,t,o){var r=n._focusAlignment.x,i=Math.floor(o.top),a=Math.floor(t.bottom),s=Math.floor(o.bottom),l=Math.floor(t.top);return e&&i>a||!e&&s=o.left&&r<=o.left+o.width?0:Math.abs(o.left+o.width/2-r):n._shouldWrapFocus(n._activeElement,Ti)?Pi:Mi},Dr(n),n._id=Hn("FocusZone"),n._focusAlignment={x:0,y:0},n._processingTabKey=!1,n}return l(t,e),t.getOuterZones=function(){return Fi.size},t.prototype.componentDidMount=function(){var e=this._root.current;if(Bi[this._id]=this,e){for(var t=$(e),n=Nn(e,Ri);n&&n!==this._getDocument().body&&1===n.nodeType;){if(wr(n)){this._isInnerZone=!0;break}n=Nn(n,Ri)}this._isInnerZone||(Fi.add(this),t&&1===Fi.size&&(Di=Rr(t,"keydown",this._onKeyDownCapture,!0))),this._disposables.push(Rr(e,"blur",this._onBlur,!0)),this._updateTabIndexes(),this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement),this.focus())}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||t.activeElement===e)){var n=function(e,t){for(var n=e,o=0,r=t;o-1&&(-1===i||c=0&&c<0)break}}while(r);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&o)return e?this.focusElement(kr(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(_r(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.x;return!!this._moveFocus(!0,(function(o,r){var i=-1,a=Math.floor(r.top),s=Math.floor(o.bottom);return a=s||a===t)&&(t=a,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.x;return!!this._moveFocus(!1,(function(o,r){var i=-1,a=Math.floor(r.bottom),s=Math.floor(r.top),l=Math.floor(o.top);return a>l?e._shouldWrapFocus(e._activeElement,Ti)?Pi:Mi:((-1===t&&a<=l||s===t)&&(t=s,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,Ii);return!!this._moveFocus(Uo(),(function(n,o){var r=-1;return(Uo()?parseFloat(o.top.toFixed(3))parseFloat(n.top.toFixed(3)))&&o.right<=n.right&&e.props.direction!==dr.vertical?r=n.right-o.right:t||(r=Mi),r}),void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,Ii);return!!this._moveFocus(!Uo(),(function(n,o){var r=-1;return(Uo()?parseFloat(o.bottom.toFixed(3))>parseFloat(n.top.toFixed(3)):parseFloat(o.top.toFixed(3))=n.left&&e.props.direction!==dr.vertical?r=o.left-n.left:t||(r=Mi),r}),void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0),void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var o=Yr(n);if(!o)return!1;var r=-1,i=void 0,a=-1,s=-1,l=o.clientHeight,u=n.getBoundingClientRect();do{if(n=e?kr(this._root.current,n):_r(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),p=Math.floor(u.bottom),f=Math.floor(c.bottom),h=Math.floor(u.top),m=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>p+l||!e&&f-1&&(e&&d>a?(a=d,r=m,i=n):!e&&f-1){var n=e.selectionStart,o=n!==e.selectionEnd,r=e.value,i=e.readOnly;if(o||n>0&&!t&&!i||n!==r.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Er(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Bn(e,this._root.current)},t.prototype._getDocument=function(){return yt(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:dr.bidirectional},t}(o.Component);function Hi(e){if(void 0===Ai||e){var t=$(),n=t&&t.navigator.userAgent;Ai=!!n&&-1!==n.indexOf("Macintosh")}return!!Ai}var Wi=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function zi(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function Ui(e){return!(!e.subMenuProps&&!e.items)}function Ki(e){return!(!e.isDisabled&&!e.disabled)}var ji=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];var Vi,Gi=function(e){function t(t){var n=e.call(this,t)||this;return n._skipComponentRefResolution=!0,n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return l(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=ji);var o=[],r=function(r){"function"!=typeof t[r]||void 0!==e[r]||n&&-1!==n.indexOf(r)||(o.push(r),e[r]=function(){t[r].apply(t,arguments)})};for(var i in t)r(i);return o}(this,e):this._hoisted&&(t=this,this._hoisted.forEach((function(e){return delete t[e]})))},t}(lo);function qi(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(Vi||(Vi={}));var Zi,Qi,Yi,Xi,Ji=[479,639,1023,1365,1919,99999999];function $i(e){var t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=n._getResponsiveMode();e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:Zi||Qi||Vi.large},n}return l(n,t),n.prototype.componentDidMount=function(){this._events.on(window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===Vi.unknown?null:o.createElement(e,u({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n.prototype._getResponsiveMode=function(){var e=Vi.small,t=$(Object(i.findDOMNode)(this));if(void 0!==t){try{for(;t.innerWidth>Ji[e];)e++}catch(t){e=Zi||Qi||Vi.large}Qi=e}else{if(void 0===Zi)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");e=Zi}return e},n}(Gi);return qi(e,t)}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Yi||(Yi={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Xi||(Xi={}));var ea,ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(function(){function e(e,t,n,o){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=0),this.top=n,this.bottom=o,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}());function na(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var oa=((ea={})[cr.topLeftEdge]=na(Yi.top,Yi.left),ea[cr.topCenter]=na(Yi.top),ea[cr.topRightEdge]=na(Yi.top,Yi.right),ea[cr.topAutoEdge]=na(Yi.top,void 0,!0),ea[cr.bottomLeftEdge]=na(Yi.bottom,Yi.left),ea[cr.bottomCenter]=na(Yi.bottom),ea[cr.bottomRightEdge]=na(Yi.bottom,Yi.right),ea[cr.bottomAutoEdge]=na(Yi.bottom,void 0,!0),ea[cr.leftTopEdge]=na(Yi.left,Yi.top),ea[cr.leftCenter]=na(Yi.left),ea[cr.leftBottomEdge]=na(Yi.left,Yi.bottom),ea[cr.rightTopEdge]=na(Yi.right,Yi.top),ea[cr.rightCenter]=na(Yi.right),ea[cr.rightBottomEdge]=na(Yi.right,Yi.bottom),ea);function ra(e,t){return!(e.topt.bottom)&&(!(e.leftt.right)))}function ia(e,t){var n=new Array;return e.topt.bottom&&n.push(Yi.bottom),e.leftt.right&&n.push(Yi.right),n}function aa(e,t){return e[Yi[t]]}function sa(e,t,n){return e[Yi[t]]=n,e}function la(e,t){var n=ba(t);return(aa(e,n.positiveEdge)+aa(e,n.negativeEdge))/2}function ua(e,t){return e>0?t:-1*t}function ca(e,t){return ua(e,aa(t,e))}function da(e,t,n){return ua(n,aa(e,n)-aa(t,n))}function pa(e,t,n){var o=aa(e,t)-n;return e=sa(e,t,n),e=sa(e,-1*t,aa(e,-1*t)-o)}function fa(e,t,n,o){return void 0===o&&(o=0),pa(e,n,aa(t,n)+ua(n,o))}function ha(e,t,n){return ca(n,e)>ca(n,t)}function ma(e,t,n,o,r,i,a){void 0===r&&(r=0);var s=o.alignmentEdge,l=o.alignTargetEdge,u={elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:s};i||a||(u=function(e,t,n,o,r){void 0===r&&(r=0);var i=[Yi.left,Yi.right,Yi.bottom,Yi.top];Uo()&&(i[0]*=-1,i[1]*=-1);for(var a=e,s=o.targetEdge,l=o.alignmentEdge,u=0;u<4;u++){if(ha(a,n,s))return{elementRectangle:a,targetEdge:s,alignmentEdge:l};i.splice(i.indexOf(s),1),i.length>0&&(i.indexOf(-1*s)>-1?s*=-1:(l=s,s=i.slice(-1)[0]),a=ya(e,t,{targetEdge:s,alignmentEdge:l},r))}return{elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:l}}(e,t,n,o,r));var c=ia(e,n);if(l){if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var d=function(e,t,n,o){var r=e.alignmentEdge,i=e.targetEdge,a=-1*r;return{elementRectangle:ya(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,o),targetEdge:i,alignmentEdge:a}}(u,t,r,a);if(ra(d.elementRectangle,n))return d;u=ga(ia(d.elementRectangle,n),u,n)}}else u=ga(c,u,n);return u}function ga(e,t,n){for(var o=0,r=e;oMath.abs(da(e,n,-1*t))?-1*t:t}function ka(e){return Math.sqrt(e*e*2)}function xa(e,t,n){if(void 0===e&&(e=cr.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var o=u({},oa[e]);return Uo()?(o.alignmentEdge&&o.alignmentEdge%2==0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==t?oa[t]:o):o}function Ca(e,t,n){var o=la(t,e),r=la(n,e),i=ba(e),a=i.positiveEdge,s=i.negativeEdge;return o<=r?a:s}function wa(e,t,n,o,r,i,a){var s=ya(e,t,o,r,a);return ra(s,n)?{elementRectangle:s,targetEdge:o.targetEdge,alignmentEdge:o.alignmentEdge}:ma(e,t,n,o,r,i,a)}function Sa(e,t,n){var o=-1*e.targetEdge,r=new ta(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=_a(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:ba(o).positiveEdge,n);return i[Yi[o]]=aa(t,o),i[Yi[a]]=da(t,r,a),{elementPosition:u({},i),closestEdge:Ca(e.targetEdge,t,r),targetEdge:o}}function Ea(e,t){var n=t.targetRectangle,o=ba(t.targetEdge),r=o.positiveEdge,i=o.negativeEdge,a=la(n,t.targetEdge),s=new ta(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new ta(0,e,0,e);return ha(l=va(l=pa(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-ca(r,t.elementRectangle)),s,r)?ha(l,s,i)||(l=fa(l,s,i)):l=fa(l,s,r),l}function Ta(e){var t=e.getBoundingClientRect();return new ta(t.left,t.right,t.top,t.bottom)}function Ia(e){return new ta(e.left,e.right,e.top,e.bottom)}function Pa(e,t,n,o,r){var i=0,a=oa[t],s=r?-1*a.targetEdge:a.targetEdge;return(i=s===Yi.top?aa(e,a.targetEdge)-o.top-n:s===Yi.bottom?o.bottom-aa(e,a.targetEdge)-n:o.bottom-e.top-n)>0?i:o.height}function Ma(e,t,n,o){var r=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var o=t;n=new ta(o.clientX,o.clientX,o.clientY,o.clientY)}else if(t.getBoundingClientRect)n=Ta(t);else{var r=t;n=new ta(r.x,r.x,r.y,r.y)}if(!ra(n,e))for(var i=0,a=ia(n,e);i0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(o.Component),Oa=((Ba={})[Yi.top]=xn.slideUpIn10,Ba[Yi.bottom]=xn.slideDownIn10,Ba[Yi.left]=xn.slideLeftIn10,Ba[Yi.right]=xn.slideRightIn10,Ba),Ra=Yo({disableCaching:!0}),La=0,Ha=0,Wa={opacity:0,filter:"opacity(0)"},za=["role","aria-roledescription"],Ua=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=o.createRef(),n._calloutElement=o.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props.preventDismissOnScroll;n.state.positions&&!t&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){n.props.preventDismissOnResize||n.dismiss(e)},n._dismissOnLostFocus=function(e){n.props.preventDismissOnLostFocus||n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame((function(){return e=n._calloutElement.current,!!(t=kr(e,e,!0,!1,!1,!0))&&(Pr(t),!0);var e,t}),n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._mouseDownOnPopup=function(){n._isMouseDownOnPopup=!0},n._mouseUpOnPopup=function(){n._isMouseDownOnPopup=!1},n._async=new eo(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return l(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden)&&(!zn(this.props,e)||!zn(this.state,t))},t.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach((function(e){return e()}))},t.prototype.UNSAFE_componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"==typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),this._didPositionPropsChange(e,this.props)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,n=t.styles,r=t.style,i=t.ariaLabel,a=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,c=t.isBeakVisible,d=t.children,p=t.beakWidth,f=t.calloutWidth,h=t.calloutMaxWidth,m=t.finalHeight,g=t.hideOverflow,v=void 0===g?!!m:g,y=t.backgroundColor,b=t.calloutMaxHeight,_=t.onScroll,k=t.shouldRestoreFocus,x=void 0===k||k;e=this._getTarget();var C=this.state.positions,w=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,S=b&&w&&b0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds,t="function"==typeof e?e(this.props.target,this._targetWindow):e;t||(t={top:0+this.props.minPagePadding,left:0+this.props.minPagePadding,right:this._targetWindow.innerWidth-this.props.minPagePadding,bottom:this._targetWindow.innerHeight-this.props.minPagePadding,width:this._targetWindow.innerWidth-2*this.props.minPagePadding,height:this._targetWindow.innerHeight-2*this.props.minPagePadding}),this._bounds=t}return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,n=(this.props.gapSpace?this.props.gapSpace:0)+t;this._async.requestAnimationFrame((function(){e._target&&(e._maxHeight=function(e,t,n,o,r){void 0===n&&(n=0);var i=e,a=e,s=e,l=o?Ia(o):new ta(0,window.innerWidth-Qr(),0,window.innerHeight);return Pa(i.stopPropagation?new ta(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==s.x&&void 0!==s.y?new ta(s.x,s.x,s.y,s.y):Ta(a),t,n,l,r)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())}),this._target)}else this._maxHeight=this._getBounds().height;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var o=e[n],r=t[n];if(void 0===o||void 0===r)return!1;if(o.toFixed(2)!==r.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"==typeof e){var n=yt(t);this._target=n?n.querySelector(e):null,this._targetWindow=$(t)}else if(e.stopPropagation)this._targetWindow=$(e.target),this._target=e;else if(e.getBoundingClientRect){var o=e;this._targetWindow=$(o),this._target=e}else void 0!==e.current?(this._target=e.current,this._targetWindow=$(this._target)):(this._targetWindow=$(t),this._target=e);else this._targetWindow=$(t)},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame((function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight-1&&r._virtual.children.splice(i,1)}n._virtual.parent=o||void 0,o&&(o._virtual||(o._virtual={children:[]}),o._virtual.children.push(n))}(r,n._rootRef.current),n.props.insertFirst?o.insertBefore(r,o.firstChild):o.appendChild(r),n.setState({hostId:e,layerElement:r},(function(){var e=n.props,t=e.onLayerDidMount,o=e.onLayerMounted;o&&o(),t&&t()}))}},n.state={},n}return l(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){ns[e]||(ns[e]=[]),ns[e].push(t)}(e,this._createLayerElement)},t.prototype.render=function(){var e=this.state.layerElement,t=this._getClassNames(),n=this.props.eventBubblingEnabled;return o.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&i.createPortal(o.createElement($a,u({},!n&&function(){os||(os={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return os[e]=as})));return os}(),{className:t.content}),this.props.children),e))},t.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},t.prototype.componentWillUnmount=function(){var e=this.props.hostId;this._removeLayerElement(),e&&function(e,t){if(ns[e]){var n=ns[e].indexOf(t);n>=0&&(ns[e].splice(n,1),0===ns[e].length&&delete ns[e])}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,o=e.theme;return rs(n,{theme:o,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e=this.props.hostId,t=yt(this._rootRef.current);if(t){if(e)return t.getElementById(e);var n=ts;return n?t.querySelector(n):t.body}},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},t=d([es("Layer",["theme","hostId"])],t)}(o.Component),as=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var ss={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},ls=Pn(is,(function(e){var t=e.className,n=e.isNotHost,o=e.theme,r=Jt(ss,o);return{root:[r.root,o.fonts.medium,n&&[r.rootNoHost,{position:"fixed",zIndex:Pt.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=c(e,["layerProps"]),r=o.createElement(Va,u({},n));return this.props.doNotLayer?r:o.createElement(ls,u({},t),r)},t}(o.Component),cs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openSubMenu=function(){var e=t.props,n=e.item,o=e.openSubMenu,r=e.getSubmenuTarget;if(r){var i=r();Ui(n)&&o&&i&&o(n,i)}},t.dismissSubMenu=function(){var e=t.props,n=e.item,o=e.dismissSubMenu;Ui(n)&&o&&o()},t.dismissMenu=function(e){var n=t.props.dismissMenu;n&&n(void 0,e)},t}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames;return o.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=zi(n);if(t){return o.createElement(lr,{iconName:i?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null}(this.props),function(e){var t=e.item,n=e.hasIcons,r=e.classNames,i=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):o.createElement(lr,u({},i,{className:r.icon})):null}(this.props),function(e){var t=e.item,n=e.classNames;return t.text||t.name?o.createElement("span",{className:n.label},t.text||t.name):null}(this.props),function(e){var t=e.item,n=e.classNames;return t.secondaryText?o.createElement("span",{className:n.secondaryText},t.secondaryText):null}(this.props),function(e){var t=e.item,n=e.classNames,r=e.theme;return Ui(t)?o.createElement(lr,u({iconName:Uo(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null}(this.props))},t}(lo),ds=qt((function(e){return V({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),ps=It(0,639),fs=qt((function(){var e;return{selectors:(e={},e[Tt]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},e)}})),hs=qt((function(e){var t,n,o,r,i,a,s,l=e.semanticColors,c=e.fonts,d=e.palette,p=l.menuItemBackgroundHovered,f=l.menuItemTextHovered,h=l.menuItemBackgroundPressed,m=l.bodyDivider;return j({item:[c.medium,{color:l.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:m,position:"relative"},root:[At(e),c.medium,{color:l.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:36,lineHeight:36,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:l.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Tt]={color:"GrayText",opacity:1},t)},rootHovered:u({backgroundColor:p,color:f,selectors:{".ms-ContextualMenu-icon":{color:d.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:d.neutralPrimary}}},fs()),rootFocused:u({backgroundColor:d.white},fs()),rootChecked:u({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:d.neutralPrimary}}},fs()),rootPressed:u({backgroundColor:h,selectors:{".ms-ContextualMenu-icon":{color:d.themeDark},".ms-ContextualMenu-submenuIcon":{color:d.neutralPrimary}}},fs()),rootExpanded:u({backgroundColor:h,color:l.bodyTextChecked},fs()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:36,fontSize:ft.medium,width:ft.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(n={},n[ps]={fontSize:ft.large,width:ft.large},n)},iconColor:{color:l.menuIcon,selectors:(o={},o[Tt]={color:"inherit"},o["$root:hover &"]={selectors:(r={},r[Tt]={color:"HighlightText"},r)},o["$root:focus &"]={selectors:(i={},i[Tt]={color:"HighlightText"},i)},o)},iconDisabled:{color:l.disabledBodyText},checkmarkIcon:{color:l.bodySubtext,selectors:(a={},a[Tt]={color:"HighlightText"},a)},subMenuIcon:{height:36,lineHeight:36,color:d.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:ft.small,selectors:(s={":hover":{color:d.neutralPrimary},":active":{color:d.neutralPrimary}},s[ps]={fontSize:ft.medium},s)},splitButtonFlexContainer:[At(e),{display:"flex",height:36,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),ms=It(0,639),gs=qt((function(e){var t;return V(ds(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[ms]={right:32},t)},divider:{height:16,width:1}})})),vs={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu"},ys=qt((function(e,t,n,o,r,i,a,s,l,u,c,d){var p,f,h,m,g=hs(e),v=Jt(vs,e);return V({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,o&&[v.isChecked,g.rootChecked],r&&g.anchorLink,n&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p["."+Mt+" &:focus, ."+Mt+" &:focus:hover"]=g.rootFocused,p["."+Mt+" &:hover"]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - 28px)"},o&&["is-checked",g.rootChecked],(t||c)&&["is-disabled",g.rootDisabled],!(t||c)&&!o&&[{selectors:(f={":hover":g.rootHovered},f[":hover ~ ."+v.splitMenu]=g.rootHovered,f[":active"]=g.rootPressed,f["."+Mt+" &:focus, ."+Mt+" &:focus:hover"]=g.rootFocused,f["."+Mt+" &:hover"]={background:"inherit;"},f)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:"28px"},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(h={":hover":g.rootHovered,":active":g.rootPressed},h["."+Mt+" &:focus, ."+Mt+" &:focus:hover"]=g.rootFocused,h["."+Mt+" &:hover"]={background:"inherit;"},h)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,l,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!o&&[{selectors:(m={},m["."+Mt+" &:focus, ."+Mt+" &:focus:hover"]=g.rootFocused,m)}]]})})),bs=function(e){var t=e.theme,n=e.disabled,o=e.expanded,r=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return ys(t,n,o,r,i,a,s,l,u,c,d,p)},_s=Pn(cs,bs,void 0,{scope:"ContextualMenuItem"}),ks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onItemMouseEnter=function(e){var n=t.props,o=n.item,r=n.onItemMouseEnter;r&&r(o,e,e.currentTarget)},t._onItemClick=function(e){var n=t.props,o=n.item,r=n.onItemClickBase;r&&r(o,e,e.currentTarget)},t._onItemMouseLeave=function(e){var n=t.props,o=n.item,r=n.onItemMouseLeave;r&&r(o,e)},t._onItemKeyDown=function(e){var n=t.props,o=n.item,r=n.onItemKeyDown;r&&r(o,e)},t._onItemMouseMove=function(e){var n=t.props,o=n.item,r=n.onItemMouseMove;r&&r(o,e,e.currentTarget)},t._getSubMenuId=function(e){var n=t.props.getSubMenuId;if(n)return n(e)},t._getSubmenuTarget=function(){},t}return l(t,e),t.prototype.shouldComponentUpdate=function(e){return!zn(e,this.props)},t}(lo);function xs(e,t){for(var n=-1,o=0;e&&o=0&&(s.keytip.visible=this.keytips[l].keytip.visible,this.keytips=(n=this.keytips,o=s,r=l,(i=n.slice())[r]=o,i),to.raise(this,ws.KEYTIP_UPDATED,{keytip:s.keytip,uniqueID:s.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?this.persistedKeytips=this.persistedKeytips.filter((function(e){return e.uniqueID!==t})):this.keytips=this.keytips.filter((function(e){return e.uniqueID!==t}));var o=n?ws.PERSISTED_KEYTIP_REMOVED:ws.KEYTIP_REMOVED;to.raise(this,o,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){to.raise(this,ws.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){to.raise(this,ws.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){return this.keytips.map((function(e){return e.keytip}))},e.prototype.addParentOverflow=function(e){var t=p(e.keySequences);if(t.pop(),0!==t.length){var n=Cs(this.getKeytips(),(function(e){return function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0){for(var W=0,z=0,U=r;z0?o.createElement("li",{role:"presentation",key:s.key||e.key||"section-"+n},o.createElement("div",u({},c),o.createElement("ul",{className:this._classNames.list},s.topDivider&&this._renderSeparator(n,t,!0,!0),l&&this._renderListItem(l,e.key||n,t,e.title),s.items.map((function(e,t){return a._renderMenuItem(e,t,t,s.items.length,r,i)})),s.bottomDivider&&this._renderSeparator(n,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,n,r){return o.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},t.prototype._renderSeparator=function(e,t,n,r){return r||e>0?o.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,n,o,r,i,a){return e.onRender?e.onRender(u({"aria-posinset":o+1,"aria-setsize":r},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,o,r,i,a):e.split&&Ui(e)?this._renderSplitButton(e,t,n,o,r,i,a):this._renderButtonItem(e,t,n,o,r,i,a)},t.prototype._renderHeaderMenuItem=function(e,t,n,r,i){var a=this.props.contextualMenuItemAs,s=void 0===a?_s:a,l=e.itemProps,c=e.id,d=l&&Jn(l,Xn);return o.createElement("div",u({id:c,className:this._classNames.header},d,{style:e.style}),o.createElement(s,u({item:e,classNames:t,index:n,onCheckmarkClick:r?this._onItemClick:void 0,hasIcons:i},l)))},t.prototype._renderAnchorMenuItem=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Ns,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderButtonItem=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Ds,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderSplitButton=function(e,t,n,r,i,a,s){var l=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return o.createElement(Fs,{item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:l,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:u,onTap:this._onPointerAndTouchEvent})},t.prototype._isAltOrMeta=function(e){return e.which===Fn.alt||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._updateFocusOnMouseEvent=function(e,t,n){var o=this,r=n||t.currentTarget,i=this.props.subMenuHoverDelay,a=void 0===i?Ws:i;e.key!==this.state.expandedMenuItemKey&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===this.state.expandedMenuItemKey&&r.focus(),Ui(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout((function(){r.focus(),o.setState({expandedByMouseClick:!0}),o._onItemSubMenuExpand(e,r),o._enterTimerId=void 0}),a)):this._enterTimerId=this._async.setTimeout((function(){o._onSubMenuDismiss(t),r.focus(),o._enterTimerId=void 0}),a))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,n=e.expandedMenuItemKey,o=this._findItemByKey(n),r=null;return o&&(r={items:Ls(o),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:Uo(this.props.theme)?cr.leftTopEdge:cr.rightTopEdge,className:this.props.className,gapSpace:0,isBeakVisible:!1},o.subMenuProps&&Un(r,o.subMenuProps)),r},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var n=0,o=t;n *":{position:"relative",left:0,top:0}}}],rootDisabled:[At(e,{inset:1,highContrastStyle:l,borderColor:"transparent"}),{backgroundColor:a,borderColor:a,color:s,cursor:"default",pointerEvents:"none",selectors:(t={":hover":Qs,":focus":Qs},t[Tt]={color:"grayText",borderColor:"grayText"},t)}],iconDisabled:{color:s},menuIconDisabled:{color:s},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:Ys(r.mediumPlus.fontSize),menuIcon:Ys(r.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Ot}})),Js=qt((function(e,t){var n;return j(Xs(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"},rootHovered:{color:e.palette.themePrimary,selectors:(n={},n[Tt]={borderColor:"Highlight",color:"Highlight"},n)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent"},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)})),$s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(Zs,u({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:Js(n,t),onRenderDescription:co}))},t=d([es("ActionButton",["theme","styles"],!0)],t)}(lo),el={root:"ms-Nav",linkText:"ms-Nav-linkText",compositeLink:"ms-Nav-compositeLink",link:"ms-Nav-link",chevronButton:"ms-Nav-chevronButton",chevronIcon:"ms-Nav-chevron",navItem:"ms-Nav-navItem",navItems:"ms-Nav-navItems",group:"ms-Nav-group",groupContent:"ms-Nav-groupContent"},tl={textContainer:{overflow:"hidden"},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}};var nl=Zt((function(e){var t=e;return Zt((function(n){if(e===n)throw new Error("Attempted to compose a component with itself.");var r=n,i=Zt((function(e){return function(t){return o.createElement(r,u({},t,{defaultRender:e}))}}));return function(e){var n=e.defaultRender;return o.createElement(t,u({},e,{defaultRender:n?i(n):r}))}}))}));var ol=Zt((function(e){return Zt((function(t){var n=Zt((function(e){return function(n){return t(n,e)}}));return function(o,r){return e(o,r?n(r):t)}}))}));function rl(e,t){return ol(e)(t)}var il;var al=Yo(),sl=Pn(function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=o.createRef(),n._onRenderLink=function(e){var t=n.props,r=t.styles,i=t.groups,a=t.theme,s=al(r,{theme:a,groups:i});return o.createElement("div",{className:s.linkText},e.name)},n._renderGroup=function(e,t){var r=n.props,i=r.styles,a=r.groups,s=r.theme,l=r.onRenderGroupHeader,u=void 0===l?n._renderGroupHeader:l,c=al(i,{theme:s,isGroup:!0,isExpanded:n._isGroupExpanded(e),groups:a});return o.createElement("div",{key:t,className:c.group},e.name?u(e,n._renderGroupHeader):null,o.createElement("div",{className:c.groupContent},n._renderLinks(e.links,0)))},n._renderGroupHeader=function(e){var t=n.props,r=t.styles,i=t.groups,a=t.theme,s=t.expandButtonAriaLabel,l=al(r,{theme:a,isGroup:!0,isExpanded:n._isGroupExpanded(e),groups:i}),u=n._isGroupExpanded(e),c=(u?e.collapseAriaLabel:e.expandAriaLabel)||s;return o.createElement("button",{className:l.chevronButton,onClick:n._onGroupHeaderClicked.bind(n,e),"aria-label":c,"aria-expanded":u},o.createElement(lr,{className:l.chevronIcon,iconName:"ChevronDown"}),e.name)},Dr(n),n.state={isGroupCollapsed:{},isLinkExpandStateChanged:!1,selectedKey:t.initialSelectedKey||t.selectedKey},n}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.groups,r=e.className,i=e.isOnTop,a=e.theme;if(!n)return null;var s=n.map(this._renderGroup),l=al(t,{theme:a,className:r,isOnTop:i,groups:n});return o.createElement(Li,{direction:dr.vertical,componentRef:this._focusZone},o.createElement("nav",{role:"navigation",className:l.root,"aria-label":this.props.ariaLabel},s))},Object.defineProperty(t.prototype,"selectedKey",{get:function(){return this.state.selectedKey},enumerable:!0,configurable:!0}),t.prototype.focus=function(e){return void 0===e&&(e=!1),!(!this._focusZone||!this._focusZone.current)&&this._focusZone.current.focus(e)},t.prototype._renderNavLink=function(e,t,n){var r,i,a,s=this.props,l=s.styles,u=s.groups,c=s.theme,d=s.selectedAriaLabel,p=e.icon||e.iconProps,f=this._isLinkSelected(e),h=al(l,{theme:c,isSelected:f,isDisabled:e.disabled,isButtonEntry:e.onClick&&!e.forceAnchor,leftPadding:14*n+3+(p?0:24),groups:u}),m=e.url&&e.target&&(!(r=e.url)||/^[a-z0-9+-.]:\/\//i.test(r))?"noopener noreferrer":void 0,g=f&&d?d:void 0,v=this.props.linkAs?(i=this.props.linkAs,a=$s,nl(i)(a)):$s,y=this.props.onRenderLink?rl(this.props.onRenderLink,this._onRenderLink):this._onRenderLink;return o.createElement(v,{className:h.link,styles:tl,href:e.url||(e.forceAnchor?"#":void 0),iconProps:e.iconProps||{iconName:e.icon},onClick:e.onClick?this._onNavButtonLinkClicked.bind(this,e):this._onNavAnchorLinkClicked.bind(this,e),title:void 0!==e.title?e.title:e.name,target:e.target,rel:m,disabled:e.disabled,"aria-label":e.ariaLabel&&g?e.ariaLabel+" "+g:g||(e.ariaLabel?e.ariaLabel:void 0),link:e},y(e))},t.prototype._renderCompositeLink=function(e,t,n){var r=u({},Jn(e,Xn,["onClick"])),i=this.props,a=i.expandButtonAriaLabel,s=i.styles,l=i.groups,c=i.theme,d=al(s,{theme:c,isExpanded:!!e.isExpanded,isSelected:this._isLinkSelected(e),isLink:!0,isDisabled:e.disabled,position:14*n+1,groups:l}),p="";return e.links&&e.links.length>0&&(p=e.collapseAriaLabel||e.expandAriaLabel?e.isExpanded?e.collapseAriaLabel:e.expandAriaLabel:a?e.name+" "+a:e.name),o.createElement("div",u({},r,{key:e.key||t,className:d.compositeLink}),e.links&&e.links.length>0?o.createElement("button",{className:d.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":p,"aria-expanded":e.isExpanded?"true":"false"},o.createElement(lr,{className:d.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,n))},t.prototype._renderLink=function(e,t,n){var r=this.props,i=r.styles,a=r.groups,s=r.theme,l=al(i,{theme:s,groups:a});return o.createElement("li",{key:e.key||t,role:"listitem",className:l.navItem},this._renderCompositeLink(e,t,n),e.isExpanded?this._renderLinks(e.links,++n):null)},t.prototype._renderLinks=function(e,t){var n=this;if(!e||!e.length)return null;var r=e.map((function(e,o){return n._renderLink(e,o,t)})),i=this.props,a=i.styles,s=i.groups,l=i.theme,u=al(a,{theme:l,groups:s});return o.createElement("ul",{role:"list",className:u.navItems},r)},t.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),this._toggleCollapsed(e),t.preventDefault(),t.stopPropagation()},t.prototype._onLinkExpandClicked=function(e,t){var n=this.props.onLinkExpandClick;n&&n(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},t.prototype._preventBounce=function(e,t){!e.url&&e.forceAnchor&&t.preventDefault()},t.prototype._onNavAnchorLinkClicked=function(e,t){this._preventBounce(e,t),this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._onNavButtonLinkClicked=function(e,t){this._preventBounce(e,t),e.onClick&&e.onClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if(void 0===$()||!e.url)return!1;(il=il||document.createElement("a")).href=e.url||"";var t=il.href;return location.href===t||(location.protocol+"//"+location.host+location.pathname===t||!!location.hash&&(location.hash===e.url||(il.href=location.hash.substring(1),il.href===t)))},t.prototype._isGroupExpanded=function(e){return e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},t.prototype._toggleCollapsed=function(e){var t;if(e.name){var n=u(u({},this.state.isGroupCollapsed),((t={})[e.name]=this._isGroupExpanded(e),t));this.setState({isGroupCollapsed:n})}},t.defaultProps={groups:null},t}(o.Component),(function(e){var t,n=e.className,o=e.theme,r=e.isOnTop,i=e.isExpanded,a=e.isGroup,s=e.isLink,l=e.isSelected,u=e.isDisabled,c=e.isButtonEntry,d=e.navHeight,p=void 0===d?44:d,f=e.position,h=e.leftPadding,m=void 0===h?20:h,g=e.leftPaddingExpanded,v=void 0===g?28:g,y=e.rightPadding,b=void 0===y?20:y,_=o.palette,k=o.semanticColors,x=o.fonts,C=Jt(el,o);return{root:[C.root,n,x.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},r&&[{position:"absolute"},xn.slideRightIn40]],linkText:[C.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[C.compositeLink,{display:"block",position:"relative",color:k.bodyText},i&&"is-expanded",l&&"is-selected",u&&"is-disabled",u&&{color:k.disabledText}],link:[C.link,At(o),{display:"block",position:"relative",height:p,width:"100%",lineHeight:p+"px",textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:m,paddingRight:b,color:k.bodyText,selectors:(t={},t[Tt]={borderColor:"transparent",selectors:{":focus":{borderColor:"WindowText"}}},t)},!u&&{selectors:{".ms-Nav-compositeLink:hover &":{backgroundColor:k.bodyBackgroundHovered}}},l&&{color:k.bodyTextChecked,fontWeight:pt.semibold,backgroundColor:k.bodyBackgroundChecked,selectors:{"&:after":{borderLeft:"2px solid "+_.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},u&&{color:k.disabledText},c&&{color:_.themePrimary}],chevronButton:[C.chevronButton,At(o),x.small,{display:"block",textAlign:"left",lineHeight:p+"px",margin:"5px 0",padding:"0px, "+b+"px, 0px, "+v+"px",border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:k.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:k.bodyText}}},a&&{fontSize:x.large.fontSize,width:"100%",height:p,borderBottom:"1px solid "+k.bodyDivider},s&&{display:"block",width:v-2,height:p-2,position:"absolute",top:"1px",left:f+"px",zIndex:Pt.Nav,padding:0,margin:0},l&&{color:_.themePrimary,backgroundColor:_.neutralLighterAlt,selectors:{"&:after":{borderLeft:"2px solid "+_.themePrimary,content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}}],chevronIcon:[C.chevronIcon,{position:"absolute",left:"8px",height:p,lineHeight:p+"px",fontSize:x.small.fontSize,transition:"transform .1s linear"},i&&{transform:"rotate(-180deg)"},s&&{top:0}],navItem:[C.navItem,{padding:0}],navItems:[C.navItems,{listStyleType:"none",padding:0,margin:0}],group:[C.group,i&&"is-expanded"],groupContent:[C.groupContent,{display:"none",marginBottom:"40px"},xn.slideDownIn20,i&&{display:"block"}]}}),void 0,{scope:"Nav"}),ll=u;function ul(e,t){for(var n=[],r=2;r0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return fl(t[e],n,o[e],o.slots&&o.slots[e],o._defaultStyles&&o._defaultStyles[e])};r.isSlot=!0,n[e]=r}};for(var i in t)r(i);return n}function fl(e,t,n,o,r){return void 0!==e.create?e.create(t,n,o,r):dl(e)(t,n,o,r)}function hl(e,t){void 0===t&&(t={});var n=t.factoryOptions,r=(void 0===n?{}:n).defaultProp,i=function(n){var r,i,a,s=(r=t.displayName,i=o.useContext(Tn),a=t.fields,nn.getSettings(a||["theme","styles","tokens"],r,i.customizations)),l=t.state;l&&(n=u(u({},n),l(n)));var c=n.theme||s.theme,d=function e(t,n){for(var o=[],r=2;r2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:vl(gl(n[0],t)),columnGap:vl(gl(n[1],t))};var o=vl(gl(e,t));return{rowGap:o,columnGap:o}}(x,t),T=E.rowGap,I=E.columnGap,P=""+-.5*I.value+I.unit,M=""+-.5*T.value+T.unit,N={textOverflow:"ellipsis"},D={"> *:not(.ms-StackItem)":{flexShrink:b?0:1}};return g?{root:[k.root,{flexWrap:"wrap",maxWidth:w,maxHeight:C,width:"auto",overflow:"visible",height:"100%"},v&&(o={},o[p?"justifyContent":"alignItems"]=bl[v]||v,o),y&&(r={},r[p?"alignItems":"justifyContent"]=bl[y]||y,r),_,{display:"flex"},p&&{height:d?"100%":"auto"}],inner:[k.inner,{display:"flex",flexWrap:"wrap",marginLeft:P,marginRight:P,marginTop:M,marginBottom:M,overflow:"visible",boxSizing:"border-box",padding:yl(S,t),width:0===I.value?"100%":"calc(100% + "+I.value+I.unit+")",maxWidth:"100vw",selectors:u({"> *":u({margin:""+.5*T.value+T.unit+" "+.5*I.value+I.unit},N)},D)},v&&(i={},i[p?"justifyContent":"alignItems"]=bl[v]||v,i),y&&(a={},a[p?"alignItems":"justifyContent"]=bl[y]||y,a),p&&{flexDirection:f?"row-reverse":"row",height:0===T.value?"100%":"calc(100% + "+T.value+T.unit+")",selectors:{"> *":{maxWidth:0===I.value?"100%":"calc(100% - "+I.value+I.unit+")"}}},!p&&{flexDirection:f?"column-reverse":"column",height:"calc(100% + "+T.value+T.unit+")",selectors:{"> *":{maxHeight:0===T.value?"100%":"calc(100% - "+T.value+T.unit+")"}}}]}:{root:[k.root,{display:"flex",flexDirection:p?f?"row-reverse":"row":f?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:d?"100%":"auto",maxWidth:w,maxHeight:C,padding:yl(S,t),boxSizing:"border-box",selectors:u((s={"> *":N},s[f?"> *:not(:last-child)":"> *:not(:first-child)"]=[p&&{marginLeft:""+I.value+I.unit},!p&&{marginTop:""+T.value+T.unit}],s),D)},m&&{flexGrow:!0===m?1:m},v&&(l={},l[p?"justifyContent":"alignItems"]=bl[v]||v,l),y&&(c={},c[p?"alignItems":"justifyContent"]=bl[y]||y,c),_]}},statics:{Item:Cl}}),Sl=qt((function(e,t){var n,o,r,i,a,s,l,c,d,p,f=e.effects,h=e.palette,m={position:"absolute",width:1,right:31,top:8,bottom:8};return j({splitButtonContainer:[At(e,{highContrastStyle:{left:-2,top:-2,bottom:-2,right:-2,border:"none"},inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:(n={},n[Tt]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none"}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(o={},o[Tt]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{selectors:(r={},r[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(i={},i[Tt]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},i)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(a={},a[Tt]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},a)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:{padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:f.roundedCorner2,borderBottomRightRadius:f.roundedCorner2,border:"1px solid "+h.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},splitButtonDivider:u(u({},m),{selectors:(s={},s[Tt]={backgroundColor:"WindowText"},s)}),splitButtonDividerDisabled:u(u({},m),{selectors:(l={},l[Tt]={backgroundColor:"GrayText"},l)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(c={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(d={},d[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},d)}},c[Tt]={border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},c)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(p={},p[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},p)}},t)})),El=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};var Tl,Il,Pl=qt((function(e,t,n){var o=Xs(e),r=Sl(e);return j(o,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:pt.semibold}},n?function(e){var t,n,o,r,i,a,s,l,c,d=e.palette,p=e.semanticColors;return{root:{backgroundColor:p.primaryButtonBackground,border:"1px solid "+p.primaryButtonBackground,color:p.primaryButtonText,selectors:(t={},t[Tt]={color:"Window",backgroundColor:"WindowText",borderColor:"WindowText",MsHighContrastAdjust:"none"},t["."+Mt+" &:focus"]={selectors:{":after":{border:"none",outlineColor:d.white}}},t)},rootHovered:{backgroundColor:p.primaryButtonBackgroundHovered,border:"1px solid "+p.primaryButtonBackgroundHovered,color:p.primaryButtonTextHovered,selectors:(n={},n[Tt]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:p.primaryButtonBackgroundPressed,border:"1px solid "+p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed,selectors:(o={},o[Tt]={color:"Window",backgroundColor:"WindowText",borderColor:"WindowText",MsHighContrastAdjust:"none"},o)},rootExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootChecked:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootDisabled:{selectors:(r={},r[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)},splitButtonContainer:{selectors:(i={},i[Tt]={border:"none"},i)},splitButtonDivider:u(u({},El()),{backgroundColor:d.white,selectors:(a={},a[Tt]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:p.primaryButtonBackground,color:p.primaryButtonText,selectors:(s={},s[Tt]={backgroundColor:"WindowText"},s[":hover"]={backgroundColor:p.primaryButtonBackgroundHovered,selectors:(l={},l[Tt]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:p.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:p.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:p.primaryButtonText},splitButtonMenuIconDisabled:{color:d.neutralTertiary,selectors:(c={},c[Tt]={color:"GrayText"},c)}}}(e):function(e){var t,n,o,r,i,a=e.semanticColors,s=e.palette,l=a.buttonBackground,c=a.buttonBackgroundPressed,d=a.buttonBackgroundHovered,p=a.buttonText,f=a.buttonTextHovered,h=a.buttonTextChecked,m=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:p},rootHovered:{backgroundColor:d,color:f,selectors:(t={},t[Tt]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:c,color:h},rootExpanded:{backgroundColor:c,color:h},rootChecked:{backgroundColor:c,color:h},rootCheckedHovered:{backgroundColor:c,color:m},rootDisabled:{selectors:(n={},n[Tt]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(o={},o[Tt]={border:"none"},o)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(r={},r[Tt]={color:"Highlight"},r)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:u(u({},El()),{backgroundColor:s.neutralTertiaryAlt,selectors:(i={},i[Tt]={backgroundColor:"WindowText"},i)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}(e),r,t)})),Ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,i=e.theme;return o.createElement(Zs,u({},this.props,{variantClassName:n?"ms-Button--primary":"ms-Button--default",styles:Pl(i,r,n),onRenderDescription:co}))},t=d([es("DefaultButton",["theme","styles"],!0)],t)}(lo),Nl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return l(t,e),t.prototype.render=function(){return o.createElement(Ml,u({},this.props,{primary:!0,onRenderDescription:co}))},t=d([es("PrimaryButton",["theme","styles"],!0)],t)}(lo);!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(Tl||(Tl={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Il||(Il={}));var Dl,Al=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return l(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?o.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(o.Component),Bl=Yo(),Fl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,i=e.ariaLive,a=e.styles,s=e.label,l=e.theme,c=e.className,d=e.labelPosition,p=r,f=Jn(this.props,Xn,["size"]),h=n;void 0===h&&void 0!==t&&(h=t===Il.large?Tl.large:Tl.medium);var m=Bl(a,{theme:l,size:h,className:c,labelPosition:d});return o.createElement("div",u({},f,{className:m.root}),o.createElement("div",{className:m.circle}),s&&o.createElement("div",{className:m.label},s),p&&o.createElement("div",{role:"status","aria-live":i},o.createElement(Al,null,o.createElement("div",{className:m.screenReaderText},p))))},t.defaultProps={size:Tl.medium,ariaLive:"polite",labelPosition:"bottom"},t}(lo),Ol={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Rl=G({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ll=Pn(Fl,(function(e){var t,n=e.theme,o=e.size,r=e.className,i=e.labelPosition,a=n.palette,s=Jt(Ol,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},r],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:Rl,animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[Tt]={borderTopColor:"Highlight"},t)},o===Tl.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],o===Tl.small&&["ms-Spinner--small",{width:16,height:16}],o===Tl.medium&&["ms-Spinner--medium",{width:20,height:20}],o===Tl.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 8px"},"right"===i&&{margin:"0 0 0 8px"},"left"===i&&{margin:"0 8px 0 0"}],screenReaderText:Ot}}),void 0,{scope:"Spinner"}),Hl={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},Wl=o.createContext({scrollablePane:void 0}),zl=Yo(),Ul=Pn(function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._stickyAboveRef=o.createRef(),n._stickyBelowRef=o.createRef(),n._contentContainer=o.createRef(),n.subscribe=function(e){n._subscribers.add(e)},n.unsubscribe=function(e){n._subscribers.delete(e)},n.addSticky=function(e){n._stickies.add(e),n.contentContainer&&(e.setDistanceFromTop(n.contentContainer),n.sortSticky(e))},n.removeSticky=function(e){n._stickies.delete(e),n._removeStickyFromContainers(e),n.notifySubscribers()},n.sortSticky=function(e,t){n.stickyAbove&&n.stickyBelow&&(t&&n._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&n._addToStickyContainer(e,n.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&n._addToStickyContainer(e,n.stickyBelow,e.stickyContentBottom))},n.updateStickyRefHeights=function(){var e=n._stickies,t=0,o=0;e.forEach((function(e){var r=e.state,i=r.isStickyTop,a=r.isStickyBottom;e.nonStickyContent&&(i&&(t+=e.nonStickyContent.offsetHeight),a&&(o+=e.nonStickyContent.offsetHeight),n._checkStickyStatus(e))})),n.setState({stickyTopHeight:t,stickyBottomHeight:o})},n.notifySubscribers=function(){n.contentContainer&&n._subscribers.forEach((function(e){e(n.contentContainer,n.stickyBelow)}))},n.getScrollPosition=function(){return n.contentContainer?n.contentContainer.scrollTop:0},n.syncScrollSticky=function(e){e&&n.contentContainer&&e.syncScroll(n.contentContainer)},n._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:n.subscribe,unsubscribe:n.unsubscribe,addSticky:n.addSticky,removeSticky:n.removeSticky,updateStickyRefHeights:n.updateStickyRefHeights,sortSticky:n.sortSticky,notifySubscribers:n.notifySubscribers,syncScrollSticky:n.syncScrollSticky}}},n._addToStickyContainer=function(e,t,o){if(t.children.length){if(!t.contains(o)){var r=[].slice.call(t.children),i=[];n._stickies.forEach((function(o){t===n.stickyAbove&&e.canStickyTop?i.push(o):e.canStickyBottom&&i.push(o)}));for(var a=void 0,s=0,l=i.sort((function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)})).filter((function(e){var o=t===n.stickyAbove?e.stickyContentTop:e.stickyContentBottom;if(o)return r.indexOf(o)>-1}));s=(e.state.distanceFromTop||0)){a=u;break}}var c=null;a&&(c=t===n.stickyAbove?a.stickyContentTop:a.stickyContentBottom),t.insertBefore(o,c)}}else t.appendChild(o)},n._removeStickyFromContainers=function(e){n.stickyAbove&&e.stickyContentTop&&n.stickyAbove.contains(e.stickyContentTop)&&n.stickyAbove.removeChild(e.stickyContentTop),n.stickyBelow&&e.stickyContentBottom&&n.stickyBelow.contains(e.stickyContentBottom)&&n.stickyBelow.removeChild(e.stickyContentBottom)},n._onWindowResize=function(){var e=n._getScrollbarWidth(),t=n._getScrollbarHeight();n.setState({scrollbarWidth:e,scrollbarHeight:t}),n.notifySubscribers()},n._getStickyContainerStyle=function(e,t){return u(u({height:e},Uo(n.props.theme)?{right:"0",left:(n.state.scrollbarWidth||n._getScrollbarWidth()||0)+"px"}:{left:"0",right:(n.state.scrollbarWidth||n._getScrollbarWidth()||0)+"px"}),t?{top:"0"}:{bottom:(n.state.scrollbarHeight||n._getScrollbarHeight()||0)+"px"})},n._onScroll=function(){var e=n.contentContainer;e&&n._stickies.forEach((function(t){t.syncScroll(e)})),n._notifyThrottled()},n._subscribers=new Set,n._stickies=new Set,n.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},n._notifyThrottled=n._async.throttle(n.notifySubscribers,50),n}return l(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){var e=this,t=this.props.initialScrollPosition;this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(window,"resize",this._onWindowResize),this.contentContainer&&t&&(this.contentContainer.scrollTop=t),this.setStickiesDistanceFromTop(),this._stickies.forEach((function(t){e.sortSticky(t)})),this.notifySubscribers(),"MutationObserver"in window&&(this._mutationObserver=new MutationObserver((function(t){var n=e._getScrollbarHeight();if(n!==e.state.scrollbarHeight&&e.setState({scrollbarHeight:n}),e.notifySubscribers(),t.some(function(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}.bind(e)))e.updateStickyRefHeights();else{var o=[];e._stickies.forEach((function(e){e.root&&e.root.contains(t[0].target)&&o.push(e)})),o.length&&o.forEach((function(e){e.forceUpdate()}))}})),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},t.prototype.componentWillUnmount=function(){this._events.off(this.contentContainer),this._events.off(window),this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},t.prototype.componentDidUpdate=function(e,t){var n=this.props.initialScrollPosition;this.contentContainer&&"number"==typeof n&&e.initialScrollPosition!==n&&(this.contentContainer.scrollTop=n),t.stickyTopHeight===this.state.stickyTopHeight&&t.stickyBottomHeight===this.state.stickyBottomHeight||this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.theme,r=e.styles,i=this.state,a=i.stickyTopHeight,s=i.stickyBottomHeight,l=zl(r,{theme:n,className:t,scrollbarVisibility:this.props.scrollbarVisibility});return o.createElement("div",u({},Jn(this.props,Xn),{ref:this._root,className:l.root}),o.createElement("div",{"aria-hidden":"true",ref:this._stickyAboveRef,className:l.stickyAbove,style:this._getStickyContainerStyle(a,!0)}),o.createElement("div",{ref:this._contentContainer,className:l.contentContainer,"data-is-scrollable":!0},o.createElement(Wl.Provider,{value:this._getScrollablePaneContext()},this.props.children)),o.createElement("div",{"aria-hidden":"true",className:l.stickyBelow,style:this._getStickyContainerStyle(s,!1)},o.createElement("div",{ref:this._stickyBelowRef,className:l.stickyBelowItems})))},t.prototype.setStickiesDistanceFromTop=function(){var e=this;this.contentContainer&&this._stickies.forEach((function(t){t.setDistanceFromTop(e.contentContainer)}))},t.prototype.forceLayoutUpdate=function(){this._onWindowResize()},t.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},t.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},t.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},t}(lo),(function(e){var t,n,o=e.className,r=e.theme,i=Jt(Hl,r),a={position:"absolute",pointerEvents:"auto"},s={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[i.root,r.fonts.medium,s,o],contentContainer:[i.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},s],stickyAbove:[{top:0,zIndex:1,selectors:(t={},t[Tt]={borderBottom:"1px solid WindowText"},t)},a],stickyBelow:[{bottom:0,selectors:(n={},n[Tt]={borderTop:"1px solid WindowText"},n)},a],stickyBelowItems:[{bottom:0},a,{width:"100%"}]}}),void 0,{scope:"ScrollablePane"});!function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"}(Dl||(Dl={}));var Kl=function(e){function t(n){var r=e.call(this,n)||this;return r._root=o.createRef(),r._firstBumper=o.createRef(),r._lastBumper=o.createRef(),r._hasFocus=!1,r._onRootFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r._hasFocus=!0},r._onRootBlur=function(e){r.props.onBlur&&r.props.onBlur(e);var t=e.relatedTarget;null===e.relatedTarget&&(t=r._getDocument().activeElement),fr(r._root.current,t)||(r._hasFocus=!1)},r._onFirstBumperFocus=function(){r._onBumperFocus(!0)},r._onLastBumperFocus=function(){r._onBumperFocus(!1)},r._onBumperFocus=function(e){if(!r.props.disabled){var t,n,o=e===r._hasFocus?r._lastBumper.current:r._firstBumper.current;if(r._root.current){var i=e===r._hasFocus?(t=r._root.current,void 0===(n=!1)&&(n=!0),_r(t,o,n,!1,!0,!0,!1,!0)):function(e,t,n,o){return void 0===o&&(o=!0),kr(e,t,o,!1,!1,n,!1,!0)}(r._root.current,o,!0,!1);i&&(r._isBumper(i)?r.focus():i.focus())}}},r._onFocusCapture=function(e){r.props.onFocusCapture&&r.props.onFocusCapture(e),e.target===e.currentTarget||r._isBumper(e.target)||(r._previouslyFocusedElementInTrapZone=e.target)},r._forceFocusInTrap=function(e){if(!r.props.disabled&&t._focusStack.length&&r===t._focusStack[t._focusStack.length-1]){var n=r._getDocument().activeElement;fr(r._root.current,n)||(r.focus(),r._hasFocus=!0,e.preventDefault(),e.stopPropagation())}},r._forceClickInTrap=function(e){if(!r.props.disabled&&t._focusStack.length&&r===t._focusStack[t._focusStack.length-1]){var n=e.target;n&&!fr(r._root.current,n)&&(r.focus(),r._hasFocus=!0,e.preventDefault(),e.stopPropagation())}},Dr(r),r}return l(t,e),t.prototype.componentDidMount=function(){this._bringFocusIntoZone(),this._updateEventHandlers(this.props)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.elementToFocusOnDismiss;t&&this._previouslyFocusedElementOutsideTrapZone!==t&&(this._previouslyFocusedElementOutsideTrapZone=t),this._updateEventHandlers(e)},t.prototype.componentDidUpdate=function(e){var t=void 0===e.forceFocusInsideTrap||e.forceFocusInsideTrap,n=void 0===this.props.forceFocusInsideTrap||this.props.forceFocusInsideTrap,o=void 0!==e.disabled&&e.disabled,r=void 0!==this.props.disabled&&this.props.disabled;!t&&n||o&&!r?this._bringFocusIntoZone():(t&&!n||!o&&r)&&this._returnFocusToInitiator()},t.prototype.componentWillUnmount=function(){this.props.disabled&&!this.props.forceFocusInsideTrap&&fr(this._root.current,this._getDocument().activeElement)||this._returnFocusToInitiator(),this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0),this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),delete this._previouslyFocusedElementInTrapZone,delete this._previouslyFocusedElementOutsideTrapZone},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,r=void 0!==n&&n,i=e.ariaLabelledBy,a=Jn(this.props,Xn),s={style:{pointerEvents:"none",position:"fixed"},tabIndex:r?-1:0,"data-is-visible":!0};return o.createElement("div",u({},a,{className:t,ref:this._root,"aria-labelledby":i,onFocusCapture:this._onFocusCapture,onFocus:this._onRootFocus,onBlur:this._onRootBlur}),o.createElement("div",u({},s,{ref:this._firstBumper,onFocus:this._onFirstBumperFocus})),this.props.children,o.createElement("div",u({},s,{ref:this._lastBumper,onFocus:this._onLastBumperFocus})))},t.prototype.focus=function(){var e=this.props,t=e.focusPreviouslyFocusedInnerElement,n=e.firstFocusableSelector;if(t&&this._previouslyFocusedElementInTrapZone&&fr(this._root.current,this._previouslyFocusedElementInTrapZone))this._focusAsync(this._previouslyFocusedElementInTrapZone);else{var o="string"==typeof n?n:n&&n(),r=null;this._root.current&&(o&&(r=this._root.current.querySelector("."+o)),r||(r=kr(this._root.current,this._root.current.firstChild,!1,!1,!1,!0))),r&&this._focusAsync(r)}},t.prototype._focusAsync=function(e){this._isBumper(e)||Pr(e)},t.prototype._bringFocusIntoZone=function(){var e=this.props,n=e.elementToFocusOnDismiss,o=e.disabled,r=void 0!==o&&o,i=e.disableFirstFocus,a=void 0!==i&&i;r||(t._focusStack.push(this),this._previouslyFocusedElementOutsideTrapZone=n||this._getDocument().activeElement,a||fr(this._root.current,this._previouslyFocusedElementOutsideTrapZone)||this.focus())},t.prototype._returnFocusToInitiator=function(){var e=this,n=this.props.ignoreExternalFocusing;t._focusStack=t._focusStack.filter((function(t){return e!==t}));var o=this._getDocument(),r=o.activeElement;n||!this._previouslyFocusedElementOutsideTrapZone||"function"!=typeof this._previouslyFocusedElementOutsideTrapZone.focus||!fr(this._root.current,r)&&r!==o.body||this._focusAsync(this._previouslyFocusedElementOutsideTrapZone)},t.prototype._updateEventHandlers=function(e){var t=e.isClickableOutsideFocusTrap,n=void 0!==t&&t,o=e.forceFocusInsideTrap,r=void 0===o||o;r&&!this._disposeFocusHandler?this._disposeFocusHandler=Rr(window,"focus",this._forceFocusInTrap,!0):!r&&this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),n||this._disposeClickHandler?n&&this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0):this._disposeClickHandler=Rr(window,"click",this._forceClickInTrap,!0)},t.prototype._isBumper=function(e){return e===this._firstBumper.current||e===this._lastBumper.current},t.prototype._getDocument=function(){return yt(this._root.current)},t._focusStack=[],t}(o.Component),jl=Je,Vl={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},Gl=Yo(),ql=function(e){function t(t){var n=e.call(this,t)||this,o=n.props.allowTouchBodyScroll,r=void 0!==o&&o;return n._allowTouchBodyScroll=r,n}return l(t,e),t.prototype.componentDidMount=function(){var e;!this._allowTouchBodyScroll&&((e=yt())&&e.body&&!Kr&&(e.body.classList.add(jr),e.body.addEventListener("touchmove",Zr,{passive:!1,capture:!1})),Kr++)},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&function(){if(Kr>0){var e=yt();e&&e.body&&1===Kr&&(e.body.classList.remove(jr),e.body.removeEventListener("touchmove",Zr)),Kr--}}()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,r=e.theme,i=e.styles,a=Jn(this.props,Xn),s=Gl(i,{theme:r,className:n,isDark:t});return o.createElement("div",u({},a,{className:s.root}))},t}(lo),Zl={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},Ql=Pn(ql,(function(e){var t,n=e.className,o=e.theme,r=e.isNone,i=e.isDark,a=o.palette,s=Jt(Zl,o);return{root:[s.root,o.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[Tt]={border:"1px solid WindowText",opacity:0},t)},r&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"}),Yl=qt((function(e,t){return{root:K(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),Xl={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Jl=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=Xl.mouse,n._events=[],n._onMouseDown=function(e){var t=o.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=Xl.mouse,n._onDragStart(e)},n._onMouseUp=function(e){var t=o.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=Xl.mouse,n._onDragStop(e)},n._onTouchStart=function(e){var t=o.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=Xl.touch,n._onDragStart(e)},n._onTouchEnd=function(e){var t=o.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=Xl.touch,n._onDragStop(e)},n._onDragStart=function(e){if("number"==typeof e.button&&0!==e.button)return!1;if(!(n.props.handleSelector&&!n._matchesSelector(e.target,n.props.handleSelector)||n.props.preventDragSelector&&n._matchesSelector(e.target,n.props.preventDragSelector))){n._touchId=n._getTouchId(e);var t=n._getControlPosition(e);if(void 0!==t){var o=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,o),n.setState({isDragging:!0,lastPosition:t}),n._events=[Rr(document.body,n._currentEventType.move,n._onDrag),Rr(document.body,n._currentEventType.stop,n._onDragStop)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var o=n._createUpdatedDragData(n._createDragDataFromPosition(t)),r=o.position;n.props.onDragChange&&n.props.onDragChange(e,o),n.setState({position:r,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var o=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,o),n.props.position&&n.setState({position:n.props.position}),n._events.forEach((function(e){return e()}))}}},n.state={isDragging:!1,position:n.props.position||{x:0,y:0},lastPosition:void 0},n}return l(t,e),t.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach((function(e){return e()}))},t.prototype.render=function(){var e=o.Children.only(this.props.children),t=e.props,n=this.props.position,r=this.state,i=r.position,a=r.isDragging,s=i.x,l=i.y;return n&&!a&&(s=n.x,l=n.y),o.cloneElement(e,{style:u(u({},t.style),{transform:"translate("+s+"px, "+l+"px)"}),className:Yl(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!n&&(n.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t0&&(n=t[0].getBoundingClientRect(),this.setState({modalRectangleTop:n.top}))}}else this.setState({isOpen:!0}),e.dragOptions&&this._registerForKeyUp();!e.isOpen&&this.state.isOpen&&(this._onModalCloseTimer=this._async.setTimeout(this._onModalClose,1e3*parseFloat(jl)),this.setState({isVisible:!1}))},t.prototype.componentDidMount=function(){this.state.isOpen&&this.state.isVisible&&this._registerForKeyUp()},t.prototype.componentDidUpdate=function(e,t){e.isOpen||t.isVisible||this.setState({isVisible:!0})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.containerClassName,r=e.scrollableContentClassName,i=e.elementToFocusOnDismiss,a=e.firstFocusableSelector,s=e.forceFocusInsideTrap,l=e.ignoreExternalFocusing,c=e.isBlocking,d=e.isClickableOutsideFocusTrap,p=e.isDarkOverlay,f=e.onDismiss,h=e.layerProps,m=e.overlay,g=e.responsiveMode,v=e.titleAriaId,y=e.styles,b=e.subtitleAriaId,_=e.theme,k=e.topOffsetFixed,x=e.onLayerDidMount,C=e.isModeless,w=e.dragOptions,S=this.state,E=S.isOpen,T=S.isVisible,I=S.hasBeenOpened,P=S.modalRectangleTop,M=S.x,N=S.y,D=S.isInKeyboardMoveMode;if(!E)return null;var A=void 0===h?"":h.className,B=eu(y,{theme:_,className:t,containerClassName:n,scrollableContentClassName:r,isOpen:E,isVisible:T,hasBeenOpened:I,modalRectangleTop:P,topOffsetFixed:k,isModeless:C,layerClassName:A,isDefaultDragHandle:w&&!w.dragHandleSelector}),F=u(u(u({},$l),this.props.layerProps),{onLayerDidMount:h&&h.onLayerDidMount?h.onLayerDidMount:x,insertFirst:C,className:B.layer}),O=o.createElement(Kl,{componentRef:this._focusTrapZone,className:B.main,elementToFocusOnDismiss:i,isClickableOutsideFocusTrap:C||d||!c,ignoreExternalFocusing:l,forceFocusInsideTrap:C?!C:s,firstFocusableSelector:a,focusPreviouslyFocusedInnerElement:!0,onBlur:D?this._onExitKeyboardMoveMode:void 0},w&&D&&o.createElement("div",{className:B.keyboardMoveIconContainer},w.keyboardMoveIconProps?o.createElement(lr,u({},w.keyboardMoveIconProps)):o.createElement(lr,{iconName:"move",className:B.keyboardMoveIcon})),o.createElement("div",{ref:this._allowScrollOnModal,className:B.scrollableContent,"data-is-scrollable":!0},w&&this.state.isModalMenuOpen&&o.createElement(w.menu,{items:[{key:"move",text:w.moveMenuItemText,onClick:this._onEnterKeyboardMoveMode},{key:"close",text:w.closeMenuItemText,onClick:this._onModalClose}],onDismiss:this._onModalContextMenuClose,alignTargetEdge:!0,coverTarget:!0,directionalHint:cr.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:this._scrollableContent}),this.props.children));return g>=Vi.small?o.createElement(ls,u({},F),o.createElement(Fa,{role:C||!c?"dialog":"alertdialog","aria-modal":!C,ariaLabelledBy:v,ariaDescribedBy:b,onDismiss:f,shouldRestoreFocus:!l},o.createElement("div",{className:B.root},!C&&o.createElement(Ql,u({isDarkThemed:p,onClick:c?void 0:f,allowTouchBodyScroll:this._allowTouchBodyScroll},m)),w?o.createElement(Jl,{handleSelector:w.dragHandleSelector||"."+B.main.split(" ")[0],preventDragSelector:"button",onStart:this._onDragStart,onDragChange:this._onDrag,onStop:this._onDragStop,position:{x:M,y:N}},O):O))):null},t.prototype.focus=function(){this._focusTrapZone.current&&this._focusTrapZone.current.focus()},t.prototype._getMoveDelta=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t},t.defaultProps={isOpen:!1,isDarkOverlay:!0,isBlocking:!1,className:"",containerClassName:""},t=d([$i],t)}(lo),(function(e){var t,n=e.className,o=e.containerClassName,r=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,u=e.theme,c=e.topOffsetFixed,d=e.isModeless,p=e.layerClassName,f=e.isDefaultDragHandle,h=u.palette,m=u.effects,g=u.fonts,v=Jt(Vl,u);return{root:[v.root,g.medium,{backgroundColor:"transparent",position:d?"absolute":"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+jl},c&&s&&{alignItems:"flex-start"},i&&v.isOpen,a&&{opacity:1,pointerEvents:"auto"},n],main:[v.main,{boxShadow:m.elevation64,borderRadius:m.roundedCorner2,backgroundColor:h.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?Pt.Layer:void 0},c&&s&&{top:l},f&&{cursor:"move"},o],scrollableContent:[v.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:window.innerHeight},t)},r],layer:d&&[p,v.layer,{position:"static",width:"unset",height:"unset"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:g.xLargePlus.fontSize,width:"24px"}}}),void 0,{scope:"Modal"}),nu=qt((function(e,t){var n,o=Xs(e),r=Sl(e),i=e.palette;return j(o,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[Tt]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},r,t)})),ou=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(Zs,u({},this.props,{variantClassName:"ms-Button--icon",styles:nu(n,t),onRenderText:co,onRenderDescription:co}))},t=d([es("IconButton",["theme","styles"],!0)],t)}(lo),ru=Yo(),iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return this._classNames=ru(n,{theme:r,className:t}),o.createElement("div",{className:this._classNames.actions},o.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return o.Children.map(this.props.children,(function(t){return t?o.createElement("span",{className:e._classNames.action},t):null}))},t}(lo),au={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},su=Pn(iu,(function(e){var t=e.className,n=e.theme,o=Jt(au,n);return{actions:[o.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal"}}},t],action:[o.action,{margin:"0 4px"}],actionsRight:[o.actionsRight,{textAlign:"right",marginRight:"-4px",fontSize:"0"}]}}),void 0,{scope:"DialogFooter"}),lu=Yo(),uu=o.createElement(su,null).type,cu=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.render=function(){var e,t=this.props,n=t.showCloseButton,r=t.className,i=t.closeButtonAriaLabel,a=t.onDismiss,s=t.subTextId,l=t.subText,c=t.titleId,d=t.title,p=t.type,f=t.styles,h=t.theme,m=t.draggableHeaderClassName,g=lu(f,{theme:h,className:r,isLargeHeader:p===Dl.largeHeader,isClose:p===Dl.close,draggableHeaderClassName:m}),v=this._groupChildren();return l&&(e=o.createElement("p",{className:g.subText,id:s},l)),o.createElement("div",{className:g.content},o.createElement("div",{className:g.header},o.createElement("p",{className:g.title,id:c,role:"heading","aria-level":2},d),o.createElement("div",{className:g.topButton},this.props.topButtonsProps.map((function(e,t){return o.createElement(ou,u({key:e.uniqueId||t},e))})),(p===Dl.close||n&&p!==Dl.largeHeader)&&o.createElement(ou,{className:g.button,iconProps:{iconName:"Cancel"},ariaLabel:i,onClick:a,title:i}))),o.createElement("div",{className:g.inner},o.createElement("div",{className:g.innerContent},e,v.contents),v.footers))},t.prototype._groupChildren=function(){var e={footers:[],contents:[]};return o.Children.map(this.props.children,(function(t){"object"==typeof t&&null!==t&&t.type===uu?e.footers.push(t):e.contents.push(t)})),e},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=d([$i],t)}(lo),du={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},pu=Pn(cu,(function(e){var t,n,o,r=e.className,i=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,u=e.isMultiline,c=e.draggableHeaderClassName,d=i.palette,p=i.fonts,f=i.effects,h=i.semanticColors,m=Jt(du,i);return{content:[a&&[m.contentLgHeader,{borderTop:"4px solid "+d.themePrimary}],s&&m.close,{flexGrow:1,overflowY:"hidden"},r],subText:[m.subText,p.medium,{margin:"0 0 24px 0",color:h.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:pt.regular}],header:[m.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&m.close,c&&[c,{cursor:"move"}]],button:[m.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:h.buttonText,fontSize:ft.medium}}}],inner:[m.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: 320px) and (max-width: 479px)"]={padding:"0 16px 16px"},t)}],innerContent:[m.content,{position:"relative",width:"100%"}],title:[m.title,p.xLarge,{color:h.bodyText,margin:"0",padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: 320px) and (max-width: 479px)"]={padding:"16px 46px 16px 16px"},n)},a&&{color:h.menuHeader},u&&{fontSize:p.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(o={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:h.buttonText},".ms-Dialog-button:hover":{color:h.buttonTextHovered,borderRadius:f.roundedCorner2}},o["@media (min-width: 320px) and (max-width: 479px)"]={padding:"15px 8px 0 0"},o)}]}}),void 0,{scope:"DialogContent"}),fu=Yo(),hu={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1},mu={type:Dl.normal,className:"",topButtonsProps:[]},gu=function(e){function t(t){var n=e.call(this,t)||this;return n._getSubTextId=function(){var e=n.props,t=e.ariaDescribedById,o=e.modalProps,r=e.dialogContentProps,i=e.subText,a=t||o&&o.subtitleAriaId;return a||(a=(i||r&&r.subText)&&n._defaultSubTextId),a},n._getTitleTextId=function(){var e=n.props,t=e.ariaLabelledById,o=e.modalProps,r=e.dialogContentProps,i=e.title,a=t||o&&o.titleAriaId;return a||(a=(i||r&&r.title)&&n._defaultTitleTextId),a},n._id=Hn("Dialog"),n._defaultTitleTextId=n._id+"-title",n._defaultSubTextId=n._id+"-subText",n}return l(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.className,i=n.containerClassName,a=n.contentClassName,s=n.elementToFocusOnDismiss,l=n.firstFocusableSelector,c=n.forceFocusInsideTrap,d=n.styles,p=n.hidden,f=n.ignoreExternalFocusing,h=n.isBlocking,m=n.isClickableOutsideFocusTrap,g=n.isDarkOverlay,v=n.isOpen,y=n.onDismiss,b=n.onDismissed,_=n.onLayerDidMount,k=n.responsiveMode,x=n.subText,C=n.theme,w=n.title,S=n.topButtonsProps,E=n.type,T=n.minWidth,I=n.maxWidth,P=n.modalProps,M=u({},P?P.layerProps:{onLayerDidMount:_});_&&!M.onLayerDidMount&&(M.onLayerDidMount=_),P&&P.dragOptions&&!P.dragOptions.dragHandleSelector?(e="ms-Dialog-draggable-header",t=u(u({},P.dragOptions),{dragHandleSelector:"."+e})):t=P&&P.dragOptions;var N=u(u(u({},hu),P),{layerProps:M,dragOptions:t}),D=u(u(u({},mu),this.props.dialogContentProps),{draggableHeaderClassName:e}),A=fu(d,{theme:C,className:r||N.className,containerClassName:i||N.containerClassName,hidden:p,dialogDefaultMinWidth:T,dialogDefaultMaxWidth:I});return o.createElement(tu,u({elementToFocusOnDismiss:s,firstFocusableSelector:l,forceFocusInsideTrap:c,ignoreExternalFocusing:f,isClickableOutsideFocusTrap:m,onDismissed:b,responsiveMode:k},N,{isDarkOverlay:void 0!==g?g:N.isDarkOverlay,isBlocking:void 0!==h?h:N.isBlocking,isOpen:void 0!==v?v:!p,className:A.root,containerClassName:A.main,onDismiss:y||N.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),o.createElement(pu,u({titleId:this._defaultTitleTextId,subTextId:this._defaultSubTextId,title:w,subText:x,showCloseButton:void 0!==h?!h:!N.isBlocking,topButtonsProps:S||D.topButtonsProps,type:void 0!==E?E:D.type,onDismiss:y||D.onDismiss,className:a||D.className},D),this.props.children))},t.defaultProps={hidden:!0},t=d([$i],t)}(o.Component),vu={root:"ms-Dialog"},yu=Pn(gu,(function(e){var t,n=e.className,o=e.containerClassName,r=e.dialogDefaultMinWidth,i=void 0===r?"288px":r,a=e.dialogDefaultMaxWidth,s=void 0===a?"340px":a,l=e.hidden,u=e.theme;return{root:[Jt(vu,u).root,u.fonts.medium,n],main:[{width:i,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: 480px)"]={width:"auto",maxWidth:s,minWidth:i},t)},!l&&{display:"flex"},o]}}),void 0,{scope:"Dialog"}),bu=Yo({disableCaching:!0}),_u=Pn(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,r=e.children,i=e.className,a=e.disabled,s=e.styles,l=e.required,c=e.theme,d=bu(s,{className:i,disabled:a,required:l,theme:c});return o.createElement(n,u({},Jn(this.props,Xn),{className:d.root}),r)},t}(o.Component),(function(e){var t,n=e.theme,o=e.className,r=e.disabled,i=e.required,a=n.semanticColors,s=pt.semibold,l=a.bodyText,u=a.disabledBodyText,c=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},r&&{color:u,selectors:(t={},t[Tt]={color:"GrayText"},t)},i&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},o]}}),void 0,{scope:"Label"}),ku=Yo(),xu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._link=o.createRef(),t._onClick=function(e){var n=t.props,o=n.onClick;n.disabled?e.preventDefault():o&&o(e)},t}return l(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.children,i=t.className,a=t.href,s=t.theme,l=t.styles,c=t.keytipProps,d=ku(l,{className:i,isButton:!a,isDisabled:n,theme:s}),p=this._getRootType(this.props);return o.createElement(Ms,{keytipProps:c,ariaDescribedBy:this.props["aria-describedby"],disabled:n},(function(t){return o.createElement(p,u({},t,e._adjustPropsForRootType(p,e.props),{className:d.root,onClick:e._onClick,ref:e._link,"aria-disabled":n}),r)}))},t.prototype.focus=function(){var e=this._link.current;e&&e.focus&&e.focus()},t.prototype._adjustPropsForRootType=function(e,t){t.children,t.as;var n=t.disabled,o=t.target,r=t.href,i=(t.theme,t.getStyles,t.styles,t.componentRef,c(t,["children","as","disabled","target","href","theme","getStyles","styles","componentRef"]));return"string"==typeof e?"a"===e?u({target:o,href:n?void 0:r},i):"button"===e?u({type:"button",disabled:n},i):u(u({},i),{disabled:n}):u({target:o,href:r,disabled:n},i)},t.prototype._getRootType=function(e){return e.as?e.as:e.href?"a":"button"},t}(lo),Cu={root:"ms-Link"},wu=Pn(xu,(function(e){var t,n,o,r=e.className,i=e.isButton,a=e.isDisabled,s=e.theme,l=s.semanticColors,u=l.link,c=l.linkHovered,d=l.disabledText,p=l.focusBorder,f=Jt(Cu,s);return{root:[f.root,s.fonts.medium,{color:u,outline:"none",fontSize:"inherit",fontWeight:"inherit",selectors:(t={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px "+p+" inset",selectors:(n={},n[Tt]={outline:"1px solid WindowText"},n)}},t[Tt]={borderBottom:"none"},t)},i&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(o={},o["@media screen and (-ms-high-contrast: white-on-black)"]={color:"#FFFF00"},o["@media screen and (-ms-high-contrast: black-on-white)"]={color:"#00009F"},o)},!i&&{textDecoration:"none"},a&&["is-disabled",{color:d,cursor:"default"},{selectors:{"&:link, &:visited":{pointerEvents:"none"}}}],!a&&{selectors:{"&:active, &:hover, &:active:hover":{color:c,textDecoration:"underline"},"&:focus":{color:u}}},f.root,r]}}),void 0,{scope:"Link"}),Su=function(e){function t(t){var n=e.call(this,t)||this;return n.parent_on_change=t.on_change,n}return l(t,e),t.prototype.get_value=function(){return null},t}(r.a.Component),Eu=Yo(),Tu=function(e){function t(t){var n=e.call(this,t)||this;return n._toggleButton=o.createRef(),n._onClick=function(e){var t=n.props,o=t.disabled,r=t.checked,i=t.onChange,a=t.onChanged,s=t.onClick,l=n.state.checked;o||(void 0===r&&n.setState({checked:!l}),i&&i(e,!l),a&&a(!l),s&&s(e))},n._warnMutuallyExclusive({checked:"defaultChecked"}),n._warnDeprecations({onAriaLabel:"ariaLabel",offAriaLabel:void 0,onChanged:"onChange"}),n.state={checked:!(!t.checked&&!t.defaultChecked)},n._id=t.id||Hn("Toggle"),n}return l(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.checked?null:{checked:!!e.checked}},Object.defineProperty(t.prototype,"checked",{get:function(){return this.state.checked},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=void 0===n?"div":n,i=t.className,a=t.theme,s=t.disabled,l=t.keytipProps,c=t.label,d=t.ariaLabel,p=t.onAriaLabel,f=t.offAriaLabel,h=t.offText,m=t.onText,g=t.styles,v=t.inlineLabel,y=this.state.checked,b=y?m:h,_=y?p:f,k=Jn(this.props,Zn,["defaultChecked"]),x=Eu(g,{theme:a,className:i,disabled:s,checked:y,inlineLabel:v,onOffMissing:!m&&!h}),C=this._id+"-label",w=this._id+"-stateText",S=void 0;d||_||(c?S=C:b&&(S=w));var E=this.props.role?this.props.role:"switch";return o.createElement(r,{className:x.root,hidden:k.hidden},c&&o.createElement(_u,{htmlFor:this._id,className:x.label,id:C},c),o.createElement("div",{className:x.container},o.createElement(Ms,{keytipProps:l,ariaDescribedBy:k["aria-describedby"],disabled:s},(function(t){return o.createElement("button",u({},k,t,{className:x.pill,disabled:s,id:e._id,type:"button",role:E,ref:e._toggleButton,"aria-disabled":s,"aria-checked":y,"aria-label":d||_,"data-is-focusable":!0,onChange:e._noop,onClick:e._onClick,"aria-labelledby":S}),o.createElement("span",{className:x.thumb}))})),b&&o.createElement(_u,{htmlFor:this._id,className:x.text,id:w},b)))},t.prototype.focus=function(){this._toggleButton.current&&this._toggleButton.current.focus()},t.prototype._noop=function(){},t}(lo),Iu=Pn(Tu,(function(e){var t,n,o,r,i,a,s,l=e.theme,u=e.className,c=e.disabled,d=e.checked,p=e.inlineLabel,f=e.onOffMissing,h=l.semanticColors,m=l.palette,g=h.bodyBackground,v=h.inputBackgroundChecked,y=m.themeDark,b=m.neutralDark,_=h.disabledBodySubtext,k=h.smallInputBorder,x=h.inputForegroundChecked,C=h.disabledBodySubtext,w=h.disabledBackground,S=h.smallInputBorder,E=h.inputBorderHovered,T=h.disabledBodySubtext,I=h.disabledText;return{root:["ms-Toggle",d&&"is-checked",!c&&"is-enabled",c&&"is-disabled",l.fonts.medium,{marginBottom:"8px"},p&&{display:"flex",alignItems:"center"},u],label:["ms-Toggle-label",c&&{color:I,selectors:(t={},t[Tt]={color:"GrayText"},t)},p&&!f&&{marginRight:16},f&&p&&{order:1,marginLeft:16},p&&{wordBreak:"break-all"}],container:["ms-Toggle-innerContainer",{display:"inline-flex",position:"relative"}],pill:["ms-Toggle-background",At(l,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid "+S,background:g,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px"},!c&&[!d&&{selectors:{":hover":[{borderColor:E}],":hover .ms-Toggle-thumb":[{backgroundColor:b,selectors:(n={},n[Tt]={borderColor:"Highlight"},n)}]}},d&&[{background:v,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(o={":hover":[{backgroundColor:y,borderColor:"transparent",selectors:(r={},r[Tt]={backgroundColor:"Highlight"},r)}]},o[Tt]={backgroundColor:"WindowText"},o)}]],c&&[{cursor:"default"},!d&&[{borderColor:T}],d&&[{backgroundColor:_,borderColor:"transparent",justifyContent:"flex-end"}]],!c&&{selectors:{"&:hover":{selectors:(i={},i[Tt]={borderColor:"Highlight"},i)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:k,borderColor:"transparent",borderWidth:".28em",borderStyle:"solid",boxSizing:"border-box"},!c&&d&&[{backgroundColor:x,selectors:(a={},a[Tt]={backgroundColor:"Window",borderColor:"Window"},a)}],c&&[!d&&[{backgroundColor:C}],d&&[{backgroundColor:w}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:pt.regular}}},c&&{selectors:{"&&":{color:I,selectors:(s={},s[Tt]={color:"GrayText"},s)}}}]}}),void 0,{scope:"Toggle"}),Pu=function(e){function t(t){var n=e.call(this,t)||this;return n.toggleref=null,n.toggleref=null,n.state={property_values:t.setting},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting})},t.prototype.get_value=function(){return{value:this.toggleref.checked}},t.prototype.render=function(){var e=this;return r.a.createElement(Iu,{disabled:this.props.disabled,onChange:function(t,n){e.setState((function(e){return{property_values:u({},e.property_values,{value:n})}})),e.parent_on_change()},checked:this.state.property_values.value,label:this.state.property_values.display_name,onText:"On",offText:"Off",componentRef:function(t){e.toggleref=t}})},t}(Su);function Mu(e,t){return void 0!==e[t]&&null!==e[t]}var Nu=Yo(),Du=function(e){function t(t){var n=e.call(this,t)||this;return n._onChange=function(e){var t=n.props.onChange;t&&t(e,n.props)},n._onBlur=function(e){var t=n.props.onBlur;t&&t(e,n.props)},n._onFocus=function(e){var t=n.props.onFocus;t&&t(e,n.props)},n._onRenderField=function(e){var t=e.id,r=e.imageSrc,i=e.imageAlt,a=void 0===i?"":i,s=e.selectedImageSrc,l=e.iconProps,c=e.imageSize?e.imageSize:{width:32,height:32},d=(e.onRenderLabel?rl(e.onRenderLabel,n._onRenderLabel):n._onRenderLabel)(e);return o.createElement("label",{htmlFor:t,className:n._classNames.field},r&&o.createElement("div",{className:n._classNames.innerField},o.createElement("div",{className:n._classNames.imageWrapper},o.createElement(or,{src:r,alt:a,width:c.width,height:c.height})),o.createElement("div",{className:n._classNames.selectedImageWrapper},o.createElement(or,{src:s,alt:a,width:c.width,height:c.height}))),l&&o.createElement("div",{className:n._classNames.innerField},o.createElement("div",{className:n._classNames.iconWrapper},o.createElement(lr,u({},l)))),r||l?o.createElement("div",{className:n._classNames.labelWrapper},d):d)},n._onRenderLabel=function(e){return o.createElement("span",{id:e.labelId,className:"ms-ChoiceFieldLabel"},e.text)},Dr(n),n}return l(t,e),t.prototype.render=function(){var e=this.props,t=e.ariaLabel,n=e.focused,r=e.required,i=e.theme,a=e.iconProps,s=e.imageSrc,l=e.imageSize,d=void 0===l?{width:32,height:32}:l,p=e.disabled,f=e.checked,h=e.id,m=e.styles,g=e.name,v=e.onRenderField,y=void 0===v?this._onRenderField:v,b=c(e,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name","onRenderField"]);this._classNames=Nu(m,{theme:i,hasIcon:!!a,hasImage:!!s,checked:f,disabled:p,imageIsLarge:!!s&&(d.width>71||d.height>71),imageSize:d,focused:n});var _=Jn(b,Zn),k=_.className,x=c(_,["className"]);return o.createElement("div",{className:this._classNames.root},o.createElement("div",{className:this._classNames.choiceFieldWrapper},o.createElement("input",u({"aria-label":t,id:h,className:Mn(this._classNames.input,k),type:"radio",name:g,disabled:p,checked:f,required:r},x,{onChange:this._onChange,onFocus:this._onFocus,onBlur:this._onBlur})),y(this.props,this._onRenderField)))},t}(o.Component),Au={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},Bu="200ms";function Fu(e,t){var n,o;return["is-inFocus",{selectors:(n={},n["."+Mt+" &"]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid "+e,position:"absolute",selectors:(o={},o[Tt]={borderColor:"WindowText",borderWidth:t?1:2},o)}}},n)}]}function Ou(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:Bu,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var Ru=Pn(Du,(function(e){var t,n,o,r,i,a=e.theme,s=e.hasIcon,l=e.hasImage,u=e.checked,c=e.disabled,d=e.imageIsLarge,p=e.focused,f=e.imageSize,h=a.palette,m=a.semanticColors,g=a.fonts,v=Jt(Au,a),y=h.neutralPrimary,b=m.inputBorderHovered,_=m.inputBackgroundChecked,k=h.themeDark,x=m.disabledBodySubtext,C=m.bodyBackground,w=h.neutralSecondary,S=m.inputBackgroundChecked,E=h.themeDark,T=m.disabledBodySubtext,I=h.neutralDark,P=m.focusBorder,M=m.inputBorderHovered,N=m.inputBackgroundChecked,D=h.themeDark,A=h.neutralLighter,B={selectors:{".ms-ChoiceFieldLabel":{color:I},":before":{borderColor:u?k:b},":after":[!s&&!l&&!u&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:w},u&&{borderColor:E}]}},F={borderColor:u?D:M,selectors:{":before":{opacity:1,borderColor:u?k:b}}},O=[{content:'""',display:"inline-block",backgroundColor:C,borderWidth:1,borderStyle:"solid",borderColor:y,width:20,height:20,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:Bu,transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",borderRadius:"50%"},c&&{borderColor:x,selectors:(t={},t[Tt]={color:"GrayText"},t)},u&&{borderColor:c?x:_,selectors:(n={},n[Tt]={borderColor:"Highlight"},n)},(s||l)&&{top:3,right:3,left:"auto",opacity:u?1:0}],R=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:Bu,transitionTimingFunction:"cubic-bezier(.4, 0, .23, 1)",boxSizing:"border-box"},u&&{borderWidth:5,borderStyle:"solid",borderColor:c?T:S,left:5,top:5,width:10,height:10,selectors:(o={},o[Tt]={borderColor:"Highlight"},o)},u&&(s||l)&&{top:8,right:8,left:"auto"}];return{root:[v.root,a.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:m.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!s&&!l&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},l&&"ms-ChoiceField--image",s&&"ms-ChoiceField--icon",(s||l)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:A,height:"100%"}],choiceFieldWrapper:[v.choiceFieldWrapper,p&&Fu(P,s||l)],input:[v.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},c&&"is-disabled"],field:[v.field,u&&v.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!c&&B,":focus":!c&&B,":before":O,":after":R}},s&&"ms-ChoiceField--icon",l&&"ms-ChoiceField-field--image",(s||l)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:Bu,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},u&&{borderColor:N},(s||l)&&!c&&{selectors:{":hover":F,":focus":F}},c&&{cursor:"default",selectors:(r={".ms-ChoiceFieldLabel":{color:m.disabledBodyText}},r[Tt]={color:"GrayText"},r)},u&&c&&{borderColor:A}],innerField:[v.innerField,l&&{height:f.height,width:f.width},(s||l)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(s||l)&&d&&{paddingLeft:24,paddingRight:24},(s||l)&&c&&{opacity:.25,selectors:(i={},i[Tt]={color:"GrayText",opacity:1},i)}],imageWrapper:Ou(!1,v.imageWrapper,u),selectedImageWrapper:Ou(!0,v.imageWrapper,u),iconWrapper:[v.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[v.labelWrapper,g.medium,(s||l)&&{display:"block",position:"relative",margin:"4px 8px",height:30,lineHeight:15,maxWidth:2*f.width,overflow:"hidden",whiteSpace:"pre-wrap",textOverflow:"ellipsis"}]}}),void 0,{scope:"ChoiceGroupOption"}),Lu=Yo(),Hu=function(e){function t(t){var n=e.call(this,t)||this;n._focusCallbacks={},n._changeCallbacks={},n._onBlur=function(e,t){n.setState({keyFocused:void 0})},Dr(n);var o=t.defaultSelectedKey,r=t.options,i=void 0===r?[]:r,a=!Wu(t)&&void 0!==o&&i.some((function(e){return e.key===o}));return n.state={keyChecked:a?o:n._getKeyChecked(t)},n._id=Hn("ChoiceGroup"),n._labelId=Hn("ChoiceGroupLabel"),n}return l(t,e),Object.defineProperty(t.prototype,"checkedOption",{get:function(){var e=this,t=this.props.options;return Cs(void 0===t?[]:t,(function(t){return t.key===e.state.keyChecked}))},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(e!==this.props){var n=this._getKeyChecked(this.props);n!==this._getKeyChecked(e)&&this.setState({keyChecked:n})}},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.theme,i=t.styles,a=t.options,s=void 0===a?[]:a,l=t.label,c=t.required,d=t.disabled,p=t.name,f=this.state,h=f.keyChecked,m=f.keyFocused,g=Jn(this.props,Xn,["onChange","className","required"]),v=Lu(i,{theme:r,className:n,optionsContainIconOrImage:s.some((function(e){return!(!e.iconProps&&!e.imageSrc)}))}),y=this._id+"-label",b=this.props.ariaLabelledBy||(l?y:this.props["aria-labelledby"]);return o.createElement("div",u({className:v.applicationRole},g),o.createElement("div",u({className:v.root,role:"radiogroup"},b&&{"aria-labelledby":b}),l&&o.createElement(_u,{className:v.label,required:c,id:y,disabled:d},l),o.createElement("div",{className:v.flexContainer},s.map((function(t){var n=u(u({},t),{focused:t.key===m,checked:t.key===h,disabled:t.disabled||d,id:e._getOptionId(t),labelId:e._labelId+"-"+t.key,name:p||e._id,required:c});return o.createElement(Ru,u({key:t.key,onBlur:e._onBlur,onFocus:e._onFocus(t.key),onChange:e._onChange(t.key)},n))})))))},t.prototype.focus=function(){var e=this.props.options,t=void 0===e?[]:e,n=this.checkedOption||t.filter((function(e){return!e.disabled}))[0],o=n&&document.getElementById(this._getOptionId(n));o&&o.focus()},t.prototype._onFocus=function(e){var t=this;return this._focusCallbacks[e]||(this._focusCallbacks[e]=function(n,o){t.setState({keyFocused:e})}),this._focusCallbacks[e]},t.prototype._onChange=function(e){var t=this;return this._changeCallbacks[e]||(this._changeCallbacks[e]=function(n,o){var r=t.props,i=r.onChanged,a=r.onChange;Wu(t.props)||t.setState({keyChecked:e});var s=Cs(t.props.options||[],(function(t){return t.key===e}));a?a(n,s):i&&i(s,n)}),this._changeCallbacks[e]},t.prototype._getKeyChecked=function(e){if(void 0!==e.selectedKey)return e.selectedKey;var t=e.options,n=(void 0===t?[]:t).filter((function(e){return e.checked}));return n[0]&&n[0].key},t.prototype._getOptionId=function(e){return this._id+"-"+e.key},t}(o.Component);function Wu(e){return Mu(e,"selectedKey")}var zu={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},Uu=Pn(Hu,(function(e){var t=e.className,n=e.optionsContainIconOrImage,o=e.theme,r=Jt(zu,o);return{applicationRole:t,root:[r.root,o.fonts.medium,{display:"block"}],flexContainer:[r.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}}),void 0,{scope:"ChoiceGroup"}),Ku=function(e){function t(t){var n=e.call(this,t)||this;return n.choiceref=null,n.choiceref=null,n.state={property_values:t.setting},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting}),this.selected=e.setting.value},t.prototype.get_value=function(){return{value:this.selected}},t.prototype.render=function(){var e=this;return r.a.createElement(Uu,{className:"defaultChoiceGroup",defaultSelectedKey:this.state.property_values.value,options:this.state.property_values.options,label:this.state.property_values.display_name,componentRef:function(t){e.choiceref=t},onChange:function(t,n){e.selected=n.key,e.parent_on_change()}})},t}(Su),ju=Yo(),Vu=Pn((function(e){var t=e.styles,n=e.theme,r=e.className,i=e.vertical,a=e.alignContent,s=ju(t,{theme:n,className:r,alignContent:a,vertical:i});return o.createElement("div",{className:s.root},o.createElement("div",{className:s.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},e.children))}),(function(e){var t=e.theme,n=e.alignContent,o=e.vertical,r=e.className,i="start"===n,a="center"===n,s="end"===n;return{root:[t.fonts.medium,{position:"relative"},n&&{textAlign:n},!n&&{textAlign:"center"},o&&(a||!n)&&{verticalAlign:"middle"},o&&i&&{verticalAlign:"top"},o&&s&&{verticalAlign:"bottom"},o&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":{backgroundColor:t.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1}}},!o&&{padding:"4px 0",selectors:{":before":{backgroundColor:t.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"}}},r],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:t.semanticColors.bodyText,background:t.semanticColors.bodyBackground},o&&{padding:"12px 0"}]}}),void 0,{scope:"Separator"}),Gu=function(e){function t(t){var n=e.call(this,t)||this;return n.colorpickerref=null,n.colorpickerref=null,n.state={property_values:t.setting,name:t.action_name},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting,name:e.action_name})},t.prototype.get_value=function(){return{value:this.state.property_values.value}},t.prototype.render=function(){var e=this;return r.a.createElement(wl,null,this.state.property_values.display_name?r.a.createElement(_u,null,this.state.property_values.display_name):null,r.a.createElement(wl,{horizontal:!0,tokens:{childrenGap:5}},this.state.property_values.value?r.a.createElement(ml,{styles:{root:{paddingBottom:"0.5em"}}},this.state.property_values.value):r.a.createElement("span",null),this.state.property_values.help_link_url&&this.state.property_values.help_link_text?r.a.createElement(wu,{styles:{root:{alignSelf:"center",paddingBottom:"0.5em"}},href:this.state.property_values.help_link_url,target:"_blank"},this.state.property_values.help_link_text):r.a.createElement("span",null)),r.a.createElement(Nl,{styles:{root:{alignSelf:"start"}},text:this.state.property_values.button_text,onClick:function(){return e.props.action_callback(e.state.name,e.state.property_values)}}))},t}(Su),qu=function(e){function t(t){var n=e.call(this,t)||this;return n.references={},n.references={},n.download_updates_automatically_reference=null,n.startup_reference=null,n.elevated_reference=null,n.restart_reference=null,n.parent_on_change=t.on_change,n.state={settings_key:t.settings_key,settings:t.settings},n}return l(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!1},t.prototype.componentWillReceiveProps=function(e){this.setState({settings:e.settings})},t.prototype.get_data=function(){var e=this,t={};Object.keys(this.references).forEach((function(n){t[n]=e.references[n].get_value().value}));var n={};return n[this.state.settings_key]={download_updates_automatically:this.download_updates_automatically_reference.get_value().value,startup:this.startup_reference.get_value().value,run_elevated:null!=this.elevated_reference&&this.elevated_reference.get_value().value,theme:this.theme_reference.get_value().value,enabled:t},n},t.prototype.render=function(){var e=this,t=this.state.settings.general.enabled;return r.a.createElement(wl,{tokens:{childrenGap:20}},r.a.createElement(ml,{variant:"xLarge"},"Available PowerToys"),Object.keys(t).map((function(n){var o=t[n];return r.a.createElement(wl,{key:n},r.a.createElement(wl,{horizontal:!0,tokens:{childrenGap:5}},r.a.createElement(_u,null,n),e.state.settings.powertoys&&e.state.settings.powertoys.hasOwnProperty(n)&&e.state.settings.powertoys[n].hasOwnProperty("overview_link")?r.a.createElement(wu,{styles:{root:{alignSelf:"center"}},href:e.state.settings.powertoys[n].overview_link,target:"_blank"},"(Overview)"):null,e.state.settings.powertoys&&e.state.settings.powertoys.hasOwnProperty(n)&&e.state.settings.powertoys[n].hasOwnProperty("video_link")?r.a.createElement(wu,{styles:{root:{alignSelf:"center"}},href:e.state.settings.powertoys[n].video_link,target:"_blank"},"(Video)"):null),e.state.settings.powertoys&&e.state.settings.powertoys.hasOwnProperty(n)&&e.state.settings.powertoys[n].hasOwnProperty("description")?r.a.createElement(ml,{styles:{root:{paddingBottom:"5px"}}},e.state.settings.powertoys[n].description):null,r.a.createElement(Pu,{setting:{value:o},on_change:e.parent_on_change,ref:function(t){e.references[n]=t}}))})),r.a.createElement(Vu,null),r.a.createElement(ml,{variant:"xLarge"},"General"),r.a.createElement(wl,null,r.a.createElement(_u,null,"Download updates automatically"),r.a.createElement(Pu,{setting:{value:this.state.settings.general.download_updates_automatically},on_change:this.parent_on_change,ref:function(t){e.download_updates_automatically_reference=t}})),r.a.createElement(wl,null,null!=this.state.settings.general.startup_disabled_reason&&r.a.createElement("span",{style:{color:"#c50500"},dangerouslySetInnerHTML:{__html:this.state.settings.general.startup_disabled_reason}}),r.a.createElement(_u,null,"Run at Startup"),r.a.createElement(Pu,{disabled:this.state.settings.general.startup_disabled_reason,setting:{value:this.state.settings.general.startup},on_change:this.parent_on_change,ref:function(t){e.startup_reference=t}})),this.state.settings.general.is_elevated&&r.a.createElement(_u,null,"Currently running as administrator"),this.state.settings.general.is_admin&&r.a.createElement(Pu,{setting:{display_name:this.state.settings.general.is_elevated?"Always run as administrator":"Always run as administrator (Restart as administrator to change this)",value:this.state.settings.general.run_elevated},disabled:!this.state.settings.general.is_elevated,on_change:this.parent_on_change,ref:function(t){e.elevated_reference=t}}),this.state.settings.general.is_admin&&!this.state.settings.general.is_elevated&&r.a.createElement(Gu,{setting:{display_name:"",value:"Running as user. Do you wish to run as administrator instead?",button_text:"Restart as administrator",help_link_url:"https://aka.ms/powertoysDetectedElevatedHelp",help_link_text:"(Learn more about Admin mode)"},action_name:"restart_elevation",action_callback:function(e,t){window.output_from_webview(JSON.stringify({action:{general:{action_name:e,value:t}}}))},ref:function(t){e.restart_reference=t}}),r.a.createElement(Ku,{setting:{display_name:"Choose Settings color",value:this.state.settings.general.theme,options:[{key:"system",text:"System default app mode"},{key:"light",text:"Light"},{key:"dark",text:"Dark"}]},on_change:function(){vn("dark"===e.theme_reference.get_value().value||"system"===e.theme_reference.get_value().value&&"dark"===e.state.settings.general.system_theme?{palette:{themePrimary:"#0088e4",themeLighterAlt:"#000509",themeLighter:"#001624",themeLight:"#002944",themeTertiary:"#005288",themeSecondary:"#0078c8",themeDarkAlt:"#1793e6",themeDark:"#38a3ea",themeDarker:"#69baef",neutralLighterAlt:"#0b0b0b",neutralLighter:"#151515",neutralLight:"#252525",neutralQuaternaryAlt:"#2f2f2f",neutralQuaternary:"#373737",neutralTertiaryAlt:"#595959",neutralTertiary:"#eaeaea",neutralSecondary:"#eeeeee",neutralPrimaryAlt:"#f1f1f1",neutralPrimary:"#e0e0e0",neutralDark:"#f8f8f8",black:"#fbfbfb",white:"#000000"}}:{palette:{themePrimary:"#0078d4",themeLighterAlt:"#f3f9fd",themeLighter:"#d0e7f8",themeLight:"#a9d3f2",themeTertiary:"#5ca9e5",themeSecondary:"#1a86d9",themeDarkAlt:"#006cbe",themeDark:"#005ba1",themeDarker:"#004377",neutralLighterAlt:"#f8f8f8",neutralLighter:"#f4f4f4",neutralLight:"#eaeaea",neutralQuaternaryAlt:"#dadada",neutralQuaternary:"#d0d0d0",neutralTertiaryAlt:"#c8c8c8",neutralTertiary:"#bab8b7",neutralSecondary:"#a3a2a0",neutralPrimaryAlt:"#8d8b8a",neutralPrimary:"#323130",neutralDark:"#605e5d",black:"#494847",white:"#ffffff"}}),e.parent_on_change()},ref:function(t){e.theme_reference=t}}),r.a.createElement(wl,null,r.a.createElement(ml,{variant:"xLarge"},"About PowerToys (Preview)"),r.a.createElement(_u,null,"Version ",this.state.settings.general.powertoys_version),r.a.createElement(Nl,{styles:{root:{alignSelf:"start"}},href:"https://github.com/microsoft/PowerToys/releases",target:"_blank"},"Check for updates"),r.a.createElement(wu,{href:"https://github.com/microsoft/PowerToys/issues/new?assignees=&labels=&template=bug_report.md&title=",target:"_blank",styles:{root:{paddingTop:"10px"}}},"Report a bug"),r.a.createElement(wu,{href:"https://github.com/microsoft/PowerToys/issues/new?assignees=&labels=&template=feature_request.md&title=",target:"_blank"},"Request a feature"),r.a.createElement(wu,{href:"https://github.com/microsoft/PowerToys#privacy-statement",target:"_blank"},"Privacy statement")),r.a.createElement("span",null))},t}(r.a.Component);var Zu=Yo(),Qu="",Yu="TextField",Xu=function(e){function t(t){var n=e.call(this,t)||this;n._textElement=o.createRef(),n._onFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({isFocused:!0},(function(){n.props.validateOnFocusIn&&n._validate(n.value)}))},n._onBlur=function(e){n.props.onBlur&&n.props.onBlur(e),n.setState({isFocused:!1},(function(){n.props.validateOnFocusOut&&n._validate(n.value)}))},n._onRenderLabel=function(e){var t=e.label,r=e.required,i=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?o.createElement(_u,{required:r,htmlFor:n._id,styles:i,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?o.createElement("span",{className:n._classNames.description},e.description):null},n._onInputChange=function(e){var t,o=e.target.value;void 0!==o&&o!==n._lastChangeValue&&(n._lastChangeValue=o,e.persist(),n.setState((function(e,r){var i=Ju(r,e)||"";return(t=o===i)?null:n._isControlled?null:{uncontrolledValue:o}}),(function(){var r=n.props.onChange;!t&&r&&r(e,o)})))},Dr(n),n._async=new eo(n),n._fallbackId=Hn(Yu),n._descriptionId=Hn(Yu+"Description"),n._labelId=Hn(Yu+"Label"),n._warnControlledUsage();var r=t.defaultValue,i=void 0===r?Qu:r;return"number"==typeof i&&(i=String(i)),n.state={uncontrolledValue:n._isControlled?void 0:i,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return l(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return Ju(this.props,this.state)},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(e,t,n){var o=this.props,r=(n||{}).selection,i=void 0===r?[null,null]:r,a=i[0],s=i[1];!!e.multiline!=!!o.multiline&&t.isFocused&&(this.focus(),null!==a&&null!==s&&a>=0&&s>=0&&this.setSelectionRange(a,s));var l=Ju(e,t),u=this.value;l!==u&&(this._warnControlledUsage(e),this.state.errorMessage&&!o.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),this._lastChangeValue=void 0,$u(o)&&this._delayedValidate(u))},t.prototype.render=function(){var e=this.props,t=e.borderless,n=e.className,r=e.disabled,i=e.iconProps,a=e.inputClassName,s=e.label,l=e.multiline,c=e.required,d=e.underlined,p=e.prefix,f=e.resizable,h=e.suffix,m=e.theme,g=e.styles,v=e.autoAdjustHeight,y=e.onRenderPrefix,b=void 0===y?this._onRenderPrefix:y,_=e.onRenderSuffix,k=void 0===_?this._onRenderSuffix:_,x=e.onRenderLabel,C=void 0===x?this._onRenderLabel:x,w=e.onRenderDescription,S=void 0===w?this._onRenderDescription:w,E=this.state.isFocused,T=this._errorMessage;return this._classNames=Zu(g,{theme:m,className:n,disabled:r,focused:E,required:c,multiline:l,hasLabel:!!s,hasErrorMessage:!!T,borderless:t,resizable:f,hasIcon:!!i,underlined:d,inputClassName:a,autoAdjustHeight:v}),o.createElement("div",{className:this._classNames.root},o.createElement("div",{className:this._classNames.wrapper},C(this.props,this._onRenderLabel),o.createElement("div",{className:this._classNames.fieldGroup},(void 0!==p||this.props.onRenderPrefix)&&o.createElement("div",{className:this._classNames.prefix},b(this.props,this._onRenderPrefix)),l?this._renderTextArea():this._renderInput(),i&&o.createElement(lr,u({className:this._classNames.icon},i)),(void 0!==h||this.props.onRenderSuffix)&&o.createElement("div",{className:this._classNames.suffix},k(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&o.createElement("span",{id:this._descriptionId},S(this.props,this._onRenderDescription),T&&o.createElement("div",{role:"alert"},o.createElement(Al,null,o.createElement("p",{className:this._classNames.errorMessage},o.createElement("span",{"data-automation-id":"error-message"},T))))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!0,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._warnControlledUsage=function(e){this._id,this.props,null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,ae("Warning: 'value' prop on '"+Yu+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return Mu(this.props,"value")},enumerable:!0,configurable:!0}),t.prototype._onRenderPrefix=function(e){var t=e.prefix;return o.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return o.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!0,configurable:!0}),t.prototype._renderTextArea=function(){var e=Jn(this.props,Qn,["defaultValue"]),t=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return o.createElement("textarea",u({id:this._id},e,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e=Jn(this.props,Zn,["defaultValue"]),t=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return o.createElement("input",u({type:"text",id:this._id,"aria-labelledby":t},e,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":this.props.ariaLabel,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":!!this._errorMessage,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._validate=function(e){var t=this;if(this._latestValidateValue!==e||!$u(this.props)){this._latestValidateValue=e;var n=this.props.onGetErrorMessage,o=n&&n(e||"");if(void 0!==o)if("string"!=typeof o&&"then"in o){var r=++this._lastValidation;o.then((function(n){r===t._lastValidation&&t.setState({errorMessage:n}),t._notifyAfterValidate(e,n)}))}else this.setState({errorMessage:o}),this._notifyAfterValidate(e,o);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var e=this._textElement.current;e.style.height="",e.style.height=e.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(o.Component);function Ju(e,t){var n=e.value,o=void 0===n?t.uncontrolledValue:n;return"number"==typeof o?String(o):o}function $u(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var ec={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function tc(e){var t=e.underlined,n=e.disabled,o=e.focused,r=e.theme,i=r.palette,a=r.fonts;return function(){var e;return{root:[t&&n&&{color:i.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&o&&{selectors:(e={},e[Tt]={height:31},e)}]}}}var nc=Pn(Xu,(function(e){var t,n,o,r,i,a,s,l=e.theme,u=e.className,c=e.disabled,d=e.focused,p=e.required,f=e.multiline,h=e.hasLabel,m=e.borderless,g=e.underlined,v=e.hasIcon,y=e.resizable,b=e.hasErrorMessage,_=e.inputClassName,k=e.autoAdjustHeight,x=l.semanticColors,C=l.effects,w=l.fonts,S=Jt(ec,l),E={background:x.disabledBackground,color:c?x.disabledText:x.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0},T=[w.medium,{color:x.inputPlaceholderText,opacity:1}],I={color:x.disabledText};return{root:[S.root,w.medium,p&&S.required,c&&S.disabled,d&&S.active,f&&S.multiline,m&&S.borderless,g&&S.underlined,_n,{position:"relative"},u],wrapper:[S.wrapper,g&&[{display:"flex",borderBottom:"1px solid "+(b?x.errorText:x.inputBorder),width:"100%"},c&&{borderBottomColor:x.disabledBackground,selectors:(t={},t[Tt]={borderColor:"GrayText"},t)},!c&&{selectors:{":hover":{borderBottomColor:b?x.errorText:x.inputBorderHovered,selectors:(n={},n[Tt]={borderBottomColor:"Highlight"},n)}}},d&&Ft(b?x.errorText:x.inputFocusBorderAlt,C.roundedCorner2,"borderBottom")]],fieldGroup:[S.fieldGroup,_n,{border:"1px solid "+x.inputBorder,borderRadius:C.roundedCorner2,background:x.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},f&&{minHeight:"60px",height:"auto",display:"flex"},!d&&!c&&{selectors:{":hover":{borderColor:x.inputBorderHovered,selectors:(o={},o[Tt]={borderColor:"Highlight"},o)}}},d&&!g&&Ft(b?x.errorText:x.inputFocusBorderAlt,C.roundedCorner2),c&&{borderColor:x.disabledBackground,selectors:(r={},r[Tt]={borderColor:"GrayText"},r),cursor:"default"},m&&{border:"none"},m&&d&&{border:"none",selectors:{":after":{border:"none"}}},g&&{flex:"1 1 0px",border:"none",textAlign:"left"},g&&c&&{backgroundColor:"transparent"},b&&!g&&{borderColor:x.errorText,selectors:{"&:hover":{borderColor:x.errorText}}},!h&&p&&{selectors:(i={":before":{content:"'*'",color:x.errorText,position:"absolute",top:-5,right:-10}},i[Tt]={selectors:{":before":{right:-14}}},i)}],field:[w.medium,S.field,_n,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:x.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:{"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}}},kn(T),f&&!y&&[S.unresizable,{resize:"none"}],f&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},f&&k&&{overflow:"hidden"},v&&{paddingRight:24},f&&v&&{paddingRight:40},c&&[{backgroundColor:x.disabledBackground,color:x.disabledText,borderColor:x.disabledBackground},kn(I)],g&&{textAlign:"left"},d&&!m&&{selectors:(a={},a[Tt]={paddingLeft:11,paddingRight:11},a)},d&&f&&!m&&{selectors:(s={},s[Tt]={paddingTop:4},s)},_],icon:[f&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:ft.medium,lineHeight:18},c&&{color:x.disabledText}],description:[S.description,{color:x.bodySubtext,fontSize:w.xSmall.fontSize}],errorMessage:[S.errorMessage,xn.slideDownIn20,w.small,{color:x.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[S.prefix,E],suffix:[S.suffix,E],subComponentStyles:{label:tc(e)}}}),void 0,{scope:"TextField"}),oc=function(e){function t(t){var n=e.call(this,t)||this;return n.textref=null,n.textref=null,n.state={property_values:t.setting,multiline:!!t.setting.multiline},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting})},t.prototype.get_value=function(){return{value:this.textref.value}},t.prototype.render=function(){var e=this;return r.a.createElement(nc,{styles:{fieldGroup:{width:"350px",alignSelf:"start"}},onChange:function(t,n){e.setState((function(e){return{property_values:u({},e.property_values,{value:n})}})),e.parent_on_change()},multiline:this.state.multiline,value:this.state.property_values.value,label:this.state.property_values.display_name,componentRef:function(t){e.textref=t}})},t}(Su);function rc(e,t,n){void 0===n&&(n=10);var o=Math.pow(n,t);return Math.round(e*o)/o}var ic,ac=qt((function(e){var t,n=e.semanticColors,o=n.disabledText,r=n.disabledBackground;return{backgroundColor:r,borderColor:r,pointerEvents:"none",cursor:"default",color:o,selectors:(t={},t[Tt]={color:"GrayText"},t)}})),sc=qt((function(e,t,n){var o,r,i,a=e.palette,s=e.effects,l=a.neutralSecondary,u=a.neutralPrimary,c=a.neutralPrimary,d=a.neutralLighter,p=a.neutralLight;return j({root:{outline:"none",display:"block",height:"50%",width:23,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:l,selectors:{"&.ms-DownButton":{borderRadius:"0 0 "+s.roundedCorner2+" 0"},"&.ms-UpButton":{borderRadius:"0 "+s.roundedCorner2+" 0 0"}}},rootHovered:{backgroundColor:d,color:u},rootChecked:{backgroundColor:p,color:c,selectors:(o={},o[Tt]={backgroundColor:"Highlight",color:"HighlightText"},o)},rootPressed:{backgroundColor:p,color:c,selectors:(r={},r[Tt]={backgroundColor:"Highlight",color:"HighlightText"},r)},rootDisabled:{opacity:.5,selectors:(i={},i[Tt]={color:"GrayText",opacity:1},i)},icon:{fontSize:8,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},{},n)})),lc=qt((function(e,t){var n,o,r,i=e.palette,a=e.semanticColors,s=e.effects,l=e.fonts,u=a.inputBorder,c=a.inputBorderHovered,d=a.inputFocusBorderAlt,p=a.bodyText,f=i.white,h=i.themePrimary,m=a.disabledText;return j({root:{outline:"none",fontSize:l.medium.fontSize,width:"100%",minWidth:86},labelWrapper:{display:"inline-flex",alignItems:"center"},labelWrapperStart:{height:32,float:"left",marginRight:10},labelWrapperEnd:{height:32,float:"right",marginLeft:10},labelWrapperTop:{marginBottom:-1},labelWrapperBottom:{},icon:{padding:"0 5px",fontSize:ft.large},iconDisabled:{color:m},label:{pointerEvents:"none",lineHeight:ft.large},labelDisabled:{},spinButtonWrapper:{display:"flex",position:"relative",boxSizing:"border-box",height:32,minWidth:86,border:"1px solid "+u,borderRadius:s.roundedCorner2},spinButtonWrapperTopBottom:{width:"100%"},spinButtonWrapperHovered:{borderColor:c,selectors:(n={},n[Tt]={borderColor:"Highlight"},n)},spinButtonWrapperFocused:{selectors:(o={},o[Tt]={borderColor:"Highlight"},o[":after"]={pointerEvents:"none",content:"''",position:"absolute",left:-1,top:-1,bottom:-1,right:-1,border:"2px solid "+d,borderRadius:s.roundedCorner2},o)},spinButtonWrapperDisabled:ac(e),input:{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:l.medium.fontSize,color:p,height:"100%",padding:"0 8px",outline:0,display:"block",minWidth:61,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:s.roundedCorner2+" 0 0 "+s.roundedCorner2},inputTextSelected:{backgroundColor:h,color:f,selectors:(r={},r[Tt]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},r)},inputDisabled:ac(e),arrowButtonsContainer:{display:"block",height:"100%",cursor:"default"},arrowButtonsContainerDisabled:ac(e)},t)})),uc=qt((function(e,t,n,o,r,i){return void 0===r&&(r=Xi.start),void 0===i&&(i=void 0),{root:K(e.root,i),labelWrapper:K(e.labelWrapper,cc(r,e)),icon:K(e.icon,t&&e.iconDisabled),label:K(e.label),spinButtonWrapper:K(e.spinButtonWrapper,dc(r,e),!t&&[{selectors:{":hover":e.spinButtonWrapperHovered}},n&&{selectors:{"&&":e.spinButtonWrapperFocused}}],t&&e.spinButtonWrapperDisabled),input:K("ms-spinButton-input",e.input,!t&&{selectors:{"::selection":e.inputTextSelected}},t&&e.inputDisabled),arrowBox:K(e.arrowButtonsContainer,t&&e.arrowButtonsContainerDisabled)}}));function cc(e,t){switch(e){case Xi.start:return t.labelWrapperStart;case Xi.end:return t.labelWrapperEnd;case Xi.top:return t.labelWrapperTop;case Xi.bottom:return t.labelWrapperBottom}}function dc(e,t){switch(e){case Xi.top:case Xi.bottom:return t.spinButtonWrapperTopBottom;default:return{}}}!function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"}(ic||(ic={}));var pc=function(e){function t(t){var n=e.call(this,t)||this;n._input=o.createRef(),n._initialStepDelay=400,n._stepDelay=75,n._onFocus=function(e){n._input.current&&((n._spinningByMouse||n.state.keyboardSpinDirection!==ic.notSpinning)&&n._stop(),n._input.current.select(),n.setState({isFocused:!0}),n.props.onFocus&&n.props.onFocus(e))},n._onBlur=function(e){n._validate(e),n.setState({isFocused:!1}),n.props.onBlur&&n.props.onBlur(e)},n._onValidate=function(e,t){return n.props.onValidate?n.props.onValidate(e,t):n._defaultOnValidate(e)},n._calculatePrecision=function(e){var t=e.precision;return void 0===t?Math.max(function(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}(e.step),0):t},n._defaultOnValidate=function(e){if(null===e||0===e.trim().length||isNaN(Number(e)))return n._lastValidValue;var t=Math.min(n.props.max,Math.max(n.props.min,Number(e)));return String(t)},n._onIncrement=function(e){return n.props.onIncrement?n.props.onIncrement(e):n._defaultOnIncrement(e)},n._defaultOnIncrement=function(e){var t=n.props,o=t.max,r=t.step,i=Math.min(Number(e)+Number(r),o);return i=rc(i,n._precision),String(i)},n._onDecrement=function(e){return n.props.onDecrement?n.props.onDecrement(e):n._defaultOnDecrement(e)},n._defaultOnDecrement=function(e){var t=n.props,o=t.min,r=t.step,i=Math.max(Number(e)-Number(r),o);return i=rc(i,n._precision),String(i)},n._validate=function(e){if(void 0!==n.state.value&&void 0!==n._valueToValidate&&n._valueToValidate!==n._lastValidValue){var t=n._onValidate(n._valueToValidate,e);t&&(n._lastValidValue=t,n._valueToValidate=void 0,n.setState({value:t}))}},n._onInputChange=function(e){var t=e.target.value;n._valueToValidate=t,n.setState({value:t})},n._updateValue=function(e,t,o){var r=o(n.state.value);r&&(n._lastValidValue=r,n.setState({value:r})),n._spinningByMouse!==e&&(n._spinningByMouse=e),e&&(n._currentStepFunctionHandle=n._async.setTimeout((function(){n._updateValue(e,n._stepDelay,o)}),t))},n._stop=function(){n._currentStepFunctionHandle>=0&&(n._async.clearTimeout(n._currentStepFunctionHandle),n._currentStepFunctionHandle=-1),(n._spinningByMouse||n.state.keyboardSpinDirection!==ic.notSpinning)&&(n._spinningByMouse=!1,n.setState({keyboardSpinDirection:ic.notSpinning}))},n._handleKeyDown=function(e){if(e.which!==Fn.up&&e.which!==Fn.down&&e.which!==Fn.enter||(e.preventDefault(),e.stopPropagation()),n.props.disabled)n._stop();else{var t=ic.notSpinning;switch(e.which){case Fn.up:t=ic.up,n._updateValue(!1,n._initialStepDelay,n._onIncrement);break;case Fn.down:t=ic.down,n._updateValue(!1,n._initialStepDelay,n._onDecrement);break;case Fn.enter:case Fn.tab:n._validate(e);break;case Fn.escape:n.state.value!==n._lastValidValue&&n.setState({value:n._lastValidValue})}n.state.keyboardSpinDirection!==t&&n.setState({keyboardSpinDirection:t})}},n._handleKeyUp=function(e){(n.props.disabled||e.which===Fn.up||e.which===Fn.down)&&n._stop()},n._onIncrementMouseDown=function(){n._updateValue(!0,n._initialStepDelay,n._onIncrement)},n._onDecrementMouseDown=function(){n._updateValue(!0,n._initialStepDelay,n._onDecrement)},Dr(n),ro();var r=t.value||t.defaultValue||String(t.min)||"0";return n._lastValidValue=r,n._precision=n._calculatePrecision(n.props),n.state={isFocused:!1,value:r,keyboardSpinDirection:ic.notSpinning},n._async=new eo(n),n._currentStepFunctionHandle=-1,n._labelId=Hn("Label"),n._inputId=Hn("input"),n._spinningByMouse=!1,n._valueToValidate=void 0,n}return l(t,e),t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this._lastValidValue=this.state.value;var t=void 0!==e.value?e.value:String(e.min);e.defaultValue&&(t=String(Math.max(e.min,Math.min(e.max,Number(e.defaultValue))))),void 0!==e.value&&this.setState({value:t}),this._precision=this._calculatePrecision(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.disabled,r=t.label,i=t.min,a=t.max,s=t.labelPosition,l=t.iconProps,c=t.incrementButtonIcon,d=t.incrementButtonAriaLabel,p=t.decrementButtonIcon,f=t.decrementButtonAriaLabel,h=t.ariaLabel,m=t.ariaDescribedBy,g=t.styles,v=t.upArrowButtonStyles,y=t.downArrowButtonStyles,b=t.theme,_=t.ariaPositionInSet,k=t.ariaSetSize,x=t.ariaValueNow,C=t.ariaValueText,w=t.keytipProps,S=t.className,E=t.inputProps,T=t.iconButtonProps,I=this.state,P=I.isFocused,M=I.value,N=I.keyboardSpinDirection,D=this.props.getClassNames?this.props.getClassNames(b,n,P,N,s,S):uc(lc(b,g),n,P,N,s,S),A=Jn(this.props,Xn,["onBlur","onFocus","className"]);return o.createElement("div",{className:D.root},s!==Xi.bottom&&(l||r)&&o.createElement("div",{className:D.labelWrapper},l&&o.createElement(lr,u({},l,{className:D.icon,"aria-hidden":"true"})),r&&o.createElement(_u,{id:this._labelId,htmlFor:this._inputId,className:D.label,disabled:n},r)),o.createElement(Ms,{keytipProps:w,disabled:n},(function(t){return o.createElement("div",u({},A,{className:D.spinButtonWrapper,"aria-label":h&&h,"aria-posinset":_,"aria-setsize":k,"data-ktp-target":t["data-ktp-target"]}),o.createElement("input",u({value:M,id:e._inputId,onChange:e._onChange,onInput:e._onInputChange,className:D.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":r&&e._labelId,"aria-valuenow":isNaN(Number(x))?isNaN(Number(M))?void 0:Number(M):x,"aria-valuetext":C||(isNaN(Number(M))?M:void 0),"aria-valuemin":i,"aria-valuemax":a,"aria-describedby":po(m,t["aria-describedby"]),onBlur:e._onBlur,ref:e._input,onFocus:e._onFocus,onKeyDown:e._handleKeyDown,onKeyUp:e._handleKeyUp,readOnly:n,"aria-disabled":n,"data-lpignore":!0,"data-ktp-execute-target":t["data-ktp-execute-target"]},E)),o.createElement("span",{className:D.arrowBox},o.createElement(ou,u({styles:sc(b,!0,v),className:"ms-UpButton",checked:N===ic.up,disabled:n,iconProps:c,onMouseDown:e._onIncrementMouseDown,onMouseLeave:e._stop,onMouseUp:e._stop,tabIndex:-1,ariaLabel:d,"data-is-focusable":!1},T)),o.createElement(ou,u({styles:sc(b,!1,y),className:"ms-DownButton",checked:N===ic.down,disabled:n,iconProps:p,onMouseDown:e._onDecrementMouseDown,onMouseLeave:e._stop,onMouseUp:e._stop,tabIndex:-1,ariaLabel:f,"data-is-focusable":!1},T))))})),s===Xi.bottom&&(l||r)&&o.createElement("div",{className:D.labelWrapper},l&&o.createElement(lr,{iconName:l.iconName,className:D.icon,"aria-hidden":"true"}),r&&o.createElement(_u,{id:this._labelId,htmlFor:this._inputId,className:D.label,disabled:n},r)))},t.prototype.focus=function(){this._input.current&&this._input.current.focus()},Object.defineProperty(t.prototype,"value",{get:function(){return void 0===this.props.value?this.state.value:this.props.value},enumerable:!0,configurable:!0}),t.prototype._onChange=function(){},t.defaultProps={step:1,min:0,max:100,disabled:!1,labelPosition:Xi.start,label:"",incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},t=d([es("SpinButton",["theme","styles"],!0)],t)}(o.Component),fc=function(e){function t(t){var n=e.call(this,t)||this;return n.spinbuttonref=null,n.spinbuttonref=null,n.state={property_values:t.setting},n}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({property_values:e.setting})},t.prototype.get_value=function(){return{value:parseInt(this.spinbuttonref.value)}},t.prototype.render=function(){var e=this;return r.a.createElement(pc,{styles:{spinButtonWrapperTopBottom:{maxWidth:"250px",alignSelf:"start"},input:{backgroundColor:"transparent"}},value:this.state.property_values.value,onValidate:function(t){return 0===t.trim().length||isNaN(+t)?t=String(e.state.property_values.value):Number(t)e.spinbuttonref.props.max&&(t=String(e.spinbuttonref.props.max)),e.setState((function(e){return{property_values:u({},e.property_values,{value:parseInt(t)})}})),e.parent_on_change(),t},onIncrement:function(t){return t=Number(t)+e.spinbuttonref.props.step>e.spinbuttonref.props.max?String(e.spinbuttonref.props.max):String(+t+e.spinbuttonref.props.step),e.setState((function(e){return{property_values:u({},e.property_values,{value:parseInt(t)})}})),e.parent_on_change(),t},onDecrement:function(t){return t=Number(t)-e.spinbuttonref.props.stept?t:e}function Tc(e,t,n){return[Ic(e),Ic(t),Ic(n)].join("")}function Ic(e){var t=(e=Ec(e,gc)).toString(16);return 1===t.length?"0"+t:t}function Pc(e,t,n,o,r){return o===vc||"number"!=typeof o?"#"+r:"rgba("+e+", "+t+", "+n+", "+o/vc+")"}function Mc(e){var t=e.a,n=void 0===t?vc:t,o=e.b,r=e.g,i=e.r,a=function(e,t,n){var o=NaN,r=Math.max(e,t,n),i=r-Math.min(e,t,n);return 0===i?o=0:e===r?o=(t-n)/i%6:t===r?o=(n-e)/i+2:n===r&&(o=(e-t)/i+4),(o=Math.round(60*o))<0&&(o+=360),{h:o,s:Math.round(100*(0===r?0:i/r)),v:Math.round(r/gc*100)}}(i,r,o),s=a.h,l=a.s,u=a.v,c=Tc(i,r,o);return{a:n,b:o,g:r,h:s,hex:c,r:i,s:l,str:Pc(i,r,o,n,c),v:u}}function Nc(e){var t=wc(e);if(t)return u(u({},Mc(t)),{str:e})}function Dc(e){return"#"+(t=e.h,Tc((n=Cc(t,hc,mc)).r,n.g,n.b));var t,n}function Ac(e,t,n){var o=Cc(e.h,t,n),r=o.r,i=o.g,a=o.b,s=Tc(r,i,a);return{a:e.a,b:a,g:i,h:e.h,hex:s,r:r,s:t,str:Pc(r,i,a,e.a,s),v:n}}var Bc=Yo(),Fc=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._isAdjustingSaturation=!0,n._descriptionId=Hn("ColorRectangle-description"),n._onKeyDown=function(e){var t=n.state.color,o=t.s,r=t.v,i=e.shiftKey?10:1;switch(e.which){case Fn.up:n._isAdjustingSaturation=!1,r+=i;break;case Fn.down:n._isAdjustingSaturation=!1,r-=i;break;case Fn.left:n._isAdjustingSaturation=!0,o-=i;break;case Fn.right:n._isAdjustingSaturation=!0,o+=i;break;default:return}n._updateColor(e,Ac(t,Ec(o,hc),Ec(r,mc)))},n._onMouseDown=function(e){n._events.on(window,"mousemove",n._onMouseMove,!0),n._events.on(window,"mouseup",n._disableEvents,!0),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=function(e,t,n){var o=n.getBoundingClientRect(),r=(e.clientX-o.left)/o.width,i=(e.clientY-o.top)/o.height;return Ac(t,Ec(Math.round(r*hc),hc),Ec(Math.round(mc-i*mc),mc))}(e,n.state.color,n._root.current);t&&n._updateColor(e,t)}},n._disableEvents=function(){n._events.off()},Dr(n),n._events=new to(n),n.state={color:t.color},n}return l(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&this.props.color&&this.setState({color:this.props.color})},t.prototype.componentWillUnmount=function(){this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.minSize,n=e.theme,r=e.className,i=e.styles,a=e.ariaValueFormat,s=e.ariaLabel,l=e.ariaDescription,u=this.state.color,c=Bc(i,{theme:n,className:r,minSize:t}),d=a.replace("{0}",String(u.s)).replace("{1}",String(u.v));return o.createElement("div",{ref:this._root,tabIndex:0,className:c.root,style:{backgroundColor:Dc(u)},onMouseDown:this._onMouseDown,onKeyDown:this._onKeyDown,role:"slider","aria-valuetext":d,"aria-valuenow":this._isAdjustingSaturation?u.s:u.v,"aria-valuemin":0,"aria-valuemax":mc,"aria-label":s,"aria-describedby":this._descriptionId,"data-is-focusable":!0},o.createElement("div",{className:c.description,id:this._descriptionId},l),o.createElement("div",{className:c.light}),o.createElement("div",{className:c.dark}),o.createElement("div",{className:c.thumb,style:{left:u.s+"%",top:mc-u.v+"%",backgroundColor:u.str}}))},t.prototype._updateColor=function(e,t){var n=this.props.onChange,o=this.state.color;t.s===o.s&&t.v===o.v||(n&&n(e,t),e.defaultPrevented||(this.setState({color:t}),e.preventDefault()))},t.defaultProps={minSize:220,ariaLabel:"Saturation and brightness",ariaValueFormat:"Saturation {0} brightness {1}",ariaDescription:"Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."},t}(o.Component);var Oc=Pn(Fc,(function(e){var t,n=e.className,o=e.theme,r=e.minSize,i=o.palette,a=o.effects;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:8,border:"1px solid "+i.neutralLighter,borderRadius:a.roundedCorner2,minWidth:r,minHeight:r,outline:"none",selectors:(t={},t[Tt]={MsHighContrastAdjust:"none"},t["."+Mt+" &:focus"]={outline:"1px solid "+i.neutralSecondary},t)},n],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+i.neutralSecondaryAlt,borderRadius:"50%",boxShadow:a.elevation8,transform:"translate(-50%, -50%)",selectors:{":before":{position:"absolute",left:0,right:0,top:0,bottom:0,border:"2px solid "+i.white,borderRadius:"50%",boxSizing:"border-box",content:'""'}}}],description:Ot}}),void 0,{scope:"ColorRectangle"}),Rc=Yo(),Lc=function(e){function t(t){var n=e.call(this,t)||this;return n._root=o.createRef(),n._onKeyDown=function(e){var t=n.value,o=n.props,r=o.minValue,i=o.maxValue,a=e.shiftKey?10:1;switch(e.which){case Fn.left:t-=a;break;case Fn.right:t+=a;break;case Fn.home:t=r;break;case Fn.end:t=i;break;default:return}n._updateValue(e,Ec(t,i,r))},n._onMouseDown=function(e){var t=$(n);n._events.on(t,"mousemove",n._onMouseMove,!0),n._events.on(t,"mouseup",n._onMouseUp,!0),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=n.props,o=t.minValue,r=t.maxValue,i=n._root.current.getBoundingClientRect(),a=(e.clientX-i.left)/i.width,s=Ec(Math.round(a*r),r,o);n._updateValue(e,s)}},n._onMouseUp=function(){n._events.off()},Dr(n),n._events=new to(n),n.state={currentValue:t.value||0},n}return l(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.state.currentValue},enumerable:!0,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&void 0!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.componentWillUnmount=function(){this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.isAlpha,n=e.minValue,r=e.maxValue,i=e.overlayStyle,a=e.overlayColor,s=e.theme,l=e.className,u=e.styles,c=this.props.ariaLabel,d=void 0===c?t?"Alpha":"Hue":c,p=this.value,f=Rc(u,{theme:s,className:l,isAlpha:t}),h=100*(p-n)/(r-n);return o.createElement("div",{ref:this._root,className:f.root,tabIndex:0,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,role:"slider","aria-valuenow":p,"aria-valuetext":String(p),"aria-valuemin":n,"aria-valuemax":r,"aria-label":d,"data-is-focusable":!0},!(!i&&!a)&&o.createElement("div",{className:f.sliderOverlay,style:i||{background:"linear-gradient(to right, transparent 0, #"+a+" 100%)"}}),o.createElement("div",{className:f.sliderThumb,style:{left:h+"%"}}))},t.prototype._updateValue=function(e,t){if(t!==this.value){var n=this.props.onChange;n&&n(e,t),e.defaultPrevented||(this.setState({currentValue:t}),e.preventDefault())}},t.defaultProps={minValue:0,maxValue:100,value:0},t}(o.Component),Hc={background:"linear-gradient(to left,red 0,#f09 10%,#cd00ff 20%,#3200ff 30%,#06f 40%,#00fffd 50%,#0f6 60%,#35ff00 70%,#cdff00 80%,#f90 90%,red 100%)"},Wc={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},zc=Pn(Lc,(function(e){var t,n=e.theme,o=e.className,r=e.isAlpha,i=n.palette,a=n.effects;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:8,border:"1px solid "+i.neutralLight,borderRadius:a.roundedCorner2,boxSizing:"border-box",outline:"none",selectors:(t={},t["."+Mt+" &:focus"]={outline:"1px solid "+i.neutralSecondary},t)},r?Wc:Hc,o],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid "+i.neutralSecondaryAlt,borderRadius:"50%",boxShadow:a.elevation8,transform:"translate(-50%, -50%)",top:"50%"}]}}),void 0,{scope:"ColorSlider"});var Uc=Yo(),Kc=["hex","r","g","b","a"];function jc(e){var t=e.color;return"string"==typeof t?Nc(t):t}var Vc=Pn(function(e){function t(n){var o=e.call(this,n)||this;o._onSVChanged=function(e,t){o._updateColor(e,t)},o._onHChanged=function(e,t){o._updateColor(e,function(e,t){var n=Cc(t,e.s,e.v),o=n.r,r=n.g,i=n.b,a=Tc(o,r,i);return{a:e.a,b:i,g:r,h:t,hex:a,r:o,s:e.s,str:Pc(o,r,i,e.a,a),v:e.v}}(o.state.color,t))},o._onAChanged=function(e,t){o._updateColor(e,function(e,t){return u(u({},e),{a:t,str:Pc(e.r,e.g,e.b,t,e.hex)})}(o.state.color,Math.round(t)))},o._onBlur=function(e){var t,n=o.state,r=n.color,i=n.editingColor;if(i){var a,s=i.value,l=i.component,c="hex"===l,d=c?yc:_c;if(s.length>=d&&(c||!isNaN(Number(s)))){var p=void 0;p=c?Nc("#"+(!(a=s)||a.length=bc?a.substring(0,bc):a.substring(0,yc))):Mc(function(e){return{r:Ec(e.r,gc),g:Ec(e.g,gc),b:Ec(e.b,gc),a:"number"==typeof e.a?Ec(e.a,vc):e.a}}(u(u({},r),((t={})[l]=Number(s),t)))),o._updateColor(e,p)}else o.setState({editingColor:void 0})}},Dr(o),o.state={color:jc(n)||Nc("#ffffff")},o._textChangeHandlers={};for(var r=0,i=Kc;rthis._displayOnlyOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index "+e+" is not a selectable element.");return e-t+1}},e}();!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(nd||(nd={}));var rd,id=Yo();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(rd||(rd={}));var ad,sd,ld,ud,cd,dd=function(e){function t(t){var n=e.call(this,t)||this;n._panel=o.createRef(),n._animationCallback=null,n.dismiss=function(e){n.props.onDismiss&&n.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&n.close()},n._allowScrollOnPanel=function(e){e?n._allowTouchBodyScroll?qr(e,n._events):Gr(e,n._events):n._events.off(n._scrollableContent),n._scrollableContent=e},n._onRenderNavigation=function(e){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var t=n.props.onRenderNavigationContent,r=void 0===t?n._onRenderNavigationContent:t;return o.createElement("div",{className:n._classNames.navigation},r(e,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(e){var t=e.closeButtonAriaLabel,r=e.hasCloseButton,i=gn();return r?o.createElement(ou,{styles:{root:{height:"auto",width:"44px",color:i.palette.neutralSecondary,fontSize:ft.large},rootHovered:{color:i.palette.neutralPrimary}},className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:t,title:t,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}):null},n._onRenderHeader=function(e,t,r){var i=e.headerText;return i?o.createElement("div",{className:n._classNames.header},o.createElement("p",{className:n._classNames.headerText,id:r,role:"heading","aria-level":2},i)):null},n._onRenderBody=function(e){return o.createElement("div",{className:n._classNames.content},e.children)},n._onRenderFooter=function(e){var t=n.props.onRenderFooterContent,r=void 0===t?null:t;return r?o.createElement("div",{className:n._classNames.footer},o.createElement("div",{className:n._classNames.footerInner},r())):null},n._animateTo=function(e){n._animationCallback=n._async.setTimeout((function(){n.setState({visibility:e}),n._onTransitionComplete()}),200)},n._clearExistingAnimationTimer=function(){null!==n._animationCallback&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(e){n.dismiss(e)},n._onTransitionComplete=function(){n._updateFooterPosition(),n.state.visibility===rd.open&&n.props.onOpened&&n.props.onOpened(),n.state.visibility===rd.closed&&n.props.onDismissed&&n.props.onDismissed()};var r=n.props.allowTouchBodyScroll,i=void 0!==r&&r;return n._allowTouchBodyScroll=i,n._warnDeprecations({ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),n.state={isFooterSticky:!1,visibility:rd.closed,id:Hn("Panel")},n}return l(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==rd.closed&&t.visibility!==rd.animatingClosed?e.isOpen||t.visibility!==rd.open&&t.visibility!==rd.animatingOpen?null:{visibility:rd.animatingClosed}:{visibility:rd.animatingOpen}},t.prototype.componentDidMount=function(){this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:rd.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),o=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===rd.animatingOpen?this._animateTo(rd.open):this.state.visibility===rd.animatingClosed&&this._animateTo(rd.closed)),n&&!o?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!n&&o&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.render=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.elementToFocusOnDismiss,i=e.firstFocusableSelector,a=e.focusTrapZoneProps,s=e.forceFocusInsideTrap,l=e.hasCloseButton,c=e.headerText,d=e.headerClassName,p=void 0===d?"":d,f=e.ignoreExternalFocusing,h=e.isBlocking,m=e.isFooterAtBottom,g=e.isLightDismiss,v=e.isHiddenOnDismiss,y=e.layerProps,b=e.overlayProps,_=e.type,k=e.styles,x=e.theme,C=e.customWidth,w=e.onLightDismissClick,S=void 0===w?this._onPanelClick:w,E=e.onRenderNavigation,T=void 0===E?this._onRenderNavigation:E,I=e.onRenderHeader,P=void 0===I?this._onRenderHeader:I,M=e.onRenderBody,N=void 0===M?this._onRenderBody:M,D=e.onRenderFooter,A=void 0===D?this._onRenderFooter:D,B=this.state,F=B.isFooterSticky,O=B.visibility,R=B.id,L=_===nd.smallFixedNear||_===nd.customNear,H=Uo(x)?L:!L,W=c&&R+"-headerText",z=_===nd.custom||_===nd.customNear?{width:C}:{},U=Jn(this.props,Xn),K=this.isActive,j=O===rd.animatingClosed||O===rd.animatingOpen;if(!K&&!j&&!v)return null;this._classNames=id(k,{theme:x,className:n,focusTrapZoneClassName:a?a.className:void 0,hasCloseButton:l,headerClassName:p,isAnimating:j,isFooterSticky:F,isFooterAtBottom:m,isOnRightSide:H,isOpen:K,isHiddenOnDismiss:v,type:_});var V,G=this._classNames,q=this._allowTouchBodyScroll;h&&K&&(V=o.createElement(Ql,u({className:G.overlay,isDarkThemed:!1,onClick:g?S:void 0,allowTouchBodyScroll:q},b)));var Z=P(this.props,this._onRenderHeader,W);return o.createElement(ls,u({},y),o.createElement(Fa,{role:"dialog","aria-modal":"true",ariaLabelledBy:Z?W:void 0,onDismiss:this.dismiss,className:G.hiddenPanel},o.createElement("div",u({"aria-hidden":!K&&j},U,{ref:this._panel,className:G.root}),V,o.createElement(Kl,u({ignoreExternalFocusing:f,forceFocusInsideTrap:!(!h||v&&!K)&&s,firstFocusableSelector:i,isClickableOutsideFocusTrap:!0},a,{className:G.main,style:z,elementToFocusOnDismiss:r}),o.createElement("div",{className:G.commands,"data-is-visible":!0},T(this.props,this._onRenderNavigation)),o.createElement("div",{className:G.contentInner},Z,o.createElement("div",{ref:this._allowScrollOnPanel,className:G.scrollableContent,"data-is-scrollable":!0},N(this.props,this._onRenderBody)),A(this.props,this._onRenderFooter))))))},t.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||(this.props.onOpen&&this.props.onOpen(),this.setState({visibility:rd.animatingOpen})))},t.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:rd.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===rd.open||this.state.visibility===rd.animatingOpen},enumerable:!0,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t0&&s();var o=r._id+e.key;i.items.push(n(u(u({id:o},e),{index:t}),r._onRenderItem)),i.id=o;break;case Zc.Divider:t>0&&i.items.push(n(u(u({},e),{index:t}),r._onRenderItem)),i.items.length>0&&s();break;default:i.items.push(n(u(u({},e),{index:t}),r._onRenderItem))}}(e,t)})),i.items.length>0&&s(),o.createElement(o.Fragment,null,a)},r._onRenderItem=function(e){switch(e.itemType){case Zc.Divider:return r._renderSeparator(e);case Zc.Header:return r._renderHeader(e);default:return r._renderOption(e)}},r._renderOption=function(e){var t=r.props.onRenderOption,n=void 0===t?r._onRenderOption:t,i=r.state.selectedIndices,a=void 0===i?[]:i,s=!(void 0===e.index||!a)&&a.indexOf(e.index)>-1,l=e.hidden?r._classNames.dropdownItemHidden:s&&!0===e.disabled?r._classNames.dropdownItemSelectedAndDisabled:s?r._classNames.dropdownItemSelected:!0===e.disabled?r._classNames.dropdownItemDisabled:r._classNames.dropdownItem,u=e.title,c=void 0===u?e.text:u,d=r._classNames.subComponentStyles?r._classNames.subComponentStyles.multiSelectItem:void 0;return r.props.multiSelect?o.createElement(ed,{id:r._listId+e.index,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,onChange:r._onItemClick(e),inputProps:{onMouseEnter:r._onItemMouseEnter.bind(r,e),onMouseLeave:r._onMouseItemLeave.bind(r,e),onMouseMove:r._onItemMouseMove.bind(r,e)},label:e.text,title:c,onRenderLabel:r._onRenderItemLabel.bind(r,e),className:l,role:"option","aria-selected":s?"true":"false",checked:s,styles:d,ariaPositionInSet:r._sizePosCache.positionInSet(e.index),ariaSetSize:r._sizePosCache.optionSetSize}):o.createElement(td,{id:r._listId+e.index,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:l,onClick:r._onItemClick(e),onMouseEnter:r._onItemMouseEnter.bind(r,e),onMouseLeave:r._onMouseItemLeave.bind(r,e),onMouseMove:r._onItemMouseMove.bind(r,e),role:"option","aria-selected":s?"true":"false",ariaLabel:e.ariaLabel,title:c,"aria-posinset":r._sizePosCache.positionInSet(e.index),"aria-setsize":r._sizePosCache.optionSetSize},n(e,r._onRenderOption))},r._onRenderOption=function(e){return o.createElement("span",{className:r._classNames.dropdownOptionText},e.text)},r._onRenderItemLabel=function(e){var t=r.props.onRenderOption;return(void 0===t?r._onRenderOption:t)(e,r._onRenderOption)},r._onPositioned=function(e){r._focusZone.current&&r._requestAnimationFrame((function(){var e=r.state.selectedIndices;if(r._focusZone.current)if(e&&e[0]&&!r.props.options[e[0]].disabled){var t=yt().querySelector("#"+r._id+"-list"+e[0]);r._focusZone.current.focusElement(t)}else r._focusZone.current.focus()})),r.state.calloutRenderEdge&&r.state.calloutRenderEdge===e.targetEdge||r.setState({calloutRenderEdge:e.targetEdge})},r._onItemClick=function(e){return function(t){e.disabled||(r.setSelectedIndex(t,e.index),r.props.multiSelect||r.setState({isOpen:!1}))}},r._onScroll=function(){r._isScrollIdle||void 0===r._scrollIdleTimeoutId?r._isScrollIdle=!1:(clearTimeout(r._scrollIdleTimeoutId),r._scrollIdleTimeoutId=void 0),r._scrollIdleTimeoutId=setTimeout((function(){r._isScrollIdle=!0}),r._scrollIdleDelay)},r._onMouseItemLeave=function(e,t){if(!r._shouldIgnoreMouseEvent()&&r._host.current)if(r._host.current.setActive)try{r._host.current.setActive()}catch(e){}else r._host.current.focus()},r._onDismiss=function(){r.setState({isOpen:!1}),r._dropDown.current&&r._dropDown.current.focus()},r._onDropdownBlur=function(e){r._isDisabled()||(r.setState({hasFocus:!1}),r.state.isOpen||r.props.onBlur&&r.props.onBlur(e))},r._onDropdownKeyDown=function(e){if(!r._isDisabled()&&(r._lastKeyDownWasAltOrMeta=r._isAltOrMeta(e),!r.props.onKeyDown||(r.props.onKeyDown(e),!e.defaultPrevented))){var t,n=r.state.selectedIndices.length?r.state.selectedIndices[0]:-1,o=e.altKey||e.metaKey,i=r.state.isOpen;switch(e.which){case Fn.enter:r.setState({isOpen:!i});break;case Fn.escape:if(!i)return;r.setState({isOpen:!1});break;case Fn.up:if(o){if(i){r.setState({isOpen:!1});break}return}r.props.multiSelect?r.setState({isOpen:!0}):r._isDisabled()||(t=r._moveIndex(e,-1,n-1,n));break;case Fn.down:o&&(e.stopPropagation(),e.preventDefault()),o&&!i||r.props.multiSelect?r.setState({isOpen:!0}):r._isDisabled()||(t=r._moveIndex(e,1,n+1,n));break;case Fn.home:r.props.multiSelect||(t=r._moveIndex(e,1,0,n));break;case Fn.end:r.props.multiSelect||(t=r._moveIndex(e,-1,r.props.options.length-1,n));break;case Fn.space:break;default:return}t!==n&&(e.stopPropagation(),e.preventDefault())}},r._onDropdownKeyUp=function(e){if(!r._isDisabled()){var t=r._shouldHandleKeyUp(e),n=r.state.isOpen;if(!r.props.onKeyUp||(r.props.onKeyUp(e),!e.defaultPrevented)){switch(e.which){case Fn.space:r.setState({isOpen:!n});break;default:return void(t&&n&&r.setState({isOpen:!1}))}e.stopPropagation(),e.preventDefault()}}},r._onZoneKeyDown=function(e){var t;r._lastKeyDownWasAltOrMeta=r._isAltOrMeta(e);var n=e.altKey||e.metaKey;switch(e.which){case Fn.up:n?r.setState({isOpen:!1}):r._host.current&&(t=br(r._host.current,r._host.current.lastChild,!0));break;case Fn.home:case Fn.end:case Fn.pageUp:case Fn.pageDown:break;case Fn.down:!n&&r._host.current&&(t=yr(r._host.current,r._host.current.firstChild,!0));break;case Fn.escape:r.setState({isOpen:!1});break;case Fn.tab:return void r.setState({isOpen:!1});default:return}t&&t.focus(),e.stopPropagation(),e.preventDefault()},r._onZoneKeyUp=function(e){r._shouldHandleKeyUp(e)&&r.state.isOpen&&(r.setState({isOpen:!1}),e.preventDefault())},r._onDropdownClick=function(e){if(!r.props.onClick||(r.props.onClick(e),!e.defaultPrevented)){var t=r.state.isOpen;r._isDisabled()||r._shouldOpenOnFocus()||r.setState({isOpen:!t}),r._isFocusedByClick=!1}},r._onDropdownMouseDown=function(){r._isFocusedByClick=!0},r._onFocus=function(e){var t=r.state,n=t.isOpen,o=t.selectedIndices,i=r.props.multiSelect;if(!r._isDisabled()){r._isFocusedByClick||n||0!==o.length||i||r._moveIndex(e,1,0,-1),r.props.onFocus&&r.props.onFocus(e);var a={hasFocus:!0};r._shouldOpenOnFocus()&&(a.isOpen=!0),r.setState(a)}},r._isDisabled=function(){var e=r.props.disabled,t=r.props.isDisabled;return void 0!==t&&(e=t),e},r._onRenderLabel=function(e){var t=e.label,n=e.required,i=e.disabled,a=r._classNames.subComponentStyles?r._classNames.subComponentStyles.label:void 0;return t?o.createElement(_u,{className:r._classNames.label,id:r._labelId,required:n,styles:a,disabled:i},t):null},Dr(r),r._id=t.id||Hn("Dropdown"),r._labelId=r._id+"-label",r._listId=r._id+"-list",r._optionId=r._id+"-option",r._isScrollIdle=!0,r.props.multiSelect){var i=void 0!==t.defaultSelectedKeys?t.defaultSelectedKeys:t.selectedKeys;n=r._getSelectedIndexes(t.options,i)}else{var a=void 0!==t.defaultSelectedKey?t.defaultSelectedKey:t.selectedKey;n=r._getSelectedIndexes(t.options,a)}return r._sizePosCache.updateOptions(t.options),r.state={isOpen:!1,selectedIndices:n,hasFocus:!1,calloutRenderEdge:void 0},r}return l(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return Dd(this.props.options,this.state.selectedIndices)},enumerable:!0,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t,n=e.options!==this.props.options;void 0===e[t=e.multiSelect?n&&void 0!==e.defaultSelectedKeys?"defaultSelectedKeys":"selectedKeys":n&&void 0!==e.defaultSelectedKey?"defaultSelectedKey":"selectedKey"]||e[t]===this.props[t]&&!n||this.setState({selectedIndices:this._getSelectedIndexes(e.options,e[t])}),e.options!==this.props.options&&this._sizePosCache.updateOptions(e.options)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._dropDown.current&&this._dropDown.current.focus(),this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this,t=this._id,n=this.props,r=n.className,i=n.label,a=n.options,s=n.ariaLabel,l=n.required,c=n.errorMessage,d=n.keytipProps,p=n.styles,f=n.theme,h=n.panelProps,m=n.calloutProps,g=n.multiSelect,v=n.onRenderTitle,y=void 0===v?this._onRenderTitle:v,b=n.onRenderContainer,_=void 0===b?this._onRenderContainer:b,k=n.onRenderCaretDown,x=void 0===k?this._onRenderCaretDown:k,C=n.onRenderLabel,w=void 0===C?this._onRenderLabel:C,S=this.state,E=S.isOpen,T=S.selectedIndices,I=S.calloutRenderEdge,P=n.onRenderPlaceholder||n.onRenderPlaceHolder||this._onRenderPlaceholder,M=Dd(a,T),N=Jn(n,Xn),D=this._isDisabled(),A=t+"-errorMessage",B=D?void 0:E&&1===T.length&&T[0]>=0?this._listId+T[0]:void 0,F=g?{role:"button"}:{role:"listbox",childRole:"option",ariaSetSize:this._sizePosCache.optionSetSize,ariaPosInSet:this._sizePosCache.positionInSet(T[0]),ariaSelected:void 0!==T[0]||void 0};this._classNames=Od(p,{theme:f,className:r,hasError:!!(c&&c.length>0),hasLabel:!!i,isOpen:E,required:l,disabled:D,isRenderingPlaceholder:!M.length,panelClassName:h?h.className:void 0,calloutClassName:m?m.className:void 0,calloutRenderEdge:I});var O=!!c&&c.length>0;return o.createElement("div",{className:this._classNames.root},w(this.props,this._onRenderLabel),o.createElement(Ms,{keytipProps:d,disabled:D},(function(r){return o.createElement("div",u({},r,{"data-is-focusable":!D,ref:e._dropDown,id:t,tabIndex:D?-1:0,role:F.role,"aria-haspopup":"listbox","aria-expanded":E?"true":"false","aria-label":s,"aria-labelledby":i&&!s?po(e._labelId,e._optionId):void 0,"aria-describedby":po(r["aria-describedby"],O?e._id+"-errorMessage":void 0),"aria-activedescendant":B,"aria-required":l,"aria-disabled":D,"aria-owns":E?e._listId:void 0},N,{className:e._classNames.dropdown,onBlur:e._onDropdownBlur,onKeyDown:e._onDropdownKeyDown,onKeyUp:e._onDropdownKeyUp,onClick:e._onDropdownClick,onMouseDown:e._onDropdownMouseDown,onFocus:e._onFocus}),o.createElement("span",{id:e._optionId,className:e._classNames.title,"aria-live":"polite","aria-atomic":!0,"aria-invalid":O,role:F.childRole,"aria-setsize":F.ariaSetSize,"aria-posinset":F.ariaPosInSet,"aria-selected":F.ariaSelected},M.length?y(M,e._onRenderTitle):P(n,e._onRenderPlaceholder)),o.createElement("span",{className:e._classNames.caretDownWrapper},x(n,e._onRenderCaretDown)))})),E&&_(u(u({},n),{onDismiss:this._onDismiss}),this._onRenderContainer),O&&o.createElement("div",{role:"alert",id:A,className:this._classNames.errorMessage},c))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var n=this,o=this.props,r=o.options,i=o.selectedKey,a=o.selectedKeys,s=o.multiSelect,l=o.notifyOnReselect,u=this.state.selectedIndices,c=void 0===u?[]:u,d=!!c&&c.indexOf(t)>-1,p=[];if(t=Math.max(0,Math.min(r.length-1,t)),void 0===i&&void 0===a){if(s||l||t!==c[0]){if(s)if(p=c?this._copyArray(c):[],d){var f=p.indexOf(t);f>-1&&p.splice(f,1)}else p.push(t);else p=[t];e.persist(),this.setState({selectedIndices:p},(function(){n._onChange(e,r,t,d,s)}))}}else this._onChange(e,r,t,d,s)},Object.defineProperty(t.prototype,"_placeholder",{get:function(){return this.props.placeholder||this.props.placeHolder},enumerable:!0,configurable:!0}),t.prototype._copyArray=function(e){for(var t=[],n=0,o=e;n=r.length&&(n=r.length-1);for(var i=0;r[n].itemType===Zc.Header||r[n].itemType===Zc.Divider||r[n].disabled;){if(i>=r.length)return o;n+t<0?n=r.length:n+t>=r.length&&(n=-1),n+=t,i++}return this.setSelectedIndex(e,n),n},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,r=e.label,i=e.ariaLabel,a=e.multiSelect;return o.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},o.createElement(Li,{ref:this._focusZone,direction:dr.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":i,"aria-labelledby":r&&!i?this._labelId:void 0,"aria-multiselectable":a},n(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key;return t>0?o.createElement("div",{role:"separator",key:n,className:this._classNames.dropdownDivider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,r=e.key,i=e.id;return o.createElement("div",{id:i,key:r,className:this._classNames.dropdownItemHeader},n(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},t.prototype._onItemMouseMove=function(e,t){var n=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==n&&n.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._getSelectedIndexes=function(e,t){if(void 0===t)return this.props.multiSelect?this._getAllSelectedIndices(e):-1!==(i=this._getSelectedIndex(e,null))?[i]:[];if(!Array.isArray(t))return-1!==(i=this._getSelectedIndex(e,t))?[i]:[];for(var n=[],o=0,r=t;o svg":{paddingTop:"2px"},"&:hover i.ms-Button-icon":{color:i.palette.neutralPrimary},"&:active i.ms-Button-icon":{color:i.palette.neutralPrimary}}}},groups:[{links:[{name:"General Settings",key:"general",url:"",icon:"Settings"}].concat(n)}]})),r.a.createElement("div",{className:"editorzone",style:{backgroundColor:i.palette.white,color:i.palette.black}},r.a.createElement("div",{className:"editorhead"},r.a.createElement("div",{className:"editortitle"},r.a.createElement(ml,{variant:"xxLarge",styles:{root:{display:"block",whiteSpace:"no-wrap",overflow:"hidden",textOverflow:"ellipsis"}}},"general"!=this.state.selected_menu?t[this.state.selected_menu].name+" Settings":"PowerToys General Settings")),r.a.createElement("div",{className:"editorheadbuttons"},r.a.createElement(wl,{horizontal:!0,tokens:{childrenGap:16}},r.a.createElement(Nl,{styles:{root:{minWidth:"100px"}},disabled:!this.state.data_changed||this.state.saving,text:this.state.saving?"Saving":"Save",onClick:this.save_clicked},this.state.saving?r.a.createElement(Ll,{size:Tl.small}):r.a.createElement("span",null))))),r.a.createElement("div",{className:"editorbody"},r.a.createElement(Ul,{styles:{contentContainer:{paddingTop:"16px",paddingLeft:"16px",paddingRight:"16px"}}},"general"===e.state.selected_menu&&e.state.settings.hasOwnProperty("general")?r.a.createElement(qu,{key:"general",settings_key:"general",settings:e.state.settings,on_change:e.on_setting_change,ref:function(t){e.settings_screen_ref=t}}):e.state.settings.hasOwnProperty("powertoys")&&e.state.selected_menu in e.state.settings.powertoys?r.a.createElement(Vd,{key:e.state.selected_menu,settings_key:e.state.selected_menu,powertoy:e.state.settings.powertoys[e.state.selected_menu],on_change:e.on_setting_change,ref:function(t){e.settings_screen_ref=t}}):void 0))),r.a.createElement(yu,{hidden:!this.state.show_save_discard_dialog,onDismiss:this.close_save_discard_dialog,dialogContentProps:{type:Dl.normal,title:"Changes not saved",subText:this.state.user_trying_to_exit?"Would you like to save your changes or exit the settings?":"Would you like to save or discard your changes?"},modalProps:{isBlocking:!0,styles:{main:{maxWidth:450}}}},r.a.createElement(su,{styles:{actionsRight:{textAlign:"center"}}},r.a.createElement(Nl,{onClick:this.save_save_discard_dialog,text:"Save"}),r.a.createElement(Nl,{onClick:this.discard_save_discard_dialog,text:this.state.user_trying_to_exit?"Exit":"Discard"}),r.a.createElement(Ml,{onClick:this.close_save_discard_dialog,text:"Cancel"}))))},t}(r.a.Component);window.start_with_dark_theme&&vn({palette:{themePrimary:"#0088e4",themeLighterAlt:"#000509",themeLighter:"#001624",themeLight:"#002944",themeTertiary:"#005288",themeSecondary:"#0078c8",themeDarkAlt:"#1793e6",themeDark:"#38a3ea",themeDarker:"#69baef",neutralLighterAlt:"#0b0b0b",neutralLighter:"#151515",neutralLight:"#252525",neutralQuaternaryAlt:"#2f2f2f",neutralQuaternary:"#373737",neutralTertiaryAlt:"#595959",neutralTertiary:"#eaeaea",neutralSecondary:"#eeeeee",neutralPrimaryAlt:"#f1f1f1",neutralPrimary:"#e0e0e0",neutralDark:"#f8f8f8",black:"#fbfbfb",white:"#000000"}}),K({selectors:{":global(body), :global(html), :global(#app)":{margin:0,padding:0,height:"100vh"}}});var gp=document.getElementById("app");gp&&gp.hasChildNodes()?a.a.hydrate(r.a.createElement(mp,{ref:function(e){window.react_app_component=e}}),gp):a.a.render(r.a.createElement(mp,{ref:function(e){window.react_app_component=e}}),gp)}]); \ No newline at end of file