@ui5/webcomponents-base 0.0.0-78035f8e7 → 0.0.0-7e7d9ea6f

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 (355) hide show
  1. package/.eslintignore +3 -0
  2. package/CHANGELOG.md +362 -0
  3. package/README.md +53 -7
  4. package/bundle.esm.js +20 -20
  5. package/dist/AssetRegistry.js +8 -7
  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 +30 -0
  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 +19 -62
  16. package/dist/InitialConfiguration.js +43 -8
  17. package/dist/Keys.js +125 -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/RenderQueue.js +41 -17
  23. package/dist/RenderScheduler.js +24 -158
  24. package/dist/Runtimes.js +107 -0
  25. package/dist/StaticArea.js +1 -29
  26. package/dist/StaticAreaItem.js +58 -62
  27. package/dist/SystemCSSVars.js +4 -25
  28. package/dist/Theming.js +2 -1
  29. package/dist/UI5Element.js +386 -354
  30. package/dist/UI5ElementMetadata.js +187 -22
  31. package/dist/asset-registries/Icons.js +117 -13
  32. package/dist/asset-registries/Illustrations.js +30 -0
  33. package/dist/asset-registries/LocaleData.js +105 -66
  34. package/dist/asset-registries/Themes.js +29 -34
  35. package/dist/asset-registries/i18n.js +64 -47
  36. package/dist/assets/bundle.esm.691f93f5.js +43 -0
  37. package/dist/assets-meta/IconCollectionsAlias.js +18 -0
  38. package/dist/config/AnimationMode.js +11 -1
  39. package/dist/config/Icons.js +52 -0
  40. package/dist/config/Language.js +33 -6
  41. package/dist/config/Theme.js +25 -0
  42. package/dist/css/BusyIndicator.css +80 -0
  43. package/dist/css/FontFace.css +75 -0
  44. package/dist/css/OverrideFontFace.css +32 -0
  45. package/dist/css/SystemCSSVars.css +17 -0
  46. package/dist/delegate/ItemNavigation.js +244 -170
  47. package/dist/delegate/ResizeHandler.js +78 -37
  48. package/dist/delegate/ScrollEnablement.js +49 -20
  49. package/dist/features/F6Navigation.js +110 -0
  50. package/dist/features/OpenUI5Enablement.js +119 -0
  51. package/dist/features/OpenUI5Support.js +42 -7
  52. package/dist/generated/AssetParameters.js +1 -1
  53. package/dist/generated/VersionInfo.js +10 -0
  54. package/dist/generated/css/BusyIndicator.css.js +5 -0
  55. package/dist/generated/css/FontFace.css.js +5 -0
  56. package/dist/generated/css/OverrideFontFace.css.js +5 -0
  57. package/dist/generated/css/SystemCSSVars.css.js +5 -0
  58. package/dist/i18nBundle.js +38 -4
  59. package/dist/locale/applyDirection.js +6 -4
  60. package/dist/locale/directionChange.js +32 -0
  61. package/dist/locale/getEffectiveDir.js +28 -0
  62. package/dist/locale/getLocale.js +12 -2
  63. package/dist/locale/languageChange.js +1 -1
  64. package/dist/renderer/LitRenderer.js +43 -7
  65. package/dist/renderer/directives/style-map.js +72 -0
  66. package/dist/renderer/executeTemplate.js +34 -0
  67. package/dist/sap/base/Log.js +241 -0
  68. package/dist/sap/base/assert.js +8 -0
  69. package/dist/sap/base/security/URLListValidator.js +148 -0
  70. package/dist/sap/base/security/encodeCSS.js +14 -0
  71. package/dist/sap/base/security/encodeXML.js +23 -0
  72. package/dist/sap/base/security/sanitizeHTML.js +16 -0
  73. package/dist/sap/base/strings/toHex.js +8 -0
  74. package/dist/sap/base/util/now.js +7 -0
  75. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +3585 -0
  76. package/dist/theming/CustomStyle.js +47 -6
  77. package/dist/theming/ThemeLoaded.js +22 -0
  78. package/dist/theming/applyTheme.js +13 -15
  79. package/dist/theming/getConstructableStyle.js +15 -10
  80. package/dist/theming/getEffectiveLinksHrefs.js +27 -0
  81. package/dist/theming/getEffectiveStyle.js +32 -8
  82. package/dist/theming/getStylesString.js +15 -0
  83. package/dist/theming/getThemeDesignerTheme.js +25 -5
  84. package/dist/theming/preloadLinks.js +23 -0
  85. package/dist/types/CSSColor.js +9 -0
  86. package/dist/types/CalendarType.js +1 -1
  87. package/dist/types/DataType.js +13 -1
  88. package/dist/types/Float.js +4 -0
  89. package/dist/types/Integer.js +4 -0
  90. package/dist/types/InvisibleMessageMode.js +30 -0
  91. package/dist/types/ItemNavigationBehavior.js +2 -7
  92. package/dist/types/PopupState.js +1 -1
  93. package/dist/types/ValueState.js +1 -1
  94. package/dist/updateShadowRoot.js +29 -0
  95. package/dist/util/AriaLabelHelper.js +41 -0
  96. package/dist/util/Caret.js +32 -0
  97. package/dist/util/ColorConversion.js +398 -0
  98. package/dist/util/FocusableElements.js +22 -9
  99. package/dist/util/HTMLSanitizer.js +7 -0
  100. package/dist/util/InvisibleMessage.js +69 -0
  101. package/dist/util/PopupUtils.js +93 -0
  102. package/dist/util/SlotsHelper.js +43 -0
  103. package/dist/util/TabbableElements.js +5 -1
  104. package/dist/util/arraysAreEqual.js +15 -0
  105. package/dist/util/clamp.js +12 -0
  106. package/dist/util/createLinkInHead.js +19 -0
  107. package/dist/util/debounce.js +17 -0
  108. package/dist/util/escapeRegex.js +10 -0
  109. package/dist/util/generateHighlightedMarkup.js +42 -0
  110. package/dist/util/getActiveElement.js +11 -0
  111. package/dist/util/getClassCopy.js +10 -0
  112. package/dist/util/getEffectiveContentDensity.js +5 -0
  113. package/dist/util/getNormalizedTarget.js +16 -0
  114. package/dist/util/isDefaultSlotProvided.js +11 -0
  115. package/dist/util/isElementInView.js +15 -0
  116. package/dist/util/isNodeHidden.js +1 -1
  117. package/dist/util/isNodeTabbable.js +4 -4
  118. package/dist/util/isValidPropertyName.js +6 -5
  119. package/hash.txt +1 -0
  120. package/index.js +1 -1
  121. package/lib/generate-asset-parameters/index.js +8 -5
  122. package/lib/generate-styles/index.js +26 -0
  123. package/lib/generate-version-info/index.js +32 -0
  124. package/package-scripts.js +37 -28
  125. package/package.json +20 -13
  126. package/src/AssetRegistry.js +8 -7
  127. package/src/Boot.js +59 -0
  128. package/src/CSP.js +59 -0
  129. package/src/CustomElementsRegistry.js +60 -4
  130. package/src/CustomElementsScope.js +30 -0
  131. package/src/CustomElementsScopeUtils.js +108 -0
  132. package/src/DOMObserver.js +65 -0
  133. package/src/Device.js +71 -773
  134. package/src/EventProvider.js +30 -26
  135. package/src/FeaturesRegistry.js +4 -1
  136. package/src/FontFace.js +19 -62
  137. package/src/InitialConfiguration.js +43 -8
  138. package/src/Keys.js +125 -0
  139. package/src/ManagedStyles.js +83 -0
  140. package/src/MediaRange.js +109 -0
  141. package/src/{util/parseProperties.js → PropertiesFileFormat.js} +6 -0
  142. package/src/Render.js +175 -0
  143. package/src/RenderQueue.js +41 -17
  144. package/src/RenderScheduler.js +24 -158
  145. package/src/Runtimes.js +107 -0
  146. package/src/StaticArea.js +1 -29
  147. package/src/StaticAreaItem.js +58 -62
  148. package/src/SystemCSSVars.js +4 -25
  149. package/src/Theming.js +2 -1
  150. package/src/UI5Element.js +386 -354
  151. package/src/UI5ElementMetadata.js +187 -22
  152. package/src/asset-registries/Icons.js +117 -13
  153. package/src/asset-registries/Illustrations.js +30 -0
  154. package/src/asset-registries/LocaleData.js +105 -66
  155. package/src/asset-registries/Themes.js +29 -34
  156. package/src/asset-registries/i18n.js +64 -47
  157. package/src/assets-meta/IconCollectionsAlias.js +18 -0
  158. package/src/config/AnimationMode.js +11 -1
  159. package/src/config/Icons.js +52 -0
  160. package/src/config/Language.js +33 -6
  161. package/src/config/Theme.js +25 -0
  162. package/src/css/BusyIndicator.css +80 -0
  163. package/src/css/FontFace.css +75 -0
  164. package/src/css/OverrideFontFace.css +32 -0
  165. package/src/css/SystemCSSVars.css +17 -0
  166. package/src/delegate/ItemNavigation.js +244 -170
  167. package/src/delegate/ResizeHandler.js +78 -37
  168. package/src/delegate/ScrollEnablement.js +49 -20
  169. package/src/features/F6Navigation.js +110 -0
  170. package/src/features/OpenUI5Enablement.js +119 -0
  171. package/src/features/OpenUI5Support.js +42 -7
  172. package/src/i18nBundle.js +38 -4
  173. package/src/locale/applyDirection.js +6 -4
  174. package/src/locale/directionChange.js +32 -0
  175. package/src/locale/getEffectiveDir.js +28 -0
  176. package/src/locale/getLocale.js +12 -2
  177. package/src/locale/languageChange.js +1 -1
  178. package/src/renderer/LitRenderer.js +43 -7
  179. package/src/renderer/directives/style-map.js +72 -0
  180. package/src/renderer/executeTemplate.js +34 -0
  181. package/src/theming/CustomStyle.js +47 -6
  182. package/src/theming/ThemeLoaded.js +22 -0
  183. package/src/theming/applyTheme.js +13 -15
  184. package/src/theming/getConstructableStyle.js +15 -10
  185. package/src/theming/getEffectiveLinksHrefs.js +27 -0
  186. package/src/theming/getEffectiveStyle.js +32 -8
  187. package/src/theming/getStylesString.js +15 -0
  188. package/src/theming/getThemeDesignerTheme.js +25 -5
  189. package/src/theming/preloadLinks.js +23 -0
  190. package/src/types/CSSColor.js +9 -0
  191. package/src/types/CalendarType.js +1 -1
  192. package/src/types/DataType.js +13 -1
  193. package/src/types/Float.js +4 -0
  194. package/src/types/Integer.js +4 -0
  195. package/src/types/InvisibleMessageMode.js +30 -0
  196. package/src/types/ItemNavigationBehavior.js +2 -7
  197. package/src/types/PopupState.js +1 -1
  198. package/src/types/ValueState.js +1 -1
  199. package/src/updateShadowRoot.js +29 -0
  200. package/src/util/AriaLabelHelper.js +41 -0
  201. package/src/util/Caret.js +32 -0
  202. package/src/util/ColorConversion.js +398 -0
  203. package/src/util/FocusableElements.js +22 -9
  204. package/src/util/HTMLSanitizer.js +7 -0
  205. package/src/util/InvisibleMessage.js +69 -0
  206. package/src/util/PopupUtils.js +93 -0
  207. package/src/util/SlotsHelper.js +43 -0
  208. package/src/util/TabbableElements.js +5 -1
  209. package/src/util/arraysAreEqual.js +15 -0
  210. package/src/util/clamp.js +12 -0
  211. package/src/util/createLinkInHead.js +19 -0
  212. package/src/util/debounce.js +17 -0
  213. package/src/util/escapeRegex.js +10 -0
  214. package/src/util/generateHighlightedMarkup.js +42 -0
  215. package/src/util/getActiveElement.js +11 -0
  216. package/src/util/getClassCopy.js +10 -0
  217. package/src/util/getEffectiveContentDensity.js +5 -0
  218. package/src/util/getNormalizedTarget.js +16 -0
  219. package/src/util/isDefaultSlotProvided.js +11 -0
  220. package/src/util/isElementInView.js +15 -0
  221. package/src/util/isNodeHidden.js +1 -1
  222. package/src/util/isNodeTabbable.js +4 -4
  223. package/src/util/isValidPropertyName.js +6 -5
  224. package/used-modules.txt +10 -0
  225. package/bundle.es5.js +0 -28
  226. package/config/.eslintrc.js +0 -3
  227. package/config/rollup.config.js +0 -1
  228. package/dist/SVGIconRegistry.js +0 -62
  229. package/dist/boot.js +0 -34
  230. package/dist/compatibility/DOMObserver.js +0 -62
  231. package/dist/compatibility/patchNodeValue.js +0 -24
  232. package/dist/compatibility/whenPolyfillLoaded.js +0 -26
  233. package/dist/delegate/CustomResize.js +0 -78
  234. package/dist/delegate/NativeResize.js +0 -44
  235. package/dist/features/PropertiesFormatSupport.js +0 -8
  236. package/dist/features/browsersupport/Edge.js +0 -6
  237. package/dist/features/browsersupport/IE11.js +0 -41
  238. package/dist/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
  239. package/dist/renderer/ifDefined.js +0 -21
  240. package/dist/resources/bundle.es5.js +0 -212
  241. package/dist/resources/bundle.es5.js.map +0 -1
  242. package/dist/resources/bundle.esm.js +0 -129
  243. package/dist/resources/bundle.esm.js.map +0 -1
  244. package/dist/test-resources/assets/Themes.js +0 -13
  245. package/dist/test-resources/elements/Child.js +0 -35
  246. package/dist/test-resources/elements/Generic.js +0 -84
  247. package/dist/test-resources/elements/GenericExt.js +0 -26
  248. package/dist/test-resources/elements/NoShadowDOM.js +0 -13
  249. package/dist/test-resources/elements/Parent.js +0 -37
  250. package/dist/test-resources/elements/WithStaticArea.js +0 -76
  251. package/dist/test-resources/pages/AllTestElements.html +0 -42
  252. package/dist/test-resources/pages/Configuration.html +0 -20
  253. package/dist/test-resources/pages/ConfigurationScript.html +0 -36
  254. package/dist/test-resources/pages/assets/messagebundle_de.properties +0 -1
  255. package/dist/test-resources/pages/assets/messagebundle_en.properties +0 -1
  256. package/dist/test-resources/pages/assets/messagebundle_es.properties +0 -1
  257. package/dist/test-resources/pages/assets/messagebundle_fr.properties +0 -1
  258. package/dist/test-resources/pages/i18n.html +0 -40
  259. package/dist/test-resources/specs/ConfigurationChange.spec.js +0 -25
  260. package/dist/test-resources/specs/ConfigurationScript.spec.js +0 -61
  261. package/dist/test-resources/specs/ConfigurationURL.spec.js +0 -45
  262. package/dist/test-resources/specs/CustomTheme.spec.js +0 -25
  263. package/dist/test-resources/specs/StaticArea.spec.js +0 -34
  264. package/dist/test-resources/specs/Theming.spec.js +0 -31
  265. package/dist/test-resources/specs/UI5ElementInvalidation.js +0 -258
  266. package/dist/test-resources/specs/UI5ElementLifecycle.js +0 -93
  267. package/dist/test-resources/specs/UI5ElementListenForChildPropChanges.spec.js +0 -101
  268. package/dist/test-resources/specs/UI5ElementMetadataExt.js +0 -40
  269. package/dist/test-resources/specs/UI5ElementPropertyValidation.js +0 -12
  270. package/dist/test-resources/specs/UI5ElementPropsAndAttrs.spec.js +0 -65
  271. package/dist/test-resources/specs/UI5ElementShadowDOM.js +0 -22
  272. package/dist/test-resources/specs/UI5ElementSlots.js +0 -34
  273. package/dist/theming/CSSVarsPonyfill.js +0 -24
  274. package/dist/theming/adaptCSSForIE.js +0 -90
  275. package/dist/theming/createComponentStyleTag.js +0 -49
  276. package/dist/theming/createThemePropertiesStyleTag.js +0 -20
  277. package/dist/thirdparty/Array.from.js +0 -16
  278. package/dist/thirdparty/Array.prototype.fill.js +0 -44
  279. package/dist/thirdparty/Array.prototype.find.js +0 -46
  280. package/dist/thirdparty/Array.prototype.includes.js +0 -51
  281. package/dist/thirdparty/Element.prototype.closest.js +0 -11
  282. package/dist/thirdparty/Element.prototype.matches.js +0 -6
  283. package/dist/thirdparty/Map.prototype.keys.js +0 -9
  284. package/dist/thirdparty/Number.isInteger.js +0 -5
  285. package/dist/thirdparty/Number.isNaN.js +0 -1
  286. package/dist/thirdparty/Number.parseInt.js +0 -1
  287. package/dist/thirdparty/Object.assign.js +0 -31
  288. package/dist/thirdparty/Object.entries.js +0 -11
  289. package/dist/thirdparty/Symbol.js +0 -2
  290. package/dist/thirdparty/WeakSet.js +0 -27
  291. package/dist/thirdparty/es6-string-methods.js +0 -182
  292. package/dist/thirdparty/events-polyfills.js +0 -89
  293. package/dist/thirdparty/fetch.js +0 -1
  294. package/dist/thirdparty/template.js +0 -600
  295. package/dist/thirdparty/webcomponents-sd-ce-pf.js +0 -318
  296. package/dist/util/getEffectiveAriaLabelText.js +0 -28
  297. package/dist/util/isSlot.js +0 -3
  298. package/dist/webcomponentsjs/LICENSE.md +0 -19
  299. package/dist/webcomponentsjs/README.md +0 -229
  300. package/dist/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
  301. package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
  302. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -297
  303. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
  304. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -208
  305. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
  306. package/dist/webcomponentsjs/bundles/webcomponents-sd.js +0 -166
  307. package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
  308. package/dist/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
  309. package/dist/webcomponentsjs/package.json +0 -46
  310. package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
  311. package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
  312. package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
  313. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
  314. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
  315. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
  316. package/dist/webcomponentsjs/webcomponents-bundle.js +0 -298
  317. package/dist/webcomponentsjs/webcomponents-bundle.js.map +0 -1
  318. package/dist/webcomponentsjs/webcomponents-loader.js +0 -185
  319. package/src/SVGIconRegistry.js +0 -62
  320. package/src/boot.js +0 -34
  321. package/src/compatibility/DOMObserver.js +0 -62
  322. package/src/compatibility/patchNodeValue.js +0 -24
  323. package/src/compatibility/whenPolyfillLoaded.js +0 -26
  324. package/src/delegate/CustomResize.js +0 -78
  325. package/src/delegate/NativeResize.js +0 -44
  326. package/src/features/PropertiesFormatSupport.js +0 -8
  327. package/src/features/browsersupport/Edge.js +0 -6
  328. package/src/features/browsersupport/IE11.js +0 -41
  329. package/src/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
  330. package/src/renderer/ifDefined.js +0 -21
  331. package/src/theming/CSSVarsPonyfill.js +0 -24
  332. package/src/theming/adaptCSSForIE.js +0 -90
  333. package/src/theming/createComponentStyleTag.js +0 -49
  334. package/src/theming/createThemePropertiesStyleTag.js +0 -20
  335. package/src/thirdparty/Array.from.js +0 -16
  336. package/src/thirdparty/Array.prototype.fill.js +0 -44
  337. package/src/thirdparty/Array.prototype.find.js +0 -46
  338. package/src/thirdparty/Array.prototype.includes.js +0 -51
  339. package/src/thirdparty/Element.prototype.closest.js +0 -11
  340. package/src/thirdparty/Element.prototype.matches.js +0 -6
  341. package/src/thirdparty/Map.prototype.keys.js +0 -9
  342. package/src/thirdparty/Number.isInteger.js +0 -5
  343. package/src/thirdparty/Number.isNaN.js +0 -1
  344. package/src/thirdparty/Number.parseInt.js +0 -1
  345. package/src/thirdparty/Object.assign.js +0 -31
  346. package/src/thirdparty/Object.entries.js +0 -11
  347. package/src/thirdparty/Symbol.js +0 -2
  348. package/src/thirdparty/WeakSet.js +0 -27
  349. package/src/thirdparty/es6-string-methods.js +0 -182
  350. package/src/thirdparty/events-polyfills.js +0 -89
  351. package/src/thirdparty/fetch.js +0 -1
  352. package/src/thirdparty/template.js +0 -600
  353. package/src/thirdparty/webcomponents-sd-ce-pf.js +0 -318
  354. package/src/util/getEffectiveAriaLabelText.js +0 -28
  355. package/src/util/isSlot.js +0 -3
