@ui5/webcomponents-base 0.0.0-323968e1b → 0.0.0-4180fe799
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +4 -0
- package/CHANGELOG.md +196 -0
- package/README.md +26 -2
- package/bundle.esm.js +18 -12
- package/dist/AssetRegistry.js +8 -6
- package/dist/Boot.js +43 -0
- package/dist/CSP.js +59 -0
- package/dist/CustomElementsRegistry.js +39 -0
- package/dist/CustomElementsScope.js +108 -0
- package/dist/DOMObserver.js +65 -0
- package/dist/Device.js +62 -778
- package/dist/EventProvider.js +38 -26
- package/dist/FontFace.js +20 -56
- package/dist/InitialConfiguration.js +64 -17
- package/dist/Keys.js +248 -0
- package/dist/ManagedStyles.js +83 -0
- package/dist/MediaRange.js +109 -0
- package/dist/PropertiesFileFormat.js +95 -0
- package/dist/Render.js +175 -0
- package/dist/RenderQueue.js +41 -17
- package/dist/RenderScheduler.js +24 -145
- package/dist/StaticArea.js +1 -39
- package/dist/StaticAreaItem.js +65 -40
- package/dist/SystemCSSVars.js +10 -0
- package/dist/Theming.js +3 -44
- package/dist/UI5Element.js +483 -307
- package/dist/UI5ElementMetadata.js +190 -19
- package/dist/asset-registries/Icons.js +129 -14
- package/dist/asset-registries/Illustrations.js +30 -0
- package/dist/asset-registries/LocaleData.js +108 -50
- package/dist/asset-registries/Themes.js +35 -32
- package/dist/asset-registries/i18n.js +80 -34
- package/dist/assets-meta/IconCollectionsAlias.js +18 -0
- package/dist/config/AnimationMode.js +16 -2
- package/dist/config/CalendarType.js +7 -7
- package/dist/config/FormatSettings.js +5 -1
- package/dist/config/Language.js +62 -3
- package/dist/config/NoConflict.js +10 -3
- package/dist/config/Theme.js +21 -3
- package/dist/css/FontFace.css +45 -0
- package/dist/css/OverrideFontFace.css +32 -0
- package/dist/css/SystemCSSVars.css +17 -0
- package/dist/delegate/ItemNavigation.js +245 -172
- package/dist/delegate/ResizeHandler.js +78 -38
- package/dist/delegate/ScrollEnablement.js +122 -14
- package/dist/features/OpenUI5Support.js +125 -0
- package/dist/generated/AssetParameters.js +13 -0
- package/dist/generated/css/FontFace.css.js +5 -0
- package/dist/generated/css/OverrideFontFace.css.js +5 -0
- package/dist/generated/css/SystemCSSVars.css.js +5 -0
- package/dist/getSharedResource.js +30 -0
- package/dist/i18nBundle.js +62 -11
- package/dist/isLegacyBrowser.js +3 -0
- package/dist/{Locale.js → locale/Locale.js} +0 -10
- package/dist/locale/RTLAwareRegistry.js +14 -0
- package/dist/locale/applyDirection.js +17 -0
- package/dist/locale/directionChange.js +32 -0
- package/dist/locale/getEffectiveDir.js +28 -0
- package/dist/locale/getLocale.js +41 -0
- package/dist/locale/languageChange.js +22 -0
- package/dist/locale/nextFallbackLocale.js +28 -0
- package/{src/util → dist/locale}/normalizeLocale.js +8 -31
- package/dist/renderer/LitRenderer.js +26 -7
- package/dist/renderer/directives/style-map.js +72 -0
- package/dist/renderer/executeTemplate.js +17 -0
- package/dist/resources/bundle.esm.js +20 -106
- package/dist/resources/bundle.esm.js.map +1 -1
- package/dist/sap/base/Log.js +241 -0
- package/dist/sap/base/assert.js +8 -0
- package/dist/sap/base/security/URLListValidator.js +148 -0
- package/dist/sap/base/security/sanitizeHTML.js +16 -0
- package/dist/sap/base/util/now.js +7 -0
- package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +3585 -0
- package/dist/test-resources/assets/Themes.js +11 -5
- package/dist/test-resources/elements/Generic.js +1 -0
- package/dist/test-resources/elements/Parent.js +7 -2
- package/dist/test-resources/elements/WithStaticArea.js +77 -0
- package/dist/test-resources/pages/AllTestElements.html +5 -5
- package/dist/test-resources/pages/Configuration.html +0 -2
- package/dist/test-resources/pages/ConfigurationScript.html +1 -3
- package/dist/test-resources/pages/assets/messagebundle_de.properties +1 -0
- package/dist/test-resources/pages/assets/messagebundle_en.properties +1 -0
- package/dist/test-resources/pages/assets/messagebundle_es.properties +1 -0
- package/dist/test-resources/pages/assets/messagebundle_fr.properties +1 -0
- package/dist/test-resources/pages/i18n.html +33 -0
- package/dist/test-resources/specs/ConfigurationChange.spec.js +11 -9
- package/dist/test-resources/specs/ConfigurationScript.spec.js +25 -23
- package/dist/test-resources/specs/ConfigurationURL.spec.js +65 -17
- package/dist/test-resources/specs/CustomTheme.spec.js +9 -7
- package/dist/test-resources/specs/EventProvider.spec.js +63 -0
- package/dist/test-resources/specs/StaticArea.spec.js +78 -0
- package/dist/test-resources/specs/Theming.spec.js +12 -10
- package/dist/test-resources/specs/UI5ElementInvalidation.js +54 -70
- package/dist/test-resources/specs/UI5ElementLifecycle.js +19 -14
- package/dist/test-resources/specs/UI5ElementListenForChildPropChanges.spec.js +25 -51
- package/dist/test-resources/specs/UI5ElementMetadataExt.js +9 -7
- package/dist/test-resources/specs/UI5ElementPropertyValidation.js +7 -5
- package/dist/test-resources/specs/UI5ElementPropsAndAttrs.spec.js +37 -35
- package/dist/test-resources/specs/UI5ElementShadowDOM.js +10 -8
- package/dist/test-resources/specs/UI5ElementSlots.js +10 -8
- package/dist/theming/CustomStyle.js +28 -7
- package/dist/theming/ThemeLoaded.js +22 -0
- package/dist/theming/applyTheme.js +75 -0
- package/dist/theming/getConstructableStyle.js +30 -0
- package/dist/theming/getEffectiveLinksHrefs.js +20 -0
- package/dist/theming/getEffectiveStyle.js +30 -0
- package/dist/theming/getStylesString.js +15 -0
- package/dist/theming/getThemeDesignerTheme.js +68 -0
- package/dist/theming/preloadLinks.js +23 -0
- package/dist/thirdparty/_merge.js +32 -0
- package/dist/thirdparty/isPlainObject.js +18 -0
- package/dist/thirdparty/merge.js +10 -0
- package/dist/types/CSSColor.js +9 -0
- package/{src/dates → dist/types}/CalendarType.js +2 -2
- package/dist/types/DataType.js +13 -1
- package/dist/types/Float.js +14 -0
- package/dist/types/Integer.js +4 -0
- package/dist/types/InvisibleMessageMode.js +30 -0
- package/dist/types/ItemNavigationBehavior.js +2 -7
- package/dist/types/NavigationMode.js +1 -0
- package/dist/types/PopupState.js +1 -1
- package/dist/types/ValueState.js +2 -1
- package/dist/updateShadowRoot.js +30 -0
- package/dist/util/AriaLabelHelper.js +41 -0
- package/dist/util/Caret.js +45 -0
- package/dist/util/ColorConversion.js +370 -0
- package/dist/util/FocusableElements.js +25 -8
- package/dist/util/HTMLSanitizer.js +7 -0
- package/dist/util/InvisibleMessage.js +58 -0
- package/dist/util/PopupUtils.js +93 -0
- package/dist/util/SlotsHelper.js +43 -0
- package/dist/util/StringHelper.js +17 -2
- package/dist/util/TabbableElements.js +5 -2
- package/dist/util/arraysAreEqual.js +15 -0
- package/dist/util/clamp.js +12 -0
- package/dist/util/createLinkInHead.js +19 -0
- package/dist/util/debounce.js +17 -0
- package/dist/util/detectNavigatorLanguage.js +3 -1
- package/dist/util/encodeCSS.js +24 -0
- package/dist/util/findNodeOwner.js +35 -0
- package/dist/util/getActiveElement.js +11 -0
- package/dist/util/getClassCopy.js +10 -0
- package/dist/util/getEffectiveContentDensity.js +5 -0
- package/dist/util/getFileExtension.js +21 -0
- package/dist/util/getSingletonElementInstance.js +13 -0
- package/dist/util/isElementInView.js +15 -0
- package/dist/util/isNodeHidden.js +1 -5
- package/dist/util/isNodeTabbable.js +4 -4
- package/dist/util/isValidPropertyName.js +11 -2
- package/dist/util/setToArray.js +10 -0
- package/hash.txt +1 -0
- package/index.js +1 -1
- package/lib/generate-asset-parameters/index.js +21 -0
- package/lib/generate-styles/index.js +18 -0
- package/package-scripts.js +41 -18
- package/package.json +19 -14
- package/src/AssetRegistry.js +8 -6
- package/src/Boot.js +43 -0
- package/src/CSP.js +59 -0
- package/src/CustomElementsRegistry.js +39 -0
- package/src/CustomElementsScope.js +108 -0
- package/src/DOMObserver.js +65 -0
- package/src/Device.js +62 -778
- package/src/EventProvider.js +38 -26
- package/src/FontFace.js +20 -56
- package/src/InitialConfiguration.js +64 -17
- package/src/Keys.js +248 -0
- package/src/ManagedStyles.js +83 -0
- package/src/MediaRange.js +109 -0
- package/src/PropertiesFileFormat.js +95 -0
- package/src/Render.js +175 -0
- package/src/RenderQueue.js +41 -17
- package/src/RenderScheduler.js +24 -145
- package/src/StaticArea.js +1 -39
- package/src/StaticAreaItem.js +65 -40
- package/src/SystemCSSVars.js +10 -0
- package/src/Theming.js +3 -44
- package/src/UI5Element.js +483 -307
- package/src/UI5ElementMetadata.js +190 -19
- package/src/asset-registries/Icons.js +129 -14
- package/src/asset-registries/Illustrations.js +30 -0
- package/src/asset-registries/LocaleData.js +108 -50
- package/src/asset-registries/Themes.js +35 -32
- package/src/asset-registries/i18n.js +80 -34
- package/src/assets-meta/IconCollectionsAlias.js +18 -0
- package/src/config/AnimationMode.js +16 -2
- package/src/config/CalendarType.js +7 -7
- package/src/config/FormatSettings.js +5 -1
- package/src/config/Language.js +62 -3
- package/src/config/NoConflict.js +10 -3
- package/src/config/Theme.js +21 -3
- package/src/css/FontFace.css +45 -0
- package/src/css/OverrideFontFace.css +32 -0
- package/src/css/SystemCSSVars.css +17 -0
- package/src/delegate/ItemNavigation.js +245 -172
- package/src/delegate/ResizeHandler.js +78 -38
- package/src/delegate/ScrollEnablement.js +122 -14
- package/src/features/OpenUI5Support.js +125 -0
- package/src/getSharedResource.js +30 -0
- package/src/i18nBundle.js +62 -11
- package/src/isLegacyBrowser.js +3 -0
- package/src/{Locale.js → locale/Locale.js} +0 -10
- package/src/locale/RTLAwareRegistry.js +14 -0
- package/src/locale/applyDirection.js +17 -0
- package/src/locale/directionChange.js +32 -0
- package/src/locale/getEffectiveDir.js +28 -0
- package/src/locale/getLocale.js +41 -0
- package/src/locale/languageChange.js +22 -0
- package/src/locale/nextFallbackLocale.js +28 -0
- package/{dist/util → src/locale}/normalizeLocale.js +8 -31
- package/src/renderer/LitRenderer.js +26 -7
- package/src/renderer/directives/style-map.js +72 -0
- package/src/renderer/executeTemplate.js +17 -0
- package/src/theming/CustomStyle.js +28 -7
- package/src/theming/ThemeLoaded.js +22 -0
- package/src/theming/applyTheme.js +75 -0
- package/src/theming/getConstructableStyle.js +30 -0
- package/src/theming/getEffectiveLinksHrefs.js +20 -0
- package/src/theming/getEffectiveStyle.js +30 -0
- package/src/theming/getStylesString.js +15 -0
- package/src/theming/getThemeDesignerTheme.js +68 -0
- package/src/theming/preloadLinks.js +23 -0
- package/src/thirdparty/_merge.js +32 -0
- package/src/thirdparty/isPlainObject.js +18 -0
- package/src/thirdparty/merge.js +10 -0
- package/src/types/CSSColor.js +9 -0
- package/{dist/dates → src/types}/CalendarType.js +2 -2
- package/src/types/DataType.js +13 -1
- package/src/types/Float.js +14 -0
- package/src/types/Integer.js +4 -0
- package/src/types/InvisibleMessageMode.js +30 -0
- package/src/types/ItemNavigationBehavior.js +2 -7
- package/src/types/NavigationMode.js +1 -0
- package/src/types/PopupState.js +1 -1
- package/src/types/ValueState.js +2 -1
- package/src/updateShadowRoot.js +30 -0
- package/src/util/AriaLabelHelper.js +41 -0
- package/src/util/Caret.js +45 -0
- package/src/util/ColorConversion.js +370 -0
- package/src/util/FocusableElements.js +25 -8
- package/src/util/HTMLSanitizer.js +7 -0
- package/src/util/InvisibleMessage.js +58 -0
- package/src/util/PopupUtils.js +93 -0
- package/src/util/SlotsHelper.js +43 -0
- package/src/util/StringHelper.js +17 -2
- package/src/util/TabbableElements.js +5 -2
- package/src/util/arraysAreEqual.js +15 -0
- package/src/util/clamp.js +12 -0
- package/src/util/createLinkInHead.js +19 -0
- package/src/util/debounce.js +17 -0
- package/src/util/detectNavigatorLanguage.js +3 -1
- package/src/util/encodeCSS.js +24 -0
- package/src/util/findNodeOwner.js +35 -0
- package/src/util/getActiveElement.js +11 -0
- package/src/util/getClassCopy.js +10 -0
- package/src/util/getEffectiveContentDensity.js +5 -0
- package/src/util/getFileExtension.js +21 -0
- package/src/util/getSingletonElementInstance.js +13 -0
- package/src/util/isElementInView.js +15 -0
- package/src/util/isNodeHidden.js +1 -5
- package/src/util/isNodeTabbable.js +4 -4
- package/src/util/isValidPropertyName.js +11 -2
- package/src/util/setToArray.js +10 -0
- package/used-modules.txt +7 -0
- package/bundle.es5.js +0 -28
- package/dist/Assets.js +0 -2
- package/dist/CSS.js +0 -48
- package/dist/FormatSettings.js +0 -31
- package/dist/LocaleProvider.js +0 -34
- package/dist/ResourceLoaderOverrides.js +0 -38
- package/dist/SVGIconRegistry.js +0 -54
- package/dist/boot.js +0 -25
- package/dist/compatibility/DOMObserver.js +0 -62
- package/dist/compatibility/patchNodeValue.js +0 -24
- package/dist/compatibility/whenPolyfillLoaded.js +0 -26
- package/dist/dates/CalendarDate.js +0 -203
- package/dist/dates/CalendarUtils.js +0 -99
- package/dist/delegate/CustomResize.js +0 -78
- package/dist/delegate/NativeResize.js +0 -44
- package/dist/events/PseudoEvents.js +0 -58
- package/dist/features/browsersupport/Edge.js +0 -6
- package/dist/features/browsersupport/IE11.js +0 -41
- package/dist/features/calendar/Buddhist.js +0 -1
- package/dist/features/calendar/Islamic.js +0 -1
- package/dist/features/calendar/Japanese.js +0 -1
- package/dist/features/calendar/Persian.js +0 -1
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ar.json +0 -5598
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ar_EG.json +0 -5598
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ar_SA.json +0 -5598
- package/dist/generated/assets/cldr/sap/ui/core/cldr/bg.json +0 -4789
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ca.json +0 -4801
- package/dist/generated/assets/cldr/sap/ui/core/cldr/cs.json +0 -5245
- package/dist/generated/assets/cldr/sap/ui/core/cldr/da.json +0 -4696
- package/dist/generated/assets/cldr/sap/ui/core/cldr/de.json +0 -4797
- package/dist/generated/assets/cldr/sap/ui/core/cldr/de_AT.json +0 -4798
- package/dist/generated/assets/cldr/sap/ui/core/cldr/de_CH.json +0 -4796
- package/dist/generated/assets/cldr/sap/ui/core/cldr/el.json +0 -4694
- package/dist/generated/assets/cldr/sap/ui/core/cldr/el_CY.json +0 -4694
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en.json +0 -4777
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en_AU.json +0 -4769
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en_GB.json +0 -4778
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en_HK.json +0 -4784
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en_IE.json +0 -4778
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en_IN.json +0 -4779
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en_NZ.json +0 -4778
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en_PG.json +0 -4779
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en_SG.json +0 -4780
- package/dist/generated/assets/cldr/sap/ui/core/cldr/en_ZA.json +0 -4779
- package/dist/generated/assets/cldr/sap/ui/core/cldr/es.json +0 -4719
- package/dist/generated/assets/cldr/sap/ui/core/cldr/es_AR.json +0 -4721
- package/dist/generated/assets/cldr/sap/ui/core/cldr/es_BO.json +0 -4720
- package/dist/generated/assets/cldr/sap/ui/core/cldr/es_CL.json +0 -4721
- package/dist/generated/assets/cldr/sap/ui/core/cldr/es_CO.json +0 -4721
- package/dist/generated/assets/cldr/sap/ui/core/cldr/es_MX.json +0 -4722
- package/dist/generated/assets/cldr/sap/ui/core/cldr/es_PE.json +0 -4720
- package/dist/generated/assets/cldr/sap/ui/core/cldr/es_UY.json +0 -4722
- package/dist/generated/assets/cldr/sap/ui/core/cldr/es_VE.json +0 -4721
- package/dist/generated/assets/cldr/sap/ui/core/cldr/et.json +0 -4776
- package/dist/generated/assets/cldr/sap/ui/core/cldr/fa.json +0 -4704
- package/dist/generated/assets/cldr/sap/ui/core/cldr/fi.json +0 -4816
- package/dist/generated/assets/cldr/sap/ui/core/cldr/fr.json +0 -4788
- package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_BE.json +0 -4788
- package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_CA.json +0 -4782
- package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_CH.json +0 -4806
- package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_LU.json +0 -4788
- package/dist/generated/assets/cldr/sap/ui/core/cldr/he.json +0 -5133
- package/dist/generated/assets/cldr/sap/ui/core/cldr/hi.json +0 -4680
- package/dist/generated/assets/cldr/sap/ui/core/cldr/hr.json +0 -4910
- package/dist/generated/assets/cldr/sap/ui/core/cldr/hu.json +0 -4664
- package/dist/generated/assets/cldr/sap/ui/core/cldr/id.json +0 -4500
- package/dist/generated/assets/cldr/sap/ui/core/cldr/it.json +0 -4757
- package/dist/generated/assets/cldr/sap/ui/core/cldr/it_CH.json +0 -4757
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ja.json +0 -4599
- package/dist/generated/assets/cldr/sap/ui/core/cldr/kk.json +0 -4537
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ko.json +0 -4574
- package/dist/generated/assets/cldr/sap/ui/core/cldr/lt.json +0 -5234
- package/dist/generated/assets/cldr/sap/ui/core/cldr/lv.json +0 -4902
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ms.json +0 -4352
- package/dist/generated/assets/cldr/sap/ui/core/cldr/nb.json +0 -4784
- package/dist/generated/assets/cldr/sap/ui/core/cldr/nl.json +0 -4790
- package/dist/generated/assets/cldr/sap/ui/core/cldr/nl_BE.json +0 -4790
- package/dist/generated/assets/cldr/sap/ui/core/cldr/pl.json +0 -5223
- package/dist/generated/assets/cldr/sap/ui/core/cldr/pt.json +0 -4703
- package/dist/generated/assets/cldr/sap/ui/core/cldr/pt_PT.json +0 -4753
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ro.json +0 -4881
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ru.json +0 -5157
- package/dist/generated/assets/cldr/sap/ui/core/cldr/ru_UA.json +0 -5157
- package/dist/generated/assets/cldr/sap/ui/core/cldr/sk.json +0 -5125
- package/dist/generated/assets/cldr/sap/ui/core/cldr/sl.json +0 -5105
- package/dist/generated/assets/cldr/sap/ui/core/cldr/sr.json +0 -4908
- package/dist/generated/assets/cldr/sap/ui/core/cldr/sv.json +0 -4818
- package/dist/generated/assets/cldr/sap/ui/core/cldr/th.json +0 -4633
- package/dist/generated/assets/cldr/sap/ui/core/cldr/tr.json +0 -4791
- package/dist/generated/assets/cldr/sap/ui/core/cldr/uk.json +0 -5126
- package/dist/generated/assets/cldr/sap/ui/core/cldr/vi.json +0 -4510
- package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_CN.json +0 -4469
- package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_HK.json +0 -4479
- package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_SG.json +0 -4479
- package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_TW.json +0 -4565
- package/dist/json-imports/LocaleData.js +0 -171
- package/dist/renderer/ifDefined.js +0 -21
- package/dist/resources/bundle.es5.js +0 -212
- package/dist/resources/bundle.es5.js.map +0 -1
- package/dist/shims/Core-shim.js +0 -52
- package/dist/shims/jquery-shim.js +0 -89
- package/dist/theming/StyleInjection.js +0 -67
- package/dist/thirdparty/Array.from.js +0 -16
- package/dist/thirdparty/Array.prototype.fill.js +0 -44
- package/dist/thirdparty/Array.prototype.find.js +0 -46
- package/dist/thirdparty/Array.prototype.includes.js +0 -51
- package/dist/thirdparty/Element.prototype.closest.js +0 -11
- package/dist/thirdparty/Element.prototype.matches.js +0 -6
- package/dist/thirdparty/Map.prototype.keys.js +0 -9
- package/dist/thirdparty/Number.isInteger.js +0 -5
- package/dist/thirdparty/Number.isNaN.js +0 -1
- package/dist/thirdparty/Number.parseInt.js +0 -1
- package/dist/thirdparty/Object.assign.js +0 -31
- package/dist/thirdparty/Object.entries.js +0 -11
- package/dist/thirdparty/Symbol.js +0 -2
- package/dist/thirdparty/WeakSet.js +0 -27
- package/dist/thirdparty/events-polyfills.js +0 -89
- package/dist/thirdparty/fetch.js +0 -1
- package/dist/thirdparty/template.js +0 -600
- package/dist/util/CSSTransformUtils.js +0 -90
- package/dist/webcomponentsjs/LICENSE.md +0 -19
- package/dist/webcomponentsjs/README.md +0 -229
- package/dist/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
- package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -297
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -208
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
- package/dist/webcomponentsjs/bundles/webcomponents-sd.js +0 -166
- package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
- package/dist/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
- package/dist/webcomponentsjs/package.json +0 -46
- package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
- package/dist/webcomponentsjs/webcomponents-bundle.js +0 -298
- package/dist/webcomponentsjs/webcomponents-bundle.js.map +0 -1
- package/dist/webcomponentsjs/webcomponents-loader.js +0 -185
- package/src/Assets.js +0 -2
- package/src/CSS.js +0 -48
- package/src/FormatSettings.js +0 -31
- package/src/LocaleProvider.js +0 -34
- package/src/ResourceLoaderOverrides.js +0 -38
- package/src/SVGIconRegistry.js +0 -54
- package/src/boot.js +0 -25
- package/src/compatibility/DOMObserver.js +0 -62
- package/src/compatibility/patchNodeValue.js +0 -24
- package/src/compatibility/whenPolyfillLoaded.js +0 -26
- package/src/dates/CalendarDate.js +0 -203
- package/src/dates/CalendarUtils.js +0 -99
- package/src/delegate/CustomResize.js +0 -78
- package/src/delegate/NativeResize.js +0 -44
- package/src/events/PseudoEvents.js +0 -58
- package/src/features/browsersupport/Edge.js +0 -6
- package/src/features/browsersupport/IE11.js +0 -41
- package/src/features/calendar/Buddhist.js +0 -1
- package/src/features/calendar/Islamic.js +0 -1
- package/src/features/calendar/Japanese.js +0 -1
- package/src/features/calendar/Persian.js +0 -1
- package/src/json-imports/LocaleData.js +0 -171
- package/src/renderer/ifDefined.js +0 -21
- package/src/shims/Core-shim.js +0 -52
- package/src/shims/jquery-shim.js +0 -89
- package/src/theming/StyleInjection.js +0 -67
- package/src/thirdparty/Array.from.js +0 -16
- package/src/thirdparty/Array.prototype.fill.js +0 -44
- package/src/thirdparty/Array.prototype.find.js +0 -46
- package/src/thirdparty/Array.prototype.includes.js +0 -51
- package/src/thirdparty/Element.prototype.closest.js +0 -11
- package/src/thirdparty/Element.prototype.matches.js +0 -6
- package/src/thirdparty/Map.prototype.keys.js +0 -9
- package/src/thirdparty/Number.isInteger.js +0 -5
- package/src/thirdparty/Number.isNaN.js +0 -1
- package/src/thirdparty/Number.parseInt.js +0 -1
- package/src/thirdparty/Object.assign.js +0 -31
- package/src/thirdparty/Object.entries.js +0 -11
- package/src/thirdparty/Symbol.js +0 -2
- package/src/thirdparty/WeakSet.js +0 -27
- package/src/thirdparty/events-polyfills.js +0 -89
- package/src/thirdparty/fetch.js +0 -1
- package/src/thirdparty/template.js +0 -600
- package/src/util/CSSTransformUtils.js +0 -90
|
@@ -1,123 +1,37 @@
|
|
|
1
|
-
let t={};var e={},n=e.hasOwnProperty,r=e.toString,i=n.toString,a=i.call(Object),o=function(t){var e,o;return!(!t||"[object Object]"!==r.call(t))&&(!(e=Object.getPrototypeOf(t))||"function"==typeof(o=n.call(e,"constructor")&&e.constructor)&&i.call(o)===a)},s={extend:function(){var t,e,n,r,i,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[u]||{},u++),"object"!=typeof s&&"function"!=typeof s&&(s={}),u===l&&(s=this,u--);u<l;u++)if(null!=(t=arguments[u]))for(e in t)n=s[e],s!==(r=t[e])&&(c&&r&&(o(r)||(i=Array.isArray(r)))?(i?(i=!1,a=n&&Array.isArray(n)?n:[]):a=n&&o(n)?n:{},s[e]=extend(c,a,r)):void 0!==r&&(s[e]=r));return s},ajaxSettings:{converters:{"text json":t=>JSON.parse(t+"")}},trim:function(t){return t.trim()}};window.jQuery=window.jQuery||s,t=s;var u=t=>{const e=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(t);return e&&e[2]?e[2].split(/,/):null};const l=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i;class c{constructor(t){const e=l.exec(t.replace(/_/g,"-"));if(null===e)throw new Error(`The given language ${t} does not adhere to BCP-47.`);this.sLocaleId=t,this.sLanguage=e[1]||null,this.sScript=e[2]||null,this.sRegion=e[3]||null,this.sVariant=e[4]&&e[4].slice(1)||null,this.sExtension=e[5]&&e[5].slice(1)||null,this.sPrivateUse=e[6]||null,this.sLanguage&&(this.sLanguage=this.sLanguage.toLowerCase()),this.sScript&&(this.sScript=this.sScript.toLowerCase().replace(/^[a-z]/,t=>t.toUpperCase())),this.sRegion&&(this.sRegion=this.sRegion.toUpperCase())}getLanguage(){return this.sLanguage}getScript(){return this.sScript}getRegion(){return this.sRegion}getVariant(){return this.sVariant}getVariantSubtags(){return this.sVariant?this.sVariant.split("-"):[]}getExtension(){return this.sExtension}getExtensionSubtags(){return this.sExtension?this.sExtension.slice(2).split("-"):[]}getPrivateUse(){return this.sPrivateUse}getPrivateUseSubtags(){return this.sPrivateUse?this.sPrivateUse.slice(2).split("-"):[]}hasPrivateUseSubtag(t){return this.getPrivateUseSubtags().indexOf(t)>=0}toString(){const t=[this.sLanguage];return this.sScript&&t.push(this.sScript),this.sRegion&&t.push(this.sRegion),this.sVariant&&t.push(this.sVariant),this.sExtension&&t.push(this.sExtension),this.sPrivateUse&&t.push(this.sPrivateUse),t.join("-")}static get _cldrLocales(){return u("$cldr-locales:ar,ar_EG,ar_SA,bg,br,ca,cs,da,de,de_AT,de_CH,el,el_CY,en,en_AU,en_GB,en_HK,en_IE,en_IN,en_NZ,en_PG,en_SG,en_ZA,es,es_AR,es_BO,es_CL,es_CO,es_MX,es_PE,es_UY,es_VE,et,fa,fi,fr,fr_BE,fr_CA,fr_CH,fr_LU,he,hi,hr,hu,id,it,it_CH,ja,kk,ko,lt,lv,ms,nb,nl,nl_BE,nn,pl,pt,pt_PT,ro,ru,ru_UA,sk,sl,sr,sv,th,tr,uk,vi,zh_CN,zh_HK,zh_SG,zh_TW$")}static get _coreI18nLocales(){return u("$core-i18n-locales:,ar,bg,ca,cs,da,de,el,en,es,et,fi,fr,hi,hr,hu,it,iw,ja,ko,lt,lv,nl,no,pl,pt,ro,ru,sh,sk,sl,sv,th,tr,uk,vi,zh_CN,zh_TW$")}}var h=()=>{const t=navigator.languages;return t&&t[0]||(()=>navigator.language)()||navigator.userLanguage||navigator.browserLanguage||"en"};let d=!1;const p={animationMode:"full",theme:"sap_fiori_3",rtl:null,language:null,calendarType:null,noConflict:!1,formatSettings:{}},g=new Map;g.set("true",!0),g.set("false",!1);let f={};const m=()=>{d||((()=>{const t=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");let e;if(t){try{e=JSON.parse(t.innerHTML)}catch(t){console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(f=Object.assign({},e))}})(),new URLSearchParams(window.location.search).forEach((t,e)=>{if(!e.startsWith("sap-ui"))return;const n=t.toLowerCase(),r=e.split("sap-ui-")[1];g.has(t)&&(t=g.get(n)),f[r]=t}),Object.keys(f).forEach(t=>{p[t]=f[t]}),d=!0)},y=(()=>(m(),p.language))(),_=()=>y,v=()=>_()?new c(_()):(t=>{try{if(t&&"string"==typeof t)return new c(t)}catch(t){}})(h()),w={};var b=Object.freeze({__proto__:null,setConfiguration:t=>{},getFormatLocale:()=>v(),getLegacyDateFormat:()=>{},getLegacyDateCalendarCustomizing:()=>{},getCustomLocaleData:()=>w}),C={Gregorian:"Gregorian",Islamic:"Islamic",Japanese:"Japanese",Persian:"Persian",Buddhist:"Buddhist"};const T=(()=>(m(),p.calendarType))(),D=()=>{if(T){const t=Object.keys(C).find(t=>t===T);if(t)return t}return C.Gregorian},S=(()=>(m(),p.formatSettings))(),P=()=>S.firstDayOfWeek,M={getLanguage:_,getCalendarType:D,getFirstDayOfWeek:P,getSupportedLanguages:()=>u("$core-i18n-locales:,ar,bg,ca,cs,da,de,el,en,es,et,fi,fr,hi,hr,hu,it,iw,ja,ko,lt,lv,nl,no,pl,pt,ro,ru,sh,sk,sl,sv,th,tr,uk,vi,zh_CN,zh_TW$"),getOriginInfo:()=>{}},E={getConfiguration:()=>M,getLibraryResourceBundle(){},getFormatSettings:()=>b};window.sap=window.sap||{},window.sap.ui=window.sap.ui||{},window.sap.ui.getWCCore=function(){return E};const A=new Map,U=new Map,x=new Map;window.sap=window.sap||{},window.sap.ui=window.sap.ui||{},sap.ui.loader=sap.ui.loader||{},sap.ui.loader._=sap.ui.loader._||{};const F=sap.ui.loader._.getModuleContent;sap.ui.loader._.getModuleContent=(t,e)=>{const n=x.get(t)||x.get(e);if(n)return n;if(F)return F(t,e);const r=t.match(/sap\/ui\/core\/cldr\/(\w+)\.json/);if(r)throw new Error(`CLDR data for locale ${r[1]} is not loaded!`);return""};const O=new Map,L=new Map,I=new Set,k=new Set,R=(t,e,n)=>{n._?L.set(`${t}_${e}`,n._):n.includes(":root")?L.set(`${t}_${e}`,n):O.set(`${t}_${e}`,n),I.add(t),k.add(e)},N=async(t,e)=>{const n=O.get(`${t}_${e}`);if(!n)throw new Error(`You have to import the ${t}/dist/Assets.js module to switch to additional themes`);return(async t=>{A.get(t)||A.set(t,fetch(t));const e=await A.get(t);return U.get(t)||U.set(t,e.json()),U.get(t)})(n)},j=()=>I;var W,V=function(t,e,n){if(!t)return t;function r(t,e){return function(){var r=t[e].apply(t,arguments);return n?this:r instanceof W?r.getInterface():r}}if(W=W||sap.ui.requireSync("sap/ui/base/Object"),!e)return{};for(var i,a=0,o=e.length;a<o;a++)t[i=e[a]]&&"function"!=typeof t[i]||(this[i]=r(t,i))},$={},Y=window;function B(t){return Array.isArray(t)?t:t.split(".")}$.create=function(t,e){for(var n=e||Y,r=B(t),i=0;i<r.length;i++){var a=r[i];if(null===n[a]||void 0!==n[a]&&"object"!=typeof n[a]&&"function"!=typeof n[a])throw new Error("Could not set object-path for '"+r.join(".")+"', path segment '"+a+"' already exists.");n[a]=n[a]||{},n=n[a]}return n},$.get=function(t,e){for(var n=e||Y,r=B(t),i=r.pop(),a=0;a<r.length&&n;a++)n=n[r[a]];return n?n[i]:void 0},$.set=function(t,e,n){n=n||Y;var r=B(t),i=r.pop();$.create(r,n)[i]=e};var z,H,J="undefined"!=typeof window&&window.performance&&performance.now&&performance.timing?(z=performance.timing.navigationStart,function(){return z+performance.now()}):Date.now,Z={Level:{NONE:-1,FATAL:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4,TRACE:5,ALL:6}},q=[],G={"":Z.Level.ERROR},Q=null,X=!1;function K(t,e){return("000"+String(t)).slice(-e)}function tt(t){return!t||isNaN(G[t])?G[""]:G[t]}function et(){return Q||(Q={listeners:[],onLogEntry:function(t){for(var e=0;e<Q.listeners.length;e++)Q.listeners[e].onLogEntry&&Q.listeners[e].onLogEntry(t)},attach:function(t,e){e&&(Q.listeners.push(e),e.onAttachToLog&&e.onAttachToLog(t))},detach:function(t,e){for(var n=0;n<Q.listeners.length;n++)if(Q.listeners[n]===e)return e.onDetachFromLog&&e.onDetachFromLog(t),void Q.listeners.splice(n,1)}}),Q}function nt(t,e,n,r,i){if(X&&(i||r||"function"!=typeof n||(i=n,n=""),i||"function"!=typeof r||(i=r,r="")),t<=tt(r=r||H)){var a=J(),o=new Date(a),s=Math.floor(1e3*(a-Math.floor(a))),u={time:K(o.getHours(),2)+":"+K(o.getMinutes(),2)+":"+K(o.getSeconds(),2)+"."+K(o.getMilliseconds(),3)+K(s,3),date:K(o.getFullYear(),4)+"-"+K(o.getMonth()+1,2)+"-"+K(o.getDate(),2),timestamp:a,level:t,message:String(e||""),details:String(n||""),component:String(r||"")};if(X&&"function"==typeof i&&(u.supportInfo=i()),q.push(u),Q&&Q.onLogEntry(u),console){var l=u.date+" "+u.time+" "+u.message+" - "+u.details+" "+u.component;switch(t){case Z.Level.FATAL:case Z.Level.ERROR:console.error(l);break;case Z.Level.WARNING:console.warn(l);break;case Z.Level.INFO:console.info?console.info(l):console.log(l);break;case Z.Level.DEBUG:console.debug?console.debug(l):console.log(l);break;case Z.Level.TRACE:console.trace?console.trace(l):console.log(l)}console.info&&u.supportInfo&&console.info(u.supportInfo)}return u}}function rt(t){this.fatal=function(e,n,r,i){return Z.fatal(e,n,r||t,i),this},this.error=function(e,n,r,i){return Z.error(e,n,r||t,i),this},this.warning=function(e,n,r,i){return Z.warning(e,n,r||t,i),this},this.info=function(e,n,r,i){return Z.info(e,n,r||t,i),this},this.debug=function(e,n,r,i){return Z.debug(e,n,r||t,i),this},this.trace=function(e,n,r,i){return Z.trace(e,n,r||t,i),this},this.setLevel=function(e,n){return Z.setLevel(e,n||t),this},this.getLevel=function(e){return Z.getLevel(e||t)},this.isLoggable=function(e,n){return Z.isLoggable(e,n||t)}}Z.fatal=function(t,e,n,r){nt(Z.Level.FATAL,t,e,n,r)},Z.error=function(t,e,n,r){nt(Z.Level.ERROR,t,e,n,r)},Z.warning=function(t,e,n,r){nt(Z.Level.WARNING,t,e,n,r)},Z.info=function(t,e,n,r){nt(Z.Level.INFO,t,e,n,r)},Z.debug=function(t,e,n,r){nt(Z.Level.DEBUG,t,e,n,r)},Z.trace=function(t,e,n,r){nt(Z.Level.TRACE,t,e,n,r)},Z.setLevel=function(t,e,n){var r;(e=e||H||"",n&&null!=G[e])||(G[e]=t,Object.keys(Z.Level).forEach((function(e){Z.Level[e]===t&&(r=e)})),nt(Z.Level.INFO,"Changing log level "+(e?"for '"+e+"' ":"")+"to "+r,"","sap.base.log"))},Z.getLevel=function(t){return tt(t||H)},Z.isLoggable=function(t,e){return(null==t?Z.Level.DEBUG:t)<=tt(e||H)},Z.logSupportInfo=function(t){X=t},Z.getLogEntries=function(){return q.slice()},Z.addLogListener=function(t){et().attach(this,t)},Z.removeLogListener=function(t){et().detach(this,t)},Z.getLogger=function(t,e){return isNaN(e)||null!=G[t]||(G[t]=e),new rt(t)};var it=function(t,e){if(!t){var n="function"==typeof e?e():e;console&&console.assert?console.assert(t,n):Z.debug("[Assertions] "+n)}},at=function(t){it(t instanceof Array,"uniqueSort: input parameter must be an Array");var e=t.length;if(e>1){t.sort();for(var n=0,r=1;r<e;r++)t[r]!==t[n]&&(t[++n]=t[r]);++n<e&&t.splice(n,e-n)}return t},ot=function(t,e){if(it("string"==typeof t&&t,"Metadata: sClassName must be a non-empty string"),it("object"==typeof e,"Metadata: oClassInfo must be empty or an object"),e&&"object"==typeof e.metadata||((e={metadata:e||{},constructor:$.get(t)}).metadata.__version=1),e.metadata.__version=e.metadata.__version||2,"function"!=typeof e.constructor)throw Error("constructor for class "+t+" must have been declared before creating metadata for it");this._sClassName=t,this._oClass=e.constructor,this.extend(e)};ot.prototype.extend=function(t){this.applySettings(t),this.afterApplySettings()},ot.prototype.applySettings=function(t){var e,n=t.metadata;if(n.baseType){var r=$.get(n.baseType);"function"!=typeof r&&Z.fatal("base class '"+n.baseType+"' does not exist"),r.getMetadata?(this._oParent=r.getMetadata(),it(r===r.getMetadata().getClass(),"Metadata: oParentClass must match the class in the parent metadata")):this._oParent=new ot(n.baseType,{})}else this._oParent=void 0;for(var i in this._bAbstract=!!n.abstract,this._bFinal=!!n.final,this._sStereotype=n.stereotype||(this._oParent?this._oParent._sStereotype:"object"),this._bDeprecated=!!n.deprecated,this._aInterfaces=n.interfaces||[],this._aPublicMethods=n.publicMethods||[],this._bInterfacesUnique=!1,e=this._oClass.prototype,t)"metadata"!==i&&"constructor"!==i&&(e[i]=t[i],i.match(/^_|^on|^init$|^exit$/)||this._aPublicMethods.push(i))},ot.prototype.afterApplySettings=function(){this._oParent?(this._aAllPublicMethods=this._oParent._aAllPublicMethods.concat(this._aPublicMethods),this._bInterfacesUnique=!1):this._aAllPublicMethods=this._aPublicMethods},ot.prototype.getStereotype=function(){return this._sStereotype},ot.prototype.getName=function(){return this._sClassName},ot.prototype.getClass=function(){return this._oClass},ot.prototype.getParent=function(){return this._oParent},ot.prototype._dedupInterfaces=function(){this._bInterfacesUnique||(at(this._aInterfaces),at(this._aPublicMethods),at(this._aAllPublicMethods),this._bInterfacesUnique=!0)},ot.prototype.getPublicMethods=function(){return this._dedupInterfaces(),this._aPublicMethods},ot.prototype.getAllPublicMethods=function(){return this._dedupInterfaces(),this._aAllPublicMethods},ot.prototype.getInterfaces=function(){return this._dedupInterfaces(),this._aInterfaces},ot.prototype.isInstanceOf=function(t){if(this._oParent&&this._oParent.isInstanceOf(t))return!0;for(var e=this._aInterfaces,n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1};Object.defineProperty(ot.prototype,"_mImplementedTypes",{get:function(){if(this===ot.prototype)throw new Error("sap.ui.base.Metadata: The '_mImplementedTypes' property must not be accessed on the prototype");var t=Object.create(this._oParent?this._oParent._mImplementedTypes:null);t[this._sClassName]=!0;for(var e=this._aInterfaces,n=e.length;n-- >0;)t[e[n]]||(t[e[n]]=!0);return Object.defineProperty(this,"_mImplementedTypes",{value:Object.freeze(t),writable:!1,configurable:!1}),t},configurable:!0}),ot.prototype.isA=function(t){var e=this._mImplementedTypes;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(t[n]in e)return!0;return!1}return t in e},ot.prototype.isAbstract=function(){return this._bAbstract},ot.prototype.isFinal=function(){return this._bFinal},ot.prototype.isDeprecated=function(){return this._bDeprecated},ot.prototype.addPublicMethods=function(t){var e=t instanceof Array?t:arguments;Array.prototype.push.apply(this._aPublicMethods,e),Array.prototype.push.apply(this._aAllPublicMethods,e),this._bInterfacesUnique=!1},ot.createClass=function(t,e,n,r){"string"==typeof t&&(r=n,n=e,e=t,t=null),it(!t||"function"==typeof t),it("string"==typeof e&&!!e),it(!n||"object"==typeof n),it(!r||"function"==typeof r),"function"==typeof(r=r||ot).preprocessClassInfo&&(n=r.preprocessClassInfo(n)),(n=n||{}).metadata=n.metadata||{},n.hasOwnProperty("constructor")||(n.constructor=void 0);var i=n.constructor;it(!i||"function"==typeof i),t?(i||(i=n.metadata.deprecated?function(){Z.warning("Usage of deprecated class: "+e),t.apply(this,arguments)}:function(){t.apply(this,arguments)}),i.prototype=Object.create(t.prototype),i.prototype.constructor=i,n.metadata.baseType=t.getMetadata().getName()):(i=i||function(){},delete n.metadata.baseType),n.constructor=i,$.set(e,i);var a=new r(e,n);return i.getMetadata=i.prototype.getMetadata=function(){return a},i.getMetadata().isFinal()||(i.extend=function(t,e,n){return ot.createClass(i,t,e,n||r)}),i};var st=ot.createClass("sap.ui.base.Object",{constructor:function(){if(!(this instanceof st))throw Error('Cannot instantiate object: "new" is missing!')}});st.prototype.destroy=function(){},st.prototype.getInterface=function(){var t=new V(this,this.getMetadata().getAllPublicMethods());return this.getInterface=function(){return t},t},st.defineClass=function(t,e,n){var r=new(n||ot)(t,e),i=r.getClass();return i.getMetadata=i.prototype.getMetadata=function(){return r},r.isFinal()||(i.extend=function(t,e,r){return ot.createClass(i,t,e,r||n)}),Z.debug("defined class '"+t+"'"+(r.getParent()?" as subclass of "+r.getParent().getName():"")),r},st.prototype.isA=function(t){return this.getMetadata().isA(t)},st.isA=function(t,e){return t instanceof st&&t.isA(e)};var ut=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i,lt=st.extend("sap.ui.core.Locale",{constructor:function(t){st.apply(this);var e=ut.exec(t.replace(/_/g,"-"));if(null===e)throw"The given language '"+t+"' does not adhere to BCP-47.";this.sLocaleId=t,this.sLanguage=e[1]||null,this.sScript=e[2]||null,this.sRegion=e[3]||null,this.sVariant=e[4]&&e[4].slice(1)||null,this.sExtension=e[5]&&e[5].slice(1)||null,this.sPrivateUse=e[6]||null,this.sLanguage&&(this.sLanguage=this.sLanguage.toLowerCase()),this.sScript&&(this.sScript=this.sScript.toLowerCase().replace(/^[a-z]/,(function(t){return t.toUpperCase()}))),this.sRegion&&(this.sRegion=this.sRegion.toUpperCase())},getLanguage:function(){return this.sLanguage},getScript:function(){return this.sScript},getRegion:function(){return this.sRegion},getVariant:function(){return this.sVariant},getVariantSubtags:function(){return this.sVariant?this.sVariant.split("-"):[]},getExtension:function(){return this.sExtension},getExtensionSubtags:function(){return this.sExtension?this.sExtension.slice(2).split("-"):[]},getPrivateUse:function(){return this.sPrivateUse},getPrivateUseSubtags:function(){return this.sPrivateUse?this.sPrivateUse.slice(2).split("-"):[]},hasPrivateUseSubtag:function(t){return it(t&&t.match(/^[0-9A-Z]{1,8}$/i),"subtag must be a valid BCP47 private use tag"),this.getPrivateUseSubtags().indexOf(t)>=0},toString:function(){var t=[this.sLanguage];return this.sScript&&t.push(this.sScript),this.sRegion&&t.push(this.sRegion),this.sVariant&&t.push(this.sVariant),this.sExtension&&t.push(this.sExtension),this.sPrivateUse&&t.push(this.sPrivateUse),t.join("-")},getSAPLogonLanguage:function(){var t,e=this.sLanguage||"";return e.indexOf("-")>=0&&(e=e.slice(0,e.indexOf("-"))),"zh"===(e=ct[e]||e)&&("Hant"===this.sScript||!this.sScript&&"TW"===this.sRegion)&&(e="zf"),this.sPrivateUse&&(t=/-(saptrc|sappsd)(?:-|$)/i.exec(this.sPrivateUse))&&(e="saptrc"===t[1].toLowerCase()?"1Q":"2Q"),e.toUpperCase()}}),ct={iw:"he",ji:"yi",in:"id",sh:"sr"};function ht(t){var e=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(t);return e&&e[2]?e[2].split(/,/):null}var dt=ht("$cldr-rtl-locales:ar,fa,he$")||[];lt._cldrLocales=ht("$cldr-locales:ar,ar_EG,ar_SA,bg,br,ca,cs,da,de,de_AT,de_CH,el,el_CY,en,en_AU,en_GB,en_HK,en_IE,en_IN,en_NZ,en_PG,en_SG,en_ZA,es,es_AR,es_BO,es_CL,es_CO,es_MX,es_PE,es_UY,es_VE,et,fa,fi,fr,fr_BE,fr_CA,fr_CH,fr_LU,he,hi,hr,hu,id,it,it_CH,ja,kk,ko,lt,lv,ms,nb,nl,nl_BE,nn,pl,pt,pt_PT,ro,ru,ru_UA,sk,sl,sr,sv,th,tr,uk,vi,zh_CN,zh_HK,zh_SG,zh_TW$"),lt._coreI18nLocales=ht("$core-i18n-locales:,ar,bg,ca,cs,da,de,el,en,es,et,fi,fr,hi,hr,hu,it,iw,ja,ko,lt,lv,nl,no,pl,pt,ro,ru,sh,sk,sl,sv,th,tr,uk,vi,zh_CN,zh_TW$"),lt._impliesRTL=function(t){var e=t instanceof lt?t:new lt(t),n=e.getLanguage()||"";n=n&&ct[n]||n;var r=e.getRegion()||"";return!!(r&&dt.indexOf(n+"_"+r)>=0)||dt.indexOf(n)>=0};var pt={loadResource:function(t){return sap.ui.loader._.getModuleContent(t)}},gt=st.extend("sap.ui.core.LocaleData",{constructor:function(t){this.oLocale=t,st.apply(this),this.mData=function(t){var e,n=t.getLanguage()||"",r=t.getScript()||"",i=t.getRegion()||"";function a(t){if(!(wt[t]||vt&&!0!==vt[t])){var e=wt[t]=pt.loadResource("sap/ui/core/cldr/"+t+".json",{dataType:"json",failOnError:!1});e&&e.__fallbackLocale&&(!function t(e,n){var r,i,a;if(n)for(r in n)n.hasOwnProperty(r)&&(i=e[r],a=n[r],void 0===i?e[r]=a:null===i?delete e[r]:"object"==typeof i&&"object"==typeof a&&t(i,a))}(e,a(e.__fallbackLocale)),delete e.__fallbackLocale)}return wt[t]}"no"===(n=n&&_t[n]||n)&&(n="nb");"zh"!==n||i||("Hans"===r?i="CN":"Hant"===r&&(i="TW"));var o=n+"_"+i;n&&i&&(e=a(o));!e&&n&&(e=a(n));return wt[o]=e||yt,wt[o]}(t)},_get:function(){return this._getDeep(this.mData,arguments)},_getMerged:function(){return this._get.apply(this,arguments)},_getDeep:function(t,e){for(var n=t,r=0;r<e.length&&void 0!==(n=n[e[r]]);r++);return n},getOrientation:function(){return this._get("orientation")},getLanguages:function(){return this._get("languages")},getScripts:function(){return this._get("scripts")},getTerritories:function(){return this._get("territories")},getMonths:function(t,e){return it("narrow"==t||"abbreviated"==t||"wide"==t,"sWidth must be narrow, abbreviated or wide"),this._get(bt(e),"months","format",t)},getMonthsStandAlone:function(t,e){return it("narrow"==t||"abbreviated"==t||"wide"==t,"sWidth must be narrow, abbreviated or wide"),this._get(bt(e),"months","stand-alone",t)},getDays:function(t,e){return it("narrow"==t||"abbreviated"==t||"wide"==t||"short"==t,"sWidth must be narrow, abbreviate, wide or short"),this._get(bt(e),"days","format",t)},getDaysStandAlone:function(t,e){return it("narrow"==t||"abbreviated"==t||"wide"==t||"short"==t,"sWidth must be narrow, abbreviated, wide or short"),this._get(bt(e),"days","stand-alone",t)},getQuarters:function(t,e){return it("narrow"==t||"abbreviated"==t||"wide"==t,"sWidth must be narrow, abbreviated or wide"),this._get(bt(e),"quarters","format",t)},getQuartersStandAlone:function(t,e){return it("narrow"==t||"abbreviated"==t||"wide"==t,"sWidth must be narrow, abbreviated or wide"),this._get(bt(e),"quarters","stand-alone",t)},getDayPeriods:function(t,e){return it("narrow"==t||"abbreviated"==t||"wide"==t,"sWidth must be narrow, abbreviated or wide"),this._get(bt(e),"dayPeriods","format",t)},getDayPeriodsStandAlone:function(t,e){return it("narrow"==t||"abbreviated"==t||"wide"==t,"sWidth must be narrow, abbreviated or wide"),this._get(bt(e),"dayPeriods","stand-alone",t)},getDatePattern:function(t,e){return it("short"==t||"medium"==t||"long"==t||"full"==t,"sStyle must be short, medium, long or full"),this._get(bt(e),"dateFormats",t)},getTimePattern:function(t,e){return it("short"==t||"medium"==t||"long"==t||"full"==t,"sStyle must be short, medium, long or full"),this._get(bt(e),"timeFormats",t)},getDateTimePattern:function(t,e){return it("short"==t||"medium"==t||"long"==t||"full"==t,"sStyle must be short, medium, long or full"),this._get(bt(e),"dateTimeFormats",t)},getCombinedDateTimePattern:function(t,e,n){it("short"==t||"medium"==t||"long"==t||"full"==t,"sStyle must be short, medium, long or full"),it("short"==e||"medium"==e||"long"==e||"full"==e,"sStyle must be short, medium, long or full");var r=this.getDateTimePattern(t,n),i=this.getDatePattern(t,n),a=this.getTimePattern(e,n);return r.replace("{0}",a).replace("{1}",i)},getCustomDateTimePattern:function(t,e){var n=this._get(bt(e),"dateTimeFormats","availableFormats");return this._getFormatPattern(t,n,e)},getIntervalPattern:function(t,e){var n,r,i,a,o,s=this._get(bt(e),"dateTimeFormats","intervalFormats");return t&&(r=(n=t.split("-"))[0],i=n[1],(a=s[r])&&(o=a[i]))?o:s.intervalFormatFallback},getCombinedIntervalPattern:function(t,e){return this._get(bt(e),"dateTimeFormats","intervalFormats").intervalFormatFallback.replace(/\{(0|1)\}/g,t)},getCustomIntervalPattern:function(t,e,n){var r=this._get(bt(n),"dateTimeFormats","intervalFormats");return this._getFormatPattern(t,r,n,e)},_getFormatPattern:function(t,e,n,r){var i,a,o;if(r?"string"==typeof r&&("j"!=r&&"J"!=r||(r=this.getPreferredHourSymbol()),o=e[t],i=o&&o[r]):i=e[t],i){if("object"!=typeof i)return i;a=Object.keys(i).map((function(t){return i[t]}))}return a||(a=this._createFormatPattern(t,e,n,r)),a&&1===a.length?a[0]:a},_createFormatPattern:function(t,e,n,r){var i,a,o,s,u,l,c,h,d,p=this._parseSkeletonFormat(t),g=this._findBestMatch(p,t,e),f=/^([GyYqQMLwWEecdD]+)([hHkKjJmszZvVOXx]+)$/;if(r){if("string"==typeof r)(c=mt[r]?mt[r].group:"")&&(h=ft[c].index>p[p.length-1].index),l=r;else{for(h=!0,d=p.length-1;d>=0;d--)if(r[(a=p[d]).group]){h=!1;break}for(d=0;d<p.length;d++)if(r[(a=p[d]).group]){l=a.symbol;break}"h"!=l&&"K"!=l||!r.DayPeriod||(l="a")}if(h)return[this.getCustomDateTimePattern(t,n)];g&&0===g.missingTokens.length&&(s=g.pattern[l])&&g.distance>0&&(s=this._expandFields(s,g.patternTokens,p)),s||(o=this._get(bt(n),"dateTimeFormats","availableFormats"),f.test(t)&&"ahHkKjJms".indexOf(l)>=0?s=this._getMixedFormatPattern(t,o,n,r):(u=this._getFormatPattern(t,o,n),s=this.getCombinedIntervalPattern(u,n))),i=[s]}else if(g){if("string"==typeof g.pattern)i=[g.pattern];else if("object"==typeof g.pattern)for(var m in i=[],g.pattern)s=g.pattern[m],i.push(s);g.distance>0&&(g.missingTokens.length>0?f.test(t)?i=[this._getMixedFormatPattern(t,e,n)]:(i=this._expandFields(i,g.patternTokens,p),i=this._appendItems(i,g.missingTokens,n)):i=this._expandFields(i,g.patternTokens,p))}else i=[s=t];return t.indexOf("J")>=0&&i.forEach((function(t,e){i[e]=t.replace(/ ?[abB](?=([^']*'[^']*')*[^']*)$/g,"")})),i},_parseSkeletonFormat:function(t){for(var e,n,r,i=[],a={index:-1},o=0;o<t.length;o++)if("j"!=(e=t.charAt(o))&&"J"!=e||(e=this.getPreferredHourSymbol()),e!=a.symbol){if(n=mt[e],r=ft[n.group],"Other"==n.group||r.diffOnly)throw new Error("Symbol '"+e+"' is not allowed in skeleton format '"+t+"'");if(r.index<=a.index)throw new Error("Symbol '"+e+"' at wrong position or duplicate in skeleton format '"+t+"'");a={symbol:e,group:n.group,match:n.match,index:r.index,field:r.field,length:1},i.push(a)}else a.length++;return i},_findBestMatch:function(t,e,n){var r,i,a,o,s,u,l,c,h,d,p={distance:1e4,firstDiffPos:-1};for(var g in n)if(!("intervalFormatFallback"===g||g.indexOf("B")>-1||(r=this._parseSkeletonFormat(g),u=0,i=[],l=!0,t.length<r.length))){s=0,c=t.length;for(var f=0;f<t.length;f++){if(a=t[f],o=r[s],c===t.length&&(c=f),o){if(h=mt[a.symbol],d=mt[o.symbol],a.symbol===o.symbol){a.length===o.length?c===f&&(c=t.length):(a.length<h.numericCeiling?o.length<d.numericCeiling:o.length>=d.numericCeiling)?u+=Math.abs(a.length-o.length):u+=5,s++;continue}if(a.match==o.match){u+=Math.abs(a.length-o.length)+10,s++;continue}}i.push(a),u+=50-f}s<r.length&&(l=!1),l&&(u<p.distance||u===p.distance&&c>p.firstDiffPos)&&(p.distance=u,p.firstDiffPos=c,p.missingTokens=i,p.pattern=n[g],p.patternTokens=r)}if(p.pattern)return p},_expandFields:function(t,e,n){var r="string"==typeof t,i=(r?[t]:t).map((function(t){var r,i,a,o,s,u,l,c,h,d,p={},g={},f="",m=!1,y=0;for(n.forEach((function(t){p[t.group]=t})),e.forEach((function(t){g[t.group]=t}));y<t.length;){if(d=t.charAt(y),m)f+=d,"'"==d&&(m=!1);else if((l=mt[d])&&p[l.group]&&g[l.group]){for(s=p[l.group],u=g[l.group],c=mt[s.symbol],h=mt[u.symbol],r=s.length,i=u.length,a=1;t.charAt(y+1)==d;)y++,a++;o=r===i||(r<c.numericCeiling?i>=h.numericCeiling:i<h.numericCeiling)?a:Math.max(a,r);for(var _=0;_<o;_++)f+=d}else f+=d,"'"==d&&(m=!0);y++}return f}));return r?i[0]:i},_appendItems:function(t,e,n){var r=this._get(bt(n),"dateTimeFormats","appendItems");return t.forEach(function(n,i){var a,o,s;e.forEach(function(e){o=r[e.group],a="'"+this.getDisplayName(e.field)+"'",s="";for(var u=0;u<e.length;u++)s+=e.symbol;t[i]=o.replace(/\{0\}/,n).replace(/\{1\}/,s).replace(/\{2\}/,a)}.bind(this))}.bind(this)),t},_getMixedFormatPattern:function(t,e,n,r){var i,a,o,s,u,l;return a=(i=/^([GyYqQMLwWEecdD]+)([hHkKjJmszZvVOXx]+)$/.exec(t))[1],o=i[2],u=this._getFormatPattern(a,e,n),l=r?this.getCustomIntervalPattern(o,r,n):this._getFormatPattern(o,e,n),s=/MMMM|LLLL/.test(a)?/E|e|c/.test(a)?"full":"long":/MMM|LLL/.test(a)?"medium":"short",this.getDateTimePattern(s,n).replace(/\{1\}/,u).replace(/\{0\}/,l)},getNumberSymbol:function(t){return it("decimal"==t||"group"==t||"plusSign"==t||"minusSign"==t||"percentSign"==t,"sType must be decimal, group, plusSign, minusSign or percentSign"),this._get("symbols-latn-"+t)},getDecimalPattern:function(){return this._get("decimalFormat").standard},getCurrencyPattern:function(t){return this._get("currencyFormat")[t]||this._get("currencyFormat").standard},getCurrencySpacing:function(t){return this._get("currencyFormat","currencySpacing","after"===t?"afterCurrency":"beforeCurrency")},getPercentPattern:function(){return this._get("percentFormat").standard},getMinimalDaysInFirstWeek:function(){return this._get("weekData-minDays")},getFirstDayOfWeek:function(){return this._get("weekData-firstDay")},getWeekendStart:function(){return this._get("weekData-weekendStart")},getWeekendEnd:function(){return this._get("weekData-weekendEnd")},getCurrencyDigits:function(t){var e=this._get("currency");if(e){if(e[t]&&e[t].hasOwnProperty("digits"))return e[t].digits;if(e.DEFAULT&&e.DEFAULT.hasOwnProperty("digits"))return e.DEFAULT.digits}var n=this._get("currencyDigits",t);return null==n&&null==(n=this._get("currencyDigits","DEFAULT"))&&(n=2),n},getCurrencySymbol:function(t){var e=this._get("currencySymbols");return e&&e[t]||t},getCurrencyCodeBySymbol:function(t){var e,n=this._get("currencySymbols");for(e in n)if(n[e]===t)return e;return t},getUnitDisplayName:function(t){var e=this.getUnitFormat(t);return e&&e.displayName||""},getRelativePatterns:function(t,e){void 0===e&&(e="wide"),it("wide"===e||"short"===e||"narrow"===e,"sStyle is only allowed to be set with 'wide', 'short' or 'narrow'");var n,r,i,a,o=[],s=this.getPluralCategories();return t||(t=["year","month","week","day","hour","minute","second"]),t.forEach(function(t){for(var u in n=this._get("dateFields",t+"-"+e))0===u.indexOf("relative-type-")?(i=parseInt(u.substr(14)),o.push({scale:t,value:i,pattern:n[u]})):0==u.indexOf("relativeTime-type-")&&(r=n[u],a="past"===u.substr(18)?-1:1,s.forEach((function(e){o.push({scale:t,sign:a,pattern:r["relativeTimePattern-count-"+e]})})))}.bind(this)),o},getRelativePattern:function(t,e,n,r){var i,a;return"string"==typeof n&&(r=n,n=void 0),void 0===n&&(n=e>0),void 0===r&&(r="wide"),it("wide"===r||"short"===r||"narrow"===r,"sStyle is only allowed to be set with 'wide', 'short' or 'narrow'"),a=t+"-"+r,0!==e&&-2!==e&&2!==e||(i=this._get("dateFields",a,"relative-type-"+e)),i||(i=this._get("dateFields",a,"relativeTime-type-"+(n?"future":"past"))["relativeTimePattern-count-"+this.getPluralCategory(Math.abs(e).toString())]),i},getRelativeSecond:function(t,e){return this.getRelativePattern("second",t,e)},getRelativeMinute:function(t,e){return 0==t?null:this.getRelativePattern("minute",t,e)},getRelativeHour:function(t,e){return 0==t?null:this.getRelativePattern("hour",t,e)},getRelativeDay:function(t,e){return this.getRelativePattern("day",t,e)},getRelativeWeek:function(t,e){return this.getRelativePattern("week",t,e)},getRelativeMonth:function(t,e){return this.getRelativePattern("month",t,e)},getDisplayName:function(t,e){it("second"==t||"minute"==t||"hour"==t||"zone"==t||"day"==t||"weekday"==t||"week"==t||"month"==t||"quarter"==t||"year"==t||"era"==t,"sType must be second, minute, hour, zone, day, weekday, week, month, quarter, year, era"),void 0===e&&(e="wide"),it("wide"===e||"short"===e||"narrow"===e,"sStyle is only allowed to be set with 'wide', 'short' or 'narrow'");var n=-1===["era","weekday","zone"].indexOf(t)?t+"-"+e:t;return this._get("dateFields",n,"displayName")},getRelativeYear:function(t,e){return this.getRelativePattern("year",t,e)},getDecimalFormat:function(t,e,n){var r,i;switch(t){case"long":i=this._get("decimalFormat-long");break;default:i=this._get("decimalFormat-short")}if(i){var a=e+"-"+n;(r=i[a])||(r=i[a=e+"-other"])}return r},getCurrencyFormat:function(t,e,n){var r,i;if(i=this._get("currencyFormat-short")){var a=e+"-"+n;(r=i[a])||(r=i[a=e+"-other"])}return r},getListFormat:function(t,e){var n=this._get("listPattern-"+(t||"standard")+"-"+(e||"wide"));return n||{}},getResolvedUnitFormat:function(t){return t=this.getUnitFromMapping(t)||t,this.getUnitFormat(t)},getUnitFormat:function(t){return this._get("units","short",t)},getUnitFormats:function(){return this._getMerged("units","short")},getUnitFromMapping:function(t){return this._get("unitMappings",t)},getEras:function(t,e){it("wide"==t||"abbreviated"==t||"narrow"==t,"sWidth must be wide, abbreviate or narrow");var n=this._get(bt(e),"era-"+t),r=[];for(var i in n)r[parseInt(i)]=n[i];return r},getEraDates:function(t){var e=this._get("eras-"+t.toLowerCase()),n=[];for(var r in e)n[parseInt(r)]=e[r];return n},getCalendarWeek:function(t,e){it("wide"==t||"narrow"==t,"sStyle must be wide or narrow");var n="date.week.calendarweek."+t;return sap.ui.getWCCore().getLibraryResourceBundle("sap.ui.core",this.oLocale.toString()).getText(n,e)},getPreferredCalendarType:function(){var t,e,n,r=this._get("calendarPreference"),i=r?r.split(" "):[];for(n=0;n<i.length;n++)for(e in t=i[n].split("-")[0],C)if(t===e.toLowerCase())return e;return C.Gregorian},getPreferredHourSymbol:function(){return this._get("timeData","_preferred")},getPluralCategories:function(){var t=this._get("plurals"),e=Object.keys(t);return e.push("other"),e},getPluralCategory:function(t){var e=this._get("plurals");for(var n in"number"==typeof t&&(t=t.toString()),this._pluralTest||(this._pluralTest={}),e){var r=this._pluralTest[n];if(r||(r=this._parsePluralRule(e[n]),this._pluralTest[n]=r),r(t))return n}return"other"},_parsePluralRule:function(t){var e,n="or",r="and",i="%",a="=",o="!=",s="n",u="i",l="f",c="t",h="v",d="w",p="..",g=",",f=0;function m(t){return e[f]===t&&(f++,!0)}function y(){var t=e[f];return f++,t}e=t.split(" ");var _=function t(){var e,f;return e=function t(){var e,n;if(e=function(){var t,e,n;if(t=function(){var t;if(t=function(){if(m(s))return function(t){return t.n};if(m(u))return function(t){return t.i};if(m(l))return function(t){return t.f};if(m(c))return function(t){return t.t};if(m(h))return function(t){return t.v};if(m(d))return function(t){return t.w};throw new Error("Unknown operand: "+y())}(),m(i)){var e=parseInt(y());return function(n){return t(n)%e}}return t}(),m(a))n=!0;else{if(!m(o))throw new Error("Expected '=' or '!='");n=!1}return e=function(){var t,e,n,r=[];return y().split(g).forEach((function(i){if(1===(t=i.split(p)).length)r.push(parseInt(i));else{e=parseInt(t[0]),n=parseInt(t[1]);for(var a=e;a<=n;a++)r.push(a)}})),function(t){return r}}(),n?function(n){return e(n).indexOf(t(n))>=0}:function(n){return-1===e(n).indexOf(t(n))}}(),m(r))return n=t(),function(t){return e(t)&&n(t)};return e}(),m(n)?(f=t(),function(t){return e(t)||f(t)}):e}();if(f!=e.length)throw new Error("Not completely parsed");return function(t){var e,n,r,i,a=t.indexOf(".");return-1===a?(e=t,n="",r=""):(e=t.substr(0,a),r=(n=t.substr(a+1)).replace(/0+$/,"")),i={n:parseFloat(t),i:parseInt(e),v:n.length,w:r.length,f:parseInt(n),t:parseInt(r)},_(i)}}}),ft={Era:{field:"era",index:0},Year:{field:"year",index:1},Quarter:{field:"quarter",index:2},Month:{field:"month",index:3},Week:{field:"week",index:4},"Day-Of-Week":{field:"weekday",index:5},Day:{field:"day",index:6},DayPeriod:{field:"hour",index:7,diffOnly:!0},Hour:{field:"hour",index:8},Minute:{field:"minute",index:9},Second:{field:"second",index:10},Timezone:{field:"zone",index:11}},mt={G:{group:"Era",match:"Era",numericCeiling:1},y:{group:"Year",match:"Year",numericCeiling:100},Y:{group:"Year",match:"Year",numericCeiling:100},Q:{group:"Quarter",match:"Quarter",numericCeiling:3},q:{group:"Quarter",match:"Quarter",numericCeiling:3},M:{group:"Month",match:"Month",numericCeiling:3},L:{group:"Month",match:"Month",numericCeiling:3},w:{group:"Week",match:"Week",numericCeiling:100},W:{group:"Week",match:"Week",numericCeiling:100},d:{group:"Day",match:"Day",numericCeiling:100},D:{group:"Day",match:"Day",numericCeiling:100},E:{group:"Day-Of-Week",match:"Day-Of-Week",numericCeiling:1},e:{group:"Day-Of-Week",match:"Day-Of-Week",numericCeiling:3},c:{group:"Day-Of-Week",match:"Day-Of-Week",numericCeiling:2},h:{group:"Hour",match:"Hour12",numericCeiling:100},H:{group:"Hour",match:"Hour24",numericCeiling:100},k:{group:"Hour",match:"Hour24",numericCeiling:100},K:{group:"Hour",match:"Hour12",numericCeiling:100},m:{group:"Minute",match:"Minute",numericCeiling:100},s:{group:"Second",match:"Second",numericCeiling:100},z:{group:"Timezone",match:"Timezone",numericCeiling:1},Z:{group:"Timezone",match:"Timezone",numericCeiling:1},O:{group:"Timezone",match:"Timezone",numericCeiling:1},v:{group:"Timezone",match:"Timezone",numericCeiling:1},V:{group:"Timezone",match:"Timezone",numericCeiling:1},X:{group:"Timezone",match:"Timezone",numericCeiling:1},x:{group:"Timezone",match:"Timezone",numericCeiling:1},S:{group:"Other",numericCeiling:100},u:{group:"Other",numericCeiling:100},U:{group:"Other",numericCeiling:1},r:{group:"Other",numericCeiling:100},F:{group:"Other",numericCeiling:100},g:{group:"Other",numericCeiling:100},a:{group:"DayPeriod",numericCeiling:1},b:{group:"Other",numericCeiling:1},B:{group:"Other",numericCeiling:1},A:{group:"Other",numericCeiling:100}},yt={},_t={iw:"he",ji:"yi",in:"id",sh:"sr"},vt=function(){var t,e=lt._cldrLocales,n={};if(e)for(t=0;t<e.length;t++)n[e[t]]=!0;return n}(),wt={};function bt(t){return t||(t=sap.ui.getWCCore().getConfiguration().getCalendarType()),"ca-"+t.toLowerCase()}var Ct=gt.extend("sap.ui.core.CustomLocaleData",{constructor:function(t){gt.apply(this,arguments),this.mCustomData=sap.ui.getWCCore().getFormatSettings().getCustomLocaleData()},_get:function(){var t,e=Array.prototype.slice.call(arguments);0==e[0].indexOf("ca-")&&e[0]==bt()&&(e=e.slice(1)),t=e.join("-");var n=this.mCustomData[t];return null==n&&null==(n=this._getDeep(this.mCustomData,arguments))&&(n=this._getDeep(this.mData,arguments)),n},_getMerged:function(){var e=this._getDeep(this.mData,arguments),n=this._getDeep(this.mCustomData,arguments);return t.extend({},e,n)}});gt.getInstance=function(t){return t.hasPrivateUseSubtag("sapufmt")?new Ct(t):new gt(t)};var Tt=new Map,Dt=function(t){return Tt.get(t)},St=function(t,e){Tt.set(t,e)},Pt=st.extend("sap.ui.core.date.UniversalDate",{constructor:function(){var t=Pt.getClass();return this.createDate(t,arguments)}});Pt.UTC=function(){var t=Pt.getClass();return t.UTC.apply(t,arguments)},Pt.now=function(){return Date.now()},Pt.prototype.createDate=function(t,e){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}},Pt.getInstance=function(t,e){var n,r;return t instanceof Pt&&(t=t.getJSDate()),e||(e=sap.ui.getWCCore().getConfiguration().getCalendarType()),n=Pt.getClass(e),(r=Object.create(n.prototype)).oDate=t,r.sCalendarType=e,r},Pt.getClass=function(t){t||(t=sap.ui.getWCCore().getConfiguration().getCalendarType());var e=Dt(t);if(!e){if(!sap||!sap.ui||!sap.ui.requireSync)throw new Error("Calendar type ["+t+"] is not imported");e=sap.ui.requireSync("sap/ui/core/date/"+t)}return e},["getDate","getMonth","getFullYear","getYear","getDay","getHours","getMinutes","getSeconds","getMilliseconds","getUTCDate","getUTCMonth","getUTCFullYear","getUTCDay","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","getTime","valueOf","getTimezoneOffset","toString","toDateString","setDate","setFullYear","setYear","setMonth","setHours","setMinutes","setSeconds","setMilliseconds","setUTCDate","setUTCFullYear","setUTCMonth","setUTCHours","setUTCMinutes","setUTCSeconds","setUTCMilliseconds"].forEach((function(t){Pt.prototype[t]=function(){return this.oDate[t].apply(this.oDate,arguments)}})),Pt.prototype.getJSDate=function(){return this.oDate},Pt.prototype.getCalendarType=function(){return this.sCalendarType},Pt.prototype.getEra=function(){return Pt.getEraByDate(this.sCalendarType,this.oDate.getFullYear(),this.oDate.getMonth(),this.oDate.getDate())},Pt.prototype.setEra=function(t){},Pt.prototype.getUTCEra=function(){return Pt.getEraByDate(this.sCalendarType,this.oDate.getUTCFullYear(),this.oDate.getUTCMonth(),this.oDate.getUTCDate())},Pt.prototype.setUTCEra=function(t){},Pt.prototype.getWeek=function(){return Pt.getWeekByDate(this.sCalendarType,this.getFullYear(),this.getMonth(),this.getDate())},Pt.prototype.setWeek=function(t){var e=Pt.getFirstDateOfWeek(this.sCalendarType,t.year||this.getFullYear(),t.week);this.setFullYear(e.year,e.month,e.day)},Pt.prototype.getUTCWeek=function(){return Pt.getWeekByDate(this.sCalendarType,this.getUTCFullYear(),this.getUTCMonth(),this.getUTCDate())},Pt.prototype.setUTCWeek=function(t){var e=Pt.getFirstDateOfWeek(this.sCalendarType,t.year||this.getFullYear(),t.week);this.setUTCFullYear(e.year,e.month,e.day)},Pt.prototype.getQuarter=function(){return Math.floor(this.getMonth()/3)},Pt.prototype.getUTCQuarter=function(){return Math.floor(this.getUTCMonth()/3)},Pt.prototype.getDayPeriod=function(){return this.getHours()<12?0:1},Pt.prototype.getUTCDayPeriod=function(){return this.getUTCHours()<12?0:1},Pt.prototype.getTimezoneShort=function(){if(this.oDate.getTimezoneShort)return this.oDate.getTimezoneShort()},Pt.prototype.getTimezoneLong=function(){if(this.oDate.getTimezoneLong)return this.oDate.getTimezoneLong()};var Mt=6048e5;function Et(t,e){for(var n=sap.ui.getWCCore().getFormatSettings().getFormatLocale(),r=gt.getInstance(n),i=r.getMinimalDaysInFirstWeek(),a=sap.ui.getConfiguration().getFirstDateOfWeek()||r.getFirstDayOfWeek(),o=new t(t.UTC(e,0,1)),s=7;o.getUTCDay()!==a;)o.setUTCDate(o.getUTCDate()-1),s--;return s<i&&o.setUTCDate(o.getUTCDate()+7),o}function At(t,e){return Math.floor((e.valueOf()-t.valueOf())/Mt)}Pt.getWeekByDate=function(t,e,n,r){var i,a,o,s,u=sap.ui.getWCCore().getFormatSettings().getFormatLocale(),l=this.getClass(t),c=Et(l,e),h=new l(l.UTC(e,n,r));return"US"===u.getRegion()?i=At(c,h):(o=e+1,s=Et(l,a=e-1),h>=Et(l,o)?(e=o,i=0):h<c?(e=a,i=At(s,h)):i=At(c,h)),{year:e,week:i}},Pt.getFirstDateOfWeek=function(t,e,n){var r=sap.ui.getWCCore().getFormatSettings().getFormatLocale(),i=this.getClass(t),a=Et(i,e),o=new i(a.valueOf()+n*Mt);return"US"===r.getRegion()&&0===n&&a.getUTCFullYear()<e?{year:e,month:0,day:1}:{year:o.getUTCFullYear(),month:o.getUTCMonth(),day:o.getUTCDate()}};var Ut={};function xt(t){var e=sap.ui.getWCCore().getFormatSettings().getFormatLocale(),n=gt.getInstance(e);if(!(r=Ut[t])){var r;(r=n.getEraDates(t))[0]||(r[0]={_start:"1-1-1"});for(var i=0;i<r.length;i++){var a=r[i];a&&(a._start&&(a._startInfo=Ft(a._start)),a._end&&(a._endInfo=Ft(a._end)))}Ut[t]=r}return r}function Ft(t){var e,n,r,i=t.split("-");return""==i[0]?(e=-parseInt(i[1]),n=parseInt(i[2])-1,r=parseInt(i[3])):(e=parseInt(i[0]),n=parseInt(i[1])-1,r=parseInt(i[2])),{timestamp:new Date(0).setUTCFullYear(e,n,r),year:e,month:n,day:r}}Pt.getEraByDate=function(t,e,n,r){for(var i,a=xt(t),o=new Date(0).setUTCFullYear(e,n,r),s=a.length-1;s>=0;s--)if(i=a[s]){if(i._start&&o>=i._startInfo.timestamp)return s;if(i._end&&o<i._endInfo.timestamp)return s}},Pt.getCurrentEra=function(t){var e=new Date;return this.getEraByDate(t,e.getFullYear(),e.getMonth(),e.getDate())},Pt.getEraStartDate=function(t,e){var n=xt(t),r=n[e]||n[0];if(r._start)return r._startInfo};var Ot=Pt.extend("sap.ui.core.date.Buddhist",{constructor:function(){var t=arguments;t.length>1&&(t=kt(t)),this.oDate=this.createDate(Date,t),this.sCalendarType=C.Buddhist}});function Lt(t){var e=Pt.getEraStartDate(C.Buddhist,0).year,n=t.year-e+1;return t.year<1941&&t.month<3&&(n-=1),null===t.year&&(n=void 0),{year:n,month:t.month,day:t.day}}function It(t){var e=Pt.getEraStartDate(C.Buddhist,0).year,n=t.year+e-1;return n<1941&&t.month<3&&(n+=1),null===t.year&&(n=void 0),{year:n,month:t.month,day:t.day}}function kt(t){var e;return e=It({year:t[0],month:t[1],day:void 0!==t[2]?t[2]:1}),t[0]=e.year,t}Ot.UTC=function(){var t=kt(arguments);return Date.UTC.apply(Date,t)},Ot.now=function(){return Date.now()},Ot.prototype._getBuddhist=function(){return Lt({year:this.oDate.getFullYear(),month:this.oDate.getMonth(),day:this.oDate.getDate()})},Ot.prototype._setBuddhist=function(t){var e=It(t);return this.oDate.setFullYear(e.year,e.month,e.day)},Ot.prototype._getUTCBuddhist=function(){return Lt({year:this.oDate.getUTCFullYear(),month:this.oDate.getUTCMonth(),day:this.oDate.getUTCDate()})},Ot.prototype._setUTCBuddhist=function(t){var e=It(t);return this.oDate.setUTCFullYear(e.year,e.month,e.day)},Ot.prototype.getYear=function(){return this._getBuddhist().year},Ot.prototype.getFullYear=function(){return this._getBuddhist().year},Ot.prototype.getUTCFullYear=function(){return this._getUTCBuddhist().year},Ot.prototype.setYear=function(t){var e=this._getBuddhist();return e.year=t,this._setBuddhist(e)},Ot.prototype.setFullYear=function(t,e,n){var r=this._getBuddhist();return r.year=t,void 0!==e&&(r.month=e),void 0!==n&&(r.day=n),this._setBuddhist(r)},Ot.prototype.setUTCFullYear=function(t,e,n){var r=this._getUTCBuddhist();return r.year=t,void 0!==e&&(r.month=e),void 0!==n&&(r.day=n),this._setUTCBuddhist(r)},Ot.prototype.getWeek=function(){return Pt.getWeekByDate(this.sCalendarType,this.oDate.getFullYear(),this.getMonth(),this.getDate())},Ot.prototype.getUTCWeek=function(){return Pt.getWeekByDate(this.sCalendarType,this.oDate.getUTCFullYear(),this.getUTCMonth(),this.getUTCDate())},St(C.Buddhist,Ot);var Rt=Pt.extend("sap.ui.core.date.Islamic",{constructor:function(){var t=arguments;t.length>1&&(t=zt(t)),this.oDate=this.createDate(Date,t),this.sCalendarType=C.Islamic}});Rt.UTC=function(){var t=zt(arguments);return Date.UTC.apply(Date,t)},Rt.now=function(){return Date.now()};var Nt=1721425.5,jt=1948439.5,Wt=-425215872e5,Vt=864e5,$t=null;function Yt(t){var e,n,r,i,a,o,s,u=t.year,l=t.month,c=t.day;if(o=0,l+1>2&&(o=Gt(u)?-1:-2),s=Nt-1+365*(u-1)+Math.floor((u-1)/4)+-Math.floor((u-1)/100)+Math.floor((u-1)/400)+Math.floor((367*(l+1)-362)/12+o+c),a=(s=Math.floor(s)+.5)-jt,(i=Math.floor(a/29.530588853))<0)(n=i%12)<0&&(n+=12),r=a-Zt(e=Math.floor(i/12)+1,n)+1;else{for(i++;Jt(i)>a;)i--;r=a-Jt(12*((e=Math.floor(i/12)+1)-1)+(n=i%12))+1}return{day:r,month:n,year:e}}function Bt(t){var e,n,r,i,a,o=t.year,s=t.month,u=t.day+(o<1?Zt(o,s):Jt(12*(o-1)+s))+jt-1,l=Math.floor(u-.5)+.5,c=l-Nt,h=Math.floor(c/146097),d=qt(c,146097),p=Math.floor(d/36524),g=qt(d,36524),f=Math.floor(g/1461),m=qt(g,1461),y=Math.floor(m/365),_=400*h+100*p+4*f+y;return 4!=p&&4!=y&&_++,n=l-(Nt+365*(_-1)+Math.floor((_-1)/4)-Math.floor((_-1)/100)+Math.floor((_-1)/400)),i=0,i=l<Nt-1+365*(_-1)+Math.floor((_-1)/4)-Math.floor((_-1)/100)+Math.floor((_-1)/400)+Math.floor(739/12+(Gt(_)?-1:-2)+1)?0:Gt(_)?1:2,e=Math.floor((12*(n+i)+373)/367),r=Nt-1+365*(_-1)+Math.floor((_-1)/4)-Math.floor((_-1)/100)+Math.floor((_-1)/400),a=0,e>2&&(a=Gt(_)?-1:-2),{day:l-(r+=Math.floor((367*e-362)/12+a+1))+1,month:e-1,year:_}}function zt(t){var e,n=Array.prototype.slice.call(t);return e=Bt({year:t[0],month:t[1],day:void 0!==t[2]?t[2]:1}),n[0]=e.year,n[1]=e.month,n[2]=e.day,n}function Ht(t){return{year:parseInt(t.substr(0,4)),month:parseInt(t.substr(4,2)),day:parseInt(t.substr(6,2))}}function Jt(t){var e,n;$t||($t={},e=sap.ui.getWCCore().getFormatSettings().getLegacyDateFormat(),n=(n=sap.ui.getWCCore().getFormatSettings().getLegacyDateCalendarCustomizing())||[],e||n.length?e&&!n.length||!e&&n.length?Z.warning("There is an inconsistency between customization data ["+JSON.stringify(n)+"] and the date format ["+e+"]. Calendar customization won't be used."):(n.forEach((function(t){if(t.dateFormat===e){var n=Ht(t.gregDate),r=(new Date(Date.UTC(n.year,n.month-1,n.day)).getTime()-Wt)/Vt,i=12*((n=Ht(t.islamicMonthStart)).year-1)+n.month-1;$t[i]=r}})),Z.info("Working with date format: ["+e+"] and customization: "+JSON.stringify(n))):Z.info("No calendar customizations."));var r=$t[t];r||(r=Zt(Math.floor(t/12)+1,t%12));return r}function Zt(t,e){return Math.ceil(29.5*e)+354*(t-1)+Math.floor((3+11*t)/30)}function qt(t,e){return t-e*Math.floor(t/e)}function Gt(t){return!(t%400&&(t%4||!(t%100)))}Rt.prototype._getIslamic=function(){return Yt({day:this.oDate.getDate(),month:this.oDate.getMonth(),year:this.oDate.getFullYear()})},Rt.prototype._setIslamic=function(t){var e=Bt(t);return this.oDate.setFullYear(e.year,e.month,e.day)},Rt.prototype._getUTCIslamic=function(){return Yt({day:this.oDate.getUTCDate(),month:this.oDate.getUTCMonth(),year:this.oDate.getUTCFullYear()})},Rt.prototype._setUTCIslamic=function(t){var e=Bt(t);return this.oDate.setUTCFullYear(e.year,e.month,e.day)},Rt.prototype.getDate=function(t){return this._getIslamic().day},Rt.prototype.getMonth=function(){return this._getIslamic().month},Rt.prototype.getYear=function(){return this._getIslamic().year-1400},Rt.prototype.getFullYear=function(){return this._getIslamic().year},Rt.prototype.setDate=function(t){var e=this._getIslamic();return e.day=t,this._setIslamic(e)},Rt.prototype.setMonth=function(t,e){var n=this._getIslamic();return n.month=t,void 0!==e&&(n.day=e),this._setIslamic(n)},Rt.prototype.setYear=function(t){var e=this._getIslamic();return e.year=t+1400,this._setIslamic(e)},Rt.prototype.setFullYear=function(t,e,n){var r=this._getIslamic();return r.year=t,void 0!==e&&(r.month=e),void 0!==n&&(r.day=n),this._setIslamic(r)},Rt.prototype.getUTCDate=function(t){return this._getUTCIslamic().day},Rt.prototype.getUTCMonth=function(){return this._getUTCIslamic().month},Rt.prototype.getUTCFullYear=function(){return this._getUTCIslamic().year},Rt.prototype.setUTCDate=function(t){var e=this._getUTCIslamic();return e.day=t,this._setUTCIslamic(e)},Rt.prototype.setUTCMonth=function(t,e){var n=this._getUTCIslamic();return n.month=t,void 0!==e&&(n.day=e),this._setUTCIslamic(n)},Rt.prototype.setUTCFullYear=function(t,e,n){var r=this._getUTCIslamic();return r.year=t,void 0!==e&&(r.month=e),void 0!==n&&(r.day=n),this._setUTCIslamic(r)},St(C.Islamic,Rt);var Qt=Pt.extend("sap.ui.core.date.Japanese",{constructor:function(){var t=arguments;t.length>1&&(t=te(t)),this.oDate=this.createDate(Date,t),this.sCalendarType=C.Japanese}});function Xt(t){var e=Pt.getEraByDate(C.Japanese,t.year,t.month,t.day),n=Pt.getEraStartDate(C.Japanese,e).year;return{era:e,year:t.year-n+1,month:t.month,day:t.day}}function Kt(t){return{year:Pt.getEraStartDate(C.Japanese,t.era).year+t.year-1,month:t.month,day:t.day}}function te(t){var e,n=t[0];if("number"==typeof n){if(n>=100)return t;n=[Pt.getCurrentEra(C.Japanese),n]}else Array.isArray(n)||(n=[]);return e=Kt({era:n[0],year:n[1],month:t[1],day:void 0!==t[2]?t[2]:1}),t[0]=e.year,t}Qt.UTC=function(){var t=te(arguments);return Date.UTC.apply(Date,t)},Qt.now=function(){return Date.now()},Qt.prototype._getJapanese=function(){return Xt({year:this.oDate.getFullYear(),month:this.oDate.getMonth(),day:this.oDate.getDate()})},Qt.prototype._setJapanese=function(t){var e=Kt(t);return this.oDate.setFullYear(e.year,e.month,e.day)},Qt.prototype._getUTCJapanese=function(){return Xt({year:this.oDate.getUTCFullYear(),month:this.oDate.getUTCMonth(),day:this.oDate.getUTCDate()})},Qt.prototype._setUTCJapanese=function(t){var e=Kt(t);return this.oDate.setUTCFullYear(e.year,e.month,e.day)},Qt.prototype.getYear=function(){return this._getJapanese().year},Qt.prototype.getFullYear=function(){return this._getJapanese().year},Qt.prototype.getEra=function(){return this._getJapanese().era},Qt.prototype.getUTCFullYear=function(){return this._getUTCJapanese().year},Qt.prototype.getUTCEra=function(){return this._getUTCJapanese().era},Qt.prototype.setYear=function(t){var e=this._getJapanese();return e.year=t,this._setJapanese(e)},Qt.prototype.setFullYear=function(t,e,n){var r=this._getJapanese();return r.year=t,void 0!==e&&(r.month=e),void 0!==n&&(r.day=n),this._setJapanese(r)},Qt.prototype.setEra=function(t,e,n,r){var i=Xt(Pt.getEraStartDate(C.Japanese,t));return void 0!==e&&(i.year=e),void 0!==n&&(i.month=n),void 0!==r&&(i.day=r),this._setJapanese(i)},Qt.prototype.setUTCFullYear=function(t,e,n){var r=this._getUTCJapanese();return r.year=t,void 0!==e&&(r.month=e),void 0!==n&&(r.day=n),this._setUTCJapanese(r)},Qt.prototype.setUTCEra=function(t,e,n,r){var i=Xt(Pt.getEraStartDate(C.Japanese,t));return void 0!==e&&(i.year=e),void 0!==n&&(i.month=n),void 0!==r&&(i.day=r),this._setUTCJapanese(i)},Qt.prototype.getWeek=function(){return Pt.getWeekByDate(this.sCalendarType,this.oDate.getFullYear(),this.getMonth(),this.getDate())},Qt.prototype.getUTCWeek=function(){return Pt.getWeekByDate(this.sCalendarType,this.oDate.getUTCFullYear(),this.getUTCMonth(),this.getUTCDate())},St(C.Japanese,Qt);var ee=Pt.extend("sap.ui.core.date.Persian",{constructor:function(){var t=arguments;t.length>1&&(t=ie(t)),this.oDate=this.createDate(Date,t),this.sCalendarType=C.Persian}});ee.UTC=function(){var t=ie(arguments);return Date.UTC.apply(Date,t)},ee.now=function(){return Date.now()};function ne(t){return function(t){var e,n,r,i=se(t).year,a=i-621,o=ae(a),s=oe(i,3,o.march);if((r=t-s)>=0){if(r<=185)return n=1+ue(r,31),e=le(r,31)+1,{year:a,month:n-1,day:e};r-=186}else a-=1,r+=179,1===o.leap&&(r+=1);return n=7+ue(r,30),e=le(r,30)+1,{year:a,month:n-1,day:e}}(oe(t.year,t.month+1,t.day))}function re(t){return se(function(t,e,n){for(;e<1;)e+=12,t--;for(;e>12;)e-=12,t++;var r=ae(t);return oe(r.gy,3,r.march)+31*(e-1)-ue(e,7)*(e-7)+n-1}(t.year,t.month+1,t.day))}function ie(t){var e,n=Array.prototype.slice.call(t);return"number"!=typeof t[0]||"number"!=typeof t[1]||void 0!==t[2]&&"number"!=typeof t[2]?(n[0]=NaN,n[1]=NaN,n[2]=NaN,n):(e=re({year:t[0],month:t[1],day:void 0!==t[2]?t[2]:1}),n[0]=e.year,n[1]=e.month,n[2]=e.day,n)}function ae(t){var e,n,r,i,a,o,s=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178],u=s.length,l=t+621,c=-14,h=s[0];for(o=1;o<u&&(n=(e=s[o])-h,!(t<e));o+=1)c=c+8*ue(n,33)+ue(le(n,33),4),h=e;return c=c+8*ue(a=t-h,33)+ue(le(a,33)+3,4),4===le(n,33)&&n-a==4&&(c+=1),i=20+c-(ue(l,4)-ue(3*(ue(l,100)+1),4)-150),n-a<6&&(a=a-n+33*ue(n+4,33)),-1===(r=le(le(a+1,33)-1,4))&&(r=4),{leap:r,gy:l,march:i}}function oe(t,e,n){var r=ue(1461*(t+ue(e-8,6)+100100),4)+ue(153*le(e+9,12)+2,5)+n-34840408;return r=r-ue(3*ue(t+100100+ue(e-8,6),100),4)+752}function se(t){var e,n,r,i;return e=(e=4*t+139361631)+4*ue(3*ue(4*t+183187720,146097),4)-3908,n=5*ue(le(e,1461),4)+308,r=ue(le(n,153),5)+1,i=le(ue(n,153),12)+1,{year:ue(e,1461)-100100+ue(8-i,6),month:i-1,day:r}}function ue(t,e){return~~(t/e)}function le(t,e){return t-~~(t/e)*e}ee.prototype._getPersian=function(){return ne({day:this.oDate.getDate(),month:this.oDate.getMonth(),year:this.oDate.getFullYear()})},ee.prototype._setPersian=function(t){var e=re(t);return this.oDate.setFullYear(e.year,e.month,e.day)},ee.prototype._getUTCPersian=function(){return ne({day:this.oDate.getUTCDate(),month:this.oDate.getUTCMonth(),year:this.oDate.getUTCFullYear()})},ee.prototype._setUTCPersian=function(t){var e=re(t);return this.oDate.setUTCFullYear(e.year,e.month,e.day)},ee.prototype.getDate=function(t){return this._getPersian().day},ee.prototype.getMonth=function(){return this._getPersian().month},ee.prototype.getYear=function(){return this._getPersian().year-1300},ee.prototype.getFullYear=function(){return this._getPersian().year},ee.prototype.setDate=function(t){var e=this._getPersian();return e.day=t,this._setPersian(e)},ee.prototype.setMonth=function(t,e){var n=this._getPersian();return n.month=t,void 0!==e&&(n.day=e),this._setPersian(n)},ee.prototype.setYear=function(t){var e=this._getPersian();return e.year=t+1300,this._setPersian(e)},ee.prototype.setFullYear=function(t,e,n){var r=this._getPersian();return r.year=t,void 0!==e&&(r.month=e),void 0!==n&&(r.day=n),this._setPersian(r)},ee.prototype.getUTCDate=function(t){return this._getUTCPersian().day},ee.prototype.getUTCMonth=function(){return this._getUTCPersian().month},ee.prototype.getUTCFullYear=function(){return this._getUTCPersian().year},ee.prototype.setUTCDate=function(t){var e=this._getUTCPersian();return e.day=t,this._setUTCPersian(e)},ee.prototype.setUTCMonth=function(t,e){var n=this._getUTCPersian();return n.month=t,void 0!==e&&(n.day=e),this._setUTCPersian(n)},ee.prototype.setUTCFullYear=function(t,e,n){var r=this._getUTCPersian();return r.year=t,void 0!==e&&(r.month=e),void 0!==n&&(r.day=n),this._setUTCPersian(r)},St(C.Persian,ee),
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @author Jerry Bendy <jerry@icewingcc.com>
|
|
6
|
-
* @licence MIT
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
function(t){var e,n=t.URLSearchParams&&t.URLSearchParams.prototype.get?t.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),i=n&&"+"===new n("s=%2B").get("s"),a="__URLSearchParams__",o=!n||((e=new n).append("s"," &"),"s=+%26"===e.toString()),s=h.prototype,u=!(!t.Symbol||!t.Symbol.iterator);if(!(n&&r&&i&&o)){s.append=function(t,e){m(this[a],t,e)},s.delete=function(t){delete this[a][t]},s.get=function(t){var e=this[a];return t in e?e[t][0]:null},s.getAll=function(t){var e=this[a];return t in e?e[t].slice(0):[]},s.has=function(t){return t in this[a]},s.set=function(t,e){this[a][t]=[""+e]},s.toString=function(){var t,e,n,r,i=this[a],o=[];for(e in i)for(n=d(e),t=0,r=i[e];t<r.length;t++)o.push(n+"="+d(r[t]));return o.join("&")};var l=!!i&&n&&!r&&t.Proxy;Object.defineProperty(t,"URLSearchParams",{value:l?new Proxy(n,{construct:function(t,e){return new t(new h(e[0]).toString())}}):h});var c=t.URLSearchParams.prototype;c.polyfill=!0,c.forEach=c.forEach||function(t,e){var n=f(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){t.call(e,n,r,this)}),this)}),this)},c.sort=c.sort||function(){var t,e,n,r=f(this.toString()),i=[];for(t in r)i.push(t);for(i.sort(),e=0;e<i.length;e++)this.delete(i[e]);for(e=0;e<i.length;e++){var a=i[e],o=r[a];for(n=0;n<o.length;n++)this.append(a,o[n])}},c.keys=c.keys||function(){var t=[];return this.forEach((function(e,n){t.push(n)})),g(t)},c.values=c.values||function(){var t=[];return this.forEach((function(e){t.push(e)})),g(t)},c.entries=c.entries||function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),g(t)},u&&(c[t.Symbol.iterator]=c[t.Symbol.iterator]||c.entries)}function h(t){((t=t||"")instanceof URLSearchParams||t instanceof h)&&(t=t.toString()),this[a]=f(t)}function d(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function p(t){return decodeURIComponent(t.replace(/\+/g," "))}function g(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return u&&(n[t.Symbol.iterator]=function(){return n}),n}function f(t){var e={};if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&m(e,n,t[n]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var r=t.split("&"),i=0;i<r.length;i++){var a=r[i],o=a.indexOf("=");-1<o?m(e,p(a.slice(0,o)),p(a.slice(o+1))):a&&m(e,p(a),"")}}return e}function m(t,e,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);e in t?t[e].push(r):t[e]=[r]}}("undefined"!=typeof global?global:window);(()=>{if(!window.ShadyDOM)return;const t=Object.getOwnPropertyDescriptor(Node.prototype,"nodeValue");Object.defineProperty(Node.prototype,"nodeValue",{get(){return t.get.apply(this)},set(e){t.set.apply(this,arguments);const n=this.parentNode;n instanceof HTMLElement&&n.isUI5Element&&n._processChildren()}})})();var ce=function(){var t,e,n,r,i,a,s=arguments[0]||{},u=1,l=arguments.length;for("object"!=typeof s&&"function"!=typeof s&&(s={});u<l;u++)for(r in i=arguments[u])t=s[r],s!==(n=i[r])&&(n&&(o(n)||(e=Array.isArray(n)))?(e?(e=!1,a=Array.isArray(t)?t:[]):a=t&&o(t)?t:{},s[r]=ce(a,n)):s[r]=n);return s};const he=(t,e={})=>{const n=document.createElement("style");return n.type="text/css",Object.entries(e).forEach(t=>n.setAttribute(...t)),n.textContent=t,document.head.appendChild(n),n},de={};let pe;const ge=()=>!!window.CSSVarsPonyfill,fe=()=>{pe=void 0,window.CSSVarsPonyfill.cssVars({rootElement:document.head,include:"style[data-ui5-theme-properties],style[data-ui5-element-styles]",silent:!0})},me=(t,e)=>{he(e,{"data-ui5-element-styles":t,disabled:"disabled"}),ge()&&(pe||(pe=window.setTimeout(fe,0)))},ye=[],_e=async t=>{let e="";j().forEach(async n=>{e=await(async(t,e)=>{const n=L.get(`${t}_${e}`);if(n)return n;if(!k.has(e)){const e=[...k.values()].join(", ");return console.warn(`You have requested a non-registered theme - falling back to sap_fiori_3. Registered themes are: ${e}`),L.get(`${t}_sap_fiori_3`)}const r=await N(t,e);return L.set(`${t}_${e}`,r._),r._})(n,t),((t,e)=>{const n=document.head.querySelector(`style[data-ui5-theme-properties="${e}"]`);if(n)n.textContent=t||"";else{he(t,{"data-ui5-theme-properties":e})}ge()&&fe()})(e,n)}),ve(t)},ve=t=>{ye.forEach(e=>e(t))},we=t=>{const e=(t=>de[t]?de[t].join(""):"")(t.getMetadata().getTag())||"";let n=t.styles;return Array.isArray(n)&&(n=n.join(" ")),`${n} ${e}`};let be=(()=>(m(),p.theme))();const Ce=()=>be;let Te;let De;const Se=()=>De||(De=new Promise(async t=>{await(()=>new Promise(t=>{document.body?t():document.addEventListener("DOMContentLoaded",()=>{t()})}))(),await _e(Ce()),document.querySelector("head>style[data-ui5-font-face]")||he('\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local("72"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff?ui5-webcomponents) format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local(\'72-full\'),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff?ui5-webcomponents) format("woff");\n\t\t\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold\'),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff?ui5-webcomponents) format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold-full\'),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff?ui5-webcomponents) format("woff");\n\t}\n',{"data-ui5-font-face":""}),await(()=>Te||(Te=new Promise(t=>{window.WebComponents&&!window.WebComponents.ready&&window.WebComponents.waitFor?window.WebComponents.waitFor(()=>{t()}):t()}),Te))(),t()}),De),Pe=["value-changed"];let Me=(()=>(m(),p.noConflict))();const Ee=t=>!(t=>Pe.includes(t))(t)&&(!0===Me||!(t=>!(Me.events&&Me.events.includes&&Me.events.includes(t)))(t)),Ae=window,Ue=new WeakMap;class xe{constructor(){throw new Error("Static class")}static observeDOMNode(t,e,n){let r=Ue.get(t);if(r)throw new Error("A mutation/ShadyDOM observer is already assigned to this node.");Ae.ShadyDOM?r=Ae.ShadyDOM.observeChildren(t,e):(r=new MutationObserver(e),r.observe(t,n)),Ue.set(t,r)}static unobserveDOMNode(t){const e=Ue.get(t);e&&(e instanceof MutationObserver?e.disconnect():Ae.ShadyDOM.unobserveChildren(e),Ue.delete(t))}}class Fe{static isValid(t){}static generataTypeAcessors(t){Object.keys(t).forEach(e=>{Object.defineProperty(this,e,{get:()=>t[e]})})}}const Oe=t=>Ie(t.split("-")),Le=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ie=t=>t.map((t,e)=>0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join("");class ke{constructor(t){this.metadata=t}static validatePropertyValue(t,e){return e.multiple?t.map(t=>Re(t,e)):Re(t,e)}static validateSlotValue(t,e){return Ne(t,e)}getTag(){return this.metadata.tag}hasAttribute(t){const e=this.getProperties()[t];return e.type!==Object&&!e.noAttribute}getPropertiesList(){return Object.keys(this.getProperties())}getAttributesList(){return this.getPropertiesList().filter(this.hasAttribute,this).map(Le)}getSlots(){return this.metadata.slots||{}}hasSlots(){return!!Object.entries(this.getSlots()).length}getProperties(){return this.metadata.properties||{}}getEvents(){return this.metadata.events||{}}}const Re=(t,e)=>{const n=e.type;return n===Boolean?"boolean"==typeof t&&t:n===String?"string"==typeof t||null==t?t:t.toString():n===Object?"object"==typeof t?t:e.defaultValue:((t,e,n=!1)=>{if("function"!=typeof t||"function"!=typeof e)return!1;if(n&&t===e)return!0;let r=t;do{r=Object.getPrototypeOf(r)}while(null!==r&&r!==e);return r===e})(n,Fe)?n.isValid(t)?t:e.defaultValue:void 0},Ne=(t,e)=>{if(null===t)return t;return(t=>{return t instanceof HTMLElement&&"slot"===t.localName?t.assignedNodes({flatten:!0}).filter(t=>t instanceof HTMLElement):[t]})(t).forEach(t=>{if(!(t instanceof e.type))throw new Error(`${t} is not of type ${e.type}`)}),t},je=()=>{let t=document.querySelector("ui5-static-area");if(t)return t;const e=document.body;return t=document.createElement("ui5-static-area"),e.insertBefore(t,e.firstChild)},We=()=>{je().destroy()};class Ve extends HTMLElement{constructor(){super()}get isUI5Element(){return!0}destroy(){const t=document.querySelector(this.tagName.toLowerCase());t.parentElement.removeChild(t)}}customElements.get("ui5-static-area")||customElements.define("ui5-static-area",Ve);class $e{constructor(t){this.ui5ElementContext=t}_updateFragment(){const t=this.ui5ElementContext.constructor.staticAreaTemplate(this.ui5ElementContext),e=this.ui5ElementContext.constructor.staticAreaStyles||!1;this.staticAreaItemDomRef||(this.staticAreaItemDomRef=document.createElement("ui5-static-area-item"),this.staticAreaItemDomRef.attachShadow({mode:"open"}),this.staticAreaItemDomRef.classList.add(this.ui5ElementContext._id),je().appendChild(this.staticAreaItemDomRef)),this.ui5ElementContext.constructor.render(t,this.staticAreaItemDomRef.shadowRoot,e,{eventContext:this.ui5ElementContext})}_removeFragmentFromStaticArea(){const t=je();t.removeChild(this.staticAreaItemDomRef),this.staticAreaItemDomRef=null,t.childElementCount<1&&We()}getDomRef(){return this.staticAreaItemDomRef.shadowRoot}}class Ye extends HTMLElement{constructor(){super()}get isUI5Element(){return!0}}customElements.get("ui5-static-area-item")||customElements.define("ui5-static-area-item",Ye);class Be extends Fe{static isValid(t){return Number.isInteger(t)}}const ze=10;let He;const Je=new class{constructor(){this.list=[],this.promises=new Map}add(t){if(this.promises.has(t))return this.promises.get(t);let e;const n=new Promise(t=>{e=t});return n._deferredResolve=e,this.list.push(t),this.promises.set(t,n),n}shift(){const t=this.list.shift();if(t){const e=this.promises.get(t);return this.promises.delete(t),{webComponent:t,promise:e}}}getList(){return this.list}isAdded(t){return this.promises.has(t)}};let Ze,qe,Ge,Qe;class Xe{constructor(){throw new Error("Static class")}static renderDeferred(t){const e=Je.add(t);return Xe.scheduleRenderTask(),e}static renderImmediately(t){const e=Je.add(t);return Xe.runRenderTask(),e}static scheduleRenderTask(){He||(He=window.requestAnimationFrame(Xe.renderWebComponents))}static runRenderTask(){He||(He=1,Xe.renderWebComponents())}static renderWebComponents(){let t,e,n;const r=new Map;for(;t=Je.shift();){e=t.webComponent,n=t.promise;const i=r.get(e)||0;if(i>ze)throw new Error(`Web component re-rendered too many times this task, max allowed is: ${ze}`);e._render(),n._deferredResolve(),r.set(e,i+1)}Qe||(Qe=setTimeout(()=>{Qe=void 0,0===Je.getList().length&&Xe._resolveTaskPromise()},200)),He=void 0}static whenDOMUpdated(){return Ze||(Ze=new Promise(t=>{qe=t,window.requestAnimationFrame(()=>{0===Je.getList().length&&(Ze=void 0,t())})}),Ze)}static getNotDefinedComponents(){return Array.from(document.querySelectorAll("*")).filter(t=>t.localName.startsWith("ui5-")&&!t.isUI5Element)}static async whenShadowDOMReady(){const t=this.getNotDefinedComponents().map(t=>customElements.whenDefined(t.localName)),e=new Promise(t=>setTimeout(t,5e3));await Promise.race([Promise.all(t),e]);const n=this.getNotDefinedComponents();return n.length&&console.warn("undefined elements after 5 seconds are: "+[...n].map(t=>t.localName).join(" ; ")),Promise.resolve()}static async whenFinished(){await Xe.whenShadowDOMReady(),await Xe.whenDOMUpdated()}static _resolveTaskPromise(){Je.getList().length>0||qe&&(qe.call(this,Ge),qe=void 0,Ze=void 0)}}const Ke=(t,e,n,r)=>{const i=n+e.length,a=t.charAt(i),o=t.substring(0,n)+r;if("("===a){const e=((t,e)=>{let n=1;for(let r=e+1;r<t.length;r++){const e=t.charAt(r);if("("===e?n++:")"===e&&n--,0===n)return r}})(t,i);return o+t.substring(i+1,e)+t.substring(e+1)}return o+t.substring(i)},tn=(t,e)=>(t=((t,e,n)=>{let r=t.indexOf(e);for(;-1!==r;)r=(t=Ke(t,e,r,n)).indexOf(e);return t})(t=t.trim(),"::slotted","")).startsWith(":host")?Ke(t,":host",0,e):t.match(/^[@0-9]/)||"to"===t||"to{"===t?t:t.match(new RegExp(`^${e}[^a-zA-Z0-9-]`))?t:`${e} ${t}`,en=new Map,nn=new Set,rn=t=>{const e=t.getMetadata().getTag();if(nn.has(e))return;let n=we(t);n=((t,e)=>{t=(t=t.replace(/\n/g," ")).replace(/([{}])/g,"$1\n");let n="";return t.split("\n").forEach(t=>{if(t.match(/{$/)){const n=t.split(",");t=n.map(t=>tn(t,e)).join(",")}n=`${n}${t}`}),n})(n,e),me(e,n),nn.add(e)},an=t=>{const e=t.getMetadata().getTag(),n=we(t);if(en.has(e))return en.get(e);const r=new CSSStyleSheet;return r.replaceSync(n),en.set(e,r),r},on=t=>{if("disabled"===t)return!0;return![HTMLElement,Element,Node].some(e=>e.prototype.hasOwnProperty(t))},sn={events:{_propertyChange:{}}},un=new Set,ln=new Map,cn=new Map;class hn extends HTMLElement{constructor(){let t;super(),this._generateId(),this._initializeState(),this._upgradeAllProperties(),this._initializeContainers(),this._domRefReadyPromise=new Promise(e=>{t=e}),this._domRefReadyPromise._deferredResolve=t,this._monitoredChildProps=new Map}_generateId(){this._id=this.constructor._nextID()}_initializeContainers(){if(this.constructor._needsShadowDOM()&&(this.attachShadow({mode:"open"}),window.ShadyDOM&&rn(this.constructor),document.adoptedStyleSheets)){const t=an(this.constructor);this.shadowRoot.adoptedStyleSheets=[t]}this.constructor._needsStaticArea()&&(this.staticAreaItem=new $e(this))}async connectedCallback(){this.constructor._needsShadowDOM()&&(this._startObservingDOMChildren(),await this._processChildren(),await Xe.renderImmediately(this),this._domRefReadyPromise._deferredResolve(),"function"==typeof this.onEnterDOM&&this.onEnterDOM()),this.constructor._needsStaticArea()&&this.staticAreaItem._updateFragment(this)}disconnectedCallback(){this.constructor._needsShadowDOM()&&(this._stopObservingDOMChildren(),"function"==typeof this.onExitDOM&&this.onExitDOM()),this.constructor._needsStaticArea()&&this.staticAreaItem._removeFragmentFromStaticArea()}_startObservingDOMChildren(){if(!this.constructor.getMetadata().hasSlots())return;xe.observeDOMNode(this,this._processChildren.bind(this),{childList:!0,subtree:!0,characterData:!0})}_stopObservingDOMChildren(){xe.unobserveDOMNode(this)}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots()}async _updateSlots(){const t=this.constructor.getMetadata().getSlots(),e=t.default&&t.default.type===Node,n=Array.from(e?this.childNodes:this.children);for(const[e,n]of Object.entries(t))this._clearSlot(e);const r=new Map,i=new Map,a=n.map(async(e,n)=>{const a=this.constructor._getSlotName(e),o=t[a];if(void 0===o){const n=Object.keys(t).join(", ");return void console.warn(`Unknown slotName: ${a}, ignoring`,e,`Valid values are: ${n}`)}if(o.individualSlots){const t=(r.get(a)||0)+1;r.set(a,t),e._individualSlot=`${a}-${t}`}if(e instanceof HTMLElement){const t=e.localName;if(t.includes("-")){if(!window.customElements.get(t)){const e=window.customElements.whenDefined(t);let n=cn.get(t);n||(n=new Promise(t=>setTimeout(t,1e3)),cn.set(t,n)),await Promise.race([e,n])}window.customElements.upgrade(e)}}(e=this.constructor.getMetadata().constructor.validateSlotValue(e,o)).isUI5Element&&this._attachChildPropertyUpdated(e,o);const s=o.propertyName||a;i.has(s)?i.get(s).push({child:e,idx:n}):i.set(s,[{child:e,idx:n}])});await Promise.all(a),i.forEach((t,e)=>{this._state[e]=t.sort((t,e)=>t.idx-e.idx).map(t=>t.child)}),this._invalidate()}_clearSlot(t){const e=this.constructor.getMetadata().getSlots()[t].propertyName||t;let n=this._state[e];Array.isArray(n)||(n=[n]),n.forEach(t=>{t&&t.isUI5Element&&this._detachChildPropertyUpdated(t)}),this._state[e]=[],this._invalidate(e,[])}attributeChangedCallback(t,e,n){const r=this.constructor.getMetadata().getProperties(),i=t.replace(/^ui5-/,""),a=Oe(i);if(r.hasOwnProperty(a)){const t=r[a].type;t===Boolean&&(n=null!==n),t===Be&&(n=parseInt(n)),this[a]=n}}_updateAttribute(t,e){if(!this.constructor.getMetadata().hasAttribute(t))return;if("object"==typeof e)return;const n=Le(t),r=this.getAttribute(n);"boolean"==typeof e?!0===e&&null===r?this.setAttribute(n,""):!1===e&&null!==r&&this.removeAttribute(n):r!==e&&this.setAttribute(n,e)}_upgradeProperty(t){if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this[t]=e}}_upgradeAllProperties(){this.constructor.getMetadata().getPropertiesList().forEach(this._upgradeProperty,this)}_initializeState(){const t=this.constructor._getDefaultState();this._state=Object.assign({},t)}_attachChildPropertyUpdated(t,e){const n=e.listenFor,r=t.constructor.getMetadata(),i=this.constructor._getSlotName(t),a=r.getProperties();let o=[],s=[];n&&(Array.isArray(n)?o=n:(o=Array.isArray(n.props)?n.props:Object.keys(a),s=Array.isArray(n.exclude)?n.exclude:[]),this._monitoredChildProps.has(i)||this._monitoredChildProps.set(i,{observedProps:o,notObservedProps:s}),t.addEventListener("_propertyChange",this._invalidateParentOnPropertyUpdate))}_detachChildPropertyUpdated(t){t.removeEventListener("_propertyChange",this._invalidateParentOnPropertyUpdate)}_propertyChange(t,e){this._updateAttribute(t,e);const n=new CustomEvent("_propertyChange",{detail:{name:t,newValue:e},composed:!1,bubbles:!0});this.dispatchEvent(n)}_invalidateParentOnPropertyUpdate(t){const e=this.parentNode;if(!e)return;const n=e.constructor._getSlotName(this),r=e._monitoredChildProps.get(n);if(!r)return;const{observedProps:i,notObservedProps:a}=r;i.includes(t.detail.name)&&!a.includes(t.detail.name)&&e._invalidate("_parent_",this)}_invalidate(){this._invalidated||this.getDomRef()&&!this._suppressInvalidation&&(this._invalidated=!0,Xe.renderDeferred(this))}_render(){this._suppressInvalidation=!0,"function"==typeof this.onBeforeRendering&&this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),delete this._suppressInvalidation,delete this._invalidated,this._updateShadowRoot(),this.constructor._needsStaticArea()&&this.staticAreaItem._updateFragment(this),this._assignIndividualSlotsToChildren(),"function"==typeof this.onAfterRendering&&this.onAfterRendering()}_updateShadowRoot(){let t;const e=this.constructor.template(this);document.adoptedStyleSheets||window.ShadyDOM||(t=we(this.constructor)),this.constructor.render(e,this.shadowRoot,t,{eventContext:this})}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(t=>{t._individualSlot&&t.setAttribute("slot",t._individualSlot)})}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(this.shadowRoot&&0!==this.shadowRoot.children.length)return 1===this.shadowRoot.children.length?this.shadowRoot.children[0]:this.shadowRoot.children[1]}getFocusDomRef(){const t=this.getDomRef();if(t){return t.querySelector("[data-sap-focus-ref]")||t}}async focus(){await this._waitForDomRef();const t=this.getFocusDomRef();t&&"function"==typeof t.focus&&t.focus()}fireEvent(t,e,n){let r=!0;const i=new CustomEvent(`ui5-${t}`,{detail:e,composed:!1,bubbles:!0,cancelable:n});if(r=this.dispatchEvent(i),Ee(t))return r;const a=new CustomEvent(t,{detail:e,composed:!1,bubbles:!0,cancelable:n});return this.dispatchEvent(a)&&r}getSlottedNodes(t){return this[t].reduce((t,e)=>"slot"!==e.localName?t.concat([e]):t.concat(e.assignedNodes({flatten:!0}).filter(t=>t instanceof HTMLElement)),[])}get isUI5Element(){return!0}static get observedAttributes(){return this.getMetadata().getAttributesList()}static _nextID(){const t=Oe(this.getMetadata().getTag()),e=ln.get(t),n=void 0!==e?e+1:1;return ln.set(t,n),`__${t}${n}`}static _getSlotName(t){if(!(t instanceof HTMLElement))return"default";const e=t.getAttribute("slot");if(e){const t=e.match(/^(.+?)-\d+$/);return t?t[1]:e}return"default"}static _needsShadowDOM(){return!!this.template}static _needsStaticArea(){return"function"==typeof this.staticAreaTemplate}getStaticAreaItemDomRef(){return this.staticAreaItem.getDomRef()}static _getDefaultState(){if(this._defaultState)return this._defaultState;const t=this.getMetadata(),e={},n=t.getProperties();for(const t in n){const r=n[t].type,i=n[t].defaultValue;r===Boolean?(e[t]=!1,void 0!==i&&console.warn("The 'defaultValue' metadata key is ignored for all booleans properties, they would be initialized with 'false' by default")):n[t].multiple?e[t]=[]:e[t]=r===Object?"defaultValue"in n[t]?n[t].defaultValue:{}:r===String?"defaultValue"in n[t]?n[t].defaultValue:"":i}const r=t.getSlots();for(const[t,n]of Object.entries(r)){e[n.propertyName||t]=[]}return this._defaultState=e,e}static _generateAccessors(){const t=this.prototype,e=this.getMetadata().getProperties();for(const[n,r]of Object.entries(e)){if(!on(n))throw new Error(`"${n}" is not a valid property name. Use a name that does not collide with DOM APIs`);if("boolean"===r.type&&r.defaultValue)throw new Error(`Cannot set a default value for property "${n}". All booleans are false by default.`);Object.defineProperty(t,n,{get(){if(void 0!==this._state[n])return this._state[n];const t=r.defaultValue;return r.type!==Boolean&&(r.type===String?t:r.multiple?[]:t)},set(t){t=this.constructor.getMetadata().constructor.validatePropertyValue(t,r),this._state[n]!==t&&(this._state[n]=t,this._invalidate(n,t),this._propertyChange(n,t))}})}const n=this.getMetadata().getSlots();for(const[e,r]of Object.entries(n)){if(!on(e))throw new Error(`"${e}" is not a valid property name. Use a name that does not collide with DOM APIs`);const n=r.propertyName||e;Object.defineProperty(t,n,{get(){return void 0!==this._state[n]?this._state[n]:[]},set(){throw new Error("Cannot set slots directly, use the DOM APIs")}})}}static get metadata(){return sn}static get styles(){return""}static async define(){await Se();const t=this.getMetadata().getTag(),e=un.has(t),n=customElements.get(t);return n&&!e?console.warn(`Skipping definition of tag ${t}, because it was already defined by another instance of ui5-webcomponents.`):n||(this._generateAccessors(),un.add(t),window.customElements.define(t,this)),this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==hn;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const n=ce({},...t);return this._metadata=new ke(n),this._metadata}}
|
|
1
|
+
const t={default:"en",all:["ar","ar_EG","ar_SA","bg","ca","cs","da","de","de_AT","de_CH","el","el_CY","en","en_AU","en_GB","en_HK","en_IE","en_IN","en_NZ","en_PG","en_SG","en_ZA","es","es_AR","es_BO","es_CL","es_CO","es_MX","es_PE","es_UY","es_VE","et","fa","fi","fr","fr_BE","fr_CA","fr_CH","fr_LU","he","hi","hr","hu","id","it","it_CH","ja","kk","ko","lt","lv","ms","nb","nl","nl_BE","pl","pt","pt_PT","ro","ru","ru_UA","sk","sl","sr","sv","th","tr","uk","vi","zh_CN","zh_HK","zh_SG","zh_TW"]},e={default:"sap_fiori_3",all:["sap_fiori_3","sap_fiori_3_dark","sap_belize","sap_belize_hcb","sap_belize_hcw","sap_fiori_3_hcb","sap_fiori_3_hcw","sap_horizon","sap_horizon_exp"]}.default,s={default:"en",all:["ar","bg","ca","cs","cy","da","de","el","en","en_GB","en_US_sappsd","en_US_saprigi","en_US_saptrc","es","es_MX","et","fi","fr","fr_CA","hi","hr","hu","in","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt_PT","pt","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh_CN","zh_TW"]}.default,n=t.default,i=t.all;var a=()=>{const t=navigator.languages;return t&&t[0]||navigator.language||navigator.userLanguage||navigator.browserLanguage||s},r={},o=r.hasOwnProperty,l=r.toString,c=o.toString,d=c.call(Object),h=function(t){var e,s;return!(!t||"[object Object]"!==l.call(t))&&(!(e=Object.getPrototypeOf(t))||"function"==typeof(s=o.call(e,"constructor")&&e.constructor)&&c.call(s)===d)},u=Object.create(null),p=function(){var t,e,s,n,i,a,r=arguments[2]||{},o=3,l=arguments.length,c=arguments[0]||!1,d=arguments[1]?void 0:u;for("object"!=typeof r&&"function"!=typeof r&&(r={});o<l;o++)if(null!=(i=arguments[o]))for(n in i)t=r[n],s=i[n],"__proto__"!==n&&r!==s&&(c&&s&&(h(s)||(e=Array.isArray(s)))?(e?(e=!1,a=t&&Array.isArray(t)?t:[]):a=t&&h(t)?t:{},r[n]=p(c,arguments[1],a,s)):s!==d&&(r[n]=s));return r},g=function(){var t=[!0,!1];return t.push.apply(t,arguments),p.apply(null,t)};const f=new Map,m=t=>f.get(t);let _=!1,y={animationMode:"full",theme:e,rtl:null,language:null,calendarType:null,noConflict:!1,formatSettings:{},fetchDefaultLanguage:!1};const v=new Map;v.set("true",!0),v.set("false",!1);const w=(t,e,s)=>{const n=e.toLowerCase(),i=t.split(`${s}-`)[1];v.has(e)&&(e=v.get(n)),e=((t,e)=>"theme"===t&&e.includes("@")?e.split("@")[0]:e)(i,e),y[i]=e},A=()=>{_||((()=>{const t=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");let e;if(t){try{e=JSON.parse(t.innerHTML)}catch(t){console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(y=g(y,e))}})(),(()=>{const t=new URLSearchParams(window.location.search);t.forEach(((t,e)=>{const s=e.split("sap-").length;0!==s&&s!==e.split("sap-ui-").length&&w(e,t,"sap")})),t.forEach(((t,e)=>{e.startsWith("sap-ui")&&w(e,t,"sap-ui")}))})(),(()=>{const t=m("OpenUI5Support");if(!t||!t.isLoaded())return;const e=t.getConfigurationSettingsObject();y=g(y,e)})(),_=!0)};class b{constructor(){this._eventRegistry=new Map}attachEvent(t,e){const s=this._eventRegistry,n=s.get(t);Array.isArray(n)?n.includes(e)||n.push(e):s.set(t,[e])}detachEvent(t,e){const s=this._eventRegistry,n=s.get(t);if(!n)return;const i=n.indexOf(e);-1!==i&&n.splice(i,1),0===n.length&&s.delete(t)}fireEvent(t,e){const s=this._eventRegistry.get(t);return s?s.map((t=>t.call(this,e))):[]}fireEventAsync(t,e){return Promise.all(this.fireEvent(t,e))}isHandlerAttached(t,e){const s=this._eventRegistry.get(t);return!!s&&s.includes(e)}hasListeners(t){return!!this._eventRegistry.get(t)}}const $=new b,S=t=>{$.attachEvent("languageChange",t)};const C=t=>{const e=[];return t.forEach((t=>{e.push(t)})),e},E=new Set,M=new Set;let O;const T=t=>{E.add(t)},x=()=>{console.warn(`The following tags have already been defined by a different UI5 Web Components version: ${C(M).join(", ")}`),M.clear()},P=new Set,L=new Set,I=new b,D=new class{constructor(){this.list=[],this.lookup=new Set}add(t){this.lookup.has(t)||(this.list.push(t),this.lookup.add(t))}remove(t){this.lookup.has(t)&&(this.list=this.list.filter((e=>e!==t)),this.lookup.delete(t))}shift(){const t=this.list.shift();if(t)return this.lookup.delete(t),t}isEmpty(){return 0===this.list.length}isAdded(t){return this.lookup.has(t)}process(t){let e;const s=new Map;for(e=this.shift();e;){const n=s.get(e)||0;if(n>10)throw new Error("Web component processed too many times this task, max allowed is: 10");t(e),s.set(e,n+1),e=this.shift()}}};let k,N,R,U;const j=async t=>{D.add(t),await B()},H=t=>{I.fireEvent("beforeComponentRender",t),L.add(t),t._render()},B=async()=>{U||(U=new Promise((t=>{window.requestAnimationFrame((()=>{D.process(H),U=null,t(),R||(R=setTimeout((()=>{R=void 0,D.isEmpty()&&Z()}),200))}))}))),await U},V=()=>{const t=C(E).map((t=>customElements.whenDefined(t)));return Promise.all(t)},z=async()=>{await V(),await(k||(k=new Promise((t=>{N=t,window.requestAnimationFrame((()=>{D.isEmpty()&&(k=void 0,t())}))})),k))},Z=()=>{D.isEmpty()&&N&&(N(),N=void 0,k=void 0)},W=async t=>{L.forEach((e=>{const s=e.constructor.getMetadata().getTag(),n=(i=e.constructor,P.has(i));var i;const a=e.constructor.getMetadata().isLanguageAware(),r=e.constructor.getMetadata().isThemeAware();(!t||t.tag===s||t.rtlAware&&n||t.languageAware&&a||t.themeAware&&r)&&j(e)})),await z()};let F,q;const G=()=>(void 0===F&&(A(),F=y.language),F),J=()=>{var t;return void 0===q&&(A(),t=y.fetchDefaultLanguage,q=t),q},K=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i;class Y{constructor(t){const e=K.exec(t.replace(/_/g,"-"));if(null===e)throw new Error(`The given language ${t} does not adhere to BCP-47.`);this.sLocaleId=t,this.sLanguage=e[1]||null,this.sScript=e[2]||null,this.sRegion=e[3]||null,this.sVariant=e[4]&&e[4].slice(1)||null,this.sExtension=e[5]&&e[5].slice(1)||null,this.sPrivateUse=e[6]||null,this.sLanguage&&(this.sLanguage=this.sLanguage.toLowerCase()),this.sScript&&(this.sScript=this.sScript.toLowerCase().replace(/^[a-z]/,(t=>t.toUpperCase()))),this.sRegion&&(this.sRegion=this.sRegion.toUpperCase())}getLanguage(){return this.sLanguage}getScript(){return this.sScript}getRegion(){return this.sRegion}getVariant(){return this.sVariant}getVariantSubtags(){return this.sVariant?this.sVariant.split("-"):[]}getExtension(){return this.sExtension}getExtensionSubtags(){return this.sExtension?this.sExtension.slice(2).split("-"):[]}getPrivateUse(){return this.sPrivateUse}getPrivateUseSubtags(){return this.sPrivateUse?this.sPrivateUse.slice(2).split("-"):[]}hasPrivateUseSubtag(t){return this.getPrivateUseSubtags().indexOf(t)>=0}toString(){const t=[this.sLanguage];return this.sScript&&t.push(this.sScript),this.sRegion&&t.push(this.sRegion),this.sVariant&&t.push(this.sVariant),this.sExtension&&t.push(this.sExtension),this.sPrivateUse&&t.push(this.sPrivateUse),t.join("-")}}const X=new Map,Q=t=>(X.has(t)||X.set(t,new Y(t)),X.get(t)),tt=t=>{try{if(t&&"string"==typeof t)return Q(t)}catch(t){}},et=t=>t?tt(t):G()?Q(G()):tt(a()),st=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i,nt=/(?:^|-)(saptrc|sappsd)(?:-|$)/i,it={he:"iw",yi:"ji",id:"in",sr:"sh"},at=t=>{if(!t)return n;if("zh_HK"===t)return"zh_TW";const e=t.lastIndexOf("_");return e>=0?t.slice(0,e):t!==n?n:""},rt=new Set,ot=new Set,lt=new Map,ct=new Map,dt=new Map,ht=(t,e)=>{lt.set(t,e)},ut=(t,e)=>{const s=`${t}/${e}`;return dt.has(s)},pt=async t=>{const e=et().getLanguage(),i=et().getRegion();let a=(t=>{let e;if(!t)return n;if("string"==typeof t&&(e=st.exec(t.replace(/_/g,"-")))){let t=e[1].toLowerCase(),s=e[3]?e[3].toUpperCase():void 0;const n=e[2]?e[2].toLowerCase():void 0,i=e[4]?e[4].slice(1):void 0,a=e[6];return t=it[t]||t,a&&(e=nt.exec(a))||i&&(e=nt.exec(i))?`en_US_${e[1].toLowerCase()}`:("zh"!==t||s||("hans"===n?s="CN":"hant"===n&&(s="TW")),t+(s?"_"+s+(i?"_"+i.replace("-","_"):""):""))}})(e+(i?`-${i}`:""));for(;a!==s&&!ut(t,a);)a=at(a);const r=J();if(a!==s||r)if(ut(t,a))try{const e=await((t,e)=>{const s=`${t}/${e}`,n=dt.get(s);return ct.get(s)||ct.set(s,n(e)),ct.get(s)})(t,a);ht(t,e)}catch(t){ot.has(t.message)||(ot.add(t.message),console.error(t.message))}else(t=>{rt.has(t)||(console.warn(`[${t}]: Message bundle assets are not configured. Falling back to English texts.`,` Add \`import "${t}/dist/Assets.js"\` in your bundle and make sure your build tool supports dynamic imports and JSON imports. See section "Assets" in the documentation for more information.`),rt.add(t))})(t);else ht(t,null)};S((()=>{const t=[...lt.keys()];return Promise.all(t.map(pt))}));const gt=new Map,ft=new Map,mt=new Map,_t=new Set;let yt=!1;const vt={iw:"he",ji:"yi",in:"id",sh:"sr"},wt=t=>{yt||(console.warn(`[LocaleData] Supported locale "${t}" not configured, import the "Assets.js" module from the webcomponents package you are using.`),yt=!0)},At=(t,e)=>{gt.set(t,e)},bt=async(t,e,s)=>{const a=((t,e,s)=>{"no"===(t=t&&vt[t]||t)&&(t="nb"),"zh"!==t||e||("Hans"===s?e="CN":"Hant"===s&&(e="TW"));let a=`${t}_${e}`;return i.includes(a)?ft.has(a)?a:(wt(a),n):(a=t,i.includes(a)?ft.has(a)?a:(wt(a),n):n)})(t,e,s),r=m("OpenUI5Support");if(r){const t=r.getLocaleDataObject();if(t)return void At(a,t)}try{const t=await(t=>{const e=ft.get(t);return mt.get(t)||mt.set(t,e(t)),mt.get(t)})(a);At(a,t)}catch(t){_t.has(t.message)||(_t.add(t.message),console.error(t.message))}};var $t,St;$t="en",St=async t=>(await fetch("https://ui5.sap.com/1.60.2/resources/sap/ui/core/cldr/en.json")).json(),ft.set($t,St),S((()=>{const t=et();return bt(t.getLanguage(),t.getRegion(),t.getScript())}));const Ct=new Map,Et=new Map,Mt=new Set,Ot=new Set,Tt=(t,e,s)=>{Et.set(`${t}/${e}`,s),Mt.add(t),Ot.add(e)},xt=async(t,s)=>{const n=Ct.get(`${t}_${s}`);if(void 0!==n)return n;if(!Ot.has(s)){const s=[...Ot.values()].join(", ");return console.warn(`You have requested a non-registered theme - falling back to ${e}. Registered themes are: ${s}`),Ct.get(`${t}_${e}`)}const i=Et.get(`${t}/${s}`);if(!i)return void console.error(`Theme [${s}] not registered for package [${t}]`);let a;try{a=await i(s)}catch(e){return void console.error(t,e.message)}const r=a._||a;return Ct.set(`${t}_${s}`,r),r},Pt=()=>Mt,Lt=(t,e=document.body)=>{let s=document.querySelector(t);return s||(s=document.createElement(t),e.insertBefore(s,e.firstChild))},It=(t,e)=>{const s=t.split(".");let n=Lt("ui5-shared-resources",document.head);for(let t=0;t<s.length;t++){const i=s[t],a=t===s.length-1;Object.prototype.hasOwnProperty.call(n,i)||(n[i]=a?e:{}),n=n[i]}return n},Dt={"SAP-icons-TNT":"tnt",BusinessSuiteInAppSymbols:"business-suite",horizon:"SAP-icons-v5"},kt=(t,e)=>e?`${t}|${e}`:t,Nt=(t,e,s="")=>{const n="string"==typeof t?t:t.content;if(document.adoptedStyleSheets){const t=new CSSStyleSheet;t.replaceSync(n),t._ui5StyleId=kt(e,s),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}else{const t={};t[e]=s,((t,e={})=>{const s=document.createElement("style");s.type="text/css",Object.entries(e).forEach((t=>s.setAttribute(...t))),s.textContent=t,document.head.appendChild(s)})(n,t)}},Rt=(t,e="")=>document.adoptedStyleSheets?!!document.adoptedStyleSheets.find((s=>s._ui5StyleId===kt(t,e))):!!document.querySelector(`head>style[${t}="${e}"]`),Ut=(t,e,s="")=>{Rt(e,s)?((t,e,s="")=>{const n="string"==typeof t?t:t.content;document.adoptedStyleSheets?document.adoptedStyleSheets.find((t=>t._ui5StyleId===kt(e,s))).replaceSync(n||""):document.querySelector(`head>style[${e}="${s}"]`).textContent=n||""})(t,e,s):Nt(t,e,s)},jt=()=>{const t=(()=>{let t=document.querySelector(".sapThemeMetaData-Base-baseLib")||document.querySelector(".sapThemeMetaData-UI5-sap-ui-core");if(t)return getComputedStyle(t).backgroundImage;t=document.createElement("span"),t.style.display="none",t.classList.add("sapThemeMetaData-Base-baseLib"),t.classList.add("sapThemeMetaData-UI5-sap-ui-core"),document.body.appendChild(t);const e=getComputedStyle(t).backgroundImage;return document.body.removeChild(t),e})();if(!t||"none"===t)return;const e=(t=>{const e=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(t);if(e&&e.length>=2){let t=e[1];if(t=t.replace(/\\"/g,'"'),"{"!==t.charAt(0)&&"}"!==t.charAt(t.length-1))try{t=decodeURIComponent(t)}catch(t){return void console.warn("Malformed theme metadata string, unable to decodeURIComponent")}try{return JSON.parse(t)}catch(t){console.warn("Malformed theme metadata string, unable to parse JSON")}}})(t);return(t=>{let e,s;try{e=t.Path.match(/\.([^.]+)\.css_variables$/)[1],s=t.Extends[0]}catch(e){return void console.warn("Malformed theme metadata Object",t)}return{themeName:e,baseThemeName:s}})(e)},Ht=new b,Bt="@ui5/webcomponents-theming",Vt=async t=>{if(!Pt().has(Bt))return;const e=await xt(Bt,t);Ut(e,"data-ui5-theme-properties",Bt)},zt=()=>{((t,e="")=>{if(document.adoptedStyleSheets)document.adoptedStyleSheets=document.adoptedStyleSheets.filter((s=>s._ui5StyleId!==kt(t,e)));else{const s=document.querySelector(`head > style[${t}="${e}"]`);s&&s.parentElement.removeChild(s)}})("data-ui5-theme-properties",Bt)},Zt=async t=>{const e=(()=>{const t=jt();if(t)return t;const e=m("OpenUI5Support");if(e&&e.cssVariablesLoaded())return{themeName:e.getConfigurationSettingsObject().theme}})();e&&t===e.themeName?zt():await Vt(t);const s=(t=>Ot.has(t))(t)?t:e&&e.baseThemeName;await(async t=>{Pt().forEach((async e=>{if(e===Bt)return;const s=await xt(e,t);Ut(s,"data-ui5-theme-properties",e)}))})(s),(t=>{Ht.fireEvent("themeLoaded",t)})(t)};let Wt;const Ft=()=>(void 0===Wt&&(A(),Wt=y.theme),Wt),qt=async t=>{Wt!==t&&(Wt=t,await Zt(Wt),await W({themeAware:!0}))},Gt=new Map,Jt=It("SVGIcons.registry",new Map),Kt=It("SVGIcons.promises",new Map),Yt=(t,{pathData:e,ltr:s,accData:n,collection:i,packageName:a}={})=>{i||(i=Qt());const r=`${i}/${t}`;Jt.set(r,{pathData:e,ltr:s,accData:n,packageName:a})},Xt=async t=>{const{collection:e,registryKey:s}=(t=>{let e;return t.startsWith("sap-icon://")&&(t=t.replace("sap-icon://","")),[t,e]=t.split("/").reverse(),e=e||Qt(),e=te(e),{name:t=t.replace("icon-",""),collection:e,registryKey:`${e}/${t}`}})(t);let n="ICON_NOT_FOUND";try{n=await(async t=>{if(!Kt.has(t)){if(!Gt.has(t))throw new Error(`No loader registered for the ${t} icons collection. Probably you forgot to import the "AllIcons.js" module for the respective package.`);const e=Gt.get(t);Kt.set(t,e(t))}return Kt.get(t)})(e)}catch(t){console.error(t.message)}return"ICON_NOT_FOUND"===n?n:(Jt.has(s)||(t=>{Object.keys(t.data).forEach((e=>{const s=t.data[e];Yt(e,{pathData:s.path,ltr:s.ltr,accData:s.acc,collection:t.collection,packageName:t.packageName})}))})(n),Jt.get(s))},Qt=()=>(t=>{const e=Ft();return e===t||e===`${t}_exp`})("sap_horizon")?"SAP-icons-v5":"SAP-icons",te=t=>Dt[t]?Dt[t]:t,ee=It("PopupUtilsData",{});ee.currentZIndex=ee.currentZIndex||100;const se=()=>ee.currentZIndex,ne=()=>{const t=window.sap;return t&&t.ui&&"function"==typeof t.ui.getCore&&t.ui.getCore()};var ie,ae;ie="OpenUI5Support",ae={isLoaded:()=>!!ne(),init:()=>{const t=ne();return t?new Promise((e=>{t.attachInit((()=>{window.sap.ui.require(["sap/ui/core/LocaleData","sap/ui/core/Popup"],((t,s)=>{s.setInitialZIndex(se()),e()}))}))})):Promise.resolve()},getConfigurationSettingsObject:()=>{const t=ne();if(!t)return;const e=t.getConfiguration(),s=window.sap.ui.require("sap/ui/core/LocaleData");return{animationMode:e.getAnimationMode(),language:e.getLanguage(),theme:e.getTheme(),rtl:e.getRTL(),calendarType:e.getCalendarType(),formatSettings:{firstDayOfWeek:s?s.getInstance(e.getLocale()).getFirstDayOfWeek():void 0}}},getLocaleDataObject:()=>{const t=ne();if(!t)return;const e=t.getConfiguration();return window.sap.ui.require("sap/ui/core/LocaleData").getInstance(e.getLocale())._get()},attachListeners:()=>{ne()&&(()=>{const t=ne(),e=t.getConfiguration();t.attachThemeChanged((async()=>{await qt(e.getTheme())}))})()},cssVariablesLoaded:()=>{if(!ne())return;const t=[...document.head.children].find((t=>"sap-ui-theme-sap.ui.core"===t.id));return t?!!t.href.match(/\/css(-|_)variables\.css/):void 0},getNextZIndex:()=>{if(!ne())return;return window.sap.ui.require("sap/ui/core/Popup").getNextZIndex()},setInitialZIndex:()=>{if(!ne())return;window.sap.ui.require("sap/ui/core/Popup").setInitialZIndex(se())}},f.set(ie,ae);var re={packageName:"@ui5/webcomponents-base",fileName:"FontFace.css",content:'@font-face{font-family:"72";font-style:normal;font-weight:400;src:local("72"),url(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2"),url(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff?ui5-webcomponents) format("woff")}@font-face{font-family:"72full";font-style:normal;font-weight:400;src:local(\'72-full\'),url(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2"),url(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff?ui5-webcomponents) format("woff")}@font-face{font-family:"72";font-style:normal;font-weight:700;src:local(\'72-Bold\'),url(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"),url(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff?ui5-webcomponents) format("woff")}@font-face{font-family:"72full";font-style:normal;font-weight:700;src:local(\'72-Bold-full\'),url(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2"),url(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff?ui5-webcomponents) format("woff")}@font-face{font-family:"72Black";font-style:bold;font-weight:900;src:local(\'72Black\'),url(https://openui5nightly.hana.ondemand.com/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format("woff2"),url(https://openui5nightly.hana.ondemand.com/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff?ui5-webcomponents) format("woff")}'},oe={packageName:"@ui5/webcomponents-base",fileName:"OverrideFontFace.css",content:"@font-face{font-family:'72override';unicode-range:U+0102-0103,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EB7,U+1EB8-1EC7,U+1EC8-1ECB,U+1ECC-1EE3,U+1EE4-1EF1,U+1EF4-1EF7;src:local('Arial'),local('Helvetica'),local('sans-serif')}"};const le=()=>{Rt("data-ui5-font-face")||Nt(re,"data-ui5-font-face")},ce=()=>{Rt("data-ui5-font-face-override")||Nt(oe,"data-ui5-font-face-override")};var de={packageName:"@ui5/webcomponents-base",fileName:"SystemCSSVars.css",content:":root{--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5_content_density:compact}[dir=rtl]{--_ui5_dir:rtl}[dir=ltr]{--_ui5_dir:ltr}"};let he=!1;const ue=new b,pe=async()=>{if(he)return;const t=m("OpenUI5Support");t&&await t.init(),await new Promise((t=>{document.body?t():document.addEventListener("DOMContentLoaded",(()=>{t()}))})),await Zt(Ft()),t&&t.attachListeners(),(()=>{const t=m("OpenUI5Support");t&&t.isLoaded()||le(),ce()})(),Rt("data-ui5-system-css-vars")||Nt(de,"data-ui5-system-css-vars"),await ue.fireEventAsync("boot"),he=!0};class ge{static isValid(t){}static attributeToProperty(t){return t}static propertyToAttribute(t){return`${t}`}static valuesAreEqual(t,e){return t===e}static generateTypeAccessors(t){Object.keys(t).forEach((e=>{Object.defineProperty(this,e,{get:()=>t[e]})}))}}const fe=(t,e,s=!1)=>{if("function"!=typeof t||"function"!=typeof e)return!1;if(s&&t===e)return!0;let n=t;do{n=Object.getPrototypeOf(n)}while(null!==n&&n!==e);return n===e},me=new Map,_e=new Map,ye=t=>{if(!me.has(t)){const e=we(t.split("-"));me.set(t,e)}return me.get(t)},ve=t=>{if(!_e.has(t)){const e=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();_e.set(t,e)}return _e.get(t)},we=t=>t.map(((t,e)=>0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase())).join(""),Ae=t=>t&&t instanceof HTMLElement&&"slot"===t.localName,be=t=>Ae(t)?t.assignedNodes({flatten:!0}).filter((t=>t instanceof HTMLElement)):[t];let $e={include:[/^ui5-/],exclude:[]};const Se=new Map,Ce=t=>{if(!Se.has(t)){const e=$e.include.some((e=>t.match(e)))&&!$e.exclude.some((e=>t.match(e)));Se.set(t,e)}return Se.get(t)},Ee=t=>{Ce(t)};class Me{constructor(t){this.metadata=t}getInitialState(){if(Object.prototype.hasOwnProperty.call(this,"_initialState"))return this._initialState;const t={},e=this.slotsAreManaged(),s=this.getProperties();for(const e in s){const n=s[e].type,i=s[e].defaultValue;n===Boolean?(t[e]=!1,void 0!==i&&console.warn("The 'defaultValue' metadata key is ignored for all booleans properties, they would be initialized with 'false' by default")):s[e].multiple?t[e]=[]:t[e]=n===Object?"defaultValue"in s[e]?s[e].defaultValue:{}:n===String?"defaultValue"in s[e]?s[e].defaultValue:"":i}if(e){const e=this.getSlots();for(const[s,n]of Object.entries(e)){t[n.propertyName||s]=[]}}return this._initialState=t,t}static validatePropertyValue(t,e){return e.multiple?t.map((t=>Oe(t,e))):Oe(t,e)}static validateSlotValue(t,e){return Te(t,e)}getPureTag(){return this.metadata.tag}getTag(){const t=this.metadata.tag,e=Ee(t);return e?`${t}-${e}`:t}getAltTag(){const t=this.metadata.altTag;if(!t)return;const e=Ee(t);return e?`${t}-${e}`:t}hasAttribute(t){const e=this.getProperties()[t];return e.type!==Object&&!e.noAttribute&&!e.multiple}getPropertiesList(){return Object.keys(this.getProperties())}getAttributesList(){return this.getPropertiesList().filter(this.hasAttribute,this).map(ve)}getSlots(){return this.metadata.slots||{}}canSlotText(){const t=this.getSlots().default;return t&&t.type===Node}hasSlots(){return!!Object.entries(this.getSlots()).length}hasIndividualSlots(){return this.slotsAreManaged()&&Object.entries(this.getSlots()).some((([t,e])=>e.individualSlots))}slotsAreManaged(){return!!this.metadata.managedSlots}getProperties(){return this.metadata.properties||{}}getEvents(){return this.metadata.events||{}}isLanguageAware(){return!!this.metadata.languageAware}isThemeAware(){return!!this.metadata.themeAware}shouldInvalidateOnChildChange(t,e,s){const n=this.getSlots()[t].invalidateOnChildChange;if(void 0===n)return!1;if("boolean"==typeof n)return n;if("object"==typeof n){if("property"===e){if(void 0===n.properties)return!1;if("boolean"==typeof n.properties)return n.properties;if(Array.isArray(n.properties))return n.properties.includes(s);throw new Error("Wrong format for invalidateOnChildChange.properties: boolean or array is expected")}if("slot"===e){if(void 0===n.slots)return!1;if("boolean"==typeof n.slots)return n.slots;if(Array.isArray(n.slots))return n.slots.includes(s);throw new Error("Wrong format for invalidateOnChildChange.slots: boolean or array is expected")}}throw new Error("Wrong format for invalidateOnChildChange: boolean or object is expected")}}const Oe=(t,e)=>{const s=e.type;return s===Boolean?"boolean"==typeof t&&t:s===String?"string"==typeof t||null==t?t:t.toString():s===Object?"object"==typeof t?t:e.defaultValue:fe(s,ge)?s.isValid(t)?t:e.defaultValue:void 0},Te=(t,e)=>(t&&be(t).forEach((t=>{if(!(t instanceof e.type))throw new Error(`${t} is not of type ${e.type}`)})),t);customElements.get("ui5-static-area")||customElements.define("ui5-static-area",class extends HTMLElement{});const xe=new b,Pe=t=>{xe.attachEvent("CustomCSSChange",t)},Le={},Ie=t=>Array.isArray(t)?De(t.filter((t=>!!t))).map((t=>"string"==typeof t?t:t.content)).join(" "):"string"==typeof t?t:t.content,De=t=>t.reduce(((t,e)=>t.concat(Array.isArray(e)?De(e):e)),[]),ke=new Map;Pe((t=>{ke.delete(`${t}_normal`)}));const Ne=(t,e=!1)=>{const s=t.getMetadata().getTag(),n=`${s}_${e?"static":"normal"}`;if(!ke.has(n)){let i;if(e)i=Ie(t.staticAreaStyles);else{const e=(t=>Le[t]?Le[t].join(""):"")(s)||"";i=`${Ie(t.styles)} ${e}`}ke.set(n,i)}return ke.get(n)},Re=new Map;Pe((t=>{Re.delete(`${t}_normal`)}));const Ue=(t,e=!1)=>{let s;const n=e?"staticAreaTemplate":"template",i=e?t.staticAreaItem.shadowRoot:t.shadowRoot,a=((t,e)=>{const s=e.constructor.getUniqueDependencies().map((t=>t.getMetadata().getPureTag())).filter(Ce);return t(e,s,void 0)})(t.constructor[n],t);document.adoptedStyleSheets?i.adoptedStyleSheets=((t,e=!1)=>{const s=`${t.getMetadata().getTag()}_${e?"static":"normal"}`;if(!Re.has(s)){const n=Ne(t,e),i=new CSSStyleSheet;i.replaceSync(n),Re.set(s,[i])}return Re.get(s)})(t.constructor,e):window.ShadyDOM||(s=Ne(t.constructor,e)),t.constructor.render(a,i,s,{host:t})};const je={iw:"he",ji:"yi",in:"id",sh:"sr"},He=(t=>{const e=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(t);return e&&e[2]?e[2].split(/,/):null})("$cldr-rtl-locales:ar,fa,he$")||[],Be=()=>{const t=(A(),y.rtl);return null!==t?!!t:(t=>(t=t&&je[t]||t,He.indexOf(t)>=0))(G()||a())},Ve=t=>{const e=window.document,s=["ltr","rtl"],n=getComputedStyle(t).getPropertyValue("--_ui5_dir");return s.includes(n)?n:s.includes(t.dir)?t.dir:s.includes(e.documentElement.dir)?e.documentElement.dir:s.includes(e.body.dir)?e.body.dir:Be()?"rtl":void 0};class ze extends HTMLElement{constructor(){super(),this._rendered=!1,this.attachShadow({mode:"open"})}setOwnerElement(t){this.ownerElement=t,this.classList.add(this.ownerElement._id)}update(){this._rendered&&(this._updateContentDensity(),this._updateDirection(),Ue(this.ownerElement,!0))}_updateContentDensity(){var t;"compact"===(t=this.ownerElement,getComputedStyle(t).getPropertyValue("--_ui5_content_density"))?(this.classList.add("sapUiSizeCompact"),this.classList.add("ui5-content-density-compact")):(this.classList.remove("sapUiSizeCompact"),this.classList.remove("ui5-content-density-compact"))}_updateDirection(){const t=Ve(this.ownerElement);t?this.setAttribute("dir",t):this.removeAttribute("dir")}async getDomRef(){return this._updateContentDensity(),this._rendered||(this._rendered=!0,Ue(this.ownerElement,!0)),await z(),this.shadowRoot}static getTag(){const t="ui5-static-area-item",e=Ee(t);return e?`${t}-${e}`:t}static createInstance(){return customElements.get(ze.getTag())||customElements.define(ze.getTag(),ze),document.createElement(this.getTag())}}const Ze=new WeakMap;const We=(t,e,s)=>{const n=((t,e,s)=>{const n=new MutationObserver(e);return n.observe(t,s),n})(t,e,s);Ze.set(t,n)},Fe=["value-changed"];let qe;const Ge=()=>(void 0===qe&&(A(),qe=y.noConflict),qe),Je=t=>{const e=Ge();return!(t=>Fe.includes(t))(t)&&(!0===e||!(t=>{const e=Ge();return!(e.events&&e.events.includes&&e.events.includes(t))})(t))},Ke=["disabled","title","hidden","role","draggable"],Ye=t=>{if(Ke.includes(t)||t.startsWith("aria"))return!0;return![HTMLElement,Element,Node].some((e=>e.prototype.hasOwnProperty(t)))},Xe=(t,e)=>{if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0},Qe=(t,e)=>class extends t{constructor(){super(),e&&e()}};let ts=0;const es=new Map,ss=new Map;function ns(t){this._suppressInvalidation||(this.onInvalidation(t),this._changedState.push(t),j(this),this._eventProvider.fireEvent("invalidate",{...t,target:this}))}class is extends HTMLElement{constructor(){let t;super(),this._changedState=[],this._suppressInvalidation=!0,this._inDOM=!1,this._fullyConnected=!1,this._childChangeListeners=new Map,this._slotChangeListeners=new Map,this._eventProvider=new b,this._domRefReadyPromise=new Promise((e=>{t=e})),this._domRefReadyPromise._deferredResolve=t,this._initializeState(),this._upgradeAllProperties(),this.constructor._needsShadowDOM()&&this.attachShadow({mode:"open"})}get _id(){return this.__id||(this.__id="ui5wc_"+ ++ts),this.__id}async connectedCallback(){this.setAttribute(this.constructor.getMetadata().getPureTag(),"");const t=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!0,t&&(this._startObservingDOMChildren(),await this._processChildren()),this._inDOM&&(H(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,"function"==typeof this.onEnterDOM&&this.onEnterDOM())}disconnectedCallback(){const t=this.constructor.getMetadata().slotsAreManaged();var e;this._inDOM=!1,t&&this._stopObservingDOMChildren(),this._fullyConnected&&("function"==typeof this.onExitDOM&&this.onExitDOM(),this._fullyConnected=!1),this.staticAreaItem&&this.staticAreaItem.parentElement&&this.staticAreaItem.parentElement.removeChild(this.staticAreaItem),e=this,D.remove(e),L.delete(e)}_startObservingDOMChildren(){if(!this.constructor.getMetadata().hasSlots())return;const t=this.constructor.getMetadata().canSlotText(),e={childList:!0,subtree:t,characterData:t};We(this,this._processChildren.bind(this),e)}_stopObservingDOMChildren(){(t=>{const e=Ze.get(t);e&&((t=>{t.disconnect()})(e),Ze.delete(t))})(this)}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots()}async _updateSlots(){const t=this.constructor.getMetadata().getSlots(),e=this.constructor.getMetadata().canSlotText(),s=Array.from(e?this.childNodes:this.children),n=new Map,i=new Map;for(const[e,s]of Object.entries(t)){const t=s.propertyName||e;i.set(t,e),n.set(t,[...this._state[t]]),this._clearSlot(e,s)}const a=new Map,r=new Map,o=s.map((async(e,s)=>{const n=(t=>{if(!(t instanceof HTMLElement))return"default";const e=t.getAttribute("slot");if(e){const t=e.match(/^(.+?)-\d+$/);return t?t[1]:e}return"default"})(e),i=t[n];if(void 0===i){const s=Object.keys(t).join(", ");return void console.warn(`Unknown slotName: ${n}, ignoring`,e,`Valid values are: ${s}`)}if(i.individualSlots){const t=(a.get(n)||0)+1;a.set(n,t),e._individualSlot=`${n}-${t}`}if(e instanceof HTMLElement){const t=e.localName;if(t.includes("-")){if(!window.customElements.get(t)){const e=window.customElements.whenDefined(t);let s=es.get(t);s||(s=new Promise((t=>setTimeout(t,1e3))),es.set(t,s)),await Promise.race([e,s])}window.customElements.upgrade(e)}}(e=this.constructor.getMetadata().constructor.validateSlotValue(e,i)).isUI5Element&&i.invalidateOnChildChange&&e.attachInvalidate(this._getChildChangeListener(n)),Ae(e)&&this._attachSlotChange(e,n);const o=i.propertyName||n;r.has(o)?r.get(o).push({child:e,idx:s}):r.set(o,[{child:e,idx:s}])}));await Promise.all(o),r.forEach(((t,e)=>{this._state[e]=t.sort(((t,e)=>t.idx-e.idx)).map((t=>t.child))}));let l=!1;for(const[e,s]of Object.entries(t)){const t=s.propertyName||e;Xe(n.get(t),this._state[t])||(ns.call(this,{type:"slot",name:i.get(t),reason:"children"}),l=!0)}l||ns.call(this,{type:"slot",name:"default",reason:"textcontent"})}_clearSlot(t,e){const s=e.propertyName||t;this._state[s].forEach((e=>{e&&e.isUI5Element&&e.detachInvalidate(this._getChildChangeListener(t)),Ae(e)&&this._detachSlotChange(e,t)})),this._state[s]=[]}attachInvalidate(t){this._eventProvider.attachEvent("invalidate",t)}detachInvalidate(t){this._eventProvider.detachEvent("invalidate",t)}_onChildChange(t,e){this.constructor.getMetadata().shouldInvalidateOnChildChange(t,e.type,e.name)&&ns.call(this,{type:"slot",name:t,reason:"childchange",child:e.target})}attributeChangedCallback(t,e,s){const n=this.constructor.getMetadata().getProperties(),i=t.replace(/^ui5-/,""),a=ye(i);if(n.hasOwnProperty(a)){const t=n[a].type;t===Boolean?s=null!==s:fe(t,ge)&&(s=t.attributeToProperty(s)),this[a]=s}}_updateAttribute(t,e){if(!this.constructor.getMetadata().hasAttribute(t))return;const s=this.constructor.getMetadata().getProperties()[t].type,n=ve(t),i=this.getAttribute(n);s===Boolean?!0===e&&null===i?this.setAttribute(n,""):!1===e&&null!==i&&this.removeAttribute(n):fe(s,ge)?this.setAttribute(n,s.propertyToAttribute(e)):"object"!=typeof e&&i!==e&&this.setAttribute(n,e)}_upgradeProperty(t){if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this[t]=e}}_upgradeAllProperties(){this.constructor.getMetadata().getPropertiesList().forEach(this._upgradeProperty,this)}_initializeState(){this._state={...this.constructor.getMetadata().getInitialState()}}_getChildChangeListener(t){return this._childChangeListeners.has(t)||this._childChangeListeners.set(t,this._onChildChange.bind(this,t)),this._childChangeListeners.get(t)}_getSlotChangeListener(t){return this._slotChangeListeners.has(t)||this._slotChangeListeners.set(t,this._onSlotChange.bind(this,t)),this._slotChangeListeners.get(t)}_attachSlotChange(t,e){t.addEventListener("slotchange",this._getSlotChangeListener(e))}_detachSlotChange(t,e){t.removeEventListener("slotchange",this._getSlotChangeListener(e))}_onSlotChange(t){ns.call(this,{type:"slot",name:t,reason:"slotchange"})}onInvalidation(t){}_render(){const t=this.constructor.getMetadata().hasIndividualSlots();this._suppressInvalidation=!0,"function"==typeof this.onBeforeRendering&&this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),this._suppressInvalidation=!1,this._changedState=[],this.constructor._needsShadowDOM()&&Ue(this),this.staticAreaItem&&this.staticAreaItem.update(),t&&this._assignIndividualSlotsToChildren(),"function"==typeof this.onAfterRendering&&this.onAfterRendering()}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach((t=>{t._individualSlot&&t.setAttribute("slot",t._individualSlot)}))}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if("function"==typeof this._getRealDomRef)return this._getRealDomRef();if(!this.shadowRoot||0===this.shadowRoot.children.length)return;const t=[...this.shadowRoot.children].filter((t=>!["link","style"].includes(t.localName)));return 1!==t.length&&console.warn(`The shadow DOM for ${this.constructor.getMetadata().getTag()} does not have a top level element, the getDomRef() method might not work as expected`),t[0]}getFocusDomRef(){const t=this.getDomRef();if(t){return t.querySelector("[data-sap-focus-ref]")||t}}async getFocusDomRefAsync(){return await this._waitForDomRef(),this.getFocusDomRef()}async focus(){await this._waitForDomRef();const t=this.getFocusDomRef();t&&"function"==typeof t.focus&&t.focus()}fireEvent(t,e,s=!1,n=!0){const i=this._fireEvent(t,e,s,n),a=ye(t);return a!==t?i&&this._fireEvent(a,e,s):i}_fireEvent(t,e,s=!1,n=!0){const i=new CustomEvent(`ui5-${t}`,{detail:e,composed:!1,bubbles:n,cancelable:s}),a=this.dispatchEvent(i);if(Je(t))return a;const r=new CustomEvent(t,{detail:e,composed:!1,bubbles:n,cancelable:s});return this.dispatchEvent(r)&&a}getSlottedNodes(t){return this[t].reduce(((t,e)=>t.concat(be(e))),[])}get effectiveDir(){var t;return t=this.constructor,P.add(t),Ve(this)}get isUI5Element(){return!0}static get observedAttributes(){return this.getMetadata().getAttributesList()}static _needsShadowDOM(){return!!this.template}static _needsStaticArea(){return!!this.staticAreaTemplate}getStaticAreaItemDomRef(){if(!this.constructor._needsStaticArea())throw new Error("This component does not use the static area");return this.staticAreaItem||(this.staticAreaItem=ze.createInstance(),this.staticAreaItem.setOwnerElement(this)),this.staticAreaItem.parentElement||Lt("ui5-static-area").appendChild(this.staticAreaItem),this.staticAreaItem.getDomRef()}static _generateAccessors(){const t=this.prototype,e=this.getMetadata().slotsAreManaged(),s=this.getMetadata().getProperties();for(const[e,n]of Object.entries(s)){if(Ye(e)||console.warn(`"${e}" is not a valid property name. Use a name that does not collide with DOM APIs`),n.type===Boolean&&n.defaultValue)throw new Error(`Cannot set a default value for property "${e}". All booleans are false by default.`);if(n.type===Array)throw new Error(`Wrong type for property "${e}". Properties cannot be of type Array - use "multiple: true" and set "type" to the single value type, such as "String", "Object", etc...`);if(n.type===Object&&n.defaultValue)throw new Error(`Cannot set a default value for property "${e}". All properties of type "Object" are empty objects by default.`);if(n.multiple&&n.defaultValue)throw new Error(`Cannot set a default value for property "${e}". All multiple properties are empty arrays by default.`);Object.defineProperty(t,e,{get(){if(void 0!==this._state[e])return this._state[e];const t=n.defaultValue;return n.type!==Boolean&&(n.type===String?t:n.multiple?[]:t)},set(t){let s;t=this.constructor.getMetadata().constructor.validatePropertyValue(t,n);const i=this._state[e];s=n.multiple&&n.compareValues?!Xe(i,t):fe(n.type,ge)?!n.type.valuesAreEqual(i,t):i!==t,s&&(this._state[e]=t,ns.call(this,{type:"property",name:e,newValue:t,oldValue:i}),this._updateAttribute(e,t))}})}if(e){const e=this.getMetadata().getSlots();for(const[s,n]of Object.entries(e)){Ye(s)||console.warn(`"${s}" is not a valid property name. Use a name that does not collide with DOM APIs`);const e=n.propertyName||s;Object.defineProperty(t,e,{get(){return void 0!==this._state[e]?this._state[e]:[]},set(){throw new Error("Cannot set slot content directly, use the DOM APIs (appendChild, removeChild, etc...)")}})}}}static get metadata(){return{}}static get styles(){return""}static get staticAreaStyles(){return""}static get dependencies(){return[]}static getUniqueDependencies(){if(!ss.has(this)){const t=this.dependencies.filter(((t,e,s)=>s.indexOf(t)===e));ss.set(this,t)}return ss.get(this)}static whenDependenciesDefined(){return Promise.all(this.getUniqueDependencies().map((t=>t.define())))}static async onDefine(){return Promise.resolve()}static async define(){await pe(),await Promise.all([this.whenDependenciesDefined(),this.onDefine()]);const t=this.getMetadata().getTag(),e=this.getMetadata().getAltTag(),s=(t=>E.has(t))(t),n=customElements.get(t);return n&&!s?(t=>{M.add(t),O||(O=setTimeout((()=>{x(),O=void 0}),1e3))})(t):n||(this._generateAccessors(),T(t),window.customElements.define(t,this),e&&!customElements.get(e)&&(T(e),window.customElements.define(e,Qe(this,(()=>{console.log(`The ${e} tag is deprecated and will be removed in the next release, please use ${t} instead.`)}))))),this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==is;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const s=g({},...t);return this._metadata=new Me(s),this._metadata}}
|
|
10
2
|
/**
|
|
11
3
|
* @license
|
|
12
|
-
* Copyright
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
* The complete set of authors may be found at
|
|
16
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
17
|
-
* The complete set of contributors may be found at
|
|
18
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
19
|
-
* Code distributed by Google as part of the polymer project is also
|
|
20
|
-
* subject to an additional IP rights grant found at
|
|
21
|
-
* http://polymer.github.io/PATENTS.txt
|
|
22
|
-
*/const dn=new WeakMap,pn=t=>"function"==typeof t&&dn.has(t),gn=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,fn=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}},mn={},yn={},_n=`{{lit-${String(Math.random()).slice(2)}}}`,vn=`\x3c!--${_n}--\x3e`,wn=new RegExp(`${_n}|${vn}`),bn="$lit$";class Cn{constructor(t,e){this.parts=[],this.element=e;const n=[],r=[],i=document.createTreeWalker(e.content,133,null,!1);let a=0,o=-1,s=0;const{strings:u,values:{length:l}}=t;for(;s<l;){const t=i.nextNode();if(null!==t){if(o++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:n}=e;let r=0;for(let t=0;t<n;t++)Tn(e[t].name,bn)&&r++;for(;r-- >0;){const e=u[s],n=Pn.exec(e)[2],r=n.toLowerCase()+bn,i=t.getAttribute(r);t.removeAttribute(r);const a=i.split(wn);this.parts.push({type:"attribute",index:o,name:n,strings:a}),s+=a.length-1}}"TEMPLATE"===t.tagName&&(r.push(t),i.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(_n)>=0){const r=t.parentNode,i=e.split(wn),a=i.length-1;for(let e=0;e<a;e++){let n,a=i[e];if(""===a)n=Sn();else{const t=Pn.exec(a);null!==t&&Tn(t[2],bn)&&(a=a.slice(0,t.index)+t[1]+t[2].slice(0,-bn.length)+t[3]),n=document.createTextNode(a)}r.insertBefore(n,t),this.parts.push({type:"node",index:++o})}""===i[a]?(r.insertBefore(Sn(),t),n.push(t)):t.data=i[a],s+=a}}else if(8===t.nodeType)if(t.data===_n){const e=t.parentNode;null!==t.previousSibling&&o!==a||(o++,e.insertBefore(Sn(),t)),a=o,this.parts.push({type:"node",index:o}),null===t.nextSibling?t.data="":(n.push(t),o--),s++}else{let e=-1;for(;-1!==(e=t.data.indexOf(_n,e+1));)this.parts.push({type:"node",index:-1}),s++}}else i.currentNode=r.pop()}for(const t of n)t.parentNode.removeChild(t)}}const Tn=(t,e)=>{const n=t.length-e.length;return n>=0&&t.slice(n)===e},Dn=t=>-1!==t.index,Sn=()=>document.createComment(""),Pn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/var as;const rs=globalThis.trustedTypes,os=rs?rs.createPolicy("lit-html",{createHTML:t=>t}):void 0,ls=`lit$${(Math.random()+"").slice(9)}$`,cs="?"+ls,ds=`<${cs}>`,hs=document,us=(t="")=>hs.createComment(t),ps=t=>null===t||"object"!=typeof t&&"function"!=typeof t,gs=Array.isArray,fs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ms=/-->/g,_s=/>/g,ys=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,vs=/'/g,ws=/"/g,As=/^(?:script|style|textarea)$/i,bs=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),$s=Symbol.for("lit-noChange"),Ss=Symbol.for("lit-nothing"),Cs=new WeakMap,Es=hs.createTreeWalker(hs,129,null,!1),Ms=(t,e)=>{const s=t.length-1,n=[];let i,a=2===e?"<svg>":"",r=fs;for(let e=0;e<s;e++){const s=t[e];let o,l,c=-1,d=0;for(;d<s.length&&(r.lastIndex=d,l=r.exec(s),null!==l);)d=r.lastIndex,r===fs?"!--"===l[1]?r=ms:void 0!==l[1]?r=_s:void 0!==l[2]?(As.test(l[2])&&(i=RegExp("</"+l[2],"g")),r=ys):void 0!==l[3]&&(r=ys):r===ys?">"===l[0]?(r=null!=i?i:fs,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,o=l[1],r=void 0===l[3]?ys:'"'===l[3]?ws:vs):r===ws||r===vs?r=ys:r===ms||r===_s?r=fs:(r=ys,i=void 0);const h=r===ys&&t[e+1].startsWith("/>")?" ":"";a+=r===fs?s+ds:c>=0?(n.push(o),s.slice(0,c)+"$lit$"+s.slice(c)+ls+h):s+ls+(-2===c?(n.push(void 0),e):h)}const o=a+(t[s]||"<?>")+(2===e?"</svg>":"");return[void 0!==os?os.createHTML(o):o,n]};class Os{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let i=0,a=0;const r=t.length-1,o=this.parts,[l,c]=Ms(t,e);if(this.el=Os.createElement(l,s),Es.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Es.nextNode())&&o.length<r;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(ls)){const s=c[a++];if(t.push(e),void 0!==s){const t=n.getAttribute(s.toLowerCase()+"$lit$").split(ls),e=/([.?@])?(.*)/.exec(s);o.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?Is:"?"===e[1]?Ds:"@"===e[1]?ks:Ls})}else o.push({type:6,index:i})}for(const e of t)n.removeAttribute(e)}if(As.test(n.tagName)){const t=n.textContent.split(ls),e=t.length-1;if(e>0){n.textContent=rs?rs.emptyScript:"";for(let s=0;s<e;s++)n.append(t[s],us()),Es.nextNode(),o.push({type:2,index:++i});n.append(t[e],us())}}}else if(8===n.nodeType)if(n.data===cs)o.push({type:2,index:i});else{let t=-1;for(;-1!==(t=n.data.indexOf(ls,t+1));)o.push({type:7,index:i}),t+=ls.length-1}i++}}static createElement(t,e){const s=hs.createElement("template");return s.innerHTML=t,s}}function Ts(t,e,s=t,n){var i,a,r,o;if(e===$s)return e;let l=void 0!==n?null===(i=s._$Cl)||void 0===i?void 0:i[n]:s._$Cu;const c=ps(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(a=null==l?void 0:l._$AO)||void 0===a||a.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,s,n)),void 0!==n?(null!==(r=(o=s)._$Cl)&&void 0!==r?r:o._$Cl=[])[n]=l:s._$Cu=l),void 0!==l&&(e=Ts(t,l._$AS(t,e.values),l,n)),e}class xs{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:s},parts:n}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:hs).importNode(s,!0);Es.currentNode=i;let a=Es.nextNode(),r=0,o=0,l=n[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Ps(a,a.nextSibling,this,t):1===l.type?e=new l.ctor(a,l.name,l.strings,this,t):6===l.type&&(e=new Ns(a,this,t)),this.v.push(e),l=n[++o]}r!==(null==l?void 0:l.index)&&(a=Es.nextNode(),r++)}return i}m(t){let e=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class Ps{constructor(t,e,s,n){var i;this.type=2,this._$AH=Ss,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cg=null===(i=null==n?void 0:n.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ts(this,t,e),ps(t)?t===Ss||null==t||""===t?(this._$AH!==Ss&&this._$AR(),this._$AH=Ss):t!==this._$AH&&t!==$s&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return gs(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.M(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==Ss&&ps(this._$AH)?this._$AA.nextSibling.data=t:this.S(hs.createTextNode(t)),this._$AH=t}T(t){var e;const{values:s,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=Os.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.m(s);else{const t=new xs(i,this),e=t.p(this.options);t.m(s),this.S(e),this._$AH=t}}_$AC(t){let e=Cs.get(t.strings);return void 0===e&&Cs.set(t.strings,e=new Os(t)),e}M(t){gs(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const i of t)n===e.length?e.push(s=new Ps(this.A(us()),this.A(us()),this,this.options)):s=e[n],s._$AI(i),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Ls{constructor(t,e,s,n,i){this.type=1,this._$AH=Ss,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Ss}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,n){const i=this.strings;let a=!1;if(void 0===i)t=Ts(this,t,e,0),a=!ps(t)||t!==this._$AH&&t!==$s,a&&(this._$AH=t);else{const n=t;let r,o;for(t=i[0],r=0;r<i.length-1;r++)o=Ts(this,n[s+r],e,r),o===$s&&(o=this._$AH[r]),a||(a=!ps(o)||o!==this._$AH[r]),o===Ss?t=Ss:t!==Ss&&(t+=(null!=o?o:"")+i[r+1]),this._$AH[r]=o}a&&!n&&this.k(t)}k(t){t===Ss?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Is extends Ls{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===Ss?void 0:t}}class Ds extends Ls{constructor(){super(...arguments),this.type=4}k(t){t&&t!==Ss?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}class ks extends Ls{constructor(t,e,s,n,i){super(t,e,s,n,i),this.type=5}_$AI(t,e=this){var s;if((t=null!==(s=Ts(this,t,e,0))&&void 0!==s?s:Ss)===$s)return;const n=this._$AH,i=t===Ss&&n!==Ss||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,a=t!==Ss&&(n===Ss||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class Ns{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Ts(this,t)}}const Rs=window.litHtmlPolyfillSupport;null==Rs||Rs(Os,Ps),(null!==(as=globalThis.litHtmlVersions)&&void 0!==as?as:globalThis.litHtmlVersions=[]).push("2.0.1");
|
|
23
7
|
/**
|
|
24
8
|
* @license
|
|
25
|
-
* Copyright
|
|
26
|
-
*
|
|
27
|
-
* http://polymer.github.io/LICENSE.txt
|
|
28
|
-
* The complete set of authors may be found at
|
|
29
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
30
|
-
* The complete set of contributors may be found at
|
|
31
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
32
|
-
* Code distributed by Google as part of the polymer project is also
|
|
33
|
-
* subject to an additional IP rights grant found at
|
|
34
|
-
* http://polymer.github.io/PATENTS.txt
|
|
9
|
+
* Copyright 2020 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
11
|
*/
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @license
|
|
39
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
40
|
-
* This code may only be used under the BSD style license found at
|
|
41
|
-
* http://polymer.github.io/LICENSE.txt
|
|
42
|
-
* The complete set of authors may be found at
|
|
43
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
44
|
-
* The complete set of contributors may be found at
|
|
45
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
46
|
-
* Code distributed by Google as part of the polymer project is also
|
|
47
|
-
* subject to an additional IP rights grant found at
|
|
48
|
-
* http://polymer.github.io/PATENTS.txt
|
|
49
|
-
*/const En=` ${_n} `;class An{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let r=0;r<t;r++){const t=this.strings[r],i=t.lastIndexOf("\x3c!--");n=(i>-1||n)&&-1===t.indexOf("--\x3e",i+1);const a=Pn.exec(t);e+=null===a?t+(n?En:vn):t.substr(0,a.index)+a[1]+a[2]+bn+a[3]+_n}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}
|
|
50
|
-
/**
|
|
51
|
-
* @license
|
|
52
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
53
|
-
* This code may only be used under the BSD style license found at
|
|
54
|
-
* http://polymer.github.io/LICENSE.txt
|
|
55
|
-
* The complete set of authors may be found at
|
|
56
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
57
|
-
* The complete set of contributors may be found at
|
|
58
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
59
|
-
* Code distributed by Google as part of the polymer project is also
|
|
60
|
-
* subject to an additional IP rights grant found at
|
|
61
|
-
* http://polymer.github.io/PATENTS.txt
|
|
62
|
-
*/const Un=t=>null===t||!("object"==typeof t||"function"==typeof t),xn=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class Fn{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t<n.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new On(this)}_getValue(){const t=this.strings,e=t.length-1;let n="";for(let r=0;r<e;r++){n+=t[r];const e=this.parts[r];if(void 0!==e){const t=e.value;if(Un(t)||!xn(t))n+="string"==typeof t?t:String(t);else for(const e of t)n+="string"==typeof e?e:String(e)}}return n+=t[e],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class On{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===mn||Un(t)&&t===this.value||(this.value=t,pn(t)||(this.committer.dirty=!0))}commit(){for(;pn(this.value);){const t=this.value;this.value=mn,t(this)}this.value!==mn&&this.committer.commit()}}class Ln{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(Sn()),this.endNode=t.appendChild(Sn())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=Sn()),t.__insert(this.endNode=Sn())}insertAfterPart(t){t.__insert(this.startNode=Sn()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){for(;pn(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=mn,t(this)}const t=this.__pendingValue;t!==mn&&(Un(t)?t!==this.value&&this.__commitText(t):t instanceof An?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):xn(t)?this.__commitIterable(t):t===yn?(this.value=yn,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof Mn&&this.value.template===e)this.value.update(t.values);else{const n=new Mn(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let n,r=0;for(const i of t)n=e[r],void 0===n&&(n=new Ln(this.options),e.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(e[r-1])),n.setValue(i),n.commit(),r++;r<e.length&&(e.length=r,this.clear(n&&n.endNode))}clear(t=this.startNode){fn(this.startNode.parentNode,t.nextSibling,this.endNode)}}class In{constructor(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;pn(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=mn,t(this)}if(this.__pendingValue===mn)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=mn}}class kn extends Fn{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new Rn(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class Rn extends On{}let Nn=!1;try{const t={get capture(){return Nn=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}class jn{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;pn(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=mn,t(this)}if(this.__pendingValue===mn)return;const t=this.__pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),r=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=Wn(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=mn}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const Wn=t=>t&&(Nn?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);
|
|
63
|
-
/**
|
|
64
|
-
* @license
|
|
65
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
66
|
-
* This code may only be used under the BSD style license found at
|
|
67
|
-
* http://polymer.github.io/LICENSE.txt
|
|
68
|
-
* The complete set of authors may be found at
|
|
69
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
70
|
-
* The complete set of contributors may be found at
|
|
71
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
72
|
-
* Code distributed by Google as part of the polymer project is also
|
|
73
|
-
* subject to an additional IP rights grant found at
|
|
74
|
-
* http://polymer.github.io/PATENTS.txt
|
|
75
|
-
*/const Vn=new class{handleAttributeExpressions(t,e,n,r){const i=e[0];if("."===i){return new kn(t,e.slice(1),n).parts}return"@"===i?[new jn(t,e.slice(1),r.eventContext)]:"?"===i?[new In(t,e.slice(1),n)]:new Fn(t,e,n).parts}handleTextExpression(t){return new Ln(t)}};
|
|
76
|
-
/**
|
|
77
|
-
* @license
|
|
78
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
79
|
-
* This code may only be used under the BSD style license found at
|
|
80
|
-
* http://polymer.github.io/LICENSE.txt
|
|
81
|
-
* The complete set of authors may be found at
|
|
82
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
83
|
-
* The complete set of contributors may be found at
|
|
84
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
85
|
-
* Code distributed by Google as part of the polymer project is also
|
|
86
|
-
* subject to an additional IP rights grant found at
|
|
87
|
-
* http://polymer.github.io/PATENTS.txt
|
|
88
|
-
*/function $n(t){let e=Yn.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},Yn.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const r=t.strings.join(_n);return n=e.keyString.get(r),void 0===n&&(n=new Cn(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}const Yn=new Map,Bn=new WeakMap;
|
|
12
|
+
const Us=new Map,js=(t=>(e,...s)=>{var n;const i=s.length;let a,r;const o=[],l=[];let c,d=0,h=!1;for(;d<i;){for(c=e[d];d<i&&void 0!==(r=s[d],a=null===(n=r)||void 0===n?void 0:n._$litStatic$);)c+=a+e[++d],h=!0;l.push(r),o.push(c),d++}if(d===i&&o.push(e[i]),h){const t=o.join("$$lit$$");void 0===(e=Us.get(t))&&Us.set(t,e=o),s=l}return t(e,...s)})(bs),Hs=2;
|
|
89
13
|
/**
|
|
90
14
|
* @license
|
|
91
|
-
* Copyright
|
|
92
|
-
*
|
|
93
|
-
* http://polymer.github.io/LICENSE.txt
|
|
94
|
-
* The complete set of authors may be found at
|
|
95
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
96
|
-
* The complete set of contributors may be found at
|
|
97
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
98
|
-
* Code distributed by Google as part of the polymer project is also
|
|
99
|
-
* subject to an additional IP rights grant found at
|
|
100
|
-
* http://polymer.github.io/PATENTS.txt
|
|
15
|
+
* Copyright 2017 Google LLC
|
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
17
|
*/
|
|
102
18
|
/**
|
|
103
19
|
* @license
|
|
104
|
-
* Copyright
|
|
105
|
-
*
|
|
106
|
-
* http://polymer.github.io/LICENSE.txt
|
|
107
|
-
* The complete set of authors may be found at
|
|
108
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
109
|
-
* The complete set of contributors may be found at
|
|
110
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
111
|
-
* Code distributed by Google as part of the polymer project is also
|
|
112
|
-
* subject to an additional IP rights grant found at
|
|
113
|
-
* http://polymer.github.io/PATENTS.txt
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
114
22
|
*/
|
|
115
|
-
(
|
|
23
|
+
class Bs extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=Ss,t.type!==Hs)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ss||null==t)return this.vt=void 0,this.it=t;if(t===$s)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Bs.directiveName="unsafeHTML",Bs.resultType=1;const Vs=(t,e,s,{host:n}={})=>{"string"==typeof s?t=js`<style>${s}</style>${t}`:Array.isArray(s)&&s.length&&(t=js`${s.map((t=>js`<link type="text/css" rel="stylesheet" href="${t}">`))}${t}`),((t,e,s)=>{var n,i;const a=null!==(n=null==s?void 0:s.renderBefore)&&void 0!==n?n:e;let r=a._$litPart$;if(void 0===r){const t=null!==(i=null==s?void 0:s.renderBefore)&&void 0!==i?i:null;a._$litPart$=r=new Ps(e.insertBefore(us(),t),t,void 0,null!=s?s:{})}r._$AI(t)})(t,e,{host:n})},zs={tag:"ui5-test-generic",properties:{strProp:{type:String},boolProp:{type:Boolean},objectProp:{type:Object},noAttributeProp:{type:String,noAttribute:!0},multiProp:{type:String,multiple:!0},defaultValueProp:{type:String,defaultValue:"Hello"}},managedSlots:!0,slots:{default:{type:Node},other:{type:HTMLElement},individual:{type:HTMLElement,individualSlots:!0},named:{type:HTMLElement,propertyName:"items"}}};class Zs extends is{static get metadata(){return zs}static get render(){return Vs}static get template(){return t=>js`<div><p>
|
|
116
24
|
<slot></slot>
|
|
117
25
|
<slot name="other"></slot>
|
|
118
26
|
<slot name="individual-1"></slot>
|
|
119
27
|
<slot name="individual-2"></slot>
|
|
120
|
-
</p></div>`}static get styles(){return":host {\n display: inline-block;\n border: 1px solid black;\n color: var(--var1);\n }"}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}}
|
|
28
|
+
</p></div>`}static get styles(){return":host {\n display: inline-block;\n border: 1px solid black;\n color: var(--var1);\n }"}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}}Zs.define();const Ws={tag:"ui5-test-no-shadow"};(class extends is{static get metadata(){return Ws}}).define();const Fs={tag:"ui5-test-parent",managedSlots:!0,slots:{default:{type:Node,invalidateOnChildChange:{properties:["prop1"]}},items:{type:HTMLElement,invalidateOnChildChange:{properties:!0}}}};(class extends is{static get metadata(){return Fs}static get render(){return Vs}static get template(){return t=>js`<div>
|
|
121
29
|
<slot></slot>
|
|
122
|
-
</div>`}}).define();const
|
|
30
|
+
</div>`}}).define();const qs={tag:"ui5-test-child",properties:{prop1:{type:String},prop2:{type:String},prop3:{type:String}}};(class extends is{static get metadata(){return qs}static get render(){return Vs}static get template(){return t=>js`<div></div>`}}).define();const Gs={tag:"ui5-with-static-area",properties:{staticContent:{type:Boolean}},slots:{}};(class extends is{static get metadata(){return Gs}static get render(){return Vs}static get template(){return t=>js`
|
|
31
|
+
<div dir=${t.effectiveDir}>
|
|
32
|
+
WithStaticArea works!
|
|
33
|
+
</div>`}static get staticAreaTemplate(){return t=>js`
|
|
34
|
+
<div class="ui5-with-static-area-content">
|
|
35
|
+
Static area content.
|
|
36
|
+
</div>`}static get styles(){return"\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tborder: 1px solid black;\n\t\t\t\tcolor: red;\n\t\t\t}"}async addStaticArea(){if(!this.staticContent)return;const t=await this.getStaticAreaItemDomRef();return this.responsivePopover=t.querySelector(".ui5-with-static-area-content"),this.responsivePopover}onBeforeRendering(){this.addStaticArea()}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}}).define();const Js={tag:"ui5-test-generic-ext",properties:{extProp:{type:String},strProp:{defaultValue:"Ext"}},slots:{extSlot:{type:HTMLElement}}};(class extends Zs{static get metadata(){return Js}}).define();Tt("@ui5/webcomponents-base-test","sap_fiori_3",(()=>":root{ --var1: red; }")),Tt("@ui5/webcomponents-base-test","sap_fiori_3_dark",(()=>":root{ --var1: green; }")),Tt("@ui5/webcomponents-base-test","sap_belize",(()=>":root{ --var1: blue; }")),Tt("@ui5/webcomponents-base-test","sap_belize_hcb",(()=>":root{ --var1: orange; }")),Tt("@ui5/webcomponents-base-test","sap_belize_hcw",(()=>":root{ --var1: orange; }")),Tt("@ui5/webcomponents-base-test","sap_fiori_3_hcb",(()=>":root{ --var1: yellow; }")),Tt("@ui5/webcomponents-base-test","sap_fiori_3_hcw",(()=>":root{ --var1: yellow; }"));const Ks=navigator.userAgent,Ys=/(msie|trident)/i.test(Ks),Xs=!Ys&&/(Chrome|CriOS)/.test(Ks);!Ys&&!Xs&&/(Version|PhantomJS)\/(\d+\.\d+).*Safari/.test(Ks),!Ys&&/webkit/.test(Ks);!(-1!==navigator.platform.indexOf("Win"))&&/Android/.test(Ks)&&/(?=android)(?=.*mobile)/i.test(Ks),/ipad/i.test(Ks);const Qs=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g,tn=new Map;class en{constructor(t){this.packageName=t}getText(t,...e){if("string"==typeof t&&(t={key:t,defaultText:t}),!t||!t.key)return"";const s=(n=this.packageName,lt.get(n));var n;s&&!s[t.key]&&console.warn(`Key ${t.key} not found in the i18n bundle, the default text will be used`);const i=s&&s[t.key]?s[t.key]:t.defaultText||t.key;return a=(a=e)||[],i.replace(Qs,((t,e,s,n,i)=>{if(e)return"'";if(s)return s.replace(/''/g,"'");if(n)return String(a[parseInt(n)]);throw new Error(`[i18n]: pattern syntax error at pos ${i}`)}));var a}}let sn;const nn={Gregorian:"Gregorian",Islamic:"Islamic",Japanese:"Japanese",Buddhist:"Buddhist",Persian:"Persian"};class an extends ge{static isValid(t){return!!nn[t]}}let rn;an.generateTypeAccessors(nn);let on;const ln=new b;window.isIE=()=>Ys,window.registerThemePropertiesLoader=Tt,window["sap-ui-webcomponents-bundle"]={configuration:{getAnimationMode:()=>(void 0===sn&&(A(),sn=y.animationMode),sn),getLanguage:G,getTheme:Ft,setTheme:qt,getNoConflict:Ge,setNoConflict:t=>{qe=t},getCalendarType:()=>(void 0===rn&&(A(),rn=y.calendarType),an.isValid(rn)?rn:an.Gregorian),getRTL:Be,getFirstDayOfWeek:()=>(void 0===on&&(A(),on=y.formatSettings),on.firstDayOfWeek)},getIconNames:async()=>(await Xt("edit"),await Xt("tnt/arrow"),await Xt("business-suite/3d"),Array.from(Jt.keys())),registerI18nLoader:(t,e,s)=>{const n=`${t}/${e}`;dt.set(n,s)},getI18nBundle:async t=>(await pt(t),(t=>{if(tn.has(t))return tn.get(t);const e=new en(t);return tn.set(t,e),e})(t)),renderFinished:z,applyDirection:async()=>{const t=ln.fireEvent("directionChange");await Promise.all(t),await W({rtlAware:!0})},EventProvider:b};
|
|
123
37
|
//# sourceMappingURL=bundle.esm.js.map
|