Socket
Socket
Sign inDemoInstall

skatejs

Package Overview
Dependencies
Maintainers
7
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skatejs - npm Package Compare versions

Comparing version 5.0.0-alpha.3 to 5.0.0-alpha.4

src/define.js

9

package.json
{
"name": "skatejs",
"version": "5.0.0-alpha.3",
"version": "5.0.0-alpha.4",
"description": "Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.",

@@ -26,3 +26,3 @@ "license": "MIT",

"es",
"lib",
"src",
"umd"

@@ -45,3 +45,5 @@ ],

"typescript": "^2.1.4",
"typescript-formatter": "^5.0.0"
"typescript-formatter": "^5.0.0",
"webpack-node-externals": "^1.6.0",
"yargs": "^8.0.1"
},

@@ -55,2 +57,3 @@ "peerDependencies": {

"prepublish": "nwb build",
"prerelease": "npm version prerelease && git push && git push --tags && npm publish",
"release": "semantic-release pre && npm publish && semantic-release post",

@@ -57,0 +60,0 @@ "test": "node umd/skatejs.js && semistandard && npm run test:ts && nwb test -- --ci",

/*!
* skatejs v5.0.0-alpha.3
* skatejs v5.0.0-alpha.4
* MIT Licensed

@@ -875,3 +875,3 @@ */

module.exports = __WEBPACK_EXTERNAL_MODULE_12__;
module.exports = require("preact");

@@ -878,0 +878,0 @@ /***/ }),