@@ -1,212 +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(){return!("<"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().charAt(0))}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={cssComments:/\/\*[\s\S]+?\*\//g,cssImports:/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g},n={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},o=Array.apply(null,n.rootElement.querySelectorAll(n.include)).filter((function(e){return t=e,r=n.exclude,!(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,r);var t,r})),a=Array.apply(null,Array(o.length)).map((function(e){return null}));function s(){if(-1===a.indexOf(null)){var e=a.join("");n.onComplete(e,a,o)}}function u(e,t,o,i){var u=n.onSuccess(e,o,i);(function e(t,o,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=c(t,i,u);l.rules.length?r(l.absoluteUrls,{onBeforeSend:function(e,t,r){n.onBeforeSend(e,o,t)},onSuccess:function(e,t,r){var i=n.onSuccess(e,o,t),a=c(e=!1===i?"":i||e,t,u);return a.rules.forEach((function(t,n){e=e.replace(t,a.absoluteRules[n])})),e},onError:function(n,r,c){s.push({xhr:n,url:r}),u.push(l.rules[c]),e(t,o,i,a,s,u)},onComplete:function(n){n.forEach((function(e,n){t=t.replace(l.rules[n],e)})),e(t,o,i,a,s,u)}}):a(t,s)})(e=void 0!==u&&!1===Boolean(u)?"":u||e,o,i,(function(e,r){null===a[t]&&(r.forEach((function(e){return n.onError(e.xhr,o,e.url)})),!n.filter||n.filter.test(e)?a[t]=e:a[t]="",s())}))}function c(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={};return o.rules=(e.replace(t.cssComments,"").match(t.cssImports)||[]).filter((function(e){return-1===r.indexOf(e)})),o.urls=o.rules.map((function(e){return e.replace(t.cssImports,"$1")})),o.absoluteUrls=o.urls.map((function(e){return i(e,n)})),o.absoluteRules=o.rules.map((function(e,t){var r=o.urls[t],a=i(o.absoluteUrls[t],n);return e.replace(r,a)})),o}o.length?o.forEach((function(e,t){var o=e.getAttribute("href"),c=e.getAttribute("rel"),l="LINK"===e.nodeName&&o&&c&&"stylesheet"===c.toLowerCase(),f="STYLE"===e.nodeName;if(l)r(o,{mimeType:"text/css",onBeforeSend:function(t,r,o){n.onBeforeSend(t,e,r)},onSuccess:function(n,r,a){var s=i(o,location.href);u(n,t,e,s)},onError:function(r,o,i){a[t]="",n.onError(r,e,o),s()}});else if(f){var h=e.textContent;n.useCSSOM&&(h=Array.apply(null,e.sheet.cssRules).map((function(e){return e.cssText})).join("")),u(h,t,e,location.href)}else a[t]="",s()})):n.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=t({},{preserveStatic:!0,removeComments:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});function r(e){throw new Error("CSS parse error: ".concat(e))}function o(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n}function i(){return o(/^{\s*/)}function s(){return o(/^}/)}function u(){o(/^\s*/)}function c(){if(u(),"/"===e[0]&&"*"===e[1]){for(var t=2;e[t]&&("*"!==e[t]||"/"!==e[t+1]);)t++;if(!e[t])return r("end of comment is missing");var n=e.slice(2,t);return e=e.slice(t+2),{type:"comment",comment:n}}}function l(){for(var e,t=[];e=c();)t.push(e);return n.removeComments?[]:t}function f(){for(u();"}"===e[0];)r("extra closing bracket");var t=o(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);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 h(){o(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//g,t=o(/^(\*?[-#\/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=t[0].trim(),!o(/^:\s*/))return r("property missing ':'");var n=o(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),i={type:"declaration",property:t.replace(e,""),value:n?n[0].replace(e,"").trim():""};return o(/^[;\s]*/),i}}function d(){if(!i())return r("missing '{'");for(var e,t=l();e=h();)t.push(e),t=t.concat(l());return s()?t:r("missing '}'")}function p(){u();for(var e,t=[];e=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),o(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:d()}}function v(){if(u(),"@"===e[0]){var t=function(){var e=o(/^@([-\w]+)?keyframes\s*/);if(e){var t=e[1];if(!(e=o(/^([-\w]+)\s*/)))return r("@keyframes missing name");var n,a=e[1];if(!i())return r("@keyframes missing '{'");for(var u=l();n=p();)u.push(n),u=u.concat(l());return s()?{type:"keyframes",name:a,vendor:t,keyframes:u}:r("@keyframes missing '}'")}}()||function(){var e=o(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:g()}}()||function(){if(o(/^@host\s*/))return{type:"host",rules:g()}}()||function(){var e=o(/^@media([^{]+)*/);if(e)return{type:"media",media:(e[1]||"").trim(),rules:g()}}()||function(){var e=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}()||function(){if(o(/^@page */))return{type:"page",selectors:f()||[],declarations:d()}}()||function(){var e=o(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:g()}}()||function(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:d()}}()||function(){var e=o(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}();if(t&&!n.preserveStatic){var a=!1;if(t.declarations)a=t.declarations.some((function(e){return/var\(/.test(e.value)}));else a=(t.keyframes||t.rules||[]).some((function(e){return(e.declarations||[]).some((function(e){return/var\(/.test(e.value)}))}));return a?t:{}}return t}}function m(){if(!n.preserveStatic){var t=a("{","}",e);if(t){var o=/:(?:root|host)(?![.:#(])/.test(t.pre)&&/--\S*\s*:/.test(t.body),i=/var\(/.test(t.body);if(!o&&!i)return e=e.slice(t.end+1),{}}}var s=f()||[],u=n.preserveStatic?d():d().filter((function(e){var t=s.some((function(e){return/:(?:root|host)(?![.:#(])/.test(e)}))&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}));return s.length||r("selector missing"),{type:"rule",selectors:s,declarations:u}}function g(t){if(!t&&!i())return r("missing '{'");for(var n,o=l();e.length&&(t||"}"!==e[0])&&(n=v()||m());)n.type&&o.push(n),o=o.concat(l());return t||s()?o:r("missing '}'")}return{type:"stylesheet",stylesheet:{rules:g(!0),errors:[]}}}function f(e){var n=t({},{parseHost:!1,store:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=new RegExp(":".concat(n.parseHost?"host":"root","(?![.:#(])"));return"string"==typeof e&&(e=l(e,n)),e.stylesheet.rules.forEach((function(e){"rule"===e.type&&e.selectors.some((function(e){return r.test(e)}))&&e.declarations.forEach((function(e,t){var r=e.property,o=e.value;r&&0===r.indexOf("--")&&(n.store[r]=o)}))})),n.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)}s.range=c;var d="--",p="var";function v(e){var n=t({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return"string"==typeof e&&(e=l(e,n)),function e(t,n){t.rules.forEach((function(r){r.rules?e(r,n):r.keyframes?r.keyframes.forEach((function(e){"keyframe"===e.type&&n(e.declarations,r)})):r.declarations&&n(r.declarations,t)}))}(e.stylesheet,(function(e,t){for(var r=0;r<e.length;r++){var o=e[r],i=o.type,a=o.property,s=o.value;if("declaration"===i)if(n.preserveVars||!a||0!==a.indexOf(d)){if(-1!==s.indexOf(p+"(")){var u=g(s,n);u!==o.value&&(u=m(u),n.preserveVars?(e.splice(r,0,{type:i,property:a,value:u}),r++):o.value=u)}}else e.splice(r,1),r--}})),h(e)}function m(e){return(e.match(/calc\(([^)]+)\)/g)||[]).forEach((function(t){var n="calc".concat(t.split("calc").join(""));e=e.replace(t,n)})),e}function g(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);return r?"var"===r.pre.slice(-3)?0===r.body.trim().length?(t.onWarning("var() must contain a non-whitespace string"),e):r.pre.slice(0,-3)+function(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?g(a,t,s):"var(".concat(s,")")}(r.body)+g(r.post,t):r.pre+"(".concat(g(r.body,t),")")+g(r.post,t):(-1!==e.indexOf("var(")&&t.onWarning('missing closing ")" in the value "'.concat(e,'"')),e)}var y="undefined"!=typeof window,w=y&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),b={group:0,job:0},_={rootElement:y?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(){}},S={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*[:)])/},k={dom:{},job:{},user:{}},x=!1,E=null,A=0,O=null,C=!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 R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="cssVars(): ",i=t({},_,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(y){if(i.watch)return i.watch=_.watch,function(e){function t(e){return"LINK"===e.tagName&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")&&!e.disabled}if(!window.MutationObserver)return;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)&&S.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&&(N(e.rootElement),k.dom={}),s&&s.parentNode.removeChild(s)}return i}))}(n.removedNodes)),o}))&&R(e)}))).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0})}(i),void R(i);if(!1===i.watch&&E&&(E.disconnect(),E=null),!i.__benchmark){if(x===i.rootElement)return void function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(O),O=setTimeout((function(){e.__benchmark=null,R(e)}),t)}(e);if(i.__benchmark=L(),i.exclude=[E?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',i.exclude].filter((function(e){return e})).join(","),i.variables=function(){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}),{})}(i.variables),!E)if(Array.apply(null,i.rootElement.querySelectorAll('[data-cssvars="out"]')).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)})),A){var u=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])');u.length<A&&(A=u.length,k.dom={})}}if("loading"!==document.readyState)if(w&&i.onlyLegacy){if(i.updateDOM){var c=i.rootElement.host||(i.rootElement===document?document.documentElement:i.rootElement);Object.keys(i.variables).forEach((function(e){c.style.setProperty(e,i.variables[e])}))}}else!C&&(i.shadowDOM||i.rootElement.shadowRoot||i.rootElement.host)?o({rootElement:_.rootElement,include:_.include,exclude:i.exclude,onSuccess:function(e,t,n){return(e=((e=e.replace(S.cssComments,"").replace(S.cssMediaQueries,"")).match(S.cssVarDeclRules)||[]).join(""))||!1},onComplete:function(e,t,n){f(e,{store:k.dom,onWarning:s}),C=!0,R(i)}}):(x=i.rootElement,o({rootElement:i.rootElement,include:i.include,exclude:i.exclude,onBeforeSend:i.onBeforeSend,onError:function(e,t,n){var r=e.responseURL||P(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=function(e,t){return(e.replace(S.cssComments,"").match(S.cssUrls)||[]).forEach((function(n){var r=n.replace(S.cssUrls,"$1"),o=P(r,t);e=e.replace(n,n.replace(r,o))})),e}(e,n)),e},onComplete:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],u={},c=i.updateDOM?k.dom:Object.keys(k.job).length?k.job:k.job=JSON.parse(JSON.stringify(k.dom)),d=!1;if(o.forEach((function(e,t){if(S.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(k.user,i.variables),t(u,i.variables),d=Boolean((document.querySelector("[data-cssvars]")||Object.keys(k.dom).length)&&Object.keys(u).some((function(e){return u[e]!==c[e]}))),t(c,k.user,u),d)N(i.rootElement),R(i);else{var p=[],m=[],g=!1;if(k.job={},i.updateDOM&&b.job++,o.forEach((function(e){var n=!e.__cssVars;if(e.__cssVars)try{v(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")||++b.group,u=r.replace(/\s/g,""),l=i.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(o,'"]'))||document.createElement("style");g=g||S.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",b.job),e.setAttribute("data-cssvars-group",o)})),l.textContent=r,p.push(r),m.push(l),l.parentNode||e.parentNode.insertBefore(l,e.nextSibling))}}else e.textContent.replace(/\s/g,"")!==r&&p.push(r)}catch(t){a(t.message,e)}n&&e.setAttribute("data-cssvars","skip"),e.hasAttribute("data-cssvars-job")||e.setAttribute("data-cssvars-job",b.job)})),A=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,i.shadowDOM)for(var y,w=[i.rootElement].concat(n(i.rootElement.querySelectorAll("*"))),_=0;y=w[_];++_)if(y.shadowRoot&&y.shadowRoot.querySelector("style")){var E=t({},i,{rootElement:y.shadowRoot});R(E)}i.updateDOM&&g&&M(i.rootElement),x=!1,i.onComplete(p.join(""),m,JSON.parse(JSON.stringify(c)),L()-i.__benchmark)}}}));else document.addEventListener("DOMContentLoaded",(function t(n){R(e),document.removeEventListener("DOMContentLoaded",t)}))}}function M(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=0,i=n.length;o<i;o++){var a=n[o];"none"!==getComputedStyle(a)[t]&&(a.style[t]+="__CSSVARSPONYFILL-KEYFRAMES__",r.push(a))}document.body.offsetHeight;for(var s=0,u=r.length;s<u;s++){var c=r[s].style;c[t]=c[t].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}function P(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 L(){return y&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function N(e){Array.apply(null,e.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach((function(e){return e.setAttribute("data-cssvars","")}))}if(R.reset=function(){for(var e in x=!1,E&&(E.disconnect(),E=null),A=0,O=null,C=!1,k)k[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.parseInt=Number.parseInt||window.parseInt,Element&&!Element.prototype.matches){var T=Element.prototype;T.matches=T.matchesSelector||T.mozMatchesSelector||T.msMatchesSelector||T.oMatchesSelector||T.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 j=function(e){this.name="__st"+(1e9*Math.random()>>>0)+D+++"__",e&&e.forEach&&e.forEach(this.add,this)},D=Date.now()%1e9,I=j.prototype;I.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},I.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},I.has=function(e){return!!e[this.name]},window.WeakSet=j}function V(e){return(V="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 F(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 U(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){F(i,r,o,a,s,"next",e)}function s(e){F(i,r,o,a,s,"throw",e)}a(void 0)}))}}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(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 H(e,t,n){return t&&W(e.prototype,t),n&&W(e,n),e}function z(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&&$(e,t)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e,t,n){return(Z=function(){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}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&$(o,n.prototype),o}).apply(null,arguments)}function G(e){var t="function"==typeof Map?new Map:void 0;return(G=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 Z(e,arguments,q(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$(r,e)})(e)}function J(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 Y(e,t,n){return(Y="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=q(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 X(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function K(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 Q(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")}()}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"===("undefined"==typeof module?"undefined":V(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}},x(E.prototype),E.prototype[a]=function(){return this},c.AsyncIterator=E,c.async=function(e,t,n,r){var o=new E(w(e,t,n,r));return c.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(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 P()}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 x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function E(e){var t;this._invoke=function(n,o){function i(){return new Promise((function(t,i){!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"===V(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)}(n,o,t,i)}))}return t=t?t.then(i,i):i()}}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:P}}function P(){return{value:t,done:!0}}}(function(){return this||"object"===("undefined"==typeof self?"undefined":V(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="__URLSearchParams__",a=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),s=f.prototype,u=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&a)){s.append=function(e,t){m(this[i],e,t)},s.delete=function(e){delete this[i][e]},s.get=function(e){var t=this[i];return e in t?t[e][0]:null},s.getAll=function(e){var t=this[i];return e in t?t[e].slice(0):[]},s.has=function(e){return e in this[i]},s.set=function(e,t){this[i][e]=[""+t]},s.toString=function(){var e,t,n,r,o=this[i],a=[];for(t in o)for(n=h(t),e=0,r=o[t];e<r.length;e++)a.push(n+"="+h(r[e]));return a.join("&")};var c=!!o&&n&&!r&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:c?new Proxy(n,{construct:function(e,t){return new e(new f(t[0]).toString())}}):f});var l=e.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(e,t){var n=v(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var e,t,n,r=v(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])}},l.keys=l.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},l.values=l.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},l.entries=l.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},u&&(l[e.Symbol.iterator]=l[e.Symbol.iterator]||l.entries)}function f(e){((e=e||"")instanceof URLSearchParams||e instanceof f)&&(e=e.toString()),this[i]=v(e)}function h(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function d(e){return decodeURIComponent(e.replace(/\+/g," "))}function p(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return u&&(n[e.Symbol.iterator]=function(){return n}),n}function v(e){var t={};if("object"===V(e))for(var n in e)e.hasOwnProperty(n)&&m(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?m(t,d(i.slice(0,a)),d(i.slice(a+1))):i&&m(t,d(i),"")}}return t}function m(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(){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:R};var ee=new Map,te=function(e,t){ee.set(e,t)},ne=function(e){return ee.get(e)},re={default:"sap_fiori_3",all:["sap_fiori_3","sap_fiori_3_dark","sap_belize","sap_belize_hcb","sap_belize_hcw"]}.default,oe={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,ie={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"]}.default,ae=function(){var e=navigator.languages;return e&&e[0]||navigator.language||navigator.userLanguage||navigator.browserLanguage||oe},se={},ue=se.hasOwnProperty,ce=se.toString,le=ue.toString,fe=le.call(Object),he=function(e){var t,n;return!(!e||"[object Object]"!==ce.call(e))&&(!(t=Object.getPrototypeOf(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&le.call(n)===fe)},de=Object.create(null),pe=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:de;for("object"!==V(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&&(he(r)||(n=Array.isArray(r)))?(n?(n=!1,a=t&&Array.isArray(t)?t:[]):a=t&&he(t)?t:{},s[o]=e(l,arguments[1],a,r)):r!==f&&(s[o]=r));return s},ve=function(){var e=[!0,!1];return e.push.apply(e,arguments),pe.apply(null,e)},me=!1,ge={animationMode:"full",theme:re,rtl:null,language:null,calendarType:null,noConflict:!1,formatSettings:{}},ye=new Map;ye.set("true",!0),ye.set("false",!1);var we,be,_e,Se,ke,xe,Ee,Ae=function(){me||(!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&&(ge=ve(ge,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];ye.has(e)&&(e=ye.get(n)),ge[r]=e}})),function(){var e=ne("OpenUI5Support");if(e&&e.isLoaded()){var t=e.getConfigurationSettingsObject();ge=ve(ge,t)}}(),me=!0)},Oe=new(function(){function e(){B(this,e),this._eventRegistry={}}return H(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}()),Ce=function(){function e(){B(this,e),this.list=[],this.promises=new Map}return H(e,[{key:"add",value:function(e){if(this.promises.has(e))return this.promises.get(e);var t,n=new Promise((function(e){t=e}));return n._deferredResolve=t,this.list.push(e),this.promises.set(e,n),n}},{key:"shift",value:function(){var e=this.list.shift();if(e){var t=this.promises.get(e);return this.promises.delete(e),{webComponent:e,promise:t}}}},{key:"getList",value:function(){return this.list}},{key:"isAdded",value:function(e){return this.promises.has(e)}}]),e}(),Re=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t},Me=new Set,Pe=new Set,Le=function(e){Me.add(e)},Ne=function(e){return Me.has(e)},Te=function(e){Pe.add(e),we||(we=setTimeout((function(){je(),we=void 0}),1e3))},je=function(){console.warn("The following tags have already been defined by a different UI5 Web Components version: ".concat(Re(Pe).join(", "))),Pe.clear()},De=new Set,Ie=new Set,Ve=new Ce,Fe=function(){function e(){throw B(this,e),new Error("Static class")}var t;return H(e,null,[{key:"renderDeferred",value:function(t){var n=Ve.add(t);return e.scheduleRenderTask(),n}},{key:"renderImmediately",value:function(t){var n=Ve.add(t);return e.runRenderTask(),n}},{key:"scheduleRenderTask",value:function(){be||(be=window.requestAnimationFrame(e.renderWebComponents))}},{key:"runRenderTask",value:function(){be||(be=1,e.renderWebComponents())}},{key:"renderWebComponents",value:function(){for(var t,n,r,o=new Map;t=Ve.shift();){n=t.webComponent,r=t.promise;var i=o.get(n)||0;if(i>10)throw new Error("Web component re-rendered too many times this task, max allowed is: ".concat(10));n._render(),r._deferredResolve(),o.set(n,i+1)}ke||(ke=setTimeout((function(){ke=void 0,0===Ve.getList().length&&e._resolveTaskPromise()}),200)),be=void 0}},{key:"whenDOMUpdated",value:function(){return _e||(_e=new Promise((function(e){Se=e,window.requestAnimationFrame((function(){0===Ve.getList().length&&(_e=void 0,e())}))})))}},{key:"whenAllCustomElementsAreDefined",value:function(){var e=Re(Me).map((function(e){return customElements.whenDefined(e)}));return Promise.all(e)}},{key:"whenFinished",value:(t=U(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(){Ve.getList().length>0||Se&&(Se.call(this,void 0),Se=void 0,_e=void 0)}},{key:"register",value:function(e){Ie.add(e)}},{key:"deregister",value:function(e){Ie.delete(e)}},{key:"reRenderAllUI5Elements",value:function(t){Ie.forEach((function(n){var r,o=(r=n.constructor,De.has(r)),i=n.constructor.getMetadata().isLanguageAware();(!t||t.rtlAware&&o||t.languageAware&&i)&&e.renderDeferred(n)}))}}]),e}(),Ue=function(){return void 0===xe&&(Ae(),xe=ge.language),xe},Be=/^((?:[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,We=function(){function e(t){B(this,e);var n=Be.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 H(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}(),He=function(e){try{if(e&&"string"==typeof e)return new We(e)}catch(e){}},ze=new Map,qe=new Map,$e=new Map,Ze=function(){var e=U(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ze.get(t)||ze.set(t,fetch(t)),e.next=3,ze.get(t);case 3:return n=e.sent,$e.get(t)||$e.set(t,n.text()),e.abrupt("return",$e.get(t));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ge=function(){var e=U(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ze.get(t)||ze.set(t,fetch(t)),e.next=3,ze.get(t);case 3:return n=e.sent,qe.get(t)||qe.set(t,n.json()),e.abrupt("return",qe.get(t));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Je=/^((?:[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,Ye=/(?:^|-)(saptrc|sappsd)(?:-|$)/i,Xe={he:"iw",yi:"ji",id:"in",sr:"sh"},Ke=function(e){var t;if(!e)return ie;if("string"==typeof e&&(t=Je.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=Xe[n]||n,a&&(t=Ye.exec(a))||i&&(t=Ye.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("-","_"):""):""))}},Qe=function(e){if(!e)return ie;if("zh_HK"===e)return"zh_TW";var t=e.lastIndexOf("_");return t>=0?e.slice(0,t):e!==ie?ie:""},et=new Map,tt=new Map,nt=function(e,t){et.set(e,t)},rt=function(e){return et.get(e)},ot=function(){var e=U(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=tt.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=(l=void 0,l?He(l):Ue()?new We(Ue()):He(ae())).getLanguage(),o=Ke(r);o!==oe&&!n[o];)o=Qe(o);if(n[o]){e.next=10;break}return nt(t,null),e.abrupt("return");case 10:if("object"!==V(i=n[o])){e.next=14;break}return nt(t,i),e.abrupt("return");case 14:return e.next=16,Ze(i);case 16:if(!(a=e.sent).startsWith("{")){e.next=21;break}s=JSON.parse,e.next=25;break;case 21:if(u=ne("PropertiesFormatSupport")){e.next=24;break}throw new Error('In order to support .properties files, please: import "@ui5/webcomponents-base/dist/features/PropertiesFormatSupport.js";');case 24:s=u.parser;case 25:c=s(a),nt(t,c);case 27:case"end":return e.stop()}var l}),e)})));return function(t){return e.apply(this,arguments)}}();Ee=function(){var e=Q(et.keys());return Promise.all(e.map(ot))},Oe.attachEvent("languageChange",Ee);var it,at,st=new Map,ut=new Map,ct=new Set,lt=new Set,ft=function(e,t,n){n._?ut.set("".concat(e,"_").concat(t),n._):n.includes(":root")||""===n?ut.set("".concat(e,"_").concat(t),n):st.set("".concat(e,"_").concat(t),n),ct.add(e),lt.add(t)},ht=function(){var e=U(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=ut.get("".concat(t,"_").concat(n)))){e.next=3;break}return e.abrupt("return",r);case 3:if(lt.has(n)){e.next=7;break}return o=Q(lt.values()).join(", "),console.warn("You have requested a non-registered theme - falling back to ".concat(re,". Registered themes are: ").concat(o)),e.abrupt("return",ut.get("".concat(t,"_").concat(re)));case 7:return e.next=9,dt(t,n);case 9:return i=e.sent,a=i._||i,ut.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)}}(),dt=function(){var e=U(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=st.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))?Ze(r):Ge(r));case 4:case"end":return e.stop()}var o,i}),e)})));return function(t,n){return e.apply(this,arguments)}}(),pt=function(){return ct},vt=function(e){return lt.has(e)},mt=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,Q(e))})),n.textContent=e,document.head.appendChild(n),n},gt=function(e,t){var n=document.head.querySelector('style[data-ui5-theme-properties="'.concat(t,'"]'));n?n.textContent=e||"":mt(e,{"data-ui5-theme-properties":t})},yt=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))},wt=function(){return!!window.CSSVarsPonyfill},bt=function(){it=void 0,window.CSSVarsPonyfill.cssVars({rootElement:document.head,silent:!0})},_t="@ui5/webcomponents-theme-base",St=function(){var e=U(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pt().has(_t)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,ht(_t,t);case 4:n=e.sent,gt(n,_t);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),kt=function(){var e=U(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:pt().forEach(function(){var e=U(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n!==_t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,ht(n,t);case 4:r=e.sent,gt(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)}}(),xt=function(){var e=yt();if(e)return e;var t=ne("OpenUI5Support");if(t&&t.cssVariablesLoaded())return{themeName:t.getConfigurationSettingsObject().theme}},Et=function(){var e=U(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=xt())&&t===n.themeName){e.next=6;break}return e.next=4,St(t);case 4:e.next=7;break;case 6:o=void 0,(o=document.head.querySelector('style[data-ui5-theme-properties="'.concat(_t,'"]')))&&o.parentElement.removeChild(o);case 7:return r=vt(t)?t:n&&n.baseThemeName,e.next=10,kt(r);case 10:wt()&&bt();case 11:case"end":return e.stop()}var o}),e)})));return function(t){return e.apply(this,arguments)}}(),At=function(){return void 0===at&&(Ae(),at=ge.theme),at},Ot=function(){var e=U(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(at!==t){e.next=2;break}return e.abrupt("return");case 2:return at=t,e.next=5,Et(at);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ct=window.sap,Rt=Ct&&Ct.ui&&"function"==typeof Ct.ui.getCore&&Ct.ui.getCore();te("OpenUI5Support",{isLoaded:function(){return!!Rt},init:function(){return Rt?new Promise((function(e){Rt.attachInit((function(){Ct.ui.require(["sap/ui/core/LocaleData"],e)}))})):Promise.resolve()},getConfigurationSettingsObject:function(){if(Rt){var e=Rt.getConfiguration(),t=Ct.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(Rt){var e=Rt.getConfiguration();return Ct.ui.require("sap/ui/core/LocaleData").getInstance(e.getLocale())._get()}},attachListeners:function(){var e;Rt&&(e=Rt.getConfiguration(),Rt.attachThemeChanged(U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ot(e.getTheme());case 2:case"end":return t.stop()}}),t)})))))},cssVariablesLoaded:function(){if(Rt){var e=Q(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 Mt,Pt,Lt='\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'),Nt=function(){if(!document.querySelector("head>style[data-ui5-font-face]")){var e=ne("OpenUI5Support");e&&e.isLoaded()||mt(Lt,{"data-ui5-font-face":""})}},Tt=function(){function e(){B(this,e)}return H(e,null,[{key:"isValid",value:function(e){}},{key:"generataTypeAcessors",value:function(e){var t=this;Object.keys(e).forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]}})}))}}]),e}(),jt=new Map,Dt=new Map,It=function(e){if(!jt.has(e)){var t=Ft(e.split("-"));jt.set(e,t)}return jt.get(e)},Vt=function(e){if(!Dt.has(e)){var t=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();Dt.set(e,t)}return Dt.get(e)},Ft=function(e){return e.map((function(e,t){return 0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})).join("")},Ut=function(e){return e&&e instanceof HTMLElement&&"slot"===e.localName},Bt=function(){function e(t){B(this,e),this.metadata=t}return H(e,[{key:"getTag",value:function(){return this.metadata.tag}},{key:"getAltTag",value:function(){return this.metadata.altTag}},{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(Vt)}},{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=K(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:"validatePropertyValue",value:function(e,t){return t.multiple?e.map((function(e){return Wt(e,t)})):Wt(e,t)}},{key:"validateSlotValue",value:function(e,t){return Ht(e,t)}}]),e}(),Wt=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"===V(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,Tt)?n.isValid(e)?e:t.defaultValue:void 0},Ht=function(e,t){if(null===e)return e;var n;return(Ut(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},zt=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))},qt=function(){return zt("ui5-static-area")},$t=function(e){function t(){return B(this,t),J(this,q(t).call(this))}return z(t,e),H(t,[{key:"destroy",value:function(){var e=document.querySelector(this.tagName.toLowerCase());e.parentElement.removeChild(e)}},{key:"isUI5Element",get:function(){return!0}}]),t}(G(HTMLElement));customElements.get("ui5-static-area")||customElements.define("ui5-static-area",$t);var Zt=function(){function e(t){B(this,e),this.ui5ElementContext=t,this._rendered=!1}var t;return H(e,[{key:"isRendered",value:function(){return this._rendered}},{key:"_updateFragment",value:function(){var e=this.ui5ElementContext.constructor.staticAreaTemplate(this.ui5ElementContext),t=!window.ShadyDOM&&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),qt().appendChild(this.staticAreaItemDomRef),this._rendered=!0),this.ui5ElementContext.constructor.render(e,this.staticAreaItemDomRef.shadowRoot,t,{eventContext:this.ui5ElementContext})}},{key:"_removeFragmentFromStaticArea",value:function(){if(this.staticAreaItemDomRef){var e=qt();e.removeChild(this.staticAreaItemDomRef),this.staticAreaItemDomRef=null,e.childElementCount<1&&qt().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=U(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,Fe.whenDOMUpdated();case 3:return e.abrupt("return",this.staticAreaItemDomRef.shadowRoot);case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),Gt=function(e){function t(){return B(this,t),J(this,q(t).call(this))}return z(t,e),H(t,[{key:"isUI5Element",get:function(){return!0}}]),t}(G(HTMLElement));customElements.get("ui5-static-area-item")||customElements.define("ui5-static-area-item",Gt);var Jt,Yt,Xt=window,Kt=new WeakMap,Qt=function(){function e(){throw B(this,e),new Error("Static class")}return H(e,null,[{key:"observeDOMNode",value:function(e,t,n){var r=Kt.get(e);if(r)throw new Error("A mutation/ShadyDOM observer is already assigned to this node.");Xt.ShadyDOM?r=Xt.ShadyDOM.observeChildren(e,t):(r=new MutationObserver(t)).observe(e,n),Kt.set(e,r)}},{key:"unobserveDOMNode",value:function(e){var t=Kt.get(e);t&&(t instanceof MutationObserver?t.disconnect():Xt.ShadyDOM.unobserveChildren(t),Kt.delete(e))}}]),e}(),en=["value-changed"],tn=function(){return void 0===Jt&&(Ae(),Jt=ge.noConflict),Jt},nn=function(e){var t=tn();return!function(e){return en.includes(e)}(e)&&(!0===t||!function(e){var t=tn();return!(t.events&&t.events.includes&&t.events.includes(e))}(e))},rn=function(e){Jt=e},on={iw:"he",ji:"yi",in:"id",sh:"sr"},an=((Yt=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec("$cldr-rtl-locales:ar,fa,he$"))&&Yt[2]?Yt[2].split(/,/):null)||[],sn=function(){var e=(Ae(),ge.rtl);return null!==e?!!e:function(e){return e=e&&on[e]||e,an.indexOf(e)>=0}(Ue()||ae())},un={},cn=function(e){var t=function(e){return un[e]?un[e].join(""):""}(e.getMetadata().getTag())||"",n=e.styles;return Array.isArray(n)&&(n=n.join(" ")),"".concat(n," ").concat(t)},ln=new Map,fn=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)},hn=function(e,t){return(e=function(e,t,n){for(var r=e.indexOf(t);-1!==r;)r=(e=fn(e,t,r,n)).indexOf(t);return e}(e=e.trim(),"::slotted","")).startsWith(":host")?fn(e,":host",0,t):e.match(/^[@0-9]/)||"to"===e||"to{"===e?e:e.match(new RegExp("^".concat(t,"[^a-zA-Z0-9-]")))?e:"".concat(t," ").concat(e)},dn=function(e,t){e=(e=e.replace(/\n/g," ")).replace(/([{}])/g,"$1\n");var n="";return e.split("\n").forEach((function(e){if(e.match(/{$/)){var r=e.split(",");e=r.map((function(e){return hn(e,t)})).join(",")}n="".concat(n).concat(e)})),n},pn=new Set,vn=function(e){var t=e.getMetadata().getTag();if(!pn.has(t)){var n=cn(e);n=dn(n,t);var r=function(e){var t=e.staticAreaStyles;return Array.isArray(t)&&(t=t.join(" ")),t}(e);r&&(r=dn(r,"ui5-static-area-item"),n="".concat(n," ").concat(r)),mt(n,{"data-ui5-element-styles":t,disabled:"disabled"}),wt()&&(it||(it=window.setTimeout(bt,0))),pn.add(t)}},mn=function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),H(t,null,[{key:"isValid",value:function(e){return Number.isInteger(e)}}]),t}(Tt),gn=function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),H(t,null,[{key:"isValid",value:function(e){return Number(e)===e}}]),t}(Tt),yn=["disabled","ariaLabel","ariaExpanded","title"],wn=function(e){return!!yn.includes(e)||![HTMLElement,Element,Node].some((function(t){return t.prototype.hasOwnProperty(e)}))},bn={events:{"_property-change":{}}},_n=0,Sn=new Map,kn=function(e){function t(){var e,n;return B(this,t),(e=J(this,q(t).call(this)))._initializeState(),e._upgradeAllProperties(),e._initializeContainers(),e._upToDate=!1,e._domRefReadyPromise=new Promise((function(e){n=e})),e._domRefReadyPromise._deferredResolve=n,e._monitoredChildProps=new Map,e._firePropertyChange=!1,e}var n,r,o,i,a;return z(t,e),H(t,[{key:"_initializeContainers",value:function(){var e=this.constructor._needsShadowDOM(),t=this.constructor._needsStaticArea();if(e&&(this.attachShadow({mode:"open"}),window.ShadyDOM&&vn(this.constructor),document.adoptedStyleSheets)){var n=function(e){var t=e.getMetadata().getTag(),n=cn(e);if(ln.has(t))return ln.get(t);var r=new CSSStyleSheet;return r.replaceSync(n),ln.set(t,r),r}(this.constructor);this.shadowRoot.adoptedStyleSheets=[n]}t&&(this.staticAreaItem=new Zt(this))}},{key:"connectedCallback",value:(a=U(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.constructor._needsShadowDOM(),n=this.constructor.getMetadata().slotsAreManaged(),!t){e.next=15;break}if(!n){e.next=7;break}return this._startObservingDOMChildren(),e.next=7,this._processChildren();case 7:if(this.shadowRoot){e.next=10;break}return e.next=10,Promise.resolve();case 10:return Fe.register(this),e.next=13,Fe.renderImmediately(this);case 13:this._domRefReadyPromise._deferredResolve(),"function"==typeof this.onEnterDOM&&this.onEnterDOM();case 15:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){var e=this.constructor._needsShadowDOM(),t=this.constructor._needsStaticArea(),n=this.constructor.getMetadata().slotsAreManaged();e&&(n&&this._stopObservingDOMChildren(),Fe.deregister(this),"function"==typeof this.onExitDOM&&this.onExitDOM()),t&&this.staticAreaItem._removeFragmentFromStaticArea()}},{key:"_startObservingDOMChildren",value:function(){if(this.constructor.getMetadata().hasSlots()){var e={childList:!0,subtree:this.constructor.getMetadata().canSlotText(),characterData:!0};Qt.observeDOMNode(this,this._processChildren.bind(this),e)}}},{key:"_stopObservingDOMChildren",value:function(){Qt.unobserveDOMNode(this)}},{key:"_processChildren",value:(i=U(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 i.apply(this,arguments)})},{key:"_updateSlots",value:(o=U(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,u,c,l,f,h=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=0,i=Object.entries(t);o<i.length;o++)a=K(i[o],2),s=a[0],u=a[1],this._clearSlot(s,u);return c=new Map,l=new Map,f=r.map(function(){var e=U(regeneratorRuntime.mark((function e(n,r){var o,i,a,s,u,f,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=h.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=(c.get(o)||0)+1,c.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 f=window.customElements.whenDefined(u),(d=Sn.get(u))||(d=new Promise((function(e){return setTimeout(e,1e3)})),Sn.set(u,d)),e.next=18,Promise.race([f,d]);case 18:window.customElements.upgrade(n);case 19:(n=h.constructor.getMetadata().constructor.validateSlotValue(n,i)).isUI5Element&&i.listenFor&&h._attachChildPropertyUpdated(n,i.listenFor),Ut(n)&&h._attachSlotChange(n),p=i.propertyName||o,l.has(p)?l.get(p).push({child:n,idx:r}):l.set(p,[{child:n,idx:r}]);case 24:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),e.next=9,Promise.all(f);case 9:l.forEach((function(e,t){h._state[t]=e.sort((function(e,t){return e.idx-t.idx})).map((function(e){return e.child}))})),this._invalidate("slots");case 11:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"_clearSlot",value:function(e,t){var n=this,r=t.propertyName||e,o=this._state[r];Array.isArray(o)||(o=[o]),o.forEach((function(e){e&&e.isUI5Element&&n._detachChildPropertyUpdated(e),Ut(e)&&n._detachSlotChange(e)})),this._state[r]=[],this._invalidate(r,[])}},{key:"attributeChangedCallback",value:function(e,t,n){var r=this.constructor.getMetadata().getProperties(),o=e.replace(/^ui5-/,""),i=It(o);if(r.hasOwnProperty(i)){var a=r[i].type;a===Boolean&&(n=null!==n),a===mn&&(n=parseInt(n)),a===gn&&(n=parseFloat(n)),this[i]=n}}},{key:"_updateAttribute",value:function(e,t){if(this.constructor.getMetadata().hasAttribute(e)&&"object"!==V(t)){var n=Vt(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:"_attachChildPropertyUpdated",value:function(e,t){var n=e.constructor.getMetadata(),r=this.constructor._getSlotName(e),o=n.getProperties(),i=[],a=[];Array.isArray(t)?i=t:(i=Array.isArray(t.props)?t.props:Object.keys(o),a=Array.isArray(t.exclude)?t.exclude:[]),this._monitoredChildProps.has(r)||this._monitoredChildProps.set(r,{observedProps:i,notObservedProps:a}),e.addEventListener("_property-change",this._invalidateParentOnPropertyUpdate),e._firePropertyChange=!0}},{key:"_detachChildPropertyUpdated",value:function(e){e.removeEventListener("_property-change",this._invalidateParentOnPropertyUpdate),e._firePropertyChange=!1}},{key:"_propertyChange",value:function(e,t){this._updateAttribute(e,t),this._firePropertyChange&&this.dispatchEvent(new CustomEvent("_property-change",{detail:{name:e,newValue:t},composed:!1,bubbles:!0}))}},{key:"_invalidateParentOnPropertyUpdate",value:function(e){var t=this.parentNode;if(t){var n=t.constructor._getSlotName(this),r=t._monitoredChildProps.get(n);if(r){var o=r.observedProps,i=r.notObservedProps;o.includes(e.detail.name)&&!i.includes(e.detail.name)&&t._invalidate("_parent_",this)}}}},{key:"_attachSlotChange",value:function(e){var t=this;this._invalidateOnSlotChange||(this._invalidateOnSlotChange=function(){t._invalidate("slotchange")}),e.addEventListener("slotchange",this._invalidateOnSlotChange)}},{key:"_detachSlotChange",value:function(e){e.removeEventListener("slotchange",this._invalidateOnSlotChange)}},{key:"_invalidate",value:function(){this._upToDate&&this.getDomRef()&&!this._suppressInvalidation&&(this._upToDate=!1,Fe.renderDeferred(this))}},{key:"_render",value:function(){var e=this.constructor.getMetadata().hasIndividualSlots();this._suppressInvalidation=!0,"function"==typeof this.onBeforeRendering&&this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),delete this._suppressInvalidation,this._upToDate=!0,this._updateShadowRoot(),this._shouldUpdateFragment()&&this.staticAreaItem._updateFragment(this),e&&this._assignIndividualSlotsToChildren(),"function"==typeof this.onAfterRendering&&this.onAfterRendering()}},{key:"_updateShadowRoot",value:function(){if(this.constructor._needsShadowDOM()){var e,t=this.constructor.template(this);document.adoptedStyleSheets||window.ShadyDOM||(e=cn(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:"getStableDomRef",value:function(e){return this.getDomRef().querySelector("[data-ui5-stable=".concat(e,"]"))}},{key:"focus",value:(r=U(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 r.apply(this,arguments)})},{key:"fireEvent",value:function(e,t,n){var r=this._fireEvent(e,t,n),o=It(e);return o!==e?r&&this._fireEvent(o,t,n):r}},{key:"_fireEvent",value:function(e,t,n){var r,o=new CustomEvent("ui5-".concat(e),{detail:t,composed:!1,bubbles:!0,cancelable:n});if(r=this.dispatchEvent(o),nn(e))return r;var i=new CustomEvent(e,{detail:t,composed:!1,bubbles:!0,cancelable:n});return this.dispatchEvent(i)&&r}},{key:"getSlottedNodes",value:function(e){return this[e].reduce((function(e,t){return Ut(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(++_n)),this.__id}},{key:"isCompact",get:function(){return"compact"===getComputedStyle(this).getPropertyValue("--_ui5_content_density")}},{key:"effectiveDir",get:function(){var e;e=this.constructor,De.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:sn()?"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(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=K(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=K(i[o],2),n=t[0],r=t[1];if(!wn(n))throw new Error('"'.concat(n,'" is not a valid property name. Use a name that does not collide with DOM APIs'));if(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),this._state[n]!==e&&(this._state[n]=e,this._invalidate(n,e),this._propertyChange(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=K(c[u],2),n=t[0],r=t[1];if(!wn(n))throw new Error('"'.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 slots directly, use the DOM APIs")}})},u=0,c=Object.entries(a);u<c.length;u++)s()}},{key:"define",value:(n=U(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,Pt||(Pt=new Promise(function(){var e=U(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=ne("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,Et(At());case 8:return n&&n.attachListeners(),Nt(),document.querySelector("head>style[data-ui5-system-css-vars]")||mt('\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,Mt||(Mt=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:if(!this.onDefine){e.next=5;break}return e.next=5,this.onDefine();case 5:return t=this.getMetadata().getTag(),n=this.getMetadata().getAltTag(),r=Ne(t),(o=customElements.get(t))&&!r?Te(t):o||(this._generateAccessors(),Le(t),window.customElements.define(t,this),n&&!customElements.get(n)&&(i=function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),t}(this),Le(n),window.customElements.define(n,i))),e.abrupt("return",this);case 11: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=ve.apply(void 0,[{}].concat(e));return this._metadata=new Bt(r),this._metadata}},{key:"observedAttributes",get:function(){return this.getMetadata().getAttributesList()}},{key:"metadata",get:function(){return bn}},{key:"styles",get:function(){return""}},{key:"staticAreaStyles",get:function(){return""}}]),t}(G(HTMLElement)),xn=new WeakMap,En=function(e){return"function"==typeof e&&xn.has(e)},An=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,On=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}},Cn={},Rn={},Mn="{{lit-".concat(String(Math.random()).slice(2),"}}"),Pn="\x3c!--".concat(Mn,"--\x3e"),Ln=new RegExp("".concat(Mn,"|").concat(Pn)),Nn=function e(t,n){B(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++)Tn(h[v].name,"$lit$")&&p++;for(;p-- >0;){var m=c[u],g=In.exec(m)[2],y=g.toLowerCase()+"$lit$",w=f.getAttribute(y);f.removeAttribute(y);var b=w.split(Ln);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(Mn)>=0){for(var S=f.parentNode,k=_.split(Ln),x=k.length-1,E=0;E<x;E++){var A=void 0,O=k[E];if(""===O)A=Dn();else{var C=In.exec(O);null!==C&&Tn(C[2],"$lit$")&&(O=O.slice(0,C.index)+C[1]+C[2].slice(0,-"$lit$".length)+C[3]),A=document.createTextNode(O)}S.insertBefore(A,f),this.parts.push({type:"node",index:++s})}""===k[x]?(S.insertBefore(Dn(),f),r.push(f)):f.data=k[x],u+=x}}else if(8===f.nodeType)if(f.data===Mn){var R=f.parentNode;null!==f.previousSibling&&s!==a||(s++,R.insertBefore(Dn(),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(Mn,M+1));)this.parts.push({type:"node",index:-1}),u++}else i.currentNode=o.pop()}for(var P=0,L=r;P<L.length;P++){var N=L[P];N.parentNode.removeChild(N)}},Tn=function(e,t){var n=e.length-t.length;return n>=0&&e.slice(n)===t},jn=function(e){return-1!==e.index},Dn=function(){return document.createComment("")},In=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Vn=function(){function e(t,n,r){B(this,e),this.__parts=[],this.template=t,this.processor=n,this.options=r}return H(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=An?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],jn(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,Q(this.processor.handleAttributeExpressions(s,e.name,e.strings,this.options)))}i++}else this.__parts.push(void 0),i++;return An&&(document.adoptNode(t),customElements.upgrade(t)),t}}]),e}(),Fn=" ".concat(Mn," "),Un=function(){function e(t,n,r,o){B(this,e),this.strings=t,this.values=n,this.type=r,this.processor=o}return H(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=In.exec(o);t+=null===a?o+(n?Fn:Pn):o.substr(0,a.index)+a[1]+a[2]+"$lit$"+a[3]+Mn}return t+=this.strings[e]}},{key:"getTemplateElement",value:function(){var e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}]),e}(),Bn=function(e){return null===e||!("object"===V(e)||"function"==typeof e)},Wn=function(e){return Array.isArray(e)||!(!e||!e[Symbol.iterator])},Hn=function(){function e(t,n,r){B(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 H(e,[{key:"_createPart",value:function(){return new zn(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(Bn(i)||!Wn(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}(),zn=function(){function e(t){B(this,e),this.value=void 0,this.committer=t}return H(e,[{key:"setValue",value:function(e){e===Cn||Bn(e)&&e===this.value||(this.value=e,En(e)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;En(this.value);){var e=this.value;this.value=Cn,e(this)}this.value!==Cn&&this.committer.commit()}}]),e}(),qn=function(){function e(t){B(this,e),this.value=void 0,this.__pendingValue=void 0,this.options=t}return H(e,[{key:"appendInto",value:function(e){this.startNode=e.appendChild(Dn()),this.endNode=e.appendChild(Dn())}},{key:"insertAfterNode",value:function(e){this.startNode=e,this.endNode=e.nextSibling}},{key:"appendIntoPart",value:function(e){e.__insert(this.startNode=Dn()),e.__insert(this.endNode=Dn())}},{key:"insertAfterPart",value:function(e){e.__insert(this.startNode=Dn()),this.endNode=e.endNode,e.endNode=this.startNode}},{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;En(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=Cn,e(this)}var t=this.__pendingValue;t!==Cn&&(Bn(t)?t!==this.value&&this.__commitText(t):t instanceof Un?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):Wn(t)?this.__commitIterable(t):t===Rn?(this.value=Rn,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 Vn&&this.value.template===t)this.value.update(e.values);else{var n=new Vn(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;On(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),$n=function(){function e(t,n,r){if(B(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 H(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;En(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=Cn,e(this)}if(this.__pendingValue!==Cn){var t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=Cn}}}]),e}(),Zn=function(e){function t(e,n,r){var o;return B(this,t),(o=J(this,q(t).call(this,e,n,r))).single=2===r.length&&""===r[0]&&""===r[1],o}return z(t,e),H(t,[{key:"_createPart",value:function(){return new Gn(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:Y(q(t.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),t}(Hn),Gn=function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),t}(zn),Jn=!1;try{var Yn={get capture(){return Jn=!0,!1}};window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch(e){}var Xn=function(){function e(t,n,r){var o=this;B(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 H(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;En(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=Cn,e(this)}if(this.__pendingValue!==Cn){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=Kn(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=Cn}}},{key:"handleEvent",value:function(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}]),e}(),Kn=function(e){return e&&(Jn?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)},Qn=new(function(){function e(){B(this,e)}return H(e,[{key:"handleAttributeExpressions",value:function(e,t,n,r){var o=t[0];return"."===o?new Zn(e,t.slice(1),n).parts:"@"===o?[new Xn(e,t.slice(1),r.eventContext)]:"?"===o?[new $n(e,t.slice(1),n)]:new Hn(e,t,n).parts}},{key:"handleTextExpression",value:function(e){return new qn(e)}}]),e}());
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
- */
184
- function er(e){var t=tr.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},tr.set(e.type,t));var n=t.stringsArray.get(e.strings);if(void 0!==n)return n;var r=e.strings.join(Mn);return void 0===(n=t.keyString.get(r))&&(n=new Nn(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}var tr=new Map,nr=new WeakMap,rr=function(e,t,n){var r=nr.get(t);void 0===r&&(On(t,t.firstChild),nr.set(t,r=new qn(Object.assign({templateFactory:er},n))),r.appendInto(t)),r.setValue(e),r.commit()};
185
- /**
186
- * @license
187
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
188
- * This code may only be used under the BSD style license found at
189
- * http://polymer.github.io/LICENSE.txt
190
- * The complete set of authors may be found at
191
- * http://polymer.github.io/AUTHORS.txt
192
- * The complete set of contributors may be found at
193
- * http://polymer.github.io/CONTRIBUTORS.txt
194
- * Code distributed by Google as part of the polymer project is also
195
- * subject to an additional IP rights grant found at
196
- * http://polymer.github.io/PATENTS.txt
197
- */
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
- (window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");var or=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 Un(e,n,"html",Qn)};function ir(){var e=X(["<style>","</style>",""]);return ir=function(){return e},e}var ar=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.eventContext;n&&(e=or(ir(),n,e)),rr(e,t,{eventContext:o})};function sr(){var e=X(['<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 sr=function(){return e},e}var ur={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"}}},cr=function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),H(t,[{key:"onBeforeRendering",value:function(){}},{key:"onAfterRendering",value:function(){}},{key:"onEnterDOM",value:function(){}},{key:"onExitDOM",value:function(){}}],[{key:"metadata",get:function(){return ur}},{key:"render",get:function(){return ar}},{key:"template",get:function(){return function(e){return or(sr())}}},{key:"styles",get:function(){return":host {\n display: inline-block;\n border: 1px solid black;\n color: var(--var1);\n }"}}]),t}(kn);cr.define();var lr={tag:"ui5-test-no-shadow"};function fr(){var e=X(["<div>\n\t\t\t\t<slot></slot>\n\t\t\t</div>"]);return fr=function(){return e},e}(function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),H(t,null,[{key:"metadata",get:function(){return lr}}]),t})(kn).define();var hr={tag:"ui5-test-parent",managedSlots:!0,slots:{default:{type:Node,listenFor:["prop1"]},items:{type:HTMLElement,listenFor:{include:["*"],exclude:["prop3"]}}}};function dr(){var e=X(["<div></div>"]);return dr=function(){return e},e}(function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),H(t,null,[{key:"metadata",get:function(){return hr}},{key:"render",get:function(){return ar}},{key:"template",get:function(){return function(e){return or(fr())}}}]),t})(kn).define();var pr={tag:"ui5-test-child",properties:{prop1:{type:String},prop2:{type:String},prop3:{type:String}}};function vr(){var e=X(['\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 vr=function(){return e},e}function mr(){var e=X(["\n\t\t\t\t<div>\n\t\t\t\t\tWithStaticArea works!\n\t\t\t\t</div>"]);return mr=function(){return e},e}(function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),H(t,null,[{key:"metadata",get:function(){return pr}},{key:"render",get:function(){return ar}},{key:"template",get:function(){return function(e){return or(dr())}}}]),t})(kn).define();var gr={tag:"ui5-with-static-area",properties:{staticContent:{type:Boolean}},slots:{}};(function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}var n;return z(t,e),H(t,[{key:"addStaticArea",value:(n=U(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 gr}},{key:"render",get:function(){return ar}},{key:"template",get:function(){return function(e){return or(mr())}}},{key:"staticAreaTemplate",get:function(){return function(e){return or(vr())}}},{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})(kn).define();var yr={tag:"ui5-test-generic-ext",properties:{extProp:{type:String},strProp:{defaultValue:"Ext"}},slots:{extSlot:{type:HTMLElement}}};(function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),H(t,null,[{key:"metadata",get:function(){return yr}}]),t})(cr).define();ft("@ui5/webcomponents-base-test","sap_fiori_3",":root{ --var1: red; }"),ft("@ui5/webcomponents-base-test","sap_fiori_3_dark",":root{ --var1: green; }"),ft("@ui5/webcomponents-base-test","sap_belize",":root{ --var1: blue; }"),ft("@ui5/webcomponents-base-test","sap_belize_hcb",":root{ --var1: orange; }"),ft("@ui5/webcomponents-base-test","sap_belize_hcw",":root{ --var1: orange; }");var wr={},br={INTERNET_EXPLORER:"ie",EDGE:"ed",FIREFOX:"ff",CHROME:"cr",SAFARI:"sf",ANDROID:"an"},_r=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:br.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=br.CHROME,d=e.test(o),h=parseFloat(u[2])):c?(f=br.FIREFOX,d=!0,h=parseFloat(c[1])):l&&(f=br.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:br.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:br.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:br.INTERNET_EXPLORER,versionStr:"".concat(n),version:n,msie:!0,mobile:!1}):r.edge?(n=parseFloat(r.version),t={name:br.EDGE,versionStr:"".concat(n),version:n,edge:!0}):t={name:"",versionStr:"",version:-1,mobile:!1};return t},Sr="object"===("undefined"==typeof chrome?"undefined":V(chrome))||"object"===("undefined"==typeof v8?"undefined":V(v8))?function(e,t){return t>2&&e.length,e}:function(e){return e},kr=/(?:\r\n|\r|\n|^)[ \t\f]*/,xr=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)|([ \t\f]*[ \t\f:=][ \t\f]*)/g,Er=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)/g,Ar={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};te("PropertiesFormatSupport",{parser:function(e){var t,n,r,o,i,a,s,u,c={},l=e.split(kr),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=xr).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(Ar[a[2]]||a[2].slice(1)):a[3]?(t=l[++i],s=0,n.lastIndex=s):a[4]&&(r=o,o="",(n=Er).lastIndex=s);a=n.exec(t)}s<t.length&&f(t.slice(s)),null==r&&(r=o,o=""),c[r]=Sr(o,o?u:0)}}return c}});var Or,Cr,Rr=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g,Mr=function(e,t){return t=t||[],e.replace(Rr,(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))}))},Pr=new Map,Lr=function(){function e(t){B(this,e),this.packageName=t}return H(e,[{key:"getText",value:function(e){if("string"==typeof e&&(e={key:e,defaultText:e}),!e||!e.key)return"";for(var t=rt(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 Mr(n,o)}}]),e}(),Nr=function(){return void 0===Or&&(Ae(),Or=ge.animationMode),Or},Tr={Gregorian:"Gregorian",Islamic:"Islamic",Japanese:"Japanese",Buddhist:"Buddhist",Persian:"Persian"},jr=function(e){function t(){return B(this,t),J(this,q(t).apply(this,arguments))}return z(t,e),H(t,null,[{key:"isValid",value:function(e){return!!Tr[e]}}]),t}(Tt);jr.generataTypeAcessors(Tr);var Dr,Ir=function(){return void 0===Cr&&(Ae(),Cr=ge.calendarType),jr.isValid(Cr)?Cr:jr.Gregorian},Vr=function(){return void 0===Dr&&(Ae(),Dr=ge.formatSettings),Dr.firstDayOfWeek},Fr=function(e,t){for(var n=e.split("."),r=zt("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},Ur=Fr("SVGIcons.registry",new Map),Br=Fr("SVGIcons.promises",new Map),Wr=function(){var e=U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Br.has("SAP-icons")){e.next=3;break}return e.next=3,Br.get("SAP-icons");case 3:return e.abrupt("return",Array.from(Ur.keys()).map((function(e){return e.split(":")[1]})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();window.RenderScheduler=Fe,window.isIE=function(){return wr.browser||(wr.browser=_r(),wr.browser.BROWSER=br,wr.browser.name&&Object.keys(br).forEach((function(e){br[e]===wr.browser.name&&(wr.browser[e.toLowerCase()]=!0)}))),!!wr.browser.msie},window.registerThemeProperties=ft,window["sap-ui-webcomponents-bundle"]={configuration:{getAnimationMode:Nr,getLanguage:Ue,getTheme:At,setTheme:Ot,getNoConflict:tn,setNoConflict:rn,getCalendarType:Ir,getRTL:sn,getFirstDayOfWeek:Vr},getIconNames:Wr,registerI18nBundle:function(e,t){var n=tt.get(e)||{};tt.set(e,Object.assign({},n,t))},fetchI18nBundle:ot,getI18nBundle:function(e){if(Pr.has(e))return Pr.get(e);var t=new Lr(e);return Pr.set(e,t),t}};var Hr={getAnimationMode:Nr,getLanguage:Ue,getTheme:At,setTheme:Ot,getNoConflict:tn,setNoConflict:rn,getCalendarType:Ir,getRTL:sn,getFirstDayOfWeek:Vr};e.configuration=Hr,e.getIconNames=Wr}(this["sap-ui-webcomponents-bundle"]=this["sap-ui-webcomponents-bundle"]||{});
212
- //# sourceMappingURL=bundle.es5.js.map