Comparing version 4.2.2 to 4.3.0
@@ -17,3 +17,3 @@ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.skate=t():e.skate=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.vdom=t.symbols=t.ready=t.props=t.prop=t.link=t.h=t.emit=t.define=t.Component=void 0;var o=n(1),i=u(o),a=n(6),l=u(a),f=n(8),c=u(f),s=n(12),d=r(s),p=n(31),v=r(p),y=n(33),h=r(y),b=n(34),_=r(b),m=n(25),g=r(m),O=n(35),k=r(O),P=c.builder();t.Component=d.default,t.define=v.default,t.emit=h.default,t.h=P,t.link=_.default,t.prop=i,t.props=g.default,t.ready=k.default,t.symbols=l,t.vdom=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),i.default.apply(void 0,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.number=t.boolean=t.array=void 0,t.create=u;var o=n(2),i=r(o),a=n(4),l=r(a),f=n(5),c=r(f),s=(t.array=u({coerce:function(e){return Array.isArray(e)?e:(0,l.default)(e)?null:[e]},default:function(){return[]},deserialize:function(e){return(0,l.default)(e)?null:JSON.parse(e)},serialize:JSON.stringify}),t.boolean=u({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":null}}),function(e){return(0,l.default)(e)?0:Number(e)});t.number=u({default:0,coerce:s,deserialize:s,serialize:c.default}),t.string=u({default:"",coerce:c.default,deserialize:c.default,serialize:c.default})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),o=r(u);t.default=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(function(t){return(0,o.default)(t).forEach(function(n){return e[n]=t[n]})}),e}},function(e,t){"use strict";function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enumOnly,r=void 0!==n&&n,u=Object[r?"keys":"getOwnPropertyNames"](e);return"function"==typeof Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(e)):u}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"undefined"==typeof e||null===e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(4),o=r(u),i=function(e){return(0,o.default)(e)?null:String(e)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7);Object.defineProperty(t,"name",{enumerable:!0,get:function(){return r.name}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.connected="____skate_connected",t.created="____skate_created",t.name="____skate_name",t.ctorCreateInitProps="____skate_ctor_createInitProps",t.ctorObservedAttributes="____skate_ctor_observedAttributes",t.ctorProps="____skate_ctor_props",t.ctorPropsMap="____skate_ctor_propsMap",t.props="____skate_props",t.ref="____skate_ref",t.renderer="____skate_renderer",t.rendering="____skate_rendering",t.rendererDebounced="____skate_rendererDebounced",t.updated="____skate_updated"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n){var r=e[x];r||(r=e[x]={}),"undefined"==typeof r[t]&&e.addEventListener(t,function(e){r[t]&&r[t].call(this,e)}),r[t]="function"==typeof n?n:null}function a(e){if(!e)return e;if(e[m.name])return e[m.name];if(e.prototype instanceof M){var t=new e;return e[m.name]=t.localName}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;V=[e,t,n]}function f(){var e=L.apply(void 0,u(V));return V=null,e}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return function n(){for(var r=arguments.length,u=Array(r),o=0;o<r;o++)u[o]=arguments[o];if(u[0]=a(u[0]),S=null,"function"==typeof u[0])return S=u[0],t.apply(void 0,u);if(w.length)w[w.length-1].push([n,u]);else{if(e===T){if(N)return++N;var i=e.apply(void 0,u);return i[C]&&++N,i}if(e===_.elementClose){if(1===N&&(0,_.skip)(),N&&--N)return;var c=e.apply(void 0,u),s=c[m.ref];return delete c[m.ref],"function"==typeof s&&s(c),c}if(!N||e===l||e===f)return e.apply(void 0,u)}}}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];S?S[E][t[0]]=t[1]:w.length?w[w.length-1].push([s,t]):(V.push(t[0]),V.push(t[1]))}function d(e,t,n){for(var r={key:t,statics:n},u=arguments.length,o=Array(u>3?u-3:0),i=3;i<u;i++)o[i-3]=arguments[i];for(var a=0;a<o.length;a+=2)r[o[a]]=o[a+1];e[E]=r,w.push([])}function p(e){var t=w.pop(),n=e[E];delete e[E];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,u(e[1]))})});return"function"==typeof r?r():r}function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return L.apply(void 0,[e].concat(n)),U(e)}function y(e,t){for(var n="undefined"==typeof t?"undefined":b(t),r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return"function"!==n&&"string"!==n&&"number"!==n||u.unshift(t),null!==t&&"object"===n||(t={}),I(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return s(e,t[e])}),F(e),u.forEach(function(e){var t="undefined"==typeof e?"undefined":b(e);"function"===t?e():"string"===t||"number"===t?R(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),U(e)}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.bind.apply(y,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return y.bind.apply(y,[null,e].concat(n))}})}Object.defineProperty(t,"__esModule",{value:!0}),t.text=t.elementVoid=t.elementOpenStart=t.elementOpenEnd=t.elementOpen=t.elementClose=t.attr=void 0;var b="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};t.element=y,t.builder=h;var _=n(9),m=n(7),g=n(10),O=r(g),k=n(11),P=r(k),j=P.default.customElements,M=P.default.HTMLElement,A=_.attributes[_.symbols.default],w=[],C="__skip",x="__events",E="__props",S=void 0,V=void 0,N=0,D=function(){},z=(0,O.default)(_.attributes,o({key:D,statics:D,checked:_.applyProp,className:_.applyProp,disabled:_.applyProp,value:_.applyProp,ref:function(e,t,n){e[m.ref]=n},skip:function(e,t,n){n?e[C]=!0:delete e[C]}},_.symbols.default,function(e,t,n){var r=j.get(e.localName)||{props:{},prototype:{}},u=r.props,o=r.prototype;if((t in u||t in e||t in o)&&!("ownerSVGElement"in e))return void(0,_.applyProp)(e,t,n);if(n===!1)return void A(e,t);if(0===t.indexOf("on")){var a=t[2],l=void 0;if("-"===a?l=t.substring(3):a===a.toUpperCase()&&(l=a.toLowerCase()+t.substring(3)),l)return void i(e,l,n)}A(e,t,n)})),T=z(_.elementOpen),I=c(l,d),F=c(f),L=c(T,d),U=c(_.elementClose,p),R=c(_.text);t.attr=s,t.elementClose=U,t.elementOpen=L,t.elementOpenEnd=F,t.elementOpenStart=I,t.elementVoid=v,t.text=R},function(e,t,n){/** | ||
*/ | ||
"use strict";function r(e,t){this.attrs=l(),this.attrsArr=[],this.newAttrs=l(),this.key=t,this.keyMap=null,this.keyMapValid=!0,this.nodeName=e,this.text=null}function u(){this.created=A.nodesCreated&&[],this.deleted=A.nodesDeleted&&[]}var o=Object.prototype.hasOwnProperty,i=Object.create,a=function(e,t){return o.call(e,t)},l=function(){return i(null)},f=function(e,t,n){var u=new r(t,n);return e.__incrementalDOMData=u,u},c=function(e){var t=e.__incrementalDOMData;if(!t){var n=e.nodeName.toLowerCase(),r=null;e instanceof Element&&(r=e.getAttribute("key")),t=f(e,n,r)}return t},s={default:"__default",placeholder:"__placeholder"},d=function(e){return 0===e.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===e.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":void 0},p=function(e,t,n){if(null==n)e.removeAttribute(t);else{var r=d(t);r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}},v=function(e,t,n){e[t]=n},y=function(e,t,n){if("string"==typeof n)e.style.cssText=n;else{e.style.cssText="";var r=e.style,u=n;for(var o in u)a(u,o)&&(r[o]=u[o])}},h=function(e,t,n){var r=typeof n;"object"===r||"function"===r?v(e,t,n):p(e,t,n)},b=function(e,t,n){var r=c(e),u=r.attrs;if(u[t]!==n){var o=_[t]||_[s.default];o(e,t,n),u[t]=n}},_=l();_[s.default]=h,_[s.placeholder]=function(){},_.style=y;var m=function(e,t){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===c(t).nodeName?null:t.namespaceURI},g=function(e,t,n,r,u){var o=m(n,t),i=void 0;if(i=o?e.createElementNS(o,n):e.createElement(n),f(i,n,r),u)for(var a=0;a<u.length;a+=2)b(i,u[a],u[a+1]);return i},O=function(e){var t=e.createTextNode("");return f(t,"#text",null),t},k=function(e){for(var t=l(),n=e.firstElementChild;n;){var r=c(n).key;r&&(t[r]=n),n=n.nextElementSibling}return t},P=function(e){var t=c(e);return t.keyMap||(t.keyMap=k(e)),t.keyMap},j=function(e,t){return t?P(e)[t]:null},M=function(e,t,n){P(e)[t]=n},A={nodesCreated:null,nodesDeleted:null};u.prototype.markCreated=function(e){this.created&&this.created.push(e)},u.prototype.markDeleted=function(e){this.deleted&&this.deleted.push(e)},u.prototype.notifyChanges=function(){this.created&&this.created.length>0&&A.nodesCreated(this.created),this.deleted&&this.deleted.length>0&&A.nodesDeleted(this.deleted)};var w=null,C=null,x=null,E=null,S=null,V=function(e){var t=function(t,n,r){var o=w,i=E,a=S,l=C,f=x;w=new u,E=t,S=t.ownerDocument,x=t.parentNode,e(t,n,r),w.notifyChanges(),w=o,E=i,S=a,C=l,x=f};return t},N=V(function(e,t,n){C=e,F(),t(n),U()}),D=V(function(e,t,n){C={nextSibling:e},t(n)}),z=function(e,t){var n=c(C);return e===n.nodeName&&t==n.key},T=function(e,t,n){if(!C||!z(e,t)){var r=void 0;t&&(r=j(x,t)),r||(r="#text"===e?O(S):g(S,x,e,t,n),t&&M(x,t,r),w.markCreated(r)),C&&c(C).key?(x.replaceChild(r,C),c(x).keyMapValid=!1):x.insertBefore(r,C),C=r}},I=function(){var e=x,t=c(e),n=t.keyMap,r=t.keyMapValid,u=e.lastChild,o=void 0;if(!(u===C&&r||t.attrs[s.placeholder]&&e!==E)){for(;u!==C;)e.removeChild(u),w.markDeleted(u),o=c(u).key,o&&delete n[o],u=e.lastChild;if(!r){for(o in n)u=n[o],u.parentNode!==e&&(w.markDeleted(u),delete n[o]);t.keyMapValid=!0}}},F=function(){x=C,C=null},L=function(){C=C?C.nextSibling:x.firstChild},U=function(){I(),C=x,x=x.parentNode},R=function(e,t,n){return L(),T(e,t,n),F(),x},B=function(){return U(),C},G=function(){return L(),T("#text",null,null),C},H=function(){return x},J=function(){C=x.lastChild},K=3,q=[],W=function(e,t,n,r){for(var u=R(e,t,n),o=c(u),i=o.attrsArr,a=o.newAttrs,l=!1,f=K,s=0;f<arguments.length;f+=1,s+=1)if(i[s]!==arguments[f]){l=!0;break}for(;f<arguments.length;f+=1,s+=1)i[s]=arguments[f];if(s<i.length&&(l=!0,i.length=s),l){for(f=K;f<arguments.length;f+=2)a[arguments[f]]=arguments[f+1];for(var d in a)b(u,d,a[d]),a[d]=void 0}return u},X=function(e,t,n){q[0]=e,q[1]=t,q[2]=n},Z=function(e,t){q.push(e,t)},Q=function(){var e=W.apply(null,q);return q.length=0,e},Y=function(e){var t=B();return t},$=function(e,t,n,r){return W.apply(null,arguments),Y(e)},ee=function(e,t,n,r){return W.apply(null,arguments),J(),Y(e)},te=function(e,t){var n=G(),r=c(n);if(r.text!==e){r.text=e;for(var u=e,o=1;o<arguments.length;o+=1){var i=arguments[o];u=i(u)}n.data=u}return n};t.patch=N,t.patchInner=N,t.patchOuter=D,t.currentElement=H,t.skip=J,t.elementVoid=$,t.elementOpenStart=X,t.elementOpenEnd=Q,t.elementOpen=W,t.elementClose=Y,t.elementPlaceholder=ee,t.text=te,t.attr=Z,t.symbols=s,t.attributes=_,t.applyAttr=p,t.applyProp=v,t.notifications=A},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function o(e,t){(0,a.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return function(){var r=u(e,t),i=n.apply(void 0,arguments);return o(e,r),i}}};var i=n(2),a=r(i)},function(e,t){(function(t){"use strict";e.exports="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r){return t===e[R]&&n===e[B]&&r===e[G]}function l(e){var t=(0,x.default)(e);return(0,P.default)(t).reduce(function(e,n){return e[n]=(0,V.createNativePropertyDescriptor)(t[n]),e},{})}function f(e){var t=l(e);return function(e){(0,P.default)(t).forEach(function(n){var r=t[n];r.beforeDefineProperty(e);var u=n in e,o=u&&e[n];Object.defineProperty(e,n,r),u&&(e[n]=o)})}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var u=Object.getOwnPropertyDescriptor(t,n);if(void 0===u){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in u)return u.value;var i=u.get;if(void 0!==i)return i.call(r)},d=n(9),p=n(7),v=n(2),y=r(v),h=n(13),b=r(h),_=n(14),m=r(_),g=n(15),O=r(g),k=n(3),P=r(k),j=n(17),M=r(j),A=n(19),w=r(A),C=n(20),x=r(C),E=n(25),S=r(E),V=n(26),N=n(18),D=n(30),z=r(D),T=n(24),I=r(T),F=n(11),L=r(F),U=L.default.HTMLElement||function(){function e(){i(this,e)}return e}(),R=(0,b.default)("prevName"),B=(0,b.default)("prevOldValue"),G=(0,b.default)("prevNewValue"),H=function(e){function t(){var e;i(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),l=a.constructor;a[p.created]=!0,l.hasOwnProperty(p.ctorCreateInitProps)||(0,I.default)(l,p.ctorCreateInitProps,f(l)),a[p.rendererDebounced]=(0,O.default)(a[p.renderer].bind(a));var c=(0,P.default)((0,x.default)(l)).length;c&&l[p.ctorCreateInitProps]&&l[p.ctorCreateInitProps](a),!a.renderCallback&&l.render&&(a.renderCallback=l.render.bind(l,a));var s=l.created;(0,N.isFunction)(s)&&s(a);var d=(0,m.default)(a),v=d.readyCallbacks;return v&&(v.forEach(function(e){return e(a)}),delete d.readyCallbacks),a}return o(t,e),c(t,null,[{key:"observedAttributes",get:function(){var e=this.hasOwnProperty(p.ctorObservedAttributes)?this[p.ctorObservedAttributes]:[],n=(0,x.default)(this),r=Object.keys(n).map(function(e){return n[e].attrName}).filter(Boolean),u=r.concat(e).concat(s(t.__proto__||Object.getPrototypeOf(t),"observedAttributes",this));return u.filter(function(e,t){return u.indexOf(e)===t})},set:function(e){e=Array.isArray(e)?e:[],(0,I.default)(this,"observedAttributes",e)}},{key:"props",get:function(){return(0,y.default)({},s(t.__proto__||Object.getPrototypeOf(t),"props",this),this[p.ctorProps])},set:function(e){(0,I.default)(this,p.ctorProps,e)}}]),c(t,[{key:"connectedCallback",value:function(){(0,M.default)(this).resumeAttributesUpdates(),this[p.connected]=!0,this[p.rendererDebounced]();var e=this.constructor.attached;(0,N.isFunction)(e)&&e(this),this.setAttribute("defined","")}},{key:"disconnectedCallback",value:function(){(0,M.default)(this).suspendAttributesUpdates(),this[p.connected]=!1;var e=this.constructor.detached;(0,N.isFunction)(e)&&e(this)}},{key:"attributeChangedCallback",value:function(e,t,n){if(!a(this,e,t,n)){this[R]=e,this[B]=t,this[G]=n;var r=(0,m.default)(this,"attributeLinks")[e];if(r){var u=(0,M.default)(this).onAttributeChanged(e,n);if(u){var o=(0,x.default)(this.constructor)[r],i=null!==n&&o.deserialize?o.deserialize(n):n,l=(0,m.default)(this,"props")[r];l.settingProp=!0,this[r]=i,l.settingProp=!1}}var f=this.constructor.attributeChanged;(0,N.isFunction)(f)&&f(this,{name:e,newValue:n,oldValue:t})}}},{key:"updatedCallback",value:function(e){return this.constructor.updated(this,e)}},{key:"renderedCallback",value:function(){return this.constructor.rendered(this)}},{key:"rendererCallback",value:function(){return this.constructor.renderer(this)}},{key:p.renderer,value:function(){!this[p.rendering]&&this[p.connected]&&(this[p.rendering]=!0,this[p.updated]()&&(0,N.isFunction)(this.renderCallback)&&(this.rendererCallback(),this.renderedCallback()),this[p.rendering]=!1)}},{key:p.updated,value:function(){var e=this[p.props];return this[p.props]=(0,S.default)(this),this.updatedCallback(e)}}],[{key:"extend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return i(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),t}(t),r=(0,w.default)(e),a=(0,w.default)(e.prototype);return delete r.prototype,Object.defineProperties(n,r),Object.defineProperties(n.prototype,a),n}},{key:"rendered",value:function(){}},{key:"renderer",value:function(e){e.shadowRoot||e.attachShadow({mode:"open"}),(0,d.patchInner)(e.shadowRoot,function(){var t=e.renderCallback();(0,N.isFunction)(t)?t():Array.isArray(t)&&t.forEach(function(e){(0,N.isFunction)(e)&&e()})})}},{key:"updated",value:function(e,t){if(!t)return!0;for(var n=(0,P.default)(t),r=0;r<n.length;r++){var u=n[r];if(!(0,z.default)(t[u],e[u]))return!0}return!1}}]),t}(U);t.default=H},function(e,t){"use strict";function n(e){return"function"==typeof Symbol?Symbol(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new s(function(){e.apply(void 0,u(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,u=Array(e),i=0;i<e;i++)u[i]=arguments[i];r=u,t||(t=!0,o.textContent=""+n,n+=1)}}function i(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,u(n))},1))}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(16),l=r(a),f=n(11),c=r(f),s=c.default.MutationObserver;t.default=(0,l.default)(s)?o:i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["native code","[object MutationObserverConstructor]"];t.default=function(e){return n.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){var t=e[s];return t||(t=new c(e),e[s]=t),t}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var a=n(5),l=r(a),f=n(18),c=function(){function e(t){u(this,e),this.elem=t,this.connected=!1,this.pendingValues={},this.lastSetValues={}}return i(e,[{key:"suspendAttributesUpdates",value:function(){this.connected=!1}},{key:"resumeAttributesUpdates",value:function(){var e=this;this.connected=!0;var t=Object.keys(this.pendingValues);t.forEach(function(t){var n=e.pendingValues[t];(0,f.isUndefined)(n)||(delete e.pendingValues[t],e._syncAttrValue(t,n))})}},{key:"onAttributeChanged",value:function(e,t){t=(0,l.default)(t),this._clearPendingValue(e);var n=this.lastSetValues[e]!==t;return this.lastSetValues[e]=t,n}},{key:"setAttrValue",value:function(e,t){t=(0,l.default)(t),this.lastSetValues[e]=t,this.connected?(this._clearPendingValue(e),this._syncAttrValue(e,t)):this.pendingValues[e]=t}},{key:"_syncAttrValue",value:function(e,t){var n=(0,l.default)(this.elem.getAttribute(e));t!==n&&(null===t?this.elem.removeAttribute(e):this.elem.setAttribute(e,t))}},{key:"_clearPendingValue",value:function(e){e in this.pendingValues&&delete this.pendingValues[e]}}]),e}(),s="____skate_attributesMgr"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isFunction=function(e){return"function"==typeof e},t.isUndefined=function(e){return"undefined"==typeof e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})};var u=n(3),o=r(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return e.hasOwnProperty(o.ctorPropsMap)||!function(){var t=e.props||{},n=(0,a.default)(t).reduce(function(e,n){return e[n]=new f.default(n,t[n]),e},{});(0,s.default)(e,o.ctorPropsMap,n)}(),e[o.ctorPropsMap]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(7),i=n(3),a=r(i),l=n(21),f=r(l),c=n(24),s=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("symbol"===("undefined"==typeof t?"undefined":i(t)))(0,p.default)(t.toString()+" symbol property cannot have an attribute.");else{if(e===!0)return(0,f.default)(String(t));if("string"==typeof e)return e}return null}Object.defineProperty(t,"__esModule",{value:!0});var i="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=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(22),f=r(l),c=n(4),s=r(c),d=n(23),p=r(d),v=n(18),y=function(){function e(t,n){var r=this;u(this,e),this._name=t,n=n||{},this.attrName=null,this.coerce=function(e){return e},this.default=null,this.deserialize=function(e){return e},this.get=null,this.serialize=function(e){return(0,s.default)(e)?null:String(e)},this.set=null,Object.keys(n).forEach(function(e){var u=n[e];switch(e){case"attribute":r.attrName=o(u,t);break;case"coerce":case"deserialize":case"get":case"serialize":case"set":(0,v.isFunction)(u)?r[e]=u:(0,p.default)(e+" must be a function.");break;case"default":case"initial":r[e]=u;break;default:(0,p.default)(e+" is not a valid option. Options are: attribute, initial, default, coerce, deserialize, serialize.")}})}return a(e,[{key:"name",get:function(){return this._name}}]),e}();t.default=y},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=a.default.DEBUG;if((0,o.isUndefined)(t)||!t)throw new Error(e);console.error(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(18),i=n(11),a=r(i)},function(e,t){"use strict";function n(e,t,n){Object.defineProperty(e,t,{configurable:!0,value:n})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t={};return(0,d.default)((0,c.default)(e.constructor)).forEach(function(n){t[n]=e[n]}),t}function o(e,t){(0,l.default)(e,t),e[i.renderer]&&e[i.renderer]()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"undefined"==typeof t?u(e):o(e,t)};var i=n(7),a=n(2),l=r(a),f=n(20),c=r(f),s=n(3),d=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.name,n={configurable:!0,enumerable:!0};return n.beforeDefineProperty=function(n){var r=(0,b.default)(n,t),u=e.attrName;u&&((0,a.default)(n,"attributeLinks")[u]=t);var o=n[t],i=!1;if((0,f.default)(o)&&(u&&n.hasAttribute(u)?(i=!0,o=e.deserialize(n.getAttribute(u))):o="initial"in e?(0,y.default)(n,e):(0,p.default)(n,e)),o=e.coerce(o),r.internalValue=o,!i&&u&&!(0,f.default)(o)){var l=e.serialize(o);(0,s.default)(n).setAttrValue(e.attrName,l)}},n.get=function(){var n=(0,b.default)(this,t),r=n.internalValue;return e.get?e.get(this,{name:t,internalValue:r}):r},n.set=function(n){var r=(0,b.default)(this,t),u=(0,f.default)(n);if(u&&(n=(0,p.default)(this,e)),n=e.coerce(n),e.set){var i=r.oldValue;(0,f.default)(i)&&(i=null);var a={name:t,newValue:n,oldValue:i};e.set(this,a)}if(this[o.rendererDebounced](this),r.internalValue=r.oldValue=n,e.attrName&&!r.settingProp){var l=u?null:e.serialize(n);(0,s.default)(this).setAttrValue(e.attrName,l)}},n}Object.defineProperty(t,"__esModule",{value:!0}),t.createNativePropertyDescriptor=u;var o=n(7),i=n(14),a=r(i),l=n(4),f=r(l),c=n(17),s=r(c),d=n(27),p=r(d),v=n(28),y=r(v),h=n(29),b=r(h)},function(e,t){"use strict";function n(e,t){return"function"==typeof t.default?t.default(e,{name:t.name}):t.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t){return"function"==typeof t.initial?t.initial(e,{name:t.name}):t.initial}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=(0,i.default)(e,"props");return n[t]||(n[t]={})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(14),i=r(o)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){for(var e=s.default.customElements,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],l=n[1];if(!e)throw new Error("Skate requires native custom element support or a polyfill.");if(1===n.length){if("string"==typeof i)throw new Error("When passing only one argument to define(), it must be a custom element constructor.");l=i,i=(0,f.default)()}return e.get(i)&&(i=(0,f.default)(i)),"object"===("undefined"==typeof l?"undefined":u(l))&&(l=a.default.extend(l)),l[o.name]=i,e.define(i,l),l};var o=n(7),i=n(12),a=r(i),l=n(32),f=r(l),c=n(11),s=r(c)},function(e,t){"use strict";function n(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return(e||"x")+"-"+t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return a?(r=new a(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(u(t,n))};var o=n(11),i=r(o),a=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(i.default.Event)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){var r=o(n.target),i=t||n.target.name||"value";if(i.indexOf(".")>-1){var l=i.split("."),f=l[0],c=l.pop(),s=l.reduce(function(e,t){return e&&e[t]},e);s[c||n.target.name]=r,(0,a.default)(e,u({},f,e[f]))}else(0,a.default)(e,u({},i,r))}};var i=n(25),a=r(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);e[u.created]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]};var u=n(7),o=n(14),i=r(o)}])}); | ||
"use strict";function r(e,t){this.attrs=l(),this.attrsArr=[],this.newAttrs=l(),this.key=t,this.keyMap=null,this.keyMapValid=!0,this.nodeName=e,this.text=null}function u(){this.created=A.nodesCreated&&[],this.deleted=A.nodesDeleted&&[]}var o=Object.prototype.hasOwnProperty,i=Object.create,a=function(e,t){return o.call(e,t)},l=function(){return i(null)},f=function(e,t,n){var u=new r(t,n);return e.__incrementalDOMData=u,u},c=function(e){var t=e.__incrementalDOMData;if(!t){var n=e.nodeName.toLowerCase(),r=null;e instanceof Element&&(r=e.getAttribute("key")),t=f(e,n,r)}return t},s={default:"__default",placeholder:"__placeholder"},d=function(e){return 0===e.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===e.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":void 0},p=function(e,t,n){if(null==n)e.removeAttribute(t);else{var r=d(t);r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}},v=function(e,t,n){e[t]=n},y=function(e,t,n){if("string"==typeof n)e.style.cssText=n;else{e.style.cssText="";var r=e.style,u=n;for(var o in u)a(u,o)&&(r[o]=u[o])}},h=function(e,t,n){var r=typeof n;"object"===r||"function"===r?v(e,t,n):p(e,t,n)},b=function(e,t,n){var r=c(e),u=r.attrs;if(u[t]!==n){var o=_[t]||_[s.default];o(e,t,n),u[t]=n}},_=l();_[s.default]=h,_[s.placeholder]=function(){},_.style=y;var m=function(e,t){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===c(t).nodeName?null:t.namespaceURI},g=function(e,t,n,r,u){var o=m(n,t),i=void 0;if(i=o?e.createElementNS(o,n):e.createElement(n),f(i,n,r),u)for(var a=0;a<u.length;a+=2)b(i,u[a],u[a+1]);return i},O=function(e){var t=e.createTextNode("");return f(t,"#text",null),t},k=function(e){for(var t=l(),n=e.firstElementChild;n;){var r=c(n).key;r&&(t[r]=n),n=n.nextElementSibling}return t},P=function(e){var t=c(e);return t.keyMap||(t.keyMap=k(e)),t.keyMap},j=function(e,t){return t?P(e)[t]:null},M=function(e,t,n){P(e)[t]=n},A={nodesCreated:null,nodesDeleted:null};u.prototype.markCreated=function(e){this.created&&this.created.push(e)},u.prototype.markDeleted=function(e){this.deleted&&this.deleted.push(e)},u.prototype.notifyChanges=function(){this.created&&this.created.length>0&&A.nodesCreated(this.created),this.deleted&&this.deleted.length>0&&A.nodesDeleted(this.deleted)};var w=null,C=null,x=null,E=null,S=null,V=function(e){var t=function(t,n,r){var o=w,i=E,a=S,l=C,f=x;w=new u,E=t,S=t.ownerDocument,x=t.parentNode,e(t,n,r),w.notifyChanges(),w=o,E=i,S=a,C=l,x=f};return t},N=V(function(e,t,n){C=e,F(),t(n),U()}),D=V(function(e,t,n){C={nextSibling:e},t(n)}),z=function(e,t){var n=c(C);return e===n.nodeName&&t==n.key},T=function(e,t,n){if(!C||!z(e,t)){var r=void 0;t&&(r=j(x,t)),r||(r="#text"===e?O(S):g(S,x,e,t,n),t&&M(x,t,r),w.markCreated(r)),C&&c(C).key?(x.replaceChild(r,C),c(x).keyMapValid=!1):x.insertBefore(r,C),C=r}},I=function(){var e=x,t=c(e),n=t.keyMap,r=t.keyMapValid,u=e.lastChild,o=void 0;if(!(u===C&&r||t.attrs[s.placeholder]&&e!==E)){for(;u!==C;)e.removeChild(u),w.markDeleted(u),o=c(u).key,o&&delete n[o],u=e.lastChild;if(!r){for(o in n)u=n[o],u.parentNode!==e&&(w.markDeleted(u),delete n[o]);t.keyMapValid=!0}}},F=function(){x=C,C=null},L=function(){C=C?C.nextSibling:x.firstChild},U=function(){I(),C=x,x=x.parentNode},R=function(e,t,n){return L(),T(e,t,n),F(),x},B=function(){return U(),C},G=function(){return L(),T("#text",null,null),C},H=function(){return x},J=function(){C=x.lastChild},K=3,q=[],W=function(e,t,n,r){for(var u=R(e,t,n),o=c(u),i=o.attrsArr,a=o.newAttrs,l=!1,f=K,s=0;f<arguments.length;f+=1,s+=1)if(i[s]!==arguments[f]){l=!0;break}for(;f<arguments.length;f+=1,s+=1)i[s]=arguments[f];if(s<i.length&&(l=!0,i.length=s),l){for(f=K;f<arguments.length;f+=2)a[arguments[f]]=arguments[f+1];for(var d in a)b(u,d,a[d]),a[d]=void 0}return u},X=function(e,t,n){q[0]=e,q[1]=t,q[2]=n},Z=function(e,t){q.push(e,t)},Q=function(){var e=W.apply(null,q);return q.length=0,e},Y=function(e){var t=B();return t},$=function(e,t,n,r){return W.apply(null,arguments),Y(e)},ee=function(e,t,n,r){return W.apply(null,arguments),J(),Y(e)},te=function(e,t){var n=G(),r=c(n);if(r.text!==e){r.text=e;for(var u=e,o=1;o<arguments.length;o+=1){var i=arguments[o];u=i(u)}n.data=u}return n};t.patch=N,t.patchInner=N,t.patchOuter=D,t.currentElement=H,t.skip=J,t.elementVoid=$,t.elementOpenStart=X,t.elementOpenEnd=Q,t.elementOpen=W,t.elementClose=Y,t.elementPlaceholder=ee,t.text=te,t.attr=Z,t.symbols=s,t.attributes=_,t.applyAttr=p,t.applyProp=v,t.notifications=A},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function o(e,t){(0,a.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return function(){var r=u(e,t),i=n.apply(void 0,arguments);return o(e,r),i}}};var i=n(2),a=r(i)},function(e,t){(function(t){"use strict";e.exports="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r){return t===e[R]&&n===e[B]&&r===e[G]}function l(e){var t=(0,x.default)(e);return(0,P.default)(t).reduce(function(e,n){return e[n]=(0,V.createNativePropertyDescriptor)(t[n]),e},{})}function f(e){var t=l(e);return function(e){(0,P.default)(t).forEach(function(n){var r=t[n];r.beforeDefineProperty(e);var u=n in e,o=u&&e[n];Object.defineProperty(e,n,r),u&&(e[n]=o)})}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var u=Object.getOwnPropertyDescriptor(t,n);if(void 0===u){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in u)return u.value;var i=u.get;if(void 0!==i)return i.call(r)},d=n(9),p=n(7),v=n(2),y=r(v),h=n(13),b=r(h),_=n(14),m=r(_),g=n(15),O=r(g),k=n(3),P=r(k),j=n(17),M=r(j),A=n(19),w=r(A),C=n(20),x=r(C),E=n(25),S=r(E),V=n(26),N=n(18),D=n(30),z=r(D),T=n(24),I=r(T),F=n(11),L=r(F),U=L.default.HTMLElement||function(){function e(){i(this,e)}return e}(),R=(0,b.default)("prevName"),B=(0,b.default)("prevOldValue"),G=(0,b.default)("prevNewValue"),H=function(e){function t(){var e;i(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),l=a.constructor;a[p.created]=!0,l.hasOwnProperty(p.ctorCreateInitProps)||(0,I.default)(l,p.ctorCreateInitProps,f(l)),a[p.rendererDebounced]=(0,O.default)(a[p.renderer].bind(a));var c=(0,P.default)((0,x.default)(l)).length;c&&l[p.ctorCreateInitProps]&&l[p.ctorCreateInitProps](a),!a.renderCallback&&l.render&&(a.renderCallback=l.render.bind(l,a));var s=l.created;(0,N.isFunction)(s)&&s(a);var d=(0,m.default)(a),v=d.readyCallbacks;return v&&(v.forEach(function(e){return e(a)}),delete d.readyCallbacks),a}return o(t,e),c(t,null,[{key:"observedAttributes",get:function(){var e=this.hasOwnProperty(p.ctorObservedAttributes)?this[p.ctorObservedAttributes]:[],n=(0,x.default)(this),r=Object.keys(n).map(function(e){return n[e].attrName}).filter(Boolean),u=r.concat(e).concat(s(t.__proto__||Object.getPrototypeOf(t),"observedAttributes",this));return u.filter(function(e,t){return u.indexOf(e)===t})},set:function(e){e=Array.isArray(e)?e:[],(0,I.default)(this,"observedAttributes",e)}},{key:"props",get:function(){return(0,y.default)({},s(t.__proto__||Object.getPrototypeOf(t),"props",this),this[p.ctorProps])},set:function(e){(0,I.default)(this,p.ctorProps,e)}}]),c(t,[{key:"connectedCallback",value:function(){(0,M.default)(this).resumeAttributesUpdates(),this[p.connected]=!0,this[p.rendererDebounced]();var e=this.constructor.attached;(0,N.isFunction)(e)&&e(this),this.setAttribute("defined","")}},{key:"disconnectedCallback",value:function(){(0,M.default)(this).suspendAttributesUpdates(),this[p.connected]=!1;var e=this.constructor.detached;(0,N.isFunction)(e)&&e(this)}},{key:"attributeChangedCallback",value:function(e,t,n){if(!a(this,e,t,n)){this[R]=e,this[B]=t,this[G]=n;var r=(0,m.default)(this,"attributeLinks")[e];if(r){var u=(0,M.default)(this).onAttributeChanged(e,n);if(u){var o=(0,x.default)(this.constructor)[r],i=null!==n&&o.deserialize?o.deserialize(n):n,l=(0,m.default)(this,"props")[r];l.settingProp=!0,this[r]=i,l.settingProp=!1}}var f=this.constructor.attributeChanged;(0,N.isFunction)(f)&&f(this,{name:e,newValue:n,oldValue:t})}}},{key:"updatedCallback",value:function(e){return this.constructor.updated(this,e)}},{key:"renderedCallback",value:function(){return this.constructor.rendered(this)}},{key:"rendererCallback",value:function(){return this.constructor.renderer(this)}},{key:p.renderer,value:function(){!this[p.rendering]&&this[p.connected]&&(this[p.rendering]=!0,this[p.updated]()&&(0,N.isFunction)(this.renderCallback)&&(this.rendererCallback(),this.renderedCallback()),this[p.rendering]=!1)}},{key:p.updated,value:function(){var e=this[p.props];return this[p.props]=(0,S.default)(this),this.updatedCallback(e)}}],[{key:"extend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return i(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),t}(t),r=(0,w.default)(e),a=(0,w.default)(e.prototype);return delete r.prototype,Object.defineProperties(n,r),Object.defineProperties(n.prototype,a),n}},{key:"rendered",value:function(){}},{key:"renderer",value:function(e){e.shadowRoot||e.attachShadow({mode:"open"}),(0,d.patchInner)(e.shadowRoot,function(){var t=e.renderCallback(e);(0,N.isFunction)(t)?t():Array.isArray(t)&&t.forEach(function(e){(0,N.isFunction)(e)&&e()})})}},{key:"updated",value:function(e,t){if(!t)return!0;for(var n=(0,P.default)(t),r=0;r<n.length;r++){var u=n[r];if(!(0,z.default)(t[u],e[u]))return!0}return!1}}]),t}(U);t.default=H},function(e,t){"use strict";function n(e){return"function"==typeof Symbol?Symbol(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new s(function(){e.apply(void 0,u(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,u=Array(e),i=0;i<e;i++)u[i]=arguments[i];r=u,t||(t=!0,o.textContent=""+n,n+=1)}}function i(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,u(n))},1))}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(16),l=r(a),f=n(11),c=r(f),s=c.default.MutationObserver;t.default=(0,l.default)(s)?o:i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["native code","[object MutationObserverConstructor]"];t.default=function(e){return n.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){var t=e[s];return t||(t=new c(e),e[s]=t),t}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var a=n(5),l=r(a),f=n(18),c=function(){function e(t){u(this,e),this.elem=t,this.connected=!1,this.pendingValues={},this.lastSetValues={}}return i(e,[{key:"suspendAttributesUpdates",value:function(){this.connected=!1}},{key:"resumeAttributesUpdates",value:function(){var e=this;this.connected=!0;var t=Object.keys(this.pendingValues);t.forEach(function(t){var n=e.pendingValues[t];(0,f.isUndefined)(n)||(delete e.pendingValues[t],e._syncAttrValue(t,n))})}},{key:"onAttributeChanged",value:function(e,t){t=(0,l.default)(t),this._clearPendingValue(e);var n=this.lastSetValues[e]!==t;return this.lastSetValues[e]=t,n}},{key:"setAttrValue",value:function(e,t){t=(0,l.default)(t),this.lastSetValues[e]=t,this.connected?(this._clearPendingValue(e),this._syncAttrValue(e,t)):this.pendingValues[e]=t}},{key:"_syncAttrValue",value:function(e,t){var n=(0,l.default)(this.elem.getAttribute(e));t!==n&&(null===t?this.elem.removeAttribute(e):this.elem.setAttribute(e,t))}},{key:"_clearPendingValue",value:function(e){e in this.pendingValues&&delete this.pendingValues[e]}}]),e}(),s="____skate_attributesMgr"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isFunction=function(e){return"function"==typeof e},t.isUndefined=function(e){return"undefined"==typeof e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})};var u=n(3),o=r(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return e.hasOwnProperty(o.ctorPropsMap)||!function(){var t=e.props||{},n=(0,a.default)(t).reduce(function(e,n){return e[n]=new f.default(n,t[n]),e},{});(0,s.default)(e,o.ctorPropsMap,n)}(),e[o.ctorPropsMap]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(7),i=n(3),a=r(i),l=n(21),f=r(l),c=n(24),s=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("symbol"===("undefined"==typeof t?"undefined":i(t)))(0,p.default)(t.toString()+" symbol property cannot have an attribute.");else{if(e===!0)return(0,f.default)(String(t));if("string"==typeof e)return e}return null}Object.defineProperty(t,"__esModule",{value:!0});var i="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=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(22),f=r(l),c=n(4),s=r(c),d=n(23),p=r(d),v=n(18),y=function(){function e(t,n){var r=this;u(this,e),this._name=t,n=n||{},this.attrName=null,this.coerce=function(e){return e},this.default=null,this.deserialize=function(e){return e},this.get=null,this.serialize=function(e){return(0,s.default)(e)?null:String(e)},this.set=null,Object.keys(n).forEach(function(e){var u=n[e];switch(e){case"attribute":r.attrName=o(u,t);break;case"coerce":case"deserialize":case"get":case"serialize":case"set":(0,v.isFunction)(u)?r[e]=u:(0,p.default)(e+" must be a function.");break;case"default":case"initial":r[e]=u;break;default:(0,p.default)(e+" is not a valid option. Options are: attribute, initial, default, coerce, deserialize, serialize.")}})}return a(e,[{key:"name",get:function(){return this._name}}]),e}();t.default=y},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=a.default.DEBUG;if((0,o.isUndefined)(t)||!t)throw new Error(e);console.error(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(18),i=n(11),a=r(i)},function(e,t){"use strict";function n(e,t,n){Object.defineProperty(e,t,{configurable:!0,value:n})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t={};return(0,d.default)((0,c.default)(e.constructor)).forEach(function(n){t[n]=e[n]}),t}function o(e,t){(0,l.default)(e,t),e[i.renderer]&&e[i.renderer]()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"undefined"==typeof t?u(e):o(e,t)};var i=n(7),a=n(2),l=r(a),f=n(20),c=r(f),s=n(3),d=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.name,n={configurable:!0,enumerable:!0};return n.beforeDefineProperty=function(n){var r=(0,b.default)(n,t),u=e.attrName;u&&((0,a.default)(n,"attributeLinks")[u]=t);var o=n[t],i=!1;if((0,f.default)(o)&&(u&&n.hasAttribute(u)?(i=!0,o=e.deserialize(n.getAttribute(u))):o="initial"in e?(0,y.default)(n,e):(0,p.default)(n,e)),o=e.coerce(o),r.internalValue=o,!i&&u&&!(0,f.default)(o)){var l=e.serialize(o);(0,s.default)(n).setAttrValue(e.attrName,l)}},n.get=function(){var n=(0,b.default)(this,t),r=n.internalValue;return e.get?e.get(this,{name:t,internalValue:r}):r},n.set=function(n){var r=(0,b.default)(this,t),u=(0,f.default)(n);if(u&&(n=(0,p.default)(this,e)),n=e.coerce(n),e.set){var i=r.oldValue;(0,f.default)(i)&&(i=null);var a={name:t,newValue:n,oldValue:i};e.set(this,a)}if(this[o.rendererDebounced](this),r.internalValue=r.oldValue=n,e.attrName&&!r.settingProp){var l=u?null:e.serialize(n);(0,s.default)(this).setAttrValue(e.attrName,l)}},n}Object.defineProperty(t,"__esModule",{value:!0}),t.createNativePropertyDescriptor=u;var o=n(7),i=n(14),a=r(i),l=n(4),f=r(l),c=n(17),s=r(c),d=n(27),p=r(d),v=n(28),y=r(v),h=n(29),b=r(h)},function(e,t){"use strict";function n(e,t){return"function"==typeof t.default?t.default(e,{name:t.name}):t.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t){return"function"==typeof t.initial?t.initial(e,{name:t.name}):t.initial}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=(0,i.default)(e,"props");return n[t]||(n[t]={})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(14),i=r(o)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){for(var e=s.default.customElements,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],l=n[1];if(!e)throw new Error("Skate requires native custom element support or a polyfill.");if(1===n.length){if("string"==typeof i)throw new Error("When passing only one argument to define(), it must be a custom element constructor.");l=i,i=(0,f.default)()}return e.get(i)&&(i=(0,f.default)(i)),"object"===("undefined"==typeof l?"undefined":u(l))&&(l=a.default.extend(l)),l[o.name]=i,e.define(i,l),l};var o=n(7),i=n(12),a=r(i),l=n(32),f=r(l),c=n(11),s=r(c)},function(e,t){"use strict";function n(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return(e||"x")+"-"+t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return a?(r=new a(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(u(t,n))};var o=n(11),i=r(o),a=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(i.default.Event)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){var r=o(n.target),i=t||n.target.name||"value";if(i.indexOf(".")>-1){var l=i.split("."),f=l[0],c=l.pop(),s=l.reduce(function(e,t){return e&&e[t]},e);s[c||n.target.name]=r,(0,a.default)(e,u({},f,e[f]))}else(0,a.default)(e,u({},i,r))}};var i=n(25),a=r(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);e[u.created]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]};var u=n(7),o=n(14),i=r(o)}])}); | ||
//# sourceMappingURL=index-with-deps.min.js.map |
@@ -1767,3 +1767,3 @@ (function (global, factory) { | ||
incrementalDom.patchInner(elem.shadowRoot, function () { | ||
var possibleFn = elem.renderCallback(); | ||
var possibleFn = elem.renderCallback(elem); | ||
if (isFunction(possibleFn)) { | ||
@@ -1770,0 +1770,0 @@ possibleFn(); |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("incremental-dom"),require("window-or-global")):"function"==typeof define&&define.amd?define(["exports","incremental-dom","window-or-global"],t):t(e.skate=e.skate||{},e.IncrementalDOM,e.windowOrGlobal)}(this,function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enumOnly,r=void 0!==n&&n,i=Object[r?"keys":"getOwnPropertyNames"](e);return"function"==typeof Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i}function i(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),U.apply(void 0,n)}}function o(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function u(e,t){U(e,t)}function a(e,t,n){var r=e[ke];r||(r=e[ke]={}),"undefined"==typeof r[t]&&e.addEventListener(t,function(e){r[t]&&r[t].call(this,e)}),r[t]="function"==typeof n?n:null}function c(e){if(!e)return e;if(e[Z])return e[Z];if(e.prototype instanceof be){var t=new e;return e[Z]=t.localName}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Ae=[e,t,n]}function s(){var e=Se.apply(void 0,ve(Ae));return Ae=null,e}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je;return function r(){for(var i=arguments.length,o=Array(i),u=0;u<i;u++)o[u]=arguments[u];if(o[0]=c(o[0]),we=null,"function"==typeof o[0])return we=o[0],n.apply(void 0,o);if(me.length)me[me.length-1].push([r,o]);else{if(e===Ce){if(Pe)return++Pe;var a=e.apply(void 0,o);return a[ge]&&++Pe,a}if(e===t.elementClose){if(1===Pe&&t.skip(),Pe&&--Pe)return;var f=e.apply(void 0,o),d=f[te];return delete f[te],"function"==typeof d&&d(f),f}if(!Pe||e===l||e===s)return e.apply(void 0,o)}}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];we?we[Oe][t[0]]=t[1]:me.length?me[me.length-1].push([d,t]):(Ae.push(t[0]),Ae.push(t[1]))}function p(e,t,n){for(var r={key:t,statics:n},i=arguments.length,o=Array(i>3?i-3:0),u=3;u<i;u++)o[u-3]=arguments[u];for(var a=0;a<o.length;a+=2)r[o[a]]=o[a+1];e[Oe]=r,me.push([])}function h(e){var t=me.pop(),n=e[Oe];delete e[Oe];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,ve(e[1]))})});return"function"==typeof r?r():r}function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Se.apply(void 0,[e].concat(n)),ze(e)}function y(e,t){for(var n="undefined"==typeof t?"undefined":ce(t),r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return"function"!==n&&"string"!==n&&"number"!==n||i.unshift(t),null!==t&&"object"===n||(t={}),Ve(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return d(e,t[e])}),xe(e),i.forEach(function(e){var t="undefined"==typeof e?"undefined":ce(e);"function"===t?e():"string"===t||"number"===t?Ne(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),ze(e)}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.bind.apply(y,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return y.bind.apply(y,[null,e].concat(n))}})}function _(e){return"function"==typeof Symbol?Symbol(e):e}function m(e){var t=!1,n=0,r=[],i=document.createElement("span"),o=new Ue(function(){e.apply(void 0,ve(r)),t=!1,r=null});return o.observe(i,{childList:!0}),function(){for(var e=arguments.length,o=Array(e),u=0;u<e;u++)o[u]=arguments[u];r=o,t||(t=!0,i.textContent=""+n,n+=1)}}function g(e){var t=!1,n=[];return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];n=i,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,ve(n))},1))}}function k(e){var t=e[Be];return t||(t=new Re(e),e[Be]=t),t}function O(e){var t=n.DEBUG;if(Ge(t)||!t)throw new Error(e);console.error(e)}function w(e,t){if("symbol"===("undefined"==typeof t?"undefined":ce(t)))O(t.toString()+" symbol property cannot have an attribute.");else{if(e===!0)return Je(String(t));if("string"==typeof e)return e}return null}function A(e,t,n){Object.defineProperty(e,t,{configurable:!0,value:n})}function P(e){return e.hasOwnProperty($)||!function(){var t=e.props||{},n=r(t).reduce(function(e,n){return e[n]=new Ke(n,t[n]),e},{});A(e,$,n)}(),e[$]}function j(e){var t={};return r(P(e.constructor)).forEach(function(n){t[n]=e[n]}),t}function E(e,t){U(e,t),e[ne]&&e[ne]()}function C(e,t){return"function"==typeof t.default?t.default(e,{name:t.name}):t.default}function V(e,t){return"function"==typeof t.initial?t.initial(e,{name:t.name}):t.initial}function x(e,t){var n=Me(e,"props");return n[t]||(n[t]={})}function S(e){var t=e.name,n={configurable:!0,enumerable:!0};return n.beforeDefineProperty=function(n){var r=x(n,t),i=e.attrName;i&&(Me(n,"attributeLinks")[i]=t);var o=n[t],u=!1;if(I(o)&&(i&&n.hasAttribute(i)?(u=!0,o=e.deserialize(n.getAttribute(i))):o="initial"in e?V(n,e):C(n,e)),o=e.coerce(o),r.internalValue=o,!u&&i&&!I(o)){var a=e.serialize(o);k(n).setAttrValue(e.attrName,a)}},n.get=function(){var n=x(this,t),r=n.internalValue;return e.get?e.get(this,{name:t,internalValue:r}):r},n.set=function(n){var r=x(this,t),i=I(n);if(i&&(n=C(this,e)),n=e.coerce(n),e.set){var o=r.oldValue;I(o)&&(o=null);var u={name:t,newValue:n,oldValue:o};e.set(this,u)}if(this[ie](this),r.internalValue=r.oldValue=n,e.attrName&&!r.settingProp){var a=i?null:e.serialize(n);k(this).setAttrValue(e.attrName,a)}},n}function z(e,t,n,r){return t===e[Qe]&&n===e[Xe]&&r===e[Ye]}function N(e){var t=P(e);return r(t).reduce(function(e,n){return e[n]=S(t[n]),e},{})}function D(e){var t=N(e);return function(e){r(t).forEach(function(n){var r=t[n];r.beforeDefineProperty(e);var i=n in e,o=i&&e[n];Object.defineProperty(e,n,r),i&&(e[n]=o)})}}function M(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return(e||"x")+"-"+t}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return tt?(r=new tt(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function L(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}n="default"in n?n.default:n;var U=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach(function(t){return r(t).forEach(function(n){return e[n]=t[n]})}),e},I=function(e){return"undefined"==typeof e||null===e},q=function(e){return I(e)?null:String(e)},G=i({coerce:function(e){return Array.isArray(e)?e:I(e)?null:[e]},default:function(){return[]},deserialize:function(e){return I(e)?null:JSON.parse(e)},serialize:JSON.stringify}),R=i({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":null}}),B=function(e){return I(e)?0:Number(e)},H=i({default:0,coerce:B,deserialize:B,serialize:q}),J=i({default:"",coerce:q,deserialize:q,serialize:q}),K=Object.freeze({create:i,array:G,boolean:R,number:H,string:J}),F="____skate_connected",W="____skate_created",Z="____skate_name",Q="____skate_ctor_createInitProps",X="____skate_ctor_observedAttributes",Y="____skate_ctor_props",$="____skate_ctor_propsMap",ee="____skate_props",te="____skate_ref",ne="____skate_renderer",re="____skate_rendering",ie="____skate_rendererDebounced",oe="____skate_updated",ue=Object.freeze({name:Z}),ae=function(e,t){return function(n){return function(){var r=o(e,t),i=n.apply(void 0,arguments);return u(e,r),i}}},ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,i){var a={key:e,arg:t,resolve:n,reject:i,next:null};u?u=u.next=a:(o=u=a,r(e,t))})}function r(n,o){try{var u=t[n](o),a=u.value;a instanceof e?Promise.resolve(a.value).then(function(e){r("next",e)},function(e){r("throw",e)}):i(u.done?"return":"normal",u.value)}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":o.resolve({value:t,done:!0});break;case"throw":o.reject(t);break;default:o.resolve({value:t,done:!1})}o=o.next,o?r(o.key,o.arg):u=null}var o,u;this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),se=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),fe=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},de=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var u=i.get;if(void 0!==u)return u.call(r)},pe=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},he=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ve=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},ye=n.customElements,be=n.HTMLElement,_e=t.attributes[t.symbols.default],me=[],ge="__skip",ke="__events",Oe="__props",we=void 0,Ae=void 0,Pe=0,je=function(){},Ee=ae(t.attributes,fe({key:je,statics:je,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,ref:function(e,t,n){e[te]=n},skip:function(e,t,n){n?e[ge]=!0:delete e[ge]}},t.symbols.default,function(e,n,r){var i=ye.get(e.localName)||{props:{},prototype:{}},o=i.props,u=i.prototype;if((n in o||n in e||n in u)&&!("ownerSVGElement"in e))return void t.applyProp(e,n,r);if(r===!1)return void _e(e,n);if(0===n.indexOf("on")){var c=n[2],l=void 0;if("-"===c?l=n.substring(3):c===c.toUpperCase()&&(l=c.toLowerCase()+n.substring(3)),l)return void a(e,l,r)}_e(e,n,r)})),Ce=Ee(t.elementOpen),Ve=f(l,p),xe=f(s),Se=f(Ce,p),ze=f(t.elementClose,h),Ne=f(t.text),De=Object.freeze({element:y,builder:b,attr:d,elementClose:ze,elementOpen:Se,elementOpenEnd:xe,elementOpenStart:Ve,elementVoid:v,text:Ne}),Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n},Te=["native code","[object MutationObserverConstructor]"],Le=function(e){return Te.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})},Ue=n.MutationObserver,Ie=Le(Ue)?m:g,qe=function(e){return"function"==typeof e},Ge=function(e){return"undefined"==typeof e},Re=function(){function e(t){le(this,e),this.elem=t,this.connected=!1,this.pendingValues={},this.lastSetValues={}}return se(e,[{key:"suspendAttributesUpdates",value:function(){this.connected=!1}},{key:"resumeAttributesUpdates",value:function(){var e=this;this.connected=!0;var t=Object.keys(this.pendingValues);t.forEach(function(t){var n=e.pendingValues[t];Ge(n)||(delete e.pendingValues[t],e._syncAttrValue(t,n))})}},{key:"onAttributeChanged",value:function(e,t){t=q(t),this._clearPendingValue(e);var n=this.lastSetValues[e]!==t;return this.lastSetValues[e]=t,n}},{key:"setAttrValue",value:function(e,t){t=q(t),this.lastSetValues[e]=t,this.connected?(this._clearPendingValue(e),this._syncAttrValue(e,t)):this.pendingValues[e]=t}},{key:"_syncAttrValue",value:function(e,t){var n=q(this.elem.getAttribute(e));t!==n&&(null===t?this.elem.removeAttribute(e):this.elem.setAttribute(e,t))}},{key:"_clearPendingValue",value:function(e){e in this.pendingValues&&delete this.pendingValues[e]}}]),e}(),Be="____skate_attributesMgr",He=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})},Je=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})},Ke=function(){function e(t,n){var r=this;le(this,e),this._name=t,n=n||{},this.attrName=null,this.coerce=function(e){return e},this.default=null,this.deserialize=function(e){return e},this.get=null,this.serialize=function(e){return I(e)?null:String(e)},this.set=null,Object.keys(n).forEach(function(e){var i=n[e];switch(e){case"attribute":r.attrName=w(i,t);break;case"coerce":case"deserialize":case"get":case"serialize":case"set":qe(i)?r[e]=i:O(e+" must be a function.");break;case"default":case"initial":r[e]=i;break;default:O(e+" is not a valid option. Options are: attribute, initial, default, coerce, deserialize, serialize.")}})}return se(e,[{key:"name",get:function(){return this._name}}]),e}(),Fe=function(e,t){return"undefined"==typeof t?j(e):E(e,t)},We=function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t},Ze=n.HTMLElement||function(){function e(){le(this,e)}return e}(),Qe=_("prevName"),Xe=_("prevOldValue"),Ye=_("prevNewValue"),$e=function(e){function n(){var e;le(this,n);for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];var u=he(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),a=u.constructor;u[W]=!0,a.hasOwnProperty(Q)||A(a,Q,D(a)),u[ie]=Ie(u[ne].bind(u));var c=r(P(a)).length;c&&a[Q]&&a[Q](u),!u.renderCallback&&a.render&&(u.renderCallback=a.render.bind(a,u));var l=a.created;qe(l)&&l(u);var s=Me(u),f=s.readyCallbacks;return f&&(f.forEach(function(e){return e(u)}),delete s.readyCallbacks),u}return pe(n,e),se(n,null,[{key:"observedAttributes",get:function(){var e=this.hasOwnProperty(X)?this[X]:[],t=P(this),r=Object.keys(t).map(function(e){return t[e].attrName}).filter(Boolean),i=r.concat(e).concat(de(n.__proto__||Object.getPrototypeOf(n),"observedAttributes",this));return i.filter(function(e,t){return i.indexOf(e)===t})},set:function(e){e=Array.isArray(e)?e:[],A(this,"observedAttributes",e)}},{key:"props",get:function(){return U({},de(n.__proto__||Object.getPrototypeOf(n),"props",this),this[Y])},set:function(e){A(this,Y,e)}}]),se(n,[{key:"connectedCallback",value:function(){k(this).resumeAttributesUpdates(),this[F]=!0,this[ie]();var e=this.constructor.attached;qe(e)&&e(this),this.setAttribute("defined","")}},{key:"disconnectedCallback",value:function(){k(this).suspendAttributesUpdates(),this[F]=!1;var e=this.constructor.detached;qe(e)&&e(this)}},{key:"attributeChangedCallback",value:function(e,t,n){if(!z(this,e,t,n)){this[Qe]=e,this[Xe]=t,this[Ye]=n;var r=Me(this,"attributeLinks")[e];if(r){var i=k(this).onAttributeChanged(e,n);if(i){var o=P(this.constructor)[r],u=null!==n&&o.deserialize?o.deserialize(n):n,a=Me(this,"props")[r];a.settingProp=!0,this[r]=u,a.settingProp=!1}}var c=this.constructor.attributeChanged;qe(c)&&c(this,{name:e,newValue:n,oldValue:t})}}},{key:"updatedCallback",value:function(e){return this.constructor.updated(this,e)}},{key:"renderedCallback",value:function(){return this.constructor.rendered(this)}},{key:"rendererCallback",value:function(){return this.constructor.renderer(this)}},{key:ne,value:function(){!this[re]&&this[F]&&(this[re]=!0,this[oe]()&&qe(this.renderCallback)&&(this.rendererCallback(),this.renderedCallback()),this[re]=!1)}},{key:oe,value:function(){var e=this[ee];return this[ee]=Fe(this),this.updatedCallback(e)}}],[{key:"extend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return le(this,t),he(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return pe(t,e),t}(t),r=He(e),i=He(e.prototype);return delete r.prototype,Object.defineProperties(n,r),Object.defineProperties(n.prototype,i),n}},{key:"rendered",value:function(){}},{key:"renderer",value:function(e){e.shadowRoot||e.attachShadow({mode:"open"}),t.patchInner(e.shadowRoot,function(){var t=e.renderCallback();qe(t)?t():Array.isArray(t)&&t.forEach(function(e){qe(e)&&e()})})}},{key:"updated",value:function(e,t){if(!t)return!0;for(var n=r(t),i=0;i<n.length;i++){var o=n[i];if(!We(t[o],e[o]))return!0}return!1}}]),n}(Ze),et=function(){for(var e=n.customElements,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=r[0],u=r[1];if(!e)throw new Error("Skate requires native custom element support or a polyfill.");if(1===r.length){if("string"==typeof o)throw new Error("When passing only one argument to define(), it must be a custom element constructor.");u=o,o=M()}return e.get(o)&&(o=M(o)),"object"===("undefined"==typeof u?"undefined":ce(u))&&(u=$e.extend(u)),u[Z]=o,e.define(o,u),u},tt=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(n.Event),nt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(T(t,n))},rt=function(e,t){return function(n){var r=L(n.target),i=t||n.target.name||"value";if(i.indexOf(".")>-1){var o=i.split("."),u=o[0],a=o.pop(),c=o.reduce(function(e,t){return e&&e[t]},e);c[a||n.target.name]=r,Fe(e,fe({},u,e[u]))}else Fe(e,fe({},i,r))}},it=function(e,t){var n=Me(e);e[W]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]},ot=b();e.Component=$e,e.define=et,e.emit=nt,e.h=ot,e.link=rt,e.prop=K,e.props=Fe,e.ready=it,e.symbols=ue,e.vdom=De,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("incremental-dom"),require("window-or-global")):"function"==typeof define&&define.amd?define(["exports","incremental-dom","window-or-global"],t):t(e.skate=e.skate||{},e.IncrementalDOM,e.windowOrGlobal)}(this,function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enumOnly,r=void 0!==n&&n,i=Object[r?"keys":"getOwnPropertyNames"](e);return"function"==typeof Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i}function i(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),U.apply(void 0,n)}}function o(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function u(e,t){U(e,t)}function a(e,t,n){var r=e[ke];r||(r=e[ke]={}),"undefined"==typeof r[t]&&e.addEventListener(t,function(e){r[t]&&r[t].call(this,e)}),r[t]="function"==typeof n?n:null}function c(e){if(!e)return e;if(e[Z])return e[Z];if(e.prototype instanceof be){var t=new e;return e[Z]=t.localName}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Ae=[e,t,n]}function s(){var e=Se.apply(void 0,ve(Ae));return Ae=null,e}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je;return function r(){for(var i=arguments.length,o=Array(i),u=0;u<i;u++)o[u]=arguments[u];if(o[0]=c(o[0]),we=null,"function"==typeof o[0])return we=o[0],n.apply(void 0,o);if(me.length)me[me.length-1].push([r,o]);else{if(e===Ce){if(Pe)return++Pe;var a=e.apply(void 0,o);return a[ge]&&++Pe,a}if(e===t.elementClose){if(1===Pe&&t.skip(),Pe&&--Pe)return;var f=e.apply(void 0,o),d=f[te];return delete f[te],"function"==typeof d&&d(f),f}if(!Pe||e===l||e===s)return e.apply(void 0,o)}}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];we?we[Oe][t[0]]=t[1]:me.length?me[me.length-1].push([d,t]):(Ae.push(t[0]),Ae.push(t[1]))}function p(e,t,n){for(var r={key:t,statics:n},i=arguments.length,o=Array(i>3?i-3:0),u=3;u<i;u++)o[u-3]=arguments[u];for(var a=0;a<o.length;a+=2)r[o[a]]=o[a+1];e[Oe]=r,me.push([])}function h(e){var t=me.pop(),n=e[Oe];delete e[Oe];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,ve(e[1]))})});return"function"==typeof r?r():r}function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Se.apply(void 0,[e].concat(n)),ze(e)}function y(e,t){for(var n="undefined"==typeof t?"undefined":ce(t),r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return"function"!==n&&"string"!==n&&"number"!==n||i.unshift(t),null!==t&&"object"===n||(t={}),Ve(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return d(e,t[e])}),xe(e),i.forEach(function(e){var t="undefined"==typeof e?"undefined":ce(e);"function"===t?e():"string"===t||"number"===t?Ne(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),ze(e)}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.bind.apply(y,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return y.bind.apply(y,[null,e].concat(n))}})}function _(e){return"function"==typeof Symbol?Symbol(e):e}function m(e){var t=!1,n=0,r=[],i=document.createElement("span"),o=new Ue(function(){e.apply(void 0,ve(r)),t=!1,r=null});return o.observe(i,{childList:!0}),function(){for(var e=arguments.length,o=Array(e),u=0;u<e;u++)o[u]=arguments[u];r=o,t||(t=!0,i.textContent=""+n,n+=1)}}function g(e){var t=!1,n=[];return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];n=i,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,ve(n))},1))}}function k(e){var t=e[Be];return t||(t=new Re(e),e[Be]=t),t}function O(e){var t=n.DEBUG;if(Ge(t)||!t)throw new Error(e);console.error(e)}function w(e,t){if("symbol"===("undefined"==typeof t?"undefined":ce(t)))O(t.toString()+" symbol property cannot have an attribute.");else{if(e===!0)return Je(String(t));if("string"==typeof e)return e}return null}function A(e,t,n){Object.defineProperty(e,t,{configurable:!0,value:n})}function P(e){return e.hasOwnProperty($)||!function(){var t=e.props||{},n=r(t).reduce(function(e,n){return e[n]=new Ke(n,t[n]),e},{});A(e,$,n)}(),e[$]}function j(e){var t={};return r(P(e.constructor)).forEach(function(n){t[n]=e[n]}),t}function E(e,t){U(e,t),e[ne]&&e[ne]()}function C(e,t){return"function"==typeof t.default?t.default(e,{name:t.name}):t.default}function V(e,t){return"function"==typeof t.initial?t.initial(e,{name:t.name}):t.initial}function x(e,t){var n=Me(e,"props");return n[t]||(n[t]={})}function S(e){var t=e.name,n={configurable:!0,enumerable:!0};return n.beforeDefineProperty=function(n){var r=x(n,t),i=e.attrName;i&&(Me(n,"attributeLinks")[i]=t);var o=n[t],u=!1;if(I(o)&&(i&&n.hasAttribute(i)?(u=!0,o=e.deserialize(n.getAttribute(i))):o="initial"in e?V(n,e):C(n,e)),o=e.coerce(o),r.internalValue=o,!u&&i&&!I(o)){var a=e.serialize(o);k(n).setAttrValue(e.attrName,a)}},n.get=function(){var n=x(this,t),r=n.internalValue;return e.get?e.get(this,{name:t,internalValue:r}):r},n.set=function(n){var r=x(this,t),i=I(n);if(i&&(n=C(this,e)),n=e.coerce(n),e.set){var o=r.oldValue;I(o)&&(o=null);var u={name:t,newValue:n,oldValue:o};e.set(this,u)}if(this[ie](this),r.internalValue=r.oldValue=n,e.attrName&&!r.settingProp){var a=i?null:e.serialize(n);k(this).setAttrValue(e.attrName,a)}},n}function z(e,t,n,r){return t===e[Qe]&&n===e[Xe]&&r===e[Ye]}function N(e){var t=P(e);return r(t).reduce(function(e,n){return e[n]=S(t[n]),e},{})}function D(e){var t=N(e);return function(e){r(t).forEach(function(n){var r=t[n];r.beforeDefineProperty(e);var i=n in e,o=i&&e[n];Object.defineProperty(e,n,r),i&&(e[n]=o)})}}function M(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return(e||"x")+"-"+t}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return tt?(r=new tt(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function L(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}n="default"in n?n.default:n;var U=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach(function(t){return r(t).forEach(function(n){return e[n]=t[n]})}),e},I=function(e){return"undefined"==typeof e||null===e},q=function(e){return I(e)?null:String(e)},G=i({coerce:function(e){return Array.isArray(e)?e:I(e)?null:[e]},default:function(){return[]},deserialize:function(e){return I(e)?null:JSON.parse(e)},serialize:JSON.stringify}),R=i({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":null}}),B=function(e){return I(e)?0:Number(e)},H=i({default:0,coerce:B,deserialize:B,serialize:q}),J=i({default:"",coerce:q,deserialize:q,serialize:q}),K=Object.freeze({create:i,array:G,boolean:R,number:H,string:J}),F="____skate_connected",W="____skate_created",Z="____skate_name",Q="____skate_ctor_createInitProps",X="____skate_ctor_observedAttributes",Y="____skate_ctor_props",$="____skate_ctor_propsMap",ee="____skate_props",te="____skate_ref",ne="____skate_renderer",re="____skate_rendering",ie="____skate_rendererDebounced",oe="____skate_updated",ue=Object.freeze({name:Z}),ae=function(e,t){return function(n){return function(){var r=o(e,t),i=n.apply(void 0,arguments);return u(e,r),i}}},ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,i){var a={key:e,arg:t,resolve:n,reject:i,next:null};u?u=u.next=a:(o=u=a,r(e,t))})}function r(n,o){try{var u=t[n](o),a=u.value;a instanceof e?Promise.resolve(a.value).then(function(e){r("next",e)},function(e){r("throw",e)}):i(u.done?"return":"normal",u.value)}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":o.resolve({value:t,done:!0});break;case"throw":o.reject(t);break;default:o.resolve({value:t,done:!1})}o=o.next,o?r(o.key,o.arg):u=null}var o,u;this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),se=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),fe=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},de=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var u=i.get;if(void 0!==u)return u.call(r)},pe=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},he=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ve=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},ye=n.customElements,be=n.HTMLElement,_e=t.attributes[t.symbols.default],me=[],ge="__skip",ke="__events",Oe="__props",we=void 0,Ae=void 0,Pe=0,je=function(){},Ee=ae(t.attributes,fe({key:je,statics:je,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,ref:function(e,t,n){e[te]=n},skip:function(e,t,n){n?e[ge]=!0:delete e[ge]}},t.symbols.default,function(e,n,r){var i=ye.get(e.localName)||{props:{},prototype:{}},o=i.props,u=i.prototype;if((n in o||n in e||n in u)&&!("ownerSVGElement"in e))return void t.applyProp(e,n,r);if(r===!1)return void _e(e,n);if(0===n.indexOf("on")){var c=n[2],l=void 0;if("-"===c?l=n.substring(3):c===c.toUpperCase()&&(l=c.toLowerCase()+n.substring(3)),l)return void a(e,l,r)}_e(e,n,r)})),Ce=Ee(t.elementOpen),Ve=f(l,p),xe=f(s),Se=f(Ce,p),ze=f(t.elementClose,h),Ne=f(t.text),De=Object.freeze({element:y,builder:b,attr:d,elementClose:ze,elementOpen:Se,elementOpenEnd:xe,elementOpenStart:Ve,elementVoid:v,text:Ne}),Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n},Te=["native code","[object MutationObserverConstructor]"],Le=function(e){return Te.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})},Ue=n.MutationObserver,Ie=Le(Ue)?m:g,qe=function(e){return"function"==typeof e},Ge=function(e){return"undefined"==typeof e},Re=function(){function e(t){le(this,e),this.elem=t,this.connected=!1,this.pendingValues={},this.lastSetValues={}}return se(e,[{key:"suspendAttributesUpdates",value:function(){this.connected=!1}},{key:"resumeAttributesUpdates",value:function(){var e=this;this.connected=!0;var t=Object.keys(this.pendingValues);t.forEach(function(t){var n=e.pendingValues[t];Ge(n)||(delete e.pendingValues[t],e._syncAttrValue(t,n))})}},{key:"onAttributeChanged",value:function(e,t){t=q(t),this._clearPendingValue(e);var n=this.lastSetValues[e]!==t;return this.lastSetValues[e]=t,n}},{key:"setAttrValue",value:function(e,t){t=q(t),this.lastSetValues[e]=t,this.connected?(this._clearPendingValue(e),this._syncAttrValue(e,t)):this.pendingValues[e]=t}},{key:"_syncAttrValue",value:function(e,t){var n=q(this.elem.getAttribute(e));t!==n&&(null===t?this.elem.removeAttribute(e):this.elem.setAttribute(e,t))}},{key:"_clearPendingValue",value:function(e){e in this.pendingValues&&delete this.pendingValues[e]}}]),e}(),Be="____skate_attributesMgr",He=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})},Je=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})},Ke=function(){function e(t,n){var r=this;le(this,e),this._name=t,n=n||{},this.attrName=null,this.coerce=function(e){return e},this.default=null,this.deserialize=function(e){return e},this.get=null,this.serialize=function(e){return I(e)?null:String(e)},this.set=null,Object.keys(n).forEach(function(e){var i=n[e];switch(e){case"attribute":r.attrName=w(i,t);break;case"coerce":case"deserialize":case"get":case"serialize":case"set":qe(i)?r[e]=i:O(e+" must be a function.");break;case"default":case"initial":r[e]=i;break;default:O(e+" is not a valid option. Options are: attribute, initial, default, coerce, deserialize, serialize.")}})}return se(e,[{key:"name",get:function(){return this._name}}]),e}(),Fe=function(e,t){return"undefined"==typeof t?j(e):E(e,t)},We=function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t},Ze=n.HTMLElement||function(){function e(){le(this,e)}return e}(),Qe=_("prevName"),Xe=_("prevOldValue"),Ye=_("prevNewValue"),$e=function(e){function n(){var e;le(this,n);for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];var u=he(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),a=u.constructor;u[W]=!0,a.hasOwnProperty(Q)||A(a,Q,D(a)),u[ie]=Ie(u[ne].bind(u));var c=r(P(a)).length;c&&a[Q]&&a[Q](u),!u.renderCallback&&a.render&&(u.renderCallback=a.render.bind(a,u));var l=a.created;qe(l)&&l(u);var s=Me(u),f=s.readyCallbacks;return f&&(f.forEach(function(e){return e(u)}),delete s.readyCallbacks),u}return pe(n,e),se(n,null,[{key:"observedAttributes",get:function(){var e=this.hasOwnProperty(X)?this[X]:[],t=P(this),r=Object.keys(t).map(function(e){return t[e].attrName}).filter(Boolean),i=r.concat(e).concat(de(n.__proto__||Object.getPrototypeOf(n),"observedAttributes",this));return i.filter(function(e,t){return i.indexOf(e)===t})},set:function(e){e=Array.isArray(e)?e:[],A(this,"observedAttributes",e)}},{key:"props",get:function(){return U({},de(n.__proto__||Object.getPrototypeOf(n),"props",this),this[Y])},set:function(e){A(this,Y,e)}}]),se(n,[{key:"connectedCallback",value:function(){k(this).resumeAttributesUpdates(),this[F]=!0,this[ie]();var e=this.constructor.attached;qe(e)&&e(this),this.setAttribute("defined","")}},{key:"disconnectedCallback",value:function(){k(this).suspendAttributesUpdates(),this[F]=!1;var e=this.constructor.detached;qe(e)&&e(this)}},{key:"attributeChangedCallback",value:function(e,t,n){if(!z(this,e,t,n)){this[Qe]=e,this[Xe]=t,this[Ye]=n;var r=Me(this,"attributeLinks")[e];if(r){var i=k(this).onAttributeChanged(e,n);if(i){var o=P(this.constructor)[r],u=null!==n&&o.deserialize?o.deserialize(n):n,a=Me(this,"props")[r];a.settingProp=!0,this[r]=u,a.settingProp=!1}}var c=this.constructor.attributeChanged;qe(c)&&c(this,{name:e,newValue:n,oldValue:t})}}},{key:"updatedCallback",value:function(e){return this.constructor.updated(this,e)}},{key:"renderedCallback",value:function(){return this.constructor.rendered(this)}},{key:"rendererCallback",value:function(){return this.constructor.renderer(this)}},{key:ne,value:function(){!this[re]&&this[F]&&(this[re]=!0,this[oe]()&&qe(this.renderCallback)&&(this.rendererCallback(),this.renderedCallback()),this[re]=!1)}},{key:oe,value:function(){var e=this[ee];return this[ee]=Fe(this),this.updatedCallback(e)}}],[{key:"extend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return le(this,t),he(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return pe(t,e),t}(t),r=He(e),i=He(e.prototype);return delete r.prototype,Object.defineProperties(n,r),Object.defineProperties(n.prototype,i),n}},{key:"rendered",value:function(){}},{key:"renderer",value:function(e){e.shadowRoot||e.attachShadow({mode:"open"}),t.patchInner(e.shadowRoot,function(){var t=e.renderCallback(e);qe(t)?t():Array.isArray(t)&&t.forEach(function(e){qe(e)&&e()})})}},{key:"updated",value:function(e,t){if(!t)return!0;for(var n=r(t),i=0;i<n.length;i++){var o=n[i];if(!We(t[o],e[o]))return!0}return!1}}]),n}(Ze),et=function(){for(var e=n.customElements,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=r[0],u=r[1];if(!e)throw new Error("Skate requires native custom element support or a polyfill.");if(1===r.length){if("string"==typeof o)throw new Error("When passing only one argument to define(), it must be a custom element constructor.");u=o,o=M()}return e.get(o)&&(o=M(o)),"object"===("undefined"==typeof u?"undefined":ce(u))&&(u=$e.extend(u)),u[Z]=o,e.define(o,u),u},tt=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(n.Event),nt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(T(t,n))},rt=function(e,t){return function(n){var r=L(n.target),i=t||n.target.name||"value";if(i.indexOf(".")>-1){var o=i.split("."),u=o[0],a=o.pop(),c=o.reduce(function(e,t){return e&&e[t]},e);c[a||n.target.name]=r,Fe(e,fe({},u,e[u]))}else Fe(e,fe({},i,r))}},it=function(e,t){var n=Me(e);e[W]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]},ot=b();e.Component=$e,e.define=et,e.emit=nt,e.h=ot,e.link=rt,e.prop=K,e.props=Fe,e.ready=it,e.symbols=ue,e.vdom=De,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -46,3 +46,3 @@ { | ||
}, | ||
"version": "4.2.2" | ||
"version": "4.3.0" | ||
} |
@@ -346,3 +346,3 @@ import { patchInner } from 'incremental-dom'; | ||
patchInner(elem.shadowRoot, () => { | ||
const possibleFn = elem.renderCallback(); | ||
const possibleFn = elem.renderCallback(elem); | ||
if (isFunction(possibleFn)) { | ||
@@ -349,0 +349,0 @@ possibleFn(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
822528