@ui5/webcomponents-base 0.0.0-82b703434 → 0.0.0-8393c7cdd

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.
Files changed (349) hide show
  1. package/.eslintignore +3 -0
  2. package/CHANGELOG.md +297 -0
  3. package/README.md +53 -7
  4. package/bundle.esm.js +20 -20
  5. package/dist/AssetRegistry.js +8 -9
  6. package/dist/Boot.js +59 -0
  7. package/dist/CSP.js +59 -0
  8. package/dist/CustomElementsRegistry.js +60 -4
  9. package/dist/CustomElementsScope.js +20 -98
  10. package/dist/CustomElementsScopeUtils.js +108 -0
  11. package/dist/DOMObserver.js +65 -0
  12. package/dist/Device.js +71 -773
  13. package/dist/EventProvider.js +30 -26
  14. package/dist/FeaturesRegistry.js +4 -1
  15. package/dist/FontFace.js +7 -95
  16. package/dist/InitialConfiguration.js +37 -21
  17. package/dist/Keys.js +98 -0
  18. package/dist/ManagedStyles.js +83 -0
  19. package/dist/MediaRange.js +109 -0
  20. package/dist/{util/parseProperties.js → PropertiesFileFormat.js} +6 -0
  21. package/dist/Render.js +175 -0
  22. package/dist/RenderScheduler.js +16 -141
  23. package/dist/Runtimes.js +107 -0
  24. package/dist/StaticArea.js +1 -29
  25. package/dist/StaticAreaItem.js +58 -65
  26. package/dist/SystemCSSVars.js +4 -25
  27. package/dist/UI5Element.js +127 -251
  28. package/dist/UI5ElementMetadata.js +64 -17
  29. package/dist/asset-registries/Icons.js +118 -15
  30. package/dist/asset-registries/Illustrations.js +30 -0
  31. package/dist/asset-registries/LocaleData.js +97 -68
  32. package/dist/asset-registries/Themes.js +29 -35
  33. package/dist/asset-registries/i18n.js +62 -49
  34. package/dist/assets/bundle.esm.742a0a2e.js +43 -0
  35. package/dist/assets-meta/IconCollectionsAlias.js +18 -0
  36. package/dist/config/Icons.js +52 -0
  37. package/dist/config/Language.js +18 -20
  38. package/dist/config/Theme.js +25 -0
  39. package/dist/css/BusyIndicator.css +80 -0
  40. package/dist/css/FontFace.css +66 -0
  41. package/dist/css/OverrideFontFace.css +32 -0
  42. package/dist/css/SystemCSSVars.css +17 -0
  43. package/dist/delegate/ItemNavigation.js +189 -226
  44. package/dist/delegate/ResizeHandler.js +78 -37
  45. package/dist/delegate/ScrollEnablement.js +49 -20
  46. package/dist/features/F6Navigation.js +110 -0
  47. package/dist/features/OpenUI5Enablement.js +119 -0
  48. package/dist/features/OpenUI5Support.js +41 -6
  49. package/dist/generated/AssetParameters.js +1 -1
  50. package/dist/generated/VersionInfo.js +10 -0
  51. package/dist/generated/css/BusyIndicator.css.js +5 -0
  52. package/dist/generated/css/FontFace.css.js +5 -0
  53. package/dist/generated/css/OverrideFontFace.css.js +5 -0
  54. package/dist/generated/css/SystemCSSVars.css.js +5 -0
  55. package/dist/i18nBundle.js +39 -5
  56. package/dist/locale/applyDirection.js +6 -4
  57. package/dist/locale/directionChange.js +32 -0
  58. package/dist/locale/getEffectiveDir.js +28 -0
  59. package/dist/locale/languageChange.js +1 -1
  60. package/dist/renderer/LitRenderer.js +39 -18
  61. package/dist/renderer/directives/style-map.js +72 -0
  62. package/dist/renderer/executeTemplate.js +19 -2
  63. package/dist/sap/base/Log.js +241 -0
  64. package/dist/sap/base/assert.js +8 -0
  65. package/dist/sap/base/security/URLListValidator.js +148 -0
  66. package/dist/sap/base/security/encodeCSS.js +14 -0
  67. package/dist/sap/base/security/encodeXML.js +23 -0
  68. package/dist/sap/base/security/sanitizeHTML.js +16 -0
  69. package/dist/sap/base/strings/toHex.js +8 -0
  70. package/dist/sap/base/util/now.js +7 -0
  71. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +3585 -0
  72. package/dist/theming/CustomStyle.js +25 -5
  73. package/dist/theming/applyTheme.js +11 -16
  74. package/dist/theming/getConstructableStyle.js +7 -6
  75. package/dist/theming/getEffectiveLinksHrefs.js +27 -0
  76. package/dist/theming/getEffectiveStyle.js +24 -8
  77. package/dist/theming/getStylesString.js +4 -2
  78. package/dist/theming/getThemeDesignerTheme.js +25 -5
  79. package/dist/theming/preloadLinks.js +23 -0
  80. package/dist/types/CSSColor.js +9 -0
  81. package/dist/types/DOMReference.js +24 -0
  82. package/dist/types/DataType.js +12 -0
  83. package/dist/types/Float.js +4 -0
  84. package/dist/types/Integer.js +4 -0
  85. package/dist/types/InvisibleMessageMode.js +30 -0
  86. package/dist/types/ItemNavigationBehavior.js +2 -7
  87. package/dist/updateShadowRoot.js +29 -0
  88. package/dist/util/AriaLabelHelper.js +6 -8
  89. package/dist/util/Caret.js +32 -0
  90. package/dist/util/ColorConversion.js +398 -0
  91. package/dist/util/FocusableElements.js +13 -7
  92. package/dist/util/HTMLSanitizer.js +7 -0
  93. package/dist/util/InvisibleMessage.js +69 -0
  94. package/dist/util/PopupUtils.js +93 -0
  95. package/dist/util/SlotsHelper.js +43 -0
  96. package/dist/util/TabbableElements.js +5 -1
  97. package/dist/util/clamp.js +12 -0
  98. package/dist/util/createLinkInHead.js +19 -0
  99. package/dist/util/debounce.js +17 -0
  100. package/dist/util/escapeRegex.js +10 -0
  101. package/dist/util/generateHighlightedMarkup.js +42 -0
  102. package/dist/util/getClassCopy.js +10 -0
  103. package/dist/util/getEffectiveContentDensity.js +5 -0
  104. package/dist/util/getEffectiveScrollbarStyle.js +5 -0
  105. package/dist/util/getNormalizedTarget.js +16 -0
  106. package/dist/util/isDefaultSlotProvided.js +11 -0
  107. package/dist/util/isElementInView.js +15 -0
  108. package/dist/util/isNodeHidden.js +1 -1
  109. package/dist/util/isNodeTabbable.js +4 -4
  110. package/hash.txt +1 -0
  111. package/index.js +1 -1
  112. package/lib/generate-asset-parameters/index.js +8 -5
  113. package/lib/generate-styles/index.js +26 -0
  114. package/lib/generate-version-info/index.js +32 -0
  115. package/package-scripts.js +37 -28
  116. package/package.json +20 -13
  117. package/src/AssetRegistry.js +8 -9
  118. package/src/Boot.js +59 -0
  119. package/src/CSP.js +59 -0
  120. package/src/CustomElementsRegistry.js +60 -4
  121. package/src/CustomElementsScope.js +20 -98
  122. package/src/CustomElementsScopeUtils.js +108 -0
  123. package/src/DOMObserver.js +65 -0
  124. package/src/Device.js +71 -773
  125. package/src/EventProvider.js +30 -26
  126. package/src/FeaturesRegistry.js +4 -1
  127. package/src/FontFace.js +7 -95
  128. package/src/InitialConfiguration.js +37 -21
  129. package/src/Keys.js +98 -0
  130. package/src/ManagedStyles.js +83 -0
  131. package/src/MediaRange.js +109 -0
  132. package/src/{util/parseProperties.js → PropertiesFileFormat.js} +6 -0
  133. package/src/Render.js +175 -0
  134. package/src/RenderScheduler.js +16 -141
  135. package/src/Runtimes.js +107 -0
  136. package/src/StaticArea.js +1 -29
  137. package/src/StaticAreaItem.js +58 -65
  138. package/src/SystemCSSVars.js +4 -25
  139. package/src/UI5Element.js +127 -251
  140. package/src/UI5ElementMetadata.js +64 -17
  141. package/src/asset-registries/Icons.js +118 -15
  142. package/src/asset-registries/Illustrations.js +30 -0
  143. package/src/asset-registries/LocaleData.js +97 -68
  144. package/src/asset-registries/Themes.js +29 -35
  145. package/src/asset-registries/i18n.js +62 -49
  146. package/src/assets-meta/IconCollectionsAlias.js +18 -0
  147. package/src/config/Icons.js +52 -0
  148. package/src/config/Language.js +18 -20
  149. package/src/config/Theme.js +25 -0
  150. package/src/css/BusyIndicator.css +80 -0
  151. package/src/css/FontFace.css +66 -0
  152. package/src/css/OverrideFontFace.css +32 -0
  153. package/src/css/SystemCSSVars.css +17 -0
  154. package/src/delegate/ItemNavigation.js +189 -226
  155. package/src/delegate/ResizeHandler.js +78 -37
  156. package/src/delegate/ScrollEnablement.js +49 -20
  157. package/src/features/F6Navigation.js +110 -0
  158. package/src/features/OpenUI5Enablement.js +119 -0
  159. package/src/features/OpenUI5Support.js +41 -6
  160. package/src/i18nBundle.js +39 -5
  161. package/src/locale/applyDirection.js +6 -4
  162. package/src/locale/directionChange.js +32 -0
  163. package/src/locale/getEffectiveDir.js +28 -0
  164. package/src/locale/languageChange.js +1 -1
  165. package/src/renderer/LitRenderer.js +39 -18
  166. package/src/renderer/directives/style-map.js +72 -0
  167. package/src/renderer/executeTemplate.js +19 -2
  168. package/src/theming/CustomStyle.js +25 -5
  169. package/src/theming/applyTheme.js +11 -16
  170. package/src/theming/getConstructableStyle.js +7 -6
  171. package/src/theming/getEffectiveLinksHrefs.js +27 -0
  172. package/src/theming/getEffectiveStyle.js +24 -8
  173. package/src/theming/getStylesString.js +4 -2
  174. package/src/theming/getThemeDesignerTheme.js +25 -5
  175. package/src/theming/preloadLinks.js +23 -0
  176. package/src/types/CSSColor.js +9 -0
  177. package/src/types/DOMReference.js +24 -0
  178. package/src/types/DataType.js +12 -0
  179. package/src/types/Float.js +4 -0
  180. package/src/types/Integer.js +4 -0
  181. package/src/types/InvisibleMessageMode.js +30 -0
  182. package/src/types/ItemNavigationBehavior.js +2 -7
  183. package/src/updateShadowRoot.js +29 -0
  184. package/src/util/AriaLabelHelper.js +6 -8
  185. package/src/util/Caret.js +32 -0
  186. package/src/util/ColorConversion.js +398 -0
  187. package/src/util/FocusableElements.js +13 -7
  188. package/src/util/HTMLSanitizer.js +7 -0
  189. package/src/util/InvisibleMessage.js +69 -0
  190. package/src/util/PopupUtils.js +93 -0
  191. package/src/util/SlotsHelper.js +43 -0
  192. package/src/util/TabbableElements.js +5 -1
  193. package/src/util/clamp.js +12 -0
  194. package/src/util/createLinkInHead.js +19 -0
  195. package/src/util/debounce.js +17 -0
  196. package/src/util/escapeRegex.js +10 -0
  197. package/src/util/generateHighlightedMarkup.js +42 -0
  198. package/src/util/getClassCopy.js +10 -0
  199. package/src/util/getEffectiveContentDensity.js +5 -0
  200. package/src/util/getEffectiveScrollbarStyle.js +5 -0
  201. package/src/util/getNormalizedTarget.js +16 -0
  202. package/src/util/isDefaultSlotProvided.js +11 -0
  203. package/src/util/isElementInView.js +15 -0
  204. package/src/util/isNodeHidden.js +1 -1
  205. package/src/util/isNodeTabbable.js +4 -4
  206. package/used-modules.txt +10 -0
  207. package/bundle.es5.js +0 -28
  208. package/config/.eslintrc.js +0 -3
  209. package/config/rollup.config.js +0 -1
  210. package/dist/SVGIconRegistry.js +0 -73
  211. package/dist/boot.js +0 -34
  212. package/dist/compatibility/DOMObserver.js +0 -62
  213. package/dist/compatibility/patchNodeValue.js +0 -24
  214. package/dist/compatibility/whenPolyfillLoaded.js +0 -26
  215. package/dist/config/AssetsPath.js +0 -17
  216. package/dist/delegate/CustomResize.js +0 -78
  217. package/dist/delegate/NativeResize.js +0 -45
  218. package/dist/features/PropertiesFormatSupport.js +0 -8
  219. package/dist/features/browsersupport/Edge.js +0 -6
  220. package/dist/features/browsersupport/IE11.js +0 -42
  221. package/dist/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
  222. package/dist/renderer/ifDefined.js +0 -21
  223. package/dist/renderer/scopeHTML.js +0 -32
  224. package/dist/resources/bundle.es5.js +0 -225
  225. package/dist/resources/bundle.es5.js.map +0 -1
  226. package/dist/resources/bundle.esm.js +0 -129
  227. package/dist/resources/bundle.esm.js.map +0 -1
  228. package/dist/test-resources/assets/Themes.js +0 -17
  229. package/dist/test-resources/elements/Child.js +0 -35
  230. package/dist/test-resources/elements/Generic.js +0 -84
  231. package/dist/test-resources/elements/GenericExt.js +0 -26
  232. package/dist/test-resources/elements/NoShadowDOM.js +0 -13
  233. package/dist/test-resources/elements/Parent.js +0 -41
  234. package/dist/test-resources/elements/WithStaticArea.js +0 -76
  235. package/dist/test-resources/pages/AllTestElements.html +0 -42
  236. package/dist/test-resources/pages/Configuration.html +0 -20
  237. package/dist/test-resources/pages/ConfigurationScript.html +0 -36
  238. package/dist/test-resources/pages/assets/messagebundle_de.properties +0 -1
  239. package/dist/test-resources/pages/assets/messagebundle_en.properties +0 -1
  240. package/dist/test-resources/pages/assets/messagebundle_es.properties +0 -1
  241. package/dist/test-resources/pages/assets/messagebundle_fr.properties +0 -1
  242. package/dist/test-resources/pages/i18n.html +0 -40
  243. package/dist/test-resources/specs/ConfigurationChange.spec.js +0 -25
  244. package/dist/test-resources/specs/ConfigurationScript.spec.js +0 -61
  245. package/dist/test-resources/specs/ConfigurationURL.spec.js +0 -45
  246. package/dist/test-resources/specs/CustomTheme.spec.js +0 -25
  247. package/dist/test-resources/specs/StaticArea.spec.js +0 -34
  248. package/dist/test-resources/specs/Theming.spec.js +0 -31
  249. package/dist/test-resources/specs/UI5ElementInvalidation.js +0 -240
  250. package/dist/test-resources/specs/UI5ElementLifecycle.js +0 -96
  251. package/dist/test-resources/specs/UI5ElementListenForChildPropChanges.spec.js +0 -73
  252. package/dist/test-resources/specs/UI5ElementMetadataExt.js +0 -40
  253. package/dist/test-resources/specs/UI5ElementPropertyValidation.js +0 -12
  254. package/dist/test-resources/specs/UI5ElementPropsAndAttrs.spec.js +0 -65
  255. package/dist/test-resources/specs/UI5ElementShadowDOM.js +0 -22
  256. package/dist/test-resources/specs/UI5ElementSlots.js +0 -34
  257. package/dist/theming/CSSVarsPonyfill.js +0 -68
  258. package/dist/theming/adaptCSSForIE.js +0 -95
  259. package/dist/theming/createComponentStyleTag.js +0 -54
  260. package/dist/theming/createThemePropertiesStyleTag.js +0 -20
  261. package/dist/thirdparty/Array.from.js +0 -16
  262. package/dist/thirdparty/Array.prototype.fill.js +0 -44
  263. package/dist/thirdparty/Array.prototype.find.js +0 -46
  264. package/dist/thirdparty/Array.prototype.includes.js +0 -51
  265. package/dist/thirdparty/Element.prototype.closest.js +0 -11
  266. package/dist/thirdparty/Element.prototype.matches.js +0 -6
  267. package/dist/thirdparty/Map.prototype.keys.js +0 -9
  268. package/dist/thirdparty/Number.isInteger.js +0 -5
  269. package/dist/thirdparty/Number.isNaN.js +0 -1
  270. package/dist/thirdparty/Number.parseFloat.js +0 -1
  271. package/dist/thirdparty/Number.parseInt.js +0 -1
  272. package/dist/thirdparty/Object.assign.js +0 -31
  273. package/dist/thirdparty/Object.entries.js +0 -11
  274. package/dist/thirdparty/Symbol.js +0 -2
  275. package/dist/thirdparty/WeakSet.js +0 -27
  276. package/dist/thirdparty/es6-string-methods.js +0 -182
  277. package/dist/thirdparty/events-polyfills.js +0 -89
  278. package/dist/thirdparty/fetch.js +0 -1
  279. package/dist/thirdparty/template.js +0 -600
  280. package/dist/thirdparty/webcomponents-sd-ce-pf.js +0 -318
  281. package/dist/types/CalendarSelection.js +0 -17
  282. package/dist/util/EffectiveAssetPath.js +0 -27
  283. package/dist/util/encodeCSS.js +0 -24
  284. package/dist/util/findNodeOwner.js +0 -35
  285. package/dist/util/isSlot.js +0 -3
  286. package/dist/webcomponentsjs/LICENSE.md +0 -19
  287. package/dist/webcomponentsjs/README.md +0 -229
  288. package/dist/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
  289. package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
  290. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -297
  291. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
  292. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -208
  293. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
  294. package/dist/webcomponentsjs/bundles/webcomponents-sd.js +0 -166
  295. package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
  296. package/dist/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
  297. package/dist/webcomponentsjs/package.json +0 -46
  298. package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
  299. package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
  300. package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
  301. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
  302. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
  303. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
  304. package/dist/webcomponentsjs/webcomponents-bundle.js +0 -298
  305. package/dist/webcomponentsjs/webcomponents-bundle.js.map +0 -1
  306. package/dist/webcomponentsjs/webcomponents-loader.js +0 -185
  307. package/src/SVGIconRegistry.js +0 -73
  308. package/src/boot.js +0 -34
  309. package/src/compatibility/DOMObserver.js +0 -62
  310. package/src/compatibility/patchNodeValue.js +0 -24
  311. package/src/compatibility/whenPolyfillLoaded.js +0 -26
  312. package/src/config/AssetsPath.js +0 -17
  313. package/src/delegate/CustomResize.js +0 -78
  314. package/src/delegate/NativeResize.js +0 -45
  315. package/src/features/PropertiesFormatSupport.js +0 -8
  316. package/src/features/browsersupport/Edge.js +0 -6
  317. package/src/features/browsersupport/IE11.js +0 -42
  318. package/src/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
  319. package/src/renderer/ifDefined.js +0 -21
  320. package/src/renderer/scopeHTML.js +0 -32
  321. package/src/theming/CSSVarsPonyfill.js +0 -68
  322. package/src/theming/adaptCSSForIE.js +0 -95
  323. package/src/theming/createComponentStyleTag.js +0 -54
  324. package/src/theming/createThemePropertiesStyleTag.js +0 -20
  325. package/src/thirdparty/Array.from.js +0 -16
  326. package/src/thirdparty/Array.prototype.fill.js +0 -44
  327. package/src/thirdparty/Array.prototype.find.js +0 -46
  328. package/src/thirdparty/Array.prototype.includes.js +0 -51
  329. package/src/thirdparty/Element.prototype.closest.js +0 -11
  330. package/src/thirdparty/Element.prototype.matches.js +0 -6
  331. package/src/thirdparty/Map.prototype.keys.js +0 -9
  332. package/src/thirdparty/Number.isInteger.js +0 -5
  333. package/src/thirdparty/Number.isNaN.js +0 -1
  334. package/src/thirdparty/Number.parseFloat.js +0 -1
  335. package/src/thirdparty/Number.parseInt.js +0 -1
  336. package/src/thirdparty/Object.assign.js +0 -31
  337. package/src/thirdparty/Object.entries.js +0 -11
  338. package/src/thirdparty/Symbol.js +0 -2
  339. package/src/thirdparty/WeakSet.js +0 -27
  340. package/src/thirdparty/es6-string-methods.js +0 -182
  341. package/src/thirdparty/events-polyfills.js +0 -89
  342. package/src/thirdparty/fetch.js +0 -1
  343. package/src/thirdparty/template.js +0 -600
  344. package/src/thirdparty/webcomponents-sd-ce-pf.js +0 -318
  345. package/src/types/CalendarSelection.js +0 -17
  346. package/src/util/EffectiveAssetPath.js +0 -27
  347. package/src/util/encodeCSS.js +0 -24
  348. package/src/util/findNodeOwner.js +0 -35
  349. package/src/util/isSlot.js +0 -3
