@ui5/webcomponents-base 0.0.0-f9b9eadb8 → 0.0.0-fd6264051

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