@fooloomanzoo/property-mixins
Version:
mixin for custom elements to extends property mixins for data formats
1 lines • 182 kB
JavaScript
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/demo/dist/",n(n.s=34)}([function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"g",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"i",function(){return o}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"a",function(){return h}),n.d(t,"h",function(){return p});n(2);function r(e){return e.indexOf(".")>=0}function i(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function a(e,t){return 0===e.indexOf(t+".")}function s(e,t){return 0===t.indexOf(e+".")}function o(e,t,n){return t+n.slice(e.length)}function l(e,t){return e===t||a(e,t)||s(e,t)}function u(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)for(var r=e[n].toString().split("."),i=0;i<r.length;i++)t.push(r[i]);return t.join(".")}return e}function c(e){return Array.isArray(e)?u(e).split("."):e.toString().split(".")}function h(e,t,n){for(var r=e,i=c(t),a=0;a<i.length;a++){if(!r)return;r=r[i[a]]}return n&&(n.path=i.join(".")),r}function p(e,t,n){var r=e,i=c(t),a=i[i.length-1];if(i.length>1){for(var s=0;s<i.length-1;s++){if(!(r=r[i[s]]))return}r[a]=n}else r[t]=n;return i.join(".")}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});n(2);var r=0;function i(){}i.prototype.__mixinApplications,i.prototype.__mixinSet;var a=function(e){var t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);var n=r++;function i(r){var i=r.__mixinSet;if(i&&i[n])return r;var a=t,s=a.get(r);s||(s=e(r),a.set(r,s));var o=Object.create(s.__mixinSet||i||null);return o[n]=!0,s.__mixinSet=o,s}return i}},function(e,t,n){"use strict";window.JSCompiler_renameProperty=function(e,t){return e}},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});n(2);var r=0,i=0,a=[],s=0,o=document.createTextNode("");new window.MutationObserver(function(){for(var e=a.length,t=0;t<e;t++){var n=a[t];if(n)try{n()}catch(e){setTimeout(function(){throw e})}}a.splice(0,e),i+=e}).observe(o,{characterData:!0});var l={after:function(e){return{run:function(t){return window.setTimeout(t,e)},cancel:function(e){window.clearTimeout(e)}}},run:function(e,t){return window.setTimeout(e,t)},cancel:function(e){window.clearTimeout(e)}},u={run:function(e){return o.textContent=s++,a.push(e),r++},cancel:function(e){var t=e-i;if(t>=0){if(!a[t])throw new Error("invalid async handle: "+e);a[t]=null}}}},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"a",function(){return l});n(2);var r=n(7),i=(window.ShadyDOM,Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),window.customElements.polyfillWrapFlushCallback,Object(r.a)(document.baseURI||window.location.href)),a=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,s=!1,o=!1,l=!1},function(e,t,n){"use strict";n(2),n(4);var r=n(27),i=n(3);function a(e){return"slot"===e.localName}var s=function(){function e(t,n){var r=this;babelHelpers.classCallCheck(this,e),this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=t,this.callback=n,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=function(){r._schedule()},this.connect(),this._schedule()}return babelHelpers.createClass(e,null,[{key:"getFlattenedNodes",value:function(e){return a(e)?(e=e).assignedNodes({flatten:!0}):Array.from(e.childNodes).map(function(e){return a(e)?(e=e).assignedNodes({flatten:!0}):[e]}).reduce(function(e,t){return e.concat(t)},[])}}]),babelHelpers.createClass(e,[{key:"connect",value:function(){var e=this;a(this._target)?this._listenSlots([this._target]):this._target.children&&(this._listenSlots(this._target.children),window.ShadyDOM?this._shadyChildrenObserver=ShadyDOM.observeChildren(this._target,function(t){e._processMutations(t)}):(this._nativeChildrenObserver=new MutationObserver(function(t){e._processMutations(t)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}},{key:"disconnect",value:function(){a(this._target)?this._unlistenSlots([this._target]):this._target.children&&(this._unlistenSlots(this._target.children),window.ShadyDOM&&this._shadyChildrenObserver?(ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}},{key:"_schedule",value:function(){var e=this;this._scheduled||(this._scheduled=!0,i.a.run(function(){return e.flush()}))}},{key:"_processMutations",value:function(e){this._processSlotMutations(e),this.flush()}},{key:"_processSlotMutations",value:function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}},{key:"flush",value:function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;for(var e,t={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),i=Object(r.a)(n,this._effectiveNodes),a=0;a<i.length&&(e=i[a]);a++)for(var s,o=0;o<e.removed.length&&(s=e.removed[o]);o++)t.removedNodes.push(s);for(var l,u=0;u<i.length&&(l=i[u]);u++)for(var c=l.index;c<l.index+l.addedCount;c++)t.addedNodes.push(n[c]);this._effectiveNodes=n;var h=!1;return(t.addedNodes.length||t.removedNodes.length)&&(h=!0,this.callback.call(this._target,t)),h}},{key:"_listenSlots",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];a(n)&&n.addEventListener("slotchange",this._boundSchedule)}}},{key:"_unlistenSlots",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];a(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}}]),e}();n(13),n(12);n.d(t,"b",function(){return u}),n.d(t,"a",function(){return p});var o=Element.prototype,l=o.matches||o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector,u=function(e,t){return l.call(e,t)},c=function(){function e(t){babelHelpers.classCallCheck(this,e),this.node=t}return babelHelpers.createClass(e,[{key:"observeNodes",value:function(e){return new s(this.node,e)}},{key:"unobserveNodes",value:function(e){e.disconnect()}},{key:"notifyObserver",value:function(){}},{key:"deepContains",value:function(e){if(this.node.contains(e))return!0;for(var t=e,n=e.ownerDocument;t&&t!==n&&t!==this.node;)t=t.parentNode||t.host;return t===this.node}},{key:"getOwnerRoot",value:function(){return this.node.getRootNode()}},{key:"getDistributedNodes",value:function(){return"slot"===this.node.localName?this.node.assignedNodes({flatten:!0}):[]}},{key:"getDestinationInsertionPoints",value:function(){for(var e=[],t=this.node.assignedSlot;t;)e.push(t),t=t.assignedSlot;return e}},{key:"importNode",value:function(e,t){return(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(e,t)}},{key:"getEffectiveChildNodes",value:function(){return s.getFlattenedNodes(this.node)}},{key:"queryDistributedElements",value:function(e){for(var t,n=this.getEffectiveChildNodes(),r=[],i=0,a=n.length;i<a&&(t=n[i]);i++)t.nodeType===Node.ELEMENT_NODE&&u(t,e)&&r.push(t);return r}},{key:"activeElement",get:function(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}]),e}();var h=function(){function e(t){babelHelpers.classCallCheck(this,e),this.event=t}return babelHelpers.createClass(e,[{key:"rootTarget",get:function(){return this.event.composedPath()[0]}},{key:"localTarget",get:function(){return this.event.target}},{key:"path",get:function(){return this.event.composedPath()}}]),e}();c.prototype.cloneNode,c.prototype.appendChild,c.prototype.insertBefore,c.prototype.removeChild,c.prototype.replaceChild,c.prototype.setAttribute,c.prototype.removeAttribute,c.prototype.querySelector,c.prototype.querySelectorAll,c.prototype.parentNode,c.prototype.firstChild,c.prototype.lastChild,c.prototype.nextSibling,c.prototype.previousSibling,c.prototype.firstElementChild,c.prototype.lastElementChild,c.prototype.nextElementSibling,c.prototype.previousElementSibling,c.prototype.childNodes,c.prototype.children,c.prototype.classList,c.prototype.textContent,c.prototype.innerHTML,function(e,t){for(var n=function(n){var r=t[n];e[r]=function(){return this.node[r].apply(this.node,arguments)}},r=0;r<t.length;r++)n(r)}(c.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll"]),function(e,t){for(var n=function(n){var r=t[n];Object.defineProperty(e,r,{get:function(){return this.node[r]},configurable:!0})},r=0;r<t.length;r++)n(r)}(c.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList"]),function(e,t){for(var n=function(n){var r=t[n];Object.defineProperty(e,r,{get:function(){return this.node[r]},set:function(e){this.node[r]=e},configurable:!0})},r=0;r<t.length;r++)n(r)}(c.prototype,["textContent","innerHTML"]);var p=function(e){var t;(e=e||document).__domApi||(t=e instanceof Event?new h(e):new c(e),e.__domApi=t);return e.__domApi}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});n(2);var r=function(){function e(t){babelHelpers.classCallCheck(this,e),this.value=t.toString()}return babelHelpers.createClass(e,[{key:"toString",value:function(){return this.value}}]),e}();function i(e){if(e instanceof r)return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: ".concat(e))}var a=function(e){for(var t=document.createElement("template"),n=arguments.length,a=new Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return t.innerHTML=a.reduce(function(t,n,a){return t+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof r)return i(e);throw new Error("non-template value passed to Polymer's html function: ".concat(e))}(n)+e[a+1]},e[0]),t}},function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});n(2);var r,i,a=/(url\()([^)]*)(\))/g,s=/(^\/)|(^#)|(^[\w-\d]*:)/;function o(e,t){if(e&&s.test(e))return e;if(void 0===r){r=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",r="http://a/c%20d"===n.href}catch(e){}}return t||(t=document.baseURI||window.location.href),r?new URL(e,t).href:(i||((i=document.implementation.createHTMLDocument("temp")).base=i.createElement("base"),i.head.appendChild(i.base),i.anchor=i.createElement("a"),i.body.appendChild(i.anchor)),i.base.href=t,i.anchor.href=e,i.anchor.href||e)}function l(e,t){return e.replace(a,function(e,n,r,i){return n+"'"+o(r.replace(/["']/g,""),t)+"'"+i})}function u(e){return e.substring(0,e.lastIndexOf("/")+1)}},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return o});var r=function(e,t){var n=i(e),r=i(t),a=n+r;if(0===a)return e*t;var s=(o(e)?!o(t):o(t))?"-":"";e=Math.round(Math.pow(10,n)*Math.abs(e));for(var l=0,u=(t=""+Math.round(Math.pow(10,r)*Math.abs(t))).length-1;u>=0;u--)l+=e*+t[u],e*=10;for(var c=(l=""+l).length;c<a;c++)l="0"+l;return+(s+l.slice(0,l.length-a)+"."+l.slice(l.length-a))},i=function(e){var t=(e||0).toExponential().split("e"),n=-t[1]+(t[0].slice(t[0].indexOf(".")).length-1);return n>0?n:0},a=function(e,t){return(e%t+t)%t},s=function(e){return e>1?1:e<0?0:e},o=function(e){return e<0||1/e===-1/0}},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return s});var r,i=!(window.ShadyDOM&&window.ShadyDOM.inUse);function a(e){r=(!e||!e.shimcssproperties)&&(i||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?r=window.ShadyCSS.nativeCss:window.ShadyCSS?(a(window.ShadyCSS),window.ShadyCSS=void 0):a(window.WebComponents&&window.WebComponents.flags);var s=r},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var r=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,i=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,a=/@media\s(.*)/},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(17),i=n(6);n.d(t,"b",function(){return i.a});var a=Object(r.a)(HTMLElement)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});n(2),n(1),n(3);var r=function(){function e(){babelHelpers.classCallCheck(this,e),this._asyncModule=null,this._callback=null,this._timer=null}return babelHelpers.createClass(e,[{key:"setConfig",value:function(e,t){var n=this;this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(function(){n._timer=null,n._callback()})}},{key:"cancel",value:function(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}},{key:"flush",value:function(){this.isActive()&&(this.cancel(),this._callback())}},{key:"isActive",value:function(){return null!=this._timer}}],[{key:"debounce",value:function(t,n,r){return t instanceof e?t.cancel():t=new e,t.setConfig(n,r),t}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});n(2),n(12);var r=[],i=function(e){r.push(e)};function a(){for(var e=Boolean(r.length);r.length;)try{r.shift().flush()}catch(e){setTimeout(function(){throw e})}return e}var s=function(){var e,t;do{e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=a()}while(e||t)}},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var r=n(10);function i(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function a(e,t){var n=window.getComputedStyle(e).getPropertyValue(t);return n?n.trim():""}function s(e){var t=r.b.test(e)||r.c.test(e);return r.b.lastIndex=0,r.c.lastIndex=0,t}},function(e,t,n){"use strict";var r=n(23),i={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0};function a(e,t){if(!e)return t=t;t=Object(r.a)(t),Array.isArray(e)||(e=[e]);var n=t.prototype.behaviors;return t=function e(t,n){for(var r=0;r<t.length;r++){var i=t[r];i&&(n=Array.isArray(i)?e(i,n):s(i,n))}return n}(e=function e(t,n,r){n=n||[];for(var i=t.length-1;i>=0;i--){var a=t[i];a?Array.isArray(a)?e(a,n):n.indexOf(a)<0&&(!r||r.indexOf(a)<0)&&n.unshift(a):console.warn("behavior is null, check for missing or 404 import")}return n}(e,null,n),t),n&&(e=n.concat(e)),t.prototype.behaviors=e,t}function s(e,t){var n=function(t){function n(){return babelHelpers.classCallCheck(this,n),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).apply(this,arguments))}return babelHelpers.inherits(n,t),babelHelpers.createClass(n,[{key:"created",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"created",this).call(this),e.created&&e.created.call(this)}},{key:"_registered",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"_registered",this).call(this),e.beforeRegister&&e.beforeRegister.call(Object.getPrototypeOf(this)),e.registered&&e.registered.call(Object.getPrototypeOf(this))}},{key:"_applyListeners",value:function(){if(babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"_applyListeners",this).call(this),e.listeners)for(var t in e.listeners)this._addMethodEventListenerToNode(this,t,e.listeners[t])}},{key:"_ensureAttributes",value:function(){if(e.hostAttributes)for(var t in e.hostAttributes)this._ensureAttribute(t,e.hostAttributes[t]);babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"_ensureAttributes",this).call(this)}},{key:"ready",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"ready",this).call(this),e.ready&&e.ready.call(this)}},{key:"attached",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"attached",this).call(this),e.attached&&e.attached.call(this)}},{key:"detached",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"detached",this).call(this),e.detached&&e.detached.call(this)}},{key:"attributeChanged",value:function(t,r,i){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"attributeChanged",this).call(this,t,r,i),e.attributeChanged&&e.attributeChanged.call(this,t,r,i)}}],[{key:"properties",get:function(){return e.properties}},{key:"observers",get:function(){return e.observers}}]),n}(t);for(var r in n.generatedFrom=e,e)if(!(r in i)){var a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(n.prototype,r,a)}return n}n(2);n.d(t,"a",function(){return o});var o=function e(t){var n;return n="function"===typeof t?t:e.Class(t),customElements.define(n.is,n),n};o.Class=function(e,t){e||console.warn("Polymer's Class function requires `info` argument");var n=e.behaviors?a(e.behaviors,HTMLElement):Object(r.a)(HTMLElement),i=s(e,t?t(n):n);return i.is=e.is,i}},function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return o});n(2);var r={},i=/-[a-z]/g,a=/([A-Z])/g;function s(e){return r[e]||(r[e]=e.indexOf("-")<0?e:e.replace(i,function(e){return e[1].toUpperCase()}))}function o(e){return r[e]||(r[e]=e.replace(a,"-$1").toLowerCase())}},function(e,t,n){"use strict";n(2);var r=n(4),i=n(1),a=n(21),s=n(7),o=n(20),l=n(18),u=n(25);var c=Object(i.a)(function(e){function t(e){var t=Object.getPrototypeOf(e);return t.prototype instanceof r?t:null}function n(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){var t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){var n=e.properties;n&&(t=function(e){var t={};for(var n in e){var r=e[n];t[n]="function"===typeof r?{type:r}:r}return t}(n))}e.__ownProperties=t}return e.__ownProperties}var r=function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(r).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"_initializeProperties",value:function(){this.constructor.finalize(),babelHelpers.get(babelHelpers.getPrototypeOf(r.prototype),"_initializeProperties",this).call(this)}},{key:"connectedCallback",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(r.prototype),"connectedCallback",this)&&babelHelpers.get(babelHelpers.getPrototypeOf(r.prototype),"connectedCallback",this).call(this),this._enableProperties()}},{key:"disconnectedCallback",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(r.prototype),"disconnectedCallback",this)&&babelHelpers.get(babelHelpers.getPrototypeOf(r.prototype),"disconnectedCallback",this).call(this)}}],[{key:"finalize",value:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){var e=t(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}},{key:"_finalizeClass",value:function(){var e=n(this);e&&this.createProperties(e)}},{key:"typeForProperty",value:function(e){var t=this._properties[e];return t&&t.type}},{key:"observedAttributes",get:function(){var e=this,t=this._properties;return t?Object.keys(t).map(function(t){return e.attributeNameForProperty(t)}):[]}},{key:"_properties",get:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){var e=t(this);this.__properties=Object.assign({},e&&e._properties,n(this))}return this.__properties}}]),r}(Object(u.a)(e));return r});n.d(t,"a",function(){return h});var h=Object(i.a)(function(e){return function(e){function t(){var e;return babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._template,e._importPath,e.rootPath,e.importPath,e.root,e.$,e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,null,[{key:"_finalizeClass",value:function(){var e;babelHelpers.get(babelHelpers.getPrototypeOf(t),"_finalizeClass",this).call(this),this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&this.is&&(e=this.prototype,p.push(e));var n,r=((n=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",n))||(n.__ownObservers=n.hasOwnProperty(JSCompiler_renameProperty("observers",n))?n.observers:null),n.__ownObservers);r&&this.createObservers(r,this._properties);var i=this.template;i&&("string"===typeof i?(console.error("template getter must return HTMLTemplateElement"),i=null):i=i.cloneNode(!0)),this.prototype._template=i}},{key:"createProperties",value:function(e){for(var t in e)n=this.prototype,r=t,i=e[t],a=e,i.computed&&(i.readOnly=!0),i.computed&&!n._hasReadOnlyEffect(r)&&n._createComputedProperty(r,i.computed,a),i.readOnly&&!n._hasReadOnlyEffect(r)&&n._createReadOnlyProperty(r,!i.computed),i.reflectToAttribute&&!n._hasReflectEffect(r)&&n._createReflectedProperty(r),i.notify&&!n._hasNotifyEffect(r)&&n._createNotifyingProperty(r),i.observer&&n._createPropertyObserver(r,i.observer,a[i.observer]),n._addPropertyToAttributeMap(r);var n,r,i,a}},{key:"createObservers",value:function(e,t){for(var n=this.prototype,r=0;r<e.length;r++)n._createMethodObserver(e[r],t)}},{key:"polymerElementVersion",get:function(){return"3.0.5"}},{key:"template",get:function(){return this.hasOwnProperty(JSCompiler_renameProperty("_template",this))||(this._template=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:function(e){var t=null;if(e&&(!r.e||r.a)&&(t=o.a.import(e,"template"),r.e&&!t))throw new Error("strictTemplatePolicy: expecting dom-module or null template for ".concat(e));return t}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template),this._template},set:function(e){this._template=e}},{key:"importPath",get:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){var e=this.importMeta;if(e)this._importPath=Object(s.a)(e.url);else{var t=o.a.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}}]),babelHelpers.createClass(t,[{key:"_initializeProperties",value:function(){0,this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"_initializeProperties",this).call(this),this.rootPath=r.c,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t=e._properties;for(var n in t){var r=t[n];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[n]=r)}}return e.__propertyDefaults}(this.constructor);if(e)for(var n in e){var i=e[n];if(!this.hasOwnProperty(n)){var a="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(n)?this._setPendingProperty(n,a,!0):this[n]=a}}}},{key:"connectedCallback",value:function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"connectedCallback",this).call(this)}},{key:"ready",value:function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"ready",this).call(this)}},{key:"_readyClients",value:function(){this._template&&(this.root=this._attachDom(this.root)),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"_readyClients",this).call(this)}},{key:"_attachDom",value:function(e){if(this.attachShadow)return e?(this.shadowRoot||this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(e),this.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}},{key:"updateStyles",value:function(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}},{key:"resolveUrl",value:function(e,t){return!t&&this.importPath&&(t=Object(s.c)(this.importPath)),Object(s.c)(e,t)}}],[{key:"_processStyleText",value:function(e,t){return Object(s.b)(e,t)}},{key:"_finalizeTemplate",value:function(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var n=this.importPath;!function(e,t,n,r){for(var i=t.content.querySelectorAll("style"),s=Object(a.c)(t),o=Object(a.b)(n),l=t.content.firstElementChild,u=0;u<o.length;u++){var c=o[u];c.textContent=e._processStyleText(c.textContent,r),t.content.insertBefore(c,l)}for(var h=0,p=0;p<s.length;p++){var d=s[p],f=i[h];f!==d?(d=d.cloneNode(!0),f.parentNode.insertBefore(d,f)):h++,d.textContent=e._processStyleText(d.textContent,r)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,n)}(this,t,e,n?Object(s.c)(n):""),this.prototype._bindTemplate(t)}}},{key:"_parseTemplateContent",value:function(e,n,r){return n.dynamicFns=n.dynamicFns||this._properties,babelHelpers.get(babelHelpers.getPrototypeOf(t),"_parseTemplateContent",this).call(this,e,n,r)}}]),t}(c(Object(l.a)(e)))}),p=[]},function(e,t,n){"use strict";n(2);var r=n(1),i=n(0),a=n(16),s=n(24),o={"dom-if":!0,"dom-repeat":!0};function l(e){var t=e.getAttribute("is");if(t&&o[t]){var n=e;for(n.removeAttribute("is"),e=n.ownerDocument.createElement(t),n.parentNode.replaceChild(e,n),e.appendChild(n);n.attributes.length;)e.setAttribute(n.attributes[0].name,n.attributes[0].value),n.removeAttribute(n.attributes[0].name)}return e}function u(e,t){var n=t.parentInfo&&u(e,t.parentInfo);if(!n)return e;for(var r=n.firstChild,i=0;r;r=r.nextSibling)if(t.parentIndex===i++)return r}function c(e,t,n,r){r.id&&(t[r.id]=n)}function h(e,t,n){if(n.events&&n.events.length)for(var r,i=0,a=n.events;i<a.length&&(r=a[i]);i++)e._addMethodEventListenerToNode(t,r.name,r.value,e)}function p(e,t,n){n.templateInfo&&(t._templateInfo=n.templateInfo)}var d=Object(r.a)(function(e){return function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_stampTemplate",value:function(e){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var t=this.constructor._parseTemplate(e),n=t.nodeInfoList,r=t.content||e.content,i=document.importNode(r,!0);i.__noInsertionPoint=!t.hasInsertionPoint;var a=i.nodeList=new Array(n.length);i.$={};for(var s,o=0,l=n.length;o<l&&(s=n[o]);o++){var d=a[o]=u(i,s);c(0,i.$,d,s),p(0,d,s),h(this,d,s)}return i=i}},{key:"_addMethodEventListenerToNode",value:function(e,t,n,r){var i=function(e,t,n){return e=e._methodHost||e,function(t){e[n]?e[n](t,t.detail):console.warn("listener method `"+n+"` not defined")}}(r=r||e,0,n);return this._addEventListenerToNode(e,t,i),i}},{key:"_addEventListenerToNode",value:function(e,t,n){e.addEventListener(t,n)}},{key:"_removeEventListenerFromNode",value:function(e,t,n){e.removeEventListener(t,n)}}],[{key:"_parseTemplate",value:function(e,t){if(!e._templateInfo){var n=e._templateInfo={};n.nodeInfoList=[],n.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,n,{parent:null})}return e._templateInfo}},{key:"_parseTemplateContent",value:function(e,t,n){return this._parseTemplateNode(e.content,t,n)}},{key:"_parseTemplateNode",value:function(e,t,n){var r,i=e;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(i,t,n)||r,i.firstChild&&(r=this._parseTemplateChildNodes(i,t,n)||r),i.hasAttributes&&i.hasAttributes()&&(r=this._parseTemplateNodeAttributes(i,t,n)||r),r}},{key:"_parseTemplateChildNodes",value:function(e,t,n){if("script"!==e.localName&&"style"!==e.localName)for(var r,i=e.firstChild,a=0;i;i=r){if("template"==i.localName&&(i=l(i)),r=i.nextSibling,i.nodeType===Node.TEXT_NODE){for(var s=r;s&&s.nodeType===Node.TEXT_NODE;)i.textContent+=s.textContent,r=s.nextSibling,e.removeChild(s),s=r;if(t.stripWhiteSpace&&!i.textContent.trim()){e.removeChild(i);continue}}var o={parentIndex:a,parentInfo:n};this._parseTemplateNode(i,t,o)&&(o.infoIndex=t.nodeInfoList.push(o)-1),i.parentNode&&a++}}},{key:"_parseTemplateNestedTemplate",value:function(e,t,n){var r=this._parseTemplate(e,t);return(r.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),n.templateInfo=r,!0}},{key:"_parseTemplateNodeAttributes",value:function(e,t,n){for(var r,i=!1,a=Array.from(e.attributes),s=a.length-1;r=a[s];s--)i=this._parseTemplateNodeAttribute(e,t,n,r.name,r.value)||i;return i}},{key:"_parseTemplateNodeAttribute",value:function(e,t,n,r,i){return"on-"===r.slice(0,3)?(e.removeAttribute(r),n.events=n.events||[],n.events.push({name:r.slice(3),value:i}),!0):"id"===r&&(n.id=i,!0)}},{key:"_contentForTemplate",value:function(e){var t=e._templateInfo;return t&&t.content||e.content}}]),t}(e)}),f=n(4);n.d(t,"a",function(){return B});var _=0,y={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},m=/[A-Z]/;function b(e,t){var n=e[t];if(n){if(!e.hasOwnProperty(t))for(var r in n=e[t]=Object.create(e[t]))for(var i=n[r],a=n[r]=Array(i.length),s=0;s<i.length;s++)a[s]=i[s]}else n=e[t]={};return n}function v(e,t,n,r,i,a){if(t){var s=!1,o=_++;for(var l in n)g(e,t,o,l,n,r,i,a)&&(s=!0);return s}return!1}function g(e,t,n,r,a,s,o,l){var u=!1,c=t[o?Object(i.g)(r):r];if(c)for(var h,p=0,d=c.length;p<d&&(h=c[p]);p++)h.info&&h.info.lastRun===n||o&&!k(r,h.trigger)||(h.info&&(h.info.lastRun=n),h.fn(e,r,a,s,h.info,o,l),u=!0);return u}function k(e,t){if(t){var n=t.name;return n==e||t.structured&&Object(i.b)(n,e)||t.wildcard&&Object(i.c)(n,e)}return!0}function C(e,t,n,r,i){var a="string"===typeof i.method?e[i.method]:i.method,s=i.property;a?a.call(e,e.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function w(e,t,n){var r=Object(i.g)(t);return r!==t&&(P(e,Object(a.a)(r)+"-changed",n[t],t),!0)}function P(e,t,n,r){var i={value:n,queueProperty:!0};r&&(i.path=r),e.dispatchEvent(new CustomEvent(t,{detail:i}))}function x(e,t,n,r,a,s){var o=(s?Object(i.g)(t):t)!=t?t:null,l=o?Object(i.a)(e,o):e.__data[t];o&&void 0===l&&(l=n[t]),P(e,a.eventName,l,o)}function O(e,t,n,r,i){var a=e.__data[t];f.d&&(a=Object(f.d)(a,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,a)}function S(e,t,n,r,i){var a=M(e,t,n,r,i),s=i.methodInfo;e.__dataHasAccessor&&e.__dataHasAccessor[s]?e._setPendingProperty(s,a,!0):e[s]=a}function T(e,t,n,r,i,s,o){n.bindings=n.bindings||[];var l={kind:r,target:i,parts:s,literal:o,isCompound:1!==s.length};if(n.bindings.push(l),function(e){return Boolean(e.target)&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode}(l)){var u=l.parts[0],c=u.event,h=u.negate;l.listenerEvent=c||Object(a.a)(i)+"-changed",l.listenerNegate=h}for(var p=t.nodeInfoList.length,d=0;d<l.parts.length;d++){var f=l.parts[d];f.compoundIndex=d,H(e,t,l,f,p)}}function H(e,t,n,r,i){if(!r.literal)if("attribute"===n.kind&&"-"===n.target[0])console.warn("Cannot set attribute "+n.target+' because "-" is not a valid attribute starting character');else for(var a=r.dependencies,s={index:i,binding:n,part:r,evaluator:e},o=0;o<a.length;o++){var l=a[o];"string"==typeof l&&((l=R(l)).wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:E,info:s,trigger:l})}}function E(e,t,n,r,a,s,o){var l=o[a.index],u=a.binding,c=a.part;if(s&&c.source&&t.length>c.source.length&&"property"==u.kind&&!u.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[u.target]){var h=n[t];t=Object(i.i)(c.source,u.target,t),l._setPendingPropertyOrPath(t,h,!1,!0)&&e._enqueueClient(l)}else{!function(e,t,n,r,i){i=function(e,t,n,r){if(n.isCompound){var i=e.__dataCompoundStorage[n.target];i[r.compoundIndex]=t,t=i.join("")}return"attribute"!==n.kind&&("textContent"!==n.target&&("value"!==n.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=void 0==t?"":t)),t}(t,i,n,r),f.d&&(i=Object(f.d)(i,n.target,n.kind,t));if("attribute"==n.kind)e._valueToNodeAttribute(t,i,n.target);else{var a=n.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[a]?t[y.READ_ONLY]&&t[y.READ_ONLY][a]||t._setPendingProperty(a,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,a,i)}}(e,l,u,c,a.evaluator._evaluateBinding(e,c,t,n,r,s))}}function N(e,t){if(t.isCompound){for(var n=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),r=t.parts,i=new Array(r.length),a=0;a<r.length;a++)i[a]=r[a].literal;var s=t.target;n[s]=i,t.literal&&"property"==t.kind&&(e[s]=t.literal)}}function A(e,t,n){if(n.listenerEvent){var r=n.parts[0];e.addEventListener(n.listenerEvent,function(e){!function(e,t,n,r,a){var s,o=e.detail,l=o&&o.path;l?(r=Object(i.i)(n,r,l),s=o&&o.value):s=e.currentTarget[n],s=a?!s:s,t[y.READ_ONLY]&&t[y.READ_ONLY][r]||!t._setPendingPropertyOrPath(r,s,!0,Boolean(l))||o&&o.queueProperty||t._invalidateProperties()}(e,t,n.target,r.source,r.negate)})}}function j(e,t,n,r,i,a){a=t.static||a&&("object"!==babelHelpers.typeof(a)||a[t.methodName]);for(var s,o={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:a},l=0;l<t.args.length&&(s=t.args[l]);l++)s.literal||e._addPropertyEffect(s.rootProperty,n,{fn:r,info:o,trigger:s});a&&e._addPropertyEffect(t.methodName,n,{fn:r,info:o})}function M(e,t,n,r,i){var a=e._methodHost||e,s=a[i.methodName];if(s){var o=e._marshalArgs(i.args,t,n);return s.apply(a,o)}i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}var I=[],D=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g");function L(e){for(var t="",n=0;n<e.length;n++){t+=e[n].literal||""}return t}function z(e){var t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){var n={methodName:t[1],static:!0,args:I};return t[2].trim()?function(e,t){return t.args=e.map(function(e){var n=R(e);return n.literal||(t.static=!1),n},this),t}(t[2].replace(/\\,/g,",").split(","),n):n}return null}function R(e){var t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch("-"===r&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=Object(i.g)(t),n.structured=Object(i.d)(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n}function F(e,t,n,r){var i=n+".splices";e.notifyPath(i,{indexSplices:r}),e.notifyPath(n+".length",t.length),e.__data[i]={indexSplices:null}}function $(e,t,n,r,i,a){F(e,t,n,[{index:r,addedCount:i,removed:a,object:t,type:"splice"}])}var B=Object(r.a)(function(e){var t=function(e){function t(){var e;return babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this))).__isPropertyEffectsClient=!0,e.__dataCounter=0,e.__dataClientsReady,e.__dataPendingClients,e.__dataToNotify,e.__dataLinkedPaths,e.__dataHasPaths,e.__dataCompoundStorage,e.__dataHost,e.__dataTemp,e.__dataClientsInitialized,e.__data,e.__dataPending,e.__dataOld,e.__computeEffects,e.__reflectEffects,e.__notifyEffects,e.__propagateEffects,e.__observeEffects,e.__readOnly,e.__templateInfo,e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_initializeProperties",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"_initializeProperties",this).call(this),q.registerHost(this),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}},{key:"_initializeProtoProperties",value:function(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}},{key:"_initializeInstanceProperties",value:function(e){var t=this[y.READ_ONLY];for(var n in e)t&&t[n]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=e[n])}},{key:"_addPropertyEffect",value:function(e,t,n){this._createPropertyAccessor(e,t==y.READ_ONLY);var r=b(this,t)[e];r||(r=this[t][e]=[]),r.push(n)}},{key:"_removePropertyEffect",value:function(e,t,n){var r=b(this,t)[e],i=r.indexOf(n);i>=0&&r.splice(i,1)}},{key:"_hasPropertyEffect",value:function(e,t){var n=this[t];return Boolean(n&&n[e])}},{key:"_hasReadOnlyEffect",value:function(e){return this._hasPropertyEffect(e,y.READ_ONLY)}},{key:"_hasNotifyEffect",value:function(e){return this._hasPropertyEffect(e,y.NOTIFY)}},{key:"_hasReflectEffect",value:function(e){return this._hasPropertyEffect(e,y.REFLECT)}},{key:"_hasComputedEffect",value:function(e){return this._hasPropertyEffect(e,y.COMPUTE)}},{key:"_setPendingPropertyOrPath",value:function(e,n,r,a){if(a||Object(i.g)(Array.isArray(e)?e[0]:e)!==e){if(!a){var s=Object(i.a)(this,e);if(!(e=Object(i.h)(this,e,n))||!babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"_shouldPropertyChange",this).call(this,e,n,s))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,n,r))return function(e,t,n){var r,a=e.__dataLinkedPaths;if(a)for(var s in a){var o=a[s];Object(i.c)(s,t)?(r=Object(i.i)(s,o,t),e._setPendingPropertyOrPath(r,n,!0,!0)):Object(i.c)(o,t)&&(r=Object(i.i)(o,s,t),e._setPendingPropertyOrPath(r,n,!0,!0))}}(this,e,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,n,r);this[e]=n}return!1}},{key:"_setUnmanagedPropertyToNode",value:function(e,t,n){n===e[t]&&"object"!=babelHelpers.typeof(n)||(e[t]=n)}},{key:"_setPendingProperty",value:function(e,t,n){var r=this.__dataHasPaths&&Object(i.d)(e),a=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,a[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[y.NOTIFY]&&this[y.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!0)}},{key:"_setProperty",value:function(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}},{key:"_invalidateProperties",value:function(){this.__dataReady&&this._flushProperties()}},{key:"_enqueueClient",value:function(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}},{key:"_flushProperties",value:function(){this.__dataCounter++,babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"_flushProperties",this).call(this),this.__dataCounter--}},{key:"_flushClients",value:function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}},{key:"__enableOrFlushClients",value:function(){var e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(var t=0;t<e.length;t++){var n=e[t];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}},{key:"_readyClients",value:function(){this.__enableOrFlushClients()}},{key:"setProperties",value:function(e,t){for(var n in e)!t&&this[y.READ_ONLY]&&this[y.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}},{key:"ready",value:function(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}},{key:"_propertiesChanged",value:function(e,t,n){var r=this.__dataHasPaths;this.__dataHasPaths=!1,function(e,t,n,r){var i=e[y.COMPUTE];if(i)for(var a=t;v(e,i,a,n,r);)Object.assign(n,e.__dataOld),Object.assign(t,e.__dataPending),a=e.__dataPending,e.__dataPending=null}(this,t,n,r);var i=this.__dataToNotify;this.__dataToNotify=null,this._propagatePropertyChanges(t,n,r),this._flushClients(),v(this,this[y.REFLECT],t,n,r),v(this,this[y.OBSERVE],t,n,r),i&&function(e,t,n,r,i){var a,s,o=e[y.NOTIFY],l=_++;for(var u in t)t[u]&&(o&&g(e,o,l,u,n,r,i)?a=!0:i&&w(e,u,n)&&(a=!0));a&&(s=e.__dataHost)&&s._invalidateProperties&&s._invalidateProperties()}(this,i,t,n,r),1==this.__dataCounter&&(this.__dataTemp={})}},{key:"_propagatePropertyChanges",value:function(e,t,n){this[y.PROPAGATE]&&v(this,this[y.PROPAGATE],e,t,n);for(var r=this.__templateInfo;r;)v(this,r.propertyEffects,e,t,n,r.nodeList),r=r.nextTemplateInfo}},{key:"linkPaths",value:function(e,t){e=Object(i.f)(e),t=Object(i.f)(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}},{key:"unlinkPaths",value:function(e){e=Object(i.f)(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}},{key:"notifySplices",value:function(e,t){var n={path:""};F(this,Object(i.a)(this,e,n),n.path,t)}},{key:"get",value:function(e,t){return Object(i.a)(t||this,e)}},{key:"set",value:function(e,t,n){n?Object(i.h)(n,e,t):this[y.READ_ONLY]&&this[y.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}},{key:"push",value:function(e){for(var t={path:""},n=Object(i.a)(this,e,t),r=n.length,a=arguments.length,s=new Array(a>1?a-1:0),o=1;o<a;o++)s[o-1]=arguments[o];var l=n.push.apply(n,s);return s.length&&$(this,n,t.path,r,s.length,[]),l}},{key:"pop",value:function(e){var t={path:""},n=Object(i.a)(this,e,t),r=Boolean(n.length),a=n.pop();return r&&$(this,n,t.path,n.length,0,[a]),a}},{key:"splice",value:function(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),s=3;s<r;s++)a[s-3]=arguments[s];var o,l={path:""},u=Object(i.a)(this,e,l);return t<0?t=u.length-Math.floor(-t):t&&(t=Math.floor(t)),o=2===arguments.length?u.splice(t):u.splice.apply(u,[t,n].concat(a)),(a.length||o.length)&&$(this,u,l.path,t,a.length,o),o}},{key:"shift",value:function(e){var t={path:""},n=Object(i.a)(this,e,t),r=Boolean(n.length),a=n.shift();return r&&$(this,n,t.path,0,0,[a]),a}},{key:"unshift",value:function(e){for(var t={path:""},n=Object(i.a)(this,e,t),r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];var o=n.unshift.apply(n,a);return a.length&&$(this,n,t.path,0,a.length,[]),o}},{key:"notifyPath",value:function(e,t){var n;if(1==arguments.length){var r={path:""};t=Object(i.a)(this,e,r),n=r.path}else n=Array.isArray(e)?Object(i.f)(e):e;this._setPendingPropertyOrPath(n,t,!0,!0)&&this._invalidateProperties()}},{key:"_createReadOnlyProperty",value:function(e,t){var n;this._addPropertyEffect(e,y.READ_ONLY),t&&(this["_set"+(n=e,n[0].toUpperCase()+n.substring(1))]=function(t){this._setProperty(e,t)})}},{key:"_createPropertyObserver",value:function(e,t,n){var r={property:e,method:t,dynamicFn:Boolean(n)};this._addPropertyEffect(e,y.OBSERVE,{fn:C,info:r,trigger:{name:e}}),n&&this._addPropertyEffect(t,y.OBSERVE,{fn:C,info:r,trigger:{name:t}})}},{key:"_createMethodObserver",value:function(e,t){var n=z(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");j(this,n,y.OBSERVE,M,null,t)}},{key:"_createNotifyingProperty",value:function(e){this._addPropertyEffect(e,y.NOTIFY,{fn:x,info:{eventName:Object(a.a)(e)+"-changed",property:e}})}},{key:"_createReflectedProperty",value:function(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,y.REFLECT,{fn:O,info:{attrName:t}})}},{key:"_createComputedProperty",value:function(e,t,n){var r=z(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");j(this,r,y.COMPUTE,S,e,n)}},{key:"_marshalArgs",value:function(e,t,n){for(var r=this.__data,a=[],s=0,o=e.length;s<o;s++){var l=e[s],u=l.name,c=void 0;if(l.literal?c=l.value:l.structured?void 0===(c=Object(i.a)(r,u))&&(c=n[u]):c=r[u],l.wildcard){var h=0===u.indexOf(t+"."),p=0===t.indexOf(u)&&!h;a[s]={path:p?t:u,value:p?n[t]:c,base:c}}else a[s]=c}return a}},{key:"_bindTemplate",value:function(e,t){var n=this.constructor._parseTemplate(e),r=this.__templateInfo==n;if(!r)for(var i in n.propertyEffects)this._createPropertyAccessor(i);if(t&&((n=Object.create(n)).wasPreBound=r,!r&&this.__templateInfo)){var a=this.__templateInfoLast||this.__templateInfo;return this.__templateInfoLast=a.nextTemplateInfo=n,n.previousTemplateInfo=a,n}return this.__templateInfo=n}},{key:"_stampTemplate",value:function(e){q.beginHosting(this);var n=babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"_stampTemplate",this).call(this,e);q.endHosting(this);var r=this._bindTemplate(e,!0);if(r.nodeList=n.nodeList,!r.wasPreBound)for(var i=r.childNodes=[],a=n.firstChild;a;a=a.nextSibling)i.push(a);return n.templateInfo=r,function(e,t){var n=t.nodeList,r=t.nodeInfoList;if(r.length)for(var i=0;i<r.length;i++){var a=r[i],s=n[i],o=a.bindings;if(o)for(var l=0;l<o.length;l++){var u=o[l];N(s,u),A(s,e,u)}s.__dataHost=e}}(this,r),this.__dataReady&&v(this,r.propertyEffects,this.__data,null,!1,r.nodeList),n}},{key:"_removeBoundDom",value:function(e){var t=e.templateInfo;t.previousTemplateInfo&&(t.previousTemplateInfo.nextTemplateInfo=t.nextTemplateInfo),t.nextTemplateInfo&&(t.nextTemplateInfo.previousTemplateInfo=t.previousTemplateInfo),this.__templateInfoLast==t&&(this.__templateInfoLast=t.previousTemplateInfo),t.previousTemplateInfo=t.nextTemplateInfo=null;for(var n=t.childNodes,r=0;r<n.length;r++){var i=n[r];i.parentNode.removeChild(i)}}},{key:"PROPERTY_EFFECT_TYPES",get:function(){return y}}],[{key:"addPropertyEffect",value:function(e,t,n){this.prototype._addPropertyEffect(e,t,n)}},{key:"createPropertyObserver",value:function(e,t,n){this.prototype._createPropertyObserver(e,t,n)}},{key:"createMethodObserver",value:function(e,t){this.prototype._createMethodObserver(e,t)}},{key:"createNotifyingProperty",value:function(e){this.prototype._createNotifyingProperty(e)}},{key:"createReadOnlyProperty",value:function(e,t){this.prototype._createReadOnlyProperty(e,t)}},{key:"createReflectedProperty",value:function(e){this.prototype._createReflectedProperty(e)}},{key:"createComputedProperty",value:function(e,t,n){this.prototype._createComputedProperty(e,t,n)}},{key:"bindTemplate",value:function(e){return this.prototype._bindTemplate(e)}},{key:"_addTemplatePropertyEffect",value:function(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;var r=e.propertyEffects=e.propertyEffects||{};(r[t]=r[t]||[]).push(n)}},{key:"_parseTemplateNode",value:function(e,n,r){var i=babelHelpers.get(babelHelpers.getPrototypeOf(t),"_parseTemplateNode",this).call(this,e,n,r);if(e.nodeType===Node.TEXT_NODE){var a=this._parseBindings(e.textContent,n);a&&(e.textContent=L(a)||" ",T(this,n,r,"text","textContent",a),i=!0)}return i}},{key:"_parseTemplateNodeAttribute",value:function(e,n,r,i,s){var o=this._parseBindings(s,n);if(o){var l=i,u="property";m.test(i)?u="attribute":"$"==i[i.length-1]&&(i=i.slice(0,-1),u="attribute");var c=L(o);return c&&"attribute"==u&&e.setAttribute(i,c),"input"===e.localName&&"value"===l&&e.setAttribute(l,""),e.removeAttribute(l),"property"===u&&(i=Object(a.b)(i)),T(this,n,r,u,i,o,c),!0}return babelHelpers.get(babelHelpers.getPrototypeOf(t),"_parseTemplateNodeAttribute",this).call(this,e,n,r,i,s)}},{key:"_parseTemplateNestedTemplate",value:function(e,n,r){var i=babelHelpers.get(babelHelpers.getPrototypeOf(t),"_parseTemplateNestedTemplate",this).call(this,e,n,r),a=r.templateInfo.hostProps;for(var s in a){T(this,n,r,"property","_host_"+s,[{mode:"{",source:s,dependencies:[s]}])}return i}},{key:"_parseBindings",value:function(e,t){for(var n,r=[],i=0;null!==(n=D.exec(e));){n.index>i&&r.push({literal:e.slice(i,n.index)});var a=n[1][0],s=Boolean(n[2]),o=n[3].trim(),l=!1,u="",c=-1;"{"==a&&(c=o.indexOf("::"))>0&&(u=o.substring(c+2),o=o.substring(0,c),l=!0);var h=z(o),p=[];if(h){for(var d=h.args,f=h.methodName,_=0;_<d.length;_++){var y=d[_];y.literal||p.push(y)}var m=t.dynamicFns;(m&&m[f]||h.static)&&(p.push(f),h.dynamicFn=!0)}else p.push(o);r.push({source:o,mode:a,negate:s,customEvent:l,signature:h,dependencies:p,event:u}),i=D.lastIndex}if(i&&i<e.length){var b=e.substring(i);b&&r.push({literal:b})}return r.length?r:null}},{key:"_evaluateBinding",value:function(e,t,n,r,a,s){var o;return o=t.signature?M(e,n,r,0,t.signature):n!=t.source?Object(i.a)(e,t.source):s&&Object(i.d)(n)?Object(i.a)(e,n):e.__data[n],t.negate&&(o=!o),o}}]),t}(d(Object(s.a)(e)));return t,t}),q=new(function(){function e(){babelHelpers.classCallCheck(this,e),this.stack=[]}return babelHelpers.createClass(e,[{key:"registerHost",value:function(e){this.stack.length&&this.stack[this.stack.length-1]._enqueueClient(e)}},{key:"beginHosting",value:function(e){this.stack.push(e)}},