jekyll-theme-hydejack 8.3.2 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (392) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +1208 -0
  3. data/LICENSE.md +9 -3
  4. data/NOTICE.md +290 -0
  5. data/README.md +135 -93
  6. data/_config.yml +73 -0
  7. data/_includes/base-classes +9 -0
  8. data/_includes/body/analytics.html +1 -1
  9. data/_includes/body/comments.html +1 -1
  10. data/_includes/body/footer.html +3 -3
  11. data/_includes/body/index.html +17 -16
  12. data/_includes/body/main.html +3 -13
  13. data/_includes/body/menu.html +3 -2
  14. data/_includes/body/nav.html +4 -4
  15. data/_includes/body/scripts.html +5 -20
  16. data/_includes/body/sidebar-bg.html +13 -0
  17. data/_includes/body/sidebar-sticky.html +25 -0
  18. data/_includes/body/sidebar.html +7 -40
  19. data/_includes/components/about.html +1 -1
  20. data/_includes/components/author.html +3 -3
  21. data/_includes/components/hy-img.html +15 -26
  22. data/_includes/components/link.html +1 -1
  23. data/_includes/components/message.html +1 -1
  24. data/_includes/components/post-list-item.html +3 -5
  25. data/_includes/components/post.html +14 -11
  26. data/_includes/components/related-posts.html +14 -4
  27. data/_includes/components/tag-list.html +5 -1
  28. data/_includes/head/css/inline +1 -0
  29. data/_includes/head/index.html +14 -8
  30. data/_includes/head/links-static.html +27 -0
  31. data/_includes/head/links.html +1 -34
  32. data/_includes/head/meta-static.html +18 -0
  33. data/_includes/head/meta.html +9 -21
  34. data/_includes/head/page-style.html +1 -3
  35. data/_includes/head/scripts.html +13 -14
  36. data/_includes/head/styles-inline.html +19 -0
  37. data/_includes/head/styles-layout.html +4 -0
  38. data/_includes/head/styles-no-inline.html +8 -0
  39. data/_includes/head/styles.html +5 -46
  40. data/_includes/header.txt +1 -1
  41. data/_includes/if-non-null +7 -0
  42. data/_includes/my-body.html +1 -1
  43. data/_includes/my-scripts.html +1 -1
  44. data/_includes/scripts/load-js.min.js +1 -1
  45. data/_includes/scripts/nomodule.js +21 -0
  46. data/_includes/scripts/nomodule.min.js +1 -0
  47. data/_includes/smart-url +1 -0
  48. data/_includes/smart-url.txt +1 -1
  49. data/_includes/styles/common.scss +18 -0
  50. data/_includes/styles/inline.scss +16 -38
  51. data/_includes/styles/page-style.scss +5 -52
  52. data/_includes/styles/style.scss +22 -43
  53. data/_includes/styles/variables.scss +62 -0
  54. data/_includes/templates/animation.html +1 -1
  55. data/_includes/templates/back.html +3 -3
  56. data/_includes/templates/error.html +1 -1
  57. data/_includes/templates/forward.html +6 -0
  58. data/_includes/templates/index.html +10 -10
  59. data/_includes/templates/loading.html +1 -1
  60. data/_includes/templates/permalink.html +2 -2
  61. data/_layouts/about.html +1 -1
  62. data/_layouts/base.html +7 -2
  63. data/_layouts/blog.html +9 -7
  64. data/_layouts/compress.html +1 -1
  65. data/_layouts/default.html +4 -4
  66. data/_layouts/list.html +11 -17
  67. data/_layouts/page.html +1 -0
  68. data/_layouts/post.html +5 -3
  69. data/_sass/_mixins.scss +7 -21
  70. data/_sass/_spinner.scss +1 -1
  71. data/_sass/_syntax.scss +142 -130
  72. data/_sass/_variables.scss +2 -43
  73. data/_sass/html.scss +42 -0
  74. data/_sass/hydejack/__inline__/_avatar.scss +10 -10
  75. data/_sass/hydejack/__inline__/_base.scss +7 -21
  76. data/_sass/hydejack/__inline__/_content.scss +9 -2
  77. data/_sass/hydejack/__inline__/_images.scss +1 -3
  78. data/_sass/hydejack/__inline__/_links.scss +28 -13
  79. data/_sass/hydejack/__inline__/_menu.scss +42 -13
  80. data/_sass/hydejack/__inline__/_sidebar.scss +40 -14
  81. data/_sass/hydejack/__inline__/_social.scss +3 -0
  82. data/_sass/hydejack/__inline__/_toc.scss +55 -0
  83. data/_sass/hydejack/__inline__/_utilities.scss +3 -0
  84. data/_sass/hydejack/__link__/_avatar.scss +0 -4
  85. data/_sass/hydejack/__link__/_base.scss +1 -2
  86. data/_sass/hydejack/__link__/_break-layout.scss +17 -8
  87. data/_sass/hydejack/__link__/_content.scss +1 -0
  88. data/_sass/hydejack/__link__/_footer.scss +6 -8
  89. data/_sass/hydejack/__link__/_images.scss +8 -39
  90. data/_sass/hydejack/__link__/_katex.scss +1 -26
  91. data/_sass/hydejack/__link__/_links.scss +29 -20
  92. data/_sass/hydejack/__link__/_mark-external.scss +2 -7
  93. data/_sass/hydejack/__link__/_menu.scss +63 -8
  94. data/_sass/hydejack/__link__/_sidebar.scss +12 -9
  95. data/_sass/hydejack/__link__/_toc.scss +53 -0
  96. data/_sass/hydejack/__link__/_utilities.scss +3 -0
  97. data/_sass/hydejack/_avatar.pre.scss +10 -12
  98. data/_sass/hydejack/_base.pre.scss +7 -23
  99. data/_sass/hydejack/_break-layout.pre.scss +19 -10
  100. data/_sass/hydejack/_content.pre.scss +10 -2
  101. data/_sass/hydejack/_footer.pre.scss +6 -8
  102. data/_sass/hydejack/_images.pre.scss +9 -41
  103. data/_sass/hydejack/_katex.pre.scss +3 -28
  104. data/_sass/hydejack/_links.pre.scss +49 -19
  105. data/_sass/hydejack/_mark-external.pre.scss +2 -7
  106. data/_sass/hydejack/_menu.pre.scss +91 -22
  107. data/_sass/hydejack/_sidebar.pre.scss +48 -22
  108. data/_sass/hydejack/_social.pre.scss +3 -0
  109. data/_sass/hydejack/_toc.pre.scss +65 -0
  110. data/_sass/hydejack/_utilities.pre.scss +3 -0
  111. data/_sass/my-inline.scss +2 -16
  112. data/_sass/my-style.scss +0 -9
  113. data/_sass/pooleparty/__inline__/_base.scss +14 -9
  114. data/_sass/pooleparty/__inline__/_message.scss +31 -0
  115. data/_sass/pooleparty/__inline__/_posts.scss +19 -2
  116. data/_sass/pooleparty/__inline__/_table.scss +0 -28
  117. data/_sass/pooleparty/__inline__/_type.scss +81 -15
  118. data/_sass/pooleparty/__link__/_base.scss +11 -5
  119. data/_sass/pooleparty/__link__/_code.scss +40 -7
  120. data/_sass/pooleparty/__link__/_footnotes.scss +4 -5
  121. data/_sass/pooleparty/__link__/_pagination.scss +3 -2
  122. data/_sass/pooleparty/__link__/_posts.scss +11 -6
  123. data/_sass/pooleparty/__link__/_read-more.scss +1 -1
  124. data/_sass/pooleparty/__link__/_table.scss +27 -17
  125. data/_sass/pooleparty/__link__/_type.scss +56 -19
  126. data/_sass/pooleparty/_base.pre.scss +29 -18
  127. data/_sass/pooleparty/_code.pre.scss +40 -7
  128. data/_sass/pooleparty/_footnotes.pre.scss +4 -5
  129. data/_sass/pooleparty/_message.pre.scss +33 -2
  130. data/_sass/pooleparty/_pagination.pre.scss +5 -4
  131. data/_sass/pooleparty/_posts.pre.scss +34 -12
  132. data/_sass/pooleparty/_read-more.pre.scss +1 -1
  133. data/_sass/pooleparty/_table.pre.scss +13 -21
  134. data/_sass/pooleparty/_type.pre.scss +100 -35
  135. data/assets/bower.json +1 -2
  136. data/assets/bower_components/MathJax/.bower.json +28 -0
  137. data/assets/bower_components/MathJax/LICENSE +202 -0
  138. data/assets/bower_components/MathJax/bower.json +11 -0
  139. data/assets/bower_components/MathJax/composer.json +14 -0
  140. data/assets/bower_components/MathJax/es5/a11y/assistive-mml.js +1 -0
  141. data/assets/bower_components/MathJax/es5/a11y/complexity.js +1 -0
  142. data/assets/bower_components/MathJax/es5/a11y/explorer.js +1 -0
  143. data/assets/bower_components/MathJax/es5/a11y/semantic-enrich.js +1 -0
  144. data/assets/bower_components/MathJax/es5/adaptors/liteDOM.js +1 -0
  145. data/assets/bower_components/MathJax/es5/core.js +1 -0
  146. data/assets/bower_components/MathJax/es5/input/asciimath.js +1 -0
  147. data/assets/bower_components/MathJax/es5/input/mml.js +1 -0
  148. data/assets/bower_components/MathJax/es5/input/mml/entities.js +1 -0
  149. data/assets/bower_components/MathJax/es5/input/tex-base.js +1 -0
  150. data/assets/bower_components/MathJax/es5/input/tex-full.js +1 -0
  151. data/assets/bower_components/MathJax/es5/input/tex.js +1 -0
  152. data/assets/bower_components/MathJax/es5/input/tex/extensions/action.js +1 -0
  153. data/assets/bower_components/MathJax/es5/input/tex/extensions/all-packages.js +1 -0
  154. data/assets/bower_components/MathJax/es5/input/tex/extensions/ams.js +1 -0
  155. data/assets/bower_components/MathJax/es5/input/tex/extensions/amscd.js +1 -0
  156. data/assets/bower_components/MathJax/es5/input/tex/extensions/autoload.js +1 -0
  157. data/assets/bower_components/MathJax/es5/input/tex/extensions/bbox.js +1 -0
  158. data/assets/bower_components/MathJax/es5/input/tex/extensions/boldsymbol.js +1 -0
  159. data/assets/bower_components/MathJax/es5/input/tex/extensions/braket.js +1 -0
  160. data/assets/bower_components/MathJax/es5/input/tex/extensions/bussproofs.js +1 -0
  161. data/assets/bower_components/MathJax/es5/input/tex/extensions/cancel.js +1 -0
  162. data/assets/bower_components/MathJax/es5/input/tex/extensions/color.js +1 -0
  163. data/assets/bower_components/MathJax/es5/input/tex/extensions/colorV2.js +1 -0
  164. data/assets/bower_components/MathJax/es5/input/tex/extensions/configMacros.js +1 -0
  165. data/assets/bower_components/MathJax/es5/input/tex/extensions/enclose.js +1 -0
  166. data/assets/bower_components/MathJax/es5/input/tex/extensions/extpfeil.js +1 -0
  167. data/assets/bower_components/MathJax/es5/input/tex/extensions/html.js +1 -0
  168. data/assets/bower_components/MathJax/es5/input/tex/extensions/mhchem.js +1 -0
  169. data/assets/bower_components/MathJax/es5/input/tex/extensions/newcommand.js +1 -0
  170. data/assets/bower_components/MathJax/es5/input/tex/extensions/noerrors.js +1 -0
  171. data/assets/bower_components/MathJax/es5/input/tex/extensions/noundefined.js +1 -0
  172. data/assets/bower_components/MathJax/es5/input/tex/extensions/physics.js +1 -0
  173. data/assets/bower_components/MathJax/es5/input/tex/extensions/require.js +1 -0
  174. data/assets/bower_components/MathJax/es5/input/tex/extensions/tagFormat.js +1 -0
  175. data/assets/bower_components/MathJax/es5/input/tex/extensions/unicode.js +1 -0
  176. data/assets/bower_components/MathJax/es5/input/tex/extensions/verb.js +1 -0
  177. data/assets/bower_components/MathJax/es5/latest.js +1 -0
  178. data/assets/bower_components/MathJax/es5/loader.js +1 -0
  179. data/assets/bower_components/MathJax/es5/mml-chtml.js +1 -0
  180. data/assets/bower_components/MathJax/es5/mml-svg.js +1 -0
  181. data/assets/bower_components/MathJax/es5/node-main.js +1 -0
  182. data/assets/bower_components/MathJax/es5/output/chtml.js +1 -0
  183. data/assets/bower_components/MathJax/es5/output/chtml/fonts/tex.js +1 -0
  184. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
  185. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
  186. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
  187. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
  188. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
  189. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
  190. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
  191. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
  192. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
  193. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
  194. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
  195. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
  196. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
  197. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
  198. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
  199. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
  200. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
  201. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
  202. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
  203. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
  204. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
  205. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
  206. data/assets/bower_components/MathJax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
  207. data/assets/bower_components/MathJax/es5/output/svg.js +1 -0
  208. data/assets/bower_components/MathJax/es5/output/svg/fonts/tex.js +1 -0
  209. data/assets/bower_components/MathJax/es5/sre/mathmaps/en.js +104 -0
  210. data/assets/bower_components/MathJax/es5/sre/mathmaps/es.js +104 -0
  211. data/assets/bower_components/MathJax/es5/sre/mathmaps/fr.js +104 -0
  212. data/assets/bower_components/MathJax/es5/sre/mathmaps/mathmaps_ie.js +410 -0
  213. data/assets/bower_components/MathJax/es5/sre/mathmaps/nemeth.js +104 -0
  214. data/assets/bower_components/MathJax/es5/sre/sre_browser.js +1709 -0
  215. data/assets/bower_components/MathJax/es5/startup.js +1 -0
  216. data/assets/bower_components/MathJax/es5/tex-chtml-full.js +1 -0
  217. data/assets/bower_components/MathJax/es5/tex-chtml.js +1 -0
  218. data/assets/bower_components/MathJax/es5/tex-mml-chtml.js +1 -0
  219. data/assets/bower_components/MathJax/es5/tex-mml-svg.js +1 -0
  220. data/assets/bower_components/MathJax/es5/tex-svg-full.js +1 -0
  221. data/assets/bower_components/MathJax/es5/tex-svg.js +1 -0
  222. data/assets/bower_components/MathJax/es5/ui/menu.js +1 -0
  223. data/assets/bower_components/MathJax/package.json +59 -0
  224. data/assets/bower_components/katex/.bower.json +7 -8
  225. data/assets/bower_components/katex/bower.json +1 -1
  226. data/assets/bower_components/katex/dist/contrib/auto-render.js +4 -0
  227. data/assets/bower_components/katex/dist/contrib/auto-render.min.js +1 -1
  228. data/assets/bower_components/katex/dist/contrib/auto-render.mjs +215 -0
  229. data/assets/bower_components/katex/dist/contrib/copy-tex.js +9 -4
  230. data/assets/bower_components/katex/dist/contrib/copy-tex.min.css +1 -1
  231. data/assets/bower_components/katex/dist/contrib/copy-tex.min.js +1 -1
  232. data/assets/bower_components/katex/dist/contrib/copy-tex.mjs +85 -0
  233. data/assets/bower_components/katex/dist/contrib/mathtex-script-type.min.js +1 -1
  234. data/assets/bower_components/katex/dist/contrib/mathtex-script-type.mjs +24 -0
  235. data/assets/bower_components/katex/dist/contrib/mhchem.js +3241 -0
  236. data/assets/bower_components/katex/dist/contrib/mhchem.min.js +1 -0
  237. data/assets/bower_components/katex/dist/contrib/mhchem.mjs +3109 -0
  238. data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  239. data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  240. data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  241. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  242. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  243. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  244. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  245. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  246. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  247. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  248. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  249. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  250. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  251. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  252. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  253. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  254. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  255. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  256. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  257. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  258. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  259. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  260. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  261. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  262. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  263. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  264. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  265. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  266. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  267. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  268. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  269. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  270. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  271. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  272. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  273. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  274. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  275. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  276. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  277. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  278. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  279. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  280. data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  281. data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  282. data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  283. data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  284. data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  285. data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  286. data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  287. data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  288. data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  289. data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  290. data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  291. data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  292. data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  293. data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  294. data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  295. data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  296. data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  297. data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  298. data/assets/bower_components/katex/dist/katex.css +18 -4
  299. data/assets/bower_components/katex/dist/katex.js +1011 -663
  300. data/assets/bower_components/katex/dist/katex.min.css +1 -1
  301. data/assets/bower_components/katex/dist/katex.min.js +1 -1
  302. data/assets/bower_components/katex/dist/katex.mjs +904 -645
  303. data/assets/bower_components/katex/yarn.lock +3091 -2622
  304. data/assets/css/{hydejack-8.3.2.css → hydejack-9.0.0.css} +0 -0
  305. data/assets/icomoon/fonts/icomoon.eot +0 -0
  306. data/assets/icomoon/fonts/icomoon.svg +10 -2
  307. data/assets/icomoon/fonts/icomoon.ttf +0 -0
  308. data/assets/icomoon/fonts/icomoon.woff +0 -0
  309. data/assets/icomoon/selection.json +1 -2555
  310. data/assets/icomoon/style.css +37 -12
  311. data/assets/js/.gitkeep +0 -0
  312. data/assets/js/LEGACY-drawer-hydejack-9.0.0.js +14 -0
  313. data/assets/js/LEGACY-fetch-hydejack-9.0.0.js +14 -0
  314. data/assets/js/LEGACY-hydejack-9.0.0.js +28 -0
  315. data/assets/js/LEGACY-navbar-hydejack-9.0.0.js +14 -0
  316. data/assets/js/LEGACY-push-state-hydejack-9.0.0.js +14 -0
  317. data/assets/js/LEGACY-resize-observer-hydejack-9.0.0.js +14 -0
  318. data/assets/js/LEGACY-shadydom-hydejack-9.0.0.js +14 -0
  319. data/assets/js/LEGACY-vendors~drawer-hydejack-9.0.0.js +47 -0
  320. data/assets/js/LEGACY-vendors~drawer~push-state-hydejack-9.0.0.js +215 -0
  321. data/assets/js/LEGACY-vendors~fetch-hydejack-9.0.0.js +14 -0
  322. data/assets/js/LEGACY-vendors~intersection-observer-hydejack-9.0.0.js +14 -0
  323. data/assets/js/LEGACY-vendors~push-state-hydejack-9.0.0.js +33 -0
  324. data/assets/js/LEGACY-vendors~shadydom-hydejack-9.0.0.js +155 -0
  325. data/assets/js/LEGACY-vendors~webanimations-hydejack-9.0.0.js +14 -0
  326. data/assets/js/LEGACY-vendors~webcomponents-hydejack-9.0.0.js +34 -0
  327. data/assets/js/LEGACY-webcomponents-hydejack-9.0.0.js +14 -0
  328. data/assets/js/drawer-hydejack-9.0.0.js +14 -0
  329. data/assets/js/fetch-hydejack-9.0.0.js +14 -0
  330. data/assets/js/hydejack-9.0.0.js +28 -0
  331. data/assets/js/navbar-hydejack-9.0.0.js +14 -0
  332. data/assets/js/push-state-hydejack-9.0.0.js +14 -0
  333. data/assets/js/resize-observer-hydejack-9.0.0.js +14 -0
  334. data/assets/js/shadydom-hydejack-9.0.0.js +14 -0
  335. data/assets/js/vendors~drawer-hydejack-9.0.0.js +47 -0
  336. data/assets/js/vendors~drawer~push-state-hydejack-9.0.0.js +163 -0
  337. data/assets/js/vendors~intersection-observer-hydejack-9.0.0.js +14 -0
  338. data/assets/js/vendors~push-state-hydejack-9.0.0.js +33 -0
  339. data/assets/js/vendors~shadydom-hydejack-9.0.0.js +146 -0
  340. data/assets/js/vendors~webanimations-hydejack-9.0.0.js +14 -0
  341. data/assets/js/webcomponents-hydejack-9.0.0.js +14 -0
  342. data/assets/version.json +3 -2
  343. data/licenses/PRO.md +4 -0
  344. data/licenses/README.md +1 -1
  345. data/licenses/{W3C.md → W3C-20150513.md} +0 -0
  346. metadata +170 -55
  347. data/assets/Resume.pdf +0 -0
  348. data/assets/bower_components/fontfaceobserver/.bower.json +0 -33
  349. data/assets/bower_components/fontfaceobserver/.gitignore +0 -2
  350. data/assets/bower_components/fontfaceobserver/.travis.yml +0 -16
  351. data/assets/bower_components/fontfaceobserver/Gruntfile.js +0 -101
  352. data/assets/bower_components/fontfaceobserver/LICENSE +0 -23
  353. data/assets/bower_components/fontfaceobserver/bower.json +0 -22
  354. data/assets/bower_components/fontfaceobserver/exports.js +0 -8
  355. data/assets/bower_components/fontfaceobserver/externs-commonjs.js +0 -10
  356. data/assets/bower_components/fontfaceobserver/externs.js +0 -15
  357. data/assets/bower_components/fontfaceobserver/fontfaceobserver.js +0 -12
  358. data/assets/bower_components/fontfaceobserver/fontfaceobserver.standalone.js +0 -8
  359. data/assets/bower_components/fontfaceobserver/package.json +0 -57
  360. data/assets/bower_components/fontfaceobserver/src/descriptors.js +0 -10
  361. data/assets/bower_components/fontfaceobserver/src/observer.js +0 -349
  362. data/assets/bower_components/fontfaceobserver/src/ruler.js +0 -130
  363. data/assets/bower_components/fontfaceobserver/vendor/google/base.js +0 -1489
  364. data/assets/bower_components/katex/dist/README.md +0 -90
  365. data/assets/bower_components/katex/lint_blacklist.txt +0 -5
  366. data/assets/img/blog/COLOURlovers.com-Hydejack.png +0 -0
  367. data/assets/img/blog/blog-layout.jpg +0 -0
  368. data/assets/img/blog/caleb-george-old.jpg +0 -0
  369. data/assets/img/blog/caleb-george.jpg +0 -0
  370. data/assets/img/blog/cover-page.jpg +0 -0
  371. data/assets/img/blog/dark-mode-ii.jpg +0 -0
  372. data/assets/img/blog/dark-mode.jpg +0 -0
  373. data/assets/img/blog/example-content-ii.jpg +0 -0
  374. data/assets/img/blog/example-content-iii.jpg +0 -0
  375. data/assets/img/blog/hydejack-8.png +0 -0
  376. data/assets/img/blog/hydejack-8@0,25x.png +0 -0
  377. data/assets/img/blog/hydejack-8@0,5x.png +0 -0
  378. data/assets/img/blog/lazy-images.jpg +0 -0
  379. data/assets/img/blog/resume.png +0 -0
  380. data/assets/img/blog/steve-harvey.jpg +0 -0
  381. data/assets/img/blog/w3m.png +0 -0
  382. data/assets/img/blog/wade-lambert.jpg +0 -0
  383. data/assets/img/docs/google-fonts.png +0 -0
  384. data/assets/img/projects/hy-drawer.svg +0 -12
  385. data/assets/img/projects/hy-img.svg +0 -17
  386. data/assets/img/projects/hy-push-state.svg +0 -13
  387. data/assets/js/hydejack-8.3.1.js +0 -47
  388. data/assets/js/hydejack-8.3.2.js +0 -47
  389. data/assets/video/blog-layout.mp4 +0 -0
  390. data/assets/video/cover-page.mp4 +0 -0
  391. data/assets/video/dark-mode.mp4 +0 -0
  392. data/assets/video/lazy-images.mp4 +0 -0
@@ -1,90 +0,0 @@
1
- # [<img src="https://cdn.rawgit.com/Khan/KaTeX/84189cd3adae24d92e766d14eb80d6e54f3c7dca/katex-logo.svg" width="130" alt="KaTeX">](https://katex.org/)
2
- [![npm](https://img.shields.io/npm/v/katex.svg)](https://www.npmjs.com/package/katex)
3
- [![CircleCI](https://circleci.com/gh/Khan/KaTeX.svg?style=shield)](https://circleci.com/gh/Khan/KaTeX)
4
- [![codecov](https://codecov.io/gh/Khan/KaTeX/branch/master/graph/badge.svg)](https://codecov.io/gh/Khan/KaTeX)
5
- [![Join the chat at https://gitter.im/Khan/KaTeX](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Khan/KaTeX?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Greenkeeper badge](https://badges.greenkeeper.io/Khan/KaTeX.svg)](https://greenkeeper.io/)
6
- [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/katex/badge?style=rounded)](https://www.jsdelivr.com/package/npm/katex)
7
- ![](https://img.badgesize.io/Khan/KaTeX/v0.10.0/dist/katex.min.js?compression=gzip)
8
-
9
- KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.
10
-
11
- * **Fast:** KaTeX renders its math synchronously and doesn't need to reflow the page. See how it compares to a competitor in [this speed test](http://www.intmath.com/cg5/katex-mathjax-comparison.php).
12
- * **Print quality:** KaTeX’s layout is based on Donald Knuth’s TeX, the gold standard for math typesetting.
13
- * **Self contained:** KaTeX has no dependencies and can easily be bundled with your website resources.
14
- * **Server side rendering:** KaTeX produces the same output regardless of browser or environment, so you can pre-render expressions using Node.js and send them as plain HTML.
15
-
16
- KaTeX is compatible with all major browsers, including Chrome, Safari, Firefox, Opera, Edge, and IE 9–11.
17
-
18
- KaTeX supports much (but not all) of LaTeX and many LaTeX packages. See the [list of supported functions](https://katex.org/docs/supported.html).
19
-
20
- Try out KaTeX [on the demo page](https://katex.org/#demo)!
21
-
22
- ## Getting started
23
-
24
- ### Starter template
25
-
26
- ```html
27
- <!DOCTYPE html>
28
- <!-- KaTeX requires the use of the HTML5 doctype. Without it, KaTeX may not render properly -->
29
- <html>
30
- <head>
31
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
32
-
33
- <!-- The loading of KaTeX is deferred to speed up page rendering -->
34
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.js" integrity="sha384-K3vbOmF2BtaVai+Qk37uypf7VrgBubhQreNQe9aGsz9lB63dIFiQVlJbr92dw2Lx" crossorigin="anonymous"></script>
35
-
36
- <!-- To automatically render math in text elements, include the auto-render extension: -->
37
- <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/auto-render.min.js" integrity="sha384-kmZOZB5ObwgQnS/DuDg6TScgOiWWBiVt0plIRkZCmE6rDZGrEOQeHM5PcHi+nyqe" crossorigin="anonymous"
38
- onload="renderMathInElement(document.body);"></script>
39
- </head>
40
- ...
41
- </html>
42
- ```
43
-
44
- You can also [download KaTeX](https://github.com/khan/katex/releases) and host it yourself.
45
-
46
- For details on how to configure auto-render extension, refer to [the documentation](https://katex.org/docs/autorender.html).
47
-
48
- ### API
49
-
50
- Call `katex.render` to render a TeX expression directly into a DOM element.
51
- For example:
52
-
53
- ```js
54
- katex.render("c = \\pm\\sqrt{a^2 + b^2}", element, {
55
- throwOnError: false
56
- });
57
- ```
58
-
59
- Call `katex.renderToString` to generate an HTML string of the rendered math,
60
- e.g., for server-side rendering. For example:
61
-
62
- ```js
63
- var html = katex.renderToString("c = \\pm\\sqrt{a^2 + b^2}", {
64
- throwOnError: false
65
- });
66
- // '<span class="katex">...</span>'
67
- ```
68
-
69
- Make sure to include the CSS and font files in both cases.
70
- If you are doing all rendering on the server, there is no need to include the
71
- JavaScript on the client.
72
-
73
- The examples above use the `throwOnError: false` option, which renders invalid
74
- inputs as the TeX source code in red (by default), with the error message as
75
- hover text. For other available options, see the
76
- [API documentation](https://katex.org/docs/api.html),
77
- [options documentation](https://katex.org/docs/options.html), and
78
- [handling errors documentation](https://katex.org/docs/error.html).
79
-
80
- ## Demo and Documentation
81
-
82
- Learn more about using KaTeX [on the website](https://katex.org)!
83
-
84
- ## Contributing
85
-
86
- See [CONTRIBUTING.md](CONTRIBUTING.md)
87
-
88
- ## License
89
-
90
- KaTeX is licensed under the [MIT License](http://opensource.org/licenses/MIT).
@@ -1,5 +0,0 @@
1
- .git
2
-
3
- # Autogenerated code
4
- node_modules/**
5
- dist/**
Binary file
Binary file
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <svg viewBox="-435 -131.00625610351562 1600 900" width="1600" height="900" xmlns="http://www.w3.org/2000/svg">
3
- <defs>
4
- <linearGradient id="gradient-2" gradientUnits="userSpaceOnUse" x1="342.802" y1="-83.23" x2="342.802" y2="816.77" gradientTransform="matrix(0.647119, 0, 0, 0.647119, 151.939697, 60.51112)" spreadMethod="pad">
5
- <stop offset="0" style="stop-color: rgb(25, 55, 71);"/>
6
- <stop offset="0.524" style="stop-color: rgb(60, 146, 158);"/>
7
- <stop offset="1" style="stop-color: rgb(213, 213, 212);"/>
8
- </linearGradient>
9
- </defs>
10
- <rect width="1600" height="900" y="-131.006" x="-435" style="fill: url(#gradient-2); fill-rule: evenodd;"/>
11
- <path d="M 83.75 93.994 L 646.25 93.994 C 656.605 93.994 665 102.389 665 112.744 L 665 525.244 C 665 535.599 656.605 543.994 646.25 543.994 L 83.75 543.994 C 73.395 543.994 65 535.599 65 525.244 L 65 112.744 C 65 102.389 73.395 93.994 83.75 93.994 Z M 624.875 512.119 C 629.017 512.119 632.375 508.762 632.375 504.619 L 632.375 133.369 C 632.375 129.227 629.017 125.869 624.875 125.869 L 266.985 125.869 L 266.985 512.119 Z" style="fill: rgb(255, 255, 255);"/>
12
- </svg>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <svg viewBox="-435 -131.00625610351562 1600 900" width="1600" height="900" xmlns="http://www.w3.org/2000/svg">
3
- <defs>
4
- <linearGradient id="gradient-2" gradientUnits="userSpaceOnUse" x1="342.802" y1="-83.23" x2="342.802" y2="816.77" gradientTransform="matrix(0.647119, 0, 0, 0.647119, 151.939697, 60.51112)" spreadMethod="pad">
5
- <stop offset="0" style="stop-color: rgb(25, 55, 71);"/>
6
- <stop offset="0.524" style="stop-color: rgb(60, 146, 158);"/>
7
- <stop offset="1" style="stop-color: rgb(213, 213, 212);"/>
8
- </linearGradient>
9
- </defs>
10
- <rect width="1600" height="900" y="-131.006" x="-435" style="fill: url(#gradient-2); fill-rule: evenodd;"/>
11
- <path d="M 83.75 93.994 L 646.25 93.994 C 656.605 93.994 665 102.389 665 112.744 L 665 525.244 C 665 535.599 656.605 543.994 646.25 543.994 L 83.75 543.994 C 73.395 543.994 65 535.599 65 525.244 L 65 112.744 C 65 102.389 73.395 93.994 83.75 93.994 Z M 96.125 133.369 L 96.125 504.619 C 96.125 508.761 99.483 512.119 103.625 512.119 L 624.875 512.119 C 629.017 512.119 632.375 508.761 632.375 504.619 L 632.375 133.369 C 632.375 129.227 629.017 125.869 624.875 125.869 L 103.625 125.869 C 99.483 125.869 96.125 129.227 96.125 133.369 Z" style="fill: rgb(255, 255, 255);"/>
12
- <g transform="matrix(28.671513, 0, 0, 28.671513, 3565.343018, -3387.745605)">
13
- <path d="M -104.623 123.283 C -104.622 123.284 -104.622 123.284 -104.621 123.285 L -104.621 135.281 C -104.622 135.282 -104.622 135.282 -104.623 135.283 L -118.619 135.283 C -118.62 135.282 -118.62 135.282 -118.621 135.281 L -118.621 123.285 C -118.62 123.284 -118.62 123.284 -118.619 123.283 L -104.623 123.283 Z M -104.621 122.283 L -118.621 122.283 C -119.171 122.283 -119.621 122.733 -119.621 123.283 L -119.621 135.283 C -119.621 135.833 -119.171 136.283 -118.621 136.283 L -104.621 136.283 C -104.071 136.283 -103.621 135.833 -103.621 135.283 L -103.621 123.283 C -103.621 122.733 -104.071 122.283 -104.621 122.283 L -104.621 122.283 Z" style="fill: rgb(255, 255, 255); visibility: hidden;"/>
14
- <path d="M -106.104 126.215 C -106.104 127.043 -106.776 127.715 -107.604 127.715 C -108.432 127.715 -109.104 127.043 -109.104 126.215 C -109.104 125.387 -108.432 124.715 -107.604 124.715 C -106.776 124.715 -106.104 125.387 -106.104 126.215 Z" style="fill: rgb(255, 255, 255);"/>
15
- <path d="M -103.907 134.283 L -119.162 134.283 L -119.162 132.283 L -114.713 126.283 L -109.628 131.283 L -108.357 131.283 L -103.907 128.283 Z" style="fill: rgb(255, 255, 255);"/>
16
- </g>
17
- </svg>
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <svg viewBox="-435 -131.00625610351562 1600 900" width="1600" height="900" xmlns="http://www.w3.org/2000/svg">
3
- <defs>
4
- <linearGradient id="gradient-2" gradientUnits="userSpaceOnUse" x1="342.802" y1="-83.23" x2="342.802" y2="816.77" gradientTransform="matrix(0.647119, 0, 0, 0.647119, 151.939697, 60.51112)" spreadMethod="pad">
5
- <stop offset="0" style="stop-color: rgb(25, 55, 71);"/>
6
- <stop offset="0.524" style="stop-color: rgb(60, 146, 158);"/>
7
- <stop offset="1" style="stop-color: rgb(213, 213, 212);"/>
8
- </linearGradient>
9
- </defs>
10
- <rect width="1600" height="900" y="-131.006" x="-435" style="fill: url(#gradient-2); fill-rule: evenodd;"/>
11
- <path d="M 83.75 93.994 L 646.25 93.994 C 656.605 93.994 665 102.389 665 112.744 L 665 525.244 C 665 535.599 656.605 543.994 646.25 543.994 L 83.75 543.994 C 73.395 543.994 65 535.599 65 525.244 L 65 112.744 C 65 102.389 73.395 93.994 83.75 93.994 Z M 96.125 133.369 L 96.125 504.619 C 96.125 508.761 99.483 512.119 103.625 512.119 L 624.875 512.119 C 629.017 512.119 632.375 508.761 632.375 504.619 L 632.375 133.369 C 632.375 129.227 629.017 125.869 624.875 125.869 L 103.625 125.869 C 99.483 125.869 96.125 129.227 96.125 133.369 Z" style="fill: rgb(255, 255, 255);"/>
12
- <path d="M 465.249 342.341 C 452.487 320.225 460.153 291.89 482.39 279.008 L 458.481 237.591 C 451.651 241.591 443.696 243.887 435.225 243.887 C 409.672 243.887 388.956 223.035 388.956 197.315 L 341.121 197.315 C 341.182 205.255 339.204 213.3 334.945 220.662 C 322.184 242.777 293.788 250.291 271.521 237.484 L 247.61 278.901 C 254.499 282.809 260.463 288.543 264.69 295.891 C 277.437 317.976 269.802 346.251 247.656 359.163 L 271.566 400.58 C 278.38 396.611 286.274 394.344 294.715 394.344 C 320.192 394.344 340.847 415.06 340.984 440.673 L 388.819 440.673 C 388.803 432.81 390.78 424.855 394.994 417.57 C 407.74 395.485 436.061 387.956 458.313 400.687 L 482.223 359.271 C 475.378 355.36 469.462 349.643 465.249 342.341 Z M 365.015 368.274 C 337.805 368.274 315.735 346.22 315.735 318.995 C 315.735 291.768 337.789 269.714 365.015 269.714 C 392.226 269.714 414.295 291.768 414.295 318.995 C 414.295 346.22 392.241 368.274 365.015 368.274 Z" style="fill: rgb(255, 255, 255);"/>
13
- </svg>
@@ -1,47 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v8.3.1 <https://hydejack.com/>
13
- */!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=77)}([,function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||void 0!==t&&t||o}).call(this,n(6))},,function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return"object"===n(t)?null!==t:"function"==typeof t}},function(t,e,n){n(57),t.exports=n(3).Function.bind},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e,n){var r=n(8),o=n(3),i=n(12),s=n(48),a=n(21),u=function t(e,n,u){var c,l,f,h,p=e&t.F,d=e&t.G,y=e&t.P,m=e&t.B,v=d?r:e&t.S?r[n]||(r[n]={}):(r[n]||{}).prototype,b=d?o:o[n]||(o[n]={}),g=b.prototype||(b.prototype={});for(c in d&&(u=n),u)f=((l=!p&&v&&void 0!==v[c])?v:u)[c],h=m&&l?a(f,r):y&&"function"==typeof f?a(Function.call,f):f,v&&s(v,c,f,e&t.U),b[c]!=f&&i(b,c,h),y&&g[c]!=f&&(g[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(20)("wks"),o=n(19),i=n(8).Symbol,s="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},s=2;var a=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,l=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function a(){n&&(n=!1,t()),r&&c()}function u(){i(a)}function c(){var t=Date.now();if(n){if(t-o<s)return;r=!0}else n=!0,r=!1,setTimeout(u,e);o=t}return c}(this.refresh.bind(this),a)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;u.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},h=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},p=g(0,0,0,0);function d(t){return parseFloat(t)||0}function y(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+d(t["border-"+n+"-width"])},0)}function m(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=h(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=d(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=d(r.width),u=d(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=y(r,"left","right")+i),Math.round(u+s)!==n&&(u-=y(r,"top","bottom")+s)),!function(t){return t===h(t).document.documentElement}(t)){var c=Math.round(a+i)-e,l=Math.round(u+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(l)&&(u-=l)}return g(o.left,o.top,a,u)}var v="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"==typeof t.getBBox};function b(t){return r?v(t)?function(t){var e=t.getBBox();return g(0,0,e.width,e.height)}(t):m(t):p}function g(t,e,n,r){return{x:t,y:e,width:n,height:r}}var w=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=b(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),_=function(){return function(t,e){var n,r,o,i,s,a,u,c=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(a.prototype),f(u,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),u);f(this,{target:t,contentRect:c})}}(),E=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new w(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new _(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,x=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new E(e,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){x.prototype[t]=function(){var e;return(e=S.get(this))[t].apply(e,arguments)}});var O=void 0!==o.ResizeObserver?o.ResizeObserver:x;e.a=O}).call(this,n(6))},function(t,e,n){n(41),t.exports=n(3).Array.forEach},function(t,e,n){var r=n(42),o=n(47);t.exports=n(13)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r;t.exports=((r=document.createElement("div")).setAttribute("data-a-b","c"),Boolean(r.dataset&&"c"===r.dataset.aB)?function(t){return t.dataset}:function(t){var e={},n=t.attributes;function r(){return this.value}function o(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var i=0,s=n.length;i<s;i++){var a=n[i];if(a){var u=a.name;if(0===u.indexOf("data-")){var c=u.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),l=a.value;Object.defineProperty(e,c,{enumerable:!0,get:r.bind({value:l||""}),set:o.bind(t,u)})}}}return e})},,function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(3),o=n(8),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(51)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(22);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(21),o=n(24),i=n(52),s=n(25),a=n(53);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||a;return function(e,a,d){for(var y,m,v=i(e),b=o(v),g=r(a,d,3),w=s(b.length),_=0,E=n?p(e,w):u?p(e,0):void 0;w>_;_++)if((h||_ in b)&&(m=g(y=b[_],_,v),t))if(n)E[_]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return _;case 2:E.push(y)}else if(l)return!1;return f?-1:c||l?l:E}}},function(t,e,n){var r=n(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(26),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(9)("unscopables"),o=Array.prototype;null==o[r]&&n(12)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,n){var r=n(28),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var s=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var u=s[a].channels,c=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:u}),Object.defineProperty(s[a],"labels",{value:c})}s.rgb.hsl=function(t){var e,n,r=t[0]/255,o=t[1]/255,i=t[2]/255,s=Math.min(r,o,i),a=Math.max(r,o,i),u=a-s;return a===s?e=0:r===a?e=(o-i)/u:o===a?e=2+(i-r)/u:i===a&&(e=4+(r-o)/u),(e=Math.min(60*e,360))<0&&(e+=360),n=(s+a)/2,[e,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},s.rgb.hsv=function(t){var e,n,r,o,i,s=t[0]/255,a=t[1]/255,u=t[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),f=function(t){return(c-t)/6/l+.5};return 0===l?o=i=0:(i=l/c,e=f(s),n=f(a),r=f(u),s===c?o=r-n:a===c?o=1/3+e-r:u===c&&(o=2/3+n-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},s.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[s.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},s.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,o=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-o)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},s.rgb.keyword=function(t){var e=o[t];if(e)return e;var n,i,s,a=1/0;for(var u in r)if(r.hasOwnProperty(u)){var c=r[u],l=(i=t,s=c,Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)+Math.pow(i[2]-s[2],2));l<a&&(a=l,n=u)}return n},s.keyword.rgb=function(t){return r[t]},s.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},s.rgb.lab=function(t){var e=s.rgb.xyz(t),n=e[0],r=e[1],o=e[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},s.hsl.rgb=function(t){var e,n,r,o,i,s=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return[i=255*u,i,i];e=2*u-(n=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,o[c]=255*i;return o},s.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[e,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},s.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),s=255*r*(1-n),a=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},s.hsv.hsl=function(t){var e,n,r,o=t[0],i=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return r=(2-i)*s,n=i*a,[o,100*(n=(n/=(e=(2-i)*a)<=1?e:2-e)||0),100*(r/=2)]},s.hwb.rgb=function(t){var e,n,r,o,i,s,a,u=t[0]/360,c=t[1]/100,l=t[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),r=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(r=1-r),o=c+r*((n=1-l)-c),e){default:case 6:case 0:i=n,s=o,a=c;break;case 1:i=o,s=n,a=c;break;case 2:i=c,s=n,a=o;break;case 3:i=c,s=o,a=n;break;case 4:i=o,s=c,a=n;break;case 5:i=n,s=c,a=o}return[255*i,255*s,255*a]},s.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},s.xyz.rgb=function(t){var e,n,r,o=t[0]/100,i=t[1]/100,s=t[2]/100;return n=-.9689*o+1.8758*i+.0415*s,r=.0557*o+-.204*i+1.057*s,e=(e=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(t){var e,n,r,o=t[0];e=t[1]/500+(n=(o+16)/116),r=n-t[2]/200;var i=Math.pow(n,3),s=Math.pow(e,3),a=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},s.lab.lch=function(t){var e,n=t[0],r=t[1],o=t[2];return(e=360*Math.atan2(o,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+o*o),e]},s.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},s.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],o=1 in arguments?arguments[1]:s.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},s.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},s.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,o=t[2]/255,i=Math.max(Math.max(n,r),o),s=Math.min(Math.min(n,r),o),a=i-s;return e=a<=0?0:i===n?(r-o)/a%6:i===r?2+(o-n)/a:4+(n-r)/a+4,e/=6,[360*(e%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,o=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(o=(n-.5*r)/(1-r)),[t[0],100*r,100*o]},s.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,o=0;return r<1&&(o=(n-r)/(1-r)),[t[0],100*r,100*o]},s.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],s=e%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},s.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},s.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},s.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},s.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,o=0;return r<1&&(o=(n-r)/(1-r)),[t[0],100*r,100*o]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=s.gray.hsv=function(t){return[0,0,t[0]]},s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){"use strict";function n(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n,o=t.HTMLElement||t.Element,i=468,s={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:o.prototype.scroll||c,scrollIntoView:o.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,u=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?y.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):s.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?s.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):y.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;y.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==r(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},o.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(t){var n;do{n=(t=t.parentNode)===e.body}while(!1===n&&!1===p(t));return n=null,t}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==e.body?(y.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else s.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!==r(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===r(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function f(t,e){return"Y"===e?t.clientHeight+u<t.scrollHeight:"X"===e?t.clientWidth+u<t.scrollWidth:void 0}function h(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function p(t){var e=f(t,"Y")&&h(t,"Y"),n=f(t,"X")&&h(t,"X");return e||n}function d(e){var n,r,o,s,u=(a()-e.startTime)/i;s=u=u>1?1:u,n=.5*(1-Math.cos(Math.PI*s)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(d.bind(t,e))}function y(n,r,o){var i,u,l,f,h=a();n===e.body?(i=t,u=t.scrollX||t.pageXOffset,l=t.scrollY||t.pageYOffset,f=s.scroll):(i=n,u=n.scrollLeft,l=n.scrollTop,f=c),d({scrollable:i,method:f,startTime:h,startX:u,startY:l,x:r,y:o})}}"object"===r(e)&&void 0!==t?t.exports={polyfill:n}:n()}()},function(t,e,n){"use strict";var r=n(67),o=n(70),i=[].slice,s=["keyword","gray","hex"],a={};Object.keys(o).forEach(function(t){a[i.call(o[t].labels).sort().join("")]=t});var u={};function c(t,e){if(!(this instanceof c))return new c(t,e);if(e&&e in s&&(e=null),e&&!(e in o))throw new Error("Unknown model: "+e);var n,l;if(void 0===t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof c)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var f=r.get(t);if(null===f)throw new Error("Unable to parse color from string: "+t);this.model=f.model,l=o[this.model].channels,this.color=f.value.slice(0,l),this.valpha="number"==typeof f.value[l]?f.value[l]:1}else if(t.length){this.model=e||"rgb",l=o[this.model].channels;var p=i.call(t,0,l);this.color=h(p,l),this.valpha="number"==typeof t[l]?t[l]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var d=Object.keys(t);"alpha"in t&&(d.splice(d.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var y=d.sort().join("");if(!(y in a))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=a[y];var m=o[this.model].labels,v=[];for(n=0;n<m.length;n++)v.push(t[m[n]]);this.color=h(v)}if(u[this.model])for(l=o[this.model].channels,n=0;n<l;n++){var b=u[this.model][n];b&&(this.color[n]=b(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function l(t,e,n){return(t=Array.isArray(t)?t:[t]).forEach(function(t){(u[t]||(u[t]=[]))[e]=n}),t=t[0],function(r){var o;return arguments.length?(n&&(r=n(r)),(o=this[t]()).color[e]=r,o):(o=this[t]().color[e],n&&(o=n(o)),o)}}function f(t){return function(e){return Math.max(0,Math.min(t,e))}}function h(t,e){for(var n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}c.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in r.to?this:this.rgb(),n=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return r.to[e.model](n)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:e.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=o[this.model].channels,n=o[this.model].labels,r=0;r<e;r++)t[n[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new c(this.color.map(function(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new c(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:l("rgb",0,f(255)),green:l("rgb",1,f(255)),blue:l("rgb",2,f(255)),hue:l(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:l("hsl",1,f(100)),lightness:l("hsl",2,f(100)),saturationv:l("hsv",1,f(100)),value:l("hsv",2,f(100)),chroma:l("hcg",1,f(100)),gray:l("hcg",2,f(100)),white:l("hwb",1,f(100)),wblack:l("hwb",2,f(100)),cyan:l("cmyk",0,f(100)),magenta:l("cmyk",1,f(100)),yellow:l("cmyk",2,f(100)),black:l("cmyk",3,f(100)),x:l("xyz",0,f(100)),y:l("xyz",1,f(100)),z:l("xyz",2,f(100)),l:l("lab",0,f(100)),a:l("lab",1),b:l("lab",2),keyword:function(t){return arguments.length?new c(t):o[this.model].keyword(this.color)},hex:function(t){return arguments.length?new c(t):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return c.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n=(n+t)%360)<0?360+n:n,e.color[0]=n,e},mix:function(t,e){var n=t.rgb(),r=this.rgb(),o=void 0===e?.5:e,i=2*o-1,s=n.alpha()-r.alpha(),a=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,u=1-a;return c.rgb(a*n.red()+u*r.red(),a*n.green()+u*r.green(),a*n.blue()+u*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach(function(t){if(-1===s.indexOf(t)){var e=o[t].channels;c.prototype[t]=function(){if(this.model===t)return new c(this);if(arguments.length)return new c(arguments,t);var n,r="number"==typeof arguments[e]?e:this.valpha;return new c((n=o[this.model][t].raw(this.color),Array.isArray(n)?n:[n]).concat(r),t)},c[t]=function(n){return"number"==typeof n&&(n=h(i.call(arguments),e)),new c(n,t)}}}),t.exports=c},function(t,e,n){(function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
14
- /**
15
- @license @nocompile
16
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
17
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
18
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
19
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
20
- Code distributed by Google as part of the polymer project is also
21
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
22
- */
23
- /**
24
- @license @nocompile
25
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
26
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
27
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
28
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
29
- Code distributed by Google as part of the polymer project is also
30
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
31
- */
32
- (function(){"use strict";var r,o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},i="undefined"!=typeof window&&window===this?this:void 0!==t&&null!=t?t:this;function s(){s=function(){},i.Symbol||(i.Symbol=c)}var a,u,c=(a=0,function(t){return"jscomp_symbol_"+(t||"")+a++});function l(){s();var t=i.Symbol.iterator;t||(t=i.Symbol.iterator=i.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&o(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return f(this)}}),l=function(){}}function f(t){var e=0;return function(t){return l(),(t={next:t})[i.Symbol.iterator]=function(){return this},t}(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function h(t){l();var e=t[Symbol.iterator];return e?e.call(t):f(t)}if("function"==typeof Object.setPrototypeOf)u=Object.setPrototypeOf;else{var p;t:{var d={};try{d.__proto__={Na:!0},p=d.Na;break t}catch(a){}p=!1}u=p?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var y=u;function m(){this.f=!1,this.b=null,this.fa=void 0,this.a=1,this.G=0,this.c=null}function v(t){if(t.f)throw new TypeError("Generator is already running");t.f=!0}function b(t,e){t.c={Qa:e,Ua:!0},t.a=t.G}function g(t,e){return t.a=3,{value:e}}function w(t){this.a=new m,this.b=t}function _(t,e,n,r){try{var o=e.call(t.a.b,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.a.f=!1,o;var i=o.value}catch(e){return t.a.b=null,b(t.a,e),E(t)}return t.a.b=null,r.call(t.a,i),E(t)}function E(t){for(;t.a.a;)try{var e=t.b(t.a);if(e)return t.a.f=!1,{value:e.value,done:!1}}catch(e){t.a.fa=void 0,b(t.a,e)}if(t.a.f=!1,t.a.c){if(e=t.a.c,t.a.c=null,e.Ua)throw e.Qa;return{value:e.return,done:!0}}return{value:void 0,done:!0}}function S(t){this.next=function(e){return v(t.a),t.a.b?e=_(t,t.a.b.next,e,t.a.m):(t.a.m(e),e=E(t)),e},this.throw=function(e){return v(t.a),t.a.b?e=_(t,t.a.b.throw,e,t.a.m):(b(t.a,e),e=E(t)),e},this.return=function(e){return function(t,e){v(t.a);var n=t.a.b;return n?_(t,"return"in n?n.return:function(t){return{value:t,done:!0}},e,t.a.return):(t.a.return(e),E(t))}(t,e)},l(),this[Symbol.iterator]=function(){return this}}function x(t,e){return e=new S(new w(e)),y&&y(e,t.prototype),e}m.prototype.m=function(t){this.fa=t},m.prototype.return=function(t){this.c={return:t},this.a=this.G},function(){if(!function(){var t=document.createEvent("Event");return t.initEvent("foo",!0,!0),t.preventDefault(),t.defaultPrevented}()){var t=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(t.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var e=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||e&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||e&&"function"!=typeof window.Event){var n=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},n)for(var r in n)window.Event[r]=n[r];window.Event.prototype=n.prototype}if(!window.MouseEvent||e&&"function"!=typeof window.MouseEvent){if(e=window.MouseEvent,window.MouseEvent=function(t,e){e=e||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!!e.bubbles,!!e.cancelable,e.view||window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),n},e)for(r in e)window.MouseEvent[r]=e[r];window.MouseEvent.prototype=e.prototype}Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t,e){for(var n,r=[].slice.call(arguments,1),o=0;o<r.length;o++)if(n=r[o])for(var i=t,s=n,a=Object.getOwnPropertyNames(s),u=0;u<a.length;u++)i[n=a[u]]=s[n];return t})}(window.WebComponents),function(){function t(){}function e(t,e){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return y.call(t,e);case Node.DOCUMENT_FRAGMENT_NODE:return m.call(t,e);default:return d.call(t,e)}}var n="undefined"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),o=!1;/Trident/.test(navigator.userAgent)&&function(){function t(t,e){if(t instanceof DocumentFragment)for(var r;r=t.firstChild;)n.call(this,r,e);else n.call(this,t,e);return t}o=!0;var e=Node.prototype.cloneNode;Node.prototype.cloneNode=function(t){return t=e.call(this,t),this instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var n=Node.prototype.insertBefore;Node.prototype.insertBefore=t;var r=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return e instanceof DocumentFragment?t.call(this,e,null):r.call(this,e),e};var i=Node.prototype.removeChild,s=Node.prototype.replaceChild;Node.prototype.replaceChild=function(e,n){return e instanceof DocumentFragment?(t.call(this,e,n),i.call(this,n)):s.call(this,e,n),n},Document.prototype.createDocumentFragment=function(){var t=this.createElement("df");return t.__proto__=DocumentFragment.prototype,t};var a=Document.prototype.importNode;Document.prototype.importNode=function(t,e){return e=a.call(this,t,e||!1),t instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e}}();var i=Node.prototype.cloneNode,s=Document.prototype.createElement,a=Document.prototype.importNode,u=Node.prototype.removeChild,c=Node.prototype.appendChild,l=Node.prototype.replaceChild,f=DOMParser.prototype.parseFromString,h=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},p=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},d=Element.prototype.querySelectorAll,y=Document.prototype.querySelectorAll,m=DocumentFragment.prototype.querySelectorAll,v=function(){if(!n){var t=document.createElement("template"),e=document.createElement("template");return e.content.appendChild(document.createElement("div")),t.content.appendChild(e),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||r}}();if(n){var b=document.implementation.createHTMLDocument("template"),g=!0,w=document.createElement("style");w.textContent="template{display:none;}";var _=document.head;_.insertBefore(w,_.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var E=!document.createElement("div").hasOwnProperty("innerHTML");t.R=function(e){if(!e.content&&e.namespaceURI===document.documentElement.namespaceURI){e.content=b.createDocumentFragment();for(var n;n=e.firstChild;)c.call(e.content,n);if(E)e.__proto__=t.prototype;else if(e.cloneNode=function(e){return t.b(this,e)},g)try{x(e),O(e)}catch(t){g=!1}t.a(e.content)}};var S={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},x=function(e){Object.defineProperty(e,"innerHTML",{get:function(){return A(this)},set:function(e){var n=S[(/<([a-z][^\/\0>\x20\t\r\n\f]+)/i.exec(e)||["",""])[1].toLowerCase()];if(n)for(var r=0;r<n.length;r++)e="<"+n[r]+">"+e+"</"+n[r]+">";for(b.body.innerHTML=e,t.a(b);this.content.firstChild;)u.call(this.content,this.content.firstChild);if(e=b.body,n)for(r=0;r<n.length;r++)e=e.lastChild;for(;e.firstChild;)c.call(this.content,e.firstChild)},configurable:!0})},O=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(b.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();b.body.firstChild;)c.call(t,b.body.firstChild);l.call(this.parentNode,t,this)},configurable:!0})};x(t.prototype),O(t.prototype),t.a=function(n){for(var r,o=0,i=(n=e(n,"template")).length;o<i&&(r=n[o]);o++)t.R(r)},document.addEventListener("DOMContentLoaded",function(){t.a(document)}),Document.prototype.createElement=function(){var e=s.apply(this,arguments);return"template"===e.localName&&t.R(e),e},DOMParser.prototype.parseFromString=function(){var e=f.apply(this,arguments);return t.a(e),e},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return A(this)},set:function(e){h.set.call(this,e),t.a(this)},configurable:!0,enumerable:!0});var T=/[&\u00A0"]/g,C=/[&\u00A0<>]/g,N=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}},k=(w=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),j=w("style script xmp iframe noembed noframes plaintext noscript".split(" ")),A=function t(e,n){"template"===e.localName&&(e=e.content);for(var r,o="",i=n?n(e):p.get.call(e),s=0,a=i.length;s<a&&(r=i[s]);s++){t:{var u=r,c=e,l=n;switch(u.nodeType){case Node.ELEMENT_NODE:for(var f=u.localName,h="<"+f,d=u.attributes,y=0;c=d[y];y++)h+=" "+c.name+'="'+c.value.replace(T,N)+'"';h+=">",u=k[f]?h:h+t(u,l)+"</"+f+">";break t;case Node.TEXT_NODE:u=u.data,u=c&&j[c.localName]?u:u.replace(C,N);break t;case Node.COMMENT_NODE:u="\x3c!--"+u.data+"--\x3e";break t;default:throw window.console.error(u),Error("not implemented")}}o+=u}return o}}if(n||v){t.b=function(t,e){var n=i.call(t,!1);return this.R&&this.R(n),e&&(c.call(n.content,i.call(t.content,!0)),M(n.content,t.content)),n};var M=function(n,r){if(r.querySelectorAll&&0!==(r=e(r,"template")).length)for(var o,i,s=0,a=(n=e(n,"template")).length;s<a;s++)i=r[s],o=n[s],t&&t.R&&t.R(i),l.call(o.parentNode,P.call(i,!0),o)},P=Node.prototype.cloneNode=function(e){if(!o&&r&&this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var n=R.call(this.ownerDocument,this,!0)}else n=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?t.b(this,e):i.call(this,e);return e&&M(n,this),n},R=Document.prototype.importNode=function(n,r){if(r=r||!1,"template"===n.localName)return t.b(n,r);var o=a.call(this,n,r);if(r){M(o,n),n=e(o,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var i,u=0;u<n.length;u++){i=n[u],(r=s.call(document,"script")).textContent=i.textContent;for(var c,f=i.attributes,h=0;h<f.length;h++)c=f[h],r.setAttribute(c.name,c.value);l.call(i.parentNode,r,i)}}return o}}n&&(window.HTMLTemplateElement=t)}();var O=setTimeout;function T(){}function C(t){if(!(this instanceof C))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.J=0,this.wa=!1,this.A=void 0,this.U=[],P(t,this)}function N(t,e){for(;3===t.J;)t=t.A;0===t.J?t.U.push(e):(t.wa=!0,R(function(){var n=1===t.J?e.Wa:e.Xa;if(null===n)(1===t.J?k:j)(e.ra,t.A);else{try{var r=n(t.A)}catch(t){return void j(e.ra,t)}k(e.ra,r)}}))}function k(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===n(e)||"function"==typeof e)){var r=e.then;if(e instanceof C)return t.J=3,t.A=e,void A(t);if("function"==typeof r)return void P(function(t,e){return function(){t.apply(e,arguments)}}(r,e),t)}t.J=1,t.A=e,A(t)}catch(e){j(t,e)}}function j(t,e){t.J=2,t.A=e,A(t)}function A(t){2===t.J&&0===t.U.length&&R(function(){t.wa||"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t.A)});for(var e=0,n=t.U.length;e<n;e++)N(t,t.U[e]);t.U=null}function M(t,e,n){this.Wa="function"==typeof t?t:null,this.Xa="function"==typeof e?e:null,this.ra=n}function P(t,e){var n=!1;try{t(function(t){n||(n=!0,k(e,t))},function(t){n||(n=!0,j(e,t))})}catch(t){n||(n=!0,j(e,t))}}C.prototype.catch=function(t){return this.then(null,t)},C.prototype.then=function(t,e){var n=new this.constructor(T);return N(this,new M(t,e,n)),n},C.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})};var R="function"==typeof e&&function(t){e(t)}||function(t){O(t,0)};if(!window.Promise){window.Promise=C,C.prototype.then=C.prototype.then,C.all=function(t){return new C(function(e,r){function o(t,a){try{if(a&&("object"===n(a)||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,function(e){o(t,e)},r)}i[t]=a,0==--s&&e(i)}catch(t){r(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);for(var s=i.length,a=0;a<i.length;a++)o(a,i[a])})},C.race=function(t){return new C(function(e,n){for(var r=0,o=t.length;r<o;r++)t[r].then(e,n)})},C.resolve=function(t){return t&&"object"===n(t)&&t.constructor===C?t:new C(function(e){e(t)})},C.reject=function(t){return new C(function(e,n){n(t)})};var L=document.createTextNode(""),I=[];new MutationObserver(function(){for(var t=I.length,e=0;e<t;e++)I[e]();I.splice(0,t)}).observe(L,{characterData:!0}),R=function(t){I.push(t),L.textContent=0<L.textContent.length?"":"a"}}!function(e,r){if(!(r in e)){var o=(void 0===t?"undefined":n(t))===n(o)?window:t,i=0,s=""+Math.random(),a="__symbol@@"+s,u=e.getOwnPropertyNames,c=e.getOwnPropertyDescriptor,l=e.create,f=e.keys,h=e.freeze||e,p=e.defineProperty,d=e.defineProperties,y=c(e,"getOwnPropertyNames"),m=e.prototype,v=m.hasOwnProperty,b=m.propertyIsEnumerable,g=m.toString,w=function(t,e,n){v.call(t,a)||p(t,a,{enumerable:!1,configurable:!1,writable:!1,value:{}}),t[a]["@@"+e]=n},_=function(){},E=function(t){return t!=a&&!v.call(C,t)},S=function(t){return t!=a&&v.call(C,t)},x=function(t){var e=""+t;return S(e)?v.call(this,e)&&this[a]["@@"+e]:b.call(this,t)},O=function(t){return p(m,t,{enumerable:!1,configurable:!0,get:_,set:function(e){M(this,t,{enumerable:!1,configurable:!0,writable:!0,value:e}),w(this,t,!0)}}),h(C[t]=p(e(t),"constructor",N))},T=function(t){if(this&&this!==o)throw new TypeError("Symbol is not a constructor");return O("__symbol:".concat(t||"",s,++i))},C=l(null),N={value:T},k=function(t){return C[t]},j=function(t,e,n){var r=""+e;if(S(r)){if(e=M,n.enumerable){var o=l(n);o.enumerable=!1}else o=n;e(t,r,o),w(t,r,!!n.enumerable)}else p(t,e,n);return t},A=function(t){return u(t).filter(S).map(k)};y.value=j,p(e,"defineProperty",y),y.value=A,p(e,r,y),y.value=function(t){return u(t).filter(E)},p(e,"getOwnPropertyNames",y),y.value=function(t,e){var n=A(e);return n.length?f(e).concat(n).forEach(function(n){x.call(e,n)&&j(t,n,e[n])}):d(t,e),t},p(e,"defineProperties",y),y.value=x,p(m,"propertyIsEnumerable",y),y.value=T,p(o,"Symbol",y),y.value=function(t){return(t="__symbol:".concat("__symbol:",t,s))in m?C[t]:O(t)},p(T,"for",y),y.value=function(t){if(E(t))throw new TypeError(t+" is not a symbol");return v.call(C,t)?t.slice(20,-s.length):void 0},p(T,"keyFor",y),y.value=function(t,e){var n=c(t,e);return n&&S(e)&&(n.enumerable=x.call(t,e)),n},p(e,"getOwnPropertyDescriptor",y),y.value=function(t,e){return 1===arguments.length?l(t):function(t,e){var n=l(t);return u(e).forEach(function(t){x.call(e,t)&&j(n,t,e[t])}),n}(t,e)},p(e,"create",y),y.value=function(){var t=g.call(this);return"[object String]"===t&&S(this)?"[object Symbol]":t},p(m,"toString",y);try{var M=l(p({},"__symbol:",{get:function(){return p(this,"__symbol:",{value:!1})["__symbol:"]}}))["__symbol:"]||p}catch(t){M=function(t,e,n){var r=c(m,e);delete m[e],p(t,e,n),p(m,e,r)}}}}(Object,"getOwnPropertySymbols"),function(t){var e,n=t.defineProperty,r=t.prototype,o=r.toString;"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach(function(i){if(!(i in Symbol))switch(n(Symbol,i,{value:Symbol(i)}),i){case"toStringTag":(e=t.getOwnPropertyDescriptor(r,"toString")).value=function(){var t=o.call(this),e=this[Symbol.toStringTag];return void 0===e?t:"[object "+e+"]"},n(r,"toString",e)}})}(Object,Symbol),function(t,e,n){function r(){return this}e[t]||(e[t]=function(){var e=0,n=this,o={next:function(){var t=n.length<=e;return t?{done:t}:{done:t,value:n[e++]}}};return o[t]=r,o}),n[t]||(n[t]=function(){var e=String.fromCodePoint,n=this,o=0,i=n.length,s={next:function(){var t=i<=o,r=t?"":e(n.codePointAt(o));return o+=r.length,t?{done:t}:{done:t,value:r}}};return s[t]=r,s})}(Symbol.iterator,Array.prototype,String.prototype),Object.keys=function(t){return Object.getOwnPropertyNames(t).filter(function(e){return(e=Object.getOwnPropertyDescriptor(t,e))&&e.enumerable})};var D=window.Symbol.iterator;String.prototype[D]&&String.prototype.codePointAt||(String.prototype[D]=function t(){var e,n=this;return x(t,function(t){if(1==t.a&&(e=0),3!=t.a)return e<n.length?t=g(t,n[e]):(t.a=0,t=void 0),t;e++,t.a=2})}),Set.prototype[D]||(Set.prototype[D]=function t(){var e,n,r=this;return x(t,function(t){if(1==t.a&&(e=[],r.forEach(function(t){e.push(t)}),n=0),3!=t.a)return n<e.length?t=g(t,e[n]):(t.a=0,t=void 0),t;n++,t.a=2})}),Map.prototype[D]||(Map.prototype[D]=function t(){var e,n,r=this;return x(t,function(t){if(1==t.a&&(e=[],r.forEach(function(t,n){e.push([n,t])}),n=0),3!=t.a)return n<e.length?t=g(t,e[n]):(t.a=0,t=void 0),t;n++,t.a=2})}),window.WebComponents=window.WebComponents||{flags:{}};var F=document.querySelector('script[src*="webcomponents-bundle"]'),q=/wc-(.+)/,H={};if(!H.noOpts){if(location.search.slice(1).split("&").forEach(function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(q))&&(H[e[1]]=t[1]||!0)}),F)for(var U=0,z=void 0;z=F.attributes[U];U++)"src"!==z.name&&(H[z.name]=z.value||!0);if(H.log&&H.log.split){var B=H.log.split(",");H.log={},B.forEach(function(t){H.log[t]=!0})}else H.log={}}window.WebComponents.flags=H;var W=H.shadydom;W&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=W);var V=H.register||H.ce;function $(){this.za=this.root=null,this.ea=!1,this.N=this.$=this.oa=this.assignedSlot=this.assignedNodes=this.S=null,this.childNodes=this.nextSibling=this.previousSibling=this.lastChild=this.firstChild=this.parentNode=this.V=void 0,this.Ea=this.ua=!1,this.Z={}}function X(t){return t.ma||(t.ma=new $),t.ma}function G(t){return t&&t.ma}V&&window.customElements&&(window.customElements.forcePolyfill=V),$.prototype.toJSON=function(){return{}};var Y=window.ShadyDOM||{};Y.Sa=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var K=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");Y.K=!!(K&&K.configurable&&K.get),Y.qa=Y.force||!Y.Sa;var J=navigator.userAgent.match("Trident"),Z=navigator.userAgent.match("Edge");function Q(t){return(t=G(t))&&void 0!==t.firstChild}function tt(t){return"ShadyRoot"===t.Ja}function et(t){if(tt(t=t.getRootNode()))return t}void 0===Y.Ba&&(Y.Ba=Y.K&&(J||Z));var nt=Element.prototype,rt=nt.matches||nt.matchesSelector||nt.mozMatchesSelector||nt.msMatchesSelector||nt.oMatchesSelector||nt.webkitMatchesSelector;function ot(t,e){if(t&&e)for(var n=Object.getOwnPropertyNames(e),r=0,o=void 0;r<n.length&&(o=n[r]);r++){var i=o,s=t,a=Object.getOwnPropertyDescriptor(e,i);a&&Object.defineProperty(s,i,a)}}function it(t,e){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r];for(r=0;r<n.length;r++)ot(t,n[r]);return t}var st=document.createTextNode(""),at=0,ut=[];function ct(t){ut.push(t),st.textContent=at++}new MutationObserver(function(){for(;ut.length;)try{ut.shift()()}catch(t){throw st.textContent=at++,t}}).observe(st,{characterData:!0});var lt=!!document.contains;function ft(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function ht(t){for(var e=t.length-1;0<=e;e--){var n=t[e],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(t[r]=n)}return t.item=function(e){return t[e]},t.namedItem=function(e){if("length"!==e&&isNaN(e)&&t[e])return t[e];for(var n=h(t),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==e)return r;return null},t}var pt,dt=[];function yt(t){pt||(pt=!0,ct(mt)),dt.push(t)}function mt(){pt=!1;for(var t=!!dt.length;dt.length;)dt.shift()();return t}function vt(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.ca=new Set}mt.list=dt,vt.prototype.flush=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.ca.forEach(function(e){e(t)})}},vt.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var bt=Element.prototype.insertBefore,gt=Element.prototype.replaceChild,wt=Element.prototype.removeChild,_t=Element.prototype.setAttribute,Et=Element.prototype.removeAttribute,St=Element.prototype.cloneNode,xt=Document.prototype.importNode,Ot=Element.prototype.addEventListener,Tt=Element.prototype.removeEventListener,Ct=Window.prototype.addEventListener,Nt=Window.prototype.removeEventListener,kt=Element.prototype.dispatchEvent,jt=Node.prototype.contains||HTMLElement.prototype.contains,At=Document.prototype.getElementById,Mt=Element.prototype.querySelector,Pt=DocumentFragment.prototype.querySelector,Rt=Document.prototype.querySelector,Lt=Element.prototype.querySelectorAll,It=DocumentFragment.prototype.querySelectorAll,Dt=Document.prototype.querySelectorAll,Ft={};Ft.appendChild=Element.prototype.appendChild,Ft.insertBefore=bt,Ft.replaceChild=gt,Ft.removeChild=wt,Ft.setAttribute=_t,Ft.removeAttribute=Et,Ft.cloneNode=St,Ft.importNode=xt,Ft.addEventListener=Ot,Ft.removeEventListener=Tt,Ft.gb=Ct,Ft.hb=Nt,Ft.dispatchEvent=kt,Ft.contains=jt,Ft.getElementById=At,Ft.pb=Mt,Ft.tb=Pt,Ft.nb=Rt,Ft.querySelector=function(t){switch(this.nodeType){case Node.ELEMENT_NODE:return Mt.call(this,t);case Node.DOCUMENT_NODE:return Rt.call(this,t);default:return Pt.call(this,t)}},Ft.qb=Lt,Ft.ub=It,Ft.ob=Dt,Ft.querySelectorAll=function(t){switch(this.nodeType){case Node.ELEMENT_NODE:return Lt.call(this,t);case Node.DOCUMENT_NODE:return Dt.call(this,t);default:return It.call(this,t)}};var qt=/[&\u00A0"]/g,Ht=/[&\u00A0<>]/g;function Ut(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function zt(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var Bt=zt("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Wt=zt("style script xmp iframe noembed noframes plaintext noscript".split(" "));function Vt(t,e){"template"===t.localName&&(t=t.content);for(var n="",r=e?e(t):t.childNodes,o=0,i=r.length,s=void 0;o<i&&(s=r[o]);o++){t:{var a=s,u=t,c=e;switch(a.nodeType){case Node.ELEMENT_NODE:for(var l,f="<"+(u=a.localName),h=a.attributes,p=0;l=h[p];p++)f+=" "+l.name+'="'+l.value.replace(qt,Ut)+'"';f+=">",a=Bt[u]?f:f+Vt(a,c)+"</"+u+">";break t;case Node.TEXT_NODE:a=a.data,a=u&&Wt[u.localName]?a:a.replace(Ht,Ut);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}n+=a}return n}var $t=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Xt=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function Gt(t){var e=[];for($t.currentNode=t,t=$t.firstChild();t;)e.push(t),t=$t.nextSibling();return e}var Yt={parentNode:function(t){return $t.currentNode=t,$t.parentNode()},firstChild:function(t){return $t.currentNode=t,$t.firstChild()},lastChild:function(t){return $t.currentNode=t,$t.lastChild()},previousSibling:function(t){return $t.currentNode=t,$t.previousSibling()},nextSibling:function(t){return $t.currentNode=t,$t.nextSibling()}};Yt.childNodes=Gt,Yt.parentElement=function(t){return Xt.currentNode=t,Xt.parentNode()},Yt.firstElementChild=function(t){return Xt.currentNode=t,Xt.firstChild()},Yt.lastElementChild=function(t){return Xt.currentNode=t,Xt.lastChild()},Yt.previousElementSibling=function(t){return Xt.currentNode=t,Xt.previousSibling()},Yt.nextElementSibling=function(t){return Xt.currentNode=t,Xt.nextSibling()},Yt.children=function(t){var e=[];for(Xt.currentNode=t,t=Xt.firstChild();t;)e.push(t),t=Xt.nextSibling();return ht(e)},Yt.innerHTML=function(t){return Vt(t,function(t){return Gt(t)})},Yt.textContent=function(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}};var Kt=Y.K,Jt=[Node.prototype,Element.prototype,HTMLElement.prototype];function Zt(t){var e;t:{for(e=0;e<Jt.length;e++){var n=Jt[e];if(n.hasOwnProperty(t)){e=n;break t}}e=void 0}if(!e)throw Error("Could not find descriptor for "+t);return Object.getOwnPropertyDescriptor(e,t)}var Qt=Kt?{parentNode:Zt("parentNode"),firstChild:Zt("firstChild"),lastChild:Zt("lastChild"),previousSibling:Zt("previousSibling"),nextSibling:Zt("nextSibling"),childNodes:Zt("childNodes"),parentElement:Zt("parentElement"),previousElementSibling:Zt("previousElementSibling"),nextElementSibling:Zt("nextElementSibling"),innerHTML:Zt("innerHTML"),textContent:Zt("textContent"),firstElementChild:Zt("firstElementChild"),lastElementChild:Zt("lastElementChild"),children:Zt("children")}:{},te=Kt?{firstElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"children")}:{},ee=Kt?{firstElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(Document.prototype,"children")}:{},ne={ya:Qt,sb:te,mb:ee,parentNode:function(t){return Qt.parentNode.get.call(t)},firstChild:function(t){return Qt.firstChild.get.call(t)},lastChild:function(t){return Qt.lastChild.get.call(t)},previousSibling:function(t){return Qt.previousSibling.get.call(t)},nextSibling:function(t){return Qt.nextSibling.get.call(t)},childNodes:function(t){return Array.prototype.slice.call(Qt.childNodes.get.call(t))},parentElement:function(t){return Qt.parentElement.get.call(t)},previousElementSibling:function(t){return Qt.previousElementSibling.get.call(t)},nextElementSibling:function(t){return Qt.nextElementSibling.get.call(t)},innerHTML:function(t){return Qt.innerHTML.get.call(t)},textContent:function(t){return Qt.textContent.get.call(t)},children:function(t){switch(t.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return te.children.get.call(t);case Node.DOCUMENT_NODE:return ee.children.get.call(t);default:return Qt.children.get.call(t)}},firstElementChild:function(t){switch(t.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return te.firstElementChild.get.call(t);case Node.DOCUMENT_NODE:return ee.firstElementChild.get.call(t);default:return Qt.firstElementChild.get.call(t)}},lastElementChild:function(t){switch(t.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return te.lastElementChild.get.call(t);case Node.DOCUMENT_NODE:return ee.lastElementChild.get.call(t);default:return Qt.lastElementChild.get.call(t)}}},re=Y.Ba?ne:Yt;function oe(t){for(;t.firstChild;)t.removeChild(t.firstChild)}var ie=Y.K,se=document.implementation.createHTMLDocument("inert"),ae=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),ue=ae&&ae.get,ce=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),le={parentElement:{get:function(){var t=G(this);return(t=t&&t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:re.parentElement(this)},configurable:!0},parentNode:{get:function(){var t=G(this);return void 0!==(t=t&&t.parentNode)?t:re.parentNode(this)},configurable:!0},nextSibling:{get:function(){var t=G(this);return void 0!==(t=t&&t.nextSibling)?t:re.nextSibling(this)},configurable:!0},previousSibling:{get:function(){var t=G(this);return void 0!==(t=t&&t.previousSibling)?t:re.previousSibling(this)},configurable:!0},nextElementSibling:{get:function(){var t=G(this);if(t&&void 0!==t.nextSibling){for(t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return re.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){var t=G(this);if(t&&void 0!==t.previousSibling){for(t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return re.previousElementSibling(this)},configurable:!0}},fe={className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0}},he={childNodes:{get:function(){if(Q(this)){var t=G(this);if(!t.childNodes){t.childNodes=[];for(var e=this.firstChild;e;e=e.nextSibling)t.childNodes.push(e)}var n=t.childNodes}else n=re.childNodes(this);return n.item=function(t){return n[t]},n},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=G(this);return void 0!==(t=t&&t.firstChild)?t:re.firstChild(this)},configurable:!0},lastChild:{get:function(){var t=G(this);return void 0!==(t=t&&t.lastChild)?t:re.lastChild(this)},configurable:!0},textContent:{get:function(){if(Q(this)){for(var t,e=[],n=0,r=this.childNodes;t=r[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return re.textContent(this)},set:function(t){switch(null==t&&(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!Q(this)&&ie){var e=this.firstChild;(e!=this.lastChild||e&&e.nodeType!=Node.TEXT_NODE)&&oe(this),ne.ya.textContent.set.call(this,t)}else oe(this),(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){var t=G(this);if(t&&void 0!==t.firstChild){for(t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return re.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){var t=G(this);if(t&&void 0!==t.lastChild){for(t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return re.lastElementChild(this)},configurable:!0},children:{get:function(){return Q(this)?ht(Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE})):re.children(this)},configurable:!0},innerHTML:{get:function(){return Q(this)?Vt("template"===this.localName?this.content:this):re.innerHTML(this)},set:function(t){var e="template"===this.localName?this.content:this;oe(e);var n=this.localName||"div";for(n=this.namespaceURI&&this.namespaceURI!==se.namespaceURI?se.createElementNS(this.namespaceURI,n):se.createElement(n),ie?ne.ya.innerHTML.set.call(n,t):n.innerHTML=t,t="template"===this.localName?n.content:n;t.firstChild;)e.appendChild(t.firstChild)},configurable:!0}},pe={shadowRoot:{get:function(){var t=G(this);return t&&t.za||null},configurable:!0}},de={activeElement:{get:function(){var t=ce&&ce.get?ce.get.call(document):Y.K?void 0:document.activeElement;if(t&&t.nodeType){var e=!!tt(this);if(this===document||e&&this.host!==t&&Ft.contains.call(this.host,t)){for(e=et(t);e&&e!==this;)e=et(t=e.host);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}};function ye(t,e,n){for(var r in e){var o=Object.getOwnPropertyDescriptor(t,r);o&&o.configurable||!o&&n?Object.defineProperty(t,r,e[r]):n&&console.warn("Could not define",r,"on",t)}}function me(t){ye(t,le),ye(t,fe),ye(t,he),ye(t,de)}var ve=Y.K?function(){}:function(t){var e=X(t);e.ua||(e.ua=!0,ye(t,le,!0),ye(t,fe,!0))},be=Y.K?function(){}:function(t){X(t).Ea||(ye(t,he,!0),ye(t,pe,!0))},ge=re.childNodes;function we(t,e,n){ve(t),n=n||null;var r=X(t),o=X(e),i=n?X(n):null;r.previousSibling=n?i.previousSibling:e.lastChild,(i=G(r.previousSibling))&&(i.nextSibling=t),(i=G(r.nextSibling=n))&&(i.previousSibling=t),r.parentNode=e,n?n===o.firstChild&&(o.firstChild=t):(o.lastChild=t,o.firstChild||(o.firstChild=t)),o.childNodes=null}function _e(t){var e=X(t);if(void 0===e.firstChild){e.childNodes=null;var n=ge(t);for(e.firstChild=n[0]||null,e.lastChild=n[n.length-1]||null,be(t),e=0;e<n.length;e++){var r=n[e],o=X(r);o.parentNode=t,o.nextSibling=n[e+1]||null,o.previousSibling=n[e-1]||null,ve(r)}}}var Ee=re.parentNode;function Se(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var r=G(n);if(void 0!==(r=r&&r.parentNode)&&r!==t||void 0===r&&Ee(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;var o=[],i=Me,s=et(t),a=s?s.host.localName:"";if(e.parentNode){var u=Re(e);xe(e.parentNode,e,!(!s&&e.getRootNode()instanceof ShadowRoot)),i=function(t,e){je()&&(Pe(t,u),Me(t,e))}}r=!0;var c=!function t(e,n){var r=je();if(!r)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r=!0;for(var o=0;r&&o<e.childNodes.length;o++)r=r&&t(e.childNodes[o],n);return r}return e.nodeType!==Node.ELEMENT_NODE||r.currentScopeForNode(e)===n}(e,a);return!s||e.__noInsertionPoint&&!c||Le(e,function(t){"slot"===t.localName&&o.push(t),c&&i(t,a)}),o.length&&function(t,e){t.a=t.a||[],t.o=t.o||[],t.w=t.w||{},t.a.push.apply(t.a,e instanceof Array?e:function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(h(e)))}(s,o),("slot"===t.localName||o.length)&&s&&hn(s),Q(t)&&(function(t,e,n){be(e);var r=X(e);if(void 0!==r.firstChild&&(r.childNodes=null),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r=t.childNodes;for(var o=0;o<r.length;o++)we(r[o],e,n);e=void 0!==(t=X(t)).firstChild?null:void 0,t.firstChild=t.lastChild=e,t.childNodes=e}else we(t,e,n)}(e,t,n),s=G(t),Oe(t)?(hn(s.root),r=!1):s.root&&(r=!1)),r?(r=tt(t)?t.host:t,n?(n=function t(e){var n=e;e&&"slot"===e.localName&&(n=(n=(n=G(e))&&n.N)&&n.length?n[0]:t(e.nextSibling));return n}(n),Ft.insertBefore.call(r,e,n)):Ft.appendChild.call(r,e)):e.ownerDocument!==t.ownerDocument&&t.ownerDocument.adoptNode(e),Ce(t,e),e}function xe(t,e,n){if(n=void 0!==n&&n,e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var r=et(e),o=G(t);if(Q(t)&&(function(t,e){var n=X(t);t===(e=X(e)).firstChild&&(e.firstChild=n.nextSibling),t===e.lastChild&&(e.lastChild=n.previousSibling),t=n.previousSibling;var r=n.nextSibling;t&&(X(t).nextSibling=r),r&&(X(r).previousSibling=t),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==e.childNodes&&(e.childNodes=null)}(e,t),Oe(t))){hn(o.root);var i=!0}if(je()&&!n&&r){var s=Re(e);Le(e,function(t){Pe(t,s)})}if(function t(e){var n=G(e);if(n&&void 0!==n.V){n=e.childNodes;for(var r=0,o=n.length,i=void 0;r<o&&(i=n[r]);r++)t(i)}(e=G(e))&&(e.V=void 0)}(e),r){var a=t&&"slot"===t.localName;a&&(i=!0),((n=function(t,e){if(t.o){vn(t);var n,r=t.w;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var s=o[i];if(ft(e,s)){o.splice(i,1);var a=t.o.indexOf(s);if(0<=a&&t.o.splice(a,1),i--,s=G(s),a=s.N)for(var u=0;u<a.length;u++){var c=a[u],l=sn(c);l&&Ft.removeChild.call(l,c)}s.N=[],s.assignedNodes=[],a=!0}}return a}}(r,e))||a)&&hn(r)}return i||(i=tt(t)?t.host:t,(!o.root&&"slot"!==e.localName||i===Ee(e))&&Ft.removeChild.call(i,e)),Ce(t,null,e),e}function Oe(t){return(t=(t=G(t))&&t.root)&&wn(t)}function Te(t,e){if("slot"===e)Oe(t=t.parentNode)&&hn(G(t).root);else if("slot"===t.localName&&"name"===e&&(e=et(t))){if(e.o){vn(e);var n=t.Ha,r=bn(t);if(r!==n){var o=(n=e.w[n]).indexOf(t);0<=o&&n.splice(o,1),(n=e.w[r]||(e.w[r]=[])).push(t),1<n.length&&(e.w[r]=gn(n))}}hn(e)}}function Ce(t,e,n){(t=(t=G(t))&&t.S)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),function(t){t.a||(t.a=!0,ct(function(){t.flush()}))}(t))}function Ne(t,e,n){var r=[];return function t(e,n,r,o){for(var i=0,s=e.length,a=void 0;i<s&&(a=e[i]);i++){var u;if(u=a.nodeType===Node.ELEMENT_NODE){var c=n,l=r,f=o,h=c(u=a);h&&f.push(u),l&&l(h)?u=h:(t(u.childNodes,c,l,f),u=void 0)}if(u)break}}(t.childNodes,e,n,r),r}var ke=null;function je(){return ke||(ke=window.ShadyCSS&&window.ShadyCSS.ScopingShim),ke||null}function Ae(t,e,n){var r=je();r&&"class"===e?r.setElementClass(t,n):(Ft.setAttribute.call(t,e,n),Te(t,e))}function Me(t,e){var n=je();n&&n.scopeNode(t,e)}function Pe(t,e){var n=je();n&&n.unscopeNode(t,e)}function Re(t){if(t.nodeType!==Node.ELEMENT_NODE)return"";var e=je();return e?e.currentScopeForNode(t):""}function Le(t,e){if(t){t.nodeType===Node.ELEMENT_NODE&&e(t);for(var n,r=0;r<t.childNodes.length;r++)(n=t.childNodes[r]).nodeType===Node.ELEMENT_NODE&&Le(n,e)}}var Ie="__eventWrappers"+Date.now(),De=function(){var t=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return t?function(e){return t.get.call(e)}:null}(),Fe={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},qe={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function He(t,e){var n=[],r=t;for(t=t===window?window:t.getRootNode();r;)n.push(r),r=r.assignedSlot?r.assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(e||r!==t)?r.host:r.parentNode;return n[n.length-1]===document&&n.push(window),n}function Ue(t,e){if(!tt)return t;t=He(t,!0);for(var n,r,o=0,i=void 0,s=void 0;o<e.length;o++)if((r=(n=e[o])===window?window:n.getRootNode())!==i&&(s=t.indexOf(r),i=r),!tt(r)||-1<s)return n}var ze={get composed(){return void 0===this.Y&&(De?this.Y="focusin"===this.type||"focusout"===this.type||De(this):!1!==this.isTrusted&&(this.Y=Fe[this.type])),this.Y||!1},composedPath:function(){return this.ta||(this.ta=He(this.__target,this.composed)),this.ta},get target(){return Ue(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.la?(this.va||(this.va=He(this.la,!0)),Ue(this.currentTarget||this.__previousCurrentTarget,this.va)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ka=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ka=this.Da=!0}};function Be(t){function e(e,n){return(e=new t(e,n)).Y=n&&!!n.composed,e}return function(t,e){for(var n in e)t[n]=e[n]}(e,t),e.prototype=t.prototype,e}var We={focus:!0,blur:!0};function Ve(t){return t.__target!==t.target||t.la!==t.relatedTarget}function $e(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var r,o=0;(r=n[o])&&(!Ve(t)||t.target!==t.relatedTarget)&&(r.call(e,t),!t.Da);o++);}function Xe(t){var e,n=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return o},configurable:!0});for(var r=n.length-1;0<=r;r--){var o=n[r];if($e(t,o,"capture"),t.ka)return}for(Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}}),r=0;r<n.length;r++){var i=G(o=n[r]);if(i=i&&i.root,(0===r||i&&i===e)&&($e(t,o,"bubble"),o!==window&&(e=o.getRootNode()),t.ka))break}}function Ge(t,e,n,r,o,i){for(var s=0;s<t.length;s++){var a=t[s],u=a.type,c=a.capture,l=a.once,f=a.passive;if(e===a.node&&n===u&&r===c&&o===l&&i===f)return s}return-1}function Ye(t,e,r){if(e){var o=n(e);if(("function"===o||"object"===o)&&("object"!==o||e.handleEvent&&"function"==typeof e.handleEvent)){var i=this instanceof Window?Ft.gb:Ft.addEventListener;if(qe[t])return i.call(this,t,e,r);if(r&&"object"===n(r))var s=!!r.capture,a=!!r.once,u=!!r.passive;else s=!!r,u=a=!1;var c=r&&r.na||this,l=e[Ie];if(l){if(-1<Ge(l,c,t,s,a,u))return}else e[Ie]=[];l=function(n){if(a&&this.removeEventListener(t,e,r),n.__target||Je(n),c!==this){var i=Object.getOwnPropertyDescriptor(n,"currentTarget");Object.defineProperty(n,"currentTarget",{get:function(){return c},configurable:!0})}if(n.__previousCurrentTarget=n.currentTarget,(!tt(c)||-1!=n.composedPath().indexOf(c))&&(n.composed||-1<n.composedPath().indexOf(c)))if(Ve(n)&&n.target===n.relatedTarget)n.eventPhase===Event.BUBBLING_PHASE&&n.stopImmediatePropagation();else if(n.eventPhase===Event.CAPTURING_PHASE||n.bubbles||n.target===c||c instanceof Window){var s="function"===o?e.call(c,n):e.handleEvent&&e.handleEvent(n);return c!==this&&(i?(Object.defineProperty(n,"currentTarget",i),i=null):delete n.currentTarget),s}},e[Ie].push({node:c,type:t,capture:s,once:a,passive:u,ib:l}),We[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][s?"capture":"bubble"].push(l)):i.call(this,t,l,r)}}}function Ke(t,e,r){if(e){var o=this instanceof Window?Ft.hb:Ft.removeEventListener;if(qe[t])return o.call(this,t,e,r);if(r&&"object"===n(r))var i=!!r.capture,s=!!r.once,a=!!r.passive;else i=!!r,a=s=!1;var u=r&&r.na||this,c=void 0,l=null;try{l=e[Ie]}catch(t){}l&&(-1<(s=Ge(l,u,t,i,s,a))&&(c=l.splice(s,1)[0].ib,l.length||(e[Ie]=void 0))),o.call(this,t,c||e,r),c&&We[t]&&this.__handlers&&this.__handlers[t]&&(-1<(c=(t=this.__handlers[t][i?"capture":"bubble"]).indexOf(c))&&t.splice(c,1))}}function Je(t){if(t.__target=t.target,t.la=t.relatedTarget,Y.K){var e=Object.getPrototypeOf(t);if(!e.hasOwnProperty("__patchProto")){var n=Object.create(e);n.jb=e,ot(n,ze),e.__patchProto=n}t.__proto__=e.__patchProto}else ot(t,ze)}var Ze=Be(window.Event),Qe=Be(window.CustomEvent),tn=Be(window.MouseEvent);function en(t,e){return{index:t,W:[],ba:e}}function nn(t,e,n,r){var o=0,i=0,s=0,a=0,u=Math.min(e-o,r-i);if(0==o&&0==i)t:{for(s=0;s<u;s++)if(t[s]!==n[s])break t;s=u}if(e==t.length&&r==n.length){a=t.length;for(var c=n.length,l=0;l<u-s&&rn(t[--a],n[--c]);)l++;a=l}if(i+=s,r-=a,0==(e-=a)-(o+=s)&&0==r-i)return[];if(o==e){for(e=en(o,0);i<r;)e.W.push(n[i++]);return[e]}if(i==r)return[en(o,e-o)];for(r=r-(s=i)+1,a=e-(u=o)+1,e=Array(r),c=0;c<r;c++)e[c]=Array(a),e[c][0]=c;for(c=0;c<a;c++)e[0][c]=c;for(c=1;c<r;c++)for(l=1;l<a;l++)if(t[u+l-1]===n[s+c-1])e[c][l]=e[c-1][l-1];else{var f=e[c-1][l]+1,h=e[c][l-1]+1;e[c][l]=f<h?f:h}for(u=e.length-1,s=e[0].length-1,r=e[u][s],t=[];0<u||0<s;)0==u?(t.push(2),s--):0==s?(t.push(3),u--):(a=e[u-1][s-1],(f=(c=e[u-1][s])<(l=e[u][s-1])?c<a?c:a:l<a?l:a)==a?(a==r?t.push(0):(t.push(1),r=a),u--,s--):f==c?(t.push(3),u--,r=c):(t.push(2),s--,r=l));for(t.reverse(),e=void 0,u=[],s=0;s<t.length;s++)switch(t[s]){case 0:e&&(u.push(e),e=void 0),o++,i++;break;case 1:e||(e=en(o,0)),e.ba++,o++,e.W.push(n[i]),i++;break;case 2:e||(e=en(o,0)),e.ba++,o++;break;case 3:e||(e=en(o,0)),e.W.push(n[i]),i++}return e&&u.push(e),u}function rn(t,e){return t===e}var on,sn=re.parentNode,an=re.childNodes,un={},cn=Y.deferConnectionCallbacks&&"loading"===document.readyState;function ln(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function fn(t,e,n){if(t!==un)throw new TypeError("Illegal constructor");this.Ja="ShadyRoot",this.host=e,this.c=n&&n.mode,_e(e),(t=X(e)).root=this,t.za="closed"!==this.c?this:null,(t=X(this)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,t.childNodes=[],this.b=this.aa=!1,this.a=this.w=this.o=null,hn(this)}function hn(t){t.aa||(t.aa=!0,yt(function(){return pn(t)}))}function pn(t){for(var e;t;){t.aa&&(e=t);t:{var n=t;if(tt(t=n.host.getRootNode()))for(var r=n.host.childNodes,o=0;o<r.length;o++)if("slot"==(n=r[o]).localName)break t;t=void 0}}e&&e._renderRoot()}function dn(t,e,n){var r=X(e),o=r.$;r.$=null,n||(n=(t=t.w[e.slot||"__catchall"])&&t[0]),n?(X(n).assignedNodes.push(e),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(X(r.assignedSlot).ea=!0)}function yn(t,e,n){for(var r=0,o=void 0;r<n.length&&(o=n[r]);r++)if("slot"==o.localName){var i=G(o).assignedNodes;i&&i.length&&yn(t,e,i)}else e.push(n[r])}function mn(t,e){Ft.dispatchEvent.call(e,new Event("slotchange")),(e=G(e)).assignedSlot&&mn(t,e.assignedSlot)}function vn(t){if(t.a&&t.a.length){for(var e,n=t.a,r=0;r<n.length;r++){var o=n[r];_e(o),_e(o.parentNode);var i=bn(o);t.w[i]?((e=e||{})[i]=!0,t.w[i].push(o)):t.w[i]=[o],t.o.push(o)}if(e)for(var s in e)t.w[s]=gn(t.w[s]);t.a=[]}}function bn(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Ha=e}function gn(t){return t.sort(function(t,e){t=ln(t);for(var n=ln(e),r=0;r<t.length;r++){e=t[r];var o=n[r];if(e!==o)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(o)}})}function wn(t){return vn(t),!(!t.o||!t.o.length)}if(fn.prototype._renderRoot=function(){var t=cn;if(cn=!0,this.aa=!1,this.o){vn(this);for(var e,n=0;n<this.o.length;n++){var r=G(e=this.o[n]),o=r.assignedNodes;if(r.assignedNodes=[],r.N=[],r.oa=o)for(r=0;r<o.length;r++){var i=G(o[r]);i.$=i.assignedSlot,i.assignedSlot===e&&(i.assignedSlot=null)}}for(n=this.host.firstChild;n;n=n.nextSibling)dn(this,n);for(n=0;n<this.o.length;n++){if(!(o=G(e=this.o[n])).assignedNodes.length)for(r=e.firstChild;r;r=r.nextSibling)dn(this,r,e);if((r=(r=G(e.parentNode))&&r.root)&&wn(r)&&r._renderRoot(),yn(this,o.N,o.assignedNodes),r=o.oa){for(i=0;i<r.length;i++)G(r[i]).$=null;o.oa=null,r.length>o.assignedNodes.length&&(o.ea=!0)}o.ea&&(o.ea=!1,mn(this,e))}for(e=this.o,n=[],o=0;o<e.length;o++)(i=G(r=e[o].parentNode))&&i.root||!(0>n.indexOf(r))||n.push(r);for(e=0;e<n.length;e++){o=(i=n[e])===this?this.host:i,r=[],i=i.childNodes;for(var s=0;s<i.length;s++){var a=i[s];if("slot"==a.localName){a=G(a).N;for(var u=0;u<a.length;u++)r.push(a[u])}else r.push(a)}i=an(o),s=nn(r,r.length,i,i.length),u=a=0;for(var c=void 0;a<s.length&&(c=s[a]);a++){for(var l=0,f=void 0;l<c.W.length&&(f=c.W[l]);l++)sn(f)===o&&Ft.removeChild.call(o,f),i.splice(c.index+u,1);u-=c.ba}for(u=0,c=void 0;u<s.length&&(c=s[u]);u++)for(a=i[c.index],l=c.index;l<c.index+c.ba;l++)f=r[l],Ft.insertBefore.call(o,f,a),i.splice(l,0,f)}}if(!this.b)for(e=0,o=(n=this.host.childNodes).length;e<o;e++)i=G(r=n[e]),sn(r)!==this.host||"slot"!==r.localName&&i.assignedSlot||Ft.removeChild.call(this.host,r);this.b=!0,cn=t,on&&on()},window.customElements&&Y.qa){var _n=new Map;on=function(){var t=Array.from(_n);_n.clear();for(var e=(t=h(t)).next();!e.done;e=t.next()){var n=(e=h(e.value)).next().value;e.next().value?n.Fa():n.Ga()}},cn&&document.addEventListener("readystatechange",function(){cn=!1,on()},{once:!0});var En=window.customElements.define;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:function(t,e){var n=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;En.call(window.customElements,t,function(t,e,n){var r=0,o="__isConnected"+r++;return(e||n)&&(t.prototype.connectedCallback=t.prototype.Fa=function(){cn?_n.set(this,!0):this[o]||(this[o]=!0,e&&e.call(this))},t.prototype.disconnectedCallback=t.prototype.Ga=function(){cn?this.isConnected||_n.set(this,!1):this[o]&&(this[o]=!1,n&&n.call(this))}),t}(e,n,r)),e.prototype.connectedCallback=n,e.prototype.disconnectedCallback=r}})}function Sn(t){var e=t.getRootNode();return tt(e)&&pn(e),(t=G(t))&&t.assignedSlot||null}var xn={addEventListener:Ye.bind(window),removeEventListener:Ke.bind(window)},On={addEventListener:Ye,removeEventListener:Ke,appendChild:function(t){return Se(this,t)},insertBefore:function(t,e){return Se(this,t,e)},removeChild:function(t){return xe(this,t)},replaceChild:function(t,e){return Se(this,t,e),xe(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=Ft.cloneNode.call(this,t);else if(e=Ft.cloneNode.call(this,!1),t&&e.nodeType!==Node.ATTRIBUTE_NODE){t=this.childNodes;for(var n,r=0;r<t.length;r++)n=t[r].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return function t(e){if(e&&e.nodeType){var n=X(e),r=n.V;return void 0===r&&(tt(e)?(r=e,n.V=r):(r=(r=e.parentNode)?t(r):e,Ft.contains.call(document.documentElement,e)&&(n.V=r))),r}}(this)},contains:function(t){return ft(this,t)},dispatchEvent:function(t){return mt(),Ft.dispatchEvent.call(this,t)}};Object.defineProperties(On,{isConnected:{get:function(){if(ue&&ue.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var t=this.ownerDocument;if(lt){if(Ft.contains.call(t,this))return!0}else if(t.documentElement&&Ft.contains.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(tt(t)?t.host:void 0);return!!(t&&t instanceof Document)},configurable:!0}});var Tn={get assignedSlot(){return Sn(this)}},Cn={querySelector:function(t){return Ne(this,function(e){return rt.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t,e){if(e){e=Array.prototype.slice.call(Ft.querySelectorAll.call(this,t));var n=this.getRootNode();return e.filter(function(t){return t.getRootNode()==n})}return Ne(this,function(e){return rt.call(e,t)})}},Nn={assignedNodes:function(t){if("slot"===this.localName){var e=this.getRootNode();return tt(e)&&pn(e),(e=G(this))&&(t&&t.flatten?e.N:e.assignedNodes)||[]}}},kn=it({setAttribute:function(t,e){Ae(this,t,e)},removeAttribute:function(t){Ft.removeAttribute.call(this,t),Te(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new fn(un,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){Ae(this,"slot",t)},get assignedSlot(){return Sn(this)}},Cn,Nn);Object.defineProperties(kn,pe);var jn=it({importNode:function(t,e){return function t(e,n){if(e.ownerDocument!==document||"template"===e.localName)return Ft.importNode.call(document,e,n);var r=Ft.importNode.call(document,e,!1);if(n){e=e.childNodes,n=0;for(var o;n<e.length;n++)o=t(e[n],!0),r.appendChild(o)}return r}(t,e)},getElementById:function(t){return Ne(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},Cn);Object.defineProperties(jn,{_activeElement:de.activeElement});for(var An=HTMLElement.prototype.blur,Mn={blur:function(){var t=G(this);(t=(t=t&&t.root)&&t.activeElement)?t.blur():An.call(this)}},Pn={},Rn=h(Object.getOwnPropertyNames(Document.prototype)),Ln=Rn.next();!Ln.done;Pn={H:Pn.H},Ln=Rn.next())Pn.H=Ln.value,"on"===Pn.H.substring(0,2)&&Object.defineProperty(Mn,Pn.H,{set:function(t){return function(e){var n=X(this),r=t.H.substring(2);n.Z[t.H]&&this.removeEventListener(r,n.Z[t.H]),this.addEventListener(r,e,{}),n.Z[t.H]=e}}(Pn),get:function(t){return function(){var e=G(this);return e&&e.Z[t.H]}}(Pn),configurable:!0});var In={addEventListener:function(t,e,r){"object"!==n(r)&&(r={capture:!!r}),r.na=this,this.host.addEventListener(t,e,r)},removeEventListener:function(t,e,r){"object"!==n(r)&&(r={capture:!!r}),r.na=this,this.host.removeEventListener(t,e,r)},getElementById:function(t){return Ne(this,function(e){return e.id==t},function(t){return!!t})[0]||null}};function Dn(t,e){for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(e,o);i.value?t[o]=i.value:Object.defineProperty(t,o,i)}}if(Y.qa){var Fn={inUse:Y.qa,patch:function(t){return be(t),ve(t),t},isShadyRoot:tt,enqueue:yt,flush:mt,settings:Y,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){var n=X(t);n.S||(n.S=new vt),n.S.ca.add(e);var r=n.S;return{Ia:e,P:r,Ka:t,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.P;e&&(e.ca.delete(t.Ia),e.ca.size||(X(t.Ka).S=null))},nativeMethods:Ft,nativeTree:re,deferConnectionCallbacks:Y.deferConnectionCallbacks,handlesDynamicScoping:!0};window.ShadyDOM=Fn,function(){if(window.Event=Ze,window.CustomEvent=Qe,window.MouseEvent=tn,function(){for(var t in We)window.addEventListener(t,function(t){t.__target||(Je(t),Xe(t))},!0)}(),!De&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var t=function(){var t=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.dispatchEvent(t)};Element.prototype.click?Element.prototype.click=t:HTMLElement.prototype.click&&(HTMLElement.prototype.click=t)}}();var qn=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;Dn(fn.prototype,In),Dn(window.Node.prototype,On),Dn(window.Window.prototype,xn),Dn(window.Text.prototype,Tn),Dn(window.DocumentFragment.prototype,Cn),Dn(window.Element.prototype,kn),Dn(window.Document.prototype,jn),window.HTMLSlotElement&&Dn(window.HTMLSlotElement.prototype,Nn),Dn(qn.prototype,Mn),Y.K&&(me(window.Node.prototype),me(window.Text.prototype),me(window.DocumentFragment.prototype),me(window.Element.prototype),me(qn.prototype),me(window.Document.prototype),window.HTMLSlotElement&&me(window.HTMLSlotElement.prototype)),function(){var t=fn.prototype;t.__proto__=DocumentFragment.prototype,ye(t,le,!0),ye(t,he,!0),ye(t,de,!0),Object.defineProperties(t,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach(function(e){Object.defineProperty(t,e,{value:void 0,configurable:!0})}),["ownerDocument","baseURI","isConnected"].forEach(function(e){Object.defineProperty(t,e,{get:function(){return this.host[e]},configurable:!0})})}(),window.ShadowRoot=fn}var Hn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function Un(t){var e=Hn.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function zn(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function Bn(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function Wn(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var o=r;e(o);var i=o.localName;if("link"===i&&"import"===o.getAttribute("rel")){if((r=o.import)instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)Wn(r,e,n);r=Bn(t,o);continue}if("template"===i){r=Bn(t,o);continue}if(o=o.__CE_shadowRoot)for(o=o.firstChild;o;o=o.nextSibling)Wn(o,e,n)}r=r.firstChild?r.firstChild:Bn(t,r)}}function Vn(t,e,n){t[e]=n}function $n(){this.a=new Map,this.m=new Map,this.f=[],this.c=!1}function Xn(t,e){t.c=!0,t.f.push(e)}function Gn(t,e){t.c&&Wn(e,function(e){return t.b(e)})}function Yn(t,e){var n=[];for(Wn(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state?t.connectedCallback(r):Zn(t,r)}}function Kn(t,e){var n=[];for(Wn(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state&&t.disconnectedCallback(r)}}function Jn(t,e,n){var r=(n=void 0===n?{}:n).fb||new Set,o=n.ia||function(e){return Zn(t,e)},i=[];if(Wn(e,function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(r);i.delete(n),Jn(t,n,{fb:i,ia:o})}})}else i.push(e)},r),t.c)for(e=0;e<i.length;e++)t.b(i[e]);for(e=0;e<i.length;e++)o(i[e])}function Zn(t,e){if(void 0===e.__CE_state){var n=e.ownerDocument;if((n.defaultView||n.__CE_isImportDocument&&n.__CE_hasRegistry)&&(n=t.a.get(e.localName))){n.constructionStack.push(e);var r=n.constructor;try{try{if(new r!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,e.__CE_definition=n,n.attributeChangedCallback)for(n=n.observedAttributes,r=0;r<n.length;r++){var o=n[r],i=e.getAttribute(o);null!==i&&t.attributeChangedCallback(e,o,null,i,null)}zn(e)&&t.connectedCallback(e)}}}function Qn(t){var e=document;this.b=t,this.a=e,this.P=void 0,Jn(this.b,this.a),"loading"===this.a.readyState&&(this.P=new MutationObserver(this.c.bind(this)),this.P.observe(this.a,{childList:!0,subtree:!0}))}function tr(t){t.P&&t.P.disconnect()}function er(){var t=this;this.a=this.A=void 0,this.b=new Promise(function(e){t.a=e,t.A&&e(t.A)})}function nr(t){this.c=!1,this.a=t,this.G=new Map,this.f=function(t){return t()},this.b=!1,this.m=[],this.fa=new Qn(t)}$n.prototype.b=function(t){if(this.c&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.f.length;e++)this.f[e](t)}},$n.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},$n.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},$n.prototype.attributeChangedCallback=function(t,e,n,r,o){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,r,o)},Qn.prototype.c=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||tr(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,r=0;r<n.length;r++)Jn(this.b,n[r])},er.prototype.resolve=function(t){if(this.A)throw Error("Already resolved.");this.A=t,this.a&&this.a(t)},(r=nr.prototype).define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Un(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var r=function(t){var e=o[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},o=e.prototype;if(!(o instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=r("connectedCallback"),s=r("disconnectedCallback"),a=r("adoptedCallback"),u=r("attributeChangedCallback"),c=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:s,adoptedCallback:a,attributeChangedCallback:u,observedAttributes:c,constructionStack:[]},function(t,e,n){t.a.set(e,n),t.m.set(n.constructor,n)}(this.a,t,e),this.m.push(e),this.b||(this.b=!0,this.f(function(){return function(t){if(!1!==t.b){t.b=!1;for(var e=t.m,n=[],r=new Map,o=0;o<e.length;o++)r.set(e[o].localName,[]);for(Jn(t.a,document,{ia:function(e){if(void 0===e.__CE_state){var o=e.localName,i=r.get(o);i?i.push(e):t.a.a.get(o)&&n.push(e)}}}),o=0;o<n.length;o++)Zn(t.a,n[o]);for(;0<e.length;){var i=e.shift();o=i.localName,i=r.get(i.localName);for(var s=0;s<i.length;s++)Zn(t.a,i[s]);(o=t.G.get(o))&&o.resolve(void 0)}}}(n)}))},r.ia=function(t){Jn(this.a,t)},r.get=function(t){if(t=this.a.a.get(t))return t.constructor},r.Ca=function(t){if(!Un(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.G.get(t);return e?e.b:(e=new er,this.G.set(t,e),this.a.a.get(t)&&!this.m.some(function(e){return e.localName===t})&&e.resolve(void 0),e.b)},r.Ya=function(t){tr(this.fa);var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=nr,nr.prototype.define=nr.prototype.define,nr.prototype.upgrade=nr.prototype.ia,nr.prototype.get=nr.prototype.get,nr.prototype.whenDefined=nr.prototype.Ca,nr.prototype.polyfillWrapFlushCallback=nr.prototype.Ya;var rr=window.Document.prototype.createElement,or=window.Document.prototype.createElementNS,ir=window.Document.prototype.importNode,sr=window.Document.prototype.prepend,ar=window.Document.prototype.append,ur=window.DocumentFragment.prototype.prepend,cr=window.DocumentFragment.prototype.append,lr=window.Node.prototype.cloneNode,fr=window.Node.prototype.appendChild,hr=window.Node.prototype.insertBefore,pr=window.Node.prototype.removeChild,dr=window.Node.prototype.replaceChild,yr=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),mr=window.Element.prototype.attachShadow,vr=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),br=window.Element.prototype.getAttribute,gr=window.Element.prototype.setAttribute,wr=window.Element.prototype.removeAttribute,_r=window.Element.prototype.getAttributeNS,Er=window.Element.prototype.setAttributeNS,Sr=window.Element.prototype.removeAttributeNS,xr=window.Element.prototype.insertAdjacentElement,Or=window.Element.prototype.insertAdjacentHTML,Tr=window.Element.prototype.prepend,Cr=window.Element.prototype.append,Nr=window.Element.prototype.before,kr=window.Element.prototype.after,jr=window.Element.prototype.replaceWith,Ar=window.Element.prototype.remove,Mr=window.HTMLElement,Pr=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Rr=window.HTMLElement.prototype.insertAdjacentElement,Lr=window.HTMLElement.prototype.insertAdjacentHTML,Ir=new function(){};function Dr(t,e,n){function r(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],s=0;s<r.length;s++){var a=r[s];if(a instanceof Element&&zn(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)o.push(a);else o.push(a)}for(e.apply(this,r),r=0;r<i.length;r++)Kn(t,i[r]);if(zn(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&Yn(t,i)}}void 0!==n.ha&&(e.prepend=r(n.ha)),void 0!==n.append&&(e.append=r(n.append))}var Fr=window.customElements;if(!Fr||Fr.forcePolyfill||"function"!=typeof Fr.define||"function"!=typeof Fr.get){var qr=new $n;!function(){var t=qr;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.m.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var r=n.constructionStack;if(0===r.length)return r=rr.call(document,n.localName),Object.setPrototypeOf(r,e.prototype),r.__CE_state=1,r.__CE_definition=n,t.b(r),r;var o=r[n=r.length-1];if(o===Ir)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return r[n]=Ir,Object.setPrototypeOf(o,e.prototype),t.b(o),o}return e.prototype=Mr.prototype,Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),e}()}(),function(){var t=qr;Vn(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructor}return e=rr.call(this,e),t.b(e),e}),Vn(Document.prototype,"importNode",function(e,n){return e=ir.call(this,e,n),this.__CE_hasRegistry?Jn(t,e):Gn(t,e),e}),Vn(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var r=t.a.get(n);if(r)return new r.constructor}return e=or.call(this,e,n),t.b(e),e}),Dr(t,Document.prototype,{ha:sr,append:ar})}(),Dr(qr,DocumentFragment.prototype,{ha:ur,append:cr}),function(){function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var r=void 0;if(this.firstChild){var o=this.childNodes,i=o.length;if(0<i&&zn(this)){r=Array(i);for(var s=0;s<i;s++)r[s]=o[s]}}if(n.set.call(this,t),r)for(t=0;t<r.length;t++)Kn(e,r[t])}}})}var e=qr;Vn(Node.prototype,"insertBefore",function(t,n){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=hr.call(this,t,n),zn(this))for(n=0;n<r.length;n++)Yn(e,r[n]);return t}return r=zn(t),n=hr.call(this,t,n),r&&Kn(e,t),zn(this)&&Yn(e,t),n}),Vn(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes);if(t=fr.call(this,t),zn(this))for(var r=0;r<n.length;r++)Yn(e,n[r]);return t}return n=zn(t),r=fr.call(this,t),n&&Kn(e,t),zn(this)&&Yn(e,t),r}),Vn(Node.prototype,"cloneNode",function(t){return t=lr.call(this,t),this.ownerDocument.__CE_hasRegistry?Jn(e,t):Gn(e,t),t}),Vn(Node.prototype,"removeChild",function(t){var n=zn(t),r=pr.call(this,t);return n&&Kn(e,t),r}),Vn(Node.prototype,"replaceChild",function(t,n){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=dr.call(this,t,n),zn(this))for(Kn(e,n),n=0;n<r.length;n++)Yn(e,r[n]);return t}r=zn(t);var o=dr.call(this,t,n),i=zn(this);return i&&Kn(e,n),r&&Kn(e,t),i&&Yn(e,t),o}),yr&&yr.get?t(Node.prototype,yr):Xn(e,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)pr.call(this,this.firstChild);fr.call(this,document.createTextNode(t))}})})}(),function(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var n=this,o=void 0;if(zn(this)&&(o=[],Wn(this,function(t){t!==n&&o.push(t)})),e.set.call(this,t),o)for(var i=0;i<o.length;i++){var s=o[i];1===s.__CE_state&&r.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?Jn(r,this):Gn(r,this),t}})}function e(t,e){Vn(t,"insertAdjacentElement",function(t,n){var o=zn(n);return t=e.call(this,t,n),o&&Kn(r,n),zn(t)&&Yn(r,n),t})}function n(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)Jn(r,n[e])}Vn(t,"insertAdjacentHTML",function(t,r){if("beforebegin"===(t=t.toLowerCase())){var o=this.previousSibling;e.call(this,t,r),n(o||this.parentNode.firstChild,this)}else if("afterbegin"===t)o=this.firstChild,e.call(this,t,r),n(this.firstChild,o);else if("beforeend"===t)o=this.lastChild,e.call(this,t,r),n(o||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,e.call(this,t,r),n(this.nextSibling,o)}})}var r=qr;mr&&Vn(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=mr.call(this,t)}),vr&&vr.get?t(Element.prototype,vr):Pr&&Pr.get?t(HTMLElement.prototype,Pr):Xn(r,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return lr.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,r=or.call(document,this.namespaceURI,this.localName);for(r.innerHTML=t;0<n.childNodes.length;)pr.call(n,n.childNodes[0]);for(t=e?r.content:r;0<t.childNodes.length;)fr.call(n,t.childNodes[0])}})}),Vn(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return gr.call(this,t,e);var n=br.call(this,t);gr.call(this,t,e),e=br.call(this,t),r.attributeChangedCallback(this,t,n,e,null)}),Vn(Element.prototype,"setAttributeNS",function(t,e,n){if(1!==this.__CE_state)return Er.call(this,t,e,n);var o=_r.call(this,t,e);Er.call(this,t,e,n),n=_r.call(this,t,e),r.attributeChangedCallback(this,e,o,n,t)}),Vn(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return wr.call(this,t);var e=br.call(this,t);wr.call(this,t),null!==e&&r.attributeChangedCallback(this,t,e,null,null)}),Vn(Element.prototype,"removeAttributeNS",function(t,e){if(1!==this.__CE_state)return Sr.call(this,t,e);var n=_r.call(this,t,e);Sr.call(this,t,e);var o=_r.call(this,t,e);n!==o&&r.attributeChangedCallback(this,e,n,o,t)}),Rr?e(HTMLElement.prototype,Rr):xr?e(Element.prototype,xr):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),Lr?n(HTMLElement.prototype,Lr):Or?n(Element.prototype,Or):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Dr(r,Element.prototype,{ha:Tr,append:Cr}),function(t){function e(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],s=0;s<r.length;s++){var a=r[s];if(a instanceof Element&&zn(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)o.push(a);else o.push(a)}for(e.apply(this,r),r=0;r<i.length;r++)Kn(t,i[r]);if(zn(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&Yn(t,i)}}var n=Element.prototype;void 0!==Nr&&(n.before=e(Nr)),void 0!==Nr&&(n.after=e(kr)),void 0!==jr&&Vn(n,"replaceWith",function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var o=[],i=0;i<n.length;i++){var s=n[i];if(s instanceof Element&&zn(s)&&o.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(i=zn(this),jr.apply(this,n),n=0;n<o.length;n++)Kn(t,o[n]);if(i)for(Kn(t,this),n=0;n<r.length;n++)(o=r[n])instanceof Element&&Yn(t,o)}),void 0!==Ar&&Vn(n,"remove",function(){var e=zn(this);Ar.call(this),e&&Kn(t,this)})}(r)}(),document.__CE_hasRegistry=!0;var Hr=new nr(qr);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Hr})}function Ur(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function zr(t){var e=Br,n=t=t.replace(Yr,"").replace(Kr,""),r=new Ur;r.start=0,r.end=n.length;for(var o=r,i=0,s=n.length;i<s;i++)if("{"===n[i]){o.rules||(o.rules=[]);var a=o,u=a.rules[a.rules.length-1]||null;(o=new Ur).start=i+1,o.parent=a,o.previous=u,a.rules.push(o)}else"}"===n[i]&&(o.end=i+1,o=o.parent||r);return e(r,t)}function Br(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=(n=(n=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1))).replace(no," ")).substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=Xr:n.match(eo)&&(t.type=$r,t.keyframesName=t.selector.split(no).pop()):t.type=0===n.indexOf("--")?Gr:Vr),n=t.rules)for(var r=0,o=n.length,i=void 0;r<o&&(i=n[r]);r++)Br(i,e);return t}var Wr,Vr=1,$r=7,Xr=4,Gr=1e3,Yr=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,Kr=/@import[^;]*;/gim,Jr=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Zr=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Qr=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,to=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,eo=/^@[^\s]*keyframes/,no=/\s+/g,ro=!(window.ShadyDOM&&window.ShadyDOM.inUse);function oo(t){Wr=(!t||!t.shimcssproperties)&&(ro||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Wr=window.ShadyCSS.nativeCss:window.ShadyCSS?(oo(window.ShadyCSS),window.ShadyCSS=void 0):oo(window.WebComponents&&window.WebComponents.flags);var io=Wr,so=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ao=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,uo=/(--[\w-]+)\s*([:,;)]|$)/gi,co=/(animation\s*:)|(animation-name\s*:)/,lo=/@media\s(.*)/,fo=/\{[^}]*\}/g,ho=new Set;function po(t,e){return t?("string"==typeof t&&(t=zr(t)),e&&vo(t,e),function t(e,n,r){r=void 0===r?"":r;var o="";if(e.cssText||e.rules){var i,s=e.rules;if((i=s)&&(i=!((i=s[0])&&i.selector&&0===i.selector.indexOf("--"))),i){i=0;for(var a=s.length,u=void 0;i<a&&(u=s[i]);i++)o=t(u,n,o)}else n=n?e.cssText:(n=(n=e.cssText).replace(Jr,"").replace(Zr,"")).replace(Qr,"").replace(to,""),(o=n.trim())&&(o=" "+o+"\n")}return o&&(e.selector&&(r+=e.selector+" {\n"),r+=o,e.selector&&(r+="}\n\n")),r}(t,io)):""}function yo(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=zr(t.textContent)),t.__cssRules||null}function mo(t){return!!t.parent&&t.parent.type===$r}function vo(t,e,n,r){if(t){var o=!1,i=t.type;if(r&&i===Xr){var s=t.selector.match(lo);s&&(window.matchMedia(s[1]).matches||(o=!0))}if(i===Vr?e(t):n&&i===$r?n(t):i===Gr&&(o=!0),(t=t.rules)&&!o)for(o=0,i=t.length,s=void 0;o<i&&(s=t[o]);o++)vo(s,e,n,r)}}function bo(t,e,n,r){var o=document.createElement("style");return e&&o.setAttribute("scope",e),o.textContent=t,_o(o,n,r),o}var go=null;function wo(t){t=document.createComment(" Shady DOM styles for "+t+" ");var e=document.head;return e.insertBefore(t,(go?go.nextSibling:null)||e.firstChild),go=t}function _o(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),go?t.compareDocumentPosition(go)===Node.DOCUMENT_POSITION_PRECEDING&&(go=t):go=t}function Eo(t,e){for(var n=0,r=t.length;e<r;e++)if("("===t[e])n++;else if(")"===t[e]&&0==--n)return e;return-1}function So(t,e){ro?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function xo(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,X:n}}function Oo(t){for(var e=[],n="",r=0;0<=r&&r<t.length;r++)if("("===t[r]){var o=Eo(t,r);n+=t.slice(r,o+1),r=o}else","===t[r]?(e.push(n),n=""):n+=t[r];return n&&e.push(n),e}function To(t){if(void 0===t.ja){var e=t.getAttribute("css-build");if(e)t.ja=e;else{if(""!==(e=(e="template"===t.localName?t.content.firstChild:t.firstChild)instanceof Comment&&"css-build"===(e=e.textContent.trim().split(":"))[0]?e[1]:"")){var n="template"===t.localName?t.content.firstChild:t.firstChild;n.parentNode.removeChild(n)}t.ja=e}}return t.ja||""}function Co(){}function No(t,e,n){if(e.nodeType===Node.ELEMENT_NODE&&n(e),e="template"===e.localName?(e.content||e.kb||e).childNodes:e.children||e.childNodes)for(var r=0;r<e.length;r++)No(t,e[r],n)}function ko(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var r=t.getAttribute(Zo);n?r&&So(t,e=r.replace("style-scope","").replace(e,"")):So(t,(r?r+" ":"")+"style-scope "+e)}}function jo(t,e,n){No(ei,t,function(t){ko(t,e,!0),ko(t,n)})}function Ao(t,e){No(ei,t,function(t){ko(t,e||"",!0)})}function Mo(t,e,n,r){var o=ei;return ro||"shady"===(void 0===r?"":r)?e=po(e,n):e=function(t,e,n,r,o){var i=Po(n,r);return n=n?Ko+n:"",po(e,function(e){e.c||(e.selector=e.F=Ro(t,e,t.b,n,i),e.c=!0),o&&o(e,n,i)})}(o,e,(t=xo(t)).is,t.X,n)+"\n\n",e.trim()}function Po(t,e){return e?"[is="+t+"]":t}function Ro(t,e,n,r,o){var i=Oo(e.selector);if(!mo(e)){e=0;for(var s=i.length,a=void 0;e<s&&(a=i[e]);e++)i[e]=n.call(t,a,r,o)}return i.filter(function(t){return!!t}).join(Ho)}function Lo(t){return t.replace(Fo,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})}function Io(t,e){return(t=t.split(Jo))[0]+=e,t.join(Jo)}function Do(t){t.selector===Wo&&(t.selector="html")}Co.prototype.b=function(t,e,n){var r=!1;t=t.trim();var o=Fo.test(t);o&&(t=Lo(t=t.replace(Fo,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"})));var i=ti.test(t);if(i){var s=function(t){for(var e,n=[];e=t.match(ti);){var r=e.index,o=Eo(t,r);if(-1===o)throw Error(e.input+" selector missing ')'");e=t.slice(r,o+1),t=t.replace(e,""),n.push(e)}return{sa:t,matches:n}}(t);t=s.sa,s=s.matches}return t=(t=t.replace($o,Bo+" $1")).replace(Uo,function(t,o,i){return r||(t=function(t,e,n,r){var o=t.indexOf(Vo);if(0<=t.indexOf(Bo)?t=function(t,e){var n=t.match(Xo);return(n=n&&n[2].trim()||"")?n[0].match(zo)?t.replace(Xo,function(t,n,r){return e+r}):n.split(zo)[0]===e?n:Qo:t.replace(Bo,e)}(t,r):0!==o&&(t=n?Io(t,n):t),n=!1,0<=o&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(Go,function(t,e){return" > "+e}))}return{value:t=t.replace(Yo,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),Oa:e,stop:i}}(i,o,e,n),r=r||t.stop,o=t.Oa,i=t.value),o+i}),i&&(t=function(t,e){var n=t.split("");return e.reduce(function(t,e,r){return t+e+n[r+1]},n[0])}(t,s)),o&&(t=Lo(t)),t},Co.prototype.c=function(t){return t.match(Bo)?"":t.match(Vo)?this.b(t,qo):Io(t.trim(),qo)},i.Object.defineProperties(Co.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Fo=/:(nth[-\w]+)\(([^)]+)\)/,qo=":not(.style-scope)",Ho=",",Uo=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,zo=/[[.:#*]/,Bo=":host",Wo=":root",Vo="::slotted",$o=new RegExp("^("+Vo+")"),Xo=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Go=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Yo=/(.*):dir\((?:(ltr|rtl))\)/,Ko=".",Jo=":",Zo="class",Qo="should_not_match",ti=/:(?:matches|any|-(?:webkit|moz)-any)/,ei=new Co;function ni(t,e,n,r,o){this.M=t||null,this.b=e||null,this.c=n||[],this.T=null,this.da=o||"",this.X=r||"",this.a=this.I=this.O=null}function ri(t){return t?t.__styleInfo:null}function oi(t,e){return t.__styleInfo=e}function ii(t){var e=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return e&&e.call(this,t)}ni.prototype.f=function(){return this.M},ni.prototype._getStyleRules=ni.prototype.f;var si=navigator.userAgent.match("Trident");function ai(){}function ui(t){if(!t.B){var e={},n={};ci(t,n)&&(e.L=n,t.rules=null),e.cssText=t.parsedCssText.replace(fo,"").replace(so,""),t.B=e}}function ci(t,e){var n=t.B;if(!n){n=t.parsedCssText;for(var r;t=so.exec(n);)"inherit"===(r=(t[2]||t[3]).trim())&&"unset"===r||(e[t[1].trim()]=r),r=!0;return r}if(n.L)return Object.assign(e,n.L),!0}function li(t,e,n){return e&&(e=0<=e.indexOf(";")?fi(t,e,n):function t(e,n){var r=e.indexOf("var(");if(-1===r)return n(e,"","","");var o=Eo(e,r+3),i=e.substring(r+4,o);return r=e.substring(0,r),e=t(e.substring(o+1),n),-1===(o=i.indexOf(","))?n(r,i.trim(),"",e):n(r,i.substring(0,o).trim(),i.substring(o+1).trim(),e)}(e,function(e,r,o,i){return r?((r=li(t,n[r],n))&&"initial"!==r?"apply-shim-inherit"===r&&(r="inherit"):r=li(t,n[o]||o,n)||o,e+(r||"")+i):e+i})),e&&e.trim()||""}function fi(t,e,n){e=e.split(";");for(var r,o,i=0;i<e.length;i++)if(r=e[i]){if(ao.lastIndex=0,o=ao.exec(r))r=li(t,n[o[1]],n);else if(-1!==(o=r.indexOf(":"))){var s=r.substring(o);s=li(t,s=s.trim(),n)||s,r=r.substring(0,o)+s}e[i]=r&&r.lastIndexOf(";")===r.length-1?r.slice(0,-1):r||""}return e.join(";")}function hi(t,e,n){var r={},o={};return vo(e,function(e){!function(t,e,n,r){if(e.B||ui(e),e.B.L){var o=xo(t);t=o.is,o=o.X,o=t?Po(t,o):"html";var i=e.parsedSelector,s=":host > *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(a=!(s=i===o+" > *."+o||-1!==i.indexOf("html"))&&0===i.indexOf(o)),(s||a)&&(n=o,a&&(e.F||(e.F=Ro(ei,e,ei.b,t?Ko+t:"",o)),n=e.F||o),r({sa:n,Va:a,vb:s}))}}(t,e,n,function(n){ii.call(t.lb||t,n.sa)&&(n.Va?ci(e,r):ci(e,o))})},null,!0),{Za:o,Ta:r}}function pi(t,e,n,r){var o=xo(e),i=Po(o.is,o.X),s=new RegExp("(?:^|[^.#[:])"+(e.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),a=ri(e);o=a.M,a=a.da;var u=function(t,e){t=t.b;var n={};if(!ro&&t)for(var r=0,o=t[r];r<t.length;o=t[++r]){var i=o,s=e;i.f=new RegExp("\\b"+i.keyframesName+"(?!\\B|-)","g"),i.a=i.keyframesName+"-"+s,i.F=i.F||i.selector,i.selector=i.F.replace(i.keyframesName,i.a),n[o.keyframesName]=di(o)}return n}(o,r);return Mo(e,o,function(e){var o="";if(e.B||ui(e),e.B.cssText&&(o=fi(t,e.B.cssText,n)),e.cssText=o,!ro&&!mo(e)&&e.cssText){var a=o=e.cssText;if(null==e.xa&&(e.xa=co.test(o)),e.xa)if(null==e.ga)for(var c in e.ga=[],u)o!==(a=(a=u[c])(o))&&(o=a,e.ga.push(c));else{for(c=0;c<e.ga.length;++c)o=(a=u[e.ga[c]])(o);a=o}e.cssText=a,e.F=e.F||e.selector,o="."+r,a=0;for(var l=(c=Oo(e.F)).length,f=void 0;a<l&&(f=c[a]);a++)c[a]=f.match(s)?f.replace(i,o):o+" "+f;e.selector=c.join(",")}},a)}function di(t){return function(e){return e.replace(t.f,t.a)}}function yi(t,e){var n=mi,r=yo(t);t.textContent=po(r,function(t){var r=t.cssText=t.parsedCssText;t.B&&t.B.cssText&&(r=r.replace(Jr,"").replace(Zr,""),t.cssText=fi(n,r,e))})}i.Object.defineProperties(ai.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var mi=new ai,vi={},bi=window.customElements;if(bi&&!ro){var gi=bi.define;bi.define=function(t,e,n){vi[t]||(vi[t]=wo(t)),gi.call(bi,t,e,n)}}function wi(){this.cache={}}function _i(){}function Ei(t){var e=[];return t.classList?e=Array.from(t.classList):t instanceof window.SVGElement&&t.hasAttribute("class")&&(e=t.getAttribute("class").split(/\s+/)),-1<(e=(t=e).indexOf(ei.a))?t[e+1]:""}function Si(t){var e=t.getRootNode();return e===t||e===t.ownerDocument?"":(t=e.host)?xo(t).is:""}function xi(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var o=n.addedNodes[r];if(o.nodeType===Node.ELEMENT_NODE){var i=o.getRootNode(),s=Ei(o);if(s&&i===o.ownerDocument&&("style"!==o.localName&&"template"!==o.localName||""===To(o)))Ao(o,s);else if(i instanceof ShadowRoot)for((i=Si(o))!==s&&jo(o,s,i),o=window.ShadyDOM.nativeMethods.querySelectorAll.call(o,":not(."+ei.a+")"),s=0;s<o.length;s++){var a=Si(i=o[s]);a&&ko(i,a)}}}}}if(wi.prototype.store=function(t,e,n,r){var o=this.cache[t]||[];o.push({L:e,styleElement:n,I:r}),100<o.length&&o.shift(),this.cache[t]=o},wi.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var r=t.length-1;0<=r;r--){var o,i=t[r];t:{for(o=0;o<n.length;o++){var s=n[o];if(i.L[s]!==e[s]){o=!1;break t}}o=!0}if(o)return i}},!(ro||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Oi=new MutationObserver(xi),Ti=function(t){Oi.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Ti(document);else{var Ci=function(){Ti(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Ci):requestAnimationFrame(function(){if("loading"===document.readyState){document.addEventListener("readystatechange",function t(){Ci(),document.removeEventListener("readystatechange",t)})}else Ci()})}_i=function(){xi(Oi.takeRecords())}}var Ni=_i,ki={},ji=Promise.resolve();function Ai(t){(t=ki[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function Mi(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}var Pi=new wi;function Ri(){this.G={},this.c=document.documentElement;var t=new Ur;t.rules=[],this.f=oi(this.c,new ni(t)),this.m=!1,this.b=this.a=null}function Li(t){!t.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(t.a=window.ShadyCSS.ApplyShim,t.a.invalidCallback=Ai),function(t){!t.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(t.b=window.ShadyCSS.CustomStyleInterface,t.b.transformCallback=function(e){t.Aa(e)},t.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.m)&&t.flushCustomStyles()})})}(t)}function Ii(t,e){return(e=e.getRootNode().host)?ri(e)?e:Ii(t,e):t.c}function Di(t,e,n){var r=ri(t=Ii(t,e));t=Object.create(r.O||null);var o=hi(e,n.M,n.da);for(var i in e=function(t,e){var n={},r=[];return vo(t,function(t){t.B||ui(t);var o=t.F||t.parsedSelector;e&&t.B.L&&o&&ii.call(e,o)&&(ci(t,n),t=t.index,o=parseInt(t/32,10),r[o]=(r[o]||0)|1<<t%32)},null,!0),{L:n,key:r}}(r.M,e).L,Object.assign(t,o.Ta,e,o.Za),e=n.T)((o=e[i])||0===o)&&(t[i]=o);for(i=mi,e=Object.getOwnPropertyNames(t),o=0;o<e.length;o++)t[r=e[o]]=li(i,t[r],t);n.O=t}(r=Ri.prototype).flush=function(){Ni()},r.Ra=function(t){return yo(t)},r.cb=function(t){return po(t)},r.prepareTemplate=function(t,e,n){this.prepareTemplateDom(t,e),this.prepareTemplateStyles(t,e,n)},r.prepareTemplateStyles=function(t,e,n){if(!t.m){ro||vi[e]||(vi[e]=wo(e)),t.m=!0,t.name=e,t.extends=n,ki[e]=t;for(var r=To(t),o=[],i=t.content.querySelectorAll("style"),s=0;s<i.length;s++){var a=i[s];if(a.hasAttribute("shady-unscoped")){if(!ro){var u=a.textContent;ho.has(u)||(ho.add(u),u=a.cloneNode(!0),document.head.appendChild(u)),a.parentNode.removeChild(a)}}else o.push(a.textContent),a.parentNode.removeChild(a)}o=o.join("").trim(),n={is:e,extends:n},Li(this),(i=""===To(t))&&(i=ao.test(o)||so.test(o),ao.lastIndex=0,so.lastIndex=0),o=zr(o),i&&io&&this.a&&this.a.transformRules(o,e),t._styleAst=o,o=[],io||(o=function(t){var e={},n=[],r=0;for(var o in vo(t,function(t){ui(t),t.index=r++,t=t.B.cssText;for(var n;n=uo.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},function(t){n.push(t)}),t.b=n,t=[],e)t.push(o);return t}(t._styleAst)),o.length&&!io||(i=ro?t.content:null,e=vi[e]||null,r=(r=Mo(n,t._styleAst,null,r)).length?bo(r,n.is,i,e):void 0,t.a=r),t.f=o}},r.prepareTemplateDom=function(t,e){var n=To(t);ro||"shady"===n||t.c||(t.c=!0,function(t,e){No(ei,t,function(t){ko(t,e||"")})}(t.content,e))},r.flushCustomStyles=function(){if(Li(this),this.b){var t=this.b.processStyles();if(this.b.enqueued){if(io)for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);if(n&&io&&this.a){var r=yo(n);Li(this),this.a.transformRules(r),n.textContent=po(r)}}else for(Di(this,this.c,this.f),e=0;e<t.length;e++)(n=this.b.getStyleForCustomStyle(t[e]))&&yi(n,this.f.O);this.b.enqueued=!1,this.m&&!io&&this.styleDocument()}}},r.styleElement=function(t,e){var n=ri(t);if(!n){var r=xo(t);n=r.is,r=r.X;var o=vi[n]||null;if(n=ki[n])var i=n._styleAst,s=n.f,a=To(n);i=new ni(i,o,s,r,a),n&&oi(t,i),n=i}if(t!==this.c&&(this.m=!0),e&&(n.T=n.T||{},Object.assign(n.T,e)),io){if(e=n,i=xo(t).is,e.T)for(var u in s=e.T)null===u?t.style.removeProperty(u):t.style.setProperty(u,s[u]);!(u=ki[i])&&t!==this.c||u&&""!==To(u)||!u||!u.a||Mi(u)||((Mi(u)||u._applyShimValidatingVersion!==u._applyShimNextVersion)&&(Li(this),this.a&&this.a.transformRules(u._styleAst,i),u.a.textContent=Mo(t,e.M),function(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,ji.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}(u)),ro&&(i=t.shadowRoot)&&(i=i.querySelector("style"))&&(i.textContent=Mo(t,e.M)),e.M=u._styleAst)}else if(u=n,this.flush(),Di(this,t,u),u.c&&u.c.length){e=xo(t).is,n=(i=Pi.fetch(e,u.O,u.c))?i.styleElement:null,s=u.I,(a=i&&i.I)||(a=e+"-"+(a=this.G[e]=(this.G[e]||0)+1)),u.I=a,a=u.I,r=mi,r=n?n.textContent||"":pi(r,t,u.O,a);var c=(o=ri(t)).a;c&&!ro&&c!==n&&(c._useCount--,0>=c._useCount&&c.parentNode&&c.parentNode.removeChild(c)),ro?o.a?(o.a.textContent=r,n=o.a):r&&(n=bo(r,a,t.shadowRoot,o.b)):n?n.parentNode||(si&&-1<r.indexOf("@media")&&(n.textContent=r),_o(n,null,o.b)):r&&(n=bo(r,a,null,o.b)),n&&(n._useCount=n._useCount||0,o.a!=n&&n._useCount++,o.a=n),a=n,ro||(n=u.I,o=r=t.getAttribute("class")||"",s&&(o=r.replace(new RegExp("\\s*x-scope\\s*"+s+"\\s*","g")," ")),r!==(o+=(o?" ":"")+"x-scope "+n)&&So(t,o)),i||Pi.store(e,u.O,a,u.I)}},r.styleDocument=function(t){this.styleSubtree(this.c,t)},r.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||t===this.c)&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},r.Aa=function(t){var e=this,n=yo(t),r=To(t);r!==this.f.da&&(this.f.da=r),vo(n,function(t){if(ro)Do(t);else{var n=ei;t.selector=t.parsedSelector,Do(t),t.selector=t.F=Ro(n,t,n.c,void 0,void 0)}io&&""===r&&(Li(e),e.a&&e.a.transformRule(t))}),io?t.textContent=po(n):this.f.M.rules.push(n)},r.getComputedStyleValue=function(t,e){var n;return io||(n=(ri(t)||ri(Ii(this,t))).O[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},r.bb=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var r=t.getAttribute("class");if(r){r=r.split(/\s/);for(var o=0;o<r.length;o++)if(r[o]===ei.a){n=r[o+1];break}}}n&&e.push(ei.a,n),io||(n=ri(t))&&n.I&&e.push(mi.a,n.I),So(t,e.join(" "))},r.La=function(t){return ri(t)},r.ab=function(t,e){ko(t,e)},r.eb=function(t,e){ko(t,e,!0)},r.$a=function(t){return Si(t)},r.Pa=function(t){return Ei(t)},Ri.prototype.flush=Ri.prototype.flush,Ri.prototype.prepareTemplate=Ri.prototype.prepareTemplate,Ri.prototype.styleElement=Ri.prototype.styleElement,Ri.prototype.styleDocument=Ri.prototype.styleDocument,Ri.prototype.styleSubtree=Ri.prototype.styleSubtree,Ri.prototype.getComputedStyleValue=Ri.prototype.getComputedStyleValue,Ri.prototype.setElementClass=Ri.prototype.bb,Ri.prototype._styleInfoForNode=Ri.prototype.La,Ri.prototype.transformCustomStyleForDocument=Ri.prototype.Aa,Ri.prototype.getStyleAst=Ri.prototype.Ra,Ri.prototype.styleAstToString=Ri.prototype.cb,Ri.prototype.flushCustomStyles=Ri.prototype.flushCustomStyles,Ri.prototype.scopeNode=Ri.prototype.ab,Ri.prototype.unscopeNode=Ri.prototype.eb,Ri.prototype.scopeForNode=Ri.prototype.$a,Ri.prototype.currentScopeForNode=Ri.prototype.Pa,Object.defineProperties(Ri.prototype,{nativeShadow:{get:function(){return ro}},nativeCss:{get:function(){return io}}});var Fi,qi,Hi=new Ri;window.ShadyCSS&&(Fi=window.ShadyCSS.ApplyShim,qi=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:Hi,prepareTemplate:function(t,e,n){Hi.flushCustomStyles(),Hi.prepareTemplate(t,e,n)},prepareTemplateDom:function(t,e){Hi.prepareTemplateDom(t,e)},prepareTemplateStyles:function(t,e,n){Hi.flushCustomStyles(),Hi.prepareTemplateStyles(t,e,n)},styleSubtree:function(t,e){Hi.flushCustomStyles(),Hi.styleSubtree(t,e)},styleElement:function(t){Hi.flushCustomStyles(),Hi.styleElement(t)},styleDocument:function(t){Hi.flushCustomStyles(),Hi.styleDocument(t)},flushCustomStyles:function(){Hi.flushCustomStyles()},getComputedStyleValue:function(t,e){return Hi.getComputedStyleValue(t,e)},nativeCss:io,nativeShadow:ro},Fi&&(window.ShadyCSS.ApplyShim=Fi),qi&&(window.ShadyCSS.CustomStyleInterface=qi),function(t){function e(t){return""==t&&(i.call(this),this.i=!0),t.toLowerCase()}function n(t){var e=t.charCodeAt(0);return 32<e&&127>e&&-1==[34,35,60,62,63,96].indexOf(e)?t:encodeURIComponent(t)}function r(t){var e=t.charCodeAt(0);return 32<e&&127>e&&-1==[34,35,60,62,96].indexOf(e)?t:encodeURIComponent(t)}function o(t,o,s){function a(t){v.push(t)}var u=o||"scheme start",p=0,d="",y=!1,m=!1,v=[];t:for(;(null!=t[p-1]||0==p)&&!this.i;){var b=t[p];switch(u){case"scheme start":if(!b||!f.test(b)){if(o){a("Invalid scheme.");break t}d="",u="no scheme";continue}d+=b.toLowerCase(),u="scheme";break;case"scheme":if(b&&h.test(b))d+=b.toLowerCase();else{if(":"!=b){if(o){null!=b&&a("Code point not allowed in scheme: "+b);break t}d="",p=0,u="no scheme";continue}if(this.h=d,d="",o)break t;void 0!==c[this.h]&&(this.D=!0),u="file"==this.h?"relative":this.D&&s&&s.h==this.h?"relative or authority":this.D?"authority first slash":"scheme data"}break;case"scheme data":"?"==b?(this.u="?",u="query"):"#"==b?(this.C="#",u="fragment"):null!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this.pa+=n(b));break;case"no scheme":if(s&&void 0!==c[s.h]){u="relative";continue}a("Missing scheme."),i.call(this),this.i=!0;break;case"relative or authority":if("/"!=b||"/"!=t[p+1]){a("Expected /, got: "+b),u="relative";continue}u="authority ignore slashes";break;case"relative":if(this.D=!0,"file"!=this.h&&(this.h=s.h),null==b){this.j=s.j,this.s=s.s,this.l=s.l.slice(),this.u=s.u,this.v=s.v,this.g=s.g;break t}if("/"==b||"\\"==b)"\\"==b&&a("\\ is an invalid code point."),u="relative slash";else if("?"==b)this.j=s.j,this.s=s.s,this.l=s.l.slice(),this.u="?",this.v=s.v,this.g=s.g,u="query";else{if("#"!=b){u=t[p+1];var g=t[p+2];("file"!=this.h||!f.test(b)||":"!=u&&"|"!=u||null!=g&&"/"!=g&&"\\"!=g&&"?"!=g&&"#"!=g)&&(this.j=s.j,this.s=s.s,this.v=s.v,this.g=s.g,this.l=s.l.slice(),this.l.pop()),u="relative path";continue}this.j=s.j,this.s=s.s,this.l=s.l.slice(),this.u=s.u,this.C="#",this.v=s.v,this.g=s.g,u="fragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this.h&&(this.j=s.j,this.s=s.s,this.v=s.v,this.g=s.g),u="relative path";continue}"\\"==b&&a("\\ is an invalid code point."),u="file"==this.h?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=b){a("Expected '/', got: "+b),u="authority ignore slashes";continue}u="authority second slash";break;case"authority second slash":if(u="authority ignore slashes","/"!=b){a("Expected '/', got: "+b);continue}break;case"authority ignore slashes":if("/"!=b&&"\\"!=b){u="authority";continue}a("Expected authority, got: "+b);break;case"authority":if("@"==b){for(y&&(a("@ already seen."),d+="%40"),y=!0,b=0;b<d.length;b++)"\t"==(g=d[b])||"\n"==g||"\r"==g?a("Invalid whitespace in authority."):":"==g&&null===this.g?this.g="":(g=n(g),null!==this.g?this.g+=g:this.v+=g);d=""}else{if(null==b||"/"==b||"\\"==b||"?"==b||"#"==b){p-=d.length,d="",u="host";continue}d+=b}break;case"file host":if(null==b||"/"==b||"\\"==b||"?"==b||"#"==b){2!=d.length||!f.test(d[0])||":"!=d[1]&&"|"!=d[1]?(0!=d.length&&(this.j=e.call(this,d),d=""),u="relative path start"):u="relative path";continue}"\t"==b||"\n"==b||"\r"==b?a("Invalid whitespace in file host."):d+=b;break;case"host":case"hostname":if(":"!=b||m){if(null==b||"/"==b||"\\"==b||"?"==b||"#"==b){if(this.j=e.call(this,d),d="",u="relative path start",o)break t;continue}"\t"!=b&&"\n"!=b&&"\r"!=b?("["==b?m=!0:"]"==b&&(m=!1),d+=b):a("Invalid code point in host/hostname: "+b)}else if(this.j=e.call(this,d),d="",u="port","hostname"==o)break t;break;case"port":if(/[0-9]/.test(b))d+=b;else{if(null==b||"/"==b||"\\"==b||"?"==b||"#"==b||o){if(""!=d&&((d=parseInt(d,10))!=c[this.h]&&(this.s=d+""),d=""),o)break t;u="relative path start";continue}"\t"==b||"\n"==b||"\r"==b?a("Invalid code point in port: "+b):(i.call(this),this.i=!0)}break;case"relative path start":if("\\"==b&&a("'\\' not allowed in path."),u="relative path","/"!=b&&"\\"!=b)continue;break;case"relative path":null!=b&&"/"!=b&&"\\"!=b&&(o||"?"!=b&&"#"!=b)?"\t"!=b&&"\n"!=b&&"\r"!=b&&(d+=n(b)):("\\"==b&&a("\\ not allowed in relative path."),(g=l[d.toLowerCase()])&&(d=g),".."==d?(this.l.pop(),"/"!=b&&"\\"!=b&&this.l.push("")):"."==d&&"/"!=b&&"\\"!=b?this.l.push(""):"."!=d&&("file"==this.h&&0==this.l.length&&2==d.length&&f.test(d[0])&&"|"==d[1]&&(d=d[0]+":"),this.l.push(d)),d="","?"==b?(this.u="?",u="query"):"#"==b&&(this.C="#",u="fragment"));break;case"query":o||"#"!=b?null!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this.u+=r(b)):(this.C="#",u="fragment");break;case"fragment":null!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this.C+=b)}p++}}function i(){this.v=this.pa=this.h="",this.g=null,this.s=this.j="",this.l=[],this.C=this.u="",this.D=this.i=!1}function s(t,e){void 0===e||e instanceof s||(e=new s(String(e))),this.Ma=t,i.call(this),t=t.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,""),o.call(this,t,null,e)}var a=!1;if(!t.rb)try{var u=new URL("b","http://a");u.pathname="c%20d",a="http://a/c%20d"===u.href}catch(t){}if(!a){var c=Object.create(null);c.ftp=21,c.file=0,c.gopher=70,c.http=80,c.https=443,c.ws=80,c.wss=443;var l=Object.create(null);l["%2e"]=".",l[".%2e"]="..",l["%2e."]="..",l["%2e%2e"]="..";var f=/[a-zA-Z]/,h=/[a-zA-Z0-9\+\-\.]/;s.prototype={toString:function(){return this.href},get href(){if(this.i)return this.Ma;var t="";return""==this.v&&null==this.g||(t=this.v+(null!=this.g?":"+this.g:"")+"@"),this.protocol+(this.D?"//"+t+this.host:"")+this.pathname+this.u+this.C},set href(t){i.call(this),o.call(this,t)},get protocol(){return this.h+":"},set protocol(t){this.i||o.call(this,t+":","scheme start")},get host(){return this.i?"":this.s?this.j+":"+this.s:this.j},set host(t){!this.i&&this.D&&o.call(this,t,"host")},get hostname(){return this.j},set hostname(t){!this.i&&this.D&&o.call(this,t,"hostname")},get port(){return this.s},set port(t){!this.i&&this.D&&o.call(this,t,"port")},get pathname(){return this.i?"":this.D?"/"+this.l.join("/"):this.pa},set pathname(t){!this.i&&this.D&&(this.l=[],o.call(this,t,"relative path start"))},get search(){return this.i||!this.u||"?"==this.u?"":this.u},set search(t){!this.i&&this.D&&(this.u="?","?"==t[0]&&(t=t.slice(1)),o.call(this,t,"query"))},get hash(){return this.i||!this.C||"#"==this.C?"":this.C},set hash(t){this.i||(this.C="#","#"==t[0]&&(t=t.slice(1)),o.call(this,t,"fragment"))},get origin(){var t;if(this.i||!this.h)return"";switch(this.h){case"data":case"file":case"javascript":case"mailto":return"null"}return(t=this.host)?this.h+"://"+t:""}};var p=t.URL;p&&(s.createObjectURL=function(t){return p.createObjectURL.apply(p,arguments)},s.revokeObjectURL=function(t){p.revokeObjectURL(t)}),t.URL=s}}(window),Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var t=(this.ownerDocument||this).querySelector("base[href]");return t&&t.href||window.location.href},configurable:!0,enumerable:!0});var Ui=document.createElement("style");Ui.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var zi=document.querySelector("head");zi.insertBefore(Ui,zi.firstChild);var Bi=window.customElements,Wi=!1,Vi=null;function $i(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document),Vi&&Vi(),Wi=!0,window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}Bi.polyfillWrapFlushCallback&&Bi.polyfillWrapFlushCallback(function(t){Vi=t,Wi&&t()}),"complete"!==document.readyState?(window.addEventListener("load",$i),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",$i),$i()})):$i()}).call(this)}).call(this,n(6),n(33).setImmediate)},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(34),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(6))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,s,a,u=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){d(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&d(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return c[u]=o,r(u),u++},h.clearImmediate=p}function p(t){delete c[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=c[t];if(e){l=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{p(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(6),n(35))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(t,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var i=o.element,s=a(i),u=this._rootContainsTarget(i),c=o.entry,l=e&&u&&this._computeTargetAndRootIntersection(i,n),f=o.entry=new r({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n,intersectionRect:l});c?e&&u?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(var o,i,s,u,l,f,h,p,d=a(n),y=c(n),m=!1;!m;){var v=null,b=1==y.nodeType?t.getComputedStyle(y):{};if("none"==b.display)return;if(y==this.root||y==e?(m=!0,v=r):y!=e.body&&y!=e.documentElement&&"visible"!=b.overflow&&(v=a(y)),v&&(o=v,i=d,s=void 0,u=void 0,l=void 0,f=void 0,h=void 0,p=void 0,s=Math.max(o.top,i.top),u=Math.min(o.bottom,i.bottom),l=Math.max(o.left,i.left),f=Math.min(o.right,i.right),p=u-s,!(d=(h=f-l)>=0&&p>=0&&{top:s,bottom:u,left:l,right:f,width:h,height:p})))break;y=c(y)}return d}},o.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},o.prototype._rootIsInDom=function(){return!this.root||u(e,this.root)},o.prototype._rootContainsTarget=function(t){return u(this.root||e,t)},o.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},o.prototype._unregisterInstance=function(){var t=n.indexOf(this);-1!=t&&n.splice(t,1)},t.IntersectionObserver=o,t.IntersectionObserverEntry=r}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function o(t,e){var n,r,o,i=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){n(),o=null},r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function s(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t,e){for(var n=e;n;){if(n==t)return!0;n=c(n)}return!1}function c(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}}(window,document)},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r,o,i;r=function(){return this}(),i={},function(t,e){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=h}function r(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function o(e,r,o){var i=new n;return r&&(i.fill="both",i.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach(function(n){if("auto"!=e[n]){if(("number"==typeof i[n]||"duration"==n)&&("number"!=typeof e[n]||isNaN(e[n])))return;if("fill"==n&&-1==l.indexOf(e[n]))return;if("direction"==n&&-1==f.indexOf(e[n]))return;if("playbackRate"==n&&1!==e[n]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;i[n]=e[n]}}):i.duration=e,i}function i(t,e,n,r){return t<0||t>1||n<0||n>1?h:function(o){function i(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(o<=0){var s=0;return t>0?s=e/t:!e&&n>0&&(s=r/n),s*o}if(o>=1){var a=0;return n<1?a=(r-1)/(n-1):1==n&&t<1&&(a=(e-1)/(t-1)),1+a*(o-1)}for(var u=0,c=1;u<c;){var l=(u+c)/2,f=i(t,n,l);if(Math.abs(o-f)<1e-5)return i(e,r,l);f<o?u=l:c=l}return i(e,r,l)}}function s(t,e){return function(n){if(n>=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function a(t){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=t;var e=v.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return h;var e=g.exec(t);if(e)return i.apply(this,e.slice(1).map(Number));var n=w.exec(t);return n?s(Number(n[1]),{start:p,middle:d,end:y}[n[2]]):m[t]||h}function c(t,e,n){if(null==e)return _;var r=n.delay+t+n.endDelay;return e<Math.min(n.delay,r)?E:e>=Math.min(n.delay+t,r)?S:x}var l="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),h=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(a(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var p=1,d=.5,y=0,m={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":s(1,p),"step-middle":s(1,d),"step-end":s(1,y)},v=null,b="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",g=new RegExp("cubic-bezier\\("+b+","+b+","+b+","+b+"\\)"),w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,_=0,E=1,S=2,x=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=o,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return o(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=c(t,e,n),o=function(t,e,n,r,o){switch(r){case E:return"backwards"==e||"both"==e?0:null;case x:return n-o;case S:return"forwards"==e||"both"==e?t:null;case _:return null}}(t,n.fill,e,r,n.delay);if(null===o)return null;var i=function(t,e,n,r,o){var i=o;return 0===t?e!==E&&(i+=n):i+=r/t,i}(n.duration,r,n.iterations,o,n.iterationStart),s=function(t,e,n,r,o,i){var s=t===1/0?e%1:t%1;return 0!==s||n!==S||0===r||0===o&&0!==i||(s=1),s}(i,n.iterationStart,r,n.iterations,o,n.duration),a=function(t,e,n,r){return t===S&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,s,i),u=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var o=e;"alternate-reverse"===t&&(o+=1),r="normal",o!==1/0&&o%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,a,s);return n._easingFunction(u)},t.calculatePhase=c,t.normalizeEasing=a,t.parseEasingFunction=u}(o={}),function(t,e){function n(t,e){return t in u&&u[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var o=i[t];if(o)for(var a in s.style[t]=e,o){var u=o[a],c=s.style[u];r[u]=n(u,c)}else r[t]=n(t,e)}}function o(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var o,i=r.length,s=0;s<i;s++)(o={}).offset="offset"in t?t.offset:1==i?1:s/(i-1),"easing"in t&&(o.easing=t.easing),"composite"in t&&(o.composite=t.composite),o[n]=r[s],e.push(o)}return e.sort(function(t,e){return t.offset-e.offset}),e}var i={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},s=document.createElementNS("http://www.w3.org/1999/xhtml","div"),a={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:a,borderLeftWidth:a,borderRightWidth:a,borderTopWidth:a,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:a,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=o,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=o(e));for(var n=e.map(function(e){var n={};for(var o in e){var i=e[o];if("offset"==o){if(null!=i){if(i=Number(i),!isFinite(i))throw new TypeError("Keyframe offsets must be numbers.");if(i<0||i>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==o){if("add"==i||"accumulate"==i)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=i)throw new TypeError("Invalid composite mode "+i+".")}else i="easing"==o?t.normalizeEasing(i):""+i;r(o,i,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n}),i=!0,s=-1/0,a=0;a<n.length;a++){var u=n[a].offset;if(null!=u){if(u<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=u}else i=!1}return n=n.filter(function(t){return t.offset>=0&&t.offset<=1}),i||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,o=1;o<t;o++){var i=n[o].offset;if(null!=i){for(var s=1;s<o-e;s++)n[e+s].offset=r+(i-r)*s/(o-e);e=o,r=i}}}(),n}}(o),function(t){var e={};t.isDeprecated=function(t,n,r,o){var i=o?"are":"is",s=new Date,a=new Date(n);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+i+" deprecated and will stop working on "+a.toDateString()+". "+r),e[t]=!0,1))},t.deprecated=function(e,n,r,o){var i=o?"are":"is";if(t.isDeprecated(e,n,r,o))throw new Error(e+" "+i+" no longer supported. "+r)}}(o),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(n){void 0===t[n]&&(e=!0)})),!e)return}!function(t,e,n){e.convertEffectInput=function(n){var r=function(t){for(var e={},n=0;n<t.length;n++)for(var r in t[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var o={offset:t[n].offset,easing:t[n].easing,value:t[n][r]};e[r]=e[r]||[],e[r].push(o)}for(var i in e){var s=e[i];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}(t.normalizeKeyframes(n)),o=function(n){var r=[];for(var o in n)for(var i=n[o],s=0;s<i.length-1;s++){var a=s,u=s+1,c=i[a].offset,l=i[u].offset,f=c,h=l;0==s&&(f=-1/0,0==l&&(u=a)),s==i.length-2&&(h=1/0,1==c&&(a=u)),r.push({applyFrom:f,applyTo:h,startOffset:i[a].offset,endOffset:i[u].offset,easingFunction:t.parseEasingFunction(i[a].easing),property:o,interpolation:e.propertyInterpolation(o,i[a].value,i[u].value)})}return r.sort(function(t,e){return t.startOffset-e.startOffset}),r}(r);return function(t,n){if(null!=n)o.filter(function(t){return n>=t.applyFrom&&n<t.applyTo}).forEach(function(r){var o=n-r.startOffset,i=r.endOffset-r.startOffset,s=0==i?0:r.easingFunction(o/i);e.apply(t,r.property,r.interpolation(s))});else for(var i in r)"offset"!=i&&"easing"!=i&&"composite"!=i&&e.clear(t,i)}}}(o,i),function(t,e,n){function r(t){return t.replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function o(t,e,n){i[n]=i[n]||[],i[n].push([t,e])}var i={};e.addPropertiesHandler=function(t,e,n){for(var i=0;i<n.length;i++)o(t,e,r(n[i]))};var s={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(n,o,a){var u=n;/-/.test(n)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=o&&"initial"!=a||("initial"==o&&(o=s[u]),"initial"==a&&(a=s[u]));for(var c=o==a?[]:i[u],l=0;c&&l<c.length;l++){var f=c[l][0](o),h=c[l][0](a);if(void 0!==f&&void 0!==h){var p=c[l][1](f,h);if(p){var d=e.Interpolation.apply(null,p);return function(t){return 0==t?o:1==t?a:d(t)}}}}return e.Interpolation(!1,!0,function(t){return t?a:o})}}(o,i),function(t,e,n){e.KeyframeEffect=function(n,r,o,i){var s,a=function(e){var n=t.calculateActiveDuration(e),r=function(r){return t.calculateIterationProgress(n,r,e)};return r._totalDuration=e.delay+n+e.endDelay,r}(t.normalizeTimingInput(o)),u=e.convertEffectInput(r),c=function(){u(n,s)};return c._update=function(t){return null!==(s=a(t))},c._clear=function(){u(n,null)},c._hasSameTarget=function(t){return n===t},c._target=n,c._totalDuration=a._totalDuration,c._id=i,c}}(o,i),function(t,e){function n(t,e,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(t,e,n)}function r(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(i in t||(t[i]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[i])}(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var n=this._style[e];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function o(t){if(!t._webAnimationsPatchedStyle){var e=new r(t);try{n(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,n){t.style[e]=n},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var i="_webAnimationsUpdateSvgTransformAttr",s={cssText:1,length:1,parentRule:1},a={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var c in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=t,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;for(var r in e)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},a)r.prototype[c]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(c,c in u);for(var l in document.documentElement.style)l in s||l in a||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(l);t.apply=function(e,n,r){o(e),e.style._set(t.propertyName(n),r)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(i),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(i),i.Interpolation=function(t,e,n){return function(r){return n(function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n)return r<.5?e:n;if(e.length==n.length){for(var o=[],i=0;i<e.length;i++)o.push(t(e[i],n[i],r));return o}throw"Mismatched interpolation arguments "+e+":"+n}(t,e,r))}},function(t,e){var n=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var o=0;o<4;o++)for(var i=0;i<4;i++)n[r][o]+=e[r][i]*t[i][o];return n}return function(e,n,r,o,i){for(var s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)s[a][3]=i[a];for(a=0;a<3;a++)for(var u=0;u<3;u++)s[3][a]+=e[u]*s[u][a];var c=o[0],l=o[1],f=o[2],h=o[3],p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];p[0][0]=1-2*(l*l+f*f),p[0][1]=2*(c*l-f*h),p[0][2]=2*(c*f+l*h),p[1][0]=2*(c*l+f*h),p[1][1]=1-2*(c*c+f*f),p[1][2]=2*(l*f-c*h),p[2][0]=2*(c*f-l*h),p[2][1]=2*(l*f+c*h),p[2][2]=1-2*(c*c+l*l),s=t(s,p);var d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(d[2][1]=r[2],s=t(s,d)),r[1]&&(d[2][1]=0,d[2][0]=r[0],s=t(s,d)),r[0]&&(d[2][0]=0,d[1][0]=r[0],s=t(s,d)),a=0;a<3;a++)for(u=0;u<3;u++)s[a][u]*=n[a];return function(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}(s)?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();t.composeMatrix=n,t.quat=function(e,n,r){var o=t.dot(e,n),i=[];if(1===(o=function(t,e,n){return Math.max(Math.min(t,n),e)}(o,-1,1)))i=e;else for(var s=Math.acos(o),a=1*Math.sin(r*s)/Math.sqrt(1-o*o),u=0;u<4;u++)i.push(e[u]*(Math.cos(r*s)-o*a)+n[u]*a);return i}}(i),function(t,e,n){t.sequenceNumber=0;var r=function(t,e,n){this.target=t,this.currentTime=e,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new r(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){n.forEach(function(t){t.call(e.target,e)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(o,i),function(t,e,n){function r(t){var e=c;c=[],t<y.currentTime&&(t=y.currentTime),y._animations.sort(o),y._animations=a(t,!0,y._animations)[0],e.forEach(function(e){e[1](t)}),s()}function o(t,e){return t._sequenceNumber-e._sequenceNumber}function i(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function s(){p.forEach(function(t){t()}),p.length=0}function a(t,n,r){d=!0,h=!1,e.timeline.currentTime=t,f=!1;var o=[],i=[],s=[],a=[];return r.forEach(function(e){e._tick(t,n),e._inEffect?(i.push(e._effect),e._markTarget()):(o.push(e._effect),e._unmarkTarget()),e._needsTick&&(f=!0);var r=e._inEffect||e._needsTick;e._inTimeline=r,r?s.push(e):a.push(e)}),p.push.apply(p,o),p.push.apply(p,i),f&&requestAnimationFrame(function(){}),d=!1,[s,a]}var u=window.requestAnimationFrame,c=[],l=0;window.requestAnimationFrame=function(t){var e=l++;return 0==c.length&&u(r),c.push([e,t]),e},window.cancelAnimationFrame=function(t){c.forEach(function(e){e[0]==t&&(e[1]=function(){})})},i.prototype={_play:function(n){n._timing=t.normalizeTimingInput(n.timing);var r=new e.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),e.restart(),e.applyDirtiedAnimation(r),r}};var f=!1,h=!1;e.restart=function(){return f||(f=!0,requestAnimationFrame(function(){}),h=!0),h},e.applyDirtiedAnimation=function(t){if(!d){t._markTarget();var n=t._targetAnimations();n.sort(o),a(e.timeline.currentTime,!1,n.slice())[1].forEach(function(t){var e=y._animations.indexOf(t);-1!==e&&y._animations.splice(e,1)}),s()}};var p=[],d=!1,y=new i;e.timeline=y}(o,i),function(t,e){function n(t,e){for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[r];return n}function r(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function o(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function i(t){switch(t.t){case"rotatex":var e=o(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":return e=o(t.d[0]),[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":return e=o(t.d[0]),[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=t.d[0],r=t.d[1],i=t.d[2],s=(e=o(t.d[3]),n*n+r*r+i*i);if(0===s)n=1,r=0,i=0;else if(1!==s){var a=Math.sqrt(s);n/=a,r/=a,i/=a}var u=Math.sin(e/2),c=u*Math.cos(e/2),l=u*u;return[1-2*(r*r+i*i)*l,2*(n*r*l+i*c),2*(n*i*l-r*c),0,2*(n*r*l-i*c),1-2*(n*n+i*i)*l,2*(r*i*l+n*c),0,2*(n*i*l+r*c),2*(r*i*l-n*c),1-2*(n*n+r*r)*l,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var f=o(t.d[0]),h=o(t.d[1]);return[1,Math.tan(h),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=o(t.d[0]),[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return e=o(t.d[0]),[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=t.d[0].px||0,r=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,i=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=t.d[0].px||0,r=t.d[1].px||0,i=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function s(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(i).reduce(r)}var a=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function e(t){var e=r(t);return[t[0]/e,t[1]/e,t[2]/e]}function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function o(t,e,n,r){return[n*t[0]+r*e[0],n*t[1]+r*e[1],n*t[2]+r*e[2]]}return function(i){var s=[i.slice(0,4),i.slice(4,8),i.slice(8,12),i.slice(12,16)];if(1!==s[3][3])return null;for(var a=[],u=0;u<4;u++)a.push(s[u].slice());for(u=0;u<3;u++)a[u][3]=0;if(0===t(a))return null;var c,l=[];s[0][3]||s[1][3]||s[2][3]?(l.push(s[0][3]),l.push(s[1][3]),l.push(s[2][3]),l.push(s[3][3]),c=function(t,e){for(var n=[],r=0;r<4;r++){for(var o=0,i=0;i<4;i++)o+=t[i]*e[i][r];n.push(o)}return n}(l,function(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}(function(e){for(var n=1/t(e),r=e[0][0],o=e[0][1],i=e[0][2],s=e[1][0],a=e[1][1],u=e[1][2],c=e[2][0],l=e[2][1],f=e[2][2],h=[[(a*f-u*l)*n,(i*l-o*f)*n,(o*u-i*a)*n,0],[(u*c-s*f)*n,(r*f-i*c)*n,(i*s-r*u)*n,0],[(s*l-a*c)*n,(c*o-r*l)*n,(r*a-o*s)*n,0]],p=[],d=0;d<3;d++){for(var y=0,m=0;m<3;m++)y+=e[3][m]*h[m][d];p.push(y)}return p.push(1),h.push(p),h}(a)))):c=[0,0,0,1];var f=s[3].slice(0,3),h=[];h.push(s[0].slice(0,3));var p=[];p.push(r(h[0])),h[0]=e(h[0]);var d=[];h.push(s[1].slice(0,3)),d.push(n(h[0],h[1])),h[1]=o(h[1],h[0],1,-d[0]),p.push(r(h[1])),h[1]=e(h[1]),d[0]/=p[1],h.push(s[2].slice(0,3)),d.push(n(h[0],h[2])),h[2]=o(h[2],h[0],1,-d[1]),d.push(n(h[1],h[2])),h[2]=o(h[2],h[1],1,-d[2]),p.push(r(h[2])),h[2]=e(h[2]),d[1]/=p[2],d[2]/=p[2];var y=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(h[1],h[2]);if(n(h[0],y)<0)for(u=0;u<3;u++)p[u]*=-1,h[u][0]*=-1,h[u][1]*=-1,h[u][2]*=-1;var m,v,b=h[0][0]+h[1][1]+h[2][2]+1;return b>1e-4?(m=.5/Math.sqrt(b),v=[(h[2][1]-h[1][2])*m,(h[0][2]-h[2][0])*m,(h[1][0]-h[0][1])*m,.25/m]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?v=[.25*(m=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/m,(h[0][2]+h[2][0])/m,(h[2][1]-h[1][2])/m]:h[1][1]>h[2][2]?(m=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),v=[(h[0][1]+h[1][0])/m,.25*m,(h[1][2]+h[2][1])/m,(h[0][2]-h[2][0])/m]):(m=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),v=[(h[0][2]+h[2][0])/m,(h[1][2]+h[2][1])/m,.25*m,(h[1][0]-h[0][1])/m]),[f,p,d,v,c]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[a(s(t))]},t.transformListToMatrix=s}(i),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,o){for(var i=[],s=[],a=[],u=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,o.length),c=0;c<u;c++){var l=e(r[c%r.length],o[c%o.length]);if(!l)return;i.push(l[0]),s.push(l[1]),a.push(l[2])}return[i,s,function(e){var r=e.map(function(t,e){return a[e](t)}).join(n);return t?t(r):r}]}t.consumeToken=e,t.consumeTrimmed=n,t.consumeRepeated=function(t,r,o){t=n.bind(null,t);for(var i=[];;){var s=t(o);if(!s)return[i,o];if(i.push(s[0]),!(s=e(r,o=s[1]))||""==s[1])return[i,o];o=s[1]}},t.consumeParenthesised=function(t,e){for(var n=0,r=0;r<e.length&&(!/\s|,/.test(e[r])||0!=n);r++)if("("==e[r])n++;else if(")"==e[r]&&(0==--n&&r++,n<=0))break;var o=t(e.substr(0,r));return null==o?void 0:[o,e.substr(r)]},t.ignore=function(t){return function(e){var n=t(e);return n&&(n[0]=void 0),n}},t.optional=function(t,e){return function(n){return t(n)||[e,n]}},t.consumeList=function(e,n){for(var r=[],o=0;o<e.length;o++){var i=t.consumeTrimmed(e[o],n);if(!i||""==i[0])return;void 0!==i[0]&&r.push(i[0]),n=i[1]}if(""==n)return r},t.mergeNestedRepeated=r.bind(null,null),t.mergeWrappedNestedRepeated=r,t.mergeList=function(t,e,n){for(var r=[],o=[],i=[],s=0,a=0;a<n.length;a++)if("function"==typeof n[a]){var u=n[a](t[s],e[s++]);r.push(u[0]),o.push(u[1]),i.push(u[2])}else!function(t){r.push(!1),o.push(!1),i.push(function(){return n[t]})}(a);return[r,o,function(t){for(var e="",n=0;n<t.length;n++)e+=i[n](t[n]);return e}]}}(i),function(t){function e(e){var n={inset:!1,lengths:[],color:null},r=t.consumeRepeated(function(e){var r;return(r=t.consumeToken(/^inset/i,e))?(n.inset=!0,r):(r=t.consumeLengthOrPercent(e))?(n.lengths.push(r[0]),r):(r=t.consumeColor(e))?(n.color=r[0],r):void 0},/^/,e);if(r&&r[0].length)return[n,r[1]]}var n=function(e,n,r,o){function i(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],u=0;u<r.length||u<o.length;u++){var c=r[u]||i(o[u].inset),l=o[u]||i(r[u].inset);s.push(c),a.push(l)}return t.mergeNestedRepeated(e,n,s,a)}.bind(null,function(e,n){for(;e.lengths.length<Math.max(e.lengths.length,n.lengths.length);)e.lengths.push({px:0});for(;n.lengths.length<Math.max(e.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(e.inset==n.inset&&!!e.color==!!n.color){for(var r,o=[],i=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var u=t.mergeDimensions(e.lengths[a],n.lengths[a],2==a);i[0].push(u[0]),s[0].push(u[1]),o.push(u[2])}if(e.color&&n.color){var c=t.mergeColors(e.color,n.color);i[1]=c[0],s[1]=c[1],r=c[2]}return[i,s,function(t){for(var n=e.inset?"inset ":" ",i=0;i<o.length;i++)n+=o[i](t[0][i])+" ";return r&&(n+=r(t[1])),n}]}},", ");t.addPropertiesHandler(function(n){var r=t.consumeRepeated(e,/^,/,n);if(r&&""==r[1])return r[0]},n,["box-shadow","text-shadow"])}(i),function(t,e){function n(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(t,e,n){return Math.min(e,Math.max(t,n))}function o(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function i(t,e){return function(o,i){return[o,i,function(o){return n(r(t,e,o))}]}}function s(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var n=[],r=0;r<e.length;r++){var i=o(e[r]);if(void 0===i)return;n.push(i)}return n}}t.clamp=r,t.addPropertiesHandler(s,function(t,e){if(t.length==e.length)return[t,e,function(t){return t.map(n).join(" ")}]},["stroke-dasharray"]),t.addPropertiesHandler(o,i(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(o,i(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(o,function(t,e){if(0!=t)return i(0,1/0)(t,e)},["flex-grow","flex-shrink"]),t.addPropertiesHandler(o,function(t,e){return[t,e,function(t){return Math.round(r(1,1/0,t))}]},["orphans","widows"]),t.addPropertiesHandler(o,function(t,e){return[t,e,Math.round]},["z-index"]),t.parseNumber=o,t.parseNumberList=s,t.mergeNumbers=function(t,e){return[t,e,n]},t.numberToString=n}(i),i.addPropertiesHandler(String,function(t,e){if("visible"==t||"visible"==e)return[0,1,function(n){return n<=0?t:n>=1?e:"visible"}]},["visibility"]),function(t,e){function n(t){t=t.trim(),i.fillStyle="#000",i.fillStyle=t;var e=i.fillStyle;if(i.fillStyle="#fff",i.fillStyle=t,e==i.fillStyle){i.fillRect(0,0,1,1);var n=i.getImageData(0,0,1,1).data;i.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){function n(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(n(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var o=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");o.width=o.height=1;var i=o.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(i),function(t,e){function n(t){function e(){var e=s.exec(t);i=e?e[0]:void 0}function n(){if("("!==i)return function(){var t=Number(i);return e(),t}();e();var t=o();return")"!==i?NaN:(e(),t)}function r(){for(var t=n();"*"===i||"/"===i;){var r=i;e();var o=n();"*"===r?t*=o:t/=o}return t}function o(){for(var t=r();"+"===i||"-"===i;){var n=i;e();var o=r();"+"===n?t+=o:t-=o}return t}var i,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),o()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.replace(t,function(t){return r[t]=null,"U"+t});for(var o="U("+t.source+")",i=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+o,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(i)?(i=i.replace(s[a],"$1"),a=0):a++;if("D"==i){for(var u in r){var c=n(e.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(o,"g"),"*0"));if(!isFinite(c))return;r[u]=c}return r}}}function o(t,e){return i(t,e,!0)}function i(e,n,r){var o,i=[];for(o in e)i.push(o);for(o in n)i.indexOf(o)<0&&i.push(o);return e=i.map(function(t){return e[t]||0}),n=i.map(function(t){return n[t]||0}),[e,n,function(e){var n=e.map(function(n,o){return 1==e.length&&r&&(n=Math.max(n,0)),t.numberToString(n)+i[o]}).join(" + ");return e.length>1?"calc("+n+")":n}]}var s="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",a=r.bind(null,new RegExp(s,"g")),u=r.bind(null,new RegExp(s+"|%","g")),c=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=a,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=c,t.mergeDimensions=i;var l=t.consumeParenthesised.bind(null,a),f=t.consumeRepeated.bind(void 0,l,/^/),h=t.consumeRepeated.bind(void 0,f,/^,/);t.consumeSizePairList=h;var p=t.mergeNestedRepeated.bind(void 0,o," "),d=t.mergeNestedRepeated.bind(void 0,p,",");t.mergeNonNegativeSizePair=p,t.addPropertiesHandler(function(t){var e=h(t);if(e&&""==e[1])return e[0]},d,["background-size"]),t.addPropertiesHandler(u,o,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(u,i,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(i),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var o=t.mergeWrappedNestedRepeated.bind(null,function(t){return"rect("+t+")"},function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var o=r?e:n;if("auto"==o)return"auto";var i=t.mergeDimensions(o,o);return i[2](i[0])}]:t.mergeDimensions(e,n)},", ");t.parseBox=r,t.mergeBoxes=o,t.addPropertiesHandler(r,o,["clip"])}(i),function(t,e){function n(t){return function(e){var n=0;return t.map(function(t){return t===c?e[n++]:t})}}function r(t){return t}function o(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,o=[],i=0;n=r.exec(e);){if(n.index!=i)return;i=n.index+n[0].length;var s=n[1],a=h[s];if(!a)return;var u=n[2].split(","),c=a[0];if(c.length<u.length)return;for(var p=[],d=0;d<c.length;d++){var y,m=u[d],v=c[d];if(void 0===(y=m?{A:function(e){return"0"==e.trim()?f:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[v.toUpperCase()](m):{a:f,n:p[0],t:l}[v]))return;p.push(y)}if(o.push({t:s,d:p}),r.lastIndex==e.length)return o}}function i(t){return t.toFixed(6).replace(".000000","")}function s(e,n){if(e.decompositionPair!==n){e.decompositionPair=n;var r=t.makeMatrixDecomposition(e)}if(n.decompositionPair!==e){n.decompositionPair=e;var o=t.makeMatrixDecomposition(n)}return null==r[0]||null==o[0]?[[!1],[!0],function(t){return t?n[0].d:e[0].d}]:(r[0].push(0),o[0].push(1),[r,o,function(e){var n=t.quat(r[0][3],o[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],n,e[4]).map(i).join(",")}])}function a(t){return t.replace(/[xy]/,"")}function u(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var c=null,l={px:0},f={deg:0},h={matrix:["NNNNNN",[c,c,0,0,c,c,0,0,0,0,1,0,c,c,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([c,c,1]),r],scalex:["N",n([c,1,1]),n([c,1])],scaley:["N",n([1,c,1]),n([1,c])],scalez:["N",n([1,1,c])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([c,f])],skewy:["A",null,n([f,c])],translate:["Tt",n([c,c,l]),r],translatex:["T",n([c,l,l]),n([c,l])],translatey:["T",n([l,c,l]),n([l,c])],translatez:["L",n([l,l,c])],translate3d:["TTL",r]};t.addPropertiesHandler(o,function(e,n){var r=t.makeMatrixDecomposition&&!0,o=!1;if(!e.length||!n.length){e.length||(o=!0,e=n,n=[]);for(var i=0;i<e.length;i++){var c=e[i].t,l=e[i].d,f="scale"==c.substr(0,5)?1:0;n.push({t:c,d:l.map(function(t){if("number"==typeof t)return f;var e={};for(var n in t)e[n]=f;return e})})}}var p=function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)},d=[],y=[],m=[];if(e.length!=n.length){if(!r)return;d=[(S=s(e,n))[0]],y=[S[1]],m=[["matrix",[S[2]]]]}else for(i=0;i<e.length;i++){var v=e[i].t,b=n[i].t,g=e[i].d,w=n[i].d,_=h[v],E=h[b];if(p(v,b)){if(!r)return;var S=s([e[i]],[n[i]]);d.push(S[0]),y.push(S[1]),m.push(["matrix",[S[2]]])}else{if(v==b)c=v;else if(_[2]&&E[2]&&a(v)==a(b))c=a(v),g=_[2](g),w=E[2](w);else{if(!_[1]||!E[1]||u(v)!=u(b)){if(!r)return;d=[(S=s(e,n))[0]],y=[S[1]],m=[["matrix",[S[2]]]];break}c=u(v),g=_[1](g),w=E[1](w)}for(var x=[],O=[],T=[],C=0;C<g.length;C++)S=("number"==typeof g[C]?t.mergeNumbers:t.mergeDimensions)(g[C],w[C]),x[C]=S[0],O[C]=S[1],T.push(S[2]);d.push(x),y.push(O),m.push([c,T])}}if(o){var N=d;d=y,y=N}return[d,y,function(t){return t.map(function(t,e){var n=t.map(function(t,n){return m[e][1][n](t)}).join(",");return"matrix"==m[e][0]&&16==n.split(",").length&&(m[e][0]="matrix3d"),m[e][0]+"("+n+")"}).join(" ")}]},["transform"]),t.transformToSvgMatrix=function(e){var n=t.transformListToMatrix(o(e));return"matrix("+i(n[0])+" "+i(n[1])+" "+i(n[4])+" "+i(n[5])+" "+i(n[12])+" "+i(n[13])+")"}}(i),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler(function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e},function(t,n){return[t,n,e]},["font-weight"])}(i),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function r(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function o(e,o){var i=t.consumeRepeated(r,/^/,o);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var u=a[0];a[0]=a[1],a[1]=u}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map(function(t){return"object"==n(t)?t:s[t]})}}}function i(n){var o=t.consumeRepeated(r,/^/,n);if(o){for(var i=o[0],a=[{"%":50},{"%":50}],u=0,c=!1,l=0;l<i.length;l++){var f=i[l];"string"==typeof f?(c=/bottom|right/.test(f),a[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=s[f],"center"==f&&u++):(c&&((f=e(f))["%"]=(f["%"]||0)+100),a[u]=f,u++,c=!1)}return[a,o[1]]}}var s={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(o.bind(null,3),a,["transform-origin"]),t.addPropertiesHandler(o.bind(null,2),a,["perspective-origin"]),t.consumePosition=i,t.mergeOffsetList=a;var u=t.mergeNestedRepeated.bind(null,a,", ");t.addPropertiesHandler(function(e){var n=t.consumeRepeated(i,/^,/,e);if(n&&""==n[1])return n[0]},u,["background-position","object-position"])}(i),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),n=t.consumeRepeated.bind(void 0,e,/^/),r=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),o=t.mergeNestedRepeated.bind(void 0,r,",");t.addPropertiesHandler(function(r){var o=t.consumeToken(/^circle/,r);if(o&&o[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var i=t.consumeToken(/^ellipse/,r);if(i&&i[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),n,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],i[1]));var s=t.consumeToken(/^polygon/,r);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0},function(e,n){if(e[0]===n[0])return"circle"==e[0]?t.mergeList(e.slice(1),n.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),n.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==n[1]?t.mergeList(e.slice(2),n.slice(2),["polygon(",e[1],o,")"]):void 0},["shape-outside"])}(i),function(t,e){function n(t,e){e.concat([t]).forEach(function(e){e in document.documentElement.style&&(r[t]=e),o[e]=t})}var r={},o={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return r[t]||t},t.unprefixedPropertyName=function(t){return o[t]||t}}(i)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var t=function(){return performance.now()};else t=function(){return Date.now()};var e=function(t,e,n){this.target=t,this.currentTime=e,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,o){var i=n.call(this,r,o);i._cancelHandlers=[],i.oncancel=null;var s=i.cancel;i.cancel=function(){s.call(this);var n=new e(this,null,t()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){r.forEach(function(t){t.call(n.target,n)})},0)};var a=i.addEventListener;i.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var u=i.removeEventListener;return i.removeEventListener=function(t,e){if("cancel"==t){var n=this._cancelHandlers.indexOf(e);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,t,e)},i}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var o="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[o,o]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==o}catch(t){}finally{n&&n.cancel()}if(!r){var i=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),i.call(this,e,n)}}}(o),r.true={}},function(t,e){window.requestIdleCallback=window.requestIdleCallback||function(t){return window.setTimeout(t,0)},window.cancelIdleCallback=window.cancelIdleCallback||window.clearTimeout},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e,r){var o=[],i={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!1},_q:[],on:function(t,e){var n=this;setTimeout(function(){e(n[t])},0)},addTest:function(t,e,n){o.push({name:t,fn:e,options:n})},addAsyncTest:function(t){o.push({name:null,fn:t})}},s=function(){};s.prototype=i,(s=new s).addTest("customelements","customElements"in t),s.addTest("customevent","CustomEvent"in t&&"function"==typeof t.CustomEvent),s.addTest("eventlistener","addEventListener"in t),s.addTest("history",function(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history)}),s.addTest("queryselector","querySelector"in e&&"querySelectorAll"in e),s.addTest("promises",function(){return"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&(new t.Promise(function(t){e=t}),"function"==typeof e);var e});var a=[];function u(t,e){return n(t)===e}var c=i._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];i._prefixes=c;var l=e.documentElement;function f(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,n){return e+n.toUpperCase()}).replace(/^-/,"")}s.addTest("classlist","classList"in l),s.addTest("documentfragment",function(){return"createDocumentFragment"in e&&"appendChild"in l});var h="svg"===l.nodeName.toLowerCase();function p(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):h?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function d(t,n,r,o){var i,s,a,u,c="modernizr",f=p("div"),d=function(){var t=e.body;return t||((t=p(h?"svg":"body")).fake=!0),t}();if(parseInt(r,10))for(;r--;)(a=p("div")).id=o?o[r]:c+(r+1),f.appendChild(a);return(i=p("style")).type="text/css",i.id="s"+c,(d.fake?d:f).appendChild(i),d.appendChild(f),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(e.createTextNode(t)),f.id=c,d.fake&&(d.style.background="",d.style.overflow="hidden",u=l.style.overflow,l.style.overflow="hidden",l.appendChild(d)),s=n(f,t),d.fake?(d.parentNode.removeChild(d),l.style.overflow=u,l.offsetHeight):f.parentNode.removeChild(f),!!s}s.addTest("opacity",function(){var t=p("a").style;return t.cssText=c.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),s.addTest("csspointerevents",function(){var t=p("a").style;return t.cssText="pointer-events:auto","auto"===t.pointerEvents}),s.addTest("cssremunit",function(){var t=p("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)});var y=i.testStyles=d;s.addTest("touchevents",function(){var n;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)n=!0;else{var r=["@media (",c.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");y(r,function(t){n=9===t.offsetTop})}return n});var m=i._config.usePrefixes?"Moz O ms Webkit".split(" "):[];i._cssomPrefixes=m;var v=function(e){var n,o=c.length,i=t.CSSRule;if(void 0===i)return r;if(!e)return!1;if((n=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var s=0;s<o;s++){var a=c[s];if(a.toUpperCase()+"_"+n in i)return"@-"+a.toLowerCase()+"-"+e}return!1};i.atRule=v;var b=i._config.usePrefixes?"Moz O ms Webkit".toLowerCase().split(" "):[];function g(t,e){return function(){return t.apply(e,arguments)}}i._domPrefixes=b;var w={elem:p("modernizr")};s._q.push(function(){delete w.elem});var _={style:w.elem.style};function E(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function S(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(E(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+E(e[o])+":"+n+")");return d("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",function(e){return"absolute"==function(e,n,r){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,n);var i=t.console;null!==o?r&&(o=o.getPropertyValue(r)):i&&i[i.error?"error":"log"].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else o=!n&&e.currentStyle&&e.currentStyle[r];return o}(e,null,"position")})}return r}function x(t,e,n,o,i){var s=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+m.join(s+" ")+s).split(" ");return u(e,"string")||u(e,"undefined")?function(t,e,n,o){if(o=!u(o,"undefined")&&o,!u(n,"undefined")){var i=S(t,n);if(!u(i,"undefined"))return i}for(var s,a,c,l,h,d=["modernizr","tspan","samp"];!_.style&&d.length;)s=!0,_.modElem=p(d.shift()),_.style=_.modElem.style;function y(){s&&(delete _.style,delete _.modElem)}for(c=t.length,a=0;a<c;a++)if(l=t[a],h=_.style[l],~(""+l).indexOf("-")&&(l=f(l)),_.style[l]!==r){if(o||u(n,"undefined"))return y(),"pfx"!=e||l;try{_.style[l]=n}catch(t){}if(_.style[l]!=h)return y(),"pfx"!=e||l}return y(),!1}(a,e,o,i):function(t,e,n){var r;for(var o in t)if(t[o]in e)return!1===n?t[o]:u(r=e[t[o]],"function")?g(r,n||e):r;return!1}(a=(t+" "+b.join(s+" ")+s).split(" "),e,n)}s._q.unshift(function(){delete _.style}),i.testAllProps=x;var O=i.prefixed=function(t,e,n){return 0===t.indexOf("@")?v(t):(-1!=t.indexOf("-")&&(t=f(t)),e?x(t,e,n):x(t,"pfx"))};function T(t,e,n){return x(t,r,r,e,n)}s.addTest("requestanimationframe",!!O("requestAnimationFrame",t),{aliases:["raf"]}),s.addTest("matchmedia",!!O("matchMedia",t)),i.testAllProps=T,s.addTest("cssanimations",T("animationName","a",!0)),s.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&T("transform","scale(1)",!0)}),s.addTest("template","content"in p("template")),function(){var t,e,n,r,i,c;for(var l in o)if(o.hasOwnProperty(l)){if(t=[],(e=o[l]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(n=0;n<e.options.aliases.length;n++)t.push(e.options.aliases[n].toLowerCase());for(r=u(e.fn,"function")?e.fn():e.fn,i=0;i<t.length;i++)1===(c=t[i].split(".")).length?s[c[0]]=r:(!s[c[0]]||s[c[0]]instanceof Boolean||(s[c[0]]=new Boolean(s[c[0]])),s[c[0]][c[1]]=r),a.push((r?"":"no-")+c.join("-"))}}(),delete i.addTest,delete i.addAsyncTest;for(var C=0;C<s._q.length;C++)s._q[C]();t.Modernizr=s}(window,document)},function(t,e){console.log(" __ __ __ __ \r\n/\\ \\/\\ \\ /\\ \\ __ /\\ \\ \r\n\\ \\ \\_\\ \\ __ __ \\_\\ \\ __ /\\_\\ __ ___ \\ \\ \\/'\\ \r\n \\ \\ _ \\ /\\ \\/\\ \\ /'_` \\ /'__`\\ \\/\\ \\ /'__`\\ /'___\\\\ \\ , < \r\n \\ \\ \\ \\ \\\\ \\ \\_\\ \\ /\\ \\L\\ \\ /\\ __/ \\ \\ \\ /\\ \\L\\.\\_ /\\ \\__/ \\ \\ \\\\`\\ \r\n \\ \\_\\ \\_\\\\/`____ \\\\ \\___,_\\\\ \\____\\ _\\ \\ \\\\ \\__/.\\_\\\\ \\____\\ \\ \\_\\ \\_\\\r\n \\/_/\\/_/ `/___/> \\\\/__,_ / \\/____//\\ \\_\\ \\\\/__/\\/_/ \\/____/ \\/_/\\/_/\r\n /\\___/ \\ \\____/ \r\n \\/__/ \\/___/ \n\n"),console.log("Powered by Hydejack v8.3.1 <https://hydejack.com/>")},function(t,e,n){"use strict";var r=n(7),o=n(23)(0),i=n(56)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(43),o=n(44),i=n(46),s=Object.defineProperty;e.f=n(13)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(13)&&!n(14)(function(){return 7!=Object.defineProperty(n(45)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),o=n(8).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(8),o=n(12),i=n(49),s=n(19)("src"),a=n(50),u=(""+a).split("toString");n(3).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,s)||o(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=n(20)("native-function-to-string",Function.toString)},function(t,e){t.exports=!1},function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(54);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(4),o=n(55),i=n(9)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(14);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(7);r(r.P,"Function",{bind:n(58)})},function(t,e,n){"use strict";var r=n(22),o=n(4),i=n(59),s=[].slice,a={};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),u=function r(){var o=n.concat(s.call(arguments));return this instanceof r?function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)}(e,o.length,o):i(e,o,t)};return o(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){n(61),t.exports=n(3).String.includes},function(t,e,n){"use strict";var r=n(7),o=n(62);r(r.P+r.F*n(64)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(63),o=n(16);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(15),i=n(9)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(9)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){n(66),t.exports=n(3).Array.find},function(t,e,n){"use strict";var r=n(7),o=n(23)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(27)("find")},function(t,e,n){var r=n(28),o=n(68),i={};for(var s in r)r.hasOwnProperty(s)&&(i[r[s]]=s);var a=t.exports={to:{},get:{}};function u(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}a.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=a.get.hsl(t),n="hsl";break;case"hwb":e=a.get.hwb(t),n="hwb";break;default:e=a.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},a.get.rgb=function(t){if(!t)return null;var e,n,o,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var s=2*n;i[n]=parseInt(e.slice(s,s+2),16)}o&&(i[3]=Math.round(parseInt(o,16)/255*100)/100)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)i[n]=parseInt(e[n]+e[n],16);o&&(i[3]=Math.round(parseInt(o+o,16)/255*100)/100)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(e[n+1],0);e[4]&&(i[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(e=t.match(/(\D+)/))?"transparent"===e[1]?[0,0,0,0]:(i=r[e[1]])?(i[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(i[3]=parseFloat(e[4]))}for(n=0;n<3;n++)i[n]=u(i[n],0,255);return i[3]=u(i[3],0,1),i},a.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},a.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},a.to.hex=function(){var t=o(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},a.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},a.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},a.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},a.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},a.to.keyword=function(t){return i[t.slice(0,3)]}},function(t,e,n){"use strict";var r=n(69),o=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var a=t[n];r(a)?e=o.call(e,i.call(a)):e.push(a)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},function(t,e){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(29),i=n(71),s={};Object.keys(o).forEach(function(t){s[t]={},Object.defineProperty(s[t],"channels",{value:o[t].channels}),Object.defineProperty(s[t],"labels",{value:o[t].labels});var e=i(t);Object.keys(e).forEach(function(n){var o=e[n];s[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===r(n))for(var o=n.length,i=0;i<o;i++)n[i]=Math.round(n[i]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(o),s[t][n].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(o)})}),t.exports=s},function(t,e,n){var r=n(29);function o(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,o=0;o<n;o++)t[e[o]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;)for(var o=n.pop(),i=Object.keys(r[o]),s=i.length,a=0;a<s;a++){var u=i[a],c=e[u];-1===c.distance&&(c.distance=e[o].distance+1,c.parent=o,n.unshift(u))}return e}function i(t,e){return function(n){return e(t(n))}}function s(t,e){for(var n=[e[t].parent,t],o=r[e[t].parent][t],s=e[t].parent;e[s].parent;)n.unshift(e[s].parent),o=i(r[e[s].parent][s],o),s=e[s].parent;return o.conversion=n,o}t.exports=function(t){for(var e=o(t),n={},r=Object.keys(e),i=r.length,a=0;a<i;a++){var u=r[a];null!==e[u].parent&&(n[u]=s(u,e))}return n}},function(t,e,n){n(73),t.exports=n(3).Array.includes},function(t,e,n){"use strict";var r=n(7),o=n(74)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(27)("includes")},function(t,e,n){var r=n(75),o=n(25),i=n(76);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=o(u.length),l=i(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(24),o=n(16);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(26),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){"use strict";n.r(e);n(32),n(36);var r=n(10),o=(n(37),n(30)),i=n.n(o),s=(n(38),n(39),n(40),n(11),"undefined"!=typeof Set&&1===new Set([1]).size?Set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(t=t.filter(function(e,n){return n===t.indexOf(e)})).size=t.length,t.has=function(e){return t.indexOf(e)>-1},t.add=function(e){return t.has(e)||(t.size++,t.push(e)),t},t.delete=function(e){var n;return(n=t.has(e))&&(t.size--,t.splice(t.indexOf(e),1)),n},t.clear=function(){for(;t.pop(););t.size=0},t});function a(t,e){return t?t(e):e}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.replace(/([a-z\d])([A-Z])/g,"$1".concat(e,"$2")).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1".concat(e,"$2")).toLowerCase()}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var y=new s(["customevent"]),m=Symbol||function(t){return"_".concat(t)},v=m("sroot"),b=m("state");window.process=window.process||{},window.process.env=window.process.env||{},window.requestIdleCallback=window.requestIdleCallback||function(t){return window.setTimeout(t,0)},window.cancelIdleCallback=window.cancelIdleCallback||window.clearTimeout;var g=function t(){d(this,t)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;return function(e){function n(){return d(this,n),f(this,h(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(n,t),r=n,(o=[{key:"setupComponent",value:function(t,e){var n=this.constructor.defaults;this[b]=Object.assign({},n,e),this.setupProperties(this),this[v]=this.setupShadowDOM(t)}},{key:"setupShadowDOM",value:function(t){return t}},{key:"connectComponent",value:function(){}},{key:"disconnectComponent",value:function(){}},{key:"adoptComponent",value:function(){}},{key:"getRoot",value:function(){return this[v]}},{key:"getEl",value:function(){return this[v]}},{key:"fireEvent",value:function(t,e){var n=this.constructor.componentName,r=new CustomEvent("".concat(n,"-").concat(t),e);this.el.dispatchEvent(r)}},{key:"setInternalState",value:function(t,e){this[b][t]=e}},{key:"setupProperties",value:function(){var t=this,e=this.constructor.sideEffects;Object.keys(this[b]).forEach(function(n){var r=e[n];t.setupProperty(n,r)})}},{key:"setupProperty",value:function(t,e){var n=this;Object.defineProperty(this,t,{get:function(){return n[b][t]},set:function(r){var o=n[b][t];n.setInternalState(t,r),e&&e.call(n,r,o)},enumerable:!0,configurable:!0})}},{key:"sroot",get:function(){return this.getRoot()}},{key:"el",get:function(){return this.getEl()}}])&&l(r.prototype,o),i&&l(r,i),n}()};function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e,n){return(E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=S(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e,n){return e&&x(t.prototype,e),n&&x(t,n),t}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var N,k=new s([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(N=y)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(N)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}(),["template","customelements"])),j=null,A=function(t){return function(e){function n(){var t,e,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r=this,(e=!(o=(t=S(n)).call.apply(t,[this].concat(s)))||"object"!==_(o)&&"function"!=typeof o?C(r):o).setupComponent(C(C(e)),e.getStateFromAttributes()),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(n,t),O(n,null,[{key:"getObservedAttributes",value:function(){var t=this.types;return Object.keys(t).map(function(t){return u(t)})}}]),O(n,[{key:"reflectAttribute",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(t);n&&(j=r);var o=this.constructor.types[t].stringify(e);null==o?this.removeAttribute(r):this.setAttribute(r,o)}},{key:"getStateFromAttributes",value:function(){var t=this,e=this.constructor.types,n={};return Object.keys(e).forEach(function(r){var o=u(r),i=t.hasAttribute(o)?t.getAttribute(o):null,s=a(e[r],i);null!=s&&(n[r]=s)}),n}},{key:"connectedCallback",value:function(){this.connectComponent()}},{key:"disconnectedCallback",value:function(){this.disconnectComponent()}},{key:"adoptedCallback",value:function(){this.adoptComponent()}},{key:"attributeChangedCallback",value:function(t,e,n){if(j===t)j=null;else if(e!==n){var r=this.constructor.types,o=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=[].map.call(e,function(t){return t.trim()}).filter(function(t){return t.length}).join("-");return 0===r.length?"":1===r.length?r.toLowerCase():(r=function(t){for(var e=t,n=!1,r=!1,o=!1,i=0;i<e.length;i++){var s=e.charAt(i);n&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(e="".concat(e.substr(0,i),"-").concat(e.substr(i)),n=!1,o=r,r=!0,i++):r&&o&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(e="".concat(e.substr(0,i-1),"-").concat(e.substr(i-1)),o=r,r=!1,n=!0):(n=s.toLowerCase()===s,o=r,r=s.toUpperCase()===s)}return e}(r)).replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()})}(t),i=a(r[o],n);this[o]=null!=i?i:this.constructor.defaults[o]}}},{key:"setInternalState",value:function(t,e){E(S(n.prototype),"setInternalState",this).call(this,t,e),this.reflectAttribute(t,e,!0)}},{key:"setupShadowDOM",value:function(t){var e=this.getTemplate();if(e){if("attachShadow"in Element.prototype)return t.attachShadow({mode:"open"}),t.shadowRoot.appendChild(e),t.shadowRoot;throw Error("ShadowDOM API not supported")}return t}},{key:"getEl",value:function(){return this}},{key:"getTemplate",value:function(){var t=this.constructor.componentName;return document.querySelector('link[href*="'.concat(t,'"]')).import.querySelector("#".concat(t,"-template")).content.cloneNode(!0)}},{key:"template",get:function(){return this.getTemplate()}}]),n}()};function M(){var t="function"==typeof window.HTMLElement?window.HTMLElement:function(){};return Reflect.construct(t,[],this.__proto__.constructor)}Object.setPrototypeOf&&(Object.setPrototypeOf(M.prototype,HTMLElement.prototype),Object.setPrototypeOf(M,HTMLElement));
33
- /*! *****************************************************************************
34
- Copyright (c) Microsoft Corporation. All rights reserved.
35
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
36
- this file except in compliance with the License. You may obtain a copy of the
37
- License at http://www.apache.org/licenses/LICENSE-2.0
38
-
39
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
41
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
42
- MERCHANTABLITY OR NON-INFRINGEMENT.
43
-
44
- See the Apache Version 2.0 License for specific language governing permissions
45
- and limitations under the License.
46
- ***************************************************************************** */
47
- var P=function(t,e){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function R(t,e){function n(){this.constructor=t}P(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function L(t){return"function"==typeof t}var I=!1,D={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;I=t},get useDeprecatedSynchronousErrorHandling(){return I}};function F(t){setTimeout(function(){throw t})}var q={closed:!0,next:function(t){},error:function(t){if(D.useDeprecatedSynchronousErrorHandling)throw t;F(t)},complete:function(){}},H=Array.isArray||function(t){return t&&"number"==typeof t.length};function U(t){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t){return null!==t&&"object"===U(t)}function B(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}B.prototype=Object.create(Error.prototype);var W=B;function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var $=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=r?r.length:0;n;)n.remove(this),n=++s<a&&r[s]||null;if(L(o))try{o.call(this)}catch(n){e=!0,t=n instanceof W?X(n.errors):[n]}if(H(i))for(s=-1,a=i.length;++s<a;){var u=i[s];if(z(u))try{u.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof W?t=t.concat(X(n.errors)):t.push(n)}}if(e)throw new W(t)}},t.prototype.add=function(e){var n=e;switch(V(e)){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=((e=new t).closed=!0,e),t}();function X(t){return t.reduce(function(t,e){return t.concat(e instanceof W?e.errors:e)},[])}var G="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var K=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=q;break;case 1:if(!n){i.destination=q;break}if("object"===Y(n)){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new J(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new J(i,n,r,o)}return i}return R(e,t),e.prototype[G]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}($),J=function(t){function e(e,n,r,o){var i,s=t.call(this)||this;s._parentSubscriber=e;var a=s;return L(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==q&&(L((a=Object.create(n)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=i,s._error=r,s._complete=o,s}return R(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;D.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=D.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):F(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;F(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};D.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),D.useDeprecatedSynchronousErrorHandling)throw t;F(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!D.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return D.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(F(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(K);var Z="function"==typeof Symbol&&Symbol.observable||"@@observable";function Q(){}function tt(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:Q}var et=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=function(t,e,n){if(t){if(t instanceof K)return t;if(t[G])return t[G]()}return t||e||n?new K(t,e,n):new K(q)}(t,e,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||D.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),D.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){D.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,r=e.destination,o=e.isStopped;if(n||o)return!1;t=r&&r instanceof K?r:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=nt(e))(function(e,r){var o;o=n.subscribe(function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[Z]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:tt(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=nt(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function nt(t){if(t||(t=D.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function rt(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}rt.prototype=Object.create(Error.prototype);var ot=rt,it=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return R(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}($),st=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return R(e,t),e}(K),at=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return R(e,t),e.prototype[G]=function(){return new st(this)},e.prototype.lift=function(t){var e=new ut(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new ot;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new ot;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new ot;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new ot;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new ot;return this.hasError?(t.error(this.thrownError),$.EMPTY):this.isStopped?(t.complete(),$.EMPTY):(this.observers.push(t),new it(this,t))},e.prototype.asObservable=function(){var t=new et;return t.source=this,t},e.create=function(t,e){return new ut(t,e)},e}(et),ut=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return R(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):$.EMPTY},e}(at),ct=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return R(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return R(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}($)),lt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return R(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(ct),ft=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),ht=function(t){function e(n,r){void 0===r&&(r=ft.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return R(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(ft),pt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e}(ht))(lt),dt=new et(function(t){return t.complete()});function yt(t){return t?function(t){return new et(function(e){return t.schedule(function(){return e.complete()})})}(t):dt}function mt(t){return t&&"function"==typeof t.schedule}var vt,bt=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}};function gt(t,e){return new et(e?function(n){var r=new $,o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}:bt(t))}function wt(t){var e=new et(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function _t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(mt(n)?t.pop():n=void 0,t.length){case 0:return yt(n);case 1:return n?gt(t,n):wt(t[0]);default:return gt(t,n)}}function Et(t){var e=t.error;t.subscriber.error(e)}vt||(vt={});var St=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return _t(this.value);case"E":return t=this.error,new et(e?function(n){return e.schedule(Et,0,{error:t,subscriber:n})}:function(e){return e.error(t)});case"C":return yt()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();var xt=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new Ot(t,this.scheduler,this.delay))},t}(),Ot=function(t){function e(e,n,r){void 0===r&&(r=0);var o=t.call(this,e)||this;return o.scheduler=n,o.delay=r,o}return R(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Tt(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(St.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(St.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(St.createComplete()),this.unsubscribe()},e}(K),Tt=function(){return function(t,e){this.notification=t,this.destination=e}}(),Ct=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=r,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=e<1?1:e,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return R(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Nt(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new ot;if(this.isStopped||this.hasError?e=$.EMPTY:(this.observers.push(t),e=new it(this,t)),o&&t.add(t=new Ot(t,o)),n)for(var s=0;s<i&&!t.closed;s++)t.next(r[s]);else for(s=0;s<i&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||pt).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(t-r[i].time<n);)i++;return o>e&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r},e}(at),Nt=function(){return function(t,e){this.time=t,this.value=e}}();function kt(t){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function At(t,e){return!e||"object"!==kt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mt(t,e,n){return(Mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Pt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Pt(t){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rt(t,e){return(Rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Lt=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),At(this,Pt(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rt(t,e)}(n,t),r=n,(o=[{key:"setupComponent",value:function(t,e){var r=this,o={};this.subjects={},this.subjects.disconnect=new at,this.subjects.document=new Ct,Object.keys(this.constructor.types).map(function(t){r.subjects[t]=new Ct(1),o[t]=function(e){return r.subjects[t].next(e)}}),Object.defineProperty(this.constructor,"sideEffects",{get:function(){return o},set:function(){},enumerable:!0,configurable:!0}),Mt(Pt(n.prototype),"setupComponent",this).call(this,t,e)}},{key:"connectComponent",value:function(){var t=this;Mt(Pt(n.prototype),"connectComponent",this).call(this),this.subjects.document.next(document),Object.keys(this.constructor.types).map(function(e){return t.subjects[e].next(t[e])})}},{key:"disconnectComponent",value:function(){Mt(Pt(n.prototype),"disconnectComponent",this).call(this),this.subjects.disconnect.next({})}},{key:"adaptComponent",value:function(){Mt(Pt(n.prototype),"adaptComponent",this).call(this),this.subjects.document.next(document)}}])&&jt(r.prototype,o),i&&jt(r,i),n}()},It=function(t){return function(e,n,r){return et.create(function(o){var i=o.next.bind(o),s=new t(function(t){return Array.from(t).forEach(i)},n);return s.observe(e,r),function(){s.unobserve(e)}})}},Dt=function(t){return null==t?null:t.trim().replace(/^\[?(.*?)\]?$/,"$1").split(",").map(function(t){return t.trim()})||null};Dt.stringify=function(t){return t&&t.length>0?t.join(","):null};var Ft=function(t){var e=function(e){if(null==e)return null;var n=Dt(e).map(t);return n.reduce(function(t,e){return t&&null!==e},!0)?n:null};return e.stringify=function(e){var n=e&&e.map&&e.map(t.stringify);return n&&n.reduce(function(t,e){return t&&null!==e},!0)?Dt.stringify(n):null},e},qt=function(t){if(null==t)return!1;var e=t.trim&&t.trim()||t;return!("false"===e||"null"===e||"undefined"===e||"0"===e||!1===e)};qt.stringify=function(t){return t?"":null};var Ht=function(t){return null==t?null:Number(t)};Ht.stringify=function(t){return null==t?null:"".concat(t)};var Ut=function(t){var e=function(e){if(null==e)return null;var n=t.indexOf(e);return n>-1?t[n]:null};return e.stringify=function(e){return-1!==t.indexOf(e)?e:null},e},zt=function(t){if(null==t)return null;var e=(t.trim&&t.trim()||t).match(/^\/?(.*?)(\/([gimy]*))?$/);return new RegExp(e[1],e[3])};zt.stringify=function(t){return t&&t.toString()||null};var Bt=function(t){return t};Bt.stringify=function(t){return t};var Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(K),Vt=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return R(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(K),$t=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,F),e}};function Xt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Gt=Xt(),Yt=function(t){return function(e){for(var n=t[Gt]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},Kt=function(t){return function(e){var n=t[Z]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},Jt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Zt(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Qt=function(t){if(t instanceof et)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[Z])return Kt(t);if(Jt(t))return bt(t);if(Zt(t))return $t(t);if(t&&"function"==typeof t[Gt])return Yt(t);var e=z(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function te(t,e,n,r,o){if(void 0===o&&(o=new Vt(t,n,r)),!o.closed)return Qt(e)(o)}var ee={};function ne(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return mt(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&H(t[0])&&(t=t[0]),gt(t,r).lift(new re(n))}var re=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new oe(t,this.resultSelector))},t}(),oe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return R(e,t),e.prototype._next=function(t){this.values.push(ee),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(te(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){var i=this.values,s=i[n],a=this.toRespond?s===ee?--this.toRespond:this.toRespond:0;i[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Wt);function ie(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new se(t,e))}}var se=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new ae(t,this.project,this.thisArg))},t}(),ae=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return R(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(K);function ue(t){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ce(t,e){if(!e)return t instanceof et?t:new et(Qt(t));if(null!=t){if(function(t){return t&&"function"==typeof t[Z]}(t))return function(t,e){return new et(e?function(n){var r=new $;return r.add(e.schedule(function(){var o=t[Z]();r.add(o.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:Kt(t))}(t,e);if(Zt(t))return function(t,e){return new et(e?function(n){var r=new $;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:$t(t))}(t,e);if(Jt(t))return gt(t,e);if(function(t){return t&&"function"==typeof t[Gt]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new et(e?function(n){var r,o=new $;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(e.schedule(function(){r=t[Gt](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),o}:Yt(t))}(t,e)}throw new TypeError((null!==t&&ue(t)||t)+" is not observable")}function le(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(le(function(n,r){return ce(t(n,r)).pipe(ie(function(t,o){return e(n,t,r,o)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new fe(t,n))})}var fe=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new he(t,this.project,this.concurrent))},t}(),he=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return R(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new Vt(this,void 0,void 0);this.destination.add(r),te(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Wt);function pe(t){return t}function de(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),le(pe,t)}function ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return mt(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof et?t[0]:de(n)(gt(t,r))}var me=new et(Q);Object.prototype.toString;function ve(t,e,n,r){return L(n)&&(r=n,n=void 0),r?ve(t,e,n).pipe(ie(function(t){return H(t)?r.apply(void 0,t):r(t)})):new et(function(r){!function t(e,n,r,o,i){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,i),s=function(){return a.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),s=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),s=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l<f;l++)t(e[l],n,r,o,i)}o.add(s)}(t,e,function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)},r,n)})}var be=n(1);function ge(t,e){return void 0===e&&(e=null),new Te({method:"GET",url:t,headers:e})}function we(t,e,n){return new Te({method:"POST",url:t,body:e,headers:n})}function _e(t,e){return new Te({method:"DELETE",url:t,headers:e})}function Ee(t,e,n){return new Te({method:"PUT",url:t,body:e,headers:n})}function Se(t,e,n){return new Te({method:"PATCH",url:t,body:e,headers:n})}var xe=ie(function(t,e){return t.response});function Oe(t,e){return xe(new Te({method:"GET",url:t,responseType:"json",headers:e}))}var Te=function(t){function e(e){var n=t.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?function(){if(be.a.XMLHttpRequest)return new be.a.XMLHttpRequest;if(be.a.XDomainRequest)return new be.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(be.a.XMLHttpRequest)return new be.a.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new be.a.ActiveXObject(t))break}catch(t){}return new be.a.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);return n.request=r,n}var n;return R(e,t),e.prototype._subscribe=function(t){return new Ce(t,this.request)},e.create=((n=function(t){return new e(t)}).get=ge,n.post=we,n.delete=_e,n.put=Ee,n.patch=Se,n.getJSON=Oe,n),e}(et),Ce=function(t){function e(e,n){var r=t.call(this,e)||this;r.request=n,r.done=!1;var o=n.headers=n.headers||{};return n.crossDomain||r.getHeader(o,"X-Requested-With")||(o["X-Requested-With"]="XMLHttpRequest"),r.getHeader(o,"Content-Type")||be.a.FormData&&n.body instanceof be.a.FormData||void 0===n.body||(o["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=r.serializeBody(n.body,r.getHeader(n.headers,"Content-Type")),r.send(),r}return R(e,t),e.prototype.next=function(t){this.done=!0;var e,n=this.xhr,r=this.request,o=this.destination;try{e=new Ne(t,n,r)}catch(t){return o.error(t)}o.next(e)},e.prototype.send=function(){var t=this.request,e=this.request,n=e.user,r=e.method,o=e.url,i=e.async,s=e.password,a=e.headers,u=e.body;try{var c=this.xhr=t.createXHR();this.setupEvents(c,t),n?c.open(r,o,i,n,s):c.open(r,o,i),i&&(c.timeout=t.timeout,c.responseType=t.responseType),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),this.setHeaders(c,a),u?c.send(u):c.send()}catch(t){this.error(t)}},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(be.a.FormData&&t instanceof be.a.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.getHeader=function(t,e){for(var n in t)if(n.toLowerCase()===e.toLowerCase())return t[n]},e.prototype.setupEvents=function(t,e){var n=e.progressSubscriber;function r(t){var e,n=r,o=n.subscriber,i=n.progressSubscriber,s=n.request;i&&i.error(t);try{e=new Me(this,s)}catch(t){e=t}o.error(e)}if(t.ontimeout=r,r.request=e,r.subscriber=this,r.progressSubscriber=n,t.upload&&"withCredentials"in t){var o,i;if(n)o=function(t){o.progressSubscriber.next(t)},be.a.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=n;i=function(t){var e,n=i,r=n.progressSubscriber,o=n.subscriber,s=n.request;r&&r.error(t);try{e=new je("ajax error",this,s)}catch(t){e=t}o.error(e)},t.onerror=i,i.request=e,i.subscriber=this,i.progressSubscriber=n}function s(t){}function a(t){var e=a,n=e.subscriber,r=e.progressSubscriber,o=e.request;if(4===this.readyState){var i=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;if(0===i&&(i=s?200:0),i<400)r&&r.complete(),n.next(t),n.complete();else{r&&r.error(t);var u=void 0;try{u=new je("ajax error "+i,this,o)}catch(t){u=t}n.error(u)}}}t.onreadystatechange=s,s.subscriber=this,s.progressSubscriber=n,s.request=e,t.onload=a,a.subscriber=this,a.progressSubscriber=n,a.request=e},e.prototype.unsubscribe=function(){var e=this.done,n=this.xhr;!e&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),t.prototype.unsubscribe.call(this)},e}(K),Ne=function(){return function(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=Ae(this.responseType,e)}}();function ke(t,e,n){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=Ae(this.responseType,e),this}ke.prototype=Object.create(Error.prototype);var je=ke;function Ae(t,e){switch(t){case"json":return function(t){return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null")}(e);case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var Me=function(t,e){return je.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},Pe=Te.create;function Re(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return de(1)(_t.apply(void 0,t))}function Le(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];mt(n)?t.pop():n=null;var r=t.length;return Re(1!==r||n?r>0?gt(t,n):yt(n):wt(t[0]),e)}}function Ie(t){return function(e){return e.lift(new De(t))}}var De=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Fe(t),r=te(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),Fe=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return R(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(Wt);function qe(t,e){return"function"==typeof e?function(n){return n.pipe(qe(function(n,r){return ce(t(n,r)).pipe(ie(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new He(t))}}var He=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ue(t,this.project))},t}(),Ue=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return R(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new Vt(this,void 0,void 0);this.destination.add(o),this.innerSubscription=te(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(Wt);function ze(){return function(t){return t.lift(new Be(t))}}var Be=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new We(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),We=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return R(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(K),Ve=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return R(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new $).add(this.source.subscribe(new Xe(this.getSubject(),this))),t.closed?(this._connection=null,t=$.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return ze()(this)},e}(et).prototype,$e={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Ve._subscribe},_isComplete:{value:Ve._isComplete,writable:!0},getSubject:{value:Ve.getSubject},connect:{value:Ve.connect},refCount:{value:Ve.refCount}},Xe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return R(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(st);var Ge=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function Ye(){return new at}function Ke(){return function(t){return ze()((e=Ye,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new Ge(r,n));var o=Object.create(t,$e);return o.source=t,o.subjectFactory=r,o})(t));var e,n}}function Je(t,e){return function(n){return n.lift(new Ze(t,e))}}var Ze=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Qe(t,this.predicate,this.thisArg))},t}(),Qe=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return R(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(K);function tn(t,e){return function(n){return n.lift(new en(t,e))}}var en=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new nn(t,this.compare,this.keySelector))},t}(),nn=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return R(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(K);function rn(t,e,n){return function(r){return r.lift(new on(t,e,n))}}var on=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new sn(t,this.nextOrObserver,this.error,this.complete))},t}(),sn=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=Q,i._tapError=Q,i._tapComplete=Q,i._tapError=r||Q,i._tapComplete=o||Q,L(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||Q,i._tapError=n.error||Q,i._tapComplete=n.complete||Q),i}return R(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(K),an="attributeStyleMap"in Element.prototype&&"CSS"in window&&CSS.number;function un(t){var e=t.protocol,n=t.host,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return e!==r.protocol||n!==r.host}function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ln=/(\S+)(?:\s+(?:(-?\d+(?:\.\d+)?)([a-zA-Z]*)))?\s*(?:,|$)/g;function fn(t){return new pn([{url:t,width:void 0,dpr:1}])}function hn(t){for(var e,n=[];e=ln.exec(t);){var r=e[1],o=void 0,i=void 0;if(e[2]){var s=e[3].toLowerCase();if("w"==s)o=parseInt(e[2],10);else{if("x"!=s)continue;i=parseFloat(e[2])}}else i=1;n.push({url:r,width:o,dpr:i})}return new pn(n)}var pn=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sources_=e;for(var n=!1,r=!1,o=0;o<e.length;o++){var i=e[o];n=n||!!i.width,r=r||!!i.dpr}e.sort(n?dn:yn),this.widthBased_=n,this.dprBased_=r}var e,n,r;return e=t,(n=[{key:"select",value:function(t,e){var n=0;return n=this.widthBased_?this.selectByWidth_(t*e):this.selectByDpr_(e),this.sources_[n].url}},{key:"selectByWidth_",value:function(t){for(var e=this.sources_,n=0,r=1/0,o=1/0,i=0;i<e.length;i++){var s=e[i].width,a=Math.abs(s-t);if(!(a<=1.1*r||t/o>1.2))break;n=i,r=a,o=s}return n}},{key:"selectByDpr_",value:function(t){for(var e=this.sources_,n=0,r=1/0,o=0;o<e.length;o++){var i=Math.abs(e[o].dpr-t);if(!(i<=r))break;n=o,r=i}return n}},{key:"getUrls",value:function(){return this.sources_.map(function(t){return t.url})}},{key:"stringify",value:function(t){for(var e=[],n=this.sources_,r=0;r<n.length;r++){var o=n[r],i=o.url;t&&(i=t(i)),this.widthBased_?i+=" ".concat(o.width,"w"):i+=" ".concat(o.dpr,"x"),e.push(i)}return e.join(", ")}}])&&cn(e.prototype,n),r&&cn(e,r),t}();function dn(t,e){return t.width-e.width}function yn(t,e){return t.dpr-e.dpr}function mn(t){return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gn(t,e){return!e||"object"!==mn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wn(t,e,n){return(wn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_n(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function _n(t){return(_n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function En(t,e){return(En=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Sn=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(y),["eventlistener","queryselector","requestanimationframe"])),xn=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),gn(this,_n(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&En(t,e)}(n,Lt(w(t))),r=n,i=[{key:"componentName",get:function(){return"hy-img"}},{key:"defaults",get:function(){return{root:null,rootMargin:"0px",src:null,srcset:null,width:null,height:null,dataWidth:null,dataHeight:null,alt:null,decoding:null,longdesc:null,ismap:!1,usemap:null}}},{key:"types",get:function(){return{root:Bt,rootMargin:Bt,src:Bt,srcset:Bt,width:Ht,height:Ht,dataWidth:Ht,dataHeight:Ht,alt:Bt,decoding:Ut(["sync","async","auto"]),longdesc:Bt,ismap:qt,usemap:Bt}}}],(o=[{key:"setupComponent",value:function(t,e){wn(_n(n.prototype),"setupComponent",this).call(this,t,e),this.loadImage$=new at}},{key:"connectComponent",value:function(){var t=this;wn(_n(n.prototype),"connectComponent",this).call(this),this.img=document.createElement("img"),this.sizer=document.createElement("div"),this.loading=this.el.querySelector('[slot="loading"]'),this.loading&&this.sizer.appendChild(this.loading),an?this.img.attributeStyleMap.set("display","block"):this.img.style.display="block",this.el.appendChild(this.sizer);var e={contentRect:this.el.getBoundingClientRect()};this.resize$="ResizeObserver"in window?It(ResizeObserver)(this.el).pipe(Le(e)):_t(e);var r=function(t,e){return t||e},o=ne(this.subjects.width,this.subjects.dataWidth,r),i=ne(this.subjects.height,this.subjects.dataHeight,r),s=ne(this.resize$,o,i),a=ne(this.subjects.root,this.subjects.rootMargin).pipe(Ie(this.subjects.disconnect),qe(function(e){var n=vn(e,2),r=n[0],o=n[1];return"IntersectionObserver"in window?It(IntersectionObserver)(t.el,{root:r,rootMargin:o}):_t({isIntersecting:!0})}),ie(function(t){return t.isIntersecting}));this.trigger$=ye(a,this.loadImage$).pipe(Ke()),s.pipe(Ie(this.subjects.disconnect)).subscribe(this.updateSizerStyle.bind(this)),this.trigger$.pipe(Je(function(t){return t}),tn()).subscribe(this.triggered.bind(this)),this.fireEvent("init")}},{key:"triggered",value:function(){var t,e,n=this,r=(this.cache=new Map,ne(this.subjects.src,this.subjects.srcset).pipe(Je(function(t){var e=vn(t,2),n=e[0],r=e[1];return null!=n||null!=r}),tn(function(t,e){var n=vn(t,2),r=n[0],o=n[1],i=vn(e,2),s=i[0],a=i[1];return r===s&&o===a}),ie(function(t){var e=vn(t,2),n=e[0],r=e[1];return r?hn(r):fn(n)}))),o=ne(this.resize$,r).pipe(ie(this.selectImgURL.bind(this)),(t="href",tn(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})));ne(o,this.trigger$.pipe(tn(),Le(!0))).pipe(Ie(this.subjects.disconnect),rn(function(){return n.loading&&n.loading.removeAttribute("hidden")}),qe(this.makeRequest.bind(this)),qe(this.setImgSrcAndLoad.bind(this))).subscribe(function(){null!=n.sizer.parentNode&&n.el.removeChild(n.sizer),null==n.img.parentNode&&n.el.appendChild(n.img),n.fireEvent("load")},function(t){n.loadImageFallback()}),this.updateAttr=this.updateAttr.bind(this),this.subjects.alt.subscribe(this.updateAttr("alt")),this.subjects.decoding.subscribe(this.updateAttr("decoding")),this.subjects.longdesc.subscribe(this.updateAttr("longdesc")),this.subjects.ismap.subscribe(this.updateAttr("ismap")),this.subjects.usemap.subscribe(this.updateAttr("usemap"))}},{key:"selectImgURL",value:function(t){var e=vn(t,2),n=e[0],r=e[1],o=n.contentRect.width;return new URL(r.select(o||window.screen.width,window.devicePixelRatio||1),window.location)}},{key:"makeRequest",value:function(t){var e=vn(t,2),n=e[0],r=e[1],o=n.href,i=this.cache;return r&&!i.has(o)?Pe({method:"GET",responseType:"blob",url:n,crossDomain:un(n),headers:{Accept:"image/*"}}).pipe(ie(function(t){var e=t.response;return URL.createObjectURL(e)}),rn(function(t){return i.set(o,t)})):i.has(o)?_t(i.get(o)):me}},{key:"setImgSrcAndLoad",value:function(t){var e=ve(this.img,"load");return this.img.src=t,e}},{key:"updateAttr",value:function(t){var e=this;return function(n){return null==n||!1===n?e.img.removeAttribute(t):e.img.setAttribute(t,!0===n?"":n)}}},{key:"loadImageFallback",value:function(){this.el.hasAttribute("sizes")&&this.img.setAttribute("sizes",this.getAttribute("sizes")),this.el.hasAttribute("crossorigin")&&this.img.setAttribute("crossorigin",this.getAttribute("crossorigin")),this.el.hasAttribute("referrerpolicy")&&this.img.setAttribute("referrerpolicy",this.getAttribute("referrerpolicy")),this.srcset&&(this.img.srcset=this.srcset),this.src&&(this.img.src=this.src),null!=this.sizer.parentNode&&this.el.removeChild(this.sizer),null==this.img.parentNode&&this.el.appendChild(this.img),this.fireEvent("load")}},{key:"updateSizerStyle",value:function(t){var e=vn(t,3),n=e[0],r=e[1],o=e[2],i=n.contentRect.width;an?(this.sizer.attributeStyleMap.set("position","relative"),null!=r&&null!=o?r>=i?(this.sizer.attributeStyleMap.set("width",CSS.percent(100)),this.sizer.attributeStyleMap.set("padding-top",CSS.percent(o/r*100))):(this.sizer.attributeStyleMap.set("width",CSS.px(r)),this.sizer.attributeStyleMap.set("height",CSS.px(o))):(this.sizer.attributeStyleMap.set("width",CSS.percent(100)),this.sizer.attributeStyleMap.set("height",CSS.percent(100)))):(this.sizer.style.position="relative",null!=r&&null!=o?r>=i?(this.sizer.style.width="100%",this.sizer.style.paddingTop="".concat(o/r*100,"%")):(this.sizer.style.width="".concat(r,"px"),this.sizer.style.height="".concat(o,"px")):(this.sizer.style.width="100%",this.sizer.style.height="100%"))}},{key:"disconnectComponent",value:function(){wn(_n(n.prototype),"disconnectComponent",this).call(this),this.cache&&this.cache.forEach(function(t){URL.revokeObjectURL(t)})}},{key:"loadImage",value:function(){this.loadImage$.next(!0)}}])&&bn(r.prototype,o),i&&bn(r,i),n}()};function On(t){return(On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cn(t,e){return!e||"object"!==On(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function kn(t,e){return(kn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var An=new s([].concat(jn(k),jn(Sn))),Mn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Cn(this,Nn(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kn(t,e)}(e,A(xn(M))),n=e,o=[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}],(r=[{key:"getTemplate",value:function(){return null}}])&&Tn(n.prototype,r),o&&Tn(n,o),e}(),Pn=(n(5),navigator.userAgent.toLowerCase()),Rn=Pn.indexOf("safari")>0&&Pn.indexOf("chrome")<0,Ln=Pn.indexOf("mobile")>0,In=Rn&&Ln,Dn=Pn.indexOf("ucbrowser")>0,Fn=Pn.indexOf("firefox")>0,qn=Pn.indexOf("fxios")>0&&Pn.indexOf("safari")>0,Hn="attributeStyleMap"in Element.prototype&&"CSS"in window&&CSS.number;function Un(t){var e=!0;return t.forEach(function(t){var n=window.Modernizr[t];e=e&&n}),e}function zn(){for(;this.firstChild;)this.removeChild(this.firstChild)}function Bn(t,e,n){return et.create(function(r){var o=t.animate(e,n);return o.addEventListener("finish",function(t){return r.next(t),requestAnimationFrame(function(){return requestAnimationFrame(r.complete.bind(r))})}),function(){"finished"!==o.playState&&o.cancel()}})}function Wn(t){var e=document.getElementById(t);return e&&document.importNode(e.content,!0)}function Vn(t){return new et(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?ce(n):yt()).subscribe(e)})}Un(An)?window.customElements.define("hy-img",Mn):Array.prototype.forEach.call(document.getElementsByTagName("hy-img"),function(t){return t.innerHTML=t.children[0].innerText});var $n=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return R(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(ct),Xn=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<o&&(t=n.shift()));if(this.active=!1,e){for(;++r<o&&(t=n.shift());)t.unsubscribe();throw e}},e}(ht))($n);function Gn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new Yn(r,n))}}var Yn=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Kn(t,this.observables,this.project))},t}(),Kn=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.observables=n,o.project=r,o.toRespond=[];var i=n.length;o.values=new Array(i);for(var s=0;s<i;s++)o.toRespond.push(s);for(s=0;s<i;s++){var a=n[s];o.add(te(o,a,a,s))}return o}return R(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e;var i=this.toRespond;if(i.length>0){var s=i.indexOf(n);-1!==s&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Wt);var Jn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Zn(t),r=e.subscribe(n);return r.add(te(n,this.notifier)),r},t}(),Zn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return R(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,o){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(Wt),Qn=new ht(ct);var tr=function(){return function(t,e){this.value=t,this.timestamp=e}}();function er(){return function(t){return t.lift(new nr)}}var nr=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new rr(t))},t}(),rr=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return R(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(K);function or(t){return function(e){return e.lift(new ir(t))}}var ir=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new sr(t,this.total))},t}(),sr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return R(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(K);function ar(t,e,n,r,o){return et.create(function(i){var s,a=requestAnimationFrame(function u(c){var l=c-(s=s||c);l<r?(i.next(t(l,e,n,r,o)),a=requestAnimationFrame(u)):(i.next(t(r,e,n,r,o)),a=requestAnimationFrame(function(){return i.complete()}))});return function(){a&&cancelAnimationFrame(a)}})}function ur(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e}function cr(t){return hr(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||fr()}function lr(t,e){return hr(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||fr()}function fr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function hr(t){if(Array.isArray(t))return t}var pr=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(e){return 0===n.length?e.pipe(Gn(t),Je(function(t){return lr(t,2)[1]}),ie(function(t){return lr(t,1)[0]})):e.pipe(Gn.apply(void 0,[t].concat(n)),Je(function(t){return cr(t).slice(1).every(function(t){return t})}),ie(function(t){return lr(t,1)[0]}))}};function dr(t){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function mr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vr(t,e){return!e||"object"!==dr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function br(t){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function gr(t,e){return(gr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var wr=Math.min.bind(Math),_r=Math.max.bind(Math),Er=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),vr(this,br(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gr(t,e)}(n,t),r=n,(o=[{key:"calcIsInRange",value:function(t,e){switch(this.align){case"left":var n=this.range[0],r=this.range[1];return t>n&&(e||t<r);case"right":var o=window.innerWidth-this.range[0],i=window.innerWidth-this.range[1];return t<o&&(e||t>i);default:throw Error()}}},{key:"calcIsSwipe",value:function(t){var e=yr(t,4),n=e[0].clientX,r=e[1].clientX,o=e[2],i=e[3];return n!==r||o>0&&o<i}},{key:"calcWillOpen",value:function(t){var e=yr(t,5),n=e[2],r=e[3],o=e[4];switch(this.align){case"left":return o>.15||!(o<-.15)&&n>=r/2;case"right":return-o>.15||!(-o<-.15)&&n<=-r/2;default:throw Error()}}},{key:"calcTranslateX",value:function(t,e,n,r){switch(this.align){case"left":return _r(0,wr(r,n+(t-e)));case"right":return wr(0,_r(-r,n+(t-e)));default:throw Error()}}}])&&mr(r.prototype,o),i&&mr(r,i),n}()};function Sr(t){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Or(t,e){return!e||"object"!==Sr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tr(t){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Cr(t,e){return(Cr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Nr="attributeStyleMap"in Element.prototype&&"CSS"in window&&CSS.number,kr=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Or(this,Tr(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cr(t,e)}(n,t),r=n,(o=[{key:"histId",value:function(){return this.el.id||this.constructor.componentName}},{key:"prepareInteraction",value:function(){Nr?(this.contentEl.attributeStyleMap.set("will-change","transform"),this.scrimEl.attributeStyleMap.set("will-change","opacity")):(this.contentEl.style.willChange="transform",this.scrimEl.style.willChange="opacity"),this.fireEvent("prepare")}},{key:"cleanupInteraction",value:function(t){Nr?(this.contentEl.attributeStyleMap.delete("will-change"),this.scrimEl.attributeStyleMap.delete("will-change"),t?this.scrimEl.attributeStyleMap.set("pointer-events",new CSSKeywordValue("all")):this.scrimEl.attributeStyleMap.delete("pointer-events")):(this.scrimEl.style.willChange="",this.contentEl.style.willChange="",this.scrimEl.style.pointerEvents=t?"all":""),this.fireEvent("transitioned",{detail:t})}},{key:"updateDOM",value:function(t,e){this.translateX=t;var n="left"===this.align?1:-1,r=this.opacity=t/e*n;this.moveCallback&&this.moveCallback({translateX:t,opacity:r}),Nr?(this.contentEl.attributeStyleMap.set("transform",new CSSTransformValue([new CSSTranslate(CSS.px(t),CSS.px(0))])),this.scrimEl.attributeStyleMap.set("opacity",this.opacity)):(this.contentEl.style.transform="translateX(".concat(t,"px)"),this.scrimEl.style.opacity=this.opacity)}}])&&xr(r.prototype,o),i&&xr(r,i),n}()};function jr(t){return function(e){return e.lift(new Ar(t))}}var Ar=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Mr(t,this.value))},t}(),Mr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return R(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(K);function Pr(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Pr.prototype=Object.create(Error.prototype);var Rr=Pr;function Lr(t){return function(e){return 0===t?yt():e.lift(new Ir(t))}}var Ir=function(){function t(t){if(this.total=t,this.total<0)throw new Rr}return t.prototype.call=function(t,e){return e.subscribe(new Dr(t,this.total))},t}(),Dr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return R(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(K);var Fr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new qr(t,this.notifier,e))},t}(),qr=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.notifier=n,o.source=r,o.sourceIsBeingSubscribedTo=!0,o}return R(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new at;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=te(this,e)},e}(Wt);var Hr=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new Ur(t,this.predicate))},t}(),Ur=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return R(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(K);function zr(t){return(zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Br(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vr(t,e){return!e||"object"!==zr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $r(t){return($r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xr(t,e){return(Xr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Gr=Math.abs.bind(Math),Yr=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Vr(this,$r(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xr(t,e)}(n,t),r=n,(o=[{key:"getStartObservable",value:function(){return ne(this.subjects.document,this.subjects.touchEvents,this.subjects.mouseEvents).pipe(qe(function(t){var e=Br(t,3),n=e[0],r=e[1],o=e[2];return ye(r?ve(n,"touchstart",{passive:!0}).pipe(Je(function(t){return 1===t.touches.length}),ie(function(t){return t.touches[0]})):me,o?ve(n,"mousedown").pipe(rn(function(t){return t.event=t,t})):me)}))}},{key:"getMoveObservable",value:function(t,e){return ne(this.subjects.document,this.subjects.touchEvents,this.subjects.mouseEvents,this.subjects.preventDefault).pipe(qe(function(n){var r,o=Br(n,4),i=o[0],s=o[1],a=o[2],u=o[3],c=s?ve(i,"touchmove",{passive:!u}).pipe(ie(function(t){return t.touches[0].event=t,t.touches[0]})):me,l=a?ve(i,"mousemove",{passive:!u}).pipe((r=ye(t.pipe(jr(!0)),e.pipe(jr(!1))),function(t){return r.pipe(qe(function(e){return e?t:me}))}),rn(function(t){return t.event=t,t})):me;return ye(c,l)}))}},{key:"getEndObservable",value:function(){return ne(this.subjects.document,this.subjects.touchEvents,this.subjects.mouseEvents).pipe(qe(function(t){var e=Br(t,3),n=e[0],r=e[1],o=e[2];return ye(r?ve(n,"touchend",{passive:!0}).pipe(Je(function(t){return 0===t.touches.length}),ie(function(t){return t.changedTouches[0]})):me,o?ve(n,"mouseup",{passive:!0}):me)}))}},{key:"getIsSlidingObservable",value:function(t,e,n){return this.getIsSlidingObservable2(t,e).pipe(Lr(1),Le(void 0),(r=function(){return n},function(t){return t.lift(new Fr(r))}));var r}},{key:"getIsSlidingObservable2",value:function(t,e){var n,r=this;return this.threshold?t.pipe(Gn(e),(n=function(t){var e=Br(t,2),n=e[0],o=n.clientX,i=n.clientY,s=e[1],a=s.clientX,u=s.clientY;return Gr(u-i)<r.threshold&&Gr(a-o)<r.threshold},function(t){return t.lift(new Hr(n))}),ie(function(t){var e=Br(t,2),n=e[0],r=n.clientX,o=n.clientY,i=e[1],s=i.clientX,a=i.clientY;return Gr(s-r)>=Gr(a-o)})):t.pipe(Gn(e),ie(function(t){var e=Br(t,2),n=e[0],o=n.clientX,i=n.clientY,s=n.event,a=e[1],u=a.clientX,c=a.clientY,l=Gr(u-o)>=Gr(c-i);return r.preventDefault&&l&&s.preventDefault(),l}))}}])&&Wr(r.prototype,o),i&&Wr(r,i),n}()};function Kr(t){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qr(t,e){return!e||"object"!==Kr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function to(t){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function eo(t,e){return(eo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var no=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Qr(this,to(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eo(t,e)}(n,Yr(kr(Er(t)))),r=n,(o=[{key:"setupObservables",value:function(){var t=this,e={contentRect:this.contentEl.getBoundingClientRect()},n=("ResizeObserver"in window?It(ResizeObserver)(this.contentEl).pipe(Le(e)):_t(e)).pipe(Ie(this.subjects.disconnect),ie(function(t){return t.contentRect.width}),Ke(),Le(e.contentRect.width));this._peek$&&(n=ne(n,this._peek$).pipe(ie(function(t){var e=Jr(t,2);return e[0]-e[1]})));var r,o=this.subjects.persistent.pipe(ie(function(t){return!t})),i=this.getStartObservable().pipe(Ie(this.subjects.disconnect),pr(o),Ke()),s=Vn(function(){return t.translateX$.pipe(ie(function(t){return 0!=t}))}),a=i.pipe(Gn(s),ie(function(e){var n=Jr(e,2),r=n[0].clientX,o=n[1];return t.calcIsInRange(r,o)}),rn(function(e){e&&(t.mouseEvents&&t.contentEl.classList.add("hy-drawer-grabbing"),t.prepareInteraction())}),Ke()),u=this.getEndObservable().pipe(Ie(this.subjects.disconnect),pr(o,a),Ke()),c=this.getMoveObservable(i,u).pipe(Ie(this.subjects.disconnect),pr(o,a),Ke()),l=this.getIsSlidingObservable(c,i,u).pipe(rn(function(e){e&&t.fireEvent("slidestart",{detail:t.opened})}));this.translateX$=Vn(function(){return ye(t.tween$,c.pipe(pr(l),rn(function(e){var n=e.event;return t.preventDefault&&n.preventDefault()}),Gn(i,t.startTranslateX$,n),(e=Xn,void 0===r&&(r=0),function(t){return t.lift(new xt(e,r))}),ie(function(e){var n=Jr(e,4),r=n[0].clientX,o=n[1].clientX,i=n[2],s=n[3];return t.calcTranslateX(r,o,i,s)})),ne(t.subjects.opened,t.subjects.align,n).pipe(rn(function(e){var n=Jr(e,1)[0];return t.cleanupInteraction(n)}),ie(function(t){var e=Jr(t,3),n=e[0],r=e[1],o=e[2];return n?o*("left"===r?1:-1):0})));var e,r}).pipe(Ie(this.subjects.disconnect),Ke()),this.startTranslateX$=this.translateX$.pipe((r=i,function(t){return t.lift(new Jn(r))}));var f,h=this.translateX$.pipe((void 0===f&&(f=Qn),ie(function(t){return new tr(t,f.now())})),er(),Je(function(t){var e=Jr(t,2),n=e[0].timestamp;return e[1].timestamp-n>0}),ie(function(t){var e=Jr(t,2),n=e[0],r=n.value,o=n.timestamp,i=e[1];return(i.value-r)/(i.timestamp-o)}),Le(0)),p=ye(u.pipe(rn(function(){return t.contentEl.classList.remove("hy-drawer-grabbing")}),Gn(i,this.translateX$,n,h),Je(this.calcIsSwipe.bind(this)),ie(this.calcWillOpen.bind(this)),rn(function(e){return t.fireEvent("slideend",{detail:e})})),this.animateTo$.pipe(rn(this.prepareInteraction.bind(this))));this.tween$=p.pipe(rn(function(e){return t.setInternalState("opened",e)}),Gn(this.translateX$,n),qe(function(e){var n=Jr(e,3),r=n[0],o=n[1],s=n[2],a="left"===t.align?1:-1;return ar(ur,o,(r?s*a:0)-o,200+.15*s).pipe(rn({complete:function(){return t.subjects.opened.next(r)}}),Ie(i),Ie(t.subjects.align.pipe(or(1))),Ke())})),this.translateX$.pipe(Gn(n)).subscribe(function(e){var n=Jr(e,2),r=n[0],o=n[1];return t.updateDOM(r,o)}),ve(this.scrimEl,"click").pipe(Ie(this.subjects.disconnect)).subscribe(function(){return t.close()}),o.pipe(Ie(this.subjects.disconnect)).subscribe(function(e){t.scrimEl.style.display=e?"block":"none"}),this.subjects.align.pipe(Ie(this.subjects.disconnect)).subscribe(function(e){t.contentEl.classList.remove("hy-drawer-left"),t.contentEl.classList.remove("hy-drawer-right"),t.contentEl.classList.add("hy-drawer-".concat(e))}),this.subjects.mouseEvents.pipe(Ie(this.subjects.disconnect),qe(function(e){return e?t.contentEl.classList.add("hy-drawer-grab"):t.contentEl.classList.remove("hy-drawer-grab"),e?i.pipe(Gn(a)):me})).subscribe(function(t){var e=Jr(t,2),n=e[0].event;return e[1]&&n&&n.preventDefault()}),this.fireEvent("init",{detail:this.opened})}}])&&Zr(r.prototype,o),i&&Zr(r,i),n}()};function ro(t){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function io(t,e){return!e||"object"!==ro(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function so(t,e,n){return(so="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ao(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ao(t){return(ao=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function uo(t,e){return(uo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var co=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(y),["eventlistener","queryselector","requestanimationframe","classlist","opacity","csstransforms","csspointerevents"])),lo=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),io(this,ao(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&uo(t,e)}(n,no(Lt(w(t)))),r=n,i=[{key:"componentName",get:function(){return"hy-drawer"}},{key:"types",get:function(){return{opened:qt,align:Ut(["left","right"]),persistent:qt,range:Ft(Ht),threshold:Ht,preventDefault:qt,touchEvents:qt,mouseEvents:qt}}},{key:"defaults",get:function(){return{opened:!1,align:"left",persistent:!1,range:[0,100],threshold:10,preventDefault:!1,touchEvents:!1,mouseEvents:!1}}}],(o=[{key:"setupComponent",value:function(t,e){so(ao(n.prototype),"setupComponent",this).call(this,t,e),this.animateTo$=new at,this.scrimEl=this.sroot.querySelector(".hy-drawer-scrim"),this.contentEl=this.sroot.querySelector(".hy-drawer-content"),this.contentEl.classList.add("hy-drawer-".concat(this.align))}},{key:"connectComponent",value:function(){this.setupObservables(),so(ao(n.prototype),"connectComponent",this).call(this)}},{key:"open",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.animateTo$.next(!0):this.opened=!0}},{key:"close",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.animateTo$.next(!1):this.opened=!1}},{key:"toggle",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.animateTo$.next(!this.opened):this.opened=!this.opened}}])&&oo(r.prototype,o),i&&oo(r,i),n}()};function fo(t){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ho(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function po(t,e){return!e||"object"!==fo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yo(t){return(yo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function mo(t,e){return(mo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vo(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var bo=new s([].concat(vo(k),vo(co))),go=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),po(this,yo(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mo(t,e)}(e,A(lo(M))),n=e,o=[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}],(r=[{key:"getTemplate",value:function(){return t='<div class="hy-drawer-scrim"></div> <div class="hy-drawer-content"> <slot></slot> </div> <style> @media screen { .hy-drawer-scrim { position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; opacity: 0; pointer-events: none; transform: translateX(0); -webkit-tap-highlight-color: transparent; @apply --hy-drawer-scrim-container; background: rgba(0, 0, 0, 0.5); background: var(--hy-drawer-scrim-background, rgba(0, 0, 0, 0.5)); z-index: 20; z-index: var(--hy-drawer-scrim-z-index, 20); } .hy-drawer-content { position: fixed; top: 0; height: 100vh; overflow-x: hidden; overflow-y: auto; transform: translateX(0); contain: strict; -webkit-overflow-scrolling: touch; @apply --hy-drawer-content-container; width: 300px; width: var(--hy-drawer-width, 300px); background: #e8e8e8; background: var(--hy-drawer-background, #e8e8e8); box-shadow: 0 0 15px rgba(0, 0, 0, 0.25); box-shadow: var(--hy-drawer-box-shadow, 0 0 15px rgba(0, 0, 0, 0.25)); z-index: 30; z-index: var(--hy-drawer-z-index, 30); } .hy-drawer-content.hy-drawer-left { left: -300px; left: calc( -1 * var(--hy-drawer-slide-width, var(--hy-drawer-width, 300px))); } .hy-drawer-content.hy-drawer-right { right: -300px; right: calc( -1 * var(--hy-drawer-slide-width, var(--hy-drawer-width, 300px))); } .hy-drawer-grab { cursor: move; cursor: -webkit-grab; cursor: -moz-grab; cursor: grab; } .hy-drawer-grabbing { cursor: -webkit-grabbing; cursor: -moz-grabbing; cursor: grabbing; } } @media print { .hy-drawer-scrim { display: none !important; } .hy-drawer-content { transform: none !important; } } </style>',document.createRange().createContextualFragment(t);var t}}])&&ho(n.prototype,r),o&&ho(n,o),e}();function wo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var _o=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(bo),["cssremunit","classlist","eventlistener","matchmedia"])),Eo="(min-width: 64em)",So="(min-width: 1666px)",xo=21,Oo=28,To=1,Co=2,No=3;function ko(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function jo(){return xo*ko()}function Ao(){return document.body.clientWidth/2-Oo*ko()}var Mo=function(t){return function(e){return t.pipe(qe(function(t){return t?e:me}))}};window._noDrawer||!Un(_o)||Dn||requestIdleCallback(function(){var t=document.getElementsByTagName("hy-drawer")[0],e=document.getElementById("_menu"),n=document.getElementById("_sidebar"),o=document.querySelector(".sidebar-sticky");function i(){var i=It(r.a)(t).pipe(ie(function(){return window.matchMedia(So).matches?No:window.matchMedia(Eo).matches?Co:To}),Ke(),Le(window.matchMedia(So).matches?No:window.matchMedia(Eo).matches?Co:To)),a=i.pipe(ie(function(t){return t>=No?Ao():jo()})),u=a.pipe(Gn(i),ie(function(t){var e=wo(t,2),n=e[0];return e[1]>=Co?document.body.clientWidth/2-n/2:document.body.clientWidth/2})),c=a.pipe(Gn(i),ie(function(t){var e=wo(t,2),n=e[0];return e[1]>=Co?[0,n]:In&&!navigator.standalone?[35,150]:[0,150]}));et.create(function(e){return t.moveCallback=function(t){return e.next(t)}}).pipe(Gn(u,i)).subscribe(function(t){var e=wo(t,3),n=e[0].opacity,r=e[1];return s(e[2]>=Co,r,n)}),t.addEventListener("hy-drawer-prepare",function(){Hn?(n.attributeStyleMap.set("will-change","transform"),o.attributeStyleMap.set("will-change","opacity")):(n.style.willChange="transform",o.style.willChange="opacity")}),t.addEventListener("hy-drawer-transitioned",function(){Hn?(n.attributeStyleMap.delete("will-change"),o.attributeStyleMap.delete("will-change")):(n.style.willChange="",o.style.willChange="")}),e.addEventListener("click",function(t){In&&t.preventDefault(),window._drawer.toggle()});var l=ve(t,"hy-drawer-transitioned").pipe(ie(function(t){return t.detail}),tn(),rn(function(t){return!t&&void((e=document.getElementById("_swipe"))&&e.parentNode.removeChild(e));var e}));ve(window,"popstate",{passive:!0}).pipe(Mo(l)).subscribe(function(){return window._drawer.close()});var f=window.pageYOffset||document.body.scrollTop,h=t.classList.contains("cover")&&f<=0;t._peek$=i.pipe(ie(function(t){switch(t){case No:return Ao();case Co:return jo();case To:return.5*ko()}}));var p=h?null:t.getBoundingClientRect().height;t.addEventListener("hy-drawer-init",function(){!function(){var t=document.getElementById("_hrefSwipeSVG");if(t){var e=document.createElement("img");e.id="_swipe",e.src=t.href,e.alt="Swipe image",e.addEventListener("click",function(){return window._drawer.close()}),document.getElementById("_sidebar").appendChild(e)}}(),t.classList.add("loaded"),p&&f>=p&&window.scrollTo(0,f-p)},{once:!0}),u.pipe(Gn(i),or(1)).subscribe(function(e){var n=wo(e,2),r=n[0];return s(n[1]>=Co,r,void 0!==t.opacity?t.opacity:h?1:0)}),window._drawer=function(t,e){return e&&t.setAttribute("opened",""),Rn&&t.setAttribute("threshold",0),Ln||t.setAttribute("mouse-events",""),Fn&&t.removeAttribute("prevent-default"),window.customElements.define("hy-drawer",go),t}(t,h),c.subscribe(function(e){return t.range=e})}function s(t,e,r){var i=1-r;if(Hn){var s=new CSSTransformValue([new CSSTranslate(CSS.px(e*i),CSS.px(0))]);n.attributeStyleMap.set("transform",s),o.attributeStyleMap.set("opacity",t?1:r)}else n.style.transform="translateX(".concat(e*i,"px)"),o.style.opacity=t?1:r}!function e(){getComputedStyle(t).getPropertyValue("--hy-drawer-width")?i():setTimeout(e,300)}()});n(60);var Po=window.URL;if(!(Po&&Po.prototype&&"href"in Po.prototype)){(Po=function(t,e){if(!t)throw new TypeError("Invalid argument");var n=document.implementation.createHTMLDocument("");if(e){var r=n.createElement("base");r.href=e,n.head.appendChild(r)}var o=n.createElement("a");if(o.href=t,n.body.appendChild(o),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o})}).prototype={toString:function(){return this.href},get href(){return this._anchorElement.href},set href(t){this._anchorElement.href=t},get protocol(){return this._anchorElement.protocol},set protocol(t){this._anchorElement.protocol=t},get host(){return this._anchorElement.host},set host(t){this._anchorElement.host=t},get hostname(){return this._anchorElement.hostname},set hostname(t){this._anchorElement.hostname=t},get port(){return this._anchorElement.port},set port(t){this._anchorElement.port=t},get pathname(){return this._anchorElement.pathname},set pathname(t){this._anchorElement.pathname=t},get search(){return this._anchorElement.search},set search(t){this._anchorElement.search=t},get hash(){return this._anchorElement.hash},set hash(t){this._anchorElement.hash=t}};var Ro=window.URL||window.webkitURL||window.mozURL;Po.createObjectURL=function(t){return Ro.createObjectURL.apply(Ro,arguments)},Po.revokeObjectURL=function(t){return Ro.revokeObjectURL.apply(Ro,arguments)},Object.defineProperty(Po.prototype,"toString",{enumerable:!1})}var Lo=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector;function Io(t){var e=t.protocol,n=t.host,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return e!==r.protocol||n!==r.host}function Do(){return window.pageYOffset||document.body.scrollTop}var Fo="push";function qo(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function Ho(t,e){return function(n){return[Je(t,e)(n),Je(qo(t,e))(n)]}}function Uo(t){return function(e){var n=new zo(t),r=e.lift(n);return n.caught=r}}var zo=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Bo(t,this.selector,this.caught))},t}(),Bo=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return R(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new Vt(this,void 0,void 0);this.add(r),te(this,n,void 0,void 0,r)}},e}(Wt);function Wo(t){return(Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function $o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xo(t,e){return!e||"object"!==Wo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Go(t){return(Go=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Yo(t,e){return(Yo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ko=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Xo(this,Go(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yo(t,e)}(n,t),r=n,(o=[{key:"histId",value:function(){return this.el.id||this.constructor.componentName}},{key:"shouldLoadAnchor",value:function(t,e){return t&&""===t.target&&(!e||-1!==t.href.search(e))}},{key:"isPushEvent",value:function(t){var e=t.url,n=t.anchor,r=t.event,o=r.metaKey,i=r.ctrlKey;return!o&&!i&&this.shouldLoadAnchor(n,this.hrefRegex)&&!Io(e,this)}},{key:"isHintEvent",value:function(t){var e=t.url,n=t.anchor;return this.shouldLoadAnchor(n,this.hrefRegex)&&!Io(e,this)&&!function(t){var e=t.hash,n=t.origin,r=t.pathname,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return""!==e&&n===o.origin&&r===o.pathname}(e,this)}},{key:"isHashChange",value:function(t){var e=Vo(t,2),n=e[0].url.pathname,r=e[1],o=r.url,i=o.pathname,s=o.hash,a=r.type;return i===n&&("pop"===a||a===Fo&&""!==s)}}])&&$o(r.prototype,o),i&&$o(r,i),n}()};function Jo(t){return(Jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qo(t,e){return!e||"object"!==Jo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ti(t){return(ti=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ei(t,e){return(ei=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ni=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Qo(this,ti(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ei(t,e)}(n,t),r=n,(o=[{key:"assignScrollPosition",value:function(t){var e,n,r,o,i,s,a=this.histId();return Object.assign(t,(e={},n=a,r=Object.assign(t[a]||{},{scrollTop:Do(),scrollHeight:(o=document.documentElement,i=document.body,s="scrollHeight",o[s]||i[s])}),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e))}},{key:"manageScrollPostion",value:function(t){var e=t.type,n=t.url.hash;switch(e){case Fo:this.scrollHashIntoView(n,{behavior:"smooth",block:"start",inline:"nearest"});break;case"pop":this.restoreScrollPostion();break;case INIT:break;default:0}}},{key:"scrollHashIntoView",value:function(t,e){if(t){var n=document.getElementById(decodeURIComponent(t.substr(1)));n&&n.scrollIntoView(e)}else window.scroll(window.pageXOffset,0)}},{key:"restoreScrollPostion",value:function(){var t=this.histId(),e=window.history.state&&window.history.state[t]||{},n=e.scrollTop;e.scrollHeight;null!=n&&window.scroll(window.pageXOffset,n)}},{key:"restoreScrollPostionOnReload",value:function(){0!=Do()||this.restoreScrollPostion()}}])&&Zo(r.prototype,o),i&&Zo(r,i),n}()};function ri(t){return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ii(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function si(t,e){return!e||"object"!==ri(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ai(t){return(ai=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ui(t,e){return(ui=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ci=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),si(this,ai(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ui(t,e)}(n,ni(t)),r=n,(o=[{key:"updateHistoryState",value:function(t){var e=t.type,n=t.replace,r=t.url.href;if(!Io(this))switch(e){case"init":case Fo:var o=this.histId(),i=n||r===window.location.href?"replaceState":"pushState",s=Object.assign(window.history.state||{},oi({},o,{}));window.history[i](s,document.title,r);case"pop":break;default:0}}},{key:"updateHistoryStateHash",value:function(t){var e=t.type,n=t.url;if(!Io(this)&&e===Fo){var r=this.histId();window.history.pushState(oi({},r,{}),document.title,n)}}},{key:"updateHistoryTitle",value:function(t){var e=t.type,n=t.title;document.title=n,Io(this)||e!==Fo||window.history.replaceState(window.history.state,n,window.location)}},{key:"saveScrollPosition",value:function(){if(!Io(this)){var t=this.assignScrollPosition(window.history.state||{});window.history.replaceState(t,document.title,window.location)}}}])&&ii(r.prototype,o),i&&ii(r,i),n}()};function li(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),gt(t,void 0).lift(new fi(n))}var fi=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new hi(t,this.resultSelector))},t}(),hi=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var o=t.call(this,e)||this;return o.iterators=[],o.active=0,o.resultSelector="function"==typeof n?n:null,o.values=r,o}return R(e,t),e.prototype._next=function(t){var e=this.iterators;H(t)?e.push(new di(t)):"function"==typeof t[Gt]?e.push(new pi(t[Gt]())):e.push(new yi(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];if(r.stillUnsubscribed)this.destination.add(r.subscribe(r,n));else this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return}var o=!1,i=[];for(r=0;r<e;r++){var s,a=(s=t[r]).next();if(s.hasCompleted()&&(o=!0),a.done)return void n.complete();i.push(a.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),o&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(K),pi=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),di=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Gt]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),yi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.parent=n,o.observable=r,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return R(e,t),e.prototype[Gt]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return te(this,this.observable,this,e)},e}(Wt);function mi(t){return(mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gi(t,e){return!e||"object"!==mi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wi(t){return(wi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _i(t,e){return(_i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ei=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),gi(this,wi(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_i(t,e)}(n,t),r=n,(o=[{key:"makeRequest",value:function(t){var e=this;return Pe({method:"GET",responseType:"text",url:t.url,crossDomain:Io(this),headers:{Accept:"text/html"}}).pipe(ie(function(e){var n=e.response;return Object.assign(t,{response:n})}),Uo(function(n){return e.recoverIfResponse(t,n)}))}},{key:"recoverIfResponse",value:function(t,e){var n=e.status,r=e.xhr;return r&&r.response&&n>400&&n<598?_t(Object.assign(t,{response:r.response})):_t(Object.assign(t,{error:e}))}},{key:"getFetch$",value:function(t,e,n){return t.url.href===e.url.href&&null==e.error?_t(e):n.pipe(Lr(1))}},{key:"getResponse",value:function(t,e){var n=vi(e,2),r=n[0],o=n[1];return li(this.getFetch$(r,o,t).pipe(ie(function(t){return Object.assign(t,r)})),this.animPromise,function(t){return t})}}])&&bi(r.prototype,o),i&&bi(r,i),n}()};function Si(t){return(Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Oi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ti(t,e){return!e||"object"!==Si(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ci(t){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ni(t,e){return(Ni=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ki=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Ti(this,Ci(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ni(t,e)}(n,t),r=n,(o=[{key:"tempRemoveScriptTags",value:function(t){var e=this,n=[];return t.forEach(function(t){return Array.from(t.querySelectorAll(e.scriptSelector)).forEach(function(t){var e=[t,t.previousSibling];t.parentNode.removeChild(t),n.push(e)})}),n}},{key:"insertScript",value:function(t){var e=xi(t,2),n=e[0],r=e[1],o=document.write;return document.write=function(){for(var t=document.createElement("div"),e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t.innerHTML=n.join(),Array.from(t.childNodes).forEach(function(t){r.parentNode.insertBefore(t,r.nextSibling)})},""!==n.src?et.create(function(t){n.addEventListener("load",function(e){document.write=o,t.complete(e)}),n.addEventListener("error",function(e){document.write=o,t.error(e)}),r.parentNode.insertBefore(n,r.nextSibling)}):_t({}).pipe(rn(function(){r.parentNode.insertBefore(n,r.nextSibling),document.write=o}))}},{key:"reinsertScriptTags",value:function(t){return this.scriptSelector?ce(t.scripts).pipe((e=this.insertScript.bind(this),le(e,n,1)),Uo(function(e){throw Object.assign(t,{error:e})})).toPromise().then(function(){return t}):_t(t);var e,n}}])&&Oi(r.prototype,o),i&&Oi(r,i),n}()};function ji(t){return(ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ai(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Mi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pi(t,e){return!e||"object"!==ji(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ri(t){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Li(t,e){return(Li=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ii=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Pi(this,Ri(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Li(t,e)}(n,ki(t)),r=n,(o=[{key:"getTitle",value:function(t){return(t.querySelector("title")||{}).textContent}},{key:"getReplaceElements",value:function(t){if(this.replaceIds.length>0)return this.replaceIds.map(function(e){return t.getElementById(e)});if(this.el.id)return[t.getElementById(this.el.id)];var e=Array.from(document.getElementsByTagName(this.el.tagName)).indexOf(this.el);return[t.querySelectorAll(this.el.tagName)[e]]}},{key:"responseToContent",value:function(t){var e,n=t.response,r=(e=n,document.createRange().createContextualFragment(e)),o=this.getTitle(r),i=this.getReplaceElements(r);if(i.some(function(t){return null==t}))throw Object.assign(t,{replaceElMissing:!0});var s=this.scriptSelector?this.tempRemoveScriptTags(i):[];return Object.assign(t,{documentFragment:r,title:o,replaceEls:i,scripts:s})}},{key:"replaceContentByIds",value:function(t){this.replaceIds.map(function(t){return document.getElementById(t)}).forEach(function(e,n){return e.parentNode.replaceChild(t[n],e)})}},{key:"replaceContentWholesale",value:function(t){var e=Ai(t,1)[0];this.el.innerHTML=e.innerHTML}},{key:"replaceContent",value:function(t){this.replaceIds.length>0?this.replaceContentByIds(t):this.replaceContentWholesale(t)}},{key:"updateDOM",value:function(t){try{var e=t.replaceEls;this.updateHistoryTitle(t),Io(this)&&this.rewriteURLs(e),this.replaceContent(e)}catch(e){throw Object.assign(t,{error:e})}}},{key:"rewriteURLs",value:function(t){var e=this;t.forEach(function(t){t.querySelectorAll("[href]").forEach(e.rewriteURL("href")),t.querySelectorAll("[src]").forEach(e.rewriteURL("src")),t.querySelectorAll("img[srcset]").forEach(e.rewriteURLSrcSet("srcset")),t.querySelectorAll("blockquote[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("del[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("ins[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("q[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("img[longdesc]").forEach(e.rewriteURL("longdesc")),t.querySelectorAll("frame[longdesc]").forEach(e.rewriteURL("longdesc")),t.querySelectorAll("iframe[longdesc]").forEach(e.rewriteURL("longdesc")),t.querySelectorAll("img[usemap]").forEach(e.rewriteURL("usemap")),t.querySelectorAll("input[usemap]").forEach(e.rewriteURL("usemap")),t.querySelectorAll("object[usemap]").forEach(e.rewriteURL("usemap")),t.querySelectorAll("form[action]").forEach(e.rewriteURL("action")),t.querySelectorAll("button[formaction]").forEach(e.rewriteURL("formaction")),t.querySelectorAll("input[formaction]").forEach(e.rewriteURL("formaction")),t.querySelectorAll("video[poster]").forEach(e.rewriteURL("poster")),t.querySelectorAll("object[data]").forEach(e.rewriteURL("data")),t.querySelectorAll("object[codebase]").forEach(e.rewriteURL("codebase")),t.querySelectorAll("object[archive]").forEach(e.rewriteURLList("archive"))})}},{key:"rewriteURL",value:function(t){var e=this;return function(n){try{n.setAttribute(t,new URL(n.getAttribute(t),e.href).href)}catch(t){0}}}},{key:"rewriteURLSrcSet",value:function(t){var e=this;return function(n){try{n.setAttribute(t,n.getAttribute(t).split(/\s*,\s*/).map(function(t){var n=t.split(/\s+/);return n[0]=new URL(n[0],e.href).href,n.join(" ")}).join(", "))}catch(t){0}}}},{key:"rewriteURLList",value:function(t){var e=this;return function(n){try{n.setAttribute(t,n.getAttribute(t).split(/[\s,]+/).map(function(t){return new URL(t,e.href).href}).join(", "))}catch(t){0}}}}])&&Mi(r.prototype,o),i&&Mi(r,i),n}()};function Di(t){return!H(t)&&t-parseFloat(t)+1>=0}function Fi(t,e,n){void 0===t&&(t=0);var r=-1;return Di(e)?r=Number(e)<1?1:Number(e):mt(e)&&(n=e),mt(n)||(n=Qn),new et(function(e){var o=Di(t)?t:+t-n.now();return n.schedule(qi,o,{index:0,period:r,subscriber:e})})}function qi(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function Hi(t){return(Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ui(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zi(t,e){return!e||"object"!==Hi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bi(t){return(Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Wi(t,e){return(Wi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Vi=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),zi(this,Bi(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wi(t,e)}(n,t),r=n,(o=[{key:"onStart",value:function(t){var e=this;this.animPromise=Fi(this.duration);this.fireEvent("start",{detail:Object.assign(t,{transitionUntil:function(t){e.animPromise=t}})})}},{key:"onDOMError",value:function(t){var e=t.replaceElMissing,n=t.url;e?(window.history.back(),setTimeout(function(){document.location.href=n},100)):this.fireEvent("error",{detail:t})}},{key:"onNetworkError",value:function(t){this.fireEvent("networkerror",{detail:t})}},{key:"onError",value:function(t){this.fireEvent("error",{detail:t})}},{key:"onReady",value:function(t){this.fireEvent("ready",{detail:t})}},{key:"onAfter",value:function(t){this.fireEvent("after",{detail:t})}},{key:"onProgress",value:function(t){this.fireEvent("progress",{detail:t})}},{key:"onLoad",value:function(t){this.fireEvent("load",{detail:t})}}])&&Ui(r.prototype,o),i&&Ui(r,i),n}()};function $i(t){return($i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gi(t,e){return!e||"object"!==$i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yi(t){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ki(t,e){return(Ki=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ji=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Gi(this,Yi(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ki(t,e)}(n,t),r=n,(o=[{key:"setupEventListeners",value:function(){var t=this;if("MutationObserver"in window&&"WeakSet"in window){var e=new WeakSet,n=this.pushSubject.next.bind(this.pushSubject),r=this.hintSubject.next.bind(this.hintSubject),o=function(t){e.has(t)||(e.add(t),t.addEventListener("click",n),t.addEventListener("mouseenter",r,{passive:!0}),t.addEventListener("touchstart",r,{passive:!0}),t.addEventListener("focus",r,{passive:!0}))},i=function(e){e instanceof Element&&(Lo.call(e,t.linkSelector)?o(e):Array.from(e.querySelectorAll(t.linkSelector)).forEach(o))},s=function(t){e.delete(t),t.removeEventListener("click",n),t.removeEventListener("mouseenter",r,{passive:!0}),t.removeEventListener("touchstart",r,{passive:!0}),t.removeEventListener("focus",r,{passive:!0})};It(MutationObserver)(this.el,{},{childList:!0,subtree:!0}).subscribe(function(e){var n=e.addedNodes,r=e.removedNodes;Array.from(r).forEach(function(e){e instanceof Element&&(Lo.call(e,t.linkSelector)?s(e):Array.from(e.querySelectorAll(t.linkSelector)).forEach(s))}.bind(t)),Array.from(n).forEach(i.bind(t))}),this.subjects.linkSelector.subscribe(function(){Array.from(e).forEach(s),i.call(t,t.el)})}else this.el.addEventListener("click",function(e){var n=function(t){for(var e=this;e!==document&&e!==document.documentElement;){if(Lo.call(e,t))return e;e=e.parentNode}return null}.call(e.target,t.linkSelector);n&&n.href&&(e.currentTarget=n,pushSubject.next(e))})}}])&&Xi(r.prototype,o),i&&Xi(r,i),n}()};function Zi(t){return(Zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ts(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function es(t,e){return!e||"object"!==Zi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ns(t){return(ns=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rs(t,e){return(rs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var os=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),es(this,ns(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rs(t,e)}(n,Ji(Vi(Ii(Ei(ci(Ko(t))))))),r=n,(o=[{key:"compareContext",value:function(t,e){return t.url.href===e.url.href&&t.error===e.error&&t.cacheNr===e.cacheNr}},{key:"setupObservables",value:function(){var t=this;this.cacheNr=1,this.pushSubject=new at,this.hintSubject=new at;var e=ye(this.pushSubject.pipe(Ie(this.subjects.disconnect),ie(function(e){return{type:Fo,url:new Po(e.currentTarget.href,t.href),anchor:e.currentTarget,event:e,cacheNr:t.cacheNr}}),Je(this.isPushEvent.bind(this)),rn(function(e){e.event.preventDefault(),t.saveScrollPosition()})),ve(window,"popstate").pipe(Ie(this.subjects.disconnect),Je(function(){return window.history.state&&window.history.state[t.histId()]}),ie(function(e){return{type:"pop",url:new Po(window.location,t.href),event:e,cacheNr:t.cacheNr}})),this.reload$.pipe(Ie(this.subjects.disconnect))).pipe(Le({url:new Po(this.initialHref)}),rn(function(e){var n=e.url;return t._url=n}),er(),Ke(),Ho(this.isHashChange)).map(function(t){return t.pipe(ie(function(t){return Qi(t,2)[1]}),Ke())}),n=Qi(e,2),r=n[0],o=n[1],i=this.subjects.prefetch.pipe(qe(function(e){if(!e)return me;var n=Vn(function(){return ye(o.pipe(jr(!0)),t.fetch$.pipe(jr(!1)))}).pipe(Le(!1),Ke());return t.hintSubject.pipe(Ie(t.subjects.disconnect),function(t){return function(e){return t.pipe(qe(function(t){return t?me:e}))}}(n),ie(function(e){return{type:"hint",url:new Po(e.currentTarget.href,t.href),anchor:e.currentTarget,event:e,cacheNr:t.cacheNr}}),Je(t.isHintEvent.bind(t)))})),s=ye(i,o).pipe(tn(this.compareContext.bind(this)),qe(this.makeRequest.bind(this)),Le({url:{}}),Ke());this.fetch$=o.pipe(rn(function(e){t.updateHistoryState(e),t.onStart(e)}),Gn(s),qe(this.getResponse.bind(this,s)),Ke());var a=Qi(this.fetch$.pipe(Ho(function(t){return!t.error})),2),u=a[0],c=a[1];u.pipe(ie(this.responseToContent.bind(this)),rn(function(e){t.onReady(e),t.updateDOM(e),t.onAfter(e),t.manageScrollPostion(e)}),rn({error:function(e){return t.onDOMError(e)}}),Uo(function(t,e){return e}),qe(this.reinsertScriptTags.bind(this)),rn({error:function(e){return t.onError(e)}}),Uo(function(t,e){return e})).subscribe(this.onLoad.bind(this)),r.subscribe(function(e){t.updateHistoryStateHash(e),t.manageScrollPostion(e)}),c.subscribe(this.onNetworkError.bind(this)),o.pipe(qe(function(e){return Vn(function(){return t.animPromise}).pipe(Ie(t.fetch$),jr(e))})).subscribe(this.onProgress.bind(this)),this.setupEventListeners()}}])&&ts(r.prototype,o),i&&ts(r,i),n}()};function is(t){return(is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ss(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function as(t,e){return!e||"object"!==is(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function us(t,e,n){return(us="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=cs(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function cs(t){return(cs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ls(t,e){return(ls=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var fs=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(y),["documentfragment","eventlistener","history","promises","queryselector","requestanimationframe"]));DocumentFragment.prototype.getElementById=DocumentFragment.prototype.getElementById||function(t){return this.querySelector("#".concat(t))};var hs=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),as(this,cs(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ls(t,e)}(n,os(Lt(w(t)))),r=n,i=[{key:"componentName",get:function(){return"hy-push-state"}},{key:"types",get:function(){return{replaceIds:Dt,linkSelector:Bt,duration:Ht,hrefRegex:zt,scriptSelector:Bt,initialHref:Bt,prefetch:qt}}},{key:"defaults",get:function(){return{replaceIds:[],linkSelector:"a[href]:not(.no-push-state)",duration:0,hrefRegex:null,scriptSelector:null,initialHref:window.location.href,prefetch:!1}}}],(o=[{key:"setupComponent",value:function(t,e){us(cs(n.prototype),"setupComponent",this).call(this,t,e),this.saveScrollPosition=this.saveScrollPosition.bind(this),this.reload$=new at}},{key:"setupShadowDOM",value:function(t){return t}},{key:"connectComponent",value:function(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),this.restoreScrollPostionOnReload(),window.addEventListener("beforeunload",this.saveScrollPosition),this.setupObservables(),us(cs(n.prototype),"connectComponent",this).call(this);var t=new Po(this.initialHref);this.updateHistoryState({type:"init",replace:!0,url:t});var e=this.getReplaceElements(document);Io(this)&&this.rewriteURLs(e),this.fireEvent("init"),this.onLoad({type:"init",title:this.getTitle(document),replaceEls:e,url:t,cacheNr:this.cacheNr})}},{key:"disconnectComponent",value:function(){us(cs(n.prototype),"disconnectComponent",this).call(this),window.removeEventListener("beforeunload",this.saveScrollPosition)}},{key:"assign",value:function(t){this.reload$.next({type:Fo,url:new Po(t,this.href),cacheNr:++this.cacheNr})}},{key:"reload",value:function(){this.reload$.next({type:Fo,url:new Po(this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"replace",value:function(t){this.reload$.next({type:Fo,url:new Po(t,this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"hash",get:function(){return this._url.hash}},{key:"host",get:function(){return this._url.host}},{key:"hostname",get:function(){return this._url.hostname}},{key:"href",get:function(){return this._url.href}},{key:"origin",get:function(){return this._url.origin}},{key:"pathname",get:function(){return this._url.pathname}},{key:"port",get:function(){return this._url.port}},{key:"protocol",get:function(){return this._url.protocol}},{key:"search",get:function(){return this._url.search}}])&&ss(r.prototype,o),i&&ss(r,i),n}()};function ps(t){return(ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ds(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ys(t,e){return!e||"object"!==ps(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ms(t){return(ms=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vs(t,e){return(vs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bs(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var gs=new s([].concat(bs(k),bs(fs))),ws=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ys(this,ms(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vs(t,e)}(e,A(hs(M))),n=e,o=[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}],(r=[{key:"getTemplate",value:function(){return null}}])&&ds(n.prototype,r),o&&ds(n,o),e}();var _s=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Es(t,this.project))},t}(),Es=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return R(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new Vt(this,void 0,void 0);this.destination.add(r),te(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Wt),Ss=(n(65),n(31)),xs=n.n(Ss);function Os(t){return function(e){return e.lift(new Ts(t))}}var Ts=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Cs(t,this.callback))},t}(),Cs=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new $(n)),r}return R(e,t),e}(K),Ns=n(17),ks=n.n(Ns);function js(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function As(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ms=function(t){var e=t.background,n=t.color,r=t.image,o=t.overlay;return"".concat(n).concat(r||e).concat(""===o?"overlay":"")};function Ps(t){var e=t.protocol,n=t.host,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return e!==r.protocol||n!==r.host}var Rs,Ls=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=document.getElementById("_main"),r=document.getElementById("_pageStyle"),o=Array.from(document.styleSheets).find(function(t){return t.ownerNode===r})||{};this.sidebar=document.getElementById("_sidebar"),this.fadeDuration=e,this.rules=o.cssRules||o.rules,this.prevHash=Ms(ks()(n)),this.themeColorEl=document.querySelector('meta[name="theme-color"]')}var e,n,r;return e=t,(n=[{key:"fetchImage2",value:function(t){var e=t.background,n=t.image;if(e||!n||""===n||"none"===n)return _t(null);var r=new URL(n,window.location);return Pe({method:"GET",responseType:"blob",url:r,crossDomain:Ps(r),headers:{Accept:"image/*"}}).pipe(ie(function(t){var e=t.response;return URL.createObjectURL(e)}),Uo(function(){return _t(n)}))}},{key:"fetchImage",value:function(t){var e=ks()(t),n=e.background,r=e.color,o=e.image,i=e.overlay,s=Ms(e);return s===this.prevHash?yt():this.fetchImage2(e).pipe(ie(function(t){var a=document.createElement("div");return a.classList.add("sidebar-bg"),"none"!==o&&""===i&&a.classList.add("sidebar-overlay"),n?a.style.background=n:(a.style.backgroundColor=r,t&&(a.style.backgroundImage="url(".concat(t,")"),a.objectURL=t)),[a,e,s]}))}},{key:"updateStyle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.color,r=void 0===n?"#4fb1ba":n,o=e.themeColor,i=void 0===o?"#193747":o;if(this.themeColorEl&&window.setTimeout(function(){return t.themeColorEl.content=i},250),this.rules)try{var s=xs()(r),a=s.darken(.1);this.rules[0].style.color=r,this.rules[0].style.borderColor=s.fade(.8).string(),this.rules[1].style.borderColor=r,this.rules[2].style.outlineColor=r,this.rules[3].style.backgroundColor=r,this.rules[3].style.borderColor=r,this.rules[4].style.boxShadow="0 0 0 3px ".concat(s.fade(.5)),this.rules[5].style.backgroundColor=a,this.rules[5].style.borderColor=a,this.rules[6].style.backgroundColor=r,this.rules[6].style.borderColor=r,this.rules[7].style.backgroundColor=a,this.rules[7].style.borderColor=a,this.rules[this.rules.length-1].style.backgroundColor=r}catch(t){console.error(t)}}},{key:"fade",value:function(t,e){var n=js(t,1)[0],r=js(e,3),o=r[0],i=r[1],s=r[2];return n.parentNode.insertBefore(o,n.nextElementSibling),this.updateStyle(i),this.prevHash=s,Bn(o,[{opacity:0},{opacity:1}],{duration:this.fadeDuration,easing:"ease"}).pipe(Os(function(){n.objectURL&&URL.revokeObjectURL(n.objectURL),n.parentNode.removeChild(n)}))}}])&&As(e.prototype,n),r&&As(e,r),t}(),Is=Un(["classlist","eventlistener","queryselector"]);function Ds(t){try{for(var e=t.previousElementSibling;e&&!e.classList.contains("MathJax_Preview");)e=e.previousElementSibling;var n=t.textContent.replace("% <![CDATA[","").replace("%]]>","");t.outerHTML=window.katex.renderToString(n,{displayMode:"math/tex; mode=display"===t.type}),e&&e.parentNode.removeChild(e)}catch(t){0}}var Fs=function(t,e){return new Promise(function(n){return t(e).addEventListener("load",n)})},qs=Is?function(){var t=document.querySelectorAll('script[type^="math/tex"]');t.length&&(Rs||(Rs=Promise.all([Fs(loadJS,document.getElementById("_hrefKatexJS").href),Fs(loadCSS,document.getElementById("_hrefKatexCSS").href),Fs(loadJS,document.getElementById("_hrefKatexCopyJS").href),Fs(loadCSS,document.getElementById("_hrefKatexCopyCSS").href)])),Rs.then(function(){Array.from(t).forEach(Ds)}))}:function(){};qs();n(72);function Hs(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Us=".page-title, .post-title";var zs=["title"];function Bs(t,e,n,r){var o=t.pipe(Je(function(t){var e=t.flipType;return!zs.includes(e)}));return ye(function(t,e,n,r){var o=r.animationMain,i=r.settings;if(!o)return t;var s=t.pipe(Je(function(t){return"title"===t.flipType}),qe(function(t){var e=t.anchor;if(!e)return _t({});var n=document.createElement("h1");n.classList.add("page-title"),n.textContent=e.textContent,n.style.transformOrigin="left top";var r=o.querySelector(".page");if(!r)return _t({});zn.call(r),r.appendChild(n),o.style.position="fixed",o.style.opacity=1;var s=e.getBoundingClientRect(),a=n.getBoundingClientRect(),u=parseInt(getComputedStyle(e).fontSize,10),c=parseInt(getComputedStyle(n).fontSize,10),l=s.left-a.left,f=s.top-a.top,h=u/c;return e.style.opacity=0,Bn(n,[{transform:"translate3d(".concat(l,"px, ").concat(f,"px, 0) scale(").concat(h,")")},{transform:"translate3d(0, 0, 0) scale(1)"}],i).pipe(rn({complete:function(){o.style.position="absolute"}}))}));return t.pipe(qe(function(t){var r=t.flipType;return li(e.pipe(Je(function(){return"title"===r}),ie(function(t){var e=Hs(t.replaceEls,1)[0].querySelector(Us);return e&&(e.style.opacity=0),e})),n,function(t){return t}).pipe(rn(function(t){t&&(t.style.opacity=1),o.style.opacity=0}),Os(function(){o.style.opacity=0}))})).subscribe(),s}(t,e,n,r),o)}function Ws(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Vs=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(gs),["classlist","cssanimations","cssremunit","documentfragment","eventlistener","history","matchmedia","opacity","queryselector","requestanimationframe"])),$s=[{opacity:1},{opacity:0}],Xs=[{opacity:0,transform:"translateY(-3rem)"},{opacity:1,transform:"translateY(0)"}],Gs={duration:250,easing:"ease-out",fill:"forwards"};function Ys(t){var e=Wn("_permalink-template"),n=e.querySelector(".permalink");requestAnimationFrame(function(){return n.href="#".concat(t.id),t.appendChild(e)})}function Ks(t){t.type;var e=t.main,n=Bn(e,$s,Gs).pipe(jr({main:e}));return window._drawer&&window._drawer.opened?(window._drawer.close(),li(n,ve(window._drawer.el,"hy-drawer-transitioned").pipe(Lr(1)),function(t){return t})):n}function Js(t){t.type;var e=Ws(t.replaceEls,1)[0],n=t.flipType;return Bn(e,Xs,Gs).pipe(jr({main:e,flipType:n}))}window._noPushState||!Un(Vs)||qn||requestIdleCallback(function(){var t,e,n,r=!!navigator.standalone||window.matchMedia("(display-mode: standalone)").matches,o=document.getElementsByTagName("hy-push-state")[0],i=document.querySelector("#_navbar > .content > .nav-btn-bar"),s=document.querySelector("link[rel=canonical]"),a=document.querySelector("meta[name=description]"),u=function(t){var e=Wn("_animation-template");return t.parentNode.insertBefore(e,t),t.previousElementSibling}(o),c=function(t){var e=Wn("_loading-template");return t.appendChild(e),t.lastElementChild}(i);r&&(t=i,e=function(){return window.history.back()},(n=Wn("_back-template")).querySelector(".nav-btn").addEventListener("click",e),t.appendChild(n),t.lastElementChild);var l=ve(o,"hy-push-state-start").pipe(ie(function(t){var e,n=t.detail;return Object.assign(n,{flipType:(e=n.anchor,e&&e.classList?e.classList.contains("flip-title")?"title":e.classList.contains("flip-project")?"project":e.getAttribute&&e.getAttribute("data-flip"):null)})}),Ke()),f=ve(o,"hy-push-state-ready").pipe(ie(function(t){return t.detail}),Ke()),h=ve(o,"hy-push-state-after").pipe(ie(function(t){return t.detail}),Ke()),p=ve(o,"hy-push-state-progress").pipe(ie(function(t){return t.detail}),Ke()),d=ve(o,"hy-push-state-networkerror").pipe(ie(function(t){return t.detail}),Ke()),y=l.pipe(ie(function(t){return Object.assign(t,{main:document.getElementById("_main")})}),rn(function(t){return t.main.style.pointerEvents="none"}),function t(e,n){return n?function(r){return r.pipe(t(function(t,r){return ce(e(t,r)).pipe(ie(function(e,o){return n(t,e,r,o)}))}))}:function(t){return t.lift(new _s(e))}}(Ks),rn(function(t){var e=t.main;return zn.call(e)}),Ke());p.subscribe(function(){return c.style.display="block"}),f.pipe(Le({replaceEls:[document.getElementById("_main")]})).subscribe(function(t){var e=Ws(t.replaceEls,1)[0];e.classList.remove("fade-in"),requestAnimationFrame(function(){return c.style.display="none"}),requestIdleCallback(function(){return Array.from(e.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]")).forEach(Ys)})}),h.pipe(Le({replaceEls:[document.getElementById("_main")],documentFragment:document})).subscribe(function(t){var e=Ws(t.replaceEls,1)[0],n=t.documentFragment,r=n.querySelector("link[rel=canonical]");s&&r&&(s.href=r.href);var o=n.querySelector("meta[name=description]");a&&o&&(a.content=o.content),Array.from(e.querySelectorAll("li[id^='fn:']")).forEach(function(t){return t.tabIndex=0}),Array.from(e.querySelectorAll("a[href^='#fn:']")).forEach(function(t){return t.addEventListener("click",function(t){return document.getElementById(t.currentTarget.hash.substr(1)).focus()})})});var m=h.pipe(qe(Js),Ke()),v=Bs(l,f,ye(m,d),{animationMain:u,settings:Gs}).pipe(Ke());l.pipe(qe(function(t){var e=li(Fi(250),y,v).toPromise();return t.transitionUntil(e),e})).subscribe(),y.subscribe(),v.subscribe();var b=new Ls(1e3);h.pipe(qe(function(t){var e=Ws(t.replaceEls,1)[0];return li(b.fetchImage(e),m,function(t){return t}).pipe(Ie(l))}),Le([document.querySelector(".sidebar-bg")]),er(),le(function(t){var e=Ws(t,2),n=e[0],r=e[1];return b.fade(n,r)})).subscribe(),m.subscribe(function(){return qs()}),d.pipe(qe(function(t){var e=t.url;c.style.display="none";var n=document.getElementById("_main");return n.style.pointerEvents="",zn.call(u.querySelector(".page")),zn.call(n),function(t,e){var n=e.pathname,r=Wn("_error-template"),o=r.querySelector(".this-link");o&&(o.href=n,o.textContent=n),t.appendChild(r),t.lastElementChild}(n,e),Bn(n,Xs,Gs)})).subscribe(),window._pushState=function(t){return window.customElements.define("hy-push-state",ws),t}(o)}),window.ResizeObserver=window.ResizeObserver||r.a,i.a.polyfill()}]);
@@ -1,47 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v8.3.2 <https://hydejack.com/>
13
- */!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=77)}([,function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||void 0!==t&&t||o}).call(this,n(6))},,function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return"object"===n(t)?null!==t:"function"==typeof t}},function(t,e,n){n(57),t.exports=n(3).Function.bind},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e,n){var r=n(8),o=n(3),i=n(12),s=n(48),a=n(21),u=function t(e,n,u){var c,l,f,h,p=e&t.F,d=e&t.G,y=e&t.P,m=e&t.B,v=d?r:e&t.S?r[n]||(r[n]={}):(r[n]||{}).prototype,b=d?o:o[n]||(o[n]={}),g=b.prototype||(b.prototype={});for(c in d&&(u=n),u)f=((l=!p&&v&&void 0!==v[c])?v:u)[c],h=m&&l?a(f,r):y&&"function"==typeof f?a(Function.call,f):f,v&&s(v,c,f,e&t.U),b[c]!=f&&i(b,c,h),y&&g[c]!=f&&(g[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(20)("wks"),o=n(19),i=n(8).Symbol,s="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},s=2;var a=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,l=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function a(){n&&(n=!1,t()),r&&c()}function u(){i(a)}function c(){var t=Date.now();if(n){if(t-o<s)return;r=!0}else n=!0,r=!1,setTimeout(u,e);o=t}return c}(this.refresh.bind(this),a)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;u.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},h=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},p=g(0,0,0,0);function d(t){return parseFloat(t)||0}function y(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+d(t["border-"+n+"-width"])},0)}function m(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=h(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=d(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=d(r.width),u=d(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=y(r,"left","right")+i),Math.round(u+s)!==n&&(u-=y(r,"top","bottom")+s)),!function(t){return t===h(t).document.documentElement}(t)){var c=Math.round(a+i)-e,l=Math.round(u+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(l)&&(u-=l)}return g(o.left,o.top,a,u)}var v="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"==typeof t.getBBox};function b(t){return r?v(t)?function(t){var e=t.getBBox();return g(0,0,e.width,e.height)}(t):m(t):p}function g(t,e,n,r){return{x:t,y:e,width:n,height:r}}var w=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=b(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),_=function(){return function(t,e){var n,r,o,i,s,a,u,c=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(a.prototype),f(u,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),u);f(this,{target:t,contentRect:c})}}(),E=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new w(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new _(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),S="undefined"!=typeof WeakMap?new WeakMap:new n,x=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new E(e,n,this);S.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){x.prototype[t]=function(){var e;return(e=S.get(this))[t].apply(e,arguments)}});var O=void 0!==o.ResizeObserver?o.ResizeObserver:x;e.a=O}).call(this,n(6))},function(t,e,n){n(41),t.exports=n(3).Array.forEach},function(t,e,n){var r=n(42),o=n(47);t.exports=n(13)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r;t.exports=((r=document.createElement("div")).setAttribute("data-a-b","c"),Boolean(r.dataset&&"c"===r.dataset.aB)?function(t){return t.dataset}:function(t){var e={},n=t.attributes;function r(){return this.value}function o(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var i=0,s=n.length;i<s;i++){var a=n[i];if(a){var u=a.name;if(0===u.indexOf("data-")){var c=u.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),l=a.value;Object.defineProperty(e,c,{enumerable:!0,get:r.bind({value:l||""}),set:o.bind(t,u)})}}}return e})},,function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(3),o=n(8),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(51)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(22);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(21),o=n(24),i=n(52),s=n(25),a=n(53);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||a;return function(e,a,d){for(var y,m,v=i(e),b=o(v),g=r(a,d,3),w=s(b.length),_=0,E=n?p(e,w):u?p(e,0):void 0;w>_;_++)if((h||_ in b)&&(m=g(y=b[_],_,v),t))if(n)E[_]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return _;case 2:E.push(y)}else if(l)return!1;return f?-1:c||l?l:E}}},function(t,e,n){var r=n(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(26),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(9)("unscopables"),o=Array.prototype;null==o[r]&&n(12)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,n){var r=n(28),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var s=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var u=s[a].channels,c=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:u}),Object.defineProperty(s[a],"labels",{value:c})}s.rgb.hsl=function(t){var e,n,r=t[0]/255,o=t[1]/255,i=t[2]/255,s=Math.min(r,o,i),a=Math.max(r,o,i),u=a-s;return a===s?e=0:r===a?e=(o-i)/u:o===a?e=2+(i-r)/u:i===a&&(e=4+(r-o)/u),(e=Math.min(60*e,360))<0&&(e+=360),n=(s+a)/2,[e,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},s.rgb.hsv=function(t){var e,n,r,o,i,s=t[0]/255,a=t[1]/255,u=t[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),f=function(t){return(c-t)/6/l+.5};return 0===l?o=i=0:(i=l/c,e=f(s),n=f(a),r=f(u),s===c?o=r-n:a===c?o=1/3+e-r:u===c&&(o=2/3+n-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},s.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[s.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},s.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,o=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-o)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},s.rgb.keyword=function(t){var e=o[t];if(e)return e;var n,i,s,a=1/0;for(var u in r)if(r.hasOwnProperty(u)){var c=r[u],l=(i=t,s=c,Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)+Math.pow(i[2]-s[2],2));l<a&&(a=l,n=u)}return n},s.keyword.rgb=function(t){return r[t]},s.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},s.rgb.lab=function(t){var e=s.rgb.xyz(t),n=e[0],r=e[1],o=e[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},s.hsl.rgb=function(t){var e,n,r,o,i,s=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return[i=255*u,i,i];e=2*u-(n=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,o[c]=255*i;return o},s.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[e,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},s.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),s=255*r*(1-n),a=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},s.hsv.hsl=function(t){var e,n,r,o=t[0],i=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return r=(2-i)*s,n=i*a,[o,100*(n=(n/=(e=(2-i)*a)<=1?e:2-e)||0),100*(r/=2)]},s.hwb.rgb=function(t){var e,n,r,o,i,s,a,u=t[0]/360,c=t[1]/100,l=t[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),r=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(r=1-r),o=c+r*((n=1-l)-c),e){default:case 6:case 0:i=n,s=o,a=c;break;case 1:i=o,s=n,a=c;break;case 2:i=c,s=n,a=o;break;case 3:i=c,s=o,a=n;break;case 4:i=o,s=c,a=n;break;case 5:i=n,s=c,a=o}return[255*i,255*s,255*a]},s.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},s.xyz.rgb=function(t){var e,n,r,o=t[0]/100,i=t[1]/100,s=t[2]/100;return n=-.9689*o+1.8758*i+.0415*s,r=.0557*o+-.204*i+1.057*s,e=(e=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(t){var e,n,r,o=t[0];e=t[1]/500+(n=(o+16)/116),r=n-t[2]/200;var i=Math.pow(n,3),s=Math.pow(e,3),a=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},s.lab.lch=function(t){var e,n=t[0],r=t[1],o=t[2];return(e=360*Math.atan2(o,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+o*o),e]},s.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},s.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],o=1 in arguments?arguments[1]:s.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},s.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},s.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,o=t[2]/255,i=Math.max(Math.max(n,r),o),s=Math.min(Math.min(n,r),o),a=i-s;return e=a<=0?0:i===n?(r-o)/a%6:i===r?2+(o-n)/a:4+(n-r)/a+4,e/=6,[360*(e%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,o=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(o=(n-.5*r)/(1-r)),[t[0],100*r,100*o]},s.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,o=0;return r<1&&(o=(n-r)/(1-r)),[t[0],100*r,100*o]},s.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],s=e%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},s.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},s.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},s.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},s.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,o=0;return r<1&&(o=(n-r)/(1-r)),[t[0],100*r,100*o]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=s.gray.hsv=function(t){return[0,0,t[0]]},s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){"use strict";function n(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n,o=t.HTMLElement||t.Element,i=468,s={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:o.prototype.scroll||c,scrollIntoView:o.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,u=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?y.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):s.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?s.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):y.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;y.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==r(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},o.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(t){var n;do{n=(t=t.parentNode)===e.body}while(!1===n&&!1===p(t));return n=null,t}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==e.body?(y.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else s.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!==r(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===r(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function f(t,e){return"Y"===e?t.clientHeight+u<t.scrollHeight:"X"===e?t.clientWidth+u<t.scrollWidth:void 0}function h(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function p(t){var e=f(t,"Y")&&h(t,"Y"),n=f(t,"X")&&h(t,"X");return e||n}function d(e){var n,r,o,s,u=(a()-e.startTime)/i;s=u=u>1?1:u,n=.5*(1-Math.cos(Math.PI*s)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(d.bind(t,e))}function y(n,r,o){var i,u,l,f,h=a();n===e.body?(i=t,u=t.scrollX||t.pageXOffset,l=t.scrollY||t.pageYOffset,f=s.scroll):(i=n,u=n.scrollLeft,l=n.scrollTop,f=c),d({scrollable:i,method:f,startTime:h,startX:u,startY:l,x:r,y:o})}}"object"===r(e)&&void 0!==t?t.exports={polyfill:n}:n()}()},function(t,e,n){"use strict";var r=n(67),o=n(70),i=[].slice,s=["keyword","gray","hex"],a={};Object.keys(o).forEach(function(t){a[i.call(o[t].labels).sort().join("")]=t});var u={};function c(t,e){if(!(this instanceof c))return new c(t,e);if(e&&e in s&&(e=null),e&&!(e in o))throw new Error("Unknown model: "+e);var n,l;if(void 0===t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof c)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var f=r.get(t);if(null===f)throw new Error("Unable to parse color from string: "+t);this.model=f.model,l=o[this.model].channels,this.color=f.value.slice(0,l),this.valpha="number"==typeof f.value[l]?f.value[l]:1}else if(t.length){this.model=e||"rgb",l=o[this.model].channels;var p=i.call(t,0,l);this.color=h(p,l),this.valpha="number"==typeof t[l]?t[l]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var d=Object.keys(t);"alpha"in t&&(d.splice(d.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var y=d.sort().join("");if(!(y in a))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=a[y];var m=o[this.model].labels,v=[];for(n=0;n<m.length;n++)v.push(t[m[n]]);this.color=h(v)}if(u[this.model])for(l=o[this.model].channels,n=0;n<l;n++){var b=u[this.model][n];b&&(this.color[n]=b(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function l(t,e,n){return(t=Array.isArray(t)?t:[t]).forEach(function(t){(u[t]||(u[t]=[]))[e]=n}),t=t[0],function(r){var o;return arguments.length?(n&&(r=n(r)),(o=this[t]()).color[e]=r,o):(o=this[t]().color[e],n&&(o=n(o)),o)}}function f(t){return function(e){return Math.max(0,Math.min(t,e))}}function h(t,e){for(var n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}c.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in r.to?this:this.rgb(),n=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return r.to[e.model](n)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:e.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=o[this.model].channels,n=o[this.model].labels,r=0;r<e;r++)t[n[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new c(this.color.map(function(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new c(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:l("rgb",0,f(255)),green:l("rgb",1,f(255)),blue:l("rgb",2,f(255)),hue:l(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:l("hsl",1,f(100)),lightness:l("hsl",2,f(100)),saturationv:l("hsv",1,f(100)),value:l("hsv",2,f(100)),chroma:l("hcg",1,f(100)),gray:l("hcg",2,f(100)),white:l("hwb",1,f(100)),wblack:l("hwb",2,f(100)),cyan:l("cmyk",0,f(100)),magenta:l("cmyk",1,f(100)),yellow:l("cmyk",2,f(100)),black:l("cmyk",3,f(100)),x:l("xyz",0,f(100)),y:l("xyz",1,f(100)),z:l("xyz",2,f(100)),l:l("lab",0,f(100)),a:l("lab",1),b:l("lab",2),keyword:function(t){return arguments.length?new c(t):o[this.model].keyword(this.color)},hex:function(t){return arguments.length?new c(t):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return c.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n=(n+t)%360)<0?360+n:n,e.color[0]=n,e},mix:function(t,e){var n=t.rgb(),r=this.rgb(),o=void 0===e?.5:e,i=2*o-1,s=n.alpha()-r.alpha(),a=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,u=1-a;return c.rgb(a*n.red()+u*r.red(),a*n.green()+u*r.green(),a*n.blue()+u*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach(function(t){if(-1===s.indexOf(t)){var e=o[t].channels;c.prototype[t]=function(){if(this.model===t)return new c(this);if(arguments.length)return new c(arguments,t);var n,r="number"==typeof arguments[e]?e:this.valpha;return new c((n=o[this.model][t].raw(this.color),Array.isArray(n)?n:[n]).concat(r),t)},c[t]=function(n){return"number"==typeof n&&(n=h(i.call(arguments),e)),new c(n,t)}}}),t.exports=c},function(t,e,n){(function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
14
- /**
15
- @license @nocompile
16
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
17
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
18
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
19
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
20
- Code distributed by Google as part of the polymer project is also
21
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
22
- */
23
- /**
24
- @license @nocompile
25
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
26
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
27
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
28
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
29
- Code distributed by Google as part of the polymer project is also
30
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
31
- */
32
- (function(){"use strict";var r,o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},i="undefined"!=typeof window&&window===this?this:void 0!==t&&null!=t?t:this;function s(){s=function(){},i.Symbol||(i.Symbol=c)}var a,u,c=(a=0,function(t){return"jscomp_symbol_"+(t||"")+a++});function l(){s();var t=i.Symbol.iterator;t||(t=i.Symbol.iterator=i.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&o(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return f(this)}}),l=function(){}}function f(t){var e=0;return function(t){return l(),(t={next:t})[i.Symbol.iterator]=function(){return this},t}(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function h(t){l();var e=t[Symbol.iterator];return e?e.call(t):f(t)}if("function"==typeof Object.setPrototypeOf)u=Object.setPrototypeOf;else{var p;t:{var d={};try{d.__proto__={Na:!0},p=d.Na;break t}catch(a){}p=!1}u=p?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var y=u;function m(){this.f=!1,this.b=null,this.fa=void 0,this.a=1,this.G=0,this.c=null}function v(t){if(t.f)throw new TypeError("Generator is already running");t.f=!0}function b(t,e){t.c={Qa:e,Ua:!0},t.a=t.G}function g(t,e){return t.a=3,{value:e}}function w(t){this.a=new m,this.b=t}function _(t,e,n,r){try{var o=e.call(t.a.b,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.a.f=!1,o;var i=o.value}catch(e){return t.a.b=null,b(t.a,e),E(t)}return t.a.b=null,r.call(t.a,i),E(t)}function E(t){for(;t.a.a;)try{var e=t.b(t.a);if(e)return t.a.f=!1,{value:e.value,done:!1}}catch(e){t.a.fa=void 0,b(t.a,e)}if(t.a.f=!1,t.a.c){if(e=t.a.c,t.a.c=null,e.Ua)throw e.Qa;return{value:e.return,done:!0}}return{value:void 0,done:!0}}function S(t){this.next=function(e){return v(t.a),t.a.b?e=_(t,t.a.b.next,e,t.a.m):(t.a.m(e),e=E(t)),e},this.throw=function(e){return v(t.a),t.a.b?e=_(t,t.a.b.throw,e,t.a.m):(b(t.a,e),e=E(t)),e},this.return=function(e){return function(t,e){v(t.a);var n=t.a.b;return n?_(t,"return"in n?n.return:function(t){return{value:t,done:!0}},e,t.a.return):(t.a.return(e),E(t))}(t,e)},l(),this[Symbol.iterator]=function(){return this}}function x(t,e){return e=new S(new w(e)),y&&y(e,t.prototype),e}m.prototype.m=function(t){this.fa=t},m.prototype.return=function(t){this.c={return:t},this.a=this.G},function(){if(!function(){var t=document.createEvent("Event");return t.initEvent("foo",!0,!0),t.preventDefault(),t.defaultPrevented}()){var t=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(t.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var e=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||e&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||e&&"function"!=typeof window.Event){var n=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},n)for(var r in n)window.Event[r]=n[r];window.Event.prototype=n.prototype}if(!window.MouseEvent||e&&"function"!=typeof window.MouseEvent){if(e=window.MouseEvent,window.MouseEvent=function(t,e){e=e||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!!e.bubbles,!!e.cancelable,e.view||window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),n},e)for(r in e)window.MouseEvent[r]=e[r];window.MouseEvent.prototype=e.prototype}Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t,e){for(var n,r=[].slice.call(arguments,1),o=0;o<r.length;o++)if(n=r[o])for(var i=t,s=n,a=Object.getOwnPropertyNames(s),u=0;u<a.length;u++)i[n=a[u]]=s[n];return t})}(window.WebComponents),function(){function t(){}function e(t,e){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return y.call(t,e);case Node.DOCUMENT_FRAGMENT_NODE:return m.call(t,e);default:return d.call(t,e)}}var n="undefined"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),o=!1;/Trident/.test(navigator.userAgent)&&function(){function t(t,e){if(t instanceof DocumentFragment)for(var r;r=t.firstChild;)n.call(this,r,e);else n.call(this,t,e);return t}o=!0;var e=Node.prototype.cloneNode;Node.prototype.cloneNode=function(t){return t=e.call(this,t),this instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var n=Node.prototype.insertBefore;Node.prototype.insertBefore=t;var r=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return e instanceof DocumentFragment?t.call(this,e,null):r.call(this,e),e};var i=Node.prototype.removeChild,s=Node.prototype.replaceChild;Node.prototype.replaceChild=function(e,n){return e instanceof DocumentFragment?(t.call(this,e,n),i.call(this,n)):s.call(this,e,n),n},Document.prototype.createDocumentFragment=function(){var t=this.createElement("df");return t.__proto__=DocumentFragment.prototype,t};var a=Document.prototype.importNode;Document.prototype.importNode=function(t,e){return e=a.call(this,t,e||!1),t instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e}}();var i=Node.prototype.cloneNode,s=Document.prototype.createElement,a=Document.prototype.importNode,u=Node.prototype.removeChild,c=Node.prototype.appendChild,l=Node.prototype.replaceChild,f=DOMParser.prototype.parseFromString,h=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},p=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},d=Element.prototype.querySelectorAll,y=Document.prototype.querySelectorAll,m=DocumentFragment.prototype.querySelectorAll,v=function(){if(!n){var t=document.createElement("template"),e=document.createElement("template");return e.content.appendChild(document.createElement("div")),t.content.appendChild(e),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||r}}();if(n){var b=document.implementation.createHTMLDocument("template"),g=!0,w=document.createElement("style");w.textContent="template{display:none;}";var _=document.head;_.insertBefore(w,_.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var E=!document.createElement("div").hasOwnProperty("innerHTML");t.R=function(e){if(!e.content&&e.namespaceURI===document.documentElement.namespaceURI){e.content=b.createDocumentFragment();for(var n;n=e.firstChild;)c.call(e.content,n);if(E)e.__proto__=t.prototype;else if(e.cloneNode=function(e){return t.b(this,e)},g)try{x(e),O(e)}catch(t){g=!1}t.a(e.content)}};var S={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},x=function(e){Object.defineProperty(e,"innerHTML",{get:function(){return A(this)},set:function(e){var n=S[(/<([a-z][^\/\0>\x20\t\r\n\f]+)/i.exec(e)||["",""])[1].toLowerCase()];if(n)for(var r=0;r<n.length;r++)e="<"+n[r]+">"+e+"</"+n[r]+">";for(b.body.innerHTML=e,t.a(b);this.content.firstChild;)u.call(this.content,this.content.firstChild);if(e=b.body,n)for(r=0;r<n.length;r++)e=e.lastChild;for(;e.firstChild;)c.call(this.content,e.firstChild)},configurable:!0})},O=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(b.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();b.body.firstChild;)c.call(t,b.body.firstChild);l.call(this.parentNode,t,this)},configurable:!0})};x(t.prototype),O(t.prototype),t.a=function(n){for(var r,o=0,i=(n=e(n,"template")).length;o<i&&(r=n[o]);o++)t.R(r)},document.addEventListener("DOMContentLoaded",function(){t.a(document)}),Document.prototype.createElement=function(){var e=s.apply(this,arguments);return"template"===e.localName&&t.R(e),e},DOMParser.prototype.parseFromString=function(){var e=f.apply(this,arguments);return t.a(e),e},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return A(this)},set:function(e){h.set.call(this,e),t.a(this)},configurable:!0,enumerable:!0});var T=/[&\u00A0"]/g,C=/[&\u00A0<>]/g,N=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}},k=(w=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),j=w("style script xmp iframe noembed noframes plaintext noscript".split(" ")),A=function t(e,n){"template"===e.localName&&(e=e.content);for(var r,o="",i=n?n(e):p.get.call(e),s=0,a=i.length;s<a&&(r=i[s]);s++){t:{var u=r,c=e,l=n;switch(u.nodeType){case Node.ELEMENT_NODE:for(var f=u.localName,h="<"+f,d=u.attributes,y=0;c=d[y];y++)h+=" "+c.name+'="'+c.value.replace(T,N)+'"';h+=">",u=k[f]?h:h+t(u,l)+"</"+f+">";break t;case Node.TEXT_NODE:u=u.data,u=c&&j[c.localName]?u:u.replace(C,N);break t;case Node.COMMENT_NODE:u="\x3c!--"+u.data+"--\x3e";break t;default:throw window.console.error(u),Error("not implemented")}}o+=u}return o}}if(n||v){t.b=function(t,e){var n=i.call(t,!1);return this.R&&this.R(n),e&&(c.call(n.content,i.call(t.content,!0)),M(n.content,t.content)),n};var M=function(n,r){if(r.querySelectorAll&&0!==(r=e(r,"template")).length)for(var o,i,s=0,a=(n=e(n,"template")).length;s<a;s++)i=r[s],o=n[s],t&&t.R&&t.R(i),l.call(o.parentNode,P.call(i,!0),o)},P=Node.prototype.cloneNode=function(e){if(!o&&r&&this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var n=R.call(this.ownerDocument,this,!0)}else n=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?t.b(this,e):i.call(this,e);return e&&M(n,this),n},R=Document.prototype.importNode=function(n,r){if(r=r||!1,"template"===n.localName)return t.b(n,r);var o=a.call(this,n,r);if(r){M(o,n),n=e(o,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var i,u=0;u<n.length;u++){i=n[u],(r=s.call(document,"script")).textContent=i.textContent;for(var c,f=i.attributes,h=0;h<f.length;h++)c=f[h],r.setAttribute(c.name,c.value);l.call(i.parentNode,r,i)}}return o}}n&&(window.HTMLTemplateElement=t)}();var O=setTimeout;function T(){}function C(t){if(!(this instanceof C))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.J=0,this.wa=!1,this.A=void 0,this.U=[],P(t,this)}function N(t,e){for(;3===t.J;)t=t.A;0===t.J?t.U.push(e):(t.wa=!0,R(function(){var n=1===t.J?e.Wa:e.Xa;if(null===n)(1===t.J?k:j)(e.ra,t.A);else{try{var r=n(t.A)}catch(t){return void j(e.ra,t)}k(e.ra,r)}}))}function k(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===n(e)||"function"==typeof e)){var r=e.then;if(e instanceof C)return t.J=3,t.A=e,void A(t);if("function"==typeof r)return void P(function(t,e){return function(){t.apply(e,arguments)}}(r,e),t)}t.J=1,t.A=e,A(t)}catch(e){j(t,e)}}function j(t,e){t.J=2,t.A=e,A(t)}function A(t){2===t.J&&0===t.U.length&&R(function(){t.wa||"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t.A)});for(var e=0,n=t.U.length;e<n;e++)N(t,t.U[e]);t.U=null}function M(t,e,n){this.Wa="function"==typeof t?t:null,this.Xa="function"==typeof e?e:null,this.ra=n}function P(t,e){var n=!1;try{t(function(t){n||(n=!0,k(e,t))},function(t){n||(n=!0,j(e,t))})}catch(t){n||(n=!0,j(e,t))}}C.prototype.catch=function(t){return this.then(null,t)},C.prototype.then=function(t,e){var n=new this.constructor(T);return N(this,new M(t,e,n)),n},C.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})};var R="function"==typeof e&&function(t){e(t)}||function(t){O(t,0)};if(!window.Promise){window.Promise=C,C.prototype.then=C.prototype.then,C.all=function(t){return new C(function(e,r){function o(t,a){try{if(a&&("object"===n(a)||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,function(e){o(t,e)},r)}i[t]=a,0==--s&&e(i)}catch(t){r(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);for(var s=i.length,a=0;a<i.length;a++)o(a,i[a])})},C.race=function(t){return new C(function(e,n){for(var r=0,o=t.length;r<o;r++)t[r].then(e,n)})},C.resolve=function(t){return t&&"object"===n(t)&&t.constructor===C?t:new C(function(e){e(t)})},C.reject=function(t){return new C(function(e,n){n(t)})};var L=document.createTextNode(""),I=[];new MutationObserver(function(){for(var t=I.length,e=0;e<t;e++)I[e]();I.splice(0,t)}).observe(L,{characterData:!0}),R=function(t){I.push(t),L.textContent=0<L.textContent.length?"":"a"}}!function(e,r){if(!(r in e)){var o=(void 0===t?"undefined":n(t))===n(o)?window:t,i=0,s=""+Math.random(),a="__symbol@@"+s,u=e.getOwnPropertyNames,c=e.getOwnPropertyDescriptor,l=e.create,f=e.keys,h=e.freeze||e,p=e.defineProperty,d=e.defineProperties,y=c(e,"getOwnPropertyNames"),m=e.prototype,v=m.hasOwnProperty,b=m.propertyIsEnumerable,g=m.toString,w=function(t,e,n){v.call(t,a)||p(t,a,{enumerable:!1,configurable:!1,writable:!1,value:{}}),t[a]["@@"+e]=n},_=function(){},E=function(t){return t!=a&&!v.call(C,t)},S=function(t){return t!=a&&v.call(C,t)},x=function(t){var e=""+t;return S(e)?v.call(this,e)&&this[a]["@@"+e]:b.call(this,t)},O=function(t){return p(m,t,{enumerable:!1,configurable:!0,get:_,set:function(e){M(this,t,{enumerable:!1,configurable:!0,writable:!0,value:e}),w(this,t,!0)}}),h(C[t]=p(e(t),"constructor",N))},T=function(t){if(this&&this!==o)throw new TypeError("Symbol is not a constructor");return O("__symbol:".concat(t||"",s,++i))},C=l(null),N={value:T},k=function(t){return C[t]},j=function(t,e,n){var r=""+e;if(S(r)){if(e=M,n.enumerable){var o=l(n);o.enumerable=!1}else o=n;e(t,r,o),w(t,r,!!n.enumerable)}else p(t,e,n);return t},A=function(t){return u(t).filter(S).map(k)};y.value=j,p(e,"defineProperty",y),y.value=A,p(e,r,y),y.value=function(t){return u(t).filter(E)},p(e,"getOwnPropertyNames",y),y.value=function(t,e){var n=A(e);return n.length?f(e).concat(n).forEach(function(n){x.call(e,n)&&j(t,n,e[n])}):d(t,e),t},p(e,"defineProperties",y),y.value=x,p(m,"propertyIsEnumerable",y),y.value=T,p(o,"Symbol",y),y.value=function(t){return(t="__symbol:".concat("__symbol:",t,s))in m?C[t]:O(t)},p(T,"for",y),y.value=function(t){if(E(t))throw new TypeError(t+" is not a symbol");return v.call(C,t)?t.slice(20,-s.length):void 0},p(T,"keyFor",y),y.value=function(t,e){var n=c(t,e);return n&&S(e)&&(n.enumerable=x.call(t,e)),n},p(e,"getOwnPropertyDescriptor",y),y.value=function(t,e){return 1===arguments.length?l(t):function(t,e){var n=l(t);return u(e).forEach(function(t){x.call(e,t)&&j(n,t,e[t])}),n}(t,e)},p(e,"create",y),y.value=function(){var t=g.call(this);return"[object String]"===t&&S(this)?"[object Symbol]":t},p(m,"toString",y);try{var M=l(p({},"__symbol:",{get:function(){return p(this,"__symbol:",{value:!1})["__symbol:"]}}))["__symbol:"]||p}catch(t){M=function(t,e,n){var r=c(m,e);delete m[e],p(t,e,n),p(m,e,r)}}}}(Object,"getOwnPropertySymbols"),function(t){var e,n=t.defineProperty,r=t.prototype,o=r.toString;"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach(function(i){if(!(i in Symbol))switch(n(Symbol,i,{value:Symbol(i)}),i){case"toStringTag":(e=t.getOwnPropertyDescriptor(r,"toString")).value=function(){var t=o.call(this),e=this[Symbol.toStringTag];return void 0===e?t:"[object "+e+"]"},n(r,"toString",e)}})}(Object,Symbol),function(t,e,n){function r(){return this}e[t]||(e[t]=function(){var e=0,n=this,o={next:function(){var t=n.length<=e;return t?{done:t}:{done:t,value:n[e++]}}};return o[t]=r,o}),n[t]||(n[t]=function(){var e=String.fromCodePoint,n=this,o=0,i=n.length,s={next:function(){var t=i<=o,r=t?"":e(n.codePointAt(o));return o+=r.length,t?{done:t}:{done:t,value:r}}};return s[t]=r,s})}(Symbol.iterator,Array.prototype,String.prototype),Object.keys=function(t){return Object.getOwnPropertyNames(t).filter(function(e){return(e=Object.getOwnPropertyDescriptor(t,e))&&e.enumerable})};var D=window.Symbol.iterator;String.prototype[D]&&String.prototype.codePointAt||(String.prototype[D]=function t(){var e,n=this;return x(t,function(t){if(1==t.a&&(e=0),3!=t.a)return e<n.length?t=g(t,n[e]):(t.a=0,t=void 0),t;e++,t.a=2})}),Set.prototype[D]||(Set.prototype[D]=function t(){var e,n,r=this;return x(t,function(t){if(1==t.a&&(e=[],r.forEach(function(t){e.push(t)}),n=0),3!=t.a)return n<e.length?t=g(t,e[n]):(t.a=0,t=void 0),t;n++,t.a=2})}),Map.prototype[D]||(Map.prototype[D]=function t(){var e,n,r=this;return x(t,function(t){if(1==t.a&&(e=[],r.forEach(function(t,n){e.push([n,t])}),n=0),3!=t.a)return n<e.length?t=g(t,e[n]):(t.a=0,t=void 0),t;n++,t.a=2})}),window.WebComponents=window.WebComponents||{flags:{}};var F=document.querySelector('script[src*="webcomponents-bundle"]'),q=/wc-(.+)/,H={};if(!H.noOpts){if(location.search.slice(1).split("&").forEach(function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(q))&&(H[e[1]]=t[1]||!0)}),F)for(var U=0,z=void 0;z=F.attributes[U];U++)"src"!==z.name&&(H[z.name]=z.value||!0);if(H.log&&H.log.split){var B=H.log.split(",");H.log={},B.forEach(function(t){H.log[t]=!0})}else H.log={}}window.WebComponents.flags=H;var W=H.shadydom;W&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=W);var V=H.register||H.ce;function $(){this.za=this.root=null,this.ea=!1,this.N=this.$=this.oa=this.assignedSlot=this.assignedNodes=this.S=null,this.childNodes=this.nextSibling=this.previousSibling=this.lastChild=this.firstChild=this.parentNode=this.V=void 0,this.Ea=this.ua=!1,this.Z={}}function X(t){return t.ma||(t.ma=new $),t.ma}function G(t){return t&&t.ma}V&&window.customElements&&(window.customElements.forcePolyfill=V),$.prototype.toJSON=function(){return{}};var Y=window.ShadyDOM||{};Y.Sa=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var K=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");Y.K=!!(K&&K.configurable&&K.get),Y.qa=Y.force||!Y.Sa;var J=navigator.userAgent.match("Trident"),Z=navigator.userAgent.match("Edge");function Q(t){return(t=G(t))&&void 0!==t.firstChild}function tt(t){return"ShadyRoot"===t.Ja}function et(t){if(tt(t=t.getRootNode()))return t}void 0===Y.Ba&&(Y.Ba=Y.K&&(J||Z));var nt=Element.prototype,rt=nt.matches||nt.matchesSelector||nt.mozMatchesSelector||nt.msMatchesSelector||nt.oMatchesSelector||nt.webkitMatchesSelector;function ot(t,e){if(t&&e)for(var n=Object.getOwnPropertyNames(e),r=0,o=void 0;r<n.length&&(o=n[r]);r++){var i=o,s=t,a=Object.getOwnPropertyDescriptor(e,i);a&&Object.defineProperty(s,i,a)}}function it(t,e){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r];for(r=0;r<n.length;r++)ot(t,n[r]);return t}var st=document.createTextNode(""),at=0,ut=[];function ct(t){ut.push(t),st.textContent=at++}new MutationObserver(function(){for(;ut.length;)try{ut.shift()()}catch(t){throw st.textContent=at++,t}}).observe(st,{characterData:!0});var lt=!!document.contains;function ft(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function ht(t){for(var e=t.length-1;0<=e;e--){var n=t[e],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(t[r]=n)}return t.item=function(e){return t[e]},t.namedItem=function(e){if("length"!==e&&isNaN(e)&&t[e])return t[e];for(var n=h(t),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==e)return r;return null},t}var pt,dt=[];function yt(t){pt||(pt=!0,ct(mt)),dt.push(t)}function mt(){pt=!1;for(var t=!!dt.length;dt.length;)dt.shift()();return t}function vt(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.ca=new Set}mt.list=dt,vt.prototype.flush=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.ca.forEach(function(e){e(t)})}},vt.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var bt=Element.prototype.insertBefore,gt=Element.prototype.replaceChild,wt=Element.prototype.removeChild,_t=Element.prototype.setAttribute,Et=Element.prototype.removeAttribute,St=Element.prototype.cloneNode,xt=Document.prototype.importNode,Ot=Element.prototype.addEventListener,Tt=Element.prototype.removeEventListener,Ct=Window.prototype.addEventListener,Nt=Window.prototype.removeEventListener,kt=Element.prototype.dispatchEvent,jt=Node.prototype.contains||HTMLElement.prototype.contains,At=Document.prototype.getElementById,Mt=Element.prototype.querySelector,Pt=DocumentFragment.prototype.querySelector,Rt=Document.prototype.querySelector,Lt=Element.prototype.querySelectorAll,It=DocumentFragment.prototype.querySelectorAll,Dt=Document.prototype.querySelectorAll,Ft={};Ft.appendChild=Element.prototype.appendChild,Ft.insertBefore=bt,Ft.replaceChild=gt,Ft.removeChild=wt,Ft.setAttribute=_t,Ft.removeAttribute=Et,Ft.cloneNode=St,Ft.importNode=xt,Ft.addEventListener=Ot,Ft.removeEventListener=Tt,Ft.gb=Ct,Ft.hb=Nt,Ft.dispatchEvent=kt,Ft.contains=jt,Ft.getElementById=At,Ft.pb=Mt,Ft.tb=Pt,Ft.nb=Rt,Ft.querySelector=function(t){switch(this.nodeType){case Node.ELEMENT_NODE:return Mt.call(this,t);case Node.DOCUMENT_NODE:return Rt.call(this,t);default:return Pt.call(this,t)}},Ft.qb=Lt,Ft.ub=It,Ft.ob=Dt,Ft.querySelectorAll=function(t){switch(this.nodeType){case Node.ELEMENT_NODE:return Lt.call(this,t);case Node.DOCUMENT_NODE:return Dt.call(this,t);default:return It.call(this,t)}};var qt=/[&\u00A0"]/g,Ht=/[&\u00A0<>]/g;function Ut(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function zt(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var Bt=zt("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Wt=zt("style script xmp iframe noembed noframes plaintext noscript".split(" "));function Vt(t,e){"template"===t.localName&&(t=t.content);for(var n="",r=e?e(t):t.childNodes,o=0,i=r.length,s=void 0;o<i&&(s=r[o]);o++){t:{var a=s,u=t,c=e;switch(a.nodeType){case Node.ELEMENT_NODE:for(var l,f="<"+(u=a.localName),h=a.attributes,p=0;l=h[p];p++)f+=" "+l.name+'="'+l.value.replace(qt,Ut)+'"';f+=">",a=Bt[u]?f:f+Vt(a,c)+"</"+u+">";break t;case Node.TEXT_NODE:a=a.data,a=u&&Wt[u.localName]?a:a.replace(Ht,Ut);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}n+=a}return n}var $t=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Xt=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function Gt(t){var e=[];for($t.currentNode=t,t=$t.firstChild();t;)e.push(t),t=$t.nextSibling();return e}var Yt={parentNode:function(t){return $t.currentNode=t,$t.parentNode()},firstChild:function(t){return $t.currentNode=t,$t.firstChild()},lastChild:function(t){return $t.currentNode=t,$t.lastChild()},previousSibling:function(t){return $t.currentNode=t,$t.previousSibling()},nextSibling:function(t){return $t.currentNode=t,$t.nextSibling()}};Yt.childNodes=Gt,Yt.parentElement=function(t){return Xt.currentNode=t,Xt.parentNode()},Yt.firstElementChild=function(t){return Xt.currentNode=t,Xt.firstChild()},Yt.lastElementChild=function(t){return Xt.currentNode=t,Xt.lastChild()},Yt.previousElementSibling=function(t){return Xt.currentNode=t,Xt.previousSibling()},Yt.nextElementSibling=function(t){return Xt.currentNode=t,Xt.nextSibling()},Yt.children=function(t){var e=[];for(Xt.currentNode=t,t=Xt.firstChild();t;)e.push(t),t=Xt.nextSibling();return ht(e)},Yt.innerHTML=function(t){return Vt(t,function(t){return Gt(t)})},Yt.textContent=function(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}};var Kt=Y.K,Jt=[Node.prototype,Element.prototype,HTMLElement.prototype];function Zt(t){var e;t:{for(e=0;e<Jt.length;e++){var n=Jt[e];if(n.hasOwnProperty(t)){e=n;break t}}e=void 0}if(!e)throw Error("Could not find descriptor for "+t);return Object.getOwnPropertyDescriptor(e,t)}var Qt=Kt?{parentNode:Zt("parentNode"),firstChild:Zt("firstChild"),lastChild:Zt("lastChild"),previousSibling:Zt("previousSibling"),nextSibling:Zt("nextSibling"),childNodes:Zt("childNodes"),parentElement:Zt("parentElement"),previousElementSibling:Zt("previousElementSibling"),nextElementSibling:Zt("nextElementSibling"),innerHTML:Zt("innerHTML"),textContent:Zt("textContent"),firstElementChild:Zt("firstElementChild"),lastElementChild:Zt("lastElementChild"),children:Zt("children")}:{},te=Kt?{firstElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"children")}:{},ee=Kt?{firstElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(Document.prototype,"children")}:{},ne={ya:Qt,sb:te,mb:ee,parentNode:function(t){return Qt.parentNode.get.call(t)},firstChild:function(t){return Qt.firstChild.get.call(t)},lastChild:function(t){return Qt.lastChild.get.call(t)},previousSibling:function(t){return Qt.previousSibling.get.call(t)},nextSibling:function(t){return Qt.nextSibling.get.call(t)},childNodes:function(t){return Array.prototype.slice.call(Qt.childNodes.get.call(t))},parentElement:function(t){return Qt.parentElement.get.call(t)},previousElementSibling:function(t){return Qt.previousElementSibling.get.call(t)},nextElementSibling:function(t){return Qt.nextElementSibling.get.call(t)},innerHTML:function(t){return Qt.innerHTML.get.call(t)},textContent:function(t){return Qt.textContent.get.call(t)},children:function(t){switch(t.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return te.children.get.call(t);case Node.DOCUMENT_NODE:return ee.children.get.call(t);default:return Qt.children.get.call(t)}},firstElementChild:function(t){switch(t.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return te.firstElementChild.get.call(t);case Node.DOCUMENT_NODE:return ee.firstElementChild.get.call(t);default:return Qt.firstElementChild.get.call(t)}},lastElementChild:function(t){switch(t.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return te.lastElementChild.get.call(t);case Node.DOCUMENT_NODE:return ee.lastElementChild.get.call(t);default:return Qt.lastElementChild.get.call(t)}}},re=Y.Ba?ne:Yt;function oe(t){for(;t.firstChild;)t.removeChild(t.firstChild)}var ie=Y.K,se=document.implementation.createHTMLDocument("inert"),ae=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),ue=ae&&ae.get,ce=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),le={parentElement:{get:function(){var t=G(this);return(t=t&&t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:re.parentElement(this)},configurable:!0},parentNode:{get:function(){var t=G(this);return void 0!==(t=t&&t.parentNode)?t:re.parentNode(this)},configurable:!0},nextSibling:{get:function(){var t=G(this);return void 0!==(t=t&&t.nextSibling)?t:re.nextSibling(this)},configurable:!0},previousSibling:{get:function(){var t=G(this);return void 0!==(t=t&&t.previousSibling)?t:re.previousSibling(this)},configurable:!0},nextElementSibling:{get:function(){var t=G(this);if(t&&void 0!==t.nextSibling){for(t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return re.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){var t=G(this);if(t&&void 0!==t.previousSibling){for(t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return re.previousElementSibling(this)},configurable:!0}},fe={className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0}},he={childNodes:{get:function(){if(Q(this)){var t=G(this);if(!t.childNodes){t.childNodes=[];for(var e=this.firstChild;e;e=e.nextSibling)t.childNodes.push(e)}var n=t.childNodes}else n=re.childNodes(this);return n.item=function(t){return n[t]},n},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=G(this);return void 0!==(t=t&&t.firstChild)?t:re.firstChild(this)},configurable:!0},lastChild:{get:function(){var t=G(this);return void 0!==(t=t&&t.lastChild)?t:re.lastChild(this)},configurable:!0},textContent:{get:function(){if(Q(this)){for(var t,e=[],n=0,r=this.childNodes;t=r[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return re.textContent(this)},set:function(t){switch(null==t&&(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!Q(this)&&ie){var e=this.firstChild;(e!=this.lastChild||e&&e.nodeType!=Node.TEXT_NODE)&&oe(this),ne.ya.textContent.set.call(this,t)}else oe(this),(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){var t=G(this);if(t&&void 0!==t.firstChild){for(t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return re.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){var t=G(this);if(t&&void 0!==t.lastChild){for(t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return re.lastElementChild(this)},configurable:!0},children:{get:function(){return Q(this)?ht(Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE})):re.children(this)},configurable:!0},innerHTML:{get:function(){return Q(this)?Vt("template"===this.localName?this.content:this):re.innerHTML(this)},set:function(t){var e="template"===this.localName?this.content:this;oe(e);var n=this.localName||"div";for(n=this.namespaceURI&&this.namespaceURI!==se.namespaceURI?se.createElementNS(this.namespaceURI,n):se.createElement(n),ie?ne.ya.innerHTML.set.call(n,t):n.innerHTML=t,t="template"===this.localName?n.content:n;t.firstChild;)e.appendChild(t.firstChild)},configurable:!0}},pe={shadowRoot:{get:function(){var t=G(this);return t&&t.za||null},configurable:!0}},de={activeElement:{get:function(){var t=ce&&ce.get?ce.get.call(document):Y.K?void 0:document.activeElement;if(t&&t.nodeType){var e=!!tt(this);if(this===document||e&&this.host!==t&&Ft.contains.call(this.host,t)){for(e=et(t);e&&e!==this;)e=et(t=e.host);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}};function ye(t,e,n){for(var r in e){var o=Object.getOwnPropertyDescriptor(t,r);o&&o.configurable||!o&&n?Object.defineProperty(t,r,e[r]):n&&console.warn("Could not define",r,"on",t)}}function me(t){ye(t,le),ye(t,fe),ye(t,he),ye(t,de)}var ve=Y.K?function(){}:function(t){var e=X(t);e.ua||(e.ua=!0,ye(t,le,!0),ye(t,fe,!0))},be=Y.K?function(){}:function(t){X(t).Ea||(ye(t,he,!0),ye(t,pe,!0))},ge=re.childNodes;function we(t,e,n){ve(t),n=n||null;var r=X(t),o=X(e),i=n?X(n):null;r.previousSibling=n?i.previousSibling:e.lastChild,(i=G(r.previousSibling))&&(i.nextSibling=t),(i=G(r.nextSibling=n))&&(i.previousSibling=t),r.parentNode=e,n?n===o.firstChild&&(o.firstChild=t):(o.lastChild=t,o.firstChild||(o.firstChild=t)),o.childNodes=null}function _e(t){var e=X(t);if(void 0===e.firstChild){e.childNodes=null;var n=ge(t);for(e.firstChild=n[0]||null,e.lastChild=n[n.length-1]||null,be(t),e=0;e<n.length;e++){var r=n[e],o=X(r);o.parentNode=t,o.nextSibling=n[e+1]||null,o.previousSibling=n[e-1]||null,ve(r)}}}var Ee=re.parentNode;function Se(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var r=G(n);if(void 0!==(r=r&&r.parentNode)&&r!==t||void 0===r&&Ee(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;var o=[],i=Me,s=et(t),a=s?s.host.localName:"";if(e.parentNode){var u=Re(e);xe(e.parentNode,e,!(!s&&e.getRootNode()instanceof ShadowRoot)),i=function(t,e){je()&&(Pe(t,u),Me(t,e))}}r=!0;var c=!function t(e,n){var r=je();if(!r)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r=!0;for(var o=0;r&&o<e.childNodes.length;o++)r=r&&t(e.childNodes[o],n);return r}return e.nodeType!==Node.ELEMENT_NODE||r.currentScopeForNode(e)===n}(e,a);return!s||e.__noInsertionPoint&&!c||Le(e,function(t){"slot"===t.localName&&o.push(t),c&&i(t,a)}),o.length&&function(t,e){t.a=t.a||[],t.o=t.o||[],t.w=t.w||{},t.a.push.apply(t.a,e instanceof Array?e:function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(h(e)))}(s,o),("slot"===t.localName||o.length)&&s&&hn(s),Q(t)&&(function(t,e,n){be(e);var r=X(e);if(void 0!==r.firstChild&&(r.childNodes=null),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r=t.childNodes;for(var o=0;o<r.length;o++)we(r[o],e,n);e=void 0!==(t=X(t)).firstChild?null:void 0,t.firstChild=t.lastChild=e,t.childNodes=e}else we(t,e,n)}(e,t,n),s=G(t),Oe(t)?(hn(s.root),r=!1):s.root&&(r=!1)),r?(r=tt(t)?t.host:t,n?(n=function t(e){var n=e;e&&"slot"===e.localName&&(n=(n=(n=G(e))&&n.N)&&n.length?n[0]:t(e.nextSibling));return n}(n),Ft.insertBefore.call(r,e,n)):Ft.appendChild.call(r,e)):e.ownerDocument!==t.ownerDocument&&t.ownerDocument.adoptNode(e),Ce(t,e),e}function xe(t,e,n){if(n=void 0!==n&&n,e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var r=et(e),o=G(t);if(Q(t)&&(function(t,e){var n=X(t);t===(e=X(e)).firstChild&&(e.firstChild=n.nextSibling),t===e.lastChild&&(e.lastChild=n.previousSibling),t=n.previousSibling;var r=n.nextSibling;t&&(X(t).nextSibling=r),r&&(X(r).previousSibling=t),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==e.childNodes&&(e.childNodes=null)}(e,t),Oe(t))){hn(o.root);var i=!0}if(je()&&!n&&r){var s=Re(e);Le(e,function(t){Pe(t,s)})}if(function t(e){var n=G(e);if(n&&void 0!==n.V){n=e.childNodes;for(var r=0,o=n.length,i=void 0;r<o&&(i=n[r]);r++)t(i)}(e=G(e))&&(e.V=void 0)}(e),r){var a=t&&"slot"===t.localName;a&&(i=!0),((n=function(t,e){if(t.o){vn(t);var n,r=t.w;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var s=o[i];if(ft(e,s)){o.splice(i,1);var a=t.o.indexOf(s);if(0<=a&&t.o.splice(a,1),i--,s=G(s),a=s.N)for(var u=0;u<a.length;u++){var c=a[u],l=sn(c);l&&Ft.removeChild.call(l,c)}s.N=[],s.assignedNodes=[],a=!0}}return a}}(r,e))||a)&&hn(r)}return i||(i=tt(t)?t.host:t,(!o.root&&"slot"!==e.localName||i===Ee(e))&&Ft.removeChild.call(i,e)),Ce(t,null,e),e}function Oe(t){return(t=(t=G(t))&&t.root)&&wn(t)}function Te(t,e){if("slot"===e)Oe(t=t.parentNode)&&hn(G(t).root);else if("slot"===t.localName&&"name"===e&&(e=et(t))){if(e.o){vn(e);var n=t.Ha,r=bn(t);if(r!==n){var o=(n=e.w[n]).indexOf(t);0<=o&&n.splice(o,1),(n=e.w[r]||(e.w[r]=[])).push(t),1<n.length&&(e.w[r]=gn(n))}}hn(e)}}function Ce(t,e,n){(t=(t=G(t))&&t.S)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),function(t){t.a||(t.a=!0,ct(function(){t.flush()}))}(t))}function Ne(t,e,n){var r=[];return function t(e,n,r,o){for(var i=0,s=e.length,a=void 0;i<s&&(a=e[i]);i++){var u;if(u=a.nodeType===Node.ELEMENT_NODE){var c=n,l=r,f=o,h=c(u=a);h&&f.push(u),l&&l(h)?u=h:(t(u.childNodes,c,l,f),u=void 0)}if(u)break}}(t.childNodes,e,n,r),r}var ke=null;function je(){return ke||(ke=window.ShadyCSS&&window.ShadyCSS.ScopingShim),ke||null}function Ae(t,e,n){var r=je();r&&"class"===e?r.setElementClass(t,n):(Ft.setAttribute.call(t,e,n),Te(t,e))}function Me(t,e){var n=je();n&&n.scopeNode(t,e)}function Pe(t,e){var n=je();n&&n.unscopeNode(t,e)}function Re(t){if(t.nodeType!==Node.ELEMENT_NODE)return"";var e=je();return e?e.currentScopeForNode(t):""}function Le(t,e){if(t){t.nodeType===Node.ELEMENT_NODE&&e(t);for(var n,r=0;r<t.childNodes.length;r++)(n=t.childNodes[r]).nodeType===Node.ELEMENT_NODE&&Le(n,e)}}var Ie="__eventWrappers"+Date.now(),De=function(){var t=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return t?function(e){return t.get.call(e)}:null}(),Fe={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},qe={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function He(t,e){var n=[],r=t;for(t=t===window?window:t.getRootNode();r;)n.push(r),r=r.assignedSlot?r.assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(e||r!==t)?r.host:r.parentNode;return n[n.length-1]===document&&n.push(window),n}function Ue(t,e){if(!tt)return t;t=He(t,!0);for(var n,r,o=0,i=void 0,s=void 0;o<e.length;o++)if((r=(n=e[o])===window?window:n.getRootNode())!==i&&(s=t.indexOf(r),i=r),!tt(r)||-1<s)return n}var ze={get composed(){return void 0===this.Y&&(De?this.Y="focusin"===this.type||"focusout"===this.type||De(this):!1!==this.isTrusted&&(this.Y=Fe[this.type])),this.Y||!1},composedPath:function(){return this.ta||(this.ta=He(this.__target,this.composed)),this.ta},get target(){return Ue(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.la?(this.va||(this.va=He(this.la,!0)),Ue(this.currentTarget||this.__previousCurrentTarget,this.va)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ka=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ka=this.Da=!0}};function Be(t){function e(e,n){return(e=new t(e,n)).Y=n&&!!n.composed,e}return function(t,e){for(var n in e)t[n]=e[n]}(e,t),e.prototype=t.prototype,e}var We={focus:!0,blur:!0};function Ve(t){return t.__target!==t.target||t.la!==t.relatedTarget}function $e(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var r,o=0;(r=n[o])&&(!Ve(t)||t.target!==t.relatedTarget)&&(r.call(e,t),!t.Da);o++);}function Xe(t){var e,n=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return o},configurable:!0});for(var r=n.length-1;0<=r;r--){var o=n[r];if($e(t,o,"capture"),t.ka)return}for(Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}}),r=0;r<n.length;r++){var i=G(o=n[r]);if(i=i&&i.root,(0===r||i&&i===e)&&($e(t,o,"bubble"),o!==window&&(e=o.getRootNode()),t.ka))break}}function Ge(t,e,n,r,o,i){for(var s=0;s<t.length;s++){var a=t[s],u=a.type,c=a.capture,l=a.once,f=a.passive;if(e===a.node&&n===u&&r===c&&o===l&&i===f)return s}return-1}function Ye(t,e,r){if(e){var o=n(e);if(("function"===o||"object"===o)&&("object"!==o||e.handleEvent&&"function"==typeof e.handleEvent)){var i=this instanceof Window?Ft.gb:Ft.addEventListener;if(qe[t])return i.call(this,t,e,r);if(r&&"object"===n(r))var s=!!r.capture,a=!!r.once,u=!!r.passive;else s=!!r,u=a=!1;var c=r&&r.na||this,l=e[Ie];if(l){if(-1<Ge(l,c,t,s,a,u))return}else e[Ie]=[];l=function(n){if(a&&this.removeEventListener(t,e,r),n.__target||Je(n),c!==this){var i=Object.getOwnPropertyDescriptor(n,"currentTarget");Object.defineProperty(n,"currentTarget",{get:function(){return c},configurable:!0})}if(n.__previousCurrentTarget=n.currentTarget,(!tt(c)||-1!=n.composedPath().indexOf(c))&&(n.composed||-1<n.composedPath().indexOf(c)))if(Ve(n)&&n.target===n.relatedTarget)n.eventPhase===Event.BUBBLING_PHASE&&n.stopImmediatePropagation();else if(n.eventPhase===Event.CAPTURING_PHASE||n.bubbles||n.target===c||c instanceof Window){var s="function"===o?e.call(c,n):e.handleEvent&&e.handleEvent(n);return c!==this&&(i?(Object.defineProperty(n,"currentTarget",i),i=null):delete n.currentTarget),s}},e[Ie].push({node:c,type:t,capture:s,once:a,passive:u,ib:l}),We[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][s?"capture":"bubble"].push(l)):i.call(this,t,l,r)}}}function Ke(t,e,r){if(e){var o=this instanceof Window?Ft.hb:Ft.removeEventListener;if(qe[t])return o.call(this,t,e,r);if(r&&"object"===n(r))var i=!!r.capture,s=!!r.once,a=!!r.passive;else i=!!r,a=s=!1;var u=r&&r.na||this,c=void 0,l=null;try{l=e[Ie]}catch(t){}l&&(-1<(s=Ge(l,u,t,i,s,a))&&(c=l.splice(s,1)[0].ib,l.length||(e[Ie]=void 0))),o.call(this,t,c||e,r),c&&We[t]&&this.__handlers&&this.__handlers[t]&&(-1<(c=(t=this.__handlers[t][i?"capture":"bubble"]).indexOf(c))&&t.splice(c,1))}}function Je(t){if(t.__target=t.target,t.la=t.relatedTarget,Y.K){var e=Object.getPrototypeOf(t);if(!e.hasOwnProperty("__patchProto")){var n=Object.create(e);n.jb=e,ot(n,ze),e.__patchProto=n}t.__proto__=e.__patchProto}else ot(t,ze)}var Ze=Be(window.Event),Qe=Be(window.CustomEvent),tn=Be(window.MouseEvent);function en(t,e){return{index:t,W:[],ba:e}}function nn(t,e,n,r){var o=0,i=0,s=0,a=0,u=Math.min(e-o,r-i);if(0==o&&0==i)t:{for(s=0;s<u;s++)if(t[s]!==n[s])break t;s=u}if(e==t.length&&r==n.length){a=t.length;for(var c=n.length,l=0;l<u-s&&rn(t[--a],n[--c]);)l++;a=l}if(i+=s,r-=a,0==(e-=a)-(o+=s)&&0==r-i)return[];if(o==e){for(e=en(o,0);i<r;)e.W.push(n[i++]);return[e]}if(i==r)return[en(o,e-o)];for(r=r-(s=i)+1,a=e-(u=o)+1,e=Array(r),c=0;c<r;c++)e[c]=Array(a),e[c][0]=c;for(c=0;c<a;c++)e[0][c]=c;for(c=1;c<r;c++)for(l=1;l<a;l++)if(t[u+l-1]===n[s+c-1])e[c][l]=e[c-1][l-1];else{var f=e[c-1][l]+1,h=e[c][l-1]+1;e[c][l]=f<h?f:h}for(u=e.length-1,s=e[0].length-1,r=e[u][s],t=[];0<u||0<s;)0==u?(t.push(2),s--):0==s?(t.push(3),u--):(a=e[u-1][s-1],(f=(c=e[u-1][s])<(l=e[u][s-1])?c<a?c:a:l<a?l:a)==a?(a==r?t.push(0):(t.push(1),r=a),u--,s--):f==c?(t.push(3),u--,r=c):(t.push(2),s--,r=l));for(t.reverse(),e=void 0,u=[],s=0;s<t.length;s++)switch(t[s]){case 0:e&&(u.push(e),e=void 0),o++,i++;break;case 1:e||(e=en(o,0)),e.ba++,o++,e.W.push(n[i]),i++;break;case 2:e||(e=en(o,0)),e.ba++,o++;break;case 3:e||(e=en(o,0)),e.W.push(n[i]),i++}return e&&u.push(e),u}function rn(t,e){return t===e}var on,sn=re.parentNode,an=re.childNodes,un={},cn=Y.deferConnectionCallbacks&&"loading"===document.readyState;function ln(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function fn(t,e,n){if(t!==un)throw new TypeError("Illegal constructor");this.Ja="ShadyRoot",this.host=e,this.c=n&&n.mode,_e(e),(t=X(e)).root=this,t.za="closed"!==this.c?this:null,(t=X(this)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,t.childNodes=[],this.b=this.aa=!1,this.a=this.w=this.o=null,hn(this)}function hn(t){t.aa||(t.aa=!0,yt(function(){return pn(t)}))}function pn(t){for(var e;t;){t.aa&&(e=t);t:{var n=t;if(tt(t=n.host.getRootNode()))for(var r=n.host.childNodes,o=0;o<r.length;o++)if("slot"==(n=r[o]).localName)break t;t=void 0}}e&&e._renderRoot()}function dn(t,e,n){var r=X(e),o=r.$;r.$=null,n||(n=(t=t.w[e.slot||"__catchall"])&&t[0]),n?(X(n).assignedNodes.push(e),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(X(r.assignedSlot).ea=!0)}function yn(t,e,n){for(var r=0,o=void 0;r<n.length&&(o=n[r]);r++)if("slot"==o.localName){var i=G(o).assignedNodes;i&&i.length&&yn(t,e,i)}else e.push(n[r])}function mn(t,e){Ft.dispatchEvent.call(e,new Event("slotchange")),(e=G(e)).assignedSlot&&mn(t,e.assignedSlot)}function vn(t){if(t.a&&t.a.length){for(var e,n=t.a,r=0;r<n.length;r++){var o=n[r];_e(o),_e(o.parentNode);var i=bn(o);t.w[i]?((e=e||{})[i]=!0,t.w[i].push(o)):t.w[i]=[o],t.o.push(o)}if(e)for(var s in e)t.w[s]=gn(t.w[s]);t.a=[]}}function bn(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Ha=e}function gn(t){return t.sort(function(t,e){t=ln(t);for(var n=ln(e),r=0;r<t.length;r++){e=t[r];var o=n[r];if(e!==o)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(o)}})}function wn(t){return vn(t),!(!t.o||!t.o.length)}if(fn.prototype._renderRoot=function(){var t=cn;if(cn=!0,this.aa=!1,this.o){vn(this);for(var e,n=0;n<this.o.length;n++){var r=G(e=this.o[n]),o=r.assignedNodes;if(r.assignedNodes=[],r.N=[],r.oa=o)for(r=0;r<o.length;r++){var i=G(o[r]);i.$=i.assignedSlot,i.assignedSlot===e&&(i.assignedSlot=null)}}for(n=this.host.firstChild;n;n=n.nextSibling)dn(this,n);for(n=0;n<this.o.length;n++){if(!(o=G(e=this.o[n])).assignedNodes.length)for(r=e.firstChild;r;r=r.nextSibling)dn(this,r,e);if((r=(r=G(e.parentNode))&&r.root)&&wn(r)&&r._renderRoot(),yn(this,o.N,o.assignedNodes),r=o.oa){for(i=0;i<r.length;i++)G(r[i]).$=null;o.oa=null,r.length>o.assignedNodes.length&&(o.ea=!0)}o.ea&&(o.ea=!1,mn(this,e))}for(e=this.o,n=[],o=0;o<e.length;o++)(i=G(r=e[o].parentNode))&&i.root||!(0>n.indexOf(r))||n.push(r);for(e=0;e<n.length;e++){o=(i=n[e])===this?this.host:i,r=[],i=i.childNodes;for(var s=0;s<i.length;s++){var a=i[s];if("slot"==a.localName){a=G(a).N;for(var u=0;u<a.length;u++)r.push(a[u])}else r.push(a)}i=an(o),s=nn(r,r.length,i,i.length),u=a=0;for(var c=void 0;a<s.length&&(c=s[a]);a++){for(var l=0,f=void 0;l<c.W.length&&(f=c.W[l]);l++)sn(f)===o&&Ft.removeChild.call(o,f),i.splice(c.index+u,1);u-=c.ba}for(u=0,c=void 0;u<s.length&&(c=s[u]);u++)for(a=i[c.index],l=c.index;l<c.index+c.ba;l++)f=r[l],Ft.insertBefore.call(o,f,a),i.splice(l,0,f)}}if(!this.b)for(e=0,o=(n=this.host.childNodes).length;e<o;e++)i=G(r=n[e]),sn(r)!==this.host||"slot"!==r.localName&&i.assignedSlot||Ft.removeChild.call(this.host,r);this.b=!0,cn=t,on&&on()},window.customElements&&Y.qa){var _n=new Map;on=function(){var t=Array.from(_n);_n.clear();for(var e=(t=h(t)).next();!e.done;e=t.next()){var n=(e=h(e.value)).next().value;e.next().value?n.Fa():n.Ga()}},cn&&document.addEventListener("readystatechange",function(){cn=!1,on()},{once:!0});var En=window.customElements.define;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:function(t,e){var n=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;En.call(window.customElements,t,function(t,e,n){var r=0,o="__isConnected"+r++;return(e||n)&&(t.prototype.connectedCallback=t.prototype.Fa=function(){cn?_n.set(this,!0):this[o]||(this[o]=!0,e&&e.call(this))},t.prototype.disconnectedCallback=t.prototype.Ga=function(){cn?this.isConnected||_n.set(this,!1):this[o]&&(this[o]=!1,n&&n.call(this))}),t}(e,n,r)),e.prototype.connectedCallback=n,e.prototype.disconnectedCallback=r}})}function Sn(t){var e=t.getRootNode();return tt(e)&&pn(e),(t=G(t))&&t.assignedSlot||null}var xn={addEventListener:Ye.bind(window),removeEventListener:Ke.bind(window)},On={addEventListener:Ye,removeEventListener:Ke,appendChild:function(t){return Se(this,t)},insertBefore:function(t,e){return Se(this,t,e)},removeChild:function(t){return xe(this,t)},replaceChild:function(t,e){return Se(this,t,e),xe(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=Ft.cloneNode.call(this,t);else if(e=Ft.cloneNode.call(this,!1),t&&e.nodeType!==Node.ATTRIBUTE_NODE){t=this.childNodes;for(var n,r=0;r<t.length;r++)n=t[r].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return function t(e){if(e&&e.nodeType){var n=X(e),r=n.V;return void 0===r&&(tt(e)?(r=e,n.V=r):(r=(r=e.parentNode)?t(r):e,Ft.contains.call(document.documentElement,e)&&(n.V=r))),r}}(this)},contains:function(t){return ft(this,t)},dispatchEvent:function(t){return mt(),Ft.dispatchEvent.call(this,t)}};Object.defineProperties(On,{isConnected:{get:function(){if(ue&&ue.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var t=this.ownerDocument;if(lt){if(Ft.contains.call(t,this))return!0}else if(t.documentElement&&Ft.contains.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(tt(t)?t.host:void 0);return!!(t&&t instanceof Document)},configurable:!0}});var Tn={get assignedSlot(){return Sn(this)}},Cn={querySelector:function(t){return Ne(this,function(e){return rt.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t,e){if(e){e=Array.prototype.slice.call(Ft.querySelectorAll.call(this,t));var n=this.getRootNode();return e.filter(function(t){return t.getRootNode()==n})}return Ne(this,function(e){return rt.call(e,t)})}},Nn={assignedNodes:function(t){if("slot"===this.localName){var e=this.getRootNode();return tt(e)&&pn(e),(e=G(this))&&(t&&t.flatten?e.N:e.assignedNodes)||[]}}},kn=it({setAttribute:function(t,e){Ae(this,t,e)},removeAttribute:function(t){Ft.removeAttribute.call(this,t),Te(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new fn(un,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){Ae(this,"slot",t)},get assignedSlot(){return Sn(this)}},Cn,Nn);Object.defineProperties(kn,pe);var jn=it({importNode:function(t,e){return function t(e,n){if(e.ownerDocument!==document||"template"===e.localName)return Ft.importNode.call(document,e,n);var r=Ft.importNode.call(document,e,!1);if(n){e=e.childNodes,n=0;for(var o;n<e.length;n++)o=t(e[n],!0),r.appendChild(o)}return r}(t,e)},getElementById:function(t){return Ne(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},Cn);Object.defineProperties(jn,{_activeElement:de.activeElement});for(var An=HTMLElement.prototype.blur,Mn={blur:function(){var t=G(this);(t=(t=t&&t.root)&&t.activeElement)?t.blur():An.call(this)}},Pn={},Rn=h(Object.getOwnPropertyNames(Document.prototype)),Ln=Rn.next();!Ln.done;Pn={H:Pn.H},Ln=Rn.next())Pn.H=Ln.value,"on"===Pn.H.substring(0,2)&&Object.defineProperty(Mn,Pn.H,{set:function(t){return function(e){var n=X(this),r=t.H.substring(2);n.Z[t.H]&&this.removeEventListener(r,n.Z[t.H]),this.addEventListener(r,e,{}),n.Z[t.H]=e}}(Pn),get:function(t){return function(){var e=G(this);return e&&e.Z[t.H]}}(Pn),configurable:!0});var In={addEventListener:function(t,e,r){"object"!==n(r)&&(r={capture:!!r}),r.na=this,this.host.addEventListener(t,e,r)},removeEventListener:function(t,e,r){"object"!==n(r)&&(r={capture:!!r}),r.na=this,this.host.removeEventListener(t,e,r)},getElementById:function(t){return Ne(this,function(e){return e.id==t},function(t){return!!t})[0]||null}};function Dn(t,e){for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(e,o);i.value?t[o]=i.value:Object.defineProperty(t,o,i)}}if(Y.qa){var Fn={inUse:Y.qa,patch:function(t){return be(t),ve(t),t},isShadyRoot:tt,enqueue:yt,flush:mt,settings:Y,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){var n=X(t);n.S||(n.S=new vt),n.S.ca.add(e);var r=n.S;return{Ia:e,P:r,Ka:t,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.P;e&&(e.ca.delete(t.Ia),e.ca.size||(X(t.Ka).S=null))},nativeMethods:Ft,nativeTree:re,deferConnectionCallbacks:Y.deferConnectionCallbacks,handlesDynamicScoping:!0};window.ShadyDOM=Fn,function(){if(window.Event=Ze,window.CustomEvent=Qe,window.MouseEvent=tn,function(){for(var t in We)window.addEventListener(t,function(t){t.__target||(Je(t),Xe(t))},!0)}(),!De&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var t=function(){var t=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.dispatchEvent(t)};Element.prototype.click?Element.prototype.click=t:HTMLElement.prototype.click&&(HTMLElement.prototype.click=t)}}();var qn=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;Dn(fn.prototype,In),Dn(window.Node.prototype,On),Dn(window.Window.prototype,xn),Dn(window.Text.prototype,Tn),Dn(window.DocumentFragment.prototype,Cn),Dn(window.Element.prototype,kn),Dn(window.Document.prototype,jn),window.HTMLSlotElement&&Dn(window.HTMLSlotElement.prototype,Nn),Dn(qn.prototype,Mn),Y.K&&(me(window.Node.prototype),me(window.Text.prototype),me(window.DocumentFragment.prototype),me(window.Element.prototype),me(qn.prototype),me(window.Document.prototype),window.HTMLSlotElement&&me(window.HTMLSlotElement.prototype)),function(){var t=fn.prototype;t.__proto__=DocumentFragment.prototype,ye(t,le,!0),ye(t,he,!0),ye(t,de,!0),Object.defineProperties(t,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach(function(e){Object.defineProperty(t,e,{value:void 0,configurable:!0})}),["ownerDocument","baseURI","isConnected"].forEach(function(e){Object.defineProperty(t,e,{get:function(){return this.host[e]},configurable:!0})})}(),window.ShadowRoot=fn}var Hn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function Un(t){var e=Hn.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function zn(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function Bn(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function Wn(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var o=r;e(o);var i=o.localName;if("link"===i&&"import"===o.getAttribute("rel")){if((r=o.import)instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)Wn(r,e,n);r=Bn(t,o);continue}if("template"===i){r=Bn(t,o);continue}if(o=o.__CE_shadowRoot)for(o=o.firstChild;o;o=o.nextSibling)Wn(o,e,n)}r=r.firstChild?r.firstChild:Bn(t,r)}}function Vn(t,e,n){t[e]=n}function $n(){this.a=new Map,this.m=new Map,this.f=[],this.c=!1}function Xn(t,e){t.c=!0,t.f.push(e)}function Gn(t,e){t.c&&Wn(e,function(e){return t.b(e)})}function Yn(t,e){var n=[];for(Wn(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state?t.connectedCallback(r):Zn(t,r)}}function Kn(t,e){var n=[];for(Wn(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state&&t.disconnectedCallback(r)}}function Jn(t,e,n){var r=(n=void 0===n?{}:n).fb||new Set,o=n.ia||function(e){return Zn(t,e)},i=[];if(Wn(e,function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(r);i.delete(n),Jn(t,n,{fb:i,ia:o})}})}else i.push(e)},r),t.c)for(e=0;e<i.length;e++)t.b(i[e]);for(e=0;e<i.length;e++)o(i[e])}function Zn(t,e){if(void 0===e.__CE_state){var n=e.ownerDocument;if((n.defaultView||n.__CE_isImportDocument&&n.__CE_hasRegistry)&&(n=t.a.get(e.localName))){n.constructionStack.push(e);var r=n.constructor;try{try{if(new r!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,e.__CE_definition=n,n.attributeChangedCallback)for(n=n.observedAttributes,r=0;r<n.length;r++){var o=n[r],i=e.getAttribute(o);null!==i&&t.attributeChangedCallback(e,o,null,i,null)}zn(e)&&t.connectedCallback(e)}}}function Qn(t){var e=document;this.b=t,this.a=e,this.P=void 0,Jn(this.b,this.a),"loading"===this.a.readyState&&(this.P=new MutationObserver(this.c.bind(this)),this.P.observe(this.a,{childList:!0,subtree:!0}))}function tr(t){t.P&&t.P.disconnect()}function er(){var t=this;this.a=this.A=void 0,this.b=new Promise(function(e){t.a=e,t.A&&e(t.A)})}function nr(t){this.c=!1,this.a=t,this.G=new Map,this.f=function(t){return t()},this.b=!1,this.m=[],this.fa=new Qn(t)}$n.prototype.b=function(t){if(this.c&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.f.length;e++)this.f[e](t)}},$n.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},$n.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},$n.prototype.attributeChangedCallback=function(t,e,n,r,o){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,r,o)},Qn.prototype.c=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||tr(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,r=0;r<n.length;r++)Jn(this.b,n[r])},er.prototype.resolve=function(t){if(this.A)throw Error("Already resolved.");this.A=t,this.a&&this.a(t)},(r=nr.prototype).define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Un(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var r=function(t){var e=o[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},o=e.prototype;if(!(o instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=r("connectedCallback"),s=r("disconnectedCallback"),a=r("adoptedCallback"),u=r("attributeChangedCallback"),c=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:s,adoptedCallback:a,attributeChangedCallback:u,observedAttributes:c,constructionStack:[]},function(t,e,n){t.a.set(e,n),t.m.set(n.constructor,n)}(this.a,t,e),this.m.push(e),this.b||(this.b=!0,this.f(function(){return function(t){if(!1!==t.b){t.b=!1;for(var e=t.m,n=[],r=new Map,o=0;o<e.length;o++)r.set(e[o].localName,[]);for(Jn(t.a,document,{ia:function(e){if(void 0===e.__CE_state){var o=e.localName,i=r.get(o);i?i.push(e):t.a.a.get(o)&&n.push(e)}}}),o=0;o<n.length;o++)Zn(t.a,n[o]);for(;0<e.length;){var i=e.shift();o=i.localName,i=r.get(i.localName);for(var s=0;s<i.length;s++)Zn(t.a,i[s]);(o=t.G.get(o))&&o.resolve(void 0)}}}(n)}))},r.ia=function(t){Jn(this.a,t)},r.get=function(t){if(t=this.a.a.get(t))return t.constructor},r.Ca=function(t){if(!Un(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.G.get(t);return e?e.b:(e=new er,this.G.set(t,e),this.a.a.get(t)&&!this.m.some(function(e){return e.localName===t})&&e.resolve(void 0),e.b)},r.Ya=function(t){tr(this.fa);var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=nr,nr.prototype.define=nr.prototype.define,nr.prototype.upgrade=nr.prototype.ia,nr.prototype.get=nr.prototype.get,nr.prototype.whenDefined=nr.prototype.Ca,nr.prototype.polyfillWrapFlushCallback=nr.prototype.Ya;var rr=window.Document.prototype.createElement,or=window.Document.prototype.createElementNS,ir=window.Document.prototype.importNode,sr=window.Document.prototype.prepend,ar=window.Document.prototype.append,ur=window.DocumentFragment.prototype.prepend,cr=window.DocumentFragment.prototype.append,lr=window.Node.prototype.cloneNode,fr=window.Node.prototype.appendChild,hr=window.Node.prototype.insertBefore,pr=window.Node.prototype.removeChild,dr=window.Node.prototype.replaceChild,yr=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),mr=window.Element.prototype.attachShadow,vr=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),br=window.Element.prototype.getAttribute,gr=window.Element.prototype.setAttribute,wr=window.Element.prototype.removeAttribute,_r=window.Element.prototype.getAttributeNS,Er=window.Element.prototype.setAttributeNS,Sr=window.Element.prototype.removeAttributeNS,xr=window.Element.prototype.insertAdjacentElement,Or=window.Element.prototype.insertAdjacentHTML,Tr=window.Element.prototype.prepend,Cr=window.Element.prototype.append,Nr=window.Element.prototype.before,kr=window.Element.prototype.after,jr=window.Element.prototype.replaceWith,Ar=window.Element.prototype.remove,Mr=window.HTMLElement,Pr=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Rr=window.HTMLElement.prototype.insertAdjacentElement,Lr=window.HTMLElement.prototype.insertAdjacentHTML,Ir=new function(){};function Dr(t,e,n){function r(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],s=0;s<r.length;s++){var a=r[s];if(a instanceof Element&&zn(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)o.push(a);else o.push(a)}for(e.apply(this,r),r=0;r<i.length;r++)Kn(t,i[r]);if(zn(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&Yn(t,i)}}void 0!==n.ha&&(e.prepend=r(n.ha)),void 0!==n.append&&(e.append=r(n.append))}var Fr=window.customElements;if(!Fr||Fr.forcePolyfill||"function"!=typeof Fr.define||"function"!=typeof Fr.get){var qr=new $n;!function(){var t=qr;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.m.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var r=n.constructionStack;if(0===r.length)return r=rr.call(document,n.localName),Object.setPrototypeOf(r,e.prototype),r.__CE_state=1,r.__CE_definition=n,t.b(r),r;var o=r[n=r.length-1];if(o===Ir)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return r[n]=Ir,Object.setPrototypeOf(o,e.prototype),t.b(o),o}return e.prototype=Mr.prototype,Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),e}()}(),function(){var t=qr;Vn(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructor}return e=rr.call(this,e),t.b(e),e}),Vn(Document.prototype,"importNode",function(e,n){return e=ir.call(this,e,n),this.__CE_hasRegistry?Jn(t,e):Gn(t,e),e}),Vn(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var r=t.a.get(n);if(r)return new r.constructor}return e=or.call(this,e,n),t.b(e),e}),Dr(t,Document.prototype,{ha:sr,append:ar})}(),Dr(qr,DocumentFragment.prototype,{ha:ur,append:cr}),function(){function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var r=void 0;if(this.firstChild){var o=this.childNodes,i=o.length;if(0<i&&zn(this)){r=Array(i);for(var s=0;s<i;s++)r[s]=o[s]}}if(n.set.call(this,t),r)for(t=0;t<r.length;t++)Kn(e,r[t])}}})}var e=qr;Vn(Node.prototype,"insertBefore",function(t,n){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=hr.call(this,t,n),zn(this))for(n=0;n<r.length;n++)Yn(e,r[n]);return t}return r=zn(t),n=hr.call(this,t,n),r&&Kn(e,t),zn(this)&&Yn(e,t),n}),Vn(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes);if(t=fr.call(this,t),zn(this))for(var r=0;r<n.length;r++)Yn(e,n[r]);return t}return n=zn(t),r=fr.call(this,t),n&&Kn(e,t),zn(this)&&Yn(e,t),r}),Vn(Node.prototype,"cloneNode",function(t){return t=lr.call(this,t),this.ownerDocument.__CE_hasRegistry?Jn(e,t):Gn(e,t),t}),Vn(Node.prototype,"removeChild",function(t){var n=zn(t),r=pr.call(this,t);return n&&Kn(e,t),r}),Vn(Node.prototype,"replaceChild",function(t,n){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=dr.call(this,t,n),zn(this))for(Kn(e,n),n=0;n<r.length;n++)Yn(e,r[n]);return t}r=zn(t);var o=dr.call(this,t,n),i=zn(this);return i&&Kn(e,n),r&&Kn(e,t),i&&Yn(e,t),o}),yr&&yr.get?t(Node.prototype,yr):Xn(e,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)pr.call(this,this.firstChild);fr.call(this,document.createTextNode(t))}})})}(),function(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var n=this,o=void 0;if(zn(this)&&(o=[],Wn(this,function(t){t!==n&&o.push(t)})),e.set.call(this,t),o)for(var i=0;i<o.length;i++){var s=o[i];1===s.__CE_state&&r.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?Jn(r,this):Gn(r,this),t}})}function e(t,e){Vn(t,"insertAdjacentElement",function(t,n){var o=zn(n);return t=e.call(this,t,n),o&&Kn(r,n),zn(t)&&Yn(r,n),t})}function n(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)Jn(r,n[e])}Vn(t,"insertAdjacentHTML",function(t,r){if("beforebegin"===(t=t.toLowerCase())){var o=this.previousSibling;e.call(this,t,r),n(o||this.parentNode.firstChild,this)}else if("afterbegin"===t)o=this.firstChild,e.call(this,t,r),n(this.firstChild,o);else if("beforeend"===t)o=this.lastChild,e.call(this,t,r),n(o||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,e.call(this,t,r),n(this.nextSibling,o)}})}var r=qr;mr&&Vn(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=mr.call(this,t)}),vr&&vr.get?t(Element.prototype,vr):Pr&&Pr.get?t(HTMLElement.prototype,Pr):Xn(r,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return lr.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,r=or.call(document,this.namespaceURI,this.localName);for(r.innerHTML=t;0<n.childNodes.length;)pr.call(n,n.childNodes[0]);for(t=e?r.content:r;0<t.childNodes.length;)fr.call(n,t.childNodes[0])}})}),Vn(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return gr.call(this,t,e);var n=br.call(this,t);gr.call(this,t,e),e=br.call(this,t),r.attributeChangedCallback(this,t,n,e,null)}),Vn(Element.prototype,"setAttributeNS",function(t,e,n){if(1!==this.__CE_state)return Er.call(this,t,e,n);var o=_r.call(this,t,e);Er.call(this,t,e,n),n=_r.call(this,t,e),r.attributeChangedCallback(this,e,o,n,t)}),Vn(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return wr.call(this,t);var e=br.call(this,t);wr.call(this,t),null!==e&&r.attributeChangedCallback(this,t,e,null,null)}),Vn(Element.prototype,"removeAttributeNS",function(t,e){if(1!==this.__CE_state)return Sr.call(this,t,e);var n=_r.call(this,t,e);Sr.call(this,t,e);var o=_r.call(this,t,e);n!==o&&r.attributeChangedCallback(this,e,n,o,t)}),Rr?e(HTMLElement.prototype,Rr):xr?e(Element.prototype,xr):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),Lr?n(HTMLElement.prototype,Lr):Or?n(Element.prototype,Or):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Dr(r,Element.prototype,{ha:Tr,append:Cr}),function(t){function e(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],s=0;s<r.length;s++){var a=r[s];if(a instanceof Element&&zn(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)o.push(a);else o.push(a)}for(e.apply(this,r),r=0;r<i.length;r++)Kn(t,i[r]);if(zn(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&Yn(t,i)}}var n=Element.prototype;void 0!==Nr&&(n.before=e(Nr)),void 0!==Nr&&(n.after=e(kr)),void 0!==jr&&Vn(n,"replaceWith",function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var o=[],i=0;i<n.length;i++){var s=n[i];if(s instanceof Element&&zn(s)&&o.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(i=zn(this),jr.apply(this,n),n=0;n<o.length;n++)Kn(t,o[n]);if(i)for(Kn(t,this),n=0;n<r.length;n++)(o=r[n])instanceof Element&&Yn(t,o)}),void 0!==Ar&&Vn(n,"remove",function(){var e=zn(this);Ar.call(this),e&&Kn(t,this)})}(r)}(),document.__CE_hasRegistry=!0;var Hr=new nr(qr);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Hr})}function Ur(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function zr(t){var e=Br,n=t=t.replace(Yr,"").replace(Kr,""),r=new Ur;r.start=0,r.end=n.length;for(var o=r,i=0,s=n.length;i<s;i++)if("{"===n[i]){o.rules||(o.rules=[]);var a=o,u=a.rules[a.rules.length-1]||null;(o=new Ur).start=i+1,o.parent=a,o.previous=u,a.rules.push(o)}else"}"===n[i]&&(o.end=i+1,o=o.parent||r);return e(r,t)}function Br(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=(n=(n=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1))).replace(no," ")).substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=Xr:n.match(eo)&&(t.type=$r,t.keyframesName=t.selector.split(no).pop()):t.type=0===n.indexOf("--")?Gr:Vr),n=t.rules)for(var r=0,o=n.length,i=void 0;r<o&&(i=n[r]);r++)Br(i,e);return t}var Wr,Vr=1,$r=7,Xr=4,Gr=1e3,Yr=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,Kr=/@import[^;]*;/gim,Jr=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Zr=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Qr=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,to=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,eo=/^@[^\s]*keyframes/,no=/\s+/g,ro=!(window.ShadyDOM&&window.ShadyDOM.inUse);function oo(t){Wr=(!t||!t.shimcssproperties)&&(ro||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Wr=window.ShadyCSS.nativeCss:window.ShadyCSS?(oo(window.ShadyCSS),window.ShadyCSS=void 0):oo(window.WebComponents&&window.WebComponents.flags);var io=Wr,so=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ao=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,uo=/(--[\w-]+)\s*([:,;)]|$)/gi,co=/(animation\s*:)|(animation-name\s*:)/,lo=/@media\s(.*)/,fo=/\{[^}]*\}/g,ho=new Set;function po(t,e){return t?("string"==typeof t&&(t=zr(t)),e&&vo(t,e),function t(e,n,r){r=void 0===r?"":r;var o="";if(e.cssText||e.rules){var i,s=e.rules;if((i=s)&&(i=!((i=s[0])&&i.selector&&0===i.selector.indexOf("--"))),i){i=0;for(var a=s.length,u=void 0;i<a&&(u=s[i]);i++)o=t(u,n,o)}else n=n?e.cssText:(n=(n=e.cssText).replace(Jr,"").replace(Zr,"")).replace(Qr,"").replace(to,""),(o=n.trim())&&(o=" "+o+"\n")}return o&&(e.selector&&(r+=e.selector+" {\n"),r+=o,e.selector&&(r+="}\n\n")),r}(t,io)):""}function yo(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=zr(t.textContent)),t.__cssRules||null}function mo(t){return!!t.parent&&t.parent.type===$r}function vo(t,e,n,r){if(t){var o=!1,i=t.type;if(r&&i===Xr){var s=t.selector.match(lo);s&&(window.matchMedia(s[1]).matches||(o=!0))}if(i===Vr?e(t):n&&i===$r?n(t):i===Gr&&(o=!0),(t=t.rules)&&!o)for(o=0,i=t.length,s=void 0;o<i&&(s=t[o]);o++)vo(s,e,n,r)}}function bo(t,e,n,r){var o=document.createElement("style");return e&&o.setAttribute("scope",e),o.textContent=t,_o(o,n,r),o}var go=null;function wo(t){t=document.createComment(" Shady DOM styles for "+t+" ");var e=document.head;return e.insertBefore(t,(go?go.nextSibling:null)||e.firstChild),go=t}function _o(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),go?t.compareDocumentPosition(go)===Node.DOCUMENT_POSITION_PRECEDING&&(go=t):go=t}function Eo(t,e){for(var n=0,r=t.length;e<r;e++)if("("===t[e])n++;else if(")"===t[e]&&0==--n)return e;return-1}function So(t,e){ro?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function xo(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,X:n}}function Oo(t){for(var e=[],n="",r=0;0<=r&&r<t.length;r++)if("("===t[r]){var o=Eo(t,r);n+=t.slice(r,o+1),r=o}else","===t[r]?(e.push(n),n=""):n+=t[r];return n&&e.push(n),e}function To(t){if(void 0===t.ja){var e=t.getAttribute("css-build");if(e)t.ja=e;else{if(""!==(e=(e="template"===t.localName?t.content.firstChild:t.firstChild)instanceof Comment&&"css-build"===(e=e.textContent.trim().split(":"))[0]?e[1]:"")){var n="template"===t.localName?t.content.firstChild:t.firstChild;n.parentNode.removeChild(n)}t.ja=e}}return t.ja||""}function Co(){}function No(t,e,n){if(e.nodeType===Node.ELEMENT_NODE&&n(e),e="template"===e.localName?(e.content||e.kb||e).childNodes:e.children||e.childNodes)for(var r=0;r<e.length;r++)No(t,e[r],n)}function ko(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var r=t.getAttribute(Zo);n?r&&So(t,e=r.replace("style-scope","").replace(e,"")):So(t,(r?r+" ":"")+"style-scope "+e)}}function jo(t,e,n){No(ei,t,function(t){ko(t,e,!0),ko(t,n)})}function Ao(t,e){No(ei,t,function(t){ko(t,e||"",!0)})}function Mo(t,e,n,r){var o=ei;return ro||"shady"===(void 0===r?"":r)?e=po(e,n):e=function(t,e,n,r,o){var i=Po(n,r);return n=n?Ko+n:"",po(e,function(e){e.c||(e.selector=e.F=Ro(t,e,t.b,n,i),e.c=!0),o&&o(e,n,i)})}(o,e,(t=xo(t)).is,t.X,n)+"\n\n",e.trim()}function Po(t,e){return e?"[is="+t+"]":t}function Ro(t,e,n,r,o){var i=Oo(e.selector);if(!mo(e)){e=0;for(var s=i.length,a=void 0;e<s&&(a=i[e]);e++)i[e]=n.call(t,a,r,o)}return i.filter(function(t){return!!t}).join(Ho)}function Lo(t){return t.replace(Fo,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})}function Io(t,e){return(t=t.split(Jo))[0]+=e,t.join(Jo)}function Do(t){t.selector===Wo&&(t.selector="html")}Co.prototype.b=function(t,e,n){var r=!1;t=t.trim();var o=Fo.test(t);o&&(t=Lo(t=t.replace(Fo,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"})));var i=ti.test(t);if(i){var s=function(t){for(var e,n=[];e=t.match(ti);){var r=e.index,o=Eo(t,r);if(-1===o)throw Error(e.input+" selector missing ')'");e=t.slice(r,o+1),t=t.replace(e,""),n.push(e)}return{sa:t,matches:n}}(t);t=s.sa,s=s.matches}return t=(t=t.replace($o,Bo+" $1")).replace(Uo,function(t,o,i){return r||(t=function(t,e,n,r){var o=t.indexOf(Vo);if(0<=t.indexOf(Bo)?t=function(t,e){var n=t.match(Xo);return(n=n&&n[2].trim()||"")?n[0].match(zo)?t.replace(Xo,function(t,n,r){return e+r}):n.split(zo)[0]===e?n:Qo:t.replace(Bo,e)}(t,r):0!==o&&(t=n?Io(t,n):t),n=!1,0<=o&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(Go,function(t,e){return" > "+e}))}return{value:t=t.replace(Yo,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),Oa:e,stop:i}}(i,o,e,n),r=r||t.stop,o=t.Oa,i=t.value),o+i}),i&&(t=function(t,e){var n=t.split("");return e.reduce(function(t,e,r){return t+e+n[r+1]},n[0])}(t,s)),o&&(t=Lo(t)),t},Co.prototype.c=function(t){return t.match(Bo)?"":t.match(Vo)?this.b(t,qo):Io(t.trim(),qo)},i.Object.defineProperties(Co.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Fo=/:(nth[-\w]+)\(([^)]+)\)/,qo=":not(.style-scope)",Ho=",",Uo=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,zo=/[[.:#*]/,Bo=":host",Wo=":root",Vo="::slotted",$o=new RegExp("^("+Vo+")"),Xo=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Go=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Yo=/(.*):dir\((?:(ltr|rtl))\)/,Ko=".",Jo=":",Zo="class",Qo="should_not_match",ti=/:(?:matches|any|-(?:webkit|moz)-any)/,ei=new Co;function ni(t,e,n,r,o){this.M=t||null,this.b=e||null,this.c=n||[],this.T=null,this.da=o||"",this.X=r||"",this.a=this.I=this.O=null}function ri(t){return t?t.__styleInfo:null}function oi(t,e){return t.__styleInfo=e}function ii(t){var e=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return e&&e.call(this,t)}ni.prototype.f=function(){return this.M},ni.prototype._getStyleRules=ni.prototype.f;var si=navigator.userAgent.match("Trident");function ai(){}function ui(t){if(!t.B){var e={},n={};ci(t,n)&&(e.L=n,t.rules=null),e.cssText=t.parsedCssText.replace(fo,"").replace(so,""),t.B=e}}function ci(t,e){var n=t.B;if(!n){n=t.parsedCssText;for(var r;t=so.exec(n);)"inherit"===(r=(t[2]||t[3]).trim())&&"unset"===r||(e[t[1].trim()]=r),r=!0;return r}if(n.L)return Object.assign(e,n.L),!0}function li(t,e,n){return e&&(e=0<=e.indexOf(";")?fi(t,e,n):function t(e,n){var r=e.indexOf("var(");if(-1===r)return n(e,"","","");var o=Eo(e,r+3),i=e.substring(r+4,o);return r=e.substring(0,r),e=t(e.substring(o+1),n),-1===(o=i.indexOf(","))?n(r,i.trim(),"",e):n(r,i.substring(0,o).trim(),i.substring(o+1).trim(),e)}(e,function(e,r,o,i){return r?((r=li(t,n[r],n))&&"initial"!==r?"apply-shim-inherit"===r&&(r="inherit"):r=li(t,n[o]||o,n)||o,e+(r||"")+i):e+i})),e&&e.trim()||""}function fi(t,e,n){e=e.split(";");for(var r,o,i=0;i<e.length;i++)if(r=e[i]){if(ao.lastIndex=0,o=ao.exec(r))r=li(t,n[o[1]],n);else if(-1!==(o=r.indexOf(":"))){var s=r.substring(o);s=li(t,s=s.trim(),n)||s,r=r.substring(0,o)+s}e[i]=r&&r.lastIndexOf(";")===r.length-1?r.slice(0,-1):r||""}return e.join(";")}function hi(t,e,n){var r={},o={};return vo(e,function(e){!function(t,e,n,r){if(e.B||ui(e),e.B.L){var o=xo(t);t=o.is,o=o.X,o=t?Po(t,o):"html";var i=e.parsedSelector,s=":host > *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(a=!(s=i===o+" > *."+o||-1!==i.indexOf("html"))&&0===i.indexOf(o)),(s||a)&&(n=o,a&&(e.F||(e.F=Ro(ei,e,ei.b,t?Ko+t:"",o)),n=e.F||o),r({sa:n,Va:a,vb:s}))}}(t,e,n,function(n){ii.call(t.lb||t,n.sa)&&(n.Va?ci(e,r):ci(e,o))})},null,!0),{Za:o,Ta:r}}function pi(t,e,n,r){var o=xo(e),i=Po(o.is,o.X),s=new RegExp("(?:^|[^.#[:])"+(e.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),a=ri(e);o=a.M,a=a.da;var u=function(t,e){t=t.b;var n={};if(!ro&&t)for(var r=0,o=t[r];r<t.length;o=t[++r]){var i=o,s=e;i.f=new RegExp("\\b"+i.keyframesName+"(?!\\B|-)","g"),i.a=i.keyframesName+"-"+s,i.F=i.F||i.selector,i.selector=i.F.replace(i.keyframesName,i.a),n[o.keyframesName]=di(o)}return n}(o,r);return Mo(e,o,function(e){var o="";if(e.B||ui(e),e.B.cssText&&(o=fi(t,e.B.cssText,n)),e.cssText=o,!ro&&!mo(e)&&e.cssText){var a=o=e.cssText;if(null==e.xa&&(e.xa=co.test(o)),e.xa)if(null==e.ga)for(var c in e.ga=[],u)o!==(a=(a=u[c])(o))&&(o=a,e.ga.push(c));else{for(c=0;c<e.ga.length;++c)o=(a=u[e.ga[c]])(o);a=o}e.cssText=a,e.F=e.F||e.selector,o="."+r,a=0;for(var l=(c=Oo(e.F)).length,f=void 0;a<l&&(f=c[a]);a++)c[a]=f.match(s)?f.replace(i,o):o+" "+f;e.selector=c.join(",")}},a)}function di(t){return function(e){return e.replace(t.f,t.a)}}function yi(t,e){var n=mi,r=yo(t);t.textContent=po(r,function(t){var r=t.cssText=t.parsedCssText;t.B&&t.B.cssText&&(r=r.replace(Jr,"").replace(Zr,""),t.cssText=fi(n,r,e))})}i.Object.defineProperties(ai.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var mi=new ai,vi={},bi=window.customElements;if(bi&&!ro){var gi=bi.define;bi.define=function(t,e,n){vi[t]||(vi[t]=wo(t)),gi.call(bi,t,e,n)}}function wi(){this.cache={}}function _i(){}function Ei(t){var e=[];return t.classList?e=Array.from(t.classList):t instanceof window.SVGElement&&t.hasAttribute("class")&&(e=t.getAttribute("class").split(/\s+/)),-1<(e=(t=e).indexOf(ei.a))?t[e+1]:""}function Si(t){var e=t.getRootNode();return e===t||e===t.ownerDocument?"":(t=e.host)?xo(t).is:""}function xi(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var o=n.addedNodes[r];if(o.nodeType===Node.ELEMENT_NODE){var i=o.getRootNode(),s=Ei(o);if(s&&i===o.ownerDocument&&("style"!==o.localName&&"template"!==o.localName||""===To(o)))Ao(o,s);else if(i instanceof ShadowRoot)for((i=Si(o))!==s&&jo(o,s,i),o=window.ShadyDOM.nativeMethods.querySelectorAll.call(o,":not(."+ei.a+")"),s=0;s<o.length;s++){var a=Si(i=o[s]);a&&ko(i,a)}}}}}if(wi.prototype.store=function(t,e,n,r){var o=this.cache[t]||[];o.push({L:e,styleElement:n,I:r}),100<o.length&&o.shift(),this.cache[t]=o},wi.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var r=t.length-1;0<=r;r--){var o,i=t[r];t:{for(o=0;o<n.length;o++){var s=n[o];if(i.L[s]!==e[s]){o=!1;break t}}o=!0}if(o)return i}},!(ro||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Oi=new MutationObserver(xi),Ti=function(t){Oi.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Ti(document);else{var Ci=function(){Ti(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Ci):requestAnimationFrame(function(){if("loading"===document.readyState){document.addEventListener("readystatechange",function t(){Ci(),document.removeEventListener("readystatechange",t)})}else Ci()})}_i=function(){xi(Oi.takeRecords())}}var Ni=_i,ki={},ji=Promise.resolve();function Ai(t){(t=ki[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function Mi(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}var Pi=new wi;function Ri(){this.G={},this.c=document.documentElement;var t=new Ur;t.rules=[],this.f=oi(this.c,new ni(t)),this.m=!1,this.b=this.a=null}function Li(t){!t.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(t.a=window.ShadyCSS.ApplyShim,t.a.invalidCallback=Ai),function(t){!t.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(t.b=window.ShadyCSS.CustomStyleInterface,t.b.transformCallback=function(e){t.Aa(e)},t.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.m)&&t.flushCustomStyles()})})}(t)}function Ii(t,e){return(e=e.getRootNode().host)?ri(e)?e:Ii(t,e):t.c}function Di(t,e,n){var r=ri(t=Ii(t,e));t=Object.create(r.O||null);var o=hi(e,n.M,n.da);for(var i in e=function(t,e){var n={},r=[];return vo(t,function(t){t.B||ui(t);var o=t.F||t.parsedSelector;e&&t.B.L&&o&&ii.call(e,o)&&(ci(t,n),t=t.index,o=parseInt(t/32,10),r[o]=(r[o]||0)|1<<t%32)},null,!0),{L:n,key:r}}(r.M,e).L,Object.assign(t,o.Ta,e,o.Za),e=n.T)((o=e[i])||0===o)&&(t[i]=o);for(i=mi,e=Object.getOwnPropertyNames(t),o=0;o<e.length;o++)t[r=e[o]]=li(i,t[r],t);n.O=t}(r=Ri.prototype).flush=function(){Ni()},r.Ra=function(t){return yo(t)},r.cb=function(t){return po(t)},r.prepareTemplate=function(t,e,n){this.prepareTemplateDom(t,e),this.prepareTemplateStyles(t,e,n)},r.prepareTemplateStyles=function(t,e,n){if(!t.m){ro||vi[e]||(vi[e]=wo(e)),t.m=!0,t.name=e,t.extends=n,ki[e]=t;for(var r=To(t),o=[],i=t.content.querySelectorAll("style"),s=0;s<i.length;s++){var a=i[s];if(a.hasAttribute("shady-unscoped")){if(!ro){var u=a.textContent;ho.has(u)||(ho.add(u),u=a.cloneNode(!0),document.head.appendChild(u)),a.parentNode.removeChild(a)}}else o.push(a.textContent),a.parentNode.removeChild(a)}o=o.join("").trim(),n={is:e,extends:n},Li(this),(i=""===To(t))&&(i=ao.test(o)||so.test(o),ao.lastIndex=0,so.lastIndex=0),o=zr(o),i&&io&&this.a&&this.a.transformRules(o,e),t._styleAst=o,o=[],io||(o=function(t){var e={},n=[],r=0;for(var o in vo(t,function(t){ui(t),t.index=r++,t=t.B.cssText;for(var n;n=uo.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},function(t){n.push(t)}),t.b=n,t=[],e)t.push(o);return t}(t._styleAst)),o.length&&!io||(i=ro?t.content:null,e=vi[e]||null,r=(r=Mo(n,t._styleAst,null,r)).length?bo(r,n.is,i,e):void 0,t.a=r),t.f=o}},r.prepareTemplateDom=function(t,e){var n=To(t);ro||"shady"===n||t.c||(t.c=!0,function(t,e){No(ei,t,function(t){ko(t,e||"")})}(t.content,e))},r.flushCustomStyles=function(){if(Li(this),this.b){var t=this.b.processStyles();if(this.b.enqueued){if(io)for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);if(n&&io&&this.a){var r=yo(n);Li(this),this.a.transformRules(r),n.textContent=po(r)}}else for(Di(this,this.c,this.f),e=0;e<t.length;e++)(n=this.b.getStyleForCustomStyle(t[e]))&&yi(n,this.f.O);this.b.enqueued=!1,this.m&&!io&&this.styleDocument()}}},r.styleElement=function(t,e){var n=ri(t);if(!n){var r=xo(t);n=r.is,r=r.X;var o=vi[n]||null;if(n=ki[n])var i=n._styleAst,s=n.f,a=To(n);i=new ni(i,o,s,r,a),n&&oi(t,i),n=i}if(t!==this.c&&(this.m=!0),e&&(n.T=n.T||{},Object.assign(n.T,e)),io){if(e=n,i=xo(t).is,e.T)for(var u in s=e.T)null===u?t.style.removeProperty(u):t.style.setProperty(u,s[u]);!(u=ki[i])&&t!==this.c||u&&""!==To(u)||!u||!u.a||Mi(u)||((Mi(u)||u._applyShimValidatingVersion!==u._applyShimNextVersion)&&(Li(this),this.a&&this.a.transformRules(u._styleAst,i),u.a.textContent=Mo(t,e.M),function(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,ji.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}(u)),ro&&(i=t.shadowRoot)&&(i=i.querySelector("style"))&&(i.textContent=Mo(t,e.M)),e.M=u._styleAst)}else if(u=n,this.flush(),Di(this,t,u),u.c&&u.c.length){e=xo(t).is,n=(i=Pi.fetch(e,u.O,u.c))?i.styleElement:null,s=u.I,(a=i&&i.I)||(a=e+"-"+(a=this.G[e]=(this.G[e]||0)+1)),u.I=a,a=u.I,r=mi,r=n?n.textContent||"":pi(r,t,u.O,a);var c=(o=ri(t)).a;c&&!ro&&c!==n&&(c._useCount--,0>=c._useCount&&c.parentNode&&c.parentNode.removeChild(c)),ro?o.a?(o.a.textContent=r,n=o.a):r&&(n=bo(r,a,t.shadowRoot,o.b)):n?n.parentNode||(si&&-1<r.indexOf("@media")&&(n.textContent=r),_o(n,null,o.b)):r&&(n=bo(r,a,null,o.b)),n&&(n._useCount=n._useCount||0,o.a!=n&&n._useCount++,o.a=n),a=n,ro||(n=u.I,o=r=t.getAttribute("class")||"",s&&(o=r.replace(new RegExp("\\s*x-scope\\s*"+s+"\\s*","g")," ")),r!==(o+=(o?" ":"")+"x-scope "+n)&&So(t,o)),i||Pi.store(e,u.O,a,u.I)}},r.styleDocument=function(t){this.styleSubtree(this.c,t)},r.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||t===this.c)&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},r.Aa=function(t){var e=this,n=yo(t),r=To(t);r!==this.f.da&&(this.f.da=r),vo(n,function(t){if(ro)Do(t);else{var n=ei;t.selector=t.parsedSelector,Do(t),t.selector=t.F=Ro(n,t,n.c,void 0,void 0)}io&&""===r&&(Li(e),e.a&&e.a.transformRule(t))}),io?t.textContent=po(n):this.f.M.rules.push(n)},r.getComputedStyleValue=function(t,e){var n;return io||(n=(ri(t)||ri(Ii(this,t))).O[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},r.bb=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var r=t.getAttribute("class");if(r){r=r.split(/\s/);for(var o=0;o<r.length;o++)if(r[o]===ei.a){n=r[o+1];break}}}n&&e.push(ei.a,n),io||(n=ri(t))&&n.I&&e.push(mi.a,n.I),So(t,e.join(" "))},r.La=function(t){return ri(t)},r.ab=function(t,e){ko(t,e)},r.eb=function(t,e){ko(t,e,!0)},r.$a=function(t){return Si(t)},r.Pa=function(t){return Ei(t)},Ri.prototype.flush=Ri.prototype.flush,Ri.prototype.prepareTemplate=Ri.prototype.prepareTemplate,Ri.prototype.styleElement=Ri.prototype.styleElement,Ri.prototype.styleDocument=Ri.prototype.styleDocument,Ri.prototype.styleSubtree=Ri.prototype.styleSubtree,Ri.prototype.getComputedStyleValue=Ri.prototype.getComputedStyleValue,Ri.prototype.setElementClass=Ri.prototype.bb,Ri.prototype._styleInfoForNode=Ri.prototype.La,Ri.prototype.transformCustomStyleForDocument=Ri.prototype.Aa,Ri.prototype.getStyleAst=Ri.prototype.Ra,Ri.prototype.styleAstToString=Ri.prototype.cb,Ri.prototype.flushCustomStyles=Ri.prototype.flushCustomStyles,Ri.prototype.scopeNode=Ri.prototype.ab,Ri.prototype.unscopeNode=Ri.prototype.eb,Ri.prototype.scopeForNode=Ri.prototype.$a,Ri.prototype.currentScopeForNode=Ri.prototype.Pa,Object.defineProperties(Ri.prototype,{nativeShadow:{get:function(){return ro}},nativeCss:{get:function(){return io}}});var Fi,qi,Hi=new Ri;window.ShadyCSS&&(Fi=window.ShadyCSS.ApplyShim,qi=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:Hi,prepareTemplate:function(t,e,n){Hi.flushCustomStyles(),Hi.prepareTemplate(t,e,n)},prepareTemplateDom:function(t,e){Hi.prepareTemplateDom(t,e)},prepareTemplateStyles:function(t,e,n){Hi.flushCustomStyles(),Hi.prepareTemplateStyles(t,e,n)},styleSubtree:function(t,e){Hi.flushCustomStyles(),Hi.styleSubtree(t,e)},styleElement:function(t){Hi.flushCustomStyles(),Hi.styleElement(t)},styleDocument:function(t){Hi.flushCustomStyles(),Hi.styleDocument(t)},flushCustomStyles:function(){Hi.flushCustomStyles()},getComputedStyleValue:function(t,e){return Hi.getComputedStyleValue(t,e)},nativeCss:io,nativeShadow:ro},Fi&&(window.ShadyCSS.ApplyShim=Fi),qi&&(window.ShadyCSS.CustomStyleInterface=qi),function(t){function e(t){return""==t&&(i.call(this),this.i=!0),t.toLowerCase()}function n(t){var e=t.charCodeAt(0);return 32<e&&127>e&&-1==[34,35,60,62,63,96].indexOf(e)?t:encodeURIComponent(t)}function r(t){var e=t.charCodeAt(0);return 32<e&&127>e&&-1==[34,35,60,62,96].indexOf(e)?t:encodeURIComponent(t)}function o(t,o,s){function a(t){v.push(t)}var u=o||"scheme start",p=0,d="",y=!1,m=!1,v=[];t:for(;(null!=t[p-1]||0==p)&&!this.i;){var b=t[p];switch(u){case"scheme start":if(!b||!f.test(b)){if(o){a("Invalid scheme.");break t}d="",u="no scheme";continue}d+=b.toLowerCase(),u="scheme";break;case"scheme":if(b&&h.test(b))d+=b.toLowerCase();else{if(":"!=b){if(o){null!=b&&a("Code point not allowed in scheme: "+b);break t}d="",p=0,u="no scheme";continue}if(this.h=d,d="",o)break t;void 0!==c[this.h]&&(this.D=!0),u="file"==this.h?"relative":this.D&&s&&s.h==this.h?"relative or authority":this.D?"authority first slash":"scheme data"}break;case"scheme data":"?"==b?(this.u="?",u="query"):"#"==b?(this.C="#",u="fragment"):null!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this.pa+=n(b));break;case"no scheme":if(s&&void 0!==c[s.h]){u="relative";continue}a("Missing scheme."),i.call(this),this.i=!0;break;case"relative or authority":if("/"!=b||"/"!=t[p+1]){a("Expected /, got: "+b),u="relative";continue}u="authority ignore slashes";break;case"relative":if(this.D=!0,"file"!=this.h&&(this.h=s.h),null==b){this.j=s.j,this.s=s.s,this.l=s.l.slice(),this.u=s.u,this.v=s.v,this.g=s.g;break t}if("/"==b||"\\"==b)"\\"==b&&a("\\ is an invalid code point."),u="relative slash";else if("?"==b)this.j=s.j,this.s=s.s,this.l=s.l.slice(),this.u="?",this.v=s.v,this.g=s.g,u="query";else{if("#"!=b){u=t[p+1];var g=t[p+2];("file"!=this.h||!f.test(b)||":"!=u&&"|"!=u||null!=g&&"/"!=g&&"\\"!=g&&"?"!=g&&"#"!=g)&&(this.j=s.j,this.s=s.s,this.v=s.v,this.g=s.g,this.l=s.l.slice(),this.l.pop()),u="relative path";continue}this.j=s.j,this.s=s.s,this.l=s.l.slice(),this.u=s.u,this.C="#",this.v=s.v,this.g=s.g,u="fragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this.h&&(this.j=s.j,this.s=s.s,this.v=s.v,this.g=s.g),u="relative path";continue}"\\"==b&&a("\\ is an invalid code point."),u="file"==this.h?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=b){a("Expected '/', got: "+b),u="authority ignore slashes";continue}u="authority second slash";break;case"authority second slash":if(u="authority ignore slashes","/"!=b){a("Expected '/', got: "+b);continue}break;case"authority ignore slashes":if("/"!=b&&"\\"!=b){u="authority";continue}a("Expected authority, got: "+b);break;case"authority":if("@"==b){for(y&&(a("@ already seen."),d+="%40"),y=!0,b=0;b<d.length;b++)"\t"==(g=d[b])||"\n"==g||"\r"==g?a("Invalid whitespace in authority."):":"==g&&null===this.g?this.g="":(g=n(g),null!==this.g?this.g+=g:this.v+=g);d=""}else{if(null==b||"/"==b||"\\"==b||"?"==b||"#"==b){p-=d.length,d="",u="host";continue}d+=b}break;case"file host":if(null==b||"/"==b||"\\"==b||"?"==b||"#"==b){2!=d.length||!f.test(d[0])||":"!=d[1]&&"|"!=d[1]?(0!=d.length&&(this.j=e.call(this,d),d=""),u="relative path start"):u="relative path";continue}"\t"==b||"\n"==b||"\r"==b?a("Invalid whitespace in file host."):d+=b;break;case"host":case"hostname":if(":"!=b||m){if(null==b||"/"==b||"\\"==b||"?"==b||"#"==b){if(this.j=e.call(this,d),d="",u="relative path start",o)break t;continue}"\t"!=b&&"\n"!=b&&"\r"!=b?("["==b?m=!0:"]"==b&&(m=!1),d+=b):a("Invalid code point in host/hostname: "+b)}else if(this.j=e.call(this,d),d="",u="port","hostname"==o)break t;break;case"port":if(/[0-9]/.test(b))d+=b;else{if(null==b||"/"==b||"\\"==b||"?"==b||"#"==b||o){if(""!=d&&((d=parseInt(d,10))!=c[this.h]&&(this.s=d+""),d=""),o)break t;u="relative path start";continue}"\t"==b||"\n"==b||"\r"==b?a("Invalid code point in port: "+b):(i.call(this),this.i=!0)}break;case"relative path start":if("\\"==b&&a("'\\' not allowed in path."),u="relative path","/"!=b&&"\\"!=b)continue;break;case"relative path":null!=b&&"/"!=b&&"\\"!=b&&(o||"?"!=b&&"#"!=b)?"\t"!=b&&"\n"!=b&&"\r"!=b&&(d+=n(b)):("\\"==b&&a("\\ not allowed in relative path."),(g=l[d.toLowerCase()])&&(d=g),".."==d?(this.l.pop(),"/"!=b&&"\\"!=b&&this.l.push("")):"."==d&&"/"!=b&&"\\"!=b?this.l.push(""):"."!=d&&("file"==this.h&&0==this.l.length&&2==d.length&&f.test(d[0])&&"|"==d[1]&&(d=d[0]+":"),this.l.push(d)),d="","?"==b?(this.u="?",u="query"):"#"==b&&(this.C="#",u="fragment"));break;case"query":o||"#"!=b?null!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this.u+=r(b)):(this.C="#",u="fragment");break;case"fragment":null!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this.C+=b)}p++}}function i(){this.v=this.pa=this.h="",this.g=null,this.s=this.j="",this.l=[],this.C=this.u="",this.D=this.i=!1}function s(t,e){void 0===e||e instanceof s||(e=new s(String(e))),this.Ma=t,i.call(this),t=t.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,""),o.call(this,t,null,e)}var a=!1;if(!t.rb)try{var u=new URL("b","http://a");u.pathname="c%20d",a="http://a/c%20d"===u.href}catch(t){}if(!a){var c=Object.create(null);c.ftp=21,c.file=0,c.gopher=70,c.http=80,c.https=443,c.ws=80,c.wss=443;var l=Object.create(null);l["%2e"]=".",l[".%2e"]="..",l["%2e."]="..",l["%2e%2e"]="..";var f=/[a-zA-Z]/,h=/[a-zA-Z0-9\+\-\.]/;s.prototype={toString:function(){return this.href},get href(){if(this.i)return this.Ma;var t="";return""==this.v&&null==this.g||(t=this.v+(null!=this.g?":"+this.g:"")+"@"),this.protocol+(this.D?"//"+t+this.host:"")+this.pathname+this.u+this.C},set href(t){i.call(this),o.call(this,t)},get protocol(){return this.h+":"},set protocol(t){this.i||o.call(this,t+":","scheme start")},get host(){return this.i?"":this.s?this.j+":"+this.s:this.j},set host(t){!this.i&&this.D&&o.call(this,t,"host")},get hostname(){return this.j},set hostname(t){!this.i&&this.D&&o.call(this,t,"hostname")},get port(){return this.s},set port(t){!this.i&&this.D&&o.call(this,t,"port")},get pathname(){return this.i?"":this.D?"/"+this.l.join("/"):this.pa},set pathname(t){!this.i&&this.D&&(this.l=[],o.call(this,t,"relative path start"))},get search(){return this.i||!this.u||"?"==this.u?"":this.u},set search(t){!this.i&&this.D&&(this.u="?","?"==t[0]&&(t=t.slice(1)),o.call(this,t,"query"))},get hash(){return this.i||!this.C||"#"==this.C?"":this.C},set hash(t){this.i||(this.C="#","#"==t[0]&&(t=t.slice(1)),o.call(this,t,"fragment"))},get origin(){var t;if(this.i||!this.h)return"";switch(this.h){case"data":case"file":case"javascript":case"mailto":return"null"}return(t=this.host)?this.h+"://"+t:""}};var p=t.URL;p&&(s.createObjectURL=function(t){return p.createObjectURL.apply(p,arguments)},s.revokeObjectURL=function(t){p.revokeObjectURL(t)}),t.URL=s}}(window),Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var t=(this.ownerDocument||this).querySelector("base[href]");return t&&t.href||window.location.href},configurable:!0,enumerable:!0});var Ui=document.createElement("style");Ui.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var zi=document.querySelector("head");zi.insertBefore(Ui,zi.firstChild);var Bi=window.customElements,Wi=!1,Vi=null;function $i(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document),Vi&&Vi(),Wi=!0,window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}Bi.polyfillWrapFlushCallback&&Bi.polyfillWrapFlushCallback(function(t){Vi=t,Wi&&t()}),"complete"!==document.readyState?(window.addEventListener("load",$i),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",$i),$i()})):$i()}).call(this)}).call(this,n(6),n(33).setImmediate)},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(34),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(6))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,s,a,u=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){d(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&d(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return c[u]=o,r(u),u++},h.clearImmediate=p}function p(t){delete c[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=c[t];if(e){l=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{p(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(6),n(35))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(t,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var i=o.element,s=a(i),u=this._rootContainsTarget(i),c=o.entry,l=e&&u&&this._computeTargetAndRootIntersection(i,n),f=o.entry=new r({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n,intersectionRect:l});c?e&&u?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(var o,i,s,u,l,f,h,p,d=a(n),y=c(n),m=!1;!m;){var v=null,b=1==y.nodeType?t.getComputedStyle(y):{};if("none"==b.display)return;if(y==this.root||y==e?(m=!0,v=r):y!=e.body&&y!=e.documentElement&&"visible"!=b.overflow&&(v=a(y)),v&&(o=v,i=d,s=void 0,u=void 0,l=void 0,f=void 0,h=void 0,p=void 0,s=Math.max(o.top,i.top),u=Math.min(o.bottom,i.bottom),l=Math.max(o.left,i.left),f=Math.min(o.right,i.right),p=u-s,!(d=(h=f-l)>=0&&p>=0&&{top:s,bottom:u,left:l,right:f,width:h,height:p})))break;y=c(y)}return d}},o.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},o.prototype._rootIsInDom=function(){return!this.root||u(e,this.root)},o.prototype._rootContainsTarget=function(t){return u(this.root||e,t)},o.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},o.prototype._unregisterInstance=function(){var t=n.indexOf(this);-1!=t&&n.splice(t,1)},t.IntersectionObserver=o,t.IntersectionObserverEntry=r}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function o(t,e){var n,r,o,i=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){n(),o=null},r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function s(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t,e){for(var n=e;n;){if(n==t)return!0;n=c(n)}return!1}function c(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}}(window,document)},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r,o,i;r=function(){return this}(),i={},function(t,e){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=h}function r(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function o(e,r,o){var i=new n;return r&&(i.fill="both",i.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach(function(n){if("auto"!=e[n]){if(("number"==typeof i[n]||"duration"==n)&&("number"!=typeof e[n]||isNaN(e[n])))return;if("fill"==n&&-1==l.indexOf(e[n]))return;if("direction"==n&&-1==f.indexOf(e[n]))return;if("playbackRate"==n&&1!==e[n]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;i[n]=e[n]}}):i.duration=e,i}function i(t,e,n,r){return t<0||t>1||n<0||n>1?h:function(o){function i(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(o<=0){var s=0;return t>0?s=e/t:!e&&n>0&&(s=r/n),s*o}if(o>=1){var a=0;return n<1?a=(r-1)/(n-1):1==n&&t<1&&(a=(e-1)/(t-1)),1+a*(o-1)}for(var u=0,c=1;u<c;){var l=(u+c)/2,f=i(t,n,l);if(Math.abs(o-f)<1e-5)return i(e,r,l);f<o?u=l:c=l}return i(e,r,l)}}function s(t,e){return function(n){if(n>=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function a(t){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=t;var e=v.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return h;var e=g.exec(t);if(e)return i.apply(this,e.slice(1).map(Number));var n=w.exec(t);return n?s(Number(n[1]),{start:p,middle:d,end:y}[n[2]]):m[t]||h}function c(t,e,n){if(null==e)return _;var r=n.delay+t+n.endDelay;return e<Math.min(n.delay,r)?E:e>=Math.min(n.delay+t,r)?S:x}var l="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),h=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(a(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var p=1,d=.5,y=0,m={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":s(1,p),"step-middle":s(1,d),"step-end":s(1,y)},v=null,b="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",g=new RegExp("cubic-bezier\\("+b+","+b+","+b+","+b+"\\)"),w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,_=0,E=1,S=2,x=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=o,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return o(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=c(t,e,n),o=function(t,e,n,r,o){switch(r){case E:return"backwards"==e||"both"==e?0:null;case x:return n-o;case S:return"forwards"==e||"both"==e?t:null;case _:return null}}(t,n.fill,e,r,n.delay);if(null===o)return null;var i=function(t,e,n,r,o){var i=o;return 0===t?e!==E&&(i+=n):i+=r/t,i}(n.duration,r,n.iterations,o,n.iterationStart),s=function(t,e,n,r,o,i){var s=t===1/0?e%1:t%1;return 0!==s||n!==S||0===r||0===o&&0!==i||(s=1),s}(i,n.iterationStart,r,n.iterations,o,n.duration),a=function(t,e,n,r){return t===S&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,s,i),u=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var o=e;"alternate-reverse"===t&&(o+=1),r="normal",o!==1/0&&o%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,a,s);return n._easingFunction(u)},t.calculatePhase=c,t.normalizeEasing=a,t.parseEasingFunction=u}(o={}),function(t,e){function n(t,e){return t in u&&u[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var o=i[t];if(o)for(var a in s.style[t]=e,o){var u=o[a],c=s.style[u];r[u]=n(u,c)}else r[t]=n(t,e)}}function o(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var o,i=r.length,s=0;s<i;s++)(o={}).offset="offset"in t?t.offset:1==i?1:s/(i-1),"easing"in t&&(o.easing=t.easing),"composite"in t&&(o.composite=t.composite),o[n]=r[s],e.push(o)}return e.sort(function(t,e){return t.offset-e.offset}),e}var i={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},s=document.createElementNS("http://www.w3.org/1999/xhtml","div"),a={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:a,borderLeftWidth:a,borderRightWidth:a,borderTopWidth:a,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:a,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=o,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=o(e));for(var n=e.map(function(e){var n={};for(var o in e){var i=e[o];if("offset"==o){if(null!=i){if(i=Number(i),!isFinite(i))throw new TypeError("Keyframe offsets must be numbers.");if(i<0||i>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==o){if("add"==i||"accumulate"==i)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=i)throw new TypeError("Invalid composite mode "+i+".")}else i="easing"==o?t.normalizeEasing(i):""+i;r(o,i,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n}),i=!0,s=-1/0,a=0;a<n.length;a++){var u=n[a].offset;if(null!=u){if(u<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=u}else i=!1}return n=n.filter(function(t){return t.offset>=0&&t.offset<=1}),i||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,o=1;o<t;o++){var i=n[o].offset;if(null!=i){for(var s=1;s<o-e;s++)n[e+s].offset=r+(i-r)*s/(o-e);e=o,r=i}}}(),n}}(o),function(t){var e={};t.isDeprecated=function(t,n,r,o){var i=o?"are":"is",s=new Date,a=new Date(n);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+i+" deprecated and will stop working on "+a.toDateString()+". "+r),e[t]=!0,1))},t.deprecated=function(e,n,r,o){var i=o?"are":"is";if(t.isDeprecated(e,n,r,o))throw new Error(e+" "+i+" no longer supported. "+r)}}(o),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(n){void 0===t[n]&&(e=!0)})),!e)return}!function(t,e,n){e.convertEffectInput=function(n){var r=function(t){for(var e={},n=0;n<t.length;n++)for(var r in t[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var o={offset:t[n].offset,easing:t[n].easing,value:t[n][r]};e[r]=e[r]||[],e[r].push(o)}for(var i in e){var s=e[i];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}(t.normalizeKeyframes(n)),o=function(n){var r=[];for(var o in n)for(var i=n[o],s=0;s<i.length-1;s++){var a=s,u=s+1,c=i[a].offset,l=i[u].offset,f=c,h=l;0==s&&(f=-1/0,0==l&&(u=a)),s==i.length-2&&(h=1/0,1==c&&(a=u)),r.push({applyFrom:f,applyTo:h,startOffset:i[a].offset,endOffset:i[u].offset,easingFunction:t.parseEasingFunction(i[a].easing),property:o,interpolation:e.propertyInterpolation(o,i[a].value,i[u].value)})}return r.sort(function(t,e){return t.startOffset-e.startOffset}),r}(r);return function(t,n){if(null!=n)o.filter(function(t){return n>=t.applyFrom&&n<t.applyTo}).forEach(function(r){var o=n-r.startOffset,i=r.endOffset-r.startOffset,s=0==i?0:r.easingFunction(o/i);e.apply(t,r.property,r.interpolation(s))});else for(var i in r)"offset"!=i&&"easing"!=i&&"composite"!=i&&e.clear(t,i)}}}(o,i),function(t,e,n){function r(t){return t.replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function o(t,e,n){i[n]=i[n]||[],i[n].push([t,e])}var i={};e.addPropertiesHandler=function(t,e,n){for(var i=0;i<n.length;i++)o(t,e,r(n[i]))};var s={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(n,o,a){var u=n;/-/.test(n)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=o&&"initial"!=a||("initial"==o&&(o=s[u]),"initial"==a&&(a=s[u]));for(var c=o==a?[]:i[u],l=0;c&&l<c.length;l++){var f=c[l][0](o),h=c[l][0](a);if(void 0!==f&&void 0!==h){var p=c[l][1](f,h);if(p){var d=e.Interpolation.apply(null,p);return function(t){return 0==t?o:1==t?a:d(t)}}}}return e.Interpolation(!1,!0,function(t){return t?a:o})}}(o,i),function(t,e,n){e.KeyframeEffect=function(n,r,o,i){var s,a=function(e){var n=t.calculateActiveDuration(e),r=function(r){return t.calculateIterationProgress(n,r,e)};return r._totalDuration=e.delay+n+e.endDelay,r}(t.normalizeTimingInput(o)),u=e.convertEffectInput(r),c=function(){u(n,s)};return c._update=function(t){return null!==(s=a(t))},c._clear=function(){u(n,null)},c._hasSameTarget=function(t){return n===t},c._target=n,c._totalDuration=a._totalDuration,c._id=i,c}}(o,i),function(t,e){function n(t,e,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(t,e,n)}function r(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(i in t||(t[i]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[i])}(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var n=this._style[e];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function o(t){if(!t._webAnimationsPatchedStyle){var e=new r(t);try{n(t,"style",{get:function(){return e}})}catch(e){t.style._set=function(e,n){t.style[e]=n},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var i="_webAnimationsUpdateSvgTransformAttr",s={cssText:1,length:1,parentRule:1},a={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var c in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=t,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)e[this._surrogateStyle[n]]=!0;for(var r in e)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},a)r.prototype[c]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(c,c in u);for(var l in document.documentElement.style)l in s||l in a||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(l);t.apply=function(e,n,r){o(e),e.style._set(t.propertyName(n),r)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(i),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(i),i.Interpolation=function(t,e,n){return function(r){return n(function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n)return r<.5?e:n;if(e.length==n.length){for(var o=[],i=0;i<e.length;i++)o.push(t(e[i],n[i],r));return o}throw"Mismatched interpolation arguments "+e+":"+n}(t,e,r))}},function(t,e){var n=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var o=0;o<4;o++)for(var i=0;i<4;i++)n[r][o]+=e[r][i]*t[i][o];return n}return function(e,n,r,o,i){for(var s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)s[a][3]=i[a];for(a=0;a<3;a++)for(var u=0;u<3;u++)s[3][a]+=e[u]*s[u][a];var c=o[0],l=o[1],f=o[2],h=o[3],p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];p[0][0]=1-2*(l*l+f*f),p[0][1]=2*(c*l-f*h),p[0][2]=2*(c*f+l*h),p[1][0]=2*(c*l+f*h),p[1][1]=1-2*(c*c+f*f),p[1][2]=2*(l*f-c*h),p[2][0]=2*(c*f-l*h),p[2][1]=2*(l*f+c*h),p[2][2]=1-2*(c*c+l*l),s=t(s,p);var d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(d[2][1]=r[2],s=t(s,d)),r[1]&&(d[2][1]=0,d[2][0]=r[0],s=t(s,d)),r[0]&&(d[2][0]=0,d[1][0]=r[0],s=t(s,d)),a=0;a<3;a++)for(u=0;u<3;u++)s[a][u]*=n[a];return function(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}(s)?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();t.composeMatrix=n,t.quat=function(e,n,r){var o=t.dot(e,n),i=[];if(1===(o=function(t,e,n){return Math.max(Math.min(t,n),e)}(o,-1,1)))i=e;else for(var s=Math.acos(o),a=1*Math.sin(r*s)/Math.sqrt(1-o*o),u=0;u<4;u++)i.push(e[u]*(Math.cos(r*s)-o*a)+n[u]*a);return i}}(i),function(t,e,n){t.sequenceNumber=0;var r=function(t,e,n){this.target=t,this.currentTime=e,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new r(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){n.forEach(function(t){t.call(e.target,e)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(o,i),function(t,e,n){function r(t){var e=c;c=[],t<y.currentTime&&(t=y.currentTime),y._animations.sort(o),y._animations=a(t,!0,y._animations)[0],e.forEach(function(e){e[1](t)}),s()}function o(t,e){return t._sequenceNumber-e._sequenceNumber}function i(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function s(){p.forEach(function(t){t()}),p.length=0}function a(t,n,r){d=!0,h=!1,e.timeline.currentTime=t,f=!1;var o=[],i=[],s=[],a=[];return r.forEach(function(e){e._tick(t,n),e._inEffect?(i.push(e._effect),e._markTarget()):(o.push(e._effect),e._unmarkTarget()),e._needsTick&&(f=!0);var r=e._inEffect||e._needsTick;e._inTimeline=r,r?s.push(e):a.push(e)}),p.push.apply(p,o),p.push.apply(p,i),f&&requestAnimationFrame(function(){}),d=!1,[s,a]}var u=window.requestAnimationFrame,c=[],l=0;window.requestAnimationFrame=function(t){var e=l++;return 0==c.length&&u(r),c.push([e,t]),e},window.cancelAnimationFrame=function(t){c.forEach(function(e){e[0]==t&&(e[1]=function(){})})},i.prototype={_play:function(n){n._timing=t.normalizeTimingInput(n.timing);var r=new e.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),e.restart(),e.applyDirtiedAnimation(r),r}};var f=!1,h=!1;e.restart=function(){return f||(f=!0,requestAnimationFrame(function(){}),h=!0),h},e.applyDirtiedAnimation=function(t){if(!d){t._markTarget();var n=t._targetAnimations();n.sort(o),a(e.timeline.currentTime,!1,n.slice())[1].forEach(function(t){var e=y._animations.indexOf(t);-1!==e&&y._animations.splice(e,1)}),s()}};var p=[],d=!1,y=new i;e.timeline=y}(o,i),function(t,e){function n(t,e){for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[r];return n}function r(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function o(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function i(t){switch(t.t){case"rotatex":var e=o(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":return e=o(t.d[0]),[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":return e=o(t.d[0]),[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=t.d[0],r=t.d[1],i=t.d[2],s=(e=o(t.d[3]),n*n+r*r+i*i);if(0===s)n=1,r=0,i=0;else if(1!==s){var a=Math.sqrt(s);n/=a,r/=a,i/=a}var u=Math.sin(e/2),c=u*Math.cos(e/2),l=u*u;return[1-2*(r*r+i*i)*l,2*(n*r*l+i*c),2*(n*i*l-r*c),0,2*(n*r*l-i*c),1-2*(n*n+i*i)*l,2*(r*i*l+n*c),0,2*(n*i*l+r*c),2*(r*i*l-n*c),1-2*(n*n+r*r)*l,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var f=o(t.d[0]),h=o(t.d[1]);return[1,Math.tan(h),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=o(t.d[0]),[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return e=o(t.d[0]),[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=t.d[0].px||0,r=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,i=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=t.d[0].px||0,r=t.d[1].px||0,i=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function s(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(i).reduce(r)}var a=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function e(t){var e=r(t);return[t[0]/e,t[1]/e,t[2]/e]}function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function o(t,e,n,r){return[n*t[0]+r*e[0],n*t[1]+r*e[1],n*t[2]+r*e[2]]}return function(i){var s=[i.slice(0,4),i.slice(4,8),i.slice(8,12),i.slice(12,16)];if(1!==s[3][3])return null;for(var a=[],u=0;u<4;u++)a.push(s[u].slice());for(u=0;u<3;u++)a[u][3]=0;if(0===t(a))return null;var c,l=[];s[0][3]||s[1][3]||s[2][3]?(l.push(s[0][3]),l.push(s[1][3]),l.push(s[2][3]),l.push(s[3][3]),c=function(t,e){for(var n=[],r=0;r<4;r++){for(var o=0,i=0;i<4;i++)o+=t[i]*e[i][r];n.push(o)}return n}(l,function(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}(function(e){for(var n=1/t(e),r=e[0][0],o=e[0][1],i=e[0][2],s=e[1][0],a=e[1][1],u=e[1][2],c=e[2][0],l=e[2][1],f=e[2][2],h=[[(a*f-u*l)*n,(i*l-o*f)*n,(o*u-i*a)*n,0],[(u*c-s*f)*n,(r*f-i*c)*n,(i*s-r*u)*n,0],[(s*l-a*c)*n,(c*o-r*l)*n,(r*a-o*s)*n,0]],p=[],d=0;d<3;d++){for(var y=0,m=0;m<3;m++)y+=e[3][m]*h[m][d];p.push(y)}return p.push(1),h.push(p),h}(a)))):c=[0,0,0,1];var f=s[3].slice(0,3),h=[];h.push(s[0].slice(0,3));var p=[];p.push(r(h[0])),h[0]=e(h[0]);var d=[];h.push(s[1].slice(0,3)),d.push(n(h[0],h[1])),h[1]=o(h[1],h[0],1,-d[0]),p.push(r(h[1])),h[1]=e(h[1]),d[0]/=p[1],h.push(s[2].slice(0,3)),d.push(n(h[0],h[2])),h[2]=o(h[2],h[0],1,-d[1]),d.push(n(h[1],h[2])),h[2]=o(h[2],h[1],1,-d[2]),p.push(r(h[2])),h[2]=e(h[2]),d[1]/=p[2],d[2]/=p[2];var y=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(h[1],h[2]);if(n(h[0],y)<0)for(u=0;u<3;u++)p[u]*=-1,h[u][0]*=-1,h[u][1]*=-1,h[u][2]*=-1;var m,v,b=h[0][0]+h[1][1]+h[2][2]+1;return b>1e-4?(m=.5/Math.sqrt(b),v=[(h[2][1]-h[1][2])*m,(h[0][2]-h[2][0])*m,(h[1][0]-h[0][1])*m,.25/m]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?v=[.25*(m=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/m,(h[0][2]+h[2][0])/m,(h[2][1]-h[1][2])/m]:h[1][1]>h[2][2]?(m=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),v=[(h[0][1]+h[1][0])/m,.25*m,(h[1][2]+h[2][1])/m,(h[0][2]-h[2][0])/m]):(m=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),v=[(h[0][2]+h[2][0])/m,(h[1][2]+h[2][1])/m,.25*m,(h[1][0]-h[0][1])/m]),[f,p,d,v,c]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[a(s(t))]},t.transformListToMatrix=s}(i),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,o){for(var i=[],s=[],a=[],u=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,o.length),c=0;c<u;c++){var l=e(r[c%r.length],o[c%o.length]);if(!l)return;i.push(l[0]),s.push(l[1]),a.push(l[2])}return[i,s,function(e){var r=e.map(function(t,e){return a[e](t)}).join(n);return t?t(r):r}]}t.consumeToken=e,t.consumeTrimmed=n,t.consumeRepeated=function(t,r,o){t=n.bind(null,t);for(var i=[];;){var s=t(o);if(!s)return[i,o];if(i.push(s[0]),!(s=e(r,o=s[1]))||""==s[1])return[i,o];o=s[1]}},t.consumeParenthesised=function(t,e){for(var n=0,r=0;r<e.length&&(!/\s|,/.test(e[r])||0!=n);r++)if("("==e[r])n++;else if(")"==e[r]&&(0==--n&&r++,n<=0))break;var o=t(e.substr(0,r));return null==o?void 0:[o,e.substr(r)]},t.ignore=function(t){return function(e){var n=t(e);return n&&(n[0]=void 0),n}},t.optional=function(t,e){return function(n){return t(n)||[e,n]}},t.consumeList=function(e,n){for(var r=[],o=0;o<e.length;o++){var i=t.consumeTrimmed(e[o],n);if(!i||""==i[0])return;void 0!==i[0]&&r.push(i[0]),n=i[1]}if(""==n)return r},t.mergeNestedRepeated=r.bind(null,null),t.mergeWrappedNestedRepeated=r,t.mergeList=function(t,e,n){for(var r=[],o=[],i=[],s=0,a=0;a<n.length;a++)if("function"==typeof n[a]){var u=n[a](t[s],e[s++]);r.push(u[0]),o.push(u[1]),i.push(u[2])}else!function(t){r.push(!1),o.push(!1),i.push(function(){return n[t]})}(a);return[r,o,function(t){for(var e="",n=0;n<t.length;n++)e+=i[n](t[n]);return e}]}}(i),function(t){function e(e){var n={inset:!1,lengths:[],color:null},r=t.consumeRepeated(function(e){var r;return(r=t.consumeToken(/^inset/i,e))?(n.inset=!0,r):(r=t.consumeLengthOrPercent(e))?(n.lengths.push(r[0]),r):(r=t.consumeColor(e))?(n.color=r[0],r):void 0},/^/,e);if(r&&r[0].length)return[n,r[1]]}var n=function(e,n,r,o){function i(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],u=0;u<r.length||u<o.length;u++){var c=r[u]||i(o[u].inset),l=o[u]||i(r[u].inset);s.push(c),a.push(l)}return t.mergeNestedRepeated(e,n,s,a)}.bind(null,function(e,n){for(;e.lengths.length<Math.max(e.lengths.length,n.lengths.length);)e.lengths.push({px:0});for(;n.lengths.length<Math.max(e.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(e.inset==n.inset&&!!e.color==!!n.color){for(var r,o=[],i=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var u=t.mergeDimensions(e.lengths[a],n.lengths[a],2==a);i[0].push(u[0]),s[0].push(u[1]),o.push(u[2])}if(e.color&&n.color){var c=t.mergeColors(e.color,n.color);i[1]=c[0],s[1]=c[1],r=c[2]}return[i,s,function(t){for(var n=e.inset?"inset ":" ",i=0;i<o.length;i++)n+=o[i](t[0][i])+" ";return r&&(n+=r(t[1])),n}]}},", ");t.addPropertiesHandler(function(n){var r=t.consumeRepeated(e,/^,/,n);if(r&&""==r[1])return r[0]},n,["box-shadow","text-shadow"])}(i),function(t,e){function n(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(t,e,n){return Math.min(e,Math.max(t,n))}function o(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function i(t,e){return function(o,i){return[o,i,function(o){return n(r(t,e,o))}]}}function s(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var n=[],r=0;r<e.length;r++){var i=o(e[r]);if(void 0===i)return;n.push(i)}return n}}t.clamp=r,t.addPropertiesHandler(s,function(t,e){if(t.length==e.length)return[t,e,function(t){return t.map(n).join(" ")}]},["stroke-dasharray"]),t.addPropertiesHandler(o,i(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(o,i(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(o,function(t,e){if(0!=t)return i(0,1/0)(t,e)},["flex-grow","flex-shrink"]),t.addPropertiesHandler(o,function(t,e){return[t,e,function(t){return Math.round(r(1,1/0,t))}]},["orphans","widows"]),t.addPropertiesHandler(o,function(t,e){return[t,e,Math.round]},["z-index"]),t.parseNumber=o,t.parseNumberList=s,t.mergeNumbers=function(t,e){return[t,e,n]},t.numberToString=n}(i),i.addPropertiesHandler(String,function(t,e){if("visible"==t||"visible"==e)return[0,1,function(n){return n<=0?t:n>=1?e:"visible"}]},["visibility"]),function(t,e){function n(t){t=t.trim(),i.fillStyle="#000",i.fillStyle=t;var e=i.fillStyle;if(i.fillStyle="#fff",i.fillStyle=t,e==i.fillStyle){i.fillRect(0,0,1,1);var n=i.getImageData(0,0,1,1).data;i.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){function n(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(n(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var o=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");o.width=o.height=1;var i=o.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(i),function(t,e){function n(t){function e(){var e=s.exec(t);i=e?e[0]:void 0}function n(){if("("!==i)return function(){var t=Number(i);return e(),t}();e();var t=o();return")"!==i?NaN:(e(),t)}function r(){for(var t=n();"*"===i||"/"===i;){var r=i;e();var o=n();"*"===r?t*=o:t/=o}return t}function o(){for(var t=r();"+"===i||"-"===i;){var n=i;e();var o=r();"+"===n?t+=o:t-=o}return t}var i,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),o()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.replace(t,function(t){return r[t]=null,"U"+t});for(var o="U("+t.source+")",i=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+o,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(i)?(i=i.replace(s[a],"$1"),a=0):a++;if("D"==i){for(var u in r){var c=n(e.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(o,"g"),"*0"));if(!isFinite(c))return;r[u]=c}return r}}}function o(t,e){return i(t,e,!0)}function i(e,n,r){var o,i=[];for(o in e)i.push(o);for(o in n)i.indexOf(o)<0&&i.push(o);return e=i.map(function(t){return e[t]||0}),n=i.map(function(t){return n[t]||0}),[e,n,function(e){var n=e.map(function(n,o){return 1==e.length&&r&&(n=Math.max(n,0)),t.numberToString(n)+i[o]}).join(" + ");return e.length>1?"calc("+n+")":n}]}var s="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",a=r.bind(null,new RegExp(s,"g")),u=r.bind(null,new RegExp(s+"|%","g")),c=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=a,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=c,t.mergeDimensions=i;var l=t.consumeParenthesised.bind(null,a),f=t.consumeRepeated.bind(void 0,l,/^/),h=t.consumeRepeated.bind(void 0,f,/^,/);t.consumeSizePairList=h;var p=t.mergeNestedRepeated.bind(void 0,o," "),d=t.mergeNestedRepeated.bind(void 0,p,",");t.mergeNonNegativeSizePair=p,t.addPropertiesHandler(function(t){var e=h(t);if(e&&""==e[1])return e[0]},d,["background-size"]),t.addPropertiesHandler(u,o,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(u,i,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(i),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var o=t.mergeWrappedNestedRepeated.bind(null,function(t){return"rect("+t+")"},function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var o=r?e:n;if("auto"==o)return"auto";var i=t.mergeDimensions(o,o);return i[2](i[0])}]:t.mergeDimensions(e,n)},", ");t.parseBox=r,t.mergeBoxes=o,t.addPropertiesHandler(r,o,["clip"])}(i),function(t,e){function n(t){return function(e){var n=0;return t.map(function(t){return t===c?e[n++]:t})}}function r(t){return t}function o(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,o=[],i=0;n=r.exec(e);){if(n.index!=i)return;i=n.index+n[0].length;var s=n[1],a=h[s];if(!a)return;var u=n[2].split(","),c=a[0];if(c.length<u.length)return;for(var p=[],d=0;d<c.length;d++){var y,m=u[d],v=c[d];if(void 0===(y=m?{A:function(e){return"0"==e.trim()?f:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[v.toUpperCase()](m):{a:f,n:p[0],t:l}[v]))return;p.push(y)}if(o.push({t:s,d:p}),r.lastIndex==e.length)return o}}function i(t){return t.toFixed(6).replace(".000000","")}function s(e,n){if(e.decompositionPair!==n){e.decompositionPair=n;var r=t.makeMatrixDecomposition(e)}if(n.decompositionPair!==e){n.decompositionPair=e;var o=t.makeMatrixDecomposition(n)}return null==r[0]||null==o[0]?[[!1],[!0],function(t){return t?n[0].d:e[0].d}]:(r[0].push(0),o[0].push(1),[r,o,function(e){var n=t.quat(r[0][3],o[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],n,e[4]).map(i).join(",")}])}function a(t){return t.replace(/[xy]/,"")}function u(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var c=null,l={px:0},f={deg:0},h={matrix:["NNNNNN",[c,c,0,0,c,c,0,0,0,0,1,0,c,c,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([c,c,1]),r],scalex:["N",n([c,1,1]),n([c,1])],scaley:["N",n([1,c,1]),n([1,c])],scalez:["N",n([1,1,c])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([c,f])],skewy:["A",null,n([f,c])],translate:["Tt",n([c,c,l]),r],translatex:["T",n([c,l,l]),n([c,l])],translatey:["T",n([l,c,l]),n([l,c])],translatez:["L",n([l,l,c])],translate3d:["TTL",r]};t.addPropertiesHandler(o,function(e,n){var r=t.makeMatrixDecomposition&&!0,o=!1;if(!e.length||!n.length){e.length||(o=!0,e=n,n=[]);for(var i=0;i<e.length;i++){var c=e[i].t,l=e[i].d,f="scale"==c.substr(0,5)?1:0;n.push({t:c,d:l.map(function(t){if("number"==typeof t)return f;var e={};for(var n in t)e[n]=f;return e})})}}var p=function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)},d=[],y=[],m=[];if(e.length!=n.length){if(!r)return;d=[(S=s(e,n))[0]],y=[S[1]],m=[["matrix",[S[2]]]]}else for(i=0;i<e.length;i++){var v=e[i].t,b=n[i].t,g=e[i].d,w=n[i].d,_=h[v],E=h[b];if(p(v,b)){if(!r)return;var S=s([e[i]],[n[i]]);d.push(S[0]),y.push(S[1]),m.push(["matrix",[S[2]]])}else{if(v==b)c=v;else if(_[2]&&E[2]&&a(v)==a(b))c=a(v),g=_[2](g),w=E[2](w);else{if(!_[1]||!E[1]||u(v)!=u(b)){if(!r)return;d=[(S=s(e,n))[0]],y=[S[1]],m=[["matrix",[S[2]]]];break}c=u(v),g=_[1](g),w=E[1](w)}for(var x=[],O=[],T=[],C=0;C<g.length;C++)S=("number"==typeof g[C]?t.mergeNumbers:t.mergeDimensions)(g[C],w[C]),x[C]=S[0],O[C]=S[1],T.push(S[2]);d.push(x),y.push(O),m.push([c,T])}}if(o){var N=d;d=y,y=N}return[d,y,function(t){return t.map(function(t,e){var n=t.map(function(t,n){return m[e][1][n](t)}).join(",");return"matrix"==m[e][0]&&16==n.split(",").length&&(m[e][0]="matrix3d"),m[e][0]+"("+n+")"}).join(" ")}]},["transform"]),t.transformToSvgMatrix=function(e){var n=t.transformListToMatrix(o(e));return"matrix("+i(n[0])+" "+i(n[1])+" "+i(n[4])+" "+i(n[5])+" "+i(n[12])+" "+i(n[13])+")"}}(i),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler(function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e},function(t,n){return[t,n,e]},["font-weight"])}(i),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function r(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function o(e,o){var i=t.consumeRepeated(r,/^/,o);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var u=a[0];a[0]=a[1],a[1]=u}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map(function(t){return"object"==n(t)?t:s[t]})}}}function i(n){var o=t.consumeRepeated(r,/^/,n);if(o){for(var i=o[0],a=[{"%":50},{"%":50}],u=0,c=!1,l=0;l<i.length;l++){var f=i[l];"string"==typeof f?(c=/bottom|right/.test(f),a[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=s[f],"center"==f&&u++):(c&&((f=e(f))["%"]=(f["%"]||0)+100),a[u]=f,u++,c=!1)}return[a,o[1]]}}var s={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(o.bind(null,3),a,["transform-origin"]),t.addPropertiesHandler(o.bind(null,2),a,["perspective-origin"]),t.consumePosition=i,t.mergeOffsetList=a;var u=t.mergeNestedRepeated.bind(null,a,", ");t.addPropertiesHandler(function(e){var n=t.consumeRepeated(i,/^,/,e);if(n&&""==n[1])return n[0]},u,["background-position","object-position"])}(i),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),n=t.consumeRepeated.bind(void 0,e,/^/),r=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),o=t.mergeNestedRepeated.bind(void 0,r,",");t.addPropertiesHandler(function(r){var o=t.consumeToken(/^circle/,r);if(o&&o[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var i=t.consumeToken(/^ellipse/,r);if(i&&i[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),n,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],i[1]));var s=t.consumeToken(/^polygon/,r);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0},function(e,n){if(e[0]===n[0])return"circle"==e[0]?t.mergeList(e.slice(1),n.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),n.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==n[1]?t.mergeList(e.slice(2),n.slice(2),["polygon(",e[1],o,")"]):void 0},["shape-outside"])}(i),function(t,e){function n(t,e){e.concat([t]).forEach(function(e){e in document.documentElement.style&&(r[t]=e),o[e]=t})}var r={},o={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return r[t]||t},t.unprefixedPropertyName=function(t){return o[t]||t}}(i)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var t=function(){return performance.now()};else t=function(){return Date.now()};var e=function(t,e,n){this.target=t,this.currentTime=e,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,o){var i=n.call(this,r,o);i._cancelHandlers=[],i.oncancel=null;var s=i.cancel;i.cancel=function(){s.call(this);var n=new e(this,null,t()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){r.forEach(function(t){t.call(n.target,n)})},0)};var a=i.addEventListener;i.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var u=i.removeEventListener;return i.removeEventListener=function(t,e){if("cancel"==t){var n=this._cancelHandlers.indexOf(e);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,t,e)},i}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var o="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[o,o]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==o}catch(t){}finally{n&&n.cancel()}if(!r){var i=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),i.call(this,e,n)}}}(o),r.true={}},function(t,e){window.requestIdleCallback=window.requestIdleCallback||function(t){return window.setTimeout(t,0)},window.cancelIdleCallback=window.cancelIdleCallback||window.clearTimeout},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e,r){var o=[],i={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!1},_q:[],on:function(t,e){var n=this;setTimeout(function(){e(n[t])},0)},addTest:function(t,e,n){o.push({name:t,fn:e,options:n})},addAsyncTest:function(t){o.push({name:null,fn:t})}},s=function(){};s.prototype=i,(s=new s).addTest("customelements","customElements"in t),s.addTest("customevent","CustomEvent"in t&&"function"==typeof t.CustomEvent),s.addTest("eventlistener","addEventListener"in t),s.addTest("history",function(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history)}),s.addTest("queryselector","querySelector"in e&&"querySelectorAll"in e),s.addTest("promises",function(){return"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&(new t.Promise(function(t){e=t}),"function"==typeof e);var e});var a=[];function u(t,e){return n(t)===e}var c=i._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];i._prefixes=c;var l=e.documentElement;function f(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,n){return e+n.toUpperCase()}).replace(/^-/,"")}s.addTest("classlist","classList"in l),s.addTest("documentfragment",function(){return"createDocumentFragment"in e&&"appendChild"in l});var h="svg"===l.nodeName.toLowerCase();function p(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):h?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function d(t,n,r,o){var i,s,a,u,c="modernizr",f=p("div"),d=function(){var t=e.body;return t||((t=p(h?"svg":"body")).fake=!0),t}();if(parseInt(r,10))for(;r--;)(a=p("div")).id=o?o[r]:c+(r+1),f.appendChild(a);return(i=p("style")).type="text/css",i.id="s"+c,(d.fake?d:f).appendChild(i),d.appendChild(f),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(e.createTextNode(t)),f.id=c,d.fake&&(d.style.background="",d.style.overflow="hidden",u=l.style.overflow,l.style.overflow="hidden",l.appendChild(d)),s=n(f,t),d.fake?(d.parentNode.removeChild(d),l.style.overflow=u,l.offsetHeight):f.parentNode.removeChild(f),!!s}s.addTest("opacity",function(){var t=p("a").style;return t.cssText=c.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),s.addTest("csspointerevents",function(){var t=p("a").style;return t.cssText="pointer-events:auto","auto"===t.pointerEvents}),s.addTest("cssremunit",function(){var t=p("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)});var y=i.testStyles=d;s.addTest("touchevents",function(){var n;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)n=!0;else{var r=["@media (",c.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");y(r,function(t){n=9===t.offsetTop})}return n});var m=i._config.usePrefixes?"Moz O ms Webkit".split(" "):[];i._cssomPrefixes=m;var v=function(e){var n,o=c.length,i=t.CSSRule;if(void 0===i)return r;if(!e)return!1;if((n=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var s=0;s<o;s++){var a=c[s];if(a.toUpperCase()+"_"+n in i)return"@-"+a.toLowerCase()+"-"+e}return!1};i.atRule=v;var b=i._config.usePrefixes?"Moz O ms Webkit".toLowerCase().split(" "):[];function g(t,e){return function(){return t.apply(e,arguments)}}i._domPrefixes=b;var w={elem:p("modernizr")};s._q.push(function(){delete w.elem});var _={style:w.elem.style};function E(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function S(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(E(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+E(e[o])+":"+n+")");return d("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",function(e){return"absolute"==function(e,n,r){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,n);var i=t.console;null!==o?r&&(o=o.getPropertyValue(r)):i&&i[i.error?"error":"log"].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else o=!n&&e.currentStyle&&e.currentStyle[r];return o}(e,null,"position")})}return r}function x(t,e,n,o,i){var s=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+m.join(s+" ")+s).split(" ");return u(e,"string")||u(e,"undefined")?function(t,e,n,o){if(o=!u(o,"undefined")&&o,!u(n,"undefined")){var i=S(t,n);if(!u(i,"undefined"))return i}for(var s,a,c,l,h,d=["modernizr","tspan","samp"];!_.style&&d.length;)s=!0,_.modElem=p(d.shift()),_.style=_.modElem.style;function y(){s&&(delete _.style,delete _.modElem)}for(c=t.length,a=0;a<c;a++)if(l=t[a],h=_.style[l],~(""+l).indexOf("-")&&(l=f(l)),_.style[l]!==r){if(o||u(n,"undefined"))return y(),"pfx"!=e||l;try{_.style[l]=n}catch(t){}if(_.style[l]!=h)return y(),"pfx"!=e||l}return y(),!1}(a,e,o,i):function(t,e,n){var r;for(var o in t)if(t[o]in e)return!1===n?t[o]:u(r=e[t[o]],"function")?g(r,n||e):r;return!1}(a=(t+" "+b.join(s+" ")+s).split(" "),e,n)}s._q.unshift(function(){delete _.style}),i.testAllProps=x;var O=i.prefixed=function(t,e,n){return 0===t.indexOf("@")?v(t):(-1!=t.indexOf("-")&&(t=f(t)),e?x(t,e,n):x(t,"pfx"))};function T(t,e,n){return x(t,r,r,e,n)}s.addTest("requestanimationframe",!!O("requestAnimationFrame",t),{aliases:["raf"]}),s.addTest("matchmedia",!!O("matchMedia",t)),i.testAllProps=T,s.addTest("cssanimations",T("animationName","a",!0)),s.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&T("transform","scale(1)",!0)}),s.addTest("template","content"in p("template")),function(){var t,e,n,r,i,c;for(var l in o)if(o.hasOwnProperty(l)){if(t=[],(e=o[l]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(n=0;n<e.options.aliases.length;n++)t.push(e.options.aliases[n].toLowerCase());for(r=u(e.fn,"function")?e.fn():e.fn,i=0;i<t.length;i++)1===(c=t[i].split(".")).length?s[c[0]]=r:(!s[c[0]]||s[c[0]]instanceof Boolean||(s[c[0]]=new Boolean(s[c[0]])),s[c[0]][c[1]]=r),a.push((r?"":"no-")+c.join("-"))}}(),delete i.addTest,delete i.addAsyncTest;for(var C=0;C<s._q.length;C++)s._q[C]();t.Modernizr=s}(window,document)},function(t,e){console.log(" __ __ __ __ \r\n/\\ \\/\\ \\ /\\ \\ __ /\\ \\ \r\n\\ \\ \\_\\ \\ __ __ \\_\\ \\ __ /\\_\\ __ ___ \\ \\ \\/'\\ \r\n \\ \\ _ \\ /\\ \\/\\ \\ /'_` \\ /'__`\\ \\/\\ \\ /'__`\\ /'___\\\\ \\ , < \r\n \\ \\ \\ \\ \\\\ \\ \\_\\ \\ /\\ \\L\\ \\ /\\ __/ \\ \\ \\ /\\ \\L\\.\\_ /\\ \\__/ \\ \\ \\\\`\\ \r\n \\ \\_\\ \\_\\\\/`____ \\\\ \\___,_\\\\ \\____\\ _\\ \\ \\\\ \\__/.\\_\\\\ \\____\\ \\ \\_\\ \\_\\\r\n \\/_/\\/_/ `/___/> \\\\/__,_ / \\/____//\\ \\_\\ \\\\/__/\\/_/ \\/____/ \\/_/\\/_/\r\n /\\___/ \\ \\____/ \r\n \\/__/ \\/___/ \n\n"),console.log("Powered by Hydejack v8.3.2 <https://hydejack.com/>")},function(t,e,n){"use strict";var r=n(7),o=n(23)(0),i=n(56)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(43),o=n(44),i=n(46),s=Object.defineProperty;e.f=n(13)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(13)&&!n(14)(function(){return 7!=Object.defineProperty(n(45)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),o=n(8).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(8),o=n(12),i=n(49),s=n(19)("src"),a=n(50),u=(""+a).split("toString");n(3).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,s)||o(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=n(20)("native-function-to-string",Function.toString)},function(t,e){t.exports=!1},function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(54);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(4),o=n(55),i=n(9)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(14);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(7);r(r.P,"Function",{bind:n(58)})},function(t,e,n){"use strict";var r=n(22),o=n(4),i=n(59),s=[].slice,a={};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),u=function r(){var o=n.concat(s.call(arguments));return this instanceof r?function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)}(e,o.length,o):i(e,o,t)};return o(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){n(61),t.exports=n(3).String.includes},function(t,e,n){"use strict";var r=n(7),o=n(62);r(r.P+r.F*n(64)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(63),o=n(16);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(15),i=n(9)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(9)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){n(66),t.exports=n(3).Array.find},function(t,e,n){"use strict";var r=n(7),o=n(23)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(27)("find")},function(t,e,n){var r=n(28),o=n(68),i={};for(var s in r)r.hasOwnProperty(s)&&(i[r[s]]=s);var a=t.exports={to:{},get:{}};function u(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}a.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=a.get.hsl(t),n="hsl";break;case"hwb":e=a.get.hwb(t),n="hwb";break;default:e=a.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},a.get.rgb=function(t){if(!t)return null;var e,n,o,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var s=2*n;i[n]=parseInt(e.slice(s,s+2),16)}o&&(i[3]=Math.round(parseInt(o,16)/255*100)/100)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)i[n]=parseInt(e[n]+e[n],16);o&&(i[3]=Math.round(parseInt(o+o,16)/255*100)/100)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(e[n+1],0);e[4]&&(i[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(e=t.match(/(\D+)/))?"transparent"===e[1]?[0,0,0,0]:(i=r[e[1]])?(i[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(i[3]=parseFloat(e[4]))}for(n=0;n<3;n++)i[n]=u(i[n],0,255);return i[3]=u(i[3],0,1),i},a.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},a.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},a.to.hex=function(){var t=o(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},a.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},a.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},a.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},a.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},a.to.keyword=function(t){return i[t.slice(0,3)]}},function(t,e,n){"use strict";var r=n(69),o=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var a=t[n];r(a)?e=o.call(e,i.call(a)):e.push(a)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},function(t,e){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(29),i=n(71),s={};Object.keys(o).forEach(function(t){s[t]={},Object.defineProperty(s[t],"channels",{value:o[t].channels}),Object.defineProperty(s[t],"labels",{value:o[t].labels});var e=i(t);Object.keys(e).forEach(function(n){var o=e[n];s[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===r(n))for(var o=n.length,i=0;i<o;i++)n[i]=Math.round(n[i]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(o),s[t][n].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(o)})}),t.exports=s},function(t,e,n){var r=n(29);function o(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,o=0;o<n;o++)t[e[o]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;)for(var o=n.pop(),i=Object.keys(r[o]),s=i.length,a=0;a<s;a++){var u=i[a],c=e[u];-1===c.distance&&(c.distance=e[o].distance+1,c.parent=o,n.unshift(u))}return e}function i(t,e){return function(n){return e(t(n))}}function s(t,e){for(var n=[e[t].parent,t],o=r[e[t].parent][t],s=e[t].parent;e[s].parent;)n.unshift(e[s].parent),o=i(r[e[s].parent][s],o),s=e[s].parent;return o.conversion=n,o}t.exports=function(t){for(var e=o(t),n={},r=Object.keys(e),i=r.length,a=0;a<i;a++){var u=r[a];null!==e[u].parent&&(n[u]=s(u,e))}return n}},function(t,e,n){n(73),t.exports=n(3).Array.includes},function(t,e,n){"use strict";var r=n(7),o=n(74)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(27)("includes")},function(t,e,n){var r=n(75),o=n(25),i=n(76);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=o(u.length),l=i(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(24),o=n(16);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(26),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){"use strict";n.r(e);n(32),n(36);var r=n(10),o=(n(37),n(30)),i=n.n(o),s=(n(38),n(39),n(40),n(11),"undefined"!=typeof Set&&1===new Set([1]).size?Set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(t=t.filter(function(e,n){return n===t.indexOf(e)})).size=t.length,t.has=function(e){return t.indexOf(e)>-1},t.add=function(e){return t.has(e)||(t.size++,t.push(e)),t},t.delete=function(e){var n;return(n=t.has(e))&&(t.size--,t.splice(t.indexOf(e),1)),n},t.clear=function(){for(;t.pop(););t.size=0},t});function a(t,e){return t?t(e):e}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.replace(/([a-z\d])([A-Z])/g,"$1".concat(e,"$2")).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1".concat(e,"$2")).toLowerCase()}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var y=new s(["customevent"]),m=Symbol||function(t){return"_".concat(t)},v=m("sroot"),b=m("state");window.process=window.process||{},window.process.env=window.process.env||{},window.requestIdleCallback=window.requestIdleCallback||function(t){return window.setTimeout(t,0)},window.cancelIdleCallback=window.cancelIdleCallback||window.clearTimeout;var g=function t(){d(this,t)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;return function(e){function n(){return d(this,n),f(this,h(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(n,t),r=n,(o=[{key:"setupComponent",value:function(t,e){var n=this.constructor.defaults;this[b]=Object.assign({},n,e),this.setupProperties(this),this[v]=this.setupShadowDOM(t)}},{key:"setupShadowDOM",value:function(t){return t}},{key:"connectComponent",value:function(){}},{key:"disconnectComponent",value:function(){}},{key:"adoptComponent",value:function(){}},{key:"getRoot",value:function(){return this[v]}},{key:"getEl",value:function(){return this[v]}},{key:"fireEvent",value:function(t,e){var n=this.constructor.componentName,r=new CustomEvent("".concat(n,"-").concat(t),e);this.el.dispatchEvent(r)}},{key:"setInternalState",value:function(t,e){this[b][t]=e}},{key:"setupProperties",value:function(){var t=this,e=this.constructor.sideEffects;Object.keys(this[b]).forEach(function(n){var r=e[n];t.setupProperty(n,r)})}},{key:"setupProperty",value:function(t,e){var n=this;Object.defineProperty(this,t,{get:function(){return n[b][t]},set:function(r){var o=n[b][t];n.setInternalState(t,r),e&&e.call(n,r,o)},enumerable:!0,configurable:!0})}},{key:"sroot",get:function(){return this.getRoot()}},{key:"el",get:function(){return this.getEl()}}])&&l(r.prototype,o),i&&l(r,i),n}()};function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e,n){return(E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=S(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e,n){return e&&x(t.prototype,e),n&&x(t,n),t}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var N,k=new s([].concat(function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(N=y)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(N)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}(),["template","customelements"])),j=null,A=function(t){return function(e){function n(){var t,e,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r=this,(e=!(o=(t=S(n)).call.apply(t,[this].concat(s)))||"object"!==_(o)&&"function"!=typeof o?C(r):o).setupComponent(C(C(e)),e.getStateFromAttributes()),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(n,t),O(n,null,[{key:"getObservedAttributes",value:function(){var t=this.types;return Object.keys(t).map(function(t){return u(t)})}}]),O(n,[{key:"reflectAttribute",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(t);n&&(j=r);var o=this.constructor.types[t].stringify(e);null==o?this.removeAttribute(r):this.setAttribute(r,o)}},{key:"getStateFromAttributes",value:function(){var t=this,e=this.constructor.types,n={};return Object.keys(e).forEach(function(r){var o=u(r),i=t.hasAttribute(o)?t.getAttribute(o):null,s=a(e[r],i);null!=s&&(n[r]=s)}),n}},{key:"connectedCallback",value:function(){this.connectComponent()}},{key:"disconnectedCallback",value:function(){this.disconnectComponent()}},{key:"adoptedCallback",value:function(){this.adoptComponent()}},{key:"attributeChangedCallback",value:function(t,e,n){if(j===t)j=null;else if(e!==n){var r=this.constructor.types,o=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=[].map.call(e,function(t){return t.trim()}).filter(function(t){return t.length}).join("-");return 0===r.length?"":1===r.length?r.toLowerCase():(r=function(t){for(var e=t,n=!1,r=!1,o=!1,i=0;i<e.length;i++){var s=e.charAt(i);n&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(e="".concat(e.substr(0,i),"-").concat(e.substr(i)),n=!1,o=r,r=!0,i++):r&&o&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(e="".concat(e.substr(0,i-1),"-").concat(e.substr(i-1)),o=r,r=!1,n=!0):(n=s.toLowerCase()===s,o=r,r=s.toUpperCase()===s)}return e}(r)).replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()})}(t),i=a(r[o],n);this[o]=null!=i?i:this.constructor.defaults[o]}}},{key:"setInternalState",value:function(t,e){E(S(n.prototype),"setInternalState",this).call(this,t,e),this.reflectAttribute(t,e,!0)}},{key:"setupShadowDOM",value:function(t){var e=this.getTemplate();if(e){if("attachShadow"in Element.prototype)return t.attachShadow({mode:"open"}),t.shadowRoot.appendChild(e),t.shadowRoot;throw Error("ShadowDOM API not supported")}return t}},{key:"getEl",value:function(){return this}},{key:"getTemplate",value:function(){var t=this.constructor.componentName;return document.querySelector('link[href*="'.concat(t,'"]')).import.querySelector("#".concat(t,"-template")).content.cloneNode(!0)}},{key:"template",get:function(){return this.getTemplate()}}]),n}()};function M(){var t="function"==typeof window.HTMLElement?window.HTMLElement:function(){};return Reflect.construct(t,[],this.__proto__.constructor)}Object.setPrototypeOf&&(Object.setPrototypeOf(M.prototype,HTMLElement.prototype),Object.setPrototypeOf(M,HTMLElement));
33
- /*! *****************************************************************************
34
- Copyright (c) Microsoft Corporation. All rights reserved.
35
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
36
- this file except in compliance with the License. You may obtain a copy of the
37
- License at http://www.apache.org/licenses/LICENSE-2.0
38
-
39
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
41
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
42
- MERCHANTABLITY OR NON-INFRINGEMENT.
43
-
44
- See the Apache Version 2.0 License for specific language governing permissions
45
- and limitations under the License.
46
- ***************************************************************************** */
47
- var P=function(t,e){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function R(t,e){function n(){this.constructor=t}P(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function L(t){return"function"==typeof t}var I=!1,D={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;I=t},get useDeprecatedSynchronousErrorHandling(){return I}};function F(t){setTimeout(function(){throw t})}var q={closed:!0,next:function(t){},error:function(t){if(D.useDeprecatedSynchronousErrorHandling)throw t;F(t)},complete:function(){}},H=Array.isArray||function(t){return t&&"number"==typeof t.length};function U(t){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t){return null!==t&&"object"===U(t)}function B(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}B.prototype=Object.create(Error.prototype);var W=B;function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var $=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=r?r.length:0;n;)n.remove(this),n=++s<a&&r[s]||null;if(L(o))try{o.call(this)}catch(n){e=!0,t=n instanceof W?X(n.errors):[n]}if(H(i))for(s=-1,a=i.length;++s<a;){var u=i[s];if(z(u))try{u.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof W?t=t.concat(X(n.errors)):t.push(n)}}if(e)throw new W(t)}},t.prototype.add=function(e){var n=e;switch(V(e)){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=((e=new t).closed=!0,e),t}();function X(t){return t.reduce(function(t,e){return t.concat(e instanceof W?e.errors:e)},[])}var G="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var K=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=q;break;case 1:if(!n){i.destination=q;break}if("object"===Y(n)){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new J(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new J(i,n,r,o)}return i}return R(e,t),e.prototype[G]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}($),J=function(t){function e(e,n,r,o){var i,s=t.call(this)||this;s._parentSubscriber=e;var a=s;return L(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==q&&(L((a=Object.create(n)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=i,s._error=r,s._complete=o,s}return R(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;D.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=D.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):F(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;F(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};D.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),D.useDeprecatedSynchronousErrorHandling)throw t;F(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!D.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return D.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(F(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(K);var Z="function"==typeof Symbol&&Symbol.observable||"@@observable";function Q(){}function tt(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:Q}var et=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=function(t,e,n){if(t){if(t instanceof K)return t;if(t[G])return t[G]()}return t||e||n?new K(t,e,n):new K(q)}(t,e,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||D.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),D.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){D.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,r=e.destination,o=e.isStopped;if(n||o)return!1;t=r&&r instanceof K?r:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=nt(e))(function(e,r){var o;o=n.subscribe(function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[Z]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:tt(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=nt(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function nt(t){if(t||(t=D.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function rt(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}rt.prototype=Object.create(Error.prototype);var ot=rt,it=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return R(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}($),st=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return R(e,t),e}(K),at=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return R(e,t),e.prototype[G]=function(){return new st(this)},e.prototype.lift=function(t){var e=new ut(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new ot;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new ot;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new ot;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new ot;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new ot;return this.hasError?(t.error(this.thrownError),$.EMPTY):this.isStopped?(t.complete(),$.EMPTY):(this.observers.push(t),new it(this,t))},e.prototype.asObservable=function(){var t=new et;return t.source=this,t},e.create=function(t,e){return new ut(t,e)},e}(et),ut=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return R(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):$.EMPTY},e}(at),ct=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return R(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return R(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}($)),lt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return R(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(ct),ft=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),ht=function(t){function e(n,r){void 0===r&&(r=ft.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return R(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(ft),pt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e}(ht))(lt),dt=new et(function(t){return t.complete()});function yt(t){return t?function(t){return new et(function(e){return t.schedule(function(){return e.complete()})})}(t):dt}function mt(t){return t&&"function"==typeof t.schedule}var vt,bt=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}};function gt(t,e){return new et(e?function(n){var r=new $,o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}:bt(t))}function wt(t){var e=new et(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function _t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(mt(n)?t.pop():n=void 0,t.length){case 0:return yt(n);case 1:return n?gt(t,n):wt(t[0]);default:return gt(t,n)}}function Et(t){var e=t.error;t.subscriber.error(e)}vt||(vt={});var St=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return _t(this.value);case"E":return t=this.error,new et(e?function(n){return e.schedule(Et,0,{error:t,subscriber:n})}:function(e){return e.error(t)});case"C":return yt()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();var xt=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new Ot(t,this.scheduler,this.delay))},t}(),Ot=function(t){function e(e,n,r){void 0===r&&(r=0);var o=t.call(this,e)||this;return o.scheduler=n,o.delay=r,o}return R(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Tt(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(St.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(St.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(St.createComplete()),this.unsubscribe()},e}(K),Tt=function(){return function(t,e){this.notification=t,this.destination=e}}(),Ct=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=r,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=e<1?1:e,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return R(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Nt(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new ot;if(this.isStopped||this.hasError?e=$.EMPTY:(this.observers.push(t),e=new it(this,t)),o&&t.add(t=new Ot(t,o)),n)for(var s=0;s<i&&!t.closed;s++)t.next(r[s]);else for(s=0;s<i&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||pt).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(t-r[i].time<n);)i++;return o>e&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r},e}(at),Nt=function(){return function(t,e){this.time=t,this.value=e}}();function kt(t){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function At(t,e){return!e||"object"!==kt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mt(t,e,n){return(Mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Pt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Pt(t){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rt(t,e){return(Rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Lt=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),At(this,Pt(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rt(t,e)}(n,t),r=n,(o=[{key:"setupComponent",value:function(t,e){var r=this,o={};this.subjects={},this.subjects.disconnect=new at,this.subjects.document=new Ct,Object.keys(this.constructor.types).map(function(t){r.subjects[t]=new Ct(1),o[t]=function(e){return r.subjects[t].next(e)}}),Object.defineProperty(this.constructor,"sideEffects",{get:function(){return o},set:function(){},enumerable:!0,configurable:!0}),Mt(Pt(n.prototype),"setupComponent",this).call(this,t,e)}},{key:"connectComponent",value:function(){var t=this;Mt(Pt(n.prototype),"connectComponent",this).call(this),this.subjects.document.next(document),Object.keys(this.constructor.types).map(function(e){return t.subjects[e].next(t[e])})}},{key:"disconnectComponent",value:function(){Mt(Pt(n.prototype),"disconnectComponent",this).call(this),this.subjects.disconnect.next({})}},{key:"adaptComponent",value:function(){Mt(Pt(n.prototype),"adaptComponent",this).call(this),this.subjects.document.next(document)}}])&&jt(r.prototype,o),i&&jt(r,i),n}()},It=function(t){return function(e,n,r){return et.create(function(o){var i=o.next.bind(o),s=new t(function(t){return Array.from(t).forEach(i)},n);return s.observe(e,r),function(){s.unobserve(e)}})}},Dt=function(t){return null==t?null:t.trim().replace(/^\[?(.*?)\]?$/,"$1").split(",").map(function(t){return t.trim()})||null};Dt.stringify=function(t){return t&&t.length>0?t.join(","):null};var Ft=function(t){var e=function(e){if(null==e)return null;var n=Dt(e).map(t);return n.reduce(function(t,e){return t&&null!==e},!0)?n:null};return e.stringify=function(e){var n=e&&e.map&&e.map(t.stringify);return n&&n.reduce(function(t,e){return t&&null!==e},!0)?Dt.stringify(n):null},e},qt=function(t){if(null==t)return!1;var e=t.trim&&t.trim()||t;return!("false"===e||"null"===e||"undefined"===e||"0"===e||!1===e)};qt.stringify=function(t){return t?"":null};var Ht=function(t){return null==t?null:Number(t)};Ht.stringify=function(t){return null==t?null:"".concat(t)};var Ut=function(t){var e=function(e){if(null==e)return null;var n=t.indexOf(e);return n>-1?t[n]:null};return e.stringify=function(e){return-1!==t.indexOf(e)?e:null},e},zt=function(t){if(null==t)return null;var e=(t.trim&&t.trim()||t).match(/^\/?(.*?)(\/([gimy]*))?$/);return new RegExp(e[1],e[3])};zt.stringify=function(t){return t&&t.toString()||null};var Bt=function(t){return t};Bt.stringify=function(t){return t};var Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(K),Vt=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return R(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(K),$t=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,F),e}};function Xt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Gt=Xt(),Yt=function(t){return function(e){for(var n=t[Gt]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},Kt=function(t){return function(e){var n=t[Z]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},Jt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Zt(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Qt=function(t){if(t instanceof et)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[Z])return Kt(t);if(Jt(t))return bt(t);if(Zt(t))return $t(t);if(t&&"function"==typeof t[Gt])return Yt(t);var e=z(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function te(t,e,n,r,o){if(void 0===o&&(o=new Vt(t,n,r)),!o.closed)return Qt(e)(o)}var ee={};function ne(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return mt(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&H(t[0])&&(t=t[0]),gt(t,r).lift(new re(n))}var re=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new oe(t,this.resultSelector))},t}(),oe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return R(e,t),e.prototype._next=function(t){this.values.push(ee),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(te(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){var i=this.values,s=i[n],a=this.toRespond?s===ee?--this.toRespond:this.toRespond:0;i[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Wt);function ie(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new se(t,e))}}var se=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new ae(t,this.project,this.thisArg))},t}(),ae=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return R(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(K);function ue(t){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ce(t,e){if(!e)return t instanceof et?t:new et(Qt(t));if(null!=t){if(function(t){return t&&"function"==typeof t[Z]}(t))return function(t,e){return new et(e?function(n){var r=new $;return r.add(e.schedule(function(){var o=t[Z]();r.add(o.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:Kt(t))}(t,e);if(Zt(t))return function(t,e){return new et(e?function(n){var r=new $;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:$t(t))}(t,e);if(Jt(t))return gt(t,e);if(function(t){return t&&"function"==typeof t[Gt]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new et(e?function(n){var r,o=new $;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(e.schedule(function(){r=t[Gt](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),o}:Yt(t))}(t,e)}throw new TypeError((null!==t&&ue(t)||t)+" is not observable")}function le(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(le(function(n,r){return ce(t(n,r)).pipe(ie(function(t,o){return e(n,t,r,o)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new fe(t,n))})}var fe=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new he(t,this.project,this.concurrent))},t}(),he=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return R(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new Vt(this,void 0,void 0);this.destination.add(r),te(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Wt);function pe(t){return t}function de(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),le(pe,t)}function ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return mt(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof et?t[0]:de(n)(gt(t,r))}var me=new et(Q);Object.prototype.toString;function ve(t,e,n,r){return L(n)&&(r=n,n=void 0),r?ve(t,e,n).pipe(ie(function(t){return H(t)?r.apply(void 0,t):r(t)})):new et(function(r){!function t(e,n,r,o,i){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,i),s=function(){return a.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),s=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),s=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l<f;l++)t(e[l],n,r,o,i)}o.add(s)}(t,e,function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)},r,n)})}var be=n(1);function ge(t,e){return void 0===e&&(e=null),new Te({method:"GET",url:t,headers:e})}function we(t,e,n){return new Te({method:"POST",url:t,body:e,headers:n})}function _e(t,e){return new Te({method:"DELETE",url:t,headers:e})}function Ee(t,e,n){return new Te({method:"PUT",url:t,body:e,headers:n})}function Se(t,e,n){return new Te({method:"PATCH",url:t,body:e,headers:n})}var xe=ie(function(t,e){return t.response});function Oe(t,e){return xe(new Te({method:"GET",url:t,responseType:"json",headers:e}))}var Te=function(t){function e(e){var n=t.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?function(){if(be.a.XMLHttpRequest)return new be.a.XMLHttpRequest;if(be.a.XDomainRequest)return new be.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(be.a.XMLHttpRequest)return new be.a.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new be.a.ActiveXObject(t))break}catch(t){}return new be.a.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);return n.request=r,n}var n;return R(e,t),e.prototype._subscribe=function(t){return new Ce(t,this.request)},e.create=((n=function(t){return new e(t)}).get=ge,n.post=we,n.delete=_e,n.put=Ee,n.patch=Se,n.getJSON=Oe,n),e}(et),Ce=function(t){function e(e,n){var r=t.call(this,e)||this;r.request=n,r.done=!1;var o=n.headers=n.headers||{};return n.crossDomain||r.getHeader(o,"X-Requested-With")||(o["X-Requested-With"]="XMLHttpRequest"),r.getHeader(o,"Content-Type")||be.a.FormData&&n.body instanceof be.a.FormData||void 0===n.body||(o["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=r.serializeBody(n.body,r.getHeader(n.headers,"Content-Type")),r.send(),r}return R(e,t),e.prototype.next=function(t){this.done=!0;var e,n=this.xhr,r=this.request,o=this.destination;try{e=new Ne(t,n,r)}catch(t){return o.error(t)}o.next(e)},e.prototype.send=function(){var t=this.request,e=this.request,n=e.user,r=e.method,o=e.url,i=e.async,s=e.password,a=e.headers,u=e.body;try{var c=this.xhr=t.createXHR();this.setupEvents(c,t),n?c.open(r,o,i,n,s):c.open(r,o,i),i&&(c.timeout=t.timeout,c.responseType=t.responseType),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),this.setHeaders(c,a),u?c.send(u):c.send()}catch(t){this.error(t)}},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(be.a.FormData&&t instanceof be.a.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.getHeader=function(t,e){for(var n in t)if(n.toLowerCase()===e.toLowerCase())return t[n]},e.prototype.setupEvents=function(t,e){var n=e.progressSubscriber;function r(t){var e,n=r,o=n.subscriber,i=n.progressSubscriber,s=n.request;i&&i.error(t);try{e=new Me(this,s)}catch(t){e=t}o.error(e)}if(t.ontimeout=r,r.request=e,r.subscriber=this,r.progressSubscriber=n,t.upload&&"withCredentials"in t){var o,i;if(n)o=function(t){o.progressSubscriber.next(t)},be.a.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=n;i=function(t){var e,n=i,r=n.progressSubscriber,o=n.subscriber,s=n.request;r&&r.error(t);try{e=new je("ajax error",this,s)}catch(t){e=t}o.error(e)},t.onerror=i,i.request=e,i.subscriber=this,i.progressSubscriber=n}function s(t){}function a(t){var e=a,n=e.subscriber,r=e.progressSubscriber,o=e.request;if(4===this.readyState){var i=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;if(0===i&&(i=s?200:0),i<400)r&&r.complete(),n.next(t),n.complete();else{r&&r.error(t);var u=void 0;try{u=new je("ajax error "+i,this,o)}catch(t){u=t}n.error(u)}}}t.onreadystatechange=s,s.subscriber=this,s.progressSubscriber=n,s.request=e,t.onload=a,a.subscriber=this,a.progressSubscriber=n,a.request=e},e.prototype.unsubscribe=function(){var e=this.done,n=this.xhr;!e&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),t.prototype.unsubscribe.call(this)},e}(K),Ne=function(){return function(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=Ae(this.responseType,e)}}();function ke(t,e,n){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=Ae(this.responseType,e),this}ke.prototype=Object.create(Error.prototype);var je=ke;function Ae(t,e){switch(t){case"json":return function(t){return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null")}(e);case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var Me=function(t,e){return je.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},Pe=Te.create;function Re(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return de(1)(_t.apply(void 0,t))}function Le(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];mt(n)?t.pop():n=null;var r=t.length;return Re(1!==r||n?r>0?gt(t,n):yt(n):wt(t[0]),e)}}function Ie(t){return function(e){return e.lift(new De(t))}}var De=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Fe(t),r=te(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),Fe=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return R(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(Wt);function qe(t,e){return"function"==typeof e?function(n){return n.pipe(qe(function(n,r){return ce(t(n,r)).pipe(ie(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new He(t))}}var He=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ue(t,this.project))},t}(),Ue=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return R(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new Vt(this,void 0,void 0);this.destination.add(o),this.innerSubscription=te(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(Wt);function ze(){return function(t){return t.lift(new Be(t))}}var Be=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new We(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),We=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return R(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(K),Ve=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return R(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new $).add(this.source.subscribe(new Xe(this.getSubject(),this))),t.closed?(this._connection=null,t=$.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return ze()(this)},e}(et).prototype,$e={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Ve._subscribe},_isComplete:{value:Ve._isComplete,writable:!0},getSubject:{value:Ve.getSubject},connect:{value:Ve.connect},refCount:{value:Ve.refCount}},Xe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return R(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(st);var Ge=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function Ye(){return new at}function Ke(){return function(t){return ze()((e=Ye,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new Ge(r,n));var o=Object.create(t,$e);return o.source=t,o.subjectFactory=r,o})(t));var e,n}}function Je(t,e){return function(n){return n.lift(new Ze(t,e))}}var Ze=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Qe(t,this.predicate,this.thisArg))},t}(),Qe=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return R(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(K);function tn(t,e){return function(n){return n.lift(new en(t,e))}}var en=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new nn(t,this.compare,this.keySelector))},t}(),nn=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return R(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(K);function rn(t,e,n){return function(r){return r.lift(new on(t,e,n))}}var on=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new sn(t,this.nextOrObserver,this.error,this.complete))},t}(),sn=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=Q,i._tapError=Q,i._tapComplete=Q,i._tapError=r||Q,i._tapComplete=o||Q,L(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||Q,i._tapError=n.error||Q,i._tapComplete=n.complete||Q),i}return R(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(K),an="attributeStyleMap"in Element.prototype&&"CSS"in window&&CSS.number;function un(t){var e=t.protocol,n=t.host,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return e!==r.protocol||n!==r.host}function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ln=/(\S+)(?:\s+(?:(-?\d+(?:\.\d+)?)([a-zA-Z]*)))?\s*(?:,|$)/g;function fn(t){return new pn([{url:t,width:void 0,dpr:1}])}function hn(t){for(var e,n=[];e=ln.exec(t);){var r=e[1],o=void 0,i=void 0;if(e[2]){var s=e[3].toLowerCase();if("w"==s)o=parseInt(e[2],10);else{if("x"!=s)continue;i=parseFloat(e[2])}}else i=1;n.push({url:r,width:o,dpr:i})}return new pn(n)}var pn=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sources_=e;for(var n=!1,r=!1,o=0;o<e.length;o++){var i=e[o];n=n||!!i.width,r=r||!!i.dpr}e.sort(n?dn:yn),this.widthBased_=n,this.dprBased_=r}var e,n,r;return e=t,(n=[{key:"select",value:function(t,e){var n=0;return n=this.widthBased_?this.selectByWidth_(t*e):this.selectByDpr_(e),this.sources_[n].url}},{key:"selectByWidth_",value:function(t){for(var e=this.sources_,n=0,r=1/0,o=1/0,i=0;i<e.length;i++){var s=e[i].width,a=Math.abs(s-t);if(!(a<=1.1*r||t/o>1.2))break;n=i,r=a,o=s}return n}},{key:"selectByDpr_",value:function(t){for(var e=this.sources_,n=0,r=1/0,o=0;o<e.length;o++){var i=Math.abs(e[o].dpr-t);if(!(i<=r))break;n=o,r=i}return n}},{key:"getUrls",value:function(){return this.sources_.map(function(t){return t.url})}},{key:"stringify",value:function(t){for(var e=[],n=this.sources_,r=0;r<n.length;r++){var o=n[r],i=o.url;t&&(i=t(i)),this.widthBased_?i+=" ".concat(o.width,"w"):i+=" ".concat(o.dpr,"x"),e.push(i)}return e.join(", ")}}])&&cn(e.prototype,n),r&&cn(e,r),t}();function dn(t,e){return t.width-e.width}function yn(t,e){return t.dpr-e.dpr}function mn(t){return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gn(t,e){return!e||"object"!==mn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wn(t,e,n){return(wn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_n(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function _n(t){return(_n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function En(t,e){return(En=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Sn=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(y),["eventlistener","queryselector","requestanimationframe"])),xn=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),gn(this,_n(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&En(t,e)}(n,Lt(w(t))),r=n,i=[{key:"componentName",get:function(){return"hy-img"}},{key:"defaults",get:function(){return{root:null,rootMargin:"0px",src:null,srcset:null,width:null,height:null,dataWidth:null,dataHeight:null,alt:null,decoding:null,longdesc:null,ismap:!1,usemap:null}}},{key:"types",get:function(){return{root:Bt,rootMargin:Bt,src:Bt,srcset:Bt,width:Ht,height:Ht,dataWidth:Ht,dataHeight:Ht,alt:Bt,decoding:Ut(["sync","async","auto"]),longdesc:Bt,ismap:qt,usemap:Bt}}}],(o=[{key:"setupComponent",value:function(t,e){wn(_n(n.prototype),"setupComponent",this).call(this,t,e),this.loadImage$=new at}},{key:"connectComponent",value:function(){var t=this;wn(_n(n.prototype),"connectComponent",this).call(this),this.img=document.createElement("img"),this.sizer=document.createElement("div"),this.loading=this.el.querySelector('[slot="loading"]'),this.loading&&this.sizer.appendChild(this.loading),an?this.img.attributeStyleMap.set("display","block"):this.img.style.display="block",this.el.appendChild(this.sizer);var e={contentRect:this.el.getBoundingClientRect()};this.resize$="ResizeObserver"in window?It(ResizeObserver)(this.el).pipe(Le(e)):_t(e);var r=function(t,e){return t||e},o=ne(this.subjects.width,this.subjects.dataWidth,r),i=ne(this.subjects.height,this.subjects.dataHeight,r),s=ne(this.resize$,o,i),a=ne(this.subjects.root,this.subjects.rootMargin).pipe(Ie(this.subjects.disconnect),qe(function(e){var n=vn(e,2),r=n[0],o=n[1];return"IntersectionObserver"in window?It(IntersectionObserver)(t.el,{root:r,rootMargin:o}):_t({isIntersecting:!0})}),ie(function(t){return t.isIntersecting}));this.trigger$=ye(a,this.loadImage$).pipe(Ke()),s.pipe(Ie(this.subjects.disconnect)).subscribe(this.updateSizerStyle.bind(this)),this.trigger$.pipe(Je(function(t){return t}),tn()).subscribe(this.triggered.bind(this)),this.fireEvent("init")}},{key:"triggered",value:function(){var t,e,n=this,r=(this.cache=new Map,ne(this.subjects.src,this.subjects.srcset).pipe(Je(function(t){var e=vn(t,2),n=e[0],r=e[1];return null!=n||null!=r}),tn(function(t,e){var n=vn(t,2),r=n[0],o=n[1],i=vn(e,2),s=i[0],a=i[1];return r===s&&o===a}),ie(function(t){var e=vn(t,2),n=e[0],r=e[1];return r?hn(r):fn(n)}))),o=ne(this.resize$,r).pipe(ie(this.selectImgURL.bind(this)),(t="href",tn(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})));ne(o,this.trigger$.pipe(tn(),Le(!0))).pipe(Ie(this.subjects.disconnect),rn(function(){return n.loading&&n.loading.removeAttribute("hidden")}),qe(this.makeRequest.bind(this)),qe(this.setImgSrcAndLoad.bind(this))).subscribe(function(){null!=n.sizer.parentNode&&n.el.removeChild(n.sizer),null==n.img.parentNode&&n.el.appendChild(n.img),n.fireEvent("load")},function(t){n.loadImageFallback()}),this.updateAttr=this.updateAttr.bind(this),this.subjects.alt.subscribe(this.updateAttr("alt")),this.subjects.decoding.subscribe(this.updateAttr("decoding")),this.subjects.longdesc.subscribe(this.updateAttr("longdesc")),this.subjects.ismap.subscribe(this.updateAttr("ismap")),this.subjects.usemap.subscribe(this.updateAttr("usemap"))}},{key:"selectImgURL",value:function(t){var e=vn(t,2),n=e[0],r=e[1],o=n.contentRect.width;return new URL(r.select(o||window.screen.width,window.devicePixelRatio||1),window.location)}},{key:"makeRequest",value:function(t){var e=vn(t,2),n=e[0],r=e[1],o=n.href,i=this.cache;return r&&!i.has(o)?Pe({method:"GET",responseType:"blob",url:n,crossDomain:un(n),headers:{Accept:"image/*"}}).pipe(ie(function(t){var e=t.response;return URL.createObjectURL(e)}),rn(function(t){return i.set(o,t)})):i.has(o)?_t(i.get(o)):me}},{key:"setImgSrcAndLoad",value:function(t){var e=ve(this.img,"load");return this.img.src=t,e}},{key:"updateAttr",value:function(t){var e=this;return function(n){return null==n||!1===n?e.img.removeAttribute(t):e.img.setAttribute(t,!0===n?"":n)}}},{key:"loadImageFallback",value:function(){this.el.hasAttribute("sizes")&&this.img.setAttribute("sizes",this.getAttribute("sizes")),this.el.hasAttribute("crossorigin")&&this.img.setAttribute("crossorigin",this.getAttribute("crossorigin")),this.el.hasAttribute("referrerpolicy")&&this.img.setAttribute("referrerpolicy",this.getAttribute("referrerpolicy")),this.srcset&&(this.img.srcset=this.srcset),this.src&&(this.img.src=this.src),null!=this.sizer.parentNode&&this.el.removeChild(this.sizer),null==this.img.parentNode&&this.el.appendChild(this.img),this.fireEvent("load")}},{key:"updateSizerStyle",value:function(t){var e=vn(t,3),n=e[0],r=e[1],o=e[2],i=n.contentRect.width;an?(this.sizer.attributeStyleMap.set("position","relative"),null!=r&&null!=o?r>=i?(this.sizer.attributeStyleMap.set("width",CSS.percent(100)),this.sizer.attributeStyleMap.set("padding-top",CSS.percent(o/r*100))):(this.sizer.attributeStyleMap.set("width",CSS.px(r)),this.sizer.attributeStyleMap.set("height",CSS.px(o))):(this.sizer.attributeStyleMap.set("width",CSS.percent(100)),this.sizer.attributeStyleMap.set("height",CSS.percent(100)))):(this.sizer.style.position="relative",null!=r&&null!=o?r>=i?(this.sizer.style.width="100%",this.sizer.style.paddingTop="".concat(o/r*100,"%")):(this.sizer.style.width="".concat(r,"px"),this.sizer.style.height="".concat(o,"px")):(this.sizer.style.width="100%",this.sizer.style.height="100%"))}},{key:"disconnectComponent",value:function(){wn(_n(n.prototype),"disconnectComponent",this).call(this),this.cache&&this.cache.forEach(function(t){URL.revokeObjectURL(t)})}},{key:"loadImage",value:function(){this.loadImage$.next(!0)}}])&&bn(r.prototype,o),i&&bn(r,i),n}()};function On(t){return(On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cn(t,e){return!e||"object"!==On(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function kn(t,e){return(kn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var An=new s([].concat(jn(k),jn(Sn))),Mn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Cn(this,Nn(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kn(t,e)}(e,A(xn(M))),n=e,o=[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}],(r=[{key:"getTemplate",value:function(){return null}}])&&Tn(n.prototype,r),o&&Tn(n,o),e}(),Pn=(n(5),navigator.userAgent.toLowerCase()),Rn=Pn.indexOf("safari")>0&&Pn.indexOf("chrome")<0,Ln=Pn.indexOf("mobile")>0,In=Rn&&Ln,Dn=Pn.indexOf("ucbrowser")>0,Fn=Pn.indexOf("firefox")>0,qn=Pn.indexOf("fxios")>0&&Pn.indexOf("safari")>0,Hn="attributeStyleMap"in Element.prototype&&"CSS"in window&&CSS.number;function Un(t){var e=!0;return t.forEach(function(t){var n=window.Modernizr[t];e=e&&n}),e}function zn(){for(;this.firstChild;)this.removeChild(this.firstChild)}function Bn(t,e,n){return et.create(function(r){var o=t.animate(e,n);return o.addEventListener("finish",function(t){return r.next(t),requestAnimationFrame(function(){return requestAnimationFrame(r.complete.bind(r))})}),function(){"finished"!==o.playState&&o.cancel()}})}function Wn(t){var e=document.getElementById(t);return e&&document.importNode(e.content,!0)}function Vn(t){return new et(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?ce(n):yt()).subscribe(e)})}Un(An)?window.customElements.define("hy-img",Mn):Array.prototype.forEach.call(document.getElementsByTagName("hy-img"),function(t){return t.innerHTML=t.children[0].innerText});var $n=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return R(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(ct),Xn=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<o&&(t=n.shift()));if(this.active=!1,e){for(;++r<o&&(t=n.shift());)t.unsubscribe();throw e}},e}(ht))($n);function Gn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new Yn(r,n))}}var Yn=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Kn(t,this.observables,this.project))},t}(),Kn=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.observables=n,o.project=r,o.toRespond=[];var i=n.length;o.values=new Array(i);for(var s=0;s<i;s++)o.toRespond.push(s);for(s=0;s<i;s++){var a=n[s];o.add(te(o,a,a,s))}return o}return R(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e;var i=this.toRespond;if(i.length>0){var s=i.indexOf(n);-1!==s&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Wt);var Jn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Zn(t),r=e.subscribe(n);return r.add(te(n,this.notifier)),r},t}(),Zn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return R(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,o){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(Wt),Qn=new ht(ct);var tr=function(){return function(t,e){this.value=t,this.timestamp=e}}();function er(){return function(t){return t.lift(new nr)}}var nr=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new rr(t))},t}(),rr=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return R(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(K);function or(t){return function(e){return e.lift(new ir(t))}}var ir=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new sr(t,this.total))},t}(),sr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return R(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(K);function ar(t,e,n,r,o){return et.create(function(i){var s,a=requestAnimationFrame(function u(c){var l=c-(s=s||c);l<r?(i.next(t(l,e,n,r,o)),a=requestAnimationFrame(u)):(i.next(t(r,e,n,r,o)),a=requestAnimationFrame(function(){return i.complete()}))});return function(){a&&cancelAnimationFrame(a)}})}function ur(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e}function cr(t){return hr(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||fr()}function lr(t,e){return hr(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||fr()}function fr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function hr(t){if(Array.isArray(t))return t}var pr=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(e){return 0===n.length?e.pipe(Gn(t),Je(function(t){return lr(t,2)[1]}),ie(function(t){return lr(t,1)[0]})):e.pipe(Gn.apply(void 0,[t].concat(n)),Je(function(t){return cr(t).slice(1).every(function(t){return t})}),ie(function(t){return lr(t,1)[0]}))}};function dr(t){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function mr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vr(t,e){return!e||"object"!==dr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function br(t){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function gr(t,e){return(gr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var wr=Math.min.bind(Math),_r=Math.max.bind(Math),Er=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),vr(this,br(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gr(t,e)}(n,t),r=n,(o=[{key:"calcIsInRange",value:function(t,e){switch(this.align){case"left":var n=this.range[0],r=this.range[1];return t>n&&(e||t<r);case"right":var o=window.innerWidth-this.range[0],i=window.innerWidth-this.range[1];return t<o&&(e||t>i);default:throw Error()}}},{key:"calcIsSwipe",value:function(t){var e=yr(t,4),n=e[0].clientX,r=e[1].clientX,o=e[2],i=e[3];return n!==r||o>0&&o<i}},{key:"calcWillOpen",value:function(t){var e=yr(t,5),n=e[2],r=e[3],o=e[4];switch(this.align){case"left":return o>.15||!(o<-.15)&&n>=r/2;case"right":return-o>.15||!(-o<-.15)&&n<=-r/2;default:throw Error()}}},{key:"calcTranslateX",value:function(t,e,n,r){switch(this.align){case"left":return _r(0,wr(r,n+(t-e)));case"right":return wr(0,_r(-r,n+(t-e)));default:throw Error()}}}])&&mr(r.prototype,o),i&&mr(r,i),n}()};function Sr(t){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Or(t,e){return!e||"object"!==Sr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tr(t){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Cr(t,e){return(Cr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Nr="attributeStyleMap"in Element.prototype&&"CSS"in window&&CSS.number,kr=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Or(this,Tr(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cr(t,e)}(n,t),r=n,(o=[{key:"histId",value:function(){return this.el.id||this.constructor.componentName}},{key:"prepareInteraction",value:function(){Nr?(this.contentEl.attributeStyleMap.set("will-change","transform"),this.scrimEl.attributeStyleMap.set("will-change","opacity")):(this.contentEl.style.willChange="transform",this.scrimEl.style.willChange="opacity"),this.fireEvent("prepare")}},{key:"cleanupInteraction",value:function(t){Nr?(this.contentEl.attributeStyleMap.delete("will-change"),this.scrimEl.attributeStyleMap.delete("will-change"),t?this.scrimEl.attributeStyleMap.set("pointer-events",new CSSKeywordValue("all")):this.scrimEl.attributeStyleMap.delete("pointer-events")):(this.scrimEl.style.willChange="",this.contentEl.style.willChange="",this.scrimEl.style.pointerEvents=t?"all":""),this.fireEvent("transitioned",{detail:t})}},{key:"updateDOM",value:function(t,e){this.translateX=t;var n="left"===this.align?1:-1,r=this.opacity=t/e*n;this.moveCallback&&this.moveCallback({translateX:t,opacity:r}),Nr?(this.contentEl.attributeStyleMap.set("transform",new CSSTransformValue([new CSSTranslate(CSS.px(t),CSS.px(0))])),this.scrimEl.attributeStyleMap.set("opacity",this.opacity)):(this.contentEl.style.transform="translateX(".concat(t,"px)"),this.scrimEl.style.opacity=this.opacity)}}])&&xr(r.prototype,o),i&&xr(r,i),n}()};function jr(t){return function(e){return e.lift(new Ar(t))}}var Ar=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Mr(t,this.value))},t}(),Mr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return R(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(K);function Pr(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Pr.prototype=Object.create(Error.prototype);var Rr=Pr;function Lr(t){return function(e){return 0===t?yt():e.lift(new Ir(t))}}var Ir=function(){function t(t){if(this.total=t,this.total<0)throw new Rr}return t.prototype.call=function(t,e){return e.subscribe(new Dr(t,this.total))},t}(),Dr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return R(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(K);var Fr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new qr(t,this.notifier,e))},t}(),qr=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.notifier=n,o.source=r,o.sourceIsBeingSubscribedTo=!0,o}return R(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new at;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=te(this,e)},e}(Wt);var Hr=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new Ur(t,this.predicate))},t}(),Ur=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return R(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(K);function zr(t){return(zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Br(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vr(t,e){return!e||"object"!==zr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $r(t){return($r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xr(t,e){return(Xr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Gr=Math.abs.bind(Math),Yr=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Vr(this,$r(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xr(t,e)}(n,t),r=n,(o=[{key:"getStartObservable",value:function(){return ne(this.subjects.document,this.subjects.touchEvents,this.subjects.mouseEvents).pipe(qe(function(t){var e=Br(t,3),n=e[0],r=e[1],o=e[2];return ye(r?ve(n,"touchstart",{passive:!0}).pipe(Je(function(t){return 1===t.touches.length}),ie(function(t){return t.touches[0]})):me,o?ve(n,"mousedown").pipe(rn(function(t){return t.event=t,t})):me)}))}},{key:"getMoveObservable",value:function(t,e){return ne(this.subjects.document,this.subjects.touchEvents,this.subjects.mouseEvents,this.subjects.preventDefault).pipe(qe(function(n){var r,o=Br(n,4),i=o[0],s=o[1],a=o[2],u=o[3],c=s?ve(i,"touchmove",{passive:!u}).pipe(ie(function(t){return t.touches[0].event=t,t.touches[0]})):me,l=a?ve(i,"mousemove",{passive:!u}).pipe((r=ye(t.pipe(jr(!0)),e.pipe(jr(!1))),function(t){return r.pipe(qe(function(e){return e?t:me}))}),rn(function(t){return t.event=t,t})):me;return ye(c,l)}))}},{key:"getEndObservable",value:function(){return ne(this.subjects.document,this.subjects.touchEvents,this.subjects.mouseEvents).pipe(qe(function(t){var e=Br(t,3),n=e[0],r=e[1],o=e[2];return ye(r?ve(n,"touchend",{passive:!0}).pipe(Je(function(t){return 0===t.touches.length}),ie(function(t){return t.changedTouches[0]})):me,o?ve(n,"mouseup",{passive:!0}):me)}))}},{key:"getIsSlidingObservable",value:function(t,e,n){return this.getIsSlidingObservable2(t,e).pipe(Lr(1),Le(void 0),(r=function(){return n},function(t){return t.lift(new Fr(r))}));var r}},{key:"getIsSlidingObservable2",value:function(t,e){var n,r=this;return this.threshold?t.pipe(Gn(e),(n=function(t){var e=Br(t,2),n=e[0],o=n.clientX,i=n.clientY,s=e[1],a=s.clientX,u=s.clientY;return Gr(u-i)<r.threshold&&Gr(a-o)<r.threshold},function(t){return t.lift(new Hr(n))}),ie(function(t){var e=Br(t,2),n=e[0],r=n.clientX,o=n.clientY,i=e[1],s=i.clientX,a=i.clientY;return Gr(s-r)>=Gr(a-o)})):t.pipe(Gn(e),ie(function(t){var e=Br(t,2),n=e[0],o=n.clientX,i=n.clientY,s=n.event,a=e[1],u=a.clientX,c=a.clientY,l=Gr(u-o)>=Gr(c-i);return r.preventDefault&&l&&s.preventDefault(),l}))}}])&&Wr(r.prototype,o),i&&Wr(r,i),n}()};function Kr(t){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qr(t,e){return!e||"object"!==Kr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function to(t){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function eo(t,e){return(eo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var no=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Qr(this,to(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eo(t,e)}(n,Yr(kr(Er(t)))),r=n,(o=[{key:"setupObservables",value:function(){var t=this,e={contentRect:this.contentEl.getBoundingClientRect()},n=("ResizeObserver"in window?It(ResizeObserver)(this.contentEl).pipe(Le(e)):_t(e)).pipe(Ie(this.subjects.disconnect),ie(function(t){return t.contentRect.width}),Ke(),Le(e.contentRect.width));this._peek$&&(n=ne(n,this._peek$).pipe(ie(function(t){var e=Jr(t,2);return e[0]-e[1]})));var r,o=this.subjects.persistent.pipe(ie(function(t){return!t})),i=this.getStartObservable().pipe(Ie(this.subjects.disconnect),pr(o),Ke()),s=Vn(function(){return t.translateX$.pipe(ie(function(t){return 0!=t}))}),a=i.pipe(Gn(s),ie(function(e){var n=Jr(e,2),r=n[0].clientX,o=n[1];return t.calcIsInRange(r,o)}),rn(function(e){e&&(t.mouseEvents&&t.contentEl.classList.add("hy-drawer-grabbing"),t.prepareInteraction())}),Ke()),u=this.getEndObservable().pipe(Ie(this.subjects.disconnect),pr(o,a),Ke()),c=this.getMoveObservable(i,u).pipe(Ie(this.subjects.disconnect),pr(o,a),Ke()),l=this.getIsSlidingObservable(c,i,u).pipe(rn(function(e){e&&t.fireEvent("slidestart",{detail:t.opened})}));this.translateX$=Vn(function(){return ye(t.tween$,c.pipe(pr(l),rn(function(e){var n=e.event;return t.preventDefault&&n.preventDefault()}),Gn(i,t.startTranslateX$,n),(e=Xn,void 0===r&&(r=0),function(t){return t.lift(new xt(e,r))}),ie(function(e){var n=Jr(e,4),r=n[0].clientX,o=n[1].clientX,i=n[2],s=n[3];return t.calcTranslateX(r,o,i,s)})),ne(t.subjects.opened,t.subjects.align,n).pipe(rn(function(e){var n=Jr(e,1)[0];return t.cleanupInteraction(n)}),ie(function(t){var e=Jr(t,3),n=e[0],r=e[1],o=e[2];return n?o*("left"===r?1:-1):0})));var e,r}).pipe(Ie(this.subjects.disconnect),Ke()),this.startTranslateX$=this.translateX$.pipe((r=i,function(t){return t.lift(new Jn(r))}));var f,h=this.translateX$.pipe((void 0===f&&(f=Qn),ie(function(t){return new tr(t,f.now())})),er(),Je(function(t){var e=Jr(t,2),n=e[0].timestamp;return e[1].timestamp-n>0}),ie(function(t){var e=Jr(t,2),n=e[0],r=n.value,o=n.timestamp,i=e[1];return(i.value-r)/(i.timestamp-o)}),Le(0)),p=ye(u.pipe(rn(function(){return t.contentEl.classList.remove("hy-drawer-grabbing")}),Gn(i,this.translateX$,n,h),Je(this.calcIsSwipe.bind(this)),ie(this.calcWillOpen.bind(this)),rn(function(e){return t.fireEvent("slideend",{detail:e})})),this.animateTo$.pipe(rn(this.prepareInteraction.bind(this))));this.tween$=p.pipe(rn(function(e){return t.setInternalState("opened",e)}),Gn(this.translateX$,n),qe(function(e){var n=Jr(e,3),r=n[0],o=n[1],s=n[2],a="left"===t.align?1:-1;return ar(ur,o,(r?s*a:0)-o,200+.15*s).pipe(rn({complete:function(){return t.subjects.opened.next(r)}}),Ie(i),Ie(t.subjects.align.pipe(or(1))),Ke())})),this.translateX$.pipe(Gn(n)).subscribe(function(e){var n=Jr(e,2),r=n[0],o=n[1];return t.updateDOM(r,o)}),ve(this.scrimEl,"click").pipe(Ie(this.subjects.disconnect)).subscribe(function(){return t.close()}),o.pipe(Ie(this.subjects.disconnect)).subscribe(function(e){t.scrimEl.style.display=e?"block":"none"}),this.subjects.align.pipe(Ie(this.subjects.disconnect)).subscribe(function(e){t.contentEl.classList.remove("hy-drawer-left"),t.contentEl.classList.remove("hy-drawer-right"),t.contentEl.classList.add("hy-drawer-".concat(e))}),this.subjects.mouseEvents.pipe(Ie(this.subjects.disconnect),qe(function(e){return e?t.contentEl.classList.add("hy-drawer-grab"):t.contentEl.classList.remove("hy-drawer-grab"),e?i.pipe(Gn(a)):me})).subscribe(function(t){var e=Jr(t,2),n=e[0].event;return e[1]&&n&&n.preventDefault()}),this.fireEvent("init",{detail:this.opened})}}])&&Zr(r.prototype,o),i&&Zr(r,i),n}()};function ro(t){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function io(t,e){return!e||"object"!==ro(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function so(t,e,n){return(so="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ao(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ao(t){return(ao=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function uo(t,e){return(uo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var co=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(y),["eventlistener","queryselector","requestanimationframe","classlist","opacity","csstransforms","csspointerevents"])),lo=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),io(this,ao(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&uo(t,e)}(n,no(Lt(w(t)))),r=n,i=[{key:"componentName",get:function(){return"hy-drawer"}},{key:"types",get:function(){return{opened:qt,align:Ut(["left","right"]),persistent:qt,range:Ft(Ht),threshold:Ht,preventDefault:qt,touchEvents:qt,mouseEvents:qt}}},{key:"defaults",get:function(){return{opened:!1,align:"left",persistent:!1,range:[0,100],threshold:10,preventDefault:!1,touchEvents:!1,mouseEvents:!1}}}],(o=[{key:"setupComponent",value:function(t,e){so(ao(n.prototype),"setupComponent",this).call(this,t,e),this.animateTo$=new at,this.scrimEl=this.sroot.querySelector(".hy-drawer-scrim"),this.contentEl=this.sroot.querySelector(".hy-drawer-content"),this.contentEl.classList.add("hy-drawer-".concat(this.align))}},{key:"connectComponent",value:function(){this.setupObservables(),so(ao(n.prototype),"connectComponent",this).call(this)}},{key:"open",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.animateTo$.next(!0):this.opened=!0}},{key:"close",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.animateTo$.next(!1):this.opened=!1}},{key:"toggle",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.animateTo$.next(!this.opened):this.opened=!this.opened}}])&&oo(r.prototype,o),i&&oo(r,i),n}()};function fo(t){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ho(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function po(t,e){return!e||"object"!==fo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yo(t){return(yo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function mo(t,e){return(mo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vo(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var bo=new s([].concat(vo(k),vo(co))),go=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),po(this,yo(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mo(t,e)}(e,A(lo(M))),n=e,o=[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}],(r=[{key:"getTemplate",value:function(){return t='<div class="hy-drawer-scrim"></div> <div class="hy-drawer-content"> <slot></slot> </div> <style> @media screen { .hy-drawer-scrim { position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; opacity: 0; pointer-events: none; transform: translateX(0); -webkit-tap-highlight-color: transparent; @apply --hy-drawer-scrim-container; background: rgba(0, 0, 0, 0.5); background: var(--hy-drawer-scrim-background, rgba(0, 0, 0, 0.5)); z-index: 20; z-index: var(--hy-drawer-scrim-z-index, 20); } .hy-drawer-content { position: fixed; top: 0; height: 100vh; overflow-x: hidden; overflow-y: auto; transform: translateX(0); contain: strict; -webkit-overflow-scrolling: touch; @apply --hy-drawer-content-container; width: 300px; width: var(--hy-drawer-width, 300px); background: #e8e8e8; background: var(--hy-drawer-background, #e8e8e8); box-shadow: 0 0 15px rgba(0, 0, 0, 0.25); box-shadow: var(--hy-drawer-box-shadow, 0 0 15px rgba(0, 0, 0, 0.25)); z-index: 30; z-index: var(--hy-drawer-z-index, 30); } .hy-drawer-content.hy-drawer-left { left: -300px; left: calc( -1 * var(--hy-drawer-slide-width, var(--hy-drawer-width, 300px))); } .hy-drawer-content.hy-drawer-right { right: -300px; right: calc( -1 * var(--hy-drawer-slide-width, var(--hy-drawer-width, 300px))); } .hy-drawer-grab { cursor: move; cursor: -webkit-grab; cursor: -moz-grab; cursor: grab; } .hy-drawer-grabbing { cursor: -webkit-grabbing; cursor: -moz-grabbing; cursor: grabbing; } } @media print { .hy-drawer-scrim { display: none !important; } .hy-drawer-content { transform: none !important; } } </style>',document.createRange().createContextualFragment(t);var t}}])&&ho(n.prototype,r),o&&ho(n,o),e}();function wo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var _o=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(bo),["cssremunit","classlist","eventlistener","matchmedia"])),Eo="(min-width: 64em)",So="(min-width: 1666px)",xo=21,Oo=28,To=1,Co=2,No=3;function ko(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function jo(){return xo*ko()}function Ao(){return document.body.clientWidth/2-Oo*ko()}var Mo=function(t){return function(e){return t.pipe(qe(function(t){return t?e:me}))}};window._noDrawer||!Un(_o)||Dn||requestIdleCallback(function(){var t=document.getElementsByTagName("hy-drawer")[0],e=document.getElementById("_menu"),n=document.getElementById("_sidebar"),o=document.querySelector(".sidebar-sticky");function i(){var i=It(r.a)(t).pipe(ie(function(){return window.matchMedia(So).matches?No:window.matchMedia(Eo).matches?Co:To}),Ke(),Le(window.matchMedia(So).matches?No:window.matchMedia(Eo).matches?Co:To)),a=i.pipe(ie(function(t){return t>=No?Ao():jo()})),u=a.pipe(Gn(i),ie(function(t){var e=wo(t,2),n=e[0];return e[1]>=Co?document.body.clientWidth/2-n/2:document.body.clientWidth/2})),c=a.pipe(Gn(i),ie(function(t){var e=wo(t,2),n=e[0];return e[1]>=Co?[0,n]:In&&!navigator.standalone?[35,150]:[0,150]}));et.create(function(e){return t.moveCallback=function(t){return e.next(t)}}).pipe(Gn(u,i)).subscribe(function(t){var e=wo(t,3),n=e[0].opacity,r=e[1];return s(e[2]>=Co,r,n)}),t.addEventListener("hy-drawer-prepare",function(){Hn?(n.attributeStyleMap.set("will-change","transform"),o.attributeStyleMap.set("will-change","opacity")):(n.style.willChange="transform",o.style.willChange="opacity")}),t.addEventListener("hy-drawer-transitioned",function(){Hn?(n.attributeStyleMap.delete("will-change"),o.attributeStyleMap.delete("will-change")):(n.style.willChange="",o.style.willChange="")}),e.addEventListener("click",function(t){In&&t.preventDefault(),window._drawer.toggle()});var l=ve(t,"hy-drawer-transitioned").pipe(ie(function(t){return t.detail}),tn(),rn(function(t){return!t&&void((e=document.getElementById("_swipe"))&&e.parentNode.removeChild(e));var e}));ve(window,"popstate",{passive:!0}).pipe(Mo(l)).subscribe(function(){return window._drawer.close()});var f=window.pageYOffset||document.body.scrollTop,h=t.classList.contains("cover")&&f<=0;t._peek$=i.pipe(ie(function(t){switch(t){case No:return Ao();case Co:return jo();case To:return.5*ko()}}));var p=h?null:t.getBoundingClientRect().height;t.addEventListener("hy-drawer-init",function(){!function(){var t=document.getElementById("_hrefSwipeSVG");if(t){var e=document.createElement("img");e.id="_swipe",e.src=t.href,e.alt="Swipe image",e.addEventListener("click",function(){return window._drawer.close()}),document.getElementById("_sidebar").appendChild(e)}}(),t.classList.add("loaded"),p&&f>=p&&window.scrollTo(0,f-p)},{once:!0}),u.pipe(Gn(i),or(1)).subscribe(function(e){var n=wo(e,2),r=n[0];return s(n[1]>=Co,r,void 0!==t.opacity?t.opacity:h?1:0)}),window._drawer=function(t,e){return e&&t.setAttribute("opened",""),Rn&&t.setAttribute("threshold",0),Ln||t.setAttribute("mouse-events",""),Fn&&t.removeAttribute("prevent-default"),window.customElements.define("hy-drawer",go),t}(t,h),c.subscribe(function(e){return t.range=e})}function s(t,e,r){var i=1-r;if(Hn){var s=new CSSTransformValue([new CSSTranslate(CSS.px(e*i),CSS.px(0))]);n.attributeStyleMap.set("transform",s),o.attributeStyleMap.set("opacity",t?1:r)}else n.style.transform="translateX(".concat(e*i,"px)"),o.style.opacity=t?1:r}!function e(){getComputedStyle(t).getPropertyValue("--hy-drawer-width")?i():setTimeout(e,300)}()});n(60);var Po=window.URL;if(!(Po&&Po.prototype&&"href"in Po.prototype)){(Po=function(t,e){if(!t)throw new TypeError("Invalid argument");var n=document.implementation.createHTMLDocument("");if(e){var r=n.createElement("base");r.href=e,n.head.appendChild(r)}var o=n.createElement("a");if(o.href=t,n.body.appendChild(o),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o})}).prototype={toString:function(){return this.href},get href(){return this._anchorElement.href},set href(t){this._anchorElement.href=t},get protocol(){return this._anchorElement.protocol},set protocol(t){this._anchorElement.protocol=t},get host(){return this._anchorElement.host},set host(t){this._anchorElement.host=t},get hostname(){return this._anchorElement.hostname},set hostname(t){this._anchorElement.hostname=t},get port(){return this._anchorElement.port},set port(t){this._anchorElement.port=t},get pathname(){return this._anchorElement.pathname},set pathname(t){this._anchorElement.pathname=t},get search(){return this._anchorElement.search},set search(t){this._anchorElement.search=t},get hash(){return this._anchorElement.hash},set hash(t){this._anchorElement.hash=t}};var Ro=window.URL||window.webkitURL||window.mozURL;Po.createObjectURL=function(t){return Ro.createObjectURL.apply(Ro,arguments)},Po.revokeObjectURL=function(t){return Ro.revokeObjectURL.apply(Ro,arguments)},Object.defineProperty(Po.prototype,"toString",{enumerable:!1})}var Lo=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector;function Io(t){var e=t.protocol,n=t.host,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return e!==r.protocol||n!==r.host}function Do(){return window.pageYOffset||document.body.scrollTop}var Fo="push";function qo(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function Ho(t,e){return function(n){return[Je(t,e)(n),Je(qo(t,e))(n)]}}function Uo(t){return function(e){var n=new zo(t),r=e.lift(n);return n.caught=r}}var zo=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Bo(t,this.selector,this.caught))},t}(),Bo=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return R(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new Vt(this,void 0,void 0);this.add(r),te(this,n,void 0,void 0,r)}},e}(Wt);function Wo(t){return(Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function $o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xo(t,e){return!e||"object"!==Wo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Go(t){return(Go=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Yo(t,e){return(Yo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ko=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Xo(this,Go(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yo(t,e)}(n,t),r=n,(o=[{key:"histId",value:function(){return this.el.id||this.constructor.componentName}},{key:"shouldLoadAnchor",value:function(t,e){return t&&""===t.target&&(!e||-1!==t.href.search(e))}},{key:"isPushEvent",value:function(t){var e=t.url,n=t.anchor,r=t.event,o=r.metaKey,i=r.ctrlKey;return!o&&!i&&this.shouldLoadAnchor(n,this.hrefRegex)&&!Io(e,this)}},{key:"isHintEvent",value:function(t){var e=t.url,n=t.anchor;return this.shouldLoadAnchor(n,this.hrefRegex)&&!Io(e,this)&&!function(t){var e=t.hash,n=t.origin,r=t.pathname,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return""!==e&&n===o.origin&&r===o.pathname}(e,this)}},{key:"isHashChange",value:function(t){var e=Vo(t,2),n=e[0].url.pathname,r=e[1],o=r.url,i=o.pathname,s=o.hash,a=r.type;return i===n&&("pop"===a||a===Fo&&""!==s)}}])&&$o(r.prototype,o),i&&$o(r,i),n}()};function Jo(t){return(Jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qo(t,e){return!e||"object"!==Jo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ti(t){return(ti=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ei(t,e){return(ei=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ni=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Qo(this,ti(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ei(t,e)}(n,t),r=n,(o=[{key:"assignScrollPosition",value:function(t){var e,n,r,o,i,s,a=this.histId();return Object.assign(t,(e={},n=a,r=Object.assign(t[a]||{},{scrollTop:Do(),scrollHeight:(o=document.documentElement,i=document.body,s="scrollHeight",o[s]||i[s])}),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e))}},{key:"manageScrollPostion",value:function(t){var e=t.type,n=t.url.hash;switch(e){case Fo:this.scrollHashIntoView(n,{behavior:"smooth",block:"start",inline:"nearest"});break;case"pop":this.restoreScrollPostion();break;case INIT:break;default:0}}},{key:"scrollHashIntoView",value:function(t,e){if(t){var n=document.getElementById(decodeURIComponent(t.substr(1)));n&&n.scrollIntoView(e)}else window.scroll(window.pageXOffset,0)}},{key:"restoreScrollPostion",value:function(){var t=this.histId(),e=window.history.state&&window.history.state[t]||{},n=e.scrollTop;e.scrollHeight;null!=n&&window.scroll(window.pageXOffset,n)}},{key:"restoreScrollPostionOnReload",value:function(){0!=Do()||this.restoreScrollPostion()}}])&&Zo(r.prototype,o),i&&Zo(r,i),n}()};function ri(t){return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ii(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function si(t,e){return!e||"object"!==ri(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ai(t){return(ai=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ui(t,e){return(ui=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ci=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),si(this,ai(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ui(t,e)}(n,ni(t)),r=n,(o=[{key:"updateHistoryState",value:function(t){var e=t.type,n=t.replace,r=t.url.href;if(!Io(this))switch(e){case"init":case Fo:var o=this.histId(),i=n||r===window.location.href?"replaceState":"pushState",s=Object.assign(window.history.state||{},oi({},o,{}));window.history[i](s,document.title,r);case"pop":break;default:0}}},{key:"updateHistoryStateHash",value:function(t){var e=t.type,n=t.url;if(!Io(this)&&e===Fo){var r=this.histId();window.history.pushState(oi({},r,{}),document.title,n)}}},{key:"updateHistoryTitle",value:function(t){var e=t.type,n=t.title;document.title=n,Io(this)||e!==Fo||window.history.replaceState(window.history.state,n,window.location)}},{key:"saveScrollPosition",value:function(){if(!Io(this)){var t=this.assignScrollPosition(window.history.state||{});window.history.replaceState(t,document.title,window.location)}}}])&&ii(r.prototype,o),i&&ii(r,i),n}()};function li(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),gt(t,void 0).lift(new fi(n))}var fi=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new hi(t,this.resultSelector))},t}(),hi=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var o=t.call(this,e)||this;return o.iterators=[],o.active=0,o.resultSelector="function"==typeof n?n:null,o.values=r,o}return R(e,t),e.prototype._next=function(t){var e=this.iterators;H(t)?e.push(new di(t)):"function"==typeof t[Gt]?e.push(new pi(t[Gt]())):e.push(new yi(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];if(r.stillUnsubscribed)this.destination.add(r.subscribe(r,n));else this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return}var o=!1,i=[];for(r=0;r<e;r++){var s,a=(s=t[r]).next();if(s.hasCompleted()&&(o=!0),a.done)return void n.complete();i.push(a.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),o&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(K),pi=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),di=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Gt]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),yi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.parent=n,o.observable=r,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return R(e,t),e.prototype[Gt]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return te(this,this.observable,this,e)},e}(Wt);function mi(t){return(mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gi(t,e){return!e||"object"!==mi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wi(t){return(wi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _i(t,e){return(_i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ei=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),gi(this,wi(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_i(t,e)}(n,t),r=n,(o=[{key:"makeRequest",value:function(t){var e=this;return Pe({method:"GET",responseType:"text",url:t.url,crossDomain:Io(this),headers:{Accept:"text/html"}}).pipe(ie(function(e){var n=e.response;return Object.assign(t,{response:n})}),Uo(function(n){return e.recoverIfResponse(t,n)}))}},{key:"recoverIfResponse",value:function(t,e){var n=e.status,r=e.xhr;return r&&r.response&&n>400&&n<598?_t(Object.assign(t,{response:r.response})):_t(Object.assign(t,{error:e}))}},{key:"getFetch$",value:function(t,e,n){return t.url.href===e.url.href&&null==e.error?_t(e):n.pipe(Lr(1))}},{key:"getResponse",value:function(t,e){var n=vi(e,2),r=n[0],o=n[1];return li(this.getFetch$(r,o,t).pipe(ie(function(t){return Object.assign(t,r)})),this.animPromise,function(t){return t})}}])&&bi(r.prototype,o),i&&bi(r,i),n}()};function Si(t){return(Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Oi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ti(t,e){return!e||"object"!==Si(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ci(t){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ni(t,e){return(Ni=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ki=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Ti(this,Ci(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ni(t,e)}(n,t),r=n,(o=[{key:"tempRemoveScriptTags",value:function(t){var e=this,n=[];return t.forEach(function(t){return Array.from(t.querySelectorAll(e.scriptSelector)).forEach(function(t){var e=[t,t.previousSibling];t.parentNode.removeChild(t),n.push(e)})}),n}},{key:"insertScript",value:function(t){var e=xi(t,2),n=e[0],r=e[1],o=document.write;return document.write=function(){for(var t=document.createElement("div"),e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t.innerHTML=n.join(),Array.from(t.childNodes).forEach(function(t){r.parentNode.insertBefore(t,r.nextSibling)})},""!==n.src?et.create(function(t){n.addEventListener("load",function(e){document.write=o,t.complete(e)}),n.addEventListener("error",function(e){document.write=o,t.error(e)}),r.parentNode.insertBefore(n,r.nextSibling)}):_t({}).pipe(rn(function(){r.parentNode.insertBefore(n,r.nextSibling),document.write=o}))}},{key:"reinsertScriptTags",value:function(t){return this.scriptSelector?ce(t.scripts).pipe((e=this.insertScript.bind(this),le(e,n,1)),Uo(function(e){throw Object.assign(t,{error:e})})).toPromise().then(function(){return t}):_t(t);var e,n}}])&&Oi(r.prototype,o),i&&Oi(r,i),n}()};function ji(t){return(ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ai(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Mi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pi(t,e){return!e||"object"!==ji(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ri(t){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Li(t,e){return(Li=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ii=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Pi(this,Ri(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Li(t,e)}(n,ki(t)),r=n,(o=[{key:"getTitle",value:function(t){return(t.querySelector("title")||{}).textContent}},{key:"getReplaceElements",value:function(t){if(this.replaceIds.length>0)return this.replaceIds.map(function(e){return t.getElementById(e)});if(this.el.id)return[t.getElementById(this.el.id)];var e=Array.from(document.getElementsByTagName(this.el.tagName)).indexOf(this.el);return[t.querySelectorAll(this.el.tagName)[e]]}},{key:"responseToContent",value:function(t){var e,n=t.response,r=(e=n,document.createRange().createContextualFragment(e)),o=this.getTitle(r),i=this.getReplaceElements(r);if(i.some(function(t){return null==t}))throw Object.assign(t,{replaceElMissing:!0});var s=this.scriptSelector?this.tempRemoveScriptTags(i):[];return Object.assign(t,{documentFragment:r,title:o,replaceEls:i,scripts:s})}},{key:"replaceContentByIds",value:function(t){this.replaceIds.map(function(t){return document.getElementById(t)}).forEach(function(e,n){return e.parentNode.replaceChild(t[n],e)})}},{key:"replaceContentWholesale",value:function(t){var e=Ai(t,1)[0];this.el.innerHTML=e.innerHTML}},{key:"replaceContent",value:function(t){this.replaceIds.length>0?this.replaceContentByIds(t):this.replaceContentWholesale(t)}},{key:"updateDOM",value:function(t){try{var e=t.replaceEls;this.updateHistoryTitle(t),Io(this)&&this.rewriteURLs(e),this.replaceContent(e)}catch(e){throw Object.assign(t,{error:e})}}},{key:"rewriteURLs",value:function(t){var e=this;t.forEach(function(t){t.querySelectorAll("[href]").forEach(e.rewriteURL("href")),t.querySelectorAll("[src]").forEach(e.rewriteURL("src")),t.querySelectorAll("img[srcset]").forEach(e.rewriteURLSrcSet("srcset")),t.querySelectorAll("blockquote[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("del[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("ins[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("q[cite]").forEach(e.rewriteURL("cite")),t.querySelectorAll("img[longdesc]").forEach(e.rewriteURL("longdesc")),t.querySelectorAll("frame[longdesc]").forEach(e.rewriteURL("longdesc")),t.querySelectorAll("iframe[longdesc]").forEach(e.rewriteURL("longdesc")),t.querySelectorAll("img[usemap]").forEach(e.rewriteURL("usemap")),t.querySelectorAll("input[usemap]").forEach(e.rewriteURL("usemap")),t.querySelectorAll("object[usemap]").forEach(e.rewriteURL("usemap")),t.querySelectorAll("form[action]").forEach(e.rewriteURL("action")),t.querySelectorAll("button[formaction]").forEach(e.rewriteURL("formaction")),t.querySelectorAll("input[formaction]").forEach(e.rewriteURL("formaction")),t.querySelectorAll("video[poster]").forEach(e.rewriteURL("poster")),t.querySelectorAll("object[data]").forEach(e.rewriteURL("data")),t.querySelectorAll("object[codebase]").forEach(e.rewriteURL("codebase")),t.querySelectorAll("object[archive]").forEach(e.rewriteURLList("archive"))})}},{key:"rewriteURL",value:function(t){var e=this;return function(n){try{n.setAttribute(t,new URL(n.getAttribute(t),e.href).href)}catch(t){0}}}},{key:"rewriteURLSrcSet",value:function(t){var e=this;return function(n){try{n.setAttribute(t,n.getAttribute(t).split(/\s*,\s*/).map(function(t){var n=t.split(/\s+/);return n[0]=new URL(n[0],e.href).href,n.join(" ")}).join(", "))}catch(t){0}}}},{key:"rewriteURLList",value:function(t){var e=this;return function(n){try{n.setAttribute(t,n.getAttribute(t).split(/[\s,]+/).map(function(t){return new URL(t,e.href).href}).join(", "))}catch(t){0}}}}])&&Mi(r.prototype,o),i&&Mi(r,i),n}()};function Di(t){return!H(t)&&t-parseFloat(t)+1>=0}function Fi(t,e,n){void 0===t&&(t=0);var r=-1;return Di(e)?r=Number(e)<1?1:Number(e):mt(e)&&(n=e),mt(n)||(n=Qn),new et(function(e){var o=Di(t)?t:+t-n.now();return n.schedule(qi,o,{index:0,period:r,subscriber:e})})}function qi(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function Hi(t){return(Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ui(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zi(t,e){return!e||"object"!==Hi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bi(t){return(Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Wi(t,e){return(Wi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Vi=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),zi(this,Bi(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wi(t,e)}(n,t),r=n,(o=[{key:"onStart",value:function(t){var e=this;this.animPromise=Fi(this.duration);this.fireEvent("start",{detail:Object.assign(t,{transitionUntil:function(t){e.animPromise=t}})})}},{key:"onDOMError",value:function(t){var e=t.replaceElMissing,n=t.url;e?(window.history.back(),setTimeout(function(){document.location.href=n},100)):this.fireEvent("error",{detail:t})}},{key:"onNetworkError",value:function(t){this.fireEvent("networkerror",{detail:t})}},{key:"onError",value:function(t){this.fireEvent("error",{detail:t})}},{key:"onReady",value:function(t){this.fireEvent("ready",{detail:t})}},{key:"onAfter",value:function(t){this.fireEvent("after",{detail:t})}},{key:"onProgress",value:function(t){this.fireEvent("progress",{detail:t})}},{key:"onLoad",value:function(t){this.fireEvent("load",{detail:t})}}])&&Ui(r.prototype,o),i&&Ui(r,i),n}()};function $i(t){return($i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gi(t,e){return!e||"object"!==$i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yi(t){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ki(t,e){return(Ki=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ji=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Gi(this,Yi(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ki(t,e)}(n,t),r=n,(o=[{key:"setupEventListeners",value:function(){var t=this;if("MutationObserver"in window&&"WeakSet"in window){var e=new WeakSet,n=this.pushSubject.next.bind(this.pushSubject),r=this.hintSubject.next.bind(this.hintSubject),o=function(t){e.has(t)||(e.add(t),t.addEventListener("click",n),t.addEventListener("mouseenter",r,{passive:!0}),t.addEventListener("touchstart",r,{passive:!0}),t.addEventListener("focus",r,{passive:!0}))},i=function(e){e instanceof Element&&(Lo.call(e,t.linkSelector)?o(e):Array.from(e.querySelectorAll(t.linkSelector)).forEach(o))},s=function(t){e.delete(t),t.removeEventListener("click",n),t.removeEventListener("mouseenter",r,{passive:!0}),t.removeEventListener("touchstart",r,{passive:!0}),t.removeEventListener("focus",r,{passive:!0})};It(MutationObserver)(this.el,{},{childList:!0,subtree:!0}).subscribe(function(e){var n=e.addedNodes,r=e.removedNodes;Array.from(r).forEach(function(e){e instanceof Element&&(Lo.call(e,t.linkSelector)?s(e):Array.from(e.querySelectorAll(t.linkSelector)).forEach(s))}.bind(t)),Array.from(n).forEach(i.bind(t))}),this.subjects.linkSelector.subscribe(function(){Array.from(e).forEach(s),i.call(t,t.el)})}else this.el.addEventListener("click",function(e){var n=function(t){for(var e=this;e!==document&&e!==document.documentElement;){if(Lo.call(e,t))return e;e=e.parentNode}return null}.call(e.target,t.linkSelector);n&&n.href&&(e.currentTarget=n,pushSubject.next(e))})}}])&&Xi(r.prototype,o),i&&Xi(r,i),n}()};function Zi(t){return(Zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ts(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function es(t,e){return!e||"object"!==Zi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ns(t){return(ns=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rs(t,e){return(rs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var os=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),es(this,ns(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rs(t,e)}(n,Ji(Vi(Ii(Ei(ci(Ko(t))))))),r=n,(o=[{key:"compareContext",value:function(t,e){return t.url.href===e.url.href&&t.error===e.error&&t.cacheNr===e.cacheNr}},{key:"setupObservables",value:function(){var t=this;this.cacheNr=1,this.pushSubject=new at,this.hintSubject=new at;var e=ye(this.pushSubject.pipe(Ie(this.subjects.disconnect),ie(function(e){return{type:Fo,url:new Po(e.currentTarget.href,t.href),anchor:e.currentTarget,event:e,cacheNr:t.cacheNr}}),Je(this.isPushEvent.bind(this)),rn(function(e){e.event.preventDefault(),t.saveScrollPosition()})),ve(window,"popstate").pipe(Ie(this.subjects.disconnect),Je(function(){return window.history.state&&window.history.state[t.histId()]}),ie(function(e){return{type:"pop",url:new Po(window.location,t.href),event:e,cacheNr:t.cacheNr}})),this.reload$.pipe(Ie(this.subjects.disconnect))).pipe(Le({url:new Po(this.initialHref)}),rn(function(e){var n=e.url;return t._url=n}),er(),Ke(),Ho(this.isHashChange)).map(function(t){return t.pipe(ie(function(t){return Qi(t,2)[1]}),Ke())}),n=Qi(e,2),r=n[0],o=n[1],i=this.subjects.prefetch.pipe(qe(function(e){if(!e)return me;var n=Vn(function(){return ye(o.pipe(jr(!0)),t.fetch$.pipe(jr(!1)))}).pipe(Le(!1),Ke());return t.hintSubject.pipe(Ie(t.subjects.disconnect),function(t){return function(e){return t.pipe(qe(function(t){return t?me:e}))}}(n),ie(function(e){return{type:"hint",url:new Po(e.currentTarget.href,t.href),anchor:e.currentTarget,event:e,cacheNr:t.cacheNr}}),Je(t.isHintEvent.bind(t)))})),s=ye(i,o).pipe(tn(this.compareContext.bind(this)),qe(this.makeRequest.bind(this)),Le({url:{}}),Ke());this.fetch$=o.pipe(rn(function(e){t.updateHistoryState(e),t.onStart(e)}),Gn(s),qe(this.getResponse.bind(this,s)),Ke());var a=Qi(this.fetch$.pipe(Ho(function(t){return!t.error})),2),u=a[0],c=a[1];u.pipe(ie(this.responseToContent.bind(this)),rn(function(e){t.onReady(e),t.updateDOM(e),t.onAfter(e),t.manageScrollPostion(e)}),rn({error:function(e){return t.onDOMError(e)}}),Uo(function(t,e){return e}),qe(this.reinsertScriptTags.bind(this)),rn({error:function(e){return t.onError(e)}}),Uo(function(t,e){return e})).subscribe(this.onLoad.bind(this)),r.subscribe(function(e){t.updateHistoryStateHash(e),t.manageScrollPostion(e)}),c.subscribe(this.onNetworkError.bind(this)),o.pipe(qe(function(e){return Vn(function(){return t.animPromise}).pipe(Ie(t.fetch$),jr(e))})).subscribe(this.onProgress.bind(this)),this.setupEventListeners()}}])&&ts(r.prototype,o),i&&ts(r,i),n}()};function is(t){return(is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ss(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function as(t,e){return!e||"object"!==is(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function us(t,e,n){return(us="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=cs(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function cs(t){return(cs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ls(t,e){return(ls=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var fs=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(y),["documentfragment","eventlistener","history","promises","queryselector","requestanimationframe"]));DocumentFragment.prototype.getElementById=DocumentFragment.prototype.getElementById||function(t){return this.querySelector("#".concat(t))};var hs=function(t){return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),as(this,cs(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ls(t,e)}(n,os(Lt(w(t)))),r=n,i=[{key:"componentName",get:function(){return"hy-push-state"}},{key:"types",get:function(){return{replaceIds:Dt,linkSelector:Bt,duration:Ht,hrefRegex:zt,scriptSelector:Bt,initialHref:Bt,prefetch:qt}}},{key:"defaults",get:function(){return{replaceIds:[],linkSelector:"a[href]:not(.no-push-state)",duration:0,hrefRegex:null,scriptSelector:null,initialHref:window.location.href,prefetch:!1}}}],(o=[{key:"setupComponent",value:function(t,e){us(cs(n.prototype),"setupComponent",this).call(this,t,e),this.saveScrollPosition=this.saveScrollPosition.bind(this),this.reload$=new at}},{key:"setupShadowDOM",value:function(t){return t}},{key:"connectComponent",value:function(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),this.restoreScrollPostionOnReload(),window.addEventListener("beforeunload",this.saveScrollPosition),this.setupObservables(),us(cs(n.prototype),"connectComponent",this).call(this);var t=new Po(this.initialHref);this.updateHistoryState({type:"init",replace:!0,url:t});var e=this.getReplaceElements(document);Io(this)&&this.rewriteURLs(e),this.fireEvent("init"),this.onLoad({type:"init",title:this.getTitle(document),replaceEls:e,url:t,cacheNr:this.cacheNr})}},{key:"disconnectComponent",value:function(){us(cs(n.prototype),"disconnectComponent",this).call(this),window.removeEventListener("beforeunload",this.saveScrollPosition)}},{key:"assign",value:function(t){this.reload$.next({type:Fo,url:new Po(t,this.href),cacheNr:++this.cacheNr})}},{key:"reload",value:function(){this.reload$.next({type:Fo,url:new Po(this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"replace",value:function(t){this.reload$.next({type:Fo,url:new Po(t,this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"hash",get:function(){return this._url.hash}},{key:"host",get:function(){return this._url.host}},{key:"hostname",get:function(){return this._url.hostname}},{key:"href",get:function(){return this._url.href}},{key:"origin",get:function(){return this._url.origin}},{key:"pathname",get:function(){return this._url.pathname}},{key:"port",get:function(){return this._url.port}},{key:"protocol",get:function(){return this._url.protocol}},{key:"search",get:function(){return this._url.search}}])&&ss(r.prototype,o),i&&ss(r,i),n}()};function ps(t){return(ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ds(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ys(t,e){return!e||"object"!==ps(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ms(t){return(ms=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vs(t,e){return(vs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bs(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var gs=new s([].concat(bs(k),bs(fs))),ws=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ys(this,ms(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vs(t,e)}(e,A(hs(M))),n=e,o=[{key:"observedAttributes",get:function(){return this.getObservedAttributes()}}],(r=[{key:"getTemplate",value:function(){return null}}])&&ds(n.prototype,r),o&&ds(n,o),e}();var _s=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Es(t,this.project))},t}(),Es=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return R(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new Vt(this,void 0,void 0);this.destination.add(r),te(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Wt),Ss=(n(65),n(31)),xs=n.n(Ss);function Os(t){return function(e){return e.lift(new Ts(t))}}var Ts=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Cs(t,this.callback))},t}(),Cs=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new $(n)),r}return R(e,t),e}(K),Ns=n(17),ks=n.n(Ns);function js(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function As(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ms=function(t){var e=t.background,n=t.color,r=t.image,o=t.overlay;return"".concat(n).concat(r||e).concat(""===o?"overlay":"")};function Ps(t){var e=t.protocol,n=t.host,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return e!==r.protocol||n!==r.host}var Rs,Ls=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=document.getElementById("_main"),r=document.getElementById("_pageStyle"),o=Array.from(document.styleSheets).find(function(t){return t.ownerNode===r})||{};this.sidebar=document.getElementById("_sidebar"),this.fadeDuration=e,this.rules=o.cssRules||o.rules,this.prevHash=Ms(ks()(n)),this.themeColorEl=document.querySelector('meta[name="theme-color"]')}var e,n,r;return e=t,(n=[{key:"fetchImage2",value:function(t){var e=t.background,n=t.image;if(e||!n||""===n||"none"===n)return _t(null);var r=new URL(n,window.location);return Pe({method:"GET",responseType:"blob",url:r,crossDomain:Ps(r),headers:{Accept:"image/*"}}).pipe(ie(function(t){var e=t.response;return URL.createObjectURL(e)}),Uo(function(){return _t(n)}))}},{key:"fetchImage",value:function(t){var e=ks()(t),n=e.background,r=e.color,o=e.image,i=e.overlay,s=Ms(e);return s===this.prevHash?yt():this.fetchImage2(e).pipe(ie(function(t){var a=document.createElement("div");return a.classList.add("sidebar-bg"),"none"!==o&&""===i&&a.classList.add("sidebar-overlay"),n?a.style.background=n:(a.style.backgroundColor=r,t&&(a.style.backgroundImage="url(".concat(t,")"),a.objectURL=t)),[a,e,s]}))}},{key:"updateStyle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.color,r=void 0===n?"#4fb1ba":n,o=e.themeColor,i=void 0===o?"#193747":o;if(this.themeColorEl&&window.setTimeout(function(){return t.themeColorEl.content=i},250),this.rules)try{var s=xs()(r),a=s.darken(.1);this.rules[0].style.color=r,this.rules[0].style.borderColor=s.fade(.8).string(),this.rules[1].style.borderColor=r,this.rules[2].style.outlineColor=r,this.rules[3].style.backgroundColor=r,this.rules[3].style.borderColor=r,this.rules[4].style.boxShadow="0 0 0 3px ".concat(s.fade(.5)),this.rules[5].style.backgroundColor=a,this.rules[5].style.borderColor=a,this.rules[6].style.backgroundColor=r,this.rules[6].style.borderColor=r,this.rules[7].style.backgroundColor=a,this.rules[7].style.borderColor=a,this.rules[this.rules.length-1].style.backgroundColor=r}catch(t){console.error(t)}}},{key:"fade",value:function(t,e){var n=js(t,1)[0],r=js(e,3),o=r[0],i=r[1],s=r[2];return n.parentNode.insertBefore(o,n.nextElementSibling),this.updateStyle(i),this.prevHash=s,Bn(o,[{opacity:0},{opacity:1}],{duration:this.fadeDuration,easing:"ease"}).pipe(Os(function(){n.objectURL&&URL.revokeObjectURL(n.objectURL),n.parentNode.removeChild(n)}))}}])&&As(e.prototype,n),r&&As(e,r),t}(),Is=Un(["classlist","eventlistener","queryselector"]);function Ds(t){try{for(var e=t.previousElementSibling;e&&!e.classList.contains("MathJax_Preview");)e=e.previousElementSibling;var n=t.textContent.replace("% <![CDATA[","").replace("%]]>","");t.outerHTML=window.katex.renderToString(n,{displayMode:"math/tex; mode=display"===t.type}),e&&e.parentNode.removeChild(e)}catch(t){0}}var Fs=function(t,e){return new Promise(function(n){return t(e).addEventListener("load",n)})},qs=Is?function(){var t=document.querySelectorAll('script[type^="math/tex"]');t.length&&(Rs||(Rs=Promise.all([Fs(loadJS,document.getElementById("_hrefKatexJS").href),Fs(loadCSS,document.getElementById("_hrefKatexCSS").href),Fs(loadJS,document.getElementById("_hrefKatexCopyJS").href),Fs(loadCSS,document.getElementById("_hrefKatexCopyCSS").href)])),Rs.then(function(){Array.from(t).forEach(Ds)}))}:function(){};qs();n(72);function Hs(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Us=".page-title, .post-title";var zs=["title"];function Bs(t,e,n,r){var o=t.pipe(Je(function(t){var e=t.flipType;return!zs.includes(e)}));return ye(function(t,e,n,r){var o=r.animationMain,i=r.settings;if(!o)return t;var s=t.pipe(Je(function(t){return"title"===t.flipType}),qe(function(t){var e=t.anchor;if(!e)return _t({});var n=document.createElement("h1");n.classList.add("page-title"),n.textContent=e.textContent,n.style.transformOrigin="left top";var r=o.querySelector(".page");if(!r)return _t({});zn.call(r),r.appendChild(n),o.style.position="fixed",o.style.opacity=1;var s=e.getBoundingClientRect(),a=n.getBoundingClientRect(),u=parseInt(getComputedStyle(e).fontSize,10),c=parseInt(getComputedStyle(n).fontSize,10),l=s.left-a.left,f=s.top-a.top,h=u/c;return e.style.opacity=0,Bn(n,[{transform:"translate3d(".concat(l,"px, ").concat(f,"px, 0) scale(").concat(h,")")},{transform:"translate3d(0, 0, 0) scale(1)"}],i).pipe(rn({complete:function(){o.style.position="absolute"}}))}));return t.pipe(qe(function(t){var r=t.flipType;return li(e.pipe(Je(function(){return"title"===r}),ie(function(t){var e=Hs(t.replaceEls,1)[0].querySelector(Us);return e&&(e.style.opacity=0),e})),n,function(t){return t}).pipe(rn(function(t){t&&(t.style.opacity=1),o.style.opacity=0}),Os(function(){o.style.opacity=0}))})).subscribe(),s}(t,e,n,r),o)}function Ws(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Vs=new s([].concat(function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(gs),["classlist","cssanimations","cssremunit","documentfragment","eventlistener","history","matchmedia","opacity","queryselector","requestanimationframe"])),$s=[{opacity:1},{opacity:0}],Xs=[{opacity:0,transform:"translateY(-3rem)"},{opacity:1,transform:"translateY(0)"}],Gs={duration:250,easing:"ease-out",fill:"forwards"};function Ys(t){var e=Wn("_permalink-template"),n=e.querySelector(".permalink");requestAnimationFrame(function(){return n.href="#".concat(t.id),t.appendChild(e)})}function Ks(t){t.type;var e=t.main,n=Bn(e,$s,Gs).pipe(jr({main:e}));return window._drawer&&window._drawer.opened?(window._drawer.close(),li(n,ve(window._drawer.el,"hy-drawer-transitioned").pipe(Lr(1)),function(t){return t})):n}function Js(t){t.type;var e=Ws(t.replaceEls,1)[0],n=t.flipType;return Bn(e,Xs,Gs).pipe(jr({main:e,flipType:n}))}window._noPushState||!Un(Vs)||qn||requestIdleCallback(function(){var t,e,n,r=!!navigator.standalone||window.matchMedia("(display-mode: standalone)").matches,o=document.getElementsByTagName("hy-push-state")[0],i=document.querySelector("#_navbar > .content > .nav-btn-bar"),s=document.querySelector("link[rel=canonical]"),a=document.querySelector("meta[name=description]"),u=function(t){var e=Wn("_animation-template");return t.parentNode.insertBefore(e,t),t.previousElementSibling}(o),c=function(t){var e=Wn("_loading-template");return t.appendChild(e),t.lastElementChild}(i);r&&(t=i,e=function(){return window.history.back()},(n=Wn("_back-template")).querySelector(".nav-btn").addEventListener("click",e),t.appendChild(n),t.lastElementChild);var l=ve(o,"hy-push-state-start").pipe(ie(function(t){var e,n=t.detail;return Object.assign(n,{flipType:(e=n.anchor,e&&e.classList?e.classList.contains("flip-title")?"title":e.classList.contains("flip-project")?"project":e.getAttribute&&e.getAttribute("data-flip"):null)})}),Ke()),f=ve(o,"hy-push-state-ready").pipe(ie(function(t){return t.detail}),Ke()),h=ve(o,"hy-push-state-after").pipe(ie(function(t){return t.detail}),Ke()),p=ve(o,"hy-push-state-progress").pipe(ie(function(t){return t.detail}),Ke()),d=ve(o,"hy-push-state-networkerror").pipe(ie(function(t){return t.detail}),Ke()),y=l.pipe(ie(function(t){return Object.assign(t,{main:document.getElementById("_main")})}),rn(function(t){return t.main.style.pointerEvents="none"}),function t(e,n){return n?function(r){return r.pipe(t(function(t,r){return ce(e(t,r)).pipe(ie(function(e,o){return n(t,e,r,o)}))}))}:function(t){return t.lift(new _s(e))}}(Ks),rn(function(t){var e=t.main;return zn.call(e)}),Ke());p.subscribe(function(){return c.style.display="block"}),f.pipe(Le({replaceEls:[document.getElementById("_main")]})).subscribe(function(t){var e=Ws(t.replaceEls,1)[0];e.classList.remove("fade-in"),requestAnimationFrame(function(){return c.style.display="none"}),requestIdleCallback(function(){return Array.from(e.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]")).forEach(Ys)})}),h.pipe(Le({replaceEls:[document.getElementById("_main")],documentFragment:document})).subscribe(function(t){var e=Ws(t.replaceEls,1)[0],n=t.documentFragment,r=n.querySelector("link[rel=canonical]");s&&r&&(s.href=r.href);var o=n.querySelector("meta[name=description]");a&&o&&(a.content=o.content),Array.from(e.querySelectorAll("li[id^='fn:']")).forEach(function(t){return t.tabIndex=0}),Array.from(e.querySelectorAll("a[href^='#fn:']")).forEach(function(t){return t.addEventListener("click",function(t){return document.getElementById(t.currentTarget.hash.substr(1)).focus()})})});var m=h.pipe(qe(Js),Ke()),v=Bs(l,f,ye(m,d),{animationMain:u,settings:Gs}).pipe(Ke());l.pipe(qe(function(t){var e=li(Fi(250),y,v).toPromise();return t.transitionUntil(e),e})).subscribe(),y.subscribe(),v.subscribe();var b=new Ls(1e3);h.pipe(qe(function(t){var e=Ws(t.replaceEls,1)[0];return li(b.fetchImage(e),m,function(t){return t}).pipe(Ie(l))}),Le([document.querySelector(".sidebar-bg")]),er(),le(function(t){var e=Ws(t,2),n=e[0],r=e[1];return b.fade(n,r)})).subscribe(),m.subscribe(function(){return qs()}),d.pipe(qe(function(t){var e=t.url;c.style.display="none";var n=document.getElementById("_main");return n.style.pointerEvents="",zn.call(u.querySelector(".page")),zn.call(n),function(t,e){var n=e.pathname,r=Wn("_error-template"),o=r.querySelector(".this-link");o&&(o.href=n,o.textContent=n),t.appendChild(r),t.lastElementChild}(n,e),Bn(n,Xs,Gs)})).subscribe(),window._pushState=function(t){return window.customElements.define("hy-push-state",ws),t}(o)}),window.ResizeObserver=window.ResizeObserver||r.a,i.a.polyfill()}]);
Binary file
Binary file
Binary file
Binary file