@charlietango/ddb-widget
Advanced tools
Comparing version 0.1.39 to 0.1.40
@@ -5,6 +5,27 @@ { | ||
"tag": "ddb-widget", | ||
"dependencies": [], | ||
"dependencies": [ | ||
"link-list", | ||
"widget-launcher", | ||
"widget-window" | ||
], | ||
"componentClass": "DdbWidget", | ||
"componentPath": "components/ddb-widget/ddb-widget.js", | ||
"styles": {}, | ||
"styles": { | ||
"$": { | ||
"stylePaths": [ | ||
"components/ddb-widget/ddb-widget.scss" | ||
] | ||
} | ||
}, | ||
"states": [ | ||
{ | ||
"name": "isMobile" | ||
}, | ||
{ | ||
"name": "isOpen" | ||
}, | ||
{ | ||
"name": "widgetData" | ||
} | ||
], | ||
"shadow": true | ||
@@ -125,6 +146,6 @@ }, | ||
"name": "@stencil/core", | ||
"version": "0.16.0", | ||
"typescriptVersion": "3.1.6" | ||
"version": "0.16.2", | ||
"typescriptVersion": "3.2.2" | ||
}, | ||
"bundles": [] | ||
} |
@@ -1,8 +0,98 @@ | ||
console.log('I WAS HERE IN ddb-widget.tsx'); | ||
function initTracking() { | ||
window._ti = window._ti || {}; | ||
window._ti['p_widget'] = 'Widget:Dit Digitale Bibliotek'; | ||
window._tiConfig = window._tiConfig || { | ||
tiDomain: 'responder.wt-safetag.com', | ||
tiId: '476651662471322', | ||
option: {} | ||
}; | ||
(function (c, d, a, f) { c.wts = c.wts || []; var g = function (b) { var a = ""; b.customDomain && b.customPath ? a = b.customDomain + "/" + b.customPath : b.tiDomain && b.tiId && (a = b.tiDomain + "/resp/api/get/" + b.tiId + "?url=" + encodeURIComponent(c.location.href) + "&v=5"); if (b.option) | ||
for (var d in b.option) | ||
a += "&" + d + "=" + encodeURIComponent(b.option[d]); return a; }; if (-1 === d.cookie.indexOf("wt_r=1")) { | ||
var e = d.getElementsByTagName(a)[0]; | ||
a = d.createElement(a); | ||
a.async = !0; | ||
a.onload = function () { if ("undefined" !== typeof c.wt_r && !isNaN(c.wt_r)) { | ||
var b = new Date, a = b.getTime() + 1E3 * parseInt(c.wt_r); | ||
b.setTime(a); | ||
d.cookie = "wt_r=1;path=/;expires=" + b.toUTCString(); | ||
} }; | ||
a.onerror = function () { "undefined" !== typeof c.wt_mcp_hide && "function" === typeof c.wt_mcp_hide.show && (c.wt_mcp_hide.show(), c.wt_mcp_hide.show = function () { }); }; | ||
a.src = "//" + g(f); | ||
e.parentNode.insertBefore(a, e); | ||
} })(window, document, "script", _tiConfig); | ||
} | ||
function isMobileDevice() { | ||
return (typeof window.orientation !== "undefined") || (navigator.userAgent.indexOf('IEMobile') !== -1); | ||
} | ||
; | ||
export class DdbWidget { | ||
constructor() { | ||
this.isOpen = false; | ||
this.toggleWidget = () => { | ||
this.isOpen = !this.isOpen; | ||
if (this.isOpen && window["wt"]) { | ||
window["wt"].sendinfo({ linkId: 'e_widget_foldud' }); | ||
} | ||
if (this.isMobile) { | ||
document.getElementsByTagName('html')[0].style.overflowY = this.isOpen ? 'hidden' : 'auto'; | ||
} | ||
}; | ||
this.handleLauncherClick = (event) => { | ||
event.stopPropagation(); | ||
this.toggleWidget(); | ||
}; | ||
this.handleOverlayClick = (event) => { | ||
event.stopPropagation(); | ||
if (this.isOpen) { | ||
this.toggleWidget(); | ||
} | ||
}; | ||
this.handleCloseClick = (_event) => { | ||
this.toggleWidget(); | ||
}; | ||
} | ||
componentWillLoad() { | ||
initTracking(); | ||
const api = 'https://f60f89fd-2e07-4931-b871-2380fd93d266.mock.pstmn.io/ddb/list'; | ||
return this.fetchWidgetData(api); | ||
} | ||
componentDidLoad() { | ||
this.isMobile = isMobileDevice(); | ||
} | ||
fetchWidgetData(api) { | ||
return fetch(api) | ||
.then(res => res.json()) | ||
.then(body => { | ||
const parsedBody = typeof body === 'string' ? JSON.parse(body) : body; | ||
this.widgetData = parsedBody; | ||
}) | ||
.catch(err => console.error(err)); | ||
} | ||
render() { | ||
return (h("div", null, "Me widget")); | ||
if (!this.widgetData) { | ||
return null; | ||
} | ||
const { links, color, launcherLogo, topLogo, promoImage, promoText, settings } = this.widgetData; | ||
return (h("div", { class: `widget-overlay ${this.isOpen ? 'active' : ''}`, onClick: this.handleOverlayClick }, | ||
h("div", { class: 'widget-container' }, | ||
this.isOpen && | ||
h("widget-window", { logo: topLogo, onCloseClick: this.handleCloseClick, numberOfItems: links.length }, | ||
h("link-list", { links: links, color: color })), | ||
h("widget-launcher", { color: color, logo: launcherLogo, promoImage: promoImage, promoText: promoText, settings: settings, isOpen: this.isOpen, onClick: this.handleLauncherClick })))); | ||
} | ||
static get is() { return "ddb-widget"; } | ||
static get encapsulation() { return "shadow"; } | ||
static get properties() { return { | ||
"isMobile": { | ||
"state": true | ||
}, | ||
"isOpen": { | ||
"state": true | ||
}, | ||
"widgetData": { | ||
"state": true | ||
} | ||
}; } | ||
static get style() { return "/**style-placeholder:ddb-widget:**/"; } | ||
} |
@@ -1,33 +0,1 @@ | ||
! function (e, t, r, i, n, s, d, o, c, a, u, l, p, h) { | ||
console.log('STEP ONE') | ||
for (u = e.DdbWidget = e.DdbWidget || {}, (l = t.createElement("style")).innerHTML = c + "{visibility:hidden}.hydrated{visibility:inherit}", l.setAttribute("data-styles", ""), p = t.head.querySelector("meta[charset]"), t.head.insertBefore(l, p ? p.nextSibling : t.head.firstChild), function (e, t, r) { | ||
(e["s-apps"] = e["s-apps"] || []).push("DdbWidget"), r.componentOnReady || (r.componentOnReady = function () { | ||
var t = this; | ||
function r(r) { | ||
console.log('STEP TWO') | ||
if (t.nodeName.indexOf("-") > 0) { | ||
for (var i = e["s-apps"], n = 0, s = 0; s < i.length; s++) | ||
if (e[i[s]].componentOnReady) { | ||
if (e[i[s]].componentOnReady(t, r)) return; | ||
n++ | ||
} if (n < i.length) return void(e["s-cr"] = e["s-cr"] || []).push([t, r]) | ||
} | ||
r(null) | ||
} | ||
return e.Promise ? new e.Promise(r) : { | ||
then: r | ||
} | ||
}) | ||
}(e, 0, a), n = n || u.resourcesUrl, l = (p = t.querySelectorAll("script")).length - 1; l >= 0 && !(h = p[l]).src && !h.hasAttribute("data-resources-url"); l--); | ||
p = h.getAttribute("data-resources-url"), !n && p && (n = p), !n && h.src && (n = (p = h.src.split("/").slice(0, -1)).join("/") + (p.length ? "/" : "") + "ddb-widget/"), l = t.createElement("script"), | ||
function (e, t, r, i) { | ||
console.log('STEP THREE') | ||
return !(t.search.indexOf("core=esm") > 0) && (!(!(t.search.indexOf("core=es5") > 0 || "file:" === t.protocol) && e.customElements && e.customElements.define && e.fetch && e.CSS && e.CSS.supports && e.CSS.supports("color", "var(--c)") && "noModule" in r) || function (e) { | ||
try { | ||
return new Function('import("")'), !1 | ||
} catch (e) {} | ||
return !0 | ||
}()) | ||
}(e, e.location, l) ? l.src = n + "ddb-widget.vwixocun.js" : (l.src = n + "ddb-widget.0nxan4aw.js", l.setAttribute("type", "module"), l.setAttribute("crossorigin", !0)), l.setAttribute("data-resources-url", n), l.setAttribute("data-namespace", "ddb-widget"), t.head.appendChild(l) | ||
}(window, document, 0, 0, "https://unpkg.com/@charlietango/ddb-widget/dist/ddb-widget/", 0, 0, 0, "ddb-widget,link-list,widget-launcher,widget-window", HTMLElement.prototype); | ||
!function(e,t,r,i,n,s,d,o,c,a,u,l,p,h){for(u=e.DdbWidget=e.DdbWidget||{},(l=t.createElement("style")).innerHTML=c+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles",""),p=t.head.querySelector("meta[charset]"),t.head.insertBefore(l,p?p.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("DdbWidget"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var i=e["s-apps"],n=0,s=0;s<i.length;s++)if(e[i[s]].componentOnReady){if(e[i[s]].componentOnReady(t,r))return;n++}if(n<i.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,a),n=n||u.resourcesUrl,l=(p=t.querySelectorAll("script")).length-1;l>=0&&!(h=p[l]).src&&!h.hasAttribute("data-resources-url");l--);p=h.getAttribute("data-resources-url"),!n&&p&&(n=p),!n&&h.src&&(n=(p=h.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"ddb-widget/"),l=t.createElement("script"),function(e,t,r,i){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,l)?l.src=n+"ddb-widget.jqalzkna.js":(l.src=n+"ddb-widget.0lgrbqqi.js",l.setAttribute("type","module"),l.setAttribute("crossorigin",!0)),l.setAttribute("data-resources-url",n),l.setAttribute("data-namespace","ddb-widget"),t.head.appendChild(l)}(window,document,0,0,"https://unpkg.com/@charlietango/ddb-widget/dist/ddb-widget/",0,0,0,"ddb-widget,link-list,widget-launcher,widget-window",HTMLElement.prototype); |
// DdbWidget: Host Data, ES Module/es2017 Target | ||
export const DdbWidget = ["ddb-widget","jvsxrcsa",0,0,1]; | ||
export const LinkList = ["link-list","wkwca3q6",1,[["color",1,0,1,2],["links",1]],1]; | ||
export const WidgetLauncher = ["widget-launcher","axjpqayu",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1]; | ||
export const WidgetWindow = ["widget-window","mduuocen",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]; | ||
export const COMPONENTS = [["ddb-widget","u9l0443m",1,[["isMobile",16],["isOpen",16],["widgetData",16]],1],["link-list","u9l0443m",1,[["color",1,0,1,2],["links",1]],1],["widget-launcher","u9l0443m",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1],["widget-window","u9l0443m",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]] |
@@ -5,5 +5,5 @@ /*! | ||
*/ | ||
function n(n,t){return"sc-"+n.n+(t&&t!==c?"-"+t:"")}function t(n,t){return n+(t?"-h":"-s")}function e(n,t){for(var e,r,i=null,o=!1,u=!1,f=arguments.length;f-- >2;)M.push(arguments[f]);for(;M.length>0;){var c=M.pop();if(c&&void 0!==c.pop)for(f=c.length;f--;)M.push(c[f]);else"boolean"==typeof c&&(c=null),(u="function"!=typeof n)&&(null==c?c="":"number"==typeof c?c=String(c):"string"!=typeof c&&(u=!1)),u&&o?i[i.length-1].vtext+=c:null===i?i=[u?{vtext:c}:c]:i.push(u?{vtext:c}:c),o=u}if(null!=t){if(t.className&&(t.class=t.className),"object"==typeof t.class){for(f in t.class)t.class[f]&&M.push(f);t.class=M.join(" "),M.length=0}null!=t.key&&(e=t.key),null!=t.name&&(r=t.name)}return"function"==typeof n?n(t,i||[],g):{vtag:n,vchildren:i,vtext:void 0,vattrs:t,vkey:e,vname:r,t:void 0,e:!1}}function r(n,t,e){void 0===e&&(e={});var r=Array.isArray(t)?t:[t],i=n.document,o=e.hydratedCssClass||"hydrated",u=r.map(function(n){return n[0]});if(u.length>0){var c=i.createElement("style");c.innerHTML=u.join()+"{visibility:hidden}."+o+"{visibility:inherit}",c.setAttribute("data-styles",""),i.head.insertBefore(c,i.head.firstChild)}var a=e.namespace||"DdbWidget";return W||(W=!0,function s(n,t,e){(n["s-apps"]=n["s-apps"]||[]).push(t),e.componentOnReady||(e.componentOnReady=function t(){function e(t){if(r.nodeName.indexOf("-")>0){for(var e=n["s-apps"],i=0,o=0;o<e.length;o++)if(n[e[o]].componentOnReady){if(n[e[o]].componentOnReady(r,t))return;i++}if(i<e.length)return void(n["s-cr"]=n["s-cr"]||[]).push([r,t])}t(null)}var r=this;return n.Promise?new n.Promise(e):{then:e}})}(n,a,n.HTMLElement.prototype)),applyPolyfills(n).then(function(){if(!T[a]){var u={},c=e.resourcesUrl||"./";f(a,u,n,i,c,o),T[a]=x(a,u,n,i,c,o,r)}(function s(){t.forEach(function(t){var e;!function r(n){return/\{\s*\[native code\]\s*\}/.test(""+n)}(n.customElements.define)?(e=function(t){return n.HTMLElement.call(this,t)}).prototype=Object.create(n.HTMLElement.prototype,{constructor:{value:e,configurable:!0}}):e=new Function("w","return class extends w.HTMLElement{}")(n),T[a].r(function i(n){var t=k(n),e=t.i,r=p(n[0]);return t.i=function(n){var t=n.mode,i=n.scoped;return function o(n,t,e){return import( | ||
function e(e,t){return"sc-"+e.t+(t&&t!==r?"-"+t:"")}function t(e,t){return e+(t?"-h":"-s")}function n(e,t){let n,o,i=null,r=!1,l=!1,s=arguments.length;for(;s-- >2;)h.push(arguments[s]);for(;h.length>0;){let t=h.pop();if(t&&void 0!==t.pop)for(s=t.length;s--;)h.push(t[s]);else"boolean"==typeof t&&(t=null),(l="function"!=typeof e)&&(null==t?t="":"number"==typeof t?t=String(t):"string"!=typeof t&&(l=!1)),l&&r?i[i.length-1].vtext+=t:null===i?i=[l?{vtext:t}:t]:i.push(l?{vtext:t}:t),r=l}if(null!=t){if(t.className&&(t.class=t.className),"object"==typeof t.class){for(s in t.class)t.class[s]&&h.push(s);t.class=h.join(" "),h.length=0}null!=t.key&&(n=t.key),null!=t.name&&(o=t.name)}return"function"==typeof e?e(t,i||[],w):{vtag:e,vchildren:i,vtext:void 0,vattrs:t,vkey:n,vname:o,o:void 0,i:!1}}function o(e,t,n={}){let o=Array.isArray(t)?t:[t];const r=e.document,l=n.hydratedCssClass||"hydrated",s=n.exclude;s&&(o=o.filter(e=>-1===s.indexOf(e[0])));const a=o.map(e=>e[0]);if(a.length>0){const e=r.createElement("style");e.innerHTML=a.join()+"{visibility:hidden}."+l+"{visibility:inherit}",e.setAttribute("data-styles",""),r.head.insertBefore(e,r.head.firstChild)}const c=n.namespace||"DdbWidget";return P||(P=!0,function u(e,t,n){(e["s-apps"]=e["s-apps"]||[]).push(t),n.componentOnReady||(n.componentOnReady=function t(){function n(t){if(o.nodeName.indexOf("-")>0){for(var n=e["s-apps"],i=0,r=0;r<n.length;r++)if(e[n[r]].componentOnReady){if(e[n[r]].componentOnReady(o,t))return;i++}if(i<n.length)return void(e["s-cr"]=e["s-cr"]||[]).push([o,t])}t(null)}var o=this;return e.Promise?new e.Promise(n):{then:n}})}(e,c,e.HTMLElement.prototype)),applyPolyfills(e).then(()=>{if(!x[c]){const t={},s=n.resourcesUrl||"./";i(c,t,e,r,s,l),x[c]=O(c,t,e,r,s,l,o)}(function t(){o.forEach(t=>{let n;!function o(e){return/\{\s*\[native code\]\s*\}/.test(""+e)}(e.customElements.define)?(n=function(t){return e.HTMLElement.call(this,t)}).prototype=Object.create(e.HTMLElement.prototype,{constructor:{value:n,configurable:!0}}):n=new Function("w","return class extends w.HTMLElement{}")(e),x[c].l(function i(e){const t=M(e),n=t.s,o=f(e[0]);return t.s=(({mode:e,scoped:t})=>{return function i(e,t,n){return import( | ||
/* webpackInclude: /\.entry\.js$/ */ | ||
/* webpackMode: "lazy" */ | ||
"./build/"+n+(t?".sc":"")+".entry.js").then(function(n){return n[e]})}("string"==typeof e?e:e[t],i,r)},t}(t),e)})})()})}this&&this.o;var i=this&&this.u||function(n,t,e,r){return new(e||(e=Promise))(function(i,o){function u(n){try{c(r.f(n))}catch(n){o(n)}}function f(n){try{c(r.throw(n))}catch(n){o(n)}}function c(n){n.c?i(n.value):new e(function(t){t(n.value)}).then(u,f)}c((r=r.apply(n,t||[])).f())})},o=this&&this.a||function(n,t){function e(e){return function(u){return function c(e){if(r)throw new TypeError("Generator is already executing.");for(;f;)try{if(r=1,i&&(o=2&e[0]?i.return:e[0]?i.throw||((o=i.return)&&o.call(i),0):i.f)&&!(o=o.call(i,e[1])).c)return o;switch(i=0,o&&(e=[2&e[0],o.value]),e[0]){case 0:case 1:o=e;break;case 4:return f.s++,{value:e[1],c:!1};case 5:f.s++,i=e[1],e=[0];continue;case 7:e=f.l.pop(),f.v.pop();continue;default:if(!(o=(o=f.v).length>0&&o[o.length-1])&&(6===e[0]||2===e[0])){f=0;continue}if(3===e[0]&&(!o||e[1]>o[0]&&e[1]<o[3])){f.s=e[1];break}if(6===e[0]&&f.s<o[1]){f.s=o[1],o=e;break}if(o&&f.s<o[2]){f.s=o[2],f.l.push(e);break}o[2]&&f.l.pop(),f.v.pop();continue}e=t.call(n,f)}catch(n){e=[6,n],i=0}finally{r=o=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,c:!0}}([e,u])}}var r,i,o,u,f={s:0,p:function(){if(1&o[0])throw o[1];return o[1]},v:[],l:[]};return u={f:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u},u=this,f=function(){};function applyPolyfills(n){n.d=function(){function t(){var n=setTimeout;return function(){return n(e,1)}}function e(){for(var n=0;n<m;n+=2)(0,S[n])(S[n+1]),S[n]=void 0,S[n+1]=void 0;m=0}function r(n,t){var e=this,r=new this.constructor(o);void 0===r[_]&&d(r);var i=e.y;if(i){var u=arguments[i-1];g(function(){return h(i,r,u,e.w)})}else v(e,r,n,t);return r}function i(n){if(n&&"object"==typeof n&&n.constructor===this)return n;var t=new this(o);return c(t,n),t}function o(){}function u(n){try{return n.then}catch(n){return P.error=n,P}}function f(n,t,e){t.constructor===n.constructor&&e===r&&t.constructor.resolve===i?function(n,t){t.y===T?s(n,t.w):t.y===W?l(n,t.w):v(t,void 0,function(t){return c(n,t)},function(t){return l(n,t)})}(n,t):e===P?(l(n,P.error),P.error=null):void 0===e?s(n,t):"function"==typeof e?function(n,t,e){g(function(n){var r=!1,i=function(n,t,e,r){try{n.call(t,e,r)}catch(n){return n}}(e,t,function(e){r||(r=!0,t!==e?c(n,e):s(n,e))},function(t){r||(r=!0,l(n,t))},n.m);!r&&i&&(r=!0,l(n,i))},n)}(n,t,e):s(n,t)}function c(n,t){if(n===t)l(n,new TypeError("cannot resolve promise w/ itself"));else{var e=typeof t;null===t||"object"!==e&&"function"!==e?s(n,t):f(n,t,u(t))}}function a(n){n.b&&n.b(n.w),p(n)}function s(n,t){n.y===x&&(n.w=t,n.y=T,0!==n.M.length&&g(p,n))}function l(n,t){n.y===x&&(n.y=W,n.w=t,g(a,n))}function v(n,t,e,r){var i=n.M,o=i.length;n.b=null,i[o]=t,i[o+T]=e,i[o+W]=r,0===o&&n.y&&g(p,n)}function p(n){var t=n.M,e=n.y;if(0!==t.length){for(var r,i,o=n.w,u=0;u<t.length;u+=3)r=t[u],i=t[u+e],r?h(e,r,i,o):i(o);n.M.length=0}}function h(n,t,e,r){var i="function"==typeof e,o=void 0,u=void 0,f=void 0,a=void 0;if(i){try{o=e(r)}catch(n){P.error=n,o=P}if(o===P?(a=!0,u=o.error,o.error=null):f=!0,t===o)return void l(t,new TypeError("Cannot return same promise"))}else o=r,f=!0;t.y===x&&(i&&f?c(t,o):a?l(t,u):n===T?s(t,o):n===W&&l(t,o))}function d(n){n[_]=N++,n.y=void 0,n.w=void 0,n.M=[]}var y,w=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)},m=0,b=void 0,M=void 0,g=function(n,t){S[m]=n,S[m+1]=t,2===(m+=2)&&(M?M(e):O())},k=(y=void 0!==n?n:void 0)||{},j=k.g||k.k;k="undefined"==typeof self;var $,A,E,C="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,S=Array(1e3),O=void 0;O=j?($=0,A=new j(e),E=document.createTextNode(""),A.observe(E,{characterData:!0}),function(){E.data=$=++$%2}):C?function(){var n=new MessageChannel;return n.j.onmessage=e,function(){return n.A.postMessage(0)}}():void 0===y&&"function"==typeof require?function(){try{var n=Function("return this")().C("vertx");return void 0!==(b=n.S||n.O)?function(){b(e)}:t()}catch(n){return t()}}():t();var _=Math.random().toString(36).substring(2),x=void 0,T=1,W=2,P={error:null},N=0,L=function(){function n(n,t){this._=n,this.x=new n(o),this.x[_]||d(this.x),w(t)?(this.T=this.length=t.length,this.w=Array(this.length),0===this.length?s(this.x,this.w):(this.length=this.length||0,this.W(t),0===this.T&&s(this.x,this.w))):l(this.x,Error("Array Methods must be provided an Array"))}return n.prototype.W=function(n){for(var t=0;this.y===x&&t<n.length;t++)this.P(n[t],t)},n.prototype.P=function(n,t){var e=this._,c=e.resolve;c===i?(c=u(n))===r&&n.y!==x?this.N(n.y,t,n.w):"function"!=typeof c?(this.T--,this.w[t]=n):e===R?(f(e=new e(o),n,c),this.L(e,t)):this.L(new e(function(t){return t(n)}),t):this.L(c(n),t)},n.prototype.N=function(n,t,e){var r=this.x;r.y===x&&(this.T--,n===W?l(r,e):this.w[t]=e),0===this.T&&s(r,this.w)},n.prototype.L=function(n,t){var e=this;v(n,void 0,function(n){return e.N(T,t,n)},function(n){return e.N(W,t,n)})},n}(),R=function(){function n(t){if(this[_]=N++,this.w=this.y=void 0,this.M=[],o!==t){if("function"!=typeof t)throw new TypeError("Must pass a resolver fn as 1st arg");if(!(this instanceof n))throw new TypeError("Failed to construct 'Promise': Use the 'new' operator.");!function(n,t){try{t(function(t){c(n,t)},function(t){l(n,t)})}catch(t){l(n,t)}}(this,t)}}return n.prototype.catch=function(n){return this.then(null,n)},n.prototype.R=function(n){var t=this.constructor;return this.then(function(e){return t.resolve(n()).then(function(){return e})},function(e){return t.resolve(n()).then(function(){throw e})})},n}();return R.prototype.then=r,R.all=function(n){return new L(this,n).x},R.race=function(n){var t=this;return w(n)?new t(function(e,r){for(var i=n.length,o=0;o<i;o++)t.resolve(n[o]).then(e,r)}):new t(function(n,t){return t(new TypeError("Must pass array to race"))})},R.resolve=i,R.reject=function(n){var t=new this(o);return l(t,n),t},R.D=function(n){M=n},R.F=function(n){g=n},R.H=g,R.q=function(){var n=void 0;if("undefined"!=typeof global)n=global;else if("undefined"!=typeof self)n=self;else try{n=Function("return this")()}catch(n){throw Error("polyfill failed")}var t=n.Promise;if(t){var e=null;try{e=Object.prototype.toString.call(t.resolve())}catch(n){}if("[object Promise]"===e&&!t.U)return}n.Promise=R},R.Promise=R,R.q(),R}();var t=[];return n.customElements&&(!n.Element||n.Element.prototype.closest&&n.Element.prototype.matches&&n.Element.prototype.remove)||t.push(import("./polyfills/dom.js")),"function"==typeof Object.assign&&Object.entries||t.push(import("./polyfills/object.js")),Array.prototype.find&&Array.prototype.includes||t.push(import("./polyfills/array.js")),String.prototype.startsWith&&String.prototype.endsWith||t.push(import("./polyfills/string.js")),n.fetch||t.push(import("./polyfills/fetch.js")),"undefined"!=typeof WeakMap&&n.CSS&&n.CSS.supports&&n.CSS.supports("color","var(--c)")||t.push(import("./polyfills/css-shim.js")),function e(){try{var n=new URL("b","http://a");return n.pathname="c%20d","http://a/c%20d"===n.href&&n.B}catch(n){return!1}}||t.push(import("./polyfills/url.js")),Promise.all(t).then(function(t){t.forEach(function(t){try{t.applyPolyfill(n,n.document)}catch(n){}})})}var c="$",a={},s=function(t,e,r,i){var o=r.n+c,u=r[o];if((2===r.I||1===r.I&&!t.Q.G)&&(i["s-sc"]=u?n(r,i.mode):n(r)),u){var f=e.Y.head;if(e.G)if(1===r.I)f=i.shadowRoot;else{var a=i.getRootNode();a.host&&(f=a)}var s=t.Z.get(f);if(s||t.Z.set(f,s={}),!s[o]){var l=void 0;if((l=e.z("style")).innerHTML=u,s[o]=!0,l){var v=f.querySelectorAll("[data-styles]");e.J(f,l,v.length&&v[v.length-1].nextSibling||f.firstChild)}}}},l=function(n){return null!=n},v=function(n){return n.toLowerCase()},p=function(n){return v(n).split("-").map(function(n){return n.charAt(0).toUpperCase()+n.slice(1)}).join("")},h=function(n,t,e,r,i,o){if("class"!==e||o)if("style"===e){for(var u in r)i&&null!=i[u]||(/-/.test(u)?t.style.removeProperty(u):t.style[u]="");for(var u in i)r&&i[u]===r[u]||(/-/.test(u)?t.style.setProperty(u,i[u]):t.style[u]=i[u])}else if("o"!==e[0]||"n"!==e[1]||!/[A-Z]/.test(e[2])||e in t)if("list"!==e&&"type"!==e&&!o&&(e in t||-1!==["object","function"].indexOf(typeof i)&&null!==i)){var f=n.K(t);f&&f.V&&f.V[e]?y(t,e,i):"ref"!==e&&(y(t,e,null==i?"":i),null!=i&&!1!==i||n.Q.X(t,e))}else null!=i&&"key"!==e?function(n,t,e,r,i){void 0===r&&(r="boolean"==typeof e),i=t!==(t=t.replace(/^xlink\:?/,"")),null==e||r&&(!e||"false"===e)?i?n.removeAttributeNS("http://www.w3.org/1999/xlink",v(t)):n.removeAttribute(t):"function"!=typeof e&&(e=r?"":e.toString(),i?n.setAttributeNS("http://www.w3.org/1999/xlink",v(t),e):n.setAttribute(t,e))}(t,e,i):(o||n.Q.nn(t,e)&&(null==i||!1===i))&&n.Q.X(t,e);else e=v(e)in t?v(e.substring(2)):v(e[2])+e.substring(3),i?i!==r&&n.Q.tn(t,e,i):n.Q.en(t,e);else if(r!==i){var c=d(r),a=d(i),s=c.filter(function(n){return!a.includes(n)}),l=d(t.className).filter(function(n){return!s.includes(n)}),p=a.filter(function(n){return!c.includes(n)&&!l.includes(n)});l.push.apply(l,p),t.className=l.join(" ")}},d=function(n){return null==n||""===n?[]:n.trim().split(/\s+/)},y=function(n,t,e){try{n[t]=e}catch(n){}},w=function(n,t,e,r,i){var o=11===e.t.nodeType&&e.t.host?e.t.host:e.t,u=t&&t.vattrs||a,f=e.vattrs||a;for(i in u)f&&null!=f[i]||null==u[i]||h(n,o,i,u[i],void 0,r,e.e);for(i in f)i in u&&f[i]===("value"===i||"checked"===i?o[i]:u[i])||h(n,o,i,u[i],f[i],r,e.e)},m=!1,b=function(n,t){n&&(n.vattrs&&n.vattrs.ref&&n.vattrs.ref(t?null:n.t),n.vchildren&&n.vchildren.forEach(function(n){b(n,t)}))},M=[],g={forEach:function(n,t){return n.forEach(t)},map:function(n,t){return n.map(t)}},k=function(n,t,e){var r=n[0],i=n[1],o=n[3],u=n[4],f=n[5],c={color:{rn:"color"}};if(o)for(t=0;t<o.length;t++)c[(e=o[t])[0]]={in:e[1],on:!!e[2],rn:"string"==typeof e[3]?e[3]:e[3]?e[0]:0,un:e[4]};return{n:r,i,V:Object.assign({},c),I:u,fn:f?f.map(j):void 0}},j=function(n){return{cn:n[0],an:n[1],sn:!!n[2],ln:!!n[3],vn:!!n[4]}},$=function(n,t){return l(t)&&"object"!=typeof t&&"function"!=typeof t?n===Boolean||4===n?"false"!==t&&(""===t||!!t):n===Number||8===n?parseFloat(t):n===String||2===n?t.toString():t:t},A=function(n,t,e){n.pn.add(t),n.hn.has(t)||(n.hn.set(t,!0),n.dn?n.queue.write(function(){return E(n,t,e)}):n.queue.tick(function(){return E(n,t,e)}))},E=function(n,r,f,c,a,s){return i(u,void 0,void 0,function(){var i,u;return o(this,function(o){switch(o.s){case 0:return n.hn.delete(r),n.yn.has(r)?[3,12]:(a=n.wn.get(r))?[3,6]:(s=n.mn.get(r))&&!s["s-rn"]?((s["s-rc"]=s["s-rc"]||[]).push(function(){E(n,r,f)}),[2]):(a=O(n,r,n.bn.get(r),f),[3,5]);case 1:return o.v.push([1,4,,5]),a.componentWillLoad?[4,a.componentWillLoad()]:[3,3];case 2:o.p(),o.s=3;case 3:return[3,5];case 4:return i=o.p(),n.Mn(i,3,r),[3,5];case 5:case 6:return[3,11];case 7:return o.v.push([7,10,,11]),a.componentWillUpdate?[4,a.componentWillUpdate()]:[3,9];case 8:o.p(),o.s=9;case 9:return[3,11];case 10:return u=o.p(),n.Mn(u,5,r),[3,11];case 11:(function(n,r,i,o){try{var u=r.gn.host,f=r.gn.encapsulation,c="shadow"===f&&n.Q.G,a=i;if(c&&(a=i.shadowRoot),!i["s-rn"]){n.kn(n,n.Q,r,i);var s=i["s-sc"];s&&(n.Q.jn(i,t(s,!0)),"scoped"===f&&n.Q.jn(i,t(s)))}if(o.render||o.hostData||u){n.$n=!0;var l=o.render&&o.render();n.$n=!1;var v=e(null,void 0,l),p=n.An.get(i)||{};p.t=a,n.An.set(i,n.render(i,p,v,c,f))}i["s-rn"]=!0,i["s-rc"]&&(i["s-rc"].forEach(function(n){return n()}),i["s-rc"]=null)}catch(t){n.$n=!1,n.Mn(t,8,i,!0)}})(n,n.K(r),r,a),r["s-init"](),o.s=12;case 12:return[2]}})})},C=function(n,t,e,r,i,o,u){(u=n.En.get(t))||n.En.set(t,u={}),r!==u[e]&&(u[e]=r,n.wn.get(t)&&!n.$n&&t["s-rn"]&&A(n,t,i))},S=function(n,t,e,r){Object.defineProperty(n,t,{configurable:!0,get:e,set:r})},O=function(n,t,e,r,i,o){try{i=new(o=n.K(t).gn),function(n,t,e,r,i,o){n.Cn.set(r,e),n.En.has(e)||n.En.set(e,{}),Object.entries(Object.assign({color:{type:String}},t.properties,{mode:{type:String}})).forEach(function(t){var u=t[0],f=t[1];(function(n,t,e,r,i,o,u,f,c){if(t.type||t.state){var a=n.En.get(e);t.state||(!t.attr||void 0!==a[i]&&""!==a[i]||(f=o&&o.Sn)&&l(c=f[t.attr])&&(a[i]=$(t.type,c)),e.hasOwnProperty(i)&&(void 0===a[i]&&(a[i]=$(t.type,e[i])),"mode"!==i&&delete e[i])),r.hasOwnProperty(i)&&void 0===a[i]&&(a[i]=r[i]),S(r,i,function s(t){return(t=n.En.get(n.Cn.get(this)))&&t[i]},function v(e,r){(r=n.Cn.get(this))&&(t.state||t.mutable)&&C(n,r,i,e,u)})}})(n,f,e,r,u,i,o)})}(n,o,t,i,e,r)}catch(e){i={},n.Mn(e,7,t,!0)}return n.wn.set(t,i),i},_=function(n,t,e,r,i,o){if(n.pn.delete(t),(i=n.mn.get(t))&&((r=i["s-ld"])&&((e=r.indexOf(t))>-1&&r.splice(e,1),r.length||i["s-init"]&&i["s-init"]()),n.mn.delete(t)),n.On.length&&!n.pn.size)for(;o=n.On.shift();)o()},x=function(n,t,r,i,o,u){var f=r.performance,a={html:{}},p=r[n]=r[n]||{},h=function(n,t,e){var r=new WeakMap,i={Y:e,G:!!e.documentElement.attachShadow,_n:!1,xn:function(n){return n.nodeType},z:function(n){return e.createElement(n)},Tn:function(n,t){return e.createElementNS(n,t)},Wn:function(n){return e.createTextNode(n)},Pn:function(n){return e.createComment(n)},J:function(n,t,e){return n.insertBefore(t,e)},Nn:function(n){return n.remove()},Ln:function(n,t){return n.appendChild(t)},jn:function(n,t){if(n.classList)n.classList.add(t);else if("svg"===n.nodeName.toLowerCase()){var e=n.getAttribute("class")||"";e.split(" ").includes(t)||(e+=" "+t),n.setAttribute("class",e.trim())}},Rn:function(n){return n.childNodes},Dn:function(n){return n.parentNode},Fn:function(n){return n.nextSibling},Hn:function(n){return n.previousSibling},qn:function(n){return v(n.nodeName)},Un:function(n){return n.textContent},Bn:function(n,t){return n.textContent=t},In:function(n,t){return n.getAttribute(t)},Gn:function(n,t,e){return n.setAttribute(t,e)},X:function(n,t){return n.removeAttribute(t)},nn:function(n,t){return n.hasAttribute(t)},Qn:function(t){return t.getAttribute("mode")||(n.Context||{}).mode},Yn:function(n,r){return"child"===r?n.firstElementChild:"parent"===r?i.Zn(n):"body"===r?e.body:"document"===r?e:"window"===r?t:n},tn:function(t,e,o,u,f,c,a,s,l){var v=t,p=o,h=r.get(t);l=e,h&&h[l]&&h[l](),"object"==typeof c&&(v=c),v&&(a=i._n?{capture:!!u,passive:!!f}:!!u,n.ael(v,e,p,a),h||r.set(t,h={}),h[l]=function(){v&&n.rel(v,e,p,a),h[l]=null})},en:function(n,t,e){(e=r.get(n))&&(t?e[t]&&e[t]():Object.keys(e).forEach(function(n){e[n]&&e[n]()}))},zn:function(n,e,r,i){return i=new t.CustomEvent(e,r),n&&n.dispatchEvent(i),i},Zn:function(n,t){return(t=i.Dn(n))&&11===i.xn(t)?t.host:t},Jn:function(n,t,e,r){return n.setAttributeNS(t,e,r)},Kn:function(n,t){return n.attachShadow(t)}};return"function"!=typeof t.CustomEvent&&(t.CustomEvent=function(n,t,r){return t=t||{},(r=e.createEvent("CustomEvent")).initCustomEvent(n,t.bubbles,t.cancelable,t.detail),r},t.CustomEvent.prototype=t.Event.prototype),n.ael||(n.ael=function(n,t,e,r){return n.addEventListener(t,e,r)},n.rel=function(n,t,e,r){return n.removeEventListener(t,e,r)}),i}(p,r,i),d=h.Y.documentElement,y=r["s-defined"]=r["s-defined"]||{},M={Q:h,r:function(n,t){r.customElements.get(n.n)||(function(n,t,e,r,i){if(e.connectedCallback=function(){(function(n,t,e){n.yn.delete(e),n.Vn.has(e)||(n.Xn=!0,n.pn.add(e),n.Vn.set(e,!0),function(n,t,e){for(e=t;e=n.Q.Zn(e);)if(n.nt(e)){n.tt.has(t)||(n.mn.set(t,e),(e["s-ld"]=e["s-ld"]||[]).push(t));break}}(n,e),n.queue.tick(function(){n.bn.set(e,function(n,t,e,r,i){return e.mode||(e.mode=n.Qn(e)),e["s-cr"]||n.In(e,"ssrv")||n.G&&1===t.I||(e["s-cr"]=n.Wn(""),e["s-cr"]["s-cn"]=!0,n.J(e,e["s-cr"],n.Rn(e)[0])),n.G||1!==t.I||(e.shadowRoot=e),1===t.I&&n.G&&!e.shadowRoot&&n.Kn(e,{mode:"open"}),r={Sn:{}},t.V&&Object.keys(t.V).forEach(function(o){(i=t.V[o].rn)&&(r.Sn[i]=n.In(e,i))}),r}(n.Q,t,e)),n.et(t,e)}))})(n,t,this)},e.disconnectedCallback=function(){(function(n,t){!n.rt&&function(n,t){for(;t;){if(!n.Dn(t))return 9!==n.xn(t);t=n.Dn(t)}}(n.Q,t)&&(n.yn.set(t,!0),_(n,t),b(n.An.get(t),!0),n.Q.en(t),n.it.delete(t),[n.mn,n.ot,n.bn].forEach(function(n){return n.delete(t)}))})(n,this)},e["s-init"]=function(){(function(n,t,e,r,i,o,u){if((i=n.wn.get(t))&&!n.yn.has(t)&&(!t["s-ld"]||!t["s-ld"].length)){n.tt.set(t,!0),(u=n.ut.has(t))||(n.ut.set(t,!0),t["s-ld"]=void 0,n.Q.jn(t,e));try{b(n.An.get(t)),(o=n.ot.get(t))&&(o.forEach(function(n){return n(t)}),n.ot.delete(t)),!u&&i.componentDidLoad&&i.componentDidLoad()}catch(e){n.Mn(e,4,t)}_(n,t)}})(n,this,r)},e.forceUpdate=function(){A(n,this,i)},t.V){var o=Object.entries(t.V),u={};o.forEach(function(n){var t=n[0],e=n[1].rn;e&&(u[e]=t)}),u=Object.assign({},u),e.attributeChangedCallback=function(n,t,e){(function r(n,t,e,i){var o=n[v(e)];o&&(t[o]=i)})(u,this,n,e)},function(n,t,e,r){o.forEach(function(t){var i=t[0],o=t[1];3&o.in&&S(e,i,function t(){return(n.En.get(this)||{})[i]},function t(e){C(n,this,i,$(o.un,e),r)})})}(n,0,e,i)}}(M,a[n.n]=n,t.prototype,u,f),t.observedAttributes=Object.values(n.V).map(function(n){return n.rn}).filter(function(n){return!!n}),r.customElements.define(n.n,t))},K:function(n){return a[h.qn(n)]},ft:function(n){return t[n]},isClient:!0,nt:function(n){return!(!y[h.qn(n)]&&!M.K(n))},Mn:function(){},queue:t.queue=function(n,t){var e=0,r=!1,i=function(){return t.performance.now()},o=!1!==n.asyncQueue,u=Promise.resolve(),f=[],c=[],a=[],s=[],l=function(t){return function(e){t.push(e),r||(r=!0,n.raf(h))}},v=function(n){for(var t=0;t<n.length;t++)try{n[t](i())}catch(n){}n.length=0},p=function(n,t){for(var e,r=0;r<n.length&&(e=i())<t;)try{n[r++](e)}catch(n){}r===n.length?n.length=0:0!==r&&n.splice(0,r)},h=function(){e++,v(c);var t=o?i()+7*Math.ceil(e*(1/22)):Infinity;p(a,t),p(s,t),a.length>0&&(s.push.apply(s,a),a.length=0),(r=c.length+a.length+s.length>0)?n.raf(h):e=0};return n.raf||(n.raf=t.requestAnimationFrame.bind(t)),{tick:function(n){f.push(n),1===f.length&&u.then(function(){return v(f)})},read:l(c),write:l(a)}}(p,r),et:function(n,t){var e=!h.G,r={mode:t.mode,scoped:e};n.i(r).then(function(e){try{n.gn=e,function r(n,t,e,i,o){if(i){var u=t.n+(o||c);t[u]||(t[u]=i)}}(0,n,n.I,e.style,e.styleMode)}catch(t){n.gn=function i(){}}A(M,t,f)})},$n:!1,dn:!1,rt:!1,kn:s,mn:new WeakMap,Z:new WeakMap,Vn:new WeakMap,it:new WeakMap,ut:new WeakMap,tt:new WeakMap,Cn:new WeakMap,bn:new WeakMap,wn:new WeakMap,yn:new WeakMap,hn:new WeakMap,ot:new WeakMap,ct:new WeakMap,An:new WeakMap,En:new WeakMap,pn:new Set,On:[]};return t.isServer=t.isPrerender=!(t.isClient=!0),t.window=r,t.location=r.location,t.document=i,t.resourcesUrl=t.publicPath=o,p.h=e,p.Context=t,p.onReady=function(){return new Promise(function(n){return M.queue.write(function(){return M.pn.size?M.On.push(n):n()})})},M.render=function(n,t){var e,r,i,o,u,f,c,a=function(i,v,p,h,d,y,b,M,g){if(M=v.vchildren[p],e||(o=!0,"slot"===M.vtag&&(r&&t.jn(h,r+"-s"),M.vchildren?M.at=!0:M.st=!0)),l(M.vtext))M.t=t.Wn(M.vtext);else if(M.st)M.t=t.Wn("");else{if(y=M.t=m||"svg"===M.vtag?t.Tn("http://www.w3.org/2000/svg",M.vtag):t.z(M.at?"slot-fb":M.vtag),n.nt(y)&&n.tt.delete(c),m="svg"===M.vtag||"foreignObject"!==M.vtag&&m,w(n,null,M,m),l(r)&&y["s-si"]!==r&&t.jn(y,y["s-si"]=r),M.vchildren)for(d=0;d<M.vchildren.length;++d)(b=a(i,M,d,y))&&t.Ln(y,b);"svg"===M.vtag&&(m=!1)}return M.t["s-hn"]=f,(M.at||M.st)&&(M.t["s-sr"]=!0,M.t["s-cr"]=u,M.t["s-sn"]=M.vname||"",(g=i&&i.vchildren&&i.vchildren[p])&&g.vtag===M.vtag&&i.t&&s(i.t)),M.t},s=function(e,r,i,u){n.rt=!0;var c=t.Rn(e);for(i=c.length-1;i>=0;i--)(u=c[i])["s-hn"]!==f&&u["s-ol"]&&(t.Nn(u),t.J(y(u),u,d(u)),t.Nn(u["s-ol"]),u["s-ol"]=null,o=!0),r&&s(u,r);n.rt=!1},v=function(n,e,r,i,o,u,c,s){var v=n["s-cr"];for((c=v&&t.Dn(v)||n).shadowRoot&&t.qn(c)===f&&(c=c.shadowRoot);o<=u;++o)i[o]&&(s=l(i[o].vtext)?t.Wn(i[o].vtext):a(null,r,o,n))&&(i[o].t=s,t.J(c,s,d(e)))},p=function(n,e,r,o){for(;e<=r;++e)l(n[e])&&(o=n[e].t,i=!0,o["s-ol"]?t.Nn(o["s-ol"]):s(o,!0),t.Nn(o))},h=function(n,t){return n.vtag===t.vtag&&n.vkey===t.vkey&&("slot"!==n.vtag||n.vname===t.vname)},d=function(n){return n&&n["s-ol"]?n["s-ol"]:n},y=function(n){return t.Dn(n["s-ol"]?n["s-ol"]:n)},b=function(e,r,i){var o=r.t=e.t,u=e.vchildren,f=r.vchildren;m=r.t&&l(t.Zn(r.t))&&void 0!==r.t.ownerSVGElement,m="svg"===r.vtag||"foreignObject"!==r.vtag&&m,l(r.vtext)?(i=o["s-cr"])?t.Bn(t.Dn(i),r.vtext):e.vtext!==r.vtext&&t.Bn(o,r.vtext):("slot"!==r.vtag&&w(n,e,r,m),l(u)&&l(f)?function(n,e,r,i,o,u,f,c){for(var w=0,m=0,M=e.length-1,g=e[0],k=e[M],j=i.length-1,$=i[0],A=i[j];w<=M&&m<=j;)if(null==g)g=e[++w];else if(null==k)k=e[--M];else if(null==$)$=i[++m];else if(null==A)A=i[--j];else if(h(g,$))b(g,$),g=e[++w],$=i[++m];else if(h(k,A))b(k,A),k=e[--M],A=i[--j];else if(h(g,A))"slot"!==g.vtag&&"slot"!==A.vtag||s(t.Dn(g.t)),b(g,A),t.J(n,g.t,t.Fn(k.t)),g=e[++w],A=i[--j];else if(h(k,$))"slot"!==g.vtag&&"slot"!==A.vtag||s(t.Dn(k.t)),b(k,$),t.J(n,k.t,g.t),k=e[--M],$=i[++m];else{for(o=null,u=w;u<=M;++u)if(e[u]&&l(e[u].vkey)&&e[u].vkey===$.vkey){o=u;break}l(o)?((c=e[o]).vtag!==$.vtag?f=a(e&&e[m],r,o,n):(b(c,$),e[o]=void 0,f=c.t),$=i[++m]):(f=a(e&&e[m],r,m,n),$=i[++m]),f&&t.J(y(g.t),f,d(g.t))}w>M?v(n,null==i[j+1]?null:i[j+1].t,r,i,m,j):m>j&&p(e,w,M)}(o,u,r,f):l(f)?(l(e.vtext)&&t.Bn(o,""),v(o,null,r,f,0,f.length-1)):l(u)&&p(u,0,u.length-1)),m&&"svg"===r.vtag&&(m=!1)},M=function(n,e,r,i,o,u,f,c){for(i=0,o=(r=t.Rn(n)).length;i<o;i++)if(e=r[i],1===t.xn(e)){if(e["s-sr"])for(f=e["s-sn"],e.hidden=!1,u=0;u<o;u++)if(r[u]["s-hn"]!==e["s-hn"])if(c=t.xn(r[u]),""!==f){if(1===c&&f===t.In(r[u],"slot")){e.hidden=!0;break}}else if(1===c||3===c&&""!==t.Un(r[u]).trim()){e.hidden=!0;break}M(e)}},g=[],k=function(n,e,r,o,u,f,c,a,s,l){for(u=0,f=(e=t.Rn(n)).length;u<f;u++){if((r=e[u])["s-sr"]&&(o=r["s-cr"]))for(a=t.Rn(t.Dn(o)),s=r["s-sn"],c=a.length-1;c>=0;c--)(o=a[c])["s-cn"]||o["s-nr"]||o["s-hn"]===r["s-hn"]||((3===(l=t.xn(o))||8===l)&&""===s||1===l&&null===t.In(o,"slot")&&""===s||1===l&&t.In(o,"slot")===s)&&(g.some(function(n){return n.lt===o})||(i=!0,o["s-sn"]=s,g.push({vt:r,lt:o})));1===t.xn(r)&&k(r)}};return function(a,s,l,v,p,h,d,y,w,m,j,$){if(c=a,f=t.qn(c),u=c["s-cr"],e=v,r=c["s-sc"],o=i=!1,b(s,l),o){for(k(l.t),d=0;d<g.length;d++)(y=g[d]).lt["s-ol"]||((w=t.Wn(""))["s-nr"]=y.lt,t.J(t.Dn(y.lt),y.lt["s-ol"]=w,y.lt));for(n.rt=!0,d=0;d<g.length;d++){for(y=g[d],j=t.Dn(y.vt),$=t.Fn(y.vt),w=y.lt["s-ol"];w=t.Hn(w);)if((m=w["s-nr"])&&m&&m["s-sn"]===y.lt["s-sn"]&&j===t.Dn(m)&&(m=t.Fn(m))&&m&&!m["s-nr"]){$=m;break}(!$&&j!==t.Dn(y.lt)||t.Fn(y.lt)!==$)&&y.lt!==$&&(t.Nn(y.lt),t.J(j,y.lt,$))}n.rt=!1}return i&&M(l.t),g.length=0,l}}(M,h),d["s-ld"]=[],d["s-rn"]=!0,d["s-init"]=function(){M.tt.set(d,p.loaded=M.dn=!0),h.zn(r,"appload",{detail:{namespace:n}})},function(n,t,e,r,i,o){if(t.componentOnReady=function(t,e){if(!t.nodeName.includes("-"))return e(null),!1;var r=n.K(t);if(r)if(n.tt.has(t))e(t);else{var i=n.ot.get(t)||[];i.push(e),n.ot.set(t,i)}return!!r},i){for(o=i.length-1;o>=0;o--)t.componentOnReady(i[o][0],i[o][1])&&i.splice(o,1);for(o=0;o<r.length;o++)if(!e[r[o]].componentOnReady)return;for(o=0;o<i.length;o++)i[o][1](null);i.length=0}}(M,p,r,r["s-apps"],r["s-cr"]),p.initialized=!0,M},T={},W=!1;export{r as defineCustomElement,e as h}; | ||
`./build/${e}${t?".sc":""}.entry.js`).then(e=>e[n])}("string"==typeof n?n:n[e],t,o)}),t}(t),n)})})()})}var i=function(){};function applyPolyfills(){return Promise.resolve()}const r="$",l={},s=(t,n,o,i)=>{let l=o.t+r,s=o[l];if((2===o.u||1===o.u&&!t.v.p)&&(i["s-sc"]=s?e(o,i.mode):e(o)),s){let e=n.m.head;if(n.p)if(1===o.u)e=i.shadowRoot;else{const t=i.getRootNode();t.host&&(e=t)}let r=t.M.get(e);if(r||t.M.set(e,r={}),!r[l]){let t;{t=s.content.cloneNode(!0),r[l]=!0;const o=e.querySelectorAll("[data-styles]");n.g(e,t,o.length&&o[o.length-1].nextSibling||e.firstChild)}}}},a=e=>null!=e,c=e=>e.toLowerCase(),f=e=>c(e).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""),u=(e,t,n,o,i,r)=>{if("class"!==n||r)if("style"===n){for(const e in o)i&&null!=i[e]||(/-/.test(e)?t.style.removeProperty(e):t.style[e]="");for(const e in i)o&&i[e]===o[e]||(/-/.test(e)?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("o"!==n[0]||"n"!==n[1]||!/[A-Z]/.test(n[2])||n in t)if("list"!==n&&"type"!==n&&!r&&(n in t||-1!==["object","function"].indexOf(typeof i)&&null!==i)){const o=e.k(t);o&&o.C&&o.C[n]?d(t,n,i):"ref"!==n&&(d(t,n,null==i?"":i),null!=i&&!1!==i||e.v.A(t,n))}else null!=i&&"key"!==n?((e,t,n,o="boolean"==typeof n,i)=>{i=t!==(t=t.replace(/^xlink\:?/,"")),null==n||o&&(!n||"false"===n)?i?e.removeAttributeNS("http://www.w3.org/1999/xlink",c(t)):e.removeAttribute(t):"function"!=typeof n&&(n=o?"":n.toString(),i?e.setAttributeNS("http://www.w3.org/1999/xlink",c(t),n):e.setAttribute(t,n))})(t,n,i):(r||e.v._(t,n)&&(null==i||!1===i))&&e.v.A(t,n);else n=c(n)in t?c(n.substring(2)):c(n[2])+n.substring(3),i?i!==o&&e.v.j(t,n,i):e.v.S(t,n);else if(o!==i){const e=p(o),n=p(i),r=e.filter(e=>!n.includes(e)),l=p(t.className).filter(e=>!r.includes(e)),s=n.filter(t=>!e.includes(t)&&!l.includes(t));l.push(...s),t.className=l.join(" ")}},p=e=>null==e||""===e?[]:e.trim().split(/\s+/),d=(e,t,n)=>{try{e[t]=n}catch(e){}},v=(e,t,n,o,i)=>{const r=11===n.o.nodeType&&n.o.host?n.o.host:n.o,s=t&&t.vattrs||l,a=n.vattrs||l;for(i in s)a&&null!=a[i]||null==s[i]||u(e,r,i,s[i],void 0,o,n.i);for(i in a)i in s&&a[i]===("value"===i||"checked"===i?r[i]:s[i])||u(e,r,i,s[i],a[i],o,n.i)};let m=!1;const y=(e,t)=>{e&&(e.vattrs&&e.vattrs.ref&&e.vattrs.ref(t?null:e.o),e.vchildren&&e.vchildren.forEach(e=>{y(e,t)}))},b=(e,t)=>{{let n=0,o=!1;const i=()=>t.performance.now(),r=!1!==e.asyncQueue,l=Promise.resolve(),s=[],a=[],c=[],f=[],u=t=>n=>{t.push(n),o||(o=!0,e.raf(v))},p=e=>{for(let t=0;t<e.length;t++)try{e[t](i())}catch(e){console.error(e)}e.length=0},d=(e,t)=>{let n,o=0;for(;o<e.length&&(n=i())<t;)try{e[o++](n)}catch(e){console.error(e)}o===e.length?e.length=0:0!==o&&e.splice(0,o)},v=()=>{n++,p(a);const t=r?i()+7*Math.ceil(n*(1/22)):Infinity;d(c,t),d(f,t),c.length>0&&(f.push(...c),c.length=0),(o=a.length+c.length+f.length>0)?e.raf(v):n=0};return e.raf||(e.raf=t.requestAnimationFrame.bind(t)),{tick(e){s.push(e),1===s.length&&l.then(()=>p(s))},read:u(a),write:u(c)}}},h=[],w={forEach:(e,t)=>e.forEach(t),map:(e,t)=>e.map(t)},M=(e,t,n)=>{const[o,i,,r,l,s]=e,a={color:{W:"color"}};if(r)for(t=0;t<r.length;t++)a[(n=r[t])[0]]={N:n[1],O:!!n[2],W:"string"==typeof n[3]?n[3]:n[3]?n[0]:0,P:n[4]};return{t:o,s:i,C:Object.assign({},a),u:l,L:s?s.map($):void 0}},$=e=>({R:e[0],T:e[1],D:!!e[2],H:!!e[3],q:!!e[4]}),g=(e,t)=>{return a(t)&&"object"!=typeof t&&"function"!=typeof t?e===Boolean||4===e?"false"!==t&&(""===t||!!t):e===Number||8===e?parseFloat(t):e===String||2===e?t.toString():t:t},k=(e,t,n)=>{e.B.add(t),e.F.has(t)||(e.F.set(t,!0),e.I?e.queue.write(()=>C(e,t,n)):e.queue.tick(()=>C(e,t,n)))},C=async(e,o,i,r,l,s)=>{if(e.F.delete(o),!e.U.has(o)){if(!(l=e.Y.get(o))){if((s=e.Z.get(o))&&!s["s-rn"])return void(s["s-rc"]=s["s-rc"]||[]).push(()=>{C(e,o,i)});if(l=j(e,o,e.G.get(o),i))try{l.componentWillLoad&&await l.componentWillLoad()}catch(t){e.J(t,3,o)}}((e,o,i,r)=>{try{const l=o.K.host,s=o.K.encapsulation,a="shadow"===s&&e.v.p;let c,f=i;if(a&&(f=i.shadowRoot),!i["s-rn"]){e.V(e,e.v,o,i);const n=i["s-sc"];n&&(e.v.X(i,t(n,!0)),"scoped"===s&&e.v.X(i,t(n)))}if(r.render||r.hostData||l||c){e.ee=!0;const t=r.render&&r.render();let o;e.ee=!1;const l=n(null,o,t),c=e.te.get(i)||{};c.o=f,e.te.set(i,e.render(i,c,l,a,s))}i["s-rn"]=!0,i["s-rc"]&&(i["s-rc"].forEach(e=>e()),i["s-rc"]=null)}catch(t){e.ee=!1,e.J(t,8,i,!0)}})(e,e.k(o),o,l),o["s-init"]()}},E=(e,t,n,o,i,r,l,s,c)=>{if(t.type||t.state){const f=e.ne.get(n);t.state||(!t.attr||void 0!==f[i]&&""!==f[i]||(s=r&&r.oe)&&a(c=s[t.attr])&&(f[i]=g(t.type,c)),n.hasOwnProperty(i)&&(void 0===f[i]&&(f[i]=g(t.type,n[i])),"mode"!==i&&delete n[i])),o.hasOwnProperty(i)&&void 0===f[i]&&(f[i]=o[i]),_(o,i,function f(t){return(t=e.ne.get(e.ie.get(this)))&&t[i]},function u(n,o){(o=e.ie.get(this))&&(t.state||t.mutable)&&A(e,o,i,n,l)})}},A=(e,t,n,o,i,r,l)=>{(l=e.ne.get(t))||e.ne.set(t,l={}),o!==l[n]&&(l[n]=o,e.Y.get(t)&&!e.ee&&t["s-rn"]&&k(e,t,i))},_=(e,t,n,o)=>{Object.defineProperty(e,t,{configurable:!0,get:n,set:o})},j=(e,t,n,o,i,r)=>{try{i=new(r=e.k(t).K),((e,t,n,o,i,r)=>{e.ie.set(o,n),e.ne.has(n)||e.ne.set(n,{}),Object.entries(Object.assign({color:{type:String}},t.properties,{mode:{type:String}})).forEach(([t,l])=>{E(e,l,n,o,t,i,r)})})(e,r,t,i,n,o)}catch(n){i={},e.J(n,7,t,!0)}return e.Y.set(t,i),i},S=(e,t,n,o,i,r)=>{if(e.B.delete(t),(i=e.Z.get(t))&&((o=i["s-ld"])&&((n=o.indexOf(t))>-1&&o.splice(n,1),o.length||i["s-init"]&&i["s-init"]()),e.Z.delete(t)),e.re.length&&!e.B.size)for(;r=e.re.shift();)r()},W=(e,t,n,o)=>{t.forEach(([t,i])=>{3&i.N&&_(n,t,function n(){return(e.ne.get(this)||{})[t]},function n(r){A(e,this,t,g(i.P,r),o)})})},N=(e,t,n,o,i)=>{if(n.connectedCallback=function(){((e,t,n)=>{e.U.delete(n),e.le.has(n)||(e.se=!0,e.B.add(n),e.le.set(n,!0),((e,t,n)=>{for(n=t;n=e.v.ae(n);)if(e.ce(n)){e.fe.has(t)||(e.Z.set(t,n),(n["s-ld"]=n["s-ld"]||[]).push(t));break}})(e,n),e.queue.tick(()=>{e.G.set(n,((e,t,n,o,i)=>{return n.mode||(n.mode=e.ue(n)),n["s-cr"]||e.pe(n,"ssrv")||e.p&&1===t.u||(n["s-cr"]=e.de(""),n["s-cr"]["s-cn"]=!0,e.g(n,n["s-cr"],e.ve(n)[0])),1===t.u&&e.p&&!n.shadowRoot&&e.me(n,{mode:"open"}),o={oe:{}},t.C&&Object.keys(t.C).forEach(r=>{(i=t.C[r].W)&&(o.oe[i]=e.pe(n,i))}),o})(e.v,t,n)),e.ye(t,n)}))})(e,t,this)},n.disconnectedCallback=function(){((e,t)=>{!e.be&&((e,t)=>{for(;t;){if(!e.he(t))return 9!==e.we(t);t=e.he(t)}})(e.v,t)&&(e.U.set(t,!0),S(e,t),y(e.te.get(t),!0),e.v.S(t),e.Me.delete(t),[e.Z,e.$e,e.G].forEach(e=>e.delete(t)))})(e,this)},n["s-init"]=function(){((e,t,n,o,i,r,l)=>{if((i=e.Y.get(t))&&!e.U.has(t)&&(!t["s-ld"]||!t["s-ld"].length)){e.fe.set(t,!0),(l=e.ge.has(t))||(e.ge.set(t,!0),t["s-ld"]=void 0,e.v.X(t,n));try{y(e.te.get(t)),(r=e.$e.get(t))&&(r.forEach(e=>e(t)),e.$e.delete(t)),!l&&i.componentDidLoad&&i.componentDidLoad()}catch(n){e.J(n,4,t)}S(e,t)}})(e,this,o)},n.forceUpdate=function(){k(e,this,i)},t.C){const o=Object.entries(t.C);{let e={};o.forEach(([t,{W:n}])=>{n&&(e[n]=t)}),e=Object.assign({},e),n.attributeChangedCallback=function(t,n,o){(function i(e,t,n,o){const i=e[c(n)];i&&(t[i]=o)})(e,this,t,o)}}W(e,o,n,i)}},O=(e,t,o,i,l,f)=>{const u=o.performance,p={html:{}},d=o[e]=o[e]||{},y=((e,t,n)=>{const o=new WeakMap,i={m:n,p:!!n.documentElement.attachShadow,ke:!1,we:e=>e.nodeType,Ce:e=>n.createElement(e),Ee:(e,t)=>n.createElementNS(e,t),de:e=>n.createTextNode(e),Ae:e=>n.createComment(e),g:(e,t,n)=>e.insertBefore(t,n),_e:e=>e.remove(),je:(e,t)=>e.appendChild(t),X:(e,t)=>{e.classList.add(t)},ve:e=>e.childNodes,he:e=>e.parentNode,Se:e=>e.nextSibling,We:e=>e.previousSibling,Ne:e=>c(e.nodeName),Oe:e=>e.textContent,xe:(e,t)=>e.textContent=t,pe:(e,t)=>e.getAttribute(t),Pe:(e,t,n)=>e.setAttribute(t,n),A:(e,t)=>e.removeAttribute(t),_:(e,t)=>e.hasAttribute(t),ue:t=>t.getAttribute("mode")||(e.Context||{}).mode,Le:(e,o)=>{return"child"===o?e.firstElementChild:"parent"===o?i.ae(e):"body"===o?n.body:"document"===o?n:"window"===o?t:e},j:(t,n,r,l,s,a,c,f,u)=>{let p=t,d=r,v=o.get(t);u=n,v&&v[u]&&v[u](),"object"==typeof a&&(p=a),p&&(c=i.ke?{capture:!!l,passive:!!s}:!!l,e.ael(p,n,d,c),v||o.set(t,v={}),v[u]=(()=>{p&&e.rel(p,n,d,c),v[u]=null}))},S:(e,t,n)=>{(n=o.get(e))&&(t?n[t]&&n[t]():Object.keys(n).forEach(e=>{n[e]&&n[e]()}))},Re:(e,n,o,i)=>{return i=new t.CustomEvent(n,o),e&&e.dispatchEvent(i),i},ae:(e,t)=>(t=i.he(e))&&11===i.we(t)?t.host:t,Te:(e,t,n,o)=>e.setAttributeNS(t,n,o),me:(e,t)=>e.attachShadow(t)};return e.ael||(e.ael=((e,t,n,o)=>e.addEventListener(t,n,o)),e.rel=((e,t,n,o)=>e.removeEventListener(t,n,o))),i})(d,o,i),h=y.m.documentElement,w=o["s-defined"]=o["s-defined"]||{},M={v:y,l:(e,t)=>{o.customElements.get(e.t)||(N(M,p[e.t]=e,t.prototype,f,u),t.observedAttributes=Object.values(e.C).map(e=>e.W).filter(e=>!!e),o.customElements.define(e.t,t))},k:e=>p[y.Ne(e)],De:e=>t[e],isClient:!0,ce:e=>!(!w[y.Ne(e)]&&!M.k(e)),J:(e,t,n)=>console.error(e,t,n&&n.tagName),queue:t.queue=b(d,o),ye:(e,t)=>{{const n=!y.p,o={mode:t.mode,scoped:n};e.s(o).then(n=>{try{e.K=n,function o(e,t,n,i,l){if(i){const n=t.t+(l||r);if(!t[n]){const o=e.Ce("template");t[n]=o,o.innerHTML=`<style>${i}</style>`,e.je(e.m.head,o)}}}(y,e,e.u,n.style,n.styleMode)}catch(t){console.error(t),e.K=class{}}k(M,t,u)})}},ee:!1,I:!1,be:!1,V:s,Z:new WeakMap,M:new WeakMap,le:new WeakMap,Me:new WeakMap,ge:new WeakMap,fe:new WeakMap,ie:new WeakMap,G:new WeakMap,Y:new WeakMap,U:new WeakMap,F:new WeakMap,$e:new WeakMap,He:new WeakMap,te:new WeakMap,ne:new WeakMap,B:new Set,re:[]};return t.isServer=t.isPrerender=!(t.isClient=!0),t.window=o,t.location=o.location,t.document=i,t.resourcesUrl=t.publicPath=l,d.h=n,d.Context=t,d.onReady=(()=>new Promise(e=>M.queue.write(()=>M.B.size?M.re.push(e):e()))),M.render=((e,t)=>{let n,o,i,r,l,s,c;const f=(i,p,d,y,b,h,w,M,$)=>{if(M=p.vchildren[d],n||(r=!0,"slot"===M.vtag&&(o&&t.X(y,o+"-s"),M.vchildren?M.qe=!0:M.Be=!0)),a(M.vtext))M.o=t.de(M.vtext);else if(M.Be)M.o=t.de("");else{if(h=M.o=m||"svg"===M.vtag?t.Ee("http://www.w3.org/2000/svg",M.vtag):t.Ce(M.qe?"slot-fb":M.vtag),e.ce(h)&&e.fe.delete(c),m="svg"===M.vtag||"foreignObject"!==M.vtag&&m,v(e,null,M,m),a(o)&&h["s-si"]!==o&&t.X(h,h["s-si"]=o),M.vchildren)for(b=0;b<M.vchildren.length;++b)(w=f(i,M,b,h))&&t.je(h,w);"svg"===M.vtag&&(m=!1)}return M.o["s-hn"]=s,(M.qe||M.Be)&&(M.o["s-sr"]=!0,M.o["s-cr"]=l,M.o["s-sn"]=M.vname||"",($=i&&i.vchildren&&i.vchildren[d])&&$.vtag===M.vtag&&i.o&&u(i.o)),M.o},u=(n,o,i,l)=>{e.be=!0;const a=t.ve(n);for(i=a.length-1;i>=0;i--)(l=a[i])["s-hn"]!==s&&l["s-ol"]&&(t._e(l),t.g(h(l),l,b(l)),t._e(l["s-ol"]),l["s-ol"]=null,r=!0),o&&u(l,o);e.be=!1},p=(e,n,o,i,r,l,c,u)=>{const p=e["s-cr"];for((c=p&&t.he(p)||e).shadowRoot&&t.Ne(c)===s&&(c=c.shadowRoot);r<=l;++r)i[r]&&(u=a(i[r].vtext)?t.de(i[r].vtext):f(null,o,r,e))&&(i[r].o=u,t.g(c,u,b(n)))},d=(e,n,o,r)=>{for(;n<=o;++n)a(e[n])&&(r=e[n].o,i=!0,r["s-ol"]?t._e(r["s-ol"]):u(r,!0),t._e(r))},y=(e,t)=>{return e.vtag===t.vtag&&e.vkey===t.vkey&&("slot"!==e.vtag||e.vname===t.vname)},b=e=>{return e&&e["s-ol"]?e["s-ol"]:e},h=e=>{return t.he(e["s-ol"]?e["s-ol"]:e)},w=(n,o,i)=>{const r=o.o=n.o,l=n.vchildren,s=o.vchildren;m=o.o&&a(t.ae(o.o))&&void 0!==o.o.ownerSVGElement,m="svg"===o.vtag||"foreignObject"!==o.vtag&&m,a(o.vtext)?(i=r["s-cr"])?t.xe(t.he(i),o.vtext):n.vtext!==o.vtext&&t.xe(r,o.vtext):("slot"!==o.vtag&&v(e,n,o,m),a(l)&&a(s)?((e,n,o,i,r,l,s,c)=>{let v=0,m=0,M=n.length-1,$=n[0],g=n[M],k=i.length-1,C=i[0],E=i[k];for(;v<=M&&m<=k;)if(null==$)$=n[++v];else if(null==g)g=n[--M];else if(null==C)C=i[++m];else if(null==E)E=i[--k];else if(y($,C))w($,C),$=n[++v],C=i[++m];else if(y(g,E))w(g,E),g=n[--M],E=i[--k];else if(y($,E))"slot"!==$.vtag&&"slot"!==E.vtag||u(t.he($.o)),w($,E),t.g(e,$.o,t.Se(g.o)),$=n[++v],E=i[--k];else if(y(g,C))"slot"!==$.vtag&&"slot"!==E.vtag||u(t.he(g.o)),w(g,C),t.g(e,g.o,$.o),g=n[--M],C=i[++m];else{for(r=null,l=v;l<=M;++l)if(n[l]&&a(n[l].vkey)&&n[l].vkey===C.vkey){r=l;break}a(r)?((c=n[r]).vtag!==C.vtag?s=f(n&&n[m],o,r,e):(w(c,C),n[r]=void 0,s=c.o),C=i[++m]):(s=f(n&&n[m],o,m,e),C=i[++m]),s&&t.g(h($.o),s,b($.o))}v>M?p(e,null==i[k+1]?null:i[k+1].o,o,i,m,k):m>k&&d(n,v,M)})(r,l,o,s):a(s)?(a(n.vtext)&&t.xe(r,""),p(r,null,o,s,0,s.length-1)):a(l)&&d(l,0,l.length-1)),m&&"svg"===o.vtag&&(m=!1)},M=(e,n,o,i,r,l,s,a)=>{for(i=0,r=(o=t.ve(e)).length;i<r;i++)if(n=o[i],1===t.we(n)){if(n["s-sr"])for(s=n["s-sn"],n.hidden=!1,l=0;l<r;l++)if(o[l]["s-hn"]!==n["s-hn"])if(a=t.we(o[l]),""!==s){if(1===a&&s===t.pe(o[l],"slot")){n.hidden=!0;break}}else if(1===a||3===a&&""!==t.Oe(o[l]).trim()){n.hidden=!0;break}M(n)}},$=[],g=(e,n,o,r,l,s,a,c,f,u)=>{for(l=0,s=(n=t.ve(e)).length;l<s;l++){if((o=n[l])["s-sr"]&&(r=o["s-cr"]))for(c=t.ve(t.he(r)),f=o["s-sn"],a=c.length-1;a>=0;a--)(r=c[a])["s-cn"]||r["s-nr"]||r["s-hn"]===o["s-hn"]||((3===(u=t.we(r))||8===u)&&""===f||1===u&&null===t.pe(r,"slot")&&""===f||1===u&&t.pe(r,"slot")===f)&&($.some(e=>e.Fe===r)||(i=!0,r["s-sn"]=f,$.push({Ie:o,Fe:r})));1===t.we(o)&&g(o)}};return(a,f,u,p,d,v,m,y,b,h,k,C)=>{if(c=a,s=t.Ne(c),l=c["s-cr"],n=p,o=c["s-sc"],r=i=!1,w(f,u),r){for(g(u.o),m=0;m<$.length;m++)(y=$[m]).Fe["s-ol"]||((b=t.de(""))["s-nr"]=y.Fe,t.g(t.he(y.Fe),y.Fe["s-ol"]=b,y.Fe));for(e.be=!0,m=0;m<$.length;m++){for(y=$[m],k=t.he(y.Ie),C=t.Se(y.Ie),b=y.Fe["s-ol"];b=t.We(b);)if((h=b["s-nr"])&&h&&h["s-sn"]===y.Fe["s-sn"]&&k===t.he(h)&&(h=t.Se(h))&&h&&!h["s-nr"]){C=h;break}(!C&&k!==t.he(y.Fe)||t.Se(y.Fe)!==C)&&y.Fe!==C&&(t._e(y.Fe),t.g(k,y.Fe,C))}e.be=!1}return i&&M(u.o),$.length=0,u}})(M,y),h["s-ld"]=[],h["s-rn"]=!0,h["s-init"]=(()=>{M.fe.set(h,d.loaded=M.I=!0),y.Re(o,"appload",{detail:{namespace:e}})}),((e,t,n,o,i,r)=>{if(t.componentOnReady=((t,n)=>{if(!t.nodeName.includes("-"))return n(null),!1;const o=e.k(t);if(o)if(e.fe.has(t))n(t);else{const o=e.$e.get(t)||[];o.push(n),e.$e.set(t,o)}return!!o}),i){for(r=i.length-1;r>=0;r--)t.componentOnReady(i[r][0],i[r][1])&&i.splice(r,1);for(r=0;r<o.length;r++)if(!n[o[r]].componentOnReady)return;for(r=0;r<i.length;r++)i[r][1](null);i.length=0}})(M,d,o,o["s-apps"],o["s-cr"]),d.initialized=!0,M},x={};let P=!1;export{o as defineCustomElement,n as h}; |
@@ -5,16 +5,6 @@ | ||
import { defineCustomElement } from './ddb-widget.core.js'; | ||
import { | ||
DdbWidget, | ||
LinkList, | ||
WidgetLauncher, | ||
WidgetWindow | ||
} from './ddb-widget.components.js'; | ||
import { COMPONENTS } from './ddb-widget.components.js'; | ||
export function defineCustomElements(win, opts) { | ||
return defineCustomElement(win, [ | ||
DdbWidget, | ||
LinkList, | ||
WidgetLauncher, | ||
WidgetWindow | ||
], opts); | ||
return defineCustomElement(win, COMPONENTS, opts); | ||
} |
// DdbWidget: Host Data, ES Module/es5 Target | ||
export var DdbWidget = ["ddb-widget","jvsxrcsa",0,0,1]; | ||
export var LinkList = ["link-list","wkwca3q6",1,[["color",1,0,1,2],["links",1]],1]; | ||
export var WidgetLauncher = ["widget-launcher","axjpqayu",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1]; | ||
export var WidgetWindow = ["widget-window","mduuocen",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]; | ||
export var COMPONENTS = [["ddb-widget","u9l0443m",1,[["isMobile",16],["isOpen",16],["widgetData",16]],1],["link-list","u9l0443m",1,[["color",1,0,1,2],["links",1]],1],["widget-launcher","u9l0443m",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1],["widget-window","u9l0443m",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]] |
@@ -5,5 +5,5 @@ /*! | ||
*/ | ||
function n(n,t){return"sc-"+n.n+(t&&t!==c?"-"+t:"")}function t(n,t){return n+(t?"-h":"-s")}function e(n,t){for(var e,r,i=null,o=!1,u=!1,f=arguments.length;f-- >2;)M.push(arguments[f]);for(;M.length>0;){var c=M.pop();if(c&&void 0!==c.pop)for(f=c.length;f--;)M.push(c[f]);else"boolean"==typeof c&&(c=null),(u="function"!=typeof n)&&(null==c?c="":"number"==typeof c?c=String(c):"string"!=typeof c&&(u=!1)),u&&o?i[i.length-1].vtext+=c:null===i?i=[u?{vtext:c}:c]:i.push(u?{vtext:c}:c),o=u}if(null!=t){if(t.className&&(t.class=t.className),"object"==typeof t.class){for(f in t.class)t.class[f]&&M.push(f);t.class=M.join(" "),M.length=0}null!=t.key&&(e=t.key),null!=t.name&&(r=t.name)}return"function"==typeof n?n(t,i||[],g):{vtag:n,vchildren:i,vtext:void 0,vattrs:t,vkey:e,vname:r,t:void 0,e:!1}}function r(n,t,e){void 0===e&&(e={});var r=Array.isArray(t)?t:[t],i=n.document,o=e.hydratedCssClass||"hydrated",u=r.map(function(n){return n[0]});if(u.length>0){var c=i.createElement("style");c.innerHTML=u.join()+"{visibility:hidden}."+o+"{visibility:inherit}",c.setAttribute("data-styles",""),i.head.insertBefore(c,i.head.firstChild)}var a=e.namespace||"DdbWidget";return W||(W=!0,function s(n,t,e){(n["s-apps"]=n["s-apps"]||[]).push(t),e.componentOnReady||(e.componentOnReady=function t(){function e(t){if(r.nodeName.indexOf("-")>0){for(var e=n["s-apps"],i=0,o=0;o<e.length;o++)if(n[e[o]].componentOnReady){if(n[e[o]].componentOnReady(r,t))return;i++}if(i<e.length)return void(n["s-cr"]=n["s-cr"]||[]).push([r,t])}t(null)}var r=this;return n.Promise?new n.Promise(e):{then:e}})}(n,a,n.HTMLElement.prototype)),applyPolyfills(n).then(function(){function u(){t.forEach(function(t){var e;!function r(n){return/\{\s*\[native code\]\s*\}/.test(""+n)}(n.customElements.define)?(e=function(t){return n.HTMLElement.call(this,t)}).prototype=Object.create(n.HTMLElement.prototype,{constructor:{value:e,configurable:!0}}):e=new Function("w","return class extends w.HTMLElement{}")(n),T[a].r(function i(n){var t=k(n),e=t.i,r=p(n[0]);return t.i=function(n){var t=n.mode,i=n.scoped;return function o(n,t,e){return import( | ||
function n(n,t){return"sc-"+n.t+(t&&t!==c?"-"+t:"")}function t(n,t){return n+(t?"-h":"-s")}function e(n,t){for(var e,r,i=null,o=!1,u=!1,f=arguments.length;f-- >2;)g.push(arguments[f]);for(;g.length>0;){var c=g.pop();if(c&&void 0!==c.pop)for(f=c.length;f--;)g.push(c[f]);else"boolean"==typeof c&&(c=null),(u="function"!=typeof n)&&(null==c?c="":"number"==typeof c?c=String(c):"string"!=typeof c&&(u=!1)),u&&o?i[i.length-1].vtext+=c:null===i?i=[u?{vtext:c}:c]:i.push(u?{vtext:c}:c),o=u}if(null!=t){if(t.className&&(t.class=t.className),"object"==typeof t.class){for(f in t.class)t.class[f]&&g.push(f);t.class=g.join(" "),g.length=0}null!=t.key&&(e=t.key),null!=t.name&&(r=t.name)}return"function"==typeof n?n(t,i||[],k):{vtag:n,vchildren:i,vtext:void 0,vattrs:t,vkey:e,vname:r,i:void 0,o:!1}}function r(n,t,e){void 0===e&&(e={});var r=Array.isArray(t)?t:[t],i=n.document,o=e.hydratedCssClass||"hydrated",u=e.exclude;u&&(r=r.filter(function(n){return-1===u.indexOf(n[0])}));var c=r.map(function(n){return n[0]});if(c.length>0){var a=i.createElement("style");a.innerHTML=c.join()+"{visibility:hidden}."+o+"{visibility:inherit}",a.setAttribute("data-styles",""),i.head.insertBefore(a,i.head.firstChild)}var s=e.namespace||"DdbWidget";return N||(N=!0,function l(n,t,e){(n["s-apps"]=n["s-apps"]||[]).push(t),e.componentOnReady||(e.componentOnReady=function t(){function e(t){if(r.nodeName.indexOf("-")>0){for(var e=n["s-apps"],i=0,o=0;o<e.length;o++)if(n[e[o]].componentOnReady){if(n[e[o]].componentOnReady(r,t))return;i++}if(i<e.length)return void(n["s-cr"]=n["s-cr"]||[]).push([r,t])}t(null)}var r=this;return n.Promise?new n.Promise(e):{then:e}})}(n,s,n.HTMLElement.prototype)),applyPolyfills(n).then(function(){function t(){r.forEach(function(t){var e;!function r(n){return/\{\s*\[native code\]\s*\}/.test(""+n)}(n.customElements.define)?(e=function(t){return n.HTMLElement.call(this,t)}).prototype=Object.create(n.HTMLElement.prototype,{constructor:{value:e,configurable:!0}}):e=new Function("w","return class extends w.HTMLElement{}")(n),P[s].u(function i(n){var t=j(n),e=t.s,r=p(n[0]);return t.s=function(n){var t=n.mode,i=n.scoped;return function o(n,t,e){return import( | ||
/* webpackInclude: /\.entry\.js$/ */ | ||
/* webpackMode: "lazy" */ | ||
"./build/"+n+(t?".sc":"")+".entry.js").then(function(n){return n[e]})}("string"==typeof e?e:e[t],i,r)},t}(t),e)})}if(!T[a]){var c={},s=e.resourcesUrl||"./";f(a,c,n,i,s,o),T[a]=x(a,c,n,i,s,o,r)}window.customStyleShim?(T[a].o=window.customStyleShim,T[a].o.initShim().then(u)):u()})}this&&this.u;var i=this&&this.f||function(n,t,e,r){return new(e||(e=Promise))(function(i,o){function u(n){try{c(r.c(n))}catch(n){o(n)}}function f(n){try{c(r.throw(n))}catch(n){o(n)}}function c(n){n.a?i(n.value):new e(function(t){t(n.value)}).then(u,f)}c((r=r.apply(n,t||[])).c())})},o=this&&this.s||function(n,t){function e(e){return function(u){return function c(e){if(r)throw new TypeError("Generator is already executing.");for(;f;)try{if(r=1,i&&(o=2&e[0]?i.return:e[0]?i.throw||((o=i.return)&&o.call(i),0):i.c)&&!(o=o.call(i,e[1])).a)return o;switch(i=0,o&&(e=[2&e[0],o.value]),e[0]){case 0:case 1:o=e;break;case 4:return f.l++,{value:e[1],a:!1};case 5:f.l++,i=e[1],e=[0];continue;case 7:e=f.v.pop(),f.p.pop();continue;default:if(!(o=(o=f.p).length>0&&o[o.length-1])&&(6===e[0]||2===e[0])){f=0;continue}if(3===e[0]&&(!o||e[1]>o[0]&&e[1]<o[3])){f.l=e[1];break}if(6===e[0]&&f.l<o[1]){f.l=o[1],o=e;break}if(o&&f.l<o[2]){f.l=o[2],f.v.push(e);break}o[2]&&f.v.pop(),f.p.pop();continue}e=t.call(n,f)}catch(n){e=[6,n],i=0}finally{r=o=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,a:!0}}([e,u])}}var r,i,o,u,f={l:0,d:function(){if(1&o[0])throw o[1];return o[1]},p:[],v:[]};return u={c:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u},u=this,f=function(){};function applyPolyfills(n){n.y=function(){function t(){var n=setTimeout;return function(){return n(e,1)}}function e(){for(var n=0;n<m;n+=2)(0,S[n])(S[n+1]),S[n]=void 0,S[n+1]=void 0;m=0}function r(n,t){var e=this,r=new this.constructor(o);void 0===r[_]&&h(r);var i=e.w;if(i){var u=arguments[i-1];g(function(){return d(i,r,u,e.m)})}else v(e,r,n,t);return r}function i(n){if(n&&"object"==typeof n&&n.constructor===this)return n;var t=new this(o);return c(t,n),t}function o(){}function u(n){try{return n.then}catch(n){return P.error=n,P}}function f(n,t,e){t.constructor===n.constructor&&e===r&&t.constructor.resolve===i?function(n,t){t.w===T?s(n,t.m):t.w===W?l(n,t.m):v(t,void 0,function(t){return c(n,t)},function(t){return l(n,t)})}(n,t):e===P?(l(n,P.error),P.error=null):void 0===e?s(n,t):"function"==typeof e?function(n,t,e){g(function(n){var r=!1,i=function(n,t,e,r){try{n.call(t,e,r)}catch(n){return n}}(e,t,function(e){r||(r=!0,t!==e?c(n,e):s(n,e))},function(t){r||(r=!0,l(n,t))},n.b);!r&&i&&(r=!0,l(n,i))},n)}(n,t,e):s(n,t)}function c(n,t){if(n===t)l(n,new TypeError("cannot resolve promise w/ itself"));else{var e=typeof t;null===t||"object"!==e&&"function"!==e?s(n,t):f(n,t,u(t))}}function a(n){n.M&&n.M(n.m),p(n)}function s(n,t){n.w===x&&(n.m=t,n.w=T,0!==n.g.length&&g(p,n))}function l(n,t){n.w===x&&(n.w=W,n.m=t,g(a,n))}function v(n,t,e,r){var i=n.g,o=i.length;n.M=null,i[o]=t,i[o+T]=e,i[o+W]=r,0===o&&n.w&&g(p,n)}function p(n){var t=n.g,e=n.w;if(0!==t.length){for(var r,i,o=n.m,u=0;u<t.length;u+=3)r=t[u],i=t[u+e],r?d(e,r,i,o):i(o);n.g.length=0}}function d(n,t,e,r){var i="function"==typeof e,o=void 0,u=void 0,f=void 0,a=void 0;if(i){try{o=e(r)}catch(n){P.error=n,o=P}if(o===P?(a=!0,u=o.error,o.error=null):f=!0,t===o)return void l(t,new TypeError("Cannot return same promise"))}else o=r,f=!0;t.w===x&&(i&&f?c(t,o):a?l(t,u):n===T?s(t,o):n===W&&l(t,o))}function h(n){n[_]=N++,n.w=void 0,n.m=void 0,n.g=[]}var y,w=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)},m=0,b=void 0,M=void 0,g=function(n,t){S[m]=n,S[m+1]=t,2===(m+=2)&&(M?M(e):O())},k=(y=void 0!==n?n:void 0)||{},j=k.k||k.j;k="undefined"==typeof self;var $,A,E,C="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,S=Array(1e3),O=void 0;O=j?($=0,A=new j(e),E=document.createTextNode(""),A.observe(E,{characterData:!0}),function(){E.data=$=++$%2}):C?function(){var n=new MessageChannel;return n.A.onmessage=e,function(){return n.C.postMessage(0)}}():void 0===y&&"function"==typeof require?function(){try{var n=Function("return this")().S("vertx");return void 0!==(b=n.O||n._)?function(){b(e)}:t()}catch(n){return t()}}():t();var _=Math.random().toString(36).substring(2),x=void 0,T=1,W=2,P={error:null},N=0,L=function(){function n(n,t){this.x=n,this.T=new n(o),this.T[_]||h(this.T),w(t)?(this.W=this.length=t.length,this.m=Array(this.length),0===this.length?s(this.T,this.m):(this.length=this.length||0,this.P(t),0===this.W&&s(this.T,this.m))):l(this.T,Error("Array Methods must be provided an Array"))}return n.prototype.P=function(n){for(var t=0;this.w===x&&t<n.length;t++)this.N(n[t],t)},n.prototype.N=function(n,t){var e=this.x,c=e.resolve;c===i?(c=u(n))===r&&n.w!==x?this.L(n.w,t,n.m):"function"!=typeof c?(this.W--,this.m[t]=n):e===R?(f(e=new e(o),n,c),this.R(e,t)):this.R(new e(function(t){return t(n)}),t):this.R(c(n),t)},n.prototype.L=function(n,t,e){var r=this.T;r.w===x&&(this.W--,n===W?l(r,e):this.m[t]=e),0===this.W&&s(r,this.m)},n.prototype.R=function(n,t){var e=this;v(n,void 0,function(n){return e.L(T,t,n)},function(n){return e.L(W,t,n)})},n}(),R=function(){function n(t){if(this[_]=N++,this.m=this.w=void 0,this.g=[],o!==t){if("function"!=typeof t)throw new TypeError("Must pass a resolver fn as 1st arg");if(!(this instanceof n))throw new TypeError("Failed to construct 'Promise': Use the 'new' operator.");!function(n,t){try{t(function(t){c(n,t)},function(t){l(n,t)})}catch(t){l(n,t)}}(this,t)}}return n.prototype.catch=function(n){return this.then(null,n)},n.prototype.D=function(n){var t=this.constructor;return this.then(function(e){return t.resolve(n()).then(function(){return e})},function(e){return t.resolve(n()).then(function(){throw e})})},n}();return R.prototype.then=r,R.all=function(n){return new L(this,n).T},R.race=function(n){var t=this;return w(n)?new t(function(e,r){for(var i=n.length,o=0;o<i;o++)t.resolve(n[o]).then(e,r)}):new t(function(n,t){return t(new TypeError("Must pass array to race"))})},R.resolve=i,R.reject=function(n){var t=new this(o);return l(t,n),t},R.F=function(n){M=n},R.H=function(n){g=n},R.q=g,R.U=function(){var n=void 0;if("undefined"!=typeof global)n=global;else if("undefined"!=typeof self)n=self;else try{n=Function("return this")()}catch(n){throw Error("polyfill failed")}var t=n.Promise;if(t){var e=null;try{e=Object.prototype.toString.call(t.resolve())}catch(n){}if("[object Promise]"===e&&!t.B)return}n.Promise=R},R.Promise=R,R.U(),R}();var t=[];return n.customElements&&(!n.Element||n.Element.prototype.closest&&n.Element.prototype.matches&&n.Element.prototype.remove)||t.push(import("./polyfills/dom.js")),"function"==typeof Object.assign&&Object.entries||t.push(import("./polyfills/object.js")),Array.prototype.find&&Array.prototype.includes||t.push(import("./polyfills/array.js")),String.prototype.startsWith&&String.prototype.endsWith||t.push(import("./polyfills/string.js")),n.fetch||t.push(import("./polyfills/fetch.js")),"undefined"!=typeof WeakMap&&n.CSS&&n.CSS.supports&&n.CSS.supports("color","var(--c)")||t.push(import("./polyfills/css-shim.js")),function e(){try{var n=new URL("b","http://a");return n.pathname="c%20d","http://a/c%20d"===n.href&&n.I}catch(n){return!1}}||t.push(import("./polyfills/url.js")),Promise.all(t).then(function(t){t.forEach(function(t){try{t.applyPolyfill(n,n.document)}catch(n){}})})}var c="$",a={},s=function(t,e,r,i){var o=r.n+c,u=r[o];if((2===r.G||1===r.G&&!t.Y.Q)&&(i["s-sc"]=u?n(r,i.mode):n(r)),u){var f=e.Z.head;if(e.Q)if(1===r.G)f=i.shadowRoot;else{var a=i.getRootNode();a.host&&(f=a)}var s=t.z.get(f);if(s||t.z.set(f,s={}),!s[o]){var l=void 0;if(t.o?l=t.o.createHostStyle(i,o,u):((l=e.J("style")).innerHTML=u,s[o]=!0),l){var v=f.querySelectorAll("[data-styles]");e.K(f,l,v.length&&v[v.length-1].nextSibling||f.firstChild)}}}},l=function(n){return null!=n},v=function(n){return n.toLowerCase()},p=function(n){return v(n).split("-").map(function(n){return n.charAt(0).toUpperCase()+n.slice(1)}).join("")},d=function(n,t,e,r,i,o){if("class"!==e||o)if("style"===e){for(var u in r)i&&null!=i[u]||(/-/.test(u)?t.style.removeProperty(u):t.style[u]="");for(var u in i)r&&i[u]===r[u]||(/-/.test(u)?t.style.setProperty(u,i[u]):t.style[u]=i[u])}else if("o"!==e[0]||"n"!==e[1]||!/[A-Z]/.test(e[2])||e in t)if("list"!==e&&"type"!==e&&!o&&(e in t||-1!==["object","function"].indexOf(typeof i)&&null!==i)){var f=n.V(t);f&&f.X&&f.X[e]?y(t,e,i):"ref"!==e&&(y(t,e,null==i?"":i),null!=i&&!1!==i||n.Y.nn(t,e))}else null!=i&&"key"!==e?function(n,t,e,r,i){void 0===r&&(r="boolean"==typeof e),i=t!==(t=t.replace(/^xlink\:?/,"")),null==e||r&&(!e||"false"===e)?i?n.removeAttributeNS("http://www.w3.org/1999/xlink",v(t)):n.removeAttribute(t):"function"!=typeof e&&(e=r?"":e.toString(),i?n.setAttributeNS("http://www.w3.org/1999/xlink",v(t),e):n.setAttribute(t,e))}(t,e,i):(o||n.Y.tn(t,e)&&(null==i||!1===i))&&n.Y.nn(t,e);else e=v(e)in t?v(e.substring(2)):v(e[2])+e.substring(3),i?i!==r&&n.Y.en(t,e,i):n.Y.rn(t,e);else if(r!==i){var c=h(r),a=h(i),s=c.filter(function(n){return!a.includes(n)}),l=h(t.className).filter(function(n){return!s.includes(n)}),p=a.filter(function(n){return!c.includes(n)&&!l.includes(n)});l.push.apply(l,p),t.className=l.join(" ")}},h=function(n){return null==n||""===n?[]:n.trim().split(/\s+/)},y=function(n,t,e){try{n[t]=e}catch(n){}},w=function(n,t,e,r,i){var o=11===e.t.nodeType&&e.t.host?e.t.host:e.t,u=t&&t.vattrs||a,f=e.vattrs||a;for(i in u)f&&null!=f[i]||null==u[i]||d(n,o,i,u[i],void 0,r,e.e);for(i in f)i in u&&f[i]===("value"===i||"checked"===i?o[i]:u[i])||d(n,o,i,u[i],f[i],r,e.e)},m=!1,b=function(n,t){n&&(n.vattrs&&n.vattrs.ref&&n.vattrs.ref(t?null:n.t),n.vchildren&&n.vchildren.forEach(function(n){b(n,t)}))},M=[],g={forEach:function(n,t){return n.forEach(t)},map:function(n,t){return n.map(t)}},k=function(n,t,e){var r=n[0],i=n[1],o=n[3],u=n[4],f=n[5],c={color:{in:"color"}};if(o)for(t=0;t<o.length;t++)c[(e=o[t])[0]]={on:e[1],un:!!e[2],in:"string"==typeof e[3]?e[3]:e[3]?e[0]:0,fn:e[4]};return{n:r,i,X:Object.assign({},c),G:u,cn:f?f.map(j):void 0}},j=function(n){return{an:n[0],sn:n[1],ln:!!n[2],vn:!!n[3],pn:!!n[4]}},$=function(n,t){return l(t)&&"object"!=typeof t&&"function"!=typeof t?n===Boolean||4===n?"false"!==t&&(""===t||!!t):n===Number||8===n?parseFloat(t):n===String||2===n?t.toString():t:t},A=function(n,t,e){n.dn.add(t),n.hn.has(t)||(n.hn.set(t,!0),n.yn?n.queue.write(function(){return E(n,t,e)}):n.queue.tick(function(){return E(n,t,e)}))},E=function(n,r,f,c,a,s){return i(u,void 0,void 0,function(){var i,u;return o(this,function(o){switch(o.l){case 0:return n.hn.delete(r),n.wn.has(r)?[3,12]:(a=n.mn.get(r))?[3,6]:(s=n.bn.get(r))&&!s["s-rn"]?((s["s-rc"]=s["s-rc"]||[]).push(function(){E(n,r,f)}),[2]):(a=O(n,r,n.Mn.get(r),f),[3,5]);case 1:return o.p.push([1,4,,5]),a.componentWillLoad?[4,a.componentWillLoad()]:[3,3];case 2:o.d(),o.l=3;case 3:return[3,5];case 4:return i=o.d(),n.gn(i,3,r),[3,5];case 5:case 6:return[3,11];case 7:return o.p.push([7,10,,11]),a.componentWillUpdate?[4,a.componentWillUpdate()]:[3,9];case 8:o.d(),o.l=9;case 9:return[3,11];case 10:return u=o.d(),n.gn(u,5,r),[3,11];case 11:(function(n,r,i,o){try{var u=r.kn.host,f=r.kn.encapsulation,c="shadow"===f&&n.Y.Q,a=i;if(c&&(a=i.shadowRoot),!i["s-rn"]){n.jn(n,n.Y,r,i);var s=i["s-sc"];s&&(n.Y.$n(i,t(s,!0)),"scoped"===f&&n.Y.$n(i,t(s)))}if(o.render||o.hostData||u){n.An=!0;var l=o.render&&o.render();n.An=!1;var v=e(null,void 0,l),p=n.En.get(i)||{};p.t=a,n.En.set(i,n.render(i,p,v,c,f))}n.o&&n.o.updateHost(i),i["s-rn"]=!0,i["s-rc"]&&(i["s-rc"].forEach(function(n){return n()}),i["s-rc"]=null)}catch(t){n.An=!1,n.gn(t,8,i,!0)}})(n,n.V(r),r,a),r["s-init"](),o.l=12;case 12:return[2]}})})},C=function(n,t,e,r,i,o,u){(u=n.Cn.get(t))||n.Cn.set(t,u={}),r!==u[e]&&(u[e]=r,n.mn.get(t)&&!n.An&&t["s-rn"]&&A(n,t,i))},S=function(n,t,e,r){Object.defineProperty(n,t,{configurable:!0,get:e,set:r})},O=function(n,t,e,r,i,o){try{i=new(o=n.V(t).kn),function(n,t,e,r,i,o){n.Sn.set(r,e),n.Cn.has(e)||n.Cn.set(e,{}),Object.entries(Object.assign({color:{type:String}},t.properties,{mode:{type:String}})).forEach(function(t){var u=t[0],f=t[1];(function(n,t,e,r,i,o,u,f,c){if(t.type||t.state){var a=n.Cn.get(e);t.state||(!t.attr||void 0!==a[i]&&""!==a[i]||(f=o&&o.On)&&l(c=f[t.attr])&&(a[i]=$(t.type,c)),e.hasOwnProperty(i)&&(void 0===a[i]&&(a[i]=$(t.type,e[i])),"mode"!==i&&delete e[i])),r.hasOwnProperty(i)&&void 0===a[i]&&(a[i]=r[i]),S(r,i,function s(t){return(t=n.Cn.get(n.Sn.get(this)))&&t[i]},function v(e,r){(r=n.Sn.get(this))&&(t.state||t.mutable)&&C(n,r,i,e,u)})}})(n,f,e,r,u,i,o)})}(n,o,t,i,e,r)}catch(e){i={},n.gn(e,7,t,!0)}return n.mn.set(t,i),i},_=function(n,t,e,r,i,o){if(n.dn.delete(t),(i=n.bn.get(t))&&((r=i["s-ld"])&&((e=r.indexOf(t))>-1&&r.splice(e,1),r.length||i["s-init"]&&i["s-init"]()),n.bn.delete(t)),n._n.length&&!n.dn.size)for(;o=n._n.shift();)o()},x=function(n,t,r,i,o,u){var f=r.performance,a={html:{}},p=r[n]=r[n]||{},d=function(n,t,e){var r=new WeakMap,i={Z:e,Q:!!e.documentElement.attachShadow,xn:!1,Tn:function(n){return n.nodeType},J:function(n){return e.createElement(n)},Wn:function(n,t){return e.createElementNS(n,t)},Pn:function(n){return e.createTextNode(n)},Nn:function(n){return e.createComment(n)},K:function(n,t,e){return n.insertBefore(t,e)},Ln:function(n){return n.remove()},Rn:function(n,t){return n.appendChild(t)},$n:function(n,t){if(n.classList)n.classList.add(t);else if("svg"===n.nodeName.toLowerCase()){var e=n.getAttribute("class")||"";e.split(" ").includes(t)||(e+=" "+t),n.setAttribute("class",e.trim())}},Dn:function(n){return n.childNodes},Fn:function(n){return n.parentNode},Hn:function(n){return n.nextSibling},qn:function(n){return n.previousSibling},Un:function(n){return v(n.nodeName)},Bn:function(n){return n.textContent},In:function(n,t){return n.textContent=t},Gn:function(n,t){return n.getAttribute(t)},Qn:function(n,t,e){return n.setAttribute(t,e)},nn:function(n,t){return n.removeAttribute(t)},tn:function(n,t){return n.hasAttribute(t)},Yn:function(t){return t.getAttribute("mode")||(n.Context||{}).mode},Zn:function(n,r){return"child"===r?n.firstElementChild:"parent"===r?i.zn(n):"body"===r?e.body:"document"===r?e:"window"===r?t:n},en:function(t,e,o,u,f,c,a,s,l){var v=t,p=o,d=r.get(t);l=e,d&&d[l]&&d[l](),"object"==typeof c&&(v=c),v&&(a=i.xn?{capture:!!u,passive:!!f}:!!u,n.ael(v,e,p,a),d||r.set(t,d={}),d[l]=function(){v&&n.rel(v,e,p,a),d[l]=null})},rn:function(n,t,e){(e=r.get(n))&&(t?e[t]&&e[t]():Object.keys(e).forEach(function(n){e[n]&&e[n]()}))},Jn:function(n,e,r,i){return i=new t.CustomEvent(e,r),n&&n.dispatchEvent(i),i},zn:function(n,t){return(t=i.Fn(n))&&11===i.Tn(t)?t.host:t},Kn:function(n,t,e,r){return n.setAttributeNS(t,e,r)},Vn:function(n,t){return n.attachShadow(t)}};return"function"!=typeof t.CustomEvent&&(t.CustomEvent=function(n,t,r){return t=t||{},(r=e.createEvent("CustomEvent")).initCustomEvent(n,t.bubbles,t.cancelable,t.detail),r},t.CustomEvent.prototype=t.Event.prototype),n.ael||(n.ael=function(n,t,e,r){return n.addEventListener(t,e,r)},n.rel=function(n,t,e,r){return n.removeEventListener(t,e,r)}),i}(p,r,i),h=d.Z.documentElement,y=r["s-defined"]=r["s-defined"]||{},M={Y:d,r:function(n,t){r.customElements.get(n.n)||(function(n,t,e,r,i){if(e.connectedCallback=function(){(function(n,t,e){n.wn.delete(e),n.Xn.has(e)||(n.nt=!0,n.dn.add(e),n.Xn.set(e,!0),function(n,t,e){for(e=t;e=n.Y.zn(e);)if(n.tt(e)){n.et.has(t)||(n.bn.set(t,e),(e["s-ld"]=e["s-ld"]||[]).push(t));break}}(n,e),n.queue.tick(function(){n.Mn.set(e,function(n,t,e,r,i){return e.mode||(e.mode=n.Yn(e)),e["s-cr"]||n.Gn(e,"ssrv")||n.Q&&1===t.G||(e["s-cr"]=n.Pn(""),e["s-cr"]["s-cn"]=!0,n.K(e,e["s-cr"],n.Dn(e)[0])),n.Q||1!==t.G||(e.shadowRoot=e),1===t.G&&n.Q&&!e.shadowRoot&&n.Vn(e,{mode:"open"}),r={On:{}},t.X&&Object.keys(t.X).forEach(function(o){(i=t.X[o].in)&&(r.On[i]=n.Gn(e,i))}),r}(n.Y,t,e)),n.rt(t,e)}))})(n,t,this)},e.disconnectedCallback=function(){(function(n,t){!n.it&&function(n,t){for(;t;){if(!n.Fn(t))return 9!==n.Tn(t);t=n.Fn(t)}}(n.Y,t)&&(n.wn.set(t,!0),_(n,t),b(n.En.get(t),!0),n.Y.rn(t),n.ot.delete(t),n.o&&n.o.ut(t),[n.bn,n.ft,n.Mn].forEach(function(n){return n.delete(t)}))})(n,this)},e["s-init"]=function(){(function(n,t,e,r,i,o,u){if((i=n.mn.get(t))&&!n.wn.has(t)&&(!t["s-ld"]||!t["s-ld"].length)){n.et.set(t,!0),(u=n.ct.has(t))||(n.ct.set(t,!0),t["s-ld"]=void 0,n.Y.$n(t,e));try{b(n.En.get(t)),(o=n.ft.get(t))&&(o.forEach(function(n){return n(t)}),n.ft.delete(t)),!u&&i.componentDidLoad&&i.componentDidLoad()}catch(e){n.gn(e,4,t)}_(n,t)}})(n,this,r)},e.forceUpdate=function(){A(n,this,i)},t.X){var o=Object.entries(t.X),u={};o.forEach(function(n){var t=n[0],e=n[1].in;e&&(u[e]=t)}),u=Object.assign({},u),e.attributeChangedCallback=function(n,t,e){(function r(n,t,e,i){var o=n[v(e)];o&&(t[o]=i)})(u,this,n,e)},function(n,t,e,r){o.forEach(function(t){var i=t[0],o=t[1];3&o.on&&S(e,i,function t(){return(n.Cn.get(this)||{})[i]},function t(e){C(n,this,i,$(o.fn,e),r)})})}(n,0,e,i)}}(M,a[n.n]=n,t.prototype,u,f),t.observedAttributes=Object.values(n.X).map(function(n){return n.in}).filter(function(n){return!!n}),r.customElements.define(n.n,t))},V:function(n){return a[d.Un(n)]},at:function(n){return t[n]},isClient:!0,tt:function(n){return!(!y[d.Un(n)]&&!M.V(n))},gn:function(){},queue:t.queue=function(n,t){var e=0,r=!1,i=function(){return t.performance.now()},o=!1!==n.asyncQueue,u=Promise.resolve(),f=[],c=[],a=[],s=[],l=function(t){return function(e){t.push(e),r||(r=!0,n.raf(d))}},v=function(n){for(var t=0;t<n.length;t++)try{n[t](i())}catch(n){}n.length=0},p=function(n,t){for(var e,r=0;r<n.length&&(e=i())<t;)try{n[r++](e)}catch(n){}r===n.length?n.length=0:0!==r&&n.splice(0,r)},d=function(){e++,v(c);var t=o?i()+7*Math.ceil(e*(1/22)):Infinity;p(a,t),p(s,t),a.length>0&&(s.push.apply(s,a),a.length=0),(r=c.length+a.length+s.length>0)?n.raf(d):e=0};return n.raf||(n.raf=t.requestAnimationFrame.bind(t)),{tick:function(n){f.push(n),1===f.length&&u.then(function(){return v(f)})},read:l(c),write:l(a)}}(p,r),rt:function(n,t){var e=!d.Q,r={mode:t.mode,scoped:e};n.i(r).then(function(e){try{n.kn=e,function r(n,t,e,i,o){if(i){var u=t.n+(o||c);t[u]||(t[u]=i)}}(0,n,n.G,e.style,e.styleMode)}catch(t){n.kn=function i(){}}A(M,t,f)})},An:!1,yn:!1,it:!1,jn:s,bn:new WeakMap,z:new WeakMap,Xn:new WeakMap,ot:new WeakMap,ct:new WeakMap,et:new WeakMap,Sn:new WeakMap,Mn:new WeakMap,mn:new WeakMap,wn:new WeakMap,hn:new WeakMap,ft:new WeakMap,st:new WeakMap,En:new WeakMap,Cn:new WeakMap,dn:new Set,_n:[]};return t.isServer=t.isPrerender=!(t.isClient=!0),t.window=r,t.location=r.location,t.document=i,t.resourcesUrl=t.publicPath=o,p.h=e,p.Context=t,p.onReady=function(){return new Promise(function(n){return M.queue.write(function(){return M.dn.size?M._n.push(n):n()})})},M.render=function(n,t){var e,r,i,o,u,f,c,a=function(i,v,p,d,h,y,b,M,g){if(M=v.vchildren[p],e||(o=!0,"slot"===M.vtag&&(r&&t.$n(d,r+"-s"),M.vchildren?M.lt=!0:M.vt=!0)),l(M.vtext))M.t=t.Pn(M.vtext);else if(M.vt)M.t=t.Pn("");else{if(y=M.t=m||"svg"===M.vtag?t.Wn("http://www.w3.org/2000/svg",M.vtag):t.J(M.lt?"slot-fb":M.vtag),n.tt(y)&&n.et.delete(c),m="svg"===M.vtag||"foreignObject"!==M.vtag&&m,w(n,null,M,m),l(r)&&y["s-si"]!==r&&t.$n(y,y["s-si"]=r),M.vchildren)for(h=0;h<M.vchildren.length;++h)(b=a(i,M,h,y))&&t.Rn(y,b);"svg"===M.vtag&&(m=!1)}return M.t["s-hn"]=f,(M.lt||M.vt)&&(M.t["s-sr"]=!0,M.t["s-cr"]=u,M.t["s-sn"]=M.vname||"",(g=i&&i.vchildren&&i.vchildren[p])&&g.vtag===M.vtag&&i.t&&s(i.t)),M.t},s=function(e,r,i,u){n.it=!0;var c=t.Dn(e);for(i=c.length-1;i>=0;i--)(u=c[i])["s-hn"]!==f&&u["s-ol"]&&(t.Ln(u),t.K(y(u),u,h(u)),t.Ln(u["s-ol"]),u["s-ol"]=null,o=!0),r&&s(u,r);n.it=!1},v=function(n,e,r,i,o,u,c,s){var v=n["s-cr"];for((c=v&&t.Fn(v)||n).shadowRoot&&t.Un(c)===f&&(c=c.shadowRoot);o<=u;++o)i[o]&&(s=l(i[o].vtext)?t.Pn(i[o].vtext):a(null,r,o,n))&&(i[o].t=s,t.K(c,s,h(e)))},p=function(n,e,r,o){for(;e<=r;++e)l(n[e])&&(o=n[e].t,i=!0,o["s-ol"]?t.Ln(o["s-ol"]):s(o,!0),t.Ln(o))},d=function(n,t){return n.vtag===t.vtag&&n.vkey===t.vkey&&("slot"!==n.vtag||n.vname===t.vname)},h=function(n){return n&&n["s-ol"]?n["s-ol"]:n},y=function(n){return t.Fn(n["s-ol"]?n["s-ol"]:n)},b=function(e,r,i){var o=r.t=e.t,u=e.vchildren,f=r.vchildren;m=r.t&&l(t.zn(r.t))&&void 0!==r.t.ownerSVGElement,m="svg"===r.vtag||"foreignObject"!==r.vtag&&m,l(r.vtext)?(i=o["s-cr"])?t.In(t.Fn(i),r.vtext):e.vtext!==r.vtext&&t.In(o,r.vtext):("slot"!==r.vtag&&w(n,e,r,m),l(u)&&l(f)?function(n,e,r,i,o,u,f,c){for(var w=0,m=0,M=e.length-1,g=e[0],k=e[M],j=i.length-1,$=i[0],A=i[j];w<=M&&m<=j;)if(null==g)g=e[++w];else if(null==k)k=e[--M];else if(null==$)$=i[++m];else if(null==A)A=i[--j];else if(d(g,$))b(g,$),g=e[++w],$=i[++m];else if(d(k,A))b(k,A),k=e[--M],A=i[--j];else if(d(g,A))"slot"!==g.vtag&&"slot"!==A.vtag||s(t.Fn(g.t)),b(g,A),t.K(n,g.t,t.Hn(k.t)),g=e[++w],A=i[--j];else if(d(k,$))"slot"!==g.vtag&&"slot"!==A.vtag||s(t.Fn(k.t)),b(k,$),t.K(n,k.t,g.t),k=e[--M],$=i[++m];else{for(o=null,u=w;u<=M;++u)if(e[u]&&l(e[u].vkey)&&e[u].vkey===$.vkey){o=u;break}l(o)?((c=e[o]).vtag!==$.vtag?f=a(e&&e[m],r,o,n):(b(c,$),e[o]=void 0,f=c.t),$=i[++m]):(f=a(e&&e[m],r,m,n),$=i[++m]),f&&t.K(y(g.t),f,h(g.t))}w>M?v(n,null==i[j+1]?null:i[j+1].t,r,i,m,j):m>j&&p(e,w,M)}(o,u,r,f):l(f)?(l(e.vtext)&&t.In(o,""),v(o,null,r,f,0,f.length-1)):l(u)&&p(u,0,u.length-1)),m&&"svg"===r.vtag&&(m=!1)},M=function(n,e,r,i,o,u,f,c){for(i=0,o=(r=t.Dn(n)).length;i<o;i++)if(e=r[i],1===t.Tn(e)){if(e["s-sr"])for(f=e["s-sn"],e.hidden=!1,u=0;u<o;u++)if(r[u]["s-hn"]!==e["s-hn"])if(c=t.Tn(r[u]),""!==f){if(1===c&&f===t.Gn(r[u],"slot")){e.hidden=!0;break}}else if(1===c||3===c&&""!==t.Bn(r[u]).trim()){e.hidden=!0;break}M(e)}},g=[],k=function(n,e,r,o,u,f,c,a,s,l){for(u=0,f=(e=t.Dn(n)).length;u<f;u++){if((r=e[u])["s-sr"]&&(o=r["s-cr"]))for(a=t.Dn(t.Fn(o)),s=r["s-sn"],c=a.length-1;c>=0;c--)(o=a[c])["s-cn"]||o["s-nr"]||o["s-hn"]===r["s-hn"]||((3===(l=t.Tn(o))||8===l)&&""===s||1===l&&null===t.Gn(o,"slot")&&""===s||1===l&&t.Gn(o,"slot")===s)&&(g.some(function(n){return n.pt===o})||(i=!0,o["s-sn"]=s,g.push({dt:r,pt:o})));1===t.Tn(r)&&k(r)}};return function(a,s,l,v,p,d,h,y,w,m,j,$){if(c=a,f=t.Un(c),u=c["s-cr"],e=v,r=c["s-sc"],o=i=!1,b(s,l),o){for(k(l.t),h=0;h<g.length;h++)(y=g[h]).pt["s-ol"]||((w=t.Pn(""))["s-nr"]=y.pt,t.K(t.Fn(y.pt),y.pt["s-ol"]=w,y.pt));for(n.it=!0,h=0;h<g.length;h++){for(y=g[h],j=t.Fn(y.dt),$=t.Hn(y.dt),w=y.pt["s-ol"];w=t.qn(w);)if((m=w["s-nr"])&&m&&m["s-sn"]===y.pt["s-sn"]&&j===t.Fn(m)&&(m=t.Hn(m))&&m&&!m["s-nr"]){$=m;break}(!$&&j!==t.Fn(y.pt)||t.Hn(y.pt)!==$)&&y.pt!==$&&(t.Ln(y.pt),t.K(j,y.pt,$))}n.it=!1}return i&&M(l.t),g.length=0,l}}(M,d),h["s-ld"]=[],h["s-rn"]=!0,h["s-init"]=function(){M.et.set(h,p.loaded=M.yn=!0),d.Jn(r,"appload",{detail:{namespace:n}})},function(n,t,e,r,i,o){if(t.componentOnReady=function(t,e){if(!t.nodeName.includes("-"))return e(null),!1;var r=n.V(t);if(r)if(n.et.has(t))e(t);else{var i=n.ft.get(t)||[];i.push(e),n.ft.set(t,i)}return!!r},i){for(o=i.length-1;o>=0;o--)t.componentOnReady(i[o][0],i[o][1])&&i.splice(o,1);for(o=0;o<r.length;o++)if(!e[r[o]].componentOnReady)return;for(o=0;o<i.length;o++)i[o][1](null);i.length=0}}(M,p,r,r["s-apps"],r["s-cr"]),p.initialized=!0,M},T={},W=!1;export{r as defineCustomElement,e as h}; | ||
"./build/"+n+(t?".sc":"")+".entry.js").then(function(n){return n[e]})}("string"==typeof e?e:e[t],i,r)},t}(t),e)})}if(!P[s]){var u={},c=e.resourcesUrl||"./";f(s,u,n,i,c,o),P[s]=W(s,u,n,i,c,o,r)}if(window.customStyleShim)return P[s].l=window.customStyleShim,P[s].l.initShim().then(t);t()})}this&&this.v;var i=this&&this.p||function(n,t,e,r){return new(e||(e=Promise))(function(i,o){function u(n){try{c(r.next(n))}catch(n){o(n)}}function f(n){try{c(r.throw(n))}catch(n){o(n)}}function c(n){n.done?i(n.value):new e(function(t){t(n.value)}).then(u,f)}c((r=r.apply(n,t||[])).next())})},o=this&&this.m||function(n,t){function e(e){return function(u){return function c(e){if(r)throw new TypeError("Generator is already executing.");for(;f;)try{if(r=1,i&&(o=2&e[0]?i.return:e[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,e[1])).done)return o;switch(i=0,o&&(e=[2&e[0],o.value]),e[0]){case 0:case 1:o=e;break;case 4:return f.label++,{value:e[1],done:!1};case 5:f.label++,i=e[1],e=[0];continue;case 7:e=f.M.pop(),f.g.pop();continue;default:if(!(o=(o=f.g).length>0&&o[o.length-1])&&(6===e[0]||2===e[0])){f=0;continue}if(3===e[0]&&(!o||e[1]>o[0]&&e[1]<o[3])){f.label=e[1];break}if(6===e[0]&&f.label<o[1]){f.label=o[1],o=e;break}if(o&&f.label<o[2]){f.label=o[2],f.M.push(e);break}o[2]&&f.M.pop(),f.g.pop();continue}e=t.call(n,f)}catch(n){e=[6,n],i=0}finally{r=o=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,u])}}var r,i,o,u,f={label:0,k:function(){if(1&o[0])throw o[1];return o[1]},g:[],M:[]};return u={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u},u=this,f=function(){};function applyPolyfills(n){n.j=function(){function t(){var n=setTimeout;return function(){return n(e,1)}}function e(){for(var n=0;n<m;n+=2)(0,S[n])(S[n+1]),S[n]=void 0,S[n+1]=void 0;m=0}function r(n,t){var e=this,r=new this.constructor(o);void 0===r[_]&&h(r);var i=e.A;if(i){var u=arguments[i-1];g(function(){return d(i,r,u,e.C)})}else v(e,r,n,t);return r}function i(n){if(n&&"object"==typeof n&&n.constructor===this)return n;var t=new this(o);return c(t,n),t}function o(){}function u(n){try{return n.then}catch(n){return P.error=n,P}}function f(n,t,e){t.constructor===n.constructor&&e===r&&t.constructor.resolve===i?function(n,t){t.A===T?s(n,t.C):t.A===W?l(n,t.C):v(t,void 0,function(t){return c(n,t)},function(t){return l(n,t)})}(n,t):e===P?(l(n,P.error),P.error=null):void 0===e?s(n,t):"function"==typeof e?function(n,t,e){g(function(n){var r=!1,i=function(n,t,e,r){try{n.call(t,e,r)}catch(n){return n}}(e,t,function(e){r||(r=!0,t!==e?c(n,e):s(n,e))},function(t){r||(r=!0,l(n,t))},n.S);!r&&i&&(r=!0,l(n,i))},n)}(n,t,e):s(n,t)}function c(n,t){if(n===t)l(n,new TypeError("cannot resolve promise w/ itself"));else{var e=typeof t;null===t||"object"!==e&&"function"!==e?s(n,t):f(n,t,u(t))}}function a(n){n.O&&n.O(n.C),p(n)}function s(n,t){n.A===x&&(n.C=t,n.A=T,0!==n._.length&&g(p,n))}function l(n,t){n.A===x&&(n.A=W,n.C=t,g(a,n))}function v(n,t,e,r){var i=n._,o=i.length;n.O=null,i[o]=t,i[o+T]=e,i[o+W]=r,0===o&&n.A&&g(p,n)}function p(n){var t=n._,e=n.A;if(0!==t.length){for(var r,i,o=n.C,u=0;u<t.length;u+=3)r=t[u],i=t[u+e],r?d(e,r,i,o):i(o);n._.length=0}}function d(n,t,e,r){var i="function"==typeof e,o=void 0,u=void 0,f=void 0,a=void 0;if(i){try{o=e(r)}catch(n){P.error=n,o=P}if(o===P?(a=!0,u=o.error,o.error=null):f=!0,t===o)return void l(t,new TypeError("Cannot return same promise"))}else o=r,f=!0;t.A===x&&(i&&f?c(t,o):a?l(t,u):n===T?s(t,o):n===W&&l(t,o))}function h(n){n[_]=N++,n.A=void 0,n.C=void 0,n._=[]}var y,w=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)},m=0,b=void 0,M=void 0,g=function(n,t){S[m]=n,S[m+1]=t,2===(m+=2)&&(M?M(e):O())},k=(y=void 0!==n?n:void 0)||{},j=k.MutationObserver||k.WebKitMutationObserver;k="undefined"==typeof self;var $,A,E,C="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,S=Array(1e3),O=void 0;O=j?($=0,A=new j(e),E=document.createTextNode(""),A.observe(E,{characterData:!0}),function(){E.data=$=++$%2}):C?function(){var n=new MessageChannel;return n.port1.onmessage=e,function(){return n.port2.postMessage(0)}}():void 0===y&&"function"==typeof require?function(){try{var n=Function("return this")().T("vertx");return void 0!==(b=n.W||n.P)?function(){b(e)}:t()}catch(n){return t()}}():t();var _=Math.random().toString(36).substring(2),x=void 0,T=1,W=2,P={error:null},N=0,R=function(){function n(n,t){this.N=n,this.R=new n(o),this.R[_]||h(this.R),w(t)?(this.L=this.length=t.length,this.C=Array(this.length),0===this.length?s(this.R,this.C):(this.length=this.length||0,this.D(t),0===this.L&&s(this.R,this.C))):l(this.R,Error("Array Methods must be provided an Array"))}return n.prototype.D=function(n){for(var t=0;this.A===x&&t<n.length;t++)this.F(n[t],t)},n.prototype.F=function(n,t){var e=this.N,c=e.resolve;c===i?(c=u(n))===r&&n.A!==x?this.H(n.A,t,n.C):"function"!=typeof c?(this.L--,this.C[t]=n):e===L?(f(e=new e(o),n,c),this.q(e,t)):this.q(new e(function(t){return t(n)}),t):this.q(c(n),t)},n.prototype.H=function(n,t,e){var r=this.R;r.A===x&&(this.L--,n===W?l(r,e):this.C[t]=e),0===this.L&&s(r,this.C)},n.prototype.q=function(n,t){var e=this;v(n,void 0,function(n){return e.H(T,t,n)},function(n){return e.H(W,t,n)})},n}(),L=function(){function n(t){if(this[_]=N++,this.C=this.A=void 0,this._=[],o!==t){if("function"!=typeof t)throw new TypeError("Must pass a resolver fn as 1st arg");if(!(this instanceof n))throw new TypeError("Failed to construct 'Promise': Use the 'new' operator.");!function(n,t){try{t(function(t){c(n,t)},function(t){l(n,t)})}catch(t){l(n,t)}}(this,t)}}return n.prototype.catch=function(n){return this.then(null,n)},n.prototype.U=function(n){var t=this.constructor;return this.then(function(e){return t.resolve(n()).then(function(){return e})},function(e){return t.resolve(n()).then(function(){throw e})})},n}();return L.prototype.then=r,L.all=function(n){return new R(this,n).R},L.race=function(n){var t=this;return w(n)?new t(function(e,r){for(var i=n.length,o=0;o<i;o++)t.resolve(n[o]).then(e,r)}):new t(function(n,t){return t(new TypeError("Must pass array to race"))})},L.resolve=i,L.reject=function(n){var t=new this(o);return l(t,n),t},L.B=function(n){M=n},L.I=function(n){g=n},L.G=g,L.Y=function(){var n=void 0;if("undefined"!=typeof global)n=global;else if("undefined"!=typeof self)n=self;else try{n=Function("return this")()}catch(n){throw Error("polyfill failed")}var t=n.Promise;if(t){var e=null;try{e=Object.prototype.toString.call(t.resolve())}catch(n){}if("[object Promise]"===e&&!t.cast)return}n.Promise=L},L.Promise=L,L.Y(),L}();var t=[];return n.customElements&&(!n.Element||n.Element.prototype.closest&&n.Element.prototype.matches&&n.Element.prototype.remove)||t.push(import("./polyfills/dom.js")),"function"==typeof Object.assign&&Object.entries||t.push(import("./polyfills/object.js")),Array.prototype.find&&Array.prototype.includes||t.push(import("./polyfills/array.js")),String.prototype.startsWith&&String.prototype.endsWith||t.push(import("./polyfills/string.js")),n.fetch||t.push(import("./polyfills/fetch.js")),"undefined"!=typeof WeakMap&&n.CSS&&n.CSS.supports&&n.CSS.supports("color","var(--c)")||t.push(import("./polyfills/css-shim.js")),function e(){try{var n=new URL("b","http://a");return n.pathname="c%20d","http://a/c%20d"===n.href&&n.searchParams}catch(n){return!1}}||t.push(import("./polyfills/url.js")),Promise.all(t).then(function(t){t.forEach(function(t){try{t.applyPolyfill(n,n.document)}catch(n){console.error(n)}})})}var c="$",a={},s=function(t,e,r,i){var o=r.t+c,u=r[o];if((2===r.Z||1===r.Z&&!t.K.J)&&(i["s-sc"]=u?n(r,i.mode):n(r)),u){var f=e.V.head;if(e.J)if(1===r.Z)f=i.shadowRoot;else{var a=i.getRootNode();a.host&&(f=a)}var s=t.X.get(f);if(s||t.X.set(f,s={}),!s[o]){var l=void 0;if(t.l?l=t.l.createHostStyle(i,o,u):((l=e.nn("style")).innerHTML=u,s[o]=!0),l){var v=f.querySelectorAll("[data-styles]");e.tn(f,l,v.length&&v[v.length-1].nextSibling||f.firstChild)}}}},l=function(n){return null!=n},v=function(n){return n.toLowerCase()},p=function(n){return v(n).split("-").map(function(n){return n.charAt(0).toUpperCase()+n.slice(1)}).join("")},d=function(n,t,e,r,i,o){if("class"!==e||o)if("style"===e){for(var u in r)i&&null!=i[u]||(/-/.test(u)?t.style.removeProperty(u):t.style[u]="");for(var u in i)r&&i[u]===r[u]||(/-/.test(u)?t.style.setProperty(u,i[u]):t.style[u]=i[u])}else if("o"!==e[0]||"n"!==e[1]||!/[A-Z]/.test(e[2])||e in t)if("list"!==e&&"type"!==e&&!o&&(e in t||-1!==["object","function"].indexOf(typeof i)&&null!==i)){var f=n.en(t);f&&f.rn&&f.rn[e]?y(t,e,i):"ref"!==e&&(y(t,e,null==i?"":i),null!=i&&!1!==i||n.K.in(t,e))}else null!=i&&"key"!==e?function(n,t,e,r,i){void 0===r&&(r="boolean"==typeof e),i=t!==(t=t.replace(/^xlink\:?/,"")),null==e||r&&(!e||"false"===e)?i?n.removeAttributeNS("http://www.w3.org/1999/xlink",v(t)):n.removeAttribute(t):"function"!=typeof e&&(e=r?"":e.toString(),i?n.setAttributeNS("http://www.w3.org/1999/xlink",v(t),e):n.setAttribute(t,e))}(t,e,i):(o||n.K.on(t,e)&&(null==i||!1===i))&&n.K.in(t,e);else e=v(e)in t?v(e.substring(2)):v(e[2])+e.substring(3),i?i!==r&&n.K.un(t,e,i):n.K.fn(t,e);else if(r!==i){var c=h(r),a=h(i),s=c.filter(function(n){return!a.includes(n)}),l=h(t.className).filter(function(n){return!s.includes(n)}),p=a.filter(function(n){return!c.includes(n)&&!l.includes(n)});l.push.apply(l,p),t.className=l.join(" ")}},h=function(n){return null==n||""===n?[]:n.trim().split(/\s+/)},y=function(n,t,e){try{n[t]=e}catch(n){}},w=function(n,t,e,r,i){var o=11===e.i.nodeType&&e.i.host?e.i.host:e.i,u=t&&t.vattrs||a,f=e.vattrs||a;for(i in u)f&&null!=f[i]||null==u[i]||d(n,o,i,u[i],void 0,r,e.o);for(i in f)i in u&&f[i]===("value"===i||"checked"===i?o[i]:u[i])||d(n,o,i,u[i],f[i],r,e.o)},m=!1,b=function(n,t){n&&(n.vattrs&&n.vattrs.ref&&n.vattrs.ref(t?null:n.i),n.vchildren&&n.vchildren.forEach(function(n){b(n,t)}))},M=function(n,t){var e=0,r=!1,i=function(){return t.performance.now()},o=!1!==n.asyncQueue,u=Promise.resolve(),f=[],c=[],a=[],s=[],l=function(t){return function(e){t.push(e),r||(r=!0,n.raf(d))}},v=function(n){for(var t=0;t<n.length;t++)try{n[t](i())}catch(n){console.error(n)}n.length=0},p=function(n,t){for(var e,r=0;r<n.length&&(e=i())<t;)try{n[r++](e)}catch(n){console.error(n)}r===n.length?n.length=0:0!==r&&n.splice(0,r)},d=function(){e++,v(c);var t=o?i()+7*Math.ceil(e*(1/22)):Infinity;p(a,t),p(s,t),a.length>0&&(s.push.apply(s,a),a.length=0),(r=c.length+a.length+s.length>0)?n.raf(d):e=0};return n.raf||(n.raf=t.requestAnimationFrame.bind(t)),{tick:function(n){f.push(n),1===f.length&&u.then(function(){return v(f)})},read:l(c),write:l(a)}},g=[],k={forEach:function(n,t){return n.forEach(t)},map:function(n,t){return n.map(t)}},j=function(n,t,e){var r=n[0],i=n[1],o=n[3],u=n[4],f=n[5],c={color:{cn:"color"}};if(o)for(t=0;t<o.length;t++)c[(e=o[t])[0]]={an:e[1],sn:!!e[2],cn:"string"==typeof e[3]?e[3]:e[3]?e[0]:0,ln:e[4]};return{t:r,s:i,rn:Object.assign({},c),Z:u,vn:f?f.map($):void 0}},$=function(n){return{pn:n[0],dn:n[1],hn:!!n[2],yn:!!n[3],wn:!!n[4]}},A=function(n,t){return l(t)&&"object"!=typeof t&&"function"!=typeof t?n===Boolean||4===n?"false"!==t&&(""===t||!!t):n===Number||8===n?parseFloat(t):n===String||2===n?t.toString():t:t},E=function(n,t,e){n.mn.add(t),n.bn.has(t)||(n.bn.set(t,!0),n.Mn?n.queue.write(function(){return C(n,t,e)}):n.queue.tick(function(){return C(n,t,e)}))},C=function(n,r,f,c,a,s){return i(u,void 0,void 0,function(){var i,u;return o(this,function(o){switch(o.label){case 0:if(n.bn.delete(r),n.gn.has(r))return[3,12];if(a=n.kn.get(r))return[3,6];if((s=n.jn.get(r))&&!s["s-rn"])return(s["s-rc"]=s["s-rc"]||[]).push(function(){C(n,r,f)}),[2];if(!(a=_(n,r,n.$n.get(r),f)))return[3,5];o.label=1;case 1:return o.g.push([1,4,,5]),a.componentWillLoad?[4,a.componentWillLoad()]:[3,3];case 2:o.k(),o.label=3;case 3:return[3,5];case 4:return i=o.k(),n.An(i,3,r),[3,5];case 5:case 6:return[3,11];case 7:return o.g.push([7,10,,11]),a.componentWillUpdate?[4,a.componentWillUpdate()]:[3,9];case 8:o.k(),o.label=9;case 9:return[3,11];case 10:return u=o.k(),n.An(u,5,r),[3,11];case 11:(function(n,r,i,o){try{var u=r.En.host,f=r.En.encapsulation,c="shadow"===f&&n.K.J,a=i;if(c&&(a=i.shadowRoot),!i["s-rn"]){n.Cn(n,n.K,r,i);var s=i["s-sc"];s&&(n.K.Sn(i,t(s,!0)),"scoped"===f&&n.K.Sn(i,t(s)))}if(o.render||o.hostData||u){n.On=!0;var l=o.render&&o.render();n.On=!1;var v=e(null,void 0,l),p=n._n.get(i)||{};p.i=a,n._n.set(i,n.render(i,p,v,c,f))}n.l&&n.l.updateHost(i),i["s-rn"]=!0,i["s-rc"]&&(i["s-rc"].forEach(function(n){return n()}),i["s-rc"]=null)}catch(t){n.On=!1,n.An(t,8,i,!0)}})(n,n.en(r),r,a),r["s-init"](),o.label=12;case 12:return[2]}})})},S=function(n,t,e,r,i,o,u){(u=n.xn.get(t))||n.xn.set(t,u={}),r!==u[e]&&(u[e]=r,n.kn.get(t)&&!n.On&&t["s-rn"]&&E(n,t,i))},O=function(n,t,e,r){Object.defineProperty(n,t,{configurable:!0,get:e,set:r})},_=function(n,t,e,r,i,o){try{i=new(o=n.en(t).En),function(n,t,e,r,i,o){n.Tn.set(r,e),n.xn.has(e)||n.xn.set(e,{}),Object.entries(Object.assign({color:{type:String}},t.properties,{mode:{type:String}})).forEach(function(t){var u=t[0],f=t[1];(function(n,t,e,r,i,o,u,f,c){if(t.type||t.state){var a=n.xn.get(e);t.state||(!t.attr||void 0!==a[i]&&""!==a[i]||(f=o&&o.Wn)&&l(c=f[t.attr])&&(a[i]=A(t.type,c)),e.hasOwnProperty(i)&&(void 0===a[i]&&(a[i]=A(t.type,e[i])),"mode"!==i&&delete e[i])),r.hasOwnProperty(i)&&void 0===a[i]&&(a[i]=r[i]),O(r,i,function s(t){return(t=n.xn.get(n.Tn.get(this)))&&t[i]},function v(e,r){(r=n.Tn.get(this))&&(t.state||t.mutable)&&S(n,r,i,e,u)})}})(n,f,e,r,u,i,o)})}(n,o,t,i,e,r)}catch(e){i={},n.An(e,7,t,!0)}return n.kn.set(t,i),i},x=function(n,t){for(var e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];if(1===r.nodeType){if(n.en(r)&&!n.Pn.has(r))return!1;if(!x(n,r))return!1}}return!0},T=function(n,t,e,r,i,o){if(n.mn.delete(t),(i=n.jn.get(t))&&((r=i["s-ld"])&&((e=r.indexOf(t))>-1&&r.splice(e,1),r.length||i["s-init"]&&i["s-init"]()),n.jn.delete(t)),n.Nn.length&&!n.mn.size)for(;o=n.Nn.shift();)o()},W=function(n,t,r,i,o,u){var f=r.performance,a={html:{}},p=r[n]=r[n]||{},d=function(n,t,e){var r=new WeakMap,i={V:e,J:!!e.documentElement.attachShadow,Rn:!1,Ln:function(n){return n.nodeType},nn:function(n){return e.createElement(n)},Dn:function(n,t){return e.createElementNS(n,t)},Fn:function(n){return e.createTextNode(n)},Hn:function(n){return e.createComment(n)},tn:function(n,t,e){return n.insertBefore(t,e)},qn:function(n){return n.remove()},Un:function(n,t){return n.appendChild(t)},Sn:function(n,t){if(n.classList)n.classList.add(t);else if("svg"===n.nodeName.toLowerCase()){var e=n.getAttribute("class")||"";e.split(" ").includes(t)||(e+=" "+t),n.setAttribute("class",e.trim())}},Bn:function(n){return n.childNodes},In:function(n){return n.parentNode},Gn:function(n){return n.nextSibling},Qn:function(n){return n.previousSibling},Yn:function(n){return v(n.nodeName)},Zn:function(n){return n.textContent},zn:function(n,t){return n.textContent=t},Jn:function(n,t){return n.getAttribute(t)},Kn:function(n,t,e){return n.setAttribute(t,e)},in:function(n,t){return n.removeAttribute(t)},on:function(n,t){return n.hasAttribute(t)},Vn:function(t){return t.getAttribute("mode")||(n.Context||{}).mode},Xn:function(n,r){return"child"===r?n.firstElementChild:"parent"===r?i.nt(n):"body"===r?e.body:"document"===r?e:"window"===r?t:n},un:function(t,e,o,u,f,c,a,s,l){var v=t,p=o,d=r.get(t);l=e,d&&d[l]&&d[l](),"object"==typeof c&&(v=c),v&&(a=i.Rn?{capture:!!u,passive:!!f}:!!u,n.ael(v,e,p,a),d||r.set(t,d={}),d[l]=function(){v&&n.rel(v,e,p,a),d[l]=null})},fn:function(n,t,e){(e=r.get(n))&&(t?e[t]&&e[t]():Object.keys(e).forEach(function(n){e[n]&&e[n]()}))},tt:function(n,e,r,i){return i=new t.CustomEvent(e,r),n&&n.dispatchEvent(i),i},nt:function(n,t){return(t=i.In(n))&&11===i.Ln(t)?t.host:t},et:function(n,t,e,r){return n.setAttributeNS(t,e,r)},rt:function(n,t){return n.attachShadow(t)}};return"function"!=typeof t.CustomEvent&&(t.CustomEvent=function(n,t,r){return t=t||{},(r=e.createEvent("CustomEvent")).initCustomEvent(n,t.bubbles,t.cancelable,t.detail),r},t.CustomEvent.prototype=t.Event.prototype),n.ael||(n.ael=function(n,t,e,r){return n.addEventListener(t,e,r)},n.rel=function(n,t,e,r){return n.removeEventListener(t,e,r)}),i}(p,r,i),h=d.V.documentElement,y=r["s-defined"]=r["s-defined"]||{},g={K:d,u:function(n,t){r.customElements.get(n.t)||(function(n,t,e,r,i){if(e.connectedCallback=function(){(function(n,t,e){n.gn.delete(e),n.Pn.has(e)||(n.it=!0,n.mn.add(e),n.Pn.set(e,!0),function(n,t,e){for(e=t;e=n.K.nt(e);)if(n.ot(e)){n.ut.has(t)||(n.jn.set(t,e),(e["s-ld"]=e["s-ld"]||[]).push(t));break}}(n,e),n.queue.tick(function(){n.$n.set(e,function(n,t,e,r,i){return e.mode||(e.mode=n.Vn(e)),e["s-cr"]||n.Jn(e,"ssrv")||n.J&&1===t.Z||(e["s-cr"]=n.Fn(""),e["s-cr"]["s-cn"]=!0,n.tn(e,e["s-cr"],n.Bn(e)[0])),n.J||1!==t.Z||!window.HTMLElement||"shadowRoot"in window.HTMLElement.prototype||(e.shadowRoot=e),1===t.Z&&n.J&&!e.shadowRoot&&n.rt(e,{mode:"open"}),r={Wn:{}},t.rn&&Object.keys(t.rn).forEach(function(o){(i=t.rn[o].cn)&&(r.Wn[i]=n.Jn(e,i))}),r}(n.K,t,e)),n.ft(t,e)}))})(n,t,this)},e.disconnectedCallback=function(){(function(n,t){!n.ct&&function(n,t){for(;t;){if(!n.In(t))return 9!==n.Ln(t);t=n.In(t)}}(n.K,t)&&(n.gn.set(t,!0),T(n,t),b(n._n.get(t),!0),n.K.fn(t),n.at.delete(t),n.l&&n.l.removeHost(t),[n.jn,n.st,n.$n].forEach(function(n){return n.delete(t)}))})(n,this)},e["s-init"]=function(){(function(n,t,e,r,i,o,u){if(x(n,t)&&(i=n.kn.get(t))&&!n.gn.has(t)&&(!t["s-ld"]||!t["s-ld"].length)){n.ut.set(t,!0),(u=n.lt.has(t))||(n.lt.set(t,!0),t["s-ld"]=void 0,n.K.Sn(t,e));try{b(n._n.get(t)),(o=n.st.get(t))&&(o.forEach(function(n){return n(t)}),n.st.delete(t)),!u&&i.componentDidLoad&&i.componentDidLoad()}catch(e){n.An(e,4,t)}T(n,t)}})(n,this,r)},e.forceUpdate=function(){E(n,this,i)},t.rn){var o=Object.entries(t.rn),u={};o.forEach(function(n){var t=n[0],e=n[1].cn;e&&(u[e]=t)}),u=Object.assign({},u),e.attributeChangedCallback=function(n,t,e){(function r(n,t,e,i){var o=n[v(e)];o&&(t[o]=i)})(u,this,n,e)},function(n,t,e,r){o.forEach(function(t){var i=t[0],o=t[1];3&o.an&&O(e,i,function t(){return(n.xn.get(this)||{})[i]},function t(e){S(n,this,i,A(o.ln,e),r)})})}(n,0,e,i)}}(g,a[n.t]=n,t.prototype,u,f),t.observedAttributes=Object.values(n.rn).map(function(n){return n.cn}).filter(function(n){return!!n}),r.customElements.define(n.t,t))},en:function(n){return a[d.Yn(n)]},vt:function(n){return t[n]},isClient:!0,ot:function(n){return!(!y[d.Yn(n)]&&!g.en(n))},An:function(n,t,e){return console.error(n,t,e&&e.tagName)},queue:t.queue=M(p,r),ft:function(n,t){var e=!d.J,r={mode:t.mode,scoped:e};n.s(r).then(function(e){try{n.En=e,function r(n,t,e,i,o){if(i){var u=t.t+(o||c);t[u]||(t[u]=i)}}(0,n,n.Z,e.style,e.styleMode)}catch(t){console.error(t),n.En=function i(){}}E(g,t,f)})},On:!1,Mn:!1,ct:!1,Cn:s,jn:new WeakMap,X:new WeakMap,Pn:new WeakMap,at:new WeakMap,lt:new WeakMap,ut:new WeakMap,Tn:new WeakMap,$n:new WeakMap,kn:new WeakMap,gn:new WeakMap,bn:new WeakMap,st:new WeakMap,pt:new WeakMap,_n:new WeakMap,xn:new WeakMap,mn:new Set,Nn:[]};return t.isServer=t.isPrerender=!(t.isClient=!0),t.window=r,t.location=r.location,t.document=i,t.resourcesUrl=t.publicPath=o,p.h=e,p.Context=t,p.onReady=function(){return new Promise(function(n){return g.queue.write(function(){return g.mn.size?g.Nn.push(n):n()})})},g.render=function(n,t){var e,r,i,o,u,f,c,a=function(i,v,p,d,h,y,b,M,g){if(M=v.vchildren[p],e||(o=!0,"slot"===M.vtag&&(r&&t.Sn(d,r+"-s"),M.vchildren?M.dt=!0:M.ht=!0)),l(M.vtext))M.i=t.Fn(M.vtext);else if(M.ht)M.i=t.Fn("");else{if(y=M.i=m||"svg"===M.vtag?t.Dn("http://www.w3.org/2000/svg",M.vtag):t.nn(M.dt?"slot-fb":M.vtag),n.ot(y)&&n.ut.delete(c),m="svg"===M.vtag||"foreignObject"!==M.vtag&&m,w(n,null,M,m),l(r)&&y["s-si"]!==r&&t.Sn(y,y["s-si"]=r),M.vchildren)for(h=0;h<M.vchildren.length;++h)(b=a(i,M,h,y))&&t.Un(y,b);"svg"===M.vtag&&(m=!1)}return M.i["s-hn"]=f,(M.dt||M.ht)&&(M.i["s-sr"]=!0,M.i["s-cr"]=u,M.i["s-sn"]=M.vname||"",(g=i&&i.vchildren&&i.vchildren[p])&&g.vtag===M.vtag&&i.i&&s(i.i)),M.i},s=function(e,r,i,u){n.ct=!0;var c=t.Bn(e);for(i=c.length-1;i>=0;i--)(u=c[i])["s-hn"]!==f&&u["s-ol"]&&(t.qn(u),t.tn(y(u),u,h(u)),t.qn(u["s-ol"]),u["s-ol"]=null,o=!0),r&&s(u,r);n.ct=!1},v=function(n,e,r,i,o,u,c,s){var v=n["s-cr"];for((c=v&&t.In(v)||n).shadowRoot&&t.Yn(c)===f&&(c=c.shadowRoot);o<=u;++o)i[o]&&(s=l(i[o].vtext)?t.Fn(i[o].vtext):a(null,r,o,n))&&(i[o].i=s,t.tn(c,s,h(e)))},p=function(n,e,r,o){for(;e<=r;++e)l(n[e])&&(o=n[e].i,i=!0,o["s-ol"]?t.qn(o["s-ol"]):s(o,!0),t.qn(o))},d=function(n,t){return n.vtag===t.vtag&&n.vkey===t.vkey&&("slot"!==n.vtag||n.vname===t.vname)},h=function(n){return n&&n["s-ol"]?n["s-ol"]:n},y=function(n){return t.In(n["s-ol"]?n["s-ol"]:n)},b=function(e,r,i){var o=r.i=e.i,u=e.vchildren,f=r.vchildren;m=r.i&&l(t.nt(r.i))&&void 0!==r.i.ownerSVGElement,m="svg"===r.vtag||"foreignObject"!==r.vtag&&m,l(r.vtext)?(i=o["s-cr"])?t.zn(t.In(i),r.vtext):e.vtext!==r.vtext&&t.zn(o,r.vtext):("slot"!==r.vtag&&w(n,e,r,m),l(u)&&l(f)?function(n,e,r,i,o,u,f,c){for(var w=0,m=0,M=e.length-1,g=e[0],k=e[M],j=i.length-1,$=i[0],A=i[j];w<=M&&m<=j;)if(null==g)g=e[++w];else if(null==k)k=e[--M];else if(null==$)$=i[++m];else if(null==A)A=i[--j];else if(d(g,$))b(g,$),g=e[++w],$=i[++m];else if(d(k,A))b(k,A),k=e[--M],A=i[--j];else if(d(g,A))"slot"!==g.vtag&&"slot"!==A.vtag||s(t.In(g.i)),b(g,A),t.tn(n,g.i,t.Gn(k.i)),g=e[++w],A=i[--j];else if(d(k,$))"slot"!==g.vtag&&"slot"!==A.vtag||s(t.In(k.i)),b(k,$),t.tn(n,k.i,g.i),k=e[--M],$=i[++m];else{for(o=null,u=w;u<=M;++u)if(e[u]&&l(e[u].vkey)&&e[u].vkey===$.vkey){o=u;break}l(o)?((c=e[o]).vtag!==$.vtag?f=a(e&&e[m],r,o,n):(b(c,$),e[o]=void 0,f=c.i),$=i[++m]):(f=a(e&&e[m],r,m,n),$=i[++m]),f&&t.tn(y(g.i),f,h(g.i))}w>M?v(n,null==i[j+1]?null:i[j+1].i,r,i,m,j):m>j&&p(e,w,M)}(o,u,r,f):l(f)?(l(e.vtext)&&t.zn(o,""),v(o,null,r,f,0,f.length-1)):l(u)&&p(u,0,u.length-1)),m&&"svg"===r.vtag&&(m=!1)},M=function(n,e,r,i,o,u,f,c){for(i=0,o=(r=t.Bn(n)).length;i<o;i++)if(e=r[i],1===t.Ln(e)){if(e["s-sr"])for(f=e["s-sn"],e.hidden=!1,u=0;u<o;u++)if(r[u]["s-hn"]!==e["s-hn"])if(c=t.Ln(r[u]),""!==f){if(1===c&&f===t.Jn(r[u],"slot")){e.hidden=!0;break}}else if(1===c||3===c&&""!==t.Zn(r[u]).trim()){e.hidden=!0;break}M(e)}},g=[],k=function(n,e,r,o,u,f,c,a,s,l){for(u=0,f=(e=t.Bn(n)).length;u<f;u++){if((r=e[u])["s-sr"]&&(o=r["s-cr"]))for(a=t.Bn(t.In(o)),s=r["s-sn"],c=a.length-1;c>=0;c--)(o=a[c])["s-cn"]||o["s-nr"]||o["s-hn"]===r["s-hn"]||((3===(l=t.Ln(o))||8===l)&&""===s||1===l&&null===t.Jn(o,"slot")&&""===s||1===l&&t.Jn(o,"slot")===s)&&(g.some(function(n){return n.yt===o})||(i=!0,o["s-sn"]=s,g.push({wt:r,yt:o})));1===t.Ln(r)&&k(r)}};return function(a,s,l,v,p,d,h,y,w,m,j,$){if(c=a,f=t.Yn(c),u=c["s-cr"],e=v,r=c["s-sc"],o=i=!1,b(s,l),o){for(k(l.i),h=0;h<g.length;h++)(y=g[h]).yt["s-ol"]||((w=t.Fn(""))["s-nr"]=y.yt,t.tn(t.In(y.yt),y.yt["s-ol"]=w,y.yt));for(n.ct=!0,h=0;h<g.length;h++){for(y=g[h],j=t.In(y.wt),$=t.Gn(y.wt),w=y.yt["s-ol"];w=t.Qn(w);)if((m=w["s-nr"])&&m&&m["s-sn"]===y.yt["s-sn"]&&j===t.In(m)&&(m=t.Gn(m))&&m&&!m["s-nr"]){$=m;break}(!$&&j!==t.In(y.yt)||t.Gn(y.yt)!==$)&&y.yt!==$&&(t.qn(y.yt),t.tn(j,y.yt,$))}n.ct=!1}return i&&M(l.i),g.length=0,l}}(g,d),h["s-ld"]=[],h["s-rn"]=!0,h["s-init"]=function(){g.ut.set(h,p.loaded=g.Mn=!0),d.tt(r,"appload",{detail:{namespace:n}})},function(n,t,e,r,i,o){if(t.componentOnReady=function(t,e){if(!t.nodeName.includes("-"))return e(null),!1;var r=n.en(t);if(r)if(n.ut.has(t))e(t);else{var i=n.st.get(t)||[];i.push(e),n.st.set(t,i)}return!!r},i){for(o=i.length-1;o>=0;o--)t.componentOnReady(i[o][0],i[o][1])&&i.splice(o,1);for(o=0;o<r.length;o++)if(!e[r[o]].componentOnReady)return;for(o=0;o<i.length;o++)i[o][1](null);i.length=0}}(g,p,r,r["s-apps"],r["s-cr"]),p.initialized=!0,g},P={},N=!1;export{r as defineCustomElement,e as h}; |
@@ -5,16 +5,6 @@ | ||
import { defineCustomElement } from './ddb-widget.core.js'; | ||
import { | ||
DdbWidget, | ||
LinkList, | ||
WidgetLauncher, | ||
WidgetWindow | ||
} from './ddb-widget.components.js'; | ||
import { COMPONENTS } from './ddb-widget.components.js'; | ||
export function defineCustomElements(win, opts) { | ||
return defineCustomElement(win, [ | ||
DdbWidget, | ||
LinkList, | ||
WidgetLauncher, | ||
WidgetWindow | ||
], opts); | ||
return defineCustomElement(win, COMPONENTS, opts); | ||
} |
@@ -8,2 +8,2 @@ export function applyPolyfill(window, document) {/*! https://github.com/WebReflection/es6-collections | ||
values:l,entries:B,forEach:u}));"undefined"==typeof WeakSet&&(e.WeakSet=d({"delete":f,add:t,clear:h,has:p},!0))})(window); | ||
var StyleNode=function(){return function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}();function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var a=r,o=a.rules[a.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=a,r.previous=o,a.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var a=e.rules;if(a)for(var o=0,i=a.length,l=void 0;o<i&&(l=a[o]);o++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e})}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm,EMPTY_SELECTORS=/[^{}]*{\s*}/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),a=s[0],o=s.slice(1);return{start:r.start,end:n,propName:a.trim(),fallback:o.length>0?o.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,a=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),function(e){return resolveVar(e,s,a)}),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var a=e[s];if(r)n&&'"'===a&&(r=!1),n||"'"!==a||(r=!1);else if('"'===a)r=!0,n=!0;else if("'"===a)r=!0,n=!1;else{if(";"===a)return s+1;if("}"===a)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(EMPTY_SELECTORS,"").replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach(function(e){e.declarations.forEach(function(e){t[e.prop]=e.value})});for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach(function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)}),!t)return"break"},a=0;a<10;a++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter(function(e){return e.type===types.STYLE_RULE}).forEach(function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach(function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(e),nu:t})}),t++}),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,a=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:a})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){return sortSelectors(getSelectorsForScopes(r.concat(getScopesForElement(t,e))).filter(function(t){return matches(e,t.selector)}))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach(function(e){t.push.apply(t,e.selectors)}),t}function sortSelectors(e){return e.sort(function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity}),e}function matches(e,t){return e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),isDynamic:r.length>1}}function addGlobalStyle(e,t){var r=parseCSS(t.innerHTML);r.styleEl=t,e.push(r)}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach(function(e){e.isDynamic&&(e.styleEl.innerHTML=executeTemplate(e.template,t))})}function reScope(e,t){var r=e.template.map(function(r){return"string"==typeof r?replaceScope(r,e.cssScopeId,t):r}),n=e.selectors.map(function(r){return Object.assign({},r,{selector:replaceScope(r.selector,e.cssScopeId,t)})});return Object.assign({},e,{template:r,selectors:n,cssScopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\."+t,"."+r)}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentLinks(e,t).then(function(){loadDocumentStyles(e,t)})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){for(var r=e.querySelectorAll("style"),n=0;n<r.length;n++)addGlobalStyle(t,r[n])}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then(function(e){return e.text()}).then(function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var a=e.createElement("style");a.innerHTML=s,addGlobalStyle(t,a),r.parentNode.insertBefore(a,r),r.remove()}}).catch(function(e){console.error(e)})}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?![http|\/])([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^\/]*$/,"");return e.replace(CSS_URL_REGEXP,function(e,t){var n=r+t;return e.replace(t,n)})}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map}return e.prototype.initShim=function(){var e=this;return new Promise(function(t){e.win.requestAnimationFrame(function(){loadDocument(e.doc,e.globalScopes).then(function(){return t()})})})},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then(function(){t.updateGlobal()})},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e),this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r){if(this.hostScopeMap.has(e))return null;var n=e["s-sc"],s=this.registerHostTemplate(r,t,n),a=s.isDynamic&&s.cssScopeId;if(!(a||!s.styleEl))return null;var o=this.doc.createElement("style");if(a){var i=s.cssScopeId+"-"+this.count;e["s-sc"]=i,this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,i)),this.count++}else s.styleEl=o,s.isDynamic||(o.innerHTML=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s);return o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.isDynamic&&t.cssScopeId){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.innerHTML=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).cssScopeId=r,this.scopesMap.set(t,n)),n},e}();window.customStyleShim=new CustomStyle(window,document);} | ||
var StyleNode=function(){return function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}();function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var a=r,o=a.rules[a.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=a,r.previous=o,a.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var a=e.rules;if(a)for(var o=0,i=a.length,l=void 0;o<i&&(l=a[o]);o++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e})}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),a=s[0],o=s.slice(1);return{start:r.start,end:n,propName:a.trim(),fallback:o.length>0?o.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,a=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),function(e){return resolveVar(e,s,a)}),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var a=e[s];if(r)n&&'"'===a&&(r=!1),n||"'"!==a||(r=!1);else if('"'===a)r=!0,n=!0;else if("'"===a)r=!0,n=!1;else{if(";"===a)return s+1;if("}"===a)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach(function(e){e.declarations.forEach(function(e){t[e.prop]=e.value})});for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach(function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)}),!t)return"break"},a=0;a<10;a++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter(function(e){return e.type===types.STYLE_RULE}).forEach(function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach(function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(e),nu:t})}),t++}),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,a=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:a})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){return sortSelectors(getSelectorsForScopes(r.concat(getScopesForElement(t,e))).filter(function(t){return matches(e,t.selector)}))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach(function(e){t.push.apply(t,e.selectors)}),t}function sortSelectors(e){return e.sort(function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity}),e}function matches(e,t){return e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),isDynamic:r.length>1}}function addGlobalStyle(e,t){var r=parseCSS(t.innerHTML);r.styleEl=t,e.push(r)}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach(function(e){e.isDynamic&&(e.styleEl.innerHTML=executeTemplate(e.template,t))})}function reScope(e,t){var r=e.template.map(function(r){return"string"==typeof r?replaceScope(r,e.cssScopeId,t):r}),n=e.selectors.map(function(r){return Object.assign({},r,{selector:replaceScope(r.selector,e.cssScopeId,t)})});return Object.assign({},e,{template:r,selectors:n,cssScopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\."+t,"."+r)}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentLinks(e,t).then(function(){loadDocumentStyles(e,t)})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){for(var r=e.querySelectorAll("style"),n=0;n<r.length;n++)addGlobalStyle(t,r[n])}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then(function(e){return e.text()}).then(function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var a=e.createElement("style");a.innerHTML=s,addGlobalStyle(t,a),r.parentNode.insertBefore(a,r),r.remove()}}).catch(function(e){console.error(e)})}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?![http|\/])([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^\/]*$/,"");return e.replace(CSS_URL_REGEXP,function(e,t){var n=r+t;return e.replace(t,n)})}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map}return e.prototype.initShim=function(){var e=this;return new Promise(function(t){e.win.requestAnimationFrame(function(){loadDocument(e.doc,e.globalScopes).then(function(){return t()})})})},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then(function(){t.updateGlobal()})},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e),this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r){if(this.hostScopeMap.has(e))return null;var n=e["s-sc"],s=this.registerHostTemplate(r,t,n),a=s.isDynamic&&s.cssScopeId;if(!(a||!s.styleEl))return null;var o=this.doc.createElement("style");if(a){var i=s.cssScopeId+"-"+this.count;e["s-sc"]=i,this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,i)),this.count++}else s.styleEl=o,s.isDynamic||(o.innerHTML=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s);return o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.isDynamic&&t.cssScopeId){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.innerHTML=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).cssScopeId=r,this.scopesMap.set(t,n)),n},e}();window.customStyleShim=new CustomStyle(window,document);} |
@@ -8,3 +8,2 @@ export function applyPolyfill(window, document) {/*! document-register-element, 1.7.0 | ||
} | ||
/*! | ||
@@ -17,5 +16,9 @@ Element.closest and Element.matches | ||
/*! | ||
Element.getRootNode() | ||
*/ | ||
(function(c){function d(a){a=b(a);return 11===a.nodeType?d(a.host):a}function b(a){return a.parentNode?b(a.parentNode):a}"function"!==typeof c.getRootNode&&(c.getRootNode=function(a){return a&&a.composed?d(this):b(this)})})(Element.prototype); | ||
/*! | ||
Element.remove() | ||
https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove | ||
*/ | ||
(function(b){b.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);} | ||
(function(b){b.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]); | ||
} |
@@ -1,1 +0,1 @@ | ||
export declare function defineCustomElements(win: any): Promise<void>; | ||
export declare function defineCustomElements(win: any, opts?: any): Promise<void>; |
@@ -5,3 +5,6 @@ { | ||
"module": "./index.js", | ||
"es2017": "./index.es2017.js" | ||
"jsnext:main": "./index.es2017.js", | ||
"es2015": "./index.es2017.js", | ||
"es2017": "./index.es2017.js", | ||
"sideEffects": false | ||
} |
import '../../stencil.core'; | ||
import { WidgetModel } from '../../types'; | ||
declare global { | ||
interface Window { | ||
_ti: any; | ||
_tiConfig: any; | ||
} | ||
} | ||
export declare class DdbWidget { | ||
widgetData: WidgetModel; | ||
isOpen: boolean; | ||
isMobile: boolean; | ||
componentWillLoad(): Promise<void>; | ||
componentDidLoad(): void; | ||
toggleWidget: () => void; | ||
fetchWidgetData(api: string): Promise<void>; | ||
handleLauncherClick: (event: UIEvent) => void; | ||
handleOverlayClick: (event: UIEvent) => void; | ||
handleCloseClick: (_event: UIEvent) => void; | ||
render(): JSX.Element; | ||
} |
{ | ||
"name": "@charlietango/ddb-widget", | ||
"version": "0.1.39", | ||
"version": "0.1.40", | ||
"description": "Web Component built with Stencil by Charlie Tango", | ||
@@ -28,3 +28,3 @@ "module": "dist/esm/index.js", | ||
"devDependencies": { | ||
"@stencil/core": "^0.16.0", | ||
"@stencil/core": "0.16.2", | ||
"@stencil/sass": "^0.1.1", | ||
@@ -31,0 +31,0 @@ "tslint": "^5.11.0" |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
507613
4602
61
21
11