quarkd
Version:
Mobile UI Components built on Web Components.
1 lines • 496 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).quark=e()}(this,(function(){"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(e);var n=t(e.exports),o={exports:{}};!function(t){function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}t.exports=function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(o);var r=t(o.exports),i={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(i);var a=t(i.exports),s={exports:{}},l={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(l),function(t){var e=l.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(s);var c=t(s.exports),u={exports:{}},p={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(p);var h=t(p.exports);!function(t){var e=p.exports.default,n=i.exports;t.exports=function(t,o){if(o&&("object"===e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(u);var d=t(u.exports),f={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(f);var v=t(f.exports),g={exports:{}};!function(t){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}(g);var y=t(g.exports),m={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(m);var k=t(m.exports);function b(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":k(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}var w={exports:{}},x={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(x);var q=t(x.exports),R={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(R);var C={exports:{}};!function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports}(C);var z={exports:{}},S={exports:{}};!function(t){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports}(S),function(t){var e=R.exports,n=S.exports;function o(r,i,a){return n()?(t.exports=o=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,n,o){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(t,r));return o&&e(i,o.prototype),i},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(z),function(t){var e=x.exports,n=R.exports,o=C.exports,r=z.exports;function i(a){var s="function"==typeof Map?new Map:void 0;return t.exports=i=function(t){if(null===t||!o(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==s){if(s.has(t))return s.get(t);s.set(t,i)}function i(){return r(t,arguments,e(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n(i,t)},t.exports.__esModule=!0,t.exports.default=t.exports,i(a)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}(w);var P=t(w.exports),T={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(T);var E=t(T.exports),B={exports:{}};!function(t){var e=R.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(B);var A=t(B.exports),M={exports:{}},D={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(D),function(t){var e=D.exports.default,n=T.exports;t.exports=function(t,o){if(o&&("object"===e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(M);var O=t(M.exports),_={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(_);var F=t(_.exports),L={exports:{}},I={exports:{}},j={exports:{}};!function(t){var e=D.exports.default;t.exports=function(t,n){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(j),function(t){var e=D.exports.default,n=j.exports;t.exports=function(t){var o=n(t,"string");return"symbol"===e(o)?o:String(o)},t.exports.__esModule=!0,t.exports.default=t.exports}(I),function(t){var e=I.exports;function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(L);var X=t(L.exports),N={exports:{}};!function(t){var e=I.exports;t.exports=function(t,n,o){return(n=e(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t},t.exports.__esModule=!0,t.exports.default=t.exports}(N);var Y=t(N.exports);function H(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=q(t);if(e){var r=q(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return O(this,n)}}var W={},V=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $(t){var e=t.parentNode;e&&e.removeChild(t)}function K(t){return"function"==typeof t}var Q=V.slice,G={_catchError:function(t,e,n,o){for(var r,i,a;e=e._parent;)if((r=e._component)&&!r._processingException)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(Object.assign(r,i.getDerivedStateFromError(t)),a=r._dirty),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),a=r._dirty),a)return r._pendingError=r}catch(e){t=e}throw t}},Z=0;function J(t,e,n){var o,r,i,a={};for(i in e)"key"==i?o=e[i]:"ref"==i?r=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?Q.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return tt(t,a,o,r,null)}function tt(t,e,n,o,r){var i={type:t,props:e,key:n,ref:o,_children:null,_parent:null,_depth:0,_dom:null,_nextDom:void 0,_component:null,_hydrating:null,constructor:void 0,_original:null==r?++Z:r};return null==r&&null!=G.vnode&&G.vnode(i),i}function et(t){return t.children}function nt(t){this.props=t,this._dirty=!1}function ot(t,e){if(null==e)return t._parent?ot(t._parent,t._parent._children.indexOf(t)+1):null;for(var n;e<t._children.length;e++)if(null!=(n=t._children[e])&&null!=n._dom)return n._dom;return"function"==typeof t.type?ot(t):null}function rt(t,e,n,o,r,i,a){var s,l,c,u,p,h,d,f=o&&o._children||V,v=f.length;for(n._children=[],s=0;s<e.length;s++)if(null!=(u=null==(u=e[s])||"boolean"==typeof u||"function"==typeof u?n._children[s]=null:"string"==typeof u||"number"==typeof u||"bigint"==typeof u?n._children[s]=tt(null,u,null,null,u):Array.isArray(u)?n._children[s]=tt(et,{children:u},null,null,null):u._depth>0?n._children[s]=tt(u.type,u.props,u.key,u.ref?u.ref:null,u._original):n._children[s]=u)){if(u._parent=n,u._depth=n._depth+1,null===(c=f[s])||c&&u.key==c.key&&u.type===c.type)f[s]=void 0;else for(l=0;l<v;l++){if((c=f[l])&&u.key==c.key&&u.type===c.type){f[l]=void 0;break}c=null}ht(t,u,c=c||W,r,i,a),p=u._dom,(l=u.ref)&&c.ref!=l&&(d||(d=[]),c.ref&&d.push(c.ref,null,u),d.push(l,u._component||p,u)),null!=p?(null==h&&(h=p),"function"==typeof u.type&&u._children===c._children?u._nextDom=a=it(u,a,t):a=at(t,u,c,f,p,a),"function"==typeof n.type&&(n._nextDom=a)):a&&c._dom==a&&a.parentNode!=t&&(a=ot(c))}for(n._dom=h,s=v;s--;)null!=f[s]&&("function"==typeof n.type&&null!=f[s]._dom&&f[s]._dom==n._nextDom&&(n._nextDom=st(o).nextSibling),ft(f[s],f[s]));if(d)for(s=0;s<d.length;s++)dt(d[s],d[++s],d[++s])}function it(t,e,n){for(var o=t._children,r=0;o&&r<o.length;r++){var i=o[r];i&&(i._parent=t,e="function"==typeof i.type?it(i,e,n):at(n,i,i,o,i._dom,e))}return e}function at(t,e,n,o,r,i){var a;if(void 0!==e._nextDom)a=e._nextDom,e._nextDom=void 0;else if(null==n||r!=i||null==r.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(r),a=null;else{for(var s=i,l=0;(s=s.nextSibling)&&l<o.length;l+=1)if(s==r)break t;t.insertBefore(r,i),a=i}return void 0!==a?a:r.nextSibling}function st(t){if(null==t.type||"string"==typeof t.type)return t._dom;if(t._children)for(var e=t._children.length-1;e>=0;e--){var n=t._children[e];if(n){var o=st(n);if(o)return o}}return null}function lt(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):null==n?t[e]="":"number"!=typeof n||U.test(e)?t[e]=n:t[e]=n+"px"}function ct(t,e,n,o,r){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||lt(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||lt(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])if(i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t._listeners||(t._listeners={}),t._listeners[e+i]=n,n){if(!o){var a=i?pt:ut;t.addEventListener(e,a,i)}}else{var s=i?pt:ut;t.removeEventListener(e,s,i)}else if("dangerouslySetInnerHTML"!==e){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function ut(t){return this._listeners[t.type+!1](G.event?G.event(t):t)}function pt(t){return this._listeners[t.type+!0](G.event?G.event(t):t)}function ht(t,e,n,o,r,i){var a,s=e.type;if(void 0!==e.constructor)return null;(a=G._diff)&&a(e);try{t:if("function"==typeof s){var l,c,u,p=e.props;if(n._component)u=(l=e._component=n._component)._processingException=l._pendingError;else{if("prototype"in s&&s.prototype.render&&"development"===process.env.NODE_ENV)throw new Error("Class component in render method is not supported.");e._component=l=new nt(p),l.constructor=s,l.render=vt,l.props=p,c=l._dirty=!0}if(l.props,l._vnode=e,c);else if(e._original===n._original){e._dom=n._dom,e._children=n._children,e._children.forEach((function(t){t&&(t._parent=e)}));break t}l.props=p,l._parentDom=t;var h=G._render,d=0;do{l._dirty=!1,h&&h(e),a=l.render(l.props)}while(l._dirty&&++d<25);var f=null!=a&&a.type===et&&null==a.key?a.props.children:a;rt(t,Array.isArray(f)?f:[f],e,n,o,r,i),l.base=e._dom,u&&(l._pendingError=l._processingException=null)}else null==r&&e._original===n._original?(e._children=n._children,e._dom=n._dom):e._dom=function(t,e,n,o,r){var i=n.props,a=e.props,s=e.type,l=0;if("svg"===s&&(o=!0),null!=r)for(;l<r.length;l++){var c=r[l];if(c&&"setAttribute"in c==!!s&&(s?c.localName===s:3===c.nodeType)){t=c,r[l]=null;break}}if(null==t){if(null===s)return document.createTextNode(a);t=o?document.createElementNS("http://www.w3.org/2000/svg",s):document.createElement(s,a.is&&a),r=null}if(null===s)i!==a&&(t.data=a);else{r=r&&Q.call(t.childNodes);var u=(i=n.props||W).dangerouslySetInnerHTML,p=a.dangerouslySetInnerHTML;if(null!=r)for(i={},l=0;l<t.attributes.length;l++)i[t.attributes[l].name]=t.attributes[l].value;if((p||u)&&(p&&(u&&p.__html==u.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||"")),function(t,e,n,o){var r;for(r in n)"children"===r||"key"===r||r in e||ct(t,r,null,n[r],o);for(r in e)"children"!==r&&"key"!==r&&"value"!==r&&"checked"!==r&&n[r]!==e[r]&&ct(t,r,e[r],n[r],o)}(t,a,i,o),p)e._children=[];else if(l=e.props.children,rt(t,Array.isArray(l)?l:[l],e,n,o&&"foreignObject"!==s,r,r?r[0]:n._children&&ot(n,0)),null!=r)for(l=r.length;l--;)null!=r[l]&&$(r[l]);"value"in a&&void 0!==(l=a.value)&&(l!==t.value||"progress"===s&&!l||"option"===s&&l!==i.value)&&ct(t,"value",l,i.value,!1),"checked"in a&&void 0!==(l=a.checked)&&l!==t.checked&&ct(t,"checked",l,i.checked,!1)}return t}(n._dom,e,n,o,r);(a=G.diffed)&&a(e)}catch(t){e._original=null,null!=r&&(e._dom=i,r[r.indexOf(i)]=null),G._catchError(t,e,n)}}function dt(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){G._catchError(t,n)}}function ft(t,e,n){var o;if(G.unmount&&G.unmount(t),(o=t.ref)&&(o.current&&o.current!==t._dom||dt(o,null,e)),null!=(o=t._component)&&(o.base=o._parentDom=null,t._component=void 0),o=t._children)for(var r=0;r<o.length;r++)o[r]&&ft(o[r],e,n||"function"!=typeof t.type);n||null==t._dom||$(t._dom),t._parent=t._dom=t._nextDom=void 0}function vt(t){return this.constructor(t)}nt.prototype.render=et;var gt=function(){function t(){F(this,t),Y(this,"map",new Map)}return X(t,[{key:"get",value:function(t,e){var n=this.map.get(t);if(n)return e?n.get(e):n}},{key:"set",value:function(t,e,n){var o,r=this.map.get(t);r||(r=new Map,this.map.set(t,r)),null===(o=r)||void 0===o||o.set(e,n)}},{key:"forEach",value:function(t){this.map.forEach((function(e,n){e.forEach((function(e,o){t(e,n,o)}))}))}},{key:"delete",value:function(t){this.map.delete(t)}},{key:"deleteAll",value:function(){var t=this;this.map.forEach((function(e,n){t.map.delete(n)}))}}]),t}(),yt=X((function t(){var e=this;F(this,t),Y(this,"eventMap",new gt),Y(this,"bindListener",(function(t,n,o){if(t&&n&&o){var r=e.eventMap.get(t,n);r||(r=new Set,e.eventMap.set(t,n,r)),r.has(o)||(r.add(o),t.addEventListener(n,o,!0))}})),Y(this,"removeAllListener",(function(){e.eventMap.forEach((function(t,e,n){t.forEach((function(t){e.removeEventListener(n,t,!0)}))})),e.eventMap.deleteAll()}))}));var mt=et;~location.href.indexOf("localhost")&&console.info("%cquarkc@".concat("1.0.39"),"color: white;background:#9f57f8;font-weight:bold;font-size:10px;padding:2px 6px;border-radius: 5px","Running in dev mode.");var kt=function(t){return!(t||!1===t||0===t)},bt={observed:!0,type:String,converter:function(t,e){var n=t;switch(e){case Number:n=kt(t)?t:Number(t);break;case Boolean:n=!([null,"false",!1,void 0].indexOf(t)>-1)}return n}},wt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,n){return e.constructor.createProperty(n,t)}},xt=new gt,qt=new gt;function Rt(t){var e="string"==typeof t?{tag:t}:t,n=e.tag,o=e.style,r=void 0===o?"":o;return function(t){var e=function(e){A(o,e);var n=H(o);function o(){var t;F(this,o);var e=(t=n.call(this)).attachShadow({mode:"open"});if(e)if("function"==typeof CSSStyleSheet&&e.adoptedStyleSheets){var i=new CSSStyleSheet;i.replaceSync(r),e.adoptedStyleSheets=[i]}else{var a=document.createElement("style");a.innerHTML=r,e.append(a)}var s=qt.get(Object.getPrototypeOf(t.constructor));return s&&s.forEach((function(e,n){Object.defineProperty(E(t),n,e(t[n]))})),t}return X(o,null,[{key:"observedAttributes",get:function(){var e=[],n=xt.get(t);return n&&n.forEach((function(t,n){t.observed&&e.push(n)})),e}},{key:"isBooleanProperty",value:function(e){var n=!1,o=xt.get(t);return o&&o.forEach((function(t,o){if(t.type===Boolean&&e===o)return n=!0})),n}}]),o}(t);customElements.get(n)||customElements.define(n,e)}}var Ct=function(t){A(n,t);var e=H(n);function n(){var t;return F(this,n),t=e.apply(this,arguments),Y(E(t),"eventController",new yt),Y(E(t),"rootPatch",(function(e){t.shadowRoot&&function(t,e){G._root&&G._root(t,e);var n=e._children;t=e._children=J(et,null,[t]),ht(e,t,n||W,void 0!==e.ownerSVGElement,n?null:e.firstChild?Q.call(e.childNodes):null,n?n._dom:e.firstChild)}(e,t.shadowRoot)})),Y(E(t),"$on",(function(e,n,o){return t.eventController.bindListener(o||E(t),e,n)})),t}return X(n,[{key:"_render",value:function(){var t=this.render();t&&this.rootPatch(t)}},{key:"_updateProperty",value:function(){var t=this;this.constructor.observedAttributes.forEach((function(e){t[e]=t[e]}))}},{key:"_updateBooleanProperty",value:function(t){this.constructor.isBooleanProperty(t)&&(this[t]||(this[t]=this[t]))}},{key:"$emit",value:function(t,e){return this.dispatchEvent(new CustomEvent(t,Object.assign({bubbles:!0},e)))}},{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"shouldComponentUpdate",value:function(t,e,n){return e!==n}},{key:"componentDidUpdate",value:function(t,e,n){}},{key:"render",value:function(){return""}},{key:"connectedCallback",value:function(){this._updateProperty(),this._render(),K(this.componentDidMount)&&this.componentDidMount()}},{key:"attributeChangedCallback",value:function(t,e,n){var o=this[t]||n;K(this.shouldComponentUpdate)&&!this.shouldComponentUpdate(t,e,o)||(this._render(),K(this.componentDidUpdate)&&this.componentDidUpdate(t,e,o),n!==e&&this._updateBooleanProperty(t))}},{key:"disconnectedCallback",value:function(){K(this.componentWillUnmount)&&this.componentWillUnmount(),this.eventController.removeAllListener(),this.rootPatch(null)}}],[{key:"getPropertyDescriptor",value:function(t,e){return function(n){return{get:function(){var o=this.getAttribute(t);return kt(n)||!kt(o)||e.type===Boolean&&""===o?(K(e.converter)&&(o=e.converter(o,e.type)),o):n},set:function(n){var o=n;K(e.converter)&&(o=e.converter(n,e.type)),o?"boolean"==typeof o?this.setAttribute(t,""):this.setAttribute(t,o):this.removeAttribute(t)},configurable:!0,enumerable:!0}}}},{key:"getStateDescriptor",value:function(t){return function(e){var n=e;return{get:function(){return n},set:function(e){var o=n;n=e,this._render(),K(this.componentDidUpdate)&&this.componentDidUpdate(t,o,e)},configurable:!0,enumerable:!0}}}},{key:"createProperty",value:function(t,e){var n=Object.assign({},bt,e),o=e.attribute||t;xt.set(this,o,n),qt.set(this,t,this.getPropertyDescriptor(o,n))}},{key:"createState",value:function(t){qt.set(this,t,this.getStateDescriptor(t))}}]),n}(P(HTMLElement));Y(Ct,"h",J),Y(Ct,"Fragment",mt);function zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}var St=function(t){c(o,t);var e=zt(o);function o(){var t;n(this,o);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t=e.call.apply(e,[this].concat(i)),y(a(t),"type","spinner"),y(a(t),"vertical",!1),y(a(t),"color","#879099"),y(a(t),"size",void 0),y(a(t),"rotate",0),y(a(t),"renderLoadingSvg",(function(){var e=t.getFontSize(),n="rotate(".concat(t.rotate,"deg)");return"circular"===t.type?Ct.h("svg",{style:{fontSize:e,transform:n},class:"quark-loading-spinner",part:"svg",t:"1680062076772",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3938",width:"200",height:"200"},Ct.h("path",{d:"M512 25.6a486.4 486.4 0 1 0 0 972.8 486.4 486.4 0 0 0 0-972.8zM512 102.4a409.6 409.6 0 1 1 0 819.2 409.6 409.6 0 0 1 0-819.2z",fill:t.color,"fill-opacity":".2","p-id":"3939"}),Ct.h("path",{d:"M298.9056 949.3504a38.4 38.4 0 0 1 33.6896-69.0176A409.6 409.6 0 1 0 512 102.4a38.4 38.4 0 0 1 0-76.8 486.4 486.4 0 1 1-213.0944 923.7504zM512 25.6A38.4 38.4 0 1 1 512 102.4a408.6784 408.6784 0 0 0-319.1296 152.832 38.4 38.4 0 1 1-59.8528-48.128A485.4784 485.4784 0 0 1 512 25.6z",fill:t.color,"p-id":"3940"})):"pullrefresh"===t.type?Ct.h("svg",{style:{fontSize:e,transform:n},class:"quark-loading-spinner",part:"loading-spinner",width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Ct.h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Ct.h("g",{stroke:t.color,"stroke-width":"1.91304348"},Ct.h("g",{transform:"translate(1.000000, 1.000000)"},Ct.h("rect",{id:"Base","stroke-opacity":"0.2",x:"0",y:"0",width:"22",height:"22",rx:"11"}),Ct.h("path",{d:"M11,0 C17.0751322,-1.11598369e-15 22,4.92486775 22,11 C22,17.0751322 17.0751322,22 11,22 C4.92486775,22 7.43989126e-16,17.0751322 0,11 C-7.43989126e-16,4.92486775 4.92486775,1.11598369e-15 11,0 Z","stroke-linecap":"round","stroke-dasharray":"39.85507368004841,19.9275368400242"}))))):Ct.h("svg",{class:"quark-loading-spinner",part:"loading-spinner-svg",style:{fontSize:e,transform:n},t:"1680072702745",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3310",width:"200",height:"200"},Ct.h("path",{d:"M1023.99296 511.99648a50.559652 50.559652 0 0 1-50.239655 50.239655h-155.51893A50.559652 50.559652 0 0 1 767.99472 511.99648a50.559652 50.559652 0 0 1 50.239655-50.239655h155.51893A50.559652 50.559652 0 0 1 1023.99296 511.99648z",fill:t.color||"#BCC4CC","fill-opacity":".751","p-id":"3311"}),Ct.h("path",{d:"M948.153481 778.426648a51.839644 51.839644 0 0 1-69.247523 18.94387l-134.591075-77.759465a51.839644 51.839644 0 0 1-19.007869-69.183525 51.839644 51.839644 0 0 1 69.247523-18.943869l134.655075 77.695465a51.007649 51.007649 0 0 1 18.943869 69.247524z",fill:t.color||"#BCC4CC","fill-opacity":".834","p-id":"3312"}),Ct.h("path",{d:"M763.258753 946.233495a50.431653 50.431653 0 0 1-69.247524-18.94387L616.315763 793.594544a50.431653 50.431653 0 0 1 18.94387-69.183524 50.431653 50.431653 0 0 1 69.183524 18.943869l77.759465 134.655075a51.007649 51.007649 0 0 1-18.943869 68.223531z",fill:t.color||"#BCC4CC","fill-opacity":".917","p-id":"3313"}),Ct.h("path",{d:"M521.468415 1023.99296a50.559652 50.559652 0 0 1-50.239655-50.239655v-155.51893A50.559652 50.559652 0 0 1 521.468415 767.99472a50.559652 50.559652 0 0 1 50.239655 50.239655v155.51893a49.40766 49.40766 0 0 1-50.239655 50.239655z",fill:t.color||"#BCC4CC","p-id":"3314"}),Ct.h("path",{d:"M260.734207 946.233495a51.839644 51.839644 0 0 1-18.943869-69.183525L319.549803 742.394896a51.839644 51.839644 0 0 1 69.183524-18.94387 51.839644 51.839644 0 0 1 18.94387 69.183525L329.981731 927.353624a50.175655 50.175655 0 0 1-69.247524 18.94387z",fill:t.color||"#BCC4CC","fill-opacity":".087","p-id":"3315"}),Ct.h("path",{d:"M56.895609 778.426648a50.431653 50.431653 0 0 1 18.94387-69.247524L210.558552 631.483659a50.431653 50.431653 0 0 1 69.183525 18.943869c14.271902 23.679837 5.75996 55.039622-18.94387 69.183525l-135.551068 76.799472a49.599659 49.599659 0 0 1-68.287531-17.983877z",fill:t.color||"#BCC4CC","fill-opacity":".17","p-id":"3316"}),Ct.h("path",{d:"M0 511.99648a50.559652 50.559652 0 0 1 50.239655-50.239655h155.51893A50.559652 50.559652 0 0 1 255.99824 511.99648a50.559652 50.559652 0 0 1-50.239655 50.239655H50.239655A50.559652 50.559652 0 0 1 0 511.99648z",fill:t.color||"#BCC4CC","fill-opacity":".253","p-id":"3317"}),Ct.h("path",{d:"M56.895609 245.566312a51.839644 51.839644 0 0 1 69.183524-18.94387l134.655074 77.759465a51.839644 51.839644 0 0 1 18.94387 69.183525 51.839644 51.839644 0 0 1-69.183524 18.943869L75.839479 314.877835A50.175655 50.175655 0 0 1 56.959608 245.566312z",fill:t.color||"#BCC4CC","fill-opacity":".336","p-id":"3318"}),Ct.h("path",{d:"M260.734207 57.855602a50.431653 50.431653 0 0 1 69.247524 18.94387L407.677197 210.494553c14.271902 23.679837 5.75996 55.039622-18.94387 69.183524a50.431653 50.431653 0 0 1-69.183524-18.94387L241.790338 126.079133A50.751651 50.751651 0 0 1 260.734207 57.855602z",fill:t.color||"#BCC4CC","fill-opacity":".419","p-id":"3319"}),Ct.h("path",{d:"M521.468415 0a50.559652 50.559652 0 0 1 50.239655 50.239655v155.51893A50.559652 50.559652 0 0 1 521.468415 255.99824a50.559652 50.559652 0 0 1-50.239655-50.239655V50.239655A50.559652 50.559652 0 0 1 521.468415 0z",fill:t.color||"#BCC4CC","fill-opacity":".502","p-id":"3320"}),Ct.h("path",{d:"M763.258753 57.855602a51.839644 51.839644 0 0 1 18.943869 69.183525L704.443157 261.7582a51.839644 51.839644 0 0 1-69.183524 18.94387 51.839644 51.839644 0 0 1-18.94387-69.183524l77.695466-135.615068a50.751651 50.751651 0 0 1 69.247524-17.983876z",fill:t.color||"#BCC4CC","fill-opacity":".585","p-id":"3321"}),Ct.h("path",{d:"M948.153481 245.566312c14.207902 23.679837 5.695961 55.039622-18.943869 69.247524l-134.655075 77.695465a50.431653 50.431653 0 0 1-69.247523-18.943869 50.431653 50.431653 0 0 1 19.007869-69.183525l134.591075-76.799472a50.94365 50.94365 0 0 1 69.247523 17.983877z",fill:t.color||"#BCC4CC","fill-opacity":".668","p-id":"3322"}))})),t}return r(o,[{key:"getFontSize",value:function(){return this.size&&/\d(px|rem|em|vh|vw)$/.test(this.size)?this.size:"".concat(this.size,"px")}},{key:"iconRotate",value:function(){var t=this;requestAnimationFrame((function(){t.rotate>360&&(t.rotate=t.rotate-360),t.rotate+=4.3,t.iconRotate()}))}},{key:"componentDidMount",value:function(){this.iconRotate()}},{key:"render",value:function(){return Ct.h(mt,null,this.renderLoadingSvg(),Ct.h("span",{class:"quark-loading-text",part:"loading-text"},Ct.h("slot",null)))}}]),o}(Ct);b([wt()],St.prototype,"type",void 0),b([wt({type:Boolean})],St.prototype,"vertical",void 0),b([wt()],St.prototype,"color",void 0),b([wt()],St.prototype,"size",void 0),b([function(t,e){return t.constructor.createState(e)}],St.prototype,"rotate",void 0);var Pt=St=b([Rt({tag:"quark-loading",style:":host {\n font-size: 8vw;\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n\n:host([vertical]) {\n font-size: 8vw;\n display: inline-flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n:host .quark-loading-spinner {\n display: block;\n fill: currentcolor;\n overflow: hidden;\n width: 1em;\n height: 1em;\n margin: auto;\n color: #c8c9cc;\n}\n\n:host .quark-loading-text {\n text-indent: 2.13333vw;\n color: var(--loading-text-color, #969799);\n font-size: var(--loading-text-font-size, 3.73333vw);\n}\n\n:host([vertical]) .quark-loading-text {\n margin-left: 0;\n margin-top: 2.13333vw;\n text-indent: 0;\n}\n\n:host slot:empty .quark-loading-text {\n font-size: 0;\n margin: 0;\n}\n"})],St),Tt=function(t){return"function"==typeof t},Et=function(t){return null!==t&&"object"===h(t)},Bt=function(t){return Et(t)&&Tt(t.then)&&Tt(t.catch)},At=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.viewportWidth,o=void 0===n?375:n,r=parseFloat(t.toString());if(!Number.isNaN(r)){var i=r/o*100,a=i.toFixed(5)+"vw";return a}return t},Mt=function(t){return null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():{width:0,height:0}};function Dt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}var Ot=function(t){c(o,t);var e=Dt(o);function o(){var t;n(this,o);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t=e.call.apply(e,[this].concat(i)),y(a(t),"disabled",!1),y(a(t),"type",""),y(a(t),"icon",void 0),y(a(t),"loading",!1),y(a(t),"plain",!1),y(a(t),"light",!1),y(a(t),"slotRef",{current:null}),y(a(t),"renderIcon",(function(){return t.icon&&t.icon.startsWith("http")?Ct.h("img",{part:"img",class:"quark-button-icon",src:t.icon}):t.loading?Ct.h("quark-loading",{class:"quark-button-load",color:t.loadingcolor?t.loadingcolor:"#fff",size:t.loadingsize?At(t.loadingsize):At(20),type:t.loadtype?t.loadtype:"spinner"}):null})),t}return r(o,[{key:"componentDidMount",value:function(){var t=this;this.slotRef.current.addEventListener("click",(function(e){(t.disabled||t.loading)&&e.stopPropagation()})),this.slotRef.current.addEventListener("touchstart",(function(){}))}},{key:"render",value:function(){return Ct.h("div",{ref:this.slotRef,class:"quark-button",part:"root"},this.renderIcon(),Ct.h("slot",null))}}]),o}(Ct);b([wt({type:Boolean})],Ot.prototype,"disabled",void 0),b([wt()],Ot.prototype,"size",void 0),b([wt()],Ot.prototype,"type",void 0),b([wt()],Ot.prototype,"icon",void 0),b([wt()],Ot.prototype,"shape",void 0),b([wt({type:Boolean})],Ot.prototype,"loading",void 0),b([wt()],Ot.prototype,"loadtype",void 0),b([wt()],Ot.prototype,"loadingcolor",void 0),b([wt()],Ot.prototype,"loadingsize",void 0),b([wt({type:Boolean})],Ot.prototype,"plain",void 0),b([wt({type:Boolean})],Ot.prototype,"light",void 0);var _t=Ot=b([Rt({tag:"quark-button",style:':host {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n height: var(--button-height, 8.53333vw);\n line-height: var(--button-height, 8.53333vw);\n text-align: center;\n border-radius: var(--button-border-radius, 4.26667vw);\n padding-left: var(--button-hspacing, 3.2vw);\n padding-right: var(--button-hspacing, 3.2vw);\n cursor: pointer;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n:host .quark-button {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n border-radius: var(--button-border-radius, 4.26667vw);\n cursor: unset;\n -webkit-tap-highlight-color: transparent;\n}\n\n/* :host([shape="round"]) {\n border-radius: var(--button-height, 32px);\n} */\n\n:host(:not([size])) {\n font-size: var(--button-font-size, 3.73333vw);\n}\n\n:host([size="small"]) {\n height: var(--button-height, 6.4vw);\n line-height: var(--button-height, 6.4vw);\n font-size: var(--button-font-size, 3.2vw);\n}\n\n:host([size="big"]) {\n height: var(--button-height, 10.66667vw);\n line-height: var(--button-height, 10.66667vw);\n font-size: var(--button-font-size, 4.26667vw);\n border-radius: var(--button-big-border-radius, 2.13333vw);\n width: 100%;\n}\n\n:host([size="large"]) {\n height: var(--button-height, 12.8vw);\n line-height: var(--button-height, 12.8vw);\n font-size: var(--button-font-size, 4.8vw);\n border-radius: var(--button-big-border-radius, 2.13333vw);\n width: 100%;\n}\n\n:host([shape="square"]) {\n border-radius: 0;\n}\n\n:host(:not([type])) {\n color: var(--button-color, #5A6066);\n border: 1px solid #E1E6EB;\n}\n\n:host([type="primary"]) {\n color: var(--button-color, #fff);\n background: var(--quark-theme-color, #0088ff);\n}\n\n:host([type="warning"]) {\n color: var(--button-color, #fff);\n background: var(--quark-warning-color, #FB990F);\n}\n\n:host([type="danger"]) {\n color: var(--button-color, #fff);\n background: var(--quark-danger-color, #F72626);\n}\n\n:host([type="success"]) {\n color: var(--button-color, #fff);\n background: var(--quark-success-color, #07C160);\n}\n\n:host([plain]) {\n border: 1px solid;\n}\n\n:host([plain][type="primary"]) {\n color: var(--button-color, #0088ff);\n border-color: var(--quark-theme-color, #7FC3FF);\n background: var(--button-fill-base-color, transparent);\n}\n\n:host([plain][type="warning"]) {\n color: var(--button-color, #FB990F);\n border-color: var(--quark-warning-color, #FCCC87);\n background: var(--button-fill-base-color, transparent);\n}\n\n:host([plain][type="danger"]) {\n color: var(--button-color, #F72626);\n border-color: var(--quark-danger-color, #FB9292);\n background: var(--button-fill-base-color, transparent);\n}\n\n:host([plain][type="success"]) {\n color: var(--button-color, #07C160);\n border-color: var(--quark-success-color, #83E0AF);\n background: var(--button-fill-base-color, transparent);\n}\n\n:host([light]) {\n background: var(--quark-light-color, #E1E6EB);\n}\n\n:host([light][type="primary"]) {\n background: var(--quark-primary-light-color, #E6F4FF);\n color: var(--button-color, #0088ff);\n}\n\n:host([light][type="warning"]) {\n background: var(--quark-warning-light-color, #FEF4E7);\n color: var(--button-color, #FB990F);\n}\n\n:host([light][type="danger"]) {\n background: var(--quark-danger-light-color, #FEE9E9);\n color: var(--button-color, #F72626);\n}\n\n:host([light][type="success"]) {\n background: var(--quark-success-light-color, #E6F8EF);\n color: var(--button-color, #07C160);\n}\n\n:host([loading]) {\n cursor: not-allowed;\n user-select: none;\n}\n\n:host([disabled]) {\n cursor: not-allowed;\n /* opacity: 0.68; */\n user-select: none;\n color: #BCC4CC;\n}\n\n:host([disabled][type]) {\n background: #D3DAE0;\n color: #fff;\n}\n\n:host(:active) .quark-button::before {\n opacity: 0.05;\n}\n\n:host([disabled]) .quark-button::before,\n:host([loading]) .quark-button::before {\n display: none;\n}\n\n:host .quark-button::before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 100%;\n background-color: #000;\n border: inherit;\n border-color: #000;\n border-radius: inherit;\n transform: translate(-50%, -50%);\n opacity: 0;\n content: "";\n}\n\n.quark-button:not([disabled]):active::after {\n transform: translate(-50%, -50%) scale(0);\n opacity: 0.05;\n transition: 0s;\n}\n\n:host .quark-button-load {\n margin-right: var(--button-icon-hspacing, 1.6vw);\n}\n\n:host .quark-button-icon {\n width: var(--button-icon-size, 1em);\n height: auto;\n margin-right: var(--button-icon-hspacing, 1.33333vw);\n}'})],Ot);function Ft(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}var Lt=function(t){c(o,t);var e=Ft(o);function o(){return n(this,o),e.apply(this,arguments)}return r(o,[{key:"render",value:function(){return Ct.h("svg",{class:"quark-icon-svg","aria-hidden":"true",viewBox:"0 0 1024 1024",part:"root"})}}]),o}(Ct),It=Lt=b([Rt({tag:"quark-icon",style:":host {\n font-size: inherit;\n display: inline-block;\n transition: 0.3s;\n}\n\n:host .quark-icon-svg {\n display: block;\n width: 1em;\n height: 1em;\n margin: auto;\n fill: currentColor;\n overflow: hidden;\n}\n"})],Lt);function jt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xt,Nt={exports:{}};(Xt=Nt).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Xt.exports.__esModule=!0,Xt.exports.default=Xt.exports;var Yt=jt(Nt.exports),Ht={exports:{}};!function(t){function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}t.exports=function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ht);var Wt=jt(Ht.exports),Vt={exports:{}},Ut={exports:{}};!function(t){function e(n,o){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Ut),function(t){var e=Ut.exports;t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}(Vt);var $t=jt(Vt.exports),Kt={exports:{}},Qt={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==k(Symbol.iterator)?function(t){return k(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":k(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Qt);var Gt={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(Gt),function(t){var e=Qt.exports.default,n=Gt.exports;t.exports=function(t,o){if(o&&("object"===e(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Kt);var Zt=jt(Kt.exports),Jt={exports:{}};!function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(Jt);var te=jt(Jt.exports),ee={exports:{}},ne={exports:{}};!function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports}(ne);var oe={exports:{}},re={exports:{}};!function(t){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports}(re),function(t){var e=Ut.exports,n=re.exports;function o(r,i,a){return n()?(t.exports=o=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,n,o){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(t,r));return o&&e(i,o.prototype),i},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(oe),function(t){var e=Jt.exports,n=Ut.exports,o=ne.exports,r=oe.exports;function i(a){var s="function"==typeof Map?new Map:void 0;return t.exports=i=function(t){if(null===t||!o(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==s){if(s.has(t))return s.get(t);s.set(t,i)}function i(){return r(t,arguments,e(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n(i,t)},t.exports.__esModule=!0,t.exports.default=t.exports,i(a)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}(ee);var ie=jt(ee.exports),ae=":host {\n font-size: inherit;\n display: inline-block;\n transition: 0.3s;\n}\n\n:host .icon {\n display: block;\n width: 1em;\n height: 1em;\n margin: auto;\n fill: currentColor;\n overflow: hidden;\n}\n";function se(t){return t&&/\d(px|rem|em|vh|vw)$/.test(t)?t:"".concat(t,"px")}var le=function(t){$t(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=te(t);if(e){var r=te(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Zt(this,n)}}(n);function n(){var t;return Yt(this,n),(t=e.call(this)).attachShadow({mode:"open"}).innerHTML="\n <style>\n ".concat(ae,'\n </style>\n <svg class="icon" id="icon" aria-hidden="true" viewBox="0 0 1024 1024">\n ').concat('<path d="M512 51.2c254.4896 0 460.8 206.3104 460.8 460.8s-206.3104 460.8-460.8 460.8S51.2 766.4896 51.2 512 257.5104 51.2 512 51.2z m0 40.96C280.1408 92.16 92.16 280.1408 92.16 512c0 231.8592 187.9808 419.84 419.84 419.84 231.8592 0 419.84-187.9808 419.84-419.84 0-231.8592-187.9808-419.84-419.84-419.84z" fill="#FFFFFF" fill-opacity=".8" p-id="3308"></path><path d="M321.8688 490.6752a27.6224 27.6224 0 0 1 39.0656 0l121.6512 121.6768 217.856-217.8304a27.6224 27.6224 0 0 1 39.0656 39.0656l-237.0048 237.0048a27.6224 27.6224 0 0 1-39.424 0.3584l-141.2096-141.2096a27.6224 27.6224 0 0 1 0-39.0656z" fill="#FFFFFF" p-id="3309"></path>',"\n </svg>\n "),t.icon=t.shadowRoot.getElementById("icon"),t}return Wt(n,[{key:"connectedCallback",value:function(){this.upgradeProperty()}},{key:"attributeChangedCallback",value:function(t,e,n){if("color"===t)this.icon.style.color=n;else if("size"===t){var o=this.getFontSize();this.icon.style.fontSize="".concat(o)}}},{key:"upgradeProperty",value:function(){this.size=this.size,this.color=this.color}},{key:"getFontSize",value:function(){return se(this.size)}},{key:"size",get:function(){return this.getAttribute("size")},set:function(t){this.setAttribute("size",t)}},{key:"color",get:function(){return this.getAttribute("color")},set:function(t){this.setAttribute("color",t)}}],[{key:"observedAttributes",get:function(){return["size","color"]}}]),n}(ie(HTMLElement));customElements.get("quark-icon-whitesuccess-o")||customElements.define("quark-icon-whitesuccess-o",le);var ce=function(t){$t(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=te(t);if(e){var r=te(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Zt(this,n)}}(n);function n(){var t;return Yt(this,n),(t=e.call(this)).attachShadow({mode:"open"}).innerHTML="\n <style>\n ".concat(ae,'\n </style>\n <svg class="icon" id="icon" aria-hidden="true" viewBox="0 0 1024 1024">\n ').concat('<path d="M512 51.2c254.4896 0 460.8 206.3104 460.8 460.8s-206.3104 460.8-460.8 460.8S51.2 766.4896 51.2 512 257.5104 51.2 512 51.2z m0 40.96C280.1152 92.16 92.16 280.1152 92.16 512S280.1408 931.84 512 931.84c231.8848 0 419.84-187.9552 419.84-419.84 0-231.8592-187.9552-419.84-419.84-419.84z" fill="#FFFFFF" fill-opacity=".8" p-id="5693"></path><path d="M363.4688 363.4688a30.6432 30.6432 0 0 1 43.3152 0l105.216 105.216 105.216-105.216a30.6432 30.6432 0 1 1 43.3152 43.3152L555.3152 512l105.216 105.216a30.6432 30.6432 0 1 1-43.3152 43.3152L512 555.3152l-105.216 105.216a30.6432 30.6432 0 1 1-43.3152-43.3152L468.6592 512l-105.1904-105.216a30.6432 30.6432 0 0 1 0-43.3152z" fill="#FFFFFF" p-id="5694"></path>',"\n </svg>\n "),t.icon=t.shadowRoot.getElementById("icon"),t}return Wt(n,[{key:"connectedCallback",value:function(){this.upgradeProperty()}},{key:"attributeChangedCallback",value:function(t,e,n){if("color"===t)this.icon.style.color=n;else if("size"===t){var o=this.getFontSize();this.icon.style.fontSize="".concat(o)}}},{key:"upgradeProperty",value:function(){this.size=this.size,this.color=this.color}},{key:"getFontSize",value:function(){return se(this.size)}},{key:"size",get:function(){return this.getAttribute("size")},set:function(t){this.setAttribute("size",t)}},{key:"color",get:function(){return this.getAttribute("color")},set:function(t){this.setAttribute("color",t)}}],[{key:"observedAttributes",get:function(){return["size","color"]}}]),n}(ie(HTMLElement));customElements.get("quark-icon-whiteerror-o")||customElements.define("quark-icon-whiteerror-o",ce);var ue=function(t){$t(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=te(t);if(e){var r=te(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Zt(this,n)}}(n);function n(){var t;return Yt(this,n),(t=e.call(this)).attachShadow({mode:"open"}).innerHTML="\n <style>\n ".concat(ae,'\n </style>\n <svg class="icon" id="icon" aria-hidden="true" viewBox="0 0 1024 1024">\n ').concat('<path d="M512 51.2c254.4896 0 460.8 206.3104 460.8 460.8s-206.3104 460.8-460.8 460.8S51.2 766.4896 51.2 512 257.5104 51.2 512 51.2z m0 40.96C280.1408 92.16 92.16 280.1408 92.16 512c0 231.8592 187.9808 419.84 419.84 419.84 231.8592 0 419.84-187.9808 419.84-419.84 0-231.8592-187.9808-419.84-419.84-419.84z" fill="#FFFFFF" fill-opacity=".8" p-id="3908"></path><path d="M512 298.6752c15.7184 0 28.4416 12.7232 28.4416 28.416v227.584a28.4416 28.4416 0 0 1-56.8832 0v-227.584c0-15.6928 12.7232-28.416 28.4416-28.416z m0 426.6496A42.6752 42.6752 0 1 0 512 640a42.6752 42.6752 0 0 0 0 85.3248z" fill="#FFFFFF" p-id="3909"></path>',"\n </svg>\n "),t.icon=t.shadowRoot.getElementById("icon"),t}return Wt(n,[{key:"connectedCallback",value:function(){this.upgradeProperty()}},{key:"attributeChangedCallback",value:function(t,e,n){if("color"===t)this.icon.style.color=n;else if("size"===t){var o=this.getFontSize();this.icon.style.fontSize="".concat(o)}}},{key:"upgradeProperty",value:function(){this.size=this.size,this.color=this.color}},{key:"getFontSize",value:function(){return se(this.size)}},{key:"size",get:function(){return this.getAttribute("size")},set:function(t){this.setAttribute("size",t)}},{key:"color",get:function(){return this.getAttribute("color")},set:function(t){this.setAttribute("color",t)}}],[{key:"observedAttributes",get:function(){return["size","color"]}}]),n}(ie(HTMLElement));customElements.get("quark-icon-whitewarning-o")||customElements.define("quark-icon-whitewarning-o",ue);var pe=!1;if("undefined"!=typeof window){var he={get passive(){pe=!0}};window.addEventListener("testPassive",null,he),window.removeEventListener("testPassive",null,he)}var de="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),fe=[],ve=!1,ge=-1,ye=void 0,me=void 0,ke=function(t){return fe.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},be=function(t){var e=t||window.event;return!!ke(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},we=function(){void 0!==me&&(document.body.style.paddingRight=me,me=void 0),void 0!==ye&&(document.body.style.overflow=ye,ye=void 0)},xe=function(