Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

skatejs

Package Overview
Dependencies
Maintainers
8
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.11 to 5.0.0-alpha.12

2

es/emit.js
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import { ComposedCustomEvent, EventOptions } from './types';
var defs = {

@@ -6,0 +4,0 @@ bubbles: true,

8

esnext/define.js

@@ -1,8 +0,4 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.define = define;
function define(Ctor) {
export function define(Ctor) {
const registry = customElements;

@@ -9,0 +5,0 @@ const is = Ctor.is;

@@ -1,13 +0,3 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
exports.emit = emit;
var _types = require('./types');
const defs = {

@@ -19,3 +9,3 @@ bubbles: true,

function emit(elem, name, opts) {
export function emit(elem, name, opts) {
opts = _extends({}, defs, opts);

@@ -22,0 +12,0 @@ let e;

@@ -1,89 +0,7 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _define = require('./define');
Object.keys(_define).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _define[key];
}
});
});
var _emit = require('./emit');
Object.keys(_emit).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _emit[key];
}
});
});
var _link = require('./link');
Object.keys(_link).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _link[key];
}
});
});
var _withComponent = require('./with-component');
Object.keys(_withComponent).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _withComponent[key];
}
});
});
var _withProps = require('./with-props');
Object.keys(_withProps).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _withProps[key];
}
});
});
var _withRender = require('./with-render');
Object.keys(_withRender).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _withRender[key];
}
});
});
var _withUnique = require('./with-unique');
Object.keys(_withUnique).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _withUnique[key];
}
});
});
export * from './define.js';
export * from './emit.js';
export * from './link.js';
export * from './with-component.js';
export * from './with-props.js';
export * from './with-render.js';
export * from './with-unique.js';