@@ -1,225 +0,0 @@
1
- !function(e){"use strict";
2
- /*!
3
- * css-vars-ponyfill
4
- * v2.1.2
5
- * https://jhildenbiddle.github.io/css-vars-ponyfill/
6
- * (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
7
- * MIT license
8
- */function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function n(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}
9
- /*!
10
- * get-css-data
11
- * v1.6.3
12
- * https://github.com/jhildenbiddle/get-css-data
13
- * (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
14
- * MIT license
15
- */()}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],o=Array.apply(null,Array(r.length)).map((function(e){return null}));function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="<"===e.trim().charAt(0);return!t}function a(e,t){n.onError(e,r[t],t)}function s(e,t){var i=n.onSuccess(e,r[t],t);e=!1===i?"":i||e,o[t]=e,-1===o.indexOf(null)&&n.onComplete(o)}var u=document.createElement("a");r.forEach((function(e,t){if(u.setAttribute("href",e),u.href=String(u.href),Boolean(document.all&&!window.atob)&&u.host.split(":")[0]!==location.host.split(":")[0]){if(u.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",e),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){i(r.responseText)?s(r.responseText,t):a(r,t)},r.onerror=function(e){a(r,t)},setTimeout((function(){r.send()}),0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(e,")")),a(null,t)}else{var o=new XMLHttpRequest;o.open("GET",e),n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),n.onBeforeSend(o,e,t),o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&i(o.responseText)?s(o.responseText,t):a(o,t))},o.send()}}))}
16
- /**
17
- * Gets CSS data from <style> and <link> nodes (including @imports), then
18
- * returns data in order processed by DOM. Allows specifying nodes to
19
- * include/exclude and filtering CSS data using RegEx.
20
- *
21
- * @preserve
22
- * @param {object} [options] The options object
23
- * @param {object} [options.rootElement=document] Root element to traverse for
24
- * <link> and <style> nodes.
25
- * @param {string} [options.include] CSS selector matching <link> and <style>
26
- * nodes to include
27
- * @param {string} [options.exclude] CSS selector matching <link> and <style>
28
- * nodes to exclude
29
- * @param {object} [options.filter] Regular expression used to filter node CSS
30
- * data. Each block of CSS data is tested against the filter,
31
- * and only matching data is included.
32
- * @param {object} [options.useCSSOM=false] Determines if CSS data will be
33
- * collected from a stylesheet's runtime values instead of its
34
- * text content. This is required to get accurate CSS data
35
- * when a stylesheet has been modified using the deleteRule()
36
- * or insertRule() methods because these modifications will
37
- * not be reflected in the stylesheet's text content.
38
- * @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
39
- * 1) the XHR object, 2) source node reference, and 3) the
40
- * source URL as arguments.
41
- * @param {function} [options.onSuccess] Callback on each CSS node read. Passes
42
- * 1) CSS text, 2) source node reference, and 3) the source
43
- * URL as arguments.
44
- * @param {function} [options.onError] Callback on each error. Passes 1) the XHR
45
- * object for inspection, 2) soure node reference, and 3) the
46
- * source URL that failed (either a <link> href or an @import)
47
- * as arguments
48
- * @param {function} [options.onComplete] Callback after all nodes have been
49
- * processed. Passes 1) concatenated CSS text, 2) an array of
50
- * CSS text in DOM order, and 3) an array of nodes in DOM
51
- * order as arguments.
52
- *
53
- * @example
54
- *
55
- * getCssData({
56
- * rootElement: document,
57
- * include : 'style,link[rel="stylesheet"]',
58
- * exclude : '[href="skip.css"]',
59
- * filter : /red/,
60
- * useCSSOM : false,
61
- * onBeforeSend(xhr, node, url) {
62
- * // ...
63
- * }
64
- * onSuccess(cssText, node, url) {
65
- * // ...
66
- * }
67
- * onError(xhr, node, url) {
68
- * // ...
69
- * },
70
- * onComplete(cssText, cssArray, nodeArray) {
71
- * // ...
72
- * }
73
- * });
74
- */function o(e){var t=/\/\*[\s\S]+?\*\//g,n=/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g,o={rootElement:e.rootElement||document,include:e.include||'style,link[rel="stylesheet"]',exclude:e.exclude||null,filter:e.filter||null,useCSSOM:e.useCSSOM||!1,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},a=Array.apply(null,o.rootElement.querySelectorAll(o.include)).filter((function(e){return t=e,n=o.exclude,!(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,n);var t,n})),s=Array.apply(null,Array(a.length)).map((function(e){return null}));function u(){if(-1===s.indexOf(null)){var e=s.join("");o.onComplete(e,s,a)}}function c(e,t,n,r){var i=o.onSuccess(e,n,r);f(e=void 0!==i&&!1===Boolean(i)?"":i||e,n,r,(function(e,r){null===s[t]&&(r.forEach((function(e){return o.onError(e.xhr,n,e.url)})),!o.filter||o.filter.test(e)?s[t]=e:s[t]="",u())}))}function l(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a={};return a.rules=(e.replace(t,"").match(n)||[]).filter((function(e){return-1===o.indexOf(e)})),a.urls=a.rules.map((function(e){return e.replace(n,"$1")})),a.absoluteUrls=a.urls.map((function(e){return i(e,r)})),a.absoluteRules=a.rules.map((function(e,t){var n=a.urls[t],o=i(a.absoluteUrls[t],r);return e.replace(n,o)})),a}function f(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=l(e,n,s);u.rules.length?r(u.absoluteUrls,{onBeforeSend:function(e,n,r){o.onBeforeSend(e,t,n)},onSuccess:function(e,n,r){var i=o.onSuccess(e,t,n),a=l(e=!1===i?"":i||e,n,s);return a.rules.forEach((function(t,n){e=e.replace(t,a.absoluteRules[n])})),e},onError:function(r,o,c){a.push({xhr:r,url:o}),s.push(u.rules[c]),f(e,t,n,i,a,s)},onComplete:function(r){r.forEach((function(t,n){e=e.replace(u.rules[n],t)})),f(e,t,n,i,a,s)}}):i(e,a)}a.length?a.forEach((function(e,t){var n=e.getAttribute("href"),a=e.getAttribute("rel"),l="LINK"===e.nodeName&&n&&a&&"stylesheet"===a.toLowerCase(),f="STYLE"===e.nodeName;if(l)r(n,{mimeType:"text/css",onBeforeSend:function(t,n,r){o.onBeforeSend(t,e,n)},onSuccess:function(r,o,a){var s=i(n,location.href);c(r,t,e,s)},onError:function(n,r,i){s[t]="",o.onError(n,e,r),u()}});else if(f){var h=e.textContent;o.useCSSOM&&(h=Array.apply(null,e.sheet.cssRules).map((function(e){return e.cssText})).join("")),c(h,t,e,location.href)}else s[t]="",u()})):o.onComplete("",[])}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t,o.href=e,o.href}var a=s;function s(e,t,n){e instanceof RegExp&&(e=u(e,n)),t instanceof RegExp&&(t=u(t,n));var r=c(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function u(e,t){var n=t.match(e);return n?n[0]:null}function c(e,t,n){var r,o,i,a,s,u=n.indexOf(e),c=n.indexOf(t,u+1),l=u;if(u>=0&&c>0){for(r=[],i=n.length;l>=0&&!s;)l==u?(r.push(l),u=n.indexOf(e,l+1)):1==r.length?s=[r.pop(),c]:((o=r.pop())<i&&(i=o,a=c),c=n.indexOf(t,l+1)),l=u<c&&u>=0?u:c;r.length&&(s=[i,a])}return s}function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={preserveStatic:!0,removeComments:!1},o=t({},r,n),i=[];function s(e){throw new Error("CSS parse error: ".concat(e))}function u(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n}function c(){return u(/^{\s*/)}function l(){return u(/^}/)}function f(){u(/^\s*/)}function h(){if(f(),"/"===e[0]&&"*"===e[1]){for(var t=2;e[t]&&("*"!==e[t]||"/"!==e[t+1]);)t++;if(!e[t])return s("end of comment is missing");var n=e.slice(2,t);return e=e.slice(t+2),{type:"comment",comment:n}}}function d(){for(var e,t=[];e=h();)t.push(e);return o.removeComments?[]:t}function p(){for(f();"}"===e[0];)s("extra closing bracket");var t=u(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(t)return t[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){u(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//g,t=u(/^(\*?[-#\/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=t[0].trim(),!u(/^:\s*/))return s("property missing ':'");var n=u(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),r={type:"declaration",property:t.replace(e,""),value:n?n[0].replace(e,"").trim():""};return u(/^[;\s]*/),r}}function m(){if(!c())return s("missing '{'");for(var e,t=d();e=v();)t.push(e),t=t.concat(d());return l()?t:s("missing '}'")}function g(){f();for(var e,t=[];e=u(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),u(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:m()}}function y(){var e=u(/^@([-\w]+)?keyframes\s*/);if(e){var t=e[1];if(!(e=u(/^([-\w]+)\s*/)))return s("@keyframes missing name");var n,r=e[1];if(!c())return s("@keyframes missing '{'");for(var o=d();n=g();)o.push(n),o=o.concat(d());return l()?{type:"keyframes",name:r,vendor:t,keyframes:o}:s("@keyframes missing '}'")}}function w(){if(u(/^@page */))return{type:"page",selectors:p()||[],declarations:m()}}function b(){if(u(/^@font-face\s*/))return{type:"font-face",declarations:m()}}function _(){var e=u(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:R()}}function S(){if(u(/^@host\s*/))return{type:"host",rules:R()}}function k(){var e=u(/^@media([^{]+)*/);if(e)return{type:"media",media:(e[1]||"").trim(),rules:R()}}function E(){var e=u(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}function x(){var e=u(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:R()}}function A(){var e=u(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}function O(){if(f(),"@"===e[0]){var t=y()||_()||S()||k()||E()||w()||x()||b()||A();if(t&&!o.preserveStatic){var n=!1;if(t.declarations)n=t.declarations.some((function(e){return/var\(/.test(e.value)}));else n=(t.keyframes||t.rules||[]).some((function(e){return(e.declarations||[]).some((function(e){return/var\(/.test(e.value)}))}));return n?t:{}}return t}}function C(){if(!o.preserveStatic){var t=a("{","}",e);if(t){var n=/:(?:root|host)(?![.:#(])/.test(t.pre)&&/--\S*\s*:/.test(t.body),r=/var\(/.test(t.body);if(!n&&!r)return e=e.slice(t.end+1),{}}}var i=p()||[],u=o.preserveStatic?m():m().filter((function(e){var t=i.some((function(e){return/:(?:root|host)(?![.:#(])/.test(e)}))&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}));return i.length||s("selector missing"),{type:"rule",selectors:i,declarations:u}}function R(t){if(!t&&!c())return s("missing '{'");for(var n,r=d();e.length&&(t||"}"!==e[0])&&(n=O()||C());)n.type&&r.push(n),r=r.concat(d());return t||l()?r:s("missing '}'")}return{type:"stylesheet",stylesheet:{rules:R(!0),errors:i}}}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={parseHost:!1,store:{},onWarning:function(){}},o=t({},r,n),i=new RegExp(":".concat(o.parseHost?"host":"root","(?![.:#(])"));return"string"==typeof e&&(e=l(e,o)),e.stylesheet.rules.forEach((function(e){"rule"===e.type&&e.selectors.some((function(e){return i.test(e)}))&&e.declarations.forEach((function(e,t){var n=e.property,r=e.value;n&&0===n.indexOf("--")&&(o.store[n]=r)}))})),o.store}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(e){return"@charset "+e.name+";"},comment:function(e){return 0===e.comment.indexOf("__CSSVARSPONYFILL")?"/*"+e.comment+"*/":""},"custom-media":function(e){return"@custom-media "+e.name+" "+e.media+";"},declaration:function(e){return e.property+":"+e.value+";"},document:function(e){return"@"+(e.vendor||"")+"document "+e.document+"{"+o(e.rules)+"}"},"font-face":function(e){return"@font-face{"+o(e.declarations)+"}"},host:function(e){return"@host{"+o(e.rules)+"}"},import:function(e){return"@import "+e.name+";"},keyframe:function(e){return e.values.join(",")+"{"+o(e.declarations)+"}"},keyframes:function(e){return"@"+(e.vendor||"")+"keyframes "+e.name+"{"+o(e.keyframes)+"}"},media:function(e){return"@media "+e.media+"{"+o(e.rules)+"}"},namespace:function(e){return"@namespace "+e.name+";"},page:function(e){return"@page "+(e.selectors.length?e.selectors.join(", "):"")+"{"+o(e.declarations)+"}"},rule:function(e){var t=e.declarations;if(t.length)return e.selectors.join(",")+"{"+o(t)+"}"},supports:function(e){return"@supports "+e.supports+"{"+o(e.rules)+"}"}};function o(e){for(var o="",i=0;i<e.length;i++){var a=e[i];n&&n(a);var s=r[a.type](a);s&&(o+=s,s.length&&a.selectors&&(o+=t))}return o}return o(e.stylesheet.rules)}function d(e,t){e.rules.forEach((function(n){n.rules?d(n,t):n.keyframes?n.keyframes.forEach((function(e){"keyframe"===e.type&&t(e.declarations,n)})):n.declarations&&t(n.declarations,e)}))}s.range=c;function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},o=t({},r,n);return"string"==typeof e&&(e=l(e,o)),d(e.stylesheet,(function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=r.type,a=r.property,s=r.value;if("declaration"===i)if(o.preserveVars||!a||0!==a.indexOf("--")){if(-1!==s.indexOf("var(")){var u=m(s,o);u!==r.value&&(u=v(u),o.preserveVars?(e.splice(n,0,{type:i,property:a,value:u}),n++):r.value=u)}}else e.splice(n,1),n--}})),h(e)}function v(e){return(e.match(/calc\(([^)]+)\)/g)||[]).forEach((function(t){var n="calc".concat(t.split("calc").join(""));e=e.replace(t,n)})),e}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var r=a("(",")",e);function o(e){var r=e.split(",")[0].replace(/[\s\n\t]/g,""),o=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],i=Object.prototype.hasOwnProperty.call(t.variables,r)?String(t.variables[r]):void 0,a=i||(o?String(o):void 0),s=n||e;return i||t.onWarning('variable "'.concat(r,'" is undefined')),a&&"undefined"!==a&&a.length>0?m(a,t,s):"var(".concat(s,")")}if(r){if("var"===r.pre.slice(-3)){var i=0===r.body.trim().length;return i?(t.onWarning("var() must contain a non-whitespace string"),e):r.pre.slice(0,-3)+o(r.body)+m(r.post,t)}return r.pre+"(".concat(m(r.body,t),")")+m(r.post,t)}return-1!==e.indexOf("var(")&&t.onWarning('missing closing ")" in the value "'.concat(e,'"')),e}var g="undefined"!=typeof window,y=g&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),w={group:0,job:0},b={rootElement:g?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onWarning:function(){},onError:function(){},onSuccess:function(){},onComplete:function(){}},_={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},S={dom:{},job:{},user:{}},k=!1,E=null,x=0,A=null,O=!1;
75
- /**
76
- * Fetches, parses, and transforms CSS custom properties from specified
77
- * <style> and <link> elements into static values, then appends a new <style>
78
- * element with static values to the DOM to provide CSS custom property
79
- * compatibility for legacy browsers. Also provides a single interface for
80
- * live updates of runtime values in both modern and legacy browsers.
81
- *
82
- * @preserve
83
- * @param {object} [options] Options object
84
- * @param {object} [options.rootElement=document] Root element to traverse for
85
- * <link> and <style> nodes
86
- * @param {boolean} [options.shadowDOM=false] Determines if shadow DOM <link>
87
- * and <style> nodes will be processed.
88
- * @param {string} [options.include="style,link[rel=stylesheet]"] CSS selector
89
- * matching <link re="stylesheet"> and <style> nodes to
90
- * process
91
- * @param {string} [options.exclude] CSS selector matching <link
92
- * rel="stylehseet"> and <style> nodes to exclude from those
93
- * matches by options.include
94
- * @param {object} [options.variables] A map of custom property name/value
95
- * pairs. Property names can omit or include the leading
96
- * double-hyphen (—), and values specified will override
97
- * previous values
98
- * @param {boolean} [options.onlyLegacy=true] Determines if the ponyfill will
99
- * only generate legacy-compatible CSS in browsers that lack
100
- * native support (i.e., legacy browsers)
101
- * @param {boolean} [options.preserveStatic=true] Determines if CSS
102
- * declarations that do not reference a custom property will
103
- * be preserved in the transformed CSS
104
- * @param {boolean} [options.preserveVars=false] Determines if CSS custom
105
- * property declarations will be preserved in the transformed
106
- * CSS
107
- * @param {boolean} [options.silent=false] Determines if warning and error
108
- * messages will be displayed on the console
109
- * @param {boolean} [options.updateDOM=true] Determines if the ponyfill will
110
- * update the DOM after processing CSS custom properties
111
- * @param {boolean} [options.updateURLs=true] Determines if the ponyfill will
112
- * convert relative url() paths to absolute urls
113
- * @param {boolean} [options.watch=false] Determines if a MutationObserver will
114
- * be created that will execute the ponyfill when a <link> or
115
- * <style> DOM mutation is observed
116
- * @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
117
- * 1) the XHR object, 2) source node reference, and 3) the
118
- * source URL as arguments
119
- * @param {function} [options.onWarning] Callback after each CSS parsing warning
120
- * has occurred. Passes 1) a warning message as an argument.
121
- * @param {function} [options.onError] Callback after a CSS parsing error has
122
- * occurred or an XHR request has failed. Passes 1) an error
123
- * message, and 2) source node reference, 3) xhr, and 4 url as
124
- * arguments.
125
- * @param {function} [options.onSuccess] Callback after CSS data has been
126
- * collected from each node and before CSS custom properties
127
- * have been transformed. Allows modifying the CSS data before
128
- * it is transformed by returning any string value (or false
129
- * to skip). Passes 1) CSS text, 2) source node reference, and
130
- * 3) the source URL as arguments.
131
- * @param {function} [options.onComplete] Callback after all CSS has been
132
- * processed, legacy-compatible CSS has been generated, and
133
- * (optionally) the DOM has been updated. Passes 1) a CSS
134
- * string with CSS variable values resolved, 2) an array of
135
- * output <style> node references that have been appended to
136
- * the DOM, 3) an object containing all custom properies names
137
- * and values, and 4) the ponyfill execution time in
138
- * milliseconds.
139
- *
140
- * @example
141
- *
142
- * cssVars({
143
- * rootElement : document,
144
- * shadowDOM : false,
145
- * include : 'style,link[rel="stylesheet"]',
146
- * exclude : '',
147
- * variables : {},
148
- * onlyLegacy : true,
149
- * preserveStatic: true,
150
- * preserveVars : false,
151
- * silent : false,
152
- * updateDOM : true,
153
- * updateURLs : true,
154
- * watch : false,
155
- * onBeforeSend(xhr, node, url) {},
156
- * onWarning(message) {},
157
- * onError(message, node, xhr, url) {},
158
- * onSuccess(cssText, node, url) {},
159
- * onComplete(cssText, styleNode, cssVariables, benchmark) {}
160
- * });
161
- */
162
- function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="cssVars(): ",i=t({},b,e);function a(e,t,n,o){!i.silent&&window.console&&console.error("".concat(r).concat(e,"\n"),t),i.onError(e,t,n,o)}function s(e){!i.silent&&window.console&&console.warn("".concat(r).concat(e)),i.onWarning(e)}if(g){if(i.watch)return i.watch=b.watch,R(i),void C(i);if(!1===i.watch&&E&&(E.disconnect(),E=null),!i.__benchmark){if(k===i.rootElement)return void M(e);if(i.__benchmark=T(),i.exclude=[E?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',i.exclude].filter((function(e){return e})).join(","),i.variables=j(i.variables),!E){var u=Array.apply(null,i.rootElement.querySelectorAll('[data-cssvars="out"]'));if(u.forEach((function(e){var t=e.getAttribute("data-cssvars-group");(t?i.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(t,'"]')):null)||e.parentNode.removeChild(e)})),x){var c=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])');c.length<x&&(x=c.length,S.dom={})}}}if("loading"!==document.readyState)if(y&&i.onlyLegacy){if(i.updateDOM){var d=i.rootElement.host||(i.rootElement===document?document.documentElement:i.rootElement);Object.keys(i.variables).forEach((function(e){d.style.setProperty(e,i.variables[e])}))}}else!O&&(i.shadowDOM||i.rootElement.shadowRoot||i.rootElement.host)?o({rootElement:b.rootElement,include:b.include,exclude:i.exclude,onSuccess:function(e,t,n){return(e=((e=e.replace(_.cssComments,"").replace(_.cssMediaQueries,"")).match(_.cssVarDeclRules)||[]).join(""))||!1},onComplete:function(e,t,n){f(e,{store:S.dom,onWarning:s}),O=!0,C(i)}}):(k=i.rootElement,o({rootElement:i.rootElement,include:i.include,exclude:i.exclude,onBeforeSend:i.onBeforeSend,onError:function(e,t,n){var r=e.responseURL||N(n,location.href),o=e.statusText?"(".concat(e.statusText,")"):"Unspecified Error"+(0===e.status?" (possibly CORS related)":"");a("CSS XHR Error: ".concat(r," ").concat(e.status," ").concat(o),t,e,r)},onSuccess:function(e,t,n){var r=i.onSuccess(e,t,n);return e=void 0!==r&&!1===Boolean(r)?"":r||e,i.updateURLs&&(e=P(e,n)),e},onComplete:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],u={},c=i.updateDOM?S.dom:Object.keys(S.job).length?S.job:S.job=JSON.parse(JSON.stringify(S.dom)),d=!1;if(o.forEach((function(e,t){if(_.cssVars.test(r[t]))try{var n=l(r[t],{preserveStatic:i.preserveStatic,removeComments:!0});f(n,{parseHost:Boolean(i.rootElement.host),store:u,onWarning:s}),e.__cssVars={tree:n}}catch(t){a(t.message,e)}})),i.updateDOM&&t(S.user,i.variables),t(u,i.variables),d=Boolean((document.querySelector("[data-cssvars]")||Object.keys(S.dom).length)&&Object.keys(u).some((function(e){return u[e]!==c[e]}))),t(c,S.user,u),d)D(i.rootElement),C(i);else{var v=[],m=[],g=!1;if(S.job={},i.updateDOM&&w.job++,o.forEach((function(e){var n=!e.__cssVars;if(e.__cssVars)try{p(e.__cssVars.tree,t({},i,{variables:c,onWarning:s}));var r=h(e.__cssVars.tree);if(i.updateDOM){if(e.getAttribute("data-cssvars")||e.setAttribute("data-cssvars","src"),r.length){var o=e.getAttribute("data-cssvars-group")||++w.group,u=r.replace(/\s/g,""),l=i.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(o,'"]'))||document.createElement("style");g=g||_.cssKeyframes.test(r),l.hasAttribute("data-cssvars")||l.setAttribute("data-cssvars","out"),u===e.textContent.replace(/\s/g,"")?(n=!0,l&&l.parentNode&&(e.removeAttribute("data-cssvars-group"),l.parentNode.removeChild(l))):u!==l.textContent.replace(/\s/g,"")&&([e,l].forEach((function(e){e.setAttribute("data-cssvars-job",w.job),e.setAttribute("data-cssvars-group",o)})),l.textContent=r,v.push(r),m.push(l),l.parentNode||e.parentNode.insertBefore(l,e.nextSibling))}}else e.textContent.replace(/\s/g,"")!==r&&v.push(r)}catch(t){a(t.message,e)}n&&e.setAttribute("data-cssvars","skip"),e.hasAttribute("data-cssvars-job")||e.setAttribute("data-cssvars-job",w.job)})),x=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,i.shadowDOM)for(var y,b=[i.rootElement].concat(n(i.rootElement.querySelectorAll("*"))),E=0;y=b[E];++E)if(y.shadowRoot&&y.shadowRoot.querySelector("style")){var A=t({},i,{rootElement:y.shadowRoot});C(A)}i.updateDOM&&g&&L(i.rootElement),k=!1,i.onComplete(v.join(""),m,JSON.parse(JSON.stringify(c)),T()-i.__benchmark)}}}));else document.addEventListener("DOMContentLoaded",(function t(n){C(e),document.removeEventListener("DOMContentLoaded",t)}))}}function R(e){function t(e){return"LINK"===e.tagName&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")&&!e.disabled}window.MutationObserver&&(E&&(E.disconnect(),E=null),(E=new MutationObserver((function(n){n.some((function(n){var r,o=!1;return"attributes"===n.type?o=t(n.target):"childList"===n.type&&(r=n.addedNodes,o=Array.apply(null,r).some((function(e){var n=1===e.nodeType&&e.hasAttribute("data-cssvars"),r=function(e){return"STYLE"===e.tagName&&!e.disabled}(e)&&_.cssVars.test(e.textContent);return!n&&(t(e)||r)}))||function(t){return Array.apply(null,t).some((function(t){var n=1===t.nodeType,r=n&&"out"===t.getAttribute("data-cssvars"),o=n&&"src"===t.getAttribute("data-cssvars"),i=o;if(o||r){var a=t.getAttribute("data-cssvars-group"),s=e.rootElement.querySelector('[data-cssvars-group="'.concat(a,'"]'));o&&(D(e.rootElement),S.dom={}),s&&s.parentNode.removeChild(s)}return i}))}(n.removedNodes)),o}))&&C(e)}))).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0}))}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(A),A=setTimeout((function(){e.__benchmark=null,C(e)}),t)}function L(e){var t=["animation-name","-moz-animation-name","-webkit-animation-name"].filter((function(e){return getComputedStyle(document.body)[e]}))[0];if(t){for(var n=e.getElementsByTagName("*"),r=[],o="__CSSVARSPONYFILL-KEYFRAMES__",i=0,a=n.length;i<a;i++){var s=n[i];"none"!==getComputedStyle(s)[t]&&(s.style[t]+=o,r.push(s))}document.body.offsetHeight;for(var u=0,c=r.length;u<c;u++){var l=r[u].style;l[t]=l[t].replace(o,"")}}}function P(e,t){return(e.replace(_.cssComments,"").match(_.cssUrls)||[]).forEach((function(n){var r=n.replace(_.cssUrls,"$1"),o=N(r,t);e=e.replace(n,n.replace(r,o))})),e}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=/^-{2}/;return Object.keys(e).reduce((function(n,r){return n[t.test(r)?r:"--".concat(r.replace(/^-+/,""))]=e[r],n}),{})}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t,o.href=e,o.href}function T(){return g&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function D(e){Array.apply(null,e.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach((function(e){return e.setAttribute("data-cssvars","")}))}if(C.reset=function(){for(var e in k=!1,E&&(E.disconnect(),E=null),x=0,A=null,O=!1,S)S[e]={}},String.prototype.startsWith||function(){var e={}.toString;Object.defineProperty(String.prototype,"startsWith",{value:function(t){if(null==this)throw TypeError();var n=String(this);if(t&&"[object RegExp]"==e.call(t))throw TypeError();var r=n.length,o=String(t),i=o.length,a=arguments.length>1?arguments[1]:void 0,s=a?Number(a):0;s!=s&&(s=0);var u=Math.min(Math.max(s,0),r);if(i+u>r)return!1;for(var c=-1;++c<i;)if(n.charCodeAt(u+c)!=o.charCodeAt(c))return!1;return!0},configurable:!0,writable:!0})}(),String.prototype.endsWith||function(){var e={}.toString;Object.defineProperty(String.prototype,"endsWith",{value:function(t){if(null==this)throw TypeError();var n=String(this);if(t&&"[object RegExp]"==e.call(t))throw TypeError();var r=n.length,o=String(t),i=o.length,a=r;if(arguments.length>1){var s=arguments[1];void 0!==s&&(a=s?Number(s):0)!=a&&(a=0)}var u=Math.min(Math.max(a,0),r),c=u-i;if(c<0)return!1;for(var l=-1;++l<i;)if(n.charCodeAt(c+l)!=o.charCodeAt(l))return!1;return!0},configurable:!0,writable:!0})}(),String.prototype.includes||function(){var e={}.toString,t="".indexOf;Object.defineProperty(String.prototype,"includes",{value:function(n){if(null==this)throw TypeError();var r=String(this);if(n&&"[object RegExp]"==e.call(n))throw TypeError();var o=r.length,i=String(n),a=i.length,s=arguments.length>1?arguments[1]:void 0,u=s?Number(s):0;u!=u&&(u=0);var c=Math.min(Math.max(u,0),o);return!(a+c>o)&&-1!=t.call(r,i,u)},configurable:!0,writable:!0})}(),String.prototype.repeat||Object.defineProperty(String.prototype,"repeat",{value:function(e){if(null==this)throw TypeError();var t=String(this),n=e?Number(e):0;if(n!=n&&(n=0),n<0||n==1/0)throw RangeError();for(var r="";n;)n%2==1&&(r+=t),n>1&&(t+=t),n>>=1;return r},configurable:!0,writable:!0}),String.prototype.padStart||(String.prototype.padStart=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),t.slice(0,e)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(e){if(null==this)throw new TypeError("this is null or not defined");for(var t=Object(this),n=t.length>>>0,r=arguments[1],o=r>>0,i=o<0?Math.max(n+o,0):Math.min(o,n),a=arguments[2],s=void 0===a?n:a>>0,u=s<0?Math.max(n+s,0):Math.min(s,n);i<u;)t[i]=e,i++;return t}}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;var o,i,a=0|t,s=Math.max(a>=0?a:r-Math.abs(a),0);for(;s<r;){if((o=n[s])===(i=e)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;s++}return!1}}),Map.prototype.keys||(Map.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),e}),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.isNaN=Number.isNaN||window.isNaN,Number.parseFloat=Number.parseFloat||window.parseFloat,Number.parseInt=Number.parseInt||window.parseInt,Element&&!Element.prototype.matches){var I=Element.prototype;I.matches=I.matchesSelector||I.mozMatchesSelector||I.msMatchesSelector||I.oMatchesSelector||I.webkitMatchesSelector}if(Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),!window.WeakSet){var V=function(e){this.name="__st"+(1e9*Math.random()>>>0)+F+++"__",e&&e.forEach&&e.forEach(this.add,this)},F=Date.now()%1e9,U=V.prototype;U.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},U.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},U.has=function(e){return!!e[this.name]},window.WeakSet=V}window.fetch||(window.fetch=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest;for(var i in o.open(t.method||"get",e,!0),t.headers)o.setRequestHeader(i,t.headers[i]);function a(){var e,t=[],n=[],r={};return o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(o,i,a){t.push(i=i.toLowerCase()),n.push([i,a]),r[i]=(e=r[i])?e+","+a:a})),{ok:2==(o.status/100|0),status:o.status,statusText:o.statusText,url:o.responseURL,clone:a,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},headers:{keys:function(){return t},entries:function(){return n},get:function(e){return r[e.toLowerCase()]},has:function(e){return e.toLowerCase()in r}}}}o.withCredentials="include"==t.credentials,o.onload=function(){n(a())},o.onerror=r,o.send(t.body||null)}))}),function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",u="object"==typeof module,c=e.regeneratorRuntime;if(c)u&&(module.exports=c);else{(c=e.regeneratorRuntime=u?module.exports:{}).wrap=w;var l="suspendedStart",f="suspendedYield",h="executing",d="completed",p={},v={};v[i]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(M([])));g&&g!==n&&r.call(g,i)&&(v=g);var y=k.prototype=_.prototype=Object.create(v);S.prototype=y.constructor=k,k.constructor=S,k[s]=S.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(y),e},c.awrap=function(e){return{__await:e}},E(x.prototype),x.prototype[a]=function(){return this},c.AsyncIterator=x,c.async=function(e,t,n,r){var o=new x(w(e,t,n,r));return c.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(y),y[s]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=M,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}}}function w(e,t,n,r){var o=t&&t.prototype instanceof _?t:_,i=Object.create(o.prototype),a=new R(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=b(e,t,n);if("normal"===u.type){if(r=n.done?d:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function b(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function _(){}function S(){}function k(){}function E(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function x(e){function t(n,o,i,a){var s=b(e[n],e,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return t("throw",e,i,a)}))}a(s.arg)}var n;this._invoke=function(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}}function A(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=b(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function M(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:L}}function L(){return{value:t,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")()),
163
- /**
164
- *
165
- *
166
- * @author Jerry Bendy <jerry@icewingcc.com>
167
- * @licence MIT
168
- *
169
- */
170
- function(e){var t,n=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=l.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&i)){a.append=function(e,t){v(this.__URLSearchParams__,e,t)},a.delete=function(e){delete this.__URLSearchParams__[e]},a.get=function(e){var t=this.__URLSearchParams__;return e in t?t[e][0]:null},a.getAll=function(e){var t=this.__URLSearchParams__;return e in t?t[e].slice(0):[]},a.has=function(e){return e in this.__URLSearchParams__},a.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},a.toString=function(){var e,t,n,r,o=this.__URLSearchParams__,i=[];for(t in o)for(n=f(t),e=0,r=o[t];e<r.length;e++)i.push(n+"="+f(r[e]));return i.join("&")};var u=!!o&&n&&!r&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:u?new Proxy(n,{construct:function(e,t){return new e(new l(t[0]).toString())}}):l});var c=e.URLSearchParams.prototype;c.polyfill=!0,c.forEach=c.forEach||function(e,t){var n=p(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},c.sort=c.sort||function(){var e,t,n,r=p(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},c.keys=c.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},c.values=c.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},c.entries=c.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},s&&(c[e.Symbol.iterator]=c[e.Symbol.iterator]||c.entries)}function l(e){((e=e||"")instanceof URLSearchParams||e instanceof l)&&(e=e.toString()),this.__URLSearchParams__=p(e)}function f(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function h(e){return decodeURIComponent(e.replace(/\+/g," "))}function d(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function p(e){var t={};if("object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&v(t,n,e[n]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var r=e.split("&"),o=0;o<r.length;o++){var i=r[o],a=i.indexOf("=");-1<a?v(t,h(i.slice(0,a)),h(i.slice(a+1))):i&&v(t,h(i),"")}}return t}function v(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}}("undefined"!=typeof global?global:window);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function H(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){W(i,r,o,a,s,"next",e)}function s(e){W(i,r,o,a,s,"throw",e)}a(void 0)}))}}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t,n){return t&&q(e.prototype,t),n&&q(e,n),e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Q(e,t,n){return(Q=K()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&X(o,n.prototype),o}).apply(null,arguments)}function ee(e){var t="function"==typeof Map?new Map:void 0;return(ee=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Q(e,arguments,Y(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),X(r,e)})(e)}function te(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e,t,n){return(ne="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Y(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function re(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ie(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}!function(){if(window.ShadyDOM){var e=Object.getOwnPropertyDescriptor(Node.prototype,"nodeValue");Object.defineProperty(Node.prototype,"nodeValue",{get:function(){return e.get.apply(this)},set:function(t){e.set.apply(this,arguments);var n=this.parentNode;n instanceof HTMLElement&&n.isUI5Element&&n._processChildren()}})}}(),window.CSSVarsPonyfill={cssVars:C};var ae=new Map,se=function(e,t){ae.set(e,t)},ue=function(e){return ae.get(e)},ce={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"]},le={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"]}.default,fe={default:"en",all:["ar","bg","ca","cs","da","de","el","en","es","et","fi","fr","hi","hr","hu","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh_CN","zh_TW"]}.default,he=ce.default,de=ce.all,pe=function(){var e=navigator.languages;return e&&e[0]||navigator.language||navigator.userLanguage||navigator.browserLanguage||fe},ve={},me=ve.hasOwnProperty,ge=ve.toString,ye=me.toString,we=ye.call(Object),be=function(e){var t,n;return!(!e||"[object Object]"!==ge.call(e))&&(!(t=Object.getPrototypeOf(e))||"function"==typeof(n=me.call(t,"constructor")&&t.constructor)&&ye.call(n)===we)},_e=Object.create(null),Se=function e(){var t,n,r,o,i,a,s=arguments[2]||{},u=3,c=arguments.length,l=arguments[0]||!1,f=arguments[1]?void 0:_e;for("object"!==B(s)&&"function"!=typeof s&&(s={});u<c;u++)if(null!=(i=arguments[u]))for(o in i)t=s[o],r=i[o],"__proto__"!==o&&s!==r&&(l&&r&&(be(r)||(n=Array.isArray(r)))?(n?(n=!1,a=t&&Array.isArray(t)?t:[]):a=t&&be(t)?t:{},s[o]=e(l,arguments[1],a,r)):r!==f&&(s[o]=r));return s},ke=function(){var e=[!0,!1];return e.push.apply(e,arguments),Se.apply(null,e)},Ee=!1,xe={animationMode:"full",theme:le,rtl:null,language:null,calendarType:null,noConflict:!1,formatSettings:{},useDefaultLanguage:!1,assetsPath:""},Ae=new Map;Ae.set("true",!0),Ae.set("false",!1);var Oe,Ce,Re,Me,Le,Pe,je,Ne,Te=function(){Ee||(!function(){var e,t=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");if(t){try{e=JSON.parse(t.innerHTML)}catch(e){console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(xe=ke(xe,e))}}(),new URLSearchParams(window.location.search).forEach((function(e,t){if(t.startsWith("sap-ui")){var n=e.toLowerCase(),r=t.split("sap-ui-")[1];Ae.has(e)&&(e=Ae.get(n)),xe[r]=e}})),function(){var e=ue("OpenUI5Support");if(e&&e.isLoaded()){var t=e.getConfigurationSettingsObject();xe=ke(xe,t)}}(),Ee=!0)},De=function(){function e(){z(this,e),this._eventRegistry={}}return $(e,[{key:"attachEvent",value:function(e,t){var n=this._eventRegistry,r=n[e];Array.isArray(r)||(n[e]=[],r=n[e]),r.push({function:t})}},{key:"detachEvent",value:function(e,t){var n=this._eventRegistry,r=n[e];r&&0===(r=r.filter((function(e){return e.function!==t}))).length&&delete n[e]}},{key:"fireEvent",value:function(e,t){var n=this,r=this._eventRegistry[e];return r?r.map((function(e){return e.function.call(n,t)})):[]}},{key:"isHandlerAttached",value:function(e,t){var n=this._eventRegistry[e];if(!n)return!1;for(var r=0;r<n.length;r++){if(n[r].function===t)return!0}return!1}},{key:"hasListeners",value:function(e){return!!this._eventRegistry[e]}}]),e}(),Ie=new De,Ve=function(e){Ie.attachEvent("languageChange",e)},Fe=function(){function e(){z(this,e),this.list=[],this.lookup=new Set}return $(e,[{key:"add",value:function(e){this.lookup.has(e)||(this.list.push(e),this.lookup.add(e))}},{key:"remove",value:function(e){this.lookup.has(e)&&(this.list=this.list.filter((function(t){return t!==e})),this.lookup.delete(e))}},{key:"shift",value:function(){var e=this.list.shift();if(e)return this.lookup.delete(e),e}},{key:"isEmpty",value:function(){return 0===this.list.length}},{key:"isAdded",value:function(e){return this.lookup.has(e)}},{key:"process",value:function(e){var t,n=new Map;for(t=this.shift();t;){var r=n.get(t)||0;if(r>10)throw new Error("Web component processed too many times this task, max allowed is: ".concat(10));e(t),n.set(t,r+1),t=this.shift()}}}]),e}(),Ue=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t},Be=new Set,We=new Set,He=function(e){Be.add(e)},ze=function(e){return Be.has(e)},qe=function(e){We.add(e),Oe||(Oe=setTimeout((function(){$e(),Oe=void 0}),1e3))},$e=function(){console.warn("The following tags have already been defined by a different UI5 Web Components version: ".concat(Ue(We).join(", "))),We.clear()},Ze=new Set,Ge=new Set,Je=new Fe,Ye=function(){function e(){throw z(this,e),new Error("Static class")}var t,n,r;return $(e,null,[{key:"renderDeferred",value:(r=H(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Je.add(n),t.next=3,e.scheduleRenderTask();case 3:case"end":return t.stop()}}),t)}))),function(e){return r.apply(this,arguments)})},{key:"renderImmediately",value:function(e){e._render()}},{key:"cancelRender",value:function(e){Je.remove(e)}},{key:"scheduleRenderTask",value:(n=H(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Le||(Le=new Promise((function(t){window.requestAnimationFrame((function(){Je.process((function(e){return e._render()})),Le=null,t(),Me||(Me=setTimeout((function(){Me=void 0,Je.isEmpty()&&e._resolveTaskPromise()}),200))}))}))),t.next=3,Le;case 3:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"whenDOMUpdated",value:function(){return Ce||(Ce=new Promise((function(e){Re=e,window.requestAnimationFrame((function(){Je.isEmpty()&&(Ce=void 0,e())}))})))}},{key:"whenAllCustomElementsAreDefined",value:function(){var e=Ue(Be).map((function(e){return customElements.whenDefined(e)}));return Promise.all(e)}},{key:"whenFinished",value:(t=H(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.whenAllCustomElementsAreDefined();case 2:return t.next=4,e.whenDOMUpdated();case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})},{key:"_resolveTaskPromise",value:function(){Je.isEmpty()&&Re&&(Re.call(this),Re=void 0,Ce=void 0)}},{key:"register",value:function(e){Ge.add(e)}},{key:"deregister",value:function(e){Ge.delete(e)}},{key:"reRenderAllUI5Elements",value:function(t){Ge.forEach((function(n){var r,o=n.constructor.getMetadata().getTag(),i=(r=n.constructor,Ze.has(r)),a=n.constructor.getMetadata().isLanguageAware();(!t||t.tag===o||t.rtlAware&&i||t.languageAware&&a)&&e.renderDeferred(n)}))}}]),e}(),Xe=function(){return void 0===Pe&&(Te(),Pe=xe.language),Pe},Ke=function(){var e;return void 0===je&&(Te(),e=xe.useDefaultLanguage,je=e),je},Qe=/^((?:[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,et=function(){function e(t){z(this,e);var n=Qe.exec(t.replace(/_/g,"-"));if(null===n)throw new Error("The given language ".concat(t," does not adhere to BCP-47."));this.sLocaleId=t,this.sLanguage=n[1]||null,this.sScript=n[2]||null,this.sRegion=n[3]||null,this.sVariant=n[4]&&n[4].slice(1)||null,this.sExtension=n[5]&&n[5].slice(1)||null,this.sPrivateUse=n[6]||null,this.sLanguage&&(this.sLanguage=this.sLanguage.toLowerCase()),this.sScript&&(this.sScript=this.sScript.toLowerCase().replace(/^[a-z]/,(function(e){return e.toUpperCase()}))),this.sRegion&&(this.sRegion=this.sRegion.toUpperCase())}return $(e,[{key:"getLanguage",value:function(){return this.sLanguage}},{key:"getScript",value:function(){return this.sScript}},{key:"getRegion",value:function(){return this.sRegion}},{key:"getVariant",value:function(){return this.sVariant}},{key:"getVariantSubtags",value:function(){return this.sVariant?this.sVariant.split("-"):[]}},{key:"getExtension",value:function(){return this.sExtension}},{key:"getExtensionSubtags",value:function(){return this.sExtension?this.sExtension.slice(2).split("-"):[]}},{key:"getPrivateUse",value:function(){return this.sPrivateUse}},{key:"getPrivateUseSubtags",value:function(){return this.sPrivateUse?this.sPrivateUse.slice(2).split("-"):[]}},{key:"hasPrivateUseSubtag",value:function(e){return this.getPrivateUseSubtags().indexOf(e)>=0}},{key:"toString",value:function(){var e=[this.sLanguage];return this.sScript&&e.push(this.sScript),this.sRegion&&e.push(this.sRegion),this.sVariant&&e.push(this.sVariant),this.sExtension&&e.push(this.sExtension),this.sPrivateUse&&e.push(this.sPrivateUse),e.join("-")}}]),e}(),tt=new Map,nt=function(e){return tt.has(e)||tt.set(e,new et(e)),tt.get(e)},rt=function(e){try{if(e&&"string"==typeof e)return nt(e)}catch(e){}},ot=function(e){return e?rt(e):Xe()?nt(Xe()):rt(pe())},it=new Map,at=new Map,st=new Map,ut=function(){var e=H(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return it.get(t)||it.set(t,fetch(t)),e.next=3,it.get(t);case 3:return n=e.sent,st.get(t)||st.set(t,n.text()),e.abrupt("return",st.get(t));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ct=function(){var e=H(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return it.get(t)||it.set(t,fetch(t)),e.next=3,it.get(t);case 3:return n=e.sent,at.get(t)||at.set(t,n.json()),e.abrupt("return",at.get(t));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),lt=/^((?:[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,ft=/(?:^|-)(saptrc|sappsd)(?:-|$)/i,ht={he:"iw",yi:"ji",id:"in",sr:"sh"},dt=function(e){var t;if(!e)return he;if("string"==typeof e&&(t=lt.exec(e.replace(/_/g,"-")))){var n=t[1].toLowerCase(),r=t[3]?t[3].toUpperCase():void 0,o=t[2]?t[2].toLowerCase():void 0,i=t[4]?t[4].slice(1):void 0,a=t[6];return n=ht[n]||n,a&&(t=ft.exec(a))||i&&(t=ft.exec(i))?"en_US_".concat(t[1].toLowerCase()):("zh"!==n||r||("hans"===o?r="CN":"hant"===o&&(r="TW")),n+(r?"_"+r+(i?"_"+i.replace("-","_"):""):""))}},pt=function(e){if(!e)return he;if("zh_HK"===e)return"zh_TW";var t=e.lastIndexOf("_");return t>=0?e.slice(0,t):e!==he?he:""},vt=function(){return void 0===Ne&&(Te(),Ne=xe.assetsPath),Ne},mt=function(e){if("string"!=typeof e)return e;e=e;var t=vt();return t?"".concat(t).concat(e):e},gt=new Map,yt=new Map,wt=function(e,t){gt.set(e,t)},bt=function(e){return gt.get(e)},_t=function(){var e=H(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,u,c,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=yt.get(t)){e.next=4;break}return console.warn("Message bundle assets are not configured. Falling back to English texts."," You need to import ".concat(t,"/dist/Assets.js with a build tool that supports JSON imports.")),e.abrupt("return");case 4:for(r=ot().getLanguage(),o=ot().getRegion(),i=Ke(),a=dt(r+(o?"-".concat(o):""));a!==fe&&!n[a];)a=pt(a);if(!i||a!==fe){e.next=12;break}return wt(t,null),e.abrupt("return");case 12:if("object"!==B(s=n[a])){e.next=16;break}return wt(t,s),e.abrupt("return");case 16:return e.next=18,ut(mt(s));case 18:if(!(u=e.sent).startsWith("{")){e.next=23;break}c=JSON.parse,e.next=27;break;case 23:if(l=ue("PropertiesFormatSupport")){e.next=26;break}throw new Error('In order to support .properties files, please: import "@ui5/webcomponents-base/dist/features/PropertiesFormatSupport.js";');case 26:c=l.parser;case 27:f=c(u),wt(t,f);case 29:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Ve((function(){var e=ie(gt.keys());return Promise.all(e.map(_t))}));var St=new Map,kt={},Et={},xt=function(e){return"https://ui5.sap.com/1.60.2/resources/sap/ui/core/cldr/".concat(e,".json")},At={iw:"he",ji:"yi",in:"id",sh:"sr"},Ot=function(e,t,n){"no"===(e=e&&At[e]||e)&&(e="nb"),"zh"!==e||t||("Hans"===n?t="CN":"Hant"===n&&(t="TW"));var r="".concat(e,"_").concat(t);return de.includes(r)||(r=e),de.includes(r)||(r=he),r},Ct=function(e,t){St.set(e,t)},Rt=function(){var e=H(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(xt&&de.filter((function(e){return!kt[e]&&!Et[e]})).forEach((function(e){Et[e]=xt(e)})),o=Ot(t,n,r),i=kt[o],a=Et[o],s=ue("OpenUI5Support"),!i&&s&&(i=s.getLocaleDataObject()),!i){e.next=10;break}Ct("sap/ui/core/cldr/".concat(o,".json"),i),e.next=15;break;case 10:if(!a){e.next=15;break}return e.next=13,ct(mt(a));case 13:u=e.sent,Ct("sap/ui/core/cldr/".concat(o,".json"),u);case 15:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();Ve((function(){var e=ot();return Rt(e.getLanguage(),e.getRegion(),e.getScript())}));var Mt,Lt,Pt=new Map,jt=new Map,Nt=new Set,Tt=new Set,Dt=function(e,t,n){n._?jt.set("".concat(e,"_").concat(t),n._):n.includes(":root")||""===n?jt.set("".concat(e,"_").concat(t),n):Pt.set("".concat(e,"_").concat(t),n),Nt.add(e),Tt.add(t)},It=function(){var e=H(regeneratorRuntime.mark((function e(t,n){var r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(r=jt.get("".concat(t,"_").concat(n)))){e.next=3;break}return e.abrupt("return",r);case 3:if(Tt.has(n)){e.next=7;break}return o=ie(Tt.values()).join(", "),console.warn("You have requested a non-registered theme - falling back to ".concat(le,". Registered themes are: ").concat(o)),e.abrupt("return",jt.get("".concat(t,"_").concat(le)));case 7:return e.next=9,Vt(t,n);case 9:return i=e.sent,a=i._||i,jt.set("".concat(t,"_").concat(n),a),e.abrupt("return",a);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Vt=function(){var e=H(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Pt.get("".concat(t,"_").concat(n))){e.next=3;break}throw new Error("You have to import the ".concat(t,"/dist/Assets.js module to switch to additional themes"));case 3:return e.abrupt("return",".css"===(i=void 0,(i=(o=r).lastIndexOf("."))<1?"":o.slice(i))?ut(r):ct(mt(r)));case 4:case"end":return e.stop()}var o,i}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ft=function(){return Nt},Ut=function(e){return Tt.has(e)},Bt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("style");return n.type="text/css",Object.entries(t).forEach((function(e){return n.setAttribute.apply(n,ie(e))})),n.textContent=e,document.head.appendChild(n),n},Wt=function(e,t){var n=document.head.querySelector('style[data-ui5-theme-properties="'.concat(t,'"]'));n?n.textContent=e||"":Bt(e,{"data-ui5-theme-properties":t})},Ht=function(){var e=function(){var e=document.querySelector(".sapThemeMetaData-Base-baseLib");if(e)return getComputedStyle(e).backgroundImage;(e=document.createElement("span")).style.display="none",e.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(e);var t=getComputedStyle(e).backgroundImage;return document.body.removeChild(e),t}();if(e&&"none"!==e)return function(e){var t,n;try{t=e.Path.match(/\.([^.]+)\.css_variables$/)[1],n=e.Extends[0]}catch(t){return void console.warn("Malformed theme metadata Object",e)}return{themeName:t,baseThemeName:n}}(function(e){var t=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(e);if(t&&t.length>=2){var n=t[1];if("{"!==(n=n.replace(/\\"/g,'"')).charAt(0)&&"}"!==n.charAt(n.length-1))try{n=decodeURIComponent(n)}catch(e){return void console.warn("Malformed theme metadata string, unable to decodeURIComponent")}try{return JSON.parse(n)}catch(e){console.warn("Malformed theme metadata string, unable to parse JSON")}}}(e))},zt=function(){return!!window.CSSVarsPonyfill},qt=function(){Mt=void 0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.head;e.querySelectorAll('style[data-ui5-element-styles][data-cssvars="src"]').forEach((function(t){var n=t.getAttribute("data-cssvars-group");t.removeAttribute("data-cssvars-group"),t.disabled=!1;var r=e.querySelector('style[data-cssvars="out"][data-cssvars-group="'.concat(n,'"]'));r&&r.removeAttribute("data-cssvars-group")}))}(),window.CSSVarsPonyfill.cssVars({rootElement:document.head,variables:$t()?Zt():{},silent:!0})},$t=function(){var e=document.body;return e.hasAttribute("data-ui5-compact-size")||e.classList.contains("ui5-content-density-compact")||e.classList.contains("sapUiSizeCompact")},Zt=function(){var e={};return ie(document.querySelectorAll("[data-ui5-theme-properties]")).forEach((function(t){for(var n,r=t.textContent.replace("\n",""),o=new RegExp("data-ui5-compact-size[^{]*{(.*?)}","g");null!==(n=o.exec(r));){n[1].split(";").forEach((function(t){var n=t.split(":");e[n[0].trim()]=n[1].trim()}))}})),e},Gt=new De,Jt=function(e){return Gt.fireEvent("themeLoaded",e)},Yt="@ui5/webcomponents-theme-base",Xt=function(){var e=H(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ft().has(Yt)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,It(Yt,t);case 4:n=e.sent,Wt(n,Yt);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Kt=function(){var e=H(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ft().forEach(function(){var e=H(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n!==Yt){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,It(n,t);case 4:r=e.sent,Wt(r,n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Qt=function(){var e=Ht();if(e)return e;var t=ue("OpenUI5Support");if(t&&t.cssVariablesLoaded())return{themeName:t.getConfigurationSettingsObject().theme}},en=function(){var e=H(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Qt())&&t===n.themeName){e.next=6;break}return e.next=4,Xt(t);case 4:e.next=7;break;case 6:o=void 0,(o=document.head.querySelector('style[data-ui5-theme-properties="'.concat(Yt,'"]')))&&o.parentElement.removeChild(o);case 7:return r=Ut(t)?t:n&&n.baseThemeName,e.next=10,Kt(r);case 10:zt()&&qt(),Jt(t);case 12:case"end":return e.stop()}var o}),e)})));return function(t){return e.apply(this,arguments)}}(),tn=function(){return void 0===Lt&&(Te(),Lt=xe.theme),Lt},nn=function(){var e=H(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Lt!==t){e.next=2;break}return e.abrupt("return");case 2:return Lt=t,e.next=5,en(Lt);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),rn=window.sap,on=rn&&rn.ui&&"function"==typeof rn.ui.getCore&&rn.ui.getCore();se("OpenUI5Support",{isLoaded:function(){return!!on},init:function(){return on?new Promise((function(e){on.attachInit((function(){rn.ui.require(["sap/ui/core/LocaleData"],e)}))})):Promise.resolve()},getConfigurationSettingsObject:function(){if(on){var e=on.getConfiguration(),t=rn.ui.require("sap/ui/core/LocaleData");return{animationMode:e.getAnimationMode(),language:e.getLanguage(),theme:e.getTheme(),rtl:e.getRTL(),calendarType:e.getCalendarType(),formatSettings:{firstDayOfWeek:t?t.getInstance(e.getLocale()).getFirstDayOfWeek():void 0}}}},getLocaleDataObject:function(){if(on){var e=on.getConfiguration();return rn.ui.require("sap/ui/core/LocaleData").getInstance(e.getLocale())._get()}},attachListeners:function(){var e;on&&(e=on.getConfiguration(),on.attachThemeChanged(H(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nn(e.getTheme());case 2:case"end":return t.stop()}}),t)})))))},cssVariablesLoaded:function(){if(on){var e=ie(document.head.children).find((function(e){return"sap-ui-theme-sap.ui.core"===e.id}));if(e)return!!e.href.match(/\/css(-|_)variables\.css/)}}});var an,sn,un='\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('.concat("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(').concat("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(').concat("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(').concat("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(').concat("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(').concat("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(').concat("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(').concat("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'),cn=function(){var e=ue("OpenUI5Support");e&&e.isLoaded()||ln(),fn()},ln=function(){document.querySelector("head>style[data-ui5-font-face]")||Bt(un,{"data-ui5-font-face":""})},fn=function(){document.querySelector("head>style[data-ui5-font-face-override]")||Bt("\n\t@font-face {\n\t\tfont-family: '72override';\n\t\tunicode-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;\n\t\tsrc: local('Arial'), local('Helvetica'), local('sans-serif');\n\t}\n",{"data-ui5-font-face-override":""})},hn=function(){function e(){z(this,e)}return $(e,null,[{key:"isValid",value:function(e){}},{key:"generateTypeAccessors",value:function(e){var t=this;Object.keys(e).forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]}})}))}}]),e}(),dn=new Map,pn=new Map,vn=function(e){if(!dn.has(e)){var t=gn(e.split("-"));dn.set(e,t)}return dn.get(e)},mn=function(e){if(!pn.has(e)){var t=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();pn.set(e,t)}return pn.get(e)},gn=function(e){return e.map((function(e,t){return 0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})).join("")},yn=function(e){return e&&e instanceof HTMLElement&&"slot"===e.localName},wn={include:[/^ui5-/],exclude:[]},bn=new Map,_n=function(e){if(!bn.has(e)){var t=wn.include.some((function(t){return e.match(t)}))&&!wn.exclude.some((function(t){return e.match(t)}));bn.set(e,t)}return bn.get(e)},Sn=function(e){_n(e)},kn=function(){function e(t){z(this,e),this.metadata=t}return $(e,[{key:"getPureTag",value:function(){return this.metadata.tag}},{key:"getTag",value:function(){var e=this.metadata.tag,t=Sn(e);return t?"".concat(e,"-").concat(t):e}},{key:"getAltTag",value:function(){var e=this.metadata.altTag;if(e){var t=Sn(e);return t?"".concat(e,"-").concat(t):e}}},{key:"hasAttribute",value:function(e){var t=this.getProperties()[e];return t.type!==Object&&!t.noAttribute}},{key:"getPropertiesList",value:function(){return Object.keys(this.getProperties())}},{key:"getAttributesList",value:function(){return this.getPropertiesList().filter(this.hasAttribute,this).map(mn)}},{key:"getSlots",value:function(){return this.metadata.slots||{}}},{key:"canSlotText",value:function(){var e=this.getSlots().default;return e&&e.type===Node}},{key:"hasSlots",value:function(){return!!Object.entries(this.getSlots()).length}},{key:"hasIndividualSlots",value:function(){return this.slotsAreManaged()&&Object.entries(this.getSlots()).some((function(e){var t=oe(e,2);t[0];return t[1].individualSlots}))}},{key:"slotsAreManaged",value:function(){return!!this.metadata.managedSlots}},{key:"getProperties",value:function(){return this.metadata.properties||{}}},{key:"getEvents",value:function(){return this.metadata.events||{}}},{key:"isLanguageAware",value:function(){return!!this.metadata.languageAware}},{key:"shouldInvalidateOnChildChange",value:function(e,t,n){var r=this.getSlots()[e].invalidateOnChildChange;if(void 0===r)return!1;if("boolean"==typeof r)return r;if("object"===B(r)){if("property"===t){if(void 0===r.properties)return!1;if("boolean"==typeof r.properties)return r.properties;if(Array.isArray(r.properties))return r.properties.includes(n);throw new Error("Wrong format for invalidateOnChildChange.properties: boolean or array is expected")}if("slot"===t){if(void 0===r.slots)return!1;if("boolean"==typeof r.slots)return r.slots;if(Array.isArray(r.slots))return r.slots.includes(n);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")}}],[{key:"validatePropertyValue",value:function(e,t){return t.multiple?e.map((function(e){return En(e,t)})):En(e,t)}},{key:"validateSlotValue",value:function(e,t){return xn(e,t)}}]),e}(),En=function(e,t){var n=t.type;return n===Boolean?"boolean"==typeof e&&e:n===String?"string"==typeof e||null==e?e:e.toString():n===Object?"object"===B(e)?e:t.defaultValue:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("function"!=typeof e||"function"!=typeof t)return!1;if(n&&e===t)return!0;var r=e;do{r=Object.getPrototypeOf(r)}while(null!==r&&r!==t);return r===t}(n,hn)?n.isValid(e)?e:t.defaultValue:void 0},xn=function(e,t){if(null===e)return e;var n;return(yn(n=e)?n.assignedNodes({flatten:!0}).filter((function(e){return e instanceof HTMLElement})):[n]).forEach((function(e){if(!(e instanceof t.type))throw new Error("".concat(e," is not of type ").concat(t.type))})),e},An=function(e,t){var n=t.constructor.getUniqueDependencies().map((function(e){return e.getMetadata().getPureTag()})).filter(_n);return e(t,n,undefined)},On=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,n=document.querySelector(e);return n||(n=document.createElement(e),t.insertBefore(n,t.firstChild))},Cn=function(){return On("ui5-static-area")},Rn=function(e){function t(){return z(this,t),te(this,Y(t).call(this))}return J(t,e),$(t,[{key:"destroy",value:function(){var e=document.querySelector(this.tagName.toLowerCase());e.parentElement.removeChild(e)}},{key:"isUI5Element",get:function(){return!0}}]),t}(ee(HTMLElement));customElements.get("ui5-static-area")||customElements.define("ui5-static-area",Rn);var Mn=function(e){return Array.isArray(e)?Ln(e).join(" "):e},Ln=function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},Pn=function(){function e(t){z(this,e),this.ui5ElementContext=t,this._rendered=!1}var t;return $(e,[{key:"isRendered",value:function(){return this._rendered}},{key:"_updateFragment",value:function(){var e=An(this.ui5ElementContext.constructor.staticAreaTemplate,this.ui5ElementContext),t=!window.ShadyDOM&&Mn(this.ui5ElementContext.constructor.staticAreaStyles);this.staticAreaItemDomRef||(this.staticAreaItemDomRef=document.createElement("ui5-static-area-item"),this.staticAreaItemDomRef.attachShadow({mode:"open"}),this.staticAreaItemDomRef.classList.add(this.ui5ElementContext._id),Cn().appendChild(this.staticAreaItemDomRef),this._rendered=!0),this._updateContentDensity(this.ui5ElementContext.isCompact),this.ui5ElementContext.constructor.render(e,this.staticAreaItemDomRef.shadowRoot,t,{eventContext:this.ui5ElementContext})}},{key:"_removeFragmentFromStaticArea",value:function(){if(this.staticAreaItemDomRef){var e=Cn();e.removeChild(this.staticAreaItemDomRef),this.staticAreaItemDomRef=null,e.childElementCount<1&&Cn().destroy()}}},{key:"_updateContentDensity",value:function(e){this.staticAreaItemDomRef&&(e?(this.staticAreaItemDomRef.classList.add("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.add("ui5-content-density-compact")):(this.staticAreaItemDomRef.classList.remove("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.remove("ui5-content-density-compact")))}},{key:"getDomRef",value:(t=H(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._rendered&&this.staticAreaItemDomRef||this._updateFragment(),e.next=3,Ye.whenDOMUpdated();case 3:return e.abrupt("return",this.staticAreaItemDomRef&&this.staticAreaItemDomRef.shadowRoot);case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),jn=function(e){function t(){return z(this,t),te(this,Y(t).call(this))}return J(t,e),$(t,[{key:"isUI5Element",get:function(){return!0}}]),t}(ee(HTMLElement));customElements.get("ui5-static-area-item")||customElements.define("ui5-static-area-item",jn);var Nn,Tn,Dn=window,In=new WeakMap,Vn=function(){function e(){throw z(this,e),new Error("Static class")}return $(e,null,[{key:"observeDOMNode",value:function(e,t,n){var r=In.get(e);if(r)throw new Error("A mutation/ShadyDOM observer is already assigned to this node.");Dn.ShadyDOM?r=Dn.ShadyDOM.observeChildren(e,t):(r=new MutationObserver(t)).observe(e,n),In.set(e,r)}},{key:"unobserveDOMNode",value:function(e){var t=In.get(e);t&&(t instanceof MutationObserver?t.disconnect():Dn.ShadyDOM.unobserveChildren(t),In.delete(e))}}]),e}(),Fn=["value-changed"],Un=function(){return void 0===Nn&&(Te(),Nn=xe.noConflict),Nn},Bn=function(e){var t=Un();return!function(e){return Fn.includes(e)}(e)&&(!0===t||!function(e){var t=Un();return!(t.events&&t.events.includes&&t.events.includes(e))}(e))},Wn=function(e){Nn=e},Hn={iw:"he",ji:"yi",in:"id",sh:"sr"},zn=((Tn=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec("$cldr-rtl-locales:ar,fa,he$"))&&Tn[2]?Tn[2].split(/,/):null)||[],qn=function(){var e=(Te(),xe.rtl);return null!==e?!!e:function(e){return e=e&&Hn[e]||e,zn.indexOf(e)>=0}(Xe()||pe())},$n=new De,Zn=function(e){$n.attachEvent("CustomCSSChange",e)},Gn={},Jn=new Map;Zn((function(e){Jn.delete(e)}));var Yn=function(e){var t=e.getMetadata().getTag();if(!Jn.has(t)){var n=function(e){return Gn[e]?Gn[e].join(""):""}(t)||"",r=Mn(e.styles),o="".concat(r," ").concat(n);Jn.set(t,o)}return Jn.get(t)},Xn=new Map;Zn((function(e){Xn.delete(e)}));var Kn=function(e,t,n,r){var o=n+t.length,i=e.charAt(o),a=e.substring(0,n)+r;if("("===i){var s=function(e,t){for(var n=1,r=t+1;r<e.length;r++){var o=e.charAt(r);if("("===o?n++:")"===o&&n--,0===n)return r}}(e,o);return a+e.substring(o+1,s)+e.substring(s+1)}return a+e.substring(o)},Qn=function(e,t,n){return(e=function(e,t,n){for(var r=e.indexOf(t);-1!==r;)r=(e=Kn(e,t,r,n)).indexOf(t);return e}(e=e.trim(),"::slotted","")).startsWith(":host")?Kn(e,":host",0,t):e.match(/^[@0-9]/)||"to"===e||"to{"===e||e.match(new RegExp("^".concat(t,"[^a-zA-Z0-9-]")))||n&&e.startsWith("[".concat(n,"]"))?e:"".concat(t," ").concat(e)},er=function(e,t,n){e=(e=e.replace(/\n/g," ")).replace(/([{}])/g,"$1\n");var r="";return e.split("\n").forEach((function(e){if(e.match(/{$/)){var o=e.split(",");e=o.map((function(e){return Qn(e,t,n)})).join(",")}r="".concat(r).concat(e)})),r},tr=new Set;Zn((function(e){tr.delete(e)}));var nr=function(e){var t=e.getMetadata().getTag(),n=e.getMetadata().getPureTag();if(!tr.has(t)){var r=Yn(e);r=er(r,t,n);var o=function(e){var t=e.staticAreaStyles;return Array.isArray(t)&&(t=t.join(" ")),t}(e);o&&(o=er(o,"ui5-static-area-item"),r="".concat(r," ").concat(o)),Bt(r,{"data-ui5-element-styles":t}),zt()&&(Mt||(Mt=window.setTimeout(qt,0))),tr.add(t)}},rr=function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),$(t,null,[{key:"isValid",value:function(e){return Number.isInteger(e)}}]),t}(hn),or=function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),$(t,null,[{key:"isValid",value:function(e){return Number(e)===e}}]),t}(hn),ir=["disabled","title","hidden","role","draggable"],ar=function(e){return!(!ir.includes(e)&&!e.startsWith("aria"))||![HTMLElement,Element,Node].some((function(t){return t.prototype.hasOwnProperty(e)}))},sr=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},ur=0,cr=new Map,lr=new Map;function fr(e){this._suppressInvalidation||(this.onInvalidation(e),this._changedState.push(e),Ye.renderDeferred(this),this._eventProvider.fireEvent("change",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(n,!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{target:this})))}var hr=function(e){function t(){var e,n;return z(this,t),(e=te(this,Y(t).call(this)))._changedState=[],e._suppressInvalidation=!0,e._inDOM=!1,e._fullyConnected=!1,e._childChangeListeners=new Map,e._slotChangeListeners=new Map,e._eventProvider=new De,e._domRefReadyPromise=new Promise((function(e){n=e})),e._domRefReadyPromise._deferredResolve=n,e._initializeState(),e._upgradeAllProperties(),e._initializeContainers(),e}var n,r,o,i,a,s,u;return J(t,e),$(t,[{key:"_initializeContainers",value:function(){var e=this.constructor._needsShadowDOM(),t=this.constructor._needsStaticArea();e&&this.attachShadow({mode:"open"}),t&&(this.staticAreaItem=new Pn(this))}},{key:"connectedCallback",value:(u=H(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.setAttribute(this.constructor.getMetadata().getPureTag(),""),t=this.constructor._needsShadowDOM(),n=this.constructor.getMetadata().slotsAreManaged(),this._inDOM=!0,!n){e.next=8;break}return this._startObservingDOMChildren(),e.next=8,this._processChildren();case 8:if(!t||this.shadowRoot){e.next=11;break}return e.next=11,Promise.resolve();case 11:if(this._inDOM){e.next=13;break}return e.abrupt("return");case 13:Ye.register(this),Ye.renderImmediately(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,"function"==typeof this.onEnterDOM&&this.onEnterDOM();case 18:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){var e=this.constructor._needsShadowDOM(),t=this.constructor._needsStaticArea(),n=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,n&&this._stopObservingDOMChildren(),e&&(Ye.deregister(this),this._fullyConnected&&("function"==typeof this.onExitDOM&&this.onExitDOM(),this._fullyConnected=!1)),t&&this.staticAreaItem._removeFragmentFromStaticArea(),Ye.cancelRender(this)}},{key:"_startObservingDOMChildren",value:function(){if(this.constructor.getMetadata().hasSlots()){var e=this.constructor.getMetadata().canSlotText(),t={childList:!0,subtree:e,characterData:e};Vn.observeDOMNode(this,this._processChildren.bind(this),t)}}},{key:"_stopObservingDOMChildren",value:function(){Vn.unobserveDOMNode(this)}},{key:"_processChildren",value:(s=H(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.constructor.getMetadata().hasSlots()){e.next=4;break}return e.next=4,this._updateSlots();case 4:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"_updateSlots",value:(a=H(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,u,c,l,f,h,d,p,v,m,g,y,w,b,_,S=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this.constructor.getMetadata().getSlots(),n=this.constructor.getMetadata().canSlotText(),r=Array.from(n?this.childNodes:this.children),o=new Map,i=new Map,a=0,s=Object.entries(t);a<s.length;a++)u=oe(s[a],2),c=u[0],l=u[1],f=l.propertyName||c,i.set(f,c),o.set(f,ie(this._state[f])),this._clearSlot(c,l);return h=new Map,d=new Map,p=r.map(function(){var e=H(regeneratorRuntime.mark((function e(n,r){var o,i,a,s,u,c,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=S.constructor._getSlotName(n),void 0!==(i=t[o])){e.next=6;break}return a=Object.keys(t).join(", "),console.warn("Unknown slotName: ".concat(o,", ignoring"),n,"Valid values are: ".concat(a)),e.abrupt("return");case 6:if(i.individualSlots&&(s=(h.get(o)||0)+1,h.set(o,s),n._individualSlot="".concat(o,"-").concat(s)),!(n instanceof HTMLElement)){e.next=19;break}if(!(u=n.localName).includes("-")){e.next=19;break}if(window.customElements.get(u)){e.next=18;break}return c=window.customElements.whenDefined(u),(l=cr.get(u))||(l=new Promise((function(e){return setTimeout(e,1e3)})),cr.set(u,l)),e.next=18,Promise.race([c,l]);case 18:window.customElements.upgrade(n);case 19:(n=S.constructor.getMetadata().constructor.validateSlotValue(n,i)).isUI5Element&&i.invalidateOnChildChange&&n._attachChange(S._getChildChangeListener(o)),yn(n)&&S._attachSlotChange(n,o),f=i.propertyName||o,d.has(f)?d.get(f).push({child:n,idx:r}):d.set(f,[{child:n,idx:r}]);case 24:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),e.next=11,Promise.all(p);case 11:for(d.forEach((function(e,t){S._state[t]=e.sort((function(e,t){return e.idx-t.idx})).map((function(e){return e.child}))})),v=!1,m=0,g=Object.entries(t);m<g.length;m++)y=oe(g[m],2),w=y[0],b=y[1],_=b.propertyName||w,sr(o.get(_),this._state[_])||(fr.call(this,{type:"slot",name:i.get(_),reason:"children"}),v=!0);v||fr.call(this,{type:"slot",name:"default",reason:"textcontent"});case 15:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"_clearSlot",value:function(e,t){var n=this,r=t.propertyName||e;this._state[r].forEach((function(t){t&&t.isUI5Element&&t._detachChange(n._getChildChangeListener(e)),yn(t)&&n._detachSlotChange(t,e)})),this._state[r]=[]}},{key:"_attachChange",value:function(e){this._eventProvider.attachEvent("change",e)}},{key:"_detachChange",value:function(e){this._eventProvider.detachEvent("change",e)}},{key:"_onChildChange",value:function(e,t){this.constructor.getMetadata().shouldInvalidateOnChildChange(e,t.type,t.name)&&fr.call(this,{type:"slot",name:e,reason:"childchange",child:t.target})}},{key:"attributeChangedCallback",value:function(e,t,n){var r=this.constructor.getMetadata().getProperties(),o=e.replace(/^ui5-/,""),i=vn(o);if(r.hasOwnProperty(i)){var a=r[i].type;a===Boolean&&(n=null!==n),a===rr&&(n=parseInt(n)),a===or&&(n=parseFloat(n)),this[i]=n}}},{key:"_updateAttribute",value:function(e,t){if(this.constructor.getMetadata().hasAttribute(e)&&"object"!==B(t)){var n=mn(e),r=this.getAttribute(n);"boolean"==typeof t?!0===t&&null===r?this.setAttribute(n,""):!1===t&&null!==r&&this.removeAttribute(n):r!==t&&this.setAttribute(n,t)}}},{key:"_upgradeProperty",value:function(e){if(this.hasOwnProperty(e)){var t=this[e];delete this[e],this[e]=t}}},{key:"_upgradeAllProperties",value:function(){this.constructor.getMetadata().getPropertiesList().forEach(this._upgradeProperty,this)}},{key:"_initializeState",value:function(){var e=this.constructor._getDefaultState();this._state=Object.assign({},e)}},{key:"_getChildChangeListener",value:function(e){return this._childChangeListeners.has(e)||this._childChangeListeners.set(e,this._onChildChange.bind(this,e)),this._childChangeListeners.get(e)}},{key:"_getSlotChangeListener",value:function(e){return this._slotChangeListeners.has(e)||this._slotChangeListeners.set(e,this._onSlotChange.bind(this,e)),this._slotChangeListeners.get(e)}},{key:"_attachSlotChange",value:function(e,t){e.addEventListener("slotchange",this._getSlotChangeListener(t))}},{key:"_detachSlotChange",value:function(e,t){e.removeEventListener("slotchange",this._getSlotChangeListener(t))}},{key:"_onSlotChange",value:function(e){fr.call(this,{type:"slot",name:e,reason:"slotchange"})}},{key:"onInvalidation",value:function(e){}},{key:"_render",value:function(){var e=this.constructor.getMetadata().hasIndividualSlots();this._suppressInvalidation=!0,"function"==typeof this.onBeforeRendering&&this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),this._suppressInvalidation=!1,this._changedState=[],this._updateShadowRoot(),this._shouldUpdateFragment()&&(this.staticAreaItem._updateFragment(this),this.staticAreaItemDomRef=this.staticAreaItem.staticAreaItemDomRef.shadowRoot),e&&this._assignIndividualSlotsToChildren(),"function"==typeof this.onAfterRendering&&this.onAfterRendering()}},{key:"_updateShadowRoot",value:function(){if(this.constructor._needsShadowDOM()){var e,t=An(this.constructor.template,this);window.ShadyDOM&&nr(this.constructor),document.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=function(e){var t=e.getMetadata().getTag();if(!Xn.has(t)){var n=Yn(e),r=new CSSStyleSheet;r.replaceSync(n),Xn.set(t,[r])}return Xn.get(t)}(this.constructor)),document.adoptedStyleSheets||window.ShadyDOM||(e=Yn(this.constructor)),this.constructor.render(t,this.shadowRoot,e,{eventContext:this})}}},{key:"_assignIndividualSlotsToChildren",value:function(){Array.from(this.children).forEach((function(e){e._individualSlot&&e.setAttribute("slot",e._individualSlot)}))}},{key:"_waitForDomRef",value:function(){return this._domRefReadyPromise}},{key:"getDomRef",value:function(){if(this.shadowRoot&&0!==this.shadowRoot.children.length)return 1===this.shadowRoot.children.length?this.shadowRoot.children[0]:this.shadowRoot.children[1]}},{key:"getFocusDomRef",value:function(){var e=this.getDomRef();if(e)return e.querySelector("[data-sap-focus-ref]")||e}},{key:"getFocusDomRefAsync",value:(i=H(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._waitForDomRef();case 2:return e.abrupt("return",this.getFocusDomRef());case 3:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"getStableDomRef",value:function(e){return this.staticAreaItemDomRef&&this.staticAreaItemDomRef.querySelector("[data-ui5-stable=".concat(e,"]"))||this.getDomRef().querySelector("[data-ui5-stable=".concat(e,"]"))}},{key:"focus",value:(o=H(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._waitForDomRef();case 2:(t=this.getFocusDomRef())&&"function"==typeof t.focus&&t.focus();case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"fireEvent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._fireEvent(e,t,n,r),i=vn(e);return i!==e?o&&this._fireEvent(i,t,n):o}},{key:"_fireEvent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!0,i=new CustomEvent("ui5-".concat(e),{detail:t,composed:!1,bubbles:r,cancelable:n});if(o=this.dispatchEvent(i),Bn(e))return o;var a=new CustomEvent(e,{detail:t,composed:!1,bubbles:r,cancelable:n}),s=this.dispatchEvent(a);return s&&o}},{key:"getSlottedNodes",value:function(e){return this[e].reduce((function(e,t){return yn(t)?e.concat(t.assignedNodes({flatten:!0}).filter((function(e){return e instanceof HTMLElement}))):e.concat([t])}),[])}},{key:"updateStaticAreaItemContentDensity",value:function(){this.staticAreaItem&&this.staticAreaItem._updateContentDensity(this.isCompact)}},{key:"_shouldUpdateFragment",value:function(){return this.constructor._needsStaticArea()&&this.staticAreaItem.isRendered()}},{key:"getStaticAreaItemDomRef",value:function(){return this.staticAreaItem.getDomRef()}},{key:"_id",get:function(){return this.__id||(this.__id="ui5wc_".concat(++ur)),this.__id}},{key:"isCompact",get:function(){return"compact"===getComputedStyle(this).getPropertyValue("--_ui5_content_density")}},{key:"effectiveDir",get:function(){var e;e=this.constructor,Ze.add(e);var t=window.document,n=["ltr","rtl"],r=getComputedStyle(this).getPropertyValue("--_ui5_dir");return n.includes(r)?r:n.includes(this.dir)?this.dir:n.includes(t.documentElement.dir)?t.documentElement.dir:n.includes(t.body.dir)?t.body.dir:qn()?"rtl":void 0}},{key:"isUI5Element",get:function(){return!0}}],[{key:"_getSlotName",value:function(e){if(!(e instanceof HTMLElement))return"default";var t=e.getAttribute("slot");if(t){var n=t.match(/^(.+?)-\d+$/);return n?n[1]:t}return"default"}},{key:"_needsShadowDOM",value:function(){return!!this.template}},{key:"_needsStaticArea",value:function(){return"function"==typeof this.staticAreaTemplate}},{key:"_getDefaultState",value:function(){if(Object.prototype.hasOwnProperty.call(this,"_defaultState"))return this._defaultState;var e=this.getMetadata(),t={},n=e.slotsAreManaged(),r=e.getProperties();for(var o in r){var i=r[o].type,a=r[o].defaultValue;i===Boolean?(t[o]=!1,void 0!==a&&console.warn("The 'defaultValue' metadata key is ignored for all booleans properties, they would be initialized with 'false' by default")):r[o].multiple?t[o]=[]:t[o]=i===Object?"defaultValue"in r[o]?r[o].defaultValue:{}:i===String?"defaultValue"in r[o]?r[o].defaultValue:"":a}if(n)for(var s=e.getSlots(),u=0,c=Object.entries(s);u<c.length;u++){var l=oe(c[u],2),f=l[0];t[l[1].propertyName||f]=[]}return this._defaultState=t,t}},{key:"_generateAccessors",value:function(){for(var e=this.prototype,t=this.getMetadata().slotsAreManaged(),n=this.getMetadata().getProperties(),r=function(){var t=oe(i[o],2),n=t[0],r=t[1];if(ar(n)||console.warn('"'.concat(n,'" is not a valid property name. Use a name that does not collide with DOM APIs')),r.type===Boolean&&r.defaultValue)throw new Error('Cannot set a default value for property "'.concat(n,'". All booleans are false by default.'));if(r.type===Array)throw new Error('Wrong type for property "'.concat(n,'". Properties cannot be of type Array - use "multiple: true" and set "type" to the single value type, such as "String", "Object", etc...'));if(r.type===Object&&r.defaultValue)throw new Error('Cannot set a default value for property "'.concat(n,'". All properties of type "Object" are empty objects by default.'));if(r.multiple&&r.defaultValue)throw new Error('Cannot set a default value for property "'.concat(n,'". All multiple properties are empty arrays by default.'));Object.defineProperty(e,n,{get:function(){if(void 0!==this._state[n])return this._state[n];var e=r.defaultValue;return r.type!==Boolean&&(r.type===String?e:r.multiple?[]:e)},set:function(e){e=this.constructor.getMetadata().constructor.validatePropertyValue(e,r);var t=this._state[n];t!==e&&(this._state[n]=e,fr.call(this,{type:"property",name:n,newValue:e,oldValue:t}),this._updateAttribute(n,e))}})},o=0,i=Object.entries(n);o<i.length;o++)r();if(t)for(var a=this.getMetadata().getSlots(),s=function(){var t=oe(c[u],2),n=t[0],r=t[1];ar(n)||console.warn('"'.concat(n,'" is not a valid property name. Use a name that does not collide with DOM APIs'));var o=r.propertyName||n;Object.defineProperty(e,o,{get:function(){return void 0!==this._state[o]?this._state[o]:[]},set:function(){throw new Error("Cannot set slot content directly, use the DOM APIs (appendChild, removeChild, etc...)")}})},u=0,c=Object.entries(a);u<c.length;u++)s()}},{key:"getUniqueDependencies",value:function(){if(!lr.has(this)){var e=this.dependencies.filter((function(e,t,n){return n.indexOf(e)===t}));lr.set(this,e)}return lr.get(this)}},{key:"whenDependenciesDefined",value:function(){return Promise.all(this.getUniqueDependencies().map((function(e){return e.define()})))}},{key:"onDefine",value:(r=H(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve());case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"define",value:(n=H(regeneratorRuntime.mark((function e(){var t,n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sn||(sn=new Promise(function(){var e=H(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=ue("OpenUI5Support"))){e.next=4;break}return e.next=4,n.init();case 4:return e.next=6,new Promise((function(e){document.body?e():document.addEventListener("DOMContentLoaded",(function(){e()}))}));case 6:return e.next=8,en(tn());case 8:return n&&n.attachListeners(),cn(),document.querySelector("head>style[data-ui5-system-css-vars]")||Bt('\n\t:root {\n\t\t--_ui5_content_density:cozy;\n\t}\n\t\n\t[data-ui5-compact-size],\n\t.ui5-content-density-compact,\n\t.sapUiSizeCompact {\n\t\t--_ui5_content_density:compact;\n\t}\n\t\n\t[dir="rtl"] {\n\t\t--_ui5_dir:rtl;\n\t}\n\t\n\t[dir="ltr"] {\n\t\t--_ui5_dir:ltr;\n\t}\n',{"data-ui5-system-css-vars":""}),e.next=13,an||(an=new Promise((function(e){window.WebComponents&&!window.WebComponents.ready&&window.WebComponents.waitFor?window.WebComponents.waitFor((function(){e()})):e()})));case 13:t();case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:return e.next=4,Promise.all([this.whenDependenciesDefined(),this.onDefine()]);case 4:return t=this.getMetadata().getTag(),n=this.getMetadata().getAltTag(),r=ze(t),(o=customElements.get(t))&&!r?qe(t):o||(this._generateAccessors(),He(t),window.customElements.define(t,this),n&&!customElements.get(n)&&(i=function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),t}(this),He(n),window.customElements.define(n,i))),e.abrupt("return",this);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getMetadata",value:function(){if(this.hasOwnProperty("_metadata"))return this._metadata;for(var e=[this.metadata],n=this;n!==t;)n=Object.getPrototypeOf(n),e.unshift(n.metadata);var r=ke.apply(void 0,[{}].concat(e));return this._metadata=new kn(r),this._metadata}},{key:"observedAttributes",get:function(){return this.getMetadata().getAttributesList()}},{key:"metadata",get:function(){return{}}},{key:"styles",get:function(){return""}},{key:"staticAreaStyles",get:function(){return""}},{key:"dependencies",get:function(){return[]}}]),t}(ee(HTMLElement)),dr=new WeakMap,pr=function(e){return"function"==typeof e&&dr.has(e)},vr=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,mr=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t!==n;){var r=t.nextSibling;e.removeChild(t),t=r}},gr={},yr={},wr="{{lit-".concat(String(Math.random()).slice(2),"}}"),br="\x3c!--".concat(wr,"--\x3e"),_r=new RegExp("".concat(wr,"|").concat(br)),Sr="$lit$",kr=function e(t,n){z(this,e),this.parts=[],this.element=n;for(var r=[],o=[],i=document.createTreeWalker(n.content,133,null,!1),a=0,s=-1,u=0,c=t.strings,l=t.values.length;u<l;){var f=i.nextNode();if(null!==f){if(s++,1===f.nodeType){if(f.hasAttributes()){for(var h=f.attributes,d=h.length,p=0,v=0;v<d;v++)Er(h[v].name,Sr)&&p++;for(;p-- >0;){var m=c[u],g=Or.exec(m)[2],y=g.toLowerCase()+Sr,w=f.getAttribute(y);f.removeAttribute(y);var b=w.split(_r);this.parts.push({type:"attribute",index:s,name:g,strings:b}),u+=b.length-1}}"TEMPLATE"===f.tagName&&(o.push(f),i.currentNode=f.content)}else if(3===f.nodeType){var _=f.data;if(_.indexOf(wr)>=0){for(var S=f.parentNode,k=_.split(_r),E=k.length-1,x=0;x<E;x++){var A=void 0,O=k[x];if(""===O)A=Ar();else{var C=Or.exec(O);null!==C&&Er(C[2],Sr)&&(O=O.slice(0,C.index)+C[1]+C[2].slice(0,-Sr.length)+C[3]),A=document.createTextNode(O)}S.insertBefore(A,f),this.parts.push({type:"node",index:++s})}""===k[E]?(S.insertBefore(Ar(),f),r.push(f)):f.data=k[E],u+=E}}else if(8===f.nodeType)if(f.data===wr){var R=f.parentNode;null!==f.previousSibling&&s!==a||(s++,R.insertBefore(Ar(),f)),a=s,this.parts.push({type:"node",index:s}),null===f.nextSibling?f.data="":(r.push(f),s--),u++}else for(var M=-1;-1!==(M=f.data.indexOf(wr,M+1));)this.parts.push({type:"node",index:-1}),u++}else i.currentNode=o.pop()}for(var L=0,P=r;L<P.length;L++){var j=P[L];j.parentNode.removeChild(j)}},Er=function(e,t){var n=e.length-t.length;return n>=0&&e.slice(n)===t},xr=function(e){return-1!==e.index},Ar=function(){return document.createComment("")},Or=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Cr=function(){function e(t,n,r){z(this,e),this.__parts=[],this.template=t,this.processor=n,this.options=r}return $(e,[{key:"update",value:function(e){var t=0,n=!0,r=!1,o=void 0;try{for(var i,a=this.__parts[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;void 0!==s&&s.setValue(e[t]),t++}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}var u=!0,c=!1,l=void 0;try{for(var f,h=this.__parts[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var d=f.value;void 0!==d&&d.commit()}}catch(e){c=!0,l=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}},{key:"_clone",value:function(){for(var e,t=vr?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,o=document.createTreeWalker(t,133,null,!1),i=0,a=0,s=o.nextNode();i<r.length;)if(e=r[i],xr(e)){for(;a<e.index;)a++,"TEMPLATE"===s.nodeName&&(n.push(s),o.currentNode=s.content),null===(s=o.nextNode())&&(o.currentNode=n.pop(),s=o.nextNode());if("node"===e.type){var u=this.processor.handleTextExpression(this.options);u.insertAfterNode(s.previousSibling),this.__parts.push(u)}else{var c;(c=this.__parts).push.apply(c,ie(this.processor.handleAttributeExpressions(s,e.name,e.strings,this.options)))}i++}else this.__parts.push(void 0),i++;return vr&&(document.adoptNode(t),customElements.upgrade(t)),t}}]),e}(),Rr=" ".concat(wr," "),Mr=function(){function e(t,n,r,o){z(this,e),this.strings=t,this.values=n,this.type=r,this.processor=o}return $(e,[{key:"getHTML",value:function(){for(var e=this.strings.length-1,t="",n=!1,r=0;r<e;r++){var o=this.strings[r],i=o.lastIndexOf("\x3c!--");n=(i>-1||n)&&-1===o.indexOf("--\x3e",i+1);var a=Or.exec(o);t+=null===a?o+(n?Rr:br):o.substr(0,a.index)+a[1]+a[2]+Sr+a[3]+wr}return t+=this.strings[e]}},{key:"getTemplateElement",value:function(){var e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}]),e}(),Lr=function(e){return null===e||!("object"===B(e)||"function"==typeof e)},Pr=function(e){return Array.isArray(e)||!(!e||!e[Symbol.iterator])},jr=function(){function e(t,n,r){z(this,e),this.dirty=!0,this.element=t,this.name=n,this.strings=r,this.parts=[];for(var o=0;o<r.length-1;o++)this.parts[o]=this._createPart()}return $(e,[{key:"_createPart",value:function(){return new Nr(this)}},{key:"_getValue",value:function(){for(var e=this.strings,t=e.length-1,n="",r=0;r<t;r++){n+=e[r];var o=this.parts[r];if(void 0!==o){var i=o.value;if(Lr(i)||!Pr(i))n+="string"==typeof i?i:String(i);else{var a=!0,s=!1,u=void 0;try{for(var c,l=i[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;n+="string"==typeof f?f:String(f)}}catch(e){s=!0,u=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw u}}}}}return n+=e[t]}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]),e}(),Nr=function(){function e(t){z(this,e),this.value=void 0,this.committer=t}return $(e,[{key:"setValue",value:function(e){e===gr||Lr(e)&&e===this.value||(this.value=e,pr(e)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;pr(this.value);){var e=this.value;this.value=gr,e(this)}this.value!==gr&&this.committer.commit()}}]),e}(),Tr=function(){function e(t){z(this,e),this.value=void 0,this.__pendingValue=void 0,this.options=t}return $(e,[{key:"appendInto",value:function(e){this.startNode=e.appendChild(Ar()),this.endNode=e.appendChild(Ar())}},{key:"insertAfterNode",value:function(e){this.startNode=e,this.endNode=e.nextSibling}},{key:"appendIntoPart",value:function(e){e.__insert(this.startNode=Ar()),e.__insert(this.endNode=Ar())}},{key:"insertAfterPart",value:function(e){e.__insert(this.startNode=Ar()),this.endNode=e.endNode,e.endNode=this.startNode}},{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;pr(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=gr,e(this)}var t=this.__pendingValue;t!==gr&&(Lr(t)?t!==this.value&&this.__commitText(t):t instanceof Mr?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):Pr(t)?this.__commitIterable(t):t===yr?(this.value=yr,this.clear()):this.__commitText(t))}},{key:"__insert",value:function(e){this.endNode.parentNode.insertBefore(e,this.endNode)}},{key:"__commitNode",value:function(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}},{key:"__commitText",value:function(e){var t=this.startNode.nextSibling,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}},{key:"__commitTemplateResult",value:function(e){var t=this.options.templateFactory(e);if(this.value instanceof Cr&&this.value.template===t)this.value.update(e.values);else{var n=new Cr(t,e.processor,this.options),r=n._clone();n.update(e.values),this.__commitNode(r),this.value=n}}},{key:"__commitIterable",value:function(t){Array.isArray(this.value)||(this.value=[],this.clear());var n,r=this.value,o=0,i=!0,a=!1,s=void 0;try{for(var u,c=t[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;void 0===(n=r[o])&&(n=new e(this.options),r.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(r[o-1])),n.setValue(l),n.commit(),o++}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}o<r.length&&(r.length=o,this.clear(n&&n.endNode))}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;mr(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),Dr=function(){function e(t,n,r){if(z(this,e),this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=n,this.strings=r}return $(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;pr(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=gr,e(this)}if(this.__pendingValue!==gr){var t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=gr}}}]),e}(),Ir=function(e){function t(e,n,r){var o;return z(this,t),(o=te(this,Y(t).call(this,e,n,r))).single=2===r.length&&""===r[0]&&""===r[1],o}return J(t,e),$(t,[{key:"_createPart",value:function(){return new Vr(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:ne(Y(t.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),t}(jr),Vr=function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),t}(Nr),Fr=!1;
171
- /**
172
- * @license
173
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
174
- * This code may only be used under the BSD style license found at
175
- * http://polymer.github.io/LICENSE.txt
176
- * The complete set of authors may be found at
177
- * http://polymer.github.io/AUTHORS.txt
178
- * The complete set of contributors may be found at
179
- * http://polymer.github.io/CONTRIBUTORS.txt
180
- * Code distributed by Google as part of the polymer project is also
181
- * subject to an additional IP rights grant found at
182
- * http://polymer.github.io/PATENTS.txt
183
- */try{var Ur={get capture(){return Fr=!0,!1}};window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch(e){}var Br=function(){function e(t,n,r){var o=this;z(this,e),this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=r,this.__boundHandleEvent=function(e){return o.handleEvent(e)}}return $(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;pr(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=gr,e(this)}if(this.__pendingValue!==gr){var t=this.__pendingValue,n=this.value,r=null==t||null!=n&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),o=null!=t&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),o&&(this.__options=Wr(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=gr}}},{key:"handleEvent",value:function(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}]),e}(),Wr=function(e){return e&&(Fr?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)},Hr=new(function(){function e(){z(this,e)}return $(e,[{key:"handleAttributeExpressions",value:function(e,t,n,r){var o=t[0];return"."===o?new Ir(e,t.slice(1),n).parts:"@"===o?[new Br(e,t.slice(1),r.eventContext)]:"?"===o?[new Dr(e,t.slice(1),n)]:new jr(e,t,n).parts}},{key:"handleTextExpression",value:function(e){return new Tr(e)}}]),e}());
184
- /**
185
- * @license
186
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
187
- * This code may only be used under the BSD style license found at
188
- * http://polymer.github.io/LICENSE.txt
189
- * The complete set of authors may be found at
190
- * http://polymer.github.io/AUTHORS.txt
191
- * The complete set of contributors may be found at
192
- * http://polymer.github.io/CONTRIBUTORS.txt
193
- * Code distributed by Google as part of the polymer project is also
194
- * subject to an additional IP rights grant found at
195
- * http://polymer.github.io/PATENTS.txt
196
- */
197
- function zr(e){var t=qr.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},qr.set(e.type,t));var n=t.stringsArray.get(e.strings);if(void 0!==n)return n;var r=e.strings.join(wr);return void 0===(n=t.keyString.get(r))&&(n=new kr(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}var qr=new Map,$r=new WeakMap,Zr=function(e,t,n){var r=$r.get(t);void 0===r&&(mr(t,t.firstChild),$r.set(t,r=new Tr(Object.assign({templateFactory:zr},n))),r.appendInto(t)),r.setValue(e),r.commit()};
198
- /**
199
- * @license
200
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
201
- * This code may only be used under the BSD style license found at
202
- * http://polymer.github.io/LICENSE.txt
203
- * The complete set of authors may be found at
204
- * http://polymer.github.io/AUTHORS.txt
205
- * The complete set of contributors may be found at
206
- * http://polymer.github.io/CONTRIBUTORS.txt
207
- * Code distributed by Google as part of the polymer project is also
208
- * subject to an additional IP rights grant found at
209
- * http://polymer.github.io/PATENTS.txt
210
- */
211
- /**
212
- * @license
213
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
214
- * This code may only be used under the BSD style license found at
215
- * http://polymer.github.io/LICENSE.txt
216
- * The complete set of authors may be found at
217
- * http://polymer.github.io/AUTHORS.txt
218
- * The complete set of contributors may be found at
219
- * http://polymer.github.io/CONTRIBUTORS.txt
220
- * Code distributed by Google as part of the polymer project is also
221
- * subject to an additional IP rights grant found at
222
- * http://polymer.github.io/PATENTS.txt
223
- */
224
- (window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");var Gr,Jr,Yr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Mr(e,n,"html",Hr)},Xr=new Map,Kr=function(e,t,n){return n&&t&&t.length&&(e=e.map((function(e){if(Xr.has(e))return Xr.get(e);var r=e;return t.forEach((function(e){r=r.replace(new RegExp("(</?)(".concat(e,")(/?[> \t\n])"),"g"),"$1$2-".concat(n,"$3"))})),Xr.set(e,r),r}))),e};function Qr(){var e=re(["<style>","</style>",""]);return Qr=function(){return e},e}var eo=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.eventContext;n&&(e=Yr(Qr(),n,e)),Zr(e,t,{eventContext:o})},to=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Yr.apply(void 0,[Kr(e,Gr,Jr)].concat(n))};function no(){var e=re(['<div><p>\n\t\t\t\t<slot></slot>\n\t\t\t\t<slot name="other"></slot>\n\t\t\t\t<slot name="individual-1"></slot>\n\t\t\t\t<slot name="individual-2"></slot>\n\t\t\t</p></div>']);return no=function(){return e},e}var ro={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"}}},oo=function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),$(t,[{key:"onBeforeRendering",value:function(){}},{key:"onAfterRendering",value:function(){}},{key:"onEnterDOM",value:function(){}},{key:"onExitDOM",value:function(){}}],[{key:"metadata",get:function(){return ro}},{key:"render",get:function(){return eo}},{key:"template",get:function(){return function(e){return to(no())}}},{key:"styles",get:function(){return":host {\n display: inline-block;\n border: 1px solid black;\n color: var(--var1);\n }"}}]),t}(hr);oo.define();var io={tag:"ui5-test-no-shadow"};function ao(){var e=re(["<div>\n\t\t\t\t<slot></slot>\n\t\t\t</div>"]);return ao=function(){return e},e}(function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),$(t,null,[{key:"metadata",get:function(){return io}}]),t})(hr).define();var so={tag:"ui5-test-parent",managedSlots:!0,slots:{default:{type:Node,invalidateOnChildChange:{properties:["prop1"]}},items:{type:HTMLElement,invalidateOnChildChange:{properties:!0}}}};function uo(){var e=re(["<div></div>"]);return uo=function(){return e},e}(function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),$(t,null,[{key:"metadata",get:function(){return so}},{key:"render",get:function(){return eo}},{key:"template",get:function(){return function(e){return to(ao())}}}]),t})(hr).define();var co={tag:"ui5-test-child",properties:{prop1:{type:String},prop2:{type:String},prop3:{type:String}}};function lo(){var e=re(['\n\t\t\t\t<div class="ui5-with-static-area-content">\n\t\t\t\t\tStatic area content.\n\t\t\t\t</div>']);return lo=function(){return e},e}function fo(){var e=re(["\n\t\t\t\t<div>\n\t\t\t\t\tWithStaticArea works!\n\t\t\t\t</div>"]);return fo=function(){return e},e}(function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),$(t,null,[{key:"metadata",get:function(){return co}},{key:"render",get:function(){return eo}},{key:"template",get:function(){return function(e){return to(uo())}}}]),t})(hr).define();var ho={tag:"ui5-with-static-area",properties:{staticContent:{type:Boolean}},slots:{}};(function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}var n;return J(t,e),$(t,[{key:"addStaticArea",value:(n=H(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.staticContent){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.getStaticAreaItemDomRef();case 4:return t=e.sent,this.responsivePopover=t.querySelector(".ui5-with-static-area-content"),e.abrupt("return",this.responsivePopover);case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onBeforeRendering",value:function(){this.addStaticArea()}},{key:"onAfterRendering",value:function(){}},{key:"onEnterDOM",value:function(){}},{key:"onExitDOM",value:function(){}}],[{key:"metadata",get:function(){return ho}},{key:"render",get:function(){return eo}},{key:"template",get:function(){return function(e){return to(fo())}}},{key:"staticAreaTemplate",get:function(){return function(e){return to(lo())}}},{key:"styles",get:function(){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}"}}]),t})(hr).define();var po={tag:"ui5-test-generic-ext",properties:{extProp:{type:String},strProp:{defaultValue:"Ext"}},slots:{extSlot:{type:HTMLElement}}};(function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),$(t,null,[{key:"metadata",get:function(){return po}}]),t})(oo).define();Dt("@ui5/webcomponents-base-test","sap_fiori_3",":root{ --var1: red; }"),Dt("@ui5/webcomponents-base-test","sap_fiori_3_dark",":root{ --var1: green; }"),Dt("@ui5/webcomponents-base-test","sap_belize",":root{ --var1: blue; }"),Dt("@ui5/webcomponents-base-test","sap_belize_hcb",":root{ --var1: orange; }"),Dt("@ui5/webcomponents-base-test","sap_belize_hcw",":root{ --var1: orange; }"),Dt("@ui5/webcomponents-base-test","sap_fiori_3_hcb",":root{ --var1: yellow; }"),Dt("@ui5/webcomponents-base-test","sap_fiori_3_hcw",":root{ --var1: yellow; }");var vo={},mo={INTERNET_EXPLORER:"ie",EDGE:"ed",FIREFOX:"ff",CHROME:"cr",SAFARI:"sf",ANDROID:"an"},go=function(){var e,t,n,r=function(){var e=navigator.userAgent.toLowerCase(),t=/(edge)[ /]([\w.]+)/.exec(e)||/(trident)\/[\w.]+;.*rv:([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(e)||[],n={browser:t[1]||"",version:t[2]||"0"};return n[n.browser]=!0,n}(),o=navigator.userAgent,i=window.navigator;if(r.mozilla)e=/Mobile/,o.match(/Firefox\/(\d+\.\d+)/)?(n=parseFloat(RegExp.$1),t={name:mo.FIREFOX,versionStr:"".concat(n),version:n,mozilla:!0,mobile:e.test(o)}):t={mobile:e.test(o),mozilla:!0,version:-1};else if(r.webkit){var a,s=o.toLowerCase().match(/webkit[/]([\d.]+)/);s&&(a=s[1]),e=/Mobile/;var u=o.match(/(Chrome|CriOS)\/(\d+\.\d+).\d+/),c=o.match(/FxiOS\/(\d+\.\d+)/),l=o.match(/Android .+ Version\/(\d+\.\d+)/);if(u||c||l){var f,h,d;u?(f=mo.CHROME,d=e.test(o),h=parseFloat(u[2])):c?(f=mo.FIREFOX,d=!0,h=parseFloat(c[1])):l&&(f=mo.ANDROID,d=e.test(o),h=parseFloat(l[1])),t={name:f,mobile:d,versionStr:"".concat(h),version:h,webkit:!0,webkitVersion:a}}else{var p=/(Version|PhantomJS)\/(\d+\.\d+).*Safari/,v=i.standalone;if(p.test(o)){var m=p.exec(o);n=parseFloat(m[2]),t={name:mo.SAFARI,versionStr:"".concat(n),fullscreen:!1,webview:!1,version:n,mobile:e.test(o),webkit:!0,webkitVersion:a,phantomJS:"PhantomJS"===m[1]}}else t=!/iPhone|iPad|iPod/.test(o)||/CriOS/.test(o)||/FxiOS/.test(o)||!0!==v&&!1!==v?{mobile:e.test(o),webkit:!0,webkitVersion:a,version:-1}:{name:mo.SAFARI,version:-1,fullscreen:v,webview:!v,mobile:e.test(o),webkit:!0,webkitVersion:a}}}else r.msie||r.trident?(n=parseFloat(r.version),t={name:mo.INTERNET_EXPLORER,versionStr:"".concat(n),version:n,msie:!0,mobile:!1}):r.edge?(n=parseFloat(r.version),t={name:mo.EDGE,versionStr:"".concat(n),version:n,edge:!0}):t={name:"",versionStr:"",version:-1,mobile:!1};return t},yo="object"===("undefined"==typeof chrome?"undefined":B(chrome))||"object"===("undefined"==typeof v8?"undefined":B(v8))?function(e,t){return t>2&&e.length,e}:function(e){return e},wo=/(?:\r\n|\r|\n|^)[ \t\f]*/,bo=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)|([ \t\f]*[ \t\f:=][ \t\f]*)/g,_o=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)/g,So={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};se("PropertiesFormatSupport",{parser:function(e){var t,n,r,o,i,a,s,u,c={},l=e.split(wo),f=function(e){o?(o="".concat(o).concat(e),u++):(o=e,u=0)};for(i=0;i<l.length;i++){if(!(""===(t=l[i])||"#"===t.charAt(0)||"!"===t.charAt(0))){for((n=bo).lastIndex=s=0,r=null,o="",a=n.exec(t);null!==a;){if(s<a.index&&f(t.slice(s,a.index)),s=n.lastIndex,a[1]){if(6!==a[1].length)throw new Error("Incomplete Unicode Escape '".concat(a[1],"'"));f(String.fromCharCode(parseInt(a[1].slice(2),16)))}else a[2]?f(So[a[2]]||a[2].slice(1)):a[3]?(t=l[++i],s=0,n.lastIndex=s):a[4]&&(r=o,o="",(n=_o).lastIndex=s);a=n.exec(t)}s<t.length&&f(t.slice(s)),null==r&&(r=o,o=""),c[r]=yo(o,o?u:0)}}return c}});var ko,Eo,xo=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g,Ao=function(e,t){return t=t||[],e.replace(xo,(function(e,n,r,o,i){if(n)return"'";if(r)return r.replace(/''/g,"'");if(o)return String(t[parseInt(o)]);throw new Error("[i18n]: pattern syntax error at pos ".concat(i))}))},Oo=new Map,Co=function(){function e(t){z(this,e),this.packageName=t}return $(e,[{key:"getText",value:function(e){if("string"==typeof e&&(e={key:e,defaultText:e}),!e||!e.key)return"";for(var t=bt(this.packageName),n=t&&t[e.key]?t[e.key]:e.defaultText||e.key,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return Ao(n,o)}}]),e}(),Ro=function(){return void 0===ko&&(Te(),ko=xe.animationMode),ko},Mo={Gregorian:"Gregorian",Islamic:"Islamic",Japanese:"Japanese",Buddhist:"Buddhist",Persian:"Persian"},Lo=function(e){function t(){return z(this,t),te(this,Y(t).apply(this,arguments))}return J(t,e),$(t,null,[{key:"isValid",value:function(e){return!!Mo[e]}}]),t}(hn);Lo.generateTypeAccessors(Mo);var Po,jo=function(){return void 0===Eo&&(Te(),Eo=xe.calendarType),Lo.isValid(Eo)?Eo:Lo.Gregorian},No=function(){return void 0===Po&&(Te(),Po=xe.formatSettings),Po.firstDayOfWeek},To=function(e,t){for(var n=e.split("."),r=On("ui5-shared-resources",document.head),o=0;o<n.length;o++){var i=n[o],a=o===n.length-1;Object.prototype.hasOwnProperty.call(r,i)||(r[i]=a?t:{}),r=r[i]}return r},Do=To("SVGIcons.registry",new Map),Io=To("SVGIcons.promises",new Map),Vo=function(){var e=H(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(Array.from(Io.values()));case 2:return e.abrupt("return",Array.from(Do.keys()));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();window.RenderScheduler=Ye,window.isIE=function(){return vo.browser||(vo.browser=go(),vo.browser.BROWSER=mo,vo.browser.name&&Object.keys(mo).forEach((function(e){mo[e]===vo.browser.name&&(vo.browser[e.toLowerCase()]=!0)}))),!!vo.browser.msie},window.registerThemeProperties=Dt,window["sap-ui-webcomponents-bundle"]={configuration:{getAnimationMode:Ro,getLanguage:Xe,getTheme:tn,setTheme:nn,getNoConflict:Un,setNoConflict:Wn,getCalendarType:jo,getRTL:qn,getFirstDayOfWeek:No},getIconNames:Vo,registerI18nBundle:function(e,t){var n=yt.get(e)||{};yt.set(e,Object.assign({},n,t))},fetchI18nBundle:_t,getI18nBundle:function(e){if(Oo.has(e))return Oo.get(e);var t=new Co(e);return Oo.set(e,t),t}};var Fo={getAnimationMode:Ro,getLanguage:Xe,getTheme:tn,setTheme:nn,getNoConflict:Un,setNoConflict:Wn,getCalendarType:jo,getRTL:qn,getFirstDayOfWeek:No};e.configuration=Fo,e.getIconNames=Vo}(this["sap-ui-webcomponents-bundle"]=this["sap-ui-webcomponents-bundle"]||{});
225
- //# sourceMappingURL=bundle.es5.js.map