ma-icons 0.3.8 → 0.3.9
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/dist/ma-icons.es.js +13 -13
- package/dist/ma-icons.iife.js +5 -5
- package/package.json +1 -1
package/dist/ma-icons.es.js
CHANGED
|
@@ -45,7 +45,7 @@ const dt = (r) => new nt(typeof r == "string" ? r : r + "", void 0, F), pt = (r,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: $t, defineProperty: ft, getOwnPropertyDescriptor: _t, getOwnPropertyNames:
|
|
48
|
+
const { is: $t, defineProperty: ft, getOwnPropertyDescriptor: _t, getOwnPropertyNames: yt, getOwnPropertySymbols: mt, getPrototypeOf: gt } = Object, g = globalThis, Q = g.trustedTypes, At = Q ? Q.emptyScript : "", I = g.reactiveElementPolyfillSupport, O = (r, t) => r, D = { toAttribute(r, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
r = r ? At : null;
|
|
@@ -110,7 +110,7 @@ let w = class extends HTMLElement {
|
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(O("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(O("properties"))) {
|
|
113
|
-
const e = this.properties, s = [...
|
|
113
|
+
const e = this.properties, s = [...yt(e), ...mt(e)];
|
|
114
114
|
for (const i of s) this.createProperty(i, e[i]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
@@ -282,7 +282,7 @@ w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, w[O("elementProper
|
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const U = globalThis, j = U.trustedTypes, Y = j ? j.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ht = "$lit$",
|
|
285
|
+
const U = globalThis, j = U.trustedTypes, Y = j ? j.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ht = "$lit$", m = `lit$${Math.random().toFixed(9).slice(2)}$`, at = "?" + m, vt = `<${at}>`, S = document, T = () => S.createComment(""), H = (r) => r === null || typeof r != "object" && typeof r != "function", K = Array.isArray, bt = (r) => K(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", B = `[
|
|
286
286
|
\f\r]`, x = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, tt = /-->/g, et = />/g, A = RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^
|
|
287
287
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), st = /'/g, it = /"/g, lt = /^(?:script|style|textarea|title)$/i, St = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), E = St(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), rt = /* @__PURE__ */ new WeakMap(), v = S.createTreeWalker(S, 129);
|
|
288
288
|
function ct(r, t) {
|
|
@@ -296,8 +296,8 @@ const Et = (r, t) => {
|
|
|
296
296
|
const h = r[a];
|
|
297
297
|
let c, p, l = -1, f = 0;
|
|
298
298
|
for (; f < h.length && (o.lastIndex = f, p = o.exec(h), p !== null); ) f = o.lastIndex, o === x ? p[1] === "!--" ? o = tt : p[1] !== void 0 ? o = et : p[2] !== void 0 ? (lt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = A) : p[3] !== void 0 && (o = A) : o === A ? p[0] === ">" ? (o = i ?? x, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? A : p[3] === '"' ? it : st) : o === it || o === st ? o = A : o === tt || o === et ? o = x : (o = A, i = void 0);
|
|
299
|
-
const
|
|
300
|
-
n += o === x ? h + vt : l >= 0 ? (s.push(c), h.slice(0, l) + ht + h.slice(l) +
|
|
299
|
+
const y = o === A && r[a + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
n += o === x ? h + vt : l >= 0 ? (s.push(c), h.slice(0, l) + ht + h.slice(l) + m + y) : h + m + (l === -2 ? a : y);
|
|
301
301
|
}
|
|
302
302
|
return [ct(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
303
303
|
};
|
|
@@ -314,21 +314,21 @@ class N {
|
|
|
314
314
|
for (; (i = v.nextNode()) !== null && h.length < a; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(ht)) {
|
|
317
|
-
const f = p[o++],
|
|
318
|
-
h.push({ type: 1, index: n, name: k[2], strings:
|
|
319
|
-
} else l.startsWith(
|
|
317
|
+
const f = p[o++], y = i.getAttribute(l).split(m), k = /([.?@])?(.*)/.exec(f);
|
|
318
|
+
h.push({ type: 1, index: n, name: k[2], strings: y, ctor: k[1] === "." ? Pt : k[1] === "?" ? Ct : k[1] === "@" ? xt : L }), i.removeAttribute(l);
|
|
319
|
+
} else l.startsWith(m) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
|
|
320
320
|
if (lt.test(i.tagName)) {
|
|
321
|
-
const l = i.textContent.split(
|
|
321
|
+
const l = i.textContent.split(m), f = l.length - 1;
|
|
322
322
|
if (f > 0) {
|
|
323
323
|
i.textContent = j ? j.emptyScript : "";
|
|
324
|
-
for (let
|
|
324
|
+
for (let y = 0; y < f; y++) i.append(l[y], T()), v.nextNode(), h.push({ type: 2, index: ++n });
|
|
325
325
|
i.append(l[f], T());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
} else if (i.nodeType === 8) if (i.data === at) h.push({ type: 2, index: n });
|
|
329
329
|
else {
|
|
330
330
|
let l = -1;
|
|
331
|
-
for (; (l = i.data.indexOf(
|
|
331
|
+
for (; (l = i.data.indexOf(m, l + 1)) !== -1; ) h.push({ type: 7, index: n }), l += m.length - 1;
|
|
332
332
|
}
|
|
333
333
|
n++;
|
|
334
334
|
}
|
|
@@ -606,7 +606,7 @@ var Rt = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, $ = (r, t,
|
|
|
606
606
|
};
|
|
607
607
|
let u = class extends M {
|
|
608
608
|
constructor() {
|
|
609
|
-
super(...arguments), this.styled = !1, this.download = !1, this.leading = !1, this.name =
|
|
609
|
+
super(...arguments), this.styled = !1, this.download = !1, this.leading = !1, this.name = "top-right", this.size = "16", this.weight = "5", this.color = "hsl(0deg 0% 0%)", this.svg = null;
|
|
610
610
|
}
|
|
611
611
|
updated(r) {
|
|
612
612
|
super.updated(r), r.has("name") && this.modifySvg();
|
|
@@ -620,7 +620,7 @@ let u = class extends M {
|
|
|
620
620
|
` : E`${r}`;
|
|
621
621
|
}
|
|
622
622
|
async modifySvg() {
|
|
623
|
-
const t = await (await fetch("
|
|
623
|
+
const t = await (await fetch("../icons/" + (this.download ? "download" : this.name) + ".svg")).text(), e = new DOMParser().parseFromString(t, "image/svg+xml"), s = e.querySelector("svg");
|
|
624
624
|
if (!s) return "";
|
|
625
625
|
s == null || s.setAttribute("width", this.size), s == null || s.setAttribute("height", this.size), s == null || s.setAttribute("fill", "none"), e.querySelectorAll("[stroke]").forEach((i) => i.setAttribute("stroke", this.href ? "hsl(0deg 0% 0% / calc(100% * 3/8))" : this.color)), e.querySelectorAll("[stroke-width]").forEach((i) => i.setAttribute("stroke-width", this.weight)), this.svg = s == null ? void 0 : s.outerHTML;
|
|
626
626
|
}
|
package/dist/ma-icons.iife.js
CHANGED
|
@@ -6,13 +6,13 @@ var MaIcons=function(I){"use strict";/**
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:ft,defineProperty:_t,getOwnPropertyDescriptor:
|
|
9
|
+
*/const{is:ft,defineProperty:_t,getOwnPropertyDescriptor:yt,getOwnPropertyNames:mt,getOwnPropertySymbols:gt,getPrototypeOf:At}=Object,y=globalThis,Y=y.trustedTypes,vt=Y?Y.emptyScript:"",V=y.reactiveElementPolyfillSupport,x=(r,t)=>r,z={toAttribute(r,t){switch(t){case Boolean:r=r?vt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},W=(r,t)=>!ft(r,t),tt={attribute:!0,type:String,converter:z,reflect:!1,useDefault:!1,hasChanged:W};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),y.litPropertyMetadata??(y.litPropertyMetadata=new WeakMap);let E=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=tt){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){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&_t(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=yt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:i,set(o){const a=i==null?void 0:i.call(this);n==null||n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??tt}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=At(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,s=[...mt(e),...gt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(X(i))}else t!==void 0&&e.push(X(t));return e}static _$Eu(t,e){const 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;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $t(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}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 n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:z).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n,o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const a=s.getPropertyOptions(i),h=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:z;this._$Em=i,this[i]=h.fromAttribute(e,a.type)??((o=this._$Ej)==null?void 0:o.get(i))??null,this._$Em=null}}requestUpdate(t,e,s){var i;if(t!==void 0){const n=this.constructor,o=this[t];if(s??(s=n.getPropertyOptions(t)),!((s.hasChanged??W)(o,e)||s.useDefault&&s.reflect&&o===((i=this._$Ej)==null?void 0:i.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:n},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i){const{wrapped:a}=o,h=this[n];a!==!0||this._$AL.has(n)||h===void 0||this.C(n,void 0,o,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}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){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[x("elementProperties")]=new Map,E[x("finalized")]=new Map,V==null||V({ReactiveElement:E}),(y.reactiveElementVersions??(y.reactiveElementVersions=[])).push("2.1.0");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const O=globalThis,D=O.trustedTypes,et=D?D.createPolicy("lit-html",{createHTML:r=>r}):void 0,st="$lit$",
|
|
13
|
+
*/const O=globalThis,D=O.trustedTypes,et=D?D.createPolicy("lit-html",{createHTML:r=>r}):void 0,st="$lit$",m=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+m,bt=`<${it}>`,A=document,U=()=>A.createComment(""),M=r=>r===null||typeof r!="object"&&typeof r!="function",F=Array.isArray,St=r=>F(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",J=`[
|
|
14
14
|
\f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,ot=/>/g,v=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),nt=/'/g,ht=/"/g,at=/^(?:script|style|textarea|title)$/i,Et=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),w=Et(1),P=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),lt=new WeakMap,b=A.createTreeWalker(A,129);function ct(r,t){if(!F(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return et!==void 0?et.createHTML(t):t}const wt=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":t===3?"<math>":"",o=T;for(let a=0;a<e;a++){const h=r[a];let d,p,l=-1,_=0;for(;_<h.length&&(o.lastIndex=_,p=o.exec(h),p!==null);)_=o.lastIndex,o===T?p[1]==="!--"?o=rt:p[1]!==void 0?o=ot:p[2]!==void 0?(at.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=v):p[3]!==void 0&&(o=v):o===v?p[0]===">"?(o=i??T,l=-1):p[1]===void 0?l=-2:(l=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?v:p[3]==='"'?ht:nt):o===ht||o===nt?o=v:o===rt||o===ot?o=T:(o=v,i=void 0);const g=o===v&&r[a+1].startsWith("/>")?" ":"";n+=o===T?h+bt:l>=0?(s.push(d),h.slice(0,l)+st+h.slice(l)+
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),nt=/'/g,ht=/"/g,at=/^(?:script|style|textarea|title)$/i,Et=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),w=Et(1),P=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),lt=new WeakMap,b=A.createTreeWalker(A,129);function ct(r,t){if(!F(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return et!==void 0?et.createHTML(t):t}const wt=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":t===3?"<math>":"",o=T;for(let a=0;a<e;a++){const h=r[a];let d,p,l=-1,_=0;for(;_<h.length&&(o.lastIndex=_,p=o.exec(h),p!==null);)_=o.lastIndex,o===T?p[1]==="!--"?o=rt:p[1]!==void 0?o=ot:p[2]!==void 0?(at.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=v):p[3]!==void 0&&(o=v):o===v?p[0]===">"?(o=i??T,l=-1):p[1]===void 0?l=-2:(l=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?v:p[3]==='"'?ht:nt):o===ht||o===nt?o=v:o===rt||o===ot?o=T:(o=v,i=void 0);const g=o===v&&r[a+1].startsWith("/>")?" ":"";n+=o===T?h+bt:l>=0?(s.push(d),h.slice(0,l)+st+h.slice(l)+m+g):h+m+(l===-2?a:g)}return[ct(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class H{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const a=t.length-1,h=this.parts,[d,p]=wt(t,e);if(this.el=H.createElement(d,s),b.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=b.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(st)){const _=p[o++],g=i.getAttribute(l).split(m),L=/([.?@])?(.*)/.exec(_);h.push({type:1,index:n,name:L[2],strings:g,ctor:L[1]==="."?Ct:L[1]==="?"?xt:L[1]==="@"?Ot:j}),i.removeAttribute(l)}else l.startsWith(m)&&(h.push({type:6,index:n}),i.removeAttribute(l));if(at.test(i.tagName)){const l=i.textContent.split(m),_=l.length-1;if(_>0){i.textContent=D?D.emptyScript:"";for(let g=0;g<_;g++)i.append(l[g],U()),b.nextNode(),h.push({type:2,index:++n});i.append(l[_],U())}}}else if(i.nodeType===8)if(i.data===it)h.push({type:2,index:n});else{let l=-1;for(;(l=i.data.indexOf(m,l+1))!==-1;)h.push({type:7,index:n}),l+=m.length-1}n++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function C(r,t,e=r,s){var o,a;if(t===P)return t;let i=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=M(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=C(r,i._$AS(r,t.values),i,s)),t}class Pt{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){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??A).importNode(e,!0);b.currentNode=i;let n=b.nextNode(),o=0,a=0,h=s[0];for(;h!==void 0;){if(o===h.index){let d;h.type===2?d=new N(n,n.nextSibling,this,t):h.type===1?d=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(d=new Ut(n,this,t)),this._$AV.push(d),h=s[++a]}o!==(h==null?void 0:h.index)&&(n=b.nextNode(),o++)}return b.currentNode=A,i}p(t){let e=0;for(const 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++}}class N{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const 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=C(this,t,e),M(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):St(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!==c&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(ct(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const o=new Pt(i,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=lt.get(t.strings);return e===void 0&<.set(t.strings,e=new H(t)),e}k(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new N(this.O(U()),this.O(U()),this,this.options)):s=e[i],s._$AI(n),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&&t!==this._$AB;){const 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))}}class j{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=C(this,t,e,0),o=!M(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let h,d;for(t=n[0],h=0;h<n.length-1;h++)d=C(this,a[s+h],e,h),d===P&&(d=this._$AH[h]),o||(o=!M(d)||d!==this._$AH[h]),d===c?t=c:t!==c&&(t+=(d??"")+n[h+1]),this._$AH[h]=d}o&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ct extends j{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class xt extends j{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class Ot extends j{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??c)===P)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Ut{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){C(this,t)}}const K=O.litHtmlPolyfillSupport;K==null||K(H,N),(O.litHtmlVersions??(O.litHtmlVersions=[])).push("3.3.0");const Mt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new N(t.insertBefore(U(),n),n,void 0,e??{})}return i._$AI(r),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -28,11 +28,11 @@ var MaIcons=function(I){"use strict";/**
|
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function Rt(r){return f({...r,state:!0,attribute:!1})}var kt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$=(r,t,e,s)=>{for(var i=s>1?void 0:s?zt(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&kt(t,e,i),i};let u=class extends R{constructor(){super(...arguments),this.styled=!1,this.download=!1,this.leading=!1,this.name=
|
|
31
|
+
*/function Rt(r){return f({...r,state:!0,attribute:!1})}var kt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$=(r,t,e,s)=>{for(var i=s>1?void 0:s?zt(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&kt(t,e,i),i};let u=class extends R{constructor(){super(...arguments),this.styled=!1,this.download=!1,this.leading=!1,this.name="top-right",this.size="16",this.weight="5",this.color="hsl(0deg 0% 0%)",this.svg=null}updated(r){super.updated(r),r.has("name")&&this.modifySvg()}render(){const r=this.svg?w`<span .innerHTML=${this.svg}></span>`:w``;return this.href!=null?w`
|
|
32
32
|
<a download=${this.download} href=${this.href} class="${this.styled?"styled":""}">
|
|
33
33
|
${this.leading?w`${r} `:""}<slot></slot>${this.leading?"":w` ${r}`}
|
|
34
34
|
</a>
|
|
35
|
-
`:w`${r}`}async modifySvg(){const t=await(await fetch("
|
|
35
|
+
`:w`${r}`}async modifySvg(){const t=await(await fetch("../icons/"+(this.download?"download":this.name)+".svg")).text(),e=new DOMParser().parseFromString(t,"image/svg+xml"),s=e.querySelector("svg");if(!s)return"";s==null||s.setAttribute("width",this.size),s==null||s.setAttribute("height",this.size),s==null||s.setAttribute("fill","none"),e.querySelectorAll("[stroke]").forEach(i=>i.setAttribute("stroke",this.href?"hsl(0deg 0% 0% / calc(100% * 3/8))":this.color)),e.querySelectorAll("[stroke-width]").forEach(i=>i.setAttribute("stroke-width",this.weight)),this.svg=s==null?void 0:s.outerHTML}};u.styles=ut`
|
|
36
36
|
svg {
|
|
37
37
|
display: block;
|
|
38
38
|
}
|