text: !function(e,t,r,n,o,i){if("customElements"in e)i();else{if(e.WC_ENV)return void e.WC_ENV.then(i);var a=function(e,r){var n=t.createElement("script");n.type="text/javascript",n.readyState?n.onreadystatechange=function(){"loaded"!=n.readyState&&"complete"!=n.readyState||(n.onreadystatechange=null,r())}:n.onload=function(){r()},n.src=e,t.getElementsByTagName("head")[0].appendChild(n)},c=e.WC_ENV=function(){var e=[],t=function(e){try{e()}catch(e){console.error(e)}};return e.isDone=!1,e.exec=function(){e.splice(0).forEach(t)},e.then=function(t){return e.isDone?t():e.push(t),e},e}();c.then(i);var u=e.WC_POLYFILL||"//cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/2.0.2/webcomponents-bundle.js",s=0,l=function(){--s||(c.isDone=!0,c.exec())};"Reflect"in e||e.SKIP_ES_POLYFILL?(s++,a(u,l)):(s++,a(e.ES_POLYFILL||"//cdnjs.cloudflare.com/ajax/libs/core-js/2.5.3/core.min.js",function(){a(u,l)}),function(){try{new Function("function* test() {}")()}catch(e){return!1}return!0}()||e.regeneratorRuntime||(s++,a(window.GE_POLYFILL||n,l)))}}(window,document,0,"//unpkg.com/regenerator-runtime@0.12.1/runtime.js",0,function(){!function(e,t,r,n,o,i,a,c,u,s,l,f,d,h,p,m,y,v,g,b,k,w,S,x,C){!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||s.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&s.defineProperty(e,Symbol.toStringTag,{value:"Module"}),s.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=s.create(null);if(r.r(n),s.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return s.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(r,o,f){"use strict";function d(e){return(d="function"==typeof Symbol&&"symbol"===h(Symbol.iterator)?function(e){return h(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":h(e)})(e)}function h(e){return(h="function"==typeof Symbol&&"symbol"===d(Symbol.iterator)?function(e){return d(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":d(e)})(e)}function p(e,t){if(!(e instanceof t))throw new m("Cannot call a class as a function")}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?v(e):t}function b(e){return(b=s.setPrototypeOf?s.getPrototypeOf:function(e){return e.__proto__||s.getPrototypeOf(e)})(e)}function w(e,t){return(w=s.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t){if("function"!=typeof t&&null!==t)throw new m("Super expression must either be null or a function");e.prototype=s.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function A(e){if(u.isArray(e))return e}function _(e){if(Symbol.iterator in s(e)||"[object Arguments]"===s.prototype.toString.call(e))return u.from(e)}function M(){throw new m("Invalid attempt to destructure non-iterable instance")}function P(e,t){return A(e)||function(e,t){var r=[],n=!0,o=!1,i=C;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||M()}function D(e,t,r){return(D=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return i.prototype.toString.call(Reflect.construct(i,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(l.bind.apply(e,n));return r&&w(o,r.prototype),o}).apply(null,arguments)}function T(e){var t="function"==typeof Map?new Map:C;return(T=function(e){if(null===e||!function(e){return-1!==l.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new m("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return D(e,arguments,b(this).constructor)}return r.prototype=s.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),w(r,e)})(e)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),s.defineProperty(e,n.key,n)}}function $(e,t,r){return t&&L(e.prototype,t),r&&L(e,r),e}function N(e){return function(e){if(u.isArray(e)){for(var t=0,r=new u(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||_(e)||function(){throw new m("Invalid attempt to spread non-iterable instance")}()}f.r(o);var F=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||s.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&s.defineProperty(e,Symbol.toStringTag,{value:"Module"}),s.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==h(e)&&e&&e.__esModule)return e;var n=s.create(null);if(r.r(n),s.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return s.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(t,r,n){(function(t){n.d(r,"a",function(){return o});var o=void 0!==e?e:void 0!==t?t:"undefined"!=typeof self?self:l("return this;")()}).call(this,n(3))},function(e,t){e.exports=WeakMap.WeakMap=WeakMap},function(e,t){e.exports=Symbol.Symbol=Symbol},function(t,r){var n;n=function(){return this}();try{n=n||l("return this")()||(0,eval)("this")}catch(t){"object"==(void 0===e?"undefined":h(e))&&(n=e)}t.exports=n},function(r,o,i){i.r(o);var a=l.bind.call.bind(l.bind)(l.call.bind,l.call),c=a(s.prototype.toString),f=function(e){return"[object Object]"===c(e)},d=s.defineProperty,h=(s.defineProperties,s.keys),m=function(e,t,r,n,o){var i=!(arguments.length>5&&arguments[5]!==C)||arguments[5],a=arguments.length>6&&arguments[6]!==C&&arguments[6],c=!(arguments.length>7&&arguments[7]!==C)||arguments[7],u={configurable:i,enumerable:a};return n||o?(u.get=n,u.set=o):(u.writable=c,u.value=r),d(e,t,u),e},w=[],A=u.isArray,_=(a(w.forEach),a(w.indexOf),a(w.splice),a(w.slice),x.log),M=(x.error,x.warn||_),P=("undefined"!=typeof Symbol&&Symbol.iterator&&Symbol.iterator,HTMLElement.prototype),D=t,L=D.head,F=function(e){return D.createElement(e)};a(P.appendChild),a(P.insertBefore),a(P.hasAttribute),a(P.getAttribute),a(P.setAttribute),a(P.removeAttribute);var O,R,j=function e(t){for(var r=arguments.length,n=new u(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i,a,c=t||{},s=n.length,l=!1;for("boolean"==typeof t&&(l=t,c=n.shift()||{},s=n.length),i=0;i<s;i++)if(n[i])for(a in n[i])n[i].hasOwnProperty(a)&&(l&&f(c[a])&&f(n[i][a])?c[a]=e(!0,c[a],n[i][a]):c[a]=n[i][a]);return c},I=/native code/i,z=function(){if("undefined"!=typeof setImediate&&I.test(setImediate.toString()))return setImediate;if("function"==typeof Promise&&I.test(Promise.toString())){var e=Promise.resolve();return function(t){e.then(t).catch(function(e){return x.error(e)})}}var t=[],r=!1;return function(e){t.push(e),r||(r=!0,function e(){n(function(){t.shift()(),t.length?e():r=!1},0)}())}}(),q=!1,U=new Set,B=function(){var e=N(U);for(U.clear(),q=!1,O=0,R=e.length;O<R;O++)e[O]()};function H(e){if(e.constructor&&e===e.constructor.prototype)throw new y("Can not be accessed directly on constructor.prototype!")}z.queue=function(e){U.add(e),q||(q=!0,z(B))};function V(e,t){return u.prototype.slice.call(e.querySelectorAll(t))}var Q=V,W=i(1),Y=(new W.WeakMap,function(){return new W.WeakMap}),Z=Symbol("state"),G=function(){function e(){p(this,e)}return $(e,[{key:"on",value:function(e,t){var r=this;return J(this,e).add(t),function(){return J(r,e).delete(t)}}},{key:"emit",value:function(e,t){J(this,e).forEach(function(e){return e(t)})}},{key:"clear",value:function(){J(this).clear()}}]),e}();function J(e,t){return e[Z]||(e[Z]=new Map),t?(e[Z].has(t)||e[Z].set(t,new Set),e[Z].get(t)):e[Z]}var K=i(2),X=Y(),ee=s(K.Symbol)("state");function te(e,t){return t.aliases.some(function(t){return e.hasAttribute(t)})}function re(e){if(!X.has(e)){var t={isCssScopingDone:!1,templateEle:null,ev:new G,destroyCallbacks:[],destroyQueued:null,isMounted:!1};X.set(e,t)}return X.get(e)}function ne(e){var t=oe(e);if(!t.propsDef){var r=t.propsDef={},n=e.propsDef;n&&h(n).forEach(function(e){if(r[e]=n[e],A(r[e].aliases)){var t=j({},n[e],{_isAlias:!0});r[e].aliases.forEach(function(e){return!r[e]&&(r[e]=t)})}})}return t.propsDef}function oe(e){return X.has(e)||X.set(e,{propsDef:null,templateEle:null,observedAttrs:null}),X.get(e)}var ie=i(0),ae=function(){return!!ie.a.ShadyCSS},ce=function(e){return e.parentNode.removeChild(e)},ue=function(e){return"string"==typeof e};function se(){return(L.createShadowRoot||L.attachShadow)&&(!ae()||ie.a.ShadyCSS.nativeShadow)}var le=L.createShadowRoot||L.attachShadow,fe={bubbles:!0,cancelable:!0,composed:!0},de=e.customElements,he=s.freeze(s.create(null)),pe=Symbol("ev.props.any"),me=!1,ye=function(e){function r(){var e,t;p(this,r);for(var n=arguments.length,o=new u(n),i=0;i<n;i++)o[i]=arguments[i];var a=(t=g(this,(e=b(r)).call.apply(e,[this].concat(o))))||v(v(t));return g(t,(function(e){var t=e.constructor,r=t.useShadow,n=t.shadowMode;r&&le?e.shadowRoot?e._$ui=e.shadowRoot:e._$ui=e.attachShadow({mode:n}):e._$ui=e,e.onPropsChange(e._queueUpdate),e.didInit()}(a),a))}return E(r,T(HTMLElement)),$(r,[{key:"destroy",value:function(){if(X.has(this)){var e=re(this);X.delete(this),e.destroyQueued&&(S(e.destroyQueued),e.destroyQueued=null),e.destroyCallbacks.splice(0).forEach(function(e){return e()})}this.parentNode&&this.parentNode.removeChild(this),this.didDestroy()}},{key:"onDestroy",value:function(e){re(this).destroyCallbacks.push(e)}},{key:"$",value:function(e){return this.$ui.querySelector(e)}},{key:"$$",value:function(e){return Q(this.$ui,e)}},{key:"_setView",value:function(e){var r=e;se()||(r=function(e,r){if(ae()){var n,o=ue(e),i=oe(r.constructor),a=i.templateEle;return a||(i.templateEle=a=F("template"),o?a.innerHTML=e:a.appendChild(e.cloneNode(!0)),function(e,t){ae()&&ie.a.ShadyCSS.prepareTemplate(e,t.constructor.tagName)}(a,r)),o?(a.innerHTML=e,n=t.importNode(a.content,!0),a.textContent=""):n=e,n.content||(n.content=n),ie.a.ShadyCSS.prepareTemplateDom(n,r.constructor.tagName),V(n,"style").forEach(ce),n}}(e,this)||e),"string"==typeof r?this.$ui.innerHTML=r:(this.$ui.textContent="",this.$ui.appendChild(r))}},{key:"didInit",value:function(){"init"in this&&this.init()}},{key:"didMount",value:function(){"ready"in this&&this.ready(),"mounted"in this&&this.mounted()}},{key:"willRender",value:function(){}},{key:"render",value:function(){return"<span></span>"}},{key:"didRender",value:function(){}},{key:"didUnmount",value:function(){"unmounted"in this&&this.unmounted()}},{key:"didDestroy",value:function(){}},{key:"emit",value:function(e,t,r){var n=e.toLowerCase(),o=new k(e,j({},this.constructor.eventInitOptions,r,{detail:t}));"function"==typeof this[n]&&this[n](o),this.dispatchEvent(o)}},{key:"on",value:function(e,t,r){return function(e,t,r,n){var o=t.split(/\s+/),i={};return o.forEach(function(t){e.addEventListener(t,r,n),i[t]={remove:function(){return e.removeEventListener(t,r,n)}}}),s.create({listeners:i,remove:function(){o.forEach(function(e){return i[e].remove()})}})}(this,e,t,r)}},{key:"onPropsChange",value:function(e,t){return re(this).ev.on(t||pe,e)}},{key:"attributeChangedCallback",value:function(e,t,r){var n=ne(this.constructor);n[e]&&(e=n[e].name),this.props[e]=r}},{key:"connectedCallback",value:function(){var e=re(this);e.destroyQueued&&(S(e.destroyQueued),e.destroyQueued=null),se()||function(e){ae()&&ie.a.ShadyCSS.styleElement(e)}(this),e.isMounted=!0,this.didMount(),this._queueUpdate()}},{key:"disconnectedCallback",value:function(){if(X.has(this)){var e=re(this);e.destroyQueued||(e.destroyQueued=n(this.destroy.bind(this),this.constructor.delayDestroy)),e.isMounted=!1}this.didUnmount()}},{key:"props",get:function(){var e=this;if(H(this),!me){me=!0;var t=ne(this.constructor),r={},n=re(this).ev,o=function(){return n.emit(pe)};return h(t).forEach(function(i){if(!t[i]||!t[i]._isAlias){var a=function(){return n.emit(i)},c=t[i].default.call(e);t[i].attr&&!t[i].boolean&&te(e,t[i])?c=function(e,t){var r="";return t.aliases.some(function(t){if(e.hasAttribute(t))return r=e.getAttribute(t),!0}),r}(e,t[i]):e.hasOwnProperty(i)&&(c=e[i],delete e[i]),m(r,i,void 0,function(){return c},function(r){return r=t[i].filter.call(e,r),z.queue(a),z.queue(o),c=r},!0,!0)}}),m(this,"props",r,void 0,void 0,!0,!0,!1),me=!1,r}}},{key:"hasRequiredProps",get:function(){var e=this;return H(this),h(this.constructor.propsDef).filter(function(t){return e.constructor.propsDef[t].required}).every(function(t){return!!e.props[t]})}},{key:"isMounted",get:function(){return H(this),re(this).isMounted}},{key:"$ui",get:function(){return this._$ui}},{key:"update",get:function(){var e=this;if(H(this),!me){var t=function(){if(e.isMounted){var t=e.willRender();("boolean"!=typeof t||t)&&(e._setView(e.render()),e.didRender())}};return me=!0,m(this,"update",t),me=!1,t}}},{key:"_queueUpdate",get:function(){var e=this;if(H(this),!me){var t=function(){z.queue(e.update)};return me=!0,m(this,"_queueUpdate",t),me=!1,t}}}],[{key:"define",value:function(e){e=e||this.tagName,de.get(e)?de.get(e)!==this&&M("".concat(e," is already a defined in customElementsRegistry as a different Class")):de.define(e,this)}},{key:"renderTemplate",value:function(){}},{key:"tagName",get:function(){throw new y("tagName not defined")}},{key:"delayDestroy",get:function(){return 0}},{key:"useShadow",get:function(){return!0}},{key:"shadowMode",get:function(){return"open"}},{key:"template",get:function(){return"<div></div>"}},{key:"eventInitOptions",get:function(){return fe}},{key:"observedAttributes",get:function(){var e=oe(this);if(!e.observedAttrs){var t=ne(this);e.observedAttrs=h(t).filter(function(e){return t[e].attr})}return e.observedAttrs}}]),r}();!function(e,t,r){t in e?s.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ye,"propsDef",he);var ve=/[A-Z]/,ge=function(e){return e};function be(){var e=arguments.length>0&&arguments[0]!==C?arguments[0]:{};return e.key&&e.kind?ke({},e):ke.bind(null,e)}function ke(e,t){var r=t.key,n=t.initializer,o=t.descriptor,i=function(e,t,r,n){var o=j({name:e,attr:!1,required:!1,boolean:!1,default:t||ge,filter:r||ge,aliases:[]},n);return o.boolean&&(o.attr=!0,o.default=o.filter=function(){return te(this,o)}),e.toLowerCase()!==e&&o.aliases.push(e.toLowerCase()),ve.test(e)&&o.aliases.push(function(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()})}(e)),o}(r,n||o.get,o.set,e),a=we(r,r,i);return i.aliases&&(a.extras=i.aliases.map(function(e){return we(e,r)})),a}function we(e,t,r){var n={key:e,kind:"method",placement:"prototype",descriptor:{configurable:!0,get:function(){return H(this),this.props[t]},set:function(e){return H(this),this.props[t]=e}}};return r&&(n.finisher=function(t){t.hasOwnProperty("propsDef")||m(t,"propsDef",j(s.create(null),t.propsDef)),t.propsDef[e]=r}),n}function Se(e){return e.key&&e.kind?xe(e):xe}function xe(e){var t=e.kind,r=e.key,n=e.descriptor;if("method"===t&&n.value){var o=!1,i=n.value;delete n.value,delete n.writable,n.get=function(){if(H(this),!o){o=!0;var e=i.bind(this);return m(this,r,e),o=!1,e}}}return e}i.d(o,"ComponentElement",function(){return ye}),i.d(o,"prop",function(){return be}),i.d(o,"bind",function(){return Se}),i.d(o,"getState",function(){return re}),i.d(o,"STATE_SYMBOL",function(){return ee}),i.d(o,"default",function(){return ye})}]),O=(F.getState,F.STATE_SYMBOL),R=(F.default,F.ComponentElement),j=F.prop,I=F.bind;function z(e,t){return u.prototype.slice.call(e.querySelectorAll(t))}function q(e,t){return!(!e||!t)&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}var U=l.bind.call.bind(l.bind)(l.call.bind,l.call),B=(U(s.prototype.toString),s.defineProperty,s.defineProperties,s.keys),H=[],V=(u.isArray,U(H.forEach),U(H.indexOf),U(H.splice),U(H.slice),x.log),Q=(x.error,x.warn,"undefined"!=typeof Symbol&&Symbol.iterator&&Symbol.iterator,HTMLElement.prototype),W=t,Y=(W.head,function(e){return W.createElement(e)}),Z=function(e){return W.createTextNode(e||"")},G=U(Q.appendChild),J=(U(Q.insertBefore),U(Q.hasAttribute),U(Q.getAttribute),U(Q.setAttribute),U(Q.removeAttribute),s.freeze({"--theme-color-0":"#FFFFFF","--theme-color-1":"#ECECEC","--theme-color-2":"#DCDCDC","--theme-color-3":"#C5C5C5","--theme-color-4":"#ADADAD","--theme-color-5":"#8A8A8A","--theme-color-6":"#656565","--theme-color-7":"#565656","--theme-color-8":"#2D2D2D","--theme-color-9":"#000000","--theme-color-accent-info-0":"#def3ff","--theme-color-accent-info-1":"#bee1f4","--theme-color-accent-info-2":"#39a5dc","--theme-color-accent-info-3":"#0088ce","--theme-color-accent-info-4":"#00659c","--theme-color-accent-success-0":"#cfe7cd","--theme-color-accent-success-1":"#9ecf99","--theme-color-accent-success-2":"#6ec664","--theme-color-accent-success-3":"#3f9c35","--theme-color-accent-success-4":"#2d7623","--theme-color-accent-alert-0":"#fcf6e3","--theme-color-accent-alert-1":"#f9e4a4","--theme-color-accent-alert-2":"#f9d463","--theme-color-accent-alert-3":"#f9c62c","--theme-color-accent-alert-4":"#dda600","--theme-color-accent-warning-0":"#ffe2af","--theme-color-accent-warning-1":"#ffc57a","--theme-color-accent-warning-2":"#ffa86b","--theme-color-accent-warning-3":"#ff8330","--theme-color-accent-warning-4":"#f4581f","--theme-color-accent-error-0":"#F9CACA","--theme-color-accent-error-1":"#FF7A7A","--theme-color-accent-error-2":"#FF4B4B","--theme-color-accent-error-3":"#FF171A","--theme-color-accent-error-4":"#BD1818","--theme-color-bg":"var(--theme-color-0)","--theme-color-fg":"var(--theme-color-8)","--theme-color-link":"var(--theme-color-accent-info-3)","--theme-color-msg-success-bg":"var(--theme-color-accent-success-0)","--theme-color-msg-success-fg":"var(--theme-color-accent-success-4)","--theme-color-msg-alert-bg":"var(--theme-color-accent-alert-0)","--theme-color-msg-alert-fg":"var(--theme-color-accent-alert-4)","--theme-color-msg-warning-bg":"var(--theme-color-accent-warning-0)","--theme-color-msg-warning-fg":"var(--theme-color-accent-warning-4)","--theme-color-msg-info-bg":"var(--theme-color-accent-info-0)","--theme-color-msg-info-fg":"var(--theme-color-accent-info-4)","--theme-color-msg-error-bg":"var(--theme-color-accent-error-0)","--theme-color-msg-error-fg":"var(--theme-color-accent-error-4)","--theme-font-size-xxl":"28px","--theme-font-size-xl":"22px","--theme-font-size-l":"18px","--theme-font-size-m":"16px","--theme-font-size-s":"14px","--theme-font-size-xs":"11px","--theme-font-size":"var(--theme-font-size-m)","--theme-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',"--theme-font-family-monospace":'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"--theme-border-style":"solid","--theme-border-width":"1px","--theme-border-color":"var(--theme-color-5)","--theme-border-color-light":"var(--theme-color-4)","--theme-border-radius-sm":"3px","--theme-border-radius-md":"6px","--theme-border-radius-lg":"12px","--theme-border-radius-xl":"24px","--theme-border-radius":"var(--theme-border-radius-md)","--theme-border":"var(--theme-border-width) var(--theme-border-style) var(--theme-border-color)","--theme-border-light":"var(--theme-border-width) var(--theme-border-style) var(--theme-border-color-light)","--theme-spacing-0":"0","--theme-spacing-1":"0.25rem","--theme-spacing-2":"0.5rem","--theme-spacing-3":"0.75rem","--theme-spacing-4":"1rem","--theme-spacing-5":"1.25rem","--theme-spacing-6":"1.5rem","--theme-spacing-7":"1.75rem","--theme-spacing-8":"2rem","--theme-spacing-9":"2.25rem","--theme-spacing":"var(--theme-spacing-2)","--theme-box-shadow-n":"0 -8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0,0,0,0.2)","--theme-box-shadow-e":"8px 0 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0,0,0,0.2)","--theme-box-shadow-s":"0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0,0,0,0.2)","--theme-box-shadow-w":"-8px 0 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0,0,0,0.2)","--theme-box-shadow":"var(--theme-box-shadow-s)"}));function K(e){var t,r=de(e.key);"method"===e.kind?(t={value:e.value,writable:!0,configurable:!0,enumerable:!1},s.defineProperty(e.value,"name",{value:"symbol"===h(r)?"":r,configurable:!0})):"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var n={kind:"field"===e.kind?"field":"method",key:r,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(n.decorators=e.decorators),"field"===e.kind&&(n.initializer=e.value),n}function X(e,t){e.descriptor.get!==C?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function ee(e){return e.decorators&&e.decorators.length}function te(e){return e!==C&&!(e.value===C&&e.writable===C)}function re(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}s.defineProperty(e,t.key,r)}function ne(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new m("Duplicated element ("+e.key+")");n.push(e.key)}function oe(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return s.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t}function ie(e){if(e!==C)return function(e){return A(e)||_(e)||M()}(e).map(function(e){var t=ae(e);return le(e,"finisher","An element descriptor"),le(e,"extras","An element descriptor"),t})}function ae(e){var t=a(e.kind);if("method"!==t&&"field"!==t)throw new m('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var r=de(e.key),n=a(e.placement);if("static"!==n&&"prototype"!==n&&"own"!==n)throw new m('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+n+'"');var o=e.descriptor;le(e,"elements","An element descriptor");var i={kind:t,key:r,placement:n,descriptor:s.assign({},o)};return"field"!==t?le(e,"initializer","A method descriptor"):(le(o,"get","The property descriptor of a field descriptor"),le(o,"set","The property descriptor of a field descriptor"),le(o,"value","The property descriptor of a field descriptor"),i.initializer=e.initializer),i}function ce(e){return{element:ae(e),finisher:fe(e,"finisher"),extras:ie(e.extras)}}function ue(e){var t={kind:"class",elements:e.map(oe)};return s.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t}function se(e){var t=a(e.kind);if("class"!==t)throw new m('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');le(e,"key","A class descriptor"),le(e,"placement","A class descriptor"),le(e,"descriptor","A class descriptor"),le(e,"initializer","A class descriptor"),le(e,"extras","A class descriptor");var r=fe(e,"finisher");return{elements:ie(e.elements),finisher:r}}function le(e,t,r){if(e[t]!==C)throw new m(r+" can't have a ."+t+" property.")}function fe(e,t){var r=e[t];if(r!==C&&"function"!=typeof r)throw new m("Expected '"+t+"' to be a function");return r}function de(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==C){var n=r.call(e,t||"default");if("object"!==h(n))return n;throw new m("@@toPrimitive must return a primitive value.")}return("string"===t?a:c)(e)}(e,"string");return"symbol"===h(t)?t:a(t)}var he=B(J),pe=he.reduce(function(e,t){return e+="".concat(t,": ").concat(J[t],";")+"\n"},""),me=function(e){return s.entries(e).reduce(function(e,t){var r=P(t,2),n=r[0],o=r[1];return e+"".concat(n,": ").concat(o,";")},"")},ye=function(e){return q(e,":root")},ve=function(e,t,r){var n=t(function(e){!function(e,t){["method","field"].forEach(function(r){t.forEach(function(t){t.kind===r&&"own"===t.placement&&re(e,t)})})}(e,o.elements)},r),o=function(e,t){var r=[],n=[],o={static:[],prototype:[],own:[]};if(e.forEach(function(e){ne(e,o)}),e.forEach(function(e){if(!ee(e))return r.push(e);var t=function(e,t){for(var r=[],n=[],o=e.decorators,i=o.length-1;i>=0;i--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var c=oe(e),u=ce((0,o[i])(c)||c);ne(e=u.element,t),u.finisher&&n.push(u.finisher);var s=u.extras;if(s){for(var l=0;l<s.length;l++)ne(s[l],t);r.push.apply(r,s)}}return{element:e,finishers:n,extras:r}}(e,o);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),!t)return{elements:r,finishers:n};var i=function(e,t){for(var r=[],n=t.length-1;n>=0;n--){var o=ue(e),i=se((0,t[n])(o)||o);if(i.finisher!==C&&r.push(i.finisher),i.elements!==C){e=i.elements;for(var a=0;a<e.length-1;a++)for(var c=a+1;c<e.length;c++)if(e[a].key===e[c].key&&e[a].placement===e[c].placement)throw new m("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:r}}(r,t);return n.push.apply(n,i.finishers),i.finishers=n,i}(function(e){for(var t=[],r=function(e){return"method"===e.kind&&e.key===i.key&&e.placement===i.placement},n=0;n<e.length;n++){var o,i=e[n];if("method"===i.kind&&(o=t.find(r)))if(te(i.descriptor)||te(o.descriptor)){if(ee(i)||ee(o))throw new ReferenceError("Duplicated methods ("+i.key+") can't be decorated.");o.descriptor=i.descriptor}else{if(ee(i)){if(ee(o))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+i.key+").");o.decorators=i.decorators}X(i,o)}else t.push(i)}return t}(n.d.map(K)),e);return function(e,t){var r=e.prototype;["method","field"].forEach(function(n){t.forEach(function(t){var o=t.placement;if(t.kind===n&&("static"===o||"prototype"===o)){var i="static"===o?e:r;re(i,t)}})})}(n.F,o.elements),function(e,t){for(var r=0;r<t.length;r++){var n=(0,t[r])(e);if(n!==C){if("function"!=typeof n)throw new m("Finishers must return a constructor.");e=n}}return e}(n.F,o.finishers)}(null,function(e,t){return{F:function(r){function n(){var t,r;p(this,n);for(var o=arguments.length,i=new u(o),a=0;a<o;a++)i[a]=arguments[a];return r=g(this,(t=b(n)).call.apply(t,[this].concat(i))),e(v(v(r))),r}return E(n,t),n}(),d:[{kind:"field",static:!0,key:"tagName",value:function(){return"css-vars"}},{kind:"field",static:!0,key:"defaultVars",value:function(){return J}},{kind:"get",static:!0,key:"varNames",value:function(){return he.slice(0)}},{kind:"method",key:"render",value:function(){return"\n<style>\n:host {\n    display: block;\n}\n</style>\n<style vars>\n:host {\n    ".concat(pe,"\n}\n</style>\n<slot></slot>")}},{kind:"get",decorators:[j],key:"vars",value:function(){return J}},{kind:"set",key:"vars",value:function(e){return"object"!==h(e)&&(x.warn("vars prop must be an object!"),e={}),e}},{kind:"get",decorators:[j({attr:!0})],key:"target",value:function(){return null}},{kind:"method",key:"didInit",value:function(){this[O]={priorTarget:null,$targets:null,$style:null},this.on("themeChange",this),this.onPropsChange(this._handleCustomVarsChange,"vars"),this.onPropsChange(this._handleTargetChange,"target")}},{kind:"method",key:"didRender",value:function(){this._varStyleEle=this.$("style[vars]"),this._handleCustomVarsChange(),this._handleTargetChange()}},{kind:"method",key:"didUnmount",value:function(){we(this),Se(this)}},{kind:"method",decorators:[I],key:"_handleCustomVarsChange",value:function(){be(this,this.vars,!1),ge(this,this.props.vars),we(this),ke(this)}},{kind:"method",decorators:[I],key:"_handleTargetChange",value:function(){this[O].priorTarget&&this[O].priorTarget!==this.props.target&&(we(this),Se(this)),this.props.target&&ke(this)}},{kind:"method",key:"handleEvent",value:function(e){"themeChange"===e.type&&e.detail&&(this.clear(),this.props.vars=e.detail&&e.detail.theme?e.detail.theme:e.detail)}},{kind:"method",key:"clear",value:function(){this.props.vars&&be(this,this.props.vars),this.props.vars={}}},{kind:"method",key:"getVarNames",value:function(){return this.constructor.varNames}}]}},R);function ge(e,t){var r=!(arguments.length>2&&arguments[2]!==C)||arguments[2],n=B(t);n.length&&(e._varStyleEle?(e._varStyleEle.innerHTML="",G(e._varStyleEle,Z("\n:host {\n".concat(me(t),"\n}\n")))):"STYLE"===e.tagName?(e.innerHTML="",G(e,Z("\n:root {\n".concat(me(t)," \n}\n")))):n.forEach(function(r){e.style.setProperty(r,t[r])}),r&&e.emit&&e.emit("change",null,{bubble:!0}))}function be(e,t){var r=!(arguments.length>2&&arguments[2]!==C)||arguments[2],n=B(t);n.length&&(n.forEach(function(t){"STYLE"===e.tagName?e.innerHTML="":e.style.removeProperty(t)}),r&&e.emit&&e.emit("change",null,{bubble:!0}))}function ke(e){var t=e[O],r=e.props,n=r.target,o=r.vars;n&&(t.$targets||(t.$targets="string"==typeof n?z(W,n):[n]),t.$targets.forEach(function(e){ye(e)&&(t.$style||(t.$style=function(e){var t=Y("style"),r=W.head;t.type="text/css",G(t,Z(e)),r.hasChildNodes()?r.insertBefore(t,r.firstChild):G(r,t);return t}("")),e=t.$style),ge(e,o,!1)}),e[O].priorTarget=n)}function we(e){var t=e[O];t.$targets&&t.$targets.forEach(function(r){ye(r)&&(r=t.$style),be(r,e.props.vars,!1)})}function Se(e){var t=e[O];t.$style&&(t.$style.parentNode.removeChild(t.$style),t.$style=null),t.$targets&&(t.$targets=null)}ve.define()}])}(window,document,location,setTimeout,setInterval,Date,String,Number,Array,Object,Function,atob,btoa,Math,JSON,TypeError,Error,encodeURIComponent,decodeURIComponent,requestAnimationFrame,CustomEvent,clearInterval,clearTimeout,console)});
  //# sourceMappingURL=css-vars-element.import.legacy.min.js.map