@momentum-design/components 0.134.1 → 0.134.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 gT=Object.create;var Uc=Object.defineProperty;var Ou=Object.getOwnPropertyDescriptor;var bT=Object.getOwnPropertyNames;var yT=Object.getPrototypeOf,ET=Object.prototype.hasOwnProperty;var TT=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var xT=(a,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of bT(o))!ET.call(a,i)&&i!==t&&Uc(a,i,{get:()=>o[i],enumerable:!(e=Ou(o,i))||e.enumerable});return a};var AT=(a,o,t)=>(t=a!=null?gT(yT(a)):{},xT(o||!a||!a.__esModule?Uc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,o,t,e)=>{for(var i=e>1?void 0:e?Ou(o,t):o,l=a.length-1,c;l>=0;l--)(c=a[l])&&(i=(e?c(o,t,i):c(i))||i);return e&&i&&Uc(o,t,i),i};var Uf=TT((an,Gl)=>{typeof navigator<"u"&&function(a,o){typeof an=="object"&&typeof Gl<"u"?Gl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(an,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},l=function(){return t},c=function(s){o=s},f=function(){return o};function b(r){return document.createElement(r)}function A(r,s){var n,d=r.length,m;for(n=0;n<d;n+=1){m=r[n].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function F(r,s){return Object.getOwnPropertyDescriptor(r,s)}function V(r){function s(){}return s.prototype=r,s}var Q=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),Z=function(){function r(n,d){var m=0,p=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(m=0;m<d;m+=1)p.push(g);return p}function s(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):r(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function tt(r){return Array.apply(null,{length:r})}function nt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nt=function(n){return typeof n}:nt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nt(r)}var at=!0,ht=null,It=null,Ct="",Ht=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),$t=!1,Ut=Math.pow,Ot=Math.sqrt,ae=Math.floor,Ue=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,n=r.length;for(s=0;s<n;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=nt(r);if(s==="object"&&r.length){var n=tt(r.length),d,m=r.length;for(d=0;d<m;d+=1)n[d]=Math.abs(r[d]);return n}return Math.abs(r)};var xe=150,kt=Math.PI/180,oe=.5519;function Ge(r){$t=!!r}function Qe(r){return $t?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 xr(r,s,n,d){this.type=r,this.currentTime=s,this.totalTime=n,this.direction=d<0?-1:1}function Xn(r,s){this.type=r,this.direction=s<0?-1:1}function zm(r,s,n,d){this.type=r,this.currentLoop=n,this.totalLoops=s,this.direction=d<0?-1:1}function Bm(r,s,n){this.type=r,this.firstFrame=s,this.totalFrames=n}function Hm(r,s){this.type=r,this.target=s}function gE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function bE(r){this.type="configError",this.nativeError=r}function CI(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,Ct+"__lottie_element_"+r}}();function Nc(r,s,n){var d,m,p,g,I,y,w,M;switch(g=Math.floor(r*6),I=r*6-g,y=n*(1-s),w=n*(1-I*s),M=n*(1-(1-I)*s),g%6){case 0:d=n,m=M,p=y;break;case 1:d=w,m=n,p=y;break;case 2:d=y,m=n,p=M;break;case 3:d=y,m=w,p=n;break;case 4:d=M,m=y,p=n;break;case 5:d=n,m=y,p=w;break;default:break}return[d,m,p]}function Lc(r,s,n){var d=Math.max(r,s,n),m=Math.min(r,s,n),p=d-m,g,I=d===0?0:p/d,y=d/255;switch(d){case m:g=0;break;case r:g=s-n+p*(s<n?6:0),g/=6*p;break;case s:g=n-r+p*2,g/=6*p;break;case n:g=r-s+p*4,g/=6*p;break;default:break}return[g,I,y]}function Um(r,s){var n=Lc(r[0]*255,r[1]*255,r[2]*255);return n[1]+=s,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Nc(n[0],n[1],n[2])}function Gm(r,s){var n=Lc(r[0]*255,r[1]*255,r[2]*255);return n[2]+=s,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Nc(n[0],n[1],n[2])}function Km(r,s){var n=Lc(r[0]*255,r[1]*255,r[2]*255);return n[0]+=s/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Nc(n[0],n[1],n[2])}var _I=function(){var r=[],s,n;for(s=0;s<256;s+=1)n=s.toString(16),r[s]=n.length===1?"0"+n:n;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),yE=function(s){at=!!s},EE=function(){return at},TE=function(s){ht=s},Zn=function(){return ht},kI=function(s){It=s},Wm=function(){return It},Qn=function(s){xe=s},Aa=function(){return xe},xE=function(s){Ct=s},wI=function(){return Ct};function At(r){return document.createElementNS(a,r)}function Jn(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jn=function(n){return typeof n}:Jn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jn(r)}var Sa=function(){var r=1,s=[],n,d,m={onmessage:function(){},postMessage:function(O){n({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),P=URL.createObjectURL(O);return new Worker(P)}return n=x,m}function I(){d||(d=g(function(O){function P(){function U(rt,_){var D,v,E=rt.length,j,z,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var xt=D.masksProperties;for(z=xt.length,j=0;j<z;j+=1)if(xt[j].pt.k.i)N(xt[j].pt.k);else for(gt=xt[j].pt.k.length,ct=0;ct<gt;ct+=1)xt[j].pt.k[ct].s&&N(xt[j].pt.k[ct].s[0]),xt[j].pt.k[ct].e&&N(xt[j].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,_),U(D.layers,_)):D.ty===4?C(D.shapes):D.ty===5&&St(D)}}function L(rt,_){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,_),U(rt[D].data.layers,_))}}function k(rt,_){for(var D=0,v=_.length;D<v;){if(_[D].id===rt)return _[D];D+=1}return null}function T(rt,_){var D=k(rt,_);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function C(rt){var _,D=rt.length,v,E;for(_=D-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,v=0;v<E;v+=1)rt[_].ks.k[v].s&&N(rt[_].ks.k[v].s[0]),rt[_].ks.k[v].e&&N(rt[_].ks.k[v].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,D=rt.i.length;for(_=0;_<D;_+=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 D=_?_.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var G=function(){var rt=[4,4,14];function _(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),q=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var D,v=_.chars.length;for(D=0;D<v;D+=1){var E=_.chars[D];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[D].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 _(v){var E=v.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 D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),Tt=function(){var rt=[4,1,9];function _(v){var E,j=v.length,z,ct;for(E=0;E<j;E+=1)if(v[E].ty==="gr")_(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,z=0;z<ct;z+=1)v[E].c.k[z].s&&(v[E].c.k[z].s[0]/=255,v[E].c.k[z].s[1]/=255,v[E].c.k[z].s[2]/=255,v[E].c.k[z].s[3]/=255),v[E].c.k[z].e&&(v[E].c.k[z].e[0]/=255,v[E].c.k[z].e[1]/=255,v[E].c.k[z].e[2]/=255,v[E].c.k[z].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===4&&_(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(v){var E,j=v.length,z,ct;for(E=j-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,z=0;z<ct;z+=1)v[E].ks.k[z].s&&(v[E].ks.k[z].s[0].c=v[E].closed),v[E].ks.k[z].e&&(v[E].ks.k[z].e[0].c=v[E].closed);else v[E].ty==="gr"&&_(v[E].it)}function D(v){var E,j,z=v.length,ct,gt,xt,Pt;for(j=0;j<z;j+=1){if(E=v[j],E.hasMask){var Ft=E.masksProperties;for(gt=Ft.length,ct=0;ct<gt;ct+=1)if(Ft[ct].pt.k.i)Ft[ct].pt.k.c=Ft[ct].cl;else for(Pt=Ft[ct].pt.k.length,xt=0;xt<Pt;xt+=1)Ft[ct].pt.k[xt].s&&(Ft[ct].pt.k[xt].s[0].c=Ft[ct].cl),Ft[ct].pt.k[xt].e&&(Ft[ct].pt.k[xt].e[0].c=Ft[ct].cl)}E.ty===4&&_(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function ot(rt){rt.__complete||(Tt(rt),G(rt),q(rt),it(rt),ft(rt),U(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function St(rt){rt.t.a.length===0&&"m"in rt.t.p}var pt={};return pt.completeData=ot,pt.checkColors=Tt,pt.checkChars=q,pt.checkPathProperties=it,pt.checkShapes=ft,pt.completeLayers=U,pt}if(p.dataManager||(p.dataManager=P()),p.assetLoader||(p.assetLoader=function(){function U(k){var T=k.getResponseHeader("content-type");return T&&k.responseType==="json"&&T.indexOf("json")!==-1||k.response&&Jn(k.response)==="object"?k.response:k.response&&typeof k.response=="string"?JSON.parse(k.response):k.responseText?JSON.parse(k.responseText):null}function L(k,T,C,N){var $,G=new XMLHttpRequest;try{G.responseType="json"}catch{}G.onreadystatechange=function(){if(G.readyState===4)if(G.status===200)$=U(G),C($);else try{$=U(G),C($)}catch(q){N&&N(q)}};try{G.open(["G","E","T"].join(""),k,!0)}catch{G.open(["G","E","T"].join(""),T+"/"+k,!0)}G.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.dataManager.completeData(U),p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,P=O.id,R=s[P];s[P]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function y(x,O){r+=1;var P="processId_"+r;return s[P]={onComplete:x,onError:O},P}function w(x,O,P){I();var R=y(O,P);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function M(x,O,P){I();var R=y(O,P);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function K(x,O,P){I();var R=y(O,P);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:M,completeAnimation:K}}(),AE=function(){var r=function(){var L=b("canvas");L.width=1,L.height=1;var k=L.getContext("2d");return k.fillStyle="rgba(0,0,0,0)",k.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 n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(L,k,T){var C="";if(L.e)C=L.p;else if(k){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=k+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var k=0,T=setInterval((function(){var C=L.getBBox();(C.width||k>500)&&(this._imageLoaded(),clearInterval(T)),k+=1}).bind(this),50)}function p(L){var k=d(L,this.assetsPath,this.path),T=At("image");Ht?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",k),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function g(L){var k=d(L,this.assetsPath,this.path),T=b("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=k;var C={img:T,assetData:L};return C}function I(L){var k={assetData:L},T=d(L,this.assetsPath,this.path);return Sa.loadData(T,(function(C){k.img=C,this._footageLoaded()}).bind(this),(function(){k.img={},this._footageLoaded()}).bind(this)),k}function y(L,k){this.imagesLoadedCb=k;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 w(L){this.path=L||""}function M(L){this.assetsPath=L||""}function K(L){for(var k=0,T=this.images.length;k<T;){if(this.images[k].assetData===L)return this.images[k].img;k+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function R(L,k){L==="svg"?(this._elementHelper=k,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=s.bind(this),this._footageLoaded=n.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 U.prototype={loadAssets:y,setAssetsPath:M,setPath:w,loadedImages:O,loadedFootages:P,destroy:x,getAsset:K,createImgData:g,createImageData:p,imageLoaded:s,footageLoaded:n,setCacheType:R},U}();function Ym(){}Ym.prototype={triggerEvent:function(s,n){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](n)},addEventListener:function(s,n){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(n),(function(){this.removeEventListener(s,n)}).bind(this)},removeEventListener:function(s,n){if(!n)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===n&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var SE=function(){function r(s){for(var n=s.split(`\r
2
- `),d={},m,p=0,g=0;g<n.length;g+=1)m=n[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var n=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}n.push(p)}return n}}(),IE=function(){function r(s){this.compositions.push(s)}return function(){function s(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Ia={},CE=function(s,n){Ia[s]=n};function _E(r){return Ia[r]}function kE(){if(Ia.canvas)return"canvas";for(var r in Ia)if(Ia[r])return r;return""}function Ca(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ca=function(n){return typeof n}:Ca=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ca(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=EE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=IE(),this.imagePreloader=new AE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new xr("drawnFrame",0,0,0),this.expressionsPlugin=Zn()};A([Ym],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 n=_E(s);this.renderer=new n(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")),Sa.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Sa.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Ca(s)!=="object"&&(s=JSON.parse(s));var n={wrapper:r,animationData:s},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:kE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):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,n,d=s.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(n=0;n<d;){if(s[n].id===m[p].id){s[n]=m[p];break}n+=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(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,Sa.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Zn();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 n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Sa.loadData(n,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=SE(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=Zn();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 n=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(n,d)},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,n=0;n<this.markers.length;n+=1)if(s=this.markers[n],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){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,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){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(d,s,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,n=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(n=!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):(n=!0,s=0)):this.setCurrentRawFrameValue(s),n&&(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 n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>s&&(n=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Ca(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}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 n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),s=this.assetsPath+n}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,n=this.assets.length;s<n;){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,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new xr(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 zm(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Xn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Bm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Hm(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new xr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new zm(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Xn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Bm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Hm(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 bE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var me=function(){var r={},s=[],n=0,d=0,m=0,p=!0,g=!1;function I(_){for(var D=0,v=_.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||K()),D+=1}function y(_,D){if(!_)return null;for(var v=0;v<d;){if(s[v].elem===_&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,_),E.setData(_,D),E}function w(){var _,D=s.length,v=[];for(_=0;_<D;_+=1)v.push(s[_].animation);return v}function M(){m+=1,Tt()}function K(){m-=1}function x(_,D){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",K),s.push({elem:D,animation:_}),d+=1}function O(_){var D=new vt;return x(D,null),D.setParams(_),D}function P(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(_,D)}function R(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(_,D)}function U(_){var D;for(D=0;D<d;D+=1)s[D].animation.play(_)}function L(_){var D=_-n,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);n=_,m&&!g?window.requestAnimationFrame(L):p=!0}function k(_){n=_,window.requestAnimationFrame(L)}function T(_){var D;for(D=0;D<d;D+=1)s[D].animation.pause(_)}function C(_,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(_,D,v)}function N(_){var D;for(D=0;D<d;D+=1)s[D].animation.stop(_)}function $(_){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(_)}function G(_){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(_)}function q(_,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,z=E.length;for(j=0;j<z;j+=1)v&&E[j].setAttribute("data-bm-type",v),y(E[j],_);if(D&&z===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=b("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<d;_+=1)s[_].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(k),p=!1)}function ft(){g=!0}function ot(){g=!1,Tt()}function St(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(_,D)}function pt(_){var D;for(D=0;D<d;D+=1)s[D].animation.mute(_)}function rt(_){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=P,r.setDirection=R,r.play=U,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=q,r.resize=it,r.goToAndStop=C,r.destroy=G,r.freeze=ft,r.unfreeze=ot,r.setVolume=St,r.mute=pt,r.unmute=rt,r.getRegisteredAnimations=w,r}(),_a=function(){var r={};r.getBezierEasing=n;var s={};function n(k,T,C,N,$){var G=$||("bez_"+k+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[G])return s[G];var q=new L([k,T,C,N]);return s[G]=q,q}var d=4,m=.001,p=1e-7,g=10,I=11,y=1/(I-1),w=typeof Float32Array=="function";function M(k,T){return 1-3*T+3*k}function K(k,T){return 3*T-6*k}function x(k){return 3*k}function O(k,T,C){return((M(T,C)*k+K(T,C))*k+x(T))*k}function P(k,T,C){return 3*M(T,C)*k*k+2*K(T,C)*k+x(T)}function R(k,T,C,N,$){var G,q,it=0;do q=T+(C-T)/2,G=O(q,N,$)-k,G>0?C=q:T=q;while(Math.abs(G)>p&&++it<g);return q}function U(k,T,C,N){for(var $=0;$<d;++$){var G=P(T,C,N);if(G===0)return T;var q=O(T,C,N)-k;T-=q/G}return T}function L(k){this._p=k,this._mSampleValues=w?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],G=this._p[3];return this._precomputed||this._precompute(),C===N&&$===G?T:T===0?0:T===1?1:O(this._getTForX(T),N,G)},_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,G=0,q=1,it=I-1;q!==it&&$[q]<=T;++q)G+=y;--q;var Tt=(T-$[q])/($[q+1]-$[q]),ft=G+Tt*y,ot=P(ft,C,N);return ot>=m?U(T,ft,C,N):ot===0?ft:R(T,G,G+y,C,N)}},r}(),jm=function(){function r(s){return s.concat(tt(s.length))}return{double:r}}(),tl=function(){return function(r,s,n){var d=0,m=r,p=tt(m),g={newElement:I,release:y};function I(){var w;return d?(d-=1,w=p[d]):w=s(),w}function y(w){d===m&&(p=jm.double(p),m*=2),n&&n(w),p[d]=w,d+=1}return g}}(),qm=function(){function r(){return{addedLength:0,percents:Z("float32",Aa()),lengths:Z("float32",Aa())}}return tl(8,r)}(),Xm=function(){function r(){return{lengths:[],totalLength:0}}function s(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)qm.release(n.lengths[d]);n.lengths.length=0}return tl(8,r,s)}();function wE(){var r=Math;function s(x,O,P,R,U,L){var k=x*R+O*U+P*L-U*R-L*x-P*O;return k>-.001&&k<.001}function n(x,O,P,R,U,L,k,T,C){if(P===0&&L===0&&C===0)return s(x,O,R,U,k,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(U-O,2)+r.pow(L-P,2)),$=r.sqrt(r.pow(k-x,2)+r.pow(T-O,2)+r.pow(C-P,2)),G=r.sqrt(r.pow(k-R,2)+r.pow(T-U,2)+r.pow(C-L,2)),q;return N>$?N>G?q=N-$-G:q=G-$-N:G>$?q=G-$-N:q=$-N-G,q>-1e-4&&q<1e-4}var d=function(){return function(x,O,P,R){var U=Aa(),L,k,T,C,N,$=0,G,q=[],it=[],Tt=qm.newElement();for(T=P.length,L=0;L<U;L+=1){for(N=L/(U-1),G=0,k=0;k<T;k+=1)C=Ut(1-N,3)*x[k]+3*Ut(1-N,2)*N*P[k]+3*(1-N)*Ut(N,2)*R[k]+Ut(N,3)*O[k],q[k]=C,it[k]!==null&&(G+=Ut(q[k]-it[k],2)),it[k]=q[k];G&&(G=Ot(G),$+=G),Tt.percents[L]=N,Tt.lengths[L]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=Xm.newElement(),P=x.c,R=x.v,U=x.o,L=x.i,k,T=x._length,C=O.lengths,N=0;for(k=0;k<T-1;k+=1)C[k]=d(R[k],R[k+1],U[k],L[k+1]),N+=C[k].addedLength;return P&&T&&(C[k]=d(R[k],R[0],U[k],L[0]),N+=C[k].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,P,R,U){var L=(O[0]+"_"+O[1]+"_"+P[0]+"_"+P[1]+"_"+R[0]+"_"+R[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!x[L]){var k=Aa(),T,C,N,$,G,q=0,it,Tt,ft=null;O.length===2&&(O[0]!==P[0]||O[1]!==P[1])&&s(O[0],O[1],P[0],P[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],P[0],P[1],P[0]+U[0],P[1]+U[1])&&(k=2);var ot=new p(k);for(N=R.length,T=0;T<k;T+=1){for(Tt=tt(N),G=T/(k-1),it=0,C=0;C<N;C+=1)$=Ut(1-G,3)*O[C]+3*Ut(1-G,2)*G*(O[C]+R[C])+3*(1-G)*Ut(G,2)*(P[C]+U[C])+Ut(G,3)*P[C],Tt[C]=$,ft!==null&&(it+=Ut(Tt[C]-ft[C],2));it=Ot(it),q+=it,ot.points[T]=new g(it,Tt),ft=Tt}ot.segmentLength=q,x[L]=ot}return x[L]}}();function y(x,O){var P=O.percents,R=O.lengths,U=P.length,L=ae((U-1)*x),k=x*O.addedLength,T=0;if(L===U-1||L===0||k===R[L])return P[L];for(var C=R[L]>k?-1:1,N=!0;N;)if(R[L]<=k&&R[L+1]>k?(T=(k-R[L])/(R[L+1]-R[L]),N=!1):L+=C,L<0||L>=U-1){if(L===U-1)return P[L];N=!1}return P[L]+(P[L+1]-P[L])*T}function w(x,O,P,R,U,L){var k=y(U,L),T=1-k,C=r.round((T*T*T*x[0]+(k*T*T+T*k*T+T*T*k)*P[0]+(k*k*T+T*k*k+k*T*k)*R[0]+k*k*k*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(k*T*T+T*k*T+T*T*k)*P[1]+(k*k*T+T*k*k+k*T*k)*R[1]+k*k*k*O[1])*1e3)/1e3;return[C,N]}var M=Z("float32",8);function K(x,O,P,R,U,L,k){U<0?U=0:U>1&&(U=1);var T=y(U,k);L=L>1?1:L;var C=y(L,k),N,$=x.length,G=1-T,q=1-C,it=G*G*G,Tt=T*G*G*3,ft=T*T*G*3,ot=T*T*T,St=G*G*q,pt=T*G*q+G*T*q+G*G*C,rt=T*T*q+G*T*C+T*G*C,_=T*T*C,D=G*q*q,v=T*q*q+G*C*q+G*q*C,E=T*C*q+G*C*C+T*q*C,j=T*C*C,z=q*q*q,ct=C*q*q+q*C*q+q*q*C,gt=C*C*q+q*C*C+C*q*C,xt=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*x[N]+Tt*P[N]+ft*R[N]+ot*O[N])*1e3)/1e3,M[N*4+1]=r.round((St*x[N]+pt*P[N]+rt*R[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((D*x[N]+v*P[N]+E*R[N]+j*O[N])*1e3)/1e3,M[N*4+3]=r.round((z*x[N]+ct*P[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:K,getPointInSegment:w,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:n}}var Xr=wE(),Mo=e,Zm=Math.abs;function Qm(r,s){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var m=s.lastIndex,p=m,g=this.keyframes.length-1,I=!0,y,w,M;I;){if(y=this.keyframes[p],w=this.keyframes[p+1],p===g-1&&r>=w.t-n){y.h&&(y=w),m=0;break}if(w.t-n>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var K,x,O,P,R,U,L=w.t-n,k=y.t-n,T;if(y.to){M.bezierData||(M.bezierData=Xr.buildBezierData(y.s,w.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<k){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,K=0;K<x;K+=1)d[K]=C.points[N].point[K]}else{M.__fnct?U=M.__fnct:(U=_a.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=U),O=U((r-k)/(L-k));var $=C.segmentLength*O,G,q=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,P=C.points.length;I;){if(q+=C.points[R].partialLength,$===0||O===0||R===C.points.length-1){for(x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K];break}else if($>=q&&$<q+C.points[R+1].partialLength){for(G=($-q)/C.points[R+1].partialLength,x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K]+(C.points[R+1].point[K]-C.points[R].point[K])*G;break}R<P-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=q-C.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,Tt,ft,ot,St;if(g=y.s.length,T=w.s||y.e,this.sh&&y.h!==1)if(r>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=k)d[0]=y.s[0],d[1]=y.s[1],d[2]=y.s[2];else{var pt=Jm(y.s),rt=Jm(T),_=(r-k)/(L-k);LE(d,NE(pt,rt,_))}else for(p=0;p<g;p+=1)y.h!==1&&(r>=L?O=1:r<k?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?U=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],Tt=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],ot=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],U=_a.getBezierEasing(it,Tt,ft,ot).get,M.__fnct[p]=U)):M.__fnct?U=M.__fnct:(it=y.o.x,Tt=y.o.y,ft=y.i.x,ot=y.i.y,U=_a.getBezierEasing(it,Tt,ft,ot).get,y.keyframeMetadata=U),O=U((r-k)/(L-k)))),T=w.s||y.e,St=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return s.lastIndex=m,d}function NE(r,s,n){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],y=s[0],w=s[1],M=s[2],K=s[3],x,O,P,R,U;return O=m*y+p*w+g*M+I*K,O<0&&(O=-O,y=-y,w=-w,M=-M,K=-K),1-O>1e-6?(x=Math.acos(O),P=Math.sin(x),R=Math.sin((1-n)*x)/P,U=Math.sin(n*x)/P):(R=1-n,U=n),d[0]=R*m+U*y,d[1]=R*p+U*w,d[2]=R*g+U*M,d[3]=R*I+U*K,d}function LE(r,s){var n=s[0],d=s[1],m=s[2],p=s[3],g=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),y=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=g/kt,r[1]=I/kt,r[2]=y/kt}function Jm(r){var s=r[0]*kt,n=r[1]*kt,d=r[2]*kt,m=Math.cos(s/2),p=Math.cos(n/2),g=Math.cos(d/2),I=Math.sin(s/2),y=Math.sin(n/2),w=Math.sin(d/2),M=m*p*g-I*y*w,K=I*y*g+m*p*w,x=I*p*g+m*y*w,O=m*y*g-I*p*w;return[K,x,O,M]}function tu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Mo&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function el(r){var s;if(this.propType==="unidimensional")s=r*this.mult,Zm(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)s=r[n]*this.mult,Zm(this.v[n]-s)>1e-5&&(this.v[n]=s,this._mdf=!0),n+=1}function rl(){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,n=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function il(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function ME(r,s,n,d){this.propType="unidimensional",this.mult=n||1,this.data=s,this.v=n?s.k*n:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.addEffect=il}function OE(r,s,n,d){this.propType="multidimensional",this.mult=n||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=Z("float32",p),this.pv=Z("float32",p),this.vel=Z("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=rl,this.setVValue=el,this.addEffect=il}function RE(r,s,n,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Mo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Mo,this.pv=Mo,this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.interpolateValue=Qm,this.effectsSequence=[tu.bind(this)],this.addEffect=il}function DE(r,s,n,d){this.propType="multidimensional";var m,p=s.k.length,g,I,y,w;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&&(g=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,w=s.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&Xr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+y[0],g[1]+y[1])&&Xr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+w[0],I[1]+w[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&Xr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+y[0],g[1]+y[1],g[2]+y[2])&&Xr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+w[0],I[1]+w[1],I[2]+w[2]))&&(s.k[m].to=null,s.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&y[0]===0&&y[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===I[2]&&y[2]===0&&w[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[tu.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=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=rl,this.setVValue=el,this.interpolateValue=Qm,this.frameId=-1;var M=s.k[0].s.length;for(this.v=Z("float32",M),this.pv=Z("float32",M),m=0;m<M;m+=1)this.v[m]=Mo,this.pv[m]=Mo;this._caching={lastFrame:Mo,lastIndex:0,value:Z("float32",M)},this.addEffect=il}var lt=function(){function r(n,d,m,p,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new ME(n,d,p,g);else if(typeof d.k[0]=="number")I=new OE(n,d,p,g);else switch(m){case 0:I=new RE(n,d,p,g);break;case 1:I=new DE(n,d,p,g);break;default:break}return I.effectsSequence.length&&g.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,n=this.dynamicProperties.length;for(s=0;s<n;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 Oo=function(){function r(){return Z("float32",2)}return tl(8,r)}();function vi(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}vi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var n=0;n<s;)this.v[n]=Oo.newElement(),this.o[n]=Oo.newElement(),this.i[n]=Oo.newElement(),n+=1},vi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},vi.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},vi.prototype.setXYAt=function(r,s,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Oo.newElement()),p[d][0]=r,p[d][1]=s},vi.prototype.setTripleAt=function(r,s,n,d,m,p,g,I){this.setXYAt(r,s,"v",g,I),this.setXYAt(n,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},vi.prototype.reverse=function(){var r=new vi;r.setPathData(this.c,this._length);var s=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},vi.prototype.length=function(){return this._length};var Re=function(){function r(){return new vi}function s(m){var p=m._length,g;for(g=0;g<p;g+=1)Oo.release(m.v[g]),Oo.release(m.i[g]),Oo.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=tl(4,r,s);return d.clone=n,d}();function Mc(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}Mc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Mc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)Re.release(this.shapes[r]);this._length=0};var Cs=function(){var r={newShapeCollection:m,release:p},s=0,n=4,d=tt(n);function m(){var g;return s?(s-=1,g=d[s]):g=new Mc,g}function p(g){var I,y=g._length;for(I=0;I<y;I+=1)Re.release(g.shapes[I]);g._length=0,s===n&&(d=jm.double(d),n*=2),d[s]=g,s+=1}return r}(),ol=function(){var r=-999999;function s(L,k,T){var C=T.lastIndex,N,$,G,q,it,Tt,ft,ot,St,pt=this.keyframes;if(L<pt[0].t-this.offsetTime)N=pt[0].s[0],G=!0,C=0;else if(L>=pt[pt.length-1].t-this.offsetTime)N=pt[pt.length-1].s?pt[pt.length-1].s[0]:pt[pt.length-2].e[0],G=!0;else{for(var rt=C,_=pt.length-1,D=!0,v,E,j;D&&(v=pt[rt],E=pt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:D=!1;if(j=this.keyframesMetadata[rt]||{},G=v.h===1,C=rt,!G){if(L>=E.t-this.offsetTime)ot=1;else if(L<v.t-this.offsetTime)ot=0;else{var z;j.__fnct?z=j.__fnct:(z=_a.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,j.__fnct=z),ot=z((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=k._length,ft=N.i[0].length,T.lastIndex=C,q=0;q<Tt;q+=1)for(it=0;it<ft;it+=1)St=G?N.i[q][it]:N.i[q][it]+($.i[q][it]-N.i[q][it])*ot,k.i[q][it]=St,St=G?N.o[q][it]:N.o[q][it]+($.o[q][it]-N.o[q][it])*ot,k.o[q][it]=St,St=G?N.v[q][it]:N.v[q][it]+($.v[q][it]-N.v[q][it])*ot,k.v[q][it]=St}function n(){var L=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<k&&L<k||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 d(){this.paths=this.localShapeCollection}function m(L,k){if(L._length!==k._length||L.c!==k.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==k.v[T][0]||L.v[T][1]!==k.v[T][1]||L.o[T][0]!==k.o[T][0]||L.o[T][1]!==k.o[T][1]||L.i[T][0]!==k.i[T][0]||L.i[T][1]!==k.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=Re.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){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 k,T=this.effectsSequence.length;for(k=0;k<T;k+=1)L=this.effectsSequence[k](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,k,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=k,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?k.pt.k:k.ks.k;this.v=Re.clone(C),this.pv=Re.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=y;function w(L,k,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?k.pt.k:k.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=Re.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=Re.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=s,w.prototype.setVValue=p,w.prototype.addEffect=y;var M=function(){var L=oe;function k(T,C){this.v=Re.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Cs.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 k.prototype={reset:d,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,G=this.s.v[1]/2,q=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-G,it.v[1][0]=q?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+G,it.v[3][0]=q?C-$:C+$,it.v[3][1]=N,it.i[0][0]=q?C-$*L:C+$*L,it.i[0][1]=N-G,it.i[1][0]=q?C+$:C-$,it.i[1][1]=N-G*L,it.i[2][0]=q?C+$*L:C-$*L,it.i[2][1]=N+G,it.i[3][0]=q?C-$:C+$,it.i[3][1]=N+G*L,it.o[0][0]=q?C+$*L:C-$*L,it.o[0][1]=N-G,it.o[1][0]=q?C+$:C-$,it.o[1][1]=N+G*L,it.o[2][0]=q?C-$*L:C+$*L,it.o[2][1]=N+G,it.o[3][0]=q?C-$:C+$,it.o[3][1]=N-G*L}},A([Ne],k),k}(),K=function(){function L(k,T){this.v=Re.newElement(),this.v.setPathData(!0,0),this.elem=k,this.comp=k.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),T.sy===1?(this.ir=lt.getProp(k,T.ir,0,0,this),this.is=lt.getProp(k,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(k,T.pt,0,0,this),this.p=lt.getProp(k,T.p,1,0,this),this.r=lt.getProp(k,T.r,0,kt,this),this.or=lt.getProp(k,T.or,0,0,this),this.os=lt.getProp(k,T.os,0,.01,this),this.localShapeCollection=Cs.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:d,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,G=this.ir.v,q=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ft=2*Math.PI*G/(T*2),ot,St,pt,rt,_=-Math.PI/2;_+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,ot=0;ot<T;ot+=1){St=N?$:G,pt=N?q:it,rt=N?Tt:ft;var v=St*Math.cos(_),E=St*Math.sin(_),j=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),z=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-j*rt*pt*D,E-z*rt*pt*D,v+j*rt*pt*D,E+z*rt*pt*D,ot,!0),N=!N,_+=C*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,G=2*Math.PI*N/(T*4),q,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,q=0;q<T;q+=1){var ft=N*Math.cos(it),ot=N*Math.sin(it),St=ft===0&&ot===0?0:ot/Math.sqrt(ft*ft+ot*ot),pt=ft===0&&ot===0?0:-ft/Math.sqrt(ft*ft+ot*ot);ft+=+this.p.v[0],ot+=+this.p.v[1],this.v.setTripleAt(ft,ot,ft-St*G*$*Tt,ot-pt*G*$*Tt,ft+St*G*$*Tt,ot+pt*G*$*Tt,q,!0),it+=C*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Ne],L),L}(),x=function(){function L(k,T){this.v=Re.newElement(),this.v.c=!0,this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=k,this.comp=k.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),this.p=lt.getProp(k,T.p,1,0,this),this.s=lt.getProp(k,T.s,1,0,this),this.r=lt.getProp(k,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,G=jt(N,$,this.r.v),q=G*(1-oe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+G,T+N,C-$+q,0,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-q,T+N,C+$-G,1,!0),G!==0?(this.v.setTripleAt(T+N-G,C+$,T+N-G,C+$,T+N-q,C+$,2,!0),this.v.setTripleAt(T-N+G,C+$,T-N+q,C+$,T-N+G,C+$,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-G,T-N,C+$-q,4,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+q,T-N,C-$+G,5,!0),this.v.setTripleAt(T-N+G,C-$,T-N+G,C-$,T-N+q,C-$,6,!0),this.v.setTripleAt(T+N-G,C-$,T+N-q,C-$,T+N-G,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+q,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+q,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+q,T+N,C-$+G,0,!0),G!==0?(this.v.setTripleAt(T+N-G,C-$,T+N-G,C-$,T+N-q,C-$,1,!0),this.v.setTripleAt(T-N+G,C-$,T-N+q,C-$,T-N+G,C-$,2,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+G,T-N,C-$+q,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-q,T-N,C+$-G,4,!0),this.v.setTripleAt(T-N+G,C+$,T-N+G,C+$,T-N+q,C+$,5,!0),this.v.setTripleAt(T+N-G,C+$,T+N-q,C+$,T+N-G,C+$,6,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-G,T+N,C+$-q,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+q,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-q,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-q,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:d},A([Ne],L),L}();function O(L,k,T){var C;if(T===3||T===4){var N=T===3?k.pt:k.ks,$=N.k;$.length?C=new w(L,k,T):C=new I(L,k,T)}else T===5?C=new x(L,k):T===6?C=new M(L,k):T===7&&(C=new K(L,k));return C.k&&L.addDynamicProperty(C),C}function P(){return I}function R(){return w}var U={};return U.getShapeProp=O,U.getConstructorFunction=P,U.getKeyframedConstructorFunction=R,U}();var De=function(){var r=Math.cos,s=Math.sin,n=Math.tan,d=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(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function y(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function w(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function K(v,E){var j=r(E),z=s(E);return this._t(j,z,0,0,-z,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(j,-z,0,0,z,j,0,0,0,0,1,0,0,0,0,1)}function x(v,E,j){return!j&&j!==0&&(j=1),v===1&&E===1&&j===1?this:this._t(v,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(v,E,j,z,ct,gt,xt,Pt,Ft,ue,rr,Qr,ir,Le,ur,Yt){return this.props[0]=v,this.props[1]=E,this.props[2]=j,this.props[3]=z,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Pt,this.props[8]=Ft,this.props[9]=ue,this.props[10]=rr,this.props[11]=Qr,this.props[12]=ir,this.props[13]=Le,this.props[14]=ur,this.props[15]=Yt,this}function P(v,E,j){return j=j||0,v!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,j,1):this}function R(v,E,j,z,ct,gt,xt,Pt,Ft,ue,rr,Qr,ir,Le,ur,Yt){var mt=this.props;if(v===1&&E===0&&j===0&&z===0&&ct===0&&gt===1&&xt===0&&Pt===0&&Ft===0&&ue===0&&rr===1&&Qr===0)return mt[12]=mt[12]*v+mt[15]*ir,mt[13]=mt[13]*gt+mt[15]*Le,mt[14]=mt[14]*rr+mt[15]*ur,mt[15]*=Yt,this._identityCalculated=!1,this;var yi=mt[0],Ji=mt[1],Ei=mt[2],Jr=mt[3],Ti=mt[4],xi=mt[5],or=mt[6],to=mt[7],eo=mt[8],Dr=mt[9],ro=mt[10],Pr=mt[11],Fo=mt[12],ml=mt[13],ul=mt[14],fl=mt[15];return mt[0]=yi*v+Ji*ct+Ei*Ft+Jr*ir,mt[1]=yi*E+Ji*gt+Ei*ue+Jr*Le,mt[2]=yi*j+Ji*xt+Ei*rr+Jr*ur,mt[3]=yi*z+Ji*Pt+Ei*Qr+Jr*Yt,mt[4]=Ti*v+xi*ct+or*Ft+to*ir,mt[5]=Ti*E+xi*gt+or*ue+to*Le,mt[6]=Ti*j+xi*xt+or*rr+to*ur,mt[7]=Ti*z+xi*Pt+or*Qr+to*Yt,mt[8]=eo*v+Dr*ct+ro*Ft+Pr*ir,mt[9]=eo*E+Dr*gt+ro*ue+Pr*Le,mt[10]=eo*j+Dr*xt+ro*rr+Pr*ur,mt[11]=eo*z+Dr*Pt+ro*Qr+Pr*Yt,mt[12]=Fo*v+ml*ct+ul*Ft+fl*ir,mt[13]=Fo*E+ml*gt+ul*ue+fl*Le,mt[14]=Fo*j+ml*xt+ul*rr+fl*ur,mt[15]=Fo*z+ml*Pt+ul*Qr+fl*Yt,this._identityCalculated=!1,this}function U(v){var E=v.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 k(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function C(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,j){return{x:v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(v,E,j){return v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function G(v,E,j){return v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function q(v,E,j){return v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,j=-this.props[1]/v,z=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new De;return Pt.props[0]=E,Pt.props[1]=j,Pt.props[4]=z,Pt.props[5]=ct,Pt.props[12]=gt,Pt.props[13]=xt,Pt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ft(v){var E,j=v.length,z=[];for(E=0;E<j;E+=1)z[E]=Tt(v[E]);return z}function ot(v,E,j){var z=Z("float32",6);if(this.isIdentity())z[0]=v[0],z[1]=v[1],z[2]=E[0],z[3]=E[1],z[4]=j[0],z[5]=j[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Pt=this.props[5],Ft=this.props[12],ue=this.props[13];z[0]=v[0]*ct+v[1]*xt+Ft,z[1]=v[0]*gt+v[1]*Pt+ue,z[2]=E[0]*ct+E[1]*xt+Ft,z[3]=E[0]*gt+E[1]*Pt+ue,z[4]=j[0]*ct+j[1]*xt+Ft,z[5]=j[0]*gt+j[1]*Pt+ue}return z}function St(v,E,j){var z;return this.isIdentity()?z=[v,E,j]:z=[v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],z}function pt(v,E){if(this.isIdentity())return v+","+E;var j=this.props;return Math.round((v*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((v*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var v=0,E=this.props,j="matrix3d(",z=1e4;v<16;)j+=d(E[v]*z)/z,j+=v===15?")":",",v+=1;return j}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=_(v[0]),j=_(v[1]),z=_(v[4]),ct=_(v[5]),gt=_(v[12]),xt=_(v[13]);return"matrix("+E+","+j+","+z+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=K,this.shear=w,this.scale=x,this.setTransform=O,this.translate=P,this.transform=R,this.multiply=U,this.applyToPoint=N,this.applyToX=$,this.applyToY=G,this.applyToZ=q,this.applyToPointArray=St,this.applyToTriplePoints=ot,this.applyToPointStringified=pt,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=C,this.equals=k,this.inversePoints=ft,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function sl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(n){return typeof n}:sl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sl(r)}var Gt={},al="__[STANDALONE]__",eu="__[ANIMATIONDATA]__",ru="";function PE(r){c(r)}function iu(){al===!0?me.searchAnimations(eu,al,ru):me.searchAnimations()}function FE(r){yE(r)}function $E(r){xE(r)}function VE(r){return al===!0&&(r.animationData=JSON.parse(eu)),me.loadAnimation(r)}function zE(r){if(typeof r=="string")switch(r){case"high":Qn(200);break;default:case"medium":Qn(50);break;case"low":Qn(10);break}else!isNaN(r)&&r>1&&Qn(r);Aa()>=50?Ge(!1):Ge(!0)}function BE(){return typeof navigator<"u"}function HE(r,s){r==="expressions"&&TE(s)}function UE(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return ol;case"matrix":return De;default:return null}}Gt.play=me.play,Gt.pause=me.pause,Gt.setLocationHref=PE,Gt.togglePause=me.togglePause,Gt.setSpeed=me.setSpeed,Gt.setDirection=me.setDirection,Gt.stop=me.stop,Gt.searchAnimations=iu,Gt.registerAnimation=me.registerAnimation,Gt.loadAnimation=VE,Gt.setSubframeRendering=FE,Gt.resize=me.resize,Gt.goToAndStop=me.goToAndStop,Gt.destroy=me.destroy,Gt.setQuality=zE,Gt.inBrowser=BE,Gt.installPlugin=HE,Gt.freeze=me.freeze,Gt.unfreeze=me.unfreeze,Gt.setVolume=me.setVolume,Gt.mute=me.mute,Gt.unmute=me.unmute,Gt.getRegisteredAnimations=me.getRegisteredAnimations,Gt.useWebWorker=i,Gt.setIDPrefix=$E,Gt.__getFactory=UE,Gt.version="5.12.2";function GE(){document.readyState==="complete"&&(clearInterval(YE),iu())}function KE(r){for(var s=ou.split("&"),n=0;n<s.length;n+=1){var d=s[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var ou="";if(al){var su=document.getElementsByTagName("script"),WE=su.length-1,au=su[WE]||{src:""};ou=au.src?au.src.replace(/^[^\?]+\??/,""):"",ru=KE("renderer")}var YE=setInterval(GE,100);try{!((typeof an>"u"?"undefined":sl(an))==="object"&&typeof Gl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Gt)}catch{}var Yi=function(){var r={},s={};r.registerModifier=n,r.getModifier=d;function n(m,p){s[m]||(s[m]=p)}function d(m,p,g){return new s[m](p,g)}return r}();function Ar(){}Ar.prototype.initModifierProperties=function(){},Ar.prototype.addShapeToModifier=function(){},Ar.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Cs.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Ar.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)},Ar.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ne],Ar);function Rr(){}A([Ar],Rr),Rr.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},Rr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Rr.prototype.calculateShapeEdges=function(r,s,n,d,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 g=[],I,y=p.length,w;for(I=0;I<y;I+=1)if(w=p[I],!(w.e*m<d||w.s*m>d+n)){var M,K;w.s*m<=d?M=0:M=(w.s*m-d)/n,w.e*m>=d+n?K=1:K=(w.e*m-d)/n,g.push([M,K])}return g.length||g.push([0,0]),g},Rr.prototype.releasePathsData=function(r){var s,n=r.length;for(s=0;s<n;s+=1)Xm.release(r[s]);return r.length=0,r},Rr.prototype.processShapes=function(r){var s,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,s>n){var m=s;s=n,n=m}s=Math.round(s*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=s,this.eValue=n}else s=this.sValue,n=this.eValue;var p,g,I=this.shapes.length,y,w,M,K,x,O=0;if(n===s)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&s===0||n===0&&s===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var P=[],R,U;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,w=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),y=0;y<w;y+=1)K=Xr.getSegmentsLength(p.shapes[y]),M.push(K),x+=K.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=s,k=n,T=0,C;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(U=R.localShapeCollection,U.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):C=[[L,k]],w=C.length,y=0;y<w;y+=1){L=C[y][0],k=C[y][1],P.length=0,k<=1?P.push({s:R.totalShapeLength*L,e:R.totalShapeLength*k}):L>=1?P.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(k-1)}):(P.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),P.push({s:0,e:R.totalShapeLength*(k-1)}));var N=this.addShapes(R,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var G=N.pop();this.addPaths(N,U),N=this.addShapes(R,P[1],G)}else this.addPaths(N,U),N=this.addShapes(R,P[1])}this.addPaths(N,U)}}R.shape.paths=U}}},Rr.prototype.addPaths=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)s.addShape(r[n])},Rr.prototype.addSegment=function(r,s,n,d,m,p,g){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Rr.prototype.addSegmentFromArray=function(r,s,n,d){s.setXYAt(r[1],r[5],"o",n),s.setXYAt(r[2],r[6],"i",n+1),d&&s.setXYAt(r[0],r[4],"v",n),s.setXYAt(r[3],r[7],"v",n+1)},Rr.prototype.addShapes=function(r,s,n){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,y,w=0,M,K,x,O,P=[],R,U=!0;for(n?(K=n._length,R=n._length):(n=Re.newElement(),K=0,R=0),P.push(n),p=0;p<g;p+=1){for(x=d[p].lengths,n.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],w+M.addedLength<s.s)w+=M.addedLength,n.c=!1;else if(w>s.e){n.c=!1;break}else s.s<=w&&s.e>=w+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,K,U),U=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-w)/M.addedLength,(s.e-w)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,n,K,U),U=!1,n.c=!1),w+=M.addedLength,K+=1;if(m[p].c&&x.length){if(M=x[I-1],w<=s.e){var L=x[I-1].addedLength;s.s<=w&&s.e>=w+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,K,U),U=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-w)/L,(s.e-w)/L,x[I-1]),this.addSegmentFromArray(O,n,K,U),U=!1,n.c=!1)}else n.c=!1;w+=M.addedLength,K+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),w>s.e)break;p<g-1&&(n=Re.newElement(),U=!0,P.push(n),K=0)}return P};function ka(){}A([Ar],ka),ka.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},ka.prototype.processPath=function(r,s){var n=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=Re.newElement();g.c=r.c;var I,y,w,M,K,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,y=r.v[p][1]+(d[1]-r.v[p][1])*n,w=r.o[p][0]+(d[0]-r.o[p][0])*-n,M=r.o[p][1]+(d[1]-r.o[p][1])*-n,K=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,g.setTripleAt(I,y,w,M,K,x,p);return g},ka.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,y;for(n=0;n<d;n+=1){if(I=this.shapes[n],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],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Oc=function(){var r=[0,0];function s(y){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,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 n(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var w;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,K;if(w=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)/w,0),K=this.p.getValueAtTime(this.p.keyframes[0].t/w,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/w,0),K=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(M=this.p.pv,K=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],K=[];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)/w,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/w,0),K[0]=x.getValueAtTime(x.keyframes[0].t/w,0),K[1]=O.getValueAtTime(O.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/w,0),K[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),K[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/w,0)):(M=[x.pv,O.pv],K[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),K[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/w,O.offsetTime))}else K=r,M=K;this.v.rotate(-Math.atan2(M[1]-K[1],M[0]-K[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 d(){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 g(y,w,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=w,this.v=new De,this.pre=new De,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),w.p&&w.p.s?(this.px=lt.getProp(y,w.p.x,0,0,this),this.py=lt.getProp(y,w.p.y,0,0,this),w.p.z&&(this.pz=lt.getProp(y,w.p.z,0,0,this))):this.p=lt.getProp(y,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=lt.getProp(y,w.rx,0,kt,this),this.ry=lt.getProp(y,w.ry,0,kt,this),this.rz=lt.getProp(y,w.rz,0,kt,this),w.or.k[0].ti){var K,x=w.or.k.length;for(K=0;K<x;K+=1)w.or.k[K].to=null,w.or.k[K].ti=null}this.or=lt.getProp(y,w.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(y,w.r||{k:0},0,kt,this);w.sk&&(this.sk=lt.getProp(y,w.sk,0,kt,this),this.sa=lt.getProp(y,w.sa,0,kt,this)),this.a=lt.getProp(y,w.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=lt.getProp(y,w.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:n,precalculateMatrix:d,autoOrient:m},A([Ne],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,w,M){return new g(y,w,M)}return{getTransformProperty:I}}();function Zr(){}A([Ar],Zr),Zr.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=Oc.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 De,this.rMatrix=new De,this.sMatrix=new De,this.tMatrix=new De,this.matrix=new De},Zr.prototype.applyTransforms=function(r,s,n,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),y=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*g*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/y:y),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Zr.prototype.init=function(r,s,n,d){for(this.elem=r,this.arr=s,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[n]);n>0;)n-=1,this._elements.unshift(s[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Zr.prototype.resetElements=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Zr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Zr.prototype.changeGroupRender=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=s,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,s)},Zr.prototype.processShapes=function(r){var s,n,d,m,p,g=!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(),g=!0}p=0;var w;for(d=0;d<=this._groups.length-1;d+=1){if(w=p<I,this._groups[d]._render=w,this.changeGroupRender(this._groups[d].it,w),!w){var M=this.elemsData[d].it,K=M[M.length-1];K.transform.op.v!==0?(K.transform.op._mdf=!0,K.transform.op.v=0):K.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,P=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,U=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var k=0;if(x>0){for(;k<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),k+=O)}else if(x<0){for(;k>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),k-=O)}d=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[d].it,n=s[s.length-1].transform.mProps.v.props,C=n.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)*(d/(this._currentCopies-1)),k!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[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(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<C;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)n[T]=this.matrix.props[T];k+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,n=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,d+=m;return g},Zr.prototype.addShape=function(){};function wa(){}A([Ar],wa),wa.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},wa.prototype.processPath=function(r,s){var n=Re.newElement();n.c=r.c;var d,m=r._length,p,g,I,y,w,M,K=0,x,O,P,R,U,L;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],K),K+=1):(d===0?y=r.v[m-1]:y=r.v[d-1],w=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=w?Math.min(w/2,s)/w:0,U=p[0]+(y[0]-p[0])*M,x=U,L=p[1]-(p[1]-y[1])*M,O=L,P=x-(x-p[0])*oe,R=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,U,L,K),K+=1,d===m-1?y=r.v[0]:y=r.v[d+1],w=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=w?Math.min(w/2,s)/w:0,P=p[0]+(y[0]-p[0])*M,x=P,R=p[1]+(y[1]-p[1])*M,O=R,U=x-(x-p[0])*oe,L=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,U,L,K),K+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],K),K+=1);return n},wa.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,y;for(n=0;n<d;n+=1){if(I=this.shapes[n],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],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Rc(r){return Math.abs(r)<=1e-5}function nu(r,s,n){return r*(1-n)+s*n}function ji(r,s,n){return[nu(r[0],s[0],n),nu(r[1],s[1],n)]}function jE(r,s,n){if(r===0)return[];var d=s*s-4*r*n;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function lu(r,s,n,d){return[-r+3*s-3*n+d,3*r-6*s+3*n,-3*r+3*s,r]}function du(r){return new ne(r,r,r,r,!1)}function ne(r,s,n,d,m){m&&ks(r,s)&&(s=ji(r,d,1/3)),m&&ks(n,d)&&(n=ji(r,d,2/3));var p=lu(r[0],s[0],n[0],d[0]),g=lu(r[1],s[1],n[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,s,n,d]}ne.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]]},ne.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]]},ne.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},ne.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},ne.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Rc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Rc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},ne.prototype.split=function(r){if(r<=0)return[du(this.points[0]),this];if(r>=1)return[this,du(this.points[this.points.length-1])];var s=ji(this.points[0],this.points[1],r),n=ji(this.points[1],this.points[2],r),d=ji(this.points[2],this.points[3],r),m=ji(s,n,r),p=ji(n,d,r),g=ji(m,p,r);return[new ne(this.points[0],s,m,g,!0),new ne(g,p,d,this.points[3],!0)]};function cu(r,s){var n=r.points[0][s],d=r.points[r.points.length-1][s];if(n>d){var m=d;d=n,n=m}for(var p=jE(3*r.a[s],2*r.b[s],r.c[s]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[s];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}ne.prototype.bounds=function(){return{x:cu(this,0),y:cu(this,1)}},ne.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 ll(r,s,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+n)/2,t1:s,t2:n}}function hu(r){var s=r.bez.split(.5);return[ll(s[0],r.t1,r.t),ll(s[1],r.t,r.t2)]}function qE(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 Na(r,s,n,d,m,p){if(qE(r,s)){if(n>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var g=hu(r),I=hu(s);Na(g[0],I[0],n+1,d,m,p),Na(g[0],I[1],n+1,d,m,p),Na(g[1],I[0],n+1,d,m,p),Na(g[1],I[1],n+1,d,m,p)}}ne.prototype.intersections=function(r,s,n){s===void 0&&(s=2),n===void 0&&(n=7);var d=[];return Na(ll(this,0,1),ll(r,0,1),0,s,d,n),d},ne.shapeSegment=function(r,s){var n=(s+1)%r.length();return new ne(r.v[s],r.o[s],r.i[n],r.v[n],!0)},ne.shapeSegmentInverted=function(r,s){var n=(s+1)%r.length();return new ne(r.v[n],r.i[n],r.o[s],r.v[s],!0)};function Dc(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 dl(r,s,n,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],g=[n[0],n[1],1],I=[d[0],d[1],1],y=Dc(Dc(m,p),Dc(g,I));return Rc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function _s(r,s,n){return[r[0]+Math.cos(s)*n,r[1]-Math.sin(s)*n]}function Pc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ks(r,s){return nl(r[0],s[0])&&nl(r[1],s[1])}function La(){}A([Ar],La),La.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 pu(r,s,n,d,m,p,g){var I=n-Math.PI/2,y=n+Math.PI/2,w=s[0]+Math.cos(n)*d*m,M=s[1]-Math.sin(n)*d*m;r.setTripleAt(w,M,w+Math.cos(I)*p,M-Math.sin(I)*p,w+Math.cos(y)*g,M-Math.sin(y)*g,r.length())}function XE(r,s){var n=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function ZE(r,s){var n=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[n],p=r.v[d],g=XE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function mu(r,s,n,d,m,p,g){var I=ZE(s,n),y=s.v[n%s._length],w=s.v[n===0?s._length-1:n-1],M=s.v[(n+1)%s._length],K=p===2?Math.sqrt(Math.pow(y[0]-w[0],2)+Math.pow(y[1]-w[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;pu(r,s.v[n%s._length],I,g,d,x/((m+1)*2),K/((m+1)*2),p)}function QE(r,s,n,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+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,w=s.normalAngle(I),M=s.point(I);pu(r,M,w,p,n,y/((d+1)*2),y/((d+1)*2),m),p=-p}return p}La.prototype.processPath=function(r,s,n,d){var m=r._length,p=Re.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=ne.shapeSegment(r,0);mu(p,r,0,s,n,d,g);for(var y=0;y<m;y+=1)g=QE(p,I,s,n,d,-g),y===m-1&&!r.c?I=null:I=ne.shapeSegment(r,(y+1)%m),mu(p,r,y+1,s,n,d,g);return p},La.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(g!==0){var w,M;for(n=0;n<d;n+=1){if(w=this.shapes[n],M=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],g,I,y));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Fc(r,s,n){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[_s(r,d,n),_s(s,d,n)]}function ws(r,s){var n,d,m,p,g,I,y;y=Fc(r.points[0],r.points[1],s),n=y[0],d=y[1],y=Fc(r.points[1],r.points[2],s),m=y[0],p=y[1],y=Fc(r.points[2],r.points[3],s),g=y[0],I=y[1];var w=dl(n,d,m,p);w===null&&(w=d);var M=dl(g,I,m,p);return M===null&&(M=g),new ne(n,w,M,I)}function uu(r,s,n,d,m){var p=s.points[3],g=n.points[0];if(d===3||ks(p,g))return p;if(d===2){var I=-s.tangentAngle(1),y=-n.tangentAngle(0)+Math.PI,w=dl(p,_s(p,I+Math.PI/2,100),g,_s(g,I+Math.PI/2,100)),M=w?Pc(w,p):Pc(p,g)/2,K=_s(p,I,2*M*oe);return r.setXYAt(K[0],K[1],"o",r.length()-1),K=_s(g,y,2*M*oe),r.setTripleAt(g[0],g[1],g[0],g[1],K[0],K[1],r.length()),g}var x=ks(p,s.points[2])?s.points[0]:s.points[2],O=ks(g,n.points[1])?n.points[3]:n.points[1],P=dl(x,p,g,O);return P&&Pc(P,p)<m?(r.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],r.length()),P):p}function fu(r,s){var n=r.intersections(s);return n.length&&nl(n[0][0],1)&&n.shift(),n.length?n[0]:null}function vu(r,s){var n=r.slice(),d=s.slice(),m=fu(r[r.length-1],s[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[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]]]:[n,d]}function JE(r){for(var s,n=1;n<r.length;n+=1)s=vu(r[n-1],r[n]),r[n-1]=s[0],r[n]=s[1];return r.length>1&&(s=vu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function gu(r,s){var n=r.inflectionPoints(),d,m,p,g;if(n.length===0)return[ws(r,s)];if(n.length===1||nl(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[ws(d,s),ws(m,s)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),g=p[0],m=p[1],[ws(d,s),ws(g,s),ws(m,s)]}function Ma(){}A([Ar],Ma),Ma.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},Ma.prototype.processPath=function(r,s,n,d){var m=Re.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,y,w=[];for(g=0;g<p;g+=1)y=ne.shapeSegment(r,g),w.push(gu(y,s));if(!r.c)for(g=p-1;g>=0;g-=1)y=ne.shapeSegmentInverted(r,g),w.push(gu(y,s));w=JE(w);var M=null,K=null;for(g=0;g<w.length;g+=1){var x=w[g];for(K&&(M=uu(m,K,x[0],n,d)),K=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&ks(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 w.length&&uu(m,K,w[0][0],n,d),m},Ma.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(g!==0){var w,M;for(n=0;n<d;n+=1){if(w=this.shapes[n],M=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],g,y,I));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function bu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=s.length,p,g=0;g<m;g+=1)switch(p=s[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var Ro=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.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 d=127988,m=917631,p=917601,g=917626,I=65039,y=8205,w=127462,M=127487,K=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var D=_.split(","),v,E=D.length,j=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&j.push(D[v]);return j.join(",")}function O(_,D){var v=b("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=b("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var j=E.offsetWidth;return E.style.fontFamily=x(_)+", "+D,{node:E,w:j,parent:v}}function P(){var _,D=this.fonts.length,v,E,j=D;for(_=0;_<D;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(v=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,v.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.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 R(_,D){var v=document.body&&D?"svg":"canvas",E,j=bu(_);if(v==="svg"){var z=At("text");z.style.fontSize="100px",z.setAttribute("font-family",_.fFamily),z.setAttribute("font-style",j.style),z.setAttribute("font-weight",j.weight),z.textContent="1",_.fClass?(z.style.fontFamily="inherit",z.setAttribute("class",_.fClass)):z.style.fontFamily=_.fFamily,D.appendChild(z),E=z}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function U(_,D){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=R(rr),rr.cache={}}),this.fonts=_.list;return}var v=_.list,E,j=v.length,z=j;for(E=0;E<j;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,z-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Pt=b("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Ft=b("link");Ft.setAttribute("f-forigin",v[E].fOrigin),Ft.setAttribute("f-origin",v[E].origin),Ft.type="text/css",Ft.rel="stylesheet",Ft.href=v[E].fPath,document.body.appendChild(Ft)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var ue=b("link");ue.setAttribute("f-forigin",v[E].fOrigin),ue.setAttribute("f-origin",v[E].origin),ue.setAttribute("rel","stylesheet"),ue.setAttribute("href",v[E].fPath),D.appendChild(ue)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}z===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var D,v=_.length,E,j=this.chars.length,z;for(D=0;D<v;D+=1){for(E=0,z=!1;E<j;)this.chars[E].style===_[D].style&&this.chars[E].fFamily===_[D].fFamily&&this.chars[E].ch===_[D].ch&&(z=!0),E+=1;z||(this.chars.push(_[D]),j+=1)}}}function k(_,D,v){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===D&&this.chars[E].fFamily===v)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: ",_,D,v)),s}function T(_,D,v){var E=this.getFontByName(D),j=_;if(!E.cache[j]){var z=E.helper;if(_===" "){var ct=z.measureText("|"+_+"|"),gt=z.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=z.measureText(_)/100}return E.cache[j]*v}function C(_){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===_)return this.fonts[D];D+=1}return this.fonts[0]}function N(_){var D=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(_,D){var v=_.toString(16)+D.toString(16);return K.indexOf(v)!==-1}function G(_){return _===y}function q(_){return _===I}function it(_){var D=N(_);return D>=w&&D<=M}function Tt(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return n.indexOf(_)!==-1}function ot(_,D){var v=N(_.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(_.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(_.substr(D,2))===m}function St(){this.isLoaded=!0}var pt=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)};pt.isModifier=$,pt.isZeroWidthJoiner=G,pt.isFlagEmoji=Tt,pt.isRegionalCode=it,pt.isCombinedCharacter=ft,pt.isRegionalFlag=ot,pt.isVariationSelector=q,pt.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:U,getCharData:k,getFontByName:C,measureText:T,checkLoadedFonts:P,setIsLoaded:St};return pt.prototype=rt,pt}();function yu(r){this.animationData=r}yu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function tT(r){return new yu(r)}function cl(){}cl.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,n=this.renderableComponents.length;for(s=0;s<n;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 $c=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 eT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function rT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function iT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function oT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function sT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function aT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function nT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function lT(){this.p={}}function Eu(r,s){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new Oa(n[d],s),this.effectElements.push(p)}function Oa(r,s){this.init(r,s)}A([Ne],Oa),Oa.prototype.getValue=Oa.prototype.iterateDynamicProperties,Oa.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new eT(p[n],s,this);break;case 1:m=new rT(p[n],s,this);break;case 2:m=new iT(p[n],s,this);break;case 3:m=new oT(p[n],s,this);break;case 4:case 7:m=new nT(p[n],s,this);break;case 10:m=new sT(p[n],s,this);break;case 11:m=new aT(p[n],s,this);break;case 5:m=new Eu(p[n],s,this);break;default:m=new lT(p[n],s,this);break}m&&this.effectElements.push(m)}};function qi(){}qi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,n=this.data.masksProperties.length;s<n;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Wm();if(s){var n=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),g=s("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(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=$c(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=s},initBaseData:function(s,n,d){this.globalData=n,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new Eu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Xi(){}Xi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function Zi(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,n)}Zi.prototype.prepareFrame=function(){},A([cl,qi,Xi],Zi),Zi.prototype.getBaseElement=function(){return null},Zi.prototype.renderFrame=function(){},Zi.prototype.destroy=function(){},Zi.prototype.initExpressions=function(){var r=Wm();if(r){var s=r("footage");this.layerInterface=s(this)}},Zi.prototype.getFootageData=function(){return this.footageData};function er(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),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 n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([cl,qi,Xi],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 Pe(){}Pe.prototype.checkLayers=function(r){var s,n=this.layers.length,d;for(this.completeLayers=!0,s=n-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Pe.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)}},Pe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Pe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Pe.prototype.createFootage=function(r){return new Zi(r,this.globalData,this)},Pe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Pe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,n=r.length,d,m=this.layers.length;for(s=0;s<n;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Pe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Pe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Pe.prototype.buildElementParenting=function(r,s,n){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Pe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Pe.prototype.searchExtraCompositions=function(r){var s,n=r.length;for(s=0;s<n;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Pe.prototype.getElementById=function(r){var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Pe.prototype.getElementByPath=function(r){var s=r.shift(),n;if(typeof s=="number")n=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Pe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Ro,this.globalData.slotManager=tT(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 dT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new De;this.finalTransform={mProp:this.data.ks?Oc.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,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,n.cloneFromProps(s),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].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,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<n;)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 d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<n;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<n;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(dT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new De;var n=0,d=s.length;for(n=0;n<d;n+=1)this.localTransforms.push(s[n])}}},globalToLocal:function(s){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=n.length,I;for(p=0;p<g;p+=1)I=n[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new De};function Do(r,s,n){this.data=r,this.element=s,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(p),this.solidPath="";var g,I=this.masksProperties,y=0,w=[],M,K,x=tr(),O,P,R,U,L="clipPath",k="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",k="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),w.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{y+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",k="mask",U=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),P=At("filter"),P.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),P.appendChild(R),d.appendChild(P),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,U=null),this.storedData[m]={elem:g,x:U,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){K=w.length;var C=At("g");for(M=0;M<K;M+=1)C.appendChild(w[M]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(g),d.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),w.length=0,w.push(C)}else w.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.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=At(L),p=w.length,m=0;m<p;m+=1)this.maskElement.appendChild(w[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(k,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Do.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Do.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},Do.prototype.getMaskelement=function(){return this.maskElement},Do.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},Do.prototype.drawPath=function(r,s,n){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" 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&&(d+=" 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]),n.lastPath!==d){var g="";n.elem&&(s.c&&(g=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},Do.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ra=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=n;function s(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),Tu=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}(),hl={},xu="filter_result_";function Vc(r){var s,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=Ra.createFilter(m,!0),g=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var y=r.data.ef[s].ty;if(hl[y]){var w=hl[y].effect;I=new w(p,r.effectsManager.effectElements[s],r,xu+g,n),n=xu+g,hl[y].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}Vc.prototype.renderFrame=function(r){var s,n=this.filters.length;for(s=0;s<n;s+=1)this.filters[s].renderFrame(r)},Vc.prototype.getEffects=function(r){var s,n=this.filters.length,d=[];for(s=0;s<n;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function NI(r,s,n){hl[r]={effect:s,countsAsEffect:n}}function Da(){}Da.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var n=At("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),s=n,this.globalData.defs.appendChild(n)}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 d=At("clipPath"),m=At("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(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,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 Do(this.data,this,this.globalData),this.renderableEffectsManager=new Vc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var n=this.layerId+"_"+s,d,m,p,g;if(s===1||s===3){var I=At("mask");I.setAttribute("id",n),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Tu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=Ra.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Ra.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var y=At("mask");y.setAttribute("id",n),y.setAttribute("mask-type","alpha");var w=At("g");y.appendChild(w),d=tr(),m=Ra.createFilter(d);var M=At("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var K=At("feFuncA");K.setAttribute("type","table"),K.setAttribute("tableValues","1.0 0.0"),M.appendChild(K),this.globalData.defs.appendChild(m);var x=At("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"),w.setAttribute("filter","url("+f()+"#"+d+")"),w.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(p),Tu.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(Ra.createAlphaToLuminanceFilter()),g=At("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=n}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ls(){}Ls.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 Pa(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,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 n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([cl,V(r)],Pa)})();function Fa(r,s,n){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([qi,Ns,Da,Ls,Xi,Pa],Fa),Fa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("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)},Fa.prototype.sourceRectAtTime=function(){return this.sourceRect};function cT(r,s){this.elem=r,this.pos=s}function Au(){}Au.prototype={addShapeToModifiers:function(s){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,n=this.shapes.length;for(s=0;s<n;s+=1)this.shapes[s].sh.reset();n=this.shapeModifiers.length;var d;for(s=n-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===s)return n[d].pos;d+=1}return 0},addProcessedElement:function(s,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=n;return}d.push(new cT(s,n))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Su={1:"butt",2:"round",3:"square"},Iu={1:"miter",2:"round",3:"bevel"};function Cu(r,s,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=s,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Cu.prototype.setAsAnimated=function(){this._isAnimated=!0};function _u(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}_u.prototype.reset=function(){this.d="",this._mdf=!1};function pl(r,s,n,d){this.elem=r,this.frameId=-1,this.dataProps=tt(s.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",s.length?s.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,g;for(m=0;m<p;m+=1)g=lt.getProp(r,s[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:s[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}pl.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,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<n;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],pl);function ku(r,s,n){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 pl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Ne],ku);function wu(r,s,n){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=n}A([Ne],wu);function Nu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Ne],Nu);function $a(r,s,n){this.data=s,this.c=Z("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=Z("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}$a.prototype.comparePoints=function(r,s){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[s*4+n*2]),m>.01)return!1;n+=1}return!0},$a.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},$a.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,n=this.data.p*4,d,m;for(s=0;s<n;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,s=this.data.p*4;s<n;s+=1)d=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],$a);function Ms(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,n)}Ms.prototype.initGradientData=function(r,s,n){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 $a(r,s.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,s),this.setGradientOpacity(s,n),this._isAnimated=!!this._isAnimated},Ms.prototype.setGradientData=function(r,s){var n=tr(),d=At(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=s.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ms.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=tr(),y=tr();p.setAttribute("id",y);var w=At(r.t===1?"linearGradient":"radialGradient");w.setAttribute("id",I),w.setAttribute("spreadMethod","pad"),w.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(d=r.g.p*4;d<m;d+=2)n=At("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(n),M.push(n);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",Su[r.lc||2]),g.setAttribute("stroke-linejoin",Iu[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=w,this.ms=p,this.ost=M,this.maskId=y,s.msElem=g}},A([Ne],Ms);function Lu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.initGradientData(r,s,n),this._isAnimated=!!this._isAnimated}A([Ms,Ne],Lu);function hT(){this.it=[],this.prevViewData=[],this.gr=At("g")}function pT(r,s,n){this.transform={mProps:r,op:s,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Mu=function(s,n,d,m){if(n===0)return"";var p=s.o,g=s.i,I=s.v,y,w=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<n;y+=1)w+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(g[y][0],g[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return d&&n&&(w+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),w+="z"),w},mT=function(){var r=new De,s=new De,n={createRenderFunction:d};function d(K){switch(K.ty){case"fl":return I;case"gf":return w;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(K,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 g(K,x,O){var P,R,U,L,k,T,C=x.styles.length,N=x.lvl,$,G,q,it;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(G=s.reset(),q=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&q>0;)L=x.transformers[it].mProps._mdf||L,q-=1,it-=1;if(L)for(q=N-x.styles[T].lvl,it=x.transformers.length-1;q>0;)G.multiply(x.transformers[it].mProps.v),q-=1,it-=1}else G=r;if($=x.sh.paths,R=$._length,L){for(U="",P=0;P<R;P+=1)k=$.shapes[P],k&&k._length&&(U+=Mu(k,k._length,k.c,G));x.caches[T]=U}else U=x.caches[T];x.styles[T].d+=K.hd===!0?"":U,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(K,x,O){var P=x.style;(x.c._mdf||O)&&P.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("fill-opacity",x.o.v)}function y(K,x,O){w(K,x,O),M(K,x,O)}function w(K,x,O){var P=x.gf,R=x.g._hasOpacity,U=x.s.v,L=x.e.v;if(x.o._mdf||O){var k=K.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(k,x.o.v)}if(x.s._mdf||O){var T=K.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";P.setAttribute(T,U[0]),P.setAttribute(C,U[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,U[0]),x.of.setAttribute(C,U[1]))}var N,$,G,q;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(G=N.length,$=0;$<G;$+=1)q=N[$],q.setAttribute("offset",it[$*4]+"%"),q.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,G=N.length,$=0;$<G;$+=1)q=N[$],x.g._collapsable||q.setAttribute("offset",Tt[$*2]+"%"),q.setAttribute("stop-opacity",Tt[$*2+1])}if(K.t===1)(x.e._mdf||O)&&(P.setAttribute("x2",L[0]),P.setAttribute("y2",L[1]),R&&!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(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)),P.setAttribute("r",ft),R&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)));var ot=Math.atan2(L[1]-U[1],L[0]-U[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var pt=ft*St,rt=Math.cos(ot+x.a.v)*pt+U[0],_=Math.sin(ot+x.a.v)*pt+U[1];P.setAttribute("fx",rt),P.setAttribute("fy",_),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",_))}}}function M(K,x,O){var P=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(P.pElem.setAttribute("stroke-dasharray",R.dashStr),P.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&P.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(P.pElem.setAttribute("stroke-width",x.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",x.w.v))}return n}();function de(r,s,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,n),this.prevViewData=[]}A([qi,Ns,Da,Au,Ls,Xi,Pa],de),de.prototype.initSecondaryElement=function(){},de.prototype.identityMatrix=new De,de.prototype.buildExpressionInterface=function(){},de.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},de.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,n,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<s;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(g.push(n),I=n._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},de.prototype.setShapesAsAnimated=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s].setAsAnimated()},de.prototype.createStyleElement=function(r,s){var n,d=new _u(r,s),m=d.pElem;if(r.ty==="st")n=new ku(this,r,d);else if(r.ty==="fl")n=new wu(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ms:Lu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new Nu(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Su[r.lc||2]),m.setAttribute("stroke-linejoin",Iu[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"]=$c(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},de.prototype.createGroupElement=function(r){var s=new hT;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"]=$c(r.bm)),s},de.prototype.createTransformElement=function(r,s){var n=Oc.getTransformProperty(this,r,this),d=new pT(n,n.o,s);return this.addToAnimatedContents(r,d),d},de.prototype.createShapeElement=function(r,s,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=ol.getShapeProp(this,r,d,this),p=new Cu(s,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},de.prototype.addToAnimatedContents=function(r,s){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===s)return;n+=1}this.animatedContents.push({fn:mT.createRenderFunction(r),element:s,data:r})},de.prototype.setElementStyles=function(r){var s=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||s.push(this.stylesList[n])},de.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()},de.prototype.searchShapes=function(r,s,n,d,m,p,g){var I=[].concat(p),y,w=r.length-1,M,K,x=[],O=[],P,R,U;for(y=w;y>=0;y-=1){if(U=this.searchProcessedElement(r[y]),U?s[y]=n[U-1]:r[y]._render=g,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")U?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==d&&d.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!U)s[y]=this.createGroupElement(r[y]);else for(K=s[y].it.length,M=0;M<K;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,g),r[y]._render&&s[y].gr.parentNode!==d&&d.appendChild(s[y].gr)}else r[y].ty==="tr"?(U||(s[y]=this.createTransformElement(r[y],d)),P=s[y].transform,I.push(P)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(U||(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"?(U?(R=s[y],R.closed=!1):(R=Yi.getModifier(r[y].ty),R.init(this,r[y]),s[y]=R,this.shapeModifiers.push(R)),O.push(R)):r[y].ty==="rp"&&(U?(R=s[y],R.closed=!0):(R=Yi.getModifier(r[y].ty),s[y]=R,R.init(this,r,y,s),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[y],y+1)}for(w=x.length,y=0;y<w;y+=1)x[y].closed=!0;for(w=O.length,y=0;y<w;y+=1)O[y].closed=!0},de.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"))},de.prototype.renderShape=function(){var r,s=this.animatedContents.length,n;for(r=0;r<s;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},de.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function zc(r,s,n,d,m,p){this.o=r,this.sw=s,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!n,fc:!!d,m:!0,p:!0}}zc.prototype.update=function(r,s,n,d,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 g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!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,g=!0),g};function Ke(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)}Ke.prototype.defaultBoxWidth=[0,0],Ke.prototype.copyData=function(r,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n]);return r},Ke.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ke.prototype.searchProperty=function(){return this.searchKeyframes()},Ke.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ke.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},Ke.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,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](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}},Ke.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>s);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Ke.prototype.buildFinalText=function(r){for(var s=[],n=0,d=r.length,m,p,g=!1,I=!1,y="";n<d;)g=I,I=!1,m=r.charCodeAt(n),y=r.charAt(n),Ro.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?Ro.isRegionalFlag(r,n)?y=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(Ro.isModifier(m,p)?(y=r.substr(n,2),g=!0):Ro.isFlagEmoji(r.substr(n,4))?y=r.substr(n,4):y=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),Ro.isVariationSelector(m)&&(g=!0)):Ro.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(s[s.length-1]+=y,g=!1):s.push(y),n+=y.length;return s},Ke.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,n=this.data,d=[],m,p,g,I=0,y,w=n.m.g,M=0,K=0,x=0,O=[],P=0,R=0,U,L,k=s.getFontByName(r.f),T,C=0,N=bu(k);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,G;if(r.sz)for(var q=!0,it=r.sz[0],Tt=r.sz[1],ft,ot;q;){ot=this.buildFinalText(r.t),ft=0,P=0,p=ot.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)G=ot[m].charCodeAt(0),g=!1,ot[m]===" "?St=m:(G===13||G===3)&&(P=0,g=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(ot[m],k.fStyle,k.fFamily),C=g?0:T.w*r.finalSize/100):C=s.measureText(ot[m],r.f,r.finalSize),P+C>it&&ot[m]!==" "?(St===-1?p+=1:m=St,ft+=r.finalLineHeight||r.finalSize*1.2,ot.splice(m,St===m?1:0,"\r"),St=-1,P=0):(P+=C,P+=$);ft+=k.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=ot,p=r.finalText.length,q=!1)}P=-$,C=0;var pt=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],G=rt.charCodeAt(0),G===13||G===3?(pt=0,O.push(P),R=P>R?P:R,P=-2*$,y="",g=!0,x+=1):y=rt,s.chars?(T=s.getCharData(rt,k.fStyle,s.getFontByName(r.f).fFamily),C=g?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?pt+=C+$:(P+=C+$+pt,pt=0),d.push({l:C,an:C,add:M,n:g,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),w==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);K<=m;)d[K].an=M,d[K].ind=I,d[K].extra=C,K+=1;I+=1,M=0}}else if(w==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);K<=m;)d[K].an=M,d[K].ind=I,d[K].extra=C,K+=1;M=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=P>R?P:R,O.push(P),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,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 _=n.a,D,v;L=_.length;var E,j,z=[];for(U=0;U<L;U+=1){for(D=_[U],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),j=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[U]=j,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&z.push(j),j+=1);n.a[U].s.totalChars=j;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[U]&&(ct=v.anIndexes[U],gt=z.splice(Math.floor(Math.random()*z.length),1)[0]),v.anIndexes[U]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=k.ascent*r.finalSize/100},Ke.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var n=this.copyData({},this.data.d.k[s].s);n=this.copyData(n,r),this.data.d.k[s].s=n,this.recalculate(s),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Ke.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},Ke.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ke.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var uT=function(){var r=Math.max,s=Math.min,n=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=lt.getProp(p,g.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,g.o||{k:0},0,0,this),this.xe=lt.getProp(p,g.xe||{k:0},0,0,this),this.ne=lt.getProp(p,g.ne||{k:0},0,0,this),this.sm=lt.getProp(p,g.sm||{k:100},0,0,this),this.a=lt.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,w=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:M=1+this.xe.v/100;var K=_a.getBezierEasing(I,y,w,M).get,x=0,O=this.finalS,P=this.finalE,R=this.data.sh;if(R===2)P===O?x=g>=P?1:0:x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===3)P===O?x=g>=P?0:1:x=1-r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===4)P===O?x=0:(x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=K(x);else if(R===5){if(P===O)x=0;else{var U=P-O;g=s(r(0,g+.5-O),P-O);var L=-U/2+g,k=U/2;x=Math.sqrt(1-L*L/(k*k))}x=K(x)}else R===6?(P===O?x=0:(g=s(r(0,g+.5-O),P-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(P-O)))/2),x=K(x)):(g>=n(O)&&(g-O<0?x=r(0,s(s(P,1)-(O-g),1)):x=r(0,s(P-g,1))),x=K(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(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&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,w=this.s.v/I+y,M=this.e.v/I+y;if(w>M){var K=w;w=M,M=K}this.finalS=w,this.finalE=M}},A([Ne],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function fT(r,s,n){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,n):d,rx:p.rx?m(r,p.rx,0,kt,n):d,ry:p.ry?m(r,p.ry,0,kt,n):d,sk:p.sk?m(r,p.sk,0,kt,n):d,sa:p.sa?m(r,p.sa,0,kt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=uT.getTextSelectorProp(r,s.s,n),this.s.t=s.s.t}function Po(r,s,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=n,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Po.prototype.searchProperties=function(){var r,s=this._textData.a.length,n,d=lt.getProp;for(r=0;r<s;r+=1)n=this._textData.a[r],this._animatorsData[r]=new fT(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(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=d(this._elem,this._textData.m.a,1,0,this)},Po.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,y,w,M,K,x=r.l,O,P,R,U,L,k,T,C,N,$,G,q,it,Tt,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var ot=ft.v;this._pathData.r.v&&(ot=ot.reverse()),O={tLength:0,segments:[]},K=ot._length-1;var St;for(q=0,M=0;M<K;M+=1)St=Xr.buildBezierData(ot.v[M],ot.v[M+1],[ot.o[M][0]-ot.v[M][0],ot.o[M][1]-ot.v[M][1]],[ot.i[M+1][0]-ot.v[M+1][0],ot.i[M+1][1]-ot.v[M+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength;M=K,ft.v.c&&(St=Xr.buildBezierData(ot.v[M],ot.v[0],[ot.o[M][0]-ot.v[M][0],ot.o[M][1]-ot.v[M][1]],[ot.i[0][0]-ot.v[0][0],ot.i[0][1]-ot.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,P=this._pathData.f.v,T=0,k=1,U=0,L=!0,$=O.segments,P<0&&ft.v.c)for(O.tLength<Math.abs(P)&&(P=-Math.abs(P)%O.tLength),T=$.length-1,N=$[T].points,k=N.length-1;P<0;)P+=N[k].partialLength,k-=1,k<0&&(T-=1,N=$[T].points,k=N.length-1);N=$[T].points,C=N[k-1],R=N[k],G=R.partialLength}K=x.length,y=0,w=0;var pt=r.finalSize*1.2*.714,rt=!0,_,D,v,E,j;E=d.length;var z,ct=-1,gt,xt,Pt,Ft=P,ue=T,rr=k,Qr=-1,ir,Le,ur,Yt,mt,yi,Ji,Ei,Jr="",Ti=this.defaultPropsArray,xi;if(r.j===2||r.j===1){var or=0,to=0,eo=r.j===2?-.5:-1,Dr=0,ro=!0;for(M=0;M<K;M+=1)if(x[M].n){for(or&&(or+=to);Dr<M;)x[Dr].animatorJustifyOffset=or,Dr+=1;or=0,ro=!0}else{for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(ro&&r.j===2&&(to+=_.t.v*eo),D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?or+=_.t.v*z[0]*eo:or+=_.t.v*z*eo);ro=!1}for(or&&(or+=to);Dr<M;)x[Dr].animatorJustifyOffset=or,Dr+=1}for(M=0;M<K;M+=1){if(p.reset(),ir=1,x[M].n)y=0,w+=r.yOffset,w+=rt?1:0,P=Ft,rt=!1,this._hasMaskedPath&&(T=ue,k=rr,N=$[T].points,C=N[k-1],R=N[k],G=R.partialLength,U=0),Jr="",Ei="",yi="",xi="",Ti=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Qr!==x[M].line){switch(r.j){case 1:P+=q-r.lineWidths[x[M].line];break;case 2:P+=(q-r.lineWidths[x[M].line])/2;break;default:break}Qr=x[M].line}ct!==x[M].ind&&(x[ct]&&(P+=x[ct].extra),P+=x[M].an/2,ct=x[M].ind),P+=n[0]*x[M].an*.005;var Pr=0;for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?Pr+=_.p.v[0]*z[0]:Pr+=_.p.v[0]*z),_.a.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?Pr+=_.a.v[0]*z[0]:Pr+=_.a.v[0]*z);for(L=!0,this._pathData.a.v&&(P=x[0].an*.5+(q-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(K-1),P+=this._pathData.f.v);L;)U+G>=P+Pr||!N?(it=(P+Pr-U)/R.partialLength,xt=C.point[0]+(R.point[0]-C.point[0])*it,Pt=C.point[1]+(R.point[1]-C.point[1])*it,p.translate(-n[0]*x[M].an*.005,-(n[1]*pt)*.01),L=!1):N&&(U+=R.partialLength,k+=1,k>=N.length&&(k=0,T+=1,$[T]?N=$[T].points:ft.v.c?(k=0,T=0,N=$[T].points):(U-=R.partialLength,N=null)),N&&(C=R,R=N[k],G=R.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(-n[0]*x[M].an*.005,-n[1]*pt*.01,0);for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?z.length?P+=_.t.v*z[0]:P+=_.t.v*z:z.length?y+=_.t.v*z[0]:y+=_.t.v*z));for(r.strokeWidthAnim&&(ur=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]]),v=0;v<E;v+=1)_=d[v].a,_.a.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?p.translate(-_.a.v[0]*z[0],-_.a.v[1]*z[1],_.a.v[2]*z[2]):p.translate(-_.a.v[0]*z,-_.a.v[1]*z,_.a.v[2]*z));for(v=0;v<E;v+=1)_=d[v].a,_.s.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?p.scale(1+(_.s.v[0]-1)*z[0],1+(_.s.v[1]-1)*z[1],1):p.scale(1+(_.s.v[0]-1)*z,1+(_.s.v[1]-1)*z,1));for(v=0;v<E;v+=1){if(_=d[v].a,D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),_.sk.propType&&(z.length?p.skewFromAxis(-_.sk.v*z[0],_.sa.v*z[1]):p.skewFromAxis(-_.sk.v*z,_.sa.v*z)),_.r.propType&&(z.length?p.rotateZ(-_.r.v*z[2]):p.rotateZ(-_.r.v*z)),_.ry.propType&&(z.length?p.rotateY(_.ry.v*z[1]):p.rotateY(_.ry.v*z)),_.rx.propType&&(z.length?p.rotateX(_.rx.v*z[0]):p.rotateX(_.rx.v*z)),_.o.propType&&(z.length?ir+=(_.o.v*z[0]-ir)*z[0]:ir+=(_.o.v*z-ir)*z),r.strokeWidthAnim&&_.sw.propType&&(z.length?ur+=_.sw.v*z[0]:ur+=_.sw.v*z),r.strokeColorAnim&&_.sc.propType)for(mt=0;mt<3;mt+=1)z.length?Le[mt]+=(_.sc.v[mt]-Le[mt])*z[0]:Le[mt]+=(_.sc.v[mt]-Le[mt])*z;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(mt=0;mt<3;mt+=1)z.length?Yt[mt]+=(_.fc.v[mt]-Yt[mt])*z[0]:Yt[mt]+=(_.fc.v[mt]-Yt[mt])*z;_.fh.propType&&(z.length?Yt=Km(Yt,_.fh.v*z[0]):Yt=Km(Yt,_.fh.v*z)),_.fs.propType&&(z.length?Yt=Um(Yt,_.fs.v*z[0]):Yt=Um(Yt,_.fs.v*z)),_.fb.propType&&(z.length?Yt=Gm(Yt,_.fb.v*z[0]):Yt=Gm(Yt,_.fb.v*z))}}for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?z.length?p.translate(0,_.p.v[1]*z[0],-_.p.v[2]*z[1]):p.translate(0,_.p.v[1]*z,-_.p.v[2]*z):z.length?p.translate(_.p.v[0]*z[0],_.p.v[1]*z[1],-_.p.v[2]*z[2]):p.translate(_.p.v[0]*z,_.p.v[1]*z,-_.p.v[2]*z));if(r.strokeWidthAnim&&(yi=ur<0?0:ur),r.strokeColorAnim&&(Ji="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Ei="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,n[1]*pt*.01+w,0),this._pathData.p.v){Tt=(R.point[1]-C.point[1])/(R.point[0]-C.point[0]);var Fo=Math.atan(Tt)*180/Math.PI;R.point[0]<C.point[0]&&(Fo+=180),p.rotate(-Fo*Math.PI/180)}p.translate(xt,Pt,0),P-=n[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(P+=x[M].an/2,P+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,w,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(n[0]*x[M].an*.005,n[1]*pt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}g==="html"?Jr=p.toCSS():g==="svg"?Jr=p.to2dCSS():Ti=[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]],xi=ir}I<=M?(j=new zc(xi,yi,Ji,Ei,Jr,Ti),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[M],this.lettersChangedFlag=j.update(xi,yi,Ji,Ei,Jr,Ti)||this.lettersChangedFlag)}}},Po.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Po.prototype.mHelper=new De,Po.prototype.defaultPropsArray=[],A([Ne],Po);function Sr(){}Sr.prototype.initElement=function(r,s,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,n),this.textProperty=new Ke(this,r.t,this.dynamicProperties),this.textAnimator=new Po(r.t,this.renderType,this),this.initTransform(r,s,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Sr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Sr.prototype.createPathShape=function(r,s){var n,d=s.length,m,p="";for(n=0;n<d;n+=1)s[n].ty==="sh"&&(m=s[n].ks.k,p+=Mu(m,m.i.length,!0,r));return p},Sr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Sr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Sr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Sr.prototype.applyTextPropertiesToMatrix=function(r,s,n,d,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[n]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}s.translate(d,m,0)},Sr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Sr.prototype.emptyProp=new zc,Sr.prototype.destroy=function(){},Sr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var vT={shapes:[]};function gi(r,s,n){this.textSpans=[],this.renderType="svg",this.initElement(r,s,n)}A([qi,Ns,Da,Ls,Xi,Pa,Sr],gi),gi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},gi.prototype.buildTextContents=function(r){for(var s=0,n=r.length,d=[],m="";s<n;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},gi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},gi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,n=this.textProperty.currentData;this.renderedLetters=tt(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],I=!!this.globalData.fontManager.chars;s=g.length;var y,w=this.mHelper,M="",K=this.data.singleShape,x=0,O=0,P=!0,R=n.tr*.001*n.finalSize;if(K&&!I&&!n.sz){var U=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}U.setAttribute("text-anchor",L),U.setAttribute("letter-spacing",R);var k=this.buildTextContents(n.finalText);for(s=k.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||At("tspan"),y.textContent=k[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",U.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=n.finalLineHeight;this.layerElement.appendChild(U)}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||!K||r===0){if(y=T>r?this.textSpans[r].span:At(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=At("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(w.reset(),K&&(g[r].n&&(x=-R,O+=n.yOffset,O+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(n,w,g[r].line,x,O),x+=g[r].l||0,x+=R),I){C=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(C.t===1)$=new Va(C.data,this.globalData,this);else{var G=vT;C.data&&C.data.shapes&&(G=this.buildShapeData(C.data,n.finalSize)),$=new de(G,this.globalData,this)}if(this.textSpans[r].glyph){var q=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(q.layerElement),q.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("+n.finalSize/100+","+n.finalSize/100+")")}else K&&y.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),y.textContent=g[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}K&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},gi.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},gi.prototype.getValue=function(){var r,s=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},gi.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,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,g;for(r=0;r<s;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.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 Bc(r,s,n){this.initElement(r,s,n)}A([Fa],Bc),Bc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Qi(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initFrame(),this.initTransform(r,s,n),this.initHierarchy()}Qi.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Qi.prototype.renderFrame=function(){},Qi.prototype.getBaseElement=function(){return null},Qi.prototype.destroy=function(){},Qi.prototype.sourceRectAtTime=function(){},Qi.prototype.hide=function(){},A([qi,Ns,Ls,Xi],Qi);function Ae(){}A([Pe],Ae),Ae.prototype.createNull=function(r){return new Qi(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new de(r,this.globalData,this)},Ae.prototype.createText=function(r){return new gi(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new Fa(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new Bc(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 n=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(n),this.layers=r.layers,this.elements=tt(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,n=this.layers.length;for(s=0;s<n;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 n=this.createItem(this.layers[r]);if(s[r]=n,Zn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=s[d],p=m.getMatte(this.layers[r].tt);n.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,n=this.elements.length;s<n;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],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,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=n-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<n;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var n=r.getBaseElement();if(n){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function bi(){}A([qi,Ns,Ls,Xi,Pa],bi),bi.prototype.initElement=function(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initTransform(r,s,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},bi.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 n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},bi.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()},bi.prototype.setElements=function(r){this.elements=r},bi.prototype.getElements=function(){return this.elements},bi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},bi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Va(r,s,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(r,s,n),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Ae,bi,Da],Va),Va.prototype.createComp=function(r){return new Va(r,this.globalData,this)};function Hc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var n="";if(s&&s.title){var d=At("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),n+=m}if(s&&s.description){var p=At("desc"),g=tr();p.setAttribute("id",g),p.textContent=s.description,this.svgElement.appendChild(p),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=At("defs");this.svgElement.appendChild(I);var y=At("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],Hc),Hc.prototype.createComp=function(r){return new Va(r,this.globalData,this)},CE("svg",Hc),Yi.registerModifier("tm",Rr),Yi.registerModifier("pb",ka),Yi.registerModifier("rp",Zr),Yi.registerModifier("rd",wa),Yi.registerModifier("zz",La),Yi.registerModifier("op",Ma),Gt})});var vl=globalThis,gl=vl.ShadowRoot&&(vl.ShadyCSS===void 0||vl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gc=Symbol(),Ru=new WeakMap,za=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Gc)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(gl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=Ru.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&Ru.set(t,o))}return o}toString(){return this.cssText}},Du=a=>new za(typeof a=="string"?a:a+"",void 0,Gc),H=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((e,i,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+a[l+1],a[0]);return new za(t,a,Gc)},Kc=(a,o)=>{if(gl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=vl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,a.appendChild(e)}},bl=gl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return Du(t)})(a):a;var{is:ST,defineProperty:IT,getOwnPropertyDescriptor:CT,getOwnPropertyNames:_T,getOwnPropertySymbols:kT,getPrototypeOf:wT}=Object,io=globalThis,Pu=io.trustedTypes,NT=Pu?Pu.emptyScript:"",Wc=io.reactiveElementPolyfillSupport,Ba=(a,o)=>a,Ha={toAttribute(a,o){switch(o){case Boolean:a=a?NT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},yl=(a,o)=>!ST(a,o),Fu={attribute:!0,type:String,converter:Ha,reflect:!1,hasChanged:yl},$u,Vu;($u=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Vu=io.litPropertyMetadata)!=null||(io.litPropertyMetadata=new WeakMap);var Ai=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=Fu){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&&IT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var c;let{get:i,set:l}=(c=CT(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let b=i==null?void 0:i.call(this);l.call(this,f),this.requestUpdate(o,b,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Fu}static _$Ei(){if(this.hasOwnProperty(Ba("elementProperties")))return;let o=wT(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Ba("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ba("properties"))){let t=this.properties,e=[..._T(t),...kT(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(bl(i))}else o!==void 0&&t.push(bl(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 Kc(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 l;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:Ha).toAttribute(t,e.type);this._$Em=o,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(o,t){var l;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let c=e.getPropertyOptions(i),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:Ha;this._$Em=i,this[i]=f.fromAttribute(t,c.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:yl)(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[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}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){}},zu;Ai.elementStyles=[],Ai.shadowRootOptions={mode:"open"},Ai[Ba("elementProperties")]=new Map,Ai[Ba("finalized")]=new Map,Wc==null||Wc({ReactiveElement:Ai}),((zu=io.reactiveElementVersions)!=null?zu:io.reactiveElementVersions=[]).push("2.0.4");var Ga=globalThis,El=Ga.trustedTypes,Bu=El?El.createPolicy("lit-html",{createHTML:a=>a}):void 0,qc="$lit$",Si=`lit$${Math.random().toFixed(9).slice(2)}$`,Xc="?"+Si,LT=`<${Xc}>`,zo=document,Ka=()=>zo.createComment(""),Wa=a=>a===null||typeof a!="object"&&typeof a!="function",Zc=Array.isArray,ju=a=>Zc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Yc=`[
3
- \f\r]`,Ua=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hu=/-->/g,Uu=/>/g,$o=RegExp(`>|${Yc}(?:([^\\s"'>=/]+)(${Yc}*=${Yc}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Gu=/'/g,Ku=/"/g,qu=/^(?:script|style|textarea|title)$/i,Qc=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),S=Qc(1),PI=Qc(2),FI=Qc(3),Fe=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Wu=new WeakMap,Vo=zo.createTreeWalker(zo,129);function Xu(a,o){if(!Zc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bu!==void 0?Bu.createHTML(o):o}var Zu=(a,o)=>{let t=a.length-1,e=[],i,l=o===2?"<svg>":o===3?"<math>":"",c=Ua;for(let f=0;f<t;f++){let b=a[f],A,F,V=-1,Q=0;for(;Q<b.length&&(c.lastIndex=Q,F=c.exec(b),F!==null);)Q=c.lastIndex,c===Ua?F[1]==="!--"?c=Hu:F[1]!==void 0?c=Uu:F[2]!==void 0?(qu.test(F[2])&&(i=RegExp("</"+F[2],"g")),c=$o):F[3]!==void 0&&(c=$o):c===$o?F[0]===">"?(c=i!=null?i:Ua,V=-1):F[1]===void 0?V=-2:(V=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?$o:F[3]==='"'?Ku:Gu):c===Ku||c===Gu?c=$o:c===Hu||c===Uu?c=Ua:(c=$o,i=void 0);let Z=c===$o&&a[f+1].startsWith("/>")?" ":"";l+=c===Ua?b+LT:V>=0?(e.push(A),b.slice(0,V)+qc+b.slice(V)+Si+Z):b+Si+(V===-2?f:Z)}return[Xu(a,l+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Ya=class a{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let l=0,c=0,f=o.length-1,b=this.parts,[A,F]=Zu(o,t);if(this.el=a.createElement(A,e),Vo.currentNode=this.el.content,t===2||t===3){let V=this.el.content.firstChild;V.replaceWith(...V.childNodes)}for(;(i=Vo.nextNode())!==null&&b.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let V of i.getAttributeNames())if(V.endsWith(qc)){let Q=F[c++],Z=i.getAttribute(V).split(Si),tt=/([.?@])?(.*)/.exec(Q);b.push({type:1,index:l,name:tt[2],strings:Z,ctor:tt[1]==="."?xl:tt[1]==="?"?Al:tt[1]==="@"?Sl:Ho}),i.removeAttribute(V)}else V.startsWith(Si)&&(b.push({type:6,index:l}),i.removeAttribute(V));if(qu.test(i.tagName)){let V=i.textContent.split(Si),Q=V.length-1;if(Q>0){i.textContent=El?El.emptyScript:"";for(let Z=0;Z<Q;Z++)i.append(V[Z],Ka()),Vo.nextNode(),b.push({type:2,index:++l});i.append(V[Q],Ka())}}}else if(i.nodeType===8)if(i.data===Xc)b.push({type:2,index:l});else{let V=-1;for(;(V=i.data.indexOf(Si,V+1))!==-1;)b.push({type:7,index:l}),V+=Si.length-1}l++}}static createElement(o,t){let e=zo.createElement("template");return e.innerHTML=o,e}};function Bo(a,o,t=a,e){var c,f,b;if(o===Fe)return o;let i=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Wa(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==l&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),l===void 0?i=void 0:(i=new l(a),i._$AT(a,t,e)),e!==void 0?((b=t.o)!=null?b:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Bo(a,i._$AS(a,o.values),i,e)),o}var Tl=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:zo).importNode(t,!0);Vo.currentNode=i;let l=Vo.nextNode(),c=0,f=0,b=e[0];for(;b!==void 0;){if(c===b.index){let F;b.type===2?F=new Os(l,l.nextSibling,this,o):b.type===1?F=new b.ctor(l,b.name,b.strings,this,o):b.type===6&&(F=new Il(l,this,o)),this._$AV.push(F),b=e[++f]}c!==(b==null?void 0:b.index)&&(l=Vo.nextNode(),c++)}return Vo.currentNode=zo,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++}},Os=class a{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 l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(l=i==null?void 0:i.isConnected)!=null?l:!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=Bo(this,o,t),Wa(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==Fe&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):ju(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!==W&&Wa(this._$AH)?this._$AA.nextSibling.data=o:this.T(zo.createTextNode(o)),this._$AH=o}$(o){var l;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Ya.createElement(Xu(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===i)this._$AH.p(t);else{let c=new Tl(i,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=Wu.get(o.strings);return t===void 0&&Wu.set(o.strings,t=new Ya(o)),t}k(o){Zc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let l of o)i===t.length?t.push(e=new a(this.O(Ka()),this.O(Ka()),this,this.options)):e=t[i],e._$AI(l),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))}},Ho=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(o,t=this,e,i){let l=this.strings,c=!1;if(l===void 0)o=Bo(this,o,t,0),c=!Wa(o)||o!==this._$AH&&o!==Fe,c&&(this._$AH=o);else{let f=o,b,A;for(o=l[0],b=0;b<l.length-1;b++)A=Bo(this,f[e+b],t,b),A===Fe&&(A=this._$AH[b]),c||(c=!Wa(A)||A!==this._$AH[b]),A===W?o=W:o!==W&&(o+=(A!=null?A:"")+l[b+1]),this._$AH[b]=A}c&&!i&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},xl=class extends Ho{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Al=class extends Ho{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Sl=class extends Ho{constructor(o,t,e,i,l){super(o,t,e,i,l),this.type=5}_$AI(o,t=this){var c;if((o=(c=Bo(this,o,t,0))!=null?c:W)===Fe)return;let e=this._$AH,i=o===W&&e!==W||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==W&&(e===W||i);i&&this.element.removeEventListener(this.name,this,e),l&&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)}},Il=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){Bo(this,o)}},Qu={M:qc,P:Si,A:Xc,C:1,L:Zu,R:Tl,D:ju,V:Bo,I:Os,H:Ho,N:Al,U:Sl,B:xl,F:Il},jc=Ga.litHtmlPolyfillSupport,Yu;jc==null||jc(Ya,Os),((Yu=Ga.litHtmlVersions)!=null?Yu:Ga.litHtmlVersions=[]).push("3.2.0");var Ju=(a,o,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:o,i=e._$litPart$;if(i===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=i=new Os(o.insertBefore(Ka(),f),f,void 0,t!=null?t:{})}return i._$AI(a),i};var oo=class extends Ai{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=Ju(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 Fe}},tf;oo._$litElement$=!0,oo.finalized=!0,(tf=globalThis.litElementHydrateSupport)==null||tf.call(globalThis,{LitElement:oo});var Jc=globalThis.litElementPolyfillSupport;Jc==null||Jc({LitElement:oo});var ef;((ef=globalThis.litElementVersions)!=null?ef:globalThis.litElementVersions=[]).push("4.1.0");var MT={attribute:!0,type:String,converter:Ha,reflect:!1,hasChanged:yl},OT=(a=MT,o,t)=>{let{kind:e,metadata:i}=t,l=globalThis.litPropertyMetadata.get(i);if(l===void 0&&globalThis.litPropertyMetadata.set(i,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let b=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,b,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let b=this[c];o.call(this,f),this.requestUpdate(c,b,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(o,t)=>typeof t=="object"?OT(a,o,t):((e,i,l)=>{let c=i.hasOwnProperty(l);return i.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(i,l):void 0})(a,o,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function rf(a){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,a)}}var ti=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Kt(a,o){return(t,e,i)=>{let l=c=>{var f,b;return(b=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?b:null};if(o){let{get:c,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let b=Symbol();return{get(){return this[b]},set(A){this[b]=A}}})();return ti(t,e,{get(){let b=c.call(this);return b===void 0&&(b=l(this),(b!==null||this.hasUpdated)&&f.call(this,b)),b}})}return ti(t,e,{get(){return l(this)}})}}var th;function of(a){return(o,t)=>ti(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:th!=null?th:th=document.createDocumentFragment()).querySelectorAll(a)}})}function qt(a){return(o,t)=>{let{slot:e,selector:i}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var b,A;let c=(b=this.renderRoot)==null?void 0:b.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return i===void 0?f:f.filter(F=>F.matches(i))}})}}function sf(a){return(o,t)=>{let{slot:e}=a!=null?a:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(i);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var RT={PREFIX:"mdc",SEPARATOR:"-"},DT={NAMESPACE:RT},eh=DT;var PT=a=>[eh.NAMESPACE.PREFIX,a].join(eh.NAMESPACE.SEPARATOR),B={constructTagName:PT};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 af=B.constructTagName("buttonsimple"),Uo={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},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},ja={SIZE:Uo[32],TYPE:Rs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Ii=B.constructTagName("button"),Vt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},qa={40:40,32:32,28:28,24:24},Ir={64:64,52:52,20:20,...qa},Go={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},sr={VARIANT:Vt.PRIMARY,SIZE:qa[32],COLOR:Go.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var Cl=a=>{class o extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Vt).includes(i)?i:sr.VARIANT)}setColor(i){!Object.values(Go).includes(i)||this.variant===Vt.TERTIARY?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let c=this.typeInternal===Ds.ICON?Object.values(Ir).includes(i)&&!(i===Ir[20]&&this.variant!==Vt.TERTIARY):Object.values(qa).includes(i);this.setAttribute("size",c?`${i}`:`${sr.SIZE}`)}inferButtonType(){var A,F,V,Q,Z,tt;let i=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,l=(Q=(V=this.shadowRoot)==null?void 0:V.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,c=this.prefixIcon||l&&l>0,f=(tt=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:tt.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,b=this.postfixIcon||f&&f>0;i&&(c||b)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(c||b)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.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=H`
1
+ "use strict";(()=>{var bT=Object.create;var Gc=Object.defineProperty;var Ru=Object.getOwnPropertyDescriptor;var yT=Object.getOwnPropertyNames;var ET=Object.getPrototypeOf,TT=Object.prototype.hasOwnProperty;var xT=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var AT=(a,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of yT(o))!TT.call(a,i)&&i!==t&&Gc(a,i,{get:()=>o[i],enumerable:!(e=Ru(o,i))||e.enumerable});return a};var ST=(a,o,t)=>(t=a!=null?bT(ET(a)):{},AT(o||!a||!a.__esModule?Gc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,o,t,e)=>{for(var i=e>1?void 0:e?Ru(o,t):o,l=a.length-1,c;l>=0;l--)(c=a[l])&&(i=(e?c(o,t,i):c(i))||i);return e&&i&&Gc(o,t,i),i};var Gf=xT((an,Kl)=>{typeof navigator<"u"&&function(a,o){typeof an=="object"&&typeof Kl<"u"?Kl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(an,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},l=function(){return t},c=function(s){o=s},f=function(){return o};function b(r){return document.createElement(r)}function A(r,s){var n,d=r.length,m;for(n=0;n<d;n+=1){m=r[n].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function F(r,s){return Object.getOwnPropertyDescriptor(r,s)}function V(r){function s(){}return s.prototype=r,s}var Q=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),Z=function(){function r(n,d){var m=0,p=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(m=0;m<d;m+=1)p.push(g);return p}function s(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):r(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function tt(r){return Array.apply(null,{length:r})}function nt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nt=function(n){return typeof n}:nt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nt(r)}var at=!0,ht=null,It=null,Ct="",Ht=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),$t=!1,Ut=Math.pow,Ot=Math.sqrt,ae=Math.floor,Ue=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,n=r.length;for(s=0;s<n;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=nt(r);if(s==="object"&&r.length){var n=tt(r.length),d,m=r.length;for(d=0;d<m;d+=1)n[d]=Math.abs(r[d]);return n}return Math.abs(r)};var xe=150,kt=Math.PI/180,oe=.5519;function Ge(r){$t=!!r}function Qe(r){return $t?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 xr(r,s,n,d){this.type=r,this.currentTime=s,this.totalTime=n,this.direction=d<0?-1:1}function Xn(r,s){this.type=r,this.direction=s<0?-1:1}function Bm(r,s,n,d){this.type=r,this.currentLoop=n,this.totalLoops=s,this.direction=d<0?-1:1}function Hm(r,s,n){this.type=r,this.firstFrame=s,this.totalFrames=n}function Um(r,s){this.type=r,this.target=s}function bE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function yE(r){this.type="configError",this.nativeError=r}function _I(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,Ct+"__lottie_element_"+r}}();function Lc(r,s,n){var d,m,p,g,I,y,w,M;switch(g=Math.floor(r*6),I=r*6-g,y=n*(1-s),w=n*(1-I*s),M=n*(1-(1-I)*s),g%6){case 0:d=n,m=M,p=y;break;case 1:d=w,m=n,p=y;break;case 2:d=y,m=n,p=M;break;case 3:d=y,m=w,p=n;break;case 4:d=M,m=y,p=n;break;case 5:d=n,m=y,p=w;break;default:break}return[d,m,p]}function Mc(r,s,n){var d=Math.max(r,s,n),m=Math.min(r,s,n),p=d-m,g,I=d===0?0:p/d,y=d/255;switch(d){case m:g=0;break;case r:g=s-n+p*(s<n?6:0),g/=6*p;break;case s:g=n-r+p*2,g/=6*p;break;case n:g=r-s+p*4,g/=6*p;break;default:break}return[g,I,y]}function Gm(r,s){var n=Mc(r[0]*255,r[1]*255,r[2]*255);return n[1]+=s,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Lc(n[0],n[1],n[2])}function Km(r,s){var n=Mc(r[0]*255,r[1]*255,r[2]*255);return n[2]+=s,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Lc(n[0],n[1],n[2])}function Wm(r,s){var n=Mc(r[0]*255,r[1]*255,r[2]*255);return n[0]+=s/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Lc(n[0],n[1],n[2])}var kI=function(){var r=[],s,n;for(s=0;s<256;s+=1)n=s.toString(16),r[s]=n.length===1?"0"+n:n;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),EE=function(s){at=!!s},TE=function(){return at},xE=function(s){ht=s},Zn=function(){return ht},wI=function(s){It=s},Ym=function(){return It},Qn=function(s){xe=s},Aa=function(){return xe},AE=function(s){Ct=s},NI=function(){return Ct};function At(r){return document.createElementNS(a,r)}function Jn(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jn=function(n){return typeof n}:Jn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jn(r)}var Sa=function(){var r=1,s=[],n,d,m={onmessage:function(){},postMessage:function(O){n({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),P=URL.createObjectURL(O);return new Worker(P)}return n=x,m}function I(){d||(d=g(function(O){function P(){function U(rt,_){var D,v,E=rt.length,j,z,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var xt=D.masksProperties;for(z=xt.length,j=0;j<z;j+=1)if(xt[j].pt.k.i)N(xt[j].pt.k);else for(gt=xt[j].pt.k.length,ct=0;ct<gt;ct+=1)xt[j].pt.k[ct].s&&N(xt[j].pt.k[ct].s[0]),xt[j].pt.k[ct].e&&N(xt[j].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,_),U(D.layers,_)):D.ty===4?C(D.shapes):D.ty===5&&St(D)}}function L(rt,_){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,_),U(rt[D].data.layers,_))}}function k(rt,_){for(var D=0,v=_.length;D<v;){if(_[D].id===rt)return _[D];D+=1}return null}function T(rt,_){var D=k(rt,_);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function C(rt){var _,D=rt.length,v,E;for(_=D-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,v=0;v<E;v+=1)rt[_].ks.k[v].s&&N(rt[_].ks.k[v].s[0]),rt[_].ks.k[v].e&&N(rt[_].ks.k[v].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,D=rt.i.length;for(_=0;_<D;_+=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 D=_?_.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var G=function(){var rt=[4,4,14];function _(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),q=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var D,v=_.chars.length;for(D=0;D<v;D+=1){var E=_.chars[D];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[D].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 _(v){var E=v.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 D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),Tt=function(){var rt=[4,1,9];function _(v){var E,j=v.length,z,ct;for(E=0;E<j;E+=1)if(v[E].ty==="gr")_(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,z=0;z<ct;z+=1)v[E].c.k[z].s&&(v[E].c.k[z].s[0]/=255,v[E].c.k[z].s[1]/=255,v[E].c.k[z].s[2]/=255,v[E].c.k[z].s[3]/=255),v[E].c.k[z].e&&(v[E].c.k[z].e[0]/=255,v[E].c.k[z].e[1]/=255,v[E].c.k[z].e[2]/=255,v[E].c.k[z].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===4&&_(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(v){var E,j=v.length,z,ct;for(E=j-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,z=0;z<ct;z+=1)v[E].ks.k[z].s&&(v[E].ks.k[z].s[0].c=v[E].closed),v[E].ks.k[z].e&&(v[E].ks.k[z].e[0].c=v[E].closed);else v[E].ty==="gr"&&_(v[E].it)}function D(v){var E,j,z=v.length,ct,gt,xt,Pt;for(j=0;j<z;j+=1){if(E=v[j],E.hasMask){var Ft=E.masksProperties;for(gt=Ft.length,ct=0;ct<gt;ct+=1)if(Ft[ct].pt.k.i)Ft[ct].pt.k.c=Ft[ct].cl;else for(Pt=Ft[ct].pt.k.length,xt=0;xt<Pt;xt+=1)Ft[ct].pt.k[xt].s&&(Ft[ct].pt.k[xt].s[0].c=Ft[ct].cl),Ft[ct].pt.k[xt].e&&(Ft[ct].pt.k[xt].e[0].c=Ft[ct].cl)}E.ty===4&&_(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function ot(rt){rt.__complete||(Tt(rt),G(rt),q(rt),it(rt),ft(rt),U(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function St(rt){rt.t.a.length===0&&"m"in rt.t.p}var pt={};return pt.completeData=ot,pt.checkColors=Tt,pt.checkChars=q,pt.checkPathProperties=it,pt.checkShapes=ft,pt.completeLayers=U,pt}if(p.dataManager||(p.dataManager=P()),p.assetLoader||(p.assetLoader=function(){function U(k){var T=k.getResponseHeader("content-type");return T&&k.responseType==="json"&&T.indexOf("json")!==-1||k.response&&Jn(k.response)==="object"?k.response:k.response&&typeof k.response=="string"?JSON.parse(k.response):k.responseText?JSON.parse(k.responseText):null}function L(k,T,C,N){var $,G=new XMLHttpRequest;try{G.responseType="json"}catch{}G.onreadystatechange=function(){if(G.readyState===4)if(G.status===200)$=U(G),C($);else try{$=U(G),C($)}catch(q){N&&N(q)}};try{G.open(["G","E","T"].join(""),k,!0)}catch{G.open(["G","E","T"].join(""),T+"/"+k,!0)}G.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.dataManager.completeData(U),p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,P=O.id,R=s[P];s[P]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function y(x,O){r+=1;var P="processId_"+r;return s[P]={onComplete:x,onError:O},P}function w(x,O,P){I();var R=y(O,P);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function M(x,O,P){I();var R=y(O,P);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function K(x,O,P){I();var R=y(O,P);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:M,completeAnimation:K}}(),SE=function(){var r=function(){var L=b("canvas");L.width=1,L.height=1;var k=L.getContext("2d");return k.fillStyle="rgba(0,0,0,0)",k.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 n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(L,k,T){var C="";if(L.e)C=L.p;else if(k){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=k+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var k=0,T=setInterval((function(){var C=L.getBBox();(C.width||k>500)&&(this._imageLoaded(),clearInterval(T)),k+=1}).bind(this),50)}function p(L){var k=d(L,this.assetsPath,this.path),T=At("image");Ht?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",k),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function g(L){var k=d(L,this.assetsPath,this.path),T=b("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=k;var C={img:T,assetData:L};return C}function I(L){var k={assetData:L},T=d(L,this.assetsPath,this.path);return Sa.loadData(T,(function(C){k.img=C,this._footageLoaded()}).bind(this),(function(){k.img={},this._footageLoaded()}).bind(this)),k}function y(L,k){this.imagesLoadedCb=k;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 w(L){this.path=L||""}function M(L){this.assetsPath=L||""}function K(L){for(var k=0,T=this.images.length;k<T;){if(this.images[k].assetData===L)return this.images[k].img;k+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function R(L,k){L==="svg"?(this._elementHelper=k,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=s.bind(this),this._footageLoaded=n.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 U.prototype={loadAssets:y,setAssetsPath:M,setPath:w,loadedImages:O,loadedFootages:P,destroy:x,getAsset:K,createImgData:g,createImageData:p,imageLoaded:s,footageLoaded:n,setCacheType:R},U}();function jm(){}jm.prototype={triggerEvent:function(s,n){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](n)},addEventListener:function(s,n){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(n),(function(){this.removeEventListener(s,n)}).bind(this)},removeEventListener:function(s,n){if(!n)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===n&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var IE=function(){function r(s){for(var n=s.split(`\r
2
+ `),d={},m,p=0,g=0;g<n.length;g+=1)m=n[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var n=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}n.push(p)}return n}}(),CE=function(){function r(s){this.compositions.push(s)}return function(){function s(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Ia={},_E=function(s,n){Ia[s]=n};function kE(r){return Ia[r]}function wE(){if(Ia.canvas)return"canvas";for(var r in Ia)if(Ia[r])return r;return""}function Ca(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ca=function(n){return typeof n}:Ca=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ca(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=TE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=CE(),this.imagePreloader=new SE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new xr("drawnFrame",0,0,0),this.expressionsPlugin=Zn()};A([jm],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 n=kE(s);this.renderer=new n(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")),Sa.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Sa.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Ca(s)!=="object"&&(s=JSON.parse(s));var n={wrapper:r,animationData:s},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:wE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):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,n,d=s.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(n=0;n<d;){if(s[n].id===m[p].id){s[n]=m[p];break}n+=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(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,Sa.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Zn();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 n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Sa.loadData(n,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=IE(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=Zn();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 n=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(n,d)},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,n=0;n<this.markers.length;n+=1)if(s=this.markers[n],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){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,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){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(d,s,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,n=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(n=!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):(n=!0,s=0)):this.setCurrentRawFrameValue(s),n&&(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 n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>s&&(n=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Ca(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}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 n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),s=this.assetsPath+n}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,n=this.assets.length;s<n;){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,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new xr(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 Bm(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Xn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Hm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Um(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new xr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Bm(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Xn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Hm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Um(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new bE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new yE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var me=function(){var r={},s=[],n=0,d=0,m=0,p=!0,g=!1;function I(_){for(var D=0,v=_.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||K()),D+=1}function y(_,D){if(!_)return null;for(var v=0;v<d;){if(s[v].elem===_&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,_),E.setData(_,D),E}function w(){var _,D=s.length,v=[];for(_=0;_<D;_+=1)v.push(s[_].animation);return v}function M(){m+=1,Tt()}function K(){m-=1}function x(_,D){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",K),s.push({elem:D,animation:_}),d+=1}function O(_){var D=new vt;return x(D,null),D.setParams(_),D}function P(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(_,D)}function R(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(_,D)}function U(_){var D;for(D=0;D<d;D+=1)s[D].animation.play(_)}function L(_){var D=_-n,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);n=_,m&&!g?window.requestAnimationFrame(L):p=!0}function k(_){n=_,window.requestAnimationFrame(L)}function T(_){var D;for(D=0;D<d;D+=1)s[D].animation.pause(_)}function C(_,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(_,D,v)}function N(_){var D;for(D=0;D<d;D+=1)s[D].animation.stop(_)}function $(_){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(_)}function G(_){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(_)}function q(_,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,z=E.length;for(j=0;j<z;j+=1)v&&E[j].setAttribute("data-bm-type",v),y(E[j],_);if(D&&z===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=b("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<d;_+=1)s[_].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(k),p=!1)}function ft(){g=!0}function ot(){g=!1,Tt()}function St(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(_,D)}function pt(_){var D;for(D=0;D<d;D+=1)s[D].animation.mute(_)}function rt(_){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=P,r.setDirection=R,r.play=U,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=q,r.resize=it,r.goToAndStop=C,r.destroy=G,r.freeze=ft,r.unfreeze=ot,r.setVolume=St,r.mute=pt,r.unmute=rt,r.getRegisteredAnimations=w,r}(),_a=function(){var r={};r.getBezierEasing=n;var s={};function n(k,T,C,N,$){var G=$||("bez_"+k+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[G])return s[G];var q=new L([k,T,C,N]);return s[G]=q,q}var d=4,m=.001,p=1e-7,g=10,I=11,y=1/(I-1),w=typeof Float32Array=="function";function M(k,T){return 1-3*T+3*k}function K(k,T){return 3*T-6*k}function x(k){return 3*k}function O(k,T,C){return((M(T,C)*k+K(T,C))*k+x(T))*k}function P(k,T,C){return 3*M(T,C)*k*k+2*K(T,C)*k+x(T)}function R(k,T,C,N,$){var G,q,it=0;do q=T+(C-T)/2,G=O(q,N,$)-k,G>0?C=q:T=q;while(Math.abs(G)>p&&++it<g);return q}function U(k,T,C,N){for(var $=0;$<d;++$){var G=P(T,C,N);if(G===0)return T;var q=O(T,C,N)-k;T-=q/G}return T}function L(k){this._p=k,this._mSampleValues=w?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],G=this._p[3];return this._precomputed||this._precompute(),C===N&&$===G?T:T===0?0:T===1?1:O(this._getTForX(T),N,G)},_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,G=0,q=1,it=I-1;q!==it&&$[q]<=T;++q)G+=y;--q;var Tt=(T-$[q])/($[q+1]-$[q]),ft=G+Tt*y,ot=P(ft,C,N);return ot>=m?U(T,ft,C,N):ot===0?ft:R(T,G,G+y,C,N)}},r}(),qm=function(){function r(s){return s.concat(tt(s.length))}return{double:r}}(),tl=function(){return function(r,s,n){var d=0,m=r,p=tt(m),g={newElement:I,release:y};function I(){var w;return d?(d-=1,w=p[d]):w=s(),w}function y(w){d===m&&(p=qm.double(p),m*=2),n&&n(w),p[d]=w,d+=1}return g}}(),Xm=function(){function r(){return{addedLength:0,percents:Z("float32",Aa()),lengths:Z("float32",Aa())}}return tl(8,r)}(),Zm=function(){function r(){return{lengths:[],totalLength:0}}function s(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)Xm.release(n.lengths[d]);n.lengths.length=0}return tl(8,r,s)}();function NE(){var r=Math;function s(x,O,P,R,U,L){var k=x*R+O*U+P*L-U*R-L*x-P*O;return k>-.001&&k<.001}function n(x,O,P,R,U,L,k,T,C){if(P===0&&L===0&&C===0)return s(x,O,R,U,k,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(U-O,2)+r.pow(L-P,2)),$=r.sqrt(r.pow(k-x,2)+r.pow(T-O,2)+r.pow(C-P,2)),G=r.sqrt(r.pow(k-R,2)+r.pow(T-U,2)+r.pow(C-L,2)),q;return N>$?N>G?q=N-$-G:q=G-$-N:G>$?q=G-$-N:q=$-N-G,q>-1e-4&&q<1e-4}var d=function(){return function(x,O,P,R){var U=Aa(),L,k,T,C,N,$=0,G,q=[],it=[],Tt=Xm.newElement();for(T=P.length,L=0;L<U;L+=1){for(N=L/(U-1),G=0,k=0;k<T;k+=1)C=Ut(1-N,3)*x[k]+3*Ut(1-N,2)*N*P[k]+3*(1-N)*Ut(N,2)*R[k]+Ut(N,3)*O[k],q[k]=C,it[k]!==null&&(G+=Ut(q[k]-it[k],2)),it[k]=q[k];G&&(G=Ot(G),$+=G),Tt.percents[L]=N,Tt.lengths[L]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=Zm.newElement(),P=x.c,R=x.v,U=x.o,L=x.i,k,T=x._length,C=O.lengths,N=0;for(k=0;k<T-1;k+=1)C[k]=d(R[k],R[k+1],U[k],L[k+1]),N+=C[k].addedLength;return P&&T&&(C[k]=d(R[k],R[0],U[k],L[0]),N+=C[k].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,P,R,U){var L=(O[0]+"_"+O[1]+"_"+P[0]+"_"+P[1]+"_"+R[0]+"_"+R[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!x[L]){var k=Aa(),T,C,N,$,G,q=0,it,Tt,ft=null;O.length===2&&(O[0]!==P[0]||O[1]!==P[1])&&s(O[0],O[1],P[0],P[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],P[0],P[1],P[0]+U[0],P[1]+U[1])&&(k=2);var ot=new p(k);for(N=R.length,T=0;T<k;T+=1){for(Tt=tt(N),G=T/(k-1),it=0,C=0;C<N;C+=1)$=Ut(1-G,3)*O[C]+3*Ut(1-G,2)*G*(O[C]+R[C])+3*(1-G)*Ut(G,2)*(P[C]+U[C])+Ut(G,3)*P[C],Tt[C]=$,ft!==null&&(it+=Ut(Tt[C]-ft[C],2));it=Ot(it),q+=it,ot.points[T]=new g(it,Tt),ft=Tt}ot.segmentLength=q,x[L]=ot}return x[L]}}();function y(x,O){var P=O.percents,R=O.lengths,U=P.length,L=ae((U-1)*x),k=x*O.addedLength,T=0;if(L===U-1||L===0||k===R[L])return P[L];for(var C=R[L]>k?-1:1,N=!0;N;)if(R[L]<=k&&R[L+1]>k?(T=(k-R[L])/(R[L+1]-R[L]),N=!1):L+=C,L<0||L>=U-1){if(L===U-1)return P[L];N=!1}return P[L]+(P[L+1]-P[L])*T}function w(x,O,P,R,U,L){var k=y(U,L),T=1-k,C=r.round((T*T*T*x[0]+(k*T*T+T*k*T+T*T*k)*P[0]+(k*k*T+T*k*k+k*T*k)*R[0]+k*k*k*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(k*T*T+T*k*T+T*T*k)*P[1]+(k*k*T+T*k*k+k*T*k)*R[1]+k*k*k*O[1])*1e3)/1e3;return[C,N]}var M=Z("float32",8);function K(x,O,P,R,U,L,k){U<0?U=0:U>1&&(U=1);var T=y(U,k);L=L>1?1:L;var C=y(L,k),N,$=x.length,G=1-T,q=1-C,it=G*G*G,Tt=T*G*G*3,ft=T*T*G*3,ot=T*T*T,St=G*G*q,pt=T*G*q+G*T*q+G*G*C,rt=T*T*q+G*T*C+T*G*C,_=T*T*C,D=G*q*q,v=T*q*q+G*C*q+G*q*C,E=T*C*q+G*C*C+T*q*C,j=T*C*C,z=q*q*q,ct=C*q*q+q*C*q+q*q*C,gt=C*C*q+q*C*C+C*q*C,xt=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*x[N]+Tt*P[N]+ft*R[N]+ot*O[N])*1e3)/1e3,M[N*4+1]=r.round((St*x[N]+pt*P[N]+rt*R[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((D*x[N]+v*P[N]+E*R[N]+j*O[N])*1e3)/1e3,M[N*4+3]=r.round((z*x[N]+ct*P[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:K,getPointInSegment:w,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:n}}var Xr=NE(),Oo=e,Qm=Math.abs;function Jm(r,s){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var m=s.lastIndex,p=m,g=this.keyframes.length-1,I=!0,y,w,M;I;){if(y=this.keyframes[p],w=this.keyframes[p+1],p===g-1&&r>=w.t-n){y.h&&(y=w),m=0;break}if(w.t-n>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var K,x,O,P,R,U,L=w.t-n,k=y.t-n,T;if(y.to){M.bezierData||(M.bezierData=Xr.buildBezierData(y.s,w.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<k){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,K=0;K<x;K+=1)d[K]=C.points[N].point[K]}else{M.__fnct?U=M.__fnct:(U=_a.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=U),O=U((r-k)/(L-k));var $=C.segmentLength*O,G,q=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,P=C.points.length;I;){if(q+=C.points[R].partialLength,$===0||O===0||R===C.points.length-1){for(x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K];break}else if($>=q&&$<q+C.points[R+1].partialLength){for(G=($-q)/C.points[R+1].partialLength,x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K]+(C.points[R+1].point[K]-C.points[R].point[K])*G;break}R<P-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=q-C.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,Tt,ft,ot,St;if(g=y.s.length,T=w.s||y.e,this.sh&&y.h!==1)if(r>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=k)d[0]=y.s[0],d[1]=y.s[1],d[2]=y.s[2];else{var pt=tu(y.s),rt=tu(T),_=(r-k)/(L-k);ME(d,LE(pt,rt,_))}else for(p=0;p<g;p+=1)y.h!==1&&(r>=L?O=1:r<k?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?U=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],Tt=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],ot=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],U=_a.getBezierEasing(it,Tt,ft,ot).get,M.__fnct[p]=U)):M.__fnct?U=M.__fnct:(it=y.o.x,Tt=y.o.y,ft=y.i.x,ot=y.i.y,U=_a.getBezierEasing(it,Tt,ft,ot).get,y.keyframeMetadata=U),O=U((r-k)/(L-k)))),T=w.s||y.e,St=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return s.lastIndex=m,d}function LE(r,s,n){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],y=s[0],w=s[1],M=s[2],K=s[3],x,O,P,R,U;return O=m*y+p*w+g*M+I*K,O<0&&(O=-O,y=-y,w=-w,M=-M,K=-K),1-O>1e-6?(x=Math.acos(O),P=Math.sin(x),R=Math.sin((1-n)*x)/P,U=Math.sin(n*x)/P):(R=1-n,U=n),d[0]=R*m+U*y,d[1]=R*p+U*w,d[2]=R*g+U*M,d[3]=R*I+U*K,d}function ME(r,s){var n=s[0],d=s[1],m=s[2],p=s[3],g=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),y=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=g/kt,r[1]=I/kt,r[2]=y/kt}function tu(r){var s=r[0]*kt,n=r[1]*kt,d=r[2]*kt,m=Math.cos(s/2),p=Math.cos(n/2),g=Math.cos(d/2),I=Math.sin(s/2),y=Math.sin(n/2),w=Math.sin(d/2),M=m*p*g-I*y*w,K=I*y*g+m*p*w,x=I*p*g+m*y*w,O=m*y*g-I*p*w;return[K,x,O,M]}function eu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Oo&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function el(r){var s;if(this.propType==="unidimensional")s=r*this.mult,Qm(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)s=r[n]*this.mult,Qm(this.v[n]-s)>1e-5&&(this.v[n]=s,this._mdf=!0),n+=1}function rl(){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,n=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function il(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function OE(r,s,n,d){this.propType="unidimensional",this.mult=n||1,this.data=s,this.v=n?s.k*n:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.addEffect=il}function RE(r,s,n,d){this.propType="multidimensional",this.mult=n||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=Z("float32",p),this.pv=Z("float32",p),this.vel=Z("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=rl,this.setVValue=el,this.addEffect=il}function DE(r,s,n,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Oo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Oo,this.pv=Oo,this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.interpolateValue=Jm,this.effectsSequence=[eu.bind(this)],this.addEffect=il}function PE(r,s,n,d){this.propType="multidimensional";var m,p=s.k.length,g,I,y,w;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&&(g=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,w=s.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&Xr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+y[0],g[1]+y[1])&&Xr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+w[0],I[1]+w[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&Xr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+y[0],g[1]+y[1],g[2]+y[2])&&Xr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+w[0],I[1]+w[1],I[2]+w[2]))&&(s.k[m].to=null,s.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&y[0]===0&&y[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===I[2]&&y[2]===0&&w[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=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=rl,this.setVValue=el,this.interpolateValue=Jm,this.frameId=-1;var M=s.k[0].s.length;for(this.v=Z("float32",M),this.pv=Z("float32",M),m=0;m<M;m+=1)this.v[m]=Oo,this.pv[m]=Oo;this._caching={lastFrame:Oo,lastIndex:0,value:Z("float32",M)},this.addEffect=il}var lt=function(){function r(n,d,m,p,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new OE(n,d,p,g);else if(typeof d.k[0]=="number")I=new RE(n,d,p,g);else switch(m){case 0:I=new DE(n,d,p,g);break;case 1:I=new PE(n,d,p,g);break;default:break}return I.effectsSequence.length&&g.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,n=this.dynamicProperties.length;for(s=0;s<n;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 Ro=function(){function r(){return Z("float32",2)}return tl(8,r)}();function gi(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}gi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var n=0;n<s;)this.v[n]=Ro.newElement(),this.o[n]=Ro.newElement(),this.i[n]=Ro.newElement(),n+=1},gi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},gi.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},gi.prototype.setXYAt=function(r,s,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Ro.newElement()),p[d][0]=r,p[d][1]=s},gi.prototype.setTripleAt=function(r,s,n,d,m,p,g,I){this.setXYAt(r,s,"v",g,I),this.setXYAt(n,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},gi.prototype.reverse=function(){var r=new gi;r.setPathData(this.c,this._length);var s=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},gi.prototype.length=function(){return this._length};var Re=function(){function r(){return new gi}function s(m){var p=m._length,g;for(g=0;g<p;g+=1)Ro.release(m.v[g]),Ro.release(m.i[g]),Ro.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=tl(4,r,s);return d.clone=n,d}();function Oc(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}Oc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Oc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)Re.release(this.shapes[r]);this._length=0};var Cs=function(){var r={newShapeCollection:m,release:p},s=0,n=4,d=tt(n);function m(){var g;return s?(s-=1,g=d[s]):g=new Oc,g}function p(g){var I,y=g._length;for(I=0;I<y;I+=1)Re.release(g.shapes[I]);g._length=0,s===n&&(d=qm.double(d),n*=2),d[s]=g,s+=1}return r}(),ol=function(){var r=-999999;function s(L,k,T){var C=T.lastIndex,N,$,G,q,it,Tt,ft,ot,St,pt=this.keyframes;if(L<pt[0].t-this.offsetTime)N=pt[0].s[0],G=!0,C=0;else if(L>=pt[pt.length-1].t-this.offsetTime)N=pt[pt.length-1].s?pt[pt.length-1].s[0]:pt[pt.length-2].e[0],G=!0;else{for(var rt=C,_=pt.length-1,D=!0,v,E,j;D&&(v=pt[rt],E=pt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:D=!1;if(j=this.keyframesMetadata[rt]||{},G=v.h===1,C=rt,!G){if(L>=E.t-this.offsetTime)ot=1;else if(L<v.t-this.offsetTime)ot=0;else{var z;j.__fnct?z=j.__fnct:(z=_a.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,j.__fnct=z),ot=z((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=k._length,ft=N.i[0].length,T.lastIndex=C,q=0;q<Tt;q+=1)for(it=0;it<ft;it+=1)St=G?N.i[q][it]:N.i[q][it]+($.i[q][it]-N.i[q][it])*ot,k.i[q][it]=St,St=G?N.o[q][it]:N.o[q][it]+($.o[q][it]-N.o[q][it])*ot,k.o[q][it]=St,St=G?N.v[q][it]:N.v[q][it]+($.v[q][it]-N.v[q][it])*ot,k.v[q][it]=St}function n(){var L=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<k&&L<k||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 d(){this.paths=this.localShapeCollection}function m(L,k){if(L._length!==k._length||L.c!==k.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==k.v[T][0]||L.v[T][1]!==k.v[T][1]||L.o[T][0]!==k.o[T][0]||L.o[T][1]!==k.o[T][1]||L.i[T][0]!==k.i[T][0]||L.i[T][1]!==k.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=Re.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){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 k,T=this.effectsSequence.length;for(k=0;k<T;k+=1)L=this.effectsSequence[k](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,k,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=k,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?k.pt.k:k.ks.k;this.v=Re.clone(C),this.pv=Re.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=y;function w(L,k,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?k.pt.k:k.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=Re.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=Re.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=s,w.prototype.setVValue=p,w.prototype.addEffect=y;var M=function(){var L=oe;function k(T,C){this.v=Re.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Cs.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 k.prototype={reset:d,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,G=this.s.v[1]/2,q=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-G,it.v[1][0]=q?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+G,it.v[3][0]=q?C-$:C+$,it.v[3][1]=N,it.i[0][0]=q?C-$*L:C+$*L,it.i[0][1]=N-G,it.i[1][0]=q?C+$:C-$,it.i[1][1]=N-G*L,it.i[2][0]=q?C+$*L:C-$*L,it.i[2][1]=N+G,it.i[3][0]=q?C-$:C+$,it.i[3][1]=N+G*L,it.o[0][0]=q?C+$*L:C-$*L,it.o[0][1]=N-G,it.o[1][0]=q?C+$:C-$,it.o[1][1]=N+G*L,it.o[2][0]=q?C-$*L:C+$*L,it.o[2][1]=N+G,it.o[3][0]=q?C-$:C+$,it.o[3][1]=N-G*L}},A([Ne],k),k}(),K=function(){function L(k,T){this.v=Re.newElement(),this.v.setPathData(!0,0),this.elem=k,this.comp=k.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),T.sy===1?(this.ir=lt.getProp(k,T.ir,0,0,this),this.is=lt.getProp(k,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(k,T.pt,0,0,this),this.p=lt.getProp(k,T.p,1,0,this),this.r=lt.getProp(k,T.r,0,kt,this),this.or=lt.getProp(k,T.or,0,0,this),this.os=lt.getProp(k,T.os,0,.01,this),this.localShapeCollection=Cs.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:d,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,G=this.ir.v,q=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ft=2*Math.PI*G/(T*2),ot,St,pt,rt,_=-Math.PI/2;_+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,ot=0;ot<T;ot+=1){St=N?$:G,pt=N?q:it,rt=N?Tt:ft;var v=St*Math.cos(_),E=St*Math.sin(_),j=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),z=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-j*rt*pt*D,E-z*rt*pt*D,v+j*rt*pt*D,E+z*rt*pt*D,ot,!0),N=!N,_+=C*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,G=2*Math.PI*N/(T*4),q,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,q=0;q<T;q+=1){var ft=N*Math.cos(it),ot=N*Math.sin(it),St=ft===0&&ot===0?0:ot/Math.sqrt(ft*ft+ot*ot),pt=ft===0&&ot===0?0:-ft/Math.sqrt(ft*ft+ot*ot);ft+=+this.p.v[0],ot+=+this.p.v[1],this.v.setTripleAt(ft,ot,ft-St*G*$*Tt,ot-pt*G*$*Tt,ft+St*G*$*Tt,ot+pt*G*$*Tt,q,!0),it+=C*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Ne],L),L}(),x=function(){function L(k,T){this.v=Re.newElement(),this.v.c=!0,this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=k,this.comp=k.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),this.p=lt.getProp(k,T.p,1,0,this),this.s=lt.getProp(k,T.s,1,0,this),this.r=lt.getProp(k,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,G=jt(N,$,this.r.v),q=G*(1-oe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+G,T+N,C-$+q,0,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-q,T+N,C+$-G,1,!0),G!==0?(this.v.setTripleAt(T+N-G,C+$,T+N-G,C+$,T+N-q,C+$,2,!0),this.v.setTripleAt(T-N+G,C+$,T-N+q,C+$,T-N+G,C+$,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-G,T-N,C+$-q,4,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+q,T-N,C-$+G,5,!0),this.v.setTripleAt(T-N+G,C-$,T-N+G,C-$,T-N+q,C-$,6,!0),this.v.setTripleAt(T+N-G,C-$,T+N-q,C-$,T+N-G,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+q,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+q,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+q,T+N,C-$+G,0,!0),G!==0?(this.v.setTripleAt(T+N-G,C-$,T+N-G,C-$,T+N-q,C-$,1,!0),this.v.setTripleAt(T-N+G,C-$,T-N+q,C-$,T-N+G,C-$,2,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+G,T-N,C-$+q,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-q,T-N,C+$-G,4,!0),this.v.setTripleAt(T-N+G,C+$,T-N+G,C+$,T-N+q,C+$,5,!0),this.v.setTripleAt(T+N-G,C+$,T+N-q,C+$,T+N-G,C+$,6,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-G,T+N,C+$-q,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+q,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-q,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-q,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:d},A([Ne],L),L}();function O(L,k,T){var C;if(T===3||T===4){var N=T===3?k.pt:k.ks,$=N.k;$.length?C=new w(L,k,T):C=new I(L,k,T)}else T===5?C=new x(L,k):T===6?C=new M(L,k):T===7&&(C=new K(L,k));return C.k&&L.addDynamicProperty(C),C}function P(){return I}function R(){return w}var U={};return U.getShapeProp=O,U.getConstructorFunction=P,U.getKeyframedConstructorFunction=R,U}();var De=function(){var r=Math.cos,s=Math.sin,n=Math.tan,d=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(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function y(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function w(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function K(v,E){var j=r(E),z=s(E);return this._t(j,z,0,0,-z,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(j,-z,0,0,z,j,0,0,0,0,1,0,0,0,0,1)}function x(v,E,j){return!j&&j!==0&&(j=1),v===1&&E===1&&j===1?this:this._t(v,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(v,E,j,z,ct,gt,xt,Pt,Ft,ue,rr,Qr,ir,Le,ur,Yt){return this.props[0]=v,this.props[1]=E,this.props[2]=j,this.props[3]=z,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Pt,this.props[8]=Ft,this.props[9]=ue,this.props[10]=rr,this.props[11]=Qr,this.props[12]=ir,this.props[13]=Le,this.props[14]=ur,this.props[15]=Yt,this}function P(v,E,j){return j=j||0,v!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,j,1):this}function R(v,E,j,z,ct,gt,xt,Pt,Ft,ue,rr,Qr,ir,Le,ur,Yt){var mt=this.props;if(v===1&&E===0&&j===0&&z===0&&ct===0&&gt===1&&xt===0&&Pt===0&&Ft===0&&ue===0&&rr===1&&Qr===0)return mt[12]=mt[12]*v+mt[15]*ir,mt[13]=mt[13]*gt+mt[15]*Le,mt[14]=mt[14]*rr+mt[15]*ur,mt[15]*=Yt,this._identityCalculated=!1,this;var Ei=mt[0],to=mt[1],Ti=mt[2],Jr=mt[3],xi=mt[4],Ai=mt[5],or=mt[6],eo=mt[7],ro=mt[8],Dr=mt[9],io=mt[10],Pr=mt[11],$o=mt[12],ml=mt[13],ul=mt[14],fl=mt[15];return mt[0]=Ei*v+to*ct+Ti*Ft+Jr*ir,mt[1]=Ei*E+to*gt+Ti*ue+Jr*Le,mt[2]=Ei*j+to*xt+Ti*rr+Jr*ur,mt[3]=Ei*z+to*Pt+Ti*Qr+Jr*Yt,mt[4]=xi*v+Ai*ct+or*Ft+eo*ir,mt[5]=xi*E+Ai*gt+or*ue+eo*Le,mt[6]=xi*j+Ai*xt+or*rr+eo*ur,mt[7]=xi*z+Ai*Pt+or*Qr+eo*Yt,mt[8]=ro*v+Dr*ct+io*Ft+Pr*ir,mt[9]=ro*E+Dr*gt+io*ue+Pr*Le,mt[10]=ro*j+Dr*xt+io*rr+Pr*ur,mt[11]=ro*z+Dr*Pt+io*Qr+Pr*Yt,mt[12]=$o*v+ml*ct+ul*Ft+fl*ir,mt[13]=$o*E+ml*gt+ul*ue+fl*Le,mt[14]=$o*j+ml*xt+ul*rr+fl*ur,mt[15]=$o*z+ml*Pt+ul*Qr+fl*Yt,this._identityCalculated=!1,this}function U(v){var E=v.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 k(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function C(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,j){return{x:v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(v,E,j){return v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function G(v,E,j){return v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function q(v,E,j){return v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,j=-this.props[1]/v,z=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new De;return Pt.props[0]=E,Pt.props[1]=j,Pt.props[4]=z,Pt.props[5]=ct,Pt.props[12]=gt,Pt.props[13]=xt,Pt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ft(v){var E,j=v.length,z=[];for(E=0;E<j;E+=1)z[E]=Tt(v[E]);return z}function ot(v,E,j){var z=Z("float32",6);if(this.isIdentity())z[0]=v[0],z[1]=v[1],z[2]=E[0],z[3]=E[1],z[4]=j[0],z[5]=j[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Pt=this.props[5],Ft=this.props[12],ue=this.props[13];z[0]=v[0]*ct+v[1]*xt+Ft,z[1]=v[0]*gt+v[1]*Pt+ue,z[2]=E[0]*ct+E[1]*xt+Ft,z[3]=E[0]*gt+E[1]*Pt+ue,z[4]=j[0]*ct+j[1]*xt+Ft,z[5]=j[0]*gt+j[1]*Pt+ue}return z}function St(v,E,j){var z;return this.isIdentity()?z=[v,E,j]:z=[v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],z}function pt(v,E){if(this.isIdentity())return v+","+E;var j=this.props;return Math.round((v*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((v*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var v=0,E=this.props,j="matrix3d(",z=1e4;v<16;)j+=d(E[v]*z)/z,j+=v===15?")":",",v+=1;return j}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=_(v[0]),j=_(v[1]),z=_(v[4]),ct=_(v[5]),gt=_(v[12]),xt=_(v[13]);return"matrix("+E+","+j+","+z+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=K,this.shear=w,this.scale=x,this.setTransform=O,this.translate=P,this.transform=R,this.multiply=U,this.applyToPoint=N,this.applyToX=$,this.applyToY=G,this.applyToZ=q,this.applyToPointArray=St,this.applyToTriplePoints=ot,this.applyToPointStringified=pt,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=C,this.equals=k,this.inversePoints=ft,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function sl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(n){return typeof n}:sl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sl(r)}var Gt={},al="__[STANDALONE]__",ru="__[ANIMATIONDATA]__",iu="";function FE(r){c(r)}function ou(){al===!0?me.searchAnimations(ru,al,iu):me.searchAnimations()}function $E(r){EE(r)}function VE(r){AE(r)}function zE(r){return al===!0&&(r.animationData=JSON.parse(ru)),me.loadAnimation(r)}function BE(r){if(typeof r=="string")switch(r){case"high":Qn(200);break;default:case"medium":Qn(50);break;case"low":Qn(10);break}else!isNaN(r)&&r>1&&Qn(r);Aa()>=50?Ge(!1):Ge(!0)}function HE(){return typeof navigator<"u"}function UE(r,s){r==="expressions"&&xE(s)}function GE(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return ol;case"matrix":return De;default:return null}}Gt.play=me.play,Gt.pause=me.pause,Gt.setLocationHref=FE,Gt.togglePause=me.togglePause,Gt.setSpeed=me.setSpeed,Gt.setDirection=me.setDirection,Gt.stop=me.stop,Gt.searchAnimations=ou,Gt.registerAnimation=me.registerAnimation,Gt.loadAnimation=zE,Gt.setSubframeRendering=$E,Gt.resize=me.resize,Gt.goToAndStop=me.goToAndStop,Gt.destroy=me.destroy,Gt.setQuality=BE,Gt.inBrowser=HE,Gt.installPlugin=UE,Gt.freeze=me.freeze,Gt.unfreeze=me.unfreeze,Gt.setVolume=me.setVolume,Gt.mute=me.mute,Gt.unmute=me.unmute,Gt.getRegisteredAnimations=me.getRegisteredAnimations,Gt.useWebWorker=i,Gt.setIDPrefix=VE,Gt.__getFactory=GE,Gt.version="5.12.2";function KE(){document.readyState==="complete"&&(clearInterval(jE),ou())}function WE(r){for(var s=su.split("&"),n=0;n<s.length;n+=1){var d=s[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var su="";if(al){var au=document.getElementsByTagName("script"),YE=au.length-1,nu=au[YE]||{src:""};su=nu.src?nu.src.replace(/^[^\?]+\??/,""):"",iu=WE("renderer")}var jE=setInterval(KE,100);try{!((typeof an>"u"?"undefined":sl(an))==="object"&&typeof Kl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Gt)}catch{}var ji=function(){var r={},s={};r.registerModifier=n,r.getModifier=d;function n(m,p){s[m]||(s[m]=p)}function d(m,p,g){return new s[m](p,g)}return r}();function Ar(){}Ar.prototype.initModifierProperties=function(){},Ar.prototype.addShapeToModifier=function(){},Ar.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Cs.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Ar.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)},Ar.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ne],Ar);function Rr(){}A([Ar],Rr),Rr.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},Rr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Rr.prototype.calculateShapeEdges=function(r,s,n,d,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 g=[],I,y=p.length,w;for(I=0;I<y;I+=1)if(w=p[I],!(w.e*m<d||w.s*m>d+n)){var M,K;w.s*m<=d?M=0:M=(w.s*m-d)/n,w.e*m>=d+n?K=1:K=(w.e*m-d)/n,g.push([M,K])}return g.length||g.push([0,0]),g},Rr.prototype.releasePathsData=function(r){var s,n=r.length;for(s=0;s<n;s+=1)Zm.release(r[s]);return r.length=0,r},Rr.prototype.processShapes=function(r){var s,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,s>n){var m=s;s=n,n=m}s=Math.round(s*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=s,this.eValue=n}else s=this.sValue,n=this.eValue;var p,g,I=this.shapes.length,y,w,M,K,x,O=0;if(n===s)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&s===0||n===0&&s===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var P=[],R,U;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,w=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),y=0;y<w;y+=1)K=Xr.getSegmentsLength(p.shapes[y]),M.push(K),x+=K.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=s,k=n,T=0,C;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(U=R.localShapeCollection,U.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):C=[[L,k]],w=C.length,y=0;y<w;y+=1){L=C[y][0],k=C[y][1],P.length=0,k<=1?P.push({s:R.totalShapeLength*L,e:R.totalShapeLength*k}):L>=1?P.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(k-1)}):(P.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),P.push({s:0,e:R.totalShapeLength*(k-1)}));var N=this.addShapes(R,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var G=N.pop();this.addPaths(N,U),N=this.addShapes(R,P[1],G)}else this.addPaths(N,U),N=this.addShapes(R,P[1])}this.addPaths(N,U)}}R.shape.paths=U}}},Rr.prototype.addPaths=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)s.addShape(r[n])},Rr.prototype.addSegment=function(r,s,n,d,m,p,g){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Rr.prototype.addSegmentFromArray=function(r,s,n,d){s.setXYAt(r[1],r[5],"o",n),s.setXYAt(r[2],r[6],"i",n+1),d&&s.setXYAt(r[0],r[4],"v",n),s.setXYAt(r[3],r[7],"v",n+1)},Rr.prototype.addShapes=function(r,s,n){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,y,w=0,M,K,x,O,P=[],R,U=!0;for(n?(K=n._length,R=n._length):(n=Re.newElement(),K=0,R=0),P.push(n),p=0;p<g;p+=1){for(x=d[p].lengths,n.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],w+M.addedLength<s.s)w+=M.addedLength,n.c=!1;else if(w>s.e){n.c=!1;break}else s.s<=w&&s.e>=w+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,K,U),U=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-w)/M.addedLength,(s.e-w)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,n,K,U),U=!1,n.c=!1),w+=M.addedLength,K+=1;if(m[p].c&&x.length){if(M=x[I-1],w<=s.e){var L=x[I-1].addedLength;s.s<=w&&s.e>=w+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,K,U),U=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-w)/L,(s.e-w)/L,x[I-1]),this.addSegmentFromArray(O,n,K,U),U=!1,n.c=!1)}else n.c=!1;w+=M.addedLength,K+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),w>s.e)break;p<g-1&&(n=Re.newElement(),U=!0,P.push(n),K=0)}return P};function ka(){}A([Ar],ka),ka.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},ka.prototype.processPath=function(r,s){var n=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=Re.newElement();g.c=r.c;var I,y,w,M,K,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,y=r.v[p][1]+(d[1]-r.v[p][1])*n,w=r.o[p][0]+(d[0]-r.o[p][0])*-n,M=r.o[p][1]+(d[1]-r.o[p][1])*-n,K=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,g.setTripleAt(I,y,w,M,K,x,p);return g},ka.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,y;for(n=0;n<d;n+=1){if(I=this.shapes[n],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],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Rc=function(){var r=[0,0];function s(y){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,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 n(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var w;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,K;if(w=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)/w,0),K=this.p.getValueAtTime(this.p.keyframes[0].t/w,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/w,0),K=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(M=this.p.pv,K=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],K=[];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)/w,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/w,0),K[0]=x.getValueAtTime(x.keyframes[0].t/w,0),K[1]=O.getValueAtTime(O.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/w,0),K[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),K[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/w,0)):(M=[x.pv,O.pv],K[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),K[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/w,O.offsetTime))}else K=r,M=K;this.v.rotate(-Math.atan2(M[1]-K[1],M[0]-K[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 d(){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 g(y,w,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=w,this.v=new De,this.pre=new De,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),w.p&&w.p.s?(this.px=lt.getProp(y,w.p.x,0,0,this),this.py=lt.getProp(y,w.p.y,0,0,this),w.p.z&&(this.pz=lt.getProp(y,w.p.z,0,0,this))):this.p=lt.getProp(y,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=lt.getProp(y,w.rx,0,kt,this),this.ry=lt.getProp(y,w.ry,0,kt,this),this.rz=lt.getProp(y,w.rz,0,kt,this),w.or.k[0].ti){var K,x=w.or.k.length;for(K=0;K<x;K+=1)w.or.k[K].to=null,w.or.k[K].ti=null}this.or=lt.getProp(y,w.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(y,w.r||{k:0},0,kt,this);w.sk&&(this.sk=lt.getProp(y,w.sk,0,kt,this),this.sa=lt.getProp(y,w.sa,0,kt,this)),this.a=lt.getProp(y,w.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=lt.getProp(y,w.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:n,precalculateMatrix:d,autoOrient:m},A([Ne],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,w,M){return new g(y,w,M)}return{getTransformProperty:I}}();function Zr(){}A([Ar],Zr),Zr.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=Rc.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 De,this.rMatrix=new De,this.sMatrix=new De,this.tMatrix=new De,this.matrix=new De},Zr.prototype.applyTransforms=function(r,s,n,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),y=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*g*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/y:y),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Zr.prototype.init=function(r,s,n,d){for(this.elem=r,this.arr=s,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[n]);n>0;)n-=1,this._elements.unshift(s[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Zr.prototype.resetElements=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Zr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Zr.prototype.changeGroupRender=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=s,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,s)},Zr.prototype.processShapes=function(r){var s,n,d,m,p,g=!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(),g=!0}p=0;var w;for(d=0;d<=this._groups.length-1;d+=1){if(w=p<I,this._groups[d]._render=w,this.changeGroupRender(this._groups[d].it,w),!w){var M=this.elemsData[d].it,K=M[M.length-1];K.transform.op.v!==0?(K.transform.op._mdf=!0,K.transform.op.v=0):K.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,P=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,U=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var k=0;if(x>0){for(;k<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),k+=O)}else if(x<0){for(;k>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),k-=O)}d=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[d].it,n=s[s.length-1].transform.mProps.v.props,C=n.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)*(d/(this._currentCopies-1)),k!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[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(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<C;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)n[T]=this.matrix.props[T];k+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,n=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,d+=m;return g},Zr.prototype.addShape=function(){};function wa(){}A([Ar],wa),wa.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},wa.prototype.processPath=function(r,s){var n=Re.newElement();n.c=r.c;var d,m=r._length,p,g,I,y,w,M,K=0,x,O,P,R,U,L;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],K),K+=1):(d===0?y=r.v[m-1]:y=r.v[d-1],w=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=w?Math.min(w/2,s)/w:0,U=p[0]+(y[0]-p[0])*M,x=U,L=p[1]-(p[1]-y[1])*M,O=L,P=x-(x-p[0])*oe,R=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,U,L,K),K+=1,d===m-1?y=r.v[0]:y=r.v[d+1],w=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=w?Math.min(w/2,s)/w:0,P=p[0]+(y[0]-p[0])*M,x=P,R=p[1]+(y[1]-p[1])*M,O=R,U=x-(x-p[0])*oe,L=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,U,L,K),K+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],K),K+=1);return n},wa.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,y;for(n=0;n<d;n+=1){if(I=this.shapes[n],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],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Dc(r){return Math.abs(r)<=1e-5}function lu(r,s,n){return r*(1-n)+s*n}function qi(r,s,n){return[lu(r[0],s[0],n),lu(r[1],s[1],n)]}function qE(r,s,n){if(r===0)return[];var d=s*s-4*r*n;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function du(r,s,n,d){return[-r+3*s-3*n+d,3*r-6*s+3*n,-3*r+3*s,r]}function cu(r){return new ne(r,r,r,r,!1)}function ne(r,s,n,d,m){m&&ks(r,s)&&(s=qi(r,d,1/3)),m&&ks(n,d)&&(n=qi(r,d,2/3));var p=du(r[0],s[0],n[0],d[0]),g=du(r[1],s[1],n[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,s,n,d]}ne.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]]},ne.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]]},ne.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},ne.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},ne.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Dc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Dc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},ne.prototype.split=function(r){if(r<=0)return[cu(this.points[0]),this];if(r>=1)return[this,cu(this.points[this.points.length-1])];var s=qi(this.points[0],this.points[1],r),n=qi(this.points[1],this.points[2],r),d=qi(this.points[2],this.points[3],r),m=qi(s,n,r),p=qi(n,d,r),g=qi(m,p,r);return[new ne(this.points[0],s,m,g,!0),new ne(g,p,d,this.points[3],!0)]};function hu(r,s){var n=r.points[0][s],d=r.points[r.points.length-1][s];if(n>d){var m=d;d=n,n=m}for(var p=qE(3*r.a[s],2*r.b[s],r.c[s]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[s];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}ne.prototype.bounds=function(){return{x:hu(this,0),y:hu(this,1)}},ne.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 ll(r,s,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+n)/2,t1:s,t2:n}}function pu(r){var s=r.bez.split(.5);return[ll(s[0],r.t1,r.t),ll(s[1],r.t,r.t2)]}function XE(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 Na(r,s,n,d,m,p){if(XE(r,s)){if(n>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var g=pu(r),I=pu(s);Na(g[0],I[0],n+1,d,m,p),Na(g[0],I[1],n+1,d,m,p),Na(g[1],I[0],n+1,d,m,p),Na(g[1],I[1],n+1,d,m,p)}}ne.prototype.intersections=function(r,s,n){s===void 0&&(s=2),n===void 0&&(n=7);var d=[];return Na(ll(this,0,1),ll(r,0,1),0,s,d,n),d},ne.shapeSegment=function(r,s){var n=(s+1)%r.length();return new ne(r.v[s],r.o[s],r.i[n],r.v[n],!0)},ne.shapeSegmentInverted=function(r,s){var n=(s+1)%r.length();return new ne(r.v[n],r.i[n],r.o[s],r.v[s],!0)};function Pc(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 dl(r,s,n,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],g=[n[0],n[1],1],I=[d[0],d[1],1],y=Pc(Pc(m,p),Pc(g,I));return Dc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function _s(r,s,n){return[r[0]+Math.cos(s)*n,r[1]-Math.sin(s)*n]}function Fc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ks(r,s){return nl(r[0],s[0])&&nl(r[1],s[1])}function La(){}A([Ar],La),La.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,n,d,m,p,g){var I=n-Math.PI/2,y=n+Math.PI/2,w=s[0]+Math.cos(n)*d*m,M=s[1]-Math.sin(n)*d*m;r.setTripleAt(w,M,w+Math.cos(I)*p,M-Math.sin(I)*p,w+Math.cos(y)*g,M-Math.sin(y)*g,r.length())}function ZE(r,s){var n=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function QE(r,s){var n=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[n],p=r.v[d],g=ZE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function uu(r,s,n,d,m,p,g){var I=QE(s,n),y=s.v[n%s._length],w=s.v[n===0?s._length-1:n-1],M=s.v[(n+1)%s._length],K=p===2?Math.sqrt(Math.pow(y[0]-w[0],2)+Math.pow(y[1]-w[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[n%s._length],I,g,d,x/((m+1)*2),K/((m+1)*2),p)}function JE(r,s,n,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+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,w=s.normalAngle(I),M=s.point(I);mu(r,M,w,p,n,y/((d+1)*2),y/((d+1)*2),m),p=-p}return p}La.prototype.processPath=function(r,s,n,d){var m=r._length,p=Re.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=ne.shapeSegment(r,0);uu(p,r,0,s,n,d,g);for(var y=0;y<m;y+=1)g=JE(p,I,s,n,d,-g),y===m-1&&!r.c?I=null:I=ne.shapeSegment(r,(y+1)%m),uu(p,r,y+1,s,n,d,g);return p},La.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(g!==0){var w,M;for(n=0;n<d;n+=1){if(w=this.shapes[n],M=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],g,I,y));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function $c(r,s,n){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[_s(r,d,n),_s(s,d,n)]}function ws(r,s){var n,d,m,p,g,I,y;y=$c(r.points[0],r.points[1],s),n=y[0],d=y[1],y=$c(r.points[1],r.points[2],s),m=y[0],p=y[1],y=$c(r.points[2],r.points[3],s),g=y[0],I=y[1];var w=dl(n,d,m,p);w===null&&(w=d);var M=dl(g,I,m,p);return M===null&&(M=g),new ne(n,w,M,I)}function fu(r,s,n,d,m){var p=s.points[3],g=n.points[0];if(d===3||ks(p,g))return p;if(d===2){var I=-s.tangentAngle(1),y=-n.tangentAngle(0)+Math.PI,w=dl(p,_s(p,I+Math.PI/2,100),g,_s(g,I+Math.PI/2,100)),M=w?Fc(w,p):Fc(p,g)/2,K=_s(p,I,2*M*oe);return r.setXYAt(K[0],K[1],"o",r.length()-1),K=_s(g,y,2*M*oe),r.setTripleAt(g[0],g[1],g[0],g[1],K[0],K[1],r.length()),g}var x=ks(p,s.points[2])?s.points[0]:s.points[2],O=ks(g,n.points[1])?n.points[3]:n.points[1],P=dl(x,p,g,O);return P&&Fc(P,p)<m?(r.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],r.length()),P):p}function vu(r,s){var n=r.intersections(s);return n.length&&nl(n[0][0],1)&&n.shift(),n.length?n[0]:null}function gu(r,s){var n=r.slice(),d=s.slice(),m=vu(r[r.length-1],s[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=vu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[n,d]}function tT(r){for(var s,n=1;n<r.length;n+=1)s=gu(r[n-1],r[n]),r[n-1]=s[0],r[n]=s[1];return r.length>1&&(s=gu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function bu(r,s){var n=r.inflectionPoints(),d,m,p,g;if(n.length===0)return[ws(r,s)];if(n.length===1||nl(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[ws(d,s),ws(m,s)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),g=p[0],m=p[1],[ws(d,s),ws(g,s),ws(m,s)]}function Ma(){}A([Ar],Ma),Ma.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},Ma.prototype.processPath=function(r,s,n,d){var m=Re.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,y,w=[];for(g=0;g<p;g+=1)y=ne.shapeSegment(r,g),w.push(bu(y,s));if(!r.c)for(g=p-1;g>=0;g-=1)y=ne.shapeSegmentInverted(r,g),w.push(bu(y,s));w=tT(w);var M=null,K=null;for(g=0;g<w.length;g+=1){var x=w[g];for(K&&(M=fu(m,K,x[0],n,d)),K=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&ks(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 w.length&&fu(m,K,w[0][0],n,d),m},Ma.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(g!==0){var w,M;for(n=0;n<d;n+=1){if(w=this.shapes[n],M=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],g,y,I));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function yu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=s.length,p,g=0;g<m;g+=1)switch(p=s[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var Do=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.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 d=127988,m=917631,p=917601,g=917626,I=65039,y=8205,w=127462,M=127487,K=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var D=_.split(","),v,E=D.length,j=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&j.push(D[v]);return j.join(",")}function O(_,D){var v=b("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=b("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var j=E.offsetWidth;return E.style.fontFamily=x(_)+", "+D,{node:E,w:j,parent:v}}function P(){var _,D=this.fonts.length,v,E,j=D;for(_=0;_<D;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(v=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,v.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.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 R(_,D){var v=document.body&&D?"svg":"canvas",E,j=yu(_);if(v==="svg"){var z=At("text");z.style.fontSize="100px",z.setAttribute("font-family",_.fFamily),z.setAttribute("font-style",j.style),z.setAttribute("font-weight",j.weight),z.textContent="1",_.fClass?(z.style.fontFamily="inherit",z.setAttribute("class",_.fClass)):z.style.fontFamily=_.fFamily,D.appendChild(z),E=z}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function U(_,D){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=R(rr),rr.cache={}}),this.fonts=_.list;return}var v=_.list,E,j=v.length,z=j;for(E=0;E<j;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,z-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Pt=b("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Ft=b("link");Ft.setAttribute("f-forigin",v[E].fOrigin),Ft.setAttribute("f-origin",v[E].origin),Ft.type="text/css",Ft.rel="stylesheet",Ft.href=v[E].fPath,document.body.appendChild(Ft)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var ue=b("link");ue.setAttribute("f-forigin",v[E].fOrigin),ue.setAttribute("f-origin",v[E].origin),ue.setAttribute("rel","stylesheet"),ue.setAttribute("href",v[E].fPath),D.appendChild(ue)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}z===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var D,v=_.length,E,j=this.chars.length,z;for(D=0;D<v;D+=1){for(E=0,z=!1;E<j;)this.chars[E].style===_[D].style&&this.chars[E].fFamily===_[D].fFamily&&this.chars[E].ch===_[D].ch&&(z=!0),E+=1;z||(this.chars.push(_[D]),j+=1)}}}function k(_,D,v){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===D&&this.chars[E].fFamily===v)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: ",_,D,v)),s}function T(_,D,v){var E=this.getFontByName(D),j=_;if(!E.cache[j]){var z=E.helper;if(_===" "){var ct=z.measureText("|"+_+"|"),gt=z.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=z.measureText(_)/100}return E.cache[j]*v}function C(_){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===_)return this.fonts[D];D+=1}return this.fonts[0]}function N(_){var D=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(_,D){var v=_.toString(16)+D.toString(16);return K.indexOf(v)!==-1}function G(_){return _===y}function q(_){return _===I}function it(_){var D=N(_);return D>=w&&D<=M}function Tt(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return n.indexOf(_)!==-1}function ot(_,D){var v=N(_.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(_.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(_.substr(D,2))===m}function St(){this.isLoaded=!0}var pt=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)};pt.isModifier=$,pt.isZeroWidthJoiner=G,pt.isFlagEmoji=Tt,pt.isRegionalCode=it,pt.isCombinedCharacter=ft,pt.isRegionalFlag=ot,pt.isVariationSelector=q,pt.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:U,getCharData:k,getFontByName:C,measureText:T,checkLoadedFonts:P,setIsLoaded:St};return pt.prototype=rt,pt}();function Eu(r){this.animationData=r}Eu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function eT(r){return new Eu(r)}function cl(){}cl.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,n=this.renderableComponents.length;for(s=0;s<n;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 Vc=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 rT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function iT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function oT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function sT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function aT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function nT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function lT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function dT(){this.p={}}function Tu(r,s){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new Oa(n[d],s),this.effectElements.push(p)}function Oa(r,s){this.init(r,s)}A([Ne],Oa),Oa.prototype.getValue=Oa.prototype.iterateDynamicProperties,Oa.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new rT(p[n],s,this);break;case 1:m=new iT(p[n],s,this);break;case 2:m=new oT(p[n],s,this);break;case 3:m=new sT(p[n],s,this);break;case 4:case 7:m=new lT(p[n],s,this);break;case 10:m=new aT(p[n],s,this);break;case 11:m=new nT(p[n],s,this);break;case 5:m=new Tu(p[n],s,this);break;default:m=new dT(p[n],s,this);break}m&&this.effectElements.push(m)}};function Xi(){}Xi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,n=this.data.masksProperties.length;s<n;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Ym();if(s){var n=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),g=s("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(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=Vc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=s},initBaseData:function(s,n,d){this.globalData=n,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new Tu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Zi(){}Zi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function Qi(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,n)}Qi.prototype.prepareFrame=function(){},A([cl,Xi,Zi],Qi),Qi.prototype.getBaseElement=function(){return null},Qi.prototype.renderFrame=function(){},Qi.prototype.destroy=function(){},Qi.prototype.initExpressions=function(){var r=Ym();if(r){var s=r("footage");this.layerInterface=s(this)}},Qi.prototype.getFootageData=function(){return this.footageData};function er(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),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 n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([cl,Xi,Zi],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 Pe(){}Pe.prototype.checkLayers=function(r){var s,n=this.layers.length,d;for(this.completeLayers=!0,s=n-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Pe.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)}},Pe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Pe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Pe.prototype.createFootage=function(r){return new Qi(r,this.globalData,this)},Pe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Pe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,n=r.length,d,m=this.layers.length;for(s=0;s<n;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Pe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Pe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Pe.prototype.buildElementParenting=function(r,s,n){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Pe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Pe.prototype.searchExtraCompositions=function(r){var s,n=r.length;for(s=0;s<n;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Pe.prototype.getElementById=function(r){var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Pe.prototype.getElementByPath=function(r){var s=r.shift(),n;if(typeof s=="number")n=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Pe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Do,this.globalData.slotManager=eT(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 cT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new De;this.finalTransform={mProp:this.data.ks?Rc.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,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,n.cloneFromProps(s),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].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,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<n;)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 d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<n;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<n;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(cT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new De;var n=0,d=s.length;for(n=0;n<d;n+=1)this.localTransforms.push(s[n])}}},globalToLocal:function(s){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=n.length,I;for(p=0;p<g;p+=1)I=n[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new De};function Po(r,s,n){this.data=r,this.element=s,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(p),this.solidPath="";var g,I=this.masksProperties,y=0,w=[],M,K,x=tr(),O,P,R,U,L="clipPath",k="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",k="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),w.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{y+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",k="mask",U=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),P=At("filter"),P.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),P.appendChild(R),d.appendChild(P),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,U=null),this.storedData[m]={elem:g,x:U,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){K=w.length;var C=At("g");for(M=0;M<K;M+=1)C.appendChild(w[M]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(g),d.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),w.length=0,w.push(C)}else w.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.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=At(L),p=w.length,m=0;m<p;m+=1)this.maskElement.appendChild(w[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(k,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Po.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Po.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},Po.prototype.getMaskelement=function(){return this.maskElement},Po.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},Po.prototype.drawPath=function(r,s,n){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" 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&&(d+=" 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]),n.lastPath!==d){var g="";n.elem&&(s.c&&(g=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},Po.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ra=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=n;function s(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),xu=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}(),hl={},Au="filter_result_";function zc(r){var s,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=Ra.createFilter(m,!0),g=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var y=r.data.ef[s].ty;if(hl[y]){var w=hl[y].effect;I=new w(p,r.effectsManager.effectElements[s],r,Au+g,n),n=Au+g,hl[y].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}zc.prototype.renderFrame=function(r){var s,n=this.filters.length;for(s=0;s<n;s+=1)this.filters[s].renderFrame(r)},zc.prototype.getEffects=function(r){var s,n=this.filters.length,d=[];for(s=0;s<n;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function LI(r,s,n){hl[r]={effect:s,countsAsEffect:n}}function Da(){}Da.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var n=At("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),s=n,this.globalData.defs.appendChild(n)}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 d=At("clipPath"),m=At("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(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,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 Po(this.data,this,this.globalData),this.renderableEffectsManager=new zc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var n=this.layerId+"_"+s,d,m,p,g;if(s===1||s===3){var I=At("mask");I.setAttribute("id",n),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!xu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=Ra.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Ra.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var y=At("mask");y.setAttribute("id",n),y.setAttribute("mask-type","alpha");var w=At("g");y.appendChild(w),d=tr(),m=Ra.createFilter(d);var M=At("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var K=At("feFuncA");K.setAttribute("type","table"),K.setAttribute("tableValues","1.0 0.0"),M.appendChild(K),this.globalData.defs.appendChild(m);var x=At("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"),w.setAttribute("filter","url("+f()+"#"+d+")"),w.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(p),xu.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(Ra.createAlphaToLuminanceFilter()),g=At("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=n}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ls(){}Ls.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 Pa(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,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 n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([cl,V(r)],Pa)})();function Fa(r,s,n){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Xi,Ns,Da,Ls,Zi,Pa],Fa),Fa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("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)},Fa.prototype.sourceRectAtTime=function(){return this.sourceRect};function hT(r,s){this.elem=r,this.pos=s}function Su(){}Su.prototype={addShapeToModifiers:function(s){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,n=this.shapes.length;for(s=0;s<n;s+=1)this.shapes[s].sh.reset();n=this.shapeModifiers.length;var d;for(s=n-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===s)return n[d].pos;d+=1}return 0},addProcessedElement:function(s,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=n;return}d.push(new hT(s,n))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Iu={1:"butt",2:"round",3:"square"},Cu={1:"miter",2:"round",3:"bevel"};function _u(r,s,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=s,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}_u.prototype.setAsAnimated=function(){this._isAnimated=!0};function ku(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}ku.prototype.reset=function(){this.d="",this._mdf=!1};function pl(r,s,n,d){this.elem=r,this.frameId=-1,this.dataProps=tt(s.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",s.length?s.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,g;for(m=0;m<p;m+=1)g=lt.getProp(r,s[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:s[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}pl.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,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<n;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],pl);function wu(r,s,n){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 pl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Ne],wu);function Nu(r,s,n){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=n}A([Ne],Nu);function Lu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Ne],Lu);function $a(r,s,n){this.data=s,this.c=Z("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=Z("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}$a.prototype.comparePoints=function(r,s){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[s*4+n*2]),m>.01)return!1;n+=1}return!0},$a.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},$a.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,n=this.data.p*4,d,m;for(s=0;s<n;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,s=this.data.p*4;s<n;s+=1)d=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],$a);function Ms(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,n)}Ms.prototype.initGradientData=function(r,s,n){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 $a(r,s.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,s),this.setGradientOpacity(s,n),this._isAnimated=!!this._isAnimated},Ms.prototype.setGradientData=function(r,s){var n=tr(),d=At(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=s.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ms.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=tr(),y=tr();p.setAttribute("id",y);var w=At(r.t===1?"linearGradient":"radialGradient");w.setAttribute("id",I),w.setAttribute("spreadMethod","pad"),w.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(d=r.g.p*4;d<m;d+=2)n=At("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(n),M.push(n);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",Iu[r.lc||2]),g.setAttribute("stroke-linejoin",Cu[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=w,this.ms=p,this.ost=M,this.maskId=y,s.msElem=g}},A([Ne],Ms);function Mu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.initGradientData(r,s,n),this._isAnimated=!!this._isAnimated}A([Ms,Ne],Mu);function pT(){this.it=[],this.prevViewData=[],this.gr=At("g")}function mT(r,s,n){this.transform={mProps:r,op:s,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Ou=function(s,n,d,m){if(n===0)return"";var p=s.o,g=s.i,I=s.v,y,w=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<n;y+=1)w+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(g[y][0],g[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return d&&n&&(w+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),w+="z"),w},uT=function(){var r=new De,s=new De,n={createRenderFunction:d};function d(K){switch(K.ty){case"fl":return I;case"gf":return w;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(K,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 g(K,x,O){var P,R,U,L,k,T,C=x.styles.length,N=x.lvl,$,G,q,it;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(G=s.reset(),q=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&q>0;)L=x.transformers[it].mProps._mdf||L,q-=1,it-=1;if(L)for(q=N-x.styles[T].lvl,it=x.transformers.length-1;q>0;)G.multiply(x.transformers[it].mProps.v),q-=1,it-=1}else G=r;if($=x.sh.paths,R=$._length,L){for(U="",P=0;P<R;P+=1)k=$.shapes[P],k&&k._length&&(U+=Ou(k,k._length,k.c,G));x.caches[T]=U}else U=x.caches[T];x.styles[T].d+=K.hd===!0?"":U,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(K,x,O){var P=x.style;(x.c._mdf||O)&&P.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("fill-opacity",x.o.v)}function y(K,x,O){w(K,x,O),M(K,x,O)}function w(K,x,O){var P=x.gf,R=x.g._hasOpacity,U=x.s.v,L=x.e.v;if(x.o._mdf||O){var k=K.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(k,x.o.v)}if(x.s._mdf||O){var T=K.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";P.setAttribute(T,U[0]),P.setAttribute(C,U[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,U[0]),x.of.setAttribute(C,U[1]))}var N,$,G,q;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(G=N.length,$=0;$<G;$+=1)q=N[$],q.setAttribute("offset",it[$*4]+"%"),q.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,G=N.length,$=0;$<G;$+=1)q=N[$],x.g._collapsable||q.setAttribute("offset",Tt[$*2]+"%"),q.setAttribute("stop-opacity",Tt[$*2+1])}if(K.t===1)(x.e._mdf||O)&&(P.setAttribute("x2",L[0]),P.setAttribute("y2",L[1]),R&&!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(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)),P.setAttribute("r",ft),R&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)));var ot=Math.atan2(L[1]-U[1],L[0]-U[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var pt=ft*St,rt=Math.cos(ot+x.a.v)*pt+U[0],_=Math.sin(ot+x.a.v)*pt+U[1];P.setAttribute("fx",rt),P.setAttribute("fy",_),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",_))}}}function M(K,x,O){var P=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(P.pElem.setAttribute("stroke-dasharray",R.dashStr),P.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&P.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(P.pElem.setAttribute("stroke-width",x.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",x.w.v))}return n}();function de(r,s,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,n),this.prevViewData=[]}A([Xi,Ns,Da,Su,Ls,Zi,Pa],de),de.prototype.initSecondaryElement=function(){},de.prototype.identityMatrix=new De,de.prototype.buildExpressionInterface=function(){},de.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},de.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,n,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<s;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(g.push(n),I=n._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},de.prototype.setShapesAsAnimated=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s].setAsAnimated()},de.prototype.createStyleElement=function(r,s){var n,d=new ku(r,s),m=d.pElem;if(r.ty==="st")n=new wu(this,r,d);else if(r.ty==="fl")n=new Nu(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ms:Mu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new Lu(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Iu[r.lc||2]),m.setAttribute("stroke-linejoin",Cu[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"]=Vc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},de.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"]=Vc(r.bm)),s},de.prototype.createTransformElement=function(r,s){var n=Rc.getTransformProperty(this,r,this),d=new mT(n,n.o,s);return this.addToAnimatedContents(r,d),d},de.prototype.createShapeElement=function(r,s,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=ol.getShapeProp(this,r,d,this),p=new _u(s,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},de.prototype.addToAnimatedContents=function(r,s){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===s)return;n+=1}this.animatedContents.push({fn:uT.createRenderFunction(r),element:s,data:r})},de.prototype.setElementStyles=function(r){var s=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||s.push(this.stylesList[n])},de.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()},de.prototype.searchShapes=function(r,s,n,d,m,p,g){var I=[].concat(p),y,w=r.length-1,M,K,x=[],O=[],P,R,U;for(y=w;y>=0;y-=1){if(U=this.searchProcessedElement(r[y]),U?s[y]=n[U-1]:r[y]._render=g,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")U?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==d&&d.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!U)s[y]=this.createGroupElement(r[y]);else for(K=s[y].it.length,M=0;M<K;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,g),r[y]._render&&s[y].gr.parentNode!==d&&d.appendChild(s[y].gr)}else r[y].ty==="tr"?(U||(s[y]=this.createTransformElement(r[y],d)),P=s[y].transform,I.push(P)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(U||(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"?(U?(R=s[y],R.closed=!1):(R=ji.getModifier(r[y].ty),R.init(this,r[y]),s[y]=R,this.shapeModifiers.push(R)),O.push(R)):r[y].ty==="rp"&&(U?(R=s[y],R.closed=!0):(R=ji.getModifier(r[y].ty),s[y]=R,R.init(this,r,y,s),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[y],y+1)}for(w=x.length,y=0;y<w;y+=1)x[y].closed=!0;for(w=O.length,y=0;y<w;y+=1)O[y].closed=!0},de.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"))},de.prototype.renderShape=function(){var r,s=this.animatedContents.length,n;for(r=0;r<s;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},de.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Bc(r,s,n,d,m,p){this.o=r,this.sw=s,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!n,fc:!!d,m:!0,p:!0}}Bc.prototype.update=function(r,s,n,d,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 g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!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,g=!0),g};function Ke(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)}Ke.prototype.defaultBoxWidth=[0,0],Ke.prototype.copyData=function(r,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n]);return r},Ke.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ke.prototype.searchProperty=function(){return this.searchKeyframes()},Ke.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ke.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},Ke.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,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](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}},Ke.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>s);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Ke.prototype.buildFinalText=function(r){for(var s=[],n=0,d=r.length,m,p,g=!1,I=!1,y="";n<d;)g=I,I=!1,m=r.charCodeAt(n),y=r.charAt(n),Do.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?Do.isRegionalFlag(r,n)?y=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(Do.isModifier(m,p)?(y=r.substr(n,2),g=!0):Do.isFlagEmoji(r.substr(n,4))?y=r.substr(n,4):y=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),Do.isVariationSelector(m)&&(g=!0)):Do.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(s[s.length-1]+=y,g=!1):s.push(y),n+=y.length;return s},Ke.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,n=this.data,d=[],m,p,g,I=0,y,w=n.m.g,M=0,K=0,x=0,O=[],P=0,R=0,U,L,k=s.getFontByName(r.f),T,C=0,N=yu(k);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,G;if(r.sz)for(var q=!0,it=r.sz[0],Tt=r.sz[1],ft,ot;q;){ot=this.buildFinalText(r.t),ft=0,P=0,p=ot.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)G=ot[m].charCodeAt(0),g=!1,ot[m]===" "?St=m:(G===13||G===3)&&(P=0,g=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(ot[m],k.fStyle,k.fFamily),C=g?0:T.w*r.finalSize/100):C=s.measureText(ot[m],r.f,r.finalSize),P+C>it&&ot[m]!==" "?(St===-1?p+=1:m=St,ft+=r.finalLineHeight||r.finalSize*1.2,ot.splice(m,St===m?1:0,"\r"),St=-1,P=0):(P+=C,P+=$);ft+=k.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=ot,p=r.finalText.length,q=!1)}P=-$,C=0;var pt=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],G=rt.charCodeAt(0),G===13||G===3?(pt=0,O.push(P),R=P>R?P:R,P=-2*$,y="",g=!0,x+=1):y=rt,s.chars?(T=s.getCharData(rt,k.fStyle,s.getFontByName(r.f).fFamily),C=g?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?pt+=C+$:(P+=C+$+pt,pt=0),d.push({l:C,an:C,add:M,n:g,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),w==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);K<=m;)d[K].an=M,d[K].ind=I,d[K].extra=C,K+=1;I+=1,M=0}}else if(w==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);K<=m;)d[K].an=M,d[K].ind=I,d[K].extra=C,K+=1;M=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=P>R?P:R,O.push(P),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,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 _=n.a,D,v;L=_.length;var E,j,z=[];for(U=0;U<L;U+=1){for(D=_[U],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),j=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[U]=j,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&z.push(j),j+=1);n.a[U].s.totalChars=j;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[U]&&(ct=v.anIndexes[U],gt=z.splice(Math.floor(Math.random()*z.length),1)[0]),v.anIndexes[U]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=k.ascent*r.finalSize/100},Ke.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var n=this.copyData({},this.data.d.k[s].s);n=this.copyData(n,r),this.data.d.k[s].s=n,this.recalculate(s),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Ke.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},Ke.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ke.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var fT=function(){var r=Math.max,s=Math.min,n=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=lt.getProp(p,g.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,g.o||{k:0},0,0,this),this.xe=lt.getProp(p,g.xe||{k:0},0,0,this),this.ne=lt.getProp(p,g.ne||{k:0},0,0,this),this.sm=lt.getProp(p,g.sm||{k:100},0,0,this),this.a=lt.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,w=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:M=1+this.xe.v/100;var K=_a.getBezierEasing(I,y,w,M).get,x=0,O=this.finalS,P=this.finalE,R=this.data.sh;if(R===2)P===O?x=g>=P?1:0:x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===3)P===O?x=g>=P?0:1:x=1-r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===4)P===O?x=0:(x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=K(x);else if(R===5){if(P===O)x=0;else{var U=P-O;g=s(r(0,g+.5-O),P-O);var L=-U/2+g,k=U/2;x=Math.sqrt(1-L*L/(k*k))}x=K(x)}else R===6?(P===O?x=0:(g=s(r(0,g+.5-O),P-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(P-O)))/2),x=K(x)):(g>=n(O)&&(g-O<0?x=r(0,s(s(P,1)-(O-g),1)):x=r(0,s(P-g,1))),x=K(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(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&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,w=this.s.v/I+y,M=this.e.v/I+y;if(w>M){var K=w;w=M,M=K}this.finalS=w,this.finalE=M}},A([Ne],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function vT(r,s,n){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,n):d,rx:p.rx?m(r,p.rx,0,kt,n):d,ry:p.ry?m(r,p.ry,0,kt,n):d,sk:p.sk?m(r,p.sk,0,kt,n):d,sa:p.sa?m(r,p.sa,0,kt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=fT.getTextSelectorProp(r,s.s,n),this.s.t=s.s.t}function Fo(r,s,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=n,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Fo.prototype.searchProperties=function(){var r,s=this._textData.a.length,n,d=lt.getProp;for(r=0;r<s;r+=1)n=this._textData.a[r],this._animatorsData[r]=new vT(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(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=d(this._elem,this._textData.m.a,1,0,this)},Fo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,y,w,M,K,x=r.l,O,P,R,U,L,k,T,C,N,$,G,q,it,Tt,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var ot=ft.v;this._pathData.r.v&&(ot=ot.reverse()),O={tLength:0,segments:[]},K=ot._length-1;var St;for(q=0,M=0;M<K;M+=1)St=Xr.buildBezierData(ot.v[M],ot.v[M+1],[ot.o[M][0]-ot.v[M][0],ot.o[M][1]-ot.v[M][1]],[ot.i[M+1][0]-ot.v[M+1][0],ot.i[M+1][1]-ot.v[M+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength;M=K,ft.v.c&&(St=Xr.buildBezierData(ot.v[M],ot.v[0],[ot.o[M][0]-ot.v[M][0],ot.o[M][1]-ot.v[M][1]],[ot.i[0][0]-ot.v[0][0],ot.i[0][1]-ot.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,P=this._pathData.f.v,T=0,k=1,U=0,L=!0,$=O.segments,P<0&&ft.v.c)for(O.tLength<Math.abs(P)&&(P=-Math.abs(P)%O.tLength),T=$.length-1,N=$[T].points,k=N.length-1;P<0;)P+=N[k].partialLength,k-=1,k<0&&(T-=1,N=$[T].points,k=N.length-1);N=$[T].points,C=N[k-1],R=N[k],G=R.partialLength}K=x.length,y=0,w=0;var pt=r.finalSize*1.2*.714,rt=!0,_,D,v,E,j;E=d.length;var z,ct=-1,gt,xt,Pt,Ft=P,ue=T,rr=k,Qr=-1,ir,Le,ur,Yt,mt,Ei,to,Ti,Jr="",xi=this.defaultPropsArray,Ai;if(r.j===2||r.j===1){var or=0,eo=0,ro=r.j===2?-.5:-1,Dr=0,io=!0;for(M=0;M<K;M+=1)if(x[M].n){for(or&&(or+=eo);Dr<M;)x[Dr].animatorJustifyOffset=or,Dr+=1;or=0,io=!0}else{for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(io&&r.j===2&&(eo+=_.t.v*ro),D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?or+=_.t.v*z[0]*ro:or+=_.t.v*z*ro);io=!1}for(or&&(or+=eo);Dr<M;)x[Dr].animatorJustifyOffset=or,Dr+=1}for(M=0;M<K;M+=1){if(p.reset(),ir=1,x[M].n)y=0,w+=r.yOffset,w+=rt?1:0,P=Ft,rt=!1,this._hasMaskedPath&&(T=ue,k=rr,N=$[T].points,C=N[k-1],R=N[k],G=R.partialLength,U=0),Jr="",Ti="",Ei="",Ai="",xi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Qr!==x[M].line){switch(r.j){case 1:P+=q-r.lineWidths[x[M].line];break;case 2:P+=(q-r.lineWidths[x[M].line])/2;break;default:break}Qr=x[M].line}ct!==x[M].ind&&(x[ct]&&(P+=x[ct].extra),P+=x[M].an/2,ct=x[M].ind),P+=n[0]*x[M].an*.005;var Pr=0;for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?Pr+=_.p.v[0]*z[0]:Pr+=_.p.v[0]*z),_.a.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?Pr+=_.a.v[0]*z[0]:Pr+=_.a.v[0]*z);for(L=!0,this._pathData.a.v&&(P=x[0].an*.5+(q-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(K-1),P+=this._pathData.f.v);L;)U+G>=P+Pr||!N?(it=(P+Pr-U)/R.partialLength,xt=C.point[0]+(R.point[0]-C.point[0])*it,Pt=C.point[1]+(R.point[1]-C.point[1])*it,p.translate(-n[0]*x[M].an*.005,-(n[1]*pt)*.01),L=!1):N&&(U+=R.partialLength,k+=1,k>=N.length&&(k=0,T+=1,$[T]?N=$[T].points:ft.v.c?(k=0,T=0,N=$[T].points):(U-=R.partialLength,N=null)),N&&(C=R,R=N[k],G=R.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(-n[0]*x[M].an*.005,-n[1]*pt*.01,0);for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?z.length?P+=_.t.v*z[0]:P+=_.t.v*z:z.length?y+=_.t.v*z[0]:y+=_.t.v*z));for(r.strokeWidthAnim&&(ur=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]]),v=0;v<E;v+=1)_=d[v].a,_.a.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?p.translate(-_.a.v[0]*z[0],-_.a.v[1]*z[1],_.a.v[2]*z[2]):p.translate(-_.a.v[0]*z,-_.a.v[1]*z,_.a.v[2]*z));for(v=0;v<E;v+=1)_=d[v].a,_.s.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?p.scale(1+(_.s.v[0]-1)*z[0],1+(_.s.v[1]-1)*z[1],1):p.scale(1+(_.s.v[0]-1)*z,1+(_.s.v[1]-1)*z,1));for(v=0;v<E;v+=1){if(_=d[v].a,D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),_.sk.propType&&(z.length?p.skewFromAxis(-_.sk.v*z[0],_.sa.v*z[1]):p.skewFromAxis(-_.sk.v*z,_.sa.v*z)),_.r.propType&&(z.length?p.rotateZ(-_.r.v*z[2]):p.rotateZ(-_.r.v*z)),_.ry.propType&&(z.length?p.rotateY(_.ry.v*z[1]):p.rotateY(_.ry.v*z)),_.rx.propType&&(z.length?p.rotateX(_.rx.v*z[0]):p.rotateX(_.rx.v*z)),_.o.propType&&(z.length?ir+=(_.o.v*z[0]-ir)*z[0]:ir+=(_.o.v*z-ir)*z),r.strokeWidthAnim&&_.sw.propType&&(z.length?ur+=_.sw.v*z[0]:ur+=_.sw.v*z),r.strokeColorAnim&&_.sc.propType)for(mt=0;mt<3;mt+=1)z.length?Le[mt]+=(_.sc.v[mt]-Le[mt])*z[0]:Le[mt]+=(_.sc.v[mt]-Le[mt])*z;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(mt=0;mt<3;mt+=1)z.length?Yt[mt]+=(_.fc.v[mt]-Yt[mt])*z[0]:Yt[mt]+=(_.fc.v[mt]-Yt[mt])*z;_.fh.propType&&(z.length?Yt=Wm(Yt,_.fh.v*z[0]):Yt=Wm(Yt,_.fh.v*z)),_.fs.propType&&(z.length?Yt=Gm(Yt,_.fs.v*z[0]):Yt=Gm(Yt,_.fs.v*z)),_.fb.propType&&(z.length?Yt=Km(Yt,_.fb.v*z[0]):Yt=Km(Yt,_.fb.v*z))}}for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,z=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?z.length?p.translate(0,_.p.v[1]*z[0],-_.p.v[2]*z[1]):p.translate(0,_.p.v[1]*z,-_.p.v[2]*z):z.length?p.translate(_.p.v[0]*z[0],_.p.v[1]*z[1],-_.p.v[2]*z[2]):p.translate(_.p.v[0]*z,_.p.v[1]*z,-_.p.v[2]*z));if(r.strokeWidthAnim&&(Ei=ur<0?0:ur),r.strokeColorAnim&&(to="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Ti="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,n[1]*pt*.01+w,0),this._pathData.p.v){Tt=(R.point[1]-C.point[1])/(R.point[0]-C.point[0]);var $o=Math.atan(Tt)*180/Math.PI;R.point[0]<C.point[0]&&($o+=180),p.rotate(-$o*Math.PI/180)}p.translate(xt,Pt,0),P-=n[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(P+=x[M].an/2,P+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,w,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(n[0]*x[M].an*.005,n[1]*pt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}g==="html"?Jr=p.toCSS():g==="svg"?Jr=p.to2dCSS():xi=[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]],Ai=ir}I<=M?(j=new Bc(Ai,Ei,to,Ti,Jr,xi),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[M],this.lettersChangedFlag=j.update(Ai,Ei,to,Ti,Jr,xi)||this.lettersChangedFlag)}}},Fo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Fo.prototype.mHelper=new De,Fo.prototype.defaultPropsArray=[],A([Ne],Fo);function Sr(){}Sr.prototype.initElement=function(r,s,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,n),this.textProperty=new Ke(this,r.t,this.dynamicProperties),this.textAnimator=new Fo(r.t,this.renderType,this),this.initTransform(r,s,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Sr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Sr.prototype.createPathShape=function(r,s){var n,d=s.length,m,p="";for(n=0;n<d;n+=1)s[n].ty==="sh"&&(m=s[n].ks.k,p+=Ou(m,m.i.length,!0,r));return p},Sr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Sr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Sr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Sr.prototype.applyTextPropertiesToMatrix=function(r,s,n,d,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[n]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}s.translate(d,m,0)},Sr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Sr.prototype.emptyProp=new Bc,Sr.prototype.destroy=function(){},Sr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var gT={shapes:[]};function bi(r,s,n){this.textSpans=[],this.renderType="svg",this.initElement(r,s,n)}A([Xi,Ns,Da,Ls,Zi,Pa,Sr],bi),bi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},bi.prototype.buildTextContents=function(r){for(var s=0,n=r.length,d=[],m="";s<n;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},bi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},bi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,n=this.textProperty.currentData;this.renderedLetters=tt(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],I=!!this.globalData.fontManager.chars;s=g.length;var y,w=this.mHelper,M="",K=this.data.singleShape,x=0,O=0,P=!0,R=n.tr*.001*n.finalSize;if(K&&!I&&!n.sz){var U=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}U.setAttribute("text-anchor",L),U.setAttribute("letter-spacing",R);var k=this.buildTextContents(n.finalText);for(s=k.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||At("tspan"),y.textContent=k[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",U.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=n.finalLineHeight;this.layerElement.appendChild(U)}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||!K||r===0){if(y=T>r?this.textSpans[r].span:At(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=At("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(w.reset(),K&&(g[r].n&&(x=-R,O+=n.yOffset,O+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(n,w,g[r].line,x,O),x+=g[r].l||0,x+=R),I){C=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(C.t===1)$=new Va(C.data,this.globalData,this);else{var G=gT;C.data&&C.data.shapes&&(G=this.buildShapeData(C.data,n.finalSize)),$=new de(G,this.globalData,this)}if(this.textSpans[r].glyph){var q=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(q.layerElement),q.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("+n.finalSize/100+","+n.finalSize/100+")")}else K&&y.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),y.textContent=g[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}K&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},bi.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},bi.prototype.getValue=function(){var r,s=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},bi.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,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,g;for(r=0;r<s;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.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 Hc(r,s,n){this.initElement(r,s,n)}A([Fa],Hc),Hc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Ji(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initFrame(),this.initTransform(r,s,n),this.initHierarchy()}Ji.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Ji.prototype.renderFrame=function(){},Ji.prototype.getBaseElement=function(){return null},Ji.prototype.destroy=function(){},Ji.prototype.sourceRectAtTime=function(){},Ji.prototype.hide=function(){},A([Xi,Ns,Ls,Zi],Ji);function Ae(){}A([Pe],Ae),Ae.prototype.createNull=function(r){return new Ji(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new de(r,this.globalData,this)},Ae.prototype.createText=function(r){return new bi(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new Fa(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new Hc(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 n=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(n),this.layers=r.layers,this.elements=tt(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,n=this.layers.length;for(s=0;s<n;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 n=this.createItem(this.layers[r]);if(s[r]=n,Zn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=s[d],p=m.getMatte(this.layers[r].tt);n.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,n=this.elements.length;s<n;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],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,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=n-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<n;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var n=r.getBaseElement();if(n){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function yi(){}A([Xi,Ns,Ls,Zi,Pa],yi),yi.prototype.initElement=function(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initTransform(r,s,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},yi.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 n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},yi.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()},yi.prototype.setElements=function(r){this.elements=r},yi.prototype.getElements=function(){return this.elements},yi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},yi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Va(r,s,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(r,s,n),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Ae,yi,Da],Va),Va.prototype.createComp=function(r){return new Va(r,this.globalData,this)};function Uc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var n="";if(s&&s.title){var d=At("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),n+=m}if(s&&s.description){var p=At("desc"),g=tr();p.setAttribute("id",g),p.textContent=s.description,this.svgElement.appendChild(p),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=At("defs");this.svgElement.appendChild(I);var y=At("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],Uc),Uc.prototype.createComp=function(r){return new Va(r,this.globalData,this)},_E("svg",Uc),ji.registerModifier("tm",Rr),ji.registerModifier("pb",ka),ji.registerModifier("rp",Zr),ji.registerModifier("rd",wa),ji.registerModifier("zz",La),ji.registerModifier("op",Ma),Gt})});var vl=globalThis,gl=vl.ShadowRoot&&(vl.ShadyCSS===void 0||vl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kc=Symbol(),Du=new WeakMap,za=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Kc)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(gl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=Du.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&Du.set(t,o))}return o}toString(){return this.cssText}},Pu=a=>new za(typeof a=="string"?a:a+"",void 0,Kc),H=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((e,i,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+a[l+1],a[0]);return new za(t,a,Kc)},Wc=(a,o)=>{if(gl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=vl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,a.appendChild(e)}},bl=gl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return Pu(t)})(a):a;var{is:IT,defineProperty:CT,getOwnPropertyDescriptor:_T,getOwnPropertyNames:kT,getOwnPropertySymbols:wT,getPrototypeOf:NT}=Object,oo=globalThis,Fu=oo.trustedTypes,LT=Fu?Fu.emptyScript:"",Yc=oo.reactiveElementPolyfillSupport,Ba=(a,o)=>a,Ha={toAttribute(a,o){switch(o){case Boolean:a=a?LT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},yl=(a,o)=>!IT(a,o),$u={attribute:!0,type:String,converter:Ha,reflect:!1,hasChanged:yl},Vu,zu;(Vu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(zu=oo.litPropertyMetadata)!=null||(oo.litPropertyMetadata=new WeakMap);var Si=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=$u){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&&CT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var c;let{get:i,set:l}=(c=_T(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let b=i==null?void 0:i.call(this);l.call(this,f),this.requestUpdate(o,b,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:$u}static _$Ei(){if(this.hasOwnProperty(Ba("elementProperties")))return;let o=NT(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Ba("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ba("properties"))){let t=this.properties,e=[...kT(t),...wT(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(bl(i))}else o!==void 0&&t.push(bl(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 Wc(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 l;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:Ha).toAttribute(t,e.type);this._$Em=o,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(o,t){var l;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let c=e.getPropertyOptions(i),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:Ha;this._$Em=i,this[i]=f.fromAttribute(t,c.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:yl)(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[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}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){}},Bu;Si.elementStyles=[],Si.shadowRootOptions={mode:"open"},Si[Ba("elementProperties")]=new Map,Si[Ba("finalized")]=new Map,Yc==null||Yc({ReactiveElement:Si}),((Bu=oo.reactiveElementVersions)!=null?Bu:oo.reactiveElementVersions=[]).push("2.0.4");var Ga=globalThis,El=Ga.trustedTypes,Hu=El?El.createPolicy("lit-html",{createHTML:a=>a}):void 0,Xc="$lit$",Ii=`lit$${Math.random().toFixed(9).slice(2)}$`,Zc="?"+Ii,MT=`<${Zc}>`,Bo=document,Ka=()=>Bo.createComment(""),Wa=a=>a===null||typeof a!="object"&&typeof a!="function",Qc=Array.isArray,qu=a=>Qc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",jc=`[
3
+ \f\r]`,Ua=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Uu=/-->/g,Gu=/>/g,Vo=RegExp(`>|${jc}(?:([^\\s"'>=/]+)(${jc}*=${jc}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ku=/'/g,Wu=/"/g,Xu=/^(?:script|style|textarea|title)$/i,Jc=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),S=Jc(1),FI=Jc(2),$I=Jc(3),Fe=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Yu=new WeakMap,zo=Bo.createTreeWalker(Bo,129);function Zu(a,o){if(!Qc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hu!==void 0?Hu.createHTML(o):o}var Qu=(a,o)=>{let t=a.length-1,e=[],i,l=o===2?"<svg>":o===3?"<math>":"",c=Ua;for(let f=0;f<t;f++){let b=a[f],A,F,V=-1,Q=0;for(;Q<b.length&&(c.lastIndex=Q,F=c.exec(b),F!==null);)Q=c.lastIndex,c===Ua?F[1]==="!--"?c=Uu:F[1]!==void 0?c=Gu:F[2]!==void 0?(Xu.test(F[2])&&(i=RegExp("</"+F[2],"g")),c=Vo):F[3]!==void 0&&(c=Vo):c===Vo?F[0]===">"?(c=i!=null?i:Ua,V=-1):F[1]===void 0?V=-2:(V=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?Vo:F[3]==='"'?Wu:Ku):c===Wu||c===Ku?c=Vo:c===Uu||c===Gu?c=Ua:(c=Vo,i=void 0);let Z=c===Vo&&a[f+1].startsWith("/>")?" ":"";l+=c===Ua?b+MT:V>=0?(e.push(A),b.slice(0,V)+Xc+b.slice(V)+Ii+Z):b+Ii+(V===-2?f:Z)}return[Zu(a,l+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Ya=class a{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let l=0,c=0,f=o.length-1,b=this.parts,[A,F]=Qu(o,t);if(this.el=a.createElement(A,e),zo.currentNode=this.el.content,t===2||t===3){let V=this.el.content.firstChild;V.replaceWith(...V.childNodes)}for(;(i=zo.nextNode())!==null&&b.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let V of i.getAttributeNames())if(V.endsWith(Xc)){let Q=F[c++],Z=i.getAttribute(V).split(Ii),tt=/([.?@])?(.*)/.exec(Q);b.push({type:1,index:l,name:tt[2],strings:Z,ctor:tt[1]==="."?xl:tt[1]==="?"?Al:tt[1]==="@"?Sl:Uo}),i.removeAttribute(V)}else V.startsWith(Ii)&&(b.push({type:6,index:l}),i.removeAttribute(V));if(Xu.test(i.tagName)){let V=i.textContent.split(Ii),Q=V.length-1;if(Q>0){i.textContent=El?El.emptyScript:"";for(let Z=0;Z<Q;Z++)i.append(V[Z],Ka()),zo.nextNode(),b.push({type:2,index:++l});i.append(V[Q],Ka())}}}else if(i.nodeType===8)if(i.data===Zc)b.push({type:2,index:l});else{let V=-1;for(;(V=i.data.indexOf(Ii,V+1))!==-1;)b.push({type:7,index:l}),V+=Ii.length-1}l++}}static createElement(o,t){let e=Bo.createElement("template");return e.innerHTML=o,e}};function Ho(a,o,t=a,e){var c,f,b;if(o===Fe)return o;let i=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Wa(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==l&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),l===void 0?i=void 0:(i=new l(a),i._$AT(a,t,e)),e!==void 0?((b=t.o)!=null?b:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Ho(a,i._$AS(a,o.values),i,e)),o}var Tl=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:Bo).importNode(t,!0);zo.currentNode=i;let l=zo.nextNode(),c=0,f=0,b=e[0];for(;b!==void 0;){if(c===b.index){let F;b.type===2?F=new Os(l,l.nextSibling,this,o):b.type===1?F=new b.ctor(l,b.name,b.strings,this,o):b.type===6&&(F=new Il(l,this,o)),this._$AV.push(F),b=e[++f]}c!==(b==null?void 0:b.index)&&(l=zo.nextNode(),c++)}return zo.currentNode=Bo,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++}},Os=class a{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 l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(l=i==null?void 0:i.isConnected)!=null?l:!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=Ho(this,o,t),Wa(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==Fe&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):qu(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!==W&&Wa(this._$AH)?this._$AA.nextSibling.data=o:this.T(Bo.createTextNode(o)),this._$AH=o}$(o){var l;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Ya.createElement(Zu(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===i)this._$AH.p(t);else{let c=new Tl(i,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=Yu.get(o.strings);return t===void 0&&Yu.set(o.strings,t=new Ya(o)),t}k(o){Qc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let l of o)i===t.length?t.push(e=new a(this.O(Ka()),this.O(Ka()),this,this.options)):e=t[i],e._$AI(l),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))}},Uo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(o,t=this,e,i){let l=this.strings,c=!1;if(l===void 0)o=Ho(this,o,t,0),c=!Wa(o)||o!==this._$AH&&o!==Fe,c&&(this._$AH=o);else{let f=o,b,A;for(o=l[0],b=0;b<l.length-1;b++)A=Ho(this,f[e+b],t,b),A===Fe&&(A=this._$AH[b]),c||(c=!Wa(A)||A!==this._$AH[b]),A===W?o=W:o!==W&&(o+=(A!=null?A:"")+l[b+1]),this._$AH[b]=A}c&&!i&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},xl=class extends Uo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Al=class extends Uo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Sl=class extends Uo{constructor(o,t,e,i,l){super(o,t,e,i,l),this.type=5}_$AI(o,t=this){var c;if((o=(c=Ho(this,o,t,0))!=null?c:W)===Fe)return;let e=this._$AH,i=o===W&&e!==W||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==W&&(e===W||i);i&&this.element.removeEventListener(this.name,this,e),l&&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)}},Il=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){Ho(this,o)}},Ju={M:Xc,P:Ii,A:Zc,C:1,L:Qu,R:Tl,D:qu,V:Ho,I:Os,H:Uo,N:Al,U:Sl,B:xl,F:Il},qc=Ga.litHtmlPolyfillSupport,ju;qc==null||qc(Ya,Os),((ju=Ga.litHtmlVersions)!=null?ju:Ga.litHtmlVersions=[]).push("3.2.0");var tf=(a,o,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:o,i=e._$litPart$;if(i===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=i=new Os(o.insertBefore(Ka(),f),f,void 0,t!=null?t:{})}return i._$AI(a),i};var so=class extends Si{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=tf(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 Fe}},ef;so._$litElement$=!0,so.finalized=!0,(ef=globalThis.litElementHydrateSupport)==null||ef.call(globalThis,{LitElement:so});var th=globalThis.litElementPolyfillSupport;th==null||th({LitElement:so});var rf;((rf=globalThis.litElementVersions)!=null?rf:globalThis.litElementVersions=[]).push("4.1.0");var OT={attribute:!0,type:String,converter:Ha,reflect:!1,hasChanged:yl},RT=(a=OT,o,t)=>{let{kind:e,metadata:i}=t,l=globalThis.litPropertyMetadata.get(i);if(l===void 0&&globalThis.litPropertyMetadata.set(i,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let b=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,b,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let b=this[c];o.call(this,f),this.requestUpdate(c,b,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(o,t)=>typeof t=="object"?RT(a,o,t):((e,i,l)=>{let c=i.hasOwnProperty(l);return i.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(i,l):void 0})(a,o,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function of(a){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,a)}}var ti=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Kt(a,o){return(t,e,i)=>{let l=c=>{var f,b;return(b=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?b:null};if(o){let{get:c,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let b=Symbol();return{get(){return this[b]},set(A){this[b]=A}}})();return ti(t,e,{get(){let b=c.call(this);return b===void 0&&(b=l(this),(b!==null||this.hasUpdated)&&f.call(this,b)),b}})}return ti(t,e,{get(){return l(this)}})}}var eh;function sf(a){return(o,t)=>ti(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:eh!=null?eh:eh=document.createDocumentFragment()).querySelectorAll(a)}})}function qt(a){return(o,t)=>{let{slot:e,selector:i}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var b,A;let c=(b=this.renderRoot)==null?void 0:b.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return i===void 0?f:f.filter(F=>F.matches(i))}})}}function af(a){return(o,t)=>{let{slot:e}=a!=null?a:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(i);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var DT={PREFIX:"mdc",SEPARATOR:"-"},PT={NAMESPACE:DT},rh=PT;var FT=a=>[rh.NAMESPACE.PREFIX,a].join(rh.NAMESPACE.SEPARATOR),B={constructTagName:FT};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 nf=B.constructTagName("buttonsimple"),Go={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},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},ja={SIZE:Go[32],TYPE:Rs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Ci=B.constructTagName("button"),Vt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},qa={40:40,32:32,28:28,24:24},Ir={64:64,52:52,20:20,...qa},ei={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},lf={DEFAULT:ei.DEFAULT,ACCENT:ei.ACCENT,NEGATIVE:ei.NEGATIVE},sr={VARIANT:Vt.PRIMARY,SIZE:qa[32],COLOR:ei.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var Cl=a=>{class o extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Vt).includes(i)?i:sr.VARIANT)}setColor(i){let l=Object.values(ei).includes(i),c=this.variant===Vt.TERTIARY&&!Object.values(lf).includes(i);!l||c?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let c=this.typeInternal===Ds.ICON?Object.values(Ir).includes(i)&&!(i===Ir[20]&&this.variant!==Vt.TERTIARY):Object.values(qa).includes(i);this.setAttribute("size",c?`${i}`:`${sr.SIZE}`)}inferButtonType(){var A,F,V,Q,Z,tt;let i=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,l=(Q=(V=this.shadowRoot)==null?void 0:V.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,c=this.prefixIcon||l&&l>0,f=(tt=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:tt.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,b=this.postfixIcon||f&&f>0;i&&(c||b)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(c||b)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.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 df=H`
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 _l=class extends oo{static register(o){customElements.get(o)||customElements.define(o,this)}};_l.styles=[nf];var lf=_l;var X=lf;var so=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 Ps=class{constructor(o,t,e,i){var l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(l=c.subscribe)!=null?l:!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 so(this.context,this.t,this.subscribe))}};var kl=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 rh=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Fs=class extends kl{constructor(o,t,e){var i,l;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let b=new Set;for(let[A,{consumerHost:F}]of this.subscriptions)b.has(A)||(b.add(A),F.dispatchEvent(new so(this.context,A,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(l=(i=this.host).addController)==null||l.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new rh(this.context))}};var FT=H`
14
+ `;var _l=class extends so{static register(o){customElements.get(o)||customElements.define(o,this)}};_l.styles=[df];var cf=_l;var X=cf;var ao=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 Ps=class{constructor(o,t,e,i){var l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(l=c.subscribe)!=null?l:!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 ao(this.context,this.t,this.subscribe))}};var kl=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 ih=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Fs=class extends kl{constructor(o,t,e){var i,l;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let b=new Set;for(let[A,{consumerHost:F}]of this.subscriptions)b.has(A)||(b.add(A),F.dispatchEvent(new ao(this.context,A,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(l=(i=this.host).addController)==null||l.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new ih(this.context))}};var $T=H`
15
15
  :host {
16
16
  display: contents;
17
17
  }
18
- `,df=FT;var wl=class extends X{constructor({context:o,initialValue:t}){super(),this.context=new Fs(this,{context:o,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};wl.styles=[...X.styles,df];var cf=wl;var Se=cf;var $e=a=>{class o extends a{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 te=a=>{class o extends a{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ei=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var wt={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 $T=a=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:l}=a,c=(i||l)&&(f=>{l&&l.forEach(b=>{o.requestUpdate(b)}),i==null||i(f)});return new Ps(o,{context:t,callback:c,subscribe:e!=null?e:!0})},VT={consume:$T},Ie=VT;var hf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),pf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),zT=a=>a.getClientRects().length===0,BT=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=a;return e+i+t+o===0},mf=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:e}=o;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},HT=a=>BT(a)||zT(a),UT=a=>{let{display:o,opacity:t,visibility:e}=a.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},GT=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},KT=a=>getComputedStyle(a).display==="contents",WT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||UT(a)||!KT(a)&&(GT(a)||HT(a)),YT=a=>a.disabled,jT=a=>a.getAttribute("tabindex")!=="-1",qT=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),XT=(a,o)=>o.some(t=>a.matches(t));var $s=(a,o={})=>{var b,A,F;if(!a)return[];let t=new Set((b=o==null?void 0:o.excludedElements)!=null?b:[]),e=(A=o==null?void 0:o.includeSelectors)!=null?A:[],i=(F=o==null?void 0:o.stopAtNonTabbable)!=null?F:!1,l=new Set,c=V=>{if(!(V instanceof HTMLSlotElement)&&(WT(V)||YT(V)))return"stop";if(i&&!(V instanceof HTMLSlotElement)&&V.getAttribute("tabindex")==="-1"){let Q=V.getRootNode();if(!(Q instanceof ShadowRoot&&Q.delegatesFocus))return"stop"}return XT(V,e)||jT(V)&&qT(V)?"focusable":"continue"},f=V=>{if(t.has(V))return;V instanceof HTMLElement&&c(V)==="focusable"&&l.add(V);let Q=[];V instanceof HTMLElement&&V.shadowRoot?Q=Array.from(V.shadowRoot.children):V.children.length&&(Q=Array.from(V.children)),Q.forEach(Z=>{let tt=Z,nt=c(tt);nt==="focusable"&&l.add(tt),nt!=="stop"&&(tt.shadowRoot?f(tt.shadowRoot):tt.tagName==="SLOT"?tt.assignedElements({flatten:!0}).forEach(ht=>{if(ht instanceof HTMLElement){if(i&&!(ht instanceof HTMLSlotElement)&&ht.getAttribute("tabindex")==="-1")return;f(ht)}}):f(tt))})};return f(a),[...l]},Xa=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},uf=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",ih=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?ih(o.host):a},ff=a=>{let o=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Ci=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)}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)))}}};Ci.stack=new Set,Ci.currentKeydownListener=null;var Nl=B.constructTagName("spatialnavigationprovider");var oh={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 ZT=Nl,sh=ZT;var vf=a=>{let{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:b}=a.getBoundingClientRect(),A=o+e/2,F=t+i/2;return{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:b,xMid:A,yMid:F}},QT=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),JT=(a,o)=>o==="horizontal"?a.height/2:a.width/2,tx=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),ex=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,rx=(a,o,t,e)=>{let i=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(i*i+l*l),f=QT(a,o,t)+JT(a,t)*e.orthogonalWeight[t],b=tx(a,o,t),A=ex(a,t,b)*e.alignWeight;return c+f-A-Math.sqrt(b)},gf=(a,o,t,e)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let i=vf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let b=vf(f);if(t==="left"&&b.right>i.xMid||t==="right"&&b.left<i.xMid||t==="up"&&b.bottom>i.yMid||t==="down"&&b.top<i.yMid)return c;let A=rx(i,b,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Ko=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var Za=class extends Se{constructor(){super({context:sh});this.navigationKeyMapping=oh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=oh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new Ko("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(i)),i.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Ko("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Xa();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return sh}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=$s(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=Ci.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let b of f)if(b===i||b===this.root||mf(b)){c.push(...$s(b,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||b===i||b===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=b}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let l=new Ko("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var b,A;if(t.length===0)return;let i=this.getActiveElement(),l=Xa();if((!i||!t.includes(i)||i!==l)&&(l&&t.includes(l)?i=l:[i]=t,this.setActiveElement(i)),i!==Xa())return i;let c=`data-spatial-${e}`;if(l){let F=ff(l).find(Q=>Q.hasAttribute(c)),V=F==null?void 0:F.getAttribute(c);if(F&&V){let Q=(b=F.getRootNode())==null?void 0:b.getElementById(V);if(Q)return Q}}return(A=gf(i,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new Ko("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=Xa();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(i=>i.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],Za.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],Za.prototype,"distanceCalculationWeights",2);var ah=Za;ah.register(Nl);var bf=ah;var Y={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},ix={[wt.ARROW_UP]:Y.UP,[wt.ARROW_DOWN]:Y.DOWN,[wt.ARROW_LEFT]:Y.LEFT,[wt.ARROW_RIGHT]:Y.RIGHT,[wt.ENTER]:Y.ENTER,[wt.SPACE]:Y.SPACE,[wt.ESCAPE]:Y.ESCAPE,[wt.TAB]:Y.TAB,[wt.HOME]:Y.HOME,[wt.END]:Y.END,[wt.BACKSPACE]:Y.BACKSPACE},ee={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:bf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?ee.SPATIAL:ee.DEFAULT}getActionForKeyEvent(i,l=!1){var b,A,F;let f=((F=(A=(b=this.spatialNavigationContext)==null?void 0:b.value)==null?void 0:A.keyToActionMap)!=null?F:ix)[i.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===Y.LEFT)return Y.RIGHT;if(f===Y.RIGHT)return Y.LEFT}return f}isDirectionAction(i){return i===Y.UP||i===Y.DOWN||i===Y.LEFT||i===Y.RIGHT}}return o};var Mt=a=>{class o extends a{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 yt=H`
18
+ `,hf=$T;var wl=class extends X{constructor({context:o,initialValue:t}){super(),this.context=new Fs(this,{context:o,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};wl.styles=[...X.styles,hf];var pf=wl;var Se=pf;var $e=a=>{class o extends a{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 te=a=>{class o extends a{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ri=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var wt={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 VT=a=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:l}=a,c=(i||l)&&(f=>{l&&l.forEach(b=>{o.requestUpdate(b)}),i==null||i(f)});return new Ps(o,{context:t,callback:c,subscribe:e!=null?e:!0})},zT={consume:VT},Ie=zT;var mf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),uf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),BT=a=>a.getClientRects().length===0,HT=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=a;return e+i+t+o===0},ff=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:e}=o;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},UT=a=>HT(a)||BT(a),GT=a=>{let{display:o,opacity:t,visibility:e}=a.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},KT=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},WT=a=>getComputedStyle(a).display==="contents",YT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||GT(a)||!WT(a)&&(KT(a)||UT(a)),jT=a=>a.disabled,qT=a=>a.getAttribute("tabindex")!=="-1",XT=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),ZT=(a,o)=>o.some(t=>a.matches(t));var $s=(a,o={})=>{var b,A,F;if(!a)return[];let t=new Set((b=o==null?void 0:o.excludedElements)!=null?b:[]),e=(A=o==null?void 0:o.includeSelectors)!=null?A:[],i=(F=o==null?void 0:o.stopAtNonTabbable)!=null?F:!1,l=new Set,c=V=>{if(!(V instanceof HTMLSlotElement)&&(YT(V)||jT(V)))return"stop";if(i&&!(V instanceof HTMLSlotElement)&&V.getAttribute("tabindex")==="-1"){let Q=V.getRootNode();if(!(Q instanceof ShadowRoot&&Q.delegatesFocus))return"stop"}return ZT(V,e)||qT(V)&&XT(V)?"focusable":"continue"},f=V=>{if(t.has(V))return;V instanceof HTMLElement&&c(V)==="focusable"&&l.add(V);let Q=[];V instanceof HTMLElement&&V.shadowRoot?Q=Array.from(V.shadowRoot.children):V.children.length&&(Q=Array.from(V.children)),Q.forEach(Z=>{let tt=Z,nt=c(tt);nt==="focusable"&&l.add(tt),nt!=="stop"&&(tt.shadowRoot?f(tt.shadowRoot):tt.tagName==="SLOT"?tt.assignedElements({flatten:!0}).forEach(ht=>{if(ht instanceof HTMLElement){if(i&&!(ht instanceof HTMLSlotElement)&&ht.getAttribute("tabindex")==="-1")return;f(ht)}}):f(tt))})};return f(a),[...l]},Xa=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},vf=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",oh=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?oh(o.host):a},Nl=a=>{let o=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var _i=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)}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)))}}};_i.stack=new Set,_i.currentKeydownListener=null;var Ll=B.constructTagName("spatialnavigationprovider");var sh={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 QT=Ll,ah=QT;var gf=a=>{let{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:b}=a.getBoundingClientRect(),A=o+e/2,F=t+i/2;return{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:b,xMid:A,yMid:F}},JT=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),tx=(a,o)=>o==="horizontal"?a.height/2:a.width/2,ex=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),rx=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,ix=(a,o,t,e)=>{let i=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(i*i+l*l),f=JT(a,o,t)+tx(a,t)*e.orthogonalWeight[t],b=ex(a,o,t),A=rx(a,t,b)*e.alignWeight;return c+f-A-Math.sqrt(b)},bf=(a,o,t,e)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let i=gf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let b=gf(f);if(t==="left"&&b.right>i.xMid||t==="right"&&b.left<i.xMid||t==="up"&&b.bottom>i.yMid||t==="down"&&b.top<i.yMid)return c;let A=ix(i,b,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Ko=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var Za=class extends Se{constructor(){super({context:ah});this.navigationKeyMapping=sh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=sh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new Ko("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(i)),i.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Ko("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Xa();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return ah}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=$s(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=_i.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let b of f)if(b===i||b===this.root||ff(b)){c.push(...$s(b,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||b===i||b===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=b}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let l=new Ko("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var b,A;if(t.length===0)return;let i=this.getActiveElement(),l=Xa();if((!i||!t.includes(i)||i!==l)&&(l&&t.includes(l)?i=l:[i]=t,this.setActiveElement(i)),i!==Xa())return i;let c=`data-spatial-${e}`;if(l){let F=Nl(l).find(Q=>Q.hasAttribute(c)),V=F==null?void 0:F.getAttribute(c);if(F&&V){let Q=(b=F.getRootNode())==null?void 0:b.getElementById(V);if(Q)return Q}}return(A=bf(i,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new Ko("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=Xa();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(i=>i.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],Za.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],Za.prototype,"distanceCalculationWeights",2);var nh=Za;nh.register(Ll);var yf=nh;var Y={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},ox={[wt.ARROW_UP]:Y.UP,[wt.ARROW_DOWN]:Y.DOWN,[wt.ARROW_LEFT]:Y.LEFT,[wt.ARROW_RIGHT]:Y.RIGHT,[wt.ENTER]:Y.ENTER,[wt.SPACE]:Y.SPACE,[wt.ESCAPE]:Y.ESCAPE,[wt.TAB]:Y.TAB,[wt.HOME]:Y.HOME,[wt.END]:Y.END,[wt.BACKSPACE]:Y.BACKSPACE},ee={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:yf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?ee.SPATIAL:ee.DEFAULT}getActionForKeyEvent(i,l=!1){var b,A,F;let f=((F=(A=(b=this.spatialNavigationContext)==null?void 0:b.value)==null?void 0:A.keyToActionMap)!=null?F:ox)[i.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===Y.LEFT)return Y.RIGHT;if(f===Y.RIGHT)return Y.LEFT}return f}isDirectionAction(i){return i===Y.UP||i===Y.DOWN||i===Y.LEFT||i===Y.RIGHT}}return o};var Mt=a=>{class o extends a{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 yt=H`
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 ox=[yt,H`
99
+ `];var sx=[yt,H`
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
- `,...Et()],yf=ox;var fr=class extends Mt(Nt($e(ei(te(X))))){constructor(){super();this.size=ja.SIZE;this.role=ja.ROLE;this.type=ja.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||ja.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Rs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Rs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(l=>l.trim().startsWith("aria-")).forEach(l=>{e===!0?t.setAttribute(l.trim(),"true"):e===!1?t.setAttribute(l.trim(),"false"):t.removeAttribute(l.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===Y.ENTER||e===Y.SPACE)&&(this.classList.add("pressed"),e===Y.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===Y.ENTER||e===Y.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===Y.SPACE&&i&&this.triggerClickEvent()}}render(){return S` <slot></slot> `}};fr.formAssociated=!0,fr.styles=[...X.styles,...yf],h([u({type:Boolean,reflect:!0})],fr.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],fr.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],fr.prototype,"size",2),h([u({type:String,reflect:!0})],fr.prototype,"role",2),h([u({type:String,reflect:!0})],fr.prototype,"ariaStateKey",2),h([u({reflect:!0})],fr.prototype,"type",2),h([u({type:String,reflect:!0})],fr.prototype,"name",2),h([u({type:String,reflect:!0})],fr.prototype,"value",2);var fe=fr;var Ll=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}}return o};var sx=H`
152
+ `,...Et()],Ef=sx;var fr=class extends Mt(Nt($e(ri(te(X))))){constructor(){super();this.size=ja.SIZE;this.role=ja.ROLE;this.type=ja.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||ja.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Rs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Rs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(l=>l.trim().startsWith("aria-")).forEach(l=>{e===!0?t.setAttribute(l.trim(),"true"):e===!1?t.setAttribute(l.trim(),"false"):t.removeAttribute(l.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===Y.ENTER||e===Y.SPACE)&&(this.classList.add("pressed"),e===Y.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===Y.ENTER||e===Y.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===Y.SPACE&&i&&this.triggerClickEvent()}}render(){return S` <slot></slot> `}};fr.formAssociated=!0,fr.styles=[...X.styles,...Ef],h([u({type:Boolean,reflect:!0})],fr.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],fr.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],fr.prototype,"size",2),h([u({type:String,reflect:!0})],fr.prototype,"role",2),h([u({type:String,reflect:!0})],fr.prototype,"ariaStateKey",2),h([u({reflect:!0})],fr.prototype,"type",2),h([u({type:String,reflect:!0})],fr.prototype,"name",2),h([u({type:String,reflect:!0})],fr.prototype,"value",2);var fe=fr;var Ml=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}}return o};var ax=H`
153
153
  :host {
154
154
  --mdc-button-prefix-icon-size: 1rem;
155
155
  --mdc-button-postfix-icon-size: 1rem;
@@ -249,6 +249,28 @@
249
249
  --mdc-button-background: var(--mds-color-theme-button-secondary-pressed);
250
250
  }
251
251
 
252
+ :host([color='accent'][variant='tertiary']) {
253
+ --mdc-button-text-color: var(--mds-color-theme-text-accent-normal);
254
+ }
255
+ :host([color='accent'][variant='tertiary']:hover:not([disabled]):not([soft-disabled])) {
256
+ --mdc-button-background: var(--mds-color-theme-button-secondary-hover);
257
+ }
258
+ :host([color='accent'][variant='tertiary']:active:not([disabled]):not([soft-disabled])),
259
+ :host([color='accent'][variant='tertiary'].pressed:not([disabled]):not([soft-disabled])) {
260
+ --mdc-button-background: var(--mds-color-theme-button-secondary-pressed);
261
+ }
262
+
263
+ :host([color='negative'][variant='tertiary']) {
264
+ --mdc-button-text-color: var(--mds-color-theme-text-error-normal);
265
+ }
266
+ :host([color='negative'][variant='tertiary']:hover:not([disabled]):not([soft-disabled])) {
267
+ --mdc-button-background: var(--mds-color-theme-button-secondary-hover);
268
+ }
269
+ :host([color='negative'][variant='tertiary']:active:not([disabled]):not([soft-disabled])),
270
+ :host([color='negative'][variant='tertiary'].pressed:not([disabled]):not([soft-disabled])) {
271
+ --mdc-button-background: var(--mds-color-theme-button-secondary-pressed);
272
+ }
273
+
252
274
  :host([size='64'][data-btn-type='icon']),
253
275
  :host([size='52'][data-btn-type='icon']),
254
276
  :host([size='40'][data-btn-type='icon']),
@@ -434,7 +456,7 @@
434
456
  :host::part(postfix-icon) {
435
457
  flex-shrink: 0;
436
458
  }
437
- `,Ef=[sx];var Wo=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var ri=class extends Ll(Cl(fe)){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.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=`${Wo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Wo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
459
+ `,Tf=[ax];var Wo=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var ii=class extends Ml(Cl(fe)){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=`${Wo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Wo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
438
460
  <slot name="prefix" part="prefix">
439
461
  ${this.prefixFilledIconName?S` <mdc-icon
440
462
  name="${this.prefixFilledIconName}"
@@ -450,7 +472,7 @@
450
472
  length-unit="rem"
451
473
  ></mdc-icon>`:""}
452
474
  </slot>
453
- `}};ri.styles=[...fe.styles,...Ef],h([Kt('slot[part="button-text"]')],ri.prototype,"buttonTextPart",2),h([u({type:Number})],ri.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ri.prototype,"inverted",2),h([u({type:String,reflect:!0})],ri.prototype,"role",2),h([dt()],ri.prototype,"prefixFilledIconName",2),h([dt()],ri.prototype,"postfixFilledIconName",2);var Yo=ri;var Ml=B.constructTagName("iconprovider"),Tf=["svg"],xf=["em","rem","px","%"],ax={px:16,em:1,rem:1,"%":100},_i={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ax.em,ICON_SET:"momentum-icons"};var Ol=class{};Ol.context=Ml;var Rl=Ol;var ii=class extends Se{constructor(){super({context:Rl.context,initialValue:new Rl});this.iconSet=_i.ICON_SET;this.fileExtension=_i.FILE_EXTENSION;this.lengthUnit=_i.LENGTH_UNIT;this.size=_i.SIZE}static get Context(){return Rl.context}updateValuesInContext(){this.fileExtension&&Tf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=_i.FILE_EXTENSION,this.context.value.fileExtension=_i.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&&xf.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=_i.LENGTH_UNIT,this.context.value.lengthUnit=_i.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})],ii.prototype,"iconSet",2),h([u({type:String})],ii.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ii.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ii.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ii.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ii.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ii.prototype,"cacheName",2);var Qa=ii;var nx=[yt,H`
475
+ `}};ii.styles=[...fe.styles,...Tf],h([Kt('slot[part="button-text"]')],ii.prototype,"buttonTextPart",2),h([u({type:Number})],ii.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ii.prototype,"inverted",2),h([u({type:String,reflect:!0})],ii.prototype,"role",2),h([dt()],ii.prototype,"prefixFilledIconName",2),h([dt()],ii.prototype,"postfixFilledIconName",2);var Yo=ii;var Ol=B.constructTagName("iconprovider"),xf=["svg"],Af=["em","rem","px","%"],nx={px:16,em:1,rem:1,"%":100},ki={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:nx.em,ICON_SET:"momentum-icons"};var Rl=class{};Rl.context=Ol;var Dl=Rl;var oi=class extends Se{constructor(){super({context:Dl.context,initialValue:new Dl});this.iconSet=ki.ICON_SET;this.fileExtension=ki.FILE_EXTENSION;this.lengthUnit=ki.LENGTH_UNIT;this.size=ki.SIZE}static get Context(){return Dl.context}updateValuesInContext(){this.fileExtension&&xf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=ki.FILE_EXTENSION,this.context.value.fileExtension=ki.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&&Af.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=ki.LENGTH_UNIT,this.context.value.lengthUnit=ki.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})],oi.prototype,"iconSet",2),h([u({type:String})],oi.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],oi.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],oi.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],oi.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],oi.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],oi.prototype,"cacheName",2);var Qa=oi;var lx=[yt,H`
454
476
  :host {
455
477
  --mdc-icon-fill-color: currentColor;
456
478
  --mdc-icon-size: var(--computed-icon-size);
@@ -465,7 +487,7 @@
465
487
  width: 100%;
466
488
  fill: var(--mdc-icon-fill-color);
467
489
  }
468
- `,...Et()],Af=nx;var Ja={},Sf=async a=>(Ja[a]===void 0&&(Ja[a]=new Map),{async set(o,t){Ja[a].set(o.url,await t.text())},async get(o){return Ja[a].get(o.url)},async delete(o){Ja[a].delete(o.url)}}),If=async a=>{let o=await caches.open(a);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)}}},Dl=async(a,o)=>o==="in-memory-cache"?Sf(a):If(a);var Cf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),_f=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?Cf(f).then(b=>b.text()):Dl(i,e).then(b=>b.get(f).then(A=>A||Cf(f.clone()).then(F=>{var V;return F.status<400&&F.headers.has("content-type")?(V=b.set)==null?void 0:V.call(b,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var kf=B.constructTagName("icon"),nh={NAME:void 0,SIZE:1};var vr=class extends X{constructor(){super();this.name=nh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:Qa.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:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&i&&e&&this.name){let b=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return _f({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:b}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(b=>{this.handleIconLoadedSuccess(b.default())}).catch(b=>{this.handleIconLoadedFailure(b)})}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:nh.SIZE}updated(t){var e,i,l,c;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!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};vr.styles=[...X.styles,...Af],h([dt()],vr.prototype,"iconData",2),h([dt()],vr.prototype,"lengthUnitFromContext",2),h([dt()],vr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:Number})],vr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],vr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],vr.prototype,"ariaLabelledby",2),h([dt()],vr.prototype,"abortController",2);var lh=vr;lh.register(kf);var lx=lh;Yo.register(Ii);var dx=Yo;var wf=H`
490
+ `,...Et()],Sf=lx;var Ja={},If=async a=>(Ja[a]===void 0&&(Ja[a]=new Map),{async set(o,t){Ja[a].set(o.url,await t.text())},async get(o){return Ja[a].get(o.url)},async delete(o){Ja[a].delete(o.url)}}),Cf=async a=>{let o=await caches.open(a);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)}}},Pl=async(a,o)=>o==="in-memory-cache"?If(a):Cf(a);var _f=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),kf=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?_f(f).then(b=>b.text()):Pl(i,e).then(b=>b.get(f).then(A=>A||_f(f.clone()).then(F=>{var V;return F.status<400&&F.headers.has("content-type")?(V=b.set)==null?void 0:V.call(b,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var wf=B.constructTagName("icon"),lh={NAME:void 0,SIZE:1};var vr=class extends X{constructor(){super();this.name=lh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:Qa.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:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&i&&e&&this.name){let b=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return kf({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:b}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(b=>{this.handleIconLoadedSuccess(b.default())}).catch(b=>{this.handleIconLoadedFailure(b)})}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:lh.SIZE}updated(t){var e,i,l,c;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!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};vr.styles=[...X.styles,...Sf],h([dt()],vr.prototype,"iconData",2),h([dt()],vr.prototype,"lengthUnitFromContext",2),h([dt()],vr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:Number})],vr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],vr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],vr.prototype,"ariaLabelledby",2),h([dt()],vr.prototype,"abortController",2);var dh=vr;dh.register(wf);var dx=dh;Yo.register(Ci);var cx=Yo;var Nf=H`
469
491
  :host::part(text) {
470
492
  font-size: unset;
471
493
  font-weight: unset;
@@ -708,14 +730,14 @@
708
730
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
709
731
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
710
732
  }
711
- `;var cx=[H`
733
+ `;var hx=[H`
712
734
  :host {
713
735
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
714
736
 
715
737
  display: block;
716
738
  font-family: var(--mdc-text-font-family);
717
739
  }
718
- `,wf],Nf=cx;var tn=B.constructTagName("text"),st={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"},ut={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:st.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:ut.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var jo=class extends Ll(X){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[ut.SPAN,ut.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case ut.H1:return S`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case ut.H2:return S`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case ut.H3:return S`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case ut.H4:return S`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case ut.H5:return S`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case ut.H6:return S`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case ut.DIV:return S`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case ut.SPAN:return S`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case ut.SMALL:return S`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case ut.P:default:return S`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};jo.styles=[...X.styles,...Nf],h([Kt(`[part='${Me.CSS_PART_TEXT}']`)],jo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],jo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],jo.prototype,"tagname",2);var dh=jo;dh.register(tn);var hx=dh;var J=a=>a!=null?a:W;var Oe=[];for(let a=0;a<256;++a)Oe.push((a+256).toString(16).slice(1));function Lf(a,o=0){return(Oe[a[o+0]]+Oe[a[o+1]]+Oe[a[o+2]]+Oe[a[o+3]]+"-"+Oe[a[o+4]]+Oe[a[o+5]]+"-"+Oe[a[o+6]]+Oe[a[o+7]]+"-"+Oe[a[o+8]]+Oe[a[o+9]]+"-"+Oe[a[o+10]]+Oe[a[o+11]]+Oe[a[o+12]]+Oe[a[o+13]]+Oe[a[o+14]]+Oe[a[o+15]]).toLowerCase()}var ch,px=new Uint8Array(16);function hh(){if(!ch){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ch=crypto.getRandomValues.bind(crypto)}return ch(px)}var mx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ph={randomUUID:mx};function ux(a,o,t){var i,l,c;if(ph.randomUUID&&!o&&!a)return ph.randomUUID();a=a||{};let e=(c=(l=a.random)!=null?l:(i=a.rng)==null?void 0:i.call(a))!=null?c:hh();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 Lf(e)}var Ve=ux;var Mf=B.constructTagName("accordiongroup"),mh={SMALL:"small",LARGE:"large"},fx={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},en={SIZE:mh.SMALL,VARIANT:fx.STACKED};var Pl=B.constructTagName("accordionbutton"),rn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},vx={DEFAULT:"default",BORDERLESS:"borderless"},on={LEADING:"leading",TRAILING:"trailing"},oi={EXPANDED:!1,SIZE:mh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:vx.DEFAULT,ICON_NAME:rn.ARROW_UP,TOGGLE_POSITION:on.TRAILING};var gx=H`
740
+ `,Nf],Lf=hx;var tn=B.constructTagName("text"),st={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"},ut={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:st.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:ut.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var jo=class extends Ml(X){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[ut.SPAN,ut.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case ut.H1:return S`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case ut.H2:return S`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case ut.H3:return S`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case ut.H4:return S`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case ut.H5:return S`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case ut.H6:return S`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case ut.DIV:return S`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case ut.SPAN:return S`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case ut.SMALL:return S`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case ut.P:default:return S`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};jo.styles=[...X.styles,...Lf],h([Kt(`[part='${Me.CSS_PART_TEXT}']`)],jo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],jo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],jo.prototype,"tagname",2);var ch=jo;ch.register(tn);var px=ch;var J=a=>a!=null?a:W;var Oe=[];for(let a=0;a<256;++a)Oe.push((a+256).toString(16).slice(1));function Mf(a,o=0){return(Oe[a[o+0]]+Oe[a[o+1]]+Oe[a[o+2]]+Oe[a[o+3]]+"-"+Oe[a[o+4]]+Oe[a[o+5]]+"-"+Oe[a[o+6]]+Oe[a[o+7]]+"-"+Oe[a[o+8]]+Oe[a[o+9]]+"-"+Oe[a[o+10]]+Oe[a[o+11]]+Oe[a[o+12]]+Oe[a[o+13]]+Oe[a[o+14]]+Oe[a[o+15]]).toLowerCase()}var hh,mx=new Uint8Array(16);function ph(){if(!hh){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");hh=crypto.getRandomValues.bind(crypto)}return hh(mx)}var ux=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mh={randomUUID:ux};function fx(a,o,t){var i,l,c;if(mh.randomUUID&&!o&&!a)return mh.randomUUID();a=a||{};let e=(c=(l=a.random)!=null?l:(i=a.rng)==null?void 0:i.call(a))!=null?c:ph();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 Mf(e)}var Ve=fx;var Of=B.constructTagName("accordiongroup"),uh={SMALL:"small",LARGE:"large"},vx={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},en={SIZE:uh.SMALL,VARIANT:vx.STACKED};var Fl=B.constructTagName("accordionbutton"),rn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},gx={DEFAULT:"default",BORDERLESS:"borderless"},on={LEADING:"leading",TRAILING:"trailing"},si={EXPANDED:!1,SIZE:uh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:gx.DEFAULT,ICON_NAME:rn.ARROW_UP,TOGGLE_POSITION:on.TRAILING};var bx=H`
719
741
  :host {
720
742
  --mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
721
743
  --mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
@@ -832,7 +854,7 @@
832
854
  :host([variant='default']:not([expanded]))::part(header-section) {
833
855
  border-bottom: none;
834
856
  }
835
- `,Of=[gx,...Et(!0)];var Vr=class extends Mt(Nt(te(X))){constructor(){super(...arguments);this.size=oi.SIZE;this.variant=oi.VARIANT;this.dataAriaLevel=oi.DATA_ARIA_LEVEL;this.expanded=oi.EXPANDED;this.togglePosition=oi.TOGGLE_POSITION;this.headSectionId=`head-section-${Ve()}`;this.bodySectionId=`body-section-${Ve()}`}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===Y.ENTER||e===Y.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?S`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:W}renderHeadingText(){return this.headerText?S`<mdc-text
857
+ `,Rf=[bx,...Et(!0)];var Vr=class extends Mt(Nt(te(X))){constructor(){super(...arguments);this.size=si.SIZE;this.variant=si.VARIANT;this.dataAriaLevel=si.DATA_ARIA_LEVEL;this.expanded=si.EXPANDED;this.togglePosition=si.TOGGLE_POSITION;this.headSectionId=`head-section-${Ve()}`;this.bodySectionId=`body-section-${Ve()}`}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===Y.ENTER||e===Y.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?S`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:W}renderHeadingText(){return this.headerText?S`<mdc-text
836
858
  id="${this.headSectionId}"
837
859
  type="${st.BODY_LARGE_REGULAR}"
838
860
  tagname=${ut.SPAN}
@@ -868,7 +890,7 @@
868
890
  role="${et.REGION}"
869
891
  >
870
892
  <slot></slot>
871
- </div>`:W}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=oi.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=oi.SIZE),t.has("variant")&&!this.variant&&(this.variant=oi.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=oi.TOGGLE_POSITION)}render(){return S` ${this.renderHeader()} ${this.renderBody()} `}};Vr.styles=[...X.styles,...Of],h([u({type:String,reflect:!0})],Vr.prototype,"size",2),h([u({type:String,reflect:!0})],Vr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Vr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],Vr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Vr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Vr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],Vr.prototype,"togglePosition",2);var Vs=Vr;var bx=H`
893
+ </div>`:W}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=si.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=si.SIZE),t.has("variant")&&!this.variant&&(this.variant=si.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=si.TOGGLE_POSITION)}render(){return S` ${this.renderHeader()} ${this.renderBody()} `}};Vr.styles=[...X.styles,...Rf],h([u({type:String,reflect:!0})],Vr.prototype,"size",2),h([u({type:String,reflect:!0})],Vr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Vr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],Vr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Vr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Vr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],Vr.prototype,"togglePosition",2);var Vs=Vr;var yx=H`
872
894
  :host::part(header-section) {
873
895
  display: flex;
874
896
  align-items: center;
@@ -882,7 +904,7 @@
882
904
  :host::part(toggle-button) {
883
905
  margin: 0.125rem;
884
906
  }
885
- `,Rf=[bx];var no=class extends Vs{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
+ `,Df=[yx];var lo=class extends Vs{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`
886
908
  <mdc-button
887
909
  part="toggle-button"
888
910
  ?disabled="${this.disabled}"
@@ -908,7 +930,7 @@
908
930
  ${o?W:this.renderToggleButton()}
909
931
  </div>
910
932
  </div>
911
- `}};no.styles=[...Vs.styles,...Rf],h([qt({slot:"leading-controls"})],no.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],no.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],no.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],no.prototype,"closeButtonAriaLabel",2);var uh=no;var Fl=B.constructTagName("accordion");uh.register(Fl);var yx=uh;var Ex=H`
933
+ `}};lo.styles=[...Vs.styles,...Df],h([qt({slot:"leading-controls"})],lo.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],lo.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],lo.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],lo.prototype,"closeButtonAriaLabel",2);var fh=lo;var $l=B.constructTagName("accordion");fh.register($l);var Ex=fh;var Tx=H`
912
934
  :host {
913
935
  --mdc-accordiongroup-items-border-color: var(--mds-color-theme-outline-secondary-normal);
914
936
 
@@ -952,7 +974,7 @@
952
974
  :host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
953
975
  border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
954
976
  }
955
- `,Df=[Ex,...Et()];var ki=class extends X{constructor(){super();this.size=en.SIZE;this.variant=en.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=en.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=en.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return S` <slot></slot> `}};ki.styles=[...X.styles,...Df],h([u({type:String,reflect:!0})],ki.prototype,"size",2),h([u({type:String,reflect:!0})],ki.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],ki.prototype,"allowMultiple",2),h([qt({selector:Fl})],ki.prototype,"accordionItems",2),h([qt({selector:Pl})],ki.prototype,"accordionButtonItems",2);var fh=ki;fh.register(Mf);var Tx=fh;Vs.register(Pl);var xx=Vs;var ce=a=>{class o extends a{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var Ax=H`
977
+ `,Pf=[Tx,...Et()];var wi=class extends X{constructor(){super();this.size=en.SIZE;this.variant=en.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=en.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=en.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return S` <slot></slot> `}};wi.styles=[...X.styles,...Pf],h([u({type:String,reflect:!0})],wi.prototype,"size",2),h([u({type:String,reflect:!0})],wi.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],wi.prototype,"allowMultiple",2),h([qt({selector:$l})],wi.prototype,"accordionItems",2),h([qt({selector:Fl})],wi.prototype,"accordionButtonItems",2);var vh=wi;vh.register(Of);var xx=vh;Vs.register(Fl);var Ax=Vs;var ce=a=>{class o extends a{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var Sx=H`
956
978
  :host {
957
979
  height: 1.5rem;
958
980
  gap: 0.25rem;
@@ -1065,16 +1087,16 @@
1065
1087
  --mdc-chip-icon-color: ButtonText;
1066
1088
  }
1067
1089
  }
1068
- `,Pf=[yt,Ax,...Et()];var $l=B.constructTagName("alertchip"),qo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},zs={VARIANT:qo.NEUTRAL,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN,SIZE:Uo[24],ROLE:et.BUTTON};var Ff=a=>({[qo.ERROR]:"error-legacy-badge-filled",[qo.INFORMATIONAL]:"info-badge-filled",[qo.NEUTRAL]:"dnd-presence-badge-filled",[qo.SUCCESS]:"check-circle-badge-filled",[qo.WARNING]:"warning-badge-filled"})[a];var Bs=class extends ce(fe){constructor(){super(...arguments);this.variant=zs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=zs.SIZE,this.role=zs.ROLE}render(){return S`
1069
- <mdc-icon part="icon" name="${this.iconName||Ff(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1090
+ `,Ff=[yt,Sx,...Et()];var Vl=B.constructTagName("alertchip"),qo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},zs={VARIANT:qo.NEUTRAL,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN,SIZE:Go[24],ROLE:et.BUTTON};var $f=a=>({[qo.ERROR]:"error-legacy-badge-filled",[qo.INFORMATIONAL]:"info-badge-filled",[qo.NEUTRAL]:"dnd-presence-badge-filled",[qo.SUCCESS]:"check-circle-badge-filled",[qo.WARNING]:"warning-badge-filled"})[a];var Bs=class extends ce(fe){constructor(){super(...arguments);this.variant=zs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=zs.SIZE,this.role=zs.ROLE}render(){return S`
1091
+ <mdc-icon part="icon" name="${this.iconName||$f(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1070
1092
  ${this.label?S`<mdc-text part="label" type="${zs.TEXT_TYPE}" tagname="${zs.TAG_NAME}"
1071
1093
  >${this.label}</mdc-text
1072
1094
  >`:W}
1073
- `}};Bs.styles=[...X.styles,...Pf],h([u({type:String,reflect:!0})],Bs.prototype,"variant",2),h([u({type:String})],Bs.prototype,"label",2);var vh=Bs;vh.register($l);var Sx=vh;var{I:Ix}=Qu;var Vl=a=>a.strings===void 0,$f=()=>document.createComment(""),Hs=(a,o,t)=>{var l;let e=a._$AA.parentNode,i=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=e.insertBefore($f(),i),f=e.insertBefore($f(),i);t=new Ix(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,b=f!==a;if(b){let A;(l=t._$AQ)==null||l.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==i||b){let A=t._$AA;for(;A!==c;){let F=A.nextSibling;e.insertBefore(A,i),A=F}}}return t},lo=(a,o,t=a)=>(a._$AI(o,t),a),Cx={},zl=(a,o=Cx)=>a._$AH=o,Vf=a=>a._$AH,Bl=a=>{var e;(e=a._$AP)==null||e.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var gr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},wi=a=>(...o)=>({_$litDirective$:a,values:o}),si=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 sn=(a,o)=>{var e;let t=a._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),sn(i,o);return!0},Hl=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},zf=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),wx(o)}};function _x(a){this._$AN!==void 0?(Hl(this),this._$AM=a,zf(this)):this._$AM=a}function kx(a,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 l=t;l<e.length;l++)sn(e[l],!1),Hl(e[l]);else e!=null&&(sn(e,!1),Hl(e));else sn(this,a)}var wx=a=>{var o,t;a.type==gr.CHILD&&((o=a._$AP)!=null||(a._$AP=kx),(t=a._$AQ)!=null||(a._$AQ=_x))},Ul=class extends si{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),zf(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&&(sn(this,o),Hl(this))}setValue(o){if(Vl(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 Bf=()=>new bh,bh=class{},gh=new WeakMap,Hf=wi(class extends Ul{render(a){return W}update(a,[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=a.options)==null?void 0:e.host,this.rt(this.ct=a.element)),W}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=gh.get(t);e===void 0&&(e=new WeakMap,gh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=gh.get((a=this.ht)!=null?a: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 Wf=AT(Uf());var yh={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 Nx=[yt,H`
1095
+ `}};Bs.styles=[...X.styles,...Ff],h([u({type:String,reflect:!0})],Bs.prototype,"variant",2),h([u({type:String})],Bs.prototype,"label",2);var gh=Bs;gh.register(Vl);var Ix=gh;var{I:Cx}=Ju;var zl=a=>a.strings===void 0,Vf=()=>document.createComment(""),Hs=(a,o,t)=>{var l;let e=a._$AA.parentNode,i=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=e.insertBefore(Vf(),i),f=e.insertBefore(Vf(),i);t=new Cx(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,b=f!==a;if(b){let A;(l=t._$AQ)==null||l.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==i||b){let A=t._$AA;for(;A!==c;){let F=A.nextSibling;e.insertBefore(A,i),A=F}}}return t},co=(a,o,t=a)=>(a._$AI(o,t),a),_x={},Bl=(a,o=_x)=>a._$AH=o,zf=a=>a._$AH,Hl=a=>{var e;(e=a._$AP)==null||e.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var gr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ni=a=>(...o)=>({_$litDirective$:a,values:o}),ai=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 sn=(a,o)=>{var e;let t=a._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),sn(i,o);return!0},Ul=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},Bf=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),Nx(o)}};function kx(a){this._$AN!==void 0?(Ul(this),this._$AM=a,Bf(this)):this._$AM=a}function wx(a,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 l=t;l<e.length;l++)sn(e[l],!1),Ul(e[l]);else e!=null&&(sn(e,!1),Ul(e));else sn(this,a)}var Nx=a=>{var o,t;a.type==gr.CHILD&&((o=a._$AP)!=null||(a._$AP=wx),(t=a._$AQ)!=null||(a._$AQ=kx))},Gl=class extends ai{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),Bf(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&&(sn(this,o),Ul(this))}setValue(o){if(zl(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 Hf=()=>new yh,yh=class{},bh=new WeakMap,Uf=Ni(class extends Gl{render(a){return W}update(a,[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=a.options)==null?void 0:e.host,this.rt(this.ct=a.element)),W}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=bh.get(t);e===void 0&&(e=new WeakMap,bh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=bh.get((a=this.ht)!=null?a: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 Yf=ST(Gf());var Eh={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 Lx=[yt,H`
1074
1096
  :host svg {
1075
1097
  display: block;
1076
1098
  }
1077
- `],Gf=Nx;var Kf=B.constructTagName("animation"),Eh={AUTO_PLAY:!0,LOOP:"true"};var ai=class extends X{constructor(){super(...arguments);this.loop=Eh.LOOP;this.autoplay=Eh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Bf();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=Wf.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&&yh[this.name]?import(`@momentum-design/animations/dist/lottie${yh[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" ${Hf(this.containerRef)}></div>`}};ai.styles=[...X.styles,...Gf],h([u({type:String,reflect:!0})],ai.prototype,"name",2),h([u({type:String,reflect:!0})],ai.prototype,"src",2),h([u({type:String,reflect:!0})],ai.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],ai.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],ai.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],ai.prototype,"ariaLabelledby",2);var Th=ai;Th.register(Kf);var Lx=Th;var Kl=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Ci.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ci.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=$s(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,l){let{length:c}=this.focusableElements;if(i===-1)return l>0?0:c-1;let f=i+l;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var l;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((l=i.shadowRoot)!=null&&l.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(l=>this.isEqualFocusNode(i,l))}isEqualFocusNode(i,l){return i.nodeType>=0?l.isEqualNode(i)&&l===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let l=this.getDeepActiveElement(),c=this.findElement(l);i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let b=this.focusableElements[this.focusTrapIndex];b.tagName!=="IFRAME"&&b&&(i.preventDefault(),b.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 Wl=a=>{class o extends a{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 Yl=B.constructTagName("link"),jl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},ql={LARGE:1,MIDSIZE:.875,SMALL:.75},Yf={LINK_SIZE:jl.LARGE};var jf=B.constructTagName("card"),xh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Mx={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:xh.BORDER,ORIENTATION:Mx.VERTICAL,TITLE_TYPE:st.HEADING_SMALL_BOLD,SUBTITLE_TYPE:st.BODY_MIDSIZE_MEDIUM,TAGNAME:ut.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Yl,BUTTON:Ii};var Us=a=>{class o extends a{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(l=>{e===xh.PROMOTIONAL?l.setAttribute("color",Go.PROMOTIONAL):l.setAttribute("color",Go.DEFAULT)})}handleFooterSlot(e,i){var c,f,b;let l=[];e===Ce.LINK&&((c=this.footerLink)!=null&&c.length)?l=this.footerLink:e===Ce.BUTTON&&i===Vt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?l=this.footerButtonPrimary:e===Ce.BUTTON&&i===Vt.SECONDARY&&((b=this.footerButtonSecondary)!=null&&b.length)&&(l=this.footerButtonSecondary);for(let A=1;A<l.length;A+=1)l[A].remove();l.forEach(A=>{A.matches(e)||A.remove(),i&&A.setAttribute("variant",i)})}renderFooter(){return S` <slot name="footer">
1099
+ `],Kf=Lx;var Wf=B.constructTagName("animation"),Th={AUTO_PLAY:!0,LOOP:"true"};var ni=class extends X{constructor(){super(...arguments);this.loop=Th.LOOP;this.autoplay=Th.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Hf();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=Yf.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&&Eh[this.name]?import(`@momentum-design/animations/dist/lottie${Eh[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" ${Uf(this.containerRef)}></div>`}};ni.styles=[...X.styles,...Kf],h([u({type:String,reflect:!0})],ni.prototype,"name",2),h([u({type:String,reflect:!0})],ni.prototype,"src",2),h([u({type:String,reflect:!0})],ni.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],ni.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],ni.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],ni.prototype,"ariaLabelledby",2);var xh=ni;xh.register(Wf);var Mx=xh;var Wl=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),_i.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),_i.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=$s(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,l){let{length:c}=this.focusableElements;if(i===-1)return l>0?0:c-1;let f=i+l;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var l;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((l=i.shadowRoot)!=null&&l.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(l=>this.isEqualFocusNode(i,l))}isEqualFocusNode(i,l){return i.nodeType>=0?l.isEqualNode(i)&&l===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let l=this.getDeepActiveElement(),c=this.findElement(l);i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let b=this.focusableElements[this.focusTrapIndex];b.tagName!=="IFRAME"&&b&&(i.preventDefault(),b.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 Yl=a=>{class o extends a{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 jl=B.constructTagName("link"),ql={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Xl={LARGE:1,MIDSIZE:.875,SMALL:.75},jf={LINK_SIZE:ql.LARGE};var qf=B.constructTagName("card"),Ah={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Ox={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:Ah.BORDER,ORIENTATION:Ox.VERTICAL,TITLE_TYPE:st.HEADING_SMALL_BOLD,SUBTITLE_TYPE:st.BODY_MIDSIZE_MEDIUM,TAGNAME:ut.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:jl,BUTTON:Ci};var Us=a=>{class o extends a{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(l=>{e===Ah.PROMOTIONAL?l.setAttribute("color",ei.PROMOTIONAL):l.setAttribute("color",ei.DEFAULT)})}handleFooterSlot(e,i){var c,f,b;let l=[];e===Ce.LINK&&((c=this.footerLink)!=null&&c.length)?l=this.footerLink:e===Ce.BUTTON&&i===Vt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?l=this.footerButtonPrimary:e===Ce.BUTTON&&i===Vt.SECONDARY&&((b=this.footerButtonSecondary)!=null&&b.length)&&(l=this.footerButtonSecondary);for(let A=1;A<l.length;A+=1)l[A].remove();l.forEach(A=>{A.matches(e)||A.remove(),i&&A.setAttribute("variant",i)})}renderFooter(){return S` <slot name="footer">
1078
1100
  <div part="footer">
1079
1101
  <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Ce.LINK)}></slot>
1080
1102
  <slot
@@ -1086,7 +1108,7 @@
1086
1108
  @slotchange=${()=>this.handleFooterSlot(Ce.BUTTON,Vt.PRIMARY)}
1087
1109
  ></slot>
1088
1110
  </div>
1089
- </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 We=[],qf=1e3,Ox=3,Ah=-2,Sh=-1,co=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return We.length}pushHost(){var o,t;return this.has(this.host)?!1:(We.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=We.filter(l=>l.stackGroupName===o.stackGroupName),e=t.indexOf(o),i=[];for(let l=t.length-1;l>=e;l-=1){let c=t[l];(c===o||c.triggerID!==o.triggerID)&&i.push(c)}return this.remove(i),o}pop(){var t;let o=We.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let e=We.length-1;e>=0;e-=1){let i=We[e],l=o(i,e);if(l===!1)break;l!=="skip"&&t.push(i)}return this.remove(t)}peek(){return We.at(-1)}remove(o){var i,l;let t=o.filter(c=>We.includes(c)),e=t.reduce((c,f)=>Math.min(c,We.indexOf(f)),1/0);t.forEach(c=>{We.splice(We.indexOf(c),1)}),t.forEach(c=>{var f;(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=e;c<We.length;c+=1)(l=(i=We[c]).onComponentStackChanged)==null||l.call(i,"moved");return t}has(o){return We.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return We.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?qf+t*Ox:qf}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var Xl=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(i){var l;if(super.update(i),i.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Ah}`;let c=(l=this.triggerElementCache)==null?void 0:l.deref();c&&(c.style.zIndex=`${this.zIndex+Sh}`)}}createBackdrop(i){let l=document.createElement("div");l.classList.add(`${i}-backdrop`);let c=document.createElement("style"),f=this.isBackdropInvisible?"transparent":getComputedStyle(this).getPropertyValue("--mdc-backdrop-mixin-background-color")||"var(--mds-color-theme-common-overlays-secondary-normal)";c.textContent=`
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 We=[],Xf=1e3,Rx=3,Sh=-2,Ih=-1,ho=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return We.length}pushHost(){var o,t;return this.has(this.host)?!1:(We.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=We.filter(l=>l.stackGroupName===o.stackGroupName),e=t.indexOf(o),i=[];for(let l=t.length-1;l>=e;l-=1){let c=t[l];(c===o||c.triggerID!==o.triggerID)&&i.push(c)}return this.remove(i),o}pop(){var t;let o=We.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let e=We.length-1;e>=0;e-=1){let i=We[e],l=o(i,e);if(l===!1)break;l!=="skip"&&t.push(i)}return this.remove(t)}peek(){return We.at(-1)}remove(o){var i,l;let t=o.filter(c=>We.includes(c)),e=t.reduce((c,f)=>Math.min(c,We.indexOf(f)),1/0);t.forEach(c=>{We.splice(We.indexOf(c),1)}),t.forEach(c=>{var f;(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=e;c<We.length;c+=1)(l=(i=We[c]).onComponentStackChanged)==null||l.call(i,"moved");return t}has(o){return We.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return We.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?Xf+t*Rx:Xf}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var Zl=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(i){var l;if(super.update(i),i.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Sh}`;let c=(l=this.triggerElementCache)==null?void 0:l.deref();c&&(c.style.zIndex=`${this.zIndex+Ih}`)}}createBackdrop(i){let l=document.createElement("div");l.classList.add(`${i}-backdrop`);let c=document.createElement("style"),f=this.isBackdropInvisible?"transparent":getComputedStyle(this).getPropertyValue("--mdc-backdrop-mixin-background-color")||"var(--mds-color-theme-common-overlays-secondary-normal)";c.textContent=`
1090
1112
  .${i}-backdrop {
1091
1113
  position: fixed;
1092
1114
  top: 0;
@@ -1094,9 +1116,9 @@
1094
1116
  width: 100%;
1095
1117
  height: 100%;
1096
1118
  background: ${f};
1097
- z-index: ${this.zIndex+Ah};
1119
+ z-index: ${this.zIndex+Sh};
1098
1120
  }
1099
- `,l.appendChild(c);let A=document.getElementById(this.backdropAppendTo)||this.parentElement;A==null||A.appendChild(l),this.backdropElement=l}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+Sh}`,["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 Zl=B.constructTagName("responsivesettingsprovider"),zr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},Xf=["float","dialog"],Zf=["unknown","mobile","desktop","tablet"];var Ql=class{constructor(o={}){this.media=zr.MEDIA;this.forceFullscreenDialog=zr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=zr.POPOVER_POSITIONING;Object.assign(this,o)}};Ql.context=Zl;var Jl=Ql;var Gs=class extends Se{constructor(){super({context:Jl.context,initialValue:new Jl({media:zr.MEDIA,popoverPositioning:zr.POPOVER_POSITIONING,forceFullscreenDialog:zr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=zr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=zr.POPOVER_POSITIONING;this.privateMedia=zr.MEDIA}static get Context(){return Jl.context}set popoverPositioning(t){Xf.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){Zf.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})],Gs.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Gs.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Gs.prototype,"media",1);var Ih=Gs;Ih.register(Zl);var Ch=Ih;var Qf=B.constructTagName("dialog"),_h={DEFAULT:"default",PROMOTIONAL:"promotional"},Cr={VISIBLE:!1,Z_INDEX:1e3,ROLE:et.DIALOG,SIZE:"small",HEADER_TAG_NAME:ut.H2,DESCRIPTION_TAG_NAME:ut.P,CANCEL_ICON:"cancel-bold",VARIANT:_h.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var u1=[et.DIALOG,et.ALERTDIALOG];var ho=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 Rx=H`
1121
+ `,l.appendChild(c);let A=document.getElementById(this.backdropAppendTo)||this.parentElement;A==null||A.appendChild(l),this.backdropElement=l}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+Ih}`,["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 Ql=B.constructTagName("responsivesettingsprovider"),zr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},Zf=["float","dialog"],Qf=["unknown","mobile","desktop","tablet"];var Jl=class{constructor(o={}){this.media=zr.MEDIA;this.forceFullscreenDialog=zr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=zr.POPOVER_POSITIONING;Object.assign(this,o)}};Jl.context=Ql;var td=Jl;var Gs=class extends Se{constructor(){super({context:td.context,initialValue:new td({media:zr.MEDIA,popoverPositioning:zr.POPOVER_POSITIONING,forceFullscreenDialog:zr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=zr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=zr.POPOVER_POSITIONING;this.privateMedia=zr.MEDIA}static get Context(){return td.context}set popoverPositioning(t){Zf.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){Qf.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})],Gs.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Gs.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Gs.prototype,"media",1);var Ch=Gs;Ch.register(Ql);var _h=Ch;var Jf=B.constructTagName("dialog"),kh={DEFAULT:"default",PROMOTIONAL:"promotional"},Cr={VISIBLE:!1,Z_INDEX:1e3,ROLE:et.DIALOG,SIZE:"small",HEADER_TAG_NAME:ut.H2,DESCRIPTION_TAG_NAME:ut.P,CANCEL_ICON:"cancel-bold",VARIANT:kh.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var f1=[et.DIALOG,et.ALERTDIALOG];var po=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 Dx=H`
1100
1122
  :host {
1101
1123
  --mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
1102
1124
  --mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -1249,7 +1271,7 @@
1249
1271
  mdc-text::part(text) {
1250
1272
  margin: 0;
1251
1273
  }
1252
- `,Jf=[Rx];var re=class extends Mt(Nt(Xl(Wl(Kl(Us(X)))))){constructor(){super(...arguments);this.responsiveSettingsContext=Ie.consume({host:this,context:Ch.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new co(this);this.id="";this.visible=Cr.VISIBLE;this.internalSize=Cr.SIZE;this.variant=Cr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=Cr.HEADER_TAG_NAME;this.descriptionTagName=Cr.DESCRIPTION_TAG_NAME;this.role=Cr.ROLE;this.disableAriaHasPopup=Cr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=Cr.FOCUS_TRAP;this.hideBackdrop=Cr.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Y.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(),ho.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(),ho.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=Cr.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(),ho.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var i,l,c,f,b;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)),(l=this.setInitialFocus)==null||l.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),ho.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(b=this.deactivateFocusTrap)==null||b.call(this),this.focusBackToTrigger(),ho.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=[Dx];var re=class extends Mt(Nt(Zl(Yl(Wl(Us(X)))))){constructor(){super(...arguments);this.responsiveSettingsContext=Ie.consume({host:this,context:_h.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new ho(this);this.id="";this.visible=Cr.VISIBLE;this.internalSize=Cr.SIZE;this.variant=Cr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=Cr.HEADER_TAG_NAME;this.descriptionTagName=Cr.DESCRIPTION_TAG_NAME;this.role=Cr.ROLE;this.disableAriaHasPopup=Cr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=Cr.FOCUS_TRAP;this.hideBackdrop=Cr.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Y.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(),po.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(),po.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=Cr.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(),po.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var i,l,c,f,b;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)),(l=this.setInitialFocus)==null||l.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),po.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(b=this.deactivateFocusTrap)==null||b.call(this),this.focusBackToTrigger(),po.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">
1253
1275
  <div part="header">
1254
1276
  <slot name="header-prefix"></slot>
1255
1277
  <mdc-text
@@ -1280,7 +1302,7 @@
1280
1302
  @click="${this.closeDialog}"
1281
1303
  ></mdc-button>
1282
1304
  ${this.renderBody()} ${this.renderFooter()}
1283
- `}};re.styles=[...X.styles,...Jf],h([u({type:String,reflect:!0})],re.prototype,"id",2),h([u({type:String,reflect:!0})],re.prototype,"triggerID",2),h([u({type:Boolean,reflect:!0})],re.prototype,"visible",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],re.prototype,"zIndex",1),h([u({type:String,reflect:!0})],re.prototype,"size",1),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:"aria-label"})],re.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],re.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],re.prototype,"ariaDescribedby",2),h([u({type:String,reflect:!0,attribute:"aria-description"})],re.prototype,"ariaDescription",2),h([u({type:String,reflect:!0,attribute:"header-text"})],re.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"description-text"})],re.prototype,"descriptionText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],re.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"description-tag-name"})],re.prototype,"descriptionTagName",2),h([u({type:String,reflect:!0})],re.prototype,"role",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],re.prototype,"disableAriaHasPopup",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],re.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],re.prototype,"hideBackdrop",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],re.prototype,"stackGroupName",2);var Ks=re;var Dx=H`
1305
+ `}};re.styles=[...X.styles,...tv],h([u({type:String,reflect:!0})],re.prototype,"id",2),h([u({type:String,reflect:!0})],re.prototype,"triggerID",2),h([u({type:Boolean,reflect:!0})],re.prototype,"visible",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],re.prototype,"zIndex",1),h([u({type:String,reflect:!0})],re.prototype,"size",1),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:"aria-label"})],re.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],re.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],re.prototype,"ariaDescribedby",2),h([u({type:String,reflect:!0,attribute:"aria-description"})],re.prototype,"ariaDescription",2),h([u({type:String,reflect:!0,attribute:"header-text"})],re.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"description-text"})],re.prototype,"descriptionText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],re.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"description-tag-name"})],re.prototype,"descriptionTagName",2),h([u({type:String,reflect:!0})],re.prototype,"role",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],re.prototype,"disableAriaHasPopup",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],re.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],re.prototype,"hideBackdrop",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],re.prototype,"stackGroupName",2);var Ks=re;var Px=H`
1284
1306
  :host {
1285
1307
  --mdc-announcementdialog-illustration-background-color: var(--mds-color-theme-background-solid-secondary-normal);
1286
1308
 
@@ -1329,7 +1351,7 @@
1329
1351
  margin-inline-end: 0;
1330
1352
  }
1331
1353
  }
1332
- `,tv=[Dx];var ev=B.constructTagName("announcementdialog");var rv={SIZE:"medium"};var Ws=class extends Ks{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=rv.SIZE}connectedCallback(){super.connectedCallback(),this.variant=_h.DEFAULT}renderHeader(){return S`${W}`}renderBody(){return S`
1354
+ `,ev=[Px];var rv=B.constructTagName("announcementdialog");var iv={SIZE:"medium"};var Ws=class extends Ks{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=iv.SIZE}connectedCallback(){super.connectedCallback(),this.variant=kh.DEFAULT}renderHeader(){return S`${W}`}renderBody(){return S`
1333
1355
  <div part="body">
1334
1356
  <div part="illustration-container">
1335
1357
  <slot name="illustration-container">
@@ -1349,7 +1371,7 @@
1349
1371
  </slot>
1350
1372
  </div>
1351
1373
  </div>
1352
- `}};Ws.styles=[...Ks.styles,...tv],h([u({type:String,reflect:!0})],Ws.prototype,"illustration",2),h([u({type:String,reflect:!0})],Ws.prototype,"size",1);var kh=Ws;var td=B.constructTagName("illustrationprovider"),iv=["svg"],nn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var ed=class{};ed.context=td;var rd=ed;var po=class extends Se{constructor(){super({context:rd.context,initialValue:new rd});this.illustrationSet=nn.ILLUSTRATION_SET;this.fileExtension=nn.FILE_EXTENSION}static get Context(){return rd.context}updateValuesInContext(){this.fileExtension&&iv.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=nn.FILE_EXTENSION,this.context.value.fileExtension=nn.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})],po.prototype,"illustrationSet",2),h([u({type:String})],po.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],po.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],po.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],po.prototype,"cacheName",2);var ln=po;var Px=[yt,H`
1374
+ `}};Ws.styles=[...Ks.styles,...ev],h([u({type:String,reflect:!0})],Ws.prototype,"illustration",2),h([u({type:String,reflect:!0})],Ws.prototype,"size",1);var wh=Ws;var ed=B.constructTagName("illustrationprovider"),ov=["svg"],nn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var rd=class{};rd.context=ed;var id=rd;var mo=class extends Se{constructor(){super({context:id.context,initialValue:new id});this.illustrationSet=nn.ILLUSTRATION_SET;this.fileExtension=nn.FILE_EXTENSION}static get Context(){return id.context}updateValuesInContext(){this.fileExtension&&ov.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=nn.FILE_EXTENSION,this.context.value.fileExtension=nn.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})],mo.prototype,"illustrationSet",2),h([u({type:String})],mo.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],mo.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],mo.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],mo.prototype,"cacheName",2);var ln=mo;var Fx=[yt,H`
1353
1375
  :host {
1354
1376
  --mdc-illustration-size: auto;
1355
1377
  }
@@ -1357,7 +1379,7 @@
1357
1379
  height: var(--mdc-illustration-size);
1358
1380
  width: var(--mdc-illustration-size);
1359
1381
  }
1360
- `],ov=Px;var sv=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),av=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?sv(f).then(b=>b.text()):Dl(i,e).then(b=>b.get(f).then(A=>A||sv(f.clone()).then(F=>{var V;return F.status<400&&F.headers.has("content-type")?(V=b.set)==null?void 0:V.call(b,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var nv=B.constructTagName("illustration"),lv={NAME:void 0};var Ni=class extends X{constructor(){super();this.name=lv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ie.consume({host:this,context:ln.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:l,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&i&&e&&this.name){let b=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return av({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:b}).then(A=>{let F=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(F)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(b=>{this.handleIllustrationLoadedSuccess(b.default())}).catch(b=>{this.handleIllustrationLoadedFailure(b)})}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} `}};Ni.styles=[...X.styles,...ov],h([dt()],Ni.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Ni.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Ni.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Ni.prototype,"ariaLabelledby",2),h([dt()],Ni.prototype,"abortController",2);var wh=Ni;wh.register(nv);var Fx=wh;kh.register(ev);var $x=kh;var Vx=H`
1382
+ `],sv=Fx;var av=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),nv=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?av(f).then(b=>b.text()):Pl(i,e).then(b=>b.get(f).then(A=>A||av(f.clone()).then(F=>{var V;return F.status<400&&F.headers.has("content-type")?(V=b.set)==null?void 0:V.call(b,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var lv=B.constructTagName("illustration"),dv={NAME:void 0};var Li=class extends X{constructor(){super();this.name=dv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ie.consume({host:this,context:ln.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:l,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&i&&e&&this.name){let b=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return nv({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:b}).then(A=>{let F=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(F)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(b=>{this.handleIllustrationLoadedSuccess(b.default())}).catch(b=>{this.handleIllustrationLoadedFailure(b)})}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} `}};Li.styles=[...X.styles,...sv],h([dt()],Li.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Li.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Li.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Li.prototype,"ariaLabelledby",2),h([dt()],Li.prototype,"abortController",2);var Nh=Li;Nh.register(lv);var $x=Nh;wh.register(rv);var Vx=wh;var zx=H`
1361
1383
  :host {
1362
1384
  --mdc-appheader-height: 4rem;
1363
1385
  }
@@ -1391,7 +1413,7 @@
1391
1413
  justify-content: flex-end;
1392
1414
  flex: 1;
1393
1415
  }
1394
- `,dv=[Vx];var id=class extends X{render(){return S`
1416
+ `,cv=[zx];var od=class extends X{render(){return S`
1395
1417
  <header part="container">
1396
1418
  <div part="leading-section">
1397
1419
  <slot name="leading"></slot>
@@ -1401,7 +1423,7 @@
1401
1423
  <slot name="trailing"></slot>
1402
1424
  </div>
1403
1425
  </header>
1404
- `}};id.styles=[...X.styles,...dv];var Nh=id;var cv=B.constructTagName("appheader");Nh.register(cv);var zx=Nh;var hv=B.constructTagName("avatar"),Ye={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Lh=99,Bx="user-regular",Zt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Ys={TYPE:Ye.PHOTO,SIZE:Zt[32],ICON_NAME:Bx};var od=a=>{class o extends a{constructor(){super(...arguments);this.size=Ys.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 Hx=[yt,H`
1426
+ `}};od.styles=[...X.styles,...cv];var Lh=od;var hv=B.constructTagName("appheader");Lh.register(hv);var Bx=Lh;var pv=B.constructTagName("avatar"),Ye={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Mh=99,Hx="user-regular",Zt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Ys={TYPE:Ye.PHOTO,SIZE:Zt[32],ICON_NAME:Hx};var sd=a=>{class o extends a{constructor(){super(...arguments);this.size=Ys.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 Ux=[yt,H`
1405
1427
  :host {
1406
1428
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
1407
1429
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -1558,8 +1580,8 @@
1558
1580
  outline: 0.125rem solid;
1559
1581
  }
1560
1582
  }
1561
- `],pv=Hx;var mv=B.constructTagName("presence"),ze={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"},he={24:24,32:32,48:48,64:64,72:72,88:88,124:124},js={TYPE:ze.ACTIVE,SIZE:he[32]};var uv=a=>({[Zt[124]]:he[124],[Zt[88]]:he[88],[Zt[72]]:he[72],[Zt[64]]:he[64],[Zt[48]]:he[48],[Zt[32]]:he[32],[Zt[24]]:he[24]})[a]||he[32],fv=a=>({[Zt[124]]:4.75,[Zt[88]]:3,[Zt[72]]:2.5,[Zt[64]]:2.25,[Zt[48]]:1.75,[Zt[32]]:1.25,[Zt[24]]:1})[a]||1.25,vv=a=>({[Zt[124]]:st.HEADING_XLARGE_MEDIUM,[Zt[88]]:st.HEADING_LARGE_MEDIUM,[Zt[72]]:st.HEADING_MIDSIZE_MEDIUM,[Zt[64]]:st.HEADING_SMALL_MEDIUM,[Zt[48]]:st.HEADING_SMALL_MEDIUM,[Zt[32]]:st.BODY_MIDSIZE_MEDIUM,[Zt[24]]:st.BODY_SMALL_MEDIUM})[a]||st.BODY_MIDSIZE_MEDIUM;var dn=class extends od(ce(X)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Ye.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?S`
1562
- <mdc-presence part="presence" type="${this.presence}" size="${uv(this.size)}"></mdc-presence>
1583
+ `],mv=Ux;var uv=B.constructTagName("presence"),ze={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"},he={24:24,32:32,48:48,64:64,72:72,88:88,124:124},js={TYPE:ze.ACTIVE,SIZE:he[32]};var fv=a=>({[Zt[124]]:he[124],[Zt[88]]:he[88],[Zt[72]]:he[72],[Zt[64]]:he[64],[Zt[48]]:he[48],[Zt[32]]:he[32],[Zt[24]]:he[24]})[a]||he[32],vv=a=>({[Zt[124]]:4.75,[Zt[88]]:3,[Zt[72]]:2.5,[Zt[64]]:2.25,[Zt[48]]:1.75,[Zt[32]]:1.25,[Zt[24]]:1})[a]||1.25,gv=a=>({[Zt[124]]:st.HEADING_XLARGE_MEDIUM,[Zt[88]]:st.HEADING_LARGE_MEDIUM,[Zt[72]]:st.HEADING_MIDSIZE_MEDIUM,[Zt[64]]:st.HEADING_SMALL_MEDIUM,[Zt[48]]:st.HEADING_SMALL_MEDIUM,[Zt[32]]:st.BODY_MIDSIZE_MEDIUM,[Zt[24]]:st.BODY_SMALL_MEDIUM})[a]||st.BODY_MIDSIZE_MEDIUM;var dn=class extends sd(ce(X)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Ye.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?S`
1584
+ <mdc-presence part="presence" type="${this.presence}" size="${fv(this.size)}"></mdc-presence>
1563
1585
  `:W}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`
1564
1586
  <img
1565
1587
  part="photo"
@@ -1570,11 +1592,11 @@
1570
1592
  @error="${this.handleOnError}"
1571
1593
  />
1572
1594
  `}iconTemplate(){let t=this.iconName||Ys.ICON_NAME;return S`
1573
- <mdc-icon name="${J(t)}" length-unit="rem" size="${fv(this.size)}"></mdc-icon>
1574
- `}textTemplate(t){return S` <mdc-text type="${vv(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Lh?`${Lh}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let e="";return t===Ye.TEXT&&this.initials&&(e=this.generateInitialsText(this.initials)),t===Ye.COUNTER&&(this.counter||this.counter===0)&&(e=this.generateCounterText(this.counter)),this.textTemplate(e)}getTypeBasedOnInputs(){return this.src?Ye.PHOTO:this.iconName?Ye.ICON:this.initials?Ye.TEXT:this.counter||this.counter===0?Ye.COUNTER:Ye.ICON}getTemplateBasedOnType(t){switch(t){case Ye.PHOTO:return this.photoTemplate();case Ye.TEXT:case Ye.COUNTER:return this.generateTextContent(t);case Ye.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?S`<div part="loading-wrapper"><div part="loader"></div></div>`:W}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?W:t===Ye.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():W}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return S`
1595
+ <mdc-icon name="${J(t)}" length-unit="rem" size="${vv(this.size)}"></mdc-icon>
1596
+ `}textTemplate(t){return S` <mdc-text type="${gv(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Mh?`${Mh}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let e="";return t===Ye.TEXT&&this.initials&&(e=this.generateInitialsText(this.initials)),t===Ye.COUNTER&&(this.counter||this.counter===0)&&(e=this.generateCounterText(this.counter)),this.textTemplate(e)}getTypeBasedOnInputs(){return this.src?Ye.PHOTO:this.iconName?Ye.ICON:this.initials?Ye.TEXT:this.counter||this.counter===0?Ye.COUNTER:Ye.ICON}getTemplateBasedOnType(t){switch(t){case Ye.PHOTO:return this.photoTemplate();case Ye.TEXT:case Ye.COUNTER:return this.generateTextContent(t);case Ye.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?S`<div part="loading-wrapper"><div part="loader"></div></div>`:W}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?W:t===Ye.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():W}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return S`
1575
1597
  ${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
1576
1598
  ${this.getPresenceTemplateBasedOnType(t)}
1577
- `}};dn.styles=[...X.styles,...pv],h([dt()],dn.prototype,"isPhotoLoaded",2);var Mh=dn;var Ux=[yt,H`
1599
+ `}};dn.styles=[...X.styles,...mv],h([dt()],dn.prototype,"isPhotoLoaded",2);var Oh=dn;var Gx=[yt,H`
1578
1600
  :host {
1579
1601
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
1580
1602
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -1668,17 +1690,17 @@
1668
1690
  :host::part(mdc-presence-icon__scheduled) {
1669
1691
  color: var(--mdc-presence-scheduled-background-color);
1670
1692
  }
1671
- `],gv=Ux;var bv=a=>{switch(a){case ze.AWAY:return"recents-presence-badge-filled";case ze.AWAY_CALLING:return"away-calling-presence-filled";case ze.BUSY:return"busy-presence-bold";case ze.DND:return"dnd-presence-badge-filled";case ze.MEETING:return"camera-filled";case ze.ON_CALL:return"handset-filled";case ze.ON_DEVICE:return"generic-device-video-badge-filled";case ze.ON_MOBILE:return"phone-badge-filled";case ze.PAUSE:return"pause-badge-filled";case ze.PTO:return"pto-presence-filled";case ze.PRESENTING:return"share-screen-badge-filled";case ze.QUIET:return"quiet-hours-presence-filled";case ze.SCHEDULED:return"meetings-presence-badge-filled";case ze.ACTIVE:default:return"active-presence-small-filled"}},yv=a=>({[he[124]]:2.25,[he[88]]:1.625,[he[72]]:1.3125,[he[64]]:1.1875,[he[48]]:.875,[he[32]]:.875,[he[24]]:.875})[a]||.875;var Xo=class extends X{constructor(){super(...arguments);this.type=js.TYPE;this.size=js.SIZE;this.currentIconType=js.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(he).includes(t)?`${t}`:js.SIZE.toString())}get icon(){let t=bv(this.type);return t==="active-presence-small-filled"&&(this.type=js.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
+ `],bv=Gx;var yv=a=>{switch(a){case ze.AWAY:return"recents-presence-badge-filled";case ze.AWAY_CALLING:return"away-calling-presence-filled";case ze.BUSY:return"busy-presence-bold";case ze.DND:return"dnd-presence-badge-filled";case ze.MEETING:return"camera-filled";case ze.ON_CALL:return"handset-filled";case ze.ON_DEVICE:return"generic-device-video-badge-filled";case ze.ON_MOBILE:return"phone-badge-filled";case ze.PAUSE:return"pause-badge-filled";case ze.PTO:return"pto-presence-filled";case ze.PRESENTING:return"share-screen-badge-filled";case ze.QUIET:return"quiet-hours-presence-filled";case ze.SCHEDULED:return"meetings-presence-badge-filled";case ze.ACTIVE:default:return"active-presence-small-filled"}},Ev=a=>({[he[124]]:2.25,[he[88]]:1.625,[he[72]]:1.3125,[he[64]]:1.1875,[he[48]]:.875,[he[32]]:.875,[he[24]]:.875})[a]||.875;var Xo=class extends X{constructor(){super(...arguments);this.type=js.TYPE;this.size=js.SIZE;this.currentIconType=js.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(he).includes(t)?`${t}`:js.SIZE.toString())}get icon(){let t=yv(this.type);return t==="active-presence-small-filled"&&(this.type=js.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`
1672
1694
  <div part="presence-content">
1673
1695
  <mdc-icon
1674
1696
  part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
1675
1697
  name="${this.icon}"
1676
- size="${yv(this.size)}"
1698
+ size="${Ev(this.size)}"
1677
1699
  @load="${this.handleOnLoad}"
1678
1700
  @error="${this.handleOnError}"
1679
1701
  ></mdc-icon>
1680
1702
  </div>
1681
- `}};Xo.styles=[...X.styles,...gv],h([u({type:String,reflect:!0})],Xo.prototype,"type",2),h([u({type:Number,reflect:!0})],Xo.prototype,"size",2),h([dt()],Xo.prototype,"currentIconType",2);var Oh=Xo;Oh.register(mv);var Gx=Oh;Mh.register(hv);var Kx=Mh;var Wx=[yt,H`
1703
+ `}};Xo.styles=[...X.styles,...bv],h([u({type:String,reflect:!0})],Xo.prototype,"type",2),h([u({type:Number,reflect:!0})],Xo.prototype,"size",2),h([dt()],Xo.prototype,"currentIconType",2);var Rh=Xo;Rh.register(uv);var Kx=Rh;Oh.register(pv);var Wx=Oh;var Yx=[yt,H`
1682
1704
  :host {
1683
1705
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
1684
1706
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
@@ -1717,7 +1739,7 @@
1717
1739
  --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
1718
1740
  --mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
1719
1741
  }
1720
- `,...Et()],Ev=Wx;var cn=class extends od(ce(fe)){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(Zt).includes(t)?`${t}`:Ys.SIZE.toString())}render(){return S`
1742
+ `,...Et()],Tv=Yx;var cn=class extends sd(ce(fe)){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(Zt).includes(t)?`${t}`:Ys.SIZE.toString())}render(){return S`
1721
1743
  <div part="overlay" aria-hidden="true"></div>
1722
1744
  <mdc-avatar
1723
1745
  exportparts="content, photo, presence, loading-wrapper, loader"
@@ -1729,7 +1751,7 @@
1729
1751
  size="${J(this.size)}"
1730
1752
  src="${J(this.src)}"
1731
1753
  ></mdc-avatar>
1732
- `}};cn.styles=[...Ev],h([u({type:String,attribute:"aria-label"})],cn.prototype,"ariaLabel",2);var Rh=cn;var Tv=B.constructTagName("avatarbutton");Rh.register(Tv);var Yx=Rh;var xv=B.constructTagName("badge"),_r={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},sd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Dh={PRIMARY:"primary",SECONDARY:"secondary"},Li={TYPE:_r.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Dh.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var jx=[yt,H`
1754
+ `}};cn.styles=[...Tv],h([u({type:String,attribute:"aria-label"})],cn.prototype,"ariaLabel",2);var Dh=cn;var xv=B.constructTagName("avatarbutton");Dh.register(xv);var jx=Dh;var Av=B.constructTagName("badge"),_r={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},ad={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Ph={PRIMARY:"primary",SECONDARY:"secondary"},Mi={TYPE:_r.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Ph.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var qx=[yt,H`
1733
1755
  :host {
1734
1756
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1735
1757
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -1808,11 +1830,11 @@
1808
1830
  outline: none;
1809
1831
  }
1810
1832
  }
1811
- `],Av=jx;var ni=class extends ce(X){constructor(){super(...arguments);this.variant=Li.VARIANT;this.maxCounter=Li.MAX_COUNTER;this.overlay=Li.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>Li.MAX_COUNTER_LIMIT||e>Li.MAX_COUNTER_LIMIT?`${Li.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return S`
1833
+ `],Sv=qx;var li=class extends ce(X){constructor(){super(...arguments);this.variant=Mi.VARIANT;this.maxCounter=Mi.MAX_COUNTER;this.overlay=Mi.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>Mi.MAX_COUNTER_LIMIT||e>Mi.MAX_COUNTER_LIMIT?`${Mi.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return S`
1812
1834
  <mdc-icon
1813
1835
  part="badge-icon ${this.overlay?"badge-overlay":""}"
1814
1836
  name="${J(t)}"
1815
- size="${Li.ICON_SIZE}"
1837
+ size="${Mi.ICON_SIZE}"
1816
1838
  ></mdc-icon>
1817
1839
  `}getBadgeDot(){return S`<div part="badge-dot ${this.overlay?"badge-overlay":""}"></div>`}getBadgeCounterText(){return S`
1818
1840
  <mdc-text
@@ -1822,7 +1844,7 @@
1822
1844
  >
1823
1845
  ${this.getCounterText(this.maxCounter,this.counter)}
1824
1846
  </mdc-text>
1825
- `}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(Dh).includes(this.variant)&&(this.variant=Li.VARIANT);let{iconName:t,type:e}=this;switch(e){case _r.ICON:return this.getBadgeIcon(t||"");case _r.COUNTER:return this.getBadgeCounterText();case _r.SUCCESS:return this.getBadgeIcon(sd.SUCCESS_ICON_NAME);case _r.WARNING:return this.getBadgeIcon(sd.WARNING_ICON_NAME);case _r.ERROR:return this.getBadgeIcon(sd.ERROR_ICON_NAME);case _r.DOT:default:return this.type=_r.DOT,this.getBadgeDot()}}};ni.styles=[...X.styles,...Av],h([u({type:String,reflect:!0})],ni.prototype,"type",2),h([u({type:String,reflect:!0})],ni.prototype,"variant",2),h([u({type:Number})],ni.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],ni.prototype,"maxCounter",2),h([u({type:Boolean})],ni.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],ni.prototype,"ariaLabel",2);var Ph=ni;Ph.register(xv);var qx=Ph;var Xx=H`
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(Ph).includes(this.variant)&&(this.variant=Mi.VARIANT);let{iconName:t,type:e}=this;switch(e){case _r.ICON:return this.getBadgeIcon(t||"");case _r.COUNTER:return this.getBadgeCounterText();case _r.SUCCESS:return this.getBadgeIcon(ad.SUCCESS_ICON_NAME);case _r.WARNING:return this.getBadgeIcon(ad.WARNING_ICON_NAME);case _r.ERROR:return this.getBadgeIcon(ad.ERROR_ICON_NAME);case _r.DOT:default:return this.type=_r.DOT,this.getBadgeDot()}}};li.styles=[...X.styles,...Sv],h([u({type:String,reflect:!0})],li.prototype,"type",2),h([u({type:String,reflect:!0})],li.prototype,"variant",2),h([u({type:Number})],li.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],li.prototype,"maxCounter",2),h([u({type:Boolean})],li.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],li.prototype,"ariaLabel",2);var Fh=li;Fh.register(Av);var Xx=Fh;var Zx=H`
1826
1848
  :host {
1827
1849
  display: block;
1828
1850
  height: 100%;
@@ -1836,7 +1858,7 @@
1836
1858
  width: 100%;
1837
1859
  object-fit: contain;
1838
1860
  }
1839
- `,Sv=[Xx];var Zo=class extends X{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 c=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return c&&Object.entries(e).forEach(([f,b])=>{c.setAttribute(f,b)}),c||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} `}};Zo.styles=[...X.styles,...Sv],h([dt()],Zo.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],Zo.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],Zo.prototype,"altText",2);var Fh=Zo;var Iv=B.constructTagName("brandvisual");Fh.register(Iv);var Zx=Fh;var Qx=H`
1861
+ `,Iv=[Zx];var Zo=class extends X{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 c=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return c&&Object.entries(e).forEach(([f,b])=>{c.setAttribute(f,b)}),c||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} `}};Zo.styles=[...X.styles,...Iv],h([dt()],Zo.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],Zo.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],Zo.prototype,"altText",2);var $h=Zo;var Cv=B.constructTagName("brandvisual");$h.register(Cv);var Qx=$h;var Jx=H`
1840
1862
  :host {
1841
1863
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
1842
1864
  --mdc-bullet-size: 0.25rem;
@@ -1856,7 +1878,7 @@
1856
1878
  :host([size='large']) {
1857
1879
  --mdc-bullet-size: 1rem;
1858
1880
  }
1859
- `,Cv=[Qx];var _v=B.constructTagName("bullet"),kv={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var hn=class extends X{constructor(){super(...arguments);this.size=kv.SMALL}};hn.styles=[...X.styles,...Cv],h([u({type:String,reflect:!0})],hn.prototype,"size",2);var $h=hn;$h.register(_v);var Jx=$h;var wv=B.constructTagName("buttongroup"),tA={40:40,32:32,28:28,24:24},eA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},rA={PRIMARY:"primary",SECONDARY:"secondary"},ad={SIZE:tA[28],VARIANT:rA.PRIMARY,ORIENTATION:eA.HORIZONTAL};var iA=H`
1881
+ `,_v=[Jx];var kv=B.constructTagName("bullet"),wv={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var hn=class extends X{constructor(){super(...arguments);this.size=wv.SMALL}};hn.styles=[...X.styles,..._v],h([u({type:String,reflect:!0})],hn.prototype,"size",2);var Vh=hn;Vh.register(kv);var tA=Vh;var Nv=B.constructTagName("buttongroup"),eA={40:40,32:32,28:28,24:24},rA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},iA={PRIMARY:"primary",SECONDARY:"secondary"},nd={SIZE:eA[28],VARIANT:iA.PRIMARY,ORIENTATION:rA.HORIZONTAL};var oA=H`
1860
1882
  :host {
1861
1883
  --mdc-buttongroup-border-radius: 1.25rem;
1862
1884
  --mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1956,7 +1978,7 @@
1956
1978
  :host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
1957
1979
  width: 2.5rem;
1958
1980
  }
1959
- `,Nv=[yt,iA];var Mi=class extends X{constructor(){super(...arguments);this.orientation=ad.ORIENTATION;this.variant=ad.VARIANT;this.size=ad.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>`}};Mi.styles=[...X.styles,...Nv],h([u({type:String,reflect:!0})],Mi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Mi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Mi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Mi.prototype,"compact",2),h([qt({selector:"mdc-button"})],Mi.prototype,"buttons",2);var Vh=Mi;Vh.register(wv);var oA=Vh;var ie=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Lv=B.constructTagName("linksimple"),qs={INLINE:!1,INVERTED:!1};var sA=[yt,H`
1981
+ `,Lv=[yt,oA];var Oi=class extends X{constructor(){super(...arguments);this.orientation=nd.ORIENTATION;this.variant=nd.VARIANT;this.size=nd.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>`}};Oi.styles=[...X.styles,...Lv],h([u({type:String,reflect:!0})],Oi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Oi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Oi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Oi.prototype,"compact",2),h([qt({selector:"mdc-button"})],Oi.prototype,"buttons",2);var zh=Oi;zh.register(Nv);var sA=zh;var ie=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Mv=B.constructTagName("linksimple"),qs={INLINE:!1,INVERTED:!1};var aA=[yt,H`
1960
1982
  :host {
1961
1983
  --mdc-link-border-radius: 0.25rem;
1962
1984
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -2035,7 +2057,7 @@
2035
2057
  :host([inline])::part(anchor) {
2036
2058
  text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
2037
2059
  }
2038
- `,...Et(!0)],Mv=sA;var je=class extends ie(te(X)){constructor(){super(...arguments);this.inline=qs.INLINE;this.inverted=qs.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,l;this.disabled||(l=(i=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:i.click)==null||l.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
+ `,...Et(!0)],Ov=aA;var je=class extends ie(te(X)){constructor(){super(...arguments);this.inline=qs.INLINE;this.inverted=qs.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,l;this.disabled||(l=(i=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:i.click)==null||l.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`
2039
2061
  <a
2040
2062
  class="mdc-focus-ring"
2041
2063
  part="anchor"
@@ -2052,7 +2074,7 @@
2052
2074
  >
2053
2075
  ${this.renderAnchorContent()}
2054
2076
  </a>
2055
- `}};je.styles=[...X.styles,...Mv],je.shadowRootOptions={...X.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 li=je;var aA=H`
2077
+ `}};je.styles=[...X.styles,...Ov],je.shadowRootOptions={...X.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 di=je;var nA=H`
2056
2078
  :host {
2057
2079
  border: unset;
2058
2080
  }
@@ -2106,11 +2128,11 @@
2106
2128
  :host([variant='secondary'][soft-disabled])::part(anchor) {
2107
2129
  border-color: var(--mdc-button-border-color);
2108
2130
  }
2109
- `,Ov=[aA,...Et(!0)];var Xs=class extends Cl(li){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.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
+ `,Rv=[nA,...Et(!0)];var Xs=class extends Cl(di){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`
2110
2132
  ${this.prefixIcon?S`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
2111
2133
  <slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
2112
2134
  ${this.postfixIcon?S`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
2113
- `}};Xs.styles=[...Yo.styles,...Ov],h([u({type:Number,reflect:!0})],Xs.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xs.prototype,"softDisabled",2);var zh=Xs;var Rv=B.constructTagName("buttonlink");zh.register(Rv);var nA=zh;var nd=a=>{class o extends a{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
+ `}};Xs.styles=[...Yo.styles,...Rv],h([u({type:Number,reflect:!0})],Xs.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xs.prototype,"softDisabled",2);var Bh=Xs;var Dv=B.constructTagName("buttonlink");Bh.register(Dv);var lA=Bh;var ld=a=>{class o extends a{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">
2114
2136
  <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
2115
2137
  </div>`:W}renderIcon(){return this.iconName?S`<mdc-icon
2116
2138
  part="icon"
@@ -2128,7 +2150,7 @@
2128
2150
  >${this.subtitle}</mdc-text
2129
2151
  >`:W}
2130
2152
  </slot>
2131
- </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 lA=H`
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 dA=H`
2132
2154
  :host {
2133
2155
  --mdc-card-width: 20rem;
2134
2156
  align-items: stretch;
@@ -2236,7 +2258,7 @@
2236
2258
  mdc-text::part(text) {
2237
2259
  margin: 0;
2238
2260
  }
2239
- `,Dv=[yt,lA];var pn=class extends nd(Us(X)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",Vt.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return S`<div part="header">
2261
+ `,Pv=[yt,dA];var pn=class extends ld(Us(X)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",Vt.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return S`<div part="header">
2240
2262
  ${this.renderIcon()} ${this.renderTitle()}
2241
2263
  <div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
2242
2264
  </div>`}render(){return S`
@@ -2250,7 +2272,7 @@
2250
2272
  </div>
2251
2273
  ${this.renderFooter()}
2252
2274
  </div>
2253
- `}};pn.styles=[...X.styles,...Dv],h([qt({slot:"icon-button"})],pn.prototype,"iconButtons",2);var Br=pn;Br.register(jf);var dA=Br;var cA=H`
2275
+ `}};pn.styles=[...X.styles,...Pv],h([qt({slot:"icon-button"})],pn.prototype,"iconButtons",2);var Br=pn;Br.register(qf);var cA=Br;var hA=H`
2254
2276
  :host {
2255
2277
  cursor: pointer;
2256
2278
  user-select: none;
@@ -2272,7 +2294,7 @@
2272
2294
  :host([disabled])::part(image) {
2273
2295
  opacity: 0.5;
2274
2296
  }
2275
- `,Pv=[cA,...Et()];var ld=class extends nd(fe){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return S`
2297
+ `,Fv=[hA,...Et()];var dd=class extends ld(fe){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return S`
2276
2298
  <slot name="image"> ${this.renderImage()} </slot>
2277
2299
  <div part="body">
2278
2300
  <div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
@@ -2280,7 +2302,7 @@
2280
2302
  <slot name="body"></slot>
2281
2303
  <slot name="after-body"></slot>
2282
2304
  </div>
2283
- `}};ld.styles=[...Br.styles,...Pv];var Bh=ld;var Fv=B.constructTagName("cardbutton");Bh.register(Fv);var hA=Bh;var $v=B.constructTagName("cardcheckbox"),Hh={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},dd={CHECK:"check",CHECKBOX:"checkbox"},cd={SELECTION_TYPE:dd.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var pA=H`
2305
+ `}};dd.styles=[...Br.styles,...Fv];var Hh=dd;var $v=B.constructTagName("cardbutton");Hh.register($v);var pA=Hh;var Vv=B.constructTagName("cardcheckbox"),Uh={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},cd={CHECK:"check",CHECKBOX:"checkbox"},hd={SELECTION_TYPE:cd.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var mA=H`
2284
2306
  :host {
2285
2307
  cursor: pointer;
2286
2308
  user-select: none;
@@ -2337,12 +2359,12 @@
2337
2359
  :host([disabled])::part(check-icon) {
2338
2360
  color: var(--mds-color-theme-text-primary-disabled);
2339
2361
  }
2340
- `,Vv=[pA,...Et()];var Zs=class extends Mt(Nt(te(ei(Br)))){constructor(){super();this.checked=!1;this.selectionType=cd.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===Y.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===Y.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===Y.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?Hh.CHECKED:Hh.DEFAULT;switch(this.selectionType){case dd.CHECK:return S`<mdc-icon
2362
+ `,zv=[mA,...Et()];var Zs=class extends Mt(Nt(te(ri(Br)))){constructor(){super();this.checked=!1;this.selectionType=hd.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===Y.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===Y.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===Y.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?Uh.CHECKED:Uh.DEFAULT;switch(this.selectionType){case cd.CHECK:return S`<mdc-icon
2341
2363
  part="check check-icon"
2342
- size="${cd.ICON_SIZE}"
2343
- length-unit="${cd.ICON_LENGTH_UNIT}"
2364
+ size="${hd.ICON_SIZE}"
2365
+ length-unit="${hd.ICON_LENGTH_UNIT}"
2344
2366
  name="${t}"
2345
- ></mdc-icon>`;case dd.CHECKBOX:return S`<mdc-staticcheckbox
2367
+ ></mdc-icon>`;case cd.CHECKBOX:return S`<mdc-staticcheckbox
2346
2368
  part="check"
2347
2369
  ?checked="${this.checked}"
2348
2370
  ?disabled="${this.disabled}"
@@ -2354,7 +2376,7 @@
2354
2376
  <slot name="body"></slot>
2355
2377
  <slot name="after-body"></slot>
2356
2378
  </div>
2357
- `}};Zs.styles=[...Br.styles,...Vv],h([u({type:Boolean,reflect:!0})],Zs.prototype,"checked",2),h([u({type:String,attribute:"selection-type",reflect:!0})],Zs.prototype,"selectionType",2);var Uh=Zs;var mA=[H`
2379
+ `}};Zs.styles=[...Br.styles,...zv],h([u({type:Boolean,reflect:!0})],Zs.prototype,"checked",2),h([u({type:String,attribute:"selection-type",reflect:!0})],Zs.prototype,"selectionType",2);var Gh=Zs;var uA=[H`
2358
2380
  :host {
2359
2381
  --mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-input-normal);
2360
2382
  --mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-normal);
@@ -2432,15 +2454,15 @@
2432
2454
  --mdc-staticcheckbox-icon-color: GrayText;
2433
2455
  }
2434
2456
  }
2435
- `],zv=mA;var Bv=B.constructTagName("popover"),Lt={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"},Qo={TONAL:"tonal",CONTRAST:"contrast"},Gh={ABSOLUTE:"absolute",FIXED:"fixed"},uA={VIEWPORT:"viewport",DOCUMENT:"document"},bt={PLACEMENT:Lt.BOTTOM,TRIGGER:_e.CLICK,COLOR:Qo.TONAL,STRATEGY:Gh.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:uA.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},Oi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Hv=B.constructTagName("formfieldwrapper"),Wt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Xt={VALIDATION:Wt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Lt.TOP,TOGGLETIP_STRATEGY:Gh.ABSOLUTE},mn={TAGNAME:ut.SPAN,TYPE:st.BODY_MIDSIZE_REGULAR,HEADER_TYPE:st.BODY_MIDSIZE_BOLD};var Uv=B.constructTagName("checkbox"),hd={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Gv={ERROR:Wt.ERROR,DEFAULT:Wt.DEFAULT};var Kv=B.constructTagName("staticcheckbox");var mo=class extends te(X){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
2457
+ `],Bv=uA;var Hv=B.constructTagName("popover"),Lt={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"},Qo={TONAL:"tonal",CONTRAST:"contrast"},Kh={ABSOLUTE:"absolute",FIXED:"fixed"},fA={VIEWPORT:"viewport",DOCUMENT:"document"},bt={PLACEMENT:Lt.BOTTOM,TRIGGER:_e.CLICK,COLOR:Qo.TONAL,STRATEGY:Kh.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:fA.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},Ri={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Uv=B.constructTagName("formfieldwrapper"),Wt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Xt={VALIDATION:Wt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Lt.TOP,TOGGLETIP_STRATEGY:Kh.ABSOLUTE},mn={TAGNAME:ut.SPAN,TYPE:st.BODY_MIDSIZE_REGULAR,HEADER_TYPE:st.BODY_MIDSIZE_BOLD};var Gv=B.constructTagName("checkbox"),pd={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Kv={ERROR:Wt.ERROR,DEFAULT:Wt.DEFAULT};var Wv=B.constructTagName("staticcheckbox");var uo=class extends te(X){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
2436
2458
  <mdc-icon
2437
2459
  part="checkbox-icon"
2438
- name="${this.indeterminate?hd.INDETERMINATE:hd.CHECKED}"
2460
+ name="${this.indeterminate?pd.INDETERMINATE:pd.CHECKED}"
2439
2461
  size="1"
2440
2462
  length-unit="rem"
2441
2463
  ></mdc-icon>
2442
2464
  `:W;return S`<slot></slot>
2443
- <div part="icon-container">${t}</div>`}};mo.styles=[...X.styles,...zv],h([u({type:Boolean,reflect:!0})],mo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],mo.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],mo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],mo.prototype,"softDisabled",2);var Kh=mo;Kh.register(Kv);var fA=Kh;Uh.register($v);var vA=Uh;var gA=H`
2465
+ <div part="icon-container">${t}</div>`}};uo.styles=[...X.styles,...Bv],h([u({type:Boolean,reflect:!0})],uo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],uo.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],uo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],uo.prototype,"softDisabled",2);var Wh=uo;Wh.register(Wv);var vA=Wh;Gh.register(Vv);var gA=Gh;var bA=H`
2444
2466
  :host {
2445
2467
  cursor: pointer;
2446
2468
  user-select: none;
@@ -2493,7 +2515,7 @@
2493
2515
  :host([disabled])::part(image) {
2494
2516
  opacity: 0.5;
2495
2517
  }
2496
- `,Wv=[gA,...Et()];var Qs=class extends Mt(Nt(te(ei(Br)))){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===Y.SPACE){t.preventDefault();return}if(this.disabled)return;let l=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),c=l.indexOf(this);if(e===Y.DOWN||Y.RIGHT===e){let f=(c+1)%l.length;this.updateCardRadio(l,f),this.keyDownEventHandled()}else if(e===Y.UP||Y.LEFT===e){let f=(c-1+l.length)%l.length;this.updateCardRadio(l,f),this.keyDownEventHandled()}e===Y.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===Y.SPACE&&this.toggleChecked()}renderHeader(){return S`<div part="header">
2518
+ `,Yv=[bA,...Et()];var Qs=class extends Mt(Nt(te(ri(Br)))){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===Y.SPACE){t.preventDefault();return}if(this.disabled)return;let l=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),c=l.indexOf(this);if(e===Y.DOWN||Y.RIGHT===e){let f=(c+1)%l.length;this.updateCardRadio(l,f),this.keyDownEventHandled()}else if(e===Y.UP||Y.LEFT===e){let f=(c-1+l.length)%l.length;this.updateCardRadio(l,f),this.keyDownEventHandled()}e===Y.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===Y.SPACE&&this.toggleChecked()}renderHeader(){return S`<div part="header">
2497
2519
  ${this.renderIcon()} ${this.renderTitle()}
2498
2520
  <mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
2499
2521
  </div>`}render(){return S`
@@ -2504,7 +2526,7 @@
2504
2526
  <slot name="body"></slot>
2505
2527
  <slot name="after-body"></slot>
2506
2528
  </div>
2507
- `}};Qs.styles=[...Br.styles,...Wv],h([u({type:Boolean,reflect:!0})],Qs.prototype,"checked",2),h([u({type:String})],Qs.prototype,"name",2);var Wh=Qs;var pd=B.constructTagName("cardradio");var bA=[H`
2529
+ `}};Qs.styles=[...Br.styles,...Yv],h([u({type:Boolean,reflect:!0})],Qs.prototype,"checked",2),h([u({type:String})],Qs.prototype,"name",2);var Yh=Qs;var md=B.constructTagName("cardradio");var yA=[H`
2508
2530
  :host {
2509
2531
  --mdc-staticradio-inner-circle-size: 0.375rem;
2510
2532
  --mdc-staticradio-outer-circle-size: 1rem;
@@ -2601,8 +2623,8 @@
2601
2623
  --mdc-staticradio-outer-circle-background-color: GrayText;
2602
2624
  }
2603
2625
  }
2604
- `],Yv=bA;var Jo=class extends te(X){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
2605
- <span part="radio-icon" class="radio-icon"></span>`}};Jo.styles=[...X.styles,...Yv],h([u({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Jo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Jo.prototype,"softDisabled",2);var Yh=Jo;var jv=B.constructTagName("staticradio");Yh.register(jv);var yA=Yh;Wh.register(pd);var EA=Wh;var br=Math.min,ke=Math.max,fn=Math.round,vn=Math.floor,Hr=a=>({x:a,y:a}),TA={left:"right",right:"left",bottom:"top",top:"bottom"},xA={start:"end",end:"start"};function ud(a,o,t){return ke(a,br(o,t))}function uo(a,o){return typeof a=="function"?a(o):a}function Ur(a){return a.split("-")[0]}function ts(a){return a.split("-")[1]}function jh(a){return a==="x"?"y":"x"}function fd(a){return a==="y"?"height":"width"}var AA=new Set(["top","bottom"]);function Gr(a){return AA.has(Ur(a))?"y":"x"}function vd(a){return jh(Gr(a))}function Zv(a,o,t){t===void 0&&(t=!1);let e=ts(a),i=vd(a),l=fd(i),c=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=un(c)),[c,un(c)]}function Qv(a){let o=un(a);return[md(a),o,md(o)]}function md(a){return a.replace(/start|end/g,o=>xA[o])}var qv=["left","right"],Xv=["right","left"],SA=["top","bottom"],IA=["bottom","top"];function CA(a,o,t){switch(a){case"top":case"bottom":return t?o?Xv:qv:o?qv:Xv;case"left":case"right":return o?SA:IA;default:return[]}}function Jv(a,o,t,e){let i=ts(a),l=CA(Ur(a),t==="start",e);return i&&(l=l.map(c=>c+"-"+i),o&&(l=l.concat(l.map(md)))),l}function un(a){return a.replace(/left|right|bottom|top/g,o=>TA[o])}function _A(a){return{top:0,right:0,bottom:0,left:0,...a}}function gd(a){return typeof a!="number"?_A(a):{top:a,right:a,bottom:a,left:a}}function Ri(a){let{x:o,y:t,width:e,height:i}=a;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function tg(a,o,t){let{reference:e,floating:i}=a,l=Gr(o),c=vd(o),f=fd(c),b=Ur(o),A=l==="y",F=e.x+e.width/2-i.width/2,V=e.y+e.height/2-i.height/2,Q=e[f]/2-i[f]/2,Z;switch(b){case"top":Z={x:F,y:e.y-i.height};break;case"bottom":Z={x:F,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:V};break;case"left":Z={x:e.x-i.width,y:V};break;default:Z={x:e.x,y:e.y}}switch(ts(o)){case"start":Z[c]-=Q*(t&&A?-1:1);break;case"end":Z[c]+=Q*(t&&A?-1:1);break}return Z}var eg=async(a,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),b=await(c.isRTL==null?void 0:c.isRTL(o)),A=await c.getElementRects({reference:a,floating:o,strategy:i}),{x:F,y:V}=tg(A,e,b),Q=e,Z={},tt=0;for(let nt=0;nt<f.length;nt++){let{name:at,fn:ht}=f[nt],{x:It,y:Ct,data:Ht,reset:$t}=await ht({x:F,y:V,initialPlacement:e,placement:Q,strategy:i,middlewareData:Z,rects:A,platform:c,elements:{reference:a,floating:o}});F=It!=null?It:F,V=Ct!=null?Ct:V,Z={...Z,[at]:{...Z[at],...Ht}},$t&&tt<=50&&(tt++,typeof $t=="object"&&($t.placement&&(Q=$t.placement),$t.rects&&(A=$t.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:i}):$t.rects),{x:F,y:V}=tg(A,Q,b)),nt=-1)}return{x:F,y:V,placement:Q,strategy:i,middlewareData:Z}};async function bd(a,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:l,rects:c,elements:f,strategy:b}=a,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:V="floating",altBoundary:Q=!1,padding:Z=0}=uo(o,a),tt=gd(Z),at=f[Q?V==="floating"?"reference":"floating":V],ht=Ri(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(at)))==null||t?at:at.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:b})),It=V==="floating"?{x:e,y:i,width:c.floating.width,height:c.floating.height}:c.reference,Ct=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Ht=await(l.isElement==null?void 0:l.isElement(Ct))?await(l.getScale==null?void 0:l.getScale(Ct))||{x:1,y:1}:{x:1,y:1},$t=Ri(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:Ct,strategy:b}):It);return{top:(ht.top-$t.top+tt.top)/Ht.y,bottom:($t.bottom-ht.bottom+tt.bottom)/Ht.y,left:(ht.left-$t.left+tt.left)/Ht.x,right:($t.right-ht.right+tt.right)/Ht.x}}var rg=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:e,placement:i,rects:l,platform:c,elements:f,middlewareData:b}=o,{element:A,padding:F=0}=uo(a,o)||{};if(A==null)return{};let V=gd(F),Q={x:t,y:e},Z=vd(i),tt=fd(Z),nt=await c.getDimensions(A),at=Z==="y",ht=at?"top":"left",It=at?"bottom":"right",Ct=at?"clientHeight":"clientWidth",Ht=l.reference[tt]+l.reference[Z]-Q[Z]-l.floating[tt],$t=Q[Z]-l.reference[Z],Ut=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Ot=Ut?Ut[Ct]:0;(!Ot||!await(c.isElement==null?void 0:c.isElement(Ut)))&&(Ot=f.floating[Ct]||l.floating[tt]);let ae=Ht/2-$t/2,Ue=Ot/2-nt[tt]/2-1,jt=br(V[ht],Ue),Ee=br(V[It],Ue),Te=jt,xe=Ot-nt[tt]-Ee,kt=Ot/2-nt[tt]/2+ae,oe=ud(Te,kt,xe),Ge=!b.arrow&&ts(i)!=null&&kt!==oe&&l.reference[tt]/2-(kt<Te?jt:Ee)-nt[tt]/2<0,Qe=Ge?kt<Te?kt-Te:kt-xe:0;return{[Z]:Q[Z]+Qe,data:{[Z]:oe,centerOffset:kt-oe-Qe,...Ge&&{alignmentOffset:Qe}},reset:Ge}}});var ig=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,e;let{placement:i,middlewareData:l,rects:c,initialPlacement:f,platform:b,elements:A}=o,{mainAxis:F=!0,crossAxis:V=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:nt=!0,...at}=uo(a,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ht=Ur(i),It=Gr(f),Ct=Ur(f)===f,Ht=await(b.isRTL==null?void 0:b.isRTL(A.floating)),$t=Q||(Ct||!nt?[un(f)]:Qv(f)),Ut=tt!=="none";!Q&&Ut&&$t.push(...Jv(f,nt,tt,Ht));let Ot=[f,...$t],ae=await bd(o,at),Ue=[],jt=((e=l.flip)==null?void 0:e.overflows)||[];if(F&&Ue.push(ae[ht]),V){let kt=Zv(i,c,Ht);Ue.push(ae[kt[0]],ae[kt[1]])}if(jt=[...jt,{placement:i,overflows:Ue}],!Ue.every(kt=>kt<=0)){var Ee,Te;let kt=(((Ee=l.flip)==null?void 0:Ee.index)||0)+1,oe=Ot[kt];if(oe&&(!(V==="alignment"?It!==Gr(oe):!1)||jt.every(Je=>Je.overflows[0]>0&&Gr(Je.placement)===It)))return{data:{index:kt,overflows:jt},reset:{placement:oe}};let Ge=(Te=jt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:Te.placement;if(!Ge)switch(Z){case"bestFit":{var xe;let Qe=(xe=jt.filter(Je=>{if(Ut){let xr=Gr(Je.placement);return xr===It||xr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(xr=>xr>0).reduce((xr,Xn)=>xr+Xn,0)]).sort((Je,xr)=>Je[1]-xr[1])[0])==null?void 0:xe[0];Qe&&(Ge=Qe);break}case"initialPlacement":Ge=f;break}if(i!==Ge)return{reset:{placement:Ge}}}return{}}}};function og(a){let o=br(...a.map(l=>l.left)),t=br(...a.map(l=>l.top)),e=ke(...a.map(l=>l.right)),i=ke(...a.map(l=>l.bottom));return{x:o,y:t,width:e-o,height:i-t}}function kA(a){let o=a.slice().sort((i,l)=>i.y-l.y),t=[],e=null;for(let i=0;i<o.length;i++){let l=o[i];!e||l.y-e.y>e.height/2?t.push([l]):t[t.length-1].push(l),e=l}return t.map(i=>Ri(og(i)))}var sg=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(o){let{placement:t,elements:e,rects:i,platform:l,strategy:c}=o,{padding:f=2,x:b,y:A}=uo(a,o),F=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(e.reference))||[]),V=kA(F),Q=Ri(og(F)),Z=gd(f);function tt(){if(V.length===2&&V[0].left>V[1].right&&b!=null&&A!=null)return V.find(at=>b>at.left-Z.left&&b<at.right+Z.right&&A>at.top-Z.top&&A<at.bottom+Z.bottom)||Q;if(V.length>=2){if(Gr(t)==="y"){let jt=V[0],Ee=V[V.length-1],Te=Ur(t)==="top",xe=jt.top,kt=Ee.bottom,oe=Te?jt.left:Ee.left,Ge=Te?jt.right:Ee.right,Qe=Ge-oe,Je=kt-xe;return{top:xe,bottom:kt,left:oe,right:Ge,width:Qe,height:Je,x:oe,y:xe}}let at=Ur(t)==="left",ht=ke(...V.map(jt=>jt.right)),It=br(...V.map(jt=>jt.left)),Ct=V.filter(jt=>at?jt.left===It:jt.right===ht),Ht=Ct[0].top,$t=Ct[Ct.length-1].bottom,Ut=It,Ot=ht,ae=Ot-Ut,Ue=$t-Ht;return{top:Ht,bottom:$t,left:Ut,right:Ot,width:ae,height:Ue,x:Ut,y:Ht}}return Q}let nt=await l.getElementRects({reference:{getBoundingClientRect:tt},floating:e.floating,strategy:c});return i.reference.x!==nt.reference.x||i.reference.y!==nt.reference.y||i.reference.width!==nt.reference.width||i.reference.height!==nt.reference.height?{reset:{rects:nt}}:{}}}},wA=new Set(["left","top"]);async function NA(a,o){let{placement:t,platform:e,elements:i}=a,l=await(e.isRTL==null?void 0:e.isRTL(i.floating)),c=Ur(t),f=ts(t),b=Gr(t)==="y",A=wA.has(c)?-1:1,F=l&&b?-1:1,V=uo(o,a),{mainAxis:Q,crossAxis:Z,alignmentAxis:tt}=typeof V=="number"?{mainAxis:V,crossAxis:0,alignmentAxis:null}:{mainAxis:V.mainAxis||0,crossAxis:V.crossAxis||0,alignmentAxis:V.alignmentAxis};return f&&typeof tt=="number"&&(Z=f==="end"?tt*-1:tt),b?{x:Z*F,y:Q*A}:{x:Q*A,y:Z*F}}var ag=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,e;let{x:i,y:l,placement:c,middlewareData:f}=o,b=await NA(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+b.x,y:l+b.y,data:{...b,placement:c}}}}},ng=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:at=>{let{x:ht,y:It}=at;return{x:ht,y:It}}},...b}=uo(a,o),A={x:t,y:e},F=await bd(o,b),V=Gr(Ur(i)),Q=jh(V),Z=A[Q],tt=A[V];if(l){let at=Q==="y"?"top":"left",ht=Q==="y"?"bottom":"right",It=Z+F[at],Ct=Z-F[ht];Z=ud(It,Z,Ct)}if(c){let at=V==="y"?"top":"left",ht=V==="y"?"bottom":"right",It=tt+F[at],Ct=tt-F[ht];tt=ud(It,tt,Ct)}let nt=f.fn({...o,[Q]:Z,[V]:tt});return{...nt,data:{x:nt.x-t,y:nt.y-e,enabled:{[Q]:l,[V]:c}}}}}};var lg=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,e;let{placement:i,rects:l,platform:c,elements:f}=o,{apply:b=()=>{},...A}=uo(a,o),F=await bd(o,A),V=Ur(i),Q=ts(i),Z=Gr(i)==="y",{width:tt,height:nt}=l.floating,at,ht;V==="top"||V==="bottom"?(at=V,ht=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=V,at=Q==="end"?"top":"bottom");let It=nt-F.top-F.bottom,Ct=tt-F.left-F.right,Ht=br(nt-F[at],It),$t=br(tt-F[ht],Ct),Ut=!o.middlewareData.shift,Ot=Ht,ae=$t;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ae=Ct),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Ot=It),Ut&&!Q){let jt=ke(F.left,0),Ee=ke(F.right,0),Te=ke(F.top,0),xe=ke(F.bottom,0);Z?ae=tt-2*(jt!==0||Ee!==0?jt+Ee:ke(F.left,F.right)):Ot=nt-2*(Te!==0||xe!==0?Te+xe:ke(F.top,F.bottom))}await b({...o,availableWidth:ae,availableHeight:Ot});let Ue=await c.getDimensions(f.floating);return tt!==Ue.width||nt!==Ue.height?{reset:{rects:!0}}:{}}}};function yd(){return typeof window<"u"}function es(a){return cg(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Kr(a){var o;return(o=(cg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function cg(a){return yd()?a instanceof Node||a instanceof ar(a).Node:!1}function kr(a){return yd()?a instanceof Element||a instanceof ar(a).Element:!1}function Wr(a){return yd()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function dg(a){return!yd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var LA=new Set(["inline","contents"]);function ta(a){let{overflow:o,overflowX:t,overflowY:e,display:i}=wr(a);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!LA.has(i)}var MA=new Set(["table","td","th"]);function hg(a){return MA.has(es(a))}var OA=[":popover-open",":modal"];function gn(a){return OA.some(o=>{try{return a.matches(o)}catch{return!1}})}var RA=["transform","translate","scale","rotate","perspective"],DA=["transform","translate","scale","rotate","perspective","filter"],PA=["paint","layout","strict","content"];function Ed(a){let o=Td(),t=kr(a)?wr(a):a;return RA.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)||DA.some(e=>(t.willChange||"").includes(e))||PA.some(e=>(t.contain||"").includes(e))}function pg(a){let o=Di(a);for(;Wr(o)&&!rs(o);){if(Ed(o))return o;if(gn(o))return null;o=Di(o)}return null}function Td(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var FA=new Set(["html","body","#document"]);function rs(a){return FA.has(es(a))}function wr(a){return ar(a).getComputedStyle(a)}function bn(a){return kr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Di(a){if(es(a)==="html")return a;let o=a.assignedSlot||a.parentNode||dg(a)&&a.host||Kr(a);return dg(o)?o.host:o}function mg(a){let o=Di(a);return rs(o)?a.ownerDocument?a.ownerDocument.body:a.body:Wr(o)&&ta(o)?o:mg(o)}function Js(a,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=mg(a),l=i===((e=a.ownerDocument)==null?void 0:e.body),c=ar(i);if(l){let f=xd(c);return o.concat(c,c.visualViewport||[],ta(i)?i:[],f&&t?Js(f):[])}return o.concat(i,Js(i,[],t))}function xd(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function vg(a){let o=wr(a),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Wr(a),l=i?a.offsetWidth:t,c=i?a.offsetHeight:e,f=fn(t)!==l||fn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Xh(a){return kr(a)?a:a.contextElement}function ea(a){let o=Xh(a);if(!Wr(o))return Hr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:l}=vg(o),c=(l?fn(t.width):t.width)/e,f=(l?fn(t.height):t.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var $A=Hr(0);function gg(a){let o=ar(a);return!Td()||!o.visualViewport?$A:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function VA(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(a)?!1:o}function is(a,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=a.getBoundingClientRect(),l=Xh(a),c=Hr(1);o&&(e?kr(e)&&(c=ea(e)):c=ea(a));let f=VA(l,t,e)?gg(l):Hr(0),b=(i.left+f.x)/c.x,A=(i.top+f.y)/c.y,F=i.width/c.x,V=i.height/c.y;if(l){let Q=ar(l),Z=e&&kr(e)?ar(e):e,tt=Q,nt=xd(tt);for(;nt&&e&&Z!==tt;){let at=ea(nt),ht=nt.getBoundingClientRect(),It=wr(nt),Ct=ht.left+(nt.clientLeft+parseFloat(It.paddingLeft))*at.x,Ht=ht.top+(nt.clientTop+parseFloat(It.paddingTop))*at.y;b*=at.x,A*=at.y,F*=at.x,V*=at.y,b+=Ct,A+=Ht,tt=ar(nt),nt=xd(tt)}}return Ri({width:F,height:V,x:b,y:A})}function Zh(a,o){let t=bn(a).scrollLeft;return o?o.left+t:is(Kr(a)).left+t}function bg(a,o,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:Zh(a,e)),l=e.top+o.scrollTop;return{x:i,y:l}}function zA(a){let{elements:o,rect:t,offsetParent:e,strategy:i}=a,l=i==="fixed",c=Kr(e),f=o?gn(o.floating):!1;if(e===c||f&&l)return t;let b={scrollLeft:0,scrollTop:0},A=Hr(1),F=Hr(0),V=Wr(e);if((V||!V&&!l)&&((es(e)!=="body"||ta(c))&&(b=bn(e)),Wr(e))){let Z=is(e);A=ea(e),F.x=Z.x+e.clientLeft,F.y=Z.y+e.clientTop}let Q=c&&!V&&!l?bg(c,b,!0):Hr(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-b.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-b.scrollTop*A.y+F.y+Q.y}}function BA(a){return Array.from(a.getClientRects())}function HA(a){let o=Kr(a),t=bn(a),e=a.ownerDocument.body,i=ke(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=ke(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Zh(a),f=-t.scrollTop;return wr(e).direction==="rtl"&&(c+=ke(o.clientWidth,e.clientWidth)-i),{width:i,height:l,x:c,y:f}}function UA(a,o){let t=ar(a),e=Kr(a),i=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,b=0;if(i){l=i.width,c=i.height;let A=Td();(!A||A&&o==="fixed")&&(f=i.offsetLeft,b=i.offsetTop)}return{width:l,height:c,x:f,y:b}}var GA=new Set(["absolute","fixed"]);function KA(a,o){let t=is(a,!0,o==="fixed"),e=t.top+a.clientTop,i=t.left+a.clientLeft,l=Wr(a)?ea(a):Hr(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,b=i*l.x,A=e*l.y;return{width:c,height:f,x:b,y:A}}function ug(a,o,t){let e;if(o==="viewport")e=UA(a,t);else if(o==="document")e=HA(Kr(a));else if(kr(o))e=KA(o,t);else{let i=gg(a);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Ri(e)}function yg(a,o){let t=Di(a);return t===o||!kr(t)||rs(t)?!1:wr(t).position==="fixed"||yg(t,o)}function WA(a,o){let t=o.get(a);if(t)return t;let e=Js(a,[],!1).filter(f=>kr(f)&&es(f)!=="body"),i=null,l=wr(a).position==="fixed",c=l?Di(a):a;for(;kr(c)&&!rs(c);){let f=wr(c),b=Ed(c);!b&&f.position==="fixed"&&(i=null),(l?!b&&!i:!b&&f.position==="static"&&!!i&&GA.has(i.position)||ta(c)&&!b&&yg(a,c))?e=e.filter(F=>F!==c):i=f,c=Di(c)}return o.set(a,e),e}function YA(a){let{element:o,boundary:t,rootBoundary:e,strategy:i}=a,c=[...t==="clippingAncestors"?gn(o)?[]:WA(o,this._c):[].concat(t),e],f=c[0],b=c.reduce((A,F)=>{let V=ug(o,F,i);return A.top=ke(V.top,A.top),A.right=br(V.right,A.right),A.bottom=br(V.bottom,A.bottom),A.left=ke(V.left,A.left),A},ug(o,f,i));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}}function jA(a){let{width:o,height:t}=vg(a);return{width:o,height:t}}function qA(a,o,t){let e=Wr(o),i=Kr(o),l=t==="fixed",c=is(a,!0,l,o),f={scrollLeft:0,scrollTop:0},b=Hr(0);function A(){b.x=Zh(i)}if(e||!e&&!l)if((es(o)!=="body"||ta(i))&&(f=bn(o)),e){let Z=is(o,!0,l,o);b.x=Z.x+o.clientLeft,b.y=Z.y+o.clientTop}else i&&A();l&&!e&&i&&A();let F=i&&!e&&!l?bg(i,f):Hr(0),V=c.left+f.scrollLeft-b.x-F.x,Q=c.top+f.scrollTop-b.y-F.y;return{x:V,y:Q,width:c.width,height:c.height}}function qh(a){return wr(a).position==="static"}function fg(a,o){if(!Wr(a)||wr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Kr(a)===t&&(t=t.ownerDocument.body),t}function Eg(a,o){let t=ar(a);if(gn(a))return t;if(!Wr(a)){let i=Di(a);for(;i&&!rs(i);){if(kr(i)&&!qh(i))return i;i=Di(i)}return t}let e=fg(a,o);for(;e&&hg(e)&&qh(e);)e=fg(e,o);return e&&rs(e)&&qh(e)&&!Ed(e)?t:e||pg(a)||t}var XA=async function(a){let o=this.getOffsetParent||Eg,t=this.getDimensions,e=await t(a.floating);return{reference:qA(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function ZA(a){return wr(a).direction==="rtl"}var QA={convertOffsetParentRelativeRectToViewportRelativeRect:zA,getDocumentElement:Kr,getClippingRect:YA,getOffsetParent:Eg,getElementRects:XA,getClientRects:BA,getDimensions:jA,getScale:ea,isElement:kr,isRTL:ZA};function Tg(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function JA(a,o){let t=null,e,i=Kr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,b){f===void 0&&(f=!1),b===void 0&&(b=1),l();let A=a.getBoundingClientRect(),{left:F,top:V,width:Q,height:Z}=A;if(f||o(),!Q||!Z)return;let tt=vn(V),nt=vn(i.clientWidth-(F+Q)),at=vn(i.clientHeight-(V+Z)),ht=vn(F),Ct={rootMargin:-tt+"px "+-nt+"px "+-at+"px "+-ht+"px",threshold:ke(0,br(1,b))||1},Ht=!0;function $t(Ut){let Ot=Ut[0].intersectionRatio;if(Ot!==b){if(!Ht)return c();Ot?c(!1,Ot):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Ot===1&&!Tg(A,a.getBoundingClientRect())&&c(),Ht=!1}try{t=new IntersectionObserver($t,{...Ct,root:i.ownerDocument})}catch{t=new IntersectionObserver($t,Ct)}t.observe(a)}return c(!0),l}function xg(a,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:b=!1}=e,A=Xh(a),F=i||l?[...A?Js(A):[],...Js(o)]:[];F.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),l&&ht.addEventListener("resize",t)});let V=A&&f?JA(A,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(ht=>{let[It]=ht;It&&It.target===A&&Z&&(Z.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=Z)==null||Ct.observe(o)})),t()}),A&&!b&&Z.observe(A),Z.observe(o));let tt,nt=b?is(a):null;b&&at();function at(){let ht=is(a);nt&&!Tg(nt,ht)&&t(),nt=ht,tt=requestAnimationFrame(at)}return t(),()=>{var ht;F.forEach(It=>{i&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),V==null||V(),(ht=Z)==null||ht.disconnect(),Z=null,b&&cancelAnimationFrame(tt)}}var Ag=ag;var Sg=ng,Ig=ig,Cg=lg;var _g=rg,kg=sg;var wg=(a,o,t)=>{let e=new Map,i={platform:QA,...t},l={...i.platform,_c:e};return eg(a,o,{...i,platform:l})};var Ad=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 l=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,l),l}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 l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,l),l}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(([,c])=>c===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Pi=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 t0=H`
2626
+ `],jv=yA;var Jo=class extends te(X){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>`}};Jo.styles=[...X.styles,...jv],h([u({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Jo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Jo.prototype,"softDisabled",2);var jh=Jo;var qv=B.constructTagName("staticradio");jh.register(qv);var EA=jh;Yh.register(md);var TA=Yh;var br=Math.min,ke=Math.max,fn=Math.round,vn=Math.floor,Hr=a=>({x:a,y:a}),xA={left:"right",right:"left",bottom:"top",top:"bottom"},AA={start:"end",end:"start"};function fd(a,o,t){return ke(a,br(o,t))}function fo(a,o){return typeof a=="function"?a(o):a}function Ur(a){return a.split("-")[0]}function ts(a){return a.split("-")[1]}function qh(a){return a==="x"?"y":"x"}function vd(a){return a==="y"?"height":"width"}var SA=new Set(["top","bottom"]);function Gr(a){return SA.has(Ur(a))?"y":"x"}function gd(a){return qh(Gr(a))}function Qv(a,o,t){t===void 0&&(t=!1);let e=ts(a),i=gd(a),l=vd(i),c=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=un(c)),[c,un(c)]}function Jv(a){let o=un(a);return[ud(a),o,ud(o)]}function ud(a){return a.replace(/start|end/g,o=>AA[o])}var Xv=["left","right"],Zv=["right","left"],IA=["top","bottom"],CA=["bottom","top"];function _A(a,o,t){switch(a){case"top":case"bottom":return t?o?Zv:Xv:o?Xv:Zv;case"left":case"right":return o?IA:CA;default:return[]}}function tg(a,o,t,e){let i=ts(a),l=_A(Ur(a),t==="start",e);return i&&(l=l.map(c=>c+"-"+i),o&&(l=l.concat(l.map(ud)))),l}function un(a){return a.replace(/left|right|bottom|top/g,o=>xA[o])}function kA(a){return{top:0,right:0,bottom:0,left:0,...a}}function bd(a){return typeof a!="number"?kA(a):{top:a,right:a,bottom:a,left:a}}function Di(a){let{x:o,y:t,width:e,height:i}=a;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function eg(a,o,t){let{reference:e,floating:i}=a,l=Gr(o),c=gd(o),f=vd(c),b=Ur(o),A=l==="y",F=e.x+e.width/2-i.width/2,V=e.y+e.height/2-i.height/2,Q=e[f]/2-i[f]/2,Z;switch(b){case"top":Z={x:F,y:e.y-i.height};break;case"bottom":Z={x:F,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:V};break;case"left":Z={x:e.x-i.width,y:V};break;default:Z={x:e.x,y:e.y}}switch(ts(o)){case"start":Z[c]-=Q*(t&&A?-1:1);break;case"end":Z[c]+=Q*(t&&A?-1:1);break}return Z}var rg=async(a,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),b=await(c.isRTL==null?void 0:c.isRTL(o)),A=await c.getElementRects({reference:a,floating:o,strategy:i}),{x:F,y:V}=eg(A,e,b),Q=e,Z={},tt=0;for(let nt=0;nt<f.length;nt++){let{name:at,fn:ht}=f[nt],{x:It,y:Ct,data:Ht,reset:$t}=await ht({x:F,y:V,initialPlacement:e,placement:Q,strategy:i,middlewareData:Z,rects:A,platform:c,elements:{reference:a,floating:o}});F=It!=null?It:F,V=Ct!=null?Ct:V,Z={...Z,[at]:{...Z[at],...Ht}},$t&&tt<=50&&(tt++,typeof $t=="object"&&($t.placement&&(Q=$t.placement),$t.rects&&(A=$t.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:i}):$t.rects),{x:F,y:V}=eg(A,Q,b)),nt=-1)}return{x:F,y:V,placement:Q,strategy:i,middlewareData:Z}};async function yd(a,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:l,rects:c,elements:f,strategy:b}=a,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:V="floating",altBoundary:Q=!1,padding:Z=0}=fo(o,a),tt=bd(Z),at=f[Q?V==="floating"?"reference":"floating":V],ht=Di(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(at)))==null||t?at:at.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:b})),It=V==="floating"?{x:e,y:i,width:c.floating.width,height:c.floating.height}:c.reference,Ct=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Ht=await(l.isElement==null?void 0:l.isElement(Ct))?await(l.getScale==null?void 0:l.getScale(Ct))||{x:1,y:1}:{x:1,y:1},$t=Di(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:Ct,strategy:b}):It);return{top:(ht.top-$t.top+tt.top)/Ht.y,bottom:($t.bottom-ht.bottom+tt.bottom)/Ht.y,left:(ht.left-$t.left+tt.left)/Ht.x,right:($t.right-ht.right+tt.right)/Ht.x}}var ig=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:e,placement:i,rects:l,platform:c,elements:f,middlewareData:b}=o,{element:A,padding:F=0}=fo(a,o)||{};if(A==null)return{};let V=bd(F),Q={x:t,y:e},Z=gd(i),tt=vd(Z),nt=await c.getDimensions(A),at=Z==="y",ht=at?"top":"left",It=at?"bottom":"right",Ct=at?"clientHeight":"clientWidth",Ht=l.reference[tt]+l.reference[Z]-Q[Z]-l.floating[tt],$t=Q[Z]-l.reference[Z],Ut=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Ot=Ut?Ut[Ct]:0;(!Ot||!await(c.isElement==null?void 0:c.isElement(Ut)))&&(Ot=f.floating[Ct]||l.floating[tt]);let ae=Ht/2-$t/2,Ue=Ot/2-nt[tt]/2-1,jt=br(V[ht],Ue),Ee=br(V[It],Ue),Te=jt,xe=Ot-nt[tt]-Ee,kt=Ot/2-nt[tt]/2+ae,oe=fd(Te,kt,xe),Ge=!b.arrow&&ts(i)!=null&&kt!==oe&&l.reference[tt]/2-(kt<Te?jt:Ee)-nt[tt]/2<0,Qe=Ge?kt<Te?kt-Te:kt-xe:0;return{[Z]:Q[Z]+Qe,data:{[Z]:oe,centerOffset:kt-oe-Qe,...Ge&&{alignmentOffset:Qe}},reset:Ge}}});var og=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,e;let{placement:i,middlewareData:l,rects:c,initialPlacement:f,platform:b,elements:A}=o,{mainAxis:F=!0,crossAxis:V=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:nt=!0,...at}=fo(a,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ht=Ur(i),It=Gr(f),Ct=Ur(f)===f,Ht=await(b.isRTL==null?void 0:b.isRTL(A.floating)),$t=Q||(Ct||!nt?[un(f)]:Jv(f)),Ut=tt!=="none";!Q&&Ut&&$t.push(...tg(f,nt,tt,Ht));let Ot=[f,...$t],ae=await yd(o,at),Ue=[],jt=((e=l.flip)==null?void 0:e.overflows)||[];if(F&&Ue.push(ae[ht]),V){let kt=Qv(i,c,Ht);Ue.push(ae[kt[0]],ae[kt[1]])}if(jt=[...jt,{placement:i,overflows:Ue}],!Ue.every(kt=>kt<=0)){var Ee,Te;let kt=(((Ee=l.flip)==null?void 0:Ee.index)||0)+1,oe=Ot[kt];if(oe&&(!(V==="alignment"?It!==Gr(oe):!1)||jt.every(Je=>Je.overflows[0]>0&&Gr(Je.placement)===It)))return{data:{index:kt,overflows:jt},reset:{placement:oe}};let Ge=(Te=jt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:Te.placement;if(!Ge)switch(Z){case"bestFit":{var xe;let Qe=(xe=jt.filter(Je=>{if(Ut){let xr=Gr(Je.placement);return xr===It||xr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(xr=>xr>0).reduce((xr,Xn)=>xr+Xn,0)]).sort((Je,xr)=>Je[1]-xr[1])[0])==null?void 0:xe[0];Qe&&(Ge=Qe);break}case"initialPlacement":Ge=f;break}if(i!==Ge)return{reset:{placement:Ge}}}return{}}}};function sg(a){let o=br(...a.map(l=>l.left)),t=br(...a.map(l=>l.top)),e=ke(...a.map(l=>l.right)),i=ke(...a.map(l=>l.bottom));return{x:o,y:t,width:e-o,height:i-t}}function wA(a){let o=a.slice().sort((i,l)=>i.y-l.y),t=[],e=null;for(let i=0;i<o.length;i++){let l=o[i];!e||l.y-e.y>e.height/2?t.push([l]):t[t.length-1].push(l),e=l}return t.map(i=>Di(sg(i)))}var ag=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(o){let{placement:t,elements:e,rects:i,platform:l,strategy:c}=o,{padding:f=2,x:b,y:A}=fo(a,o),F=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(e.reference))||[]),V=wA(F),Q=Di(sg(F)),Z=bd(f);function tt(){if(V.length===2&&V[0].left>V[1].right&&b!=null&&A!=null)return V.find(at=>b>at.left-Z.left&&b<at.right+Z.right&&A>at.top-Z.top&&A<at.bottom+Z.bottom)||Q;if(V.length>=2){if(Gr(t)==="y"){let jt=V[0],Ee=V[V.length-1],Te=Ur(t)==="top",xe=jt.top,kt=Ee.bottom,oe=Te?jt.left:Ee.left,Ge=Te?jt.right:Ee.right,Qe=Ge-oe,Je=kt-xe;return{top:xe,bottom:kt,left:oe,right:Ge,width:Qe,height:Je,x:oe,y:xe}}let at=Ur(t)==="left",ht=ke(...V.map(jt=>jt.right)),It=br(...V.map(jt=>jt.left)),Ct=V.filter(jt=>at?jt.left===It:jt.right===ht),Ht=Ct[0].top,$t=Ct[Ct.length-1].bottom,Ut=It,Ot=ht,ae=Ot-Ut,Ue=$t-Ht;return{top:Ht,bottom:$t,left:Ut,right:Ot,width:ae,height:Ue,x:Ut,y:Ht}}return Q}let nt=await l.getElementRects({reference:{getBoundingClientRect:tt},floating:e.floating,strategy:c});return i.reference.x!==nt.reference.x||i.reference.y!==nt.reference.y||i.reference.width!==nt.reference.width||i.reference.height!==nt.reference.height?{reset:{rects:nt}}:{}}}},NA=new Set(["left","top"]);async function LA(a,o){let{placement:t,platform:e,elements:i}=a,l=await(e.isRTL==null?void 0:e.isRTL(i.floating)),c=Ur(t),f=ts(t),b=Gr(t)==="y",A=NA.has(c)?-1:1,F=l&&b?-1:1,V=fo(o,a),{mainAxis:Q,crossAxis:Z,alignmentAxis:tt}=typeof V=="number"?{mainAxis:V,crossAxis:0,alignmentAxis:null}:{mainAxis:V.mainAxis||0,crossAxis:V.crossAxis||0,alignmentAxis:V.alignmentAxis};return f&&typeof tt=="number"&&(Z=f==="end"?tt*-1:tt),b?{x:Z*F,y:Q*A}:{x:Q*A,y:Z*F}}var ng=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,e;let{x:i,y:l,placement:c,middlewareData:f}=o,b=await LA(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+b.x,y:l+b.y,data:{...b,placement:c}}}}},lg=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:at=>{let{x:ht,y:It}=at;return{x:ht,y:It}}},...b}=fo(a,o),A={x:t,y:e},F=await yd(o,b),V=Gr(Ur(i)),Q=qh(V),Z=A[Q],tt=A[V];if(l){let at=Q==="y"?"top":"left",ht=Q==="y"?"bottom":"right",It=Z+F[at],Ct=Z-F[ht];Z=fd(It,Z,Ct)}if(c){let at=V==="y"?"top":"left",ht=V==="y"?"bottom":"right",It=tt+F[at],Ct=tt-F[ht];tt=fd(It,tt,Ct)}let nt=f.fn({...o,[Q]:Z,[V]:tt});return{...nt,data:{x:nt.x-t,y:nt.y-e,enabled:{[Q]:l,[V]:c}}}}}};var dg=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,e;let{placement:i,rects:l,platform:c,elements:f}=o,{apply:b=()=>{},...A}=fo(a,o),F=await yd(o,A),V=Ur(i),Q=ts(i),Z=Gr(i)==="y",{width:tt,height:nt}=l.floating,at,ht;V==="top"||V==="bottom"?(at=V,ht=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=V,at=Q==="end"?"top":"bottom");let It=nt-F.top-F.bottom,Ct=tt-F.left-F.right,Ht=br(nt-F[at],It),$t=br(tt-F[ht],Ct),Ut=!o.middlewareData.shift,Ot=Ht,ae=$t;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ae=Ct),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Ot=It),Ut&&!Q){let jt=ke(F.left,0),Ee=ke(F.right,0),Te=ke(F.top,0),xe=ke(F.bottom,0);Z?ae=tt-2*(jt!==0||Ee!==0?jt+Ee:ke(F.left,F.right)):Ot=nt-2*(Te!==0||xe!==0?Te+xe:ke(F.top,F.bottom))}await b({...o,availableWidth:ae,availableHeight:Ot});let Ue=await c.getDimensions(f.floating);return tt!==Ue.width||nt!==Ue.height?{reset:{rects:!0}}:{}}}};function Ed(){return typeof window<"u"}function es(a){return hg(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Kr(a){var o;return(o=(hg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function hg(a){return Ed()?a instanceof Node||a instanceof ar(a).Node:!1}function kr(a){return Ed()?a instanceof Element||a instanceof ar(a).Element:!1}function Wr(a){return Ed()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function cg(a){return!Ed()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var MA=new Set(["inline","contents"]);function ta(a){let{overflow:o,overflowX:t,overflowY:e,display:i}=wr(a);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!MA.has(i)}var OA=new Set(["table","td","th"]);function pg(a){return OA.has(es(a))}var RA=[":popover-open",":modal"];function gn(a){return RA.some(o=>{try{return a.matches(o)}catch{return!1}})}var DA=["transform","translate","scale","rotate","perspective"],PA=["transform","translate","scale","rotate","perspective","filter"],FA=["paint","layout","strict","content"];function Td(a){let o=xd(),t=kr(a)?wr(a):a;return DA.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)||PA.some(e=>(t.willChange||"").includes(e))||FA.some(e=>(t.contain||"").includes(e))}function mg(a){let o=Pi(a);for(;Wr(o)&&!rs(o);){if(Td(o))return o;if(gn(o))return null;o=Pi(o)}return null}function xd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var $A=new Set(["html","body","#document"]);function rs(a){return $A.has(es(a))}function wr(a){return ar(a).getComputedStyle(a)}function bn(a){return kr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Pi(a){if(es(a)==="html")return a;let o=a.assignedSlot||a.parentNode||cg(a)&&a.host||Kr(a);return cg(o)?o.host:o}function ug(a){let o=Pi(a);return rs(o)?a.ownerDocument?a.ownerDocument.body:a.body:Wr(o)&&ta(o)?o:ug(o)}function Js(a,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=ug(a),l=i===((e=a.ownerDocument)==null?void 0:e.body),c=ar(i);if(l){let f=Ad(c);return o.concat(c,c.visualViewport||[],ta(i)?i:[],f&&t?Js(f):[])}return o.concat(i,Js(i,[],t))}function Ad(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function gg(a){let o=wr(a),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Wr(a),l=i?a.offsetWidth:t,c=i?a.offsetHeight:e,f=fn(t)!==l||fn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Zh(a){return kr(a)?a:a.contextElement}function ea(a){let o=Zh(a);if(!Wr(o))return Hr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:l}=gg(o),c=(l?fn(t.width):t.width)/e,f=(l?fn(t.height):t.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var VA=Hr(0);function bg(a){let o=ar(a);return!xd()||!o.visualViewport?VA:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function zA(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(a)?!1:o}function is(a,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=a.getBoundingClientRect(),l=Zh(a),c=Hr(1);o&&(e?kr(e)&&(c=ea(e)):c=ea(a));let f=zA(l,t,e)?bg(l):Hr(0),b=(i.left+f.x)/c.x,A=(i.top+f.y)/c.y,F=i.width/c.x,V=i.height/c.y;if(l){let Q=ar(l),Z=e&&kr(e)?ar(e):e,tt=Q,nt=Ad(tt);for(;nt&&e&&Z!==tt;){let at=ea(nt),ht=nt.getBoundingClientRect(),It=wr(nt),Ct=ht.left+(nt.clientLeft+parseFloat(It.paddingLeft))*at.x,Ht=ht.top+(nt.clientTop+parseFloat(It.paddingTop))*at.y;b*=at.x,A*=at.y,F*=at.x,V*=at.y,b+=Ct,A+=Ht,tt=ar(nt),nt=Ad(tt)}}return Di({width:F,height:V,x:b,y:A})}function Qh(a,o){let t=bn(a).scrollLeft;return o?o.left+t:is(Kr(a)).left+t}function yg(a,o,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:Qh(a,e)),l=e.top+o.scrollTop;return{x:i,y:l}}function BA(a){let{elements:o,rect:t,offsetParent:e,strategy:i}=a,l=i==="fixed",c=Kr(e),f=o?gn(o.floating):!1;if(e===c||f&&l)return t;let b={scrollLeft:0,scrollTop:0},A=Hr(1),F=Hr(0),V=Wr(e);if((V||!V&&!l)&&((es(e)!=="body"||ta(c))&&(b=bn(e)),Wr(e))){let Z=is(e);A=ea(e),F.x=Z.x+e.clientLeft,F.y=Z.y+e.clientTop}let Q=c&&!V&&!l?yg(c,b,!0):Hr(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-b.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-b.scrollTop*A.y+F.y+Q.y}}function HA(a){return Array.from(a.getClientRects())}function UA(a){let o=Kr(a),t=bn(a),e=a.ownerDocument.body,i=ke(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=ke(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Qh(a),f=-t.scrollTop;return wr(e).direction==="rtl"&&(c+=ke(o.clientWidth,e.clientWidth)-i),{width:i,height:l,x:c,y:f}}function GA(a,o){let t=ar(a),e=Kr(a),i=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,b=0;if(i){l=i.width,c=i.height;let A=xd();(!A||A&&o==="fixed")&&(f=i.offsetLeft,b=i.offsetTop)}return{width:l,height:c,x:f,y:b}}var KA=new Set(["absolute","fixed"]);function WA(a,o){let t=is(a,!0,o==="fixed"),e=t.top+a.clientTop,i=t.left+a.clientLeft,l=Wr(a)?ea(a):Hr(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,b=i*l.x,A=e*l.y;return{width:c,height:f,x:b,y:A}}function fg(a,o,t){let e;if(o==="viewport")e=GA(a,t);else if(o==="document")e=UA(Kr(a));else if(kr(o))e=WA(o,t);else{let i=bg(a);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Di(e)}function Eg(a,o){let t=Pi(a);return t===o||!kr(t)||rs(t)?!1:wr(t).position==="fixed"||Eg(t,o)}function YA(a,o){let t=o.get(a);if(t)return t;let e=Js(a,[],!1).filter(f=>kr(f)&&es(f)!=="body"),i=null,l=wr(a).position==="fixed",c=l?Pi(a):a;for(;kr(c)&&!rs(c);){let f=wr(c),b=Td(c);!b&&f.position==="fixed"&&(i=null),(l?!b&&!i:!b&&f.position==="static"&&!!i&&KA.has(i.position)||ta(c)&&!b&&Eg(a,c))?e=e.filter(F=>F!==c):i=f,c=Pi(c)}return o.set(a,e),e}function jA(a){let{element:o,boundary:t,rootBoundary:e,strategy:i}=a,c=[...t==="clippingAncestors"?gn(o)?[]:YA(o,this._c):[].concat(t),e],f=c[0],b=c.reduce((A,F)=>{let V=fg(o,F,i);return A.top=ke(V.top,A.top),A.right=br(V.right,A.right),A.bottom=br(V.bottom,A.bottom),A.left=ke(V.left,A.left),A},fg(o,f,i));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}}function qA(a){let{width:o,height:t}=gg(a);return{width:o,height:t}}function XA(a,o,t){let e=Wr(o),i=Kr(o),l=t==="fixed",c=is(a,!0,l,o),f={scrollLeft:0,scrollTop:0},b=Hr(0);function A(){b.x=Qh(i)}if(e||!e&&!l)if((es(o)!=="body"||ta(i))&&(f=bn(o)),e){let Z=is(o,!0,l,o);b.x=Z.x+o.clientLeft,b.y=Z.y+o.clientTop}else i&&A();l&&!e&&i&&A();let F=i&&!e&&!l?yg(i,f):Hr(0),V=c.left+f.scrollLeft-b.x-F.x,Q=c.top+f.scrollTop-b.y-F.y;return{x:V,y:Q,width:c.width,height:c.height}}function Xh(a){return wr(a).position==="static"}function vg(a,o){if(!Wr(a)||wr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Kr(a)===t&&(t=t.ownerDocument.body),t}function Tg(a,o){let t=ar(a);if(gn(a))return t;if(!Wr(a)){let i=Pi(a);for(;i&&!rs(i);){if(kr(i)&&!Xh(i))return i;i=Pi(i)}return t}let e=vg(a,o);for(;e&&pg(e)&&Xh(e);)e=vg(e,o);return e&&rs(e)&&Xh(e)&&!Td(e)?t:e||mg(a)||t}var ZA=async function(a){let o=this.getOffsetParent||Tg,t=this.getDimensions,e=await t(a.floating);return{reference:XA(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function QA(a){return wr(a).direction==="rtl"}var JA={convertOffsetParentRelativeRectToViewportRelativeRect:BA,getDocumentElement:Kr,getClippingRect:jA,getOffsetParent:Tg,getElementRects:ZA,getClientRects:HA,getDimensions:qA,getScale:ea,isElement:kr,isRTL:QA};function xg(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function t0(a,o){let t=null,e,i=Kr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,b){f===void 0&&(f=!1),b===void 0&&(b=1),l();let A=a.getBoundingClientRect(),{left:F,top:V,width:Q,height:Z}=A;if(f||o(),!Q||!Z)return;let tt=vn(V),nt=vn(i.clientWidth-(F+Q)),at=vn(i.clientHeight-(V+Z)),ht=vn(F),Ct={rootMargin:-tt+"px "+-nt+"px "+-at+"px "+-ht+"px",threshold:ke(0,br(1,b))||1},Ht=!0;function $t(Ut){let Ot=Ut[0].intersectionRatio;if(Ot!==b){if(!Ht)return c();Ot?c(!1,Ot):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Ot===1&&!xg(A,a.getBoundingClientRect())&&c(),Ht=!1}try{t=new IntersectionObserver($t,{...Ct,root:i.ownerDocument})}catch{t=new IntersectionObserver($t,Ct)}t.observe(a)}return c(!0),l}function Ag(a,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:b=!1}=e,A=Zh(a),F=i||l?[...A?Js(A):[],...Js(o)]:[];F.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),l&&ht.addEventListener("resize",t)});let V=A&&f?t0(A,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(ht=>{let[It]=ht;It&&It.target===A&&Z&&(Z.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=Z)==null||Ct.observe(o)})),t()}),A&&!b&&Z.observe(A),Z.observe(o));let tt,nt=b?is(a):null;b&&at();function at(){let ht=is(a);nt&&!xg(nt,ht)&&t(),nt=ht,tt=requestAnimationFrame(at)}return t(),()=>{var ht;F.forEach(It=>{i&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),V==null||V(),(ht=Z)==null||ht.disconnect(),Z=null,b&&cancelAnimationFrame(tt)}}var Sg=ng;var Ig=lg,Cg=og,_g=dg;var kg=ig,wg=ag;var Ng=(a,o,t)=>{let e=new Map,i={platform:JA,...t},l={...i.platform,_c:e};return rg(a,o,{...i,platform:l})};var Sd=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 l=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,l),l}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 l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,l),l}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(([,c])=>c===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Fi=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 e0=H`
2606
2628
  :host {
2607
2629
  --mdc-popover-arrow-border-radius: 0.1875rem;
2608
2630
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2726,7 +2748,7 @@
2726
2748
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2727
2749
  border-bottom-left-radius: 100%;
2728
2750
  }
2729
- `,Ng=[t0];var Id=B.constructTagName("popoverportal"),Sd=class extends X{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Cd=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(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,b=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(i.top-l.bottom,l.top-i.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-i.right,i.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${b}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${b}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(Id),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 F;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),b=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let V=b!=null&&b[i]?12-Math.abs(f[i]-b[i]):0;Math.round(V)===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:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Mt(Nt(Xl(Wl(Kl(X))))){constructor(){super();this.depthManager=new co(this);this.id="";this.triggerID="";this.trigger=bt.TRIGGER;this.placement=bt.PLACEMENT;this.color=bt.COLOR;this.visible=bt.VISIBLE;this.offset=bt.OFFSET;this.boundary=bt.BOUNDARY;this.boundaryRoot=bt.BOUNDARY_ROOT;this.focusTrap=bt.FOCUS_TRAP;this.preventScroll=bt.PREVENT_SCROLL;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.interactive=bt.INTERACTIVE;this.delay=bt.DELAY;this.hideOnEscape=bt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=bt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=bt.HIDE_ON_BLUR;this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=bt.FOCUS_BACK;this.backdrop=bt.BACKDROP;this.isBackdropInvisible=bt.IS_BACKDROP_INVISIBLE;this.disableFlip=bt.DISABLE_FLIP;this.size=bt.SIZE;this.closeButtonAriaLabel=null;this.strategy=bt.STRATEGY;this.role=bt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=bt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=bt.ANIMATION_FRAME;this.inline=bt.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 Ad(this);this.parseTrigger=()=>{var l;let i=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(_e).includes(c)).length>0?this.trigger:bt.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),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}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("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",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),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.hide(),Pi.onClickOutside(this),l&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Y.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Pi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(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,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Oi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Oi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Oi.HOVER),this.timers.clearTimeout(Oi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Oi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Oi.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,l=[];if(this.inline&&l.push(kg()),l.push(Sg({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||l.push(Ig({boundary:e,rootBoundary:i})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},b=this.renderRoot.querySelector('[part="popover-content"]');l.push(Cg({boundary:e,rootBoundary:i,apply({availableHeight:A}){b&&(Object.assign(b.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(_g({element:this.arrowElement,padding:12}))}l.push(Ag(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=xg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let b=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:V,placement:Q}=await wg(f,this,{placement:b,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),V.arrow&&this.arrowElement&&this.utils.updateArrowStyle(V.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Cd(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),Pi.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(),Pi.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(Lt).includes(this.placement)?this.placement:bt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Qo).includes(this.color)?this.color:bt.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 l,c;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,b,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(b=this.elementIndexToReceiveFocus)!=null?b:0))},0),Pi.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.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(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Pi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Oi.OPEN,t,this.openDelay):(this.timers.clearTimeout(Oi.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 Lt.LEFT:return Lt.RIGHT;case Lt.LEFT_START:return Lt.RIGHT_START;case Lt.LEFT_END:return Lt.RIGHT_END;case Lt.RIGHT:return Lt.LEFT;case Lt.RIGHT_START:return Lt.LEFT_START;case Lt.RIGHT_END:return Lt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2751
+ `,Lg=[e0];var Cd=B.constructTagName("popoverportal"),Id=class extends X{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var _d=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(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,b=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(i.top-l.bottom,l.top-i.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-i.right,i.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${b}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${b}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(Cd),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 F;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),b=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let V=b!=null&&b[i]?12-Math.abs(f[i]-b[i]):0;Math.round(V)===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:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Mt(Nt(Zl(Yl(Wl(X))))){constructor(){super();this.depthManager=new ho(this);this.id="";this.triggerID="";this.trigger=bt.TRIGGER;this.placement=bt.PLACEMENT;this.color=bt.COLOR;this.visible=bt.VISIBLE;this.offset=bt.OFFSET;this.boundary=bt.BOUNDARY;this.boundaryRoot=bt.BOUNDARY_ROOT;this.focusTrap=bt.FOCUS_TRAP;this.preventScroll=bt.PREVENT_SCROLL;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.interactive=bt.INTERACTIVE;this.delay=bt.DELAY;this.hideOnEscape=bt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=bt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=bt.HIDE_ON_BLUR;this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=bt.FOCUS_BACK;this.backdrop=bt.BACKDROP;this.isBackdropInvisible=bt.IS_BACKDROP_INVISIBLE;this.disableFlip=bt.DISABLE_FLIP;this.size=bt.SIZE;this.closeButtonAriaLabel=null;this.strategy=bt.STRATEGY;this.role=bt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=bt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=bt.ANIMATION_FRAME;this.inline=bt.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 Sd(this);this.parseTrigger=()=>{var l;let i=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(_e).includes(c)).length>0?this.trigger:bt.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),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}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("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",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),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.hide(),Fi.onClickOutside(this),l&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Y.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Fi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{if(!this.isEventFromTrigger(t))return;let e=t,{triggerElement:i}=this;i&&e.relatedTarget instanceof Element&&Nl(e.relatedTarget).includes(i)||(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,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ri.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ri.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ri.HOVER),this.timers.clearTimeout(Ri.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ri.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ri.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,l=[];if(this.inline&&l.push(wg()),l.push(Ig({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||l.push(Cg({boundary:e,rootBoundary:i})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},b=this.renderRoot.querySelector('[part="popover-content"]');l.push(_g({boundary:e,rootBoundary:i,apply({availableHeight:A}){b&&(Object.assign(b.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(kg({element:this.arrowElement,padding:12}))}l.push(Sg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=Ag(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let b=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:V,placement:Q}=await Ng(f,this,{placement:b,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),V.arrow&&this.arrowElement&&this.utils.updateArrowStyle(V.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new _d(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),Fi.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(),Fi.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(Lt).includes(this.placement)?this.placement:bt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Qo).includes(this.color)?this.color:bt.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 l,c;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,b,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(b=this.elementIndexToReceiveFocus)!=null?b:0))},0),Fi.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.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(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Fi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ri.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ri.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 Lt.LEFT:return Lt.RIGHT;case Lt.LEFT_START:return Lt.RIGHT_START;case Lt.LEFT_END:return Lt.RIGHT_END;case Lt.RIGHT:return Lt.LEFT;case Lt.RIGHT_START:return Lt.LEFT_START;case Lt.RIGHT_END:return Lt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2730
2752
  <div part="popover-hover-bridge"></div>
2731
2753
  ${this.closeButton?S` <mdc-button
2732
2754
  part="popover-close"
@@ -2740,7 +2762,7 @@
2740
2762
  <div part="popover-content">
2741
2763
  <slot></slot>
2742
2764
  </div>
2743
- `}};_t.styles=[...X.styles,...Ng],h([u({type:String,reflect:!0})],_t.prototype,"id",2),h([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),h([u({type:String,reflect:!0})],_t.prototype,"trigger",2),h([u({type:String,reflect:!0})],_t.prototype,"placement",2),h([u({type:String,reflect:!0})],_t.prototype,"color",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],_t.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),h([u({type:String,reflect:!0})],_t.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],_t.prototype,"strategy",2),h([u({type:String,reflect:!0})],_t.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],_t.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],_t.prototype,"stackGroupName",2);var nr=_t;var Lg=B.constructTagName("toggletip"),os={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Lt.TOP,CLICK:_e.CLICK,SHOW_ARROW:!0};var e0=H`
2765
+ `}};_t.styles=[...X.styles,...Lg],h([u({type:String,reflect:!0})],_t.prototype,"id",2),h([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),h([u({type:String,reflect:!0})],_t.prototype,"trigger",2),h([u({type:String,reflect:!0})],_t.prototype,"placement",2),h([u({type:String,reflect:!0})],_t.prototype,"color",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],_t.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),h([u({type:String,reflect:!0})],_t.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],_t.prototype,"strategy",2),h([u({type:String,reflect:!0})],_t.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],_t.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],_t.prototype,"stackGroupName",2);var nr=_t;var Mg=B.constructTagName("toggletip"),os={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Lt.TOP,CLICK:_e.CLICK,SHOW_ARROW:!0};var r0=H`
2744
2766
  :host {
2745
2767
  --mdc-toggletip-max-width: 400px;
2746
2768
  --mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
@@ -2770,7 +2792,7 @@
2770
2792
  :host([close-button]:dir(rtl))::part(popover-content) {
2771
2793
  margin-left: 2rem;
2772
2794
  }
2773
- `,Mg=[e0];var fo=class extends nr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=os.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:os.CLOSE_BUTTON,this.closeButtonAriaLabel=os.CLOSE_BUTTON_ARIA_LABEL,this.trigger=os.CLICK,this.showArrow=os.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(Lt).includes(this.placement)||(this.placement=os.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
2795
+ `,Og=[r0];var vo=class extends nr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=os.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:os.CLOSE_BUTTON,this.closeButtonAriaLabel=os.CLOSE_BUTTON_ARIA_LABEL,this.trigger=os.CLICK,this.showArrow=os.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(Lt).includes(this.placement)||(this.placement=os.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
2774
2796
  ${super.render()}
2775
2797
  <mdc-screenreaderannouncer
2776
2798
  identity="${J(this.screenreaderAnnouncerIdentity)}"
@@ -2778,12 +2800,12 @@
2778
2800
  delay="300"
2779
2801
  >
2780
2802
  </mdc-screenreaderannouncer>
2781
- `}};fo.styles=[...nr.styles,...Mg],h([sf()],fo.prototype,"defaultSlotNodes",2),h([dt()],fo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],fo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],fo.prototype,"placement",2);var Qh=fo;function _d(a,o=500){let t,e=(...i)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...i)},o)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Og=B.constructTagName("screenreaderannouncer"),r0={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},ss={ARIA_LIVE:r0.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var i0=[H`
2803
+ `}};vo.styles=[...nr.styles,...Og],h([af()],vo.prototype,"defaultSlotNodes",2),h([dt()],vo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],vo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],vo.prototype,"placement",2);var Jh=vo;function kd(a,o=500){let t,e=(...i)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...i)},o)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Rg=B.constructTagName("screenreaderannouncer"),i0={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},ss={ARIA_LIVE:i0.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var o0=[H`
2782
2804
  :host {
2783
2805
  display: none;
2784
2806
  visibility: hidden;
2785
2807
  }
2786
- `],Rg=i0;var di=class extends X{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ss.ARIA_LIVE;this.delay=ss.DELAY;this.timeout=ss.TIMEOUT;this.debounceTime=ss.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:l}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${Ve()}`,b=document.createElement("div");b.setAttribute("id",f),b.setAttribute("aria-live",l!=null?l:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(b);let A=window.setTimeout(()=>{let F=document.createElement("p");F.textContent=t,b.appendChild(F),this.ariaLiveAnnouncementIds.push(f);let V=window.setTimeout(()=>{b.remove()},i!=null?i:this.timeout);this.timeOutIds.push(V)},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 l;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((l=i==null?void 0:i.shadowRoot)==null?void 0:l.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
+ `],Dg=o0;var ci=class extends X{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ss.ARIA_LIVE;this.delay=ss.DELAY;this.timeout=ss.TIMEOUT;this.debounceTime=ss.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:l}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${Ve()}`,b=document.createElement("div");b.setAttribute("id",f),b.setAttribute("aria-live",l!=null?l:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(b);let A=window.setTimeout(()=>{let F=document.createElement("p");F.textContent=t,b.appendChild(F),this.ariaLiveAnnouncementIds.push(f);let V=window.setTimeout(()=>{b.remove()},i!=null?i:this.timeout);this.timeOutIds.push(V)},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 l;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((l=i==null?void 0:i.shadowRoot)==null?void 0:l.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=`
2787
2809
  .mdc-screenreaderannouncer__visually-hidden {
2788
2810
  clip: rect(0 0 0 0);
2789
2811
  clip-path: inset(50%);
@@ -2793,7 +2815,7 @@
2793
2815
  white-space: nowrap;
2794
2816
  width: 1px;
2795
2817
  }
2796
- `,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=_d(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=ss.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=ss.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};di.styles=[...X.styles,...Rg],h([u({type:String,reflect:!0})],di.prototype,"announcement",2),h([u({type:String,reflect:!0})],di.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],di.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],di.prototype,"delay",2),h([u({type:Number,reflect:!0})],di.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],di.prototype,"debounceTime",2);var Jh=di;Jh.register(Og);var o0=Jh;Qh.register(Lg);var s0=Qh;var pe=a=>{class o extends a{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([Kt("input")],o.prototype,"inputElement",2),o};var a0=H`
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=kd(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=ss.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=ss.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};ci.styles=[...X.styles,...Dg],h([u({type:String,reflect:!0})],ci.prototype,"announcement",2),h([u({type:String,reflect:!0})],ci.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],ci.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],ci.prototype,"delay",2),h([u({type:Number,reflect:!0})],ci.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],ci.prototype,"debounceTime",2);var tp=ci;tp.register(Rg);var s0=tp;Jh.register(Mg);var a0=Jh;var pe=a=>{class o extends a{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([Kt("input")],o.prototype,"inputElement",2),o};var n0=H`
2797
2819
  :host {
2798
2820
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
2799
2821
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
@@ -2877,13 +2899,13 @@
2877
2899
  pointer-events: none;
2878
2900
  cursor: default;
2879
2901
  }
2880
- `,Dg=[yt,a0];var Pg=a=>({[Wt.ERROR]:"error-legacy-badge-filled",[Wt.WARNING]:"warning-badge-filled",[Wt.SUCCESS]:"check-circle-badge-filled",[Wt.PRIORITY]:"priority-badge-filled",[Wt.DEFAULT]:""})[a]||"";var lr=class extends te(X){constructor(){super(...arguments);this.inputId=`mdc-el-${Ve()}`;this.required=!1;this.helpTextType=Xt.VALIDATION;this.toggletipPlacement=Xt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Xt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?S`<label for="${this.inputId}" id="${Xt.HEADING_ID}" part="label">${this.label}</label>`:S` <mdc-text
2902
+ `,Pg=[yt,n0];var Fg=a=>({[Wt.ERROR]:"error-legacy-badge-filled",[Wt.WARNING]:"warning-badge-filled",[Wt.SUCCESS]:"check-circle-badge-filled",[Wt.PRIORITY]:"priority-badge-filled",[Wt.DEFAULT]:""})[a]||"";var lr=class extends te(X){constructor(){super(...arguments);this.inputId=`mdc-el-${Ve()}`;this.required=!1;this.helpTextType=Xt.VALIDATION;this.toggletipPlacement=Xt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Xt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?S`<label for="${this.inputId}" id="${Xt.HEADING_ID}" part="label">${this.label}</label>`:S` <mdc-text
2881
2903
  id="${Xt.HEADING_ID}"
2882
2904
  tagname="${mn.TAGNAME}"
2883
2905
  type="${mn.HEADER_TYPE}"
2884
2906
  part="label"
2885
2907
  >${this.label}</mdc-text
2886
- >`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=Pg(this.helpTextType||Xt.VALIDATION);return t&&!this.disabled?S`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:W}renderHelpText(){return this.helpText?S`
2908
+ >`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=Fg(this.helpTextType||Xt.VALIDATION);return t&&!this.disabled?S`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:W}renderHelpText(){return this.helpText?S`
2887
2909
  <mdc-text
2888
2910
  id="${Xt.HELPER_TEXT_ID}"
2889
2911
  part="help-text"
@@ -2919,7 +2941,7 @@
2919
2941
  </div>`}renderHelperText(){return this.helpText?S`<div part="help-text-container">
2920
2942
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
2921
2943
  <slot name="help-text">${this.renderHelpText()}</slot>
2922
- </div>`:W}};lr.styles=[...X.styles,...Dg],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 Qt=lr;var n0=[H`
2944
+ </div>`:W}};lr.styles=[...X.styles,...Pg],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 Qt=lr;var l0=[H`
2923
2945
  :host {
2924
2946
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
2925
2947
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -2989,7 +3011,7 @@
2989
3011
  :host([soft-disabled]) {
2990
3012
  pointer-events: none;
2991
3013
  }
2992
- `,...Et(!0)],Fg=n0;var vo=class extends Mt(Nt($e(pe(ie(Qt))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=Gv.DEFAULT;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}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(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===ee.DEFAULT&&((this.readonly||this.softDisabled)&&e===Y.SPACE&&t.preventDefault(),e===Y.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===ee.SPATIAL&&!(this.readonly||this.softDisabled)&&e===Y.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked"))}render(){var t;return S`
3014
+ `,...Et(!0)],$g=l0;var go=class extends Mt(Nt($e(pe(ie(Qt))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=Kv.DEFAULT;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}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(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===ee.DEFAULT&&((this.readonly||this.softDisabled)&&e===Y.SPACE&&t.preventDefault(),e===Y.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===ee.SPATIAL&&!(this.readonly||this.softDisabled)&&e===Y.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked"))}render(){var t;return S`
2993
3015
  <mdc-staticcheckbox
2994
3016
  part="static-checkbox"
2995
3017
  class="mdc-focus-ring"
@@ -3019,7 +3041,7 @@
3019
3041
  />
3020
3042
  </mdc-staticcheckbox>
3021
3043
  ${this.renderLabelAndHelperText()}
3022
- `}};vo.styles=[...Qt.styles,...Fg],vo.shadowRootOptions={...Qt.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],vo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],vo.prototype,"indeterminate",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],vo.prototype,"helpTextType",2);var tp=vo;tp.register(Uv);var l0=tp;var $g=B.constructTagName("staticchip"),ep={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},kd={COLOR:ep.DEFAULT,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN};var d0=H`
3044
+ `}};go.styles=[...Qt.styles,...$g],go.shadowRootOptions={...Qt.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],go.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],go.prototype,"indeterminate",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],go.prototype,"helpTextType",2);var ep=go;ep.register(Gv);var d0=ep;var Vg=B.constructTagName("staticchip"),rp={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},wd={COLOR:rp.DEFAULT,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN};var c0=H`
3023
3045
  :host {
3024
3046
  height: 1.5rem;
3025
3047
  gap: 0.25rem;
@@ -3091,12 +3113,12 @@
3091
3113
  --mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
3092
3114
  --mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
3093
3115
  }
3094
- `,Vg=[yt,d0];var ra=class extends ce(X){constructor(){super(...arguments);this.color=kd.COLOR}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return S`
3116
+ `,zg=[yt,c0];var ra=class extends ce(X){constructor(){super(...arguments);this.color=wd.COLOR}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return S`
3095
3117
  ${this.renderIcon()}
3096
- ${this.label?S`<mdc-text part="label" type="${kd.TEXT_TYPE}" tagname="${kd.TAG_NAME}"
3118
+ ${this.label?S`<mdc-text part="label" type="${wd.TEXT_TYPE}" tagname="${wd.TAG_NAME}"
3097
3119
  >${this.label}</mdc-text
3098
3120
  >`:W}
3099
- `}};ra.styles=[...X.styles,...Vg],h([u({type:String,reflect:!0})],ra.prototype,"color",2),h([u({type:String})],ra.prototype,"label",2);var yn=ra;var wd=B.constructTagName("chip"),ia={COLOR:ep.DEFAULT,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN,SIZE:Uo[24],ROLE:et.BUTTON};var c0=H`
3121
+ `}};ra.styles=[...X.styles,...zg],h([u({type:String,reflect:!0})],ra.prototype,"color",2),h([u({type:String})],ra.prototype,"label",2);var yn=ra;var Nd=B.constructTagName("chip"),ia={COLOR:rp.DEFAULT,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN,SIZE:Go[24],ROLE:et.BUTTON};var h0=H`
3100
3122
  :host {
3101
3123
  cursor: pointer;
3102
3124
  height: 1.5rem;
@@ -3190,12 +3212,12 @@
3190
3212
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3191
3213
  cursor: auto;
3192
3214
  }
3193
- `,zg=[yt,c0,...Et()];var oa=class extends ce(fe){constructor(){super(...arguments);this.color=ia.COLOR}connectedCallback(){super.connectedCallback(),this.role=ia.ROLE,this.size=ia.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> `:W}render(){return S`
3215
+ `,Bg=[yt,h0,...Et()];var oa=class extends ce(fe){constructor(){super(...arguments);this.color=ia.COLOR}connectedCallback(){super.connectedCallback(),this.role=ia.ROLE,this.size=ia.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> `:W}render(){return S`
3194
3216
  ${this.renderIcon()}
3195
3217
  ${this.label?S`<mdc-text part="label" type="${ia.TEXT_TYPE}" tagname="${ia.TAG_NAME}"
3196
3218
  >${this.label}</mdc-text
3197
3219
  >`:W}
3198
- `}};oa.styles=[...yn.styles,...zg],h([u({type:String,reflect:!0})],oa.prototype,"color",2),h([u({type:String})],oa.prototype,"label",2);var sa=oa;sa.register(wd);var h0=sa;var Bg=B.constructTagName("coachmark"),as={COLOR:Qo.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ns=class extends nr{constructor(){super(...arguments);this.trigger=as.TRIGGER;this.showArrow=as.ARROW;this.closeButton=as.CLOSE_BUTTON;this.disableAriaExpanded=as.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=as.COLOR,this.showArrow=as.ARROW}};h([u({type:String,reflect:!0})],ns.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],ns.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],ns.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ns.prototype,"disableAriaExpanded",2);var rp=ns;rp.register(Bg);var p0=rp;var Nd=B.constructTagName("controltypeprovider"),Ld={CONTROL_TYPE:"uncontrolled"},Md=["controlled","uncontrolled"];var m0=Nd,ip=m0;var Od=class extends Se{constructor(){super({context:ip});this.innerControlType=Ld.CONTROL_TYPE}static get Context(){return ip}set controlType(t){Md.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})],Od.prototype,"controlType",1);var op=Od;op.register(Nd);var sp=op;var Yr=wi(class extends si{constructor(a){var o;if(super(a),a.type!==gr.ATTRIBUTE||a.name!=="class"||((o=a.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(a){return" "+Object.keys(a).filter(o=>a[o]).join(" ")+" "}update(a,[o]){var e,i;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(let l in o)o[l]&&!((e=this.nt)!=null&&e.has(l))&&this.st.add(l);return this.render(o)}let t=a.element.classList;for(let l of this.st)l in o||(t.remove(l),this.st.delete(l));for(let l in o){let c=!!o[l];c===this.st.has(l)||(i=this.nt)!=null&&i.has(l)||(c?(t.add(l),this.st.add(l)):(t.remove(l),this.st.delete(l)))}return Fe}});function yr(a){let o=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),e=String(a.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function zt(a){if(!a||!/^\d{4}-\d{2}-\d{2}$/.test(a))return null;let o=a.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),l=new Date(t,e-1,i);return l.getFullYear()!==t||l.getMonth()!==e-1||l.getDate()!==i?null:l}function ci(a,o,t=1){return new Date(a,o-1,t)}function ls(){let a=new Date;return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function Er(a,o){let t=new Date(a);return t.setDate(t.getDate()+o),t}function Dd(a,o){let t=a.getMonth()+o,e=new Date(a.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function ap(a,o){let t=a.getFullYear()+o,e=new Date(t,a.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function Pd(a,o){return a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()&&a.getDate()===o.getDate()}function Fi(a,o){return a.getTime()<o.getTime()}function go(a,o){return a.getTime()>o.getTime()}function Fd(a,o){return a.getTime()<=o.getTime()}function Hg(a){return new Date(a.getFullYear(),a.getMonth(),1)}function np(a){return new Date(a.getFullYear(),a.getMonth()+1,0)}function $d(a,o){return new Date(a,o,0).getDate()}function Ug(a){let o=a.getDay();return o===0?7:o}function En(a,o=1){let t=a.getDay(),l=((t===0?7:t)-(o===7?7:o)+7)%7;return Er(a,-l)}function Gg(a,o="narrow"){let t=new Intl.DateTimeFormat(a,{weekday:o}),e=new Date(2026,0,5),i=[];for(let l=0;l<7;l+=1)i.push(t.format(Er(e,l)));return i}function ds(a){var i,l;try{let c=new Intl.Locale(a),f=(l=c.weekInfo)!=null?l:(i=c.getWeekInfo)==null?void 0:i.call(c);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=a.split("-")[0].toLowerCase(),e=a.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function Kg(a,o,t){let e=ci(a,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function Wg(a,o){let t=zt(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function Rd(a,o){let t=zt(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function Yg(a,o,t){let e=zt(a),i=zt(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${Rd(a,t)} \u2013 ${Rd(o,t)}`}}function Vd(a){let t=new Intl.DateTimeFormat(a,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let l of t)l.type==="month"&&!e.includes("month")&&e.push("month"),l.type==="day"&&!e.includes("day")&&e.push("day"),l.type==="year"&&!e.includes("year")&&e.push("year"),l.type==="literal"&&l.value.trim()&&(i=l.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var jg=B.constructTagName("calendar"),se={SINGLE:"single",WEEK:"week",RANGE:"range"},lp={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},qg=6,dp=7,cp={SELECTION_MODE:se.SINGLE,LOCALE:"en-US"};var u0=H`
3220
+ `}};oa.styles=[...yn.styles,...Bg],h([u({type:String,reflect:!0})],oa.prototype,"color",2),h([u({type:String})],oa.prototype,"label",2);var sa=oa;sa.register(Nd);var p0=sa;var Hg=B.constructTagName("coachmark"),as={COLOR:Qo.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ns=class extends nr{constructor(){super(...arguments);this.trigger=as.TRIGGER;this.showArrow=as.ARROW;this.closeButton=as.CLOSE_BUTTON;this.disableAriaExpanded=as.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=as.COLOR,this.showArrow=as.ARROW}};h([u({type:String,reflect:!0})],ns.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],ns.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],ns.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ns.prototype,"disableAriaExpanded",2);var ip=ns;ip.register(Hg);var m0=ip;var Ld=B.constructTagName("controltypeprovider"),Md={CONTROL_TYPE:"uncontrolled"},Od=["controlled","uncontrolled"];var u0=Ld,op=u0;var Rd=class extends Se{constructor(){super({context:op});this.innerControlType=Md.CONTROL_TYPE}static get Context(){return op}set controlType(t){Od.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})],Rd.prototype,"controlType",1);var sp=Rd;sp.register(Ld);var ap=sp;var Yr=Ni(class extends ai{constructor(a){var o;if(super(a),a.type!==gr.ATTRIBUTE||a.name!=="class"||((o=a.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(a){return" "+Object.keys(a).filter(o=>a[o]).join(" ")+" "}update(a,[o]){var e,i;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(let l in o)o[l]&&!((e=this.nt)!=null&&e.has(l))&&this.st.add(l);return this.render(o)}let t=a.element.classList;for(let l of this.st)l in o||(t.remove(l),this.st.delete(l));for(let l in o){let c=!!o[l];c===this.st.has(l)||(i=this.nt)!=null&&i.has(l)||(c?(t.add(l),this.st.add(l)):(t.remove(l),this.st.delete(l)))}return Fe}});function yr(a){let o=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),e=String(a.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function zt(a){if(!a||!/^\d{4}-\d{2}-\d{2}$/.test(a))return null;let o=a.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),l=new Date(t,e-1,i);return l.getFullYear()!==t||l.getMonth()!==e-1||l.getDate()!==i?null:l}function hi(a,o,t=1){return new Date(a,o-1,t)}function ls(){let a=new Date;return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function Er(a,o){let t=new Date(a);return t.setDate(t.getDate()+o),t}function Pd(a,o){let t=a.getMonth()+o,e=new Date(a.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function np(a,o){let t=a.getFullYear()+o,e=new Date(t,a.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function Fd(a,o){return a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()&&a.getDate()===o.getDate()}function $i(a,o){return a.getTime()<o.getTime()}function bo(a,o){return a.getTime()>o.getTime()}function $d(a,o){return a.getTime()<=o.getTime()}function Ug(a){return new Date(a.getFullYear(),a.getMonth(),1)}function lp(a){return new Date(a.getFullYear(),a.getMonth()+1,0)}function Vd(a,o){return new Date(a,o,0).getDate()}function Gg(a){let o=a.getDay();return o===0?7:o}function En(a,o=1){let t=a.getDay(),l=((t===0?7:t)-(o===7?7:o)+7)%7;return Er(a,-l)}function Kg(a,o="narrow"){let t=new Intl.DateTimeFormat(a,{weekday:o}),e=new Date(2026,0,5),i=[];for(let l=0;l<7;l+=1)i.push(t.format(Er(e,l)));return i}function ds(a){var i,l;try{let c=new Intl.Locale(a),f=(l=c.weekInfo)!=null?l:(i=c.getWeekInfo)==null?void 0:i.call(c);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=a.split("-")[0].toLowerCase(),e=a.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function Wg(a,o,t){let e=hi(a,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function Yg(a,o){let t=zt(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function Dd(a,o){let t=zt(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function jg(a,o,t){let e=zt(a),i=zt(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${Dd(a,t)} \u2013 ${Dd(o,t)}`}}function zd(a){let t=new Intl.DateTimeFormat(a,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let l of t)l.type==="month"&&!e.includes("month")&&e.push("month"),l.type==="day"&&!e.includes("day")&&e.push("day"),l.type==="year"&&!e.includes("year")&&e.push("year"),l.type==="literal"&&l.value.trim()&&(i=l.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var qg=B.constructTagName("calendar"),se={SINGLE:"single",WEEK:"week",RANGE:"range"},dp={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},Xg=6,cp=7,hp={SELECTION_MODE:se.SINGLE,LOCALE:"en-US"};var f0=H`
3199
3221
  :host {
3200
3222
  --mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
3201
3223
  --mdc-calendar-text-color: var(--mds-color-theme-text-primary-normal);
@@ -3390,13 +3412,13 @@
3390
3412
  .calendar-today-button mdc-button {
3391
3413
  width: auto;
3392
3414
  }
3393
- `,Xg=[Fr,u0];function Zg(a){let o=Gg(a,"narrow"),t=ds(a),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Qg(a,o,t,e,i,l,c,f){let b=ci(a,o,1),A=ls(),F=ds(t),V=Ug(b),Q;F===7?Q=V===7?0:V:(Q=V-F,Q<0&&(Q+=7));let Z=Er(b,-Q),tt=c?zt(c):void 0,nt=f?zt(f):void 0,at=i?zt(i):void 0,ht=l?zt(l):void 0,It=new Set(e),Ct=[];for(let Ht=0;Ht<qg;Ht+=1){let $t=[];for(let Ut=0;Ut<dp;Ut+=1){let Ot=Er(Z,Ht*dp+Ut),ae=yr(Ot),Ue=Ot.getMonth()+1===o&&Ot.getFullYear()===a,jt=Pd(Ot,A),Ee=It.has(ae),Te=!1;tt&&Fi(Ot,tt)&&(Te=!0),nt&&go(Ot,nt)&&(Te=!0);let xe=!1,kt=!1,oe=!1;at&&ht&&(kt=Pd(Ot,at),oe=Pd(Ot,ht),xe=Fd(at,Ot)&&Fd(Ot,ht)),$t.push({date:ae,day:Ot.getDate(),isCurrentMonth:Ue,isToday:jt,isSelected:Ee,isInRange:xe,isRangeStart:kt,isRangeEnd:oe,isDisabled:Te})}Ct.push({days:$t})}return Ct}function zd(a,o){let t=zt(a);if(!t)return{start:"",end:""};let e=En(t,ds(o)),i=Er(e,6);return{start:yr(e),end:yr(i)}}function hp(a,o,t){return Kg(a,o,t)}function Jg(a,o){let t=zt(a),e=zt(o);if(!t||!e)return[];let i=[],l=t;for(;Fd(l,e);)i.push(yr(l)),l=Er(l,1);return i}function tb(a,o){return Rd(a,o)}function Tn(a,o,t){return Yg(a,o,t)}var ve=class extends Mt(Nt(X)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=cp.SELECTION_MODE;this.locale=cp.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=zt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=zt(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ls(),e=this.min?zt(this.min):void 0,i=this.max?zt(this.max):void 0,l=t;e&&Fi(t,e)?l=e:i&&go(t,i)&&(l=i),this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear(),this.focusedDate=yr(l)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),i=this.getRangeEnd();return Qg(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value&&this.endValue?Jg(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=ci(this.displayYear,this.displayMonth,1),e=zt(this.min);return e?go(t,Hg(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=np(ci(this.displayYear,this.displayMonth,1)),e=zt(this.max);return e?Fi(t,np(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Dd(ci(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=yr(ci(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 se.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case se.WEEK:{let{start:e,end:i}=zd(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 se.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=zt(this.value),i=zt(t);e&&i&&Fi(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?zt(this.focusedDate):ls();if(!e)return;let i=this.getActionForKeyEvent(t),l;switch(i){case Y.LEFT:t.preventDefault(),l=Er(e,-1);break;case Y.RIGHT:t.preventDefault(),l=Er(e,1);break;case Y.UP:t.preventDefault(),l=Er(e,-7);break;case Y.DOWN:t.preventDefault(),l=Er(e,7);break;case Y.HOME:{t.preventDefault();let c=ds(this.locale);l=En(e,c);break}case Y.END:{t.preventDefault();let c=ds(this.locale);l=Er(En(e,c),6);break}case Y.ENTER:case Y.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===wt.PAGE_UP){t.preventDefault(),l=t.shiftKey?ap(e,-1):Dd(e,-1);break}if(t.key===wt.PAGE_DOWN){t.preventDefault(),l=t.shiftKey?ap(e,1):Dd(e,1);break}return}if(this.keyDownEventHandled(),l){let c=yr(l);if(this.isDateDisabled(c))return;this.focusedDate=c,(l.getMonth()+1!==this.displayMonth||l.getFullYear()!==this.displayYear)&&(this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear()),this.updateComplete.then(()=>{var b;let f=(b=this.shadowRoot)==null?void 0:b.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===se.WEEK&&this.value&&this.endValue?`Calendar, ${Tn(this.value,this.endValue,this.locale)}`:`Calendar, ${hp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=hp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
3415
+ `,Zg=[Fr,f0];function Qg(a){let o=Kg(a,"narrow"),t=ds(a),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Jg(a,o,t,e,i,l,c,f){let b=hi(a,o,1),A=ls(),F=ds(t),V=Gg(b),Q;F===7?Q=V===7?0:V:(Q=V-F,Q<0&&(Q+=7));let Z=Er(b,-Q),tt=c?zt(c):void 0,nt=f?zt(f):void 0,at=i?zt(i):void 0,ht=l?zt(l):void 0,It=new Set(e),Ct=[];for(let Ht=0;Ht<Xg;Ht+=1){let $t=[];for(let Ut=0;Ut<cp;Ut+=1){let Ot=Er(Z,Ht*cp+Ut),ae=yr(Ot),Ue=Ot.getMonth()+1===o&&Ot.getFullYear()===a,jt=Fd(Ot,A),Ee=It.has(ae),Te=!1;tt&&$i(Ot,tt)&&(Te=!0),nt&&bo(Ot,nt)&&(Te=!0);let xe=!1,kt=!1,oe=!1;at&&ht&&(kt=Fd(Ot,at),oe=Fd(Ot,ht),xe=$d(at,Ot)&&$d(Ot,ht)),$t.push({date:ae,day:Ot.getDate(),isCurrentMonth:Ue,isToday:jt,isSelected:Ee,isInRange:xe,isRangeStart:kt,isRangeEnd:oe,isDisabled:Te})}Ct.push({days:$t})}return Ct}function Bd(a,o){let t=zt(a);if(!t)return{start:"",end:""};let e=En(t,ds(o)),i=Er(e,6);return{start:yr(e),end:yr(i)}}function pp(a,o,t){return Wg(a,o,t)}function tb(a,o){let t=zt(a),e=zt(o);if(!t||!e)return[];let i=[],l=t;for(;$d(l,e);)i.push(yr(l)),l=Er(l,1);return i}function eb(a,o){return Dd(a,o)}function Tn(a,o,t){return jg(a,o,t)}var ve=class extends Mt(Nt(X)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=hp.SELECTION_MODE;this.locale=hp.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=zt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=zt(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ls(),e=this.min?zt(this.min):void 0,i=this.max?zt(this.max):void 0,l=t;e&&$i(t,e)?l=e:i&&bo(t,i)&&(l=i),this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear(),this.focusedDate=yr(l)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),i=this.getRangeEnd();return Jg(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value&&this.endValue?tb(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=hi(this.displayYear,this.displayMonth,1),e=zt(this.min);return e?bo(t,Ug(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=lp(hi(this.displayYear,this.displayMonth,1)),e=zt(this.max);return e?$i(t,lp(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Pd(hi(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=yr(hi(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 se.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case se.WEEK:{let{start:e,end:i}=Bd(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 se.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=zt(this.value),i=zt(t);e&&i&&$i(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?zt(this.focusedDate):ls();if(!e)return;let i=this.getActionForKeyEvent(t),l;switch(i){case Y.LEFT:t.preventDefault(),l=Er(e,-1);break;case Y.RIGHT:t.preventDefault(),l=Er(e,1);break;case Y.UP:t.preventDefault(),l=Er(e,-7);break;case Y.DOWN:t.preventDefault(),l=Er(e,7);break;case Y.HOME:{t.preventDefault();let c=ds(this.locale);l=En(e,c);break}case Y.END:{t.preventDefault();let c=ds(this.locale);l=Er(En(e,c),6);break}case Y.ENTER:case Y.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===wt.PAGE_UP){t.preventDefault(),l=t.shiftKey?np(e,-1):Pd(e,-1);break}if(t.key===wt.PAGE_DOWN){t.preventDefault(),l=t.shiftKey?np(e,1):Pd(e,1);break}return}if(this.keyDownEventHandled(),l){let c=yr(l);if(this.isDateDisabled(c))return;this.focusedDate=c,(l.getMonth()+1!==this.displayMonth||l.getFullYear()!==this.displayYear)&&(this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear()),this.updateComplete.then(()=>{var b;let f=(b=this.shadowRoot)==null?void 0:b.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===se.WEEK&&this.value&&this.endValue?`Calendar, ${Tn(this.value,this.endValue,this.locale)}`:`Calendar, ${pp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=pp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
3394
3416
  <div class="calendar-header">
3395
3417
  <mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
3396
3418
  <div class="calendar-header-nav">
3397
3419
  <mdc-button
3398
3420
  variant="${Vt.TERTIARY}"
3399
- prefix-icon="${lp.CHEVRON_LEFT}"
3421
+ prefix-icon="${dp.CHEVRON_LEFT}"
3400
3422
  aria-label="${this.localePrevMonthLabel}"
3401
3423
  size="24"
3402
3424
  ?disabled="${e}"
@@ -3404,7 +3426,7 @@
3404
3426
  ></mdc-button>
3405
3427
  <mdc-button
3406
3428
  variant="${Vt.TERTIARY}"
3407
- prefix-icon="${lp.CHEVRON_RIGHT}"
3429
+ prefix-icon="${dp.CHEVRON_RIGHT}"
3408
3430
  aria-label="${this.localeNextMonthLabel}"
3409
3431
  size="24"
3410
3432
  ?disabled="${i}"
@@ -3422,13 +3444,13 @@
3422
3444
  aria-selected="${f?"true":"false"}"
3423
3445
  aria-disabled="${t.isDisabled?"true":W}"
3424
3446
  aria-current="${t.isToday?"date":W}"
3425
- aria-label="${Wg(t.date,this.locale)}"
3447
+ aria-label="${Yg(t.date,this.locale)}"
3426
3448
  @click="${()=>this.handleDayClick(t)}"
3427
3449
  >
3428
3450
  ${t.day}
3429
3451
  </button>
3430
3452
  </div>
3431
- `}handleGridFocusIn(){this.gridHasFocus=!0}handleGridFocusOut(){this.gridHasFocus=!1}renderGrid(){let t=this.calendarGrid,e=Zg(this.locale);return S`
3453
+ `}handleGridFocusIn(){this.gridHasFocus=!0}handleGridFocusOut(){this.gridHasFocus=!1}renderGrid(){let t=this.calendarGrid,e=Qg(this.locale);return S`
3432
3454
  <div
3433
3455
  class="calendar-grid"
3434
3456
  role="grid"
@@ -3442,7 +3464,7 @@
3442
3464
  </div>
3443
3465
  ${t.map(i=>S` <div class="calendar-row" role="row">${i.days.map(l=>this.renderDay(l))}</div> `)}
3444
3466
  </div>
3445
- `}isDateDisabled(t){let e=zt(t);if(!e)return!0;let i=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;return!!(i&&Fi(e,i)||l&&go(e,l))}isTodayDisabled(){return this.isDateDisabled(yr(ls()))}handleTodayClick(){let t=ls(),e=yr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return W;let t=this.isTodayDisabled();return S`
3467
+ `}isDateDisabled(t){let e=zt(t);if(!e)return!0;let i=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;return!!(i&&$i(e,i)||l&&bo(e,l))}isTodayDisabled(){return this.isDateDisabled(yr(ls()))}handleTodayClick(){let t=ls(),e=yr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return W;let t=this.isTodayDisabled();return S`
3446
3468
  <div class="calendar-today-button">
3447
3469
  <mdc-button
3448
3470
  variant="${Vt.TERTIARY}"
@@ -3453,7 +3475,7 @@
3453
3475
  >${this.localeTodayLabel}</mdc-button
3454
3476
  >
3455
3477
  </div>
3456
- `}render(){return S` ${this.renderHeader()} ${this.renderGrid()} ${this.renderTodayButton()} `}};ve.styles=[...X.styles,...Xg],h([u({type:String,reflect:!0})],ve.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"end-value"})],ve.prototype,"endValue",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],ve.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],ve.prototype,"locale",2),h([u({type:String,reflect:!0})],ve.prototype,"min",2),h([u({type:String,reflect:!0})],ve.prototype,"max",2),h([u({type:Boolean,reflect:!0,attribute:"show-today-button"})],ve.prototype,"showTodayButton",2),h([u({type:String,attribute:"locale-today-label"})],ve.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],ve.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],ve.prototype,"localeNextMonthLabel",2),h([dt()],ve.prototype,"displayMonth",2),h([dt()],ve.prototype,"displayYear",2),h([dt()],ve.prototype,"focusedDate",2),h([dt()],ve.prototype,"gridHasFocus",2),h([dt()],ve.prototype,"rangeSelectionPhase",2);var pp=ve;pp.register(jg);var f0=pp;nr.register(Bv);Sd.register(Id);var v0=nr;var eb=B.constructTagName("datepicker"),xn={DEFAULT:"default",INPUT:"input"},mp="calendar-empty-bold",An="datepicker-triggerid",Bd={VARIANT:xn.INPUT,LOCALE:"en-US",DISABLE_FLIP:!1};var g0=H`
3478
+ `}render(){return S` ${this.renderHeader()} ${this.renderGrid()} ${this.renderTodayButton()} `}};ve.styles=[...X.styles,...Zg],h([u({type:String,reflect:!0})],ve.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"end-value"})],ve.prototype,"endValue",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],ve.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],ve.prototype,"locale",2),h([u({type:String,reflect:!0})],ve.prototype,"min",2),h([u({type:String,reflect:!0})],ve.prototype,"max",2),h([u({type:Boolean,reflect:!0,attribute:"show-today-button"})],ve.prototype,"showTodayButton",2),h([u({type:String,attribute:"locale-today-label"})],ve.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],ve.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],ve.prototype,"localeNextMonthLabel",2),h([dt()],ve.prototype,"displayMonth",2),h([dt()],ve.prototype,"displayYear",2),h([dt()],ve.prototype,"focusedDate",2),h([dt()],ve.prototype,"gridHasFocus",2),h([dt()],ve.prototype,"rangeSelectionPhase",2);var mp=ve;mp.register(qg);var v0=mp;nr.register(Hv);Id.register(Cd);var g0=nr;var rb=B.constructTagName("datepicker"),xn={DEFAULT:"default",INPUT:"input"},up="calendar-empty-bold",An="datepicker-triggerid",Hd={VARIANT:xn.INPUT,LOCALE:"en-US",DISABLE_FLIP:!1};var b0=H`
3457
3479
  :host {
3458
3480
  --mdc-datepicker-background-color: var(--mds-color-theme-background-primary-ghost);
3459
3481
  --mdc-datepicker-text-color: var(--mds-color-theme-text-primary-normal);
@@ -3625,7 +3647,7 @@
3625
3647
  --mdc-datepicker-text-color: var(--mds-color-theme-text-primary-disabled);
3626
3648
  color: var(--mds-color-theme-text-primary-disabled);
3627
3649
  }
3628
- `,rb=[g0,...Et(!0)];function Sn(a){return Vd(a).order}function ib(a){return Vd(a).separator}function ob(a){if(!a)return null;let o=zt(a);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 sb(a,o,t){let e=parseInt(a,10),i=parseInt(o,10),l=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(l)||e<1||e>12||i<1||i>31||l<1)return"";let c=$d(l,e);if(i>c)return"";let f=ci(l,e,i);return yr(f)}function ab(a){let{order:o,separator:t}=Vd(a),e={month:"mm",day:"dd",year:"yyyy"};return o.map(i=>e[i]).join(` ${t} `)}function up(a,o,t){switch(a){case"month":return 12;case"day":return o&&t?$d(t,o):o?$d(2e3,o):31;case"year":return 9999;default:return 0}}function fp(a){switch(a){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var Bt=class extends pe(ie(Qt)){constructor(){super(...arguments);this.variant=Bd.VARIANT;this.value="";this.selectionMode=se.SINGLE;this.locale=Bd.LOCALE;this.placement=Lt.BOTTOM_START;this.strategy=bt.STRATEGY;this.disableFlip=Bd.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(){let t=ob(this.value);t?(this.internalMonth=t.month,this.internalDay=t.day,this.internalYear=t.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return sb(this.internalMonth,this.internalDay,this.internalYear)}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&&t!==this.value){let e=zt(t);if(e){let i=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;if(i&&Fi(e,i)||l&&go(e,l))return}this.value=t,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===wt.ENTER||t.key===wt.SPACE||t.key===wt.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===se.WEEK||i===se.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 l=i===se.RANGE&&this.value&&this.endValue;(i!==se.RANGE||l)&&(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,l=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=l;break;case"day":this.internalDay=l;break;case"year":this.internalYear=l;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let i=parseInt(this.internalMonth,10)||void 0,l=parseInt(this.internalYear,10)||void 0,c=fp(e),f=up(e,i,l),b=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case wt.ARROW_UP:{t.preventDefault();let A=b>=f?c:b+1;this.setFieldValue(e,A),this.commitValue();break}case wt.ARROW_DOWN:{t.preventDefault();let A=b<=c?f:b-1;this.setFieldValue(e,A),this.commitValue();break}case wt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case wt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case wt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,c,f)):t.preventDefault();break}}}handleDigitInput(t,e,i,l){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let c=e==="year"?4:2;if(this.pendingDigits.length>=c){let f=parseInt(this.pendingDigits,10);f>l&&(f=l),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),b=Math.floor(l/10);if(f>b){let A=f;A>l&&(A=l),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=Sn(this.locale),i=e.indexOf(t);if(i<e.length-1){let l=e[i+1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(l);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Sn(this.locale),i=e.indexOf(t);if(i>0){let l=e[i-1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(l);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Sn(this.locale),l=this.getSpinbuttonInput(i[0]);l==null||l.focus(),l==null||l.select()}}handleBaseKeydown(t){t.key===wt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===xn.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(An);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===se.WEEK?se.WEEK:this.variant===xn.DEFAULT?se.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===se.WEEK){let{start:t,end:e}=zd(this.value,this.locale);return Tn(t,e,this.locale)}return this.effectiveSelectionMode===se.RANGE&&this.endValue?Tn(this.value,this.endValue,this.locale):tb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=parseInt(this.internalMonth,10)||void 0,l=parseInt(this.internalYear,10)||void 0,c=fp(t),f=up(t,i,l),b={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},A={month:"mm",day:"dd",year:"yyyy"};return S`
3650
+ `,ib=[b0,...Et(!0)];function Sn(a){return zd(a).order}function ob(a){return zd(a).separator}function sb(a){if(!a)return null;let o=zt(a);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 ab(a,o,t){let e=parseInt(a,10),i=parseInt(o,10),l=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(l)||e<1||e>12||i<1||i>31||l<1)return"";let c=Vd(l,e);if(i>c)return"";let f=hi(l,e,i);return yr(f)}function nb(a){let{order:o,separator:t}=zd(a),e={month:"mm",day:"dd",year:"yyyy"};return o.map(i=>e[i]).join(` ${t} `)}function fp(a,o,t){switch(a){case"month":return 12;case"day":return o&&t?Vd(t,o):o?Vd(2e3,o):31;case"year":return 9999;default:return 0}}function vp(a){switch(a){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var Bt=class extends pe(ie(Qt)){constructor(){super(...arguments);this.variant=Hd.VARIANT;this.value="";this.selectionMode=se.SINGLE;this.locale=Hd.LOCALE;this.placement=Lt.BOTTOM_START;this.strategy=bt.STRATEGY;this.disableFlip=Hd.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(){let t=sb(this.value);t?(this.internalMonth=t.month,this.internalDay=t.day,this.internalYear=t.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return ab(this.internalMonth,this.internalDay,this.internalYear)}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&&t!==this.value){let e=zt(t);if(e){let i=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;if(i&&$i(e,i)||l&&bo(e,l))return}this.value=t,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===wt.ENTER||t.key===wt.SPACE||t.key===wt.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===se.WEEK||i===se.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 l=i===se.RANGE&&this.value&&this.endValue;(i!==se.RANGE||l)&&(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,l=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=l;break;case"day":this.internalDay=l;break;case"year":this.internalYear=l;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let i=parseInt(this.internalMonth,10)||void 0,l=parseInt(this.internalYear,10)||void 0,c=vp(e),f=fp(e,i,l),b=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case wt.ARROW_UP:{t.preventDefault();let A=b>=f?c:b+1;this.setFieldValue(e,A),this.commitValue();break}case wt.ARROW_DOWN:{t.preventDefault();let A=b<=c?f:b-1;this.setFieldValue(e,A),this.commitValue();break}case wt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case wt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case wt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,c,f)):t.preventDefault();break}}}handleDigitInput(t,e,i,l){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let c=e==="year"?4:2;if(this.pendingDigits.length>=c){let f=parseInt(this.pendingDigits,10);f>l&&(f=l),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),b=Math.floor(l/10);if(f>b){let A=f;A>l&&(A=l),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=Sn(this.locale),i=e.indexOf(t);if(i<e.length-1){let l=e[i+1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(l);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Sn(this.locale),i=e.indexOf(t);if(i>0){let l=e[i-1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(l);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Sn(this.locale),l=this.getSpinbuttonInput(i[0]);l==null||l.focus(),l==null||l.select()}}handleBaseKeydown(t){t.key===wt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===xn.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(An);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===se.WEEK?se.WEEK:this.variant===xn.DEFAULT?se.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===se.WEEK){let{start:t,end:e}=Bd(this.value,this.locale);return Tn(t,e,this.locale)}return this.effectiveSelectionMode===se.RANGE&&this.endValue?Tn(this.value,this.endValue,this.locale):eb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=parseInt(this.internalMonth,10)||void 0,l=parseInt(this.internalYear,10)||void 0,c=vp(t),f=fp(t,i,l),b={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},A={month:"mm",day:"dd",year:"yyyy"};return S`
3629
3651
  <input
3630
3652
  id="${t}-spinbutton"
3631
3653
  part="spinbutton spinbutton-${t}"
@@ -3644,7 +3666,7 @@
3644
3666
  @keydown="${F=>this.handleSpinbuttonKeydown(F,t)}"
3645
3667
  @focus="${this.handleSpinbuttonFocus}"
3646
3668
  />
3647
- `}renderInputVariant(){let t=Sn(this.locale),e=ib(this.locale);return S`
3669
+ `}renderInputVariant(){let t=Sn(this.locale),e=ob(this.locale);return S`
3648
3670
  <div
3649
3671
  id="${An}"
3650
3672
  part="base-container"
@@ -3662,7 +3684,7 @@
3662
3684
  part="icon-container"
3663
3685
  class="own-focus-ring"
3664
3686
  variant="tertiary"
3665
- prefix-icon="${mp}"
3687
+ prefix-icon="${up}"
3666
3688
  aria-label="${this.localeCalendarLabel}"
3667
3689
  aria-expanded="${this.displayPopover?"true":"false"}"
3668
3690
  aria-haspopup="dialog"
@@ -3671,7 +3693,7 @@
3671
3693
  @click="${this.handleCalendarButtonClick}"
3672
3694
  ></mdc-button>
3673
3695
  </div>
3674
- `}renderDefaultVariant(){let t=this.getDisplayText(),e=ab(this.locale);return S`
3696
+ `}renderDefaultVariant(){let t=this.getDisplayText(),e=nb(this.locale);return S`
3675
3697
  <div
3676
3698
  id="${An}"
3677
3699
  part="base-container"
@@ -3685,7 +3707,7 @@
3685
3707
  @keydown="${this.handleSelectKeydown}"
3686
3708
  >
3687
3709
  ${t?S`<span part="select-text">${t}</span>`:S`<span part="select-text select-placeholder">${e}</span>`}
3688
- <mdc-icon part="icon-container" name="${mp}" size="1" aria-hidden="true"></mdc-icon>
3710
+ <mdc-icon part="icon-container" name="${up}" size="1" aria-hidden="true"></mdc-icon>
3689
3711
  </div>
3690
3712
  `}renderPopover(){let t=this.effectiveSelectionMode;return S`
3691
3713
  <mdc-popover
@@ -3740,7 +3762,7 @@
3740
3762
  ${this.renderPopover()}
3741
3763
  </div>
3742
3764
  ${this.helpText?this.renderHelperText():W}
3743
- `}};Bt.styles=[...Qt.styles,...rb],h([u({type:String,reflect:!0})],Bt.prototype,"variant",2),h([u({type:String,reflect:!0})],Bt.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Bt.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Bt.prototype,"locale",2),h([u({type:String,reflect:!0})],Bt.prototype,"min",2),h([u({type:String,reflect:!0})],Bt.prototype,"max",2),h([u({type:String,reflect:!0})],Bt.prototype,"placement",2),h([u({type:String,reflect:!0})],Bt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Bt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Bt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Bt.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Bt.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Bt.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Bt.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Bt.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Bt.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Bt.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Bt.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Bt.prototype,"localeNextMonthLabel",2),h([Kt("#month-spinbutton")],Bt.prototype,"monthInput",2),h([Kt("#day-spinbutton")],Bt.prototype,"dayInput",2),h([Kt("#year-spinbutton")],Bt.prototype,"yearInput",2),h([dt()],Bt.prototype,"displayPopover",2),h([dt()],Bt.prototype,"internalMonth",2),h([dt()],Bt.prototype,"internalDay",2),h([dt()],Bt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Bt.prototype,"endValue",2);var vp=Bt;vp.register(eb);var b0=vp;Ks.register(Qf);var y0=Ks;var In=B.constructTagName("divider"),cs={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Cn={SOLID:"solid",GRADIENT:"gradient"},Nr={POSITIVE:"positive",NEGATIVE:"negative"},_n={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},hs={ORIENTATION:cs.HORIZONTAL,VARIANT:Cn.SOLID,ARROW_DIRECTION:Nr.NEGATIVE,BUTTON_DIRECTION:Nr.NEGATIVE};var E0=[yt,H`
3765
+ `}};Bt.styles=[...Qt.styles,...ib],h([u({type:String,reflect:!0})],Bt.prototype,"variant",2),h([u({type:String,reflect:!0})],Bt.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Bt.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Bt.prototype,"locale",2),h([u({type:String,reflect:!0})],Bt.prototype,"min",2),h([u({type:String,reflect:!0})],Bt.prototype,"max",2),h([u({type:String,reflect:!0})],Bt.prototype,"placement",2),h([u({type:String,reflect:!0})],Bt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Bt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Bt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Bt.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Bt.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Bt.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Bt.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Bt.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Bt.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Bt.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Bt.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Bt.prototype,"localeNextMonthLabel",2),h([Kt("#month-spinbutton")],Bt.prototype,"monthInput",2),h([Kt("#day-spinbutton")],Bt.prototype,"dayInput",2),h([Kt("#year-spinbutton")],Bt.prototype,"yearInput",2),h([dt()],Bt.prototype,"displayPopover",2),h([dt()],Bt.prototype,"internalMonth",2),h([dt()],Bt.prototype,"internalDay",2),h([dt()],Bt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Bt.prototype,"endValue",2);var gp=Bt;gp.register(rb);var y0=gp;Ks.register(Jf);var E0=Ks;var In=B.constructTagName("divider"),cs={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Cn={SOLID:"solid",GRADIENT:"gradient"},Nr={POSITIVE:"positive",NEGATIVE:"negative"},_n={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},hs={ORIENTATION:cs.HORIZONTAL,VARIANT:Cn.SOLID,ARROW_DIRECTION:Nr.NEGATIVE,BUTTON_DIRECTION:Nr.NEGATIVE};var T0=[yt,H`
3744
3766
  :host {
3745
3767
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
3746
3768
  --mdc-divider-width: 0.0625rem;
@@ -3941,11 +3963,11 @@
3941
3963
  :host([data-hidden]) {
3942
3964
  display: none;
3943
3965
  }
3944
- `],nb=E0;var bo=class extends X{constructor(){super(...arguments);this.orientation=hs.ORIENTATION;this.variant=hs.VARIANT;this.arrowDirection=hs.ARROW_DIRECTION;this.buttonPosition=hs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Cn).includes(t)?t:hs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(cs).includes(t)?t:hs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===cs.HORIZONTAL?Nr.NEGATIVE:Nr.POSITIVE;Object.values(Nr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Nr).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===cs.HORIZONTAL,e=this.arrowDirection===Nr.POSITIVE;return t?e?_n.UP:_n.DOWN:e?_n.RIGHT:_n.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 c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===tn.toUpperCase()),l=e.some(f=>f.tagName===Ii.toUpperCase());i&&!l?this.setAttribute("data-type","mdc-text-divider"):!i&&l&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
3966
+ `],lb=T0;var yo=class extends X{constructor(){super(...arguments);this.orientation=hs.ORIENTATION;this.variant=hs.VARIANT;this.arrowDirection=hs.ARROW_DIRECTION;this.buttonPosition=hs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Cn).includes(t)?t:hs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(cs).includes(t)?t:hs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===cs.HORIZONTAL?Nr.NEGATIVE:Nr.POSITIVE;Object.values(Nr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Nr).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===cs.HORIZONTAL,e=this.arrowDirection===Nr.POSITIVE;return t?e?_n.UP:_n.DOWN:e?_n.RIGHT:_n.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 c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===tn.toUpperCase()),l=e.some(f=>f.tagName===Ci.toUpperCase());i&&!l?this.setAttribute("data-type","mdc-text-divider"):!i&&l&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
3945
3967
  <div></div>
3946
3968
  <slot @slotchange=${this.inferDividerType}></slot>
3947
3969
  <div></div>
3948
- `}};bo.styles=[...X.styles,...nb],h([u({type:String,reflect:!0})],bo.prototype,"orientation",2),h([u({type:String,reflect:!0})],bo.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],bo.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],bo.prototype,"buttonPosition",2);var gp=bo;gp.register(In);var T0=gp;var x0=H`
3970
+ `}};yo.styles=[...X.styles,...lb],h([u({type:String,reflect:!0})],yo.prototype,"orientation",2),h([u({type:String,reflect:!0})],yo.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],yo.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],yo.prototype,"buttonPosition",2);var bp=yo;bp.register(In);var x0=bp;var A0=H`
3949
3971
  :host([selected]) {
3950
3972
  border: 2px solid;
3951
3973
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -3967,7 +3989,7 @@
3967
3989
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3968
3990
  cursor: auto;
3969
3991
  }
3970
- `,lb=[x0];var db=B.constructTagName("filterchip"),bp={ICON_NAME:"check-bold",COLOR:"default"};var kn=class extends sa{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=bp.COLOR}setSelected(t){t?(this.iconName=bp.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)}};kn.styles=[...sa.styles,...lb],h([u({type:Boolean,reflect:!0})],kn.prototype,"selected",2);var yp=kn;yp.register(db);var A0=yp;var S0=H`
3992
+ `,db=[A0];var cb=B.constructTagName("filterchip"),yp={ICON_NAME:"check-bold",COLOR:"default"};var kn=class extends sa{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=yp.COLOR}setSelected(t){t?(this.iconName=yp.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)}};kn.styles=[...sa.styles,...db],h([u({type:Boolean,reflect:!0})],kn.prototype,"selected",2);var Ep=kn;Ep.register(cb);var S0=Ep;var I0=H`
3971
3993
  :host {
3972
3994
  display: flex;
3973
3995
  flex-direction: column;
@@ -3979,14 +4001,14 @@
3979
4001
  flex-direction: column;
3980
4002
  gap: 0.25rem;
3981
4003
  }
3982
- `,cb=[S0];var Hd=class extends Qt{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`
4004
+ `,hb=[I0];var Ud=class extends Qt{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`
3983
4005
  <div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
3984
4006
  <slot></slot>
3985
- `}};Hd.styles=[...Qt.styles,...cb];var Ep=Hd;var hb=B.constructTagName("formfieldgroup");Ep.register(hb);var Ud=Ep;Qa.register(Ml);var I0=Qa;ln.register(td);var C0=ln;var ps=wi(class extends si{constructor(a){if(super(a),a.type!==gr.PROPERTY&&a.type!==gr.ATTRIBUTE&&a.type!==gr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Vl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===Fe||o===W)return o;let t=a.element,e=a.name;if(a.type===gr.PROPERTY){if(o===t[e])return Fe}else if(a.type===gr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return Fe}else if(a.type===gr.ATTRIBUTE&&t.getAttribute(e)===o+"")return Fe;return zl(a),o}});Qt.register(Hv);var dr=Qt;var Gd=a=>{class o extends a{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`
4007
+ `}};Ud.styles=[...Qt.styles,...hb];var Tp=Ud;var pb=B.constructTagName("formfieldgroup");Tp.register(pb);var Gd=Tp;Qa.register(Ol);var C0=Qa;ln.register(ed);var _0=ln;var ps=Ni(class extends ai{constructor(a){if(super(a),a.type!==gr.PROPERTY&&a.type!==gr.ATTRIBUTE&&a.type!==gr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!zl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===Fe||o===W)return o;let t=a.element,e=a.name;if(a.type===gr.PROPERTY){if(o===t[e])return Fe}else if(a.type===gr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return Fe}else if(a.type===gr.ATTRIBUTE&&t.getAttribute(e)===o+"")return Fe;return Bl(a),o}});Qt.register(Uv);var dr=Qt;var Kd=a=>{class o extends a{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`
3986
4008
  <mdc-text part="character-counter" tagname="span" type="body-midsize-regular">
3987
4009
  ${this.value.length}/${this.maxCharacterLimit}
3988
4010
  </mdc-text>
3989
- `:W}}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 pb=B.constructTagName("input"),Kd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},aa={OFF:"off",ON:"on"},yo={PASSWORD:"password",TEXT:"text",SEARCH:"search"},mb={MAX_LENGTH:10,VALIDATION:Wt.ERROR},$i={VALIDATION:Wt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Vt.TERTIARY,CLEAR_BUTTON_SIZE:Ir[20],PREFIX_TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:ut.SPAN,AUTO_COMPLETE:aa.OFF,INPUT_TYPE:yo.TEXT};var _0=[H`
4011
+ `:W}}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 mb=B.constructTagName("input"),Wd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},aa={OFF:"off",ON:"on"},Eo={PASSWORD:"password",TEXT:"text",SEARCH:"search"},ub={MAX_LENGTH:10,VALIDATION:Wt.ERROR},Vi={VALIDATION:Wt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Vt.TERTIARY,CLEAR_BUTTON_SIZE:Ir[20],PREFIX_TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:ut.SPAN,AUTO_COMPLETE:aa.OFF,INPUT_TYPE:Eo.TEXT};var k0=[H`
3990
4012
  :host {
3991
4013
  --mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
3992
4014
  --mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
@@ -4127,30 +4149,30 @@
4127
4149
  :host([disabled])::part(character-counter) {
4128
4150
  color: var(--mds-color-theme-text-primary-disabled);
4129
4151
  }
4130
- `,...Et(!0)],ub=_0;var ge=class extends Gd(Nt($e(pe(ie(dr))))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=Kd.OFF;this.autocomplete=aa.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(l=>{this.onerror&&this.onerror(l)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Wt.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)===Y.ENTER&&this.getKeyboardNavMode()===ee.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?S`
4152
+ `,...Et(!0)],fb=k0;var ge=class extends Kd(Nt($e(pe(ie(dr))))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=Wd.OFF;this.autocomplete=aa.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(l=>{this.onerror&&this.onerror(l)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Wt.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)===Y.ENTER&&this.getKeyboardNavMode()===ee.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?S`
4131
4153
  <mdc-icon
4132
4154
  part="leading-icon"
4133
4155
  name=${this.leadingIcon}
4134
- size="${$i.ICON_SIZE_VALUE}"
4135
- length-unit="${$i.ICON_SIZE_UNIT}"
4156
+ size="${Vi.ICON_SIZE_VALUE}"
4157
+ length-unit="${Vi.ICON_SIZE_UNIT}"
4136
4158
  >
4137
4159
  </mdc-icon>
4138
4160
  `:W}renderPrefixText(){return this.prefixText?S`
4139
4161
  <mdc-text
4140
4162
  part="prefix-text"
4141
- tagname="${$i.PREFIX_TEXT_TAG}"
4142
- type="${$i.PREFIX_TEXT_TYPE}"
4163
+ tagname="${Vi.PREFIX_TEXT_TAG}"
4164
+ type="${Vi.PREFIX_TEXT_TYPE}"
4143
4165
  aria-hidden="true"
4144
4166
  >
4145
- ${this.prefixText.slice(0,mb.MAX_LENGTH)}
4167
+ ${this.prefixText.slice(0,ub.MAX_LENGTH)}
4146
4168
  </mdc-text>
4147
4169
  `:W}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`
4148
4170
  <mdc-button
4149
4171
  part="trailing-button"
4150
4172
  class="own-focus-ring ${e?"":"hidden"}"
4151
- prefix-icon="${$i.CLEAR_BUTTON_ICON}"
4152
- variant="${$i.CLEAR_BUTTON_VARIANT}"
4153
- size="${$i.CLEAR_BUTTON_SIZE}"
4173
+ prefix-icon="${Vi.CLEAR_BUTTON_ICON}"
4174
+ variant="${Vi.CLEAR_BUTTON_VARIANT}"
4175
+ size="${Vi.CLEAR_BUTTON_SIZE}"
4154
4176
  aria-label="${this.clearAriaLabel}"
4155
4177
  @click=${this.clearInputText}
4156
4178
  ?disabled=${this.disabled||this.readonly||!e}
@@ -4185,7 +4207,7 @@
4185
4207
  <slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
4186
4208
  <div part="input-section">
4187
4209
  <slot name="input-prefix-text">${this.renderPrefixText()}</slot>
4188
- <slot name="input">${this.renderInputElement($i.INPUT_TYPE)}</slot>
4210
+ <slot name="input">${this.renderInputElement(Vi.INPUT_TYPE)}</slot>
4189
4211
  </div>
4190
4212
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
4191
4213
  </div>
@@ -4196,7 +4218,7 @@
4196
4218
  delay="500"
4197
4219
  ></mdc-screenreaderannouncer>
4198
4220
  ${this.renderInputFooter()}
4199
- `}};ge.styles=[...dr.styles,...ub],ge.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],ge.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],ge.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],ge.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],ge.prototype,"trailingButton",2),h([u({type:Number})],ge.prototype,"maxlength",2),h([u({type:Number})],ge.prototype,"minlength",2),h([u({type:String})],ge.prototype,"autocapitalize",2),h([u({type:String})],ge.prototype,"autocomplete",2),h([u({type:String})],ge.prototype,"dirname",2),h([u({type:String})],ge.prototype,"pattern",2),h([u({type:String})],ge.prototype,"list",2),h([u({type:Number})],ge.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],ge.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],ge.prototype,"dataAriaDescribedby",2);var jr=ge;jr.register(pb);var k0=jr;var w0=H`
4221
+ `}};ge.styles=[...dr.styles,...fb],ge.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],ge.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],ge.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],ge.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],ge.prototype,"trailingButton",2),h([u({type:Number})],ge.prototype,"maxlength",2),h([u({type:Number})],ge.prototype,"minlength",2),h([u({type:String})],ge.prototype,"autocapitalize",2),h([u({type:String})],ge.prototype,"autocomplete",2),h([u({type:String})],ge.prototype,"dirname",2),h([u({type:String})],ge.prototype,"pattern",2),h([u({type:String})],ge.prototype,"list",2),h([u({type:Number})],ge.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],ge.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],ge.prototype,"dataAriaDescribedby",2);var jr=ge;jr.register(mb);var w0=jr;var N0=H`
4200
4222
  :host {
4201
4223
  height: 1.5rem;
4202
4224
  gap: 0.25rem;
@@ -4232,13 +4254,13 @@
4232
4254
  width: 1.25rem;
4233
4255
  height: 1.25rem;
4234
4256
  }
4235
- `,fb=[yt,w0];var na=B.constructTagName("inputchip"),Wd={TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN,CLOSE_ICON:"cancel-bold"};var ms=class extends ce(te(X)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
4257
+ `,vb=[yt,N0];var na=B.constructTagName("inputchip"),Yd={TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN,CLOSE_ICON:"cancel-bold"};var ms=class extends ce(te(X)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
4236
4258
  <slot name="prefix">
4237
4259
  ${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:W}
4238
4260
  </slot>
4239
4261
  `}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return S`
4240
4262
  ${this.renderPrefix()}
4241
- ${this.label?S`<mdc-text part="label" type="${Wd.TEXT_TYPE}" tagname="${Wd.TAG_NAME}"
4263
+ ${this.label?S`<mdc-text part="label" type="${Yd.TEXT_TYPE}" tagname="${Yd.TAG_NAME}"
4242
4264
  >${this.label}</mdc-text
4243
4265
  >`:W}
4244
4266
  <mdc-button
@@ -4246,11 +4268,11 @@
4246
4268
  variant="tertiary"
4247
4269
  part="close-icon"
4248
4270
  aria-label="${this.clearAriaLabel}"
4249
- prefix-icon="${Wd.CLOSE_ICON}"
4271
+ prefix-icon="${Yd.CLOSE_ICON}"
4250
4272
  size="20"
4251
4273
  @click="${this.handleClose}"
4252
4274
  ></mdc-button>
4253
- `}};ms.styles=[...X.styles,...fb],h([u({type:String})],ms.prototype,"label",2),h([u({type:Boolean})],ms.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],ms.prototype,"clearAriaLabel",2);var Tp=ms;Tp.register(na);var N0=Tp;var L0=H`
4275
+ `}};ms.styles=[...X.styles,...vb],h([u({type:String})],ms.prototype,"label",2),h([u({type:Boolean})],ms.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],ms.prototype,"clearAriaLabel",2);var xp=ms;xp.register(na);var L0=xp;var M0=H`
4254
4276
  :host([icon-name])::part(text) {
4255
4277
  margin-inline-end: 0.25rem;
4256
4278
  }
@@ -4321,7 +4343,7 @@
4321
4343
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
4322
4344
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
4323
4345
  }
4324
- `,vb=[L0];var wn=class extends ce(li){constructor(){super(...arguments);this.size=Yf.LINK_SIZE}getIconSize(){switch(this.size){case jl.SMALL:return ql.SMALL;case jl.MIDSIZE:return ql.MIDSIZE;default:return ql.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>`:W}`}};wn.styles=[...li.styles,...vb],h([u({type:String,reflect:!0})],wn.prototype,"size",2);var xp=wn;xp.register(Yl);var M0=xp;var gb=B.constructTagName("linkbutton"),la={12:12,14:14,16:16},da={SIZE:la[16],ROLE:et.BUTTON,INLINE:qs.INLINE,INVERTED:qs.INVERTED};var bb=a=>{switch(a){case la[12]:return .75;case la[14]:return .875;default:return 1}};var O0=H`
4346
+ `,gb=[M0];var wn=class extends ce(di){constructor(){super(...arguments);this.size=jf.LINK_SIZE}getIconSize(){switch(this.size){case ql.SMALL:return Xl.SMALL;case ql.MIDSIZE:return Xl.MIDSIZE;default:return Xl.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>`:W}`}};wn.styles=[...di.styles,...gb],h([u({type:String,reflect:!0})],wn.prototype,"size",2);var Ap=wn;Ap.register(jl);var O0=Ap;var bb=B.constructTagName("linkbutton"),la={12:12,14:14,16:16},da={SIZE:la[16],ROLE:et.BUTTON,INLINE:qs.INLINE,INVERTED:qs.INVERTED};var yb=a=>{switch(a){case la[12]:return .75;case la[14]:return .875;default:return 1}};var R0=H`
4325
4347
  :host {
4326
4348
  gap: 0.25rem;
4327
4349
  cursor: pointer;
@@ -4420,10 +4442,10 @@
4420
4442
  color: var(--mdc-link-color-disabled);
4421
4443
  pointer-events: none;
4422
4444
  }
4423
- `,yb=[O0,...Et()];var us=class extends ce(fe){constructor(){super(...arguments);this.size=da.SIZE;this.inline=da.INLINE;this.inverted=da.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=da.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(la).includes(t)?`${t}`:da.SIZE.toString())}render(){return S`
4445
+ `,Eb=[R0,...Et()];var us=class extends ce(fe){constructor(){super(...arguments);this.size=da.SIZE;this.inline=da.INLINE;this.inverted=da.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=da.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(la).includes(t)?`${t}`:da.SIZE.toString())}render(){return S`
4424
4446
  <slot></slot>
4425
- ${this.iconName?S` <mdc-icon name=${this.iconName} size=${bb(this.size)} length-unit="rem"></mdc-icon> `:W}
4426
- `}};us.styles=[...li.styles,...yb],h([u({type:Number,reflect:!0})],us.prototype,"size",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inverted",2);var Ap=us;Ap.register(gb);var R0=Ap;li.register(Lv);var D0=li;var Jt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Eo=a=>{class o extends Mt(Nt(a)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:l}=i,c=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof X&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let l=i.target,c=this.getCurrentIndex(l);if(c!==-1){let f=document.activeElement===l,b=document.activeElement&&document.activeElement.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY,A=!(this.navItems.at(c)!==l&&(f||b));this.resetTabIndexAndSetFocus(c,void 0,A,!1)}};this.handleNavBeforeFocus=i=>{let l=ih(i.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){i.preventDefault();let c=this.navItems.find(b=>b.contains(l)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Jt.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 l=this.getActionForKeyEvent(i,!0),c=this.orientation==="vertical",f=new Set(c?[Y.DOWN,Y.UP,Y.HOME,Y.END]:[Y.LEFT,Y.RIGHT,Y.HOME,Y.END]);if(!l||!f.has(l))return;let b=i.target,A=this.getCurrentIndex(b);if(A===-1)return;this.resetTabIndexes(A);let F=!1;switch(l){case Y.HOME:{F=this.resetTabIndexAndSetFocus(0,A);break}case Y.END:{F=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case Y.DOWN:case Y.RIGHT:{let V=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?V:A+1;F=this.resetTabIndexAndSetFocus(Q,A);break}case Y.UP:case Y.LEFT:{let V=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?V:A-1;F=this.resetTabIndexAndSetFocus(Q,A);break}default:break}F&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(l=>l===i||!!(l.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,b=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);b&&(b.setAttribute("tabindex","0"),l&&b.focus())}}resetTabIndexAndSetFocus(i,l,c=!0,f=!0){var F;let{navItems:b}=this;if(b.length===0)return!1;let A=(F=b.at(i))!=null?F:b.find(Boolean);return i===0&&l===0&&b.length===1||i===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?b.forEach(V=>V.setAttribute("tabindex","-1")):b.at(l)&&b.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===ee.SPATIAL?!1:this.loop!=="false"}}return o};var Yd=B.constructTagName("listitem"),Nn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Eb={VARIANT:Nn.FULL_WIDTH};var P0=a=>!!a,Lr=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)||P0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Jt.CREATED,this.itemCreationHandler),this.host.addEventListener(Jt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Jt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Jt.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||!hf(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 l=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(e):l>=0&&this.cache.splice(l,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 hi=a=>{class o extends a{constructor(...i){super(...i);this.handleItemCreation=i=>{let l=i.target;l&&l.addEventListener(Jt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Jt.DESTROYED&&(i.target.removeEventListener(Jt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Jt.CREATED,this.handleItemCreation)}}return o};var F0=H`
4447
+ ${this.iconName?S` <mdc-icon name=${this.iconName} size=${yb(this.size)} length-unit="rem"></mdc-icon> `:W}
4448
+ `}};us.styles=[...di.styles,...Eb],h([u({type:Number,reflect:!0})],us.prototype,"size",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inverted",2);var Sp=us;Sp.register(bb);var D0=Sp;di.register(Mv);var P0=di;var Jt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var To=a=>{class o extends Mt(Nt(a)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:l}=i,c=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof X&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let l=i.target,c=this.getCurrentIndex(l);if(c!==-1){let f=document.activeElement===l,b=document.activeElement&&document.activeElement.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY,A=!(this.navItems.at(c)!==l&&(f||b));this.resetTabIndexAndSetFocus(c,void 0,A,!1)}};this.handleNavBeforeFocus=i=>{let l=oh(i.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){i.preventDefault();let c=this.navItems.find(b=>b.contains(l)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Jt.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 l=this.getActionForKeyEvent(i,!0),c=this.orientation==="vertical",f=new Set(c?[Y.DOWN,Y.UP,Y.HOME,Y.END]:[Y.LEFT,Y.RIGHT,Y.HOME,Y.END]);if(!l||!f.has(l))return;let b=i.target,A=this.getCurrentIndex(b);if(A===-1)return;this.resetTabIndexes(A);let F=!1;switch(l){case Y.HOME:{F=this.resetTabIndexAndSetFocus(0,A);break}case Y.END:{F=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case Y.DOWN:case Y.RIGHT:{let V=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?V:A+1;F=this.resetTabIndexAndSetFocus(Q,A);break}case Y.UP:case Y.LEFT:{let V=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?V:A-1;F=this.resetTabIndexAndSetFocus(Q,A);break}default:break}F&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(l=>l===i||!!(l.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,b=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);b&&(b.setAttribute("tabindex","0"),l&&b.focus())}}resetTabIndexAndSetFocus(i,l,c=!0,f=!0){var F;let{navItems:b}=this;if(b.length===0)return!1;let A=(F=b.at(i))!=null?F:b.find(Boolean);return i===0&&l===0&&b.length===1||i===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?b.forEach(V=>V.setAttribute("tabindex","-1")):b.at(l)&&b.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===ee.SPATIAL?!1:this.loop!=="false"}}return o};var jd=B.constructTagName("listitem"),Nn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Tb={VARIANT:Nn.FULL_WIDTH};var F0=a=>!!a,Lr=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)||F0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Jt.CREATED,this.itemCreationHandler),this.host.addEventListener(Jt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Jt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Jt.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||!mf(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);uf(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 l=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(e):l>=0&&this.cache.splice(l,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 pi=a=>{class o extends a{constructor(...i){super(...i);this.handleItemCreation=i=>{let l=i.target;l&&l.addEventListener(Jt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Jt.DESTROYED&&(i.target.removeEventListener(Jt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Jt.CREATED,this.handleItemCreation)}}return o};var $0=H`
4427
4449
  :host {
4428
4450
  display: flex;
4429
4451
  flex-direction: column;
@@ -4449,11 +4471,11 @@
4449
4471
  scroll-padding-left: 0.25rem;
4450
4472
  scroll-padding-right: 0.25rem;
4451
4473
  }
4452
- `,Tb=[F0];var xb=B.constructTagName("list");var Ln={VERTICAL:"vertical",HORIZONTAL:"horizontal"},jd={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Ln.VERTICAL};var fs=class extends Eo(hi(X)){constructor(){super();this.loop=jd.LOOP;this.initialFocus=jd.INITIAL_FOCUS;this.orientation=jd.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(Jt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Lr(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 l=i+1;l>=this.navItems.length&&(l=i-1),this.resetTabIndexes(l,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===Y.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(`${Yd}:not([disabled])`)}render(){return S`
4474
+ `,xb=[$0];var Ab=B.constructTagName("list");var Ln={VERTICAL:"vertical",HORIZONTAL:"horizontal"},qd={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Ln.VERTICAL};var fs=class extends To(pi(X)){constructor(){super();this.loop=qd.LOOP;this.initialFocus=qd.INITIAL_FOCUS;this.orientation=qd.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(Jt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Lr(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 l=i+1;l>=this.navItems.length&&(l=i-1),this.resetTabIndexes(l,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===Y.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(`${jd}:not([disabled])`)}render(){return S`
4453
4475
  <slot name="list-header"></slot>
4454
4476
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
4455
4477
  <slot part="container" role="presentation"></slot>
4456
- `}};fs.styles=[...X.styles,...Tb],h([u({type:String,reflect:!0})],fs.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],fs.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],fs.prototype,"orientation",2);var Vi=fs;Vi.register(xb);var Sp=Vi;var $0=H`
4478
+ `}};fs.styles=[...X.styles,...xb],h([u({type:String,reflect:!0})],fs.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],fs.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],fs.prototype,"orientation",2);var zi=fs;zi.register(Ab);var Ip=zi;var V0=H`
4457
4479
  :host {
4458
4480
  --mdc-listheader-padding: 0.5rem 0.75rem;
4459
4481
  --mdc-listheader-gap: 0.5rem;
@@ -4480,7 +4502,7 @@
4480
4502
  :host::part(postfix-icon) {
4481
4503
  flex-shrink: 0;
4482
4504
  }
4483
- `,Ab=[$0];var To=class extends X{constructor(){super(...arguments);this.disabled=!1}render(){return S`
4505
+ `,Sb=[V0];var xo=class extends X{constructor(){super(...arguments);this.disabled=!1}render(){return S`
4484
4506
  ${this.prefixIcon?S`<mdc-icon
4485
4507
  part="prefix-icon"
4486
4508
  name="${this.prefixIcon}"
@@ -4499,7 +4521,7 @@
4499
4521
  size="1"
4500
4522
  length-unit="rem"
4501
4523
  ></mdc-icon>`:W}
4502
- `}};To.styles=[...X.styles,...Ab],h([u({type:String,attribute:"prefix-icon"})],To.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],To.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],To.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],To.prototype,"disabled",2);var Ip=To;var Sb=B.constructTagName("listheader");Ip.register(Sb);var V0=Ip;var qd=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Jt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Jt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Jt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Jt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var Mn=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 z0=H`
4524
+ `}};xo.styles=[...X.styles,...Sb],h([u({type:String,attribute:"prefix-icon"})],xo.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],xo.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],xo.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],xo.prototype,"disabled",2);var Cp=xo;var Ib=B.constructTagName("listheader");Cp.register(Ib);var z0=Cp;var Xd=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Jt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Jt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Jt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Jt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var Mn=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 B0=H`
4503
4525
  :host {
4504
4526
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
4505
4527
  --mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
@@ -4612,7 +4634,7 @@
4612
4634
  flex-direction: row;
4613
4635
  flex-shrink: 0;
4614
4636
  }
4615
- `,Ib=[z0,...Et()];var qe=class extends Mt(Nt(te(ei(qd(X))))){constructor(){super();this.variant=Eb.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===Y.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===Y.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===Y.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`
4637
+ `,Cb=[B0,...Et()];var qe=class extends Mt(Nt(te(ri(Xd(X))))){constructor(){super();this.variant=Tb.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===Y.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===Y.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===Y.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`
4616
4638
  <slot name="${t}">
4617
4639
  ${i?S`<mdc-text part="${t}" type="${e}" tagname="${ut.SPAN}">${i}</mdc-text>`:W}
4618
4640
  </slot>
@@ -4644,7 +4666,7 @@
4644
4666
  ${this.renderTrailingControls()}
4645
4667
  </div>
4646
4668
  </slot>
4647
- `}};qe.styles=[...X.styles,...Ib],h([qt({slot:"leading-controls"})],qe.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],qe.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],qe.prototype,"variant",2),h([u({type:String,reflect:!0})],qe.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],qe.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],qe.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],qe.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],qe.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],qe.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],qe.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],qe.prototype,"active",2);var zi=qe;zi.register(Yd);var B0=zi;var H0=H`
4669
+ `}};qe.styles=[...X.styles,...Cb],h([qt({slot:"leading-controls"})],qe.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],qe.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],qe.prototype,"variant",2),h([u({type:String,reflect:!0})],qe.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],qe.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],qe.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],qe.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],qe.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],qe.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],qe.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],qe.prototype,"active",2);var Bi=qe;Bi.register(jd);var H0=Bi;var U0=H`
4648
4670
  :host {
4649
4671
  --mdc-marker-width: 0.25rem;
4650
4672
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -4669,7 +4691,7 @@
4669
4691
  var(--mdc-marker-striped-background-color) 0.375rem
4670
4692
  );
4671
4693
  }
4672
- `,Cb=[H0];var _b=B.constructTagName("marker"),kb={SOLID:"solid",STRIPED:"striped"};var On=class extends X{constructor(){super(...arguments);this.variant=kb.SOLID}};On.styles=[...X.styles,...Cb],h([u({type:String,reflect:!0})],On.prototype,"variant",2);var Cp=On;Cp.register(_b);var U0=Cp;var be=B.constructTagName("menupopover"),_p={PLACEMENT:Lt.BOTTOM_START,ORIENTATION:"vertical"};var Bi=B.constructTagName("menusection"),wb={DIVIDER_VARIANT:"solid"};var xo=B.constructTagName("sidenavigation"),cr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},Xd={VARIANT:cr.FLEXIBLE};var Rn=B.constructTagName("menubar"),Nb={ORIENTATION:"vertical"};var G0=H`
4694
+ `,_b=[U0];var kb=B.constructTagName("marker"),wb={SOLID:"solid",STRIPED:"striped"};var On=class extends X{constructor(){super(...arguments);this.variant=wb.SOLID}};On.styles=[...X.styles,..._b],h([u({type:String,reflect:!0})],On.prototype,"variant",2);var _p=On;_p.register(kb);var G0=_p;var be=B.constructTagName("menupopover"),kp={PLACEMENT:Lt.BOTTOM_START,ORIENTATION:"vertical"};var Hi=B.constructTagName("menusection"),Nb={DIVIDER_VARIANT:"solid"};var Ao=B.constructTagName("sidenavigation"),cr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},Zd={VARIANT:cr.FLEXIBLE};var Rn=B.constructTagName("menubar"),Lb={ORIENTATION:"vertical"};var K0=H`
4673
4695
  :host {
4674
4696
  display: flex;
4675
4697
  }
@@ -4681,7 +4703,7 @@
4681
4703
  :host([aria-orientation='vertical']) {
4682
4704
  flex-direction: column;
4683
4705
  }
4684
- `,Lb=[G0];var Dn=class extends Mt(Nt(X)){constructor(){super();this.depthManager=new co(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(c=>c!==e);this.getVisibleSubMenusOfItems(i).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=Nb.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 c,f;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],l=b=>{b.role===et.MENUITEM&&!b.hasAttribute("disabled")?i.push(b):b.tagName.toLowerCase()===Bi&&Array.from(b.children).forEach(l)};return e.forEach(l),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let l=i.getAttribute("id");if(!l)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${be}[triggerid="${l}"]`);c&&c.visible&&e.push(c)}),e}getAllPopovers(){var l,c;if(!this.menuItems.length)return[];let t=(c=(l=this.menuItems[0])==null?void 0:l.closest(xo))!=null?c:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${be}`).forEach(b=>{e.push(b)}),f.querySelectorAll("slot").forEach(b=>{b.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 l=i===0?"0":"-1";e==null||e.setAttribute("tabindex",l)})}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(l=>l.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Lt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var l,c;i<0||e<0||(e!==i&&((l=t[e])==null||l.setAttribute("tabindex","-1"),(c=t[i])==null||c.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var b;let{length:l}=this.menuItems;if(l===0)return;let c=t;if(this.getKeyboardNavMode()===ee.DEFAULT?c=e==="prev"?(t-1+l)%l:(t+1)%l:c=e==="prev"?Math.max(0,t-1):Math.min(t+1,l-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),i)){let A=(b=this.menuItems[c])==null?void 0:b.getAttribute("id");this.getSubmenu(A)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(A),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),l=(c=e.parentElement)==null?void 0:c.tagName.toLowerCase();return i===Rn||i===xo||i===Bi&&(l===Rn||l===xo)}isNestedMenuItem(t){return!!t.closest(be)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(e=>this.contains(e));await Promise.all(t.map(e=>e.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(be),l=i==null?void 0:i.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===l);if(c){this.isTopLevelMenuItem(c)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(c);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()===be){let i=e.getAttribute("triggerid"),l=this.menuItems.find(c=>c.getAttribute("id")===i);if(l)return this.isTopLevelMenuItem(l)?this.menuItems.findIndex(c=>c===l):this.getParentMenuItemIndex(l)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case Y.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case Y.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case Y.LEFT:{let l=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(l);break}case Y.RIGHT:{let l=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(l);break}case Y.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case Y.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return S`<slot></slot>`}};Dn.styles=[...X.styles,...Lb],h([qt({selector:"mdc-menusection",flatten:!0})],Dn.prototype,"menusections",2);var kp=Dn;kp.register(Rn);var K0=kp;var Pn=B.constructTagName("menuitem"),Fn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},wp={POSITIVE:"positive",NEGATIVE:"negative"},Np={LEADING:"leading",TRAILING:"trailing"};var W0=H`
4706
+ `,Mb=[K0];var Dn=class extends Mt(Nt(X)){constructor(){super();this.depthManager=new ho(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(c=>c!==e);this.getVisibleSubMenusOfItems(i).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=Lb.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 c,f;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],l=b=>{b.role===et.MENUITEM&&!b.hasAttribute("disabled")?i.push(b):b.tagName.toLowerCase()===Hi&&Array.from(b.children).forEach(l)};return e.forEach(l),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let l=i.getAttribute("id");if(!l)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${be}[triggerid="${l}"]`);c&&c.visible&&e.push(c)}),e}getAllPopovers(){var l,c;if(!this.menuItems.length)return[];let t=(c=(l=this.menuItems[0])==null?void 0:l.closest(Ao))!=null?c:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${be}`).forEach(b=>{e.push(b)}),f.querySelectorAll("slot").forEach(b=>{b.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 l=i===0?"0":"-1";e==null||e.setAttribute("tabindex",l)})}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(l=>l.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Lt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var l,c;i<0||e<0||(e!==i&&((l=t[e])==null||l.setAttribute("tabindex","-1"),(c=t[i])==null||c.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var b;let{length:l}=this.menuItems;if(l===0)return;let c=t;if(this.getKeyboardNavMode()===ee.DEFAULT?c=e==="prev"?(t-1+l)%l:(t+1)%l:c=e==="prev"?Math.max(0,t-1):Math.min(t+1,l-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),i)){let A=(b=this.menuItems[c])==null?void 0:b.getAttribute("id");this.getSubmenu(A)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(A),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),l=(c=e.parentElement)==null?void 0:c.tagName.toLowerCase();return i===Rn||i===Ao||i===Hi&&(l===Rn||l===Ao)}isNestedMenuItem(t){return!!t.closest(be)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(e=>this.contains(e));await Promise.all(t.map(e=>e.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(be),l=i==null?void 0:i.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===l);if(c){this.isTopLevelMenuItem(c)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(c);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()===be){let i=e.getAttribute("triggerid"),l=this.menuItems.find(c=>c.getAttribute("id")===i);if(l)return this.isTopLevelMenuItem(l)?this.menuItems.findIndex(c=>c===l):this.getParentMenuItemIndex(l)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case Y.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case Y.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case Y.LEFT:{let l=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(l);break}case Y.RIGHT:{let l=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(l);break}case Y.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case Y.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return S`<slot></slot>`}};Dn.styles=[...X.styles,...Mb],h([qt({selector:"mdc-menusection",flatten:!0})],Dn.prototype,"menusections",2);var wp=Dn;wp.register(Rn);var W0=wp;var Pn=B.constructTagName("menuitem"),Fn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Np={POSITIVE:"positive",NEGATIVE:"negative"},Lp={LEADING:"leading",TRAILING:"trailing"};var Y0=H`
4685
4707
  :host(:dir(rtl))::part(trailing-arrow),
4686
4708
  :host(:dir(rtl))::part(leading-arrow) {
4687
4709
  transform: rotate(180deg);
@@ -4690,23 +4712,23 @@
4690
4712
  :host::part(leading-arrow) {
4691
4713
  --mdc-icon-size: 1rem;
4692
4714
  }
4693
- `,Mb=[W0];var Ao=class extends zi{handleKeyDown(o){this.getActionForKeyEvent(o)===Y.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===Y.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=Nn.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===wp.NEGATIVE?Fn.LEFT:Fn.RIGHT;return S`
4715
+ `,Ob=[Y0];var So=class extends Bi{handleKeyDown(o){this.getActionForKeyEvent(o)===Y.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===Y.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=Nn.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Np.NEGATIVE?Fn.LEFT:Fn.RIGHT;return S`
4694
4716
  <slot
4695
4717
  name="trailing-controls"
4696
4718
  @click=${this.stopEventPropagation}
4697
4719
  @keyup=${this.stopEventPropagation}
4698
4720
  @keydown=${this.stopEventPropagation}
4699
4721
  ></slot>
4700
- ${this.arrowPosition===Np.TRAILING?S`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:W}
4701
- `}renderLeadingControls(){let o=this.arrowDirection===wp.POSITIVE?Fn.RIGHT:Fn.LEFT;return S`
4722
+ ${this.arrowPosition===Lp.TRAILING?S`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:W}
4723
+ `}renderLeadingControls(){let o=this.arrowDirection===Np.POSITIVE?Fn.RIGHT:Fn.LEFT;return S`
4702
4724
  <slot
4703
4725
  name="leading-controls"
4704
4726
  @click=${this.stopEventPropagation}
4705
4727
  @keyup=${this.stopEventPropagation}
4706
4728
  @keydown=${this.stopEventPropagation}
4707
4729
  ></slot>
4708
- ${this.arrowPosition===Np.LEADING?S`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
4709
- `}};Ao.styles=[...zi.styles,...Mb],h([u({type:String,reflect:!0,attribute:"arrow-position"})],Ao.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],Ao.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],Ao.prototype,"name",2),h([u({type:String,reflect:!0})],Ao.prototype,"value",2);var Mr=Ao;Mr.register(Pn);var Y0=Mr;var Ob=B.constructTagName("statictoggle"),j0={DEFAULT:"default",COMPACT:"compact"},Lp={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Rb={compact:.75,default:1.25},Db={SIZE:j0.DEFAULT};var q0=[H`
4730
+ ${this.arrowPosition===Lp.LEADING?S`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
4731
+ `}};So.styles=[...Bi.styles,...Ob],h([u({type:String,reflect:!0,attribute:"arrow-position"})],So.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],So.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],So.prototype,"name",2),h([u({type:String,reflect:!0})],So.prototype,"value",2);var Mr=So;Mr.register(Pn);var j0=Mr;var Rb=B.constructTagName("statictoggle"),q0={DEFAULT:"default",COMPACT:"compact"},Mp={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Db={compact:.75,default:1.25},Pb={SIZE:q0.DEFAULT};var X0=[H`
4710
4732
  :host {
4711
4733
  --mdc-statictoggle-width: 3rem;
4712
4734
  --mdc-statictoggle-height: 1.5rem;
@@ -4801,17 +4823,17 @@
4801
4823
  border: 1px solid GrayText;
4802
4824
  }
4803
4825
  }
4804
- `],Pb=q0;var So=class extends te(X){constructor(){super(...arguments);this.checked=!1;this.size=Db.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return S`
4826
+ `],Fb=X0;var Io=class extends te(X){constructor(){super(...arguments);this.checked=!1;this.size=Pb.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return S`
4805
4827
  <slot></slot>
4806
4828
  <div part="slider">
4807
4829
  <mdc-icon
4808
- name="${this.checked?Lp.CHECKED:Lp.UNCHECKED}"
4830
+ name="${this.checked?Mp.CHECKED:Mp.UNCHECKED}"
4809
4831
  part="toggle-icon"
4810
4832
  length-unit="rem"
4811
- size="${Rb[this.size]}"
4833
+ size="${Db[this.size]}"
4812
4834
  ></mdc-icon>
4813
4835
  </div>
4814
- `}};So.styles=[...X.styles,...Pb],h([u({type:Boolean,reflect:!0})],So.prototype,"checked",2),h([u({type:String,reflect:!0})],So.prototype,"size",2),h([u({type:Boolean,reflect:!0})],So.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],So.prototype,"softDisabled",2);var Mp=So;Mp.register(Ob);var X0=Mp;var $n=B.constructTagName("tooltip"),Or={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Xe={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:Lt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Or.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var Z0=H`
4836
+ `}};Io.styles=[...X.styles,...Fb],h([u({type:Boolean,reflect:!0})],Io.prototype,"checked",2),h([u({type:String,reflect:!0})],Io.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Io.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Io.prototype,"softDisabled",2);var Op=Io;Op.register(Rb);var Z0=Op;var $n=B.constructTagName("tooltip"),Or={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Xe={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:Lt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Or.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var Q0=H`
4815
4837
  :host {
4816
4838
  --mdc-tooltip-max-width: 400px;
4817
4839
  --mdc-tooltip-padding: 0.75rem;
@@ -4835,14 +4857,14 @@
4835
4857
  :host([color='contrast'])::part(popover-content) {
4836
4858
  color: var(--mdc-tooltip-text-color-contrast);
4837
4859
  }
4838
- `,Fb=[Z0];var ca=class extends nr{constructor(){super(...arguments);this.tooltipType=Xe.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Xe.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Xe.ARIA_HIDDEN,this.backdrop=Xe.BACKDROP,this.delay=this.delay||Xe.DELAY,this.disableAriaExpanded=Xe.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Xe.HIDE_ON_BLUR,this.hideOnEscape=Xe.HIDE_ON_ESCAPE,this.offset=this.offset||Xe.OFFSET,this.placement=this.placement||Xe.PLACEMENT,this.trigger=Xe.TRIGGER,this.closeButton=bt.CLOSE_BUTTON,this.disableFlip=bt.DISABLE_FLIP,this.focusBackToTrigger=bt.FOCUS_BACK,this.focusTrap=bt.FOCUS_TRAP,this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE,this.interactive=bt.INTERACTIVE,this.preventScroll=bt.PREVENT_SCROLL,this.size=bt.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Or).includes(t)?t:Xe.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Ve()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case Or.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Or.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Lt).includes(this.placement)||(this.placement=Xe.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Or).includes(this.tooltipType)||this.setTooltipType(Xe.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Or.DESCRIPTION:e===Or.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Or.LABEL:e===Or.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Or.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Or.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))}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&uf(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};ca.styles=[...nr.styles,...Fb],h([u({type:String,attribute:"tooltip-type",reflect:!0})],ca.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],ca.prototype,"onlyShowWhenTriggerOverflows",2);var Op=ca;Op.register($n);var Q0=Op;var $b=B.constructTagName("toggle"),Vn={DEFAULT:"default",COMPACT:"compact"};var Rp={SIZE:Vn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var pi=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=Ie.consume({host:this,context:sp.Context})}willUpdate(){this.controlType&&Md.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Ld.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var Zd=B.constructTagName("menuitemcheckbox"),zn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Vb={INDICATOR:zn.CHECKBOX};var J0=H`
4860
+ `,$b=[Q0];var ca=class extends nr{constructor(){super(...arguments);this.tooltipType=Xe.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Xe.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Xe.ARIA_HIDDEN,this.backdrop=Xe.BACKDROP,this.delay=this.delay||Xe.DELAY,this.disableAriaExpanded=Xe.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Xe.HIDE_ON_BLUR,this.hideOnEscape=Xe.HIDE_ON_ESCAPE,this.offset=this.offset||Xe.OFFSET,this.placement=this.placement||Xe.PLACEMENT,this.trigger=Xe.TRIGGER,this.closeButton=bt.CLOSE_BUTTON,this.disableFlip=bt.DISABLE_FLIP,this.focusBackToTrigger=bt.FOCUS_BACK,this.focusTrap=bt.FOCUS_TRAP,this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE,this.interactive=bt.INTERACTIVE,this.preventScroll=bt.PREVENT_SCROLL,this.size=bt.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Or).includes(t)?t:Xe.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Ve()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case Or.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Or.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Lt).includes(this.placement)||(this.placement=Xe.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Or).includes(this.tooltipType)||this.setTooltipType(Xe.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Or.DESCRIPTION:e===Or.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Or.LABEL:e===Or.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Or.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Or.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))}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&vf(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};ca.styles=[...nr.styles,...$b],h([u({type:String,attribute:"tooltip-type",reflect:!0})],ca.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],ca.prototype,"onlyShowWhenTriggerOverflows",2);var Rp=ca;Rp.register($n);var J0=Rp;var Vb=B.constructTagName("toggle"),Vn={DEFAULT:"default",COMPACT:"compact"};var Dp={SIZE:Vn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var mi=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=Ie.consume({host:this,context:ap.Context})}willUpdate(){this.controlType&&Od.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Md.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var Qd=B.constructTagName("menuitemcheckbox"),zn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},zb={INDICATOR:zn.CHECKBOX};var tS=H`
4839
4861
  :host::part(checkmark-icon) {
4840
4862
  --mdc-icon-fill-color: currentColor;
4841
4863
  }
4842
4864
  :host .hidden-checkmark {
4843
4865
  visibility: hidden;
4844
4866
  }
4845
- `,zb=[J0];var ha=class extends pi(Mr){constructor(){super();this.checked=!1;this.indicator=Vb.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===zn.CHECKBOX?S`
4867
+ `,Bb=[tS];var ha=class extends mi(Mr){constructor(){super();this.checked=!1;this.indicator=zb.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===zn.CHECKBOX?S`
4846
4868
  <mdc-staticcheckbox
4847
4869
  slot="leading-controls"
4848
4870
  ?checked="${this.checked}"
@@ -4884,21 +4906,21 @@
4884
4906
  ${this.staticToggle()} ${this.getCheckmarkIcon()}
4885
4907
  </div>
4886
4908
  </slot>
4887
- `}};ha.styles=[...Mr.styles,...zb],h([u({type:Boolean,reflect:!0})],ha.prototype,"checked",2),h([u({type:String,reflect:!0})],ha.prototype,"indicator",2);var Dp=ha;Dp.register(Zd);var tS=Dp;var Qd=B.constructTagName("menuitemradio"),Jd={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},Bb={INDICATOR:Jd.RADIO};var eS=H`
4909
+ `}};ha.styles=[...Mr.styles,...Bb],h([u({type:Boolean,reflect:!0})],ha.prototype,"checked",2),h([u({type:String,reflect:!0})],ha.prototype,"indicator",2);var Pp=ha;Pp.register(Qd);var eS=Pp;var Jd=B.constructTagName("menuitemradio"),tc={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},Hb={INDICATOR:tc.RADIO};var rS=H`
4888
4910
  :host::part(checkmark-icon) {
4889
4911
  --mdc-icon-fill-color: currentColor;
4890
4912
  }
4891
4913
  :host .hidden-checkmark {
4892
4914
  visibility: hidden;
4893
4915
  }
4894
- `,Hb=[eS];var pa=class extends pi(Mr){constructor(){super();this.checked=!1;this.indicator=Bb.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Bi}, ${be}`);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===Jd.RADIO?S`
4916
+ `,Ub=[rS];var pa=class extends mi(Mr){constructor(){super();this.checked=!1;this.indicator=Hb.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Hi}, ${be}`);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===tc.RADIO?S`
4895
4917
  <mdc-staticradio
4896
4918
  slot="leading-controls"
4897
4919
  ?checked="${this.checked}"
4898
4920
  ?disabled="${this.disabled}"
4899
4921
  ?soft-disabled="${this.softDisabled}"
4900
4922
  ></mdc-staticradio>
4901
- `:W}renderCheckmarkIcon(){return this.indicator===Jd.CHECKMARK?S`
4923
+ `:W}renderCheckmarkIcon(){return this.indicator===tc.CHECKMARK?S`
4902
4924
  <mdc-icon
4903
4925
  slot="trailing-controls"
4904
4926
  name="check-bold"
@@ -4925,7 +4947,7 @@
4925
4947
  ${this.renderCheckmarkIcon()}
4926
4948
  </div>
4927
4949
  </slot>
4928
- `}};pa.styles=[...Mr.styles,...Hb],h([u({type:Boolean,reflect:!0})],pa.prototype,"checked",2),h([u({type:String,reflect:!0})],pa.prototype,"indicator",2);var Pp=pa;Pp.register(Qd);var rS=Pp;var Io=B.constructTagName("navmenuitem"),Ub={DOT:_r.DOT,COUNTER:_r.COUNTER},Gb={RIGHT_ARROW:"arrow-right-bold"},Fp={MAX_COUNTER:99,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN,SIZE:Uo[24],VARIANT:cr.FLEXIBLE,CANNOT_ACTIVATE:!1};var iS=H`
4950
+ `}};pa.styles=[...Mr.styles,...Ub],h([u({type:Boolean,reflect:!0})],pa.prototype,"checked",2),h([u({type:String,reflect:!0})],pa.prototype,"indicator",2);var Fp=pa;Fp.register(Jd);var iS=Fp;var Co=B.constructTagName("navmenuitem"),Gb={DOT:_r.DOT,COUNTER:_r.COUNTER},Kb={RIGHT_ARROW:"arrow-right-bold"},$p={MAX_COUNTER:99,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:ut.SPAN,SIZE:Go[24],VARIANT:cr.FLEXIBLE,CANNOT_ACTIVATE:!1};var oS=H`
4929
4951
  :host::part(popover-content) {
4930
4952
  padding: 0.75rem 0.5rem;
4931
4953
  scroll-padding-block: 0.25rem;
@@ -4934,7 +4956,7 @@
4934
4956
  ::slotted(mdc-divider) {
4935
4957
  margin-block: 0.25rem;
4936
4958
  }
4937
- `,Kb=[iS];var Bn=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},$p=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===be};var Hn=class extends nr{constructor(){super();this.placement=_p.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),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.closeAllMenuPopovers(),l&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e;(e=this.triggerElement)!=null&&e.hasAttribute("soft-disabled")||(t.composedPath().find(i=>i.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;Bn(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,l=this.getCurrentIndex(i);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case Y.HOME:{this.resetTabIndexAndSetFocus(0,l),e=!0;break}case Y.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),e=!0;break}case Y.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case Y.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case Y.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&(f.show(),e=!0);break}case Y.LEFT:{$p(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),e=!0);break}case Y.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),e=!0);break}case Y.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case Y.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 Y.SPACE:{!i.matches(`${Qd}, ${Zd}`)&&!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,l;let e=t.getAttribute("id");return e?(l=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:l.call(i,`${be}[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(l=>l.tagName.toLowerCase()===Bi?Array.from(l.children).filter(c=>Bn(c)):Bn(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let l=this.getSubMenuPopoverOfTarget(i);l&&l.visible&&e.push(l)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=_p.ORIENTATION,this.backdrop=!1,this.color=Qo.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=![Pn,Io].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let l=this.getSubMenuPopoverOfTarget(i);l&&l.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&&$p(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(l=>l!==t);this.getOpenSubMenusOfItems(e).forEach(l=>{l.hide()})}fireMenuItemAction(t){t.matches(Pn)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!Bn(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};Hn.styles=[...nr.styles,...Kb],h([u({type:String,reflect:!0})],Hn.prototype,"placement",2);var Vp=Hn;Vp.register(be);var oS=Vp;var tc=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var i,l;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((l=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?l:[]).some(c=>c!==o&&c.tagName.toLowerCase()===be&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],e=o;for(;e;){let i=e==null?void 0:e.closest(be);if(!i)break;let l=i.getAttribute("triggerid");if(!l)break;let c=document.getElementById(l);if(c&&c.tagName.toLowerCase()===Io)t.push(c),e=c;else break}return t}setCurrentActiveNavMenuItem(o){var l;let t=((l=this.currentActiveNavMenuItem)==null?void 0:l.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(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(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};tc.context=xo;var ec=tc;var sS=H`
4959
+ `,Wb=[oS];var Bn=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},Vp=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===be};var Hn=class extends nr{constructor(){super();this.placement=kp.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),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.closeAllMenuPopovers(),l&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e;(e=this.triggerElement)!=null&&e.hasAttribute("soft-disabled")||(t.composedPath().find(i=>i.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;Bn(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,l=this.getCurrentIndex(i);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case Y.HOME:{this.resetTabIndexAndSetFocus(0,l),e=!0;break}case Y.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),e=!0;break}case Y.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case Y.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case Y.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&(f.show(),e=!0);break}case Y.LEFT:{Vp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),e=!0);break}case Y.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),e=!0);break}case Y.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case Y.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 Y.SPACE:{!i.matches(`${Jd}, ${Qd}`)&&!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,l;let e=t.getAttribute("id");return e?(l=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:l.call(i,`${be}[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(l=>l.tagName.toLowerCase()===Hi?Array.from(l.children).filter(c=>Bn(c)):Bn(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let l=this.getSubMenuPopoverOfTarget(i);l&&l.visible&&e.push(l)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=kp.ORIENTATION,this.backdrop=!1,this.color=Qo.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=![Pn,Co].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let l=this.getSubMenuPopoverOfTarget(i);l&&l.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&&Vp(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(l=>l!==t);this.getOpenSubMenusOfItems(e).forEach(l=>{l.hide()})}fireMenuItemAction(t){t.matches(Pn)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!Bn(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};Hn.styles=[...nr.styles,...Wb],h([u({type:String,reflect:!0})],Hn.prototype,"placement",2);var zp=Hn;zp.register(be);var sS=zp;var ec=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var i,l;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((l=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?l:[]).some(c=>c!==o&&c.tagName.toLowerCase()===be&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],e=o;for(;e;){let i=e==null?void 0:e.closest(be);if(!i)break;let l=i.getAttribute("triggerid");if(!l)break;let c=document.getElementById(l);if(c&&c.tagName.toLowerCase()===Co)t.push(c),e=c;else break}return t}setCurrentActiveNavMenuItem(o){var l;let t=((l=this.currentActiveNavMenuItem)==null?void 0:l.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(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(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};ec.context=Ao;var rc=ec;var aS=H`
4938
4960
  :host {
4939
4961
  --mdc-sidenavigation-expanded-width: 14.5rem;
4940
4962
  --mdc-sidenavigation-expanded-left-padding: 1rem;
@@ -5072,7 +5094,7 @@
5072
5094
  :host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
5073
5095
  opacity: 1;
5074
5096
  }
5075
- `,Wb=[sS];var Hi=class extends Se{constructor(){super({context:ec.context,initialValue:new ec(Xd.VARIANT,!0)});this.variant=Xd.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;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))}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 ec.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"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===cr.FLEXIBLE||this.variant===cr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext())}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${Io}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(cr).includes(t)?t:Xd.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){t.key===wt.SPACE&&t.preventDefault()}render(){var t;return this.variant===cr.HIDDEN?S``:S`
5097
+ `,Yb=[aS];var Ui=class extends Se{constructor(){super({context:rc.context,initialValue:new rc(Zd.VARIANT,!0)});this.variant=Zd.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;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))}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 rc.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"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===cr.FLEXIBLE||this.variant===cr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext())}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${Co}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(cr).includes(t)?t:Zd.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){t.key===wt.SPACE&&t.preventDefault()}render(){var t;return this.variant===cr.HIDDEN?S``:S`
5076
5098
  <div part="side-navigation-container" id="side-nav-container">
5077
5099
  <div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
5078
5100
  <slot name="scrollable-section">
@@ -5116,7 +5138,7 @@
5116
5138
  aria-controls="side-nav-container"
5117
5139
  ></mdc-button>
5118
5140
  </mdc-divider>`:W}
5119
- `}};Hi.styles=[...X.styles,...Wb],h([u({type:String,reflect:!0})],Hi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],Hi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],Hi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Hi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Hi.prototype,"hideFixedSectionDivider",2);var vs=Hi;var aS=H`
5141
+ `}};Ui.styles=[...X.styles,...Yb],h([u({type:String,reflect:!0})],Ui.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],Ui.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],Ui.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Ui.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Ui.prototype,"hideFixedSectionDivider",2);var vs=Ui;var nS=H`
5120
5142
  :host {
5121
5143
  --mdc-menusection-divider-margin-block: 0.25rem;
5122
5144
  --mdc-menusection-gap: 0rem;
@@ -5137,7 +5159,7 @@
5137
5159
  :host::part(align-header) {
5138
5160
  --mdc-listheader-padding: var(--mdc-menusection-header-padding);
5139
5161
  }
5140
- `,Yb=[aS];var mi=class extends X{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=wb.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Ie.consume({host:this,context:vs.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var l;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(l=this.sideNavigationContext)==null?void 0:l.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
5162
+ `,jb=[nS];var ui=class extends X{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Nb.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Ie.consume({host:this,context:vs.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var l;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(l=this.sideNavigationContext)==null?void 0:l.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
5141
5163
  part="header ${(e=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&e.expanded?"align-header":""}"
5142
5164
  header-text="${this.headerText}"
5143
5165
  prefix-icon="${J(this.prefixIcon)}"
@@ -5146,7 +5168,7 @@
5146
5168
  ${this.hideHeaderText?null:this.renderHeader()}
5147
5169
  <slot part="container"></slot>
5148
5170
  ${this.showDivider?S`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
5149
- `}};mi.styles=[...X.styles,...Yb],h([u({type:String,reflect:!0,attribute:"aria-label"})],mi.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],mi.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],mi.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],mi.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],mi.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],mi.prototype,"hideHeaderText",2);var zp=mi;zp.register(Bi);var nS=zp;var lS=[yt,H`
5171
+ `}};ui.styles=[...X.styles,...jb],h([u({type:String,reflect:!0,attribute:"aria-label"})],ui.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],ui.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],ui.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],ui.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],ui.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],ui.prototype,"hideHeaderText",2);var Bp=ui;Bp.register(Hi);var lS=Bp;var dS=[yt,H`
5150
5172
  :host {
5151
5173
  --mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
5152
5174
  --mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
@@ -5337,7 +5359,7 @@
5337
5359
  background-color: ButtonText;
5338
5360
  }
5339
5361
  }
5340
- `,...Et()],jb=lS;var le=class extends Mr{constructor(){super();this.cannotActivate=Fp.CANNOT_ACTIVATE;this.maxCounter=Fp.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=Ie.consume({host:this,context:vs.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())}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"))&&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()?!0:e.expanded)}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Ve()}`);let t=document.createElement($n);t.id=`mdc-navmenuitem-tooltip-${Ve()}`,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(`${$n}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===be)return!0;t=t.parentElement}return!1}handleClickEvent(){this.disabled||this.cannotActivate||this.emitNavMenuItemActiveChange(this.active)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Wo(this.iconName)}-filled`}renderBadge(t){return Object.values(Ub).includes(this.badgeType)?S`
5362
+ `,...Et()],qb=dS;var le=class extends Mr{constructor(){super();this.cannotActivate=$p.CANNOT_ACTIVATE;this.maxCounter=$p.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=Ie.consume({host:this,context:vs.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())}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"))&&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()?!0:e.expanded)}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Ve()}`);let t=document.createElement($n);t.id=`mdc-navmenuitem-tooltip-${Ve()}`,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(`${$n}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===be)return!0;t=t.parentElement}return!1}handleClickEvent(){this.disabled||this.cannotActivate||this.emitNavMenuItemActiveChange(this.active)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Wo(this.iconName)}-filled`}renderBadge(t){return Object.values(Gb).includes(this.badgeType)?S`
5341
5363
  <mdc-badge
5342
5364
  part="${t?"":"badge"}"
5343
5365
  type="${J(this.badgeType)}"
@@ -5367,8 +5389,8 @@
5367
5389
  </mdc-text>
5368
5390
  ${this.renderBadge(this.showLabel)}
5369
5391
  `:W}
5370
- ${t!=null&&t.hasSiblingWithTriggerId(this)?S` <mdc-icon name=${Gb.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:W}
5371
- `}};le.styles=[...Mr.styles,...jb],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);var Bp=le;Bp.register(Io);var dS=Bp;var qb="check-bold",Tr=B.constructTagName("option");var rc=B.constructTagName("optgroup"),Hp="header-id";var cS=H`
5392
+ ${t!=null&&t.hasSiblingWithTriggerId(this)?S` <mdc-icon name=${Kb.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:W}
5393
+ `}};le.styles=[...Mr.styles,...qb],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);var Hp=le;Hp.register(Co);var cS=Hp;var Xb="check-bold",Tr=B.constructTagName("option");var ic=B.constructTagName("optgroup"),Up="header-id";var hS=H`
5372
5394
  :host {
5373
5395
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
5374
5396
  }
@@ -5384,9 +5406,9 @@
5384
5406
  :host([data-hidden]) {
5385
5407
  display: none;
5386
5408
  }
5387
- `,Xb=[cS];var ma=class extends ie(te(X)){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`
5409
+ `,Zb=[hS];var ma=class extends ie(te(X)){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`
5388
5410
  <mdc-text
5389
- id="${Hp}"
5411
+ id="${Up}"
5390
5412
  part="header-text"
5391
5413
  type="${st.BODY_MIDSIZE_BOLD}"
5392
5414
  tagname="${ut.SPAN}"
@@ -5395,13 +5417,13 @@
5395
5417
  `:W;return S`
5396
5418
  <div
5397
5419
  role="${et.GROUP}"
5398
- aria-labelledby="${this.label?Hp:""}"
5420
+ aria-labelledby="${this.label?Up:""}"
5399
5421
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
5400
5422
  >
5401
5423
  ${o}
5402
5424
  <slot role="${et.PRESENTATION}"></slot>
5403
5425
  </div>
5404
- `}};ma.styles=[...X.styles,...Xb],h([u({type:String,reflect:!0})],ma.prototype,"label",2),h([qt({selector:Tr})],ma.prototype,"options",2);var Up=ma;Up.register(rc);var hS=Up;var pS=[Fr,H`
5426
+ `}};ma.styles=[...X.styles,...Zb],h([u({type:String,reflect:!0})],ma.prototype,"label",2),h([qt({selector:Tr})],ma.prototype,"options",2);var Gp=ma;Gp.register(ic);var pS=Gp;var mS=[Fr,H`
5405
5427
  :host {
5406
5428
  --mdc-listitem-column-gap: 0.75rem;
5407
5429
  --mdc-option-icon-width: 1rem;
@@ -5430,7 +5452,7 @@
5430
5452
  :host([data-hidden]) {
5431
5453
  display: none;
5432
5454
  }
5433
- `],Zb=pS;var gs=class extends pe(zi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=Nn.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",qb):W;return S`
5455
+ `],Qb=mS;var gs=class extends pe(Bi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=Nn.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",Xb):W;return S`
5434
5456
  <div part="leading">
5435
5457
  <slot name="leading-controls">
5436
5458
  ${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):W}
@@ -5441,11 +5463,11 @@
5441
5463
  </div>
5442
5464
  </div>
5443
5465
  <div part="trailing">${t}</div>
5444
- `}};gs.styles=[...zi.styles,...Zb],h([u({type:Boolean,reflect:!0})],gs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],gs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],gs.prototype,"ariaLabel",2);var Gp=gs;Gp.register(Tr);var mS=Gp;var Kp={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Qb=B.constructTagName("password");var uS=[H`
5466
+ `}};gs.styles=[...Bi.styles,...Qb],h([u({type:Boolean,reflect:!0})],gs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],gs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],gs.prototype,"ariaLabel",2);var Kp=gs;Kp.register(Tr);var uS=Kp;var Wp={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Jb=B.constructTagName("password");var fS=[H`
5445
5467
  input::-ms-reveal {
5446
5468
  display: none;
5447
5469
  }
5448
- `],Jb=uS;var bs=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`
5470
+ `],ty=fS;var bs=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`
5449
5471
  <mdc-button
5450
5472
  part="trailing-button"
5451
5473
  class="own-focus-ring ${e?"":"hidden"}"
@@ -5454,9 +5476,9 @@
5454
5476
  size="${Xt.ICON_SIZE}"
5455
5477
  @click=${this.toggleShowPassword}
5456
5478
  aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
5457
- prefix-icon=${this.showPassword?Kp.HIDE_BOLD:Kp.SHOW_BOLD}
5479
+ prefix-icon=${this.showPassword?Wp.HIDE_BOLD:Wp.SHOW_BOLD}
5458
5480
  ></mdc-button>
5459
- `:W}renderInputElement(t,e){let i=this.showPassword?yo.TEXT:yo.PASSWORD;return super.renderInputElement(i,e)}};bs.styles=[...jr.styles,...Jb],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],bs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],bs.prototype,"hideButtonAriaLabel",2),h([dt()],bs.prototype,"showPassword",2);var Wp=bs;Wp.register(Qb);var fS=Wp;var ic=B.constructTagName("progressbar"),oc={DEFAULT:"default",INLINE:"inline"},ty={VARIANT:oc.DEFAULT,VALIDATION:Wt.DEFAULT};var vS=[yt,H`
5481
+ `:W}renderInputElement(t,e){let i=this.showPassword?Eo.TEXT:Eo.PASSWORD;return super.renderInputElement(i,e)}};bs.styles=[...jr.styles,...ty],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],bs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],bs.prototype,"hideButtonAriaLabel",2),h([dt()],bs.prototype,"showPassword",2);var Yp=bs;Yp.register(Jb);var vS=Yp;var oc=B.constructTagName("progressbar"),sc={DEFAULT:"default",INLINE:"inline"},ey={VARIANT:sc.DEFAULT,VALIDATION:Wt.DEFAULT};var gS=[yt,H`
5460
5482
  :host {
5461
5483
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
5462
5484
  --mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
@@ -5529,7 +5551,7 @@
5529
5551
  border: var(--mdc-progressbar-border);
5530
5552
  }
5531
5553
  }
5532
- `],ey=vS;var ys=class extends ie(dr){constructor(){super(...arguments);this.variant=ty.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var l;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return S`
5554
+ `],ry=gS;var ys=class extends ie(dr){constructor(){super(...arguments);this.variant=ey.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var l;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return S`
5533
5555
  <div
5534
5556
  part="progress-container ${e?"gap":""}"
5535
5557
  role="${et.PROGRESSBAR}"
@@ -5541,15 +5563,15 @@
5541
5563
  <div part="progress-bar ${t}" style="width: ${i}%"></div>
5542
5564
  <div part="remaining"></div>
5543
5565
  </div>
5544
- `}}connectedCallback(){super.connectedCallback(),this.id=`${ic}-${Ve()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=Wt.ERROR:this.clampedValue===100?this.helpTextType=Wt.SUCCESS:this.helpTextType=Wt.DEFAULT,this.helpTextType}render(){let t=this.variant===oc.INLINE;return S`
5566
+ `}}connectedCallback(){super.connectedCallback(),this.id=`${oc}-${Ve()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=Wt.ERROR:this.clampedValue===100?this.helpTextType=Wt.SUCCESS:this.helpTextType=Wt.DEFAULT,this.helpTextType}render(){let t=this.variant===sc.INLINE;return S`
5545
5567
  ${t?S`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:S`
5546
5568
  <div part="label-container">
5547
5569
  ${this.renderLabelElement()}
5548
- ${this.variant===oc.DEFAULT&&this.label?S`<span part="percentage">${this.clampedValue}%</span>`:""}
5570
+ ${this.variant===sc.DEFAULT&&this.label?S`<span part="percentage">${this.clampedValue}%</span>`:""}
5549
5571
  </div>
5550
5572
  ${this.renderProgressbar()} ${this.renderHelperText()}
5551
5573
  `}
5552
- `}};ys.styles=[...dr.styles,...ey],h([u({type:String,reflect:!0})],ys.prototype,"variant",2),h([u({type:String,reflect:!0})],ys.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],ys.prototype,"error",2);var Un=ys;Un.register(ic);var gS=Un;var ry=B.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"},Yp={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var jp=a=>{if(a===0)return 0;let o=a/100*ye.CIRCUMFERENCE-ye.GAP_SIZE;return Math.max(o,.1*a)},iy=a=>{let o=ye.CIRCUMFERENCE-jp(a)-2*ye.GAP_SIZE;return a===0?ye.CIRCUMFERENCE:o<0?0:o},oy=a=>a===0?0:ye.GAP_SIZE*.5,sy=(a,o)=>{let t=o+ye.GAP_SIZE*1.5;return a===0?0:t};var bS=H`
5574
+ `}};ys.styles=[...dr.styles,...ry],h([u({type:String,reflect:!0})],ys.prototype,"variant",2),h([u({type:String,reflect:!0})],ys.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],ys.prototype,"error",2);var Un=ys;Un.register(oc);var bS=Un;var iy=B.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"},jp={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var qp=a=>{if(a===0)return 0;let o=a/100*ye.CIRCUMFERENCE-ye.GAP_SIZE;return Math.max(o,.1*a)},oy=a=>{let o=ye.CIRCUMFERENCE-qp(a)-2*ye.GAP_SIZE;return a===0?ye.CIRCUMFERENCE:o<0?0:o},sy=a=>a===0?0:ye.GAP_SIZE*.5,ay=(a,o)=>{let t=o+ye.GAP_SIZE*1.5;return a===0?0:t};var yS=H`
5553
5575
  :host {
5554
5576
  --mdc-spinner-size: 3rem;
5555
5577
  --mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
@@ -5596,7 +5618,7 @@
5596
5618
  color: var(--mdc-progress-error-color);
5597
5619
  margin: calc(1 / 6 * var(--mdc-spinner-size));
5598
5620
  }
5599
- `,ay=[bS];var sc=class extends Un{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 l;let o=jp(this.clampedValue),t=iy(this.clampedValue),e=oy(this.clampedValue),i=sy(this.clampedValue,o);return S`
5621
+ `,ny=[yS];var ac=class extends Un{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 l;let o=qp(this.clampedValue),t=oy(this.clampedValue),e=sy(this.clampedValue),i=ay(this.clampedValue,o);return S`
5600
5622
  <div
5601
5623
  part="spinner-container ${this.variant}"
5602
5624
  role="${et.PROGRESSBAR}"
@@ -5630,7 +5652,7 @@
5630
5652
  <mdc-icon
5631
5653
  part="error-icon"
5632
5654
  aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
5633
- name="${Yp.ERROR_LEGACY_FILLED}"
5655
+ name="${jp.ERROR_LEGACY_FILLED}"
5634
5656
  size="${ye.ERROR_ICON_SIZE}"
5635
5657
  length-unit="${ye.ICON_LENGTH_UNIT}"
5636
5658
  ></mdc-icon>
@@ -5638,11 +5660,11 @@
5638
5660
  <mdc-icon
5639
5661
  part="success-icon"
5640
5662
  aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
5641
- name="${Yp.CHECK_CIRCLE_BOLD}"
5663
+ name="${jp.CHECK_CIRCLE_BOLD}"
5642
5664
  size="${ye.SUCCESS_ICON_SIZE}"
5643
5665
  length-unit="${ye.ICON_LENGTH_UNIT}"
5644
5666
  ></mdc-icon>
5645
- `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};sc.styles=[...X.styles,...ay];var qp=sc;qp.register(ry);var yS=qp;var ES=[yt,H`
5667
+ `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};ac.styles=[...X.styles,...ny];var Xp=ac;Xp.register(iy);var ES=Xp;var TS=[yt,H`
5646
5668
  :host {
5647
5669
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
5648
5670
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -5702,7 +5724,7 @@
5702
5724
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
5703
5725
  }
5704
5726
  }
5705
- `,...Et(!0,"parent-to-child")],ny=ES;var Gn=class extends Mt(Nt($e(pe(Qt)))){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 l;return(l=this.onerror)==null?void 0:l.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(c=>c.required),i=t.some(c=>c.checked),l=e&&!i;this.setGroupValidity(t,!l),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===Y.SPACE&&t.preventDefault();let l=this.getAllRadiosWithinSameGroup().filter(b=>!b.disabled),c=l.indexOf(this);if(this.getKeyboardNavMode()===ee.SPATIAL){e===Y.ENTER&&(this.updateRadio(l,c),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===Y.DOWN||e===Y.RIGHT){let b=(c+1)%l.length;this.updateRadio(l,b)}else if(e===Y.UP||e===Y.LEFT){let b=(c-1+l.length)%l.length;this.updateRadio(l,b)}else e===Y.SPACE&&this.updateRadio(l,c);this.updateTabIndex(),e===Y.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===ee.SPATIAL,e=this.getAllRadiosWithinSameGroup(),i=e.find(c=>c.checked),l=e.find(c=>!c.disabled);e.forEach(c=>{c.tabIndex=-1,(t||c===i||!i&&c===l)&&(c.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(l=>l.nodeType===Node.ELEMENT_NODE);this.classList.toggle("mdc-focus-ring",i.length>0)}render(){return S`
5727
+ `,...Et(!0,"parent-to-child")],ly=TS;var Gn=class extends Mt(Nt($e(pe(Qt)))){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 l;return(l=this.onerror)==null?void 0:l.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(c=>c.required),i=t.some(c=>c.checked),l=e&&!i;this.setGroupValidity(t,!l),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===Y.SPACE&&t.preventDefault();let l=this.getAllRadiosWithinSameGroup().filter(b=>!b.disabled),c=l.indexOf(this);if(this.getKeyboardNavMode()===ee.SPATIAL){e===Y.ENTER&&(this.updateRadio(l,c),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===Y.DOWN||e===Y.RIGHT){let b=(c+1)%l.length;this.updateRadio(l,b)}else if(e===Y.UP||e===Y.LEFT){let b=(c-1+l.length)%l.length;this.updateRadio(l,b)}else e===Y.SPACE&&this.updateRadio(l,c);this.updateTabIndex(),e===Y.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===ee.SPATIAL,e=this.getAllRadiosWithinSameGroup(),i=e.find(c=>c.checked),l=e.find(c=>!c.disabled);e.forEach(c=>{c.tabIndex=-1,(t||c===i||!i&&c===l)&&(c.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(l=>l.nodeType===Node.ELEMENT_NODE);this.classList.toggle("mdc-focus-ring",i.length>0)}render(){return S`
5706
5728
  <slot name="indicator" @slotchange=${this.handleIndicatorSlotChange}>
5707
5729
  <mdc-staticradio
5708
5730
  part="radio-indicator"
@@ -5718,7 +5740,7 @@
5718
5740
  <div part="label-text">
5719
5741
  <slot name="label">${this.renderLabelElement()}</slot>
5720
5742
  </div>
5721
- `}};Gn.styles=[...Qt.styles,...ny],h([u({type:Boolean,reflect:!0})],Gn.prototype,"checked",2);var Xp=Gn;var ac=B.constructTagName("radio");Xp.register(ac);var TS=Xp;var xS=new RegExp(`^(${ac}|${pd})$`,"i"),Kn=class extends Ud{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)})}};Kn.styles=[...Ud.styles],h([u({type:String,reflect:!0})],Kn.prototype,"name",2);var Zp=Kn;var ly=B.constructTagName("radiogroup");Zp.register(ly);var AS=Zp;var SS=H`
5743
+ `}};Gn.styles=[...Qt.styles,...ly],h([u({type:Boolean,reflect:!0})],Gn.prototype,"checked",2);var Zp=Gn;var nc=B.constructTagName("radio");Zp.register(nc);var xS=Zp;var AS=new RegExp(`^(${nc}|${md})$`,"i"),Kn=class extends Gd{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=>AS.test(e.tagName)).forEach(e=>{e.hasAttribute("name")||e.setAttribute("name",this.name),e.toggleAttribute("required",this.required)})}};Kn.styles=[...Gd.styles],h([u({type:String,reflect:!0})],Kn.prototype,"name",2);var Qp=Kn;var dy=B.constructTagName("radiogroup");Qp.register(dy);var SS=Qp;var IS=H`
5722
5744
  :host::part(input-text) {
5723
5745
  white-space: nowrap;
5724
5746
  flex: 0 0 auto;
@@ -5758,7 +5780,7 @@
5758
5780
  slot[name='filters']::slotted(:first-child) {
5759
5781
  margin-left: 0.25rem;
5760
5782
  }
5761
- `,dy=[SS];var cy=B.constructTagName("searchfield"),nc={TYPE:yo.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var IS=[wd,na,$l],hy=IS.join(", ");var Es=class extends pi(Mt(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===Y.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===Y.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===Y.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===Y.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===Y.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,l=i.value.length;i.setSelectionRange(l,l),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var c,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),l=i&&(f=(c=this.chips)==null?void 0:c.indexOf(i))!=null?f:-1;l>=0&&(this.focusedChipIndex=l,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var c;super.handleKeyDown(t);let e=this.getActionForKeyEvent(t);if(e===Y.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((c=this.chips)!=null&&c.length))return;let i=this.inputElement,l=i.selectionStart===0&&i.selectionEnd===0;if(e===Y.BACKSPACE&&l){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===Y.LEFT&&l){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===Y.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=nc.ICON,this.trailingButton=nc.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(hy)){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(na)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,l,c;if((i=this.chips)!=null&&i.includes(t))return t;let e=(l=t.getRootNode())==null?void 0:l.host;return e&&((c=this.chips)!=null&&c.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(),l=t.getBoundingClientRect();l.left<i.left?e.scrollLeft-=i.left-l.left:l.right>i.right&&(e.scrollLeft+=l.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let l=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,l)}render(){return S`
5783
+ `,cy=[IS];var hy=B.constructTagName("searchfield"),lc={TYPE:Eo.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var CS=[Nd,na,Vl],py=CS.join(", ");var Es=class extends mi(Mt(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===Y.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===Y.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===Y.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===Y.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===Y.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,l=i.value.length;i.setSelectionRange(l,l),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var c,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),l=i&&(f=(c=this.chips)==null?void 0:c.indexOf(i))!=null?f:-1;l>=0&&(this.focusedChipIndex=l,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var c;super.handleKeyDown(t);let e=this.getActionForKeyEvent(t);if(e===Y.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((c=this.chips)!=null&&c.length))return;let i=this.inputElement,l=i.selectionStart===0&&i.selectionEnd===0;if(e===Y.BACKSPACE&&l){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===Y.LEFT&&l){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===Y.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=lc.ICON,this.trailingButton=lc.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(na)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,l,c;if((i=this.chips)!=null&&i.includes(t))return t;let e=(l=t.getRootNode())==null?void 0:l.host;return e&&((c=this.chips)!=null&&c.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(),l=t.getBoundingClientRect();l.left<i.left?e.scrollLeft-=i.left-l.left:l.right>i.right&&(e.scrollLeft+=l.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let l=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,l)}render(){return S`
5762
5784
  ${this.renderLabelElement()}
5763
5785
  <div
5764
5786
  class="${Yr({"mdc-focus-ring":this.isInputFocused})}"
@@ -5767,11 +5789,11 @@
5767
5789
  ${this.renderLeadingIcon()}
5768
5790
  <div part="searchfield-container" @click=${this.handleFilterContainerClick} tabindex="-1">
5769
5791
  <slot name="filters" @slotchange=${this.renderChips}></slot>
5770
- ${this.renderInputElement(nc.TYPE,this.hasChips)}
5792
+ ${this.renderInputElement(lc.TYPE,this.hasChips)}
5771
5793
  </div>
5772
5794
  ${this.renderTrailingButton(this.hasChips)}
5773
5795
  </div>
5774
- `}};Es.styles=[...jr.styles,...dy],h([qt({slot:"filters"})],Es.prototype,"chips",2),h([dt()],Es.prototype,"isInputFocused",2),h([dt()],Es.prototype,"hasChips",2);var ua=Es;ua.register(cy);var CS=ua;var _S=H`
5796
+ `}};Es.styles=[...jr.styles,...cy],h([qt({slot:"filters"})],Es.prototype,"chips",2),h([dt()],Es.prototype,"isInputFocused",2),h([dt()],Es.prototype,"hasChips",2);var ua=Es;ua.register(hy);var _S=ua;var kS=H`
5775
5797
  :host::part(filters-container) {
5776
5798
  display: flex;
5777
5799
  flex-wrap: nowrap;
@@ -5807,7 +5829,7 @@
5807
5829
  min-width: auto;
5808
5830
  padding: 0.75rem 0.5rem;
5809
5831
  }
5810
- `,py=[_S];var my=B.constructTagName("searchpopover"),Qp={TYPE:yo.TEXT,DISPLAY_POPOVER:!1},Jp="searchpopover-container-triggerid",lc="searchpopover-popoverid";var Co=class extends ua{constructor(){super(...arguments);this.displayPopover=Qp.DISPLAY_POPOVER;this.placement=Lt.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
5832
+ `,my=[kS];var uy=B.constructTagName("searchpopover"),Jp={TYPE:Eo.TEXT,DISPLAY_POPOVER:!1},tm="searchpopover-container-triggerid",dc="searchpopover-popoverid";var _o=class extends ua{constructor(){super(...arguments);this.displayPopover=Jp.DISPLAY_POPOVER;this.placement=Lt.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
5811
5833
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
5812
5834
  part="input-text"
5813
5835
  id="${this.inputId}"
@@ -5816,10 +5838,10 @@
5816
5838
  ?disabled="${this.disabled}"
5817
5839
  ?readonly="${this.readonly}"
5818
5840
  ?required="${this.required}"
5819
- type="${Qp.TYPE}"
5841
+ type="${Jp.TYPE}"
5820
5842
  aria-expanded="${this.displayPopover?"true":"false"}"
5821
- aria-controls="${lc}"
5822
- aria-owns="${lc}"
5843
+ aria-controls="${dc}"
5844
+ aria-owns="${dc}"
5823
5845
  aria-haspopup="${et.DIALOG}"
5824
5846
  aria-describedby="${J(this.helpText?Xt.HELPER_TEXT_ID:(i=this.dataAriaDescribedby)!=null?i:"")}"
5825
5847
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
@@ -5841,7 +5863,7 @@
5841
5863
  <div
5842
5864
  class="${Yr({"mdc-focus-ring":this.isInputFocused})}"
5843
5865
  part="input-container"
5844
- id="${Jp}"
5866
+ id="${tm}"
5845
5867
  >
5846
5868
  ${this.renderLeadingIcon()}
5847
5869
  <div part="filters-container" @click=${this.handleFilterContainerClick} tabindex="-1">
@@ -5851,8 +5873,8 @@
5851
5873
  ${this.renderTrailingButton(this.hasChips)}
5852
5874
  </div>
5853
5875
  <mdc-popover
5854
- triggerID="${Jp}"
5855
- id="${lc}"
5876
+ triggerID="${tm}"
5877
+ id="${dc}"
5856
5878
  trigger="manual"
5857
5879
  interactive
5858
5880
  ?visible=${this.displayPopover}
@@ -5868,7 +5890,7 @@
5868
5890
  >
5869
5891
  <slot></slot>
5870
5892
  </mdc-popover>
5871
- `}};Co.styles=[...ua.styles,...py],h([u({type:Boolean,reflect:!0,attribute:"display-popover"})],Co.prototype,"displayPopover",2),h([u({type:String,reflect:!0})],Co.prototype,"placement",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Co.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"popover-aria-label"})],Co.prototype,"popoverAriaLabel",2);var tm=Co;tm.register(my);var kS=tm;var uy=B.constructTagName("select"),em={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},dc="select-base-triggerid",fy="select-listbox",vy={DISABLE_FLIP:!1};var wS=H`
5893
+ `}};_o.styles=[...ua.styles,...my],h([u({type:Boolean,reflect:!0,attribute:"display-popover"})],_o.prototype,"displayPopover",2),h([u({type:String,reflect:!0})],_o.prototype,"placement",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],_o.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"popover-aria-label"})],_o.prototype,"popoverAriaLabel",2);var em=_o;em.register(uy);var wS=em;var fy=B.constructTagName("select"),rm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},cc="select-base-triggerid",vy="select-listbox",gy={DISABLE_FLIP:!1};var NS=H`
5872
5894
  :host {
5873
5895
  --mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
5874
5896
  --mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
@@ -5978,11 +6000,11 @@
5978
6000
  :host([soft-disabled])::part(base-text) {
5979
6001
  --mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
5980
6002
  }
5981
- `,gy=[wS,...Et(!0)];var hr=class extends Eo(Nt(hi($e(pe(ie(Qt)))))){constructor(){super();this.placement=Lt.BOTTOM_START;this.boundary=bt.BOUNDARY;this.strategy=bt.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,l)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||l.length===0)return;let c=i+1;if(c>=l.length&&(c=i-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?l[c]:l[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Tr}:not([disabled])`);this.addEventListener(Jt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Lr(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 l;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((l=this.selectedOption)==null?void 0:l.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),b=this.navItems.find(F=>F.value===i),A=null;if(b)A=b;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(F=>{this.onerror&&this.onerror(F)})}}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===Tr.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,l;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),(l=this.inputElement)==null||l.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(l=>l.value===t||l.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=_d(()=>{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 l;return(l=i.getAttribute("label"))==null?void 0:l.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)],l=this.filterOptionsBySearchKey(i,t),c=null;if(l.length)[c]=l;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],b=this.filterOptionsBySearchKey(i,t[0]),A=b.filter(F=>F===f);c=A.length?A[0]:b[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===ee.DEFAULT)switch(e){case Y.DOWN:case Y.UP:case Y.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case Y.SPACE:t.preventDefault(),t.stopPropagation();break;case Y.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case Y.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===Y.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()===ee.DEFAULT&&e===Y.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()===ee.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,l,c,f;return S`
6003
+ `,by=[NS,...Et(!0)];var hr=class extends To(Nt(pi($e(pe(ie(Qt)))))){constructor(){super();this.placement=Lt.BOTTOM_START;this.boundary=bt.BOUNDARY;this.strategy=bt.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=gy.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,l)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||l.length===0)return;let c=i+1;if(c>=l.length&&(c=i-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?l[c]:l[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Tr}:not([disabled])`);this.addEventListener(Jt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Lr(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 l;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((l=this.selectedOption)==null?void 0:l.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),b=this.navItems.find(F=>F.value===i),A=null;if(b)A=b;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(F=>{this.onerror&&this.onerror(F)})}}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===Tr.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,l;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),(l=this.inputElement)==null||l.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(l=>l.value===t||l.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=kd(()=>{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 l;return(l=i.getAttribute("label"))==null?void 0:l.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)],l=this.filterOptionsBySearchKey(i,t),c=null;if(l.length)[c]=l;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],b=this.filterOptionsBySearchKey(i,t[0]),A=b.filter(F=>F===f);c=A.length?A[0]:b[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===ee.DEFAULT)switch(e){case Y.DOWN:case Y.UP:case Y.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case Y.SPACE:t.preventDefault(),t.stopPropagation();break;case Y.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case Y.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===Y.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()===ee.DEFAULT&&e===Y.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()===ee.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,l,c,f;return S`
5982
6004
  ${this.renderLabel()}
5983
6005
  <div part="container">
5984
6006
  <div
5985
- id="${dc}"
6007
+ id="${cc}"
5986
6008
  part="base-container"
5987
6009
  @click="${this.handleClickCombobox}"
5988
6010
  @keydown="${this.handleKeydownCombobox}"
@@ -5990,7 +6012,7 @@
5990
6012
  tabindex="${this.disabled?"-1":"0"}"
5991
6013
  class="${this.disabled?"":"mdc-focus-ring"}"
5992
6014
  role="${et.COMBOBOX}"
5993
- aria-controls="${fy}"
6015
+ aria-controls="${vy}"
5994
6016
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
5995
6017
  aria-labelledby="${this.label?Xt.HEADING_ID:""}"
5996
6018
  aria-expanded="${this.displayPopover?"true":"false"}"
@@ -6017,7 +6039,7 @@
6017
6039
  <mdc-icon
6018
6040
  size="1"
6019
6041
  length-unit="rem"
6020
- name="${this.displayPopover?em.ARROW_UP:em.ARROW_DOWN}"
6042
+ name="${this.displayPopover?rm.ARROW_UP:rm.ARROW_DOWN}"
6021
6043
  ></mdc-icon>
6022
6044
  </div>
6023
6045
  </div>
@@ -6037,7 +6059,7 @@
6037
6059
  />
6038
6060
  <mdc-popover
6039
6061
  trigger="${_e.MANUAL}"
6040
- triggerid="${dc}"
6062
+ triggerid="${cc}"
6041
6063
  interactive
6042
6064
  ?visible="${this.displayPopover}"
6043
6065
  role=""
@@ -6062,7 +6084,7 @@
6062
6084
  </mdc-popover>
6063
6085
  </div>
6064
6086
  ${this.renderHelperText()}
6065
- `}};hr.styles=[...Qt.styles,...gy],h([u({type:String})],hr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],hr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],hr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],hr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],hr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],hr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],hr.prototype,"backdropAppendTo",2),h([Kt(`[id="${dc}"]`)],hr.prototype,"visualCombobox",2),h([dt()],hr.prototype,"selectedOption",2),h([dt()],hr.prototype,"displayPopover",2);var rm=hr;rm.register(uy);var NS=rm;var im=class extends X{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},om=im;var cc=B.constructTagName("selectlistbox");om.register(cc);var LS=om;vs.register(xo);var MS=vs;var by=B.constructTagName("skeleton"),yy={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Ey={VARIANT:yy.RECTANGULAR};var OS=H`
6087
+ `}};hr.styles=[...Qt.styles,...by],h([u({type:String})],hr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],hr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],hr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],hr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],hr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],hr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],hr.prototype,"backdropAppendTo",2),h([Kt(`[id="${cc}"]`)],hr.prototype,"visualCombobox",2),h([dt()],hr.prototype,"selectedOption",2),h([dt()],hr.prototype,"displayPopover",2);var im=hr;im.register(fy);var LS=im;var om=class extends X{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},sm=om;var hc=B.constructTagName("selectlistbox");sm.register(hc);var MS=sm;vs.register(Ao);var OS=vs;var yy=B.constructTagName("skeleton"),Ey={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Ty={VARIANT:Ey.RECTANGULAR};var RS=H`
6066
6088
  :host {
6067
6089
  --mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
6068
6090
  --mdc-skeleton-height: 100%;
@@ -6099,7 +6121,7 @@
6099
6121
  ::slotted(*) {
6100
6122
  visibility: hidden;
6101
6123
  }
6102
- `,Ty=OS;var Wn=class extends X{constructor(){super(...arguments);this.variant=Ey.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>`}};Wn.styles=[...X.styles,Ty],h([u({type:String,reflect:!0})],Wn.prototype,"variant",2);var sm=Wn;sm.register(by);var RS=sm;var DS=[yt,H`
6124
+ `,xy=RS;var Wn=class extends X{constructor(){super(...arguments);this.variant=Ty.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>`}};Wn.styles=[...X.styles,xy],h([u({type:String,reflect:!0})],Wn.prototype,"variant",2);var am=Wn;am.register(yy);var DS=am;var PS=[yt,H`
6103
6125
  :host {
6104
6126
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
6105
6127
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -6163,11 +6185,11 @@
6163
6185
  stroke-dashoffset: -292;
6164
6186
  }
6165
6187
  }
6166
- `],xy=DS;var Ay=B.constructTagName("spinner"),PS={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},FS={STANDALONE:"standalone",BUTTON:"button"},hc={VARIANT:FS.STANDALONE,SIZE:PS.MIDSIZE,INVERTED:!1};var _o=class extends X{constructor(){super(...arguments);this.inverted=hc.INVERTED;this.size=hc.SIZE;this.ariaLabel=null;this.variant=hc.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`
6188
+ `],Ay=PS;var Sy=B.constructTagName("spinner"),FS={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},$S={STANDALONE:"standalone",BUTTON:"button"},pc={VARIANT:$S.STANDALONE,SIZE:FS.MIDSIZE,INVERTED:!1};var ko=class extends X{constructor(){super(...arguments);this.inverted=pc.INVERTED;this.size=pc.SIZE;this.ariaLabel=null;this.variant=pc.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`
6167
6189
  <svg part="container" viewBox="0 0 100 100">
6168
6190
  <circle part="circle" cx="50" cy="50" r="46"></circle>
6169
6191
  </svg>
6170
- `}};_o.styles=[...X.styles,...xy],h([u({type:Boolean,reflect:!0})],_o.prototype,"inverted",2),h([u({type:String,reflect:!0})],_o.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],_o.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],_o.prototype,"variant",2);var am=_o;am.register(Ay);var $S=am;yn.register($g);var VS=yn;var zS={COMPLETE:"complete",INCOMPLETE:"incomplete"},nm={VERTICAL:"vertical",HORIZONTAL:"horizontal"},lm={STATUS:zS.INCOMPLETE,ORIENTATION:nm.HORIZONTAL},Sy=B.constructTagName("stepperconnector");var Iy=B.constructTagName("stepperitem"),dm={INLINE:"inline",STACKED:"stacked"},Ui={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},pc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},cm={VARIANT:dm.INLINE,STATUS:Ui.NOT_STARTED};var mc=B.constructTagName("stepper"),Yn={ORIENTATION:nm.HORIZONTAL,VARIANT:dm.INLINE};var uc=class{constructor(o,t){this.orientation=o,this.variant=t}};uc.context=mc;var fc=uc;var BS=H`
6192
+ `}};ko.styles=[...X.styles,...Ay],h([u({type:Boolean,reflect:!0})],ko.prototype,"inverted",2),h([u({type:String,reflect:!0})],ko.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],ko.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],ko.prototype,"variant",2);var nm=ko;nm.register(Sy);var VS=nm;yn.register(Vg);var zS=yn;var BS={COMPLETE:"complete",INCOMPLETE:"incomplete"},lm={VERTICAL:"vertical",HORIZONTAL:"horizontal"},dm={STATUS:BS.INCOMPLETE,ORIENTATION:lm.HORIZONTAL},Iy=B.constructTagName("stepperconnector");var Cy=B.constructTagName("stepperitem"),cm={INLINE:"inline",STACKED:"stacked"},Gi={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},mc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},hm={VARIANT:cm.INLINE,STATUS:Gi.NOT_STARTED};var uc=B.constructTagName("stepper"),Yn={ORIENTATION:lm.HORIZONTAL,VARIANT:cm.INLINE};var fc=class{constructor(o,t){this.orientation=o,this.variant=t}};fc.context=uc;var vc=fc;var HS=H`
6171
6193
  :host {
6172
6194
  gap: 0.5rem;
6173
6195
  }
@@ -6204,7 +6226,7 @@
6204
6226
  padding-top: 0.9375rem;
6205
6227
  margin: 0 -3rem;
6206
6228
  }
6207
- `,Cy=[yt,BS];var fa=class extends Se{constructor(){super({context:fc.context,initialValue:new fc(Yn.ORIENTATION,Yn.VARIANT)});this.orientation=Yn.ORIENTATION;this.variant=Yn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return fc.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> `}};fa.styles=[...X.styles,...Cy],h([u({type:String,reflect:!0})],fa.prototype,"orientation",2),h([u({type:String,reflect:!0})],fa.prototype,"variant",2);var Ts=fa;Ts.register(mc);var HS=Ts;var US=H`
6229
+ `,_y=[yt,HS];var fa=class extends Se{constructor(){super({context:vc.context,initialValue:new vc(Yn.ORIENTATION,Yn.VARIANT)});this.orientation=Yn.ORIENTATION;this.variant=Yn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return vc.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> `}};fa.styles=[...X.styles,..._y],h([u({type:String,reflect:!0})],fa.prototype,"orientation",2),h([u({type:String,reflect:!0})],fa.prototype,"variant",2);var Ts=fa;Ts.register(uc);var US=Ts;var GS=H`
6208
6230
  :host {
6209
6231
  --mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
6210
6232
  --mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
@@ -6239,7 +6261,7 @@
6239
6261
  border-left: 1px solid var(--mdc-stepperconnector-complete-background);
6240
6262
  }
6241
6263
  }
6242
- `,_y=[US];var va=class extends X{constructor(){super(...arguments);this.status=lm.STATUS;this.orientation=lm.ORIENTATION;this.stepperContext=Ie.consume({host:this,context:Ts.Context})}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.orientation||(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};va.styles=[...X.styles,..._y],h([u({type:String,reflect:!0})],va.prototype,"status",2),h([u({type:String,reflect:!0})],va.prototype,"orientation",2);var hm=va;hm.register(Sy);var GS=hm;var KS=H`
6264
+ `,ky=[GS];var va=class extends X{constructor(){super(...arguments);this.status=dm.STATUS;this.orientation=dm.ORIENTATION;this.stepperContext=Ie.consume({host:this,context:Ts.Context})}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.orientation||(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};va.styles=[...X.styles,...ky],h([u({type:String,reflect:!0})],va.prototype,"status",2),h([u({type:String,reflect:!0})],va.prototype,"orientation",2);var pm=va;pm.register(Iy);var KS=pm;var WS=H`
6243
6265
  :host {
6244
6266
  gap: 0.5rem;
6245
6267
  border-radius: 0.25rem;
@@ -6395,15 +6417,15 @@
6395
6417
  :host([status='error-incomplete']:active) {
6396
6418
  --mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
6397
6419
  }
6398
- `,ky=[yt,KS,...Et()];var Gi=class extends Mt(Nt(ei(X))){constructor(){super();this.variant=cm.VARIANT;this.status=cm.STATUS;this.label="";this.stepperContext=Ie.consume({host:this,context:Ts.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.variant||(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===Y.ENTER||e===Y.SPACE)&&(this.classList.add("pressed"),e===Y.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===Y.ENTER||e===Y.SPACE)&&(this.classList.remove("pressed"),e===Y.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Ui.COMPLETED?S`<mdc-icon part="status-icon" name=${pc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Ui.ERROR_CURRENT||this.status===Ui.CURRENT?S`<mdc-icon part="status-icon" name=${pc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Ui.NOT_STARTED||this.status===Ui.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${ut.SPAN} type=${st.BODY_MIDSIZE_REGULAR}
6420
+ `,wy=[yt,WS,...Et()];var Ki=class extends Mt(Nt(ri(X))){constructor(){super();this.variant=hm.VARIANT;this.status=hm.STATUS;this.label="";this.stepperContext=Ie.consume({host:this,context:Ts.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.variant||(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===Y.ENTER||e===Y.SPACE)&&(this.classList.add("pressed"),e===Y.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===Y.ENTER||e===Y.SPACE)&&(this.classList.remove("pressed"),e===Y.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Gi.COMPLETED?S`<mdc-icon part="status-icon" name=${mc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Gi.ERROR_CURRENT||this.status===Gi.CURRENT?S`<mdc-icon part="status-icon" name=${mc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Gi.NOT_STARTED||this.status===Gi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${ut.SPAN} type=${st.BODY_MIDSIZE_REGULAR}
6399
6421
  >${this.stepNumber}</mdc-text
6400
6422
  >`:W}renderHelpText(){if(!this.helpText)return W;let t=S`<mdc-text
6401
6423
  part="help-text"
6402
6424
  tagname=${ut.SPAN}
6403
6425
  type=${st.BODY_MIDSIZE_REGULAR}
6404
6426
  >${this.helpText}</mdc-text
6405
- >`;return this.status===Ui.ERROR_INCOMPLETE||this.status===Ui.ERROR_CURRENT?S`<div part="help-text-container">
6406
- <mdc-icon part="help-icon" name=${pc.ERROR} length-unit="rem" size="1"></mdc-icon>
6427
+ >`;return this.status===Gi.ERROR_INCOMPLETE||this.status===Gi.ERROR_CURRENT?S`<div part="help-text-container">
6428
+ <mdc-icon part="help-icon" name=${mc.ERROR} length-unit="rem" size="1"></mdc-icon>
6407
6429
  ${t}
6408
6430
  </div>`:t}render(){return S` <div part="status-container">${this.renderStatusIcon()}</div>
6409
6431
  <div part="label-container">
@@ -6411,7 +6433,7 @@
6411
6433
  >${this.label}</mdc-text
6412
6434
  >`:W}
6413
6435
  ${this.renderHelpText()}
6414
- </div>`}};Gi.styles=[...X.styles,...ky],h([u({type:String,reflect:!0})],Gi.prototype,"variant",2),h([u({type:String,reflect:!0})],Gi.prototype,"status",2),h([u({type:String,reflect:!0})],Gi.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],Gi.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],Gi.prototype,"stepNumber",2);var pm=Gi;pm.register(Iy);var WS=pm;var ga=B.constructTagName("tab"),mm={GLASS:"glass",LINE:"line",PILL:"pill"},um={32:32,28:28},ba={VARIANT:mm.PILL,ACTIVE:!1,SIZE:um[32]};var YS=[yt,H`
6436
+ </div>`}};Ki.styles=[...X.styles,...wy],h([u({type:String,reflect:!0})],Ki.prototype,"variant",2),h([u({type:String,reflect:!0})],Ki.prototype,"status",2),h([u({type:String,reflect:!0})],Ki.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],Ki.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],Ki.prototype,"stepNumber",2);var mm=Ki;mm.register(Cy);var YS=mm;var ga=B.constructTagName("tab"),um={GLASS:"glass",LINE:"line",PILL:"pill"},fm={32:32,28:28},ba={VARIANT:um.PILL,ACTIVE:!1,SIZE:fm[32]};var jS=[yt,H`
6415
6437
  :host {
6416
6438
  --mdc-tab-content-gap: 0.5rem;
6417
6439
  --mdc-tab-height: 2rem;
@@ -6645,7 +6667,7 @@
6645
6667
  --mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
6646
6668
  --mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
6647
6669
  }
6648
- `,...Et()],wy=YS;var Ki=class extends ce(qd(fe)){constructor(){super(...arguments);this.active=ba.ACTIVE;this.variant=ba.VARIANT;this.size=ba.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(mm).includes(t)?t:ba.VARIANT)}setSize(t){this.setAttribute("size",Object.values(um).includes(t)?`${t}`:ba.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${Wo(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`
6670
+ `,...Et()],Ny=jS;var Wi=class extends ce(Xd(fe)){constructor(){super(...arguments);this.active=ba.ACTIVE;this.variant=ba.VARIANT;this.size=ba.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(um).includes(t)?t:ba.VARIANT)}setSize(t){this.setAttribute("size",Object.values(fm).includes(t)?`${t}`:ba.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${Wo(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`
6649
6671
  <div part="container">
6650
6672
  <div part="leading">
6651
6673
  <slot name="prefix">
@@ -6677,7 +6699,7 @@
6677
6699
  <slot name="postfix"></slot>
6678
6700
  </div>
6679
6701
  <div part="indicator"></div>
6680
- `}};Ki.styles=[...fe.styles,...wy],h([u({type:Boolean,reflect:!0})],Ki.prototype,"active",2),h([u({type:String,reflect:!0})],Ki.prototype,"text",2),h([u({type:String,reflect:!0})],Ki.prototype,"variant",2),h([u({type:Number,reflect:!0})],Ki.prototype,"size",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],Ki.prototype,"tabId",2);var Wi=Ki;Wi.register(ga);var vc=Wi;var fm=a=>a.at(0),Ny=a=>a.at(a.length-1),Ly=(a,o)=>a.find(t=>t.tabId===o),gc=a=>a.find(o=>o.active);var bc=a=>{class o extends a{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=Ly(this.navItems,this.activeTabId);if(!(i instanceof vc))return;this.setActiveTab(i),e.get("activeTabId")&&this.fireTabChangeEvent(i)}}setActiveTab(e){var i;(i=this.navItems)==null||i.forEach(l=>{l===e?l.setAttribute("active",""):l.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 vc&&(this.activeTabId=i.tabId)}}return h([u({type:String,attribute:"active-tab-id",reflect:!0})],o.prototype,"activeTabId",2),o};var jS=[Fr,H`
6702
+ `}};Wi.styles=[...fe.styles,...Ny],h([u({type:Boolean,reflect:!0})],Wi.prototype,"active",2),h([u({type:String,reflect:!0})],Wi.prototype,"text",2),h([u({type:String,reflect:!0})],Wi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Wi.prototype,"size",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],Wi.prototype,"tabId",2);var Yi=Wi;Yi.register(ga);var gc=Yi;var vm=a=>a.at(0),Ly=a=>a.at(a.length-1),My=(a,o)=>a.find(t=>t.tabId===o),bc=a=>a.find(o=>o.active);var yc=a=>{class o extends a{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=My(this.navItems,this.activeTabId);if(!(i instanceof gc))return;this.setActiveTab(i),e.get("activeTabId")&&this.fireTabChangeEvent(i)}}setActiveTab(e){var i;(i=this.navItems)==null||i.forEach(l=>{l===e?l.setAttribute("active",""):l.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 gc&&(this.activeTabId=i.tabId)}}return h([u({type:String,attribute:"active-tab-id",reflect:!0})],o.prototype,"activeTabId",2),o};var qS=[Fr,H`
6681
6703
  :host {
6682
6704
  --mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
6683
6705
  --mdc-tablist-gap: 0.5rem;
@@ -6707,7 +6729,7 @@
6707
6729
  :host mdc-button[prefix-icon='arrow-right-regular'] {
6708
6730
  margin-left: var(--mdc-tablist-arrow-button-margin);
6709
6731
  }
6710
- `],My=[...jS];var Oy=B.constructTagName("tablist"),ya={FORWARD:"forward",BACKWARD:"backward"};var ui=class extends Eo(hi(Mt(Nt(bc(X))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Lr(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(`${ga}: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 l=i+1;l>=this.navItems.length&&(l=i-1);let c=this.navItems.at(l);c instanceof Wi&&c.focus(),this.resetTabIndexes(l,!1)}}resetTabIndexAndSetFocus(t,e){var c;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),l=(c=this.navItems)==null?void 0:c.at(t);return l instanceof Wi&&l.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,l;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(c=>c.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=fm(this.navItems))==null?void 0:i.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}focus(t){let e=gc(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof Wi||!(t.target instanceof Wi))return;let e=gc(this.navItems||[]);if(!(e instanceof Wi))return;let i=this.navItems.findIndex(l=>l===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===ya.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=gc(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var V,Q,Z;if(!this.navItems||!this.tabsContainer)return;let t=!1;((V=this.shadowRoot)==null?void 0:V.activeElement)instanceof Yo&&(t=!0);let e=fm(this.navItems),i=Ny(this.navItems);if(!e||!i)return;let l=e.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=i.getBoundingClientRect().right,b=(Z=this.tabsContainer)==null?void 0:Z.getBoundingClientRect().right,A=e.getBoundingClientRect().right,F=i.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>b?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>b?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,F<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var l;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===ya.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=l=>S` ${this.shouldShowArrowButton(l)?S`<mdc-button
6732
+ `],Oy=[...qS];var Ry=B.constructTagName("tablist"),ya={FORWARD:"forward",BACKWARD:"backward"};var fi=class extends To(pi(Mt(Nt(yc(X))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Lr(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(`${ga}: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 l=i+1;l>=this.navItems.length&&(l=i-1);let c=this.navItems.at(l);c instanceof Yi&&c.focus(),this.resetTabIndexes(l,!1)}}resetTabIndexAndSetFocus(t,e){var c;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),l=(c=this.navItems)==null?void 0:c.at(t);return l instanceof Yi&&l.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,l;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(c=>c.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=vm(this.navItems))==null?void 0:i.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}focus(t){let e=bc(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof Yi||!(t.target instanceof Yi))return;let e=bc(this.navItems||[]);if(!(e instanceof Yi))return;let i=this.navItems.findIndex(l=>l===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===ya.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=bc(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var V,Q,Z;if(!this.navItems||!this.tabsContainer)return;let t=!1;((V=this.shadowRoot)==null?void 0:V.activeElement)instanceof Yo&&(t=!0);let e=vm(this.navItems),i=Ly(this.navItems);if(!e||!i)return;let l=e.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=i.getBoundingClientRect().right,b=(Z=this.tabsContainer)==null?void 0:Z.getBoundingClientRect().right,A=e.getBoundingClientRect().right,F=i.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>b?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>b?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,F<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var l;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===ya.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=l=>S` ${this.shouldShowArrowButton(l)?S`<mdc-button
6711
6733
  variant="tertiary"
6712
6734
  prefix-icon="arrow-${l===ya.FORWARD?t:e}-regular"
6713
6735
  aria-label="Scroll tabs ${l===ya.FORWARD?t:e}"
@@ -6716,7 +6738,7 @@
6716
6738
  <div part="container" role="${et.TABLIST}" tabindex="-1" aria-label="${J(this.dataAriaLabel)}">
6717
6739
  <slot></slot>
6718
6740
  </div>
6719
- ${i(ya.FORWARD)}`}};ui.styles=[...X.styles,...My],ui.shadowRootOptions={...X.shadowRootOptions,delegatesFocus:!0},h([u({type:String,attribute:"data-aria-label"})],ui.prototype,"dataAriaLabel",2),h([Kt('[part="container"]')],ui.prototype,"tabsContainer",2),h([Kt("mdc-button:not(:focus-visible)")],ui.prototype,"notFocusedArrowButton",2),h([dt()],ui.prototype,"showForwardArrowButton",2),h([dt()],ui.prototype,"showBackwardArrowButton",2);var vm=ui;vm.register(Oy);var qS=vm;var Ry=B.constructTagName("textarea"),gm={HARD:"hard",SOFT:"soft"},Dy={OFF:"off",ON:"on"},yc={ROWS:5,COLS:40,WRAP:gm.SOFT};var XS=[H`
6741
+ ${i(ya.FORWARD)}`}};fi.styles=[...X.styles,...Oy],fi.shadowRootOptions={...X.shadowRootOptions,delegatesFocus:!0},h([u({type:String,attribute:"data-aria-label"})],fi.prototype,"dataAriaLabel",2),h([Kt('[part="container"]')],fi.prototype,"tabsContainer",2),h([Kt("mdc-button:not(:focus-visible)")],fi.prototype,"notFocusedArrowButton",2),h([dt()],fi.prototype,"showForwardArrowButton",2),h([dt()],fi.prototype,"showBackwardArrowButton",2);var gm=fi;gm.register(Ry);var XS=gm;var Dy=B.constructTagName("textarea"),bm={HARD:"hard",SOFT:"soft"},Py={OFF:"off",ON:"on"},Ec={ROWS:5,COLS:40,WRAP:bm.SOFT};var ZS=[H`
6720
6742
  :host {
6721
6743
  --mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
6722
6744
  --mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
@@ -6841,7 +6863,7 @@
6841
6863
  :host([disabled])::part(resize-button) {
6842
6864
  cursor: default;
6843
6865
  }
6844
- `,...Et(!0)],Py=XS;var Be=class extends Gd(Mt(Nt($e(pe(ie(dr)))))){constructor(){super(...arguments);this.rows=yc.ROWS;this.wrap=gm.SOFT;this.autocapitalize=Kd.OFF;this.autocomplete=Dy.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||yc.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),l=Math.round(e/i);this.rows=Math.max(1,this.resizeStartRows+l)};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===Wt.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?W:S` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let e=this.rows||yc.ROWS,i,l=this.getActionForKeyEvent(t);l===Y.UP?(i=Math.max(1,e-1),i!==e&&this.keyDownEventHandled()):l===Y.DOWN&&(i=e+1,this.keyDownEventHandled()),i!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=i)}render(){var t,e;return S`
6866
+ `,...Et(!0)],Fy=ZS;var Be=class extends Kd(Mt(Nt($e(pe(ie(dr)))))){constructor(){super(...arguments);this.rows=Ec.ROWS;this.wrap=bm.SOFT;this.autocapitalize=Wd.OFF;this.autocomplete=Py.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||Ec.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),l=Math.round(e/i);this.rows=Math.max(1,this.resizeStartRows+l)};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===Wt.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?W:S` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let e=this.rows||Ec.ROWS,i,l=this.getActionForKeyEvent(t);l===Y.UP?(i=Math.max(1,e-1),i!==e&&this.keyDownEventHandled()):l===Y.DOWN&&(i=e+1,this.keyDownEventHandled()),i!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=i)}render(){var t,e;return S`
6845
6867
  ${this.renderLabel()}
6846
6868
  <div class="mdc-focus-ring" part="textarea-container">
6847
6869
  <textarea
@@ -6888,7 +6910,7 @@
6888
6910
  `:W}
6889
6911
  </div>
6890
6912
  ${this.renderTextareaFooter()}
6891
- `}};Be.styles=[...dr.styles,...Py],h([u({type:String})],Be.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],Be.prototype,"rows",2),h([u({type:Number})],Be.prototype,"cols",2),h([u({type:String})],Be.prototype,"wrap",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:Number})],Be.prototype,"maxlength",2),h([u({type:Number})],Be.prototype,"minlength",2),h([u({type:Boolean,reflect:!0})],Be.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],Be.prototype,"resizeButtonAriaLabel",2),h([Kt("textarea")],Be.prototype,"inputElement",2);var bm=Be;bm.register(Ry);var ZS=bm;var Fy=B.constructTagName("timepicker"),ym={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},ko={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},Em="timepicker-triggerid",Tm="timepicker-listbox",He={TIME_FORMAT:ko.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 QS=H`
6913
+ `}};Be.styles=[...dr.styles,...Fy],h([u({type:String})],Be.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],Be.prototype,"rows",2),h([u({type:Number})],Be.prototype,"cols",2),h([u({type:String})],Be.prototype,"wrap",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:Number})],Be.prototype,"maxlength",2),h([u({type:Number})],Be.prototype,"minlength",2),h([u({type:Boolean,reflect:!0})],Be.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],Be.prototype,"resizeButtonAriaLabel",2),h([Kt("textarea")],Be.prototype,"inputElement",2);var ym=Be;ym.register(Dy);var QS=ym;var $y=B.constructTagName("timepicker"),Em={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},wo={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},Tm="timepicker-triggerid",xm="timepicker-listbox",He={TIME_FORMAT:wo.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 JS=H`
6892
6914
  :host {
6893
6915
  --mdc-timepicker-background-color: var(--mds-color-theme-background-primary-ghost);
6894
6916
  --mdc-timepicker-text-color: var(--mds-color-theme-text-primary-normal);
@@ -7075,18 +7097,18 @@
7075
7097
  --mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
7076
7098
  color: var(--mds-color-theme-text-primary-disabled);
7077
7099
  }
7078
- `,$y=[QS,...Et(!0)];var Dt=class extends pe(ie(Qt)){constructor(){super(...arguments);this.timeFormat=He.TIME_FORMAT;this.interval=He.INTERVAL;this.placement=Lt.BOTTOM_START;this.strategy=bt.STRATEGY;this.disableFlip=He.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(l=>l.value===e);return i>=0?i:0}focusCurrentMenuItem(){var l;let t=(l=this.shadowRoot)==null?void 0:l.querySelector(`#${Tm}`);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===ko.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===ko.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 l=Math.floor(i/60),c=i%60,f=`${String(l).padStart(2,"0")}:${String(c).padStart(2,"0")}`,b;if(this.timeFormat===ko.TWELVE_HOUR){let V=l<12?this.localeAmLabel:this.localePmLabel,Q=l%12;Q===0&&(Q=12);let Z=String(c).padStart(2,"0");b=`${Q}:${Z} ${V}`}else b=`${l}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,F=!this.max||f<=this.max;A&&F&&t.push({label:b,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,l,c;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}(l=this.hoursInput)==null||l.focus(),(c=this.hoursInput)==null||c.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===wt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var l;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case wt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case wt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case wt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case wt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(l=this.dropdownButton)==null||l.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 wt.ARROW_UP:case wt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case wt.TAB:break;case wt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let l=this.localeAmLabel.charAt(0).toLowerCase(),c=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===l?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===c&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var A,F,V,Q,Z,tt;let i=this.timeFormat===ko.TWELVE_HOUR,l,c;e==="hours"?(l=i?He.MIN_HOUR_12:He.MIN_HOUR_24,c=i?He.MAX_HOUR_12:He.MAX_HOUR_24):(l=He.MIN_MINUTE,c=He.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,b=f?parseInt(f,10):l;switch(t.key){case wt.ARROW_UP:{t.preventDefault(),b=b>=c?l:b+1,this.setSpinbuttonValue(e,b),this.commitValue();break}case wt.ARROW_DOWN:{t.preventDefault(),b=b<=l?c:b-1,this.setSpinbuttonValue(e,b),this.commitValue();break}case wt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((A=this.minutesInput)==null||A.focus(),(F=this.minutesInput)==null||F.select()):i&&((V=this.periodInput)==null||V.focus(),(Q=this.periodInput)==null||Q.select());break}case wt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((Z=this.hoursInput)==null||Z.focus(),(tt=this.hoursInput)==null||tt.select());break}case wt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,l,c)):t.preventDefault();break}}}handleDigitInput(t,e,i,l){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let c=parseInt(this.pendingDigits,10);c>l&&(c=l),c<i&&(c=i),this.setSpinbuttonValue(e,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let c=parseInt(this.pendingDigits,10),f=Math.floor(l/10);if(c>f){let b=c;b>l&&(b=l),b<i&&(b=i),this.setSpinbuttonValue(e,b),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,c),this.pendingDigitTimeout=setTimeout(()=>{let b=c;b<i&&(b=i),this.setSpinbuttonValue(e,b),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===ko.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`
7100
+ `,Vy=[JS,...Et(!0)];var Dt=class extends pe(ie(Qt)){constructor(){super(...arguments);this.timeFormat=He.TIME_FORMAT;this.interval=He.INTERVAL;this.placement=Lt.BOTTOM_START;this.strategy=bt.STRATEGY;this.disableFlip=He.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(l=>l.value===e);return i>=0?i:0}focusCurrentMenuItem(){var l;let t=(l=this.shadowRoot)==null?void 0:l.querySelector(`#${xm}`);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===wo.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===wo.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 l=Math.floor(i/60),c=i%60,f=`${String(l).padStart(2,"0")}:${String(c).padStart(2,"0")}`,b;if(this.timeFormat===wo.TWELVE_HOUR){let V=l<12?this.localeAmLabel:this.localePmLabel,Q=l%12;Q===0&&(Q=12);let Z=String(c).padStart(2,"0");b=`${Q}:${Z} ${V}`}else b=`${l}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,F=!this.max||f<=this.max;A&&F&&t.push({label:b,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,l,c;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}(l=this.hoursInput)==null||l.focus(),(c=this.hoursInput)==null||c.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===wt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var l;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case wt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case wt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case wt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case wt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(l=this.dropdownButton)==null||l.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 wt.ARROW_UP:case wt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case wt.TAB:break;case wt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let l=this.localeAmLabel.charAt(0).toLowerCase(),c=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===l?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===c&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var A,F,V,Q,Z,tt;let i=this.timeFormat===wo.TWELVE_HOUR,l,c;e==="hours"?(l=i?He.MIN_HOUR_12:He.MIN_HOUR_24,c=i?He.MAX_HOUR_12:He.MAX_HOUR_24):(l=He.MIN_MINUTE,c=He.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,b=f?parseInt(f,10):l;switch(t.key){case wt.ARROW_UP:{t.preventDefault(),b=b>=c?l:b+1,this.setSpinbuttonValue(e,b),this.commitValue();break}case wt.ARROW_DOWN:{t.preventDefault(),b=b<=l?c:b-1,this.setSpinbuttonValue(e,b),this.commitValue();break}case wt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((A=this.minutesInput)==null||A.focus(),(F=this.minutesInput)==null||F.select()):i&&((V=this.periodInput)==null||V.focus(),(Q=this.periodInput)==null||Q.select());break}case wt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((Z=this.hoursInput)==null||Z.focus(),(tt=this.hoursInput)==null||tt.select());break}case wt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,l,c)):t.preventDefault();break}}}handleDigitInput(t,e,i,l){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let c=parseInt(this.pendingDigits,10);c>l&&(c=l),c<i&&(c=i),this.setSpinbuttonValue(e,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let c=parseInt(this.pendingDigits,10),f=Math.floor(l/10);if(c>f){let b=c;b>l&&(b=l),b<i&&(b=i),this.setSpinbuttonValue(e,b),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,c),this.pendingDigitTimeout=setTimeout(()=>{let b=c;b<i&&(b=i),this.setSpinbuttonValue(e,b),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===wo.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`
7079
7101
  <mdc-option
7080
7102
  label="${i.label}"
7081
7103
  ?selected="${i.value===e}"
7082
7104
  aria-selected="${i.value===e?"true":"false"}"
7083
7105
  @click="${()=>this.handleOptionClick(i.value)}"
7084
7106
  ></mdc-option>
7085
- `)}render(){let t=this.timeFormat===ko.TWELVE_HOUR,e=t?He.MIN_HOUR_12:He.MIN_HOUR_24,i=t?He.MAX_HOUR_12:He.MAX_HOUR_24;return S`
7107
+ `)}render(){let t=this.timeFormat===wo.TWELVE_HOUR,e=t?He.MIN_HOUR_12:He.MIN_HOUR_24,i=t?He.MAX_HOUR_12:He.MAX_HOUR_24;return S`
7086
7108
  ${this.renderLabel()}
7087
7109
  <div part="container">
7088
7110
  <div
7089
- id="${Em}"
7111
+ id="${Tm}"
7090
7112
  part="base-container"
7091
7113
  class="mdc-focus-ring"
7092
7114
  @click="${this.handleBaseContainerClick}"
@@ -7150,7 +7172,7 @@
7150
7172
  part="icon-container"
7151
7173
  class="own-focus-ring"
7152
7174
  variant="tertiary"
7153
- prefix-icon="${this.displayPopover?ym.ARROW_UP:ym.ARROW_DOWN}"
7175
+ prefix-icon="${this.displayPopover?Em.ARROW_UP:Em.ARROW_DOWN}"
7154
7176
  aria-label="${this.localeShowTimePickerLabel}"
7155
7177
  aria-expanded="${this.displayPopover?"true":"false"}"
7156
7178
  aria-haspopup="true"
@@ -7173,7 +7195,7 @@
7173
7195
  />
7174
7196
  <mdc-popover
7175
7197
  trigger="${_e.MANUAL}"
7176
- triggerid="${Em}"
7198
+ triggerid="${Tm}"
7177
7199
  interactive
7178
7200
  ?visible="${this.displayPopover}"
7179
7201
  role=""
@@ -7195,7 +7217,7 @@
7195
7217
  exportparts="popover-content"
7196
7218
  >
7197
7219
  <mdc-selectlistbox
7198
- id="${Tm}"
7220
+ id="${xm}"
7199
7221
  part="listbox"
7200
7222
  aria-label="${this.localeTimeOptionsLabel}"
7201
7223
  @keydown="${this.handleListboxKeydown}"
@@ -7205,7 +7227,7 @@
7205
7227
  </mdc-popover>
7206
7228
  </div>
7207
7229
  ${this.helpText?this.renderHelperText():W}
7208
- `}};Dt.styles=[...Qt.styles,...$y],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,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([Kt('mdc-button[part="icon-container"]')],Dt.prototype,"dropdownButton",2),h([Kt("#hours-spinbutton")],Dt.prototype,"hoursInput",2),h([Kt("#minutes-spinbutton")],Dt.prototype,"minutesInput",2),h([Kt("#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 xm=Dt;xm.register(Fy);var JS=xm;var tI=[H`
7230
+ `}};Dt.styles=[...Qt.styles,...Vy],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,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([Kt('mdc-button[part="icon-container"]')],Dt.prototype,"dropdownButton",2),h([Kt("#hours-spinbutton")],Dt.prototype,"hoursInput",2),h([Kt("#minutes-spinbutton")],Dt.prototype,"minutesInput",2),h([Kt("#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 Am=Dt;Am.register($y);var tI=Am;var eI=[H`
7209
7231
  :host {
7210
7232
  display: block;
7211
7233
  position: relative;
@@ -7219,18 +7241,18 @@
7219
7241
  :host::part(typewriter-hidden) {
7220
7242
  display: none;
7221
7243
  }
7222
- `],Vy=tI;var zy=B.constructTagName("typewriter"),xs={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},fi={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 qr=class extends X{constructor(){super(...arguments);this.type=fi.TYPE;this.tagname=fi.TEXT_ELEMENT_TAGNAME;this.speed=fi.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(fi.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(fi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return xs.SLOW;case"fast":return xs.FAST;case"very-slow":return xs.VERY_SLOW;case"very-fast":return xs.VERY_FAST;case"normal":return xs.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?xs.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(l=>l.nodeType===Node.TEXT_NODE||l.nodeType===Node.ELEMENT_NODE).map(l=>l.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],l=this.displayedText+i;l!==this.displayedText&&(this.displayedText=l,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(fi.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`
7223
- <div part="${fi.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
7244
+ `],zy=eI;var By=B.constructTagName("typewriter"),xs={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},vi={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 qr=class extends X{constructor(){super(...arguments);this.type=vi.TYPE;this.tagname=vi.TEXT_ELEMENT_TAGNAME;this.speed=vi.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(vi.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(vi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return xs.SLOW;case"fast":return xs.FAST;case"very-slow":return xs.VERY_SLOW;case"very-fast":return xs.VERY_FAST;case"normal":return xs.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?xs.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(l=>l.nodeType===Node.TEXT_NODE||l.nodeType===Node.ELEMENT_NODE).map(l=>l.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],l=this.displayedText+i;l!==this.displayedText&&(this.displayedText=l,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(vi.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`
7245
+ <div part="${vi.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
7224
7246
  <mdc-text
7225
- part="${fi.CSS_PART_TEXT}"
7247
+ part="${vi.CSS_PART_TEXT}"
7226
7248
  type="${this.type}"
7227
7249
  tagname="${J(this.tagname)}"
7228
7250
  aria-label="${this.originalText}"
7229
7251
  >${this.displayedText}</mdc-text
7230
7252
  >
7231
- <slot @slotchange=${this.handleSlotChange} part="${fi.CSS_PART_HIDDEN}"></slot>
7253
+ <slot @slotchange=${this.handleSlotChange} part="${vi.CSS_PART_HIDDEN}"></slot>
7232
7254
  </div>
7233
- `}};qr.styles=[...X.styles,...Vy],h([u({attribute:"type",reflect:!0,type:String})],qr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],qr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],qr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],qr.prototype,"maxQueueSize",2),h([dt()],qr.prototype,"displayedText",2),h([dt()],qr.prototype,"originalText",2),h([dt()],qr.prototype,"typingComplete",2);var Am=qr;Am.register(zy);var eI=Am;var Ec=B.constructTagName("themeprovider"),Sm={THEMECLASS:"mds-theme-stable-darkWebex"};var Tc=class{constructor(o){this.themeclass=o}};Tc.context=Ec;var xc=Tc;var rI=H`
7255
+ `}};qr.styles=[...X.styles,...zy],h([u({attribute:"type",reflect:!0,type:String})],qr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],qr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],qr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],qr.prototype,"maxQueueSize",2),h([dt()],qr.prototype,"displayedText",2),h([dt()],qr.prototype,"originalText",2),h([dt()],qr.prototype,"typingComplete",2);var Sm=qr;Sm.register(By);var rI=Sm;var Tc=B.constructTagName("themeprovider"),Im={THEMECLASS:"mds-theme-stable-darkWebex"};var xc=class{constructor(o){this.themeclass=o}};xc.context=Tc;var Ac=xc;var iI=H`
7234
7256
  :host {
7235
7257
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
7236
7258
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -7250,7 +7272,7 @@
7250
7272
  * {
7251
7273
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
7252
7274
  }
7253
- `,By=[rI];var Ea=class extends Se{constructor(){super({context:xc.context,initialValue:new xc(Sm.THEMECLASS)});this.themeclass=Sm.THEMECLASS}static get Context(){return xc.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(" "))}};Ea.styles=[...Se.styles,...By],h([dt()],Ea.prototype,"currentThemeClass",2),h([u({type:String})],Ea.prototype,"themeclass",2);var Im=Ea;Im.register(Ec);var iI=Im;var Hy=B.constructTagName("toast"),jn={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ac={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},pr={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:Ir[20],BUTTON:Ii,PRIMARY_BUTTON:Vt.PRIMARY,SECONDARY_BUTTON:Vt.SECONDARY,TERTIARY_BUTTON:Vt.TERTIARY,VARIANT:jn.CUSTOM};var Uy=a=>{switch(a){case jn.SUCCESS:return Ac.SUCCESS_ICON_NAME;case jn.WARNING:return Ac.WARNING_ICON_NAME;case jn.ERROR:return Ac.ERROR_ICON_NAME;default:return null}};var oI=H`
7275
+ `,Hy=[iI];var Ea=class extends Se{constructor(){super({context:Ac.context,initialValue:new Ac(Im.THEMECLASS)});this.themeclass=Im.THEMECLASS}static get Context(){return Ac.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(" "))}};Ea.styles=[...Se.styles,...Hy],h([dt()],Ea.prototype,"currentThemeClass",2),h([u({type:String})],Ea.prototype,"themeclass",2);var Cm=Ea;Cm.register(Tc);var oI=Cm;var Uy=B.constructTagName("toast"),jn={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Sc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},pr={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:Ir[20],BUTTON:Ci,PRIMARY_BUTTON:Vt.PRIMARY,SECONDARY_BUTTON:Vt.SECONDARY,TERTIARY_BUTTON:Vt.TERTIARY,VARIANT:jn.CUSTOM};var Gy=a=>{switch(a){case jn.SUCCESS:return Sc.SUCCESS_ICON_NAME;case jn.WARNING:return Sc.WARNING_ICON_NAME;case jn.ERROR:return Sc.ERROR_ICON_NAME;default:return null}};var sI=H`
7254
7276
  :host {
7255
7277
  --mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
7256
7278
  --mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
@@ -7335,7 +7357,7 @@
7335
7357
  mdc-text::part(text) {
7336
7358
  margin: 0;
7337
7359
  }
7338
- `,Gy=[oI];var Ze=class extends Us(X){constructor(){super(...arguments);this.variant=pr.VARIANT;this.headerTagName=pr.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,e;this.hasDetailedSlot=(e=(t=this.detailedElements)==null?void 0:t.some(i=>{var l;return(l=i.textContent)==null?void 0:l.trim()}))!=null?e:!1}updateFooterButtonsPresence(){var t,e,i,l;this.hasFooterButtons=((e=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?e:0)>0||((l=(i=this.footerButtonSecondary)==null?void 0:i.length)!=null?l:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?S`
7360
+ `,Ky=[sI];var Ze=class extends Us(X){constructor(){super(...arguments);this.variant=pr.VARIANT;this.headerTagName=pr.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,e;this.hasDetailedSlot=(e=(t=this.detailedElements)==null?void 0:t.some(i=>{var l;return(l=i.textContent)==null?void 0:l.trim()}))!=null?e:!1}updateFooterButtonsPresence(){var t,e,i,l;this.hasFooterButtons=((e=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?e:0)>0||((l=(i=this.footerButtonSecondary)==null?void 0:i.length)!=null?l:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?S`
7339
7361
  <mdc-icon name="${t}" size="${pr.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
7340
7362
  `:W}shouldRenderToggleButton(){return this.hasDetailedSlot&&this.showMoreText&&this.showLessText}renderToggleDetailButton(){return this.shouldRenderToggleButton()?S`
7341
7363
  <mdc-button
@@ -7364,7 +7386,7 @@
7364
7386
  </div>
7365
7387
  </slot>`}render(){var t;return S`
7366
7388
  <div part="content-container">
7367
- ${this.variant===pr.VARIANT?S`<slot name="content-prefix"></slot>`:S`${this.renderIcon((t=Uy(this.variant))!=null?t:"")}`}
7389
+ ${this.variant===pr.VARIANT?S`<slot name="content-prefix"></slot>`:S`${this.renderIcon((t=Gy(this.variant))!=null?t:"")}`}
7368
7390
  <div part="toast-content">
7369
7391
  ${this.renderHeader()}
7370
7392
  <slot name="toast-body-normal"></slot>
@@ -7382,7 +7404,7 @@
7382
7404
  ></mdc-button>
7383
7405
  </div>
7384
7406
  ${this.renderFooter()}
7385
- `}};Ze.styles=[...X.styles,...Gy],h([u({type:String,reflect:!0})],Ze.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Ze.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Ze.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Ze.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Ze.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Ze.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Ze.prototype,"showLessText",2),h([dt()],Ze.prototype,"isDetailVisible",2),h([dt()],Ze.prototype,"hasDetailedSlot",2),h([qt({slot:"toast-body-detailed",flatten:!0})],Ze.prototype,"detailedElements",2),h([dt()],Ze.prototype,"hasFooterButtons",2);var Cm=Ze;Cm.register(Hy);var sI=Cm;var aI=[yt,H`
7407
+ `}};Ze.styles=[...X.styles,...Ky],h([u({type:String,reflect:!0})],Ze.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Ze.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Ze.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Ze.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Ze.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Ze.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Ze.prototype,"showLessText",2),h([dt()],Ze.prototype,"isDetailVisible",2),h([dt()],Ze.prototype,"hasDetailedSlot",2),h([qt({slot:"toast-body-detailed",flatten:!0})],Ze.prototype,"detailedElements",2),h([dt()],Ze.prototype,"hasFooterButtons",2);var _m=Ze;_m.register(Uy);var aI=_m;var nI=[yt,H`
7386
7408
  :host {
7387
7409
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
7388
7410
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -7460,7 +7482,7 @@
7460
7482
  :host([soft-disabled]) {
7461
7483
  pointer-events: none;
7462
7484
  }
7463
- `,...Et(!0)],Ky=aI;var As=class extends Nt(pi($e(pe(ie(dr))))){constructor(){super(...arguments);this.checked=!1;this.size=Rp.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}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===Y.SPACE&&t.preventDefault(),e===Y.ENTER&&this.getKeyboardNavMode()===ee.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(Vn).includes(t)?t:Rp.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
7485
+ `,...Et(!0)],Wy=nI;var As=class extends Nt(mi($e(pe(ie(dr))))){constructor(){super(...arguments);this.checked=!1;this.size=Dp.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}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===Y.SPACE&&t.preventDefault(),e===Y.ENTER&&this.getKeyboardNavMode()===ee.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(Vn).includes(t)?t:Dp.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
7464
7486
  <mdc-statictoggle
7465
7487
  ?checked="${this.checked}"
7466
7488
  ?disabled="${this.disabled}"
@@ -7490,10 +7512,10 @@
7490
7512
  />
7491
7513
  </mdc-statictoggle>
7492
7514
  ${this.renderLabelAndHelperText()}
7493
- `}};As.styles=[...dr.styles,...Ky],As.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],As.prototype,"checked",2),h([u({type:String,reflect:!0})],As.prototype,"size",2);var _m=As;_m.register($b);var nI=_m;function Ss(a,o,t){var c;let e=(c=t.initialDeps)!=null?c:[],i;function l(){var f,b,A,F;let V;t.key&&((f=t.debug)!=null&&f.call(t))&&(V=Date.now());let Q=a();if(!(Q.length!==e.length||Q.some((nt,at)=>e[at]!==nt)))return i;e=Q;let tt;if(t.key&&((b=t.debug)!=null&&b.call(t))&&(tt=Date.now()),i=o(...Q),t.key&&((A=t.debug)!=null&&A.call(t))){let nt=Math.round((Date.now()-V)*100)/100,at=Math.round((Date.now()-tt)*100)/100,ht=at/16,It=(Ct,Ht)=>{for(Ct=String(Ct);Ct.length<Ht;)Ct=" "+Ct;return Ct};console.info(`%c\u23F1 ${It(at,5)} /${It(nt,5)} ms`,`
7515
+ `}};As.styles=[...dr.styles,...Wy],As.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],As.prototype,"checked",2),h([u({type:String,reflect:!0})],As.prototype,"size",2);var km=As;km.register(Vb);var lI=km;function Ss(a,o,t){var c;let e=(c=t.initialDeps)!=null?c:[],i;function l(){var f,b,A,F;let V;t.key&&((f=t.debug)!=null&&f.call(t))&&(V=Date.now());let Q=a();if(!(Q.length!==e.length||Q.some((nt,at)=>e[at]!==nt)))return i;e=Q;let tt;if(t.key&&((b=t.debug)!=null&&b.call(t))&&(tt=Date.now()),i=o(...Q),t.key&&((A=t.debug)!=null&&A.call(t))){let nt=Math.round((Date.now()-V)*100)/100,at=Math.round((Date.now()-tt)*100)/100,ht=at/16,It=(Ct,Ht)=>{for(Ct=String(Ct);Ct.length<Ht;)Ct=" "+Ct;return Ct};console.info(`%c\u23F1 ${It(at,5)} /${It(nt,5)} ms`,`
7494
7516
  font-size: .6rem;
7495
7517
  font-weight: bold;
7496
- color: hsl(${Math.max(0,Math.min(120-120*ht,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,i),i}return l.updateDeps=f=>{e=f},l}function km(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var Wy=(a,o)=>Math.abs(a-o)<1.01,Yy=(a,o,t)=>{let e;return function(...i){a.clearTimeout(e),e=a.setTimeout(()=>o.apply(this,i),t)}};var jy=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},lI=a=>a,wm=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),e=[];for(let i=o;i<=t;i++)e.push(i);return e},Zy=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=c=>{let{width:f,height:b}=c;o({width:Math.round(f),height:Math.round(b)})};if(i(jy(t)),!e.ResizeObserver)return()=>{};let l=new e.ResizeObserver(c=>{let f=()=>{let b=c[0];if(b!=null&&b.borderBoxSize){let A=b.borderBoxSize[0];if(A){i({width:A.inlineSize,height:A.blockSize});return}}i(jy(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},qy={passive:!0};var Xy=typeof window>"u"?!0:"onscrollend"in window,Qy=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=0,l=a.options.useScrollendEvent&&Xy?()=>{}:Yy(e,()=>{o(i,!1)},a.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:V,isRtl:Q}=a.options;i=V?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),o(i,F)},f=c(!0),b=c(!1);b(),t.addEventListener("scroll",f,qy);let A=a.options.useScrollendEvent&&Xy;return A&&t.addEventListener("scrollend",b,qy),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",b)}};var dI=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let e=o.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Jy=(a,{adjustments:o=0,behavior:t},e)=>{var i,l;let c=a+o;(l=(i=e.scrollElement)==null?void 0:i.scrollTo)==null||l.call(i,{[e.options.horizontal?"left":"top"]:c,behavior:t})},Sc=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(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var i;(i=e())==null||i.disconnect(),t=null},observe:i=>{var l;return(l=e())==null?void 0:l.observe(i,{box:"border-box"})},unobserve:i=>{var l;return(l=e())==null?void 0:l.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:lI,rangeExtractor:wm,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=Ss(()=>(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(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,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,l=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(i.has(f.lane))continue;let b=l.get(f.lane);if(b==null||f.end>b.end?l.set(f.lane,f):f.end<b.end&&i.set(f.lane,!0),i.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=Ss(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,i,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:i,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=Ss(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:i,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let b=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,b);for(let F=b;F<t;F++){let V=l(F),Q=this.options.lanes===1?A[F-1]:this.getFurthestMeasurement(A,F),Z=Q?Q.end+this.options.gap:e+i,tt=f.get(V),nt=typeof tt=="number"?tt:this.options.estimateSize(F),at=Z+nt,ht=Q?Q.lane:F%this.options.lanes;A[F]={index:F,start:Z,size:nt,end:at,key:V,lane:ht}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ss(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,i,l)=>this.range=t.length>0&&e>0?cI({measurements:t,outerSize:e,scrollOffset:i,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ss(()=>{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,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,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),l=this.measurementsCache[i];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,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 l=(f=this.itemSizeCache.get(i.key))!=null?f:i.size,c=e-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,c,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,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=Ss(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let i=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],b=e[f];i.push(b)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return km(e[tE(0,e.length-1,i=>km(e[i]).start,t)])},this.getOffsetForAlignment=(t,e,i=0)=>{let l=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+l?"end":"start"),e==="center"?t+=(i-l)/2:e==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;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 l=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(i.end>=c+l-this.options.scrollPaddingEnd)e="end";else if(i.start<=c+this.options.scrollPaddingStart)e="start";else return[c,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 l=0,c=10,f=A=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,A);if(!F){console.warn("Failed to get offset for index:",t);return}let[V,Q]=F;this._scrollToOffset(V,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{let Z=this.getScrollOffset(),tt=this.getOffsetForIndex(t,Q);if(!tt){console.warn("Failed to get offset for index:",t);return}Wy(tt[0],Z)||b(Q)})},b=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} 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 l;var t;let e=this.getMeasurements(),i;if(e.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=(l=(t=e[e.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(b=>b===null);){let b=e[f];c[b.lane]===null&&(c[b.lane]=b.end),f--}i=Math.max(...c.filter(b=>b!==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)}},tE=(a,o,t,e)=>{for(;a<=o;){let i=(a+o)/2|0,l=t(i);if(l<e)a=i+1;else if(l>e)o=i-1;else return i}return a>0?a-1:0};function cI({measurements:a,outerSize:o,scrollOffset:t,lanes:e}){let i=a.length-1,l=b=>a[b].start;if(a.length<=e)return{startIndex:0,endIndex:i};let c=tE(0,i,l,t),f=c;if(e===1)for(;f<i&&a[f].end<t+o;)f++;else if(e>1){let b=Array(e).fill(0);for(;f<i&&b.some(F=>F<t+o);){let F=a[f];b[F.lane]=F.end,f++}let A=Array(e).fill(t+o);for(;c>=0&&A.some(F=>F>=t);){let F=a[c];A[F.lane]=F.start,c--}c=Math.max(0,c-c%e),f=Math.min(i,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var Nm=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let e={...t,onChange:(i,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,i,l)}};this.virtualizer=new Sc(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Ic=class extends Nm{constructor(o,t){super(o,{observeElementRect:Zy,observeElementOffset:Qy,scrollToFn:Jy,...t})}};var hI={includeEnd:!1},Cc=class{constructor(o,t,e={}){let i={...hI,...e};this.start=o,this.end=t,this.includeEnd=i.includeEnd}includes(o){let{start:t,end:e,includeEnd:i}=this,l=Math.min(t,e),c=Math.max(t,e);return i?o>=l&&o<=c:o>=l&&o<c}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,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(e?f>i:f>=i)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var _c=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,l)=>o.call(t,e,this.getIndex(e),l))}forEach(o,t){this.items.forEach((e,i,l)=>{o.call(t,e,this.getIndex(e),l)})}findIndex(o,t){let e=this.items.find((i,l,c)=>o.call(t,i,this.getIndex(i),c));return e?this.getIndex(e):-1}find(o,t){return this.items.find((e,i,l)=>o.call(t,e,this.getIndex(e),l))}};var pI=[H`
7518
+ color: hsl(${Math.max(0,Math.min(120-120*ht,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,i),i}return l.updateDeps=f=>{e=f},l}function wm(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var Yy=(a,o)=>Math.abs(a-o)<1.01,jy=(a,o,t)=>{let e;return function(...i){a.clearTimeout(e),e=a.setTimeout(()=>o.apply(this,i),t)}};var qy=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},dI=a=>a,Nm=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),e=[];for(let i=o;i<=t;i++)e.push(i);return e},Qy=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=c=>{let{width:f,height:b}=c;o({width:Math.round(f),height:Math.round(b)})};if(i(qy(t)),!e.ResizeObserver)return()=>{};let l=new e.ResizeObserver(c=>{let f=()=>{let b=c[0];if(b!=null&&b.borderBoxSize){let A=b.borderBoxSize[0];if(A){i({width:A.inlineSize,height:A.blockSize});return}}i(qy(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},Xy={passive:!0};var Zy=typeof window>"u"?!0:"onscrollend"in window,Jy=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=0,l=a.options.useScrollendEvent&&Zy?()=>{}:jy(e,()=>{o(i,!1)},a.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:V,isRtl:Q}=a.options;i=V?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),o(i,F)},f=c(!0),b=c(!1);b(),t.addEventListener("scroll",f,Xy);let A=a.options.useScrollendEvent&&Zy;return A&&t.addEventListener("scrollend",b,Xy),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",b)}};var cI=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let e=o.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var tE=(a,{adjustments:o=0,behavior:t},e)=>{var i,l;let c=a+o;(l=(i=e.scrollElement)==null?void 0:i.scrollTo)==null||l.call(i,{[e.options.horizontal?"left":"top"]:c,behavior:t})},Ic=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(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var i;(i=e())==null||i.disconnect(),t=null},observe:i=>{var l;return(l=e())==null?void 0:l.observe(i,{box:"border-box"})},unobserve:i=>{var l;return(l=e())==null?void 0:l.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:dI,rangeExtractor:Nm,onChange:()=>{},measureElement:cI,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=Ss(()=>(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(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,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,l=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(i.has(f.lane))continue;let b=l.get(f.lane);if(b==null||f.end>b.end?l.set(f.lane,f):f.end<b.end&&i.set(f.lane,!0),i.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=Ss(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,i,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:i,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=Ss(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:i,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let b=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,b);for(let F=b;F<t;F++){let V=l(F),Q=this.options.lanes===1?A[F-1]:this.getFurthestMeasurement(A,F),Z=Q?Q.end+this.options.gap:e+i,tt=f.get(V),nt=typeof tt=="number"?tt:this.options.estimateSize(F),at=Z+nt,ht=Q?Q.lane:F%this.options.lanes;A[F]={index:F,start:Z,size:nt,end:at,key:V,lane:ht}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ss(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,i,l)=>this.range=t.length>0&&e>0?hI({measurements:t,outerSize:e,scrollOffset:i,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ss(()=>{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,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,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),l=this.measurementsCache[i];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,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 l=(f=this.itemSizeCache.get(i.key))!=null?f:i.size,c=e-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,c,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,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=Ss(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let i=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],b=e[f];i.push(b)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return wm(e[eE(0,e.length-1,i=>wm(e[i]).start,t)])},this.getOffsetForAlignment=(t,e,i=0)=>{let l=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+l?"end":"start"),e==="center"?t+=(i-l)/2:e==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;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 l=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(i.end>=c+l-this.options.scrollPaddingEnd)e="end";else if(i.start<=c+this.options.scrollPaddingStart)e="start";else return[c,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 l=0,c=10,f=A=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,A);if(!F){console.warn("Failed to get offset for index:",t);return}let[V,Q]=F;this._scrollToOffset(V,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{let Z=this.getScrollOffset(),tt=this.getOffsetForIndex(t,Q);if(!tt){console.warn("Failed to get offset for index:",t);return}Yy(tt[0],Z)||b(Q)})},b=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} 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 l;var t;let e=this.getMeasurements(),i;if(e.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=(l=(t=e[e.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(b=>b===null);){let b=e[f];c[b.lane]===null&&(c[b.lane]=b.end),f--}i=Math.max(...c.filter(b=>b!==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)}},eE=(a,o,t,e)=>{for(;a<=o;){let i=(a+o)/2|0,l=t(i);if(l<e)a=i+1;else if(l>e)o=i-1;else return i}return a>0?a-1:0};function hI({measurements:a,outerSize:o,scrollOffset:t,lanes:e}){let i=a.length-1,l=b=>a[b].start;if(a.length<=e)return{startIndex:0,endIndex:i};let c=eE(0,i,l,t),f=c;if(e===1)for(;f<i&&a[f].end<t+o;)f++;else if(e>1){let b=Array(e).fill(0);for(;f<i&&b.some(F=>F<t+o);){let F=a[f];b[F.lane]=F.end,f++}let A=Array(e).fill(t+o);for(;c>=0&&A.some(F=>F>=t);){let F=a[c];A[F.lane]=F.start,c--}c=Math.max(0,c-c%e),f=Math.min(i,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var Lm=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let e={...t,onChange:(i,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,i,l)}};this.virtualizer=new Ic(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Cc=class extends Lm{constructor(o,t){super(o,{observeElementRect:Qy,observeElementOffset:Jy,scrollToFn:tE,...t})}};var pI={includeEnd:!1},_c=class{constructor(o,t,e={}){let i={...pI,...e};this.start=o,this.end=t,this.includeEnd=i.includeEnd}includes(o){let{start:t,end:e,includeEnd:i}=this,l=Math.min(t,e),c=Math.max(t,e);return i?o>=l&&o<=c:o>=l&&o<c}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,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(e?f>i:f>=i)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var kc=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,l)=>o.call(t,e,this.getIndex(e),l))}forEach(o,t){this.items.forEach((e,i,l)=>{o.call(t,e,this.getIndex(e),l)})}findIndex(o,t){let e=this.items.find((i,l,c)=>o.call(t,i,this.getIndex(i),c));return e?this.getIndex(e):-1}find(o,t){return this.items.find((e,i,l)=>o.call(t,e,this.getIndex(e),l))}};var mI=[H`
7497
7519
  :host {
7498
7520
  height: 100%;
7499
7521
  }
@@ -7523,7 +7545,7 @@
7523
7545
  ::slotted(mdc-listitem) {
7524
7546
  position: relative;
7525
7547
  }
7526
- `],eE=pI;var rE=B.constructTagName("virtualizedlist"),Krt=B.constructTagName("virtualizedwrapper"),Ta={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var mr=class extends ie(Vi){constructor(){super();this.virtualizerProps=Ta.VIRTUALIZER_PROPS;this.loop=Ta.LOOP;this.scrollAnchoring=Ta.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Ta.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(l=>l===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Ln.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Jt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:Ta.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,l;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(l=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?l:"data-index";this.virtualizedNavItems=new _c(super.navItems,f=>Number(f.getAttribute(c)),()=>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 Ic(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!==Ln.VERTICAL&&(this.orientation=Ln.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,l;this.observeSizeChanges&&((l=(i=this.virtualizer)==null?void 0:i.measureElement)==null||l.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 l,c;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-((l=t==null?void 0:t.count)!=null?l:0)),b=this.selectedIndex,A=this.firstKey,F=new Cc(b-f,b+f,{includeEnd:!0}),V=(c=Array.from(F).find(Z=>e.options.getItemKey(Z)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(V),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&b!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let Z=e.measurementsCache[this.selectedIndex].end-i[b].end;this.scrollRef.scrollTop+=Z}}}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,l,c,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(l=this.virtualizer)==null?void 0:l.getVirtualItems)==null?void 0:c.call(l))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var b,A,F,V;let{navItems:e,virtualizerProps:i,virtualizer:l}=this,c=(A=(b=i.rangeExtractor)==null?void 0:b.call(i,t))!=null?A:wm(t);return this.hiddenIndexes.forEach(Q=>{let Z=e.at(Q);Z&&(Z.removeAttribute("data-virtualized-hidden"),Z.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(V=(F=this.virtualizer)==null?void 0:F.options.getItemKey(this.firstIndex))!=null?V:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var Z;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((Z=l==null?void 0:l.options.count)!=null?Z:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,Z)=>Q-Z),c}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:l}=this;if(!l||i.count===0)return;let{measurementsCache:c}=l;this.hiddenIndexes.forEach(f=>{let b=e.at(f);if(b){let A=Math.max(t.startIndex-t.overscan,0),F=c[A],V=c[f];b.setAttribute("data-virtualized-hidden","true"),b.style.setProperty("--mdc-virtualizedlist-hidden-top",`${V.start-F.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 l=this.isElementSelected(t);if(t.tabIndex=l?0:-1,!l&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let c=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);c!==void 0&&this.setSelectedIndex(c)}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,l,c,f;switch(this.getActionForKeyEvent(t)){case Y.HOME:{(l=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||l.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Y.END:{let b=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,b,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(b));break}case Y.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 l=t;l>=0&&l<i;l+=e)if(this.isItemNavigable(l))return l;return null}resetTabIndexAndSetFocus(t,e,i=!0,l=i){if(this.navItems.find(b=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(b))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let b=t>=e?1:-1,A=this.findNextNavigableIndex(t+b,b);return A!==null?this.resetTabIndexAndSetFocus(A,e,i,l):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,l),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,l);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,l;(l=(i=this.virtualizer).scrollToIndex)==null||l.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var l;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),e=(l=t==null?void 0:t.start)!=null?l: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`
7548
+ `],rE=mI;var iE=B.constructTagName("virtualizedlist"),Yrt=B.constructTagName("virtualizedwrapper"),Ta={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var mr=class extends ie(zi){constructor(){super();this.virtualizerProps=Ta.VIRTUALIZER_PROPS;this.loop=Ta.LOOP;this.scrollAnchoring=Ta.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Ta.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(l=>l===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Ln.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Jt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:Ta.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,l;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(l=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?l:"data-index";this.virtualizedNavItems=new kc(super.navItems,f=>Number(f.getAttribute(c)),()=>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 Cc(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!==Ln.VERTICAL&&(this.orientation=Ln.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,l;this.observeSizeChanges&&((l=(i=this.virtualizer)==null?void 0:i.measureElement)==null||l.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 l,c;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-((l=t==null?void 0:t.count)!=null?l:0)),b=this.selectedIndex,A=this.firstKey,F=new _c(b-f,b+f,{includeEnd:!0}),V=(c=Array.from(F).find(Z=>e.options.getItemKey(Z)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(V),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&b!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let Z=e.measurementsCache[this.selectedIndex].end-i[b].end;this.scrollRef.scrollTop+=Z}}}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,l,c,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(l=this.virtualizer)==null?void 0:l.getVirtualItems)==null?void 0:c.call(l))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var b,A,F,V;let{navItems:e,virtualizerProps:i,virtualizer:l}=this,c=(A=(b=i.rangeExtractor)==null?void 0:b.call(i,t))!=null?A:Nm(t);return this.hiddenIndexes.forEach(Q=>{let Z=e.at(Q);Z&&(Z.removeAttribute("data-virtualized-hidden"),Z.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(V=(F=this.virtualizer)==null?void 0:F.options.getItemKey(this.firstIndex))!=null?V:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var Z;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((Z=l==null?void 0:l.options.count)!=null?Z:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,Z)=>Q-Z),c}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:l}=this;if(!l||i.count===0)return;let{measurementsCache:c}=l;this.hiddenIndexes.forEach(f=>{let b=e.at(f);if(b){let A=Math.max(t.startIndex-t.overscan,0),F=c[A],V=c[f];b.setAttribute("data-virtualized-hidden","true"),b.style.setProperty("--mdc-virtualizedlist-hidden-top",`${V.start-F.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 l=this.isElementSelected(t);if(t.tabIndex=l?0:-1,!l&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let c=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);c!==void 0&&this.setSelectedIndex(c)}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,l,c,f;switch(this.getActionForKeyEvent(t)){case Y.HOME:{(l=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||l.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Y.END:{let b=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,b,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(b));break}case Y.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 l=t;l>=0&&l<i;l+=e)if(this.isItemNavigable(l))return l;return null}resetTabIndexAndSetFocus(t,e,i=!0,l=i){if(this.navItems.find(b=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(b))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let b=t>=e?1:-1,A=this.findNextNavigableIndex(t+b,b);return A!==null?this.resetTabIndexAndSetFocus(A,e,i,l):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,l),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,l);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,l;(l=(i=this.virtualizer).scrollToIndex)==null||l.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var l;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),e=(l=t==null?void 0:t.start)!=null?l: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`
7527
7549
  <slot name="list-header"></slot>
7528
7550
  <div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
7529
7551
  <div part="wrapper">
@@ -7532,7 +7554,7 @@
7532
7554
  </div>
7533
7555
  </div>
7534
7556
  </div>
7535
- `}};mr.styles=[...Vi.styles,...eE],h([u({type:Object})],mr.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],mr.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],mr.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],mr.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],mr.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],mr.prototype,"atBottomThreshold",2),h([Kt('[part="scroll"]',!0)],mr.prototype,"scrollRef",2),h([Kt('[part="wrapper"]',!0)],mr.prototype,"wrapperRef",2),h([Kt('[part="container"]',!0)],mr.prototype,"containerRef",2),h([rf({passive:!0})],mr.prototype,"onScrollHandler",1);var Lm=mr;Lm.register(rE);var mI=Lm;fe.register(af);var uI=fe;var iE=B.constructTagName("combobox"),Mm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Om={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},oE="list";var Rm="combobox-trigger-id";var wo=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 fI=H`
7557
+ `}};mr.styles=[...zi.styles,...rE],h([u({type:Object})],mr.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],mr.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],mr.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],mr.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],mr.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],mr.prototype,"atBottomThreshold",2),h([Kt('[part="scroll"]',!0)],mr.prototype,"scrollRef",2),h([Kt('[part="wrapper"]',!0)],mr.prototype,"wrapperRef",2),h([Kt('[part="container"]',!0)],mr.prototype,"containerRef",2),h([of({passive:!0})],mr.prototype,"onScrollHandler",1);var Mm=mr;Mm.register(iE);var uI=Mm;fe.register(nf);var fI=fe;var oE=B.constructTagName("combobox"),Om={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Rm={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},sE="list";var Dm="combobox-trigger-id";var No=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 vI=H`
7536
7558
  :host {
7537
7559
  --mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
7538
7560
  --mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
@@ -7641,7 +7663,7 @@
7641
7663
  --mdc-icon-fill-color: ButtonText;
7642
7664
  }
7643
7665
  }
7644
- `,sE=[fI];var we=class extends Mt(Nt(hi($e(pe(ie(pi(Qt))))))){constructor(){super();this.lastCommittedValue="";this.placement=Lt.BOTTOM_START;this.boundary=bt.BOUNDARY;this.strategy=bt.STRATEGY;this.popoverZIndex=void 0;this.filter=Om.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,l)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(c=>c.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let c=t;if(c&&(!this.isValidItem(c)||c.tabIndex!==0))return;let f=this.navItems.findIndex(A=>A===c);if(f===-1)return;let b=f+1;b>=this.navItems.length&&(b=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(Jt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Lr(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(Tr)}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===Om.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 l=(t==null?void 0:t.getAttribute("label"))||"",c=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===c&&this.filteredValue===l)){if(this.controlType==="controlled"&&!i){e&&(wo.onInputCombobox(this,t),wo.onChangeCombobox(this,t));return}this.filteredValue=l,this.value=c,this.lastCommittedValue=c,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&(wo.onInputCombobox(this,t),wo.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=Wt.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let l=null;if(i!==""){let c=this.getFirstSelectedOption(),f=this.navItems.find(b=>b.value===i);if(f)l=f;else if(c)l=c;else if(this.placeholder)l=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(l,!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,l;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||""),(l=this.visualCombobox)==null||l.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(l=>l.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(l=>(l.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let l=this.navItems.find(c=>c.value===this.lastCommittedValue);this.setSelectedValue(l)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=Wt.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var l;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(l=t[i])==null||l.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),i=e.findIndex(c=>c.hasAttribute("data-focused")),l=this.getKeyboardNavMode()===ee.SPATIAL;switch(this.getActionForKeyEvent(t)){case Y.DOWN:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case Y.UP:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case Y.ENTER:{if(l&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case Y.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 Y.TAB:{this.closePopover(),this.keyDownEventHandled();break}case Y.HOME:case Y.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let l=this.matchesFilter(i,this.filteredValue);l?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let c=i.parentElement;if(c&&c.matches(rc)){let b=c;e.add(b),l&&t.set(b,((f=t.get(b))!=null?f:0)+1)}}),e.forEach(i=>{var f;let l=((f=t.get(i))!=null?f:0)>0,c=i.nextElementSibling;l?(i.removeAttribute("data-hidden"),c&&c.matches(In)&&c.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),c&&c.matches(In)&&c.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(),wo.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var i;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(Tr))!=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`
7666
+ `,aE=[vI];var we=class extends Mt(Nt(pi($e(pe(ie(mi(Qt))))))){constructor(){super();this.lastCommittedValue="";this.placement=Lt.BOTTOM_START;this.boundary=bt.BOUNDARY;this.strategy=bt.STRATEGY;this.popoverZIndex=void 0;this.filter=Rm.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,l)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(c=>c.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let c=t;if(c&&(!this.isValidItem(c)||c.tabIndex!==0))return;let f=this.navItems.findIndex(A=>A===c);if(f===-1)return;let b=f+1;b>=this.navItems.length&&(b=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(Jt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Lr(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(Tr)}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===Rm.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 l=(t==null?void 0:t.getAttribute("label"))||"",c=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===c&&this.filteredValue===l)){if(this.controlType==="controlled"&&!i){e&&(No.onInputCombobox(this,t),No.onChangeCombobox(this,t));return}this.filteredValue=l,this.value=c,this.lastCommittedValue=c,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&(No.onInputCombobox(this,t),No.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=Wt.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let l=null;if(i!==""){let c=this.getFirstSelectedOption(),f=this.navItems.find(b=>b.value===i);if(f)l=f;else if(c)l=c;else if(this.placeholder)l=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(l,!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,l;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||""),(l=this.visualCombobox)==null||l.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(l=>l.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(l=>(l.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let l=this.navItems.find(c=>c.value===this.lastCommittedValue);this.setSelectedValue(l)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=Wt.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var l;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(l=t[i])==null||l.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),i=e.findIndex(c=>c.hasAttribute("data-focused")),l=this.getKeyboardNavMode()===ee.SPATIAL;switch(this.getActionForKeyEvent(t)){case Y.DOWN:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case Y.UP:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case Y.ENTER:{if(l&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case Y.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 Y.TAB:{this.closePopover(),this.keyDownEventHandled();break}case Y.HOME:case Y.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let l=this.matchesFilter(i,this.filteredValue);l?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let c=i.parentElement;if(c&&c.matches(ic)){let b=c;e.add(b),l&&t.set(b,((f=t.get(b))!=null?f:0)+1)}}),e.forEach(i=>{var f;let l=((f=t.get(i))!=null?f:0)>0,c=i.nextElementSibling;l?(i.removeAttribute("data-hidden"),c&&c.matches(In)&&c.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),c&&c.matches(In)&&c.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(),No.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var i;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(Tr))!=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`
7645
7667
  <input
7646
7668
  id="${this.inputId}"
7647
7669
  name="${this.name}"
@@ -7673,7 +7695,7 @@
7673
7695
  @input=${this.handleInputChange}
7674
7696
  @keydown=${this.handleInputKeydown}
7675
7697
  @blur="${this.handleBlurChange}"
7676
- aria-autocomplete="${oE}"
7698
+ aria-autocomplete="${sE}"
7677
7699
  aria-controls=""
7678
7700
  aria-describedby="${J(this.helpText?Xt.HELPER_TEXT_ID:"")}"
7679
7701
  aria-disabled="${this.disabled?"true":"false"}"
@@ -7687,7 +7709,7 @@
7687
7709
  />
7688
7710
  `}renderNoResultsText(t){return t===0&&this.noResultText?S`<mdc-listitem part="no-result-text" tabindex="-1" role="" label="${this.noResultText}"></mdc-listitem>`:W}render(){var e;let t=this.getVisibleOptions(this.filteredValue);return S`
7689
7711
  ${this.renderLabel()}
7690
- <div part="combobox-base" id="${Rm}">
7712
+ <div part="combobox-base" id="${Dm}">
7691
7713
  ${this.renderNativeInput()}
7692
7714
  <mdc-input
7693
7715
  @click="${this.handleTriggerClick}"
@@ -7707,7 +7729,7 @@
7707
7729
  >
7708
7730
  <mdc-icon
7709
7731
  part="combobox-button-icon"
7710
- name="${this.shouldDisplayPopover(t.length)?Mm.ARROW_UP:Mm.ARROW_DOWN}"
7732
+ name="${this.shouldDisplayPopover(t.length)?Om.ARROW_UP:Om.ARROW_DOWN}"
7711
7733
  size="1"
7712
7734
  length-unit="rem"
7713
7735
  ></mdc-icon>
@@ -7729,7 +7751,7 @@
7729
7751
  size
7730
7752
  strategy="${J(this.strategy)}"
7731
7753
  trigger="${_e.MANUAL}"
7732
- triggerid="${Rm}"
7754
+ triggerid="${Dm}"
7733
7755
  z-index="${J(this.popoverZIndex)}"
7734
7756
  >
7735
7757
  ${this.renderNoResultsText(t.length)}
@@ -7737,7 +7759,7 @@
7737
7759
  </mdc-popover>
7738
7760
  </div>
7739
7761
  ${this.renderHelperText()}
7740
- `}};we.styles=[...jr.styles,...Qt.styles,...sE],h([u({type:String})],we.prototype,"placeholder",2),h([u({type:String,reflect:!0})],we.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],we.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],we.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],we.prototype,"boundary",2),h([u({type:String,reflect:!0})],we.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],we.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],we.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],we.prototype,"backdropAppendTo",2),h([Kt(`[role="${et.COMBOBOX}"]`)],we.prototype,"visualCombobox",2),h([Kt('[part="combobox-button"]')],we.prototype,"dropDownButton",2),h([qt({selector:cc})],we.prototype,"slottedListboxes",2),h([dt()],we.prototype,"isOpen",2),h([dt()],we.prototype,"filteredValue",2);var Dm=we;Dm.register(iE);var vI=Dm;var aE=(a,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(a[i],i);return e},nE=wi(class extends si{constructor(a){if(super(a),a.type!==gr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],l=[],c=0;for(let f of a)i[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:i}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,e]){var nt;let i=Vf(a),{values:l,keys:c}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=c,l;let f=(nt=this.ut)!=null?nt:this.ut=[],b=[],A,F,V=0,Q=i.length-1,Z=0,tt=l.length-1;for(;V<=Q&&Z<=tt;)if(i[V]===null)V++;else if(i[Q]===null)Q--;else if(f[V]===c[Z])b[Z]=lo(i[V],l[Z]),V++,Z++;else if(f[Q]===c[tt])b[tt]=lo(i[Q],l[tt]),Q--,tt--;else if(f[V]===c[tt])b[tt]=lo(i[V],l[tt]),Hs(a,b[tt+1],i[V]),V++,tt--;else if(f[Q]===c[Z])b[Z]=lo(i[Q],l[Z]),Hs(a,i[V],i[Q]),Q--,Z++;else if(A===void 0&&(A=aE(c,Z,tt),F=aE(f,V,Q)),A.has(f[V]))if(A.has(f[Q])){let at=F.get(c[Z]),ht=at!==void 0?i[at]:null;if(ht===null){let It=Hs(a,i[V]);lo(It,l[Z]),b[Z]=It}else b[Z]=lo(ht,l[Z]),Hs(a,i[V],ht),i[at]=null;Z++}else Bl(i[Q]),Q--;else Bl(i[V]),V++;for(;Z<=tt;){let at=Hs(a,b[tt+1]);lo(at,l[Z]),b[Z++]=at}for(;V<=Q;){let at=i[V++];at!==null&&Bl(at)}return this.ut=c,zl(a,b),Fe}});var lE=B.constructTagName("slider"),gI={START:"start",END:"end",UNDEFINED:void 0},No={MIN:0,MAX:100,STEP:1,STATE:gI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var bI=H`
7762
+ `}};we.styles=[...jr.styles,...Qt.styles,...aE],h([u({type:String})],we.prototype,"placeholder",2),h([u({type:String,reflect:!0})],we.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],we.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],we.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],we.prototype,"boundary",2),h([u({type:String,reflect:!0})],we.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],we.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],we.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],we.prototype,"backdropAppendTo",2),h([Kt(`[role="${et.COMBOBOX}"]`)],we.prototype,"visualCombobox",2),h([Kt('[part="combobox-button"]')],we.prototype,"dropDownButton",2),h([qt({selector:hc})],we.prototype,"slottedListboxes",2),h([dt()],we.prototype,"isOpen",2),h([dt()],we.prototype,"filteredValue",2);var Pm=we;Pm.register(oE);var gI=Pm;var nE=(a,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(a[i],i);return e},lE=Ni(class extends ai{constructor(a){if(super(a),a.type!==gr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],l=[],c=0;for(let f of a)i[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:i}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,e]){var nt;let i=zf(a),{values:l,keys:c}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=c,l;let f=(nt=this.ut)!=null?nt:this.ut=[],b=[],A,F,V=0,Q=i.length-1,Z=0,tt=l.length-1;for(;V<=Q&&Z<=tt;)if(i[V]===null)V++;else if(i[Q]===null)Q--;else if(f[V]===c[Z])b[Z]=co(i[V],l[Z]),V++,Z++;else if(f[Q]===c[tt])b[tt]=co(i[Q],l[tt]),Q--,tt--;else if(f[V]===c[tt])b[tt]=co(i[V],l[tt]),Hs(a,b[tt+1],i[V]),V++,tt--;else if(f[Q]===c[Z])b[Z]=co(i[Q],l[Z]),Hs(a,i[V],i[Q]),Q--,Z++;else if(A===void 0&&(A=nE(c,Z,tt),F=nE(f,V,Q)),A.has(f[V]))if(A.has(f[Q])){let at=F.get(c[Z]),ht=at!==void 0?i[at]:null;if(ht===null){let It=Hs(a,i[V]);co(It,l[Z]),b[Z]=It}else b[Z]=co(ht,l[Z]),Hs(a,i[V],ht),i[at]=null;Z++}else Hl(i[Q]),Q--;else Hl(i[V]),V++;for(;Z<=tt;){let at=Hs(a,b[tt+1]);co(at,l[Z]),b[Z++]=at}for(;V<=Q;){let at=i[V++];at!==null&&Hl(at)}return this.ut=c,Bl(a,b),Fe}});var dE=B.constructTagName("slider"),bI={START:"start",END:"end",UNDEFINED:void 0},Lo={MIN:0,MAX:100,STEP:1,STATE:bI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var yI=H`
7741
7763
  :host {
7742
7764
  width: 100%;
7743
7765
  --mdc-slider-tooltip-left: 0;
@@ -7959,11 +7981,11 @@
7959
7981
  border: 1px solid;
7960
7982
  }
7961
7983
  }
7962
- `,dE=[Fr,bI];var Rt=class extends Mt(Nt(X)){constructor(){super();this.thumbFocused=No.STATE;this.thumbHovered=No.STATE;this.range=!1;this.min=No.MIN;this.max=No.MAX;this.step=No.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()===ee.SPATIAL){if(this.softDisabled)return;let l=(i=this.shadowRoot)==null?void 0:i.activeElement,c=(l==null?void 0:l.tagName)==="INPUT";if(t.preventDefault(),!c){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&e===Y.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((e===Y.ENTER||e===Y.ESCAPE||e===Y.UP||e===Y.DOWN)&&(this.spatialNavEditMode=!1,(e===Y.ENTER||e===Y.ESCAPE)&&this.keyDownEventHandled()),e===Y.LEFT&&(l==null||l.stepDown(),this.keyDownEventHandled(),this.handleInput(l)),e===Y.RIGHT&&(l==null||l.stepUp(),this.keyDownEventHandled(),this.handleInput(l)))}else this.softDisabled&&e!==Y.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),l=e[i];if(i===0){if(!this.valueEnd)return;let c=Number(l.value);c>this.valueEnd?(l.value=String(this.valueEnd),this.valueStart=this.valueEnd):c>=this.min&&c<this.valueEnd?this.valueStart=c:c<this.min&&(l.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let c=Number(l.value);c<this.valueStart?(l.value=String(this.valueStart),this.valueEnd=this.valueStart):c<=this.max&&c>this.valueStart?this.valueEnd=c:c>this.max&&(l.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,e){return typeof t=="string"&&t.length>0?S`<mdc-icon
7984
+ `,cE=[Fr,yI];var Rt=class extends Mt(Nt(X)){constructor(){super();this.thumbFocused=Lo.STATE;this.thumbHovered=Lo.STATE;this.range=!1;this.min=Lo.MIN;this.max=Lo.MAX;this.step=Lo.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()===ee.SPATIAL){if(this.softDisabled)return;let l=(i=this.shadowRoot)==null?void 0:i.activeElement,c=(l==null?void 0:l.tagName)==="INPUT";if(t.preventDefault(),!c){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&e===Y.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((e===Y.ENTER||e===Y.ESCAPE||e===Y.UP||e===Y.DOWN)&&(this.spatialNavEditMode=!1,(e===Y.ENTER||e===Y.ESCAPE)&&this.keyDownEventHandled()),e===Y.LEFT&&(l==null||l.stepDown(),this.keyDownEventHandled(),this.handleInput(l)),e===Y.RIGHT&&(l==null||l.stepUp(),this.keyDownEventHandled(),this.handleInput(l)))}else this.softDisabled&&e!==Y.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),l=e[i];if(i===0){if(!this.valueEnd)return;let c=Number(l.value);c>this.valueEnd?(l.value=String(this.valueEnd),this.valueStart=this.valueEnd):c>=this.min&&c<this.valueEnd?this.valueStart=c:c<this.min&&(l.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let c=Number(l.value);c<this.valueStart?(l.value=String(this.valueStart),this.valueEnd=this.valueStart):c<=this.max&&c>this.valueStart?this.valueEnd=c:c>this.max&&(l.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,e){return typeof t=="string"&&t.length>0?S`<mdc-icon
7963
7985
  name="${t}"
7964
7986
  part="${e}"
7965
- length-unit="${No.ICON_LENGTH_UNIT}"
7966
- size="${No.ICON_SIZE}"
7987
+ length-unit="${Lo.ICON_LENGTH_UNIT}"
7988
+ size="${Lo.ICON_SIZE}"
7967
7989
  ></mdc-icon>`:null}tooltipTemplate(t,e){let[i,l]=this.inputElements,c=e==="end"?l:i,f=Number(c==null?void 0:c.value);if(typeof f!="number"||Number.isNaN(f)||this.max===this.min||this.disabled||this.hideTooltip)return W;let b=(f-this.min)/(this.max-this.min);return S`<div part="slider-tooltip" aria-hidden="true" style="--mdc-slider-tooltip-left: ${b}">
7968
7990
  ${t||f}
7969
7991
  </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),l=Number(this.inputElements[1].value),c=Number(this.inputElements[0].max)||1,f=Math.max(0,Math.min(100,(i-this.min)/(c-this.min)*100)),b=Math.max(0,Math.min(100,(l-this.min)/(c-this.min)*100));this.inputElements[1].style.background=`linear-gradient(
@@ -7975,7 +7997,7 @@
7975
7997
  ${e} ${b}%,
7976
7998
  ${e} 100%
7977
7999
  )`}else{if(!this.inputElements[0])return;let i=Number(this.inputElements[0].value),l=Number(this.inputElements[0].max)||1,c=Math.max(0,Math.min(100,(i-this.min)/(l-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${c}%, ${e} ${c}%)`}}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 c=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);i.push(c)}if(this.range&&this.inputElements[1]){let c=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);i.push(c)}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">
7978
- ${nE(t,e=>e,e=>S`<span part="slider-tick" style=${this.getTickStyles(e)}></span>`)}
8000
+ ${lE(t,e=>e,e=>S`<span part="slider-tick" style=${this.getTickStyles(e)}></span>`)}
7979
8001
  </div>`:W}render(){var t,e,i,l,c,f,b,A,F,V,Q,Z,tt,nt,at,ht,It;return S`
7980
8002
  ${this.label?S`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
7981
8003
  <div part="slider-track">
@@ -8066,7 +8088,7 @@
8066
8088
  ${this.labelStart?S`<span part="slider-label-start">${this.labelStart}</span>`:null}
8067
8089
  ${this.labelEnd?S`<span part="slider-label-end">${this.labelEnd}</span>`:null}
8068
8090
  </div>
8069
- `}};Rt.styles=[...X.styles,...dE],h([dt()],Rt.prototype,"thumbFocused",2),h([dt()],Rt.prototype,"thumbHovered",2),h([u({reflect:!0,type:Boolean})],Rt.prototype,"range",2),h([u({reflect:!0,type:Number})],Rt.prototype,"min",2),h([u({reflect:!0,type:Number})],Rt.prototype,"max",2),h([u({reflect:!0,type:Boolean})],Rt.prototype,"disabled",2),h([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Rt.prototype,"softDisabled",2),h([u({reflect:!0,type:String,attribute:"leading-icon"})],Rt.prototype,"leadingIcon",2),h([u({reflect:!0,type:String,attribute:"trailing-icon"})],Rt.prototype,"trailingIcon",2),h([u({reflect:!0,type:Number})],Rt.prototype,"value",2),h([u({reflect:!0,type:Number,attribute:"value-start"})],Rt.prototype,"valueStart",2),h([u({reflect:!0,type:Number,attribute:"value-end"})],Rt.prototype,"valueEnd",2),h([u({reflect:!0,type:Number})],Rt.prototype,"step",2),h([u({reflect:!0,type:String})],Rt.prototype,"label",2),h([u({reflect:!0,type:String,attribute:"label-start"})],Rt.prototype,"labelStart",2),h([u({reflect:!0,type:String,attribute:"label-end"})],Rt.prototype,"labelEnd",2),h([u({reflect:!0,type:String,attribute:"value-label"})],Rt.prototype,"valueLabel",2),h([u({reflect:!0,type:String,attribute:"value-label-start"})],Rt.prototype,"valueLabelStart",2),h([u({reflect:!0,type:String,attribute:"value-label-end"})],Rt.prototype,"valueLabelEnd",2),h([u({reflect:!0,type:String})],Rt.prototype,"name",2),h([u({reflect:!0,type:String,attribute:"name-start"})],Rt.prototype,"nameStart",2),h([u({reflect:!0,type:String,attribute:"name-end"})],Rt.prototype,"nameEnd",2),h([u({reflect:!0,type:String,attribute:"data-aria-label"})],Rt.prototype,"dataAriaLabel",2),h([u({reflect:!0,type:String,attribute:"start-aria-label"})],Rt.prototype,"startAriaLabel",2),h([u({reflect:!0,type:String,attribute:"end-aria-label"})],Rt.prototype,"endAriaLabel",2),h([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Rt.prototype,"dataAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Rt.prototype,"startAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Rt.prototype,"endAriaValueText",2),h([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Rt.prototype,"hideTooltip",2),h([of('input[type="range"]')],Rt.prototype,"inputElements",2);var Pm=Rt;Pm.register(lE);var yI=Pm;var EI=H`
8091
+ `}};Rt.styles=[...X.styles,...cE],h([dt()],Rt.prototype,"thumbFocused",2),h([dt()],Rt.prototype,"thumbHovered",2),h([u({reflect:!0,type:Boolean})],Rt.prototype,"range",2),h([u({reflect:!0,type:Number})],Rt.prototype,"min",2),h([u({reflect:!0,type:Number})],Rt.prototype,"max",2),h([u({reflect:!0,type:Boolean})],Rt.prototype,"disabled",2),h([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Rt.prototype,"softDisabled",2),h([u({reflect:!0,type:String,attribute:"leading-icon"})],Rt.prototype,"leadingIcon",2),h([u({reflect:!0,type:String,attribute:"trailing-icon"})],Rt.prototype,"trailingIcon",2),h([u({reflect:!0,type:Number})],Rt.prototype,"value",2),h([u({reflect:!0,type:Number,attribute:"value-start"})],Rt.prototype,"valueStart",2),h([u({reflect:!0,type:Number,attribute:"value-end"})],Rt.prototype,"valueEnd",2),h([u({reflect:!0,type:Number})],Rt.prototype,"step",2),h([u({reflect:!0,type:String})],Rt.prototype,"label",2),h([u({reflect:!0,type:String,attribute:"label-start"})],Rt.prototype,"labelStart",2),h([u({reflect:!0,type:String,attribute:"label-end"})],Rt.prototype,"labelEnd",2),h([u({reflect:!0,type:String,attribute:"value-label"})],Rt.prototype,"valueLabel",2),h([u({reflect:!0,type:String,attribute:"value-label-start"})],Rt.prototype,"valueLabelStart",2),h([u({reflect:!0,type:String,attribute:"value-label-end"})],Rt.prototype,"valueLabelEnd",2),h([u({reflect:!0,type:String})],Rt.prototype,"name",2),h([u({reflect:!0,type:String,attribute:"name-start"})],Rt.prototype,"nameStart",2),h([u({reflect:!0,type:String,attribute:"name-end"})],Rt.prototype,"nameEnd",2),h([u({reflect:!0,type:String,attribute:"data-aria-label"})],Rt.prototype,"dataAriaLabel",2),h([u({reflect:!0,type:String,attribute:"start-aria-label"})],Rt.prototype,"startAriaLabel",2),h([u({reflect:!0,type:String,attribute:"end-aria-label"})],Rt.prototype,"endAriaLabel",2),h([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Rt.prototype,"dataAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Rt.prototype,"startAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Rt.prototype,"endAriaValueText",2),h([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Rt.prototype,"hideTooltip",2),h([sf('input[type="range"]')],Rt.prototype,"inputElements",2);var Fm=Rt;Fm.register(dE);var EI=Fm;var TI=H`
8070
8092
  :host {
8071
8093
  --mdc-listbox-max-height: auto;
8072
8094
 
@@ -8083,7 +8105,7 @@
8083
8105
  ::slotted(mdc-option) {
8084
8106
  width: 100%;
8085
8107
  }
8086
- `,cE=[EI];var Lo=class extends Eo(hi(X)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Lr(this,{isValidItem:this.isValidItem});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)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Tr}:not([disabled])`)}handleClick(t){let i=t.target.closest(Tr);!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>`}};Lo.styles=[...Sp.styles,...cE],h([u({type:String,reflect:!0})],Lo.prototype,"name",2),h([u({type:String,reflect:!0})],Lo.prototype,"value",2),h([u({type:Boolean,reflect:!0})],Lo.prototype,"multiple",2),h([dt()],Lo.prototype,"selectedOption",2);var Fm=Lo;var hE=B.constructTagName("listbox");Fm.register(hE);var TI=Fm;var pE=B.constructTagName("banner"),xa={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},qn={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},kc={VARIANT:xa.CUSTOM,PREFIX_ICON_SIZE:1.25};var xI=H`
8108
+ `,hE=[TI];var Mo=class extends To(pi(X)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Lr(this,{isValidItem:this.isValidItem});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)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Tr}:not([disabled])`)}handleClick(t){let i=t.target.closest(Tr);!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>`}};Mo.styles=[...Ip.styles,...hE],h([u({type:String,reflect:!0})],Mo.prototype,"name",2),h([u({type:String,reflect:!0})],Mo.prototype,"value",2),h([u({type:Boolean,reflect:!0})],Mo.prototype,"multiple",2),h([dt()],Mo.prototype,"selectedOption",2);var $m=Mo;var pE=B.constructTagName("listbox");$m.register(pE);var xI=$m;var mE=B.constructTagName("banner"),xa={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},qn={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},wc={VARIANT:xa.CUSTOM,PREFIX_ICON_SIZE:1.25};var AI=H`
8087
8109
  :host {
8088
8110
  --mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
8089
8111
  --mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -8166,8 +8188,8 @@
8166
8188
  gap: var(--mdc-banner-gap);
8167
8189
  flex-wrap: wrap;
8168
8190
  }
8169
- `,mE=[xI];var uE=a=>{switch(a){case xa.INFORMATIONAL:return qn.INFORMATIONAL_ICON_NAME;case xa.SUCCESS:return qn.SUCCESS_ICON_NAME;case xa.WARNING:return qn.WARNING_ICON_NAME;case xa.ERROR:return qn.ERROR_ICON_NAME;default:return null}};var Is=class extends X{constructor(){super(...arguments);this.variant=kc.VARIANT}renderIcon(t){return t?S`
8170
- <mdc-icon name="${t}" size="${kc.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
8191
+ `,uE=[AI];var fE=a=>{switch(a){case xa.INFORMATIONAL:return qn.INFORMATIONAL_ICON_NAME;case xa.SUCCESS:return qn.SUCCESS_ICON_NAME;case xa.WARNING:return qn.WARNING_ICON_NAME;case xa.ERROR:return qn.ERROR_ICON_NAME;default:return null}};var Is=class extends X{constructor(){super(...arguments);this.variant=wc.VARIANT}renderIcon(t){return t?S`
8192
+ <mdc-icon name="${t}" size="${wc.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
8171
8193
  `:W}getTextLabel(){return this.label?S`
8172
8194
  <mdc-text
8173
8195
  part="leading-label"
@@ -8185,7 +8207,7 @@
8185
8207
  <slot name="content">
8186
8208
  <div part="leading">
8187
8209
  <slot name="leading-icon">
8188
- ${this.variant!==kc.VARIANT?this.renderIcon(uE(this.variant)):W}
8210
+ ${this.variant!==wc.VARIANT?this.renderIcon(fE(this.variant)):W}
8189
8211
  </slot>
8190
8212
  <slot name="leading-text">
8191
8213
  <div part="leading-text">${this.getTextLabel()}</div>
@@ -8195,7 +8217,7 @@
8195
8217
  <slot name="trailing-actions"></slot>
8196
8218
  </div>
8197
8219
  </slot>
8198
- `}};Is.styles=[...X.styles,...mE],h([u({type:String,reflect:!0})],Is.prototype,"variant",2),h([u({type:String,reflect:!0})],Is.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Is.prototype,"secondaryLabel",2);var $m=Is;$m.register(pE);var AI=$m;var SI=H`
8220
+ `}};Is.styles=[...X.styles,...uE],h([u({type:String,reflect:!0})],Is.prototype,"variant",2),h([u({type:String,reflect:!0})],Is.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Is.prototype,"secondaryLabel",2);var Vm=Is;Vm.register(mE);var SI=Vm;var II=H`
8199
8221
  :host {
8200
8222
  --mdc-verticaltablist-width: 100%;
8201
8223
 
@@ -8216,10 +8238,10 @@
8216
8238
  --mdc-tab-line-active-indicator-width: 0.125rem;
8217
8239
  --mdc-tab-content-justification: space-between;
8218
8240
  }
8219
- `,fE=[SI];var wc=class extends bc(Vi){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${ga}: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`
8241
+ `,vE=[II];var Nc=class extends yc(zi){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${ga}: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`
8220
8242
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
8221
8243
  <slot part="container" role="presentation"></slot>
8222
- `}};wc.styles=[...Vi.styles,...fE];var Vm=wc;var vE=B.constructTagName("verticaltablist");Vm.register(vE);var II=Vm;})();
8244
+ `}};Nc.styles=[...zi.styles,...vE];var zm=Nc;var gE=B.constructTagName("verticaltablist");zm.register(gE);var CI=zm;})();
8223
8245
  /*! Bundled license information:
8224
8246
 
8225
8247
  lottie-web/build/player/lottie_light.js: