@hotosm/ui 0.3.4-b2 → 0.4.0
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.
- package/README.md +1 -1
- package/dist/chunks/{chunk.LF3EJYUJ.js → chunk.3DAASGWT.js} +1 -1
- package/dist/chunks/chunk.5AWU5BEU.js +1 -0
- package/dist/chunks/{chunk.3M4SJCXS.js → chunk.6TJUNYFL.js} +49 -35
- package/dist/chunks/{chunk.OCJJFWT7.js → chunk.BB52VMVE.js} +55 -50
- package/dist/chunks/chunk.EAG35WPB.js +122 -0
- package/dist/chunks/chunk.EOTM323U.js +71 -0
- package/dist/chunks/chunk.EYNFK5TH.js +187 -0
- package/dist/chunks/chunk.FBYBLQYY.js +25 -0
- package/dist/chunks/{chunk.LET777HR.js → chunk.G3Z3BOX2.js} +2 -2
- package/dist/chunks/chunk.JFO3Z4VS.js +1 -0
- package/dist/chunks/chunk.KNTMZWRV.js +28 -0
- package/dist/chunks/chunk.L3MJ3UC7.js +1 -0
- package/dist/chunks/chunk.LR75BDGN.js +20 -0
- package/dist/chunks/chunk.OFDFUT7C.js +1 -0
- package/dist/chunks/{chunk.LFXZGORR.js → chunk.VA2JNCZO.js} +1 -1
- package/dist/chunks/chunk.VNFZXHID.js +1 -0
- package/dist/chunks/chunk.XNPNEHIJ.js +1 -0
- package/dist/chunks/{chunk.OKOD2JGL.js → chunk.YH5QYI7V.js} +1 -1
- package/dist/chunks/chunk.ZU62FSGZ.js +105 -0
- package/dist/components/consent/consent.component.js +1 -1
- package/dist/components/consent/consent.js +1 -1
- package/dist/components/consent/consent.styles.js +1 -1
- package/dist/components/file-input-dropzone/file-input-dropzone.component.d.ts +39 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.component.js +1 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.d.ts +8 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.js +1 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.styles.d.ts +2 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.styles.js +1 -0
- package/dist/components/header/header.component.d.ts +0 -2
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/list-card/list-card.component.d.ts +16 -0
- package/dist/components/list-card/list-card.component.js +1 -0
- package/dist/components/list-card/list-card.d.ts +7 -0
- package/dist/components/list-card/list-card.js +1 -0
- package/dist/components/list-card/list-card.styles.d.ts +2 -0
- package/dist/components/list-card/list-card.styles.js +1 -0
- package/dist/components/logo/logo.component.js +1 -1
- package/dist/components/logo/logo.js +1 -1
- package/dist/components/logo/logo.styles.js +1 -1
- package/dist/components/tracking/tracking.component.js +1 -1
- package/dist/components/tracking/tracking.js +1 -1
- package/dist/hotosm-ui.d.ts +4 -2
- package/dist/hotosm-ui.js +1 -1
- package/dist/style.css +4 -3
- package/dist/themes/{hot-wa-override.css → hot-wa.css} +122 -323
- package/dist/themes/hot.css +15 -15
- package/dist/utils/shadow-dom-css.d.ts +3 -17
- package/package.json +16 -3
- package/dist/chunks/chunk.2NK5PHJW.js +0 -1531
- package/dist/chunks/chunk.6EX2DAUF.js +0 -1
- package/dist/chunks/chunk.6HOFUZAE.js +0 -69
- package/dist/chunks/chunk.C6I42VVF.js +0 -28
- package/dist/chunks/chunk.N7VH3RWY.js +0 -688
- package/dist/chunks/chunk.NXHCSWIR.js +0 -1
- package/dist/chunks/chunk.OHYOXYF2.js +0 -25
- package/dist/chunks/chunk.PSMDEZL4.js +0 -1
- package/dist/chunks/chunk.U4WXIJS7.js +0 -1
- package/dist/themes/hot-button-override.css +0 -246
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as a}from"./chunk.LET777HR.js";var t=a;customElements.define("hot-tracking",a);export{t as a};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import{c as o,d as e,g as l,h as i}from"./chunk.N7VH3RWY.js";import{a as t,b as a}from"./chunk.OHYOXYF2.js";import{e as n}from"./chunk.C6I42VVF.js";var p=`:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
position: relative;
|
|
4
|
-
align-items: stretch;
|
|
5
|
-
border-radius: var(--wa-panel-border-radius);
|
|
6
|
-
background-color: var(--wa-color-fill-quiet, var(--wa-color-brand-fill-quiet));
|
|
7
|
-
border-color: var(--wa-color-border-quiet, var(--wa-color-brand-border-quiet));
|
|
8
|
-
border-style: var(--wa-panel-border-style);
|
|
9
|
-
border-width: var(--wa-panel-border-width);
|
|
10
|
-
color: var(--wa-color-text-normal);
|
|
11
|
-
padding: 1em;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* Appearance modifiers */
|
|
15
|
-
:host([appearance~='plain']) {
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
border-color: transparent;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:host([appearance~='outlined']) {
|
|
21
|
-
background-color: transparent;
|
|
22
|
-
border-color: var(--wa-color-border-loud, var(--wa-color-brand-border-loud));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:host([appearance~='filled']) {
|
|
26
|
-
background-color: var(--wa-color-fill-quiet, var(--wa-color-brand-fill-quiet));
|
|
27
|
-
border-color: transparent;
|
|
28
|
-
|
|
29
|
-
&:host([appearance~='outlined']) {
|
|
30
|
-
border-color: var(--wa-color-border-quiet, var(--wa-color-brand-border-quiet));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([appearance~='accent']) {
|
|
35
|
-
color: var(--wa-color-on-loud, var(--wa-color-brand-on-loud));
|
|
36
|
-
background-color: var(--wa-color-fill-loud, var(--wa-color-brand-fill-loud));
|
|
37
|
-
border-color: transparent;
|
|
38
|
-
|
|
39
|
-
[part~='icon'] {
|
|
40
|
-
color: currentColor;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[part~='icon'] {
|
|
45
|
-
flex: 0 0 auto;
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
color: var(--wa-color-on-quiet);
|
|
49
|
-
font-size: 1.25em;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
::slotted([slot='icon']) {
|
|
53
|
-
margin-inline-end: var(--wa-form-control-padding-inline);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
[part~='message'] {
|
|
57
|
-
flex: 1 1 auto;
|
|
58
|
-
display: block;
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
}
|
|
61
|
-
`,r=class extends e{constructor(){super(...arguments),this.variant="brand",this.appearance="outlined filled",this.size="medium"}render(){return n`
|
|
62
|
-
<div part="icon">
|
|
63
|
-
<slot name="icon"></slot>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<div part="message">
|
|
67
|
-
<slot></slot>
|
|
68
|
-
</div>
|
|
69
|
-
`}};r.css=[p,i,l];o([a({reflect:!0})],r.prototype,"variant",2);o([a({reflect:!0})],r.prototype,"appearance",2);o([a({reflect:!0})],r.prototype,"size",2);r=o([t("wa-callout")],r);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var N=globalThis,L=N.ShadowRoot&&(N.ShadyCSS===void 0||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),tt=new WeakMap,x=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==V)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(L&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=tt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&tt.set(e,t))}return t}toString(){return this.cssText}},et=o=>new x(typeof o=="string"?o:o+"",void 0,V),Et=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,i,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+1],o[0]);return new x(e,o,V)},st=(o,t)=>{if(L)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=N.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},W=L?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return et(e)})(o):o;var{is:bt,defineProperty:Ct,getOwnPropertyDescriptor:wt,getOwnPropertyNames:xt,getOwnPropertySymbols:Pt,getPrototypeOf:Ut}=Object,A=globalThis,it=A.trustedTypes,Ot=it?it.emptyScript:"",q=A.reactiveElementPolyfillSupport,P=(o,t)=>o,K={toAttribute(o,t){switch(t){case Boolean:o=o?Ot:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(s){e=null}}return e}},at=(o,t)=>!bt(o,t),ot={attribute:!0,type:String,converter:K,reflect:!1,useDefault:!1,hasChanged:at},nt,rt;(nt=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(rt=A.litPropertyMetadata)!=null||(A.litPropertyMetadata=new WeakMap);var $=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ot){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Ct(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){var n;let{get:i,set:r}=(n=wt(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get:i,set(a){let h=i==null?void 0:i.call(this);r==null||r.call(this,a),this.requestUpdate(t,h,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:ot}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;let t=Ut(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){let e=this.properties,s=[...xt(e),...Pt(e)];for(let i of s)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(W(i))}else t!==void 0&&e.push(W(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return st(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var r;let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let n=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:K).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var r,n,a;let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let h=s.getPropertyOptions(i),l=typeof h.converter=="function"?{fromAttribute:h.converter}:((r=h.converter)==null?void 0:r.fromAttribute)!==void 0?h.converter:K;this._$Em=i;let c=l.fromAttribute(e,h.type);this[i]=(a=c!=null?c:(n=this._$Ej)==null?void 0:n.get(i))!=null?a:c,this._$Em=null}}requestUpdate(t,e,s){var i,r;if(t!==void 0){let n=this.constructor,a=this[t];if(s!=null||(s=n.getPropertyOptions(t)),!(((i=s.hasChanged)!=null?i:at)(a,e)||s.useDefault&&s.reflect&&a===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},n){var a,h,l;s&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(h=n!=null?n:e)!=null?h:this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,a]of r){let{wrapped:h}=a,l=this[n];h!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}},ht;$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[P("elementProperties")]=new Map,$[P("finalized")]=new Map,q==null||q({ReactiveElement:$}),((ht=A.reactiveElementVersions)!=null?ht:A.reactiveElementVersions=[]).push("2.1.1");var O=globalThis,k=O.trustedTypes,lt=k?k.createPolicy("lit-html",{createHTML:o=>o}):void 0,J="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,G="?"+_,Ht=`<${G}>`,y=document,H=()=>y.createComment(""),R=o=>o===null||typeof o!="object"&&typeof o!="function",Q=Array.isArray,ft=o=>Q(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Z=`[
|
|
2
|
-
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ct=/-->/g,dt=/>/g,m=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,At=/^(?:script|style|textarea|title)$/i,X=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),Lt=X(1),kt=X(2),Dt=X(3),v=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),$t=new WeakMap,g=y.createTreeWalker(y,129);function mt(o,t){if(!Q(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return lt!==void 0?lt.createHTML(t):t}var gt=(o,t)=>{let e=o.length-1,s=[],i,r=t===2?"<svg>":t===3?"<math>":"",n=U;for(let a=0;a<e;a++){let h=o[a],l,c,d=-1,u=0;for(;u<h.length&&(n.lastIndex=u,c=n.exec(h),c!==null);)u=n.lastIndex,n===U?c[1]==="!--"?n=ct:c[1]!==void 0?n=dt:c[2]!==void 0?(At.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=m):c[3]!==void 0&&(n=m):n===m?c[0]===">"?(n=i!=null?i:U,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?m:c[3]==='"'?ut:pt):n===ut||n===pt?n=m:n===ct||n===dt?n=U:(n=m,i=void 0);let f=n===m&&o[a+1].startsWith("/>")?" ":"";r+=n===U?h+Ht:d>=0?(s.push(l),h.slice(0,d)+J+h.slice(d)+_+f):h+_+(d===-2?a:f)}return[mt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},T=class o{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0,a=t.length-1,h=this.parts,[l,c]=gt(t,e);if(this.el=o.createElement(l,s),g.currentNode=this.el.content,e===2||e===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=g.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(J)){let u=c[n++],f=i.getAttribute(d).split(_),M=/([.?@])?(.*)/.exec(u);h.push({type:1,index:r,name:M[2],strings:f,ctor:M[1]==="."?B:M[1]==="?"?j:M[1]==="@"?z:E}),i.removeAttribute(d)}else d.startsWith(_)&&(h.push({type:6,index:r}),i.removeAttribute(d));if(At.test(i.tagName)){let d=i.textContent.split(_),u=d.length-1;if(u>0){i.textContent=k?k.emptyScript:"";for(let f=0;f<u;f++)i.append(d[f],H()),g.nextNode(),h.push({type:2,index:++r});i.append(d[u],H())}}}else if(i.nodeType===8)if(i.data===G)h.push({type:2,index:r});else{let d=-1;for(;(d=i.data.indexOf(_,d+1))!==-1;)h.push({type:7,index:r}),d+=_.length-1}r++}}static createElement(t,e){let s=y.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){var n,a,h;if(t===v)return t;let i=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl,r=R(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,s)),s!==void 0?((h=e._$Co)!=null?h:e._$Co=[])[s]=i:e._$Cl=i),i!==void 0&&(t=S(o,i._$AS(o,t.values),i,s)),t}var D=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var l;let{el:{content:e},parts:s}=this._$AD,i=((l=t==null?void 0:t.creationScope)!=null?l:y).importNode(e,!0);g.currentNode=i;let r=g.nextNode(),n=0,a=0,h=s[0];for(;h!==void 0;){if(n===h.index){let c;h.type===2?c=new C(r,r.nextSibling,this,t):h.type===1?c=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(c=new I(r,this,t)),this._$AV.push(c),h=s[++a]}n!==(h==null?void 0:h.index)&&(r=g.nextNode(),n++)}return g.currentNode=y,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},C=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,s,i){var r;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(r=i==null?void 0:i.isConnected)!=null?r:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),R(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ft(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var r;let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=T.createElement(mt(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{let n=new D(i,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=$t.get(t.strings);return e===void 0&&$t.set(t.strings,e=new T(t)),e}k(t){Q(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let r of t)i===e.length?e.push(s=new o(this.O(H()),this.O(H()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,i){let r=this.strings,n=!1;if(r===void 0)t=S(this,t,e,0),n=!R(t)||t!==this._$AH&&t!==v,n&&(this._$AH=t);else{let a=t,h,l;for(t=r[0],h=0;h<r.length-1;h++)l=S(this,a[s+h],e,h),l===v&&(l=this._$AH[h]),n||(n=!R(l)||l!==this._$AH[h]),l===p?t=p:t!==p&&(t+=(l!=null?l:"")+r[h+1]),this._$AH[h]=l}n&&!i&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},B=class extends E{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},j=class extends E{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},z=class extends E{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=S(this,t,e,0))!=null?n:p)===v)return;let s=this._$AH,i=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==p&&(s===p||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)==null?void 0:e.host)!=null?s:this.element,t):this._$AH.handleEvent(t)}},I=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Bt={M:J,P:_,A:G,C:1,L:gt,R:D,D:ft,V:S,I:C,H:E,N:j,U:z,B,F:I},F=O.litHtmlPolyfillSupport,_t;F==null||F(T,C),((_t=O.litHtmlVersions)!=null?_t:O.litHtmlVersions=[]).push("3.3.1");var yt=(o,t,e)=>{var r,n;let s=(r=e==null?void 0:e.renderBefore)!=null?r:t,i=s._$litPart$;if(i===void 0){let a=(n=e==null?void 0:e.renderBefore)!=null?n:null;s._$litPart$=i=new C(t.insertBefore(H(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var b=globalThis,w=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,s;let t=super.createRenderRoot();return(s=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=yt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return v}},vt;w._$litElement$=!0,w.finalized=!0,(vt=b.litElementHydrateSupport)==null||vt.call(b,{LitElement:w});var Y=b.litElementPolyfillSupport;Y==null||Y({LitElement:w});var St;((St=b.litElementVersions)!=null?St:b.litElementVersions=[]).push("4.2.1");export{et as a,Et as b,K as c,at as d,Lt as e,kt as f,Dt as g,v as h,p as i,Bt as j,w as k};
|
|
4
|
-
/*! Bundled license information:
|
|
5
|
-
|
|
6
|
-
@lit/reactive-element/css-tag.js:
|
|
7
|
-
(**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2019 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*)
|
|
12
|
-
|
|
13
|
-
@lit/reactive-element/reactive-element.js:
|
|
14
|
-
lit-html/lit-html.js:
|
|
15
|
-
lit-element/lit-element.js:
|
|
16
|
-
(**
|
|
17
|
-
* @license
|
|
18
|
-
* Copyright 2017 Google LLC
|
|
19
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
20
|
-
*)
|
|
21
|
-
|
|
22
|
-
lit-html/is-server.js:
|
|
23
|
-
(**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2022 Google LLC
|
|
26
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*)
|
|
28
|
-
*/
|