@momentum-design/components 0.139.1 → 0.139.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- "use strict";(()=>{var HT=Object.create;var sh=Object.defineProperty;var Ju=Object.getOwnPropertyDescriptor;var UT=Object.getOwnPropertyNames;var GT=Object.getPrototypeOf,KT=Object.prototype.hasOwnProperty;var WT=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var YT=(n,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of UT(o))!KT.call(n,i)&&i!==t&&sh(n,i,{get:()=>o[i],enumerable:!(e=Ju(o,i))||e.enumerable});return n};var jT=(n,o,t)=>(t=n!=null?HT(GT(n)):{},YT(o||!n||!n.__esModule?sh(t,"default",{value:n,enumerable:!0}):t,n));var h=(n,o,t,e)=>{for(var i=e>1?void 0:e?Ju(o,t):o,a=n.length-1,d;a>=0;a--)(d=n[a])&&(i=(e?d(o,t,i):d(i))||i);return e&&i&&sh(o,t,i),i};var dv=WT((gn,id)=>{typeof navigator<"u"&&function(n,o){typeof gn=="object"&&typeof id<"u"?id.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(gn,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},a=function(){return t},d=function(s){o=s},f=function(){return o};function v(r){return document.createElement(r)}function A(r,s){var l,c=r.length,m;for(l=0;l<c;l+=1){m=r[l].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function R(r,s){return Object.getOwnPropertyDescriptor(r,s)}function H(r){function s(){}return s.prototype=r,s}var J=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(l){this.audios.push(l)},pause:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].pause()},resume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].resume()},setRate:function(l){var c,m=this.audios.length;for(c=0;c<m;c+=1)this.audios[c].setRate(l)},createAudio:function(l){return this.audioFactory?this.audioFactory(l):window.Howl?new window.Howl({src:[l]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(l){this.audioFactory=l},setVolume:function(l){this._volume=l,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),q=function(){function r(l,c){var m=0,p=[],b;switch(l){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<c;m+=1)p.push(b);return p}function s(l,c){return l==="float32"?new Float32Array(c):l==="int16"?new Int16Array(c):l==="uint8c"?new Uint8ClampedArray(c):r(l,c)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function Q(r){return Array.apply(null,{length:r})}function ot(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ot=function(l){return typeof l}:ot=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},ot(r)}var st=!0,ht=null,bt=null,yt="",It=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Gt=Math.pow,Pt=Math.sqrt,ne=Math.floor,Ge=Math.max,jt=Math.min,Ee={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,l=r.length;for(s=0;s<l;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=ot(r);if(s==="object"&&r.length){var l=Q(r.length),c,m=r.length;for(c=0;c<m;c+=1)l[c]=Math.abs(r[c]);return l}return Math.abs(r)};var xe=150,kt=Math.PI/180,se=.5519;function Ke(r){Rt=!!r}function Qe(r){return Rt?Math.round(r):r}function Je(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function Ar(r,s,l,c){this.type=r,this.currentTime=s,this.totalTime=l,this.direction=c<0?-1:1}function ll(r,s){this.type=r,this.direction=s<0?-1:1}function au(r,s,l,c){this.type=r,this.currentLoop=l,this.totalLoops=s,this.direction=c<0?-1:1}function nu(r,s,l){this.type=r,this.firstFrame=s,this.totalFrames=l}function lu(r,s){this.type=r,this.target=s}function HE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function UE(r){this.type="configError",this.nativeError=r}function rC(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,yt+"__lottie_element_"+r}}();function Wc(r,s,l){var c,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=l*(1-s),k=l*(1-I*s),M=l*(1-(1-I)*s),b%6){case 0:c=l,m=M,p=y;break;case 1:c=k,m=l,p=y;break;case 2:c=y,m=l,p=M;break;case 3:c=y,m=k,p=l;break;case 4:c=M,m=y,p=l;break;case 5:c=l,m=y,p=k;break;default:break}return[c,m,p]}function Yc(r,s,l){var c=Math.max(r,s,l),m=Math.min(r,s,l),p=c-m,b,I=c===0?0:p/c,y=c/255;switch(c){case m:b=0;break;case r:b=s-l+p*(s<l?6:0),b/=6*p;break;case s:b=l-r+p*2,b/=6*p;break;case l:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function du(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[1]+=s,l[1]>1?l[1]=1:l[1]<=0&&(l[1]=0),Wc(l[0],l[1],l[2])}function cu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[2]+=s,l[2]>1?l[2]=1:l[2]<0&&(l[2]=0),Wc(l[0],l[1],l[2])}function hu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[0]+=s/360,l[0]>1?l[0]-=1:l[0]<0&&(l[0]+=1),Wc(l[0],l[1],l[2])}var iC=function(){var r=[],s,l;for(s=0;s<256;s+=1)l=s.toString(16),r[s]=l.length===1?"0"+l:l;return function(c,m,p){return c<0&&(c=0),m<0&&(m=0),p<0&&(p=0),"#"+r[c]+r[m]+r[p]}}(),GE=function(s){st=!!s},KE=function(){return st},WE=function(s){ht=s},dl=function(){return ht},oC=function(s){bt=s},pu=function(){return bt},cl=function(s){xe=s},Ra=function(){return xe},YE=function(s){yt=s},sC=function(){return yt};function Ct(r){return document.createElementNS(n,r)}function hl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hl=function(l){return typeof l}:hl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},hl(r)}var Da=function(){var r=1,s=[],l,c,m={onmessage:function(){},postMessage:function(O){l({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(x){if(window.Worker&&window.Blob&&a()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return l=x,m}function I(){c||(c=b(function(O){function F(){function G(rt,_){var P,g,E=rt.length,j,B,ct,gt;for(g=0;g<E;g+=1)if(P=rt[g],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var St=P.masksProperties;for(B=St.length,j=0;j<B;j+=1)if(St[j].pt.k.i)N(St[j].pt.k);else for(gt=St[j].pt.k.length,ct=0;ct<gt;ct+=1)St[j].pt.k[ct].s&&N(St[j].pt.k[ct].s[0]),St[j].pt.k[ct].e&&N(St[j].pt.k[ct].e[0])}P.ty===0?(P.layers=T(P.refId,_),G(P.layers,_)):P.ty===4?C(P.shapes):P.ty===5&&_t(P)}}function L(rt,_){if(rt){var P=0,g=rt.length;for(P=0;P<g;P+=1)rt[P].t===1&&(rt[P].data.layers=T(rt[P].data.refId,_),G(rt[P].data.layers,_))}}function w(rt,_){for(var P=0,g=_.length;P<g;){if(_[P].id===rt)return _[P];P+=1}return null}function T(rt,_){var P=w(rt,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function C(rt){var _,P=rt.length,g,E;for(_=P-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,g=0;g<E;g+=1)rt[_].ks.k[g].s&&N(rt[_].ks.k[g].s[0]),rt[_].ks.k[g].e&&N(rt[_].ks.k[g].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,P=rt.i.length;for(_=0;_<P;_+=1)rt.i[_][0]+=rt.v[_][0],rt.i[_][1]+=rt.v[_][1],rt.o[_][0]+=rt.v[_][0],rt.o[_][1]+=rt.v[_][1]}function $(rt,_){var P=_?_.split("."):[100,100,100];return rt[0]>P[0]?!0:P[0]>rt[0]?!1:rt[1]>P[1]?!0:P[1]>rt[1]?!1:rt[2]>P[2]?!0:P[2]>rt[2]?!1:null}var W=function(){var rt=[4,4,14];function _(g){var E=g.t.d;g.t.d={k:[{s:E,t:0}]}}function P(g){var E,j=g.length;for(E=0;E<j;E+=1)g[E].ty===5&&_(g[E])}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,j=g.assets.length;for(E=0;E<j;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),X=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var P,g=_.chars.length;for(P=0;P<g;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function _(g){var E=g.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(g){var E,j=g.length;for(E=0;E<j;E+=1)g[E].ty===5&&_(g[E])}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,j=g.assets.length;for(E=0;E<j;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),At=function(){var rt=[4,1,9];function _(g){var E,j=g.length,B,ct;for(E=0;E<j;E+=1)if(g[E].ty==="gr")_(g[E].it);else if(g[E].ty==="fl"||g[E].ty==="st")if(g[E].c.k&&g[E].c.k[0].i)for(ct=g[E].c.k.length,B=0;B<ct;B+=1)g[E].c.k[B].s&&(g[E].c.k[B].s[0]/=255,g[E].c.k[B].s[1]/=255,g[E].c.k[B].s[2]/=255,g[E].c.k[B].s[3]/=255),g[E].c.k[B].e&&(g[E].c.k[B].e[0]/=255,g[E].c.k[B].e[1]/=255,g[E].c.k[B].e[2]/=255,g[E].c.k[B].e[3]/=255);else g[E].c.k[0]/=255,g[E].c.k[1]/=255,g[E].c.k[2]/=255,g[E].c.k[3]/=255}function P(g){var E,j=g.length;for(E=0;E<j;E+=1)g[E].ty===4&&_(g[E].shapes)}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,j=g.assets.length;for(E=0;E<j;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(g){var E,j=g.length,B,ct;for(E=j-1;E>=0;E-=1)if(g[E].ty==="sh")if(g[E].ks.k.i)g[E].ks.k.c=g[E].closed;else for(ct=g[E].ks.k.length,B=0;B<ct;B+=1)g[E].ks.k[B].s&&(g[E].ks.k[B].s[0].c=g[E].closed),g[E].ks.k[B].e&&(g[E].ks.k[B].e[0].c=g[E].closed);else g[E].ty==="gr"&&_(g[E].it)}function P(g){var E,j,B=g.length,ct,gt,St,$t;for(j=0;j<B;j+=1){if(E=g[j],E.hasMask){var Vt=E.masksProperties;for(gt=Vt.length,ct=0;ct<gt;ct+=1)if(Vt[ct].pt.k.i)Vt[ct].pt.k.c=Vt[ct].cl;else for($t=Vt[ct].pt.k.length,St=0;St<$t;St+=1)Vt[ct].pt.k[St].s&&(Vt[ct].pt.k[St].s[0].c=Vt[ct].cl),Vt[ct].pt.k[St].e&&(Vt[ct].pt.k[St].e[0].c=Vt[ct].cl)}E.ty===4&&_(E.shapes)}}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,j=g.assets.length;for(E=0;E<j;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}();function nt(rt){rt.__complete||(At(rt),W(rt),X(rt),it(rt),ft(rt),G(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function _t(rt){rt.t.a.length===0&&"m"in rt.t.p}var mt={};return mt.completeData=nt,mt.checkColors=At,mt.checkChars=X,mt.checkPathProperties=it,mt.checkShapes=ft,mt.completeLayers=G,mt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function G(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&hl(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,C,N){var $,W=new XMLHttpRequest;try{W.responseType="json"}catch{}W.onreadystatechange=function(){if(W.readyState===4)if(W.status===200)$=G(W),C($);else try{$=G(W),C($)}catch(X){N&&N(X)}};try{W.open(["G","E","T"].join(""),w,!0)}catch{W.open(["G","E","T"].join(""),T+"/"+w,!0)}W.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.dataManager.completeData(G),p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var D=O.data.animation;p.dataManager.completeData(D),p.postMessage({id:O.data.id,payload:D,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),c.onmessage=function(x){var O=x.data,F=O.id,D=s[F];s[F]=null,O.status==="success"?D.onComplete(O.payload):D.onError&&D.onError()})}function y(x,O){r+=1;var F="processId_"+r;return s[F]={onComplete:x,onError:O},F}function k(x,O,F){I();var D=y(O,F);c.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function M(x,O,F){I();var D=y(O,F);c.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function Y(x,O,F){I();var D=y(O,F);c.postMessage({type:"complete",animation:x,id:D})}return{loadAnimation:k,loadData:M,completeAnimation:Y}}(),jE=function(){var r=function(){var L=v("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function c(L,w,T){var C="";if(L.e)C=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=w+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var w=0,T=setInterval((function(){var C=L.getBBox();(C.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(L){var w=c(L,this.assetsPath,this.path),T=Ct("image");It?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=c(L,this.assetsPath,this.path),T=v("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var C={img:T,assetData:L};return C}function I(L){var w={assetData:L},T=c(L,this.assetsPath,this.path);return Da.loadData(T,(function(C){w.img=C,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function y(L,w){this.imagesLoadedCb=w;var T,C=L.length;for(T=0;T<C;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function Y(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function D(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function G(){this._imageLoaded=s.bind(this),this._footageLoaded=l.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return G.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:x,getAsset:Y,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:l,setCacheType:D},G}();function mu(){}mu.prototype={triggerEvent:function(s,l){if(this._cbs[s])for(var c=this._cbs[s],m=0;m<c.length;m+=1)c[m](l)},addEventListener:function(s,l){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(l),(function(){this.removeEventListener(s,l)}).bind(this)},removeEventListener:function(s,l){if(!l)this._cbs[s]=null;else if(this._cbs[s]){for(var c=0,m=this._cbs[s].length;c<m;)this._cbs[s][c]===l&&(this._cbs[s].splice(c,1),c-=1,m-=1),c+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var qE=function(){function r(s){for(var l=s.split(`\r
2
- `),c={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(c[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return c}return function(s){for(var l=[],c=0;c<s.length;c+=1){var m=s[c],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[c].cm)}catch{try{p.payload=r(s[c].cm)}catch{p.payload={name:s[c].cm}}}l.push(p)}return l}}(),XE=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var c=0,m=this.compositions.length;c<m;){if(this.compositions[c].data&&this.compositions[c].data.nm===l)return this.compositions[c].prepareFrame&&this.compositions[c].data.xt&&this.compositions[c].prepareFrame(this.currentFrame),this.compositions[c].compInterface;c+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Pa={},ZE=function(s,l){Pa[s]=l};function QE(r){return Pa[r]}function JE(){if(Pa.canvas)return"canvas";for(var r in Pa)if(Pa[r])return r;return""}function Fa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fa=function(l){return typeof l}:Fa=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Fa(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=KE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=XE(),this.imagePreloader=new jE,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ar("drawnFrame",0,0,0),this.expressionsPlugin=dl()};A([mu],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=QE(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Da.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Da.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Fa(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},c=r.attributes;l.path=c.getNamedItem("data-animation-path")?c.getNamedItem("data-animation-path").value:c.getNamedItem("data-bm-path")?c.getNamedItem("data-bm-path").value:c.getNamedItem("bm-path")?c.getNamedItem("bm-path").value:"",l.animType=c.getNamedItem("data-anim-type")?c.getNamedItem("data-anim-type").value:c.getNamedItem("data-bm-type")?c.getNamedItem("data-bm-type").value:c.getNamedItem("bm-type")?c.getNamedItem("bm-type").value:c.getNamedItem("data-bm-renderer")?c.getNamedItem("data-bm-renderer").value:c.getNamedItem("bm-renderer")?c.getNamedItem("bm-renderer").value:JE()||"canvas";var m=c.getNamedItem("data-anim-loop")?c.getNamedItem("data-anim-loop").value:c.getNamedItem("data-bm-loop")?c.getNamedItem("data-bm-loop").value:c.getNamedItem("bm-loop")?c.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=c.getNamedItem("data-anim-autoplay")?c.getNamedItem("data-anim-autoplay").value:c.getNamedItem("data-bm-autoplay")?c.getNamedItem("data-bm-autoplay").value:c.getNamedItem("bm-autoplay")?c.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=c.getNamedItem("data-name")?c.getNamedItem("data-name").value:c.getNamedItem("data-bm-name")?c.getNamedItem("data-bm-name").value:c.getNamedItem("bm-name")?c.getNamedItem("bm-name").value:"";var b=c.getNamedItem("data-anim-prerender")?c.getNamedItem("data-anim-prerender").value:c.getNamedItem("data-bm-prerender")?c.getNamedItem("data-bm-prerender").value:c.getNamedItem("bm-prerender")?c.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,c=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<c;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(c=r.assets.length,l=0;l<c;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,Da.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=dl();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Da.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=qE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=dl();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,c=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,c)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(c,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Fa(r[0])==="object"){var l,c=r.length;for(l=0;l<c;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var c=this.renderer.getElementByPath(r);c.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Ar(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new au(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new ll(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new nu(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new lu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ar(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new au(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new ll(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new nu(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new lu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new HE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new UE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var ue=function(){var r={},s=[],l=0,c=0,m=0,p=!0,b=!1;function I(_){for(var P=0,g=_.target;P<c;)s[P].animation===g&&(s.splice(P,1),P-=1,c-=1,g.isPaused||Y()),P+=1}function y(_,P){if(!_)return null;for(var g=0;g<c;){if(s[g].elem===_&&s[g].elem!==null)return s[g].animation;g+=1}var E=new vt;return x(E,_),E.setData(_,P),E}function k(){var _,P=s.length,g=[];for(_=0;_<P;_+=1)g.push(s[_].animation);return g}function M(){m+=1,At()}function Y(){m-=1}function x(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",Y),s.push({elem:P,animation:_}),c+=1}function O(_){var P=new vt;return x(P,null),P.setParams(_),P}function F(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setSpeed(_,P)}function D(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setDirection(_,P)}function G(_){var P;for(P=0;P<c;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,g;for(g=0;g<c;g+=1)s[g].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<c;P+=1)s[P].animation.pause(_)}function C(_,P,g){var E;for(E=0;E<c;E+=1)s[E].animation.goToAndStop(_,P,g)}function N(_){var P;for(P=0;P<c;P+=1)s[P].animation.stop(_)}function $(_){var P;for(P=0;P<c;P+=1)s[P].animation.togglePause(_)}function W(_){var P;for(P=c-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,g){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,B=E.length;for(j=0;j<B;j+=1)g&&E[j].setAttribute("data-bm-type",g),y(E[j],_);if(P&&B===0){g||(g="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=v("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",g),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<c;_+=1)s[_].animation.resize()}function At(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,At()}function _t(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<c;P+=1)s[P].animation.mute(_)}function rt(_){var P;for(P=0;P<c;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=G,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=X,r.resize=it,r.goToAndStop=C,r.destroy=W,r.freeze=ft,r.unfreeze=nt,r.setVolume=_t,r.mute=mt,r.unmute=rt,r.getRegisteredAnimations=k,r}(),$a=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,$){var W=$||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[W])return s[W];var X=new L([w,T,C,N]);return s[W]=X,X}var c=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function Y(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,C){return((M(T,C)*w+Y(T,C))*w+x(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*Y(T,C)*w+x(T)}function D(w,T,C,N,$){var W,X,it=0;do X=T+(C-T)/2,W=O(X,N,$)-w,W>0?C=X:T=X;while(Math.abs(W)>p&&++it<b);return X}function G(w,T,C,N){for(var $=0;$<c;++$){var W=F(T,C,N);if(W===0)return T;var X=O(T,C,N)-w;T-=X/W}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],$=this._p[2],W=this._p[3];return this._precomputed||this._precompute(),C===N&&$===W?T:T===0?0:T===1?1:O(this._getTForX(T),N,W)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==C||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],$=this._mSampleValues,W=0,X=1,it=I-1;X!==it&&$[X]<=T;++X)W+=y;--X;var At=(T-$[X])/($[X+1]-$[X]),ft=W+At*y,nt=F(ft,C,N);return nt>=m?G(T,ft,C,N):nt===0?ft:D(T,W,W+y,C,N)}},r}(),uu=function(){function r(s){return s.concat(Q(s.length))}return{double:r}}(),pl=function(){return function(r,s,l){var c=0,m=r,p=Q(m),b={newElement:I,release:y};function I(){var k;return c?(c-=1,k=p[c]):k=s(),k}function y(k){c===m&&(p=uu.double(p),m*=2),l&&l(k),p[c]=k,c+=1}return b}}(),fu=function(){function r(){return{addedLength:0,percents:q("float32",Ra()),lengths:q("float32",Ra())}}return pl(8,r)}(),vu=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var c,m=l.lengths.length;for(c=0;c<m;c+=1)fu.release(l.lengths[c]);l.lengths.length=0}return pl(8,r,s)}();function tT(){var r=Math;function s(x,O,F,D,G,L){var w=x*D+O*G+F*L-G*D-L*x-F*O;return w>-.001&&w<.001}function l(x,O,F,D,G,L,w,T,C){if(F===0&&L===0&&C===0)return s(x,O,D,G,w,T);var N=r.sqrt(r.pow(D-x,2)+r.pow(G-O,2)+r.pow(L-F,2)),$=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(C-F,2)),W=r.sqrt(r.pow(w-D,2)+r.pow(T-G,2)+r.pow(C-L,2)),X;return N>$?N>W?X=N-$-W:X=W-$-N:W>$?X=W-$-N:X=$-N-W,X>-1e-4&&X<1e-4}var c=function(){return function(x,O,F,D){var G=Ra(),L,w,T,C,N,$=0,W,X=[],it=[],At=fu.newElement();for(T=F.length,L=0;L<G;L+=1){for(N=L/(G-1),W=0,w=0;w<T;w+=1)C=Gt(1-N,3)*x[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,it[w]!==null&&(W+=Gt(X[w]-it[w],2)),it[w]=X[w];W&&(W=Pt(W),$+=W),At.percents[L]=N,At.lengths[L]=$}return At.addedLength=$,At}}();function m(x){var O=vu.newElement(),F=x.c,D=x.v,G=x.o,L=x.i,w,T=x._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=c(D[w],D[w+1],G[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=c(D[w],D[0],G[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function b(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,D,G){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+G[0]+"_"+G[1]).replace(/\./g,"p");if(!x[L]){var w=Ra(),T,C,N,$,W,X=0,it,At,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+G[0],F[1]+G[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(At=Q(N),W=T/(w-1),it=0,C=0;C<N;C+=1)$=Gt(1-W,3)*O[C]+3*Gt(1-W,2)*W*(O[C]+D[C])+3*(1-W)*Gt(W,2)*(F[C]+G[C])+Gt(W,3)*F[C],At[C]=$,ft!==null&&(it+=Gt(At[C]-ft[C],2));it=Pt(it),X+=it,nt.points[T]=new b(it,At),ft=At}nt.segmentLength=X,x[L]=nt}return x[L]}}();function y(x,O){var F=O.percents,D=O.lengths,G=F.length,L=ne((G-1)*x),w=x*O.addedLength,T=0;if(L===G-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=G-1){if(L===G-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(x,O,F,D,G,L){var w=y(G,L),T=1-w,C=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=q("float32",8);function Y(x,O,F,D,G,L,w){G<0?G=0:G>1&&(G=1);var T=y(G,w);L=L>1?1:L;var C=y(L,w),N,$=x.length,W=1-T,X=1-C,it=W*W*W,At=T*W*W*3,ft=T*T*W*3,nt=T*T*T,_t=W*W*X,mt=T*W*X+W*T*X+W*W*C,rt=T*T*X+W*T*C+T*W*C,_=T*T*C,P=W*X*X,g=T*X*X+W*C*X+W*X*C,E=T*C*X+W*C*C+T*X*C,j=T*C*C,B=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,St=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*x[N]+At*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((_t*x[N]+mt*F[N]+rt*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*x[N]+g*F[N]+E*D[N]+j*O[N])*1e3)/1e3,M[N*4+3]=r.round((B*x[N]+ct*F[N]+gt*D[N]+St*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:Y,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var Zr=tT(),Po=e,gu=Math.abs;function bu(r,s){var l=this.offsetTime,c;this.propType==="multidimensional"&&(c=q("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var Y,x,O,F,D,G,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=Zr.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[N].point[Y]}else{M.__fnct?G=M.__fnct:(G=$a.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=G),O=G((r-w)/(L-w));var $=C.segmentLength*O,W,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,$===0||O===0||D===C.points.length-1){for(x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y];break}else if($>=X&&$<X+C.points[D+1].partialLength){for(W=($-X)/C.points[D+1].partialLength,x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y]+(C.points[D+1].point[Y]-C.points[D].point[Y])*W;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var it,At,ft,nt,_t;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)c[0]=T[0],c[1]=T[1],c[2]=T[2];else if(r<=w)c[0]=y.s[0],c[1]=y.s[1],c[2]=y.s[2];else{var mt=yu(y.s),rt=yu(T),_=(r-w)/(L-w);rT(c,eT(mt,rt,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?G=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],At=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],G=$a.getBezierEasing(it,At,ft,nt).get,M.__fnct[p]=G)):M.__fnct?G=M.__fnct:(it=y.o.x,At=y.o.y,ft=y.i.x,nt=y.i.y,G=$a.getBezierEasing(it,At,ft,nt).get,y.keyframeMetadata=G),O=G((r-w)/(L-w)))),T=k.s||y.e,_t=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?c[p]=_t:c=_t}return s.lastIndex=m,c}function eT(r,s,l){var c=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],Y=s[3],x,O,F,D,G;return O=m*y+p*k+b*M+I*Y,O<0&&(O=-O,y=-y,k=-k,M=-M,Y=-Y),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),D=Math.sin((1-l)*x)/F,G=Math.sin(l*x)/F):(D=1-l,G=l),c[0]=D*m+G*y,c[1]=D*p+G*k,c[2]=D*b+G*M,c[3]=D*I+G*Y,c}function rT(r,s){var l=s[0],c=s[1],m=s[2],p=s[3],b=Math.atan2(2*c*p-2*l*m,1-2*c*c-2*m*m),I=Math.asin(2*l*c+2*m*p),y=Math.atan2(2*l*p-2*c*m,1-2*l*l-2*m*m);r[0]=b/kt,r[1]=I/kt,r[2]=y/kt}function yu(r){var s=r[0]*kt,l=r[1]*kt,c=r[2]*kt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(c/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(c/2),M=m*p*b-I*y*k,Y=I*y*b+m*p*k,x=I*p*b+m*y*k,O=m*y*b-I*p*k;return[Y,x,O,M]}function Eu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Po&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var c=this.interpolateValue(r,this._caching);this.pv=c}return this._caching.lastFrame=r,this.pv}function ml(r){var s;if(this.propType==="unidimensional")s=r*this.mult,gu(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,c=this.v.length;l<c;)s=r[l]*this.mult,gu(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function ul(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function fl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function iT(r,s,l,c){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=ul,this.setVValue=ml,this.addEffect=fl}function oT(r,s,l,c){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=q("float32",p),this.pv=q("float32",p),this.vel=q("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=ul,this.setVValue=ml,this.addEffect=fl}function sT(r,s,l,c){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Po,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.v=Po,this.pv=Po,this._isFirstFrame=!0,this.getValue=ul,this.setVValue=ml,this.interpolateValue=bu,this.effectsSequence=[Eu.bind(this)],this.addEffect=fl}function aT(r,s,l,c){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&Zr.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&Zr.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&Zr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&Zr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[Eu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.getValue=ul,this.setVValue=ml,this.interpolateValue=bu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=q("float32",M),this.pv=q("float32",M),m=0;m<M;m+=1)this.v[m]=Po,this.pv[m]=Po;this._caching={lastFrame:Po,lastIndex:0,value:q("float32",M)},this.addEffect=fl}var lt=function(){function r(l,c,m,p,b){c.sid&&(c=l.globalData.slotManager.getProp(c));var I;if(!c.k.length)I=new iT(l,c,p,b);else if(typeof c.k[0]=="number")I=new oT(l,c,p,b);else switch(m){case 0:I=new sT(l,c,p,b);break;case 1:I=new aT(l,c,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Fo=function(){function r(){return q("float32",2)}return pl(8,r)}();function Ai(){this.c=!1,this._length=0,this._maxLength=8,this.v=Q(this._maxLength),this.o=Q(this._maxLength),this.i=Q(this._maxLength)}Ai.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=Fo.newElement(),this.o[l]=Fo.newElement(),this.i[l]=Fo.newElement(),l+=1},Ai.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},Ai.prototype.doubleArrayLength=function(){this.v=this.v.concat(Q(this._maxLength)),this.i=this.i.concat(Q(this._maxLength)),this.o=this.o.concat(Q(this._maxLength)),this._maxLength*=2},Ai.prototype.setXYAt=function(r,s,l,c,m){var p;switch(this._length=Math.max(this._length,c+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[c]||p[c]&&!m)&&(p[c]=Fo.newElement()),p[c][0]=r,p[c][1]=s},Ai.prototype.setTripleAt=function(r,s,l,c,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,c,"o",b,I),this.setXYAt(m,p,"i",b,I)},Ai.prototype.reverse=function(){var r=new Ai;r.setPathData(this.c,this._length);var s=this.v,l=this.o,c=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],c[0][0],c[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],c[p][0],c[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},Ai.prototype.length=function(){return this._length};var De=function(){function r(){return new Ai}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)Fo.release(m.v[b]),Fo.release(m.i[b]),Fo.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=c.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var c=pl(4,r,s);return c.clone=l,c}();function jc(){this._length=0,this._maxLength=4,this.shapes=Q(this._maxLength)}jc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Q(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},jc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ms=function(){var r={newShapeCollection:m,release:p},s=0,l=4,c=Q(l);function m(){var b;return s?(s-=1,b=c[s]):b=new jc,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(c=uu.double(c),l*=2),c[s]=b,s+=1}return r}(),vl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,$,W,X,it,At,ft,nt,_t,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],W=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],W=!0;else{for(var rt=C,_=mt.length-1,P=!0,g,E,j;P&&(g=mt[rt],E=mt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:P=!1;if(j=this.keyframesMetadata[rt]||{},W=g.h===1,C=rt,!W){if(L>=E.t-this.offsetTime)nt=1;else if(L<g.t-this.offsetTime)nt=0;else{var B;j.__fnct?B=j.__fnct:(B=$a.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,j.__fnct=B),nt=B((L-(g.t-this.offsetTime))/(E.t-this.offsetTime-(g.t-this.offsetTime)))}$=E.s?E.s[0]:g.e[0]}N=g.s[0]}for(At=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<At;X+=1)for(it=0;it<ft;it+=1)_t=W?N.i[X][it]:N.i[X][it]+($.i[X][it]-N.i[X][it])*nt,w.i[X][it]=_t,_t=W?N.o[X][it]:N.o[X][it]+($.o[X][it]-N.o[X][it])*nt,w.o[X][it]=_t,_t=W?N.v[X][it]:N.v[X][it]+($.v[X][it]-N.v[X][it])*nt,w.v[X][it]=_t}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function c(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=c,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=c,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=se;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,C.p,1,0,this),this.s=lt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,W=this.s.v[1]/2,X=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-W,it.v[1][0]=X?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+W,it.v[3][0]=X?C-$:C+$,it.v[3][1]=N,it.i[0][0]=X?C-$*L:C+$*L,it.i[0][1]=N-W,it.i[1][0]=X?C+$:C-$,it.i[1][1]=N-W*L,it.i[2][0]=X?C+$*L:C-$*L,it.i[2][1]=N+W,it.i[3][0]=X?C-$:C+$,it.i[3][1]=N+W*L,it.o[0][0]=X?C+$*L:C-$*L,it.o[0][1]=N-W,it.o[1][0]=X?C+$:C-$,it.o[1][1]=N+W*L,it.o[2][0]=X?C-$*L:C+$*L,it.o[2][1]=N+W,it.o[3][0]=X?C-$:C+$,it.o[3][1]=N-W*L}},A([Ne],w),w}(),Y=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=lt.getProp(w,T.ir,0,0,this),this.is=lt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(w,T.pt,0,0,this),this.p=lt.getProp(w,T.p,1,0,this),this.r=lt.getProp(w,T.r,0,kt,this),this.or=lt.getProp(w,T.or,0,0,this),this.os=lt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ms.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,$=this.or.v,W=this.ir.v,X=this.os.v,it=this.is.v,At=2*Math.PI*$/(T*2),ft=2*Math.PI*W/(T*2),nt,_t,mt,rt,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){_t=N?$:W,mt=N?X:it,rt=N?At:ft;var g=_t*Math.cos(_),E=_t*Math.sin(_),j=g===0&&E===0?0:E/Math.sqrt(g*g+E*E),B=g===0&&E===0?0:-g/Math.sqrt(g*g+E*E);g+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(g,E,g-j*rt*mt*P,E-B*rt*mt*P,g+j*rt*mt*P,E+B*rt*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,W=2*Math.PI*N/(T*4),X,it=-Math.PI*.5,At=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(it),nt=N*Math.sin(it),_t=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-_t*W*$*At,nt-mt*W*$*At,ft+_t*W*$*At,nt+mt*W*$*At,X,!0),it+=C*At}this.paths.length=0,this.paths[0]=this.v}},A([Ne],L),L}(),x=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Ms.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=lt.getProp(w,T.p,1,0,this),this.s=lt.getProp(w,T.s,1,0,this),this.r=lt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,W=jt(N,$,this.r.v),X=W*(1-se);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+W,T+N,C-$+W,T+N,C-$+X,0,!0),this.v.setTripleAt(T+N,C+$-W,T+N,C+$-X,T+N,C+$-W,1,!0),W!==0?(this.v.setTripleAt(T+N-W,C+$,T+N-W,C+$,T+N-X,C+$,2,!0),this.v.setTripleAt(T-N+W,C+$,T-N+X,C+$,T-N+W,C+$,3,!0),this.v.setTripleAt(T-N,C+$-W,T-N,C+$-W,T-N,C+$-X,4,!0),this.v.setTripleAt(T-N,C-$+W,T-N,C-$+X,T-N,C-$+W,5,!0),this.v.setTripleAt(T-N+W,C-$,T-N+W,C-$,T-N+X,C-$,6,!0),this.v.setTripleAt(T+N-W,C-$,T+N-X,C-$,T+N-W,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+X,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+X,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+W,T+N,C-$+X,T+N,C-$+W,0,!0),W!==0?(this.v.setTripleAt(T+N-W,C-$,T+N-W,C-$,T+N-X,C-$,1,!0),this.v.setTripleAt(T-N+W,C-$,T-N+X,C-$,T-N+W,C-$,2,!0),this.v.setTripleAt(T-N,C-$+W,T-N,C-$+W,T-N,C-$+X,3,!0),this.v.setTripleAt(T-N,C+$-W,T-N,C+$-X,T-N,C+$-W,4,!0),this.v.setTripleAt(T-N+W,C+$,T-N+W,C+$,T-N+X,C+$,5,!0),this.v.setTripleAt(T+N-W,C+$,T+N-X,C+$,T+N-W,C+$,6,!0),this.v.setTripleAt(T+N,C+$-W,T+N,C+$-W,T+N,C+$-X,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+X,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-X,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-X,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:c},A([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new x(L,w):T===6?C=new M(L,w):T===7&&(C=new Y(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var G={};return G.getShapeProp=O,G.getConstructorFunction=F,G.getKeyframedConstructorFunction=D,G}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,c=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(g){if(g===0)return this;var E=r(g),j=s(g);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function b(g){if(g===0)return this;var E=r(g),j=s(g);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(g){if(g===0)return this;var E=r(g),j=s(g);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function y(g){if(g===0)return this;var E=r(g),j=s(g);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function k(g,E){return this._t(1,E,g,1,0,0)}function M(g,E){return this.shear(l(g),l(E))}function Y(g,E){var j=r(E),B=s(E);return this._t(j,B,0,0,-B,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(g),1,0,0,0,0,1,0,0,0,0,1)._t(j,-B,0,0,B,j,0,0,0,0,1,0,0,0,0,1)}function x(g,E,j){return!j&&j!==0&&(j=1),g===1&&E===1&&j===1?this:this._t(g,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(g,E,j,B,ct,gt,St,$t,Vt,fe,rr,Jr,ir,Le,fr,Yt){return this.props[0]=g,this.props[1]=E,this.props[2]=j,this.props[3]=B,this.props[4]=ct,this.props[5]=gt,this.props[6]=St,this.props[7]=$t,this.props[8]=Vt,this.props[9]=fe,this.props[10]=rr,this.props[11]=Jr,this.props[12]=ir,this.props[13]=Le,this.props[14]=fr,this.props[15]=Yt,this}function F(g,E,j){return j=j||0,g!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,g,E,j,1):this}function D(g,E,j,B,ct,gt,St,$t,Vt,fe,rr,Jr,ir,Le,fr,Yt){var ut=this.props;if(g===1&&E===0&&j===0&&B===0&&ct===0&&gt===1&&St===0&&$t===0&&Vt===0&&fe===0&&rr===1&&Jr===0)return ut[12]=ut[12]*g+ut[15]*ir,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*rr+ut[15]*fr,ut[15]*=Yt,this._identityCalculated=!1,this;var Ci=ut[0],oo=ut[1],_i=ut[2],ti=ut[3],wi=ut[4],ki=ut[5],or=ut[6],so=ut[7],ao=ut[8],Pr=ut[9],no=ut[10],Fr=ut[11],Bo=ut[12],Il=ut[13],Cl=ut[14],_l=ut[15];return ut[0]=Ci*g+oo*ct+_i*Vt+ti*ir,ut[1]=Ci*E+oo*gt+_i*fe+ti*Le,ut[2]=Ci*j+oo*St+_i*rr+ti*fr,ut[3]=Ci*B+oo*$t+_i*Jr+ti*Yt,ut[4]=wi*g+ki*ct+or*Vt+so*ir,ut[5]=wi*E+ki*gt+or*fe+so*Le,ut[6]=wi*j+ki*St+or*rr+so*fr,ut[7]=wi*B+ki*$t+or*Jr+so*Yt,ut[8]=ao*g+Pr*ct+no*Vt+Fr*ir,ut[9]=ao*E+Pr*gt+no*fe+Fr*Le,ut[10]=ao*j+Pr*St+no*rr+Fr*fr,ut[11]=ao*B+Pr*$t+no*Jr+Fr*Yt,ut[12]=Bo*g+Il*ct+Cl*Vt+_l*ir,ut[13]=Bo*E+Il*gt+Cl*fe+_l*Le,ut[14]=Bo*j+Il*St+Cl*rr+_l*fr,ut[15]=Bo*B+Il*$t+Cl*Jr+_l*Yt,this._identityCalculated=!1,this}function G(g){var E=g.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(g){for(var E=0;E<16;){if(g.props[E]!==this.props[E])return!1;E+=1}return!0}function T(g){var E;for(E=0;E<16;E+=1)g.props[E]=this.props[E];return g}function C(g){var E;for(E=0;E<16;E+=1)this.props[E]=g[E]}function N(g,E,j){return{x:g*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:g*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:g*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(g,E,j){return g*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function W(g,E,j){return g*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function X(g,E,j){return g*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var g=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/g,j=-this.props[1]/g,B=-this.props[4]/g,ct=this.props[0]/g,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/g,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/g,$t=new Pe;return $t.props[0]=E,$t.props[1]=j,$t.props[4]=B,$t.props[5]=ct,$t.props[12]=gt,$t.props[13]=St,$t}function At(g){var E=this.getInverseMatrix();return E.applyToPointArray(g[0],g[1],g[2]||0)}function ft(g){var E,j=g.length,B=[];for(E=0;E<j;E+=1)B[E]=At(g[E]);return B}function nt(g,E,j){var B=q("float32",6);if(this.isIdentity())B[0]=g[0],B[1]=g[1],B[2]=E[0],B[3]=E[1],B[4]=j[0],B[5]=j[1];else{var ct=this.props[0],gt=this.props[1],St=this.props[4],$t=this.props[5],Vt=this.props[12],fe=this.props[13];B[0]=g[0]*ct+g[1]*St+Vt,B[1]=g[0]*gt+g[1]*$t+fe,B[2]=E[0]*ct+E[1]*St+Vt,B[3]=E[0]*gt+E[1]*$t+fe,B[4]=j[0]*ct+j[1]*St+Vt,B[5]=j[0]*gt+j[1]*$t+fe}return B}function _t(g,E,j){var B;return this.isIdentity()?B=[g,E,j]:B=[g*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],g*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],g*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],B}function mt(g,E){if(this.isIdentity())return g+","+E;var j=this.props;return Math.round((g*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((g*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var g=0,E=this.props,j="matrix3d(",B=1e4;g<16;)j+=c(E[g]*B)/B,j+=g===15?")":",",g+=1;return j}function _(g){var E=1e4;return g<1e-6&&g>0||g>-1e-6&&g<0?c(g*E)/E:g}function P(){var g=this.props,E=_(g[0]),j=_(g[1]),B=_(g[4]),ct=_(g[5]),gt=_(g[12]),St=_(g[13]);return"matrix("+E+","+j+","+B+","+ct+","+gt+","+St+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=Y,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=G,this.applyToPoint=N,this.applyToX=$,this.applyToY=W,this.applyToZ=X,this.applyToPointArray=_t,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=At,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=q("float32",16),this.reset()}}();function gl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gl=function(l){return typeof l}:gl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},gl(r)}var Wt={},bl="__[STANDALONE]__",Tu="__[ANIMATIONDATA]__",xu="";function nT(r){d(r)}function Au(){bl===!0?ue.searchAnimations(Tu,bl,xu):ue.searchAnimations()}function lT(r){GE(r)}function dT(r){YE(r)}function cT(r){return bl===!0&&(r.animationData=JSON.parse(Tu)),ue.loadAnimation(r)}function hT(r){if(typeof r=="string")switch(r){case"high":cl(200);break;default:case"medium":cl(50);break;case"low":cl(10);break}else!isNaN(r)&&r>1&&cl(r);Ra()>=50?Ke(!1):Ke(!0)}function pT(){return typeof navigator<"u"}function mT(r,s){r==="expressions"&&WE(s)}function uT(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return vl;case"matrix":return Pe;default:return null}}Wt.play=ue.play,Wt.pause=ue.pause,Wt.setLocationHref=nT,Wt.togglePause=ue.togglePause,Wt.setSpeed=ue.setSpeed,Wt.setDirection=ue.setDirection,Wt.stop=ue.stop,Wt.searchAnimations=Au,Wt.registerAnimation=ue.registerAnimation,Wt.loadAnimation=cT,Wt.setSubframeRendering=lT,Wt.resize=ue.resize,Wt.goToAndStop=ue.goToAndStop,Wt.destroy=ue.destroy,Wt.setQuality=hT,Wt.inBrowser=pT,Wt.installPlugin=mT,Wt.freeze=ue.freeze,Wt.unfreeze=ue.unfreeze,Wt.setVolume=ue.setVolume,Wt.mute=ue.mute,Wt.unmute=ue.unmute,Wt.getRegisteredAnimations=ue.getRegisteredAnimations,Wt.useWebWorker=i,Wt.setIDPrefix=dT,Wt.__getFactory=uT,Wt.version="5.12.2";function fT(){document.readyState==="complete"&&(clearInterval(bT),Au())}function vT(r){for(var s=Su.split("&"),l=0;l<s.length;l+=1){var c=s[l].split("=");if(decodeURIComponent(c[0])==r)return decodeURIComponent(c[1])}return null}var Su="";if(bl){var Iu=document.getElementsByTagName("script"),gT=Iu.length-1,Cu=Iu[gT]||{src:""};Su=Cu.src?Cu.src.replace(/^[^\?]+\??/,""):"",xu=vT("renderer")}var bT=setInterval(fT,100);try{!((typeof gn>"u"?"undefined":gl(gn))==="object"&&typeof id<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Wt)}catch{}var Qi=function(){var r={},s={};r.registerModifier=l,r.getModifier=c;function l(m,p){s[m]||(s[m]=p)}function c(m,p,b){return new s[m](p,b)}return r}();function Sr(){}Sr.prototype.initModifierProperties=function(){},Sr.prototype.addShapeToModifier=function(){},Sr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ms.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Sr.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Sr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ne],Sr);function Dr(){}A([Sr],Dr),Dr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Dr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Dr.prototype.calculateShapeEdges=function(r,s,l,c,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<c||k.s*m>c+l)){var M,Y;k.s*m<=c?M=0:M=(k.s*m-c)/l,k.e*m>=c+l?Y=1:Y=(k.e*m-c)/l,b.push([M,Y])}return b.length||b.push([0,0]),b},Dr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)vu.release(r[s]);return r.length=0,r},Dr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var c=this.o.v%360/360;if(c<0&&(c+=1),this.s.v>1?s=1+c:this.s.v<0?s=0+c:s=this.s.v+c,this.e.v>1?l=1+c:this.e.v<0?l=0+c:l=this.e.v+c,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,Y,x,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,G;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,x=0,!D.shape._mdf&&D.pathsData.length)x=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)Y=Zr.getSegmentsLength(p.shapes[y]),M.push(Y),x+=Y.totalLength;D.totalShapeLength=x,D.pathsData=M}O+=x,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(G=D.localShapeCollection,G.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var $=D.shape.paths.shapes[D.shape.paths._length-1];if($.c){var W=N.pop();this.addPaths(N,G),N=this.addShapes(D,F[1],W)}else this.addPaths(N,G),N=this.addShapes(D,F[1])}this.addPaths(N,G)}}D.shape.paths=G}}},Dr.prototype.addPaths=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)s.addShape(r[l])},Dr.prototype.addSegment=function(r,s,l,c,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(c[0],c[1],"v",p+1)},Dr.prototype.addSegmentFromArray=function(r,s,l,c){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),c&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Dr.prototype.addShapes=function(r,s,l){var c=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,Y,x,O,F=[],D,G=!0;for(l?(Y=l._length,D=l._length):(l=De.newElement(),Y=0,D=0),F.push(l),p=0;p<b;p+=1){for(x=c[p].lengths,l.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,Y,G),G=!1):(O=Zr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,l,Y,G),G=!1,l.c=!1),k+=M.addedLength,Y+=1;if(m[p].c&&x.length){if(M=x[I-1],k<=s.e){var L=x[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,Y,G),G=!1):(O=Zr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,x[I-1]),this.addSegmentFromArray(O,l,Y,G),G=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,Y+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),G=!0,F.push(l),Y=0)}return F};function Va(){}A([Sr],Va),Va.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Va.prototype.processPath=function(r,s){var l=s/100,c=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)c[0]+=r.v[p][0],c[1]+=r.v[p][1];c[0]/=m,c[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,Y,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(c[0]-r.v[p][0])*l,y=r.v[p][1]+(c[1]-r.v[p][1])*l,k=r.o[p][0]+(c[0]-r.o[p][0])*-l,M=r.o[p][1]+(c[1]-r.o[p][1])*-l,Y=r.i[p][0]+(c[0]-r.i[p][0])*-l,x=r.i[p][1]+(c[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,Y,x,p);return b},Va.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var qc=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,Y;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),Y=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),Y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,Y=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],Y=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),Y[0]=x.getValueAtTime(x.keyframes[0].t/k,0),Y[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),Y[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),Y[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],Y[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),Y[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else Y=r,M=Y;this.v.rotate(-Math.atan2(M[1]-Y[1],M[0]-Y[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function c(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=lt.getProp(y,k.p.x,0,0,this),this.py=lt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=lt.getProp(y,k.p.z,0,0,this))):this.p=lt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=lt.getProp(y,k.rx,0,kt,this),this.ry=lt.getProp(y,k.ry,0,kt,this),this.rz=lt.getProp(y,k.rz,0,kt,this),k.or.k[0].ti){var Y,x=k.or.k.length;for(Y=0;Y<x;Y+=1)k.or.k[Y].to=null,k.or.k[Y].ti=null}this.or=lt.getProp(y,k.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(y,k.r||{k:0},0,kt,this);k.sk&&(this.sk=lt.getProp(y,k.sk,0,kt,this),this.sa=lt.getProp(y,k.sa,0,kt,this)),this.a=lt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=lt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:c,autoOrient:m},A([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function Qr(){}A([Sr],Qr),Qr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=qc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Qr.prototype.applyTransforms=function(r,s,l,c,m,p){var b=p?-1:1,I=c.s.v[0]+(1-c.s.v[0])*(1-m),y=c.s.v[1]+(1-c.s.v[1])*(1-m);r.translate(c.p.v[0]*b*m,c.p.v[1]*b*m,c.p.v[2]),s.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),s.rotate(-c.r.v*b*m),s.translate(c.a.v[0],c.a.v[1],c.a.v[2]),l.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(c.a.v[0],c.a.v[1],c.a.v[2])},Qr.prototype.init=function(r,s,l,c){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=c,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Qr.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Qr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Qr.prototype.changeGroupRender=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},Qr.prototype.processShapes=function(r){var s,l,c,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(c=0;c<=this._groups.length-1;c+=1){if(k=p<I,this._groups[c]._render=k,this.changeGroupRender(this._groups[c].it,k),!k){var M=this.elemsData[c].it,Y=M[M.length-1];Y.transform.op.v!==0?(Y.transform.op._mdf=!0,Y.transform.op.v=0):Y.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),D=this.pMatrix.props,G=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}c=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(c/(this._currentCopies-1)),w!==0){for((c!==0&&m===1||c!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,c+=m}}else for(p=this._currentCopies,c=0,m=1;p;)s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,c+=m;return b},Qr.prototype.addShape=function(){};function za(){}A([Sr],za),za.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},za.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var c,m=r._length,p,b,I,y,k,M,Y=0,x,O,F,D,G,L;for(c=0;c<m;c+=1)p=r.v[c],I=r.o[c],b=r.i[c],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(c===0||c===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],Y),Y+=1):(c===0?y=r.v[m-1]:y=r.v[c-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,G=p[0]+(y[0]-p[0])*M,x=G,L=p[1]-(p[1]-y[1])*M,O=L,F=x-(x-p[0])*se,D=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,G,L,Y),Y+=1,c===m-1?y=r.v[0]:y=r.v[c+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,F=p[0]+(y[0]-p[0])*M,x=F,D=p[1]+(y[1]-p[1])*M,O=D,G=x-(x-p[0])*se,L=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,G,L,Y),Y+=1):(l.setTripleAt(r.v[c][0],r.v[c][1],r.o[c][0],r.o[c][1],r.i[c][0],r.i[c][1],Y),Y+=1);return l},za.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function yl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Xc(r){return Math.abs(r)<=1e-5}function _u(r,s,l){return r*(1-l)+s*l}function Ji(r,s,l){return[_u(r[0],s[0],l),_u(r[1],s[1],l)]}function yT(r,s,l){if(r===0)return[];var c=s*s-4*r*l;if(c<0)return[];var m=-s/(2*r);if(c===0)return[m];var p=Math.sqrt(c)/(2*r);return[m-p,m+p]}function wu(r,s,l,c){return[-r+3*s-3*l+c,3*r-6*s+3*l,-3*r+3*s,r]}function ku(r){return new de(r,r,r,r,!1)}function de(r,s,l,c,m){m&&Rs(r,s)&&(s=Ji(r,c,1/3)),m&&Rs(l,c)&&(l=Ji(r,c,2/3));var p=wu(r[0],s[0],l[0],c[0]),b=wu(r[1],s[1],l[1],c[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,c]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Xc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var c=Math.sqrt(l);return Xc(c)?c>0&&c<1?[s]:[]:[s-c,s+c].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[ku(this.points[0]),this];if(r>=1)return[this,ku(this.points[this.points.length-1])];var s=Ji(this.points[0],this.points[1],r),l=Ji(this.points[1],this.points[2],r),c=Ji(this.points[2],this.points[3],r),m=Ji(s,l,r),p=Ji(l,c,r),b=Ji(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,c,this.points[3],!0)]};function Nu(r,s){var l=r.points[0][s],c=r.points[r.points.length-1][s];if(l>c){var m=c;c=l,l=m}for(var p=yT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>c&&(c=I)}return{min:l,max:c}}de.prototype.bounds=function(){return{x:Nu(this,0),y:Nu(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function El(r,s,l){var c=r.boundingBox();return{cx:c.cx,cy:c.cy,width:c.width,height:c.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Lu(r){var s=r.bez.split(.5);return[El(s[0],r.t1,r.t),El(s[1],r.t,r.t2)]}function ET(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Ba(r,s,l,c,m,p){if(ET(r,s)){if(l>=p||r.width<=c&&r.height<=c&&s.width<=c&&s.height<=c){m.push([r.t,s.t]);return}var b=Lu(r),I=Lu(s);Ba(b[0],I[0],l+1,c,m,p),Ba(b[0],I[1],l+1,c,m,p),Ba(b[1],I[0],l+1,c,m,p),Ba(b[1],I[1],l+1,c,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var c=[];return Ba(El(this,0,1),El(r,0,1),0,s,c,l),c},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function Zc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function Tl(r,s,l,c){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[c[0],c[1],1],y=Zc(Zc(m,p),Zc(b,I));return Xc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Os(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function Qc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Rs(r,s){return yl(r[0],s[0])&&yl(r[1],s[1])}function Ha(){}A([Sr],Ha),Ha.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Mu(r,s,l,c,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*c*m,M=s[1]-Math.sin(l)*c*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function TT(r,s){var l=[s[0]-r[0],s[1]-r[1]],c=-Math.PI*.5,m=[Math.cos(c)*l[0]-Math.sin(c)*l[1],Math.sin(c)*l[0]+Math.cos(c)*l[1]];return m}function xT(r,s){var l=s===0?r.length()-1:s-1,c=(s+1)%r.length(),m=r.v[l],p=r.v[c],b=TT(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Ou(r,s,l,c,m,p,b){var I=xT(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],Y=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Mu(r,s.v[l%s._length],I,b,c,x/((m+1)*2),Y/((m+1)*2),p)}function AT(r,s,l,c,m,p){for(var b=0;b<c;b+=1){var I=(b+1)/(c+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);Mu(r,M,k,p,l,y/((c+1)*2),y/((c+1)*2),m),p=-p}return p}Ha.prototype.processPath=function(r,s,l,c){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Ou(p,r,0,s,l,c,b);for(var y=0;y<m;y+=1)b=AT(p,I,s,l,c,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Ou(p,r,y+1,s,l,c,b);return p},Ha.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Jc(r,s,l){var c=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Os(r,c,l),Os(s,c,l)]}function Ds(r,s){var l,c,m,p,b,I,y;y=Jc(r.points[0],r.points[1],s),l=y[0],c=y[1],y=Jc(r.points[1],r.points[2],s),m=y[0],p=y[1],y=Jc(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=Tl(l,c,m,p);k===null&&(k=c);var M=Tl(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function Ru(r,s,l,c,m){var p=s.points[3],b=l.points[0];if(c===3||Rs(p,b))return p;if(c===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=Tl(p,Os(p,I+Math.PI/2,100),b,Os(b,I+Math.PI/2,100)),M=k?Qc(k,p):Qc(p,b)/2,Y=Os(p,I,2*M*se);return r.setXYAt(Y[0],Y[1],"o",r.length()-1),Y=Os(b,y,2*M*se),r.setTripleAt(b[0],b[1],b[0],b[1],Y[0],Y[1],r.length()),b}var x=Rs(p,s.points[2])?s.points[0]:s.points[2],O=Rs(b,l.points[1])?l.points[3]:l.points[1],F=Tl(x,p,b,O);return F&&Qc(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function Du(r,s){var l=r.intersections(s);return l.length&&yl(l[0][0],1)&&l.shift(),l.length?l[0]:null}function Pu(r,s){var l=r.slice(),c=s.slice(),m=Du(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],c[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Du(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,c]}function ST(r){for(var s,l=1;l<r.length;l+=1)s=Pu(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=Pu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function Fu(r,s){var l=r.inflectionPoints(),c,m,p,b;if(l.length===0)return[Ds(r,s)];if(l.length===1||yl(l[1],1))return p=r.split(l[0]),c=p[0],m=p[1],[Ds(c,s),Ds(m,s)];p=r.split(l[0]),c=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[Ds(c,s),Ds(b,s),Ds(m,s)]}function Ua(){}A([Sr],Ua),Ua.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ua.prototype.processPath=function(r,s,l,c){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(Fu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(Fu(y,s));k=ST(k);var M=null,Y=null;for(b=0;b<k.length;b+=1){var x=k[b];for(Y&&(M=Ru(m,Y,x[0],l,c)),Y=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&Rs(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&Ru(m,Y,k[0][0],l,c),m},Ua.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function $u(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",c="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":c="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:c,weight:r.fWeight||l}}var $o=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var c=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,Y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var P=_.split(","),g,E=P.length,j=[];for(g=0;g<E;g+=1)P[g]!=="sans-serif"&&P[g]!=="monospace"&&j.push(P[g]);return j.join(",")}function O(_,P){var g=v("span");g.setAttribute("aria-hidden",!0),g.style.fontFamily=P;var E=v("span");E.innerText="giItT1WQy@!-/#",g.style.position="absolute",g.style.left="-10000px",g.style.top="-10000px",g.style.fontSize="300px",g.style.fontVariant="normal",g.style.fontStyle="normal",g.style.fontWeight="normal",g.style.letterSpacing="0",g.appendChild(E),document.body.appendChild(g);var j=E.offsetWidth;return E.style.fontFamily=x(_)+", "+P,{node:E,w:j,parent:g}}function F(){var _,P=this.fonts.length,g,E,j=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(g=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,g.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(g=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,g.offsetWidth!==E&&(j-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));j!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var g=document.body&&P?"svg":"canvas",E,j=$u(_);if(g==="svg"){var B=Ct("text");B.style.fontSize="100px",B.setAttribute("font-family",_.fFamily),B.setAttribute("font-style",j.style),B.setAttribute("font-weight",j.weight),B.textContent="1",_.fClass?(B.style.fontFamily="inherit",B.setAttribute("class",_.fClass)):B.style.fontFamily=_.fFamily,P.appendChild(B),E=B}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(St){return g==="svg"?(E.textContent=St,E.getComputedTextLength()):E.measureText(St).width}return{measureText:gt}}function G(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(rr){rr.helper=D(rr),rr.cache={}}),this.fonts=_.list;return}var g=_.list,E,j=g.length,B=j;for(E=0;E<j;E+=1){var ct=!0,gt,St;if(g[E].loaded=!1,g[E].monoCase=O(g[E].fFamily,"monospace"),g[E].sansCase=O(g[E].fFamily,"sans-serif"),!g[E].fPath)g[E].loaded=!0,B-=1;else if(g[E].fOrigin==="p"||g[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+g[E].fFamily+'"], style[f-origin="3"][f-family="'+g[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var $t=v("style");$t.setAttribute("f-forigin",g[E].fOrigin),$t.setAttribute("f-origin",g[E].origin),$t.setAttribute("f-family",g[E].fFamily),$t.type="text/css",$t.innerText="@font-face {font-family: "+g[E].fFamily+"; font-style: normal; src: url('"+g[E].fPath+"');}",P.appendChild($t)}}else if(g[E].fOrigin==="g"||g[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),St=0;St<gt.length;St+=1)gt[St].href.indexOf(g[E].fPath)!==-1&&(ct=!1);if(ct){var Vt=v("link");Vt.setAttribute("f-forigin",g[E].fOrigin),Vt.setAttribute("f-origin",g[E].origin),Vt.type="text/css",Vt.rel="stylesheet",Vt.href=g[E].fPath,document.body.appendChild(Vt)}}else if(g[E].fOrigin==="t"||g[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),St=0;St<gt.length;St+=1)g[E].fPath===gt[St].src&&(ct=!1);if(ct){var fe=v("link");fe.setAttribute("f-forigin",g[E].fOrigin),fe.setAttribute("f-origin",g[E].origin),fe.setAttribute("rel","stylesheet"),fe.setAttribute("href",g[E].fPath),P.appendChild(fe)}}g[E].helper=D(g[E],P),g[E].cache={},this.fonts.push(g[E])}B===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,g=_.length,E,j=this.chars.length,B;for(P=0;P<g;P+=1){for(E=0,B=!1;E<j;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(B=!0),E+=1;B||(this.chars.push(_[P]),j+=1)}}}function w(_,P,g){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===g)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,P,g)),s}function T(_,P,g){var E=this.getFontByName(P),j=_;if(!E.cache[j]){var B=E.helper;if(_===" "){var ct=B.measureText("|"+_+"|"),gt=B.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=B.measureText(_)/100}return E.cache[j]*g}function C(_){for(var P=0,g=this.fonts.length;P<g;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,g=_.charCodeAt(0);if(g>=55296&&g<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(g-55296)*1024+E-56320+65536)}return P}function $(_,P){var g=_.toString(16)+P.toString(16);return Y.indexOf(g)!==-1}function W(_){return _===y}function X(_){return _===I}function it(_){var P=N(_);return P>=k&&P<=M}function At(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var g=N(_.substr(P,2));if(g!==c)return!1;var E=0;for(P+=2;E<5;){if(g=N(_.substr(P,2)),g<p||g>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function _t(){this.isLoaded=!0}var mt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};mt.isModifier=$,mt.isZeroWidthJoiner=W,mt.isFlagEmoji=At,mt.isRegionalCode=it,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=c;var rt={addChars:L,addFonts:G,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:_t};return mt.prototype=rt,mt}();function Vu(r){this.animationData=r}Vu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function IT(r){return new Vu(r)}function xl(){}xl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var th=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function CT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function _T(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function wT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function kT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function NT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function LT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function MT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function OT(){this.p={}}function zu(r,s){var l=r.ef||[];this.effectElements=[];var c,m=l.length,p;for(c=0;c<m;c+=1)p=new Ga(l[c],s),this.effectElements.push(p)}function Ga(r,s){this.init(r,s)}A([Ne],Ga),Ga.prototype.getValue=Ga.prototype.iterateDynamicProperties,Ga.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,c=this.data.ef.length,m,p=this.data.ef;for(l=0;l<c;l+=1){switch(m=null,p[l].ty){case 0:m=new CT(p[l],s,this);break;case 1:m=new _T(p[l],s,this);break;case 2:m=new wT(p[l],s,this);break;case 3:m=new kT(p[l],s,this);break;case 4:case 7:m=new MT(p[l],s,this);break;case 10:m=new NT(p[l],s,this);break;case 11:m=new LT(p[l],s,this);break;case 5:m=new zu(p[l],s,this);break;default:m=new OT(p[l],s,this);break}m&&this.effectElements.push(m)}};function to(){}to.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=pu();if(s){var l=s("layer"),c=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=c.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=th(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,c){this.globalData=l,this.comp=c,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new zu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function eo(){}eo.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var c,m=this.dynamicProperties.length;for(c=0;c<m;c+=1)(l||this._isParent&&this.dynamicProperties[c].propType==="transform")&&(this.dynamicProperties[c].getValue(),this.dynamicProperties[c]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ro(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}ro.prototype.prepareFrame=function(){},A([xl,to,eo],ro),ro.prototype.getBaseElement=function(){return null},ro.prototype.renderFrame=function(){},ro.prototype.destroy=function(){},ro.prototype.initExpressions=function(){var r=pu();if(r){var s=r("footage");this.layerInterface=s(this)}},ro.prototype.getFootageData=function(){return this.footageData};function er(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var c=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(c),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},A([xl,to,eo],er),er.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,c;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(c=this.layers[s],c.ip-c.st<=r-this.layers[s].st&&c.op-c.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new ro(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,c,m=this.layers.length;for(s=0;s<l;s+=1)for(c=0;c<m;){if(this.layers[c].id===r[s].id){this.layers[c]=r[s];break}c+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var c=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!c[p]||c[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(c[p]),c[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var c=this.createComp(r[s]);c.initExpressions(),this.globalData.projectInterface.registerComposition(c)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var c,m=this.elements.length;for(c=0;c<m;c+=1)if(this.elements[c].data.nm===s){l=this.elements[c];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new $o,this.globalData.slotManager=IT(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var RT={TRANSFORM_EFFECT:"transformEFfect"};function Ps(){}Ps.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?qc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,c=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;c<m;){if(this.hierarchy[c].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}c+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),c=0;c<m;c+=1)l.multiply(this.hierarchy[c].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var c=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(c),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;c.multiply(m)}c.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(RT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,c=s.length;for(l=0;l<c;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var c=!0,m=this.comp;c;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):c=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Vo(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var c=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Q(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,Y,x=tr(),O,F,D,G,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=Ct("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=Ct("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:vl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},c.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",G=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),F=Ct("filter"),F.setAttribute("id",T),D=Ct("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),c.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,G=null),this.storedData[m]={elem:b,x:G,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){Y=k.length;var C=Ct("g");for(M=0;M<Y;M+=1)C.appendChild(k[M]);var N=Ct("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(b),c.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:vl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=Ct(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),c.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Vo.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Vo.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,c=this.masksProperties.length;for(l=0;l<c;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},Vo.prototype.getMaskelement=function(){return this.maskElement},Vo.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Vo.prototype.drawPath=function(r,s,l){var c=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==c){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+c:c),l.elem.setAttribute("d",b)),l.lastPath=c}},Vo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ka=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(c,m){var p=Ct("filter");return p.setAttribute("id",c),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var c=Ct("feColorMatrix");return c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),c}return r}(),Bu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),Al={},Hu="filter_result_";function eh(r){var s,l="SourceGraphic",c=r.data.ef?r.data.ef.length:0,m=tr(),p=Ka.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<c;s+=1){I=null;var y=r.data.ef[s].ty;if(Al[y]){var k=Al[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,Hu+b,l),l=Hu+b,Al[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}eh.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},eh.prototype.getEffects=function(r){var s,l=this.filters.length,c=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&c.push(this.filters[s]);return c};function aC(r,s,l){Al[r]={effect:s,countsAsEffect:l}}function Wa(){}Wa.prototype={initRendererElement:function(){this.layerElement=Ct("g")},createContainerElements:function(){this.matteElement=Ct("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=Ct("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var c=Ct("clipPath"),m=Ct("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(c.setAttribute("id",p),c.appendChild(m),this.globalData.defs.appendChild(c),this.checkMasks()){var b=Ct("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Vo(this.data,this,this.globalData),this.renderableEffectsManager=new eh(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,c,m,p,b;if(s===1||s===3){var I=Ct("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Bu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),c=tr(),m=Ka.createFilter(c),this.globalData.defs.appendChild(m),m.appendChild(Ka.createAlphaToLuminanceFilter()),b=Ct("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+c+")"))}else if(s===2){var y=Ct("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=Ct("g");y.appendChild(k),c=tr(),m=Ka.createFilter(c);var M=Ct("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var Y=Ct("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),M.appendChild(Y),this.globalData.defs.appendChild(m);var x=Ct("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+c+")"),k.appendChild(x),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Bu.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(Ka.createAlphaToLuminanceFilter()),b=Ct("g"),k.appendChild(x),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Fs(){}Fs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ya(){}(function(){var r={initElement:function(l,c,m){this.initFrame(),this.initBaseData(l,c,m),this.initTransform(l,c,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([xl,H(r)],Ya)})();function ja(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([to,Ps,Wa,Fs,eo,Ya],ja),ja.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=Ct("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},ja.prototype.sourceRectAtTime=function(){return this.sourceRect};function DT(r,s){this.elem=r,this.pos=s}function Uu(){}Uu.prototype={addShapeToModifiers:function(s){var l,c=this.shapeModifiers.length;for(l=0;l<c;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,c=this.shapeModifiers.length;l<c;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var c;for(s=l-1;s>=0&&(c=this.shapeModifiers[s].processShapes(this._isFirstFrame),!c);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,c=0,m=l.length;c<m;){if(l[c].elem===s)return l[c].pos;c+=1}return 0},addProcessedElement:function(s,l){for(var c=this.processedElements,m=c.length;m;)if(m-=1,c[m].elem===s){c[m].pos=l;return}c.push(new DT(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Gu={1:"butt",2:"round",3:"square"},Ku={1:"miter",2:"round",3:"bevel"};function Wu(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var c=0,m=r.length;c<m;){if(r[c].mProps.dynamicProperties.length){this._isAnimated=!0;break}c+=1}}Wu.prototype.setAsAnimated=function(){this._isAnimated=!0};function Yu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=Ct("path"),this.msElem=null}Yu.prototype.reset=function(){this.d="",this._mdf=!1};function Sl(r,s,l,c){this.elem=r,this.frameId=-1,this.dataProps=Q(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=q("float32",s.length?s.length-1:0),this.dashoffset=q("float32",1),this.initDynamicPropertyContainer(c);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=lt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}Sl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Ne],Sl);function ju(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new Sl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}A([Ne],ju);function qu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l}A([Ne],qu);function Xu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}A([Ne],Xu);function qa(r,s,l){this.data=s,this.c=q("uint8c",s.p*4);var c=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=q("float32",c),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=c,this.initDynamicPropertyContainer(l),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}qa.prototype.comparePoints=function(r,s){for(var l=0,c=this.o.length/2,m;l<c;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},qa.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},qa.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,c,m;for(s=0;s<l;s+=1)c=s%4===0?100:255,m=Math.round(this.prop.v[s]*c),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)c=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Ne],qa);function $s(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}$s.prototype.initGradientData=function(r,s,l){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new qa(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},$s.prototype.setGradientData=function(r,s){var l=tr(),c=Ct(s.t===1?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=Ct("stop"),c.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=c,this.cst=m},$s.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,c,m,p=Ct("mask"),b=Ct("path");p.appendChild(b);var I=tr(),y=tr();p.setAttribute("id",y);var k=Ct(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(c=r.g.p*4;c<m;c+=2)l=Ct("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",Gu[r.lc||2]),b.setAttribute("stroke-linejoin",Ku[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},A([Ne],$s);function Zu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new Sl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}A([$s,Ne],Zu);function PT(){this.it=[],this.prevViewData=[],this.gr=Ct("g")}function FT(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Qu=function(s,l,c,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return c&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},$T=function(){var r=new Pe,s=new Pe,l={createRenderFunction:c};function c(Y){switch(Y.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(Y,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function b(Y,x,O){var F,D,G,L,w,T,C=x.styles.length,N=x.lvl,$,W,X,it;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(W=s.reset(),X=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&X>0;)L=x.transformers[it].mProps._mdf||L,X-=1,it-=1;if(L)for(X=N-x.styles[T].lvl,it=x.transformers.length-1;X>0;)W.multiply(x.transformers[it].mProps.v),X-=1,it-=1}else W=r;if($=x.sh.paths,D=$._length,L){for(G="",F=0;F<D;F+=1)w=$.shapes[F],w&&w._length&&(G+=Qu(w,w._length,w.c,W));x.caches[T]=G}else G=x.caches[T];x.styles[T].d+=Y.hd===!0?"":G,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(Y,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function y(Y,x,O){k(Y,x,O),M(Y,x,O)}function k(Y,x,O){var F=x.gf,D=x.g._hasOpacity,G=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=Y.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=Y.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,G[0]),F.setAttribute(C,G[1]),D&&!x.g._collapsable&&(x.of.setAttribute(T,G[0]),x.of.setAttribute(C,G[1]))}var N,$,W,X;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(W=N.length,$=0;$<W;$+=1)X=N[$],X.setAttribute("offset",it[$*4]+"%"),X.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(D&&(x.g._omdf||O)){var At=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,W=N.length,$=0;$<W;$+=1)X=N[$],x.g._collapsable||X.setAttribute("offset",At[$*2]+"%"),X.setAttribute("stop-opacity",At[$*2+1])}if(Y.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ft;if((x.s._mdf||x.e._mdf||O)&&(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)),F.setAttribute("r",ft),D&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)));var nt=Math.atan2(L[1]-G[1],L[0]-G[0]),_t=x.h.v;_t>=1?_t=.99:_t<=-1&&(_t=-.99);var mt=ft*_t,rt=Math.cos(nt+x.a.v)*mt+G[0],_=Math.sin(nt+x.a.v)*mt+G[1];F.setAttribute("fx",rt),F.setAttribute("fy",_),D&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",_))}}}function M(Y,x,O){var F=x.style,D=x.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return l}();function ce(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}A([to,Ps,Wa,Uu,Fs,eo,Ya],ce),ce.prototype.initSecondaryElement=function(){},ce.prototype.identityMatrix=new Pe,ce.prototype.buildExpressionInterface=function(){},ce.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ce.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,c,m=this.stylesList.length,p,b=[],I=!1;for(c=0;c<m;c+=1){for(p=this.stylesList[c],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},ce.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},ce.prototype.createStyleElement=function(r,s){var l,c=new Yu(r,s),m=c.pElem;if(r.ty==="st")l=new ju(this,r,c);else if(r.ty==="fl")l=new qu(this,r,c);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?$s:Zu;l=new p(this,r,c),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new Xu(this,r,c));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Gu[r.lc||2]),m.setAttribute("stroke-linejoin",Ku[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=th(r.bm)),this.stylesList.push(c),this.addToAnimatedContents(r,l),l},ce.prototype.createGroupElement=function(r){var s=new PT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=th(r.bm)),s},ce.prototype.createTransformElement=function(r,s){var l=qc.getTransformProperty(this,r,this),c=new FT(l,l.o,s);return this.addToAnimatedContents(r,c),c},ce.prototype.createShapeElement=function(r,s,l){var c=4;r.ty==="rc"?c=5:r.ty==="el"?c=6:r.ty==="sr"&&(c=7);var m=vl.getShapeProp(this,r,c,this),p=new Wu(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},ce.prototype.addToAnimatedContents=function(r,s){for(var l=0,c=this.animatedContents.length;l<c;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:$T.createRenderFunction(r),element:s,data:r})},ce.prototype.setElementStyles=function(r){var s=r.styles,l,c=this.stylesList.length;for(l=0;l<c;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},ce.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},ce.prototype.searchShapes=function(r,s,l,c,m,p,b){var I=[].concat(p),y,k=r.length-1,M,Y,x=[],O=[],F,D,G;for(y=k;y>=0;y-=1){if(G=this.searchProcessedElement(r[y]),G?s[y]=l[G-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")G?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==c&&c.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!G)s[y]=this.createGroupElement(r[y]);else for(Y=s[y].it.length,M=0;M<Y;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==c&&c.appendChild(s[y].gr)}else r[y].ty==="tr"?(G||(s[y]=this.createTransformElement(r[y],c)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(G||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(G?(D=s[y],D.closed=!1):(D=Qi.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(G?(D=s[y],D.closed=!0):(D=Qi.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=x.length,y=0;y<k;y+=1)x[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},ce.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},ce.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},ce.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function rh(r,s,l,c,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=c,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!c,m:!0,p:!0}}rh.prototype.update=function(r,s,l,c,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==c&&(this.fc=c,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var c,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(c=0;c<m;c+=1)l!==this.keysIndex?p=this.effectsSequence[c](p,p.t):p=this.effectsSequence[c](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,c=r.length;l<=c-1&&!(l===c-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,c=r.length,m,p,b=!1,I=!1,y="";l<c;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),$o.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?$o.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&($o.isModifier(m,p)?(y=r.substr(l,2),b=!0):$o.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),$o.isVariationSelector(m)&&(b=!0)):$o.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,c=[],m,p,b,I=0,y,k=l.m.g,M=0,Y=0,x=0,O=[],F=0,D=0,G,L,w=s.getFontByName(r.f),T,C=0,N=$u(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,W;if(r.sz)for(var X=!0,it=r.sz[0],At=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,$=r.tr/1e3*r.finalSize;var _t=-1;for(m=0;m<p;m+=1)W=nt[m].charCodeAt(0),b=!1,nt[m]===" "?_t=m:(W===13||W===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>it&&nt[m]!==" "?(_t===-1?p+=1:m=_t,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,_t===m?1:0,"\r"),_t=-1,F=0):(F+=C,F+=$);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&At<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-$,C=0;var mt=0,rt;for(m=0;m<p;m+=1)if(b=!1,rt=r.finalText[m],W=rt.charCodeAt(0),W===13||W===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*$,y="",b=!0,x+=1):y=rt,s.chars?(T=s.getCharData(rt,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?mt+=C+$:(F+=C+$+mt,mt=0),c.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;M=0,I+=1}}else c[I].ind=I,c[I].extra=0,I+=1;if(r.l=c,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,g;L=_.length;var E,j,B=[];for(G=0;G<L;G+=1){for(P=_[G],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),j=0,E=P.s.b,m=0;m<p;m+=1)g=c[m],g.anIndexes[G]=j,(E==1&&g.val!==""||E==2&&g.val!==""&&g.val!==" "||E==3&&(g.n||g.val==" "||m==p-1)||E==4&&(g.n||m==p-1))&&(P.s.rn===1&&B.push(j),j+=1);l.a[G].s.totalChars=j;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)g=c[m],ct!=g.anIndexes[G]&&(ct=g.anIndexes[G],gt=B.splice(Math.floor(Math.random()*B.length),1)[0]),g.anIndexes[G]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var VT=function(){var r=Math.max,s=Math.min,l=Math.floor;function c(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=lt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,b.o||{k:0},0,0,this),this.xe=lt.getProp(p,b.xe||{k:0},0,0,this),this.ne=lt.getProp(p,b.ne||{k:0},0,0,this),this.sm=lt.getProp(p,b.sm||{k:100},0,0,this),this.a=lt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}c.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var Y=$a.getBezierEasing(I,y,k,M).get,x=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?x=b>=F?1:0:x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===3)F===O?x=b>=F?0:1:x=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===4)F===O?x=0:(x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=Y(x);else if(D===5){if(F===O)x=0;else{var G=F-O;b=s(r(0,b+.5-O),F-O);var L=-G/2+b,w=G/2;x=Math.sqrt(1-L*L/(w*w))}x=Y(x)}else D===6?(F===O?x=0:(b=s(r(0,b+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),x=Y(x)):(b>=l(O)&&(b-O<0?x=r(0,s(s(F,1)-(O-b),1)):x=r(0,s(F-b,1))),x=Y(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var Y=k;k=M,M=Y}this.finalS=k,this.finalE=M}},A([Ne],c);function m(p,b,I){return new c(p,b,I)}return{getTextSelectorProp:m}}();function zT(r,s,l){var c={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,l):c,rx:p.rx?m(r,p.rx,0,kt,l):c,ry:p.ry?m(r,p.ry,0,kt,l):c,sk:p.sk?m(r,p.sk,0,kt,l):c,sa:p.sa?m(r,p.sa,0,kt,l):c,s:p.s?m(r,p.s,1,.01,l):c,a:p.a?m(r,p.a,1,0,l):c,o:p.o?m(r,p.o,0,.01,l):c,p:p.p?m(r,p.p,1,0,l):c,sw:p.sw?m(r,p.sw,0,0,l):c,sc:p.sc?m(r,p.sc,1,0,l):c,fc:p.fc?m(r,p.fc,1,0,l):c,fh:p.fh?m(r,p.fh,0,0,l):c,fs:p.fs?m(r,p.fs,0,.01,l):c,fb:p.fb?m(r,p.fb,0,.01,l):c,t:p.t?m(r,p.t,0,0,l):c},this.s=VT.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function zo(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Q(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}zo.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,c=lt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new zT(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:c(this._elem,this._textData.p.a,0,0,this),f:c(this._elem,this._textData.p.f,0,0,this),l:c(this._elem,this._textData.p.l,0,0,this),r:c(this._elem,this._textData.p.r,0,0,this),p:c(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=c(this._elem,this._textData.m.a,1,0,this)},zo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,c=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,Y,x=r.l,O,F,D,G,L,w,T,C,N,$,W,X,it,At,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},Y=nt._length-1;var _t;for(X=0,M=0;M<Y;M+=1)_t=Zr.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength;M=Y,ft.v.c&&(_t=Zr.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,G=0,L=!0,$=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,C=N[w-1],D=N[w],W=D.partialLength}Y=x.length,y=0,k=0;var mt=r.finalSize*1.2*.714,rt=!0,_,P,g,E,j;E=c.length;var B,ct=-1,gt,St,$t,Vt=F,fe=T,rr=w,Jr=-1,ir,Le,fr,Yt,ut,Ci,oo,_i,ti="",wi=this.defaultPropsArray,ki;if(r.j===2||r.j===1){var or=0,so=0,ao=r.j===2?-.5:-1,Pr=0,no=!0;for(M=0;M<Y;M+=1)if(x[M].n){for(or&&(or+=so);Pr<M;)x[Pr].animatorJustifyOffset=or,Pr+=1;or=0,no=!0}else{for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(no&&r.j===2&&(so+=_.t.v*ao),P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?or+=_.t.v*B[0]*ao:or+=_.t.v*B*ao);no=!1}for(or&&(or+=so);Pr<M;)x[Pr].animatorJustifyOffset=or,Pr+=1}for(M=0;M<Y;M+=1){if(p.reset(),ir=1,x[M].n)y=0,k+=r.yOffset,k+=rt?1:0,F=Vt,rt=!1,this._hasMaskedPath&&(T=fe,w=rr,N=$[T].points,C=N[w-1],D=N[w],W=D.partialLength,G=0),ti="",_i="",Ci="",ki="",wi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Jr!==x[M].line){switch(r.j){case 1:F+=X-r.lineWidths[x[M].line];break;case 2:F+=(X-r.lineWidths[x[M].line])/2;break;default:break}Jr=x[M].line}ct!==x[M].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[M].an/2,ct=x[M].ind),F+=l[0]*x[M].an*.005;var Fr=0;for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Fr+=_.p.v[0]*B[0]:Fr+=_.p.v[0]*B),_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Fr+=_.a.v[0]*B[0]:Fr+=_.a.v[0]*B);for(L=!0,this._pathData.a.v&&(F=x[0].an*.5+(X-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(Y-1),F+=this._pathData.f.v);L;)G+W>=F+Fr||!N?(it=(F+Fr-G)/D.partialLength,St=C.point[0]+(D.point[0]-C.point[0])*it,$t=C.point[1]+(D.point[1]-C.point[1])*it,p.translate(-l[0]*x[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(G+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ft.v.c?(w=0,T=0,N=$[T].points):(G-=D.partialLength,N=null)),N&&(C=D,D=N[w],W=D.partialLength));gt=x[M].an/2-x[M].add,p.translate(-gt,0,0)}else gt=x[M].an/2-x[M].add,p.translate(-gt,0,0),p.translate(-l[0]*x[M].an*.005,-l[1]*mt*.01,0);for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?B.length?F+=_.t.v*B[0]:F+=_.t.v*B:B.length?y+=_.t.v*B[0]:y+=_.t.v*B));for(r.strokeWidthAnim&&(fr=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Yt=[r.fc[0],r.fc[1],r.fc[2]]),g=0;g<E;g+=1)_=c[g].a,_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.translate(-_.a.v[0]*B[0],-_.a.v[1]*B[1],_.a.v[2]*B[2]):p.translate(-_.a.v[0]*B,-_.a.v[1]*B,_.a.v[2]*B));for(g=0;g<E;g+=1)_=c[g].a,_.s.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.scale(1+(_.s.v[0]-1)*B[0],1+(_.s.v[1]-1)*B[1],1):p.scale(1+(_.s.v[0]-1)*B,1+(_.s.v[1]-1)*B,1));for(g=0;g<E;g+=1){if(_=c[g].a,P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),_.sk.propType&&(B.length?p.skewFromAxis(-_.sk.v*B[0],_.sa.v*B[1]):p.skewFromAxis(-_.sk.v*B,_.sa.v*B)),_.r.propType&&(B.length?p.rotateZ(-_.r.v*B[2]):p.rotateZ(-_.r.v*B)),_.ry.propType&&(B.length?p.rotateY(_.ry.v*B[1]):p.rotateY(_.ry.v*B)),_.rx.propType&&(B.length?p.rotateX(_.rx.v*B[0]):p.rotateX(_.rx.v*B)),_.o.propType&&(B.length?ir+=(_.o.v*B[0]-ir)*B[0]:ir+=(_.o.v*B-ir)*B),r.strokeWidthAnim&&_.sw.propType&&(B.length?fr+=_.sw.v*B[0]:fr+=_.sw.v*B),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)B.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*B[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*B;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)B.length?Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B[0]:Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B;_.fh.propType&&(B.length?Yt=hu(Yt,_.fh.v*B[0]):Yt=hu(Yt,_.fh.v*B)),_.fs.propType&&(B.length?Yt=du(Yt,_.fs.v*B[0]):Yt=du(Yt,_.fs.v*B)),_.fb.propType&&(B.length?Yt=cu(Yt,_.fb.v*B[0]):Yt=cu(Yt,_.fb.v*B))}}for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),this._hasMaskedPath?B.length?p.translate(0,_.p.v[1]*B[0],-_.p.v[2]*B[1]):p.translate(0,_.p.v[1]*B,-_.p.v[2]*B):B.length?p.translate(_.p.v[0]*B[0],_.p.v[1]*B[1],-_.p.v[2]*B[2]):p.translate(_.p.v[0]*B,_.p.v[1]*B,-_.p.v[2]*B));if(r.strokeWidthAnim&&(Ci=fr<0?0:fr),r.strokeColorAnim&&(oo="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(_i="rgb("+Math.round(Yt[0]*255)+","+Math.round(Yt[1]*255)+","+Math.round(Yt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,l[1]*mt*.01+k,0),this._pathData.p.v){At=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Bo=Math.atan(At)*180/Math.PI;D.point[0]<C.point[0]&&(Bo+=180),p.rotate(-Bo*Math.PI/180)}p.translate(St,$t,0),F-=l[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(F+=x[M].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line]),0,0);break;case 2:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*x[M].an*.005,l[1]*mt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}b==="html"?ti=p.toCSS():b==="svg"?ti=p.to2dCSS():wi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],ki=ir}I<=M?(j=new rh(ki,Ci,oo,_i,ti,wi),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[M],this.lettersChangedFlag=j.update(ki,Ci,oo,_i,ti,wi)||this.lettersChangedFlag)}}},zo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},zo.prototype.mHelper=new Pe,zo.prototype.defaultPropsArray=[],A([Ne],zo);function Ir(){}Ir.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new zo(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Ir.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Ir.prototype.createPathShape=function(r,s){var l,c=s.length,m,p="";for(l=0;l<c;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=Qu(m,m.i.length,!0,r));return p},Ir.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Ir.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Ir.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Ir.prototype.applyTextPropertiesToMatrix=function(r,s,l,c,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(c,m,0)},Ir.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Ir.prototype.emptyProp=new rh,Ir.prototype.destroy=function(){},Ir.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var BT={shapes:[]};function Si(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}A([to,Ps,Wa,Fs,eo,Ya,Ir],Si),Si.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Ct("text"))},Si.prototype.buildTextContents=function(r){for(var s=0,l=r.length,c=[],m="";s<l;)r[s]==="\r"||r[s]===""?(c.push(m),m=""):m+=r[s],s+=1;return c.push(m),c},Si.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var c=l.it[l.it.length-1];c.s&&(c.s.k[0]=s,c.s.k[1]=s)}}return r},Si.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Q(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var c=this.globalData.fontManager.getFontByName(l.f);if(c.fClass)this.layerElement.setAttribute("class",c.fClass);else{this.layerElement.setAttribute("font-family",c.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",Y=this.data.singleShape,x=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(Y&&!I&&!l.sz){var G=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}G.setAttribute("text-anchor",L),G.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||Ct("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",G.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(G)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!Y||r===0){if(y=T>r?this.textSpans[r].span:Ct(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=Ct("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),Y&&(b[r].n&&(x=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,x,O),x+=b[r].l||0,x+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],c.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var $;if(C.t===1)$=new Xa(C.data,this.globalData,this);else{var W=BT;C.data&&C.data.shapes&&(W=this.buildShapeData(C.data,l.finalSize)),$=new ce(W,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else Y&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},Si.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},Si.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},Si.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;s=c.length;var m,p,b;for(r=0;r<s;r+=1)c[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function ih(r,s,l){this.initElement(r,s,l)}A([ja],ih),ih.prototype.createContent=function(){var r=Ct("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function io(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}io.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},io.prototype.renderFrame=function(){},io.prototype.getBaseElement=function(){return null},io.prototype.destroy=function(){},io.prototype.sourceRectAtTime=function(){},io.prototype.hide=function(){},A([to,Ps,Fs,eo],io);function Ae(){}A([Fe],Ae),Ae.prototype.createNull=function(r){return new io(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new ce(r,this.globalData,this)},Ae.prototype.createText=function(r){return new Si(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new ja(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new ih(r,this.globalData,this)},Ae.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=Ct("clipPath"),c=Ct("rect");c.setAttribute("width",r.w),c.setAttribute("height",r.h),c.setAttribute("x",0),c.setAttribute("y",0);var m=tr();l.setAttribute("id",m),l.appendChild(c),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Q(r.layers.length)},Ae.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ae.prototype.updateContainerSize=function(){},Ae.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ae.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,dl()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var c="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(c===-1)return;if(!this.elements[c]||this.elements[c]===!0)this.buildItem(c),this.addPendingElement(l);else{var m=s[c],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ae.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var c="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[c],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ae.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var c=0,m;c<s;)this.elements[c]&&this.elements[c]!==!0&&this.elements[c].getBaseElement()&&(m=this.elements[c].getBaseElement()),c+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function Ii(){}A([to,Ps,Fs,eo,Ya],Ii),Ii.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},Ii.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,c=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=c-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},Ii.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},Ii.prototype.setElements=function(r){this.elements=r},Ii.prototype.getElements=function(){return this.elements},Ii.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},Ii.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Xa(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Q(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Ae,Ii,Wa],Xa),Xa.prototype.createComp=function(r){return new Xa(r,this.globalData,this)};function oh(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=Ct("svg");var l="";if(s&&s.title){var c=Ct("title"),m=tr();c.setAttribute("id",m),c.textContent=s.title,this.svgElement.appendChild(c),l+=m}if(s&&s.description){var p=Ct("desc"),b=tr();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=Ct("defs");this.svgElement.appendChild(I);var y=Ct("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Ae],oh),oh.prototype.createComp=function(r){return new Xa(r,this.globalData,this)},ZE("svg",oh),Qi.registerModifier("tm",Dr),Qi.registerModifier("pb",Va),Qi.registerModifier("rp",Qr),Qi.registerModifier("rd",za),Qi.registerModifier("zz",Ha),Qi.registerModifier("op",Ua),Wt})});var wl=globalThis,kl=wl.ShadowRoot&&(wl.ShadyCSS===void 0||wl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ah=Symbol(),tf=new WeakMap,Za=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==ah)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(kl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=tf.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&tf.set(t,o))}return o}toString(){return this.cssText}},ef=n=>new Za(typeof n=="string"?n:n+"",void 0,ah),z=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,i,a)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[a+1],n[0]);return new Za(t,n,ah)},nh=(n,o)=>{if(kl)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=wl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,n.appendChild(e)}},Nl=kl?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return ef(t)})(n):n;var{is:qT,defineProperty:XT,getOwnPropertyDescriptor:ZT,getOwnPropertyNames:QT,getOwnPropertySymbols:JT,getPrototypeOf:tx}=Object,lo=globalThis,rf=lo.trustedTypes,ex=rf?rf.emptyScript:"",lh=lo.reactiveElementPolyfillSupport,Qa=(n,o)=>n,Ja={toAttribute(n,o){switch(o){case Boolean:n=n?ex:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Ll=(n,o)=>!qT(n,o),of={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Ll},sf,af;(sf=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(af=lo.litPropertyMetadata)!=null||(lo.litPropertyMetadata=new WeakMap);var Ni=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=of){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&XT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var d;let{get:i,set:a}=(d=ZT(this.prototype,o))!=null?d:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let v=i==null?void 0:i.call(this);a.call(this,f),this.requestUpdate(o,v,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:of}static _$Ei(){if(this.hasOwnProperty(Qa("elementProperties")))return;let o=tx(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Qa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qa("properties"))){let t=this.properties,e=[...QT(t),...JT(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(Nl(i))}else o!==void 0&&t.push(Nl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return nh(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var a;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let d=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:Ja).toAttribute(t,e.type);this._$Em=o,d==null?this.removeAttribute(i):this.setAttribute(i,d),this._$Em=null}}_$AK(o,t){var a;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let d=e.getPropertyOptions(i),f=typeof d.converter=="function"?{fromAttribute:d.converter}:((a=d.converter)==null?void 0:a.fromAttribute)!==void 0?d.converter:Ja;this._$Em=i,this[i]=f.fromAttribute(t,d.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:Ll)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[d,f]of a)f.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(a=>{var d;return(d=a.hostUpdate)==null?void 0:d.call(a)}),this.update(t)):this._$EU()}catch(a){throw o=!1,this._$EU(),a}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},nf;Ni.elementStyles=[],Ni.shadowRootOptions={mode:"open"},Ni[Qa("elementProperties")]=new Map,Ni[Qa("finalized")]=new Map,lh==null||lh({ReactiveElement:Ni}),((nf=lo.reactiveElementVersions)!=null?nf:lo.reactiveElementVersions=[]).push("2.0.4");var en=globalThis,Ml=en.trustedTypes,lf=Ml?Ml.createPolicy("lit-html",{createHTML:n=>n}):void 0,hh="$lit$",Li=`lit$${Math.random().toFixed(9).slice(2)}$`,ph="?"+Li,rx=`<${ph}>`,Go=document,rn=()=>Go.createComment(""),on=n=>n===null||typeof n!="object"&&typeof n!="function",mh=Array.isArray,ff=n=>mh(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",dh=`[
3
- \f\r]`,tn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,df=/-->/g,cf=/>/g,Ho=RegExp(`>|${dh}(?:([^\\s"'>=/]+)(${dh}*=${dh}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),hf=/'/g,pf=/"/g,vf=/^(?:script|style|textarea|title)$/i,uh=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),S=uh(1),pC=uh(2),mC=uh(3),$e=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),mf=new WeakMap,Uo=Go.createTreeWalker(Go,129);function gf(n,o){if(!mh(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return lf!==void 0?lf.createHTML(o):o}var bf=(n,o)=>{let t=n.length-1,e=[],i,a=o===2?"<svg>":o===3?"<math>":"",d=tn;for(let f=0;f<t;f++){let v=n[f],A,R,H=-1,J=0;for(;J<v.length&&(d.lastIndex=J,R=d.exec(v),R!==null);)J=d.lastIndex,d===tn?R[1]==="!--"?d=df:R[1]!==void 0?d=cf:R[2]!==void 0?(vf.test(R[2])&&(i=RegExp("</"+R[2],"g")),d=Ho):R[3]!==void 0&&(d=Ho):d===Ho?R[0]===">"?(d=i!=null?i:tn,H=-1):R[1]===void 0?H=-2:(H=d.lastIndex-R[2].length,A=R[1],d=R[3]===void 0?Ho:R[3]==='"'?pf:hf):d===pf||d===hf?d=Ho:d===df||d===cf?d=tn:(d=Ho,i=void 0);let q=d===Ho&&n[f+1].startsWith("/>")?" ":"";a+=d===tn?v+rx:H>=0?(e.push(A),v.slice(0,H)+hh+v.slice(H)+Li+q):v+Li+(H===-2?f:q)}return[gf(n,a+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},sn=class n{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let a=0,d=0,f=o.length-1,v=this.parts,[A,R]=bf(o,t);if(this.el=n.createElement(A,e),Uo.currentNode=this.el.content,t===2||t===3){let H=this.el.content.firstChild;H.replaceWith(...H.childNodes)}for(;(i=Uo.nextNode())!==null&&v.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let H of i.getAttributeNames())if(H.endsWith(hh)){let J=R[d++],q=i.getAttribute(H).split(Li),Q=/([.?@])?(.*)/.exec(J);v.push({type:1,index:a,name:Q[2],strings:q,ctor:Q[1]==="."?Rl:Q[1]==="?"?Dl:Q[1]==="@"?Pl:Wo}),i.removeAttribute(H)}else H.startsWith(Li)&&(v.push({type:6,index:a}),i.removeAttribute(H));if(vf.test(i.tagName)){let H=i.textContent.split(Li),J=H.length-1;if(J>0){i.textContent=Ml?Ml.emptyScript:"";for(let q=0;q<J;q++)i.append(H[q],rn()),Uo.nextNode(),v.push({type:2,index:++a});i.append(H[J],rn())}}}else if(i.nodeType===8)if(i.data===ph)v.push({type:2,index:a});else{let H=-1;for(;(H=i.data.indexOf(Li,H+1))!==-1;)v.push({type:7,index:a}),H+=Li.length-1}a++}}static createElement(o,t){let e=Go.createElement("template");return e.innerHTML=o,e}};function Ko(n,o,t=n,e){var d,f,v;if(o===$e)return o;let i=e!==void 0?(d=t.o)==null?void 0:d[e]:t.l,a=on(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),a===void 0?i=void 0:(i=new a(n),i._$AT(n,t,e)),e!==void 0?((v=t.o)!=null?v:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Ko(n,i._$AS(n,o.values),i,e)),o}var Ol=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var A;let{el:{content:t},parts:e}=this._$AD,i=((A=o==null?void 0:o.creationScope)!=null?A:Go).importNode(t,!0);Uo.currentNode=i;let a=Uo.nextNode(),d=0,f=0,v=e[0];for(;v!==void 0;){if(d===v.index){let R;v.type===2?R=new Vs(a,a.nextSibling,this,o):v.type===1?R=new v.ctor(a,v.name,v.strings,this,o):v.type===6&&(R=new Fl(a,this,o)),this._$AV.push(R),v=e[++f]}d!==(v==null?void 0:v.index)&&(a=Uo.nextNode(),d++)}return Uo.currentNode=Go,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Vs=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var a;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(a=i==null?void 0:i.isConnected)!=null?a:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Ko(this,o,t),on(o)?o===U||o==null||o===""?(this._$AH!==U&&this._$AR(),this._$AH=U):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):ff(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==U&&on(this._$AH)?this._$AA.nextSibling.data=o:this.T(Go.createTextNode(o)),this._$AH=o}$(o){var a;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=sn.createElement(gf(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(t);else{let d=new Ol(i,this),f=d.u(this.options);d.p(t),this.T(f),this._$AH=d}}_$AC(o){let t=mf.get(o.strings);return t===void 0&&mf.set(o.strings,t=new sn(o)),t}k(o){mh(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let a of o)i===t.length?t.push(e=new n(this.O(rn()),this.O(rn()),this,this.options)):e=t[i],e._$AI(a),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Wo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,a){this.type=1,this._$AH=U,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=U}_$AI(o,t=this,e,i){let a=this.strings,d=!1;if(a===void 0)o=Ko(this,o,t,0),d=!on(o)||o!==this._$AH&&o!==$e,d&&(this._$AH=o);else{let f=o,v,A;for(o=a[0],v=0;v<a.length-1;v++)A=Ko(this,f[e+v],t,v),A===$e&&(A=this._$AH[v]),d||(d=!on(A)||A!==this._$AH[v]),A===U?o=U:o!==U&&(o+=(A!=null?A:"")+a[v+1]),this._$AH[v]=A}d&&!i&&this.j(o)}j(o){o===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Rl=class extends Wo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===U?void 0:o}},Dl=class extends Wo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==U)}},Pl=class extends Wo{constructor(o,t,e,i,a){super(o,t,e,i,a),this.type=5}_$AI(o,t=this){var d;if((o=(d=Ko(this,o,t,0))!=null?d:U)===$e)return;let e=this._$AH,i=o===U&&e!==U||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,a=o!==U&&(e===U||i);i&&this.element.removeEventListener(this.name,this,e),a&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Fl=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Ko(this,o)}},yf={M:hh,P:Li,A:ph,C:1,L:bf,R:Ol,D:ff,V:Ko,I:Vs,H:Wo,N:Dl,U:Pl,B:Rl,F:Fl},ch=en.litHtmlPolyfillSupport,uf;ch==null||ch(sn,Vs),((uf=en.litHtmlVersions)!=null?uf:en.litHtmlVersions=[]).push("3.2.0");var Ef=(n,o,t)=>{var a,d;let e=(a=t==null?void 0:t.renderBefore)!=null?a:o,i=e._$litPart$;if(i===void 0){let f=(d=t==null?void 0:t.renderBefore)!=null?d:null;e._$litPart$=i=new Vs(o.insertBefore(rn(),f),f,void 0,t!=null?t:{})}return i._$AI(n),i};var co=class extends Ni{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Ef(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},Tf;co._$litElement$=!0,co.finalized=!0,(Tf=globalThis.litElementHydrateSupport)==null||Tf.call(globalThis,{LitElement:co});var fh=globalThis.litElementPolyfillSupport;fh==null||fh({LitElement:co});var xf;((xf=globalThis.litElementVersions)!=null?xf:globalThis.litElementVersions=[]).push("4.1.0");var ix={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Ll},ox=(n=ix,o,t)=>{let{kind:e,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,n),e==="accessor"){let{name:d}=t;return{set(f){let v=o.get.call(this);o.set.call(this,f),this.requestUpdate(d,v,n)},init(f){return f!==void 0&&this.P(d,void 0,n),f}}}if(e==="setter"){let{name:d}=t;return function(f){let v=this[d];o.call(this,f),this.requestUpdate(d,v,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?ox(n,o,t):((e,i,a)=>{let d=i.hasOwnProperty(a);return i.constructor.createProperty(a,d?{...e,wrapped:!0}:e),d?Object.getOwnPropertyDescriptor(i,a):void 0})(n,o,t)}function dt(n){return u({...n,state:!0,attribute:!1})}function Af(n){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,n)}}var ei=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function zt(n,o){return(t,e,i)=>{let a=d=>{var f,v;return(v=(f=d.renderRoot)==null?void 0:f.querySelector(n))!=null?v:null};if(o){let{get:d,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let v=Symbol();return{get(){return this[v]},set(A){this[v]=A}}})();return ei(t,e,{get(){let v=d.call(this);return v===void 0&&(v=a(this),(v!==null||this.hasUpdated)&&f.call(this,v)),v}})}return ei(t,e,{get(){return a(this)}})}}var vh;function Sf(n){return(o,t)=>ei(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:vh!=null?vh:vh=document.createDocumentFragment()).querySelectorAll(n)}})}function qt(n){return(o,t)=>{let{slot:e,selector:i}=n!=null?n:{},a="slot"+(e?`[name=${e}]`:":not([name])");return ei(o,t,{get(){var v,A;let d=(v=this.renderRoot)==null?void 0:v.querySelector(a),f=(A=d==null?void 0:d.assignedElements(n))!=null?A:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function If(n){return(o,t)=>{let{slot:e}=n!=null?n:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ei(o,t,{get(){var d,f;let a=(d=this.renderRoot)==null?void 0:d.querySelector(i);return(f=a==null?void 0:a.assignedNodes(n))!=null?f:[]}})}}var sx={PREFIX:"mdc",SEPARATOR:"-"},ax={NAMESPACE:sx},gh=ax;var nx=n=>[gh.NAMESPACE.PREFIX,n].join(gh.NAMESPACE.SEPARATOR),V={constructTagName:nx};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var Cf=V.constructTagName("buttonsimple"),Yo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},zs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},an={SIZE:Yo[32],TYPE:zs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Mi=V.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},nn={40:40,32:32,28:28,24:24},Cr={64:64,52:52,20:20,...nn},ri={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Bs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},_f={DEFAULT:ri.DEFAULT,ACCENT:ri.ACCENT,NEGATIVE:ri.NEGATIVE},sr={VARIANT:Bt.PRIMARY,SIZE:nn[32],COLOR:ri.DEFAULT,TYPE_INTERNAL:Bs.ICON,TYPE:zs.BUTTON,INVERTED:!1};var $l=n=>{class o extends n{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Bt).includes(i)?i:sr.VARIANT)}setColor(i){let a=Object.values(ri).includes(i),d=this.variant===Bt.TERTIARY&&!Object.values(_f).includes(i);!a||d?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let d=this.typeInternal===Bs.ICON?Object.values(Cr).includes(i)&&!(i===Cr[20]&&this.variant!==Bt.TERTIARY):Object.values(nn).includes(i);this.setAttribute("size",d?`${i}`:`${sr.SIZE}`)}inferButtonType(){var A,R,H,J,q,Q;let i=(R=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,a=(J=(H=this.shadowRoot)==null?void 0:H.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,d=this.prefixIcon||a&&a>0,f=(Q=(q=this.shadowRoot)==null?void 0:q.querySelector('slot[name="postfix"]'))==null?void 0:Q.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,v=this.postfixIcon||f&&f>0;i&&(d||v)?(this.typeInternal=Bs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(d||v)?(this.typeInternal=Bs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Bs.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([dt()],o.prototype,"typeInternal",2),o};var wf=z`
1
+ "use strict";(()=>{var GT=Object.create;var sh=Object.defineProperty;var ef=Object.getOwnPropertyDescriptor;var KT=Object.getOwnPropertyNames;var WT=Object.getPrototypeOf,YT=Object.prototype.hasOwnProperty;var qT=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var jT=(n,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of KT(o))!YT.call(n,i)&&i!==t&&sh(n,i,{get:()=>o[i],enumerable:!(e=ef(o,i))||e.enumerable});return n};var XT=(n,o,t)=>(t=n!=null?GT(WT(n)):{},jT(o||!n||!n.__esModule?sh(t,"default",{value:n,enumerable:!0}):t,n));var h=(n,o,t,e)=>{for(var i=e>1?void 0:e?ef(o,t):o,a=n.length-1,d;a>=0;a--)(d=n[a])&&(i=(e?d(o,t,i):d(i))||i);return e&&i&&sh(o,t,i),i};var hv=qT((gn,id)=>{typeof navigator<"u"&&function(n,o){typeof gn=="object"&&typeof id<"u"?id.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(gn,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},a=function(){return t},d=function(s){o=s},f=function(){return o};function v(r){return document.createElement(r)}function x(r,s){var l,c=r.length,m;for(l=0;l<c;l+=1){m=r[l].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function R(r,s){return Object.getOwnPropertyDescriptor(r,s)}function H(r){function s(){}return s.prototype=r,s}var J=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(l){this.audios.push(l)},pause:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].pause()},resume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].resume()},setRate:function(l){var c,m=this.audios.length;for(c=0;c<m;c+=1)this.audios[c].setRate(l)},createAudio:function(l){return this.audioFactory?this.audioFactory(l):window.Howl?new window.Howl({src:[l]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(l){this.audioFactory=l},setVolume:function(l){this._volume=l,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),W=function(){function r(l,c){var m=0,p=[],b;switch(l){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<c;m+=1)p.push(b);return p}function s(l,c){return l==="float32"?new Float32Array(c):l==="int16"?new Int16Array(c):l==="uint8c"?new Uint8ClampedArray(c):r(l,c)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function Z(r){return Array.apply(null,{length:r})}function ot(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ot=function(l){return typeof l}:ot=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},ot(r)}var st=!0,ht=null,bt=null,yt="",It=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Gt=Math.pow,Pt=Math.sqrt,ne=Math.floor,Ge=Math.max,qt=Math.min,Ee={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,l=r.length;for(s=0;s<l;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=ot(r);if(s==="object"&&r.length){var l=Z(r.length),c,m=r.length;for(c=0;c<m;c+=1)l[c]=Math.abs(r[c]);return l}return Math.abs(r)};var xe=150,kt=Math.PI/180,se=.5519;function Ke(r){Rt=!!r}function Qe(r){return Rt?Math.round(r):r}function Je(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function Ar(r,s,l,c){this.type=r,this.currentTime=s,this.totalTime=l,this.direction=c<0?-1:1}function ll(r,s){this.type=r,this.direction=s<0?-1:1}function lu(r,s,l,c){this.type=r,this.currentLoop=l,this.totalLoops=s,this.direction=c<0?-1:1}function du(r,s,l){this.type=r,this.firstFrame=s,this.totalFrames=l}function cu(r,s){this.type=r,this.target=s}function GE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function KE(r){this.type="configError",this.nativeError=r}function oC(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,yt+"__lottie_element_"+r}}();function Wc(r,s,l){var c,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=l*(1-s),k=l*(1-I*s),M=l*(1-(1-I)*s),b%6){case 0:c=l,m=M,p=y;break;case 1:c=k,m=l,p=y;break;case 2:c=y,m=l,p=M;break;case 3:c=y,m=k,p=l;break;case 4:c=M,m=y,p=l;break;case 5:c=l,m=y,p=k;break;default:break}return[c,m,p]}function Yc(r,s,l){var c=Math.max(r,s,l),m=Math.min(r,s,l),p=c-m,b,I=c===0?0:p/c,y=c/255;switch(c){case m:b=0;break;case r:b=s-l+p*(s<l?6:0),b/=6*p;break;case s:b=l-r+p*2,b/=6*p;break;case l:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function hu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[1]+=s,l[1]>1?l[1]=1:l[1]<=0&&(l[1]=0),Wc(l[0],l[1],l[2])}function pu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[2]+=s,l[2]>1?l[2]=1:l[2]<0&&(l[2]=0),Wc(l[0],l[1],l[2])}function mu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[0]+=s/360,l[0]>1?l[0]-=1:l[0]<0&&(l[0]+=1),Wc(l[0],l[1],l[2])}var sC=function(){var r=[],s,l;for(s=0;s<256;s+=1)l=s.toString(16),r[s]=l.length===1?"0"+l:l;return function(c,m,p){return c<0&&(c=0),m<0&&(m=0),p<0&&(p=0),"#"+r[c]+r[m]+r[p]}}(),WE=function(s){st=!!s},YE=function(){return st},qE=function(s){ht=s},dl=function(){return ht},aC=function(s){bt=s},uu=function(){return bt},cl=function(s){xe=s},Ra=function(){return xe},jE=function(s){yt=s},nC=function(){return yt};function Ct(r){return document.createElementNS(n,r)}function hl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hl=function(l){return typeof l}:hl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},hl(r)}var Da=function(){var r=1,s=[],l,c,m={onmessage:function(){},postMessage:function(O){l({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(A){if(window.Worker&&window.Blob&&a()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",A.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return l=A,m}function I(){c||(c=b(function(O){function F(){function G(rt,_){var P,g,E=rt.length,j,B,ct,gt;for(g=0;g<E;g+=1)if(P=rt[g],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var St=P.masksProperties;for(B=St.length,j=0;j<B;j+=1)if(St[j].pt.k.i)N(St[j].pt.k);else for(gt=St[j].pt.k.length,ct=0;ct<gt;ct+=1)St[j].pt.k[ct].s&&N(St[j].pt.k[ct].s[0]),St[j].pt.k[ct].e&&N(St[j].pt.k[ct].e[0])}P.ty===0?(P.layers=T(P.refId,_),G(P.layers,_)):P.ty===4?C(P.shapes):P.ty===5&&_t(P)}}function L(rt,_){if(rt){var P=0,g=rt.length;for(P=0;P<g;P+=1)rt[P].t===1&&(rt[P].data.layers=T(rt[P].data.refId,_),G(rt[P].data.layers,_))}}function w(rt,_){for(var P=0,g=_.length;P<g;){if(_[P].id===rt)return _[P];P+=1}return null}function T(rt,_){var P=w(rt,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function C(rt){var _,P=rt.length,g,E;for(_=P-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,g=0;g<E;g+=1)rt[_].ks.k[g].s&&N(rt[_].ks.k[g].s[0]),rt[_].ks.k[g].e&&N(rt[_].ks.k[g].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,P=rt.i.length;for(_=0;_<P;_+=1)rt.i[_][0]+=rt.v[_][0],rt.i[_][1]+=rt.v[_][1],rt.o[_][0]+=rt.v[_][0],rt.o[_][1]+=rt.v[_][1]}function $(rt,_){var P=_?_.split("."):[100,100,100];return rt[0]>P[0]?!0:P[0]>rt[0]?!1:rt[1]>P[1]?!0:P[1]>rt[1]?!1:rt[2]>P[2]?!0:P[2]>rt[2]?!1:null}var Y=function(){var rt=[4,4,14];function _(g){var E=g.t.d;g.t.d={k:[{s:E,t:0}]}}function P(g){var E,j=g.length;for(E=0;E<j;E+=1)g[E].ty===5&&_(g[E])}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,j=g.assets.length;for(E=0;E<j;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),X=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var P,g=_.chars.length;for(P=0;P<g;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function _(g){var E=g.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(g){var E,j=g.length;for(E=0;E<j;E+=1)g[E].ty===5&&_(g[E])}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,j=g.assets.length;for(E=0;E<j;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),At=function(){var rt=[4,1,9];function _(g){var E,j=g.length,B,ct;for(E=0;E<j;E+=1)if(g[E].ty==="gr")_(g[E].it);else if(g[E].ty==="fl"||g[E].ty==="st")if(g[E].c.k&&g[E].c.k[0].i)for(ct=g[E].c.k.length,B=0;B<ct;B+=1)g[E].c.k[B].s&&(g[E].c.k[B].s[0]/=255,g[E].c.k[B].s[1]/=255,g[E].c.k[B].s[2]/=255,g[E].c.k[B].s[3]/=255),g[E].c.k[B].e&&(g[E].c.k[B].e[0]/=255,g[E].c.k[B].e[1]/=255,g[E].c.k[B].e[2]/=255,g[E].c.k[B].e[3]/=255);else g[E].c.k[0]/=255,g[E].c.k[1]/=255,g[E].c.k[2]/=255,g[E].c.k[3]/=255}function P(g){var E,j=g.length;for(E=0;E<j;E+=1)g[E].ty===4&&_(g[E].shapes)}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,j=g.assets.length;for(E=0;E<j;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(g){var E,j=g.length,B,ct;for(E=j-1;E>=0;E-=1)if(g[E].ty==="sh")if(g[E].ks.k.i)g[E].ks.k.c=g[E].closed;else for(ct=g[E].ks.k.length,B=0;B<ct;B+=1)g[E].ks.k[B].s&&(g[E].ks.k[B].s[0].c=g[E].closed),g[E].ks.k[B].e&&(g[E].ks.k[B].e[0].c=g[E].closed);else g[E].ty==="gr"&&_(g[E].it)}function P(g){var E,j,B=g.length,ct,gt,St,$t;for(j=0;j<B;j+=1){if(E=g[j],E.hasMask){var Vt=E.masksProperties;for(gt=Vt.length,ct=0;ct<gt;ct+=1)if(Vt[ct].pt.k.i)Vt[ct].pt.k.c=Vt[ct].cl;else for($t=Vt[ct].pt.k.length,St=0;St<$t;St+=1)Vt[ct].pt.k[St].s&&(Vt[ct].pt.k[St].s[0].c=Vt[ct].cl),Vt[ct].pt.k[St].e&&(Vt[ct].pt.k[St].e[0].c=Vt[ct].cl)}E.ty===4&&_(E.shapes)}}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,j=g.assets.length;for(E=0;E<j;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}();function nt(rt){rt.__complete||(At(rt),Y(rt),X(rt),it(rt),ft(rt),G(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function _t(rt){rt.t.a.length===0&&"m"in rt.t.p}var mt={};return mt.completeData=nt,mt.checkColors=At,mt.checkChars=X,mt.checkPathProperties=it,mt.checkShapes=ft,mt.completeLayers=G,mt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function G(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&hl(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,C,N){var $,Y=new XMLHttpRequest;try{Y.responseType="json"}catch{}Y.onreadystatechange=function(){if(Y.readyState===4)if(Y.status===200)$=G(Y),C($);else try{$=G(Y),C($)}catch(X){N&&N(X)}};try{Y.open(["G","E","T"].join(""),w,!0)}catch{Y.open(["G","E","T"].join(""),T+"/"+w,!0)}Y.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.dataManager.completeData(G),p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var D=O.data.animation;p.dataManager.completeData(D),p.postMessage({id:O.data.id,payload:D,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),c.onmessage=function(A){var O=A.data,F=O.id,D=s[F];s[F]=null,O.status==="success"?D.onComplete(O.payload):D.onError&&D.onError()})}function y(A,O){r+=1;var F="processId_"+r;return s[F]={onComplete:A,onError:O},F}function k(A,O,F){I();var D=y(O,F);c.postMessage({type:"loadAnimation",path:A,fullPath:window.location.origin+window.location.pathname,id:D})}function M(A,O,F){I();var D=y(O,F);c.postMessage({type:"loadData",path:A,fullPath:window.location.origin+window.location.pathname,id:D})}function q(A,O,F){I();var D=y(O,F);c.postMessage({type:"complete",animation:A,id:D})}return{loadAnimation:k,loadData:M,completeAnimation:q}}(),XE=function(){var r=function(){var L=v("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function c(L,w,T){var C="";if(L.e)C=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=w+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var w=0,T=setInterval((function(){var C=L.getBBox();(C.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(L){var w=c(L,this.assetsPath,this.path),T=Ct("image");It?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=c(L,this.assetsPath,this.path),T=v("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var C={img:T,assetData:L};return C}function I(L){var w={assetData:L},T=c(L,this.assetsPath,this.path);return Da.loadData(T,(function(C){w.img=C,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function y(L,w){this.imagesLoadedCb=w;var T,C=L.length;for(T=0;T<C;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function q(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function A(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function D(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function G(){this._imageLoaded=s.bind(this),this._footageLoaded=l.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return G.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:A,getAsset:q,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:l,setCacheType:D},G}();function fu(){}fu.prototype={triggerEvent:function(s,l){if(this._cbs[s])for(var c=this._cbs[s],m=0;m<c.length;m+=1)c[m](l)},addEventListener:function(s,l){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(l),(function(){this.removeEventListener(s,l)}).bind(this)},removeEventListener:function(s,l){if(!l)this._cbs[s]=null;else if(this._cbs[s]){for(var c=0,m=this._cbs[s].length;c<m;)this._cbs[s][c]===l&&(this._cbs[s].splice(c,1),c-=1,m-=1),c+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var ZE=function(){function r(s){for(var l=s.split(`\r
2
+ `),c={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(c[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return c}return function(s){for(var l=[],c=0;c<s.length;c+=1){var m=s[c],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[c].cm)}catch{try{p.payload=r(s[c].cm)}catch{p.payload={name:s[c].cm}}}l.push(p)}return l}}(),QE=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var c=0,m=this.compositions.length;c<m;){if(this.compositions[c].data&&this.compositions[c].data.nm===l)return this.compositions[c].prepareFrame&&this.compositions[c].data.xt&&this.compositions[c].prepareFrame(this.currentFrame),this.compositions[c].compInterface;c+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Pa={},JE=function(s,l){Pa[s]=l};function tT(r){return Pa[r]}function eT(){if(Pa.canvas)return"canvas";for(var r in Pa)if(Pa[r])return r;return""}function Fa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fa=function(l){return typeof l}:Fa=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Fa(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=YE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=QE(),this.imagePreloader=new XE,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ar("drawnFrame",0,0,0),this.expressionsPlugin=dl()};x([fu],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=tT(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Da.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Da.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Fa(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},c=r.attributes;l.path=c.getNamedItem("data-animation-path")?c.getNamedItem("data-animation-path").value:c.getNamedItem("data-bm-path")?c.getNamedItem("data-bm-path").value:c.getNamedItem("bm-path")?c.getNamedItem("bm-path").value:"",l.animType=c.getNamedItem("data-anim-type")?c.getNamedItem("data-anim-type").value:c.getNamedItem("data-bm-type")?c.getNamedItem("data-bm-type").value:c.getNamedItem("bm-type")?c.getNamedItem("bm-type").value:c.getNamedItem("data-bm-renderer")?c.getNamedItem("data-bm-renderer").value:c.getNamedItem("bm-renderer")?c.getNamedItem("bm-renderer").value:eT()||"canvas";var m=c.getNamedItem("data-anim-loop")?c.getNamedItem("data-anim-loop").value:c.getNamedItem("data-bm-loop")?c.getNamedItem("data-bm-loop").value:c.getNamedItem("bm-loop")?c.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=c.getNamedItem("data-anim-autoplay")?c.getNamedItem("data-anim-autoplay").value:c.getNamedItem("data-bm-autoplay")?c.getNamedItem("data-bm-autoplay").value:c.getNamedItem("bm-autoplay")?c.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=c.getNamedItem("data-name")?c.getNamedItem("data-name").value:c.getNamedItem("data-bm-name")?c.getNamedItem("data-bm-name").value:c.getNamedItem("bm-name")?c.getNamedItem("bm-name").value:"";var b=c.getNamedItem("data-anim-prerender")?c.getNamedItem("data-anim-prerender").value:c.getNamedItem("data-bm-prerender")?c.getNamedItem("data-bm-prerender").value:c.getNamedItem("bm-prerender")?c.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,c=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<c;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(c=r.assets.length,l=0;l<c;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,Da.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=dl();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Da.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=ZE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=dl();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,c=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,c)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(c,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Fa(r[0])==="object"){var l,c=r.length;for(l=0;l<c;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var c=this.renderer.getElementByPath(r);c.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Ar(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new lu(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new ll(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new du(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new cu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ar(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new lu(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new ll(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new du(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new cu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new GE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new KE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var ue=function(){var r={},s=[],l=0,c=0,m=0,p=!0,b=!1;function I(_){for(var P=0,g=_.target;P<c;)s[P].animation===g&&(s.splice(P,1),P-=1,c-=1,g.isPaused||q()),P+=1}function y(_,P){if(!_)return null;for(var g=0;g<c;){if(s[g].elem===_&&s[g].elem!==null)return s[g].animation;g+=1}var E=new vt;return A(E,_),E.setData(_,P),E}function k(){var _,P=s.length,g=[];for(_=0;_<P;_+=1)g.push(s[_].animation);return g}function M(){m+=1,At()}function q(){m-=1}function A(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",q),s.push({elem:P,animation:_}),c+=1}function O(_){var P=new vt;return A(P,null),P.setParams(_),P}function F(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setSpeed(_,P)}function D(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setDirection(_,P)}function G(_){var P;for(P=0;P<c;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,g;for(g=0;g<c;g+=1)s[g].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<c;P+=1)s[P].animation.pause(_)}function C(_,P,g){var E;for(E=0;E<c;E+=1)s[E].animation.goToAndStop(_,P,g)}function N(_){var P;for(P=0;P<c;P+=1)s[P].animation.stop(_)}function $(_){var P;for(P=0;P<c;P+=1)s[P].animation.togglePause(_)}function Y(_){var P;for(P=c-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,g){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,B=E.length;for(j=0;j<B;j+=1)g&&E[j].setAttribute("data-bm-type",g),y(E[j],_);if(P&&B===0){g||(g="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=v("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",g),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<c;_+=1)s[_].animation.resize()}function At(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,At()}function _t(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<c;P+=1)s[P].animation.mute(_)}function rt(_){var P;for(P=0;P<c;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=G,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=X,r.resize=it,r.goToAndStop=C,r.destroy=Y,r.freeze=ft,r.unfreeze=nt,r.setVolume=_t,r.mute=mt,r.unmute=rt,r.getRegisteredAnimations=k,r}(),$a=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,$){var Y=$||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[Y])return s[Y];var X=new L([w,T,C,N]);return s[Y]=X,X}var c=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function q(w,T){return 3*T-6*w}function A(w){return 3*w}function O(w,T,C){return((M(T,C)*w+q(T,C))*w+A(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*q(T,C)*w+A(T)}function D(w,T,C,N,$){var Y,X,it=0;do X=T+(C-T)/2,Y=O(X,N,$)-w,Y>0?C=X:T=X;while(Math.abs(Y)>p&&++it<b);return X}function G(w,T,C,N){for(var $=0;$<c;++$){var Y=F(T,C,N);if(Y===0)return T;var X=O(T,C,N)-w;T-=X/Y}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],$=this._p[2],Y=this._p[3];return this._precomputed||this._precompute(),C===N&&$===Y?T:T===0?0:T===1?1:O(this._getTForX(T),N,Y)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==C||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],$=this._mSampleValues,Y=0,X=1,it=I-1;X!==it&&$[X]<=T;++X)Y+=y;--X;var At=(T-$[X])/($[X+1]-$[X]),ft=Y+At*y,nt=F(ft,C,N);return nt>=m?G(T,ft,C,N):nt===0?ft:D(T,Y,Y+y,C,N)}},r}(),vu=function(){function r(s){return s.concat(Z(s.length))}return{double:r}}(),pl=function(){return function(r,s,l){var c=0,m=r,p=Z(m),b={newElement:I,release:y};function I(){var k;return c?(c-=1,k=p[c]):k=s(),k}function y(k){c===m&&(p=vu.double(p),m*=2),l&&l(k),p[c]=k,c+=1}return b}}(),gu=function(){function r(){return{addedLength:0,percents:W("float32",Ra()),lengths:W("float32",Ra())}}return pl(8,r)}(),bu=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var c,m=l.lengths.length;for(c=0;c<m;c+=1)gu.release(l.lengths[c]);l.lengths.length=0}return pl(8,r,s)}();function rT(){var r=Math;function s(A,O,F,D,G,L){var w=A*D+O*G+F*L-G*D-L*A-F*O;return w>-.001&&w<.001}function l(A,O,F,D,G,L,w,T,C){if(F===0&&L===0&&C===0)return s(A,O,D,G,w,T);var N=r.sqrt(r.pow(D-A,2)+r.pow(G-O,2)+r.pow(L-F,2)),$=r.sqrt(r.pow(w-A,2)+r.pow(T-O,2)+r.pow(C-F,2)),Y=r.sqrt(r.pow(w-D,2)+r.pow(T-G,2)+r.pow(C-L,2)),X;return N>$?N>Y?X=N-$-Y:X=Y-$-N:Y>$?X=Y-$-N:X=$-N-Y,X>-1e-4&&X<1e-4}var c=function(){return function(A,O,F,D){var G=Ra(),L,w,T,C,N,$=0,Y,X=[],it=[],At=gu.newElement();for(T=F.length,L=0;L<G;L+=1){for(N=L/(G-1),Y=0,w=0;w<T;w+=1)C=Gt(1-N,3)*A[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,it[w]!==null&&(Y+=Gt(X[w]-it[w],2)),it[w]=X[w];Y&&(Y=Pt(Y),$+=Y),At.percents[L]=N,At.lengths[L]=$}return At.addedLength=$,At}}();function m(A){var O=bu.newElement(),F=A.c,D=A.v,G=A.o,L=A.i,w,T=A._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=c(D[w],D[w+1],G[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=c(D[w],D[0],G[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(A){this.segmentLength=0,this.points=new Array(A)}function b(A,O){this.partialLength=A,this.point=O}var I=function(){var A={};return function(O,F,D,G){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+G[0]+"_"+G[1]).replace(/\./g,"p");if(!A[L]){var w=Ra(),T,C,N,$,Y,X=0,it,At,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+G[0],F[1]+G[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(At=Z(N),Y=T/(w-1),it=0,C=0;C<N;C+=1)$=Gt(1-Y,3)*O[C]+3*Gt(1-Y,2)*Y*(O[C]+D[C])+3*(1-Y)*Gt(Y,2)*(F[C]+G[C])+Gt(Y,3)*F[C],At[C]=$,ft!==null&&(it+=Gt(At[C]-ft[C],2));it=Pt(it),X+=it,nt.points[T]=new b(it,At),ft=At}nt.segmentLength=X,A[L]=nt}return A[L]}}();function y(A,O){var F=O.percents,D=O.lengths,G=F.length,L=ne((G-1)*A),w=A*O.addedLength,T=0;if(L===G-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=G-1){if(L===G-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(A,O,F,D,G,L){var w=y(G,L),T=1-w,C=r.round((T*T*T*A[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*A[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=W("float32",8);function q(A,O,F,D,G,L,w){G<0?G=0:G>1&&(G=1);var T=y(G,w);L=L>1?1:L;var C=y(L,w),N,$=A.length,Y=1-T,X=1-C,it=Y*Y*Y,At=T*Y*Y*3,ft=T*T*Y*3,nt=T*T*T,_t=Y*Y*X,mt=T*Y*X+Y*T*X+Y*Y*C,rt=T*T*X+Y*T*C+T*Y*C,_=T*T*C,P=Y*X*X,g=T*X*X+Y*C*X+Y*X*C,E=T*C*X+Y*C*C+T*X*C,j=T*C*C,B=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,St=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*A[N]+At*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((_t*A[N]+mt*F[N]+rt*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*A[N]+g*F[N]+E*D[N]+j*O[N])*1e3)/1e3,M[N*4+3]=r.round((B*A[N]+ct*F[N]+gt*D[N]+St*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:q,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var Zr=rT(),Fo=e,yu=Math.abs;function Eu(r,s){var l=this.offsetTime,c;this.propType==="multidimensional"&&(c=W("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var q,A,O,F,D,G,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=Zr.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(A=C.points[N].point.length,q=0;q<A;q+=1)c[q]=C.points[N].point[q]}else{M.__fnct?G=M.__fnct:(G=$a.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=G),O=G((r-w)/(L-w));var $=C.segmentLength*O,Y,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,$===0||O===0||D===C.points.length-1){for(A=C.points[D].point.length,q=0;q<A;q+=1)c[q]=C.points[D].point[q];break}else if($>=X&&$<X+C.points[D+1].partialLength){for(Y=($-X)/C.points[D+1].partialLength,A=C.points[D].point.length,q=0;q<A;q+=1)c[q]=C.points[D].point[q]+(C.points[D+1].point[q]-C.points[D].point[q])*Y;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var it,At,ft,nt,_t;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)c[0]=T[0],c[1]=T[1],c[2]=T[2];else if(r<=w)c[0]=y.s[0],c[1]=y.s[1],c[2]=y.s[2];else{var mt=Tu(y.s),rt=Tu(T),_=(r-w)/(L-w);oT(c,iT(mt,rt,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?G=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],At=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],G=$a.getBezierEasing(it,At,ft,nt).get,M.__fnct[p]=G)):M.__fnct?G=M.__fnct:(it=y.o.x,At=y.o.y,ft=y.i.x,nt=y.i.y,G=$a.getBezierEasing(it,At,ft,nt).get,y.keyframeMetadata=G),O=G((r-w)/(L-w)))),T=k.s||y.e,_t=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?c[p]=_t:c=_t}return s.lastIndex=m,c}function iT(r,s,l){var c=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],q=s[3],A,O,F,D,G;return O=m*y+p*k+b*M+I*q,O<0&&(O=-O,y=-y,k=-k,M=-M,q=-q),1-O>1e-6?(A=Math.acos(O),F=Math.sin(A),D=Math.sin((1-l)*A)/F,G=Math.sin(l*A)/F):(D=1-l,G=l),c[0]=D*m+G*y,c[1]=D*p+G*k,c[2]=D*b+G*M,c[3]=D*I+G*q,c}function oT(r,s){var l=s[0],c=s[1],m=s[2],p=s[3],b=Math.atan2(2*c*p-2*l*m,1-2*c*c-2*m*m),I=Math.asin(2*l*c+2*m*p),y=Math.atan2(2*l*p-2*c*m,1-2*l*l-2*m*m);r[0]=b/kt,r[1]=I/kt,r[2]=y/kt}function Tu(r){var s=r[0]*kt,l=r[1]*kt,c=r[2]*kt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(c/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(c/2),M=m*p*b-I*y*k,q=I*y*b+m*p*k,A=I*p*b+m*y*k,O=m*y*b-I*p*k;return[q,A,O,M]}function xu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Fo&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var c=this.interpolateValue(r,this._caching);this.pv=c}return this._caching.lastFrame=r,this.pv}function ml(r){var s;if(this.propType==="unidimensional")s=r*this.mult,yu(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,c=this.v.length;l<c;)s=r[l]*this.mult,yu(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function ul(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function fl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function sT(r,s,l,c){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=ul,this.setVValue=ml,this.addEffect=fl}function aT(r,s,l,c){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=W("float32",p),this.pv=W("float32",p),this.vel=W("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=ul,this.setVValue=ml,this.addEffect=fl}function nT(r,s,l,c){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Fo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.v=Fo,this.pv=Fo,this._isFirstFrame=!0,this.getValue=ul,this.setVValue=ml,this.interpolateValue=Eu,this.effectsSequence=[xu.bind(this)],this.addEffect=fl}function lT(r,s,l,c){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&Zr.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&Zr.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&Zr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&Zr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[xu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.getValue=ul,this.setVValue=ml,this.interpolateValue=Eu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=W("float32",M),this.pv=W("float32",M),m=0;m<M;m+=1)this.v[m]=Fo,this.pv[m]=Fo;this._caching={lastFrame:Fo,lastIndex:0,value:W("float32",M)},this.addEffect=fl}var lt=function(){function r(l,c,m,p,b){c.sid&&(c=l.globalData.slotManager.getProp(c));var I;if(!c.k.length)I=new sT(l,c,p,b);else if(typeof c.k[0]=="number")I=new aT(l,c,p,b);else switch(m){case 0:I=new nT(l,c,p,b);break;case 1:I=new lT(l,c,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var $o=function(){function r(){return W("float32",2)}return pl(8,r)}();function Ai(){this.c=!1,this._length=0,this._maxLength=8,this.v=Z(this._maxLength),this.o=Z(this._maxLength),this.i=Z(this._maxLength)}Ai.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=$o.newElement(),this.o[l]=$o.newElement(),this.i[l]=$o.newElement(),l+=1},Ai.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},Ai.prototype.doubleArrayLength=function(){this.v=this.v.concat(Z(this._maxLength)),this.i=this.i.concat(Z(this._maxLength)),this.o=this.o.concat(Z(this._maxLength)),this._maxLength*=2},Ai.prototype.setXYAt=function(r,s,l,c,m){var p;switch(this._length=Math.max(this._length,c+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[c]||p[c]&&!m)&&(p[c]=$o.newElement()),p[c][0]=r,p[c][1]=s},Ai.prototype.setTripleAt=function(r,s,l,c,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,c,"o",b,I),this.setXYAt(m,p,"i",b,I)},Ai.prototype.reverse=function(){var r=new Ai;r.setPathData(this.c,this._length);var s=this.v,l=this.o,c=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],c[0][0],c[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],c[p][0],c[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},Ai.prototype.length=function(){return this._length};var De=function(){function r(){return new Ai}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)$o.release(m.v[b]),$o.release(m.i[b]),$o.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=c.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var c=pl(4,r,s);return c.clone=l,c}();function qc(){this._length=0,this._maxLength=4,this.shapes=Z(this._maxLength)}qc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Z(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},qc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ms=function(){var r={newShapeCollection:m,release:p},s=0,l=4,c=Z(l);function m(){var b;return s?(s-=1,b=c[s]):b=new qc,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(c=vu.double(c),l*=2),c[s]=b,s+=1}return r}(),vl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,$,Y,X,it,At,ft,nt,_t,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],Y=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],Y=!0;else{for(var rt=C,_=mt.length-1,P=!0,g,E,j;P&&(g=mt[rt],E=mt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:P=!1;if(j=this.keyframesMetadata[rt]||{},Y=g.h===1,C=rt,!Y){if(L>=E.t-this.offsetTime)nt=1;else if(L<g.t-this.offsetTime)nt=0;else{var B;j.__fnct?B=j.__fnct:(B=$a.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,j.__fnct=B),nt=B((L-(g.t-this.offsetTime))/(E.t-this.offsetTime-(g.t-this.offsetTime)))}$=E.s?E.s[0]:g.e[0]}N=g.s[0]}for(At=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<At;X+=1)for(it=0;it<ft;it+=1)_t=Y?N.i[X][it]:N.i[X][it]+($.i[X][it]-N.i[X][it])*nt,w.i[X][it]=_t,_t=Y?N.o[X][it]:N.o[X][it]+($.o[X][it]-N.o[X][it])*nt,w.o[X][it]=_t,_t=Y?N.v[X][it]:N.v[X][it]+($.v[X][it]-N.v[X][it])*nt,w.v[X][it]=_t}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function c(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=c,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=c,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=se;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,C.p,1,0,this),this.s=lt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,Y=this.s.v[1]/2,X=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-Y,it.v[1][0]=X?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+Y,it.v[3][0]=X?C-$:C+$,it.v[3][1]=N,it.i[0][0]=X?C-$*L:C+$*L,it.i[0][1]=N-Y,it.i[1][0]=X?C+$:C-$,it.i[1][1]=N-Y*L,it.i[2][0]=X?C+$*L:C-$*L,it.i[2][1]=N+Y,it.i[3][0]=X?C-$:C+$,it.i[3][1]=N+Y*L,it.o[0][0]=X?C+$*L:C-$*L,it.o[0][1]=N-Y,it.o[1][0]=X?C+$:C-$,it.o[1][1]=N+Y*L,it.o[2][0]=X?C-$*L:C+$*L,it.o[2][1]=N+Y,it.o[3][0]=X?C-$:C+$,it.o[3][1]=N-Y*L}},x([Ne],w),w}(),q=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=lt.getProp(w,T.ir,0,0,this),this.is=lt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(w,T.pt,0,0,this),this.p=lt.getProp(w,T.p,1,0,this),this.r=lt.getProp(w,T.r,0,kt,this),this.or=lt.getProp(w,T.or,0,0,this),this.os=lt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ms.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,$=this.or.v,Y=this.ir.v,X=this.os.v,it=this.is.v,At=2*Math.PI*$/(T*2),ft=2*Math.PI*Y/(T*2),nt,_t,mt,rt,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){_t=N?$:Y,mt=N?X:it,rt=N?At:ft;var g=_t*Math.cos(_),E=_t*Math.sin(_),j=g===0&&E===0?0:E/Math.sqrt(g*g+E*E),B=g===0&&E===0?0:-g/Math.sqrt(g*g+E*E);g+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(g,E,g-j*rt*mt*P,E-B*rt*mt*P,g+j*rt*mt*P,E+B*rt*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,Y=2*Math.PI*N/(T*4),X,it=-Math.PI*.5,At=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(it),nt=N*Math.sin(it),_t=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-_t*Y*$*At,nt-mt*Y*$*At,ft+_t*Y*$*At,nt+mt*Y*$*At,X,!0),it+=C*At}this.paths.length=0,this.paths[0]=this.v}},x([Ne],L),L}(),A=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Ms.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=lt.getProp(w,T.p,1,0,this),this.s=lt.getProp(w,T.s,1,0,this),this.r=lt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,Y=qt(N,$,this.r.v),X=Y*(1-se);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+Y,T+N,C-$+Y,T+N,C-$+X,0,!0),this.v.setTripleAt(T+N,C+$-Y,T+N,C+$-X,T+N,C+$-Y,1,!0),Y!==0?(this.v.setTripleAt(T+N-Y,C+$,T+N-Y,C+$,T+N-X,C+$,2,!0),this.v.setTripleAt(T-N+Y,C+$,T-N+X,C+$,T-N+Y,C+$,3,!0),this.v.setTripleAt(T-N,C+$-Y,T-N,C+$-Y,T-N,C+$-X,4,!0),this.v.setTripleAt(T-N,C-$+Y,T-N,C-$+X,T-N,C-$+Y,5,!0),this.v.setTripleAt(T-N+Y,C-$,T-N+Y,C-$,T-N+X,C-$,6,!0),this.v.setTripleAt(T+N-Y,C-$,T+N-X,C-$,T+N-Y,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+X,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+X,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+Y,T+N,C-$+X,T+N,C-$+Y,0,!0),Y!==0?(this.v.setTripleAt(T+N-Y,C-$,T+N-Y,C-$,T+N-X,C-$,1,!0),this.v.setTripleAt(T-N+Y,C-$,T-N+X,C-$,T-N+Y,C-$,2,!0),this.v.setTripleAt(T-N,C-$+Y,T-N,C-$+Y,T-N,C-$+X,3,!0),this.v.setTripleAt(T-N,C+$-Y,T-N,C+$-X,T-N,C+$-Y,4,!0),this.v.setTripleAt(T-N+Y,C+$,T-N+Y,C+$,T-N+X,C+$,5,!0),this.v.setTripleAt(T+N-Y,C+$,T+N-X,C+$,T+N-Y,C+$,6,!0),this.v.setTripleAt(T+N,C+$-Y,T+N,C+$-Y,T+N,C+$-X,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+X,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-X,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-X,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:c},x([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new A(L,w):T===6?C=new M(L,w):T===7&&(C=new q(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var G={};return G.getShapeProp=O,G.getConstructorFunction=F,G.getKeyframedConstructorFunction=D,G}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,c=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(g){if(g===0)return this;var E=r(g),j=s(g);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function b(g){if(g===0)return this;var E=r(g),j=s(g);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(g){if(g===0)return this;var E=r(g),j=s(g);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function y(g){if(g===0)return this;var E=r(g),j=s(g);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function k(g,E){return this._t(1,E,g,1,0,0)}function M(g,E){return this.shear(l(g),l(E))}function q(g,E){var j=r(E),B=s(E);return this._t(j,B,0,0,-B,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(g),1,0,0,0,0,1,0,0,0,0,1)._t(j,-B,0,0,B,j,0,0,0,0,1,0,0,0,0,1)}function A(g,E,j){return!j&&j!==0&&(j=1),g===1&&E===1&&j===1?this:this._t(g,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(g,E,j,B,ct,gt,St,$t,Vt,fe,rr,Jr,ir,Le,fr,Yt){return this.props[0]=g,this.props[1]=E,this.props[2]=j,this.props[3]=B,this.props[4]=ct,this.props[5]=gt,this.props[6]=St,this.props[7]=$t,this.props[8]=Vt,this.props[9]=fe,this.props[10]=rr,this.props[11]=Jr,this.props[12]=ir,this.props[13]=Le,this.props[14]=fr,this.props[15]=Yt,this}function F(g,E,j){return j=j||0,g!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,g,E,j,1):this}function D(g,E,j,B,ct,gt,St,$t,Vt,fe,rr,Jr,ir,Le,fr,Yt){var ut=this.props;if(g===1&&E===0&&j===0&&B===0&&ct===0&&gt===1&&St===0&&$t===0&&Vt===0&&fe===0&&rr===1&&Jr===0)return ut[12]=ut[12]*g+ut[15]*ir,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*rr+ut[15]*fr,ut[15]*=Yt,this._identityCalculated=!1,this;var Ci=ut[0],oo=ut[1],_i=ut[2],ti=ut[3],wi=ut[4],ki=ut[5],or=ut[6],so=ut[7],ao=ut[8],Pr=ut[9],no=ut[10],Fr=ut[11],Ho=ut[12],Il=ut[13],Cl=ut[14],_l=ut[15];return ut[0]=Ci*g+oo*ct+_i*Vt+ti*ir,ut[1]=Ci*E+oo*gt+_i*fe+ti*Le,ut[2]=Ci*j+oo*St+_i*rr+ti*fr,ut[3]=Ci*B+oo*$t+_i*Jr+ti*Yt,ut[4]=wi*g+ki*ct+or*Vt+so*ir,ut[5]=wi*E+ki*gt+or*fe+so*Le,ut[6]=wi*j+ki*St+or*rr+so*fr,ut[7]=wi*B+ki*$t+or*Jr+so*Yt,ut[8]=ao*g+Pr*ct+no*Vt+Fr*ir,ut[9]=ao*E+Pr*gt+no*fe+Fr*Le,ut[10]=ao*j+Pr*St+no*rr+Fr*fr,ut[11]=ao*B+Pr*$t+no*Jr+Fr*Yt,ut[12]=Ho*g+Il*ct+Cl*Vt+_l*ir,ut[13]=Ho*E+Il*gt+Cl*fe+_l*Le,ut[14]=Ho*j+Il*St+Cl*rr+_l*fr,ut[15]=Ho*B+Il*$t+Cl*Jr+_l*Yt,this._identityCalculated=!1,this}function G(g){var E=g.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(g){for(var E=0;E<16;){if(g.props[E]!==this.props[E])return!1;E+=1}return!0}function T(g){var E;for(E=0;E<16;E+=1)g.props[E]=this.props[E];return g}function C(g){var E;for(E=0;E<16;E+=1)this.props[E]=g[E]}function N(g,E,j){return{x:g*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:g*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:g*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(g,E,j){return g*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function Y(g,E,j){return g*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function X(g,E,j){return g*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var g=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/g,j=-this.props[1]/g,B=-this.props[4]/g,ct=this.props[0]/g,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/g,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/g,$t=new Pe;return $t.props[0]=E,$t.props[1]=j,$t.props[4]=B,$t.props[5]=ct,$t.props[12]=gt,$t.props[13]=St,$t}function At(g){var E=this.getInverseMatrix();return E.applyToPointArray(g[0],g[1],g[2]||0)}function ft(g){var E,j=g.length,B=[];for(E=0;E<j;E+=1)B[E]=At(g[E]);return B}function nt(g,E,j){var B=W("float32",6);if(this.isIdentity())B[0]=g[0],B[1]=g[1],B[2]=E[0],B[3]=E[1],B[4]=j[0],B[5]=j[1];else{var ct=this.props[0],gt=this.props[1],St=this.props[4],$t=this.props[5],Vt=this.props[12],fe=this.props[13];B[0]=g[0]*ct+g[1]*St+Vt,B[1]=g[0]*gt+g[1]*$t+fe,B[2]=E[0]*ct+E[1]*St+Vt,B[3]=E[0]*gt+E[1]*$t+fe,B[4]=j[0]*ct+j[1]*St+Vt,B[5]=j[0]*gt+j[1]*$t+fe}return B}function _t(g,E,j){var B;return this.isIdentity()?B=[g,E,j]:B=[g*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],g*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],g*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],B}function mt(g,E){if(this.isIdentity())return g+","+E;var j=this.props;return Math.round((g*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((g*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var g=0,E=this.props,j="matrix3d(",B=1e4;g<16;)j+=c(E[g]*B)/B,j+=g===15?")":",",g+=1;return j}function _(g){var E=1e4;return g<1e-6&&g>0||g>-1e-6&&g<0?c(g*E)/E:g}function P(){var g=this.props,E=_(g[0]),j=_(g[1]),B=_(g[4]),ct=_(g[5]),gt=_(g[12]),St=_(g[13]);return"matrix("+E+","+j+","+B+","+ct+","+gt+","+St+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=q,this.shear=k,this.scale=A,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=G,this.applyToPoint=N,this.applyToX=$,this.applyToY=Y,this.applyToZ=X,this.applyToPointArray=_t,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=At,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=W("float32",16),this.reset()}}();function gl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gl=function(l){return typeof l}:gl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},gl(r)}var Wt={},bl="__[STANDALONE]__",Au="__[ANIMATIONDATA]__",Su="";function dT(r){d(r)}function Iu(){bl===!0?ue.searchAnimations(Au,bl,Su):ue.searchAnimations()}function cT(r){WE(r)}function hT(r){jE(r)}function pT(r){return bl===!0&&(r.animationData=JSON.parse(Au)),ue.loadAnimation(r)}function mT(r){if(typeof r=="string")switch(r){case"high":cl(200);break;default:case"medium":cl(50);break;case"low":cl(10);break}else!isNaN(r)&&r>1&&cl(r);Ra()>=50?Ke(!1):Ke(!0)}function uT(){return typeof navigator<"u"}function fT(r,s){r==="expressions"&&qE(s)}function vT(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return vl;case"matrix":return Pe;default:return null}}Wt.play=ue.play,Wt.pause=ue.pause,Wt.setLocationHref=dT,Wt.togglePause=ue.togglePause,Wt.setSpeed=ue.setSpeed,Wt.setDirection=ue.setDirection,Wt.stop=ue.stop,Wt.searchAnimations=Iu,Wt.registerAnimation=ue.registerAnimation,Wt.loadAnimation=pT,Wt.setSubframeRendering=cT,Wt.resize=ue.resize,Wt.goToAndStop=ue.goToAndStop,Wt.destroy=ue.destroy,Wt.setQuality=mT,Wt.inBrowser=uT,Wt.installPlugin=fT,Wt.freeze=ue.freeze,Wt.unfreeze=ue.unfreeze,Wt.setVolume=ue.setVolume,Wt.mute=ue.mute,Wt.unmute=ue.unmute,Wt.getRegisteredAnimations=ue.getRegisteredAnimations,Wt.useWebWorker=i,Wt.setIDPrefix=hT,Wt.__getFactory=vT,Wt.version="5.12.2";function gT(){document.readyState==="complete"&&(clearInterval(ET),Iu())}function bT(r){for(var s=Cu.split("&"),l=0;l<s.length;l+=1){var c=s[l].split("=");if(decodeURIComponent(c[0])==r)return decodeURIComponent(c[1])}return null}var Cu="";if(bl){var _u=document.getElementsByTagName("script"),yT=_u.length-1,wu=_u[yT]||{src:""};Cu=wu.src?wu.src.replace(/^[^\?]+\??/,""):"",Su=bT("renderer")}var ET=setInterval(gT,100);try{!((typeof gn>"u"?"undefined":gl(gn))==="object"&&typeof id<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Wt)}catch{}var Qi=function(){var r={},s={};r.registerModifier=l,r.getModifier=c;function l(m,p){s[m]||(s[m]=p)}function c(m,p,b){return new s[m](p,b)}return r}();function Sr(){}Sr.prototype.initModifierProperties=function(){},Sr.prototype.addShapeToModifier=function(){},Sr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ms.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Sr.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Sr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},x([Ne],Sr);function Dr(){}x([Sr],Dr),Dr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Dr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Dr.prototype.calculateShapeEdges=function(r,s,l,c,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<c||k.s*m>c+l)){var M,q;k.s*m<=c?M=0:M=(k.s*m-c)/l,k.e*m>=c+l?q=1:q=(k.e*m-c)/l,b.push([M,q])}return b.length||b.push([0,0]),b},Dr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)bu.release(r[s]);return r.length=0,r},Dr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var c=this.o.v%360/360;if(c<0&&(c+=1),this.s.v>1?s=1+c:this.s.v<0?s=0+c:s=this.s.v+c,this.e.v>1?l=1+c:this.e.v<0?l=0+c:l=this.e.v+c,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,q,A,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,G;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,A=0,!D.shape._mdf&&D.pathsData.length)A=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)q=Zr.getSegmentsLength(p.shapes[y]),M.push(q),A+=q.totalLength;D.totalShapeLength=A,D.pathsData=M}O+=A,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(G=D.localShapeCollection,G.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var $=D.shape.paths.shapes[D.shape.paths._length-1];if($.c){var Y=N.pop();this.addPaths(N,G),N=this.addShapes(D,F[1],Y)}else this.addPaths(N,G),N=this.addShapes(D,F[1])}this.addPaths(N,G)}}D.shape.paths=G}}},Dr.prototype.addPaths=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)s.addShape(r[l])},Dr.prototype.addSegment=function(r,s,l,c,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(c[0],c[1],"v",p+1)},Dr.prototype.addSegmentFromArray=function(r,s,l,c){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),c&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Dr.prototype.addShapes=function(r,s,l){var c=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,q,A,O,F=[],D,G=!0;for(l?(q=l._length,D=l._length):(l=De.newElement(),q=0,D=0),F.push(l),p=0;p<b;p+=1){for(A=c[p].lengths,l.c=m[p].c,y=m[p].c?A.length:A.length+1,I=1;I<y;I+=1)if(M=A[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,q,G),G=!1):(O=Zr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,A[I-1]),this.addSegmentFromArray(O,l,q,G),G=!1,l.c=!1),k+=M.addedLength,q+=1;if(m[p].c&&A.length){if(M=A[I-1],k<=s.e){var L=A[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,q,G),G=!1):(O=Zr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,A[I-1]),this.addSegmentFromArray(O,l,q,G),G=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,q+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),G=!0,F.push(l),q=0)}return F};function Va(){}x([Sr],Va),Va.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Va.prototype.processPath=function(r,s){var l=s/100,c=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)c[0]+=r.v[p][0],c[1]+=r.v[p][1];c[0]/=m,c[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,q,A;for(p=0;p<m;p+=1)I=r.v[p][0]+(c[0]-r.v[p][0])*l,y=r.v[p][1]+(c[1]-r.v[p][1])*l,k=r.o[p][0]+(c[0]-r.o[p][0])*-l,M=r.o[p][1]+(c[1]-r.o[p][1])*-l,q=r.i[p][0]+(c[0]-r.i[p][0])*-l,A=r.i[p][1]+(c[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,q,A,p);return b},Va.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var jc=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,q;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),q=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),q=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,q=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],q=[];var A=this.px,O=this.py;A._caching.lastFrame+A.offsetTime<=A.keyframes[0].t?(M[0]=A.getValueAtTime((A.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),q[0]=A.getValueAtTime(A.keyframes[0].t/k,0),q[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):A._caching.lastFrame+A.offsetTime>=A.keyframes[A.keyframes.length-1].t?(M[0]=A.getValueAtTime(A.keyframes[A.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),q[0]=A.getValueAtTime((A.keyframes[A.keyframes.length-1].t-.01)/k,0),q[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[A.pv,O.pv],q[0]=A.getValueAtTime((A._caching.lastFrame+A.offsetTime-.01)/k,A.offsetTime),q[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else q=r,M=q;this.v.rotate(-Math.atan2(M[1]-q[1],M[0]-q[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function c(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=lt.getProp(y,k.p.x,0,0,this),this.py=lt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=lt.getProp(y,k.p.z,0,0,this))):this.p=lt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=lt.getProp(y,k.rx,0,kt,this),this.ry=lt.getProp(y,k.ry,0,kt,this),this.rz=lt.getProp(y,k.rz,0,kt,this),k.or.k[0].ti){var q,A=k.or.k.length;for(q=0;q<A;q+=1)k.or.k[q].to=null,k.or.k[q].ti=null}this.or=lt.getProp(y,k.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(y,k.r||{k:0},0,kt,this);k.sk&&(this.sk=lt.getProp(y,k.sk,0,kt,this),this.sa=lt.getProp(y,k.sa,0,kt,this)),this.a=lt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=lt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:c,autoOrient:m},x([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function Qr(){}x([Sr],Qr),Qr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=jc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Qr.prototype.applyTransforms=function(r,s,l,c,m,p){var b=p?-1:1,I=c.s.v[0]+(1-c.s.v[0])*(1-m),y=c.s.v[1]+(1-c.s.v[1])*(1-m);r.translate(c.p.v[0]*b*m,c.p.v[1]*b*m,c.p.v[2]),s.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),s.rotate(-c.r.v*b*m),s.translate(c.a.v[0],c.a.v[1],c.a.v[2]),l.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(c.a.v[0],c.a.v[1],c.a.v[2])},Qr.prototype.init=function(r,s,l,c){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=c,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Qr.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Qr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Qr.prototype.changeGroupRender=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},Qr.prototype.processShapes=function(r){var s,l,c,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(c=0;c<=this._groups.length-1;c+=1){if(k=p<I,this._groups[c]._render=k,this.changeGroupRender(this._groups[c].it,k),!k){var M=this.elemsData[c].it,q=M[M.length-1];q.transform.op.v!==0?(q.transform.op._mdf=!0,q.transform.op.v=0):q.transform.op._mdf=!1}p+=1}this._currentCopies=I;var A=this.o.v,O=A%1,F=A>0?Math.floor(A):Math.ceil(A),D=this.pMatrix.props,G=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(A>0){for(;w<F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(A<0){for(;w>F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}c=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(c/(this._currentCopies-1)),w!==0){for((c!==0&&m===1||c!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,c+=m}}else for(p=this._currentCopies,c=0,m=1;p;)s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,c+=m;return b},Qr.prototype.addShape=function(){};function za(){}x([Sr],za),za.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},za.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var c,m=r._length,p,b,I,y,k,M,q=0,A,O,F,D,G,L;for(c=0;c<m;c+=1)p=r.v[c],I=r.o[c],b=r.i[c],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(c===0||c===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],q),q+=1):(c===0?y=r.v[m-1]:y=r.v[c-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,G=p[0]+(y[0]-p[0])*M,A=G,L=p[1]-(p[1]-y[1])*M,O=L,F=A-(A-p[0])*se,D=O-(O-p[1])*se,l.setTripleAt(A,O,F,D,G,L,q),q+=1,c===m-1?y=r.v[0]:y=r.v[c+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,F=p[0]+(y[0]-p[0])*M,A=F,D=p[1]+(y[1]-p[1])*M,O=D,G=A-(A-p[0])*se,L=O-(O-p[1])*se,l.setTripleAt(A,O,F,D,G,L,q),q+=1):(l.setTripleAt(r.v[c][0],r.v[c][1],r.o[c][0],r.o[c][1],r.i[c][0],r.i[c][1],q),q+=1);return l},za.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function yl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Xc(r){return Math.abs(r)<=1e-5}function ku(r,s,l){return r*(1-l)+s*l}function Ji(r,s,l){return[ku(r[0],s[0],l),ku(r[1],s[1],l)]}function TT(r,s,l){if(r===0)return[];var c=s*s-4*r*l;if(c<0)return[];var m=-s/(2*r);if(c===0)return[m];var p=Math.sqrt(c)/(2*r);return[m-p,m+p]}function Nu(r,s,l,c){return[-r+3*s-3*l+c,3*r-6*s+3*l,-3*r+3*s,r]}function Lu(r){return new de(r,r,r,r,!1)}function de(r,s,l,c,m){m&&Rs(r,s)&&(s=Ji(r,c,1/3)),m&&Rs(l,c)&&(l=Ji(r,c,2/3));var p=Nu(r[0],s[0],l[0],c[0]),b=Nu(r[1],s[1],l[1],c[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,c]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Xc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var c=Math.sqrt(l);return Xc(c)?c>0&&c<1?[s]:[]:[s-c,s+c].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[Lu(this.points[0]),this];if(r>=1)return[this,Lu(this.points[this.points.length-1])];var s=Ji(this.points[0],this.points[1],r),l=Ji(this.points[1],this.points[2],r),c=Ji(this.points[2],this.points[3],r),m=Ji(s,l,r),p=Ji(l,c,r),b=Ji(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,c,this.points[3],!0)]};function Mu(r,s){var l=r.points[0][s],c=r.points[r.points.length-1][s];if(l>c){var m=c;c=l,l=m}for(var p=TT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>c&&(c=I)}return{min:l,max:c}}de.prototype.bounds=function(){return{x:Mu(this,0),y:Mu(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function El(r,s,l){var c=r.boundingBox();return{cx:c.cx,cy:c.cy,width:c.width,height:c.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Ou(r){var s=r.bez.split(.5);return[El(s[0],r.t1,r.t),El(s[1],r.t,r.t2)]}function xT(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Ba(r,s,l,c,m,p){if(xT(r,s)){if(l>=p||r.width<=c&&r.height<=c&&s.width<=c&&s.height<=c){m.push([r.t,s.t]);return}var b=Ou(r),I=Ou(s);Ba(b[0],I[0],l+1,c,m,p),Ba(b[0],I[1],l+1,c,m,p),Ba(b[1],I[0],l+1,c,m,p),Ba(b[1],I[1],l+1,c,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var c=[];return Ba(El(this,0,1),El(r,0,1),0,s,c,l),c},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function Zc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function Tl(r,s,l,c){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[c[0],c[1],1],y=Zc(Zc(m,p),Zc(b,I));return Xc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Os(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function Qc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Rs(r,s){return yl(r[0],s[0])&&yl(r[1],s[1])}function Ha(){}x([Sr],Ha),Ha.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Ru(r,s,l,c,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*c*m,M=s[1]-Math.sin(l)*c*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function AT(r,s){var l=[s[0]-r[0],s[1]-r[1]],c=-Math.PI*.5,m=[Math.cos(c)*l[0]-Math.sin(c)*l[1],Math.sin(c)*l[0]+Math.cos(c)*l[1]];return m}function ST(r,s){var l=s===0?r.length()-1:s-1,c=(s+1)%r.length(),m=r.v[l],p=r.v[c],b=AT(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Du(r,s,l,c,m,p,b){var I=ST(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],q=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,A=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Ru(r,s.v[l%s._length],I,b,c,A/((m+1)*2),q/((m+1)*2),p)}function IT(r,s,l,c,m,p){for(var b=0;b<c;b+=1){var I=(b+1)/(c+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);Ru(r,M,k,p,l,y/((c+1)*2),y/((c+1)*2),m),p=-p}return p}Ha.prototype.processPath=function(r,s,l,c){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Du(p,r,0,s,l,c,b);for(var y=0;y<m;y+=1)b=IT(p,I,s,l,c,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Du(p,r,y+1,s,l,c,b);return p},Ha.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Jc(r,s,l){var c=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Os(r,c,l),Os(s,c,l)]}function Ds(r,s){var l,c,m,p,b,I,y;y=Jc(r.points[0],r.points[1],s),l=y[0],c=y[1],y=Jc(r.points[1],r.points[2],s),m=y[0],p=y[1],y=Jc(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=Tl(l,c,m,p);k===null&&(k=c);var M=Tl(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function Pu(r,s,l,c,m){var p=s.points[3],b=l.points[0];if(c===3||Rs(p,b))return p;if(c===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=Tl(p,Os(p,I+Math.PI/2,100),b,Os(b,I+Math.PI/2,100)),M=k?Qc(k,p):Qc(p,b)/2,q=Os(p,I,2*M*se);return r.setXYAt(q[0],q[1],"o",r.length()-1),q=Os(b,y,2*M*se),r.setTripleAt(b[0],b[1],b[0],b[1],q[0],q[1],r.length()),b}var A=Rs(p,s.points[2])?s.points[0]:s.points[2],O=Rs(b,l.points[1])?l.points[3]:l.points[1],F=Tl(A,p,b,O);return F&&Qc(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function Fu(r,s){var l=r.intersections(s);return l.length&&yl(l[0][0],1)&&l.shift(),l.length?l[0]:null}function $u(r,s){var l=r.slice(),c=s.slice(),m=Fu(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],c[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Fu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,c]}function CT(r){for(var s,l=1;l<r.length;l+=1)s=$u(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=$u(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function Vu(r,s){var l=r.inflectionPoints(),c,m,p,b;if(l.length===0)return[Ds(r,s)];if(l.length===1||yl(l[1],1))return p=r.split(l[0]),c=p[0],m=p[1],[Ds(c,s),Ds(m,s)];p=r.split(l[0]),c=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[Ds(c,s),Ds(b,s),Ds(m,s)]}function Ua(){}x([Sr],Ua),Ua.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ua.prototype.processPath=function(r,s,l,c){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(Vu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(Vu(y,s));k=CT(k);var M=null,q=null;for(b=0;b<k.length;b+=1){var A=k[b];for(q&&(M=Pu(m,q,A[0],l,c)),q=A[A.length-1],I=0;I<A.length;I+=1)y=A[I],M&&Rs(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&Pu(m,q,k[0][0],l,c),m},Ua.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function zu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",c="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":c="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:c,weight:r.fWeight||l}}var Vo=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var c=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,q=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function A(_){var P=_.split(","),g,E=P.length,j=[];for(g=0;g<E;g+=1)P[g]!=="sans-serif"&&P[g]!=="monospace"&&j.push(P[g]);return j.join(",")}function O(_,P){var g=v("span");g.setAttribute("aria-hidden",!0),g.style.fontFamily=P;var E=v("span");E.innerText="giItT1WQy@!-/#",g.style.position="absolute",g.style.left="-10000px",g.style.top="-10000px",g.style.fontSize="300px",g.style.fontVariant="normal",g.style.fontStyle="normal",g.style.fontWeight="normal",g.style.letterSpacing="0",g.appendChild(E),document.body.appendChild(g);var j=E.offsetWidth;return E.style.fontFamily=A(_)+", "+P,{node:E,w:j,parent:g}}function F(){var _,P=this.fonts.length,g,E,j=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(g=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,g.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(g=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,g.offsetWidth!==E&&(j-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));j!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var g=document.body&&P?"svg":"canvas",E,j=zu(_);if(g==="svg"){var B=Ct("text");B.style.fontSize="100px",B.setAttribute("font-family",_.fFamily),B.setAttribute("font-style",j.style),B.setAttribute("font-weight",j.weight),B.textContent="1",_.fClass?(B.style.fontFamily="inherit",B.setAttribute("class",_.fClass)):B.style.fontFamily=_.fFamily,P.appendChild(B),E=B}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(St){return g==="svg"?(E.textContent=St,E.getComputedTextLength()):E.measureText(St).width}return{measureText:gt}}function G(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(rr){rr.helper=D(rr),rr.cache={}}),this.fonts=_.list;return}var g=_.list,E,j=g.length,B=j;for(E=0;E<j;E+=1){var ct=!0,gt,St;if(g[E].loaded=!1,g[E].monoCase=O(g[E].fFamily,"monospace"),g[E].sansCase=O(g[E].fFamily,"sans-serif"),!g[E].fPath)g[E].loaded=!0,B-=1;else if(g[E].fOrigin==="p"||g[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+g[E].fFamily+'"], style[f-origin="3"][f-family="'+g[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var $t=v("style");$t.setAttribute("f-forigin",g[E].fOrigin),$t.setAttribute("f-origin",g[E].origin),$t.setAttribute("f-family",g[E].fFamily),$t.type="text/css",$t.innerText="@font-face {font-family: "+g[E].fFamily+"; font-style: normal; src: url('"+g[E].fPath+"');}",P.appendChild($t)}}else if(g[E].fOrigin==="g"||g[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),St=0;St<gt.length;St+=1)gt[St].href.indexOf(g[E].fPath)!==-1&&(ct=!1);if(ct){var Vt=v("link");Vt.setAttribute("f-forigin",g[E].fOrigin),Vt.setAttribute("f-origin",g[E].origin),Vt.type="text/css",Vt.rel="stylesheet",Vt.href=g[E].fPath,document.body.appendChild(Vt)}}else if(g[E].fOrigin==="t"||g[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),St=0;St<gt.length;St+=1)g[E].fPath===gt[St].src&&(ct=!1);if(ct){var fe=v("link");fe.setAttribute("f-forigin",g[E].fOrigin),fe.setAttribute("f-origin",g[E].origin),fe.setAttribute("rel","stylesheet"),fe.setAttribute("href",g[E].fPath),P.appendChild(fe)}}g[E].helper=D(g[E],P),g[E].cache={},this.fonts.push(g[E])}B===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,g=_.length,E,j=this.chars.length,B;for(P=0;P<g;P+=1){for(E=0,B=!1;E<j;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(B=!0),E+=1;B||(this.chars.push(_[P]),j+=1)}}}function w(_,P,g){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===g)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,P,g)),s}function T(_,P,g){var E=this.getFontByName(P),j=_;if(!E.cache[j]){var B=E.helper;if(_===" "){var ct=B.measureText("|"+_+"|"),gt=B.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=B.measureText(_)/100}return E.cache[j]*g}function C(_){for(var P=0,g=this.fonts.length;P<g;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,g=_.charCodeAt(0);if(g>=55296&&g<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(g-55296)*1024+E-56320+65536)}return P}function $(_,P){var g=_.toString(16)+P.toString(16);return q.indexOf(g)!==-1}function Y(_){return _===y}function X(_){return _===I}function it(_){var P=N(_);return P>=k&&P<=M}function At(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var g=N(_.substr(P,2));if(g!==c)return!1;var E=0;for(P+=2;E<5;){if(g=N(_.substr(P,2)),g<p||g>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function _t(){this.isLoaded=!0}var mt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};mt.isModifier=$,mt.isZeroWidthJoiner=Y,mt.isFlagEmoji=At,mt.isRegionalCode=it,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=c;var rt={addChars:L,addFonts:G,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:_t};return mt.prototype=rt,mt}();function Bu(r){this.animationData=r}Bu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function _T(r){return new Bu(r)}function xl(){}xl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var th=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function wT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function kT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function NT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function LT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function MT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function OT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function RT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function DT(){this.p={}}function Hu(r,s){var l=r.ef||[];this.effectElements=[];var c,m=l.length,p;for(c=0;c<m;c+=1)p=new Ga(l[c],s),this.effectElements.push(p)}function Ga(r,s){this.init(r,s)}x([Ne],Ga),Ga.prototype.getValue=Ga.prototype.iterateDynamicProperties,Ga.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,c=this.data.ef.length,m,p=this.data.ef;for(l=0;l<c;l+=1){switch(m=null,p[l].ty){case 0:m=new wT(p[l],s,this);break;case 1:m=new kT(p[l],s,this);break;case 2:m=new NT(p[l],s,this);break;case 3:m=new LT(p[l],s,this);break;case 4:case 7:m=new RT(p[l],s,this);break;case 10:m=new MT(p[l],s,this);break;case 11:m=new OT(p[l],s,this);break;case 5:m=new Hu(p[l],s,this);break;default:m=new DT(p[l],s,this);break}m&&this.effectElements.push(m)}};function to(){}to.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=uu();if(s){var l=s("layer"),c=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=c.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=th(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,c){this.globalData=l,this.comp=c,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new Hu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function eo(){}eo.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var c,m=this.dynamicProperties.length;for(c=0;c<m;c+=1)(l||this._isParent&&this.dynamicProperties[c].propType==="transform")&&(this.dynamicProperties[c].getValue(),this.dynamicProperties[c]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ro(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}ro.prototype.prepareFrame=function(){},x([xl,to,eo],ro),ro.prototype.getBaseElement=function(){return null},ro.prototype.renderFrame=function(){},ro.prototype.destroy=function(){},ro.prototype.initExpressions=function(){var r=uu();if(r){var s=r("footage");this.layerInterface=s(this)}},ro.prototype.getFootageData=function(){return this.footageData};function er(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var c=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(c),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},x([xl,to,eo],er),er.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,c;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(c=this.layers[s],c.ip-c.st<=r-this.layers[s].st&&c.op-c.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new ro(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,c,m=this.layers.length;for(s=0;s<l;s+=1)for(c=0;c<m;){if(this.layers[c].id===r[s].id){this.layers[c]=r[s];break}c+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var c=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!c[p]||c[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(c[p]),c[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var c=this.createComp(r[s]);c.initExpressions(),this.globalData.projectInterface.registerComposition(c)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var c,m=this.elements.length;for(c=0;c<m;c+=1)if(this.elements[c].data.nm===s){l=this.elements[c];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Vo,this.globalData.slotManager=_T(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var PT={TRANSFORM_EFFECT:"transformEFfect"};function Ps(){}Ps.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?jc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,c=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;c<m;){if(this.hierarchy[c].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}c+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),c=0;c<m;c+=1)l.multiply(this.hierarchy[c].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var c=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(c),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;c.multiply(m)}c.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(PT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,c=s.length;for(l=0;l<c;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var c=!0,m=this.comp;c;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):c=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function zo(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var c=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Z(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,q,A=tr(),O,F,D,G,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=Ct("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=Ct("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:vl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},c.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",G=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),F=Ct("filter"),F.setAttribute("id",T),D=Ct("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),c.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,G=null),this.storedData[m]={elem:b,x:G,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){q=k.length;var C=Ct("g");for(M=0;M<q;M+=1)C.appendChild(k[M]);var N=Ct("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",A+"_"+y),N.appendChild(b),c.appendChild(N),C.setAttribute("mask","url("+f()+"#"+A+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:vl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=Ct(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",A),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+A+")"),c.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}zo.prototype.getMaskProperty=function(r){return this.viewData[r].prop},zo.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,c=this.masksProperties.length;for(l=0;l<c;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},zo.prototype.getMaskelement=function(){return this.maskElement},zo.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},zo.prototype.drawPath=function(r,s,l){var c=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==c){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+c:c),l.elem.setAttribute("d",b)),l.lastPath=c}},zo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ka=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(c,m){var p=Ct("filter");return p.setAttribute("id",c),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var c=Ct("feColorMatrix");return c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),c}return r}(),Uu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),Al={},Gu="filter_result_";function eh(r){var s,l="SourceGraphic",c=r.data.ef?r.data.ef.length:0,m=tr(),p=Ka.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<c;s+=1){I=null;var y=r.data.ef[s].ty;if(Al[y]){var k=Al[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,Gu+b,l),l=Gu+b,Al[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}eh.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},eh.prototype.getEffects=function(r){var s,l=this.filters.length,c=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&c.push(this.filters[s]);return c};function lC(r,s,l){Al[r]={effect:s,countsAsEffect:l}}function Wa(){}Wa.prototype={initRendererElement:function(){this.layerElement=Ct("g")},createContainerElements:function(){this.matteElement=Ct("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=Ct("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var c=Ct("clipPath"),m=Ct("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(c.setAttribute("id",p),c.appendChild(m),this.globalData.defs.appendChild(c),this.checkMasks()){var b=Ct("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new zo(this.data,this,this.globalData),this.renderableEffectsManager=new eh(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,c,m,p,b;if(s===1||s===3){var I=Ct("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Uu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),c=tr(),m=Ka.createFilter(c),this.globalData.defs.appendChild(m),m.appendChild(Ka.createAlphaToLuminanceFilter()),b=Ct("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+c+")"))}else if(s===2){var y=Ct("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=Ct("g");y.appendChild(k),c=tr(),m=Ka.createFilter(c);var M=Ct("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var q=Ct("feFuncA");q.setAttribute("type","table"),q.setAttribute("tableValues","1.0 0.0"),M.appendChild(q),this.globalData.defs.appendChild(m);var A=Ct("rect");A.setAttribute("width",this.comp.data.w),A.setAttribute("height",this.comp.data.h),A.setAttribute("x","0"),A.setAttribute("y","0"),A.setAttribute("fill","#ffffff"),A.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+c+")"),k.appendChild(A),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Uu.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(Ka.createAlphaToLuminanceFilter()),b=Ct("g"),k.appendChild(A),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Fs(){}Fs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ya(){}(function(){var r={initElement:function(l,c,m){this.initFrame(),this.initBaseData(l,c,m),this.initTransform(l,c,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};x([xl,H(r)],Ya)})();function qa(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}x([to,Ps,Wa,Fs,eo,Ya],qa),qa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=Ct("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},qa.prototype.sourceRectAtTime=function(){return this.sourceRect};function FT(r,s){this.elem=r,this.pos=s}function Ku(){}Ku.prototype={addShapeToModifiers:function(s){var l,c=this.shapeModifiers.length;for(l=0;l<c;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,c=this.shapeModifiers.length;l<c;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var c;for(s=l-1;s>=0&&(c=this.shapeModifiers[s].processShapes(this._isFirstFrame),!c);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,c=0,m=l.length;c<m;){if(l[c].elem===s)return l[c].pos;c+=1}return 0},addProcessedElement:function(s,l){for(var c=this.processedElements,m=c.length;m;)if(m-=1,c[m].elem===s){c[m].pos=l;return}c.push(new FT(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Wu={1:"butt",2:"round",3:"square"},Yu={1:"miter",2:"round",3:"bevel"};function qu(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var c=0,m=r.length;c<m;){if(r[c].mProps.dynamicProperties.length){this._isAnimated=!0;break}c+=1}}qu.prototype.setAsAnimated=function(){this._isAnimated=!0};function ju(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=Ct("path"),this.msElem=null}ju.prototype.reset=function(){this.d="",this._mdf=!1};function Sl(r,s,l,c){this.elem=r,this.frameId=-1,this.dataProps=Z(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=W("float32",s.length?s.length-1:0),this.dashoffset=W("float32",1),this.initDynamicPropertyContainer(c);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=lt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}Sl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},x([Ne],Sl);function Xu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new Sl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}x([Ne],Xu);function Zu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l}x([Ne],Zu);function Qu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}x([Ne],Qu);function ja(r,s,l){this.data=s,this.c=W("uint8c",s.p*4);var c=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=W("float32",c),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=c,this.initDynamicPropertyContainer(l),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ja.prototype.comparePoints=function(r,s){for(var l=0,c=this.o.length/2,m;l<c;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},ja.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ja.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,c,m;for(s=0;s<l;s+=1)c=s%4===0?100:255,m=Math.round(this.prop.v[s]*c),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)c=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},x([Ne],ja);function $s(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}$s.prototype.initGradientData=function(r,s,l){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new ja(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},$s.prototype.setGradientData=function(r,s){var l=tr(),c=Ct(s.t===1?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=Ct("stop"),c.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=c,this.cst=m},$s.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,c,m,p=Ct("mask"),b=Ct("path");p.appendChild(b);var I=tr(),y=tr();p.setAttribute("id",y);var k=Ct(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(c=r.g.p*4;c<m;c+=2)l=Ct("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",Wu[r.lc||2]),b.setAttribute("stroke-linejoin",Yu[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},x([Ne],$s);function Ju(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new Sl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}x([$s,Ne],Ju);function $T(){this.it=[],this.prevViewData=[],this.gr=Ct("g")}function VT(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var tf=function(s,l,c,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return c&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},zT=function(){var r=new Pe,s=new Pe,l={createRenderFunction:c};function c(q){switch(q.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(q,A,O){(O||A.transform.op._mdf)&&A.transform.container.setAttribute("opacity",A.transform.op.v),(O||A.transform.mProps._mdf)&&A.transform.container.setAttribute("transform",A.transform.mProps.v.to2dCSS())}function p(){}function b(q,A,O){var F,D,G,L,w,T,C=A.styles.length,N=A.lvl,$,Y,X,it;for(T=0;T<C;T+=1){if(L=A.sh._mdf||O,A.styles[T].lvl<N){for(Y=s.reset(),X=N-A.styles[T].lvl,it=A.transformers.length-1;!L&&X>0;)L=A.transformers[it].mProps._mdf||L,X-=1,it-=1;if(L)for(X=N-A.styles[T].lvl,it=A.transformers.length-1;X>0;)Y.multiply(A.transformers[it].mProps.v),X-=1,it-=1}else Y=r;if($=A.sh.paths,D=$._length,L){for(G="",F=0;F<D;F+=1)w=$.shapes[F],w&&w._length&&(G+=tf(w,w._length,w.c,Y));A.caches[T]=G}else G=A.caches[T];A.styles[T].d+=q.hd===!0?"":G,A.styles[T]._mdf=L||A.styles[T]._mdf}}function I(q,A,O){var F=A.style;(A.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(A.c.v[0])+","+ne(A.c.v[1])+","+ne(A.c.v[2])+")"),(A.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",A.o.v)}function y(q,A,O){k(q,A,O),M(q,A,O)}function k(q,A,O){var F=A.gf,D=A.g._hasOpacity,G=A.s.v,L=A.e.v;if(A.o._mdf||O){var w=q.ty==="gf"?"fill-opacity":"stroke-opacity";A.style.pElem.setAttribute(w,A.o.v)}if(A.s._mdf||O){var T=q.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,G[0]),F.setAttribute(C,G[1]),D&&!A.g._collapsable&&(A.of.setAttribute(T,G[0]),A.of.setAttribute(C,G[1]))}var N,$,Y,X;if(A.g._cmdf||O){N=A.cst;var it=A.g.c;for(Y=N.length,$=0;$<Y;$+=1)X=N[$],X.setAttribute("offset",it[$*4]+"%"),X.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(D&&(A.g._omdf||O)){var At=A.g.o;for(A.g._collapsable?N=A.cst:N=A.ost,Y=N.length,$=0;$<Y;$+=1)X=N[$],A.g._collapsable||X.setAttribute("offset",At[$*2]+"%"),X.setAttribute("stop-opacity",At[$*2+1])}if(q.t===1)(A.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!A.g._collapsable&&(A.of.setAttribute("x2",L[0]),A.of.setAttribute("y2",L[1])));else{var ft;if((A.s._mdf||A.e._mdf||O)&&(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)),F.setAttribute("r",ft),D&&!A.g._collapsable&&A.of.setAttribute("r",ft)),A.e._mdf||A.h._mdf||A.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)));var nt=Math.atan2(L[1]-G[1],L[0]-G[0]),_t=A.h.v;_t>=1?_t=.99:_t<=-1&&(_t=-.99);var mt=ft*_t,rt=Math.cos(nt+A.a.v)*mt+G[0],_=Math.sin(nt+A.a.v)*mt+G[1];F.setAttribute("fx",rt),F.setAttribute("fy",_),D&&!A.g._collapsable&&(A.of.setAttribute("fx",rt),A.of.setAttribute("fy",_))}}}function M(q,A,O){var F=A.style,D=A.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),A.c&&(A.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(A.c.v[0])+","+ne(A.c.v[1])+","+ne(A.c.v[2])+")"),(A.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",A.o.v),(A.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",A.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",A.w.v))}return l}();function ce(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}x([to,Ps,Wa,Ku,Fs,eo,Ya],ce),ce.prototype.initSecondaryElement=function(){},ce.prototype.identityMatrix=new Pe,ce.prototype.buildExpressionInterface=function(){},ce.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ce.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,c,m=this.stylesList.length,p,b=[],I=!1;for(c=0;c<m;c+=1){for(p=this.stylesList[c],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},ce.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},ce.prototype.createStyleElement=function(r,s){var l,c=new ju(r,s),m=c.pElem;if(r.ty==="st")l=new Xu(this,r,c);else if(r.ty==="fl")l=new Zu(this,r,c);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?$s:Ju;l=new p(this,r,c),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new Qu(this,r,c));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Wu[r.lc||2]),m.setAttribute("stroke-linejoin",Yu[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=th(r.bm)),this.stylesList.push(c),this.addToAnimatedContents(r,l),l},ce.prototype.createGroupElement=function(r){var s=new $T;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=th(r.bm)),s},ce.prototype.createTransformElement=function(r,s){var l=jc.getTransformProperty(this,r,this),c=new VT(l,l.o,s);return this.addToAnimatedContents(r,c),c},ce.prototype.createShapeElement=function(r,s,l){var c=4;r.ty==="rc"?c=5:r.ty==="el"?c=6:r.ty==="sr"&&(c=7);var m=vl.getShapeProp(this,r,c,this),p=new qu(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},ce.prototype.addToAnimatedContents=function(r,s){for(var l=0,c=this.animatedContents.length;l<c;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:zT.createRenderFunction(r),element:s,data:r})},ce.prototype.setElementStyles=function(r){var s=r.styles,l,c=this.stylesList.length;for(l=0;l<c;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},ce.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},ce.prototype.searchShapes=function(r,s,l,c,m,p,b){var I=[].concat(p),y,k=r.length-1,M,q,A=[],O=[],F,D,G;for(y=k;y>=0;y-=1){if(G=this.searchProcessedElement(r[y]),G?s[y]=l[G-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")G?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==c&&c.appendChild(s[y].style.pElem),A.push(s[y].style);else if(r[y].ty==="gr"){if(!G)s[y]=this.createGroupElement(r[y]);else for(q=s[y].it.length,M=0;M<q;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==c&&c.appendChild(s[y].gr)}else r[y].ty==="tr"?(G||(s[y]=this.createTransformElement(r[y],c)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(G||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(G?(D=s[y],D.closed=!1):(D=Qi.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(G?(D=s[y],D.closed=!0):(D=Qi.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=A.length,y=0;y<k;y+=1)A[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},ce.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},ce.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},ce.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function rh(r,s,l,c,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=c,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!c,m:!0,p:!0}}rh.prototype.update=function(r,s,l,c,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==c&&(this.fc=c,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var c,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(c=0;c<m;c+=1)l!==this.keysIndex?p=this.effectsSequence[c](p,p.t):p=this.effectsSequence[c](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,c=r.length;l<=c-1&&!(l===c-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,c=r.length,m,p,b=!1,I=!1,y="";l<c;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),Vo.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?Vo.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&(Vo.isModifier(m,p)?(y=r.substr(l,2),b=!0):Vo.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),Vo.isVariationSelector(m)&&(b=!0)):Vo.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,c=[],m,p,b,I=0,y,k=l.m.g,M=0,q=0,A=0,O=[],F=0,D=0,G,L,w=s.getFontByName(r.f),T,C=0,N=zu(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,Y;if(r.sz)for(var X=!0,it=r.sz[0],At=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,$=r.tr/1e3*r.finalSize;var _t=-1;for(m=0;m<p;m+=1)Y=nt[m].charCodeAt(0),b=!1,nt[m]===" "?_t=m:(Y===13||Y===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>it&&nt[m]!==" "?(_t===-1?p+=1:m=_t,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,_t===m?1:0,"\r"),_t=-1,F=0):(F+=C,F+=$);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&At<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-$,C=0;var mt=0,rt;for(m=0;m<p;m+=1)if(b=!1,rt=r.finalText[m],Y=rt.charCodeAt(0),Y===13||Y===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*$,y="",b=!0,A+=1):y=rt,s.chars?(T=s.getCharData(rt,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?mt+=C+$:(F+=C+$+mt,mt=0),c.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:A,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);q<=m;)c[q].an=M,c[q].ind=I,c[q].extra=C,q+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);q<=m;)c[q].an=M,c[q].ind=I,c[q].extra=C,q+=1;M=0,I+=1}}else c[I].ind=I,c[I].extra=0,I+=1;if(r.l=c,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,g;L=_.length;var E,j,B=[];for(G=0;G<L;G+=1){for(P=_[G],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),j=0,E=P.s.b,m=0;m<p;m+=1)g=c[m],g.anIndexes[G]=j,(E==1&&g.val!==""||E==2&&g.val!==""&&g.val!==" "||E==3&&(g.n||g.val==" "||m==p-1)||E==4&&(g.n||m==p-1))&&(P.s.rn===1&&B.push(j),j+=1);l.a[G].s.totalChars=j;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)g=c[m],ct!=g.anIndexes[G]&&(ct=g.anIndexes[G],gt=B.splice(Math.floor(Math.random()*B.length),1)[0]),g.anIndexes[G]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var BT=function(){var r=Math.max,s=Math.min,l=Math.floor;function c(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=lt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,b.o||{k:0},0,0,this),this.xe=lt.getProp(p,b.xe||{k:0},0,0,this),this.ne=lt.getProp(p,b.ne||{k:0},0,0,this),this.sm=lt.getProp(p,b.sm||{k:100},0,0,this),this.a=lt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}c.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var q=$a.getBezierEasing(I,y,k,M).get,A=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?A=b>=F?1:0:A=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),A=q(A);else if(D===3)F===O?A=b>=F?0:1:A=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),A=q(A);else if(D===4)F===O?A=0:(A=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),A<.5?A*=2:A=1-2*(A-.5)),A=q(A);else if(D===5){if(F===O)A=0;else{var G=F-O;b=s(r(0,b+.5-O),F-O);var L=-G/2+b,w=G/2;A=Math.sqrt(1-L*L/(w*w))}A=q(A)}else D===6?(F===O?A=0:(b=s(r(0,b+.5-O),F-O),A=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),A=q(A)):(b>=l(O)&&(b-O<0?A=r(0,s(s(F,1)-(O-b),1)):A=r(0,s(F-b,1))),A=q(A));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;A<C?A=0:(A=(A-C)/T,A>1&&(A=1))}return A*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var q=k;k=M,M=q}this.finalS=k,this.finalE=M}},x([Ne],c);function m(p,b,I){return new c(p,b,I)}return{getTextSelectorProp:m}}();function HT(r,s,l){var c={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,l):c,rx:p.rx?m(r,p.rx,0,kt,l):c,ry:p.ry?m(r,p.ry,0,kt,l):c,sk:p.sk?m(r,p.sk,0,kt,l):c,sa:p.sa?m(r,p.sa,0,kt,l):c,s:p.s?m(r,p.s,1,.01,l):c,a:p.a?m(r,p.a,1,0,l):c,o:p.o?m(r,p.o,0,.01,l):c,p:p.p?m(r,p.p,1,0,l):c,sw:p.sw?m(r,p.sw,0,0,l):c,sc:p.sc?m(r,p.sc,1,0,l):c,fc:p.fc?m(r,p.fc,1,0,l):c,fh:p.fh?m(r,p.fh,0,0,l):c,fs:p.fs?m(r,p.fs,0,.01,l):c,fb:p.fb?m(r,p.fb,0,.01,l):c,t:p.t?m(r,p.t,0,0,l):c},this.s=BT.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function Bo(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Z(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}Bo.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,c=lt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new HT(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:c(this._elem,this._textData.p.a,0,0,this),f:c(this._elem,this._textData.p.f,0,0,this),l:c(this._elem,this._textData.p.l,0,0,this),r:c(this._elem,this._textData.p.r,0,0,this),p:c(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=c(this._elem,this._textData.m.a,1,0,this)},Bo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,c=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,q,A=r.l,O,F,D,G,L,w,T,C,N,$,Y,X,it,At,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},q=nt._length-1;var _t;for(X=0,M=0;M<q;M+=1)_t=Zr.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength;M=q,ft.v.c&&(_t=Zr.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,G=0,L=!0,$=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,C=N[w-1],D=N[w],Y=D.partialLength}q=A.length,y=0,k=0;var mt=r.finalSize*1.2*.714,rt=!0,_,P,g,E,j;E=c.length;var B,ct=-1,gt,St,$t,Vt=F,fe=T,rr=w,Jr=-1,ir,Le,fr,Yt,ut,Ci,oo,_i,ti="",wi=this.defaultPropsArray,ki;if(r.j===2||r.j===1){var or=0,so=0,ao=r.j===2?-.5:-1,Pr=0,no=!0;for(M=0;M<q;M+=1)if(A[M].n){for(or&&(or+=so);Pr<M;)A[Pr].animatorJustifyOffset=or,Pr+=1;or=0,no=!0}else{for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(no&&r.j===2&&(so+=_.t.v*ao),P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?or+=_.t.v*B[0]*ao:or+=_.t.v*B*ao);no=!1}for(or&&(or+=so);Pr<M;)A[Pr].animatorJustifyOffset=or,Pr+=1}for(M=0;M<q;M+=1){if(p.reset(),ir=1,A[M].n)y=0,k+=r.yOffset,k+=rt?1:0,F=Vt,rt=!1,this._hasMaskedPath&&(T=fe,w=rr,N=$[T].points,C=N[w-1],D=N[w],Y=D.partialLength,G=0),ti="",_i="",Ci="",ki="",wi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Jr!==A[M].line){switch(r.j){case 1:F+=X-r.lineWidths[A[M].line];break;case 2:F+=(X-r.lineWidths[A[M].line])/2;break;default:break}Jr=A[M].line}ct!==A[M].ind&&(A[ct]&&(F+=A[ct].extra),F+=A[M].an/2,ct=A[M].ind),F+=l[0]*A[M].an*.005;var Fr=0;for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?Fr+=_.p.v[0]*B[0]:Fr+=_.p.v[0]*B),_.a.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?Fr+=_.a.v[0]*B[0]:Fr+=_.a.v[0]*B);for(L=!0,this._pathData.a.v&&(F=A[0].an*.5+(X-this._pathData.f.v-A[0].an*.5-A[A.length-1].an*.5)*ct/(q-1),F+=this._pathData.f.v);L;)G+Y>=F+Fr||!N?(it=(F+Fr-G)/D.partialLength,St=C.point[0]+(D.point[0]-C.point[0])*it,$t=C.point[1]+(D.point[1]-C.point[1])*it,p.translate(-l[0]*A[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(G+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ft.v.c?(w=0,T=0,N=$[T].points):(G-=D.partialLength,N=null)),N&&(C=D,D=N[w],Y=D.partialLength));gt=A[M].an/2-A[M].add,p.translate(-gt,0,0)}else gt=A[M].an/2-A[M].add,p.translate(-gt,0,0),p.translate(-l[0]*A[M].an*.005,-l[1]*mt*.01,0);for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?B.length?F+=_.t.v*B[0]:F+=_.t.v*B:B.length?y+=_.t.v*B[0]:y+=_.t.v*B));for(r.strokeWidthAnim&&(fr=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Yt=[r.fc[0],r.fc[1],r.fc[2]]),g=0;g<E;g+=1)_=c[g].a,_.a.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.translate(-_.a.v[0]*B[0],-_.a.v[1]*B[1],_.a.v[2]*B[2]):p.translate(-_.a.v[0]*B,-_.a.v[1]*B,_.a.v[2]*B));for(g=0;g<E;g+=1)_=c[g].a,_.s.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.scale(1+(_.s.v[0]-1)*B[0],1+(_.s.v[1]-1)*B[1],1):p.scale(1+(_.s.v[0]-1)*B,1+(_.s.v[1]-1)*B,1));for(g=0;g<E;g+=1){if(_=c[g].a,P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),_.sk.propType&&(B.length?p.skewFromAxis(-_.sk.v*B[0],_.sa.v*B[1]):p.skewFromAxis(-_.sk.v*B,_.sa.v*B)),_.r.propType&&(B.length?p.rotateZ(-_.r.v*B[2]):p.rotateZ(-_.r.v*B)),_.ry.propType&&(B.length?p.rotateY(_.ry.v*B[1]):p.rotateY(_.ry.v*B)),_.rx.propType&&(B.length?p.rotateX(_.rx.v*B[0]):p.rotateX(_.rx.v*B)),_.o.propType&&(B.length?ir+=(_.o.v*B[0]-ir)*B[0]:ir+=(_.o.v*B-ir)*B),r.strokeWidthAnim&&_.sw.propType&&(B.length?fr+=_.sw.v*B[0]:fr+=_.sw.v*B),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)B.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*B[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*B;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)B.length?Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B[0]:Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B;_.fh.propType&&(B.length?Yt=mu(Yt,_.fh.v*B[0]):Yt=mu(Yt,_.fh.v*B)),_.fs.propType&&(B.length?Yt=hu(Yt,_.fs.v*B[0]):Yt=hu(Yt,_.fs.v*B)),_.fb.propType&&(B.length?Yt=pu(Yt,_.fb.v*B[0]):Yt=pu(Yt,_.fb.v*B))}}for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),this._hasMaskedPath?B.length?p.translate(0,_.p.v[1]*B[0],-_.p.v[2]*B[1]):p.translate(0,_.p.v[1]*B,-_.p.v[2]*B):B.length?p.translate(_.p.v[0]*B[0],_.p.v[1]*B[1],-_.p.v[2]*B[2]):p.translate(_.p.v[0]*B,_.p.v[1]*B,-_.p.v[2]*B));if(r.strokeWidthAnim&&(Ci=fr<0?0:fr),r.strokeColorAnim&&(oo="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(_i="rgb("+Math.round(Yt[0]*255)+","+Math.round(Yt[1]*255)+","+Math.round(Yt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,l[1]*mt*.01+k,0),this._pathData.p.v){At=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Ho=Math.atan(At)*180/Math.PI;D.point[0]<C.point[0]&&(Ho+=180),p.rotate(-Ho*Math.PI/180)}p.translate(St,$t,0),F-=l[0]*A[M].an*.005,A[M+1]&&ct!==A[M+1].ind&&(F+=A[M].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(A[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[A[M].line]),0,0);break;case 2:p.translate(A[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[A[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*A[M].an*.005,l[1]*mt*.01,0),y+=A[M].l+r.tr*.001*r.finalSize}b==="html"?ti=p.toCSS():b==="svg"?ti=p.to2dCSS():wi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],ki=ir}I<=M?(j=new rh(ki,Ci,oo,_i,ti,wi),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[M],this.lettersChangedFlag=j.update(ki,Ci,oo,_i,ti,wi)||this.lettersChangedFlag)}}},Bo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Bo.prototype.mHelper=new Pe,Bo.prototype.defaultPropsArray=[],x([Ne],Bo);function Ir(){}Ir.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new Bo(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Ir.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Ir.prototype.createPathShape=function(r,s){var l,c=s.length,m,p="";for(l=0;l<c;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=tf(m,m.i.length,!0,r));return p},Ir.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Ir.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Ir.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Ir.prototype.applyTextPropertiesToMatrix=function(r,s,l,c,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(c,m,0)},Ir.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Ir.prototype.emptyProp=new rh,Ir.prototype.destroy=function(){},Ir.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var UT={shapes:[]};function Si(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}x([to,Ps,Wa,Fs,eo,Ya,Ir],Si),Si.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Ct("text"))},Si.prototype.buildTextContents=function(r){for(var s=0,l=r.length,c=[],m="";s<l;)r[s]==="\r"||r[s]===""?(c.push(m),m=""):m+=r[s],s+=1;return c.push(m),c},Si.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var c=l.it[l.it.length-1];c.s&&(c.s.k[0]=s,c.s.k[1]=s)}}return r},Si.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Z(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var c=this.globalData.fontManager.getFontByName(l.f);if(c.fClass)this.layerElement.setAttribute("class",c.fClass);else{this.layerElement.setAttribute("font-family",c.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",q=this.data.singleShape,A=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(q&&!I&&!l.sz){var G=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}G.setAttribute("text-anchor",L),G.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||Ct("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",G.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(G)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!q||r===0){if(y=T>r?this.textSpans[r].span:Ct(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=Ct("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),q&&(b[r].n&&(A=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,A,O),A+=b[r].l||0,A+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],c.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var $;if(C.t===1)$=new Xa(C.data,this.globalData,this);else{var Y=UT;C.data&&C.data.shapes&&(Y=this.buildShapeData(C.data,l.finalSize)),$=new ce(Y,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else q&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}q&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},Si.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},Si.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},Si.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;s=c.length;var m,p,b;for(r=0;r<s;r+=1)c[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function ih(r,s,l){this.initElement(r,s,l)}x([qa],ih),ih.prototype.createContent=function(){var r=Ct("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function io(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}io.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},io.prototype.renderFrame=function(){},io.prototype.getBaseElement=function(){return null},io.prototype.destroy=function(){},io.prototype.sourceRectAtTime=function(){},io.prototype.hide=function(){},x([to,Ps,Fs,eo],io);function Ae(){}x([Fe],Ae),Ae.prototype.createNull=function(r){return new io(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new ce(r,this.globalData,this)},Ae.prototype.createText=function(r){return new Si(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new qa(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new ih(r,this.globalData,this)},Ae.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=Ct("clipPath"),c=Ct("rect");c.setAttribute("width",r.w),c.setAttribute("height",r.h),c.setAttribute("x",0),c.setAttribute("y",0);var m=tr();l.setAttribute("id",m),l.appendChild(c),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Z(r.layers.length)},Ae.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ae.prototype.updateContainerSize=function(){},Ae.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ae.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,dl()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var c="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(c===-1)return;if(!this.elements[c]||this.elements[c]===!0)this.buildItem(c),this.addPendingElement(l);else{var m=s[c],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ae.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var c="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[c],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ae.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var c=0,m;c<s;)this.elements[c]&&this.elements[c]!==!0&&this.elements[c].getBaseElement()&&(m=this.elements[c].getBaseElement()),c+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function Ii(){}x([to,Ps,Fs,eo,Ya],Ii),Ii.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},Ii.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,c=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=c-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},Ii.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},Ii.prototype.setElements=function(r){this.elements=r},Ii.prototype.getElements=function(){return this.elements},Ii.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},Ii.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Xa(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Z(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}x([Ae,Ii,Wa],Xa),Xa.prototype.createComp=function(r){return new Xa(r,this.globalData,this)};function oh(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=Ct("svg");var l="";if(s&&s.title){var c=Ct("title"),m=tr();c.setAttribute("id",m),c.textContent=s.title,this.svgElement.appendChild(c),l+=m}if(s&&s.description){var p=Ct("desc"),b=tr();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=Ct("defs");this.svgElement.appendChild(I);var y=Ct("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return x([Ae],oh),oh.prototype.createComp=function(r){return new Xa(r,this.globalData,this)},JE("svg",oh),Qi.registerModifier("tm",Dr),Qi.registerModifier("pb",Va),Qi.registerModifier("rp",Qr),Qi.registerModifier("rd",za),Qi.registerModifier("zz",Ha),Qi.registerModifier("op",Ua),Wt})});var wl=globalThis,kl=wl.ShadowRoot&&(wl.ShadyCSS===void 0||wl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ah=Symbol(),rf=new WeakMap,Za=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==ah)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(kl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=rf.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&rf.set(t,o))}return o}toString(){return this.cssText}},of=n=>new Za(typeof n=="string"?n:n+"",void 0,ah),z=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,i,a)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[a+1],n[0]);return new Za(t,n,ah)},nh=(n,o)=>{if(kl)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=wl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,n.appendChild(e)}},Nl=kl?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return of(t)})(n):n;var{is:ZT,defineProperty:QT,getOwnPropertyDescriptor:JT,getOwnPropertyNames:tx,getOwnPropertySymbols:ex,getPrototypeOf:rx}=Object,lo=globalThis,sf=lo.trustedTypes,ix=sf?sf.emptyScript:"",lh=lo.reactiveElementPolyfillSupport,Qa=(n,o)=>n,Ja={toAttribute(n,o){switch(o){case Boolean:n=n?ix:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Ll=(n,o)=>!ZT(n,o),af={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Ll},nf,lf;(nf=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(lf=lo.litPropertyMetadata)!=null||(lo.litPropertyMetadata=new WeakMap);var Ni=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=af){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&QT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var d;let{get:i,set:a}=(d=JT(this.prototype,o))!=null?d:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let v=i==null?void 0:i.call(this);a.call(this,f),this.requestUpdate(o,v,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:af}static _$Ei(){if(this.hasOwnProperty(Qa("elementProperties")))return;let o=rx(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Qa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qa("properties"))){let t=this.properties,e=[...tx(t),...ex(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(Nl(i))}else o!==void 0&&t.push(Nl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return nh(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var a;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let d=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:Ja).toAttribute(t,e.type);this._$Em=o,d==null?this.removeAttribute(i):this.setAttribute(i,d),this._$Em=null}}_$AK(o,t){var a;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let d=e.getPropertyOptions(i),f=typeof d.converter=="function"?{fromAttribute:d.converter}:((a=d.converter)==null?void 0:a.fromAttribute)!==void 0?d.converter:Ja;this._$Em=i,this[i]=f.fromAttribute(t,d.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:Ll)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[d,f]of a)f.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(a=>{var d;return(d=a.hostUpdate)==null?void 0:d.call(a)}),this.update(t)):this._$EU()}catch(a){throw o=!1,this._$EU(),a}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},df;Ni.elementStyles=[],Ni.shadowRootOptions={mode:"open"},Ni[Qa("elementProperties")]=new Map,Ni[Qa("finalized")]=new Map,lh==null||lh({ReactiveElement:Ni}),((df=lo.reactiveElementVersions)!=null?df:lo.reactiveElementVersions=[]).push("2.0.4");var en=globalThis,Ml=en.trustedTypes,cf=Ml?Ml.createPolicy("lit-html",{createHTML:n=>n}):void 0,hh="$lit$",Li=`lit$${Math.random().toFixed(9).slice(2)}$`,ph="?"+Li,ox=`<${ph}>`,Ko=document,rn=()=>Ko.createComment(""),on=n=>n===null||typeof n!="object"&&typeof n!="function",mh=Array.isArray,gf=n=>mh(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",dh=`[
3
+ \f\r]`,tn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hf=/-->/g,pf=/>/g,Uo=RegExp(`>|${dh}(?:([^\\s"'>=/]+)(${dh}*=${dh}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),mf=/'/g,uf=/"/g,bf=/^(?:script|style|textarea|title)$/i,uh=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),S=uh(1),uC=uh(2),fC=uh(3),$e=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),ff=new WeakMap,Go=Ko.createTreeWalker(Ko,129);function yf(n,o){if(!mh(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return cf!==void 0?cf.createHTML(o):o}var Ef=(n,o)=>{let t=n.length-1,e=[],i,a=o===2?"<svg>":o===3?"<math>":"",d=tn;for(let f=0;f<t;f++){let v=n[f],x,R,H=-1,J=0;for(;J<v.length&&(d.lastIndex=J,R=d.exec(v),R!==null);)J=d.lastIndex,d===tn?R[1]==="!--"?d=hf:R[1]!==void 0?d=pf:R[2]!==void 0?(bf.test(R[2])&&(i=RegExp("</"+R[2],"g")),d=Uo):R[3]!==void 0&&(d=Uo):d===Uo?R[0]===">"?(d=i!=null?i:tn,H=-1):R[1]===void 0?H=-2:(H=d.lastIndex-R[2].length,x=R[1],d=R[3]===void 0?Uo:R[3]==='"'?uf:mf):d===uf||d===mf?d=Uo:d===hf||d===pf?d=tn:(d=Uo,i=void 0);let W=d===Uo&&n[f+1].startsWith("/>")?" ":"";a+=d===tn?v+ox:H>=0?(e.push(x),v.slice(0,H)+hh+v.slice(H)+Li+W):v+Li+(H===-2?f:W)}return[yf(n,a+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},sn=class n{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let a=0,d=0,f=o.length-1,v=this.parts,[x,R]=Ef(o,t);if(this.el=n.createElement(x,e),Go.currentNode=this.el.content,t===2||t===3){let H=this.el.content.firstChild;H.replaceWith(...H.childNodes)}for(;(i=Go.nextNode())!==null&&v.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let H of i.getAttributeNames())if(H.endsWith(hh)){let J=R[d++],W=i.getAttribute(H).split(Li),Z=/([.?@])?(.*)/.exec(J);v.push({type:1,index:a,name:Z[2],strings:W,ctor:Z[1]==="."?Rl:Z[1]==="?"?Dl:Z[1]==="@"?Pl:Yo}),i.removeAttribute(H)}else H.startsWith(Li)&&(v.push({type:6,index:a}),i.removeAttribute(H));if(bf.test(i.tagName)){let H=i.textContent.split(Li),J=H.length-1;if(J>0){i.textContent=Ml?Ml.emptyScript:"";for(let W=0;W<J;W++)i.append(H[W],rn()),Go.nextNode(),v.push({type:2,index:++a});i.append(H[J],rn())}}}else if(i.nodeType===8)if(i.data===ph)v.push({type:2,index:a});else{let H=-1;for(;(H=i.data.indexOf(Li,H+1))!==-1;)v.push({type:7,index:a}),H+=Li.length-1}a++}}static createElement(o,t){let e=Ko.createElement("template");return e.innerHTML=o,e}};function Wo(n,o,t=n,e){var d,f,v;if(o===$e)return o;let i=e!==void 0?(d=t.o)==null?void 0:d[e]:t.l,a=on(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),a===void 0?i=void 0:(i=new a(n),i._$AT(n,t,e)),e!==void 0?((v=t.o)!=null?v:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Wo(n,i._$AS(n,o.values),i,e)),o}var Ol=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var x;let{el:{content:t},parts:e}=this._$AD,i=((x=o==null?void 0:o.creationScope)!=null?x:Ko).importNode(t,!0);Go.currentNode=i;let a=Go.nextNode(),d=0,f=0,v=e[0];for(;v!==void 0;){if(d===v.index){let R;v.type===2?R=new Vs(a,a.nextSibling,this,o):v.type===1?R=new v.ctor(a,v.name,v.strings,this,o):v.type===6&&(R=new Fl(a,this,o)),this._$AV.push(R),v=e[++f]}d!==(v==null?void 0:v.index)&&(a=Go.nextNode(),d++)}return Go.currentNode=Ko,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Vs=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var a;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(a=i==null?void 0:i.isConnected)!=null?a:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Wo(this,o,t),on(o)?o===U||o==null||o===""?(this._$AH!==U&&this._$AR(),this._$AH=U):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):gf(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==U&&on(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ko.createTextNode(o)),this._$AH=o}$(o){var a;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=sn.createElement(yf(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(t);else{let d=new Ol(i,this),f=d.u(this.options);d.p(t),this.T(f),this._$AH=d}}_$AC(o){let t=ff.get(o.strings);return t===void 0&&ff.set(o.strings,t=new sn(o)),t}k(o){mh(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let a of o)i===t.length?t.push(e=new n(this.O(rn()),this.O(rn()),this,this.options)):e=t[i],e._$AI(a),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Yo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,a){this.type=1,this._$AH=U,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=U}_$AI(o,t=this,e,i){let a=this.strings,d=!1;if(a===void 0)o=Wo(this,o,t,0),d=!on(o)||o!==this._$AH&&o!==$e,d&&(this._$AH=o);else{let f=o,v,x;for(o=a[0],v=0;v<a.length-1;v++)x=Wo(this,f[e+v],t,v),x===$e&&(x=this._$AH[v]),d||(d=!on(x)||x!==this._$AH[v]),x===U?o=U:o!==U&&(o+=(x!=null?x:"")+a[v+1]),this._$AH[v]=x}d&&!i&&this.j(o)}j(o){o===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Rl=class extends Yo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===U?void 0:o}},Dl=class extends Yo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==U)}},Pl=class extends Yo{constructor(o,t,e,i,a){super(o,t,e,i,a),this.type=5}_$AI(o,t=this){var d;if((o=(d=Wo(this,o,t,0))!=null?d:U)===$e)return;let e=this._$AH,i=o===U&&e!==U||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,a=o!==U&&(e===U||i);i&&this.element.removeEventListener(this.name,this,e),a&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Fl=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Wo(this,o)}},Tf={M:hh,P:Li,A:ph,C:1,L:Ef,R:Ol,D:gf,V:Wo,I:Vs,H:Yo,N:Dl,U:Pl,B:Rl,F:Fl},ch=en.litHtmlPolyfillSupport,vf;ch==null||ch(sn,Vs),((vf=en.litHtmlVersions)!=null?vf:en.litHtmlVersions=[]).push("3.2.0");var xf=(n,o,t)=>{var a,d;let e=(a=t==null?void 0:t.renderBefore)!=null?a:o,i=e._$litPart$;if(i===void 0){let f=(d=t==null?void 0:t.renderBefore)!=null?d:null;e._$litPart$=i=new Vs(o.insertBefore(rn(),f),f,void 0,t!=null?t:{})}return i._$AI(n),i};var co=class extends Ni{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=xf(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},Af;co._$litElement$=!0,co.finalized=!0,(Af=globalThis.litElementHydrateSupport)==null||Af.call(globalThis,{LitElement:co});var fh=globalThis.litElementPolyfillSupport;fh==null||fh({LitElement:co});var Sf;((Sf=globalThis.litElementVersions)!=null?Sf:globalThis.litElementVersions=[]).push("4.1.0");var sx={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Ll},ax=(n=sx,o,t)=>{let{kind:e,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,n),e==="accessor"){let{name:d}=t;return{set(f){let v=o.get.call(this);o.set.call(this,f),this.requestUpdate(d,v,n)},init(f){return f!==void 0&&this.P(d,void 0,n),f}}}if(e==="setter"){let{name:d}=t;return function(f){let v=this[d];o.call(this,f),this.requestUpdate(d,v,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?ax(n,o,t):((e,i,a)=>{let d=i.hasOwnProperty(a);return i.constructor.createProperty(a,d?{...e,wrapped:!0}:e),d?Object.getOwnPropertyDescriptor(i,a):void 0})(n,o,t)}function dt(n){return u({...n,state:!0,attribute:!1})}function If(n){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,n)}}var ei=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function zt(n,o){return(t,e,i)=>{let a=d=>{var f,v;return(v=(f=d.renderRoot)==null?void 0:f.querySelector(n))!=null?v:null};if(o){let{get:d,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let v=Symbol();return{get(){return this[v]},set(x){this[v]=x}}})();return ei(t,e,{get(){let v=d.call(this);return v===void 0&&(v=a(this),(v!==null||this.hasUpdated)&&f.call(this,v)),v}})}return ei(t,e,{get(){return a(this)}})}}var vh;function Cf(n){return(o,t)=>ei(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:vh!=null?vh:vh=document.createDocumentFragment()).querySelectorAll(n)}})}function jt(n){return(o,t)=>{let{slot:e,selector:i}=n!=null?n:{},a="slot"+(e?`[name=${e}]`:":not([name])");return ei(o,t,{get(){var v,x;let d=(v=this.renderRoot)==null?void 0:v.querySelector(a),f=(x=d==null?void 0:d.assignedElements(n))!=null?x:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function _f(n){return(o,t)=>{let{slot:e}=n!=null?n:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ei(o,t,{get(){var d,f;let a=(d=this.renderRoot)==null?void 0:d.querySelector(i);return(f=a==null?void 0:a.assignedNodes(n))!=null?f:[]}})}}var nx={PREFIX:"mdc",SEPARATOR:"-"},lx={NAMESPACE:nx},gh=lx;var dx=n=>[gh.NAMESPACE.PREFIX,n].join(gh.NAMESPACE.SEPARATOR),V={constructTagName:dx};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var wf=V.constructTagName("buttonsimple"),qo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},zs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},an={SIZE:qo[32],TYPE:zs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Mi=V.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},nn={40:40,32:32,28:28,24:24},Cr={64:64,52:52,20:20,...nn},ri={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Bs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},kf={DEFAULT:ri.DEFAULT,ACCENT:ri.ACCENT,NEGATIVE:ri.NEGATIVE},sr={VARIANT:Bt.PRIMARY,SIZE:nn[32],COLOR:ri.DEFAULT,TYPE_INTERNAL:Bs.ICON,TYPE:zs.BUTTON,INVERTED:!1};var $l=n=>{class o extends n{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Bt).includes(i)?i:sr.VARIANT)}setColor(i){let a=Object.values(ri).includes(i),d=this.variant===Bt.TERTIARY&&!Object.values(kf).includes(i);!a||d?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let d=this.typeInternal===Bs.ICON?Object.values(Cr).includes(i)&&!(i===Cr[20]&&this.variant!==Bt.TERTIARY):Object.values(nn).includes(i);this.setAttribute("size",d?`${i}`:`${sr.SIZE}`)}inferButtonType(){var x,R,H,J,W,Z;let i=(R=(x=this.shadowRoot)==null?void 0:x.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,a=(J=(H=this.shadowRoot)==null?void 0:H.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,d=this.prefixIcon||a&&a>0,f=(Z=(W=this.shadowRoot)==null?void 0:W.querySelector('slot[name="postfix"]'))==null?void 0:Z.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,v=this.postfixIcon||f&&f>0;i&&(d||v)?(this.typeInternal=Bs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(d||v)?(this.typeInternal=Bs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Bs.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([dt()],o.prototype,"typeInternal",2),o};var Nf=z`
5
5
  :host {
6
6
  box-sizing: border-box;
7
7
  }
@@ -11,11 +11,11 @@
11
11
  :host *::after {
12
12
  box-sizing: inherit;
13
13
  }
14
- `;var Vl=class extends co{static register(o){customElements.get(o)||customElements.define(o,this)}};Vl.styles=[wf];var kf=Vl;var Z=kf;var ho=class extends Event{constructor(o,t,e){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=e!=null?e:!1}};var Hs=class{constructor(o,t,e,i){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(d,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=d,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(d,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let d=t;this.context=d.context,this.callback=d.callback,this.subscribe=(a=d.subscribe)!=null?a:!1}else this.context=t,this.callback=e,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ho(this.context,this.t,this.subscribe))}};var zl=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:i}=this.subscriptions.get(o);o(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var bh=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Us=class extends zl{constructor(o,t,e){var i,a;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=d=>{let f=d.composedPath()[0];d.context===this.context&&f!==this.host&&(d.stopPropagation(),this.addCallback(d.callback,f,d.subscribe))},this.onProviderRequest=d=>{let f=d.composedPath()[0];if(d.context!==this.context||f===this.host)return;let v=new Set;for(let[A,{consumerHost:R}]of this.subscriptions)v.has(A)||(v.add(A),R.dispatchEvent(new ho(this.context,A,!0)));d.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(a=(i=this.host).addController)==null||a.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new bh(this.context))}};var lx=z`
14
+ `;var Vl=class extends co{static register(o){customElements.get(o)||customElements.define(o,this)}};Vl.styles=[Nf];var Lf=Vl;var Q=Lf;var ho=class extends Event{constructor(o,t,e){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=e!=null?e:!1}};var Hs=class{constructor(o,t,e,i){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(d,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=d,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(d,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let d=t;this.context=d.context,this.callback=d.callback,this.subscribe=(a=d.subscribe)!=null?a:!1}else this.context=t,this.callback=e,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ho(this.context,this.t,this.subscribe))}};var zl=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:i}=this.subscriptions.get(o);o(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var bh=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Us=class extends zl{constructor(o,t,e){var i,a;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=d=>{let f=d.composedPath()[0];d.context===this.context&&f!==this.host&&(d.stopPropagation(),this.addCallback(d.callback,f,d.subscribe))},this.onProviderRequest=d=>{let f=d.composedPath()[0];if(d.context!==this.context||f===this.host)return;let v=new Set;for(let[x,{consumerHost:R}]of this.subscriptions)v.has(x)||(v.add(x),R.dispatchEvent(new ho(this.context,x,!0)));d.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(a=(i=this.host).addController)==null||a.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new bh(this.context))}};var cx=z`
15
15
  :host {
16
16
  display: contents;
17
17
  }
18
- `,Nf=lx;var Bl=class extends Z{constructor({context:o,initialValue:t}){super(),this.context=new Us(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),S`<slot></slot>`}};Bl.styles=[...Z.styles,Nf];var Lf=Bl;var Se=Lf;var Ve=n=>{class o extends n{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Xt=n=>{class o extends n{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ii=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Lt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var dx=n=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:a}=n,d=(i||a)&&(f=>{a&&a.forEach(v=>{o.requestUpdate(v)}),i==null||i(f)});return new Hs(o,{context:t,callback:d,subscribe:e!=null?e:!0})},cx={consume:dx},Ie=cx;var Of=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Rf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),hx=n=>n.getClientRects().length===0,px=n=>{let{width:o,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=n;return e+i+t+o===0},yh=n=>{if(!(n instanceof Element))return null;let o=getComputedStyle(n),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",a=e==="auto"||e==="scroll";return i&&a?"both":i?"horizontal":a?"vertical":null},mx=n=>px(n)||hx(n),ux=n=>{let{display:o,opacity:t,visibility:e}=n.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},fx=n=>{let o=getComputedStyle(n);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},vx=n=>getComputedStyle(n).display==="contents",gx=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||ux(n)||!vx(n)&&(fx(n)||mx(n)),bx=n=>n.disabled,yx=n=>n.getAttribute("tabindex")!=="-1",Ex=n=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1),Mf=(n,o)=>o.some(t=>n.matches(t));var jo=(n,o={})=>{var R,H,J,q;if(!n)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(H=o==null?void 0:o.includeSelectors)!=null?H:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],a=(q=o==null?void 0:o.stopAtNonTabbable)!=null?q:!1,d=new Set([]),f=Q=>{if(t.has(n)||Mf(Q,i)||gx(Q)||bx(Q))return"stop";if(a&&!(Q instanceof HTMLSlotElement)&&Q.getAttribute("tabindex")==="-1"){let ot=Q.getRootNode();if(!(ot instanceof ShadowRoot&&ot.delegatesFocus))return"stop"}return Mf(Q,e)||yx(Q)&&Ex(Q)?"focusable":"continue"},v=o.customFocusableCheck?Q=>o.customFocusableCheck(Q,f(Q)):f,A=Q=>{if(Q instanceof HTMLElement){let st=v(Q);if(st==="focusable"&&d.add(Q),st==="stop")return}let ot=[];Q instanceof HTMLSlotElement?ot=Q.assignedElements({flatten:!0}):Q instanceof HTMLElement&&Q.shadowRoot?ot=Array.from(Q.shadowRoot.children):Q.children.length&&(ot=Array.from(Q.children)),ot.forEach(A)};return A(n),[...d]},ln=(n=document)=>{var t;let o=n instanceof Document?n.activeElement:n;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Hl=n=>n&&"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",Eh=n=>{let o=n.getRootNode();return o!==document&&o instanceof ShadowRoot?Eh(o.host):n},Df=n=>{let o=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Oi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&(document.removeEventListener("keydown",this.currentKeydownListener),this.currentKeydownListener=null)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Oi.stack=new Set,Oi.currentKeydownListener=null;var Ul=V.constructTagName("spatialnavigationprovider");var oi={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},Th={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var Tx=Ul,xh=Tx;var Pf=n=>{let{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v}=n.getBoundingClientRect(),A=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v,xMid:A,yMid:R}},xx=(n,o,t)=>Math.abs(t==="horizontal"?o.yMid-n.yMid:o.xMid-n.xMid),Ax=(n,o)=>o==="horizontal"?n.height/2:n.width/2,Sx=(n,o,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,o.bottom)-Math.max(n.top,o.top)):Math.max(0,Math.min(n.right,o.right)-Math.max(n.left,o.left)),Ix=(n,o,t)=>o==="horizontal"?t/n.height:t/n.width,Cx=(n,o,t,e)=>{let i=o.xMid-n.xMid,a=o.yMid-n.yMid,d=Math.sqrt(i*i+a*a),f=xx(n,o,t)+Ax(n,t)*e.orthogonalWeight[t],v=Sx(n,o,t),A=Ix(n,t,v)*e.alignWeight;return d+f-A-Math.sqrt(v)},Ff=(n,o,t,e)=>{if(!n||o.length===0)return[];if(o.length===1)return o[0]===n?[]:[{candidate:o[0],distance:0}];let i=Pf(n),a=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((d,f)=>{if(f===n)return d;let v=f.closest(`[${oi.SCROLL_PARENT}]`),A=v&&!v.contains(n)?v:f,R=Pf(A);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return d;let H=Cx(i,R,a,e);return d.push({candidate:f,distance:H}),d},[]).sort((d,f)=>d.distance-f.distance)};var qo=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var dn=class extends Se{constructor(){super({context:xh});this.navigationKeyMapping=Th.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Th.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,a=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,a)!==void 0&&(e=!0,this.focusNext(t,a)),i.parentElement&&!i.hasAttribute(oi.NO_SCROLL)){let f=(d=i.closest(`[${oi.SCROLL_PARENT}]`))!=null?d:i.parentElement,v=yh(f);if(v){let A=i.getBoundingClientRect(),R=f.getBoundingClientRect();(v==="vertical"||v==="both")&&(a==="up"&&A.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),a==="down"&&A.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(v==="horizontal"||v==="both")&&(a==="right"&&A.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),a==="left"&&A.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new qo("navbeforeprocess",this,e);if(t.target&&((d=t.composedPath()[0]||t.target)==null||d.dispatchEvent(i)),i.defaultPrevented)return;let a=!1;switch(e){case"up":a=this.focusNext(t,"up");break;case"down":a=this.focusNext(t,"down");break;case"left":a=this.focusNext(t,"left");break;case"right":a=this.focusNext(t,"right");break;case"enter":a=this.pressEnter();break;case"escape":a=this.goBack();break;default:}a?t.preventDefault():this.dispatchEvent(new qo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=ln();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return xh}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=jo(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=Oi.getActiveTrap(),a=null,d=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let v of f)if(v===i||v===this.root||yh(v)){d.push(...jo(v,{excludedElements:a?[a]:void 0,includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]}));let A=this.focusNextInFocusableAria(d,e);if(A||v===i||v===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;a=v}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let a=new qo("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(a),!a.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var a;let i=`data-spatial-${e}`;return(a=t==null?void 0:t.getAttribute(i))!=null?a:void 0}focusNextInFocusableAria(t,e){var v,A;let i=this.getActiveElement(),a=ln(),d=t;if((!i||!d.includes(i)||i!==a)&&(a&&d.includes(a)?i=a:[i]=d,this.setActiveElement(i)),a){let R=`data-spatial-${e}`,H=Df(a).find(q=>q.hasAttribute(R)),J=H==null?void 0:H.getAttribute(R);if(H&&J){let q=H.getRootNode(),Q=(v=q==null?void 0:q.getElementById(J))!=null?v:q==null?void 0:q.querySelector(J);if(Q){let ot=jo(Q,{includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]});if(ot.includes(Q))return Q;if(ot.length>0)d=ot;else return Q}}}return i!==ln()?i:t.length===0||(A=Ff(i,d,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new qo("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=ln();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=jo(this.root).find(i=>i.hasAttribute(oi.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],dn.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],dn.prototype,"distanceCalculationWeights",2);var Ah=dn;Ah.register(Ul);var $f=Ah;var K={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},_x={[Lt.ARROW_UP]:K.UP,[Lt.ARROW_DOWN]:K.DOWN,[Lt.ARROW_LEFT]:K.LEFT,[Lt.ARROW_RIGHT]:K.RIGHT,[Lt.ENTER]:K.ENTER,[Lt.SPACE]:K.SPACE,[Lt.ESCAPE]:K.ESCAPE,[Lt.TAB]:K.TAB,[Lt.HOME]:K.HOME,[Lt.END]:K.END,[Lt.BACKSPACE]:K.BACKSPACE},re={DEFAULT:"default",SPATIAL:"spatial"},Nt=n=>{class o extends n{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:$f.Context})}getKeyboardNavMode(){var a;return((a=this.spatialNavigationContext)==null?void 0:a.value)?re.SPATIAL:re.DEFAULT}getActionForKeyEvent(i,a=!1){var v,A,R;let f=((R=(A=(v=this.spatialNavigationContext)==null?void 0:v.value)==null?void 0:A.keyToActionMap)!=null?R:_x)[i.key];if(a){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===K.LEFT)return K.RIGHT;if(f===K.RIGHT)return K.LEFT}return f}isDirectionAction(i){return i===K.UP||i===K.DOWN||i===K.LEFT||i===K.RIGHT}}return o};var Ot=n=>{class o extends n{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var Tt=z`
18
+ `,Mf=cx;var Bl=class extends Q{constructor({context:o,initialValue:t}){super(),this.context=new Us(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),S`<slot></slot>`}};Bl.styles=[...Q.styles,Mf];var Of=Bl;var Se=Of;var Ve=n=>{class o extends n{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Xt=n=>{class o extends n{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ii=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Lt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var hx=n=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:a}=n,d=(i||a)&&(f=>{a&&a.forEach(v=>{o.requestUpdate(v)}),i==null||i(f)});return new Hs(o,{context:t,callback:d,subscribe:e!=null?e:!0})},px={consume:hx},Ie=px;var Df=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Pf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),mx=n=>n.getClientRects().length===0,ux=n=>{let{width:o,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=n;return e+i+t+o===0},yh=n=>{if(!(n instanceof Element))return null;let o=getComputedStyle(n),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",a=e==="auto"||e==="scroll";return i&&a?"both":i?"horizontal":a?"vertical":null},fx=n=>ux(n)||mx(n),vx=n=>{let{display:o,opacity:t,visibility:e}=n.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},gx=n=>{let o=getComputedStyle(n);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},bx=n=>getComputedStyle(n).display==="contents",yx=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||vx(n)||!bx(n)&&(gx(n)||fx(n)),Ex=n=>n.disabled,Tx=n=>n.getAttribute("tabindex")!=="-1",xx=n=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1),Rf=(n,o)=>o.some(t=>n.matches(t));var jo=(n,o={})=>{var R,H,J,W;if(!n)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(H=o==null?void 0:o.includeSelectors)!=null?H:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],a=(W=o==null?void 0:o.stopAtNonTabbable)!=null?W:!1,d=new Set([]),f=Z=>{if(t.has(n)||Rf(Z,i)||yx(Z)||Ex(Z))return"stop";if(a&&!(Z instanceof HTMLSlotElement)&&Z.getAttribute("tabindex")==="-1"){let ot=Z.getRootNode();if(!(ot instanceof ShadowRoot&&ot.delegatesFocus))return"stop"}return Rf(Z,e)||Tx(Z)&&xx(Z)?"focusable":"continue"},v=o.customFocusableCheck?Z=>o.customFocusableCheck(Z,f(Z)):f,x=Z=>{if(Z instanceof HTMLElement){let st=v(Z);if(st==="focusable"&&d.add(Z),st==="stop")return}let ot=[];Z instanceof HTMLSlotElement?ot=Z.assignedElements({flatten:!0}):Z instanceof HTMLElement&&Z.shadowRoot?ot=Array.from(Z.shadowRoot.children):Z.children.length&&(ot=Array.from(Z.children)),ot.forEach(x)};return x(n),[...d]},ln=(n=document)=>{var t;let o=n instanceof Document?n.activeElement:n;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Hl=n=>n&&"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",Eh=n=>{let o=n.getRootNode();return o!==document&&o instanceof ShadowRoot?Eh(o.host):n},Ff=n=>{let o=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Oi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&(document.removeEventListener("keydown",this.currentKeydownListener),this.currentKeydownListener=null)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Oi.stack=new Set,Oi.currentKeydownListener=null;var Ul=V.constructTagName("spatialnavigationprovider");var oi={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},Th={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var Ax=Ul,xh=Ax;var $f=n=>{let{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v}=n.getBoundingClientRect(),x=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v,xMid:x,yMid:R}},Sx=(n,o,t)=>Math.abs(t==="horizontal"?o.yMid-n.yMid:o.xMid-n.xMid),Ix=(n,o)=>o==="horizontal"?n.height/2:n.width/2,Cx=(n,o,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,o.bottom)-Math.max(n.top,o.top)):Math.max(0,Math.min(n.right,o.right)-Math.max(n.left,o.left)),_x=(n,o,t)=>o==="horizontal"?t/n.height:t/n.width,wx=(n,o,t,e)=>{let i=o.xMid-n.xMid,a=o.yMid-n.yMid,d=Math.sqrt(i*i+a*a),f=Sx(n,o,t)+Ix(n,t)*e.orthogonalWeight[t],v=Cx(n,o,t),x=_x(n,t,v)*e.alignWeight;return d+f-x-Math.sqrt(v)},Vf=(n,o,t,e)=>{if(!n||o.length===0)return[];if(o.length===1)return o[0]===n?[]:[{candidate:o[0],distance:0}];let i=$f(n),a=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((d,f)=>{if(f===n)return d;let v=f.closest(`[${oi.SCROLL_PARENT}]`),x=v&&!v.contains(n)?v:f,R=$f(x);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return d;let H=wx(i,R,a,e);return d.push({candidate:f,distance:H}),d},[]).sort((d,f)=>d.distance-f.distance)};var Xo=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var dn=class extends Se{constructor(){super({context:xh});this.navigationKeyMapping=Th.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Th.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,a=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,a)!==void 0&&(e=!0,this.focusNext(t,a)),i.parentElement&&!i.hasAttribute(oi.NO_SCROLL)){let f=(d=i.closest(`[${oi.SCROLL_PARENT}]`))!=null?d:i.parentElement,v=yh(f);if(v){let x=i.getBoundingClientRect(),R=f.getBoundingClientRect();(v==="vertical"||v==="both")&&(a==="up"&&x.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),a==="down"&&x.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(v==="horizontal"||v==="both")&&(a==="right"&&x.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),a==="left"&&x.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new Xo("navbeforeprocess",this,e);if(t.target&&((d=t.composedPath()[0]||t.target)==null||d.dispatchEvent(i)),i.defaultPrevented)return;let a=!1;switch(e){case"up":a=this.focusNext(t,"up");break;case"down":a=this.focusNext(t,"down");break;case"left":a=this.focusNext(t,"left");break;case"right":a=this.focusNext(t,"right");break;case"enter":a=this.pressEnter();break;case"escape":a=this.goBack();break;default:}a?t.preventDefault():this.dispatchEvent(new Xo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=ln();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return xh}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=jo(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=Oi.getActiveTrap(),a=null,d=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let v of f)if(v===i||v===this.root||yh(v)){d.push(...jo(v,{excludedElements:a?[a]:void 0,includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]}));let x=this.focusNextInFocusableAria(d,e);if(x||v===i||v===this.root)return x&&this.emitNavBeforeFocusEvent(x,e),!!x;a=v}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let a=new Xo("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(a),!a.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var a;let i=`data-spatial-${e}`;return(a=t==null?void 0:t.getAttribute(i))!=null?a:void 0}focusNextInFocusableAria(t,e){var v,x;let i=this.getActiveElement(),a=ln(),d=t;if((!i||!d.includes(i)||i!==a)&&(a&&d.includes(a)?i=a:[i]=d,this.setActiveElement(i)),a){let R=`data-spatial-${e}`,H=Ff(a).find(W=>W.hasAttribute(R)),J=H==null?void 0:H.getAttribute(R);if(H&&J){let W=H.getRootNode(),Z=(v=W==null?void 0:W.getElementById(J))!=null?v:W==null?void 0:W.querySelector(J);if(Z){let ot=jo(Z,{includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]});if(ot.includes(Z))return Z;if(ot.length>0)d=ot;else return Z}}}return i!==ln()?i:t.length===0||(x=Vf(i,d,e,this.distanceCalculationWeights)[0])==null?void 0:x.candidate}emitGoBackEvent(t){let e=new Xo("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=ln();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=jo(this.root).find(i=>i.hasAttribute(oi.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],dn.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],dn.prototype,"distanceCalculationWeights",2);var Ah=dn;Ah.register(Ul);var zf=Ah;var K={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},kx={[Lt.ARROW_UP]:K.UP,[Lt.ARROW_DOWN]:K.DOWN,[Lt.ARROW_LEFT]:K.LEFT,[Lt.ARROW_RIGHT]:K.RIGHT,[Lt.ENTER]:K.ENTER,[Lt.SPACE]:K.SPACE,[Lt.ESCAPE]:K.ESCAPE,[Lt.TAB]:K.TAB,[Lt.HOME]:K.HOME,[Lt.END]:K.END,[Lt.BACKSPACE]:K.BACKSPACE},re={DEFAULT:"default",SPATIAL:"spatial"},Nt=n=>{class o extends n{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:zf.Context})}getKeyboardNavMode(){var a;return((a=this.spatialNavigationContext)==null?void 0:a.value)?re.SPATIAL:re.DEFAULT}getActionForKeyEvent(i,a=!1){var v,x,R;let f=((R=(x=(v=this.spatialNavigationContext)==null?void 0:v.value)==null?void 0:x.keyToActionMap)!=null?R:kx)[i.key];if(a){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===K.LEFT)return K.RIGHT;if(f===K.RIGHT)return K.LEFT}return f}isDirectionAction(i){return i===K.UP||i===K.DOWN||i===K.LEFT||i===K.RIGHT}}return o};var Ot=n=>{class o extends n{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var Tt=z`
19
19
  :host {
20
20
  align-items: center;
21
21
  display: flex;
@@ -96,7 +96,7 @@
96
96
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
97
97
  }
98
98
  }
99
- `];var wx=[Tt,z`
99
+ `];var Nx=[Tt,z`
100
100
  :host {
101
101
  --mdc-button-height: unset;
102
102
  --mdc-button-background: transparent;
@@ -149,7 +149,7 @@
149
149
  :host([size='20']) {
150
150
  --mdc-button-height: 1.25rem;
151
151
  }
152
- `,...xt()],Vf=wx;var vr=class extends Ot(Nt(Ve(ii(Xt(Z))))){constructor(){super();this.size=an.SIZE;this.role=an.ROLE;this.type=an.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||an.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===zs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===zs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{e===!0?t.setAttribute(a.trim(),"true"):e===!1?t.setAttribute(a.trim(),"false"):t.removeAttribute(a.trim())})}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,e){e?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.add("pressed"),e===K.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===K.ENTER||e===K.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===K.SPACE&&i&&this.triggerClickEvent()}}render(){return S` <slot></slot> `}};vr.formAssociated=!0,vr.styles=[...Z.styles,...Vf],h([u({type:Boolean,reflect:!0})],vr.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],vr.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],vr.prototype,"size",2),h([u({type:String,reflect:!0})],vr.prototype,"role",2),h([u({type:String,reflect:!0})],vr.prototype,"ariaStateKey",2),h([u({reflect:!0})],vr.prototype,"type",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:String,reflect:!0})],vr.prototype,"value",2);var ve=vr;var Gl=n=>{class o extends n{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}isHeightOverflowing(){return this.scrollHeight>this.clientHeight}}return o};var kx=z`
152
+ `,...xt()],Bf=Nx;var vr=class extends Ot(Nt(Ve(ii(Xt(Q))))){constructor(){super();this.size=an.SIZE;this.role=an.ROLE;this.type=an.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||an.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===zs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===zs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{e===!0?t.setAttribute(a.trim(),"true"):e===!1?t.setAttribute(a.trim(),"false"):t.removeAttribute(a.trim())})}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,e){e?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.add("pressed"),e===K.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===K.ENTER||e===K.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===K.SPACE&&i&&this.triggerClickEvent()}}render(){return S` <slot></slot> `}};vr.formAssociated=!0,vr.styles=[...Q.styles,...Bf],h([u({type:Boolean,reflect:!0})],vr.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],vr.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],vr.prototype,"size",2),h([u({type:String,reflect:!0})],vr.prototype,"role",2),h([u({type:String,reflect:!0})],vr.prototype,"ariaStateKey",2),h([u({reflect:!0})],vr.prototype,"type",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:String,reflect:!0})],vr.prototype,"value",2);var ve=vr;var Gl=n=>{class o extends n{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}isHeightOverflowing(){return this.scrollHeight>this.clientHeight}}return o};var Lx=z`
153
153
  :host {
154
154
  --mdc-button-prefix-icon-size: 1rem;
155
155
  --mdc-button-postfix-icon-size: 1rem;
@@ -456,7 +456,7 @@
456
456
  :host::part(postfix-icon) {
457
457
  flex-shrink: 0;
458
458
  }
459
- `,zf=[kx];var Xo=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var si=class extends Gl($l(ve)){constructor(){super(...arguments);this.size=sr.SIZE;this.inverted=sr.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Xo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Xo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
459
+ `,Hf=[Lx];var Zo=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var si=class extends Gl($l(ve)){constructor(){super(...arguments);this.size=sr.SIZE;this.inverted=sr.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Zo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Zo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
460
460
  <slot name="prefix" part="prefix">
461
461
  ${this.prefixFilledIconName?S` <mdc-icon
462
462
  name="${this.prefixFilledIconName}"
@@ -472,7 +472,7 @@
472
472
  length-unit="rem"
473
473
  ></mdc-icon>`:""}
474
474
  </slot>
475
- `}};si.styles=[...ve.styles,...zf],h([zt('slot[part="button-text"]')],si.prototype,"buttonTextPart",2),h([u({type:Number})],si.prototype,"size",2),h([u({type:Boolean,reflect:!0})],si.prototype,"inverted",2),h([u({type:String,reflect:!0})],si.prototype,"role",2),h([dt()],si.prototype,"prefixFilledIconName",2),h([dt()],si.prototype,"postfixFilledIconName",2);var Zo=si;var Kl=V.constructTagName("iconprovider"),Bf=["svg"],Hf=["em","rem","px","%"],Nx={px:16,em:1,rem:1,"%":100},Ri={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Nx.em,ICON_SET:"momentum-icons"};var Wl=class{};Wl.context=Kl;var Yl=Wl;var ai=class extends Se{constructor(){super({context:Yl.context,initialValue:new Yl});this.iconSet=Ri.ICON_SET;this.fileExtension=Ri.FILE_EXTENSION;this.lengthUnit=Ri.LENGTH_UNIT;this.size=Ri.SIZE}static get Context(){return Yl.context}updateValuesInContext(){this.fileExtension&&Bf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ri.FILE_EXTENSION,this.context.value.fileExtension=Ri.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Hf.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ri.LENGTH_UNIT,this.context.value.lengthUnit=Ri.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],ai.prototype,"iconSet",2),h([u({type:String})],ai.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ai.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ai.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ai.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ai.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ai.prototype,"cacheName",2);var cn=ai;var Lx=[Tt,z`
475
+ `}};si.styles=[...ve.styles,...Hf],h([zt('slot[part="button-text"]')],si.prototype,"buttonTextPart",2),h([u({type:Number})],si.prototype,"size",2),h([u({type:Boolean,reflect:!0})],si.prototype,"inverted",2),h([u({type:String,reflect:!0})],si.prototype,"role",2),h([dt()],si.prototype,"prefixFilledIconName",2),h([dt()],si.prototype,"postfixFilledIconName",2);var mo=si;var Kl=V.constructTagName("iconprovider"),Uf=["svg"],Gf=["em","rem","px","%"],Mx={px:16,em:1,rem:1,"%":100},Ri={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Mx.em,ICON_SET:"momentum-icons"};var Wl=class{};Wl.context=Kl;var Yl=Wl;var ai=class extends Se{constructor(){super({context:Yl.context,initialValue:new Yl});this.iconSet=Ri.ICON_SET;this.fileExtension=Ri.FILE_EXTENSION;this.lengthUnit=Ri.LENGTH_UNIT;this.size=Ri.SIZE}static get Context(){return Yl.context}updateValuesInContext(){this.fileExtension&&Uf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ri.FILE_EXTENSION,this.context.value.fileExtension=Ri.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Gf.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ri.LENGTH_UNIT,this.context.value.lengthUnit=Ri.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],ai.prototype,"iconSet",2),h([u({type:String})],ai.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ai.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ai.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ai.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ai.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ai.prototype,"cacheName",2);var cn=ai;var Ox=[Tt,z`
476
476
  :host {
477
477
  --mdc-icon-fill-color: currentColor;
478
478
  --mdc-icon-size: var(--computed-icon-size);
@@ -487,7 +487,7 @@
487
487
  width: 100%;
488
488
  fill: var(--mdc-icon-fill-color);
489
489
  }
490
- `,...xt()],Uf=Lx;var hn={},Gf=async n=>(hn[n]===void 0&&(hn[n]=new Map),{async set(o,t){hn[n].set(o.url,await t.text())},async get(o){return hn[n].get(o.url)},async delete(o){hn[n].delete(o.url)}}),Kf=async n=>{let o=await caches.open(n);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},jl=async(n,o)=>o==="in-memory-cache"?Gf(n):Kf(n);var Wf=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Yf=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a})=>{let d=a(),f=new Request(`${n}/${o}.${t}`,{signal:d});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?Wf(f).then(v=>v.text()):jl(i,e).then(v=>v.get(f).then(A=>A||Wf(f.clone()).then(R=>{var H;return R.status<400&&R.headers.has("content-type")?(H=v.set)==null?void 0:H.call(v,f,R.clone()).then(()=>R.text()):R.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var jf=V.constructTagName("icon"),Sh={NAME:void 0,SIZE:1};var gr=class extends Z{constructor(){super();this.name=Sh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:cn.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:a,iconSet:d,cacheStrategy:f}=this.iconProviderContext.value;if(d==="custom-icons"&&i&&e&&this.name){let v=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return Yf({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v}).then(A=>{let R=this.prepareIconElement(A);this.handleIconLoadedSuccess(R)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(d==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(v=>{this.handleIconLoadedSuccess(v.default())}).catch(v=>{this.handleIconLoadedFailure(v)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:Sh.SIZE}updated(t){var e,i,a,d;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(d=this.iconProviderContext.value)==null?void 0:d.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};gr.styles=[...Z.styles,...Uf],h([dt()],gr.prototype,"iconData",2),h([dt()],gr.prototype,"lengthUnitFromContext",2),h([dt()],gr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],gr.prototype,"name",2),h([u({type:Number})],gr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],gr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],gr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],gr.prototype,"ariaLabelledby",2),h([dt()],gr.prototype,"abortController",2);var Ih=gr;Ih.register(jf);var Mx=Ih;Zo.register(Mi);var Ox=Zo;var qf=z`
490
+ `,...xt()],Kf=Ox;var hn={},Wf=async n=>(hn[n]===void 0&&(hn[n]=new Map),{async set(o,t){hn[n].set(o.url,await t.text())},async get(o){return hn[n].get(o.url)},async delete(o){hn[n].delete(o.url)}}),Yf=async n=>{let o=await caches.open(n);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},ql=async(n,o)=>o==="in-memory-cache"?Wf(n):Yf(n);var qf=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Sh=new Map,jf=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a})=>{let d=a(),f=`${n}/${o}.${t}`,v=new Request(f,{signal:d});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?qf(v).then(x=>x.text()):ql(i,e).then(x=>x.get(v).then(R=>{if(R)return R;let H=Sh.get(f);if(H)return H;let J=qf(new Request(f)).then(W=>{var Z;return W.status<400&&W.headers.has("content-type")?(Z=x.set)==null?void 0:Z.call(x,v,W.clone()).then(()=>W.text()):W.text()}).finally(()=>{Sh.delete(f)});return Sh.set(f,J),J}).catch(R=>{throw new Error(`Error in caching the Icon ${o}, ${R}`)}))};var Xf=V.constructTagName("icon"),Ih={NAME:void 0,SIZE:1};var gr=class extends Q{constructor(){super();this.name=Ih.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:cn.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:a,iconSet:d,cacheStrategy:f}=this.iconProviderContext.value;if(d==="custom-icons"&&i&&e&&this.name){let v=()=>{var x;return(x=this.abortController)==null||x.abort(),this.abortController=new AbortController,this.abortController.signal};return jf({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v}).then(x=>{let R=this.prepareIconElement(x);this.handleIconLoadedSuccess(R)}).catch(x=>{this.handleIconLoadedFailure(x)})}if(d==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(v=>{this.handleIconLoadedSuccess(v.default())}).catch(v=>{this.handleIconLoadedFailure(v)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:Ih.SIZE}updated(t){var e,i,a,d;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(d=this.iconProviderContext.value)==null?void 0:d.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};gr.styles=[...Q.styles,...Kf],h([dt()],gr.prototype,"iconData",2),h([dt()],gr.prototype,"lengthUnitFromContext",2),h([dt()],gr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],gr.prototype,"name",2),h([u({type:Number})],gr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],gr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],gr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],gr.prototype,"ariaLabelledby",2),h([dt()],gr.prototype,"abortController",2);var Ch=gr;Ch.register(Xf);var Rx=Ch;mo.register(Mi);var Dx=mo;var Zf=z`
491
491
  :host::part(text) {
492
492
  font-size: unset;
493
493
  font-weight: unset;
@@ -730,14 +730,14 @@
730
730
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
731
731
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
732
732
  }
733
- `;var Rx=[z`
733
+ `;var Px=[z`
734
734
  :host {
735
735
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
736
736
 
737
737
  display: block;
738
738
  font-family: var(--mdc-text-font-family);
739
739
  }
740
- `,qf],Xf=Rx;var pn=V.constructTagName("text"),at={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qo=class extends Gl(Z){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return S`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return S`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return S`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return S`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return S`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return S`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return S`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return S`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return S`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return S`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};Qo.styles=[...Z.styles,...Xf],h([zt(`[part='${Me.CSS_PART_TEXT}']`)],Qo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],Qo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Qo.prototype,"tagname",2);var Ch=Qo;Ch.register(pn);var Dx=Ch;var tt=n=>n!=null?n:U;var Oe=[];for(let n=0;n<256;++n)Oe.push((n+256).toString(16).slice(1));function Zf(n,o=0){return(Oe[n[o+0]]+Oe[n[o+1]]+Oe[n[o+2]]+Oe[n[o+3]]+"-"+Oe[n[o+4]]+Oe[n[o+5]]+"-"+Oe[n[o+6]]+Oe[n[o+7]]+"-"+Oe[n[o+8]]+Oe[n[o+9]]+"-"+Oe[n[o+10]]+Oe[n[o+11]]+Oe[n[o+12]]+Oe[n[o+13]]+Oe[n[o+14]]+Oe[n[o+15]]).toLowerCase()}var _h,Px=new Uint8Array(16);function wh(){if(!_h){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");_h=crypto.getRandomValues.bind(crypto)}return _h(Px)}var Fx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),kh={randomUUID:Fx};function $x(n,o,t){var i,a,d;if(kh.randomUUID&&!o&&!n)return kh.randomUUID();n=n||{};let e=(d=(a=n.random)!=null?a:(i=n.rng)==null?void 0:i.call(n))!=null?d:wh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=e[f];return o}return Zf(e)}var ze=$x;var Qf=V.constructTagName("accordiongroup"),Nh={SMALL:"small",LARGE:"large"},Vx={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},mn={SIZE:Nh.SMALL,VARIANT:Vx.STACKED};var ql=V.constructTagName("accordionbutton"),un={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},zx={DEFAULT:"default",BORDERLESS:"borderless"},fn={LEADING:"leading",TRAILING:"trailing"},ni={EXPANDED:!1,SIZE:Nh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:zx.DEFAULT,ICON_NAME:un.ARROW_UP,TOGGLE_POSITION:fn.TRAILING};var Bx=z`
740
+ `,Zf],Qf=Px;var pn=V.constructTagName("text"),at={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qo=class extends Gl(Q){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return S`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return S`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return S`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return S`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return S`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return S`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return S`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return S`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return S`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return S`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};Qo.styles=[...Q.styles,...Qf],h([zt(`[part='${Me.CSS_PART_TEXT}']`)],Qo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],Qo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Qo.prototype,"tagname",2);var _h=Qo;_h.register(pn);var Fx=_h;var tt=n=>n!=null?n:U;var Oe=[];for(let n=0;n<256;++n)Oe.push((n+256).toString(16).slice(1));function Jf(n,o=0){return(Oe[n[o+0]]+Oe[n[o+1]]+Oe[n[o+2]]+Oe[n[o+3]]+"-"+Oe[n[o+4]]+Oe[n[o+5]]+"-"+Oe[n[o+6]]+Oe[n[o+7]]+"-"+Oe[n[o+8]]+Oe[n[o+9]]+"-"+Oe[n[o+10]]+Oe[n[o+11]]+Oe[n[o+12]]+Oe[n[o+13]]+Oe[n[o+14]]+Oe[n[o+15]]).toLowerCase()}var wh,$x=new Uint8Array(16);function kh(){if(!wh){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");wh=crypto.getRandomValues.bind(crypto)}return wh($x)}var Vx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Nh={randomUUID:Vx};function zx(n,o,t){var i,a,d;if(Nh.randomUUID&&!o&&!n)return Nh.randomUUID();n=n||{};let e=(d=(a=n.random)!=null?a:(i=n.rng)==null?void 0:i.call(n))!=null?d:kh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=e[f];return o}return Jf(e)}var ze=zx;var tv=V.constructTagName("accordiongroup"),Lh={SMALL:"small",LARGE:"large"},Bx={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},mn={SIZE:Lh.SMALL,VARIANT:Bx.STACKED};var jl=V.constructTagName("accordionbutton"),un={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Hx={DEFAULT:"default",BORDERLESS:"borderless"},fn={LEADING:"leading",TRAILING:"trailing"},ni={EXPANDED:!1,SIZE:Lh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:Hx.DEFAULT,ICON_NAME:un.ARROW_UP,TOGGLE_POSITION:fn.TRAILING};var Ux=z`
741
741
  :host {
742
742
  --mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
743
743
  --mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
@@ -854,7 +854,7 @@
854
854
  :host([variant='default']:not([expanded]))::part(header-section) {
855
855
  border-bottom: none;
856
856
  }
857
- `,Jf=[Bx,...xt(!0)];var zr=class extends Ot(Nt(Xt(Z))){constructor(){super(...arguments);this.size=ni.SIZE;this.variant=ni.VARIANT;this.dataAriaLevel=ni.DATA_ARIA_LEVEL;this.expanded=ni.EXPANDED;this.togglePosition=ni.TOGGLE_POSITION;this.headSectionId=`head-section-${ze()}`;this.bodySectionId=`body-section-${ze()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?S`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:U}renderHeadingText(){return this.headerText?S`<mdc-text
857
+ `,ev=[Ux,...xt(!0)];var zr=class extends Ot(Nt(Xt(Q))){constructor(){super(...arguments);this.size=ni.SIZE;this.variant=ni.VARIANT;this.dataAriaLevel=ni.DATA_ARIA_LEVEL;this.expanded=ni.EXPANDED;this.togglePosition=ni.TOGGLE_POSITION;this.headSectionId=`head-section-${ze()}`;this.bodySectionId=`body-section-${ze()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?S`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:U}renderHeadingText(){return this.headerText?S`<mdc-text
858
858
  id="${this.headSectionId}"
859
859
  type="${at.BODY_LARGE_REGULAR}"
860
860
  tagname=${pt.SPAN}
@@ -890,7 +890,7 @@
890
890
  role="${et.REGION}"
891
891
  >
892
892
  <slot></slot>
893
- </div>`:U}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=ni.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=ni.SIZE),t.has("variant")&&!this.variant&&(this.variant=ni.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=ni.TOGGLE_POSITION)}render(){return S` ${this.renderHeader()} ${this.renderBody()} `}};zr.styles=[...Z.styles,...Jf],h([u({type:String,reflect:!0})],zr.prototype,"size",2),h([u({type:String,reflect:!0})],zr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],zr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],zr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],zr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],zr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],zr.prototype,"togglePosition",2);var Gs=zr;var Hx=z`
893
+ </div>`:U}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=ni.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=ni.SIZE),t.has("variant")&&!this.variant&&(this.variant=ni.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=ni.TOGGLE_POSITION)}render(){return S` ${this.renderHeader()} ${this.renderBody()} `}};zr.styles=[...Q.styles,...ev],h([u({type:String,reflect:!0})],zr.prototype,"size",2),h([u({type:String,reflect:!0})],zr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],zr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],zr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],zr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],zr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],zr.prototype,"togglePosition",2);var Gs=zr;var Gx=z`
894
894
  :host::part(header-section) {
895
895
  display: flex;
896
896
  align-items: center;
@@ -904,7 +904,7 @@
904
904
  :host::part(toggle-button) {
905
905
  margin: 0.125rem;
906
906
  }
907
- `,tv=[Hx];var mo=class extends Gs{handleHeaderShownEvent(o){o.stopPropagation()}update(o){super.update(o),o.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderToggleButton(){return S`
907
+ `,rv=[Gx];var uo=class extends Gs{handleHeaderShownEvent(o){o.stopPropagation()}update(o){super.update(o),o.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderToggleButton(){return S`
908
908
  <mdc-button
909
909
  part="toggle-button"
910
910
  ?disabled="${this.disabled}"
@@ -930,7 +930,7 @@
930
930
  ${o?U:this.renderToggleButton()}
931
931
  </div>
932
932
  </div>
933
- `}};mo.styles=[...Gs.styles,...tv],h([qt({slot:"leading-controls"})],mo.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],mo.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],mo.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],mo.prototype,"closeButtonAriaLabel",2);var Lh=mo;var Xl=V.constructTagName("accordion");Lh.register(Xl);var Ux=Lh;var Gx=z`
933
+ `}};uo.styles=[...Gs.styles,...rv],h([jt({slot:"leading-controls"})],uo.prototype,"leadingControlsSlot",2),h([jt({slot:"trailing-controls"})],uo.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],uo.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],uo.prototype,"closeButtonAriaLabel",2);var Mh=uo;var Xl=V.constructTagName("accordion");Mh.register(Xl);var Kx=Mh;var Wx=z`
934
934
  :host {
935
935
  --mdc-accordiongroup-items-border-color: var(--mds-color-theme-outline-secondary-normal);
936
936
 
@@ -974,7 +974,7 @@
974
974
  :host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
975
975
  border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
976
976
  }
977
- `,ev=[Gx,...xt()];var Di=class extends Z{constructor(){super();this.size=mn.SIZE;this.variant=mn.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=mn.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=mn.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return S` <slot></slot> `}};Di.styles=[...Z.styles,...ev],h([u({type:String,reflect:!0})],Di.prototype,"size",2),h([u({type:String,reflect:!0})],Di.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Di.prototype,"allowMultiple",2),h([qt({selector:Xl})],Di.prototype,"accordionItems",2),h([qt({selector:ql})],Di.prototype,"accordionButtonItems",2);var Mh=Di;Mh.register(Qf);var Kx=Mh;Gs.register(ql);var Wx=Gs;var he=n=>{class o extends n{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var Yx=z`
977
+ `,iv=[Wx,...xt()];var Di=class extends Q{constructor(){super();this.size=mn.SIZE;this.variant=mn.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=mn.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=mn.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return S` <slot></slot> `}};Di.styles=[...Q.styles,...iv],h([u({type:String,reflect:!0})],Di.prototype,"size",2),h([u({type:String,reflect:!0})],Di.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Di.prototype,"allowMultiple",2),h([jt({selector:Xl})],Di.prototype,"accordionItems",2),h([jt({selector:jl})],Di.prototype,"accordionButtonItems",2);var Oh=Di;Oh.register(tv);var Yx=Oh;Gs.register(jl);var qx=Gs;var he=n=>{class o extends n{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var jx=z`
978
978
  :host {
979
979
  height: 1.5rem;
980
980
  gap: 0.25rem;
@@ -1087,16 +1087,16 @@
1087
1087
  --mdc-chip-icon-color: ButtonText;
1088
1088
  }
1089
1089
  }
1090
- `,rv=[Tt,Yx,...xt()];var Zl=V.constructTagName("alertchip"),Jo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Ks={VARIANT:Jo.NEUTRAL,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Yo[24],ROLE:et.BUTTON};var iv=n=>({[Jo.ERROR]:"error-legacy-badge-filled",[Jo.INFORMATIONAL]:"info-badge-filled",[Jo.NEUTRAL]:"dnd-presence-badge-filled",[Jo.SUCCESS]:"check-circle-badge-filled",[Jo.WARNING]:"warning-badge-filled"})[n];var Ws=class extends he(ve){constructor(){super(...arguments);this.variant=Ks.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Ks.SIZE,this.role=Ks.ROLE}render(){return S`
1091
- <mdc-icon part="icon" name="${this.iconName||iv(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1090
+ `,ov=[Tt,jx,...xt()];var Zl=V.constructTagName("alertchip"),Jo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Ks={VARIANT:Jo.NEUTRAL,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:qo[24],ROLE:et.BUTTON};var sv=n=>({[Jo.ERROR]:"error-legacy-badge-filled",[Jo.INFORMATIONAL]:"info-badge-filled",[Jo.NEUTRAL]:"dnd-presence-badge-filled",[Jo.SUCCESS]:"check-circle-badge-filled",[Jo.WARNING]:"warning-badge-filled"})[n];var Ws=class extends he(ve){constructor(){super(...arguments);this.variant=Ks.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Ks.SIZE,this.role=Ks.ROLE}render(){return S`
1091
+ <mdc-icon part="icon" name="${this.iconName||sv(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1092
1092
  ${this.label?S`<mdc-text part="label" type="${Ks.TEXT_TYPE}" tagname="${Ks.TAG_NAME}"
1093
1093
  >${this.label}</mdc-text
1094
1094
  >`:U}
1095
- `}};Ws.styles=[...Z.styles,...rv],h([u({type:String,reflect:!0})],Ws.prototype,"variant",2),h([u({type:String})],Ws.prototype,"label",2);var Oh=Ws;Oh.register(Zl);var jx=Oh;var{I:qx}=yf;var Ql=n=>n.strings===void 0,ov=()=>document.createComment(""),Ys=(n,o,t)=>{var a;let e=n._$AA.parentNode,i=o===void 0?n._$AB:o._$AA;if(t===void 0){let d=e.insertBefore(ov(),i),f=e.insertBefore(ov(),i);t=new qx(d,f,n,n.options)}else{let d=t._$AB.nextSibling,f=t._$AM,v=f!==n;if(v){let A;(a=t._$AQ)==null||a.call(t,n),t._$AM=n,t._$AP!==void 0&&(A=n._$AU)!==f._$AU&&t._$AP(A)}if(d!==i||v){let A=t._$AA;for(;A!==d;){let R=A.nextSibling;e.insertBefore(A,i),A=R}}}return t},uo=(n,o,t=n)=>(n._$AI(o,t),n),Xx={},Jl=(n,o=Xx)=>n._$AH=o,sv=n=>n._$AH,td=n=>{var e;(e=n._$AP)==null||e.call(n,!1,!0);let o=n._$AA,t=n._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var br={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Pi=n=>(...o)=>({_$litDirective$:n,values:o}),li=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var vn=(n,o)=>{var e;let t=n._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),vn(i,o);return!0},ed=n=>{let o,t;do{if((o=n._$AM)===void 0)break;t=o._$AN,t.delete(n),n=o}while((t==null?void 0:t.size)===0)},av=n=>{for(let o;o=n._$AM;n=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(n))break;t.add(n),Jx(o)}};function Zx(n){this._$AN!==void 0?(ed(this),this._$AM=n,av(this)):this._$AM=n}function Qx(n,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let a=t;a<e.length;a++)vn(e[a],!1),ed(e[a]);else e!=null&&(vn(e,!1),ed(e));else vn(this,n)}var Jx=n=>{var o,t;n.type==br.CHILD&&((o=n._$AP)!=null||(n._$AP=Qx),(t=n._$AQ)!=null||(n._$AQ=Zx))},rd=class extends li{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),av(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(vn(this,o),ed(this))}setValue(o){if(Ql(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var nv=()=>new Dh,Dh=class{},Rh=new WeakMap,lv=Pi(class extends rd{render(n){return U}update(n,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=n.options)==null?void 0:e.host,this.rt(this.ct=n.element)),U}rt(n){var o;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=Rh.get(t);e===void 0&&(e=new WeakMap,Rh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,o,t;return typeof this.Y=="function"?(o=Rh.get((n=this.ht)!=null?n:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var pv=jT(dv());var Ph={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var tA=[Tt,z`
1095
+ `}};Ws.styles=[...Q.styles,...ov],h([u({type:String,reflect:!0})],Ws.prototype,"variant",2),h([u({type:String})],Ws.prototype,"label",2);var Rh=Ws;Rh.register(Zl);var Xx=Rh;var{I:Zx}=Tf;var Ql=n=>n.strings===void 0,av=()=>document.createComment(""),Ys=(n,o,t)=>{var a;let e=n._$AA.parentNode,i=o===void 0?n._$AB:o._$AA;if(t===void 0){let d=e.insertBefore(av(),i),f=e.insertBefore(av(),i);t=new Zx(d,f,n,n.options)}else{let d=t._$AB.nextSibling,f=t._$AM,v=f!==n;if(v){let x;(a=t._$AQ)==null||a.call(t,n),t._$AM=n,t._$AP!==void 0&&(x=n._$AU)!==f._$AU&&t._$AP(x)}if(d!==i||v){let x=t._$AA;for(;x!==d;){let R=x.nextSibling;e.insertBefore(x,i),x=R}}}return t},fo=(n,o,t=n)=>(n._$AI(o,t),n),Qx={},Jl=(n,o=Qx)=>n._$AH=o,nv=n=>n._$AH,td=n=>{var e;(e=n._$AP)==null||e.call(n,!1,!0);let o=n._$AA,t=n._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var br={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Pi=n=>(...o)=>({_$litDirective$:n,values:o}),li=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var vn=(n,o)=>{var e;let t=n._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),vn(i,o);return!0},ed=n=>{let o,t;do{if((o=n._$AM)===void 0)break;t=o._$AN,t.delete(n),n=o}while((t==null?void 0:t.size)===0)},lv=n=>{for(let o;o=n._$AM;n=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(n))break;t.add(n),eA(o)}};function Jx(n){this._$AN!==void 0?(ed(this),this._$AM=n,lv(this)):this._$AM=n}function tA(n,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let a=t;a<e.length;a++)vn(e[a],!1),ed(e[a]);else e!=null&&(vn(e,!1),ed(e));else vn(this,n)}var eA=n=>{var o,t;n.type==br.CHILD&&((o=n._$AP)!=null||(n._$AP=tA),(t=n._$AQ)!=null||(n._$AQ=Jx))},rd=class extends li{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),lv(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(vn(this,o),ed(this))}setValue(o){if(Ql(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var dv=()=>new Ph,Ph=class{},Dh=new WeakMap,cv=Pi(class extends rd{render(n){return U}update(n,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=n.options)==null?void 0:e.host,this.rt(this.ct=n.element)),U}rt(n){var o;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=Dh.get(t);e===void 0&&(e=new WeakMap,Dh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,o,t;return typeof this.Y=="function"?(o=Dh.get((n=this.ht)!=null?n:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var uv=XT(hv());var Fh={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var rA=[Tt,z`
1096
1096
  :host svg {
1097
1097
  display: block;
1098
1098
  }
1099
- `],cv=tA;var hv=V.constructTagName("animation"),Fh={AUTO_PLAY:!0,LOOP:"true"};var di=class extends Z{constructor(){super(...arguments);this.loop=Fh.LOOP;this.autoplay=Fh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=nv();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.cachedAnimationData=t,this.createLottieInstance(t),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}createLottieInstance(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=pv.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.src?this.fetchAnimationFromUrl(this.src):this.name&&Ph[this.name]?import(`@momentum-design/animations/dist/lottie${Ph[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}fetchAnimationFromUrl(t){fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch animation from URL: ${t} (${e.status})`);return e.json()}).then(e=>this.onLoadSuccessHandler(e)).catch(e=>this.onLoadFailHandler(e))}updated(t){super.updated(t),t.has("name")||t.has("src")?(this.cachedAnimationData=void 0,this.getAnimationData()):(t.has("loop")||t.has("autoplay"))&&this.cachedAnimationData&&this.createLottieInstance(this.cachedAnimationData),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${lv(this.containerRef)}></div>`}};di.styles=[...Z.styles,...cv],h([u({type:String,reflect:!0})],di.prototype,"name",2),h([u({type:String,reflect:!0})],di.prototype,"src",2),h([u({type:String,reflect:!0})],di.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],di.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],di.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],di.prototype,"ariaLabelledby",2);var $h=di;$h.register(hv);var eA=$h;var js=n=>{class o extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Oi.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Oi.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=jo(this.shadowRoot,{stopAtNonTabbable:!0}))}setInitialFocus(i=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus({preventScroll:!0}))}calculateNextIndex(i,a){let{length:d}=this.focusableElements;if(i===-1)return a>0?0:d-1;let f=i+a;return this.shouldFocusTrapWrap?(f<0&&(f=d-1),f>=d&&(f=0)):(f<0&&(f=0),f>=d&&(f=d-1)),f}getDeepActiveElement(){var a;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((a=i.shadowRoot)!=null&&a.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(i,a))}isEqualFocusNode(i,a){return i.nodeType>=0?a.isEqualNode(i)&&a===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),d=this.findElement(a);if(d===-1)return;i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(d,-1):this.focusTrapIndex=this.calculateNextIndex(d,1);let v=this.focusableElements[this.focusTrapIndex];v.tagName!=="IFRAME"&&v&&(i.preventDefault(),v.focus())}handleTabKeydown(i){this.isFocusTrapActivated&&i.key==="Tab"&&this.trapFocus(i)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var od=n=>{class o extends n{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var sd=V.constructTagName("link"),ad={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},nd={LARGE:1,MIDSIZE:.875,SMALL:.75},mv={LINK_SIZE:ad.LARGE};var uv=V.constructTagName("card"),Vh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},rA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:Vh.BORDER,ORIENTATION:rA.VERTICAL,TITLE_TYPE:at.HEADING_SMALL_BOLD,SUBTITLE_TYPE:at.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:sd,BUTTON:Mi};var qs=n=>{class o extends n{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(a=>{e===Vh.PROMOTIONAL?a.setAttribute("color",ri.PROMOTIONAL):a.setAttribute("color",ri.DEFAULT)})}handleFooterSlot(e,i){var d,f,v;let a=[];e===Ce.LINK&&((d=this.footerLink)!=null&&d.length)?a=this.footerLink:e===Ce.BUTTON&&i===Bt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?a=this.footerButtonPrimary:e===Ce.BUTTON&&i===Bt.SECONDARY&&((v=this.footerButtonSecondary)!=null&&v.length)&&(a=this.footerButtonSecondary);for(let A=1;A<a.length;A+=1)a[A].remove();a.forEach(A=>{A.matches(e)||A.remove(),i&&A.setAttribute("variant",i)})}renderFooter(){return S` <slot name="footer">
1099
+ `],pv=rA;var mv=V.constructTagName("animation"),$h={AUTO_PLAY:!0,LOOP:"true"};var di=class extends Q{constructor(){super(...arguments);this.loop=$h.LOOP;this.autoplay=$h.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=dv();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.cachedAnimationData=t,this.createLottieInstance(t),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}createLottieInstance(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=uv.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.src?this.fetchAnimationFromUrl(this.src):this.name&&Fh[this.name]?import(`@momentum-design/animations/dist/lottie${Fh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}fetchAnimationFromUrl(t){fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch animation from URL: ${t} (${e.status})`);return e.json()}).then(e=>this.onLoadSuccessHandler(e)).catch(e=>this.onLoadFailHandler(e))}updated(t){super.updated(t),t.has("name")||t.has("src")?(this.cachedAnimationData=void 0,this.getAnimationData()):(t.has("loop")||t.has("autoplay"))&&this.cachedAnimationData&&this.createLottieInstance(this.cachedAnimationData),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${cv(this.containerRef)}></div>`}};di.styles=[...Q.styles,...pv],h([u({type:String,reflect:!0})],di.prototype,"name",2),h([u({type:String,reflect:!0})],di.prototype,"src",2),h([u({type:String,reflect:!0})],di.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],di.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],di.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],di.prototype,"ariaLabelledby",2);var Vh=di;Vh.register(mv);var iA=Vh;var qs=n=>{class o extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Oi.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Oi.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=jo(this.shadowRoot,{stopAtNonTabbable:!0}))}setInitialFocus(i=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus({preventScroll:!0}))}calculateNextIndex(i,a){let{length:d}=this.focusableElements;if(i===-1)return a>0?0:d-1;let f=i+a;return this.shouldFocusTrapWrap?(f<0&&(f=d-1),f>=d&&(f=0)):(f<0&&(f=0),f>=d&&(f=d-1)),f}getDeepActiveElement(){var a;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((a=i.shadowRoot)!=null&&a.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(i,a))}isEqualFocusNode(i,a){return i.nodeType>=0?a.isEqualNode(i)&&a===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),d=this.findElement(a);if(d===-1)return;i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(d,-1):this.focusTrapIndex=this.calculateNextIndex(d,1);let v=this.focusableElements[this.focusTrapIndex];v.tagName!=="IFRAME"&&v&&(i.preventDefault(),v.focus())}handleTabKeydown(i){this.isFocusTrapActivated&&i.key==="Tab"&&this.trapFocus(i)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var od=n=>{class o extends n{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var sd=V.constructTagName("link"),ad={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},nd={LARGE:1,MIDSIZE:.875,SMALL:.75},fv={LINK_SIZE:ad.LARGE};var vv=V.constructTagName("card"),zh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},oA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:zh.BORDER,ORIENTATION:oA.VERTICAL,TITLE_TYPE:at.HEADING_SMALL_BOLD,SUBTITLE_TYPE:at.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:sd,BUTTON:Mi};var js=n=>{class o extends n{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(a=>{e===zh.PROMOTIONAL?a.setAttribute("color",ri.PROMOTIONAL):a.setAttribute("color",ri.DEFAULT)})}handleFooterSlot(e,i){var d,f,v;let a=[];e===Ce.LINK&&((d=this.footerLink)!=null&&d.length)?a=this.footerLink:e===Ce.BUTTON&&i===Bt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?a=this.footerButtonPrimary:e===Ce.BUTTON&&i===Bt.SECONDARY&&((v=this.footerButtonSecondary)!=null&&v.length)&&(a=this.footerButtonSecondary);for(let x=1;x<a.length;x+=1)a[x].remove();a.forEach(x=>{x.matches(e)||x.remove(),i&&x.setAttribute("variant",i)})}renderFooter(){return S` <slot name="footer">
1100
1100
  <div part="footer">
1101
1101
  <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Ce.LINK)}></slot>
1102
1102
  <slot
@@ -1108,7 +1108,7 @@
1108
1108
  @slotchange=${()=>this.handleFooterSlot(Ce.BUTTON,Bt.PRIMARY)}
1109
1109
  ></slot>
1110
1110
  </div>
1111
- </slot>`}}return h([qt({slot:"footer-link"})],o.prototype,"footerLink",2),h([qt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),h([qt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var Ye=[],fv=1e3,iA=3,zh=-2,Bh=-1,fo=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return Ye.length}pushHost(){var o,t;return this.has(this.host)?!1:(Ye.push(this.host),(t=(o=this.host).onComponentStackChanged)==null||t.call(o,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(o){if(!this.has(o))return;let t=Ye.filter(a=>a.stackGroupName===o.stackGroupName),e=t.indexOf(o),i=[];for(let a=t.length-1;a>=e;a-=1){let d=t[a];(d===o||d.triggerID!==o.triggerID)&&i.push(d)}return this.remove(i),o}pop(){var t;let o=Ye.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let e=Ye.length-1;e>=0;e-=1){let i=Ye[e],a=o(i,e);if(a===!1)break;a!=="skip"&&t.push(i)}return this.remove(t)}peek(){return Ye.at(-1)}remove(o){var i,a;let t=o.filter(d=>Ye.includes(d)),e=t.reduce((d,f)=>Math.min(d,Ye.indexOf(f)),1/0);t.forEach(d=>{Ye.splice(Ye.indexOf(d),1)}),t.forEach(d=>{var f;(f=d==null?void 0:d.onComponentStackChanged)==null||f.call(d,"removed")});for(let d=e;d<Ye.length;d+=1)(a=(i=Ye[d]).onComponentStackChanged)==null||a.call(i,"moved");return t}has(o){return Ye.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return Ye.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?fv+t*iA:fv}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var ld=n=>{class o extends n{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(i){var a;if(super.update(i),i.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+zh}`;let d=(a=this.triggerElementCache)==null?void 0:a.deref();d&&(d.style.zIndex=`${this.zIndex+Bh}`)}}createBackdrop(i){let a=document.createElement("div");a.classList.add(`${i}-backdrop`);let d=document.createElement("style"),f=this.isBackdropInvisible?"transparent":getComputedStyle(this).getPropertyValue("--mdc-backdrop-mixin-background-color")||"var(--mds-color-theme-common-overlays-secondary-normal)";d.textContent=`
1111
+ </slot>`}}return h([jt({slot:"footer-link"})],o.prototype,"footerLink",2),h([jt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),h([jt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var Ye=[],gv=1e3,sA=3,Bh=-2,Hh=-1,vo=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return Ye.length}pushHost(){var o,t;return this.has(this.host)?!1:(Ye.push(this.host),(t=(o=this.host).onComponentStackChanged)==null||t.call(o,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(o){if(!this.has(o))return;let t=Ye.filter(a=>a.stackGroupName===o.stackGroupName),e=t.indexOf(o),i=[];for(let a=t.length-1;a>=e;a-=1){let d=t[a];(d===o||d.triggerID!==o.triggerID)&&i.push(d)}return this.remove(i),o}pop(){var t;let o=Ye.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let e=Ye.length-1;e>=0;e-=1){let i=Ye[e],a=o(i,e);if(a===!1)break;a!=="skip"&&t.push(i)}return this.remove(t)}peek(){return Ye.at(-1)}remove(o){var i,a;let t=o.filter(d=>Ye.includes(d)),e=t.reduce((d,f)=>Math.min(d,Ye.indexOf(f)),1/0);t.forEach(d=>{Ye.splice(Ye.indexOf(d),1)}),t.forEach(d=>{var f;(f=d==null?void 0:d.onComponentStackChanged)==null||f.call(d,"removed")});for(let d=e;d<Ye.length;d+=1)(a=(i=Ye[d]).onComponentStackChanged)==null||a.call(i,"moved");return t}has(o){return Ye.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return Ye.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?gv+t*sA:gv}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var ld=n=>{class o extends n{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(i){var a;if(super.update(i),i.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Bh}`;let d=(a=this.triggerElementCache)==null?void 0:a.deref();d&&(d.style.zIndex=`${this.zIndex+Hh}`)}}createBackdrop(i){let a=document.createElement("div");a.classList.add(`${i}-backdrop`);let d=document.createElement("style"),f=this.isBackdropInvisible?"transparent":getComputedStyle(this).getPropertyValue("--mdc-backdrop-mixin-background-color")||"var(--mds-color-theme-common-overlays-secondary-normal)";d.textContent=`
1112
1112
  .${i}-backdrop {
1113
1113
  position: fixed;
1114
1114
  top: 0;
@@ -1116,9 +1116,9 @@
1116
1116
  width: 100%;
1117
1117
  height: 100%;
1118
1118
  background: ${f};
1119
- z-index: ${this.zIndex+zh};
1119
+ z-index: ${this.zIndex+Bh};
1120
1120
  }
1121
- `,a.appendChild(d);let A=document.getElementById(this.backdropAppendTo)||this.parentElement;A==null||A.appendChild(a),this.backdropElement=a}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(i){i&&(this.triggerElementCache=new WeakRef(i),this.elementOriginalStyle={zIndex:i.style.zIndex,position:i.style.position},i.style.zIndex=`${this.zIndex+Bh}`,["fixed","absolute"].includes(window.getComputedStyle(i).position)||(i.style.position="relative"))}moveElementBackAfterBackdropRemoval(i){!i||!this.elementOriginalStyle||(i.style.zIndex=this.elementOriginalStyle.zIndex,i.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var dd=V.constructTagName("responsivesettingsprovider"),Br={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},vv=["float","dialog"],gv=["unknown","mobile","desktop","tablet"];var cd=class{constructor(o={}){this.media=Br.MEDIA;this.forceFullscreenDialog=Br.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=Br.POPOVER_POSITIONING;Object.assign(this,o)}};cd.context=dd;var hd=cd;var Xs=class extends Se{constructor(){super({context:hd.context,initialValue:new hd({media:Br.MEDIA,popoverPositioning:Br.POPOVER_POSITIONING,forceFullscreenDialog:Br.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=Br.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=Br.POPOVER_POSITIONING;this.privateMedia=Br.MEDIA}static get Context(){return hd.context}set popoverPositioning(t){vv.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){gv.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,e,i;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((e=this.context.value)==null?void 0:e.popoverPositioning)!==this.privatePopoverPositioning||((i=this.context.value)==null?void 0:i.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};h([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Xs.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Xs.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Xs.prototype,"media",1);var Hh=Xs;Hh.register(dd);var Uh=Hh;var bv=V.constructTagName("dialog"),Gh={DEFAULT:"default",PROMOTIONAL:"promotional"},_r={VISIBLE:!1,Z_INDEX:1e3,ROLE:et.DIALOG,SIZE:"small",HEADER_TAG_NAME:pt.H2,DESCRIPTION_TAG_NAME:pt.P,CANCEL_ICON:"cancel-bold",VARIANT:Gh.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var KO=[et.DIALOG,et.ALERTDIALOG];var vo=class{static dispatchDialogEvent(o,t,e=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:e}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var oA=z`
1121
+ `,a.appendChild(d);let x=document.getElementById(this.backdropAppendTo)||this.parentElement;x==null||x.appendChild(a),this.backdropElement=a}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(i){i&&(this.triggerElementCache=new WeakRef(i),this.elementOriginalStyle={zIndex:i.style.zIndex,position:i.style.position},i.style.zIndex=`${this.zIndex+Hh}`,["fixed","absolute"].includes(window.getComputedStyle(i).position)||(i.style.position="relative"))}moveElementBackAfterBackdropRemoval(i){!i||!this.elementOriginalStyle||(i.style.zIndex=this.elementOriginalStyle.zIndex,i.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var dd=V.constructTagName("responsivesettingsprovider"),Br={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},bv=["float","dialog"],yv=["unknown","mobile","desktop","tablet"];var cd=class{constructor(o={}){this.media=Br.MEDIA;this.forceFullscreenDialog=Br.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=Br.POPOVER_POSITIONING;Object.assign(this,o)}};cd.context=dd;var hd=cd;var Xs=class extends Se{constructor(){super({context:hd.context,initialValue:new hd({media:Br.MEDIA,popoverPositioning:Br.POPOVER_POSITIONING,forceFullscreenDialog:Br.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=Br.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=Br.POPOVER_POSITIONING;this.privateMedia=Br.MEDIA}static get Context(){return hd.context}set popoverPositioning(t){bv.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){yv.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,e,i;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((e=this.context.value)==null?void 0:e.popoverPositioning)!==this.privatePopoverPositioning||((i=this.context.value)==null?void 0:i.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};h([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Xs.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Xs.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Xs.prototype,"media",1);var Uh=Xs;Uh.register(dd);var Gh=Uh;var Ev=V.constructTagName("dialog"),Kh={DEFAULT:"default",PROMOTIONAL:"promotional"},_r={VISIBLE:!1,Z_INDEX:1e3,ROLE:et.DIALOG,SIZE:"small",HEADER_TAG_NAME:pt.H2,DESCRIPTION_TAG_NAME:pt.P,CANCEL_ICON:"cancel-bold",VARIANT:Kh.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var YO=[et.DIALOG,et.ALERTDIALOG];var go=class{static dispatchDialogEvent(o,t,e=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:e}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var aA=z`
1122
1122
  :host {
1123
1123
  --mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
1124
1124
  --mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -1271,7 +1271,7 @@
1271
1271
  mdc-text::part(text) {
1272
1272
  margin: 0;
1273
1273
  }
1274
- `,yv=[oA];var ie=class extends Ot(Nt(ld(od(js(qs(Z)))))){constructor(){super(...arguments);this.responsiveSettingsContext=Ie.consume({host:this,context:Uh.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new fo(this);this.id="";this.visible=_r.VISIBLE;this.internalSize=_r.SIZE;this.variant=_r.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=_r.HEADER_TAG_NAME;this.descriptionTagName=_r.DESCRIPTION_TAG_NAME;this.role=_r.ROLE;this.disableAriaHasPopup=_r.DISABLE_ARIA_HAS_POPUP;this.focusTrap=_r.FOCUS_TRAP;this.hideBackdrop=_r.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==K.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,e;return(e=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&e.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(e=this.deactivateFocusTrap)==null||e.call(this),this.focusBackToTrigger(),vo.onDestroyedDialog(this)}applyZIndex(){this.style.setProperty("z-index",`${this.zIndex}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),vo.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerID")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.setupAriaHasPopup()),t.has("visible")){let e=t.get("visible");await this.isOpenUpdated(e,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=_r.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,e;this.disableAriaHasPopup||(e=this.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerID&&this.setAttribute("aria-labelledby",this.triggerID)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerID&&this.setAttribute("aria-describedby",this.triggerID))}closeDialog(){this.depthManager.popHost(),vo.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var i,a,d,f,v;t!==e&&(e&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((i=this.activateFocusTrap)==null||i.call(this)),(a=this.setInitialFocus)==null||a.call(this),(d=this.triggerElement)==null||d.setAttribute("aria-expanded","true"),vo.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(v=this.deactivateFocusTrap)==null||v.call(this),this.focusBackToTrigger(),vo.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?S` <div part="header-section">
1274
+ `,Tv=[aA];var ie=class extends Ot(Nt(ld(od(qs(js(Q)))))){constructor(){super(...arguments);this.responsiveSettingsContext=Ie.consume({host:this,context:Gh.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new vo(this);this.id="";this.visible=_r.VISIBLE;this.internalSize=_r.SIZE;this.variant=_r.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=_r.HEADER_TAG_NAME;this.descriptionTagName=_r.DESCRIPTION_TAG_NAME;this.role=_r.ROLE;this.disableAriaHasPopup=_r.DISABLE_ARIA_HAS_POPUP;this.focusTrap=_r.FOCUS_TRAP;this.hideBackdrop=_r.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==K.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,e;return(e=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&e.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(e=this.deactivateFocusTrap)==null||e.call(this),this.focusBackToTrigger(),go.onDestroyedDialog(this)}applyZIndex(){this.style.setProperty("z-index",`${this.zIndex}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),go.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerID")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.setupAriaHasPopup()),t.has("visible")){let e=t.get("visible");await this.isOpenUpdated(e,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=_r.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,e;this.disableAriaHasPopup||(e=this.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerID&&this.setAttribute("aria-labelledby",this.triggerID)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerID&&this.setAttribute("aria-describedby",this.triggerID))}closeDialog(){this.depthManager.popHost(),go.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var i,a,d,f,v;t!==e&&(e&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((i=this.activateFocusTrap)==null||i.call(this)),(a=this.setInitialFocus)==null||a.call(this),(d=this.triggerElement)==null||d.setAttribute("aria-expanded","true"),go.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(v=this.deactivateFocusTrap)==null||v.call(this),this.focusBackToTrigger(),go.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?S` <div part="header-section">
1275
1275
  <div part="header">
1276
1276
  <slot name="header-prefix"></slot>
1277
1277
  <mdc-text
@@ -1302,7 +1302,7 @@
1302
1302
  @click="${this.closeDialog}"
1303
1303
  ></mdc-button>
1304
1304
  ${this.renderBody()} ${this.renderFooter()}
1305
- `}};ie.styles=[...Z.styles,...yv],h([u({type:String,reflect:!0})],ie.prototype,"id",2),h([u({type:String,reflect:!0})],ie.prototype,"triggerID",2),h([u({type:Boolean,reflect:!0})],ie.prototype,"visible",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],ie.prototype,"zIndex",1),h([u({type:String,reflect:!0})],ie.prototype,"size",1),h([u({type:String,reflect:!0})],ie.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],ie.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],ie.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],ie.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],ie.prototype,"ariaDescribedby",2),h([u({type:String,reflect:!0,attribute:"aria-description"})],ie.prototype,"ariaDescription",2),h([u({type:String,reflect:!0,attribute:"header-text"})],ie.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"description-text"})],ie.prototype,"descriptionText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],ie.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"description-tag-name"})],ie.prototype,"descriptionTagName",2),h([u({type:String,reflect:!0})],ie.prototype,"role",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],ie.prototype,"disableAriaHasPopup",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],ie.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],ie.prototype,"hideBackdrop",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],ie.prototype,"stackGroupName",2);var Zs=ie;var sA=z`
1305
+ `}};ie.styles=[...Q.styles,...Tv],h([u({type:String,reflect:!0})],ie.prototype,"id",2),h([u({type:String,reflect:!0})],ie.prototype,"triggerID",2),h([u({type:Boolean,reflect:!0})],ie.prototype,"visible",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],ie.prototype,"zIndex",1),h([u({type:String,reflect:!0})],ie.prototype,"size",1),h([u({type:String,reflect:!0})],ie.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],ie.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],ie.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],ie.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],ie.prototype,"ariaDescribedby",2),h([u({type:String,reflect:!0,attribute:"aria-description"})],ie.prototype,"ariaDescription",2),h([u({type:String,reflect:!0,attribute:"header-text"})],ie.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"description-text"})],ie.prototype,"descriptionText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],ie.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"description-tag-name"})],ie.prototype,"descriptionTagName",2),h([u({type:String,reflect:!0})],ie.prototype,"role",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],ie.prototype,"disableAriaHasPopup",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],ie.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],ie.prototype,"hideBackdrop",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],ie.prototype,"stackGroupName",2);var Zs=ie;var nA=z`
1306
1306
  :host {
1307
1307
  --mdc-announcementdialog-illustration-background-color: var(--mds-color-theme-background-solid-secondary-normal);
1308
1308
 
@@ -1351,7 +1351,7 @@
1351
1351
  margin-inline-end: 0;
1352
1352
  }
1353
1353
  }
1354
- `,Ev=[sA];var Tv=V.constructTagName("announcementdialog");var xv={SIZE:"medium"};var Qs=class extends Zs{get size(){var o,t;return(t=(o=this.responsiveSettingsContext)==null?void 0:o.value)!=null&&t.forceFullscreenDialog?"fullscreen":this.internalSize}set size(o){this.internalSize=o}constructor(){super(),this.internalSize=xv.SIZE}connectedCallback(){super.connectedCallback(),this.variant=Gh.DEFAULT}renderHeader(){return S`${U}`}renderBody(){return S`
1354
+ `,xv=[nA];var Av=V.constructTagName("announcementdialog");var Sv={SIZE:"medium"};var Qs=class extends Zs{get size(){var o,t;return(t=(o=this.responsiveSettingsContext)==null?void 0:o.value)!=null&&t.forceFullscreenDialog?"fullscreen":this.internalSize}set size(o){this.internalSize=o}constructor(){super(),this.internalSize=Sv.SIZE}connectedCallback(){super.connectedCallback(),this.variant=Kh.DEFAULT}renderHeader(){return S`${U}`}renderBody(){return S`
1355
1355
  <div part="body">
1356
1356
  <div part="illustration-container">
1357
1357
  <slot name="illustration-container">
@@ -1371,7 +1371,7 @@
1371
1371
  </slot>
1372
1372
  </div>
1373
1373
  </div>
1374
- `}};Qs.styles=[...Zs.styles,...Ev],h([u({type:String,reflect:!0})],Qs.prototype,"illustration",2),h([u({type:String,reflect:!0})],Qs.prototype,"size",1);var Kh=Qs;var pd=V.constructTagName("illustrationprovider"),Av=["svg"],bn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var md=class{};md.context=pd;var ud=md;var go=class extends Se{constructor(){super({context:ud.context,initialValue:new ud});this.illustrationSet=bn.ILLUSTRATION_SET;this.fileExtension=bn.FILE_EXTENSION}static get Context(){return ud.context}updateValuesInContext(){this.fileExtension&&Av.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=bn.FILE_EXTENSION,this.context.value.fileExtension=bn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"illustration-set",reflect:!0})],go.prototype,"illustrationSet",2),h([u({type:String})],go.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],go.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],go.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],go.prototype,"cacheName",2);var yn=go;var aA=[Tt,z`
1374
+ `}};Qs.styles=[...Zs.styles,...xv],h([u({type:String,reflect:!0})],Qs.prototype,"illustration",2),h([u({type:String,reflect:!0})],Qs.prototype,"size",1);var Wh=Qs;var pd=V.constructTagName("illustrationprovider"),Iv=["svg"],bn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var md=class{};md.context=pd;var ud=md;var bo=class extends Se{constructor(){super({context:ud.context,initialValue:new ud});this.illustrationSet=bn.ILLUSTRATION_SET;this.fileExtension=bn.FILE_EXTENSION}static get Context(){return ud.context}updateValuesInContext(){this.fileExtension&&Iv.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=bn.FILE_EXTENSION,this.context.value.fileExtension=bn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"illustration-set",reflect:!0})],bo.prototype,"illustrationSet",2),h([u({type:String})],bo.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],bo.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],bo.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],bo.prototype,"cacheName",2);var yn=bo;var lA=[Tt,z`
1375
1375
  :host {
1376
1376
  --mdc-illustration-size: auto;
1377
1377
  }
@@ -1379,7 +1379,7 @@
1379
1379
  height: var(--mdc-illustration-size);
1380
1380
  width: var(--mdc-illustration-size);
1381
1381
  }
1382
- `],Sv=aA;var Iv=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),Cv=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a})=>{let d=a(),f=new Request(`${n}/${o}.${t}`,{signal:d});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?Iv(f).then(v=>v.text()):jl(i,e).then(v=>v.get(f).then(A=>A||Iv(f.clone()).then(R=>{var H;return R.status<400&&R.headers.has("content-type")?(H=v.set)==null?void 0:H.call(v,f,R.clone()).then(()=>R.text()):R.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var _v=V.constructTagName("illustration"),wv={NAME:void 0};var Fi=class extends Z{constructor(){super();this.name=wv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ie.consume({host:this,context:yn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:i,cacheName:a,illustrationSet:d,cacheStrategy:f}=this.illustrationProviderContext.value;if(d==="custom-illustrations"&&i&&e&&this.name){let v=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return Cv({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v}).then(A=>{let R=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(R)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(d==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(v=>{this.handleIllustrationLoadedSuccess(v.default())}).catch(v=>{this.handleIllustrationLoadedFailure(v)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.illustrationData} `}};Fi.styles=[...Z.styles,...Sv],h([dt()],Fi.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Fi.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Fi.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Fi.prototype,"ariaLabelledby",2),h([dt()],Fi.prototype,"abortController",2);var Wh=Fi;Wh.register(_v);var nA=Wh;Kh.register(Tv);var lA=Kh;var dA=z`
1382
+ `],Cv=lA;var _v=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),Yh=new Map,wv=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a})=>{let d=a(),f=`${n}/${o}.${t}`,v=new Request(f,{signal:d});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?_v(v).then(x=>x.text()):ql(i,e).then(x=>x.get(v).then(R=>{if(R)return R;let H=Yh.get(f);if(H)return H;let J=_v(new Request(f)).then(W=>{var Z;return W.status<400&&W.headers.has("content-type")?(Z=x.set)==null?void 0:Z.call(x,v,W.clone()).then(()=>W.text()):W.text()}).finally(()=>{Yh.delete(f)});return Yh.set(f,J),J}).catch(R=>{throw new Error(`Error in caching the Illustration ${o}, ${R}`)}))};var kv=V.constructTagName("illustration"),Nv={NAME:void 0};var Fi=class extends Q{constructor(){super();this.name=Nv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ie.consume({host:this,context:yn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:i,cacheName:a,illustrationSet:d,cacheStrategy:f}=this.illustrationProviderContext.value;if(d==="custom-illustrations"&&i&&e&&this.name){let v=()=>{var x;return(x=this.abortController)==null||x.abort(),this.abortController=new AbortController,this.abortController.signal};return wv({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v}).then(x=>{let R=this.prepareIllustrationElement(x);this.handleIllustrationLoadedSuccess(R)}).catch(x=>{this.handleIllustrationLoadedFailure(x)})}if(d==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(v=>{this.handleIllustrationLoadedSuccess(v.default())}).catch(v=>{this.handleIllustrationLoadedFailure(v)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.illustrationData} `}};Fi.styles=[...Q.styles,...Cv],h([dt()],Fi.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Fi.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Fi.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Fi.prototype,"ariaLabelledby",2),h([dt()],Fi.prototype,"abortController",2);var qh=Fi;qh.register(kv);var dA=qh;Wh.register(Av);var cA=Wh;var hA=z`
1383
1383
  :host {
1384
1384
  --mdc-appheader-height: 4rem;
1385
1385
  }
@@ -1413,7 +1413,7 @@
1413
1413
  justify-content: flex-end;
1414
1414
  flex: 1;
1415
1415
  }
1416
- `,kv=[dA];var fd=class extends Z{render(){return S`
1416
+ `,Lv=[hA];var fd=class extends Q{render(){return S`
1417
1417
  <header part="container">
1418
1418
  <div part="leading-section">
1419
1419
  <slot name="leading"></slot>
@@ -1423,7 +1423,7 @@
1423
1423
  <slot name="trailing"></slot>
1424
1424
  </div>
1425
1425
  </header>
1426
- `}};fd.styles=[...Z.styles,...kv];var Yh=fd;var Nv=V.constructTagName("appheader");Yh.register(Nv);var cA=Yh;var Lv=V.constructTagName("avatar"),je={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},jh=99,hA="user-regular",Qt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Js={TYPE:je.PHOTO,SIZE:Qt[32],ICON_NAME:hA};var vd=n=>{class o extends n{constructor(){super(...arguments);this.size=Js.SIZE;this.isTyping=!1}}return h([u({type:String})],o.prototype,"src",2),h([u({type:String})],o.prototype,"initials",2),h([u({type:String})],o.prototype,"presence",2),h([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),h([u({type:Number})],o.prototype,"counter",2),h([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var pA=[Tt,z`
1426
+ `}};fd.styles=[...Q.styles,...Lv];var jh=fd;var Mv=V.constructTagName("appheader");jh.register(Mv);var pA=jh;var Ov=V.constructTagName("avatar"),qe={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Xh=99,mA="user-regular",Qt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Js={TYPE:qe.PHOTO,SIZE:Qt[32],ICON_NAME:mA};var vd=n=>{class o extends n{constructor(){super(...arguments);this.size=Js.SIZE;this.isTyping=!1}}return h([u({type:String})],o.prototype,"src",2),h([u({type:String})],o.prototype,"initials",2),h([u({type:String})],o.prototype,"presence",2),h([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),h([u({type:Number})],o.prototype,"counter",2),h([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var uA=[Tt,z`
1427
1427
  :host {
1428
1428
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
1429
1429
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -1580,8 +1580,8 @@
1580
1580
  outline: 0.125rem solid;
1581
1581
  }
1582
1582
  }
1583
- `],Mv=pA;var Ov=V.constructTagName("presence"),Be={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},pe={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ta={TYPE:Be.ACTIVE,SIZE:pe[32]};var Rv=n=>({[Qt[124]]:pe[124],[Qt[88]]:pe[88],[Qt[72]]:pe[72],[Qt[64]]:pe[64],[Qt[48]]:pe[48],[Qt[32]]:pe[32],[Qt[24]]:pe[24]})[n]||pe[32],Dv=n=>({[Qt[124]]:4.75,[Qt[88]]:3,[Qt[72]]:2.5,[Qt[64]]:2.25,[Qt[48]]:1.75,[Qt[32]]:1.25,[Qt[24]]:1})[n]||1.25,Pv=n=>({[Qt[124]]:at.HEADING_XLARGE_MEDIUM,[Qt[88]]:at.HEADING_LARGE_MEDIUM,[Qt[72]]:at.HEADING_MIDSIZE_MEDIUM,[Qt[64]]:at.HEADING_SMALL_MEDIUM,[Qt[48]]:at.HEADING_SMALL_MEDIUM,[Qt[32]]:at.BODY_MIDSIZE_MEDIUM,[Qt[24]]:at.BODY_SMALL_MEDIUM})[n]||at.BODY_MIDSIZE_MEDIUM;var En=class extends vd(he(Z)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===je.COUNTER&&(this.counter||this.counter===0)||this.isTyping?U:this.presence?S`
1584
- <mdc-presence part="presence" type="${this.presence}" size="${Rv(this.size)}"></mdc-presence>
1583
+ `],Rv=uA;var Dv=V.constructTagName("presence"),Be={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},pe={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ta={TYPE:Be.ACTIVE,SIZE:pe[32]};var Pv=n=>({[Qt[124]]:pe[124],[Qt[88]]:pe[88],[Qt[72]]:pe[72],[Qt[64]]:pe[64],[Qt[48]]:pe[48],[Qt[32]]:pe[32],[Qt[24]]:pe[24]})[n]||pe[32],Fv=n=>({[Qt[124]]:4.75,[Qt[88]]:3,[Qt[72]]:2.5,[Qt[64]]:2.25,[Qt[48]]:1.75,[Qt[32]]:1.25,[Qt[24]]:1})[n]||1.25,$v=n=>({[Qt[124]]:at.HEADING_XLARGE_MEDIUM,[Qt[88]]:at.HEADING_LARGE_MEDIUM,[Qt[72]]:at.HEADING_MIDSIZE_MEDIUM,[Qt[64]]:at.HEADING_SMALL_MEDIUM,[Qt[48]]:at.HEADING_SMALL_MEDIUM,[Qt[32]]:at.BODY_MIDSIZE_MEDIUM,[Qt[24]]:at.BODY_SMALL_MEDIUM})[n]||at.BODY_MIDSIZE_MEDIUM;var En=class extends vd(he(Q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===qe.COUNTER&&(this.counter||this.counter===0)||this.isTyping?U:this.presence?S`
1584
+ <mdc-presence part="presence" type="${this.presence}" size="${Pv(this.size)}"></mdc-presence>
1585
1585
  `:U}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return S`
1586
1586
  <img
1587
1587
  part="photo"
@@ -1592,11 +1592,11 @@
1592
1592
  @error="${this.handleOnError}"
1593
1593
  />
1594
1594
  `}iconTemplate(){let t=this.iconName||Js.ICON_NAME;return S`
1595
- <mdc-icon name="${tt(t)}" length-unit="rem" size="${Dv(this.size)}"></mdc-icon>
1596
- `}textTemplate(t){return S` <mdc-text type="${Pv(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>jh?`${jh}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let e="";return t===je.TEXT&&this.initials&&(e=this.generateInitialsText(this.initials)),t===je.COUNTER&&(this.counter||this.counter===0)&&(e=this.generateCounterText(this.counter)),this.textTemplate(e)}getTypeBasedOnInputs(){return this.src?je.PHOTO:this.iconName?je.ICON:this.initials?je.TEXT:this.counter||this.counter===0?je.COUNTER:je.ICON}getTemplateBasedOnType(t){switch(t){case je.PHOTO:return this.photoTemplate();case je.TEXT:case je.COUNTER:return this.generateTextContent(t);case je.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?S`<div part="loading-wrapper"><div part="loader"></div></div>`:U}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?U:t===je.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():U}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return S`
1595
+ <mdc-icon name="${tt(t)}" length-unit="rem" size="${Fv(this.size)}"></mdc-icon>
1596
+ `}textTemplate(t){return S` <mdc-text type="${$v(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Xh?`${Xh}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let e="";return t===qe.TEXT&&this.initials&&(e=this.generateInitialsText(this.initials)),t===qe.COUNTER&&(this.counter||this.counter===0)&&(e=this.generateCounterText(this.counter)),this.textTemplate(e)}getTypeBasedOnInputs(){return this.src?qe.PHOTO:this.iconName?qe.ICON:this.initials?qe.TEXT:this.counter||this.counter===0?qe.COUNTER:qe.ICON}getTemplateBasedOnType(t){switch(t){case qe.PHOTO:return this.photoTemplate();case qe.TEXT:case qe.COUNTER:return this.generateTextContent(t);case qe.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?S`<div part="loading-wrapper"><div part="loader"></div></div>`:U}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?U:t===qe.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():U}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return S`
1597
1597
  ${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
1598
1598
  ${this.getPresenceTemplateBasedOnType(t)}
1599
- `}};En.styles=[...Z.styles,...Mv],h([dt()],En.prototype,"isPhotoLoaded",2);var qh=En;var mA=[Tt,z`
1599
+ `}};En.styles=[...Q.styles,...Rv],h([dt()],En.prototype,"isPhotoLoaded",2);var Zh=En;var fA=[Tt,z`
1600
1600
  :host {
1601
1601
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
1602
1602
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -1690,17 +1690,17 @@
1690
1690
  :host::part(mdc-presence-icon__scheduled) {
1691
1691
  color: var(--mdc-presence-scheduled-background-color);
1692
1692
  }
1693
- `],Fv=mA;var $v=n=>{switch(n){case Be.AWAY:return"recents-presence-badge-filled";case Be.AWAY_CALLING:return"away-calling-presence-filled";case Be.BUSY:return"busy-presence-bold";case Be.DND:return"dnd-presence-badge-filled";case Be.MEETING:return"camera-filled";case Be.ON_CALL:return"handset-filled";case Be.ON_DEVICE:return"generic-device-video-badge-filled";case Be.ON_MOBILE:return"phone-badge-filled";case Be.PAUSE:return"pause-badge-filled";case Be.PTO:return"pto-presence-filled";case Be.PRESENTING:return"share-screen-badge-filled";case Be.QUIET:return"quiet-hours-presence-filled";case Be.SCHEDULED:return"meetings-presence-badge-filled";case Be.ACTIVE:default:return"active-presence-small-filled"}},Vv=n=>({[pe[124]]:2.25,[pe[88]]:1.625,[pe[72]]:1.3125,[pe[64]]:1.1875,[pe[48]]:.875,[pe[32]]:.875,[pe[24]]:.875})[n]||.875;var ts=class extends Z{constructor(){super(...arguments);this.type=ta.TYPE;this.size=ta.SIZE;this.currentIconType=ta.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(pe).includes(t)?`${t}`:ta.SIZE.toString())}get icon(){let t=$v(this.type);return t==="active-presence-small-filled"&&(this.type=ta.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return S`
1693
+ `],Vv=fA;var zv=n=>{switch(n){case Be.AWAY:return"recents-presence-badge-filled";case Be.AWAY_CALLING:return"away-calling-presence-filled";case Be.BUSY:return"busy-presence-bold";case Be.DND:return"dnd-presence-badge-filled";case Be.MEETING:return"camera-filled";case Be.ON_CALL:return"handset-filled";case Be.ON_DEVICE:return"generic-device-video-badge-filled";case Be.ON_MOBILE:return"phone-badge-filled";case Be.PAUSE:return"pause-badge-filled";case Be.PTO:return"pto-presence-filled";case Be.PRESENTING:return"share-screen-badge-filled";case Be.QUIET:return"quiet-hours-presence-filled";case Be.SCHEDULED:return"meetings-presence-badge-filled";case Be.ACTIVE:default:return"active-presence-small-filled"}},Bv=n=>({[pe[124]]:2.25,[pe[88]]:1.625,[pe[72]]:1.3125,[pe[64]]:1.1875,[pe[48]]:.875,[pe[32]]:.875,[pe[24]]:.875})[n]||.875;var ts=class extends Q{constructor(){super(...arguments);this.type=ta.TYPE;this.size=ta.SIZE;this.currentIconType=ta.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(pe).includes(t)?`${t}`:ta.SIZE.toString())}get icon(){let t=zv(this.type);return t==="active-presence-small-filled"&&(this.type=ta.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return S`
1694
1694
  <div part="presence-content">
1695
1695
  <mdc-icon
1696
1696
  part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
1697
1697
  name="${this.icon}"
1698
- size="${Vv(this.size)}"
1698
+ size="${Bv(this.size)}"
1699
1699
  @load="${this.handleOnLoad}"
1700
1700
  @error="${this.handleOnError}"
1701
1701
  ></mdc-icon>
1702
1702
  </div>
1703
- `}};ts.styles=[...Z.styles,...Fv],h([u({type:String,reflect:!0})],ts.prototype,"type",2),h([u({type:Number,reflect:!0})],ts.prototype,"size",2),h([dt()],ts.prototype,"currentIconType",2);var Xh=ts;Xh.register(Ov);var uA=Xh;qh.register(Lv);var fA=qh;var vA=[Tt,z`
1703
+ `}};ts.styles=[...Q.styles,...Vv],h([u({type:String,reflect:!0})],ts.prototype,"type",2),h([u({type:Number,reflect:!0})],ts.prototype,"size",2),h([dt()],ts.prototype,"currentIconType",2);var Qh=ts;Qh.register(Dv);var vA=Qh;Zh.register(Ov);var gA=Zh;var bA=[Tt,z`
1704
1704
  :host {
1705
1705
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
1706
1706
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
@@ -1739,7 +1739,7 @@
1739
1739
  --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
1740
1740
  --mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
1741
1741
  }
1742
- `,...xt()],zv=vA;var Tn=class extends vd(he(ve)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=et.BUTTON,this.type=sr.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Qt).includes(t)?`${t}`:Js.SIZE.toString())}render(){return S`
1742
+ `,...xt()],Hv=bA;var Tn=class extends vd(he(ve)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=et.BUTTON,this.type=sr.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Qt).includes(t)?`${t}`:Js.SIZE.toString())}render(){return S`
1743
1743
  <div part="overlay" aria-hidden="true"></div>
1744
1744
  <mdc-avatar
1745
1745
  exportparts="content, photo, presence, loading-wrapper, loader"
@@ -1751,7 +1751,7 @@
1751
1751
  size="${tt(this.size)}"
1752
1752
  src="${tt(this.src)}"
1753
1753
  ></mdc-avatar>
1754
- `}};Tn.styles=[...zv],h([u({type:String,attribute:"aria-label"})],Tn.prototype,"ariaLabel",2);var Zh=Tn;var Bv=V.constructTagName("avatarbutton");Zh.register(Bv);var gA=Zh;var Hv=V.constructTagName("badge"),wr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},gd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Qh={PRIMARY:"primary",SECONDARY:"secondary"},$i={TYPE:wr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Qh.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var bA=[Tt,z`
1754
+ `}};Tn.styles=[...Hv],h([u({type:String,attribute:"aria-label"})],Tn.prototype,"ariaLabel",2);var Jh=Tn;var Uv=V.constructTagName("avatarbutton");Jh.register(Uv);var yA=Jh;var Gv=V.constructTagName("badge"),wr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},gd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},tp={PRIMARY:"primary",SECONDARY:"secondary"},$i={TYPE:wr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:tp.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var EA=[Tt,z`
1755
1755
  :host {
1756
1756
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1757
1757
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -1830,7 +1830,7 @@
1830
1830
  outline: none;
1831
1831
  }
1832
1832
  }
1833
- `],Uv=bA;var ci=class extends he(Z){constructor(){super(...arguments);this.variant=$i.VARIANT;this.maxCounter=$i.MAX_COUNTER;this.overlay=$i.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>$i.MAX_COUNTER_LIMIT||e>$i.MAX_COUNTER_LIMIT?`${$i.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return S`
1833
+ `],Kv=EA;var ci=class extends he(Q){constructor(){super(...arguments);this.variant=$i.VARIANT;this.maxCounter=$i.MAX_COUNTER;this.overlay=$i.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>$i.MAX_COUNTER_LIMIT||e>$i.MAX_COUNTER_LIMIT?`${$i.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return S`
1834
1834
  <mdc-icon
1835
1835
  part="badge-icon ${this.overlay?"badge-overlay":""}"
1836
1836
  name="${tt(t)}"
@@ -1844,7 +1844,7 @@
1844
1844
  >
1845
1845
  ${this.getCounterText(this.maxCounter,this.counter)}
1846
1846
  </mdc-text>
1847
- `}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Qh).includes(this.variant)&&(this.variant=$i.VARIANT);let{iconName:t,type:e}=this;switch(e){case wr.ICON:return this.getBadgeIcon(t||"");case wr.COUNTER:return this.getBadgeCounterText();case wr.SUCCESS:return this.getBadgeIcon(gd.SUCCESS_ICON_NAME);case wr.WARNING:return this.getBadgeIcon(gd.WARNING_ICON_NAME);case wr.ERROR:return this.getBadgeIcon(gd.ERROR_ICON_NAME);case wr.DOT:default:return this.type=wr.DOT,this.getBadgeDot()}}};ci.styles=[...Z.styles,...Uv],h([u({type:String,reflect:!0})],ci.prototype,"type",2),h([u({type:String,reflect:!0})],ci.prototype,"variant",2),h([u({type:Number})],ci.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],ci.prototype,"maxCounter",2),h([u({type:Boolean})],ci.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],ci.prototype,"ariaLabel",2);var Jh=ci;Jh.register(Hv);var yA=Jh;var EA=z`
1847
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(tp).includes(this.variant)&&(this.variant=$i.VARIANT);let{iconName:t,type:e}=this;switch(e){case wr.ICON:return this.getBadgeIcon(t||"");case wr.COUNTER:return this.getBadgeCounterText();case wr.SUCCESS:return this.getBadgeIcon(gd.SUCCESS_ICON_NAME);case wr.WARNING:return this.getBadgeIcon(gd.WARNING_ICON_NAME);case wr.ERROR:return this.getBadgeIcon(gd.ERROR_ICON_NAME);case wr.DOT:default:return this.type=wr.DOT,this.getBadgeDot()}}};ci.styles=[...Q.styles,...Kv],h([u({type:String,reflect:!0})],ci.prototype,"type",2),h([u({type:String,reflect:!0})],ci.prototype,"variant",2),h([u({type:Number})],ci.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],ci.prototype,"maxCounter",2),h([u({type:Boolean})],ci.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],ci.prototype,"ariaLabel",2);var ep=ci;ep.register(Gv);var TA=ep;var xA=z`
1848
1848
  :host {
1849
1849
  display: block;
1850
1850
  height: 100%;
@@ -1858,7 +1858,7 @@
1858
1858
  width: 100%;
1859
1859
  object-fit: contain;
1860
1860
  }
1861
- `,Gv=[EA];var es=class extends Z{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let o=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(o),Promise.reject(o)}updated(o){super.updated(o),o.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),o.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(o,t,e){let d=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return d&&Object.entries(e).forEach(([f,v])=>{d.setAttribute(f,v)}),d||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([e,i])=>{o.setAttribute(e,i)}),o}handleBrandVisualLoadedSuccess(o){this.brandVisualData=this.injectTemplateAttributes(o,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(o){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:o}});this.dispatchEvent(t)}render(){return S` ${this.brandVisualData} `}};es.styles=[...Z.styles,...Gv],h([dt()],es.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],es.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],es.prototype,"altText",2);var tp=es;var Kv=V.constructTagName("brandvisual");tp.register(Kv);var TA=tp;var xA=z`
1861
+ `,Wv=[xA];var es=class extends Q{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let o=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(o),Promise.reject(o)}updated(o){super.updated(o),o.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),o.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(o,t,e){let d=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return d&&Object.entries(e).forEach(([f,v])=>{d.setAttribute(f,v)}),d||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([e,i])=>{o.setAttribute(e,i)}),o}handleBrandVisualLoadedSuccess(o){this.brandVisualData=this.injectTemplateAttributes(o,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(o){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:o}});this.dispatchEvent(t)}render(){return S` ${this.brandVisualData} `}};es.styles=[...Q.styles,...Wv],h([dt()],es.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],es.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],es.prototype,"altText",2);var rp=es;var Yv=V.constructTagName("brandvisual");rp.register(Yv);var AA=rp;var SA=z`
1862
1862
  :host {
1863
1863
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
1864
1864
  --mdc-bullet-size: 0.25rem;
@@ -1878,7 +1878,7 @@
1878
1878
  :host([size='large']) {
1879
1879
  --mdc-bullet-size: 1rem;
1880
1880
  }
1881
- `,Wv=[xA];var Yv=V.constructTagName("bullet"),jv={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var xn=class extends Z{constructor(){super(...arguments);this.size=jv.SMALL}};xn.styles=[...Z.styles,...Wv],h([u({type:String,reflect:!0})],xn.prototype,"size",2);var ep=xn;ep.register(Yv);var AA=ep;var qv=V.constructTagName("buttongroup"),SA={40:40,32:32,28:28,24:24},IA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},CA={PRIMARY:"primary",SECONDARY:"secondary"},bd={SIZE:SA[28],VARIANT:CA.PRIMARY,ORIENTATION:IA.HORIZONTAL};var _A=z`
1881
+ `,qv=[SA];var jv=V.constructTagName("bullet"),Xv={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var xn=class extends Q{constructor(){super(...arguments);this.size=Xv.SMALL}};xn.styles=[...Q.styles,...qv],h([u({type:String,reflect:!0})],xn.prototype,"size",2);var ip=xn;ip.register(jv);var IA=ip;var Zv=V.constructTagName("buttongroup"),CA={40:40,32:32,28:28,24:24},_A={HORIZONTAL:"horizontal",VERTICAL:"vertical"},wA={PRIMARY:"primary",SECONDARY:"secondary"},bd={SIZE:CA[28],VARIANT:wA.PRIMARY,ORIENTATION:_A.HORIZONTAL};var kA=z`
1882
1882
  :host {
1883
1883
  --mdc-buttongroup-border-radius: 1.25rem;
1884
1884
  --mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1978,7 +1978,7 @@
1978
1978
  :host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
1979
1979
  width: 2.5rem;
1980
1980
  }
1981
- `,Xv=[Tt,_A];var Vi=class extends Z{constructor(){super(...arguments);this.orientation=bd.ORIENTATION;this.variant=bd.VARIANT;this.size=bd.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return S`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Vi.styles=[...Z.styles,...Xv],h([u({type:String,reflect:!0})],Vi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Vi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Vi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Vi.prototype,"compact",2),h([qt({selector:"mdc-button"})],Vi.prototype,"buttons",2);var rp=Vi;rp.register(qv);var wA=rp;var oe=n=>{class o extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Zv=V.constructTagName("linksimple"),ea={INLINE:!1,INVERTED:!1};var kA=[Tt,z`
1981
+ `,Qv=[Tt,kA];var Vi=class extends Q{constructor(){super(...arguments);this.orientation=bd.ORIENTATION;this.variant=bd.VARIANT;this.size=bd.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return S`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Vi.styles=[...Q.styles,...Qv],h([u({type:String,reflect:!0})],Vi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Vi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Vi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Vi.prototype,"compact",2),h([jt({selector:"mdc-button"})],Vi.prototype,"buttons",2);var op=Vi;op.register(Zv);var NA=op;var oe=n=>{class o extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Jv=V.constructTagName("linksimple"),ea={INLINE:!1,INVERTED:!1};var LA=[Tt,z`
1982
1982
  :host {
1983
1983
  --mdc-link-border-radius: 0.25rem;
1984
1984
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -2057,7 +2057,7 @@
2057
2057
  :host([inline])::part(anchor) {
2058
2058
  text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
2059
2059
  }
2060
- `,...xt(!0)],Qv=kA;var qe=class extends oe(Xt(Z)){constructor(){super(...arguments);this.inline=ea.INLINE;this.inverted=ea.INVERTED;this.target="_self"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleNavigation.bind(this)),this.addEventListener("keydown",this.handleNavigation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation.bind(this)),this.removeEventListener("keydown",this.handleNavigation.bind(this))}click(){var t,e,i,a;this.disabled||(a=(i=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:i.click)==null||a.call(i)}handleNavigation(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}setDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}renderAnchorContent(){return S`<slot></slot>`}render(){var t;return S`
2060
+ `,...xt(!0)],tg=LA;var je=class extends oe(Xt(Q)){constructor(){super(...arguments);this.inline=ea.INLINE;this.inverted=ea.INVERTED;this.target="_self"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleNavigation.bind(this)),this.addEventListener("keydown",this.handleNavigation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation.bind(this)),this.removeEventListener("keydown",this.handleNavigation.bind(this))}click(){var t,e,i,a;this.disabled||(a=(i=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:i.click)==null||a.call(i)}handleNavigation(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}setDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}renderAnchorContent(){return S`<slot></slot>`}render(){var t;return S`
2061
2061
  <a
2062
2062
  class="mdc-focus-ring"
2063
2063
  part="anchor"
@@ -2074,7 +2074,7 @@
2074
2074
  >
2075
2075
  ${this.renderAnchorContent()}
2076
2076
  </a>
2077
- `}};qe.styles=[...Z.styles,...Qv],qe.shadowRootOptions={...Z.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],qe.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],qe.prototype,"inverted",2),h([u({type:String,reflect:!0})],qe.prototype,"href",2),h([u({type:String,reflect:!0})],qe.prototype,"target",2),h([u({type:String,reflect:!0})],qe.prototype,"rel",2),h([u({type:String,reflect:!0})],qe.prototype,"download",2),h([u({type:String,reflect:!0})],qe.prototype,"ping",2),h([u({type:String,reflect:!0})],qe.prototype,"hreflang",2),h([u({type:String,reflect:!0})],qe.prototype,"type",2),h([u({type:String,reflect:!0})],qe.prototype,"referrerpolicy",2);var hi=qe;var NA=z`
2077
+ `}};je.styles=[...Q.styles,...tg],je.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],je.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],je.prototype,"inverted",2),h([u({type:String,reflect:!0})],je.prototype,"href",2),h([u({type:String,reflect:!0})],je.prototype,"target",2),h([u({type:String,reflect:!0})],je.prototype,"rel",2),h([u({type:String,reflect:!0})],je.prototype,"download",2),h([u({type:String,reflect:!0})],je.prototype,"ping",2),h([u({type:String,reflect:!0})],je.prototype,"hreflang",2),h([u({type:String,reflect:!0})],je.prototype,"type",2),h([u({type:String,reflect:!0})],je.prototype,"referrerpolicy",2);var hi=je;var MA=z`
2078
2078
  :host {
2079
2079
  border: unset;
2080
2080
  }
@@ -2128,11 +2128,11 @@
2128
2128
  :host([variant='secondary'][soft-disabled])::part(anchor) {
2129
2129
  border-color: var(--mdc-button-border-color);
2130
2130
  }
2131
- `,Jv=[NA,...xt(!0)];var ra=class extends $l(hi){constructor(){super(...arguments);this.size=sr.SIZE}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}renderAnchorContent(){return S`
2131
+ `,eg=[MA,...xt(!0)];var ra=class extends $l(hi){constructor(){super(...arguments);this.size=sr.SIZE}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}renderAnchorContent(){return S`
2132
2132
  ${this.prefixIcon?S`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
2133
2133
  <slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
2134
2134
  ${this.postfixIcon?S`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
2135
- `}};ra.styles=[...Zo.styles,...Jv],h([u({type:Number,reflect:!0})],ra.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ra.prototype,"softDisabled",2);var ip=ra;var tg=V.constructTagName("buttonlink");ip.register(tg);var LA=ip;var yd=n=>{class o extends n{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Ce.VARIANT;this.orientation=Ce.ORIENTATION;this.titleTagName=Ce.TAGNAME;this.subtitleTagName=Ce.TAGNAME}renderImage(){return this.imageSrc?S`<div part="image-wrapper">
2135
+ `}};ra.styles=[...mo.styles,...eg],h([u({type:Number,reflect:!0})],ra.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ra.prototype,"softDisabled",2);var sp=ra;var rg=V.constructTagName("buttonlink");sp.register(rg);var OA=sp;var yd=n=>{class o extends n{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Ce.VARIANT;this.orientation=Ce.ORIENTATION;this.titleTagName=Ce.TAGNAME;this.subtitleTagName=Ce.TAGNAME}renderImage(){return this.imageSrc?S`<div part="image-wrapper">
2136
2136
  <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
2137
2137
  </div>`:U}renderIcon(){return this.iconName?S`<mdc-icon
2138
2138
  part="icon"
@@ -2150,7 +2150,7 @@
2150
2150
  >${this.subtitle}</mdc-text
2151
2151
  >`:U}
2152
2152
  </slot>
2153
- </div>`}}return h([u({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),h([u({type:String,reflect:!0})],o.prototype,"subtitle",2),h([u({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),h([u({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),h([u({type:String,reflect:!0})],o.prototype,"variant",2),h([u({type:String,reflect:!0})],o.prototype,"orientation",2),h([u({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),h([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var MA=z`
2153
+ </div>`}}return h([u({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),h([u({type:String,reflect:!0})],o.prototype,"subtitle",2),h([u({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),h([u({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),h([u({type:String,reflect:!0})],o.prototype,"variant",2),h([u({type:String,reflect:!0})],o.prototype,"orientation",2),h([u({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),h([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var RA=z`
2154
2154
  :host {
2155
2155
  --mdc-card-width: 20rem;
2156
2156
  align-items: stretch;
@@ -2258,7 +2258,7 @@
2258
2258
  mdc-text::part(text) {
2259
2259
  margin: 0;
2260
2260
  }
2261
- `,eg=[Tt,MA];var An=class extends yd(qs(Z)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",Bt.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return S`<div part="header">
2261
+ `,ig=[Tt,RA];var An=class extends yd(js(Q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",Bt.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return S`<div part="header">
2262
2262
  ${this.renderIcon()} ${this.renderTitle()}
2263
2263
  <div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
2264
2264
  </div>`}render(){return S`
@@ -2272,7 +2272,7 @@
2272
2272
  </div>
2273
2273
  ${this.renderFooter()}
2274
2274
  </div>
2275
- `}};An.styles=[...Z.styles,...eg],h([qt({slot:"icon-button"})],An.prototype,"iconButtons",2);var Hr=An;Hr.register(uv);var OA=Hr;var RA=z`
2275
+ `}};An.styles=[...Q.styles,...ig],h([jt({slot:"icon-button"})],An.prototype,"iconButtons",2);var Hr=An;Hr.register(vv);var DA=Hr;var PA=z`
2276
2276
  :host {
2277
2277
  cursor: pointer;
2278
2278
  user-select: none;
@@ -2294,7 +2294,7 @@
2294
2294
  :host([disabled])::part(image) {
2295
2295
  opacity: 0.5;
2296
2296
  }
2297
- `,rg=[RA,...xt()];var Ed=class extends yd(ve){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return S`
2297
+ `,og=[PA,...xt()];var Ed=class extends yd(ve){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return S`
2298
2298
  <slot name="image"> ${this.renderImage()} </slot>
2299
2299
  <div part="body">
2300
2300
  <div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
@@ -2302,7 +2302,7 @@
2302
2302
  <slot name="body"></slot>
2303
2303
  <slot name="after-body"></slot>
2304
2304
  </div>
2305
- `}};Ed.styles=[...Hr.styles,...rg];var op=Ed;var ig=V.constructTagName("cardbutton");op.register(ig);var DA=op;var og=V.constructTagName("cardcheckbox"),sp={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Td={CHECK:"check",CHECKBOX:"checkbox"},xd={SELECTION_TYPE:Td.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var PA=z`
2305
+ `}};Ed.styles=[...Hr.styles,...og];var ap=Ed;var sg=V.constructTagName("cardbutton");ap.register(sg);var FA=ap;var ag=V.constructTagName("cardcheckbox"),np={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Td={CHECK:"check",CHECKBOX:"checkbox"},xd={SELECTION_TYPE:Td.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var $A=z`
2306
2306
  :host {
2307
2307
  cursor: pointer;
2308
2308
  user-select: none;
@@ -2359,7 +2359,7 @@
2359
2359
  :host([disabled])::part(check-icon) {
2360
2360
  color: var(--mds-color-theme-text-primary-disabled);
2361
2361
  }
2362
- `,sg=[PA,...xt()];var ia=class extends Ot(Nt(Xt(ii(Hr)))){constructor(){super();this.checked=!1;this.selectionType=xd.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let e=this.getActionForKeyEvent(t);e===K.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===K.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?sp.CHECKED:sp.DEFAULT;switch(this.selectionType){case Td.CHECK:return S`<mdc-icon
2362
+ `,ng=[$A,...xt()];var ia=class extends Ot(Nt(Xt(ii(Hr)))){constructor(){super();this.checked=!1;this.selectionType=xd.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let e=this.getActionForKeyEvent(t);e===K.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===K.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?np.CHECKED:np.DEFAULT;switch(this.selectionType){case Td.CHECK:return S`<mdc-icon
2363
2363
  part="check check-icon"
2364
2364
  size="${xd.ICON_SIZE}"
2365
2365
  length-unit="${xd.ICON_LENGTH_UNIT}"
@@ -2376,7 +2376,7 @@
2376
2376
  <slot name="body"></slot>
2377
2377
  <slot name="after-body"></slot>
2378
2378
  </div>
2379
- `}};ia.styles=[...Hr.styles,...sg],h([u({type:Boolean,reflect:!0})],ia.prototype,"checked",2),h([u({type:String,attribute:"selection-type",reflect:!0})],ia.prototype,"selectionType",2);var ap=ia;var FA=[z`
2379
+ `}};ia.styles=[...Hr.styles,...ng],h([u({type:Boolean,reflect:!0})],ia.prototype,"checked",2),h([u({type:String,attribute:"selection-type",reflect:!0})],ia.prototype,"selectionType",2);var lp=ia;var VA=[z`
2380
2380
  :host {
2381
2381
  --mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-input-normal);
2382
2382
  --mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-normal);
@@ -2454,7 +2454,7 @@
2454
2454
  --mdc-staticcheckbox-icon-color: GrayText;
2455
2455
  }
2456
2456
  }
2457
- `],ag=FA;var ng=V.constructTagName("popover"),Mt={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"},_e={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},rs={TONAL:"tonal",CONTRAST:"contrast"},np={ABSOLUTE:"absolute",FIXED:"fixed"},$A={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:_e.CLICK,COLOR:rs.TONAL,STRATEGY:np.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:$A.VIEWPORT,BOUNDARY_PADDING:0,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,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},zi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var lg=V.constructTagName("statusmessage"),bo={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ad={ERROR:"error-legacy-badge-filled",WARNING:"warning-badge-filled",SUCCESS:"check-circle-badge-filled",PRIORITY:"priority-badge-filled"},Sd={[bo.DEFAULT]:"",[bo.ERROR]:Ad.ERROR,[bo.WARNING]:Ad.WARNING,[bo.SUCCESS]:Ad.SUCCESS,[bo.PRIORITY]:Ad.PRIORITY},Sn={SEVERITY:bo.DEFAULT,TEXT_TAGNAME:pt.SPAN,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR};var dg=V.constructTagName("formfieldwrapper"),Jt=bo,Kt={VALIDATION:Jt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:np.ABSOLUTE},In={TAGNAME:pt.SPAN,TYPE:at.BODY_MIDSIZE_REGULAR,HEADER_TYPE:at.BODY_MIDSIZE_BOLD};var is=V.constructTagName("checkbox"),Id={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},cg={ERROR:Jt.ERROR,DEFAULT:Jt.DEFAULT};var hg=V.constructTagName("staticcheckbox");var yo=class extends Xt(Z){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
2457
+ `],lg=VA;var dg=V.constructTagName("popover"),Mt={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"},_e={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},rs={TONAL:"tonal",CONTRAST:"contrast"},dp={ABSOLUTE:"absolute",FIXED:"fixed"},zA={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:_e.CLICK,COLOR:rs.TONAL,STRATEGY:dp.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:zA.VIEWPORT,BOUNDARY_PADDING:0,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,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},zi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var cg=V.constructTagName("statusmessage"),yo={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ad={ERROR:"error-legacy-badge-filled",WARNING:"warning-badge-filled",SUCCESS:"check-circle-badge-filled",PRIORITY:"priority-badge-filled"},Sd={[yo.DEFAULT]:"",[yo.ERROR]:Ad.ERROR,[yo.WARNING]:Ad.WARNING,[yo.SUCCESS]:Ad.SUCCESS,[yo.PRIORITY]:Ad.PRIORITY},Sn={SEVERITY:yo.DEFAULT,TEXT_TAGNAME:pt.SPAN,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR};var hg=V.constructTagName("formfieldwrapper"),Jt=yo,Kt={VALIDATION:Jt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:dp.ABSOLUTE},In={TAGNAME:pt.SPAN,TYPE:at.BODY_MIDSIZE_REGULAR,HEADER_TYPE:at.BODY_MIDSIZE_BOLD};var is=V.constructTagName("checkbox"),Id={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},pg={ERROR:Jt.ERROR,DEFAULT:Jt.DEFAULT};var mg=V.constructTagName("staticcheckbox");var Eo=class extends Xt(Q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
2458
2458
  <mdc-icon
2459
2459
  part="checkbox-icon"
2460
2460
  name="${this.indeterminate?Id.INDETERMINATE:Id.CHECKED}"
@@ -2462,7 +2462,7 @@
2462
2462
  length-unit="rem"
2463
2463
  ></mdc-icon>
2464
2464
  `:U;return S`<slot></slot>
2465
- <div part="icon-container">${t}</div>`}};yo.styles=[...Z.styles,...ag],h([u({type:Boolean,reflect:!0})],yo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],yo.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],yo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],yo.prototype,"softDisabled",2);var lp=yo;lp.register(hg);var VA=lp;ap.register(og);var zA=ap;var BA=z`
2465
+ <div part="icon-container">${t}</div>`}};Eo.styles=[...Q.styles,...lg],h([u({type:Boolean,reflect:!0})],Eo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Eo.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],Eo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Eo.prototype,"softDisabled",2);var cp=Eo;cp.register(mg);var BA=cp;lp.register(ag);var HA=lp;var UA=z`
2466
2466
  :host {
2467
2467
  cursor: pointer;
2468
2468
  user-select: none;
@@ -2515,7 +2515,7 @@
2515
2515
  :host([disabled])::part(image) {
2516
2516
  opacity: 0.5;
2517
2517
  }
2518
- `,pg=[BA,...xt()];var oa=class extends Ot(Nt(Xt(ii(Hr)))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(e=>{e.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){this.disabled||(super.click(),this.toggleChecked())}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,e){t[e].focus(),t[e].toggleChecked()}handleKeyDown(t){let e=this.getActionForKeyEvent(t);if(e===K.SPACE){t.preventDefault();return}if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),d=a.indexOf(this);if(e===K.DOWN||K.RIGHT===e){let f=(d+1)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}else if(e===K.UP||K.LEFT===e){let f=(d-1+a.length)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}e===K.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&this.toggleChecked()}renderHeader(){return S`<div part="header">
2518
+ `,ug=[UA,...xt()];var oa=class extends Ot(Nt(Xt(ii(Hr)))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(e=>{e.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){this.disabled||(super.click(),this.toggleChecked())}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,e){t[e].focus(),t[e].toggleChecked()}handleKeyDown(t){let e=this.getActionForKeyEvent(t);if(e===K.SPACE){t.preventDefault();return}if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),d=a.indexOf(this);if(e===K.DOWN||K.RIGHT===e){let f=(d+1)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}else if(e===K.UP||K.LEFT===e){let f=(d-1+a.length)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}e===K.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&this.toggleChecked()}renderHeader(){return S`<div part="header">
2519
2519
  ${this.renderIcon()} ${this.renderTitle()}
2520
2520
  <mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
2521
2521
  </div>`}render(){return S`
@@ -2526,7 +2526,7 @@
2526
2526
  <slot name="body"></slot>
2527
2527
  <slot name="after-body"></slot>
2528
2528
  </div>
2529
- `}};oa.styles=[...Hr.styles,...pg],h([u({type:Boolean,reflect:!0})],oa.prototype,"checked",2),h([u({type:String})],oa.prototype,"name",2);var dp=oa;var Cd=V.constructTagName("cardradio");var HA=[z`
2529
+ `}};oa.styles=[...Hr.styles,...ug],h([u({type:Boolean,reflect:!0})],oa.prototype,"checked",2),h([u({type:String})],oa.prototype,"name",2);var hp=oa;var Cd=V.constructTagName("cardradio");var GA=[z`
2530
2530
  :host {
2531
2531
  --mdc-staticradio-inner-circle-size: 0.375rem;
2532
2532
  --mdc-staticradio-outer-circle-size: 1rem;
@@ -2623,8 +2623,8 @@
2623
2623
  --mdc-staticradio-outer-circle-background-color: GrayText;
2624
2624
  }
2625
2625
  }
2626
- `],mg=HA;var os=class extends Xt(Z){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
2627
- <span part="radio-icon" class="radio-icon"></span>`}};os.styles=[...Z.styles,...mg],h([u({type:Boolean,reflect:!0})],os.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],os.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],os.prototype,"softDisabled",2);var cp=os;var ug=V.constructTagName("staticradio");cp.register(ug);var UA=cp;dp.register(Cd);var GA=dp;var yr=Math.min,we=Math.max,_n=Math.round,wn=Math.floor,Ur=n=>({x:n,y:n}),KA={left:"right",right:"left",bottom:"top",top:"bottom"},WA={start:"end",end:"start"};function wd(n,o,t){return we(n,yr(o,t))}function Eo(n,o){return typeof n=="function"?n(o):n}function Gr(n){return n.split("-")[0]}function ss(n){return n.split("-")[1]}function hp(n){return n==="x"?"y":"x"}function kd(n){return n==="y"?"height":"width"}var YA=new Set(["top","bottom"]);function Kr(n){return YA.has(Gr(n))?"y":"x"}function Nd(n){return hp(Kr(n))}function gg(n,o,t){t===void 0&&(t=!1);let e=ss(n),i=Nd(n),a=kd(i),d=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(d=Cn(d)),[d,Cn(d)]}function bg(n){let o=Cn(n);return[_d(n),o,_d(o)]}function _d(n){return n.replace(/start|end/g,o=>WA[o])}var fg=["left","right"],vg=["right","left"],jA=["top","bottom"],qA=["bottom","top"];function XA(n,o,t){switch(n){case"top":case"bottom":return t?o?vg:fg:o?fg:vg;case"left":case"right":return o?jA:qA;default:return[]}}function yg(n,o,t,e){let i=ss(n),a=XA(Gr(n),t==="start",e);return i&&(a=a.map(d=>d+"-"+i),o&&(a=a.concat(a.map(_d)))),a}function Cn(n){return n.replace(/left|right|bottom|top/g,o=>KA[o])}function ZA(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ld(n){return typeof n!="number"?ZA(n):{top:n,right:n,bottom:n,left:n}}function Bi(n){let{x:o,y:t,width:e,height:i}=n;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function Eg(n,o,t){let{reference:e,floating:i}=n,a=Kr(o),d=Nd(o),f=kd(d),v=Gr(o),A=a==="y",R=e.x+e.width/2-i.width/2,H=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,q;switch(v){case"top":q={x:R,y:e.y-i.height};break;case"bottom":q={x:R,y:e.y+e.height};break;case"right":q={x:e.x+e.width,y:H};break;case"left":q={x:e.x-i.width,y:H};break;default:q={x:e.x,y:e.y}}switch(ss(o)){case"start":q[d]-=J*(t&&A?-1:1);break;case"end":q[d]+=J*(t&&A?-1:1);break}return q}var Tg=async(n,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:a=[],platform:d}=t,f=a.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(o)),A=await d.getElementRects({reference:n,floating:o,strategy:i}),{x:R,y:H}=Eg(A,e,v),J=e,q={},Q=0;for(let ot=0;ot<f.length;ot++){let{name:st,fn:ht}=f[ot],{x:bt,y:yt,data:It,reset:Rt}=await ht({x:R,y:H,initialPlacement:e,placement:J,strategy:i,middlewareData:q,rects:A,platform:d,elements:{reference:n,floating:o}});R=bt!=null?bt:R,H=yt!=null?yt:H,q={...q,[st]:{...q[st],...It}},Rt&&Q<=50&&(Q++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(A=Rt.rects===!0?await d.getElementRects({reference:n,floating:o,strategy:i}):Rt.rects),{x:R,y:H}=Eg(A,J,v)),ot=-1)}return{x:R,y:H,placement:J,strategy:i,middlewareData:q}};async function Md(n,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:a,rects:d,elements:f,strategy:v}=n,{boundary:A="clippingAncestors",rootBoundary:R="viewport",elementContext:H="floating",altBoundary:J=!1,padding:q=0}=Eo(o,n),Q=Ld(q),st=f[J?H==="floating"?"reference":"floating":H],ht=Bi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(st)))==null||t?st:st.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(f.floating)),boundary:A,rootBoundary:R,strategy:v})),bt=H==="floating"?{x:e,y:i,width:d.floating.width,height:d.floating.height}:d.reference,yt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f.floating)),It=await(a.isElement==null?void 0:a.isElement(yt))?await(a.getScale==null?void 0:a.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=Bi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:v}):bt);return{top:(ht.top-Rt.top+Q.top)/It.y,bottom:(Rt.bottom-ht.bottom+Q.bottom)/It.y,left:(ht.left-Rt.left+Q.left)/It.x,right:(Rt.right-ht.right+Q.right)/It.x}}var xg=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:e,placement:i,rects:a,platform:d,elements:f,middlewareData:v}=o,{element:A,padding:R=0}=Eo(n,o)||{};if(A==null)return{};let H=Ld(R),J={x:t,y:e},q=Nd(i),Q=kd(q),ot=await d.getDimensions(A),st=q==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",It=a.reference[Q]+a.reference[q]-J[q]-a.floating[Q],Rt=J[q]-a.reference[q],Gt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(A)),Pt=Gt?Gt[yt]:0;(!Pt||!await(d.isElement==null?void 0:d.isElement(Gt)))&&(Pt=f.floating[yt]||a.floating[Q]);let ne=It/2-Rt/2,Ge=Pt/2-ot[Q]/2-1,jt=yr(H[ht],Ge),Ee=yr(H[bt],Ge),Te=jt,xe=Pt-ot[Q]-Ee,kt=Pt/2-ot[Q]/2+ne,se=wd(Te,kt,xe),Ke=!v.arrow&&ss(i)!=null&&kt!==se&&a.reference[Q]/2-(kt<Te?jt:Ee)-ot[Q]/2<0,Qe=Ke?kt<Te?kt-Te:kt-xe:0;return{[q]:J[q]+Qe,data:{[q]:se,centerOffset:kt-se-Qe,...Ke&&{alignmentOffset:Qe}},reset:Ke}}});var Ag=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:i,middlewareData:a,rects:d,initialPlacement:f,platform:v,elements:A}=o,{mainAxis:R=!0,crossAxis:H=!0,fallbackPlacements:J,fallbackStrategy:q="bestFit",fallbackAxisSideDirection:Q="none",flipAlignment:ot=!0,...st}=Eo(n,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let ht=Gr(i),bt=Kr(f),yt=Gr(f)===f,It=await(v.isRTL==null?void 0:v.isRTL(A.floating)),Rt=J||(yt||!ot?[Cn(f)]:bg(f)),Gt=Q!=="none";!J&&Gt&&Rt.push(...yg(f,ot,Q,It));let Pt=[f,...Rt],ne=await Md(o,st),Ge=[],jt=((e=a.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),H){let kt=gg(i,d,It);Ge.push(ne[kt[0]],ne[kt[1]])}if(jt=[...jt,{placement:i,overflows:Ge}],!Ge.every(kt=>kt<=0)){var Ee,Te;let kt=(((Ee=a.flip)==null?void 0:Ee.index)||0)+1,se=Pt[kt];if(se&&(!(H==="alignment"?bt!==Kr(se):!1)||jt.every(Je=>Je.overflows[0]>0&&Kr(Je.placement)===bt)))return{data:{index:kt,overflows:jt},reset:{placement:se}};let Ke=(Te=jt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:Te.placement;if(!Ke)switch(q){case"bestFit":{var xe;let Qe=(xe=jt.filter(Je=>{if(Gt){let Ar=Kr(Je.placement);return Ar===bt||Ar==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(Ar=>Ar>0).reduce((Ar,ll)=>Ar+ll,0)]).sort((Je,Ar)=>Je[1]-Ar[1])[0])==null?void 0:xe[0];Qe&&(Ke=Qe);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function Sg(n){let o=yr(...n.map(a=>a.left)),t=yr(...n.map(a=>a.top)),e=we(...n.map(a=>a.right)),i=we(...n.map(a=>a.bottom));return{x:o,y:t,width:e-o,height:i-t}}function QA(n){let o=n.slice().sort((i,a)=>i.y-a.y),t=[],e=null;for(let i=0;i<o.length;i++){let a=o[i];!e||a.y-e.y>e.height/2?t.push([a]):t[t.length-1].push(a),e=a}return t.map(i=>Bi(Sg(i)))}var Ig=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(o){let{placement:t,elements:e,rects:i,platform:a,strategy:d}=o,{padding:f=2,x:v,y:A}=Eo(n,o),R=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(e.reference))||[]),H=QA(R),J=Bi(Sg(R)),q=Ld(f);function Q(){if(H.length===2&&H[0].left>H[1].right&&v!=null&&A!=null)return H.find(st=>v>st.left-q.left&&v<st.right+q.right&&A>st.top-q.top&&A<st.bottom+q.bottom)||J;if(H.length>=2){if(Kr(t)==="y"){let jt=H[0],Ee=H[H.length-1],Te=Gr(t)==="top",xe=jt.top,kt=Ee.bottom,se=Te?jt.left:Ee.left,Ke=Te?jt.right:Ee.right,Qe=Ke-se,Je=kt-xe;return{top:xe,bottom:kt,left:se,right:Ke,width:Qe,height:Je,x:se,y:xe}}let st=Gr(t)==="left",ht=we(...H.map(jt=>jt.right)),bt=yr(...H.map(jt=>jt.left)),yt=H.filter(jt=>st?jt.left===bt:jt.right===ht),It=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-It;return{top:It,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:It}}return J}let ot=await a.getElementRects({reference:{getBoundingClientRect:Q},floating:e.floating,strategy:d});return i.reference.x!==ot.reference.x||i.reference.y!==ot.reference.y||i.reference.width!==ot.reference.width||i.reference.height!==ot.reference.height?{reset:{rects:ot}}:{}}}},JA=new Set(["left","top"]);async function t0(n,o){let{placement:t,platform:e,elements:i}=n,a=await(e.isRTL==null?void 0:e.isRTL(i.floating)),d=Gr(t),f=ss(t),v=Kr(t)==="y",A=JA.has(d)?-1:1,R=a&&v?-1:1,H=Eo(o,n),{mainAxis:J,crossAxis:q,alignmentAxis:Q}=typeof H=="number"?{mainAxis:H,crossAxis:0,alignmentAxis:null}:{mainAxis:H.mainAxis||0,crossAxis:H.crossAxis||0,alignmentAxis:H.alignmentAxis};return f&&typeof Q=="number"&&(q=f==="end"?Q*-1:Q),v?{x:q*R,y:J*A}:{x:J*A,y:q*R}}var Cg=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:i,y:a,placement:d,middlewareData:f}=o,v=await t0(o,n);return d===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+v.x,y:a+v.y,data:{...v,placement:d}}}}},_g=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:a=!0,crossAxis:d=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...v}=Eo(n,o),A={x:t,y:e},R=await Md(o,v),H=Kr(Gr(i)),J=hp(H),q=A[J],Q=A[H];if(a){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=q+R[st],yt=q-R[ht];q=wd(bt,q,yt)}if(d){let st=H==="y"?"top":"left",ht=H==="y"?"bottom":"right",bt=Q+R[st],yt=Q-R[ht];Q=wd(bt,Q,yt)}let ot=f.fn({...o,[J]:q,[H]:Q});return{...ot,data:{x:ot.x-t,y:ot.y-e,enabled:{[J]:a,[H]:d}}}}}};var wg=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:i,rects:a,platform:d,elements:f}=o,{apply:v=()=>{},...A}=Eo(n,o),R=await Md(o,A),H=Gr(i),J=ss(i),q=Kr(i)==="y",{width:Q,height:ot}=a.floating,st,ht;H==="top"||H==="bottom"?(st=H,ht=J===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=H,st=J==="end"?"top":"bottom");let bt=ot-R.top-R.bottom,yt=Q-R.left-R.right,It=yr(ot-R[st],bt),Rt=yr(Q-R[ht],yt),Gt=!o.middlewareData.shift,Pt=It,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let jt=we(R.left,0),Ee=we(R.right,0),Te=we(R.top,0),xe=we(R.bottom,0);q?ne=Q-2*(jt!==0||Ee!==0?jt+Ee:we(R.left,R.right)):Pt=ot-2*(Te!==0||xe!==0?Te+xe:we(R.top,R.bottom))}await v({...o,availableWidth:ne,availableHeight:Pt});let Ge=await d.getDimensions(f.floating);return Q!==Ge.width||ot!==Ge.height?{reset:{rects:!0}}:{}}}};function Od(){return typeof window<"u"}function as(n){return Ng(n)?(n.nodeName||"").toLowerCase():"#document"}function ar(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Wr(n){var o;return(o=(Ng(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Ng(n){return Od()?n instanceof Node||n instanceof ar(n).Node:!1}function kr(n){return Od()?n instanceof Element||n instanceof ar(n).Element:!1}function Yr(n){return Od()?n instanceof HTMLElement||n instanceof ar(n).HTMLElement:!1}function kg(n){return!Od()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ar(n).ShadowRoot}var e0=new Set(["inline","contents"]);function aa(n){let{overflow:o,overflowX:t,overflowY:e,display:i}=Nr(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!e0.has(i)}var r0=new Set(["table","td","th"]);function Lg(n){return r0.has(as(n))}var i0=[":popover-open",":modal"];function kn(n){return i0.some(o=>{try{return n.matches(o)}catch{return!1}})}var o0=["transform","translate","scale","rotate","perspective"],s0=["transform","translate","scale","rotate","perspective","filter"],a0=["paint","layout","strict","content"];function Rd(n){let o=Dd(),t=kr(n)?Nr(n):n;return o0.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||s0.some(e=>(t.willChange||"").includes(e))||a0.some(e=>(t.contain||"").includes(e))}function Mg(n){let o=Hi(n);for(;Yr(o)&&!ns(o);){if(Rd(o))return o;if(kn(o))return null;o=Hi(o)}return null}function Dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var n0=new Set(["html","body","#document"]);function ns(n){return n0.has(as(n))}function Nr(n){return ar(n).getComputedStyle(n)}function Nn(n){return kr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Hi(n){if(as(n)==="html")return n;let o=n.assignedSlot||n.parentNode||kg(n)&&n.host||Wr(n);return kg(o)?o.host:o}function Og(n){let o=Hi(n);return ns(o)?n.ownerDocument?n.ownerDocument.body:n.body:Yr(o)&&aa(o)?o:Og(o)}function sa(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Og(n),a=i===((e=n.ownerDocument)==null?void 0:e.body),d=ar(i);if(a){let f=Pd(d);return o.concat(d,d.visualViewport||[],aa(i)?i:[],f&&t?sa(f):[])}return o.concat(i,sa(i,[],t))}function Pd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Pg(n){let o=Nr(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Yr(n),a=i?n.offsetWidth:t,d=i?n.offsetHeight:e,f=_n(t)!==a||_n(e)!==d;return f&&(t=a,e=d),{width:t,height:e,$:f}}function mp(n){return kr(n)?n:n.contextElement}function na(n){let o=mp(n);if(!Yr(o))return Ur(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:a}=Pg(o),d=(a?_n(t.width):t.width)/e,f=(a?_n(t.height):t.height)/i;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}var l0=Ur(0);function Fg(n){let o=ar(n);return!Dd()||!o.visualViewport?l0:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function d0(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(n)?!1:o}function ls(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=mp(n),d=Ur(1);o&&(e?kr(e)&&(d=na(e)):d=na(n));let f=d0(a,t,e)?Fg(a):Ur(0),v=(i.left+f.x)/d.x,A=(i.top+f.y)/d.y,R=i.width/d.x,H=i.height/d.y;if(a){let J=ar(a),q=e&&kr(e)?ar(e):e,Q=J,ot=Pd(Q);for(;ot&&e&&q!==Q;){let st=na(ot),ht=ot.getBoundingClientRect(),bt=Nr(ot),yt=ht.left+(ot.clientLeft+parseFloat(bt.paddingLeft))*st.x,It=ht.top+(ot.clientTop+parseFloat(bt.paddingTop))*st.y;v*=st.x,A*=st.y,R*=st.x,H*=st.y,v+=yt,A+=It,Q=ar(ot),ot=Pd(Q)}}return Bi({width:R,height:H,x:v,y:A})}function up(n,o){let t=Nn(n).scrollLeft;return o?o.left+t:ls(Wr(n)).left+t}function $g(n,o,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:up(n,e)),a=e.top+o.scrollTop;return{x:i,y:a}}function c0(n){let{elements:o,rect:t,offsetParent:e,strategy:i}=n,a=i==="fixed",d=Wr(e),f=o?kn(o.floating):!1;if(e===d||f&&a)return t;let v={scrollLeft:0,scrollTop:0},A=Ur(1),R=Ur(0),H=Yr(e);if((H||!H&&!a)&&((as(e)!=="body"||aa(d))&&(v=Nn(e)),Yr(e))){let q=ls(e);A=na(e),R.x=q.x+e.clientLeft,R.y=q.y+e.clientTop}let J=d&&!H&&!a?$g(d,v,!0):Ur(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-v.scrollLeft*A.x+R.x+J.x,y:t.y*A.y-v.scrollTop*A.y+R.y+J.y}}function h0(n){return Array.from(n.getClientRects())}function p0(n){let o=Wr(n),t=Nn(n),e=n.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),a=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+up(n),f=-t.scrollTop;return Nr(e).direction==="rtl"&&(d+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:a,x:d,y:f}}function m0(n,o){let t=ar(n),e=Wr(n),i=t.visualViewport,a=e.clientWidth,d=e.clientHeight,f=0,v=0;if(i){a=i.width,d=i.height;let A=Dd();(!A||A&&o==="fixed")&&(f=i.offsetLeft,v=i.offsetTop)}return{width:a,height:d,x:f,y:v}}var u0=new Set(["absolute","fixed"]);function f0(n,o){let t=ls(n,!0,o==="fixed"),e=t.top+n.clientTop,i=t.left+n.clientLeft,a=Yr(n)?na(n):Ur(1),d=n.clientWidth*a.x,f=n.clientHeight*a.y,v=i*a.x,A=e*a.y;return{width:d,height:f,x:v,y:A}}function Rg(n,o,t){let e;if(o==="viewport")e=m0(n,t);else if(o==="document")e=p0(Wr(n));else if(kr(o))e=f0(o,t);else{let i=Fg(n);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Bi(e)}function Vg(n,o){let t=Hi(n);return t===o||!kr(t)||ns(t)?!1:Nr(t).position==="fixed"||Vg(t,o)}function v0(n,o){let t=o.get(n);if(t)return t;let e=sa(n,[],!1).filter(f=>kr(f)&&as(f)!=="body"),i=null,a=Nr(n).position==="fixed",d=a?Hi(n):n;for(;kr(d)&&!ns(d);){let f=Nr(d),v=Rd(d);!v&&f.position==="fixed"&&(i=null),(a?!v&&!i:!v&&f.position==="static"&&!!i&&u0.has(i.position)||aa(d)&&!v&&Vg(n,d))?e=e.filter(R=>R!==d):i=f,d=Hi(d)}return o.set(n,e),e}function g0(n){let{element:o,boundary:t,rootBoundary:e,strategy:i}=n,d=[...t==="clippingAncestors"?kn(o)?[]:v0(o,this._c):[].concat(t),e],f=d[0],v=d.reduce((A,R)=>{let H=Rg(o,R,i);return A.top=we(H.top,A.top),A.right=yr(H.right,A.right),A.bottom=yr(H.bottom,A.bottom),A.left=we(H.left,A.left),A},Rg(o,f,i));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function b0(n){let{width:o,height:t}=Pg(n);return{width:o,height:t}}function y0(n,o,t){let e=Yr(o),i=Wr(o),a=t==="fixed",d=ls(n,!0,a,o),f={scrollLeft:0,scrollTop:0},v=Ur(0);function A(){v.x=up(i)}if(e||!e&&!a)if((as(o)!=="body"||aa(i))&&(f=Nn(o)),e){let q=ls(o,!0,a,o);v.x=q.x+o.clientLeft,v.y=q.y+o.clientTop}else i&&A();a&&!e&&i&&A();let R=i&&!e&&!a?$g(i,f):Ur(0),H=d.left+f.scrollLeft-v.x-R.x,J=d.top+f.scrollTop-v.y-R.y;return{x:H,y:J,width:d.width,height:d.height}}function pp(n){return Nr(n).position==="static"}function Dg(n,o){if(!Yr(n)||Nr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Wr(n)===t&&(t=t.ownerDocument.body),t}function zg(n,o){let t=ar(n);if(kn(n))return t;if(!Yr(n)){let i=Hi(n);for(;i&&!ns(i);){if(kr(i)&&!pp(i))return i;i=Hi(i)}return t}let e=Dg(n,o);for(;e&&Lg(e)&&pp(e);)e=Dg(e,o);return e&&ns(e)&&pp(e)&&!Rd(e)?t:e||Mg(n)||t}var E0=async function(n){let o=this.getOffsetParent||zg,t=this.getDimensions,e=await t(n.floating);return{reference:y0(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function T0(n){return Nr(n).direction==="rtl"}var x0={convertOffsetParentRelativeRectToViewportRelativeRect:c0,getDocumentElement:Wr,getClippingRect:g0,getOffsetParent:zg,getElementRects:E0,getClientRects:h0,getDimensions:b0,getScale:na,isElement:kr,isRTL:T0};function Bg(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function A0(n,o){let t=null,e,i=Wr(n);function a(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function d(f,v){f===void 0&&(f=!1),v===void 0&&(v=1),a();let A=n.getBoundingClientRect(),{left:R,top:H,width:J,height:q}=A;if(f||o(),!J||!q)return;let Q=wn(H),ot=wn(i.clientWidth-(R+J)),st=wn(i.clientHeight-(H+q)),ht=wn(R),yt={rootMargin:-Q+"px "+-ot+"px "+-st+"px "+-ht+"px",threshold:we(0,yr(1,v))||1},It=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==v){if(!It)return d();Pt?d(!1,Pt):e=setTimeout(()=>{d(!1,1e-7)},1e3)}Pt===1&&!Bg(A,n.getBoundingClientRect())&&d(),It=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(n)}return d(!0),a}function Hg(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:v=!1}=e,A=mp(n),R=i||a?[...A?sa(A):[],...sa(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),a&&ht.addEventListener("resize",t)});let H=A&&f?A0(A,t):null,J=-1,q=null;d&&(q=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===A&&q&&(q.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=q)==null||yt.observe(o)})),t()}),A&&!v&&q.observe(A),q.observe(o));let Q,ot=v?ls(n):null;v&&st();function st(){let ht=ls(n);ot&&!Bg(ot,ht)&&t(),ot=ht,Q=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),a&&bt.removeEventListener("resize",t)}),H==null||H(),(ht=q)==null||ht.disconnect(),q=null,v&&cancelAnimationFrame(Q)}}var Ug=Cg;var Gg=_g,Kg=Ag,Wg=wg;var Yg=xg,jg=Ig;var qg=(n,o,t)=>{let e=new Map,i={platform:x0,...t},a={...i.platform,_c:e};return Tg(n,o,{...i,platform:a})};var Fd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let a=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,a),a}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let a=window.setTimeout((...d)=>{t(...d),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,a),a}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,d])=>d===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Ui=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var S0=z`
2626
+ `],fg=GA;var os=class extends Xt(Q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
2627
+ <span part="radio-icon" class="radio-icon"></span>`}};os.styles=[...Q.styles,...fg],h([u({type:Boolean,reflect:!0})],os.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],os.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],os.prototype,"softDisabled",2);var pp=os;var vg=V.constructTagName("staticradio");pp.register(vg);var KA=pp;hp.register(Cd);var WA=hp;var yr=Math.min,we=Math.max,_n=Math.round,wn=Math.floor,Ur=n=>({x:n,y:n}),YA={left:"right",right:"left",bottom:"top",top:"bottom"},qA={start:"end",end:"start"};function wd(n,o,t){return we(n,yr(o,t))}function To(n,o){return typeof n=="function"?n(o):n}function Gr(n){return n.split("-")[0]}function ss(n){return n.split("-")[1]}function mp(n){return n==="x"?"y":"x"}function kd(n){return n==="y"?"height":"width"}var jA=new Set(["top","bottom"]);function Kr(n){return jA.has(Gr(n))?"y":"x"}function Nd(n){return mp(Kr(n))}function yg(n,o,t){t===void 0&&(t=!1);let e=ss(n),i=Nd(n),a=kd(i),d=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(d=Cn(d)),[d,Cn(d)]}function Eg(n){let o=Cn(n);return[_d(n),o,_d(o)]}function _d(n){return n.replace(/start|end/g,o=>qA[o])}var gg=["left","right"],bg=["right","left"],XA=["top","bottom"],ZA=["bottom","top"];function QA(n,o,t){switch(n){case"top":case"bottom":return t?o?bg:gg:o?gg:bg;case"left":case"right":return o?XA:ZA;default:return[]}}function Tg(n,o,t,e){let i=ss(n),a=QA(Gr(n),t==="start",e);return i&&(a=a.map(d=>d+"-"+i),o&&(a=a.concat(a.map(_d)))),a}function Cn(n){return n.replace(/left|right|bottom|top/g,o=>YA[o])}function JA(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ld(n){return typeof n!="number"?JA(n):{top:n,right:n,bottom:n,left:n}}function Bi(n){let{x:o,y:t,width:e,height:i}=n;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function xg(n,o,t){let{reference:e,floating:i}=n,a=Kr(o),d=Nd(o),f=kd(d),v=Gr(o),x=a==="y",R=e.x+e.width/2-i.width/2,H=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,W;switch(v){case"top":W={x:R,y:e.y-i.height};break;case"bottom":W={x:R,y:e.y+e.height};break;case"right":W={x:e.x+e.width,y:H};break;case"left":W={x:e.x-i.width,y:H};break;default:W={x:e.x,y:e.y}}switch(ss(o)){case"start":W[d]-=J*(t&&x?-1:1);break;case"end":W[d]+=J*(t&&x?-1:1);break}return W}var Ag=async(n,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:a=[],platform:d}=t,f=a.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(o)),x=await d.getElementRects({reference:n,floating:o,strategy:i}),{x:R,y:H}=xg(x,e,v),J=e,W={},Z=0;for(let ot=0;ot<f.length;ot++){let{name:st,fn:ht}=f[ot],{x:bt,y:yt,data:It,reset:Rt}=await ht({x:R,y:H,initialPlacement:e,placement:J,strategy:i,middlewareData:W,rects:x,platform:d,elements:{reference:n,floating:o}});R=bt!=null?bt:R,H=yt!=null?yt:H,W={...W,[st]:{...W[st],...It}},Rt&&Z<=50&&(Z++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(x=Rt.rects===!0?await d.getElementRects({reference:n,floating:o,strategy:i}):Rt.rects),{x:R,y:H}=xg(x,J,v)),ot=-1)}return{x:R,y:H,placement:J,strategy:i,middlewareData:W}};async function Md(n,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:a,rects:d,elements:f,strategy:v}=n,{boundary:x="clippingAncestors",rootBoundary:R="viewport",elementContext:H="floating",altBoundary:J=!1,padding:W=0}=To(o,n),Z=Ld(W),st=f[J?H==="floating"?"reference":"floating":H],ht=Bi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(st)))==null||t?st:st.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(f.floating)),boundary:x,rootBoundary:R,strategy:v})),bt=H==="floating"?{x:e,y:i,width:d.floating.width,height:d.floating.height}:d.reference,yt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f.floating)),It=await(a.isElement==null?void 0:a.isElement(yt))?await(a.getScale==null?void 0:a.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=Bi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:v}):bt);return{top:(ht.top-Rt.top+Z.top)/It.y,bottom:(Rt.bottom-ht.bottom+Z.bottom)/It.y,left:(ht.left-Rt.left+Z.left)/It.x,right:(Rt.right-ht.right+Z.right)/It.x}}var Sg=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:e,placement:i,rects:a,platform:d,elements:f,middlewareData:v}=o,{element:x,padding:R=0}=To(n,o)||{};if(x==null)return{};let H=Ld(R),J={x:t,y:e},W=Nd(i),Z=kd(W),ot=await d.getDimensions(x),st=W==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",It=a.reference[Z]+a.reference[W]-J[W]-a.floating[Z],Rt=J[W]-a.reference[W],Gt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(x)),Pt=Gt?Gt[yt]:0;(!Pt||!await(d.isElement==null?void 0:d.isElement(Gt)))&&(Pt=f.floating[yt]||a.floating[Z]);let ne=It/2-Rt/2,Ge=Pt/2-ot[Z]/2-1,qt=yr(H[ht],Ge),Ee=yr(H[bt],Ge),Te=qt,xe=Pt-ot[Z]-Ee,kt=Pt/2-ot[Z]/2+ne,se=wd(Te,kt,xe),Ke=!v.arrow&&ss(i)!=null&&kt!==se&&a.reference[Z]/2-(kt<Te?qt:Ee)-ot[Z]/2<0,Qe=Ke?kt<Te?kt-Te:kt-xe:0;return{[W]:J[W]+Qe,data:{[W]:se,centerOffset:kt-se-Qe,...Ke&&{alignmentOffset:Qe}},reset:Ke}}});var Ig=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:i,middlewareData:a,rects:d,initialPlacement:f,platform:v,elements:x}=o,{mainAxis:R=!0,crossAxis:H=!0,fallbackPlacements:J,fallbackStrategy:W="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:ot=!0,...st}=To(n,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let ht=Gr(i),bt=Kr(f),yt=Gr(f)===f,It=await(v.isRTL==null?void 0:v.isRTL(x.floating)),Rt=J||(yt||!ot?[Cn(f)]:Eg(f)),Gt=Z!=="none";!J&&Gt&&Rt.push(...Tg(f,ot,Z,It));let Pt=[f,...Rt],ne=await Md(o,st),Ge=[],qt=((e=a.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),H){let kt=yg(i,d,It);Ge.push(ne[kt[0]],ne[kt[1]])}if(qt=[...qt,{placement:i,overflows:Ge}],!Ge.every(kt=>kt<=0)){var Ee,Te;let kt=(((Ee=a.flip)==null?void 0:Ee.index)||0)+1,se=Pt[kt];if(se&&(!(H==="alignment"?bt!==Kr(se):!1)||qt.every(Je=>Je.overflows[0]>0&&Kr(Je.placement)===bt)))return{data:{index:kt,overflows:qt},reset:{placement:se}};let Ke=(Te=qt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:Te.placement;if(!Ke)switch(W){case"bestFit":{var xe;let Qe=(xe=qt.filter(Je=>{if(Gt){let Ar=Kr(Je.placement);return Ar===bt||Ar==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(Ar=>Ar>0).reduce((Ar,ll)=>Ar+ll,0)]).sort((Je,Ar)=>Je[1]-Ar[1])[0])==null?void 0:xe[0];Qe&&(Ke=Qe);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function Cg(n){let o=yr(...n.map(a=>a.left)),t=yr(...n.map(a=>a.top)),e=we(...n.map(a=>a.right)),i=we(...n.map(a=>a.bottom));return{x:o,y:t,width:e-o,height:i-t}}function t0(n){let o=n.slice().sort((i,a)=>i.y-a.y),t=[],e=null;for(let i=0;i<o.length;i++){let a=o[i];!e||a.y-e.y>e.height/2?t.push([a]):t[t.length-1].push(a),e=a}return t.map(i=>Bi(Cg(i)))}var _g=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(o){let{placement:t,elements:e,rects:i,platform:a,strategy:d}=o,{padding:f=2,x:v,y:x}=To(n,o),R=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(e.reference))||[]),H=t0(R),J=Bi(Cg(R)),W=Ld(f);function Z(){if(H.length===2&&H[0].left>H[1].right&&v!=null&&x!=null)return H.find(st=>v>st.left-W.left&&v<st.right+W.right&&x>st.top-W.top&&x<st.bottom+W.bottom)||J;if(H.length>=2){if(Kr(t)==="y"){let qt=H[0],Ee=H[H.length-1],Te=Gr(t)==="top",xe=qt.top,kt=Ee.bottom,se=Te?qt.left:Ee.left,Ke=Te?qt.right:Ee.right,Qe=Ke-se,Je=kt-xe;return{top:xe,bottom:kt,left:se,right:Ke,width:Qe,height:Je,x:se,y:xe}}let st=Gr(t)==="left",ht=we(...H.map(qt=>qt.right)),bt=yr(...H.map(qt=>qt.left)),yt=H.filter(qt=>st?qt.left===bt:qt.right===ht),It=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-It;return{top:It,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:It}}return J}let ot=await a.getElementRects({reference:{getBoundingClientRect:Z},floating:e.floating,strategy:d});return i.reference.x!==ot.reference.x||i.reference.y!==ot.reference.y||i.reference.width!==ot.reference.width||i.reference.height!==ot.reference.height?{reset:{rects:ot}}:{}}}},e0=new Set(["left","top"]);async function r0(n,o){let{placement:t,platform:e,elements:i}=n,a=await(e.isRTL==null?void 0:e.isRTL(i.floating)),d=Gr(t),f=ss(t),v=Kr(t)==="y",x=e0.has(d)?-1:1,R=a&&v?-1:1,H=To(o,n),{mainAxis:J,crossAxis:W,alignmentAxis:Z}=typeof H=="number"?{mainAxis:H,crossAxis:0,alignmentAxis:null}:{mainAxis:H.mainAxis||0,crossAxis:H.crossAxis||0,alignmentAxis:H.alignmentAxis};return f&&typeof Z=="number"&&(W=f==="end"?Z*-1:Z),v?{x:W*R,y:J*x}:{x:J*x,y:W*R}}var wg=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:i,y:a,placement:d,middlewareData:f}=o,v=await r0(o,n);return d===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+v.x,y:a+v.y,data:{...v,placement:d}}}}},kg=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:a=!0,crossAxis:d=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...v}=To(n,o),x={x:t,y:e},R=await Md(o,v),H=Kr(Gr(i)),J=mp(H),W=x[J],Z=x[H];if(a){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=W+R[st],yt=W-R[ht];W=wd(bt,W,yt)}if(d){let st=H==="y"?"top":"left",ht=H==="y"?"bottom":"right",bt=Z+R[st],yt=Z-R[ht];Z=wd(bt,Z,yt)}let ot=f.fn({...o,[J]:W,[H]:Z});return{...ot,data:{x:ot.x-t,y:ot.y-e,enabled:{[J]:a,[H]:d}}}}}};var Ng=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:i,rects:a,platform:d,elements:f}=o,{apply:v=()=>{},...x}=To(n,o),R=await Md(o,x),H=Gr(i),J=ss(i),W=Kr(i)==="y",{width:Z,height:ot}=a.floating,st,ht;H==="top"||H==="bottom"?(st=H,ht=J===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=H,st=J==="end"?"top":"bottom");let bt=ot-R.top-R.bottom,yt=Z-R.left-R.right,It=yr(ot-R[st],bt),Rt=yr(Z-R[ht],yt),Gt=!o.middlewareData.shift,Pt=It,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let qt=we(R.left,0),Ee=we(R.right,0),Te=we(R.top,0),xe=we(R.bottom,0);W?ne=Z-2*(qt!==0||Ee!==0?qt+Ee:we(R.left,R.right)):Pt=ot-2*(Te!==0||xe!==0?Te+xe:we(R.top,R.bottom))}await v({...o,availableWidth:ne,availableHeight:Pt});let Ge=await d.getDimensions(f.floating);return Z!==Ge.width||ot!==Ge.height?{reset:{rects:!0}}:{}}}};function Od(){return typeof window<"u"}function as(n){return Mg(n)?(n.nodeName||"").toLowerCase():"#document"}function ar(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Wr(n){var o;return(o=(Mg(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Mg(n){return Od()?n instanceof Node||n instanceof ar(n).Node:!1}function kr(n){return Od()?n instanceof Element||n instanceof ar(n).Element:!1}function Yr(n){return Od()?n instanceof HTMLElement||n instanceof ar(n).HTMLElement:!1}function Lg(n){return!Od()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ar(n).ShadowRoot}var i0=new Set(["inline","contents"]);function aa(n){let{overflow:o,overflowX:t,overflowY:e,display:i}=Nr(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!i0.has(i)}var o0=new Set(["table","td","th"]);function Og(n){return o0.has(as(n))}var s0=[":popover-open",":modal"];function kn(n){return s0.some(o=>{try{return n.matches(o)}catch{return!1}})}var a0=["transform","translate","scale","rotate","perspective"],n0=["transform","translate","scale","rotate","perspective","filter"],l0=["paint","layout","strict","content"];function Rd(n){let o=Dd(),t=kr(n)?Nr(n):n;return a0.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||n0.some(e=>(t.willChange||"").includes(e))||l0.some(e=>(t.contain||"").includes(e))}function Rg(n){let o=Hi(n);for(;Yr(o)&&!ns(o);){if(Rd(o))return o;if(kn(o))return null;o=Hi(o)}return null}function Dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var d0=new Set(["html","body","#document"]);function ns(n){return d0.has(as(n))}function Nr(n){return ar(n).getComputedStyle(n)}function Nn(n){return kr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Hi(n){if(as(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Lg(n)&&n.host||Wr(n);return Lg(o)?o.host:o}function Dg(n){let o=Hi(n);return ns(o)?n.ownerDocument?n.ownerDocument.body:n.body:Yr(o)&&aa(o)?o:Dg(o)}function sa(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Dg(n),a=i===((e=n.ownerDocument)==null?void 0:e.body),d=ar(i);if(a){let f=Pd(d);return o.concat(d,d.visualViewport||[],aa(i)?i:[],f&&t?sa(f):[])}return o.concat(i,sa(i,[],t))}function Pd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function $g(n){let o=Nr(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Yr(n),a=i?n.offsetWidth:t,d=i?n.offsetHeight:e,f=_n(t)!==a||_n(e)!==d;return f&&(t=a,e=d),{width:t,height:e,$:f}}function fp(n){return kr(n)?n:n.contextElement}function na(n){let o=fp(n);if(!Yr(o))return Ur(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:a}=$g(o),d=(a?_n(t.width):t.width)/e,f=(a?_n(t.height):t.height)/i;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}var c0=Ur(0);function Vg(n){let o=ar(n);return!Dd()||!o.visualViewport?c0:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function h0(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(n)?!1:o}function ls(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=fp(n),d=Ur(1);o&&(e?kr(e)&&(d=na(e)):d=na(n));let f=h0(a,t,e)?Vg(a):Ur(0),v=(i.left+f.x)/d.x,x=(i.top+f.y)/d.y,R=i.width/d.x,H=i.height/d.y;if(a){let J=ar(a),W=e&&kr(e)?ar(e):e,Z=J,ot=Pd(Z);for(;ot&&e&&W!==Z;){let st=na(ot),ht=ot.getBoundingClientRect(),bt=Nr(ot),yt=ht.left+(ot.clientLeft+parseFloat(bt.paddingLeft))*st.x,It=ht.top+(ot.clientTop+parseFloat(bt.paddingTop))*st.y;v*=st.x,x*=st.y,R*=st.x,H*=st.y,v+=yt,x+=It,Z=ar(ot),ot=Pd(Z)}}return Bi({width:R,height:H,x:v,y:x})}function vp(n,o){let t=Nn(n).scrollLeft;return o?o.left+t:ls(Wr(n)).left+t}function zg(n,o,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:vp(n,e)),a=e.top+o.scrollTop;return{x:i,y:a}}function p0(n){let{elements:o,rect:t,offsetParent:e,strategy:i}=n,a=i==="fixed",d=Wr(e),f=o?kn(o.floating):!1;if(e===d||f&&a)return t;let v={scrollLeft:0,scrollTop:0},x=Ur(1),R=Ur(0),H=Yr(e);if((H||!H&&!a)&&((as(e)!=="body"||aa(d))&&(v=Nn(e)),Yr(e))){let W=ls(e);x=na(e),R.x=W.x+e.clientLeft,R.y=W.y+e.clientTop}let J=d&&!H&&!a?zg(d,v,!0):Ur(0);return{width:t.width*x.x,height:t.height*x.y,x:t.x*x.x-v.scrollLeft*x.x+R.x+J.x,y:t.y*x.y-v.scrollTop*x.y+R.y+J.y}}function m0(n){return Array.from(n.getClientRects())}function u0(n){let o=Wr(n),t=Nn(n),e=n.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),a=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+vp(n),f=-t.scrollTop;return Nr(e).direction==="rtl"&&(d+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:a,x:d,y:f}}function f0(n,o){let t=ar(n),e=Wr(n),i=t.visualViewport,a=e.clientWidth,d=e.clientHeight,f=0,v=0;if(i){a=i.width,d=i.height;let x=Dd();(!x||x&&o==="fixed")&&(f=i.offsetLeft,v=i.offsetTop)}return{width:a,height:d,x:f,y:v}}var v0=new Set(["absolute","fixed"]);function g0(n,o){let t=ls(n,!0,o==="fixed"),e=t.top+n.clientTop,i=t.left+n.clientLeft,a=Yr(n)?na(n):Ur(1),d=n.clientWidth*a.x,f=n.clientHeight*a.y,v=i*a.x,x=e*a.y;return{width:d,height:f,x:v,y:x}}function Pg(n,o,t){let e;if(o==="viewport")e=f0(n,t);else if(o==="document")e=u0(Wr(n));else if(kr(o))e=g0(o,t);else{let i=Vg(n);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Bi(e)}function Bg(n,o){let t=Hi(n);return t===o||!kr(t)||ns(t)?!1:Nr(t).position==="fixed"||Bg(t,o)}function b0(n,o){let t=o.get(n);if(t)return t;let e=sa(n,[],!1).filter(f=>kr(f)&&as(f)!=="body"),i=null,a=Nr(n).position==="fixed",d=a?Hi(n):n;for(;kr(d)&&!ns(d);){let f=Nr(d),v=Rd(d);!v&&f.position==="fixed"&&(i=null),(a?!v&&!i:!v&&f.position==="static"&&!!i&&v0.has(i.position)||aa(d)&&!v&&Bg(n,d))?e=e.filter(R=>R!==d):i=f,d=Hi(d)}return o.set(n,e),e}function y0(n){let{element:o,boundary:t,rootBoundary:e,strategy:i}=n,d=[...t==="clippingAncestors"?kn(o)?[]:b0(o,this._c):[].concat(t),e],f=d[0],v=d.reduce((x,R)=>{let H=Pg(o,R,i);return x.top=we(H.top,x.top),x.right=yr(H.right,x.right),x.bottom=yr(H.bottom,x.bottom),x.left=we(H.left,x.left),x},Pg(o,f,i));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function E0(n){let{width:o,height:t}=$g(n);return{width:o,height:t}}function T0(n,o,t){let e=Yr(o),i=Wr(o),a=t==="fixed",d=ls(n,!0,a,o),f={scrollLeft:0,scrollTop:0},v=Ur(0);function x(){v.x=vp(i)}if(e||!e&&!a)if((as(o)!=="body"||aa(i))&&(f=Nn(o)),e){let W=ls(o,!0,a,o);v.x=W.x+o.clientLeft,v.y=W.y+o.clientTop}else i&&x();a&&!e&&i&&x();let R=i&&!e&&!a?zg(i,f):Ur(0),H=d.left+f.scrollLeft-v.x-R.x,J=d.top+f.scrollTop-v.y-R.y;return{x:H,y:J,width:d.width,height:d.height}}function up(n){return Nr(n).position==="static"}function Fg(n,o){if(!Yr(n)||Nr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Wr(n)===t&&(t=t.ownerDocument.body),t}function Hg(n,o){let t=ar(n);if(kn(n))return t;if(!Yr(n)){let i=Hi(n);for(;i&&!ns(i);){if(kr(i)&&!up(i))return i;i=Hi(i)}return t}let e=Fg(n,o);for(;e&&Og(e)&&up(e);)e=Fg(e,o);return e&&ns(e)&&up(e)&&!Rd(e)?t:e||Rg(n)||t}var x0=async function(n){let o=this.getOffsetParent||Hg,t=this.getDimensions,e=await t(n.floating);return{reference:T0(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function A0(n){return Nr(n).direction==="rtl"}var S0={convertOffsetParentRelativeRectToViewportRelativeRect:p0,getDocumentElement:Wr,getClippingRect:y0,getOffsetParent:Hg,getElementRects:x0,getClientRects:m0,getDimensions:E0,getScale:na,isElement:kr,isRTL:A0};function Ug(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function I0(n,o){let t=null,e,i=Wr(n);function a(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function d(f,v){f===void 0&&(f=!1),v===void 0&&(v=1),a();let x=n.getBoundingClientRect(),{left:R,top:H,width:J,height:W}=x;if(f||o(),!J||!W)return;let Z=wn(H),ot=wn(i.clientWidth-(R+J)),st=wn(i.clientHeight-(H+W)),ht=wn(R),yt={rootMargin:-Z+"px "+-ot+"px "+-st+"px "+-ht+"px",threshold:we(0,yr(1,v))||1},It=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==v){if(!It)return d();Pt?d(!1,Pt):e=setTimeout(()=>{d(!1,1e-7)},1e3)}Pt===1&&!Ug(x,n.getBoundingClientRect())&&d(),It=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(n)}return d(!0),a}function Gg(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:v=!1}=e,x=fp(n),R=i||a?[...x?sa(x):[],...sa(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),a&&ht.addEventListener("resize",t)});let H=x&&f?I0(x,t):null,J=-1,W=null;d&&(W=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===x&&W&&(W.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=W)==null||yt.observe(o)})),t()}),x&&!v&&W.observe(x),W.observe(o));let Z,ot=v?ls(n):null;v&&st();function st(){let ht=ls(n);ot&&!Ug(ot,ht)&&t(),ot=ht,Z=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),a&&bt.removeEventListener("resize",t)}),H==null||H(),(ht=W)==null||ht.disconnect(),W=null,v&&cancelAnimationFrame(Z)}}var Kg=wg;var Wg=kg,Yg=Ig,qg=Ng;var jg=Sg,Xg=_g;var Zg=(n,o,t)=>{let e=new Map,i={platform:S0,...t},a={...i.platform,_c:e};return Ag(n,o,{...i,platform:a})};var Fd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let a=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,a),a}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let a=window.setTimeout((...d)=>{t(...d),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,a),a}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,d])=>d===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Ui=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var C0=z`
2628
2628
  :host {
2629
2629
  --mdc-popover-arrow-border-radius: 0.1875rem;
2630
2630
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2748,7 +2748,7 @@
2748
2748
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2749
2749
  border-bottom-left-radius: 100%;
2750
2750
  }
2751
- `,Xg=[S0];var Vd=V.constructTagName("popoverportal"),$d=class extends Z{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var zd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),a=e.getBoundingClientRect(),d=0;if(!a)return;let f=this.popover.offsetHeight||0,v=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?d=Math.max(0,Math.max(i.top-a.bottom,a.top-i.bottom)):(A==="left"||A==="right")&&(d=Math.max(0,Math.max(a.left-i.right,i.left-a.right))),d+=1,A){case"top":t.style.height=`${d}px`,t.style.bottom=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.right=`calc(-1.5 * (${d}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.left=`calc(-0.5 * (${d}px))`;break;case"bottom":default:t.style.height=`${d}px`,t.style.top=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Vd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:a,y:d}=o,f=this.popover.arrowElement.getBoundingClientRect(),v=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let H=v!=null&&v[i]?12-Math.abs(f[i]-v[i]):0;Math.round(H)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var wt=class extends Ot(Nt(ld(od(js(Z))))){constructor(){super();this.depthManager=new fo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Fd(this);this.parseTrigger=()=>{var a;let i=(((a=this.trigger)==null?void 0:a.split(" "))||[]).filter(d=>Object.values(_e).includes(d)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.hide(),Ui.onClickOutside(this),a&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==K.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ui.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?e===i||!!(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,a,d;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(d=(a=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:a.querySelector(".mdc-focus-ring"))!=null&&d.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(zi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(zi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(zi.HOVER),this.timers.clearTimeout(zi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(zi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(zi.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,a=[];if(this.inline&&a.push(jg()),a.push(Gg({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||a.push(Kg({boundary:e,rootBoundary:i})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},v=this.renderRoot.querySelector('[part="popover-content"]');a.push(Wg({boundary:e,rootBoundary:i,apply({availableHeight:A}){v&&(Object.assign(v.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let d=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;d=Math.sqrt(2*f**2)/2,a.push(Yg({element:this.arrowElement,padding:12}))}a.push(Ug(typeof this.offset=="number"?this.offset+d:this.offset)),this.floatingUICleanupFunction=Hg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let v=this.adjustPlacementForRtl(this.placement),{x:A,y:R,middlewareData:H,placement:J}=await qg(f,this,{placement:v,middleware:a,strategy:this.strategy});this.utils.updatePopoverStyle(A,R),H.arrow&&this.arrowElement&&this.utils.updateArrowStyle(H.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new zd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Ui.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Ui.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(rs).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var a,d;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,v,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(v=this.elementIndexToReceiveFocus)!=null?v:0))},0),Ui.onShowPopover(this)):(this.depthManager.popHost(),(a=this.floatingUICleanupFunction)==null||a.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(d=this.deactivateFocusTrap)==null||d.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ui.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(zi.OPEN,t,this.openDelay):(this.timers.clearTimeout(zi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2751
+ `,Qg=[C0];var Vd=V.constructTagName("popoverportal"),$d=class extends Q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var zd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),a=e.getBoundingClientRect(),d=0;if(!a)return;let f=this.popover.offsetHeight||0,v=this.popover.offsetWidth||0,x=o.split("-")[0];switch(x==="top"||x==="bottom"?d=Math.max(0,Math.max(i.top-a.bottom,a.top-i.bottom)):(x==="left"||x==="right")&&(d=Math.max(0,Math.max(a.left-i.right,i.left-a.right))),d+=1,x){case"top":t.style.height=`${d}px`,t.style.bottom=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.right=`calc(-1.5 * (${d}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.left=`calc(-0.5 * (${d}px))`;break;case"bottom":default:t.style.height=`${d}px`,t.style.top=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Vd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:a,y:d}=o,f=this.popover.arrowElement.getBoundingClientRect(),v=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let H=v!=null&&v[i]?12-Math.abs(f[i]-v[i]):0;Math.round(H)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let x=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-x}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var wt=class extends Ot(Nt(ld(od(qs(Q))))){constructor(){super();this.depthManager=new vo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Fd(this);this.parseTrigger=()=>{var a;let i=(((a=this.trigger)==null?void 0:a.split(" "))||[]).filter(d=>Object.values(_e).includes(d)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.hide(),Ui.onClickOutside(this),a&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==K.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ui.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?e===i||!!(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,a,d;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(d=(a=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:a.querySelector(".mdc-focus-ring"))!=null&&d.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(zi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(zi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(zi.HOVER),this.timers.clearTimeout(zi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(zi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(zi.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,a=[];if(this.inline&&a.push(Xg()),a.push(Wg({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||a.push(Yg({boundary:e,rootBoundary:i})),this.size){let f=x=>{this.style.setProperty("--mdc-popover-internal-available-height",`${x}px`)},v=this.renderRoot.querySelector('[part="popover-content"]');a.push(qg({boundary:e,rootBoundary:i,apply({availableHeight:x}){v&&(Object.assign(v.style,{maxHeight:`${x}px`,overflowY:"auto"}),f(x))},padding:50}))}let d=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;d=Math.sqrt(2*f**2)/2,a.push(jg({element:this.arrowElement,padding:12}))}a.push(Kg(typeof this.offset=="number"?this.offset+d:this.offset)),this.floatingUICleanupFunction=Gg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let v=this.adjustPlacementForRtl(this.placement),{x,y:R,middlewareData:H,placement:J}=await Zg(f,this,{placement:v,middleware:a,strategy:this.strategy});this.utils.updatePopoverStyle(x,R),H.arrow&&this.arrowElement&&this.utils.updateArrowStyle(H.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new zd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Ui.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Ui.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(rs).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var a,d;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,v,x;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(x=this.setInitialFocus)==null||x.call(this,(v=this.elementIndexToReceiveFocus)!=null?v:0))},0),Ui.onShowPopover(this)):(this.depthManager.popHost(),(a=this.floatingUICleanupFunction)==null||a.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(d=this.deactivateFocusTrap)==null||d.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ui.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(zi.OPEN,t,this.openDelay):(this.timers.clearTimeout(zi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2752
2752
  <div part="popover-hover-bridge"></div>
2753
2753
  ${this.closeButton?S` <mdc-button
2754
2754
  part="popover-close"
@@ -2762,7 +2762,7 @@
2762
2762
  <div part="popover-content">
2763
2763
  <slot></slot>
2764
2764
  </div>
2765
- `}};wt.styles=[...Z.styles,...Xg],h([u({type:String,reflect:!0})],wt.prototype,"id",2),h([u({type:String,reflect:!0})],wt.prototype,"triggerID",2),h([u({type:String,reflect:!0})],wt.prototype,"trigger",2),h([u({type:String,reflect:!0})],wt.prototype,"placement",2),h([u({type:String,reflect:!0})],wt.prototype,"color",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],wt.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],wt.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],wt.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],wt.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],wt.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],wt.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],wt.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],wt.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"interactive",2),h([u({type:String,reflect:!0})],wt.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],wt.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],wt.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],wt.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],wt.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],wt.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],wt.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],wt.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],wt.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],wt.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],wt.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],wt.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],wt.prototype,"strategy",2),h([u({type:String,reflect:!0})],wt.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],wt.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],wt.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],wt.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],wt.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],wt.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],wt.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],wt.prototype,"stackGroupName",2);var nr=wt;var Zg=V.constructTagName("toggletip"),ds={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:_e.CLICK,SHOW_ARROW:!0};var I0=z`
2765
+ `}};wt.styles=[...Q.styles,...Qg],h([u({type:String,reflect:!0})],wt.prototype,"id",2),h([u({type:String,reflect:!0})],wt.prototype,"triggerID",2),h([u({type:String,reflect:!0})],wt.prototype,"trigger",2),h([u({type:String,reflect:!0})],wt.prototype,"placement",2),h([u({type:String,reflect:!0})],wt.prototype,"color",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],wt.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],wt.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],wt.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],wt.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],wt.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],wt.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],wt.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],wt.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"interactive",2),h([u({type:String,reflect:!0})],wt.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],wt.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],wt.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],wt.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],wt.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],wt.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],wt.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],wt.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],wt.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],wt.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],wt.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],wt.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],wt.prototype,"strategy",2),h([u({type:String,reflect:!0})],wt.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],wt.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],wt.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],wt.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],wt.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],wt.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],wt.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],wt.prototype,"stackGroupName",2);var nr=wt;var Jg=V.constructTagName("toggletip"),ds={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:_e.CLICK,SHOW_ARROW:!0};var _0=z`
2766
2766
  :host {
2767
2767
  --mdc-toggletip-max-width: 400px;
2768
2768
  --mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
@@ -2792,7 +2792,7 @@
2792
2792
  :host([close-button]:dir(rtl))::part(popover-content) {
2793
2793
  margin-left: 2rem;
2794
2794
  }
2795
- `,Qg=[I0];var To=class extends nr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=ds.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:ds.CLOSE_BUTTON,this.closeButtonAriaLabel=ds.CLOSE_BUTTON_ARIA_LABEL,this.trigger=ds.CLICK,this.showArrow=ds.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(i=>i.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=ds.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
2795
+ `,tb=[_0];var xo=class extends nr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=ds.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:ds.CLOSE_BUTTON,this.closeButtonAriaLabel=ds.CLOSE_BUTTON_ARIA_LABEL,this.trigger=ds.CLICK,this.showArrow=ds.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(i=>i.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=ds.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
2796
2796
  ${super.render()}
2797
2797
  <mdc-screenreaderannouncer
2798
2798
  identity="${tt(this.screenreaderAnnouncerIdentity)}"
@@ -2800,12 +2800,12 @@
2800
2800
  delay="300"
2801
2801
  >
2802
2802
  </mdc-screenreaderannouncer>
2803
- `}};To.styles=[...nr.styles,...Qg],h([If()],To.prototype,"defaultSlotNodes",2),h([dt()],To.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],To.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],To.prototype,"placement",2);var fp=To;function Bd(n,o=500){let t,e=(...i)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,n(...i)},o)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Jg=V.constructTagName("screenreaderannouncer"),C0={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},cs={ARIA_LIVE:C0.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var _0=[z`
2803
+ `}};xo.styles=[...nr.styles,...tb],h([_f()],xo.prototype,"defaultSlotNodes",2),h([dt()],xo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],xo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],xo.prototype,"placement",2);var gp=xo;function Bd(n,o=500){let t,e=(...i)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,n(...i)},o)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var eb=V.constructTagName("screenreaderannouncer"),w0={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},cs={ARIA_LIVE:w0.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var k0=[z`
2804
2804
  :host {
2805
2805
  display: none;
2806
2806
  visibility: hidden;
2807
2807
  }
2808
- `],tb=_0;var Ln=new Map,pi=class extends Z{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=cs.ARIA_LIVE;this.delay=cs.DELAY;this.timeout=cs.TIMEOUT;this.debounceTime=cs.DEBOUNCE;this.hasIdentityRef=!1;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:a}){var d;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,v=document.createElement("div");v.setAttribute("id",f),v.setAttribute("aria-live",a!=null?a:this.dataAriaLive),(d=this.getElementByIdAcrossShadowRoot(this.identity))==null||d.appendChild(v);let A=window.setTimeout(()=>{let R=document.createElement("p");R.textContent=t,v.appendChild(R),this.ariaLiveAnnouncementIds.push(f);let H=window.setTimeout(()=>{v.remove()},i!=null?i:this.timeout);this.timeOutIds.push(H)},e!=null?e:this.delay);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var a;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((a=i==null?void 0:i.shadowRoot)==null?void 0:a.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2808
+ `],rb=k0;var Ln=new Map,pi=class extends Q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=cs.ARIA_LIVE;this.delay=cs.DELAY;this.timeout=cs.TIMEOUT;this.debounceTime=cs.DEBOUNCE;this.hasIdentityRef=!1;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:a}){var d;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,v=document.createElement("div");v.setAttribute("id",f),v.setAttribute("aria-live",a!=null?a:this.dataAriaLive),(d=this.getElementByIdAcrossShadowRoot(this.identity))==null||d.appendChild(v);let x=window.setTimeout(()=>{let R=document.createElement("p");R.textContent=t,v.appendChild(R),this.ariaLiveAnnouncementIds.push(f);let H=window.setTimeout(()=>{v.remove()},i!=null?i:this.timeout);this.timeOutIds.push(H)},e!=null?e:this.delay);this.timeOutIds.push(x)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var a;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((a=i==null?void 0:i.shadowRoot)==null?void 0:a.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2809
2809
  .mdc-screenreaderannouncer__visually-hidden {
2810
2810
  clip: rect(0 0 0 0);
2811
2811
  clip-path: inset(50%);
@@ -2815,7 +2815,7 @@
2815
2815
  white-space: nowrap;
2816
2816
  width: 1px;
2817
2817
  }
2818
- `,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let i=this.findModalAncestor();i!=null&&i.shadowRoot?i.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let i=t.getRootNode();if(i instanceof ShadowRoot&&i.host)t=i.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Bd(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}acquireIdentityRef(){var t;this.hasIdentityRef||(Ln.set(this.identity,((t=Ln.get(this.identity))!=null?t:0)+1),this.hasIdentityRef=!0)}releaseIdentityRef(){var e;if(!this.hasIdentityRef)return;let t=((e=Ln.get(this.identity))!=null?e:1)-1;if(t<=0){Ln.delete(this.identity);let i=this.getElementByIdAcrossShadowRoot(this.identity);i!=null&&i.classList.contains("mdc-screenreaderannouncer__visually-hidden")&&i.remove()}else Ln.set(this.identity,t);this.hasIdentityRef=!1}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=cs.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.acquireIdentityRef(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel(),this.releaseIdentityRef()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=cs.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};pi.styles=[...Z.styles,...tb],h([u({type:String,reflect:!0})],pi.prototype,"announcement",2),h([u({type:String,reflect:!0})],pi.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],pi.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],pi.prototype,"delay",2),h([u({type:Number,reflect:!0})],pi.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],pi.prototype,"debounceTime",2);var vp=pi;vp.register(Jg);var w0=vp;fp.register(Zg);var k0=fp;var me=n=>{class o extends n{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,h([u({reflect:!0,type:String})],o.prototype,"name",2),h([u({reflect:!0,type:String})],o.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),h([zt("input")],o.prototype,"inputElement",2),o};var N0=z`
2818
+ `,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let i=this.findModalAncestor();i!=null&&i.shadowRoot?i.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let i=t.getRootNode();if(i instanceof ShadowRoot&&i.host)t=i.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Bd(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}acquireIdentityRef(){var t;this.hasIdentityRef||(Ln.set(this.identity,((t=Ln.get(this.identity))!=null?t:0)+1),this.hasIdentityRef=!0)}releaseIdentityRef(){var e;if(!this.hasIdentityRef)return;let t=((e=Ln.get(this.identity))!=null?e:1)-1;if(t<=0){Ln.delete(this.identity);let i=this.getElementByIdAcrossShadowRoot(this.identity);i!=null&&i.classList.contains("mdc-screenreaderannouncer__visually-hidden")&&i.remove()}else Ln.set(this.identity,t);this.hasIdentityRef=!1}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=cs.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.acquireIdentityRef(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel(),this.releaseIdentityRef()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=cs.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};pi.styles=[...Q.styles,...rb],h([u({type:String,reflect:!0})],pi.prototype,"announcement",2),h([u({type:String,reflect:!0})],pi.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],pi.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],pi.prototype,"delay",2),h([u({type:Number,reflect:!0})],pi.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],pi.prototype,"debounceTime",2);var bp=pi;bp.register(eb);var N0=bp;gp.register(Jg);var L0=gp;var me=n=>{class o extends n{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,h([u({reflect:!0,type:String})],o.prototype,"name",2),h([u({reflect:!0,type:String})],o.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),h([zt("input")],o.prototype,"inputElement",2),o};var M0=z`
2819
2819
  :host {
2820
2820
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
2821
2821
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
@@ -2909,13 +2909,13 @@
2909
2909
  pointer-events: none;
2910
2910
  cursor: default;
2911
2911
  }
2912
- `,eb=[Tt,N0];var rb=n=>Sd[n]||"";var lr=class extends Xt(Z){constructor(){super(...arguments);this.inputId=`mdc-el-${ze()}`;this.required=!1;this.helpTextType=Kt.VALIDATION;this.toggletipPlacement=Kt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Kt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?S`<label for="${this.inputId}" id="${Kt.HEADING_ID}" part="label">${this.label}</label>`:S` <mdc-text
2912
+ `,ib=[Tt,M0];var ob=n=>Sd[n]||"";var lr=class extends Xt(Q){constructor(){super(...arguments);this.inputId=`mdc-el-${ze()}`;this.required=!1;this.helpTextType=Kt.VALIDATION;this.toggletipPlacement=Kt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Kt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?S`<label for="${this.inputId}" id="${Kt.HEADING_ID}" part="label">${this.label}</label>`:S` <mdc-text
2913
2913
  id="${Kt.HEADING_ID}"
2914
2914
  tagname="${In.TAGNAME}"
2915
2915
  type="${In.HEADER_TYPE}"
2916
2916
  part="label"
2917
2917
  >${this.label}</mdc-text
2918
- >`:U}renderHelpTextIcon(){if(!this.helpText)return U;let t=rb(this.helpTextType||Kt.VALIDATION);return t&&!this.disabled?S`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:U}renderHelpText(){return this.helpText?S`
2918
+ >`:U}renderHelpTextIcon(){if(!this.helpText)return U;let t=ob(this.helpTextType||Kt.VALIDATION);return t&&!this.disabled?S`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:U}renderHelpText(){return this.helpText?S`
2919
2919
  <mdc-text
2920
2920
  id="${Kt.HELPER_TEXT_ID}"
2921
2921
  part="help-text"
@@ -2955,7 +2955,7 @@
2955
2955
  >
2956
2956
  <slot name="help-icon" slot="icon">${this.renderHelpTextIcon()}</slot>
2957
2957
  <slot name="help-text">${this.renderHelpText()}</slot>
2958
- </mdc-statusmessage>`:U}};lr.styles=[...Z.styles,...eb],h([u({reflect:!0,type:String})],lr.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],lr.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],lr.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],lr.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],lr.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],lr.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],lr.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],lr.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],lr.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],lr.prototype,"softDisabled",2);var te=lr;var Zt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Hd=n=>{class o extends n{dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Zt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var L0=[z`
2958
+ </mdc-statusmessage>`:U}};lr.styles=[...Q.styles,...ib],h([u({reflect:!0,type:String})],lr.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],lr.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],lr.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],lr.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],lr.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],lr.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],lr.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],lr.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],lr.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],lr.prototype,"softDisabled",2);var te=lr;var Zt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Hd=n=>{class o extends n{dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Zt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var O0=[z`
2959
2959
  :host {
2960
2960
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
2961
2961
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -3040,7 +3040,7 @@
3040
3040
  :host([soft-disabled]) {
3041
3041
  pointer-events: none;
3042
3042
  }
3043
- `,...xt(!0)],ib=L0;var mi=class extends Ot(Nt(Ve(me(oe(Hd(te)))))){constructor(){super(...arguments);this.tabIndex=0;this.checked=!1;this.indeterminate=!1;this.hasLeadingVisual=!1;this.helpTextType=cg.DEFAULT;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:U}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){return!this.disabled&&!this.softDisabled&&!this.readonly?(this.checked=!this.checked,this.indeterminate=!1,!0):!1}click(){super.click(),this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&((this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault(),e===K.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===re.SPATIAL&&!(this.readonly||this.softDisabled)&&e===K.ENTER&&(this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleLeadingVisualClick(){this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleLeadingVisualSlotChange(t){let e=t.currentTarget;this.hasLeadingVisual=e.assignedElements({flatten:!0}).length>0}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked")),(t.has("checked")||t.has("disabled")||t.has("indeterminate")||t.has("readonly")||t.has("softDisabled"))&&this.dispatchModifiedEvent("state")}render(){var t;return S`
3043
+ `,...xt(!0)],sb=O0;var mi=class extends Ot(Nt(Ve(me(oe(Hd(te)))))){constructor(){super(...arguments);this.tabIndex=0;this.checked=!1;this.indeterminate=!1;this.hasLeadingVisual=!1;this.helpTextType=pg.DEFAULT;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:U}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){return!this.disabled&&!this.softDisabled&&!this.readonly?(this.checked=!this.checked,this.indeterminate=!1,!0):!1}click(){super.click(),this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&((this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault(),e===K.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===re.SPATIAL&&!(this.readonly||this.softDisabled)&&e===K.ENTER&&(this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleLeadingVisualClick(){this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleLeadingVisualSlotChange(t){let e=t.currentTarget;this.hasLeadingVisual=e.assignedElements({flatten:!0}).length>0}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked")),(t.has("checked")||t.has("disabled")||t.has("indeterminate")||t.has("readonly")||t.has("softDisabled"))&&this.dispatchModifiedEvent("state")}render(){var t;return S`
3044
3044
  <mdc-staticcheckbox
3045
3045
  part="static-checkbox"
3046
3046
  class="mdc-focus-ring"
@@ -3077,7 +3077,7 @@
3077
3077
  @slotchange=${this.handleLeadingVisualSlotChange}
3078
3078
  ></slot>
3079
3079
  ${this.renderLabelAndHelperText()}
3080
- `}};mi.styles=[...te.styles,...ib],mi.shadowRootOptions={...te.shadowRootOptions,delegatesFocus:!0},h([u({converter:{fromAttribute:t=>t===null?0:Number(t)}})],mi.prototype,"tabIndex",2),h([u({type:Boolean,reflect:!0})],mi.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],mi.prototype,"indeterminate",2),h([dt()],mi.prototype,"hasLeadingVisual",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],mi.prototype,"helpTextType",2);var gp=mi;gp.register(is);var M0=gp;var ob=V.constructTagName("staticchip"),bp={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Ud={COLOR:bp.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var O0=z`
3080
+ `}};mi.styles=[...te.styles,...sb],mi.shadowRootOptions={...te.shadowRootOptions,delegatesFocus:!0},h([u({converter:{fromAttribute:t=>t===null?0:Number(t)}})],mi.prototype,"tabIndex",2),h([u({type:Boolean,reflect:!0})],mi.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],mi.prototype,"indeterminate",2),h([dt()],mi.prototype,"hasLeadingVisual",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],mi.prototype,"helpTextType",2);var yp=mi;yp.register(is);var R0=yp;var ab=V.constructTagName("staticchip"),Ep={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Ud={COLOR:Ep.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var D0=z`
3081
3081
  :host {
3082
3082
  height: 1.5rem;
3083
3083
  gap: 0.25rem;
@@ -3159,7 +3159,7 @@
3159
3159
  --mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
3160
3160
  --mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
3161
3161
  }
3162
- `,sb=[Tt,O0];var la=class extends he(Z){constructor(){super(...arguments);this.color=Ud.COLOR}renderPrefix(){return S`
3162
+ `,nb=[Tt,D0];var la=class extends he(Q){constructor(){super(...arguments);this.color=Ud.COLOR}renderPrefix(){return S`
3163
3163
  <slot name="prefix">
3164
3164
  ${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:U}
3165
3165
  </slot>
@@ -3168,7 +3168,7 @@
3168
3168
  ${this.label?S`<mdc-text part="label" type="${Ud.TEXT_TYPE}" tagname="${Ud.TAG_NAME}"
3169
3169
  >${this.label}</mdc-text
3170
3170
  >`:U}
3171
- `}};la.styles=[...Z.styles,...sb],h([u({type:String,reflect:!0})],la.prototype,"color",2),h([u({type:String})],la.prototype,"label",2);var Mn=la;var Gd=V.constructTagName("chip"),da={COLOR:bp.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Yo[24],ROLE:et.BUTTON};var R0=z`
3171
+ `}};la.styles=[...Q.styles,...nb],h([u({type:String,reflect:!0})],la.prototype,"color",2),h([u({type:String})],la.prototype,"label",2);var Mn=la;var Gd=V.constructTagName("chip"),da={COLOR:Ep.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:qo[24],ROLE:et.BUTTON};var P0=z`
3172
3172
  :host {
3173
3173
  cursor: pointer;
3174
3174
  height: 1.5rem;
@@ -3262,12 +3262,12 @@
3262
3262
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3263
3263
  cursor: auto;
3264
3264
  }
3265
- `,ab=[Tt,R0,...xt()];var ca=class extends he(ve){constructor(){super(...arguments);this.color=da.COLOR}connectedCallback(){super.connectedCallback(),this.role=da.ROLE,this.size=da.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:U}render(){return S`
3265
+ `,lb=[Tt,P0,...xt()];var ca=class extends he(ve){constructor(){super(...arguments);this.color=da.COLOR}connectedCallback(){super.connectedCallback(),this.role=da.ROLE,this.size=da.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:U}render(){return S`
3266
3266
  ${this.renderIcon()}
3267
3267
  ${this.label?S`<mdc-text part="label" type="${da.TEXT_TYPE}" tagname="${da.TAG_NAME}"
3268
3268
  >${this.label}</mdc-text
3269
3269
  >`:U}
3270
- `}};ca.styles=[...Mn.styles,...ab],h([u({type:String,reflect:!0})],ca.prototype,"color",2),h([u({type:String})],ca.prototype,"label",2);var ha=ca;ha.register(Gd);var D0=ha;var nb=V.constructTagName("coachmark"),hs={COLOR:rs.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ps=class extends nr{constructor(){super(...arguments);this.trigger=hs.TRIGGER;this.showArrow=hs.ARROW;this.closeButton=hs.CLOSE_BUTTON;this.disableAriaExpanded=hs.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=hs.COLOR,this.showArrow=hs.ARROW}};h([u({type:String,reflect:!0})],ps.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],ps.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],ps.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ps.prototype,"disableAriaExpanded",2);var yp=ps;yp.register(nb);var P0=yp;var Kd=V.constructTagName("controltypeprovider"),Wd={CONTROL_TYPE:"uncontrolled"},Yd=["controlled","uncontrolled"];var F0=Kd,Ep=F0;var jd=class extends Se{constructor(){super({context:Ep});this.innerControlType=Wd.CONTROL_TYPE}static get Context(){return Ep}set controlType(t){Yd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],jd.prototype,"controlType",1);var Tp=jd;Tp.register(Kd);var xp=Tp;var jr=Pi(class extends li{constructor(n){var o;if(super(n),n.type!==br.ATTRIBUTE||n.name!=="class"||((o=n.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(o=>n[o]).join(" ")+" "}update(n,[o]){var e,i;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in o)o[a]&&!((e=this.nt)!=null&&e.has(a))&&this.st.add(a);return this.render(o)}let t=n.element.classList;for(let a of this.st)a in o||(t.remove(a),this.st.delete(a));for(let a in o){let d=!!o[a];d===this.st.has(a)||(i=this.nt)!=null&&i.has(a)||(d?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return $e}});function Er(n){let o=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),e=String(n.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function Ht(n){if(!n||!/^\d{4}-\d{2}-\d{2}$/.test(n))return null;let o=n.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),a=new Date(t,e-1,i);return a.getFullYear()!==t||a.getMonth()!==e-1||a.getDate()!==i?null:a}function ui(n,o,t=1){return new Date(n,o-1,t)}function ms(){let n=new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate())}function Tr(n,o){let t=new Date(n);return t.setDate(t.getDate()+o),t}function Xd(n,o){let t=n.getMonth()+o,e=new Date(n.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function Ap(n,o){let t=n.getFullYear()+o,e=new Date(t,n.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function Zd(n,o){return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()&&n.getDate()===o.getDate()}function Gi(n,o){return n.getTime()<o.getTime()}function xo(n,o){return n.getTime()>o.getTime()}function Qd(n,o){return n.getTime()<=o.getTime()}function lb(n){return new Date(n.getFullYear(),n.getMonth(),1)}function Sp(n){return new Date(n.getFullYear(),n.getMonth()+1,0)}function Jd(n,o){return new Date(n,o,0).getDate()}function db(n){let o=n.getDay();return o===0?7:o}function On(n,o=1){let t=n.getDay(),a=((t===0?7:t)-(o===7?7:o)+7)%7;return Tr(n,-a)}function cb(n,o="narrow"){let t=new Intl.DateTimeFormat(n,{weekday:o}),e=new Date(2026,0,5),i=[];for(let a=0;a<7;a+=1)i.push(t.format(Tr(e,a)));return i}function us(n){var i,a;try{let d=new Intl.Locale(n),f=(a=d.weekInfo)!=null?a:(i=d.getWeekInfo)==null?void 0:i.call(d);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=n.split("-")[0].toLowerCase(),e=n.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function hb(n,o,t){let e=ui(n,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function pb(n,o){let t=Ht(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function qd(n,o){let t=Ht(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function mb(n,o,t){let e=Ht(n),i=Ht(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${qd(n,t)} \u2013 ${qd(o,t)}`}}function tc(n){let t=new Intl.DateTimeFormat(n,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let a of t)a.type==="month"&&!e.includes("month")&&e.push("month"),a.type==="day"&&!e.includes("day")&&e.push("day"),a.type==="year"&&!e.includes("year")&&e.push("year"),a.type==="literal"&&a.value.trim()&&(i=a.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var ub=V.constructTagName("calendar"),ee={SINGLE:"single",WEEK:"week",RANGE:"range"},Ip={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},fb=6,Cp=7,_p={SELECTION_MODE:ee.SINGLE,LOCALE:"en-US"};var $0=z`
3270
+ `}};ca.styles=[...Mn.styles,...lb],h([u({type:String,reflect:!0})],ca.prototype,"color",2),h([u({type:String})],ca.prototype,"label",2);var ha=ca;ha.register(Gd);var F0=ha;var db=V.constructTagName("coachmark"),hs={COLOR:rs.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ps=class extends nr{constructor(){super(...arguments);this.trigger=hs.TRIGGER;this.showArrow=hs.ARROW;this.closeButton=hs.CLOSE_BUTTON;this.disableAriaExpanded=hs.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=hs.COLOR,this.showArrow=hs.ARROW}};h([u({type:String,reflect:!0})],ps.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],ps.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],ps.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ps.prototype,"disableAriaExpanded",2);var Tp=ps;Tp.register(db);var $0=Tp;var Kd=V.constructTagName("controltypeprovider"),Wd={CONTROL_TYPE:"uncontrolled"},Yd=["controlled","uncontrolled"];var V0=Kd,xp=V0;var qd=class extends Se{constructor(){super({context:xp});this.innerControlType=Wd.CONTROL_TYPE}static get Context(){return xp}set controlType(t){Yd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],qd.prototype,"controlType",1);var Ap=qd;Ap.register(Kd);var Sp=Ap;var qr=Pi(class extends li{constructor(n){var o;if(super(n),n.type!==br.ATTRIBUTE||n.name!=="class"||((o=n.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(o=>n[o]).join(" ")+" "}update(n,[o]){var e,i;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in o)o[a]&&!((e=this.nt)!=null&&e.has(a))&&this.st.add(a);return this.render(o)}let t=n.element.classList;for(let a of this.st)a in o||(t.remove(a),this.st.delete(a));for(let a in o){let d=!!o[a];d===this.st.has(a)||(i=this.nt)!=null&&i.has(a)||(d?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return $e}});function Er(n){let o=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),e=String(n.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function Ht(n){if(!n||!/^\d{4}-\d{2}-\d{2}$/.test(n))return null;let o=n.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),a=new Date(t,e-1,i);return a.getFullYear()!==t||a.getMonth()!==e-1||a.getDate()!==i?null:a}function ui(n,o,t=1){return new Date(n,o-1,t)}function ms(){let n=new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate())}function Tr(n,o){let t=new Date(n);return t.setDate(t.getDate()+o),t}function Xd(n,o){let t=n.getMonth()+o,e=new Date(n.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function Ip(n,o){let t=n.getFullYear()+o,e=new Date(t,n.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function Zd(n,o){return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()&&n.getDate()===o.getDate()}function Gi(n,o){return n.getTime()<o.getTime()}function Ao(n,o){return n.getTime()>o.getTime()}function Qd(n,o){return n.getTime()<=o.getTime()}function cb(n){return new Date(n.getFullYear(),n.getMonth(),1)}function Cp(n){return new Date(n.getFullYear(),n.getMonth()+1,0)}function Jd(n,o){return new Date(n,o,0).getDate()}function hb(n){let o=n.getDay();return o===0?7:o}function On(n,o=1){let t=n.getDay(),a=((t===0?7:t)-(o===7?7:o)+7)%7;return Tr(n,-a)}function pb(n,o="narrow"){let t=new Intl.DateTimeFormat(n,{weekday:o}),e=new Date(2026,0,5),i=[];for(let a=0;a<7;a+=1)i.push(t.format(Tr(e,a)));return i}function us(n){var i,a;try{let d=new Intl.Locale(n),f=(a=d.weekInfo)!=null?a:(i=d.getWeekInfo)==null?void 0:i.call(d);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=n.split("-")[0].toLowerCase(),e=n.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function mb(n,o,t){let e=ui(n,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function ub(n,o){let t=Ht(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function jd(n,o){let t=Ht(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function fb(n,o,t){let e=Ht(n),i=Ht(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${jd(n,t)} \u2013 ${jd(o,t)}`}}function tc(n){let t=new Intl.DateTimeFormat(n,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let a of t)a.type==="month"&&!e.includes("month")&&e.push("month"),a.type==="day"&&!e.includes("day")&&e.push("day"),a.type==="year"&&!e.includes("year")&&e.push("year"),a.type==="literal"&&a.value.trim()&&(i=a.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var vb=V.constructTagName("calendar"),ee={SINGLE:"single",WEEK:"week",RANGE:"range"},_p={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},gb=6,wp=7,kp={SELECTION_MODE:ee.SINGLE,LOCALE:"en-US"};var z0=z`
3271
3271
  :host {
3272
3272
  --mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
3273
3273
  --mdc-calendar-text-color: var(--mds-color-theme-text-primary-normal);
@@ -3461,13 +3461,13 @@
3461
3461
  .calendar-today-button mdc-button {
3462
3462
  width: auto;
3463
3463
  }
3464
- `,vb=[$r,$0];function gb(n){let o=cb(n,"narrow"),t=us(n),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function bb(n,o,t,e,i,a,d,f){let v=ui(n,o,1),A=ms(),R=us(t),H=db(v),J;R===7?J=H===7?0:H:(J=H-R,J<0&&(J+=7));let q=Tr(v,-J),Q=d?Ht(d):void 0,ot=f?Ht(f):void 0,st=i?Ht(i):void 0,ht=a?Ht(a):void 0,bt=new Set(e),yt=[];for(let It=0;It<fb;It+=1){let Rt=[];for(let Gt=0;Gt<Cp;Gt+=1){let Pt=Tr(q,It*Cp+Gt),ne=Er(Pt),Ge=Pt.getMonth()+1===o&&Pt.getFullYear()===n,jt=Zd(Pt,A),Ee=bt.has(ne),Te=!1;Q&&Gi(Pt,Q)&&(Te=!0),ot&&xo(Pt,ot)&&(Te=!0);let xe=!1,kt=!1,se=!1;st&&ht&&(kt=Zd(Pt,st),se=Zd(Pt,ht),xe=Qd(st,Pt)&&Qd(Pt,ht)),Rt.push({date:ne,day:Pt.getDate(),isCurrentMonth:Ge,isToday:jt,isSelected:Ee,isInRange:xe,isRangeStart:kt,isRangeEnd:se,isDisabled:Te})}yt.push({days:Rt})}return yt}function ec(n,o){let t=Ht(n);if(!t)return{start:"",end:""};let e=On(t,us(o)),i=Tr(e,6);return{start:Er(e),end:Er(i)}}function wp(n,o,t){return hb(n,o,t)}function yb(n,o){let t=Ht(n),e=Ht(o);if(!t||!e)return[];let i=[],a=t;for(;Qd(a,e);)i.push(Er(a)),a=Tr(a,1);return i}function Eb(n,o){return qd(n,o)}function Rn(n,o,t){return mb(n,o,t)}var ge=class extends Ot(Nt(Z)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=_p.SELECTION_MODE;this.locale=_p.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=Ht(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let d=Ht(this.value);if(d){this.displayMonth=d.getMonth()+1,this.displayYear=d.getFullYear(),this.focusedDate=this.value;return}}let t=ms(),e=this.min?Ht(this.min):void 0,i=this.max?Ht(this.max):void 0,a=t;e&&Gi(t,e)?a=e:i&&xo(t,i)&&(a=i),this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear(),this.focusedDate=Er(a)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),i=this.getRangeEnd();return bb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===ee.WEEK||this.selectionMode===ee.RANGE)&&this.value&&this.endValue?yb(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===ee.WEEK||this.selectionMode===ee.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===ee.WEEK||this.selectionMode===ee.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=ui(this.displayYear,this.displayMonth,1),e=Ht(this.min);return e?xo(t,lb(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=Sp(ui(this.displayYear,this.displayMonth,1)),e=Ht(this.max);return e?Gi(t,Sp(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Xd(ui(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=Er(ui(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case ee.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case ee.WEEK:{let{start:e,end:i}=ec(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case ee.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=Ht(this.value),i=Ht(t);e&&i&&Gi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Ht(this.focusedDate):ms();if(!e)return;let i=this.getActionForKeyEvent(t),a;switch(i){case K.LEFT:t.preventDefault(),a=Tr(e,-1);break;case K.RIGHT:t.preventDefault(),a=Tr(e,1);break;case K.UP:t.preventDefault(),a=Tr(e,-7);break;case K.DOWN:t.preventDefault(),a=Tr(e,7);break;case K.HOME:{t.preventDefault();let d=us(this.locale);a=On(e,d);break}case K.END:{t.preventDefault();let d=us(this.locale);a=Tr(On(e,d),6);break}case K.ENTER:case K.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===Lt.PAGE_UP){t.preventDefault(),a=t.shiftKey?Ap(e,-1):Xd(e,-1);break}if(t.key===Lt.PAGE_DOWN){t.preventDefault(),a=t.shiftKey?Ap(e,1):Xd(e,1);break}return}if(this.keyDownEventHandled(),a){let d=Er(a);if(this.isDateDisabled(d))return;this.focusedDate=d,(a.getMonth()+1!==this.displayMonth||a.getFullYear()!==this.displayYear)&&(this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear()),this.updateComplete.then(()=>{var v;let f=(v=this.shadowRoot)==null?void 0:v.querySelector(`[data-date="${d}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===ee.WEEK&&this.value&&this.endValue?`Calendar, ${Rn(this.value,this.endValue,this.locale)}`:`Calendar, ${wp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=wp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
3464
+ `,bb=[$r,z0];function yb(n){let o=pb(n,"narrow"),t=us(n),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Eb(n,o,t,e,i,a,d,f){let v=ui(n,o,1),x=ms(),R=us(t),H=hb(v),J;R===7?J=H===7?0:H:(J=H-R,J<0&&(J+=7));let W=Tr(v,-J),Z=d?Ht(d):void 0,ot=f?Ht(f):void 0,st=i?Ht(i):void 0,ht=a?Ht(a):void 0,bt=new Set(e),yt=[];for(let It=0;It<gb;It+=1){let Rt=[];for(let Gt=0;Gt<wp;Gt+=1){let Pt=Tr(W,It*wp+Gt),ne=Er(Pt),Ge=Pt.getMonth()+1===o&&Pt.getFullYear()===n,qt=Zd(Pt,x),Ee=bt.has(ne),Te=!1;Z&&Gi(Pt,Z)&&(Te=!0),ot&&Ao(Pt,ot)&&(Te=!0);let xe=!1,kt=!1,se=!1;st&&ht&&(kt=Zd(Pt,st),se=Zd(Pt,ht),xe=Qd(st,Pt)&&Qd(Pt,ht)),Rt.push({date:ne,day:Pt.getDate(),isCurrentMonth:Ge,isToday:qt,isSelected:Ee,isInRange:xe,isRangeStart:kt,isRangeEnd:se,isDisabled:Te})}yt.push({days:Rt})}return yt}function ec(n,o){let t=Ht(n);if(!t)return{start:"",end:""};let e=On(t,us(o)),i=Tr(e,6);return{start:Er(e),end:Er(i)}}function Np(n,o,t){return mb(n,o,t)}function Tb(n,o){let t=Ht(n),e=Ht(o);if(!t||!e)return[];let i=[],a=t;for(;Qd(a,e);)i.push(Er(a)),a=Tr(a,1);return i}function xb(n,o){return jd(n,o)}function Rn(n,o,t){return fb(n,o,t)}var ge=class extends Ot(Nt(Q)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=kp.SELECTION_MODE;this.locale=kp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=Ht(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let d=Ht(this.value);if(d){this.displayMonth=d.getMonth()+1,this.displayYear=d.getFullYear(),this.focusedDate=this.value;return}}let t=ms(),e=this.min?Ht(this.min):void 0,i=this.max?Ht(this.max):void 0,a=t;e&&Gi(t,e)?a=e:i&&Ao(t,i)&&(a=i),this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear(),this.focusedDate=Er(a)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),i=this.getRangeEnd();return Eb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===ee.WEEK||this.selectionMode===ee.RANGE)&&this.value&&this.endValue?Tb(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===ee.WEEK||this.selectionMode===ee.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===ee.WEEK||this.selectionMode===ee.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=ui(this.displayYear,this.displayMonth,1),e=Ht(this.min);return e?Ao(t,cb(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=Cp(ui(this.displayYear,this.displayMonth,1)),e=Ht(this.max);return e?Gi(t,Cp(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Xd(ui(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=Er(ui(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case ee.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case ee.WEEK:{let{start:e,end:i}=ec(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case ee.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=Ht(this.value),i=Ht(t);e&&i&&Gi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Ht(this.focusedDate):ms();if(!e)return;let i=this.getActionForKeyEvent(t),a;switch(i){case K.LEFT:t.preventDefault(),a=Tr(e,-1);break;case K.RIGHT:t.preventDefault(),a=Tr(e,1);break;case K.UP:t.preventDefault(),a=Tr(e,-7);break;case K.DOWN:t.preventDefault(),a=Tr(e,7);break;case K.HOME:{t.preventDefault();let d=us(this.locale);a=On(e,d);break}case K.END:{t.preventDefault();let d=us(this.locale);a=Tr(On(e,d),6);break}case K.ENTER:case K.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===Lt.PAGE_UP){t.preventDefault(),a=t.shiftKey?Ip(e,-1):Xd(e,-1);break}if(t.key===Lt.PAGE_DOWN){t.preventDefault(),a=t.shiftKey?Ip(e,1):Xd(e,1);break}return}if(this.keyDownEventHandled(),a){let d=Er(a);if(this.isDateDisabled(d))return;this.focusedDate=d,(a.getMonth()+1!==this.displayMonth||a.getFullYear()!==this.displayYear)&&(this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear()),this.updateComplete.then(()=>{var v;let f=(v=this.shadowRoot)==null?void 0:v.querySelector(`[data-date="${d}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===ee.WEEK&&this.value&&this.endValue?`Calendar, ${Rn(this.value,this.endValue,this.locale)}`:`Calendar, ${Np(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=Np(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
3465
3465
  <div class="calendar-header">
3466
3466
  <mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
3467
3467
  <div class="calendar-header-nav">
3468
3468
  <mdc-button
3469
3469
  variant="${Bt.TERTIARY}"
3470
- prefix-icon="${Ip.CHEVRON_LEFT}"
3470
+ prefix-icon="${_p.CHEVRON_LEFT}"
3471
3471
  aria-label="${this.localePrevMonthLabel}"
3472
3472
  size="24"
3473
3473
  ?disabled="${e}"
@@ -3475,7 +3475,7 @@
3475
3475
  ></mdc-button>
3476
3476
  <mdc-button
3477
3477
  variant="${Bt.TERTIARY}"
3478
- prefix-icon="${Ip.CHEVRON_RIGHT}"
3478
+ prefix-icon="${_p.CHEVRON_RIGHT}"
3479
3479
  aria-label="${this.localeNextMonthLabel}"
3480
3480
  size="24"
3481
3481
  ?disabled="${i}"
@@ -3484,22 +3484,22 @@
3484
3484
  </div>
3485
3485
  </div>
3486
3486
  `}renderDay(t){let e=t.date===this.focusedDate,i={"calendar-day":!0,"outside-month":!t.isCurrentMonth,today:t.isToday,selected:t.isSelected&&!t.isInRange,disabled:t.isDisabled,focused:e&&this.gridHasFocus},a={"calendar-day-wrapper":!0,"in-range":t.isInRange,"range-start":t.isRangeStart,"range-end":t.isRangeEnd},d=e?0:-1,f=t.isSelected||t.isInRange;return S`
3487
- <div class="${jr(a)}">
3487
+ <div class="${qr(a)}">
3488
3488
  <button
3489
- class="${jr(i)}"
3489
+ class="${qr(i)}"
3490
3490
  role="gridcell"
3491
3491
  tabindex="${d}"
3492
3492
  data-date="${t.date}"
3493
3493
  aria-selected="${f?"true":"false"}"
3494
3494
  aria-disabled="${t.isDisabled?"true":U}"
3495
3495
  aria-current="${t.isToday?"date":U}"
3496
- aria-label="${pb(t.date,this.locale)}"
3496
+ aria-label="${ub(t.date,this.locale)}"
3497
3497
  @click="${()=>this.handleDayClick(t)}"
3498
3498
  >
3499
3499
  ${t.day}
3500
3500
  </button>
3501
3501
  </div>
3502
- `}handleGridFocusIn(){this.gridHasFocus=!0}handleGridFocusOut(){this.gridHasFocus=!1}renderGrid(){let t=this.calendarGrid,e=gb(this.locale);return S`
3502
+ `}handleGridFocusIn(){this.gridHasFocus=!0}handleGridFocusOut(){this.gridHasFocus=!1}renderGrid(){let t=this.calendarGrid,e=yb(this.locale);return S`
3503
3503
  <div
3504
3504
  class="calendar-grid"
3505
3505
  role="grid"
@@ -3513,7 +3513,7 @@
3513
3513
  </div>
3514
3514
  ${t.map(i=>S` <div class="calendar-row" role="row">${i.days.map(a=>this.renderDay(a))}</div> `)}
3515
3515
  </div>
3516
- `}isDateDisabled(t){let e=Ht(t);if(!e)return!0;let i=this.min?Ht(this.min):void 0,a=this.max?Ht(this.max):void 0;return!!(i&&Gi(e,i)||a&&xo(e,a))}isTodayDisabled(){return this.isDateDisabled(Er(ms()))}handleTodayClick(){let t=ms(),e=Er(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return U;let t=this.isTodayDisabled();return S`
3516
+ `}isDateDisabled(t){let e=Ht(t);if(!e)return!0;let i=this.min?Ht(this.min):void 0,a=this.max?Ht(this.max):void 0;return!!(i&&Gi(e,i)||a&&Ao(e,a))}isTodayDisabled(){return this.isDateDisabled(Er(ms()))}handleTodayClick(){let t=ms(),e=Er(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return U;let t=this.isTodayDisabled();return S`
3517
3517
  <div class="calendar-today-button">
3518
3518
  <mdc-button
3519
3519
  variant="${Bt.TERTIARY}"
@@ -3524,7 +3524,7 @@
3524
3524
  >${this.localeTodayLabel}</mdc-button
3525
3525
  >
3526
3526
  </div>
3527
- `}render(){return S` ${this.renderHeader()} ${this.renderGrid()} ${this.renderTodayButton()} `}};ge.styles=[...Z.styles,...vb],h([u({type:String,reflect:!0})],ge.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"end-value"})],ge.prototype,"endValue",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],ge.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],ge.prototype,"locale",2),h([u({type:String,reflect:!0})],ge.prototype,"min",2),h([u({type:String,reflect:!0})],ge.prototype,"max",2),h([u({type:Boolean,reflect:!0,attribute:"show-today-button"})],ge.prototype,"showTodayButton",2),h([u({type:String,attribute:"locale-today-label"})],ge.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],ge.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],ge.prototype,"localeNextMonthLabel",2),h([dt()],ge.prototype,"displayMonth",2),h([dt()],ge.prototype,"displayYear",2),h([dt()],ge.prototype,"focusedDate",2),h([dt()],ge.prototype,"gridHasFocus",2),h([dt()],ge.prototype,"rangeSelectionPhase",2);var kp=ge;kp.register(ub);var V0=kp;nr.register(ng);$d.register(Vd);var z0=nr;var Tb=V.constructTagName("datepicker"),Dn={DEFAULT:"default",INPUT:"input"},Np="calendar-empty-bold",Pn="datepicker-triggerid",rc={VARIANT:Dn.INPUT,LOCALE:"en-US",DISABLE_FLIP:!1};var B0=z`
3527
+ `}render(){return S` ${this.renderHeader()} ${this.renderGrid()} ${this.renderTodayButton()} `}};ge.styles=[...Q.styles,...bb],h([u({type:String,reflect:!0})],ge.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"end-value"})],ge.prototype,"endValue",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],ge.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],ge.prototype,"locale",2),h([u({type:String,reflect:!0})],ge.prototype,"min",2),h([u({type:String,reflect:!0})],ge.prototype,"max",2),h([u({type:Boolean,reflect:!0,attribute:"show-today-button"})],ge.prototype,"showTodayButton",2),h([u({type:String,attribute:"locale-today-label"})],ge.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],ge.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],ge.prototype,"localeNextMonthLabel",2),h([dt()],ge.prototype,"displayMonth",2),h([dt()],ge.prototype,"displayYear",2),h([dt()],ge.prototype,"focusedDate",2),h([dt()],ge.prototype,"gridHasFocus",2),h([dt()],ge.prototype,"rangeSelectionPhase",2);var Lp=ge;Lp.register(vb);var B0=Lp;nr.register(dg);$d.register(Vd);var H0=nr;var Ab=V.constructTagName("datepicker"),Dn={DEFAULT:"default",INPUT:"input"},Mp="calendar-empty-bold",Pn="datepicker-triggerid",rc={VARIANT:Dn.INPUT,LOCALE:"en-US",DISABLE_FLIP:!1};var U0=z`
3528
3528
  :host {
3529
3529
  --mdc-datepicker-background-color: var(--mds-color-theme-background-primary-ghost);
3530
3530
  --mdc-datepicker-text-color: var(--mds-color-theme-text-primary-normal);
@@ -3696,7 +3696,7 @@
3696
3696
  --mdc-datepicker-text-color: var(--mds-color-theme-text-primary-disabled);
3697
3697
  color: var(--mds-color-theme-text-primary-disabled);
3698
3698
  }
3699
- `,xb=[B0,...xt(!0)];function Fn(n){return tc(n).order}function Ab(n){return tc(n).separator}function Sb(n){if(!n)return null;let o=Ht(n);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function Ib(n,o,t){let e=parseInt(n,10),i=parseInt(o,10),a=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(a)||e<1||e>12||i<1||i>31||a<1)return"";let d=Jd(a,e);if(i>d)return"";let f=ui(a,e,i);return Er(f)}function Cb(n,o=!1){let{order:t,separator:e}=tc(n),i={month:"mm",day:"dd",year:"yyyy"},a=t.map(d=>i[d]).join(` ${e} `);return o?`${a} - ${a}`:a}function _b(n,o,t){switch(n){case"month":return 12;case"day":return o&&t?Jd(t,o):o?Jd(2e3,o):31;case"year":return 9999;default:return 0}}function wb(n){switch(n){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var Ut=class extends me(oe(te)){constructor(){super(...arguments);this.variant=rc.VARIANT;this.value="";this.selectionMode=ee.SINGLE;this.locale=rc.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=rc.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(t=this.value){let e=Sb(t);e?(this.internalMonth=e.month,this.internalDay=e.day,this.internalYear=e.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return Ib(this.internalMonth,this.internalDay,this.internalYear)}getParsedMin(){var t;return this.min&&(t=Ht(this.min))!=null?t:void 0}getParsedMax(){var t;return this.max&&(t=Ht(this.max))!=null?t:void 0}clampValueToRange(t){var d,f;let e=Ht(t);if(!e)return t;let i=this.getParsedMin(),a=this.getParsedMax();return i&&Gi(e,i)?(d=this.min)!=null?d:t:a&&xo(e,a)&&(f=this.max)!=null?f:t}getFieldRange(t){let e=parseInt(this.internalMonth,10)||void 0,i=parseInt(this.internalYear,10)||void 0,a=wb(t),d=_b(t,e,i),f=a,v=d,A=this.getParsedMin(),R=this.getParsedMax();return t==="year"?(A&&(f=Math.max(f,A.getFullYear())),R&&(v=Math.min(v,R.getFullYear()))):t==="month"&&i?(A&&i===A.getFullYear()&&(f=Math.max(f,A.getMonth()+1)),R&&i===R.getFullYear()&&(v=Math.min(v,R.getMonth()+1))):t==="day"&&e&&i&&(A&&i===A.getFullYear()&&e===A.getMonth()+1&&(f=Math.max(f,A.getDate())),R&&i===R.getFullYear()&&e===R.getMonth()+1&&(v=Math.min(v,R.getDate()))),f>v?{min:a,max:d,isMinConstrained:!1,isMaxConstrained:!1}:{min:f,max:v,isMinConstrained:f!==a,isMaxConstrained:v!==d}}getNextSpinbuttonValue(t,e,i){return i?t<e.min?e.min:t>=e.max?e.isMaxConstrained?e.max:e.min:t+1:t>e.max?e.max:t<=e.min?e.isMinConstrained?e.min:e.max:t-1}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){let t=this.internalToValue();if(t){let e=this.clampValueToRange(t);if(e!==t&&this.parseValueToInternal(e),e===this.value)return;this.value=e,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){this.disabled||this.readonly||(this.displayPopover||this.flushPendingInput(),this.displayPopover=!this.displayPopover)}handleSelectTriggerClick(){this.disabled||this.readonly||(this.displayPopover=!this.displayPopover)}handleSelectKeydown(t){this.disabled||this.readonly||(t.key===Lt.ENTER||t.key===Lt.SPACE||t.key===Lt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}handleDateSelected(t){let{detail:e}=t,i=this.effectiveSelectionMode;i===ee.WEEK||i===ee.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let a=i===ee.RANGE&&this.value&&this.endValue;(i!==ee.RANGE||a)&&(this.displayPopover=!1,this.focusBackToTrigger())}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,a=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=a;break;case"day":this.internalDay=a;break;case"year":this.internalYear=a;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let i=this.getFieldRange(e),a=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case Lt.ARROW_UP:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!0);this.setFieldValue(e,d),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!1);this.setFieldValue(e,d),this.commitValue();break}case Lt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case Lt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,i.min,i.max)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let d=e==="year"?4:2;if(this.pendingDigits.length>=d){let f=parseInt(this.pendingDigits,10);f>a&&(f=a),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),v=Math.floor(a/10);if(f>v){let A=f;A>a&&(A=a),A<i&&(A=i),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let A=f;A<i&&(A=i),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Fn(this.locale),i=e.indexOf(t);if(i<e.length-1){let a=e[i+1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Fn(this.locale),i=e.indexOf(t);if(i>0){let a=e[i-1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Fn(this.locale),a=this.getSpinbuttonInput(i[0]);a==null||a.focus(),a==null||a.select()}}handleBaseKeydown(t){t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===Dn.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Pn);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===ee.WEEK?ee.WEEK:this.variant===Dn.DEFAULT?ee.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===ee.WEEK){let{start:t,end:e}=ec(this.value,this.locale);return Rn(t,e,this.locale)}return this.effectiveSelectionMode===ee.RANGE&&this.endValue?Rn(this.value,this.endValue,this.locale):Eb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=this.getFieldRange(t),a={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},d={month:"mm",day:"dd",year:"yyyy"};return S`
3699
+ `,Sb=[U0,...xt(!0)];function Fn(n){return tc(n).order}function Ib(n){return tc(n).separator}function Cb(n){if(!n)return null;let o=Ht(n);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function _b(n,o,t){let e=parseInt(n,10),i=parseInt(o,10),a=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(a)||e<1||e>12||i<1||i>31||a<1)return"";let d=Jd(a,e);if(i>d)return"";let f=ui(a,e,i);return Er(f)}function wb(n,o=!1){let{order:t,separator:e}=tc(n),i={month:"mm",day:"dd",year:"yyyy"},a=t.map(d=>i[d]).join(` ${e} `);return o?`${a} - ${a}`:a}function kb(n,o,t){switch(n){case"month":return 12;case"day":return o&&t?Jd(t,o):o?Jd(2e3,o):31;case"year":return 9999;default:return 0}}function Nb(n){switch(n){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var Ut=class extends me(oe(te)){constructor(){super(...arguments);this.variant=rc.VARIANT;this.value="";this.selectionMode=ee.SINGLE;this.locale=rc.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=rc.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(t=this.value){let e=Cb(t);e?(this.internalMonth=e.month,this.internalDay=e.day,this.internalYear=e.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return _b(this.internalMonth,this.internalDay,this.internalYear)}getParsedMin(){var t;return this.min&&(t=Ht(this.min))!=null?t:void 0}getParsedMax(){var t;return this.max&&(t=Ht(this.max))!=null?t:void 0}clampValueToRange(t){var d,f;let e=Ht(t);if(!e)return t;let i=this.getParsedMin(),a=this.getParsedMax();return i&&Gi(e,i)?(d=this.min)!=null?d:t:a&&Ao(e,a)&&(f=this.max)!=null?f:t}getFieldRange(t){let e=parseInt(this.internalMonth,10)||void 0,i=parseInt(this.internalYear,10)||void 0,a=Nb(t),d=kb(t,e,i),f=a,v=d,x=this.getParsedMin(),R=this.getParsedMax();return t==="year"?(x&&(f=Math.max(f,x.getFullYear())),R&&(v=Math.min(v,R.getFullYear()))):t==="month"&&i?(x&&i===x.getFullYear()&&(f=Math.max(f,x.getMonth()+1)),R&&i===R.getFullYear()&&(v=Math.min(v,R.getMonth()+1))):t==="day"&&e&&i&&(x&&i===x.getFullYear()&&e===x.getMonth()+1&&(f=Math.max(f,x.getDate())),R&&i===R.getFullYear()&&e===R.getMonth()+1&&(v=Math.min(v,R.getDate()))),f>v?{min:a,max:d,isMinConstrained:!1,isMaxConstrained:!1}:{min:f,max:v,isMinConstrained:f!==a,isMaxConstrained:v!==d}}getNextSpinbuttonValue(t,e,i){return i?t<e.min?e.min:t>=e.max?e.isMaxConstrained?e.max:e.min:t+1:t>e.max?e.max:t<=e.min?e.isMinConstrained?e.min:e.max:t-1}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){let t=this.internalToValue();if(t){let e=this.clampValueToRange(t);if(e!==t&&this.parseValueToInternal(e),e===this.value)return;this.value=e,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){this.disabled||this.readonly||(this.displayPopover||this.flushPendingInput(),this.displayPopover=!this.displayPopover)}handleSelectTriggerClick(){this.disabled||this.readonly||(this.displayPopover=!this.displayPopover)}handleSelectKeydown(t){this.disabled||this.readonly||(t.key===Lt.ENTER||t.key===Lt.SPACE||t.key===Lt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}handleDateSelected(t){let{detail:e}=t,i=this.effectiveSelectionMode;i===ee.WEEK||i===ee.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let a=i===ee.RANGE&&this.value&&this.endValue;(i!==ee.RANGE||a)&&(this.displayPopover=!1,this.focusBackToTrigger())}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,a=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=a;break;case"day":this.internalDay=a;break;case"year":this.internalYear=a;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let i=this.getFieldRange(e),a=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case Lt.ARROW_UP:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!0);this.setFieldValue(e,d),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!1);this.setFieldValue(e,d),this.commitValue();break}case Lt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case Lt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,i.min,i.max)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let d=e==="year"?4:2;if(this.pendingDigits.length>=d){let f=parseInt(this.pendingDigits,10);f>a&&(f=a),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),v=Math.floor(a/10);if(f>v){let x=f;x>a&&(x=a),x<i&&(x=i),this.setFieldValue(e,x),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let x=f;x<i&&(x=i),this.setFieldValue(e,x),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Fn(this.locale),i=e.indexOf(t);if(i<e.length-1){let a=e[i+1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Fn(this.locale),i=e.indexOf(t);if(i>0){let a=e[i-1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Fn(this.locale),a=this.getSpinbuttonInput(i[0]);a==null||a.focus(),a==null||a.select()}}handleBaseKeydown(t){t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===Dn.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Pn);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===ee.WEEK?ee.WEEK:this.variant===Dn.DEFAULT?ee.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===ee.WEEK){let{start:t,end:e}=ec(this.value,this.locale);return Rn(t,e,this.locale)}return this.effectiveSelectionMode===ee.RANGE&&this.endValue?Rn(this.value,this.endValue,this.locale):xb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=this.getFieldRange(t),a={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},d={month:"mm",day:"dd",year:"yyyy"};return S`
3700
3700
  <input
3701
3701
  id="${t}-spinbutton"
3702
3702
  part="spinbutton spinbutton-${t}"
@@ -3715,7 +3715,7 @@
3715
3715
  @keydown="${f=>this.handleSpinbuttonKeydown(f,t)}"
3716
3716
  @focus="${this.handleSpinbuttonFocus}"
3717
3717
  />
3718
- `}renderInputVariant(){let t=Fn(this.locale),e=Ab(this.locale);return S`
3718
+ `}renderInputVariant(){let t=Fn(this.locale),e=Ib(this.locale);return S`
3719
3719
  <div
3720
3720
  id="${Pn}"
3721
3721
  part="base-container"
@@ -3733,7 +3733,7 @@
3733
3733
  part="icon-container"
3734
3734
  class="own-focus-ring"
3735
3735
  variant="tertiary"
3736
- prefix-icon="${Np}"
3736
+ prefix-icon="${Mp}"
3737
3737
  aria-label="${this.localeCalendarLabel}"
3738
3738
  aria-expanded="${this.displayPopover?"true":"false"}"
3739
3739
  aria-haspopup="dialog"
@@ -3742,7 +3742,7 @@
3742
3742
  @click="${this.handleCalendarButtonClick}"
3743
3743
  ></mdc-button>
3744
3744
  </div>
3745
- `}renderDefaultVariant(){let t=this.getDisplayText(),e=this.effectiveSelectionMode,i=Cb(this.locale,e===ee.RANGE||e===ee.WEEK);return S`
3745
+ `}renderDefaultVariant(){let t=this.getDisplayText(),e=this.effectiveSelectionMode,i=wb(this.locale,e===ee.RANGE||e===ee.WEEK);return S`
3746
3746
  <div
3747
3747
  id="${Pn}"
3748
3748
  part="base-container"
@@ -3756,7 +3756,7 @@
3756
3756
  @keydown="${this.handleSelectKeydown}"
3757
3757
  >
3758
3758
  ${t?S`<span part="select-text">${t}</span>`:S`<span part="select-text select-placeholder">${i}</span>`}
3759
- <mdc-icon part="icon-container" name="${Np}" size="1" aria-hidden="true"></mdc-icon>
3759
+ <mdc-icon part="icon-container" name="${Mp}" size="1" aria-hidden="true"></mdc-icon>
3760
3760
  </div>
3761
3761
  `}renderPopover(){let t=this.effectiveSelectionMode;return S`
3762
3762
  <mdc-popover
@@ -3811,7 +3811,7 @@
3811
3811
  ${this.renderPopover()}
3812
3812
  </div>
3813
3813
  ${this.helpText?this.renderHelperText():U}
3814
- `}};Ut.styles=[...te.styles,...xb],h([u({type:String,reflect:!0})],Ut.prototype,"variant",2),h([u({type:String,reflect:!0})],Ut.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Ut.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Ut.prototype,"locale",2),h([u({type:String,reflect:!0})],Ut.prototype,"min",2),h([u({type:String,reflect:!0})],Ut.prototype,"max",2),h([u({type:String,reflect:!0})],Ut.prototype,"placement",2),h([u({type:String,reflect:!0})],Ut.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Ut.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Ut.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ut.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Ut.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Ut.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Ut.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Ut.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Ut.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Ut.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Ut.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Ut.prototype,"localeNextMonthLabel",2),h([zt("#month-spinbutton")],Ut.prototype,"monthInput",2),h([zt("#day-spinbutton")],Ut.prototype,"dayInput",2),h([zt("#year-spinbutton")],Ut.prototype,"yearInput",2),h([dt()],Ut.prototype,"displayPopover",2),h([dt()],Ut.prototype,"internalMonth",2),h([dt()],Ut.prototype,"internalDay",2),h([dt()],Ut.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Ut.prototype,"endValue",2);var Lp=Ut;Lp.register(Tb);var H0=Lp;Zs.register(bv);var U0=Zs;var $n=V.constructTagName("divider"),fs={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Vn={SOLID:"solid",GRADIENT:"gradient"},Lr={POSITIVE:"positive",NEGATIVE:"negative"},zn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},vs={ORIENTATION:fs.HORIZONTAL,VARIANT:Vn.SOLID,ARROW_DIRECTION:Lr.NEGATIVE,BUTTON_DIRECTION:Lr.NEGATIVE};var G0=[Tt,z`
3814
+ `}};Ut.styles=[...te.styles,...Sb],h([u({type:String,reflect:!0})],Ut.prototype,"variant",2),h([u({type:String,reflect:!0})],Ut.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Ut.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Ut.prototype,"locale",2),h([u({type:String,reflect:!0})],Ut.prototype,"min",2),h([u({type:String,reflect:!0})],Ut.prototype,"max",2),h([u({type:String,reflect:!0})],Ut.prototype,"placement",2),h([u({type:String,reflect:!0})],Ut.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Ut.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Ut.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ut.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Ut.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Ut.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Ut.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Ut.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Ut.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Ut.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Ut.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Ut.prototype,"localeNextMonthLabel",2),h([zt("#month-spinbutton")],Ut.prototype,"monthInput",2),h([zt("#day-spinbutton")],Ut.prototype,"dayInput",2),h([zt("#year-spinbutton")],Ut.prototype,"yearInput",2),h([dt()],Ut.prototype,"displayPopover",2),h([dt()],Ut.prototype,"internalMonth",2),h([dt()],Ut.prototype,"internalDay",2),h([dt()],Ut.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Ut.prototype,"endValue",2);var Op=Ut;Op.register(Ab);var G0=Op;Zs.register(Ev);var K0=Zs;var $n=V.constructTagName("divider"),fs={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Vn={SOLID:"solid",GRADIENT:"gradient"},Lr={POSITIVE:"positive",NEGATIVE:"negative"},zn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},vs={ORIENTATION:fs.HORIZONTAL,VARIANT:Vn.SOLID,ARROW_DIRECTION:Lr.NEGATIVE,BUTTON_DIRECTION:Lr.NEGATIVE};var W0=[Tt,z`
3815
3815
  :host {
3816
3816
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
3817
3817
  --mdc-divider-width: 0.0625rem;
@@ -4012,11 +4012,11 @@
4012
4012
  :host([data-hidden]) {
4013
4013
  display: none;
4014
4014
  }
4015
- `],kb=G0;var Ao=class extends Z{constructor(){super(...arguments);this.orientation=vs.ORIENTATION;this.variant=vs.VARIANT;this.arrowDirection=vs.ARROW_DIRECTION;this.buttonPosition=vs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Vn).includes(t)?t:vs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(fs).includes(t)?t:vs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===fs.HORIZONTAL?Lr.NEGATIVE:Lr.POSITIVE;Object.values(Lr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Lr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===fs.HORIZONTAL,e=this.arrowDirection===Lr.POSITIVE;return t?e?zn.UP:zn.DOWN:e?zn.RIGHT:zn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var d;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===pn.toUpperCase()),a=e.some(f=>f.tagName===Mi.toUpperCase());i&&!a?this.setAttribute("data-type","mdc-text-divider"):!i&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
4015
+ `],Lb=W0;var So=class extends Q{constructor(){super(...arguments);this.orientation=vs.ORIENTATION;this.variant=vs.VARIANT;this.arrowDirection=vs.ARROW_DIRECTION;this.buttonPosition=vs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Vn).includes(t)?t:vs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(fs).includes(t)?t:vs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===fs.HORIZONTAL?Lr.NEGATIVE:Lr.POSITIVE;Object.values(Lr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Lr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===fs.HORIZONTAL,e=this.arrowDirection===Lr.POSITIVE;return t?e?zn.UP:zn.DOWN:e?zn.RIGHT:zn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var d;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===pn.toUpperCase()),a=e.some(f=>f.tagName===Mi.toUpperCase());i&&!a?this.setAttribute("data-type","mdc-text-divider"):!i&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
4016
4016
  <div></div>
4017
4017
  <slot @slotchange=${this.inferDividerType}></slot>
4018
4018
  <div></div>
4019
- `}};Ao.styles=[...Z.styles,...kb],h([u({type:String,reflect:!0})],Ao.prototype,"orientation",2),h([u({type:String,reflect:!0})],Ao.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],Ao.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],Ao.prototype,"buttonPosition",2);var Mp=Ao;Mp.register($n);var K0=Mp;var W0=z`
4019
+ `}};So.styles=[...Q.styles,...Lb],h([u({type:String,reflect:!0})],So.prototype,"orientation",2),h([u({type:String,reflect:!0})],So.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],So.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],So.prototype,"buttonPosition",2);var Rp=So;Rp.register($n);var Y0=Rp;var q0=z`
4020
4020
  :host([selected]) {
4021
4021
  border: 2px solid;
4022
4022
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -4038,7 +4038,7 @@
4038
4038
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
4039
4039
  cursor: auto;
4040
4040
  }
4041
- `,Nb=[W0];var Lb=V.constructTagName("filterchip"),Op={ICON_NAME:"check-bold",COLOR:"default"};var Bn=class extends ha{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Op.COLOR}setSelected(t){t?(this.iconName=Op.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};Bn.styles=[...ha.styles,...Nb],h([u({type:Boolean,reflect:!0})],Bn.prototype,"selected",2);var Rp=Bn;Rp.register(Lb);var Y0=Rp;var j0=z`
4041
+ `,Mb=[q0];var Ob=V.constructTagName("filterchip"),Dp={ICON_NAME:"check-bold",COLOR:"default"};var Bn=class extends ha{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Dp.COLOR}setSelected(t){t?(this.iconName=Dp.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};Bn.styles=[...ha.styles,...Mb],h([u({type:Boolean,reflect:!0})],Bn.prototype,"selected",2);var Pp=Bn;Pp.register(Ob);var j0=Pp;var X0=z`
4042
4042
  :host {
4043
4043
  display: flex;
4044
4044
  flex-direction: column;
@@ -4050,10 +4050,10 @@
4050
4050
  flex-direction: column;
4051
4051
  gap: 0.25rem;
4052
4052
  }
4053
- `,Mb=[j0];var ic=class extends te{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?et.RADIOGROUP:et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return S`
4053
+ `,Rb=[X0];var ic=class extends te{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?et.RADIOGROUP:et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return S`
4054
4054
  ${this.label||this.helpText?S`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`:U}
4055
4055
  <slot></slot>
4056
- `}};ic.styles=[...te.styles,...Mb];var pa=ic;var Ob=V.constructTagName("formfieldgroup");pa.register(Ob);var oc=pa;cn.register(Kl);var q0=cn;yn.register(pd);var X0=yn;var gs=Pi(class extends li{constructor(n){if(super(n),n.type!==br.PROPERTY&&n.type!==br.ATTRIBUTE&&n.type!==br.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ql(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===$e||o===U)return o;let t=n.element,e=n.name;if(n.type===br.PROPERTY){if(o===t[e])return $e}else if(n.type===br.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(n.type===br.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return Jl(n),o}});var Z0=z`
4056
+ `}};ic.styles=[...te.styles,...Rb];var pa=ic;var Db=V.constructTagName("formfieldgroup");pa.register(Db);var oc=pa;cn.register(Kl);var Z0=cn;yn.register(pd);var Q0=yn;var gs=Pi(class extends li{constructor(n){if(super(n),n.type!==br.PROPERTY&&n.type!==br.ATTRIBUTE&&n.type!==br.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ql(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===$e||o===U)return o;let t=n.element,e=n.name;if(n.type===br.PROPERTY){if(o===t[e])return $e}else if(n.type===br.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(n.type===br.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return Jl(n),o}});var J0=z`
4057
4057
  :host {
4058
4058
  --mdc-statusmessage-color: var(--mds-color-theme-text-secondary-normal);
4059
4059
  --mdc-statusmessage-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
@@ -4114,18 +4114,18 @@
4114
4114
  font-weight: inherit;
4115
4115
  line-height: inherit;
4116
4116
  }
4117
- `,Rb=[Z0];var ma=class extends Z{constructor(){super(...arguments);this.severity=Sn.SEVERITY}renderIcon(){let t=Sd[this.severity||Sn.SEVERITY];return t?S`<mdc-icon part="icon" name="${t}"></mdc-icon>`:U}renderMessage(){return this.message?S`
4117
+ `,Pb=[J0];var ma=class extends Q{constructor(){super(...arguments);this.severity=Sn.SEVERITY}renderIcon(){let t=Sd[this.severity||Sn.SEVERITY];return t?S`<mdc-icon part="icon" name="${t}"></mdc-icon>`:U}renderMessage(){return this.message?S`
4118
4118
  <mdc-text part="text" tagname="${Sn.TEXT_TAGNAME}" type="${Sn.TEXT_TYPE}">${this.message}</mdc-text>
4119
4119
  `:U}render(){return S`
4120
4120
  <div part="container">
4121
4121
  <slot name="icon" part="icon">${this.renderIcon()}</slot>
4122
4122
  <slot part="text">${this.renderMessage()}</slot>
4123
4123
  </div>
4124
- `}};ma.styles=[...Z.styles,...Rb],h([u({type:String,reflect:!0})],ma.prototype,"severity",2),h([u({type:String,reflect:!0})],ma.prototype,"message",2);var Dp=ma;Dp.register(lg);var Q0=Dp;te.register(dg);var dr=te;var sc=n=>{class o extends n{constructor(){super(...arguments);this.characterLimitExceedingFired=!1}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))}announceCharacterLimitWarning(){this.characterLimitAriaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.characterLimitAriaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.characterLimitAriaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}renderCharacterCounter(){return this.maxCharacterLimit?S`
4124
+ `}};ma.styles=[...Q.styles,...Pb],h([u({type:String,reflect:!0})],ma.prototype,"severity",2),h([u({type:String,reflect:!0})],ma.prototype,"message",2);var Fp=ma;Fp.register(cg);var tS=Fp;te.register(hg);var dr=te;var sc=n=>{class o extends n{constructor(){super(...arguments);this.characterLimitExceedingFired=!1}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))}announceCharacterLimitWarning(){this.characterLimitAriaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.characterLimitAriaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.characterLimitAriaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}renderCharacterCounter(){return this.maxCharacterLimit?S`
4125
4125
  <mdc-text part="character-counter" tagname="span" type="body-midsize-regular">
4126
4126
  ${this.value.length}/${this.maxCharacterLimit}
4127
4127
  </mdc-text>
4128
- `:U}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([dt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var Db=V.constructTagName("input"),ac={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ua={OFF:"off",ON:"on"},So={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Pb={MAX_LENGTH:10,VALIDATION:Jt.ERROR},fi={HEADING_ID:Kt.HEADING_ID,VALIDATION:Jt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Bt.TERTIARY,CLEAR_BUTTON_SIZE:Cr[20],PREFIX_TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:ua.OFF,INPUT_TYPE:So.TEXT};var J0=[z`
4128
+ `:U}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([dt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var Fb=V.constructTagName("input"),ac={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ua={OFF:"off",ON:"on"},Io={PASSWORD:"password",TEXT:"text",SEARCH:"search"},$b={MAX_LENGTH:10,VALIDATION:Jt.ERROR},fi={HEADING_ID:Kt.HEADING_ID,VALIDATION:Jt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Bt.TERTIARY,CLEAR_BUTTON_SIZE:Cr[20],PREFIX_TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:ua.OFF,INPUT_TYPE:Io.TEXT};var eS=[z`
4129
4129
  :host {
4130
4130
  --mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
4131
4131
  --mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
@@ -4266,7 +4266,7 @@
4266
4266
  :host([disabled])::part(character-counter) {
4267
4267
  color: var(--mds-color-theme-text-primary-disabled);
4268
4268
  }
4269
- `,...xt(!0)],Fb=J0;var be=class extends sc(Nt(Ve(me(oe(dr))))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=ac.OFF;this.autocomplete=ua.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Jt.ERROR&&this.helpText&&this.inputElement.setCustomValidity(this.helpText),this.setValidity()}updated(t){super.updated(t),t.has("value")&&this.handleCharacterOverflowStateChange(),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value),this.announceCharacterLimitWarning()}onInput(t){if(this.updateValue(),this.setInputValidity(),this.checkValidity(),!t.composed){let e=t.constructor;this.dispatchEvent(new e(t.type,t))}}onChange(t){this.updateValue(),this.setInputValidity();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleKeyDown(t){var e;this.getActionForKeyEvent(t)===K.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?S`
4269
+ `,...xt(!0)],Vb=eS;var be=class extends sc(Nt(Ve(me(oe(dr))))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=ac.OFF;this.autocomplete=ua.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Jt.ERROR&&this.helpText&&this.inputElement.setCustomValidity(this.helpText),this.setValidity()}updated(t){super.updated(t),t.has("value")&&this.handleCharacterOverflowStateChange(),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value),this.announceCharacterLimitWarning()}onInput(t){if(this.updateValue(),this.setInputValidity(),this.checkValidity(),!t.composed){let e=t.constructor;this.dispatchEvent(new e(t.type,t))}}onChange(t){this.updateValue(),this.setInputValidity();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleKeyDown(t){var e;this.getActionForKeyEvent(t)===K.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?S`
4270
4270
  <mdc-icon
4271
4271
  part="leading-icon"
4272
4272
  name=${this.leadingIcon}
@@ -4281,7 +4281,7 @@
4281
4281
  type="${fi.PREFIX_TEXT_TYPE}"
4282
4282
  aria-hidden="true"
4283
4283
  >
4284
- ${this.prefixText.slice(0,Pb.MAX_LENGTH)}
4284
+ ${this.prefixText.slice(0,$b.MAX_LENGTH)}
4285
4285
  </mdc-text>
4286
4286
  `:U}clearInputText(){var t;this.value="",(t=this.inputElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0}))}renderTrailingButton(t=!1){let e=t||this.value&&this.trailingButton;return e?S`
4287
4287
  <mdc-button
@@ -4336,7 +4336,7 @@
4336
4336
  delay="500"
4337
4337
  ></mdc-screenreaderannouncer>
4338
4338
  ${this.renderInputFooter()}
4339
- `}};be.styles=[...dr.styles,...Fb],be.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],be.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],be.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],be.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],be.prototype,"trailingButton",2),h([u({type:Number})],be.prototype,"maxlength",2),h([u({type:Number})],be.prototype,"minlength",2),h([u({type:String})],be.prototype,"autocapitalize",2),h([u({type:String})],be.prototype,"autocomplete",2),h([u({type:String})],be.prototype,"dirname",2),h([u({type:String})],be.prototype,"pattern",2),h([u({type:String})],be.prototype,"list",2),h([u({type:Number})],be.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],be.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],be.prototype,"dataAriaDescribedby",2);var qr=be;qr.register(Db);var tS=qr;var eS=z`
4339
+ `}};be.styles=[...dr.styles,...Vb],be.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],be.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],be.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],be.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],be.prototype,"trailingButton",2),h([u({type:Number})],be.prototype,"maxlength",2),h([u({type:Number})],be.prototype,"minlength",2),h([u({type:String})],be.prototype,"autocapitalize",2),h([u({type:String})],be.prototype,"autocomplete",2),h([u({type:String})],be.prototype,"dirname",2),h([u({type:String})],be.prototype,"pattern",2),h([u({type:String})],be.prototype,"list",2),h([u({type:Number})],be.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],be.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],be.prototype,"dataAriaDescribedby",2);var jr=be;jr.register(Fb);var rS=jr;var iS=z`
4340
4340
  :host {
4341
4341
  height: 1.5rem;
4342
4342
  gap: 0.25rem;
@@ -4372,7 +4372,7 @@
4372
4372
  width: 1.25rem;
4373
4373
  height: 1.25rem;
4374
4374
  }
4375
- `,$b=[Tt,eS];var fa=V.constructTagName("inputchip"),nc={TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var bs=class extends he(Xt(Z)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
4375
+ `,zb=[Tt,iS];var fa=V.constructTagName("inputchip"),nc={TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var bs=class extends he(Xt(Q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
4376
4376
  <slot name="prefix">
4377
4377
  ${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:U}
4378
4378
  </slot>
@@ -4390,7 +4390,7 @@
4390
4390
  size="20"
4391
4391
  @click="${this.handleClose}"
4392
4392
  ></mdc-button>
4393
- `}};bs.styles=[...Z.styles,...$b],h([u({type:String})],bs.prototype,"label",2),h([u({type:Boolean})],bs.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],bs.prototype,"clearAriaLabel",2);var Pp=bs;Pp.register(fa);var rS=Pp;var iS=z`
4393
+ `}};bs.styles=[...Q.styles,...zb],h([u({type:String})],bs.prototype,"label",2),h([u({type:Boolean})],bs.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],bs.prototype,"clearAriaLabel",2);var $p=bs;$p.register(fa);var oS=$p;var sS=z`
4394
4394
  :host([icon-name])::part(text) {
4395
4395
  margin-inline-end: 0.25rem;
4396
4396
  }
@@ -4461,7 +4461,7 @@
4461
4461
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
4462
4462
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
4463
4463
  }
4464
- `,Vb=[iS];var Hn=class extends he(hi){constructor(){super(...arguments);this.size=mv.LINK_SIZE}getIconSize(){switch(this.size){case ad.SMALL:return nd.SMALL;case ad.MIDSIZE:return nd.MIDSIZE;default:return nd.LARGE}}renderAnchorContent(){return S`<span part="text"><slot></slot></span>${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:U}`}};Hn.styles=[...hi.styles,...Vb],h([u({type:String,reflect:!0})],Hn.prototype,"size",2);var Fp=Hn;Fp.register(sd);var oS=Fp;var zb=V.constructTagName("linkbutton"),va={12:12,14:14,16:16},ga={SIZE:va[16],ROLE:et.BUTTON,INLINE:ea.INLINE,INVERTED:ea.INVERTED};var Bb=n=>{switch(n){case va[12]:return .75;case va[14]:return .875;default:return 1}};var sS=z`
4464
+ `,Bb=[sS];var Hn=class extends he(hi){constructor(){super(...arguments);this.size=fv.LINK_SIZE}getIconSize(){switch(this.size){case ad.SMALL:return nd.SMALL;case ad.MIDSIZE:return nd.MIDSIZE;default:return nd.LARGE}}renderAnchorContent(){return S`<span part="text"><slot></slot></span>${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:U}`}};Hn.styles=[...hi.styles,...Bb],h([u({type:String,reflect:!0})],Hn.prototype,"size",2);var Vp=Hn;Vp.register(sd);var aS=Vp;var Hb=V.constructTagName("linkbutton"),va={12:12,14:14,16:16},ga={SIZE:va[16],ROLE:et.BUTTON,INLINE:ea.INLINE,INVERTED:ea.INVERTED};var Ub=n=>{switch(n){case va[12]:return .75;case va[14]:return .875;default:return 1}};var nS=z`
4465
4465
  :host {
4466
4466
  gap: 0.25rem;
4467
4467
  cursor: pointer;
@@ -4560,10 +4560,10 @@
4560
4560
  color: var(--mdc-link-color-disabled);
4561
4561
  pointer-events: none;
4562
4562
  }
4563
- `,Hb=[sS,...xt()];var ys=class extends he(ve){constructor(){super(...arguments);this.size=ga.SIZE;this.inline=ga.INLINE;this.inverted=ga.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=ga.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(va).includes(t)?`${t}`:ga.SIZE.toString())}render(){return S`
4563
+ `,Gb=[nS,...xt()];var ys=class extends he(ve){constructor(){super(...arguments);this.size=ga.SIZE;this.inline=ga.INLINE;this.inverted=ga.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=ga.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(va).includes(t)?`${t}`:ga.SIZE.toString())}render(){return S`
4564
4564
  <slot></slot>
4565
- ${this.iconName?S` <mdc-icon name=${this.iconName} size=${Bb(this.size)} length-unit="rem"></mdc-icon> `:U}
4566
- `}};ys.styles=[...hi.styles,...Hb],h([u({type:Number,reflect:!0})],ys.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ys.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],ys.prototype,"inverted",2);var $p=ys;$p.register(zb);var aS=$p;hi.register(Zv);var nS=hi;var vi=n=>{class o extends Ot(Nt(n)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:a}=i,d=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&a instanceof Z&&d&&a.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let a=i.target,d=this.getCurrentIndex(a);if(d!==-1){let f=document.activeElement===a,v=document.activeElement&&document.activeElement.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,A=!(this.navItems.at(d)!==a&&(f||v));this.resetTabIndexAndSetFocus(d,void 0,A,!1)}};this.handleNavBeforeFocus=i=>{let a=Eh(i.relatedTarget);if(this!==a&&!this.contains(document.activeElement)&&this.contains(a)){i.preventDefault();let d=this.navItems.find(v=>v.contains(a)),f=this.getCurrentIndex(d);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Zt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let a=this.getActionForKeyEvent(i,!0),d=this.orientation==="vertical",f=new Set(d?[K.DOWN,K.UP,K.HOME,K.END]:[K.LEFT,K.RIGHT,K.HOME,K.END]);if(!a||!f.has(a))return;let v=i.target,A=this.getCurrentIndex(v);if(A===-1)return;this.resetTabIndexes(A);let R=!1;switch(a){case K.HOME:{R=this.resetTabIndexAndSetFocus(0,A);break}case K.END:{R=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case K.DOWN:case K.RIGHT:{let H=this.shouldLoop()?0:A,J=A+1===this.navItems.length?H:A+1;R=this.resetTabIndexAndSetFocus(J,A);break}case K.UP:case K.LEFT:{let H=this.shouldLoop()?this.navItems.length-1:A,J=A-1===-1?H:A-1;R=this.resetTabIndexAndSetFocus(J,A);break}default:break}R&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(a=>a===i||!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,a=!0){var d;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,v=(d=this.navItems.at(f))!=null?d:this.navItems.find(Boolean);v&&(v.setAttribute("tabindex","0"),a&&v.focus())}}resetTabIndexAndSetFocus(i,a,d=!0,f=!0){var R;let{navItems:v}=this;if(v.length===0)return!1;let A=(R=v.at(i))!=null?R:v.find(Boolean);return i===0&&a===0&&v.length===1||i===a&&A&&A.getAttribute("tabindex")==="0"?!1:(a===void 0?v.forEach(H=>H.setAttribute("tabindex","-1")):v.at(a)&&v.at(a).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),d&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===re.SPATIAL?!1:this.loop!=="false"}}return o};var lc=V.constructTagName("listitem"),Un={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Ub={VARIANT:Un.FULL_WIDTH};var lS=n=>!!n,Mr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||lS,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Zt.CREATED,this.itemCreationHandler),this.host.addEventListener(Zt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Zt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Zt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!Of(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);Rf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let a=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",a===-1?this.cache.length:a,this.cache.slice())),a===-1?this.cache.push(e):a>=0&&this.cache.splice(a,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var gi=n=>{class o extends n{constructor(...i){super(...i);this.handleItemCreation=i=>{let a=i.target;a&&a.addEventListener(Zt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Zt.DESTROYED&&(i.target.removeEventListener(Zt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Zt.CREATED,this.handleItemCreation)}}return o};var dS=z`
4565
+ ${this.iconName?S` <mdc-icon name=${this.iconName} size=${Ub(this.size)} length-unit="rem"></mdc-icon> `:U}
4566
+ `}};ys.styles=[...hi.styles,...Gb],h([u({type:Number,reflect:!0})],ys.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ys.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],ys.prototype,"inverted",2);var zp=ys;zp.register(Hb);var lS=zp;hi.register(Jv);var dS=hi;var vi=n=>{class o extends Ot(Nt(n)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:a}=i,d=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&a instanceof Q&&d&&a.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let a=i.target,d=this.getCurrentIndex(a);if(d!==-1){let f=document.activeElement===a,v=document.activeElement&&document.activeElement.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,x=!(this.navItems.at(d)!==a&&(f||v));this.resetTabIndexAndSetFocus(d,void 0,x,!1)}};this.handleNavBeforeFocus=i=>{let a=Eh(i.relatedTarget);if(this!==a&&!this.contains(document.activeElement)&&this.contains(a)){i.preventDefault();let d=this.navItems.find(v=>v.contains(a)),f=this.getCurrentIndex(d);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Zt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let a=this.getActionForKeyEvent(i,!0),d=this.orientation==="vertical",f=new Set(d?[K.DOWN,K.UP,K.HOME,K.END]:[K.LEFT,K.RIGHT,K.HOME,K.END]);if(!a||!f.has(a))return;let v=i.target,x=this.getCurrentIndex(v);if(x===-1)return;this.resetTabIndexes(x);let R=!1;switch(a){case K.HOME:{R=this.resetTabIndexAndSetFocus(0,x);break}case K.END:{R=this.resetTabIndexAndSetFocus(this.navItems.length-1,x);break}case K.DOWN:case K.RIGHT:{let H=this.shouldLoop()?0:x,J=x+1===this.navItems.length?H:x+1;R=this.resetTabIndexAndSetFocus(J,x);break}case K.UP:case K.LEFT:{let H=this.shouldLoop()?this.navItems.length-1:x,J=x-1===-1?H:x-1;R=this.resetTabIndexAndSetFocus(J,x);break}default:break}R&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(a=>a===i||!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,a=!0){var d;if(this.navItems.length>0){this.navItems.forEach(x=>x.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,v=(d=this.navItems.at(f))!=null?d:this.navItems.find(Boolean);v&&(v.setAttribute("tabindex","0"),a&&v.focus())}}resetTabIndexAndSetFocus(i,a,d=!0,f=!0){var R;let{navItems:v}=this;if(v.length===0)return!1;let x=(R=v.at(i))!=null?R:v.find(Boolean);return i===0&&a===0&&v.length===1||i===a&&x&&x.getAttribute("tabindex")==="0"?!1:(a===void 0?v.forEach(H=>H.setAttribute("tabindex","-1")):v.at(a)&&v.at(a).setAttribute("tabindex","-1"),x.setAttribute("tabindex","0"),d&&(x.focus({preventScroll:!0}),f&&x.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===re.SPATIAL?!1:this.loop!=="false"}}return o};var lc=V.constructTagName("listitem"),Un={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Kb={VARIANT:Un.FULL_WIDTH};var cS=n=>!!n,Mr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||cS,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Zt.CREATED,this.itemCreationHandler),this.host.addEventListener(Zt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Zt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Zt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!Df(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);Pf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let a=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",a===-1?this.cache.length:a,this.cache.slice())),a===-1?this.cache.push(e):a>=0&&this.cache.splice(a,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var gi=n=>{class o extends n{constructor(...i){super(...i);this.handleItemCreation=i=>{let a=i.target;a&&a.addEventListener(Zt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Zt.DESTROYED&&(i.target.removeEventListener(Zt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Zt.CREATED,this.handleItemCreation)}}return o};var hS=z`
4567
4567
  :host {
4568
4568
  display: flex;
4569
4569
  flex-direction: column;
@@ -4589,11 +4589,11 @@
4589
4589
  scroll-padding-left: 0.25rem;
4590
4590
  scroll-padding-right: 0.25rem;
4591
4591
  }
4592
- `,Gb=[dS];var Kb=V.constructTagName("list");var Gn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},dc={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Gn.VERTICAL};var Es=class extends vi(gi(Z)){constructor(){super();this.loop=dc.LOOP;this.initialFocus=dc.INITIAL_FOCUS;this.orientation=dc.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Zt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===K.SPACE&&this.navItems.find(i=>i===t.target)&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${lc}:not([disabled])`)}render(){return S`
4592
+ `,Wb=[hS];var Yb=V.constructTagName("list");var Gn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},dc={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Gn.VERTICAL};var Es=class extends vi(gi(Q)){constructor(){super();this.loop=dc.LOOP;this.initialFocus=dc.INITIAL_FOCUS;this.orientation=dc.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Zt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===K.SPACE&&this.navItems.find(i=>i===t.target)&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${lc}:not([disabled])`)}render(){return S`
4593
4593
  <slot name="list-header"></slot>
4594
4594
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
4595
4595
  <slot part="container" role="presentation"></slot>
4596
- `}};Es.styles=[...Z.styles,...Gb],h([u({type:String,reflect:!0})],Es.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],Es.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],Es.prototype,"orientation",2);var Ki=Es;Ki.register(Kb);var Vp=Ki;var cS=z`
4596
+ `}};Es.styles=[...Q.styles,...Wb],h([u({type:String,reflect:!0})],Es.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],Es.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],Es.prototype,"orientation",2);var Ki=Es;Ki.register(Yb);var Bp=Ki;var pS=z`
4597
4597
  :host {
4598
4598
  --mdc-listheader-padding: 0.5rem 0.75rem;
4599
4599
  --mdc-listheader-gap: 0.5rem;
@@ -4620,7 +4620,7 @@
4620
4620
  :host::part(postfix-icon) {
4621
4621
  flex-shrink: 0;
4622
4622
  }
4623
- `,Wb=[cS];var Io=class extends Z{constructor(){super(...arguments);this.disabled=!1}render(){return S`
4623
+ `,qb=[pS];var Co=class extends Q{constructor(){super(...arguments);this.disabled=!1}render(){return S`
4624
4624
  ${this.prefixIcon?S`<mdc-icon
4625
4625
  part="prefix-icon"
4626
4626
  name="${this.prefixIcon}"
@@ -4639,7 +4639,7 @@
4639
4639
  size="1"
4640
4640
  length-unit="rem"
4641
4641
  ></mdc-icon>`:U}
4642
- `}};Io.styles=[...Z.styles,...Wb],h([u({type:String,attribute:"prefix-icon"})],Io.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],Io.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],Io.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],Io.prototype,"disabled",2);var zp=Io;var Yb=V.constructTagName("listheader");zp.register(Yb);var hS=zp;var cc=n=>{class o extends Hd(n){connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Zt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Zt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Zt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}}return o};var Kn=class{static dispatchListItemEvent(o,t){t.dispatchEvent(new Event(o,{composed:!0,bubbles:!0}))}static onDisableListItem(o){this.dispatchListItemEvent("disabled",o)}static onEnableListItem(o){this.dispatchListItemEvent("enabled",o)}static onCreatedListItem(o){setTimeout(()=>{this.dispatchListItemEvent("created",o)},0)}static onDestroyedListItem(o){this.dispatchListItemEvent("destroyed",o)}};var pS=z`
4642
+ `}};Co.styles=[...Q.styles,...qb],h([u({type:String,attribute:"prefix-icon"})],Co.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],Co.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],Co.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],Co.prototype,"disabled",2);var Hp=Co;var jb=V.constructTagName("listheader");Hp.register(jb);var mS=Hp;var cc=n=>{class o extends Hd(n){connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Zt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Zt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Zt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}}return o};var Kn=class{static dispatchListItemEvent(o,t){t.dispatchEvent(new Event(o,{composed:!0,bubbles:!0}))}static onDisableListItem(o){this.dispatchListItemEvent("disabled",o)}static onEnableListItem(o){this.dispatchListItemEvent("enabled",o)}static onCreatedListItem(o){setTimeout(()=>{this.dispatchListItemEvent("created",o)},0)}static onDestroyedListItem(o){this.dispatchListItemEvent("destroyed",o)}};var uS=z`
4643
4643
  :host {
4644
4644
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
4645
4645
  --mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
@@ -4752,7 +4752,7 @@
4752
4752
  flex-direction: row;
4753
4753
  flex-shrink: 0;
4754
4754
  }
4755
- `,jb=[pS,...xt()];var Xe=class extends Ot(Nt(Xt(ii(cc(Z))))){constructor(){super();this.variant=Ub.VARIANT;this.wasSpacePressed=!1;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||et.LISTITEM}handleBlur(){this.wasSpacePressed=!1}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);this.isEventFromInsideListItem(t)||(!t.defaultPrevented&&e===K.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===K.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===K.SPACE&&(!this.isEventFromInsideListItem(t)&&!t.defaultPrevented&&this.wasSpacePressed&&(t.preventDefault(),this.triggerClickEvent(t)),this.wasSpacePressed=!1)}isEventFromInsideListItem(t){let e=t.target;return e!==this&&document.activeElement===e&&this.contains(e)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}getText(t,e,i){return S`
4755
+ `,Xb=[uS,...xt()];var Xe=class extends Ot(Nt(Xt(ii(cc(Q))))){constructor(){super();this.variant=Kb.VARIANT;this.wasSpacePressed=!1;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||et.LISTITEM}handleBlur(){this.wasSpacePressed=!1}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);this.isEventFromInsideListItem(t)||(!t.defaultPrevented&&e===K.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===K.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===K.SPACE&&(!this.isEventFromInsideListItem(t)&&!t.defaultPrevented&&this.wasSpacePressed&&(t.preventDefault(),this.triggerClickEvent(t)),this.wasSpacePressed=!1)}isEventFromInsideListItem(t){let e=t.target;return e!==this&&document.activeElement===e&&this.contains(e)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}getText(t,e,i){return S`
4756
4756
  <slot name="${t}">
4757
4757
  ${i?S`<mdc-text part="${t}" type="${e}" tagname="${pt.SPAN}">${i}</mdc-text>`:U}
4758
4758
  </slot>
@@ -4784,7 +4784,7 @@
4784
4784
  ${this.renderTrailingControls()}
4785
4785
  </div>
4786
4786
  </slot>
4787
- `}};Xe.styles=[...Z.styles,...jb],h([qt({slot:"leading-controls"})],Xe.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],Xe.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],Xe.prototype,"variant",2),h([u({type:String,reflect:!0})],Xe.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Xe.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],Xe.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],Xe.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],Xe.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Xe.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],Xe.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],Xe.prototype,"active",2);var Wi=Xe;Wi.register(lc);var mS=Wi;var uS=z`
4787
+ `}};Xe.styles=[...Q.styles,...Xb],h([jt({slot:"leading-controls"})],Xe.prototype,"leadingControlsSlot",2),h([jt({slot:"trailing-controls"})],Xe.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],Xe.prototype,"variant",2),h([u({type:String,reflect:!0})],Xe.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Xe.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],Xe.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],Xe.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],Xe.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Xe.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],Xe.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],Xe.prototype,"active",2);var Wi=Xe;Wi.register(lc);var fS=Wi;var vS=z`
4788
4788
  :host {
4789
4789
  --mdc-marker-width: 0.25rem;
4790
4790
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -4809,7 +4809,7 @@
4809
4809
  var(--mdc-marker-striped-background-color) 0.375rem
4810
4810
  );
4811
4811
  }
4812
- `,qb=[uS];var Xb=V.constructTagName("marker"),Zb={SOLID:"solid",STRIPED:"striped"};var Wn=class extends Z{constructor(){super(...arguments);this.variant=Zb.SOLID}};Wn.styles=[...Z.styles,...qb],h([u({type:String,reflect:!0})],Wn.prototype,"variant",2);var Bp=Wn;Bp.register(Xb);var fS=Bp;var ae=V.constructTagName("menupopover"),Hp={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var Yi=V.constructTagName("menusection"),Qb={DIVIDER_VARIANT:"solid"};var Co=V.constructTagName("sidenavigation"),cr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},_o={FLYOUT:"flyout",DROPDOWN:"dropdown"},ba={VARIANT:cr.FLEXIBLE,SUBMENU_TYPE:_o.FLYOUT};var Yn=V.constructTagName("menubar"),Jb={ORIENTATION:"vertical"};var vS=z`
4812
+ `,Zb=[vS];var Qb=V.constructTagName("marker"),Jb={SOLID:"solid",STRIPED:"striped"};var Wn=class extends Q{constructor(){super(...arguments);this.variant=Jb.SOLID}};Wn.styles=[...Q.styles,...Zb],h([u({type:String,reflect:!0})],Wn.prototype,"variant",2);var Up=Wn;Up.register(Qb);var gS=Up;var ae=V.constructTagName("menupopover"),Gp={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var Yi=V.constructTagName("menusection"),ty={DIVIDER_VARIANT:"solid"};var _o=V.constructTagName("sidenavigation"),cr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},wo={FLYOUT:"flyout",DROPDOWN:"dropdown"},ba={VARIANT:cr.FLEXIBLE,SUBMENU_TYPE:wo.FLYOUT};var Yn=V.constructTagName("menubar"),ey={ORIENTATION:"vertical"};var bS=z`
4813
4813
  :host {
4814
4814
  display: flex;
4815
4815
  }
@@ -4821,7 +4821,7 @@
4821
4821
  :host([aria-orientation='vertical']) {
4822
4822
  flex-direction: column;
4823
4823
  }
4824
- `,ty=[vS];var jn=class extends Ot(Nt(Z)){constructor(){super();this.depthManager=new fo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(d=>d!==e);this.getVisibleSubMenusOfItems(i).forEach(d=>{d.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=Jb.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var d,f;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],a=v=>{v.role===et.MENUITEM&&!v.hasAttribute("disabled")?i.push(v):v.tagName.toLowerCase()===Yi&&Array.from(v.children).forEach(a)};return e.forEach(a),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let a=i.getAttribute("id");if(!a)return;let d=(f=document.querySelector)==null?void 0:f.call(document,`${ae}[triggerid="${a}"]`);d&&d.visible&&e.push(d)}),e}getAllPopovers(){var a,d;if(!this.menuItems.length)return[];let t=(d=(a=this.menuItems[0])==null?void 0:a.closest(Co))!=null?d:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${ae}`).forEach(v=>{e.push(v)}),f.querySelectorAll("slot").forEach(v=>{v.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let a=i===0?"0":"-1";e==null||e.setAttribute("tabindex",a)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(a=>a.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var a,d;i<0||e<0||(e!==i&&((a=t[e])==null||a.setAttribute("tabindex","-1"),(d=t[i])==null||d.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var v;let{length:a}=this.menuItems;if(a===0)return;let d=t;if(this.getKeyboardNavMode()===re.DEFAULT?d=e==="prev"?(t-1+a)%a:(t+1)%a:d=e==="prev"?Math.max(0,t-1):Math.min(t+1,a-1),d!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,d),i)){let A=(v=this.menuItems[d])==null?void 0:v.getAttribute("id");this.getSubmenu(A)&&!this.menuItems[d].hasAttribute("soft-disabled")&&(this.showSubmenu(A),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var d;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),a=(d=e.parentElement)==null?void 0:d.tagName.toLowerCase();return i===Yn||i===Co||i===Yi&&(a===Yn||a===Co)}isNestedMenuItem(t){return!!t.closest(ae)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.getAllPopovers(),e=this.depthManager.popUntil(i=>t.includes(i));await Promise.all(e.map(i=>i.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(ae),a=i==null?void 0:i.getAttribute("triggerid"),d=this.menuItems.find(f=>f.getAttribute("id")===a);if(d){this.isTopLevelMenuItem(d)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(d);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ae){let i=e.getAttribute("triggerid"),a=this.menuItems.find(d=>d.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(d=>d===a):this.getParentMenuItemIndex(a)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case K.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case K.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case K.LEFT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(a);break}case K.RIGHT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(a);break}case K.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case K.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return S`<slot></slot>`}};jn.styles=[...Z.styles,...ty],h([qt({selector:"mdc-menusection",flatten:!0})],jn.prototype,"menusections",2);var Up=jn;Up.register(Yn);var gS=Up;var qn=V.constructTagName("menuitem"),Xn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Gp={POSITIVE:"positive",NEGATIVE:"negative"},Kp={LEADING:"leading",TRAILING:"trailing"};var bS=z`
4824
+ `,ry=[bS];var qn=class extends Ot(Nt(Q)){constructor(){super();this.depthManager=new vo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(d=>d!==e);this.getVisibleSubMenusOfItems(i).forEach(d=>{d.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=ey.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var d,f;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],a=v=>{v.role===et.MENUITEM&&!v.hasAttribute("disabled")?i.push(v):v.tagName.toLowerCase()===Yi&&Array.from(v.children).forEach(a)};return e.forEach(a),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let a=i.getAttribute("id");if(!a)return;let d=(f=document.querySelector)==null?void 0:f.call(document,`${ae}[triggerid="${a}"]`);d&&d.visible&&e.push(d)}),e}getAllPopovers(){var a,d;if(!this.menuItems.length)return[];let t=(d=(a=this.menuItems[0])==null?void 0:a.closest(_o))!=null?d:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${ae}`).forEach(v=>{e.push(v)}),f.querySelectorAll("slot").forEach(v=>{v.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let a=i===0?"0":"-1";e==null||e.setAttribute("tabindex",a)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(a=>a.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var a,d;i<0||e<0||(e!==i&&((a=t[e])==null||a.setAttribute("tabindex","-1"),(d=t[i])==null||d.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var v;let{length:a}=this.menuItems;if(a===0)return;let d=t;if(this.getKeyboardNavMode()===re.DEFAULT?d=e==="prev"?(t-1+a)%a:(t+1)%a:d=e==="prev"?Math.max(0,t-1):Math.min(t+1,a-1),d!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,d),i)){let x=(v=this.menuItems[d])==null?void 0:v.getAttribute("id");this.getSubmenu(x)&&!this.menuItems[d].hasAttribute("soft-disabled")&&(this.showSubmenu(x),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var d;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),a=(d=e.parentElement)==null?void 0:d.tagName.toLowerCase();return i===Yn||i===_o||i===Yi&&(a===Yn||a===_o)}isNestedMenuItem(t){return!!t.closest(ae)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.getAllPopovers(),e=this.depthManager.popUntil(i=>t.includes(i));await Promise.all(e.map(i=>i.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(ae),a=i==null?void 0:i.getAttribute("triggerid"),d=this.menuItems.find(f=>f.getAttribute("id")===a);if(d){this.isTopLevelMenuItem(d)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(d);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ae){let i=e.getAttribute("triggerid"),a=this.menuItems.find(d=>d.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(d=>d===a):this.getParentMenuItemIndex(a)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case K.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case K.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case K.LEFT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(a);break}case K.RIGHT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(a);break}case K.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case K.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return S`<slot></slot>`}};qn.styles=[...Q.styles,...ry],h([jt({selector:"mdc-menusection",flatten:!0})],qn.prototype,"menusections",2);var Kp=qn;Kp.register(Yn);var yS=Kp;var jn=V.constructTagName("menuitem"),Xn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Wp={POSITIVE:"positive",NEGATIVE:"negative"},Yp={LEADING:"leading",TRAILING:"trailing"};var ES=z`
4825
4825
  :host(:dir(rtl))::part(trailing-arrow),
4826
4826
  :host(:dir(rtl))::part(leading-arrow) {
4827
4827
  transform: rotate(180deg);
@@ -4830,23 +4830,23 @@
4830
4830
  :host::part(leading-arrow) {
4831
4831
  --mdc-icon-size: 1rem;
4832
4832
  }
4833
- `,ey=[bS];var wo=class extends Wi{handleKeyDown(o){this.getActionForKeyEvent(o)===K.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===K.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=Un.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Gp.NEGATIVE?Xn.LEFT:Xn.RIGHT;return S`
4833
+ `,iy=[ES];var ko=class extends Wi{handleKeyDown(o){this.getActionForKeyEvent(o)===K.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===K.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=Un.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Wp.NEGATIVE?Xn.LEFT:Xn.RIGHT;return S`
4834
4834
  <slot
4835
4835
  name="trailing-controls"
4836
4836
  @click=${this.stopEventPropagation}
4837
4837
  @keyup=${this.stopEventPropagation}
4838
4838
  @keydown=${this.stopEventPropagation}
4839
4839
  ></slot>
4840
- ${this.arrowPosition===Kp.TRAILING?S`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:U}
4841
- `}renderLeadingControls(){let o=this.arrowDirection===Gp.POSITIVE?Xn.RIGHT:Xn.LEFT;return S`
4840
+ ${this.arrowPosition===Yp.TRAILING?S`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:U}
4841
+ `}renderLeadingControls(){let o=this.arrowDirection===Wp.POSITIVE?Xn.RIGHT:Xn.LEFT;return S`
4842
4842
  <slot
4843
4843
  name="leading-controls"
4844
4844
  @click=${this.stopEventPropagation}
4845
4845
  @keyup=${this.stopEventPropagation}
4846
4846
  @keydown=${this.stopEventPropagation}
4847
4847
  ></slot>
4848
- ${this.arrowPosition===Kp.LEADING?S`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:U}
4849
- `}};wo.styles=[...Wi.styles,...ey],h([u({type:String,reflect:!0,attribute:"arrow-position"})],wo.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],wo.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],wo.prototype,"name",2),h([u({type:String,reflect:!0})],wo.prototype,"value",2);var Or=wo;Or.register(qn);var yS=Or;var ry=V.constructTagName("statictoggle"),ES={DEFAULT:"default",COMPACT:"compact"},Wp={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},iy={compact:.75,default:1.25},oy={SIZE:ES.DEFAULT};var TS=[z`
4848
+ ${this.arrowPosition===Yp.LEADING?S`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:U}
4849
+ `}};ko.styles=[...Wi.styles,...iy],h([u({type:String,reflect:!0,attribute:"arrow-position"})],ko.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],ko.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],ko.prototype,"name",2),h([u({type:String,reflect:!0})],ko.prototype,"value",2);var Or=ko;Or.register(jn);var TS=Or;var oy=V.constructTagName("statictoggle"),xS={DEFAULT:"default",COMPACT:"compact"},qp={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},sy={compact:.75,default:1.25},ay={SIZE:xS.DEFAULT};var AS=[z`
4850
4850
  :host {
4851
4851
  --mdc-statictoggle-width: 3rem;
4852
4852
  --mdc-statictoggle-height: 1.5rem;
@@ -4941,17 +4941,17 @@
4941
4941
  border: 1px solid GrayText;
4942
4942
  }
4943
4943
  }
4944
- `],sy=TS;var ko=class extends Xt(Z){constructor(){super(...arguments);this.checked=!1;this.size=oy.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return S`
4944
+ `],ny=AS;var No=class extends Xt(Q){constructor(){super(...arguments);this.checked=!1;this.size=ay.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return S`
4945
4945
  <slot></slot>
4946
4946
  <div part="slider">
4947
4947
  <mdc-icon
4948
- name="${this.checked?Wp.CHECKED:Wp.UNCHECKED}"
4948
+ name="${this.checked?qp.CHECKED:qp.UNCHECKED}"
4949
4949
  part="toggle-icon"
4950
4950
  length-unit="rem"
4951
- size="${iy[this.size]}"
4951
+ size="${sy[this.size]}"
4952
4952
  ></mdc-icon>
4953
4953
  </div>
4954
- `}};ko.styles=[...Z.styles,...sy],h([u({type:Boolean,reflect:!0})],ko.prototype,"checked",2),h([u({type:String,reflect:!0})],ko.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ko.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ko.prototype,"softDisabled",2);var Yp=ko;Yp.register(ry);var xS=Yp;var Zn=V.constructTagName("tooltip"),Rr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ze={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${_e.MOUSEENTER} ${_e.FOCUSIN}`,OFFSET:4,PLACEMENT:Mt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Rr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var AS=z`
4954
+ `}};No.styles=[...Q.styles,...ny],h([u({type:Boolean,reflect:!0})],No.prototype,"checked",2),h([u({type:String,reflect:!0})],No.prototype,"size",2),h([u({type:Boolean,reflect:!0})],No.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],No.prototype,"softDisabled",2);var jp=No;jp.register(oy);var SS=jp;var Zn=V.constructTagName("tooltip"),Rr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ze={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${_e.MOUSEENTER} ${_e.FOCUSIN}`,OFFSET:4,PLACEMENT:Mt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Rr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var IS=z`
4955
4955
  :host {
4956
4956
  --mdc-tooltip-max-width: 400px;
4957
4957
  --mdc-tooltip-padding: 0.75rem;
@@ -4975,14 +4975,14 @@
4975
4975
  :host([color='contrast'])::part(popover-content) {
4976
4976
  color: var(--mdc-tooltip-text-color-contrast);
4977
4977
  }
4978
- `,ay=[AS];var ya=class extends nr{constructor(){super(...arguments);this.tooltipType=Ze.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Ze.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS;this.autoGeneratedId=null}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Ze.ARIA_HIDDEN,this.backdrop=Ze.BACKDROP,this.delay=this.delay||Ze.DELAY,this.disableAriaExpanded=Ze.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Ze.HIDE_ON_BLUR,this.hideOnEscape=Ze.HIDE_ON_ESCAPE,this.offset=this.offset||Ze.OFFSET,this.placement=this.placement||Ze.PLACEMENT,this.trigger=Ze.TRIGGER,this.closeButton=Et.CLOSE_BUTTON,this.disableFlip=Et.DISABLE_FLIP,this.focusBackToTrigger=Et.FOCUS_BACK,this.focusTrap=Et.FOCUS_TRAP,this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE,this.interactive=Et.INTERACTIVE,this.preventScroll=Et.PREVENT_SCROLL,this.size=Et.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Rr).includes(t)?t:Ze.TOOLTIP_TYPE)}ensureId(){if(this.id.length>0){this.autoGeneratedId&&this.id!==this.autoGeneratedId&&(this.autoGeneratedId=null);return}this.autoGeneratedId||(this.autoGeneratedId=`mdc-tooltip-${ze()}`),this.id=this.autoGeneratedId}syncTriggerAriaForId(){if(this.triggerElement)switch(this.tooltipType){case Rr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Rr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=Ze.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Rr).includes(this.tooltipType)||this.setTooltipType(Ze.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Rr.DESCRIPTION:e===Rr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Rr.LABEL:e===Rr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Rr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Rr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:i}=this;t===e||!i||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}willUpdate(t){super.willUpdate(t);let e=t.has("id");e&&this.ensureId(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")?this.onTooltipTypeUpdated(t):e&&this.syncTriggerAriaForId()}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&Hl(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};ya.styles=[...nr.styles,...ay],h([u({type:String,attribute:"tooltip-type",reflect:!0})],ya.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],ya.prototype,"onlyShowWhenTriggerOverflows",2);var jp=ya;jp.register(Zn);var SS=jp;var ny=V.constructTagName("toggle"),Qn={DEFAULT:"default",COMPACT:"compact"};var qp={SIZE:Qn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var bi=n=>{class o extends n{constructor(){super(...arguments);this.controlTypeProviderContext=Ie.consume({host:this,context:xp.Context})}willUpdate(){this.controlType&&Yd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Wd.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var hc=V.constructTagName("menuitemcheckbox"),Jn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},ly={INDICATOR:Jn.CHECKBOX};var IS=z`
4978
+ `,ly=[IS];var ya=class extends nr{constructor(){super(...arguments);this.tooltipType=Ze.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Ze.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS;this.autoGeneratedId=null}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Ze.ARIA_HIDDEN,this.backdrop=Ze.BACKDROP,this.delay=this.delay||Ze.DELAY,this.disableAriaExpanded=Ze.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Ze.HIDE_ON_BLUR,this.hideOnEscape=Ze.HIDE_ON_ESCAPE,this.offset=this.offset||Ze.OFFSET,this.placement=this.placement||Ze.PLACEMENT,this.trigger=Ze.TRIGGER,this.closeButton=Et.CLOSE_BUTTON,this.disableFlip=Et.DISABLE_FLIP,this.focusBackToTrigger=Et.FOCUS_BACK,this.focusTrap=Et.FOCUS_TRAP,this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE,this.interactive=Et.INTERACTIVE,this.preventScroll=Et.PREVENT_SCROLL,this.size=Et.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Rr).includes(t)?t:Ze.TOOLTIP_TYPE)}ensureId(){if(this.id.length>0){this.autoGeneratedId&&this.id!==this.autoGeneratedId&&(this.autoGeneratedId=null);return}this.autoGeneratedId||(this.autoGeneratedId=`mdc-tooltip-${ze()}`),this.id=this.autoGeneratedId}syncTriggerAriaForId(){if(this.triggerElement)switch(this.tooltipType){case Rr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Rr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=Ze.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Rr).includes(this.tooltipType)||this.setTooltipType(Ze.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Rr.DESCRIPTION:e===Rr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Rr.LABEL:e===Rr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Rr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Rr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:i}=this;t===e||!i||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}willUpdate(t){super.willUpdate(t);let e=t.has("id");e&&this.ensureId(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")?this.onTooltipTypeUpdated(t):e&&this.syncTriggerAriaForId()}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&Hl(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};ya.styles=[...nr.styles,...ly],h([u({type:String,attribute:"tooltip-type",reflect:!0})],ya.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],ya.prototype,"onlyShowWhenTriggerOverflows",2);var Xp=ya;Xp.register(Zn);var CS=Xp;var dy=V.constructTagName("toggle"),Qn={DEFAULT:"default",COMPACT:"compact"};var Zp={SIZE:Qn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var bi=n=>{class o extends n{constructor(){super(...arguments);this.controlTypeProviderContext=Ie.consume({host:this,context:Sp.Context})}willUpdate(){this.controlType&&Yd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Wd.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var hc=V.constructTagName("menuitemcheckbox"),Jn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},cy={INDICATOR:Jn.CHECKBOX};var _S=z`
4979
4979
  :host::part(checkmark-icon) {
4980
4980
  --mdc-icon-fill-color: currentColor;
4981
4981
  }
4982
4982
  :host .hidden-checkmark {
4983
4983
  visibility: hidden;
4984
4984
  }
4985
- `,dy=[IS];var Ea=class extends bi(Or){constructor(){super();this.checked=!1;this.indicator=ly.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===Jn.CHECKBOX?S`
4985
+ `,hy=[_S];var Ea=class extends bi(Or){constructor(){super();this.checked=!1;this.indicator=cy.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===Jn.CHECKBOX?S`
4986
4986
  <mdc-staticcheckbox
4987
4987
  slot="leading-controls"
4988
4988
  ?checked="${this.checked}"
@@ -5002,7 +5002,7 @@
5002
5002
  slot="trailing-controls"
5003
5003
  name="check-bold"
5004
5004
  part="checkmark-icon"
5005
- class=${jr({"hidden-checkmark":!this.checked})}
5005
+ class=${qr({"hidden-checkmark":!this.checked})}
5006
5006
  ></mdc-icon>
5007
5007
  `:U}render(){return S`
5008
5008
  <slot name="content">
@@ -5024,14 +5024,14 @@
5024
5024
  ${this.staticToggle()} ${this.getCheckmarkIcon()}
5025
5025
  </div>
5026
5026
  </slot>
5027
- `}};Ea.styles=[...Or.styles,...dy],h([u({type:Boolean,reflect:!0})],Ea.prototype,"checked",2),h([u({type:String,reflect:!0})],Ea.prototype,"indicator",2);var Xp=Ea;Xp.register(hc);var CS=Xp;var pc=V.constructTagName("menuitemradio"),mc={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},cy={INDICATOR:mc.RADIO};var _S=z`
5027
+ `}};Ea.styles=[...Or.styles,...hy],h([u({type:Boolean,reflect:!0})],Ea.prototype,"checked",2),h([u({type:String,reflect:!0})],Ea.prototype,"indicator",2);var Qp=Ea;Qp.register(hc);var wS=Qp;var pc=V.constructTagName("menuitemradio"),mc={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},py={INDICATOR:mc.RADIO};var kS=z`
5028
5028
  :host::part(checkmark-icon) {
5029
5029
  --mdc-icon-fill-color: currentColor;
5030
5030
  }
5031
5031
  :host .hidden-checkmark {
5032
5032
  visibility: hidden;
5033
5033
  }
5034
- `,hy=[_S];var Ta=class extends bi(Or){constructor(){super();this.checked=!1;this.indicator=cy.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Yi}, ${ae}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(e=>{e!==this&&e.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===mc.RADIO?S`
5034
+ `,my=[kS];var Ta=class extends bi(Or){constructor(){super();this.checked=!1;this.indicator=py.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Yi}, ${ae}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(e=>{e!==this&&e.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===mc.RADIO?S`
5035
5035
  <mdc-staticradio
5036
5036
  slot="leading-controls"
5037
5037
  ?checked="${this.checked}"
@@ -5043,7 +5043,7 @@
5043
5043
  slot="trailing-controls"
5044
5044
  name="check-bold"
5045
5045
  part="checkmark-icon"
5046
- class=${jr({"hidden-checkmark":!this.checked})}
5046
+ class=${qr({"hidden-checkmark":!this.checked})}
5047
5047
  ></mdc-icon>
5048
5048
  `:U}render(){return S`
5049
5049
  <slot name="content">
@@ -5065,7 +5065,7 @@
5065
5065
  ${this.renderCheckmarkIcon()}
5066
5066
  </div>
5067
5067
  </slot>
5068
- `}};Ta.styles=[...Or.styles,...hy],h([u({type:Boolean,reflect:!0})],Ta.prototype,"checked",2),h([u({type:String,reflect:!0})],Ta.prototype,"indicator",2);var Zp=Ta;Zp.register(pc);var wS=Zp;var hr=V.constructTagName("navmenuitem"),py={DOT:wr.DOT,COUNTER:wr.COUNTER},Qp={RIGHT_ARROW:"arrow-right-bold",DOWN_ARROW:"arrow-down-bold"},Jp={MAX_COUNTER:99,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Yo[24],VARIANT:cr.FLEXIBLE,CANNOT_ACTIVATE:!1};var kS=z`
5068
+ `}};Ta.styles=[...Or.styles,...my],h([u({type:Boolean,reflect:!0})],Ta.prototype,"checked",2),h([u({type:String,reflect:!0})],Ta.prototype,"indicator",2);var Jp=Ta;Jp.register(pc);var NS=Jp;var hr=V.constructTagName("navmenuitem"),uy={DOT:wr.DOT,COUNTER:wr.COUNTER},tm={RIGHT_ARROW:"arrow-right-bold",DOWN_ARROW:"arrow-down-bold"},em={MAX_COUNTER:99,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:qo[24],VARIANT:cr.FLEXIBLE,CANNOT_ACTIVATE:!1};var LS=z`
5069
5069
  :host::part(popover-content) {
5070
5070
  padding: 0.75rem 0.5rem;
5071
5071
  scroll-padding-block: 0.25rem;
@@ -5074,7 +5074,7 @@
5074
5074
  ::slotted(mdc-divider) {
5075
5075
  margin-block: 0.25rem;
5076
5076
  }
5077
- `,my=[kS];var tl=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},tm=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===ae};var el=class extends nr{constructor(){super();this.placement=Hp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.closeAllMenuPopovers(),a&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e,i;(e=this.triggerElement)!=null&&e.hasAttribute("disabled")||(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||(t.composedPath().find(a=>a.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;tl(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,a=this.getCurrentIndex(i);if(a===-1)return;switch(this.resetTabIndexes(a),this.getActionForKeyEvent(t,!0)){case K.HOME:{this.resetTabIndexAndSetFocus(0,a),e=!0;break}case K.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,a),e=!0;break}case K.DOWN:{let f=a+1===this.menuItems.length?0:a+1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case K.UP:{let f=a-1===-1?this.menuItems.length-1:a-1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case K.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&!i.hasAttribute("soft-disabled")&&(f.show(),e=!0);break}case K.LEFT:{tm(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,a),e=!0);break}case K.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,a),e=!0);break}case K.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case K.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case K.SPACE:{!i.matches(`${pc}, ${hc}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,a;let e=t.getAttribute("id");return e?(a=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:a.call(i,`${ae}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(a=>a.tagName.toLowerCase()===Yi?Array.from(a.children).filter(d=>tl(d)):tl(a)?a:[]).flat().filter(a=>!!a&&!a.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(a=>this.getSubMenuPopoverOfTarget(a))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.visible&&e.push(a)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Hp.ORIENTATION,this.backdrop=!1,this.color=rs.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![qn,hr].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&tm(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(a=>a!==t);this.getOpenSubMenusOfItems(e).forEach(a=>{a.hide()})}fireMenuItemAction(t){t.matches(qn)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!tl(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};el.styles=[...nr.styles,...my],h([u({type:String,reflect:!0})],el.prototype,"placement",2);var em=el;em.register(ae);var NS=em;var uc=class{constructor(o,t,e){this.variant=o,this.expanded=t,this.submenuType=e}get isDropdownSubmenuType(){return this.submenuType===_o.DROPDOWN}hasSiblingWithTriggerId(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.tagName.toLowerCase()===ae&&d.getAttribute("triggerid")===t):!1}isDropDownParent(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.matches(`div[data-trigger="${t}"]`)):!1}getParentNavMenuItems(o){var i;if(!o)return[];let t=[],e=o;for(;e;){let a=null,d=e==null?void 0:e.closest(ae);if(d)a=this.getTriggerElement(d,"triggerid");else{let f=(i=e==null?void 0:e.parentElement)==null?void 0:i.closest("div[data-trigger]");f&&(a=this.getTriggerElement(f,"data-trigger"))}if(a&&a.tagName.toLowerCase()===hr)t.push(a),e=a;else break}return t}getTriggerElement(o,t){let e=o.getAttribute(t);return e?document.getElementById(e):null}setCurrentActiveNavMenuItem(o){var a;let t=((a=this.currentActiveNavMenuItem)==null?void 0:a.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||this.isDropdownSubmenuType&&this.expanded&&this.isDropDownParent(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(d=>{d.hasActiveChild=!0,d.setAttribute("active","")})}};uc.context=Co;var fc=uc;var LS=z`
5077
+ `,fy=[LS];var tl=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},rm=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===ae};var el=class extends nr{constructor(){super();this.placement=Gp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.closeAllMenuPopovers(),a&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e,i;(e=this.triggerElement)!=null&&e.hasAttribute("disabled")||(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||(t.composedPath().find(a=>a.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;tl(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,a=this.getCurrentIndex(i);if(a===-1)return;switch(this.resetTabIndexes(a),this.getActionForKeyEvent(t,!0)){case K.HOME:{this.resetTabIndexAndSetFocus(0,a),e=!0;break}case K.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,a),e=!0;break}case K.DOWN:{let f=a+1===this.menuItems.length?0:a+1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case K.UP:{let f=a-1===-1?this.menuItems.length-1:a-1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case K.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&!i.hasAttribute("soft-disabled")&&(f.show(),e=!0);break}case K.LEFT:{rm(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,a),e=!0);break}case K.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,a),e=!0);break}case K.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case K.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case K.SPACE:{!i.matches(`${pc}, ${hc}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,a;let e=t.getAttribute("id");return e?(a=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:a.call(i,`${ae}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(a=>a.tagName.toLowerCase()===Yi?Array.from(a.children).filter(d=>tl(d)):tl(a)?a:[]).flat().filter(a=>!!a&&!a.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(a=>this.getSubMenuPopoverOfTarget(a))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.visible&&e.push(a)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Gp.ORIENTATION,this.backdrop=!1,this.color=rs.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![jn,hr].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&rm(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(a=>a!==t);this.getOpenSubMenusOfItems(e).forEach(a=>{a.hide()})}fireMenuItemAction(t){t.matches(jn)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!tl(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};el.styles=[...nr.styles,...fy],h([u({type:String,reflect:!0})],el.prototype,"placement",2);var im=el;im.register(ae);var MS=im;var uc=class{constructor(o,t,e){this.variant=o,this.expanded=t,this.submenuType=e}get isDropdownSubmenuType(){return this.submenuType===wo.DROPDOWN}hasSiblingWithTriggerId(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.tagName.toLowerCase()===ae&&d.getAttribute("triggerid")===t):!1}isDropDownParent(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.matches(`div[data-trigger="${t}"]`)):!1}getParentNavMenuItems(o){var i;if(!o)return[];let t=[],e=o;for(;e;){let a=null,d=e==null?void 0:e.closest(ae);if(d)a=this.getTriggerElement(d,"triggerid");else{let f=(i=e==null?void 0:e.parentElement)==null?void 0:i.closest("div[data-trigger]");f&&(a=this.getTriggerElement(f,"data-trigger"))}if(a&&a.tagName.toLowerCase()===hr)t.push(a),e=a;else break}return t}getTriggerElement(o,t){let e=o.getAttribute(t);return e?document.getElementById(e):null}setCurrentActiveNavMenuItem(o){var a;let t=((a=this.currentActiveNavMenuItem)==null?void 0:a.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||this.isDropdownSubmenuType&&this.expanded&&this.isDropDownParent(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(d=>{d.hasActiveChild=!0,d.setAttribute("active","")})}};uc.context=_o;var fc=uc;var OS=z`
5078
5078
  :host {
5079
5079
  --mdc-sidenavigation-expanded-width: 14.5rem;
5080
5080
  --mdc-sidenavigation-expanded-left-padding: 1rem;
@@ -5212,7 +5212,7 @@
5212
5212
  :host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
5213
5213
  opacity: 1;
5214
5214
  }
5215
- `,uy=[LS];var rm=class extends Se{},fy=rm;var yi=class extends Nt(fy){constructor(){super({context:fc.context,initialValue:new fc(ba.VARIANT,!0,ba.SUBMENU_TYPE)});this.variant=ba.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.submenuType=ba.SUBMENU_TYPE;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===cr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this)),this.addEventListener("keydown",this.handleDropdownKeyDown.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return fc.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case cr.FIXED_EXPANDED:this.expanded=!0;break;case cr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded")||t.has("submenuType"))&&this.updateContext(),(t.has("expanded")||t.has("submenuType"))&&((!this.expanded||this.submenuType!==_o.DROPDOWN)&&this.closeAllDropdowns(),this.submenuType===_o.DROPDOWN?this.expanded?this.convertFlyoutsToDropdowns():this.convertDropdownsToFlyouts():this.convertFlyoutsToDropdowns())}firstUpdated(t){super.firstUpdated(t),(this.variant===cr.FLEXIBLE||this.variant===cr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext()),this.hideAllDropdownContainers(),this.submenuType===_o.DROPDOWN&&!this.expanded&&this.convertDropdownsToFlyouts()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.submenuType!==this.submenuType)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.submenuType=this.submenuType,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${hr}:not([disabled])`))}closeAllDropdowns(){this.navMenuItems.filter(t=>this.context.value.isDropDownParent(t)).forEach(t=>t.closeDropdown()),this.hideAllDropdownContainers()}hideAllDropdownContainers(){this.querySelectorAll("div[data-trigger]").forEach(e=>{Object.assign(e.style,{display:"none",flexDirection:"column",gap:"0.25rem"})})}convertDropdownsToFlyouts(){this.querySelectorAll("div[data-trigger]").forEach(e=>{var f;let i=e.getAttribute("data-trigger");if(!i||((f=e.parentElement)==null?void 0:f.querySelector(`${ae}[triggerid="${CSS.escape(i)}"][data-dynamic-popover]`)))return;let d=document.createElement(ae);for(d.setAttribute("triggerid",i),d.setAttribute("data-dynamic-popover",""),d.setAttribute("placement","right-start");e.firstChild;)d.appendChild(e.firstChild);e.after(d),Object.assign(e.style,{display:"none"})})}convertFlyoutsToDropdowns(){this.querySelectorAll(`${ae}[data-dynamic-popover]`).forEach(e=>{let i=e.getAttribute("triggerid");if(!i)return;let a=this.querySelector(`div[data-trigger="${CSS.escape(i)}"]`);if(a){for(;e.firstChild;)a.appendChild(e.firstChild);e.remove()}})}handleDropdownKeyDown(t){var J,q;if(this.submenuType!==_o.DROPDOWN||!this.expanded)return;let e=t.target;if(!(e.tagName.toLowerCase()===hr))return;let a=e,d=this.getActionForKeyEvent(t);if(d===K.ESCAPE){let Q=e.closest("div[data-trigger]");if(!Q)return;let ot=Q.getAttribute("data-trigger");if(!ot)return;let st=this.querySelector(`${hr}#${CSS.escape(ot)}`);st&&(st.closeDropdown(),st.focus(),t.stopPropagation());return}let f=this.context.value,v=a.hasAttribute("in-dropdown-container"),A=a.getAttribute("aria-expanded")==="true",R=Q=>{var ot,st;return(st=(ot=Q.parentElement)==null?void 0:ot.querySelector(`div[data-trigger="${Q.id}"]`))!=null?st:null},H=Q=>Q==null?void 0:Q.querySelector(`${hr}:not([disabled])`);if(v){let Q=e.closest("div[data-trigger]");if(!Q)return;let ot=Array.from(Q.querySelectorAll(`${hr}:not([disabled])`)),st=ot.indexOf(a);if(st===-1)return;switch(d){case K.DOWN:{let ht=st+1<ot.length?st+1:0;ot[ht].focus(),t.preventDefault();break}case K.UP:{let ht=st>0?st-1:ot.length-1;ot[ht].focus(),t.preventDefault();break}case K.RIGHT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Q.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt!==-1&&yt+1<ht.length){let It=ht[yt+1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(J=H(Rt))==null||J.focus()}}break}case K.LEFT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Q.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt>0){let It=ht[yt-1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(q=H(Rt))==null||q.focus()}}break}default:t.preventDefault()}}if(d===K.RIGHT){let Q=R(a);if(Q){A||a.openDropdown();let ot=H(Q);ot&&(ot.focus(),t.preventDefault())}}}setVariant(t){this.setAttribute("variant",Object.values(cr).includes(t)?t:ba.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===cr.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&t.preventDefault()}render(){var t;return this.variant===cr.HIDDEN?S``:S`
5215
+ `,vy=[OS];var om=class extends Se{},gy=om;var yi=class extends Nt(gy){constructor(){super({context:fc.context,initialValue:new fc(ba.VARIANT,!0,ba.SUBMENU_TYPE)});this.variant=ba.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.submenuType=ba.SUBMENU_TYPE;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===cr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this)),this.addEventListener("keydown",this.handleDropdownKeyDown.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return fc.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case cr.FIXED_EXPANDED:this.expanded=!0;break;case cr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded")||t.has("submenuType"))&&this.updateContext(),(t.has("expanded")||t.has("submenuType"))&&((!this.expanded||this.submenuType!==wo.DROPDOWN)&&this.closeAllDropdowns(),this.submenuType===wo.DROPDOWN?this.expanded?this.convertFlyoutsToDropdowns():this.convertDropdownsToFlyouts():this.convertFlyoutsToDropdowns())}firstUpdated(t){super.firstUpdated(t),(this.variant===cr.FLEXIBLE||this.variant===cr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext()),this.hideAllDropdownContainers(),this.submenuType===wo.DROPDOWN&&!this.expanded&&this.convertDropdownsToFlyouts()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.submenuType!==this.submenuType)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.submenuType=this.submenuType,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${hr}:not([disabled])`))}closeAllDropdowns(){this.navMenuItems.filter(t=>this.context.value.isDropDownParent(t)).forEach(t=>t.closeDropdown()),this.hideAllDropdownContainers()}hideAllDropdownContainers(){this.querySelectorAll("div[data-trigger]").forEach(e=>{Object.assign(e.style,{display:"none",flexDirection:"column",gap:"0.25rem"})})}convertDropdownsToFlyouts(){this.querySelectorAll("div[data-trigger]").forEach(e=>{var f;let i=e.getAttribute("data-trigger");if(!i||((f=e.parentElement)==null?void 0:f.querySelector(`${ae}[triggerid="${CSS.escape(i)}"][data-dynamic-popover]`)))return;let d=document.createElement(ae);for(d.setAttribute("triggerid",i),d.setAttribute("data-dynamic-popover",""),d.setAttribute("placement","right-start");e.firstChild;)d.appendChild(e.firstChild);e.after(d),Object.assign(e.style,{display:"none"})})}convertFlyoutsToDropdowns(){this.querySelectorAll(`${ae}[data-dynamic-popover]`).forEach(e=>{let i=e.getAttribute("triggerid");if(!i)return;let a=this.querySelector(`div[data-trigger="${CSS.escape(i)}"]`);if(a){for(;e.firstChild;)a.appendChild(e.firstChild);e.remove()}})}handleDropdownKeyDown(t){var J,W;if(this.submenuType!==wo.DROPDOWN||!this.expanded)return;let e=t.target;if(!(e.tagName.toLowerCase()===hr))return;let a=e,d=this.getActionForKeyEvent(t);if(d===K.ESCAPE){let Z=e.closest("div[data-trigger]");if(!Z)return;let ot=Z.getAttribute("data-trigger");if(!ot)return;let st=this.querySelector(`${hr}#${CSS.escape(ot)}`);st&&(st.closeDropdown(),st.focus(),t.stopPropagation());return}let f=this.context.value,v=a.hasAttribute("in-dropdown-container"),x=a.getAttribute("aria-expanded")==="true",R=Z=>{var ot,st;return(st=(ot=Z.parentElement)==null?void 0:ot.querySelector(`div[data-trigger="${Z.id}"]`))!=null?st:null},H=Z=>Z==null?void 0:Z.querySelector(`${hr}:not([disabled])`);if(v){let Z=e.closest("div[data-trigger]");if(!Z)return;let ot=Array.from(Z.querySelectorAll(`${hr}:not([disabled])`)),st=ot.indexOf(a);if(st===-1)return;switch(d){case K.DOWN:{let ht=st+1<ot.length?st+1:0;ot[ht].focus(),t.preventDefault();break}case K.UP:{let ht=st>0?st-1:ot.length-1;ot[ht].focus(),t.preventDefault();break}case K.RIGHT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt!==-1&&yt+1<ht.length){let It=ht[yt+1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(J=H(Rt))==null||J.focus()}}break}case K.LEFT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt>0){let It=ht[yt-1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(W=H(Rt))==null||W.focus()}}break}default:t.preventDefault()}}if(d===K.RIGHT){let Z=R(a);if(Z){x||a.openDropdown();let ot=H(Z);ot&&(ot.focus(),t.preventDefault())}}}setVariant(t){this.setAttribute("variant",Object.values(cr).includes(t)?t:ba.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===cr.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&t.preventDefault()}render(){var t;return this.variant===cr.HIDDEN?S``:S`
5216
5216
  <div part="side-navigation-container" id="side-nav-container">
5217
5217
  <div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
5218
5218
  <slot name="scrollable-section">
@@ -5256,7 +5256,7 @@
5256
5256
  aria-controls="side-nav-container"
5257
5257
  ></mdc-button>
5258
5258
  </mdc-divider>`:U}
5259
- `}};yi.styles=[...Z.styles,...uy],h([u({type:String,reflect:!0})],yi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],yi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],yi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],yi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],yi.prototype,"hideFixedSectionDivider",2),h([u({type:String,reflect:!0,attribute:"submenu-type"})],yi.prototype,"submenuType",2);var Ts=yi;var MS=z`
5259
+ `}};yi.styles=[...Q.styles,...vy],h([u({type:String,reflect:!0})],yi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],yi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],yi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],yi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],yi.prototype,"hideFixedSectionDivider",2),h([u({type:String,reflect:!0,attribute:"submenu-type"})],yi.prototype,"submenuType",2);var Ts=yi;var RS=z`
5260
5260
  :host {
5261
5261
  --mdc-menusection-divider-margin-block: 0.25rem;
5262
5262
  --mdc-menusection-gap: 0rem;
@@ -5277,7 +5277,7 @@
5277
5277
  :host::part(align-header) {
5278
5278
  --mdc-listheader-padding: var(--mdc-menusection-header-padding);
5279
5279
  }
5280
- `,vy=[MS];var Ei=class extends Z{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Qb.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Ie.consume({host:this,context:Ts.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var a;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(a=this.sideNavigationContext)==null?void 0:a.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
5280
+ `,by=[RS];var Ei=class extends Q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=ty.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Ie.consume({host:this,context:Ts.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var a;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(a=this.sideNavigationContext)==null?void 0:a.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
5281
5281
  part="header ${(e=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&e.expanded?"align-header":""}"
5282
5282
  header-text="${this.headerText}"
5283
5283
  prefix-icon="${tt(this.prefixIcon)}"
@@ -5286,7 +5286,7 @@
5286
5286
  ${this.hideHeaderText?null:this.renderHeader()}
5287
5287
  <slot part="container"></slot>
5288
5288
  ${this.showDivider?S`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
5289
- `}};Ei.styles=[...Z.styles,...vy],h([u({type:String,reflect:!0,attribute:"aria-label"})],Ei.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Ei.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Ei.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Ei.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],Ei.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Ei.prototype,"hideHeaderText",2);var im=Ei;im.register(Yi);var OS=im;var RS=[Tt,z`
5289
+ `}};Ei.styles=[...Q.styles,...by],h([u({type:String,reflect:!0,attribute:"aria-label"})],Ei.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Ei.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Ei.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Ei.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],Ei.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Ei.prototype,"hideHeaderText",2);var sm=Ei;sm.register(Yi);var DS=sm;var PS=[Tt,z`
5290
5290
  :host {
5291
5291
  --mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
5292
5292
  --mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
@@ -5488,7 +5488,7 @@
5488
5488
  background-color: ButtonText;
5489
5489
  }
5490
5490
  }
5491
- `,...xt()],gy=RS;var le=class extends Or{constructor(){super();this.cannotActivate=Jp.CANNOT_ACTIVATE;this.maxCounter=Jp.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.dropdownOpen=!1;this.sideNavigationContext=Ie.consume({host:this,context:Ts.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested()),this.toggleAttribute("in-dropdown-container",this.isInsideDropdownContainer())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var i;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild")||t.has("dropdownOpen"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(i=this.sideNavigationContext)==null?void 0:i.value;e&&(this.showLabel=this.isNested()||this.isInsideDropdownContainer()?!0:e.expanded,!e.expanded&&this.dropdownOpen&&this.closeDropdown(),!e.isDropdownSubmenuType&&this.dropdownOpen&&this.closeDropdown(),e.isDropdownSubmenuType&&this.hasActiveChild&&e.isDropDownParent(this)&&(e.expanded&&this.dropdownOpen?(this.removeAttribute("active"),this.active=!1):(this.setAttribute("active",""),this.active=!0)))}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.disabled||this.dropdownOpen||this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${ze()}`);let t=document.createElement(Zn);t.id=`mdc-navmenuitem-tooltip-${ze()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${Zn}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ae)return!0;t=t.parentElement}return!1}isInsideDropdownContainer(){let t=this.parentElement;for(;t;){if(t.matches("div[data-trigger]"))return!0;t=t.parentElement}return!1}handleClickEvent(){var e;if(this.disabled||this.cannotActivate||this.softDisabled)return;let t=(e=this.sideNavigationContext)==null?void 0:e.value;if(t!=null&&t.isDropdownSubmenuType&&(t!=null&&t.expanded)&&(t!=null&&t.isDropDownParent(this))){if(this.toggleDropdown(),this.dropdownOpen){let i=this.getDropdownContainer(),a=i==null?void 0:i.querySelector(hr);a==null||a.focus()}return}this.emitNavMenuItemActiveChange(this.active)}toggleDropdown(){let t=this.getDropdownContainer();t&&(this.dropdownOpen=!this.dropdownOpen,t.style.display=this.dropdownOpen?"flex":"none",this.dropdownOpen?this.setAttribute("aria-expanded","true"):this.removeAttribute("aria-expanded"))}openDropdown(){if(this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="flex"),this.dropdownOpen=!0,this.setAttribute("aria-expanded","true")}closeDropdown(){if(!this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="none"),this.dropdownOpen=!1,this.removeAttribute("aria-expanded")}getDropdownContainer(){var t;return this.id?(t=this.parentElement)==null?void 0:t.querySelector(`div[data-trigger="${this.id}"]`):null}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Xo(this.iconName)}-filled`}renderBadge(t){return Object.values(py).includes(this.badgeType)?S`
5491
+ `,...xt()],yy=PS;var le=class extends Or{constructor(){super();this.cannotActivate=em.CANNOT_ACTIVATE;this.maxCounter=em.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.dropdownOpen=!1;this.sideNavigationContext=Ie.consume({host:this,context:Ts.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested()),this.toggleAttribute("in-dropdown-container",this.isInsideDropdownContainer())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var i;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild")||t.has("dropdownOpen"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(i=this.sideNavigationContext)==null?void 0:i.value;e&&(this.showLabel=this.isNested()||this.isInsideDropdownContainer()?!0:e.expanded,!e.expanded&&this.dropdownOpen&&this.closeDropdown(),!e.isDropdownSubmenuType&&this.dropdownOpen&&this.closeDropdown(),e.isDropdownSubmenuType&&this.hasActiveChild&&e.isDropDownParent(this)&&(e.expanded&&this.dropdownOpen?(this.removeAttribute("active"),this.active=!1):(this.setAttribute("active",""),this.active=!0)))}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.disabled||this.dropdownOpen||this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${ze()}`);let t=document.createElement(Zn);t.id=`mdc-navmenuitem-tooltip-${ze()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${Zn}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ae)return!0;t=t.parentElement}return!1}isInsideDropdownContainer(){let t=this.parentElement;for(;t;){if(t.matches("div[data-trigger]"))return!0;t=t.parentElement}return!1}handleClickEvent(){var e;if(this.disabled||this.cannotActivate||this.softDisabled)return;let t=(e=this.sideNavigationContext)==null?void 0:e.value;if(t!=null&&t.isDropdownSubmenuType&&(t!=null&&t.expanded)&&(t!=null&&t.isDropDownParent(this))){if(this.toggleDropdown(),this.dropdownOpen){let i=this.getDropdownContainer(),a=i==null?void 0:i.querySelector(hr);a==null||a.focus()}return}this.emitNavMenuItemActiveChange(this.active)}toggleDropdown(){let t=this.getDropdownContainer();t&&(this.dropdownOpen=!this.dropdownOpen,t.style.display=this.dropdownOpen?"flex":"none",this.dropdownOpen?this.setAttribute("aria-expanded","true"):this.removeAttribute("aria-expanded"))}openDropdown(){if(this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="flex"),this.dropdownOpen=!0,this.setAttribute("aria-expanded","true")}closeDropdown(){if(!this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="none"),this.dropdownOpen=!1,this.removeAttribute("aria-expanded")}getDropdownContainer(){var t;return this.id?(t=this.parentElement)==null?void 0:t.querySelector(`div[data-trigger="${this.id}"]`):null}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Zo(this.iconName)}-filled`}renderBadge(t){return Object.values(uy).includes(this.badgeType)?S`
5492
5492
  <mdc-badge
5493
5493
  part="${t?"":"badge"}"
5494
5494
  type="${tt(this.badgeType)}"
@@ -5524,14 +5524,14 @@
5524
5524
  ${this.renderBadge(this.showLabel)}
5525
5525
  `:U}
5526
5526
  ${e&&i?S` <mdc-icon
5527
- name=${Qp.DOWN_ARROW}
5527
+ name=${tm.DOWN_ARROW}
5528
5528
  length-unit="rem"
5529
5529
  part="trailing-arrow-dropdown"
5530
5530
  class="${this.dropdownOpen?"arrow-rotated":""}"
5531
5531
  >
5532
5532
  </mdc-icon>`:U}
5533
- ${a?S` <mdc-icon name=${Qp.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:U}
5534
- `}};le.styles=[...Or.styles,...gy],h([u({type:Boolean,reflect:!0})],le.prototype,"active",2),h([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],le.prototype,"cannotActivate",2),h([u({type:String,attribute:"icon-name",reflect:!0})],le.prototype,"iconName",2),h([u({type:String,reflect:!0,attribute:"badge-type"})],le.prototype,"badgeType",2),h([u({type:Number,reflect:!0})],le.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],le.prototype,"maxCounter",2),h([u({type:String,reflect:!0,attribute:"nav-id"})],le.prototype,"navId",2),h([u({type:Boolean,reflect:!0,attribute:"show-label"})],le.prototype,"showLabel",2),h([u({type:String,attribute:"aria-label"})],le.prototype,"ariaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],le.prototype,"disableAriaCurrent",2),h([u({type:String,reflect:!0,attribute:"tooltip-text"})],le.prototype,"tooltipText",2),h([u({type:String,reflect:!0,attribute:"tooltip-placement"})],le.prototype,"tooltipPlacement",2),h([u({type:String,reflect:!0,attribute:"tooltip-type"})],le.prototype,"tooltipType",2),h([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],le.prototype,"tooltipAppearance",2),h([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],le.prototype,"tooltipBoundaryPadding",2),h([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],le.prototype,"isActiveParentTooltipText",2),h([dt()],le.prototype,"hasActiveChild",2),h([dt()],le.prototype,"dropdownOpen",2);var om=le;om.register(hr);var DS=om;var by="check-bold",xr=V.constructTagName("option");var vc=V.constructTagName("optgroup"),sm="header-id";var PS=z`
5533
+ ${a?S` <mdc-icon name=${tm.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:U}
5534
+ `}};le.styles=[...Or.styles,...yy],h([u({type:Boolean,reflect:!0})],le.prototype,"active",2),h([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],le.prototype,"cannotActivate",2),h([u({type:String,attribute:"icon-name",reflect:!0})],le.prototype,"iconName",2),h([u({type:String,reflect:!0,attribute:"badge-type"})],le.prototype,"badgeType",2),h([u({type:Number,reflect:!0})],le.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],le.prototype,"maxCounter",2),h([u({type:String,reflect:!0,attribute:"nav-id"})],le.prototype,"navId",2),h([u({type:Boolean,reflect:!0,attribute:"show-label"})],le.prototype,"showLabel",2),h([u({type:String,attribute:"aria-label"})],le.prototype,"ariaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],le.prototype,"disableAriaCurrent",2),h([u({type:String,reflect:!0,attribute:"tooltip-text"})],le.prototype,"tooltipText",2),h([u({type:String,reflect:!0,attribute:"tooltip-placement"})],le.prototype,"tooltipPlacement",2),h([u({type:String,reflect:!0,attribute:"tooltip-type"})],le.prototype,"tooltipType",2),h([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],le.prototype,"tooltipAppearance",2),h([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],le.prototype,"tooltipBoundaryPadding",2),h([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],le.prototype,"isActiveParentTooltipText",2),h([dt()],le.prototype,"hasActiveChild",2),h([dt()],le.prototype,"dropdownOpen",2);var am=le;am.register(hr);var FS=am;var Ey="check-bold",xr=V.constructTagName("option");var vc=V.constructTagName("optgroup"),nm="header-id";var $S=z`
5535
5535
  :host {
5536
5536
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
5537
5537
  }
@@ -5547,9 +5547,9 @@
5547
5547
  :host([data-hidden]) {
5548
5548
  display: none;
5549
5549
  }
5550
- `,yy=[PS];var xa=class extends oe(Xt(Z)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let o=this.label?S`
5550
+ `,Ty=[$S];var xa=class extends oe(Xt(Q)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let o=this.label?S`
5551
5551
  <mdc-text
5552
- id="${sm}"
5552
+ id="${nm}"
5553
5553
  part="header-text"
5554
5554
  type="${at.BODY_MIDSIZE_BOLD}"
5555
5555
  tagname="${pt.SPAN}"
@@ -5558,13 +5558,13 @@
5558
5558
  `:U;return S`
5559
5559
  <div
5560
5560
  role="${et.GROUP}"
5561
- aria-labelledby="${this.label?sm:""}"
5561
+ aria-labelledby="${this.label?nm:""}"
5562
5562
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
5563
5563
  >
5564
5564
  ${o}
5565
5565
  <slot role="${et.PRESENTATION}"></slot>
5566
5566
  </div>
5567
- `}};xa.styles=[...Z.styles,...yy],h([u({type:String,reflect:!0})],xa.prototype,"label",2),h([qt({selector:xr})],xa.prototype,"options",2);var am=xa;am.register(vc);var FS=am;var $S=[$r,z`
5567
+ `}};xa.styles=[...Q.styles,...Ty],h([u({type:String,reflect:!0})],xa.prototype,"label",2),h([jt({selector:xr})],xa.prototype,"options",2);var lm=xa;lm.register(vc);var VS=lm;var zS=[$r,z`
5568
5568
  :host {
5569
5569
  --mdc-listitem-column-gap: 0.75rem;
5570
5570
  --mdc-option-icon-width: 1rem;
@@ -5593,7 +5593,7 @@
5593
5593
  :host([data-hidden]) {
5594
5594
  display: none;
5595
5595
  }
5596
- `],Ey=$S;var xs=class extends me(Wi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=Un.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",by):U;return S`
5596
+ `],xy=zS;var xs=class extends me(Wi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=Un.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Ey):U;return S`
5597
5597
  <div part="leading">
5598
5598
  <slot name="leading-controls">
5599
5599
  ${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):U}
@@ -5604,11 +5604,11 @@
5604
5604
  </div>
5605
5605
  </div>
5606
5606
  <div part="trailing">${t}</div>
5607
- `}};xs.styles=[...Wi.styles,...Ey],h([u({type:Boolean,reflect:!0})],xs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],xs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],xs.prototype,"ariaLabel",2);var nm=xs;nm.register(xr);var VS=nm;var lm={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Ty=V.constructTagName("password");var zS=[z`
5607
+ `}};xs.styles=[...Wi.styles,...xy],h([u({type:Boolean,reflect:!0})],xs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],xs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],xs.prototype,"ariaLabel",2);var dm=xs;dm.register(xr);var BS=dm;var cm={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Ay=V.constructTagName("password");var HS=[z`
5608
5608
  input::-ms-reveal {
5609
5609
  display: none;
5610
5610
  }
5611
- `],xy=zS;var As=class extends qr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let e=t||this.value;return e?S`
5611
+ `],Sy=HS;var As=class extends jr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let e=t||this.value;return e?S`
5612
5612
  <mdc-button
5613
5613
  part="trailing-button"
5614
5614
  class="own-focus-ring ${e?"":"hidden"}"
@@ -5617,9 +5617,9 @@
5617
5617
  size="${Kt.ICON_SIZE}"
5618
5618
  @click=${this.toggleShowPassword}
5619
5619
  aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
5620
- prefix-icon=${this.showPassword?lm.HIDE_BOLD:lm.SHOW_BOLD}
5620
+ prefix-icon=${this.showPassword?cm.HIDE_BOLD:cm.SHOW_BOLD}
5621
5621
  ></mdc-button>
5622
- `:U}renderInputElement(t,e){let i=this.showPassword?So.TEXT:So.PASSWORD;return super.renderInputElement(i,e)}};As.styles=[...qr.styles,...xy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],As.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],As.prototype,"hideButtonAriaLabel",2),h([dt()],As.prototype,"showPassword",2);var dm=As;dm.register(Ty);var BS=dm;var gc=V.constructTagName("progressbar"),bc={DEFAULT:"default",INLINE:"inline"},Ay={VARIANT:bc.DEFAULT,VALIDATION:Jt.DEFAULT};var HS=[Tt,z`
5622
+ `:U}renderInputElement(t,e){let i=this.showPassword?Io.TEXT:Io.PASSWORD;return super.renderInputElement(i,e)}};As.styles=[...jr.styles,...Sy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],As.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],As.prototype,"hideButtonAriaLabel",2),h([dt()],As.prototype,"showPassword",2);var hm=As;hm.register(Ay);var US=hm;var gc=V.constructTagName("progressbar"),bc={DEFAULT:"default",INLINE:"inline"},Iy={VARIANT:bc.DEFAULT,VALIDATION:Jt.DEFAULT};var GS=[Tt,z`
5623
5623
  :host {
5624
5624
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
5625
5625
  --mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
@@ -5692,7 +5692,7 @@
5692
5692
  border: var(--mdc-progressbar-border);
5693
5693
  }
5694
5694
  }
5695
- `],Sy=HS;var Ss=class extends oe(dr){constructor(){super(...arguments);this.variant=Ay.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return S`
5695
+ `],Cy=GS;var Ss=class extends oe(dr){constructor(){super(...arguments);this.variant=Iy.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return S`
5696
5696
  <div
5697
5697
  part="progress-container ${e?"gap":""}"
5698
5698
  role="${et.PROGRESSBAR}"
@@ -5712,7 +5712,7 @@
5712
5712
  </div>
5713
5713
  ${this.renderProgressbar()} ${this.renderHelperText()}
5714
5714
  `}
5715
- `}};Ss.styles=[...dr.styles,...Sy],h([u({type:String,reflect:!0})],Ss.prototype,"variant",2),h([u({type:String,reflect:!0})],Ss.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],Ss.prototype,"error",2);var rl=Ss;rl.register(gc);var US=rl;var Iy=V.constructTagName("progressspinner"),ye={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},cm={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var hm=n=>{if(n===0)return 0;let o=n/100*ye.CIRCUMFERENCE-ye.GAP_SIZE;return Math.max(o,.1*n)},Cy=n=>{let o=ye.CIRCUMFERENCE-hm(n)-2*ye.GAP_SIZE;return n===0?ye.CIRCUMFERENCE:o<0?0:o},_y=n=>n===0?0:ye.GAP_SIZE*.5,wy=(n,o)=>{let t=o+ye.GAP_SIZE*1.5;return n===0?0:t};var GS=z`
5715
+ `}};Ss.styles=[...dr.styles,...Cy],h([u({type:String,reflect:!0})],Ss.prototype,"variant",2),h([u({type:String,reflect:!0})],Ss.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],Ss.prototype,"error",2);var rl=Ss;rl.register(gc);var KS=rl;var _y=V.constructTagName("progressspinner"),ye={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},pm={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var mm=n=>{if(n===0)return 0;let o=n/100*ye.CIRCUMFERENCE-ye.GAP_SIZE;return Math.max(o,.1*n)},wy=n=>{let o=ye.CIRCUMFERENCE-mm(n)-2*ye.GAP_SIZE;return n===0?ye.CIRCUMFERENCE:o<0?0:o},ky=n=>n===0?0:ye.GAP_SIZE*.5,Ny=(n,o)=>{let t=o+ye.GAP_SIZE*1.5;return n===0?0:t};var WS=z`
5716
5716
  :host {
5717
5717
  --mdc-spinner-size: 3rem;
5718
5718
  --mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
@@ -5759,7 +5759,7 @@
5759
5759
  color: var(--mdc-progress-error-color);
5760
5760
  margin: calc(1 / 6 * var(--mdc-spinner-size));
5761
5761
  }
5762
- `,ky=[GS];var yc=class extends rl{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let o=hm(this.clampedValue),t=Cy(this.clampedValue),e=_y(this.clampedValue),i=wy(this.clampedValue,o);return S`
5762
+ `,Ly=[WS];var yc=class extends rl{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let o=mm(this.clampedValue),t=wy(this.clampedValue),e=ky(this.clampedValue),i=Ny(this.clampedValue,o);return S`
5763
5763
  <div
5764
5764
  part="spinner-container ${this.variant}"
5765
5765
  role="${et.PROGRESSBAR}"
@@ -5793,7 +5793,7 @@
5793
5793
  <mdc-icon
5794
5794
  part="error-icon"
5795
5795
  aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
5796
- name="${cm.ERROR_LEGACY_FILLED}"
5796
+ name="${pm.ERROR_LEGACY_FILLED}"
5797
5797
  size="${ye.ERROR_ICON_SIZE}"
5798
5798
  length-unit="${ye.ICON_LENGTH_UNIT}"
5799
5799
  ></mdc-icon>
@@ -5801,11 +5801,11 @@
5801
5801
  <mdc-icon
5802
5802
  part="success-icon"
5803
5803
  aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
5804
- name="${cm.CHECK_CIRCLE_BOLD}"
5804
+ name="${pm.CHECK_CIRCLE_BOLD}"
5805
5805
  size="${ye.SUCCESS_ICON_SIZE}"
5806
5806
  length-unit="${ye.ICON_LENGTH_UNIT}"
5807
5807
  ></mdc-icon>
5808
- `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};yc.styles=[...Z.styles,...ky];var pm=yc;pm.register(Iy);var KS=pm;var WS=[Tt,z`
5808
+ `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};yc.styles=[...Q.styles,...Ly];var um=yc;um.register(_y);var YS=um;var qS=[Tt,z`
5809
5809
  :host {
5810
5810
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
5811
5811
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -5865,7 +5865,7 @@
5865
5865
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
5866
5866
  }
5867
5867
  }
5868
- `,...xt(!0,"parent-to-child")],Ny=WS;var il=class extends Ot(Nt(Ve(me(te)))){constructor(){super();this.checked=!1;this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.role=et.RADIO,this.shouldRenderLabel=!1,this.helpTextType=void 0,this.toggletipPlacement=void 0,this.toggletipStrategy=void 0,this.updateAriaLabel()}firstUpdated(t){this.updateTabIndex(),this.autoFocusOnMount&&(this.elementToAutoFocus=this),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){let t=this.getRootNode();return Array.from(t.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(e=>{e.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(e=>{this.onerror&&this.onerror(e)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&this.setValidity(),this.updateTabIndex()}setGroupValidity(t,e){this.updateComplete.then(()=>{t.forEach(i=>i.setComponentValidity(e))}).catch(i=>{var a;return(a=this.onerror)==null?void 0:a.call(this,i)})}setActualFormValue(){let t=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(t,!0),this.internals.setFormValue(this.value||"on");else{let e=t.some(d=>d.required),i=t.some(d=>d.checked),a=e&&!i;this.setGroupValidity(t,!a),this.internals.setFormValue(null)}}handleChange(t=!1){if(this.checked||this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(i=>{i.checked=!1}),this.checked=!0,t&&super.click(),this.emitCheckedChangeEvent()}click(){this.handleChange(!0)}updateRadio(t,e){let i=t[e];i.focus(),i.handleChange()}handleClick(){this.handleChange()}emitCheckedChangeEvent(){this.checked&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){var f;if(this.disabled)return;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault();let a=this.getAllRadiosWithinSameGroup().filter(v=>!v.disabled),d=a.indexOf(this);if(this.getKeyboardNavMode()===re.SPATIAL){e===K.ENTER&&(this.updateRadio(a,d),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===K.DOWN||e===K.RIGHT){let v=(d+1)%a.length;this.updateRadio(a,v)}else if(e===K.UP||e===K.LEFT){let v=(d-1+a.length)%a.length;this.updateRadio(a,v)}else e===K.SPACE&&this.updateRadio(a,d);this.updateTabIndex(),e===K.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===re.SPATIAL,e=this.getAllRadiosWithinSameGroup(),i=e.find(d=>d.checked),a=e.find(d=>!d.disabled);e.forEach(d=>{d.tabIndex=-1,(t||d===i||!i&&d===a)&&(d.tabIndex=0)})}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked.toString(),this.setActualFormValue()),t.has("label")&&this.updateAriaLabel()}updateAriaLabel(){!this.ariaLabel&&this.ariaLabel!==this.label&&(this.ariaLabel=this.label||"")}setValidity(){this.required&&!this.checked&&this.validationMessage&&this.internals.setValidity({valueMissing:!0,customError:!0},this.validationMessage,this),this.internals.setValidity({})}handleIndicatorSlotChange(t){let i=t.target.assignedNodes({flatten:!0}).filter(a=>a.nodeType===Node.ELEMENT_NODE);this.classList.toggle("mdc-focus-ring",i.length>0)}render(){return S`
5868
+ `,...xt(!0,"parent-to-child")],My=qS;var il=class extends Ot(Nt(Ve(me(te)))){constructor(){super();this.checked=!1;this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.role=et.RADIO,this.shouldRenderLabel=!1,this.helpTextType=void 0,this.toggletipPlacement=void 0,this.toggletipStrategy=void 0,this.updateAriaLabel()}firstUpdated(t){this.updateTabIndex(),this.autoFocusOnMount&&(this.elementToAutoFocus=this),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){let t=this.getRootNode();return Array.from(t.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(e=>{e.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(e=>{this.onerror&&this.onerror(e)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&this.setValidity(),this.updateTabIndex()}setGroupValidity(t,e){this.updateComplete.then(()=>{t.forEach(i=>i.setComponentValidity(e))}).catch(i=>{var a;return(a=this.onerror)==null?void 0:a.call(this,i)})}setActualFormValue(){let t=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(t,!0),this.internals.setFormValue(this.value||"on");else{let e=t.some(d=>d.required),i=t.some(d=>d.checked),a=e&&!i;this.setGroupValidity(t,!a),this.internals.setFormValue(null)}}handleChange(t=!1){if(this.checked||this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(i=>{i.checked=!1}),this.checked=!0,t&&super.click(),this.emitCheckedChangeEvent()}click(){this.handleChange(!0)}updateRadio(t,e){let i=t[e];i.focus(),i.handleChange()}handleClick(){this.handleChange()}emitCheckedChangeEvent(){this.checked&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){var f;if(this.disabled)return;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault();let a=this.getAllRadiosWithinSameGroup().filter(v=>!v.disabled),d=a.indexOf(this);if(this.getKeyboardNavMode()===re.SPATIAL){e===K.ENTER&&(this.updateRadio(a,d),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===K.DOWN||e===K.RIGHT){let v=(d+1)%a.length;this.updateRadio(a,v)}else if(e===K.UP||e===K.LEFT){let v=(d-1+a.length)%a.length;this.updateRadio(a,v)}else e===K.SPACE&&this.updateRadio(a,d);this.updateTabIndex(),e===K.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===re.SPATIAL,e=this.getAllRadiosWithinSameGroup(),i=e.find(d=>d.checked),a=e.find(d=>!d.disabled);e.forEach(d=>{d.tabIndex=-1,(t||d===i||!i&&d===a)&&(d.tabIndex=0)})}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked.toString(),this.setActualFormValue()),t.has("label")&&this.updateAriaLabel()}updateAriaLabel(){!this.ariaLabel&&this.ariaLabel!==this.label&&(this.ariaLabel=this.label||"")}setValidity(){this.required&&!this.checked&&this.validationMessage&&this.internals.setValidity({valueMissing:!0,customError:!0},this.validationMessage,this),this.internals.setValidity({})}handleIndicatorSlotChange(t){let i=t.target.assignedNodes({flatten:!0}).filter(a=>a.nodeType===Node.ELEMENT_NODE);this.classList.toggle("mdc-focus-ring",i.length>0)}render(){return S`
5869
5869
  <slot name="indicator" @slotchange=${this.handleIndicatorSlotChange}>
5870
5870
  <mdc-staticradio
5871
5871
  part="radio-indicator"
@@ -5881,7 +5881,7 @@
5881
5881
  <div part="label-text">
5882
5882
  <slot name="label">${this.renderLabelElement()}</slot>
5883
5883
  </div>
5884
- `}};il.styles=[...te.styles,...Ny],h([u({type:Boolean,reflect:!0})],il.prototype,"checked",2);var mm=il;var Ec=V.constructTagName("radio");mm.register(Ec);var YS=mm;var jS=new RegExp(`^(${Ec}|${Cd})$`,"i"),ol=class extends oc{constructor(){super();this.name="";this.isRadio=!0}connectedCallback(){super.connectedCallback(),this.toggletipPlacement=void 0,this.toggletipStrategy=void 0}firstUpdated(){var t;Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]).flatMap(e=>e.assignedElements({flatten:!0})).filter(e=>jS.test(e.tagName)).forEach(e=>{e.hasAttribute("name")||e.setAttribute("name",this.name),e.toggleAttribute("required",this.required)})}};ol.styles=[...oc.styles],h([u({type:String,reflect:!0})],ol.prototype,"name",2);var um=ol;var Ly=V.constructTagName("radiogroup");um.register(Ly);var qS=um;var XS=z`
5884
+ `}};il.styles=[...te.styles,...My],h([u({type:Boolean,reflect:!0})],il.prototype,"checked",2);var fm=il;var Ec=V.constructTagName("radio");fm.register(Ec);var jS=fm;var XS=new RegExp(`^(${Ec}|${Cd})$`,"i"),ol=class extends oc{constructor(){super();this.name="";this.isRadio=!0}connectedCallback(){super.connectedCallback(),this.toggletipPlacement=void 0,this.toggletipStrategy=void 0}firstUpdated(){var t;Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]).flatMap(e=>e.assignedElements({flatten:!0})).filter(e=>XS.test(e.tagName)).forEach(e=>{e.hasAttribute("name")||e.setAttribute("name",this.name),e.toggleAttribute("required",this.required)})}};ol.styles=[...oc.styles],h([u({type:String,reflect:!0})],ol.prototype,"name",2);var vm=ol;var Oy=V.constructTagName("radiogroup");vm.register(Oy);var ZS=vm;var QS=z`
5885
5885
  :host::part(input-text) {
5886
5886
  white-space: nowrap;
5887
5887
  flex: 0 0 auto;
@@ -5921,10 +5921,10 @@
5921
5921
  slot[name='filters']::slotted(:first-child) {
5922
5922
  margin-left: 0.25rem;
5923
5923
  }
5924
- `,My=[XS];var Oy=V.constructTagName("searchfield"),Tc={TYPE:So.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var ZS=[Gd,fa,Zl],Ry=ZS.join(", ");var Is=class extends bi(Ot(qr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===K.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===K.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===K.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===K.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===K.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,a=i.value.length;i.setSelectionRange(a,a),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var d,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),a=i&&(f=(d=this.chips)==null?void 0:d.indexOf(i))!=null?f:-1;a>=0&&(this.focusedChipIndex=a,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var d;super.handleKeyDown(t);let e=this.getActionForKeyEvent(t);if(e===K.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((d=this.chips)!=null&&d.length))return;let i=this.inputElement,a=i.selectionStart===0&&i.selectionEnd===0;if(e===K.BACKSPACE&&a){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===K.LEFT&&a){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===K.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}focus(t){var e;(e=this.inputElement)==null||e.focus(t)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=Tc.ICON,this.trailingButton=Tc.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(Ry)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove()}clearInputText(){var e;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(fa)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,a,d;if((i=this.chips)!=null&&i.includes(t))return t;let e=(a=t.getRootNode())==null?void 0:a.host;return e&&((d=this.chips)!=null&&d.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),a=t.getBoundingClientRect();a.left<i.left?e.scrollLeft-=i.left-a.left:a.right>i.right&&(e.scrollLeft+=a.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let a=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,a)}render(){return S`
5924
+ `,Ry=[QS];var Dy=V.constructTagName("searchfield"),Tc={TYPE:Io.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var JS=[Gd,fa,Zl],Py=JS.join(", ");var Is=class extends bi(Ot(jr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===K.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===K.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===K.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===K.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===K.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,a=i.value.length;i.setSelectionRange(a,a),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var d,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),a=i&&(f=(d=this.chips)==null?void 0:d.indexOf(i))!=null?f:-1;a>=0&&(this.focusedChipIndex=a,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var d;super.handleKeyDown(t);let e=this.getActionForKeyEvent(t);if(e===K.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((d=this.chips)!=null&&d.length))return;let i=this.inputElement,a=i.selectionStart===0&&i.selectionEnd===0;if(e===K.BACKSPACE&&a){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===K.LEFT&&a){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===K.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}focus(t){var e;(e=this.inputElement)==null||e.focus(t)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=Tc.ICON,this.trailingButton=Tc.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(Py)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove()}clearInputText(){var e;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(fa)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,a,d;if((i=this.chips)!=null&&i.includes(t))return t;let e=(a=t.getRootNode())==null?void 0:a.host;return e&&((d=this.chips)!=null&&d.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),a=t.getBoundingClientRect();a.left<i.left?e.scrollLeft-=i.left-a.left:a.right>i.right&&(e.scrollLeft+=a.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let a=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,a)}render(){return S`
5925
5925
  ${this.renderLabelElement()}
5926
5926
  <div
5927
- class="${jr({"mdc-focus-ring":this.isInputFocused})}"
5927
+ class="${qr({"mdc-focus-ring":this.isInputFocused})}"
5928
5928
  part="input-container"
5929
5929
  >
5930
5930
  ${this.renderLeadingIcon()}
@@ -5934,7 +5934,7 @@
5934
5934
  </div>
5935
5935
  ${this.renderTrailingButton(this.hasChips)}
5936
5936
  </div>
5937
- `}};Is.styles=[...qr.styles,...My],h([qt({slot:"filters"})],Is.prototype,"chips",2),h([dt()],Is.prototype,"isInputFocused",2),h([dt()],Is.prototype,"hasChips",2);var Aa=Is;Aa.register(Oy);var QS=Aa;var JS=z`
5937
+ `}};Is.styles=[...jr.styles,...Ry],h([jt({slot:"filters"})],Is.prototype,"chips",2),h([dt()],Is.prototype,"isInputFocused",2),h([dt()],Is.prototype,"hasChips",2);var Aa=Is;Aa.register(Dy);var tI=Aa;var eI=z`
5938
5938
  :host::part(filters-container) {
5939
5939
  display: flex;
5940
5940
  flex-wrap: nowrap;
@@ -5970,7 +5970,7 @@
5970
5970
  min-width: auto;
5971
5971
  padding: 0.75rem 0.5rem;
5972
5972
  }
5973
- `,Dy=[JS];var Py=V.constructTagName("searchpopover"),fm={TYPE:So.TEXT,DISPLAY_POPOVER:!1},vm="searchpopover-container-triggerid",xc="searchpopover-popoverid";var No=class extends Aa{constructor(){super(...arguments);this.displayPopover=fm.DISPLAY_POPOVER;this.placement=Mt.BOTTOM_START;this.popoverZIndex=void 0}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="filters-container"]'))!=null?e:null}handlePopoverHidden(){var t;(this===document.activeElement||this.contains(document.activeElement))&&((t=this.inputElement)==null||t.focus())}renderInputElement(){var e,i;let t=this.hasChips?"":this.placeholder;return S`<input
5973
+ `,Fy=[eI];var $y=V.constructTagName("searchpopover"),gm={TYPE:Io.TEXT,DISPLAY_POPOVER:!1},bm="searchpopover-container-triggerid",xc="searchpopover-popoverid";var Lo=class extends Aa{constructor(){super(...arguments);this.displayPopover=gm.DISPLAY_POPOVER;this.placement=Mt.BOTTOM_START;this.popoverZIndex=void 0}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="filters-container"]'))!=null?e:null}handlePopoverHidden(){var t;(this===document.activeElement||this.contains(document.activeElement))&&((t=this.inputElement)==null||t.focus())}renderInputElement(){var e,i;let t=this.hasChips?"":this.placeholder;return S`<input
5974
5974
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
5975
5975
  part="input-text"
5976
5976
  id="${this.inputId}"
@@ -5979,7 +5979,7 @@
5979
5979
  ?disabled="${this.disabled}"
5980
5980
  ?readonly="${this.readonly}"
5981
5981
  ?required="${this.required}"
5982
- type="${fm.TYPE}"
5982
+ type="${gm.TYPE}"
5983
5983
  aria-expanded="${this.displayPopover?"true":"false"}"
5984
5984
  aria-controls="${xc}"
5985
5985
  aria-owns="${xc}"
@@ -6002,9 +6002,9 @@
6002
6002
  />`}render(){return S`
6003
6003
  ${this.renderLabelElement()}
6004
6004
  <div
6005
- class="${jr({"mdc-focus-ring":this.isInputFocused})}"
6005
+ class="${qr({"mdc-focus-ring":this.isInputFocused})}"
6006
6006
  part="input-container"
6007
- id="${vm}"
6007
+ id="${bm}"
6008
6008
  >
6009
6009
  ${this.renderLeadingIcon()}
6010
6010
  <div part="filters-container" @click=${this.handleFilterContainerClick} tabindex="-1">
@@ -6014,7 +6014,7 @@
6014
6014
  ${this.renderTrailingButton(this.hasChips)}
6015
6015
  </div>
6016
6016
  <mdc-popover
6017
- triggerID="${vm}"
6017
+ triggerID="${bm}"
6018
6018
  id="${xc}"
6019
6019
  trigger="manual"
6020
6020
  interactive
@@ -6031,7 +6031,7 @@
6031
6031
  >
6032
6032
  <slot></slot>
6033
6033
  </mdc-popover>
6034
- `}};No.styles=[...Aa.styles,...Dy],h([u({type:Boolean,reflect:!0,attribute:"display-popover"})],No.prototype,"displayPopover",2),h([u({type:String,reflect:!0})],No.prototype,"placement",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],No.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"popover-aria-label"})],No.prototype,"popoverAriaLabel",2);var gm=No;gm.register(Py);var tI=gm;var Fy=V.constructTagName("select"),bm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Ac="select-base-triggerid",$y="select-listbox",Vy={DISABLE_FLIP:!1};var eI=z`
6034
+ `}};Lo.styles=[...Aa.styles,...Fy],h([u({type:Boolean,reflect:!0,attribute:"display-popover"})],Lo.prototype,"displayPopover",2),h([u({type:String,reflect:!0})],Lo.prototype,"placement",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Lo.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"popover-aria-label"})],Lo.prototype,"popoverAriaLabel",2);var ym=Lo;ym.register($y);var rI=ym;var Vy=V.constructTagName("select"),Em={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Ac="select-base-triggerid",zy="select-listbox",By={DISABLE_FLIP:!1};var iI=z`
6035
6035
  :host {
6036
6036
  --mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
6037
6037
  --mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
@@ -6141,7 +6141,7 @@
6141
6141
  :host([soft-disabled])::part(base-text) {
6142
6142
  --mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
6143
6143
  }
6144
- `,zy=[eI,...xt(!0)];var pr=class extends vi(Nt(gi(Ve(me(oe(te)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=Vy.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||a.length===0)return;let d=i+1;if(d>=a.length&&(d=i-1),d===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(d),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?a[d]:a[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${xr}:not([disabled])`);this.addEventListener(Zt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var a;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((a=this.selectedOption)==null?void 0:a.value)&&this.navItems.length){let d=this.getFirstSelectedOption(),f=this.getFirstOption(),v=this.navItems.find(R=>R.value===i),A=null;if(v)A=v;else if(this.placeholder)A=null;else if(f)A=f;else if(d)A=d;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(R=>{this.onerror&&this.onerror(R)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===xr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,a;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(a=this.inputElement)==null||a.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(a=>a.value===t||a.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=Bd(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var a;return(a=i.getAttribute("label"))==null?void 0:a.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],a=this.filterOptionsBySearchKey(i,t),d=null;if(a.length)[d]=a;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],v=this.filterOptionsBySearchKey(i,t[0]),A=v.filter(R=>R===f);d=A.length?A[0]:v[0]}this.navItems.indexOf(d)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(d))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.DEFAULT)switch(e){case K.DOWN:case K.UP:case K.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case K.SPACE:t.preventDefault(),t.stopPropagation();break;case K.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case K.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===K.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&e===K.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===re.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,a,d,f;return S`
6144
+ `,Hy=[iI,...xt(!0)];var pr=class extends vi(Nt(gi(Ve(me(oe(te)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=By.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||a.length===0)return;let d=i+1;if(d>=a.length&&(d=i-1),d===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(d),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?a[d]:a[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${xr}:not([disabled])`);this.addEventListener(Zt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var a;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((a=this.selectedOption)==null?void 0:a.value)&&this.navItems.length){let d=this.getFirstSelectedOption(),f=this.getFirstOption(),v=this.navItems.find(R=>R.value===i),x=null;if(v)x=v;else if(this.placeholder)x=null;else if(f)x=f;else if(d)x=d;else return;this.updateComplete.then(()=>{this.setSelectedOption(x)}).catch(R=>{this.onerror&&this.onerror(R)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===xr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,a;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(a=this.inputElement)==null||a.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(a=>a.value===t||a.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=Bd(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var a;return(a=i.getAttribute("label"))==null?void 0:a.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],a=this.filterOptionsBySearchKey(i,t),d=null;if(a.length)[d]=a;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],v=this.filterOptionsBySearchKey(i,t[0]),x=v.filter(R=>R===f);d=x.length?x[0]:v[0]}this.navItems.indexOf(d)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(d))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.DEFAULT)switch(e){case K.DOWN:case K.UP:case K.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case K.SPACE:t.preventDefault(),t.stopPropagation();break;case K.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case K.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===K.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&e===K.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===re.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,a,d,f;return S`
6145
6145
  ${this.renderLabel()}
6146
6146
  <div part="container">
6147
6147
  <div
@@ -6153,7 +6153,7 @@
6153
6153
  tabindex="${this.disabled?"-1":"0"}"
6154
6154
  class="${this.disabled?"":"mdc-focus-ring"}"
6155
6155
  role="${et.COMBOBOX}"
6156
- aria-controls="${$y}"
6156
+ aria-controls="${zy}"
6157
6157
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
6158
6158
  aria-labelledby="${this.label?Kt.HEADING_ID:""}"
6159
6159
  aria-expanded="${this.displayPopover?"true":"false"}"
@@ -6180,7 +6180,7 @@
6180
6180
  <mdc-icon
6181
6181
  size="1"
6182
6182
  length-unit="rem"
6183
- name="${this.displayPopover?bm.ARROW_UP:bm.ARROW_DOWN}"
6183
+ name="${this.displayPopover?Em.ARROW_UP:Em.ARROW_DOWN}"
6184
6184
  ></mdc-icon>
6185
6185
  </div>
6186
6186
  </div>
@@ -6225,7 +6225,7 @@
6225
6225
  </mdc-popover>
6226
6226
  </div>
6227
6227
  ${this.renderHelperText()}
6228
- `}};pr.styles=[...te.styles,...zy],h([u({type:String})],pr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],pr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],pr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],pr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],pr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],pr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],pr.prototype,"backdropAppendTo",2),h([zt(`[id="${Ac}"]`)],pr.prototype,"visualCombobox",2),h([dt()],pr.prototype,"selectedOption",2),h([dt()],pr.prototype,"displayPopover",2);var ym=pr;ym.register(Fy);var rI=ym;var Em=class extends Z{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},Tm=Em;var Sc=V.constructTagName("selectlistbox");Tm.register(Sc);var iI=Tm;Ts.register(Co);var oI=Ts;var By=V.constructTagName("skeleton"),Hy={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},xm={MOTION:!1,VARIANT:Hy.RECTANGULAR};var sI=z`
6228
+ `}};pr.styles=[...te.styles,...Hy],h([u({type:String})],pr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],pr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],pr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],pr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],pr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],pr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],pr.prototype,"backdropAppendTo",2),h([zt(`[id="${Ac}"]`)],pr.prototype,"visualCombobox",2),h([dt()],pr.prototype,"selectedOption",2),h([dt()],pr.prototype,"displayPopover",2);var Tm=pr;Tm.register(Vy);var oI=Tm;var xm=class extends Q{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},Am=xm;var Sc=V.constructTagName("selectlistbox");Am.register(Sc);var sI=Am;Ts.register(_o);var aI=Ts;var Uy=V.constructTagName("skeleton"),Gy={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Sm={MOTION:!1,VARIANT:Gy.RECTANGULAR};var nI=z`
6229
6229
  :host {
6230
6230
  --mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
6231
6231
  --mdc-skeleton-height: 100%;
@@ -6291,7 +6291,7 @@
6291
6291
  ::slotted(*) {
6292
6292
  visibility: hidden;
6293
6293
  }
6294
- `,Uy=sI;var Sa=class extends Z{constructor(){super(...arguments);this.motion=xm.MOTION;this.variant=xm.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return S`<slot @slotchange=${this.checkSlotContent}></slot>`}};Sa.styles=[...Z.styles,Uy],h([u({type:Boolean,reflect:!0})],Sa.prototype,"motion",2),h([u({type:String,reflect:!0})],Sa.prototype,"variant",2);var Am=Sa;Am.register(By);var aI=Am;var nI=[Tt,z`
6294
+ `,Ky=nI;var Sa=class extends Q{constructor(){super(...arguments);this.motion=Sm.MOTION;this.variant=Sm.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return S`<slot @slotchange=${this.checkSlotContent}></slot>`}};Sa.styles=[...Q.styles,Ky],h([u({type:Boolean,reflect:!0})],Sa.prototype,"motion",2),h([u({type:String,reflect:!0})],Sa.prototype,"variant",2);var Im=Sa;Im.register(Uy);var lI=Im;var dI=[Tt,z`
6295
6295
  :host {
6296
6296
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
6297
6297
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -6355,11 +6355,11 @@
6355
6355
  stroke-dashoffset: -292;
6356
6356
  }
6357
6357
  }
6358
- `],Gy=nI;var Ky=V.constructTagName("spinner"),lI={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},dI={STANDALONE:"standalone",BUTTON:"button"},Ic={VARIANT:dI.STANDALONE,SIZE:lI.MIDSIZE,INVERTED:!1};var Lo=class extends Z{constructor(){super(...arguments);this.inverted=Ic.INVERTED;this.size=Ic.SIZE;this.ariaLabel=null;this.variant=Ic.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?et.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return S`
6358
+ `],Wy=dI;var Yy=V.constructTagName("spinner"),cI={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},hI={STANDALONE:"standalone",BUTTON:"button"},Ic={VARIANT:hI.STANDALONE,SIZE:cI.MIDSIZE,INVERTED:!1};var Mo=class extends Q{constructor(){super(...arguments);this.inverted=Ic.INVERTED;this.size=Ic.SIZE;this.ariaLabel=null;this.variant=Ic.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?et.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return S`
6359
6359
  <svg part="container" viewBox="0 0 100 100">
6360
6360
  <circle part="circle" cx="50" cy="50" r="46"></circle>
6361
6361
  </svg>
6362
- `}};Lo.styles=[...Z.styles,...Gy],h([u({type:Boolean,reflect:!0})],Lo.prototype,"inverted",2),h([u({type:String,reflect:!0})],Lo.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],Lo.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],Lo.prototype,"variant",2);var Sm=Lo;Sm.register(Ky);var cI=Sm;Mn.register(ob);var hI=Mn;var pI={COMPLETE:"complete",INCOMPLETE:"incomplete"},Im={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Cm={STATUS:pI.INCOMPLETE,ORIENTATION:Im.HORIZONTAL},Wy=V.constructTagName("stepperconnector");var Yy=V.constructTagName("stepperitem"),_m={INLINE:"inline",STACKED:"stacked"},ji={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Cc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},wm={VARIANT:_m.INLINE,STATUS:ji.NOT_STARTED};var _c=V.constructTagName("stepper"),sl={ORIENTATION:Im.HORIZONTAL,VARIANT:_m.INLINE};var wc=class{constructor(o,t){this.orientation=o,this.variant=t}};wc.context=_c;var kc=wc;var mI=z`
6362
+ `}};Mo.styles=[...Q.styles,...Wy],h([u({type:Boolean,reflect:!0})],Mo.prototype,"inverted",2),h([u({type:String,reflect:!0})],Mo.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],Mo.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],Mo.prototype,"variant",2);var Cm=Mo;Cm.register(Yy);var pI=Cm;Mn.register(ab);var mI=Mn;var uI={COMPLETE:"complete",INCOMPLETE:"incomplete"},_m={VERTICAL:"vertical",HORIZONTAL:"horizontal"},wm={STATUS:uI.INCOMPLETE,ORIENTATION:_m.HORIZONTAL},qy=V.constructTagName("stepperconnector");var jy=V.constructTagName("stepperitem"),km={INLINE:"inline",STACKED:"stacked"},qi={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Cc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},Nm={VARIANT:km.INLINE,STATUS:qi.NOT_STARTED};var _c=V.constructTagName("stepper"),sl={ORIENTATION:_m.HORIZONTAL,VARIANT:km.INLINE};var wc=class{constructor(o,t){this.orientation=o,this.variant=t}};wc.context=_c;var kc=wc;var fI=z`
6363
6363
  :host {
6364
6364
  gap: 0.5rem;
6365
6365
  }
@@ -6408,7 +6408,7 @@
6408
6408
  flex-shrink: 1;
6409
6409
  min-inline-size: 6rem;
6410
6410
  }
6411
- `,jy=[Tt,mI];var Ia=class extends Se{constructor(){super({context:kc.context,initialValue:new kc(sl.ORIENTATION,sl.VARIANT)});this.orientation=sl.ORIENTATION;this.variant=sl.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return kc.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return S` <slot></slot> `}};Ia.styles=[...Z.styles,...jy],h([u({type:String,reflect:!0})],Ia.prototype,"orientation",2),h([u({type:String,reflect:!0})],Ia.prototype,"variant",2);var Cs=Ia;Cs.register(_c);var uI=Cs;var fI=z`
6411
+ `,Xy=[Tt,fI];var Ia=class extends Se{constructor(){super({context:kc.context,initialValue:new kc(sl.ORIENTATION,sl.VARIANT)});this.orientation=sl.ORIENTATION;this.variant=sl.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return kc.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return S` <slot></slot> `}};Ia.styles=[...Q.styles,...Xy],h([u({type:String,reflect:!0})],Ia.prototype,"orientation",2),h([u({type:String,reflect:!0})],Ia.prototype,"variant",2);var Cs=Ia;Cs.register(_c);var vI=Cs;var gI=z`
6412
6412
  :host {
6413
6413
  --mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
6414
6414
  --mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
@@ -6443,7 +6443,7 @@
6443
6443
  border-left: 1px solid var(--mdc-stepperconnector-complete-background);
6444
6444
  }
6445
6445
  }
6446
- `,qy=[fI];var Ca=class extends Z{constructor(){super(...arguments);this.status=Cm.STATUS;this.orientation=Cm.ORIENTATION;this.stepperContext=Ie.consume({host:this,context:Cs.Context})}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.orientation&&this.orientation!==e.orientation&&(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};Ca.styles=[...Z.styles,...qy],h([u({type:String,reflect:!0})],Ca.prototype,"status",2),h([u({type:String,reflect:!0})],Ca.prototype,"orientation",2);var km=Ca;km.register(Wy);var vI=km;var gI=z`
6446
+ `,Zy=[gI];var Ca=class extends Q{constructor(){super(...arguments);this.status=wm.STATUS;this.orientation=wm.ORIENTATION;this.stepperContext=Ie.consume({host:this,context:Cs.Context})}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.orientation&&this.orientation!==e.orientation&&(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};Ca.styles=[...Q.styles,...Zy],h([u({type:String,reflect:!0})],Ca.prototype,"status",2),h([u({type:String,reflect:!0})],Ca.prototype,"orientation",2);var Lm=Ca;Lm.register(qy);var bI=Lm;var yI=z`
6447
6447
  :host {
6448
6448
  gap: 0.5rem;
6449
6449
  border-radius: 0.25rem;
@@ -6645,14 +6645,14 @@
6645
6645
  :host([disabled][status='completed'])::part(status-icon) {
6646
6646
  --mdc-icon-fill-color: var(--mds-color-theme-inverted-text-primary-disabled);
6647
6647
  }
6648
- `,Xy=[Tt,gI,...xt()];var qi=class extends Ot(Nt(ii(Xt(Z)))){constructor(){super();this.variant=wm.VARIANT;this.status=wm.STATUS;this.label="";this.stepperContext=Ie.consume({host:this,context:Cs.Context});this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.variant&&this.variant!==e.variant&&(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}handleKeyDown(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.add("pressed"),e===K.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.remove("pressed"),e===K.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===ji.COMPLETED?S`<mdc-icon part="status-icon" name=${Cc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===ji.ERROR_CURRENT||this.status===ji.CURRENT?S`<mdc-icon part="status-icon" name=${Cc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===ji.NOT_STARTED||this.status===ji.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6648
+ `,Qy=[Tt,yI,...xt()];var ji=class extends Ot(Nt(ii(Xt(Q)))){constructor(){super();this.variant=Nm.VARIANT;this.status=Nm.STATUS;this.label="";this.stepperContext=Ie.consume({host:this,context:Cs.Context});this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.variant&&this.variant!==e.variant&&(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}handleKeyDown(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.add("pressed"),e===K.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.remove("pressed"),e===K.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===qi.COMPLETED?S`<mdc-icon part="status-icon" name=${Cc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===qi.ERROR_CURRENT||this.status===qi.CURRENT?S`<mdc-icon part="status-icon" name=${Cc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===qi.NOT_STARTED||this.status===qi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6649
6649
  >${this.stepNumber}</mdc-text
6650
6650
  >`:U}renderHelpText(){if(!this.helpText)return U;let t=S`<mdc-text
6651
6651
  part="help-text"
6652
6652
  tagname=${pt.SPAN}
6653
6653
  type=${at.BODY_MIDSIZE_REGULAR}
6654
6654
  >${this.helpText}</mdc-text
6655
- >`;return this.status===ji.ERROR_INCOMPLETE||this.status===ji.ERROR_CURRENT?S`<div part="help-text-container">
6655
+ >`;return this.status===qi.ERROR_INCOMPLETE||this.status===qi.ERROR_CURRENT?S`<div part="help-text-container">
6656
6656
  <mdc-icon part="help-icon" name=${Cc.ERROR} length-unit="rem" size="1"></mdc-icon>
6657
6657
  ${t}
6658
6658
  </div>`:t}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.classList.remove("pressed"),this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}render(){return S` <div part="status-container">${this.renderStatusIcon()}</div>
@@ -6661,7 +6661,7 @@
6661
6661
  >${this.label}</mdc-text
6662
6662
  >`:U}
6663
6663
  ${this.renderHelpText()}
6664
- </div>`}};qi.styles=[...Z.styles,...Xy],h([u({type:String,reflect:!0})],qi.prototype,"variant",2),h([u({type:String,reflect:!0})],qi.prototype,"status",2),h([u({type:String,reflect:!0})],qi.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],qi.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],qi.prototype,"stepNumber",2);var Nm=qi;Nm.register(Yy);var bI=Nm;var _a=V.constructTagName("tab"),Lm={GLASS:"glass",LINE:"line",PILL:"pill"},Mm={32:32,28:28},wa={VARIANT:Lm.PILL,ACTIVE:!1,SIZE:Mm[32]};var yI=[Tt,z`
6664
+ </div>`}};ji.styles=[...Q.styles,...Qy],h([u({type:String,reflect:!0})],ji.prototype,"variant",2),h([u({type:String,reflect:!0})],ji.prototype,"status",2),h([u({type:String,reflect:!0})],ji.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],ji.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],ji.prototype,"stepNumber",2);var Mm=ji;Mm.register(jy);var EI=Mm;var _a=V.constructTagName("tab"),Om={GLASS:"glass",LINE:"line",PILL:"pill"},Rm={32:32,28:28},wa={VARIANT:Om.PILL,ACTIVE:!1,SIZE:Rm[32]};var TI=[Tt,z`
6665
6665
  :host {
6666
6666
  --mdc-tab-content-gap: 0.5rem;
6667
6667
  --mdc-tab-height: 2rem;
@@ -6895,7 +6895,7 @@
6895
6895
  --mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
6896
6896
  --mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
6897
6897
  }
6898
- `,...xt()],Zy=yI;var Xi=class extends he(cc(ve)){constructor(){super(...arguments);this.active=wa.ACTIVE;this.variant=wa.VARIANT;this.size=wa.SIZE;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(Lm).includes(t)?t:wa.VARIANT)}setSize(t){this.setAttribute("size",Object.values(Mm).includes(t)?`${t}`:wa.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${Xo(this.iconName)}-filled`:void 0}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("size")&&this.setSize(this.size),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
6898
+ `,...xt()],Jy=TI;var Xi=class extends he(cc(ve)){constructor(){super(...arguments);this.active=wa.ACTIVE;this.variant=wa.VARIANT;this.size=wa.SIZE;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(Om).includes(t)?t:wa.VARIANT)}setSize(t){this.setAttribute("size",Object.values(Rm).includes(t)?`${t}`:wa.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${Zo(this.iconName)}-filled`:void 0}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("size")&&this.setSize(this.size),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
6899
6899
  <div part="container">
6900
6900
  <div part="leading">
6901
6901
  <slot name="prefix">
@@ -6927,7 +6927,7 @@
6927
6927
  <slot name="postfix"></slot>
6928
6928
  </div>
6929
6929
  <div part="indicator"></div>
6930
- `}};Xi.styles=[...ve.styles,...Zy],h([u({type:Boolean,reflect:!0})],Xi.prototype,"active",2),h([u({type:String,reflect:!0})],Xi.prototype,"text",2),h([u({type:String,reflect:!0})],Xi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Xi.prototype,"size",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],Xi.prototype,"tabId",2);var Zi=Xi;Zi.register(_a);var Nc=Zi;var Om=n=>n.at(0),Qy=n=>n.at(n.length-1),Jy=(n,o)=>n.find(t=>t.tabId===o),Lc=n=>n.find(o=>o.active);var Mc=n=>{class o extends n{constructor(...e){super(...e),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.navItems||!this.activeTabId)return;let i=Jy(this.navItems,this.activeTabId);if(!(i instanceof Nc))return;this.setActiveTab(i),e.get("activeTabId")&&this.fireTabChangeEvent(i)}}setActiveTab(e){var i;(i=this.navItems)==null||i.forEach(a=>{a===e?a.setAttribute("active",""):a.removeAttribute("active")})}fireTabChangeEvent(e){let i=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(i)}async handleNestedTabActiveChange(e){e.stopPropagation();let i=e.target;i instanceof Nc&&(this.activeTabId=i.tabId)}}return h([u({type:String,attribute:"active-tab-id",reflect:!0})],o.prototype,"activeTabId",2),o};var EI=[$r,z`
6930
+ `}};Xi.styles=[...ve.styles,...Jy],h([u({type:Boolean,reflect:!0})],Xi.prototype,"active",2),h([u({type:String,reflect:!0})],Xi.prototype,"text",2),h([u({type:String,reflect:!0})],Xi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Xi.prototype,"size",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],Xi.prototype,"tabId",2);var Zi=Xi;Zi.register(_a);var Nc=Zi;var Dm=n=>n.at(0),tE=n=>n.at(n.length-1),eE=(n,o)=>n.find(t=>t.tabId===o),Lc=n=>n.find(o=>o.active);var Mc=n=>{class o extends n{constructor(...e){super(...e),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.navItems||!this.activeTabId)return;let i=eE(this.navItems,this.activeTabId);if(!(i instanceof Nc))return;this.setActiveTab(i),e.get("activeTabId")&&this.fireTabChangeEvent(i)}}setActiveTab(e){var i;(i=this.navItems)==null||i.forEach(a=>{a===e?a.setAttribute("active",""):a.removeAttribute("active")})}fireTabChangeEvent(e){let i=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(i)}async handleNestedTabActiveChange(e){e.stopPropagation();let i=e.target;i instanceof Nc&&(this.activeTabId=i.tabId)}}return h([u({type:String,attribute:"active-tab-id",reflect:!0})],o.prototype,"activeTabId",2),o};var xI=[$r,z`
6931
6931
  :host {
6932
6932
  --mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
6933
6933
  --mdc-tablist-gap: 0.5rem;
@@ -6957,7 +6957,7 @@
6957
6957
  :host mdc-button[prefix-icon='arrow-right-regular'] {
6958
6958
  margin-left: var(--mdc-tablist-arrow-button-margin);
6959
6959
  }
6960
- `],tE=[...EI];var eE=V.constructTagName("tablist"),ka={FORWARD:"forward",BACKWARD:"backward"};var Ti=class extends vi(gi(Ot(Nt(Mc(Z))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${_a}:not([disabled])`)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1);let d=this.navItems.at(a);d instanceof Zi&&d.focus(),this.resetTabIndexes(a,!1)}}resetTabIndexAndSetFocus(t,e){var d;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),a=(d=this.navItems)==null?void 0:d.at(t);return a instanceof Zi&&a.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,a;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(d=>d.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(i=Om(this.navItems))==null?void 0:i.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}focus(t){let e=Lc(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof Zi||!(t.target instanceof Zi))return;let e=Lc(this.navItems||[]);if(!(e instanceof Zi))return;let i=this.navItems.findIndex(a=>a===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===ka.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Lc(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var H,J,q;if(!this.navItems||!this.tabsContainer)return;let t=!1;((H=this.shadowRoot)==null?void 0:H.activeElement)instanceof Zo&&(t=!0);let e=Om(this.navItems),i=Qy(this.navItems);if(!e||!i)return;let a=e.getBoundingClientRect().left,d=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().left,f=i.getBoundingClientRect().right,v=(q=this.tabsContainer)==null?void 0:q.getBoundingClientRect().right,A=e.getBoundingClientRect().right,R=i.getBoundingClientRect().left;if(!this.isRtl()){a<=d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>v?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>v?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,R<d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var a;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(t===ka.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=a=>S` ${this.shouldShowArrowButton(a)?S`<mdc-button
6960
+ `],rE=[...xI];var iE=V.constructTagName("tablist"),ka={FORWARD:"forward",BACKWARD:"backward"};var Ti=class extends vi(gi(Ot(Nt(Mc(Q))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.boundHandleFocus=t=>{this.handleFocus(t)};this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${_a}:not([disabled])`)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1);let d=this.navItems.at(a);d instanceof Zi&&d.focus(),this.resetTabIndexes(a,!1)}}resetTabIndexAndSetFocus(t,e){var d;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),a=(d=this.navItems)==null?void 0:d.at(t);return a instanceof Zi&&a.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,a;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(d=>d.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(i=Dm(this.navItems))==null?void 0:i.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.boundHandleFocus)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.boundHandleFocus)}focus(t){let e=Lc(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof Zi||!(t.target instanceof Zi)||t.relatedTarget instanceof mo)return;let e=Lc(this.navItems||[]);if(!(e instanceof Zi))return;let i=this.navItems.findIndex(a=>a===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===ka.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Lc(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var H,J,W;if(!this.navItems||!this.tabsContainer)return;let t=!1;((H=this.shadowRoot)==null?void 0:H.activeElement)instanceof mo&&(t=!0);let e=Dm(this.navItems),i=tE(this.navItems);if(!e||!i)return;let a=e.getBoundingClientRect().left,d=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().left,f=i.getBoundingClientRect().right,v=(W=this.tabsContainer)==null?void 0:W.getBoundingClientRect().right,x=e.getBoundingClientRect().right,R=i.getBoundingClientRect().left;if(!this.isRtl()){a<=d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>v?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}x>v?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,R<d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var a;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(t===ka.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=a=>S` ${this.shouldShowArrowButton(a)?S`<mdc-button
6961
6961
  variant="tertiary"
6962
6962
  prefix-icon="arrow-${a===ka.FORWARD?t:e}-regular"
6963
6963
  aria-label="Scroll tabs ${a===ka.FORWARD?t:e}"
@@ -6966,7 +6966,7 @@
6966
6966
  <div part="container" role="${et.TABLIST}" tabindex="-1" aria-label="${tt(this.dataAriaLabel)}">
6967
6967
  <slot></slot>
6968
6968
  </div>
6969
- ${i(ka.FORWARD)}`}};Ti.styles=[...Z.styles,...tE],Ti.shadowRootOptions={...Z.shadowRootOptions,delegatesFocus:!0},h([u({type:String,attribute:"data-aria-label"})],Ti.prototype,"dataAriaLabel",2),h([zt('[part="container"]')],Ti.prototype,"tabsContainer",2),h([zt("mdc-button:not(:focus-visible)")],Ti.prototype,"notFocusedArrowButton",2),h([dt()],Ti.prototype,"showForwardArrowButton",2),h([dt()],Ti.prototype,"showBackwardArrowButton",2);var Rm=Ti;Rm.register(eE);var TI=Rm;var rE=V.constructTagName("textarea"),Dm={HARD:"hard",SOFT:"soft"},iE={OFF:"off",ON:"on"},Oc={ROWS:5,COLS:40,WRAP:Dm.SOFT};var xI=[z`
6969
+ ${i(ka.FORWARD)}`}};Ti.styles=[...Q.styles,...rE],Ti.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:String,attribute:"data-aria-label"})],Ti.prototype,"dataAriaLabel",2),h([zt('[part="container"]')],Ti.prototype,"tabsContainer",2),h([zt("mdc-button:not(:focus-visible)")],Ti.prototype,"notFocusedArrowButton",2),h([dt()],Ti.prototype,"showForwardArrowButton",2),h([dt()],Ti.prototype,"showBackwardArrowButton",2);var Pm=Ti;Pm.register(iE);var AI=Pm;var oE=V.constructTagName("textarea"),Fm={HARD:"hard",SOFT:"soft"},sE={OFF:"off",ON:"on"},Oc={ROWS:5,COLS:40,WRAP:Fm.SOFT};var SI=[z`
6970
6970
  :host {
6971
6971
  --mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
6972
6972
  --mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
@@ -7091,7 +7091,7 @@
7091
7091
  :host([disabled])::part(resize-button) {
7092
7092
  cursor: default;
7093
7093
  }
7094
- `,...xt(!0)],oE=xI;var He=class extends sc(Ot(Nt(Ve(me(oe(dr)))))){constructor(){super(...arguments);this.rows=Oc.ROWS;this.wrap=Dm.SOFT;this.autocapitalize=ac.OFF;this.autocomplete=iE.OFF;this.resizable=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let e=t.currentTarget;e&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||Oc.ROWS,e.setPointerCapture(t.pointerId),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let e=t.clientY-this.resizeStartY,i=parseFloat(window.getComputedStyle(this.textarea).lineHeight),a=Math.round(e/i);this.rows=Math.max(1,this.resizeStartRows+a)};this.handlePointerUp=t=>{let e=t.currentTarget;e&&(t.type==="pointerup"&&e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerup",this.handlePointerUp),e.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(e=>{this.onerror&&this.onerror(e)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Jt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceCharacterLimitWarning()}onChange(t){this.updateValue();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?U:S` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let e=this.rows||Oc.ROWS,i,a=this.getActionForKeyEvent(t);a===K.UP?(i=Math.max(1,e-1),i!==e&&this.keyDownEventHandled()):a===K.DOWN&&(i=e+1,this.keyDownEventHandled()),i!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=i)}render(){var t,e;return S`
7094
+ `,...xt(!0)],aE=SI;var He=class extends sc(Ot(Nt(Ve(me(oe(dr)))))){constructor(){super(...arguments);this.rows=Oc.ROWS;this.wrap=Fm.SOFT;this.autocapitalize=ac.OFF;this.autocomplete=sE.OFF;this.resizable=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let e=t.currentTarget;e&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||Oc.ROWS,e.setPointerCapture(t.pointerId),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let e=t.clientY-this.resizeStartY,i=parseFloat(window.getComputedStyle(this.textarea).lineHeight),a=Math.round(e/i);this.rows=Math.max(1,this.resizeStartRows+a)};this.handlePointerUp=t=>{let e=t.currentTarget;e&&(t.type==="pointerup"&&e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerup",this.handlePointerUp),e.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(e=>{this.onerror&&this.onerror(e)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Jt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceCharacterLimitWarning()}onChange(t){this.updateValue();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?U:S` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let e=this.rows||Oc.ROWS,i,a=this.getActionForKeyEvent(t);a===K.UP?(i=Math.max(1,e-1),i!==e&&this.keyDownEventHandled()):a===K.DOWN&&(i=e+1,this.keyDownEventHandled()),i!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=i)}render(){var t,e;return S`
7095
7095
  ${this.renderLabel()}
7096
7096
  <div class="mdc-focus-ring" part="textarea-container">
7097
7097
  <textarea
@@ -7138,7 +7138,7 @@
7138
7138
  `:U}
7139
7139
  </div>
7140
7140
  ${this.renderTextareaFooter()}
7141
- `}};He.styles=[...dr.styles,...oE],h([u({type:String})],He.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],He.prototype,"rows",2),h([u({type:Number})],He.prototype,"cols",2),h([u({type:String})],He.prototype,"wrap",2),h([u({type:String})],He.prototype,"autocapitalize",2),h([u({type:String})],He.prototype,"autocomplete",2),h([u({type:String})],He.prototype,"dirname",2),h([u({type:Number})],He.prototype,"maxlength",2),h([u({type:Number})],He.prototype,"minlength",2),h([u({type:Boolean,reflect:!0})],He.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],He.prototype,"resizeButtonAriaLabel",2),h([zt("textarea")],He.prototype,"inputElement",2);var Pm=He;Pm.register(rE);var AI=Pm;var sE=V.constructTagName("timepicker"),Fm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Mo={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},$m="timepicker-triggerid",Vm="timepicker-listbox",Ue={TIME_FORMAT:Mo.TWELVE_HOUR,INTERVAL:30,MIN_HOUR_12:1,MAX_HOUR_12:12,MIN_HOUR_24:0,MAX_HOUR_24:23,MIN_MINUTE:0,MAX_MINUTE:59,DISABLE_FLIP:!1};var SI=z`
7141
+ `}};He.styles=[...dr.styles,...aE],h([u({type:String})],He.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],He.prototype,"rows",2),h([u({type:Number})],He.prototype,"cols",2),h([u({type:String})],He.prototype,"wrap",2),h([u({type:String})],He.prototype,"autocapitalize",2),h([u({type:String})],He.prototype,"autocomplete",2),h([u({type:String})],He.prototype,"dirname",2),h([u({type:Number})],He.prototype,"maxlength",2),h([u({type:Number})],He.prototype,"minlength",2),h([u({type:Boolean,reflect:!0})],He.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],He.prototype,"resizeButtonAriaLabel",2),h([zt("textarea")],He.prototype,"inputElement",2);var $m=He;$m.register(oE);var II=$m;var nE=V.constructTagName("timepicker"),Vm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Oo={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},zm="timepicker-triggerid",Bm="timepicker-listbox",Ue={TIME_FORMAT:Oo.TWELVE_HOUR,INTERVAL:30,MIN_HOUR_12:1,MAX_HOUR_12:12,MIN_HOUR_24:0,MAX_HOUR_24:23,MIN_MINUTE:0,MAX_MINUTE:59,DISABLE_FLIP:!1};var CI=z`
7142
7142
  :host {
7143
7143
  --mdc-timepicker-background-color: var(--mds-color-theme-background-primary-ghost);
7144
7144
  --mdc-timepicker-text-color: var(--mds-color-theme-text-primary-normal);
@@ -7325,18 +7325,18 @@
7325
7325
  --mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
7326
7326
  color: var(--mds-color-theme-text-primary-disabled);
7327
7327
  }
7328
- `,aE=[SI,...xt(!0)];var Dt=class extends me(oe(te)){constructor(){super(...arguments);this.timeFormat=Ue.TIME_FORMAT;this.interval=Ue.INTERVAL;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=Ue.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){this.focusedOptionIndex=this.getMenuItemFocusIndex(),this.updateComplete.then(()=>{window.requestAnimationFrame(()=>{this.focusCurrentMenuItem()})}).catch(()=>{})}getMenuItemFocusIndex(){let t=this.getTimeOptions(),e=this.internalToValue(),i=t.findIndex(a=>a.value===e);return i>=0?i:0}focusCurrentMenuItem(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector(`#${Vm}`);if(!t)return;let i=t.querySelectorAll("mdc-option")[this.focusedOptionIndex];i&&(i.focus({preventScroll:!0}),i.scrollIntoView({block:"nearest"}))}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let e=parseInt(t[1],10),i=parseInt(t[2],10);e<0||e>23||i<0||i>59||(this.internalMinutes=String(i).padStart(2,"0"),this.timeFormat===Mo.TWELVE_HOUR?e===0?(this.internalPeriod="AM",this.internalHours="12"):e<12?(this.internalPeriod="AM",this.internalHours=String(e).padStart(2,"0")):e===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(e-12).padStart(2,"0")):this.internalHours=String(e).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===Mo.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],e=Math.max(1,Math.min(this.interval,60));for(let i=0;i<24*60;i+=e){let a=Math.floor(i/60),d=i%60,f=`${String(a).padStart(2,"0")}:${String(d).padStart(2,"0")}`,v;if(this.timeFormat===Mo.TWELVE_HOUR){let H=a<12?this.localeAmLabel:this.localePmLabel,J=a%12;J===0&&(J=12);let q=String(d).padStart(2,"0");v=`${J}:${q} ${H}`}else v=`${a}:${String(d).padStart(2,"0")}`;let A=!this.min||f>=this.min,R=!this.max||f<=this.max;A&&R&&t.push({label:v,value:f})}return t}handleOptionClick(t){var e;this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(e=this.dropdownButton)==null||e.focus()}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleBaseContainerClick(t){var i,a,d;if(this.disabled||this.softDisabled||this.readonly)return;let e=t.target;if(e.getAttribute("role")!=="spinbutton"){if(e.getAttribute("part")==="base-container"||e.getAttribute("part")==="spinbutton-group"){this.displayPopover=!this.displayPopover,(i=this.dropdownButton)==null||i.focus(),t.stopPropagation();return}(a=this.hoursInput)==null||a.focus(),(d=this.hoursInput)==null||d.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var a;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case Lt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case Lt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case Lt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case Lt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(a=this.dropdownButton)==null||a.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,i;switch(t.key){case Lt.ARROW_UP:case Lt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case Lt.TAB:break;case Lt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let a=this.localeAmLabel.charAt(0).toLowerCase(),d=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===a?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===d&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var A,R,H,J,q,Q;let i=this.timeFormat===Mo.TWELVE_HOUR,a,d;e==="hours"?(a=i?Ue.MIN_HOUR_12:Ue.MIN_HOUR_24,d=i?Ue.MAX_HOUR_12:Ue.MAX_HOUR_24):(a=Ue.MIN_MINUTE,d=Ue.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,v=f?parseInt(f,10):a;switch(t.key){case Lt.ARROW_UP:{t.preventDefault(),v=v>=d?a:v+1,this.setSpinbuttonValue(e,v),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault(),v=v<=a?d:v-1,this.setSpinbuttonValue(e,v),this.commitValue();break}case Lt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((A=this.minutesInput)==null||A.focus(),(R=this.minutesInput)==null||R.select()):i&&((H=this.periodInput)==null||H.focus(),(J=this.periodInput)==null||J.select());break}case Lt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((q=this.hoursInput)==null||q.focus(),(Q=this.hoursInput)==null||Q.select());break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,a,d)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let d=parseInt(this.pendingDigits,10);d>a&&(d=a),d<i&&(d=i),this.setSpinbuttonValue(e,d),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let d=parseInt(this.pendingDigits,10),f=Math.floor(a/10);if(d>f){let v=d;v>a&&(v=a),v<i&&(v=i),this.setSpinbuttonValue(e,v),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,d),this.pendingDigitTimeout=setTimeout(()=>{let v=d;v<i&&(v=i),this.setSpinbuttonValue(e,v),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let i=String(e).padStart(2,"0");t==="hours"?this.internalHours=i:this.internalMinutes=i,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,i;(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select()}).catch(()=>{}):this.timeFormat===Mo.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,i;(e=this.periodInput)==null||e.focus(),(i=this.periodInput)==null||i.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),e=this.internalToValue();return t.map(i=>S`
7328
+ `,lE=[CI,...xt(!0)];var Dt=class extends me(oe(te)){constructor(){super(...arguments);this.timeFormat=Ue.TIME_FORMAT;this.interval=Ue.INTERVAL;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=Ue.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){this.focusedOptionIndex=this.getMenuItemFocusIndex(),this.updateComplete.then(()=>{window.requestAnimationFrame(()=>{this.focusCurrentMenuItem()})}).catch(()=>{})}getMenuItemFocusIndex(){let t=this.getTimeOptions(),e=this.internalToValue(),i=t.findIndex(a=>a.value===e);return i>=0?i:0}focusCurrentMenuItem(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector(`#${Bm}`);if(!t)return;let i=t.querySelectorAll("mdc-option")[this.focusedOptionIndex];i&&(i.focus({preventScroll:!0}),i.scrollIntoView({block:"nearest"}))}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let e=parseInt(t[1],10),i=parseInt(t[2],10);e<0||e>23||i<0||i>59||(this.internalMinutes=String(i).padStart(2,"0"),this.timeFormat===Oo.TWELVE_HOUR?e===0?(this.internalPeriod="AM",this.internalHours="12"):e<12?(this.internalPeriod="AM",this.internalHours=String(e).padStart(2,"0")):e===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(e-12).padStart(2,"0")):this.internalHours=String(e).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===Oo.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],e=Math.max(1,Math.min(this.interval,60));for(let i=0;i<24*60;i+=e){let a=Math.floor(i/60),d=i%60,f=`${String(a).padStart(2,"0")}:${String(d).padStart(2,"0")}`,v;if(this.timeFormat===Oo.TWELVE_HOUR){let H=a<12?this.localeAmLabel:this.localePmLabel,J=a%12;J===0&&(J=12);let W=String(d).padStart(2,"0");v=`${J}:${W} ${H}`}else v=`${a}:${String(d).padStart(2,"0")}`;let x=!this.min||f>=this.min,R=!this.max||f<=this.max;x&&R&&t.push({label:v,value:f})}return t}handleOptionClick(t){var e;this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(e=this.dropdownButton)==null||e.focus()}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleBaseContainerClick(t){var i,a,d;if(this.disabled||this.softDisabled||this.readonly)return;let e=t.target;if(e.getAttribute("role")!=="spinbutton"){if(e.getAttribute("part")==="base-container"||e.getAttribute("part")==="spinbutton-group"){this.displayPopover=!this.displayPopover,(i=this.dropdownButton)==null||i.focus(),t.stopPropagation();return}(a=this.hoursInput)==null||a.focus(),(d=this.hoursInput)==null||d.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var a;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case Lt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case Lt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case Lt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case Lt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(a=this.dropdownButton)==null||a.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,i;switch(t.key){case Lt.ARROW_UP:case Lt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case Lt.TAB:break;case Lt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let a=this.localeAmLabel.charAt(0).toLowerCase(),d=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===a?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===d&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var x,R,H,J,W,Z;let i=this.timeFormat===Oo.TWELVE_HOUR,a,d;e==="hours"?(a=i?Ue.MIN_HOUR_12:Ue.MIN_HOUR_24,d=i?Ue.MAX_HOUR_12:Ue.MAX_HOUR_24):(a=Ue.MIN_MINUTE,d=Ue.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,v=f?parseInt(f,10):a;switch(t.key){case Lt.ARROW_UP:{t.preventDefault(),v=v>=d?a:v+1,this.setSpinbuttonValue(e,v),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault(),v=v<=a?d:v-1,this.setSpinbuttonValue(e,v),this.commitValue();break}case Lt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((x=this.minutesInput)==null||x.focus(),(R=this.minutesInput)==null||R.select()):i&&((H=this.periodInput)==null||H.focus(),(J=this.periodInput)==null||J.select());break}case Lt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((W=this.hoursInput)==null||W.focus(),(Z=this.hoursInput)==null||Z.select());break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,a,d)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let d=parseInt(this.pendingDigits,10);d>a&&(d=a),d<i&&(d=i),this.setSpinbuttonValue(e,d),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let d=parseInt(this.pendingDigits,10),f=Math.floor(a/10);if(d>f){let v=d;v>a&&(v=a),v<i&&(v=i),this.setSpinbuttonValue(e,v),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,d),this.pendingDigitTimeout=setTimeout(()=>{let v=d;v<i&&(v=i),this.setSpinbuttonValue(e,v),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let i=String(e).padStart(2,"0");t==="hours"?this.internalHours=i:this.internalMinutes=i,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,i;(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select()}).catch(()=>{}):this.timeFormat===Oo.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,i;(e=this.periodInput)==null||e.focus(),(i=this.periodInput)==null||i.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),e=this.internalToValue();return t.map(i=>S`
7329
7329
  <mdc-option
7330
7330
  label="${this.optionLabelFormatter?this.optionLabelFormatter(i.label,i.value):i.label}"
7331
7331
  ?selected="${i.value===e}"
7332
7332
  aria-selected="${i.value===e?"true":"false"}"
7333
7333
  @click="${()=>this.handleOptionClick(i.value)}"
7334
7334
  ></mdc-option>
7335
- `)}render(){let t=this.timeFormat===Mo.TWELVE_HOUR,e=t?Ue.MIN_HOUR_12:Ue.MIN_HOUR_24,i=t?Ue.MAX_HOUR_12:Ue.MAX_HOUR_24;return S`
7335
+ `)}render(){let t=this.timeFormat===Oo.TWELVE_HOUR,e=t?Ue.MIN_HOUR_12:Ue.MIN_HOUR_24,i=t?Ue.MAX_HOUR_12:Ue.MAX_HOUR_24;return S`
7336
7336
  ${this.renderLabel()}
7337
7337
  <div part="container">
7338
7338
  <div
7339
- id="${$m}"
7339
+ id="${zm}"
7340
7340
  part="base-container"
7341
7341
  class="mdc-focus-ring"
7342
7342
  @click="${this.handleBaseContainerClick}"
@@ -7401,7 +7401,7 @@
7401
7401
  part="icon-container"
7402
7402
  class="own-focus-ring"
7403
7403
  variant="tertiary"
7404
- prefix-icon="${this.displayPopover?Fm.ARROW_UP:Fm.ARROW_DOWN}"
7404
+ prefix-icon="${this.displayPopover?Vm.ARROW_UP:Vm.ARROW_DOWN}"
7405
7405
  aria-label="${this.localeShowTimePickerLabel}"
7406
7406
  aria-expanded="${this.displayPopover?"true":"false"}"
7407
7407
  aria-haspopup="true"
@@ -7424,7 +7424,7 @@
7424
7424
  />
7425
7425
  <mdc-popover
7426
7426
  trigger="${_e.MANUAL}"
7427
- triggerid="${$m}"
7427
+ triggerid="${zm}"
7428
7428
  interactive
7429
7429
  ?visible="${this.displayPopover}"
7430
7430
  role=""
@@ -7446,7 +7446,7 @@
7446
7446
  exportparts="popover-content"
7447
7447
  >
7448
7448
  <mdc-selectlistbox
7449
- id="${Vm}"
7449
+ id="${Bm}"
7450
7450
  part="listbox"
7451
7451
  aria-label="${this.localeTimeOptionsLabel}"
7452
7452
  @keydown="${this.handleListboxKeydown}"
@@ -7456,7 +7456,7 @@
7456
7456
  </mdc-popover>
7457
7457
  </div>
7458
7458
  ${this.helpText?this.renderHelperText():U}
7459
- `}};Dt.styles=[...te.styles,...aE],h([u({type:String,reflect:!0,attribute:"time-format"})],Dt.prototype,"timeFormat",2),h([u({type:Number,reflect:!0})],Dt.prototype,"interval",2),h([u({type:String,reflect:!0})],Dt.prototype,"placement",2),h([u({type:String,reflect:!0})],Dt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Dt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Dt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Dt.prototype,"backdropAppendTo",2),h([u({type:String,reflect:!0})],Dt.prototype,"min",2),h([u({type:String,reflect:!0})],Dt.prototype,"max",2),h([u({type:String,attribute:"locale-hours-label"})],Dt.prototype,"localeHoursLabel",2),h([u({type:String,attribute:"locale-minutes-label"})],Dt.prototype,"localeMinutesLabel",2),h([u({type:String,attribute:"locale-period-label"})],Dt.prototype,"localePeriodLabel",2),h([u({type:String,attribute:"locale-hours-placeholder"})],Dt.prototype,"localeHoursPlaceholder",2),h([u({type:String,attribute:"locale-minutes-placeholder"})],Dt.prototype,"localeMinutesPlaceholder",2),h([u({type:String,attribute:"locale-period-placeholder"})],Dt.prototype,"localePeriodPlaceholder",2),h([u({type:String,attribute:"locale-am-label"})],Dt.prototype,"localeAmLabel",2),h([u({type:String,attribute:"locale-pm-label"})],Dt.prototype,"localePmLabel",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Dt.prototype,"prefixIcon",2),h([u({attribute:!1})],Dt.prototype,"optionLabelFormatter",2),h([u({type:String,attribute:"locale-show-time-picker-label"})],Dt.prototype,"localeShowTimePickerLabel",2),h([u({type:String,attribute:"locale-time-options-label"})],Dt.prototype,"localeTimeOptionsLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Dt.prototype,"localeSpinbuttonDescription",2),h([zt('mdc-button[part="icon-container"]')],Dt.prototype,"dropdownButton",2),h([zt("#hours-spinbutton")],Dt.prototype,"hoursInput",2),h([zt("#minutes-spinbutton")],Dt.prototype,"minutesInput",2),h([zt("#period-spinbutton")],Dt.prototype,"periodInput",2),h([dt()],Dt.prototype,"displayPopover",2),h([dt()],Dt.prototype,"internalHours",2),h([dt()],Dt.prototype,"internalMinutes",2),h([dt()],Dt.prototype,"internalPeriod",2),h([dt()],Dt.prototype,"focusedOptionIndex",2);var zm=Dt;zm.register(sE);var II=zm;var CI=[z`
7459
+ `}};Dt.styles=[...te.styles,...lE],h([u({type:String,reflect:!0,attribute:"time-format"})],Dt.prototype,"timeFormat",2),h([u({type:Number,reflect:!0})],Dt.prototype,"interval",2),h([u({type:String,reflect:!0})],Dt.prototype,"placement",2),h([u({type:String,reflect:!0})],Dt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Dt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Dt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Dt.prototype,"backdropAppendTo",2),h([u({type:String,reflect:!0})],Dt.prototype,"min",2),h([u({type:String,reflect:!0})],Dt.prototype,"max",2),h([u({type:String,attribute:"locale-hours-label"})],Dt.prototype,"localeHoursLabel",2),h([u({type:String,attribute:"locale-minutes-label"})],Dt.prototype,"localeMinutesLabel",2),h([u({type:String,attribute:"locale-period-label"})],Dt.prototype,"localePeriodLabel",2),h([u({type:String,attribute:"locale-hours-placeholder"})],Dt.prototype,"localeHoursPlaceholder",2),h([u({type:String,attribute:"locale-minutes-placeholder"})],Dt.prototype,"localeMinutesPlaceholder",2),h([u({type:String,attribute:"locale-period-placeholder"})],Dt.prototype,"localePeriodPlaceholder",2),h([u({type:String,attribute:"locale-am-label"})],Dt.prototype,"localeAmLabel",2),h([u({type:String,attribute:"locale-pm-label"})],Dt.prototype,"localePmLabel",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Dt.prototype,"prefixIcon",2),h([u({attribute:!1})],Dt.prototype,"optionLabelFormatter",2),h([u({type:String,attribute:"locale-show-time-picker-label"})],Dt.prototype,"localeShowTimePickerLabel",2),h([u({type:String,attribute:"locale-time-options-label"})],Dt.prototype,"localeTimeOptionsLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Dt.prototype,"localeSpinbuttonDescription",2),h([zt('mdc-button[part="icon-container"]')],Dt.prototype,"dropdownButton",2),h([zt("#hours-spinbutton")],Dt.prototype,"hoursInput",2),h([zt("#minutes-spinbutton")],Dt.prototype,"minutesInput",2),h([zt("#period-spinbutton")],Dt.prototype,"periodInput",2),h([dt()],Dt.prototype,"displayPopover",2),h([dt()],Dt.prototype,"internalHours",2),h([dt()],Dt.prototype,"internalMinutes",2),h([dt()],Dt.prototype,"internalPeriod",2),h([dt()],Dt.prototype,"focusedOptionIndex",2);var Hm=Dt;Hm.register(nE);var _I=Hm;var wI=[z`
7460
7460
  :host {
7461
7461
  display: block;
7462
7462
  position: relative;
@@ -7470,7 +7470,7 @@
7470
7470
  :host::part(typewriter-hidden) {
7471
7471
  display: none;
7472
7472
  }
7473
- `],nE=CI;var lE=V.constructTagName("typewriter"),_s={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},xi={TYPE:Me.TYPE,TEXT_ELEMENT_TAGNAME:Me.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CSS_PART_HIDDEN:"typewriter-hidden",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var Xr=class extends Z{constructor(){super(...arguments);this.type=xi.TYPE;this.tagname=xi.TEXT_ELEMENT_TAGNAME;this.speed=xi.SPEED;this.maxQueueSize=Number.MAX_SAFE_INTEGER;this.displayedText="";this.originalText="";this.currentIndex=0;this.typingTimeout=null;this.pendingTimeouts=new Set;this.textChunkQueue=[];this.previousTextContent="";this.typingComplete=!0}connectedCallback(){super.connectedCallback(),this.createTimeout(()=>{this.captureAndProcessContent()},0)}disconnectedCallback(){this.clearTypingAnimation(),this.clearAllTimeouts(),super.disconnectedCallback()}createTimeout(t,e){let i=window.setTimeout(()=>{this.pendingTimeouts.delete(i),t()},e);return this.pendingTimeouts.add(i),i}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,e,i){t&&(this.maxQueueSize<Number.MAX_SAFE_INTEGER&&this.textChunkQueue.length>=this.maxQueueSize&&this.textChunkQueue.splice(0,this.textChunkQueue.length-this.maxQueueSize+1),this.textChunkQueue.push({text:t,speed:e,instant:i}),this.processChunkQueue())}addInstantTextChunk(t){this.addTextChunk(t,void 0,!0)}processChunkQueue(){this.textChunkQueue.length>0&&this.processNextChunk()}processNextChunk(){if(this.textChunkQueue.length===0)return;let t=this.textChunkQueue.shift(),e=this.speed;t.speed!==void 0&&(this.speed=t.speed),this.originalText+=t.text,this.typingComplete=!1,t.instant?(this.displayedText=this.originalText,this.currentIndex=this.originalText.length,this.typingComplete=!0,this.requestUpdate(),t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(xi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(xi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return _s.SLOW;case"fast":return _s.FAST;case"very-slow":return _s.VERY_SLOW;case"very-fast":return _s.VERY_FAST;case"normal":return _s.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?_s.NORMAL:Math.max(10,e)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;let e=t.assignedNodes().filter(a=>a.nodeType===Node.TEXT_NODE||a.nodeType===Node.ELEMENT_NODE).map(a=>a.textContent||"").join("");e!==this.previousTextContent&&(this.displayedText===""||!e.includes(this.displayedText)?(this.originalText=e,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=e,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=e,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let e=()=>{if(this.currentIndex<this.originalText.length){let i=this.originalText[this.currentIndex],a=this.displayedText+i;a!==this.displayedText&&(this.displayedText=a,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(xi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return S`
7473
+ `],dE=wI;var cE=V.constructTagName("typewriter"),_s={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},xi={TYPE:Me.TYPE,TEXT_ELEMENT_TAGNAME:Me.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CSS_PART_HIDDEN:"typewriter-hidden",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var Xr=class extends Q{constructor(){super(...arguments);this.type=xi.TYPE;this.tagname=xi.TEXT_ELEMENT_TAGNAME;this.speed=xi.SPEED;this.maxQueueSize=Number.MAX_SAFE_INTEGER;this.displayedText="";this.originalText="";this.currentIndex=0;this.typingTimeout=null;this.pendingTimeouts=new Set;this.textChunkQueue=[];this.previousTextContent="";this.typingComplete=!0}connectedCallback(){super.connectedCallback(),this.createTimeout(()=>{this.captureAndProcessContent()},0)}disconnectedCallback(){this.clearTypingAnimation(),this.clearAllTimeouts(),super.disconnectedCallback()}createTimeout(t,e){let i=window.setTimeout(()=>{this.pendingTimeouts.delete(i),t()},e);return this.pendingTimeouts.add(i),i}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,e,i){t&&(this.maxQueueSize<Number.MAX_SAFE_INTEGER&&this.textChunkQueue.length>=this.maxQueueSize&&this.textChunkQueue.splice(0,this.textChunkQueue.length-this.maxQueueSize+1),this.textChunkQueue.push({text:t,speed:e,instant:i}),this.processChunkQueue())}addInstantTextChunk(t){this.addTextChunk(t,void 0,!0)}processChunkQueue(){this.textChunkQueue.length>0&&this.processNextChunk()}processNextChunk(){if(this.textChunkQueue.length===0)return;let t=this.textChunkQueue.shift(),e=this.speed;t.speed!==void 0&&(this.speed=t.speed),this.originalText+=t.text,this.typingComplete=!1,t.instant?(this.displayedText=this.originalText,this.currentIndex=this.originalText.length,this.typingComplete=!0,this.requestUpdate(),t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(xi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(xi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return _s.SLOW;case"fast":return _s.FAST;case"very-slow":return _s.VERY_SLOW;case"very-fast":return _s.VERY_FAST;case"normal":return _s.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?_s.NORMAL:Math.max(10,e)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;let e=t.assignedNodes().filter(a=>a.nodeType===Node.TEXT_NODE||a.nodeType===Node.ELEMENT_NODE).map(a=>a.textContent||"").join("");e!==this.previousTextContent&&(this.displayedText===""||!e.includes(this.displayedText)?(this.originalText=e,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=e,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=e,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let e=()=>{if(this.currentIndex<this.originalText.length){let i=this.originalText[this.currentIndex],a=this.displayedText+i;a!==this.displayedText&&(this.displayedText=a,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(xi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return S`
7474
7474
  <div part="${xi.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
7475
7475
  <mdc-text
7476
7476
  part="${xi.CSS_PART_TEXT}"
@@ -7481,7 +7481,7 @@
7481
7481
  >
7482
7482
  <slot @slotchange=${this.handleSlotChange} part="${xi.CSS_PART_HIDDEN}"></slot>
7483
7483
  </div>
7484
- `}};Xr.styles=[...Z.styles,...nE],h([u({attribute:"type",reflect:!0,type:String})],Xr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Xr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],Xr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],Xr.prototype,"maxQueueSize",2),h([dt()],Xr.prototype,"displayedText",2),h([dt()],Xr.prototype,"originalText",2),h([dt()],Xr.prototype,"typingComplete",2);var Bm=Xr;Bm.register(lE);var _I=Bm;var Rc=V.constructTagName("themeprovider"),Hm={THEMECLASS:"mds-theme-stable-darkWebex"};var Dc=class{constructor(o){this.themeclass=o}};Dc.context=Rc;var Pc=Dc;var wI=z`
7484
+ `}};Xr.styles=[...Q.styles,...dE],h([u({attribute:"type",reflect:!0,type:String})],Xr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Xr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],Xr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],Xr.prototype,"maxQueueSize",2),h([dt()],Xr.prototype,"displayedText",2),h([dt()],Xr.prototype,"originalText",2),h([dt()],Xr.prototype,"typingComplete",2);var Um=Xr;Um.register(cE);var kI=Um;var Rc=V.constructTagName("themeprovider"),Gm={THEMECLASS:"mds-theme-stable-darkWebex"};var Dc=class{constructor(o){this.themeclass=o}};Dc.context=Rc;var Pc=Dc;var NI=z`
7485
7485
  :host {
7486
7486
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
7487
7487
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -7501,7 +7501,7 @@
7501
7501
  * {
7502
7502
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
7503
7503
  }
7504
- `,dE=[wI];var Na=class extends Se{constructor(){super({context:Pc.context,initialValue:new Pc(Hm.THEMECLASS)});this.themeclass=Hm.THEMECLASS}static get Context(){return Pc.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Na.styles=[...Se.styles,...dE],h([dt()],Na.prototype,"currentThemeClass",2),h([u({type:String})],Na.prototype,"themeclass",2);var Um=Na;Um.register(Rc);var kI=Um;var cE=V.constructTagName("toast"),al={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},mr={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:Cr[20],BUTTON:Mi,PRIMARY_BUTTON:Bt.PRIMARY,SECONDARY_BUTTON:Bt.SECONDARY,TERTIARY_BUTTON:Bt.TERTIARY,VARIANT:al.CUSTOM};var hE=n=>{switch(n){case al.SUCCESS:return Fc.SUCCESS_ICON_NAME;case al.WARNING:return Fc.WARNING_ICON_NAME;case al.ERROR:return Fc.ERROR_ICON_NAME;default:return null}};var NI=z`
7504
+ `,hE=[NI];var Na=class extends Se{constructor(){super({context:Pc.context,initialValue:new Pc(Gm.THEMECLASS)});this.themeclass=Gm.THEMECLASS}static get Context(){return Pc.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Na.styles=[...Se.styles,...hE],h([dt()],Na.prototype,"currentThemeClass",2),h([u({type:String})],Na.prototype,"themeclass",2);var Km=Na;Km.register(Rc);var LI=Km;var pE=V.constructTagName("toast"),al={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},mr={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:Cr[20],BUTTON:Mi,PRIMARY_BUTTON:Bt.PRIMARY,SECONDARY_BUTTON:Bt.SECONDARY,TERTIARY_BUTTON:Bt.TERTIARY,VARIANT:al.CUSTOM};var mE=n=>{switch(n){case al.SUCCESS:return Fc.SUCCESS_ICON_NAME;case al.WARNING:return Fc.WARNING_ICON_NAME;case al.ERROR:return Fc.ERROR_ICON_NAME;default:return null}};var MI=z`
7505
7505
  :host {
7506
7506
  --mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
7507
7507
  --mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
@@ -7596,7 +7596,7 @@
7596
7596
  mdc-text::part(text) {
7597
7597
  margin: 0;
7598
7598
  }
7599
- `,pE=[NI];var Re=class extends qs(Z){constructor(){super(...arguments);this.variant=mr.VARIANT;this.headerTagName=mr.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasOverflowingHeaderText=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}updateDataExpanded(){this.isDetailVisible||!this.canRenderToggleButton()?this.setAttribute("data-expanded","true"):this.removeAttribute("data-expanded")}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible,this.updateDataExpanded()}updateDetailedSlotPresence(){var t,e;this.hasDetailedSlot=(e=(t=this.detailedElements)==null?void 0:t.some(i=>{var a;return(a=i.textContent)==null?void 0:a.trim()}))!=null?e:!1}updateFooterButtonsPresence(){var t,e,i,a;this.hasFooterButtons=((e=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?e:0)>0||((a=(i=this.footerButtonSecondary)==null?void 0:i.length)!=null?a:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}async firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence(),this.updateDataExpanded()}async updated(t){(t.has("showMoreText")||t.has("showLessText"))&&this.updateDataExpanded(),t.has("headerText")&&(await this.updateComplete,Hl(this.headerTextElement)&&(this.hasOverflowingHeaderText=this.headerTextElement.isHeightOverflowing()))}renderIcon(t){return t?S`
7599
+ `,uE=[MI];var Re=class extends js(Q){constructor(){super(...arguments);this.variant=mr.VARIANT;this.headerTagName=mr.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasOverflowingHeaderText=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}updateDataExpanded(){this.isDetailVisible||!this.canRenderToggleButton()?this.setAttribute("data-expanded","true"):this.removeAttribute("data-expanded")}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible,this.updateDataExpanded()}updateDetailedSlotPresence(){var t,e;this.hasDetailedSlot=(e=(t=this.detailedElements)==null?void 0:t.some(i=>{var a;return(a=i.textContent)==null?void 0:a.trim()}))!=null?e:!1}updateFooterButtonsPresence(){var t,e,i,a;this.hasFooterButtons=((e=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?e:0)>0||((a=(i=this.footerButtonSecondary)==null?void 0:i.length)!=null?a:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}async firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence(),this.updateDataExpanded()}async updated(t){(t.has("showMoreText")||t.has("showLessText"))&&this.updateDataExpanded(),t.has("headerText")&&(await this.updateComplete,Hl(this.headerTextElement)&&(this.hasOverflowingHeaderText=this.headerTextElement.isHeightOverflowing()))}renderIcon(t){return t?S`
7600
7600
  <mdc-icon name="${t}" size="${mr.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
7601
7601
  `:U}canRenderToggleButton(){return!!(this.showMoreText&&this.showLessText)}shouldRenderToggleButton(){return this.canRenderToggleButton()&&(this.hasDetailedSlot||this.hasOverflowingHeaderText)}renderToggleDetailButton(){return this.shouldRenderToggleButton()?S`
7602
7602
  <mdc-button
@@ -7625,7 +7625,7 @@
7625
7625
  </div>
7626
7626
  </slot>`}render(){var t;return S`
7627
7627
  <div part="content-container">
7628
- ${this.variant===mr.VARIANT?S`<slot name="content-prefix"></slot>`:S`${this.renderIcon((t=hE(this.variant))!=null?t:"")}`}
7628
+ ${this.variant===mr.VARIANT?S`<slot name="content-prefix"></slot>`:S`${this.renderIcon((t=mE(this.variant))!=null?t:"")}`}
7629
7629
  <div part="toast-content">
7630
7630
  ${this.renderHeader()}
7631
7631
  <slot name="toast-body-normal"></slot>
@@ -7643,7 +7643,7 @@
7643
7643
  ></mdc-button>
7644
7644
  </div>
7645
7645
  ${this.renderFooter()}
7646
- `}};Re.styles=[...Z.styles,...pE],h([zt("[part='toast-header']")],Re.prototype,"headerTextElement",2),h([u({type:String,reflect:!0})],Re.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Re.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Re.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Re.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Re.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Re.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Re.prototype,"showLessText",2),h([dt()],Re.prototype,"isDetailVisible",2),h([dt()],Re.prototype,"hasDetailedSlot",2),h([dt()],Re.prototype,"hasOverflowingHeaderText",2),h([qt({slot:"toast-body-detailed",flatten:!0})],Re.prototype,"detailedElements",2),h([dt()],Re.prototype,"hasFooterButtons",2);var Gm=Re;Gm.register(cE);var LI=Gm;var MI=[Tt,z`
7646
+ `}};Re.styles=[...Q.styles,...uE],h([zt("[part='toast-header']")],Re.prototype,"headerTextElement",2),h([u({type:String,reflect:!0})],Re.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Re.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Re.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Re.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Re.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Re.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Re.prototype,"showLessText",2),h([dt()],Re.prototype,"isDetailVisible",2),h([dt()],Re.prototype,"hasDetailedSlot",2),h([dt()],Re.prototype,"hasOverflowingHeaderText",2),h([jt({slot:"toast-body-detailed",flatten:!0})],Re.prototype,"detailedElements",2),h([dt()],Re.prototype,"hasFooterButtons",2);var Wm=Re;Wm.register(pE);var OI=Wm;var RI=[Tt,z`
7647
7647
  :host {
7648
7648
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
7649
7649
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -7721,7 +7721,7 @@
7721
7721
  :host([soft-disabled]) {
7722
7722
  pointer-events: none;
7723
7723
  }
7724
- `,...xt(!0)],mE=MI;var ws=class extends Nt(bi(Ve(me(oe(dr))))){constructor(){super(...arguments);this.checked=!1;this.size=qp.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:U}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault(),e===K.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Qn).includes(t)?t:qp.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
7724
+ `,...xt(!0)],fE=RI;var ws=class extends Nt(bi(Ve(me(oe(dr))))){constructor(){super(...arguments);this.checked=!1;this.size=Zp.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:U}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault(),e===K.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Qn).includes(t)?t:Zp.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
7725
7725
  <mdc-statictoggle
7726
7726
  ?checked="${this.checked}"
7727
7727
  ?disabled="${this.disabled}"
@@ -7751,10 +7751,10 @@
7751
7751
  />
7752
7752
  </mdc-statictoggle>
7753
7753
  ${this.renderLabelAndHelperText()}
7754
- `}};ws.styles=[...dr.styles,...mE],ws.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],ws.prototype,"checked",2),h([u({type:String,reflect:!0})],ws.prototype,"size",2);var Km=ws;Km.register(ny);var OI=Km;function ks(n,o,t){var d;let e=(d=t.initialDeps)!=null?d:[],i;function a(){var f,v,A,R;let H;t.key&&((f=t.debug)!=null&&f.call(t))&&(H=Date.now());let J=n();if(!(J.length!==e.length||J.some((ot,st)=>e[st]!==ot)))return i;e=J;let Q;if(t.key&&((v=t.debug)!=null&&v.call(t))&&(Q=Date.now()),i=o(...J),t.key&&((A=t.debug)!=null&&A.call(t))){let ot=Math.round((Date.now()-H)*100)/100,st=Math.round((Date.now()-Q)*100)/100,ht=st/16,bt=(yt,It)=>{for(yt=String(yt);yt.length<It;)yt=" "+yt;return yt};console.info(`%c\u23F1 ${bt(st,5)} /${bt(ot,5)} ms`,`
7754
+ `}};ws.styles=[...dr.styles,...fE],ws.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],ws.prototype,"checked",2),h([u({type:String,reflect:!0})],ws.prototype,"size",2);var Ym=ws;Ym.register(dy);var DI=Ym;function ks(n,o,t){var d;let e=(d=t.initialDeps)!=null?d:[],i;function a(){var f,v,x,R;let H;t.key&&((f=t.debug)!=null&&f.call(t))&&(H=Date.now());let J=n();if(!(J.length!==e.length||J.some((ot,st)=>e[st]!==ot)))return i;e=J;let Z;if(t.key&&((v=t.debug)!=null&&v.call(t))&&(Z=Date.now()),i=o(...J),t.key&&((x=t.debug)!=null&&x.call(t))){let ot=Math.round((Date.now()-H)*100)/100,st=Math.round((Date.now()-Z)*100)/100,ht=st/16,bt=(yt,It)=>{for(yt=String(yt);yt.length<It;)yt=" "+yt;return yt};console.info(`%c\u23F1 ${bt(st,5)} /${bt(ot,5)} ms`,`
7755
7755
  font-size: .6rem;
7756
7756
  font-weight: bold;
7757
- color: hsl(${Math.max(0,Math.min(120-120*ht,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(R=t==null?void 0:t.onChange)==null||R.call(t,i),i}return a.updateDeps=f=>{e=f},a}function Wm(n,o){if(n===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return n}var uE=(n,o)=>Math.abs(n-o)<1.01,fE=(n,o,t)=>{let e;return function(...i){n.clearTimeout(e),e=n.setTimeout(()=>o.apply(this,i),t)}};var vE=n=>{let{offsetWidth:o,offsetHeight:t}=n;return{width:o,height:t}},RI=n=>n,Ym=n=>{let o=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),e=[];for(let i=o;i<=t;i++)e.push(i);return e},yE=(n,o)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let i=d=>{let{width:f,height:v}=d;o({width:Math.round(f),height:Math.round(v)})};if(i(vE(t)),!e.ResizeObserver)return()=>{};let a=new e.ResizeObserver(d=>{let f=()=>{let v=d[0];if(v!=null&&v.borderBoxSize){let A=v.borderBoxSize[0];if(A){i({width:A.inlineSize,height:A.blockSize});return}}i(vE(t))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return a.observe(t,{box:"border-box"}),()=>{a.unobserve(t)}},gE={passive:!0};var bE=typeof window>"u"?!0:"onscrollend"in window,EE=(n,o)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let i=0,a=n.options.useScrollendEvent&&bE?()=>{}:fE(e,()=>{o(i,!1)},n.options.isScrollingResetDelay),d=R=>()=>{let{horizontal:H,isRtl:J}=n.options;i=H?t.scrollLeft*(J&&-1||1):t.scrollTop,a(),o(i,R)},f=d(!0),v=d(!1);v(),t.addEventListener("scroll",f,gE);let A=n.options.useScrollendEvent&&bE;return A&&t.addEventListener("scrollend",v,gE),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",v)}};var DI=(n,o,t)=>{if(o!=null&&o.borderBoxSize){let e=o.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return n[t.options.horizontal?"offsetWidth":"offsetHeight"]};var TE=(n,{adjustments:o=0,behavior:t},e)=>{var i,a;let d=n+o;(a=(i=e.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[e.options.horizontal?"left":"top"]:d,behavior:t})},$c=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{let d=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var i;(i=e())==null||i.disconnect(),t=null},observe:i=>{var a;return(a=e())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=e())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,i])=>{typeof i>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:RI,rangeExtractor:Ym,onChange:()=>{},measureElement:DI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,i;(i=(e=this.options).onChange)==null||i.call(e,this,t)},this.maybeNotify=ks(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var t;let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(t=this.scrollElement)==null?void 0:t.window)!=null?i:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,d)=>{this.scrollAdjustments=0,this.scrollDirection=d?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=d,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let i=new Map,a=new Map;for(let d=e-1;d>=0;d--){let f=t[d];if(i.has(f.lane))continue;let v=a.get(f.lane);if(v==null||f.end>v.end?a.set(f.lane,f):f.end<v.end&&i.set(f.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((d,f)=>d.end===f.end?d.index-f.index:d.end-f.end)[0]:void 0},this.getMeasurementOptions=ks(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,i,a,d)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:i,getItemKey:a,enabled:d}),{key:!1}),this.getMeasurements=ks(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:i,getItemKey:a,enabled:d},f)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(R=>{this.itemSizeCache.set(R.key,R.size)}));let v=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,v);for(let R=v;R<t;R++){let H=a(R),J=this.options.lanes===1?A[R-1]:this.getFurthestMeasurement(A,R),q=J?J.end+this.options.gap:e+i,Q=f.get(H),ot=typeof Q=="number"?Q:this.options.estimateSize(R),st=q+ot,ht=J?J.lane:R%this.options.lanes;A[R]={index:R,start:q,size:ot,end:st,key:H,lane:ht}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ks(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,i,a)=>this.range=t.length>0&&e>0?PI({measurements:t,outerSize:e,scrollOffset:i,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ks(()=>{let t=null,e=null,i=this.calculateRange();return i&&(t=i.startIndex,e=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,i,a,d)=>a===null||d===null?[]:t({startIndex:a,endIndex:d,overscan:e,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,i=t.getAttribute(e);return i?parseInt(i,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let i=this.indexFromElement(t),a=this.measurementsCache[i];if(!a)return;let d=a.key,f=this.elementsCache.get(d);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(d,t)),t.isConnected&&this.resizeItem(i,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let i=this.measurementsCache[t];if(!i)return;let a=(f=this.itemSizeCache.get(i.key))!=null?f:i.size,d=e-a;d!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,d,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,i)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(i))});return}this._measureElement(t,void 0)},this.getVirtualItems=ks(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let i=[];for(let a=0,d=t.length;a<d;a++){let f=t[a],v=e[f];i.push(v)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return Wm(e[xE(0,e.length-1,i=>Wm(e[i]).start,t)])},this.getOffsetForAlignment=(t,e,i=0)=>{let a=this.getSize(),d=this.getScrollOffset();e==="auto"&&(e=t>=d+a?"end":"start"),e==="center"?t+=(i-a)/2:e==="end"&&(t-=a);let f=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let i=this.measurementsCache[t];if(!i)return;let a=this.getSize(),d=this.getScrollOffset();if(e==="auto")if(i.end>=d+a-this.options.scrollPaddingEnd)e="end";else if(i.start<=d+this.options.scrollPaddingStart)e="start";else return[d,e];let f=e==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,i.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,e),{adjustments:void 0,behavior:i})},this.scrollToIndex=(t,{align:e="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let a=0,d=10,f=A=>{if(!this.targetWindow)return;let R=this.getOffsetForIndex(t,A);if(!R){console.warn("Failed to get offset for index:",t);return}let[H,J]=R;this._scrollToOffset(H,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{let q=this.getScrollOffset(),Q=this.getOffsetForIndex(t,J);if(!Q){console.warn("Failed to get offset for index:",t);return}uE(Q[0],q)||v(J)})},v=A=>{this.targetWindow&&(a++,a<d?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${d} attempts.`))};f(e)},this.scrollBy=(t,{behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:e})},this.getTotalSize=()=>{var a;var t;let e=this.getMeasurements(),i;if(e.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=(a=(t=e[e.length-1])==null?void 0:t.end)!=null?a:0;else{let d=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&d.some(v=>v===null);){let v=e[f];d[v.lane]===null&&(d[v.lane]=v.end),f--}i=Math.max(...d.filter(v=>v!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},xE=(n,o,t,e)=>{for(;n<=o;){let i=(n+o)/2|0,a=t(i);if(a<e)n=i+1;else if(a>e)o=i-1;else return i}return n>0?n-1:0};function PI({measurements:n,outerSize:o,scrollOffset:t,lanes:e}){let i=n.length-1,a=v=>n[v].start;if(n.length<=e)return{startIndex:0,endIndex:i};let d=xE(0,i,a,t),f=d;if(e===1)for(;f<i&&n[f].end<t+o;)f++;else if(e>1){let v=Array(e).fill(0);for(;f<i&&v.some(R=>R<t+o);){let R=n[f];v[R.lane]=R.end,f++}let A=Array(e).fill(t+o);for(;d>=0&&A.some(R=>R>=t);){let R=n[d];A[R.lane]=R.start,d--}d=Math.max(0,d-d%e),f=Math.min(i,f+(e-1-f%e))}return{startIndex:d,endIndex:f}}var jm=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let e={...t,onChange:(i,a)=>{var d;this.host.updateComplete.then(()=>this.host.requestUpdate()),(d=t.onChange)==null||d.call(t,i,a)}};this.virtualizer=new $c(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Vc=class extends jm{constructor(o,t){super(o,{observeElementRect:yE,observeElementOffset:EE,scrollToFn:TE,...t})}};var FI={includeEnd:!1},zc=class{constructor(o,t,e={}){let i={...FI,...e};this.start=o,this.end=t,this.includeEnd=i.includeEnd}includes(o){let{start:t,end:e,includeEnd:i}=this,a=Math.min(t,e),d=Math.max(t,e);return i?o>=a&&o<=d:o>=a&&o<d}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:e,end:i}=this,a=this.start,d=!1;return{next:()=>{if(d)return{value:void 0,done:!0};let f=a;return a+=t,(e?f>i:f>=i)?(d=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Bc=class{constructor(o,t,e){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((e,i,a)=>o.call(t,e,this.getIndex(e),a))}forEach(o,t){this.items.forEach((e,i,a)=>{o.call(t,e,this.getIndex(e),a)})}findIndex(o,t){let e=this.items.find((i,a,d)=>o.call(t,i,this.getIndex(i),d));return e?this.getIndex(e):-1}find(o,t){return this.items.find((e,i,a)=>o.call(t,e,this.getIndex(e),a))}};var $I=[z`
7757
+ color: hsl(${Math.max(0,Math.min(120-120*ht,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(R=t==null?void 0:t.onChange)==null||R.call(t,i),i}return a.updateDeps=f=>{e=f},a}function qm(n,o){if(n===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return n}var vE=(n,o)=>Math.abs(n-o)<1.01,gE=(n,o,t)=>{let e;return function(...i){n.clearTimeout(e),e=n.setTimeout(()=>o.apply(this,i),t)}};var bE=n=>{let{offsetWidth:o,offsetHeight:t}=n;return{width:o,height:t}},PI=n=>n,jm=n=>{let o=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),e=[];for(let i=o;i<=t;i++)e.push(i);return e},TE=(n,o)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let i=d=>{let{width:f,height:v}=d;o({width:Math.round(f),height:Math.round(v)})};if(i(bE(t)),!e.ResizeObserver)return()=>{};let a=new e.ResizeObserver(d=>{let f=()=>{let v=d[0];if(v!=null&&v.borderBoxSize){let x=v.borderBoxSize[0];if(x){i({width:x.inlineSize,height:x.blockSize});return}}i(bE(t))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return a.observe(t,{box:"border-box"}),()=>{a.unobserve(t)}},yE={passive:!0};var EE=typeof window>"u"?!0:"onscrollend"in window,xE=(n,o)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let i=0,a=n.options.useScrollendEvent&&EE?()=>{}:gE(e,()=>{o(i,!1)},n.options.isScrollingResetDelay),d=R=>()=>{let{horizontal:H,isRtl:J}=n.options;i=H?t.scrollLeft*(J&&-1||1):t.scrollTop,a(),o(i,R)},f=d(!0),v=d(!1);v(),t.addEventListener("scroll",f,yE);let x=n.options.useScrollendEvent&&EE;return x&&t.addEventListener("scrollend",v,yE),()=>{t.removeEventListener("scroll",f),x&&t.removeEventListener("scrollend",v)}};var FI=(n,o,t)=>{if(o!=null&&o.borderBoxSize){let e=o.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return n[t.options.horizontal?"offsetWidth":"offsetHeight"]};var AE=(n,{adjustments:o=0,behavior:t},e)=>{var i,a;let d=n+o;(a=(i=e.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[e.options.horizontal?"left":"top"]:d,behavior:t})},$c=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{let d=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var i;(i=e())==null||i.disconnect(),t=null},observe:i=>{var a;return(a=e())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=e())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,i])=>{typeof i>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:PI,rangeExtractor:jm,onChange:()=>{},measureElement:FI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,i;(i=(e=this.options).onChange)==null||i.call(e,this,t)},this.maybeNotify=ks(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var t;let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(t=this.scrollElement)==null?void 0:t.window)!=null?i:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,d)=>{this.scrollAdjustments=0,this.scrollDirection=d?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=d,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let i=new Map,a=new Map;for(let d=e-1;d>=0;d--){let f=t[d];if(i.has(f.lane))continue;let v=a.get(f.lane);if(v==null||f.end>v.end?a.set(f.lane,f):f.end<v.end&&i.set(f.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((d,f)=>d.end===f.end?d.index-f.index:d.end-f.end)[0]:void 0},this.getMeasurementOptions=ks(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,i,a,d)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:i,getItemKey:a,enabled:d}),{key:!1}),this.getMeasurements=ks(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:i,getItemKey:a,enabled:d},f)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(R=>{this.itemSizeCache.set(R.key,R.size)}));let v=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let x=this.measurementsCache.slice(0,v);for(let R=v;R<t;R++){let H=a(R),J=this.options.lanes===1?x[R-1]:this.getFurthestMeasurement(x,R),W=J?J.end+this.options.gap:e+i,Z=f.get(H),ot=typeof Z=="number"?Z:this.options.estimateSize(R),st=W+ot,ht=J?J.lane:R%this.options.lanes;x[R]={index:R,start:W,size:ot,end:st,key:H,lane:ht}}return this.measurementsCache=x,x},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ks(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,i,a)=>this.range=t.length>0&&e>0?$I({measurements:t,outerSize:e,scrollOffset:i,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ks(()=>{let t=null,e=null,i=this.calculateRange();return i&&(t=i.startIndex,e=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,i,a,d)=>a===null||d===null?[]:t({startIndex:a,endIndex:d,overscan:e,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,i=t.getAttribute(e);return i?parseInt(i,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let i=this.indexFromElement(t),a=this.measurementsCache[i];if(!a)return;let d=a.key,f=this.elementsCache.get(d);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(d,t)),t.isConnected&&this.resizeItem(i,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let i=this.measurementsCache[t];if(!i)return;let a=(f=this.itemSizeCache.get(i.key))!=null?f:i.size,d=e-a;d!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,d,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,i)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(i))});return}this._measureElement(t,void 0)},this.getVirtualItems=ks(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let i=[];for(let a=0,d=t.length;a<d;a++){let f=t[a],v=e[f];i.push(v)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return qm(e[SE(0,e.length-1,i=>qm(e[i]).start,t)])},this.getOffsetForAlignment=(t,e,i=0)=>{let a=this.getSize(),d=this.getScrollOffset();e==="auto"&&(e=t>=d+a?"end":"start"),e==="center"?t+=(i-a)/2:e==="end"&&(t-=a);let f=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let i=this.measurementsCache[t];if(!i)return;let a=this.getSize(),d=this.getScrollOffset();if(e==="auto")if(i.end>=d+a-this.options.scrollPaddingEnd)e="end";else if(i.start<=d+this.options.scrollPaddingStart)e="start";else return[d,e];let f=e==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,i.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,e),{adjustments:void 0,behavior:i})},this.scrollToIndex=(t,{align:e="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let a=0,d=10,f=x=>{if(!this.targetWindow)return;let R=this.getOffsetForIndex(t,x);if(!R){console.warn("Failed to get offset for index:",t);return}let[H,J]=R;this._scrollToOffset(H,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{let W=this.getScrollOffset(),Z=this.getOffsetForIndex(t,J);if(!Z){console.warn("Failed to get offset for index:",t);return}vE(Z[0],W)||v(J)})},v=x=>{this.targetWindow&&(a++,a<d?this.targetWindow.requestAnimationFrame(()=>f(x)):console.warn(`Failed to scroll to index ${t} after ${d} attempts.`))};f(e)},this.scrollBy=(t,{behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:e})},this.getTotalSize=()=>{var a;var t;let e=this.getMeasurements(),i;if(e.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=(a=(t=e[e.length-1])==null?void 0:t.end)!=null?a:0;else{let d=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&d.some(v=>v===null);){let v=e[f];d[v.lane]===null&&(d[v.lane]=v.end),f--}i=Math.max(...d.filter(v=>v!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},SE=(n,o,t,e)=>{for(;n<=o;){let i=(n+o)/2|0,a=t(i);if(a<e)n=i+1;else if(a>e)o=i-1;else return i}return n>0?n-1:0};function $I({measurements:n,outerSize:o,scrollOffset:t,lanes:e}){let i=n.length-1,a=v=>n[v].start;if(n.length<=e)return{startIndex:0,endIndex:i};let d=SE(0,i,a,t),f=d;if(e===1)for(;f<i&&n[f].end<t+o;)f++;else if(e>1){let v=Array(e).fill(0);for(;f<i&&v.some(R=>R<t+o);){let R=n[f];v[R.lane]=R.end,f++}let x=Array(e).fill(t+o);for(;d>=0&&x.some(R=>R>=t);){let R=n[d];x[R.lane]=R.start,d--}d=Math.max(0,d-d%e),f=Math.min(i,f+(e-1-f%e))}return{startIndex:d,endIndex:f}}var Xm=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let e={...t,onChange:(i,a)=>{var d;this.host.updateComplete.then(()=>this.host.requestUpdate()),(d=t.onChange)==null||d.call(t,i,a)}};this.virtualizer=new $c(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Vc=class extends Xm{constructor(o,t){super(o,{observeElementRect:TE,observeElementOffset:xE,scrollToFn:AE,...t})}};var VI={includeEnd:!1},zc=class{constructor(o,t,e={}){let i={...VI,...e};this.start=o,this.end=t,this.includeEnd=i.includeEnd}includes(o){let{start:t,end:e,includeEnd:i}=this,a=Math.min(t,e),d=Math.max(t,e);return i?o>=a&&o<=d:o>=a&&o<d}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:e,end:i}=this,a=this.start,d=!1;return{next:()=>{if(d)return{value:void 0,done:!0};let f=a;return a+=t,(e?f>i:f>=i)?(d=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Bc=class{constructor(o,t,e){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((e,i,a)=>o.call(t,e,this.getIndex(e),a))}forEach(o,t){this.items.forEach((e,i,a)=>{o.call(t,e,this.getIndex(e),a)})}findIndex(o,t){let e=this.items.find((i,a,d)=>o.call(t,i,this.getIndex(i),d));return e?this.getIndex(e):-1}find(o,t){return this.items.find((e,i,a)=>o.call(t,e,this.getIndex(e),a))}};var zI=[z`
7758
7758
  :host {
7759
7759
  height: 100%;
7760
7760
  }
@@ -7784,7 +7784,7 @@
7784
7784
  ::slotted(mdc-listitem) {
7785
7785
  position: relative;
7786
7786
  }
7787
- `],AE=$I;var SE=V.constructTagName("virtualizedlist"),Jit=V.constructTagName("virtualizedwrapper"),La={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var ur=class extends oe(Ki){constructor(){super();this.virtualizerProps=La.VIRTUALIZER_PROPS;this.loop=La.LOOP;this.scrollAnchoring=La.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=La.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(a=>a===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Gn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Zt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:La.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,a;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let d=(a=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?a:"data-index";this.virtualizedNavItems=new Bc(super.navItems,f=>Number(f.getAttribute(d)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Vc(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==Gn.VERTICAL&&(this.orientation=Gn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,a;this.observeSizeChanges&&((a=(i=this.virtualizer)==null?void 0:i.measureElement)==null||a.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var a,d;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((a=t==null?void 0:t.count)!=null?a:0)),v=this.selectedIndex,A=this.firstKey,R=new zc(v-f,v+f,{includeEnd:!0}),H=(d=Array.from(R).find(q=>e.options.getItemKey(q)===this.selectedKey))!=null?d:this.selectedIndex;if(this.setSelectedIndex(H),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&v!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let q=e.measurementsCache[this.selectedIndex].end-i[v].end;this.scrollRef.scrollTop+=q}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,a,d,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(d=(a=this.virtualizer)==null?void 0:a.getVirtualItems)==null?void 0:d.call(a))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var v,A,R,H;let{navItems:e,virtualizerProps:i,virtualizer:a}=this,d=(A=(v=i.rangeExtractor)==null?void 0:v.call(i,t))!=null?A:Ym(t);return this.hiddenIndexes.forEach(J=>{let q=e.at(J);q&&(q.removeAttribute("data-virtualized-hidden"),q.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(H=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?H:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var q;d.includes(J)||(J<t.startIndex&&J>=0&&(d.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((q=a==null?void 0:a.options.count)!=null?q:0)&&(d.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),d.sort((J,q)=>J-q),d}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:a}=this;if(!a||i.count===0)return;let{measurementsCache:d}=a;this.hiddenIndexes.forEach(f=>{let v=e.at(f);if(v){let A=Math.max(t.startIndex-t.overscan,0),R=d[A],H=d[f];v.setAttribute("data-virtualized-hidden","true"),v.style.setProperty("--mdc-virtualizedlist-hidden-top",`${H.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let a=this.isElementSelected(t);if(t.tabIndex=a?0:-1,!a&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let d=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);d!==void 0&&this.setSelectedIndex(d)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,a,d,f;switch(this.getActionForKeyEvent(t)){case K.HOME:{(a=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||a.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case K.END:{let v=this.virtualizerProps.count-1;(f=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||f.call(d,v,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(v));break}case K.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let a=t;a>=0&&a<i;a+=e)if(this.isItemNavigable(a))return a;return null}resetTabIndexAndSetFocus(t,e,i=!0,a=i){if(this.navItems.find(v=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(v))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let v=t>=e?1:-1,A=this.findNextNavigableIndex(t+v,v);return A!==null?this.resetTabIndexAndSetFocus(A,e,i,a):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,a),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,a);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,a;(a=(i=this.virtualizer).scrollToIndex)==null||a.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var a;let t=this.virtualItems.find(({index:d})=>!this.hiddenIndexes.includes(d)),e=(a=t==null?void 0:t.start)!=null?a:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return S`
7787
+ `],IE=zI;var CE=V.constructTagName("virtualizedlist"),eot=V.constructTagName("virtualizedwrapper"),La={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var ur=class extends oe(Ki){constructor(){super();this.virtualizerProps=La.VIRTUALIZER_PROPS;this.loop=La.LOOP;this.scrollAnchoring=La.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=La.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(a=>a===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Gn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Zt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:La.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,a;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let d=(a=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?a:"data-index";this.virtualizedNavItems=new Bc(super.navItems,f=>Number(f.getAttribute(d)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Vc(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==Gn.VERTICAL&&(this.orientation=Gn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,a;this.observeSizeChanges&&((a=(i=this.virtualizer)==null?void 0:i.measureElement)==null||a.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var a,d;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((a=t==null?void 0:t.count)!=null?a:0)),v=this.selectedIndex,x=this.firstKey,R=new zc(v-f,v+f,{includeEnd:!0}),H=(d=Array.from(R).find(W=>e.options.getItemKey(W)===this.selectedKey))!=null?d:this.selectedIndex;if(this.setSelectedIndex(H),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&v!==this.selectedIndex||!this.focusWithin&&this.firstKey!==x){let W=e.measurementsCache[this.selectedIndex].end-i[v].end;this.scrollRef.scrollTop+=W}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,a,d,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(d=(a=this.virtualizer)==null?void 0:a.getVirtualItems)==null?void 0:d.call(a))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var v,x,R,H;let{navItems:e,virtualizerProps:i,virtualizer:a}=this,d=(x=(v=i.rangeExtractor)==null?void 0:v.call(i,t))!=null?x:jm(t);return this.hiddenIndexes.forEach(J=>{let W=e.at(J);W&&(W.removeAttribute("data-virtualized-hidden"),W.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(H=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?H:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var W;d.includes(J)||(J<t.startIndex&&J>=0&&(d.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((W=a==null?void 0:a.options.count)!=null?W:0)&&(d.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),d.sort((J,W)=>J-W),d}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:a}=this;if(!a||i.count===0)return;let{measurementsCache:d}=a;this.hiddenIndexes.forEach(f=>{let v=e.at(f);if(v){let x=Math.max(t.startIndex-t.overscan,0),R=d[x],H=d[f];v.setAttribute("data-virtualized-hidden","true"),v.style.setProperty("--mdc-virtualizedlist-hidden-top",`${H.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let a=this.isElementSelected(t);if(t.tabIndex=a?0:-1,!a&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let d=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);d!==void 0&&this.setSelectedIndex(d)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,a,d,f;switch(this.getActionForKeyEvent(t)){case K.HOME:{(a=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||a.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case K.END:{let v=this.virtualizerProps.count-1;(f=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||f.call(d,v,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(v));break}case K.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let a=t;a>=0&&a<i;a+=e)if(this.isItemNavigable(a))return a;return null}resetTabIndexAndSetFocus(t,e,i=!0,a=i){if(this.navItems.find(v=>{var x;return((x=this.virtualizer)==null?void 0:x.indexFromElement(v))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let v=t>=e?1:-1,x=this.findNextNavigableIndex(t+v,v);return x!==null?this.resetTabIndexAndSetFocus(x,e,i,a):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,a),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,a);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,a;(a=(i=this.virtualizer).scrollToIndex)==null||a.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var a;let t=this.virtualItems.find(({index:d})=>!this.hiddenIndexes.includes(d)),e=(a=t==null?void 0:t.start)!=null?a:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return S`
7788
7788
  <slot name="list-header"></slot>
7789
7789
  <div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
7790
7790
  <div part="wrapper">
@@ -7793,7 +7793,7 @@
7793
7793
  </div>
7794
7794
  </div>
7795
7795
  </div>
7796
- `}};ur.styles=[...Ki.styles,...AE],h([u({type:Object})],ur.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],ur.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],ur.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],ur.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],ur.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],ur.prototype,"atBottomThreshold",2),h([zt('[part="scroll"]',!0)],ur.prototype,"scrollRef",2),h([zt('[part="wrapper"]',!0)],ur.prototype,"wrapperRef",2),h([zt('[part="container"]',!0)],ur.prototype,"containerRef",2),h([Af({passive:!0})],ur.prototype,"onScrollHandler",1);var qm=ur;qm.register(SE);var VI=qm;ve.register(Cf);var zI=ve;var IE=V.constructTagName("combobox"),Xm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Zm={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},CE="list";var Qm="combobox-trigger-id";var Oo=class{static dispatchComboboxEvent(o,t,e,i=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:i}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var BI=z`
7796
+ `}};ur.styles=[...Ki.styles,...IE],h([u({type:Object})],ur.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],ur.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],ur.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],ur.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],ur.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],ur.prototype,"atBottomThreshold",2),h([zt('[part="scroll"]',!0)],ur.prototype,"scrollRef",2),h([zt('[part="wrapper"]',!0)],ur.prototype,"wrapperRef",2),h([zt('[part="container"]',!0)],ur.prototype,"containerRef",2),h([If({passive:!0})],ur.prototype,"onScrollHandler",1);var Zm=ur;Zm.register(CE);var BI=Zm;ve.register(wf);var HI=ve;var _E=V.constructTagName("combobox"),Qm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Jm={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},wE="list";var tu="combobox-trigger-id";var Ro=class{static dispatchComboboxEvent(o,t,e,i=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:i}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var UI=z`
7797
7797
  :host {
7798
7798
  --mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
7799
7799
  --mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
@@ -7902,7 +7902,7 @@
7902
7902
  --mdc-icon-fill-color: ButtonText;
7903
7903
  }
7904
7904
  }
7905
- `,_E=[BI];var ke=class extends Ot(Nt(gi(Ve(me(oe(bi(te))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.filter=Zm.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(d=>d.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let d=t;if(d&&(!this.isValidItem(d)||d.tabIndex!==0))return;let f=this.navItems.findIndex(A=>A===d);if(f===-1)return;let v=f+1;v>=this.navItems.length&&(v=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Zt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(xr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===Zm.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let a=(t==null?void 0:t.getAttribute("label"))||"",d=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===d&&this.filteredValue===a)){if(this.controlType==="controlled"&&!i){e&&(Oo.onInputCombobox(this,t),Oo.onChangeCombobox(this,t));return}this.filteredValue=a,this.value=d,this.lastCommittedValue=d,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&(Oo.onInputCombobox(this,t),Oo.onChangeCombobox(this,t))}}resetSelectedValue(){this.controlType!=="controlled"&&(this.value=""),this.internals.setFormValue(this.value),this.resetHelpText()}resetHelpText(){this.invalidCustomValueText&&this.helpText===this.invalidCustomValueText&&(this.helpText="",this.helpTextType=Jt.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let a=null;if(i!==""){let d=this.getFirstSelectedOption(),f=this.navItems.find(v=>v.value===i);if(f)a=f;else if(d)a=d;else if(this.placeholder)a=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(a,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,a;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(a=this.visualCombobox)==null||a.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(a=>a.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(a=>(a.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let a=this.navItems.find(d=>d.value===this.lastCommittedValue);this.setSelectedValue(a)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=Jt.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var a;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(a=t[i])==null||a.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),i=e.findIndex(d=>d.hasAttribute("data-focused")),a=this.getKeyboardNavMode()===re.SPATIAL;switch(this.getActionForKeyEvent(t)){case K.DOWN:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case K.UP:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case K.ENTER:{if(a&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case K.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case K.TAB:{this.closePopover(),this.keyDownEventHandled();break}case K.HOME:case K.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let a=this.matchesFilter(i,this.filteredValue);a?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let d=i.parentElement;if(d&&d.matches(vc)){let v=d;e.add(v),a&&t.set(v,((f=t.get(v))!=null?f:0)+1)}}),e.forEach(i=>{var f;let a=((f=t.get(i))!=null?f:0)>0,d=i.nextElementSibling;a?(i.removeAttribute("data-hidden"),d&&d.matches($n)&&d.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),d&&d.matches($n)&&d.setAttribute("data-hidden",""))})}handleInputChange(t){var e;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),Oo.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var i;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(xr))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return S`
7905
+ `,kE=[UI];var ke=class extends Ot(Nt(gi(Ve(me(oe(bi(te))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.filter=Jm.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(d=>d.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let d=t;if(d&&(!this.isValidItem(d)||d.tabIndex!==0))return;let f=this.navItems.findIndex(x=>x===d);if(f===-1)return;let v=f+1;v>=this.navItems.length&&(v=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Zt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(xr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===Jm.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let a=(t==null?void 0:t.getAttribute("label"))||"",d=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===d&&this.filteredValue===a)){if(this.controlType==="controlled"&&!i){e&&(Ro.onInputCombobox(this,t),Ro.onChangeCombobox(this,t));return}this.filteredValue=a,this.value=d,this.lastCommittedValue=d,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&(Ro.onInputCombobox(this,t),Ro.onChangeCombobox(this,t))}}resetSelectedValue(){this.controlType!=="controlled"&&(this.value=""),this.internals.setFormValue(this.value),this.resetHelpText()}resetHelpText(){this.invalidCustomValueText&&this.helpText===this.invalidCustomValueText&&(this.helpText="",this.helpTextType=Jt.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let a=null;if(i!==""){let d=this.getFirstSelectedOption(),f=this.navItems.find(v=>v.value===i);if(f)a=f;else if(d)a=d;else if(this.placeholder)a=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(a,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,a;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(a=this.visualCombobox)==null||a.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(a=>a.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(a=>(a.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let a=this.navItems.find(d=>d.value===this.lastCommittedValue);this.setSelectedValue(a)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=Jt.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var a;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(a=t[i])==null||a.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),i=e.findIndex(d=>d.hasAttribute("data-focused")),a=this.getKeyboardNavMode()===re.SPATIAL;switch(this.getActionForKeyEvent(t)){case K.DOWN:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case K.UP:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case K.ENTER:{if(a&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case K.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case K.TAB:{this.closePopover(),this.keyDownEventHandled();break}case K.HOME:case K.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let a=this.matchesFilter(i,this.filteredValue);a?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let d=i.parentElement;if(d&&d.matches(vc)){let v=d;e.add(v),a&&t.set(v,((f=t.get(v))!=null?f:0)+1)}}),e.forEach(i=>{var f;let a=((f=t.get(i))!=null?f:0)>0,d=i.nextElementSibling;a?(i.removeAttribute("data-hidden"),d&&d.matches($n)&&d.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),d&&d.matches($n)&&d.setAttribute("data-hidden",""))})}handleInputChange(t){var e;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),Ro.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var i;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(xr))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return S`
7906
7906
  <input
7907
7907
  id="${this.inputId}"
7908
7908
  name="${this.name}"
@@ -7934,7 +7934,7 @@
7934
7934
  @input=${this.handleInputChange}
7935
7935
  @keydown=${this.handleInputKeydown}
7936
7936
  @blur="${this.handleBlurChange}"
7937
- aria-autocomplete="${CE}"
7937
+ aria-autocomplete="${wE}"
7938
7938
  aria-controls=""
7939
7939
  aria-describedby="${tt(this.helpText?Kt.HELPER_TEXT_ID:"")}"
7940
7940
  aria-disabled="${this.disabled?"true":"false"}"
@@ -7948,7 +7948,7 @@
7948
7948
  />
7949
7949
  `}renderNoResultsText(t){return t===0&&this.noResultText?S`<mdc-listitem part="no-result-text" tabindex="-1" role="" label="${this.noResultText}"></mdc-listitem>`:U}render(){var e;let t=this.getVisibleOptions(this.filteredValue);return S`
7950
7950
  ${this.renderLabel()}
7951
- <div part="combobox-base" id="${Qm}">
7951
+ <div part="combobox-base" id="${tu}">
7952
7952
  ${this.renderNativeInput()}
7953
7953
  <mdc-input
7954
7954
  @click="${this.handleTriggerClick}"
@@ -7968,7 +7968,7 @@
7968
7968
  >
7969
7969
  <mdc-icon
7970
7970
  part="combobox-button-icon"
7971
- name="${this.shouldDisplayPopover(t.length)?Xm.ARROW_UP:Xm.ARROW_DOWN}"
7971
+ name="${this.shouldDisplayPopover(t.length)?Qm.ARROW_UP:Qm.ARROW_DOWN}"
7972
7972
  size="1"
7973
7973
  length-unit="rem"
7974
7974
  ></mdc-icon>
@@ -7990,7 +7990,7 @@
7990
7990
  size
7991
7991
  strategy="${tt(this.strategy)}"
7992
7992
  trigger="${_e.MANUAL}"
7993
- triggerid="${Qm}"
7993
+ triggerid="${tu}"
7994
7994
  z-index="${tt(this.popoverZIndex)}"
7995
7995
  >
7996
7996
  ${this.renderNoResultsText(t.length)}
@@ -7998,7 +7998,7 @@
7998
7998
  </mdc-popover>
7999
7999
  </div>
8000
8000
  ${this.renderHelperText()}
8001
- `}};ke.styles=[...qr.styles,...te.styles,..._E],h([u({type:String})],ke.prototype,"placeholder",2),h([u({type:String,reflect:!0})],ke.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],ke.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ke.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],ke.prototype,"boundary",2),h([u({type:String,reflect:!0})],ke.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ke.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],ke.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ke.prototype,"backdropAppendTo",2),h([zt(`[role="${et.COMBOBOX}"]`)],ke.prototype,"visualCombobox",2),h([zt('[part="combobox-button"]')],ke.prototype,"dropDownButton",2),h([qt({selector:Sc})],ke.prototype,"slottedListboxes",2),h([dt()],ke.prototype,"isOpen",2),h([dt()],ke.prototype,"filteredValue",2);var Jm=ke;Jm.register(IE);var HI=Jm;var wE=(n,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(n[i],i);return e},kE=Pi(class extends li{constructor(n){if(super(n),n.type!==br.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],a=[],d=0;for(let f of n)i[d]=e?e(f,d):d,a[d]=t(f,d),d++;return{values:a,keys:i}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,e]){var ot;let i=sv(n),{values:a,keys:d}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=d,a;let f=(ot=this.ut)!=null?ot:this.ut=[],v=[],A,R,H=0,J=i.length-1,q=0,Q=a.length-1;for(;H<=J&&q<=Q;)if(i[H]===null)H++;else if(i[J]===null)J--;else if(f[H]===d[q])v[q]=uo(i[H],a[q]),H++,q++;else if(f[J]===d[Q])v[Q]=uo(i[J],a[Q]),J--,Q--;else if(f[H]===d[Q])v[Q]=uo(i[H],a[Q]),Ys(n,v[Q+1],i[H]),H++,Q--;else if(f[J]===d[q])v[q]=uo(i[J],a[q]),Ys(n,i[H],i[J]),J--,q++;else if(A===void 0&&(A=wE(d,q,Q),R=wE(f,H,J)),A.has(f[H]))if(A.has(f[J])){let st=R.get(d[q]),ht=st!==void 0?i[st]:null;if(ht===null){let bt=Ys(n,i[H]);uo(bt,a[q]),v[q]=bt}else v[q]=uo(ht,a[q]),Ys(n,i[H],ht),i[st]=null;q++}else td(i[J]),J--;else td(i[H]),H++;for(;q<=Q;){let st=Ys(n,v[Q+1]);uo(st,a[q]),v[q++]=st}for(;H<=J;){let st=i[H++];st!==null&&td(st)}return this.ut=d,Jl(n,v),$e}});var NE=V.constructTagName("slider"),UI={START:"start",END:"end",UNDEFINED:void 0},Ro={MIN:0,MAX:100,STEP:1,STATE:UI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var GI=z`
8001
+ `}};ke.styles=[...jr.styles,...te.styles,...kE],h([u({type:String})],ke.prototype,"placeholder",2),h([u({type:String,reflect:!0})],ke.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],ke.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ke.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],ke.prototype,"boundary",2),h([u({type:String,reflect:!0})],ke.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ke.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],ke.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ke.prototype,"backdropAppendTo",2),h([zt(`[role="${et.COMBOBOX}"]`)],ke.prototype,"visualCombobox",2),h([zt('[part="combobox-button"]')],ke.prototype,"dropDownButton",2),h([jt({selector:Sc})],ke.prototype,"slottedListboxes",2),h([dt()],ke.prototype,"isOpen",2),h([dt()],ke.prototype,"filteredValue",2);var eu=ke;eu.register(_E);var GI=eu;var NE=(n,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(n[i],i);return e},LE=Pi(class extends li{constructor(n){if(super(n),n.type!==br.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],a=[],d=0;for(let f of n)i[d]=e?e(f,d):d,a[d]=t(f,d),d++;return{values:a,keys:i}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,e]){var ot;let i=nv(n),{values:a,keys:d}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=d,a;let f=(ot=this.ut)!=null?ot:this.ut=[],v=[],x,R,H=0,J=i.length-1,W=0,Z=a.length-1;for(;H<=J&&W<=Z;)if(i[H]===null)H++;else if(i[J]===null)J--;else if(f[H]===d[W])v[W]=fo(i[H],a[W]),H++,W++;else if(f[J]===d[Z])v[Z]=fo(i[J],a[Z]),J--,Z--;else if(f[H]===d[Z])v[Z]=fo(i[H],a[Z]),Ys(n,v[Z+1],i[H]),H++,Z--;else if(f[J]===d[W])v[W]=fo(i[J],a[W]),Ys(n,i[H],i[J]),J--,W++;else if(x===void 0&&(x=NE(d,W,Z),R=NE(f,H,J)),x.has(f[H]))if(x.has(f[J])){let st=R.get(d[W]),ht=st!==void 0?i[st]:null;if(ht===null){let bt=Ys(n,i[H]);fo(bt,a[W]),v[W]=bt}else v[W]=fo(ht,a[W]),Ys(n,i[H],ht),i[st]=null;W++}else td(i[J]),J--;else td(i[H]),H++;for(;W<=Z;){let st=Ys(n,v[Z+1]);fo(st,a[W]),v[W++]=st}for(;H<=J;){let st=i[H++];st!==null&&td(st)}return this.ut=d,Jl(n,v),$e}});var ME=V.constructTagName("slider"),KI={START:"start",END:"end",UNDEFINED:void 0},Do={MIN:0,MAX:100,STEP:1,STATE:KI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var WI=z`
8002
8002
  :host {
8003
8003
  width: 100%;
8004
8004
  --mdc-slider-tooltip-left: 0;
@@ -8220,11 +8220,11 @@
8220
8220
  border: 1px solid;
8221
8221
  }
8222
8222
  }
8223
- `,LE=[$r,GI];var Ft=class extends Ot(Nt(Z)){constructor(){super();this.thumbFocused=Ro.STATE;this.thumbHovered=Ro.STATE;this.range=!1;this.min=Ro.MIN;this.max=Ro.MAX;this.step=Ro.STEP;this.spatialNavEditMode=!1;this.addEventListener("keydown",this.handleKeyEvent.bind(this)),this.addEventListener("mousedown",this.preventChange.bind(this))}updated(t){super.updated(t),(t.has("value")||t.has("step")||t.has("min")||t.has("max")||t.has("disabled")||t.has("softDisabled")||t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.updateTrackStyling(),t.has("softDisabled")&&this.setSoftDisabled(),(t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.initializeRangeSlider()}preventChange(t){this.softDisabled&&(t.preventDefault(),t.stopPropagation())}handleKeyEvent(t){var i;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.SPATIAL){if(this.softDisabled)return;let a=(i=this.shadowRoot)==null?void 0:i.activeElement,d=(a==null?void 0:a.tagName)==="INPUT";if(t.preventDefault(),!d){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&e===K.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((e===K.ENTER||e===K.ESCAPE||e===K.UP||e===K.DOWN)&&(this.spatialNavEditMode=!1,(e===K.ENTER||e===K.ESCAPE)&&this.keyDownEventHandled()),e===K.LEFT&&(a==null||a.stepDown(),this.keyDownEventHandled(),this.handleInput(a)),e===K.RIGHT&&(a==null||a.stepUp(),this.keyDownEventHandled(),this.handleInput(a)))}else this.softDisabled&&e!==K.TAB&&(t.preventDefault(),t.stopPropagation())}setSoftDisabled(){this.inputElements.forEach(t=>{let e=t;this.softDisabled?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")})}initializeRangeSlider(){this.valueStart===void 0&&(this.valueStart=this.min),this.valueEnd===void 0&&(this.valueEnd=this.max),this.inputElements.forEach(this.handleInput,this)}handleInput(t){let e=Array.from(this.inputElements);if(!e.includes(t))return;if(e.length===1){this.value=Number(t.value);return}let i=e.indexOf(t),a=e[i];if(i===0){if(!this.valueEnd)return;let d=Number(a.value);d>this.valueEnd?(a.value=String(this.valueEnd),this.valueStart=this.valueEnd):d>=this.min&&d<this.valueEnd?this.valueStart=d:d<this.min&&(a.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let d=Number(a.value);d<this.valueStart?(a.value=String(this.valueStart),this.valueEnd=this.valueStart):d<=this.max&&d>this.valueStart?this.valueEnd=d:d>this.max&&(a.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,e){return typeof t=="string"&&t.length>0?S`<mdc-icon
8223
+ `,OE=[$r,WI];var Ft=class extends Ot(Nt(Q)){constructor(){super();this.thumbFocused=Do.STATE;this.thumbHovered=Do.STATE;this.range=!1;this.min=Do.MIN;this.max=Do.MAX;this.step=Do.STEP;this.spatialNavEditMode=!1;this.addEventListener("keydown",this.handleKeyEvent.bind(this)),this.addEventListener("mousedown",this.preventChange.bind(this))}updated(t){super.updated(t),(t.has("value")||t.has("step")||t.has("min")||t.has("max")||t.has("disabled")||t.has("softDisabled")||t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.updateTrackStyling(),t.has("softDisabled")&&this.setSoftDisabled(),(t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.initializeRangeSlider()}preventChange(t){this.softDisabled&&(t.preventDefault(),t.stopPropagation())}handleKeyEvent(t){var i;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.SPATIAL){if(this.softDisabled)return;let a=(i=this.shadowRoot)==null?void 0:i.activeElement,d=(a==null?void 0:a.tagName)==="INPUT";if(t.preventDefault(),!d){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&e===K.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((e===K.ENTER||e===K.ESCAPE||e===K.UP||e===K.DOWN)&&(this.spatialNavEditMode=!1,(e===K.ENTER||e===K.ESCAPE)&&this.keyDownEventHandled()),e===K.LEFT&&(a==null||a.stepDown(),this.keyDownEventHandled(),this.handleInput(a)),e===K.RIGHT&&(a==null||a.stepUp(),this.keyDownEventHandled(),this.handleInput(a)))}else this.softDisabled&&e!==K.TAB&&(t.preventDefault(),t.stopPropagation())}setSoftDisabled(){this.inputElements.forEach(t=>{let e=t;this.softDisabled?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")})}initializeRangeSlider(){this.valueStart===void 0&&(this.valueStart=this.min),this.valueEnd===void 0&&(this.valueEnd=this.max),this.inputElements.forEach(this.handleInput,this)}handleInput(t){let e=Array.from(this.inputElements);if(!e.includes(t))return;if(e.length===1){this.value=Number(t.value);return}let i=e.indexOf(t),a=e[i];if(i===0){if(!this.valueEnd)return;let d=Number(a.value);d>this.valueEnd?(a.value=String(this.valueEnd),this.valueStart=this.valueEnd):d>=this.min&&d<this.valueEnd?this.valueStart=d:d<this.min&&(a.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let d=Number(a.value);d<this.valueStart?(a.value=String(this.valueStart),this.valueEnd=this.valueStart):d<=this.max&&d>this.valueStart?this.valueEnd=d:d>this.max&&(a.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,e){return typeof t=="string"&&t.length>0?S`<mdc-icon
8224
8224
  name="${t}"
8225
8225
  part="${e}"
8226
- length-unit="${Ro.ICON_LENGTH_UNIT}"
8227
- size="${Ro.ICON_SIZE}"
8226
+ length-unit="${Do.ICON_LENGTH_UNIT}"
8227
+ size="${Do.ICON_SIZE}"
8228
8228
  ></mdc-icon>`:null}tooltipTemplate(t,e){let[i,a]=this.inputElements,d=e==="end"?a:i,f=Number(d==null?void 0:d.value);if(typeof f!="number"||Number.isNaN(f)||this.max===this.min||this.disabled||this.hideTooltip)return U;let v=(f-this.min)/(this.max-this.min);return S`<div part="slider-tooltip" aria-hidden="true" style="--mdc-slider-tooltip-left: ${v}">
8229
8229
  ${t||f}
8230
8230
  </div> `}updateTrackStyling(){let t="var(--mdc-slider-progress-color)",e="var(--mdc-slider-track-color)";if((this.disabled||this.softDisabled)&&(t="var(--mds-color-theme-control-active-disabled)",e="var(--mds-color-theme-control-inactive-disabled)"),this.range){if(!this.inputElements[1])return;let i=Number(this.inputElements[0].value),a=Number(this.inputElements[1].value),d=Number(this.inputElements[0].max)||1,f=Math.max(0,Math.min(100,(i-this.min)/(d-this.min)*100)),v=Math.max(0,Math.min(100,(a-this.min)/(d-this.min)*100));this.inputElements[1].style.background=`linear-gradient(
@@ -8236,8 +8236,8 @@
8236
8236
  ${e} ${v}%,
8237
8237
  ${e} 100%
8238
8238
  )`}else{if(!this.inputElements[0])return;let i=Number(this.inputElements[0].value),a=Number(this.inputElements[0].max)||1,d=Math.max(0,Math.min(100,(i-this.min)/(a-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${d}%, ${e} ${d}%)`}}onInput(t){let e=t.target;this.handleInput(e)}onChange(t){let e=t.target;this.value=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value}}))}onChangeStart(t){let e=t.target;this.valueStart=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueStart:this.valueStart,valueEnd:this.valueEnd}}))}onChangeEnd(t){let e=t.target;this.valueEnd=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueEnd:this.valueEnd,valueStart:this.valueStart}}))}getTickStyles(t){if(this.max===this.min)return"";let e=(t-this.min)/(this.max-this.min),i=[];if(this.inputElements[0]){let d=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);i.push(d)}if(this.range&&this.inputElements[1]){let d=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);i.push(d)}return i.includes(e)?"display:none;":`--mdc-slider-tick-left:${e};`}renderTicks(){let t=[];if(this.step&&this.step>1)for(let e=this.min;e<=this.max;e+=this.step)t.push(e);return this.step>1?S` <div part="slider-ticks">
8239
- ${kE(t,e=>e,e=>S`<span part="slider-tick" style=${this.getTickStyles(e)}></span>`)}
8240
- </div>`:U}render(){var t,e,i,a,d,f,v,A,R,H,J,q,Q,ot,st,ht,bt;return S`
8239
+ ${LE(t,e=>e,e=>S`<span part="slider-tick" style=${this.getTickStyles(e)}></span>`)}
8240
+ </div>`:U}render(){var t,e,i,a,d,f,v,x,R,H,J,W,Z,ot,st,ht,bt;return S`
8241
8241
  ${this.label?S`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
8242
8242
  <div part="slider-track">
8243
8243
  ${this.iconTemplate(this.leadingIcon,"leading-icon")}
@@ -8281,7 +8281,7 @@
8281
8281
  name="${(v=this.nameEnd)!=null?v:""}"
8282
8282
  aria-valuemin="${this.min}"
8283
8283
  aria-valuemax="${this.max}"
8284
- aria-valuenow="${(A=this.valueEnd)!=null?A:this.max}"
8284
+ aria-valuenow="${(x=this.valueEnd)!=null?x:this.max}"
8285
8285
  aria-label="${this.endAriaLabel||this.label||""}"
8286
8286
  aria-valuetext="${this.endAriaValueText||this.valueLabelEnd||this.valueEnd||""}"
8287
8287
  tabindex="${this.disabled?-1:0}"
@@ -8307,8 +8307,8 @@
8307
8307
  name="${(J=this.name)!=null?J:""}"
8308
8308
  aria-valuemin="${this.min}"
8309
8309
  aria-valuemax="${this.max}"
8310
- aria-valuenow="${(q=this.value)!=null?q:this.min}"
8311
- aria-label="${(ot=(Q=this.dataAriaLabel)!=null?Q:this.label)!=null?ot:""}"
8310
+ aria-valuenow="${(W=this.value)!=null?W:this.min}"
8311
+ aria-label="${(ot=(Z=this.dataAriaLabel)!=null?Z:this.label)!=null?ot:""}"
8312
8312
  aria-valuetext="${(bt=(st=this.dataAriaValuetext)!=null?st:this.valueLabel)!=null?bt:String((ht=this.value)!=null?ht:"")}"
8313
8313
  tabindex="${this.disabled?-1:0}"
8314
8314
  @input=${this.onInput}
@@ -8327,7 +8327,7 @@
8327
8327
  ${this.labelStart?S`<span part="slider-label-start">${this.labelStart}</span>`:null}
8328
8328
  ${this.labelEnd?S`<span part="slider-label-end">${this.labelEnd}</span>`:null}
8329
8329
  </div>
8330
- `}};Ft.styles=[...Z.styles,...LE],h([dt()],Ft.prototype,"thumbFocused",2),h([dt()],Ft.prototype,"thumbHovered",2),h([u({reflect:!0,type:Boolean})],Ft.prototype,"range",2),h([u({reflect:!0,type:Number})],Ft.prototype,"min",2),h([u({reflect:!0,type:Number})],Ft.prototype,"max",2),h([u({reflect:!0,type:Boolean})],Ft.prototype,"disabled",2),h([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Ft.prototype,"softDisabled",2),h([u({reflect:!0,type:String,attribute:"leading-icon"})],Ft.prototype,"leadingIcon",2),h([u({reflect:!0,type:String,attribute:"trailing-icon"})],Ft.prototype,"trailingIcon",2),h([u({reflect:!0,type:Number})],Ft.prototype,"value",2),h([u({reflect:!0,type:Number,attribute:"value-start"})],Ft.prototype,"valueStart",2),h([u({reflect:!0,type:Number,attribute:"value-end"})],Ft.prototype,"valueEnd",2),h([u({reflect:!0,type:Number})],Ft.prototype,"step",2),h([u({reflect:!0,type:String})],Ft.prototype,"label",2),h([u({reflect:!0,type:String,attribute:"label-start"})],Ft.prototype,"labelStart",2),h([u({reflect:!0,type:String,attribute:"label-end"})],Ft.prototype,"labelEnd",2),h([u({reflect:!0,type:String,attribute:"value-label"})],Ft.prototype,"valueLabel",2),h([u({reflect:!0,type:String,attribute:"value-label-start"})],Ft.prototype,"valueLabelStart",2),h([u({reflect:!0,type:String,attribute:"value-label-end"})],Ft.prototype,"valueLabelEnd",2),h([u({reflect:!0,type:String})],Ft.prototype,"name",2),h([u({reflect:!0,type:String,attribute:"name-start"})],Ft.prototype,"nameStart",2),h([u({reflect:!0,type:String,attribute:"name-end"})],Ft.prototype,"nameEnd",2),h([u({reflect:!0,type:String,attribute:"data-aria-label"})],Ft.prototype,"dataAriaLabel",2),h([u({reflect:!0,type:String,attribute:"start-aria-label"})],Ft.prototype,"startAriaLabel",2),h([u({reflect:!0,type:String,attribute:"end-aria-label"})],Ft.prototype,"endAriaLabel",2),h([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Ft.prototype,"dataAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Ft.prototype,"startAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Ft.prototype,"endAriaValueText",2),h([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Ft.prototype,"hideTooltip",2),h([Sf('input[type="range"]')],Ft.prototype,"inputElements",2);var tu=Ft;tu.register(NE);var KI=tu;var WI=z`
8330
+ `}};Ft.styles=[...Q.styles,...OE],h([dt()],Ft.prototype,"thumbFocused",2),h([dt()],Ft.prototype,"thumbHovered",2),h([u({reflect:!0,type:Boolean})],Ft.prototype,"range",2),h([u({reflect:!0,type:Number})],Ft.prototype,"min",2),h([u({reflect:!0,type:Number})],Ft.prototype,"max",2),h([u({reflect:!0,type:Boolean})],Ft.prototype,"disabled",2),h([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Ft.prototype,"softDisabled",2),h([u({reflect:!0,type:String,attribute:"leading-icon"})],Ft.prototype,"leadingIcon",2),h([u({reflect:!0,type:String,attribute:"trailing-icon"})],Ft.prototype,"trailingIcon",2),h([u({reflect:!0,type:Number})],Ft.prototype,"value",2),h([u({reflect:!0,type:Number,attribute:"value-start"})],Ft.prototype,"valueStart",2),h([u({reflect:!0,type:Number,attribute:"value-end"})],Ft.prototype,"valueEnd",2),h([u({reflect:!0,type:Number})],Ft.prototype,"step",2),h([u({reflect:!0,type:String})],Ft.prototype,"label",2),h([u({reflect:!0,type:String,attribute:"label-start"})],Ft.prototype,"labelStart",2),h([u({reflect:!0,type:String,attribute:"label-end"})],Ft.prototype,"labelEnd",2),h([u({reflect:!0,type:String,attribute:"value-label"})],Ft.prototype,"valueLabel",2),h([u({reflect:!0,type:String,attribute:"value-label-start"})],Ft.prototype,"valueLabelStart",2),h([u({reflect:!0,type:String,attribute:"value-label-end"})],Ft.prototype,"valueLabelEnd",2),h([u({reflect:!0,type:String})],Ft.prototype,"name",2),h([u({reflect:!0,type:String,attribute:"name-start"})],Ft.prototype,"nameStart",2),h([u({reflect:!0,type:String,attribute:"name-end"})],Ft.prototype,"nameEnd",2),h([u({reflect:!0,type:String,attribute:"data-aria-label"})],Ft.prototype,"dataAriaLabel",2),h([u({reflect:!0,type:String,attribute:"start-aria-label"})],Ft.prototype,"startAriaLabel",2),h([u({reflect:!0,type:String,attribute:"end-aria-label"})],Ft.prototype,"endAriaLabel",2),h([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Ft.prototype,"dataAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Ft.prototype,"startAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Ft.prototype,"endAriaValueText",2),h([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Ft.prototype,"hideTooltip",2),h([Cf('input[type="range"]')],Ft.prototype,"inputElements",2);var ru=Ft;ru.register(ME);var YI=ru;var qI=z`
8331
8331
  :host {
8332
8332
  --mdc-listbox-max-height: auto;
8333
8333
 
@@ -8344,7 +8344,7 @@
8344
8344
  ::slotted(mdc-option) {
8345
8345
  width: 100%;
8346
8346
  }
8347
- `,ME=[WI];var Do=class extends vi(gi(Z)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.multiple?this.syncValueToFirstSelected():this.setSelectedOption(e,!1,!1);break;case"unselected":this.multiple?this.syncValueToFirstSelected():this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,!1)}}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${xr}:not([disabled])`)}handleClick(t){let i=t.target.closest(xr);!i||!this.isValidItem(i)||(this.multiple?this.toggleOptionSelection(i):this.setSelectedOption(i))}toggleOptionSelection(t){if(t.disabled||t.softDisabled)return;let e=t.hasAttribute("selected");t.toggleAttribute("selected",!e),this.syncValueToFirstSelected(),this.fireEvents()}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}syncValueToFirstSelected(){let t=this.getFirstSelectedOption();this.value=t==null?void 0:t.value,this.selectedOption=t!=null?t:null}getSelectedValues(){return this.itemsStore.items.reduce((t,e)=>{let{value:i}=e;return e.hasAttribute("selected")&&i!==void 0&&t.push(i),t},[])}setInitialFocus(){let t=this.getFirstSelectedOption();if(t){let e=this.itemsStore.items.indexOf(t);if(e!==-1){this.resetTabIndexAndSetFocus(e,void 0,!1);return}}super.setInitialFocus()}updated(t){if(t.has("multiple")&&(this.multiple?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),t.has("value")&&!this.multiple){let e=this.itemsStore.items.find(i=>i.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,i=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(i&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selectedValues:this.getSelectedValues()},composed:!0,bubbles:!0}))}render(){return S`<slot part="container"></slot>`}};Do.styles=[...Vp.styles,...ME],h([u({type:String,reflect:!0})],Do.prototype,"name",2),h([u({type:String,reflect:!0})],Do.prototype,"value",2),h([u({type:Boolean,reflect:!0})],Do.prototype,"multiple",2),h([dt()],Do.prototype,"selectedOption",2);var eu=Do;var OE=V.constructTagName("listbox");eu.register(OE);var YI=eu;var RE=V.constructTagName("banner"),Ma={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},nl={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Hc={VARIANT:Ma.CUSTOM,PREFIX_ICON_SIZE:1.25};var jI=z`
8347
+ `,RE=[qI];var Po=class extends vi(gi(Q)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.multiple?this.syncValueToFirstSelected():this.setSelectedOption(e,!1,!1);break;case"unselected":this.multiple?this.syncValueToFirstSelected():this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,!1)}}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${xr}:not([disabled])`)}handleClick(t){let i=t.target.closest(xr);!i||!this.isValidItem(i)||(this.multiple?this.toggleOptionSelection(i):this.setSelectedOption(i))}toggleOptionSelection(t){if(t.disabled||t.softDisabled)return;let e=t.hasAttribute("selected");t.toggleAttribute("selected",!e),this.syncValueToFirstSelected(),this.fireEvents()}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}syncValueToFirstSelected(){let t=this.getFirstSelectedOption();this.value=t==null?void 0:t.value,this.selectedOption=t!=null?t:null}getSelectedValues(){return this.itemsStore.items.reduce((t,e)=>{let{value:i}=e;return e.hasAttribute("selected")&&i!==void 0&&t.push(i),t},[])}setInitialFocus(){let t=this.getFirstSelectedOption();if(t){let e=this.itemsStore.items.indexOf(t);if(e!==-1){this.resetTabIndexAndSetFocus(e,void 0,!1);return}}super.setInitialFocus()}updated(t){if(t.has("multiple")&&(this.multiple?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),t.has("value")&&!this.multiple){let e=this.itemsStore.items.find(i=>i.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,i=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(i&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selectedValues:this.getSelectedValues()},composed:!0,bubbles:!0}))}render(){return S`<slot part="container"></slot>`}};Po.styles=[...Bp.styles,...RE],h([u({type:String,reflect:!0})],Po.prototype,"name",2),h([u({type:String,reflect:!0})],Po.prototype,"value",2),h([u({type:Boolean,reflect:!0})],Po.prototype,"multiple",2),h([dt()],Po.prototype,"selectedOption",2);var iu=Po;var DE=V.constructTagName("listbox");iu.register(DE);var jI=iu;var PE=V.constructTagName("banner"),Ma={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},nl={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Hc={VARIANT:Ma.CUSTOM,PREFIX_ICON_SIZE:1.25};var XI=z`
8348
8348
  :host {
8349
8349
  --mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
8350
8350
  --mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -8427,7 +8427,7 @@
8427
8427
  gap: var(--mdc-banner-gap);
8428
8428
  flex-wrap: wrap;
8429
8429
  }
8430
- `,DE=[jI];var PE=n=>{switch(n){case Ma.INFORMATIONAL:return nl.INFORMATIONAL_ICON_NAME;case Ma.SUCCESS:return nl.SUCCESS_ICON_NAME;case Ma.WARNING:return nl.WARNING_ICON_NAME;case Ma.ERROR:return nl.ERROR_ICON_NAME;default:return null}};var Ns=class extends Z{constructor(){super(...arguments);this.variant=Hc.VARIANT}renderIcon(t){return t?S`
8430
+ `,FE=[XI];var $E=n=>{switch(n){case Ma.INFORMATIONAL:return nl.INFORMATIONAL_ICON_NAME;case Ma.SUCCESS:return nl.SUCCESS_ICON_NAME;case Ma.WARNING:return nl.WARNING_ICON_NAME;case Ma.ERROR:return nl.ERROR_ICON_NAME;default:return null}};var Ns=class extends Q{constructor(){super(...arguments);this.variant=Hc.VARIANT}renderIcon(t){return t?S`
8431
8431
  <mdc-icon name="${t}" size="${Hc.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
8432
8432
  `:U}getTextLabel(){return this.label?S`
8433
8433
  <mdc-text
@@ -8446,7 +8446,7 @@
8446
8446
  <slot name="content">
8447
8447
  <div part="leading">
8448
8448
  <slot name="leading-icon">
8449
- ${this.variant!==Hc.VARIANT?this.renderIcon(PE(this.variant)):U}
8449
+ ${this.variant!==Hc.VARIANT?this.renderIcon($E(this.variant)):U}
8450
8450
  </slot>
8451
8451
  <slot name="leading-text">
8452
8452
  <div part="leading-text">${this.getTextLabel()}</div>
@@ -8456,7 +8456,7 @@
8456
8456
  <slot name="trailing-actions"></slot>
8457
8457
  </div>
8458
8458
  </slot>
8459
- `}};Ns.styles=[...Z.styles,...DE],h([u({type:String,reflect:!0})],Ns.prototype,"variant",2),h([u({type:String,reflect:!0})],Ns.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Ns.prototype,"secondaryLabel",2);var ru=Ns;ru.register(RE);var qI=ru;var XI=z`
8459
+ `}};Ns.styles=[...Q.styles,...FE],h([u({type:String,reflect:!0})],Ns.prototype,"variant",2),h([u({type:String,reflect:!0})],Ns.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Ns.prototype,"secondaryLabel",2);var ou=Ns;ou.register(PE);var ZI=ou;var QI=z`
8460
8460
  :host {
8461
8461
  --mdc-verticaltablist-width: 100%;
8462
8462
 
@@ -8477,14 +8477,14 @@
8477
8477
  --mdc-tab-line-active-indicator-width: 0.125rem;
8478
8478
  --mdc-tab-content-justification: space-between;
8479
8479
  }
8480
- `,FE=[XI];var Uc=class extends Mc(Ki){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${_a}:not([disabled])`)}onElementStoreUpdate(t,e,i){super.onElementStoreUpdate(t,e,i),e==="added"&&t.setAttribute("variant","line")}connectedCallback(){super.connectedCallback(),this.role=et.TABLIST,this.setAttribute("aria-orientation","vertical")}render(){return S`
8480
+ `,VE=[QI];var Uc=class extends Mc(Ki){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${_a}:not([disabled])`)}onElementStoreUpdate(t,e,i){super.onElementStoreUpdate(t,e,i),e==="added"&&t.setAttribute("variant","line")}connectedCallback(){super.connectedCallback(),this.role=et.TABLIST,this.setAttribute("aria-orientation","vertical")}render(){return S`
8481
8481
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
8482
8482
  <slot part="container" role="presentation"></slot>
8483
- `}};Uc.styles=[...Ki.styles,...FE];var iu=Uc;var $E=V.constructTagName("verticaltablist");iu.register($E);var ZI=iu;var VE=V.constructTagName("focustrap"),Gc={TRAP_DISABLED:!1,RESTORE_FOCUS_DISABLED:!1,AUTO_FOCUS:!1};var QI=z`
8483
+ `}};Uc.styles=[...Ki.styles,...VE];var su=Uc;var zE=V.constructTagName("verticaltablist");su.register(zE);var JI=su;var BE=V.constructTagName("focustrap"),Gc={TRAP_DISABLED:!1,RESTORE_FOCUS_DISABLED:!1,AUTO_FOCUS:!1};var tC=z`
8484
8484
  :host {
8485
8485
  display: contents;
8486
8486
  }
8487
- `,zE=[QI];var Ls=class extends js(Z){constructor(){super(...arguments);this.trapDisabled=Gc.TRAP_DISABLED;this.focusTrap=!0;this.restoreFocusDisabled=Gc.RESTORE_FOCUS_DISABLED;this.autoFocus=Gc.AUTO_FOCUS;this.previouslyFocusedElement=null}disconnectedCallback(){let t=!this.trapDisabled;this.deactivateFocusTrap(),t&&this.restorePreviousFocus(),super.disconnectedCallback()}updated(t){var e;super.updated(t),t.has("trapDisabled")&&(this.focusTrap=!this.trapDisabled,this.trapDisabled?(this.deactivateFocusTrap(),this.restorePreviousFocus(),this.dispatchEvent(new CustomEvent("focus-trap-deactivated",{bubbles:!0,composed:!0}))):(this.previouslyFocusedElement=(e=document.activeElement)!=null?e:null,this.activateFocusTrap(),this.autoFocus&&requestAnimationFrame(()=>{this.autoFocus&&!this.trapDisabled&&this.setInitialFocus()}),this.dispatchEvent(new CustomEvent("focus-trap-activated",{bubbles:!0,composed:!0}))))}restorePreviousFocus(){!this.restoreFocusDisabled&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus({preventScroll:!0}),this.previouslyFocusedElement=null}render(){return S`<slot></slot>`}};Ls.styles=[...Z.styles,...zE],h([u({type:Boolean,reflect:!0,attribute:"trap-disabled"})],Ls.prototype,"trapDisabled",2),h([u({type:Boolean,reflect:!0,attribute:"restore-focus-disabled"})],Ls.prototype,"restoreFocusDisabled",2),h([u({type:Boolean,reflect:!0,attribute:"auto-focus"})],Ls.prototype,"autoFocus",2);var ou=Ls;ou.register(VE);var JI=ou;var Oa=V.constructTagName("checkboxtree");var tC=z`
8487
+ `,HE=[tC];var Ls=class extends qs(Q){constructor(){super(...arguments);this.trapDisabled=Gc.TRAP_DISABLED;this.focusTrap=!0;this.restoreFocusDisabled=Gc.RESTORE_FOCUS_DISABLED;this.autoFocus=Gc.AUTO_FOCUS;this.previouslyFocusedElement=null}disconnectedCallback(){let t=!this.trapDisabled;this.deactivateFocusTrap(),t&&this.restorePreviousFocus(),super.disconnectedCallback()}updated(t){var e;super.updated(t),t.has("trapDisabled")&&(this.focusTrap=!this.trapDisabled,this.trapDisabled?(this.deactivateFocusTrap(),this.restorePreviousFocus(),this.dispatchEvent(new CustomEvent("focus-trap-deactivated",{bubbles:!0,composed:!0}))):(this.previouslyFocusedElement=(e=document.activeElement)!=null?e:null,this.activateFocusTrap(),this.autoFocus&&requestAnimationFrame(()=>{this.autoFocus&&!this.trapDisabled&&this.setInitialFocus()}),this.dispatchEvent(new CustomEvent("focus-trap-activated",{bubbles:!0,composed:!0}))))}restorePreviousFocus(){!this.restoreFocusDisabled&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus({preventScroll:!0}),this.previouslyFocusedElement=null}render(){return S`<slot></slot>`}};Ls.styles=[...Q.styles,...HE],h([u({type:Boolean,reflect:!0,attribute:"trap-disabled"})],Ls.prototype,"trapDisabled",2),h([u({type:Boolean,reflect:!0,attribute:"restore-focus-disabled"})],Ls.prototype,"restoreFocusDisabled",2),h([u({type:Boolean,reflect:!0,attribute:"auto-focus"})],Ls.prototype,"autoFocus",2);var au=Ls;au.register(BE);var eC=au;var Oa=V.constructTagName("checkboxtree");var rC=z`
8488
8488
  :host {
8489
8489
  box-sizing: border-box;
8490
8490
  max-width: 100%;
@@ -8506,10 +8506,10 @@
8506
8506
  /* Keep the fallback here so consumer overrides inherit through nested trees. */
8507
8507
  padding-inline-start: var(--mdc-checkboxtree-indent, 1.5rem);
8508
8508
  }
8509
- `,BE=[tC];var Kc=class extends vi(pa){constructor(){super();this.loop="false";this.pendingSynchronization=!1;this.handleSlotChange=()=>{this.rootTree.synchronizeTree()};this.handleCheckboxModified=t=>{this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(is)||this.scheduleSynchronizeTree()};this.handleCheckboxChange=t=>{if(this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(is))return;let e=t.target,i=this.getChildTree(e);i&&this.setDescendantState(i,e.checked),this.synchronizeParentStates()};this.addEventListener("change",this.handleCheckboxChange),this.addEventListener("modified",this.handleCheckboxModified)}connectedCallback(){var e;let t=this.getAttribute("aria-label");super.connectedCallback(),this.generatedAriaLabel===void 0&&t===null&&(this.generatedAriaLabel=(e=this.label)!=null?e:""),this.synchronizeContext(),this.isNested||this.synchronizeTree()}get parentTree(){var t,e;return(e=(t=this.parentElement)==null?void 0:t.closest(Oa))!=null?e:null}get rootTree(){var t,e;return(e=(t=this.parentTree)==null?void 0:t.rootTree)!=null?e:this}get isNested(){return this.parentTree!==null}get navItems(){return this.isNested?[]:this.getCheckboxes().filter(t=>!t.disabled)}setInitialFocus(){this.isNested||this.synchronizeTabIndexes()}getCheckboxes(){return Array.from(this.querySelectorAll(is))}scheduleSynchronizeTree(){this.pendingSynchronization||(this.pendingSynchronization=!0,queueMicrotask(()=>{this.pendingSynchronization=!1,this.synchronizeTree()}))}getChildTree(t){let e=t.nextElementSibling;return e!=null&&e.matches(Oa)?e:null}getParentCheckbox(t){let e=t.previousElementSibling;return e!=null&&e.matches(is)?e:null}setDescendantState(t,e){t.getCheckboxes().forEach(i=>{if(i.disabled||i.readonly||i.softDisabled)return;let a=i;a.checked=e,a.indeterminate=!1})}synchronizeTree(){this.isNested||!this.isConnected||(this.synchronizeParentStates(),this.synchronizeTabIndexes())}synchronizeParentStates(){Array.from(this.querySelectorAll(Oa)).reverse().forEach(e=>{let i=this.getParentCheckbox(e),a=e.getCheckboxes();if(!i||a.length===0)return;let d=a.every(v=>v.checked&&!v.indeterminate),f=a.some(v=>v.checked||v.indeterminate);i.checked=d,i.indeterminate=!d&&f})}synchronizeTabIndexes(){var f;let t=this.getCheckboxes(),e=t.filter(v=>!v.disabled),i=e.find(v=>v.matches(":focus-within")),a=e.find(v=>v.getAttribute("tabindex")==="0"),d=(f=i!=null?i:a)!=null?f:e[0];t.forEach(v=>{v.setAttribute("tabindex",v===d?"0":"-1")})}synchronizeContext(){var t;if(this.isNested){this.removeAttribute("aria-description"),this.removeAttribute("aria-invalid"),this.removeAttribute("aria-label"),this.removeAttribute("role");return}this.role=et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.helpTextType===Jt.ERROR?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}update(t){var i;let e=this.getAttribute("aria-label");super.update(t),!this.isNested&&(e===null||e===this.generatedAriaLabel)&&(this.generatedAriaLabel=(i=this.label)!=null?i:"",this.setAttribute("aria-label",this.generatedAriaLabel))}updated(t){super.updated(t),this.synchronizeContext()}render(){return S`
8509
+ `,UE=[rC];var Kc=class extends vi(pa){constructor(){super();this.loop="false";this.pendingSynchronization=!1;this.handleSlotChange=()=>{this.rootTree.synchronizeTree()};this.handleCheckboxModified=t=>{this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(is)||this.scheduleSynchronizeTree()};this.handleCheckboxChange=t=>{if(this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(is))return;let e=t.target,i=this.getChildTree(e);i&&this.setDescendantState(i,e.checked),this.synchronizeParentStates()};this.addEventListener("change",this.handleCheckboxChange),this.addEventListener("modified",this.handleCheckboxModified)}connectedCallback(){var e;let t=this.getAttribute("aria-label");super.connectedCallback(),this.generatedAriaLabel===void 0&&t===null&&(this.generatedAriaLabel=(e=this.label)!=null?e:""),this.synchronizeContext(),this.isNested||this.synchronizeTree()}get parentTree(){var t,e;return(e=(t=this.parentElement)==null?void 0:t.closest(Oa))!=null?e:null}get rootTree(){var t,e;return(e=(t=this.parentTree)==null?void 0:t.rootTree)!=null?e:this}get isNested(){return this.parentTree!==null}get navItems(){return this.isNested?[]:this.getCheckboxes().filter(t=>!t.disabled)}setInitialFocus(){this.isNested||this.synchronizeTabIndexes()}getCheckboxes(){return Array.from(this.querySelectorAll(is))}scheduleSynchronizeTree(){this.pendingSynchronization||(this.pendingSynchronization=!0,queueMicrotask(()=>{this.pendingSynchronization=!1,this.synchronizeTree()}))}getChildTree(t){let e=t.nextElementSibling;return e!=null&&e.matches(Oa)?e:null}getParentCheckbox(t){let e=t.previousElementSibling;return e!=null&&e.matches(is)?e:null}setDescendantState(t,e){t.getCheckboxes().forEach(i=>{if(i.disabled||i.readonly||i.softDisabled)return;let a=i;a.checked=e,a.indeterminate=!1})}synchronizeTree(){this.isNested||!this.isConnected||(this.synchronizeParentStates(),this.synchronizeTabIndexes())}synchronizeParentStates(){Array.from(this.querySelectorAll(Oa)).reverse().forEach(e=>{let i=this.getParentCheckbox(e),a=e.getCheckboxes();if(!i||a.length===0)return;let d=a.every(v=>v.checked&&!v.indeterminate),f=a.some(v=>v.checked||v.indeterminate);i.checked=d,i.indeterminate=!d&&f})}synchronizeTabIndexes(){var f;let t=this.getCheckboxes(),e=t.filter(v=>!v.disabled),i=e.find(v=>v.matches(":focus-within")),a=e.find(v=>v.getAttribute("tabindex")==="0"),d=(f=i!=null?i:a)!=null?f:e[0];t.forEach(v=>{v.setAttribute("tabindex",v===d?"0":"-1")})}synchronizeContext(){var t;if(this.isNested){this.removeAttribute("aria-description"),this.removeAttribute("aria-invalid"),this.removeAttribute("aria-label"),this.removeAttribute("role");return}this.role=et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.helpTextType===Jt.ERROR?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}update(t){var i;let e=this.getAttribute("aria-label");super.update(t),!this.isNested&&(e===null||e===this.generatedAriaLabel)&&(this.generatedAriaLabel=(i=this.label)!=null?i:"",this.setAttribute("aria-label",this.generatedAriaLabel))}updated(t){super.updated(t),this.synchronizeContext()}render(){return S`
8510
8510
  ${this.isNested?U:S`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`}
8511
8511
  <slot @slotchange=${this.handleSlotChange}></slot>
8512
- `}};Kc.styles=[...pa.styles,...BE];var su=Kc;su.register(Oa);var eC=su;})();
8512
+ `}};Kc.styles=[...pa.styles,...UE];var nu=Kc;nu.register(Oa);var iC=nu;})();
8513
8513
  /*! Bundled license information:
8514
8514
 
8515
8515
  lottie-web/build/player/lottie_light.js: