text: !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=37)}([function(t,e,n){"use strict";var r=n(3),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===o.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isUndefined:s,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return a(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return e},deepMerge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]="object"==typeof n?t({},n):n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return e},extend:function(t,e,n){return u(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(s=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([o]).join("\n")}var s,a,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r=0;r<t.length;r++){var o=[].concat(t[r]);n&&(o[2]?o[2]="".concat(n," and ").concat(o[2]):o[2]=n),e.push(o)}},e}},function(t,e,n){"use strict";(function(t,r){var o,i=n(11);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var s=Object(i.a)(o);e.a=s}).call(this,n(18),n(19)(t))},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(0);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(o(e)+"="+o(t))})))})),i=s.join("&")}if(i){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(0),o=n(26),i={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,c={adapter:("undefined"!=typeof XMLHttpRequest?a=n(7):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(a=n(7)),a),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(i)})),t.exports=c}).call(this,n(25))},function(t,e,n){"use strict";var r=n(0),o=n(27),i=n(4),s=n(29),a=n(32),c=n(33),u=n(8);t.exports=function(t){return new Promise((function(e,l){var d=t.data,p=t.headers;r.isFormData(d)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=t.auth.password||"";p.Authorization="Basic "+btoa(f+":"+m)}var v=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),i(v,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(e,l,r),h=null}},h.onabort=function(){h&&(l(u("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){l(u("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),l(u(e,t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n(34),y=(t.withCredentials||c(v))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(p[t.xsrfHeaderName]=y)}if("setRequestHeader"in h&&r.forEach(p,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete p[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),l(t),h=null)})),void 0===d&&(d=null),h.send(d)}))}},function(t,e,n){"use strict";var r=n(28);t.exports=function(t,e,n,o,i){var s=new Error(t);return r(s,e,n,o,i)}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){e=e||{};var n={},o=["url","method","params","data"],i=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,(function(t){void 0!==e[t]&&(n[t]=e[t])})),r.forEach(i,(function(o){r.isObject(e[o])?n[o]=r.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:r.isObject(t[o])?n[o]=r.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])})),r.forEach(s,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}));var a=o.concat(i).concat(s),c=Object.keys(e).filter((function(t){return-1===a.indexOf(t)}));return r.forEach(c,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])})),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(20)},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o,i,s,a){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,a],l=0;(c=new Error(e.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(t,e,n){(e=n(1)(!1)).push([t.i,'.background {\r\n    height: 200vh;\r\n    transition: transform ease-in 0.3s;\r\n    background: linear-gradient(0deg, black, transparent), url("/assets/greengood/images/full.jpg");\r\n    background-size: cover;\r\n    background-position: center;\r\n    \r\n\r\n}\r\n\r\n.background--scrolled {\r\n    transform: translateY(-50%);\r\n}\r\n\r\n.top {\r\n    height: 50%;\r\n\r\n}\r\n\r\n.bottom {\r\n    height: 50%;\r\n}',""]),t.exports=e},function(t,e,n){(e=n(1)(!1)).push([t.i,".scroll-toggler {\r\n    display: flex;\r\n    align-items: center;\r\n    transition: transform ease-in 0.3s;\r\n    height: 100px;\r\n    width: 100vw;\r\n    position: relative;\r\n    cursor: pointer;\r\n    \r\n}\r\n\r\n.scroll-toggler:hover {\r\n    transform: translateY(10px);\r\n}\r\n\r\n.scroll-toggler.up {\r\n    transform: translateX(-1px) scaleY(-1);\r\n}\r\n\r\n.scroll-toggler.up:hover {\r\n    transform: translateY(-10px) translateX(-1px) scaleY(-1);\r\n}\r\n\r\n\r\n\r\n.uno, .due {\r\n    border-top: solid rgb(236, 236, 236);\r\n    width: 50px;\r\n    position: absolute;\r\n    bottom: 0;\r\n}\r\n\r\n.uno {\r\n    transform: rotate(30deg);\r\n    transform-origin: right;\r\n    right: 52%;\r\n}\r\n\r\n.due {\r\n    transform: rotate(-30deg);\r\n    transform-origin: left;\r\n    left: 48%;\r\n\r\n}",""]),t.exports=e},function(t,e,n){(e=n(1)(!1)).push([t.i,"",""]),t.exports=e},function(t,e,n){(e=n(1)(!1)).push([t.i,".container {\r\n    display: flex;\r\n    flex-flow: column;\r\n}\r\n\r\n.component {\r\n    display: flex;\r\n    margin-bottom: 5px;\r\n}\r\n\r\n.submit {\r\n    display: flex;\r\n    align-items: center;\r\n    vertical-align: middle;\r\n    padding: 5px 15px;\r\n\r\n}\r\n\r\n.submit:active {\r\n    opacity: 0.5;\r\n}",""]),t.exports=e},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(21),s=n(9);function a(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var c=a(n(6));c.Axios=i,c.create=function(t){return a(s(c.defaults,t))},c.Cancel=n(10),c.CancelToken=n(35),c.isCancel=n(5),c.all=function(t){return Promise.all(t)},c.spread=n(36),t.exports=c,t.exports.default=c},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(22),s=n(23),a=n(9);function c(t){this.defaults=t,this.interceptors={request:new i,response:new i}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},c.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,o){return this.request(r.merge(o||{},{method:t,url:e,data:n}))}})),t.exports=c},function(t,e,n){"use strict";var r=n(0);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(0),o=n(24),i=n(5),s=n(6);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(a(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,u=[],l=!1,d=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&h())}function h(){if(!l){var t=a(p);l=!0;for(var e=u.length;e;){for(c=u,u=[];++d<e;)c&&c[d].run();d=-1,e=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new f(t,e)),1!==u.length||l||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e,n){var o=n.config.validateStatus;!o||o(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(30),o=n(31);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(0),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,s={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(s[e]&&o.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(10);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";n.r(e);
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  const r=new WeakMap,o=t=>"function"==typeof t&&r.has(t),i=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,s=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}},a={},c={},u=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${u}--\x3e`,d=new RegExp(`${u}|${l}`),p="$lit$";class h{constructor(t,e){this.parts=[],this.element=e;const n=[],r=[],o=document.createTreeWalker(e.content,133,null,!1);let i=0,s=-1,a=0;const{strings:c,values:{length:l}}=t;for(;a<l;){const t=o.nextNode();if(null!==t){if(s++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:n}=e;let r=0;for(let t=0;t<n;t++)f(e[t].name,p)&&r++;for(;r-- >0;){const e=c[a],n=g.exec(e)[2],r=n.toLowerCase()+p,o=t.getAttribute(r);t.removeAttribute(r);const i=o.split(d);this.parts.push({type:"attribute",index:s,name:n,strings:i}),a+=i.length-1}}"TEMPLATE"===t.tagName&&(r.push(t),o.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(u)>=0){const r=t.parentNode,o=e.split(d),i=o.length-1;for(let e=0;e<i;e++){let n,i=o[e];if(""===i)n=v();else{const t=g.exec(i);null!==t&&f(t[2],p)&&(i=i.slice(0,t.index)+t[1]+t[2].slice(0,-p.length)+t[3]),n=document.createTextNode(i)}r.insertBefore(n,t),this.parts.push({type:"node",index:++s})}""===o[i]?(r.insertBefore(v(),t),n.push(t)):t.data=o[i],a+=i}}else if(8===t.nodeType)if(t.data===u){const e=t.parentNode;null!==t.previousSibling&&s!==i||(s++,e.insertBefore(v(),t)),i=s,this.parts.push({type:"node",index:s}),null===t.nextSibling?t.data="":(n.push(t),s--),a++}else{let e=-1;for(;-1!==(e=t.data.indexOf(u,e+1));)this.parts.push({type:"node",index:-1}),a++}}else o.currentNode=r.pop()}for(const t of n)t.parentNode.removeChild(t)}}const f=(t,e)=>{const n=t.length-e.length;return n>=0&&t.slice(n)===e},m=t=>-1!==t.index,v=()=>document.createComment(""),g=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  class y{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=i?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],n=this.template.parts,r=document.createTreeWalker(t,133,null,!1);let o,s=0,a=0,c=r.nextNode();for(;s<n.length;)if(o=n[s],m(o)){for(;a<o.index;)a++,"TEMPLATE"===c.nodeName&&(e.push(c),r.currentNode=c.content),null===(c=r.nextNode())&&(r.currentNode=e.pop(),c=r.nextNode());if("node"===o.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(c.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(c,o.name,o.strings,this.options));s++}else this.__parts.push(void 0),s++;return i&&(document.adoptNode(t),customElements.upgrade(t)),t}}
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */const _=` ${u} `;class b{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let r=0;r<t;r++){const t=this.strings[r],o=t.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===t.indexOf("--\x3e",o+1);const i=g.exec(t);e+=null===i?t+(n?_:l):t.substr(0,i.index)+i[1]+i[2]+p+i[3]+u}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  const w=t=>null===t||!("object"==typeof t||"function"==typeof t),S=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class x{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t<n.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new E(this)}_getValue(){const t=this.strings,e=t.length-1;let n="";for(let r=0;r<e;r++){n+=t[r];const e=this.parts[r];if(void 0!==e){const t=e.value;if(w(t)||!S(t))n+="string"==typeof t?t:String(t);else for(const e of t)n+="string"==typeof e?e:String(e)}}return n+=t[e],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class E{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===a||w(t)&&t===this.value||(this.value=t,o(t)||(this.committer.dirty=!0))}commit(){for(;o(this.value);){const t=this.value;this.value=a,t(this)}this.value!==a&&this.committer.commit()}}class N{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(v()),this.endNode=t.appendChild(v())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=v()),t.__insert(this.endNode=v())}insertAfterPart(t){t.__insert(this.startNode=v()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){for(;o(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=a,t(this)}const t=this.__pendingValue;t!==a&&(w(t)?t!==this.value&&this.__commitText(t):t instanceof b?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):S(t)?this.__commitIterable(t):t===c?(this.value=c,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof y&&this.value.template===e)this.value.update(t.values);else{const n=new y(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let n,r=0;for(const o of t)n=e[r],void 0===n&&(n=new N(this.options),e.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(e[r-1])),n.setValue(o),n.commit(),r++;r<e.length&&(e.length=r,this.clear(n&&n.endNode))}clear(t=this.startNode){s(this.startNode.parentNode,t.nextSibling,this.endNode)}}class T{constructor(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;o(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=a,t(this)}if(this.__pendingValue===a)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=a}}class P extends x{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new C(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class C extends E{}let A=!1;try{const t={get capture(){return A=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}class O{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;o(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=a,t(this)}if(this.__pendingValue===a)return;const t=this.__pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),r=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=R(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=a}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const R=t=>t&&(A?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */const k=new class{handleAttributeExpressions(t,e,n,r){const o=e[0];if("."===o){return new P(t,e.slice(1),n).parts}return"@"===o?[new O(t,e.slice(1),r.eventContext)]:"?"===o?[new T(t,e.slice(1),n)]:new x(t,e,n).parts}handleTextExpression(t){return new N(t)}};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */function j(t){let e=L.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},L.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const r=t.strings.join(u);return n=e.keyString.get(r),void 0===n&&(n=new h(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}const L=new Map,I=new WeakMap;
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  (window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");const V=(t,...e)=>new b(t,e,"html",k),M=133;function U(t,e){const{element:{content:n},parts:r}=t,o=document.createTreeWalker(n,M,null,!1);let i=D(r),s=r[i],a=-1,c=0;const u=[];let l=null;for(;o.nextNode();){a++;const t=o.currentNode;for(t.previousSibling===l&&(l=null),e.has(t)&&(u.push(t),null===l&&(l=t)),null!==l&&c++;void 0!==s&&s.index===a;)s.index=null!==l?-1:s.index-c,i=D(r,i),s=r[i]}u.forEach(t=>t.parentNode.removeChild(t))}const q=t=>{let e=11===t.nodeType?0:1;const n=document.createTreeWalker(t,M,null,!1);for(;n.nextNode();)e++;return e},D=(t,e=-1)=>{for(let n=e+1;n<t.length;n++){const e=t[n];if(m(e))return n}return-1};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  const B=(t,e)=>`${t}--${e}`;let H=!0;void 0===window.ShadyCSS?H=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),H=!1);const F=t=>e=>{const n=B(e.type,t);let r=L.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},L.set(n,r));let o=r.stringsArray.get(e.strings);if(void 0!==o)return o;const i=e.strings.join(u);if(o=r.keyString.get(i),void 0===o){const n=e.getTemplateElement();H&&window.ShadyCSS.prepareTemplateDom(n,t),o=new h(e,n),r.keyString.set(i,o)}return r.stringsArray.set(e.strings,o),o},$=["html","svg"],z=new Set,W=(t,e,n)=>{z.add(t);const r=n?n.element:document.createElement("template"),o=e.querySelectorAll("style"),{length:i}=o;if(0===i)return void window.ShadyCSS.prepareTemplateStyles(r,t);const s=document.createElement("style");for(let t=0;t<i;t++){const e=o[t];e.parentNode.removeChild(e),s.textContent+=e.textContent}(t=>{$.forEach(e=>{const n=L.get(B(e,t));void 0!==n&&n.keyString.forEach(t=>{const{element:{content:e}}=t,n=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{n.add(t)}),U(t,n)})})})(t);const a=r.content;n?function(t,e,n=null){const{element:{content:r},parts:o}=t;if(null==n)return void r.appendChild(e);const i=document.createTreeWalker(r,M,null,!1);let s=D(o),a=0,c=-1;for(;i.nextNode();){for(c++,i.currentNode===n&&(a=q(e),n.parentNode.insertBefore(e,n));-1!==s&&o[s].index===c;){if(a>0){for(;-1!==s;)o[s].index+=a,s=D(o,s);return}s=D(o,s)}}}(n,s,a.firstChild):a.insertBefore(s,a.firstChild),window.ShadyCSS.prepareTemplateStyles(r,t);const c=a.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==c)e.insertBefore(c.cloneNode(!0),e.firstChild);else if(n){a.insertBefore(s,a.firstChild);const t=new Set;t.add(s),U(n,t)}},J=t=>null!==t,Y=t=>t?"":null,X=(t,e)=>e!==t&&(e==e||t==t),G={attribute:!0,type:String,reflect:!1,hasChanged:X},K=new Promise(t=>t(!0)),Q=1,Z=4,tt=8;class et extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=K,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this._finalize();const t=[];for(const[e,n]of this._classProperties){const r=this._attributeNameForProperty(e,n);void 0!==r&&(this._attributeToPropertyMap.set(r,e),t.push(r))}return t}static createProperty(t,e=G){if(!this.hasOwnProperty("_classProperties")){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}if(this._classProperties.set(t,e),this.prototype.hasOwnProperty(t))return;const n="symbol"==typeof t?Symbol():`__${t}`;Object.defineProperty(this.prototype,t,{get(){return this[n]},set(r){const o=this[t];this[n]=r,this._requestPropertyUpdate(t,o,e)},configurable:!0,enumerable:!0})}static _finalize(){if(this.hasOwnProperty("_finalized")&&this._finalized)return;const t=Object.getPrototypeOf(this);"function"==typeof t._finalize&&t._finalize(),this._finalized=!0,this._attributeToPropertyMap=new Map;const e=this.properties,n=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const t of n)this.createProperty(t,e[t])}static _attributeNameForProperty(t,e){const n=void 0!==e&&e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,n=X){return n(t,e)}static _propertyValueFromAttribute(t,e){const n=e&&e.type;if(void 0===n)return t;const r=n===Boolean?J:"function"==typeof n?n:n.fromAttribute;return r?r(t):t}static _propertyValueToAttribute(t,e){if(void 0===e||void 0===e.reflect)return;return(e.type===Boolean?Y:e.type&&e.type.toAttribute||String)(t)}initialize(){this.renderRoot=this.createRenderRoot(),this._saveInstanceProperties()}_saveInstanceProperties(){for(const[t]of this.constructor._classProperties)if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}}_applyInstanceProperties(){for(const[t,e]of this._instanceProperties)this[t]=e;this._instanceProperties=void 0}createRenderRoot(){return this.attachShadow({mode:"open"})}connectedCallback(){this._updateState&Q?void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this):this.requestUpdate()}disconnectedCallback(){}attributeChangedCallback(t,e,n){e!==n&&this._attributeToProperty(t,n)}_propertyToAttribute(t,e,n=G){const r=this.constructor,o=r._propertyValueToAttribute(e,n);if(void 0!==o){const e=r._attributeNameForProperty(t,n);void 0!==e&&(this._updateState=this._updateState|tt,null===o?this.removeAttribute(e):this.setAttribute(e,o),this._updateState=this._updateState&~tt)}}_attributeToProperty(t,e){if(!(this._updateState&tt)){const n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){const t=n._classProperties.get(r);this[r]=n._propertyValueFromAttribute(e,t)}}}requestUpdate(t,e){if(void 0!==t){const n=this.constructor._classProperties.get(t)||G;return this._requestPropertyUpdate(t,e,n)}return this._invalidate()}_requestPropertyUpdate(t,e,n){return this.constructor._valueHasChanged(this[t],e,n.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0===n.reflect&&(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,n)),this._invalidate()):this.updateComplete}async _invalidate(){if(!this._hasRequestedUpdate){let t;this._updateState=this._updateState|Z;const e=this._updatePromise;this._updatePromise=new Promise(e=>t=e),await e,this._validate(),t(!this._hasRequestedUpdate)}return this.updateComplete}get _hasRequestedUpdate(){return this._updateState&Z}_validate(){if(this._instanceProperties&&this._applyInstanceProperties(),this.shouldUpdate(this._changedProperties)){const t=this._changedProperties;this.update(t),this._markUpdated(),this._updateState&Q||(this._updateState=this._updateState|Q,this.firstUpdated(t)),this.updated(t)}else this._markUpdated()}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~Z}get updateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){if(void 0!==this._reflectingProperties&&this._reflectingProperties.size>0){for(const[t,e]of this._reflectingProperties)this._propertyToAttribute(t,this[t],e);this._reflectingProperties=void 0}}updated(t){}firstUpdated(t){}}et._attributeToPropertyMap=new Map,et._finalized=!0,et._classProperties=new Map,et.properties={};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  nt((t,e)=>t.querySelector(e)),nt((t,e)=>t.querySelectorAll(e));function nt(t){return e=>(n,r)=>{Object.defineProperty(n,r,{get(){return t(this.renderRoot,e)},enumerable:!0,configurable:!0})}}
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  class rt extends et{update(t){super.update(t);const e=this.render();e instanceof b&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this})}render(){}}rt.render=(t,e,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const r=n.scopeName,o=I.has(e),i=H&&11===e.nodeType&&!!e.host,a=i&&!z.has(r),c=a?document.createDocumentFragment():e;if(((t,e,n)=>{let r=I.get(e);void 0===r&&(s(e,e.firstChild),I.set(e,r=new N(Object.assign({templateFactory:j},n))),r.appendInto(e)),r.setValue(t),r.commit()})(t,c,Object.assign({templateFactory:F(r)},n)),a){const t=I.get(c);I.delete(c);const n=t.value instanceof y?t.value.template:void 0;W(r,c,n),s(e,e.firstChild),e.appendChild(c),I.set(e,t)}!o&&i&&window.ShadyCSS.styleElement(e.host)};const ot=t=>t.newsletter||{};var it=t=>t.init.appInit,st=t=>t.scrolled,at=t=>ot(t).newslettered||!1,ct=t=>ot(t).error||!1,ut={INIT_APP:"INIT_APP",CHANGE_INIT:"CHANGE_INIT",SET_SCROLL:"SET_SCROLL",HANDLE_SCROLL:"HANDLE_SCROLL",ADD_TO_NEWSLETTER:"ADD_TO_NEWSLETTER",NEWSLETTER_ADDED:"NEWSLETTER_ADDED",NEWSLETTER_ERROR:"NEWSLETTER_ERROR"};const lt={init:{appInit:!1},scrolled:!1,newsletter:{}};var dt=n(2),pt=function(){return Math.random().toString(36).substring(7).split("").join(".")},ht={INIT:"@@redux/INIT"+pt(),REPLACE:"@@redux/REPLACE"+pt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pt()}};function ft(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vt(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n}function gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vt(n,!0).forEach((function(e){mt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}var _t=function(t){return"@@redux-saga/"+t},bt=_t("CANCEL_PROMISE"),wt=_t("CHANNEL_END"),St=_t("IO"),xt=_t("MATCH"),Et=_t("MULTICAST"),Nt=_t("SAGA_ACTION"),Tt=_t("SELF_CANCELLATION"),Pt=_t("TASK"),Ct=_t("TASK_CANCEL"),At=_t("TERMINATE"),Ot=_t("LOCATION");function Rt(){return(Rt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var kt=function(t){return null==t},jt=function(t){return null!=t},Lt=function(t){return"function"==typeof t},It=function(t){return"string"==typeof t},Vt=Array.isArray,Mt=function(t){return t&&Lt(t.then)},Ut=function(t){return t&&Lt(t.next)&&Lt(t.throw)},qt=function t(e){return e&&(It(e)||Ht(e)||Lt(e)||Vt(e)&&e.every(t))},Dt=function(t){return t&&Lt(t.take)&&Lt(t.close)},Bt=function(t){return Lt(t)&&t.hasOwnProperty("toString")},Ht=function(t){return Boolean(t)&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype},Ft=function(t){return Dt(t)&&t[Et]};var $t=function(t){return function(){return t}}(!0),zt=function(){};var Wt=function(t){return t};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Jt=function(t,e){Rt(t,e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach((function(n){t[n]=e[n]}))},Yt=function(t,e){var n;return(n=[]).concat.apply(n,e.map(t))};function Xt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function Gt(t){var e=!1;return function(){e||(e=!0,t())}}var Kt=function(t){throw t},Qt=function(t){return{value:t,done:!0}};function Zt(t,e,n){void 0===e&&(e=Kt),void 0===n&&(n="iterator");var r={meta:{name:n},next:t,throw:e,return:Qt,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function te(t,e){var n=e.sagaStack;console.error(t),console.error(n)}var ee=function(t){return Array.apply(null,new Array(t))},ne=function(t){return function(e){return t(Object.defineProperty(e,Nt,{value:!0}))}},re=function(t){return t===At},oe=function(t){return t===Ct},ie=function(t){return re(t)||oe(t)};function se(t,e){var n=Object.keys(t),r=n.length;var o,i=0,s=Vt(t)?ee(r):{},a={};return n.forEach((function(t){var n=function(n,a){o||(a||ie(n)?(e.cancel(),e(n,a)):(s[t]=n,++i===r&&(o=!0,e(s))))};n.cancel=zt,a[t]=n})),e.cancel=function(){o||(o=!0,n.forEach((function(t){return a[t].cancel()})))},a}function ae(t){return{name:t.name||"anonymous",location:ce(t)}}function ce(t){return t[Ot]}var ue="Channel's Buffer overflow!",le=1,de=3,pe=4;function he(t,e){void 0===t&&(t=10);var n=new Array(t),r=0,o=0,i=0,s=function(e){n[o]=e,o=(o+1)%t,r++},a=function(){if(0!=r){var e=n[i];return n[i]=null,r--,i=(i+1)%t,e}},c=function(){for(var t=[];r;)t.push(a());return t};return{isEmpty:function(){return 0==r},put:function(a){var u;if(r<t)s(a);else switch(e){case le:throw new Error(ue);case de:n[o]=a,i=o=(o+1)%t;break;case pe:u=2*t,n=c(),r=n.length,o=n.length,i=0,n.length=u,t=u,s(a)}},take:a,flush:c}}var fe=function(t){return he(t,pe)},me="TAKE",ve="PUT",ge="ALL",ye="RACE",_e="CALL",be="CPS",we="FORK",Se="JOIN",xe="CANCEL",Ee="SELECT",Ne="ACTION_CHANNEL",Te="CANCELLED",Pe="FLUSH",Ce="GET_CONTEXT",Ae="SET_CONTEXT",Oe=function(t,e){var n;return(n={})[St]=!0,n.combinator=!1,n.type=t,n.payload=e,n};function Re(t,e){return void 0===t&&(t="*"),qt(t)?Oe(me,{pattern:t}):Ft(t)&&jt(e)&&qt(e)?Oe(me,{channel:t,pattern:e}):Dt(t)?Oe(me,{channel:t}):void 0}function ke(t,e){return kt(e)&&(e=t,t=void 0),Oe(ve,{channel:t,action:e})}function je(t,e){var n,r=null;return Lt(t)?n=t:(Vt(t)?(r=t[0],n=t[1]):(r=t.context,n=t.fn),r&&It(n)&&Lt(r[n])&&(n=r[n])),{context:r,fn:n,args:e}}function Le(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Oe(_e,je(t,n))}function Ie(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Oe(we,je(t,n))}function Ve(){var t={};return t.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),t}var Me=Ve,Ue=[],qe=0;function De(t){try{Fe(),t()}finally{$e()}}function Be(t){Ue.push(t),qe||(Fe(),ze())}function He(t){try{return Fe(),t()}finally{ze()}}function Fe(){qe++}function $e(){qe--}function ze(){var t;for($e();!qe&&void 0!==(t=Ue.shift());)De(t)}var We=function(t){return function(e){return t.some((function(t){return Ke(t)(e)}))}},Je=function(t){return function(e){return t(e)}},Ye=function(t){return function(e){return e.type===String(t)}},Xe=function(t){return function(e){return e.type===t}},Ge=function(){return $t};function Ke(t){var e="*"===t?Ge:It(t)?Ye:Vt(t)?We:Bt(t)?Ye:Lt(t)?Je:Ht(t)?Xe:null;if(null===e)throw new Error("invalid pattern: "+t);return e(t)}var Qe={type:wt},Ze=function(t){return t&&t.type===wt};function tn(t){void 0===t&&(t=fe());var e=!1,n=[];return{take:function(r){e&&t.isEmpty()?r(Qe):t.isEmpty()?(n.push(r),r.cancel=function(){Xt(n,r)}):r(t.take())},put:function(r){if(!e){if(0===n.length)return t.put(r);n.shift()(r)}},flush:function(n){e&&t.isEmpty()?n(Qe):n(t.flush())},close:function(){if(!e){e=!0;var t=n;n=[];for(var r=0,o=t.length;r<o;r++){(0,t[r])(Qe)}}}}}function en(){var t,e,n,r,o,i,s=(e=!1,r=n=[],o=function(){r===n&&(r=n.slice())},i=function(){e=!0;var t=n=r;r=[],t.forEach((function(t){t(Qe)}))},(t={})[Et]=!0,t.put=function(t){if(!e)if(Ze(t))i();else for(var o=n=r,s=0,a=o.length;s<a;s++){var c=o[s];c[xt](t)&&(c.cancel(),c(t))}},t.take=function(t,n){void 0===n&&(n=Ge),e?t(Qe):(t[xt]=n,o(),r.push(t),t.cancel=Gt((function(){o(),Xt(r,t)})))},t.close=i,t),a=s.put;return s.put=function(t){t[Nt]?a(t):Be((function(){a(t)}))},s}var nn=0,rn=1,on=2,sn=3;function an(t,e){var n=t[bt];Lt(n)&&(e.cancel=n),t.then(e,(function(t){e(t,!0)}))}var cn,un=0,ln=function(){return++un};function dn(t){t.isRunning()&&t.cancel()}var pn=((cn={})[me]=function(t,e,n){var r=e.channel,o=void 0===r?t.channel:r,i=e.pattern,s=e.maybe,a=function(t){t instanceof Error?n(t,!0):!Ze(t)||s?n(t):n(At)};try{o.take(a,jt(i)?Ke(i):null)}catch(t){return void n(t,!0)}n.cancel=a.cancel},cn[ve]=function(t,e,n){var r=e.channel,o=e.action,i=e.resolve;Be((function(){var e;try{e=(r?r.put:t.dispatch)(o)}catch(t){return void n(t,!0)}i&&Mt(e)?an(e,n):n(e)}))},cn[ge]=function(t,e,n,r){var o=r.digestEffect,i=un,s=Object.keys(e);if(0!==s.length){var a=se(e,n);s.forEach((function(t){o(e[t],i,a[t],t)}))}else n(Vt(e)?[]:{})},cn[ye]=function(t,e,n,r){var o=r.digestEffect,i=un,s=Object.keys(e),a=Vt(e)?ee(s.length):{},c={},u=!1;s.forEach((function(t){var e=function(e,r){u||(r||ie(e)?(n.cancel(),n(e,r)):(n.cancel(),u=!0,a[t]=e,n(a)))};e.cancel=zt,c[t]=e})),n.cancel=function(){u||(u=!0,s.forEach((function(t){return c[t].cancel()})))},s.forEach((function(t){u||o(e[t],i,c[t],t)}))},cn[_e]=function(t,e,n,r){var o=e.context,i=e.fn,s=e.args,a=r.task;try{var c=i.apply(o,s);if(Mt(c))return void an(c,n);if(Ut(c))return void Sn(t,c,a.context,un,ae(i),!1,n);n(c)}catch(t){n(t,!0)}},cn[be]=function(t,e,n){var r=e.context,o=e.fn,i=e.args;try{var s=function(t,e){kt(t)?n(e):n(t,!0)};o.apply(r,i.concat(s)),s.cancel&&(n.cancel=s.cancel)}catch(t){n(t,!0)}},cn[we]=function(t,e,n,r){var o=e.context,i=e.fn,s=e.args,a=e.detached,c=r.task,u=function(t){var e=t.context,n=t.fn,r=t.args;try{var o=n.apply(e,r);if(Ut(o))return o;var i=!1;return Zt((function(t){return i?{value:t,done:!0}:(i=!0,{value:o,done:!Mt(o)})}))}catch(t){return Zt((function(){throw t}))}}({context:o,fn:i,args:s}),l=function(t,e){return t.isSagaIterator?{name:t.meta.name}:ae(e)}(u,i);He((function(){var e=Sn(t,u,c.context,un,l,a,void 0);a?n(e):e.isRunning()?(c.queue.addTask(e),n(e)):e.isAborted()?c.queue.abort(e.error()):n(e)}))},cn[Se]=function(t,e,n,r){var o=r.task,i=function(t,e){if(t.isRunning()){var n={task:o,cb:e};e.cancel=function(){t.isRunning()&&Xt(t.joiners,n)},t.joiners.push(n)}else t.isAborted()?e(t.error(),!0):e(t.result())};if(Vt(e)){if(0===e.length)return void n([]);var s=se(e,n);e.forEach((function(t,e){i(t,s[e])}))}else i(e,n)},cn[xe]=function(t,e,n,r){var o=r.task;e===Tt?dn(o):Vt(e)?e.forEach(dn):dn(e),n()},cn[Ee]=function(t,e,n){var r=e.selector,o=e.args;try{n(r.apply(void 0,[t.getState()].concat(o)))}catch(t){n(t,!0)}},cn[Ne]=function(t,e,n){var r=e.pattern,o=tn(e.buffer),i=Ke(r),s=function e(n){Ze(n)||t.channel.take(e,i),o.put(n)},a=o.close;o.close=function(){s.cancel(),a()},t.channel.take(s,i),n(o)},cn[Te]=function(t,e,n,r){n(r.task.isCancelled())},cn[Pe]=function(t,e,n){e.flush(n)},cn[Ce]=function(t,e,n,r){n(r.task.context[e])},cn[Ae]=function(t,e,n,r){var o=r.task;Jt(o.context,e),n()},cn);function hn(t,e){return t+"?"+e}function fn(t){var e=t.name,n=t.location;return n?e+"  "+hn(n.fileName,n.lineNumber):e}var mn=null,vn=[],gn=function(t){t.crashedEffect=mn,vn.push(t)},yn=function(){mn=null,vn.length=0},_n=function(t){mn=t},bn=function(){var t,e,n,r,o=vn[0],i=vn.slice(1),s=o.crashedEffect?(t=o.crashedEffect,(e=ce(t))?e.code+"  "+hn(e.fileName,e.lineNumber):""):null;return["The above error occurred in task "+fn(o.meta)+(s?" \n when executing effect "+s:"")].concat(i.map((function(t){return"    created by "+fn(t.meta)})),[(n=vn,r=Yt((function(t){return t.cancelledTasks}),n),r.length?["Tasks cancelled due to error:"].concat(r).join("\n"):"")]).join("\n")};function wn(t,e,n,r,o,i,s){var a;void 0===s&&(s=zt);var c,u,l=nn,d=null,p=[],h=Object.create(n),f=function(t,e,n){var r,o=[],i=!1;function s(t){e(),c(),n(t,!0)}function a(e){o.push(e),e.cont=function(a,c){i||(Xt(o,e),e.cont=zt,c?s(a):(e===t&&(r=a),o.length||(i=!0,n(r))))}}function c(){i||(i=!0,o.forEach((function(t){t.cont=zt,t.cancel()})),o=[])}return a(t),{addTask:a,cancelAll:c,abort:s,getTasks:function(){return o}}}(e,(function(){p.push.apply(p,f.getTasks().map((function(t){return t.meta.name})))}),m);function m(e,n){if(n){if(l=on,gn({meta:o,cancelledTasks:p}),v.isRoot){var r=bn();yn(),t.onError(e,{sagaStack:r})}u=e,d&&d.reject(e)}else e===Ct?l=rn:l!==rn&&(l=sn),c=e,d&&d.resolve(e);v.cont(e,n),v.joiners.forEach((function(t){t.cb(e,n)})),v.joiners=null}var v=((a={})[Pt]=!0,a.id=r,a.meta=o,a.isRoot=i,a.context=h,a.joiners=[],a.queue=f,a.cancel=function(){l===nn&&(l=rn,f.cancelAll(),m(Ct,!1))},a.cont=s,a.end=m,a.setContext=function(t){Jt(h,t)},a.toPromise=function(){return d?d.promise:(d=Me(),l===on?d.reject(u):l!==nn&&d.resolve(c),d.promise)},a.isRunning=function(){return l===nn},a.isCancelled=function(){return l===rn||l===nn&&e.status===rn},a.isAborted=function(){return l===on},a.result=function(){return c},a.error=function(){return u},a);return v}function Sn(t,e,n,r,o,i,s){var a=t.finalizeRunEffect((function(e,n,r){if(Mt(e))an(e,r);else if(Ut(e))Sn(t,e,u.context,n,o,!1,r);else if(e&&e[St]){(0,pn[e.type])(t,e.payload,r,l)}else r(e)}));d.cancel=zt;var c={meta:o,cancel:function(){c.status===nn&&(c.status=rn,d(Ct))},status:nn},u=wn(t,c,n,r,o,i,s),l={task:u,digestEffect:p};return s&&(s.cancel=u.cancel),d(),u;function d(t,n){try{var o;n?(o=e.throw(t),yn()):oe(t)?(c.status=rn,d.cancel(),o=Lt(e.return)?e.return(Ct):{done:!0,value:Ct}):o=re(t)?Lt(e.return)?e.return():{done:!0}:e.next(t),o.done?(c.status!==rn&&(c.status=sn),c.cont(o.value)):p(o.value,r,d)}catch(t){if(c.status===rn)throw t;c.status=on,c.cont(t,!0)}}function p(e,n,r,o){void 0===o&&(o="");var i,s=ln();function c(n,o){i||(i=!0,r.cancel=zt,t.sagaMonitor&&(o?t.sagaMonitor.effectRejected(s,n):t.sagaMonitor.effectResolved(s,n)),o&&_n(e),r(n,o))}t.sagaMonitor&&t.sagaMonitor.effectTriggered({effectId:s,parentEffectId:n,label:o,effect:e}),c.cancel=zt,r.cancel=function(){i||(i=!0,c.cancel(),c.cancel=zt,t.sagaMonitor&&t.sagaMonitor.effectCancelled(s))},a(e,s,c)}}function xn(t,e){var n=t.channel,r=void 0===n?en():n,o=t.dispatch,i=t.getState,s=t.context,a=void 0===s?{}:s,c=t.sagaMonitor,u=t.effectMiddlewares,l=t.onError,d=void 0===l?te:l;for(var p=arguments.length,h=new Array(p>2?p-2:0),f=2;f<p;f++)h[f-2]=arguments[f];var m=e.apply(void 0,h);var v,g=ln();if(c&&(c.rootSagaStarted=c.rootSagaStarted||zt,c.effectTriggered=c.effectTriggered||zt,c.effectResolved=c.effectResolved||zt,c.effectRejected=c.effectRejected||zt,c.effectCancelled=c.effectCancelled||zt,c.actionDispatched=c.actionDispatched||zt,c.rootSagaStarted({effectId:g,saga:e,args:h})),u){var y=yt.apply(void 0,u);v=function(t){return function(e,n,r){return y((function(e){return t(e,n,r)}))(e)}}}else v=Wt;var _={channel:r,dispatch:ne(o),getState:i,sagaMonitor:c,onError:d,finalizeRunEffect:v};return He((function(){var t=Sn(_,m,a,g,ae(e),!0,void 0);return c&&c.effectResolved(g,t),t}))}var En=function(t){var e,n=void 0===t?{}:t,r=n.context,o=void 0===r?{}:r,i=n.channel,s=void 0===i?en():i,a=n.sagaMonitor,c=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(n,["context","channel","sagaMonitor"]);function u(t){var n=t.getState,r=t.dispatch;return e=xn.bind(null,Rt({},c,{context:o,channel:s,dispatch:r,getState:n,sagaMonitor:a})),function(t){return function(e){a&&a.actionDispatched&&a.actionDispatched(e);var n=t(e);return s.put(e),n}}}return u.run=function(){return e.apply(void 0,arguments)},u.setContext=function(t){Jt(o,t)},u},Nn=function(t){return{done:!0,value:t}},Tn={};function Pn(t){return Dt(t)?"channel":Bt(t)?String(t):Lt(t)?t.name:String(t)}function Cn(t,e,n){var r,o,i,s=e;function a(e,n){if(s===Tn)return Nn(e);if(n&&!o)throw s=Tn,n;r&&r(e);var a=n?t[o](n):t[s]();return s=a.nextState,i=a.effect,r=a.stateUpdater,o=a.errorState,s===Tn?Nn(e):i}return Zt(a,(function(t){return a(null,t)}),n)}function An(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,s={done:!1,value:Re(t)},a=function(t){return i=t};return Cn({q1:function(){return{nextState:"q2",effect:s,stateUpdater:a}},q2:function(){return{nextState:"q1",effect:(t=i,{done:!1,value:Ie.apply(void 0,[e].concat(r,[t]))})};var t}},"q1","takeEvery("+Pn(t)+", "+e.name+")")}function On(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,s,a={done:!1,value:Re(t)},c=function(t){return{done:!1,value:Ie.apply(void 0,[e].concat(r,[t]))}},u=function(t){return{done:!1,value:(e=t,void 0===e&&(e=Tt),Oe(xe,e))};var e},l=function(t){return i=t},d=function(t){return s=t};return Cn({q1:function(){return{nextState:"q2",effect:a,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:c(s),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(s),stateUpdater:l}}},"q1","takeLatest("+Pn(t)+", "+e.name+")")}function Rn(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Ie.apply(void 0,[An,t,e].concat(r))}var kn=n(12);var jn=n.n(kn).a.create({baseURL:"https://shirtgood-49536.firebaseio.com"});function*Ln(){console.log("saga started"),yield ke(zn.changeInit("started"))}function*In(){yield Rn(ut.INIT_APP,(function*(){yield Le(Ln),yield jn.post("/news.json",Math.random())}))}function*Vn(){yield Rn(ut.CHANGE_INIT,(function*(){yield console.log("ciao")}))}function*Mn(){yield function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Ie.apply(void 0,[On,t,e].concat(r))}(ut.HANDLE_SCROLL,(function*({payload:t}){t>0?yield ke(zn.setScroll(!0)):yield ke(zn.setScroll(!1))}))}function*Un(){yield Rn(ut.ADD_TO_NEWSLETTER,(function*({payload:t}){try{yield Le(jn.post,"/news.json",t),yield ke(zn.newsLetterAdded()),yield ke(zn.newsLetterInError(!1))}catch(t){yield ke(zn.newsLetterInError(!0))}}))}var qn=n(13),Dn=n.n(qn),Bn=function(t){return"function"==typeof t},Hn=function(t){return t},Fn=function(t){return null===t};function $n(t,e,n){void 0===e&&(e=Hn),Dn()(Bn(e)||Fn(e),"Expected payloadCreator to be a function, undefined or null");var r=Fn(e)||e===Hn?Hn:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t instanceof Error?t:e.apply(void 0,[t].concat(r))},o=Bn(n),i=t.toString(),s=function(){var e=r.apply(void 0,arguments),i={type:t};return e instanceof Error&&(i.error=!0),void 0!==e&&(i.payload=e),o&&(i.meta=n.apply(void 0,arguments)),i};return s.toString=function(){return i},s}var zn={initApp:$n(ut.INIT_APP),changeInit:$n(ut.CHANGE_INIT),setScroll:$n(ut.SET_SCROLL),handleScroll:$n(ut.HANDLE_SCROLL),addToNewsletter:$n(ut.ADD_TO_NEWSLETTER),newsLetterAdded:$n(ut.NEWSLETTER_ADDED),newsLetterInError:$n(ut.NEWSLETTER_ERROR)};const Wn=En(),Jn=function t(e,n,r){var o;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(t)(e,n)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,s=n,a=[],c=a,u=!1;function l(){c===a&&(c=a.slice())}function d(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function p(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return l(),c.push(t),function(){if(e){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,l();var n=c.indexOf(t);c.splice(n,1),a=null}}}function h(t){if(!ft(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,s=i(s,t)}finally{u=!1}for(var e=a=c,n=0;n<e.length;n++){(0,e[n])()}return t}return h({type:ht.INIT}),(o={dispatch:h,subscribe:p,getState:d,replaceReducer:function(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");i=t,h({type:ht.REPLACE})}})[dt.a]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(d())}return n(),{unsubscribe:e(n)}}})[dt.a]=function(){return this},t},o}((t=lt,e)=>{switch(e.type){case ut.CHANGE_INIT:return{...t,init:{...t.init,appInit:e.payload}};case ut.SET_SCROLL:return{...t,scrolled:e.payload};case ut.NEWSLETTER_ADDED:return{...t,newsletter:{...t.newsletter,newslettered:!0}};case ut.NEWSLETTER_ERROR:return{...t,newsletter:{...t.newsletter,error:e.payload}};default:return t}},(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||yt)(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return gt({},n,{dispatch:r=yt.apply(void 0,i)(n.dispatch)})}}}(Wn)));Wn.run((function*(){var t,e;yield(t=[In(),Vn(),Mn(),Un()],e=Oe(ge,t),e.combinator=!0,e)}));var Yn=(t,e)=>n=>{return class extends n{connectedCallback(){super.connectedCallback&&super.connectedCallback(),e&&(this.dispatchMap=e(Jn.dispatch,this),Object.entries(this.dispatchMap).forEach(([t,e])=>{this[t]=e})),t&&(this.updateStateProps=()=>{const e=Object.entries(t(Jn.getState(),this)).filter(([t,e])=>e!==this[t]).reduce((t,[e,n])=>({...t,[e]:n}),{});Object.assign(this,e)},this.unsubscribe=Jn.subscribe(this.updateStateProps),this.updateStateProps()),this.__connected=!0,this.afterConnect&&this.afterConnect()}disconnectedCallback(){if(this.beforeDisconnect&&this.beforeDisconnect(),this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.dispatchMap)for(let t in this.dispatchMap)this.removeEventListener(t,this.dispatchMap[t],!1);super.disconnectedCallback&&super.disconnectedCallback()}}};class Xn extends rt{static get properties(){return{init:{attribute:!1}}}constructor(){super()}handleClick(){this.initApp()}render(){return V`
  			<p class="app-intro">
  				This is a test, ${this.init}
  			</p>
  			<button @click=${this.handleClick}>Click me</button>
  		`}}const Gn=t=>({init:it(t)}),Kn=t=>({initApp:()=>t(zn.initApp())});
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  const Qn=new WeakMap,Zn=t=>"function"==typeof t&&Qn.has(t),tr=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,er=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}},nr={},rr={},or=`{{lit-${String(Math.random()).slice(2)}}}`,ir=`\x3c!--${or}--\x3e`,sr=new RegExp(`${or}|${ir}`),ar="$lit$";class cr{constructor(t,e){this.parts=[],this.element=e;const n=[],r=[],o=document.createTreeWalker(e.content,133,null,!1);let i=0,s=-1,a=0;const{strings:c,values:{length:u}}=t;for(;a<u;){const t=o.nextNode();if(null!==t){if(s++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:n}=e;let r=0;for(let t=0;t<n;t++)ur(e[t].name,ar)&&r++;for(;r-- >0;){const e=c[a],n=pr.exec(e)[2],r=n.toLowerCase()+ar,o=t.getAttribute(r);t.removeAttribute(r);const i=o.split(sr);this.parts.push({type:"attribute",index:s,name:n,strings:i}),a+=i.length-1}}"TEMPLATE"===t.tagName&&(r.push(t),o.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(or)>=0){const r=t.parentNode,o=e.split(sr),i=o.length-1;for(let e=0;e<i;e++){let n,i=o[e];if(""===i)n=dr();else{const t=pr.exec(i);null!==t&&ur(t[2],ar)&&(i=i.slice(0,t.index)+t[1]+t[2].slice(0,-ar.length)+t[3]),n=document.createTextNode(i)}r.insertBefore(n,t),this.parts.push({type:"node",index:++s})}""===o[i]?(r.insertBefore(dr(),t),n.push(t)):t.data=o[i],a+=i}}else if(8===t.nodeType)if(t.data===or){const e=t.parentNode;null!==t.previousSibling&&s!==i||(s++,e.insertBefore(dr(),t)),i=s,this.parts.push({type:"node",index:s}),null===t.nextSibling?t.data="":(n.push(t),s--),a++}else{let e=-1;for(;-1!==(e=t.data.indexOf(or,e+1));)this.parts.push({type:"node",index:-1}),a++}}else o.currentNode=r.pop()}for(const t of n)t.parentNode.removeChild(t)}}const ur=(t,e)=>{const n=t.length-e.length;return n>=0&&t.slice(n)===e},lr=t=>-1!==t.index,dr=()=>document.createComment(""),pr=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  class hr{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=tr?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],n=this.template.parts,r=document.createTreeWalker(t,133,null,!1);let o,i=0,s=0,a=r.nextNode();for(;i<n.length;)if(o=n[i],lr(o)){for(;s<o.index;)s++,"TEMPLATE"===a.nodeName&&(e.push(a),r.currentNode=a.content),null===(a=r.nextNode())&&(r.currentNode=e.pop(),a=r.nextNode());if("node"===o.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(a.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(a,o.name,o.strings,this.options));i++}else this.__parts.push(void 0),i++;return tr&&(document.adoptNode(t),customElements.upgrade(t)),t}}
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */const fr=` ${or} `;class mr{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let r=0;r<t;r++){const t=this.strings[r],o=t.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===t.indexOf("--\x3e",o+1);const i=pr.exec(t);e+=null===i?t+(n?fr:ir):t.substr(0,i.index)+i[1]+i[2]+ar+i[3]+or}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  const vr=t=>null===t||!("object"==typeof t||"function"==typeof t),gr=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class yr{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t<n.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new _r(this)}_getValue(){const t=this.strings,e=t.length-1;let n="";for(let r=0;r<e;r++){n+=t[r];const e=this.parts[r];if(void 0!==e){const t=e.value;if(vr(t)||!gr(t))n+="string"==typeof t?t:String(t);else for(const e of t)n+="string"==typeof e?e:String(e)}}return n+=t[e],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class _r{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===nr||vr(t)&&t===this.value||(this.value=t,Zn(t)||(this.committer.dirty=!0))}commit(){for(;Zn(this.value);){const t=this.value;this.value=nr,t(this)}this.value!==nr&&this.committer.commit()}}class br{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(dr()),this.endNode=t.appendChild(dr())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=dr()),t.__insert(this.endNode=dr())}insertAfterPart(t){t.__insert(this.startNode=dr()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){for(;Zn(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=nr,t(this)}const t=this.__pendingValue;t!==nr&&(vr(t)?t!==this.value&&this.__commitText(t):t instanceof mr?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):gr(t)?this.__commitIterable(t):t===rr?(this.value=rr,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof hr&&this.value.template===e)this.value.update(t.values);else{const n=new hr(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let n,r=0;for(const o of t)n=e[r],void 0===n&&(n=new br(this.options),e.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(e[r-1])),n.setValue(o),n.commit(),r++;r<e.length&&(e.length=r,this.clear(n&&n.endNode))}clear(t=this.startNode){er(this.startNode.parentNode,t.nextSibling,this.endNode)}}class wr{constructor(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;Zn(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=nr,t(this)}if(this.__pendingValue===nr)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=nr}}class Sr extends yr{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new xr(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class xr extends _r{}let Er=!1;try{const t={get capture(){return Er=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}class Nr{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;Zn(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=nr,t(this)}if(this.__pendingValue===nr)return;const t=this.__pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),r=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=Tr(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=nr}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const Tr=t=>t&&(Er?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */const Pr=new class{handleAttributeExpressions(t,e,n,r){const o=e[0];if("."===o){return new Sr(t,e.slice(1),n).parts}return"@"===o?[new Nr(t,e.slice(1),r.eventContext)]:"?"===o?[new wr(t,e.slice(1),n)]:new yr(t,e,n).parts}handleTextExpression(t){return new br(t)}};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */function Cr(t){let e=Ar.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},Ar.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const r=t.strings.join(or);return n=e.keyString.get(r),void 0===n&&(n=new cr(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}const Ar=new Map,Or=new WeakMap;
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  (window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");const Rr=(t,...e)=>new mr(t,e,"html",Pr),kr=133;function jr(t,e){const{element:{content:n},parts:r}=t,o=document.createTreeWalker(n,kr,null,!1);let i=Ir(r),s=r[i],a=-1,c=0;const u=[];let l=null;for(;o.nextNode();){a++;const t=o.currentNode;for(t.previousSibling===l&&(l=null),e.has(t)&&(u.push(t),null===l&&(l=t)),null!==l&&c++;void 0!==s&&s.index===a;)s.index=null!==l?-1:s.index-c,i=Ir(r,i),s=r[i]}u.forEach(t=>t.parentNode.removeChild(t))}const Lr=t=>{let e=11===t.nodeType?0:1;const n=document.createTreeWalker(t,kr,null,!1);for(;n.nextNode();)e++;return e},Ir=(t,e=-1)=>{for(let n=e+1;n<t.length;n++){const e=t[n];if(lr(e))return n}return-1};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  const Vr=(t,e)=>`${t}--${e}`;let Mr=!0;void 0===window.ShadyCSS?Mr=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),Mr=!1);const Ur=t=>e=>{const n=Vr(e.type,t);let r=Ar.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},Ar.set(n,r));let o=r.stringsArray.get(e.strings);if(void 0!==o)return o;const i=e.strings.join(or);if(o=r.keyString.get(i),void 0===o){const n=e.getTemplateElement();Mr&&window.ShadyCSS.prepareTemplateDom(n,t),o=new cr(e,n),r.keyString.set(i,o)}return r.stringsArray.set(e.strings,o),o},qr=["html","svg"],Dr=new Set,Br=(t,e,n)=>{Dr.add(t);const r=n?n.element:document.createElement("template"),o=e.querySelectorAll("style"),{length:i}=o;if(0===i)return void window.ShadyCSS.prepareTemplateStyles(r,t);const s=document.createElement("style");for(let t=0;t<i;t++){const e=o[t];e.parentNode.removeChild(e),s.textContent+=e.textContent}(t=>{qr.forEach(e=>{const n=Ar.get(Vr(e,t));void 0!==n&&n.keyString.forEach(t=>{const{element:{content:e}}=t,n=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{n.add(t)}),jr(t,n)})})})(t);const a=r.content;n?function(t,e,n=null){const{element:{content:r},parts:o}=t;if(null==n)return void r.appendChild(e);const i=document.createTreeWalker(r,kr,null,!1);let s=Ir(o),a=0,c=-1;for(;i.nextNode();){for(c++,i.currentNode===n&&(a=Lr(e),n.parentNode.insertBefore(e,n));-1!==s&&o[s].index===c;){if(a>0){for(;-1!==s;)o[s].index+=a,s=Ir(o,s);return}s=Ir(o,s)}}}(n,s,a.firstChild):a.insertBefore(s,a.firstChild),window.ShadyCSS.prepareTemplateStyles(r,t);const c=a.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==c)e.insertBefore(c.cloneNode(!0),e.firstChild);else if(n){a.insertBefore(s,a.firstChild);const t=new Set;t.add(s),jr(n,t)}};window.JSCompiler_renameProperty=(t,e)=>t;const Hr={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},Fr=(t,e)=>e!==t&&(e==e||t==t),$r={attribute:!0,type:String,converter:Hr,reflect:!1,hasChanged:Fr},zr=Promise.resolve(!0),Wr=1,Jr=4,Yr=8,Xr=16,Gr=32,Kr="finalized";class Qr extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=zr,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,n)=>{const r=this._attributeNameForProperty(n,e);void 0!==r&&(this._attributeToPropertyMap.set(r,n),t.push(r))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=$r){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const n="symbol"==typeof t?Symbol():`__${t}`;Object.defineProperty(this.prototype,t,{get(){return this[n]},set(e){const r=this[t];this[n]=e,this._requestUpdate(t,r)},configurable:!0,enumerable:!0})}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty(Kr)||t.finalize(),this[Kr]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const n of e)this.createProperty(n,t[n])}}static _attributeNameForProperty(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,n=Fr){return n(t,e)}static _propertyValueFromAttribute(t,e){const n=e.type,r=e.converter||Hr,o="function"==typeof r?r:r.fromAttribute;return o?o(t,n):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const n=e.type,r=e.converter;return(r&&r.toAttribute||Hr.toAttribute)(t,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|Gr,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,n){e!==n&&this._attributeToProperty(t,n)}_propertyToAttribute(t,e,n=$r){const r=this.constructor,o=r._attributeNameForProperty(t,n);if(void 0!==o){const t=r._propertyValueToAttribute(e,n);if(void 0===t)return;this._updateState=this._updateState|Yr,null==t?this.removeAttribute(o):this.setAttribute(o,t),this._updateState=this._updateState&~Yr}}_attributeToProperty(t,e){if(this._updateState&Yr)return;const n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){const t=n._classProperties.get(r)||$r;this._updateState=this._updateState|Xr,this[r]=n._propertyValueFromAttribute(e,t),this._updateState=this._updateState&~Xr}}_requestUpdate(t,e){let n=!0;if(void 0!==t){const r=this.constructor,o=r._classProperties.get(t)||$r;r._valueHasChanged(this[t],e,o.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==o.reflect||this._updateState&Xr||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,o))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}requestUpdate(t,e){return this._requestUpdate(t,e),this.updateComplete}async _enqueueUpdate(){let t,e;this._updateState=this._updateState|Jr;const n=this._updatePromise;this._updatePromise=new Promise((n,r)=>{t=n,e=r});try{await n}catch(t){}this._hasConnected||await new Promise(t=>this._hasConnectedResolver=t);try{const t=this.performUpdate();null!=t&&await t}catch(t){e(t)}t(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&Gr}get _hasRequestedUpdate(){return this._updateState&Jr}get hasUpdated(){return this._updateState&Wr}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{t=this.shouldUpdate(e),t&&this.update(e)}catch(e){throw t=!1,e}finally{this._markUpdated()}t&&(this._updateState&Wr||(this._updateState=this._updateState|Wr,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~Jr}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0)}updated(t){}firstUpdated(t){}}Qr[Kr]=!0;const Zr="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,to=Symbol();class eo{constructor(t,e){if(e!==to)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(Zr?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const no=(t,...e)=>{const n=e.reduce((e,n,r)=>e+(t=>{if(t instanceof eo)return t.cssText;if("number"==typeof t)return t;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${t}. Use 'unsafeCSS' to pass non-literal values, but\n            take care to ensure page security.`)})(n)+t[r+1],t[0]);return new eo(n,to)};
  /**
   * @license
   * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
   * This code may only be used under the BSD style license found at
   * http://polymer.github.io/LICENSE.txt
   * The complete set of authors may be found at
   * http://polymer.github.io/AUTHORS.txt
   * The complete set of contributors may be found at
   * http://polymer.github.io/CONTRIBUTORS.txt
   * Code distributed by Google as part of the polymer project is also
   * subject to an additional IP rights grant found at
   * http://polymer.github.io/PATENTS.txt
   */
  (window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");const ro=t=>t.flat?t.flat(1/0):function t(e,n=[]){for(let r=0,o=e.length;r<o;r++){const o=e[r];Array.isArray(o)?t(o,n):n.push(o)}return n}(t);class oo extends Qr{static finalize(){super.finalize.call(this),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]}static _getUniqueStyles(){const t=this.styles,e=[];if(Array.isArray(t)){ro(t).reduceRight((t,e)=>(t.add(e),t),new Set).forEach(t=>e.unshift(t))}else t&&e.push(t);return e}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?Zr?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){super.update(t);const e=this.render();e instanceof mr&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){}}oo.finalized=!0,oo.render=(t,e,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const r=n.scopeName,o=Or.has(e),i=Mr&&11===e.nodeType&&!!e.host,s=i&&!Dr.has(r),a=s?document.createDocumentFragment():e;if(((t,e,n)=>{let r=Or.get(e);void 0===r&&(er(e,e.firstChild),Or.set(e,r=new br(Object.assign({templateFactory:Cr},n))),r.appendInto(e)),r.setValue(t),r.commit()})(t,a,Object.assign({templateFactory:Ur(r)},n)),s){const t=Or.get(a);Or.delete(a);const n=t.value instanceof hr?t.value.template:void 0;Br(r,a,n),er(e,e.firstChild),e.appendChild(a),Or.set(e,t)}!o&&i&&window.ShadyCSS.styleElement(e.host)};var io=n(14),so=n.n(io);class ao extends oo{static get styles(){return no([so.a])}static get properties(){return{isScrolled:{attribute:!1}}}constructor(){super()}firstUpdated(){this.addEventListener("wheel",t=>this.scroll(t))}render(){return Rr`
  			<div class="background ${this.isScrolled?"background--scrolled":""}">
  				<div class='top'>
  					<slot name='top'></slot>
  				</div>
  				<div class='bottom'>
  					<slot name='bottom'></slot>
  				</div>
  			</div>
  		`}}const co=t=>({isScrolled:st(t)}),uo=t=>({scroll:e=>t(zn.handleScroll(e.deltaY))});class lo extends oo{static get properties(){return{name:{type:String}}}constructor(){super()}render(){return Rr`
  			<p class="title" style="margin: 0">
  				${this.name}
  			</p>
  		`}}var po=n(15),ho=n.n(po);class fo extends oo{static get styles(){return no([ho.a])}static get properties(){return{up:{type:Boolean}}}constructor(){super(),this.direction=""}handleClick(){this.up?this.scrollUp():this.scrollDown()}render(){return Rr`
  			<div class="scroll-toggler ${this.up?"up":""}" @click="${this.handleClick}">
  				<div class="uno"></div>
  				<div class="due"></div>
  			</div>
  		`}}const mo=t=>({scrollDown:()=>t(zn.setScroll(!0)),scrollUp:()=>t(zn.setScroll(!1))});var vo=n(16),go=n.n(vo);class yo extends oo{static get styles(){return no([go.a])}static get properties(){return{}}constructor(){super()}render(){return Rr`
              <div class="container">
                  T shirt component
              </div>
          `}}const _o=t=>({}),bo=t=>({});var wo=n(17),So=n.n(wo);class xo extends oo{static get styles(){return no([So.a])}static get properties(){return{inputText:{type:String,attribute:!1},isNewslettered:{type:Boolean,attribute:!1},isInError:{type:Boolean,attribute:!1}}}constructor(){super()}handleInput(t){this.inputText=t.target.value}handleSubmit(t){t.preventDefault(),this.isNewslettered||this.addToNewsletter(this.inputText)}successfullySubscribed(){return this.isNewslettered?Rr`
                  <span class="success">You've been successfully subscribed</span>
              `:this.isInError?Rr`
                  <span class="error">Your email contains errors</span>
              `:void 0}render(){return Rr`
              <div class="container">
                  <div class="component">
                      <input ?disabled="${this.isNewslettered}" @input="${this.handleInput}" type="text" placeholder="Your e-mail" />
                      <button ?disabled="${this.isNewslettered}" class="submit" @click="${this.handleSubmit}">Confirm</button>
                  </div>
                  <div class="messages">
                      ${this.successfullySubscribed()}
                  </div>
              </div>
          `}}const Eo=t=>({isNewslettered:at(t),isInError:ct(t)}),No=t=>({addToNewsletter:e=>t(zn.addToNewsletter(e))});customElements.define("c-test",Yn(Gn,Kn)(Xn)),customElements.define("c-background",Yn(co,uo)(ao)),customElements.define("c-title",lo),customElements.define("c-scroll-toggler",Yn(null,mo)(fo)),customElements.define("c-tshirt",Yn(_o,bo)(yo)),customElements.define("c-newsletter",Yn(Eo,No)(xo))}]);
  //# sourceMappingURL=main.a58ce0fb.js.map