p-elements-core 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/sample.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! P-ELEMENTS 1.2.0 - Fri Mar 11 2022 17:10:59 GMT+0100 (Central European Standard Time) */(()=>{var e={277:function(e,t,n){var r,o,a,i={scope:{}};i.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},i.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==n.g&&null!=n.g?n.g:e},i.global=i.getGlobal(this),i.SYMBOL_PREFIX="jscomp_symbol_",i.initSymbol=function(){i.initSymbol=function(){},i.global.Symbol||(i.global.Symbol=i.Symbol)},i.symbolCounter_=0,i.Symbol=function(e){return i.SYMBOL_PREFIX+(e||"")+i.symbolCounter_++},i.initSymbolIterator=function(){i.initSymbol();var e=i.global.Symbol.iterator;e||(e=i.global.Symbol.iterator=i.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&i.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return i.arrayIterator(this)}}),i.initSymbolIterator=function(){}},i.arrayIterator=function(e){var t=0;return i.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},i.iteratorPrototype=function(e){return i.initSymbolIterator(),(e={next:e})[i.global.Symbol.iterator]=function(){return this},e},i.array=i.array||{},i.iteratorFromArray=function(e,t){i.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},i.polyfill=function(e,t,n,r){if(t){for(n=i.global,e=e.split("."),r=0;r<e.length-1;r++){var o=e[r];o in n||(n[o]={}),n=n[o]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&i.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},i.polyfill("Array.prototype.keys",(function(e){return e||function(){return i.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function e(e){if(!F.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function n(e){return e.reduce((function(e,t){return e.concat(F.arr(t)?n(t):t)}),[])}function r(t){return F.arr(t)?t:(F.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function o(e,t){return e.some((function(e){return e===t}))}function a(e){var t,n={};for(t in e)n[t]=e[t];return n}function i(e,t){var n,r=a(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function l(e,t){var n,r=a(e);for(n in t)r[n]=F.und(e[n])?t[n]:e[n];return r}function c(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+(e=parseInt(t[1],16))+","+parseInt(t[2],16)+","+(t=parseInt(t[3],16))+",1)"}function s(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=e=o;else{var a=.5>o?o*(1+r):o+r-o*r,i=2*o-a;o=t(i,a,e+1/3),r=t(i,a,e),e=t(i,a,e-1/3)}return"rgba("+255*o+","+255*r+","+255*e+","+n+")"}function f(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function p(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}function d(e,t){return F.fnc(e)?e(t.target,t.id,t.total):e}function m(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function h(e,t){return F.dom(e)&&o(j,t)?"transform":F.dom(e)&&(e.getAttribute(t)||F.svg(e)&&e[t])?"attribute":F.dom(e)&&"transform"!==t&&m(e,t)?"css":null!=e[t]?"object":void 0}function y(e,n){var r=p(n);if(r=-1<n.indexOf("scale")?1:0+r,!(e=e.style.transform))return r;for(var o=[],a=[],i=[],u=/(\w+)\((.+?)\)/g;o=u.exec(e);)a.push(o[1]),i.push(o[2]);return e=t(i,(function(e,t){return a[t]===n})),e.length?e[0]:r}function v(e,t){switch(h(e,t)){case"transform":return y(e,t);case"css":return m(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function g(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=f(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function b(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function w(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var o=e.getItem(r);0<r&&(n+=b(t,o)),t=o}return n}function E(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return b({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return w(e);case"polygon":var t=e.points;return w(e)+b(t.getItem(t.numberOfItems-1),t.getItem(0))}}function L(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),o=n(-1),a=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function T(e,t){var n,r=/-?\d*\.?\d+/g;if(n=F.pth(e)?e.totalLength:e,F.col(n))if(F.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=F.hex(n)?c(n):F.hsl(n)?s(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=t&&!/\s/g.test(n)?o+t:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:F.str(e)||t?n.split(r):[]}}function M(e){return t(e=e?n(F.arr(e)?e.map(r):r(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function C(e){var t=M(e);return t.map((function(e,n){return{target:e,id:n,total:t.length}}))}function O(e,t){var n=a(t);if(F.arr(e)){var o=e.length;2!==o||F.obj(e[0])?F.fnc(t.duration)||(n.duration=t.duration/o):e={value:e}}return r(e).map((function(e,n){return n=n?0:t.delay,e=F.obj(e)&&!F.pth(e)?e:{value:e},F.und(e.delay)&&(e.delay=n),e})).map((function(e){return l(e,n)}))}function H(e,t){var n,r={};for(n in e){var o=d(e[n],t);F.arr(o)&&(o=o.map((function(e){return d(e,t)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function S(e){return F.arr(e)?D.apply(this,e):U[e]}function A(e,t){var n;return e.tweens.map((function(r){var o=(r=H(r,t)).value,a=v(t.target,e.name),i=n?n.to.original:a,u=(i=F.arr(o)?o[0]:i,g(F.arr(o)?o[1]:o,i));return a=f(u)||f(i)||f(a),r.from=T(i,a),r.to=T(u,a),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=S(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=F.pth(o),r.isColor=F.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function x(e,r){return t(n(e.map((function(e){return r.map((function(t){var n=h(e.target,t.name);if(n){var r=A(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t}))}))),(function(e){return!F.und(e)}))}function k(e,t,n,r){var o="delay"===e;return t.length?(o?Math.min:Math.max).apply(Math,t.map((function(t){return t[e]}))):o?r.delay:n.offset+r.delay+r.duration}function N(e){var t,n=i(R,e),r=i(I,e),o=C(e.targets),a=[],u=l(n,r);for(t in e)u.hasOwnProperty(t)||"targets"===t||a.push({name:t,offset:u.offset,tweens:O(e[t],r)});return l(n,{children:[],animatables:o,animations:e=x(o,a),duration:k("duration",e,n,r),delay:k("delay",e,n,r)})}function P(e){function n(){return window.Promise&&new Promise((function(e){return f=e}))}function r(e){return d.reversed?d.duration-e:e}function o(e){for(var n=0,r={},o=d.animations,a=o.length;n<a;){var i=o[n],u=i.animatable,l=(c=i.tweens)[p=c.length-1];p&&(l=t(c,(function(t){return e<t.end}))[0]||l);for(var c=Math.min(Math.max(e-l.start-l.delay,0),l.duration)/l.duration,s=isNaN(c)?1:l.easing(c,l.elasticity),f=(c=l.to.strings,l.round),p=[],h=void 0,y=(h=l.to.numbers.length,0);y<h;y++){var v=void 0,g=(v=l.to.numbers[y],l.from.numbers[y]);v=l.isPath?L(l.value,s*v):g+s*(v-g),f&&(l.isColor&&2<y||(v=Math.round(v*f)/f)),p.push(v)}if(l=c.length)for(h=c[0],s=0;s<l;s++)f=c[s+1],y=p[s],isNaN(y)||(h=f?h+(y+f):h+(y+" "));else h=p[0];V[i.type](u.target,i.property,h,r,u.id),i.currentValue=h,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)_||(_=m(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[o].target.style[_]=r[o].join(" ");d.currentTime=e,d.progress=e/d.duration*100}function a(e){d[e]&&d[e](d)}function i(){d.remaining&&!0!==d.remaining&&d.remaining--}function u(e){var t=d.duration,u=d.offset,m=u+d.delay,h=d.currentTime,y=d.reversed,v=r(e);if(d.children.length){var g=d.children,b=g.length;if(v>=d.currentTime)for(var w=0;w<b;w++)g[w].seek(v);else for(;b--;)g[b].seek(v)}(v>=m||!t)&&(d.began||(d.began=!0,a("begin")),a("run")),v>u&&v<t?o(v):(v<=u&&0!==h&&(o(0),y&&i()),(v>=t&&h!==t||!t)&&(o(t),y||i())),a("update"),e>=t&&(d.remaining?(c=l,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,a("complete"),"Promise"in window&&(f(),p=n()))),s=0)}e=void 0===e?{}:e;var l,c,s=0,f=null,p=n(),d=N(e);return d.reset=function(){var e=d.direction,t=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===e,d.remaining="alternate"===e&&1===t?2:t,o(0),e=d.children.length;e--;)d.children[e].reset()},d.tick=function(e){l=e,c||(c=l),u((s+l-c)*P.speed)},d.seek=function(e){u(r(e))},d.pause=function(){var e=q.indexOf(d);-1<e&&q.splice(e,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,c=0,s=r(d.currentTime),q.push(d),B||X())},d.reverse=function(){d.reversed=!d.reversed,c=0,s=r(d.currentTime)},d.restart=function(){d.pause(),d.reset(),d.play()},d.finished=p,d.reset(),d.autoplay&&d.play(),d}var _,R={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},I={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},j="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),F={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return F.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||F.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return F.hex(e)||F.rgb(e)||F.hsl(e)}},D=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,o){if(0<=t&&1>=t&&0<=r&&1>=r){var a=new Float32Array(11);if(t!==n||r!==o)for(var i=0;11>i;++i)a[i]=e(.1*i,t,r);return function(i){if(t===n&&r===o)return i;if(0===i)return 0;if(1===i)return 1;for(var u=0,l=1;10!==l&&a[l]<=i;++l)u+=.1;--l,l=u+(i-a[l])/(a[l+1]-a[l])*.1;var c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t;if(.001<=c){for(u=0;4>u&&0!=(c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t);++u){var s=e(l,t,r)-i;l-=s/c}i=l}else if(0===c)i=l;else{l=u,u+=.1;var f=0;do{0<(c=e(s=l+(u-l)/2,t,r)-i)?u=s:l=s}while(1e-7<Math.abs(c)&&10>++f);i=s}return e(i,n,o)}}}}(),U=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},o={linear:D(.25,.25,.75,.75)},a={};for(t in r)a.type=t,r[a.type].forEach(function(e){return function(t,r){o["ease"+e.type+n[r]]=F.fnc(t)?t:D.apply(u,t)}}(a)),a={type:a.type};return o}(),V={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){r[o]||(r[o]=[]),r[o].push(t+"("+n+")")}},q=[],B=0,X=function(){function e(){B=requestAnimationFrame(t)}function t(t){var n=q.length;if(n){for(var r=0;r<n;)q[r]&&q[r].tick(t),r++;e()}else cancelAnimationFrame(B),B=0}return e}();return P.version="2.2.0",P.speed=1,P.running=q,P.remove=function(e){e=M(e);for(var t=q.length;t--;)for(var n=q[t],r=n.animations,a=r.length;a--;)o(e,r[a].animatable.target)&&(r.splice(a,1),r.length||n.pause())},P.getValue=v,P.path=function(t,n){var r=F.str(t)?e(t)[0]:t,o=n||100;return function(e){return{el:r,property:e,totalLength:E(r)*(o/100)}}},P.setDashoffset=function(e){var t=E(e);return e.setAttribute("stroke-dasharray",t),t},P.bezier=D,P.easings=U,P.timeline=function(e){var t=P(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach((function(e){e.began=!0,e.completed=!0})),r(n).forEach((function(n){var r=l(n,i(I,e||{}));r.targets=r.targets||e.targets,n=t.duration;var o=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=F.und(o)?n:g(o,n),t.began=!0,t.completed=!0,t.seek(r.offset),(r=P(r)).began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},P.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},P},void 0===(a="function"==typeof r?r.apply(t,o):r)||(e.exports=a)},425:e=>{e.exports=
1
+ /*! P-ELEMENTS 1.2.2 - Wed Sep 06 2023 19:53:15 GMT+0200 (Central European Summer Time) */(()=>{var e={277:function(e,t,n){var r,o,a,i={scope:{}};i.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},i.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==n.g&&null!=n.g?n.g:e},i.global=i.getGlobal(this),i.SYMBOL_PREFIX="jscomp_symbol_",i.initSymbol=function(){i.initSymbol=function(){},i.global.Symbol||(i.global.Symbol=i.Symbol)},i.symbolCounter_=0,i.Symbol=function(e){return i.SYMBOL_PREFIX+(e||"")+i.symbolCounter_++},i.initSymbolIterator=function(){i.initSymbol();var e=i.global.Symbol.iterator;e||(e=i.global.Symbol.iterator=i.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&i.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return i.arrayIterator(this)}}),i.initSymbolIterator=function(){}},i.arrayIterator=function(e){var t=0;return i.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},i.iteratorPrototype=function(e){return i.initSymbolIterator(),(e={next:e})[i.global.Symbol.iterator]=function(){return this},e},i.array=i.array||{},i.iteratorFromArray=function(e,t){i.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},i.polyfill=function(e,t,n,r){if(t){for(n=i.global,e=e.split("."),r=0;r<e.length-1;r++){var o=e[r];o in n||(n[o]={}),n=n[o]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&i.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},i.polyfill("Array.prototype.keys",(function(e){return e||function(){return i.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function e(e){if(!F.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function n(e){return e.reduce((function(e,t){return e.concat(F.arr(t)?n(t):t)}),[])}function r(t){return F.arr(t)?t:(F.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function o(e,t){return e.some((function(e){return e===t}))}function a(e){var t,n={};for(t in e)n[t]=e[t];return n}function i(e,t){var n,r=a(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function l(e,t){var n,r=a(e);for(n in t)r[n]=F.und(e[n])?t[n]:e[n];return r}function c(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+(e=parseInt(t[1],16))+","+parseInt(t[2],16)+","+(t=parseInt(t[3],16))+",1)"}function s(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=e=o;else{var a=.5>o?o*(1+r):o+r-o*r,i=2*o-a;o=t(i,a,e+1/3),r=t(i,a,e),e=t(i,a,e-1/3)}return"rgba("+255*o+","+255*r+","+255*e+","+n+")"}function f(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function p(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}function d(e,t){return F.fnc(e)?e(t.target,t.id,t.total):e}function m(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function h(e,t){return F.dom(e)&&o(I,t)?"transform":F.dom(e)&&(e.getAttribute(t)||F.svg(e)&&e[t])?"attribute":F.dom(e)&&"transform"!==t&&m(e,t)?"css":null!=e[t]?"object":void 0}function y(e,n){var r=p(n);if(r=-1<n.indexOf("scale")?1:0+r,!(e=e.style.transform))return r;for(var o=[],a=[],i=[],u=/(\w+)\((.+?)\)/g;o=u.exec(e);)a.push(o[1]),i.push(o[2]);return e=t(i,(function(e,t){return a[t]===n})),e.length?e[0]:r}function v(e,t){switch(h(e,t)){case"transform":return y(e,t);case"css":return m(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function g(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=f(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function b(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function w(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var o=e.getItem(r);0<r&&(n+=b(t,o)),t=o}return n}function T(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return b({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return w(e);case"polygon":var t=e.points;return w(e)+b(t.getItem(t.numberOfItems-1),t.getItem(0))}}function L(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),o=n(-1),a=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function M(e,t){var n,r=/-?\d*\.?\d+/g;if(n=F.pth(e)?e.totalLength:e,F.col(n))if(F.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=F.hex(n)?c(n):F.hsl(n)?s(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=t&&!/\s/g.test(n)?o+t:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:F.str(e)||t?n.split(r):[]}}function E(e){return t(e=e?n(F.arr(e)?e.map(r):r(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function H(e){var t=E(e);return t.map((function(e,n){return{target:e,id:n,total:t.length}}))}function O(e,t){var n=a(t);if(F.arr(e)){var o=e.length;2!==o||F.obj(e[0])?F.fnc(t.duration)||(n.duration=t.duration/o):e={value:e}}return r(e).map((function(e,n){return n=n?0:t.delay,e=F.obj(e)&&!F.pth(e)?e:{value:e},F.und(e.delay)&&(e.delay=n),e})).map((function(e){return l(e,n)}))}function S(e,t){var n,r={};for(n in e){var o=d(e[n],t);F.arr(o)&&(o=o.map((function(e){return d(e,t)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function C(e){return F.arr(e)?D.apply(this,e):U[e]}function A(e,t){var n;return e.tweens.map((function(r){var o=(r=S(r,t)).value,a=v(t.target,e.name),i=n?n.to.original:a,u=(i=F.arr(o)?o[0]:i,g(F.arr(o)?o[1]:o,i));return a=f(u)||f(i)||f(a),r.from=M(i,a),r.to=M(u,a),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=C(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=F.pth(o),r.isColor=F.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function x(e,r){return t(n(e.map((function(e){return r.map((function(t){var n=h(e.target,t.name);if(n){var r=A(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t}))}))),(function(e){return!F.und(e)}))}function P(e,t,n,r){var o="delay"===e;return t.length?(o?Math.min:Math.max).apply(Math,t.map((function(t){return t[e]}))):o?r.delay:n.offset+r.delay+r.duration}function N(e){var t,n=i(j,e),r=i(k,e),o=H(e.targets),a=[],u=l(n,r);for(t in e)u.hasOwnProperty(t)||"targets"===t||a.push({name:t,offset:u.offset,tweens:O(e[t],r)});return l(n,{children:[],animatables:o,animations:e=x(o,a),duration:P("duration",e,n,r),delay:P("delay",e,n,r)})}function _(e){function n(){return window.Promise&&new Promise((function(e){return f=e}))}function r(e){return d.reversed?d.duration-e:e}function o(e){for(var n=0,r={},o=d.animations,a=o.length;n<a;){var i=o[n],u=i.animatable,l=(c=i.tweens)[p=c.length-1];p&&(l=t(c,(function(t){return e<t.end}))[0]||l);for(var c=Math.min(Math.max(e-l.start-l.delay,0),l.duration)/l.duration,s=isNaN(c)?1:l.easing(c,l.elasticity),f=(c=l.to.strings,l.round),p=[],h=void 0,y=(h=l.to.numbers.length,0);y<h;y++){var v=void 0,g=(v=l.to.numbers[y],l.from.numbers[y]);v=l.isPath?L(l.value,s*v):g+s*(v-g),f&&(l.isColor&&2<y||(v=Math.round(v*f)/f)),p.push(v)}if(l=c.length)for(h=c[0],s=0;s<l;s++)f=c[s+1],y=p[s],isNaN(y)||(h=f?h+(y+f):h+(y+" "));else h=p[0];V[i.type](u.target,i.property,h,r,u.id),i.currentValue=h,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)R||(R=m(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[o].target.style[R]=r[o].join(" ");d.currentTime=e,d.progress=e/d.duration*100}function a(e){d[e]&&d[e](d)}function i(){d.remaining&&!0!==d.remaining&&d.remaining--}function u(e){var t=d.duration,u=d.offset,m=u+d.delay,h=d.currentTime,y=d.reversed,v=r(e);if(d.children.length){var g=d.children,b=g.length;if(v>=d.currentTime)for(var w=0;w<b;w++)g[w].seek(v);else for(;b--;)g[b].seek(v)}(v>=m||!t)&&(d.began||(d.began=!0,a("begin")),a("run")),v>u&&v<t?o(v):(v<=u&&0!==h&&(o(0),y&&i()),(v>=t&&h!==t||!t)&&(o(t),y||i())),a("update"),e>=t&&(d.remaining?(c=l,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,a("complete"),"Promise"in window&&(f(),p=n()))),s=0)}e=void 0===e?{}:e;var l,c,s=0,f=null,p=n(),d=N(e);return d.reset=function(){var e=d.direction,t=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===e,d.remaining="alternate"===e&&1===t?2:t,o(0),e=d.children.length;e--;)d.children[e].reset()},d.tick=function(e){l=e,c||(c=l),u((s+l-c)*_.speed)},d.seek=function(e){u(r(e))},d.pause=function(){var e=q.indexOf(d);-1<e&&q.splice(e,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,c=0,s=r(d.currentTime),q.push(d),B||X())},d.reverse=function(){d.reversed=!d.reversed,c=0,s=r(d.currentTime)},d.restart=function(){d.pause(),d.reset(),d.play()},d.finished=p,d.reset(),d.autoplay&&d.play(),d}var R,j={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},k={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},I="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),F={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return F.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||F.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return F.hex(e)||F.rgb(e)||F.hsl(e)}},D=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,o){if(0<=t&&1>=t&&0<=r&&1>=r){var a=new Float32Array(11);if(t!==n||r!==o)for(var i=0;11>i;++i)a[i]=e(.1*i,t,r);return function(i){if(t===n&&r===o)return i;if(0===i)return 0;if(1===i)return 1;for(var u=0,l=1;10!==l&&a[l]<=i;++l)u+=.1;--l,l=u+(i-a[l])/(a[l+1]-a[l])*.1;var c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t;if(.001<=c){for(u=0;4>u&&0!=(c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t);++u){var s=e(l,t,r)-i;l-=s/c}i=l}else if(0===c)i=l;else{l=u,u+=.1;var f=0;do{0<(c=e(s=l+(u-l)/2,t,r)-i)?u=s:l=s}while(1e-7<Math.abs(c)&&10>++f);i=s}return e(i,n,o)}}}}(),U=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},o={linear:D(.25,.25,.75,.75)},a={};for(t in r)a.type=t,r[a.type].forEach(function(e){return function(t,r){o["ease"+e.type+n[r]]=F.fnc(t)?t:D.apply(u,t)}}(a)),a={type:a.type};return o}(),V={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){r[o]||(r[o]=[]),r[o].push(t+"("+n+")")}},q=[],B=0,X=function(){function e(){B=requestAnimationFrame(t)}function t(t){var n=q.length;if(n){for(var r=0;r<n;)q[r]&&q[r].tick(t),r++;e()}else cancelAnimationFrame(B),B=0}return e}();return _.version="2.2.0",_.speed=1,_.running=q,_.remove=function(e){e=E(e);for(var t=q.length;t--;)for(var n=q[t],r=n.animations,a=r.length;a--;)o(e,r[a].animatable.target)&&(r.splice(a,1),r.length||n.pause())},_.getValue=v,_.path=function(t,n){var r=F.str(t)?e(t)[0]:t,o=n||100;return function(e){return{el:r,property:e,totalLength:T(r)*(o/100)}}},_.setDashoffset=function(e){var t=T(e);return e.setAttribute("stroke-dasharray",t),t},_.bezier=D,_.easings=U,_.timeline=function(e){var t=_(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach((function(e){e.began=!0,e.completed=!0})),r(n).forEach((function(n){var r=l(n,i(k,e||{}));r.targets=r.targets||e.targets,n=t.duration;var o=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=F.und(o)?n:g(o,n),t.began=!0,t.completed=!0,t.seek(r.offset),(r=_(r)).began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},_.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},_},void 0===(a="function"==typeof r?r.apply(t,o):r)||(e.exports=a)},425:e=>{e.exports=
2
2
  /*!
3
3
  ISC License
4
4
 
@@ -17,4 +17,4 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
17
  PERFORMANCE OF THIS SOFTWARE.
18
18
 
19
19
  */
20
- function(e,t){"use strict";var n=e.document,r=e.Object,o=function(e){var t,n,o,a,i=/^[A-Z]+[a-z]/,u=function(e,t){(t=t.toLowerCase())in l||(l[e]=(l[e]||[]).concat(t),l[t]=l[t.toUpperCase()]=e)},l=(r.create||r)(null),c={};for(n in e)for(a in e[n])for(o=e[n][a],l[a]=o,t=0;t<o.length;t++)l[o[t].toLowerCase()]=l[o[t].toUpperCase()]=a;return c.get=function(e){return"string"==typeof e?l[e]||(i.test(e)?[]:""):function(e){var t,n=[];for(t in l)e.test(t)&&n.push(t);return n}(e)},c.set=function(e,t){return i.test(e)?u(e,t):u(t,e),c},c}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var a,i,u,l,c,s,f,p,d,m="registerElement",h="__registerElement"+(1e5*e.Math.random()>>0),y="addEventListener",v="attached",g="Callback",b="detached",w="extends",E="attributeChangedCallback",L="createdCallback",T="ADDITION",M="MODIFICATION",C="REMOVAL",O="DOMAttrModified",H="DOMContentLoaded",S="<",A="=",x=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,k=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],N=[],P=[],_="",R=n.documentElement,I=N.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},j=r.prototype,F=j.hasOwnProperty,D=j.isPrototypeOf,U=r.defineProperty,V=[],q=r.getOwnPropertyDescriptor,B=r.getOwnPropertyNames,X=r.getPrototypeOf,Z=r.setPrototypeOf,$=!!r.__proto__,Y="__dreCEv1",z=e.customElements,G=!/^force/.test(t.type)&&!!(z&&z.define&&z.get&&z.whenDefined),Q=r.create||r,K=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[I.call(t,e)]},set:function(r,o){(e=I.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},W=e.Promise||function(e){var t=[],n=!1,r={catch:function(){return r},then:function(e){return t.push(e),n&&setTimeout(o,1),r}};function o(e){for(n=!0;t.length;)t.shift()(e)}return e(o),r},J=!1,ee=Q(null),te=Q(null),ne=new K,re=function(e){return e.toLowerCase()},oe=r.create||function e(t){return t?(e.prototype=t,new e):this},ae=Z||($?function(e,t){return e.__proto__=t,e}:B&&q?function(){function e(e,t){for(var n,r=B(t),o=0,a=r.length;o<a;o++)n=r[o],F.call(e,n)||U(e,n,q(t,n))}return function(t,n){do{e(t,n)}while((n=X(n))&&!D.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),ie=e.MutationObserver||e.WebKitMutationObserver,ue=e.HTMLAnchorElement,le=(e.HTMLElement||e.Element||e.Node).prototype,ce=!D.call(le,R),se=ce?function(e,t,n){return e[t]=n.value,e}:U,fe=ce?function(e){return 1===e.nodeType}:function(e){return D.call(le,e)},pe=ce&&[],de=le.attachShadow,me=le.cloneNode,he=le.dispatchEvent,ye=le.getAttribute,ve=le.hasAttribute,ge=le.removeAttribute,be=le.setAttribute,we=n.createElement,Ee=n.importNode,Le=we,Te=ie&&{attributes:!0,characterData:!0,attributeOldValue:!0},Me=ie||function(e){Ae=!1,R.removeEventListener(O,Me)},Ce=0,Oe=m in n&&!/^force-all/.test(t.type),He=!0,Se=!1,Ae=!0,xe=!0,ke=!0;function Ne(){var e=a.splice(0,a.length);for(Ce=0;e.length;)e.shift().call(null,e.shift())}function Pe(e,t){for(var n=0,r=e.length;n<r;n++)Xe(e[n],t)}function _e(e){return function(t){fe(t)&&(Xe(t,e),_.length&&Pe(t.querySelectorAll(_),e))}}function Re(e){var t=ye.call(e,"is"),n=e.nodeName.toUpperCase(),r=I.call(N,t?A+t.toUpperCase():S+n);return t&&-1<r&&!Ie(n,t)?-1:r}function Ie(e,t){return-1<_.indexOf(e+'[is="'+t+'"]')}function je(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,a=e.ADDITION||2,i=e.REMOVAL||3;!ke||o&&o!==t||!t.attributeChangedCallback||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==a&&n!==i)||t.attributeChangedCallback(r,n===a?null:e.prevValue,n===i?null:e.newValue)}function Fe(e){var t=_e(e);return function(e){a.push(t,e.target),Ce&&clearTimeout(Ce),Ce=setTimeout(Ne,1)}}function De(e){xe&&(xe=!1,e.currentTarget.removeEventListener(H,De)),_.length&&Pe((e.target||n).querySelectorAll(_),e.detail===b?b:v),ce&&function(){for(var e,t=0,n=pe.length;t<n;t++)e=pe[t],R.contains(e)||(n--,pe.splice(t--,1),Xe(e,b))}()}function Ue(e,t){var n=this;be.call(n,e,t),i.call(n,{target:n})}function Ve(e,t,n){var r=t.apply(e,n),o=Re(r);return-1<o&&p(r,P[o]),n.pop()&&_.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],p(t,P[Re(t)])}(r.querySelectorAll(_)),r}function qe(e,t){ae(e,t),c?c.observe(e,Te):(Ae&&(e.setAttribute=Ue,e[h]=l(e),e.addEventListener("DOMSubtreeModified",i)),e.addEventListener(O,je)),e.createdCallback&&ke&&(e.created=!0,e.createdCallback(),e.created=!1)}function Be(e){throw new Error("A "+e+" type is already registered")}function Xe(e,t){var n,r,o=Re(e);-1<o&&(f(e,P[o]),o=0,t!==v||e.attached?t!==b||e.detached||(e.attached=!1,e.detached=!0,r="disconnected",o=1):(e.detached=!1,e.attached=!0,r="connected",o=1,ce&&I.call(pe,e)<0&&pe.push(e)),o&&(n=e[t+g]||e[r+g])&&n.call(e))}function Ze(){}function $e(e,t,r){var o=r&&r.extends||"",a=t.prototype,i=oe(a),u=t.observedAttributes||V,l={prototype:i};se(i,L,{value:function(){if(J)J=!1;else if(!this[Y]){this[Y]=!0,new t(this),a.createdCallback&&a.createdCallback.call(this);var e=ee[ne.get(t)];(!G||e.create.length>1)&&Ge(this)}}}),se(i,E,{value:function(e){-1<I.call(u,e)&&a.attributeChangedCallback&&a.attributeChangedCallback.apply(this,arguments)}}),a.connectedCallback&&se(i,"attachedCallback",{value:a.connectedCallback}),a.disconnectedCallback&&se(i,"detachedCallback",{value:a.disconnectedCallback}),o&&(l.extends=o),e=e.toUpperCase(),ee[e]={constructor:t,create:o?[o,re(e)]:[e]},ne.set(t,e),n.registerElement(e.toLowerCase(),l),Qe(e),te[e].r()}function Ye(e){var t=ee[e.toUpperCase()];return t&&t.constructor}function ze(e){return"string"==typeof e?e:e&&e.is||""}function Ge(e){for(var t,n=e.attributeChangedCallback,r=n?e.attributes:V,o=r.length;o--;)t=r[o],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function Qe(e){return(e=e.toUpperCase())in te||(te[e]={},te[e].p=new W((function(t){te[e].r=t}))),te[e].p}function Ke(){z&&delete e.customElements,U(e,"customElements",{configurable:!0,value:new Ze}),U(e,"CustomElementRegistry",{configurable:!0,value:Ze});for(var t=function(t){var r=e[t];if(r){e[t]=function(e){var t,o;return e||(e=this),e[Y]||(J=!0,t=ee[ne.get(e.constructor)],(e=(o=G&&1===t.create.length)?Reflect.construct(r,V,t.constructor):n.createElement.apply(n,t.create))[Y]=!0,J=!1,o||Ge(e)),e},e[t].prototype=r.prototype;try{r.prototype.constructor=e[t]}catch(n){!0,U(r,Y,{value:e[t]})}}},r=o.get(/^HTML[A-Z]*[a-z]/),a=r.length;a--;t(r[a]));n.createElement=function(e,t){var n=ze(t);return n?Le.call(this,e,re(n)):Le.call(this,e)},Oe||(Se=!0,n.registerElement(""))}if(ie&&((d=n.createElement("div")).innerHTML="<div><div></div></div>",new ie((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(d=q(le,"innerHTML"))&&d.set;n&&U(le,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),d=null})).observe(d,{childList:!0,subtree:!0}),d.innerHTML=""),Oe||(Z||$?(f=function(e,t){D.call(t,e)||qe(e,t)},p=qe):p=f=function(e,t){e[h]||(e[h]=r(!0),qe(e,t))},ce?(Ae=!1,function(){var e=q(le,y),t=e.value,n=function(e){var t=new CustomEvent(O,{bubbles:!0});t.attrName=e,t.prevValue=ye.call(this,e),t.newValue=null,t.REMOVAL=t.attrChange=2,ge.call(this,e),he.call(this,t)},r=function(e,t){var n=ve.call(this,e),r=n&&ye.call(this,e),o=new CustomEvent(O,{bubbles:!0});be.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o.ADDITION=o.attrChange=0,he.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[h],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(O,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t.ADDITION=t.attrChange=0:t.MODIFICATION=t.attrChange=1,he.call(n,t))};e.value=function(e,a,i){e===O&&this.attributeChangedCallback&&this.setAttribute!==r&&(this[h]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,a,i)},U(le,y,e)}()):ie||(R.addEventListener(O,Me),R.setAttribute(h,1),R.removeAttribute(h),Ae&&(i=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[h],o[h]=n=l(o),n){if(!(r in t))return u(0,o,r,t[r],n[r],T);if(n[r]!==t[r])return u(1,o,r,t[r],n[r],M)}for(r in t)if(!(r in n))return u(2,o,r,t[r],n[r],C)}},u=function(e,t,n,r,o,a){var i={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};i[a]=e,je(i)},l=function(e){for(var t,n,r={},o=e.attributes,a=0,i=o.length;a<i;a++)"setAttribute"!==(n=(t=o[a]).name)&&(r[n]=t.value);return r})),n.registerElement=function(e,t){if(r=e.toUpperCase(),He&&(He=!1,ie?(c=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new ie((function(r){for(var o,a,i,u=0,l=r.length;u<l;u++)"childList"===(o=r[u]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(a=o.target,ke&&a.attributeChangedCallback&&"style"!==o.attributeName&&(i=ye.call(a,o.attributeName))!==o.oldValue&&a.attributeChangedCallback(o.attributeName,o.oldValue,i))}))}(_e(v),_e(b)),(s=function(e){return c.observe(e,{childList:!0,subtree:!0}),e})(n),de&&(le.attachShadow=function(){return s(de.apply(this,arguments))})):(a=[],n.addEventListener("DOMNodeInserted",Fe(v)),n.addEventListener("DOMNodeRemoved",Fe(b))),n.addEventListener(H,De),n.addEventListener("readystatechange",De),n.importNode=function(e,t){switch(e.nodeType){case 1:return Ve(n,Ee,[e,!!t]);case 11:for(var r=n.createDocumentFragment(),o=e.childNodes,a=o.length,i=0;i<a;i++)r.appendChild(n.importNode(o[i],!!t));return r;default:return me.call(e,!!t)}},le.cloneNode=function(e){return Ve(this,me,[!!e])}),Se)return Se=!1;if(-2<I.call(N,A+r)+I.call(N,S+r)&&Be(e),!x.test(r)||-1<I.call(k,r))throw new Error("The type "+e+" is invalid");var r,o,i=function(){return l?n.createElement(f,r):n.createElement(f)},u=t||j,l=F.call(u,w),f=l?t.extends.toUpperCase():r;return l&&-1<I.call(N,S+f)&&Be(f),o=N.push((l?A:S)+r)-1,_=_.concat(_.length?",":"",l?f+'[is="'+e.toLowerCase()+'"]':f),i.prototype=P[o]=F.call(u,"prototype")?u.prototype:oe(le),_.length&&Pe(n.querySelectorAll(_),v),i},n.createElement=Le=function(e,t){var r=ze(t),o=r?we.call(n,e,re(r)):we.call(n,e),a=""+e,i=I.call(N,(r?A:S)+(r||a).toUpperCase()),u=-1<i;return r&&(o.setAttribute("is",r=r.toLowerCase()),u&&(u=Ie(a.toUpperCase(),r))),ke=!n.createElement.innerHTMLHelper,u&&p(o,P[i]),o}),Ze.prototype={constructor:Ze,define:G?function(e,t,n){if(n)$e(e,t,n);else{var r=e.toUpperCase();ee[r]={constructor:t,create:[r]},ne.set(t,r),z.define(e,t)}}:$e,get:G?function(e){return z.get(e)||Ye(e)}:Ye,whenDefined:G?function(e){return W.race([z.whenDefined(e),Qe(e)])}:Qe},!z||/^force/.test(t.type))Ke();else if(!t.noBuiltIn)try{!function(t,r,o){var a=new RegExp("^<a\\s+is=('|\")"+o+"\\1></a>$");if(r.extends="a",(t.prototype=oe(ue.prototype)).constructor=t,e.customElements.define(o,t,r),!a.test(n.createElement("a",{is:o}).outerHTML)||!a.test((new t).outerHTML))throw r}((function e(){return Reflect.construct(ue,[],e)}),{},"document-register-element-a")}catch(e){Ke()}if(!t.noBuiltIn)try{if(we.call(n,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){re=function(e){return{is:e.toLowerCase()}}}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)},r(e)}function o(e,t,n){return o=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},o.apply(null,arguments)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var c=new Map,s=function(e){return function(t){setTimeout((function(){customElements.define(e.tagName,t,e.options)}),10);var n=e.tagName.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));window[n.charAt(0).toUpperCase()+n.slice(1)]=t}};function f(e,t){Reflect.get(e,"_dp_"+t)||Reflect.defineProperty(e,"_dp_"+t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(e){this["_"+t+"_value"]=e}}),e["_dp_setters_"+t]||(e["_dp_setters_"+t]=[]);e["_dp_setters_"+t].push((function(e,t){e&&e.renderNow&&e.renderNow()}));Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(n){var r=this;this["_dp_"+t]=n,e["_dp_setters_"+t]&&e["_dp_setters_"+t].forEach((function(e){e(r,n)}))}})}var p,d=n(425);p=document.registerElement,/\{\s*\[native code\]\s*\}/.test(""+p)||d(window,"auto");var m=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(d,n);var r,o,l,s,f,p=(r=d,o=a(),function(){var e,n=u(r);if(o){var a=u(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return t(this,e)});function d(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),n=r=p.call(this,e),r._projector=void 0,e=n,"function"==typeof r.init&&r.init(),t(r,e)}return l=d,(s=[{key:"templateFromString",value:function(e){var t=this;this.shadowRoot||this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML="";var n=this.shadowRoot.adoptedStyleSheets&&CSSStyleSheet,r="<style></style>",o=e.match(/<style[^>]*>([\s\S]*?)<\/style>/);if(o)if(r=o[0],c.has(this.tagName))e=e.replace(o[0],'<link rel="stylesheet" href="'.concat(c.get(this.tagName),'">'));else if(n){e=e.replace(o[0],"");var a=new CSSStyleSheet;a.replaceSync(o[1]),this.shadowRoot.adoptedStyleSheets=[a]}else{var i=new Blob([o[1]],{type:"text/css"});e=e.replace(o[0],'<link rel="stylesheet" href="'.concat(URL.createObjectURL(i),'" data-tmp="true">'))}var u=document.createElement("template");u.innerHTML=e;var l=document.importNode(u.content,!0),s=function(){if(c.has(t.tagName))return c.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent,o=new Blob([n],{type:"text/css"}),a=URL.createObjectURL(o);return c.set(t.tagName,a),a};return window.addEventListener("customStyleConnected",(function(){setTimeout((function(){if(n){e=e.replace(o[0],"");var a=new CSSStyleSheet;a.replaceSync(function(){if(c.has(t.tagName))return c.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent;return c.set(t.tagName,n),n}()),t.shadowRoot.adoptedStyleSheets=[a]}else{var i=t.shadowRoot.querySelector("link");i&&(i.hasAttribute("data-tmp")&&(URL.revokeObjectURL(i.href),i.removeAttribute("data-tmp")),i.href=s())}}),300)})),setTimeout((function(){var e=t.shadowRoot.querySelector("link");e&&(e.hasAttribute("data-tmp")&&(URL.revokeObjectURL(e.href),e.removeAttribute("data-tmp")),e.href=s())}),100),l}},{key:"createProjector",value:function(e,t){var n=this;return new Promise((function(r,o){var a;setTimeout((function(){(a=window.Maquette.createProjector()).append(e,t),n._projector=a,r(a),n.dispatchEvent(new CustomEvent("firstRender",{}))}),1)}))}},{key:"renderNow",value:function(){this._projector&&this._projector.renderNow()}}])&&e(l.prototype,s),f&&e(l,f),Object.defineProperty(l,"prototype",{writable:!1}),d}(r(HTMLElement)),y=n(277);function v(e){var t="function"==typeof Map?new Map:void 0;return v=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return g(e,arguments,S(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),T(n,e)},v(e)}function g(e,t,n){return g=H()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&T(o,n.prototype),o},g.apply(null,arguments)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}function T(e,t){return T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},T(e,t)}function M(e){var t=H();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var x=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":A(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},k=function(e){L(n,e);var t=M(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).count=1,e.name="",e.foo="foo",e.onInput=function(t){e.name=t.target.value},e.onPeterClick=function(t){console.log({e:t,p:O(e)})},e.render=function(){return h("div",null,h("h1",{eventListeners:[["click",function(e){return console.log(e)}]],id:"Foo"},"Hallo"),h("h1",{"data-title":e.name&&e.name.toLocaleUpperCase(),class:"title"},e.foo," ",e.name),h("p",{"data-count":e.count,updateAnimation:e.countUpdateAnimation},e.count),h("div",{id:"SlotContainer"},h("slot",null)),h("p",null,"Please enter your name (hint type"," ",h("em",null,h("strong",null,"Peter")),")",h("br",null),h("input",{type:"text",value:e.name,oninput:e.onInput})),h("p",null,h("a",{is:"super-a"},"Super a")),e.name&&e.name.toLowerCase&&e.name.toLowerCase().indexOf("peter")>-1?h("div",{key:"peter",afterRemoved:e.peterRemoved,afterCreate:e.peterCreate,class:"is-peter",eventListeners:[["click",e.onPeterClick]],enterAnimation:e.enterAnimation,exitAnimation:e.exitAnimation},h("p",null,"Hello Peter"),h("img",{class:"is-peter--image",src:"https://s-media-cache-ak0.pinimg.com/474x/ce/1d/07/ce1d07011c0afb8e0614a0ae42a8c861.jpg",height:"140"})):"")},e.onFooEvent=function(t){e.foo=t.detail.foo},e}return E(n,[{key:"enterAnimation",value:function(e,t){y({targets:e,translateX:[{value:100,duration:1200},{value:0,duration:800}],rotate:"2turn",duration:3e3,loop:!1})}},{key:"exitAnimation",value:function(e,t,n){y({targets:e,translateX:[{value:100,duration:1200},{value:0,duration:800}],duration:3e3,opacity:0,loop:!1,complete:function(){t(e)}})}},{key:"countUpdateAnimation",value:function(e,t,n){y.timeline().add([{duration:300,targets:e,translateX:200,scale:1.9,easing:"easeOutExpo"},{duration:300,targets:e,translateX:0,scale:1,easing:"easeInExpo"}])}},{key:"peterRemoved",value:function(){console.log("removed")}},{key:"peterCreate",value:function(){console.log("create")}},{key:"connectedCallback",value:function(){var e=this,t=this.templateFromString('\n <style>\n\n :host{\n /* display: none; */\n }\n\n .root {\n display: flex;\n padding: 10px;\n flex-direction: row;\n }\n\n #Foo {\n @apply --mixin-sample;\n text-decoration: underline;\n }\n\n #SlotContainer ::slotted(*) {\n font-weight: bold;\n color: green;\n font-size: 1.5em;\n }\n\n </style>\n <div class="root"></div>\n ');this.shadowRoot.appendChild(t),this.createProjector(this.shadowRoot.querySelector(".root"),this.render),setInterval((function(){e.count++,e.renderNow()}),5e3),window.addEventListener("foo",this.onFooEvent)}},{key:"attributeChangedCallback",value:function(e,t,n){"name"===e&&(this.name=n)}}],[{key:"observedAttributes",get:function(){return["name"]}}]),n}(m);x([f],k.prototype,"name",void 0),x([f],k.prototype,"foo",void 0),k=x([s({tagName:"my-greetings"})],k);var N=function(e){L(n,e);var t=M(n);function n(){return b(this,n),t.apply(this,arguments)}return E(n,[{key:"connectedCallback",value:function(){var e=this.templateFromString('<style>:host{color: red}</style><div class="root"></div>');this.shadowRoot.appendChild(e),this.shadowRoot.querySelector(".root").innerHTML="\n <div>P-FOO</div>\n "}}]),n}(m);N=x([s({tagName:"p-foo"})],N);var P=function(e){L(n,e);var t=M(n);function n(){return b(this,n),t.apply(this,arguments)}return E(n,[{key:"connectedCallback",value:function(){this.classList.add("super"),this.style.color="red"}}]),n}(v(HTMLAnchorElement));window.customElements.define("super-a",P,{extends:"a"})})()})();
20
+ function(e,t){"use strict";var n=e.document,r=e.Object,o=function(e){var t,n,o,a,i=/^[A-Z]+[a-z]/,u=function(e,t){(t=t.toLowerCase())in l||(l[e]=(l[e]||[]).concat(t),l[t]=l[t.toUpperCase()]=e)},l=(r.create||r)(null),c={};for(n in e)for(a in e[n])for(o=e[n][a],l[a]=o,t=0;t<o.length;t++)l[o[t].toLowerCase()]=l[o[t].toUpperCase()]=a;return c.get=function(e){return"string"==typeof e?l[e]||(i.test(e)?[]:""):function(e){var t,n=[];for(t in l)e.test(t)&&n.push(t);return n}(e)},c.set=function(e,t){return i.test(e)?u(e,t):u(t,e),c},c}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var a,i,u,l,c,s,f,p,d,m="registerElement",h="__"+m+(1e5*e.Math.random()>>0),y="addEventListener",v="attached",g="Callback",b="detached",w="extends",T="attributeChanged"+g,L=v+g,M="connected"+g,E="disconnected"+g,H="created"+g,O=b+g,S="ADDITION",C="MODIFICATION",A="REMOVAL",x="DOMAttrModified",P="DOMContentLoaded",N="<",_="=",R=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,j=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],k=[],I=[],F="",D=n.documentElement,U=k.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},V=r.prototype,q=V.hasOwnProperty,B=V.isPrototypeOf,X=r.defineProperty,Z=[],$=r.getOwnPropertyDescriptor,Y=r.getOwnPropertyNames,z=r.getPrototypeOf,G=r.setPrototypeOf,Q=!!r.__proto__,K="__dreCEv1",W=e.customElements,J=!/^force/.test(t.type)&&!!(W&&W.define&&W.get&&W.whenDefined),ee=r.create||r,te=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[U.call(t,e)]},set:function(r,o){(e=U.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},ne=e.Promise||function(e){var t=[],n=!1,r={catch:function(){return r},then:function(e){return t.push(e),n&&setTimeout(o,1),r}};function o(e){for(n=!0;t.length;)t.shift()(e)}return e(o),r},re=!1,oe=ee(null),ae=ee(null),ie=new te,ue=function(e){return e.toLowerCase()},le=r.create||function e(t){return t?(e.prototype=t,new e):this},ce=G||(Q?function(e,t){return e.__proto__=t,e}:Y&&$?function(){function e(e,t){for(var n,r=Y(t),o=0,a=r.length;o<a;o++)n=r[o],q.call(e,n)||X(e,n,$(t,n))}return function(t,n){do{e(t,n)}while((n=z(n))&&!B.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),se=e.MutationObserver||e.WebKitMutationObserver,fe=e.HTMLAnchorElement,pe=(e.HTMLElement||e.Element||e.Node).prototype,de=!B.call(pe,D),me=de?function(e,t,n){return e[t]=n.value,e}:X,he=de?function(e){return 1===e.nodeType}:function(e){return B.call(pe,e)},ye=de&&[],ve=pe.attachShadow,ge=pe.cloneNode,be=pe.dispatchEvent,we=pe.getAttribute,Te=pe.hasAttribute,Le=pe.removeAttribute,Me=pe.setAttribute,Ee=n.createElement,He=n.importNode,Oe=Ee,Se=se&&{attributes:!0,characterData:!0,attributeOldValue:!0},Ce=se||function(e){_e=!1,D.removeEventListener(x,Ce)},Ae=0,xe=m in n&&!/^force-all/.test(t.type),Pe=!0,Ne=!1,_e=!0,Re=!0,je=!0;function ke(){var e=a.splice(0,a.length);for(Ae=0;e.length;)e.shift().call(null,e.shift())}function Ie(e,t){for(var n=0,r=e.length;n<r;n++)ze(e[n],t)}function Fe(e){return function(t){he(t)&&(ze(t,e),F.length&&Ie(t.querySelectorAll(F),e))}}function De(e){var t=we.call(e,"is"),n=e.nodeName.toUpperCase(),r=U.call(k,t?_+t.toUpperCase():N+n);return t&&-1<r&&!Ue(n,t)?-1:r}function Ue(e,t){return-1<F.indexOf(e+'[is="'+t+'"]')}function Ve(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,a=e[S]||2,i=e[A]||3;!je||o&&o!==t||!t[T]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==a&&n!==i)||t[T](r,n===a?null:e.prevValue,n===i?null:e.newValue)}function qe(e){var t=Fe(e);return function(e){a.push(t,e.target),Ae&&clearTimeout(Ae),Ae=setTimeout(ke,1)}}function Be(e){Re&&(Re=!1,e.currentTarget.removeEventListener(P,Be)),F.length&&Ie((e.target||n).querySelectorAll(F),e.detail===b?b:v),de&&function(){for(var e,t=0,n=ye.length;t<n;t++)e=ye[t],D.contains(e)||(n--,ye.splice(t--,1),ze(e,b))}()}function Xe(e,t){var n=this;Me.call(n,e,t),i.call(n,{target:n})}function Ze(e,t,n){var r=t.apply(e,n),o=De(r);return-1<o&&p(r,I[o]),n.pop()&&F.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],p(t,I[De(t)])}(r.querySelectorAll(F)),r}function $e(e,t){ce(e,t),c?c.observe(e,Se):(_e&&(e.setAttribute=Xe,e[h]=l(e),e[y]("DOMSubtreeModified",i)),e[y](x,Ve)),e[H]&&je&&(e.created=!0,e[H](),e.created=!1)}function Ye(e){throw new Error("A "+e+" type is already registered")}function ze(e,t){var n,r,o=De(e);-1<o&&(f(e,I[o]),o=0,t!==v||e[v]?t!==b||e[b]||(e[v]=!1,e[b]=!0,r="disconnected",o=1):(e[b]=!1,e[v]=!0,r="connected",o=1,de&&U.call(ye,e)<0&&ye.push(e)),o&&(n=e[t+g]||e[r+g])&&n.call(e))}function Ge(){}function Qe(e,t,r){var o=r&&r[w]||"",a=t.prototype,i=le(a),u=t.observedAttributes||Z,l={prototype:i};me(i,H,{value:function(){if(re)re=!1;else if(!this[K]){this[K]=!0,new t(this),a[H]&&a[H].call(this);var e=oe[ie.get(t)];(!J||e.create.length>1)&&Je(this)}}}),me(i,T,{value:function(e){-1<U.call(u,e)&&a[T]&&a[T].apply(this,arguments)}}),a[M]&&me(i,L,{value:a[M]}),a[E]&&me(i,O,{value:a[E]}),o&&(l[w]=o),e=e.toUpperCase(),oe[e]={constructor:t,create:o?[o,ue(e)]:[e]},ie.set(t,e),n[m](e.toLowerCase(),l),et(e),ae[e].r()}function Ke(e){var t=oe[e.toUpperCase()];return t&&t.constructor}function We(e){return"string"==typeof e?e:e&&e.is||""}function Je(e){for(var t,n=e[T],r=n?e.attributes:Z,o=r.length;o--;)t=r[o],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function et(e){return(e=e.toUpperCase())in ae||(ae[e]={},ae[e].p=new ne((function(t){ae[e].r=t}))),ae[e].p}function tt(){W&&delete e.customElements,X(e,"customElements",{configurable:!0,value:new Ge}),X(e,"CustomElementRegistry",{configurable:!0,value:Ge});for(var t=function(t){var r=e[t];if(r){e[t]=function(e){var t,o;return e||(e=this),e[K]||(re=!0,t=oe[ie.get(e.constructor)],(e=(o=J&&1===t.create.length)?Reflect.construct(r,Z,t.constructor):n.createElement.apply(n,t.create))[K]=!0,re=!1,o||Je(e)),e},e[t].prototype=r.prototype;try{r.prototype.constructor=e[t]}catch(n){!0,X(r,K,{value:e[t]})}}},r=o.get(/^HTML[A-Z]*[a-z]/),a=r.length;a--;t(r[a]));n.createElement=function(e,t){var n=We(t);return n?Oe.call(this,e,ue(n)):Oe.call(this,e)},xe||(Ne=!0,n[m](""))}if(se&&((d=n.createElement("div")).innerHTML="<div><div></div></div>",new se((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(d=$(pe,"innerHTML"))&&d.set;n&&X(pe,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),d=null})).observe(d,{childList:!0,subtree:!0}),d.innerHTML=""),xe||(G||Q?(f=function(e,t){B.call(t,e)||$e(e,t)},p=$e):p=f=function(e,t){e[h]||(e[h]=r(!0),$e(e,t))},de?(_e=!1,function(){var e=$(pe,y),t=e.value,n=function(e){var t=new CustomEvent(x,{bubbles:!0});t.attrName=e,t.prevValue=we.call(this,e),t.newValue=null,t[A]=t.attrChange=2,Le.call(this,e),be.call(this,t)},r=function(e,t){var n=Te.call(this,e),r=n&&we.call(this,e),o=new CustomEvent(x,{bubbles:!0});Me.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o[C]=o.attrChange=1:o[S]=o.attrChange=0,be.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[h],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(x,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[S]=t.attrChange=0:t[C]=t.attrChange=1,be.call(n,t))};e.value=function(e,a,i){e===x&&this[T]&&this.setAttribute!==r&&(this[h]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,a,i)},X(pe,y,e)}()):se||(D[y](x,Ce),D.setAttribute(h,1),D.removeAttribute(h),_e&&(i=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[h],o[h]=n=l(o),n){if(!(r in t))return u(0,o,r,t[r],n[r],S);if(n[r]!==t[r])return u(1,o,r,t[r],n[r],C)}for(r in t)if(!(r in n))return u(2,o,r,t[r],n[r],A)}},u=function(e,t,n,r,o,a){var i={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};i[a]=e,Ve(i)},l=function(e){for(var t,n,r={},o=e.attributes,a=0,i=o.length;a<i;a++)"setAttribute"!==(n=(t=o[a]).name)&&(r[n]=t.value);return r})),n[m]=function(e,t){if(r=e.toUpperCase(),Pe&&(Pe=!1,se?(c=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new se((function(r){for(var o,a,i,u=0,l=r.length;u<l;u++)"childList"===(o=r[u]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(a=o.target,je&&a[T]&&"style"!==o.attributeName&&(i=we.call(a,o.attributeName))!==o.oldValue&&a[T](o.attributeName,o.oldValue,i))}))}(Fe(v),Fe(b)),(s=function(e){return c.observe(e,{childList:!0,subtree:!0}),e})(n),ve&&(pe.attachShadow=function(){return s(ve.apply(this,arguments))})):(a=[],n[y]("DOMNodeInserted",qe(v)),n[y]("DOMNodeRemoved",qe(b))),n[y](P,Be),n[y]("readystatechange",Be),n.importNode=function(e,t){switch(e.nodeType){case 1:return Ze(n,He,[e,!!t]);case 11:for(var r=n.createDocumentFragment(),o=e.childNodes,a=o.length,i=0;i<a;i++)r.appendChild(n.importNode(o[i],!!t));return r;default:return ge.call(e,!!t)}},pe.cloneNode=function(e){return Ze(this,ge,[!!e])}),Ne)return Ne=!1;if(-2<U.call(k,_+r)+U.call(k,N+r)&&Ye(e),!R.test(r)||-1<U.call(j,r))throw new Error("The type "+e+" is invalid");var r,o,i=function(){return l?n.createElement(f,r):n.createElement(f)},u=t||V,l=q.call(u,w),f=l?t[w].toUpperCase():r;return l&&-1<U.call(k,N+f)&&Ye(f),o=k.push((l?_:N)+r)-1,F=F.concat(F.length?",":"",l?f+'[is="'+e.toLowerCase()+'"]':f),i.prototype=I[o]=q.call(u,"prototype")?u.prototype:le(pe),F.length&&Ie(n.querySelectorAll(F),v),i},n.createElement=Oe=function(e,t){var r=We(t),o=r?Ee.call(n,e,ue(r)):Ee.call(n,e),a=""+e,i=U.call(k,(r?_:N)+(r||a).toUpperCase()),u=-1<i;return r&&(o.setAttribute("is",r=r.toLowerCase()),u&&(u=Ue(a.toUpperCase(),r))),je=!n.createElement.innerHTMLHelper,u&&p(o,I[i]),o}),Ge.prototype={constructor:Ge,define:J?function(e,t,n){if(n)Qe(e,t,n);else{var r=e.toUpperCase();oe[r]={constructor:t,create:[r]},ie.set(t,r),W.define(e,t)}}:Qe,get:J?function(e){return W.get(e)||Ke(e)}:Ke,whenDefined:J?function(e){return ne.race([W.whenDefined(e),et(e)])}:et},!W||/^force/.test(t.type))tt();else if(!t.noBuiltIn)try{!function(t,r,o){var a=new RegExp("^<a\\s+is=('|\")"+o+"\\1></a>$");if(r[w]="a",(t.prototype=le(fe.prototype)).constructor=t,e.customElements.define(o,t,r),!a.test(n.createElement("a",{is:o}).outerHTML)||!a.test((new t).outerHTML))throw r}((function e(){return Reflect.construct(fe,[],e)}),{},"document-register-element-a")}catch(e){tt()}if(!t.noBuiltIn)try{if(Ee.call(n,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){ue=function(e){return{is:e.toLowerCase()}}}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)},r(e)}function o(e,t,n){return o=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},o.apply(null,arguments)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var c=function(e){return function(t){setTimeout((function(){customElements.define(e.tagName,t,e.options)}),10);var n=e.tagName.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));window[n.charAt(0).toUpperCase()+n.slice(1)]=t}};function s(e,t){Reflect.get(e,"_dp_"+t)||Reflect.defineProperty(e,"_dp_"+t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(e){this["_"+t+"_value"]=e}}),e["_dp_setters_"+t]||(e["_dp_setters_"+t]=[]);e["_dp_setters_"+t].push((function(e,t){e&&e.renderNow&&e.renderNow()}));Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return this["_"+t+"_value"]},set:function(n){var r=this;this["_dp_"+t]=n,e["_dp_setters_"+t]&&e["_dp_setters_"+t].forEach((function(e){e(r,n)}))}})}var f,p=n(425);f=document.registerElement,/\{\s*\[native code\]\s*\}/.test(""+f)||p(window,"auto");var d=new Map,m=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(p,n);var r,o,l,c,s,f=(r=p,o=a(),function(){var e,n=u(r);if(o){var a=u(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return t(this,e)});function p(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),n=r=f.call(this,e),r._projector=void 0,e=n,"function"==typeof r.init&&r.init(),t(r,e)}return l=p,(c=[{key:"templateFromString",value:function(e){var t=this;this.shadowRoot||this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML="";var n=this.shadowRoot.adoptedStyleSheets&&CSSStyleSheet,r="<style></style>",o=e.match(/<style[^>]*>([\s\S]*?)<\/style>/);if(o)if(r=o[0],n){e=e.replace(o[0],"");var a=new CSSStyleSheet;a.replaceSync(!0===d.has(this.tagName)?d.get(this.tagName):o[1]),this.shadowRoot.adoptedStyleSheets=[a]}else{var i=new Blob([d.get(this.tagName)?d.get(this.tagName):o[1]],{type:"text/css"});e=e.replace(o[0],'<link rel="stylesheet" href="'.concat(URL.createObjectURL(i),'" data-tmp="true">'))}var u=document.createElement("template");u.innerHTML=e;var l=document.importNode(u.content,!0),c=function(){if(d.has(t.tagName))return d.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent,o=new Blob([n],{type:"text/css"}),a=URL.createObjectURL(o);return d.set(t.tagName,a),a};return window.addEventListener("customStyleConnected",(function(){setTimeout((function(){if(o&&n){e=e.replace(o[0],"");var a=new CSSStyleSheet,i=function(){if(d.has(t.tagName))return d.get(t.tagName);var e=document.createElement("template");e.innerHTML=r,window.ShadyCSS.prepareTemplate(e,"x-tmp");var n=e.content.cloneNode(!0).querySelector("style").textContent;return d.set(t.tagName,n),n}();a.replaceSync(i),t.shadowRoot.adoptedStyleSheets=[a]}else{var u=t.shadowRoot.querySelector("link");u&&(u.hasAttribute("data-tmp")&&(URL.revokeObjectURL(u.href),u.removeAttribute("data-tmp")),u.href=c())}}),300)})),setTimeout((function(){var e=t.shadowRoot.querySelector("link");e&&(e.hasAttribute("data-tmp")&&(URL.revokeObjectURL(e.href),e.removeAttribute("data-tmp")),e.href=c())}),100),l}},{key:"createProjector",value:function(e,t){var n=this;return new Promise((function(r,o){var a;setTimeout((function(){(a=window.Maquette.createProjector()).append(e,t),n._projector=a,r(a),n.dispatchEvent(new CustomEvent("firstRender",{}))}),1)}))}},{key:"renderNow",value:function(){this._projector&&this._projector.renderNow()}}])&&e(l.prototype,c),s&&e(l,s),Object.defineProperty(l,"prototype",{writable:!1}),p}(r(HTMLElement)),y=n(277);function v(e){var t="function"==typeof Map?new Map:void 0;return v=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return g(e,arguments,S(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),M(n,e)},v(e)}function g(e,t,n){return g=O()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&M(o,n.prototype),o},g.apply(null,arguments)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function E(e){var t=O();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return H(e)}(this,n)}}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var A=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":C(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},x=function(e){L(n,e);var t=E(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).count=1,e.name="",e.foo="foo",e.onInput=function(t){e.name=t.target.value},e.onPeterClick=function(t){console.log({e:t,p:H(e)})},e.render=function(){return h("div",null,h("h1",{eventListeners:[["click",function(e){return console.log(e)}]],id:"Foo"},"Hallo"),h("h1",{"data-title":e.name&&e.name.toLocaleUpperCase(),class:"title"},e.foo," ",e.name),h("p",{"data-count":e.count,updateAnimation:e.countUpdateAnimation},e.count),h("div",{id:"SlotContainer"},h("slot",null)),h("p",null,"Please enter your name (hint type"," ",h("em",null,h("strong",null,"Peter")),")",h("br",null),h("input",{type:"text",value:e.name,oninput:e.onInput})),h("p",null,h("a",{is:"super-a"},"Super a")),e.name&&e.name.toLowerCase&&e.name.toLowerCase().indexOf("peter")>-1?h("div",{key:"peter",afterRemoved:e.peterRemoved,afterCreate:e.peterCreate,class:"is-peter",eventListeners:[["click",e.onPeterClick]],enterAnimation:e.enterAnimation,exitAnimation:e.exitAnimation},h("p",null,"Hello Peter"),h("img",{class:"is-peter--image",src:"https://s-media-cache-ak0.pinimg.com/474x/ce/1d/07/ce1d07011c0afb8e0614a0ae42a8c861.jpg",height:"140"})):"")},e.onFooEvent=function(t){e.foo=t.detail.foo},e}return T(n,[{key:"enterAnimation",value:function(e,t){y({targets:e,translateX:[{value:100,duration:1200},{value:0,duration:800}],rotate:"2turn",duration:3e3,loop:!1})}},{key:"exitAnimation",value:function(e,t,n){y({targets:e,translateX:[{value:100,duration:1200},{value:0,duration:800}],duration:3e3,opacity:0,loop:!1,complete:function(){t(e)}})}},{key:"countUpdateAnimation",value:function(e,t,n){y.timeline().add([{duration:300,targets:e,translateX:200,scale:1.9,easing:"easeOutExpo"},{duration:300,targets:e,translateX:0,scale:1,easing:"easeInExpo"}])}},{key:"peterRemoved",value:function(){console.log("removed")}},{key:"peterCreate",value:function(){console.log("create")}},{key:"connectedCallback",value:function(){var e=this,t=this.templateFromString('\n <style>\n\n :host{\n /* display: none; */\n }\n\n .root {\n display: flex;\n padding: 10px;\n flex-direction: row;\n }\n\n #Foo {\n @apply --mixin-sample;\n text-decoration: underline;\n }\n\n #SlotContainer ::slotted(*) {\n font-weight: bold;\n color: green;\n font-size: 1.5em;\n }\n\n </style>\n <div class="root"></div>\n ');this.shadowRoot.appendChild(t),this.createProjector(this.shadowRoot.querySelector(".root"),this.render),setInterval((function(){e.count++,e.renderNow()}),5e3),window.addEventListener("foo",this.onFooEvent)}},{key:"attributeChangedCallback",value:function(e,t,n){"name"===e&&(this.name=n)}}],[{key:"observedAttributes",get:function(){return["name"]}}]),n}(m);A([s],x.prototype,"name",void 0),A([s],x.prototype,"foo",void 0),x=A([c({tagName:"my-greetings"})],x);var P=function(e){L(n,e);var t=E(n);function n(){return b(this,n),t.apply(this,arguments)}return T(n,[{key:"connectedCallback",value:function(){var e=this.templateFromString('<style>:host{color: red}</style><div class="root"></div>');this.shadowRoot.appendChild(e),this.shadowRoot.querySelector(".root").innerHTML="\n <div>P-FOO</div>\n "}}]),n}(m);P=A([c({tagName:"p-foo"})],P);var N=function(e){L(n,e);var t=E(n);function n(){return b(this,n),t.apply(this,arguments)}return T(n,[{key:"connectedCallback",value:function(){this.classList.add("super"),this.style.color="red"}}]),n}(v(HTMLAnchorElement));window.customElements.define("super-a",N,{extends:"a"})})()})();