Comparing version 1.3.0 to 1.3.1
@@ -1,6 +0,16 @@ | ||
<a name="1.3.0"></a> | ||
# 1.3.0 (2016-09-13) | ||
<a name="1.3.1"></a> | ||
## 1.3.1 (2016-09-17) | ||
<a name="ak-button@1.3.1"></a> | ||
## ak-button@1.3.1 (2016-09-17) | ||
### Bug Fixes | ||
* Do not use shadowRoot symbol ([45a8d3c](https://bitbucket.org/atlassian/atlaskit/commits/45a8d3c)) | ||
<a name="ak-button@1.3.0"></a> | ||
@@ -7,0 +17,0 @@ # ak-button@1.3.0 (2016-09-13) |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.akButton=t():e.akButton=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.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}}Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE=t.APPEARANCE=void 0;var o=n(2),i=r(o),u=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},c=function E(e){var t=typeof e;"number"===t||"string"===t||"object"===t&&e instanceof String?l.vdom.text(e):"function"===t&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(E):"object"===t&&"[object Object]"===String(e)&&a(e,E)};n(21);var l=n(25),f=n(27),s=r(f),p=n(28),d=r(p),v=n(29),b=s["default"].locals,y=function(e){return e.reduce(function(e,t){return e[t.toUpperCase()]=t,e},{})},h=function(e){var t;return t={},(0,i["default"])(t,b.button,!0),(0,i["default"])(t,b.compact,e.compact),(0,i["default"])(t,b.disabled,e.disabled),(0,i["default"])(t,b.selected,e.selected&&!e.disabled),(0,i["default"])(t,b.primary,"primary"===e.appearance&&!e.disabled&&!e.selected),(0,i["default"])(t,b.subtle,"subtle"===e.appearance&&!e.disabled&&!e.selected),(0,i["default"])(t,b.link,"link"===e.appearance&&!e.selected),t},m=function(e){return e||"default"},g=function(e){return l.vdom.elementOpen("span",null,null,"className",b[m(e)+"SlotWrapper"]),l.vdom.elementVoid("slot",null,null,"name",e,"className",b[m(e)+"Slot"]),l.vdom.elementClose("span")},_=function(){return l.vdom.elementOpen("span",null,null,"className",b.buttonContent),c(g("before")),c(g()),c(g("after")),l.vdom.elementClose("span")},k=["primary","standard","subtle","link"],w=["button","submit"],C=t.APPEARANCE=y(k),x=(t.TYPE=y(w),{attribute:"appearance",values:k,invalidDefault:C.STANDARD}),O={attribute:"type",values:w,missingDefault:"button",invalidDefault:"button"},A={props:{appearance:(0,v.enumeration)(x)({attribute:!0}),type:(0,v.enumeration)(O)({attribute:!0}),disabled:l.prop["boolean"]({attribute:!0}),compact:l.prop["boolean"]({attribute:!0}),selected:l.prop["boolean"]({attribute:!0})},render:function(e){return l.vdom.elementOpen("span",null,null,"className",b.root),l.vdom.elementOpen("style"),c(s["default"].toString()),l.vdom.elementClose("style"),l.vdom.elementOpen("button",null,null,"className",(0,d["default"])(h(e)),"type",e.type,"disabled",e.disabled,"onmousedown",function(e){return e.preventDefault()}),c(_()),l.vdom.elementClose("button"),l.vdom.elementClose("span")}},j=(0,l.define)("ak-button",A);t["default"]=j},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(3),i=r(o);t["default"]=function(e,t,n){return t in e?(0,i["default"])(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports={"default":n(4),__esModule:!0}},function(e,t,n){n(5);var r=n(8).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(6);r(r.S+r.F*!n(16),"Object",{defineProperty:n(12).f})},function(e,t,n){var r=n(7),o=n(8),i=n(9),u=n(11),a="prototype",c=function(e,t,n){var l,f,s,p=e&c.F,d=e&c.G,v=e&c.S,b=e&c.P,y=e&c.B,h=e&c.W,m=d?o:o[t]||(o[t]={}),g=m[a],_=d?r:v?r[t]:(r[t]||{})[a];d&&(n=t);for(l in n)f=!p&&_&&void 0!==_[l],f&&l in m||(s=f?_[l]:n[l],m[l]=d&&"function"!=typeof _[l]?n[l]:y&&f?i(s,r):h&&_[l]==s?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[a]=e[a],t}(s):b&&"function"==typeof s?i(Function.call,s):s,b&&((m.virtual||(m.virtual={}))[l]=s,e&c.R&&g&&!g[l]&&u(g,l,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(10);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(12),o=n(20);e.exports=n(16)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(13),o=n(15),i=n(19),u=Object.defineProperty;t.f=n(16)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(14);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(16)&&!n(17)(function(){return 7!=Object.defineProperty(n(18)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(14),o=n(7).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(14);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(22);"string"==typeof r&&(r=[[e.id,r,""]]),n(24)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(23)(),t.push([e.id,"._31L_2bvCZypgC4vUIMA3v2,ak-button{display:-webkit-inline-box;display:inline-flex}._31L_2bvCZypgC4vUIMA3v2[disabled],ak-button[disabled]{pointer-events:none}",""]),t.locals={"ak-button":"_31L_2bvCZypgC4vUIMA3v2",akButton:"_31L_2bvCZypgC4vUIMA3v2"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var u=t[o];"number"==typeof u[0]&&r[u[0]]||(n&&!u[2]?u[2]=n:n&&(u[2]="("+u[2]+") and ("+n+")"),e.push(u))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],t))}else{for(var u=[],i=0;i<r.parts.length;i++)u.push(l(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:u}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],u=o[1],a=o[2],c=o[3],l={css:u,media:a,sourceMap:c};n[i]?n[i].parts.push(l):t.push(n[i]={id:i,parts:[l]})}return t}function i(e,t){var n=y(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function u(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function c(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=a(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),r=p.bind(null,n),o=function(){u(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=s.bind(null,n),o=function(){u(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function f(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),u=e.childNodes;u[t]&&e.removeChild(u[t]),u.length?e.insertBefore(i,u[t]):e.appendChild(i)}}function s(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},v=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},b=v(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=v(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,m=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],u=0;u<n.length;u++){var a=n[u],c=d[a.id];c.refs--,i.push(c)}if(e){var l=o(e);r(l,t)}for(var u=0;u<i.length;u++){var c=i[u];if(0===c.refs){for(var f=0;f<c.parts.length;f++)c.parts[f]();delete d[c.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){!function(e,r){r(t,n(26))}(this,function(e,t){function n(e){return"undefined"==typeof e||null===e}function r(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),Y.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 i(e,t){Y(e,t)}function u(e,t){return function(n){return function(){var r=o(e,t),u=n.apply(void 0,arguments);return i(e,r),u}}}function a(e,t,n){var r=e[Me];r||(r=e[Me]={});var o=r[t];o&&e.removeEventListener(t,o),n&&e.addEventListener(t,r[t]=n)}function c(e){return"function"==typeof e?e[oe]||e:"slot"===e&&Ae?"content":e}function l(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2];Se=[e,t,n]}function f(){var e=Ue.apply(void 0,xe(Se));return Se=null,e}function s(e){var n=arguments.length<=1||void 0===arguments[1]?Te:arguments[1];return function r(){for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];if(i[0]=c(i[0]),Le=null,"function"==typeof i[0])return Le=i[0],n.apply(void 0,i);if(je.length)je[je.length-1].push([r,i]);else{if(e===qe){if(De)return++De;var a=e.apply(void 0,i);return a[Ee]&&++De,a}if(e===t.elementClose){if(1===De&&t.skip(),De&&--De)return;var s=e.apply(void 0,i),p=s[ue];return delete s[ue],"function"==typeof p&&p(s),s}if(!De||e===l||e===f)return e.apply(void 0,i)}}}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Le?Le[Pe][t[0]]=t[1]:je.length?je[je.length-1].push([p,t]):(Se.push(t[0]),Se.push(t[1]))}function d(e,t,n){for(var r={key:t,statics:n},o=arguments.length,i=Array(o>3?o-3:0),u=3;u<o;u++)i[u-3]=arguments[u];for(var a=0;a<i.length;a+=2)r[i[a]]=i[a+1];e[Pe]=r,je.push([])}function v(e){var t=je.pop(),n=e[Pe];return delete e[Pe],e(n,function(){return t.forEach(function(e){return e[0].apply(e,xe(e[1]))})})}function b(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ue.apply(void 0,[e].concat(n)),ze(e)}function y(e,t,n){var r="undefined"==typeof t?"undefined":ge(t);"function"!==r&&"string"!==r&&"number"!==r||(n=t),"object"!==r&&(t={}),Ne(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return p(e,t[e])}),Re(e);var o="undefined"==typeof n?"undefined":ge(n);return"function"===o?n():"string"!==o&&"number"!==o||Fe(n),ze(e)}function h(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 m(e){var t=this,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n||(n=!0,setTimeout(function(){n=!1,e.apply(t,o)}))}}function g(e){return Object.getOwnPropertyNames(e||{}).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})}function _(e){var t=h(e),n=t.readyCallbacks,r=e.constructor,o=r.created,i=r.observedAttributes,u=r.props;e[re]||(e[re]=!0,e[le]=m(r[ae]),u&&r[ie](e),o&&o(e),e.setAttribute("defined",""),n&&(n.forEach(function(t){return t(e)}),delete t.readyCallbacks),be&&i.forEach(function(t){var n=h(e,"attributeLinks")[t];n||e.attributeChangedCallback(t,null,e.getAttribute(t))}))}function k(e){var t=e.constructor,n=t.attached,r=t[ae];e[ne]=!0,"function"==typeof r&&r(e),"function"==typeof n&&n(e)}function w(e){var t=e.constructor.detached;e[ne]=!1,"function"==typeof t&&t(e)}function C(e){var t=HTMLElement.call(this,e);return _(t),t}function x(e){var t={};return Object.keys(e.constructor.props).forEach(function(n){t[n]=e[n]}),t}function O(e,t){Y(e,t),e.constructor.render&&e.constructor[ae](e)}function A(e,t){return"undefined"==typeof t?x(e):O(e,t)}function j(e){var n=e.render,r=e.rendered,o=e.updated;return function(e){if(!e[ce]&&e[ne]){e[ce]=!0;var i=!0;if(o){var u=e[ie];e[ie]=A(e),i=o(e,u)}if(!n)return void(e[ce]=!1);var a=e[fe];a||(a=me?e.attachShadow({mode:"open"}):he?e.createShadowRoot():e,e[fe]=a),i&&(t.patchInner(a,n,e),r&&r(e)),e[ce]=!1}}}function E(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})}function M(e,t,n){return"function"==typeof n["default"]?n["default"](e,{name:t}):n["default"]}function P(e,t,n){return"function"==typeof n.initial?n.initial(e,{name:t}):n.initial}function L(e,t){var r={configurable:!0,enumerable:!0};return r.created=function(o){var i=h(o,"api/property/"+e),u=t.attribute,a=o[e],c=!1;h(o,"attributeLinks")[u]=e,h(o,"propertyLinks")[e]=u,n(a)&&(u&&o.hasAttribute(u)?a=t.deserialize(o.getAttribute(u)):"initial"in t?(a=P(o,e,t),c=!0):"default"in t&&(a=M(o,e,t))),c?r.set.call(o,a):i.internalValue=t.coerce?t.coerce(a):a},r.get=function(){var n=h(this,"api/property/"+e),r=n.internalValue;return"function"==typeof t.get?t.get(this,{name:e,internalValue:r}):r},r.set=function(r){var o=h(this,"api/property/"+e),i=o.oldValue,u=!1;n(i)&&(i=null),n(r)&&(r=M(this,e,t),u=!0),"function"==typeof t.coerce&&(r=t.coerce(r)),o.internalValue=r;var a={name:e,newValue:r,oldValue:i};"function"==typeof t.set&&t.set(this,a),this[ce]||this[le](this),o.oldValue=r;var c=h(this,"propertyLinks")[e];if(c&&!o.settingAttribute){var l=t.serialize(r),f=this.getAttribute(c),s=n(l),p=!(s&&n(f)||l===f);o.syncingAttribute=!0,u||s?this.removeAttribute(c):this.setAttribute(c,l),!p&&o.syncingAttribute&&(o.syncingAttribute=!1)}o.settingAttribute=!1},r}function S(e){return e=e||{},"function"==typeof e&&(e={coerce:e}),function(t){return L(t,Y({"default":null,deserialize:function(e){return e},serialize:function(e){return e}},e))}}function D(e){var t=e.props,n=Object.keys(t||{});return n.reduce(function(e,n){return e[n]=t[n],"function"!=typeof e[n]&&(e[n]=S(e[n])),e},{})}function T(e){var t=D(e);return Object.keys(t).reduce(function(e,n){return e[n]=t[n](n),e},{})}function B(e){var t=e.observedAttributes,n=e.props;n&&(Object.keys(n).forEach(function(e){var r=n[e],o=r.attribute;if(o){var i=r.attribute=o===!0?E(e):o;t.indexOf(i)===-1&&t.push(i)}}),Object.defineProperty(e,"observedAttributes",{configurable:!0,enumerable:!0,get:function(){return t}}))}function q(e){var t=T(e);return function(e){t&&Object.keys(t).forEach(function(n){var r=t[n];r.created(e),Object.defineProperty(e,n,r)})}}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+"-"+t}function R(e,t){t[oe]=e,t[ie]=q(t),t[ae]=j(t)}function U(e,t){var n=void 0,r=void 0;try{R(e,t),n=document.registerElement(e,t)}catch(o){r=N(e),R(r,t),n=document.registerElement(r,t)}return n}function z(e,t){var n=e;return window.customElements.get(e)&&(n=N(e)),R(n,t),window.customElements.define(n,t,{"extends":t["extends"]}),t}function F(e,t){if(void 0===t)throw new Error("You have to define options to register a component "+e);var n="object"===("undefined"==typeof t?"undefined":ge(t))?C.extend(t):t;if(B(n),ye)return z(e,n);if(be)return U(e,n);throw new Error("Skate requires native custom element support or a polyfill.")}function V(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.detail;delete t.detail;var r=void 0;return Xe?(r=new Xe(e,t),"undefined"!=typeof n&&Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function X(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(V(t,n))}function Q(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}function Z(e,t){return function(n){var r=Q(n.target),o=t||n.target.name||"value";if(o.indexOf(".")>-1){var i=o.split("."),u=i[0],a=i.pop(),c=i.reduce(function(e,t){return e&&e[t]},e);c[a||n.target.name]=r,A(e,ke({},u,e[u]))}else A(e,ke({},o,r))}}function I(e,t){var n=h(e);e[re]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]}var W=Object.assign,Y=W?W.bind(Object):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 Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e},G=function(e){return isNaN(e)?void 0:Number(e)},K=function(e){return n(e)?void 0:String(e)},H=r({coerce:function(e){return Array.isArray(e)?e:[e]},"default":function(){return[]},deserialize:JSON.parse,serialize:JSON.stringify}),J=r({coerce:function(e){return!!e},"default":!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":void 0}}),$=r({"default":0,coerce:G,deserialize:G,serialize:G}),ee=r({"default":"",coerce:K,deserialize:K,serialize:K}),te=Object.freeze({create:r,array:H,"boolean":J,number:$,string:ee}),ne="____skate_connected",re="____skate_created",oe="____skate_name",ie="____skate_props",ue="____skate_ref",ae="____skate_renderer",ce="____skate_rendering",le="____skate_rendererDebounced",fe="____skate_shadowRoot",se=Object.freeze({name:oe,shadowRoot:fe}),pe=document,de=window,ve=pe.createElement("div"),be=!!pe.registerElement,ye=!!de.customElements,he=!!ve.createShadowRoot,me=!!ve.attachShadow,ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},_e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ke=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},we=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)},Ce=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},xe=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)},Oe=t.attributes[t.symbols["default"]],Ae=!me&&he,je=[],Ee="__skip",Me="__events",Pe="__props",Le=void 0,Se=void 0,De=0,Te=function(){},Be=u(t.attributes,ke({key:Te,statics:Te,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,name:function(e,t,n){"CONTENT"===e.tagName&&(t="select",n='[slot="'+n+'"]'),Oe(e,t,n)},ref:function(e,t,n){e[ue]=n},skip:function(e,t,n){n?e[Ee]=!0:delete e[Ee]}},t.symbols["default"],function(e,n,r){var o=e.constructor.props;if(o&&n in o)return t.applyProp(e,n,r);if(r!==!1){if(0===n.indexOf("on")){var i=n[2],u=void 0;if("-"===i?u=n.substring(3):i===i.toUpperCase()&&(u=i.toLowerCase()+n.substring(3)),u)return void a(e,u,r)}return n in e&&!("ownerSVGElement"in e)?void t.applyProp(e,n,r):void Oe(e,n,r)}})),qe=Be(t.elementOpen),Ne=s(l,d),Re=s(f),Ue=s(qe,d),ze=s(t.elementClose,v),Fe=s(t.text),Ve=Object.freeze({element:y,attr:p,elementClose:ze,elementOpen:Ue,elementOpenEnd:Re,elementOpenStart:Ne,elementVoid:b,text:Fe});Object.defineProperties(C,{observedAttributes:{configurable:!0,get:function(){return[]}},props:{configurable:!0,get:function(){return{}}}}),C.extend=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments.length<=1||void 0===arguments[1]?this:arguments[1],n=function(e){function t(){return _e(this,t),Ce(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return we(t,e),t}(t);if(!n.observedAttributes){var r=g(t);delete r.length,delete r.prototype,Object.defineProperties(n,r)}var o=g(e),i=g(e.prototype);return delete o.prototype,Object.defineProperties(n,o),Object.defineProperties(n.prototype,i),n},C.updated=function(e,t){if(!t)return!0;for(var n in t)if(t[n]!==e[n])return!0},C.prototype=Object.create(HTMLElement.prototype,{connectedCallback:{configurable:!0,value:function(){k(this)}},disconnectedCallback:{configurable:!0,value:function(){w(this)}},attributeChangedCallback:{configurable:!0,value:function(e,t,n){var r=this.constructor,o=r.attributeChanged,i=r.observedAttributes,u=h(this,"attributeLinks")[e];if(!be||i.indexOf(e)!==-1){if(u){var a=h(this,"api/property/"+u);if(a.syncingAttribute)a.syncingAttribute=!1;else{var c=this.constructor.props[u];a.settingAttribute=!0,this[u]=null!==n&&c.deserialize?c.deserialize(n):n}}o&&o(this,{name:e,newValue:n,oldValue:t})}}},createdCallback:{configurable:!0,value:function(){_(this)}},attachedCallback:{configurable:!0,value:function(){k(this)}},detachedCallback:{configurable:!0,value:function(){w(this)}}});var Xe=function(e){if(e)try{new e("emit-init")}catch(t){return}return e}(window.Event);e.Component=C,e.define=F,e.emit=X,e.link=Z,e.prop=te,e.props=A,e.ready=I,e.symbols=se,e.vdom=Ve,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){/** | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.akButton=t():e.akButton=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.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}}Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE=t.APPEARANCE=void 0;var o=n(2),i=r(o),u=Object.prototype.hasOwnProperty,a=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},c=function E(e){var t=typeof e;"number"===t||"string"===t||"object"===t&&e instanceof String?l.vdom.text(e):"function"===t&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(E):"object"===t&&"[object Object]"===String(e)&&a(e,E)};n(21);var l=n(25),f=n(27),s=r(f),p=n(28),d=r(p),v=n(29),b=s["default"].locals,y=function(e){return e.reduce(function(e,t){return e[t.toUpperCase()]=t,e},{})},h=function(e){var t;return t={},(0,i["default"])(t,b.button,!0),(0,i["default"])(t,b.compact,e.compact),(0,i["default"])(t,b.disabled,e.disabled),(0,i["default"])(t,b.selected,e.selected&&!e.disabled),(0,i["default"])(t,b.primary,"primary"===e.appearance&&!e.disabled&&!e.selected),(0,i["default"])(t,b.subtle,"subtle"===e.appearance&&!e.disabled&&!e.selected),(0,i["default"])(t,b.link,"link"===e.appearance&&!e.selected),t},m=function(e){return e||"default"},g=function(e){return l.vdom.elementOpen("span",null,null,"className",b[m(e)+"SlotWrapper"]),l.vdom.elementVoid("slot",null,null,"name",e,"className",b[m(e)+"Slot"]),l.vdom.elementClose("span")},_=function(){return l.vdom.elementOpen("span",null,null,"className",b.buttonContent),c(g("before")),c(g()),c(g("after")),l.vdom.elementClose("span")},k=["primary","standard","subtle","link"],w=["button","submit"],C=t.APPEARANCE=y(k),x=(t.TYPE=y(w),{attribute:"appearance",values:k,invalidDefault:C.STANDARD}),O={attribute:"type",values:w,missingDefault:"button",invalidDefault:"button"},A={props:{appearance:(0,v.enumeration)(x)({attribute:!0}),type:(0,v.enumeration)(O)({attribute:!0}),disabled:l.prop["boolean"]({attribute:!0}),compact:l.prop["boolean"]({attribute:!0}),selected:l.prop["boolean"]({attribute:!0})},render:function(e){return l.vdom.elementOpen("span",null,null,"className",b.root),l.vdom.elementOpen("style"),c(s["default"].toString()),l.vdom.elementClose("style"),l.vdom.elementOpen("button",null,null,"className",(0,d["default"])(h(e)),"type",e.type,"disabled",e.disabled,"onmousedown",function(e){return e.preventDefault()}),c(_()),l.vdom.elementClose("button"),l.vdom.elementClose("span")}},j=(0,l.define)("ak-button",A);t["default"]=j},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(3),i=r(o);t["default"]=function(e,t,n){return t in e?(0,i["default"])(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports={"default":n(4),__esModule:!0}},function(e,t,n){n(5);var r=n(8).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(6);r(r.S+r.F*!n(16),"Object",{defineProperty:n(12).f})},function(e,t,n){var r=n(7),o=n(8),i=n(9),u=n(11),a="prototype",c=function(e,t,n){var l,f,s,p=e&c.F,d=e&c.G,v=e&c.S,b=e&c.P,y=e&c.B,h=e&c.W,m=d?o:o[t]||(o[t]={}),g=m[a],_=d?r:v?r[t]:(r[t]||{})[a];d&&(n=t);for(l in n)f=!p&&_&&void 0!==_[l],f&&l in m||(s=f?_[l]:n[l],m[l]=d&&"function"!=typeof _[l]?n[l]:y&&f?i(s,r):h&&_[l]==s?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[a]=e[a],t}(s):b&&"function"==typeof s?i(Function.call,s):s,b&&((m.virtual||(m.virtual={}))[l]=s,e&c.R&&g&&!g[l]&&u(g,l,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(10);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(12),o=n(20);e.exports=n(16)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(13),o=n(15),i=n(19),u=Object.defineProperty;t.f=n(16)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(14);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(16)&&!n(17)(function(){return 7!=Object.defineProperty(n(18)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(14),o=n(7).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(14);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(22);"string"==typeof r&&(r=[[e.id,r,""]]),n(24)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(23)(),t.push([e.id,"._31L_2bvCZypgC4vUIMA3v2,ak-button{display:-webkit-inline-box;display:inline-flex}._31L_2bvCZypgC4vUIMA3v2[disabled],ak-button[disabled]{pointer-events:none}",""]),t.locals={"ak-button":"_31L_2bvCZypgC4vUIMA3v2",akButton:"_31L_2bvCZypgC4vUIMA3v2"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var u=t[o];"number"==typeof u[0]&&r[u[0]]||(n&&!u[2]?u[2]=n:n&&(u[2]="("+u[2]+") and ("+n+")"),e.push(u))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],t))}else{for(var u=[],i=0;i<r.parts.length;i++)u.push(l(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:u}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],u=o[1],a=o[2],c=o[3],l={css:u,media:a,sourceMap:c};n[i]?n[i].parts.push(l):t.push(n[i]={id:i,parts:[l]})}return t}function i(e,t){var n=y(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function u(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function c(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=a(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),r=p.bind(null,n),o=function(){u(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=s.bind(null,n),o=function(){u(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function f(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),u=e.childNodes;u[t]&&e.removeChild(u[t]),u.length?e.insertBefore(i,u[t]):e.appendChild(i)}}function s(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},v=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},b=v(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=v(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,m=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],u=0;u<n.length;u++){var a=n[u],c=d[a.id];c.refs--,i.push(c)}if(e){var l=o(e);r(l,t)}for(var u=0;u<i.length;u++){var c=i[u];if(0===c.refs){for(var f=0;f<c.parts.length;f++)c.parts[f]();delete d[c.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){!function(e,r){r(t,n(26))}(this,function(e,t){function n(e){return"undefined"==typeof e||null===e}function r(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),Y.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 i(e,t){Y(e,t)}function u(e,t){return function(n){return function(){var r=o(e,t),u=n.apply(void 0,arguments);return i(e,r),u}}}function a(e,t,n){var r=e[Me];r||(r=e[Me]={});var o=r[t];o&&e.removeEventListener(t,o),n&&e.addEventListener(t,r[t]=n)}function c(e){return"function"==typeof e?e[oe]||e:"slot"===e&&Ae?"content":e}function l(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2];Se=[e,t,n]}function f(){var e=Ue.apply(void 0,xe(Se));return Se=null,e}function s(e){var n=arguments.length<=1||void 0===arguments[1]?Te:arguments[1];return function r(){for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];if(i[0]=c(i[0]),Le=null,"function"==typeof i[0])return Le=i[0],n.apply(void 0,i);if(je.length)je[je.length-1].push([r,i]);else{if(e===qe){if(De)return++De;var a=e.apply(void 0,i);return a[Ee]&&++De,a}if(e===t.elementClose){if(1===De&&t.skip(),De&&--De)return;var s=e.apply(void 0,i),p=s[ue];return delete s[ue],"function"==typeof p&&p(s),s}if(!De||e===l||e===f)return e.apply(void 0,i)}}}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Le?Le[Pe][t[0]]=t[1]:je.length?je[je.length-1].push([p,t]):(Se.push(t[0]),Se.push(t[1]))}function d(e,t,n){for(var r={key:t,statics:n},o=arguments.length,i=Array(o>3?o-3:0),u=3;u<o;u++)i[u-3]=arguments[u];for(var a=0;a<i.length;a+=2)r[i[a]]=i[a+1];e[Pe]=r,je.push([])}function v(e){var t=je.pop(),n=e[Pe];return delete e[Pe],e(n,function(){return t.forEach(function(e){return e[0].apply(e,xe(e[1]))})})}function b(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ue.apply(void 0,[e].concat(n)),ze(e)}function y(e,t,n){var r="undefined"==typeof t?"undefined":ge(t);"function"!==r&&"string"!==r&&"number"!==r||(n=t),"object"!==r&&(t={}),Ne(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return p(e,t[e])}),Re(e);var o="undefined"==typeof n?"undefined":ge(n);return"function"===o?n():"string"!==o&&"number"!==o||Fe(n),ze(e)}function h(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 m(e){var t=this,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n||(n=!0,setTimeout(function(){n=!1,e.apply(t,o)}))}}function g(e){return Object.getOwnPropertyNames(e||{}).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})}function _(e){var t=h(e),n=t.readyCallbacks,r=e.constructor,o=r.created,i=r.observedAttributes,u=r.props;e[re]||(e[re]=!0,e[le]=m(r[ae]),u&&r[ie](e),o&&o(e),e.setAttribute("defined",""),n&&(n.forEach(function(t){return t(e)}),delete t.readyCallbacks),be&&i.forEach(function(t){var n=h(e,"attributeLinks")[t];n||e.attributeChangedCallback(t,null,e.getAttribute(t))}))}function k(e){var t=e.constructor,n=t.attached,r=t[ae];e[ne]=!0,"function"==typeof r&&r(e),"function"==typeof n&&n(e)}function w(e){var t=e.constructor.detached;e[ne]=!1,"function"==typeof t&&t(e)}function C(e){var t=HTMLElement.call(this,e);return _(t),t}function x(e){var t={};return Object.keys(e.constructor.props).forEach(function(n){t[n]=e[n]}),t}function O(e,t){Y(e,t),e.constructor.render&&e.constructor[ae](e)}function A(e,t){return"undefined"==typeof t?x(e):O(e,t)}function j(e){var n=e.render,r=e.rendered,o=e.updated;return function(e){if(!e[ce]&&e[ne]){e[ce]=!0;var i=!0;if(o){var u=e[ie];e[ie]=A(e),i=o(e,u)}if(!n)return void(e[ce]=!1);var a=e[fe];a||(a=me?e.attachShadow({mode:"open"}):he?e.createShadowRoot():e,e[fe]=a),i&&(t.patchInner(a,n,e),r&&r(e)),e[ce]=!1}}}function E(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})}function M(e,t,n){return"function"==typeof n["default"]?n["default"](e,{name:t}):n["default"]}function P(e,t,n){return"function"==typeof n.initial?n.initial(e,{name:t}):n.initial}function L(e,t){var r={configurable:!0,enumerable:!0};return r.created=function(o){var i=h(o,"api/property/"+e),u=t.attribute===!0?E(e):t.attribute,a=o[e],c=!1;h(o,"attributeLinks")[u]=e,h(o,"propertyLinks")[e]=u,n(a)&&(u&&o.hasAttribute(u)?a=t.deserialize(o.getAttribute(u)):"initial"in t?(a=P(o,e,t),c=!0):"default"in t&&(a=M(o,e,t))),c?r.set.call(o,a):i.internalValue=t.coerce?t.coerce(a):a},r.get=function(){var n=h(this,"api/property/"+e),r=n.internalValue;return"function"==typeof t.get?t.get(this,{name:e,internalValue:r}):r},r.set=function(r){var o=h(this,"api/property/"+e),i=o.oldValue,u=!1;n(i)&&(i=null),n(r)&&(r=M(this,e,t),u=!0),"function"==typeof t.coerce&&(r=t.coerce(r)),o.internalValue=r;var a={name:e,newValue:r,oldValue:i};"function"==typeof t.set&&t.set(this,a),this[ce]||this[le](this),o.oldValue=r;var c=h(this,"propertyLinks")[e];if(c&&!o.settingAttribute){var l=t.serialize(r),f=this.getAttribute(c),s=n(l),p=!(s&&n(f)||l===f);o.syncingAttribute=!0,u||s?this.removeAttribute(c):this.setAttribute(c,l),!p&&o.syncingAttribute&&(o.syncingAttribute=!1)}o.settingAttribute=!1},r}function S(e){return e=e||{},"function"==typeof e&&(e={coerce:e}),function(t){return L(t,Y({"default":null,deserialize:function(e){return e},serialize:function(e){return e}},e))}}function D(e){var t=e.props,n=Object.keys(t||{});return n.reduce(function(e,n){return e[n]=t[n],"function"!=typeof e[n]&&(e[n]=S(e[n])),e},{})}function T(e){var t=D(e);return Object.keys(t).reduce(function(e,n){return e[n]=t[n](n),e},{})}function B(e){var t=e.observedAttributes,n=e.props;n&&(Object.keys(n).forEach(function(e){var r=n[e],o=r.attribute;if(o){var i=r.attribute=o===!0?E(e):o;t.indexOf(i)===-1&&t.push(i)}}),Object.defineProperty(e,"observedAttributes",{configurable:!0,enumerable:!0,get:function(){return t}}))}function q(e){var t=T(e);return function(e){t&&Object.keys(t).forEach(function(n){var r=t[n];r.created(e),Object.defineProperty(e,n,r)})}}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+"-"+t}function R(e,t){t[oe]=e,t[ie]=q(t),t[ae]=j(t)}function U(e,t){var n=void 0,r=void 0;try{R(e,t),n=document.registerElement(e,t)}catch(o){r=N(e),R(r,t),n=document.registerElement(r,t)}return n}function z(e,t){var n=e;return window.customElements.get(e)&&(n=N(e)),R(n,t),window.customElements.define(n,t,{"extends":t["extends"]}),t}function F(e,t){if(void 0===t)throw new Error("You have to define options to register a component "+e);var n="object"===("undefined"==typeof t?"undefined":ge(t))?C.extend(t):t;if(B(n),ye)return z(e,n);if(be)return U(e,n);throw new Error("Skate requires native custom element support or a polyfill.")}function V(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.detail;delete t.detail;var r=void 0;return Xe?(r=new Xe(e,t),"undefined"!=typeof n&&Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function X(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(V(t,n))}function Q(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}function Z(e,t){return function(n){var r=Q(n.target),o=t||n.target.name||"value";if(o.indexOf(".")>-1){var i=o.split("."),u=i[0],a=i.pop(),c=i.reduce(function(e,t){return e&&e[t]},e);c[a||n.target.name]=r,A(e,ke({},u,e[u]))}else A(e,ke({},o,r))}}function I(e,t){var n=h(e);e[re]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]}var W=Object.assign,Y=W?W.bind(Object):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 Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e},G=function(e){return isNaN(e)?void 0:Number(e)},K=function(e){return n(e)?void 0:String(e)},H=r({coerce:function(e){return Array.isArray(e)?e:[e]},"default":function(){return[]},deserialize:JSON.parse,serialize:JSON.stringify}),J=r({coerce:function(e){return!!e},"default":!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":void 0}}),$=r({"default":0,coerce:G,deserialize:G,serialize:G}),ee=r({"default":"",coerce:K,deserialize:K,serialize:K}),te=Object.freeze({create:r,array:H,"boolean":J,number:$,string:ee}),ne="____skate_connected",re="____skate_created",oe="____skate_name",ie="____skate_props",ue="____skate_ref",ae="____skate_renderer",ce="____skate_rendering",le="____skate_rendererDebounced",fe="____skate_shadowRoot",se=Object.freeze({name:oe,shadowRoot:fe}),pe=document,de=window,ve=pe.createElement("div"),be=!!pe.registerElement,ye=!!de.customElements,he=!!ve.createShadowRoot,me=!!ve.attachShadow,ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},_e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ke=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},we=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)},Ce=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},xe=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)},Oe=t.attributes[t.symbols["default"]],Ae=!me&&he,je=[],Ee="__skip",Me="__events",Pe="__props",Le=void 0,Se=void 0,De=0,Te=function(){},Be=u(t.attributes,ke({key:Te,statics:Te,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,name:function(e,t,n){"CONTENT"===e.tagName&&(t="select",n='[slot="'+n+'"]'),Oe(e,t,n)},ref:function(e,t,n){e[ue]=n},skip:function(e,t,n){n?e[Ee]=!0:delete e[Ee]}},t.symbols["default"],function(e,n,r){var o=e.constructor.props;if(o&&n in o)return t.applyProp(e,n,r);if(r!==!1){if(0===n.indexOf("on")){var i=n[2],u=void 0;if("-"===i?u=n.substring(3):i===i.toUpperCase()&&(u=i.toLowerCase()+n.substring(3)),u)return void a(e,u,r)}return n in e&&!("ownerSVGElement"in e)?void t.applyProp(e,n,r):void Oe(e,n,r)}})),qe=Be(t.elementOpen),Ne=s(l,d),Re=s(f),Ue=s(qe,d),ze=s(t.elementClose,v),Fe=s(t.text),Ve=Object.freeze({element:y,attr:p,elementClose:ze,elementOpen:Ue,elementOpenEnd:Re,elementOpenStart:Ne,elementVoid:b,text:Fe});Object.defineProperties(C,{observedAttributes:{configurable:!0,get:function(){return[]}},props:{configurable:!0,get:function(){return{}}}}),C.extend=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments.length<=1||void 0===arguments[1]?this:arguments[1],n=function(e){function t(){return _e(this,t),Ce(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return we(t,e),t}(t);if(!n.observedAttributes){var r=g(t);delete r.length,delete r.prototype,Object.defineProperties(n,r)}var o=g(e),i=g(e.prototype);return delete o.prototype,Object.defineProperties(n,o),Object.defineProperties(n.prototype,i),n},C.updated=function(e,t){if(!t)return!0;for(var n in t)if(t[n]!==e[n])return!0},C.prototype=Object.create(HTMLElement.prototype,{connectedCallback:{configurable:!0,value:function(){k(this)}},disconnectedCallback:{configurable:!0,value:function(){w(this)}},attributeChangedCallback:{configurable:!0,value:function(e,t,n){var r=this.constructor,o=r.attributeChanged,i=r.observedAttributes,u=h(this,"attributeLinks")[e];if(!be||i.indexOf(e)!==-1){if(u){var a=h(this,"api/property/"+u);if(a.syncingAttribute)a.syncingAttribute=!1;else{var c=this.constructor.props[u];a.settingAttribute=!0,this[u]=null!==n&&c.deserialize?c.deserialize(n):n}}o&&o(this,{name:e,newValue:n,oldValue:t})}}},createdCallback:{configurable:!0,value:function(){_(this)}},attachedCallback:{configurable:!0,value:function(){k(this)}},detachedCallback:{configurable:!0,value:function(){w(this)}}});var Xe=function(e){if(e)try{new e("emit-init")}catch(t){return}return e}(window.Event);e.Component=C,e.define=F,e.emit=X,e.link=Z,e.prop=te,e.props=A,e.ready=I,e.symbols=se,e.vdom=Ve,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){/** | ||
* @license | ||
@@ -3,0 +3,0 @@ * Copyright 2015 The Incremental DOM Authors. All Rights Reserved. |
{ | ||
"name": "ak-button", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "ak-button webcomponent", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
@@ -78,2 +78,1 @@ # Button | ||
``` | ||
Sorry, the diff of this file is too big to display
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
243638
78