@covalent/components 8.4.0 → 8.5.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/action-ribbon.js +3 -3
- package/action-ribbon.mjs +25 -24
- package/alert.js +2 -2
- package/alert.mjs +21 -20
- package/{chip-d6f5c2bb.js → chip-21138b58.js} +53 -95
- package/{chip-9c846d01.mjs → chip-eb043df9.mjs} +1139 -1326
- package/chip-set.js +8 -8
- package/chip-set.mjs +17 -15
- package/chip.js +1 -1
- package/chip.mjs +5 -3
- package/foundation-2334d146.mjs +60 -0
- package/{foundation-eff81c1e.mjs → foundation-b3e4efcd.mjs} +22 -78
- package/foundation-e830bd94.js +22 -0
- package/{foundation-786bf879.js → foundation-e980aa3d.js} +3 -24
- package/index.d.ts +4 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +99 -91
- package/keyboard-39125691.js +43 -0
- package/keyboard-983b121c.mjs +159 -0
- package/package.json +1 -1
- package/tooltip.js +10 -73
- package/tooltip.mjs +385 -590
@@ -1,94 +1,73 @@
|
|
1
|
-
"use strict";var
|
1
|
+
"use strict";var kt=Object.defineProperty;var Bt=(e,i,t)=>i in e?kt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var p=(e,i,t)=>(Bt(e,typeof i!="symbol"?i+"":i,t),t);const b=require("./query-assigned-elements-f623705d.js"),jt=require("./utils-a8190a39.js"),s=require("./tslib.es6-98719205.js"),v=require("./keyboard-39125691.js"),$=require("./foundation-e830bd94.js"),R=require("./property-57f6f6fe.js"),Gt=require("./query-680f1868.js"),Kt=require("./class-map-b5efe8da.js"),f=require("./_commonjsHelpers-2367a3a2.js");var w={};/**
|
2
2
|
* @license
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
4
|
-
*/const
|
4
|
+
*/const A={};function $t(e){if(e!==A)throw new Error("Bad secret")}/**
|
5
5
|
* @license
|
6
6
|
* SPDX-License-Identifier: Apache-2.0
|
7
|
-
*/class
|
7
|
+
*/class yt{constructor(){p(this,"brand")}}class bt extends yt{constructor(t,n){super();p(this,"privateDoNotAccessOrElseWrappedAttrPrefix");this.privateDoNotAccessOrElseWrappedAttrPrefix=t}toString(){return this.privateDoNotAccessOrElseWrappedAttrPrefix}}function At(e){return new bt(e,A)}function Et(e){if(e instanceof bt)return e.privateDoNotAccessOrElseWrappedAttrPrefix;{let i="";throw new Error(i)}}const Wt=Object.freeze(Object.defineProperty({__proto__:null,SafeAttributePrefix:yt,createAttributePrefix:At,unwrapAttributePrefix:Et},Symbol.toStringTag,{value:"Module"}));/**
|
8
8
|
* @license
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
10
|
-
*/function
|
10
|
+
*/function qt(e){const i=e[0].toLowerCase();return At(i)}const Yt=Object.freeze(Object.defineProperty({__proto__:null,safeAttrPrefix:qt},Symbol.toStringTag,{value:"Module"})),Xt=f.getAugmentedNamespace(Yt);/**
|
11
11
|
* @license
|
12
12
|
* SPDX-License-Identifier: Apache-2.0
|
13
|
-
*/let
|
13
|
+
*/let St="google#safe";function Zt(){if(typeof window<"u")return window.trustedTypes}function M(){return St!==""?Zt()??null:null}let k;function Y(){var e;if(k===void 0)try{k=((e=M())==null?void 0:e.createPolicy(St,{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i}))??null}catch{k=null}return k}/**
|
14
14
|
* @license
|
15
15
|
* SPDX-License-Identifier: Apache-2.0
|
16
|
-
*/class
|
16
|
+
*/class X{constructor(i,t){p(this,"privateDoNotAccessOrElseWrappedHtml");this.privateDoNotAccessOrElseWrappedHtml=i}toString(){return this.privateDoNotAccessOrElseWrappedHtml.toString()}}function wt(e,i){return i??new X(e,A)}const Vt=typeof window!==void 0?window.TrustedHTML:void 0,Tt=Vt??X;function O(e){var t;const i=e;return wt(i,(t=Y())==null?void 0:t.createHTML(i))}const Jt=(()=>{var e;return wt("",(e=M())==null?void 0:e.emptyHTML)})();function Qt(e){return e instanceof Tt}function Z(e){var i;if((i=M())!=null&&i.isHTML(e))return e;if(e instanceof X)return e.privateDoNotAccessOrElseWrappedHtml;{let t="";throw new Error(t)}}const te=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_HTML:Jt,SafeHtml:Tt,createHtml:O,isHtml:Qt,unwrapHtml:Z},Symbol.toStringTag,{value:"Module"}));/**
|
17
17
|
* @license
|
18
18
|
* SPDX-License-Identifier: Apache-2.0
|
19
|
-
*/class
|
19
|
+
*/class V{constructor(i,t){p(this,"privateDoNotAccessOrElseWrappedResourceUrl");this.privateDoNotAccessOrElseWrappedResourceUrl=i}toString(){return this.privateDoNotAccessOrElseWrappedResourceUrl.toString()}}const ee=typeof window!==void 0?window.TrustedScriptURL:void 0,Ct=ee??V;function F(e){var n;const i=e;return((n=Y())==null?void 0:n.createScriptURL(i))??new V(i,A)}function ie(e){return e instanceof Ct}function W(e){var i;if((i=M())!=null&&i.isScriptURL(e))return e;if(e instanceof V)return e.privateDoNotAccessOrElseWrappedResourceUrl;{let t="";throw new Error(t)}}const ne=Object.freeze(Object.defineProperty({__proto__:null,TrustedResourceUrl:Ct,createResourceUrl:F,isResourceUrl:ie,unwrapResourceUrl:W},Symbol.toStringTag,{value:"Module"}));/**
|
20
20
|
* @license
|
21
21
|
* SPDX-License-Identifier: Apache-2.0
|
22
|
-
*/class
|
22
|
+
*/class J{constructor(i,t){p(this,"privateDoNotAccessOrElseWrappedScript");this.privateDoNotAccessOrElseWrappedScript=i}toString(){return this.privateDoNotAccessOrElseWrappedScript.toString()}}function It(e,i){return i??new J(e,A)}const re=typeof window!==void 0?window.TrustedScript:void 0,Dt=re??J;function U(e){var t;const i=e;return It(i,(t=Y())==null?void 0:t.createScript(i))}const oe=(()=>{var e;return It("",(e=M())==null?void 0:e.emptyScript)})();function ae(e){return e instanceof Dt}function q(e){var i;if((i=M())!=null&&i.isScript(e))return e;if(e instanceof J)return e.privateDoNotAccessOrElseWrappedScript;{let t="";throw new Error(t)}}const ce=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_SCRIPT:oe,SafeScript:Dt,createScript:U,isScript:ae,unwrapScript:q},Symbol.toStringTag,{value:"Module"}));/**
|
23
23
|
* @license
|
24
24
|
* SPDX-License-Identifier: Apache-2.0
|
25
|
-
*/function
|
25
|
+
*/function le(e,i={}){let t=L(e);return i.preserveSpaces&&(t=t.replace(/(^|[\r\n\t ]) /g,"$1 ")),i.preserveNewlines&&(t=t.replace(/(\r\n|\n|\r)/g,"<br>")),i.preserveTabs&&(t=t.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),O(t)}function se(e,i={}){const t=q(e).toString();let n="<script";return i.id&&(n+=` id="${L(i.id)}"`),i.nonce&&(n+=` nonce="${L(i.nonce)}"`),i.type&&(n+=` type="${L(i.type)}"`),n+=`>${t}<\/script>`,O(n)}function de(e,i,t){const n=W(e).toString();let r=`<script src="${L(n)}"`;return i&&(r+=" async"),t&&(r+=` nonce="${L(t)}"`),r+="><\/script>",O(r)}function L(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ue(e){return O(e.map(Z).join(""))}const pe=Object.freeze(Object.defineProperty({__proto__:null,concatHtmls:ue,createScript:se,createScriptSrc:de,htmlEscape:le},Symbol.toStringTag,{value:"Module"})),he=f.getAugmentedNamespace(pe);/**
|
26
26
|
* @license
|
27
27
|
* SPDX-License-Identifier: Apache-2.0
|
28
|
-
*/function
|
28
|
+
*/function me(e){let i;try{i=new URL(e)}catch{return"https:"}return i.protocol}const fe=["data:","http:","https:","mailto:","ftp:"];function ve(e){const i=me(e);return i!==void 0&&fe.indexOf(i.toLowerCase())!==-1?e:"about:invalid#zClosurez"}/**
|
29
29
|
* @license
|
30
30
|
* SPDX-License-Identifier: Apache-2.0
|
31
|
-
*/class
|
31
|
+
*/class Rt{constructor(){p(this,"brand")}}class Q extends Rt{constructor(t,n){super();p(this,"privateDoNotAccessOrElseWrappedStyle");this.privateDoNotAccessOrElseWrappedStyle=t}toString(){return this.privateDoNotAccessOrElseWrappedStyle}}function tt(e){return new Q(e,A)}function ge(e){return e instanceof Q}function Ot(e){if(e instanceof Q)return e.privateDoNotAccessOrElseWrappedStyle;{let i="";throw new Error(i)}}const _e=Object.freeze(Object.defineProperty({__proto__:null,SafeStyle:Rt,createStyle:tt,isStyle:ge,unwrapStyle:Ot},Symbol.toStringTag,{value:"Module"}));/**
|
32
32
|
* @license
|
33
33
|
* SPDX-License-Identifier: Apache-2.0
|
34
|
-
*/function
|
34
|
+
*/function ye(e,i){Ae(e)&&be(e),e.innerHTML=Z(i)}function Nt(e,i,t,n){if(e.length===0)throw new Error("No prefixes are provided");const r=e.map(a=>Et(a)),o=t.toLowerCase();if(r.every(a=>o.indexOf(a)!==0))throw new Error(`Attribute "${t}" does not match any of the allowed prefixes.`);i.setAttribute(t,n)}function be(e){if(e.tagName.toLowerCase()==="script")throw new Error("Use setTextContent with a SafeScript.");if(e.tagName.toLowerCase()==="style")throw new Error("Use setTextContent with a SafeStyleSheet.")}function Ae(e){return e.tagName!==void 0}/**
|
35
35
|
* @license
|
36
36
|
* SPDX-License-Identifier: Apache-2.0
|
37
|
-
*/function
|
37
|
+
*/function Ee(e){const i=document.createElement("template"),t=O(e);return ye(i,t),i.content}/**
|
38
38
|
* @license
|
39
39
|
* SPDX-License-Identifier: Apache-2.0
|
40
|
-
*/function
|
40
|
+
*/function ot(e){const i=e.nodeName;return typeof i=="string"?i:"FORM"}function at(e){return e.nodeType===Node.TEXT_NODE}function ct(e){const i=e.nodeType;return i===Node.ELEMENT_NODE||typeof i!="number"}/**
|
41
41
|
* @license
|
42
42
|
* SPDX-License-Identifier: Apache-2.0
|
43
|
-
*/class
|
43
|
+
*/class I{constructor(i,t,n,r){p(this,"allowedElements");p(this,"elementPolicies");p(this,"allowedGlobalAttributes");p(this,"globalAttributePolicies");this.allowedElements=i,this.elementPolicies=t,this.allowedGlobalAttributes=n,this.globalAttributePolicies=r}isAllowedElement(i){return i.toLowerCase()!=="form"&&(this.allowedElements.has(i)||this.elementPolicies.has(i))}getAttributePolicy(i,t){const n=this.elementPolicies.get(t);return n!=null&&n.has(i)?n.get(i):this.allowedGlobalAttributes.has(i)?{policyAction:d.KEEP}:this.globalAttributePolicies.get(i)||{policyAction:d.DROP}}}var d;(function(e){e[e.DROP=0]="DROP",e[e.KEEP=1]="KEEP",e[e.KEEP_AND_SANITIZE_URL=2]="KEEP_AND_SANITIZE_URL",e[e.KEEP_AND_NORMALIZE=3]="KEEP_AND_NORMALIZE",e[e.KEEP_AND_SANITIZE_STYLE=4]="KEEP_AND_SANITIZE_STYLE"})(d||(d={}));/**
|
44
44
|
* @license
|
45
45
|
* SPDX-License-Identifier: Apache-2.0
|
46
|
-
*/const
|
46
|
+
*/const Pt=new I(new Set(["ARTICLE","SECTION","NAV","ASIDE","H1","H2","H3","H4","H5","H6","HEADER","FOOTER","ADDRESS","P","HR","PRE","BLOCKQUOTE","OL","UL","LH","LI","DL","DT","DD","FIGURE","FIGCAPTION","MAIN","DIV","EM","STRONG","SMALL","S","CITE","Q","DFN","ABBR","RUBY","RB","RT","RTC","RP","DATA","TIME","CODE","VAR","SAMP","KBD","SUB","SUP","I","B","U","MARK","BDI","BDO","SPAN","BR","WBR","INS","DEL","PICTURE","PARAM","TRACK","MAP","TABLE","CAPTION","COLGROUP","COL","TBODY","THEAD","TFOOT","TR","TD","TH","SELECT","DATALIST","OPTGROUP","OPTION","OUTPUT","PROGRESS","METER","FIELDSET","LEGEND","DETAILS","SUMMARY","MENU","DIALOG","SLOT","CANVAS","FONT","CENTER"]),new Map([["A",new Map([["href",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["AREA",new Map([["href",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["LINK",new Map([["href",{policyAction:d.KEEP_AND_SANITIZE_URL,conditions:new Map([["rel",new Set(["alternate","author","bookmark","canonical","cite","help","icon","license","next","prefetch","dns-prefetch","prerender","preconnect","preload","prev","search","subresource"])]])}]])],["SOURCE",new Map([["src",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["IMG",new Map([["src",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["VIDEO",new Map([["src",{policyAction:d.KEEP_AND_SANITIZE_URL}]])],["AUDIO",new Map([["src",{policyAction:d.KEEP_AND_SANITIZE_URL}]])]]),new Set(["title","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-current","aria-disabled","aria-dropeffect","aria-expanded","aria-haspopup","aria-hidden","aria-invalid","aria-label","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","alt","align","autocapitalize","autocomplete","autocorrect","autofocus","autoplay","bgcolor","border","cellpadding","cellspacing","checked","color","cols","colspan","controls","datetime","disabled","download","draggable","enctype","face","formenctype","frameborder","height","hreflang","hidden","ismap","label","lang","loop","max","maxlength","media","minlength","min","multiple","muted","nonce","open","placeholder","preload","rel","required","reversed","role","rows","rowspan","selected","shape","size","sizes","slot","span","spellcheck","start","step","summary","translate","type","valign","value","width","wrap","itemscope","itemtype","itemid","itemprop","itemref"]),new Map([["dir",{policyAction:d.KEEP_AND_NORMALIZE,conditions:new Map([["dir",new Set(["auto","ltr","rtl"])]])}],["async",{policyAction:d.KEEP_AND_NORMALIZE,conditions:new Map([["async",new Set(["async"])]])}],["cite",{policyAction:d.KEEP_AND_SANITIZE_URL}],["loading",{policyAction:d.KEEP_AND_NORMALIZE,conditions:new Map([["loading",new Set(["eager","lazy"])]])}],["poster",{policyAction:d.KEEP_AND_SANITIZE_URL}],["target",{policyAction:d.KEEP_AND_NORMALIZE,conditions:new Map([["target",new Set(["_self","_blank"])]])}]]));/**
|
47
47
|
* @license
|
48
48
|
* SPDX-License-Identifier: Apache-2.0
|
49
|
-
*/class
|
49
|
+
*/class et{constructor(i,t){p(this,"sanitizerTable");p(this,"changes",[]);this.sanitizerTable=i,$t(t)}sanitizeAssertUnchanged(i){this.changes=[];const t=this.sanitize(i);if(this.changes.length!==0){let n="";throw new Error(n)}return t}sanitize(i){const t=document.createElement("span");t.appendChild(this.sanitizeToFragment(i));let n=new XMLSerializer().serializeToString(t);return n=n.slice(n.indexOf(">")+1,n.lastIndexOf("</")),O(n)}sanitizeToFragment(i){const t=Ee(i),n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,c=>this.nodeFilter(c),!1);let r=n.nextNode();const o=document.createDocumentFragment();let a=o;for(;r!==null;){let c;if(at(r))c=this.sanitizeTextNode(r);else if(ct(r))c=this.sanitizeElementNode(r);else throw new Error("Node is not of type text or element");if(a.appendChild(c),r=n.firstChild(),r)a=c;else for(;!(r=n.nextSibling())&&(r=n.parentNode());)a=a.parentNode}return o}sanitizeTextNode(i){return document.createTextNode(i.data)}sanitizeElementNode(i){const t=ot(i),n=document.createElement(t),r=i.attributes;for(const{name:o,value:a}of r){const c=this.sanitizerTable.getAttributePolicy(o,t);if(!this.satisfiesAllConditions(c.conditions,r)){this.recordChange(`Not all conditions satisfied for attribute: ${o}.`);continue}switch(c.policyAction){case d.KEEP:n.setAttribute(o,a);break;case d.KEEP_AND_SANITIZE_URL:const l=ve(a);l!==a&&this.recordChange(`Url in attribute ${o} was modified during sanitization. Original url:"${a}" was sanitized to: "${l}"`),n.setAttribute(o,l);break;case d.KEEP_AND_NORMALIZE:n.setAttribute(o,a.toLowerCase());break;case d.KEEP_AND_SANITIZE_STYLE:n.setAttribute(o,a);break;case d.DROP:this.recordChange(`Attribute: ${o} was dropped`);break;default:Ce(c.policyAction,"Unhandled AttributePolicyAction case")}}return n}nodeFilter(i){if(at(i))return NodeFilter.FILTER_ACCEPT;if(!ct(i))return NodeFilter.FILTER_REJECT;const t=ot(i);return t===null?(this.recordChange(`Node name was null for node: ${i}`),NodeFilter.FILTER_REJECT):this.sanitizerTable.isAllowedElement(t)?NodeFilter.FILTER_ACCEPT:(this.recordChange(`Element: ${t} was dropped`),NodeFilter.FILTER_REJECT)}recordChange(i){this.changes.length===0&&this.changes.push("")}satisfiesAllConditions(i,t){var n;if(!i)return!0;for(const[r,o]of i){const a=(n=t.getNamedItem(r))==null?void 0:n.value;if(a&&!o.has(a))return!1}return!0}}const it=(()=>new et(Pt,A))();function Se(e){return it.sanitize(e)}function we(e){return it.sanitizeAssertUnchanged(e)}function Te(e){return it.sanitizeToFragment(e)}function Ce(e,i=`unexpected value ${e}!`){throw new Error(i)}const Ie=Object.freeze(Object.defineProperty({__proto__:null,HtmlSanitizerImpl:et,sanitizeHtml:Se,sanitizeHtmlAssertUnchanged:we,sanitizeHtmlToFragment:Te},Symbol.toStringTag,{value:"Module"})),De=f.getAugmentedNamespace(Ie);/**
|
50
50
|
* @license
|
51
51
|
* SPDX-License-Identifier: Apache-2.0
|
52
|
-
*/class
|
52
|
+
*/class Re{constructor(){p(this,"sanitizerTable");p(this,"calledBuild",!1);this.sanitizerTable=Pt}onlyAllowElements(i){const t=new Set,n=new Map;for(let r of i){if(r=r.toUpperCase(),!this.sanitizerTable.isAllowedElement(r))throw new Error(`Element: ${r}, is not allowed by html5_contract.textpb`);const o=this.sanitizerTable.elementPolicies.get(r);o!==void 0?n.set(r,o):t.add(r)}return this.sanitizerTable=new I(t,n,this.sanitizerTable.allowedGlobalAttributes,this.sanitizerTable.globalAttributePolicies),this}onlyAllowAttributes(i){const t=new Set,n=new Map,r=new Map;for(const o of i)this.sanitizerTable.allowedGlobalAttributes.has(o)&&t.add(o),this.sanitizerTable.globalAttributePolicies.has(o)&&n.set(o,this.sanitizerTable.globalAttributePolicies.get(o));for(const[o,a]of this.sanitizerTable.elementPolicies.entries()){const c=new Map;for(const[l,m]of a.entries())i.has(l)&&c.set(l,m);r.set(o,c)}return this.sanitizerTable=new I(this.sanitizerTable.allowedElements,r,t,n),this}allowDataAttributes(i){const t=new Set(this.sanitizerTable.allowedGlobalAttributes);for(const n of i){if(n.indexOf("data-")!==0)throw new Error(`data attribute: ${n} does not begin with the prefix "data-"`);t.add(n)}return this.sanitizerTable=new I(this.sanitizerTable.allowedElements,this.sanitizerTable.elementPolicies,t,this.sanitizerTable.globalAttributePolicies),this}allowStyleAttributes(){const i=new Map(this.sanitizerTable.globalAttributePolicies);return i.set("style",{policyAction:d.KEEP_AND_SANITIZE_STYLE}),this.sanitizerTable=new I(this.sanitizerTable.allowedElements,this.sanitizerTable.elementPolicies,this.sanitizerTable.allowedGlobalAttributes,i),this}allowClassAttributes(){const i=new Map(this.sanitizerTable.globalAttributePolicies);return i.set("class",{policyAction:d.KEEP}),this.sanitizerTable=new I(this.sanitizerTable.allowedElements,this.sanitizerTable.elementPolicies,this.sanitizerTable.allowedGlobalAttributes,i),this}allowIdAttributes(){const i=new Map(this.sanitizerTable.globalAttributePolicies);return i.set("id",{policyAction:d.KEEP}),this.sanitizerTable=new I(this.sanitizerTable.allowedElements,this.sanitizerTable.elementPolicies,this.sanitizerTable.allowedGlobalAttributes,i),this}build(){if(this.calledBuild)throw new Error("this sanitizer has already called build");return this.calledBuild=!0,new et(this.sanitizerTable,A)}}const Oe=Object.freeze(Object.defineProperty({__proto__:null,HtmlSanitizerBuilder:Re},Symbol.toStringTag,{value:"Module"})),Ne=f.getAugmentedNamespace(Oe);/**
|
53
53
|
* @license
|
54
54
|
* SPDX-License-Identifier: Apache-2.0
|
55
|
-
*/function
|
55
|
+
*/function Pe(e,...i){if(i.length===0)return F(e[0]);e[0].toLowerCase();const t=[e[0]];for(let n=0;n<i.length;n++)t.push(encodeURIComponent(i[n])),t.push(e[n+1]);return F(t.join(""))}function Le(e,i){let t=W(e).toString();if(/#/.test(t)){let r="";throw new Error(r)}let n=/\?/.test(t)?"&":"?";return i.forEach((r,o)=>{const a=r instanceof Array?r:[r];for(let c=0;c<a.length;c++){const l=a[c];l!=null&&(t+=n+encodeURIComponent(o)+"="+encodeURIComponent(String(l)),n="&")}}),F(t)}const Fe=/[^#]*/;function xe(e,i){const t=W(e).toString();return F(Fe.exec(t)[0]+"#"+i)}function Me(e){const i=q(e).toString(),t=new Blob([i],{type:"text/javascript"});return F(URL.createObjectURL(t))}const ze=Object.freeze(Object.defineProperty({__proto__:null,appendParams:Le,blobUrlFromScript:Me,replaceFragment:xe,trustedResourceUrl:Pe},Symbol.toStringTag,{value:"Module"})),Ue=f.getAugmentedNamespace(ze);/**
|
56
56
|
* @license
|
57
57
|
* SPDX-License-Identifier: Apache-2.0
|
58
|
-
*/function
|
58
|
+
*/function He(e){return U(e[0])}function ke(e){return U(e.map(q).join(""))}function Lt(e){return U(JSON.stringify(e).replace(/</g,"\\x3c"))}function Be(e,...i){return(...t)=>{const n=t.map(r=>Lt(r).toString());return U(`(${e.join("")})(${n.join(",")})`)}}const je=Object.freeze(Object.defineProperty({__proto__:null,concatScripts:ke,safeScript:He,safeScriptWithArgs:Be,scriptFromJson:Lt},Symbol.toStringTag,{value:"Module"})),Ge=f.getAugmentedNamespace(je);/**
|
59
59
|
* @license
|
60
60
|
* SPDX-License-Identifier: Apache-2.0
|
61
|
-
*/function
|
61
|
+
*/function Ke(e){const i=e[0];return tt(i)}function $e(e){return tt(e.map(Ot).join(""))}const We=Object.freeze(Object.defineProperty({__proto__:null,concatStyles:$e,safeStyle:Ke},Symbol.toStringTag,{value:"Module"})),qe=f.getAugmentedNamespace(We);/**
|
62
62
|
* @license
|
63
63
|
* SPDX-License-Identifier: Apache-2.0
|
64
|
-
*/class
|
64
|
+
*/class Ft{constructor(){p(this,"brand")}}class nt extends Ft{constructor(t,n){super();p(this,"privateDoNotAccessOrElseWrappedStyleSheet");this.privateDoNotAccessOrElseWrappedStyleSheet=t}toString(){return this.privateDoNotAccessOrElseWrappedStyleSheet}}function rt(e){return new nt(e,A)}function Ye(e){return e instanceof nt}function xt(e){if(e instanceof nt)return e.privateDoNotAccessOrElseWrappedStyleSheet;{let i="";throw new Error(i)}}const Xe=Object.freeze(Object.defineProperty({__proto__:null,SafeStyleSheet:Ft,createStyleSheet:rt,isStyleSheet:Ye,unwrapStyleSheet:xt},Symbol.toStringTag,{value:"Module"}));/**
|
65
65
|
* @license
|
66
66
|
* SPDX-License-Identifier: Apache-2.0
|
67
|
-
*/function
|
67
|
+
*/function Ze(e){const i=e[0];return rt(i)}function Ve(e){return rt(e.map(xt).join(""))}const Je=Object.freeze(Object.defineProperty({__proto__:null,concatStyleSheets:Ve,safeStyleSheet:Ze},Symbol.toStringTag,{value:"Module"})),Qe=f.getAugmentedNamespace(Je),ti=f.getAugmentedNamespace(Wt),ei=f.getAugmentedNamespace(te),ii=f.getAugmentedNamespace(ne),ni=f.getAugmentedNamespace(ce),ri=f.getAugmentedNamespace(_e),oi=f.getAugmentedNamespace(Xe);(function(e){/**
|
68
68
|
* @license
|
69
69
|
* SPDX-License-Identifier: Apache-2.0
|
70
|
-
*/Object.defineProperty(
|
71
|
-
* @license
|
72
|
-
* Copyright 2020 Google Inc.
|
73
|
-
*
|
74
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
75
|
-
* of this software and associated documentation files (the "Software"), to deal
|
76
|
-
* in the Software without restriction, including without limitation the rights
|
77
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
78
|
-
* copies of the Software, and to permit persons to whom the Software is
|
79
|
-
* furnished to do so, subject to the following conditions:
|
80
|
-
*
|
81
|
-
* The above copyright notice and this permission notice shall be included in
|
82
|
-
* all copies or substantial portions of the Software.
|
83
|
-
*
|
84
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
85
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
86
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
87
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
88
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
89
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
90
|
-
* THE SOFTWARE.
|
91
|
-
*/var ui=function(){function t(){this.rafIDs=new Map}return t.prototype.request=function(e,i){var n=this;this.cancel(e);var r=requestAnimationFrame(function(o){n.rafIDs.delete(e),i(o)});this.rafIDs.set(e,r)},t.prototype.cancel=function(e){var i=this.rafIDs.get(e);i&&(cancelAnimationFrame(i),this.rafIDs.delete(e))},t.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach(function(i,n){e.cancel(n)})},t.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach(function(i,n){e.push(n)}),e},t}();/**
|
70
|
+
*/Object.defineProperty(e,"__esModule",{value:!0}),e.unwrapStyleSheet=e.SafeStyleSheet=e.isStyleSheet=e.unwrapStyle=e.SafeStyle=e.isStyle=e.unwrapScript=e.SafeScript=e.isScript=e.EMPTY_SCRIPT=e.unwrapResourceUrl=e.TrustedResourceUrl=e.isResourceUrl=e.unwrapHtml=e.SafeHtml=e.isHtml=e.EMPTY_HTML=e.unwrapAttributePrefix=e.SafeAttributePrefix=e.safeStyleSheet=e.concatStyleSheets=e.safeStyle=e.concatStyles=e.scriptFromJson=e.safeScriptWithArgs=e.safeScript=e.concatScripts=e.trustedResourceUrl=e.replaceFragment=e.blobUrlFromScript=e.appendParams=e.HtmlSanitizerBuilder=e.sanitizeHtmlToFragment=e.sanitizeHtmlAssertUnchanged=e.sanitizeHtml=e.htmlEscape=e.createScriptSrc=e.createScript=e.concatHtmls=e.safeAttrPrefix=void 0;var i=Xt;Object.defineProperty(e,"safeAttrPrefix",{enumerable:!0,get:function(){return i.safeAttrPrefix}});var t=he;Object.defineProperty(e,"concatHtmls",{enumerable:!0,get:function(){return t.concatHtmls}}),Object.defineProperty(e,"createScript",{enumerable:!0,get:function(){return t.createScript}}),Object.defineProperty(e,"createScriptSrc",{enumerable:!0,get:function(){return t.createScriptSrc}}),Object.defineProperty(e,"htmlEscape",{enumerable:!0,get:function(){return t.htmlEscape}});var n=De;Object.defineProperty(e,"sanitizeHtml",{enumerable:!0,get:function(){return n.sanitizeHtml}}),Object.defineProperty(e,"sanitizeHtmlAssertUnchanged",{enumerable:!0,get:function(){return n.sanitizeHtmlAssertUnchanged}}),Object.defineProperty(e,"sanitizeHtmlToFragment",{enumerable:!0,get:function(){return n.sanitizeHtmlToFragment}});var r=Ne;Object.defineProperty(e,"HtmlSanitizerBuilder",{enumerable:!0,get:function(){return r.HtmlSanitizerBuilder}});var o=Ue;Object.defineProperty(e,"appendParams",{enumerable:!0,get:function(){return o.appendParams}}),Object.defineProperty(e,"blobUrlFromScript",{enumerable:!0,get:function(){return o.blobUrlFromScript}}),Object.defineProperty(e,"replaceFragment",{enumerable:!0,get:function(){return o.replaceFragment}}),Object.defineProperty(e,"trustedResourceUrl",{enumerable:!0,get:function(){return o.trustedResourceUrl}});var a=Ge;Object.defineProperty(e,"concatScripts",{enumerable:!0,get:function(){return a.concatScripts}}),Object.defineProperty(e,"safeScript",{enumerable:!0,get:function(){return a.safeScript}}),Object.defineProperty(e,"safeScriptWithArgs",{enumerable:!0,get:function(){return a.safeScriptWithArgs}}),Object.defineProperty(e,"scriptFromJson",{enumerable:!0,get:function(){return a.scriptFromJson}});var c=qe;Object.defineProperty(e,"concatStyles",{enumerable:!0,get:function(){return c.concatStyles}}),Object.defineProperty(e,"safeStyle",{enumerable:!0,get:function(){return c.safeStyle}});var l=Qe;Object.defineProperty(e,"concatStyleSheets",{enumerable:!0,get:function(){return l.concatStyleSheets}}),Object.defineProperty(e,"safeStyleSheet",{enumerable:!0,get:function(){return l.safeStyleSheet}});var m=ti;Object.defineProperty(e,"SafeAttributePrefix",{enumerable:!0,get:function(){return m.SafeAttributePrefix}}),Object.defineProperty(e,"unwrapAttributePrefix",{enumerable:!0,get:function(){return m.unwrapAttributePrefix}});var g=ei;Object.defineProperty(e,"EMPTY_HTML",{enumerable:!0,get:function(){return g.EMPTY_HTML}}),Object.defineProperty(e,"isHtml",{enumerable:!0,get:function(){return g.isHtml}}),Object.defineProperty(e,"SafeHtml",{enumerable:!0,get:function(){return g.SafeHtml}}),Object.defineProperty(e,"unwrapHtml",{enumerable:!0,get:function(){return g.unwrapHtml}});var S=ii;Object.defineProperty(e,"isResourceUrl",{enumerable:!0,get:function(){return S.isResourceUrl}}),Object.defineProperty(e,"TrustedResourceUrl",{enumerable:!0,get:function(){return S.TrustedResourceUrl}}),Object.defineProperty(e,"unwrapResourceUrl",{enumerable:!0,get:function(){return S.unwrapResourceUrl}});var C=ni;Object.defineProperty(e,"EMPTY_SCRIPT",{enumerable:!0,get:function(){return C.EMPTY_SCRIPT}}),Object.defineProperty(e,"isScript",{enumerable:!0,get:function(){return C.isScript}}),Object.defineProperty(e,"SafeScript",{enumerable:!0,get:function(){return C.SafeScript}}),Object.defineProperty(e,"unwrapScript",{enumerable:!0,get:function(){return C.unwrapScript}});var N=ri;Object.defineProperty(e,"isStyle",{enumerable:!0,get:function(){return N.isStyle}}),Object.defineProperty(e,"SafeStyle",{enumerable:!0,get:function(){return N.SafeStyle}}),Object.defineProperty(e,"unwrapStyle",{enumerable:!0,get:function(){return N.unwrapStyle}});var P=oi;Object.defineProperty(e,"isStyleSheet",{enumerable:!0,get:function(){return P.isStyleSheet}}),Object.defineProperty(e,"SafeStyleSheet",{enumerable:!0,get:function(){return P.SafeStyleSheet}}),Object.defineProperty(e,"unwrapStyleSheet",{enumerable:!0,get:function(){return P.unwrapStyleSheet}})})(w);/**
|
92
71
|
* @license
|
93
72
|
* Copyright 2016 Google Inc.
|
94
73
|
*
|
@@ -109,9 +88,9 @@
|
|
109
88
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
110
89
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
111
90
|
* THE SOFTWARE.
|
112
|
-
*/var
|
91
|
+
*/function ai(e){return String(e).replace(/\-([a-z])/g,function(i,t){return t.toUpperCase()})}var Mt=function(){function e(i,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=i,this.initialize.apply(this,s.__spreadArray([],s.__read(n))),this.foundation=t===void 0?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return e.attachTo=function(i){return new e(i,new $.MDCFoundation({}))},e.prototype.initialize=function(){},e.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation.destroy()},e.prototype.listen=function(i,t,n){this.root.addEventListener(i,t,n)},e.prototype.unlisten=function(i,t,n){this.root.removeEventListener(i,t,n)},e.prototype.emit=function(i,t,n){n===void 0&&(n=!1);var r;typeof CustomEvent=="function"?r=new CustomEvent(i,{bubbles:n,detail:t}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(i,n,!1,t)),this.root.dispatchEvent(r)},e.prototype.safeSetAttribute=function(i,t,n){if(t.toLowerCase()==="tabindex")i.tabIndex=Number(n);else if(t.indexOf("data-")===0){var r=ai(t.replace(/^data-/,""));i.dataset[r]=n}else Nt([w.safeAttrPrefix(lt||(lt=s.__makeTemplateObject(["aria-"],["aria-"]))),w.safeAttrPrefix(st||(st=s.__makeTemplateObject(["role"],["role"])))],i,t,n)},e}(),lt,st;/**
|
113
92
|
* @license
|
114
|
-
* Copyright
|
93
|
+
* Copyright 2018 Google Inc.
|
115
94
|
*
|
116
95
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
117
96
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -130,7 +109,7 @@
|
|
130
109
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
131
110
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
132
111
|
* THE SOFTWARE.
|
133
|
-
*/
|
112
|
+
*/function ci(e,i){if(e.closest)return e.closest(i);for(var t=e;t;){if(zt(t,i))return t;t=t.parentElement}return null}function zt(e,i){var t=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return t.call(e,i)}/**
|
134
113
|
* @license
|
135
114
|
* Copyright 2020 Google Inc.
|
136
115
|
*
|
@@ -151,7 +130,7 @@
|
|
151
130
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
152
131
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
153
132
|
* THE SOFTWARE.
|
154
|
-
*/var
|
133
|
+
*/var z;(function(e){e.PRIMARY_ACTION="mdc-evolution-chip__action--primary",e.TRAILING_ACTION="mdc-evolution-chip__action--trailing",e.CHIP_ROOT="mdc-evolution-chip"})(z||(z={}));var y;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.CLICK=1]="CLICK",e[e.BACKSPACE_KEY=2]="BACKSPACE_KEY",e[e.DELETE_KEY=3]="DELETE_KEY",e[e.SPACEBAR_KEY=4]="SPACEBAR_KEY",e[e.ENTER_KEY=5]="ENTER_KEY"})(y||(y={}));exports.MDCChipActionType=void 0;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.PRIMARY=1]="PRIMARY",e[e.TRAILING=2]="TRAILING"})(exports.MDCChipActionType||(exports.MDCChipActionType={}));var x;(function(e){e.INTERACTION="MDCChipAction:interaction",e.NAVIGATION="MDCChipAction:navigation"})(x||(x={}));exports.MDCChipActionFocusBehavior=void 0;(function(e){e[e.FOCUSABLE=0]="FOCUSABLE",e[e.FOCUSABLE_AND_FOCUSED=1]="FOCUSABLE_AND_FOCUSED",e[e.NOT_FOCUSABLE=2]="NOT_FOCUSABLE"})(exports.MDCChipActionFocusBehavior||(exports.MDCChipActionFocusBehavior={}));var h;(function(e){e.ARIA_DISABLED="aria-disabled",e.ARIA_HIDDEN="aria-hidden",e.ARIA_SELECTED="aria-selected",e.DATA_DELETABLE="data-mdc-deletable",e.DISABLED="disabled",e.ROLE="role",e.TAB_INDEX="tabindex"})(h||(h={}));/**
|
155
134
|
* @license
|
156
135
|
* Copyright 2016 Google Inc.
|
157
136
|
*
|
@@ -172,7 +151,7 @@
|
|
172
151
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
173
152
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
174
153
|
* THE SOFTWARE.
|
175
|
-
*/var
|
154
|
+
*/var u;(function(e){e.SELECTING="mdc-evolution-chip--selecting",e.DESELECTING="mdc-evolution-chip--deselecting",e.SELECTING_WITH_PRIMARY_ICON="mdc-evolution-chip--selecting-with-primary-icon",e.DESELECTING_WITH_PRIMARY_ICON="mdc-evolution-chip--deselecting-with-primary-icon",e.DISABLED="mdc-evolution-chip--disabled",e.ENTER="mdc-evolution-chip--enter",e.EXIT="mdc-evolution-chip--exit",e.SELECTED="mdc-evolution-chip--selected",e.HIDDEN="mdc-evolution-chip--hidden",e.WITH_PRIMARY_ICON="mdc-evolution-chip--with-primary-icon"})(u||(u={}));exports.MDCChipEvents=void 0;(function(e){e.INTERACTION="MDCChip:interaction",e.NAVIGATION="MDCChip:navigation",e.ANIMATION="MDCChip:animation"})(exports.MDCChipEvents||(exports.MDCChipEvents={}));var K;(function(e){e.DATA_REMOVED_ANNOUNCEMENT="data-mdc-removed-announcement",e.DATA_ADDED_ANNOUNCEMENT="data-mdc-added-announcement"})(K||(K={}));exports.MDCChipAnimation=void 0;(function(e){e.ENTER="mdc-evolution-chip-enter",e.EXIT="mdc-evolution-chip-exit"})(exports.MDCChipAnimation||(exports.MDCChipAnimation={}));/**
|
176
155
|
* @license
|
177
156
|
* Copyright 2020 Google Inc.
|
178
157
|
*
|
@@ -193,30 +172,9 @@
|
|
193
172
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
194
173
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
195
174
|
* THE SOFTWARE.
|
196
|
-
*/var
|
197
|
-
* @license
|
198
|
-
* Copyright 2016 Google Inc.
|
199
|
-
*
|
200
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
201
|
-
* of this software and associated documentation files (the "Software"), to deal
|
202
|
-
* in the Software without restriction, including without limitation the rights
|
203
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
204
|
-
* copies of the Software, and to permit persons to whom the Software is
|
205
|
-
* furnished to do so, subject to the following conditions:
|
206
|
-
*
|
207
|
-
* The above copyright notice and this permission notice shall be included in
|
208
|
-
* all copies or substantial portions of the Software.
|
209
|
-
*
|
210
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
211
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
212
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
213
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
214
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
215
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
216
|
-
* THE SOFTWARE.
|
217
|
-
*/function mi(t){return String(t).replace(/\-([a-z])/g,function(e,i){return i.toUpperCase()})}var Bt=function(){function t(e,i){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=e,this.initialize.apply(this,d.__spreadArray([],d.__read(n))),this.foundation=i===void 0?this.getDefaultFoundation():i,this.foundation.init(),this.initialSyncWithDOM()}return t.attachTo=function(e){return new t(e,new j({}))},t.prototype.initialize=function(){},t.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},t.prototype.initialSyncWithDOM=function(){},t.prototype.destroy=function(){this.foundation.destroy()},t.prototype.listen=function(e,i,n){this.root.addEventListener(e,i,n)},t.prototype.unlisten=function(e,i,n){this.root.removeEventListener(e,i,n)},t.prototype.emit=function(e,i,n){n===void 0&&(n=!1);var r;typeof CustomEvent=="function"?r=new CustomEvent(e,{bubbles:n,detail:i}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,n,!1,i)),this.root.dispatchEvent(r)},t.prototype.safeSetAttribute=function(e,i,n){if(i.toLowerCase()==="tabindex")e.tabIndex=Number(n);else if(i.indexOf("data-")===0){var r=mi(i.replace(/^data-/,""));e.dataset[r]=n}else Mt([D.safeAttrPrefix(pt||(pt=d.__makeTemplateObject(["aria-"],["aria-"]))),D.safeAttrPrefix(ht||(ht=d.__makeTemplateObject(["role"],["role"])))],e,i,n)},t}(),pt,ht;/**
|
175
|
+
*/var D;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT"})(D||(D={}));var _;(function(e){e.SELECTION="selection",e.EXIT="exit"})(_||(_={}));var li=function(e){s.__extends(i,e);function i(t){var n=e.call(this,s.__assign(s.__assign({},i.defaultAdapter),t))||this;return n.animFrame=new v.AnimationFrame,n}return Object.defineProperty(i,"defaultAdapter",{get:function(){return{addClass:function(){},emitEvent:function(){},getActions:function(){return[]},getAttribute:function(){return null},getElementID:function(){return""},getOffsetWidth:function(){return 0},hasClass:function(){return!1},isActionDisabled:function(){return!1},isActionFocusable:function(){return!1},isActionSelectable:function(){return!1},isActionSelected:function(){return!1},isRTL:function(){return!1},removeClass:function(){},setActionDisabled:function(){},setActionFocus:function(){},setActionSelected:function(){},setStyleProperty:function(){}}},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){this.animFrame.cancelAll()},i.prototype.getElementID=function(){return this.adapter.getElementID()},i.prototype.setDisabled=function(t){var n,r,o=this.getActions();try{for(var a=s.__values(o),c=a.next();!c.done;c=a.next()){var l=c.value;this.adapter.setActionDisabled(l,t)}}catch(m){n={error:m}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}t?this.adapter.addClass(u.DISABLED):this.adapter.removeClass(u.DISABLED)},i.prototype.isDisabled=function(){var t,n,r=this.getActions();try{for(var o=s.__values(r),a=o.next();!a.done;a=o.next()){var c=a.value;if(this.adapter.isActionDisabled(c))return!0}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!1},i.prototype.getActions=function(){return this.adapter.getActions()},i.prototype.isActionFocusable=function(t){return this.adapter.isActionFocusable(t)},i.prototype.isActionSelectable=function(t){return this.adapter.isActionSelectable(t)},i.prototype.isActionSelected=function(t){return this.adapter.isActionSelected(t)},i.prototype.setActionFocus=function(t,n){this.adapter.setActionFocus(t,n)},i.prototype.setActionSelected=function(t,n){this.adapter.setActionSelected(t,n),this.animateSelection(n)},i.prototype.startAnimation=function(t){if(t===exports.MDCChipAnimation.ENTER){this.adapter.addClass(u.ENTER);return}if(t===exports.MDCChipAnimation.EXIT){this.adapter.addClass(u.EXIT);return}},i.prototype.handleAnimationEnd=function(t){var n=this,r=t.animationName;if(r===exports.MDCChipAnimation.ENTER){this.adapter.removeClass(u.ENTER),this.adapter.emitEvent(exports.MDCChipEvents.ANIMATION,{chipID:this.getElementID(),animation:exports.MDCChipAnimation.ENTER,addedAnnouncement:this.getAddedAnnouncement(),isComplete:!0});return}if(r===exports.MDCChipAnimation.EXIT){this.adapter.removeClass(u.EXIT),this.adapter.addClass(u.HIDDEN);var o=this.adapter.getOffsetWidth();this.adapter.setStyleProperty("width",o+"px"),this.animFrame.request(_.EXIT,function(){n.animFrame.request(_.EXIT,function(){n.adapter.setStyleProperty("width","0")})})}},i.prototype.handleTransitionEnd=function(){this.adapter.hasClass(u.HIDDEN)&&this.adapter.emitEvent(exports.MDCChipEvents.ANIMATION,{chipID:this.getElementID(),animation:exports.MDCChipAnimation.EXIT,removedAnnouncement:this.getRemovedAnnouncement(),isComplete:!0})},i.prototype.handleActionInteraction=function(t){var n=t.detail,r=n.source,o=n.actionID,a=this.adapter.isActionSelectable(r),c=this.adapter.isActionSelected(r);this.adapter.emitEvent(exports.MDCChipEvents.INTERACTION,{chipID:this.getElementID(),shouldRemove:this.shouldRemove(n),actionID:o,isSelectable:a,isSelected:c,source:r})},i.prototype.handleActionNavigation=function(t){var n=t.detail,r=n.source,o=n.key,a=this.adapter.isRTL(),c=this.adapter.isActionFocusable(exports.MDCChipActionType.TRAILING),l=this.adapter.isActionFocusable(exports.MDCChipActionType.PRIMARY),m=this.directionFromKey(o,a),g=r===exports.MDCChipActionType.PRIMARY&&m===D.RIGHT&&c,S=r===exports.MDCChipActionType.TRAILING&&m===D.LEFT&&l;if(g){this.navigateActions({from:r,to:exports.MDCChipActionType.TRAILING});return}if(S){this.navigateActions({from:r,to:exports.MDCChipActionType.PRIMARY});return}this.adapter.emitEvent(exports.MDCChipEvents.NAVIGATION,{chipID:this.getElementID(),isRTL:a,source:r,key:o})},i.prototype.directionFromKey=function(t,n){var r=t===v.KEY.ARROW_LEFT,o=t===v.KEY.ARROW_RIGHT;return!n&&r||n&&o?D.LEFT:!n&&o||n&&r?D.RIGHT:D.UNSPECIFIED},i.prototype.navigateActions=function(t){this.adapter.setActionFocus(t.from,exports.MDCChipActionFocusBehavior.NOT_FOCUSABLE),this.adapter.setActionFocus(t.to,exports.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED)},i.prototype.shouldRemove=function(t){var n=t.source,r=t.trigger;return r===y.BACKSPACE_KEY||r===y.DELETE_KEY?!0:n===exports.MDCChipActionType.TRAILING},i.prototype.getRemovedAnnouncement=function(){var t=this.adapter.getAttribute(K.DATA_REMOVED_ANNOUNCEMENT);return t||void 0},i.prototype.getAddedAnnouncement=function(){var t=this.adapter.getAttribute(K.DATA_ADDED_ANNOUNCEMENT);return t||void 0},i.prototype.animateSelection=function(t){var n=this;this.resetAnimationStyles(),this.animFrame.request(_.SELECTION,function(){n.animFrame.request(_.SELECTION,function(){n.updateSelectionStyles(t)})})},i.prototype.resetAnimationStyles=function(){this.adapter.removeClass(u.SELECTING),this.adapter.removeClass(u.DESELECTING),this.adapter.removeClass(u.SELECTING_WITH_PRIMARY_ICON),this.adapter.removeClass(u.DESELECTING_WITH_PRIMARY_ICON)},i.prototype.updateSelectionStyles=function(t){var n=this,r=this.adapter.hasClass(u.WITH_PRIMARY_ICON);if(r&&t){this.adapter.addClass(u.SELECTING_WITH_PRIMARY_ICON),this.animFrame.request(_.SELECTION,function(){n.adapter.addClass(u.SELECTED)});return}if(r&&!t){this.adapter.addClass(u.DESELECTING_WITH_PRIMARY_ICON),this.animFrame.request(_.SELECTION,function(){n.adapter.removeClass(u.SELECTED)});return}if(t){this.adapter.addClass(u.SELECTING),this.animFrame.request(_.SELECTION,function(){n.adapter.addClass(u.SELECTED)});return}if(!t){this.adapter.addClass(u.DESELECTING),this.animFrame.request(_.SELECTION,function(){n.adapter.removeClass(u.SELECTED)});return}},i}($.MDCFoundation);/**
|
218
176
|
* @license
|
219
|
-
* Copyright
|
177
|
+
* Copyright 2019 Google Inc.
|
220
178
|
*
|
221
179
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
222
180
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -235,9 +193,9 @@
|
|
235
193
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
236
194
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
237
195
|
* THE SOFTWARE.
|
238
|
-
*/function
|
196
|
+
*/function B(e){return e===void 0&&(e=window),si(e)?{passive:!0}:!1}function si(e){e===void 0&&(e=window);var i=!1;try{var t={get passive(){return i=!0,!1}},n=function(){};e.document.addEventListener("test",n,t),e.document.removeEventListener("test",n,t)}catch{i=!1}return i}/**
|
239
197
|
* @license
|
240
|
-
* Copyright
|
198
|
+
* Copyright 2016 Google Inc.
|
241
199
|
*
|
242
200
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
243
201
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -256,7 +214,7 @@
|
|
256
214
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
257
215
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
258
216
|
* THE SOFTWARE.
|
259
|
-
*/
|
217
|
+
*/var di={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},ui={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},dt={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};/**
|
260
218
|
* @license
|
261
219
|
* Copyright 2016 Google Inc.
|
262
220
|
*
|
@@ -277,7 +235,7 @@
|
|
277
235
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
278
236
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
279
237
|
* THE SOFTWARE.
|
280
|
-
*/var
|
238
|
+
*/var j;function pi(e,i){i===void 0&&(i=!1);var t=e.CSS,n=j;if(typeof j=="boolean"&&!i)return j;var r=t&&typeof t.supports=="function";if(!r)return!1;var o=t.supports("--css-vars","yes"),a=t.supports("(--css-vars: yes)")&&t.supports("color","#00000000");return n=o||a,i||(j=n),n}function hi(e,i,t){if(!e)return{x:0,y:0};var n=i.x,r=i.y,o=n+t.left,a=r+t.top,c,l;if(e.type==="touchstart"){var m=e;c=m.changedTouches[0].pageX-o,l=m.changedTouches[0].pageY-a}else{var g=e;c=g.pageX-o,l=g.pageY-a}return{x:c,y:l}}/**
|
281
239
|
* @license
|
282
240
|
* Copyright 2016 Google Inc.
|
283
241
|
*
|
@@ -298,7 +256,7 @@
|
|
298
256
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
299
257
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
300
258
|
* THE SOFTWARE.
|
301
|
-
*/var ft=["touchstart","pointerdown","mousedown","keydown"],vt=["touchend","pointerup","mouseup","contextmenu"],Y=[],jt=function(t){d.__extends(e,t);function e(i){var n=t.call(this,d.__assign(d.__assign({},e.defaultAdapter),i))||this;return n.activationAnimationHasEnded=!1,n.activationTimer=0,n.fgDeactivationRemovalTimer=0,n.fgScale="0",n.frame={width:0,height:0},n.initialSize=0,n.layoutFrame=0,n.maxRadius=0,n.unboundedCoords={left:0,top:0},n.activationState=n.defaultActivationState(),n.activationTimerCallback=function(){n.activationAnimationHasEnded=!0,n.runDeactivationUXLogicIfReady()},n.activateHandler=function(r){n.activateImpl(r)},n.deactivateHandler=function(){n.deactivateImpl()},n.focusHandler=function(){n.handleFocus()},n.blurHandler=function(){n.handleBlur()},n.resizeHandler=function(){n.layout()},n}return Object.defineProperty(e,"cssClasses",{get:function(){return gi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return _i},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return mt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var i=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var r=e.cssClasses,o=r.ROOT,a=r.UNBOUNDED;requestAnimationFrame(function(){i.adapter.addClass(o),i.adapter.isUnbounded()&&(i.adapter.addClass(a),i.layoutInternal())})}},e.prototype.destroy=function(){var i=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var n=e.cssClasses,r=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){i.adapter.removeClass(r),i.adapter.removeClass(o),i.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(i){this.activateImpl(i)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var i=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){i.layoutInternal(),i.layoutFrame=0})},e.prototype.setUnbounded=function(i){var n=e.cssClasses.UNBOUNDED;i?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleFocus=function(){var i=this;requestAnimationFrame(function(){i.adapter.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var i=this;requestAnimationFrame(function(){i.adapter.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(i){var n,r;if(i){try{for(var o=d.__values(ft),a=o.next();!a.done;a=o.next()){var c=a.value;this.adapter.registerInteractionHandler(c,this.activateHandler)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(i){var n,r;if(i.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=d.__values(vt),a=o.next();!a.done;a=o.next()){var c=a.value;this.adapter.registerDocumentInteractionHandler(c,this.deactivateHandler)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.deregisterRootHandlers=function(){var i,n;try{for(var r=d.__values(ft),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(c){i={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var i,n;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var r=d.__values(vt),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(c){i={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}},e.prototype.removeCssVars=function(){var i=this,n=e.strings,r=Object.keys(n);r.forEach(function(o){o.indexOf("VAR_")===0&&i.adapter.updateCssVariable(n[o],null)})},e.prototype.activateImpl=function(i){var n=this;if(!this.adapter.isSurfaceDisabled()){var r=this.activationState;if(!r.isActivated){var o=this.previousActivationEvent,a=o&&i!==void 0&&o.type!==i.type;if(!a){r.isActivated=!0,r.isProgrammatic=i===void 0,r.activationEvent=i,r.wasActivatedByPointer=r.isProgrammatic?!1:i!==void 0&&(i.type==="mousedown"||i.type==="touchstart"||i.type==="pointerdown");var c=i!==void 0&&Y.length>0&&Y.some(function(s){return n.adapter.containsEventTarget(s)});if(c){this.resetActivationState();return}i!==void 0&&(Y.push(i.target),this.registerDeactivationHandlers(i)),r.wasElementMadeActive=this.checkElementMadeActive(i),r.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){Y=[],!r.wasElementMadeActive&&i!==void 0&&(i.key===" "||i.keyCode===32)&&(r.wasElementMadeActive=n.checkElementMadeActive(i),r.wasElementMadeActive&&n.animateActivation()),r.wasElementMadeActive||(n.activationState=n.defaultActivationState())})}}}},e.prototype.checkElementMadeActive=function(i){return i!==void 0&&i.type==="keydown"?this.adapter.isSurfaceActive():!0},e.prototype.animateActivation=function(){var i=this,n=e.strings,r=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,a=e.cssClasses,c=a.FG_DEACTIVATION,s=a.FG_ACTIVATION,g=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var b="",R="";if(!this.adapter.isUnbounded()){var O=this.getFgTranslationCoordinates(),M=O.startPoint,x=O.endPoint;b=M.x+"px, "+M.y+"px",R=x.x+"px, "+x.y+"px"}this.adapter.updateCssVariable(r,b),this.adapter.updateCssVariable(o,R),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(c),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout(function(){i.activationTimerCallback()},g)},e.prototype.getFgTranslationCoordinates=function(){var i=this.activationState,n=i.activationEvent,r=i.wasActivatedByPointer,o;r?o=bi(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):o={x:this.frame.width/2,y:this.frame.height/2},o={x:o.x-this.initialSize/2,y:o.y-this.initialSize/2};var a={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:o,endPoint:a}},e.prototype.runDeactivationUXLogicIfReady=function(){var i=this,n=e.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,a=r.isActivated,c=o||!a;c&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){i.adapter.removeClass(n)},mt.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var i=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(i),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var i=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return i.previousActivationEvent=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var i=this,n=this.activationState;if(n.isActivated){var r=d.__assign({},n);n.isProgrammatic?(requestAnimationFrame(function(){i.animateDeactivation(r)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){i.activationState.hasDeactivationUXRun=!0,i.animateDeactivation(r),i.resetActivationState()}))}},e.prototype.animateDeactivation=function(i){var n=i.wasActivatedByPointer,r=i.wasElementMadeActive;(n||r)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var i=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width),r=function(){var a=Math.sqrt(Math.pow(i.frame.width,2)+Math.pow(i.frame.height,2));return a+e.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?n:r();var o=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&o%2!==0?this.initialSize=o-1:this.initialSize=o,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var i=e.strings,n=i.VAR_FG_SIZE,r=i.VAR_LEFT,o=i.VAR_TOP,a=i.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(a,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(j);/**
|
259
|
+
*/var ut=["touchstart","pointerdown","mousedown","keydown"],pt=["touchend","pointerup","mouseup","contextmenu"],G=[],Ut=function(e){s.__extends(i,e);function i(t){var n=e.call(this,s.__assign(s.__assign({},i.defaultAdapter),t))||this;return n.activationAnimationHasEnded=!1,n.activationTimer=0,n.fgDeactivationRemovalTimer=0,n.fgScale="0",n.frame={width:0,height:0},n.initialSize=0,n.layoutFrame=0,n.maxRadius=0,n.unboundedCoords={left:0,top:0},n.activationState=n.defaultActivationState(),n.activationTimerCallback=function(){n.activationAnimationHasEnded=!0,n.runDeactivationUXLogicIfReady()},n.activateHandler=function(r){n.activateImpl(r)},n.deactivateHandler=function(){n.deactivateImpl()},n.focusHandler=function(){n.handleFocus()},n.blurHandler=function(){n.handleBlur()},n.resizeHandler=function(){n.layout()},n}return Object.defineProperty(i,"cssClasses",{get:function(){return di},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return ui},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return dt},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),i.prototype.init=function(){var t=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var r=i.cssClasses,o=r.ROOT,a=r.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(a),t.layoutInternal())})}},i.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(i.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(i.cssClasses.FG_DEACTIVATION));var n=i.cssClasses,r=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(r),t.adapter.removeClass(o),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},i.prototype.activate=function(t){this.activateImpl(t)},i.prototype.deactivate=function(){this.deactivateImpl()},i.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},i.prototype.setUnbounded=function(t){var n=i.cssClasses.UNBOUNDED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},i.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){t.adapter.addClass(i.cssClasses.BG_FOCUSED)})},i.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){t.adapter.removeClass(i.cssClasses.BG_FOCUSED)})},i.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},i.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},i.prototype.registerRootHandlers=function(t){var n,r;if(t){try{for(var o=s.__values(ut),a=o.next();!a.done;a=o.next()){var c=a.value;this.adapter.registerInteractionHandler(c,this.activateHandler)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},i.prototype.registerDeactivationHandlers=function(t){var n,r;if(t.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=s.__values(pt),a=o.next();!a.done;a=o.next()){var c=a.value;this.adapter.registerDocumentInteractionHandler(c,this.deactivateHandler)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},i.prototype.deregisterRootHandlers=function(){var t,n;try{for(var r=s.__values(ut),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},i.prototype.deregisterDeactivationHandlers=function(){var t,n;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var r=s.__values(pt),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},i.prototype.removeCssVars=function(){var t=this,n=i.strings,r=Object.keys(n);r.forEach(function(o){o.indexOf("VAR_")===0&&t.adapter.updateCssVariable(n[o],null)})},i.prototype.activateImpl=function(t){var n=this;if(!this.adapter.isSurfaceDisabled()){var r=this.activationState;if(!r.isActivated){var o=this.previousActivationEvent,a=o&&t!==void 0&&o.type!==t.type;if(!a){r.isActivated=!0,r.isProgrammatic=t===void 0,r.activationEvent=t,r.wasActivatedByPointer=r.isProgrammatic?!1:t!==void 0&&(t.type==="mousedown"||t.type==="touchstart"||t.type==="pointerdown");var c=t!==void 0&&G.length>0&&G.some(function(l){return n.adapter.containsEventTarget(l)});if(c){this.resetActivationState();return}t!==void 0&&(G.push(t.target),this.registerDeactivationHandlers(t)),r.wasElementMadeActive=this.checkElementMadeActive(t),r.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){G=[],!r.wasElementMadeActive&&t!==void 0&&(t.key===" "||t.keyCode===32)&&(r.wasElementMadeActive=n.checkElementMadeActive(t),r.wasElementMadeActive&&n.animateActivation()),r.wasElementMadeActive||(n.activationState=n.defaultActivationState())})}}}},i.prototype.checkElementMadeActive=function(t){return t!==void 0&&t.type==="keydown"?this.adapter.isSurfaceActive():!0},i.prototype.animateActivation=function(){var t=this,n=i.strings,r=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,a=i.cssClasses,c=a.FG_DEACTIVATION,l=a.FG_ACTIVATION,m=i.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var g="",S="";if(!this.adapter.isUnbounded()){var C=this.getFgTranslationCoordinates(),N=C.startPoint,P=C.endPoint;g=N.x+"px, "+N.y+"px",S=P.x+"px, "+P.y+"px"}this.adapter.updateCssVariable(r,g),this.adapter.updateCssVariable(o,S),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(c),this.adapter.computeBoundingRect(),this.adapter.addClass(l),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},m)},i.prototype.getFgTranslationCoordinates=function(){var t=this.activationState,n=t.activationEvent,r=t.wasActivatedByPointer,o;r?o=hi(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):o={x:this.frame.width/2,y:this.frame.height/2},o={x:o.x-this.initialSize/2,y:o.y-this.initialSize/2};var a={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:o,endPoint:a}},i.prototype.runDeactivationUXLogicIfReady=function(){var t=this,n=i.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,a=r.isActivated,c=o||!a;c&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(n)},dt.FG_DEACTIVATION_MS))},i.prototype.rmBoundedActivationClasses=function(){var t=i.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},i.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},i.numbers.TAP_DELAY_MS)},i.prototype.deactivateImpl=function(){var t=this,n=this.activationState;if(n.isActivated){var r=s.__assign({},n);n.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(r)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(r),t.resetActivationState()}))}},i.prototype.animateDeactivation=function(t){var n=t.wasActivatedByPointer,r=t.wasElementMadeActive;(n||r)&&this.runDeactivationUXLogicIfReady()},i.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width),r=function(){var a=Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2));return a+i.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?n:r();var o=Math.floor(n*i.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&o%2!==0?this.initialSize=o-1:this.initialSize=o,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},i.prototype.updateLayoutCssVars=function(){var t=i.strings,n=t.VAR_FG_SIZE,r=t.VAR_LEFT,o=t.VAR_TOP,a=t.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(a,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},i}($.MDCFoundation);/**
|
302
260
|
* @license
|
303
261
|
* Copyright 2016 Google Inc.
|
304
262
|
*
|
@@ -319,7 +277,7 @@
|
|
319
277
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
320
278
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
321
279
|
* THE SOFTWARE.
|
322
|
-
*/var
|
280
|
+
*/var ht=function(e){s.__extends(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.disabled=!1,t}return i.attachTo=function(t,n){n===void 0&&(n={isUnbounded:void 0});var r=new i(t);return n.isUnbounded!==void 0&&(r.unbounded=n.isUnbounded),r},i.createAdapter=function(t){return{addClass:function(n){t.root.classList.add(n)},browserSupportsCssVars:function(){return pi(window)},computeBoundingRect:function(){return t.root.getBoundingClientRect()},containsEventTarget:function(n){return t.root.contains(n)},deregisterDocumentInteractionHandler:function(n,r){document.documentElement.removeEventListener(n,r,B())},deregisterInteractionHandler:function(n,r){t.root.removeEventListener(n,r,B())},deregisterResizeHandler:function(n){window.removeEventListener("resize",n)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return zt(t.root,":active")},isSurfaceDisabled:function(){return!!t.disabled},isUnbounded:function(){return!!t.unbounded},registerDocumentInteractionHandler:function(n,r){document.documentElement.addEventListener(n,r,B())},registerInteractionHandler:function(n,r){t.root.addEventListener(n,r,B())},registerResizeHandler:function(n){window.addEventListener("resize",n)},removeClass:function(n){t.root.classList.remove(n)},updateCssVariable:function(n,r){t.root.style.setProperty(n,r)}}},Object.defineProperty(i.prototype,"unbounded",{get:function(){return!!this.isUnbounded},set:function(t){this.isUnbounded=!!t,this.setUnbounded()},enumerable:!1,configurable:!0}),i.prototype.activate=function(){this.foundation.activate()},i.prototype.deactivate=function(){this.foundation.deactivate()},i.prototype.layout=function(){this.foundation.layout()},i.prototype.getDefaultFoundation=function(){return new Ut(i.createAdapter(this))},i.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},i.prototype.setUnbounded=function(){this.foundation.setUnbounded(!!this.isUnbounded)},i}(Mt);/**
|
323
281
|
* @license
|
324
282
|
* Copyright 2020 Google Inc.
|
325
283
|
*
|
@@ -340,7 +298,7 @@
|
|
340
298
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
341
299
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
342
300
|
* THE SOFTWARE.
|
343
|
-
*/function
|
301
|
+
*/function mi(e,i){var t=Number(i.replace("px",""));return Number.isNaN(t)?e:{width:e.width+t,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left}}var fi="--mdc-chip-graphic-selected-width";/**
|
344
302
|
* @license
|
345
303
|
* Copyright 2020 Google Inc.
|
346
304
|
*
|
@@ -361,7 +319,7 @@
|
|
361
319
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
362
320
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
363
321
|
* THE SOFTWARE.
|
364
|
-
*/var
|
322
|
+
*/var H=new Map;H.set(v.KEY.SPACEBAR,y.SPACEBAR_KEY);H.set(v.KEY.ENTER,y.ENTER_KEY);H.set(v.KEY.DELETE,y.DELETE_KEY);H.set(v.KEY.BACKSPACE,y.BACKSPACE_KEY);var Ht=function(e){s.__extends(i,e);function i(t){return e.call(this,s.__assign(s.__assign({},i.defaultAdapter),t))||this}return Object.defineProperty(i,"defaultAdapter",{get:function(){return{emitEvent:function(){},focus:function(){},getAttribute:function(){return null},getElementID:function(){return""},removeAttribute:function(){},setAttribute:function(){}}},enumerable:!1,configurable:!0}),i.prototype.handleClick=function(){this.isDisabled()||this.emitInteraction(y.CLICK)},i.prototype.handleKeydown=function(t){var n=v.normalizeKey(t);if(this.shouldNotifyInteractionFromKey(n)){t.preventDefault(),this.emitInteraction(this.getTriggerFromKey(n));return}if(v.isNavigationEvent(t)){t.preventDefault(),this.emitNavigation(n);return}return!0},i.prototype.setDisabled=function(t){if(this.isSelectable()){this.adapter.setAttribute(h.ARIA_DISABLED,""+t);return}t?this.adapter.setAttribute(h.DISABLED,"true"):this.adapter.removeAttribute(h.DISABLED)},i.prototype.isDisabled=function(){return this.adapter.getAttribute(h.ARIA_DISABLED)==="true"||this.adapter.getAttribute(h.DISABLED)!==null},i.prototype.setFocus=function(t){if(this.isFocusable()){if(t===exports.MDCChipActionFocusBehavior.FOCUSABLE_AND_FOCUSED){this.adapter.setAttribute(h.TAB_INDEX,"0"),this.adapter.focus();return}if(t===exports.MDCChipActionFocusBehavior.FOCUSABLE){this.adapter.setAttribute(h.TAB_INDEX,"0");return}if(t===exports.MDCChipActionFocusBehavior.NOT_FOCUSABLE){this.adapter.setAttribute(h.TAB_INDEX,"-1");return}}},i.prototype.isFocusable=function(){return!(this.isDisabled()||this.adapter.getAttribute(h.ARIA_HIDDEN)==="true")},i.prototype.setSelected=function(t){this.isSelectable()&&this.adapter.setAttribute(h.ARIA_SELECTED,""+t)},i.prototype.isSelected=function(){return this.adapter.getAttribute(h.ARIA_SELECTED)==="true"},i.prototype.emitInteraction=function(t){this.adapter.emitEvent(x.INTERACTION,{actionID:this.adapter.getElementID(),source:this.actionType(),trigger:t})},i.prototype.emitNavigation=function(t){this.adapter.emitEvent(x.NAVIGATION,{source:this.actionType(),key:t})},i.prototype.shouldNotifyInteractionFromKey=function(t){var n=t===v.KEY.ENTER||t===v.KEY.SPACEBAR,r=t===v.KEY.BACKSPACE||t===v.KEY.DELETE;return!!(n||r&&this.shouldEmitInteractionOnRemoveKey())},i.prototype.getTriggerFromKey=function(t){var n=H.get(t);return n||y.UNSPECIFIED},i}($.MDCFoundation);/**
|
365
323
|
* @license
|
366
324
|
* Copyright 2020 Google Inc.
|
367
325
|
*
|
@@ -382,7 +340,7 @@
|
|
382
340
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
383
341
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
384
342
|
* THE SOFTWARE.
|
385
|
-
*/var
|
343
|
+
*/var vi=function(e){s.__extends(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return i.prototype.isSelectable=function(){return this.adapter.getAttribute(h.ROLE)==="option"},i.prototype.actionType=function(){return exports.MDCChipActionType.PRIMARY},i.prototype.shouldEmitInteractionOnRemoveKey=function(){return this.adapter.getAttribute(h.DATA_DELETABLE)==="true"},i}(Ht);/**
|
386
344
|
* @license
|
387
345
|
* Copyright 2020 Google Inc.
|
388
346
|
*
|
@@ -403,7 +361,7 @@
|
|
403
361
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
404
362
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
405
363
|
* THE SOFTWARE.
|
406
|
-
*/var
|
364
|
+
*/var gi=function(e){s.__extends(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return i.prototype.isSelectable=function(){return!1},i.prototype.actionType=function(){return exports.MDCChipActionType.TRAILING},i.prototype.shouldEmitInteractionOnRemoveKey=function(){return!0},i}(Ht);/**
|
407
365
|
* @license
|
408
366
|
* Copyright 2020 Google Inc.
|
409
367
|
*
|
@@ -424,9 +382,9 @@
|
|
424
382
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
425
383
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
426
384
|
* THE SOFTWARE.
|
427
|
-
*/var
|
385
|
+
*/var _i=[w.safeAttrPrefix(mt||(mt=s.__makeTemplateObject(["aria-"],["aria-"]))),w.safeAttrPrefix(ft||(ft=s.__makeTemplateObject(["data-"],["data-"]))),w.safeAttrPrefix(vt||(vt=s.__makeTemplateObject(["disabled"],["disabled"]))),w.safeAttrPrefix(gt||(gt=s.__makeTemplateObject(["role"],["role"]))),w.safeAttrPrefix(_t||(_t=s.__makeTemplateObject(["tabindex"],["tabindex"])))],yi=function(e){s.__extends(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.rootHTML=t.root,t}return i.attachTo=function(t){return new i(t)},Object.defineProperty(i.prototype,"ripple",{get:function(){return this.rippleInstance},enumerable:!1,configurable:!0}),i.prototype.initialize=function(t){var n=this;t===void 0&&(t=function(o,a){return new ht(o,a)});var r=s.__assign(s.__assign({},ht.createAdapter(this)),{computeBoundingRect:function(){return n.computeRippleClientRect()}});this.rippleInstance=t(this.root,new Ut(r))},i.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.handleKeydown=function(n){t.foundation.handleKeydown(n)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown)},i.prototype.destroy=function(){this.ripple.destroy(),this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),e.prototype.destroy.call(this)},i.prototype.getDefaultFoundation=function(){var t=this,n={emitEvent:function(r,o){t.emit(r,o,!0)},focus:function(){t.rootHTML.focus()},getAttribute:function(r){return t.root.getAttribute(r)},getElementID:function(){return t.root.id},removeAttribute:function(r){t.root.removeAttribute(r)},setAttribute:function(r,o){Nt(_i,t.root,r,o)}};return this.root.classList.contains(z.TRAILING_ACTION)?new gi(n):new vi(n)},i.prototype.setDisabled=function(t){this.foundation.setDisabled(t)},i.prototype.isDisabled=function(){return this.foundation.isDisabled()},i.prototype.setFocus=function(t){this.foundation.setFocus(t)},i.prototype.isFocusable=function(){return this.foundation.isFocusable()},i.prototype.setSelected=function(t){this.foundation.setSelected(t)},i.prototype.isSelected=function(){return this.foundation.isSelected()},i.prototype.isSelectable=function(){return this.foundation.isSelectable()},i.prototype.actionType=function(){return this.foundation.actionType()},i.prototype.computeRippleClientRect=function(){if(this.root.classList.contains(z.PRIMARY_ACTION)){var t=ci(this.root,"."+z.CHIP_ROOT);if(!t)return this.root.getBoundingClientRect();var n=window.getComputedStyle(t).getPropertyValue(fi);return mi(t.getBoundingClientRect(),n)}return this.root.getBoundingClientRect()},i}(Mt),mt,ft,vt,gt,_t,bi=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,T=(e,i,t,n)=>{for(var r=n>1?void 0:n?Ai(i,t):i,o=e.length-1,a;o>=0;o--)(a=e[o])&&(r=(n?a(i,t,r):a(r))||r);return n&&r&&bi(i,t,r),r};let Ei=0;class E extends b.s{constructor(){super(),this.mdcFoundationClass=li,this.label="",this.icon="",this.trailingIcon=!1,this.avatar=!1,this.disabled=!1,this.filter=!1,this.chipId=Ei++}render(){const i={"mdc-evolution-chip":!0,"mdc-evolution-chip--disabled":this.disabled,"mdc-evolution-chip--with-trailing-action":this.trailingIcon,"mdc-evolution-chip--with-primary-graphic":!this.trailingIcon&&this.icon,"mdc-evolution-chip--with-primary-icon":this.icon&&!this.filter,"mdc-evolution-chip--filter":this.filter,"mdc-evolution-chip--selectable":this.filter,"mdc-evolution-chip--with-avatar":this.avatar,secondary:this.state==="secondary",negative:this.state==="negative",caution:this.state==="caution"};return b.x`
|
428
386
|
<span
|
429
|
-
class="${
|
387
|
+
class="${Kt.o(i)}"
|
430
388
|
role="${this.filter?"presentation":"row"}"
|
431
389
|
id="cv-chip-${this.chipId}"
|
432
390
|
>
|
@@ -449,9 +407,9 @@
|
|
449
407
|
</span>
|
450
408
|
${this.trailingIcon?this.renderTrailing():""}
|
451
409
|
</span>
|
452
|
-
`}async firstUpdated(){this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.actions=new Map;const
|
453
|
-
${
|
454
|
-
</span>`}renderCheckMark(){return
|
410
|
+
`}async firstUpdated(){this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.actions=new Map;const i=this.mdcRoot.querySelectorAll(".mdc-evolution-chip__action");for(let t=0;t<i.length;t++){const n=new yi(i[t]);this.actions.set(n.actionType(),n),i[t].addEventListener(x.INTERACTION,r=>{var o;(o=this.mdcFoundation)==null||o.handleActionInteraction(r)}),i[t].addEventListener(x.NAVIGATION,r=>{var o;(o=this.mdcFoundation)==null||o.handleActionNavigation(r)})}}renderGraphic(){const i=this.filter?this.renderCheckMark():this.renderIcon();return b.x`<span class="mdc-evolution-chip__graphic">
|
411
|
+
${i}
|
412
|
+
</span>`}renderCheckMark(){return b.x` <span class="mdc-evolution-chip__checkmark">
|
455
413
|
<svg class="mdc-evolution-chip__checkmark-svg" viewBox="-2 -3 30 30">
|
456
414
|
<path
|
457
415
|
class="mdc-evolution-chip__checkmark-path"
|
@@ -459,11 +417,11 @@
|
|
459
417
|
d="M1.73,12.91 8.1,19.28 22.79,4.59"
|
460
418
|
/>
|
461
419
|
</svg>
|
462
|
-
</span>`}renderIcon(
|
463
|
-
class="mdc-evolution-chip__icon mdc-evolution-chip__icon--${
|
420
|
+
</span>`}renderIcon(i=!1){return b.x` <span
|
421
|
+
class="mdc-evolution-chip__icon mdc-evolution-chip__icon--${i?"trailing":"primary"}"
|
464
422
|
>
|
465
423
|
${this.icon}
|
466
|
-
</span>`}renderTrailing(){return
|
424
|
+
</span>`}renderTrailing(){return b.x` <span
|
467
425
|
class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"
|
468
426
|
role="gridcell"
|
469
427
|
>
|
@@ -479,7 +437,7 @@
|
|
479
437
|
></span>
|
480
438
|
${this.renderIcon(!0)}
|
481
439
|
</button>
|
482
|
-
</span>`}createAdapter(){return{...qt.addHasRemoveClass(this.mdcRoot),emitEvent:(e,i)=>this.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:i})),getActions:()=>{const e=[];for(const[i]of this.actions)e.push(i);return e},getAttribute:e=>this.mdcRoot.getAttribute(e),getElementID:()=>this.mdcRoot.getAttribute("id")??"",getOffsetWidth:()=>this.mdcRoot.offsetWidth,hasClass:e=>this.mdcRoot.classList.contains(e),isActionSelectable:e=>{var i;return((i=this.actions.get(e))==null?void 0:i.isSelectable())??!0},isActionSelected:e=>{var i;return((i=this.actions.get(e))==null?void 0:i.isSelected())??!1},isActionFocusable:e=>{var i;return((i=this.actions.get(e))==null?void 0:i.isFocusable())??!0},isActionDisabled:e=>{var i;return((i=this.actions.get(e))==null?void 0:i.isDisabled())??!1},isRTL:()=>window.getComputedStyle(this.mdcRoot).getPropertyValue("direction")==="rtl",setActionDisabled:(e,i)=>{var n;return(n=this.actions.get(e))==null?void 0:n.setDisabled(i)},setActionFocus:(e,i)=>{var n;return(n=this.actions.get(e))==null?void 0:n.setFocus(i)},setActionSelected:(e,i)=>{var n;return(n=this.actions.get(e))==null?void 0:n.setSelected(i)},setStyleProperty:(e,i)=>this.mdcRoot.style.setProperty(e,i)}}getActions(){var e;return((e=this.mdcFoundation)==null?void 0:e.getActions())??[]}getElementID(){var e;return((e=this.mdcFoundation)==null?void 0:e.getElementID())??""}isActionFocusable(e){var i;return((i=this.mdcFoundation)==null?void 0:i.isActionFocusable(e))??!1}isActionSelectable(e){var i;return((i=this.mdcFoundation)==null?void 0:i.isActionSelectable(e))??!1}isActionSelected(e){var i;return((i=this.mdcFoundation)==null?void 0:i.isActionSelected(e))??!1}setActionFocus(e,i){var n;return(n=this.mdcFoundation)==null?void 0:n.setActionFocus(e,i)}setActionSelected(e,i){var n;return(n=this.mdcFoundation)==null?void 0:n.setActionSelected(e,i)}startAnimation(e){var i;return(i=this.mdcFoundation)==null?void 0:i.startAnimation(e)}}I([Yt.i(".mdc-evolution-chip")],C.prototype,"mdcRoot",2);I([L.n()],C.prototype,"label",2);I([L.n({type:String})],C.prototype,"icon",2);I([L.n({type:Boolean,reflect:!0})],C.prototype,"trailingIcon",2);I([L.n({type:Boolean,reflect:!0})],C.prototype,"avatar",2);I([L.n({type:Boolean,reflect:!0})],C.prototype,"disabled",2);I([L.n({type:Boolean,reflect:!0})],C.prototype,"filter",2);I([L.n()],C.prototype,"state",2);const Oi=`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;-webkit-user-select:none;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width .15s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform .15s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 45ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width .1s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform .1s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1);transform:translate(-50%,-50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%,-50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{0%{transform:scale(.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter .1s 0ms cubic-bezier(0,0,.2,1)}@keyframes mdc-evolution-chip-exit{0%{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width .15s 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip{height:32px;border-radius:16px;background-color:#e0e0e0}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip .mdc-evolution-chip__text-label,.mdc-evolution-chip .mdc-evolution-chip__icon--primary,.mdc-evolution-chip .mdc-evolution-chip__checkmark,.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{color:#000000de}.mdc-evolution-chip .mdc-evolution-chip__text-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 20px}.mdc-evolution-chip .mdc-evolution-chip__graphic,.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-evolution-chip.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:Canvas}}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% - 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip--filter.mdc-evolution-chip--selected{background-color:#cecece}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--trailing:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__ripple--trailing{height:18px;width:18px}.mdc-evolution-chip__action{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-evolution-chip__action.mdc-ripple-upgraded--unbounded .mdc-evolution-chip__ripple:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-activation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-deactivation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{top:-50%;left:-50%;width:200%;height:200%}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-evolution-chip__ripple{position:absolute;box-sizing:content-box;overflow:hidden;pointer-events:none}.mdc-evolution-chip__ripple--primary{height:100%;width:100%;top:0;left:0}.mdc-evolution-chip__ripple--trailing{top:50%;transform:translateY(-50%)}.mdc-evolution-chip{background-color:var(--mdc-theme-surface-neutral)}.mdc-evolution-chip .mdc-evolution-chip__text-label{color:var(--mdc-theme-text-primary-on-background)}.mdc-evolution-chip .mdc-evolution-chip__icon{font-family:var(--mdc-icon-font, "Material Symbols Rounded");color:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip .mdc-evolution-chip__checkmark-path{stroke:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip.mdc-evolution-chip--selected{background-color:var(--mdc-theme-surface-primary)}.mdc-evolution-chip.negative{background-color:var(--mdc-theme-surface-negative)}.mdc-evolution-chip.caution{background-color:var(--mdc-theme-surface-caution)}.mdc-evolution-chip.secondary{background-color:var(--mdc-theme-surface-secondary)}
|
483
|
-
`;var
|
484
|
-
${
|
485
|
-
`];exports.CovalentChip=
|
440
|
+
</span>`}createAdapter(){return{...jt.addHasRemoveClass(this.mdcRoot),emitEvent:(i,t)=>this.dispatchEvent(new CustomEvent(i,{bubbles:!0,detail:t})),getActions:()=>{const i=[];for(const[t]of this.actions)i.push(t);return i},getAttribute:i=>this.mdcRoot.getAttribute(i),getElementID:()=>this.mdcRoot.getAttribute("id")??"",getOffsetWidth:()=>this.mdcRoot.offsetWidth,hasClass:i=>this.mdcRoot.classList.contains(i),isActionSelectable:i=>{var t;return((t=this.actions.get(i))==null?void 0:t.isSelectable())??!0},isActionSelected:i=>{var t;return((t=this.actions.get(i))==null?void 0:t.isSelected())??!1},isActionFocusable:i=>{var t;return((t=this.actions.get(i))==null?void 0:t.isFocusable())??!0},isActionDisabled:i=>{var t;return((t=this.actions.get(i))==null?void 0:t.isDisabled())??!1},isRTL:()=>window.getComputedStyle(this.mdcRoot).getPropertyValue("direction")==="rtl",setActionDisabled:(i,t)=>{var n;return(n=this.actions.get(i))==null?void 0:n.setDisabled(t)},setActionFocus:(i,t)=>{var n;return(n=this.actions.get(i))==null?void 0:n.setFocus(t)},setActionSelected:(i,t)=>{var n;return(n=this.actions.get(i))==null?void 0:n.setSelected(t)},setStyleProperty:(i,t)=>this.mdcRoot.style.setProperty(i,t)}}getActions(){var i;return((i=this.mdcFoundation)==null?void 0:i.getActions())??[]}getElementID(){var i;return((i=this.mdcFoundation)==null?void 0:i.getElementID())??""}isActionFocusable(i){var t;return((t=this.mdcFoundation)==null?void 0:t.isActionFocusable(i))??!1}isActionSelectable(i){var t;return((t=this.mdcFoundation)==null?void 0:t.isActionSelectable(i))??!1}isActionSelected(i){var t;return((t=this.mdcFoundation)==null?void 0:t.isActionSelected(i))??!1}setActionFocus(i,t){var n;return(n=this.mdcFoundation)==null?void 0:n.setActionFocus(i,t)}setActionSelected(i,t){var n;return(n=this.mdcFoundation)==null?void 0:n.setActionSelected(i,t)}startAnimation(i){var t;return(t=this.mdcFoundation)==null?void 0:t.startAnimation(i)}}T([Gt.i(".mdc-evolution-chip")],E.prototype,"mdcRoot",2);T([R.n()],E.prototype,"label",2);T([R.n({type:String})],E.prototype,"icon",2);T([R.n({type:Boolean,reflect:!0})],E.prototype,"trailingIcon",2);T([R.n({type:Boolean,reflect:!0})],E.prototype,"avatar",2);T([R.n({type:Boolean,reflect:!0})],E.prototype,"disabled",2);T([R.n({type:Boolean,reflect:!0})],E.prototype,"filter",2);T([R.n()],E.prototype,"state",2);const Si=`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;-webkit-user-select:none;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width .15s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform .15s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 45ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width .1s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform .1s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1);transform:translate(-50%,-50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%,-50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{0%{transform:scale(.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter .1s 0ms cubic-bezier(0,0,.2,1)}@keyframes mdc-evolution-chip-exit{0%{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width .15s 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip{height:32px;border-radius:16px;background-color:#e0e0e0}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip .mdc-evolution-chip__text-label,.mdc-evolution-chip .mdc-evolution-chip__icon--primary,.mdc-evolution-chip .mdc-evolution-chip__checkmark,.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{color:#000000de}.mdc-evolution-chip .mdc-evolution-chip__text-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 20px}.mdc-evolution-chip .mdc-evolution-chip__graphic,.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-evolution-chip.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:Canvas}}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% - 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip--filter.mdc-evolution-chip--selected{background-color:#cecece}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--trailing:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__ripple--trailing{height:18px;width:18px}.mdc-evolution-chip__action{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-evolution-chip__action.mdc-ripple-upgraded--unbounded .mdc-evolution-chip__ripple:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-activation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-deactivation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{top:-50%;left:-50%;width:200%;height:200%}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-evolution-chip__ripple{position:absolute;box-sizing:content-box;overflow:hidden;pointer-events:none}.mdc-evolution-chip__ripple--primary{height:100%;width:100%;top:0;left:0}.mdc-evolution-chip__ripple--trailing{top:50%;transform:translateY(-50%)}.mdc-evolution-chip{background-color:var(--mdc-theme-surface-neutral)}.mdc-evolution-chip .mdc-evolution-chip__text-label{color:var(--mdc-theme-text-primary-on-background)}.mdc-evolution-chip .mdc-evolution-chip__icon{font-family:var(--mdc-icon-font, "Material Symbols Rounded");color:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip .mdc-evolution-chip__checkmark-path{stroke:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip.mdc-evolution-chip--selected{background-color:var(--mdc-theme-surface-primary)}.mdc-evolution-chip.negative{background-color:var(--mdc-theme-surface-negative)}.mdc-evolution-chip.caution{background-color:var(--mdc-theme-surface-caution)}.mdc-evolution-chip.secondary{background-color:var(--mdc-theme-surface-secondary)}
|
441
|
+
`;var wi=Object.defineProperty,Ti=Object.getOwnPropertyDescriptor,Ci=(e,i,t,n)=>{for(var r=n>1?void 0:n?Ti(i,t):i,o=e.length-1,a;o>=0;o--)(a=e[o])&&(r=(n?a(i,t,r):a(r))||r);return n&&r&&wi(i,t,r),r};exports.CovalentChip=class extends E{};exports.CovalentChip.styles=[b.i`
|
442
|
+
${b.r(Si)}
|
443
|
+
`];exports.CovalentChip=Ci([b.e("cv-chip")],exports.CovalentChip);const Ii=exports.CovalentChip;exports.CovalentChip$1=Ii;
|