jekyll-theme-hydejack 9.1.6 → 9.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/_config.yml +1 -1
  3. data/_includes/body/footer.html +1 -1
  4. data/_includes/body/scripts.html +2 -2
  5. data/_includes/head/meta-static.html +1 -1
  6. data/_includes/head/styles-inline.html +1 -1
  7. data/_includes/head/styles-no-inline.html +1 -1
  8. data/_includes/header.txt +1 -1
  9. data/_includes/scripts/load-js.min.js +1 -1
  10. data/_includes/scripts/nomodule.min.js +1 -1
  11. data/_includes/styles/page-style.scss +2 -2
  12. data/_layouts/compress.html +1 -1
  13. data/_sass/html.scss +2 -2
  14. data/_sass/hydejack/__inline__/_avatar.scss +4 -1
  15. data/_sass/hydejack/__inline__/_links.scss +1 -1
  16. data/_sass/hydejack/__link__/_avatar.scss +2 -0
  17. data/_sass/hydejack/__link__/_links.scss +4 -2
  18. data/_sass/hydejack/__link__/_sidebar.scss +1 -1
  19. data/_sass/hydejack/_avatar.pre.scss +4 -1
  20. data/_sass/hydejack/_links.pre.scss +5 -3
  21. data/_sass/hydejack/_sidebar.pre.scss +1 -1
  22. data/_sass/pooleparty/__link__/_code.scss +1 -1
  23. data/_sass/pooleparty/_code.pre.scss +1 -1
  24. data/assets/js/LEGACY-clap-button-hydejack-9.1.8.js +14 -0
  25. data/assets/js/LEGACY-drawer-hydejack-9.1.8.js +14 -0
  26. data/assets/js/{LEGACY-fetch-hydejack-9.1.6.js → LEGACY-fetch-hydejack-9.1.8.js} +2 -2
  27. data/assets/js/LEGACY-hydejack-9.1.8.js +13 -0
  28. data/assets/js/LEGACY-navbar-hydejack-9.1.8.js +14 -0
  29. data/assets/js/LEGACY-push-state-hydejack-9.1.8.js +14 -0
  30. data/assets/js/LEGACY-resize-observer-hydejack-9.1.8.js +14 -0
  31. data/assets/js/{LEGACY-shadydom-hydejack-9.1.6.js → LEGACY-shadydom-hydejack-9.1.8.js} +2 -2
  32. data/assets/js/LEGACY-vendors~clap-button-hydejack-9.1.8.js +14 -0
  33. data/assets/js/LEGACY-vendors~drawer-hydejack-9.1.8.js +47 -0
  34. data/assets/js/LEGACY-vendors~drawer~push-state-hydejack-9.1.8.js +211 -0
  35. data/assets/js/LEGACY-vendors~fetch-hydejack-9.1.8.js +14 -0
  36. data/assets/js/{LEGACY-vendors~intersection-observer-hydejack-9.1.6.js → LEGACY-vendors~intersection-observer-hydejack-9.1.8.js} +2 -2
  37. data/assets/js/LEGACY-vendors~push-state-hydejack-9.1.8.js +34 -0
  38. data/assets/js/LEGACY-vendors~shadydom-hydejack-9.1.8.js +155 -0
  39. data/assets/js/{LEGACY-vendors~webanimations-hydejack-9.1.6.js → LEGACY-vendors~webanimations-hydejack-9.1.8.js} +1 -1
  40. data/assets/js/{LEGACY-vendors~webcomponents-hydejack-9.1.6.js → LEGACY-vendors~webcomponents-hydejack-9.1.8.js} +4 -4
  41. data/assets/js/{LEGACY-webcomponents-hydejack-9.1.6.js → LEGACY-webcomponents-hydejack-9.1.8.js} +2 -2
  42. data/assets/js/{clap-button-hydejack-9.1.6.js → clap-button-hydejack-9.1.8.js} +2 -2
  43. data/assets/js/{drawer-hydejack-9.1.6.js → drawer-hydejack-9.1.8.js} +2 -2
  44. data/assets/js/{fetch-hydejack-9.1.6.js → fetch-hydejack-9.1.8.js} +2 -2
  45. data/assets/js/hydejack-9.1.8.js +13 -0
  46. data/assets/js/navbar-hydejack-9.1.8.js +14 -0
  47. data/assets/js/push-state-hydejack-9.1.8.js +14 -0
  48. data/assets/js/resize-observer-hydejack-9.1.8.js +14 -0
  49. data/assets/js/{shadydom-hydejack-9.1.6.js → shadydom-hydejack-9.1.8.js} +1 -1
  50. data/assets/js/{vendors~clap-button-hydejack-9.1.6.js → vendors~clap-button-hydejack-9.1.8.js} +1 -1
  51. data/assets/js/vendors~drawer-hydejack-9.1.8.js +48 -0
  52. data/assets/js/{vendors~drawer~push-state-hydejack-9.1.6.js → vendors~drawer~push-state-hydejack-9.1.8.js} +12 -12
  53. data/assets/js/vendors~fetch-hydejack-9.1.8.js +14 -0
  54. data/assets/js/{vendors~intersection-observer-hydejack-9.1.6.js → vendors~intersection-observer-hydejack-9.1.8.js} +2 -2
  55. data/assets/js/vendors~push-state-hydejack-9.1.8.js +34 -0
  56. data/assets/js/vendors~shadydom-hydejack-9.1.8.js +146 -0
  57. data/assets/js/{vendors~webanimations-hydejack-9.1.6.js → vendors~webanimations-hydejack-9.1.8.js} +2 -2
  58. data/assets/js/webcomponents-hydejack-9.1.8.js +14 -0
  59. data/assets/version.json +2 -2
  60. metadata +43 -43
  61. data/assets/js/LEGACY-clap-button-hydejack-9.1.6.js +0 -14
  62. data/assets/js/LEGACY-drawer-hydejack-9.1.6.js +0 -14
  63. data/assets/js/LEGACY-hydejack-9.1.6.js +0 -27
  64. data/assets/js/LEGACY-navbar-hydejack-9.1.6.js +0 -14
  65. data/assets/js/LEGACY-push-state-hydejack-9.1.6.js +0 -14
  66. data/assets/js/LEGACY-resize-observer-hydejack-9.1.6.js +0 -14
  67. data/assets/js/LEGACY-vendors~clap-button-hydejack-9.1.6.js +0 -14
  68. data/assets/js/LEGACY-vendors~drawer-hydejack-9.1.6.js +0 -48
  69. data/assets/js/LEGACY-vendors~drawer~push-state-hydejack-9.1.6.js +0 -214
  70. data/assets/js/LEGACY-vendors~fetch-hydejack-9.1.6.js +0 -14
  71. data/assets/js/LEGACY-vendors~push-state-hydejack-9.1.6.js +0 -34
  72. data/assets/js/LEGACY-vendors~shadydom-hydejack-9.1.6.js +0 -155
  73. data/assets/js/hydejack-9.1.6.js +0 -28
  74. data/assets/js/navbar-hydejack-9.1.6.js +0 -14
  75. data/assets/js/push-state-hydejack-9.1.6.js +0 -14
  76. data/assets/js/resize-observer-hydejack-9.1.6.js +0 -14
  77. data/assets/js/vendors~drawer-hydejack-9.1.6.js +0 -48
  78. data/assets/js/vendors~fetch-hydejack-9.1.6.js +0 -14
  79. data/assets/js/vendors~push-state-hydejack-9.1.6.js +0 -34
  80. data/assets/js/vendors~shadydom-hydejack-9.1.6.js +0 -146
  81. data/assets/js/webcomponents-hydejack-9.1.6.js +0 -14
  82. /data/assets/css/{hydejack-9.1.6.css → hydejack-9.1.8.css} +0 -0
