@momentum-design/components 0.70.4 → 0.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser/index.js
CHANGED
@@ -2035,7 +2035,7 @@
|
|
2035
2035
|
`:g}render(){return m`
|
2036
2036
|
${this.renderIcon()}
|
2037
2037
|
<mdc-text type="${yr.TEXT_TYPE}" tagname="${yr.TAG_NAME}">${this.label}</mdc-text>
|
2038
|
-
`}};xr.styles=[...v.styles,...al],n([l({type:String,reflect:!0})],xr.prototype,"color",2),n([l({type:String})],xr.prototype,"label",2);var Er=xr;Er.register(sl);var Tm=Er;var De=Math.min,ie=Math.max,ro=Math.round,oo=Math.floor,Se=i=>({x:i,y:i}),Am={left:"right",right:"left",bottom:"top",top:"bottom"},Sm={start:"end",end:"start"};function ai(i,t,e){return ie(i,De(t,e))}function Lt(i,t){return typeof i=="function"?i(t):i}function Ze(i){return i.split("-")[0]}function _t(i){return i.split("-")[1]}function Sa(i){return i==="x"?"y":"x"}function si(i){return i==="y"?"height":"width"}function pt(i){return["top","bottom"].includes(Ze(i))?"y":"x"}function ni(i){return Sa(pt(i))}function nl(i,t,e){e===void 0&&(e=!1);let r=_t(i),o=ni(i),a=si(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=to(s)),[s,to(s)]}function ll(i){let t=to(i);return[ii(i),t,ii(t)]}function ii(i){return i.replace(/start|end/g,t=>Sm[t])}function Im(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function cl(i,t,e,r){let o=_t(i),a=Im(Ze(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ii)))),a}function to(i){return i.replace(/left|right|bottom|top/g,t=>Am[t])}function Cm(i){return{top:0,right:0,bottom:0,left:0,...i}}function Ia(i){return typeof i!="number"?Cm(i):{top:i,right:i,bottom:i,left:i}}function Rt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function dl(i,t,e){let{reference:r,floating:o}=i,a=pt(t),s=ni(t),c=si(s),d=Ze(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[c]/2-o[c]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(_t(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var ml=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=dl(p,r,d),x=r,y={},T=0;for(let S=0;S<c.length;S++){let{name:k,fn:I}=c[S],{x:w,y:O,data:Y,reset:z}=await I({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=w!=null?w:h,b=O!=null?O:b,y={...y,[k]:{...y[k],...Y}},z&&T<=50&&(T++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=dl(p,x,d)),S=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function li(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:c,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=Lt(t,i),T=Ia(y),k=c[x?b==="floating"?"reference":"floating":b],I=Rt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(k)))==null||e?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),w=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Y=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=Rt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:O,strategy:d}):w);return{top:(I.top-z.top+T.top)/Y.y,bottom:(z.bottom-I.bottom+T.bottom)/Y.y,left:(I.left-z.left+T.left)/Y.x,right:(z.right-I.right+T.right)/Y.x}}var pl=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=Lt(i,t)||{};if(p==null)return{};let b=Ia(h),x={x:e,y:r},y=ni(o),T=si(y),S=await s.getDimensions(p),k=y==="y",I=k?"top":"left",w=k?"bottom":"right",O=k?"clientHeight":"clientWidth",Y=a.reference[T]+a.reference[y]-x[y]-a.floating[T],z=x[y]-a.reference[y],be=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),xe=be?be[O]:0;(!xe||!await(s.isElement==null?void 0:s.isElement(be)))&&(xe=c.floating[O]||a.floating[T]);let $e=Y/2-z/2,Ne=xe/2-S[T]/2-1,Ee=De(b[I],Ne),rt=De(b[w],Ne),Le=Ee,ot=xe-S[T]-rt,te=xe/2-S[T]/2+$e,Jt=ai(Le,te,ot),ze=!d.arrow&&_t(o)!=null&&te!==Jt&&a.reference[T]/2-(te<Le?Ee:rt)-S[T]/2<0,_e=ze?te<Le?te-Le:te-ot:0;return{[y]:x[y]+_e,data:{[y]:Jt,centerOffset:te-Jt-_e,...ze&&{alignmentOffset:_e}},reset:ze}}});var hl=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:S=!0,...k}=Lt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=Ze(o),w=pt(c),O=Ze(c)===c,Y=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(O||!S?[to(c)]:ll(c)),be=T!=="none";!x&&be&&z.push(...cl(c,S,T,Y));let xe=[c,...z],$e=await li(t,k),Ne=[],Ee=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Ne.push($e[I]),b){let te=nl(o,s,Y);Ne.push($e[te[0]],$e[te[1]])}if(Ee=[...Ee,{placement:o,overflows:Ne}],!Ne.every(te=>te<=0)){var rt,Le;let te=(((rt=a.flip)==null?void 0:rt.index)||0)+1,Jt=xe[te];if(Jt)return{data:{index:te,overflows:Ee},reset:{placement:Jt}};let ze=(Le=Ee.filter(_e=>_e.overflows[0]<=0).sort((_e,it)=>_e.overflows[1]-it.overflows[1])[0])==null?void 0:Le.placement;if(!ze)switch(y){case"bestFit":{var ot;let _e=(ot=Ee.filter(it=>{if(be){let at=pt(it.placement);return at===w||at==="y"}return!0}).map(it=>[it.placement,it.overflows.filter(at=>at>0).reduce((at,cd)=>at+cd,0)]).sort((it,at)=>it[1]-at[1])[0])==null?void 0:ot[0];_e&&(ze=_e);break}case"initialPlacement":ze=c;break}if(o!==ze)return{reset:{placement:ze}}}return{}}}};async function km(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(e),c=_t(e),d=pt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=Lt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return c&&typeof T=="number"&&(y=c==="end"?T*-1:T),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var ul=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:c}=t,d=await km(t,i);return s===((e=c.offset)==null?void 0:e.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},fl=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:k=>{let{x:I,y:w}=k;return{x:I,y:w}}},...d}=Lt(i,t),p={x:e,y:r},h=await li(t,d),b=pt(Ze(o)),x=Sa(b),y=p[x],T=p[b];if(a){let k=x==="y"?"top":"left",I=x==="y"?"bottom":"right",w=y+h[k],O=y-h[I];y=ai(w,y,O)}if(s){let k=b==="y"?"top":"left",I=b==="y"?"bottom":"right",w=T+h[k],O=T-h[I];T=ai(w,T,O)}let S=c.fn({...t,[x]:y,[b]:T});return{...S,data:{x:S.x-e,y:S.y-r,enabled:{[x]:a,[b]:s}}}}}};var bl=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:c}=t,{apply:d=()=>{},...p}=Lt(i,t),h=await li(t,p),b=Ze(o),x=_t(o),y=pt(o)==="y",{width:T,height:S}=a.floating,k,I;b==="top"||b==="bottom"?(k=b,I=x===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(I=b,k=x==="end"?"top":"bottom");let w=S-h.top-h.bottom,O=T-h.left-h.right,Y=De(S-h[k],w),z=De(T-h[I],O),be=!t.middlewareData.shift,xe=Y,$e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&($e=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(xe=w),be&&!x){let Ee=ie(h.left,0),rt=ie(h.right,0),Le=ie(h.top,0),ot=ie(h.bottom,0);y?$e=T-2*(Ee!==0||rt!==0?Ee+rt:ie(h.left,h.right)):xe=S-2*(Le!==0||ot!==0?Le+ot:ie(h.top,h.bottom))}await d({...t,availableWidth:$e,availableHeight:xe});let Ne=await s.getDimensions(c.floating);return T!==Ne.width||S!==Ne.height?{reset:{rects:!0}}:{}}}};function ci(){return typeof window<"u"}function Ot(i){return vl(i)?(i.nodeName||"").toLowerCase():"#document"}function de(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(i){var t;return(t=(vl(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function vl(i){return ci()?i instanceof Node||i instanceof de(i).Node:!1}function ge(i){return ci()?i instanceof Element||i instanceof de(i).Element:!1}function Ce(i){return ci()?i instanceof HTMLElement||i instanceof de(i).HTMLElement:!1}function gl(i){return!ci()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof de(i).ShadowRoot}function Ar(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=ve(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function yl(i){return["table","td","th"].includes(Ot(i))}function io(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function di(i){let t=mi(),e=ge(i)?ve(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function xl(i){let t=Xe(i);for(;Ce(t)&&!Mt(t);){if(di(t))return t;if(io(t))return null;t=Xe(t)}return null}function mi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mt(i){return["html","body","#document"].includes(Ot(i))}function ve(i){return de(i).getComputedStyle(i)}function ao(i){return ge(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Xe(i){if(Ot(i)==="html")return i;let t=i.assignedSlot||i.parentNode||gl(i)&&i.host||Ie(i);return gl(t)?t.host:t}function El(i){let t=Xe(i);return Mt(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ce(t)&&Ar(t)?t:El(t)}function Tr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=El(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=de(o);if(a){let c=pi(s);return t.concat(s,s.visualViewport||[],Ar(o)?o:[],c&&e?Tr(c):[])}return t.concat(o,Tr(o,[],e))}function pi(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Sl(i){let t=ve(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ce(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,c=ro(e)!==a||ro(r)!==s;return c&&(e=a,r=s),{width:e,height:r,$:c}}function ka(i){return ge(i)?i:i.contextElement}function Sr(i){let t=ka(i);if(!Ce(t))return Se(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Sl(t),s=(a?ro(e.width):e.width)/r,c=(a?ro(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var wm=Se(0);function Il(i){let t=de(i);return!mi()||!t.visualViewport?wm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nm(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==de(i)?!1:t}function Dt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=ka(i),s=Se(1);t&&(r?ge(r)&&(s=Sr(r)):s=Sr(i));let c=Nm(a,e,r)?Il(a):Se(0),d=(o.left+c.x)/s.x,p=(o.top+c.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=de(a),y=r&&ge(r)?de(r):r,T=x,S=pi(T);for(;S&&r&&y!==T;){let k=Sr(S),I=S.getBoundingClientRect(),w=ve(S),O=I.left+(S.clientLeft+parseFloat(w.paddingLeft))*k.x,Y=I.top+(S.clientTop+parseFloat(w.paddingTop))*k.y;d*=k.x,p*=k.y,h*=k.x,b*=k.y,d+=O,p+=Y,T=de(S),S=pi(T)}}return Rt({width:h,height:b,x:d,y:p})}function wa(i,t){let e=ao(i).scrollLeft;return t?t.left+e:Dt(Ie(i)).left+e}function Cl(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:wa(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Lm(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ie(r),c=t?io(t.floating):!1;if(r===s||c&&a)return e;let d={scrollLeft:0,scrollTop:0},p=Se(1),h=Se(0),b=Ce(r);if((b||!b&&!a)&&((Ot(r)!=="body"||Ar(s))&&(d=ao(r)),Ce(r))){let y=Dt(r);p=Sr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?Cl(s,d,!0):Se(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function _m(i){return Array.from(i.getClientRects())}function Rm(i){let t=Ie(i),e=ao(i),r=i.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+wa(i),c=-e.scrollTop;return ve(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Om(i,t){let e=de(i),r=Ie(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){a=o.width,s=o.height;let p=mi();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:c,y:d}}function Mm(i,t){let e=Dt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ce(i)?Sr(i):Se(1),s=i.clientWidth*a.x,c=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:c,x:d,y:p}}function Tl(i,t,e){let r;if(t==="viewport")r=Om(i,e);else if(t==="document")r=Rm(Ie(i));else if(ge(t))r=Mm(t,e);else{let o=Il(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rt(r)}function kl(i,t){let e=Xe(i);return e===t||!ge(e)||Mt(e)?!1:ve(e).position==="fixed"||kl(e,t)}function Dm(i,t){let e=t.get(i);if(e)return e;let r=Tr(i,[],!1).filter(c=>ge(c)&&Ot(c)!=="body"),o=null,a=ve(i).position==="fixed",s=a?Xe(i):i;for(;ge(s)&&!Mt(s);){let c=ve(s),d=di(s);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ar(s)&&!d&&kl(i,s))?r=r.filter(h=>h!==s):o=c,s=Xe(s)}return t.set(i,r),r}function $m(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?io(t)?[]:Dm(t,this._c):[].concat(e),r],c=s[0],d=s.reduce((p,h)=>{let b=Tl(t,h,o);return p.top=ie(b.top,p.top),p.right=De(b.right,p.right),p.bottom=De(b.bottom,p.bottom),p.left=ie(b.left,p.left),p},Tl(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zm(i){let{width:t,height:e}=Sl(i);return{width:t,height:e}}function Pm(i,t,e){let r=Ce(t),o=Ie(t),a=e==="fixed",s=Dt(i,!0,a,t),c={scrollLeft:0,scrollTop:0},d=Se(0);if(r||!r&&!a)if((Ot(t)!=="body"||Ar(o))&&(c=ao(t)),r){let x=Dt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=wa(o));let p=o&&!r&&!a?Cl(o,c):Se(0),h=s.left+c.scrollLeft-d.x-p.x,b=s.top+c.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function Ca(i){return ve(i).position==="static"}function Al(i,t){if(!Ce(i)||ve(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ie(i)===e&&(e=e.ownerDocument.body),e}function wl(i,t){let e=de(i);if(io(i))return e;if(!Ce(i)){let o=Xe(i);for(;o&&!Mt(o);){if(ge(o)&&!Ca(o))return o;o=Xe(o)}return e}let r=Al(i,t);for(;r&&yl(r)&&Ca(r);)r=Al(r,t);return r&&Mt(r)&&Ca(r)&&!di(r)?e:r||xl(i)||e}var Um=async function(i){let t=this.getOffsetParent||wl,e=this.getDimensions,r=await e(i.floating);return{reference:Pm(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vm(i){return ve(i).direction==="rtl"}var Fm={convertOffsetParentRelativeRectToViewportRelativeRect:Lm,getDocumentElement:Ie,getClippingRect:$m,getOffsetParent:wl,getElementRects:Um,getClientRects:_m,getDimensions:zm,getScale:Sr,isElement:ge,isRTL:Vm};function Bm(i,t){let e=null,r,o=Ie(i);function a(){var c;clearTimeout(r),(c=e)==null||c.disconnect(),e=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(c||t(),!b||!x)return;let y=oo(h),T=oo(o.clientWidth-(p+b)),S=oo(o.clientHeight-(h+x)),k=oo(p),w={rootMargin:-y+"px "+-T+"px "+-S+"px "+-k+"px",threshold:ie(0,De(1,d))||1},O=!0;function Y(z){let be=z[0].intersectionRatio;if(be!==d){if(!O)return s();be?s(!1,be):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{e=new IntersectionObserver(Y,{...w,root:o.ownerDocument})}catch{e=new IntersectionObserver(Y,w)}e.observe(i)}return s(!0),a}function Nl(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=ka(i),h=o||a?[...p?Tr(p):[],...Tr(t)]:[];h.forEach(I=>{o&&I.addEventListener("scroll",e,{passive:!0}),a&&I.addEventListener("resize",e)});let b=p&&c?Bm(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(I=>{let[w]=I;w&&w.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let T,S=d?Dt(i):null;d&&k();function k(){let I=Dt(i);S&&(I.x!==S.x||I.y!==S.y||I.width!==S.width||I.height!==S.height)&&e(),S=I,T=requestAnimationFrame(k)}return e(),()=>{var I;h.forEach(w=>{o&&w.removeEventListener("scroll",e),a&&w.removeEventListener("resize",e)}),b==null||b(),(I=y)==null||I.disconnect(),y=null,d&&cancelAnimationFrame(T)}}var Ll=ul;var _l=fl,Rl=hl,Ol=bl;var Ml=pl;var Dl=(i,t,e)=>{let r=new Map,o={platform:Fm,...e},a={...o.platform,_c:r};return ml(i,t,{...o,platform:a})};var hi=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:c,offsetHeight:d}=o;return c+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:c}=o.style;return a==="none"||s==="0"||c==="hidden"||c==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(c=>{let d=c;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,c=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return c?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let c=this.focusableElements[this.focusTrapIndex];c&&c.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([l({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([l({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var $l=f.constructTagName("popover"),ae={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},$t={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},so={TONAL:"tonal",CONTRAST:"contrast"},D={PLACEMENT:ae.BOTTOM,TRIGGER:$t.CLICK,COLOR:so.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var zt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Na=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},Pt=new Na;var Hm=u`
|
2038
|
+
`}};xr.styles=[...v.styles,...al],n([l({type:String,reflect:!0})],xr.prototype,"color",2),n([l({type:String})],xr.prototype,"label",2);var Er=xr;Er.register(sl);var Tm=Er;var De=Math.min,ie=Math.max,ro=Math.round,oo=Math.floor,Se=i=>({x:i,y:i}),Am={left:"right",right:"left",bottom:"top",top:"bottom"},Sm={start:"end",end:"start"};function ai(i,t,e){return ie(i,De(t,e))}function Lt(i,t){return typeof i=="function"?i(t):i}function Ze(i){return i.split("-")[0]}function _t(i){return i.split("-")[1]}function Sa(i){return i==="x"?"y":"x"}function si(i){return i==="y"?"height":"width"}function pt(i){return["top","bottom"].includes(Ze(i))?"y":"x"}function ni(i){return Sa(pt(i))}function nl(i,t,e){e===void 0&&(e=!1);let r=_t(i),o=ni(i),a=si(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=to(s)),[s,to(s)]}function ll(i){let t=to(i);return[ii(i),t,ii(t)]}function ii(i){return i.replace(/start|end/g,t=>Sm[t])}function Im(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function cl(i,t,e,r){let o=_t(i),a=Im(Ze(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ii)))),a}function to(i){return i.replace(/left|right|bottom|top/g,t=>Am[t])}function Cm(i){return{top:0,right:0,bottom:0,left:0,...i}}function Ia(i){return typeof i!="number"?Cm(i):{top:i,right:i,bottom:i,left:i}}function Rt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function dl(i,t,e){let{reference:r,floating:o}=i,a=pt(t),s=ni(t),c=si(s),d=Ze(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[c]/2-o[c]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(_t(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var ml=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=dl(p,r,d),x=r,y={},T=0;for(let S=0;S<c.length;S++){let{name:k,fn:I}=c[S],{x:w,y:O,data:Y,reset:z}=await I({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=w!=null?w:h,b=O!=null?O:b,y={...y,[k]:{...y[k],...Y}},z&&T<=50&&(T++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=dl(p,x,d)),S=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function li(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:c,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=Lt(t,i),T=Ia(y),k=c[x?b==="floating"?"reference":"floating":b],I=Rt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(k)))==null||e?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),w=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Y=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=Rt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:O,strategy:d}):w);return{top:(I.top-z.top+T.top)/Y.y,bottom:(z.bottom-I.bottom+T.bottom)/Y.y,left:(I.left-z.left+T.left)/Y.x,right:(z.right-I.right+T.right)/Y.x}}var pl=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=Lt(i,t)||{};if(p==null)return{};let b=Ia(h),x={x:e,y:r},y=ni(o),T=si(y),S=await s.getDimensions(p),k=y==="y",I=k?"top":"left",w=k?"bottom":"right",O=k?"clientHeight":"clientWidth",Y=a.reference[T]+a.reference[y]-x[y]-a.floating[T],z=x[y]-a.reference[y],fe=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),xe=fe?fe[O]:0;(!xe||!await(s.isElement==null?void 0:s.isElement(fe)))&&(xe=c.floating[O]||a.floating[T]);let $e=Y/2-z/2,Ne=xe/2-S[T]/2-1,Ee=De(b[I],Ne),rt=De(b[w],Ne),Le=Ee,ot=xe-S[T]-rt,te=xe/2-S[T]/2+$e,Jt=ai(Le,te,ot),ze=!d.arrow&&_t(o)!=null&&te!==Jt&&a.reference[T]/2-(te<Le?Ee:rt)-S[T]/2<0,_e=ze?te<Le?te-Le:te-ot:0;return{[y]:x[y]+_e,data:{[y]:Jt,centerOffset:te-Jt-_e,...ze&&{alignmentOffset:_e}},reset:ze}}});var hl=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:S=!0,...k}=Lt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=Ze(o),w=pt(c),O=Ze(c)===c,Y=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(O||!S?[to(c)]:ll(c)),fe=T!=="none";!x&&fe&&z.push(...cl(c,S,T,Y));let xe=[c,...z],$e=await li(t,k),Ne=[],Ee=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Ne.push($e[I]),b){let te=nl(o,s,Y);Ne.push($e[te[0]],$e[te[1]])}if(Ee=[...Ee,{placement:o,overflows:Ne}],!Ne.every(te=>te<=0)){var rt,Le;let te=(((rt=a.flip)==null?void 0:rt.index)||0)+1,Jt=xe[te];if(Jt)return{data:{index:te,overflows:Ee},reset:{placement:Jt}};let ze=(Le=Ee.filter(_e=>_e.overflows[0]<=0).sort((_e,it)=>_e.overflows[1]-it.overflows[1])[0])==null?void 0:Le.placement;if(!ze)switch(y){case"bestFit":{var ot;let _e=(ot=Ee.filter(it=>{if(fe){let at=pt(it.placement);return at===w||at==="y"}return!0}).map(it=>[it.placement,it.overflows.filter(at=>at>0).reduce((at,cd)=>at+cd,0)]).sort((it,at)=>it[1]-at[1])[0])==null?void 0:ot[0];_e&&(ze=_e);break}case"initialPlacement":ze=c;break}if(o!==ze)return{reset:{placement:ze}}}return{}}}};async function km(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(e),c=_t(e),d=pt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=Lt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return c&&typeof T=="number"&&(y=c==="end"?T*-1:T),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var ul=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:c}=t,d=await km(t,i);return s===((e=c.offset)==null?void 0:e.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},fl=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:k=>{let{x:I,y:w}=k;return{x:I,y:w}}},...d}=Lt(i,t),p={x:e,y:r},h=await li(t,d),b=pt(Ze(o)),x=Sa(b),y=p[x],T=p[b];if(a){let k=x==="y"?"top":"left",I=x==="y"?"bottom":"right",w=y+h[k],O=y-h[I];y=ai(w,y,O)}if(s){let k=b==="y"?"top":"left",I=b==="y"?"bottom":"right",w=T+h[k],O=T-h[I];T=ai(w,T,O)}let S=c.fn({...t,[x]:y,[b]:T});return{...S,data:{x:S.x-e,y:S.y-r,enabled:{[x]:a,[b]:s}}}}}};var bl=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:c}=t,{apply:d=()=>{},...p}=Lt(i,t),h=await li(t,p),b=Ze(o),x=_t(o),y=pt(o)==="y",{width:T,height:S}=a.floating,k,I;b==="top"||b==="bottom"?(k=b,I=x===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(I=b,k=x==="end"?"top":"bottom");let w=S-h.top-h.bottom,O=T-h.left-h.right,Y=De(S-h[k],w),z=De(T-h[I],O),fe=!t.middlewareData.shift,xe=Y,$e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&($e=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(xe=w),fe&&!x){let Ee=ie(h.left,0),rt=ie(h.right,0),Le=ie(h.top,0),ot=ie(h.bottom,0);y?$e=T-2*(Ee!==0||rt!==0?Ee+rt:ie(h.left,h.right)):xe=S-2*(Le!==0||ot!==0?Le+ot:ie(h.top,h.bottom))}await d({...t,availableWidth:$e,availableHeight:xe});let Ne=await s.getDimensions(c.floating);return T!==Ne.width||S!==Ne.height?{reset:{rects:!0}}:{}}}};function ci(){return typeof window<"u"}function Ot(i){return vl(i)?(i.nodeName||"").toLowerCase():"#document"}function de(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(i){var t;return(t=(vl(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function vl(i){return ci()?i instanceof Node||i instanceof de(i).Node:!1}function be(i){return ci()?i instanceof Element||i instanceof de(i).Element:!1}function Ce(i){return ci()?i instanceof HTMLElement||i instanceof de(i).HTMLElement:!1}function gl(i){return!ci()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof de(i).ShadowRoot}function Ar(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=ge(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function yl(i){return["table","td","th"].includes(Ot(i))}function io(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function di(i){let t=mi(),e=be(i)?ge(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function xl(i){let t=Xe(i);for(;Ce(t)&&!Mt(t);){if(di(t))return t;if(io(t))return null;t=Xe(t)}return null}function mi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mt(i){return["html","body","#document"].includes(Ot(i))}function ge(i){return de(i).getComputedStyle(i)}function ao(i){return be(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Xe(i){if(Ot(i)==="html")return i;let t=i.assignedSlot||i.parentNode||gl(i)&&i.host||Ie(i);return gl(t)?t.host:t}function El(i){let t=Xe(i);return Mt(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ce(t)&&Ar(t)?t:El(t)}function Tr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=El(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=de(o);if(a){let c=pi(s);return t.concat(s,s.visualViewport||[],Ar(o)?o:[],c&&e?Tr(c):[])}return t.concat(o,Tr(o,[],e))}function pi(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Sl(i){let t=ge(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ce(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,c=ro(e)!==a||ro(r)!==s;return c&&(e=a,r=s),{width:e,height:r,$:c}}function ka(i){return be(i)?i:i.contextElement}function Sr(i){let t=ka(i);if(!Ce(t))return Se(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Sl(t),s=(a?ro(e.width):e.width)/r,c=(a?ro(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var wm=Se(0);function Il(i){let t=de(i);return!mi()||!t.visualViewport?wm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nm(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==de(i)?!1:t}function Dt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=ka(i),s=Se(1);t&&(r?be(r)&&(s=Sr(r)):s=Sr(i));let c=Nm(a,e,r)?Il(a):Se(0),d=(o.left+c.x)/s.x,p=(o.top+c.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=de(a),y=r&&be(r)?de(r):r,T=x,S=pi(T);for(;S&&r&&y!==T;){let k=Sr(S),I=S.getBoundingClientRect(),w=ge(S),O=I.left+(S.clientLeft+parseFloat(w.paddingLeft))*k.x,Y=I.top+(S.clientTop+parseFloat(w.paddingTop))*k.y;d*=k.x,p*=k.y,h*=k.x,b*=k.y,d+=O,p+=Y,T=de(S),S=pi(T)}}return Rt({width:h,height:b,x:d,y:p})}function wa(i,t){let e=ao(i).scrollLeft;return t?t.left+e:Dt(Ie(i)).left+e}function Cl(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:wa(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Lm(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ie(r),c=t?io(t.floating):!1;if(r===s||c&&a)return e;let d={scrollLeft:0,scrollTop:0},p=Se(1),h=Se(0),b=Ce(r);if((b||!b&&!a)&&((Ot(r)!=="body"||Ar(s))&&(d=ao(r)),Ce(r))){let y=Dt(r);p=Sr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?Cl(s,d,!0):Se(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function _m(i){return Array.from(i.getClientRects())}function Rm(i){let t=Ie(i),e=ao(i),r=i.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+wa(i),c=-e.scrollTop;return ge(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Om(i,t){let e=de(i),r=Ie(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){a=o.width,s=o.height;let p=mi();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:c,y:d}}function Mm(i,t){let e=Dt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ce(i)?Sr(i):Se(1),s=i.clientWidth*a.x,c=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:c,x:d,y:p}}function Tl(i,t,e){let r;if(t==="viewport")r=Om(i,e);else if(t==="document")r=Rm(Ie(i));else if(be(t))r=Mm(t,e);else{let o=Il(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rt(r)}function kl(i,t){let e=Xe(i);return e===t||!be(e)||Mt(e)?!1:ge(e).position==="fixed"||kl(e,t)}function Dm(i,t){let e=t.get(i);if(e)return e;let r=Tr(i,[],!1).filter(c=>be(c)&&Ot(c)!=="body"),o=null,a=ge(i).position==="fixed",s=a?Xe(i):i;for(;be(s)&&!Mt(s);){let c=ge(s),d=di(s);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ar(s)&&!d&&kl(i,s))?r=r.filter(h=>h!==s):o=c,s=Xe(s)}return t.set(i,r),r}function $m(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?io(t)?[]:Dm(t,this._c):[].concat(e),r],c=s[0],d=s.reduce((p,h)=>{let b=Tl(t,h,o);return p.top=ie(b.top,p.top),p.right=De(b.right,p.right),p.bottom=De(b.bottom,p.bottom),p.left=ie(b.left,p.left),p},Tl(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zm(i){let{width:t,height:e}=Sl(i);return{width:t,height:e}}function Pm(i,t,e){let r=Ce(t),o=Ie(t),a=e==="fixed",s=Dt(i,!0,a,t),c={scrollLeft:0,scrollTop:0},d=Se(0);if(r||!r&&!a)if((Ot(t)!=="body"||Ar(o))&&(c=ao(t)),r){let x=Dt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=wa(o));let p=o&&!r&&!a?Cl(o,c):Se(0),h=s.left+c.scrollLeft-d.x-p.x,b=s.top+c.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function Ca(i){return ge(i).position==="static"}function Al(i,t){if(!Ce(i)||ge(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ie(i)===e&&(e=e.ownerDocument.body),e}function wl(i,t){let e=de(i);if(io(i))return e;if(!Ce(i)){let o=Xe(i);for(;o&&!Mt(o);){if(be(o)&&!Ca(o))return o;o=Xe(o)}return e}let r=Al(i,t);for(;r&&yl(r)&&Ca(r);)r=Al(r,t);return r&&Mt(r)&&Ca(r)&&!di(r)?e:r||xl(i)||e}var Um=async function(i){let t=this.getOffsetParent||wl,e=this.getDimensions,r=await e(i.floating);return{reference:Pm(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vm(i){return ge(i).direction==="rtl"}var Fm={convertOffsetParentRelativeRectToViewportRelativeRect:Lm,getDocumentElement:Ie,getClippingRect:$m,getOffsetParent:wl,getElementRects:Um,getClientRects:_m,getDimensions:zm,getScale:Sr,isElement:be,isRTL:Vm};function Bm(i,t){let e=null,r,o=Ie(i);function a(){var c;clearTimeout(r),(c=e)==null||c.disconnect(),e=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(c||t(),!b||!x)return;let y=oo(h),T=oo(o.clientWidth-(p+b)),S=oo(o.clientHeight-(h+x)),k=oo(p),w={rootMargin:-y+"px "+-T+"px "+-S+"px "+-k+"px",threshold:ie(0,De(1,d))||1},O=!0;function Y(z){let fe=z[0].intersectionRatio;if(fe!==d){if(!O)return s();fe?s(!1,fe):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{e=new IntersectionObserver(Y,{...w,root:o.ownerDocument})}catch{e=new IntersectionObserver(Y,w)}e.observe(i)}return s(!0),a}function Nl(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=ka(i),h=o||a?[...p?Tr(p):[],...Tr(t)]:[];h.forEach(I=>{o&&I.addEventListener("scroll",e,{passive:!0}),a&&I.addEventListener("resize",e)});let b=p&&c?Bm(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(I=>{let[w]=I;w&&w.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let T,S=d?Dt(i):null;d&&k();function k(){let I=Dt(i);S&&(I.x!==S.x||I.y!==S.y||I.width!==S.width||I.height!==S.height)&&e(),S=I,T=requestAnimationFrame(k)}return e(),()=>{var I;h.forEach(w=>{o&&w.removeEventListener("scroll",e),a&&w.removeEventListener("resize",e)}),b==null||b(),(I=y)==null||I.disconnect(),y=null,d&&cancelAnimationFrame(T)}}var Ll=ul;var _l=fl,Rl=hl,Ol=bl;var Ml=pl;var Dl=(i,t,e)=>{let r=new Map,o={platform:Fm,...e},a={...o.platform,_c:r};return ml(i,t,{...o,platform:a})};var hi=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:c,offsetHeight:d}=o;return c+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:c}=o.style;return a==="none"||s==="0"||c==="hidden"||c==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(c=>{let d=c;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,c=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return c?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let c=this.focusableElements[this.focusTrapIndex];c&&c.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([l({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([l({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var $l=f.constructTagName("popover"),ae={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},$t={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},so={TONAL:"tonal",CONTRAST:"contrast"},D={PLACEMENT:ae.BOTTOM,TRIGGER:$t.CLICK,COLOR:so.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var zt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Na=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},Pt=new Na;var Hm=u`
|
2039
2039
|
:host {
|
2040
2040
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
2041
2041
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -2701,7 +2701,7 @@
|
|
2701
2701
|
opacity: 0;
|
2702
2702
|
pointer-events: none;
|
2703
2703
|
}
|
2704
|
-
`,..._(!0)],ql=ep;oe.register(tl);var
|
2704
|
+
`,..._(!0)],ql=ep;oe.register(tl);var ve=oe;var Kl=f.constructTagName("input"),vi={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},za={OFF:"off",ON:"on"},Pa={TEXT:"text",SEARCH:"search"},Zl={MAX_LENGTH:10,VALIDATION:K.ERROR},Qe={VALIDATION:K.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:X.TERTIARY,CLEAR_BUTTON_SIZE:ct[20],PREFIX_TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:C.SPAN,AUTO_COMPLETE:za.OFF,INPUT_TYPE:Pa.TEXT};var H=class extends ce(V(ve)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=vi.OFF;this.autocomplete=za.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
|
2705
2705
|
<mdc-icon
|
2706
2706
|
class="leading-icon"
|
2707
2707
|
part="leading-icon"
|
@@ -2766,7 +2766,7 @@
|
|
2766
2766
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2767
2767
|
</div>
|
2768
2768
|
${this.helpText?this.renderHelperText():g}
|
2769
|
-
`}};H.styles=[...
|
2769
|
+
`}};H.styles=[...ve.styles,...ql],n([l({type:String})],H.prototype,"placeholder",2),n([l({type:Boolean})],H.prototype,"readonly",2),n([l({type:String,attribute:"prefix-text"})],H.prototype,"prefixText",2),n([l({type:String,attribute:"leading-icon"})],H.prototype,"leadingIcon",2),n([l({type:Boolean,attribute:"trailing-button"})],H.prototype,"trailingButton",2),n([l({type:Number})],H.prototype,"maxlength",2),n([l({type:Number})],H.prototype,"minlength",2),n([l({type:String})],H.prototype,"autocapitalize",2),n([l({type:String})],H.prototype,"autocomplete",2),n([l({type:Boolean})],H.prototype,"autofocus",2),n([l({type:String})],H.prototype,"dirname",2),n([l({type:String})],H.prototype,"pattern",2),n([l({type:String})],H.prototype,"list",2),n([l({type:Number})],H.prototype,"size",2),n([l({type:String,attribute:"clear-aria-label"})],H.prototype,"clearAriaLabel",2);var Ir=H;Ir.register(Kl);var tp=Ir;var rp=u`
|
2770
2770
|
:host {
|
2771
2771
|
height: 1.5rem;
|
2772
2772
|
gap: 0.25rem;
|
@@ -3203,7 +3203,7 @@
|
|
3203
3203
|
border: var(--mdc-progressbar-border);
|
3204
3204
|
}
|
3205
3205
|
}
|
3206
|
-
`],cc=Ep;var dc=f.constructTagName("progressbar"),Ii={DEFAULT:"default",INLINE:"inline"},mc={VARIANT:Ii.DEFAULT,VALIDATION:K.DEFAULT};var Yt=class extends V(
|
3206
|
+
`],cc=Ep;var dc=f.constructTagName("progressbar"),Ii={DEFAULT:"default",INLINE:"inline"},mc={VARIANT:Ii.DEFAULT,VALIDATION:K.DEFAULT};var Yt=class extends V(ve){constructor(){super(...arguments);this.variant=mc.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return m`
|
3207
3207
|
<div
|
3208
3208
|
part="progress-container ${r?"gap":""}"
|
3209
3209
|
role="progressbar"
|
@@ -3224,7 +3224,7 @@
|
|
3224
3224
|
${this.renderProgressbar()}
|
3225
3225
|
${this.renderHelperText()}
|
3226
3226
|
`}
|
3227
|
-
`}};Yt.styles=[...
|
3227
|
+
`}};Yt.styles=[...ve.styles,...cc],n([l({type:String,reflect:!0})],Yt.prototype,"variant",2),n([l({type:String,reflect:!0})],Yt.prototype,"value",2),n([l({type:Boolean,attribute:"error"})],Yt.prototype,"error",2);var fo=Yt;fo.register(dc);var Tp=fo;var Ap=u`
|
3228
3228
|
:host {
|
3229
3229
|
--mdc-spinner-size: 3rem;
|
3230
3230
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -4078,7 +4078,7 @@
|
|
4078
4078
|
<slot name="chip"></slot>
|
4079
4079
|
</div>
|
4080
4080
|
<div part="indicator"></div>
|
4081
|
-
`}};gt.styles=[...se.styles,..._c],n([l({type:Boolean,reflect:!0})],gt.prototype,"active",2),n([l({type:String,reflect:!0})],gt.prototype,"text",2),n([l({type:String,reflect:!0})],gt.prototype,"variant",2),n([l({type:String,reflect:!0,attribute:"tab-id"})],gt.prototype,"tabId",2);var
|
4081
|
+
`}};gt.styles=[...se.styles,..._c],n([l({type:Boolean,reflect:!0})],gt.prototype,"active",2),n([l({type:String,reflect:!0})],gt.prototype,"text",2),n([l({type:String,reflect:!0})],gt.prototype,"variant",2),n([l({type:String,reflect:!0,attribute:"tab-id"})],gt.prototype,"tabId",2);var ye=gt;ye.register(Rc);var Hp=ye;var Gp=[Do,u`
|
4082
4082
|
:host {
|
4083
4083
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
4084
4084
|
--mdc-tablist-gap: 0.5rem;
|
@@ -4108,7 +4108,7 @@
|
|
4108
4108
|
:host mdc-button[prefix-icon="arrow-right-regular"] {
|
4109
4109
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
4110
4110
|
}
|
4111
|
-
`],Oc=[...Gp];var Mc=f.constructTagName("tablist"),vo={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},_r={FORWARD:"forward",BACKWARD:"backward"};var _i=i=>i[0],cs=i=>i[i.length-1],Dc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},$c=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},zc=(i,t)=>i.find(e=>e.tabId===t),ds=i=>i.find(t=>t.active);var we=class extends v{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof
|
4111
|
+
`],Oc=[...Gp];var Mc=f.constructTagName("tablist"),vo={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},_r={FORWARD:"forward",BACKWARD:"backward"};var _i=i=>i[0],cs=i=>i[i.length-1],Dc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},$c=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},zc=(i,t)=>i.find(e=>e.tabId===t),ds=i=>i.find(t=>t.active);var we=class extends v{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof ye||!(e.target instanceof ye))return;let r=ds(this.tabs||[]);r instanceof ye&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof ye&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let r=e.target;r instanceof ye&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{e instanceof ye&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let r=e.target;if(!(r instanceof ye)||!this.tabs)return;let o=Dc(this.tabs,r),a=$c(this.tabs,r),s=_i(this.tabs),c=cs(this.tabs);switch(e.code){case vo.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case vo.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case vo.HOME:await this.focusTab(s);break;case vo.END:await this.focusTab(c);break;default:}};this.shouldShowArrowButton=e=>e===_r.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=ds(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())};this.handleArrowButtonVisibility=async()=>{var b,x,y;if(!this.tabs||!this.tabsContainer)return;let e=!1;((b=this.shadowRoot)==null?void 0:b.activeElement)instanceof kt&&(e=!0);let r=_i(this.tabs),o=cs(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,c=o.getBoundingClientRect().right,d=(y=this.tabsContainer)==null?void 0:y.getBoundingClientRect().right,p=r.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,c>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}p>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let r=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===_r.FORWARD?r:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(c=>c.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=_i(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=zc(this.tabs,this.activeTabId);if(!(r instanceof ye))return;this.setActiveTab(r),e.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}render(){let e=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",o=a=>m` ${this.shouldShowArrowButton(a)?m`<mdc-button
|
4112
4112
|
variant="tertiary"
|
4113
4113
|
prefix-icon="arrow-${a===_r.FORWARD?e:r}-regular"
|
4114
4114
|
aria-label="Scroll tabs ${a===_r.FORWARD?e:r}"
|
@@ -4242,7 +4242,7 @@
|
|
4242
4242
|
pointer-events: none;
|
4243
4243
|
}
|
4244
4244
|
|
4245
|
-
`,..._(!0)],Pc=Wp;var Uc=f.constructTagName("textarea"),ps={HARD:"hard",SOFT:"soft"},Vc={OFF:"off",ON:"on"},Ri={CHARACTER_COUNTER_TYPE:E.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ps.SOFT};var Q=class extends ce(V(
|
4245
|
+
`,..._(!0)],Pc=Wp;var Uc=f.constructTagName("textarea"),ps={HARD:"hard",SOFT:"soft"},Vc={OFF:"off",ON:"on"},Ri={CHARACTER_COUNTER_TYPE:E.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ps.SOFT};var Q=class extends ce(V(ve)){constructor(){super(...arguments);this.readonly=!1;this.rows=Ri.ROWS;this.cols=Ri.COLS;this.wrap=ps.SOFT;this.autocapitalize=vi.OFF;this.autocomplete=Vc.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===K.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
|
4246
4246
|
<mdc-text
|
4247
4247
|
part="character-counter"
|
4248
4248
|
tagname="span"
|
@@ -4284,7 +4284,7 @@
|
|
4284
4284
|
></textarea>
|
4285
4285
|
</div>
|
4286
4286
|
${this.renderTextareaFooter()}
|
4287
|
-
`}};Q.styles=[...
|
4287
|
+
`}};Q.styles=[...ve.styles,...Pc],n([l({type:String})],Q.prototype,"placeholder",2),n([l({type:Boolean})],Q.prototype,"readonly",2),n([l({type:Number})],Q.prototype,"rows",2),n([l({type:Number})],Q.prototype,"cols",2),n([l({type:String})],Q.prototype,"wrap",2),n([l({type:String})],Q.prototype,"autocapitalize",2),n([l({type:String})],Q.prototype,"autocomplete",2),n([l({type:Boolean})],Q.prototype,"autofocus",2),n([l({type:String})],Q.prototype,"dirname",2),n([l({type:Number})],Q.prototype,"maxlength",2),n([l({type:Number})],Q.prototype,"minlength",2),n([l({type:Number,attribute:"max-character-limit"})],Q.prototype,"maxCharacterLimit",2),n([Be("textarea")],Q.prototype,"inputElement",2);var hs=Q;hs.register(Uc);var qp=hs;var Oi=f.constructTagName("themeprovider"),us={THEMECLASS:"mds-theme-stable-darkWebex"};var Mi=class{constructor(t){this.themeclass=t}};Mi.context=Oi;var Di=Mi;var Kp=u`
|
4288
4288
|
:host {
|
4289
4289
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
4290
4290
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -4395,7 +4395,7 @@
|
|
4395
4395
|
:host([disabled]) .mdc-label-text, :host([disabled]) .mdc-help-text {
|
4396
4396
|
color: var(--mdc-toggle-label-color-disabled);
|
4397
4397
|
}
|
4398
|
-
`,..._(!0)],Hc=Xp;var Kt=class extends ce(V(
|
4398
|
+
`,..._(!0)],Hc=Xp;var Kt=class extends ce(V(ve)){constructor(){super(...arguments);this.checked=!1;this.size=bs.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(yo).includes(e)?e:bs.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
|
4399
4399
|
<mdc-statictoggle
|
4400
4400
|
?checked="${this.checked}"
|
4401
4401
|
?disabled="${this.disabled}"
|
@@ -4424,7 +4424,7 @@
|
|
4424
4424
|
</mdc-statictoggle>
|
4425
4425
|
${this.renderLabel()}
|
4426
4426
|
${this.renderHelperText()}
|
4427
|
-
`}};Kt.styles=[...
|
4427
|
+
`}};Kt.styles=[...ve.styles,...Hc],n([l({type:Boolean,reflect:!0})],Kt.prototype,"checked",2),n([l({type:String,reflect:!0})],Kt.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Kt.prototype,"autofocus",2);var gs=Kt;gs.register(Bc);var jp=gs;var Gc=f.constructTagName("toggletip"),Zt={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:ae.TOP,CLICK:$t.CLICK,SHOW_ARROW:!0};var Qp=u`
|
4428
4428
|
:host {
|
4429
4429
|
--mdc-toggletip-max-width: 400px;
|
4430
4430
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|