p-elements-core 2.1.2 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- /*! P-ELEMENTS 2.1.2 - Sun Feb 15 2026 10:18:41 GMT+0100 (Central European Standard Time) */var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};!function(){const{keys:e}=Object,t=!0,r=!1,n="querySelectorAll",o="querySelectorAll",{document:i,Element:a,MutationObserver:s,Set:l,WeakMap:c}=self,u=e=>o in e,{filter:d}=[];var f=e=>{const f=new c,p=(t,r)=>{let n;if(r)for(let o,i=(e=>e.matches||e.webkitMatchesSelector||e.msMatchesSelector)(t),a=0,{length:s}=m;a<s;a++)i.call(t,o=m[a])&&(f.has(t)||f.set(t,new l),n=f.get(t),n.has(o)||(n.add(o),e.handle(t,r,o)));else f.has(t)&&(n=f.get(t),f.delete(t),n.forEach(n=>{e.handle(t,r,n)}))},h=(e,t=!0)=>{for(let r=0,{length:n}=e;r<n;r++)p(e[r],t)},{query:m}=e,y=e.root||i,v=((e,o=document,i=MutationObserver,a=["*"])=>{const s=(r,o,i,a,l,c)=>{for(const u of r)(c||n in u)&&(l?i.has(u)||(i.add(u),a.delete(u),e(u,l)):a.has(u)||(a.add(u),i.delete(u),e(u,l)),c||s(u[n](o),o,i,a,l,t))},l=new i(e=>{if(a.length){const n=a.join(","),o=new Set,i=new Set;for(const{addedNodes:a,removedNodes:l}of e)s(l,n,o,i,r,r),s(a,n,o,i,t,r)}}),{observe:c}=l;return(l.observe=e=>c.call(l,e,{subtree:t,childList:t}))(o),l})(p,y,s,m),{attachShadow:b}=a.prototype;return b&&(a.prototype.attachShadow=function(e){const t=b.call(this,e);return v.observe(t),t}),m.length&&h(y[o](m)),{drop:e=>{for(let t=0,{length:r}=e;t<r;t++)f.delete(e[t])},flush:()=>{const e=v.takeRecords();for(let t=0,{length:r}=e;t<r;t++)h(d.call(e[t].removedNodes,u),!1),h(d.call(e[t].addedNodes,u),!0)},observer:v,parse:h}};const{customElements:p,document:h,Element:m,MutationObserver:y,Object:v,Promise:b,Map:g,Set:w,WeakMap:S,Reflect:E}=self,{createElement:A}=h,{define:k,get:O,upgrade:M}=p,{construct:N}=E||{construct(e){return e.call(this)}},{defineProperty:C,getOwnPropertyNames:j,setPrototypeOf:T}=v,x=new S,I=new w,P=new g,L=new g,R=new g,F=new g,V=[],W=[],D=e=>F.get(e)||O.call(p,e),{parse:q}=f({query:W,handle:(t,r,n)=>{const o=R.get(n);if(r&&!o.isPrototypeOf(t)){const r=(t=>{const r=e(t),n=[],o=new Set,{length:i}=r;for(let e=0;e<i;e++){n[e]=t[r[e]];try{delete t[r[e]]}catch(t){o.add(e)}}return()=>{for(let e=0;e<i;e++)o.has(e)||(t[r[e]]=n[e])}})(t);U=T(t,o);try{new o.constructor}finally{U=null,r()}}const i=(r?"":"dis")+"connectedCallback";i in o&&t[i]()}}),{parse:H}=f({query:V,handle(e,t){x.has(e)&&(t?I.add(e):I.delete(e),W.length&&z.call(W,e))}}),{attachShadow:$}=m.prototype;$&&(m.prototype.attachShadow=function(e){const t=$.call(this,e);return x.set(this,t),t});const _=e=>{if(!L.has(e)){let t,r=new b(e=>{t=e});L.set(e,{$:r,_:t})}return L.get(e).$},B=((e,t)=>{const r=e=>{for(let t=0,{length:r}=e;t<r;t++)n(e[t])},n=({target:e,attributeName:t,oldValue:r})=>{e.attributeChangedCallback(t,r,e.getAttribute(t))};return(o,i)=>{const{observedAttributes:a}=o.constructor;return a&&e(i).then(()=>{new t(r).observe(o,{attributes:!0,attributeOldValue:!0,attributeFilter:a});for(let e=0,{length:t}=a;e<t;e++)o.hasAttribute(a[e])&&n({target:o,attributeName:a[e],oldValue:null})}),o}})(_,y);let U=null;function z(e){const t=x.get(e);q(t.querySelectorAll(this),e.isConnected)}j(self).filter(e=>/^HTML.*Element$/.test(e)).forEach(e=>{const t=self[e];function r(){const{constructor:e}=this;if(!P.has(e))throw new TypeError("Illegal constructor");const{is:r,tag:n}=P.get(e);if(r){if(U)return B(U,r);const t=A.call(h,n);return t.setAttribute("is",r),B(T(t,e.prototype),r)}return N.call(this,t,[],e)}T(r,t),C(r.prototype=t.prototype,"constructor",{value:r}),C(self,e,{value:r})}),h.createElement=function(e,t){const r=t&&t.is;if(r){const t=F.get(r);if(t&&P.get(t).tag===e)return new t}const n=A.call(h,e);return r&&n.setAttribute("is",r),n},p.get=D,p.whenDefined=_,p.upgrade=function(e){const t=e.getAttribute("is");if(t){const r=F.get(t);if(r)return void B(T(e,r.prototype),t)}M.call(p,e)},p.define=function(e,t,r){if(D(e))throw new Error(`'${e}' has already been defined as a custom element`);let n;const o=r&&r.extends;P.set(t,o?{is:e,tag:o}:{is:"",tag:e}),o?(n=`${o}[is="${e}"]`,R.set(n,t.prototype),F.set(e,t),W.push(n)):(k.apply(p,arguments),V.push(n=e)),_(e).then(()=>{o?(q(h.querySelectorAll(n)),I.forEach(z,[n])):H(h.querySelectorAll(n))}),L.get(e)._(t)}}(),function(){const e=new WeakMap,t=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,h=new WeakMap,m=(e,t,r)=>{e.getAttribute(t)!==r&&e.setAttribute(t,r)},y=(e,t)=>{e.toggleAttribute("internals-disabled",t),t?m(e,"aria-disabled","true"):e.removeAttribute("aria-disabled"),e.formDisabledCallback&&e.formDisabledCallback.apply(e,[t])},v=e=>{r.get(e).forEach(e=>{e.remove()}),r.set(e,[])},b=(e,t)=>{const n=document.createElement("input");return n.type="hidden",n.name=e.getAttribute("name"),e.after(n),r.get(t).push(n),n},g=(e,t)=>{if(t.length){const r=Array.from(t);r.forEach(t=>t.addEventListener("click",e.click.bind(e)));const[n]=r;let o=n.id;n.id||(o=`${n.htmlFor}_Label`,n.id=o),m(e,"aria-labelledby",o)}},w=e=>{const t=Array.from(e.elements).filter(e=>!e.tagName.includes("-")&&e.validity).map(e=>e.validity.valid),r=s.get(e)||[],o=[...t,...Array.from(r).filter(e=>e.isConnected).map(e=>n.get(e).validity.valid)].includes(!1);e.toggleAttribute("internals-invalid",o),e.toggleAttribute("internals-valid",!o)},S=e=>{w(O(e.target))},E=e=>{w(O(e.target))},A=e=>{const t=s.get(e.target);t&&t.size&&t.forEach(e=>{e.constructor.formAssociated&&e.formResetCallback&&e.formResetCallback.apply(e)})},k=(e,t,r)=>{if(t){const o=s.get(t);if(o)o.add(e);else{const r=new Set;r.add(e),s.set(t,r),(e=>{const t=["button[type=submit]","input[type=submit]","button:not([type])"].map(e=>`${e}:not([disabled])`).map(t=>`${t}:not([form])${e.id?`,${t}[form='${e.id}']`:""}`).join(",");e.addEventListener("click",r=>{if(r.target.closest(t)){const t=s.get(e);if(e.noValidate)return;t.size&&Array.from(t).reverse().map(e=>n.get(e).reportValidity()).includes(!1)&&r.preventDefault()}})})(t),t.addEventListener("reset",A),t.addEventListener("input",S),t.addEventListener("change",E)}i.set(t,{ref:e,internals:r}),e.constructor.formAssociated&&e.formAssociatedCallback&&setTimeout(()=>{e.formAssociatedCallback.apply(e,[t])},0),w(t)}},O=e=>{let t=e.parentNode;return t&&"FORM"!==t.tagName&&(t=O(t)),t},M=(e,t,r=DOMException)=>{if(!e.constructor.formAssociated)throw new r(t)},N=(e,t,r)=>{const o=s.get(e);return o&&o.size&&o.forEach(e=>{n.get(e)[r]()||(t=!1)}),t},C=e=>{let t=!1;if(e.constructor.formAssociated){let r=n.get(e);void 0===r&&(e.attachInternals(),r=n.get(e),t=!0);const{labels:o,form:i}=r;g(e,o),k(e,i,r)}return t};function j(){return"undefined"!=typeof MutationObserver}const T={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBrailleLabel:"aria-braillelabel",ariaBrailleRoleDescription:"aria-brailleroledescription",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function x(e){const t=n.get(e),{form:r}=t;k(e,r,t),g(e,t.labels)}const I=(e,t=!1)=>{const r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return n.has(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let o=r.nextNode();const i=!t||e.disabled;for(;o;)o.formDisabledCallback&&i&&y(o,e.disabled),o=r.nextNode()},P={attributes:!0,attributeFilter:["disabled","name"]},L=j()?new MutationObserver(e=>{for(const t of e){const e=t.target;if("disabled"===t.attributeName&&(e.constructor.formAssociated?y(e,e.hasAttribute("disabled")):"fieldset"===e.localName&&I(e)),"name"===t.attributeName&&e.constructor.formAssociated){const t=n.get(e),r=l.get(e);t.setFormValue(r)}}}):{};function R(e){e.forEach(e=>{const{addedNodes:t,removedNodes:o}=e,i=Array.from(t),l=Array.from(o);i.forEach(e=>{if(n.has(e)&&e.constructor.formAssociated&&x(e),c.has(e)){const t=c.get(e);Object.keys(T).filter(e=>null!==t[e]).forEach(r=>{m(e,T[r],t[r])}),c.delete(e)}if(h.has(e)){const t=h.get(e);m(e,"internals-valid",t.validity.valid.toString()),m(e,"internals-invalid",(!t.validity.valid).toString()),m(e,"aria-invalid",(!t.validity.valid).toString()),h.delete(e)}if("form"===e.localName){const t=s.get(e),r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return!n.has(e)||!e.constructor.formAssociated||t&&t.has(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});let o=r.nextNode();for(;o;)x(o),o=r.nextNode()}"fieldset"===e.localName&&(L.observe?.(e,P),I(e,!0))}),l.forEach(e=>{const t=n.get(e);if(t&&r.get(t)&&v(t),a.has(e)){a.get(e).disconnect()}})})}function F(e){e.forEach(e=>{const{removedNodes:t}=e;t.forEach(t=>{const r=f.get(e.target);n.has(t)&&C(t),r.disconnect()})})}j()&&new MutationObserver(R);const V={childList:!0,subtree:!0};class W{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const D=e=>{let t=!0;for(let r in e)"valid"!==r&&!1!==e[r]&&(t=!1);return t},q=new WeakMap;function H(e,t){e.toggleAttribute(t,!0),e.part&&e.part.add(t)}class $ extends Set{static get isPolyfilled(){return!0}constructor(e){if(super(),!e||!e.tagName||-1===e.tagName.indexOf("-"))throw new TypeError("Illegal constructor");q.set(this,e)}add(e){if(!/^--/.test(e)||"string"!=typeof e)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${e} must start with '--'.`);const t=super.add(e),r=q.get(this),n=`state${e}`;return r.isConnected?H(r,n):setTimeout(()=>{H(r,n)}),t}clear(){for(let[e]of this.entries())this.delete(e);super.clear()}delete(e){const t=super.delete(e),r=q.get(this);return r.isConnected?(r.toggleAttribute(`state${e}`,!1),r.part&&r.part.remove(`state${e}`)):setTimeout(()=>{r.toggleAttribute(`state${e}`,!1),r.part&&r.part.remove(`state${e}`)}),t}}var _,B=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},U=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class z{constructor(e){_.set(this,void 0),B(this,_,e,"f");for(let t=0;t<e.length;t++){let r=e[t];this[t]=r,r.hasAttribute("name")&&(this[r.getAttribute("name")]=r)}Object.freeze(this)}get length(){return U(this,_,"f").length}[(_=new WeakMap,Symbol.iterator)](){return U(this,_,"f")[Symbol.iterator]()}item(e){return null==this[e]?null:this[e]}namedItem(e){return null==this[e]?null:this[e]}}class K{static get isPolyfilled(){return!0}constructor(o){if(!o||!o.tagName||-1===o.tagName.indexOf("-"))throw new TypeError("Illegal constructor");const i=o.getRootNode(),a=new W;this.states=new $(o),e.set(this,o),t.set(this,a),n.set(o,this),((e,t)=>{for(let r in T){t[r]=null;let n=null;const o=T[r];Object.defineProperty(t,r,{get(){return n},set(r){n=r,e.isConnected?m(e,o,r):c.set(e,t)}})}})(o,this),((e,t)=>{r.set(t,[]),L.observe?.(e,P)})(o,this),Object.seal(this),i instanceof DocumentFragment&&(e=>{const t=new MutationObserver(F);window?.ShadyDOM?.inUse&&e.mode&&e.host&&(e=e.host),t.observe?.(e,{childList:!0}),f.set(e,t)})(i)}checkValidity(){const r=e.get(this);if(M(r,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const n=t.get(this);if(!n.valid){const e=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});r.dispatchEvent(e)}return n.valid}get form(){const t=e.get(this);let r;return M(t,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===t.constructor.formAssociated&&(r=O(t)),r}get labels(){const t=e.get(this);M(t,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const r=t.getAttribute("id"),n=t.getRootNode();return n&&r?n.querySelectorAll(`[for="${r}"]`):[]}reportValidity(){const t=e.get(this);if(M(t,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const r=this.checkValidity(),n=d.get(this);if(n&&!t.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!r&&n&&(t.focus(),n.focus()),r}setFormValue(t){const r=e.get(this);if(M(r,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),v(this),null==t||t instanceof FormData)null!=t&&t instanceof FormData&&Array.from(t).reverse().forEach(([e,t])=>{if("string"==typeof t){const n=b(r,this);n.name=e,n.value=t}});else if(r.getAttribute("name")){b(r,this).value=t}l.set(r,t)}setValidity(r,n,i){const a=e.get(this);if(M(a,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!r)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");d.set(this,i);const s=t.get(this),l={};for(const e in r)l[e]=r[e];var c;0===Object.keys(l).length&&((c=s).badInput=!1,c.customError=!1,c.patternMismatch=!1,c.rangeOverflow=!1,c.rangeUnderflow=!1,c.stepMismatch=!1,c.tooLong=!1,c.tooShort=!1,c.typeMismatch=!1,c.valid=!0,c.valueMissing=!1);const u={...s,...l};delete u.valid;const{valid:f}=((e,t,r)=>(e.valid=D(t),Object.keys(t).forEach(r=>e[r]=t[r]),r&&w(r),e))(s,u,this.form);if(!f&&!n)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");o.set(this,f?"":n),a.isConnected?(a.toggleAttribute("internals-invalid",!f),a.toggleAttribute("internals-valid",f),m(a,"aria-invalid",`${!f}`)):h.set(a,this)}get shadowRoot(){const t=e.get(this),r=u.get(t);return r||null}get validationMessage(){const t=e.get(this);return M(t,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),o.get(this)}get validity(){const r=e.get(this);M(r,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element.");return t.get(this)}get willValidate(){const t=e.get(this);return M(t,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(t.matches(":disabled")||t.disabled||t.hasAttribute("disabled")||t.hasAttribute("readonly"))}}let J=!1,Z=!1;function G(e){Z||(Z=!0,window.CustomStateSet=$,e&&(HTMLElement.prototype.attachInternals=function(...t){const r=e.call(this,t);return r.states=new $(this),r}))}!!customElements.polyfillWrapFlushCallback||(function(){if("undefined"==typeof window||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class e extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const t=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(t,e);const r=new e;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(e=>e in r.internals)}()?"undefined"==typeof window||window.CustomStateSet||G(HTMLElement.prototype.attachInternals):function(e=!0){let t=!1;if(!J){if(J=!0,"undefined"!=typeof window&&(window.ElementInternals=K),"undefined"!=typeof CustomElementRegistry){const r=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(e,n,o){if(n.formAssociated){const e=n.prototype.connectedCallback;n.prototype.connectedCallback=function(){p.has(this)||(p.set(this,!0),this.hasAttribute("disabled")&&y(this,!0)),null!=e&&e.apply(this),t=C(this)}}r.call(this,e,n,o)}}if("undefined"!=typeof HTMLElement&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(n.has(this)&&!t)throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new K(this)}),"undefined"!=typeof Element){function o(...e){const t=i.apply(this,e);if(u.set(this,t),j()){const e=new MutationObserver(R);window.ShadyDOM?e.observe(this,V):e.observe(t,V),a.set(this,e)}return t}const i=Element.prototype.attachShadow;Element.prototype.attachShadow=o}j()&&"undefined"!=typeof document&&new MutationObserver(R).observe(document.documentElement,V),"undefined"!=typeof HTMLFormElement&&function(){const e=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...t){let r=e.apply(this,t);return N(this,r,"checkValidity")};const t=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...e){let r=t.apply(this,e);return N(this,r,"reportValidity")};const{get:r}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...e){const t=r.call(this,...e),n=Array.from(s.get(this)||[]);if(0===n.length)return t;const o=Array.from(t).concat(n).sort((e,t)=>e.compareDocumentPosition?2&e.compareDocumentPosition(t)?1:-1:0);return new z(o)}})}(),(e||"undefined"!=typeof window&&!window.CustomStateSet)&&G()}}(!1))}(),function(){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}e.d(t,{K9:function(){return Q},y0:function(){return o},Wd:function(){return ue},zG:function(){return Ke},oI:function(){return n},h:function(){return Je},MZ:function(){return h},vi:function(){return m},P:function(){return i},kf:function(){return Ze}});var n=function(e,t,n){var o=n.value;if("function"!=typeof o)throw new Error("@bind decorator can only be applied to methods not: ".concat(r(o)));var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var r=o.bind(this);return i=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){o=e,delete this[t]}}),i=!1,r},set:function(e){o=e}}},o=function(e){return function(t){customElements.get(e.tagName)?console.warn("Custom element with tag name ".concat(e.tagName," already exists.")):customElements.define(e.tagName,t,e.options)}},i=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(r,n){Object.defineProperty(r,n,{get:function(){return t?this.shadowRoot.querySelector(e):this.querySelector(e)}})}};function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=new WeakSet,d=new WeakMap,f=new WeakMap;function p(e,t,r,n,o){n===Boolean?r?e.setAttribute(t,""):e.removeAttribute(t):n===Object||n===Array?o&&o.toAttribute?e.setAttribute(t,o.toAttribute(r)):e.setAttribute(t,JSON.stringify(r)):null==r?e.removeAttribute(t):e.setAttribute(t,String(r))}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=e.attribute,n=void 0===r||r,o=e.reflect,i=void 0!==o&&o,a=e.converter,l=e.readonly,h=void 0!==l&&l,m=function(e){if("string"==typeof e)switch(e){case"string":return String;case"number":return Number;case"boolean":return Boolean;case"object":return Object;case"array":return Array;default:return null}return e}(t);return function(t,r){var o=new WeakMap,l=function(e,t){if(!1!==t)return!0===t?e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():"string"==typeof t?t:void 0}(r,n);Object.defineProperty(t,r,{get:function(){if(!o.has(this)&&l&&this.hasAttribute&&this.hasAttribute(l)){var e,t=this.getAttribute(l);if(null!==t)return e=a&&a.fromAttribute?a.fromAttribute(t):m===Boolean||(m===Number?Number(t):t),o.set(this,e),"function"==typeof this.renderNow&&this.renderNow(),e}return o.has(this)?o.get(this):m!==Boolean&&void 0},set:function(e){if(!h||!o.has(this)){var t,n=o.get(this),s=!1;if(null==m&&e!==n&&(s=!0),!o.has(this)&&l&&this.hasAttribute&&this.hasAttribute(l)){var y=this.getAttribute(l);if(null!==y)return t=a&&a.fromAttribute?a.fromAttribute(y):m===Boolean||(m===Number?Number(y):y),o.set(this,t),void(this.isConnected?("function"==typeof this.renderNow&&this.renderNow(),this.updated&&this.updated(r,n,t)):this.updated&&(f.has(this)||f.set(this,[]),f.get(this).push({propertyKey:r,oldValue:n,newValue:t})))}if(t=s?e:function(e,t,r){if(r&&r.fromAttribute&&"string"==typeof e)return r.fromAttribute(e);if(null==e)return e;switch(t){case String:return String(e);case Number:return Number(e);case Boolean:return Boolean(e);case Object:return"object"===c(e)?e:JSON.parse(String(e));case Array:return Array.isArray(e)?e:JSON.parse(String(e));default:return e}}(e,m,a),n!==t){var v=!this.shouldUpdate||this.shouldUpdate(r,n,t);if(o.set(this,v?t:n),i&&void 0!==l)if(this.isConnected){u.add(this);try{p(this,l,v?t:n,m,a)}finally{u.delete(this)}}else d.has(this)||d.set(this,new Map),d.get(this).set(l,{value:v?t:n,type:m,converter:a});this.isConnected?("function"==typeof this.renderNow&&this.renderNow(),this.updated&&this.updated(r,n,t)):this.updated&&(f.has(this)||f.set(this,[]),f.get(this).push({propertyKey:r,oldValue:n,newValue:t})),s&&"function"==typeof this.renderNow&&this.renderNow()}}},configurable:!0}),t.constructor._propertyInfo||(t.constructor._propertyInfo=new Map),t.constructor._propertyInfo.set(r,s(s({},e),{},{name:r,attribute:l,type:m})),l&&(t.constructor.observedAttributes||(t.constructor.observedAttributes=[]),t.constructor.observedAttributes.includes(l)||t.constructor.observedAttributes.push(l))}}var m=h({});function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var b="adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype,g=new WeakMap;function w(e,t,r){if(r){var n=g.get(e);n||(n=new Map,g.set(e,n));var o=n.get(r);if(o)return o.count+=1,o.item}if(b){var i=new CSSStyleSheet;if(i.replaceSync(t),r)i.metadata={key:r},g.get(e).set(r,{count:1,item:i});return e.adoptedStyleSheets=[].concat(y(e.adoptedStyleSheets),[i]),i}if(r){var a=e.querySelector('style[data-key="'.concat(r,'"], link[data-key="').concat(r,'"]'));if(a)return g.get(e).set(r,{count:1,item:a}),a}var s,l,c=null!==(s=null===(l=document.querySelector("html"))||void 0===l?void 0:l.getAttribute("data-nonce"))&&void 0!==s?s:null,u=c?function(e,t){var r=document.createElement("style");r.textContent=e,t&&r.setAttribute("nonce",t);return r}(t,c):function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href="data:text/css;base64,".concat(btoa(e)),t}(t);r&&(u.setAttribute("data-key",r),g.get(e).set(r,{count:1,item:u}));return e instanceof ShadowRoot?e.appendChild(u):(document.head||document.documentElement).appendChild(u),u}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function k(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),Object.defineProperty(e,O(n.key),n)}}function O(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}function M(e,t){if(t&&("object"==A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function N(e){var t="function"==typeof Map?new Map:void 0;return N=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("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 function(e,t,r){if(C())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&j(o,r.prototype),o}(e,arguments,T(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),j(r,e)},N(e)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function x(e,t,r){I(e,t),t.set(e,r)}function I(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P(e,t){return e.get(R(e,t))}function L(e,t,r){return e.set(R(e,t),r),r}function R(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var F=new WeakMap,V=new WeakMap,W=new WeakMap,D=new WeakMap,q=new WeakMap,H=new WeakMap,$=new WeakMap,_=new WeakMap,B=new WeakMap,U=new WeakMap,z=new WeakMap,K=new WeakMap,J=new WeakMap,Z=new WeakMap,G=new WeakMap,Y=new WeakSet,Q=function(e){function t(e){var r,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=T(o=t),function(e,t){I(e,t),t.add(e)}(r=M(n,C()?Reflect.construct(o,i||[],T(n).constructor):o.apply(n,i)),Y),x(r,F,void 0),x(r,V,void 0),x(r,W,!1),x(r,D,void 0),x(r,q,null),x(r,H,!1),x(r,$,!1),x(r,_,!0),x(r,B,!0),x(r,U,null),x(r,z,null),x(r,K,void 0),x(r,J,[]),x(r,Z,null),x(r,G,null);var a=function(e){console.warn("ElementInternals.".concat(e," called before element was connected. Call will be ignored."))};return L(K,r,{setValidity:function(e,t,r){a("setValidity")},reportValidity:function(){return a("reportValidity"),!1},checkValidity:function(){return a("checkValidity"),!0},setFormValue:function(e,t){a("setFormValue")}}),R(Y,r,re).call(r),R(Y,r,X).call(r),M(r,e)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),r=t,o=[{key:"addStyleSheetToRoot",value:function(e,t,r){return w(e,t,r)}}],(n=[{key:"isConnected",get:function(){return P(W,this)}},{key:"updateComplete",get:function(){return P(Z,this)?P(Z,this):Promise.resolve()}},{key:"internals",get:function(){if(!P(W,this)&&"object"===A(P(K,this)))return P(K,this);var e=this.constructor;if(null===P(z,this)&&e.formAssociated){var t=P(K,this);for(var r in L(K,this,null),L(z,this,this.attachInternals()),t)"function"!=typeof P(z,this)[r]&&(P(z,this)[r]=t[r])}return P(z,this)},set:function(e){L(z,this,e)}},{key:"requestUpdate",value:function(){var e=this;return P(Z,this)||(L(Z,this,new Promise(function(t){L(G,e,t)})),this.scheduleRender()),P(Z,this)}},{key:"addController",value:function(e){P(J,this).push(e),P(W,this)&&e.connected&&e.connected()}},{key:"scheduleRender",value:function(){var e;null===(e=P(F,this))||void 0===e||e.scheduleRender()}},{key:"renderNow",value:function(){var e,t=this;if((!P(H,this)||this.shadowRoot)&&(P(Z,this)||L(Z,this,new Promise(function(e){L(G,t,e)})),null===(e=P(F,this))||void 0===e||e.renderNow(),this.updated("",null,null),P(G,this))){var r=P(G,this);L(G,this,null),L(Z,this,null),r()}}},{key:"updated",value:function(e,t,r){}},{key:"shouldUpdate",value:function(e,t,r){return!0}},{key:"createProjector",value:function(e,t){var r=this;return new Promise(function(n,o){var i,a=P(V,r)?P(V,r):"append";requestAnimationFrame(function(){(i=window.Maquette.createProjector({performanceLogger:function(e){"renderStart"!==e&&"renderDone"!==e||R(Y,r,ee).call(r,e)}}))[a](e,t.bind(r)),L(F,r,i),i.renderNow(),n(i),r.dispatchEvent(new CustomEvent("firstRender",{}))})})}},{key:"connectedCallback",value:function(){if(L(W,this,!0),P(q,this)&&!P(H,this)){L(D,this,this.getRootNode());var e=this.constructor.style;P(D,this)instanceof ShadowRoot&&L(q,this,w(P(D,this),e,"".concat(this.constructor.name,"-static-style")))}for(var t=0,r=P(J,this).length;t<r;){var n=P(J,this)[t];null!=n&&n.connected&&n.connected(),t+=1}!function(e){var t=d.get(e);if(t){u.add(e);try{t.forEach(function(t,r){p(e,r,t.value,t.type,t.converter)})}finally{u.delete(e)}d.delete(e)}var r=f.get(e);if(r&&e.updated){for(var n=r.length,o=0;o<n;){var i=r[o];e.updated(i.propertyKey,i.oldValue,i.newValue),o+=1}f.delete(e)}}(this),this.renderNow()}},{key:"disconnectedCallback",value:function(){var e=this.constructor.style;P(D,this)instanceof ShadowRoot&&e&&function(e,t){var r=g.get(e);if(!r)return!1;var n=r.get(t);if(!n)return!1;if(n.count-=1,n.count>0)return!1;var o=n.item;b&&o instanceof CSSStyleSheet?e.adoptedStyleSheets=e.adoptedStyleSheets.filter(function(e){return e!==o}):(o instanceof HTMLStyleElement||o instanceof HTMLLinkElement)&&o.parentElement&&o.parentElement.removeChild(o),r.delete(t),0===r.size&&g.delete(e)}(P(D,this),"".concat(this.constructor.name,"-static-style")),L(W,this,!1);for(var t=0,r=P(J,this).length;t<r;){var n=P(J,this)[t];null!=n&&n.disconnected&&n.disconnected(),t+=1}}},{key:"attributeChangedCallback",value:function(e,t,r){if(n=this,!u.has(n)){var n,o=this.constructor;if(null!=o&&o._propertyInfo){var i=Array.from(o._propertyInfo.values()).find(function(t){return t.attribute===e&&"string"==typeof t.attribute});if(i){var a=i.converter,s=r;null!=a&&a.fromAttribute?s=a.fromAttribute(r):i.type===Boolean?s=null!==r:i.type===Number&&(s=null===r?null:Number(r)),this[i.name]=s,this.scheduleRender()}}}}},{key:"render",value:function(){return null}}])&&k(r.prototype,n),o&&k(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(N(HTMLElement));function X(){"function"==typeof this.init&&(this.init(),P(J,this).forEach(function(e){var t;null==e||null===(t=e.init)||void 0===t||t.call(e)}))}function ee(e){var t=this;this[e]&&this[e](P("renderStart"===e?_:B,this));var r="host".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));P(J,this).forEach(function(n){n[r]&&n[r](P("renderStart"===e?_:B,t))}),L("renderStart"===e?_:B,this,!1)}function te(){var e=this.constructor;if(e._propertyInfo)for(var t=Array.from(e._propertyInfo.entries()),r=0,n=t.length;r<n;){var o=S(t[r],1)[0];if(Object.hasOwn(this,o)){var i=this[o];delete this[o],this[o]=i}r+=1}}function re(){var e,t=this,r=this.constructor.projectorMode;L(V,this,r||"replace");var n=this.constructor.formAssociated,o=this.constructor.delegatesFocus;L($,this,o),n&&L(z,this,this.attachInternals());var i=this.constructor.style;L(H,this,null===(e=this.constructor.useShadowDOM)||void 0===e||e),P(H,this)&&!this.shadowRoot&&this.attachShadow({mode:"open",delegatesFocus:P($,this)});var a=P(H,this)?this.shadowRoot:this;L(U,this,document.createElement("div")),requestAnimationFrame(function(){a.appendChild(P(U,t)),t.createProjector(P(U,t),t.render).then(function(){R(Y,t,te).call(t)})}),i&&L(q,this,w(P(H,this)?this.shadowRoot:document,i,"".concat(this.constructor.name,"-static-style")))}function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function oe(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),Object.defineProperty(e,ie(n.key),n)}}function ie(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}function ae(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function se(e,t){return e.get(le(e,t))}function le(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}Q._propertyInfo=new Map;var ce=new WeakMap,ue=function(){return e=function e(t){var r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ae(this,ce,void 0),n=this,o=t,(r=ce).set(le(r,n),o),se(ce,this).addController(this)},(t=[{key:"hostElement",get:function(){return se(ce,this)}},{key:"renderNow",value:function(){var e;null===(e=this.hostElement)||void 0===e||e.renderNow()}},{key:"scheduleRender",value:function(){var e;null===(e=this.hostElement)||void 0===e||e.scheduleRender()}}])&&oe(e.prototype,t),r&&oe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||pe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){if(e){if("string"==typeof e)return he(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?he(e,t):void 0}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var me,ye="http://www.w3.org/",ve="".concat(ye,"2000/svg"),be="".concat(ye,"1999/xlink"),ge=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","readonly","required","reversed","selected","scoped","seamless","typemustmatch"],we=[],Se=function(e,t){var r={};return Object.keys(e).forEach(function(t){r[t]=e[t]}),t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r},Ee=function(e,t){return e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties)},Ae=function(e){if("string"!=typeof e)throw new Error("Style values must be strings")},ke=function(e,t,r){if(""!==t.vnodeSelector)for(var n=r;n<e.length;n++)if(Ee(e[n],t))return n;return-1},Oe=function(e,t,r,n){var o=e[t];if(""!==o.vnodeSelector){var i=o.properties;if(!(i?void 0===i.key?i.bind:i.key:void 0))for(var a=0;a<e.length;a++)if(a!==t){var s=e[a];if(Ee(s,o))throw{error:new Error("".concat(r.vnodeSelector," had a ").concat(o.vnodeSelector," child ").concat("added"===n?n:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:r,childNode:o}}}},Me=function(e){if(e.properties){var t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},Ne=[],Ce=!1,je=function(e){(e.children||[]).forEach(je),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},Te=function(){Ce=!1,Ne.forEach(je),Ne.length=0},xe=function(e){Ne.push(e),Ce||(Ce=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(Te,{timeout:16}):setTimeout(Te,16))},Ie=function(e){var t=e.domNode;if(e.properties){e.properties.eventListeners&&Array.isArray(e.properties.eventListeners)&&e.properties.eventListeners.forEach(function(e){t.removeEventListener(e[0],e[1])});var r=e.properties.exitAnimation;if(r){t.style.pointerEvents="none";return void r(t,function(){t.parentNode&&(t.parentNode.removeChild(t),xe(e))},e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),xe(e))},Pe=function(e,t,r){if(t){var n,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=pe(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;Re(i,e,void 0,r)}}catch(e){o.e(e)}finally{o.f()}}},Le=function(e,t,r){if(Pe(e,t.children,r),t.text&&(e.textContent=t.text),function(e,t,r){if(t)for(var n=r.eventHandlerInterceptor,o=Object.keys(t),i=o.length,a=function(){var i,a=o[s],l=t[a];if("className"===a)throw new Error('Property "className" is not supported, use "class".');if("class"===a)Fe(e,l,!0);else if("classes"===a)for(var c=Object.keys(l),u=c.length,d=0;d<u;d++){var f=c[d];l[f]&&e.classList.add(f)}else if("styles"===a)for(var p=Object.keys(l),h=p.length,m=0;m<h;m++){var y=p[m],v=l[y];v&&(Ae(v),r.styleApplyer(e,y,v))}else if("on"===a&&l)for(var b=0,g=Object.entries(t.on);b<g.length;b++){var w=fe(g[b],2),S=w[0],E=w[1],A="function"==typeof E?E:E.listener;n&&(A=n(S,A,e,t)),A&&e.addEventListener(S,A,"function"==typeof E?void 0:E.options)}else if("key"!==a&&null!=l){var k=de(l);"function"===k?(0===a.lastIndexOf("on",0)&&(n&&(l=n(a,l,e,t)),"oninput"===a&&(i=l,l=function(e){i.apply(this,[e]),e.target["oninput-value"]=e.target.value})),e[a]=l):r.namespace===ve?"href"===a?e.setAttributeNS(be,a,l):e.setAttribute(a,l):"string"===k&&"value"!==a&&"innerHTML"!==a?e.setAttribute(a,l):("string"===k&&"value"===a&&null!=e&&e.tagName.indexOf("-")&&e.setAttribute(a,l),e[a]=l)}},s=0;s<i;s++)a()}(e,t.properties,r),t.properties&&t.properties.afterCreate)t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children]);else if(t.properties&&t.properties.eventListeners){if(!Array.isArray(t.properties.eventListeners))throw new Error("eventListeners value must be an array");t.properties.eventListeners.forEach(function(t){e.addEventListener(t[0],t[1],t[2])})}},Re=function(e,t,r,n){var o,i=0,a=e.vnodeSelector,s=t.ownerDocument;if(""===a)e.domNode?e.domNode.nodeValue=e.text:(o=e.domNode=s.createTextNode(e.text),void 0!==r?t.insertBefore(o,r):t.appendChild(o));else{for(var l=0;l<=a.length;++l){var c=a.charAt(l);if(l===a.length||"."===c||"#"===c){var u=a.charAt(i-1),d=a.slice(i,l);if("."===u)o.classList.add(d);else if("#"===u)o.id=d;else{var f;if("svg"===d&&(n=Se(n,{namespace:ve})),void 0!==n.namespace)o=e.domNode=s.createElementNS(n.namespace,d);else o=e.domNode=e.domNode||(null!==(f=e.properties)&&void 0!==f&&f.is?s.createElement(d,{is:e.properties.is}):s.createElement(d)),"input"===d&&e.properties&&void 0!==e.properties.type&&o.setAttribute("type",e.properties.type);void 0!==r?t.insertBefore(o,r):o.parentNode!==t&&t.appendChild(o)}i=l+1}}Le(o,e,n)}},Fe=function(e,t,r){t&&t.split(" ").forEach(function(t){t&&e.classList.toggle(t,r)})},Ve=function(e,t,r,n,o){if(r===n)return!1;n=n||we;for(var i,a=(r=r||we).length,s=n.length,l=0,c=0,u=!1;c<s;){var d=l<a?r[l]:void 0,f=n[c];if(void 0!==d&&Ee(d,f))u=me(d,f,o)||u,l++;else{var p=ke(r,f,l+1);if(p>=0){for(i=l;i<p;i++)Ie(r[i]),Oe(r,i,e,"removed");u=me(r[p],f,o)||u,l=p+1}else Re(f,t,l<a?r[l].domNode:void 0,o),Me(f),Oe(n,c,e,"added")}c++}if(a>l)for(i=l;i<a;i++)Ie(r[i]),Oe(r,i,e,"removed");return u};me=function(e,t,r){var n=e.domNode,o=!1;if(e===t)return!1;var i=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var a=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(a,n),t.domNode=a,o=!0}t.domNode=n}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(r=Se(r,{namespace:ve})),e.text!==t.text&&(i=!0,void 0===t.text?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,i=Ve(t,n,e.children,t.children,r)||i,i=function(e,t,r,n){if(r){for(var o=!1,i=Object.keys(r),a=i.length,s=0;s<a;s++){var l=i[s],c=r[l],u=t[l];if("class"===l)u!==c&&(Fe(e,u,!1),Fe(e,c,!0));else if("classes"===l)for(var d=e.classList,f=Object.keys(c),p=f.length,h=0;h<p;h++){var m=f[h],y=!!c[m];y!==!!u[m]&&(o=!0,y?d.add(m):d.remove(m))}else if("styles"===l)for(var v=Object.keys(c),b=v.length,g=0;g<b;g++){var w=v[g],S=c[w];S!==u[w]&&(o=!0,S?(Ae(S),n.styleApplyer(e,w,S)):n.styleApplyer(e,w,""))}else if(c||"string"!=typeof u||ge.indexOf(l)<0&&(c=""),"value"===l){var E=e[l];E!==c&&(e["oninput-value"]?E===e["oninput-value"]:c!==u)&&(e[l]=c,e["oninput-value"]=void 0),c!==u&&(o=!0)}else if(ge.indexOf(l)>=0)"string"==typeof c||!0===c?(e.setAttribute(l,""),e[l]=!0):(e.removeAttribute(l),e[l]=!1),o=!0;else if(c!==u){var A=de(c);"function"===A&&n.eventHandlerInterceptor||(n.namespace===ve?"href"===l?e.setAttributeNS(be,l,c):e.setAttribute(l,c):"string"===A&&"innerHTML"!==l?"role"===l&&""===c?e.removeAttribute(l):e.setAttribute(l,c):e[l]!==c&&(e[l]=c),o=!0)}}return o}}(n,e.properties,t.properties,r)||i,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return i&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),o};var We,De=function(e,t){return{getLastRender:function(){return e},update:function(r){if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var n=e;e=r,me(n,r,t)},domNode:e.domNode}},qe={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,t,r){"-"===t.charAt(0)?e.style.setProperty(t,r):e.style[t]=r}},He=function(e){return Se(qe,e)},$e={create:function(e,t){return t=He(t),Re(e,document.createElement("div"),void 0,t),De(e,t)},append:function(e,t,r){return r=He(r),Re(t,e,void 0,r),De(t,r)},insertBefore:function(e,t,r){return r=He(r),Re(t,e.parentNode,e,r),De(t,r)},merge:function(e,t,r){return r=He(r),t.domNode=e,Le(e,t,r),De(t,r)},replace:function(e,t,r){return r=He(r),Re(t,e.parentNode,e,r),e.parentNode.removeChild(e),De(t,r)}};We=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){return e.filter(t)[0]};var _e=function(e,t,r){return function(n,o,i,a){return function(n){r("domEvent",n);var i=t(),a=function(e,t){for(var r=[];e&&e!==t;)r.push(e),e=e.parentNode;return r}(n.currentTarget,i.domNode);a.reverse();var s,l,c,u=function(e,t){var r=e;return t.forEach(function(e){r=r&&r.children?We(r.children,function(t){return t.domNode===e}):void 0}),r}(i.getLastRender(),a);(e.scheduleRender(),u)&&(s=(null!==(l=null!==(c=u.properties["on".concat(n.type)])&&void 0!==c?c:u.properties.on[n.type].listener)&&void 0!==l?l:u.properties.on[n.type]).apply(u.properties.bind||this,arguments));return void 0===s&&this.hasAttribute("data-force-event-handler")&&(s=o.apply(this,arguments)),r("domEventProcessed",n),s}}},Be=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},Ue=function(e,t){for(var r=0,n=e.length;r<n;r++){var o=e[r];Array.isArray(o)?Ue(o,t):null!=o&&!1!==o&&(o.hasOwnProperty("vnodeSelector")||(o=Be(o)),t.push(o))}},ze=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(1===n.length&&"string"==typeof n[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:n[0],domNode:null};var i=[];return Ue(n,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}},Ke={createCache:function(){var e,t;return{invalidate:function(){t=void 0,e=void 0},result:function(r,n){if(e)for(var o=0;o<r.length;o++)e[o]!==r[o]&&(t=void 0);return t||(t=n(),e=r),t}}},createMapping:function(e,t,r){var n=[],o=[];return{results:o,map:function(i){for(var a=i.map(e),s=o.slice(),l=0,c=0;c<i.length;c++){var u=i[c],d=a[c];if(d===n[l])o[c]=s[l],r(u,s[l],c),l++;else{for(var f=!1,p=1;p<n.length+1;p++){var h=(l+p)%n.length;if(n[h]===d){o[c]=s[h],r(i[c],s[h],c),l=h+1,f=!0;break}}f||(o[c]=t(u,c))}}o.length=i.length,n=a}}},createProjector:function(e){var t,r,n=He(e),o=n.performanceLogger,i=!0,a=!1,s=[],l=[],c=function(e,r,i){var a;n.eventHandlerInterceptor=_e(t,function(){return a},o),a=e(r,i(),n),s.push(a),l.push(i)},u=function(){if(r=void 0,i){i=!1,o("renderStart",void 0);for(var e=0;e<s.length;e++){var t=l[e]();o("rendered",void 0),s[e].update(t),o("patched",void 0)}o("renderDone",void 0),i=!0}};return t={renderNow:u,scheduleRender:function(){r||a||(r=requestAnimationFrame(u))},stop:function(){r&&(cancelAnimationFrame(r),r=void 0),a=!0},resume:function(){a=!1,i=!0,t.scheduleRender()},append:function(e,t){c($e.append,e,t)},insertBefore:function(e,t){c($e.insertBefore,e,t)},merge:function(e,t){c($e.merge,e,t)},replace:function(e,t){c($e.replace,e,t)},detach:function(e){for(var t=0;t<l.length;t++)if(l[t]===e)return l.splice(t,1),s.splice(t,1)[0];throw new Error("renderFunction was not found")}}},dom:$e,h:ze};!function(e){e.Maquette=Ke,e.CustomElement=Q,e.CustomElementController=ue,e.CustomElementConfig=o,e.propertyRenderOnSet=m,e.renderOnSet=m,e.property=h,e.query=i,e.bind=n}(globalThis);var Je=ze,Ze=m}();var r=t.K9,n=t.y0,o=t.Wd,i=t.zG,a=t.oI,s=t.h,l=t.MZ,c=t.vi,u=t.P,d=t.kf;export{r as CustomElement,n as CustomElementConfig,o as CustomElementController,i as Maquette,a as bind,s as h,l as property,c as propertyRenderOnSet,u as query,d as renderOnSet};
1
+ /*! P-ELEMENTS 2.1.4 - Mon Feb 16 2026 06:57:32 GMT+0100 (Central European Standard Time) */var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};!function(){const{keys:e}=Object,t=!0,r=!1,n="querySelectorAll",o="querySelectorAll",{document:i,Element:a,MutationObserver:s,Set:l,WeakMap:c}=self,u=e=>o in e,{filter:d}=[];var f=e=>{const f=new c,p=(t,r)=>{let n;if(r)for(let o,i=(e=>e.matches||e.webkitMatchesSelector||e.msMatchesSelector)(t),a=0,{length:s}=m;a<s;a++)i.call(t,o=m[a])&&(f.has(t)||f.set(t,new l),n=f.get(t),n.has(o)||(n.add(o),e.handle(t,r,o)));else f.has(t)&&(n=f.get(t),f.delete(t),n.forEach(n=>{e.handle(t,r,n)}))},h=(e,t=!0)=>{for(let r=0,{length:n}=e;r<n;r++)p(e[r],t)},{query:m}=e,y=e.root||i,v=((e,o=document,i=MutationObserver,a=["*"])=>{const s=(r,o,i,a,l,c)=>{for(const u of r)(c||n in u)&&(l?i.has(u)||(i.add(u),a.delete(u),e(u,l)):a.has(u)||(a.add(u),i.delete(u),e(u,l)),c||s(u[n](o),o,i,a,l,t))},l=new i(e=>{if(a.length){const n=a.join(","),o=new Set,i=new Set;for(const{addedNodes:a,removedNodes:l}of e)s(l,n,o,i,r,r),s(a,n,o,i,t,r)}}),{observe:c}=l;return(l.observe=e=>c.call(l,e,{subtree:t,childList:t}))(o),l})(p,y,s,m),{attachShadow:b}=a.prototype;return b&&(a.prototype.attachShadow=function(e){const t=b.call(this,e);return v.observe(t),t}),m.length&&h(y[o](m)),{drop:e=>{for(let t=0,{length:r}=e;t<r;t++)f.delete(e[t])},flush:()=>{const e=v.takeRecords();for(let t=0,{length:r}=e;t<r;t++)h(d.call(e[t].removedNodes,u),!1),h(d.call(e[t].addedNodes,u),!0)},observer:v,parse:h}};const{customElements:p,document:h,Element:m,MutationObserver:y,Object:v,Promise:b,Map:g,Set:w,WeakMap:S,Reflect:E}=self,{createElement:A}=h,{define:k,get:O,upgrade:M}=p,{construct:N}=E||{construct(e){return e.call(this)}},{defineProperty:C,getOwnPropertyNames:j,setPrototypeOf:T}=v,x=new S,I=new w,P=new g,L=new g,R=new g,F=new g,V=[],W=[],D=e=>F.get(e)||O.call(p,e),{parse:q}=f({query:W,handle:(t,r,n)=>{const o=R.get(n);if(r&&!o.isPrototypeOf(t)){const r=(t=>{const r=e(t),n=[],o=new Set,{length:i}=r;for(let e=0;e<i;e++){n[e]=t[r[e]];try{delete t[r[e]]}catch(t){o.add(e)}}return()=>{for(let e=0;e<i;e++)o.has(e)||(t[r[e]]=n[e])}})(t);U=T(t,o);try{new o.constructor}finally{U=null,r()}}const i=(r?"":"dis")+"connectedCallback";i in o&&t[i]()}}),{parse:H}=f({query:V,handle(e,t){x.has(e)&&(t?I.add(e):I.delete(e),W.length&&z.call(W,e))}}),{attachShadow:$}=m.prototype;$&&(m.prototype.attachShadow=function(e){const t=$.call(this,e);return x.set(this,t),t});const _=e=>{if(!L.has(e)){let t,r=new b(e=>{t=e});L.set(e,{$:r,_:t})}return L.get(e).$},B=((e,t)=>{const r=e=>{for(let t=0,{length:r}=e;t<r;t++)n(e[t])},n=({target:e,attributeName:t,oldValue:r})=>{e.attributeChangedCallback(t,r,e.getAttribute(t))};return(o,i)=>{const{observedAttributes:a}=o.constructor;return a&&e(i).then(()=>{new t(r).observe(o,{attributes:!0,attributeOldValue:!0,attributeFilter:a});for(let e=0,{length:t}=a;e<t;e++)o.hasAttribute(a[e])&&n({target:o,attributeName:a[e],oldValue:null})}),o}})(_,y);let U=null;function z(e){const t=x.get(e);q(t.querySelectorAll(this),e.isConnected)}j(self).filter(e=>/^HTML.*Element$/.test(e)).forEach(e=>{const t=self[e];function r(){const{constructor:e}=this;if(!P.has(e))throw new TypeError("Illegal constructor");const{is:r,tag:n}=P.get(e);if(r){if(U)return B(U,r);const t=A.call(h,n);return t.setAttribute("is",r),B(T(t,e.prototype),r)}return N.call(this,t,[],e)}T(r,t),C(r.prototype=t.prototype,"constructor",{value:r}),C(self,e,{value:r})}),h.createElement=function(e,t){const r=t&&t.is;if(r){const t=F.get(r);if(t&&P.get(t).tag===e)return new t}const n=A.call(h,e);return r&&n.setAttribute("is",r),n},p.get=D,p.whenDefined=_,p.upgrade=function(e){const t=e.getAttribute("is");if(t){const r=F.get(t);if(r)return void B(T(e,r.prototype),t)}M.call(p,e)},p.define=function(e,t,r){if(D(e))throw new Error(`'${e}' has already been defined as a custom element`);let n;const o=r&&r.extends;P.set(t,o?{is:e,tag:o}:{is:"",tag:e}),o?(n=`${o}[is="${e}"]`,R.set(n,t.prototype),F.set(e,t),W.push(n)):(k.apply(p,arguments),V.push(n=e)),_(e).then(()=>{o?(q(h.querySelectorAll(n)),I.forEach(z,[n])):H(h.querySelectorAll(n))}),L.get(e)._(t)}}(),function(){const e=new WeakMap,t=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,h=new WeakMap,m=(e,t,r)=>{e.getAttribute(t)!==r&&e.setAttribute(t,r)},y=(e,t)=>{e.toggleAttribute("internals-disabled",t),t?m(e,"aria-disabled","true"):e.removeAttribute("aria-disabled"),e.formDisabledCallback&&e.formDisabledCallback.apply(e,[t])},v=e=>{r.get(e).forEach(e=>{e.remove()}),r.set(e,[])},b=(e,t)=>{const n=document.createElement("input");return n.type="hidden",n.name=e.getAttribute("name"),e.after(n),r.get(t).push(n),n},g=(e,t)=>{if(t.length){const r=Array.from(t);r.forEach(t=>t.addEventListener("click",e.click.bind(e)));const[n]=r;let o=n.id;n.id||(o=`${n.htmlFor}_Label`,n.id=o),m(e,"aria-labelledby",o)}},w=e=>{const t=Array.from(e.elements).filter(e=>!e.tagName.includes("-")&&e.validity).map(e=>e.validity.valid),r=s.get(e)||[],o=[...t,...Array.from(r).filter(e=>e.isConnected).map(e=>n.get(e).validity.valid)].includes(!1);e.toggleAttribute("internals-invalid",o),e.toggleAttribute("internals-valid",!o)},S=e=>{w(O(e.target))},E=e=>{w(O(e.target))},A=e=>{const t=s.get(e.target);t&&t.size&&t.forEach(e=>{e.constructor.formAssociated&&e.formResetCallback&&e.formResetCallback.apply(e)})},k=(e,t,r)=>{if(t){const o=s.get(t);if(o)o.add(e);else{const r=new Set;r.add(e),s.set(t,r),(e=>{const t=["button[type=submit]","input[type=submit]","button:not([type])"].map(e=>`${e}:not([disabled])`).map(t=>`${t}:not([form])${e.id?`,${t}[form='${e.id}']`:""}`).join(",");e.addEventListener("click",r=>{if(r.target.closest(t)){const t=s.get(e);if(e.noValidate)return;t.size&&Array.from(t).reverse().map(e=>n.get(e).reportValidity()).includes(!1)&&r.preventDefault()}})})(t),t.addEventListener("reset",A),t.addEventListener("input",S),t.addEventListener("change",E)}i.set(t,{ref:e,internals:r}),e.constructor.formAssociated&&e.formAssociatedCallback&&setTimeout(()=>{e.formAssociatedCallback.apply(e,[t])},0),w(t)}},O=e=>{let t=e.parentNode;return t&&"FORM"!==t.tagName&&(t=O(t)),t},M=(e,t,r=DOMException)=>{if(!e.constructor.formAssociated)throw new r(t)},N=(e,t,r)=>{const o=s.get(e);return o&&o.size&&o.forEach(e=>{n.get(e)[r]()||(t=!1)}),t},C=e=>{let t=!1;if(e.constructor.formAssociated){let r=n.get(e);void 0===r&&(e.attachInternals(),r=n.get(e),t=!0);const{labels:o,form:i}=r;g(e,o),k(e,i,r)}return t};function j(){return"undefined"!=typeof MutationObserver}const T={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBrailleLabel:"aria-braillelabel",ariaBrailleRoleDescription:"aria-brailleroledescription",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function x(e){const t=n.get(e),{form:r}=t;k(e,r,t),g(e,t.labels)}const I=(e,t=!1)=>{const r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return n.has(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let o=r.nextNode();const i=!t||e.disabled;for(;o;)o.formDisabledCallback&&i&&y(o,e.disabled),o=r.nextNode()},P={attributes:!0,attributeFilter:["disabled","name"]},L=j()?new MutationObserver(e=>{for(const t of e){const e=t.target;if("disabled"===t.attributeName&&(e.constructor.formAssociated?y(e,e.hasAttribute("disabled")):"fieldset"===e.localName&&I(e)),"name"===t.attributeName&&e.constructor.formAssociated){const t=n.get(e),r=l.get(e);t.setFormValue(r)}}}):{};function R(e){e.forEach(e=>{const{addedNodes:t,removedNodes:o}=e,i=Array.from(t),l=Array.from(o);i.forEach(e=>{if(n.has(e)&&e.constructor.formAssociated&&x(e),c.has(e)){const t=c.get(e);Object.keys(T).filter(e=>null!==t[e]).forEach(r=>{m(e,T[r],t[r])}),c.delete(e)}if(h.has(e)){const t=h.get(e);m(e,"internals-valid",t.validity.valid.toString()),m(e,"internals-invalid",(!t.validity.valid).toString()),m(e,"aria-invalid",(!t.validity.valid).toString()),h.delete(e)}if("form"===e.localName){const t=s.get(e),r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return!n.has(e)||!e.constructor.formAssociated||t&&t.has(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});let o=r.nextNode();for(;o;)x(o),o=r.nextNode()}"fieldset"===e.localName&&(L.observe?.(e,P),I(e,!0))}),l.forEach(e=>{const t=n.get(e);if(t&&r.get(t)&&v(t),a.has(e)){a.get(e).disconnect()}})})}function F(e){e.forEach(e=>{const{removedNodes:t}=e;t.forEach(t=>{const r=f.get(e.target);n.has(t)&&C(t),r.disconnect()})})}j()&&new MutationObserver(R);const V={childList:!0,subtree:!0};class W{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const D=e=>{let t=!0;for(let r in e)"valid"!==r&&!1!==e[r]&&(t=!1);return t},q=new WeakMap;function H(e,t){e.toggleAttribute(t,!0),e.part&&e.part.add(t)}class $ extends Set{static get isPolyfilled(){return!0}constructor(e){if(super(),!e||!e.tagName||-1===e.tagName.indexOf("-"))throw new TypeError("Illegal constructor");q.set(this,e)}add(e){if(!/^--/.test(e)||"string"!=typeof e)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${e} must start with '--'.`);const t=super.add(e),r=q.get(this),n=`state${e}`;return r.isConnected?H(r,n):setTimeout(()=>{H(r,n)}),t}clear(){for(let[e]of this.entries())this.delete(e);super.clear()}delete(e){const t=super.delete(e),r=q.get(this);return r.isConnected?(r.toggleAttribute(`state${e}`,!1),r.part&&r.part.remove(`state${e}`)):setTimeout(()=>{r.toggleAttribute(`state${e}`,!1),r.part&&r.part.remove(`state${e}`)}),t}}var _,B=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},U=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class z{constructor(e){_.set(this,void 0),B(this,_,e,"f");for(let t=0;t<e.length;t++){let r=e[t];this[t]=r,r.hasAttribute("name")&&(this[r.getAttribute("name")]=r)}Object.freeze(this)}get length(){return U(this,_,"f").length}[(_=new WeakMap,Symbol.iterator)](){return U(this,_,"f")[Symbol.iterator]()}item(e){return null==this[e]?null:this[e]}namedItem(e){return null==this[e]?null:this[e]}}class K{static get isPolyfilled(){return!0}constructor(o){if(!o||!o.tagName||-1===o.tagName.indexOf("-"))throw new TypeError("Illegal constructor");const i=o.getRootNode(),a=new W;this.states=new $(o),e.set(this,o),t.set(this,a),n.set(o,this),((e,t)=>{for(let r in T){t[r]=null;let n=null;const o=T[r];Object.defineProperty(t,r,{get(){return n},set(r){n=r,e.isConnected?m(e,o,r):c.set(e,t)}})}})(o,this),((e,t)=>{r.set(t,[]),L.observe?.(e,P)})(o,this),Object.seal(this),i instanceof DocumentFragment&&(e=>{const t=new MutationObserver(F);window?.ShadyDOM?.inUse&&e.mode&&e.host&&(e=e.host),t.observe?.(e,{childList:!0}),f.set(e,t)})(i)}checkValidity(){const r=e.get(this);if(M(r,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const n=t.get(this);if(!n.valid){const e=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});r.dispatchEvent(e)}return n.valid}get form(){const t=e.get(this);let r;return M(t,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===t.constructor.formAssociated&&(r=O(t)),r}get labels(){const t=e.get(this);M(t,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const r=t.getAttribute("id"),n=t.getRootNode();return n&&r?n.querySelectorAll(`[for="${r}"]`):[]}reportValidity(){const t=e.get(this);if(M(t,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const r=this.checkValidity(),n=d.get(this);if(n&&!t.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!r&&n&&(t.focus(),n.focus()),r}setFormValue(t){const r=e.get(this);if(M(r,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),v(this),null==t||t instanceof FormData)null!=t&&t instanceof FormData&&Array.from(t).reverse().forEach(([e,t])=>{if("string"==typeof t){const n=b(r,this);n.name=e,n.value=t}});else if(r.getAttribute("name")){b(r,this).value=t}l.set(r,t)}setValidity(r,n,i){const a=e.get(this);if(M(a,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!r)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");d.set(this,i);const s=t.get(this),l={};for(const e in r)l[e]=r[e];var c;0===Object.keys(l).length&&((c=s).badInput=!1,c.customError=!1,c.patternMismatch=!1,c.rangeOverflow=!1,c.rangeUnderflow=!1,c.stepMismatch=!1,c.tooLong=!1,c.tooShort=!1,c.typeMismatch=!1,c.valid=!0,c.valueMissing=!1);const u={...s,...l};delete u.valid;const{valid:f}=((e,t,r)=>(e.valid=D(t),Object.keys(t).forEach(r=>e[r]=t[r]),r&&w(r),e))(s,u,this.form);if(!f&&!n)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");o.set(this,f?"":n),a.isConnected?(a.toggleAttribute("internals-invalid",!f),a.toggleAttribute("internals-valid",f),m(a,"aria-invalid",`${!f}`)):h.set(a,this)}get shadowRoot(){const t=e.get(this),r=u.get(t);return r||null}get validationMessage(){const t=e.get(this);return M(t,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),o.get(this)}get validity(){const r=e.get(this);M(r,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element.");return t.get(this)}get willValidate(){const t=e.get(this);return M(t,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(t.matches(":disabled")||t.disabled||t.hasAttribute("disabled")||t.hasAttribute("readonly"))}}let J=!1,Z=!1;function G(e){Z||(Z=!0,window.CustomStateSet=$,e&&(HTMLElement.prototype.attachInternals=function(...t){const r=e.call(this,t);return r.states=new $(this),r}))}!!customElements.polyfillWrapFlushCallback||(function(){if("undefined"==typeof window||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class e extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const t=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(t,e);const r=new e;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(e=>e in r.internals)}()?"undefined"==typeof window||window.CustomStateSet||G(HTMLElement.prototype.attachInternals):function(e=!0){let t=!1;if(!J){if(J=!0,"undefined"!=typeof window&&(window.ElementInternals=K),"undefined"!=typeof CustomElementRegistry){const r=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(e,n,o){if(n.formAssociated){const e=n.prototype.connectedCallback;n.prototype.connectedCallback=function(){p.has(this)||(p.set(this,!0),this.hasAttribute("disabled")&&y(this,!0)),null!=e&&e.apply(this),t=C(this)}}r.call(this,e,n,o)}}if("undefined"!=typeof HTMLElement&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(n.has(this)&&!t)throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new K(this)}),"undefined"!=typeof Element){function o(...e){const t=i.apply(this,e);if(u.set(this,t),j()){const e=new MutationObserver(R);window.ShadyDOM?e.observe(this,V):e.observe(t,V),a.set(this,e)}return t}const i=Element.prototype.attachShadow;Element.prototype.attachShadow=o}j()&&"undefined"!=typeof document&&new MutationObserver(R).observe(document.documentElement,V),"undefined"!=typeof HTMLFormElement&&function(){const e=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...t){let r=e.apply(this,t);return N(this,r,"checkValidity")};const t=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...e){let r=t.apply(this,e);return N(this,r,"reportValidity")};const{get:r}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...e){const t=r.call(this,...e),n=Array.from(s.get(this)||[]);if(0===n.length)return t;const o=Array.from(t).concat(n).sort((e,t)=>e.compareDocumentPosition?2&e.compareDocumentPosition(t)?1:-1:0);return new z(o)}})}(),(e||"undefined"!=typeof window&&!window.CustomStateSet)&&G()}}(!1))}(),function(){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}e.d(t,{K9:function(){return Q},y0:function(){return o},Wd:function(){return ue},zG:function(){return Ke},oI:function(){return n},h:function(){return Je},MZ:function(){return h},vi:function(){return m},P:function(){return i},kf:function(){return Ze}});var n=function(e,t,n){var o=n.value;if("function"!=typeof o)throw new Error("@bind decorator can only be applied to methods not: ".concat(r(o)));var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var r=o.bind(this);return i=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return r},set:function(e){o=e,delete this[t]}}),i=!1,r},set:function(e){o=e}}},o=function(e){return function(t){customElements.get(e.tagName)?console.warn("Custom element with tag name ".concat(e.tagName," already exists.")):customElements.define(e.tagName,t,e.options)}},i=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(r,n){Object.defineProperty(r,n,{get:function(){return t?this.shadowRoot.querySelector(e):this.querySelector(e)}})}};function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=new WeakSet,d=new WeakMap,f=new WeakMap;function p(e,t,r,n,o){n===Boolean?r?e.setAttribute(t,""):e.removeAttribute(t):n===Object||n===Array?o&&o.toAttribute?e.setAttribute(t,o.toAttribute(r)):e.setAttribute(t,JSON.stringify(r)):null==r?e.removeAttribute(t):e.setAttribute(t,String(r))}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=e.attribute,n=void 0===r||r,o=e.reflect,i=void 0!==o&&o,a=e.converter,l=e.readonly,h=void 0!==l&&l,m=function(e){if("string"==typeof e)switch(e){case"string":return String;case"number":return Number;case"boolean":return Boolean;case"object":return Object;case"array":return Array;default:return null}return e}(t);return function(t,r){var o=new WeakMap,l=function(e,t){if(!1!==t)return!0===t?e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():"string"==typeof t?t:void 0}(r,n);Object.defineProperty(t,r,{get:function(){if(!o.has(this)&&l&&this.hasAttribute&&this.hasAttribute(l)){var e,t=this.getAttribute(l);if(null!==t)return e=a&&a.fromAttribute?a.fromAttribute(t):m===Boolean||(m===Number?Number(t):t),o.set(this,e),"function"==typeof this.renderNow&&this.renderNow(),e}return o.has(this)?o.get(this):m!==Boolean&&void 0},set:function(e){if(!h||!o.has(this)){var t,n=o.get(this),s=!1;if(null==m&&e!==n&&(s=!0),!o.has(this)&&l&&this.hasAttribute&&this.hasAttribute(l)){var y=this.getAttribute(l);if(null!==y)return t=a&&a.fromAttribute?a.fromAttribute(y):m===Boolean||(m===Number?Number(y):y),o.set(this,t),void(this.isConnected?("function"==typeof this.renderNow&&this.renderNow(),this.updated&&this.updated(r,n,t)):this.updated&&(f.has(this)||f.set(this,[]),f.get(this).push({propertyKey:r,oldValue:n,newValue:t})))}if(t=s?e:function(e,t,r){if(r&&r.fromAttribute&&"string"==typeof e)return r.fromAttribute(e);if(null==e)return e;switch(t){case String:return String(e);case Number:return Number(e);case Boolean:return Boolean(e);case Object:return"object"===c(e)?e:JSON.parse(String(e));case Array:return Array.isArray(e)?e:JSON.parse(String(e));default:return e}}(e,m,a),n!==t){var v=!this.shouldUpdate||this.shouldUpdate(r,n,t);if(o.set(this,v?t:n),i&&void 0!==l)if(this.isConnected){u.add(this);try{p(this,l,v?t:n,m,a)}finally{u.delete(this)}}else d.has(this)||d.set(this,new Map),d.get(this).set(l,{value:v?t:n,type:m,converter:a});this.isConnected?("function"==typeof this.renderNow&&this.renderNow(),this.updated&&this.updated(r,n,t)):this.updated&&(f.has(this)||f.set(this,[]),f.get(this).push({propertyKey:r,oldValue:n,newValue:t})),s&&"function"==typeof this.renderNow&&this.renderNow()}}},configurable:!0}),t.constructor._propertyInfo||(t.constructor._propertyInfo=new Map),t.constructor._propertyInfo.set(r,s(s({},e),{},{name:r,attribute:l,type:m})),l&&(t.constructor.observedAttributes||(t.constructor.observedAttributes=[]),t.constructor.observedAttributes.includes(l)||t.constructor.observedAttributes.push(l))}}var m=h({});function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var b="adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype,g=new WeakMap;function w(e,t,r){if(r){var n=g.get(e);n||(n=new Map,g.set(e,n));var o=n.get(r);if(o)return o.count+=1,o.item}if(b){var i=new CSSStyleSheet;if(i.replaceSync(t),r)i.metadata={key:r},g.get(e).set(r,{count:1,item:i});return e.adoptedStyleSheets=[].concat(y(e.adoptedStyleSheets),[i]),i}if(r){var a=e.querySelector('style[data-key="'.concat(r,'"], link[data-key="').concat(r,'"]'));if(a)return g.get(e).set(r,{count:1,item:a}),a}var s,l,c=null!==(s=null===(l=document.querySelector("html"))||void 0===l?void 0:l.getAttribute("data-nonce"))&&void 0!==s?s:null,u=c?function(e,t){var r=document.createElement("style");r.textContent=e,t&&r.setAttribute("nonce",t);return r}(t,c):function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href="data:text/css;base64,".concat(btoa(e)),t}(t);r&&(u.setAttribute("data-key",r),g.get(e).set(r,{count:1,item:u}));return e instanceof ShadowRoot?e.appendChild(u):(document.head||document.documentElement).appendChild(u),u}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function k(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),Object.defineProperty(e,O(n.key),n)}}function O(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}function M(e,t){if(t&&("object"==A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function N(e){var t="function"==typeof Map?new Map:void 0;return N=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("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 function(e,t,r){if(C())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&j(o,r.prototype),o}(e,arguments,T(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),j(r,e)},N(e)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function x(e,t,r){I(e,t),t.set(e,r)}function I(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P(e,t){return e.get(R(e,t))}function L(e,t,r){return e.set(R(e,t),r),r}function R(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var F=new WeakMap,V=new WeakMap,W=new WeakMap,D=new WeakMap,q=new WeakMap,H=new WeakMap,$=new WeakMap,_=new WeakMap,B=new WeakMap,U=new WeakMap,z=new WeakMap,K=new WeakMap,J=new WeakMap,Z=new WeakMap,G=new WeakMap,Y=new WeakSet,Q=function(e){function t(e){var r,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=T(o=t),function(e,t){I(e,t),t.add(e)}(r=M(n,C()?Reflect.construct(o,i||[],T(n).constructor):o.apply(n,i)),Y),x(r,F,void 0),x(r,V,void 0),x(r,W,!1),x(r,D,void 0),x(r,q,null),x(r,H,!1),x(r,$,!1),x(r,_,!0),x(r,B,!0),x(r,U,null),x(r,z,null),x(r,K,void 0),x(r,J,[]),x(r,Z,null),x(r,G,null);var a=function(e){console.warn("ElementInternals.".concat(e," called before element was connected. Call will be ignored."))};return L(K,r,{setValidity:function(e,t,r){a("setValidity")},reportValidity:function(){return a("reportValidity"),!1},checkValidity:function(){return a("checkValidity"),!0},setFormValue:function(e,t){a("setFormValue")}}),R(Y,r,re).call(r),R(Y,r,X).call(r),M(r,e)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),r=t,o=[{key:"addStyleSheetToRoot",value:function(e,t,r){return w(e,t,r)}}],(n=[{key:"isConnected",get:function(){return P(W,this)}},{key:"updateComplete",get:function(){return P(Z,this)?P(Z,this):Promise.resolve()}},{key:"internals",get:function(){if(!P(W,this)&&"object"===A(P(K,this)))return P(K,this);var e=this.constructor;if(null===P(z,this)&&e.formAssociated){var t=P(K,this);for(var r in L(K,this,null),L(z,this,this.attachInternals()),t)"function"!=typeof P(z,this)[r]&&(P(z,this)[r]=t[r])}return P(z,this)},set:function(e){L(z,this,e)}},{key:"requestUpdate",value:function(){var e=this;return P(Z,this)||(L(Z,this,new Promise(function(t){L(G,e,t)})),this.scheduleRender()),P(Z,this)}},{key:"addController",value:function(e){P(J,this).push(e),P(W,this)&&e.connected&&e.connected()}},{key:"scheduleRender",value:function(){var e;null===(e=P(F,this))||void 0===e||e.scheduleRender()}},{key:"renderNow",value:function(){var e,t=this;if((!P(H,this)||this.shadowRoot)&&(P(Z,this)||L(Z,this,new Promise(function(e){L(G,t,e)})),null===(e=P(F,this))||void 0===e||e.renderNow(),this.updated("",null,null),P(G,this))){var r=P(G,this);L(G,this,null),L(Z,this,null),r()}}},{key:"updated",value:function(e,t,r){}},{key:"shouldUpdate",value:function(e,t,r){return!0}},{key:"createProjector",value:function(e,t){var r=this;return new Promise(function(n,o){var i,a=P(V,r)?P(V,r):"append";requestAnimationFrame(function(){(i=window.Maquette.createProjector({performanceLogger:function(e){"renderStart"!==e&&"renderDone"!==e||R(Y,r,ee).call(r,e)}}))[a](e,t.bind(r)),L(F,r,i),i.renderNow(),n(i),r.dispatchEvent(new CustomEvent("firstRender",{}))})})}},{key:"connectedCallback",value:function(){if(L(W,this,!0),P(q,this)&&!P(H,this)){L(D,this,this.getRootNode());var e=this.constructor.style;P(D,this)instanceof ShadowRoot&&L(q,this,w(P(D,this),e,"".concat(this.constructor.name,"-static-style")))}for(var t=0,r=P(J,this).length;t<r;){var n=P(J,this)[t];null!=n&&n.connected&&n.connected(),t+=1}!function(e){var t=d.get(e);if(t){u.add(e);try{t.forEach(function(t,r){p(e,r,t.value,t.type,t.converter)})}finally{u.delete(e)}d.delete(e)}var r=f.get(e);if(r&&e.updated){for(var n=r.length,o=0;o<n;){var i=r[o];e.updated(i.propertyKey,i.oldValue,i.newValue),o+=1}f.delete(e)}}(this),this.renderNow()}},{key:"disconnectedCallback",value:function(){var e=this.constructor.style;P(D,this)instanceof ShadowRoot&&e&&function(e,t){var r=g.get(e);if(!r)return!1;var n=r.get(t);if(!n)return!1;if(n.count-=1,n.count>0)return!1;var o=n.item;b&&o instanceof CSSStyleSheet?e.adoptedStyleSheets=e.adoptedStyleSheets.filter(function(e){return e!==o}):(o instanceof HTMLStyleElement||o instanceof HTMLLinkElement)&&o.parentElement&&o.parentElement.removeChild(o),r.delete(t),0===r.size&&g.delete(e)}(P(D,this),"".concat(this.constructor.name,"-static-style")),L(W,this,!1);for(var t=0,r=P(J,this).length;t<r;){var n=P(J,this)[t];null!=n&&n.disconnected&&n.disconnected(),t+=1}}},{key:"attributeChangedCallback",value:function(e,t,r){if(n=this,!u.has(n)){var n,o=this.constructor;if(null!=o&&o._propertyInfo){var i=Array.from(o._propertyInfo.values()).find(function(t){return t.attribute===e&&"string"==typeof t.attribute});if(i){var a=i.converter,s=r;null!=a&&a.fromAttribute?s=a.fromAttribute(r):i.type===Boolean?s=null!==r:i.type===Number&&(s=null===r?null:Number(r)),this[i.name]=s,this.scheduleRender()}}}}},{key:"render",value:function(){return null}}])&&k(r.prototype,n),o&&k(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(N(HTMLElement));function X(){"function"==typeof this.init&&(this.init(),P(J,this).forEach(function(e){var t;null==e||null===(t=e.init)||void 0===t||t.call(e)}))}function ee(e){var t=this;this[e]&&this[e](P("renderStart"===e?_:B,this));var r="host".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));P(J,this).forEach(function(n){n[r]&&n[r](P("renderStart"===e?_:B,t))}),L("renderStart"===e?_:B,this,!1)}function te(){var e=this.constructor;if(e._propertyInfo)for(var t=Array.from(e._propertyInfo.entries()),r=0,n=t.length;r<n;){var o=S(t[r],1)[0];if(Object.hasOwn(this,o)){var i=this[o];delete this[o],this[o]=i}r+=1}}function re(){var e,t=this,r=this.constructor.projectorMode;L(V,this,r||"replace");var n=this.constructor.formAssociated,o=this.constructor.delegatesFocus;L($,this,o),n&&L(z,this,this.attachInternals());var i=this.constructor.style;L(H,this,null===(e=this.constructor.useShadowDOM)||void 0===e||e),P(H,this)&&!this.shadowRoot&&this.attachShadow({mode:"open",delegatesFocus:P($,this)});var a=P(H,this)?this.shadowRoot:this;L(U,this,document.createElement("div")),requestAnimationFrame(function(){a.appendChild(P(U,t)),t.createProjector(P(U,t),t.render).then(function(){R(Y,t,te).call(t)})}),i&&L(q,this,w(P(H,this)?this.shadowRoot:document,i,"".concat(this.constructor.name,"-static-style")))}function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function oe(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),Object.defineProperty(e,ie(n.key),n)}}function ie(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}function ae(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function se(e,t){return e.get(le(e,t))}function le(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}Q._propertyInfo=new Map;var ce=new WeakMap,ue=function(){return e=function e(t){var r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ae(this,ce,void 0),n=this,o=t,(r=ce).set(le(r,n),o),se(ce,this).addController(this)},(t=[{key:"hostElement",get:function(){return se(ce,this)}},{key:"renderNow",value:function(){var e;null===(e=this.hostElement)||void 0===e||e.renderNow()}},{key:"scheduleRender",value:function(){var e;null===(e=this.hostElement)||void 0===e||e.scheduleRender()}}])&&oe(e.prototype,t),r&&oe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||pe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){if(e){if("string"==typeof e)return he(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?he(e,t):void 0}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var me,ye="http://www.w3.org/",ve="".concat(ye,"2000/svg"),be="".concat(ye,"1999/xlink"),ge=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","readonly","required","reversed","selected","scoped","seamless","typemustmatch"],we=[],Se=function(e,t){var r={};return Object.keys(e).forEach(function(t){r[t]=e[t]}),t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r},Ee=function(e,t){return e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties)},Ae=function(e){if("string"!=typeof e)throw new Error("Style values must be strings")},ke=function(e,t,r){if(""!==t.vnodeSelector)for(var n=r;n<e.length;n++)if(Ee(e[n],t))return n;return-1},Oe=function(e,t,r,n){var o=e[t];if(""!==o.vnodeSelector){var i=o.properties;if(!(i?void 0===i.key?i.bind:i.key:void 0))for(var a=0;a<e.length;a++)if(a!==t){var s=e[a];if(Ee(s,o))throw{error:new Error("".concat(r.vnodeSelector," had a ").concat(o.vnodeSelector," child ").concat("added"===n?n:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:r,childNode:o}}}},Me=function(e){if(e.properties){var t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},Ne=[],Ce=!1,je=function(e){(e.children||[]).forEach(je),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},Te=function(){Ce=!1,Ne.forEach(je),Ne.length=0},xe=function(e){Ne.push(e),Ce||(Ce=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(Te,{timeout:16}):setTimeout(Te,16))},Ie=function(e){var t=e.domNode;if(e.properties){e.properties.eventListeners&&Array.isArray(e.properties.eventListeners)&&e.properties.eventListeners.forEach(function(e){t.removeEventListener(e[0],e[1])});var r=e.properties.exitAnimation;if(r){t.style.pointerEvents="none";return void r(t,function(){t.parentNode&&(t.parentNode.removeChild(t),xe(e))},e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),xe(e))},Pe=function(e,t,r){if(t){var n,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=pe(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;Re(i,e,void 0,r)}}catch(e){o.e(e)}finally{o.f()}}},Le=function(e,t,r){if(Pe(e,t.children,r),t.text&&(e.textContent=t.text),function(e,t,r){if(t)for(var n=r.eventHandlerInterceptor,o=Object.keys(t),i=o.length,a=function(){var i,a=o[s],l=t[a];if("className"===a)throw new Error('Property "className" is not supported, use "class".');if("class"===a)Fe(e,l,!0);else if("classes"===a)for(var c=Object.keys(l),u=c.length,d=0;d<u;d++){var f=c[d];l[f]&&e.classList.add(f)}else if("styles"===a)for(var p=Object.keys(l),h=p.length,m=0;m<h;m++){var y=p[m],v=l[y];v&&(Ae(v),r.styleApplyer(e,y,v))}else if("on"===a&&l)for(var b=0,g=Object.entries(t.on);b<g.length;b++){var w=fe(g[b],2),S=w[0],E=w[1],A="function"==typeof E?E:E.listener;n&&(A=n(S,A,e,t)),A&&e.addEventListener(S,A,"function"==typeof E?void 0:E.options)}else if("key"!==a&&null!=l){var k=de(l);"function"===k?(0===a.lastIndexOf("on",0)&&(n&&(l=n(a,l,e,t)),"oninput"===a&&(i=l,l=function(e){i.apply(this,[e]),e.target["oninput-value"]=e.target.value})),e[a]=l):r.namespace===ve?"href"===a?e.setAttributeNS(be,a,l):e.setAttribute(a,l):"string"===k&&"value"!==a&&"innerHTML"!==a?e.setAttribute(a,l):("string"===k&&"value"===a&&null!=e&&e.tagName.indexOf("-")&&e.setAttribute(a,l),e[a]=l)}},s=0;s<i;s++)a()}(e,t.properties,r),t.properties&&t.properties.afterCreate)t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children]);else if(t.properties&&t.properties.eventListeners){if(!Array.isArray(t.properties.eventListeners))throw new Error("eventListeners value must be an array");t.properties.eventListeners.forEach(function(t){e.addEventListener(t[0],t[1],t[2])})}},Re=function(e,t,r,n){var o,i=0,a=e.vnodeSelector,s=t.ownerDocument;if(""===a)e.domNode?e.domNode.nodeValue=e.text:(o=e.domNode=s.createTextNode(e.text),void 0!==r?t.insertBefore(o,r):t.appendChild(o));else{for(var l=0;l<=a.length;++l){var c=a.charAt(l);if(l===a.length||"."===c||"#"===c){var u=a.charAt(i-1),d=a.slice(i,l);if("."===u)o.classList.add(d);else if("#"===u)o.id=d;else{var f;if("svg"===d&&(n=Se(n,{namespace:ve})),void 0!==n.namespace)o=e.domNode=s.createElementNS(n.namespace,d);else o=e.domNode=e.domNode||(null!==(f=e.properties)&&void 0!==f&&f.is?s.createElement(d,{is:e.properties.is}):s.createElement(d)),"input"===d&&e.properties&&void 0!==e.properties.type&&o.setAttribute("type",e.properties.type);void 0!==r?t.insertBefore(o,r):o.parentNode!==t&&t.appendChild(o)}i=l+1}}Le(o,e,n)}},Fe=function(e,t,r){t&&t.split(" ").forEach(function(t){t&&e.classList.toggle(t,r)})},Ve=function(e,t,r,n,o){if(r===n)return!1;n=n||we;for(var i,a=(r=r||we).length,s=n.length,l=0,c=0,u=!1;c<s;){var d=l<a?r[l]:void 0,f=n[c];if(void 0!==d&&Ee(d,f))u=me(d,f,o)||u,l++;else{var p=ke(r,f,l+1);if(p>=0){for(i=l;i<p;i++)Ie(r[i]),Oe(r,i,e,"removed");u=me(r[p],f,o)||u,l=p+1}else Re(f,t,l<a?r[l].domNode:void 0,o),Me(f),Oe(n,c,e,"added")}c++}if(a>l)for(i=l;i<a;i++)Ie(r[i]),Oe(r,i,e,"removed");return u};me=function(e,t,r){var n=e.domNode,o=!1;if(e===t)return!1;var i=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var a=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(a,n),t.domNode=a,o=!0}t.domNode=n}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(r=Se(r,{namespace:ve})),e.text!==t.text&&(i=!0,void 0===t.text?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,i=Ve(t,n,e.children,t.children,r)||i,i=function(e,t,r,n){if(r){for(var o=!1,i=Object.keys(r),a=i.length,s=0;s<a;s++){var l=i[s],c=r[l],u=t[l];if("class"===l)u!==c&&(Fe(e,u,!1),Fe(e,c,!0));else if("classes"===l)for(var d=e.classList,f=Object.keys(c),p=f.length,h=0;h<p;h++){var m=f[h],y=!!c[m];y!==!!u[m]&&(o=!0,y?d.add(m):d.remove(m))}else if("styles"===l)for(var v=Object.keys(c),b=v.length,g=0;g<b;g++){var w=v[g],S=c[w];S!==u[w]&&(o=!0,S?(Ae(S),n.styleApplyer(e,w,S)):n.styleApplyer(e,w,""))}else if(c||"string"!=typeof u||ge.indexOf(l)<0&&(c=""),"value"===l){var E=e[l];E!==c&&(e["oninput-value"]?E===e["oninput-value"]:c!==u)&&(e[l]=c,e["oninput-value"]=void 0),c!==u&&(o=!0)}else if(ge.indexOf(l)>=0)"string"==typeof c||!0===c?(e.setAttribute(l,""),e[l]=!0):(e.removeAttribute(l),e[l]=!1),o=!0;else if(c!==u){var A=de(c);"function"===A&&n.eventHandlerInterceptor||(n.namespace===ve?"href"===l?e.setAttributeNS(be,l,c):e.setAttribute(l,c):"string"===A&&"innerHTML"!==l?"role"===l&&""===c?e.removeAttribute(l):e.setAttribute(l,c):e[l]!==c&&(e[l]=c),o=!0)}}return o}}(n,e.properties,t.properties,r)||i,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return i&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),o};var We,De=function(e,t){return{getLastRender:function(){return e},update:function(r){if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var n=e;e=r,me(n,r,t)},domNode:e.domNode}},qe={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,t,r){"-"===t.charAt(0)?e.style.setProperty(t,r):e.style[t]=r}},He=function(e){return Se(qe,e)},$e={create:function(e,t){return t=He(t),Re(e,document.createElement("div"),void 0,t),De(e,t)},append:function(e,t,r){return r=He(r),Re(t,e,void 0,r),De(t,r)},insertBefore:function(e,t,r){return r=He(r),Re(t,e.parentNode,e,r),De(t,r)},merge:function(e,t,r){return r=He(r),t.domNode=e,Le(e,t,r),De(t,r)},replace:function(e,t,r){return r=He(r),Re(t,e.parentNode,e,r),e.parentNode.removeChild(e),De(t,r)}};We=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){return e.filter(t)[0]};var _e=function(e,t,r){return function(n,o,i,a){return function(n){r("domEvent",n);var i=t(),a=function(e,t){for(var r=[];e&&e!==t;)r.push(e),e=e.parentNode;return r}(n.currentTarget,i.domNode);a.reverse();var s,l,c,u=function(e,t){var r=e;return t.forEach(function(e){r=r&&r.children?We(r.children,function(t){return t.domNode===e}):void 0}),r}(i.getLastRender(),a);(e.scheduleRender(),u)&&(s=(null!==(l=null!==(c=u.properties["on".concat(n.type)])&&void 0!==c?c:u.properties.on[n.type].listener)&&void 0!==l?l:u.properties.on[n.type]).apply(u.properties.bind||this,arguments));return void 0===s&&this.hasAttribute("data-force-event-handler")&&(s=o.apply(this,arguments)),r("domEventProcessed",n),s}}},Be=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},Ue=function(e,t){for(var r=0,n=e.length;r<n;r++){var o=e[r];Array.isArray(o)?Ue(o,t):null!=o&&!1!==o&&(o.hasOwnProperty("vnodeSelector")||(o=Be(o)),t.push(o))}},ze=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(1===n.length&&"string"==typeof n[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:n[0],domNode:null};var i=[];return Ue(n,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}},Ke={createCache:function(){var e,t;return{invalidate:function(){t=void 0,e=void 0},result:function(r,n){if(e)for(var o=0;o<r.length;o++)e[o]!==r[o]&&(t=void 0);return t||(t=n(),e=r),t}}},createMapping:function(e,t,r){var n=[],o=[];return{results:o,map:function(i){for(var a=i.map(e),s=o.slice(),l=0,c=0;c<i.length;c++){var u=i[c],d=a[c];if(d===n[l])o[c]=s[l],r(u,s[l],c),l++;else{for(var f=!1,p=1;p<n.length+1;p++){var h=(l+p)%n.length;if(n[h]===d){o[c]=s[h],r(i[c],s[h],c),l=h+1,f=!0;break}}f||(o[c]=t(u,c))}}o.length=i.length,n=a}}},createProjector:function(e){var t,r,n=He(e),o=n.performanceLogger,i=!0,a=!1,s=[],l=[],c=function(e,r,i){var a;n.eventHandlerInterceptor=_e(t,function(){return a},o),a=e(r,i(),n),s.push(a),l.push(i)},u=function(){if(r=void 0,i){i=!1,o("renderStart",void 0);for(var e=0;e<s.length;e++){var t=l[e]();o("rendered",void 0),s[e].update(t),o("patched",void 0)}o("renderDone",void 0),i=!0}};return t={renderNow:u,scheduleRender:function(){r||a||(r=requestAnimationFrame(u))},stop:function(){r&&(cancelAnimationFrame(r),r=void 0),a=!0},resume:function(){a=!1,i=!0,t.scheduleRender()},append:function(e,t){c($e.append,e,t)},insertBefore:function(e,t){c($e.insertBefore,e,t)},merge:function(e,t){c($e.merge,e,t)},replace:function(e,t){c($e.replace,e,t)},detach:function(e){for(var t=0;t<l.length;t++)if(l[t]===e)return l.splice(t,1),s.splice(t,1)[0];throw new Error("renderFunction was not found")}}},dom:$e,h:ze};!function(e){e.Maquette=Ke,e.CustomElement=Q,e.CustomElementController=ue,e.CustomElementConfig=o,e.propertyRenderOnSet=m,e.renderOnSet=m,e.property=h,e.query=i,e.bind=n}(globalThis);var Je=ze,Ze=m}();var r=t.K9,n=t.y0,o=t.Wd,i=t.zG,a=t.oI,s=t.h,l=t.MZ,c=t.vi,u=t.P,d=t.kf;export{r as CustomElement,n as CustomElementConfig,o as CustomElementController,i as Maquette,a as bind,s as h,l as property,c as propertyRenderOnSet,u as query,d as renderOnSet};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "p-elements-core",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "P Elements Core V2",
5
5
  "main": "dist/p-elements-core.js",
6
6
  "types": "typings/p-elements-core.d.ts",