/*!
* skatejs v5.0.0-alpha.3
* skatejs v5.0.0-alpha.4
* MIT Licensed
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("preact")):"function"==typeof define&&define.amd?define(["preact"],e):"object"==typeof exports?exports.skate=e(require("preact")):t.skate=e(t.preact)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=13)}([function(t,e,n){"use strict";(function(t){function r(t){return t.split(/([_A-Z])/).reduce(function(t,e,n){var r=t&&n%2!=0?"-":"";return e="_"===e?"":e,""+t+r+e.toLowerCase()})}function o(t){var e=!1,n=0,r=[],o=document.createElement("span");return new p(function(){t.apply(void 0,r),e=!1,r=null}).observe(o,{childList:!0}),function(){for(var t=arguments.length,i=Array(t),u=0;u<t;u++)i[u]=arguments[u];r=i,e||(e=!0,o.textContent=""+n,n+=1)}}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=y(t);return v?e.concat(v(t)):e}function u(t){return"function"==typeof Symbol?Symbol(t?String(t):void 0):c(t)}function c(t){return(t?String(t):"")+"xxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}n.d(e,"d",function(){return f}),n.d(e,"b",function(){return l}),n.d(e,"j",function(){return b}),n.d(e,"i",function(){return h}),n.d(e,"g",function(){return g}),e.c=r,e.f=o,n.d(e,"h",function(){return m}),e.e=i,e.a=u;var a="undefined"==typeof window?t:window,f=a.customElements,s=a.HTMLElement,l=void 0===s?null:s,p=a.MutationObserver,d=a.Object,b=d.defineProperty,h=d.defineProperties,y=d.getOwnPropertyNames,v=d.getOwnPropertySymbols,g=d.freeze,m=function(t){return null==t}}).call(e,n(11))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(0),c=n(8);n.d(e,"a",function(){return v}),n.d(e,"b",function(){return E});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n.i(u.a)("_connected"),l=n.i(u.a)("_constructed"),p=n.i(u.a)("_observedAttributes"),d=n.i(u.a)("_prevProps"),b=n.i(u.a)("_props"),h=n.i(u.a)("_updateCallback"),y=n.i(u.a)("_updating"),v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.b;return function(t){function e(){r(this,e);var i=o(this,t.call(this));if(i[h]=function(){if(!i[y]&&i[s]){i[y]=!0;var t=i[d],e=i[d]=i.props;i.propsSetCallback(e,t),i.propsUpdatedCallback(e,t)&&i.propsChangedCallback(e,t),i[y]=!1}},i[l])return o(i);i[l]=!0;var a=i.constructor;return n.i(c.b)(a),i[c.c]=n.i(u.f)(i[h]),i}return i(e,t),f(e,[{key:"props",get:function(){var t=this;return n.i(u.e)(this.constructor.props).reduce(function(e,n){return e[n]=t[n],e},{})},set:function(t){var e=this,r=this.constructor.props;n.i(u.e)(t).forEach(function(n){return n in r&&(e[n]=t[n])})}}],[{key:"observedAttributes",get:function(){var t=n.i(c.a)(this);return n.i(u.e)(t).map(function(e){return t[e].attribute}).filter(Boolean).map(function(t){return t.source}).concat(this[p]||[])},set:function(t){this[p]=t}},{key:"props",get:function(){return this[b]},set:function(t){this[b]=t}}]),e.prototype.connectedCallback=function(){this[s]||(this[s]=!0,t.prototype.connectedCallback&&t.prototype.connectedCallback.call(this),this[c.c]())},e.prototype.disconnectedCallback=function(){this[s]&&(this[s]=!1,t.prototype.disconnectedCallback&&t.prototype.disconnectedCallback.call(this))},e.prototype.propsChangedCallback=function(){},e.prototype.propsSetCallback=function(){},e.prototype.propsUpdatedCallback=function(t,e){return!e||n.i(u.e)(e).some(function(n){return e[n]!==t[n]})},e.prototype.attributeChangedCallback=function(e,r,o){t.prototype.attributeChangedCallback&&t.prototype.attributeChangedCallback.call(this,e,r,o),n.i(c.d)(this,e,o)},e}(t)},g=JSON.parse,m=JSON.stringify,w=n.i(u.g)({source:!0}),O=function(t){return n.i(u.g)(a({attribute:w},t))},C=function(t){return function(e){return n.i(u.h)(e)?null:t(e)}},j=function(t){return n.i(u.h)(t)?0:Number(t)},k=O({coerce:function(t){return Array.isArray(t)?t:n.i(u.h)(t)?null:[t]},default:n.i(u.g)([]),deserialize:g,serialize:m}),_=O({coerce:Boolean,default:!1,deserialize:function(t){return!n.i(u.h)(t)},serialize:function(t){return t?"":null}}),x=O({default:0,coerce:j,deserialize:j,serialize:C(Number)}),P=O({default:n.i(u.g)({}),deserialize:g,serialize:m}),S=O({default:"",coerce:String,serialize:C(String)}),E={array:k,boolean:_,number:x,object:P,string:S}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t){return t.attachShadow?t.attachShadow(s):t}var c=n(0);n.d(e,"a",function(){return l});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n.i(c.a)(),s={mode:"open"},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.b;return function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.propsChangedCallback=function(){var t=this;this.rendererCallback(this.renderRoot,function(){return t.renderCallback(t)}),this.renderedCallback()},e.prototype.renderCallback=function(){},e.prototype.renderedCallback=function(){},a(e,[{key:"renderRoot",get:function(){return this[f]=this[f]||(this[f]=this.shadowRoot||u(this)),this[f]}}]),e}(t)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(0),c=n(9);n.d(e,"a",function(){return s});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n.i(u.a)("_is"),s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.b;return function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),a(e,null,[{key:"is",get:function(){return this[f]||(this[f]=n.i(c.a)(this))},set:function(t){this[f]=t}}]),e}(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);n.d(e,"define",function(){return r.a});var o=n(6);n.d(e,"emit",function(){return o.a});var i=n(7);n.d(e,"link",function(){return i.a});var u=n(10);n.d(e,"withComponent",function(){return u.a}),n.d(e,"Component",function(){return u.b}),n.d(e,"h",function(){return u.c});var c=n(1);n.d(e,"withProps",function(){return c.a}),n.d(e,"props",function(){return c.b});var a=n(2);n.d(e,"withRender",function(){return a.a});var f=n(3);n.d(e,"withUnique",function(){return f.a})},function(t,e,n){"use strict";function r(t){var e=t.is;return o.d.get(e)||o.d.define(e,t),t}var o=n(0);e.a=r},function(t,e,n){"use strict";function r(t,e,r){r=i({},u,r);var c=document.createEvent("CustomEvent");return c.initCustomEvent(e,r.bubbles,r.cancelable,r.detail),n.i(o.j)(c,"composed",{value:r.composed}),t.dispatchEvent(c)}var o=n(0);e.a=r;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u={bubbles:!0,cancelable:!0,composed:!1}},function(t,e,n){"use strict";function r(t){var e=t.checked,n=t.type,r=t.value;return"checkbox"===n||"radio"===n?!!e&&(r||!0):r}function o(t,e){return function(n){var o=n.target||n.composedPath()[0],i=r(o),u=e||o.name||"value";if(u.indexOf(".")>-1){var c=u.split("."),a=c[0],f=c.pop();c.reduce(function(t,e){return t&&t[e]},t)[f||n.target.name]=i,t[a]=t[a]}else t[u]=i}}e.a=o},function(t,e,n){"use strict";function r(t){if(!t[p]){t[p]=!0;var e=t.prototype,r=u(t);n.i(f.i)(e,n.i(f.e)(r).reduce(function(t,e){var o=r[e],i=o.attribute.target,u=o.coerce,c=o.default,s=o.serialize,l=n.i(f.a)(e);return t[e]={configurable:!0,get:function(){var t=this[l];return null==t?c:t},set:function(t){this[l]=u(t),a(this,i,s,t),this[y]()}},t},{}))}}function o(t,e){var r=e.attribute,o="object"===(void 0===r?"undefined":l(r))?s({},r):{source:r,target:r};return!0===o.source&&(o.source=n.i(f.c)(t)),!0===o.target&&(o.target=n.i(f.c)(t)),o}function i(t,e){var n=e.coerce,r=e.default,i=e.deserialize,u=e.serialize;return{attribute:o(t,e),coerce:n||function(t){return t},default:r,deserialize:i||function(t){return t},serialize:u||function(t){return t}}}function u(t){return t[d]||(t[d]=n.i(f.e)(t.props).reduce(function(e,n){return e[n]=i(n,t.props[n]||{}),e},{}))}function c(t,e,n){if(!t[h]){var r=u(t.constructor);for(var o in r){var i=r[o],c=i.attribute.source,a=i.deserialize;c===e&&(t[b]=o,t[o]=null==n?n:a(n),t[b]=null)}}}function a(t,e,n,r){if(e&&t[b]!==e){var o=n(r);t[h]=!0,null==o?t.removeAttribute(e):t.setAttribute(e,o),t[h]=!1}}var f=n(0);n.d(e,"c",function(){return y}),e.b=r,e.a=u,e.d=c;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=n.i(f.a)("_definedProps"),d=n.i(f.a)("_normPropDef"),b=n.i(f.a)("_syncingAttributeToProperty"),h=n.i(f.a)("_syncingPropertyToAttribute"),y=n.i(f.a)("_updateDebounced")},function(t,e,n){"use strict";function r(t,e){return t=t||"element",(-1===t.indexOf("-")?"x-"+t:t)+(e?"-"+e:"")}function o(t){for(var e=n.i(i.c)(t.name);i.d.get(r(e,u));)u++;return r(e,u++)}var i=n(0);e.a=o;var u=0},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(12),c=(n.n(u),n(0)),a=n(1),f=n(2),s=n(3);n.o(u,"h")&&n.d(e,"c",function(){return u.h}),n.d(e,"a",function(){return p}),n.d(e,"b",function(){return d});var l=n.i(c.a)("_preactDom"),p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.b;return function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.rendererCallback=function(t,e){this[l]=n.i(u.render)(e(),t,this[l])},e}(n.i(s.a)(n.i(f.a)(n.i(a.a)(t))))},d=p()},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(e,n){e.exports=t},function(t,e,n){t.exports=n(4)}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("preact")):"function"==typeof define&&define.amd?define(["preact"],e):"object"==typeof exports?exports.skate=e(require("preact")):t.skate=e(t.preact)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=13)}([function(t,e,n){"use strict";(function(t){function r(t){return t.split(/([_A-Z])/).reduce(function(t,e,n){var r=t&&n%2!=0?"-":"";return e="_"===e?"":e,""+t+r+e.toLowerCase()})}function o(t){var e=!1,n=0,r=[],o=document.createElement("span");return new p(function(){t.apply(void 0,r),e=!1,r=null}).observe(o,{childList:!0}),function(){for(var t=arguments.length,i=Array(t),u=0;u<t;u++)i[u]=arguments[u];r=i,e||(e=!0,o.textContent=""+n,n+=1)}}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=y(t);return v?e.concat(v(t)):e}function u(t){return"function"==typeof Symbol?Symbol(t?String(t):void 0):c(t)}function c(t){return(t?String(t):"")+"xxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}n.d(e,"d",function(){return f}),n.d(e,"b",function(){return l}),n.d(e,"j",function(){return b}),n.d(e,"i",function(){return h}),n.d(e,"g",function(){return g}),e.c=r,e.f=o,n.d(e,"h",function(){return m}),e.e=i,e.a=u;var a="undefined"==typeof window?t:window,f=a.customElements,s=a.HTMLElement,l=void 0===s?null:s,p=a.MutationObserver,d=a.Object,b=d.defineProperty,h=d.defineProperties,y=d.getOwnPropertyNames,v=d.getOwnPropertySymbols,g=d.freeze,m=function(t){return null==t}}).call(e,n(11))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(0),c=n(8);n.d(e,"a",function(){return v}),n.d(e,"b",function(){return E});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n.i(u.a)("_connected"),l=n.i(u.a)("_constructed"),p=n.i(u.a)("_observedAttributes"),d=n.i(u.a)("_prevProps"),b=n.i(u.a)("_props"),h=n.i(u.a)("_updateCallback"),y=n.i(u.a)("_updating"),v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.b;return function(t){function e(){r(this,e);var i=o(this,t.call(this));if(i[h]=function(){if(!i[y]&&i[s]){i[y]=!0;var t=i[d],e=i[d]=i.props;i.propsSetCallback(e,t),i.propsUpdatedCallback(e,t)&&i.propsChangedCallback(e,t),i[y]=!1}},i[l])return o(i);i[l]=!0;var a=i.constructor;return n.i(c.b)(a),i[c.c]=n.i(u.f)(i[h]),i}return i(e,t),f(e,[{key:"props",get:function(){var t=this;return n.i(u.e)(this.constructor.props).reduce(function(e,n){return e[n]=t[n],e},{})},set:function(t){var e=this,r=this.constructor.props;n.i(u.e)(t).forEach(function(n){return n in r&&(e[n]=t[n])})}}],[{key:"observedAttributes",get:function(){var t=n.i(c.a)(this);return n.i(u.e)(t).map(function(e){return t[e].attribute}).filter(Boolean).map(function(t){return t.source}).concat(this[p]||[])},set:function(t){this[p]=t}},{key:"props",get:function(){return this[b]},set:function(t){this[b]=t}}]),e.prototype.connectedCallback=function(){this[s]||(this[s]=!0,t.prototype.connectedCallback&&t.prototype.connectedCallback.call(this),this[c.c]())},e.prototype.disconnectedCallback=function(){this[s]&&(this[s]=!1,t.prototype.disconnectedCallback&&t.prototype.disconnectedCallback.call(this))},e.prototype.propsChangedCallback=function(){},e.prototype.propsSetCallback=function(){},e.prototype.propsUpdatedCallback=function(t,e){return!e||n.i(u.e)(e).some(function(n){return e[n]!==t[n]})},e.prototype.attributeChangedCallback=function(e,r,o){t.prototype.attributeChangedCallback&&t.prototype.attributeChangedCallback.call(this,e,r,o),n.i(c.d)(this,e,o)},e}(t)},g=JSON.parse,m=JSON.stringify,w=n.i(u.g)({source:!0}),O=function(t){return n.i(u.g)(a({attribute:w},t))},C=function(t){return function(e){return n.i(u.h)(e)?null:t(e)}},j=function(t){return n.i(u.h)(t)?0:Number(t)},k=O({coerce:function(t){return Array.isArray(t)?t:n.i(u.h)(t)?null:[t]},default:n.i(u.g)([]),deserialize:g,serialize:m}),_=O({coerce:Boolean,default:!1,deserialize:function(t){return!n.i(u.h)(t)},serialize:function(t){return t?"":null}}),x=O({default:0,coerce:j,deserialize:j,serialize:C(Number)}),P=O({default:n.i(u.g)({}),deserialize:g,serialize:m}),S=O({default:"",coerce:String,serialize:C(String)}),E={array:k,boolean:_,number:x,object:P,string:S}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t){return t.attachShadow?t.attachShadow(s):t}var c=n(0);n.d(e,"a",function(){return l});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n.i(c.a)(),s={mode:"open"},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.b;return function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.propsChangedCallback=function(){var t=this;this.rendererCallback(this.renderRoot,function(){return t.renderCallback(t)}),this.renderedCallback()},e.prototype.renderCallback=function(){},e.prototype.renderedCallback=function(){},a(e,[{key:"renderRoot",get:function(){return this[f]=this[f]||(this[f]=this.shadowRoot||u(this)),this[f]}}]),e}(t)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(0),c=n(9);n.d(e,"a",function(){return s});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n.i(u.a)("_is"),s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.b;return function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),a(e,null,[{key:"is",get:function(){return this[f]||(this[f]=n.i(c.a)(this))},set:function(t){this[f]=t}}]),e}(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);n.d(e,"define",function(){return r.a});var o=n(6);n.d(e,"emit",function(){return o.a});var i=n(7);n.d(e,"link",function(){return i.a});var u=n(10);n.d(e,"withComponent",function(){return u.a}),n.d(e,"Component",function(){return u.b}),n.d(e,"h",function(){return u.c});var c=n(1);n.d(e,"withProps",function(){return c.a}),n.d(e,"props",function(){return c.b});var a=n(2);n.d(e,"withRender",function(){return a.a});var f=n(3);n.d(e,"withUnique",function(){return f.a})},function(t,e,n){"use strict";function r(t){var e=t.is;return o.d.get(e)||o.d.define(e,t),t}var o=n(0);e.a=r},function(t,e,n){"use strict";function r(t,e,r){r=i({},u,r);var c=document.createEvent("CustomEvent");return c.initCustomEvent(e,r.bubbles,r.cancelable,r.detail),n.i(o.j)(c,"composed",{value:r.composed}),t.dispatchEvent(c)}var o=n(0);e.a=r;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u={bubbles:!0,cancelable:!0,composed:!1}},function(t,e,n){"use strict";function r(t){var e=t.checked,n=t.type,r=t.value;return"checkbox"===n||"radio"===n?!!e&&(r||!0):r}function o(t,e){return function(n){var o=n.target||n.composedPath()[0],i=r(o),u=e||o.name||"value";if(u.indexOf(".")>-1){var c=u.split("."),a=c[0],f=c.pop();c.reduce(function(t,e){return t&&t[e]},t)[f||n.target.name]=i,t[a]=t[a]}else t[u]=i}}e.a=o},function(t,e,n){"use strict";function r(t){if(!t[p]){t[p]=!0;var e=t.prototype,r=u(t);n.i(f.i)(e,n.i(f.e)(r).reduce(function(t,e){var o=r[e],i=o.attribute.target,u=o.coerce,c=o.default,s=o.serialize,l=n.i(f.a)(e);return t[e]={configurable:!0,get:function(){var t=this[l];return null==t?c:t},set:function(t){this[l]=u(t),a(this,i,s,t),this[y]()}},t},{}))}}function o(t,e){var r=e.attribute,o="object"===(void 0===r?"undefined":l(r))?s({},r):{source:r,target:r};return!0===o.source&&(o.source=n.i(f.c)(t)),!0===o.target&&(o.target=n.i(f.c)(t)),o}function i(t,e){var n=e.coerce,r=e.default,i=e.deserialize,u=e.serialize;return{attribute:o(t,e),coerce:n||function(t){return t},default:r,deserialize:i||function(t){return t},serialize:u||function(t){return t}}}function u(t){return t[d]||(t[d]=n.i(f.e)(t.props).reduce(function(e,n){return e[n]=i(n,t.props[n]||{}),e},{}))}function c(t,e,n){if(!t[h]){var r=u(t.constructor);for(var o in r){var i=r[o],c=i.attribute.source,a=i.deserialize;c===e&&(t[b]=o,t[o]=null==n?n:a(n),t[b]=null)}}}function a(t,e,n,r){if(e&&t[b]!==e){var o=n(r);t[h]=!0,null==o?t.removeAttribute(e):t.setAttribute(e,o),t[h]=!1}}var f=n(0);n.d(e,"c",function(){return y}),e.b=r,e.a=u,e.d=c;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=n.i(f.a)("_definedProps"),d=n.i(f.a)("_normPropDef"),b=n.i(f.a)("_syncingAttributeToProperty"),h=n.i(f.a)("_syncingPropertyToAttribute"),y=n.i(f.a)("_updateDebounced")},function(t,e,n){"use strict";function r(t,e){return t=t||"element",(-1===t.indexOf("-")?"x-"+t:t)+(e?"-"+e:"")}function o(t){for(var e=n.i(i.c)(t.name);i.d.get(r(e,u));)u++;return r(e,u++)}var i=n(0);e.a=o;var u=0},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(12),c=(n.n(u),n(0)),a=n(1),f=n(2),s=n(3);n.o(u,"h")&&n.d(e,"c",function(){return u.h}),n.d(e,"a",function(){return p}),n.d(e,"b",function(){return d});var l=n.i(c.a)("_preactDom"),p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.b;return function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.rendererCallback=function(t,e){this[l]=n.i(u.render)(e(),t,this[l])},e}(n.i(s.a)(n.i(f.a)(n.i(a.a)(t))))},d=p()},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=require("preact")},function(t,e,n){t.exports=n(4)}])});
//# sourceMappingURL=skatejs.min.js.map

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc