@logosphere-ui/core 0.0.0-alpha.3 → 0.0.0-alpha.5

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,240 +0,0 @@
1
- const I = globalThis, w = (h) => h, T = I.trustedTypes, R = T ? T.createPolicy("lit-html", { createHTML: (h) => h }) : void 0, D = "$lit$", p = `lit$${Math.random().toFixed(9).slice(2)}$`, W = "?" + p, k = `<${W}>`, f = document, C = () => f.createComment(""), y = (h) => h === null || typeof h != "object" && typeof h != "function", S = Array.isArray, z = (h) => S(h) || typeof h?.[Symbol.iterator] == "function", E = `[
2
- \f\r]`, m = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, U = /-->/g, B = />/g, u = RegExp(`>|${E}(?:([^\\s"'>=/]+)(${E}*=${E}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`, "g"), O = /'/g, L = /"/g, j = /^(?:script|style|textarea|title)$/i, H = /* @__PURE__ */ Symbol.for("lit-noChange"), A = /* @__PURE__ */ Symbol.for("lit-nothing"), P = /* @__PURE__ */ new WeakMap(), g = f.createTreeWalker(f, 129);
4
- function V(h, t) {
5
- if (!S(h) || !h.hasOwnProperty("raw")) throw Error("invalid template strings array");
6
- return R !== void 0 ? R.createHTML(t) : t;
7
- }
8
- const Z = (h, t) => {
9
- const s = h.length - 1, e = [];
10
- let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = m;
11
- for (let a = 0; a < s; a++) {
12
- const o = h[a];
13
- let $, _, l = -1, c = 0;
14
- for (; c < o.length && (r.lastIndex = c, _ = r.exec(o), _ !== null); ) c = r.lastIndex, r === m ? _[1] === "!--" ? r = U : _[1] !== void 0 ? r = B : _[2] !== void 0 ? (j.test(_[2]) && (i = RegExp("</" + _[2], "g")), r = u) : _[3] !== void 0 && (r = u) : r === u ? _[0] === ">" ? (r = i ?? m, l = -1) : _[1] === void 0 ? l = -2 : (l = r.lastIndex - _[2].length, $ = _[1], r = _[3] === void 0 ? u : _[3] === '"' ? L : O) : r === L || r === O ? r = u : r === U || r === B ? r = m : (r = u, i = void 0);
15
- const d = r === u && h[a + 1].startsWith("/>") ? " " : "";
16
- n += r === m ? o + k : l >= 0 ? (e.push($), o.slice(0, l) + D + o.slice(l) + p + d) : o + p + (l === -2 ? a : d);
17
- }
18
- return [V(h, n + (h[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), e];
19
- };
20
- class x {
21
- constructor({ strings: t, _$litType$: s }, e) {
22
- let i;
23
- this.parts = [];
24
- let n = 0, r = 0;
25
- const a = t.length - 1, o = this.parts, [$, _] = Z(t, s);
26
- if (this.el = x.createElement($, e), g.currentNode = this.el.content, s === 2 || s === 3) {
27
- const l = this.el.content.firstChild;
28
- l.replaceWith(...l.childNodes);
29
- }
30
- for (; (i = g.nextNode()) !== null && o.length < a; ) {
31
- if (i.nodeType === 1) {
32
- if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(D)) {
33
- const c = _[r++], d = i.getAttribute(l).split(p), N = /([.?@])?(.*)/.exec(c);
34
- o.push({ type: 1, index: n, name: N[2], strings: d, ctor: N[1] === "." ? Y : N[1] === "?" ? q : N[1] === "@" ? G : M }), i.removeAttribute(l);
35
- } else l.startsWith(p) && (o.push({ type: 6, index: n }), i.removeAttribute(l));
36
- if (j.test(i.tagName)) {
37
- const l = i.textContent.split(p), c = l.length - 1;
38
- if (c > 0) {
39
- i.textContent = T ? T.emptyScript : "";
40
- for (let d = 0; d < c; d++) i.append(l[d], C()), g.nextNode(), o.push({ type: 2, index: ++n });
41
- i.append(l[c], C());
42
- }
43
- }
44
- } else if (i.nodeType === 8) if (i.data === W) o.push({ type: 2, index: n });
45
- else {
46
- let l = -1;
47
- for (; (l = i.data.indexOf(p, l + 1)) !== -1; ) o.push({ type: 7, index: n }), l += p.length - 1;
48
- }
49
- n++;
50
- }
51
- }
52
- static createElement(t, s) {
53
- const e = f.createElement("template");
54
- return e.innerHTML = t, e;
55
- }
56
- }
57
- function v(h, t, s = h, e) {
58
- if (t === H) return t;
59
- let i = e !== void 0 ? s._$Co?.[e] : s._$Cl;
60
- const n = y(t) ? void 0 : t._$litDirective$;
61
- return i?.constructor !== n && (i?._$AO?.(!1), n === void 0 ? i = void 0 : (i = new n(h), i._$AT(h, s, e)), e !== void 0 ? (s._$Co ??= [])[e] = i : s._$Cl = i), i !== void 0 && (t = v(h, i._$AS(h, t.values), i, e)), t;
62
- }
63
- class F {
64
- constructor(t, s) {
65
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
66
- }
67
- get parentNode() {
68
- return this._$AM.parentNode;
69
- }
70
- get _$AU() {
71
- return this._$AM._$AU;
72
- }
73
- u(t) {
74
- const { el: { content: s }, parts: e } = this._$AD, i = (t?.creationScope ?? f).importNode(s, !0);
75
- g.currentNode = i;
76
- let n = g.nextNode(), r = 0, a = 0, o = e[0];
77
- for (; o !== void 0; ) {
78
- if (r === o.index) {
79
- let $;
80
- o.type === 2 ? $ = new b(n, n.nextSibling, this, t) : o.type === 1 ? $ = new o.ctor(n, o.name, o.strings, this, t) : o.type === 6 && ($ = new J(n, this, t)), this._$AV.push($), o = e[++a];
81
- }
82
- r !== o?.index && (n = g.nextNode(), r++);
83
- }
84
- return g.currentNode = f, i;
85
- }
86
- p(t) {
87
- let s = 0;
88
- for (const e of this._$AV) e !== void 0 && (e.strings !== void 0 ? (e._$AI(t, e, s), s += e.strings.length - 2) : e._$AI(t[s])), s++;
89
- }
90
- }
91
- class b {
92
- get _$AU() {
93
- return this._$AM?._$AU ?? this._$Cv;
94
- }
95
- constructor(t, s, e, i) {
96
- this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = e, this.options = i, this._$Cv = i?.isConnected ?? !0;
97
- }
98
- get parentNode() {
99
- let t = this._$AA.parentNode;
100
- const s = this._$AM;
101
- return s !== void 0 && t?.nodeType === 11 && (t = s.parentNode), t;
102
- }
103
- get startNode() {
104
- return this._$AA;
105
- }
106
- get endNode() {
107
- return this._$AB;
108
- }
109
- _$AI(t, s = this) {
110
- t = v(this, t, s), y(t) ? t === A || t == null || t === "" ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : z(t) ? this.k(t) : this._(t);
111
- }
112
- O(t) {
113
- return this._$AA.parentNode.insertBefore(t, this._$AB);
114
- }
115
- T(t) {
116
- this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
117
- }
118
- _(t) {
119
- this._$AH !== A && y(this._$AH) ? this._$AA.nextSibling.data = t : this.T(f.createTextNode(t)), this._$AH = t;
120
- }
121
- $(t) {
122
- const { values: s, _$litType$: e } = t, i = typeof e == "number" ? this._$AC(t) : (e.el === void 0 && (e.el = x.createElement(V(e.h, e.h[0]), this.options)), e);
123
- if (this._$AH?._$AD === i) this._$AH.p(s);
124
- else {
125
- const n = new F(i, this), r = n.u(this.options);
126
- n.p(s), this.T(r), this._$AH = n;
127
- }
128
- }
129
- _$AC(t) {
130
- let s = P.get(t.strings);
131
- return s === void 0 && P.set(t.strings, s = new x(t)), s;
132
- }
133
- k(t) {
134
- S(this._$AH) || (this._$AH = [], this._$AR());
135
- const s = this._$AH;
136
- let e, i = 0;
137
- for (const n of t) i === s.length ? s.push(e = new b(this.O(C()), this.O(C()), this, this.options)) : e = s[i], e._$AI(n), i++;
138
- i < s.length && (this._$AR(e && e._$AB.nextSibling, i), s.length = i);
139
- }
140
- _$AR(t = this._$AA.nextSibling, s) {
141
- for (this._$AP?.(!1, !0, s); t !== this._$AB; ) {
142
- const e = w(t).nextSibling;
143
- w(t).remove(), t = e;
144
- }
145
- }
146
- setConnected(t) {
147
- this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
148
- }
149
- }
150
- class M {
151
- get tagName() {
152
- return this.element.tagName;
153
- }
154
- get _$AU() {
155
- return this._$AM._$AU;
156
- }
157
- constructor(t, s, e, i, n) {
158
- this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t, this.name = s, this._$AM = i, this.options = n, e.length > 2 || e[0] !== "" || e[1] !== "" ? (this._$AH = Array(e.length - 1).fill(new String()), this.strings = e) : this._$AH = A;
159
- }
160
- _$AI(t, s = this, e, i) {
161
- const n = this.strings;
162
- let r = !1;
163
- if (n === void 0) t = v(this, t, s, 0), r = !y(t) || t !== this._$AH && t !== H, r && (this._$AH = t);
164
- else {
165
- const a = t;
166
- let o, $;
167
- for (t = n[0], o = 0; o < n.length - 1; o++) $ = v(this, a[e + o], s, o), $ === H && ($ = this._$AH[o]), r ||= !y($) || $ !== this._$AH[o], $ === A ? t = A : t !== A && (t += ($ ?? "") + n[o + 1]), this._$AH[o] = $;
168
- }
169
- r && !i && this.j(t);
170
- }
171
- j(t) {
172
- t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
173
- }
174
- }
175
- class Y extends M {
176
- constructor() {
177
- super(...arguments), this.type = 3;
178
- }
179
- j(t) {
180
- this.element[this.name] = t === A ? void 0 : t;
181
- }
182
- }
183
- class q extends M {
184
- constructor() {
185
- super(...arguments), this.type = 4;
186
- }
187
- j(t) {
188
- this.element.toggleAttribute(this.name, !!t && t !== A);
189
- }
190
- }
191
- class G extends M {
192
- constructor(t, s, e, i, n) {
193
- super(t, s, e, i, n), this.type = 5;
194
- }
195
- _$AI(t, s = this) {
196
- if ((t = v(this, t, s, 0) ?? A) === H) return;
197
- const e = this._$AH, i = t === A && e !== A || t.capture !== e.capture || t.once !== e.once || t.passive !== e.passive, n = t !== A && (e === A || i);
198
- i && this.element.removeEventListener(this.name, this, e), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
199
- }
200
- handleEvent(t) {
201
- typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
202
- }
203
- }
204
- class J {
205
- constructor(t, s, e) {
206
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = e;
207
- }
208
- get _$AU() {
209
- return this._$AM._$AU;
210
- }
211
- _$AI(t) {
212
- v(this, t);
213
- }
214
- }
215
- const K = I.litHtmlPolyfillSupport;
216
- K?.(x, b), (I.litHtmlVersions ??= []).push("3.3.2");
217
- const Q = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, X = (h) => (...t) => ({ _$litDirective$: h, values: t });
218
- class tt {
219
- constructor(t) {
220
- }
221
- get _$AU() {
222
- return this._$AM._$AU;
223
- }
224
- _$AT(t, s, e) {
225
- this._$Ct = t, this._$AM = s, this._$Ci = e;
226
- }
227
- _$AS(t, s) {
228
- return this.update(t, s);
229
- }
230
- update(t, s) {
231
- return this.render(...s);
232
- }
233
- }
234
- export {
235
- A,
236
- H as E,
237
- X as e,
238
- tt as i,
239
- Q as t
240
- };
@@ -1,3 +0,0 @@
1
- "use strict";const I=globalThis,w=h=>h,T=I.trustedTypes,R=T?T.createPolicy("lit-html",{createHTML:h=>h}):void 0,D="$lit$",p=`lit$${Math.random().toFixed(9).slice(2)}$`,W="?"+p,k=`<${W}>`,f=document,C=()=>f.createComment(""),H=h=>h===null||typeof h!="object"&&typeof h!="function",S=Array.isArray,z=h=>S(h)||typeof h?.[Symbol.iterator]=="function",E=`[
2
- \f\r]`,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,B=/>/g,u=RegExp(`>|${E}(?:([^\\s"'>=/]+)(${E}*=${E}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),O=/'/g,L=/"/g,j=/^(?:script|style|textarea|title)$/i,v=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),P=new WeakMap,g=f.createTreeWalker(f,129);function V(h,t){if(!S(h)||!h.hasOwnProperty("raw"))throw Error("invalid template strings array");return R!==void 0?R.createHTML(t):t}const Z=(h,t)=>{const s=h.length-1,e=[];let i,n=t===2?"<svg>":t===3?"<math>":"",r=y;for(let a=0;a<s;a++){const o=h[a];let A,_,l=-1,c=0;for(;c<o.length&&(r.lastIndex=c,_=r.exec(o),_!==null);)c=r.lastIndex,r===y?_[1]==="!--"?r=U:_[1]!==void 0?r=B:_[2]!==void 0?(j.test(_[2])&&(i=RegExp("</"+_[2],"g")),r=u):_[3]!==void 0&&(r=u):r===u?_[0]===">"?(r=i??y,l=-1):_[1]===void 0?l=-2:(l=r.lastIndex-_[2].length,A=_[1],r=_[3]===void 0?u:_[3]==='"'?L:O):r===L||r===O?r=u:r===U||r===B?r=y:(r=u,i=void 0);const d=r===u&&h[a+1].startsWith("/>")?" ":"";n+=r===y?o+k:l>=0?(e.push(A),o.slice(0,l)+D+o.slice(l)+p+d):o+p+(l===-2?a:d)}return[V(h,n+(h[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),e]};class x{constructor({strings:t,_$litType$:s},e){let i;this.parts=[];let n=0,r=0;const a=t.length-1,o=this.parts,[A,_]=Z(t,s);if(this.el=x.createElement(A,e),g.currentNode=this.el.content,s===2||s===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=g.nextNode())!==null&&o.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(D)){const c=_[r++],d=i.getAttribute(l).split(p),N=/([.?@])?(.*)/.exec(c);o.push({type:1,index:n,name:N[2],strings:d,ctor:N[1]==="."?Y:N[1]==="?"?q:N[1]==="@"?G:M}),i.removeAttribute(l)}else l.startsWith(p)&&(o.push({type:6,index:n}),i.removeAttribute(l));if(j.test(i.tagName)){const l=i.textContent.split(p),c=l.length-1;if(c>0){i.textContent=T?T.emptyScript:"";for(let d=0;d<c;d++)i.append(l[d],C()),g.nextNode(),o.push({type:2,index:++n});i.append(l[c],C())}}}else if(i.nodeType===8)if(i.data===W)o.push({type:2,index:n});else{let l=-1;for(;(l=i.data.indexOf(p,l+1))!==-1;)o.push({type:7,index:n}),l+=p.length-1}n++}}static createElement(t,s){const e=f.createElement("template");return e.innerHTML=t,e}}function m(h,t,s=h,e){if(t===v)return t;let i=e!==void 0?s._$Co?.[e]:s._$Cl;const n=H(t)?void 0:t._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(h),i._$AT(h,s,e)),e!==void 0?(s._$Co??=[])[e]=i:s._$Cl=i),i!==void 0&&(t=m(h,i._$AS(h,t.values),i,e)),t}class F{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:e}=this._$AD,i=(t?.creationScope??f).importNode(s,!0);g.currentNode=i;let n=g.nextNode(),r=0,a=0,o=e[0];for(;o!==void 0;){if(r===o.index){let A;o.type===2?A=new b(n,n.nextSibling,this,t):o.type===1?A=new o.ctor(n,o.name,o.strings,this,t):o.type===6&&(A=new J(n,this,t)),this._$AV.push(A),o=e[++a]}r!==o?.index&&(n=g.nextNode(),r++)}return g.currentNode=f,i}p(t){let s=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(t,e,s),s+=e.strings.length-2):e._$AI(t[s])),s++}}class b{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,s,e,i){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&t?.nodeType===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=m(this,t,s),H(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):z(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!==$&&H(this._$AH)?this._$AA.nextSibling.data=t:this.T(f.createTextNode(t)),this._$AH=t}$(t){const{values:s,_$litType$:e}=t,i=typeof e=="number"?this._$AC(t):(e.el===void 0&&(e.el=x.createElement(V(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(s);else{const n=new F(i,this),r=n.u(this.options);n.p(s),this.T(r),this._$AH=n}}_$AC(t){let s=P.get(t.strings);return s===void 0&&P.set(t.strings,s=new x(t)),s}k(t){S(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let e,i=0;for(const n of t)i===s.length?s.push(e=new b(this.O(C()),this.O(C()),this,this.options)):e=s[i],e._$AI(n),i++;i<s.length&&(this._$AR(e&&e._$AB.nextSibling,i),s.length=i)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const e=w(t).nextSibling;w(t).remove(),t=e}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class M{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,e,i,n){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=s,this._$AM=i,this.options=n,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=$}_$AI(t,s=this,e,i){const n=this.strings;let r=!1;if(n===void 0)t=m(this,t,s,0),r=!H(t)||t!==this._$AH&&t!==v,r&&(this._$AH=t);else{const a=t;let o,A;for(t=n[0],o=0;o<n.length-1;o++)A=m(this,a[e+o],s,o),A===v&&(A=this._$AH[o]),r||=!H(A)||A!==this._$AH[o],A===$?t=$:t!==$&&(t+=(A??"")+n[o+1]),this._$AH[o]=A}r&&!i&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Y extends M{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}}class q extends M{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}}class G extends M{constructor(t,s,e,i,n){super(t,s,e,i,n),this.type=5}_$AI(t,s=this){if((t=m(this,t,s,0)??$)===v)return;const e=this._$AH,i=t===$&&e!==$||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==$&&(e===$||i);i&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,s,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){m(this,t)}}const K=I.litHtmlPolyfillSupport;K?.(x,b),(I.litHtmlVersions??=[]).push("3.3.2");const Q={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},X=h=>(...t)=>({_$litDirective$:h,values:t});class tt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,e){this._$Ct=t,this._$AM=s,this._$Ci=e}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}}exports.A=$;exports.E=v;exports.e=X;exports.i=tt;exports.t=Q;
@@ -1 +0,0 @@
1
- "use strict";const t=require("./directive-ekjitgzi.cjs");const s=e=>e.strings===void 0,o={},T=(e,r=o)=>e._$AH=r;const l=t.e(class extends t.i{constructor(e){if(super(e),e.type!==t.t.PROPERTY&&e.type!==t.t.ATTRIBUTE&&e.type!==t.t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!s(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[r]){if(r===t.E||r===t.A)return r;const n=e.element,i=e.name;if(e.type===t.t.PROPERTY){if(r===n[i])return t.E}else if(e.type===t.t.BOOLEAN_ATTRIBUTE){if(!!r===n.hasAttribute(i))return t.E}else if(e.type===t.t.ATTRIBUTE&&n.getAttribute(i)===r+"")return t.E;return T(e),r}});exports.l=l;
@@ -1,24 +0,0 @@
1
- import { e as s, i as T, t, E as n, A as l } from "./directive-Z_rhNYWK.js";
2
- const p = (e) => e.strings === void 0, u = {}, E = (e, r = u) => e._$AH = r;
3
- const A = s(class extends T {
4
- constructor(e) {
5
- if (super(e), e.type !== t.PROPERTY && e.type !== t.ATTRIBUTE && e.type !== t.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
6
- if (!p(e)) throw Error("`live` bindings can only contain a single expression");
7
- }
8
- render(e) {
9
- return e;
10
- }
11
- update(e, [r]) {
12
- if (r === n || r === l) return r;
13
- const i = e.element, o = e.name;
14
- if (e.type === t.PROPERTY) {
15
- if (r === i[o]) return n;
16
- } else if (e.type === t.BOOLEAN_ATTRIBUTE) {
17
- if (!!r === i.hasAttribute(o)) return n;
18
- } else if (e.type === t.ATTRIBUTE && i.getAttribute(o) === r + "") return n;
19
- return E(e), r;
20
- }
21
- });
22
- export {
23
- A as l
24
- };
@@ -1,30 +0,0 @@
1
- "use strict";const Z=require("lit"),N=require("lit/decorators.js");var $="top",M="bottom",L="right",j="left",ke="auto",le=[$,M,L,j],ee="start",fe="end",vt="clippingParents",Ze="viewport",ae="popper",ht="reference",Ie=le.reduce(function(t,e){return t.concat([e+"-"+ee,e+"-"+fe])},[]),et=[].concat(le,[ke]).reduce(function(t,e){return t.concat([e,e+"-"+ee,e+"-"+fe])},[]),mt="beforeRead",gt="read",yt="afterRead",bt="beforeMain",wt="main",xt="afterMain",Ot="beforeWrite",Pt="write",Et="afterWrite",At=[mt,gt,yt,bt,wt,xt,Ot,Pt,Et];function H(t){return t?(t.nodeName||"").toLowerCase():null}function R(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function K(t){var e=R(t).Element;return t instanceof e||t instanceof Element}function S(t){var e=R(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function $e(t){if(typeof ShadowRoot>"u")return!1;var e=R(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ct(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},i=e.elements[r];!S(i)||!H(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(f){var s=o[f];s===!1?i.removeAttribute(f):i.setAttribute(f,s===!0?"":s)}))})}function Dt(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],i=e.attributes[n]||{},f=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),s=f.reduce(function(a,c){return a[c]="",a},{});!S(o)||!H(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const kt={name:"applyStyles",enabled:!0,phase:"write",fn:Ct,effect:Dt,requires:["computeStyles"]};function W(t){return t.split("-")[0]}var J=Math.max,we=Math.min,te=Math.round;function Ce(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function tt(){return!/^((?!chrome|android).)*safari/i.test(Ce())}function re(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,i=1;e&&S(t)&&(o=t.offsetWidth>0&&te(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&te(n.height)/t.offsetHeight||1);var f=K(t)?R(t):window,s=f.visualViewport,a=!tt()&&r,c=(n.left+(a&&s?s.offsetLeft:0))/o,p=(n.top+(a&&s?s.offsetTop:0))/i,h=n.width/o,y=n.height/i;return{width:h,height:y,top:p,right:c+h,bottom:p+y,left:c,x:c,y:p}}function je(t){var e=re(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function rt(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&$e(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function V(t){return R(t).getComputedStyle(t)}function $t(t){return["table","td","th"].indexOf(H(t))>=0}function I(t){return((K(t)?t.ownerDocument:t.document)||window.document).documentElement}function xe(t){return H(t)==="html"?t:t.assignedSlot||t.parentNode||($e(t)?t.host:null)||I(t)}function Fe(t){return!S(t)||V(t).position==="fixed"?null:t.offsetParent}function jt(t){var e=/firefox/i.test(Ce()),r=/Trident/i.test(Ce());if(r&&S(t)){var n=V(t);if(n.position==="fixed")return null}var o=xe(t);for($e(o)&&(o=o.host);S(o)&&["html","body"].indexOf(H(o))<0;){var i=V(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ue(t){for(var e=R(t),r=Fe(t);r&&$t(r)&&V(r).position==="static";)r=Fe(r);return r&&(H(r)==="html"||H(r)==="body"&&V(r).position==="static")?e:r||jt(t)||e}function Be(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function se(t,e,r){return J(t,we(e,r))}function Bt(t,e,r){var n=se(t,e,r);return n>r?r:n}function ot(){return{top:0,right:0,bottom:0,left:0}}function nt(t){return Object.assign({},ot(),t)}function it(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Rt=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,nt(typeof e!="number"?e:it(e,le))};function St(t){var e,r=t.state,n=t.name,o=t.options,i=r.elements.arrow,f=r.modifiersData.popperOffsets,s=W(r.placement),a=Be(s),c=[j,L].indexOf(s)>=0,p=c?"height":"width";if(!(!i||!f)){var h=Rt(o.padding,r),y=je(i),l=a==="y"?$:j,w=a==="y"?M:L,v=r.rects.reference[p]+r.rects.reference[a]-f[a]-r.rects.popper[p],d=f[a]-r.rects.reference[a],b=ue(i),O=b?a==="y"?b.clientHeight||0:b.clientWidth||0:0,P=v/2-d/2,u=h[l],m=O-y[p]-h[w],g=O/2-y[p]/2+P,x=se(u,g,m),C=a;r.modifiersData[n]=(e={},e[C]=x,e.centerOffset=x-g,e)}}function Mt(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||rt(e.elements.popper,o)&&(e.elements.arrow=o))}const Lt={name:"arrow",enabled:!0,phase:"main",fn:St,effect:Mt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(t){return t.split("-")[1]}var Tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _t(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:te(r*o)/o||0,y:te(n*o)/o||0}}function Xe(t){var e,r=t.popper,n=t.popperRect,o=t.placement,i=t.variation,f=t.offsets,s=t.position,a=t.gpuAcceleration,c=t.adaptive,p=t.roundOffsets,h=t.isFixed,y=f.x,l=y===void 0?0:y,w=f.y,v=w===void 0?0:w,d=typeof p=="function"?p({x:l,y:v}):{x:l,y:v};l=d.x,v=d.y;var b=f.hasOwnProperty("x"),O=f.hasOwnProperty("y"),P=j,u=$,m=window;if(c){var g=ue(r),x="clientHeight",C="clientWidth";if(g===R(r)&&(g=I(r),V(g).position!=="static"&&s==="absolute"&&(x="scrollHeight",C="scrollWidth")),g=g,o===$||(o===j||o===L)&&i===fe){u=M;var A=h&&g===m&&m.visualViewport?m.visualViewport.height:g[x];v-=A-n.height,v*=a?1:-1}if(o===j||(o===$||o===M)&&i===fe){P=L;var E=h&&g===m&&m.visualViewport?m.visualViewport.width:g[C];l-=E-n.width,l*=a?1:-1}}var D=Object.assign({position:s},c&&Tt),T=p===!0?_t({x:l,y:v},R(r)):{x:l,y:v};if(l=T.x,v=T.y,a){var k;return Object.assign({},D,(k={},k[u]=O?"0":"",k[P]=b?"0":"",k.transform=(m.devicePixelRatio||1)<=1?"translate("+l+"px, "+v+"px)":"translate3d("+l+"px, "+v+"px, 0)",k))}return Object.assign({},D,(e={},e[u]=O?v+"px":"",e[P]=b?l+"px":"",e.transform="",e))}function Wt(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,f=i===void 0?!0:i,s=r.roundOffsets,a=s===void 0?!0:s,c={placement:W(e.placement),variation:oe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Xe(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:f,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Xe(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Ht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wt,data:{}};var ye={passive:!0};function Nt(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,i=o===void 0?!0:o,f=n.resize,s=f===void 0?!0:f,a=R(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(p){p.addEventListener("scroll",r.update,ye)}),s&&a.addEventListener("resize",r.update,ye),function(){i&&c.forEach(function(p){p.removeEventListener("scroll",r.update,ye)}),s&&a.removeEventListener("resize",r.update,ye)}}const zt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nt,data:{}};var Vt={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,function(e){return Vt[e]})}var qt={start:"end",end:"start"};function Ye(t){return t.replace(/start|end/g,function(e){return qt[e]})}function Re(t){var e=R(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Se(t){return re(I(t)).left+Re(t).scrollLeft}function It(t,e){var r=R(t),n=I(t),o=r.visualViewport,i=n.clientWidth,f=n.clientHeight,s=0,a=0;if(o){i=o.width,f=o.height;var c=tt();(c||!c&&e==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:f,x:s+Se(t),y:a}}function Ft(t){var e,r=I(t),n=Re(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=J(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),f=J(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Se(t),a=-n.scrollTop;return V(o||r).direction==="rtl"&&(s+=J(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:f,x:s,y:a}}function Me(t){var e=V(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function at(t){return["html","body","#document"].indexOf(H(t))>=0?t.ownerDocument.body:S(t)&&Me(t)?t:at(xe(t))}function pe(t,e){var r;e===void 0&&(e=[]);var n=at(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=R(n),f=o?[i].concat(i.visualViewport||[],Me(n)?n:[]):n,s=e.concat(f);return o?s:s.concat(pe(xe(f)))}function De(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt(t,e){var r=re(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ue(t,e,r){return e===Ze?De(It(t,r)):K(e)?Xt(e,r):De(Ft(I(t)))}function Yt(t){var e=pe(xe(t)),r=["absolute","fixed"].indexOf(V(t).position)>=0,n=r&&S(t)?ue(t):t;return K(n)?e.filter(function(o){return K(o)&&rt(o,n)&&H(o)!=="body"}):[]}function Ut(t,e,r,n){var o=e==="clippingParents"?Yt(t):[].concat(e),i=[].concat(o,[r]),f=i[0],s=i.reduce(function(a,c){var p=Ue(t,c,n);return a.top=J(p.top,a.top),a.right=we(p.right,a.right),a.bottom=we(p.bottom,a.bottom),a.left=J(p.left,a.left),a},Ue(t,f,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function st(t){var e=t.reference,r=t.element,n=t.placement,o=n?W(n):null,i=n?oe(n):null,f=e.x+e.width/2-r.width/2,s=e.y+e.height/2-r.height/2,a;switch(o){case $:a={x:f,y:e.y-r.height};break;case M:a={x:f,y:e.y+e.height};break;case L:a={x:e.x+e.width,y:s};break;case j:a={x:e.x-r.width,y:s};break;default:a={x:e.x,y:e.y}}var c=o?Be(o):null;if(c!=null){var p=c==="y"?"height":"width";switch(i){case ee:a[c]=a[c]-(e[p]/2-r[p]/2);break;case fe:a[c]=a[c]+(e[p]/2-r[p]/2);break}}return a}function ce(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,f=i===void 0?t.strategy:i,s=r.boundary,a=s===void 0?vt:s,c=r.rootBoundary,p=c===void 0?Ze:c,h=r.elementContext,y=h===void 0?ae:h,l=r.altBoundary,w=l===void 0?!1:l,v=r.padding,d=v===void 0?0:v,b=nt(typeof d!="number"?d:it(d,le)),O=y===ae?ht:ae,P=t.rects.popper,u=t.elements[w?O:y],m=Ut(K(u)?u:u.contextElement||I(t.elements.popper),a,p,f),g=re(t.elements.reference),x=st({reference:g,element:P,placement:o}),C=De(Object.assign({},P,x)),A=y===ae?C:g,E={top:m.top-A.top+b.top,bottom:A.bottom-m.bottom+b.bottom,left:m.left-A.left+b.left,right:A.right-m.right+b.right},D=t.modifiersData.offset;if(y===ae&&D){var T=D[o];Object.keys(E).forEach(function(k){var F=[L,M].indexOf(k)>=0?1:-1,X=[$,M].indexOf(k)>=0?"y":"x";E[k]+=T[X]*F})}return E}function Gt(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,f=r.padding,s=r.flipVariations,a=r.allowedAutoPlacements,c=a===void 0?et:a,p=oe(n),h=p?s?Ie:Ie.filter(function(w){return oe(w)===p}):le,y=h.filter(function(w){return c.indexOf(w)>=0});y.length===0&&(y=h);var l=y.reduce(function(w,v){return w[v]=ce(t,{placement:v,boundary:o,rootBoundary:i,padding:f})[W(v)],w},{});return Object.keys(l).sort(function(w,v){return l[w]-l[v]})}function Jt(t){if(W(t)===ke)return[];var e=be(t);return[Ye(t),e,Ye(e)]}function Kt(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,f=r.altAxis,s=f===void 0?!0:f,a=r.fallbackPlacements,c=r.padding,p=r.boundary,h=r.rootBoundary,y=r.altBoundary,l=r.flipVariations,w=l===void 0?!0:l,v=r.allowedAutoPlacements,d=e.options.placement,b=W(d),O=b===d,P=a||(O||!w?[be(d)]:Jt(d)),u=[d].concat(P).reduce(function(Q,q){return Q.concat(W(q)===ke?Gt(e,{placement:q,boundary:p,rootBoundary:h,padding:c,flipVariations:w,allowedAutoPlacements:v}):q)},[]),m=e.rects.reference,g=e.rects.popper,x=new Map,C=!0,A=u[0],E=0;E<u.length;E++){var D=u[E],T=W(D),k=oe(D)===ee,F=[$,M].indexOf(T)>=0,X=F?"width":"height",B=ce(e,{placement:D,boundary:p,rootBoundary:h,altBoundary:y,padding:c}),_=F?k?L:j:k?M:$;m[X]>g[X]&&(_=be(_));var de=be(_),Y=[];if(i&&Y.push(B[T]<=0),s&&Y.push(B[_]<=0,B[de]<=0),Y.every(function(Q){return Q})){A=D,C=!1;break}x.set(D,Y)}if(C)for(var ve=w?3:1,Oe=function(q){var ie=u.find(function(me){var U=x.get(me);if(U)return U.slice(0,q).every(function(Pe){return Pe})});if(ie)return A=ie,"break"},ne=ve;ne>0;ne--){var he=Oe(ne);if(he==="break")break}e.placement!==A&&(e.modifiersData[n]._skip=!0,e.placement=A,e.reset=!0)}}const Qt={name:"flip",enabled:!0,phase:"main",fn:Kt,requiresIfExists:["offset"],data:{_skip:!1}};function Ge(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Je(t){return[$,L,M,j].some(function(e){return t[e]>=0})}function Zt(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,f=ce(e,{elementContext:"reference"}),s=ce(e,{altBoundary:!0}),a=Ge(f,n),c=Ge(s,o,i),p=Je(a),h=Je(c);e.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const er={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function tr(t,e,r){var n=W(t),o=[j,$].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,f=i[0],s=i[1];return f=f||0,s=(s||0)*o,[j,L].indexOf(n)>=0?{x:s,y:f}:{x:f,y:s}}function rr(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,f=et.reduce(function(p,h){return p[h]=tr(h,e.rects,i),p},{}),s=f[e.placement],a=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=f}const or={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rr};function nr(t){var e=t.state,r=t.name;e.modifiersData[r]=st({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const ir={name:"popperOffsets",enabled:!0,phase:"read",fn:nr,data:{}};function ar(t){return t==="x"?"y":"x"}function sr(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,f=r.altAxis,s=f===void 0?!1:f,a=r.boundary,c=r.rootBoundary,p=r.altBoundary,h=r.padding,y=r.tether,l=y===void 0?!0:y,w=r.tetherOffset,v=w===void 0?0:w,d=ce(e,{boundary:a,rootBoundary:c,padding:h,altBoundary:p}),b=W(e.placement),O=oe(e.placement),P=!O,u=Be(b),m=ar(u),g=e.modifiersData.popperOffsets,x=e.rects.reference,C=e.rects.popper,A=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,E=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(g){if(i){var k,F=u==="y"?$:j,X=u==="y"?M:L,B=u==="y"?"height":"width",_=g[u],de=_+d[F],Y=_-d[X],ve=l?-C[B]/2:0,Oe=O===ee?x[B]:C[B],ne=O===ee?-C[B]:-x[B],he=e.elements.arrow,Q=l&&he?je(he):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ot(),ie=q[F],me=q[X],U=se(0,x[B],Q[B]),Pe=P?x[B]/2-ve-U-ie-E.mainAxis:Oe-U-ie-E.mainAxis,pt=P?-x[B]/2+ve+U+me+E.mainAxis:ne+U+me+E.mainAxis,Ee=e.elements.arrow&&ue(e.elements.arrow),ft=Ee?u==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Le=(k=D?.[u])!=null?k:0,ct=_+Pe-Le-ft,lt=_+pt-Le,Te=se(l?we(de,ct):de,_,l?J(Y,lt):Y);g[u]=Te,T[u]=Te-_}if(s){var _e,ut=u==="x"?$:j,dt=u==="x"?M:L,G=g[m],ge=m==="y"?"height":"width",We=G+d[ut],He=G-d[dt],Ae=[$,j].indexOf(b)!==-1,Ne=(_e=D?.[m])!=null?_e:0,ze=Ae?We:G-x[ge]-C[ge]-Ne+E.altAxis,Ve=Ae?G+x[ge]+C[ge]-Ne-E.altAxis:He,qe=l&&Ae?Bt(ze,G,Ve):se(l?ze:We,G,l?Ve:He);g[m]=qe,T[m]=qe-G}e.modifiersData[n]=T}}const pr={name:"preventOverflow",enabled:!0,phase:"main",fn:sr,requiresIfExists:["offset"]};function fr(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function cr(t){return t===R(t)||!S(t)?Re(t):fr(t)}function lr(t){var e=t.getBoundingClientRect(),r=te(e.width)/t.offsetWidth||1,n=te(e.height)/t.offsetHeight||1;return r!==1||n!==1}function ur(t,e,r){r===void 0&&(r=!1);var n=S(e),o=S(e)&&lr(e),i=I(e),f=re(t,o,r),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(n||!n&&!r)&&((H(e)!=="body"||Me(i))&&(s=cr(e)),S(e)?(a=re(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=Se(i))),{x:f.left+s.scrollLeft-a.x,y:f.top+s.scrollTop-a.y,width:f.width,height:f.height}}function dr(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var f=[].concat(i.requires||[],i.requiresIfExists||[]);f.forEach(function(s){if(!r.has(s)){var a=e.get(s);a&&o(a)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function vr(t){var e=dr(t);return At.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function hr(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function mr(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Ke={placement:"bottom",modifiers:[],strategy:"absolute"};function Qe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function gr(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,i=o===void 0?Ke:o;return function(s,a,c){c===void 0&&(c=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ke,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},h=[],y=!1,l={state:p,setOptions:function(b){var O=typeof b=="function"?b(p.options):b;v(),p.options=Object.assign({},i,p.options,O),p.scrollParents={reference:K(s)?pe(s):s.contextElement?pe(s.contextElement):[],popper:pe(a)};var P=vr(mr([].concat(n,p.options.modifiers)));return p.orderedModifiers=P.filter(function(u){return u.enabled}),w(),l.update()},forceUpdate:function(){if(!y){var b=p.elements,O=b.reference,P=b.popper;if(Qe(O,P)){p.rects={reference:ur(O,ue(P),p.options.strategy==="fixed"),popper:je(P)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(E){return p.modifiersData[E.name]=Object.assign({},E.data)});for(var u=0;u<p.orderedModifiers.length;u++){if(p.reset===!0){p.reset=!1,u=-1;continue}var m=p.orderedModifiers[u],g=m.fn,x=m.options,C=x===void 0?{}:x,A=m.name;typeof g=="function"&&(p=g({state:p,options:C,name:A,instance:l})||p)}}}},update:hr(function(){return new Promise(function(d){l.forceUpdate(),d(p)})}),destroy:function(){v(),y=!0}};if(!Qe(s,a))return l;l.setOptions(c).then(function(d){!y&&c.onFirstUpdate&&c.onFirstUpdate(d)});function w(){p.orderedModifiers.forEach(function(d){var b=d.name,O=d.options,P=O===void 0?{}:O,u=d.effect;if(typeof u=="function"){var m=u({state:p,name:b,instance:l,options:P}),g=function(){};h.push(m||g)}})}function v(){h.forEach(function(d){return d()}),h=[]}return l}}var yr=[zt,ir,Ht,kt,or,Qt,pr,Lt,er],br=gr({defaultModifiers:yr});const wr='.popover__wrapper{position:relative;display:inline-block;font-family:var(--font-family-base)}.popover__trigger{display:inline-flex}.popover__panel{position:relative;overflow:visible;z-index:var(--z-index-popover);min-width:240px;border-radius:var(--radius-md);border:1px solid var(--color-border);background-color:var(--color-body-bg);box-shadow:var(--shadow-md)}.popover__content{position:relative;z-index:1;background-color:var(--color-body-bg);border-radius:var(--radius-md);overflow:hidden}.popover__content:before{content:"";position:absolute;top:0;left:0;right:0;height:8px;background-color:var(--color-body-bg);border-radius:var(--radius-md) var(--radius-md) 0 0;z-index:1;pointer-events:none}.popover__content>*{position:relative;z-index:2}.popover__title{padding:10px var(--spacing-3);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-body-text)}.popover__body{padding:var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-secondary)}.popover__body--with-border{border-top:1px solid var(--color-border)}.popper-arrow{position:absolute;width:12px;height:12px;pointer-events:none;z-index:0}.popper-arrow:before{content:"";position:absolute;inset:0;background:var(--color-border);transform:rotate(45deg)}.popper-arrow:after{content:"";position:absolute;inset:1px;background:var(--color-body-bg);transform:rotate(45deg)}[data-popper]{position:relative;overflow:visible}[data-popper-placement^=bottom]>.popper-arrow{top:-6px;left:50%;transform:translate(-50%,-50%)}[data-popper-placement^=top]>.popper-arrow{bottom:-6px;left:50%;transform:translate(-50%,50%)}[data-popper-placement^=left]>.popper-arrow{right:-6px;top:50%;transform:translate(50%,-50%)}[data-popper-placement^=right]>.popper-arrow{left:-6px;top:50%;transform:translate(-50%,-50%)}';var xr=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,z=(t,e,r,n)=>{for(var o=n>1?void 0:n?Or(e,r):e,i=t.length-1,f;i>=0;i--)(f=t[i])&&(o=(n?f(e,r,o):f(o))||o);return n&&o&&xr(e,r,o),o};exports.Popover=class extends Z.LitElement{constructor(){super(...arguments),this.title="",this.trigger="click",this.placement="bottom",this.offset=8,this.open=!1,this.closeOnOutsideClick=!0,this.handleDocumentClick=e=>{!this.open||!this.closeOnOutsideClick||e.composedPath().includes(this)||this.setOpen(!1)},this.toggle=e=>{(this.trigger==="click"||this.trigger==="both")&&(e?.stopPropagation(),this.setOpen(!this.open))},this.handleMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!0)},this.handleMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleDocumentClick,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleDocumentClick,{capture:!0}),this.destroyPopper()}updated(e){super.updated(e);const r=e.has("placement"),n=e.has("open")&&this.open;if(e.has("open")&&!this.open){this.destroyPopper();return}(n||r)&&this.open&&this.updatePopper()}setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"popover-open":"popover-close",{bubbles:!0,composed:!0})))}updatePopper(){if(!this.isConnected||!this.open)return;const e=this.triggerElement,r=this.popperElement;if(!(!e||!r)){if(this.popperInstance){this.popperInstance.setOptions({placement:this.placement,modifiers:this.getPopperModifiers(),strategy:"fixed"}),this.popperInstance.update();return}this.popperInstance=br(e,r,{placement:this.placement,strategy:"fixed",modifiers:this.getPopperModifiers()})}}getPopperModifiers(){return[{name:"offset",options:{offset:[0,this.offset]}},{name:"arrow",options:{element:this.popperArrowElement,padding:8}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8}}]}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=void 0)}render(){const e=!!this.title;return Z.html`
2
- <div
3
- class="popover__wrapper"
4
- @mouseenter=${this.handleMouseEnter}
5
- @mouseleave=${this.handleMouseLeave}
6
- >
7
- <div class="popover__trigger" part="trigger" @click=${this.toggle}>
8
- <slot name="trigger"></slot>
9
- </div>
10
-
11
- ${this.open?Z.html`
12
- <div
13
- data-popper
14
- class="popover__panel"
15
- role="dialog"
16
- aria-hidden=${this.open?"false":"true"}
17
- >
18
- <div data-popper-arrow class="popper-arrow"></div>
19
- <div class="popover__content">
20
- ${this.title?Z.html`
21
- <div class="popover__title">${this.title}</div>
22
- `:null}
23
- <div class="popover__body ${e?"popover__body--with-border":""}">
24
- <slot></slot>
25
- </div>
26
- </div>
27
- </div>
28
- `:null}
29
- </div>
30
- `}};exports.Popover.styles=[Z.css`${Z.unsafeCSS(wr)}`];z([N.property({type:String})],exports.Popover.prototype,"title",2);z([N.property({type:String})],exports.Popover.prototype,"trigger",2);z([N.property({type:String})],exports.Popover.prototype,"placement",2);z([N.property({type:Number})],exports.Popover.prototype,"offset",2);z([N.property({type:Boolean,reflect:!0})],exports.Popover.prototype,"open",2);z([N.property({type:Boolean})],exports.Popover.prototype,"closeOnOutsideClick",2);z([N.query('[part="trigger"]')],exports.Popover.prototype,"triggerElement",2);z([N.query("[data-popper]")],exports.Popover.prototype,"popperElement",2);z([N.query("[data-popper-arrow]")],exports.Popover.prototype,"popperArrowElement",2);exports.Popover=z([N.customElement("logosphere-popover")],exports.Popover);