franken-ui
Version:
Franken UI is an HTML-first, open-source library of UI components based on the utility-first Tailwind CSS with UIkit 3 compatibility. The design is based on shadcn/ui ported to be framework-agnostic.
3 lines • 221 kB
JavaScript
var FRANKENUICORE=function(x){"use strict";var So;const ji=globalThis,zi=ji.ShadowRoot&&(ji.ShadyCSS===void 0||ji.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cs=Symbol(),Kn=new WeakMap;let Ts=class{constructor(n,r,c){if(this._$cssResult$=!0,c!==Cs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=r}get styleSheet(){let n=this.o;const r=this.t;if(zi&&n===void 0){const c=r!==void 0&&r.length===1;c&&(n=Kn.get(r)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),c&&Kn.set(r,n))}return n}toString(){return this.cssText}};const Jn=d=>new Ts(typeof d=="string"?d:d+"",void 0,Cs),Ba=(d,...n)=>{const r=d.length===1?d[0]:n.reduce((c,h,g)=>c+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(h)+d[g+1],d[0]);return new Ts(r,d,Cs)},Gn=(d,n)=>{if(zi)d.adoptedStyleSheets=n.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of n){const c=document.createElement("style"),h=ji.litNonce;h!==void 0&&c.setAttribute("nonce",h),c.textContent=r.cssText,d.appendChild(c)}},Ps=zi?d=>d:d=>d instanceof CSSStyleSheet?(n=>{let r="";for(const c of n.cssRules)r+=c.cssText;return Jn(r)})(d):d;const{is:Ra,defineProperty:ja,getOwnPropertyDescriptor:za,getOwnPropertyNames:Fa,getOwnPropertySymbols:Ua,getPrototypeOf:qa}=Object,Xt=globalThis,Xn=Xt.trustedTypes,Wa=Xn?Xn.emptyScript:"",Os=Xt.reactiveElementPolyfillSupport,ei=(d,n)=>d,ii={toAttribute(d,n){switch(n){case Boolean:d=d?Wa:null;break;case Object:case Array:d=d==null?d:JSON.stringify(d)}return d},fromAttribute(d,n){let r=d;switch(n){case Boolean:r=d!==null;break;case Number:r=d===null?null:Number(d);break;case Object:case Array:try{r=JSON.parse(d)}catch{r=null}}return r}},Fi=(d,n)=>!Ra(d,n),Zn={attribute:!0,type:String,converter:ii,reflect:!1,hasChanged:Fi};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Xt.litPropertyMetadata??(Xt.litPropertyMetadata=new WeakMap);let le=class extends HTMLElement{static addInitializer(n){this._$Ei(),(this.l??(this.l=[])).push(n)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(n,r=Zn){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(n,r),!r.noAccessor){const c=Symbol(),h=this.getPropertyDescriptor(n,c,r);h!==void 0&&ja(this.prototype,n,h)}}static getPropertyDescriptor(n,r,c){const{get:h,set:g}=za(this.prototype,n)??{get(){return this[r]},set(p){this[r]=p}};return{get(){return h==null?void 0:h.call(this)},set(p){const k=h==null?void 0:h.call(this);g.call(this,p),this.requestUpdate(n,k,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)??Zn}static _$Ei(){if(this.hasOwnProperty(ei("elementProperties")))return;const n=qa(this);n.finalize(),n.l!==void 0&&(this.l=[...n.l]),this.elementProperties=new Map(n.elementProperties)}static finalize(){if(this.hasOwnProperty(ei("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ei("properties"))){const r=this.properties,c=[...Fa(r),...Ua(r)];for(const h of c)this.createProperty(h,r[h])}const n=this[Symbol.metadata];if(n!==null){const r=litPropertyMetadata.get(n);if(r!==void 0)for(const[c,h]of r)this.elementProperties.set(c,h)}this._$Eh=new Map;for(const[r,c]of this.elementProperties){const h=this._$Eu(r,c);h!==void 0&&this._$Eh.set(h,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(n){const r=[];if(Array.isArray(n)){const c=new Set(n.flat(1/0).reverse());for(const h of c)r.unshift(Ps(h))}else n!==void 0&&r.push(Ps(n));return r}static _$Eu(n,r){const c=r.attribute;return c===!1?void 0:typeof c=="string"?c:typeof n=="string"?n.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var n;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(n=this.constructor.l)==null||n.forEach(r=>r(this))}addController(n){var r;(this._$EO??(this._$EO=new Set)).add(n),this.renderRoot!==void 0&&this.isConnected&&((r=n.hostConnected)==null||r.call(n))}removeController(n){var r;(r=this._$EO)==null||r.delete(n)}_$E_(){const n=new Map,r=this.constructor.elementProperties;for(const c of r.keys())this.hasOwnProperty(c)&&(n.set(c,this[c]),delete this[c]);n.size>0&&(this._$Ep=n)}createRenderRoot(){const n=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Gn(n,this.constructor.elementStyles),n}connectedCallback(){var n;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$EO)==null||n.forEach(r=>{var c;return(c=r.hostConnected)==null?void 0:c.call(r)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$EO)==null||n.forEach(r=>{var c;return(c=r.hostDisconnected)==null?void 0:c.call(r)})}attributeChangedCallback(n,r,c){this._$AK(n,c)}_$EC(n,r){var g;const c=this.constructor.elementProperties.get(n),h=this.constructor._$Eu(n,c);if(h!==void 0&&c.reflect===!0){const p=(((g=c.converter)==null?void 0:g.toAttribute)!==void 0?c.converter:ii).toAttribute(r,c.type);this._$Em=n,p==null?this.removeAttribute(h):this.setAttribute(h,p),this._$Em=null}}_$AK(n,r){var g;const c=this.constructor,h=c._$Eh.get(n);if(h!==void 0&&this._$Em!==h){const p=c.getPropertyOptions(h),k=typeof p.converter=="function"?{fromAttribute:p.converter}:((g=p.converter)==null?void 0:g.fromAttribute)!==void 0?p.converter:ii;this._$Em=h,this[h]=k.fromAttribute(r,p.type),this._$Em=null}}requestUpdate(n,r,c){if(n!==void 0){if(c??(c=this.constructor.getPropertyOptions(n)),!(c.hasChanged??Fi)(this[n],r))return;this.P(n,r,c)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(n,r,c){this._$AL.has(n)||this._$AL.set(n,r),c.reflect===!0&&this._$Em!==n&&(this._$Ej??(this._$Ej=new Set)).add(n)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const n=this.scheduleUpdate();return n!=null&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var c;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[g,p]of this._$Ep)this[g]=p;this._$Ep=void 0}const h=this.constructor.elementProperties;if(h.size>0)for(const[g,p]of h)p.wrapped!==!0||this._$AL.has(g)||this[g]===void 0||this.P(g,this[g],p)}let n=!1;const r=this._$AL;try{n=this.shouldUpdate(r),n?(this.willUpdate(r),(c=this._$EO)==null||c.forEach(h=>{var g;return(g=h.hostUpdate)==null?void 0:g.call(h)}),this.update(r)):this._$EU()}catch(h){throw n=!1,this._$EU(),h}n&&this._$AE(r)}willUpdate(n){}_$AE(n){var r;(r=this._$EO)==null||r.forEach(c=>{var h;return(h=c.hostUpdated)==null?void 0:h.call(c)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(n){return!0}update(n){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(n){}firstUpdated(n){}};le.elementStyles=[],le.shadowRootOptions={mode:"open"},le[ei("elementProperties")]=new Map,le[ei("finalized")]=new Map,Os==null||Os({ReactiveElement:le}),(Xt.reactiveElementVersions??(Xt.reactiveElementVersions=[])).push("2.0.4");const si=globalThis,Ui=si.trustedTypes,Qn=Ui?Ui.createPolicy("lit-html",{createHTML:d=>d}):void 0,Ds="$lit$",Rt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ms="?"+Rt,Va=`<${Ms}>`,he=document,ni=()=>he.createComment(""),oi=d=>d===null||typeof d!="object"&&typeof d!="function",to=Array.isArray,eo=d=>to(d)||typeof(d==null?void 0:d[Symbol.iterator])=="function",Hs=`[
\f\r]`,ri=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,io=/-->/g,so=/>/g,ce=RegExp(`>|${Hs}(?:([^\\s"'>=/]+)(${Hs}*=${Hs}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),no=/'/g,oo=/"/g,ro=/^(?:script|style|textarea|title)$/i,ao=d=>(n,...r)=>({_$litType$:d,strings:n,values:r}),O=ao(1),Ya=ao(2),Zt=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),lo=new WeakMap,ue=he.createTreeWalker(he,129);function ho(d,n){if(!Array.isArray(d)||!d.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qn!==void 0?Qn.createHTML(n):n}const co=(d,n)=>{const r=d.length-1,c=[];let h,g=n===2?"<svg>":"",p=ri;for(let k=0;k<r;k++){const y=d[k];let _,w,E=-1,P=0;for(;P<y.length&&(p.lastIndex=P,w=p.exec(y),w!==null);)P=p.lastIndex,p===ri?w[1]==="!--"?p=io:w[1]!==void 0?p=so:w[2]!==void 0?(ro.test(w[2])&&(h=RegExp("</"+w[2],"g")),p=ce):w[3]!==void 0&&(p=ce):p===ce?w[0]===">"?(p=h??ri,E=-1):w[1]===void 0?E=-2:(E=p.lastIndex-w[2].length,_=w[1],p=w[3]===void 0?ce:w[3]==='"'?oo:no):p===oo||p===no?p=ce:p===io||p===so?p=ri:(p=ce,h=void 0);const H=p===ce&&d[k+1].startsWith("/>")?" ":"";g+=p===ri?y+Va:E>=0?(c.push(_),y.slice(0,E)+Ds+y.slice(E)+Rt+H):y+Rt+(E===-2?k:H)}return[ho(d,g+(d[r]||"<?>")+(n===2?"</svg>":"")),c]};class ai{constructor({strings:n,_$litType$:r},c){let h;this.parts=[];let g=0,p=0;const k=n.length-1,y=this.parts,[_,w]=co(n,r);if(this.el=ai.createElement(_,c),ue.currentNode=this.el.content,r===2){const E=this.el.content.firstChild;E.replaceWith(...E.childNodes)}for(;(h=ue.nextNode())!==null&&y.length<k;){if(h.nodeType===1){if(h.hasAttributes())for(const E of h.getAttributeNames())if(E.endsWith(Ds)){const P=w[p++],H=h.getAttribute(E).split(Rt),V=/([.?@])?(.*)/.exec(P);y.push({type:1,index:g,name:V[2],strings:H,ctor:V[1]==="."?fo:V[1]==="?"?po:V[1]==="@"?go:li}),h.removeAttribute(E)}else E.startsWith(Rt)&&(y.push({type:6,index:g}),h.removeAttribute(E));if(ro.test(h.tagName)){const E=h.textContent.split(Rt),P=E.length-1;if(P>0){h.textContent=Ui?Ui.emptyScript:"";for(let H=0;H<P;H++)h.append(E[H],ni()),ue.nextNode(),y.push({type:2,index:++g});h.append(E[P],ni())}}}else if(h.nodeType===8)if(h.data===Ms)y.push({type:2,index:g});else{let E=-1;for(;(E=h.data.indexOf(Rt,E+1))!==-1;)y.push({type:7,index:g}),E+=Rt.length-1}g++}}static createElement(n,r){const c=he.createElement("template");return c.innerHTML=n,c}}function de(d,n,r=d,c){var p,k;if(n===Zt)return n;let h=c!==void 0?(p=r._$Co)==null?void 0:p[c]:r._$Cl;const g=oi(n)?void 0:n._$litDirective$;return(h==null?void 0:h.constructor)!==g&&((k=h==null?void 0:h._$AO)==null||k.call(h,!1),g===void 0?h=void 0:(h=new g(d),h._$AT(d,r,c)),c!==void 0?(r._$Co??(r._$Co=[]))[c]=h:r._$Cl=h),h!==void 0&&(n=de(d,h._$AS(d,n.values),h,c)),n}class uo{constructor(n,r){this._$AV=[],this._$AN=void 0,this._$AD=n,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(n){const{el:{content:r},parts:c}=this._$AD,h=((n==null?void 0:n.creationScope)??he).importNode(r,!0);ue.currentNode=h;let g=ue.nextNode(),p=0,k=0,y=c[0];for(;y!==void 0;){if(p===y.index){let _;y.type===2?_=new Oe(g,g.nextSibling,this,n):y.type===1?_=new y.ctor(g,y.name,y.strings,this,n):y.type===6&&(_=new mo(g,this,n)),this._$AV.push(_),y=c[++k]}p!==(y==null?void 0:y.index)&&(g=ue.nextNode(),p++)}return ue.currentNode=he,h}p(n){let r=0;for(const c of this._$AV)c!==void 0&&(c.strings!==void 0?(c._$AI(n,c,r),r+=c.strings.length-2):c._$AI(n[r])),r++}}class Oe{get _$AU(){var n;return((n=this._$AM)==null?void 0:n._$AU)??this._$Cv}constructor(n,r,c,h){this.type=2,this._$AH=lt,this._$AN=void 0,this._$AA=n,this._$AB=r,this._$AM=c,this.options=h,this._$Cv=(h==null?void 0:h.isConnected)??!0}get parentNode(){let n=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(n==null?void 0:n.nodeType)===11&&(n=r.parentNode),n}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(n,r=this){n=de(this,n,r),oi(n)?n===lt||n==null||n===""?(this._$AH!==lt&&this._$AR(),this._$AH=lt):n!==this._$AH&&n!==Zt&&this._(n):n._$litType$!==void 0?this.$(n):n.nodeType!==void 0?this.T(n):eo(n)?this.k(n):this._(n)}S(n){return this._$AA.parentNode.insertBefore(n,this._$AB)}T(n){this._$AH!==n&&(this._$AR(),this._$AH=this.S(n))}_(n){this._$AH!==lt&&oi(this._$AH)?this._$AA.nextSibling.data=n:this.T(he.createTextNode(n)),this._$AH=n}$(n){var g;const{values:r,_$litType$:c}=n,h=typeof c=="number"?this._$AC(n):(c.el===void 0&&(c.el=ai.createElement(ho(c.h,c.h[0]),this.options)),c);if(((g=this._$AH)==null?void 0:g._$AD)===h)this._$AH.p(r);else{const p=new uo(h,this),k=p.u(this.options);p.p(r),this.T(k),this._$AH=p}}_$AC(n){let r=lo.get(n.strings);return r===void 0&&lo.set(n.strings,r=new ai(n)),r}k(n){to(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let c,h=0;for(const g of n)h===r.length?r.push(c=new Oe(this.S(ni()),this.S(ni()),this,this.options)):c=r[h],c._$AI(g),h++;h<r.length&&(this._$AR(c&&c._$AB.nextSibling,h),r.length=h)}_$AR(n=this._$AA.nextSibling,r){var c;for((c=this._$AP)==null?void 0:c.call(this,!1,!0,r);n&&n!==this._$AB;){const h=n.nextSibling;n.remove(),n=h}}setConnected(n){var r;this._$AM===void 0&&(this._$Cv=n,(r=this._$AP)==null||r.call(this,n))}}class li{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(n,r,c,h,g){this.type=1,this._$AH=lt,this._$AN=void 0,this.element=n,this.name=r,this._$AM=h,this.options=g,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=lt}_$AI(n,r=this,c,h){const g=this.strings;let p=!1;if(g===void 0)n=de(this,n,r,0),p=!oi(n)||n!==this._$AH&&n!==Zt,p&&(this._$AH=n);else{const k=n;let y,_;for(n=g[0],y=0;y<g.length-1;y++)_=de(this,k[c+y],r,y),_===Zt&&(_=this._$AH[y]),p||(p=!oi(_)||_!==this._$AH[y]),_===lt?n=lt:n!==lt&&(n+=(_??"")+g[y+1]),this._$AH[y]=_}p&&!h&&this.j(n)}j(n){n===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n??"")}}class fo extends li{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===lt?void 0:n}}class po extends li{constructor(){super(...arguments),this.type=4}j(n){this.element.toggleAttribute(this.name,!!n&&n!==lt)}}class go extends li{constructor(n,r,c,h,g){super(n,r,c,h,g),this.type=5}_$AI(n,r=this){if((n=de(this,n,r,0)??lt)===Zt)return;const c=this._$AH,h=n===lt&&c!==lt||n.capture!==c.capture||n.once!==c.once||n.passive!==c.passive,g=n!==lt&&(c===lt||h);h&&this.element.removeEventListener(this.name,this,c),g&&this.element.addEventListener(this.name,this,n),this._$AH=n}handleEvent(n){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,n):this._$AH.handleEvent(n)}}class mo{constructor(n,r,c){this.element=n,this.type=6,this._$AN=void 0,this._$AM=r,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(n){de(this,n)}}const vo={P:Ds,A:Rt,C:Ms,M:1,L:co,R:uo,D:eo,V:de,I:Oe,H:li,N:po,U:go,B:fo,F:mo},Ns=si.litHtmlPolyfillSupport;Ns==null||Ns(ai,Oe),(si.litHtmlVersions??(si.litHtmlVersions=[])).push("3.1.4");const $o=(d,n,r)=>{const c=(r==null?void 0:r.renderBefore)??n;let h=c._$litPart$;if(h===void 0){const g=(r==null?void 0:r.renderBefore)??null;c._$litPart$=h=new Oe(n.insertBefore(ni(),g),g,void 0,r??{})}return h._$AI(d),h};let De=class extends le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const n=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=n.firstChild),n}update(n){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=$o(r,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)==null||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)==null||n.setConnected(!1)}render(){return Zt}};De._$litElement$=!0,De.finalized=!0,(So=globalThis.litElementHydrateSupport)==null||So.call(globalThis,{LitElement:De});const Ls=globalThis.litElementPolyfillSupport;Ls==null||Ls({LitElement:De});const Ka={_$AK:(d,n,r)=>{d._$AK(n,r)},_$AL:d=>d._$AL};(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");const Ja=Object.freeze(Object.defineProperty({__proto__:null,CSSResult:Ts,LitElement:De,ReactiveElement:le,_$LE:Ka,_$LH:vo,adoptStyles:Gn,css:Ba,defaultConverter:ii,getCompatibleStyle:Ps,html:O,isServer:!1,noChange:Zt,notEqual:Fi,nothing:lt,render:$o,supportsAdoptingStyleSheets:zi,svg:Ya,unsafeCSS:Jn},Symbol.toStringTag,{value:"Module"}));const Nt=d=>(n,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(d,n)}):customElements.define(d,n)};const Ga={attribute:!0,type:String,converter:ii,reflect:!1,hasChanged:Fi},bo=(d=Ga,n,r)=>{const{kind:c,metadata:h}=r;let g=globalThis.litPropertyMetadata.get(h);if(g===void 0&&globalThis.litPropertyMetadata.set(h,g=new Map),g.set(r.name,d),c==="accessor"){const{name:p}=r;return{set(k){const y=n.get.call(this);n.set.call(this,k),this.requestUpdate(p,y,d)},init(k){return k!==void 0&&this.P(p,void 0,d),k}}}if(c==="setter"){const{name:p}=r;return function(k){const y=this[p];n.call(this,k),this.requestUpdate(p,y,d)}}throw Error("Unsupported decorator location: "+c)};function M(d){return(n,r)=>typeof r=="object"?bo(d,n,r):((c,h,g)=>{const p=h.hasOwnProperty(g);return h.constructor.createProperty(g,p?{...c,wrapped:!0}:c),p?Object.getOwnPropertyDescriptor(h,g):void 0})(d,n,r)}function W(d){return M({...d,state:!0,attribute:!1})}function Xa(d){return(n,r)=>{const c=typeof n=="function"?n:n[r];Object.assign(c,d)}}const Me=(d,n,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof n!="object"&&Object.defineProperty(d,n,r),r);function Za(d,n){return(r,c,h)=>{const g=p=>{var k;return((k=p.renderRoot)==null?void 0:k.querySelector(d))??null};if(n){const{get:p,set:k}=typeof c=="object"?r:h??(()=>{const y=Symbol();return{get(){return this[y]},set(_){this[y]=_}}})();return Me(r,c,{get(){let y=p.call(this);return y===void 0&&(y=g(this),(y!==null||this.hasUpdated)&&k.call(this,y)),y}})}return Me(r,c,{get(){return g(this)}})}}let Qa;function tl(d){return(n,r)=>Me(n,r,{get(){return(this.renderRoot??Qa??(Qa=document.createDocumentFragment())).querySelectorAll(d)}})}function el(d){return(n,r)=>Me(n,r,{async get(){var c;return await this.updateComplete,((c=this.renderRoot)==null?void 0:c.querySelector(d))??null}})}function il(d){return(n,r)=>{const{slot:c,selector:h}=d??{},g="slot"+(c?`[name=${c}]`:":not([name])");return Me(n,r,{get(){var y;const p=(y=this.renderRoot)==null?void 0:y.querySelector(g),k=(p==null?void 0:p.assignedElements(d))??[];return h===void 0?k:k.filter(_=>_.matches(h))}})}}function sl(d){return(n,r)=>{const{slot:c}=d??{},h="slot"+(c?`[name=${c}]`:":not([name])");return Me(n,r,{get(){var p;const g=(p=this.renderRoot)==null?void 0:p.querySelector(h);return(g==null?void 0:g.assignedNodes(d))??[]}})}}const nl=Object.freeze(Object.defineProperty({__proto__:null,customElement:Nt,eventOptions:Xa,property:M,query:Za,queryAll:tl,queryAssignedElements:il,queryAssignedNodes:sl,queryAsync:el,standardProperty:bo,state:W},Symbol.toStringTag,{value:"Module"}));const ol={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},rl=d=>(...n)=>({_$litDirective$:d,values:n});class al{constructor(n){}get _$AU(){return this._$AM._$AU}_$AT(n,r,c){this._$Ct=n,this._$AM=r,this._$Ci=c}_$AS(n,r){return this.update(n,r)}update(n,r){return this.render(...r)}}const{I:ll}=vo,wo=()=>document.createComment(""),hi=(d,n,r)=>{var g;const c=d._$AA.parentNode,h=n===void 0?d._$AB:n._$AA;if(r===void 0){const p=c.insertBefore(wo(),h),k=c.insertBefore(wo(),h);r=new ll(p,k,d,d.options)}else{const p=r._$AB.nextSibling,k=r._$AM,y=k!==d;if(y){let _;(g=r._$AQ)==null||g.call(r,d),r._$AM=d,r._$AP!==void 0&&(_=d._$AU)!==k._$AU&&r._$AP(_)}if(p!==h||y){let _=r._$AA;for(;_!==p;){const w=_.nextSibling;c.insertBefore(_,h),_=w}}}return r},fe=(d,n,r=d)=>(d._$AI(n,r),d),hl={},cl=(d,n=hl)=>d._$AH=n,ul=d=>d._$AH,Bs=d=>{var c;(c=d._$AP)==null||c.call(d,!1,!0);let n=d._$AA;const r=d._$AB.nextSibling;for(;n!==r;){const h=n.nextSibling;n.remove(),n=h}};const yo=(d,n,r)=>{const c=new Map;for(let h=n;h<=r;h++)c.set(d[h],h);return c},jt=rl(class extends al{constructor(d){if(super(d),d.type!==ol.CHILD)throw Error("repeat() can only be used in text expressions")}dt(d,n,r){let c;r===void 0?r=n:n!==void 0&&(c=n);const h=[],g=[];let p=0;for(const k of d)h[p]=c?c(k,p):p,g[p]=r(k,p),p++;return{values:g,keys:h}}render(d,n,r){return this.dt(d,n,r).values}update(d,[n,r,c]){const h=ul(d),{values:g,keys:p}=this.dt(n,r,c);if(!Array.isArray(h))return this.ut=p,g;const k=this.ut??(this.ut=[]),y=[];let _,w,E=0,P=h.length-1,H=0,V=g.length-1;for(;E<=P&&H<=V;)if(h[E]===null)E++;else if(h[P]===null)P--;else if(k[E]===p[H])y[H]=fe(h[E],g[H]),E++,H++;else if(k[P]===p[V])y[V]=fe(h[P],g[V]),P--,V--;else if(k[E]===p[V])y[V]=fe(h[E],g[V]),hi(d,y[V+1],h[E]),E++,V--;else if(k[P]===p[H])y[H]=fe(h[P],g[H]),hi(d,h[E],h[P]),P--,H++;else if(_===void 0&&(_=yo(p,H,V),w=yo(k,E,P)),_.has(k[E]))if(_.has(k[P])){const tt=w.get(p[H]),Et=tt!==void 0?h[tt]:null;if(Et===null){const te=hi(d,h[E]);fe(te,g[H]),y[H]=te}else y[H]=fe(Et,g[H]),hi(d,h[E],Et),h[tt]=null;H++}else Bs(h[P]),P--;else Bs(h[E]),E++;for(;H<=V;){const tt=hi(d,y[V+1]);fe(tt,g[H]),y[H++]=tt}for(;E<=P;){const tt=h[E++];tt!==null&&Bs(tt)}return this.ut=p,cl(d,y),Zt}});(function(d,n){typeof x=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define("uikit",n):(d=typeof globalThis<"u"?globalThis:d||self,d.UIkit=n())})(void 0,function(){const{hasOwnProperty:d,toString:n}=Object.prototype;function r(t,e){return d.call(t,e)}const c=/\B([A-Z])/g,h=It(t=>t.replace(c,"-$1").toLowerCase()),g=/-(\w)/g,p=It(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(g,(e,i)=>i.toUpperCase())),k=It(t=>t.charAt(0).toUpperCase()+t.slice(1));function y(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function _(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function w(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function E(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:P,from:H}=Array,{assign:V}=Object;function tt(t){return typeof t=="function"}function Et(t){return t!==null&&typeof t=="object"}function te(t){return n.call(t)==="[object Object]"}function Ki(t){return Et(t)&&t===t.window}function di(t){return zs(t)===9}function fi(t){return zs(t)>=1}function Be(t){return zs(t)===1}function zs(t){return!Ki(t)&&Et(t)&&t.nodeType}function Re(t){return typeof t=="boolean"}function nt(t){return typeof t=="string"}function pi(t){return typeof t=="number"}function Ft(t){return pi(t)||nt(t)&&!isNaN(t-parseFloat(t))}function Ji(t){return!(P(t)?t.length:Et(t)&&Object.keys(t).length)}function pt(t){return t===void 0}function Fs(t){return Re(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function Ut(t){const e=Number(t);return isNaN(e)?!1:e}function R(t){return parseFloat(t)||0}function at(t){return t&&F(t)[0]}function F(t){return fi(t)?[t]:Array.from(t||[]).filter(fi)}function ge(t){if(Ki(t))return t;t=at(t);const e=di(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function gi(t,e){return t===e||Et(t)&&Et(e)&&Object.keys(t).length===Object.keys(e).length&&je(t,(i,s)=>i===e[s])}function Us(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),s=>s===e?i:e)}function me(t){return t[t.length-1]}function je(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function _o(t,e){return t.slice().sort(({[e]:i=0},{[e]:s=0})=>i>s?1:s>i?-1:0)}function ve(t,e){return t.reduce((i,s)=>i+R(tt(e)?e(s):s[e]),0)}function Ao(t,e){const i=new Set;return t.filter(({[e]:s})=>i.has(s)?!1:i.add(s))}function qs(t,e){return e.reduce((i,s)=>({...i,[s]:t[s]}),{})}function mt(t,e=0,i=1){return Math.min(Math.max(Ut(t)||0,e),i)}function ht(){}function Ws(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:s})=>s))-Math.max(...t.map(({[i]:s})=>s))>0)}function Gi(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Vs(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function Eo(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Vs(t,i,e[i]):t;return t}function jl(t,e){t=Eo(t,e);for(const i in t)t=t[i]<e[i]?Vs(t,i,e[i]):t;return t}const Ys={ratio:Vs,contain:Eo,cover:jl};function yt(t,e,i=0,s=!1){e=F(e);const{length:o}=e;return o?(t=Ft(t)?Ut(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?o-1:e.indexOf(at(t)),s?mt(t,0,o-1):(t%=o,t<0?t+o:t)):-1}function It(t){const e=Object.create(null);return(i,...s)=>e[i]||(e[i]=t(i,...s))}function j(t,...e){for(const i of F(t)){const s=$e(e).filter(o=>!L(i,o));s.length&&i.classList.add(...s)}}function Z(t,...e){for(const i of F(t)){const s=$e(e).filter(o=>L(i,o));s.length&&i.classList.remove(...s)}}function Ks(t,e,i){i=$e(i),e=$e(e).filter(s=>!w(i,s)),Z(t,e),j(t,i)}function L(t,e){return[e]=$e(e),F(t).some(i=>i.classList.contains(e))}function it(t,e,i){const s=$e(e);pt(i)||(i=!!i);for(const o of F(t))for(const a of s)o.classList.toggle(a,i)}function $e(t){return t?P(t)?t.map($e).flat():String(t).split(" ").filter(Boolean):[]}function A(t,e,i){var s;if(Et(e)){for(const o in e)A(t,o,e[o]);return}if(pt(i))return(s=at(t))==null?void 0:s.getAttribute(e);for(const o of F(t))tt(i)&&(i=i.call(o,A(o,e))),i===null?mi(o,e):o.setAttribute(e,i)}function ee(t,e){return F(t).some(i=>i.hasAttribute(e))}function mi(t,e){F(t).forEach(i=>i.removeAttribute(e))}function vt(t,e){for(const i of[e,`data-${e}`])if(ee(t,i))return A(t,i)}const be=typeof window<"u",ct=be&&document.dir==="rtl",ze=be&&"ontouchstart"in window,Fe=be&&window.PointerEvent,Ct=Fe?"pointerdown":ze?"touchstart":"mousedown",Xi=Fe?"pointermove":ze?"touchmove":"mousemove",ie=Fe?"pointerup":ze?"touchend":"mouseup",we=Fe?"pointerenter":ze?"":"mouseenter",Ue=Fe?"pointerleave":ze?"":"mouseleave",Zi=Fe?"pointercancel":"touchcancel",zl={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Js(t){return F(t).some(e=>zl[e.tagName.toLowerCase()])}const Fl=be&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function ut(t){return F(t).some(e=>Fl.call(e))}const vi="input,select,textarea,button";function Qi(t){return F(t).some(e=>Y(e,vi))}const $i=`${vi},a[href],[tabindex]`;function ts(t){return Y(t,$i)}function J(t){var e;return(e=at(t))==null?void 0:e.parentElement}function bi(t,e){return F(t).filter(i=>Y(i,e))}function Y(t,e){return F(t).some(i=>i.matches(e))}function qe(t,e){const i=[];for(;t=J(t);)(!e||Y(t,e))&&i.push(t);return i}function G(t,e){t=at(t);const i=t?H(t.children):[];return e?bi(i,e):i}function qt(t,e){return e?F(t).indexOf(at(e)):G(J(t)).indexOf(t)}function We(t){return t=at(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function Gs(t){if(We(t)){const{hash:e,ownerDocument:i}=at(t),s=decodeURIComponent(e).slice(1);return s?i.getElementById(s)||i.getElementsByName(s)[0]:i.documentElement}}function Tt(t,e){return Xs(t,Io(t,e))}function wi(t,e){return yi(t,Io(t,e))}function Xs(t,e){return at(Po(t,at(e),"querySelector"))}function yi(t,e){return F(Po(t,at(e),"querySelectorAll"))}function Io(t,e=document){return di(e)||Co(t).isContextSelector?e:e.ownerDocument}const Ul=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,ql=/(\([^)]*\)|[^,])+/g,Co=It(t=>{let e=!1;if(!t||!nt(t))return{};const i=[];for(let s of t.match(ql))s=s.trim().replace(Ul,"$1 *"),e||(e=["!","+","~","-",">"].includes(s[0])),i.push(s);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Wl=/(\([^)]*\)|\S)*/,To=It(t=>{t=t.slice(1).trim();const[e]=t.match(Wl);return[e,t.slice(e.length+1)]});function Po(t,e=document,i){const s=Co(t);if(!s.isContextSelector)return s.selector?Zs(e,i,s.selector):t;t="";const o=s.selectors.length===1;for(let a of s.selectors){let l,u=e;if(a[0]==="!"&&([l,a]=To(a),u=e.parentElement.closest(l),!a&&o)||u&&a[0]==="-"&&([l,a]=To(a),u=u.previousElementSibling,u=Y(u,l)?u:null,!a&&o))return u;if(u){if(o)return a[0]==="~"||a[0]==="+"?(a=`:scope > :nth-child(${qt(u)+1}) ${a}`,u=u.parentElement):a[0]===">"&&(a=`:scope ${a}`),Zs(u,i,a);t+=`${t?",":""}${Vl(u)} ${a}`}}return di(e)||(e=e.ownerDocument),Zs(e,i,t)}function Zs(t,e,i){try{return t[e](i)}catch{return null}}function Vl(t){const e=[];for(;t.parentNode;){const i=A(t,"id");if(i){e.unshift(`#${Qs(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${qt(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Qs(t){return nt(t)?CSS.escape(t):""}function z(...t){let[e,i,s,o,a=!1]=tn(t);o.length>1&&(o=Kl(o)),a!=null&&a.self&&(o=Jl(o)),s&&(o=Yl(s,o));for(const l of i)for(const u of e)u.addEventListener(l,o,a);return()=>ye(e,i,o,a)}function ye(...t){let[e,i,,s,o=!1]=tn(t);for(const a of i)for(const l of e)l.removeEventListener(a,s,o)}function st(...t){const[e,i,s,o,a=!1,l]=tn(t),u=z(e,i,s,f=>{const v=!l||l(f);v&&(u(),o(f,v))},a);return u}function C(t,e,i){return en(t).every(s=>s.dispatchEvent(Ve(e,!0,!0,i)))}function Ve(t,e=!0,i=!1,s){return nt(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:s})),t}function tn(t){return t[0]=en(t[0]),nt(t[1])&&(t[1]=t[1].split(" ")),tt(t[2])&&t.splice(2,0,!1),t}function Yl(t,e){return i=>{const s=t[0]===">"?yi(t,i.currentTarget).reverse().find(o=>o.contains(i.target)):i.target.closest(t);s&&(i.current=s,e.call(this,i),delete i.current)}}function Kl(t){return e=>P(e.detail)?t(e,...e.detail):t(e)}function Jl(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function Oo(t){return t&&"addEventListener"in t}function Gl(t){return Oo(t)?t:at(t)}function en(t){return P(t)?t.map(Gl).filter(Boolean):nt(t)?yi(t):Oo(t)?[t]:F(t)}function Ht(t){return t.pointerType==="touch"||!!t.touches}function Wt(t){var e,i;const{clientX:s,clientY:o}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:s,y:o}}const Xl={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function m(t,e,i,s){const o=F(t);for(const a of o)if(nt(e)){if(e=es(e),pt(i))return getComputedStyle(a).getPropertyValue(e);a.style.setProperty(e,Ft(i)&&!Xl[e]?`${i}px`:i||pi(i)?i:"",s)}else if(P(e)){const l={};for(const u of e)l[u]=m(a,u);return l}else if(Et(e))for(const l in e)m(a,l,e[l],i);return o[0]}const es=It(t=>{if(y(t,"--"))return t;t=h(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const s=`-${i}-${t}`;if(s in e)return s}}),sn="uk-transition",nn="transitionend",on="transitioncanceled";function Zl(t,e,i=400,s="linear"){return i=Math.round(i),Promise.all(F(t).map(o=>new Promise((a,l)=>{for(const f in e)m(o,f);const u=setTimeout(()=>C(o,nn),i);st(o,[nn,on],({type:f})=>{clearTimeout(u),Z(o,sn),m(o,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),f===on?l():a(o)},{self:!0}),j(o,sn),m(o,{transitionProperty:Object.keys(e).map(es).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:s,...e})})))}const X={start:Zl,async stop(t){C(t,nn),await Promise.resolve()},async cancel(t){C(t,on),await Promise.resolve()},inProgress(t){return L(t,sn)}},ki="uk-anmt",Do="animationend",is="animationcanceled";function Mo(t,e,i=200,s,o){return Promise.all(F(t).map(a=>new Promise((l,u)=>{L(a,ki)&&C(a,is);const f=[e,ki,`${ki}-${o?"leave":"enter"}`,s&&`uk-transform-origin-${s}`,o&&`${ki}-reverse`],v=setTimeout(()=>C(a,Do),i);st(a,[Do,is],({type:$})=>{clearTimeout(v),$===is?u():l(a),m(a,"animationDuration",""),Z(a,f)},{self:!0}),m(a,"animationDuration",`${i}ms`),j(a,f)})))}const se={in:Mo,out(t,e,i,s){return Mo(t,e,i,s,!0)},inProgress(t){return L(t,ki)},cancel(t){C(t,is)}};function Ql(t){if(document.readyState!=="loading"){t();return}st(document,"DOMContentLoaded",t)}function et(t,...e){return e.some(i=>{var s;return((s=t==null?void 0:t.tagName)==null?void 0:s.toLowerCase())===i.toLowerCase()})}function Ho(t){return t=N(t),t&&(t.innerHTML=""),t}function Vt(t,e){return pt(e)?N(t).innerHTML:ot(Ho(t),e)}const th=os("prepend"),ot=os("append"),ss=os("before"),ns=os("after");function os(t){return function(e,i){var s;const o=F(nt(i)?Yt(i):i);return(s=N(e))==null||s[t](...o),No(o)}}function $t(t){F(t).forEach(e=>e.remove())}function xi(t,e){for(e=at(ss(t,e));e.firstElementChild;)e=e.firstElementChild;return ot(e,t),e}function rn(t,e){return F(F(t).map(i=>i.hasChildNodes()?xi(H(i.childNodes),e):ot(i,e)))}function Si(t){F(t).map(J).filter((e,i,s)=>s.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const eh=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Yt(t){const e=eh.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),No(i.content.childNodes)}function No(t){return t.length>1?t:t[0]}function ne(t,e){if(Be(t))for(e(t),t=t.firstElementChild;t;)ne(t,e),t=t.nextElementSibling}function N(t,e){return Lo(t)?at(Yt(t)):Xs(t,e)}function Q(t,e){return Lo(t)?F(Yt(t)):yi(t,e)}function Lo(t){return nt(t)&&y(t.trim(),"<")}const ke={width:["left","right"],height:["top","bottom"]};function T(t){const e=Be(t)?at(t).getBoundingClientRect():{height:bt(t),width:rs(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function U(t,e){e&&m(t,{left:0,top:0});const i=T(t);if(t){const{scrollY:s,scrollX:o}=ge(t),a={height:s,width:o};for(const l in ke)for(const u of ke[l])i[u]+=a[l]}if(!e)return i;for(const s of["left","top"])m(t,s,e[s]-i[s])}function an(t){let{top:e,left:i}=U(t);const{ownerDocument:{body:s,documentElement:o},offsetParent:a}=at(t);let l=a||o;for(;l&&(l===s||l===o)&&m(l,"position")==="static";)l=l.parentNode;if(Be(l)){const u=U(l);e-=u.top+R(m(l,"borderTopWidth")),i-=u.left+R(m(l,"borderLeftWidth"))}return{top:e-R(m(t,"marginTop")),left:i-R(m(t,"marginLeft"))}}function _i(t){t=at(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+R(m(t,"borderTopWidth")),e[1]+=t.offsetLeft+R(m(t,"borderLeftWidth")),m(t,"position")==="fixed"){const i=ge(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const bt=Bo("height"),rs=Bo("width");function Bo(t){const e=k(t);return(i,s)=>{if(pt(s)){if(Ki(i))return i[`inner${e}`];if(di(i)){const o=i.documentElement;return Math.max(o[`offset${e}`],o[`scroll${e}`])}return i=at(i),s=m(i,t),s=s==="auto"?i[`offset${e}`]:R(s)||0,s-ln(i,t)}else return m(i,t,!s&&s!==0?"":+s+ln(i,t)+"px")}}function ln(t,e,i="border-box"){return m(t,"boxSizing")===i?ve(ke[e],s=>R(m(t,`padding-${s}`))+R(m(t,`border-${s}-width`))):0}function as(t){for(const e in ke)for(const i in ke[e])if(ke[e][i]===t)return ke[e][1-i];return t}function ft(t,e="width",i=window,s=!1){return nt(t)?ve(sh(t),o=>{const a=oh(o);return a?rh(a==="vh"?ah():a==="vw"?rs(ge(i)):s?i[`offset${k(e)}`]:T(i)[e],o):o}):R(t)}const ih=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,sh=It(t=>t.toString().replace(/\s/g,"").match(ih)||[]),nh=/(?:v[hw]|%)$/,oh=It(t=>(t.match(nh)||[])[0]);function rh(t,e){return t*R(e)/100}let Ai,Ye;function ah(){return Ai||(Ye||(Ye=N("<div>"),m(Ye,{height:"100vh",position:"fixed"}),z(window,"resize",()=>Ai=null)),ot(document.body,Ye),Ai=Ye.clientHeight,$t(Ye),Ai)}const oe={read:lh,write:hh,clear:ch,flush:Ro},ls=[],hs=[];function lh(t){return ls.push(t),cn(),t}function hh(t){return hs.push(t),cn(),t}function ch(t){zo(ls,t),zo(hs,t)}let hn=!1;function Ro(){jo(ls),jo(hs.splice(0)),hn=!1,(ls.length||hs.length)&&cn()}function cn(){hn||(hn=!0,queueMicrotask(Ro))}function jo(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function zo(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}class Fo{init(){this.positions=[];let e;this.unbind=z(document,"mousemove",i=>e=Wt(i)),this.interval=setInterval(()=>{e&&(this.positions.push(e),this.positions.length>5&&this.positions.shift())},50)}cancel(){var e;(e=this.unbind)==null||e.call(this),clearInterval(this.interval)}movesTo(e){if(!this.positions||this.positions.length<2)return!1;const i=T(e),{left:s,right:o,top:a,bottom:l}=i,[u]=this.positions,f=me(this.positions),v=[u,f];return Gi(f,i)?!1:[[{x:s,y:a},{x:o,y:l}],[{x:s,y:l},{x:o,y:a}]].some(b=>{const S=uh(v,b);return S&&Gi(S,i)})}}function uh([{x:t,y:e},{x:i,y:s}],[{x:o,y:a},{x:l,y:u}]){const f=(u-a)*(i-t)-(l-o)*(s-e);if(f===0)return!1;const v=((l-o)*(e-a)-(u-a)*(t-o))/f;return v<0?!1:{x:t+v*(i-t),y:e+v*(s-e)}}function Uo(t,e,i={},{intersecting:s=!0}={}){const o=new IntersectionObserver(s?(a,l)=>{a.some(u=>u.isIntersecting)&&e(a,l)}:e,i);for(const a of F(t))o.observe(a);return o}const dh=be&&window.ResizeObserver;function cs(t,e,i={box:"border-box"}){if(dh)return qo(ResizeObserver,t,e,i);const s=[z(window,"load resize",e),z(document,"loadedmetadata load",e,!0)];return{disconnect:()=>s.map(o=>o())}}function un(t){return{disconnect:z([window,window.visualViewport],"resize",t)}}function dn(t,e,i){return qo(MutationObserver,t,e,i)}function qo(t,e,i,s){const o=new t(i);for(const a of F(e))o.observe(a,s);return o}function fn(t){gn(t)&&mn(t,{func:"playVideo",method:"play"}),pn(t)&&t.play().catch(ht)}function us(t){gn(t)&&mn(t,{func:"pauseVideo",method:"pause"}),pn(t)&&t.pause()}function Wo(t){gn(t)&&mn(t,{func:"mute",method:"setVolume",value:0}),pn(t)&&(t.muted=!0)}function pn(t){return et(t,"video")}function gn(t){return et(t,"iframe")&&(Vo(t)||Yo(t))}function Vo(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function Yo(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function mn(t,e){await ph(t),Ko(t,e)}function Ko(t,e){t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}const vn="_ukPlayer";let fh=0;function ph(t){if(t[vn])return t[vn];const e=Vo(t),i=Yo(t),s=++fh;let o;return t[vn]=new Promise(a=>{e&&st(t,"load",()=>{const l=()=>Ko(t,{event:"listening",id:s});o=setInterval(l,100),l()}),st(window,"message",a,!1,({data:l})=>{try{return l=JSON.parse(l),e&&(l==null?void 0:l.id)===s&&l.event==="onReady"||i&&Number(l==null?void 0:l.player_id)===s}catch{}}),t.src=`${t.src}${w(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${s}`}`}).then(()=>clearInterval(o))}function gh(t,e=0,i=0){return ut(t)?Ws(...Se(t).map(s=>{const{top:o,left:a,bottom:l,right:u}=Pt(s);return{top:o-e,left:a-i,bottom:l+e,right:u+i}}).concat(U(t))):!1}function Jo(t,{offset:e=0}={}){const i=ut(t)?Ke(t,!1,["hidden"]):[];return i.reduce((l,u,f)=>{const{scrollTop:v,scrollHeight:$,offsetHeight:b}=u,S=Pt(u),I=$-S.height,{height:D,top:B}=i[f-1]?Pt(i[f-1]):U(t);let q=Math.ceil(B-S.top-e+v);return e>0&&b<D+e?q+=e:e=0,q>I?(e-=q-I,q=I):q<0&&(e-=q,q=0),()=>s(u,q-v,t,I).then(l)},()=>Promise.resolve())();function s(l,u,f,v){return new Promise($=>{const b=l.scrollTop,S=o(Math.abs(u)),I=Date.now(),D=wn(l)===l,B=U(f).top+(D?0:b);let q=0,_t=15;(function Gt(){const ae=a(mt((Date.now()-I)/S));let Bt=0;i[0]===l&&b+u<v&&(Bt=U(f).top+(D?0:l.scrollTop)-B-T($n(f)).height),m(l,"scrollBehavior")!=="auto"&&m(l,"scrollBehavior","auto"),l.scrollTop=b+(u+Bt)*ae,m(l,"scrollBehavior",""),ae===1&&(q===Bt||!_t--)?$():(q=Bt,requestAnimationFrame(Gt))})()})}function o(l){return 40*Math.pow(l,.375)}function a(l){return .5*(1-Math.cos(Math.PI*l))}}function ds(t,e=0,i=0){if(!ut(t))return 0;const s=xe(t,!0),{scrollHeight:o,scrollTop:a}=s,{height:l}=Pt(s),u=o-l,f=_i(t)[0]-_i(s)[0],v=Math.max(0,f-l+e),$=Math.min(u,f+t.offsetHeight-i);return v<$?mt((a-v)/($-v)):1}function Ke(t,e=!1,i=[]){const s=wn(t);let o=qe(t).reverse();o=o.slice(o.indexOf(s)+1);const a=E(o,l=>m(l,"position")==="fixed");return~a&&(o=o.slice(a)),[s].concat(o.filter(l=>m(l,"overflow").split(" ").some(u=>w(["auto","scroll",...i],u))&&(!e||l.scrollHeight>Pt(l).height))).reverse()}function xe(...t){return Ke(...t)[0]}function Se(t){return Ke(t,!1,["hidden","clip"])}function Pt(t){const e=ge(t),i=wn(t),s=!fi(t)||t.contains(i);if(s&&e.visualViewport){let{height:f,width:v,scale:$,pageTop:b,pageLeft:S}=e.visualViewport;return f=Math.round(f*$),v=Math.round(v*$),{height:f,width:v,top:b,left:S,bottom:b+f,right:S+v}}let o=U(s?e:t);if(m(t,"display")==="inline")return o;const{body:a,documentElement:l}=e.document,u=s?i===l||i.clientHeight<a.clientHeight?i:a:t;for(let[f,v,$,b]of[["width","x","left","right"],["height","y","top","bottom"]]){const S=o[f]%1;o[$]+=R(m(u,`border-${$}-width`)),o[f]=o[v]=u[`client${k(f)}`]-(S?S<.5?-S:1-S:0),o[b]=o[f]+o[$]}return o}function $n(t){const{left:e,width:i,top:s}=T(t);for(const o of s?[0,s]:[0]){let a;for(const l of ge(t).document.elementsFromPoint(e+i/2,o))!l.contains(t)&&!L(l,"uk-togglable-leave")&&(bn(l,"fixed")&&Go(qe(t).reverse().find(u=>!u.contains(l)&&!bn(u,"static")))<Go(l)||bn(l,"sticky")&&J(l).contains(t))&&(!a||T(a).height<T(l).height)&&(a=l);if(a)return a}}function Go(t){return R(m(t,"zIndex"))}function bn(t,e){return m(t,"position")===e}function wn(t){return ge(t).document.scrollingElement}const kt=[["width","x","left","right"],["height","y","top","bottom"]];function Xo(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},P(e)||(e=[e,e]),U(t,Zo(t,e,i))}function Zo(t,e,i){const s=Qo(t,e,i),{boundary:o,viewportOffset:a=0,placement:l}=i;let u=s;for(const[f,[v,,$,b]]of Object.entries(kt)){const S=mh(t,e[f],a,o,f);if(fs(s,S,f))continue;let I=0;if(l[f]==="flip"){const D=i.attach.target[f];if(D===b&&s[b]<=S[b]||D===$&&s[$]>=S[$])continue;I=$h(t,e,i,f)[$]-s[$];const B=vh(t,e[f],a,f);if(!fs(yn(s,I,f),B,f)){if(fs(s,B,f))continue;if(i.recursion)return!1;const q=bh(t,e,i);if(q&&fs(q,B,1-f))return q;continue}}else if(l[f]==="shift"){const D=U(e[f]),{offset:B}=i;I=mt(mt(s[$],S[$],S[b]-s[v]),D[$]-s[v]+B[f],D[b]-B[f])-s[$]}u=yn(u,I,f)}return u}function Qo(t,e,i){let{attach:s,offset:o}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},a=U(t);for(const[l,[u,,f,v]]of Object.entries(kt)){const $=s.target[l]===s.element[l]?Pt(e[l]):U(e[l]);a=yn(a,$[f]-a[f]+tr(s.target[l],v,$[u])-tr(s.element[l],v,a[u])+ +o[l],l)}return a}function yn(t,e,i){const[,s,o,a]=kt[i],l={...t};return l[o]=t[s]=t[o]+e,l[a]+=e,l}function tr(t,e,i){return t==="center"?i/2:t===e?i:0}function mh(t,e,i,s,o){let a=ir(...er(t,e).map(Pt));return i&&(a[kt[o][2]]+=i,a[kt[o][3]]-=i),s&&(a=ir(a,U(P(s)?s[o]:s))),a}function vh(t,e,i,s){const[o,a,l,u]=kt[s],[f]=er(t,e),v=Pt(f);return["auto","scroll"].includes(m(f,`overflow-${a}`))&&(v[l]-=f[`scroll${k(l)}`],v[u]=v[l]+f[`scroll${k(o)}`]),v[l]+=i,v[u]-=i,v}function er(t,e){return Se(e).filter(i=>i.contains(t))}function ir(...t){let e={};for(const i of t)for(const[,,s,o]of kt)e[s]=Math.max(e[s]||0,i[s]),e[o]=Math.min(...[e[o],i[o]].filter(Boolean));return e}function fs(t,e,i){const[,,s,o]=kt[i];return t[s]>=e[s]&&t[o]<=e[o]}function $h(t,e,{offset:i,attach:s},o){return Qo(t,e,{attach:{element:sr(s.element,o),target:sr(s.target,o)},offset:wh(i,o)})}function bh(t,e,i){return Zo(t,e,{...i,attach:{element:i.attach.element.map(nr).reverse(),target:i.attach.target.map(nr).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function sr(t,e){const i=[...t],s=kt[e].indexOf(t[e]);return~s&&(i[e]=kt[e][1-s%2+2]),i}function nr(t){for(let e=0;e<kt.length;e++){const i=kt[e].indexOf(t);if(~i)return kt[1-e][i%2+2]}}function wh(t,e){return t=[...t],t[e]*=-1,t}var yh=Object.freeze({__proto__:null,$:N,$$:Q,Animation:se,Dimensions:Ys,MouseTracker:Fo,Transition:X,addClass:j,after:ns,append:ot,apply:ne,assign:V,attr:A,before:ss,boxModelAdjust:ln,camelize:p,children:G,clamp:mt,createEvent:Ve,css:m,data:vt,dimensions:T,each:je,empty:Ho,endsWith:_,escape:Qs,fastdom:oe,filter:bi,find:Xs,findAll:yi,findIndex:E,flipPosition:as,fragment:Yt,getCoveringElement:$n,getEventPos:Wt,getIndex:yt,getTargetedElement:Gs,hasAttr:ee,hasClass:L,hasOwn:r,hasTouch:ze,height:bt,html:Vt,hyphenate:h,inBrowser:be,includes:w,index:qt,intersectRect:Ws,isArray:P,isBoolean:Re,isDocument:di,isElement:Be,isEmpty:Ji,isEqual:gi,isFocusable:ts,isFunction:tt,isInView:gh,isInput:Qi,isNode:fi,isNumber:pi,isNumeric:Ft,isObject:Et,isPlainObject:te,isRtl:ct,isSameSiteAnchor:We,isString:nt,isTag:et,isTouch:Ht,isUndefined:pt,isVisible:ut,isVoidElement:Js,isWindow:Ki,last:me,matches:Y,memoize:It,mute:Wo,noop:ht,observeIntersection:Uo,observeMutation:dn,observeResize:cs,observeViewportResize:un,off:ye,offset:U,offsetPosition:_i,offsetViewport:Pt,on:z,once:st,overflowParents:Se,parent:J,parents:qe,pause:us,pick:qs,play:fn,pointInRect:Gi,pointerCancel:Zi,pointerDown:Ct,pointerEnter:we,pointerLeave:Ue,pointerMove:Xi,pointerUp:ie,position:an,positionAt:Xo,prepend:th,propName:es,query:Tt,queryAll:wi,ready:Ql,remove:$t,removeAttr:mi,removeClass:Z,replaceClass:Ks,scrollIntoView:Jo,scrollParent:xe,scrollParents:Ke,scrolledOver:ds,selFocusable:$i,selInput:vi,sortBy:_o,startsWith:y,sumBy:ve,swap:Us,toArray:H,toBoolean:Fs,toEventTargets:en,toFloat:R,toNode:at,toNodes:F,toNumber:Ut,toPx:ft,toWindow:ge,toggleClass:it,trigger:C,ucfirst:k,uniqueBy:Ao,unwrap:Si,width:rs,wrapAll:xi,wrapInner:rn});const dt={};dt.events=dt.watch=dt.observe=dt.created=dt.beforeConnect=dt.connected=dt.beforeDisconnect=dt.disconnected=dt.destroy=kn,dt.args=function(t,e){return e!==!1&&kn(e||t)},dt.update=function(t,e){return _o(kn(t,tt(e)?{read:e}:e),"order")},dt.props=function(t,e){if(P(e)){const i={};for(const s of e)i[s]=String;e=i}return dt.methods(t,e)},dt.computed=dt.methods=function(t,e){return e?t?{...t,...e}:e:t},dt.i18n=dt.data=function(t,e,i){return i?or(t,e,i):e?t?function(s){return or(t,e,s)}:e:t};function or(t,e,i){return dt.computed(tt(t)?t.call(i,i):t,tt(e)?e.call(i,i):e)}function kn(t,e){return t=t&&!P(t)?[t]:t,e?t?t.concat(e):P(e)?e:[e]:t}function kh(t,e){return pt(e)?t:e}function Ei(t,e,i){const s={};if(tt(e)&&(e=e.options),e.extends&&(t=Ei(t,e.extends,i)),e.mixins)for(const a of e.mixins)t=Ei(t,a,i);for(const a in t)o(a);for(const a in e)r(t,a)||o(a);function o(a){s[a]=(dt[a]||kh)(t[a],e[a],i)}return s}function Je(t,e=[]){try{return t?y(t,"{")?JSON.parse(t):e.length&&!w(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[o,a]=s.split(/:(.*)/);return o&&!pt(a)&&(i[o.trim()]=a.trim()),i},{}):{}}catch{return{}}}function xn(t,e){return t===Boolean?Fs(e):t===Number?Ut(e):t==="list"?Sh(e):t===Object&&nt(e)?Je(e):t?t(e):e}const xh=/,(?![^(]*\))/;function Sh(t){return P(t)?t:nt(t)?t.split(xh).map(e=>Ft(e)?Ut(e):Fs(e.trim())):[t]}function _h(t){t._data={},t._updates=[...t.$options.update||[]],t._disconnect.push(()=>t._updates=t._data=null)}function Ah(t,e){t._updates.unshift(e)}function Ii(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,oe.read(()=>{t._connected&&Eh(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function Eh(t,e){for(const{read:i,write:s,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(l=>e.has(l)))continue;let a;i&&(a=i.call(t,t._data,e),a&&te(a)&&V(t._data,a)),s&&a!==!1&&oe.write(()=>{t._connected&&s.call(t,t._data,e)})}}function Kt(t){return Pi(cs,t,"resize")}function Ci(t){return Pi(Uo,t)}function Sn(t){return Pi(dn,t)}function ps(t={}){return Ci({handler:function(e,i){const{targets:s=this.$el,preload:o=5}=t;for(const a of F(tt(s)?s(this):s))Q('[loading="lazy"]',a).slice(0,o-1).forEach(l=>mi(l,"loading"));for(const a of e.filter(({isIntersecting:l})=>l).map(({target:l})=>l))i.unobserve(a)},...t})}function rr(t){return Pi((e,i)=>un(i),t,"resize")}function Ti(t){return Pi((e,i)=>({disconnect:z(Ch(e),"scroll",i,{passive:!0})}),t,"scroll")}function ar(t){return{observe(e,i){return{observe:ht,unobserve:ht,disconnect:z(e,Ct,i,{passive:!0})}},handler(e){if(!Ht(e))return;const i=Wt(e),s="tagName"in e.target?e.target:J(e.target);st(document,`${ie} ${Zi} scroll`,o=>{const{x:a,y:l}=Wt(o);(o.type!=="scroll"&&s&&a&&Math.abs(i.x-a)>100||l&&Math.abs(i.y-l)>100)&&setTimeout(()=>{C(s,"swipe"),C(s,`swipe${Ih(i.x,i.y,a,l)}`)})})},...t}}function Pi(t,e,i){return{observe:t,handler(){Ii(this,i)},...e}}function Ih(t,e,i,s){return Math.abs(t-i)>=Math.abs(e-s)?t-i>0?"Left":"Right":e-s>0?"Up":"Down"}function Ch(t){return F(t).map(e=>{const{ownerDocument:i}=e,s=xe(e,!0);return s===i.scrollingElement?i:s})}var Th={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},observe:[Sn({options:{childList:!0}}),Sn({options:{attributes:!0,attributeFilter:["style"]},target:({$el:t})=>[t,...G(t)]}),Kt({target:({$el:t})=>[t,...G(t)]})],update:{read(){return{rows:lr(G(this.$el))}},write({rows:t}){for(const e of t)for(const i of e)it(i,this.margin,t[0]!==e),it(i,this.firstColumn,e[ct?e.length-1:0]===i)},events:["resize"]}};function lr(t){const e=[[]],i=t.some((s,o)=>o&&t[o-1].offsetParent!==s.offsetParent);for(const s of t){if(!ut(s))continue;const o=_n(s,i);for(let a=e.length-1;a>=0;a--){const l=e[a];if(!l[0]){l.push(s);break}const u=_n(l[0],i);if(o.top>=u.bottom-1&&o.top!==u.top){e.push([s]);break}if(o.bottom-1>u.top||o.top===u.top){let f=l.length-1;for(;f>=0;f--){const v=_n(l[f],i);if(o.left>=v.left)break}l.splice(f+1,0,s);break}if(a===0){e.unshift([s]);break}}}return e}function _n(t,e=!1){let{offsetTop:i,offsetLeft:s,offsetHeight:o,offsetWidth:a}=t;return e&&([i,s]=_i(t)),{top:i,left:s,bottom:i+o,right:s+a}}async function Ph(t,e,i){await An();let s=G(e);const o=s.map(I=>hr(I,!0)),a={...m(e,["height","padding"]),display:"block"},l=s.concat(e);await Promise.all(l.map(X.cancel)),m(l,"transitionProperty","none"),await t(),s=s.concat(G(e).filter(I=>!w(s,I))),await Promise.resolve(),m(l,"transitionProperty","");const u=A(e,"style"),f=m(e,["height","padding"]),[v,$]=Oh(e,s,o),b=s.map(I=>({style:A(I,"style")}));s.forEach((I,D)=>$[D]&&m(I,$[D])),m(e,a),C(e,"scroll"),await An();const S=s.map((I,D)=>J(I)===e&&X.start(I,v[D],i,"ease")).concat(X.start(e,f,i,"ease"));try{await Promise.all(S),s.forEach((I,D)=>{A(I,b[D]),J(I)===e&&m(I,"display",v[D].opacity===0?"none":"")}),A(e,"style",u)}catch{A(s,"style",""),Dh(e,a)}}function hr(t,e){const i=m(t,"zI