@@ -1,9 +0,3 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.link = link;
function getValue(elem) {

@@ -17,3 +11,3 @@ const { checked, type, value } = elem;

function link(elem, target) {
export function link(elem, target) {
return e => {

@@ -20,0 +14,0 @@ // TODO revisit once all browsers have native support.

@@ -1,11 +0,1 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.dashCase = dashCase;
exports.debounce = debounce;
exports.keys = keys;
exports.sym = sym;
exports.uniqueId = uniqueId;
const Mo = typeof MutationObserver === 'function' ? MutationObserver : class {

@@ -30,3 +20,3 @@ constructor(func) {

function dashCase(str) {
export function dashCase(str) {
return str.split(/([_A-Z])/).reduce((one, two, idx) => {

@@ -39,3 +29,3 @@ const dash = !one || idx % 2 === 0 ? '' : '-';

function debounce(cbFunc) {
export function debounce(cbFunc) {
let scheduled = false;

@@ -60,5 +50,5 @@ let i = 0;

const empty = exports.empty = val => val == null;
export const empty = val => val == null;
function keys(obj) {
export function keys(obj) {
obj = obj || {};

@@ -69,7 +59,7 @@ const names = Object.getOwnPropertyNames(obj);

function sym(description) {
export function sym(description) {
return typeof Symbol === 'function' ? Symbol(description ? String(description) : undefined) : uniqueId(description);
}
function uniqueId(description) {
export function uniqueId(description) {
return (description ? String(description) : '') + 'xxxxxxxx'.replace(/[xy]/g, c => {

@@ -76,0 +66,0 @@ const r = Math.random() * 16 | 0;

@@ -1,17 +0,6 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
exports.normaliseAttributeDefinition = normaliseAttributeDefinition;
exports.normalisePropertyDefinition = normalisePropertyDefinition;
exports.syncAttributeToProperty = syncAttributeToProperty;
exports.syncPropertyToAttribute = syncPropertyToAttribute;
import { dashCase } from './index.js';
var _ = require('.');
function normaliseAttributeDefinition(name, prop) {
export function normaliseAttributeDefinition(name, prop) {
const { attribute } = prop;

@@ -23,6 +12,6 @@ const obj = typeof attribute === 'object' ? _extends({}, attribute) : {

if (obj.source === true) {
obj.source = (0, _.dashCase)(name);
obj.source = dashCase(name);
}
if (obj.target === true) {
obj.target = (0, _.dashCase)(name);
obj.target = dashCase(name);
}

@@ -32,3 +21,3 @@ return obj;

function normalisePropertyDefinition(name, prop) {
export function normalisePropertyDefinition(name, prop) {
const { coerce, default: def, deserialize, serialize } = prop;

@@ -44,3 +33,3 @@ return {

function syncAttributeToProperty(elem, name, value) {
export function syncAttributeToProperty(elem, name, value) {
if (elem._syncingPropertyToAttribute) {

@@ -60,3 +49,3 @@ return;

function syncPropertyToAttribute(elem, target, serialize, val) {
export function syncPropertyToAttribute(elem, target, serialize, val) {
if (target && elem._syncingAttributeToProperty !== target) {

@@ -63,0 +52,0 @@ const serialized = serialize(val);

@@ -1,14 +0,8 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.formatName = formatName;
exports.generateName = generateName;
var _ = require('.');
import { dashCase } from './index.js';
let suffix = 0;
function formatName(prefix, suffix) {
export function formatName(prefix, suffix) {
prefix = prefix || 'element';

@@ -18,5 +12,5 @@ return (prefix.indexOf('-') === -1 ? `x-${prefix}` : prefix) + (suffix ? `-${suffix}` : '');

function generateName(Ctor) {
export function generateName(Ctor) {
const registry = customElements;
const prefix = (0, _.dashCase)(Ctor.name);
const prefix = dashCase(Ctor.name);
while (registry.get(formatName(prefix, suffix))) {

@@ -23,0 +17,0 @@ suffix++;

@@ -1,20 +0,10 @@

'use strict';
import { h, render } from '../../node_modules/preact/dist/preact.esm.js';
import { withProps } from './with-props.js';
import { withRender } from './with-render.js';
import { withUnique } from './with-unique.js';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.h = exports.Component = exports.withComponent = undefined;
var _preact = require('preact');
var _withProps = require('./with-props');
var _withRender = require('./with-render');
var _withUnique = require('./with-unique');
const withComponent = exports.withComponent = (Base = HTMLElement) => {
return class extends (0, _withRender.withRender)((0, _withUnique.withUnique)((0, _withProps.withProps)(Base))) {
export const withComponent = (Base = HTMLElement) => {
return class extends withRender(withUnique(withProps(Base))) {
rendererCallback(shadowRoot, renderCallback) {
this._preactDom = (0, _preact.render)(renderCallback(), shadowRoot, this._preactDom || shadowRoot.children[0]);
this._preactDom = render(renderCallback(), shadowRoot, this._preactDom || shadowRoot.children[0]);
}

@@ -24,3 +14,3 @@ };

const Component = exports.Component = withComponent(typeof window === 'undefined' ? class {} : HTMLElement);
exports.h = _preact.h;
export const Component = withComponent(typeof window === 'undefined' ? class {} : HTMLElement);
export { h };

@@ -1,14 +0,8 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.props = exports.withProps = undefined;
exports.prop = prop;
var _util = require('./util');
import { debounce, empty, keys, sym } from './util/index.js';
var _withProps = require('./util/with-props');
import { normalisePropertyDefinition, syncAttributeToProperty, syncPropertyToAttribute } from './util/with-props.js';
function prop(definition) {
export function prop(definition) {
const propertyDefinition = definition || {};

@@ -18,4 +12,4 @@

const func = function ({ constructor }, name) {
const normalised = (0, _withProps.normalisePropertyDefinition)(name, propertyDefinition);
const _value = (0, _util.sym)(name);
const normalised = normalisePropertyDefinition(name, propertyDefinition);
const _value = sym(name);

@@ -37,3 +31,3 @@ // Cache the value so we can reference when syncing the attribute to the property.

this[_value] = normalised.coerce(val);
(0, _withProps.syncPropertyToAttribute)(this, normalised.attribute.target, normalised.serialize, val);
syncPropertyToAttribute(this, normalised.attribute.target, normalised.serialize, val);
this._updateDebounced();

@@ -50,3 +44,3 @@ }

const withProps = exports.withProps = (Base = HTMLElement) => {
export const withProps = (Base = HTMLElement) => {
var _class, _temp;

@@ -69,3 +63,3 @@

static set props(props) {
(0, _util.keys)(props).forEach(name => {
keys(props).forEach(name => {
let func = props[name];

@@ -78,3 +72,3 @@ if (typeof func !== 'function') func = prop(func);

get props() {
return (0, _util.keys)(this.constructor.props).reduce((prev, curr) => {
return keys(this.constructor.props).reduce((prev, curr) => {
prev[curr] = this[curr];

@@ -87,3 +81,3 @@ return prev;

const ctorProps = this.constructor.props;
(0, _util.keys)(props).forEach(k => k in ctorProps && (this[k] = props[k]));
keys(props).forEach(k => k in ctorProps && (this[k] = props[k]));
}

@@ -118,3 +112,3 @@

this._constructed = true;
this._updateDebounced = (0, _util.debounce)(this._updateCallback);
this._updateDebounced = debounce(this._updateCallback);
}

@@ -145,3 +139,3 @@

propsUpdatedCallback(next, prev) {
return !prev || (0, _util.keys)(prev).some(k => prev[k] !== next[k]);
return !prev || keys(prev).some(k => prev[k] !== next[k]);
}

@@ -152,3 +146,3 @@

if (super.attributeChangedCallback) super.attributeChangedCallback(name, oldValue, newValue);
(0, _withProps.syncAttributeToProperty)(this, name, newValue);
syncAttributeToProperty(this, name, newValue);
}

@@ -162,3 +156,3 @@

const attribute = Object.freeze({ source: true });
const zeroOrNumber = val => (0, _util.empty)(val) ? 0 : Number(val);
const zeroOrNumber = val => empty(val) ? 0 : Number(val);

@@ -171,3 +165,3 @@ const any = prop({

attribute,
coerce: val => Array.isArray(val) ? val : (0, _util.empty)(val) ? null : [val],
coerce: val => Array.isArray(val) ? val : empty(val) ? null : [val],
default: Object.freeze([]),

@@ -182,3 +176,3 @@ deserialize: parse,

default: false,
deserialize: val => !(0, _util.empty)(val),
deserialize: val => !empty(val),
serialize: val => val ? '' : null

@@ -192,3 +186,3 @@ });

deserialize: zeroOrNumber,
serialize: val => (0, _util.empty)(val) ? null : String(Number(val))
serialize: val => empty(val) ? null : String(Number(val))
});

@@ -207,6 +201,6 @@

coerce: String,
serialize: val => (0, _util.empty)(val) ? null : String(val)
serialize: val => empty(val) ? null : String(val)
});
const props = exports.props = {
export const props = {
any,

@@ -213,0 +207,0 @@ array,

@@ -1,6 +0,1 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
const attachShadowOptions = { mode: 'open' };

@@ -12,3 +7,3 @@

const withRender = exports.withRender = (Base = HTMLElement) => {
export const withRender = (Base = HTMLElement) => {
return class extends Base {

@@ -15,0 +10,0 @@

@@ -1,15 +0,8 @@

'use strict';
import { generateName } from './util/with-unique.js';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.withUnique = undefined;
var _withUnique = require('./util/with-unique');
const withUnique = exports.withUnique = (Base = HTMLElement) => {
export const withUnique = (Base = HTMLElement) => {
return class extends Base {
static get is() {
return this._is || (this._is = (0, _withUnique.generateName)(this));
return this._is || (this._is = generateName(this));
}

@@ -16,0 +9,0 @@ static set is(is) {

{
"name": "skatejs",
"version": "5.0.0-alpha.11",
"version": "5.0.0-alpha.12",
"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.",

@@ -39,3 +39,4 @@ "license": "MIT",

"babel-eslint": "7.2.3",
"babel-plugin-transform-es2015-modules-commonjs": "6.24.1",
"babel-plugin-modules-map": "1.0.0",
"babel-plugin-modules-web-compat": "1.1.0",
"babel-preset-es2016": "6.24.1",

@@ -69,3 +70,4 @@ "babel-preset-es2017": "6.24.1",

"precommit": "semistandard",
"prepublish": "nwb build && babel src --out-dir esnext --presets=stage-0,es2017,es2016,react",
"build:esnext": "babel src --out-dir esnext --no-babelrc --presets=stage-0,es2017,es2016,react,$(pwd)/config/esnext.babel",
"prepublish": "nwb build && npm run build:esnext",
"release": "git push && git push --tags && npm publish",

@@ -72,0 +74,0 @@ "test": "semistandard && npm run prepublish && npm run test:ts && node umd/skatejs.js && jest",

// @flow
import { ComposedCustomEvent, EventOptions } from './types';
import type { ComposedCustomEvent, EventOptions } from './types';

@@ -5,0 +5,0 @@ const defs: EventOptions = {

@@ -12,2 +12,3 @@ // UMD library

SFC,
prop,
props,

@@ -14,0 +15,0 @@ link,

@@ -27,9 +27,9 @@ import { VNode } from 'preact'

// and https://github.com/skatejs/skatejs/pull/952#issuecomment-264500153
props: Partial<Props> & ComponentDefaultProps
props: Partial<Props> & ComponentDefaultProps;
static readonly is: string
static readonly props: ComponentProps<any, any>
static readonly observedAttributes: string[]
static is: string;
static props: ComponentProps<any, any>;
static readonly observedAttributes: string[];
readonly renderRoot?: this | JSX.Element
readonly renderRoot?: this | JSX.Element;

@@ -98,9 +98,11 @@ // Custom Elements v1

export const props: {
readonly array: PropOptions;
readonly boolean: PropOptions;
readonly number: PropOptions;
readonly object: PropOptions;
readonly string: PropOptions;
readonly any: PropOptions & PropertyDecorator;
readonly array: PropOptions & PropertyDecorator;
readonly boolean: PropOptions & PropertyDecorator;
readonly number: PropOptions & PropertyDecorator;
readonly object: PropOptions & PropertyDecorator;
readonly string: PropOptions & PropertyDecorator;
};
export const prop: (ops?: PropOptions) => (PropertyDecorator & PropOptions);

@@ -107,0 +109,0 @@ // Mixins

/*!
* skatejs v5.0.0-alpha.11
* skatejs v5.0.0-alpha.12
* MIT Licensed

@@ -14,3 +14,3 @@ */

root["skate"] = factory(root["preact"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_12__) {
})(this, function(__WEBPACK_EXTERNAL_MODULE_11__) {
return /******/ (function(modules) { // webpackBootstrap

@@ -81,3 +81,3 @@ /******/ // The module cache

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 13);
/******/ return __webpack_require__(__webpack_require__.s = 12);
/******/ })

@@ -181,3 +181,3 @@ /************************************************************************/

/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_with_props__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_with_props__ = __webpack_require__(8);
/* harmony export (immutable) */ __webpack_exports__["a"] = prop;

@@ -498,3 +498,3 @@ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return withProps; });

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_with_unique__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_with_unique__ = __webpack_require__(9);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return withUnique; });

@@ -548,3 +548,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "link", function() { return __WEBPACK_IMPORTED_MODULE_2__link__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__with_component__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__with_component__ = __webpack_require__(10);
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "withComponent", function() { return __WEBPACK_IMPORTED_MODULE_3__with_component__["a"]; });

@@ -591,9 +591,5 @@ /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "Component", function() { return __WEBPACK_IMPORTED_MODULE_3__with_component__["b"]; });

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__types__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__types__);
/* harmony export (immutable) */ __webpack_exports__["a"] = emit;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var defs = {

@@ -666,8 +662,2 @@ bubbles: true,

/* 8 */
/***/ (function(module, exports) {
/***/ }),
/* 9 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

@@ -756,3 +746,3 @@

/***/ }),
/* 10 */
/* 9 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

@@ -785,7 +775,7 @@

/***/ }),
/* 11 */
/* 10 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_preact__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_preact__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_preact___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_preact__);

@@ -838,3 +828,3 @@ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__with_props__ = __webpack_require__(1);

/***/ }),
/* 12 */
/* 11 */
/***/ (function(module, exports) {

@@ -845,3 +835,3 @@

/***/ }),
/* 13 */
/* 12 */
/***/ (function(module, exports, __webpack_require__) {

@@ -848,0 +838,0 @@

/*!
* skatejs v5.0.0-alpha.11
* skatejs v5.0.0-alpha.12
* 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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 i(t){var e=!1,n=0,r=document.createElement("span");return new f(function(){t(),e=!1}).observe(r,{childList:!0}),function(){e||(e=!0,r.textContent=""+n,n+=1)}}function u(t){t=t||{};var e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}function c(t){return"function"==typeof Symbol?Symbol(t?String(t):void 0):a(t)}function a(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)})}e.a=o,e.d=i,n.d(e,"e",function(){return s}),e.c=u,e.b=c;var f="function"==typeof MutationObserver?MutationObserver:function(){function t(e){r(this,t),this.func=e}return t.prototype.observe=function(t){var e=this.func,n={set:function(){"undefined"==typeof Promise?setTimeout(e):new Promise(function(t){return t()}).then(e)}};Object.defineProperty(t,"textContent",n)},t}(),s=function(t){return null==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)}function u(t){var e=t||{},r=function(t,r){var o=t.constructor,i=n.i(a.a)(r,e),u=n.i(c.b)(r);o._props[r]=i,i.attribute.source&&(o.observedAttributes=i.attribute.source),Object.defineProperty(o.prototype,r,{configurable:!0,get:function(){var t=this[u];return null==t?i.default:t},set:function(t){this[u]=i.coerce(t),n.i(a.b)(this,i.attribute.target,i.serialize,t),this._updateDebounced()}})};return Object.keys(e).forEach(function(t){return r[t]=e[t]}),r}var c=n(0),a=n(9);e.a=u,n.d(e,"b",function(){return s}),n.d(e,"c",function(){return w});var 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=function(){var t,e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return e=t=function(t){function e(){r(this,e);var i=o(this,t.call(this));return i._updateCallback=function(){if(!i._updating&&i._connected){i._updating=!0;var t=i._prevProps,e=i._prevProps=i.props;i.propsSetCallback(e,t),i.propsUpdatedCallback(e,t)&&i.propsChangedCallback(e,t),i._updating=!1}},i._constructed?o(i):(i._constructed=!0,i._updateDebounced=n.i(c.d)(i._updateCallback),i)}return i(e,t),f(e,[{key:"props",get:function(){var t=this;return n.i(c.c)(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(c.c)(t).forEach(function(n){return n in r&&(e[n]=t[n])})}}],[{key:"observedAttributes",get:function(){return this._observedAttributes},set:function(t){this._observedAttributes=this.observedAttributes.concat(t)}},{key:"props",get:function(){return this._props},set:function(t){var e=this;n.i(c.c)(t).forEach(function(n){var r=t[n];"function"!=typeof r&&(r=u(r)),r({constructor:e},n)})}}]),e.prototype.connectedCallback=function(){this._connected||(this._connected=!0,t.prototype.connectedCallback&&t.prototype.connectedCallback.call(this),this._updateDebounced())},e.prototype.disconnectedCallback=function(){this._connected&&(this._connected=!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(c.c)(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(a.c)(this,e,o)},e}(s),t._observedAttributes=[],t._props={},e},p=JSON.parse,l=JSON.stringify,b=Object.freeze({source:!0}),d=function(t){return n.i(c.e)(t)?0:Number(t)},y=u({attribute:b}),h=u({attribute:b,coerce:function(t){return Array.isArray(t)?t:n.i(c.e)(t)?null:[t]},default:Object.freeze([]),deserialize:p,serialize:l}),v=u({attribute:b,coerce:Boolean,default:!1,deserialize:function(t){return!n.i(c.e)(t)},serialize:function(t){return t?"":null}}),m=u({attribute:b,default:0,coerce:d,deserialize:d,serialize:function(t){return n.i(c.e)(t)?null:String(Number(t))}}),g=u({attribute:b,default:Object.freeze({}),deserialize:p,serialize:l}),_=u({attribute:b,default:"",coerce:String,serialize:function(t){return n.i(c.e)(t)?null:String(t)}}),w={any:y,array:h,boolean:v,number:m,object:g,string:_}},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(a):t}n.d(e,"a",function(){return f});var c=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}}(),a={mode:"open"},f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;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(){},e.prototype.rendererCallback=function(){},c(e,[{key:"renderRoot",get:function(){return this._shadowRoot=this._shadowRoot||(this._shadowRoot=this.shadowRoot||u(this)),this._shadowRoot}}]),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(10);n.d(e,"a",function(){return a});var c=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}}(),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),c(e,null,[{key:"is",get:function(){return this._is||(this._is=n.i(u.a)(this))},set:function(t){this._is=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(11);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,"prop",function(){return c.a}),n.d(e,"withProps",function(){return c.b}),n.d(e,"props",function(){return c.c});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=customElements,n=t.is;return e.get(n)||e.define(n,t),t}e.a=r},function(t,e,n){"use strict";function r(t,e,n){n=i({},u,n);var r=void 0;return"composed"in CustomEvent.prototype?r=new CustomEvent(e,n):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),Object.defineProperty(r,"composed",{value:n.composed})),t.dispatchEvent(r)}var o=n(8);n.n(o);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&&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[e]},t)[f||o.name]=i,t[a]=t[a]}else t[u]=i}}e.a=o},function(t,e){},function(t,e,n){"use strict";function r(t,e){var r=e.attribute,o="object"===(void 0===r?"undefined":f(r))?a({},r):{source:r,target:r};return!0===o.source&&(o.source=n.i(c.a)(t)),!0===o.target&&(o.target=n.i(c.a)(t)),o}function o(t,e){var n=e.coerce,o=e.default,i=e.deserialize,u=e.serialize;return{attribute:r(t,e),coerce:n||function(t){return t},default:o,deserialize:i||function(t){return t},serialize:u||function(t){return t}}}function i(t,e,n){if(!t._syncingPropertyToAttribute){var r=t.constructor.props;for(var o in r){var i=r[o],u=i.attribute.source,c=i.deserialize;u===e&&(t._syncingAttributeToProperty=o,t[o]=null==n?n:c(n),t._syncingAttributeToProperty=null)}}}function u(t,e,n,r){if(e&&t._syncingAttributeToProperty!==e){var o=n(r);t._syncingPropertyToAttribute=!0,null==o?t.removeAttribute(e):t.setAttribute(e,o),t._syncingPropertyToAttribute=!1}}var c=n(0);e.a=o,e.c=i,e.b=u;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"==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}},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=customElements,o=n.i(i.a)(t.name);e.get(r(o,u));)u++;return r(o,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(1)),a=n(2),f=n(3);n.o(u,"h")&&n.d(e,"c",function(){return u.h}),n.d(e,"a",function(){return s}),n.d(e,"b",function(){return p});var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;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._preactDom=n.i(u.render)(e(),t,this._preactDom||t.children[0])},e}(n.i(a.a)(n.i(f.a)(n.i(c.b)(t))))},p=s("undefined"==typeof window?function(){function t(){r(this,t)}return t}():HTMLElement)},function(t,e){t.exports=require("preact")},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=12)}([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){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 i(t){var e=!1,n=0,r=document.createElement("span");return new s(function(){t(),e=!1}).observe(r,{childList:!0}),function(){e||(e=!0,r.textContent=""+n,n+=1)}}function u(t){t=t||{};var e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}function c(t){return"function"==typeof Symbol?Symbol(t?String(t):void 0):a(t)}function a(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)})}e.a=o,e.d=i,n.d(e,"e",function(){return f}),e.c=u,e.b=c;var s="function"==typeof MutationObserver?MutationObserver:function(){function t(e){r(this,t),this.func=e}return t.prototype.observe=function(t){var e=this.func,n={set:function(){"undefined"==typeof Promise?setTimeout(e):new Promise(function(t){return t()}).then(e)}};Object.defineProperty(t,"textContent",n)},t}(),f=function(t){return null==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)}function u(t){var e=t||{},r=function(t,r){var o=t.constructor,i=n.i(a.a)(r,e),u=n.i(c.b)(r);o._props[r]=i,i.attribute.source&&(o.observedAttributes=i.attribute.source),Object.defineProperty(o.prototype,r,{configurable:!0,get:function(){var t=this[u];return null==t?i.default:t},set:function(t){this[u]=i.coerce(t),n.i(a.b)(this,i.attribute.target,i.serialize,t),this._updateDebounced()}})};return Object.keys(e).forEach(function(t){return r[t]=e[t]}),r}var c=n(0),a=n(8);e.a=u,n.d(e,"b",function(){return f}),n.d(e,"c",function(){return w});var s=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=function(){var t,e,f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return e=t=function(t){function e(){r(this,e);var i=o(this,t.call(this));return i._updateCallback=function(){if(!i._updating&&i._connected){i._updating=!0;var t=i._prevProps,e=i._prevProps=i.props;i.propsSetCallback(e,t),i.propsUpdatedCallback(e,t)&&i.propsChangedCallback(e,t),i._updating=!1}},i._constructed?o(i):(i._constructed=!0,i._updateDebounced=n.i(c.d)(i._updateCallback),i)}return i(e,t),s(e,[{key:"props",get:function(){var t=this;return n.i(c.c)(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(c.c)(t).forEach(function(n){return n in r&&(e[n]=t[n])})}}],[{key:"observedAttributes",get:function(){return this._observedAttributes},set:function(t){this._observedAttributes=this.observedAttributes.concat(t)}},{key:"props",get:function(){return this._props},set:function(t){var e=this;n.i(c.c)(t).forEach(function(n){var r=t[n];"function"!=typeof r&&(r=u(r)),r({constructor:e},n)})}}]),e.prototype.connectedCallback=function(){this._connected||(this._connected=!0,t.prototype.connectedCallback&&t.prototype.connectedCallback.call(this),this._updateDebounced())},e.prototype.disconnectedCallback=function(){this._connected&&(this._connected=!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(c.c)(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(a.c)(this,e,o)},e}(f),t._observedAttributes=[],t._props={},e},p=JSON.parse,l=JSON.stringify,b=Object.freeze({source:!0}),d=function(t){return n.i(c.e)(t)?0:Number(t)},y=u({attribute:b}),h=u({attribute:b,coerce:function(t){return Array.isArray(t)?t:n.i(c.e)(t)?null:[t]},default:Object.freeze([]),deserialize:p,serialize:l}),v=u({attribute:b,coerce:Boolean,default:!1,deserialize:function(t){return!n.i(c.e)(t)},serialize:function(t){return t?"":null}}),m=u({attribute:b,default:0,coerce:d,deserialize:d,serialize:function(t){return n.i(c.e)(t)?null:String(Number(t))}}),g=u({attribute:b,default:Object.freeze({}),deserialize:p,serialize:l}),_=u({attribute:b,default:"",coerce:String,serialize:function(t){return n.i(c.e)(t)?null:String(t)}}),w={any:y,array:h,boolean:v,number:m,object:g,string:_}},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(a):t}n.d(e,"a",function(){return s});var c=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}}(),a={mode:"open"},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;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(){},e.prototype.rendererCallback=function(){},c(e,[{key:"renderRoot",get:function(){return this._shadowRoot=this._shadowRoot||(this._shadowRoot=this.shadowRoot||u(this)),this._shadowRoot}}]),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(9);n.d(e,"a",function(){return a});var c=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}}(),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),c(e,null,[{key:"is",get:function(){return this._is||(this._is=n.i(u.a)(this))},set:function(t){this._is=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,"prop",function(){return c.a}),n.d(e,"withProps",function(){return c.b}),n.d(e,"props",function(){return c.c});var a=n(2);n.d(e,"withRender",function(){return a.a});var s=n(3);n.d(e,"withUnique",function(){return s.a})},function(t,e,n){"use strict";function r(t){var e=customElements,n=t.is;return e.get(n)||e.define(n,t),t}e.a=r},function(t,e,n){"use strict";function r(t,e,n){n=o({},i,n);var r=void 0;return"composed"in CustomEvent.prototype?r=new CustomEvent(e,n):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),Object.defineProperty(r,"composed",{value:n.composed})),t.dispatchEvent(r)}e.a=r;var o=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},i={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&&n.composedPath()[0],i=r(o),u=e||o.name||"value";if(u.indexOf(".")>-1){var c=u.split("."),a=c[0],s=c.pop();c.reduce(function(t,e){return t[e]},t)[s||o.name]=i,t[a]=t[a]}else t[u]=i}}e.a=o},function(t,e,n){"use strict";function r(t,e){var r=e.attribute,o="object"===(void 0===r?"undefined":s(r))?a({},r):{source:r,target:r};return!0===o.source&&(o.source=n.i(c.a)(t)),!0===o.target&&(o.target=n.i(c.a)(t)),o}function o(t,e){var n=e.coerce,o=e.default,i=e.deserialize,u=e.serialize;return{attribute:r(t,e),coerce:n||function(t){return t},default:o,deserialize:i||function(t){return t},serialize:u||function(t){return t}}}function i(t,e,n){if(!t._syncingPropertyToAttribute){var r=t.constructor.props;for(var o in r){var i=r[o],u=i.attribute.source,c=i.deserialize;u===e&&(t._syncingAttributeToProperty=o,t[o]=null==n?n:c(n),t._syncingAttributeToProperty=null)}}}function u(t,e,n,r){if(e&&t._syncingAttributeToProperty!==e){var o=n(r);t._syncingPropertyToAttribute=!0,null==o?t.removeAttribute(e):t.setAttribute(e,o),t._syncingPropertyToAttribute=!1}}var c=n(0);e.a=o,e.c=i,e.b=u;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},s="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}},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=customElements,o=n.i(i.a)(t.name);e.get(r(o,u));)u++;return r(o,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(11),c=(n.n(u),n(1)),a=n(2),s=n(3);n.o(u,"h")&&n.d(e,"c",function(){return u.h}),n.d(e,"a",function(){return f}),n.d(e,"b",function(){return p});var f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;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._preactDom=n.i(u.render)(e(),t,this._preactDom||t.children[0])},e}(n.i(a.a)(n.i(s.a)(n.i(c.b)(t))))},p=f("undefined"==typeof window?function(){function t(){r(this,t)}return t}():HTMLElement)},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