@charlietango/ddb-widget
Advanced tools
Comparing version 0.1.40 to 0.1.41
@@ -5,7 +5,3 @@ { | ||
"tag": "ddb-widget", | ||
"dependencies": [ | ||
"link-list", | ||
"widget-launcher", | ||
"widget-window" | ||
], | ||
"dependencies": [], | ||
"componentClass": "DdbWidget", | ||
@@ -16,127 +12,24 @@ "componentPath": "components/ddb-widget/ddb-widget.js", | ||
"stylePaths": [ | ||
"components/ddb-widget/ddb-widget.scss" | ||
"components/ddb-widget/ddb-widget.css" | ||
] | ||
} | ||
}, | ||
"states": [ | ||
{ | ||
"name": "isMobile" | ||
}, | ||
{ | ||
"name": "isOpen" | ||
}, | ||
{ | ||
"name": "widgetData" | ||
} | ||
], | ||
"shadow": true | ||
}, | ||
{ | ||
"tag": "link-list", | ||
"dependencies": [], | ||
"componentClass": "LinkList", | ||
"componentPath": "components/link-list/link-list.js", | ||
"styles": { | ||
"$": { | ||
"stylePaths": [ | ||
"components/link-list/link-list.scss" | ||
] | ||
} | ||
}, | ||
"props": [ | ||
{ | ||
"name": "color", | ||
"name": "first", | ||
"type": "String", | ||
"attr": "color" | ||
"attr": "first" | ||
}, | ||
{ | ||
"name": "links", | ||
"attr": "links" | ||
} | ||
], | ||
"shadow": true | ||
}, | ||
{ | ||
"tag": "widget-launcher", | ||
"dependencies": [], | ||
"componentClass": "WidgetLauncher", | ||
"componentPath": "components/widget-launcher/widget-launcher.js", | ||
"styles": { | ||
"$": { | ||
"stylePaths": [ | ||
"components/widget-launcher/widget-launcher.scss" | ||
] | ||
} | ||
}, | ||
"props": [ | ||
{ | ||
"name": "color", | ||
"name": "last", | ||
"type": "String", | ||
"attr": "color" | ||
"attr": "last" | ||
}, | ||
{ | ||
"name": "isOpen", | ||
"type": "Boolean", | ||
"attr": "is-open" | ||
}, | ||
{ | ||
"name": "logo", | ||
"attr": "logo" | ||
}, | ||
{ | ||
"name": "promoImage", | ||
"attr": "promo-image" | ||
}, | ||
{ | ||
"name": "promoText", | ||
"attr": "promo-text" | ||
}, | ||
{ | ||
"name": "settings", | ||
"attr": "settings" | ||
}, | ||
{ | ||
"name": "usePromoImage", | ||
"type": "Boolean", | ||
"attr": "use-promo-image" | ||
"name": "middle", | ||
"type": "String", | ||
"attr": "middle" | ||
} | ||
], | ||
"states": [ | ||
{ | ||
"name": "isExpanded" | ||
}, | ||
{ | ||
"name": "isReady" | ||
} | ||
], | ||
"shadow": true | ||
}, | ||
{ | ||
"tag": "widget-window", | ||
"dependencies": [], | ||
"componentClass": "WidgetWindow", | ||
"componentPath": "components/widget-window/widget-window.js", | ||
"styles": { | ||
"$": { | ||
"stylePaths": [ | ||
"components/widget-window/widget-window.scss" | ||
] | ||
} | ||
}, | ||
"props": [ | ||
{ | ||
"name": "logo", | ||
"attr": "logo" | ||
}, | ||
{ | ||
"name": "numberOfItems", | ||
"type": "Number", | ||
"attr": "number-of-items" | ||
}, | ||
{ | ||
"name": "onCloseClick", | ||
"attr": "on-close-click" | ||
} | ||
], | ||
"shadow": true | ||
} | ||
@@ -143,0 +36,0 @@ ], |
@@ -1,83 +0,10 @@ | ||
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); | ||
} | ||
; | ||
import { format } from '../../utils/utils'; | ||
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(); | ||
}; | ||
getText() { | ||
return format(this.first, this.middle, this.last); | ||
} | ||
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() { | ||
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 })))); | ||
return h("div", null, | ||
"Hello, World! I'm ", | ||
this.getText()); | ||
} | ||
@@ -87,10 +14,13 @@ static get is() { return "ddb-widget"; } | ||
static get properties() { return { | ||
"isMobile": { | ||
"state": true | ||
"first": { | ||
"type": String, | ||
"attr": "first" | ||
}, | ||
"isOpen": { | ||
"state": true | ||
"last": { | ||
"type": String, | ||
"attr": "last" | ||
}, | ||
"widgetData": { | ||
"state": true | ||
"middle": { | ||
"type": String, | ||
"attr": "middle" | ||
} | ||
@@ -97,0 +27,0 @@ }; } |
@@ -1,1 +0,1 @@ | ||
!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); | ||
!function(e,t,r,n,i,s,o,d,c,u,a,l,p,h){for(a=e.DdbWidget=e.DdbWidget||{},(l=t.createElement("style")).innerHTML="ddb-widget{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 n=e["s-apps"],i=0,s=0;s<n.length;s++)if(e[n[s]].componentOnReady){if(e[n[s]].componentOnReady(t,r))return;i++}if(i<n.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,u),i=i||a.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"),!i&&p&&(i=p),!i&&h.src&&(i=(p=h.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"ddb-widget/"),l=t.createElement("script"),function(e,t,r,n){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=i+"ddb-widget.skmbzzok.js":(l.src=i+"ddb-widget.tru3816i.js",l.setAttribute("type","module"),l.setAttribute("crossorigin",!0)),l.setAttribute("data-resources-url",i),l.setAttribute("data-namespace","ddb-widget"),t.head.appendChild(l)}(window,document,0,0,0,0,0,0,0,HTMLElement.prototype); |
// DdbWidget: Host Data, ES Module/es2017 Target | ||
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]] | ||
export const COMPONENTS = [["ddb-widget","hkbw7idx",1,[["first",1,0,1,2],["last",1,0,1,2],["middle",1,0,1,2]],1]] |
@@ -5,5 +5,5 @@ /*! | ||
*/ | ||
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( | ||
function e(e,t){return"sc-"+e.t+(t&&t!==l?"-"+t:"")}function t(e,t){return e+(t?"-h":"-s")}function n(e,t){let n,o,i=null,l=!1,s=!1,r=arguments.length;for(;r-- >2;)h.push(arguments[r]);for(;h.length>0;){let t=h.pop();if(t&&void 0!==t.pop)for(r=t.length;r--;)h.push(t[r]);else"boolean"==typeof t&&(t=null),(s="function"!=typeof e)&&(null==t?t="":"number"==typeof t?t=String(t):"string"!=typeof t&&(s=!1)),s&&l?i[i.length-1].vtext+=t:null===i?i=[s?{vtext:t}:t]:i.push(s?{vtext:t}:t),l=s}if(null!=t){if(t.className&&(t.class=t.className),"object"==typeof t.class){for(r in t.class)t.class[r]&&h.push(r);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 l=e.document,s=n.hydratedCssClass||"hydrated",r=n.exclude;r&&(o=o.filter(e=>-1===r.indexOf(e[0])));const a=o.map(e=>e[0]);if(a.length>0){const e=l.createElement("style");e.innerHTML=a.join()+"{visibility:hidden}."+s+"{visibility:inherit}",e.setAttribute("data-styles",""),l.head.insertBefore(e,l.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,l=0;l<n.length;l++)if(e[n[l]].componentOnReady){if(e[n[l]].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={},r=n.resourcesUrl||"./";i(c,t,e,l,r,s),x[c]=O(c,t,e,l,r,s,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})=>(function i(e,t,n){return import( | ||
/* webpackInclude: /\.entry\.js$/ */ | ||
/* webpackMode: "lazy" */ | ||
`./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}; | ||
`./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 l="$",s={},r=(t,n,o,i)=>{let s=o.t+l,r=o[s];if((2===o.u||1===o.u&&!t.v.p)&&(i["s-sc"]=r?e(o,i.mode):e(o)),r){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 l=t.M.get(e);if(l||t.M.set(e,l={}),!l[s]){let t;{t=r.content.cloneNode(!0),l[s]=!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,l)=>{if("class"!==n||l)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&&!l&&(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):(l||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),l=e.filter(e=>!n.includes(e)),s=p(t.className).filter(e=>!l.includes(e)),r=n.filter(t=>!e.includes(t)&&!s.includes(t));s.push(...r),t.className=s.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 l=11===n.o.nodeType&&n.o.host?n.o.host:n.o,r=t&&t.vattrs||s,a=n.vattrs||s;for(i in r)a&&null!=a[i]||null==r[i]||u(e,l,i,r[i],void 0,o,n.i);for(i in a)i in r&&a[i]===("value"===i||"checked"===i?l[i]:r[i])||u(e,l,i,r[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(),l=!1!==e.asyncQueue,s=Promise.resolve(),r=[],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=l?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){r.push(e),1===r.length&&s.then(()=>p(r))},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,,l,s,r]=e,a={color:{W:"color"}};if(l)for(t=0;t<l.length;t++)a[(n=l[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:s,L:r?r.map($):void 0}},$=e=>({R:e[0],T:e[1],D:!!e[2],H:!!e[3],q:!!e[4]}),g=(e,t)=>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,l,s,r)=>{if(e.F.delete(o),!e.U.has(o)){if(!(s=e.Y.get(o))){if((r=e.Z.get(o))&&!r["s-rn"])return void(r["s-rc"]=r["s-rc"]||[]).push(()=>{C(e,o,i)});s=j(e,o,e.G.get(o),i)}((e,o,i,l)=>{try{const s=o.J.host,r=o.J.encapsulation,a="shadow"===r&&e.v.p;let c,f=i;if(a&&(f=i.shadowRoot),!i["s-rn"]){e.K(e,e.v,o,i);const n=i["s-sc"];n&&(e.v.V(i,t(n,!0)),"scoped"===r&&e.v.V(i,t(n)))}if(l.render||l.hostData||s||c){e.X=!0;const t=l.render&&l.render();let o;e.X=!1;const s=n(null,o,t),c=e.ee.get(i)||{};c.o=f,e.ee.set(i,e.render(i,c,s,a,r))}i["s-rn"]=!0,i["s-rc"]&&(i["s-rc"].forEach(e=>e()),i["s-rc"]=null)}catch(t){e.X=!1,e.te(t,8,i,!0)}})(e,e.k(o),o,s),o["s-init"]()}},E=(e,t,n,o,i,l,s,r,c)=>{if(t.type){const f=e.ne.get(n);!t.attr||void 0!==f[i]&&""!==f[i]||(r=l&&l.oe)&&a(c=r[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.mutable&&A(e,o,i,n,s)})}},A=(e,t,n,o,i,l,s)=>{(s=e.ne.get(t))||e.ne.set(t,s={}),o!==s[n]&&(s[n]=o,e.Y.get(t)&&!e.X&&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,l)=>{try{i=new(l=e.k(t).J),((e,t,n,o,i,l)=>{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,s])=>{E(e,s,n,o,t,i,l)})})(e,l,t,i,n,o)}catch(n){i={},e.te(n,7,t,!0)}return e.Y.set(t,i),i},S=(e,t,n,o,i,l)=>{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.le.length&&!e.B.size)for(;l=e.le.shift();)l()},W=(e,t,n,o)=>{t.forEach(([t,i])=>{3&i.N&&_(n,t,function n(){return(e.ne.get(this)||{})[t]},function n(l){A(e,this,t,g(i.P,l),o)})})},N=(e,t,n,o,i)=>{if(n.connectedCallback=function(){((e,t,n)=>{e.U.delete(n),e.se.has(n)||(e.re=!0,e.B.add(n),e.se.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)=>(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(l=>{(i=t.C[l].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.ee.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,l)=>{if(e.Y.get(t)&&!e.U.has(t)&&(!t["s-ld"]||!t["s-ld"].length)){e.fe.set(t,!0),e.ge.has(t)||(e.ge.set(t,!0),t["s-ld"]=void 0,e.v.V(t,n));try{y(e.ee.get(t)),(l=e.$e.get(t))&&(l.forEach(e=>e(t)),e.$e.delete(t))}catch(n){e.te(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,s,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),V:(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)=>"child"===o?e.firstElementChild:"parent"===o?i.ae(e):"body"===o?n.body:"document"===o?n:"window"===o?t:e,j:(t,n,l,s,r,a,c,f,u)=>{let p=t,d=l,v=o.get(t);u=n,v&&v[u]&&v[u](),"object"==typeof a&&(p=a),p&&(c=i.ke?{capture:!!s,passive:!!r}:!!s,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)=>(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)),te:(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.J=n,function o(e,t,n,i,s){if(i){const n=t.t+(s||l);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.J=class{}}k(M,t,u)})}},X:!1,I:!1,be:!1,K:r,Z:new WeakMap,M:new WeakMap,se: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,ee:new WeakMap,ne:new WeakMap,B:new Set,le:[]};return t.isServer=t.isPrerender=!(t.isClient=!0),t.window=o,t.location=o.location,t.document=i,t.resourcesUrl=t.publicPath=s,d.h=n,d.Context=t,d.onReady=(()=>new Promise(e=>M.queue.write(()=>M.B.size?M.le.push(e):e()))),M.render=((e,t)=>{let n,o,i,l,s,r,c;const f=(i,p,d,y,b,h,w,M,$)=>{if(M=p.vchildren[d],n||(l=!0,"slot"===M.vtag&&(o&&t.V(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.V(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"]=r,(M.qe||M.Be)&&(M.o["s-sr"]=!0,M.o["s-cr"]=s,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,s)=>{e.be=!0;const a=t.ve(n);for(i=a.length-1;i>=0;i--)(s=a[i])["s-hn"]!==r&&s["s-ol"]&&(t._e(s),t.g(h(s),s,b(s)),t._e(s["s-ol"]),s["s-ol"]=null,l=!0),o&&u(s,o);e.be=!1},p=(e,n,o,i,l,s,c,u)=>{const p=e["s-cr"];for((c=p&&t.he(p)||e).shadowRoot&&t.Ne(c)===r&&(c=c.shadowRoot);l<=s;++l)i[l]&&(u=a(i[l].vtext)?t.de(i[l].vtext):f(null,o,l,e))&&(i[l].o=u,t.g(c,u,b(n)))},d=(e,n,o,l)=>{for(;n<=o;++n)a(e[n])&&(l=e[n].o,i=!0,l["s-ol"]?t._e(l["s-ol"]):u(l,!0),t._e(l))},y=(e,t)=>e.vtag===t.vtag&&e.vkey===t.vkey&&("slot"!==e.vtag||e.vname===t.vname),b=e=>e&&e["s-ol"]?e["s-ol"]:e,h=e=>t.he(e["s-ol"]?e["s-ol"]:e),w=(n,o,i)=>{const l=o.o=n.o,s=n.vchildren,r=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=l["s-cr"])?t.xe(t.he(i),o.vtext):n.vtext!==o.vtext&&t.xe(l,o.vtext):("slot"!==o.vtag&&v(e,n,o,m),a(s)&&a(r)?((e,n,o,i,l,s,r,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(l=null,s=v;s<=M;++s)if(n[s]&&a(n[s].vkey)&&n[s].vkey===C.vkey){l=s;break}a(l)?((c=n[l]).vtag!==C.vtag?r=f(n&&n[m],o,l,e):(w(c,C),n[l]=void 0,r=c.o),C=i[++m]):(r=f(n&&n[m],o,m,e),C=i[++m]),r&&t.g(h($.o),r,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)})(l,s,o,r):a(r)?(a(n.vtext)&&t.xe(l,""),p(l,null,o,r,0,r.length-1)):a(s)&&d(s,0,s.length-1)),m&&"svg"===o.vtag&&(m=!1)},M=(e,n,o,i,l,s,r,a)=>{for(i=0,l=(o=t.ve(e)).length;i<l;i++)if(n=o[i],1===t.we(n)){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<l;s++)if(o[s]["s-hn"]!==n["s-hn"])if(a=t.we(o[s]),""!==r){if(1===a&&r===t.pe(o[s],"slot")){n.hidden=!0;break}}else if(1===a||3===a&&""!==t.Oe(o[s]).trim()){n.hidden=!0;break}M(n)}},$=[],g=(e,n,o,l,s,r,a,c,f,u)=>{for(s=0,r=(n=t.ve(e)).length;s<r;s++){if((o=n[s])["s-sr"]&&(l=o["s-cr"]))for(c=t.ve(t.he(l)),f=o["s-sn"],a=c.length-1;a>=0;a--)(l=c[a])["s-cn"]||l["s-nr"]||l["s-hn"]===o["s-hn"]||((3===(u=t.we(l))||8===u)&&""===f||1===u&&null===t.pe(l,"slot")&&""===f||1===u&&t.pe(l,"slot")===f)&&($.some(e=>e.Fe===l)||(i=!0,l["s-sn"]=f,$.push({Ie:o,Fe:l})));1===t.we(o)&&g(o)}};return(a,f,u,p,d,v,m,y,b,h,k,C)=>{if(c=a,r=t.Ne(c),s=c["s-cr"],n=p,o=c["s-sc"],l=i=!1,w(f,u),l){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,l)=>{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(l=i.length-1;l>=0;l--)t.componentOnReady(i[l][0],i[l][1])&&i.splice(l,1);for(l=0;l<o.length;l++)if(!n[o[l]].componentOnReady)return;for(l=0;l<i.length;l++)i[l][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}; |
// DdbWidget: Host Data, ES Module/es5 Target | ||
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]] | ||
export var COMPONENTS = [["ddb-widget","hkbw7idx",1,[["first",1,0,1,2],["last",1,0,1,2],["middle",1,0,1,2]],1]] |
@@ -8,2 +8,2 @@ /*! | ||
/* 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(!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}; | ||
"./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:return n.bn.delete(r),n.gn.has(r)?[3,12]:(a=n.kn.get(r))?[3,6]:(s=n.jn.get(r))&&!s["s-rn"]?((s["s-rc"]=s["s-rc"]||[]).push(function(){C(n,r,f)}),[2]):(a=_(n,r,n.$n.get(r),f),[3,5]);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){var a=n.xn.get(e);!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.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){if(x(n,t)&&n.kn.get(t)&&!n.gn.has(t)&&(!t["s-ld"]||!t["s-ld"].length)){n.ut.set(t,!0),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))}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}; |
@@ -11,10 +11,2 @@ /* tslint:disable */ | ||
import { | ||
ImageViewModel, | ||
LinkViewModel, | ||
RichTextViewModel, | ||
} from './types'; | ||
import { | ||
WidgetSettings, | ||
} from './types/WidgetModel'; | ||
@@ -24,43 +16,30 @@ | ||
interface DdbWidget {} | ||
interface DdbWidgetAttributes extends StencilHTMLAttributes {} | ||
interface LinkList { | ||
'color': string; | ||
'links': LinkViewModel[]; | ||
interface DdbWidget { | ||
/** | ||
* The first name | ||
*/ | ||
'first': string; | ||
/** | ||
* The last name | ||
*/ | ||
'last': string; | ||
/** | ||
* The middle name | ||
*/ | ||
'middle': string; | ||
} | ||
interface LinkListAttributes extends StencilHTMLAttributes { | ||
'color'?: string; | ||
'links'?: LinkViewModel[]; | ||
interface DdbWidgetAttributes extends StencilHTMLAttributes { | ||
/** | ||
* The first name | ||
*/ | ||
'first'?: string; | ||
/** | ||
* The last name | ||
*/ | ||
'last'?: string; | ||
/** | ||
* The middle name | ||
*/ | ||
'middle'?: string; | ||
} | ||
interface WidgetLauncher { | ||
'color': string; | ||
'isOpen': boolean; | ||
'logo': ImageViewModel; | ||
'promoImage': ImageViewModel; | ||
'promoText': RichTextViewModel; | ||
'settings': WidgetSettings; | ||
'usePromoImage': boolean; | ||
} | ||
interface WidgetLauncherAttributes extends StencilHTMLAttributes { | ||
'color'?: string; | ||
'isOpen'?: boolean; | ||
'logo'?: ImageViewModel; | ||
'promoImage'?: ImageViewModel; | ||
'promoText'?: RichTextViewModel; | ||
'settings'?: WidgetSettings; | ||
'usePromoImage'?: boolean; | ||
} | ||
interface WidgetWindow { | ||
'logo': ImageViewModel; | ||
'numberOfItems': number; | ||
'onCloseClick': Function; | ||
} | ||
interface WidgetWindowAttributes extends StencilHTMLAttributes { | ||
'logo'?: ImageViewModel; | ||
'numberOfItems'?: number; | ||
'onCloseClick'?: Function; | ||
} | ||
} | ||
@@ -71,5 +50,2 @@ | ||
'DdbWidget': Components.DdbWidget; | ||
'LinkList': Components.LinkList; | ||
'WidgetLauncher': Components.WidgetLauncher; | ||
'WidgetWindow': Components.WidgetWindow; | ||
} | ||
@@ -79,5 +55,2 @@ | ||
'ddb-widget': Components.DdbWidgetAttributes; | ||
'link-list': Components.LinkListAttributes; | ||
'widget-launcher': Components.WidgetLauncherAttributes; | ||
'widget-window': Components.WidgetWindowAttributes; | ||
} | ||
@@ -92,25 +65,4 @@ | ||
interface HTMLLinkListElement extends Components.LinkList, HTMLStencilElement {} | ||
var HTMLLinkListElement: { | ||
prototype: HTMLLinkListElement; | ||
new (): HTMLLinkListElement; | ||
}; | ||
interface HTMLWidgetLauncherElement extends Components.WidgetLauncher, HTMLStencilElement {} | ||
var HTMLWidgetLauncherElement: { | ||
prototype: HTMLWidgetLauncherElement; | ||
new (): HTMLWidgetLauncherElement; | ||
}; | ||
interface HTMLWidgetWindowElement extends Components.WidgetWindow, HTMLStencilElement {} | ||
var HTMLWidgetWindowElement: { | ||
prototype: HTMLWidgetWindowElement; | ||
new (): HTMLWidgetWindowElement; | ||
}; | ||
interface HTMLElementTagNameMap { | ||
'ddb-widget': HTMLDdbWidgetElement | ||
'link-list': HTMLLinkListElement | ||
'widget-launcher': HTMLWidgetLauncherElement | ||
'widget-window': HTMLWidgetWindowElement | ||
} | ||
@@ -120,5 +72,2 @@ | ||
'ddb-widget': HTMLDdbWidgetElement; | ||
'link-list': HTMLLinkListElement; | ||
'widget-launcher': HTMLWidgetLauncherElement; | ||
'widget-window': HTMLWidgetWindowElement; | ||
} | ||
@@ -125,0 +74,0 @@ |
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; | ||
/** | ||
* The first name | ||
*/ | ||
first: string; | ||
/** | ||
* The middle name | ||
*/ | ||
middle: string; | ||
/** | ||
* The last name | ||
*/ | ||
last: string; | ||
private getText; | ||
render(): JSX.Element; | ||
} |
@@ -6,48 +6,21 @@ { | ||
"description": "", | ||
"attributes": [] | ||
}, | ||
{ | ||
"label": "link-list", | ||
"description": "", | ||
"attributes": [ | ||
{ | ||
"label": "color", | ||
"description": "", | ||
"label": "first", | ||
"description": "The first name", | ||
"required": false | ||
} | ||
] | ||
}, | ||
{ | ||
"label": "widget-launcher", | ||
"description": "", | ||
"attributes": [ | ||
{ | ||
"label": "color", | ||
"description": "", | ||
"required": false | ||
}, | ||
{ | ||
"label": "is-open", | ||
"description": "", | ||
"label": "last", | ||
"description": "The last name", | ||
"required": false | ||
}, | ||
{ | ||
"label": "use-promo-image", | ||
"description": "", | ||
"label": "middle", | ||
"description": "The middle name", | ||
"required": false | ||
} | ||
] | ||
}, | ||
{ | ||
"label": "widget-window", | ||
"description": "", | ||
"attributes": [ | ||
{ | ||
"label": "number-of-items", | ||
"description": "", | ||
"required": false | ||
} | ||
] | ||
} | ||
] | ||
} |
{ | ||
"name": "@charlietango/ddb-widget", | ||
"version": "0.1.40", | ||
"version": "0.1.41", | ||
"description": "Web Component built with Stencil by Charlie Tango", | ||
"module": "dist/esm/index.js", | ||
"main": "dist/index.js", | ||
"unpkg": "dist/ddb-widget.js", | ||
"repository": { | ||
@@ -12,4 +9,6 @@ "url": "git@bitbucket.org:insilicoconsulting/ddb-widget-frontend.git" | ||
"author": "Charlie Tango", | ||
"license": "MIT", | ||
"homepage": "https://www.charlietango.dk", | ||
"module": "dist/esm/index.js", | ||
"main": "dist/index.js", | ||
"unpkg": "dist/ddb-widget.js", | ||
"types": "dist/types/components.d.ts", | ||
@@ -21,14 +20,12 @@ "collection": "dist/collection/collection-manifest.json", | ||
"scripts": { | ||
"build": "stencil build --prod", | ||
"build": "stencil build --docs", | ||
"start": "stencil build --dev --watch --serve", | ||
"test": "stencil test --spec --e2e", | ||
"test.watch": "stencil test --spec --e2e --watchAll", | ||
"lint": "tslint -c tslint.json src/**/*.ts" | ||
"test.watch": "stencil test --spec --e2e --watchAll" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@stencil/core": "0.16.2", | ||
"@stencil/sass": "^0.1.1", | ||
"tslint": "^5.11.0" | ||
} | ||
"@stencil/core": "~0.16.2" | ||
}, | ||
"license": "MIT" | ||
} |
![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square) | ||
# Charlie Tango links widget | ||
# Stencil Component Starter | ||
Web Component that can be used in any site by putting a `<script>` tag in the head. | ||
This is a starter project for building a standalone Web Component using Stencil. | ||
## Usage | ||
Stencil is also great for building entire apps. For that, use the [stencil-app-starter](https://github.com/ionic-team/stencil-app-starter) instead. | ||
IMPORTANT - For unknown error widget source script crashes IE11 browser!!! Script below needs to be copied manually to /dist/ddb-widget.js (production build) in order to prevent crash on IE11. Script must be placed at the very beginning of execution of the function. | ||
```javascript | ||
function GetIEVersion() { | ||
window.navigator.userAgent.indexOf("MSIE"); | ||
return !!navigator.userAgent.match(/Trident\/7\./) | ||
} | ||
var isIE11 = GetIEVersion(); | ||
if (isIE11) { | ||
return; | ||
} | ||
``` | ||
# Stencil | ||
Stencil is a compiler for building fast web apps using Web Components. | ||
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec. | ||
Stencil components are just Web Components, so they work in any major framework or with no framework at all. | ||
## Getting Started | ||
To start building a new web component using Stencil, clone this repo to a new directory: | ||
```bash | ||
git clone https://github.com/ionic-team/stencil-component-starter.git my-component | ||
cd my-component | ||
git remote rm origin | ||
``` | ||
and run: | ||
```bash | ||
npm install | ||
npm start | ||
``` | ||
To build the component for production, run: | ||
```bash | ||
npm run build | ||
``` | ||
To run the unit tests for the components, run: | ||
```bash | ||
npm test | ||
``` | ||
Need help? Check out our docs [here](https://stenciljs.com/docs/my-first-component). | ||
## Naming Components | ||
When creating new component tags, we recommend _not_ using `stencil` in the component name (ex: `<stencil-datepicker>`). This is because the generated component has little to nothing to do with Stencil; it's just a web component! | ||
Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the Ionic generated web components use the prefix `ion`. | ||
## Using this component | ||
### Script tag | ||
- [Publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages) | ||
- Put a script tag similar to this `<script src='https://unpkg.com/my-component@0.0.1/dist/mycomponent.js'></script>` in the head of your index.html | ||
- Then you can use the element anywhere in your template, JSX, html etc | ||
### Node Modules | ||
- Run `npm install my-component --save` | ||
- Put a script tag similar to this `<script src='node_modules/my-component/dist/mycomponent.js'></script>` in the head of your index.html | ||
- Then you can use the element anywhere in your template, JSX, html etc | ||
### In a stencil-starter app | ||
- Run `npm install my-component --save` | ||
- Add an import to the npm packages `import my-component;` | ||
- Then you can use the element anywhere in your template, JSX, html etc |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1
73
1
3
234606
340
48
2137