@@ -0,0 +1,34 @@
1
+ /*!
2
+ * __ __ __ __
3
+ * /\ \/\ \ /\ \ __ /\ \
4
+ * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
+ * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
+ * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
+ * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
+ * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
+ * /\___/ \ \____/
10
+ * \/__/ \/___/
11
+ *
12
+ * Powered by Hydejack v9.1.8 <https://hydejack.com/>
13
+ */
14
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[13],{335:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=Array.isArray;function o(e){return 1===e.length&&n(e[0])?e[0]:e}},355:function(e,t,r){"use strict";r.r(t),r.d(t,"HyPushState",(function(){return ht}));var n,o=r(1),i=r(334),c=r(328),a=r(318),u=r(341),l=r(154),f=r(116),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return Object(o.h)(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=f.a.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){var o;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i=t.actions;null!=r&&(null===(o=i[i.length-1])||void 0===o?void 0:o.id)!==r&&(f.a.cancelAnimationFrame(r),t._scheduled=void 0)},t}(l.a),p=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.h)(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(r(155).a))(s),b=r(359),y=r(362),h=r(47),v=r(156),m=r(160),O=r(340),d=r(342),j=r(338),g=r(88),w=r(339),S=r(357),P=r(157),E=r(159),k=r(363),A=r(361),T=r(320);function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return null!=e&&(e.protocol!==t.protocol||e.host!==t.host)}function R(e){return e&&""===e.target}function N(e,t){var r=e.url,n=e.anchor,o=e.event,i=o.metaKey,c=o.ctrlKey;return!(i||c||!R(n)||L(r,t))}function C(e,t){var r=e.url;return!(!R(e.anchor)||L(r,t)||function(e){var t=e.hash,r=e.origin,n=e.pathname,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return""!==t&&r===o.origin&&n===o.pathname}(r,t))}function I(e){var t=e.cause,r=e.url,o=r.pathname,i=r.hash,c=e.oldURL;return o===(null==c?void 0:c.pathname)&&(t===n.Pop||t===n.Push&&""!==i)}!function(e){e.Init="init",e.Hint="hint",e.Push="push",e.Pop="pop"}(n||(n={}));var M=r(117),q=r(364),H=r(358);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,c,a=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){$(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $(e,t,r){return(t=F(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,F(n.key),n)}}function F(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}var V=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t},(t=[{key:"fetchPage",value:function(e){return Object(T.g)(e.url.href,{method:"GET",mode:"cors",headers:{Accept:"text/html"}}).pipe(Object(P.a)((function(e){return e.text()})),Object(h.a)((function(t){return _(_({},e),{},{responseText:t})})),Object(k.a)((function(t){return Object(M.a)(_(_({},e),{},{error:t,responseText:null}))})))}},{key:"selectPrefetch",value:function(e,t,r){return e.href===t.url.href?Object(M.a)(t):r.pipe(Object(H.a)(1))}},{key:"getResponse",value:function(e,t,r){return Object(q.a)(this.selectPrefetch(t.url,r,e),this.parent.animPromise).pipe(Object(h.a)((function(e){return _(_({},D(e,1)[0]),t)})))}}])&&B(e.prototype,t),r&&B(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),J=r(68),K=r(319),X=r(360);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,c,a=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){ee(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ee(e,t,r){return(t=re(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,re(n.key),n)}}function re(e){var t=function(e,t){if("object"!=z(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==z(t)?t:t+""}var ne=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t},(t=[{key:"scriptSelector",get:function(){return this.parent.scriptSelector}},{key:"removeScriptTags",value:function(e){var t=this,r=[];return e.forEach((function(e){e&&t.scriptSelector&&e.querySelectorAll(t.scriptSelector).forEach((function(e){if(e instanceof HTMLScriptElement){var t=[function(e){var t=document.createElement("script");return Array.from(e.attributes).forEach((function(e){return t.setAttributeNode(e.cloneNode())})),t.innerHTML=e.innerHTML,t}(e),e];r.push(t)}}))})),r}},{key:"reinsertScriptTags",value:function(e){var t=this;if(!this.scriptSelector)return Promise.resolve(e);var r=e.scripts,n=document.write;return Object(J.a)(r).pipe(Object(K.a)((function(e){return t.insertScript(e)})),Object(k.a)((function(t){return Object(M.a)(Z(Z({},e),{},{error:t}))})),Object(X.a)((function(){return document.write=n})),Object(w.a)(e)).toPromise()}},{key:"insertScript",value:function(e){var t=G(e,2),r=t[0],n=t[1];return document.write=function(){for(var e=document.createElement("div"),t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];e.innerHTML=r.join(),Array.from(e.childNodes).forEach((function(e){var t;return null===(t=n.parentNode)||void 0===t?void 0:t.insertBefore(e,n)}))},new Promise((function(e,t){var o,i;""!==r.src?(r.addEventListener("load",e),r.addEventListener("error",t),null===(o=n.parentNode)||void 0===o||o.replaceChild(r,n)):(null===(i=n.parentNode)||void 0===i||i.replaceChild(r,n),e({}))}))}}])&&te(e.prototype,t),r&&te(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function oe(e,t){e.forEach((function(e){e&&(e.querySelectorAll("[href]").forEach(ie("href",t)),e.querySelectorAll("[src]").forEach(ie("src",t)),e.querySelectorAll("img[srcset]").forEach(function(e,t){return function(r){try{var n=r.getAttribute(e);if(null==n)return;r.setAttribute(e,n.split(/\s*,\s*/).map((function(e){var r=e.split(/\s+/);return r[0]=new URL(r[0],t).href,r.join(" ")})).join(", "))}catch(e){}}}("srcset",t)),e.querySelectorAll("blockquote[cite]").forEach(ie("cite",t)),e.querySelectorAll("del[cite]").forEach(ie("cite",t)),e.querySelectorAll("ins[cite]").forEach(ie("cite",t)),e.querySelectorAll("q[cite]").forEach(ie("cite",t)),e.querySelectorAll("img[longdesc]").forEach(ie("longdesc",t)),e.querySelectorAll("frame[longdesc]").forEach(ie("longdesc",t)),e.querySelectorAll("iframe[longdesc]").forEach(ie("longdesc",t)),e.querySelectorAll("img[usemap]").forEach(ie("usemap",t)),e.querySelectorAll("input[usemap]").forEach(ie("usemap",t)),e.querySelectorAll("object[usemap]").forEach(ie("usemap",t)),e.querySelectorAll("form[action]").forEach(ie("action",t)),e.querySelectorAll("button[formaction]").forEach(ie("formaction",t)),e.querySelectorAll("input[formaction]").forEach(ie("formaction",t)),e.querySelectorAll("video[poster]").forEach(ie("poster",t)),e.querySelectorAll("object[data]").forEach(ie("data",t)),e.querySelectorAll("object[codebase]").forEach(ie("codebase",t)),e.querySelectorAll("object[archive]").forEach(function(e,t){return function(r){try{var n=r.getAttribute(e);if(null==n)return;r.setAttribute(e,n.split(/[\s,]+/).map((function(e){return new URL(e,t).href})).join(", "))}catch(e){}}}("archive",t)))}))}function ie(e,t){return function(r){try{var n=r.getAttribute(e);if(null==n)return;r.setAttribute(e,new URL(n,t).href)}catch(e){}}}function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,c,a=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function se(e,t,r){return(t=be(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,be(n.key),n)}}function be(e){var t=function(e,t){if("object"!=ce(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ce(t)?t:t+""}var ye=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,this.scriptManager=new ne(t)},(t=[{key:"el",get:function(){return this.parent}},{key:"replaceSelector",get:function(){return this.parent.replaceSelector}},{key:"scriptSelector",get:function(){return this.parent.scriptSelector}},{key:"getReplaceElements",value:function(e){if(this.replaceSelector)return this.replaceSelector.split(",").map((function(t){return e.querySelector(t)}));if(this.el.id)return[e.getElementById(this.el.id)];var t=Array.from(document.getElementsByTagName(this.el.tagName)).indexOf(this.el);return[e.getElementsByTagName(this.el.tagName)[t]]}},{key:"responseToContent",value:function(e){var t=e.responseText,r=(new DOMParser).parseFromString(t,"text/html"),n=r.title,o=void 0===n?"":n,i=this.getReplaceElements(r);if(i.every((function(e){return null==e})))throw new Error("Couldn't find any element in the document at '".concat(location,"'."));var c=this.scriptSelector?this.scriptManager.removeScriptTags(i):[];return fe(fe({},e),{},{document:r,title:o,replaceEls:i,scripts:c})}},{key:"replaceContentWithSelector",value:function(e,t){e.split(",").map((function(e){return document.querySelector(e)})).forEach((function(e,r){var n,o=t[r];o&&(null===(n=null==e?void 0:e.parentNode)||void 0===n||n.replaceChild(o,e))}))}},{key:"replaceContentWholesale",value:function(e){var t=ae(e,1)[0];t&&(this.el.innerHTML=t.innerHTML)}},{key:"replaceContent",value:function(e){this.replaceSelector?this.replaceContentWithSelector(this.replaceSelector,e):this.replaceContentWholesale(e)}},{key:"replaceHead",value:function(e){var t=this.el.ownerDocument.head,r=t.querySelector("link[rel=canonical]"),n=e.head.querySelector("link[rel=canonical]");r&&n&&(r.href=n.href);var o=t.querySelector("meta[name=description]"),i=e.head.querySelector("meta[name=description]");o&&i&&(o.content=i.content)}},{key:"updateDOM",value:function(e){try{var t=e.replaceEls,r=e.document;L(this.parent)&&oe(t,this.parent.href),this.replaceHead(r),this.replaceContent(t)}catch(t){throw fe(fe({},e),{},{error:t})}}},{key:"reinsertScriptTags",value:function(e){return this.scriptManager.reinsertScriptTags(e)}}])&&pe(e.prototype,t),r&&pe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),he=r(50),ve=r(119);function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,de(n.key),n)}}function de(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==me(t)?t:t+""}var je=function(e){return Array.prototype.concat.apply([],e)},ge=function(e){return{addedNodes:new Set(je(e.map((function(e){return Array.from(e.addedNodes)})))),removedNodes:new Set(je(e.map((function(e){return Array.from(e.removedNodes)}))))}},we=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"setupEventListeners",value:function(){var e=this,t=Object(a.a)(this.el,"click").pipe(Object(h.a)((function(t){var r=Object(T.k)(t.target,e.linkSelector);if(r instanceof HTMLAnchorElement)return[t,r]})),Object(v.a)((function(e){return!!e}))),r=function(e,t){return e.matches(t)&&e instanceof HTMLAnchorElement?Object(M.a)(e):Object(J.a)(e.querySelectorAll(t)).pipe(Object(v.a)((function(e){return e instanceof HTMLAnchorElement})))};return{hintEvent$:this.$.linkSelector.pipe(Object(P.a)((function(t){var n=new Map,o=function(e){n.has(e)||n.set(e,function(e){return Object(u.a)(Object(a.a)(e,"mouseenter",{passive:!0}),Object(a.a)(e,"touchstart",{passive:!0}),Object(a.a)(e,"focus",{passive:!0})).pipe(Object(h.a)((function(t){return[t,e]})))}(e))},i=function(e){n.delete(e)};return Object(T.d)(e.el,{childList:!0,subtree:!0}).pipe(Object(O.a)({addedNodes:[e.el],removedNodes:[]}),Object(T.c)(500),Object(h.a)(ge),Object(P.a)((function(e){var c=e.addedNodes,a=e.removedNodes;return Object(J.a)(a).pipe(Object(v.a)((function(e){return e instanceof Element})),Object(he.a)((function(e){return r(e,t)})),Object(m.a)(i)).subscribe(),Object(J.a)(c).pipe(Object(v.a)((function(e){return e instanceof Element})),Object(he.a)((function(e){return r(e,t)})),Object(m.a)(o)).subscribe(),Object(J.a)(n.values()).pipe(Object(ve.a)())})),Object(T.l)(e.$.prefetch))}))),pushEvent$:t}}}])&&Oe(e.prototype,t),r&&Oe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e,t,r){return(t=Te(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Te(n.key),n)}}function Te(e){var t=function(e,t){if("object"!=Se(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Se(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Se(t)?t:t+""}var Le=function(e){return new Promise((function(t){return setTimeout(t,e)}))},Re=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t},(t=[{key:"onStart",value:function(e){var t=this;this.parent.animPromise=Le(this.parent.duration),this.parent.fireEvent("start",{detail:Ee(Ee({},e),{},{transitionUntil:function(e){t.parent.animPromise=Promise.all([t.parent.animPromise,e])}})})}},{key:"emitDOMError",value:function(e){var t=location.href;window.history.back(),setTimeout((function(){return document.location.assign(t)}),100)}},{key:"emitNetworkError",value:function(e){this.parent.fireEvent("networkerror",{detail:e})}},{key:"emitError",value:function(e){this.parent.fireEvent("error",{detail:e})}},{key:"emitReady",value:function(e){this.parent.fireEvent("ready",{detail:e})}},{key:"emitAfter",value:function(e){var t=this;this.parent.fadePromise=Le(this.parent.duration),this.parent.fireEvent("after",{detail:Ee(Ee({},e),{},{transitionUntil:function(e){t.parent.fadePromise=Promise.all([t.parent.fadePromise,e])}})})}},{key:"emitProgress",value:function(e){this.parent.fireEvent("progress",{detail:e})}},{key:"emitLoad",value:function(e){this.parent.fireEvent("load",{detail:e})}}])&&Ae(e.prototype,t),r&&Ae(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){Me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Me(e,t,r){return(t=He(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,He(n.key),n)}}function He(e){var t=function(e,t){if("object"!=Ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ne(t)?t:t+""}window.HashChangeEvent=window.HashChangeEvent||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.oldURL,n=void 0===r?"":r,o=t.newURL,i=void 0===o?"":o,c=new CustomEvent(e);return c.oldURL=n,c.newURL=i,c};var Ue=function(){return e=function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.updateHistoryScrollPosition=function(){if(!L(r.parent)){var e=r.assignScrollPosition(history.state||{});history.replaceState(e,document.title)}},this.parent=t},(t=[{key:"updateHistoryState",value:function(e){var t=e.cause,r=e.replace,o=e.url,i=e.oldURL;if(!L(this.parent))switch(t){case n.Init:case n.Push:var c=this.parent.histId;if(r||o.href===location.href){var a=Ie(Ie({},history.state),{},Me({},c,{}));history.replaceState(a,document.title,o.href)}else history.pushState(Me({},c,{}),document.title,o.href);case n.Pop:this.parent.simulateHashChange&&i&&function(e,t){e.hash!==t.hash&&window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:e.href,oldURL:t.href}))}(o,i)}}},{key:"updateTitle",value:function(e){var t=e.cause,r=e.title;document.title=r,L(this.parent)||t!==n.Push||history.replaceState(history.state,r)}},{key:"assignScrollPosition",value:function(e){var t=this.parent.histId;return Ie(Ie({},e),{},Me({},t,Ie(Ie({},e[t]),{},{scrollTop:Object(T.j)(),scrollHeight:Object(T.i)()})))}}])&&qe(e.prototype,t),r&&qe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,We(n.key),n)}}function We(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==De(t)?t:t+""}var _e,$e,Be,Fe,Ve,Je,Ke,Xe,ze,Ge,Qe,Ye,Ze,et=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,"scrollRestoration"in history&&(history.scrollRestoration="manual")},(t=[{key:"manageScrollPosition",value:function(e){var t=e.cause,r=e.url.hash;switch(t){case n.Push:this.scrollHashIntoView(r,{behavior:"smooth",block:"start",inline:"nearest"});break;case n.Pop:this.restoreScrollPosition();break;case n.Init:this.restoreScrollPositionOnReload()}}},{key:"elementFromHash",value:function(e){return document.getElementById(decodeURIComponent(e.substr(1)))}},{key:"scrollHashIntoView",value:function(e,t){if(e){var r=this.elementFromHash(e);r&&r.scrollIntoView(t)}else window.scroll(window.pageXOffset,0)}},{key:"restoreScrollPosition",value:function(){var e=this.parent.histId,t=(history.state&&history.state[e]||{}).scrollTop;null!=t&&window.scroll(window.pageXOffset,t)}},{key:"restoreScrollPositionOnReload",value:function(){var e=this,t=this.parent.histId;history.state&&history.state[t]&&0===Object(T.j)()?this.restoreScrollPosition():location.hash&&requestAnimationFrame((function(){return e.scrollHashIntoView(location.hash,!0)}))}}])&&xe(e.prototype,t),r&&xe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rt(e){return function(e){if(Array.isArray(e))return it(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ot(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,c,a=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||ot(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){if(e){if("string"==typeof e)return it(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?it(e,t):void 0}}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function at(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ut(n.key),n)}}function ut(e){var t=function(e,t){if("object"!=tt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tt(t)?t:t+""}function lt(e,t,r){return t=pt(t),function(e,t){if(t&&("object"==tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],pt(e).constructor):t.apply(e,r))}function ft(){return(ft="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=st(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(null,arguments)}function st(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=pt(e)););return e}function pt(e){return(pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bt(e,t){return(bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}
15
+ /**
16
+ * Copyright (c) 2020 Florian Klampfer <https://qwtel.com/>
17
+ *
18
+ * This program is free software: you can redistribute it and/or modify
19
+ * it under the terms of the GNU General Public License as published by
20
+ * the Free Software Foundation, either version 3 of the License, or
21
+ * (at your option) any later version.
22
+ *
23
+ * This program is distributed in the hope that it will be useful,
24
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
25
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
+ * GNU General Public License for more details.
27
+ *
28
+ * You should have received a copy of the GNU General Public License
29
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
30
+ *
31
+ * @license
32
+ * @nocompile
33
+ */
34
+ function yt(e,t){return e.url.href===t.url.href&&e.error===t.error&&e.cacheNr===t.cacheNr}var ht=function(e){function t(){var e;return ct(this,t),(e=lt(this,t,arguments)).el=e,e.linkSelector="a[href]:not([data-no-push])",e.prefetch=!1,e.duration=0,e.simulateHashChange=!1,e.baseURL=window.location.href,_e.set(e,Object(T.f)()),e.animPromise=Promise.resolve(null),e.fadePromise=Promise.resolve(null),$e.set(e,new et(e)),Be.set(e,new Ue(e)),Fe.set(e,new V(e)),Ve.set(e,new ye(e)),Je.set(e,new Re(e)),Ke.set(e,new URL(e.baseURL)),Xe.set(e,(function(t,r){var n=new URL(Object(o.e)(e,Ke,"f").href);n[t]=r,e.assign(n.href)})),ze.set(e,0),Ge.set(e,new c.a),Qe.set(e,(function(t){L(Object(T.k)(t.target,"a[href]"))&&Object(o.e)(e,Be,"f").updateHistoryScrollPosition()})),Ye.set(e,void 0),Ze.set(e,(function(){var t=e.setupEventListeners(),r=t.pushEvent$,i=t.hintEvent$,c=r.pipe(Object(h.a)((function(t){var r=nt(t,2),i=r[0],c=r[1];return{cause:n.Push,url:new URL(c.href,e.href),anchor:c,event:i,cacheNr:Object(o.e)(e,ze,"f")}})),Object(v.a)((function(t){return N(t,e)})),Object(m.a)((function(t){t.event.preventDefault(),Object(o.e)(e,Be,"f").updateHistoryScrollPosition()}))),l=Object(a.a)(window,"popstate").pipe(Object(v.a)((function(){return window.history.state&&window.history.state[e.histId]})),Object(h.a)((function(t){return{cause:n.Pop,url:new URL(window.location.href),cacheNr:Object(o.e)(e,ze,"f"),event:t}}))),f=Object(o.e)(e,Ge,"f"),s=Object(u.a)(c,l,f).pipe(Object(O.a)({url:new URL(window.location.href)}),Object(d.a)(),Object(h.a)((function(e){var t=nt(e,2),r=t[0],n=t[1];return Object.assign(n,{oldURL:r.url})})),Object(j.a)()),y=s.pipe(Object(v.a)((function(e){return!I(e)})),Object(j.a)()),L=s.pipe(Object(v.a)((function(e){return I(e)})),Object(v.a)((function(){return history.state&&history.state[e.histId]})),Object(g.a)(p),Object(m.a)((function(t){Object(o.e)(e,Be,"f").updateHistoryState(t),Object(o.e)(e,$e,"f").manageScrollPosition(t)}))),R=Object(b.a)((function(){return Object(u.a)(y.pipe(Object(w.a)(!0)),Object(o.e)(e,Ye,"f").pipe(Object(w.a)(!1)))})).pipe(Object(O.a)(!1)),M=i.pipe(Object(T.h)(R.pipe(Object(h.a)((function(e){return!e})))),Object(h.a)((function(t){var r=nt(t,2),i=r[0],c=r[1];return{cause:n.Hint,url:new URL(c.href,e.href),anchor:c,event:i,cacheNr:Object(o.e)(e,ze,"f")}})),Object(v.a)((function(t){return C(t,e)}))),q=Object(u.a)(M,y).pipe(Object(S.a)((function(e,t){return yt(e,t)})),Object(P.a)((function(t){return Object(o.e)(e,Fe,"f").fetchPage(t)})),Object(O.a)({url:{}}),Object(j.a)()),H=Object(o.f)(e,Ye,y.pipe(Object(m.a)((function(t){Object(o.e)(e,Je,"f").onStart(t),Object(o.e)(e,Be,"f").updateHistoryState(t),Object(o.f)(e,Ke,t.url,"f")})),Object(E.a)(q),Object(P.a)((function(t){var r;return(r=Object(o.e)(e,Fe,"f")).getResponse.apply(r,[q].concat(rt(t)))})),Object(j.a)()),"f"),U=H.pipe(Object(v.a)((function(e){return!e.error}))),D=H.pipe(Object(v.a)((function(e){return!!e.error}))),x=U.pipe(Object(h.a)((function(t){return Object(o.e)(e,Ve,"f").responseToContent(t)})),Object(m.a)((function(t){return Object(o.e)(e,Je,"f").emitReady(t)})),Object(g.a)(p),Object(m.a)((function(t){Object(o.e)(e,Ve,"f").updateDOM(t),Object(o.e)(e,Be,"f").updateTitle(t),Object(o.e)(e,Je,"f").emitAfter(t)})),Object(O.a)({cause:n.Init,url:Object(o.e)(e,Ke,"f"),scripts:[]}),Object(g.a)(p),Object(m.a)((function(t){return Object(o.e)(e,$e,"f").manageScrollPosition(t)})),Object(m.a)({error:function(t){return Object(o.e)(e,Je,"f").emitDOMError(t)}}),Object(k.a)((function(e,t){return t})),Object(P.a)((function(t){return e.fadePromise.then((function(){return t}))})),Object(P.a)((function(t){return Object(o.e)(e,Ve,"f").reinsertScriptTags(t)})),Object(m.a)({error:function(t){return Object(o.e)(e,Je,"f").emitError(t)}}),Object(k.a)((function(e,t){return t})),Object(m.a)((function(t){return Object(o.e)(e,Je,"f").emitLoad(t)}))),W=D.pipe(Object(m.a)((function(t){return Object(o.e)(e,Je,"f").emitNetworkError(t)}))),_=y.pipe(Object(P.a)((function(t){return Object(b.a)((function(){return e.animPromise})).pipe(Object(A.a)(H),Object(w.a)(t))})),Object(m.a)((function(t){return Object(o.e)(e,Je,"f").emitProgress(t)})));x.subscribe(),L.subscribe(),W.subscribe(),_.subscribe(),Object(o.e)(e,_e,"f").resolve(e),e.fireEvent("init")})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bt(e,t)}(t,e),function(e,t,r){return t&&at(e.prototype,t),r&&at(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"createRenderRoot",value:function(){return this}},{key:"initialized",get:function(){return Object(o.e)(this,_e,"f")}},{key:"hash",get:function(){return Object(o.e)(this,Ke,"f").hash},set:function(e){Object(o.e)(this,Xe,"f").call(this,"hash",e)}},{key:"host",get:function(){return Object(o.e)(this,Ke,"f").host},set:function(e){Object(o.e)(this,Xe,"f").call(this,"host",e)}},{key:"hostname",get:function(){return Object(o.e)(this,Ke,"f").hostname},set:function(e){Object(o.e)(this,Xe,"f").call(this,"hostname",e)}},{key:"href",get:function(){return Object(o.e)(this,Ke,"f").href},set:function(e){Object(o.e)(this,Xe,"f").call(this,"href",e)}},{key:"pathname",get:function(){return Object(o.e)(this,Ke,"f").pathname},set:function(e){Object(o.e)(this,Xe,"f").call(this,"pathname",e)}},{key:"port",get:function(){return Object(o.e)(this,Ke,"f").port},set:function(e){Object(o.e)(this,Xe,"f").call(this,"port",e)}},{key:"protocol",get:function(){return Object(o.e)(this,Ke,"f").protocol},set:function(e){Object(o.e)(this,Xe,"f").call(this,"protocol",e)}},{key:"search",get:function(){return Object(o.e)(this,Ke,"f").search},set:function(e){Object(o.e)(this,Xe,"f").call(this,"search",e)}},{key:"origin",get:function(){return Object(o.e)(this,Ke,"f").origin}},{key:"ancestorOrigins",get:function(){return window.location.ancestorOrigins}},{key:"histId",get:function(){return this.id||this.tagName}},{key:"assign",value:function(e){var t;Object(o.e)(this,Ge,"f").next({cause:n.Push,url:new URL(e,this.href),cacheNr:Object(o.f)(this,ze,(t=Object(o.e)(this,ze,"f"),++t),"f")})}},{key:"reload",value:function(){var e;Object(o.e)(this,Ge,"f").next({cause:n.Push,url:new URL(this.href),cacheNr:Object(o.f)(this,ze,(e=Object(o.e)(this,ze,"f"),++e),"f"),replace:!0})}},{key:"replace",value:function(e){var t;Object(o.e)(this,Ge,"f").next({cause:n.Push,url:new URL(e,this.href),cacheNr:Object(o.f)(this,ze,(t=Object(o.e)(this,ze,"f"),++t),"f"),replace:!0})}},{key:"connectedCallback",value:function(){var e,r,n,i,c;(e=t,r="connectedCallback",n=this,c=ft(pt(1&(i=3)?e.prototype:e),r,n),2&i?function(e){return c.apply(n,e)}:c)([]),this.$={linkSelector:new y.a(this.linkSelector),prefetch:new y.a(this.prefetch)},window.addEventListener("beforeunload",Object(o.e)(this,Be,"f").updateHistoryScrollPosition),document.documentElement.addEventListener("click",Object(o.e)(this,Qe,"f")),this.updateComplete.then(Object(o.e)(this,Ze,"f"))}},{key:"disconnectedCallback",value:function(){window.removeEventListener("beforeunload",Object(o.e)(this,Be,"f").updateHistoryScrollPosition),document.documentElement.removeEventListener("click",Object(o.e)(this,Qe,"f"))}}])}(Object(T.b)(T.a,[we]));_e=new WeakMap,$e=new WeakMap,Be=new WeakMap,Fe=new WeakMap,Ve=new WeakMap,Je=new WeakMap,Ke=new WeakMap,Xe=new WeakMap,ze=new WeakMap,Ge=new WeakMap,Qe=new WeakMap,Ye=new WeakMap,Ze=new WeakMap,Object(o.g)([Object(i.e)({type:String,reflect:!0,attribute:"replace-selector"})],ht.prototype,"replaceSelector",void 0),Object(o.g)([Object(i.e)({type:String,reflect:!0,attribute:"link-selector"})],ht.prototype,"linkSelector",void 0),Object(o.g)([Object(i.e)({type:String,reflect:!0,attribute:"script-selector"})],ht.prototype,"scriptSelector",void 0),Object(o.g)([Object(i.e)({type:Boolean,reflect:!0})],ht.prototype,"prefetch",void 0),Object(o.g)([Object(i.e)({type:Number,reflect:!0})],ht.prototype,"duration",void 0),Object(o.g)([Object(i.e)({type:Boolean,reflect:!0,attribute:"hashchange"})],ht.prototype,"simulateHashChange",void 0),Object(o.g)([Object(i.e)({type:String})],ht.prototype,"baseURL",void 0),Object(o.g)([Object(i.e)()],ht.prototype,"assign",null),Object(o.g)([Object(i.e)()],ht.prototype,"reload",null),Object(o.g)([Object(i.e)()],ht.prototype,"replace",null),ht=Object(o.g)([Object(i.c)("hy-push-state")],ht)},363:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(14),o=r(9),i=r(11);function c(e){return Object(i.a)((function(t,r){var i,a=null,u=!1;a=t.subscribe(Object(o.a)(r,void 0,void 0,(function(o){i=Object(n.a)(e(o,c(e)(t))),a?(a.unsubscribe(),a=null,i.subscribe(r)):u=!0}))),u&&(a.unsubscribe(),a=null,i.subscribe(r))}))}},364:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(1),o=r(8),i=r(14),c=r(335),a=r(325),u=r(9),l=r(51);function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(l.b)(e),f=Object(c.a)(e);return f.length?new o.a((function(e){var t=f.map((function(){return[]})),o=f.map((function(){return!1}));e.add((function(){t=o=null}));for(var c=function(c){Object(i.a)(f[c]).subscribe(Object(u.a)(e,(function(i){if(t[c].push(i),t.every((function(e){return e.length}))){var a=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,Object(n.k)([],Object(n.j)(a))):a),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[c]=!0,!t[c].length&&e.complete()})))},a=0;!e.closed&&a<f.length;a++)c(a);return function(){t=o=null}})):a.a}},365:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(47),o=r(14),i=r(11),c=r(9);function a(e,t){return t?function(r){return r.pipe(a((function(r,i){return Object(o.a)(e(r,i)).pipe(Object(n.a)((function(e,n){return t(r,e,i,n)})))})))}:Object(i.a)((function(t,r){var n=0,i=null,a=!1;t.subscribe(Object(c.a)(r,(function(t){i||(i=Object(c.a)(r,void 0,(function(){i=null,a&&r.complete()})),Object(o.a)(e(t,n++)).subscribe(i))}),(function(){a=!0,!i&&r.complete()})))}))}}}]);
@@ -0,0 +1,155 @@
1
+ /*!
2
+ * __ __ __ __
3
+ * /\ \/\ \ /\ \ __ /\ \
4
+ * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
+ * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
+ * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
+ * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
+ * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
+ * /\___/ \ \____/
10
+ * \/__/ \/___/
11
+ *
12
+ * Powered by Hydejack v9.1.8 <https://hydejack.com/>
13
+ */
14
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[14],{333:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},349:function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}(function(){"use strict";var n;function r(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function o(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:r(e)}}function i(e){if(!(e instanceof Array)){e=o(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var s=function(n){n=["object"==("undefined"==typeof globalThis?"undefined":t(globalThis))&&globalThis,n,"object"==("undefined"==typeof window?"undefined":t(window))&&window,"object"==("undefined"==typeof self?"undefined":t(self))&&self,"object"==(void 0===e?"undefined":t(e))&&e];for(var r=0;r<n.length;++r){var o=n[r];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")}(this);function a(){}function l(e){return e.__shady||(e.__shady=new a),e.__shady}function u(e){return e&&e.__shady}a.prototype.toJSON=function(){return{}};var c=window.ShadyDOM||{};c.da=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var d,h=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");c.i=!!(h&&h.configurable&&h.get),c.N=c.force||!c.da,c.l=c.noPatch||!1,c.C=c.preferPerformance,c.O="on-demand"===c.l;var f=c.querySelectorImplementation;function p(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function _(e){return(e=u(e))&&void 0!==e.firstChild}function y(e){return e instanceof ShadowRoot}function m(e){return(e=(e=u(e))&&e.root)&&ln(e)}d=-1<["native","selectorEngine"].indexOf(f)?f:void 0,c.ga=d,c.V=navigator.userAgent.match("Trident");var v=Element.prototype,g=v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector,S=document.createTextNode(""),b=0,E=[];function N(e){E.push(e),S.textContent=b++}new MutationObserver((function(){for(;E.length;)try{E.shift()()}catch(e){throw S.textContent=b++,e}})).observe(S,{characterData:!0});var w=document.contains?function(e,t){return e.__shady_native_contains(t)}:function(e,t){return e===t||e.documentElement&&e.documentElement.__shady_native_contains(t)};function C(e,t){for(;t;){if(t==e)return!0;t=t.__shady_parentNode}return!1}function T(e){for(var t=e.length-1;0<=t;t--){var n=e[t],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(e[r]=n)}return e.item=function(t){return e[t]},e.namedItem=function(t){if("length"!==t&&isNaN(t)&&e[t])return e[t];for(var n=o(e),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==t)return r;return null},e}function O(e){var t=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)t.push(e);return t}function P(e){var t=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t.push(e);return t}function x(e,t,n){if(n.configurable=!0,n.value)e[t]=n.value;else try{Object.defineProperty(e,t,n)}catch(e){}}function k(e,t,n,r){for(var o in n=void 0===n?"":n,t)r&&0<=r.indexOf(o)||x(e,n+o,t[o])}function D(e,t){for(var n in t)n in e&&x(e,n,t[n])}function M(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t}function A(e,t){for(var n,r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++)e[n=r[o]]=t[n]}function R(e){return e instanceof Node?e:document.createTextNode(""+e)}function L(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(1===t.length)return R(t[0]);n=document.createDocumentFragment();for(var r=(t=o(t)).next();!r.done;r=t.next())n.appendChild(R(r.value));return n}function I(e){var t;for(t=void 0===t?1:t;0<t;t--)e=e.reduce((function(e,t){return Array.isArray(t)?e.push.apply(e,i(t)):e.push(t),e}),[]);return e}var j,F=[];function H(e){j||(j=!0,N(B)),F.push(e)}function B(){j=!1;for(var e=!!F.length;F.length;)F.shift()();return e}function U(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.H=new Set}B.list=F,U.prototype.flush=function(){if(this.g){this.g=!1;var e=this.takeRecords();e.length&&this.H.forEach((function(t){t(e)}))}},U.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var q=/[&\u00A0"]/g,V=/[&\u00A0<>]/g;function G(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function W(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var K=W("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),X=W("style script xmp iframe noembed noframes plaintext noscript".split(" "));function z(e,t){"template"===e.localName&&(e=e.content);for(var n="",r=t?t(e):e.childNodes,o=0,i=r.length,s=void 0;o<i&&(s=r[o]);o++){e:{var a=s,l=e,u=t;switch(a.nodeType){case Node.ELEMENT_NODE:for(var c,d="<"+(l=a.localName),h=a.attributes,f=0;c=h[f];f++)d+=" "+c.name+'="'+c.value.replace(q,G)+'"';d+=">",a=K[l]?d:d+z(a,u)+"</"+l+">";break e;case Node.TEXT_NODE:a=a.data,a=l&&X[l.localName]?a:a.replace(V,G);break e;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break e;default:throw window.console.error(a),Error("not implemented")}}n+=a}return n}var Y=c.i,J={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},$={};function Z(e){$[e]=function(t){return t["__shady_native_"+e]}}function Q(e,t){for(var n in k(e,t,"__shady_native_"),t)Z(n)}function ee(e,t){t=void 0===t?[]:t;for(var n=0;n<t.length;n++){var r=t[n],o=Object.getOwnPropertyDescriptor(e,r);o&&(Object.defineProperty(e,"__shady_native_"+r,o),o.value?J[r]||(J[r]=o.value):Z(r))}}var te=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),ne=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),re=document.implementation.createHTMLDocument("inert");function oe(e){for(var t;t=e.__shady_native_firstChild;)e.__shady_native_removeChild(t)}var ie=["firstElementChild","lastElementChild","children","childElementCount"],se=["querySelector","querySelectorAll","append","prepend","replaceChildren"];var ae=M({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),le=M({get textContent(){return this.__shady_textContent},set textContent(e){this.__shady_textContent=e},get innerHTML(){return this.__shady_innerHTML},set innerHTML(e){this.__shady_innerHTML=e}}),ue=M({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(e){this.__shady_className=e}});function ce(e){for(var t in e){var n=e[t];n&&(n.enumerable=!1)}}ce(ae),ce(le),ce(ue);var de,he=c.i||!0===c.l,fe=he?function(){}:function(e){var t=l(e);t.X||(t.X=!0,D(e,ue))},pe=he?function(){}:function(e){var t=l(e);t.W||(t.W=!0,D(e,ae),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!c.l||D(e,le))},_e="__eventWrappers"+Date.now(),ye=(de=Object.getOwnPropertyDescriptor(Event.prototype,"composed"))?function(e){return de.get.call(e)}:null,me=function(){function e(){}var t=!1,n={get capture(){return t=!0,!1}};return window.addEventListener("test",e,n),window.removeEventListener("test",e,n),t}();function ve(e){if(null===e||"object"!==t(e)&&"function"!=typeof e)var n=!!e,r=!1;else{n=!!e.capture,r=!!e.once;var o=e.o}return{U:o,capture:n,once:r,T:me?e:n}}var ge={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},Se={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function be(e){return e instanceof Node?e.__shady_getRootNode():e}function Ee(e,t){var n=[],r=e;for(e=be(e);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function Ne(e,t){if(!y)return e;e=Ee(e,!0);for(var n,r,o=0,i=void 0,s=void 0;o<t.length;o++)if((r=be(n=t[o]))!==i&&(s=e.indexOf(r),i=r),!y(r)||-1<s)return n}var we={get composed(){return void 0===this.__composed&&(ye?this.__composed="focusin"===this.type||"focusout"===this.type||ye(this):!1!==this.isTrusted&&(this.__composed=ge[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=Ee(this.__target,this.composed)),this.__composedPath},get target(){return Ne(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=Ee(this.__relatedTarget,!0)),Ne(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.K=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.K=this.__immediatePropagationStopped=!0}},Ce=c.i&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");function Te(e){function t(t,n){return(t=new e(t,n)).__composed=n&&!!n.composed,t}return t.__proto__=e,t.prototype=e.prototype,t}Ce&&(Object.defineProperty(we,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty(we,"__shady_native_eventPhase",Ce));var Oe={focus:!0,blur:!0};function Pe(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function xe(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,o=0;(r=n[o])&&(!Pe(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.__immediatePropagationStopped);o++);}var ke=new Event("e").hasOwnProperty("currentTarget");function De(e){var t=(e=ke?Object.create(e):e).composedPath(),n=t.map((function(e){return Ne(e,t)})),r=e.bubbles,o=Object.getOwnPropertyDescriptor(e,"currentTarget");Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return l}});var i=Event.CAPTURING_PHASE,s=Object.getOwnPropertyDescriptor(e,"eventPhase");Object.defineProperty(e,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i}});try{for(var a=t.length-1;0<=a;a--){var l=t[a];if(i=l===n[a]?Event.AT_TARGET:Event.CAPTURING_PHASE,xe(e,l,"capture"),e.K)return}for(a=0;a<t.length;a++){var u=(l=t[a])===n[a];if((u||r)&&(i=u?Event.AT_TARGET:Event.BUBBLING_PHASE,xe(e,l,"bubble"),e.K))break}}finally{ke||(o?Object.defineProperty(e,"currentTarget",o):delete e.currentTarget,s?Object.defineProperty(e,"eventPhase",s):delete e.eventPhase)}}function Me(e,t,n,r){for(var o=0;o<e.length;o++){var i=e[o],s=i.type,a=i.capture;if(t===i.node&&n===s&&r===a)return o}return-1}function Ae(e){return B(),!c.C&&this instanceof Node&&!w(document,this)?(e.__target||je(e,this),De(e)):this.__shady_native_dispatchEvent(e)}function Re(e,n,r){var o=this,i=ve(r),s=i.capture,a=i.once,l=i.U;if(i=i.T,n){var u=t(n);if(("function"===u||"object"===u)&&("object"!==u||n.handleEvent&&"function"==typeof n.handleEvent)){if(Se[e])return this.__shady_native_addEventListener(e,n,i);var c=l||this;if(l=n[_e]){if(-1<Me(l,c,e,s))return}else n[_e]=[];l=function(t){if(a&&o.__shady_removeEventListener(e,n,r),t.__target||je(t),c!==o){var i=Object.getOwnPropertyDescriptor(t,"currentTarget");Object.defineProperty(t,"currentTarget",{get:function(){return c},configurable:!0});var l=Object.getOwnPropertyDescriptor(t,"eventPhase");Object.defineProperty(t,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return s?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(t.__previousCurrentTarget=t.currentTarget,(!y(c)&&"slot"!==c.localName||-1!=t.composedPath().indexOf(c))&&(t.composed||-1<t.composedPath().indexOf(c)))if(Pe(t)&&t.target===t.relatedTarget)t.eventPhase===Event.BUBBLING_PHASE&&t.stopImmediatePropagation();else if(t.eventPhase===Event.CAPTURING_PHASE||t.bubbles||t.target===c||c instanceof Window){var d="function"===u?n.call(c,t):n.handleEvent&&n.handleEvent(t);return c!==o&&(i?(Object.defineProperty(t,"currentTarget",i),i=null):delete t.currentTarget,l?(Object.defineProperty(t,"eventPhase",l),l=null):delete t.eventPhase),d}},n[_e].push({node:c,type:e,capture:s,fa:l}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][s?"capture":"bubble"].push(l),Oe[e]||this.__shady_native_addEventListener(e,l,i)}}}function Le(e,t,n){if(t){var r=ve(n);n=r.capture;var o=r.U;if(r=r.T,Se[e])return this.__shady_native_removeEventListener(e,t,r);var i=o||this;o=void 0;var s=null;try{s=t[_e]}catch(e){}s&&(-1<(i=Me(s,i,e,n))&&(o=s.splice(i,1)[0].fa,s.length||(t[_e]=void 0))),this.__shady_native_removeEventListener(e,o||t,r),o&&this.__handlers&&this.__handlers[e]&&(-1<(t=(e=this.__handlers[e][n?"capture":"bubble"]).indexOf(o))&&e.splice(t,1))}}var Ie=M(we);function je(e,t){if(t=void 0===t?e.target:t,e.__target=t,e.__relatedTarget=e.relatedTarget,c.i){if(!(t=Object.getPrototypeOf(e)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(t);n.__shady_sourceProto=t,k(n,Ie),t.__shady_patchedProto=n}e.__proto__=t.__shady_patchedProto}else k(e,Ie)}var Fe=Te(Event),He=Te(CustomEvent),Be=Te(MouseEvent);var Ue=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return"on"===e.substring(0,2)})),qe=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return"on"===e.substring(0,2)}));function Ve(e){return{set:function(t){var n=l(this),r=e.substring(2);n.m||(n.m={}),n.m[e]&&this.removeEventListener(r,n.m[e]),this.__shady_addEventListener(r,t),n.m[e]=t},get:function(){var t=u(this);return t&&t.m&&t.m[e]},configurable:!0}}function Ge(e,t){return{index:e,D:[],G:t}}function We(e,t,n,r){var o=0,i=0,s=0,a=0,l=Math.min(t-o,r-i);if(0==o&&0==i)e:{for(s=0;s<l;s++)if(e[s]!==n[s])break e;s=l}if(t==e.length&&r==n.length){a=e.length;for(var u=n.length,c=0;c<l-s&&Ke(e[--a],n[--u]);)c++;a=c}if(i+=s,r-=a,0==(t-=a)-(o+=s)&&0==r-i)return[];if(o==t){for(t=Ge(o,0);i<r;)t.D.push(n[i++]);return[t]}if(i==r)return[Ge(o,t-o)];for(r=r-(s=i)+1,a=t-(l=o)+1,t=Array(r),u=0;u<r;u++)t[u]=Array(a),t[u][0]=u;for(u=0;u<a;u++)t[0][u]=u;for(u=1;u<r;u++)for(c=1;c<a;c++)if(e[l+c-1]===n[s+u-1])t[u][c]=t[u-1][c-1];else{var d=t[u-1][c]+1,h=t[u][c-1]+1;t[u][c]=d<h?d:h}for(l=t.length-1,s=t[0].length-1,r=t[l][s],e=[];0<l||0<s;)0==l?(e.push(2),s--):0==s?(e.push(3),l--):(a=t[l-1][s-1],(d=(u=t[l-1][s])<(c=t[l][s-1])?u<a?u:a:c<a?c:a)==a?(a==r?e.push(0):(e.push(1),r=a),l--,s--):d==u?(e.push(3),l--,r=u):(e.push(2),s--,r=c));for(e.reverse(),t=void 0,l=[],s=0;s<e.length;s++)switch(e[s]){case 0:t&&(l.push(t),t=void 0),o++,i++;break;case 1:t||(t=Ge(o,0)),t.G++,o++,t.D.push(n[i]),i++;break;case 2:t||(t=Ge(o,0)),t.G++,o++;break;case 3:t||(t=Ge(o,0)),t.D.push(n[i]),i++}return t&&l.push(t),l}function Ke(e,t){return e===t}var Xe=M({dispatchEvent:Ae,addEventListener:Re,removeEventListener:Le}),ze=null;function Ye(){return ze||(ze=window.ShadyCSS&&window.ShadyCSS.ScopingShim),ze||null}function Je(e,t,n){var r=Ye();return!(!r||"class"!==t)&&(r.setElementClass(e,n),!0)}function $e(e,t){var n=Ye();n&&n.unscopeNode(e,t)}function Ze(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var t=Ye();return t?t.currentScopeForNode(e):""}function Qe(e,t){if(e)for(e.nodeType===Node.ELEMENT_NODE&&t(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&Qe(e,t)}var et=window.document,tt=c.C,nt=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),rt=nt&&nt.get;function ot(e){for(var t;t=e.__shady_firstChild;)e.__shady_removeChild(t)}function it(e,t,n){if(e=(e=u(e))&&e.B){if(t)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,o=t.childNodes.length;r<o;r++)e.addedNodes.push(t.childNodes[r]);else e.addedNodes.push(t);n&&e.removedNodes.push(n),function(e){e.g||(e.g=!0,N((function(){e.flush()})))}(e)}}var st=M({get parentNode(){var e=u(this);return void 0!==(e=e&&e.parentNode)?e:this.__shady_native_parentNode},get firstChild(){var e=u(this);return void 0!==(e=e&&e.firstChild)?e:this.__shady_native_firstChild},get lastChild(){var e=u(this);return void 0!==(e=e&&e.lastChild)?e:this.__shady_native_lastChild},get nextSibling(){var e=u(this);return void 0!==(e=e&&e.nextSibling)?e:this.__shady_native_nextSibling},get previousSibling(){var e=u(this);return void 0!==(e=e&&e.previousSibling)?e:this.__shady_native_previousSibling},get childNodes(){if(_(this)){var e=u(this);if(!e.childNodes){e.childNodes=[];for(var t=this.__shady_firstChild;t;t=t.__shady_nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=this.__shady_native_childNodes;return n.item=function(e){return n[e]},n},get parentElement(){var e=u(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:this.__shady_native_parentElement},get isConnected(){if(rt&&rt.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||w(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(y(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(_(this)){for(var e=[],t=this.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.__shady_textContent);return e.join("")}return this.__shady_native_textContent},set textContent(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!_(this)&&c.i){var t=this.__shady_firstChild;(t!=this.__shady_lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&ot(this),this.__shady_native_textContent=e}else ot(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,t){if(this.ownerDocument!==et&&e.ownerDocument!==et)return this.__shady_native_insertBefore(e,t),e;if(e===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(t){var n=u(t);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&t.__shady_native_parentNode!==this)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(t===e)return e;it(this,e);var r=[],o=(n=hn(this))?n.host.localName:Ze(this),s=e.__shady_parentNode;if(s){var a=Ze(e),c=!!n||!hn(e)||tt&&void 0!==this.__noInsertionPoint;s.__shady_removeChild(e,c)}s=!0;var d=(!tt||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!function e(t,n){var r=Ye();if(!r)return!0;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(r=!0,t=t.__shady_firstChild;t;t=t.__shady_nextSibling)r=r&&e(t,n);return r}return t.nodeType!==Node.ELEMENT_NODE||r.currentScopeForNode(t)===n}(e,o),h=n&&!e.__noInsertionPoint&&(!tt||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(h||d)&&(d&&(a=a||Ze(e)),Qe(e,(function(e){if(h&&"slot"===e.localName&&r.push(e),d){var t=a;Ye()&&(t&&$e(e,t),(t=Ye())&&t.scopeNode(e,o))}}))),r.length&&(rn(n),n.j.push.apply(n.j,i(r)),Zt(n)),_(this)&&(function(e,t,n){Ut(t,2);var r=l(t);if(void 0!==r.firstChild&&(r.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)qt(e,t,r,n);else qt(e,t,r,n)}(e,this,t),(c=u(this)).root?(s=!1,m(this)&&Zt(c.root)):n&&"slot"===this.localName&&(s=!1,Zt(n))),s?(n=y(this)?this.host:this,t?(t=function e(t){var n=t;if(t&&"slot"===t.localName){var r=u(t);(r=r&&r.u)&&(n=r.length?r[0]:e(t.__shady_nextSibling))}return n}(t),n.__shady_native_insertBefore(e,t)):n.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!y(e))return this.__shady_insertBefore(e)},removeChild:function(e,t){if(t=void 0!==t&&t,this.ownerDocument!==et)return this.__shady_native_removeChild(e);if(e.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+e);it(this,null,e);var n=hn(e),r=n&&function(e,t){if(e.g){on(e);var n,r=e.h;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var s=o[i];if(C(t,s)){o.splice(i,1);var a=e.g.indexOf(s);if(0<=a&&(e.g.splice(a,1),(a=u(s.__shady_parentNode))&&a.F&&a.F--),i--,s=u(s),a=s.u)for(var l=0;l<a.length;l++){var c=a[l],d=c.__shady_native_parentNode;d&&d.__shady_native_removeChild(c)}s.u=[],s.assignedNodes=[],a=!0}}return a}}(n,e),o=u(this);if(_(this)&&(function(e,t){var n=l(e);t=l(t),e===t.firstChild&&(t.firstChild=n.nextSibling),e===t.lastChild&&(t.lastChild=n.previousSibling),e=n.previousSibling;var r=n.nextSibling;e&&(l(e).nextSibling=r),r&&(l(r).previousSibling=e),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==t.childNodes&&(t.childNodes=null)}(e,this),m(this))){Zt(o.root);var i=!0}if(Ye()&&!t&&n&&e.nodeType!==Node.TEXT_NODE){var s=Ze(e);Qe(e,(function(e){$e(e,s)}))}return function e(t){var n=u(t);if(n&&void 0!==n.J)for(n=t.__shady_firstChild;n;n=n.__shady_nextSibling)e(n);(t=u(t))&&(t.J=void 0)}(e),n&&((t="slot"===this.localName)&&(i=!0),(r||t)&&Zt(n)),i||(i=y(this)?this.host:this,(!o.root&&"slot"!==e.localName||i===e.__shady_native_parentNode)&&i.__shady_native_removeChild(e)),e},replaceChild:function(e,t){return this.__shady_insertBefore(e,t),this.__shady_removeChild(t),e},cloneNode:function(e){if("template"==this.localName)return this.__shady_native_cloneNode(e);var t=this.__shady_native_cloneNode(!1);if(e&&t.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var n;e;e=e.__shady_nextSibling)n=e.__shady_cloneNode(!0),t.__shady_appendChild(n)}return t},getRootNode:function(e){if(this&&this.nodeType){var t=l(this),n=t.J;return void 0===n&&(y(this)?(n=this,t.J=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(t.J=n))),n}},contains:function(e){return C(this,e)}}),at=M({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&Qt(e),(e=u(this))&&e.assignedSlot||null}}),lt=new Map;function ut(e,t,n,r){for(r=void 0===r||r;t<e.length;t++)if("\\"===e[t]&&t<e.length-1&&"\n"!==e[t+1])t++;else{if(-1!==n.indexOf(e[t]))return t;if(r&&lt.has(e[t])){var o=lt.get(e[t]);t=ut(e,t+1,[o.end],o.I)}}return e.length}function ct(e,t,n){var r=[];return function e(t,n,r,o){for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling){var i;if(i=t.nodeType===Node.ELEMENT_NODE){var s=n,a=r,l=o,u=s(i=t);u&&l.push(i),a&&a(u)?i=u:(e(i,s,a,l),i=void 0)}if(i)break}}(e,t,n,r),r}[["(",{end:")",I:!0}],["[",{end:"]",I:!0}],['"',{end:'"',I:!1}],["'",{end:"'",I:!1}]].forEach((function(e){var t=o(e);e=t.next().value,t=t.next().value,lt.set(e,t)}));var dt={get firstElementChild(){var e=u(this);if(e&&void 0!==e.firstChild){for(e=this.__shady_firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_firstElementChild},get lastElementChild(){var e=u(this);if(e&&void 0!==e.lastChild){for(e=this.__shady_lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_lastElementChild},get children(){return _(this)?T(Array.prototype.filter.call(P(this),(function(e){return e.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var e=this.__shady_children;return e?e.length:0}},ht=M((dt.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(L.apply(null,i(t)),null)},dt.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(L.apply(null,i(t)),this.__shady_firstChild)},dt.replaceChildren=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(L.apply(null,i(t)),null)},dt));function ft(e,t){function n(t,n){return(t===e||-1===n.indexOf(":scope"))&&g.call(t,n)}var r=function(e){function t(){if(0<r.length){for(;" "===r[r.length-1];)r.pop();n.push({S:r.filter((function(e,t){return 0==t%2})),ca:r.filter((function(e,t){return 1==t%2}))}),r.length=0}}for(var n=[],r=[],o=0;o<e.length;){var i=r[r.length-1],s=ut(e,o,[","," ",">","+","~"]),a=s===o?e[o]:e.substring(o,s);","===a?t():-1!==[void 0," ",">","+","~"].indexOf(i)&&" "===a||(" "===i&&-1!==[">","+","~"].indexOf(a)?r[r.length-1]=a:r.push(a)),o=s+(s===o?1:0)}return t(),n}(t);if(1>r.length)return[];for(t=I(ct(e,(function(){return!0})).map((function(e){return I(r.map((function(t){var r=t.S,o=r.length-1;return n(e,r[o])?{target:e,v:t,A:e,index:o}:[]})))})));t.some((function(e){return 0<e.index}));)t=I(t.map((function(e){if(0>=e.index)return e;var t=e.target,r=e.A,o=e.v;e=e.index-1;var i=o.ca[e],s=o.S[e];if(" "===i){for(i=[],r=r.__shady_parentElement;r;r=r.__shady_parentElement)n(r,s)&&i.push({target:t,v:o,A:r,index:e});return i}if(">"===i)return n(r=r.__shady_parentElement,s)?{target:t,v:o,A:r,index:e}:[];if("+"===i)return(r=r.__shady_previousElementSibling)&&n(r,s)?{target:t,v:o,A:r,index:e}:[];if("~"===i){for(i=[],r=r.__shady_previousElementSibling;r;r=r.__shady_previousElementSibling)n(r,s)&&i.push({target:t,v:o,A:r,index:e});return i}throw Error("Unrecognized combinator: '"+i+"'.")})));return function(e){for(var t=[],n=new Set,r=(e=o(e)).next();!r.done;r=e.next())r=r.value,n.has(r)||(t.push(r),n.add(r));return t}(t.map((function(e){return e.target})))}var pt=c.querySelectorImplementation,_t=M({querySelector:function(e){if("native"===pt){for(var t=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(e)),n=this.__shady_getRootNode(),r=(t=o(t)).next();!r.done;r=t.next())if((r=r.value).__shady_getRootNode()==n)return r;return null}if("selectorEngine"===pt)return ft(this,e)[0]||null;if(void 0===pt)return ct(this,(function(t){return g.call(t,e)}),(function(e){return!!e}))[0]||null;throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+pt+"'")},querySelectorAll:function(e,t){if(t||"native"===pt){t=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(e));var n=this.__shady_getRootNode();return T(t.filter((function(e){return e.__shady_getRootNode()==n})))}if("selectorEngine"===pt)return T(ft(this,e));if(void 0===pt)return T(ct(this,(function(t){return g.call(t,e)})));throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+pt+"'")}}),yt=c.C&&!c.l?A({},ht):ht;A(ht,_t);var mt=M({after:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_insertBefore(L.apply(null,i(t)),r)}},before:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(L.apply(null,i(t)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(L.apply(null,i(t)),r)}}}),vt=window.document;function gt(e,t){if("slot"===t)m(e=e.__shady_parentNode)&&Zt(u(e).root);else if("slot"===e.localName&&"name"===t&&(t=hn(e))){if(t.g){on(t);var n=e.Y,r=sn(e);if(r!==n){var o=(n=t.h[n]).indexOf(e);0<=o&&n.splice(o,1),(n=t.h[r]||(t.h[r]=[])).push(e),1<n.length&&(t.h[r]=an(n))}}Zt(t)}}var St=M({get previousElementSibling(){var e=u(this);if(e&&void 0!==e.previousSibling){for(e=this.__shady_previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_previousElementSibling},get nextElementSibling(){var e=u(this);if(e&&void 0!==e.nextSibling){for(e=this.__shady_nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},set slot(e){this.__shady_setAttribute("slot",e)},get className(){return this.getAttribute("class")||""},set className(e){this.__shady_setAttribute("class",e)},setAttribute:function(e,t){this.ownerDocument!==vt?this.__shady_native_setAttribute(e,t):Je(this,e,t)||(this.__shady_native_setAttribute(e,t),gt(this,e))},removeAttribute:function(e){this.ownerDocument!==vt?this.__shady_native_removeAttribute(e):Je(this,e,"")?""===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),gt(this,e))},toggleAttribute:function(e,t){return this.ownerDocument!==vt?this.__shady_native_toggleAttribute(e,t):Je(this,e,"")?""!==this.getAttribute(e)||t?void 0:this.__shady_native_toggleAttribute(e,t):(t=this.__shady_native_toggleAttribute(e,t),gt(this,e),t)}});c.C||Ue.forEach((function(e){St[e]=Ve(e)}));var bt=M({attachShadow:function(e){if(!this)throw Error("Must provide a host.");if(!e)throw Error("Not enough arguments.");if(e.shadyUpgradeFragment&&!c.V){var t=e.shadyUpgradeFragment;if(t.__proto__=ShadowRoot.prototype,$t(t,this,e),Vt(t,t),e=t.__noInsertionPoint?null:t.querySelectorAll("slot"),t.__noInsertionPoint=void 0,e&&e.length){var n=t;rn(n),n.j.push.apply(n.j,i(e)),Zt(t)}t.host.__shady_native_appendChild(t)}else t=new Jt(Xt,this,e);return this.__CE_shadowRoot=t},get shadowRoot(){var e=u(this);return e&&e.ea||null}});A(St,bt);var Et=document.implementation.createHTMLDocument("inert"),Nt=M({get innerHTML(){return _(this)?z("template"===this.localName?this.content:this,P):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{ot(this);var t=this.localName||"div";for(t=this.namespaceURI&&this.namespaceURI!==Et.namespaceURI?Et.createElementNS(this.namespaceURI,t):Et.createElement(t),c.i?t.__shady_native_innerHTML=e:t.innerHTML=e;e=t.__shady_firstChild;)this.__shady_insertBefore(e)}}}),wt=M({blur:function(){var e=u(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});c.C||qe.forEach((function(e){wt[e]=Ve(e)}));var Ct=M({assignedNodes:function(e){if("slot"===this.localName){var t=this.__shady_getRootNode();return t&&y(t)&&Qt(t),(t=u(this))&&(e&&e.flatten?t.u:t.assignedNodes)||[]}},addEventListener:function(e,n,r){if("slot"!==this.localName||"slotchange"===e)Re.call(this,e,n,r);else{"object"!==t(r)&&(r={capture:!!r});var o=this.__shady_parentNode;if(!o)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");r.o=this,o.__shady_addEventListener(e,n,r)}},removeEventListener:function(e,n,r){if("slot"!==this.localName||"slotchange"===e)Le.call(this,e,n,r);else{"object"!==t(r)&&(r={capture:!!r});var o=this.__shady_parentNode;if(!o)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");r.o=this,o.__shady_removeEventListener(e,n,r)}}}),Tt=M({getElementById:function(e){return""===e?null:ct(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}});function Ot(e,t){for(var n;t&&!e.has(n=t.__shady_getRootNode());)t=n.host;return t}var Pt="__shady_native_"+p(),xt=M({get activeElement(){var e=c.i?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var t=!!y(this);if(!(this===document||t&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(t=hn(e);t&&t!==this;)t=hn(e=t.host);return this===document?t?null:e:t===this?e:null},elementsFromPoint:function(e,t){if(e=document[Pt](e,t),this===document&&c.useNativeDocumentEFP)return e;e=[].slice.call(e),t=function(e){var t=new Set;for(t.add(e);y(e)&&e.host;)e=e.host.__shady_getRootNode(),t.add(e);return t}(this);for(var n=new Set,r=0;r<e.length;r++)n.add(Ot(t,e[r]));var o=[];return n.forEach((function(e){return o.push(e)})),o},elementFromPoint:function(e,t){return this===document&&c.useNativeDocumentEFP?this.__shady_native_elementFromPoint(e,t):this.__shady_elementsFromPoint(e,t)[0]||null}}),kt=window.document,Dt=M({importNode:function(e,t){if(e.ownerDocument!==kt||"template"===e.localName)return this.__shady_native_importNode(e,t);var n=this.__shady_native_importNode(e,!1);if(t)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t=this.__shady_importNode(e,!0),n.__shady_appendChild(t);return n}}),Mt=M({dispatchEvent:Ae,addEventListener:Re.bind(window),removeEventListener:Le.bind(window)}),At={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(At.parentElement=st.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(At.contains=st.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(At.children=ht.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(At.innerHTML=Nt.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(At.className=St.className);var Rt={EventTarget:[Xe],Node:[st,window.EventTarget?null:Xe],Text:[at],Comment:[at],CDATASection:[at],ProcessingInstruction:[at],Element:[St,ht,mt,at,!c.i||"innerHTML"in Element.prototype?Nt:null,window.HTMLSlotElement?null:Ct],HTMLElement:[wt,At],HTMLSlotElement:[Ct],DocumentFragment:[yt,Tt],Document:[Dt,yt,Tt,xt],Window:[Mt],CharacterData:[mt],XMLHttpRequest:[window.EventTarget?null:Xe]},Lt=c.i?null:["innerHTML","textContent"];function It(e,t,n,r){t.forEach((function(t){return e&&t&&k(e,t,n,r)}))}function jt(e){var t,n=e?null:Lt;for(t in Rt)It(window[t]&&window[t].prototype,Rt[t],e,n)}function Ft(e){return e.__shady_protoIsPatched=!0,It(e,Rt.EventTarget),It(e,Rt.Node),It(e,Rt.Element),It(e,Rt.HTMLElement),It(e,Rt.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var t=window[e],n=Object.create(t.prototype);n.__shady_protoIsPatched=!0,It(n,Rt.EventTarget),It(n,Rt.Node),Rt[e]&&It(n,Rt[e]),t.prototype.__shady_patchedProto=n}));var Ht=c.O,Bt=c.i;function Ut(e,t){if(Ht&&!e.__shady_protoIsPatched&&!y(e)){var n=Object.getPrototypeOf(e),r=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;r||(Ft(r=Object.create(n)),n.__shady_patchedProto=r),Object.setPrototypeOf(e,r)}Bt||(1===t?fe(e):2===t&&pe(e))}function qt(e,t,n,r){Ut(e,1),r=r||null;var o=l(e),i=r?l(r):null;o.previousSibling=r?i.previousSibling:t.__shady_lastChild,(i=u(o.previousSibling))&&(i.nextSibling=e),(i=u(o.nextSibling=r))&&(i.previousSibling=e),o.parentNode=t,r?r===n.firstChild&&(n.firstChild=e):(n.lastChild=e,n.firstChild||(n.firstChild=e)),n.childNodes=null}function Vt(e,t){var n=l(e);if(t||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=e.__shady_native_firstChild;for(n.lastChild=e.__shady_native_lastChild,Ut(e,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var o=l(n);o.parentNode=t||e,o.nextSibling=n.__shady_native_nextSibling,o.previousSibling=r||null,r=n,Ut(n,1)}}}var Gt=M({addEventListener:function(e,n,r){"object"!==t(r)&&(r={capture:!!r}),r.o=r.o||this,this.host.__shady_addEventListener(e,n,r)},removeEventListener:function(e,n,r){"object"!==t(r)&&(r={capture:!!r}),r.o=r.o||this,this.host.__shady_removeEventListener(e,n,r)}});function Wt(e,t){k(e,Gt,t),k(e,xt,t),k(e,Nt,t),k(e,ht,t),c.l&&!t?(k(e,st,t),k(e,Tt,t)):c.i||(k(e,ue),k(e,ae),k(e,le))}var Kt,Xt={},zt=c.deferConnectionCallbacks&&"loading"===document.readyState;function Yt(e){var t=[];do{t.unshift(e)}while(e=e.__shady_parentNode);return t}function Jt(e,t,n){if(e!==Xt)throw new TypeError("Illegal constructor");this.g=null,$t(this,t,n)}function $t(e,t,n){if(e.host=t,e.mode=n&&n.mode,Vt(e.host),(t=l(e.host)).root=e,t.ea="closed"!==e.mode?e:null,(t=l(e)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,c.preferPerformance)for(;t=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(t);else Zt(e)}function Zt(e){e.s||(e.s=!0,H((function(){return Qt(e)})))}function Qt(e){var t;if(t=e.s){for(var n;e;)e.s&&(n=e),y(e=(t=e).host.__shady_getRootNode())&&(t=u(t.host))&&0<t.F||(e=void 0);t=n}(n=t)&&n._renderSelf()}function en(e,t,n){var r=l(t),o=r.L;r.L=null,n||(n=(e=e.h[t.__shady_slot||"__catchall"])&&e[0]),n?(l(n).assignedNodes.push(t),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(l(r.assignedSlot).M=!0)}function tn(e,t,n){for(var r=0,o=void 0;r<n.length&&(o=n[r]);r++)if("slot"==o.localName){var i=u(o).assignedNodes;i&&i.length&&tn(e,t,i)}else t.push(n[r])}function nn(e,t){t.__shady_native_dispatchEvent(new Event("slotchange")),(t=u(t)).assignedSlot&&nn(e,t.assignedSlot)}function rn(e){e.j=e.j||[],e.g=e.g||[],e.h=e.h||{}}function on(e){if(e.j&&e.j.length){for(var t,n=e.j,r=0;r<n.length;r++){var o=n[r];Vt(o);var i=o.__shady_parentNode;Vt(i),(i=u(i)).F=(i.F||0)+1,i=sn(o),e.h[i]?((t=t||{})[i]=!0,e.h[i].push(o)):e.h[i]=[o],e.g.push(o)}if(t)for(var s in t)e.h[s]=an(e.h[s]);e.j=[]}}function sn(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.Y=t}function an(e){return e.sort((function(e,t){e=Yt(e);for(var n=Yt(t),r=0;r<e.length;r++){t=e[r];var o=n[r];if(t!==o)return(e=P(t.__shady_parentNode)).indexOf(t)-e.indexOf(o)}}))}function ln(e){return on(e),!(!e.g||!e.g.length)}if(Jt.prototype._renderSelf=function(){var e=zt;if(zt=!0,this.s=!1,this.g){on(this);for(var t,n=0;n<this.g.length;n++){var r=u(t=this.g[n]),o=r.assignedNodes;if(r.assignedNodes=[],r.u=[],r.R=o)for(r=0;r<o.length;r++){var i=u(o[r]);i.L=i.assignedSlot,i.assignedSlot===t&&(i.assignedSlot=null)}}for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)en(this,n);for(n=0;n<this.g.length;n++){if(!(o=u(t=this.g[n])).assignedNodes.length)for(r=t.__shady_firstChild;r;r=r.__shady_nextSibling)en(this,r,t);if((r=(r=u(t.__shady_parentNode))&&r.root)&&(ln(r)||r.s)&&r._renderSelf(),tn(this,o.u,o.assignedNodes),r=o.R){for(i=0;i<r.length;i++)u(r[i]).L=null;o.R=null,r.length>o.assignedNodes.length&&(o.M=!0)}o.M&&(o.M=!1,nn(this,t))}for(t=this.g,n=[],o=0;o<t.length;o++)(i=u(r=t[o].__shady_parentNode))&&i.root||!(0>n.indexOf(r))||n.push(r);for(t=0;t<n.length;t++){for(o=(i=n[t])===this?this.host:i,r=[],i=i.__shady_firstChild;i;i=i.__shady_nextSibling)if("slot"==i.localName)for(var s=u(i).u,a=0;a<s.length;a++)r.push(s[a]);else r.push(i);i=O(o),s=We(r,r.length,i,i.length);for(var l=a=0,d=void 0;a<s.length&&(d=s[a]);a++){for(var h=0,f=void 0;h<d.D.length&&(f=d.D[h]);h++)f.__shady_native_parentNode===o&&o.__shady_native_removeChild(f),i.splice(d.index+l,1);l-=d.G}for(l=0,d=void 0;l<s.length&&(d=s[l]);l++)for(a=i[d.index],h=d.index;h<d.index+d.G;h++)f=r[h],o.__shady_native_insertBefore(f,a),i.splice(h,0,f)}}if(!c.preferPerformance&&!this.P)for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)t=u(n),n.__shady_native_parentNode!==this.host||"slot"!==n.localName&&t.assignedSlot||this.host.__shady_native_removeChild(n);this.P=!0,zt=e,Kt&&Kt()},function(e){e.__proto__=DocumentFragment.prototype,Wt(e,"__shady_"),Wt(e),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(t){Object.defineProperty(e,t,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return this.host[t]},configurable:!0})}))}(Jt.prototype),window.customElements&&window.customElements.define&&c.N&&!c.preferPerformance){var un=new Map;Kt=function(){var e=[];un.forEach((function(t,n){e.push([n,t])})),un.clear();for(var t=0;t<e.length;t++){var n=e[t][0];e[t][1]?n.__shadydom_connectedCallback():n.__shadydom_disconnectedCallback()}},zt&&document.addEventListener("readystatechange",(function(){zt=!1,Kt()}),{once:!0});var cn=window.customElements.define,dn=function(e,t){var n=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;cn.call(window.customElements,e,function(e,t,n){var r=0,o="__isConnected"+r++;return(t||n)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){zt?un.set(this,!0):this[o]||(this[o]=!0,t&&t.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){zt?this.isConnected||un.set(this,!1):this[o]&&(this[o]=!1,n&&n.call(this))}),e}(t,n,r)),t.prototype.connectedCallback=n,t.prototype.disconnectedCallback=r};window.customElements.define=dn,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:dn,configurable:!0})}function hn(e){if(y(e=e.__shady_getRootNode()))return e}function fn(e){this.node=e}function pn(e){Object.defineProperty(fn.prototype,e,{get:function(){return this.node["__shady_"+e]},set:function(t){this.node["__shady_"+e]=t},configurable:!0})}(n=fn.prototype).addEventListener=function(e,t,n){return this.node.__shady_addEventListener(e,t,n)},n.removeEventListener=function(e,t,n){return this.node.__shady_removeEventListener(e,t,n)},n.appendChild=function(e){return this.node.__shady_appendChild(e)},n.insertBefore=function(e,t){return this.node.__shady_insertBefore(e,t)},n.removeChild=function(e){return this.node.__shady_removeChild(e)},n.replaceChild=function(e,t){return this.node.__shady_replaceChild(e,t)},n.cloneNode=function(e){return this.node.__shady_cloneNode(e)},n.getRootNode=function(e){return this.node.__shady_getRootNode(e)},n.contains=function(e){return this.node.__shady_contains(e)},n.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},n.setAttribute=function(e,t){this.node.__shady_setAttribute(e,t)},n.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},n.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},n.toggleAttribute=function(e,t){return this.node.__shady_toggleAttribute(e,t)},n.attachShadow=function(e){return this.node.__shady_attachShadow(e)},n.focus=function(){this.node.__shady_native_focus()},n.blur=function(){this.node.__shady_blur()},n.importNode=function(e,t){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,t)},n.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},n.elementsFromPoint=function(e,t){return this.node.__shady_elementsFromPoint(e,t)},n.elementFromPoint=function(e,t){return this.node.__shady_elementFromPoint(e,t)},n.querySelector=function(e){return this.node.__shady_querySelector(e)},n.querySelectorAll=function(e,t){return this.node.__shady_querySelectorAll(e,t)},n.assignedNodes=function(e){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(e)},n.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_append.apply(this.node,i(t))},n.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_prepend.apply(this.node,i(t))},n.after=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_after.apply(this.node,i(t))},n.before=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_before.apply(this.node,i(t))},n.remove=function(){return this.node.__shady_remove()},n.replaceWith=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_replaceWith.apply(this.node,i(t))},s.Object.defineProperties(fn.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(y(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(y(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(e){this.node.__shady_innerHTML=e}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(e){this.node.__shady_textContent=e}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(e){this.node.__shady_slot=e}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(e){this.node.__shady_className=e}}}),Ue.forEach((function(e){return pn(e)})),qe.forEach((function(e){return pn(e)}));var _n=new WeakMap;function yn(e){if(y(e)||e instanceof fn)return e;var t=_n.get(e);return t||(t=new fn(e),_n.set(e,t)),t}if(c.N){var mn=c.i?function(e){return e}:function(e){return pe(e),fe(e),e};window.ShadyDOM={inUse:c.N,patch:mn,isShadyRoot:y,enqueue:H,flush:B,flushInitial:function(e){!e.P&&e.s&&Qt(e)},settings:c,filterMutations:function(e,t){var n=t.getRootNode();return e.map((function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if((t=[].slice.call(e.addedNodes).filter((function(e){return n===e.getRootNode()}))).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e})).filter((function(e){return e}))},observeChildren:function(e,t){var n=l(e);n.B||(n.B=new U),n.B.H.add(t);var r=n.B;return{Z:t,ba:r,aa:e,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.ba;t&&(t.H.delete(e.Z),t.H.size||(l(e.aa).B=null))},deferConnectionCallbacks:c.deferConnectionCallbacks,preferPerformance:c.preferPerformance,handlesDynamicScoping:!0,wrap:c.l?yn:mn,wrapIfNeeded:!0===c.l?yn:function(e){return e},Wrapper:fn,composedPath:function(e){return e.__composedPath||(e.__composedPath=Ee(e.target,!0)),e.__composedPath},noPatch:c.l,patchOnDemand:c.O,nativeMethods:J,nativeTree:$,patchElementProto:Ft,querySelectorImplementation:c.querySelectorImplementation},function(){var e=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(ee(window.EventTarget.prototype,e),void 0===window.__shady_native_addEventListener&&ee(Window.prototype,e)):(ee(Node.prototype,e),ee(Window.prototype,e),ee(XMLHttpRequest.prototype,e)),Y?ee(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Q(Node.prototype,{parentNode:{get:function(){return te.currentNode=this,te.parentNode()}},firstChild:{get:function(){return te.currentNode=this,te.firstChild()}},lastChild:{get:function(){return te.currentNode=this,te.lastChild()}},previousSibling:{get:function(){return te.currentNode=this,te.previousSibling()}},nextSibling:{get:function(){return te.currentNode=this,te.nextSibling()}},childNodes:{get:function(){var e=[];te.currentNode=this;for(var t=te.firstChild();t;)e.push(t),t=te.nextSibling();return e}},parentElement:{get:function(){return ne.currentNode=this,ne.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:oe(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(e),void 0);break;default:this.nodeValue=e}}}}),ee(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")),ee(HTMLElement.prototype,["parentElement","contains"]),e={firstElementChild:{get:function(){return ne.currentNode=this,ne.firstChild()}},lastElementChild:{get:function(){return ne.currentNode=this,ne.lastChild()}},children:{get:function(){var e=[];ne.currentNode=this;for(var t=ne.firstChild();t;)e.push(t),t=ne.nextSibling();return T(e)}},childElementCount:{get:function(){return this.children?this.children.length:0}}},Y?(ee(Element.prototype,ie),ee(Element.prototype,["previousElementSibling","nextElementSibling","innerHTML","className"]),ee(HTMLElement.prototype,["children","innerHTML","className"])):(Q(Element.prototype,e),Q(Element.prototype,{previousElementSibling:{get:function(){return ne.currentNode=this,ne.previousSibling()}},nextElementSibling:{get:function(){return ne.currentNode=this,ne.nextSibling()}},innerHTML:{get:function(){return z(this,O)},set:function(e){var t="template"===this.localName?this.content:this;oe(t);var n=this.localName||"div";for((n=this.namespaceURI&&this.namespaceURI!==re.namespaceURI?re.createElementNS(this.namespaceURI,n):re.createElement(n)).innerHTML=e,e="template"===this.localName?n.content:n;n=e.__shady_native_firstChild;)t.__shady_native_insertBefore(n,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)}}})),ee(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute toggleAttribute focus blur".split(" ")),ee(Element.prototype,se),ee(HTMLElement.prototype,["focus","blur"]),window.HTMLTemplateElement&&ee(window.HTMLTemplateElement.prototype,["innerHTML"]),Y?ee(DocumentFragment.prototype,ie):Q(DocumentFragment.prototype,e),ee(DocumentFragment.prototype,se),Y?(ee(Document.prototype,ie),ee(Document.prototype,["activeElement"])):Q(Document.prototype,e),ee(Document.prototype,["importNode","getElementById","elementFromPoint",p()]),ee(Document.prototype,se)}(),jt("__shady_"),Object.defineProperty(document,"_activeElement",xt.activeElement),k(Window.prototype,Mt,"__shady_"),c.l?c.O&&k(Element.prototype,bt):(jt(),function(){if(!ye&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var e=function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(e)};Element.prototype.click?Element.prototype.click=e:HTMLElement.prototype.click&&(HTMLElement.prototype.click=e)}}()),function(){for(var e in Oe)window.__shady_native_addEventListener(e,(function(e){e.__target||(je(e),De(e))}),!0)}(),window.Event=Fe,window.CustomEvent=He,window.MouseEvent=Be,window.ShadowRoot=Jt}}).call(this)}).call(this,n(333))},353:function(e,t,n){"use strict";
15
+ /**
16
+ @license
17
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
18
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
19
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
20
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
21
+ Code distributed by Google as part of the polymer project is also
22
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
23
+ */function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}var a=i((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}));function l(e){return function e(t,n){var r=n.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=r.trim(),t.parent){var o=t.previous?t.previous.end:t.parent.start;r=(r=(r=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}(r=n.substring(o,t.start-1))).replace(m.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var i=t.parsedSelector=t.selector=r.trim();t.atRule=0===i.indexOf(S),t.atRule?0===i.indexOf(g)?t.type=p.MEDIA_RULE:i.match(m.keyframesRule)&&(t.type=p.KEYFRAMES_RULE,t.keyframesName=t.selector.split(m.multipleSpaces).pop()):0===i.indexOf(v)?t.type=p.MIXIN_RULE:t.type=p.STYLE_RULE}var s=t.rules;if(s)for(var a,l=0,u=s.length;l<u&&(a=s[l]);l++)e(a,n);return t}(function(e){var t=new a;t.start=0,t.end=e.length;for(var n=t,r=0,o=e.length;r<o;r++)if(e[r]===_){n.rules||(n.rules=[]);var i=n,s=i.rules[i.rules.length-1]||null;(n=new a).start=r+1,n.parent=i,n.previous=s,i.rules.push(n)}else e[r]===y&&(n.end=r+1,n=n.parent||t);return t}(e=e.replace(m.comments,"").replace(m.port,"")),e)}function u(e){var t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(v)}function c(e){return function(e){return e.replace(m.mixinApply,"").replace(m.varApply,"")}(e=d(e))}function d(e){return e.replace(m.customProp,"").replace(m.mixinProp,"")}var h,f,p={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},_="{",y="}",m={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},v="--",g="@media",S="@",b=!(window.ShadyDOM&&window.ShadyDOM.inUse);function E(e){h=(!e||!e.shimcssproperties)&&(b||Boolean(!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.cssBuild&&(f=window.ShadyCSS.cssBuild);var N=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?h=window.ShadyCSS.nativeCss:window.ShadyCSS?(E(window.ShadyCSS),window.ShadyCSS=void 0):E(window.WebComponents&&window.WebComponents.flags);var w=h,C=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,T=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,O=/(--[\w-]+)\s*([:,;)]|$)/gi,P=/(animation\s*:)|(animation-name\s*:)/,x=/@media\s(.*)/,k=/\{[^}]*\}/g,D=new Set;
24
+ /**
25
+ @license
26
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
27
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
28
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
29
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
30
+ Code distributed by Google as part of the polymer project is also
31
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
32
+ */function M(e){var t=e.textContent;if(!D.has(t)){D.add(t);var n=document.createElement("style");n.setAttribute("shady-unscoped",""),n.textContent=t,document.head.appendChild(n)}}function A(e){return e.hasAttribute("shady-unscoped")}
33
+ /**
34
+ @license
35
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
36
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
37
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
38
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
39
+ Code distributed by Google as part of the polymer project is also
40
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
41
+ */function R(e,t){return e?("string"==typeof e&&(e=l(e)),t&&j(e,t),function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="";if(t.cssText||t.rules){var i=t.rules;if(i&&!u(i))for(var s,a=0,l=i.length;a<l&&(s=i[a]);a++)o=e(s,n,o);else(o=(o=n?t.cssText:c(t.cssText)).trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(r+=t.selector+" "+_+"\n"),r+=o,t.selector&&(r+=y+"\n\n")),r}(e,w)):""}function L(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=l(e.textContent)),e.__cssRules||null}function I(e){return Boolean(e.parent)&&e.parent.type===p.KEYFRAMES_RULE}function j(e,t,n,r){if(e){var o=!1,i=e.type;if(r&&i===p.MEDIA_RULE){var s=e.selector.match(x);s&&(window.matchMedia(s[1]).matches||(o=!0))}i===p.STYLE_RULE?t(e):n&&i===p.KEYFRAMES_RULE?n(e):i===p.MIXIN_RULE&&(o=!0);var a=e.rules;if(a&&!o)for(var l,u=0,c=a.length;u<c&&(l=a[u]);u++)j(l,t,n,r)}}function F(e,t,n,r){var o=function(e,t){var n=document.createElement("style");t&&n.setAttribute("scope",t);return n.textContent=e,n}(e,t);return B(o,n,r),o}var H=null;function B(e,t,n){t=t||document.head;var r=n&&n.nextSibling||t.firstChild;(t.insertBefore(e,r),H)?e.compareDocumentPosition(H)===Node.DOCUMENT_POSITION_PRECEDING&&(H=e):H=e}function U(e,t){for(var n=0,r=t,o=e.length;r<o;r++)if("("===e[r])n++;else if(")"===e[r]&&0==--n)return r;return-1}function q(e,t){b?e.setAttribute("class",t):window.ShadyDOM.nativeMethods.setAttribute.call(e,"class",t)}var V=window.ShadyDOM&&window.ShadyDOM.wrap||function(e){return e};function G(e){var t=e.localName,n="",r="";return t?t.indexOf("-")>-1?n=t:(r=t,n=e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}function W(e){for(var t=[],n="",r=0;r>=0&&r<e.length;r++)if("("===e[r]){var o=U(e,r);n+=e.slice(r,o+1),r=o}else","===e[r]?(t.push(n),n=""):n+=e[r];return n&&t.push(n),t}function K(e){if(void 0!==f)return f;if(void 0===e.__cssBuild){var t=e.getAttribute("css-build");if(t)e.__cssBuild=t;else{var n=function(e){var t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){var n=t.textContent.trim().split(":");if("css-build"===n[0])return n[1]}return""}(e);""!==n&&function(e){var t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
42
+ /**
43
+ @license
44
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
45
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
46
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
47
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
48
+ Code distributed by Google as part of the polymer project is also
49
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
50
+ */(e),e.__cssBuild=n}}return e.__cssBuild||""}function X(e){return""!==K(e)}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!(""===e||!w)&&(b?"shadow"===e:"shady"===e)}function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$(r.key),r)}}function $(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:t+""}var Z=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"SCOPE_NAME",get:function(){return"style-scope"}},{key:"dom",value:function(e,t,n){var r=this;this._transformDom(e,(function(e){r.element(e,t||"",n)}))}},{key:"domAddScope",value:function(e,t){var n=this;this._transformDom(e,(function(e){n.element(e,t||"")}))}},{key:"_transformDom",value:function(e,t){var n;if(e.nodeType===Node.ELEMENT_NODE&&t(e),"template"===e.localName){var r=e;n=(r.content||r._content||r).childNodes}else n=e.children||e.childNodes;if(n)for(var o=0;o<n.length;o++)this._transformDom(n[o],t)}},{key:"element",value:function(e,t,n){if(t)if(e.classList)n?(e.classList.remove("style-scope"),e.classList.remove(t)):(e.classList.add("style-scope"),e.classList.add(t));else if(e.getAttribute){var r=e.getAttribute(fe);n?r&&q(e,r.replace("style-scope","").replace(t,"")):q(e,(r?r+" ":"")+"style-scope "+t)}}},{key:"domReplaceScope",value:function(e,t,n){var r=this;this._transformDom(e,(function(e){r.element(e,t,!0),r.element(e,n)}))}},{key:"domRemoveScope",value:function(e,t){var n=this;this._transformDom(e,(function(e){n.element(e,t||"",!0)}))}},{key:"elementStyles",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if(""===o)if(b||"shady"===r)o=R(t,n);else{var i=G(e),s=i.is,a=i.typeExtension;o=this.css(t,s,a,n)+"\n\n"}return o.trim()}},{key:"css",value:function(e,t,n,r){var o=this._calcHostScope(t,n);t=this._calcElementScope(t);var i=this;return R(e,(function(e){e.isScoped||(i.rule(e,t,o),e.isScoped=!0),r&&r(e,t,o)}))}},{key:"_calcElementScope",value:function(e){return e?de+e:""}},{key:"_calcHostScope",value:function(e,t){return t?"[is=".concat(e,"]"):e}},{key:"rule",value:function(e,t,n){this._transformRule(e,this._transformComplexSelector,t,n)}},{key:"_transformRule",value:function(e,t,n,r){e.selector=e.transformedSelector=this._transformRuleCss(e,t,n,r)}},{key:"_transformRuleCss",value:function(e,t,n,r){var o=W(e.selector);if(!I(e))for(var i,s=0,a=o.length;s<a&&(i=o[s]);s++)o[s]=t.call(this,i,n,r);return o.filter((function(e){return Boolean(e)})).join(te)}},{key:"_twiddleNthPlus",value:function(e){return e.replace(Q,(function(e,t,n){return n.indexOf("+")>-1?n=n.replace(/\+/g,"___"):n.indexOf("___")>-1&&(n=n.replace(/___/g,"+")),":".concat(t,"(").concat(n,")")}))}},{key:"_preserveMatchesPseudo",value:function(e){for(var t,n=[];t=e.match(_e);){var r=t.index,o=U(e,r);if(-1===o)throw new Error("".concat(t.input," selector missing ')'"));var i=e.slice(r,o+1);e=e.replace(i,ye),n.push(i)}return{selector:e,matches:n}}},{key:"_replaceMatchesPseudo",value:function(e,t){var n=e.split(ye);return t.reduce((function(e,t,r){return e+t+n[r+1]}),n[0])}},{key:"_transformComplexSelector",value:function(e,t,n){var r=this,o=!1;e=e.trim();var i=Q.test(e);i&&(e=e.replace(Q,(function(e,t,n){return":".concat(t,"(").concat(n.replace(/\s/g,""),")")})),e=this._twiddleNthPlus(e));var s,a=_e.test(e);if(a){var l=this._preserveMatchesPseudo(e);e=l.selector,s=l.matches}return e=(e=e.replace(ae,"".concat(oe," $1"))).replace(ne,(function(e,i,s){if(!o){var a=r._transformCompoundSelector(s,i,t,n);o=o||a.stop,i=a.combinator,s=a.value}return i+s})),a&&(e=this._replaceMatchesPseudo(e,s)),i&&(e=this._twiddleNthPlus(e)),e=e.replace(ce,(function(e,t,n,r){return'[dir="'.concat(n,'"] ').concat(t).concat(r,", ").concat(t,'[dir="').concat(n,'"]').concat(r)}))}},{key:"_transformCompoundSelector",value:function(e,t,n,r){var o=e.indexOf(se);e.indexOf(oe)>=0?e=this._transformHostSelector(e,r):0!==o&&(e=n?this._transformSimpleSelector(e,n):e);var i,s=!1;return o>=0&&(t="",s=!0),s&&(i=!0,s&&(e=e.replace(ue,(function(e,t){return" > ".concat(t)})))),{value:e,combinator:t,stop:i}}},{key:"_transformSimpleSelector",value:function(e,t){for(var n=e.split(/(\[.+?\])/),r=[],o=0;o<n.length;o++)if(o%2==1)r.push(n[o]);else{var i=n[o];if(""!==i||o!==n.length-1){var s=i.split(he);s[0]+=t,r.push(s.join(he))}}return r.join("")}},{key:"_transformHostSelector",value:function(e,t){var n=e.match(le),r=n&&n[2].trim()||"";return r?r[0].match(re)?e.replace(le,(function(e,n,r){return t+r})):r.split(re)[0]===t?r:pe:e.replace(oe,t)}},{key:"documentRule",value:function(e){e.selector=e.parsedSelector,this.normalizeRootSelector(e),this._transformRule(e,this._transformDocumentSelector)}},{key:"normalizeRootSelector",value:function(e){e.selector===ie&&(e.selector="html")}},{key:"_transformDocumentSelector",value:function(e){return e.match(oe)?"":e.match(se)?this._transformComplexSelector(e,ee):this._transformSimpleSelector(e.trim(),ee)}}])&&J(e.prototype,t),n&&J(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Q=/:(nth[-\w]+)\(([^)]+)\)/,ee=":not(.".concat("style-scope",")"),te=",",ne=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,re=/[[.:#*]/,oe=":host",ie=":root",se="::slotted",ae=new RegExp("^(".concat(se,")")),le=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ue=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ce=/(.*):dir\((?:(ltr|rtl))\)(.*)/,de=".",he=":",fe="class",pe="should_not_match",_e=/:(?:matches|any|-(?:webkit|moz)-any)/,ye="",me=new Z;
51
+ /**
52
+ @license
53
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
54
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
55
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
56
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
57
+ Code distributed by Google as part of the polymer project is also
58
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
59
+ */
60
+ function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Se(r.key),r)}}function Se(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ve(t)?t:t+""}var be=function(){return e=function e(t,n,r,o,i,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.styleRules=t||null,this.placeholder=n||null,this.ownStylePropertyNames=r||[],this.overrideStyleProperties=null,this.elementName=o||"",this.cssBuild=s||"",this.typeExtension=i||"",this.styleProperties=null,this.scopeSelector=null,this.customStyle=null},n=[{key:"get",value:function(e){return e?e.__styleInfo:null}},{key:"set",value:function(e,t){return e.__styleInfo=t,t}}],(t=[{key:"_getStyleRules",value:function(){return this.styleRules}}])&&ge(e.prototype,t),n&&ge(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();
61
+ /**
62
+ @license
63
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
64
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
65
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
66
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
67
+ Code distributed by Google as part of the polymer project is also
68
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
69
+ */
70
+ function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,we(r.key),r)}}function we(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:t+""}be.prototype._getStyleRules=be.prototype._getStyleRules;var Ce=function(e){var t=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return t&&t.call(this,e)},Te=/:host\s*>\s*/;var Oe=navigator.userAgent.match("Trident");var Pe=new(function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"XSCOPE_NAME",get:function(){return"x-scope"}},{key:"decorateStyles",value:function(e){var t=this,n={},r=[],o=0;j(e,(function(e){t.decorateRule(e),e.index=o++,t.collectPropertiesInCssText(e.propertyInfo.cssText,n)}),(function(e){r.push(e)})),e._keyframes=r;var i=[];for(var s in n)i.push(s);return i}},{key:"decorateRule",value:function(e){if(e.propertyInfo)return e.propertyInfo;var t={},n={};return this.collectProperties(e,n)&&(t.properties=n,e.rules=null),t.cssText=this.collectCssText(e),e.propertyInfo=t,t}},{key:"collectProperties",value:function(e,t){var n=e.propertyInfo;if(!n){for(var r,o,i,s=C,a=e.parsedCssText;r=s.exec(a);)"inherit"===(o=(r[2]||r[3]).trim())&&"unset"===o||(t[r[1].trim()]=o),i=!0;return i}if(n.properties)return Object.assign(t,n.properties),!0}},{key:"collectCssText",value:function(e){return this.collectConsumingCssText(e.parsedCssText)}},{key:"collectConsumingCssText",value:function(e){return e.replace(k,"").replace(C,"")}},{key:"collectPropertiesInCssText",value:function(e,t){for(var n;n=O.exec(e);){var r=n[1];":"!==n[2]&&(t[r]=!0)}}},{key:"reify",value:function(e){for(var t,n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++)e[t=n[r]]=this.valueForProperty(e[t],e)}},{key:"valueForProperty",value:function(e,t){if(e)if(e.indexOf(";")>=0)e=this.valueForProperties(e,t);else{var n=this;e=function e(t,n){var r=t.indexOf("var(");if(-1===r)return n(t,"","","");var o=U(t,r+3),i=t.substring(r+4,o),s=t.substring(0,r),a=e(t.substring(o+1),n),l=i.indexOf(",");return-1===l?n(s,i.trim(),"",a):n(s,i.substring(0,l).trim(),i.substring(l+1).trim(),a)}(e,(function(e,r,o,i){if(!r)return e+i;var s=n.valueForProperty(t[r],t);return s&&"initial"!==s?"apply-shim-inherit"===s&&(s="inherit"):s=n.valueForProperty(t[o]||o,t)||o,e+(s||"")+i}))}return e&&e.trim()||""}},{key:"valueForProperties",value:function(e,t){for(var n,r,o=e.split(";"),i=0;i<o.length;i++)if(n=o[i]){if(T.lastIndex=0,r=T.exec(n))n=this.valueForProperty(t[r[1]],t);else{var s=n.indexOf(":");if(-1!==s){var a=n.substring(s);a=a.trim(),a=this.valueForProperty(a,t)||a,n=n.substring(0,s)+a}}o[i]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return o.join(";")}},{key:"applyProperties",value:function(e,t){var n="";e.propertyInfo||this.decorateRule(e),e.propertyInfo.cssText&&(n=this.valueForProperties(e.propertyInfo.cssText,t)),e.cssText=n}},{key:"applyKeyframeTransforms",value:function(e,t){var n=e.cssText,r=e.cssText;if(null==e.hasAnimations&&(e.hasAnimations=P.test(n)),e.hasAnimations)if(null==e.keyframeNamesToTransform)for(var o in e.keyframeNamesToTransform=[],t)n!==(r=(0,t[o])(n))&&(n=r,e.keyframeNamesToTransform.push(o));else{for(var i=0;i<e.keyframeNamesToTransform.length;++i)n=(0,t[e.keyframeNamesToTransform[i]])(n);r=n}e.cssText=r}},{key:"propertyDataFromStyles",value:function(e,t){var n=this,r={},o=[];return j(e,(function(e){e.propertyInfo||n.decorateRule(e);var i=e.transformedSelector||e.parsedSelector;t&&e.propertyInfo.properties&&i&&Ce.call(t,i)&&(n.collectProperties(e,r),function(e,t){var n=parseInt(e/32,10),r=1<<e%32;t[n]=(t[n]||0)|r}(e.index,o))}),null,!0),{properties:r,key:o}}},{key:"whenHostOrRootRule",value:function(e,t,n,r){if(t.propertyInfo||this.decorateRule(t),t.propertyInfo.properties){var o=G(e),i=o.is,s=o.typeExtension,a=i?me._calcHostScope(i,s):"html",l=t.parsedSelector,u=function(e,t){return Boolean(t.match(Te))||"html"===e&&t.indexOf("html")>-1}(a,l),c=0===l.indexOf(":host")&&!u;if("shady"===n&&(c=!(u=l===a+" > *."+a||-1!==l.indexOf("html"))&&0===l.indexOf(a)),u||c){var d=a;c&&(t.transformedSelector||(t.transformedSelector=me._transformRuleCss(t,me._transformComplexSelector,me._calcElementScope(i),a)),d=t.transformedSelector||a),u&&"html"===a&&(d=t.transformedSelector||t.parsedSelector),r({selector:d,isHost:c,isRoot:u})}}}},{key:"hostAndRootPropertiesForScope",value:function(e,t,n){var r=this,o={},i={};return j(t,(function(t){r.whenHostOrRootRule(e,t,n,(function(n){var s=e._element||e;Ce.call(s,n.selector)&&(n.isHost?r.collectProperties(t,o):r.collectProperties(t,i))}))}),null,!0),{rootProps:i,hostProps:o}}},{key:"transformStyles",value:function(e,t,n){var r=this,o=G(e),i=o.is,s=o.typeExtension,a=me._calcHostScope(i,s),l=e.extends?"\\"+a.slice(0,-1)+"\\]":a,u=new RegExp("(?:^|[^.#[:])"+l+"($|[.:[\\s>+~])"),c=be.get(e),d=c.styleRules,h=c.cssBuild,f=this._elementKeyframeTransforms(e,d,n);return me.elementStyles(e,d,(function(e){r.applyProperties(e,t),b||I(e)||!e.cssText||(r.applyKeyframeTransforms(e,f),r._scopeSelector(e,u,a,n))}),h)}},{key:"_elementKeyframeTransforms",value:function(e,t,n){var r=t._keyframes,o={};if(!b&&r)for(var i=0,s=r[i];i<r.length;s=r[++i])this._scopeKeyframes(s,n),o[s.keyframesName]=this._keyframesRuleTransformer(s);return o}},{key:"_keyframesRuleTransformer",value:function(e){return function(t){return t.replace(e.keyframesNameRx,e.transformedKeyframesName)}}},{key:"_scopeKeyframes",value:function(e,t){e.keyframesNameRx=new RegExp("\\b".concat(e.keyframesName,"(?!\\B|-)"),"g"),e.transformedKeyframesName=e.keyframesName+"-"+t,e.transformedSelector=e.transformedSelector||e.selector,e.selector=e.transformedSelector.replace(e.keyframesName,e.transformedKeyframesName)}},{key:"_scopeSelector",value:function(e,t,n,r){e.transformedSelector=e.transformedSelector||e.selector;for(var o,i="."+r,s=W(e.transformedSelector),a=0,l=s.length;a<l&&(o=s[a]);a++)s[a]=o.match(t)?o.replace(n,i):i+" "+o;e.selector=s.join(",")}},{key:"applyElementScopeSelector",value:function(e,t,n){var r=e.getAttribute("class")||"",o=r;n&&(o=r.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),r!==(o+=(o?" ":"")+"x-scope "+t)&&q(e,o)}},{key:"applyElementStyle",value:function(e,t,n,r){var o=r?r.textContent||"":this.transformStyles(e,t,n),i=be.get(e),s=i.customStyle;return s&&!b&&s!==r&&(s._useCount--,s._useCount<=0&&s.parentNode&&s.parentNode.removeChild(s)),b?i.customStyle?(i.customStyle.textContent=o,r=i.customStyle):o&&(r=F(o,n,e.shadowRoot,i.placeholder)):r?r.parentNode||(Oe&&o.indexOf("@media")>-1&&(r.textContent=o),B(r,null,i.placeholder)):o&&(r=F(o,n,null,i.placeholder)),r&&(r._useCount=r._useCount||0,i.customStyle!=r&&r._useCount++,i.customStyle=r),r}},{key:"applyCustomStyle",value:function(e,t){var n=L(e),r=this;e.textContent=R(n,(function(e){var n=e.cssText=e.parsedCssText;e.propertyInfo&&e.propertyInfo.cssText&&(n=d(n),e.cssText=r.valueForProperties(n,t))}))}}])&&Ne(e.prototype,t),n&&Ne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()),xe={};
71
+ /**
72
+ @license
73
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
74
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
75
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
76
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
77
+ Code distributed by Google as part of the polymer project is also
78
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
79
+ */function ke(e){return xe[e]||null}function De(e){var t,n,r,o;xe[e]||(xe[e]=(t=e,n=document.createComment(" Shady DOM styles for "+t+" "),r=H?H.nextSibling:null,(o=document.head).insertBefore(n,r||o.firstChild),H=n,n))}var Me=window.customElements;if(Me&&!b&&!N){var Ae=Me.define;Me.define=function(e,t,n){De(e),Ae.call(Me,e,t,n)}}
80
+ /**
81
+ @license
82
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
83
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
84
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
85
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
86
+ Code distributed by Google as part of the polymer project is also
87
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
88
+ */function Re(e){return(Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,je(r.key),r)}}function je(e){var t=function(e,t){if("object"!=Re(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Re(t)?t:t+""}var Fe=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;Le(this,e),this.cache={},this.typeMax=t},(t=[{key:"_validate",value:function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];if(e.properties[o]!==t[o])return!1}return!0}},{key:"store",value:function(e,t,n,r){var o=this.cache[e]||[];o.push({properties:t,styleElement:n,scopeSelector:r}),o.length>this.typeMax&&o.shift(),this.cache[e]=o}},{key:"fetch",value:function(e,t,n){var r=this.cache[e];if(r)for(var o=r.length-1;o>=0;o--){var i=r[o];if(this._validate(i,t,n))return i}}}])&&Ie(e.prototype,t),n&&Ie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),He=function(){};
89
+ /**
90
+ @license
91
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
92
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
93
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
94
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
95
+ Code distributed by Google as part of the polymer project is also
96
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
97
+ */var Be=new RegExp("".concat(me.SCOPE_NAME,"\\s*([^\\s]*)"));function Ue(e){var t=function(e){return e.classList&&e.classList.value?e.classList.value:e.getAttribute("class")||""}(e).match(Be);return t?t[1]:""}function qe(e){var t=V(e).getRootNode();if(t===e||t===e.ownerDocument)return"";var n=t.host;return n?G(n).is:""}function Ve(e){for(var t=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(.".concat(me.SCOPE_NAME,")")),n=0;n<t.length;n++){var r=t[n],o=qe(r);o&&me.element(r,o)}}function Ge(e){for(var t=0;t<e.length;t++){var n=e[t];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=o).getRootNode(),s=Ue(o);if(s&&i===o.ownerDocument&&("style"!==(l=o).localName&&"template"!==l.localName||!X(l)))me.domRemoveScope(o,s);else if(i instanceof ShadowRoot){var a=qe(o);a!==s&&me.domReplaceScope(o,s,a),Ve(o)}}}}var l}if(!(b||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var We=new MutationObserver(Ge),Ke=function(e){We.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Ke(document);else{var Xe=function(){Ke(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Xe):requestAnimationFrame((function(){if("loading"===document.readyState){var e=function(){Xe(),document.removeEventListener("readystatechange",e)};document.addEventListener("readystatechange",e)}else Xe()}))}He=function(){Ge(We.takeRecords())}}
98
+ /**
99
+ @license
100
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
101
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
102
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
103
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
104
+ Code distributed by Google as part of the polymer project is also
105
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
106
+ */var ze={},Ye="_applyShimCurrentVersion",Je="_applyShimNextVersion",$e=Promise.resolve();function Ze(e){var t=ze[e];t&&function(e){e[Ye]=e[Ye]||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e[Je]=(e[Je]||0)+1}(t)}function Qe(e){return e[Ye]===e[Je]}function et(e){return!Qe(e)&&e._applyShimValidatingVersion===e[Je]}function tt(e){e._applyShimValidatingVersion=e[Je],e._validating||(e._validating=!0,$e.then((function(){e[Ye]=e[Je],e._validating=!1})))}
107
+ /**
108
+ @license
109
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
110
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
111
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
112
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
113
+ Code distributed by Google as part of the polymer project is also
114
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
115
+ */
116
+ var nt,rt=null,ot=window.HTMLImports&&window.HTMLImports.whenReady||null;function it(e){requestAnimationFrame((function(){ot?ot(e):(rt||(rt=new Promise((function(e){nt=e})),"complete"===document.readyState?nt():document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&nt()}))),rt.then((function(){e&&e()})))}))}
117
+ /**
118
+ @license
119
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
120
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
121
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
122
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
123
+ Code distributed by Google as part of the polymer project is also
124
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
125
+ */function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lt(r.key),r)}}function lt(e){var t=function(e,t){if("object"!=st(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=st(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==st(t)?t:t+""}var ut="__shadyCSSCachedStyle",ct=null,dt=null,ht=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.customStyles=[],this.enqueued=!1,it((function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()}))},(t=[{key:"enqueueDocumentValidation",value:function(){!this.enqueued&&dt&&(this.enqueued=!0,it(dt))}},{key:"addCustomStyle",value:function(e){e.__seenByShadyCSS||(e.__seenByShadyCSS=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}},{key:"getStyleForCustomStyle",value:function(e){return e[ut]?e[ut]:e.getStyle?e.getStyle():e}},{key:"processStyles",value:function(){for(var e=this.customStyles,t=0;t<e.length;t++){var n=e[t];if(!n[ut]){var r=this.getStyleForCustomStyle(n);if(r){var o=r.__appliedElement||r;ct&&ct(o),n[ut]=o}}}return e}}])&&at(e.prototype,t),n&&at(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();
126
+ /**
127
+ @license
128
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
129
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
130
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
131
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
132
+ Code distributed by Google as part of the polymer project is also
133
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
134
+ */
135
+ function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_t(r.key),r)}}function _t(e){var t=function(e,t){if("object"!=ft(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ft(t)?t:t+""}ht.prototype.addCustomStyle=ht.prototype.addCustomStyle,ht.prototype.getStyleForCustomStyle=ht.prototype.getStyleForCustomStyle,ht.prototype.processStyles=ht.prototype.processStyles,Object.defineProperties(ht.prototype,{transformCallback:{get:function(){return ct},set:function(e){ct=e}},validateCallback:{get:function(){return dt},set:function(e){var t=!1;dt||(t=!0),dt=e,t&&this.enqueueDocumentValidation()}}});var yt={},mt=new Fe,vt=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._scopeCounter={},this._documentOwner=document.documentElement;var t=new a;t.rules=[],this._documentOwnerStyleInfo=be.set(this._documentOwner,new be(t)),this._elementsHaveApplied=!1,this._applyShim=null,this._customStyleInterface=null},(t=[{key:"flush",value:function(){He()}},{key:"_generateScopeSelector",value:function(e){var t=this._scopeCounter[e]=(this._scopeCounter[e]||0)+1;return"".concat(e,"-").concat(t)}},{key:"getStyleAst",value:function(e){return L(e)}},{key:"styleAstToString",value:function(e){return R(e)}},{key:"_gatherStyles",value:function(e){return function(e){for(var t=[],n=e.querySelectorAll("style"),r=0;r<n.length;r++){var o=n[r];A(o)?b||(M(o),o.parentNode.removeChild(o)):(t.push(o.textContent),o.parentNode.removeChild(o))}return t.join("").trim()}(e.content)}},{key:"prepareTemplate",value:function(e,t,n){this.prepareTemplateDom(e,t),this.prepareTemplateStyles(e,t,n)}},{key:"prepareTemplateStyles",value:function(e,t,n){if(!e._prepared&&!N){b||De(t),e._prepared=!0,e.name=t,e.extends=n,ze[t]=e;var r=K(e),o=z(r),i={is:t,extends:n},s=this._gatherStyles(e)+(yt[t]||"");if(this._ensure(),!o){var a=!r&&function(e){var t=T.test(e)||C.test(e);return T.lastIndex=0,C.lastIndex=0,t}(s),u=l(s);a&&w&&this._applyShim&&this._applyShim.transformRules(u,t),e._styleAst=u}var c=[];if(w||(c=Pe.decorateStyles(e._styleAst)),!c.length||w){var d=b?e.content:null,h=ke(t),f=this._generateStaticStyle(i,e._styleAst,d,h,r,o?s:"");e._style=f}e._ownPropertyNames=c}}},{key:"prepareAdoptedCssText",value:function(e,t){yt[t]=e.join(" ")}},{key:"prepareTemplateDom",value:function(e,t){if(!N){var n=K(e);b||"shady"===n||e._domPrepared||(e._domPrepared=!0,me.domAddScope(e.content,t))}}},{key:"_generateStaticStyle",value:function(e,t,n,r,o,i){return(i=me.elementStyles(e,t,null,o,i)).length?F(i,e.is,n,r):null}},{key:"_prepareHost",value:function(e){var t=G(e),n=t.is,r=t.typeExtension,o=ke(n),i=ze[n];if(i){var s=i._styleAst,a=i._ownPropertyNames,l=K(i),u=new be(s,o,a,n,r,l);return be.set(e,u),u}}},{key:"_ensureApplyShim",value:function(){return!(this._applyShim||!window.ShadyCSS||!window.ShadyCSS.ApplyShim||(this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=Ze,0))}},{key:"_ensureCustomStyleInterface",value:function(){var e=this;this._customStyleInterface||window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=function(t){e.transformCustomStyleForDocument(t)},this._customStyleInterface.validateCallback=function(){requestAnimationFrame((function(){(e._customStyleInterface.enqueued||e._elementsHaveApplied)&&e.flushCustomStyles()}))})}},{key:"_ensure",value:function(){var e=this._ensureApplyShim();return this._ensureCustomStyleInterface(),e}},{key:"flushCustomStyles",value:function(){if(!N){var e=this._ensure();if(this._customStyleInterface){var t=this._customStyleInterface.processStyles();(e||this._customStyleInterface.enqueued)&&(z(this._documentOwnerStyleInfo.cssBuild)||(w?this._documentOwnerStyleInfo.cssBuild||this._revalidateCustomStyleApplyShim(t):(this._reorderCustomStylesRules(t),this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(t),this._elementsHaveApplied&&this.styleDocument()),this._customStyleInterface.enqueued=!1))}}}},{key:"_reorderCustomStylesRules",value:function(e){var t=this,n=e.map((function(e){return t._customStyleInterface.getStyleForCustomStyle(e)})).filter((function(e){return!!e}));n.sort((function(e,t){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0})),this._documentOwnerStyleInfo.styleRules.rules=n.map((function(e){return L(e)}))}},{key:"styleElement",value:function(e,t){if(N){if(t){be.get(e)||be.set(e,new be(null));var n=be.get(e);this._mixOverrideStyleProps(n,t),this.styleElementNativeVariables(e,n)}}else{var r=be.get(e)||this._prepareHost(e);r&&(this._isRootOwner(e)||(this._elementsHaveApplied=!0),t&&this._mixOverrideStyleProps(r,t),w?this.styleElementNativeVariables(e,r):this.styleElementShimVariables(e,r))}}},{key:"_mixOverrideStyleProps",value:function(e,t){e.overrideStyleProperties=e.overrideStyleProperties||{},Object.assign(e.overrideStyleProperties,t)}},{key:"styleElementShimVariables",value:function(e,t){this.flush(),this._updateProperties(e,t),t.ownStylePropertyNames&&t.ownStylePropertyNames.length&&this._applyStyleProperties(e,t)}},{key:"styleElementNativeVariables",value:function(e,t){var n=G(e).is;t.overrideStyleProperties&&
136
+ /**
137
+ @license
138
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
139
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
140
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
141
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
142
+ Code distributed by Google as part of the polymer project is also
143
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
144
+ */
145
+ function(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}(e,t.overrideStyleProperties);var r=ze[n];if((r||this._isRootOwner(e))&&(!r||!X(r))&&r&&r._style&&!Qe(r)){if(et(r)||(this._ensure(),this._applyShim&&this._applyShim.transformRules(r._styleAst,n),r._style.textContent=me.elementStyles(e,t.styleRules),tt(r)),b){var o=e.shadowRoot;if(o){var i=o.querySelector("style");i&&(i.textContent=me.elementStyles(e,t.styleRules))}}t.styleRules=r._styleAst}}},{key:"_styleOwnerForNode",value:function(e){var t=V(e).getRootNode().host;return t?be.get(t)||this._prepareHost(t)?t:this._styleOwnerForNode(t):this._documentOwner}},{key:"_isRootOwner",value:function(e){return e===this._documentOwner}},{key:"_applyStyleProperties",value:function(e,t){var n=G(e).is,r=mt.fetch(n,t.styleProperties,t.ownStylePropertyNames),o=r&&r.scopeSelector,i=r?r.styleElement:null,s=t.scopeSelector;t.scopeSelector=o||this._generateScopeSelector(n);var a=Pe.applyElementStyle(e,t.styleProperties,t.scopeSelector,i);return b||Pe.applyElementScopeSelector(e,t.scopeSelector,s),r||mt.store(n,t.styleProperties,a,t.scopeSelector),a}},{key:"_updateProperties",value:function(e,t){var n=this._styleOwnerForNode(e),r=be.get(n),o=r.styleProperties;n===this._documentOwner||o||(this._updateProperties(n,r),o=r.styleProperties);var i=Object.create(o||null),s=Pe.hostAndRootPropertiesForScope(e,t.styleRules,t.cssBuild),a=Pe.propertyDataFromStyles(r.styleRules,e).properties;Object.assign(i,s.hostProps,a,s.rootProps),this._mixinOverrideStyles(i,t.overrideStyleProperties),Pe.reify(i),t.styleProperties=i}},{key:"_mixinOverrideStyles",value:function(e,t){for(var n in t){var r=t[n];(r||0===r)&&(e[n]=r)}}},{key:"styleDocument",value:function(e){this.styleSubtree(this._documentOwner,e)}},{key:"styleSubtree",value:function(e,t){var n=V(e),r=n.shadowRoot,o=this._isRootOwner(e);(r||o)&&this.styleElement(e,t);var i=o?n:r;if(i)for(var s=Array.from(i.querySelectorAll("*")).filter((function(e){return V(e).shadowRoot})),a=0;a<s.length;a++)this.styleSubtree(s[a])}},{key:"_revalidateCustomStyleApplyShim",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this._customStyleInterface.getStyleForCustomStyle(n);r&&this._revalidateApplyShim(r)}}},{key:"_applyCustomStyles",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this._customStyleInterface.getStyleForCustomStyle(n);r&&Pe.applyCustomStyle(r,this._documentOwnerStyleInfo.styleProperties)}}},{key:"transformCustomStyleForDocument",value:function(e){var t=this,n=K(e);if(n!==this._documentOwnerStyleInfo.cssBuild&&(this._documentOwnerStyleInfo.cssBuild=n),!z(n)){var r=L(e);j(r,(function(e){b?me.normalizeRootSelector(e):me.documentRule(e),w&&""===n&&(t._ensure(),t._applyShim&&t._applyShim.transformRule(e))})),w?e.textContent=R(r):this._documentOwnerStyleInfo.styleRules.rules.push(r)}}},{key:"_revalidateApplyShim",value:function(e){if(w&&this._applyShim){var t=L(e);this._ensure(),this._applyShim.transformRules(t),e.textContent=R(t)}}},{key:"getComputedStyleValue",value:function(e,t){var n;return w||(n=(be.get(e)||be.get(this._styleOwnerForNode(e))).styleProperties[t]),(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():""}},{key:"setElementClass",value:function(e,t){var n,r=V(e).getRootNode();n=t?("string"==typeof t?t:String(t)).split(/\s/):[];var o=r.host&&r.host.localName;if(!o){var i=e.getAttribute("class");if(i)for(var s=i.split(/\s/),a=0;a<s.length;a++)if(s[a]===me.SCOPE_NAME){o=s[a+1];break}}if(o&&n.push(me.SCOPE_NAME,o),!w){var l=be.get(e);l&&l.scopeSelector&&n.push(Pe.XSCOPE_NAME,l.scopeSelector)}q(e,n.join(" "))}},{key:"_styleInfoForNode",value:function(e){return be.get(e)}},{key:"scopeNode",value:function(e,t){me.element(e,t)}},{key:"unscopeNode",value:function(e,t){me.element(e,t,!0)}},{key:"scopeForNode",value:function(e){return qe(e)}},{key:"currentScopeForNode",value:function(e){return Ue(e)}}])&&pt(e.prototype,t),n&&pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();vt.prototype.flush=vt.prototype.flush,vt.prototype.prepareTemplate=vt.prototype.prepareTemplate,vt.prototype.styleElement=vt.prototype.styleElement,vt.prototype.styleDocument=vt.prototype.styleDocument,vt.prototype.styleSubtree=vt.prototype.styleSubtree,vt.prototype.getComputedStyleValue=vt.prototype.getComputedStyleValue,vt.prototype.setElementClass=vt.prototype.setElementClass,vt.prototype._styleInfoForNode=vt.prototype._styleInfoForNode,vt.prototype.transformCustomStyleForDocument=vt.prototype.transformCustomStyleForDocument,vt.prototype.getStyleAst=vt.prototype.getStyleAst,vt.prototype.styleAstToString=vt.prototype.styleAstToString,vt.prototype.flushCustomStyles=vt.prototype.flushCustomStyles,vt.prototype.scopeNode=vt.prototype.scopeNode,vt.prototype.unscopeNode=vt.prototype.unscopeNode,vt.prototype.scopeForNode=vt.prototype.scopeForNode,vt.prototype.currentScopeForNode=vt.prototype.currentScopeForNode,vt.prototype.prepareAdoptedCssText=vt.prototype.prepareAdoptedCssText,Object.defineProperties(vt.prototype,{nativeShadow:{get:function(){return b}},nativeCss:{get:function(){return w}}});
146
+ /**
147
+ @license
148
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
149
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
150
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
151
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
152
+ Code distributed by Google as part of the polymer project is also
153
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
154
+ */
155
+ var gt,St,bt=new vt;window.ShadyCSS&&(gt=window.ShadyCSS.ApplyShim,St=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:bt,prepareTemplate:function(e,t,n){bt.flushCustomStyles(),bt.prepareTemplate(e,t,n)},prepareTemplateDom:function(e,t){bt.prepareTemplateDom(e,t)},prepareTemplateStyles:function(e,t,n){bt.flushCustomStyles(),bt.prepareTemplateStyles(e,t,n)},styleSubtree:function(e,t){bt.flushCustomStyles(),bt.styleSubtree(e,t)},styleElement:function(e){bt.flushCustomStyles(),bt.styleElement(e)},styleDocument:function(e){bt.flushCustomStyles(),bt.styleDocument(e)},flushCustomStyles:function(){bt.flushCustomStyles()},getComputedStyleValue:function(e,t){return bt.getComputedStyleValue(e,t)},nativeCss:w,nativeShadow:b,cssBuild:f,disableRuntime:N},gt&&(window.ShadyCSS.ApplyShim=gt),St&&(window.ShadyCSS.CustomStyleInterface=St)}}]);