@momentum-design/components 0.129.51 → 0.129.53

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 Ry=Object.create;var Qd=Object.defineProperty;var Am=Object.getOwnPropertyDescriptor;var Py=Object.getOwnPropertyNames;var Dy=Object.getPrototypeOf,Fy=Object.prototype.hasOwnProperty;var $y=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var zy=(a,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of Py(o))!Fy.call(a,s)&&s!==t&&Qd(a,s,{get:()=>o[s],enumerable:!(r=Am(o,s))||r.enumerable});return a};var Vy=(a,o,t)=>(t=a!=null?Ry(Dy(a)):{},zy(o||!a||!a.__esModule?Qd(t,"default",{value:a,enumerable:!0}):t,a));var m=(a,o,t,r)=>{for(var s=r>1?void 0:r?Am(o,t):o,d=a.length-1,p;d>=0;d--)(p=a[d])&&(s=(r?p(o,t,s):p(s))||s);return r&&s&&Qd(o,t,s),s};var Iu=$y((Pn,vl)=>{typeof navigator<"u"&&function(a,o){typeof Pn=="object"&&typeof vl<"u"?vl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(Pn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},d=function(){return t},p=function(i){o=i},f=function(){return o};function T(e){return document.createElement(e)}function L(e,i){var n,l=e.length,h;for(n=0;n<l;n+=1){h=e[n].prototype;for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(i.prototype[c]=h[c])}}function U(e,i){return Object.getOwnPropertyDescriptor(e,i)}function q(e){function i(){}return i.prototype=e,i}var Q=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].pause()},resume:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].resume()},setRate:function(n){var l,h=this.audios.length;for(l=0;l<h;l+=1)this.audios[l].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,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),X=function(){function e(n,l){var h=0,c=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(h=0;h<l;h+=1)c.push(g);return c}function i(n,l){return n==="float32"?new Float32Array(l):n==="int16"?new Int16Array(l):n==="uint8c"?new Uint8ClampedArray(l):e(n,l)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i:e}();function it(e){return Array.apply(null,{length:e})}function dt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(n){return typeof n}:dt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dt(e)}var lt=!0,gt=null,It=null,Ct="",Kt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Vt=!1,Wt=Math.pow,te=Math.sqrt,pe=Math.floor,Er=Math.max,De=Math.min,ir={};(function(){var e=["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"],i,n=e.length;for(i=0;i<n;i+=1)ir[e[i]]=Math[e[i]]})();function Tr(){return{}}ir.random=Math.random,ir.abs=function(e){var i=dt(e);if(i==="object"&&e.length){var n=it(e.length),l,h=e.length;for(l=0;l<h;l+=1)n[l]=Math.abs(e[l]);return n}return Math.abs(e)};var xr=150,wt=Math.PI/180,ge=.5519;function or(e){Vt=!!e}function sr(e){return Vt?Math.round(e):e}function nr(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function ar(e,i,n,l){this.type=e,this.currentTime=i,this.totalTime=n,this.direction=l<0?-1:1}function Sa(e,i){this.type=e,this.direction=i<0?-1:1}function Np(e,i,n,l){this.type=e,this.currentLoop=n,this.totalLoops=i,this.direction=l<0?-1:1}function Lp(e,i,n){this.type=e,this.firstFrame=i,this.totalFrames=n}function Op(e,i){this.type=e,this.target=i}function Rb(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function Pb(e){this.type="configError",this.nativeError=e}function S0(e,i){this.type=e,this.nativeError=i}var Fe=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function zd(e,i,n){var l,h,c,g,A,b,w,O;switch(g=Math.floor(e*6),A=e*6-g,b=n*(1-i),w=n*(1-A*i),O=n*(1-(1-A)*i),g%6){case 0:l=n,h=O,c=b;break;case 1:l=w,h=n,c=b;break;case 2:l=b,h=n,c=O;break;case 3:l=b,h=w,c=n;break;case 4:l=O,h=b,c=n;break;case 5:l=n,h=b,c=w;break;default:break}return[l,h,c]}function Vd(e,i,n){var l=Math.max(e,i,n),h=Math.min(e,i,n),c=l-h,g,A=l===0?0:c/l,b=l/255;switch(l){case h:g=0;break;case e:g=i-n+c*(i<n?6:0),g/=6*c;break;case i:g=n-e+c*2,g/=6*c;break;case n:g=e-i+c*4,g/=6*c;break;default:break}return[g,A,b]}function Mp(e,i){var n=Vd(e[0]*255,e[1]*255,e[2]*255);return n[1]+=i,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),zd(n[0],n[1],n[2])}function Rp(e,i){var n=Vd(e[0]*255,e[1]*255,e[2]*255);return n[2]+=i,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),zd(n[0],n[1],n[2])}function Pp(e,i){var n=Vd(e[0]*255,e[1]*255,e[2]*255);return n[0]+=i/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),zd(n[0],n[1],n[2])}var I0=function(){var e=[],i,n;for(i=0;i<256;i+=1)n=i.toString(16),e[i]=n.length===1?"0"+n:n;return function(l,h,c){return l<0&&(l=0),h<0&&(h=0),c<0&&(c=0),"#"+e[l]+e[h]+e[c]}}(),Db=function(i){lt=!!i},Fb=function(){return lt},$b=function(i){gt=i},Ia=function(){return gt},_0=function(i){It=i},Dp=function(){return It},_a=function(i){xr=i},en=function(){return xr},zb=function(i){Ct=i},C0=function(){return Ct};function Tt(e){return document.createElementNS(a,e)}function Ca(e){"@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(e)}var rn=function(){var e=1,i=[],n,l,h={onmessage:function(){},postMessage:function(M){n({data:M})}},c={postMessage:function(M){h.onmessage({data:M})}};function g(x){if(window.Worker&&window.Blob&&d()){var M=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),D=URL.createObjectURL(M);return new Worker(D)}return n=x,h}function A(){l||(l=g(function(M){function D(){function V(et,I){var P,v,y=et.length,Y,$,at,vt;for(v=0;v<y;v+=1)if(P=et[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for($=Et.length,Y=0;Y<$;Y+=1)if(Et[Y].pt.k.i)k(Et[Y].pt.k);else for(vt=Et[Y].pt.k.length,at=0;at<vt;at+=1)Et[Y].pt.k[at].s&&k(Et[Y].pt.k[at].s[0]),Et[Y].pt.k[at].e&&k(Et[Y].pt.k[at].e[0])}P.ty===0?(P.layers=E(P.refId,I),V(P.layers,I)):P.ty===4?S(P.shapes):P.ty===5&&xt(P)}}function N(et,I){if(et){var P=0,v=et.length;for(P=0;P<v;P+=1)et[P].t===1&&(et[P].data.layers=E(et[P].data.refId,I),V(et[P].data.layers,I))}}function C(et,I){for(var P=0,v=I.length;P<v;){if(I[P].id===et)return I[P];P+=1}return null}function E(et,I){var P=C(et,I);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function S(et){var I,P=et.length,v,y;for(I=P-1;I>=0;I-=1)if(et[I].ty==="sh")if(et[I].ks.k.i)k(et[I].ks.k);else for(y=et[I].ks.k.length,v=0;v<y;v+=1)et[I].ks.k[v].s&&k(et[I].ks.k[v].s[0]),et[I].ks.k[v].e&&k(et[I].ks.k[v].e[0]);else et[I].ty==="gr"&&S(et[I].it)}function k(et){var I,P=et.i.length;for(I=0;I<P;I+=1)et.i[I][0]+=et.v[I][0],et.i[I][1]+=et.v[I][1],et.o[I][0]+=et.v[I][0],et.o[I][1]+=et.v[I][1]}function F(et,I){var P=I?I.split("."):[100,100,100];return et[0]>P[0]?!0:P[0]>et[0]?!1:et[1]>P[1]?!0:P[1]>et[1]?!1:et[2]>P[2]?!0:P[2]>et[2]?!1:null}var H=function(){var et=[4,4,14];function I(v){var y=v.t.d;v.t.d={k:[{s:y,t:0}]}}function P(v){var y,Y=v.length;for(y=0;y<Y;y+=1)v[y].ty===5&&I(v[y])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}(),K=function(){var et=[4,7,99];return function(I){if(I.chars&&!F(et,I.v)){var P,v=I.chars.length;for(P=0;P<v;P+=1){var y=I.chars[P];y.data&&y.data.shapes&&(S(y.data.shapes),y.data.ip=0,y.data.op=99999,y.data.st=0,y.data.sr=1,y.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}},I.chars[P].t||(y.data.shapes.push({ty:"no"}),y.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"})))}}}}(),rt=function(){var et=[5,7,15];function I(v){var y=v.t.p;typeof y.a=="number"&&(y.a={a:0,k:y.a}),typeof y.p=="number"&&(y.p={a:0,k:y.p}),typeof y.r=="number"&&(y.r={a:0,k:y.r})}function P(v){var y,Y=v.length;for(y=0;y<Y;y+=1)v[y].ty===5&&I(v[y])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}(),yt=function(){var et=[4,1,9];function I(v){var y,Y=v.length,$,at;for(y=0;y<Y;y+=1)if(v[y].ty==="gr")I(v[y].it);else if(v[y].ty==="fl"||v[y].ty==="st")if(v[y].c.k&&v[y].c.k[0].i)for(at=v[y].c.k.length,$=0;$<at;$+=1)v[y].c.k[$].s&&(v[y].c.k[$].s[0]/=255,v[y].c.k[$].s[1]/=255,v[y].c.k[$].s[2]/=255,v[y].c.k[$].s[3]/=255),v[y].c.k[$].e&&(v[y].c.k[$].e[0]/=255,v[y].c.k[$].e[1]/=255,v[y].c.k[$].e[2]/=255,v[y].c.k[$].e[3]/=255);else v[y].c.k[0]/=255,v[y].c.k[1]/=255,v[y].c.k[2]/=255,v[y].c.k[3]/=255}function P(v){var y,Y=v.length;for(y=0;y<Y;y+=1)v[y].ty===4&&I(v[y].shapes)}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}(),mt=function(){var et=[4,4,18];function I(v){var y,Y=v.length,$,at;for(y=Y-1;y>=0;y-=1)if(v[y].ty==="sh")if(v[y].ks.k.i)v[y].ks.k.c=v[y].closed;else for(at=v[y].ks.k.length,$=0;$<at;$+=1)v[y].ks.k[$].s&&(v[y].ks.k[$].s[0].c=v[y].closed),v[y].ks.k[$].e&&(v[y].ks.k[$].e[0].c=v[y].closed);else v[y].ty==="gr"&&I(v[y].it)}function P(v){var y,Y,$=v.length,at,vt,Et,Mt;for(Y=0;Y<$;Y+=1){if(y=v[Y],y.hasMask){var Rt=y.masksProperties;for(vt=Rt.length,at=0;at<vt;at+=1)if(Rt[at].pt.k.i)Rt[at].pt.k.c=Rt[at].cl;else for(Mt=Rt[at].pt.k.length,Et=0;Et<Mt;Et+=1)Rt[at].pt.k[Et].s&&(Rt[at].pt.k[Et].s[0].c=Rt[at].cl),Rt[at].pt.k[Et].e&&(Rt[at].pt.k[Et].e[0].c=Rt[at].cl)}y.ty===4&&I(y.shapes)}}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}();function st(et){et.__complete||(yt(et),H(et),K(et),rt(et),mt(et),V(et.layers,et.assets),N(et.chars,et.assets),et.__complete=!0)}function xt(et){et.t.a.length===0&&"m"in et.t.p}var ct={};return ct.completeData=st,ct.checkColors=yt,ct.checkChars=K,ct.checkPathProperties=rt,ct.checkShapes=mt,ct.completeLayers=V,ct}if(c.dataManager||(c.dataManager=D()),c.assetLoader||(c.assetLoader=function(){function V(C){var E=C.getResponseHeader("content-type");return E&&C.responseType==="json"&&E.indexOf("json")!==-1||C.response&&Ca(C.response)==="object"?C.response:C.response&&typeof C.response=="string"?JSON.parse(C.response):C.responseText?JSON.parse(C.responseText):null}function N(C,E,S,k){var F,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)F=V(H),S(F);else try{F=V(H),S(F)}catch(K){k&&k(K)}};try{H.open(["G","E","T"].join(""),C,!0)}catch{H.open(["G","E","T"].join(""),E+"/"+C,!0)}H.send()}return{load:N}}()),M.data.type==="loadAnimation")c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.dataManager.completeData(V),c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})});else if(M.data.type==="complete"){var R=M.data.animation;c.dataManager.completeData(R),c.postMessage({id:M.data.id,payload:R,status:"success"})}else M.data.type==="loadData"&&c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})})}),l.onmessage=function(x){var M=x.data,D=M.id,R=i[D];i[D]=null,M.status==="success"?R.onComplete(M.payload):R.onError&&R.onError()})}function b(x,M){e+=1;var D="processId_"+e;return i[D]={onComplete:x,onError:M},D}function w(x,M,D){A();var R=b(M,D);l.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function O(x,M,D){A();var R=b(M,D);l.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,M,D){A();var R=b(M,D);l.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:O,completeAnimation:G}}(),Vb=function(){var e=function(){var N=T("canvas");N.width=1,N.height=1;var C=N.getContext("2d");return C.fillStyle="rgba(0,0,0,0)",C.fillRect(0,0,1,1),N}();function i(){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 l(N,C,E){var S="";if(N.e)S=N.p;else if(C){var k=N.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),S=C+k}else S=E,S+=N.u?N.u:"",S+=N.p;return S}function h(N){var C=0,E=setInterval((function(){var S=N.getBBox();(S.width||C>500)&&(this._imageLoaded(),clearInterval(E)),C+=1}).bind(this),50)}function c(N){var C=l(N,this.assetsPath,this.path),E=Tt("image");Kt?this.testImageLoaded(E):E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.setAttributeNS("http://www.w3.org/1999/xlink","href",C),this._elementHelper.append?this._elementHelper.append(E):this._elementHelper.appendChild(E);var S={img:E,assetData:N};return S}function g(N){var C=l(N,this.assetsPath,this.path),E=T("img");E.crossOrigin="anonymous",E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.src=C;var S={img:E,assetData:N};return S}function A(N){var C={assetData:N},E=l(N,this.assetsPath,this.path);return rn.loadData(E,(function(S){C.img=S,this._footageLoaded()}).bind(this),(function(){C.img={},this._footageLoaded()}).bind(this)),C}function b(N,C){this.imagesLoadedCb=C;var E,S=N.length;for(E=0;E<S;E+=1)N[E].layers||(!N[E].t||N[E].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(N[E]))):N[E].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(N[E]))))}function w(N){this.path=N||""}function O(N){this.assetsPath=N||""}function G(N){for(var C=0,E=this.images.length;C<E;){if(this.images[C].assetData===N)return this.images[C].img;C+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function M(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function R(N,C){N==="svg"?(this._elementHelper=C,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function V(){this._imageLoaded=i.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=h.bind(this),this.createFootageData=A.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return V.prototype={loadAssets:b,setAssetsPath:O,setPath:w,loadedImages:M,loadedFootages:D,destroy:x,getAsset:G,createImgData:g,createImageData:c,imageLoaded:i,footageLoaded:n,setCacheType:R},V}();function Fp(){}Fp.prototype={triggerEvent:function(i,n){if(this._cbs[i])for(var l=this._cbs[i],h=0;h<l.length;h+=1)l[h](n)},addEventListener:function(i,n){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(n),(function(){this.removeEventListener(i,n)}).bind(this)},removeEventListener:function(i,n){if(!n)this._cbs[i]=null;else if(this._cbs[i]){for(var l=0,h=this._cbs[i].length;l<h;)this._cbs[i][l]===n&&(this._cbs[i].splice(l,1),l-=1,h-=1),l+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var Bb=function(){function e(i){for(var n=i.split(`\r
2
- `),l={},h,c=0,g=0;g<n.length;g+=1)h=n[g].split(":"),h.length===2&&(l[h[0]]=h[1].trim(),c+=1);if(c===0)throw new Error;return l}return function(i){for(var n=[],l=0;l<i.length;l+=1){var h=i[l],c={time:h.tm,duration:h.dr};try{c.payload=JSON.parse(i[l].cm)}catch{try{c.payload=e(i[l].cm)}catch{c.payload={name:i[l].cm}}}n.push(c)}return n}}(),Ub=function(){function e(i){this.compositions.push(i)}return function(){function i(n){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===n)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),on={},Hb=function(i,n){on[i]=n};function Gb(e){return on[e]}function Yb(){if(on.canvas)return"canvas";for(var e in on)if(on[e])return e;return""}function sn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sn=function(n){return typeof n}:sn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sn(e)}var ft=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=Fe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Fb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Ub(),this.imagePreloader=new Vb,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 ar("drawnFrame",0,0,0),this.expressionsPlugin=Ia()};L([Fp],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var n=Gb(i);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),rn.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){rn.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&sn(i)!=="object"&&(i=JSON.parse(i));var n={wrapper:e,animationData:i},l=e.attributes;n.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",n.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:Yb()||"canvas";var h=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";h==="false"?n.loop=!1:h==="true"?n.loop=!0:h!==""&&(n.loop=parseInt(h,10));var c=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;n.autoplay=c!=="false",n.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var g=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,n,l=i.length,h=e.layers,c,g=h.length;for(c=0;c<g;c+=1)for(n=0;n<l;){if(i[n].id===h[c].id){i[n]=h[c];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,n=0;n<l;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,rn.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=Ia();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,rn.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,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(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Bb(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ft.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ft.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 e=Ia();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var n=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(n,l)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.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")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,n=0;n<this.markers.length;n+=1)if(i=this.markers[n],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&this.goToAndStop(h.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&(h.duration?this.playSegments([h.time,h.time+h.duration],!0):this.goToAndStop(h.time,!0))}else this.goToAndStop(l,i,n);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,n=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(n=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,i=0)):this.setCurrentRawFrameValue(i),n&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>i&&(n=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),sn(e[0])==="object"){var n,l=e.length;for(n=0;n<l;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!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)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),i=this.assetsPath+n}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,n=this.assets.length;i<n;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,n){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,n)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new ar(e,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(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new Np(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Sa(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new Lp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Op(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new ar(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Np(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Sa(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Lp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Op(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new Rb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new Pb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ee=function(){var e={},i=[],n=0,l=0,h=0,c=!0,g=!1;function A(I){for(var P=0,v=I.target;P<l;)i[P].animation===v&&(i.splice(P,1),P-=1,l-=1,v.isPaused||G()),P+=1}function b(I,P){if(!I)return null;for(var v=0;v<l;){if(i[v].elem===I&&i[v].elem!==null)return i[v].animation;v+=1}var y=new ft;return x(y,I),y.setData(I,P),y}function w(){var I,P=i.length,v=[];for(I=0;I<P;I+=1)v.push(i[I].animation);return v}function O(){h+=1,yt()}function G(){h-=1}function x(I,P){I.addEventListener("destroy",A),I.addEventListener("_active",O),I.addEventListener("_idle",G),i.push({elem:P,animation:I}),l+=1}function M(I){var P=new ft;return x(P,null),P.setParams(I),P}function D(I,P){var v;for(v=0;v<l;v+=1)i[v].animation.setSpeed(I,P)}function R(I,P){var v;for(v=0;v<l;v+=1)i[v].animation.setDirection(I,P)}function V(I){var P;for(P=0;P<l;P+=1)i[P].animation.play(I)}function N(I){var P=I-n,v;for(v=0;v<l;v+=1)i[v].animation.advanceTime(P);n=I,h&&!g?window.requestAnimationFrame(N):c=!0}function C(I){n=I,window.requestAnimationFrame(N)}function E(I){var P;for(P=0;P<l;P+=1)i[P].animation.pause(I)}function S(I,P,v){var y;for(y=0;y<l;y+=1)i[y].animation.goToAndStop(I,P,v)}function k(I){var P;for(P=0;P<l;P+=1)i[P].animation.stop(I)}function F(I){var P;for(P=0;P<l;P+=1)i[P].animation.togglePause(I)}function H(I){var P;for(P=l-1;P>=0;P-=1)i[P].animation.destroy(I)}function K(I,P,v){var y=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,$=y.length;for(Y=0;Y<$;Y+=1)v&&y[Y].setAttribute("data-bm-type",v),b(y[Y],I);if(P&&$===0){v||(v="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var vt=T("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",v),at.appendChild(vt),b(vt,I)}}function rt(){var I;for(I=0;I<l;I+=1)i[I].animation.resize()}function yt(){!g&&h&&c&&(window.requestAnimationFrame(C),c=!1)}function mt(){g=!0}function st(){g=!1,yt()}function xt(I,P){var v;for(v=0;v<l;v+=1)i[v].animation.setVolume(I,P)}function ct(I){var P;for(P=0;P<l;P+=1)i[P].animation.mute(I)}function et(I){var P;for(P=0;P<l;P+=1)i[P].animation.unmute(I)}return e.registerAnimation=b,e.loadAnimation=M,e.setSpeed=D,e.setDirection=R,e.play=V,e.pause=E,e.stop=k,e.togglePause=F,e.searchAnimations=K,e.resize=rt,e.goToAndStop=S,e.destroy=H,e.freeze=mt,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=et,e.getRegisteredAnimations=w,e}(),nn=function(){var e={};e.getBezierEasing=n;var i={};function n(C,E,S,k,F){var H=F||("bez_"+C+"_"+E+"_"+S+"_"+k).replace(/\./g,"p");if(i[H])return i[H];var K=new N([C,E,S,k]);return i[H]=K,K}var l=4,h=.001,c=1e-7,g=10,A=11,b=1/(A-1),w=typeof Float32Array=="function";function O(C,E){return 1-3*E+3*C}function G(C,E){return 3*E-6*C}function x(C){return 3*C}function M(C,E,S){return((O(E,S)*C+G(E,S))*C+x(E))*C}function D(C,E,S){return 3*O(E,S)*C*C+2*G(E,S)*C+x(E)}function R(C,E,S,k,F){var H,K,rt=0;do K=E+(S-E)/2,H=M(K,k,F)-C,H>0?S=K:E=K;while(Math.abs(H)>c&&++rt<g);return K}function V(C,E,S,k){for(var F=0;F<l;++F){var H=D(E,S,k);if(H===0)return E;var K=M(E,S,k)-C;E-=K/H}return E}function N(C){this._p=C,this._mSampleValues=w?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return N.prototype={get:function(E){var S=this._p[0],k=this._p[1],F=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),S===k&&F===H?E:E===0?0:E===1?1:M(this._getTForX(E),k,H)},_precompute:function(){var E=this._p[0],S=this._p[1],k=this._p[2],F=this._p[3];this._precomputed=!0,(E!==S||k!==F)&&this._calcSampleValues()},_calcSampleValues:function(){for(var E=this._p[0],S=this._p[2],k=0;k<A;++k)this._mSampleValues[k]=M(k*b,E,S)},_getTForX:function(E){for(var S=this._p[0],k=this._p[2],F=this._mSampleValues,H=0,K=1,rt=A-1;K!==rt&&F[K]<=E;++K)H+=b;--K;var yt=(E-F[K])/(F[K+1]-F[K]),mt=H+yt*b,st=D(mt,S,k);return st>=h?V(E,mt,S,k):st===0?mt:R(E,H,H+b,S,k)}},e}(),$p=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),wa=function(){return function(e,i,n){var l=0,h=e,c=it(h),g={newElement:A,release:b};function A(){var w;return l?(l-=1,w=c[l]):w=i(),w}function b(w){l===h&&(c=$p.double(c),h*=2),n&&n(w),c[l]=w,l+=1}return g}}(),zp=function(){function e(){return{addedLength:0,percents:X("float32",en()),lengths:X("float32",en())}}return wa(8,e)}(),Vp=function(){function e(){return{lengths:[],totalLength:0}}function i(n){var l,h=n.lengths.length;for(l=0;l<h;l+=1)zp.release(n.lengths[l]);n.lengths.length=0}return wa(8,e,i)}();function Kb(){var e=Math;function i(x,M,D,R,V,N){var C=x*R+M*V+D*N-V*R-N*x-D*M;return C>-.001&&C<.001}function n(x,M,D,R,V,N,C,E,S){if(D===0&&N===0&&S===0)return i(x,M,R,V,C,E);var k=e.sqrt(e.pow(R-x,2)+e.pow(V-M,2)+e.pow(N-D,2)),F=e.sqrt(e.pow(C-x,2)+e.pow(E-M,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(C-R,2)+e.pow(E-V,2)+e.pow(S-N,2)),K;return k>F?k>H?K=k-F-H:K=H-F-k:H>F?K=H-F-k:K=F-k-H,K>-1e-4&&K<1e-4}var l=function(){return function(x,M,D,R){var V=en(),N,C,E,S,k,F=0,H,K=[],rt=[],yt=zp.newElement();for(E=D.length,N=0;N<V;N+=1){for(k=N/(V-1),H=0,C=0;C<E;C+=1)S=Wt(1-k,3)*x[C]+3*Wt(1-k,2)*k*D[C]+3*(1-k)*Wt(k,2)*R[C]+Wt(k,3)*M[C],K[C]=S,rt[C]!==null&&(H+=Wt(K[C]-rt[C],2)),rt[C]=K[C];H&&(H=te(H),F+=H),yt.percents[N]=k,yt.lengths[N]=F}return yt.addedLength=F,yt}}();function h(x){var M=Vp.newElement(),D=x.c,R=x.v,V=x.o,N=x.i,C,E=x._length,S=M.lengths,k=0;for(C=0;C<E-1;C+=1)S[C]=l(R[C],R[C+1],V[C],N[C+1]),k+=S[C].addedLength;return D&&E&&(S[C]=l(R[C],R[0],V[C],N[0]),k+=S[C].addedLength),M.totalLength=k,M}function c(x){this.segmentLength=0,this.points=new Array(x)}function g(x,M){this.partialLength=x,this.point=M}var A=function(){var x={};return function(M,D,R,V){var N=(M[0]+"_"+M[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!x[N]){var C=en(),E,S,k,F,H,K=0,rt,yt,mt=null;M.length===2&&(M[0]!==D[0]||M[1]!==D[1])&&i(M[0],M[1],D[0],D[1],M[0]+R[0],M[1]+R[1])&&i(M[0],M[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(C=2);var st=new c(C);for(k=R.length,E=0;E<C;E+=1){for(yt=it(k),H=E/(C-1),rt=0,S=0;S<k;S+=1)F=Wt(1-H,3)*M[S]+3*Wt(1-H,2)*H*(M[S]+R[S])+3*(1-H)*Wt(H,2)*(D[S]+V[S])+Wt(H,3)*D[S],yt[S]=F,mt!==null&&(rt+=Wt(yt[S]-mt[S],2));rt=te(rt),K+=rt,st.points[E]=new g(rt,yt),mt=yt}st.segmentLength=K,x[N]=st}return x[N]}}();function b(x,M){var D=M.percents,R=M.lengths,V=D.length,N=pe((V-1)*x),C=x*M.addedLength,E=0;if(N===V-1||N===0||C===R[N])return D[N];for(var S=R[N]>C?-1:1,k=!0;k;)if(R[N]<=C&&R[N+1]>C?(E=(C-R[N])/(R[N+1]-R[N]),k=!1):N+=S,N<0||N>=V-1){if(N===V-1)return D[N];k=!1}return D[N]+(D[N+1]-D[N])*E}function w(x,M,D,R,V,N){var C=b(V,N),E=1-C,S=e.round((E*E*E*x[0]+(C*E*E+E*C*E+E*E*C)*D[0]+(C*C*E+E*C*C+C*E*C)*R[0]+C*C*C*M[0])*1e3)/1e3,k=e.round((E*E*E*x[1]+(C*E*E+E*C*E+E*E*C)*D[1]+(C*C*E+E*C*C+C*E*C)*R[1]+C*C*C*M[1])*1e3)/1e3;return[S,k]}var O=X("float32",8);function G(x,M,D,R,V,N,C){V<0?V=0:V>1&&(V=1);var E=b(V,C);N=N>1?1:N;var S=b(N,C),k,F=x.length,H=1-E,K=1-S,rt=H*H*H,yt=E*H*H*3,mt=E*E*H*3,st=E*E*E,xt=H*H*K,ct=E*H*K+H*E*K+H*H*S,et=E*E*K+H*E*S+E*H*S,I=E*E*S,P=H*K*K,v=E*K*K+H*S*K+H*K*S,y=E*S*K+H*S*S+E*K*S,Y=E*S*S,$=K*K*K,at=S*K*K+K*S*K+K*K*S,vt=S*S*K+K*S*S+S*K*S,Et=S*S*S;for(k=0;k<F;k+=1)O[k*4]=e.round((rt*x[k]+yt*D[k]+mt*R[k]+st*M[k])*1e3)/1e3,O[k*4+1]=e.round((xt*x[k]+ct*D[k]+et*R[k]+I*M[k])*1e3)/1e3,O[k*4+2]=e.round((P*x[k]+v*D[k]+y*R[k]+Y*M[k])*1e3)/1e3,O[k*4+3]=e.round(($*x[k]+at*D[k]+vt*R[k]+Et*M[k])*1e3)/1e3;return O}return{getSegmentsLength:h,getNewSegment:G,getPointInSegment:w,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:n}}var Rr=Kb(),ho=r,Bp=Math.abs;function Up(e,i){var n=this.offsetTime,l;this.propType==="multidimensional"&&(l=X("float32",this.pv.length));for(var h=i.lastIndex,c=h,g=this.keyframes.length-1,A=!0,b,w,O;A;){if(b=this.keyframes[c],w=this.keyframes[c+1],c===g-1&&e>=w.t-n){b.h&&(b=w),h=0;break}if(w.t-n>e){h=c;break}c<g-1?c+=1:(h=0,A=!1)}O=this.keyframesMetadata[c]||{};var G,x,M,D,R,V,N=w.t-n,C=b.t-n,E;if(b.to){O.bezierData||(O.bezierData=Rr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var S=O.bezierData;if(e>=N||e<C){var k=e>=N?S.points.length-1:0;for(x=S.points[k].point.length,G=0;G<x;G+=1)l[G]=S.points[k].point[G]}else{O.__fnct?V=O.__fnct:(V=nn.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,O.__fnct=V),M=V((e-C)/(N-C));var F=S.segmentLength*M,H,K=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastPoint:0,A=!0,D=S.points.length;A;){if(K+=S.points[R].partialLength,F===0||M===0||R===S.points.length-1){for(x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G];break}else if(F>=K&&F<K+S.points[R+1].partialLength){for(H=(F-K)/S.points[R+1].partialLength,x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G]+(S.points[R+1].point[G]-S.points[R].point[G])*H;break}R<D-1?R+=1:A=!1}i._lastPoint=R,i._lastAddedLength=K-S.points[R].partialLength,i._lastKeyframeIndex=c}}else{var rt,yt,mt,st,xt;if(g=b.s.length,E=w.s||b.e,this.sh&&b.h!==1)if(e>=N)l[0]=E[0],l[1]=E[1],l[2]=E[2];else if(e<=C)l[0]=b.s[0],l[1]=b.s[1],l[2]=b.s[2];else{var ct=Hp(b.s),et=Hp(E),I=(e-C)/(N-C);jb(l,Wb(ct,et,I))}else for(c=0;c<g;c+=1)b.h!==1&&(e>=N?M=1:e<C?M=0:(b.o.x.constructor===Array?(O.__fnct||(O.__fnct=[]),O.__fnct[c]?V=O.__fnct[c]:(rt=b.o.x[c]===void 0?b.o.x[0]:b.o.x[c],yt=b.o.y[c]===void 0?b.o.y[0]:b.o.y[c],mt=b.i.x[c]===void 0?b.i.x[0]:b.i.x[c],st=b.i.y[c]===void 0?b.i.y[0]:b.i.y[c],V=nn.getBezierEasing(rt,yt,mt,st).get,O.__fnct[c]=V)):O.__fnct?V=O.__fnct:(rt=b.o.x,yt=b.o.y,mt=b.i.x,st=b.i.y,V=nn.getBezierEasing(rt,yt,mt,st).get,b.keyframeMetadata=V),M=V((e-C)/(N-C)))),E=w.s||b.e,xt=b.h===1?b.s[c]:b.s[c]+(E[c]-b.s[c])*M,this.propType==="multidimensional"?l[c]=xt:l=xt}return i.lastIndex=h,l}function Wb(e,i,n){var l=[],h=e[0],c=e[1],g=e[2],A=e[3],b=i[0],w=i[1],O=i[2],G=i[3],x,M,D,R,V;return M=h*b+c*w+g*O+A*G,M<0&&(M=-M,b=-b,w=-w,O=-O,G=-G),1-M>1e-6?(x=Math.acos(M),D=Math.sin(x),R=Math.sin((1-n)*x)/D,V=Math.sin(n*x)/D):(R=1-n,V=n),l[0]=R*h+V*b,l[1]=R*c+V*w,l[2]=R*g+V*O,l[3]=R*A+V*G,l}function jb(e,i){var n=i[0],l=i[1],h=i[2],c=i[3],g=Math.atan2(2*l*c-2*n*h,1-2*l*l-2*h*h),A=Math.asin(2*n*l+2*h*c),b=Math.atan2(2*n*c-2*l*h,1-2*n*n-2*h*h);e[0]=g/wt,e[1]=A/wt,e[2]=b/wt}function Hp(e){var i=e[0]*wt,n=e[1]*wt,l=e[2]*wt,h=Math.cos(i/2),c=Math.cos(n/2),g=Math.cos(l/2),A=Math.sin(i/2),b=Math.sin(n/2),w=Math.sin(l/2),O=h*c*g-A*b*w,G=A*b*g+h*c*w,x=A*c*g+h*b*w,M=h*b*g-A*c*w;return[G,x,M,O]}function Gp(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==ho&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function ka(e){var i;if(this.propType==="unidimensional")i=e*this.mult,Bp(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,l=this.v.length;n<l;)i=e[n]*this.mult,Bp(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function Na(){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 e,i=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function La(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function qb(e,i,n,l){this.propType="unidimensional",this.mult=n||1,this.data=i,this.v=n?i.k*n:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Na,this.setVValue=ka,this.addEffect=La}function Xb(e,i,n,l){this.propType="multidimensional",this.mult=n||1,this.data=i,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h,c=i.k.length;for(this.v=X("float32",c),this.pv=X("float32",c),this.vel=X("float32",c),h=0;h<c;h+=1)this.v[h]=i.k[h]*this.mult,this.pv[h]=i.k[h];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Na,this.setVValue=ka,this.addEffect=La}function Zb(e,i,n,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:ho,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=ho,this.pv=ho,this._isFirstFrame=!0,this.getValue=Na,this.setVValue=ka,this.interpolateValue=Up,this.effectsSequence=[Gp.bind(this)],this.addEffect=La}function Qb(e,i,n,l){this.propType="multidimensional";var h,c=i.k.length,g,A,b,w;for(h=0;h<c-1;h+=1)i.k[h].to&&i.k[h].s&&i.k[h+1]&&i.k[h+1].s&&(g=i.k[h].s,A=i.k[h+1].s,b=i.k[h].to,w=i.k[h].ti,(g.length===2&&!(g[0]===A[0]&&g[1]===A[1])&&Rr.pointOnLine2D(g[0],g[1],A[0],A[1],g[0]+b[0],g[1]+b[1])&&Rr.pointOnLine2D(g[0],g[1],A[0],A[1],A[0]+w[0],A[1]+w[1])||g.length===3&&!(g[0]===A[0]&&g[1]===A[1]&&g[2]===A[2])&&Rr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Rr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],A[0]+w[0],A[1]+w[1],A[2]+w[2]))&&(i.k[h].to=null,i.k[h].ti=null),g[0]===A[0]&&g[1]===A[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===A[2]&&b[2]===0&&w[2]===0)&&(i.k[h].to=null,i.k[h].ti=null));this.effectsSequence=[Gp.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=Na,this.setVValue=ka,this.interpolateValue=Up,this.frameId=-1;var O=i.k[0].s.length;for(this.v=X("float32",O),this.pv=X("float32",O),h=0;h<O;h+=1)this.v[h]=ho,this.pv[h]=ho;this._caching={lastFrame:ho,lastIndex:0,value:X("float32",O)},this.addEffect=La}var nt=function(){function e(n,l,h,c,g){l.sid&&(l=n.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new qb(n,l,c,g);else if(typeof l.k[0]=="number")A=new Xb(n,l,c,g);else switch(h){case 0:A=new Zb(n,l,c,g);break;case 1:A=new Qb(n,l,c,g);break;default:break}return A.effectsSequence.length&&g.addDynamicProperty(A),A}var i={getProp:e};return i}();function me(){}me.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var po=function(){function e(){return X("float32",2)}return wa(8,e)}();function Jr(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}Jr.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var n=0;n<i;)this.v[n]=po.newElement(),this.o[n]=po.newElement(),this.i[n]=po.newElement(),n+=1},Jr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Jr.prototype.doubleArrayLength=function(){this.v=this.v.concat(it(this._maxLength)),this.i=this.i.concat(it(this._maxLength)),this.o=this.o.concat(it(this._maxLength)),this._maxLength*=2},Jr.prototype.setXYAt=function(e,i,n,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[l]||c[l]&&!h)&&(c[l]=po.newElement()),c[l][0]=e,c[l][1]=i},Jr.prototype.setTripleAt=function(e,i,n,l,h,c,g,A){this.setXYAt(e,i,"v",g,A),this.setXYAt(n,l,"o",g,A),this.setXYAt(h,c,"i",g,A)},Jr.prototype.reverse=function(){var e=new Jr;e.setPathData(this.c,this._length);var i=this.v,n=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],n[0][0],n[0][1],0,!1),h=1);var c=this._length-1,g=this._length,A;for(A=h;A<g;A+=1)e.setTripleAt(i[c][0],i[c][1],l[c][0],l[c][1],n[c][0],n[c][1],A,!1),c-=1;return e},Jr.prototype.length=function(){return this._length};var be=function(){function e(){return new Jr}function i(h){var c=h._length,g;for(g=0;g<c;g+=1)po.release(h.v[g]),po.release(h.i[g]),po.release(h.o[g]),h.v[g]=null,h.i[g]=null,h.o[g]=null;h._length=0,h.c=!1}function n(h){var c=l.newElement(),g,A=h._length===void 0?h.v.length:h._length;for(c.setLength(A),c.c=h.c,g=0;g<A;g+=1)c.setTripleAt(h.v[g][0],h.v[g][1],h.o[g][0],h.o[g][1],h.i[g][0],h.i[g][1],g);return c}var l=wa(4,e,i);return l.clone=n,l}();function Bd(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}Bd.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(it(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Bd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)be.release(this.shapes[e]);this._length=0};var ss=function(){var e={newShapeCollection:h,release:c},i=0,n=4,l=it(n);function h(){var g;return i?(i-=1,g=l[i]):g=new Bd,g}function c(g){var A,b=g._length;for(A=0;A<b;A+=1)be.release(g.shapes[A]);g._length=0,i===n&&(l=$p.double(l),n*=2),l[i]=g,i+=1}return e}(),Oa=function(){var e=-999999;function i(N,C,E){var S=E.lastIndex,k,F,H,K,rt,yt,mt,st,xt,ct=this.keyframes;if(N<ct[0].t-this.offsetTime)k=ct[0].s[0],H=!0,S=0;else if(N>=ct[ct.length-1].t-this.offsetTime)k=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var et=S,I=ct.length-1,P=!0,v,y,Y;P&&(v=ct[et],y=ct[et+1],!(y.t-this.offsetTime>N));)et<I-1?et+=1:P=!1;if(Y=this.keyframesMetadata[et]||{},H=v.h===1,S=et,!H){if(N>=y.t-this.offsetTime)st=1;else if(N<v.t-this.offsetTime)st=0;else{var $;Y.__fnct?$=Y.__fnct:($=nn.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,Y.__fnct=$),st=$((N-(v.t-this.offsetTime))/(y.t-this.offsetTime-(v.t-this.offsetTime)))}F=y.s?y.s[0]:v.e[0]}k=v.s[0]}for(yt=C._length,mt=k.i[0].length,E.lastIndex=S,K=0;K<yt;K+=1)for(rt=0;rt<mt;rt+=1)xt=H?k.i[K][rt]:k.i[K][rt]+(F.i[K][rt]-k.i[K][rt])*st,C.i[K][rt]=xt,xt=H?k.o[K][rt]:k.o[K][rt]+(F.o[K][rt]-k.o[K][rt])*st,C.o[K][rt]=xt,xt=H?k.v[K][rt]:k.v[K][rt]+(F.v[K][rt]-k.v[K][rt])*st,C.v[K][rt]=xt}function n(){var N=this.comp.renderedFrame-this.offsetTime,C=this.keyframes[0].t-this.offsetTime,E=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==e&&(S<C&&N<C||S>E&&N>E)||(this._caching.lastIndex=S<N?this._caching.lastIndex:0,this.interpolateShape(N,this.pv,this._caching)),this._caching.lastFrame=N,this.pv}function l(){this.paths=this.localShapeCollection}function h(N,C){if(N._length!==C._length||N.c!==C.c)return!1;var E,S=N._length;for(E=0;E<S;E+=1)if(N.v[E][0]!==C.v[E][0]||N.v[E][1]!==C.v[E][1]||N.o[E][0]!==C.o[E][0]||N.o[E][1]!==C.o[E][1]||N.i[E][0]!==C.i[E][0]||N.i[E][1]!==C.i[E][1])return!1;return!0}function c(N){h(this.v,N)||(this.v=be.clone(N),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 N;this.kf?N=this.pv:this.data.ks?N=this.data.ks.k:N=this.data.pt.k;var C,E=this.effectsSequence.length;for(C=0;C<E;C+=1)N=this.effectsSequence[C](N);this.setVValue(N),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(N,C,E){this.propType="shape",this.comp=N.comp,this.container=N,this.elem=N,this.data=C,this.k=!1,this.kf=!1,this._mdf=!1;var S=E===3?C.pt.k:C.ks.k;this.v=be.clone(S),this.pv=be.clone(this.v),this.localShapeCollection=ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function b(N){this.effectsSequence.push(N),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=g,A.prototype.setVValue=c,A.prototype.addEffect=b;function w(N,C,E){this.propType="shape",this.comp=N.comp,this.elem=N,this.container=N,this.offsetTime=N.data.st,this.keyframes=E===3?C.pt.k:C.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=be.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=be.clone(this.v),this.localShapeCollection=ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=i,w.prototype.setVValue=c,w.prototype.addEffect=b;var O=function(){var N=ge;function C(E,S){this.v=be.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ss.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=E,this.comp=E.comp,this.frameId=-1,this.initDynamicPropertyContainer(E),this.p=nt.getProp(E,S.p,1,0,this),this.s=nt.getProp(E,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return C.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],k=this.p.v[1],F=this.s.v[0]/2,H=this.s.v[1]/2,K=this.d!==3,rt=this.v;rt.v[0][0]=S,rt.v[0][1]=k-H,rt.v[1][0]=K?S+F:S-F,rt.v[1][1]=k,rt.v[2][0]=S,rt.v[2][1]=k+H,rt.v[3][0]=K?S-F:S+F,rt.v[3][1]=k,rt.i[0][0]=K?S-F*N:S+F*N,rt.i[0][1]=k-H,rt.i[1][0]=K?S+F:S-F,rt.i[1][1]=k-H*N,rt.i[2][0]=K?S+F*N:S-F*N,rt.i[2][1]=k+H,rt.i[3][0]=K?S-F:S+F,rt.i[3][1]=k+H*N,rt.o[0][0]=K?S+F*N:S-F*N,rt.o[0][1]=k-H,rt.o[1][0]=K?S+F:S-F,rt.o[1][1]=k+H*N,rt.o[2][0]=K?S-F*N:S+F*N,rt.o[2][1]=k+H,rt.o[3][0]=K?S-F:S+F,rt.o[3][1]=k-H*N}},L([me],C),C}(),G=function(){function N(C,E){this.v=be.newElement(),this.v.setPathData(!0,0),this.elem=C,this.comp=C.comp,this.data=E,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),E.sy===1?(this.ir=nt.getProp(C,E.ir,0,0,this),this.is=nt.getProp(C,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=nt.getProp(C,E.pt,0,0,this),this.p=nt.getProp(C,E.p,1,0,this),this.r=nt.getProp(C,E.r,0,wt,this),this.or=nt.getProp(C,E.or,0,0,this),this.os=nt.getProp(C,E.os,0,.01,this),this.localShapeCollection=ss.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return N.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var E=Math.floor(this.pt.v)*2,S=Math.PI*2/E,k=!0,F=this.or.v,H=this.ir.v,K=this.os.v,rt=this.is.v,yt=2*Math.PI*F/(E*2),mt=2*Math.PI*H/(E*2),st,xt,ct,et,I=-Math.PI/2;I+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<E;st+=1){xt=k?F:H,ct=k?K:rt,et=k?yt:mt;var v=xt*Math.cos(I),y=xt*Math.sin(I),Y=v===0&&y===0?0:y/Math.sqrt(v*v+y*y),$=v===0&&y===0?0:-v/Math.sqrt(v*v+y*y);v+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(v,y,v-Y*et*ct*P,y-$*et*ct*P,v+Y*et*ct*P,y+$*et*ct*P,st,!0),k=!k,I+=S*P}},convertPolygonToPath:function(){var E=Math.floor(this.pt.v),S=Math.PI*2/E,k=this.or.v,F=this.os.v,H=2*Math.PI*k/(E*4),K,rt=-Math.PI*.5,yt=this.data.d===3?-1:1;for(rt+=this.r.v,this.v._length=0,K=0;K<E;K+=1){var mt=k*Math.cos(rt),st=k*Math.sin(rt),xt=mt===0&&st===0?0:st/Math.sqrt(mt*mt+st*st),ct=mt===0&&st===0?0:-mt/Math.sqrt(mt*mt+st*st);mt+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(mt,st,mt-xt*H*F*yt,st-ct*H*F*yt,mt+xt*H*F*yt,st+ct*H*F*yt,K,!0),rt+=S*yt}this.paths.length=0,this.paths[0]=this.v}},L([me],N),N}(),x=function(){function N(C,E){this.v=be.newElement(),this.v.c=!0,this.localShapeCollection=ss.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=C,this.comp=C.comp,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),this.p=nt.getProp(C,E.p,1,0,this),this.s=nt.getProp(C,E.s,1,0,this),this.r=nt.getProp(C,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return N.prototype={convertRectToPath:function(){var E=this.p.v[0],S=this.p.v[1],k=this.s.v[0]/2,F=this.s.v[1]/2,H=De(k,F,this.r.v),K=H*(1-ge);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+H,E+k,S-F+K,0,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-K,E+k,S+F-H,1,!0),H!==0?(this.v.setTripleAt(E+k-H,S+F,E+k-H,S+F,E+k-K,S+F,2,!0),this.v.setTripleAt(E-k+H,S+F,E-k+K,S+F,E-k+H,S+F,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-H,E-k,S+F-K,4,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+K,E-k,S-F+H,5,!0),this.v.setTripleAt(E-k+H,S-F,E-k+H,S-F,E-k+K,S-F,6,!0),this.v.setTripleAt(E+k-H,S-F,E+k-K,S-F,E+k-H,S-F,7,!0)):(this.v.setTripleAt(E-k,S+F,E-k+K,S+F,E-k,S+F,2),this.v.setTripleAt(E-k,S-F,E-k,S-F+K,E-k,S-F,3))):(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+K,E+k,S-F+H,0,!0),H!==0?(this.v.setTripleAt(E+k-H,S-F,E+k-H,S-F,E+k-K,S-F,1,!0),this.v.setTripleAt(E-k+H,S-F,E-k+K,S-F,E-k+H,S-F,2,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+H,E-k,S-F+K,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-K,E-k,S+F-H,4,!0),this.v.setTripleAt(E-k+H,S+F,E-k+H,S+F,E-k+K,S+F,5,!0),this.v.setTripleAt(E+k-H,S+F,E+k-K,S+F,E+k-H,S+F,6,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-H,E+k,S+F-K,7,!0)):(this.v.setTripleAt(E-k,S-F,E-k+K,S-F,E-k,S-F,1,!0),this.v.setTripleAt(E-k,S+F,E-k,S+F-K,E-k,S+F,2,!0),this.v.setTripleAt(E+k,S+F,E+k-K,S+F,E+k,S+F,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},L([me],N),N}();function M(N,C,E){var S;if(E===3||E===4){var k=E===3?C.pt:C.ks,F=k.k;F.length?S=new w(N,C,E):S=new A(N,C,E)}else E===5?S=new x(N,C):E===6?S=new O(N,C):E===7&&(S=new G(N,C));return S.k&&N.addDynamicProperty(S),S}function D(){return A}function R(){return w}var V={};return V.getShapeProp=M,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=R,V}();var ye=function(){var e=Math.cos,i=Math.sin,n=Math.tan,l=Math.round;function h(){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 c(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(1,0,0,0,0,y,-Y,0,0,Y,y,0,0,0,0,1)}function A(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(y,0,Y,0,0,1,0,0,-Y,0,y,0,0,0,0,1)}function b(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function w(v,y){return this._t(1,y,v,1,0,0)}function O(v,y){return this.shear(n(v),n(y))}function G(v,y){var Y=e(y),$=i(y);return this._t(Y,$,0,0,-$,Y,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(Y,-$,0,0,$,Y,0,0,0,0,1,0,0,0,0,1)}function x(v,y,Y){return!Y&&Y!==0&&(Y=1),v===1&&y===1&&Y===1?this:this._t(v,0,0,0,0,y,0,0,0,0,Y,0,0,0,0,1)}function M(v,y,Y,$,at,vt,Et,Mt,Rt,re,ze,Dr,Ve,ue,Ze,Ft){return this.props[0]=v,this.props[1]=y,this.props[2]=Y,this.props[3]=$,this.props[4]=at,this.props[5]=vt,this.props[6]=Et,this.props[7]=Mt,this.props[8]=Rt,this.props[9]=re,this.props[10]=ze,this.props[11]=Dr,this.props[12]=Ve,this.props[13]=ue,this.props[14]=Ze,this.props[15]=Ft,this}function D(v,y,Y){return Y=Y||0,v!==0||y!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,y,Y,1):this}function R(v,y,Y,$,at,vt,Et,Mt,Rt,re,ze,Dr,Ve,ue,Ze,Ft){var ht=this.props;if(v===1&&y===0&&Y===0&&$===0&&at===0&&vt===1&&Et===0&&Mt===0&&Rt===0&&re===0&&ze===1&&Dr===0)return ht[12]=ht[12]*v+ht[15]*Ve,ht[13]=ht[13]*vt+ht[15]*ue,ht[14]=ht[14]*ze+ht[15]*Ze,ht[15]*=Ft,this._identityCalculated=!1,this;var ri=ht[0],Li=ht[1],ii=ht[2],Fr=ht[3],oi=ht[4],si=ht[5],Be=ht[6],Oi=ht[7],Mi=ht[8],Sr=ht[9],Ri=ht[10],Ir=ht[11],vo=ht[12],Ba=ht[13],Ua=ht[14],Ha=ht[15];return ht[0]=ri*v+Li*at+ii*Rt+Fr*Ve,ht[1]=ri*y+Li*vt+ii*re+Fr*ue,ht[2]=ri*Y+Li*Et+ii*ze+Fr*Ze,ht[3]=ri*$+Li*Mt+ii*Dr+Fr*Ft,ht[4]=oi*v+si*at+Be*Rt+Oi*Ve,ht[5]=oi*y+si*vt+Be*re+Oi*ue,ht[6]=oi*Y+si*Et+Be*ze+Oi*Ze,ht[7]=oi*$+si*Mt+Be*Dr+Oi*Ft,ht[8]=Mi*v+Sr*at+Ri*Rt+Ir*Ve,ht[9]=Mi*y+Sr*vt+Ri*re+Ir*ue,ht[10]=Mi*Y+Sr*Et+Ri*ze+Ir*Ze,ht[11]=Mi*$+Sr*Mt+Ri*Dr+Ir*Ft,ht[12]=vo*v+Ba*at+Ua*Rt+Ha*Ve,ht[13]=vo*y+Ba*vt+Ua*re+Ha*ue,ht[14]=vo*Y+Ba*Et+Ua*ze+Ha*Ze,ht[15]=vo*$+Ba*Mt+Ua*Dr+Ha*Ft,this._identityCalculated=!1,this}function V(v){var y=v.props;return this.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15])}function N(){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 C(v){for(var y=0;y<16;){if(v.props[y]!==this.props[y])return!1;y+=1}return!0}function E(v){var y;for(y=0;y<16;y+=1)v.props[y]=this.props[y];return v}function S(v){var y;for(y=0;y<16;y+=1)this.props[y]=v[y]}function k(v,y,Y){return{x:v*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],y:v*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],z:v*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}}function F(v,y,Y){return v*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12]}function H(v,y,Y){return v*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13]}function K(v,y,Y){return v*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}function rt(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],y=this.props[5]/v,Y=-this.props[1]/v,$=-this.props[4]/v,at=this.props[0]/v,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Mt=new ye;return Mt.props[0]=y,Mt.props[1]=Y,Mt.props[4]=$,Mt.props[5]=at,Mt.props[12]=vt,Mt.props[13]=Et,Mt}function yt(v){var y=this.getInverseMatrix();return y.applyToPointArray(v[0],v[1],v[2]||0)}function mt(v){var y,Y=v.length,$=[];for(y=0;y<Y;y+=1)$[y]=yt(v[y]);return $}function st(v,y,Y){var $=X("float32",6);if(this.isIdentity())$[0]=v[0],$[1]=v[1],$[2]=y[0],$[3]=y[1],$[4]=Y[0],$[5]=Y[1];else{var at=this.props[0],vt=this.props[1],Et=this.props[4],Mt=this.props[5],Rt=this.props[12],re=this.props[13];$[0]=v[0]*at+v[1]*Et+Rt,$[1]=v[0]*vt+v[1]*Mt+re,$[2]=y[0]*at+y[1]*Et+Rt,$[3]=y[0]*vt+y[1]*Mt+re,$[4]=Y[0]*at+Y[1]*Et+Rt,$[5]=Y[0]*vt+Y[1]*Mt+re}return $}function xt(v,y,Y){var $;return this.isIdentity()?$=[v,y,Y]:$=[v*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],v*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],v*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]],$}function ct(v,y){if(this.isIdentity())return v+","+y;var Y=this.props;return Math.round((v*Y[0]+y*Y[4]+Y[12])*100)/100+","+Math.round((v*Y[1]+y*Y[5]+Y[13])*100)/100}function et(){for(var v=0,y=this.props,Y="matrix3d(",$=1e4;v<16;)Y+=l(y[v]*$)/$,Y+=v===15?")":",",v+=1;return Y}function I(v){var y=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?l(v*y)/y:v}function P(){var v=this.props,y=I(v[0]),Y=I(v[1]),$=I(v[4]),at=I(v[5]),vt=I(v[12]),Et=I(v[13]);return"matrix("+y+","+Y+","+$+","+at+","+vt+","+Et+")"}return function(){this.reset=h,this.rotate=c,this.rotateX=g,this.rotateY=A,this.rotateZ=b,this.skew=O,this.skewFromAxis=G,this.shear=w,this.scale=x,this.setTransform=M,this.translate=D,this.transform=R,this.multiply=V,this.applyToPoint=k,this.applyToX=F,this.applyToY=H,this.applyToZ=K,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=et,this.to2dCSS=P,this.clone=E,this.cloneFromProps=S,this.equals=C,this.inversePoints=mt,this.inversePoint=yt,this.getInverseMatrix=rt,this._t=this.transform,this.isIdentity=N,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function Ma(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ma=function(n){return typeof n}:Ma=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ma(e)}var Pt={},Ra="__[STANDALONE]__",Yp="__[ANIMATIONDATA]__",Kp="";function Jb(e){p(e)}function Wp(){Ra===!0?ee.searchAnimations(Yp,Ra,Kp):ee.searchAnimations()}function ty(e){Db(e)}function ey(e){zb(e)}function ry(e){return Ra===!0&&(e.animationData=JSON.parse(Yp)),ee.loadAnimation(e)}function iy(e){if(typeof e=="string")switch(e){case"high":_a(200);break;default:case"medium":_a(50);break;case"low":_a(10);break}else!isNaN(e)&&e>1&&_a(e);en()>=50?or(!1):or(!0)}function oy(){return typeof navigator<"u"}function sy(e,i){e==="expressions"&&$b(i)}function ny(e){switch(e){case"propertyFactory":return nt;case"shapePropertyFactory":return Oa;case"matrix":return ye;default:return null}}Pt.play=ee.play,Pt.pause=ee.pause,Pt.setLocationHref=Jb,Pt.togglePause=ee.togglePause,Pt.setSpeed=ee.setSpeed,Pt.setDirection=ee.setDirection,Pt.stop=ee.stop,Pt.searchAnimations=Wp,Pt.registerAnimation=ee.registerAnimation,Pt.loadAnimation=ry,Pt.setSubframeRendering=ty,Pt.resize=ee.resize,Pt.goToAndStop=ee.goToAndStop,Pt.destroy=ee.destroy,Pt.setQuality=iy,Pt.inBrowser=oy,Pt.installPlugin=sy,Pt.freeze=ee.freeze,Pt.unfreeze=ee.unfreeze,Pt.setVolume=ee.setVolume,Pt.mute=ee.mute,Pt.unmute=ee.unmute,Pt.getRegisteredAnimations=ee.getRegisteredAnimations,Pt.useWebWorker=s,Pt.setIDPrefix=ey,Pt.__getFactory=ny,Pt.version="5.12.2";function ay(){document.readyState==="complete"&&(clearInterval(cy),Wp())}function ly(e){for(var i=jp.split("&"),n=0;n<i.length;n+=1){var l=i[n].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var jp="";if(Ra){var qp=document.getElementsByTagName("script"),dy=qp.length-1,Xp=qp[dy]||{src:""};jp=Xp.src?Xp.src.replace(/^[^\?]+\??/,""):"",Kp=ly("renderer")}var cy=setInterval(ay,100);try{!((typeof Pn>"u"?"undefined":Ma(Pn))==="object"&&typeof vl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Pt)}catch{}var Ii=function(){var e={},i={};e.registerModifier=n,e.getModifier=l;function n(h,c){i[h]||(i[h]=c)}function l(h,c,g){return new i[h](c,g)}return e}();function lr(){}lr.prototype.initModifierProperties=function(){},lr.prototype.addShapeToModifier=function(){},lr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:ss.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},lr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},lr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},L([me],lr);function Ar(){}L([lr],Ar),Ar.prototype.initModifierProperties=function(e,i){this.s=nt.getProp(e,i.s,0,.01,this),this.e=nt.getProp(e,i.e,0,.01,this),this.o=nt.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ar.prototype.addShapeToModifier=function(e){e.pathsData=[]},Ar.prototype.calculateShapeEdges=function(e,i,n,l,h){var c=[];i<=1?c.push({s:e,e:i}):e>=1?c.push({s:e-1,e:i-1}):(c.push({s:e,e:1}),c.push({s:0,e:i-1}));var g=[],A,b=c.length,w;for(A=0;A<b;A+=1)if(w=c[A],!(w.e*h<l||w.s*h>l+n)){var O,G;w.s*h<=l?O=0:O=(w.s*h-l)/n,w.e*h>=l+n?G=1:G=(w.e*h-l)/n,g.push([O,G])}return g.length||g.push([0,0]),g},Ar.prototype.releasePathsData=function(e){var i,n=e.length;for(i=0;i<n;i+=1)Vp.release(e[i]);return e.length=0,e},Ar.prototype.processShapes=function(e){var i,n;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?i=1+l:this.s.v<0?i=0+l:i=this.s.v+l,this.e.v>1?n=1+l:this.e.v<0?n=0+l:n=this.e.v+l,i>n){var h=i;i=n,n=h}i=Math.round(i*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=i,this.eValue=n}else i=this.sValue,n=this.eValue;var c,g,A=this.shapes.length,b,w,O,G,x,M=0;if(n===i)for(g=0;g<A;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&&i===0||n===0&&i===1){if(this._mdf)for(g=0;g<A;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,V;for(g=0;g<A;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(c=R.shape.paths,w=c._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(O=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)G=Rr.getSegmentsLength(c.shapes[b]),O.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=O}M+=x,R.shape._mdf=!0}var N=i,C=n,E=0,S;for(g=A-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(V=R.localShapeCollection,V.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,n,R.totalShapeLength,E,M),E+=R.totalShapeLength):S=[[N,C]],w=S.length,b=0;b<w;b+=1){N=S[b][0],C=S[b][1],D.length=0,C<=1?D.push({s:R.totalShapeLength*N,e:R.totalShapeLength*C}):N>=1?D.push({s:R.totalShapeLength*(N-1),e:R.totalShapeLength*(C-1)}):(D.push({s:R.totalShapeLength*N,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(C-1)}));var k=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=R.shape.paths.shapes[R.shape.paths._length-1];if(F.c){var H=k.pop();this.addPaths(k,V),k=this.addShapes(R,D[1],H)}else this.addPaths(k,V),k=this.addShapes(R,D[1])}this.addPaths(k,V)}}R.shape.paths=V}}},Ar.prototype.addPaths=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)i.addShape(e[n])},Ar.prototype.addSegment=function(e,i,n,l,h,c,g){h.setXYAt(i[0],i[1],"o",c),h.setXYAt(n[0],n[1],"i",c+1),g&&h.setXYAt(e[0],e[1],"v",c),h.setXYAt(l[0],l[1],"v",c+1)},Ar.prototype.addSegmentFromArray=function(e,i,n,l){i.setXYAt(e[1],e[5],"o",n),i.setXYAt(e[2],e[6],"i",n+1),l&&i.setXYAt(e[0],e[4],"v",n),i.setXYAt(e[3],e[7],"v",n+1)},Ar.prototype.addShapes=function(e,i,n){var l=e.pathsData,h=e.shape.paths.shapes,c,g=e.shape.paths._length,A,b,w=0,O,G,x,M,D=[],R,V=!0;for(n?(G=n._length,R=n._length):(n=be.newElement(),G=0,R=0),D.push(n),c=0;c<g;c+=1){for(x=l[c].lengths,n.c=h[c].c,b=h[c].c?x.length:x.length+1,A=1;A<b;A+=1)if(O=x[A-1],w+O.addedLength<i.s)w+=O.addedLength,n.c=!1;else if(w>i.e){n.c=!1;break}else i.s<=w&&i.e>=w+O.addedLength?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[A],h[c].v[A],n,G,V),V=!1):(M=Rr.getNewSegment(h[c].v[A-1],h[c].v[A],h[c].o[A-1],h[c].i[A],(i.s-w)/O.addedLength,(i.e-w)/O.addedLength,x[A-1]),this.addSegmentFromArray(M,n,G,V),V=!1,n.c=!1),w+=O.addedLength,G+=1;if(h[c].c&&x.length){if(O=x[A-1],w<=i.e){var N=x[A-1].addedLength;i.s<=w&&i.e>=w+N?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[0],h[c].v[0],n,G,V),V=!1):(M=Rr.getNewSegment(h[c].v[A-1],h[c].v[0],h[c].o[A-1],h[c].i[0],(i.s-w)/N,(i.e-w)/N,x[A-1]),this.addSegmentFromArray(M,n,G,V),V=!1,n.c=!1)}else n.c=!1;w+=O.addedLength,G+=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>i.e)break;c<g-1&&(n=be.newElement(),V=!0,D.push(n),G=0)}return D};function an(){}L([lr],an),an.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},an.prototype.processPath=function(e,i){var n=i/100,l=[0,0],h=e._length,c=0;for(c=0;c<h;c+=1)l[0]+=e.v[c][0],l[1]+=e.v[c][1];l[0]/=h,l[1]/=h;var g=be.newElement();g.c=e.c;var A,b,w,O,G,x;for(c=0;c<h;c+=1)A=e.v[c][0]+(l[0]-e.v[c][0])*n,b=e.v[c][1]+(l[1]-e.v[c][1])*n,w=e.o[c][0]+(l[0]-e.o[c][0])*-n,O=e.o[c][1]+(l[1]-e.o[c][1])*-n,G=e.i[c][0]+(l[0]-e.i[c][0])*-n,x=e.i[c][1]+(l[1]-e.i[c][1])*-n,g.setTripleAt(A,b,w,O,G,x,c);return g},an.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.amount.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)b.addShape(this.processPath(i[h],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Ud=function(){var e=[0,0];function i(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.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?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){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 O,G;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?(O=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/w,0),G=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?(O=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/w,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(O=this.p.pv,G=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){O=[],G=[];var x=this.px,M=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(O[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),O[1]=M.getValueAtTime((M.keyframes[0].t+.01)/w,0),G[0]=x.getValueAtTime(x.keyframes[0].t/w,0),G[1]=M.getValueAtTime(M.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(O[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),O[1]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/w,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),G[1]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/w,0)):(O=[x.pv,M.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),G[1]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/w,M.offsetTime))}else G=e,O=G;this.v.rotate(-Math.atan2(O[1]-G[1],O[0]-G[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 l(){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 h(){}function c(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,O){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new ye,this.pre=new ye,this.appliedTransformations=0,this.initDynamicPropertyContainer(O||b),w.p&&w.p.s?(this.px=nt.getProp(b,w.p.x,0,0,this),this.py=nt.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=nt.getProp(b,w.p.z,0,0,this))):this.p=nt.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=nt.getProp(b,w.rx,0,wt,this),this.ry=nt.getProp(b,w.ry,0,wt,this),this.rz=nt.getProp(b,w.rz,0,wt,this),w.or.k[0].ti){var G,x=w.or.k.length;for(G=0;G<x;G+=1)w.or.k[G].to=null,w.or.k[G].ti=null}this.or=nt.getProp(b,w.or,1,wt,this),this.or.sh=!0}else this.r=nt.getProp(b,w.r||{k:0},0,wt,this);w.sk&&(this.sk=nt.getProp(b,w.sk,0,wt,this),this.sa=nt.getProp(b,w.sa,0,wt,this)),this.a=nt.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=nt.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=nt.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:n,precalculateMatrix:l,autoOrient:h},L([me],g),g.prototype.addDynamicProperty=c,g.prototype._addDynamicProperty=me.prototype.addDynamicProperty;function A(b,w,O){return new g(b,w,O)}return{getTransformProperty:A}}();function Pr(){}L([lr],Pr),Pr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=nt.getProp(e,i.c,0,null,this),this.o=nt.getProp(e,i.o,0,null,this),this.tr=Ud.getTransformProperty(e,i.tr,this),this.so=nt.getProp(e,i.tr.so,0,.01,this),this.eo=nt.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new ye,this.rMatrix=new ye,this.sMatrix=new ye,this.tMatrix=new ye,this.matrix=new ye},Pr.prototype.applyTransforms=function(e,i,n,l,h,c){var g=c?-1:1,A=l.s.v[0]+(1-l.s.v[0])*(1-h),b=l.s.v[1]+(1-l.s.v[1])*(1-h);e.translate(l.p.v[0]*g*h,l.p.v[1]*g*h,l.p.v[2]),i.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),i.rotate(-l.r.v*g*h),i.translate(l.a.v[0],l.a.v[1],l.a.v[2]),n.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),n.scale(c?1/A:A,c?1/b:b),n.translate(l.a.v[0],l.a.v[1],l.a.v[2])},Pr.prototype.init=function(e,i,n,l){for(this.elem=e,this.arr=i,this.pos=n,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[n]);n>0;)n-=1,this._elements.unshift(i[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Pr.prototype.resetElements=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},Pr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},Pr.prototype.changeGroupRender=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)e[n]._render=i,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,i)},Pr.prototype.processShapes=function(e){var i,n,l,h,c,g=!1;if(this._mdf||e){var A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.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,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}c=0;var w;for(l=0;l<=this._groups.length-1;l+=1){if(w=c<A,this._groups[l]._render=w,this.changeGroupRender(this._groups[l].it,w),!w){var O=this.elemsData[l].it,G=O[O.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}c+=1}this._currentCopies=A;var x=this.o.v,M=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,V=this.rMatrix.props,N=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var C=0;if(x>0){for(;C<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,M,!1),C+=M)}else if(x<0){for(;C>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-M,!0),C-=M)}l=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,c=this._currentCopies;for(var E,S;c;){if(i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,S=n.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(l/(this._currentCopies-1)),C!==0){for((l!==0&&h===1||l!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(V[0],V[1],V[2],V[3],V[4],V[5],V[6],V[7],V[8],V[9],V[10],V[11],V[12],V[13],V[14],V[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[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]),E=0;E<S;E+=1)n[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<S;E+=1)n[E]=this.matrix.props[E];C+=1,c-=1,l+=h}}else for(c=this._currentCopies,l=0,h=1;c;)i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,c-=1,l+=h;return g},Pr.prototype.addShape=function(){};function ln(){}L([lr],ln),ln.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=nt.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ln.prototype.processPath=function(e,i){var n=be.newElement();n.c=e.c;var l,h=e._length,c,g,A,b,w,O,G=0,x,M,D,R,V,N;for(l=0;l<h;l+=1)c=e.v[l],A=e.o[l],g=e.i[l],c[0]===A[0]&&c[1]===A[1]&&c[0]===g[0]&&c[1]===g[1]?(l===0||l===h-1)&&!e.c?(n.setTripleAt(c[0],c[1],A[0],A[1],g[0],g[1],G),G+=1):(l===0?b=e.v[h-1]:b=e.v[l-1],w=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),O=w?Math.min(w/2,i)/w:0,V=c[0]+(b[0]-c[0])*O,x=V,N=c[1]-(c[1]-b[1])*O,M=N,D=x-(x-c[0])*ge,R=M-(M-c[1])*ge,n.setTripleAt(x,M,D,R,V,N,G),G+=1,l===h-1?b=e.v[0]:b=e.v[l+1],w=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),O=w?Math.min(w/2,i)/w:0,D=c[0]+(b[0]-c[0])*O,x=D,R=c[1]+(b[1]-c[1])*O,M=R,V=x-(x-c[0])*ge,N=M-(M-c[1])*ge,n.setTripleAt(x,M,D,R,V,N,G),G+=1):(n.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],G),G+=1);return n},ln.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.rd.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)b.addShape(this.processPath(i[h],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Pa(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function Hd(e){return Math.abs(e)<=1e-5}function Zp(e,i,n){return e*(1-n)+i*n}function _i(e,i,n){return[Zp(e[0],i[0],n),Zp(e[1],i[1],n)]}function hy(e,i,n){if(e===0)return[];var l=i*i-4*e*n;if(l<0)return[];var h=-i/(2*e);if(l===0)return[h];var c=Math.sqrt(l)/(2*e);return[h-c,h+c]}function Qp(e,i,n,l){return[-e+3*i-3*n+l,3*e-6*i+3*n,-3*e+3*i,e]}function Jp(e){return new jt(e,e,e,e,!1)}function jt(e,i,n,l,h){h&&as(e,i)&&(i=_i(e,l,1/3)),h&&as(n,l)&&(n=_i(e,l,2/3));var c=Qp(e[0],i[0],n[0],l[0]),g=Qp(e[1],i[1],n[1],l[1]);this.a=[c[0],g[0]],this.b=[c[1],g[1]],this.c=[c[2],g[2]],this.d=[c[3],g[3]],this.points=[e,i,n,l]}jt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},jt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},jt.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},jt.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},jt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Hd(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var l=Math.sqrt(n);return Hd(l)?l>0&&l<1?[i]:[]:[i-l,i+l].filter(function(h){return h>0&&h<1})},jt.prototype.split=function(e){if(e<=0)return[Jp(this.points[0]),this];if(e>=1)return[this,Jp(this.points[this.points.length-1])];var i=_i(this.points[0],this.points[1],e),n=_i(this.points[1],this.points[2],e),l=_i(this.points[2],this.points[3],e),h=_i(i,n,e),c=_i(n,l,e),g=_i(h,c,e);return[new jt(this.points[0],i,h,g,!0),new jt(g,c,l,this.points[3],!0)]};function tm(e,i){var n=e.points[0][i],l=e.points[e.points.length-1][i];if(n>l){var h=l;l=n,n=h}for(var c=hy(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<c.length;g+=1)if(c[g]>0&&c[g]<1){var A=e.point(c[g])[i];A<n?n=A:A>l&&(l=A)}return{min:n,max:l}}jt.prototype.bounds=function(){return{x:tm(this,0),y:tm(this,1)}},jt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Da(e,i,n){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+n)/2,t1:i,t2:n}}function em(e){var i=e.bez.split(.5);return[Da(i[0],e.t1,e.t),Da(i[1],e.t,e.t2)]}function py(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function dn(e,i,n,l,h,c){if(py(e,i)){if(n>=c||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){h.push([e.t,i.t]);return}var g=em(e),A=em(i);dn(g[0],A[0],n+1,l,h,c),dn(g[0],A[1],n+1,l,h,c),dn(g[1],A[0],n+1,l,h,c),dn(g[1],A[1],n+1,l,h,c)}}jt.prototype.intersections=function(e,i,n){i===void 0&&(i=2),n===void 0&&(n=7);var l=[];return dn(Da(this,0,1),Da(e,0,1),0,i,l,n),l},jt.shapeSegment=function(e,i){var n=(i+1)%e.length();return new jt(e.v[i],e.o[i],e.i[n],e.v[n],!0)},jt.shapeSegmentInverted=function(e,i){var n=(i+1)%e.length();return new jt(e.v[n],e.i[n],e.o[i],e.v[i],!0)};function Gd(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Fa(e,i,n,l){var h=[e[0],e[1],1],c=[i[0],i[1],1],g=[n[0],n[1],1],A=[l[0],l[1],1],b=Gd(Gd(h,c),Gd(g,A));return Hd(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function ns(e,i,n){return[e[0]+Math.cos(i)*n,e[1]-Math.sin(i)*n]}function Yd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function as(e,i){return Pa(e[0],i[0])&&Pa(e[1],i[1])}function cn(){}L([lr],cn),cn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=nt.getProp(e,i.s,0,null,this),this.frequency=nt.getProp(e,i.r,0,null,this),this.pointsType=nt.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function rm(e,i,n,l,h,c,g){var A=n-Math.PI/2,b=n+Math.PI/2,w=i[0]+Math.cos(n)*l*h,O=i[1]-Math.sin(n)*l*h;e.setTripleAt(w,O,w+Math.cos(A)*c,O-Math.sin(A)*c,w+Math.cos(b)*g,O-Math.sin(b)*g,e.length())}function my(e,i){var n=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*n[0]-Math.sin(l)*n[1],Math.sin(l)*n[0]+Math.cos(l)*n[1]];return h}function uy(e,i){var n=i===0?e.length()-1:i-1,l=(i+1)%e.length(),h=e.v[n],c=e.v[l],g=my(h,c);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function im(e,i,n,l,h,c,g){var A=uy(i,n),b=i.v[n%i._length],w=i.v[n===0?i._length-1:n-1],O=i.v[(n+1)%i._length],G=c===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=c===2?Math.sqrt(Math.pow(b[0]-O[0],2)+Math.pow(b[1]-O[1],2)):0;rm(e,i.v[n%i._length],A,g,l,x/((h+1)*2),G/((h+1)*2),c)}function fy(e,i,n,l,h,c){for(var g=0;g<l;g+=1){var A=(g+1)/(l+1),b=h===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,w=i.normalAngle(A),O=i.point(A);rm(e,O,w,c,n,b/((l+1)*2),b/((l+1)*2),h),c=-c}return c}cn.prototype.processPath=function(e,i,n,l){var h=e._length,c=be.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var g=-1,A=jt.shapeSegment(e,0);im(c,e,0,i,n,l,g);for(var b=0;b<h;b+=1)g=fy(c,A,i,n,l,-g),b===h-1&&!e.c?A=null:A=jt.shapeSegment(e,(b+1)%h),im(c,e,b+1,i,n,l,g);return c},cn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,O;for(n=0;n<l;n+=1){if(w=this.shapes[n],O=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!e))for(O.releaseShapes(),w.shape._mdf=!0,i=w.shape.paths.shapes,c=w.shape.paths._length,h=0;h<c;h+=1)O.addShape(this.processPath(i[h],g,A,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Kd(e,i,n){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[ns(e,l,n),ns(i,l,n)]}function ls(e,i){var n,l,h,c,g,A,b;b=Kd(e.points[0],e.points[1],i),n=b[0],l=b[1],b=Kd(e.points[1],e.points[2],i),h=b[0],c=b[1],b=Kd(e.points[2],e.points[3],i),g=b[0],A=b[1];var w=Fa(n,l,h,c);w===null&&(w=l);var O=Fa(g,A,h,c);return O===null&&(O=g),new jt(n,w,O,A)}function om(e,i,n,l,h){var c=i.points[3],g=n.points[0];if(l===3||as(c,g))return c;if(l===2){var A=-i.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,w=Fa(c,ns(c,A+Math.PI/2,100),g,ns(g,A+Math.PI/2,100)),O=w?Yd(w,c):Yd(c,g)/2,G=ns(c,A,2*O*ge);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=ns(g,b,2*O*ge),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=as(c,i.points[2])?i.points[0]:i.points[2],M=as(g,n.points[1])?n.points[3]:n.points[1],D=Fa(x,c,g,M);return D&&Yd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function sm(e,i){var n=e.intersections(i);return n.length&&Pa(n[0][0],1)&&n.shift(),n.length?n[0]:null}function nm(e,i){var n=e.slice(),l=i.slice(),h=sm(e[e.length-1],i[0]);return h&&(n[e.length-1]=e[e.length-1].split(h[0])[0],l[0]=i[0].split(h[1])[1]),e.length>1&&i.length>1&&(h=sm(e[0],i[i.length-1]),h)?[[e[0].split(h[0])[0]],[i[i.length-1].split(h[1])[1]]]:[n,l]}function vy(e){for(var i,n=1;n<e.length;n+=1)i=nm(e[n-1],e[n]),e[n-1]=i[0],e[n]=i[1];return e.length>1&&(i=nm(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function am(e,i){var n=e.inflectionPoints(),l,h,c,g;if(n.length===0)return[ls(e,i)];if(n.length===1||Pa(n[1],1))return c=e.split(n[0]),l=c[0],h=c[1],[ls(l,i),ls(h,i)];c=e.split(n[0]),l=c[0];var A=(n[1]-n[0])/(1-n[0]);return c=c[1].split(A),g=c[0],h=c[1],[ls(l,i),ls(g,i),ls(h,i)]}function hn(){}L([lr],hn),hn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this.miterLimit=nt.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},hn.prototype.processPath=function(e,i,n,l){var h=be.newElement();h.c=e.c;var c=e.length();e.c||(c-=1);var g,A,b,w=[];for(g=0;g<c;g+=1)b=jt.shapeSegment(e,g),w.push(am(b,i));if(!e.c)for(g=c-1;g>=0;g-=1)b=jt.shapeSegmentInverted(e,g),w.push(am(b,i));w=vy(w);var O=null,G=null;for(g=0;g<w.length;g+=1){var x=w[g];for(G&&(O=om(h,G,x[0],n,l)),G=x[x.length-1],A=0;A<x.length;A+=1)b=x[A],O&&as(b.points[0],O)?h.setXYAt(b.points[1][0],b.points[1][1],"o",h.length()-1):h.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],h.length()),h.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],h.length()),O=b.points[3]}return w.length&&om(h,G,w[0][0],n,l),h},hn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,h,c,g=this.amount.v,A=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,O;for(n=0;n<l;n+=1){if(w=this.shapes[n],O=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!e))for(O.releaseShapes(),w.shape._mdf=!0,i=w.shape.paths.shapes,c=w.shape.paths._length,h=0;h<c;h+=1)O.addShape(this.processPath(i[h],g,b,A));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function lm(e){for(var i=e.fStyle?e.fStyle.split(" "):[],n="normal",l="normal",h=i.length,c,g=0;g<h;g+=1)switch(c=i[g].toLowerCase(),c){case"italic":l="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:l,weight:e.fWeight||n}}var mo=function(){var e=5e3,i={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 l=127988,h=917631,c=917601,g=917626,A=65039,b=8205,w=127462,O=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(I){var P=I.split(","),v,y=P.length,Y=[];for(v=0;v<y;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&Y.push(P[v]);return Y.join(",")}function M(I,P){var v=T("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;var y=T("span");y.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(y),document.body.appendChild(v);var Y=y.offsetWidth;return y.style.fontFamily=x(I)+", "+P,{node:y,w:Y,parent:v}}function D(){var I,P=this.fonts.length,v,y,Y=P;for(I=0;I<P;I+=1)this.fonts[I].loaded?Y-=1:this.fonts[I].fOrigin==="n"||this.fonts[I].origin===0?this.fonts[I].loaded=!0:(v=this.fonts[I].monoCase.node,y=this.fonts[I].monoCase.w,v.offsetWidth!==y?(Y-=1,this.fonts[I].loaded=!0):(v=this.fonts[I].sansCase.node,y=this.fonts[I].sansCase.w,v.offsetWidth!==y&&(Y-=1,this.fonts[I].loaded=!0)),this.fonts[I].loaded&&(this.fonts[I].sansCase.parent.parentNode.removeChild(this.fonts[I].sansCase.parent),this.fonts[I].monoCase.parent.parentNode.removeChild(this.fonts[I].monoCase.parent)));Y!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(I,P){var v=document.body&&P?"svg":"canvas",y,Y=lm(I);if(v==="svg"){var $=Tt("text");$.style.fontSize="100px",$.setAttribute("font-family",I.fFamily),$.setAttribute("font-style",Y.style),$.setAttribute("font-weight",Y.weight),$.textContent="1",I.fClass?($.style.fontFamily="inherit",$.setAttribute("class",I.fClass)):$.style.fontFamily=I.fFamily,P.appendChild($),y=$}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=Y.style+" "+Y.weight+" 100px "+I.fFamily,y=at}function vt(Et){return v==="svg"?(y.textContent=Et,y.getComputedTextLength()):y.measureText(Et).width}return{measureText:vt}}function V(I,P){if(!I){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=I.list;return}if(!document.body){this.isLoaded=!0,I.list.forEach(function(ze){ze.helper=R(ze),ze.cache={}}),this.fonts=I.list;return}var v=I.list,y,Y=v.length,$=Y;for(y=0;y<Y;y+=1){var at=!0,vt,Et;if(v[y].loaded=!1,v[y].monoCase=M(v[y].fFamily,"monospace"),v[y].sansCase=M(v[y].fFamily,"sans-serif"),!v[y].fPath)v[y].loaded=!0,$-=1;else if(v[y].fOrigin==="p"||v[y].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[y].fFamily+'"], style[f-origin="3"][f-family="'+v[y].fFamily+'"]'),vt.length>0&&(at=!1),at){var Mt=T("style");Mt.setAttribute("f-forigin",v[y].fOrigin),Mt.setAttribute("f-origin",v[y].origin),Mt.setAttribute("f-family",v[y].fFamily),Mt.type="text/css",Mt.innerText="@font-face {font-family: "+v[y].fFamily+"; font-style: normal; src: url('"+v[y].fPath+"');}",P.appendChild(Mt)}}else if(v[y].fOrigin==="g"||v[y].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(v[y].fPath)!==-1&&(at=!1);if(at){var Rt=T("link");Rt.setAttribute("f-forigin",v[y].fOrigin),Rt.setAttribute("f-origin",v[y].origin),Rt.type="text/css",Rt.rel="stylesheet",Rt.href=v[y].fPath,document.body.appendChild(Rt)}}else if(v[y].fOrigin==="t"||v[y].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)v[y].fPath===vt[Et].src&&(at=!1);if(at){var re=T("link");re.setAttribute("f-forigin",v[y].fOrigin),re.setAttribute("f-origin",v[y].origin),re.setAttribute("rel","stylesheet"),re.setAttribute("href",v[y].fPath),P.appendChild(re)}}v[y].helper=R(v[y],P),v[y].cache={},this.fonts.push(v[y])}$===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function N(I){if(I){this.chars||(this.chars=[]);var P,v=I.length,y,Y=this.chars.length,$;for(P=0;P<v;P+=1){for(y=0,$=!1;y<Y;)this.chars[y].style===I[P].style&&this.chars[y].fFamily===I[P].fFamily&&this.chars[y].ch===I[P].ch&&($=!0),y+=1;$||(this.chars.push(I[P]),Y+=1)}}}function C(I,P,v){for(var y=0,Y=this.chars.length;y<Y;){if(this.chars[y].ch===I&&this.chars[y].style===P&&this.chars[y].fFamily===v)return this.chars[y];y+=1}return(typeof I=="string"&&I.charCodeAt(0)!==13||!I)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",I,P,v)),i}function E(I,P,v){var y=this.getFontByName(P),Y=I;if(!y.cache[Y]){var $=y.helper;if(I===" "){var at=$.measureText("|"+I+"|"),vt=$.measureText("||");y.cache[Y]=(at-vt)/100}else y.cache[Y]=$.measureText(I)/100}return y.cache[Y]*v}function S(I){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===I)return this.fonts[P];P+=1}return this.fonts[0]}function k(I){var P=0,v=I.charCodeAt(0);if(v>=55296&&v<=56319){var y=I.charCodeAt(1);y>=56320&&y<=57343&&(P=(v-55296)*1024+y-56320+65536)}return P}function F(I,P){var v=I.toString(16)+P.toString(16);return G.indexOf(v)!==-1}function H(I){return I===b}function K(I){return I===A}function rt(I){var P=k(I);return P>=w&&P<=O}function yt(I){return rt(I.substr(0,2))&&rt(I.substr(2,2))}function mt(I){return n.indexOf(I)!==-1}function st(I,P){var v=k(I.substr(P,2));if(v!==l)return!1;var y=0;for(P+=2;y<5;){if(v=k(I.substr(P,2)),v<c||v>g)return!1;y+=1,P+=2}return k(I.substr(P,2))===h}function xt(){this.isLoaded=!0}var ct=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)};ct.isModifier=F,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=rt,ct.isCombinedCharacter=mt,ct.isRegionalFlag=st,ct.isVariationSelector=K,ct.BLACK_FLAG_CODE_POINT=l;var et={addChars:N,addFonts:V,getCharData:C,getFontByName:S,measureText:E,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=et,ct}();function dm(e){this.animationData=e}dm.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function gy(e){return new dm(e)}function $a(){}$a.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},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(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?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 i,n=this.renderableComponents.length;for(i=0;i<n;i+=1)this.renderableComponents[i].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 Wd=function(){var e={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(i){return e[i]||""}}();function by(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function yy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Ey(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Ty(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function xy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Ay(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Sy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Iy(){this.p={}}function cm(e,i){var n=e.ef||[];this.effectElements=[];var l,h=n.length,c;for(l=0;l<h;l+=1)c=new pn(n[l],i),this.effectElements.push(c)}function pn(e,i){this.init(e,i)}L([me],pn),pn.prototype.getValue=pn.prototype.iterateDynamicProperties,pn.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var n,l=this.data.ef.length,h,c=this.data.ef;for(n=0;n<l;n+=1){switch(h=null,c[n].ty){case 0:h=new by(c[n],i,this);break;case 1:h=new yy(c[n],i,this);break;case 2:h=new Ey(c[n],i,this);break;case 3:h=new Ty(c[n],i,this);break;case 4:case 7:h=new Sy(c[n],i,this);break;case 10:h=new xy(c[n],i,this);break;case 11:h=new Ay(c[n],i,this);break;case 5:h=new cm(c[n],i,this);break;default:h=new Iy(c[n],i,this);break}h&&this.effectElements.push(h)}};function Ci(){}Ci.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,n=this.data.masksProperties.length;i<n;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Dp();if(i){var n=i("layer"),l=i("effects"),h=i("shape"),c=i("text"),g=i("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var A=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(A),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=Wd(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=i},initBaseData:function(i,n,l){this.globalData=n,this.comp=l,this.data=i,this.layerId=Fe(),this.data.sr||(this.data.sr=1),this.effectsManager=new cm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function wi(){}wi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,n){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(n||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function ki(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,n)}ki.prototype.prepareFrame=function(){},L([$a,Ci,wi],ki),ki.prototype.getBaseElement=function(){return null},ki.prototype.renderFrame=function(){},ki.prototype.destroy=function(){},ki.prototype.initExpressions=function(){var e=Dp();if(e){var i=e("footage");this.layerInterface=i(this)}},ki.prototype.getFootageData=function(){return this.footageData};function $e(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,n),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=nt.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}$e.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},L([$a,Ci,wi],$e),$e.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))},$e.prototype.show=function(){},$e.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},$e.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},$e.prototype.resume=function(){this._canPlay=!0},$e.prototype.setRate=function(e){this.audio.rate(e)},$e.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},$e.prototype.getBaseElement=function(){return null},$e.prototype.destroy=function(){},$e.prototype.sourceRectAtTime=function(){},$e.prototype.initExpressions=function(){};function Ee(){}Ee.prototype.checkLayers=function(e){var i,n=this.layers.length,l;for(this.completeLayers=!0,i=n-1;i>=0;i-=1)this.elements[i]||(l=this.layers[i],l.ip-l.st<=e-this.layers[i].st&&l.op-l.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},Ee.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},Ee.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ee.prototype.createAudio=function(e){return new $e(e,this.globalData,this)},Ee.prototype.createFootage=function(e){return new ki(e,this.globalData,this)},Ee.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},Ee.prototype.includeLayers=function(e){this.completeLayers=!1;var i,n=e.length,l,h=this.layers.length;for(i=0;i<n;i+=1)for(l=0;l<h;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},Ee.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Ee.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Ee.prototype.buildElementParenting=function(e,i,n){for(var l=this.elements,h=this.layers,c=0,g=h.length;c<g;)h[c].ind==i&&(!l[c]||l[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(n.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,n):e.setHierarchy(n))),c+=1},Ee.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Ee.prototype.searchExtraCompositions=function(e){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},Ee.prototype.getElementById=function(e){var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},Ee.prototype.getElementByPath=function(e){var i=e.shift(),n;if(typeof i=="number")n=this.elements[i];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===i){n=this.elements[l];break}}return e.length===0?n:n.getElementByPath(e)},Ee.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new mo,this.globalData.slotManager=gy(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var _y={TRANSFORM_EFFECT:"transformEFfect"};function ds(){}ds.prototype={initTransform:function(){var i=new ye;this.finalTransform={mProp:this.data.ks?Ud.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,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 i,n=this.finalTransform.mat,l=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<h;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,n.cloneFromProps(i),l=0;l<h;l+=1)n.multiply(this.hierarchy[l].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 i=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<n;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),i=1;i<n;i+=1){var h=this.localTransforms[i].matrix;l.multiply(h)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(i=0;i<n;i+=1)c*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(_y.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new ye;var n=0,l=i.length;for(n=0;n<l;n+=1)this.localTransforms.push(i[n])}}},globalToLocal:function(i){var n=[];n.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&n.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,g=n.length,A;for(c=0;c<g;c+=1)A=n[c].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new ye};function uo(e,i,n){this.data=e,this.element=i,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,h,c=this.masksProperties?this.masksProperties.length:0;this.viewData=it(c),this.solidPath="";var g,A=this.masksProperties,b=0,w=[],O,G,x=Fe(),M,D,R,V,N="clipPath",C="clip-path";for(h=0;h<c;h+=1)if((A[h].mode!=="a"&&A[h].mode!=="n"||A[h].inv||A[h].o.k!==100||A[h].o.x)&&(N="mask",C="mask"),(A[h].mode==="s"||A[h].mode==="i")&&b===0?(M=Tt("rect"),M.setAttribute("fill","#ffffff"),M.setAttribute("width",this.element.comp.data.w||0),M.setAttribute("height",this.element.comp.data.h||0),w.push(M)):M=null,g=Tt("path"),A[h].mode==="n")this.viewData[h]={op:nt.getProp(this.element,A[h].o,0,.01,this.element),prop:Oa.getShapeProp(this.element,A[h],3),elem:g,lastPath:""},l.appendChild(g);else{b+=1,g.setAttribute("fill",A[h].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var E;if(A[h].x.k!==0?(N="mask",C="mask",V=nt.getProp(this.element,A[h].x,0,null,this.element),E=Fe(),D=Tt("filter"),D.setAttribute("id",E),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),l.appendChild(D),g.setAttribute("stroke",A[h].mode==="s"?"#000000":"#ffffff")):(R=null,V=null),this.storedData[h]={elem:g,x:V,expan:R,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},A[h].mode==="i"){G=w.length;var S=Tt("g");for(O=0;O<G;O+=1)S.appendChild(w[O]);var k=Tt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",x+"_"+b),k.appendChild(g),l.appendChild(k),S.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),w.length=0,w.push(S)}else w.push(g);A[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:g,lastPath:"",op:nt.getProp(this.element,A[h].o,0,.01,this.element),prop:Oa.getShapeProp(this.element,A[h],3),invRect:M},this.viewData[h].prop.k||this.drawPath(A[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=Tt(N),c=w.length,h=0;h<c;h+=1)this.maskElement.appendChild(w[h]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(C,"url("+f()+"#"+x+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}uo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},uo.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,n,l=this.masksProperties.length;for(n=0;n<l;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&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||e)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var h=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+")")),h.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))}},uo.prototype.getMaskelement=function(){return this.maskElement},uo.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},uo.prototype.drawPath=function(e,i,n){var l=" M"+i.v[0][0]+","+i.v[0][1],h,c;for(c=i._length,h=1;h<c;h+=1)l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[h][0]+","+i.i[h][1]+" "+i.v[h][0]+","+i.v[h][1];if(i.c&&c>1&&(l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),n.lastPath!==l){var g="";n.elem&&(i.c&&(g=e.inv?this.solidPath+l:l),n.elem.setAttribute("d",g)),n.lastPath=l}},uo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var mn=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=n;function i(l,h){var c=Tt("filter");return c.setAttribute("id",l),h!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function n(){var l=Tt("feColorMatrix");return l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),l}return e}(),hm=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),za={},pm="filter_result_";function jd(e){var i,n="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=Fe(),c=mn.createFilter(h,!0),g=0;this.filters=[];var A;for(i=0;i<l;i+=1){A=null;var b=e.data.ef[i].ty;if(za[b]){var w=za[b].effect;A=new w(c,e.effectsManager.effectElements[i],e,pm+g,n),n=pm+g,za[b].countsAsEffect&&(g+=1)}A&&this.filters.push(A)}g&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+f()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}jd.prototype.renderFrame=function(e){var i,n=this.filters.length;for(i=0;i<n;i+=1)this.filters[i].renderFrame(e)},jd.prototype.getEffects=function(e){var i,n=this.filters.length,l=[];for(i=0;i<n;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function w0(e,i,n){za[e]={effect:i,countsAsEffect:n}}function un(){}un.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var n=Tt("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=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 l=Tt("clipPath"),h=Tt("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=Fe();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+f()+"#"+c+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+c+")")}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 uo(this.data,this,this.globalData),this.renderableEffectsManager=new jd(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var n=this.layerId+"_"+i,l,h,c,g;if(i===1||i===3){var A=Tt("mask");A.setAttribute("id",n),A.setAttribute("mask-type",i===3?"luminance":"alpha"),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(c),this.globalData.defs.appendChild(A),!hm.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=Fe(),h=mn.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(mn.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(c),A.appendChild(g),g.setAttribute("filter","url("+f()+"#"+l+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var w=Tt("g");b.appendChild(w),l=Fe(),h=mn.createFilter(l);var O=Tt("feComponentTransfer");O.setAttribute("in","SourceGraphic"),h.appendChild(O);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),O.appendChild(G),this.globalData.defs.appendChild(h);var x=Tt("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()+"#"+l+")"),w.appendChild(x),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(c),hm.maskType||(b.setAttribute("mask-type","luminance"),h.appendChild(mn.createAlphaToLuminanceFilter()),g=Tt("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=n}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+i+")")}};function cs(){}cs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function fn(){}(function(){var e={initElement:function(n,l,h){this.initFrame(),this.initBaseData(n,l,h),this.initTransform(n,l,h),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()}};L([$a,q(e)],fn)})();function vn(e,i,n){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}L([Ci,ds,un,cs,wi,fn],vn),vn.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("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",e),this.layerElement.appendChild(this.innerElem)},vn.prototype.sourceRectAtTime=function(){return this.sourceRect};function Cy(e,i){this.elem=e,this.pos=i}function mm(){}mm.prototype={addShapeToModifiers:function(i){var n,l=this.shapeModifiers.length;for(n=0;n<l;n+=1)this.shapeModifiers[n].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var n=0,l=this.shapeModifiers.length;n<l;)if(this.shapeModifiers[n].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,n=this.shapes.length;for(i=0;i<n;i+=1)this.shapes[i].sh.reset();n=this.shapeModifiers.length;var l;for(i=n-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var n=this.processedElements,l=0,h=n.length;l<h;){if(n[l].elem===i)return n[l].pos;l+=1}return 0},addProcessedElement:function(i,n){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===i){l[h].pos=n;return}l.push(new Cy(i,n))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var um={1:"butt",2:"round",3:"square"},fm={1:"miter",2:"round",3:"bevel"};function vm(e,i,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=i,this._isAnimated=!!n.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}vm.prototype.setAsAnimated=function(){this._isAnimated=!0};function gm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}gm.prototype.reset=function(){this.d="",this._mdf=!1};function Va(e,i,n,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=X("float32",i.length?i.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(l);var h,c=i.length||0,g;for(h=0;h<c;h+=1)g=nt.getProp(e,i[h].v,0,0,this),this.k=g.k||this.k,this.dataProps[h]={n:i[h].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}Va.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<n;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},L([me],Va);function bm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.w=nt.getProp(e,i.w,0,null,this),this.d=new Va(e,i.d||{},"svg",this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}L([me],bm);function ym(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n}L([me],ym);function Em(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}L([me],Em);function gn(e,i,n){this.data=i,this.c=X("uint8c",i.p*4);var l=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=X("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(n),this.prop=nt.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}gn.prototype.comparePoints=function(e,i){for(var n=0,l=this.o.length/2,h;n<l;){if(h=Math.abs(e[n*4]-e[i*4+n*2]),h>.01)return!1;n+=1}return!0},gn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},gn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,n=this.data.p*4,l,h;for(i=0;i<n;i+=1)l=i%4===0?100:255,h=Math.round(this.prop.v[i]*l),this.c[i]!==h&&(this.c[i]=h,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,i=this.data.p*4;i<n;i+=1)l=i%2===0?100:1,h=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==h&&(this.o[i-this.data.p*4]=h,this._omdf=!e);this._mdf=!e}},L([me],gn);function hs(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,n)}hs.prototype.initGradientData=function(e,i,n){this.o=nt.getProp(e,i.o,0,.01,this),this.s=nt.getProp(e,i.s,1,null,this),this.e=nt.getProp(e,i.e,1,null,this),this.h=nt.getProp(e,i.h||{k:0},0,.01,this),this.a=nt.getProp(e,i.a||{k:0},0,wt,this),this.g=new gn(e,i.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,i),this.setGradientOpacity(i,n),this._isAnimated=!!this._isAnimated},hs.prototype.setGradientData=function(e,i){var n=Fe(),l=Tt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",n),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var h=[],c,g,A;for(A=i.g.p*4,g=0;g<A;g+=4)c=Tt("stop"),l.appendChild(c),h.push(c);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=l,this.cst=h},hs.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var n,l,h,c=Tt("mask"),g=Tt("path");c.appendChild(g);var A=Fe(),b=Fe();c.setAttribute("id",b);var w=Tt(e.t===1?"linearGradient":"radialGradient");w.setAttribute("id",A),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),h=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var O=this.stops;for(l=e.g.p*4;l<h;l+=2)n=Tt("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(n),O.push(n);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+f()+"#"+A+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",um[e.lc||2]),g.setAttribute("stroke-linejoin",fm[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=w,this.ms=c,this.ost=O,this.maskId=b,i.msElem=g}},L([me],hs);function Tm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=nt.getProp(e,i.w,0,null,this),this.d=new Va(e,i.d||{},"svg",this),this.initGradientData(e,i,n),this._isAnimated=!!this._isAnimated}L([hs,me],Tm);function wy(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function ky(e,i,n){this.transform={mProps:e,op:i,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var xm=function(i,n,l,h){if(n===0)return"";var c=i.o,g=i.i,A=i.v,b,w=" M"+h.applyToPointStringified(A[0][0],A[0][1]);for(b=1;b<n;b+=1)w+=" C"+h.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+h.applyToPointStringified(g[b][0],g[b][1])+" "+h.applyToPointStringified(A[b][0],A[b][1]);return l&&n&&(w+=" C"+h.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+h.applyToPointStringified(g[0][0],g[0][1])+" "+h.applyToPointStringified(A[0][0],A[0][1]),w+="z"),w},Ny=function(){var e=new ye,i=new ye,n={createRenderFunction:l};function l(G){switch(G.ty){case"fl":return A;case"gf":return w;case"gs":return b;case"st":return O;case"sh":case"el":case"rc":case"sr":return g;case"tr":return h;case"no":return c;default:return null}}function h(G,x,M){(M||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(M||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function c(){}function g(G,x,M){var D,R,V,N,C,E,S=x.styles.length,k=x.lvl,F,H,K,rt;for(E=0;E<S;E+=1){if(N=x.sh._mdf||M,x.styles[E].lvl<k){for(H=i.reset(),K=k-x.styles[E].lvl,rt=x.transformers.length-1;!N&&K>0;)N=x.transformers[rt].mProps._mdf||N,K-=1,rt-=1;if(N)for(K=k-x.styles[E].lvl,rt=x.transformers.length-1;K>0;)H.multiply(x.transformers[rt].mProps.v),K-=1,rt-=1}else H=e;if(F=x.sh.paths,R=F._length,N){for(V="",D=0;D<R;D+=1)C=F.shapes[D],C&&C._length&&(V+=xm(C,C._length,C.c,H));x.caches[E]=V}else V=x.caches[E];x.styles[E].d+=G.hd===!0?"":V,x.styles[E]._mdf=N||x.styles[E]._mdf}}function A(G,x,M){var D=x.style;(x.c._mdf||M)&&D.pElem.setAttribute("fill","rgb("+pe(x.c.v[0])+","+pe(x.c.v[1])+","+pe(x.c.v[2])+")"),(x.o._mdf||M)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,M){w(G,x,M),O(G,x,M)}function w(G,x,M){var D=x.gf,R=x.g._hasOpacity,V=x.s.v,N=x.e.v;if(x.o._mdf||M){var C=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(C,x.o.v)}if(x.s._mdf||M){var E=G.t===1?"x1":"cx",S=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(S,V[1]),R&&!x.g._collapsable&&(x.of.setAttribute(E,V[0]),x.of.setAttribute(S,V[1]))}var k,F,H,K;if(x.g._cmdf||M){k=x.cst;var rt=x.g.c;for(H=k.length,F=0;F<H;F+=1)K=k[F],K.setAttribute("offset",rt[F*4]+"%"),K.setAttribute("stop-color","rgb("+rt[F*4+1]+","+rt[F*4+2]+","+rt[F*4+3]+")")}if(R&&(x.g._omdf||M)){var yt=x.g.o;for(x.g._collapsable?k=x.cst:k=x.ost,H=k.length,F=0;F<H;F+=1)K=k[F],x.g._collapsable||K.setAttribute("offset",yt[F*2]+"%"),K.setAttribute("stop-opacity",yt[F*2+1])}if(G.t===1)(x.e._mdf||M)&&(D.setAttribute("x2",N[0]),D.setAttribute("y2",N[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",N[0]),x.of.setAttribute("y2",N[1])));else{var mt;if((x.s._mdf||x.e._mdf||M)&&(mt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)),D.setAttribute("r",mt),R&&!x.g._collapsable&&x.of.setAttribute("r",mt)),x.e._mdf||x.h._mdf||x.a._mdf||M){mt||(mt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)));var st=Math.atan2(N[1]-V[1],N[0]-V[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=mt*xt,et=Math.cos(st+x.a.v)*ct+V[0],I=Math.sin(st+x.a.v)*ct+V[1];D.setAttribute("fx",et),D.setAttribute("fy",I),R&&!x.g._collapsable&&(x.of.setAttribute("fx",et),x.of.setAttribute("fy",I))}}}function O(G,x,M){var D=x.style,R=x.d;R&&(R._mdf||M)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||M)&&D.pElem.setAttribute("stroke","rgb("+pe(x.c.v[0])+","+pe(x.c.v[1])+","+pe(x.c.v[2])+")"),(x.o._mdf||M)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||M)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return n}();function Xt(e,i,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,n),this.prevViewData=[]}L([Ci,ds,un,mm,cs,wi,fn],Xt),Xt.prototype.initSecondaryElement=function(){},Xt.prototype.identityMatrix=new ye,Xt.prototype.buildExpressionInterface=function(){},Xt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Xt.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,n,l,h=this.stylesList.length,c,g=[],A=!1;for(l=0;l<h;l+=1){for(c=this.stylesList[l],A=!1,g.length=0,e=0;e<i;e+=1)n=this.shapes[e],n.styles.indexOf(c)!==-1&&(g.push(n),A=n._isAnimated||A);g.length>1&&A&&this.setShapesAsAnimated(g)}},Xt.prototype.setShapesAsAnimated=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i].setAsAnimated()},Xt.prototype.createStyleElement=function(e,i){var n,l=new gm(e,i),h=l.pElem;if(e.ty==="st")n=new bm(this,e,l);else if(e.ty==="fl")n=new ym(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?hs:Tm;n=new c(this,e,l),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),h.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new Em(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",um[e.lc||2]),h.setAttribute("stroke-linejoin",fm[e.lj||2]),h.setAttribute("fill-opacity","0"),e.lj===1&&h.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&h.setAttribute("fill-rule","evenodd"),e.ln&&h.setAttribute("id",e.ln),e.cl&&h.setAttribute("class",e.cl),e.bm&&(h.style["mix-blend-mode"]=Wd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,n),n},Xt.prototype.createGroupElement=function(e){var i=new wy;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=Wd(e.bm)),i},Xt.prototype.createTransformElement=function(e,i){var n=Ud.getTransformProperty(this,e,this),l=new ky(n,n.o,i);return this.addToAnimatedContents(e,l),l},Xt.prototype.createShapeElement=function(e,i,n){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=Oa.getShapeProp(this,e,l,this),c=new vm(i,n,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Xt.prototype.addToAnimatedContents=function(e,i){for(var n=0,l=this.animatedContents.length;n<l;){if(this.animatedContents[n].element===i)return;n+=1}this.animatedContents.push({fn:Ny.createRenderFunction(e),element:i,data:e})},Xt.prototype.setElementStyles=function(e){var i=e.styles,n,l=this.stylesList.length;for(n=0;n<l;n+=1)this.stylesList[n].closed||i.push(this.stylesList[n])},Xt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Xt.prototype.searchShapes=function(e,i,n,l,h,c,g){var A=[].concat(c),b,w=e.length-1,O,G,x=[],M=[],D,R,V;for(b=w;b>=0;b-=1){if(V=this.searchProcessedElement(e[b]),V?i[b]=n[V-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")V?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],h),e[b]._render&&i[b].style.pElem.parentNode!==l&&l.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!V)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,O=0;O<G;O+=1)i[b].prevViewData[O]=i[b].it[O];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,h+1,A,g),e[b]._render&&i[b].gr.parentNode!==l&&l.appendChild(i[b].gr)}else e[b].ty==="tr"?(V||(i[b]=this.createTransformElement(e[b],l)),D=i[b].transform,A.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(V||(i[b]=this.createShapeElement(e[b],A,h)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(V?(R=i[b],R.closed=!1):(R=Ii.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),M.push(R)):e[b].ty==="rp"&&(V?(R=i[b],R.closed=!0):(R=Ii.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),M.push(R));this.addProcessedElement(e[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=M.length,b=0;b<w;b+=1)M[b].closed=!0},Xt.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Xt.prototype.renderShape=function(){var e,i=this.animatedContents.length,n;for(e=0;e<i;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},Xt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function qd(e,i,n,l,h,c){this.o=e,this.sw=i,this.sc=n,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!i,sc:!!n,fc:!!l,m:!0,p:!0}}qd.prototype.update=function(e,i,n,l,h,c){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!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,g=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,g=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,g=!0),g};function we(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}we.prototype.defaultBoxWidth=[0,0],we.prototype.copyData=function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},we.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},we.prototype.searchProperty=function(){return this.searchKeyframes()},we.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},we.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},we.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,h=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(l=0;l<h;l+=1)n!==this.keysIndex?c=this.effectsSequence[l](c,c.t):c=this.effectsSequence[l](this.currentData,c.t);i!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},we.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,n=0,l=e.length;n<=l-1&&!(n===l-1||e[n+1].t>i);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},we.prototype.buildFinalText=function(e){for(var i=[],n=0,l=e.length,h,c,g=!1,A=!1,b="";n<l;)g=A,A=!1,h=e.charCodeAt(n),b=e.charAt(n),mo.isCombinedCharacter(h)?g=!0:h>=55296&&h<=56319?mo.isRegionalFlag(e,n)?b=e.substr(n,14):(c=e.charCodeAt(n+1),c>=56320&&c<=57343&&(mo.isModifier(h,c)?(b=e.substr(n,2),g=!0):mo.isFlagEmoji(e.substr(n,4))?b=e.substr(n,4):b=e.substr(n,2))):h>56319?(c=e.charCodeAt(n+1),mo.isVariationSelector(h)&&(g=!0)):mo.isZeroWidthJoiner(h)&&(g=!0,A=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),n+=b.length;return i},we.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,n=this.data,l=[],h,c,g,A=0,b,w=n.m.g,O=0,G=0,x=0,M=[],D=0,R=0,V,N,C=i.getFontByName(e.f),E,S=0,k=lm(C);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var F=e.tr/1e3*e.finalSize,H;if(e.sz)for(var K=!0,rt=e.sz[0],yt=e.sz[1],mt,st;K;){st=this.buildFinalText(e.t),mt=0,D=0,c=st.length,F=e.tr/1e3*e.finalSize;var xt=-1;for(h=0;h<c;h+=1)H=st[h].charCodeAt(0),g=!1,st[h]===" "?xt=h:(H===13||H===3)&&(D=0,g=!0,mt+=e.finalLineHeight||e.finalSize*1.2),i.chars?(E=i.getCharData(st[h],C.fStyle,C.fFamily),S=g?0:E.w*e.finalSize/100):S=i.measureText(st[h],e.f,e.finalSize),D+S>rt&&st[h]!==" "?(xt===-1?c+=1:h=xt,mt+=e.finalLineHeight||e.finalSize*1.2,st.splice(h,xt===h?1:0,"\r"),xt=-1,D=0):(D+=S,D+=F);mt+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<mt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,c=e.finalText.length,K=!1)}D=-F,S=0;var ct=0,et;for(h=0;h<c;h+=1)if(g=!1,et=e.finalText[h],H=et.charCodeAt(0),H===13||H===3?(ct=0,M.push(D),R=D>R?D:R,D=-2*F,b="",g=!0,x+=1):b=et,i.chars?(E=i.getCharData(et,C.fStyle,i.getFontByName(e.f).fFamily),S=g?0:E.w*e.finalSize/100):S=i.measureText(b,e.f,e.finalSize),et===" "?ct+=S+F:(D+=S+F+ct,ct=0),l.push({l:S,an:S,add:O,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(O+=S,b===""||b===" "||h===c-1){for((b===""||b===" ")&&(O-=S);G<=h;)l[G].an=O,l[G].ind=A,l[G].extra=S,G+=1;A+=1,O=0}}else if(w==3){if(O+=S,b===""||h===c-1){for(b===""&&(O-=S);G<=h;)l[G].an=O,l[G].ind=A,l[G].extra=S,G+=1;O=0,A+=1}}else l[A].ind=A,l[A].extra=0,A+=1;if(e.l=l,R=D>R?D:R,M.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=M;var I=n.a,P,v;N=I.length;var y,Y,$=[];for(V=0;V<N;V+=1){for(P=I[V],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),Y=0,y=P.s.b,h=0;h<c;h+=1)v=l[h],v.anIndexes[V]=Y,(y==1&&v.val!==""||y==2&&v.val!==""&&v.val!==" "||y==3&&(v.n||v.val==" "||h==c-1)||y==4&&(v.n||h==c-1))&&(P.s.rn===1&&$.push(Y),Y+=1);n.a[V].s.totalChars=Y;var at=-1,vt;if(P.s.rn===1)for(h=0;h<c;h+=1)v=l[h],at!=v.anIndexes[V]&&(at=v.anIndexes[V],vt=$.splice(Math.floor(Math.random()*$.length),1)[0]),v.anIndexes[V]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=C.ascent*e.finalSize/100},we.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var n=this.copyData({},this.data.d.k[i].s);n=this.copyData(n,e),this.data.d.k[i].s=n,this.recalculate(i),this.setCurrentData(n),this.elem.addDynamicProperty(this)},we.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},we.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},we.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Ly=function(){var e=Math.max,i=Math.min,n=Math.floor;function l(c,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=nt.getProp(c,g.s||{k:0},0,0,this),"e"in g?this.e=nt.getProp(c,g.e,0,0,this):this.e={v:100},this.o=nt.getProp(c,g.o||{k:0},0,0,this),this.xe=nt.getProp(c,g.xe||{k:0},0,0,this),this.ne=nt.getProp(c,g.ne||{k:0},0,0,this),this.sm=nt.getProp(c,g.sm||{k:100},0,0,this),this.a=nt.getProp(c,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,b=0,w=1,O=1;this.ne.v>0?A=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:O=1+this.xe.v/100;var G=nn.getBezierEasing(A,b,w,O).get,x=0,M=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===M?x=g>=D?1:0:x=e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x=G(x);else if(R===3)D===M?x=g>=D?0:1:x=1-e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x=G(x);else if(R===4)D===M?x=0:(x=e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===M)x=0;else{var V=D-M;g=i(e(0,g+.5-M),D-M);var N=-V/2+g,C=V/2;x=Math.sqrt(1-N*N/(C*C))}x=G(x)}else R===6?(D===M?x=0:(g=i(e(0,g+.5-M),D-M),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-M)))/2),x=G(x)):(g>=n(M)&&(g-M<0?x=e(0,i(i(D,1)-(M-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var S=.5-E*.5;x<S?x=0:(x=(x-S)/E,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 A=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/A,w=this.s.v/A+b,O=this.e.v/A+b;if(w>O){var G=w;w=O,O=G}this.finalS=w,this.finalE=O}},L([me],l);function h(c,g,A){return new l(c,g,A)}return{getTextSelectorProp:h}}();function Oy(e,i,n){var l={propType:!1},h=nt.getProp,c=i.a;this.a={r:c.r?h(e,c.r,0,wt,n):l,rx:c.rx?h(e,c.rx,0,wt,n):l,ry:c.ry?h(e,c.ry,0,wt,n):l,sk:c.sk?h(e,c.sk,0,wt,n):l,sa:c.sa?h(e,c.sa,0,wt,n):l,s:c.s?h(e,c.s,1,.01,n):l,a:c.a?h(e,c.a,1,0,n):l,o:c.o?h(e,c.o,0,.01,n):l,p:c.p?h(e,c.p,1,0,n):l,sw:c.sw?h(e,c.sw,0,0,n):l,sc:c.sc?h(e,c.sc,1,0,n):l,fc:c.fc?h(e,c.fc,1,0,n):l,fh:c.fh?h(e,c.fh,0,0,n):l,fs:c.fs?h(e,c.fs,0,.01,n):l,fb:c.fb?h(e,c.fb,0,.01,n):l,t:c.t?h(e,c.t,0,0,n):l},this.s=Ly.getTextSelectorProp(e,i.s,n),this.s.t=i.s.t}function fo(e,i,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=n,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}fo.prototype.searchProperties=function(){var e,i=this._textData.a.length,n,l=nt.getProp;for(e=0;e<i;e+=1)n=this._textData.a[e],this._animatorsData[e]=new Oy(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(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=l(this._elem,this._textData.m.a,1,0,this)},fo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,g=this._renderType,A=this.renderedLetters.length,b,w,O,G,x=e.l,M,D,R,V,N,C,E,S,k,F,H,K,rt,yt,mt;if(this._hasMaskedPath){if(mt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=mt.v;this._pathData.r.v&&(st=st.reverse()),M={tLength:0,segments:[]},G=st._length-1;var xt;for(K=0,O=0;O<G;O+=1)xt=Rr.buildBezierData(st.v[O],st.v[O+1],[st.o[O][0]-st.v[O][0],st.o[O][1]-st.v[O][1]],[st.i[O+1][0]-st.v[O+1][0],st.i[O+1][1]-st.v[O+1][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),K+=xt.segmentLength;O=G,mt.v.c&&(xt=Rr.buildBezierData(st.v[O],st.v[0],[st.o[O][0]-st.v[O][0],st.o[O][1]-st.v[O][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),K+=xt.segmentLength),this._pathData.pi=M}if(M=this._pathData.pi,D=this._pathData.f.v,E=0,C=1,V=0,N=!0,F=M.segments,D<0&&mt.v.c)for(M.tLength<Math.abs(D)&&(D=-Math.abs(D)%M.tLength),E=F.length-1,k=F[E].points,C=k.length-1;D<0;)D+=k[C].partialLength,C-=1,C<0&&(E-=1,k=F[E].points,C=k.length-1);k=F[E].points,S=k[C-1],R=k[C],H=R.partialLength}G=x.length,b=0,w=0;var ct=e.finalSize*1.2*.714,et=!0,I,P,v,y,Y;y=l.length;var $,at=-1,vt,Et,Mt,Rt=D,re=E,ze=C,Dr=-1,Ve,ue,Ze,Ft,ht,ri,Li,ii,Fr="",oi=this.defaultPropsArray,si;if(e.j===2||e.j===1){var Be=0,Oi=0,Mi=e.j===2?-.5:-1,Sr=0,Ri=!0;for(O=0;O<G;O+=1)if(x[O].n){for(Be&&(Be+=Oi);Sr<O;)x[Sr].animatorJustifyOffset=Be,Sr+=1;Be=0,Ri=!0}else{for(v=0;v<y;v+=1)I=l[v].a,I.t.propType&&(Ri&&e.j===2&&(Oi+=I.t.v*Mi),P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?Be+=I.t.v*$[0]*Mi:Be+=I.t.v*$*Mi);Ri=!1}for(Be&&(Be+=Oi);Sr<O;)x[Sr].animatorJustifyOffset=Be,Sr+=1}for(O=0;O<G;O+=1){if(c.reset(),Ve=1,x[O].n)b=0,w+=e.yOffset,w+=et?1:0,D=Rt,et=!1,this._hasMaskedPath&&(E=re,C=ze,k=F[E].points,S=k[C-1],R=k[C],H=R.partialLength,V=0),Fr="",ii="",ri="",si="",oi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Dr!==x[O].line){switch(e.j){case 1:D+=K-e.lineWidths[x[O].line];break;case 2:D+=(K-e.lineWidths[x[O].line])/2;break;default:break}Dr=x[O].line}at!==x[O].ind&&(x[at]&&(D+=x[at].extra),D+=x[O].an/2,at=x[O].ind),D+=n[0]*x[O].an*.005;var Ir=0;for(v=0;v<y;v+=1)I=l[v].a,I.p.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?Ir+=I.p.v[0]*$[0]:Ir+=I.p.v[0]*$),I.a.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?Ir+=I.a.v[0]*$[0]:Ir+=I.a.v[0]*$);for(N=!0,this._pathData.a.v&&(D=x[0].an*.5+(K-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*at/(G-1),D+=this._pathData.f.v);N;)V+H>=D+Ir||!k?(rt=(D+Ir-V)/R.partialLength,Et=S.point[0]+(R.point[0]-S.point[0])*rt,Mt=S.point[1]+(R.point[1]-S.point[1])*rt,c.translate(-n[0]*x[O].an*.005,-(n[1]*ct)*.01),N=!1):k&&(V+=R.partialLength,C+=1,C>=k.length&&(C=0,E+=1,F[E]?k=F[E].points:mt.v.c?(C=0,E=0,k=F[E].points):(V-=R.partialLength,k=null)),k&&(S=R,R=k[C],H=R.partialLength));vt=x[O].an/2-x[O].add,c.translate(-vt,0,0)}else vt=x[O].an/2-x[O].add,c.translate(-vt,0,0),c.translate(-n[0]*x[O].an*.005,-n[1]*ct*.01,0);for(v=0;v<y;v+=1)I=l[v].a,I.t.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?$.length?D+=I.t.v*$[0]:D+=I.t.v*$:$.length?b+=I.t.v*$[0]:b+=I.t.v*$));for(e.strokeWidthAnim&&(Ze=e.sw||0),e.strokeColorAnim&&(e.sc?ue=[e.sc[0],e.sc[1],e.sc[2]]:ue=[0,0,0]),e.fillColorAnim&&e.fc&&(Ft=[e.fc[0],e.fc[1],e.fc[2]]),v=0;v<y;v+=1)I=l[v].a,I.a.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?c.translate(-I.a.v[0]*$[0],-I.a.v[1]*$[1],I.a.v[2]*$[2]):c.translate(-I.a.v[0]*$,-I.a.v[1]*$,I.a.v[2]*$));for(v=0;v<y;v+=1)I=l[v].a,I.s.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?c.scale(1+(I.s.v[0]-1)*$[0],1+(I.s.v[1]-1)*$[1],1):c.scale(1+(I.s.v[0]-1)*$,1+(I.s.v[1]-1)*$,1));for(v=0;v<y;v+=1){if(I=l[v].a,P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),I.sk.propType&&($.length?c.skewFromAxis(-I.sk.v*$[0],I.sa.v*$[1]):c.skewFromAxis(-I.sk.v*$,I.sa.v*$)),I.r.propType&&($.length?c.rotateZ(-I.r.v*$[2]):c.rotateZ(-I.r.v*$)),I.ry.propType&&($.length?c.rotateY(I.ry.v*$[1]):c.rotateY(I.ry.v*$)),I.rx.propType&&($.length?c.rotateX(I.rx.v*$[0]):c.rotateX(I.rx.v*$)),I.o.propType&&($.length?Ve+=(I.o.v*$[0]-Ve)*$[0]:Ve+=(I.o.v*$-Ve)*$),e.strokeWidthAnim&&I.sw.propType&&($.length?Ze+=I.sw.v*$[0]:Ze+=I.sw.v*$),e.strokeColorAnim&&I.sc.propType)for(ht=0;ht<3;ht+=1)$.length?ue[ht]+=(I.sc.v[ht]-ue[ht])*$[0]:ue[ht]+=(I.sc.v[ht]-ue[ht])*$;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(ht=0;ht<3;ht+=1)$.length?Ft[ht]+=(I.fc.v[ht]-Ft[ht])*$[0]:Ft[ht]+=(I.fc.v[ht]-Ft[ht])*$;I.fh.propType&&($.length?Ft=Pp(Ft,I.fh.v*$[0]):Ft=Pp(Ft,I.fh.v*$)),I.fs.propType&&($.length?Ft=Mp(Ft,I.fs.v*$[0]):Ft=Mp(Ft,I.fs.v*$)),I.fb.propType&&($.length?Ft=Rp(Ft,I.fb.v*$[0]):Ft=Rp(Ft,I.fb.v*$))}}for(v=0;v<y;v+=1)I=l[v].a,I.p.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),this._hasMaskedPath?$.length?c.translate(0,I.p.v[1]*$[0],-I.p.v[2]*$[1]):c.translate(0,I.p.v[1]*$,-I.p.v[2]*$):$.length?c.translate(I.p.v[0]*$[0],I.p.v[1]*$[1],-I.p.v[2]*$[2]):c.translate(I.p.v[0]*$,I.p.v[1]*$,-I.p.v[2]*$));if(e.strokeWidthAnim&&(ri=Ze<0?0:Ze),e.strokeColorAnim&&(Li="rgb("+Math.round(ue[0]*255)+","+Math.round(ue[1]*255)+","+Math.round(ue[2]*255)+")"),e.fillColorAnim&&e.fc&&(ii="rgb("+Math.round(Ft[0]*255)+","+Math.round(Ft[1]*255)+","+Math.round(Ft[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,n[1]*ct*.01+w,0),this._pathData.p.v){yt=(R.point[1]-S.point[1])/(R.point[0]-S.point[0]);var vo=Math.atan(yt)*180/Math.PI;R.point[0]<S.point[0]&&(vo+=180),c.rotate(-vo*Math.PI/180)}c.translate(Et,Mt,0),D-=n[0]*x[O].an*.005,x[O+1]&&at!==x[O+1].ind&&(D+=x[O].an/2,D+=e.tr*.001*e.finalSize)}else{switch(c.translate(b,w,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(x[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[O].line]),0,0);break;case 2:c.translate(x[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[O].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(vt,0,0),c.translate(n[0]*x[O].an*.005,n[1]*ct*.01,0),b+=x[O].l+e.tr*.001*e.finalSize}g==="html"?Fr=c.toCSS():g==="svg"?Fr=c.to2dCSS():oi=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],si=Ve}A<=O?(Y=new qd(si,ri,Li,ii,Fr,oi),this.renderedLetters.push(Y),A+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[O],this.lettersChangedFlag=Y.update(si,ri,Li,ii,Fr,oi)||this.lettersChangedFlag)}}},fo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},fo.prototype.mHelper=new ye,fo.prototype.defaultPropsArray=[],L([me],fo);function dr(){}dr.prototype.initElement=function(e,i,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,n),this.textProperty=new we(this,e.t,this.dynamicProperties),this.textAnimator=new fo(e.t,this.renderType,this),this.initTransform(e,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},dr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},dr.prototype.createPathShape=function(e,i){var n,l=i.length,h,c="";for(n=0;n<l;n+=1)i[n].ty==="sh"&&(h=i[n].ks.k,c+=xm(h,h.i.length,!0,e));return c},dr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},dr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},dr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},dr.prototype.applyTextPropertiesToMatrix=function(e,i,n,l,h){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}i.translate(l,h,0)},dr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},dr.prototype.emptyProp=new qd,dr.prototype.destroy=function(){},dr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var My={shapes:[]};function ti(e,i,n){this.textSpans=[],this.renderType="svg",this.initElement(e,i,n)}L([Ci,ds,un,cs,wi,fn,dr],ti),ti.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ti.prototype.buildTextContents=function(e){for(var i=0,n=e.length,l=[],h="";i<n;)e[i]==="\r"||e[i]===""?(l.push(h),h=""):h+=e[i],i+=1;return l.push(h),l},ti.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var l=n.it[n.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},ti.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,n=this.textProperty.currentData;this.renderedLetters=it(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 l=this.globalData.fontManager.getFontByName(n.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=n.fWeight,c=n.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],A=!!this.globalData.fontManager.chars;i=g.length;var b,w=this.mHelper,O="",G=this.data.singleShape,x=0,M=0,D=!0,R=n.tr*.001*n.finalSize;if(G&&!A&&!n.sz){var V=this.textContainer,N="start";switch(n.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}V.setAttribute("text-anchor",N),V.setAttribute("letter-spacing",R);var C=this.buildTextContents(n.finalText);for(i=C.length,M=n.ps?n.ps[1]+n.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=C[e],b.setAttribute("x",0),b.setAttribute("y",M),b.style.display="inherit",V.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,M+=n.finalLineHeight;this.layerElement.appendChild(V)}else{var E=this.textSpans.length,S;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!A||!G||e===0){if(b=E>e?this.textSpans[e].span:Tt(A?"g":"text"),E<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,A){var k=Tt("g");b.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),G&&(g[e].n&&(x=-R,M+=n.yOffset,M+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(n,w,g[e].line,x,M),x+=g[e].l||0,x+=R),A){S=this.globalData.fontManager.getCharData(n.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var F;if(S.t===1)F=new bn(S.data,this.globalData,this);else{var H=My;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,n.finalSize)),F=new Xt(H,this.globalData,this)}if(this.textSpans[e].glyph){var K=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(K.layerElement),K.destroy()}this.textSpans[e].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[e].childSpan.appendChild(F.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",O)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ti.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},ti.prototype.getValue=function(){var e,i=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ti.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 e,i,n=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var h,c,g;for(e=0;e<i;e+=1)l[e].n||(h=n[e],c=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),h._mdf.m&&c.setAttribute("transform",h.m),h._mdf.o&&c.setAttribute("opacity",h.o),h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h._mdf.sc&&c.setAttribute("stroke",h.sc),h._mdf.fc&&c.setAttribute("fill",h.fc))}};function Xd(e,i,n){this.initElement(e,i,n)}L([vn],Xd),Xd.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Ni(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initFrame(),this.initTransform(e,i,n),this.initHierarchy()}Ni.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Ni.prototype.renderFrame=function(){},Ni.prototype.getBaseElement=function(){return null},Ni.prototype.destroy=function(){},Ni.prototype.sourceRectAtTime=function(){},Ni.prototype.hide=function(){},L([Ci,ds,cs,wi],Ni);function ne(){}L([Ee],ne),ne.prototype.createNull=function(e){return new Ni(e,this.globalData,this)},ne.prototype.createShape=function(e){return new Xt(e,this.globalData,this)},ne.prototype.createText=function(e){return new ti(e,this.globalData,this)},ne.prototype.createImage=function(e){return new vn(e,this.globalData,this)},ne.prototype.createSolid=function(e){return new Xd(e,this.globalData,this)},ne.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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 i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=Fe();n.setAttribute("id",h),n.appendChild(l),this.layerElement.setAttribute("clip-path","url("+f()+"#"+h+")"),i.appendChild(n),this.layers=e.layers,this.elements=it(e.layers.length)},ne.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},ne.prototype.updateContainerSize=function(){},ne.prototype.findIndexByInd=function(e){var i=0,n=this.layers.length;for(i=0;i<n;i+=1)if(this.layers[i].ind===e)return i;return-1},ne.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var n=this.createItem(this.layers[e]);if(i[e]=n,Ia()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(n);else{var h=i[l],c=h.getMatte(this.layers[e].tt);n.setMatte(c)}}}},ne.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,n=this.elements.length;i<n;){if(this.elements[i]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,h=this.elements[l],c=h.getMatte(this.layers[i].tt);e.setMatte(c);break}i+=1}}},ne.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},ne.prototype.appendElementInPos=function(e,i){var n=e.getBaseElement();if(n){for(var l=0,h;l<i;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(h=this.elements[l].getBaseElement()),l+=1;h?this.layerElement.insertBefore(n,h):this.layerElement.appendChild(n)}},ne.prototype.hide=function(){this.layerElement.style.display="none"},ne.prototype.show=function(){this.layerElement.style.display="block"};function ei(){}L([Ci,ds,cs,wi,fn],ei),ei.prototype.initElement=function(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initTransform(e,i,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},ei.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var n,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=l-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))}},ei.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ei.prototype.setElements=function(e){this.elements=e},ei.prototype.getElements=function(){return this.elements},ei.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},ei.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function bn(e,i,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,n),this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}L([ne,ei,un],bn),bn.prototype.createComp=function(e){return new bn(e,this.globalData,this)};function Zd(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var n="";if(i&&i.title){var l=Tt("title"),h=Fe();l.setAttribute("id",h),l.textContent=i.title,this.svgElement.appendChild(l),n+=h}if(i&&i.description){var c=Tt("desc"),g=Fe();c.setAttribute("id",g),c.textContent=i.description,this.svgElement.appendChild(c),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var A=Tt("defs");this.svgElement.appendChild(A);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:A,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return L([ne],Zd),Zd.prototype.createComp=function(e){return new bn(e,this.globalData,this)},Hb("svg",Zd),Ii.registerModifier("tm",Ar),Ii.registerModifier("pb",an),Ii.registerModifier("rp",Pr),Ii.registerModifier("rd",ln),Ii.registerModifier("zz",cn),Ii.registerModifier("op",hn),Pt})});var Ga=globalThis,Ya=Ga.ShadowRoot&&(Ga.ShadyCSS===void 0||Ga.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jd=Symbol(),Sm=new WeakMap,yn=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==Jd)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(Ya&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Sm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Sm.set(t,o))}return o}toString(){return this.cssText}},Im=a=>new yn(typeof a=="string"?a:a+"",void 0,Jd),B=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((r,s,d)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[d+1],a[0]);return new yn(t,a,Jd)},tc=(a,o)=>{if(Ya)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Ga.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,a.appendChild(r)}},Ka=Ya?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Im(t)})(a):a;var{is:By,defineProperty:Uy,getOwnPropertyDescriptor:Hy,getOwnPropertyNames:Gy,getOwnPropertySymbols:Yy,getPrototypeOf:Ky}=Object,Pi=globalThis,_m=Pi.trustedTypes,Wy=_m?_m.emptyScript:"",ec=Pi.reactiveElementPolyfillSupport,En=(a,o)=>a,Tn={toAttribute(a,o){switch(o){case Boolean:a=a?Wy: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}},Wa=(a,o)=>!By(a,o),Cm={attribute:!0,type:String,converter:Tn,reflect:!1,hasChanged:Wa},wm,km;(wm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(km=Pi.litPropertyMetadata)!=null||(Pi.litPropertyMetadata=new WeakMap);var ni=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Cm){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&Uy(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var p;let{get:s,set:d}=(p=Hy(this.prototype,o))!=null?p:{get(){return this[t]},set(f){this[t]=f}};return{get(){return s==null?void 0:s.call(this)},set(f){let T=s==null?void 0:s.call(this);d.call(this,f),this.requestUpdate(o,T,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Cm}static _$Ei(){if(this.hasOwnProperty(En("elementProperties")))return;let o=Ky(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(En("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(En("properties"))){let t=this.properties,r=[...Gy(t),...Yy(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift(Ka(s))}else o!==void 0&&t.push(Ka(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r: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,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return tc(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(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var d;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let p=(((d=r.converter)==null?void 0:d.toAttribute)!==void 0?r.converter:Tn).toAttribute(t,r.type);this._$Em=o,p==null?this.removeAttribute(s):this.setAttribute(s,p),this._$Em=null}}_$AK(o,t){var d;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let p=r.getPropertyOptions(s),f=typeof p.converter=="function"?{fromAttribute:p.converter}:((d=p.converter)==null?void 0:d.fromAttribute)!==void 0?p.converter:Tn;this._$Em=s,this[s]=f.fromAttribute(t,p.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:Wa)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s: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 r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[p,f]of this._$Ep)this[p]=f;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[p,f]of d)f.wrapped!==!0||this._$AL.has(p)||this[p]===void 0||this.P(p,this[p],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(d=>{var p;return(p=d.hostUpdate)==null?void 0:p.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),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){}},Nm;ni.elementStyles=[],ni.shadowRootOptions={mode:"open"},ni[En("elementProperties")]=new Map,ni[En("finalized")]=new Map,ec==null||ec({ReactiveElement:ni}),((Nm=Pi.reactiveElementVersions)!=null?Nm:Pi.reactiveElementVersions=[]).push("2.0.4");var An=globalThis,ja=An.trustedTypes,Lm=ja?ja.createPolicy("lit-html",{createHTML:a=>a}):void 0,oc="$lit$",ai=`lit$${Math.random().toFixed(9).slice(2)}$`,sc="?"+ai,jy=`<${sc}>`,yo=document,Sn=()=>yo.createComment(""),In=a=>a===null||typeof a!="object"&&typeof a!="function",nc=Array.isArray,$m=a=>nc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",rc=`[
3
- \f\r]`,xn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Om=/-->/g,Mm=/>/g,go=RegExp(`>|${rc}(?:([^\\s"'>=/]+)(${rc}*=${rc}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Rm=/'/g,Pm=/"/g,zm=/^(?:script|style|textarea|title)$/i,ac=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),_=ac(1),R0=ac(2),P0=ac(3),Te=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Dm=new WeakMap,bo=yo.createTreeWalker(yo,129);function Vm(a,o){if(!nc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lm!==void 0?Lm.createHTML(o):o}var Bm=(a,o)=>{let t=a.length-1,r=[],s,d=o===2?"<svg>":o===3?"<math>":"",p=xn;for(let f=0;f<t;f++){let T=a[f],L,U,q=-1,Q=0;for(;Q<T.length&&(p.lastIndex=Q,U=p.exec(T),U!==null);)Q=p.lastIndex,p===xn?U[1]==="!--"?p=Om:U[1]!==void 0?p=Mm:U[2]!==void 0?(zm.test(U[2])&&(s=RegExp("</"+U[2],"g")),p=go):U[3]!==void 0&&(p=go):p===go?U[0]===">"?(p=s!=null?s:xn,q=-1):U[1]===void 0?q=-2:(q=p.lastIndex-U[2].length,L=U[1],p=U[3]===void 0?go:U[3]==='"'?Pm:Rm):p===Pm||p===Rm?p=go:p===Om||p===Mm?p=xn:(p=go,s=void 0);let X=p===go&&a[f+1].startsWith("/>")?" ":"";d+=p===xn?T+jy:q>=0?(r.push(L),T.slice(0,q)+oc+T.slice(q)+ai+X):T+ai+(q===-2?f:X)}return[Vm(a,d+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},_n=class a{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let d=0,p=0,f=o.length-1,T=this.parts,[L,U]=Bm(o,t);if(this.el=a.createElement(L,r),bo.currentNode=this.el.content,t===2||t===3){let q=this.el.content.firstChild;q.replaceWith(...q.childNodes)}for(;(s=bo.nextNode())!==null&&T.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let q of s.getAttributeNames())if(q.endsWith(oc)){let Q=U[p++],X=s.getAttribute(q).split(ai),it=/([.?@])?(.*)/.exec(Q);T.push({type:1,index:d,name:it[2],strings:X,ctor:it[1]==="."?Xa:it[1]==="?"?Za:it[1]==="@"?Qa:To}),s.removeAttribute(q)}else q.startsWith(ai)&&(T.push({type:6,index:d}),s.removeAttribute(q));if(zm.test(s.tagName)){let q=s.textContent.split(ai),Q=q.length-1;if(Q>0){s.textContent=ja?ja.emptyScript:"";for(let X=0;X<Q;X++)s.append(q[X],Sn()),bo.nextNode(),T.push({type:2,index:++d});s.append(q[Q],Sn())}}}else if(s.nodeType===8)if(s.data===sc)T.push({type:2,index:d});else{let q=-1;for(;(q=s.data.indexOf(ai,q+1))!==-1;)T.push({type:7,index:d}),q+=ai.length-1}d++}}static createElement(o,t){let r=yo.createElement("template");return r.innerHTML=o,r}};function Eo(a,o,t=a,r){var p,f,T;if(o===Te)return o;let s=r!==void 0?(p=t.o)==null?void 0:p[r]:t.l,d=In(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((f=s==null?void 0:s._$AO)==null||f.call(s,!1),d===void 0?s=void 0:(s=new d(a),s._$AT(a,t,r)),r!==void 0?((T=t.o)!=null?T:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=Eo(a,s._$AS(a,o.values),s,r)),o}var qa=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 L;let{el:{content:t},parts:r}=this._$AD,s=((L=o==null?void 0:o.creationScope)!=null?L:yo).importNode(t,!0);bo.currentNode=s;let d=bo.nextNode(),p=0,f=0,T=r[0];for(;T!==void 0;){if(p===T.index){let U;T.type===2?U=new ps(d,d.nextSibling,this,o):T.type===1?U=new T.ctor(d,T.name,T.strings,this,o):T.type===6&&(U=new Ja(d,this,o)),this._$AV.push(U),T=r[++f]}p!==(T==null?void 0:T.index)&&(d=bo.nextNode(),p++)}return bo.currentNode=yo,s}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},ps=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var d;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(d=s==null?void 0:s.isConnected)!=null?d:!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=Eo(this,o,t),In(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==Te&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):$m(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&&In(this._$AH)?this._$AA.nextSibling.data=o:this.T(yo.createTextNode(o)),this._$AH=o}$(o){var d;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=_n.createElement(Vm(r.h,r.h[0]),this.options)),r);if(((d=this._$AH)==null?void 0:d._$AD)===s)this._$AH.p(t);else{let p=new qa(s,this),f=p.u(this.options);p.p(t),this.T(f),this._$AH=p}}_$AC(o){let t=Dm.get(o.strings);return t===void 0&&Dm.set(o.strings,t=new _n(o)),t}k(o){nc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let d of o)s===t.length?t.push(r=new a(this.O(Sn()),this.O(Sn()),this,this.options)):r=t[s],r._$AI(d),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},To=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,d){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=W}_$AI(o,t=this,r,s){let d=this.strings,p=!1;if(d===void 0)o=Eo(this,o,t,0),p=!In(o)||o!==this._$AH&&o!==Te,p&&(this._$AH=o);else{let f=o,T,L;for(o=d[0],T=0;T<d.length-1;T++)L=Eo(this,f[r+T],t,T),L===Te&&(L=this._$AH[T]),p||(p=!In(L)||L!==this._$AH[T]),L===W?o=W:o!==W&&(o+=(L!=null?L:"")+d[T+1]),this._$AH[T]=L}p&&!s&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Xa=class extends To{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Za=class extends To{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Qa=class extends To{constructor(o,t,r,s,d){super(o,t,r,s,d),this.type=5}_$AI(o,t=this){var p;if((o=(p=Eo(this,o,t,0))!=null?p:W)===Te)return;let r=this._$AH,s=o===W&&r!==W||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,d=o!==W&&(r===W||s);s&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},Ja=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){Eo(this,o)}},Um={M:oc,P:ai,A:sc,C:1,L:Bm,R:qa,D:$m,V:Eo,I:ps,H:To,N:Za,U:Qa,B:Xa,F:Ja},ic=An.litHtmlPolyfillSupport,Fm;ic==null||ic(_n,ps),((Fm=An.litHtmlVersions)!=null?Fm:An.litHtmlVersions=[]).push("3.2.0");var Hm=(a,o,t)=>{var d,p;let r=(d=t==null?void 0:t.renderBefore)!=null?d:o,s=r._$litPart$;if(s===void 0){let f=(p=t==null?void 0:t.renderBefore)!=null?p:null;r._$litPart$=s=new ps(o.insertBefore(Sn(),f),f,void 0,t!=null?t:{})}return s._$AI(a),s};var Di=class extends ni{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(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=Hm(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 Te}},Gm;Di._$litElement$=!0,Di.finalized=!0,(Gm=globalThis.litElementHydrateSupport)==null||Gm.call(globalThis,{LitElement:Di});var lc=globalThis.litElementPolyfillSupport;lc==null||lc({LitElement:Di});var Ym;((Ym=globalThis.litElementVersions)!=null?Ym:globalThis.litElementVersions=[]).push("4.1.0");var qy={attribute:!0,type:String,converter:Tn,reflect:!1,hasChanged:Wa},Xy=(a=qy,o,t)=>{let{kind:r,metadata:s}=t,d=globalThis.litPropertyMetadata.get(s);if(d===void 0&&globalThis.litPropertyMetadata.set(s,d=new Map),d.set(t.name,a),r==="accessor"){let{name:p}=t;return{set(f){let T=o.get.call(this);o.set.call(this,f),this.requestUpdate(p,T,a)},init(f){return f!==void 0&&this.P(p,void 0,a),f}}}if(r==="setter"){let{name:p}=t;return function(f){let T=this[p];o.call(this,f),this.requestUpdate(p,T,a)}}throw Error("Unsupported decorator location: "+r)};function u(a){return(o,t)=>typeof t=="object"?Xy(a,o,t):((r,s,d)=>{let p=s.hasOwnProperty(d);return s.constructor.createProperty(d,p?{...r,wrapped:!0}:r),p?Object.getOwnPropertyDescriptor(s,d):void 0})(a,o,t)}function ut(a){return u({...a,state:!0,attribute:!1})}function Km(a){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,a)}}var $r=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Zt(a,o){return(t,r,s)=>{let d=p=>{var f,T;return(T=(f=p.renderRoot)==null?void 0:f.querySelector(a))!=null?T:null};if(o){let{get:p,set:f}=typeof r=="object"?t:s!=null?s:(()=>{let T=Symbol();return{get(){return this[T]},set(L){this[T]=L}}})();return $r(t,r,{get(){let T=p.call(this);return T===void 0&&(T=d(this),(T!==null||this.hasUpdated)&&f.call(this,T)),T}})}return $r(t,r,{get(){return d(this)}})}}var dc;function Wm(a){return(o,t)=>$r(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:dc!=null?dc:dc=document.createDocumentFragment()).querySelectorAll(a)}})}function Dt(a){return(o,t)=>{let{slot:r,selector:s}=a!=null?a:{},d="slot"+(r?`[name=${r}]`:":not([name])");return $r(o,t,{get(){var T,L;let p=(T=this.renderRoot)==null?void 0:T.querySelector(d),f=(L=p==null?void 0:p.assignedElements(a))!=null?L:[];return s===void 0?f:f.filter(U=>U.matches(s))}})}}function jm(a){return(o,t)=>{let{slot:r}=a!=null?a:{},s="slot"+(r?`[name=${r}]`:":not([name])");return $r(o,t,{get(){var p,f;let d=(p=this.renderRoot)==null?void 0:p.querySelector(s);return(f=d==null?void 0:d.assignedNodes(a))!=null?f:[]}})}}var Zy={PREFIX:"mdc",SEPARATOR:"-"},Qy={NAMESPACE:Zy},cc=Qy;var Jy=a=>[cc.NAMESPACE.PREFIX,a].join(cc.NAMESPACE.SEPARATOR),z={constructTagName:Jy};var J={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 qm=z.constructTagName("buttonsimple"),xo={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},ms={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Cn={SIZE:xo[32],TYPE:ms.BUTTON,ROLE:J.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var li=z.constructTagName("button"),$t={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},wn={40:40,32:32,28:28,24:24},cr={64:64,52:52,20:20,...wn},Ao={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},us={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ue={VARIANT:$t.PRIMARY,SIZE:wn[32],COLOR:Ao.DEFAULT,TYPE_INTERNAL:us.ICON,TYPE:ms.BUTTON,INVERTED:!1};var tl=a=>{class o extends a{constructor(){super(...arguments);this.variant=Ue.VARIANT;this.color=Ue.COLOR;this.typeInternal=Ue.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values($t).includes(s)?s:Ue.VARIANT)}setColor(s){!Object.values(Ao).includes(s)||this.variant===$t.TERTIARY?this.setAttribute("color",`${Ue.COLOR}`):this.setAttribute("color",s)}setSize(s){let p=this.typeInternal===us.ICON?Object.values(cr).includes(s)&&!(s===cr[20]&&this.variant!==$t.TERTIARY):Object.values(wn).includes(s);this.setAttribute("size",p?`${s}`:`${Ue.SIZE}`)}inferButtonType(){var L,U,q,Q,X,it;let s=(U=(L=this.shadowRoot)==null?void 0:L.querySelector("slot:not([name])"))==null?void 0:U.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,d=(Q=(q=this.shadowRoot)==null?void 0:q.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,p=this.prefixIcon||d&&d>0,f=(it=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:it.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,T=this.postfixIcon||f&&f>0;s&&(p||T)?(this.typeInternal=us.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(p||T)?(this.typeInternal=us.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=us.PILL,this.setAttribute("data-btn-type","pill"))}}return m([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),m([u({type:String})],o.prototype,"variant",2),m([u({type:String})],o.prototype,"color",2),m([ut()],o.prototype,"typeInternal",2),o};var Xm=B`
1
+ "use strict";(()=>{var Ry=Object.create;var Qd=Object.defineProperty;var Am=Object.getOwnPropertyDescriptor;var Py=Object.getOwnPropertyNames;var Dy=Object.getPrototypeOf,Fy=Object.prototype.hasOwnProperty;var $y=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var zy=(n,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of Py(o))!Fy.call(n,s)&&s!==t&&Qd(n,s,{get:()=>o[s],enumerable:!(r=Am(o,s))||r.enumerable});return n};var Vy=(n,o,t)=>(t=n!=null?Ry(Dy(n)):{},zy(o||!n||!n.__esModule?Qd(t,"default",{value:n,enumerable:!0}):t,n));var m=(n,o,t,r)=>{for(var s=r>1?void 0:r?Am(o,t):o,d=n.length-1,p;d>=0;d--)(p=n[d])&&(s=(r?p(o,t,s):p(s))||s);return r&&s&&Qd(o,t,s),s};var Iu=$y((Ra,vl)=>{typeof navigator<"u"&&function(n,o){typeof Ra=="object"&&typeof vl<"u"?vl.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(Ra,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},d=function(){return t},p=function(i){o=i},f=function(){return o};function T(e){return document.createElement(e)}function L(e,i){var a,l=e.length,h;for(a=0;a<l;a+=1){h=e[a].prototype;for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(i.prototype[c]=h[c])}}function U(e,i){return Object.getOwnPropertyDescriptor(e,i)}function q(e){function i(){}return i.prototype=e,i}var Q=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(a){this.audios.push(a)},pause:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].pause()},resume:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].resume()},setRate:function(a){var l,h=this.audios.length;for(l=0;l<h;l+=1)this.audios[l].setRate(a)},createAudio:function(a){return this.audioFactory?this.audioFactory(a):window.Howl?new window.Howl({src:[a]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(a){this.audioFactory=a},setVolume:function(a){this._volume=a,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),X=function(){function e(a,l){var h=0,c=[],g;switch(a){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(h=0;h<l;h+=1)c.push(g);return c}function i(a,l){return a==="float32"?new Float32Array(l):a==="int16"?new Int16Array(l):a==="uint8c"?new Uint8ClampedArray(l):e(a,l)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i:e}();function it(e){return Array.apply(null,{length:e})}function dt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(a){return typeof a}:dt=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},dt(e)}var lt=!0,gt=null,It=null,Ct="",Kt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Vt=!1,Wt=Math.pow,te=Math.sqrt,pe=Math.floor,Er=Math.max,De=Math.min,ir={};(function(){var e=["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"],i,a=e.length;for(i=0;i<a;i+=1)ir[e[i]]=Math[e[i]]})();function Tr(){return{}}ir.random=Math.random,ir.abs=function(e){var i=dt(e);if(i==="object"&&e.length){var a=it(e.length),l,h=e.length;for(l=0;l<h;l+=1)a[l]=Math.abs(e[l]);return a}return Math.abs(e)};var xr=150,wt=Math.PI/180,ge=.5519;function or(e){Vt=!!e}function sr(e){return Vt?Math.round(e):e}function ar(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function nr(e,i,a,l){this.type=e,this.currentTime=i,this.totalTime=a,this.direction=l<0?-1:1}function Sn(e,i){this.type=e,this.direction=i<0?-1:1}function Np(e,i,a,l){this.type=e,this.currentLoop=a,this.totalLoops=i,this.direction=l<0?-1:1}function Lp(e,i,a){this.type=e,this.firstFrame=i,this.totalFrames=a}function Op(e,i){this.type=e,this.target=i}function Rb(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function Pb(e){this.type="configError",this.nativeError=e}function S0(e,i){this.type=e,this.nativeError=i}var Fe=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function zd(e,i,a){var l,h,c,g,A,b,w,O;switch(g=Math.floor(e*6),A=e*6-g,b=a*(1-i),w=a*(1-A*i),O=a*(1-(1-A)*i),g%6){case 0:l=a,h=O,c=b;break;case 1:l=w,h=a,c=b;break;case 2:l=b,h=a,c=O;break;case 3:l=b,h=w,c=a;break;case 4:l=O,h=b,c=a;break;case 5:l=a,h=b,c=w;break;default:break}return[l,h,c]}function Vd(e,i,a){var l=Math.max(e,i,a),h=Math.min(e,i,a),c=l-h,g,A=l===0?0:c/l,b=l/255;switch(l){case h:g=0;break;case e:g=i-a+c*(i<a?6:0),g/=6*c;break;case i:g=a-e+c*2,g/=6*c;break;case a:g=e-i+c*4,g/=6*c;break;default:break}return[g,A,b]}function Mp(e,i){var a=Vd(e[0]*255,e[1]*255,e[2]*255);return a[1]+=i,a[1]>1?a[1]=1:a[1]<=0&&(a[1]=0),zd(a[0],a[1],a[2])}function Rp(e,i){var a=Vd(e[0]*255,e[1]*255,e[2]*255);return a[2]+=i,a[2]>1?a[2]=1:a[2]<0&&(a[2]=0),zd(a[0],a[1],a[2])}function Pp(e,i){var a=Vd(e[0]*255,e[1]*255,e[2]*255);return a[0]+=i/360,a[0]>1?a[0]-=1:a[0]<0&&(a[0]+=1),zd(a[0],a[1],a[2])}var I0=function(){var e=[],i,a;for(i=0;i<256;i+=1)a=i.toString(16),e[i]=a.length===1?"0"+a:a;return function(l,h,c){return l<0&&(l=0),h<0&&(h=0),c<0&&(c=0),"#"+e[l]+e[h]+e[c]}}(),Db=function(i){lt=!!i},Fb=function(){return lt},$b=function(i){gt=i},In=function(){return gt},_0=function(i){It=i},Dp=function(){return It},_n=function(i){xr=i},ea=function(){return xr},zb=function(i){Ct=i},C0=function(){return Ct};function Tt(e){return document.createElementNS(n,e)}function Cn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cn=function(a){return typeof a}:Cn=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Cn(e)}var ra=function(){var e=1,i=[],a,l,h={onmessage:function(){},postMessage:function(M){a({data:M})}},c={postMessage:function(M){h.onmessage({data:M})}};function g(x){if(window.Worker&&window.Blob&&d()){var M=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),D=URL.createObjectURL(M);return new Worker(D)}return a=x,h}function A(){l||(l=g(function(M){function D(){function V(et,I){var P,v,y=et.length,Y,$,nt,vt;for(v=0;v<y;v+=1)if(P=et[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for($=Et.length,Y=0;Y<$;Y+=1)if(Et[Y].pt.k.i)k(Et[Y].pt.k);else for(vt=Et[Y].pt.k.length,nt=0;nt<vt;nt+=1)Et[Y].pt.k[nt].s&&k(Et[Y].pt.k[nt].s[0]),Et[Y].pt.k[nt].e&&k(Et[Y].pt.k[nt].e[0])}P.ty===0?(P.layers=E(P.refId,I),V(P.layers,I)):P.ty===4?S(P.shapes):P.ty===5&&xt(P)}}function N(et,I){if(et){var P=0,v=et.length;for(P=0;P<v;P+=1)et[P].t===1&&(et[P].data.layers=E(et[P].data.refId,I),V(et[P].data.layers,I))}}function C(et,I){for(var P=0,v=I.length;P<v;){if(I[P].id===et)return I[P];P+=1}return null}function E(et,I){var P=C(et,I);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function S(et){var I,P=et.length,v,y;for(I=P-1;I>=0;I-=1)if(et[I].ty==="sh")if(et[I].ks.k.i)k(et[I].ks.k);else for(y=et[I].ks.k.length,v=0;v<y;v+=1)et[I].ks.k[v].s&&k(et[I].ks.k[v].s[0]),et[I].ks.k[v].e&&k(et[I].ks.k[v].e[0]);else et[I].ty==="gr"&&S(et[I].it)}function k(et){var I,P=et.i.length;for(I=0;I<P;I+=1)et.i[I][0]+=et.v[I][0],et.i[I][1]+=et.v[I][1],et.o[I][0]+=et.v[I][0],et.o[I][1]+=et.v[I][1]}function F(et,I){var P=I?I.split("."):[100,100,100];return et[0]>P[0]?!0:P[0]>et[0]?!1:et[1]>P[1]?!0:P[1]>et[1]?!1:et[2]>P[2]?!0:P[2]>et[2]?!1:null}var H=function(){var et=[4,4,14];function I(v){var y=v.t.d;v.t.d={k:[{s:y,t:0}]}}function P(v){var y,Y=v.length;for(y=0;y<Y;y+=1)v[y].ty===5&&I(v[y])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}(),K=function(){var et=[4,7,99];return function(I){if(I.chars&&!F(et,I.v)){var P,v=I.chars.length;for(P=0;P<v;P+=1){var y=I.chars[P];y.data&&y.data.shapes&&(S(y.data.shapes),y.data.ip=0,y.data.op=99999,y.data.st=0,y.data.sr=1,y.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}},I.chars[P].t||(y.data.shapes.push({ty:"no"}),y.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"})))}}}}(),rt=function(){var et=[5,7,15];function I(v){var y=v.t.p;typeof y.a=="number"&&(y.a={a:0,k:y.a}),typeof y.p=="number"&&(y.p={a:0,k:y.p}),typeof y.r=="number"&&(y.r={a:0,k:y.r})}function P(v){var y,Y=v.length;for(y=0;y<Y;y+=1)v[y].ty===5&&I(v[y])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}(),yt=function(){var et=[4,1,9];function I(v){var y,Y=v.length,$,nt;for(y=0;y<Y;y+=1)if(v[y].ty==="gr")I(v[y].it);else if(v[y].ty==="fl"||v[y].ty==="st")if(v[y].c.k&&v[y].c.k[0].i)for(nt=v[y].c.k.length,$=0;$<nt;$+=1)v[y].c.k[$].s&&(v[y].c.k[$].s[0]/=255,v[y].c.k[$].s[1]/=255,v[y].c.k[$].s[2]/=255,v[y].c.k[$].s[3]/=255),v[y].c.k[$].e&&(v[y].c.k[$].e[0]/=255,v[y].c.k[$].e[1]/=255,v[y].c.k[$].e[2]/=255,v[y].c.k[$].e[3]/=255);else v[y].c.k[0]/=255,v[y].c.k[1]/=255,v[y].c.k[2]/=255,v[y].c.k[3]/=255}function P(v){var y,Y=v.length;for(y=0;y<Y;y+=1)v[y].ty===4&&I(v[y].shapes)}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}(),mt=function(){var et=[4,4,18];function I(v){var y,Y=v.length,$,nt;for(y=Y-1;y>=0;y-=1)if(v[y].ty==="sh")if(v[y].ks.k.i)v[y].ks.k.c=v[y].closed;else for(nt=v[y].ks.k.length,$=0;$<nt;$+=1)v[y].ks.k[$].s&&(v[y].ks.k[$].s[0].c=v[y].closed),v[y].ks.k[$].e&&(v[y].ks.k[$].e[0].c=v[y].closed);else v[y].ty==="gr"&&I(v[y].it)}function P(v){var y,Y,$=v.length,nt,vt,Et,Mt;for(Y=0;Y<$;Y+=1){if(y=v[Y],y.hasMask){var Rt=y.masksProperties;for(vt=Rt.length,nt=0;nt<vt;nt+=1)if(Rt[nt].pt.k.i)Rt[nt].pt.k.c=Rt[nt].cl;else for(Mt=Rt[nt].pt.k.length,Et=0;Et<Mt;Et+=1)Rt[nt].pt.k[Et].s&&(Rt[nt].pt.k[Et].s[0].c=Rt[nt].cl),Rt[nt].pt.k[Et].e&&(Rt[nt].pt.k[Et].e[0].c=Rt[nt].cl)}y.ty===4&&I(y.shapes)}}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var y,Y=v.assets.length;for(y=0;y<Y;y+=1)v.assets[y].layers&&P(v.assets[y].layers)}}}();function st(et){et.__complete||(yt(et),H(et),K(et),rt(et),mt(et),V(et.layers,et.assets),N(et.chars,et.assets),et.__complete=!0)}function xt(et){et.t.a.length===0&&"m"in et.t.p}var ct={};return ct.completeData=st,ct.checkColors=yt,ct.checkChars=K,ct.checkPathProperties=rt,ct.checkShapes=mt,ct.completeLayers=V,ct}if(c.dataManager||(c.dataManager=D()),c.assetLoader||(c.assetLoader=function(){function V(C){var E=C.getResponseHeader("content-type");return E&&C.responseType==="json"&&E.indexOf("json")!==-1||C.response&&Cn(C.response)==="object"?C.response:C.response&&typeof C.response=="string"?JSON.parse(C.response):C.responseText?JSON.parse(C.responseText):null}function N(C,E,S,k){var F,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)F=V(H),S(F);else try{F=V(H),S(F)}catch(K){k&&k(K)}};try{H.open(["G","E","T"].join(""),C,!0)}catch{H.open(["G","E","T"].join(""),E+"/"+C,!0)}H.send()}return{load:N}}()),M.data.type==="loadAnimation")c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.dataManager.completeData(V),c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})});else if(M.data.type==="complete"){var R=M.data.animation;c.dataManager.completeData(R),c.postMessage({id:M.data.id,payload:R,status:"success"})}else M.data.type==="loadData"&&c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})})}),l.onmessage=function(x){var M=x.data,D=M.id,R=i[D];i[D]=null,M.status==="success"?R.onComplete(M.payload):R.onError&&R.onError()})}function b(x,M){e+=1;var D="processId_"+e;return i[D]={onComplete:x,onError:M},D}function w(x,M,D){A();var R=b(M,D);l.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function O(x,M,D){A();var R=b(M,D);l.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,M,D){A();var R=b(M,D);l.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:O,completeAnimation:G}}(),Vb=function(){var e=function(){var N=T("canvas");N.width=1,N.height=1;var C=N.getContext("2d");return C.fillStyle="rgba(0,0,0,0)",C.fillRect(0,0,1,1),N}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(N,C,E){var S="";if(N.e)S=N.p;else if(C){var k=N.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),S=C+k}else S=E,S+=N.u?N.u:"",S+=N.p;return S}function h(N){var C=0,E=setInterval((function(){var S=N.getBBox();(S.width||C>500)&&(this._imageLoaded(),clearInterval(E)),C+=1}).bind(this),50)}function c(N){var C=l(N,this.assetsPath,this.path),E=Tt("image");Kt?this.testImageLoaded(E):E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.setAttributeNS("http://www.w3.org/1999/xlink","href",C),this._elementHelper.append?this._elementHelper.append(E):this._elementHelper.appendChild(E);var S={img:E,assetData:N};return S}function g(N){var C=l(N,this.assetsPath,this.path),E=T("img");E.crossOrigin="anonymous",E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.src=C;var S={img:E,assetData:N};return S}function A(N){var C={assetData:N},E=l(N,this.assetsPath,this.path);return ra.loadData(E,(function(S){C.img=S,this._footageLoaded()}).bind(this),(function(){C.img={},this._footageLoaded()}).bind(this)),C}function b(N,C){this.imagesLoadedCb=C;var E,S=N.length;for(E=0;E<S;E+=1)N[E].layers||(!N[E].t||N[E].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(N[E]))):N[E].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(N[E]))))}function w(N){this.path=N||""}function O(N){this.assetsPath=N||""}function G(N){for(var C=0,E=this.images.length;C<E;){if(this.images[C].assetData===N)return this.images[C].img;C+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function M(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function R(N,C){N==="svg"?(this._elementHelper=C,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function V(){this._imageLoaded=i.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=h.bind(this),this.createFootageData=A.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return V.prototype={loadAssets:b,setAssetsPath:O,setPath:w,loadedImages:M,loadedFootages:D,destroy:x,getAsset:G,createImgData:g,createImageData:c,imageLoaded:i,footageLoaded:a,setCacheType:R},V}();function Fp(){}Fp.prototype={triggerEvent:function(i,a){if(this._cbs[i])for(var l=this._cbs[i],h=0;h<l.length;h+=1)l[h](a)},addEventListener:function(i,a){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(a),(function(){this.removeEventListener(i,a)}).bind(this)},removeEventListener:function(i,a){if(!a)this._cbs[i]=null;else if(this._cbs[i]){for(var l=0,h=this._cbs[i].length;l<h;)this._cbs[i][l]===a&&(this._cbs[i].splice(l,1),l-=1,h-=1),l+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var Bb=function(){function e(i){for(var a=i.split(`\r
2
+ `),l={},h,c=0,g=0;g<a.length;g+=1)h=a[g].split(":"),h.length===2&&(l[h[0]]=h[1].trim(),c+=1);if(c===0)throw new Error;return l}return function(i){for(var a=[],l=0;l<i.length;l+=1){var h=i[l],c={time:h.tm,duration:h.dr};try{c.payload=JSON.parse(i[l].cm)}catch{try{c.payload=e(i[l].cm)}catch{c.payload={name:i[l].cm}}}a.push(c)}return a}}(),Ub=function(){function e(i){this.compositions.push(i)}return function(){function i(a){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===a)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),ia={},Hb=function(i,a){ia[i]=a};function Gb(e){return ia[e]}function Yb(){if(ia.canvas)return"canvas";for(var e in ia)if(ia[e])return e;return""}function oa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oa=function(a){return typeof a}:oa=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},oa(e)}var ft=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=Fe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Fb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Ub(),this.imagePreloader=new Vb,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 nr("drawnFrame",0,0,0),this.expressionsPlugin=In()};L([Fp],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var a=Gb(i);this.renderer=new a(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ra.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){ra.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&oa(i)!=="object"&&(i=JSON.parse(i));var a={wrapper:e,animationData:i},l=e.attributes;a.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",a.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:Yb()||"canvas";var h=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";h==="false"?a.loop=!1:h==="true"?a.loop=!0:h!==""&&(a.loop=parseInt(h,10));var c=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;a.autoplay=c!=="false",a.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var g=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";g==="false"&&(a.prerender=!1),a.path?this.setParams(a):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,a,l=i.length,h=e.layers,c,g=h.length;for(c=0;c<g;c+=1)for(a=0;a<l;){if(i[a].id===h[c].id){i[a]=h[c];break}a+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,a=0;a<l;a+=1)this.animationData.assets.push(e.assets[a]);this.animationData.__complete=!1,ra.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=In();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ra.loadData(a,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,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(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Bb(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ft.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ft.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 e=In();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var a=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(a,l)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.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")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,a=0;a<this.markers.length;a+=1)if(i=this.markers[a],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,a){if(!(a&&this.name!==a)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&this.goToAndStop(h.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,a){if(!(a&&this.name!==a)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&(h.duration?this.playSegments([h.time,h.time+h.duration],!0):this.goToAndStop(h.time,!0))}else this.goToAndStop(l,i,a);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,a=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(a=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(a=!0,i=0)):this.setCurrentRawFrameValue(i),a&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?a=e:this.currentRawFrame+this.firstFrame>i&&(a=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,a!==-1&&this.goToAndStop(a,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),oa(e[0])==="object"){var a,l=e.length;for(a=0;a<l;a+=1)this.segments.push(e[a])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!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)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var a=e.p;a.indexOf("images/")!==-1&&(a=a.split("/")[1]),i=this.assetsPath+a}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,a=this.assets.length;i<a;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,a){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,a)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new nr(e,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(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new Np(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Sn(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new Lp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Op(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new nr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Np(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Sn(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Lp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Op(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new Rb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new Pb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ee=function(){var e={},i=[],a=0,l=0,h=0,c=!0,g=!1;function A(I){for(var P=0,v=I.target;P<l;)i[P].animation===v&&(i.splice(P,1),P-=1,l-=1,v.isPaused||G()),P+=1}function b(I,P){if(!I)return null;for(var v=0;v<l;){if(i[v].elem===I&&i[v].elem!==null)return i[v].animation;v+=1}var y=new ft;return x(y,I),y.setData(I,P),y}function w(){var I,P=i.length,v=[];for(I=0;I<P;I+=1)v.push(i[I].animation);return v}function O(){h+=1,yt()}function G(){h-=1}function x(I,P){I.addEventListener("destroy",A),I.addEventListener("_active",O),I.addEventListener("_idle",G),i.push({elem:P,animation:I}),l+=1}function M(I){var P=new ft;return x(P,null),P.setParams(I),P}function D(I,P){var v;for(v=0;v<l;v+=1)i[v].animation.setSpeed(I,P)}function R(I,P){var v;for(v=0;v<l;v+=1)i[v].animation.setDirection(I,P)}function V(I){var P;for(P=0;P<l;P+=1)i[P].animation.play(I)}function N(I){var P=I-a,v;for(v=0;v<l;v+=1)i[v].animation.advanceTime(P);a=I,h&&!g?window.requestAnimationFrame(N):c=!0}function C(I){a=I,window.requestAnimationFrame(N)}function E(I){var P;for(P=0;P<l;P+=1)i[P].animation.pause(I)}function S(I,P,v){var y;for(y=0;y<l;y+=1)i[y].animation.goToAndStop(I,P,v)}function k(I){var P;for(P=0;P<l;P+=1)i[P].animation.stop(I)}function F(I){var P;for(P=0;P<l;P+=1)i[P].animation.togglePause(I)}function H(I){var P;for(P=l-1;P>=0;P-=1)i[P].animation.destroy(I)}function K(I,P,v){var y=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,$=y.length;for(Y=0;Y<$;Y+=1)v&&y[Y].setAttribute("data-bm-type",v),b(y[Y],I);if(P&&$===0){v||(v="svg");var nt=document.getElementsByTagName("body")[0];nt.innerText="";var vt=T("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",v),nt.appendChild(vt),b(vt,I)}}function rt(){var I;for(I=0;I<l;I+=1)i[I].animation.resize()}function yt(){!g&&h&&c&&(window.requestAnimationFrame(C),c=!1)}function mt(){g=!0}function st(){g=!1,yt()}function xt(I,P){var v;for(v=0;v<l;v+=1)i[v].animation.setVolume(I,P)}function ct(I){var P;for(P=0;P<l;P+=1)i[P].animation.mute(I)}function et(I){var P;for(P=0;P<l;P+=1)i[P].animation.unmute(I)}return e.registerAnimation=b,e.loadAnimation=M,e.setSpeed=D,e.setDirection=R,e.play=V,e.pause=E,e.stop=k,e.togglePause=F,e.searchAnimations=K,e.resize=rt,e.goToAndStop=S,e.destroy=H,e.freeze=mt,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=et,e.getRegisteredAnimations=w,e}(),sa=function(){var e={};e.getBezierEasing=a;var i={};function a(C,E,S,k,F){var H=F||("bez_"+C+"_"+E+"_"+S+"_"+k).replace(/\./g,"p");if(i[H])return i[H];var K=new N([C,E,S,k]);return i[H]=K,K}var l=4,h=.001,c=1e-7,g=10,A=11,b=1/(A-1),w=typeof Float32Array=="function";function O(C,E){return 1-3*E+3*C}function G(C,E){return 3*E-6*C}function x(C){return 3*C}function M(C,E,S){return((O(E,S)*C+G(E,S))*C+x(E))*C}function D(C,E,S){return 3*O(E,S)*C*C+2*G(E,S)*C+x(E)}function R(C,E,S,k,F){var H,K,rt=0;do K=E+(S-E)/2,H=M(K,k,F)-C,H>0?S=K:E=K;while(Math.abs(H)>c&&++rt<g);return K}function V(C,E,S,k){for(var F=0;F<l;++F){var H=D(E,S,k);if(H===0)return E;var K=M(E,S,k)-C;E-=K/H}return E}function N(C){this._p=C,this._mSampleValues=w?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return N.prototype={get:function(E){var S=this._p[0],k=this._p[1],F=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),S===k&&F===H?E:E===0?0:E===1?1:M(this._getTForX(E),k,H)},_precompute:function(){var E=this._p[0],S=this._p[1],k=this._p[2],F=this._p[3];this._precomputed=!0,(E!==S||k!==F)&&this._calcSampleValues()},_calcSampleValues:function(){for(var E=this._p[0],S=this._p[2],k=0;k<A;++k)this._mSampleValues[k]=M(k*b,E,S)},_getTForX:function(E){for(var S=this._p[0],k=this._p[2],F=this._mSampleValues,H=0,K=1,rt=A-1;K!==rt&&F[K]<=E;++K)H+=b;--K;var yt=(E-F[K])/(F[K+1]-F[K]),mt=H+yt*b,st=D(mt,S,k);return st>=h?V(E,mt,S,k):st===0?mt:R(E,H,H+b,S,k)}},e}(),$p=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),wn=function(){return function(e,i,a){var l=0,h=e,c=it(h),g={newElement:A,release:b};function A(){var w;return l?(l-=1,w=c[l]):w=i(),w}function b(w){l===h&&(c=$p.double(c),h*=2),a&&a(w),c[l]=w,l+=1}return g}}(),zp=function(){function e(){return{addedLength:0,percents:X("float32",ea()),lengths:X("float32",ea())}}return wn(8,e)}(),Vp=function(){function e(){return{lengths:[],totalLength:0}}function i(a){var l,h=a.lengths.length;for(l=0;l<h;l+=1)zp.release(a.lengths[l]);a.lengths.length=0}return wn(8,e,i)}();function Kb(){var e=Math;function i(x,M,D,R,V,N){var C=x*R+M*V+D*N-V*R-N*x-D*M;return C>-.001&&C<.001}function a(x,M,D,R,V,N,C,E,S){if(D===0&&N===0&&S===0)return i(x,M,R,V,C,E);var k=e.sqrt(e.pow(R-x,2)+e.pow(V-M,2)+e.pow(N-D,2)),F=e.sqrt(e.pow(C-x,2)+e.pow(E-M,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(C-R,2)+e.pow(E-V,2)+e.pow(S-N,2)),K;return k>F?k>H?K=k-F-H:K=H-F-k:H>F?K=H-F-k:K=F-k-H,K>-1e-4&&K<1e-4}var l=function(){return function(x,M,D,R){var V=ea(),N,C,E,S,k,F=0,H,K=[],rt=[],yt=zp.newElement();for(E=D.length,N=0;N<V;N+=1){for(k=N/(V-1),H=0,C=0;C<E;C+=1)S=Wt(1-k,3)*x[C]+3*Wt(1-k,2)*k*D[C]+3*(1-k)*Wt(k,2)*R[C]+Wt(k,3)*M[C],K[C]=S,rt[C]!==null&&(H+=Wt(K[C]-rt[C],2)),rt[C]=K[C];H&&(H=te(H),F+=H),yt.percents[N]=k,yt.lengths[N]=F}return yt.addedLength=F,yt}}();function h(x){var M=Vp.newElement(),D=x.c,R=x.v,V=x.o,N=x.i,C,E=x._length,S=M.lengths,k=0;for(C=0;C<E-1;C+=1)S[C]=l(R[C],R[C+1],V[C],N[C+1]),k+=S[C].addedLength;return D&&E&&(S[C]=l(R[C],R[0],V[C],N[0]),k+=S[C].addedLength),M.totalLength=k,M}function c(x){this.segmentLength=0,this.points=new Array(x)}function g(x,M){this.partialLength=x,this.point=M}var A=function(){var x={};return function(M,D,R,V){var N=(M[0]+"_"+M[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!x[N]){var C=ea(),E,S,k,F,H,K=0,rt,yt,mt=null;M.length===2&&(M[0]!==D[0]||M[1]!==D[1])&&i(M[0],M[1],D[0],D[1],M[0]+R[0],M[1]+R[1])&&i(M[0],M[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(C=2);var st=new c(C);for(k=R.length,E=0;E<C;E+=1){for(yt=it(k),H=E/(C-1),rt=0,S=0;S<k;S+=1)F=Wt(1-H,3)*M[S]+3*Wt(1-H,2)*H*(M[S]+R[S])+3*(1-H)*Wt(H,2)*(D[S]+V[S])+Wt(H,3)*D[S],yt[S]=F,mt!==null&&(rt+=Wt(yt[S]-mt[S],2));rt=te(rt),K+=rt,st.points[E]=new g(rt,yt),mt=yt}st.segmentLength=K,x[N]=st}return x[N]}}();function b(x,M){var D=M.percents,R=M.lengths,V=D.length,N=pe((V-1)*x),C=x*M.addedLength,E=0;if(N===V-1||N===0||C===R[N])return D[N];for(var S=R[N]>C?-1:1,k=!0;k;)if(R[N]<=C&&R[N+1]>C?(E=(C-R[N])/(R[N+1]-R[N]),k=!1):N+=S,N<0||N>=V-1){if(N===V-1)return D[N];k=!1}return D[N]+(D[N+1]-D[N])*E}function w(x,M,D,R,V,N){var C=b(V,N),E=1-C,S=e.round((E*E*E*x[0]+(C*E*E+E*C*E+E*E*C)*D[0]+(C*C*E+E*C*C+C*E*C)*R[0]+C*C*C*M[0])*1e3)/1e3,k=e.round((E*E*E*x[1]+(C*E*E+E*C*E+E*E*C)*D[1]+(C*C*E+E*C*C+C*E*C)*R[1]+C*C*C*M[1])*1e3)/1e3;return[S,k]}var O=X("float32",8);function G(x,M,D,R,V,N,C){V<0?V=0:V>1&&(V=1);var E=b(V,C);N=N>1?1:N;var S=b(N,C),k,F=x.length,H=1-E,K=1-S,rt=H*H*H,yt=E*H*H*3,mt=E*E*H*3,st=E*E*E,xt=H*H*K,ct=E*H*K+H*E*K+H*H*S,et=E*E*K+H*E*S+E*H*S,I=E*E*S,P=H*K*K,v=E*K*K+H*S*K+H*K*S,y=E*S*K+H*S*S+E*K*S,Y=E*S*S,$=K*K*K,nt=S*K*K+K*S*K+K*K*S,vt=S*S*K+K*S*S+S*K*S,Et=S*S*S;for(k=0;k<F;k+=1)O[k*4]=e.round((rt*x[k]+yt*D[k]+mt*R[k]+st*M[k])*1e3)/1e3,O[k*4+1]=e.round((xt*x[k]+ct*D[k]+et*R[k]+I*M[k])*1e3)/1e3,O[k*4+2]=e.round((P*x[k]+v*D[k]+y*R[k]+Y*M[k])*1e3)/1e3,O[k*4+3]=e.round(($*x[k]+nt*D[k]+vt*R[k]+Et*M[k])*1e3)/1e3;return O}return{getSegmentsLength:h,getNewSegment:G,getPointInSegment:w,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:a}}var Rr=Kb(),ho=r,Bp=Math.abs;function Up(e,i){var a=this.offsetTime,l;this.propType==="multidimensional"&&(l=X("float32",this.pv.length));for(var h=i.lastIndex,c=h,g=this.keyframes.length-1,A=!0,b,w,O;A;){if(b=this.keyframes[c],w=this.keyframes[c+1],c===g-1&&e>=w.t-a){b.h&&(b=w),h=0;break}if(w.t-a>e){h=c;break}c<g-1?c+=1:(h=0,A=!1)}O=this.keyframesMetadata[c]||{};var G,x,M,D,R,V,N=w.t-a,C=b.t-a,E;if(b.to){O.bezierData||(O.bezierData=Rr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var S=O.bezierData;if(e>=N||e<C){var k=e>=N?S.points.length-1:0;for(x=S.points[k].point.length,G=0;G<x;G+=1)l[G]=S.points[k].point[G]}else{O.__fnct?V=O.__fnct:(V=sa.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,O.__fnct=V),M=V((e-C)/(N-C));var F=S.segmentLength*M,H,K=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastPoint:0,A=!0,D=S.points.length;A;){if(K+=S.points[R].partialLength,F===0||M===0||R===S.points.length-1){for(x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G];break}else if(F>=K&&F<K+S.points[R+1].partialLength){for(H=(F-K)/S.points[R+1].partialLength,x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G]+(S.points[R+1].point[G]-S.points[R].point[G])*H;break}R<D-1?R+=1:A=!1}i._lastPoint=R,i._lastAddedLength=K-S.points[R].partialLength,i._lastKeyframeIndex=c}}else{var rt,yt,mt,st,xt;if(g=b.s.length,E=w.s||b.e,this.sh&&b.h!==1)if(e>=N)l[0]=E[0],l[1]=E[1],l[2]=E[2];else if(e<=C)l[0]=b.s[0],l[1]=b.s[1],l[2]=b.s[2];else{var ct=Hp(b.s),et=Hp(E),I=(e-C)/(N-C);jb(l,Wb(ct,et,I))}else for(c=0;c<g;c+=1)b.h!==1&&(e>=N?M=1:e<C?M=0:(b.o.x.constructor===Array?(O.__fnct||(O.__fnct=[]),O.__fnct[c]?V=O.__fnct[c]:(rt=b.o.x[c]===void 0?b.o.x[0]:b.o.x[c],yt=b.o.y[c]===void 0?b.o.y[0]:b.o.y[c],mt=b.i.x[c]===void 0?b.i.x[0]:b.i.x[c],st=b.i.y[c]===void 0?b.i.y[0]:b.i.y[c],V=sa.getBezierEasing(rt,yt,mt,st).get,O.__fnct[c]=V)):O.__fnct?V=O.__fnct:(rt=b.o.x,yt=b.o.y,mt=b.i.x,st=b.i.y,V=sa.getBezierEasing(rt,yt,mt,st).get,b.keyframeMetadata=V),M=V((e-C)/(N-C)))),E=w.s||b.e,xt=b.h===1?b.s[c]:b.s[c]+(E[c]-b.s[c])*M,this.propType==="multidimensional"?l[c]=xt:l=xt}return i.lastIndex=h,l}function Wb(e,i,a){var l=[],h=e[0],c=e[1],g=e[2],A=e[3],b=i[0],w=i[1],O=i[2],G=i[3],x,M,D,R,V;return M=h*b+c*w+g*O+A*G,M<0&&(M=-M,b=-b,w=-w,O=-O,G=-G),1-M>1e-6?(x=Math.acos(M),D=Math.sin(x),R=Math.sin((1-a)*x)/D,V=Math.sin(a*x)/D):(R=1-a,V=a),l[0]=R*h+V*b,l[1]=R*c+V*w,l[2]=R*g+V*O,l[3]=R*A+V*G,l}function jb(e,i){var a=i[0],l=i[1],h=i[2],c=i[3],g=Math.atan2(2*l*c-2*a*h,1-2*l*l-2*h*h),A=Math.asin(2*a*l+2*h*c),b=Math.atan2(2*a*c-2*l*h,1-2*a*a-2*h*h);e[0]=g/wt,e[1]=A/wt,e[2]=b/wt}function Hp(e){var i=e[0]*wt,a=e[1]*wt,l=e[2]*wt,h=Math.cos(i/2),c=Math.cos(a/2),g=Math.cos(l/2),A=Math.sin(i/2),b=Math.sin(a/2),w=Math.sin(l/2),O=h*c*g-A*b*w,G=A*b*g+h*c*w,x=A*c*g+h*b*w,M=h*b*g-A*c*w;return[G,x,M,O]}function Gp(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==ho&&(this._caching.lastFrame>=a&&e>=a||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function kn(e){var i;if(this.propType==="unidimensional")i=e*this.mult,Bp(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var a=0,l=this.v.length;a<l;)i=e[a]*this.mult,Bp(this.v[a]-i)>1e-5&&(this.v[a]=i,this._mdf=!0),a+=1}function Nn(){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 e,i=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)a=this.effectsSequence[e](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Ln(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function qb(e,i,a,l){this.propType="unidimensional",this.mult=a||1,this.data=i,this.v=a?i.k*a:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Nn,this.setVValue=kn,this.addEffect=Ln}function Xb(e,i,a,l){this.propType="multidimensional",this.mult=a||1,this.data=i,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h,c=i.k.length;for(this.v=X("float32",c),this.pv=X("float32",c),this.vel=X("float32",c),h=0;h<c;h+=1)this.v[h]=i.k[h]*this.mult,this.pv[h]=i.k[h];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Nn,this.setVValue=kn,this.addEffect=Ln}function Zb(e,i,a,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:ho,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=ho,this.pv=ho,this._isFirstFrame=!0,this.getValue=Nn,this.setVValue=kn,this.interpolateValue=Up,this.effectsSequence=[Gp.bind(this)],this.addEffect=Ln}function Qb(e,i,a,l){this.propType="multidimensional";var h,c=i.k.length,g,A,b,w;for(h=0;h<c-1;h+=1)i.k[h].to&&i.k[h].s&&i.k[h+1]&&i.k[h+1].s&&(g=i.k[h].s,A=i.k[h+1].s,b=i.k[h].to,w=i.k[h].ti,(g.length===2&&!(g[0]===A[0]&&g[1]===A[1])&&Rr.pointOnLine2D(g[0],g[1],A[0],A[1],g[0]+b[0],g[1]+b[1])&&Rr.pointOnLine2D(g[0],g[1],A[0],A[1],A[0]+w[0],A[1]+w[1])||g.length===3&&!(g[0]===A[0]&&g[1]===A[1]&&g[2]===A[2])&&Rr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Rr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],A[0]+w[0],A[1]+w[1],A[2]+w[2]))&&(i.k[h].to=null,i.k[h].ti=null),g[0]===A[0]&&g[1]===A[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===A[2]&&b[2]===0&&w[2]===0)&&(i.k[h].to=null,i.k[h].ti=null));this.effectsSequence=[Gp.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=Nn,this.setVValue=kn,this.interpolateValue=Up,this.frameId=-1;var O=i.k[0].s.length;for(this.v=X("float32",O),this.pv=X("float32",O),h=0;h<O;h+=1)this.v[h]=ho,this.pv[h]=ho;this._caching={lastFrame:ho,lastIndex:0,value:X("float32",O)},this.addEffect=Ln}var at=function(){function e(a,l,h,c,g){l.sid&&(l=a.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new qb(a,l,c,g);else if(typeof l.k[0]=="number")A=new Xb(a,l,c,g);else switch(h){case 0:A=new Zb(a,l,c,g);break;case 1:A=new Qb(a,l,c,g);break;default:break}return A.effectsSequence.length&&g.addDynamicProperty(A),A}var i={getProp:e};return i}();function me(){}me.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var po=function(){function e(){return X("float32",2)}return wn(8,e)}();function Jr(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}Jr.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var a=0;a<i;)this.v[a]=po.newElement(),this.o[a]=po.newElement(),this.i[a]=po.newElement(),a+=1},Jr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Jr.prototype.doubleArrayLength=function(){this.v=this.v.concat(it(this._maxLength)),this.i=this.i.concat(it(this._maxLength)),this.o=this.o.concat(it(this._maxLength)),this._maxLength*=2},Jr.prototype.setXYAt=function(e,i,a,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),a){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[l]||c[l]&&!h)&&(c[l]=po.newElement()),c[l][0]=e,c[l][1]=i},Jr.prototype.setTripleAt=function(e,i,a,l,h,c,g,A){this.setXYAt(e,i,"v",g,A),this.setXYAt(a,l,"o",g,A),this.setXYAt(h,c,"i",g,A)},Jr.prototype.reverse=function(){var e=new Jr;e.setPathData(this.c,this._length);var i=this.v,a=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],a[0][0],a[0][1],0,!1),h=1);var c=this._length-1,g=this._length,A;for(A=h;A<g;A+=1)e.setTripleAt(i[c][0],i[c][1],l[c][0],l[c][1],a[c][0],a[c][1],A,!1),c-=1;return e},Jr.prototype.length=function(){return this._length};var be=function(){function e(){return new Jr}function i(h){var c=h._length,g;for(g=0;g<c;g+=1)po.release(h.v[g]),po.release(h.i[g]),po.release(h.o[g]),h.v[g]=null,h.i[g]=null,h.o[g]=null;h._length=0,h.c=!1}function a(h){var c=l.newElement(),g,A=h._length===void 0?h.v.length:h._length;for(c.setLength(A),c.c=h.c,g=0;g<A;g+=1)c.setTripleAt(h.v[g][0],h.v[g][1],h.o[g][0],h.o[g][1],h.i[g][0],h.i[g][1],g);return c}var l=wn(4,e,i);return l.clone=a,l}();function Bd(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}Bd.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(it(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Bd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)be.release(this.shapes[e]);this._length=0};var ss=function(){var e={newShapeCollection:h,release:c},i=0,a=4,l=it(a);function h(){var g;return i?(i-=1,g=l[i]):g=new Bd,g}function c(g){var A,b=g._length;for(A=0;A<b;A+=1)be.release(g.shapes[A]);g._length=0,i===a&&(l=$p.double(l),a*=2),l[i]=g,i+=1}return e}(),On=function(){var e=-999999;function i(N,C,E){var S=E.lastIndex,k,F,H,K,rt,yt,mt,st,xt,ct=this.keyframes;if(N<ct[0].t-this.offsetTime)k=ct[0].s[0],H=!0,S=0;else if(N>=ct[ct.length-1].t-this.offsetTime)k=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var et=S,I=ct.length-1,P=!0,v,y,Y;P&&(v=ct[et],y=ct[et+1],!(y.t-this.offsetTime>N));)et<I-1?et+=1:P=!1;if(Y=this.keyframesMetadata[et]||{},H=v.h===1,S=et,!H){if(N>=y.t-this.offsetTime)st=1;else if(N<v.t-this.offsetTime)st=0;else{var $;Y.__fnct?$=Y.__fnct:($=sa.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,Y.__fnct=$),st=$((N-(v.t-this.offsetTime))/(y.t-this.offsetTime-(v.t-this.offsetTime)))}F=y.s?y.s[0]:v.e[0]}k=v.s[0]}for(yt=C._length,mt=k.i[0].length,E.lastIndex=S,K=0;K<yt;K+=1)for(rt=0;rt<mt;rt+=1)xt=H?k.i[K][rt]:k.i[K][rt]+(F.i[K][rt]-k.i[K][rt])*st,C.i[K][rt]=xt,xt=H?k.o[K][rt]:k.o[K][rt]+(F.o[K][rt]-k.o[K][rt])*st,C.o[K][rt]=xt,xt=H?k.v[K][rt]:k.v[K][rt]+(F.v[K][rt]-k.v[K][rt])*st,C.v[K][rt]=xt}function a(){var N=this.comp.renderedFrame-this.offsetTime,C=this.keyframes[0].t-this.offsetTime,E=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==e&&(S<C&&N<C||S>E&&N>E)||(this._caching.lastIndex=S<N?this._caching.lastIndex:0,this.interpolateShape(N,this.pv,this._caching)),this._caching.lastFrame=N,this.pv}function l(){this.paths=this.localShapeCollection}function h(N,C){if(N._length!==C._length||N.c!==C.c)return!1;var E,S=N._length;for(E=0;E<S;E+=1)if(N.v[E][0]!==C.v[E][0]||N.v[E][1]!==C.v[E][1]||N.o[E][0]!==C.o[E][0]||N.o[E][1]!==C.o[E][1]||N.i[E][0]!==C.i[E][0]||N.i[E][1]!==C.i[E][1])return!1;return!0}function c(N){h(this.v,N)||(this.v=be.clone(N),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 N;this.kf?N=this.pv:this.data.ks?N=this.data.ks.k:N=this.data.pt.k;var C,E=this.effectsSequence.length;for(C=0;C<E;C+=1)N=this.effectsSequence[C](N);this.setVValue(N),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(N,C,E){this.propType="shape",this.comp=N.comp,this.container=N,this.elem=N,this.data=C,this.k=!1,this.kf=!1,this._mdf=!1;var S=E===3?C.pt.k:C.ks.k;this.v=be.clone(S),this.pv=be.clone(this.v),this.localShapeCollection=ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function b(N){this.effectsSequence.push(N),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=g,A.prototype.setVValue=c,A.prototype.addEffect=b;function w(N,C,E){this.propType="shape",this.comp=N.comp,this.elem=N,this.container=N,this.offsetTime=N.data.st,this.keyframes=E===3?C.pt.k:C.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=be.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=be.clone(this.v),this.localShapeCollection=ss.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[a.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=i,w.prototype.setVValue=c,w.prototype.addEffect=b;var O=function(){var N=ge;function C(E,S){this.v=be.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ss.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=E,this.comp=E.comp,this.frameId=-1,this.initDynamicPropertyContainer(E),this.p=at.getProp(E,S.p,1,0,this),this.s=at.getProp(E,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return C.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],k=this.p.v[1],F=this.s.v[0]/2,H=this.s.v[1]/2,K=this.d!==3,rt=this.v;rt.v[0][0]=S,rt.v[0][1]=k-H,rt.v[1][0]=K?S+F:S-F,rt.v[1][1]=k,rt.v[2][0]=S,rt.v[2][1]=k+H,rt.v[3][0]=K?S-F:S+F,rt.v[3][1]=k,rt.i[0][0]=K?S-F*N:S+F*N,rt.i[0][1]=k-H,rt.i[1][0]=K?S+F:S-F,rt.i[1][1]=k-H*N,rt.i[2][0]=K?S+F*N:S-F*N,rt.i[2][1]=k+H,rt.i[3][0]=K?S-F:S+F,rt.i[3][1]=k+H*N,rt.o[0][0]=K?S+F*N:S-F*N,rt.o[0][1]=k-H,rt.o[1][0]=K?S+F:S-F,rt.o[1][1]=k+H*N,rt.o[2][0]=K?S-F*N:S+F*N,rt.o[2][1]=k+H,rt.o[3][0]=K?S-F:S+F,rt.o[3][1]=k-H*N}},L([me],C),C}(),G=function(){function N(C,E){this.v=be.newElement(),this.v.setPathData(!0,0),this.elem=C,this.comp=C.comp,this.data=E,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),E.sy===1?(this.ir=at.getProp(C,E.ir,0,0,this),this.is=at.getProp(C,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(C,E.pt,0,0,this),this.p=at.getProp(C,E.p,1,0,this),this.r=at.getProp(C,E.r,0,wt,this),this.or=at.getProp(C,E.or,0,0,this),this.os=at.getProp(C,E.os,0,.01,this),this.localShapeCollection=ss.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return N.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var E=Math.floor(this.pt.v)*2,S=Math.PI*2/E,k=!0,F=this.or.v,H=this.ir.v,K=this.os.v,rt=this.is.v,yt=2*Math.PI*F/(E*2),mt=2*Math.PI*H/(E*2),st,xt,ct,et,I=-Math.PI/2;I+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<E;st+=1){xt=k?F:H,ct=k?K:rt,et=k?yt:mt;var v=xt*Math.cos(I),y=xt*Math.sin(I),Y=v===0&&y===0?0:y/Math.sqrt(v*v+y*y),$=v===0&&y===0?0:-v/Math.sqrt(v*v+y*y);v+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(v,y,v-Y*et*ct*P,y-$*et*ct*P,v+Y*et*ct*P,y+$*et*ct*P,st,!0),k=!k,I+=S*P}},convertPolygonToPath:function(){var E=Math.floor(this.pt.v),S=Math.PI*2/E,k=this.or.v,F=this.os.v,H=2*Math.PI*k/(E*4),K,rt=-Math.PI*.5,yt=this.data.d===3?-1:1;for(rt+=this.r.v,this.v._length=0,K=0;K<E;K+=1){var mt=k*Math.cos(rt),st=k*Math.sin(rt),xt=mt===0&&st===0?0:st/Math.sqrt(mt*mt+st*st),ct=mt===0&&st===0?0:-mt/Math.sqrt(mt*mt+st*st);mt+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(mt,st,mt-xt*H*F*yt,st-ct*H*F*yt,mt+xt*H*F*yt,st+ct*H*F*yt,K,!0),rt+=S*yt}this.paths.length=0,this.paths[0]=this.v}},L([me],N),N}(),x=function(){function N(C,E){this.v=be.newElement(),this.v.c=!0,this.localShapeCollection=ss.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=C,this.comp=C.comp,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),this.p=at.getProp(C,E.p,1,0,this),this.s=at.getProp(C,E.s,1,0,this),this.r=at.getProp(C,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return N.prototype={convertRectToPath:function(){var E=this.p.v[0],S=this.p.v[1],k=this.s.v[0]/2,F=this.s.v[1]/2,H=De(k,F,this.r.v),K=H*(1-ge);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+H,E+k,S-F+K,0,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-K,E+k,S+F-H,1,!0),H!==0?(this.v.setTripleAt(E+k-H,S+F,E+k-H,S+F,E+k-K,S+F,2,!0),this.v.setTripleAt(E-k+H,S+F,E-k+K,S+F,E-k+H,S+F,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-H,E-k,S+F-K,4,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+K,E-k,S-F+H,5,!0),this.v.setTripleAt(E-k+H,S-F,E-k+H,S-F,E-k+K,S-F,6,!0),this.v.setTripleAt(E+k-H,S-F,E+k-K,S-F,E+k-H,S-F,7,!0)):(this.v.setTripleAt(E-k,S+F,E-k+K,S+F,E-k,S+F,2),this.v.setTripleAt(E-k,S-F,E-k,S-F+K,E-k,S-F,3))):(this.v.setTripleAt(E+k,S-F+H,E+k,S-F+K,E+k,S-F+H,0,!0),H!==0?(this.v.setTripleAt(E+k-H,S-F,E+k-H,S-F,E+k-K,S-F,1,!0),this.v.setTripleAt(E-k+H,S-F,E-k+K,S-F,E-k+H,S-F,2,!0),this.v.setTripleAt(E-k,S-F+H,E-k,S-F+H,E-k,S-F+K,3,!0),this.v.setTripleAt(E-k,S+F-H,E-k,S+F-K,E-k,S+F-H,4,!0),this.v.setTripleAt(E-k+H,S+F,E-k+H,S+F,E-k+K,S+F,5,!0),this.v.setTripleAt(E+k-H,S+F,E+k-K,S+F,E+k-H,S+F,6,!0),this.v.setTripleAt(E+k,S+F-H,E+k,S+F-H,E+k,S+F-K,7,!0)):(this.v.setTripleAt(E-k,S-F,E-k+K,S-F,E-k,S-F,1,!0),this.v.setTripleAt(E-k,S+F,E-k,S+F-K,E-k,S+F,2,!0),this.v.setTripleAt(E+k,S+F,E+k-K,S+F,E+k,S+F,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},L([me],N),N}();function M(N,C,E){var S;if(E===3||E===4){var k=E===3?C.pt:C.ks,F=k.k;F.length?S=new w(N,C,E):S=new A(N,C,E)}else E===5?S=new x(N,C):E===6?S=new O(N,C):E===7&&(S=new G(N,C));return S.k&&N.addDynamicProperty(S),S}function D(){return A}function R(){return w}var V={};return V.getShapeProp=M,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=R,V}();var ye=function(){var e=Math.cos,i=Math.sin,a=Math.tan,l=Math.round;function h(){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 c(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(1,0,0,0,0,y,-Y,0,0,Y,y,0,0,0,0,1)}function A(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(y,0,Y,0,0,1,0,0,-Y,0,y,0,0,0,0,1)}function b(v){if(v===0)return this;var y=e(v),Y=i(v);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function w(v,y){return this._t(1,y,v,1,0,0)}function O(v,y){return this.shear(a(v),a(y))}function G(v,y){var Y=e(y),$=i(y);return this._t(Y,$,0,0,-$,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(v),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-$,0,0,$,Y,0,0,0,0,1,0,0,0,0,1)}function x(v,y,Y){return!Y&&Y!==0&&(Y=1),v===1&&y===1&&Y===1?this:this._t(v,0,0,0,0,y,0,0,0,0,Y,0,0,0,0,1)}function M(v,y,Y,$,nt,vt,Et,Mt,Rt,re,ze,Dr,Ve,ue,Ze,Ft){return this.props[0]=v,this.props[1]=y,this.props[2]=Y,this.props[3]=$,this.props[4]=nt,this.props[5]=vt,this.props[6]=Et,this.props[7]=Mt,this.props[8]=Rt,this.props[9]=re,this.props[10]=ze,this.props[11]=Dr,this.props[12]=Ve,this.props[13]=ue,this.props[14]=Ze,this.props[15]=Ft,this}function D(v,y,Y){return Y=Y||0,v!==0||y!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,y,Y,1):this}function R(v,y,Y,$,nt,vt,Et,Mt,Rt,re,ze,Dr,Ve,ue,Ze,Ft){var ht=this.props;if(v===1&&y===0&&Y===0&&$===0&&nt===0&&vt===1&&Et===0&&Mt===0&&Rt===0&&re===0&&ze===1&&Dr===0)return ht[12]=ht[12]*v+ht[15]*Ve,ht[13]=ht[13]*vt+ht[15]*ue,ht[14]=ht[14]*ze+ht[15]*Ze,ht[15]*=Ft,this._identityCalculated=!1,this;var ri=ht[0],Li=ht[1],ii=ht[2],Fr=ht[3],oi=ht[4],si=ht[5],Be=ht[6],Oi=ht[7],Mi=ht[8],Sr=ht[9],Ri=ht[10],Ir=ht[11],vo=ht[12],Bn=ht[13],Un=ht[14],Hn=ht[15];return ht[0]=ri*v+Li*nt+ii*Rt+Fr*Ve,ht[1]=ri*y+Li*vt+ii*re+Fr*ue,ht[2]=ri*Y+Li*Et+ii*ze+Fr*Ze,ht[3]=ri*$+Li*Mt+ii*Dr+Fr*Ft,ht[4]=oi*v+si*nt+Be*Rt+Oi*Ve,ht[5]=oi*y+si*vt+Be*re+Oi*ue,ht[6]=oi*Y+si*Et+Be*ze+Oi*Ze,ht[7]=oi*$+si*Mt+Be*Dr+Oi*Ft,ht[8]=Mi*v+Sr*nt+Ri*Rt+Ir*Ve,ht[9]=Mi*y+Sr*vt+Ri*re+Ir*ue,ht[10]=Mi*Y+Sr*Et+Ri*ze+Ir*Ze,ht[11]=Mi*$+Sr*Mt+Ri*Dr+Ir*Ft,ht[12]=vo*v+Bn*nt+Un*Rt+Hn*Ve,ht[13]=vo*y+Bn*vt+Un*re+Hn*ue,ht[14]=vo*Y+Bn*Et+Un*ze+Hn*Ze,ht[15]=vo*$+Bn*Mt+Un*Dr+Hn*Ft,this._identityCalculated=!1,this}function V(v){var y=v.props;return this.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15])}function N(){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 C(v){for(var y=0;y<16;){if(v.props[y]!==this.props[y])return!1;y+=1}return!0}function E(v){var y;for(y=0;y<16;y+=1)v.props[y]=this.props[y];return v}function S(v){var y;for(y=0;y<16;y+=1)this.props[y]=v[y]}function k(v,y,Y){return{x:v*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],y:v*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],z:v*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}}function F(v,y,Y){return v*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12]}function H(v,y,Y){return v*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13]}function K(v,y,Y){return v*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}function rt(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],y=this.props[5]/v,Y=-this.props[1]/v,$=-this.props[4]/v,nt=this.props[0]/v,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Mt=new ye;return Mt.props[0]=y,Mt.props[1]=Y,Mt.props[4]=$,Mt.props[5]=nt,Mt.props[12]=vt,Mt.props[13]=Et,Mt}function yt(v){var y=this.getInverseMatrix();return y.applyToPointArray(v[0],v[1],v[2]||0)}function mt(v){var y,Y=v.length,$=[];for(y=0;y<Y;y+=1)$[y]=yt(v[y]);return $}function st(v,y,Y){var $=X("float32",6);if(this.isIdentity())$[0]=v[0],$[1]=v[1],$[2]=y[0],$[3]=y[1],$[4]=Y[0],$[5]=Y[1];else{var nt=this.props[0],vt=this.props[1],Et=this.props[4],Mt=this.props[5],Rt=this.props[12],re=this.props[13];$[0]=v[0]*nt+v[1]*Et+Rt,$[1]=v[0]*vt+v[1]*Mt+re,$[2]=y[0]*nt+y[1]*Et+Rt,$[3]=y[0]*vt+y[1]*Mt+re,$[4]=Y[0]*nt+Y[1]*Et+Rt,$[5]=Y[0]*vt+Y[1]*Mt+re}return $}function xt(v,y,Y){var $;return this.isIdentity()?$=[v,y,Y]:$=[v*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],v*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],v*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]],$}function ct(v,y){if(this.isIdentity())return v+","+y;var Y=this.props;return Math.round((v*Y[0]+y*Y[4]+Y[12])*100)/100+","+Math.round((v*Y[1]+y*Y[5]+Y[13])*100)/100}function et(){for(var v=0,y=this.props,Y="matrix3d(",$=1e4;v<16;)Y+=l(y[v]*$)/$,Y+=v===15?")":",",v+=1;return Y}function I(v){var y=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?l(v*y)/y:v}function P(){var v=this.props,y=I(v[0]),Y=I(v[1]),$=I(v[4]),nt=I(v[5]),vt=I(v[12]),Et=I(v[13]);return"matrix("+y+","+Y+","+$+","+nt+","+vt+","+Et+")"}return function(){this.reset=h,this.rotate=c,this.rotateX=g,this.rotateY=A,this.rotateZ=b,this.skew=O,this.skewFromAxis=G,this.shear=w,this.scale=x,this.setTransform=M,this.translate=D,this.transform=R,this.multiply=V,this.applyToPoint=k,this.applyToX=F,this.applyToY=H,this.applyToZ=K,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=et,this.to2dCSS=P,this.clone=E,this.cloneFromProps=S,this.equals=C,this.inversePoints=mt,this.inversePoint=yt,this.getInverseMatrix=rt,this._t=this.transform,this.isIdentity=N,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function Mn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mn=function(a){return typeof a}:Mn=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Mn(e)}var Pt={},Rn="__[STANDALONE]__",Yp="__[ANIMATIONDATA]__",Kp="";function Jb(e){p(e)}function Wp(){Rn===!0?ee.searchAnimations(Yp,Rn,Kp):ee.searchAnimations()}function ty(e){Db(e)}function ey(e){zb(e)}function ry(e){return Rn===!0&&(e.animationData=JSON.parse(Yp)),ee.loadAnimation(e)}function iy(e){if(typeof e=="string")switch(e){case"high":_n(200);break;default:case"medium":_n(50);break;case"low":_n(10);break}else!isNaN(e)&&e>1&&_n(e);ea()>=50?or(!1):or(!0)}function oy(){return typeof navigator<"u"}function sy(e,i){e==="expressions"&&$b(i)}function ay(e){switch(e){case"propertyFactory":return at;case"shapePropertyFactory":return On;case"matrix":return ye;default:return null}}Pt.play=ee.play,Pt.pause=ee.pause,Pt.setLocationHref=Jb,Pt.togglePause=ee.togglePause,Pt.setSpeed=ee.setSpeed,Pt.setDirection=ee.setDirection,Pt.stop=ee.stop,Pt.searchAnimations=Wp,Pt.registerAnimation=ee.registerAnimation,Pt.loadAnimation=ry,Pt.setSubframeRendering=ty,Pt.resize=ee.resize,Pt.goToAndStop=ee.goToAndStop,Pt.destroy=ee.destroy,Pt.setQuality=iy,Pt.inBrowser=oy,Pt.installPlugin=sy,Pt.freeze=ee.freeze,Pt.unfreeze=ee.unfreeze,Pt.setVolume=ee.setVolume,Pt.mute=ee.mute,Pt.unmute=ee.unmute,Pt.getRegisteredAnimations=ee.getRegisteredAnimations,Pt.useWebWorker=s,Pt.setIDPrefix=ey,Pt.__getFactory=ay,Pt.version="5.12.2";function ny(){document.readyState==="complete"&&(clearInterval(cy),Wp())}function ly(e){for(var i=jp.split("&"),a=0;a<i.length;a+=1){var l=i[a].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var jp="";if(Rn){var qp=document.getElementsByTagName("script"),dy=qp.length-1,Xp=qp[dy]||{src:""};jp=Xp.src?Xp.src.replace(/^[^\?]+\??/,""):"",Kp=ly("renderer")}var cy=setInterval(ny,100);try{!((typeof Ra>"u"?"undefined":Mn(Ra))==="object"&&typeof vl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Pt)}catch{}var Ii=function(){var e={},i={};e.registerModifier=a,e.getModifier=l;function a(h,c){i[h]||(i[h]=c)}function l(h,c,g){return new i[h](c,g)}return e}();function lr(){}lr.prototype.initModifierProperties=function(){},lr.prototype.addShapeToModifier=function(){},lr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:ss.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},lr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},lr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},L([me],lr);function Ar(){}L([lr],Ar),Ar.prototype.initModifierProperties=function(e,i){this.s=at.getProp(e,i.s,0,.01,this),this.e=at.getProp(e,i.e,0,.01,this),this.o=at.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ar.prototype.addShapeToModifier=function(e){e.pathsData=[]},Ar.prototype.calculateShapeEdges=function(e,i,a,l,h){var c=[];i<=1?c.push({s:e,e:i}):e>=1?c.push({s:e-1,e:i-1}):(c.push({s:e,e:1}),c.push({s:0,e:i-1}));var g=[],A,b=c.length,w;for(A=0;A<b;A+=1)if(w=c[A],!(w.e*h<l||w.s*h>l+a)){var O,G;w.s*h<=l?O=0:O=(w.s*h-l)/a,w.e*h>=l+a?G=1:G=(w.e*h-l)/a,g.push([O,G])}return g.length||g.push([0,0]),g},Ar.prototype.releasePathsData=function(e){var i,a=e.length;for(i=0;i<a;i+=1)Vp.release(e[i]);return e.length=0,e},Ar.prototype.processShapes=function(e){var i,a;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?i=1+l:this.s.v<0?i=0+l:i=this.s.v+l,this.e.v>1?a=1+l:this.e.v<0?a=0+l:a=this.e.v+l,i>a){var h=i;i=a,a=h}i=Math.round(i*1e4)*1e-4,a=Math.round(a*1e4)*1e-4,this.sValue=i,this.eValue=a}else i=this.sValue,a=this.eValue;var c,g,A=this.shapes.length,b,w,O,G,x,M=0;if(a===i)for(g=0;g<A;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(a===1&&i===0||a===0&&i===1){if(this._mdf)for(g=0;g<A;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,V;for(g=0;g<A;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(c=R.shape.paths,w=c._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(O=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)G=Rr.getSegmentsLength(c.shapes[b]),O.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=O}M+=x,R.shape._mdf=!0}var N=i,C=a,E=0,S;for(g=A-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(V=R.localShapeCollection,V.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,a,R.totalShapeLength,E,M),E+=R.totalShapeLength):S=[[N,C]],w=S.length,b=0;b<w;b+=1){N=S[b][0],C=S[b][1],D.length=0,C<=1?D.push({s:R.totalShapeLength*N,e:R.totalShapeLength*C}):N>=1?D.push({s:R.totalShapeLength*(N-1),e:R.totalShapeLength*(C-1)}):(D.push({s:R.totalShapeLength*N,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(C-1)}));var k=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=R.shape.paths.shapes[R.shape.paths._length-1];if(F.c){var H=k.pop();this.addPaths(k,V),k=this.addShapes(R,D[1],H)}else this.addPaths(k,V),k=this.addShapes(R,D[1])}this.addPaths(k,V)}}R.shape.paths=V}}},Ar.prototype.addPaths=function(e,i){var a,l=e.length;for(a=0;a<l;a+=1)i.addShape(e[a])},Ar.prototype.addSegment=function(e,i,a,l,h,c,g){h.setXYAt(i[0],i[1],"o",c),h.setXYAt(a[0],a[1],"i",c+1),g&&h.setXYAt(e[0],e[1],"v",c),h.setXYAt(l[0],l[1],"v",c+1)},Ar.prototype.addSegmentFromArray=function(e,i,a,l){i.setXYAt(e[1],e[5],"o",a),i.setXYAt(e[2],e[6],"i",a+1),l&&i.setXYAt(e[0],e[4],"v",a),i.setXYAt(e[3],e[7],"v",a+1)},Ar.prototype.addShapes=function(e,i,a){var l=e.pathsData,h=e.shape.paths.shapes,c,g=e.shape.paths._length,A,b,w=0,O,G,x,M,D=[],R,V=!0;for(a?(G=a._length,R=a._length):(a=be.newElement(),G=0,R=0),D.push(a),c=0;c<g;c+=1){for(x=l[c].lengths,a.c=h[c].c,b=h[c].c?x.length:x.length+1,A=1;A<b;A+=1)if(O=x[A-1],w+O.addedLength<i.s)w+=O.addedLength,a.c=!1;else if(w>i.e){a.c=!1;break}else i.s<=w&&i.e>=w+O.addedLength?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[A],h[c].v[A],a,G,V),V=!1):(M=Rr.getNewSegment(h[c].v[A-1],h[c].v[A],h[c].o[A-1],h[c].i[A],(i.s-w)/O.addedLength,(i.e-w)/O.addedLength,x[A-1]),this.addSegmentFromArray(M,a,G,V),V=!1,a.c=!1),w+=O.addedLength,G+=1;if(h[c].c&&x.length){if(O=x[A-1],w<=i.e){var N=x[A-1].addedLength;i.s<=w&&i.e>=w+N?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[0],h[c].v[0],a,G,V),V=!1):(M=Rr.getNewSegment(h[c].v[A-1],h[c].v[0],h[c].o[A-1],h[c].i[0],(i.s-w)/N,(i.e-w)/N,x[A-1]),this.addSegmentFromArray(M,a,G,V),V=!1,a.c=!1)}else a.c=!1;w+=O.addedLength,G+=1}if(a._length&&(a.setXYAt(a.v[R][0],a.v[R][1],"i",R),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),w>i.e)break;c<g-1&&(a=be.newElement(),V=!0,D.push(a),G=0)}return D};function aa(){}L([lr],aa),aa.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},aa.prototype.processPath=function(e,i){var a=i/100,l=[0,0],h=e._length,c=0;for(c=0;c<h;c+=1)l[0]+=e.v[c][0],l[1]+=e.v[c][1];l[0]/=h,l[1]/=h;var g=be.newElement();g.c=e.c;var A,b,w,O,G,x;for(c=0;c<h;c+=1)A=e.v[c][0]+(l[0]-e.v[c][0])*a,b=e.v[c][1]+(l[1]-e.v[c][1])*a,w=e.o[c][0]+(l[0]-e.o[c][0])*-a,O=e.o[c][1]+(l[1]-e.o[c][1])*-a,G=e.i[c][0]+(l[0]-e.i[c][0])*-a,x=e.i[c][1]+(l[1]-e.i[c][1])*-a,g.setTripleAt(A,b,w,O,G,x,c);return g},aa.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,g=this.amount.v;if(g!==0){var A,b;for(a=0;a<l;a+=1){if(A=this.shapes[a],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)b.addShape(this.processPath(i[h],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Ud=function(){var e=[0,0];function i(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.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?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){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 O,G;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?(O=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/w,0),G=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?(O=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/w,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(O=this.p.pv,G=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){O=[],G=[];var x=this.px,M=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(O[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),O[1]=M.getValueAtTime((M.keyframes[0].t+.01)/w,0),G[0]=x.getValueAtTime(x.keyframes[0].t/w,0),G[1]=M.getValueAtTime(M.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(O[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),O[1]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/w,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),G[1]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/w,0)):(O=[x.pv,M.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),G[1]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/w,M.offsetTime))}else G=e,O=G;this.v.rotate(-Math.atan2(O[1]-G[1],O[0]-G[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 l(){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 h(){}function c(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,O){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new ye,this.pre=new ye,this.appliedTransformations=0,this.initDynamicPropertyContainer(O||b),w.p&&w.p.s?(this.px=at.getProp(b,w.p.x,0,0,this),this.py=at.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=at.getProp(b,w.p.z,0,0,this))):this.p=at.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=at.getProp(b,w.rx,0,wt,this),this.ry=at.getProp(b,w.ry,0,wt,this),this.rz=at.getProp(b,w.rz,0,wt,this),w.or.k[0].ti){var G,x=w.or.k.length;for(G=0;G<x;G+=1)w.or.k[G].to=null,w.or.k[G].ti=null}this.or=at.getProp(b,w.or,1,wt,this),this.or.sh=!0}else this.r=at.getProp(b,w.r||{k:0},0,wt,this);w.sk&&(this.sk=at.getProp(b,w.sk,0,wt,this),this.sa=at.getProp(b,w.sa,0,wt,this)),this.a=at.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=at.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:a,precalculateMatrix:l,autoOrient:h},L([me],g),g.prototype.addDynamicProperty=c,g.prototype._addDynamicProperty=me.prototype.addDynamicProperty;function A(b,w,O){return new g(b,w,O)}return{getTransformProperty:A}}();function Pr(){}L([lr],Pr),Pr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=at.getProp(e,i.c,0,null,this),this.o=at.getProp(e,i.o,0,null,this),this.tr=Ud.getTransformProperty(e,i.tr,this),this.so=at.getProp(e,i.tr.so,0,.01,this),this.eo=at.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new ye,this.rMatrix=new ye,this.sMatrix=new ye,this.tMatrix=new ye,this.matrix=new ye},Pr.prototype.applyTransforms=function(e,i,a,l,h,c){var g=c?-1:1,A=l.s.v[0]+(1-l.s.v[0])*(1-h),b=l.s.v[1]+(1-l.s.v[1])*(1-h);e.translate(l.p.v[0]*g*h,l.p.v[1]*g*h,l.p.v[2]),i.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),i.rotate(-l.r.v*g*h),i.translate(l.a.v[0],l.a.v[1],l.a.v[2]),a.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),a.scale(c?1/A:A,c?1/b:b),a.translate(l.a.v[0],l.a.v[1],l.a.v[2])},Pr.prototype.init=function(e,i,a,l){for(this.elem=e,this.arr=i,this.pos=a,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[a]);a>0;)a-=1,this._elements.unshift(i[a]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Pr.prototype.resetElements=function(e){var i,a=e.length;for(i=0;i<a;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},Pr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},Pr.prototype.changeGroupRender=function(e,i){var a,l=e.length;for(a=0;a<l;a+=1)e[a]._render=i,e[a].ty==="gr"&&this.changeGroupRender(e[a].it,i)},Pr.prototype.processShapes=function(e){var i,a,l,h,c,g=!1;if(this._mdf||e){var A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.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,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}c=0;var w;for(l=0;l<=this._groups.length-1;l+=1){if(w=c<A,this._groups[l]._render=w,this.changeGroupRender(this._groups[l].it,w),!w){var O=this.elemsData[l].it,G=O[O.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}c+=1}this._currentCopies=A;var x=this.o.v,M=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,V=this.rMatrix.props,N=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var C=0;if(x>0){for(;C<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,M,!1),C+=M)}else if(x<0){for(;C>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-M,!0),C-=M)}l=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,c=this._currentCopies;for(var E,S;c;){if(i=this.elemsData[l].it,a=i[i.length-1].transform.mProps.v.props,S=a.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(l/(this._currentCopies-1)),C!==0){for((l!==0&&h===1||l!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(V[0],V[1],V[2],V[3],V[4],V[5],V[6],V[7],V[8],V[9],V[10],V[11],V[12],V[13],V[14],V[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[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]),E=0;E<S;E+=1)a[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<S;E+=1)a[E]=this.matrix.props[E];C+=1,c-=1,l+=h}}else for(c=this._currentCopies,l=0,h=1;c;)i=this.elemsData[l].it,a=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,c-=1,l+=h;return g},Pr.prototype.addShape=function(){};function na(){}L([lr],na),na.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=at.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},na.prototype.processPath=function(e,i){var a=be.newElement();a.c=e.c;var l,h=e._length,c,g,A,b,w,O,G=0,x,M,D,R,V,N;for(l=0;l<h;l+=1)c=e.v[l],A=e.o[l],g=e.i[l],c[0]===A[0]&&c[1]===A[1]&&c[0]===g[0]&&c[1]===g[1]?(l===0||l===h-1)&&!e.c?(a.setTripleAt(c[0],c[1],A[0],A[1],g[0],g[1],G),G+=1):(l===0?b=e.v[h-1]:b=e.v[l-1],w=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),O=w?Math.min(w/2,i)/w:0,V=c[0]+(b[0]-c[0])*O,x=V,N=c[1]-(c[1]-b[1])*O,M=N,D=x-(x-c[0])*ge,R=M-(M-c[1])*ge,a.setTripleAt(x,M,D,R,V,N,G),G+=1,l===h-1?b=e.v[0]:b=e.v[l+1],w=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),O=w?Math.min(w/2,i)/w:0,D=c[0]+(b[0]-c[0])*O,x=D,R=c[1]+(b[1]-c[1])*O,M=R,V=x-(x-c[0])*ge,N=M-(M-c[1])*ge,a.setTripleAt(x,M,D,R,V,N,G),G+=1):(a.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],G),G+=1);return a},na.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,g=this.rd.v;if(g!==0){var A,b;for(a=0;a<l;a+=1){if(A=this.shapes[a],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)b.addShape(this.processPath(i[h],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Pn(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function Hd(e){return Math.abs(e)<=1e-5}function Zp(e,i,a){return e*(1-a)+i*a}function _i(e,i,a){return[Zp(e[0],i[0],a),Zp(e[1],i[1],a)]}function hy(e,i,a){if(e===0)return[];var l=i*i-4*e*a;if(l<0)return[];var h=-i/(2*e);if(l===0)return[h];var c=Math.sqrt(l)/(2*e);return[h-c,h+c]}function Qp(e,i,a,l){return[-e+3*i-3*a+l,3*e-6*i+3*a,-3*e+3*i,e]}function Jp(e){return new jt(e,e,e,e,!1)}function jt(e,i,a,l,h){h&&ns(e,i)&&(i=_i(e,l,1/3)),h&&ns(a,l)&&(a=_i(e,l,2/3));var c=Qp(e[0],i[0],a[0],l[0]),g=Qp(e[1],i[1],a[1],l[1]);this.a=[c[0],g[0]],this.b=[c[1],g[1]],this.c=[c[2],g[2]],this.d=[c[3],g[3]],this.points=[e,i,a,l]}jt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},jt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},jt.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},jt.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},jt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Hd(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,a=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(a<0)return[];var l=Math.sqrt(a);return Hd(l)?l>0&&l<1?[i]:[]:[i-l,i+l].filter(function(h){return h>0&&h<1})},jt.prototype.split=function(e){if(e<=0)return[Jp(this.points[0]),this];if(e>=1)return[this,Jp(this.points[this.points.length-1])];var i=_i(this.points[0],this.points[1],e),a=_i(this.points[1],this.points[2],e),l=_i(this.points[2],this.points[3],e),h=_i(i,a,e),c=_i(a,l,e),g=_i(h,c,e);return[new jt(this.points[0],i,h,g,!0),new jt(g,c,l,this.points[3],!0)]};function tm(e,i){var a=e.points[0][i],l=e.points[e.points.length-1][i];if(a>l){var h=l;l=a,a=h}for(var c=hy(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<c.length;g+=1)if(c[g]>0&&c[g]<1){var A=e.point(c[g])[i];A<a?a=A:A>l&&(l=A)}return{min:a,max:l}}jt.prototype.bounds=function(){return{x:tm(this,0),y:tm(this,1)}},jt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Dn(e,i,a){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+a)/2,t1:i,t2:a}}function em(e){var i=e.bez.split(.5);return[Dn(i[0],e.t1,e.t),Dn(i[1],e.t,e.t2)]}function py(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function la(e,i,a,l,h,c){if(py(e,i)){if(a>=c||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){h.push([e.t,i.t]);return}var g=em(e),A=em(i);la(g[0],A[0],a+1,l,h,c),la(g[0],A[1],a+1,l,h,c),la(g[1],A[0],a+1,l,h,c),la(g[1],A[1],a+1,l,h,c)}}jt.prototype.intersections=function(e,i,a){i===void 0&&(i=2),a===void 0&&(a=7);var l=[];return la(Dn(this,0,1),Dn(e,0,1),0,i,l,a),l},jt.shapeSegment=function(e,i){var a=(i+1)%e.length();return new jt(e.v[i],e.o[i],e.i[a],e.v[a],!0)},jt.shapeSegmentInverted=function(e,i){var a=(i+1)%e.length();return new jt(e.v[a],e.i[a],e.o[i],e.v[i],!0)};function Gd(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Fn(e,i,a,l){var h=[e[0],e[1],1],c=[i[0],i[1],1],g=[a[0],a[1],1],A=[l[0],l[1],1],b=Gd(Gd(h,c),Gd(g,A));return Hd(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function as(e,i,a){return[e[0]+Math.cos(i)*a,e[1]-Math.sin(i)*a]}function Yd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function ns(e,i){return Pn(e[0],i[0])&&Pn(e[1],i[1])}function da(){}L([lr],da),da.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=at.getProp(e,i.s,0,null,this),this.frequency=at.getProp(e,i.r,0,null,this),this.pointsType=at.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function rm(e,i,a,l,h,c,g){var A=a-Math.PI/2,b=a+Math.PI/2,w=i[0]+Math.cos(a)*l*h,O=i[1]-Math.sin(a)*l*h;e.setTripleAt(w,O,w+Math.cos(A)*c,O-Math.sin(A)*c,w+Math.cos(b)*g,O-Math.sin(b)*g,e.length())}function my(e,i){var a=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*a[0]-Math.sin(l)*a[1],Math.sin(l)*a[0]+Math.cos(l)*a[1]];return h}function uy(e,i){var a=i===0?e.length()-1:i-1,l=(i+1)%e.length(),h=e.v[a],c=e.v[l],g=my(h,c);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function im(e,i,a,l,h,c,g){var A=uy(i,a),b=i.v[a%i._length],w=i.v[a===0?i._length-1:a-1],O=i.v[(a+1)%i._length],G=c===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=c===2?Math.sqrt(Math.pow(b[0]-O[0],2)+Math.pow(b[1]-O[1],2)):0;rm(e,i.v[a%i._length],A,g,l,x/((h+1)*2),G/((h+1)*2),c)}function fy(e,i,a,l,h,c){for(var g=0;g<l;g+=1){var A=(g+1)/(l+1),b=h===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,w=i.normalAngle(A),O=i.point(A);rm(e,O,w,c,a,b/((l+1)*2),b/((l+1)*2),h),c=-c}return c}da.prototype.processPath=function(e,i,a,l){var h=e._length,c=be.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var g=-1,A=jt.shapeSegment(e,0);im(c,e,0,i,a,l,g);for(var b=0;b<h;b+=1)g=fy(c,A,i,a,l,-g),b===h-1&&!e.c?A=null:A=jt.shapeSegment(e,(b+1)%h),im(c,e,b+1,i,a,l,g);return c},da.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,g=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,O;for(a=0;a<l;a+=1){if(w=this.shapes[a],O=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!e))for(O.releaseShapes(),w.shape._mdf=!0,i=w.shape.paths.shapes,c=w.shape.paths._length,h=0;h<c;h+=1)O.addShape(this.processPath(i[h],g,A,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Kd(e,i,a){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[as(e,l,a),as(i,l,a)]}function ls(e,i){var a,l,h,c,g,A,b;b=Kd(e.points[0],e.points[1],i),a=b[0],l=b[1],b=Kd(e.points[1],e.points[2],i),h=b[0],c=b[1],b=Kd(e.points[2],e.points[3],i),g=b[0],A=b[1];var w=Fn(a,l,h,c);w===null&&(w=l);var O=Fn(g,A,h,c);return O===null&&(O=g),new jt(a,w,O,A)}function om(e,i,a,l,h){var c=i.points[3],g=a.points[0];if(l===3||ns(c,g))return c;if(l===2){var A=-i.tangentAngle(1),b=-a.tangentAngle(0)+Math.PI,w=Fn(c,as(c,A+Math.PI/2,100),g,as(g,A+Math.PI/2,100)),O=w?Yd(w,c):Yd(c,g)/2,G=as(c,A,2*O*ge);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=as(g,b,2*O*ge),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=ns(c,i.points[2])?i.points[0]:i.points[2],M=ns(g,a.points[1])?a.points[3]:a.points[1],D=Fn(x,c,g,M);return D&&Yd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function sm(e,i){var a=e.intersections(i);return a.length&&Pn(a[0][0],1)&&a.shift(),a.length?a[0]:null}function am(e,i){var a=e.slice(),l=i.slice(),h=sm(e[e.length-1],i[0]);return h&&(a[e.length-1]=e[e.length-1].split(h[0])[0],l[0]=i[0].split(h[1])[1]),e.length>1&&i.length>1&&(h=sm(e[0],i[i.length-1]),h)?[[e[0].split(h[0])[0]],[i[i.length-1].split(h[1])[1]]]:[a,l]}function vy(e){for(var i,a=1;a<e.length;a+=1)i=am(e[a-1],e[a]),e[a-1]=i[0],e[a]=i[1];return e.length>1&&(i=am(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function nm(e,i){var a=e.inflectionPoints(),l,h,c,g;if(a.length===0)return[ls(e,i)];if(a.length===1||Pn(a[1],1))return c=e.split(a[0]),l=c[0],h=c[1],[ls(l,i),ls(h,i)];c=e.split(a[0]),l=c[0];var A=(a[1]-a[0])/(1-a[0]);return c=c[1].split(A),g=c[0],h=c[1],[ls(l,i),ls(g,i),ls(h,i)]}function ca(){}L([lr],ca),ca.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this.miterLimit=at.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},ca.prototype.processPath=function(e,i,a,l){var h=be.newElement();h.c=e.c;var c=e.length();e.c||(c-=1);var g,A,b,w=[];for(g=0;g<c;g+=1)b=jt.shapeSegment(e,g),w.push(nm(b,i));if(!e.c)for(g=c-1;g>=0;g-=1)b=jt.shapeSegmentInverted(e,g),w.push(nm(b,i));w=vy(w);var O=null,G=null;for(g=0;g<w.length;g+=1){var x=w[g];for(G&&(O=om(h,G,x[0],a,l)),G=x[x.length-1],A=0;A<x.length;A+=1)b=x[A],O&&ns(b.points[0],O)?h.setXYAt(b.points[1][0],b.points[1][1],"o",h.length()-1):h.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],h.length()),h.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],h.length()),O=b.points[3]}return w.length&&om(h,G,w[0][0],a,l),h},ca.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,g=this.amount.v,A=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,O;for(a=0;a<l;a+=1){if(w=this.shapes[a],O=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!e))for(O.releaseShapes(),w.shape._mdf=!0,i=w.shape.paths.shapes,c=w.shape.paths._length,h=0;h<c;h+=1)O.addShape(this.processPath(i[h],g,b,A));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function lm(e){for(var i=e.fStyle?e.fStyle.split(" "):[],a="normal",l="normal",h=i.length,c,g=0;g<h;g+=1)switch(c=i[g].toLowerCase(),c){case"italic":l="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:l,weight:e.fWeight||a}}var mo=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.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 l=127988,h=917631,c=917601,g=917626,A=65039,b=8205,w=127462,O=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(I){var P=I.split(","),v,y=P.length,Y=[];for(v=0;v<y;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&Y.push(P[v]);return Y.join(",")}function M(I,P){var v=T("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;var y=T("span");y.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(y),document.body.appendChild(v);var Y=y.offsetWidth;return y.style.fontFamily=x(I)+", "+P,{node:y,w:Y,parent:v}}function D(){var I,P=this.fonts.length,v,y,Y=P;for(I=0;I<P;I+=1)this.fonts[I].loaded?Y-=1:this.fonts[I].fOrigin==="n"||this.fonts[I].origin===0?this.fonts[I].loaded=!0:(v=this.fonts[I].monoCase.node,y=this.fonts[I].monoCase.w,v.offsetWidth!==y?(Y-=1,this.fonts[I].loaded=!0):(v=this.fonts[I].sansCase.node,y=this.fonts[I].sansCase.w,v.offsetWidth!==y&&(Y-=1,this.fonts[I].loaded=!0)),this.fonts[I].loaded&&(this.fonts[I].sansCase.parent.parentNode.removeChild(this.fonts[I].sansCase.parent),this.fonts[I].monoCase.parent.parentNode.removeChild(this.fonts[I].monoCase.parent)));Y!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(I,P){var v=document.body&&P?"svg":"canvas",y,Y=lm(I);if(v==="svg"){var $=Tt("text");$.style.fontSize="100px",$.setAttribute("font-family",I.fFamily),$.setAttribute("font-style",Y.style),$.setAttribute("font-weight",Y.weight),$.textContent="1",I.fClass?($.style.fontFamily="inherit",$.setAttribute("class",I.fClass)):$.style.fontFamily=I.fFamily,P.appendChild($),y=$}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=Y.style+" "+Y.weight+" 100px "+I.fFamily,y=nt}function vt(Et){return v==="svg"?(y.textContent=Et,y.getComputedTextLength()):y.measureText(Et).width}return{measureText:vt}}function V(I,P){if(!I){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=I.list;return}if(!document.body){this.isLoaded=!0,I.list.forEach(function(ze){ze.helper=R(ze),ze.cache={}}),this.fonts=I.list;return}var v=I.list,y,Y=v.length,$=Y;for(y=0;y<Y;y+=1){var nt=!0,vt,Et;if(v[y].loaded=!1,v[y].monoCase=M(v[y].fFamily,"monospace"),v[y].sansCase=M(v[y].fFamily,"sans-serif"),!v[y].fPath)v[y].loaded=!0,$-=1;else if(v[y].fOrigin==="p"||v[y].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[y].fFamily+'"], style[f-origin="3"][f-family="'+v[y].fFamily+'"]'),vt.length>0&&(nt=!1),nt){var Mt=T("style");Mt.setAttribute("f-forigin",v[y].fOrigin),Mt.setAttribute("f-origin",v[y].origin),Mt.setAttribute("f-family",v[y].fFamily),Mt.type="text/css",Mt.innerText="@font-face {font-family: "+v[y].fFamily+"; font-style: normal; src: url('"+v[y].fPath+"');}",P.appendChild(Mt)}}else if(v[y].fOrigin==="g"||v[y].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(v[y].fPath)!==-1&&(nt=!1);if(nt){var Rt=T("link");Rt.setAttribute("f-forigin",v[y].fOrigin),Rt.setAttribute("f-origin",v[y].origin),Rt.type="text/css",Rt.rel="stylesheet",Rt.href=v[y].fPath,document.body.appendChild(Rt)}}else if(v[y].fOrigin==="t"||v[y].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)v[y].fPath===vt[Et].src&&(nt=!1);if(nt){var re=T("link");re.setAttribute("f-forigin",v[y].fOrigin),re.setAttribute("f-origin",v[y].origin),re.setAttribute("rel","stylesheet"),re.setAttribute("href",v[y].fPath),P.appendChild(re)}}v[y].helper=R(v[y],P),v[y].cache={},this.fonts.push(v[y])}$===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function N(I){if(I){this.chars||(this.chars=[]);var P,v=I.length,y,Y=this.chars.length,$;for(P=0;P<v;P+=1){for(y=0,$=!1;y<Y;)this.chars[y].style===I[P].style&&this.chars[y].fFamily===I[P].fFamily&&this.chars[y].ch===I[P].ch&&($=!0),y+=1;$||(this.chars.push(I[P]),Y+=1)}}}function C(I,P,v){for(var y=0,Y=this.chars.length;y<Y;){if(this.chars[y].ch===I&&this.chars[y].style===P&&this.chars[y].fFamily===v)return this.chars[y];y+=1}return(typeof I=="string"&&I.charCodeAt(0)!==13||!I)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",I,P,v)),i}function E(I,P,v){var y=this.getFontByName(P),Y=I;if(!y.cache[Y]){var $=y.helper;if(I===" "){var nt=$.measureText("|"+I+"|"),vt=$.measureText("||");y.cache[Y]=(nt-vt)/100}else y.cache[Y]=$.measureText(I)/100}return y.cache[Y]*v}function S(I){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===I)return this.fonts[P];P+=1}return this.fonts[0]}function k(I){var P=0,v=I.charCodeAt(0);if(v>=55296&&v<=56319){var y=I.charCodeAt(1);y>=56320&&y<=57343&&(P=(v-55296)*1024+y-56320+65536)}return P}function F(I,P){var v=I.toString(16)+P.toString(16);return G.indexOf(v)!==-1}function H(I){return I===b}function K(I){return I===A}function rt(I){var P=k(I);return P>=w&&P<=O}function yt(I){return rt(I.substr(0,2))&&rt(I.substr(2,2))}function mt(I){return a.indexOf(I)!==-1}function st(I,P){var v=k(I.substr(P,2));if(v!==l)return!1;var y=0;for(P+=2;y<5;){if(v=k(I.substr(P,2)),v<c||v>g)return!1;y+=1,P+=2}return k(I.substr(P,2))===h}function xt(){this.isLoaded=!0}var ct=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)};ct.isModifier=F,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=rt,ct.isCombinedCharacter=mt,ct.isRegionalFlag=st,ct.isVariationSelector=K,ct.BLACK_FLAG_CODE_POINT=l;var et={addChars:N,addFonts:V,getCharData:C,getFontByName:S,measureText:E,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=et,ct}();function dm(e){this.animationData=e}dm.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function gy(e){return new dm(e)}function $n(){}$n.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},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(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?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 i,a=this.renderableComponents.length;for(i=0;i<a;i+=1)this.renderableComponents[i].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 Wd=function(){var e={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(i){return e[i]||""}}();function by(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function yy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function Ey(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function Ty(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function xy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function Ay(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function Sy(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function Iy(){this.p={}}function cm(e,i){var a=e.ef||[];this.effectElements=[];var l,h=a.length,c;for(l=0;l<h;l+=1)c=new ha(a[l],i),this.effectElements.push(c)}function ha(e,i){this.init(e,i)}L([me],ha),ha.prototype.getValue=ha.prototype.iterateDynamicProperties,ha.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,l=this.data.ef.length,h,c=this.data.ef;for(a=0;a<l;a+=1){switch(h=null,c[a].ty){case 0:h=new by(c[a],i,this);break;case 1:h=new yy(c[a],i,this);break;case 2:h=new Ey(c[a],i,this);break;case 3:h=new Ty(c[a],i,this);break;case 4:case 7:h=new Sy(c[a],i,this);break;case 10:h=new xy(c[a],i,this);break;case 11:h=new Ay(c[a],i,this);break;case 5:h=new cm(c[a],i,this);break;default:h=new Iy(c[a],i,this);break}h&&this.effectElements.push(h)}};function Ci(){}Ci.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,a=this.data.masksProperties.length;i<a;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Dp();if(i){var a=i("layer"),l=i("effects"),h=i("shape"),c=i("text"),g=i("comp");this.layerInterface=a(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var A=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(A),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=Wd(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=i},initBaseData:function(i,a,l){this.globalData=a,this.comp=l,this.data=i,this.layerId=Fe(),this.data.sr||(this.data.sr=1),this.effectsManager=new cm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function wi(){}wi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,a){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(a||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function ki(e,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,a)}ki.prototype.prepareFrame=function(){},L([$n,Ci,wi],ki),ki.prototype.getBaseElement=function(){return null},ki.prototype.renderFrame=function(){},ki.prototype.destroy=function(){},ki.prototype.initExpressions=function(){var e=Dp();if(e){var i=e("footage");this.layerInterface=i(this)}},ki.prototype.getFootageData=function(){return this.footageData};function $e(e,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,a),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}$e.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},L([$n,Ci,wi],$e),$e.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))},$e.prototype.show=function(){},$e.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},$e.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},$e.prototype.resume=function(){this._canPlay=!0},$e.prototype.setRate=function(e){this.audio.rate(e)},$e.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},$e.prototype.getBaseElement=function(){return null},$e.prototype.destroy=function(){},$e.prototype.sourceRectAtTime=function(){},$e.prototype.initExpressions=function(){};function Ee(){}Ee.prototype.checkLayers=function(e){var i,a=this.layers.length,l;for(this.completeLayers=!0,i=a-1;i>=0;i-=1)this.elements[i]||(l=this.layers[i],l.ip-l.st<=e-this.layers[i].st&&l.op-l.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},Ee.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},Ee.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ee.prototype.createAudio=function(e){return new $e(e,this.globalData,this)},Ee.prototype.createFootage=function(e){return new ki(e,this.globalData,this)},Ee.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},Ee.prototype.includeLayers=function(e){this.completeLayers=!1;var i,a=e.length,l,h=this.layers.length;for(i=0;i<a;i+=1)for(l=0;l<h;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},Ee.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Ee.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Ee.prototype.buildElementParenting=function(e,i,a){for(var l=this.elements,h=this.layers,c=0,g=h.length;c<g;)h[c].ind==i&&(!l[c]||l[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(a.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,a):e.setHierarchy(a))),c+=1},Ee.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Ee.prototype.searchExtraCompositions=function(e){var i,a=e.length;for(i=0;i<a;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},Ee.prototype.getElementById=function(e){var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},Ee.prototype.getElementByPath=function(e){var i=e.shift(),a;if(typeof i=="number")a=this.elements[i];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===i){a=this.elements[l];break}}return e.length===0?a:a.getElementByPath(e)},Ee.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new mo,this.globalData.slotManager=gy(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var _y={TRANSFORM_EFFECT:"transformEFfect"};function ds(){}ds.prototype={initTransform:function(){var i=new ye;this.finalTransform={mProp:this.data.ks?Ud.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,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 i,a=this.finalTransform.mat,l=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<h;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,a.cloneFromProps(i),l=0;l<h;l+=1)a.multiply(this.hierarchy[l].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 i=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<a;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),i=1;i<a;i+=1){var h=this.localTransforms[i].matrix;l.multiply(h)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(i=0;i<a;i+=1)c*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(_y.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new ye;var a=0,l=i.length;for(a=0;a<l;a+=1)this.localTransforms.push(i[a])}}},globalToLocal:function(i){var a=[];a.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&a.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,g=a.length,A;for(c=0;c<g;c+=1)A=a[c].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new ye};function uo(e,i,a){this.data=e,this.element=i,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,h,c=this.masksProperties?this.masksProperties.length:0;this.viewData=it(c),this.solidPath="";var g,A=this.masksProperties,b=0,w=[],O,G,x=Fe(),M,D,R,V,N="clipPath",C="clip-path";for(h=0;h<c;h+=1)if((A[h].mode!=="a"&&A[h].mode!=="n"||A[h].inv||A[h].o.k!==100||A[h].o.x)&&(N="mask",C="mask"),(A[h].mode==="s"||A[h].mode==="i")&&b===0?(M=Tt("rect"),M.setAttribute("fill","#ffffff"),M.setAttribute("width",this.element.comp.data.w||0),M.setAttribute("height",this.element.comp.data.h||0),w.push(M)):M=null,g=Tt("path"),A[h].mode==="n")this.viewData[h]={op:at.getProp(this.element,A[h].o,0,.01,this.element),prop:On.getShapeProp(this.element,A[h],3),elem:g,lastPath:""},l.appendChild(g);else{b+=1,g.setAttribute("fill",A[h].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var E;if(A[h].x.k!==0?(N="mask",C="mask",V=at.getProp(this.element,A[h].x,0,null,this.element),E=Fe(),D=Tt("filter"),D.setAttribute("id",E),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),l.appendChild(D),g.setAttribute("stroke",A[h].mode==="s"?"#000000":"#ffffff")):(R=null,V=null),this.storedData[h]={elem:g,x:V,expan:R,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},A[h].mode==="i"){G=w.length;var S=Tt("g");for(O=0;O<G;O+=1)S.appendChild(w[O]);var k=Tt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",x+"_"+b),k.appendChild(g),l.appendChild(k),S.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),w.length=0,w.push(S)}else w.push(g);A[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:g,lastPath:"",op:at.getProp(this.element,A[h].o,0,.01,this.element),prop:On.getShapeProp(this.element,A[h],3),invRect:M},this.viewData[h].prop.k||this.drawPath(A[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=Tt(N),c=w.length,h=0;h<c;h+=1)this.maskElement.appendChild(w[h]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(C,"url("+f()+"#"+x+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}uo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},uo.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,a,l=this.masksProperties.length;for(a=0;a<l;a+=1)if((this.viewData[a].prop._mdf||e)&&this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]),(this.viewData[a].op._mdf||e)&&this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v),this.masksProperties[a].mode!=="n"&&(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[a].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[a].x&&(this.storedData[a].x._mdf||e))){var h=this.storedData[a].expan;this.storedData[a].x.v<0?(this.storedData[a].lastOperator!=="erode"&&(this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+f()+"#"+this.storedData[a].filterId+")")),h.setAttribute("radius",-this.storedData[a].x.v)):(this.storedData[a].lastOperator!=="dilate"&&(this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null)),this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2))}},uo.prototype.getMaskelement=function(){return this.maskElement},uo.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},uo.prototype.drawPath=function(e,i,a){var l=" M"+i.v[0][0]+","+i.v[0][1],h,c;for(c=i._length,h=1;h<c;h+=1)l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[h][0]+","+i.i[h][1]+" "+i.v[h][0]+","+i.v[h][1];if(i.c&&c>1&&(l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),a.lastPath!==l){var g="";a.elem&&(i.c&&(g=e.inv?this.solidPath+l:l),a.elem.setAttribute("d",g)),a.lastPath=l}},uo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var pa=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=a;function i(l,h){var c=Tt("filter");return c.setAttribute("id",l),h!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function a(){var l=Tt("feColorMatrix");return l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),l}return e}(),hm=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),zn={},pm="filter_result_";function jd(e){var i,a="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=Fe(),c=pa.createFilter(h,!0),g=0;this.filters=[];var A;for(i=0;i<l;i+=1){A=null;var b=e.data.ef[i].ty;if(zn[b]){var w=zn[b].effect;A=new w(c,e.effectsManager.effectElements[i],e,pm+g,a),a=pm+g,zn[b].countsAsEffect&&(g+=1)}A&&this.filters.push(A)}g&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+f()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}jd.prototype.renderFrame=function(e){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(e)},jd.prototype.getEffects=function(e){var i,a=this.filters.length,l=[];for(i=0;i<a;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function w0(e,i,a){zn[e]={effect:i,countsAsEffect:a}}function ma(){}ma.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var a=Tt("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=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 l=Tt("clipPath"),h=Tt("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=Fe();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+f()+"#"+c+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+c+")")}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 uo(this.data,this,this.globalData),this.renderableEffectsManager=new jd(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var a=this.layerId+"_"+i,l,h,c,g;if(i===1||i===3){var A=Tt("mask");A.setAttribute("id",a),A.setAttribute("mask-type",i===3?"luminance":"alpha"),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(c),this.globalData.defs.appendChild(A),!hm.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=Fe(),h=pa.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(pa.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(c),A.appendChild(g),g.setAttribute("filter","url("+f()+"#"+l+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",a),b.setAttribute("mask-type","alpha");var w=Tt("g");b.appendChild(w),l=Fe(),h=pa.createFilter(l);var O=Tt("feComponentTransfer");O.setAttribute("in","SourceGraphic"),h.appendChild(O);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),O.appendChild(G),this.globalData.defs.appendChild(h);var x=Tt("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()+"#"+l+")"),w.appendChild(x),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(c),hm.maskType||(b.setAttribute("mask-type","luminance"),h.appendChild(pa.createAlphaToLuminanceFilter()),g=Tt("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=a}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+i+")")}};function cs(){}cs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function ua(){}(function(){var e={initElement:function(a,l,h){this.initFrame(),this.initBaseData(a,l,h),this.initTransform(a,l,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.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(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};L([$n,q(e)],ua)})();function fa(e,i,a){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}L([Ci,ds,ma,cs,wi,ua],fa),fa.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("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",e),this.layerElement.appendChild(this.innerElem)},fa.prototype.sourceRectAtTime=function(){return this.sourceRect};function Cy(e,i){this.elem=e,this.pos=i}function mm(){}mm.prototype={addShapeToModifiers:function(i){var a,l=this.shapeModifiers.length;for(a=0;a<l;a+=1)this.shapeModifiers[a].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var a=0,l=this.shapeModifiers.length;a<l;)if(this.shapeModifiers[a].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,a=this.shapes.length;for(i=0;i<a;i+=1)this.shapes[i].sh.reset();a=this.shapeModifiers.length;var l;for(i=a-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var a=this.processedElements,l=0,h=a.length;l<h;){if(a[l].elem===i)return a[l].pos;l+=1}return 0},addProcessedElement:function(i,a){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===i){l[h].pos=a;return}l.push(new Cy(i,a))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var um={1:"butt",2:"round",3:"square"},fm={1:"miter",2:"round",3:"bevel"};function vm(e,i,a){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=a,this.lvl=i,this._isAnimated=!!a.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}vm.prototype.setAsAnimated=function(){this._isAnimated=!0};function gm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}gm.prototype.reset=function(){this.d="",this._mdf=!1};function Vn(e,i,a,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=X("float32",i.length?i.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(l);var h,c=i.length||0,g;for(h=0;h<c;h+=1)g=at.getProp(e,i[h].v,0,0,this),this.k=g.k||this.k,this.dataProps[h]={n:i[h].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}Vn.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,a=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<a;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},L([me],Vn);function bm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.w=at.getProp(e,i.w,0,null,this),this.d=new Vn(e,i.d||{},"svg",this),this.c=at.getProp(e,i.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}L([me],bm);function ym(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.c=at.getProp(e,i.c,1,255,this),this.style=a}L([me],ym);function Em(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=a}L([me],Em);function va(e,i,a){this.data=i,this.c=X("uint8c",i.p*4);var l=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=X("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(a),this.prop=at.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}va.prototype.comparePoints=function(e,i){for(var a=0,l=this.o.length/2,h;a<l;){if(h=Math.abs(e[a*4]-e[i*4+a*2]),h>.01)return!1;a+=1}return!0},va.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},va.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,a=this.data.p*4,l,h;for(i=0;i<a;i+=1)l=i%4===0?100:255,h=Math.round(this.prop.v[i]*l),this.c[i]!==h&&(this.c[i]=h,this._cmdf=!e);if(this.o.length)for(a=this.prop.v.length,i=this.data.p*4;i<a;i+=1)l=i%2===0?100:1,h=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==h&&(this.o[i-this.data.p*4]=h,this._omdf=!e);this._mdf=!e}},L([me],va);function hs(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,a)}hs.prototype.initGradientData=function(e,i,a){this.o=at.getProp(e,i.o,0,.01,this),this.s=at.getProp(e,i.s,1,null,this),this.e=at.getProp(e,i.e,1,null,this),this.h=at.getProp(e,i.h||{k:0},0,.01,this),this.a=at.getProp(e,i.a||{k:0},0,wt,this),this.g=new va(e,i.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,i),this.setGradientOpacity(i,a),this._isAnimated=!!this._isAnimated},hs.prototype.setGradientData=function(e,i){var a=Fe(),l=Tt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",a),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var h=[],c,g,A;for(A=i.g.p*4,g=0;g<A;g+=4)c=Tt("stop"),l.appendChild(c),h.push(c);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+f()+"#"+a+")"),this.gf=l,this.cst=h},hs.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var a,l,h,c=Tt("mask"),g=Tt("path");c.appendChild(g);var A=Fe(),b=Fe();c.setAttribute("id",b);var w=Tt(e.t===1?"linearGradient":"radialGradient");w.setAttribute("id",A),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),h=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var O=this.stops;for(l=e.g.p*4;l<h;l+=2)a=Tt("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(a),O.push(a);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+f()+"#"+A+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",um[e.lc||2]),g.setAttribute("stroke-linejoin",fm[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=w,this.ms=c,this.ost=O,this.maskId=b,i.msElem=g}},L([me],hs);function Tm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(e,i.w,0,null,this),this.d=new Vn(e,i.d||{},"svg",this),this.initGradientData(e,i,a),this._isAnimated=!!this._isAnimated}L([hs,me],Tm);function wy(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function ky(e,i,a){this.transform={mProps:e,op:i,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var xm=function(i,a,l,h){if(a===0)return"";var c=i.o,g=i.i,A=i.v,b,w=" M"+h.applyToPointStringified(A[0][0],A[0][1]);for(b=1;b<a;b+=1)w+=" C"+h.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+h.applyToPointStringified(g[b][0],g[b][1])+" "+h.applyToPointStringified(A[b][0],A[b][1]);return l&&a&&(w+=" C"+h.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+h.applyToPointStringified(g[0][0],g[0][1])+" "+h.applyToPointStringified(A[0][0],A[0][1]),w+="z"),w},Ny=function(){var e=new ye,i=new ye,a={createRenderFunction:l};function l(G){switch(G.ty){case"fl":return A;case"gf":return w;case"gs":return b;case"st":return O;case"sh":case"el":case"rc":case"sr":return g;case"tr":return h;case"no":return c;default:return null}}function h(G,x,M){(M||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(M||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function c(){}function g(G,x,M){var D,R,V,N,C,E,S=x.styles.length,k=x.lvl,F,H,K,rt;for(E=0;E<S;E+=1){if(N=x.sh._mdf||M,x.styles[E].lvl<k){for(H=i.reset(),K=k-x.styles[E].lvl,rt=x.transformers.length-1;!N&&K>0;)N=x.transformers[rt].mProps._mdf||N,K-=1,rt-=1;if(N)for(K=k-x.styles[E].lvl,rt=x.transformers.length-1;K>0;)H.multiply(x.transformers[rt].mProps.v),K-=1,rt-=1}else H=e;if(F=x.sh.paths,R=F._length,N){for(V="",D=0;D<R;D+=1)C=F.shapes[D],C&&C._length&&(V+=xm(C,C._length,C.c,H));x.caches[E]=V}else V=x.caches[E];x.styles[E].d+=G.hd===!0?"":V,x.styles[E]._mdf=N||x.styles[E]._mdf}}function A(G,x,M){var D=x.style;(x.c._mdf||M)&&D.pElem.setAttribute("fill","rgb("+pe(x.c.v[0])+","+pe(x.c.v[1])+","+pe(x.c.v[2])+")"),(x.o._mdf||M)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,M){w(G,x,M),O(G,x,M)}function w(G,x,M){var D=x.gf,R=x.g._hasOpacity,V=x.s.v,N=x.e.v;if(x.o._mdf||M){var C=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(C,x.o.v)}if(x.s._mdf||M){var E=G.t===1?"x1":"cx",S=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(S,V[1]),R&&!x.g._collapsable&&(x.of.setAttribute(E,V[0]),x.of.setAttribute(S,V[1]))}var k,F,H,K;if(x.g._cmdf||M){k=x.cst;var rt=x.g.c;for(H=k.length,F=0;F<H;F+=1)K=k[F],K.setAttribute("offset",rt[F*4]+"%"),K.setAttribute("stop-color","rgb("+rt[F*4+1]+","+rt[F*4+2]+","+rt[F*4+3]+")")}if(R&&(x.g._omdf||M)){var yt=x.g.o;for(x.g._collapsable?k=x.cst:k=x.ost,H=k.length,F=0;F<H;F+=1)K=k[F],x.g._collapsable||K.setAttribute("offset",yt[F*2]+"%"),K.setAttribute("stop-opacity",yt[F*2+1])}if(G.t===1)(x.e._mdf||M)&&(D.setAttribute("x2",N[0]),D.setAttribute("y2",N[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",N[0]),x.of.setAttribute("y2",N[1])));else{var mt;if((x.s._mdf||x.e._mdf||M)&&(mt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)),D.setAttribute("r",mt),R&&!x.g._collapsable&&x.of.setAttribute("r",mt)),x.e._mdf||x.h._mdf||x.a._mdf||M){mt||(mt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)));var st=Math.atan2(N[1]-V[1],N[0]-V[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=mt*xt,et=Math.cos(st+x.a.v)*ct+V[0],I=Math.sin(st+x.a.v)*ct+V[1];D.setAttribute("fx",et),D.setAttribute("fy",I),R&&!x.g._collapsable&&(x.of.setAttribute("fx",et),x.of.setAttribute("fy",I))}}}function O(G,x,M){var D=x.style,R=x.d;R&&(R._mdf||M)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||M)&&D.pElem.setAttribute("stroke","rgb("+pe(x.c.v[0])+","+pe(x.c.v[1])+","+pe(x.c.v[2])+")"),(x.o._mdf||M)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||M)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return a}();function Xt(e,i,a){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,a),this.prevViewData=[]}L([Ci,ds,ma,mm,cs,wi,ua],Xt),Xt.prototype.initSecondaryElement=function(){},Xt.prototype.identityMatrix=new ye,Xt.prototype.buildExpressionInterface=function(){},Xt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Xt.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,a,l,h=this.stylesList.length,c,g=[],A=!1;for(l=0;l<h;l+=1){for(c=this.stylesList[l],A=!1,g.length=0,e=0;e<i;e+=1)a=this.shapes[e],a.styles.indexOf(c)!==-1&&(g.push(a),A=a._isAnimated||A);g.length>1&&A&&this.setShapesAsAnimated(g)}},Xt.prototype.setShapesAsAnimated=function(e){var i,a=e.length;for(i=0;i<a;i+=1)e[i].setAsAnimated()},Xt.prototype.createStyleElement=function(e,i){var a,l=new gm(e,i),h=l.pElem;if(e.ty==="st")a=new bm(this,e,l);else if(e.ty==="fl")a=new ym(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?hs:Tm;a=new c(this,e,l),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),h.setAttribute("mask","url("+f()+"#"+a.maskId+")"))}else e.ty==="no"&&(a=new Em(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",um[e.lc||2]),h.setAttribute("stroke-linejoin",fm[e.lj||2]),h.setAttribute("fill-opacity","0"),e.lj===1&&h.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&h.setAttribute("fill-rule","evenodd"),e.ln&&h.setAttribute("id",e.ln),e.cl&&h.setAttribute("class",e.cl),e.bm&&(h.style["mix-blend-mode"]=Wd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,a),a},Xt.prototype.createGroupElement=function(e){var i=new wy;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=Wd(e.bm)),i},Xt.prototype.createTransformElement=function(e,i){var a=Ud.getTransformProperty(this,e,this),l=new ky(a,a.o,i);return this.addToAnimatedContents(e,l),l},Xt.prototype.createShapeElement=function(e,i,a){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=On.getShapeProp(this,e,l,this),c=new vm(i,a,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Xt.prototype.addToAnimatedContents=function(e,i){for(var a=0,l=this.animatedContents.length;a<l;){if(this.animatedContents[a].element===i)return;a+=1}this.animatedContents.push({fn:Ny.createRenderFunction(e),element:i,data:e})},Xt.prototype.setElementStyles=function(e){var i=e.styles,a,l=this.stylesList.length;for(a=0;a<l;a+=1)this.stylesList[a].closed||i.push(this.stylesList[a])},Xt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Xt.prototype.searchShapes=function(e,i,a,l,h,c,g){var A=[].concat(c),b,w=e.length-1,O,G,x=[],M=[],D,R,V;for(b=w;b>=0;b-=1){if(V=this.searchProcessedElement(e[b]),V?i[b]=a[V-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")V?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],h),e[b]._render&&i[b].style.pElem.parentNode!==l&&l.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!V)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,O=0;O<G;O+=1)i[b].prevViewData[O]=i[b].it[O];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,h+1,A,g),e[b]._render&&i[b].gr.parentNode!==l&&l.appendChild(i[b].gr)}else e[b].ty==="tr"?(V||(i[b]=this.createTransformElement(e[b],l)),D=i[b].transform,A.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(V||(i[b]=this.createShapeElement(e[b],A,h)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(V?(R=i[b],R.closed=!1):(R=Ii.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),M.push(R)):e[b].ty==="rp"&&(V?(R=i[b],R.closed=!0):(R=Ii.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),M.push(R));this.addProcessedElement(e[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=M.length,b=0;b<w;b+=1)M[b].closed=!0},Xt.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Xt.prototype.renderShape=function(){var e,i=this.animatedContents.length,a;for(e=0;e<i;e+=1)a=this.animatedContents[e],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0&&a.fn(a.data,a.element,this._isFirstFrame)},Xt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function qd(e,i,a,l,h,c){this.o=e,this.sw=i,this.sc=a,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!i,sc:!!a,fc:!!l,m:!0,p:!0}}qd.prototype.update=function(e,i,a,l,h,c){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!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==a&&(this.sc=a,this._mdf.sc=!0,g=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,g=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,g=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,g=!0),g};function we(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}we.prototype.defaultBoxWidth=[0,0],we.prototype.copyData=function(e,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);return e},we.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},we.prototype.searchProperty=function(){return this.searchKeyframes()},we.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},we.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},we.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,h=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(l=0;l<h;l+=1)a!==this.keysIndex?c=this.effectsSequence[l](c,c.t):c=this.effectsSequence[l](this.currentData,c.t);i!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},we.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,a=0,l=e.length;a<=l-1&&!(a===l-1||e[a+1].t>i);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},we.prototype.buildFinalText=function(e){for(var i=[],a=0,l=e.length,h,c,g=!1,A=!1,b="";a<l;)g=A,A=!1,h=e.charCodeAt(a),b=e.charAt(a),mo.isCombinedCharacter(h)?g=!0:h>=55296&&h<=56319?mo.isRegionalFlag(e,a)?b=e.substr(a,14):(c=e.charCodeAt(a+1),c>=56320&&c<=57343&&(mo.isModifier(h,c)?(b=e.substr(a,2),g=!0):mo.isFlagEmoji(e.substr(a,4))?b=e.substr(a,4):b=e.substr(a,2))):h>56319?(c=e.charCodeAt(a+1),mo.isVariationSelector(h)&&(g=!0)):mo.isZeroWidthJoiner(h)&&(g=!0,A=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),a+=b.length;return i},we.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,a=this.data,l=[],h,c,g,A=0,b,w=a.m.g,O=0,G=0,x=0,M=[],D=0,R=0,V,N,C=i.getFontByName(e.f),E,S=0,k=lm(C);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var F=e.tr/1e3*e.finalSize,H;if(e.sz)for(var K=!0,rt=e.sz[0],yt=e.sz[1],mt,st;K;){st=this.buildFinalText(e.t),mt=0,D=0,c=st.length,F=e.tr/1e3*e.finalSize;var xt=-1;for(h=0;h<c;h+=1)H=st[h].charCodeAt(0),g=!1,st[h]===" "?xt=h:(H===13||H===3)&&(D=0,g=!0,mt+=e.finalLineHeight||e.finalSize*1.2),i.chars?(E=i.getCharData(st[h],C.fStyle,C.fFamily),S=g?0:E.w*e.finalSize/100):S=i.measureText(st[h],e.f,e.finalSize),D+S>rt&&st[h]!==" "?(xt===-1?c+=1:h=xt,mt+=e.finalLineHeight||e.finalSize*1.2,st.splice(h,xt===h?1:0,"\r"),xt=-1,D=0):(D+=S,D+=F);mt+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<mt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,c=e.finalText.length,K=!1)}D=-F,S=0;var ct=0,et;for(h=0;h<c;h+=1)if(g=!1,et=e.finalText[h],H=et.charCodeAt(0),H===13||H===3?(ct=0,M.push(D),R=D>R?D:R,D=-2*F,b="",g=!0,x+=1):b=et,i.chars?(E=i.getCharData(et,C.fStyle,i.getFontByName(e.f).fFamily),S=g?0:E.w*e.finalSize/100):S=i.measureText(b,e.f,e.finalSize),et===" "?ct+=S+F:(D+=S+F+ct,ct=0),l.push({l:S,an:S,add:O,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(O+=S,b===""||b===" "||h===c-1){for((b===""||b===" ")&&(O-=S);G<=h;)l[G].an=O,l[G].ind=A,l[G].extra=S,G+=1;A+=1,O=0}}else if(w==3){if(O+=S,b===""||h===c-1){for(b===""&&(O-=S);G<=h;)l[G].an=O,l[G].ind=A,l[G].extra=S,G+=1;O=0,A+=1}}else l[A].ind=A,l[A].extra=0,A+=1;if(e.l=l,R=D>R?D:R,M.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=M;var I=a.a,P,v;N=I.length;var y,Y,$=[];for(V=0;V<N;V+=1){for(P=I[V],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),Y=0,y=P.s.b,h=0;h<c;h+=1)v=l[h],v.anIndexes[V]=Y,(y==1&&v.val!==""||y==2&&v.val!==""&&v.val!==" "||y==3&&(v.n||v.val==" "||h==c-1)||y==4&&(v.n||h==c-1))&&(P.s.rn===1&&$.push(Y),Y+=1);a.a[V].s.totalChars=Y;var nt=-1,vt;if(P.s.rn===1)for(h=0;h<c;h+=1)v=l[h],nt!=v.anIndexes[V]&&(nt=v.anIndexes[V],vt=$.splice(Math.floor(Math.random()*$.length),1)[0]),v.anIndexes[V]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=C.ascent*e.finalSize/100},we.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var a=this.copyData({},this.data.d.k[i].s);a=this.copyData(a,e),this.data.d.k[i].s=a,this.recalculate(i),this.setCurrentData(a),this.elem.addDynamicProperty(this)},we.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},we.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},we.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Ly=function(){var e=Math.max,i=Math.min,a=Math.floor;function l(c,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=at.getProp(c,g.s||{k:0},0,0,this),"e"in g?this.e=at.getProp(c,g.e,0,0,this):this.e={v:100},this.o=at.getProp(c,g.o||{k:0},0,0,this),this.xe=at.getProp(c,g.xe||{k:0},0,0,this),this.ne=at.getProp(c,g.ne||{k:0},0,0,this),this.sm=at.getProp(c,g.sm||{k:100},0,0,this),this.a=at.getProp(c,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,b=0,w=1,O=1;this.ne.v>0?A=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:O=1+this.xe.v/100;var G=sa.getBezierEasing(A,b,w,O).get,x=0,M=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===M?x=g>=D?1:0:x=e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x=G(x);else if(R===3)D===M?x=g>=D?0:1:x=1-e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x=G(x);else if(R===4)D===M?x=0:(x=e(0,i(.5/(D-M)+(g-M)/(D-M),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===M)x=0;else{var V=D-M;g=i(e(0,g+.5-M),D-M);var N=-V/2+g,C=V/2;x=Math.sqrt(1-N*N/(C*C))}x=G(x)}else R===6?(D===M?x=0:(g=i(e(0,g+.5-M),D-M),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-M)))/2),x=G(x)):(g>=a(M)&&(g-M<0?x=e(0,i(i(D,1)-(M-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var S=.5-E*.5;x<S?x=0:(x=(x-S)/E,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 A=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/A,w=this.s.v/A+b,O=this.e.v/A+b;if(w>O){var G=w;w=O,O=G}this.finalS=w,this.finalE=O}},L([me],l);function h(c,g,A){return new l(c,g,A)}return{getTextSelectorProp:h}}();function Oy(e,i,a){var l={propType:!1},h=at.getProp,c=i.a;this.a={r:c.r?h(e,c.r,0,wt,a):l,rx:c.rx?h(e,c.rx,0,wt,a):l,ry:c.ry?h(e,c.ry,0,wt,a):l,sk:c.sk?h(e,c.sk,0,wt,a):l,sa:c.sa?h(e,c.sa,0,wt,a):l,s:c.s?h(e,c.s,1,.01,a):l,a:c.a?h(e,c.a,1,0,a):l,o:c.o?h(e,c.o,0,.01,a):l,p:c.p?h(e,c.p,1,0,a):l,sw:c.sw?h(e,c.sw,0,0,a):l,sc:c.sc?h(e,c.sc,1,0,a):l,fc:c.fc?h(e,c.fc,1,0,a):l,fh:c.fh?h(e,c.fh,0,0,a):l,fs:c.fs?h(e,c.fs,0,.01,a):l,fb:c.fb?h(e,c.fb,0,.01,a):l,t:c.t?h(e,c.t,0,0,a):l},this.s=Ly.getTextSelectorProp(e,i.s,a),this.s.t=i.s.t}function fo(e,i,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=a,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}fo.prototype.searchProperties=function(){var e,i=this._textData.a.length,a,l=at.getProp;for(e=0;e<i;e+=1)a=this._textData.a[e],this._animatorsData[e]=new Oy(this._elem,a,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(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=l(this._elem,this._textData.m.a,1,0,this)},fo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,g=this._renderType,A=this.renderedLetters.length,b,w,O,G,x=e.l,M,D,R,V,N,C,E,S,k,F,H,K,rt,yt,mt;if(this._hasMaskedPath){if(mt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=mt.v;this._pathData.r.v&&(st=st.reverse()),M={tLength:0,segments:[]},G=st._length-1;var xt;for(K=0,O=0;O<G;O+=1)xt=Rr.buildBezierData(st.v[O],st.v[O+1],[st.o[O][0]-st.v[O][0],st.o[O][1]-st.v[O][1]],[st.i[O+1][0]-st.v[O+1][0],st.i[O+1][1]-st.v[O+1][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),K+=xt.segmentLength;O=G,mt.v.c&&(xt=Rr.buildBezierData(st.v[O],st.v[0],[st.o[O][0]-st.v[O][0],st.o[O][1]-st.v[O][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),K+=xt.segmentLength),this._pathData.pi=M}if(M=this._pathData.pi,D=this._pathData.f.v,E=0,C=1,V=0,N=!0,F=M.segments,D<0&&mt.v.c)for(M.tLength<Math.abs(D)&&(D=-Math.abs(D)%M.tLength),E=F.length-1,k=F[E].points,C=k.length-1;D<0;)D+=k[C].partialLength,C-=1,C<0&&(E-=1,k=F[E].points,C=k.length-1);k=F[E].points,S=k[C-1],R=k[C],H=R.partialLength}G=x.length,b=0,w=0;var ct=e.finalSize*1.2*.714,et=!0,I,P,v,y,Y;y=l.length;var $,nt=-1,vt,Et,Mt,Rt=D,re=E,ze=C,Dr=-1,Ve,ue,Ze,Ft,ht,ri,Li,ii,Fr="",oi=this.defaultPropsArray,si;if(e.j===2||e.j===1){var Be=0,Oi=0,Mi=e.j===2?-.5:-1,Sr=0,Ri=!0;for(O=0;O<G;O+=1)if(x[O].n){for(Be&&(Be+=Oi);Sr<O;)x[Sr].animatorJustifyOffset=Be,Sr+=1;Be=0,Ri=!0}else{for(v=0;v<y;v+=1)I=l[v].a,I.t.propType&&(Ri&&e.j===2&&(Oi+=I.t.v*Mi),P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?Be+=I.t.v*$[0]*Mi:Be+=I.t.v*$*Mi);Ri=!1}for(Be&&(Be+=Oi);Sr<O;)x[Sr].animatorJustifyOffset=Be,Sr+=1}for(O=0;O<G;O+=1){if(c.reset(),Ve=1,x[O].n)b=0,w+=e.yOffset,w+=et?1:0,D=Rt,et=!1,this._hasMaskedPath&&(E=re,C=ze,k=F[E].points,S=k[C-1],R=k[C],H=R.partialLength,V=0),Fr="",ii="",ri="",si="",oi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Dr!==x[O].line){switch(e.j){case 1:D+=K-e.lineWidths[x[O].line];break;case 2:D+=(K-e.lineWidths[x[O].line])/2;break;default:break}Dr=x[O].line}nt!==x[O].ind&&(x[nt]&&(D+=x[nt].extra),D+=x[O].an/2,nt=x[O].ind),D+=a[0]*x[O].an*.005;var Ir=0;for(v=0;v<y;v+=1)I=l[v].a,I.p.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?Ir+=I.p.v[0]*$[0]:Ir+=I.p.v[0]*$),I.a.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?Ir+=I.a.v[0]*$[0]:Ir+=I.a.v[0]*$);for(N=!0,this._pathData.a.v&&(D=x[0].an*.5+(K-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*nt/(G-1),D+=this._pathData.f.v);N;)V+H>=D+Ir||!k?(rt=(D+Ir-V)/R.partialLength,Et=S.point[0]+(R.point[0]-S.point[0])*rt,Mt=S.point[1]+(R.point[1]-S.point[1])*rt,c.translate(-a[0]*x[O].an*.005,-(a[1]*ct)*.01),N=!1):k&&(V+=R.partialLength,C+=1,C>=k.length&&(C=0,E+=1,F[E]?k=F[E].points:mt.v.c?(C=0,E=0,k=F[E].points):(V-=R.partialLength,k=null)),k&&(S=R,R=k[C],H=R.partialLength));vt=x[O].an/2-x[O].add,c.translate(-vt,0,0)}else vt=x[O].an/2-x[O].add,c.translate(-vt,0,0),c.translate(-a[0]*x[O].an*.005,-a[1]*ct*.01,0);for(v=0;v<y;v+=1)I=l[v].a,I.t.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?$.length?D+=I.t.v*$[0]:D+=I.t.v*$:$.length?b+=I.t.v*$[0]:b+=I.t.v*$));for(e.strokeWidthAnim&&(Ze=e.sw||0),e.strokeColorAnim&&(e.sc?ue=[e.sc[0],e.sc[1],e.sc[2]]:ue=[0,0,0]),e.fillColorAnim&&e.fc&&(Ft=[e.fc[0],e.fc[1],e.fc[2]]),v=0;v<y;v+=1)I=l[v].a,I.a.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?c.translate(-I.a.v[0]*$[0],-I.a.v[1]*$[1],I.a.v[2]*$[2]):c.translate(-I.a.v[0]*$,-I.a.v[1]*$,I.a.v[2]*$));for(v=0;v<y;v+=1)I=l[v].a,I.s.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),$.length?c.scale(1+(I.s.v[0]-1)*$[0],1+(I.s.v[1]-1)*$[1],1):c.scale(1+(I.s.v[0]-1)*$,1+(I.s.v[1]-1)*$,1));for(v=0;v<y;v+=1){if(I=l[v].a,P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),I.sk.propType&&($.length?c.skewFromAxis(-I.sk.v*$[0],I.sa.v*$[1]):c.skewFromAxis(-I.sk.v*$,I.sa.v*$)),I.r.propType&&($.length?c.rotateZ(-I.r.v*$[2]):c.rotateZ(-I.r.v*$)),I.ry.propType&&($.length?c.rotateY(I.ry.v*$[1]):c.rotateY(I.ry.v*$)),I.rx.propType&&($.length?c.rotateX(I.rx.v*$[0]):c.rotateX(I.rx.v*$)),I.o.propType&&($.length?Ve+=(I.o.v*$[0]-Ve)*$[0]:Ve+=(I.o.v*$-Ve)*$),e.strokeWidthAnim&&I.sw.propType&&($.length?Ze+=I.sw.v*$[0]:Ze+=I.sw.v*$),e.strokeColorAnim&&I.sc.propType)for(ht=0;ht<3;ht+=1)$.length?ue[ht]+=(I.sc.v[ht]-ue[ht])*$[0]:ue[ht]+=(I.sc.v[ht]-ue[ht])*$;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(ht=0;ht<3;ht+=1)$.length?Ft[ht]+=(I.fc.v[ht]-Ft[ht])*$[0]:Ft[ht]+=(I.fc.v[ht]-Ft[ht])*$;I.fh.propType&&($.length?Ft=Pp(Ft,I.fh.v*$[0]):Ft=Pp(Ft,I.fh.v*$)),I.fs.propType&&($.length?Ft=Mp(Ft,I.fs.v*$[0]):Ft=Mp(Ft,I.fs.v*$)),I.fb.propType&&($.length?Ft=Rp(Ft,I.fb.v*$[0]):Ft=Rp(Ft,I.fb.v*$))}}for(v=0;v<y;v+=1)I=l[v].a,I.p.propType&&(P=l[v].s,$=P.getMult(x[O].anIndexes[v],h.a[v].s.totalChars),this._hasMaskedPath?$.length?c.translate(0,I.p.v[1]*$[0],-I.p.v[2]*$[1]):c.translate(0,I.p.v[1]*$,-I.p.v[2]*$):$.length?c.translate(I.p.v[0]*$[0],I.p.v[1]*$[1],-I.p.v[2]*$[2]):c.translate(I.p.v[0]*$,I.p.v[1]*$,-I.p.v[2]*$));if(e.strokeWidthAnim&&(ri=Ze<0?0:Ze),e.strokeColorAnim&&(Li="rgb("+Math.round(ue[0]*255)+","+Math.round(ue[1]*255)+","+Math.round(ue[2]*255)+")"),e.fillColorAnim&&e.fc&&(ii="rgb("+Math.round(Ft[0]*255)+","+Math.round(Ft[1]*255)+","+Math.round(Ft[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,a[1]*ct*.01+w,0),this._pathData.p.v){yt=(R.point[1]-S.point[1])/(R.point[0]-S.point[0]);var vo=Math.atan(yt)*180/Math.PI;R.point[0]<S.point[0]&&(vo+=180),c.rotate(-vo*Math.PI/180)}c.translate(Et,Mt,0),D-=a[0]*x[O].an*.005,x[O+1]&&nt!==x[O+1].ind&&(D+=x[O].an/2,D+=e.tr*.001*e.finalSize)}else{switch(c.translate(b,w,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(x[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[O].line]),0,0);break;case 2:c.translate(x[O].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[O].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(vt,0,0),c.translate(a[0]*x[O].an*.005,a[1]*ct*.01,0),b+=x[O].l+e.tr*.001*e.finalSize}g==="html"?Fr=c.toCSS():g==="svg"?Fr=c.to2dCSS():oi=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],si=Ve}A<=O?(Y=new qd(si,ri,Li,ii,Fr,oi),this.renderedLetters.push(Y),A+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[O],this.lettersChangedFlag=Y.update(si,ri,Li,ii,Fr,oi)||this.lettersChangedFlag)}}},fo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},fo.prototype.mHelper=new ye,fo.prototype.defaultPropsArray=[],L([me],fo);function dr(){}dr.prototype.initElement=function(e,i,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,a),this.textProperty=new we(this,e.t,this.dynamicProperties),this.textAnimator=new fo(e.t,this.renderType,this),this.initTransform(e,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},dr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},dr.prototype.createPathShape=function(e,i){var a,l=i.length,h,c="";for(a=0;a<l;a+=1)i[a].ty==="sh"&&(h=i[a].ks.k,c+=xm(h,h.i.length,!0,e));return c},dr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},dr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},dr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},dr.prototype.applyTextPropertiesToMatrix=function(e,i,a,l,h){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a])/2,0,0);break;default:break}i.translate(l,h,0)},dr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},dr.prototype.emptyProp=new qd,dr.prototype.destroy=function(){},dr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var My={shapes:[]};function ti(e,i,a){this.textSpans=[],this.renderType="svg",this.initElement(e,i,a)}L([Ci,ds,ma,cs,wi,ua,dr],ti),ti.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ti.prototype.buildTextContents=function(e){for(var i=0,a=e.length,l=[],h="";i<a;)e[i]==="\r"||e[i]===""?(l.push(h),h=""):h+=e[i],i+=1;return l.push(h),l},ti.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var a=e.shapes[0];if(a.it){var l=a.it[a.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},ti.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,a=this.textProperty.currentData;this.renderedLetters=it(a?a.l.length:0),a.fc?this.layerElement.setAttribute("fill",this.buildColor(a.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var l=this.globalData.fontManager.getFontByName(a.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=a.fWeight,c=a.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",a.t);var g=a.l||[],A=!!this.globalData.fontManager.chars;i=g.length;var b,w=this.mHelper,O="",G=this.data.singleShape,x=0,M=0,D=!0,R=a.tr*.001*a.finalSize;if(G&&!A&&!a.sz){var V=this.textContainer,N="start";switch(a.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}V.setAttribute("text-anchor",N),V.setAttribute("letter-spacing",R);var C=this.buildTextContents(a.finalText);for(i=C.length,M=a.ps?a.ps[1]+a.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=C[e],b.setAttribute("x",0),b.setAttribute("y",M),b.style.display="inherit",V.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,M+=a.finalLineHeight;this.layerElement.appendChild(V)}else{var E=this.textSpans.length,S;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!A||!G||e===0){if(b=E>e?this.textSpans[e].span:Tt(A?"g":"text"),E<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,A){var k=Tt("g");b.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),G&&(g[e].n&&(x=-R,M+=a.yOffset,M+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(a,w,g[e].line,x,M),x+=g[e].l||0,x+=R),A){S=this.globalData.fontManager.getCharData(a.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var F;if(S.t===1)F=new ga(S.data,this.globalData,this);else{var H=My;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,a.finalSize)),F=new Xt(H,this.globalData,this)}if(this.textSpans[e].glyph){var K=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(K.layerElement),K.destroy()}this.textSpans[e].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[e].childSpan.appendChild(F.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",O)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ti.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},ti.prototype.getValue=function(){var e,i=this.textSpans.length,a;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)a=this.textSpans[e].glyph,a&&(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf&&(this._mdf=!0))},ti.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 e,i,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var h,c,g;for(e=0;e<i;e+=1)l[e].n||(h=a[e],c=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),h._mdf.m&&c.setAttribute("transform",h.m),h._mdf.o&&c.setAttribute("opacity",h.o),h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h._mdf.sc&&c.setAttribute("stroke",h.sc),h._mdf.fc&&c.setAttribute("fill",h.fc))}};function Xd(e,i,a){this.initElement(e,i,a)}L([fa],Xd),Xd.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Ni(e,i,a){this.initFrame(),this.initBaseData(e,i,a),this.initFrame(),this.initTransform(e,i,a),this.initHierarchy()}Ni.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Ni.prototype.renderFrame=function(){},Ni.prototype.getBaseElement=function(){return null},Ni.prototype.destroy=function(){},Ni.prototype.sourceRectAtTime=function(){},Ni.prototype.hide=function(){},L([Ci,ds,cs,wi],Ni);function ne(){}L([Ee],ne),ne.prototype.createNull=function(e){return new Ni(e,this.globalData,this)},ne.prototype.createShape=function(e){return new Xt(e,this.globalData,this)},ne.prototype.createText=function(e){return new ti(e,this.globalData,this)},ne.prototype.createImage=function(e){return new fa(e,this.globalData,this)},ne.prototype.createSolid=function(e){return new Xd(e,this.globalData,this)},ne.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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 i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var a=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=Fe();a.setAttribute("id",h),a.appendChild(l),this.layerElement.setAttribute("clip-path","url("+f()+"#"+h+")"),i.appendChild(a),this.layers=e.layers,this.elements=it(e.layers.length)},ne.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},ne.prototype.updateContainerSize=function(){},ne.prototype.findIndexByInd=function(e){var i=0,a=this.layers.length;for(i=0;i<a;i+=1)if(this.layers[i].ind===e)return i;return-1},ne.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var a=this.createItem(this.layers[e]);if(i[e]=a,In()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(a);else{var h=i[l],c=h.getMatte(this.layers[e].tt);a.setMatte(c)}}}},ne.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,a=this.elements.length;i<a;){if(this.elements[i]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,h=this.elements[l],c=h.getMatte(this.layers[i].tt);e.setMatte(c);break}i+=1}}},ne.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<a;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},ne.prototype.appendElementInPos=function(e,i){var a=e.getBaseElement();if(a){for(var l=0,h;l<i;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(h=this.elements[l].getBaseElement()),l+=1;h?this.layerElement.insertBefore(a,h):this.layerElement.appendChild(a)}},ne.prototype.hide=function(){this.layerElement.style.display="none"},ne.prototype.show=function(){this.layerElement.style.display="block"};function ei(){}L([Ci,ds,cs,wi,ua],ei),ei.prototype.initElement=function(e,i,a){this.initFrame(),this.initBaseData(e,i,a),this.initTransform(e,i,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},ei.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var a,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=l-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},ei.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ei.prototype.setElements=function(e){this.elements=e},ei.prototype.getElements=function(){return this.elements},ei.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},ei.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function ga(e,i,a){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,a),this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}L([ne,ei,ma],ga),ga.prototype.createComp=function(e){return new ga(e,this.globalData,this)};function Zd(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var a="";if(i&&i.title){var l=Tt("title"),h=Fe();l.setAttribute("id",h),l.textContent=i.title,this.svgElement.appendChild(l),a+=h}if(i&&i.description){var c=Tt("desc"),g=Fe();c.setAttribute("id",g),c.textContent=i.description,this.svgElement.appendChild(c),a+=" "+g}a&&this.svgElement.setAttribute("aria-labelledby",a);var A=Tt("defs");this.svgElement.appendChild(A);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:A,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return L([ne],Zd),Zd.prototype.createComp=function(e){return new ga(e,this.globalData,this)},Hb("svg",Zd),Ii.registerModifier("tm",Ar),Ii.registerModifier("pb",aa),Ii.registerModifier("rp",Pr),Ii.registerModifier("rd",na),Ii.registerModifier("zz",da),Ii.registerModifier("op",ca),Pt})});var Gn=globalThis,Yn=Gn.ShadowRoot&&(Gn.ShadyCSS===void 0||Gn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jd=Symbol(),Sm=new WeakMap,ba=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==Jd)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(Yn&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Sm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Sm.set(t,o))}return o}toString(){return this.cssText}},Im=n=>new ba(typeof n=="string"?n:n+"",void 0,Jd),B=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((r,s,d)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[d+1],n[0]);return new ba(t,n,Jd)},tc=(n,o)=>{if(Yn)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Gn.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,n.appendChild(r)}},Kn=Yn?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Im(t)})(n):n;var{is:By,defineProperty:Uy,getOwnPropertyDescriptor:Hy,getOwnPropertyNames:Gy,getOwnPropertySymbols:Yy,getPrototypeOf:Ky}=Object,Pi=globalThis,_m=Pi.trustedTypes,Wy=_m?_m.emptyScript:"",ec=Pi.reactiveElementPolyfillSupport,ya=(n,o)=>n,Ea={toAttribute(n,o){switch(o){case Boolean:n=n?Wy:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Wn=(n,o)=>!By(n,o),Cm={attribute:!0,type:String,converter:Ea,reflect:!1,hasChanged:Wn},wm,km;(wm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(km=Pi.litPropertyMetadata)!=null||(Pi.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=Cm){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&Uy(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var p;let{get:s,set:d}=(p=Hy(this.prototype,o))!=null?p:{get(){return this[t]},set(f){this[t]=f}};return{get(){return s==null?void 0:s.call(this)},set(f){let T=s==null?void 0:s.call(this);d.call(this,f),this.requestUpdate(o,T,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Cm}static _$Ei(){if(this.hasOwnProperty(ya("elementProperties")))return;let o=Ky(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(ya("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ya("properties"))){let t=this.properties,r=[...Gy(t),...Yy(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift(Kn(s))}else o!==void 0&&t.push(Kn(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r: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,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return tc(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(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var d;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let p=(((d=r.converter)==null?void 0:d.toAttribute)!==void 0?r.converter:Ea).toAttribute(t,r.type);this._$Em=o,p==null?this.removeAttribute(s):this.setAttribute(s,p),this._$Em=null}}_$AK(o,t){var d;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let p=r.getPropertyOptions(s),f=typeof p.converter=="function"?{fromAttribute:p.converter}:((d=p.converter)==null?void 0:d.fromAttribute)!==void 0?p.converter:Ea;this._$Em=s,this[s]=f.fromAttribute(t,p.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:Wn)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s: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 r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[p,f]of this._$Ep)this[p]=f;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[p,f]of d)f.wrapped!==!0||this._$AL.has(p)||this[p]===void 0||this.P(p,this[p],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(d=>{var p;return(p=d.hostUpdate)==null?void 0:p.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),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){}},Nm;ai.elementStyles=[],ai.shadowRootOptions={mode:"open"},ai[ya("elementProperties")]=new Map,ai[ya("finalized")]=new Map,ec==null||ec({ReactiveElement:ai}),((Nm=Pi.reactiveElementVersions)!=null?Nm:Pi.reactiveElementVersions=[]).push("2.0.4");var xa=globalThis,jn=xa.trustedTypes,Lm=jn?jn.createPolicy("lit-html",{createHTML:n=>n}):void 0,oc="$lit$",ni=`lit$${Math.random().toFixed(9).slice(2)}$`,sc="?"+ni,jy=`<${sc}>`,yo=document,Aa=()=>yo.createComment(""),Sa=n=>n===null||typeof n!="object"&&typeof n!="function",ac=Array.isArray,$m=n=>ac(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",rc=`[
3
+ \f\r]`,Ta=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Om=/-->/g,Mm=/>/g,go=RegExp(`>|${rc}(?:([^\\s"'>=/]+)(${rc}*=${rc}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Rm=/'/g,Pm=/"/g,zm=/^(?:script|style|textarea|title)$/i,nc=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),_=nc(1),R0=nc(2),P0=nc(3),Te=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Dm=new WeakMap,bo=yo.createTreeWalker(yo,129);function Vm(n,o){if(!ac(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lm!==void 0?Lm.createHTML(o):o}var Bm=(n,o)=>{let t=n.length-1,r=[],s,d=o===2?"<svg>":o===3?"<math>":"",p=Ta;for(let f=0;f<t;f++){let T=n[f],L,U,q=-1,Q=0;for(;Q<T.length&&(p.lastIndex=Q,U=p.exec(T),U!==null);)Q=p.lastIndex,p===Ta?U[1]==="!--"?p=Om:U[1]!==void 0?p=Mm:U[2]!==void 0?(zm.test(U[2])&&(s=RegExp("</"+U[2],"g")),p=go):U[3]!==void 0&&(p=go):p===go?U[0]===">"?(p=s!=null?s:Ta,q=-1):U[1]===void 0?q=-2:(q=p.lastIndex-U[2].length,L=U[1],p=U[3]===void 0?go:U[3]==='"'?Pm:Rm):p===Pm||p===Rm?p=go:p===Om||p===Mm?p=Ta:(p=go,s=void 0);let X=p===go&&n[f+1].startsWith("/>")?" ":"";d+=p===Ta?T+jy:q>=0?(r.push(L),T.slice(0,q)+oc+T.slice(q)+ni+X):T+ni+(q===-2?f:X)}return[Vm(n,d+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},Ia=class n{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let d=0,p=0,f=o.length-1,T=this.parts,[L,U]=Bm(o,t);if(this.el=n.createElement(L,r),bo.currentNode=this.el.content,t===2||t===3){let q=this.el.content.firstChild;q.replaceWith(...q.childNodes)}for(;(s=bo.nextNode())!==null&&T.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let q of s.getAttributeNames())if(q.endsWith(oc)){let Q=U[p++],X=s.getAttribute(q).split(ni),it=/([.?@])?(.*)/.exec(Q);T.push({type:1,index:d,name:it[2],strings:X,ctor:it[1]==="."?Xn:it[1]==="?"?Zn:it[1]==="@"?Qn:To}),s.removeAttribute(q)}else q.startsWith(ni)&&(T.push({type:6,index:d}),s.removeAttribute(q));if(zm.test(s.tagName)){let q=s.textContent.split(ni),Q=q.length-1;if(Q>0){s.textContent=jn?jn.emptyScript:"";for(let X=0;X<Q;X++)s.append(q[X],Aa()),bo.nextNode(),T.push({type:2,index:++d});s.append(q[Q],Aa())}}}else if(s.nodeType===8)if(s.data===sc)T.push({type:2,index:d});else{let q=-1;for(;(q=s.data.indexOf(ni,q+1))!==-1;)T.push({type:7,index:d}),q+=ni.length-1}d++}}static createElement(o,t){let r=yo.createElement("template");return r.innerHTML=o,r}};function Eo(n,o,t=n,r){var p,f,T;if(o===Te)return o;let s=r!==void 0?(p=t.o)==null?void 0:p[r]:t.l,d=Sa(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((f=s==null?void 0:s._$AO)==null||f.call(s,!1),d===void 0?s=void 0:(s=new d(n),s._$AT(n,t,r)),r!==void 0?((T=t.o)!=null?T:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=Eo(n,s._$AS(n,o.values),s,r)),o}var qn=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 L;let{el:{content:t},parts:r}=this._$AD,s=((L=o==null?void 0:o.creationScope)!=null?L:yo).importNode(t,!0);bo.currentNode=s;let d=bo.nextNode(),p=0,f=0,T=r[0];for(;T!==void 0;){if(p===T.index){let U;T.type===2?U=new ps(d,d.nextSibling,this,o):T.type===1?U=new T.ctor(d,T.name,T.strings,this,o):T.type===6&&(U=new Jn(d,this,o)),this._$AV.push(U),T=r[++f]}p!==(T==null?void 0:T.index)&&(d=bo.nextNode(),p++)}return bo.currentNode=yo,s}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},ps=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var d;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(d=s==null?void 0:s.isConnected)!=null?d:!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=Eo(this,o,t),Sa(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==Te&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):$m(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&&Sa(this._$AH)?this._$AA.nextSibling.data=o:this.T(yo.createTextNode(o)),this._$AH=o}$(o){var d;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=Ia.createElement(Vm(r.h,r.h[0]),this.options)),r);if(((d=this._$AH)==null?void 0:d._$AD)===s)this._$AH.p(t);else{let p=new qn(s,this),f=p.u(this.options);p.p(t),this.T(f),this._$AH=p}}_$AC(o){let t=Dm.get(o.strings);return t===void 0&&Dm.set(o.strings,t=new Ia(o)),t}k(o){ac(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let d of o)s===t.length?t.push(r=new n(this.O(Aa()),this.O(Aa()),this,this.options)):r=t[s],r._$AI(d),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},To=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,d){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=W}_$AI(o,t=this,r,s){let d=this.strings,p=!1;if(d===void 0)o=Eo(this,o,t,0),p=!Sa(o)||o!==this._$AH&&o!==Te,p&&(this._$AH=o);else{let f=o,T,L;for(o=d[0],T=0;T<d.length-1;T++)L=Eo(this,f[r+T],t,T),L===Te&&(L=this._$AH[T]),p||(p=!Sa(L)||L!==this._$AH[T]),L===W?o=W:o!==W&&(o+=(L!=null?L:"")+d[T+1]),this._$AH[T]=L}p&&!s&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Xn=class extends To{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Zn=class extends To{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Qn=class extends To{constructor(o,t,r,s,d){super(o,t,r,s,d),this.type=5}_$AI(o,t=this){var p;if((o=(p=Eo(this,o,t,0))!=null?p:W)===Te)return;let r=this._$AH,s=o===W&&r!==W||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,d=o!==W&&(r===W||s);s&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},Jn=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){Eo(this,o)}},Um={M:oc,P:ni,A:sc,C:1,L:Bm,R:qn,D:$m,V:Eo,I:ps,H:To,N:Zn,U:Qn,B:Xn,F:Jn},ic=xa.litHtmlPolyfillSupport,Fm;ic==null||ic(Ia,ps),((Fm=xa.litHtmlVersions)!=null?Fm:xa.litHtmlVersions=[]).push("3.2.0");var Hm=(n,o,t)=>{var d,p;let r=(d=t==null?void 0:t.renderBefore)!=null?d:o,s=r._$litPart$;if(s===void 0){let f=(p=t==null?void 0:t.renderBefore)!=null?p:null;r._$litPart$=s=new ps(o.insertBefore(Aa(),f),f,void 0,t!=null?t:{})}return s._$AI(n),s};var Di=class extends ai{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(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=Hm(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 Te}},Gm;Di._$litElement$=!0,Di.finalized=!0,(Gm=globalThis.litElementHydrateSupport)==null||Gm.call(globalThis,{LitElement:Di});var lc=globalThis.litElementPolyfillSupport;lc==null||lc({LitElement:Di});var Ym;((Ym=globalThis.litElementVersions)!=null?Ym:globalThis.litElementVersions=[]).push("4.1.0");var qy={attribute:!0,type:String,converter:Ea,reflect:!1,hasChanged:Wn},Xy=(n=qy,o,t)=>{let{kind:r,metadata:s}=t,d=globalThis.litPropertyMetadata.get(s);if(d===void 0&&globalThis.litPropertyMetadata.set(s,d=new Map),d.set(t.name,n),r==="accessor"){let{name:p}=t;return{set(f){let T=o.get.call(this);o.set.call(this,f),this.requestUpdate(p,T,n)},init(f){return f!==void 0&&this.P(p,void 0,n),f}}}if(r==="setter"){let{name:p}=t;return function(f){let T=this[p];o.call(this,f),this.requestUpdate(p,T,n)}}throw Error("Unsupported decorator location: "+r)};function u(n){return(o,t)=>typeof t=="object"?Xy(n,o,t):((r,s,d)=>{let p=s.hasOwnProperty(d);return s.constructor.createProperty(d,p?{...r,wrapped:!0}:r),p?Object.getOwnPropertyDescriptor(s,d):void 0})(n,o,t)}function ut(n){return u({...n,state:!0,attribute:!1})}function Km(n){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,n)}}var $r=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function Zt(n,o){return(t,r,s)=>{let d=p=>{var f,T;return(T=(f=p.renderRoot)==null?void 0:f.querySelector(n))!=null?T:null};if(o){let{get:p,set:f}=typeof r=="object"?t:s!=null?s:(()=>{let T=Symbol();return{get(){return this[T]},set(L){this[T]=L}}})();return $r(t,r,{get(){let T=p.call(this);return T===void 0&&(T=d(this),(T!==null||this.hasUpdated)&&f.call(this,T)),T}})}return $r(t,r,{get(){return d(this)}})}}var dc;function Wm(n){return(o,t)=>$r(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:dc!=null?dc:dc=document.createDocumentFragment()).querySelectorAll(n)}})}function Dt(n){return(o,t)=>{let{slot:r,selector:s}=n!=null?n:{},d="slot"+(r?`[name=${r}]`:":not([name])");return $r(o,t,{get(){var T,L;let p=(T=this.renderRoot)==null?void 0:T.querySelector(d),f=(L=p==null?void 0:p.assignedElements(n))!=null?L:[];return s===void 0?f:f.filter(U=>U.matches(s))}})}}function jm(n){return(o,t)=>{let{slot:r}=n!=null?n:{},s="slot"+(r?`[name=${r}]`:":not([name])");return $r(o,t,{get(){var p,f;let d=(p=this.renderRoot)==null?void 0:p.querySelector(s);return(f=d==null?void 0:d.assignedNodes(n))!=null?f:[]}})}}var Zy={PREFIX:"mdc",SEPARATOR:"-"},Qy={NAMESPACE:Zy},cc=Qy;var Jy=n=>[cc.NAMESPACE.PREFIX,n].join(cc.NAMESPACE.SEPARATOR),z={constructTagName:Jy};var J={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 qm=z.constructTagName("buttonsimple"),xo={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},ms={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},_a={SIZE:xo[32],TYPE:ms.BUTTON,ROLE:J.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var li=z.constructTagName("button"),$t={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ca={40:40,32:32,28:28,24:24},cr={64:64,52:52,20:20,...Ca},Ao={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},us={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ue={VARIANT:$t.PRIMARY,SIZE:Ca[32],COLOR:Ao.DEFAULT,TYPE_INTERNAL:us.ICON,TYPE:ms.BUTTON,INVERTED:!1};var tl=n=>{class o extends n{constructor(){super(...arguments);this.variant=Ue.VARIANT;this.color=Ue.COLOR;this.typeInternal=Ue.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values($t).includes(s)?s:Ue.VARIANT)}setColor(s){!Object.values(Ao).includes(s)||this.variant===$t.TERTIARY?this.setAttribute("color",`${Ue.COLOR}`):this.setAttribute("color",s)}setSize(s){let p=this.typeInternal===us.ICON?Object.values(cr).includes(s)&&!(s===cr[20]&&this.variant!==$t.TERTIARY):Object.values(Ca).includes(s);this.setAttribute("size",p?`${s}`:`${Ue.SIZE}`)}inferButtonType(){var L,U,q,Q,X,it;let s=(U=(L=this.shadowRoot)==null?void 0:L.querySelector("slot:not([name])"))==null?void 0:U.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,d=(Q=(q=this.shadowRoot)==null?void 0:q.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,p=this.prefixIcon||d&&d>0,f=(it=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:it.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,T=this.postfixIcon||f&&f>0;s&&(p||T)?(this.typeInternal=us.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(p||T)?(this.typeInternal=us.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=us.PILL,this.setAttribute("data-btn-type","pill"))}}return m([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),m([u({type:String})],o.prototype,"variant",2),m([u({type:String})],o.prototype,"color",2),m([ut()],o.prototype,"typeInternal",2),o};var Xm=B`
5
5
  :host {
6
6
  box-sizing: border-box;
7
7
  }
@@ -15,7 +15,7 @@
15
15
  :host {
16
16
  display: contents;
17
17
  }
18
- `,Qm=tE;var il=class extends j{constructor({context:o,initialValue:t}){super(),this.context=new vs(this,{context:o,initialValue:t})}render(){return this.updateContext(),_`<slot></slot>`}};il.styles=[...j.styles,Qm];var Jm=il;var xe=Jm;var Ae=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(s){super.firstUpdated(s),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return m([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Ut=a=>{class o extends a{}return m([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var zr=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return m([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Qe={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var Z={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},eE={[Qe.ARROW_UP]:Z.UP,[Qe.ARROW_DOWN]:Z.DOWN,[Qe.ARROW_LEFT]:Z.LEFT,[Qe.ARROW_RIGHT]:Z.RIGHT,[Qe.ENTER]:Z.ENTER,[Qe.SPACE]:Z.SPACE,[Qe.ESCAPE]:Z.ESCAPE,[Qe.TAB]:Z.TAB,[Qe.HOME]:Z.HOME,[Qe.END]:Z.END},kt=a=>{class o extends a{getActionForKeyEvent(r,s=!1){let p=eE[r.key];if(s){if(!(window.getComputedStyle(this).direction==="rtl"))return p;if(p===Z.LEFT)return Z.RIGHT;if(p===Z.RIGHT)return Z.LEFT}return p}}return o};var bt=B`
18
+ `,Qm=tE;var il=class extends j{constructor({context:o,initialValue:t}){super(),this.context=new vs(this,{context:o,initialValue:t})}render(){return this.updateContext(),_`<slot></slot>`}};il.styles=[...j.styles,Qm];var Jm=il;var xe=Jm;var Ae=n=>{class o extends n{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(s){super.firstUpdated(s),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return m([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Ut=n=>{class o extends n{}return m([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var zr=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return m([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Qe={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var Z={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},eE={[Qe.ARROW_UP]:Z.UP,[Qe.ARROW_DOWN]:Z.DOWN,[Qe.ARROW_LEFT]:Z.LEFT,[Qe.ARROW_RIGHT]:Z.RIGHT,[Qe.ENTER]:Z.ENTER,[Qe.SPACE]:Z.SPACE,[Qe.ESCAPE]:Z.ESCAPE,[Qe.TAB]:Z.TAB,[Qe.HOME]:Z.HOME,[Qe.END]:Z.END},kt=n=>{class o extends n{getActionForKeyEvent(r,s=!1){let p=eE[r.key];if(s){if(!(window.getComputedStyle(this).direction==="rtl"))return p;if(p===Z.LEFT)return Z.RIGHT;if(p===Z.RIGHT)return Z.LEFT}return p}}return o};var bt=B`
19
19
  :host {
20
20
  align-items: center;
21
21
  display: flex;
@@ -39,7 +39,7 @@
39
39
  `,zi=B`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
40
40
  0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
41
41
  0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
42
- `,St=(a=!1)=>a?[$i,B`
42
+ `,St=(n=!1)=>n?[$i,B`
43
43
  .mdc-focus-ring:focus-visible {
44
44
  outline: none;
45
45
  }
@@ -131,7 +131,7 @@
131
131
  :host([size='20']) {
132
132
  --mdc-button-height: 1.25rem;
133
133
  }
134
- `,...St()],tu=rE;var Je=class extends kt(Ae(zr(Ut(j)))){constructor(){super();this.size=Cn.SIZE;this.role=Cn.ROLE;this.type=Cn.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||Cn.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===ms.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===ms.RESET&&this.form&&this.form.reset()}setActive(t,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(d=>d.trim().startsWith("aria-")).forEach(d=>{r===!0?t.setAttribute(d.trim(),"true"):r===!1?t.setAttribute(d.trim(),"false"):t.removeAttribute(d.trim())})}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,r){r?(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 r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.add("pressed"),r===Z.ENTER&&this.triggerClickEvent(),t.preventDefault())}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.remove("pressed"),r===Z.SPACE&&this.triggerClickEvent())}render(){return _` <slot></slot> `}};Je.formAssociated=!0,Je.styles=[...j.styles,...tu],m([u({type:Boolean,reflect:!0})],Je.prototype,"active",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Je.prototype,"softDisabled",2),m([u({type:Number,reflect:!0})],Je.prototype,"size",2),m([u({type:String,reflect:!0})],Je.prototype,"role",2),m([u({type:String,reflect:!0})],Je.prototype,"ariaStateKey",2),m([u({reflect:!0})],Je.prototype,"type",2),m([u({type:String,reflect:!0})],Je.prototype,"name",2),m([u({type:String,reflect:!0})],Je.prototype,"value",2);var ae=Je;var ol=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let r=this.overflowElement;return r.scrollWidth>r.clientWidth}}return o};var iE=B`
134
+ `,...St()],tu=rE;var Je=class extends kt(Ae(zr(Ut(j)))){constructor(){super();this.size=_a.SIZE;this.role=_a.ROLE;this.type=_a.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||_a.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===ms.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===ms.RESET&&this.form&&this.form.reset()}setActive(t,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(d=>d.trim().startsWith("aria-")).forEach(d=>{r===!0?t.setAttribute(d.trim(),"true"):r===!1?t.setAttribute(d.trim(),"false"):t.removeAttribute(d.trim())})}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,r){r?(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 r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.add("pressed"),r===Z.ENTER&&this.triggerClickEvent(),t.preventDefault())}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.remove("pressed"),r===Z.SPACE&&this.triggerClickEvent())}render(){return _` <slot></slot> `}};Je.formAssociated=!0,Je.styles=[...j.styles,...tu],m([u({type:Boolean,reflect:!0})],Je.prototype,"active",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Je.prototype,"softDisabled",2),m([u({type:Number,reflect:!0})],Je.prototype,"size",2),m([u({type:String,reflect:!0})],Je.prototype,"role",2),m([u({type:String,reflect:!0})],Je.prototype,"ariaStateKey",2),m([u({reflect:!0})],Je.prototype,"type",2),m([u({type:String,reflect:!0})],Je.prototype,"name",2),m([u({type:String,reflect:!0})],Je.prototype,"value",2);var le=Je;var ol=n=>{class o extends n{get overflowElement(){return this}isWidthOverflowing(){let r=this.overflowElement;return r.scrollWidth>r.clientWidth}}return o};var iE=B`
135
135
  :host {
136
136
  --mdc-button-prefix-icon-size: 1rem;
137
137
  --mdc-button-postfix-icon-size: 1rem;
@@ -416,7 +416,7 @@
416
416
  :host::part(postfix-icon) {
417
417
  flex-shrink: 0;
418
418
  }
419
- `,eu=[iE];var Io=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(r=>!t.includes(r)).join("-")};var Vr=class extends ol(tl(ae)){constructor(){super(...arguments);this.size=Ue.SIZE;this.inverted=Ue.INVERTED;this.role=J.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=`${Io(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Io(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return _`
419
+ `,eu=[iE];var Io=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(r=>!t.includes(r)).join("-")};var Vr=class extends ol(tl(le)){constructor(){super(...arguments);this.size=Ue.SIZE;this.inverted=Ue.INVERTED;this.role=J.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=`${Io(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Io(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return _`
420
420
  <slot name="prefix" part="prefix">
421
421
  ${this.prefixFilledIconName?_` <mdc-icon
422
422
  name="${this.prefixFilledIconName}"
@@ -432,7 +432,7 @@
432
432
  length-unit="rem"
433
433
  ></mdc-icon>`:""}
434
434
  </slot>
435
- `}};Vr.styles=[...ae.styles,...eu],m([Zt('slot[part="button-text"]')],Vr.prototype,"buttonTextPart",2),m([u({type:Number})],Vr.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Vr.prototype,"inverted",2),m([u({type:String,reflect:!0})],Vr.prototype,"role",2),m([ut()],Vr.prototype,"prefixFilledIconName",2),m([ut()],Vr.prototype,"postfixFilledIconName",2);var _o=Vr;var oE=a=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:d}=a,p=(s||d)&&(f=>{d&&d.forEach(T=>{o.requestUpdate(T)}),s==null||s(f)});return new fs(o,{context:t,callback:p,subscribe:r!=null?r:!0})},sE={consume:oE},Se=sE;var sl=z.constructTagName("iconprovider"),ru=["svg"],iu=["em","rem","px","%"],nE={px:16,em:1,rem:1,"%":100},di={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:nE.em,ICON_SET:"momentum-icons"};var nl=class{};nl.context=sl;var al=nl;var Br=class extends xe{constructor(){super({context:al.context,initialValue:new al});this.iconSet=di.ICON_SET;this.fileExtension=di.FILE_EXTENSION;this.lengthUnit=di.LENGTH_UNIT;this.size=di.SIZE}static get Context(){return al.context}updateValuesInContext(){this.fileExtension&&ru.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=di.FILE_EXTENSION,this.context.value.fileExtension=di.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&&iu.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=di.LENGTH_UNIT,this.context.value.lengthUnit=di.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())}};m([u({type:String,attribute:"icon-set",reflect:!0})],Br.prototype,"iconSet",2),m([u({type:String})],Br.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Br.prototype,"fileExtension",2),m([u({type:String,attribute:"length-unit",reflect:!0})],Br.prototype,"lengthUnit",2),m([u({type:Number,reflect:!0})],Br.prototype,"size",2),m([u({type:String,attribute:"cache-strategy"})],Br.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Br.prototype,"cacheName",2);var kn=Br;var aE=[bt,B`
435
+ `}};Vr.styles=[...le.styles,...eu],m([Zt('slot[part="button-text"]')],Vr.prototype,"buttonTextPart",2),m([u({type:Number})],Vr.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Vr.prototype,"inverted",2),m([u({type:String,reflect:!0})],Vr.prototype,"role",2),m([ut()],Vr.prototype,"prefixFilledIconName",2),m([ut()],Vr.prototype,"postfixFilledIconName",2);var _o=Vr;var oE=n=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:d}=n,p=(s||d)&&(f=>{d&&d.forEach(T=>{o.requestUpdate(T)}),s==null||s(f)});return new fs(o,{context:t,callback:p,subscribe:r!=null?r:!0})},sE={consume:oE},Se=sE;var sl=z.constructTagName("iconprovider"),ru=["svg"],iu=["em","rem","px","%"],aE={px:16,em:1,rem:1,"%":100},di={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:aE.em,ICON_SET:"momentum-icons"};var al=class{};al.context=sl;var nl=al;var Br=class extends xe{constructor(){super({context:nl.context,initialValue:new nl});this.iconSet=di.ICON_SET;this.fileExtension=di.FILE_EXTENSION;this.lengthUnit=di.LENGTH_UNIT;this.size=di.SIZE}static get Context(){return nl.context}updateValuesInContext(){this.fileExtension&&ru.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=di.FILE_EXTENSION,this.context.value.fileExtension=di.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&&iu.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=di.LENGTH_UNIT,this.context.value.lengthUnit=di.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())}};m([u({type:String,attribute:"icon-set",reflect:!0})],Br.prototype,"iconSet",2),m([u({type:String})],Br.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Br.prototype,"fileExtension",2),m([u({type:String,attribute:"length-unit",reflect:!0})],Br.prototype,"lengthUnit",2),m([u({type:Number,reflect:!0})],Br.prototype,"size",2),m([u({type:String,attribute:"cache-strategy"})],Br.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Br.prototype,"cacheName",2);var wa=Br;var nE=[bt,B`
436
436
  :host {
437
437
  --mdc-icon-fill-color: currentColor;
438
438
  --mdc-icon-size: var(--computed-icon-size);
@@ -447,7 +447,7 @@
447
447
  width: 100%;
448
448
  fill: var(--mdc-icon-fill-color);
449
449
  }
450
- `,...St()],ou=aE;var Nn={},su=async a=>(Nn[a]===void 0&&(Nn[a]=new Map),{async set(o,t){Nn[a].set(o.url,await t.text())},async get(o){return Nn[a].get(o.url)},async delete(o){Nn[a].delete(o.url)}}),nu=async a=>{let o=await caches.open(a);return{set:async(t,r)=>{await o.put(t,r)},get:async t=>{let r=await o.match(t);return r==null?void 0:r.text()},delete:async t=>{await o.delete(t)}}},ll=async(a,o)=>o==="in-memory-cache"?su(a):nu(a);var au=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),lu=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let p=d(),f=new Request(`${a}/${o}.${t}`,{signal:p});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?au(f).then(T=>T.text()):ll(s,r).then(T=>T.get(f).then(L=>L||au(f.clone()).then(U=>{var q;return U.status<400&&U.headers.has("content-type")?(q=T.set)==null?void 0:q.call(T,f,U.clone()).then(()=>U.text()):U.text()})).catch(L=>{throw new Error(`Error in caching the Icon ${o}, ${L}`)}))};var du=z.constructTagName("icon"),pc={NAME:void 0,SIZE:1};var tr=class extends j{constructor(){super();this.name=pc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Se.consume({host:this,context:kn.Context});this.abortController=new AbortController}prepareIconElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:s,cacheName:d,iconSet:p,cacheStrategy:f}=this.iconProviderContext.value;if(p==="custom-icons"&&s&&r&&this.name){let T=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return lu({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:T}).then(L=>{let U=this.prepareIconElement(L);this.handleIconLoadedSuccess(U)}).catch(L=>{this.handleIconLoadedFailure(L)})}if(p==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(T=>{this.handleIconLoadedSuccess(T.default())}).catch(T=>{this.handleIconLoadedFailure(T)})}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 r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:pc.SIZE}updated(t){var r,s,d,p;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!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.lengthUnit,this.updateSize()),this.sizeFromContext!==((d=this.iconProviderContext.value)==null?void 0:d.size)&&(this.sizeFromContext=(p=this.iconProviderContext.value)==null?void 0:p.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.iconData} `}};tr.styles=[...j.styles,...ou],m([ut()],tr.prototype,"iconData",2),m([ut()],tr.prototype,"lengthUnitFromContext",2),m([ut()],tr.prototype,"sizeFromContext",2),m([u({type:String,reflect:!0})],tr.prototype,"name",2),m([u({type:Number})],tr.prototype,"size",2),m([u({type:String,attribute:"length-unit"})],tr.prototype,"lengthUnit",2),m([u({type:String,attribute:"aria-label"})],tr.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],tr.prototype,"ariaLabelledby",2),m([ut()],tr.prototype,"abortController",2);var mc=tr;mc.register(du);var lE=mc;_o.register(li);var dE=_o;var cu=B`
450
+ `,...St()],ou=nE;var ka={},su=async n=>(ka[n]===void 0&&(ka[n]=new Map),{async set(o,t){ka[n].set(o.url,await t.text())},async get(o){return ka[n].get(o.url)},async delete(o){ka[n].delete(o.url)}}),au=async n=>{let o=await caches.open(n);return{set:async(t,r)=>{await o.put(t,r)},get:async t=>{let r=await o.match(t);return r==null?void 0:r.text()},delete:async t=>{await o.delete(t)}}},ll=async(n,o)=>o==="in-memory-cache"?su(n):au(n);var nu=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),lu=async({url:n,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let p=d(),f=new Request(`${n}/${o}.${t}`,{signal:p});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?nu(f).then(T=>T.text()):ll(s,r).then(T=>T.get(f).then(L=>L||nu(f.clone()).then(U=>{var q;return U.status<400&&U.headers.has("content-type")?(q=T.set)==null?void 0:q.call(T,f,U.clone()).then(()=>U.text()):U.text()})).catch(L=>{throw new Error(`Error in caching the Icon ${o}, ${L}`)}))};var du=z.constructTagName("icon"),pc={NAME:void 0,SIZE:1};var tr=class extends j{constructor(){super();this.name=pc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Se.consume({host:this,context:wa.Context});this.abortController=new AbortController}prepareIconElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:s,cacheName:d,iconSet:p,cacheStrategy:f}=this.iconProviderContext.value;if(p==="custom-icons"&&s&&r&&this.name){let T=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return lu({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:T}).then(L=>{let U=this.prepareIconElement(L);this.handleIconLoadedSuccess(U)}).catch(L=>{this.handleIconLoadedFailure(L)})}if(p==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(T=>{this.handleIconLoadedSuccess(T.default())}).catch(T=>{this.handleIconLoadedFailure(T)})}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 r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:pc.SIZE}updated(t){var r,s,d,p;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!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.lengthUnit,this.updateSize()),this.sizeFromContext!==((d=this.iconProviderContext.value)==null?void 0:d.size)&&(this.sizeFromContext=(p=this.iconProviderContext.value)==null?void 0:p.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.iconData} `}};tr.styles=[...j.styles,...ou],m([ut()],tr.prototype,"iconData",2),m([ut()],tr.prototype,"lengthUnitFromContext",2),m([ut()],tr.prototype,"sizeFromContext",2),m([u({type:String,reflect:!0})],tr.prototype,"name",2),m([u({type:Number})],tr.prototype,"size",2),m([u({type:String,attribute:"length-unit"})],tr.prototype,"lengthUnit",2),m([u({type:String,attribute:"aria-label"})],tr.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],tr.prototype,"ariaLabelledby",2),m([ut()],tr.prototype,"abortController",2);var mc=tr;mc.register(du);var lE=mc;_o.register(li);var dE=_o;var cu=B`
451
451
  :host::part(text) {
452
452
  font-size: unset;
453
453
  font-weight: unset;
@@ -697,7 +697,7 @@
697
697
  display: block;
698
698
  font-family: var(--mdc-text-font-family);
699
699
  }
700
- `,cu],hu=cE;var Ln=z.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},fe={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Co=class extends ol(j){constructor(){super(...arguments);this.type=fe.TYPE;this.tagname=fe.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return _`<h1 part=${fe.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return _`<h2 part=${fe.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return _`<h3 part=${fe.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return _`<h4 part=${fe.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return _`<h5 part=${fe.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return _`<h6 part=${fe.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return _`<div part=${fe.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return _`<span part=${fe.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return _`<small part=${fe.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return _`<p part=${fe.CSS_PART_TEXT}><slot></slot></p>`}}};Co.styles=[...j.styles,...hu],m([Zt(`[part='${fe.CSS_PART_TEXT}']`)],Co.prototype,"textPartElement",2),m([u({attribute:"type",reflect:!0,type:String})],Co.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Co.prototype,"tagname",2);var uc=Co;uc.register(Ln);var hE=uc;var tt=a=>a!=null?a:W;var ve=[];for(let a=0;a<256;++a)ve.push((a+256).toString(16).slice(1));function pu(a,o=0){return(ve[a[o+0]]+ve[a[o+1]]+ve[a[o+2]]+ve[a[o+3]]+"-"+ve[a[o+4]]+ve[a[o+5]]+"-"+ve[a[o+6]]+ve[a[o+7]]+"-"+ve[a[o+8]]+ve[a[o+9]]+"-"+ve[a[o+10]]+ve[a[o+11]]+ve[a[o+12]]+ve[a[o+13]]+ve[a[o+14]]+ve[a[o+15]]).toLowerCase()}var fc,pE=new Uint8Array(16);function vc(){if(!fc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");fc=crypto.getRandomValues.bind(crypto)}return fc(pE)}var mE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),gc={randomUUID:mE};function uE(a,o,t){var s,d,p;if(gc.randomUUID&&!o&&!a)return gc.randomUUID();a=a||{};let r=(p=(d=a.random)!=null?d:(s=a.rng)==null?void 0:s.call(a))!=null?p:vc();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[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]=r[f];return o}return pu(r)}var Ie=uE;var mu=z.constructTagName("accordiongroup"),bc={SMALL:"small",LARGE:"large"},fE={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},On={SIZE:bc.SMALL,VARIANT:fE.STACKED};var dl=z.constructTagName("accordionbutton"),Mn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},vE={DEFAULT:"default",BORDERLESS:"borderless"},Vi={EXPANDED:!1,SIZE:bc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:vE.DEFAULT,ICON_NAME:Mn.ARROW_UP};var gE=B`
700
+ `,cu],hu=cE;var Na=z.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},fe={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Co=class extends ol(j){constructor(){super(...arguments);this.type=fe.TYPE;this.tagname=fe.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return _`<h1 part=${fe.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return _`<h2 part=${fe.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return _`<h3 part=${fe.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return _`<h4 part=${fe.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return _`<h5 part=${fe.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return _`<h6 part=${fe.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return _`<div part=${fe.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return _`<span part=${fe.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return _`<small part=${fe.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return _`<p part=${fe.CSS_PART_TEXT}><slot></slot></p>`}}};Co.styles=[...j.styles,...hu],m([Zt(`[part='${fe.CSS_PART_TEXT}']`)],Co.prototype,"textPartElement",2),m([u({attribute:"type",reflect:!0,type:String})],Co.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Co.prototype,"tagname",2);var uc=Co;uc.register(Na);var hE=uc;var tt=n=>n!=null?n:W;var ve=[];for(let n=0;n<256;++n)ve.push((n+256).toString(16).slice(1));function pu(n,o=0){return(ve[n[o+0]]+ve[n[o+1]]+ve[n[o+2]]+ve[n[o+3]]+"-"+ve[n[o+4]]+ve[n[o+5]]+"-"+ve[n[o+6]]+ve[n[o+7]]+"-"+ve[n[o+8]]+ve[n[o+9]]+"-"+ve[n[o+10]]+ve[n[o+11]]+ve[n[o+12]]+ve[n[o+13]]+ve[n[o+14]]+ve[n[o+15]]).toLowerCase()}var fc,pE=new Uint8Array(16);function vc(){if(!fc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");fc=crypto.getRandomValues.bind(crypto)}return fc(pE)}var mE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),gc={randomUUID:mE};function uE(n,o,t){var s,d,p;if(gc.randomUUID&&!o&&!n)return gc.randomUUID();n=n||{};let r=(p=(d=n.random)!=null?d:(s=n.rng)==null?void 0:s.call(n))!=null?p:vc();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[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]=r[f];return o}return pu(r)}var Ie=uE;var mu=z.constructTagName("accordiongroup"),bc={SMALL:"small",LARGE:"large"},fE={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},La={SIZE:bc.SMALL,VARIANT:fE.STACKED};var dl=z.constructTagName("accordionbutton"),Oa={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},vE={DEFAULT:"default",BORDERLESS:"borderless"},Vi={EXPANDED:!1,SIZE:bc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:vE.DEFAULT,ICON_NAME:Oa.ARROW_UP};var gE=B`
701
701
  :host {
702
702
  --mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
703
703
  --mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
@@ -842,7 +842,7 @@
842
842
  </div>
843
843
  </div>
844
844
  </div>
845
- `}getArrowIconName(){return this.disabled?Mn.ARROW_DOWN:this.expanded?Mn.ARROW_UP:Mn.ARROW_DOWN}renderBody(){return this.disabled?W:this.expanded?_`<div
845
+ `}getArrowIconName(){return this.disabled?Oa.ARROW_DOWN:this.expanded?Oa.ARROW_UP:Oa.ARROW_DOWN}renderBody(){return this.disabled?W:this.expanded?_`<div
846
846
  id="${this.bodySectionId}"
847
847
  aria-labelledby="${this.headSectionId}"
848
848
  part="body-section"
@@ -929,7 +929,7 @@
929
929
  :host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
930
930
  border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
931
931
  }
932
- `,vu=[EE,...St()];var ci=class extends j{constructor(){super();this.size=On.SIZE;this.variant=On.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(r=>{r!==t.target&&r.hasAttribute("expanded")&&r.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,r){[...this.accordionItems].forEach(s=>{s.setAttribute(t,r)}),[...this.accordionButtonItems].forEach(s=>{s.setAttribute(t,r)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=On.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=On.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return _` <slot></slot> `}};ci.styles=[...j.styles,...vu],m([u({type:String,reflect:!0})],ci.prototype,"size",2),m([u({type:String,reflect:!0})],ci.prototype,"variant",2),m([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],ci.prototype,"allowMultiple",2),m([Dt({selector:cl})],ci.prototype,"accordionItems",2),m([Dt({selector:dl})],ci.prototype,"accordionButtonItems",2);var Ec=ci;Ec.register(mu);var TE=Ec;gs.register(dl);var xE=gs;var Qt=a=>{class o extends a{}return m([u({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var AE=B`
932
+ `,vu=[EE,...St()];var ci=class extends j{constructor(){super();this.size=La.SIZE;this.variant=La.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(r=>{r!==t.target&&r.hasAttribute("expanded")&&r.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,r){[...this.accordionItems].forEach(s=>{s.setAttribute(t,r)}),[...this.accordionButtonItems].forEach(s=>{s.setAttribute(t,r)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=La.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=La.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return _` <slot></slot> `}};ci.styles=[...j.styles,...vu],m([u({type:String,reflect:!0})],ci.prototype,"size",2),m([u({type:String,reflect:!0})],ci.prototype,"variant",2),m([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],ci.prototype,"allowMultiple",2),m([Dt({selector:cl})],ci.prototype,"accordionItems",2),m([Dt({selector:dl})],ci.prototype,"accordionButtonItems",2);var Ec=ci;Ec.register(mu);var TE=Ec;gs.register(dl);var xE=gs;var Qt=n=>{class o extends n{}return m([u({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var AE=B`
933
933
  :host {
934
934
  height: 1.5rem;
935
935
  gap: 0.25rem;
@@ -1042,28 +1042,28 @@
1042
1042
  --mdc-chip-icon-color: ButtonText;
1043
1043
  }
1044
1044
  }
1045
- `,gu=[bt,AE,...St()];var bu=z.constructTagName("alertchip"),wo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},bs={VARIANT:wo.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:xo[24],ROLE:J.BUTTON};var yu=a=>({[wo.ERROR]:"error-legacy-badge-filled",[wo.INFORMATIONAL]:"info-badge-filled",[wo.NEUTRAL]:"dnd-presence-badge-filled",[wo.SUCCESS]:"check-circle-badge-filled",[wo.WARNING]:"warning-badge-filled"})[a];var ys=class extends Qt(ae){constructor(){super(...arguments);this.variant=bs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=bs.SIZE,this.role=bs.ROLE}render(){return _`
1045
+ `,gu=[bt,AE,...St()];var bu=z.constructTagName("alertchip"),wo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},bs={VARIANT:wo.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:xo[24],ROLE:J.BUTTON};var yu=n=>({[wo.ERROR]:"error-legacy-badge-filled",[wo.INFORMATIONAL]:"info-badge-filled",[wo.NEUTRAL]:"dnd-presence-badge-filled",[wo.SUCCESS]:"check-circle-badge-filled",[wo.WARNING]:"warning-badge-filled"})[n];var ys=class extends Qt(le){constructor(){super(...arguments);this.variant=bs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=bs.SIZE,this.role=bs.ROLE}render(){return _`
1046
1046
  <mdc-icon part="icon" name="${this.iconName||yu(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1047
1047
  ${this.label?_`<mdc-text part="label" type="${bs.TEXT_TYPE}" tagname="${bs.TAG_NAME}"
1048
1048
  >${this.label}</mdc-text
1049
1049
  >`:W}
1050
- `}};ys.styles=[...j.styles,...gu],m([u({type:String,reflect:!0})],ys.prototype,"variant",2),m([u({type:String})],ys.prototype,"label",2);var Tc=ys;Tc.register(bu);var SE=Tc;var{I:IE}=Um;var hl=a=>a.strings===void 0,Eu=()=>document.createComment(""),Es=(a,o,t)=>{var d;let r=a._$AA.parentNode,s=o===void 0?a._$AB:o._$AA;if(t===void 0){let p=r.insertBefore(Eu(),s),f=r.insertBefore(Eu(),s);t=new IE(p,f,a,a.options)}else{let p=t._$AB.nextSibling,f=t._$AM,T=f!==a;if(T){let L;(d=t._$AQ)==null||d.call(t,a),t._$AM=a,t._$AP!==void 0&&(L=a._$AU)!==f._$AU&&t._$AP(L)}if(p!==s||T){let L=t._$AA;for(;L!==p;){let U=L.nextSibling;r.insertBefore(L,s),L=U}}}return t},Ui=(a,o,t=a)=>(a._$AI(o,t),a),_E={},pl=(a,o=_E)=>a._$AH=o,Tu=a=>a._$AH,ml=a=>{var r;(r=a._$AP)==null||r.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let s=o.nextSibling;o.remove(),o=s}};var er={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},hi=a=>(...o)=>({_$litDirective$:a,values:o}),Hr=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,r){this.t=o,this._$AM=t,this.i=r}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var Rn=(a,o)=>{var r;let t=a._$AN;if(t===void 0)return!1;for(let s of t)(r=s._$AO)==null||r.call(s,o,!1),Rn(s,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)},xu=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),kE(o)}};function CE(a){this._$AN!==void 0?(ul(this),this._$AM=a,xu(this)):this._$AM=a}function wE(a,o=!1,t=0){let r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(o)if(Array.isArray(r))for(let d=t;d<r.length;d++)Rn(r[d],!1),ul(r[d]);else r!=null&&(Rn(r,!1),ul(r));else Rn(this,a)}var kE=a=>{var o,t;a.type==er.CHILD&&((o=a._$AP)!=null||(a._$AP=wE),(t=a._$AQ)!=null||(a._$AQ=CE))},fl=class extends Hr{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,r){super._$AT(o,t,r),xu(this),this.isConnected=o._$AU}_$AO(o,t=!0){var r,s;o!==this.isConnected&&(this.isConnected=o,o?(r=this.reconnected)==null||r.call(this):(s=this.disconnected)==null||s.call(this)),t&&(Rn(this,o),ul(this))}setValue(o){if(hl(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 Au=()=>new Ac,Ac=class{},xc=new WeakMap,Su=hi(class extends fl{render(a){return W}update(a,[o]){var r;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=(r=a.options)==null?void 0:r.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,r=xc.get(t);r===void 0&&(r=new WeakMap,xc.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.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=xc.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 wu=Vy(Iu());var Sc={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 NE=[bt,B`
1050
+ `}};ys.styles=[...j.styles,...gu],m([u({type:String,reflect:!0})],ys.prototype,"variant",2),m([u({type:String})],ys.prototype,"label",2);var Tc=ys;Tc.register(bu);var SE=Tc;var{I:IE}=Um;var hl=n=>n.strings===void 0,Eu=()=>document.createComment(""),Es=(n,o,t)=>{var d;let r=n._$AA.parentNode,s=o===void 0?n._$AB:o._$AA;if(t===void 0){let p=r.insertBefore(Eu(),s),f=r.insertBefore(Eu(),s);t=new IE(p,f,n,n.options)}else{let p=t._$AB.nextSibling,f=t._$AM,T=f!==n;if(T){let L;(d=t._$AQ)==null||d.call(t,n),t._$AM=n,t._$AP!==void 0&&(L=n._$AU)!==f._$AU&&t._$AP(L)}if(p!==s||T){let L=t._$AA;for(;L!==p;){let U=L.nextSibling;r.insertBefore(L,s),L=U}}}return t},Ui=(n,o,t=n)=>(n._$AI(o,t),n),_E={},pl=(n,o=_E)=>n._$AH=o,Tu=n=>n._$AH,ml=n=>{var r;(r=n._$AP)==null||r.call(n,!1,!0);let o=n._$AA,t=n._$AB.nextSibling;for(;o!==t;){let s=o.nextSibling;o.remove(),o=s}};var er={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},hi=n=>(...o)=>({_$litDirective$:n,values:o}),Hr=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,r){this.t=o,this._$AM=t,this.i=r}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var Ma=(n,o)=>{var r;let t=n._$AN;if(t===void 0)return!1;for(let s of t)(r=s._$AO)==null||r.call(s,o,!1),Ma(s,o);return!0},ul=n=>{let o,t;do{if((o=n._$AM)===void 0)break;t=o._$AN,t.delete(n),n=o}while((t==null?void 0:t.size)===0)},xu=n=>{for(let o;o=n._$AM;n=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(n))break;t.add(n),kE(o)}};function CE(n){this._$AN!==void 0?(ul(this),this._$AM=n,xu(this)):this._$AM=n}function wE(n,o=!1,t=0){let r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(o)if(Array.isArray(r))for(let d=t;d<r.length;d++)Ma(r[d],!1),ul(r[d]);else r!=null&&(Ma(r,!1),ul(r));else Ma(this,n)}var kE=n=>{var o,t;n.type==er.CHILD&&((o=n._$AP)!=null||(n._$AP=wE),(t=n._$AQ)!=null||(n._$AQ=CE))},fl=class extends Hr{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,r){super._$AT(o,t,r),xu(this),this.isConnected=o._$AU}_$AO(o,t=!0){var r,s;o!==this.isConnected&&(this.isConnected=o,o?(r=this.reconnected)==null||r.call(this):(s=this.disconnected)==null||s.call(this)),t&&(Ma(this,o),ul(this))}setValue(o){if(hl(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 Au=()=>new Ac,Ac=class{},xc=new WeakMap,Su=hi(class extends fl{render(n){return W}update(n,[o]){var r;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=(r=n.options)==null?void 0:r.host,this.rt(this.ct=n.element)),W}rt(n){var o;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,r=xc.get(t);r===void 0&&(r=new WeakMap,xc.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,o,t;return typeof this.Y=="function"?(o=xc.get((n=this.ht)!=null?n:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var wu=Vy(Iu());var Sc={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 NE=[bt,B`
1051
1051
  :host svg {
1052
1052
  display: block;
1053
1053
  }
1054
- `],_u=NE;var Cu=z.constructTagName("animation"),Ic={AUTO_PLAY:!0,LOOP:"true"};var pi=class extends j{constructor(){super(...arguments);this.loop=Ic.LOOP;this.autoplay=Ic.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Au();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.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=wu.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)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}getAnimationData(){this.name&&Sc[this.name]?import(`@momentum-design/animations/dist/lottie${Sc[this.name].replace(/^\.\/lottie/,"")}`).then(r=>this.onLoadSuccessHandler(r.default)).catch(r=>this.onLoadFailHandler(r)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?J.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return _`<div aria-hidden="true" ${Su(this.containerRef)}></div>`}};pi.styles=[...j.styles,..._u],m([u({type:String,reflect:!0})],pi.prototype,"name",2),m([u({type:String,reflect:!0})],pi.prototype,"loop",2),m([u({type:Boolean,reflect:!0})],pi.prototype,"autoplay",2),m([u({type:String,attribute:"aria-label"})],pi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],pi.prototype,"ariaLabelledby",2);var _c=pi;_c.register(Cu);var LE=_c;var Nu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Lu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),OE=a=>a.getClientRects().length===0,ME=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:r,offsetHeight:s}=a;return r+s+t+o===0},RE=a=>ME(a)||OE(a),PE=a=>{let{display:o,opacity:t,visibility:r}=a.style;return o==="none"||t==="0"||r==="hidden"||r==="collapse"},DE=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},FE=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||PE(a)||RE(a)||DE(a),$E=a=>a.disabled,zE=a=>a.getAttribute("tabindex")!=="-1",VE=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),ku=a=>!$E(a)&&zE(a)&&!FE(a)&&VE(a),Ou=a=>{if(!a)return[];let o=new Set,t=r=>{r instanceof HTMLElement&&ku(r)&&o.add(r);let s=[];r instanceof HTMLElement&&r.shadowRoot?s=Array.from(r.shadowRoot.children):r.children.length&&(s=Array.from(r.children)),s.forEach(d=>{let p=d;ku(p)&&o.add(p),p.shadowRoot?t(p.shadowRoot):p.tagName==="SLOT"?p.assignedElements({flatten:!0}).forEach(T=>{T instanceof HTMLElement&&t(T)}):t(p)})};return t(a),[...o]};var Mu=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function";var ko=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)))}}};ko.stack=new Set,ko.currentKeydownListener=null;var gl=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(s){this.isFocusTrapActivated=s}activateFocusTrap(){this.setIsFocusTrapActivated(!0),ko.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),ko.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Ou(this.shadowRoot))}setInitialFocus(s=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[s]&&(this.focusTrapIndex=s,this.focusableElements[s].focus({preventScroll:!0}))}calculateNextIndex(s,d){let{length:p}=this.focusableElements;if(s===-1)return d>0?0:p-1;let f=s+d;return this.shouldFocusTrapWrap?(f<0&&(f=p-1),f>=p&&(f=0)):(f<0&&(f=0),f>=p&&(f=p-1)),f}getDeepActiveElement(){var d;let s=document.activeElement||document.body;for(;s instanceof HTMLElement&&((d=s.shadowRoot)!=null&&d.activeElement);)s=s.shadowRoot.activeElement;return s||document.body}findElement(s){return this.focusableElements.findIndex(d=>this.isEqualFocusNode(s,d))}isEqualFocusNode(s,d){return s.nodeType>=0?d.isEqualNode(s)&&d===s:!1}trapFocus(s){if(this.setFocusableElements(),this.focusableElements.length===0)return;let d=this.getDeepActiveElement(),p=this.findElement(d);s.shiftKey?this.focusTrapIndex=this.calculateNextIndex(p,-1):this.focusTrapIndex=this.calculateNextIndex(p,1);let T=this.focusableElements[this.focusTrapIndex];T.tagName!=="IFRAME"&&T&&(s.preventDefault(),T.focus())}handleTabKeydown(s){this.isFocusTrapActivated&&s.key==="Tab"&&this.trapFocus(s)}}return m([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var bl=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=z.constructTagName("link"),El={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Tl={LARGE:1,MIDSIZE:.875,SMALL:.75},Ru={LINK_SIZE:El.LARGE};var Pu=z.constructTagName("card"),Cc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},BE={HORIZONTAL:"horizontal",VERTICAL:"vertical"},le={VARIANT:Cc.BORDER,ORIENTATION:BE.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:yl,BUTTON:li};var Ts=a=>{class o extends a{updateFooterButtonColors(r){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(d=>{r===Cc.PROMOTIONAL?d.setAttribute("color",Ao.PROMOTIONAL):d.setAttribute("color",Ao.DEFAULT)})}handleFooterSlot(r,s){var p,f,T;let d=[];r===le.LINK&&((p=this.footerLink)!=null&&p.length)?d=this.footerLink:r===le.BUTTON&&s===$t.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?d=this.footerButtonPrimary:r===le.BUTTON&&s===$t.SECONDARY&&((T=this.footerButtonSecondary)!=null&&T.length)&&(d=this.footerButtonSecondary);for(let L=1;L<d.length;L+=1)d[L].remove();d.forEach(L=>{L.matches(r)||L.remove(),s&&L.setAttribute("variant",s)})}renderFooter(){return _` <slot name="footer">
1054
+ `],_u=NE;var Cu=z.constructTagName("animation"),Ic={AUTO_PLAY:!0,LOOP:"true"};var pi=class extends j{constructor(){super(...arguments);this.loop=Ic.LOOP;this.autoplay=Ic.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Au();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.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=wu.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)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}getAnimationData(){this.name&&Sc[this.name]?import(`@momentum-design/animations/dist/lottie${Sc[this.name].replace(/^\.\/lottie/,"")}`).then(r=>this.onLoadSuccessHandler(r.default)).catch(r=>this.onLoadFailHandler(r)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?J.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return _`<div aria-hidden="true" ${Su(this.containerRef)}></div>`}};pi.styles=[...j.styles,..._u],m([u({type:String,reflect:!0})],pi.prototype,"name",2),m([u({type:String,reflect:!0})],pi.prototype,"loop",2),m([u({type:Boolean,reflect:!0})],pi.prototype,"autoplay",2),m([u({type:String,attribute:"aria-label"})],pi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],pi.prototype,"ariaLabelledby",2);var _c=pi;_c.register(Cu);var LE=_c;var Nu=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Lu=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),OE=n=>n.getClientRects().length===0,ME=n=>{let{width:o,height:t}=n.getBoundingClientRect(),{offsetWidth:r,offsetHeight:s}=n;return r+s+t+o===0},RE=n=>ME(n)||OE(n),PE=n=>{let{display:o,opacity:t,visibility:r}=n.style;return o==="none"||t==="0"||r==="hidden"||r==="collapse"},DE=n=>{let o=getComputedStyle(n);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},FE=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||PE(n)||RE(n)||DE(n),$E=n=>n.disabled,zE=n=>n.getAttribute("tabindex")!=="-1",VE=n=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1),ku=n=>!$E(n)&&zE(n)&&!FE(n)&&VE(n),Ou=n=>{if(!n)return[];let o=new Set,t=r=>{r instanceof HTMLElement&&ku(r)&&o.add(r);let s=[];r instanceof HTMLElement&&r.shadowRoot?s=Array.from(r.shadowRoot.children):r.children.length&&(s=Array.from(r.children)),s.forEach(d=>{let p=d;ku(p)&&o.add(p),p.shadowRoot?t(p.shadowRoot):p.tagName==="SLOT"?p.assignedElements({flatten:!0}).forEach(T=>{T instanceof HTMLElement&&t(T)}):t(p)})};return t(n),[...o]};var Mu=n=>"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function";var ko=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)))}}};ko.stack=new Set,ko.currentKeydownListener=null;var gl=n=>{class o extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(s){this.isFocusTrapActivated=s}activateFocusTrap(){this.setIsFocusTrapActivated(!0),ko.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),ko.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Ou(this.shadowRoot))}setInitialFocus(s=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[s]&&(this.focusTrapIndex=s,this.focusableElements[s].focus({preventScroll:!0}))}calculateNextIndex(s,d){let{length:p}=this.focusableElements;if(s===-1)return d>0?0:p-1;let f=s+d;return this.shouldFocusTrapWrap?(f<0&&(f=p-1),f>=p&&(f=0)):(f<0&&(f=0),f>=p&&(f=p-1)),f}getDeepActiveElement(){var d;let s=document.activeElement||document.body;for(;s instanceof HTMLElement&&((d=s.shadowRoot)!=null&&d.activeElement);)s=s.shadowRoot.activeElement;return s||document.body}findElement(s){return this.focusableElements.findIndex(d=>this.isEqualFocusNode(s,d))}isEqualFocusNode(s,d){return s.nodeType>=0?d.isEqualNode(s)&&d===s:!1}trapFocus(s){if(this.setFocusableElements(),this.focusableElements.length===0)return;let d=this.getDeepActiveElement(),p=this.findElement(d);s.shiftKey?this.focusTrapIndex=this.calculateNextIndex(p,-1):this.focusTrapIndex=this.calculateNextIndex(p,1);let T=this.focusableElements[this.focusTrapIndex];T.tagName!=="IFRAME"&&T&&(s.preventDefault(),T.focus())}handleTabKeydown(s){this.isFocusTrapActivated&&s.key==="Tab"&&this.trapFocus(s)}}return m([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var bl=n=>{class o extends n{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var yl=z.constructTagName("link"),El={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Tl={LARGE:1,MIDSIZE:.875,SMALL:.75},Ru={LINK_SIZE:El.LARGE};var Pu=z.constructTagName("card"),Cc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},BE={HORIZONTAL:"horizontal",VERTICAL:"vertical"},de={VARIANT:Cc.BORDER,ORIENTATION:BE.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:yl,BUTTON:li};var Ts=n=>{class o extends n{updateFooterButtonColors(r){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(d=>{r===Cc.PROMOTIONAL?d.setAttribute("color",Ao.PROMOTIONAL):d.setAttribute("color",Ao.DEFAULT)})}handleFooterSlot(r,s){var p,f,T;let d=[];r===de.LINK&&((p=this.footerLink)!=null&&p.length)?d=this.footerLink:r===de.BUTTON&&s===$t.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?d=this.footerButtonPrimary:r===de.BUTTON&&s===$t.SECONDARY&&((T=this.footerButtonSecondary)!=null&&T.length)&&(d=this.footerButtonSecondary);for(let L=1;L<d.length;L+=1)d[L].remove();d.forEach(L=>{L.matches(r)||L.remove(),s&&L.setAttribute("variant",s)})}renderFooter(){return _` <slot name="footer">
1055
1055
  <div part="footer">
1056
- <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(le.LINK)}></slot>
1056
+ <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(de.LINK)}></slot>
1057
1057
  <slot
1058
1058
  name="footer-button-secondary"
1059
- @slotchange=${()=>this.handleFooterSlot(le.BUTTON,$t.SECONDARY)}
1059
+ @slotchange=${()=>this.handleFooterSlot(de.BUTTON,$t.SECONDARY)}
1060
1060
  ></slot>
1061
1061
  <slot
1062
1062
  name="footer-button-primary"
1063
- @slotchange=${()=>this.handleFooterSlot(le.BUTTON,$t.PRIMARY)}
1063
+ @slotchange=${()=>this.handleFooterSlot(de.BUTTON,$t.PRIMARY)}
1064
1064
  ></slot>
1065
1065
  </div>
1066
- </slot>`}}return m([Dt({slot:"footer-link"})],o.prototype,"footerLink",2),m([Dt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),m([Dt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var ke=[],UE=1e3,HE=3,wc=-2,kc=-1,Hi=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return ke.length}pushHost(){var o,t;return this.has(this.host)?!1:(ke.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)){let t=ke.indexOf(o)-1;this.popUntil((r,s)=>r!==o&&r.triggerID===o.triggerID?"skip":s!==t)}}pop(){var t;let o=ke.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let r=ke.length-1;r>=0;r-=1){let s=ke[r],d=o(s,r);if(d===!1)break;d!=="skip"&&t.push(s)}return this.remove(t)}peek(){return ke.at(-1)}remove(o){var s,d;let t=o.filter(p=>ke.includes(p)),r=t.reduce((p,f)=>Math.min(p,ke.indexOf(f)),1/0);t.forEach(p=>{var f;ke.splice(ke.indexOf(p),1),(f=p==null?void 0:p.onComponentStackChanged)==null||f.call(p,"removed")});for(let p=r;p<ke.length;p+=1)(d=(s=ke[p]).onComponentStackChanged)==null||d.call(s,"moved");return t}has(o){return ke.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return ke.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?UE+t*HE:-1}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(s){var d;if(super.update(s),s.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+wc}`;let p=(d=this.triggerElementCache)==null?void 0:d.deref();p&&(p.style.zIndex=`${this.zIndex+kc}`)}}createBackdrop(s){let d=document.createElement("div");d.classList.add(`${s}-backdrop`);let p=document.createElement("style");p.textContent=`
1066
+ </slot>`}}return m([Dt({slot:"footer-link"})],o.prototype,"footerLink",2),m([Dt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),m([Dt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var ke=[],UE=1e3,HE=3,wc=-2,kc=-1,Hi=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return ke.length}pushHost(){var o,t;return this.has(this.host)?!1:(ke.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)){let t=ke.indexOf(o)-1;this.popUntil((r,s)=>r!==o&&r.triggerID===o.triggerID?"skip":s!==t)}}pop(){var t;let o=ke.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let r=ke.length-1;r>=0;r-=1){let s=ke[r],d=o(s,r);if(d===!1)break;d!=="skip"&&t.push(s)}return this.remove(t)}peek(){return ke.at(-1)}remove(o){var s,d;let t=o.filter(p=>ke.includes(p)),r=t.reduce((p,f)=>Math.min(p,ke.indexOf(f)),1/0);t.forEach(p=>{var f;ke.splice(ke.indexOf(p),1),(f=p==null?void 0:p.onComponentStackChanged)==null||f.call(p,"removed")});for(let p=r;p<ke.length;p+=1)(d=(s=ke[p]).onComponentStackChanged)==null||d.call(s,"moved");return t}has(o){return ke.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return ke.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?UE+t*HE:-1}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var xl=n=>{class o extends n{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(s){var d;if(super.update(s),s.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+wc}`;let p=(d=this.triggerElementCache)==null?void 0:d.deref();p&&(p.style.zIndex=`${this.zIndex+kc}`)}}createBackdrop(s){let d=document.createElement("div");d.classList.add(`${s}-backdrop`);let p=document.createElement("style");p.textContent=`
1067
1067
  .${s}-backdrop {
1068
1068
  position: fixed;
1069
1069
  top: 0;
@@ -1324,7 +1324,7 @@
1324
1324
  </slot>
1325
1325
  </div>
1326
1326
  </div>
1327
- `}};Ss.styles=[...As.styles,...Vu],m([u({type:String,reflect:!0})],Ss.prototype,"illustration",2),m([u({type:String,reflect:!0})],Ss.prototype,"size",1);var Mc=Ss;var _l=z.constructTagName("illustrationprovider"),Hu=["svg"],Dn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var Cl=class{};Cl.context=_l;var wl=Cl;var Yi=class extends xe{constructor(){super({context:wl.context,initialValue:new wl});this.illustrationSet=Dn.ILLUSTRATION_SET;this.fileExtension=Dn.FILE_EXTENSION}static get Context(){return wl.context}updateValuesInContext(){this.fileExtension&&Hu.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Dn.FILE_EXTENSION,this.context.value.fileExtension=Dn.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())}};m([u({type:String,attribute:"illustration-set",reflect:!0})],Yi.prototype,"illustrationSet",2),m([u({type:String})],Yi.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Yi.prototype,"fileExtension",2),m([u({type:String,attribute:"cache-strategy"})],Yi.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Yi.prototype,"cacheName",2);var Fn=Yi;var KE=[bt,B`
1327
+ `}};Ss.styles=[...As.styles,...Vu],m([u({type:String,reflect:!0})],Ss.prototype,"illustration",2),m([u({type:String,reflect:!0})],Ss.prototype,"size",1);var Mc=Ss;var _l=z.constructTagName("illustrationprovider"),Hu=["svg"],Pa={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var Cl=class{};Cl.context=_l;var wl=Cl;var Yi=class extends xe{constructor(){super({context:wl.context,initialValue:new wl});this.illustrationSet=Pa.ILLUSTRATION_SET;this.fileExtension=Pa.FILE_EXTENSION}static get Context(){return wl.context}updateValuesInContext(){this.fileExtension&&Hu.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Pa.FILE_EXTENSION,this.context.value.fileExtension=Pa.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())}};m([u({type:String,attribute:"illustration-set",reflect:!0})],Yi.prototype,"illustrationSet",2),m([u({type:String})],Yi.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Yi.prototype,"fileExtension",2),m([u({type:String,attribute:"cache-strategy"})],Yi.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Yi.prototype,"cacheName",2);var Da=Yi;var KE=[bt,B`
1328
1328
  :host {
1329
1329
  --mdc-illustration-size: auto;
1330
1330
  }
@@ -1332,7 +1332,7 @@
1332
1332
  height: var(--mdc-illustration-size);
1333
1333
  width: var(--mdc-illustration-size);
1334
1334
  }
1335
- `],Gu=KE;var Yu=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),Ku=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let p=d(),f=new Request(`${a}/${o}.${t}`,{signal:p});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?Yu(f).then(T=>T.text()):ll(s,r).then(T=>T.get(f).then(L=>L||Yu(f.clone()).then(U=>{var q;return U.status<400&&U.headers.has("content-type")?(q=T.set)==null?void 0:q.call(T,f,U.clone()).then(()=>U.text()):U.text()})).catch(L=>{throw new Error(`Error in caching the Illustration ${o}, ${L}`)}))};var Wu=z.constructTagName("illustration"),ju={NAME:void 0};var mi=class extends j{constructor(){super();this.name=ju.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Se.consume({host:this,context:Fn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","illustration"),r.setAttribute("aria-hidden","true"),r}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:r,url:s,cacheName:d,illustrationSet:p,cacheStrategy:f}=this.illustrationProviderContext.value;if(p==="custom-illustrations"&&s&&r&&this.name){let T=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return Ku({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:T}).then(L=>{let U=this.prepareIllustrationElement(L);this.handleIllustrationLoadedSuccess(U)}).catch(L=>{this.handleIllustrationLoadedFailure(L)})}if(p==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(T=>{this.handleIllustrationLoadedSuccess(T.default())}).catch(T=>{this.handleIllustrationLoadedFailure(T)})}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 r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIllustrationLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(r=>{r.name!=="AbortError"&&this.onerror&&this.onerror(r)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?J.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.illustrationData} `}};mi.styles=[...j.styles,...Gu],m([ut()],mi.prototype,"illustrationData",2),m([u({type:String,reflect:!0})],mi.prototype,"name",2),m([u({type:String,attribute:"aria-label"})],mi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],mi.prototype,"ariaLabelledby",2),m([ut()],mi.prototype,"abortController",2);var Rc=mi;Rc.register(Wu);var WE=Rc;Mc.register(Bu);var jE=Mc;var qE=B`
1335
+ `],Gu=KE;var Yu=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),Ku=async({url:n,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let p=d(),f=new Request(`${n}/${o}.${t}`,{signal:p});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?Yu(f).then(T=>T.text()):ll(s,r).then(T=>T.get(f).then(L=>L||Yu(f.clone()).then(U=>{var q;return U.status<400&&U.headers.has("content-type")?(q=T.set)==null?void 0:q.call(T,f,U.clone()).then(()=>U.text()):U.text()})).catch(L=>{throw new Error(`Error in caching the Illustration ${o}, ${L}`)}))};var Wu=z.constructTagName("illustration"),ju={NAME:void 0};var mi=class extends j{constructor(){super();this.name=ju.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Se.consume({host:this,context:Da.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","illustration"),r.setAttribute("aria-hidden","true"),r}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:r,url:s,cacheName:d,illustrationSet:p,cacheStrategy:f}=this.illustrationProviderContext.value;if(p==="custom-illustrations"&&s&&r&&this.name){let T=()=>{var L;return(L=this.abortController)==null||L.abort(),this.abortController=new AbortController,this.abortController.signal};return Ku({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:T}).then(L=>{let U=this.prepareIllustrationElement(L);this.handleIllustrationLoadedSuccess(U)}).catch(L=>{this.handleIllustrationLoadedFailure(L)})}if(p==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(T=>{this.handleIllustrationLoadedSuccess(T.default())}).catch(T=>{this.handleIllustrationLoadedFailure(T)})}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 r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIllustrationLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(r=>{r.name!=="AbortError"&&this.onerror&&this.onerror(r)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?J.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return _` ${this.illustrationData} `}};mi.styles=[...j.styles,...Gu],m([ut()],mi.prototype,"illustrationData",2),m([u({type:String,reflect:!0})],mi.prototype,"name",2),m([u({type:String,attribute:"aria-label"})],mi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],mi.prototype,"ariaLabelledby",2),m([ut()],mi.prototype,"abortController",2);var Rc=mi;Rc.register(Wu);var WE=Rc;Mc.register(Bu);var jE=Mc;var qE=B`
1336
1336
  :host {
1337
1337
  --mdc-appheader-height: 4rem;
1338
1338
  }
@@ -1376,12 +1376,12 @@
1376
1376
  <slot name="trailing"></slot>
1377
1377
  </div>
1378
1378
  </header>
1379
- `}};kl.styles=[...j.styles,...qu];var Pc=kl;var Xu=z.constructTagName("appheader");Pc.register(Xu);var XE=Pc;var Zu=z.constructTagName("avatar"),Ne={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Dc=99,ZE="user-regular",Bt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Is={TYPE:Ne.PHOTO,SIZE:Bt[32],ICON_NAME:ZE};var Nl=a=>{class o extends a{constructor(){super(...arguments);this.size=Is.SIZE;this.isTyping=!1}}return m([u({type:String})],o.prototype,"src",2),m([u({type:String})],o.prototype,"initials",2),m([u({type:String})],o.prototype,"presence",2),m([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),m([u({type:Number})],o.prototype,"counter",2),m([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var QE=[bt,B`
1379
+ `}};kl.styles=[...j.styles,...qu];var Pc=kl;var Xu=z.constructTagName("appheader");Pc.register(Xu);var XE=Pc;var Zu=z.constructTagName("avatar"),Ne={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Dc=99,ZE="user-regular",Bt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Is={TYPE:Ne.PHOTO,SIZE:Bt[32],ICON_NAME:ZE};var Nl=n=>{class o extends n{constructor(){super(...arguments);this.size=Is.SIZE;this.isTyping=!1}}return m([u({type:String})],o.prototype,"src",2),m([u({type:String})],o.prototype,"initials",2),m([u({type:String})],o.prototype,"presence",2),m([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),m([u({type:Number})],o.prototype,"counter",2),m([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var QE=[bt,B`
1380
1380
  :host {
1381
1381
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
1382
1382
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1383
1383
  --mdc-avatar-loading-indicator-background-color: var(--mds-color-theme-common-text-primary-disabled);
1384
- --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatar-default-foreground-color);
1384
+ --mdc-avatar-loading-indicator-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1385
1385
  --mdc-avatar-loading-overlay-background-color: var(--mds-color-theme-common-overlays-secondary-normal);
1386
1386
  }
1387
1387
  :host([size='124']) {
@@ -1453,6 +1453,7 @@
1453
1453
  position: absolute;
1454
1454
  bottom: 0;
1455
1455
  right: 0;
1456
+ z-index: 1;
1456
1457
  }
1457
1458
 
1458
1459
  :host([size='124'])::part(presence) {
@@ -1532,7 +1533,7 @@
1532
1533
  outline: 0.125rem solid;
1533
1534
  }
1534
1535
  }
1535
- `],Qu=QE;var Ju=z.constructTagName("presence"),_e={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"},Jt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},_s={TYPE:_e.ACTIVE,SIZE:Jt[32]};var tf=a=>({[Bt[124]]:Jt[124],[Bt[88]]:Jt[88],[Bt[72]]:Jt[72],[Bt[64]]:Jt[64],[Bt[48]]:Jt[48],[Bt[32]]:Jt[32],[Bt[24]]:Jt[24]})[a]||Jt[32],ef=a=>({[Bt[124]]:4.75,[Bt[88]]:3,[Bt[72]]:2.5,[Bt[64]]:2.25,[Bt[48]]:1.75,[Bt[32]]:1.25,[Bt[24]]:1})[a]||1.25,rf=a=>({[Bt[124]]:ot.HEADING_XLARGE_MEDIUM,[Bt[88]]:ot.HEADING_LARGE_MEDIUM,[Bt[72]]:ot.HEADING_MIDSIZE_MEDIUM,[Bt[64]]:ot.HEADING_SMALL_MEDIUM,[Bt[48]]:ot.HEADING_SMALL_MEDIUM,[Bt[32]]:ot.BODY_MIDSIZE_MEDIUM,[Bt[24]]:ot.BODY_SMALL_MEDIUM})[a]||ot.BODY_MIDSIZE_MEDIUM;var $n=class extends Nl(Qt(j)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Ne.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?_`
1536
+ `],Qu=QE;var Ju=z.constructTagName("presence"),_e={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"},Jt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},_s={TYPE:_e.ACTIVE,SIZE:Jt[32]};var tf=n=>({[Bt[124]]:Jt[124],[Bt[88]]:Jt[88],[Bt[72]]:Jt[72],[Bt[64]]:Jt[64],[Bt[48]]:Jt[48],[Bt[32]]:Jt[32],[Bt[24]]:Jt[24]})[n]||Jt[32],ef=n=>({[Bt[124]]:4.75,[Bt[88]]:3,[Bt[72]]:2.5,[Bt[64]]:2.25,[Bt[48]]:1.75,[Bt[32]]:1.25,[Bt[24]]:1})[n]||1.25,rf=n=>({[Bt[124]]:ot.HEADING_XLARGE_MEDIUM,[Bt[88]]:ot.HEADING_LARGE_MEDIUM,[Bt[72]]:ot.HEADING_MIDSIZE_MEDIUM,[Bt[64]]:ot.HEADING_SMALL_MEDIUM,[Bt[48]]:ot.HEADING_SMALL_MEDIUM,[Bt[32]]:ot.BODY_MIDSIZE_MEDIUM,[Bt[24]]:ot.BODY_SMALL_MEDIUM})[n]||ot.BODY_MIDSIZE_MEDIUM;var Fa=class extends Nl(Qt(j)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Ne.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?_`
1536
1537
  <mdc-presence part="presence" type="${this.presence}" size="${tf(this.size)}"></mdc-presence>
1537
1538
  `: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 _`
1538
1539
  <img
@@ -1548,7 +1549,7 @@
1548
1549
  `}textTemplate(t){return _` <mdc-text type="${rf(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Dc?`${Dc}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let r="";return t===Ne.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),t===Ne.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?Ne.PHOTO:this.iconName?Ne.ICON:this.initials?Ne.TEXT:this.counter||this.counter===0?Ne.COUNTER:Ne.ICON}getTemplateBasedOnType(t){switch(t){case Ne.PHOTO:return this.photoTemplate();case Ne.TEXT:case Ne.COUNTER:return this.generateTextContent(t);case Ne.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?_`<div part="loading-wrapper"><div part="loader"></div></div>`:W}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?W:t===Ne.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 _`
1549
1550
  ${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
1550
1551
  ${this.getPresenceTemplateBasedOnType(t)}
1551
- `}};$n.styles=[...j.styles,...Qu],m([ut()],$n.prototype,"isPhotoLoaded",2);var Fc=$n;var JE=[bt,B`
1552
+ `}};Fa.styles=[...j.styles,...Qu],m([ut()],Fa.prototype,"isPhotoLoaded",2);var Fc=Fa;var JE=[bt,B`
1552
1553
  :host {
1553
1554
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
1554
1555
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -1642,12 +1643,12 @@
1642
1643
  :host::part(mdc-presence-icon__scheduled) {
1643
1644
  color: var(--mdc-presence-scheduled-background-color);
1644
1645
  }
1645
- `],of=JE;var sf=a=>{switch(a){case _e.AWAY:return"recents-presence-badge-filled";case _e.AWAY_CALLING:return"away-calling-presence-filled";case _e.BUSY:return"busy-presence-bold";case _e.DND:return"dnd-presence-badge-filled";case _e.MEETING:return"camera-filled";case _e.ON_CALL:return"handset-filled";case _e.ON_DEVICE:return"generic-device-video-badge-filled";case _e.ON_MOBILE:return"phone-badge-filled";case _e.PAUSE:return"pause-badge-filled";case _e.PTO:return"pto-presence-filled";case _e.PRESENTING:return"share-screen-badge-filled";case _e.QUIET:return"quiet-hours-presence-filled";case _e.SCHEDULED:return"meetings-presence-badge-filled";case _e.ACTIVE:default:return"active-presence-small-filled"}},nf=a=>({[Jt[124]]:2.25,[Jt[88]]:1.625,[Jt[72]]:1.3125,[Jt[64]]:1.1875,[Jt[48]]:.875,[Jt[32]]:.875,[Jt[24]]:.875})[a]||.875;var No=class extends j{constructor(){super(...arguments);this.type=_s.TYPE;this.size=_s.SIZE;this.currentIconType=_s.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Jt).includes(t)?`${t}`:_s.SIZE.toString())}get icon(){let t=sf(this.type);return t==="active-presence-small-filled"&&(this.type=_s.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 _`
1646
+ `],of=JE;var sf=n=>{switch(n){case _e.AWAY:return"recents-presence-badge-filled";case _e.AWAY_CALLING:return"away-calling-presence-filled";case _e.BUSY:return"busy-presence-bold";case _e.DND:return"dnd-presence-badge-filled";case _e.MEETING:return"camera-filled";case _e.ON_CALL:return"handset-filled";case _e.ON_DEVICE:return"generic-device-video-badge-filled";case _e.ON_MOBILE:return"phone-badge-filled";case _e.PAUSE:return"pause-badge-filled";case _e.PTO:return"pto-presence-filled";case _e.PRESENTING:return"share-screen-badge-filled";case _e.QUIET:return"quiet-hours-presence-filled";case _e.SCHEDULED:return"meetings-presence-badge-filled";case _e.ACTIVE:default:return"active-presence-small-filled"}},af=n=>({[Jt[124]]:2.25,[Jt[88]]:1.625,[Jt[72]]:1.3125,[Jt[64]]:1.1875,[Jt[48]]:.875,[Jt[32]]:.875,[Jt[24]]:.875})[n]||.875;var No=class extends j{constructor(){super(...arguments);this.type=_s.TYPE;this.size=_s.SIZE;this.currentIconType=_s.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Jt).includes(t)?`${t}`:_s.SIZE.toString())}get icon(){let t=sf(this.type);return t==="active-presence-small-filled"&&(this.type=_s.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 _`
1646
1647
  <div part="presence-content">
1647
1648
  <mdc-icon
1648
1649
  part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
1649
1650
  name="${this.icon}"
1650
- size="${nf(this.size)}"
1651
+ size="${af(this.size)}"
1651
1652
  @load="${this.handleOnLoad}"
1652
1653
  @error="${this.handleOnError}"
1653
1654
  ></mdc-icon>
@@ -1657,6 +1658,12 @@
1657
1658
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
1658
1659
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
1659
1660
  --mdc-avatarbutton-overlay-background-color-active: var(--mds-color-theme-avatar-pressed);
1661
+
1662
+ --mdc-avatarbutton-default-background-color: var(--mds-color-theme-avatar-default);
1663
+ --mdc-avatarbutton-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1664
+ --mdc-avatarbutton-loading-indicator-background-color: var(--mds-color-theme-common-text-primary-disabled);
1665
+ --mdc-avatarbutton-loading-indicator-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1666
+ --mdc-avatarbutton-loading-overlay-background-color: var(--mds-color-theme-common-overlays-secondary-normal);
1660
1667
  padding: unset;
1661
1668
  margin: unset;
1662
1669
  outline: none;
@@ -1678,10 +1685,14 @@
1678
1685
  :host(:not([is-typing]):active)::part(overlay) {
1679
1686
  background-color: var(--mdc-avatarbutton-overlay-background-color-active);
1680
1687
  }
1681
- :host::part(presence) {
1682
- z-index: 2;
1688
+ mdc-avatar {
1689
+ --mdc-avatar-default-background-color: var(--mdc-avatarbutton-default-background-color);
1690
+ --mdc-avatar-default-foreground-color: var(--mdc-avatarbutton-default-foreground-color);
1691
+ --mdc-avatar-loading-indicator-background-color: var(--mdc-avatarbutton-loading-indicator-background-color);
1692
+ --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
1693
+ --mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
1683
1694
  }
1684
- `,...St()],af=rT;var zn=class extends Nl(Qt(ae)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=J.BUTTON,this.type=Ue.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Bt).includes(t)?`${t}`:Is.SIZE.toString())}render(){return _`
1695
+ `,...St()],nf=rT;var $a=class extends Nl(Qt(le)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=J.BUTTON,this.type=Ue.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Bt).includes(t)?`${t}`:Is.SIZE.toString())}render(){return _`
1685
1696
  <div part="overlay" aria-hidden="true"></div>
1686
1697
  <mdc-avatar
1687
1698
  exportparts="content, photo, presence, loading-wrapper, loader"
@@ -1693,7 +1704,7 @@
1693
1704
  size="${tt(this.size)}"
1694
1705
  src="${tt(this.src)}"
1695
1706
  ></mdc-avatar>
1696
- `}};zn.styles=[...af],m([u({type:String,attribute:"aria-label"})],zn.prototype,"ariaLabel",2);var zc=zn;var lf=z.constructTagName("avatarbutton");zc.register(lf);var iT=zc;var df=z.constructTagName("badge"),pr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ll={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Vc={PRIMARY:"primary",SECONDARY:"secondary"},ui={TYPE:pr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Vc.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var oT=[bt,B`
1707
+ `}};$a.styles=[...nf],m([u({type:String,attribute:"aria-label"})],$a.prototype,"ariaLabel",2);var zc=$a;var lf=z.constructTagName("avatarbutton");zc.register(lf);var iT=zc;var df=z.constructTagName("badge"),pr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ll={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Vc={PRIMARY:"primary",SECONDARY:"secondary"},ui={TYPE:pr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Vc.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var oT=[bt,B`
1697
1708
  :host {
1698
1709
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1699
1710
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -1786,7 +1797,7 @@
1786
1797
  >
1787
1798
  ${this.getCounterText(this.maxCounter,this.counter)}
1788
1799
  </mdc-text>
1789
- `}setRoleByAriaLabel(){this.ariaLabel?this.role=J.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Vc).includes(this.variant)&&(this.variant=ui.VARIANT);let{iconName:t,type:r}=this;switch(r){case pr.ICON:return this.getBadgeIcon(t||"");case pr.COUNTER:return this.getBadgeCounterText();case pr.SUCCESS:return this.getBadgeIcon(Ll.SUCCESS_ICON_NAME);case pr.WARNING:return this.getBadgeIcon(Ll.WARNING_ICON_NAME);case pr.ERROR:return this.getBadgeIcon(Ll.ERROR_ICON_NAME);case pr.DOT:default:return this.type=pr.DOT,this.getBadgeDot()}}};Gr.styles=[...j.styles,...cf],m([u({type:String,reflect:!0})],Gr.prototype,"type",2),m([u({type:String,reflect:!0})],Gr.prototype,"variant",2),m([u({type:Number})],Gr.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],Gr.prototype,"maxCounter",2),m([u({type:Boolean})],Gr.prototype,"overlay",2),m([u({type:String,attribute:"aria-label"})],Gr.prototype,"ariaLabel",2);var Bc=Gr;Bc.register(df);var sT=Bc;var nT=B`
1800
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role=J.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Vc).includes(this.variant)&&(this.variant=ui.VARIANT);let{iconName:t,type:r}=this;switch(r){case pr.ICON:return this.getBadgeIcon(t||"");case pr.COUNTER:return this.getBadgeCounterText();case pr.SUCCESS:return this.getBadgeIcon(Ll.SUCCESS_ICON_NAME);case pr.WARNING:return this.getBadgeIcon(Ll.WARNING_ICON_NAME);case pr.ERROR:return this.getBadgeIcon(Ll.ERROR_ICON_NAME);case pr.DOT:default:return this.type=pr.DOT,this.getBadgeDot()}}};Gr.styles=[...j.styles,...cf],m([u({type:String,reflect:!0})],Gr.prototype,"type",2),m([u({type:String,reflect:!0})],Gr.prototype,"variant",2),m([u({type:Number})],Gr.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],Gr.prototype,"maxCounter",2),m([u({type:Boolean})],Gr.prototype,"overlay",2),m([u({type:String,attribute:"aria-label"})],Gr.prototype,"ariaLabel",2);var Bc=Gr;Bc.register(df);var sT=Bc;var aT=B`
1790
1801
  :host {
1791
1802
  display: block;
1792
1803
  height: 100%;
@@ -1800,7 +1811,7 @@
1800
1811
  width: 100%;
1801
1812
  object-fit: contain;
1802
1813
  }
1803
- `,hf=[nT];var Lo=class extends j{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,r){let p=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return p&&Object.entries(r).forEach(([f,T])=>{p.setAttribute(f,T)}),p||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([r,s])=>{o.setAttribute(r,s)}),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 _` ${this.brandVisualData} `}};Lo.styles=[...j.styles,...hf],m([ut()],Lo.prototype,"brandVisualData",2),m([u({type:String,reflect:!0})],Lo.prototype,"name",2),m([u({type:String,reflect:!0,attribute:"alt-text"})],Lo.prototype,"altText",2);var Uc=Lo;var pf=z.constructTagName("brandvisual");Uc.register(pf);var aT=Uc;var lT=B`
1814
+ `,hf=[aT];var Lo=class extends j{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,r){let p=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return p&&Object.entries(r).forEach(([f,T])=>{p.setAttribute(f,T)}),p||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([r,s])=>{o.setAttribute(r,s)}),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 _` ${this.brandVisualData} `}};Lo.styles=[...j.styles,...hf],m([ut()],Lo.prototype,"brandVisualData",2),m([u({type:String,reflect:!0})],Lo.prototype,"name",2),m([u({type:String,reflect:!0,attribute:"alt-text"})],Lo.prototype,"altText",2);var Uc=Lo;var pf=z.constructTagName("brandvisual");Uc.register(pf);var nT=Uc;var lT=B`
1804
1815
  :host {
1805
1816
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
1806
1817
  --mdc-bullet-size: 0.25rem;
@@ -1820,7 +1831,7 @@
1820
1831
  :host([size='large']) {
1821
1832
  --mdc-bullet-size: 1rem;
1822
1833
  }
1823
- `,mf=[lT];var uf=z.constructTagName("bullet"),ff={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Vn=class extends j{constructor(){super(...arguments);this.size=ff.SMALL}};Vn.styles=[...j.styles,...mf],m([u({type:String,reflect:!0})],Vn.prototype,"size",2);var Hc=Vn;Hc.register(uf);var dT=Hc;var vf=z.constructTagName("buttongroup"),cT={40:40,32:32,28:28,24:24},hT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},pT={PRIMARY:"primary",SECONDARY:"secondary"},Ol={SIZE:cT[28],VARIANT:pT.PRIMARY,ORIENTATION:hT.HORIZONTAL};var mT=B`
1834
+ `,mf=[lT];var uf=z.constructTagName("bullet"),ff={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var za=class extends j{constructor(){super(...arguments);this.size=ff.SMALL}};za.styles=[...j.styles,...mf],m([u({type:String,reflect:!0})],za.prototype,"size",2);var Hc=za;Hc.register(uf);var dT=Hc;var vf=z.constructTagName("buttongroup"),cT={40:40,32:32,28:28,24:24},hT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},pT={PRIMARY:"primary",SECONDARY:"secondary"},Ol={SIZE:cT[28],VARIANT:pT.PRIMARY,ORIENTATION:hT.HORIZONTAL};var mT=B`
1824
1835
  :host {
1825
1836
  --mdc-buttongroup-border-radius: 1.25rem;
1826
1837
  --mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1920,7 +1931,7 @@
1920
1931
  :host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
1921
1932
  width: 2.5rem;
1922
1933
  }
1923
- `,gf=[bt,mT];var fi=class extends j{constructor(){super(...arguments);this.orientation=Ol.ORIENTATION;this.variant=Ol.VARIANT;this.size=Ol.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 _`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};fi.styles=[...j.styles,...gf],m([u({type:String,reflect:!0})],fi.prototype,"orientation",2),m([u({type:String,reflect:!0})],fi.prototype,"variant",2),m([u({type:Number,reflect:!0})],fi.prototype,"size",2),m([u({type:Boolean,reflect:!0})],fi.prototype,"compact",2),m([Dt({selector:"mdc-button"})],fi.prototype,"buttons",2);var Gc=fi;Gc.register(vf);var uT=Gc;var Ht=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return m([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var bf=z.constructTagName("linksimple"),Cs={INLINE:!1,INVERTED:!1};var fT=[bt,B`
1934
+ `,gf=[bt,mT];var fi=class extends j{constructor(){super(...arguments);this.orientation=Ol.ORIENTATION;this.variant=Ol.VARIANT;this.size=Ol.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 _`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};fi.styles=[...j.styles,...gf],m([u({type:String,reflect:!0})],fi.prototype,"orientation",2),m([u({type:String,reflect:!0})],fi.prototype,"variant",2),m([u({type:Number,reflect:!0})],fi.prototype,"size",2),m([u({type:Boolean,reflect:!0})],fi.prototype,"compact",2),m([Dt({selector:"mdc-button"})],fi.prototype,"buttons",2);var Gc=fi;Gc.register(vf);var uT=Gc;var Ht=n=>{class o extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return m([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var bf=z.constructTagName("linksimple"),Cs={INLINE:!1,INVERTED:!1};var fT=[bt,B`
1924
1935
  :host {
1925
1936
  --mdc-link-border-radius: 0.25rem;
1926
1937
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -2074,21 +2085,21 @@
2074
2085
  ${this.prefixIcon?_`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
2075
2086
  <slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
2076
2087
  ${this.postfixIcon?_`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
2077
- `}};ws.styles=[..._o.styles,...Ef],m([u({type:Number,reflect:!0})],ws.prototype,"size",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ws.prototype,"softDisabled",2);var Yc=ws;var Tf=z.constructTagName("buttonlink");Yc.register(Tf);var gT=Yc;var Ml=a=>{class o extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=le.VARIANT;this.orientation=le.ORIENTATION;this.titleTagName=le.TAGNAME;this.subtitleTagName=le.TAGNAME}renderImage(){return this.imageSrc?_`<div part="image-wrapper">
2088
+ `}};ws.styles=[..._o.styles,...Ef],m([u({type:Number,reflect:!0})],ws.prototype,"size",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ws.prototype,"softDisabled",2);var Yc=ws;var Tf=z.constructTagName("buttonlink");Yc.register(Tf);var gT=Yc;var Ml=n=>{class o extends n{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=de.VARIANT;this.orientation=de.ORIENTATION;this.titleTagName=de.TAGNAME;this.subtitleTagName=de.TAGNAME}renderImage(){return this.imageSrc?_`<div part="image-wrapper">
2078
2089
  <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
2079
2090
  </div>`:W}renderIcon(){return this.iconName?_`<mdc-icon
2080
2091
  part="icon"
2081
- size="${le.ICON_SIZE}"
2082
- length-unit="${le.ICON_LENGTH_UNIT}"
2092
+ size="${de.ICON_SIZE}"
2093
+ length-unit="${de.ICON_LENGTH_UNIT}"
2083
2094
  name="${this.iconName}"
2084
2095
  ></mdc-icon>`:W}renderTitle(){return _`<div part="title-container">
2085
2096
  <slot name="title">
2086
- ${this.cardTitle?_`<mdc-text part="title" type="${le.TITLE_TYPE}" tagname="${this.titleTagName}"
2097
+ ${this.cardTitle?_`<mdc-text part="title" type="${de.TITLE_TYPE}" tagname="${this.titleTagName}"
2087
2098
  >${this.cardTitle}</mdc-text
2088
2099
  >`:W}
2089
2100
  </slot>
2090
2101
  <slot name="subtitle">
2091
- ${this.subtitle?_`<mdc-text part="subtitle" type="${le.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
2102
+ ${this.subtitle?_`<mdc-text part="subtitle" type="${de.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
2092
2103
  >${this.subtitle}</mdc-text
2093
2104
  >`:W}
2094
2105
  </slot>
@@ -2201,7 +2212,7 @@
2201
2212
  mdc-text::part(text) {
2202
2213
  margin: 0;
2203
2214
  }
2204
- `,xf=[bt,bT];var Bn=class extends Ml(Ts(j)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(r=>{r.matches(le.BUTTON)&&(r.setAttribute("variant",$t.TERTIARY),r.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return _`<div part="header">
2215
+ `,xf=[bt,bT];var Va=class extends Ml(Ts(j)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(r=>{r.matches(de.BUTTON)&&(r.setAttribute("variant",$t.TERTIARY),r.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return _`<div part="header">
2205
2216
  ${this.renderIcon()} ${this.renderTitle()}
2206
2217
  <div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
2207
2218
  </div>`}render(){return _`
@@ -2215,7 +2226,7 @@
2215
2226
  </div>
2216
2227
  ${this.renderFooter()}
2217
2228
  </div>
2218
- `}};Bn.styles=[...j.styles,...xf],m([Dt({slot:"icon-button"})],Bn.prototype,"iconButtons",2);var Cr=Bn;Cr.register(Pu);var yT=Cr;var ET=B`
2229
+ `}};Va.styles=[...j.styles,...xf],m([Dt({slot:"icon-button"})],Va.prototype,"iconButtons",2);var Cr=Va;Cr.register(Pu);var yT=Cr;var ET=B`
2219
2230
  :host {
2220
2231
  cursor: pointer;
2221
2232
  user-select: none;
@@ -2237,7 +2248,7 @@
2237
2248
  :host([disabled])::part(image) {
2238
2249
  opacity: 0.5;
2239
2250
  }
2240
- `,Af=[ET,...St()];var Rl=class extends Ml(ae){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return _`
2251
+ `,Af=[ET,...St()];var Rl=class extends Ml(le){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return _`
2241
2252
  <slot name="image"> ${this.renderImage()} </slot>
2242
2253
  <div part="body">
2243
2254
  <div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
@@ -2397,7 +2408,7 @@
2397
2408
  --mdc-staticcheckbox-icon-color: GrayText;
2398
2409
  }
2399
2410
  }
2400
- `],Cf=AT;var wf=z.constructTagName("popover"),Nt={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"},He={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Oo={TONAL:"tonal",CONTRAST:"contrast"},qc={ABSOLUTE:"absolute",FIXED:"fixed"},ST={VIEWPORT:"viewport",DOCUMENT:"document"},At={PLACEMENT:Nt.BOTTOM,TRIGGER:He.CLICK,COLOR:Oo.TONAL,STRATEGY:qc.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:ST.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:J.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},Kr={OPEN:"open",HOVER:"hover",CLOSE:"close"};var kf=z.constructTagName("formfieldwrapper"),zt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ot={VALIDATION:zt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Nt.TOP,TOGGLETIP_STRATEGY:qc.ABSOLUTE},Un={TAGNAME:pt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Nf=z.constructTagName("checkbox"),Fl={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Lf={ERROR:zt.ERROR,DEFAULT:zt.DEFAULT};var Of=z.constructTagName("staticcheckbox");var Ki=class extends Ut(j){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?_`
2411
+ `],Cf=AT;var wf=z.constructTagName("popover"),Nt={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"},He={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Oo={TONAL:"tonal",CONTRAST:"contrast"},qc={ABSOLUTE:"absolute",FIXED:"fixed"},ST={VIEWPORT:"viewport",DOCUMENT:"document"},At={PLACEMENT:Nt.BOTTOM,TRIGGER:He.CLICK,COLOR:Oo.TONAL,STRATEGY:qc.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:ST.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:J.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},Kr={OPEN:"open",HOVER:"hover",CLOSE:"close"};var kf=z.constructTagName("formfieldwrapper"),zt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ot={VALIDATION:zt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Nt.TOP,TOGGLETIP_STRATEGY:qc.ABSOLUTE},Ba={TAGNAME:pt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Nf=z.constructTagName("checkbox"),Fl={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Lf={ERROR:zt.ERROR,DEFAULT:zt.DEFAULT};var Of=z.constructTagName("staticcheckbox");var Ki=class extends Ut(j){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?_`
2401
2412
  <mdc-icon
2402
2413
  part="checkbox-icon"
2403
2414
  name="${this.indeterminate?Fl.INDETERMINATE:Fl.CHECKED}"
@@ -2567,7 +2578,7 @@
2567
2578
  }
2568
2579
  }
2569
2580
  `],Rf=wT;var Mo=class extends Ut(j){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return _` <slot></slot>
2570
- <span part="radio-icon" class="radio-icon"></span>`}};Mo.styles=[...j.styles,...Rf],m([u({type:Boolean,reflect:!0})],Mo.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Mo.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Mo.prototype,"softDisabled",2);var Qc=Mo;var Pf=z.constructTagName("staticradio");Qc.register(Pf);var kT=Qc;Zc.register($l);var NT=Zc;var Wr=Math.min,Oe=Math.max,Gn=Math.round,Yn=Math.floor,wr=a=>({x:a,y:a}),LT={left:"right",right:"left",bottom:"top",top:"bottom"},OT={start:"end",end:"start"};function Vl(a,o,t){return Oe(a,Wr(o,t))}function Ro(a,o){return typeof a=="function"?a(o):a}function vi(a){return a.split("-")[0]}function Po(a){return a.split("-")[1]}function Jc(a){return a==="x"?"y":"x"}function Bl(a){return a==="y"?"height":"width"}var MT=new Set(["top","bottom"]);function jr(a){return MT.has(vi(a))?"y":"x"}function Ul(a){return Jc(jr(a))}function $f(a,o,t){t===void 0&&(t=!1);let r=Po(a),s=Ul(a),d=Bl(s),p=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(p=Hn(p)),[p,Hn(p)]}function zf(a){let o=Hn(a);return[zl(a),o,zl(o)]}function zl(a){return a.replace(/start|end/g,o=>OT[o])}var Df=["left","right"],Ff=["right","left"],RT=["top","bottom"],PT=["bottom","top"];function DT(a,o,t){switch(a){case"top":case"bottom":return t?o?Ff:Df:o?Df:Ff;case"left":case"right":return o?RT:PT;default:return[]}}function Vf(a,o,t,r){let s=Po(a),d=DT(vi(a),t==="start",r);return s&&(d=d.map(p=>p+"-"+s),o&&(d=d.concat(d.map(zl)))),d}function Hn(a){return a.replace(/left|right|bottom|top/g,o=>LT[o])}function FT(a){return{top:0,right:0,bottom:0,left:0,...a}}function th(a){return typeof a!="number"?FT(a):{top:a,right:a,bottom:a,left:a}}function Do(a){let{x:o,y:t,width:r,height:s}=a;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function Bf(a,o,t){let{reference:r,floating:s}=a,d=jr(o),p=Ul(o),f=Bl(p),T=vi(o),L=d==="y",U=r.x+r.width/2-s.width/2,q=r.y+r.height/2-s.height/2,Q=r[f]/2-s[f]/2,X;switch(T){case"top":X={x:U,y:r.y-s.height};break;case"bottom":X={x:U,y:r.y+r.height};break;case"right":X={x:r.x+r.width,y:q};break;case"left":X={x:r.x-s.width,y:q};break;default:X={x:r.x,y:r.y}}switch(Po(o)){case"start":X[p]-=Q*(t&&L?-1:1);break;case"end":X[p]+=Q*(t&&L?-1:1);break}return X}var Uf=async(a,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:p}=t,f=d.filter(Boolean),T=await(p.isRTL==null?void 0:p.isRTL(o)),L=await p.getElementRects({reference:a,floating:o,strategy:s}),{x:U,y:q}=Bf(L,r,T),Q=r,X={},it=0;for(let dt=0;dt<f.length;dt++){let{name:lt,fn:gt}=f[dt],{x:It,y:Ct,data:Kt,reset:Vt}=await gt({x:U,y:q,initialPlacement:r,placement:Q,strategy:s,middlewareData:X,rects:L,platform:p,elements:{reference:a,floating:o}});U=It!=null?It:U,q=Ct!=null?Ct:q,X={...X,[lt]:{...X[lt],...Kt}},Vt&&it<=50&&(it++,typeof Vt=="object"&&(Vt.placement&&(Q=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await p.getElementRects({reference:a,floating:o,strategy:s}):Vt.rects),{x:U,y:q}=Bf(L,Q,T)),dt=-1)}return{x:U,y:q,placement:Q,strategy:s,middlewareData:X}};async function Hl(a,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:p,elements:f,strategy:T}=a,{boundary:L="clippingAncestors",rootBoundary:U="viewport",elementContext:q="floating",altBoundary:Q=!1,padding:X=0}=Ro(o,a),it=th(X),lt=f[Q?q==="floating"?"reference":"floating":q],gt=Do(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(lt)))==null||t?lt:lt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(f.floating)),boundary:L,rootBoundary:U,strategy:T})),It=q==="floating"?{x:r,y:s,width:p.floating.width,height:p.floating.height}:p.reference,Ct=await(d.getOffsetParent==null?void 0:d.getOffsetParent(f.floating)),Kt=await(d.isElement==null?void 0:d.isElement(Ct))?await(d.getScale==null?void 0:d.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Vt=Do(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:Ct,strategy:T}):It);return{top:(gt.top-Vt.top+it.top)/Kt.y,bottom:(Vt.bottom-gt.bottom+it.bottom)/Kt.y,left:(gt.left-Vt.left+it.left)/Kt.x,right:(Vt.right-gt.right+it.right)/Kt.x}}var Hf=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:p,elements:f,middlewareData:T}=o,{element:L,padding:U=0}=Ro(a,o)||{};if(L==null)return{};let q=th(U),Q={x:t,y:r},X=Ul(s),it=Bl(X),dt=await p.getDimensions(L),lt=X==="y",gt=lt?"top":"left",It=lt?"bottom":"right",Ct=lt?"clientHeight":"clientWidth",Kt=d.reference[it]+d.reference[X]-Q[X]-d.floating[it],Vt=Q[X]-d.reference[X],Wt=await(p.getOffsetParent==null?void 0:p.getOffsetParent(L)),te=Wt?Wt[Ct]:0;(!te||!await(p.isElement==null?void 0:p.isElement(Wt)))&&(te=f.floating[Ct]||d.floating[it]);let pe=Kt/2-Vt/2,Er=te/2-dt[it]/2-1,De=Wr(q[gt],Er),ir=Wr(q[It],Er),Tr=De,xr=te-dt[it]-ir,wt=te/2-dt[it]/2+pe,ge=Vl(Tr,wt,xr),or=!T.arrow&&Po(s)!=null&&wt!==ge&&d.reference[it]/2-(wt<Tr?De:ir)-dt[it]/2<0,sr=or?wt<Tr?wt-Tr:wt-xr:0;return{[X]:Q[X]+sr,data:{[X]:ge,centerOffset:wt-ge-sr,...or&&{alignmentOffset:sr}},reset:or}}});var Gf=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:p,initialPlacement:f,platform:T,elements:L}=o,{mainAxis:U=!0,crossAxis:q=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:dt=!0,...lt}=Ro(a,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=vi(s),It=jr(f),Ct=vi(f)===f,Kt=await(T.isRTL==null?void 0:T.isRTL(L.floating)),Vt=Q||(Ct||!dt?[Hn(f)]:zf(f)),Wt=it!=="none";!Q&&Wt&&Vt.push(...Vf(f,dt,it,Kt));let te=[f,...Vt],pe=await Hl(o,lt),Er=[],De=((r=d.flip)==null?void 0:r.overflows)||[];if(U&&Er.push(pe[gt]),q){let wt=$f(s,p,Kt);Er.push(pe[wt[0]],pe[wt[1]])}if(De=[...De,{placement:s,overflows:Er}],!Er.every(wt=>wt<=0)){var ir,Tr;let wt=(((ir=d.flip)==null?void 0:ir.index)||0)+1,ge=te[wt];if(ge&&(!(q==="alignment"?It!==jr(ge):!1)||De.every(nr=>nr.overflows[0]>0&&jr(nr.placement)===It)))return{data:{index:wt,overflows:De},reset:{placement:ge}};let or=(Tr=De.filter(sr=>sr.overflows[0]<=0).sort((sr,nr)=>sr.overflows[1]-nr.overflows[1])[0])==null?void 0:Tr.placement;if(!or)switch(X){case"bestFit":{var xr;let sr=(xr=De.filter(nr=>{if(Wt){let ar=jr(nr.placement);return ar===It||ar==="y"}return!0}).map(nr=>[nr.placement,nr.overflows.filter(ar=>ar>0).reduce((ar,Sa)=>ar+Sa,0)]).sort((nr,ar)=>nr[1]-ar[1])[0])==null?void 0:xr[0];sr&&(or=sr);break}case"initialPlacement":or=f;break}if(s!==or)return{reset:{placement:or}}}return{}}}};var $T=new Set(["left","top"]);async function zT(a,o){let{placement:t,platform:r,elements:s}=a,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),p=vi(t),f=Po(t),T=jr(t)==="y",L=$T.has(p)?-1:1,U=d&&T?-1:1,q=Ro(o,a),{mainAxis:Q,crossAxis:X,alignmentAxis:it}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return f&&typeof it=="number"&&(X=f==="end"?it*-1:it),T?{x:X*U,y:Q*L}:{x:Q*L,y:X*U}}var Yf=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,r;let{x:s,y:d,placement:p,middlewareData:f}=o,T=await zT(o,a);return p===((t=f.offset)==null?void 0:t.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:s+T.x,y:d+T.y,data:{...T,placement:p}}}}},Kf=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:p=!1,limiter:f={fn:lt=>{let{x:gt,y:It}=lt;return{x:gt,y:It}}},...T}=Ro(a,o),L={x:t,y:r},U=await Hl(o,T),q=jr(vi(s)),Q=Jc(q),X=L[Q],it=L[q];if(d){let lt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",It=X+U[lt],Ct=X-U[gt];X=Vl(It,X,Ct)}if(p){let lt=q==="y"?"top":"left",gt=q==="y"?"bottom":"right",It=it+U[lt],Ct=it-U[gt];it=Vl(It,it,Ct)}let dt=f.fn({...o,[Q]:X,[q]:it});return{...dt,data:{x:dt.x-t,y:dt.y-r,enabled:{[Q]:d,[q]:p}}}}}};var Wf=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,r;let{placement:s,rects:d,platform:p,elements:f}=o,{apply:T=()=>{},...L}=Ro(a,o),U=await Hl(o,L),q=vi(s),Q=Po(s),X=jr(s)==="y",{width:it,height:dt}=d.floating,lt,gt;q==="top"||q==="bottom"?(lt=q,gt=Q===(await(p.isRTL==null?void 0:p.isRTL(f.floating))?"start":"end")?"left":"right"):(gt=q,lt=Q==="end"?"top":"bottom");let It=dt-U.top-U.bottom,Ct=it-U.left-U.right,Kt=Wr(dt-U[lt],It),Vt=Wr(it-U[gt],Ct),Wt=!o.middlewareData.shift,te=Kt,pe=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(pe=Ct),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(te=It),Wt&&!Q){let De=Oe(U.left,0),ir=Oe(U.right,0),Tr=Oe(U.top,0),xr=Oe(U.bottom,0);X?pe=it-2*(De!==0||ir!==0?De+ir:Oe(U.left,U.right)):te=dt-2*(Tr!==0||xr!==0?Tr+xr:Oe(U.top,U.bottom))}await T({...o,availableWidth:pe,availableHeight:te});let Er=await p.getDimensions(f.floating);return it!==Er.width||dt!==Er.height?{reset:{rects:!0}}:{}}}};function Gl(){return typeof window<"u"}function Fo(a){return qf(a)?(a.nodeName||"").toLowerCase():"#document"}function Ge(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function kr(a){var o;return(o=(qf(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function qf(a){return Gl()?a instanceof Node||a instanceof Ge(a).Node:!1}function mr(a){return Gl()?a instanceof Element||a instanceof Ge(a).Element:!1}function Nr(a){return Gl()?a instanceof HTMLElement||a instanceof Ge(a).HTMLElement:!1}function jf(a){return!Gl()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Ge(a).ShadowRoot}var VT=new Set(["inline","contents"]);function Os(a){let{overflow:o,overflowX:t,overflowY:r,display:s}=ur(a);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!VT.has(s)}var BT=new Set(["table","td","th"]);function Xf(a){return BT.has(Fo(a))}var UT=[":popover-open",":modal"];function Kn(a){return UT.some(o=>{try{return a.matches(o)}catch{return!1}})}var HT=["transform","translate","scale","rotate","perspective"],GT=["transform","translate","scale","rotate","perspective","filter"],YT=["paint","layout","strict","content"];function Yl(a){let o=Kl(),t=mr(a)?ur(a):a;return HT.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||GT.some(r=>(t.willChange||"").includes(r))||YT.some(r=>(t.contain||"").includes(r))}function Zf(a){let o=gi(a);for(;Nr(o)&&!$o(o);){if(Yl(o))return o;if(Kn(o))return null;o=gi(o)}return null}function Kl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var KT=new Set(["html","body","#document"]);function $o(a){return KT.has(Fo(a))}function ur(a){return Ge(a).getComputedStyle(a)}function Wn(a){return mr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function gi(a){if(Fo(a)==="html")return a;let o=a.assignedSlot||a.parentNode||jf(a)&&a.host||kr(a);return jf(o)?o.host:o}function Qf(a){let o=gi(a);return $o(o)?a.ownerDocument?a.ownerDocument.body:a.body:Nr(o)&&Os(o)?o:Qf(o)}function Ls(a,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=Qf(a),d=s===((r=a.ownerDocument)==null?void 0:r.body),p=Ge(s);if(d){let f=Wl(p);return o.concat(p,p.visualViewport||[],Os(s)?s:[],f&&t?Ls(f):[])}return o.concat(s,Ls(s,[],t))}function Wl(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function ev(a){let o=ur(a),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=Nr(a),d=s?a.offsetWidth:t,p=s?a.offsetHeight:r,f=Gn(t)!==d||Gn(r)!==p;return f&&(t=d,r=p),{width:t,height:r,$:f}}function rh(a){return mr(a)?a:a.contextElement}function Ms(a){let o=rh(a);if(!Nr(o))return wr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=ev(o),p=(d?Gn(t.width):t.width)/r,f=(d?Gn(t.height):t.height)/s;return(!p||!Number.isFinite(p))&&(p=1),(!f||!Number.isFinite(f))&&(f=1),{x:p,y:f}}var WT=wr(0);function rv(a){let o=Ge(a);return!Kl()||!o.visualViewport?WT:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function jT(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==Ge(a)?!1:o}function zo(a,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=a.getBoundingClientRect(),d=rh(a),p=wr(1);o&&(r?mr(r)&&(p=Ms(r)):p=Ms(a));let f=jT(d,t,r)?rv(d):wr(0),T=(s.left+f.x)/p.x,L=(s.top+f.y)/p.y,U=s.width/p.x,q=s.height/p.y;if(d){let Q=Ge(d),X=r&&mr(r)?Ge(r):r,it=Q,dt=Wl(it);for(;dt&&r&&X!==it;){let lt=Ms(dt),gt=dt.getBoundingClientRect(),It=ur(dt),Ct=gt.left+(dt.clientLeft+parseFloat(It.paddingLeft))*lt.x,Kt=gt.top+(dt.clientTop+parseFloat(It.paddingTop))*lt.y;T*=lt.x,L*=lt.y,U*=lt.x,q*=lt.y,T+=Ct,L+=Kt,it=Ge(dt),dt=Wl(it)}}return Do({width:U,height:q,x:T,y:L})}function ih(a,o){let t=Wn(a).scrollLeft;return o?o.left+t:zo(kr(a)).left+t}function iv(a,o,t){t===void 0&&(t=!1);let r=a.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:ih(a,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function qT(a){let{elements:o,rect:t,offsetParent:r,strategy:s}=a,d=s==="fixed",p=kr(r),f=o?Kn(o.floating):!1;if(r===p||f&&d)return t;let T={scrollLeft:0,scrollTop:0},L=wr(1),U=wr(0),q=Nr(r);if((q||!q&&!d)&&((Fo(r)!=="body"||Os(p))&&(T=Wn(r)),Nr(r))){let X=zo(r);L=Ms(r),U.x=X.x+r.clientLeft,U.y=X.y+r.clientTop}let Q=p&&!q&&!d?iv(p,T,!0):wr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-T.scrollLeft*L.x+U.x+Q.x,y:t.y*L.y-T.scrollTop*L.y+U.y+Q.y}}function XT(a){return Array.from(a.getClientRects())}function ZT(a){let o=kr(a),t=Wn(a),r=a.ownerDocument.body,s=Oe(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=Oe(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),p=-t.scrollLeft+ih(a),f=-t.scrollTop;return ur(r).direction==="rtl"&&(p+=Oe(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:p,y:f}}function QT(a,o){let t=Ge(a),r=kr(a),s=t.visualViewport,d=r.clientWidth,p=r.clientHeight,f=0,T=0;if(s){d=s.width,p=s.height;let L=Kl();(!L||L&&o==="fixed")&&(f=s.offsetLeft,T=s.offsetTop)}return{width:d,height:p,x:f,y:T}}var JT=new Set(["absolute","fixed"]);function tx(a,o){let t=zo(a,!0,o==="fixed"),r=t.top+a.clientTop,s=t.left+a.clientLeft,d=Nr(a)?Ms(a):wr(1),p=a.clientWidth*d.x,f=a.clientHeight*d.y,T=s*d.x,L=r*d.y;return{width:p,height:f,x:T,y:L}}function Jf(a,o,t){let r;if(o==="viewport")r=QT(a,t);else if(o==="document")r=ZT(kr(a));else if(mr(o))r=tx(o,t);else{let s=rv(a);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return Do(r)}function ov(a,o){let t=gi(a);return t===o||!mr(t)||$o(t)?!1:ur(t).position==="fixed"||ov(t,o)}function ex(a,o){let t=o.get(a);if(t)return t;let r=Ls(a,[],!1).filter(f=>mr(f)&&Fo(f)!=="body"),s=null,d=ur(a).position==="fixed",p=d?gi(a):a;for(;mr(p)&&!$o(p);){let f=ur(p),T=Yl(p);!T&&f.position==="fixed"&&(s=null),(d?!T&&!s:!T&&f.position==="static"&&!!s&&JT.has(s.position)||Os(p)&&!T&&ov(a,p))?r=r.filter(U=>U!==p):s=f,p=gi(p)}return o.set(a,r),r}function rx(a){let{element:o,boundary:t,rootBoundary:r,strategy:s}=a,p=[...t==="clippingAncestors"?Kn(o)?[]:ex(o,this._c):[].concat(t),r],f=p[0],T=p.reduce((L,U)=>{let q=Jf(o,U,s);return L.top=Oe(q.top,L.top),L.right=Wr(q.right,L.right),L.bottom=Wr(q.bottom,L.bottom),L.left=Oe(q.left,L.left),L},Jf(o,f,s));return{width:T.right-T.left,height:T.bottom-T.top,x:T.left,y:T.top}}function ix(a){let{width:o,height:t}=ev(a);return{width:o,height:t}}function ox(a,o,t){let r=Nr(o),s=kr(o),d=t==="fixed",p=zo(a,!0,d,o),f={scrollLeft:0,scrollTop:0},T=wr(0);function L(){T.x=ih(s)}if(r||!r&&!d)if((Fo(o)!=="body"||Os(s))&&(f=Wn(o)),r){let X=zo(o,!0,d,o);T.x=X.x+o.clientLeft,T.y=X.y+o.clientTop}else s&&L();d&&!r&&s&&L();let U=s&&!r&&!d?iv(s,f):wr(0),q=p.left+f.scrollLeft-T.x-U.x,Q=p.top+f.scrollTop-T.y-U.y;return{x:q,y:Q,width:p.width,height:p.height}}function eh(a){return ur(a).position==="static"}function tv(a,o){if(!Nr(a)||ur(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return kr(a)===t&&(t=t.ownerDocument.body),t}function sv(a,o){let t=Ge(a);if(Kn(a))return t;if(!Nr(a)){let s=gi(a);for(;s&&!$o(s);){if(mr(s)&&!eh(s))return s;s=gi(s)}return t}let r=tv(a,o);for(;r&&Xf(r)&&eh(r);)r=tv(r,o);return r&&$o(r)&&eh(r)&&!Yl(r)?t:r||Zf(a)||t}var sx=async function(a){let o=this.getOffsetParent||sv,t=this.getDimensions,r=await t(a.floating);return{reference:ox(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nx(a){return ur(a).direction==="rtl"}var ax={convertOffsetParentRelativeRectToViewportRelativeRect:qT,getDocumentElement:kr,getClippingRect:rx,getOffsetParent:sv,getElementRects:sx,getClientRects:XT,getDimensions:ix,getScale:Ms,isElement:mr,isRTL:nx};function nv(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function lx(a,o){let t=null,r,s=kr(a);function d(){var f;clearTimeout(r),(f=t)==null||f.disconnect(),t=null}function p(f,T){f===void 0&&(f=!1),T===void 0&&(T=1),d();let L=a.getBoundingClientRect(),{left:U,top:q,width:Q,height:X}=L;if(f||o(),!Q||!X)return;let it=Yn(q),dt=Yn(s.clientWidth-(U+Q)),lt=Yn(s.clientHeight-(q+X)),gt=Yn(U),Ct={rootMargin:-it+"px "+-dt+"px "+-lt+"px "+-gt+"px",threshold:Oe(0,Wr(1,T))||1},Kt=!0;function Vt(Wt){let te=Wt[0].intersectionRatio;if(te!==T){if(!Kt)return p();te?p(!1,te):r=setTimeout(()=>{p(!1,1e-7)},1e3)}te===1&&!nv(L,a.getBoundingClientRect())&&p(),Kt=!1}try{t=new IntersectionObserver(Vt,{...Ct,root:s.ownerDocument})}catch{t=new IntersectionObserver(Vt,Ct)}t.observe(a)}return p(!0),d}function av(a,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:T=!1}=r,L=rh(a),U=s||d?[...L?Ls(L):[],...Ls(o)]:[];U.forEach(gt=>{s&&gt.addEventListener("scroll",t,{passive:!0}),d&&gt.addEventListener("resize",t)});let q=L&&f?lx(L,t):null,Q=-1,X=null;p&&(X=new ResizeObserver(gt=>{let[It]=gt;It&&It.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),L&&!T&&X.observe(L),X.observe(o));let it,dt=T?zo(a):null;T&&lt();function lt(){let gt=zo(a);dt&&!nv(dt,gt)&&t(),dt=gt,it=requestAnimationFrame(lt)}return t(),()=>{var gt;U.forEach(It=>{s&&It.removeEventListener("scroll",t),d&&It.removeEventListener("resize",t)}),q==null||q(),(gt=X)==null||gt.disconnect(),X=null,T&&cancelAnimationFrame(it)}}var lv=Yf;var dv=Kf,cv=Gf,hv=Wf;var pv=Hf;var mv=(a,o,t)=>{let r=new Map,s={platform:ax,...t},d={...s.platform,_c:r};return Uf(a,o,{...s,platform:d})};var jl=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,r,...s){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let d=window.setInterval(t,r,...s);return this.nameToIntervalId.set(o,d),d}clearInterval(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);r!==void 0&&clearInterval(r),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,r,...s){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let d=window.setTimeout((...p)=>{t(...p),this.nameToTimeoutId.delete(o)},r,...s);return this.nameToTimeoutId.set(o,d),d}clearTimeout(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);r!==void 0&&window.clearTimeout(r),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var r;if(typeof t=="number"){let s=t;return[(r=[...o.entries()].find(([,p])=>p===t))==null?void 0:r[0],s]}return[t,o.get(t)]}};var bi=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 dx=B`
2581
+ <span part="radio-icon" class="radio-icon"></span>`}};Mo.styles=[...j.styles,...Rf],m([u({type:Boolean,reflect:!0})],Mo.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Mo.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Mo.prototype,"softDisabled",2);var Qc=Mo;var Pf=z.constructTagName("staticradio");Qc.register(Pf);var kT=Qc;Zc.register($l);var NT=Zc;var Wr=Math.min,Oe=Math.max,Ha=Math.round,Ga=Math.floor,wr=n=>({x:n,y:n}),LT={left:"right",right:"left",bottom:"top",top:"bottom"},OT={start:"end",end:"start"};function Vl(n,o,t){return Oe(n,Wr(o,t))}function Ro(n,o){return typeof n=="function"?n(o):n}function vi(n){return n.split("-")[0]}function Po(n){return n.split("-")[1]}function Jc(n){return n==="x"?"y":"x"}function Bl(n){return n==="y"?"height":"width"}var MT=new Set(["top","bottom"]);function jr(n){return MT.has(vi(n))?"y":"x"}function Ul(n){return Jc(jr(n))}function $f(n,o,t){t===void 0&&(t=!1);let r=Po(n),s=Ul(n),d=Bl(s),p=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(p=Ua(p)),[p,Ua(p)]}function zf(n){let o=Ua(n);return[zl(n),o,zl(o)]}function zl(n){return n.replace(/start|end/g,o=>OT[o])}var Df=["left","right"],Ff=["right","left"],RT=["top","bottom"],PT=["bottom","top"];function DT(n,o,t){switch(n){case"top":case"bottom":return t?o?Ff:Df:o?Df:Ff;case"left":case"right":return o?RT:PT;default:return[]}}function Vf(n,o,t,r){let s=Po(n),d=DT(vi(n),t==="start",r);return s&&(d=d.map(p=>p+"-"+s),o&&(d=d.concat(d.map(zl)))),d}function Ua(n){return n.replace(/left|right|bottom|top/g,o=>LT[o])}function FT(n){return{top:0,right:0,bottom:0,left:0,...n}}function th(n){return typeof n!="number"?FT(n):{top:n,right:n,bottom:n,left:n}}function Do(n){let{x:o,y:t,width:r,height:s}=n;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function Bf(n,o,t){let{reference:r,floating:s}=n,d=jr(o),p=Ul(o),f=Bl(p),T=vi(o),L=d==="y",U=r.x+r.width/2-s.width/2,q=r.y+r.height/2-s.height/2,Q=r[f]/2-s[f]/2,X;switch(T){case"top":X={x:U,y:r.y-s.height};break;case"bottom":X={x:U,y:r.y+r.height};break;case"right":X={x:r.x+r.width,y:q};break;case"left":X={x:r.x-s.width,y:q};break;default:X={x:r.x,y:r.y}}switch(Po(o)){case"start":X[p]-=Q*(t&&L?-1:1);break;case"end":X[p]+=Q*(t&&L?-1:1);break}return X}var Uf=async(n,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:p}=t,f=d.filter(Boolean),T=await(p.isRTL==null?void 0:p.isRTL(o)),L=await p.getElementRects({reference:n,floating:o,strategy:s}),{x:U,y:q}=Bf(L,r,T),Q=r,X={},it=0;for(let dt=0;dt<f.length;dt++){let{name:lt,fn:gt}=f[dt],{x:It,y:Ct,data:Kt,reset:Vt}=await gt({x:U,y:q,initialPlacement:r,placement:Q,strategy:s,middlewareData:X,rects:L,platform:p,elements:{reference:n,floating:o}});U=It!=null?It:U,q=Ct!=null?Ct:q,X={...X,[lt]:{...X[lt],...Kt}},Vt&&it<=50&&(it++,typeof Vt=="object"&&(Vt.placement&&(Q=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await p.getElementRects({reference:n,floating:o,strategy:s}):Vt.rects),{x:U,y:q}=Bf(L,Q,T)),dt=-1)}return{x:U,y:q,placement:Q,strategy:s,middlewareData:X}};async function Hl(n,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:p,elements:f,strategy:T}=n,{boundary:L="clippingAncestors",rootBoundary:U="viewport",elementContext:q="floating",altBoundary:Q=!1,padding:X=0}=Ro(o,n),it=th(X),lt=f[Q?q==="floating"?"reference":"floating":q],gt=Do(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(lt)))==null||t?lt:lt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(f.floating)),boundary:L,rootBoundary:U,strategy:T})),It=q==="floating"?{x:r,y:s,width:p.floating.width,height:p.floating.height}:p.reference,Ct=await(d.getOffsetParent==null?void 0:d.getOffsetParent(f.floating)),Kt=await(d.isElement==null?void 0:d.isElement(Ct))?await(d.getScale==null?void 0:d.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Vt=Do(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:Ct,strategy:T}):It);return{top:(gt.top-Vt.top+it.top)/Kt.y,bottom:(Vt.bottom-gt.bottom+it.bottom)/Kt.y,left:(gt.left-Vt.left+it.left)/Kt.x,right:(Vt.right-gt.right+it.right)/Kt.x}}var Hf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:p,elements:f,middlewareData:T}=o,{element:L,padding:U=0}=Ro(n,o)||{};if(L==null)return{};let q=th(U),Q={x:t,y:r},X=Ul(s),it=Bl(X),dt=await p.getDimensions(L),lt=X==="y",gt=lt?"top":"left",It=lt?"bottom":"right",Ct=lt?"clientHeight":"clientWidth",Kt=d.reference[it]+d.reference[X]-Q[X]-d.floating[it],Vt=Q[X]-d.reference[X],Wt=await(p.getOffsetParent==null?void 0:p.getOffsetParent(L)),te=Wt?Wt[Ct]:0;(!te||!await(p.isElement==null?void 0:p.isElement(Wt)))&&(te=f.floating[Ct]||d.floating[it]);let pe=Kt/2-Vt/2,Er=te/2-dt[it]/2-1,De=Wr(q[gt],Er),ir=Wr(q[It],Er),Tr=De,xr=te-dt[it]-ir,wt=te/2-dt[it]/2+pe,ge=Vl(Tr,wt,xr),or=!T.arrow&&Po(s)!=null&&wt!==ge&&d.reference[it]/2-(wt<Tr?De:ir)-dt[it]/2<0,sr=or?wt<Tr?wt-Tr:wt-xr:0;return{[X]:Q[X]+sr,data:{[X]:ge,centerOffset:wt-ge-sr,...or&&{alignmentOffset:sr}},reset:or}}});var Gf=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:p,initialPlacement:f,platform:T,elements:L}=o,{mainAxis:U=!0,crossAxis:q=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:dt=!0,...lt}=Ro(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=vi(s),It=jr(f),Ct=vi(f)===f,Kt=await(T.isRTL==null?void 0:T.isRTL(L.floating)),Vt=Q||(Ct||!dt?[Ua(f)]:zf(f)),Wt=it!=="none";!Q&&Wt&&Vt.push(...Vf(f,dt,it,Kt));let te=[f,...Vt],pe=await Hl(o,lt),Er=[],De=((r=d.flip)==null?void 0:r.overflows)||[];if(U&&Er.push(pe[gt]),q){let wt=$f(s,p,Kt);Er.push(pe[wt[0]],pe[wt[1]])}if(De=[...De,{placement:s,overflows:Er}],!Er.every(wt=>wt<=0)){var ir,Tr;let wt=(((ir=d.flip)==null?void 0:ir.index)||0)+1,ge=te[wt];if(ge&&(!(q==="alignment"?It!==jr(ge):!1)||De.every(ar=>ar.overflows[0]>0&&jr(ar.placement)===It)))return{data:{index:wt,overflows:De},reset:{placement:ge}};let or=(Tr=De.filter(sr=>sr.overflows[0]<=0).sort((sr,ar)=>sr.overflows[1]-ar.overflows[1])[0])==null?void 0:Tr.placement;if(!or)switch(X){case"bestFit":{var xr;let sr=(xr=De.filter(ar=>{if(Wt){let nr=jr(ar.placement);return nr===It||nr==="y"}return!0}).map(ar=>[ar.placement,ar.overflows.filter(nr=>nr>0).reduce((nr,Sn)=>nr+Sn,0)]).sort((ar,nr)=>ar[1]-nr[1])[0])==null?void 0:xr[0];sr&&(or=sr);break}case"initialPlacement":or=f;break}if(s!==or)return{reset:{placement:or}}}return{}}}};var $T=new Set(["left","top"]);async function zT(n,o){let{placement:t,platform:r,elements:s}=n,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),p=vi(t),f=Po(t),T=jr(t)==="y",L=$T.has(p)?-1:1,U=d&&T?-1:1,q=Ro(o,n),{mainAxis:Q,crossAxis:X,alignmentAxis:it}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return f&&typeof it=="number"&&(X=f==="end"?it*-1:it),T?{x:X*U,y:Q*L}:{x:Q*L,y:X*U}}var Yf=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,r;let{x:s,y:d,placement:p,middlewareData:f}=o,T=await zT(o,n);return p===((t=f.offset)==null?void 0:t.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:s+T.x,y:d+T.y,data:{...T,placement:p}}}}},Kf=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:p=!1,limiter:f={fn:lt=>{let{x:gt,y:It}=lt;return{x:gt,y:It}}},...T}=Ro(n,o),L={x:t,y:r},U=await Hl(o,T),q=jr(vi(s)),Q=Jc(q),X=L[Q],it=L[q];if(d){let lt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",It=X+U[lt],Ct=X-U[gt];X=Vl(It,X,Ct)}if(p){let lt=q==="y"?"top":"left",gt=q==="y"?"bottom":"right",It=it+U[lt],Ct=it-U[gt];it=Vl(It,it,Ct)}let dt=f.fn({...o,[Q]:X,[q]:it});return{...dt,data:{x:dt.x-t,y:dt.y-r,enabled:{[Q]:d,[q]:p}}}}}};var Wf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,r;let{placement:s,rects:d,platform:p,elements:f}=o,{apply:T=()=>{},...L}=Ro(n,o),U=await Hl(o,L),q=vi(s),Q=Po(s),X=jr(s)==="y",{width:it,height:dt}=d.floating,lt,gt;q==="top"||q==="bottom"?(lt=q,gt=Q===(await(p.isRTL==null?void 0:p.isRTL(f.floating))?"start":"end")?"left":"right"):(gt=q,lt=Q==="end"?"top":"bottom");let It=dt-U.top-U.bottom,Ct=it-U.left-U.right,Kt=Wr(dt-U[lt],It),Vt=Wr(it-U[gt],Ct),Wt=!o.middlewareData.shift,te=Kt,pe=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(pe=Ct),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(te=It),Wt&&!Q){let De=Oe(U.left,0),ir=Oe(U.right,0),Tr=Oe(U.top,0),xr=Oe(U.bottom,0);X?pe=it-2*(De!==0||ir!==0?De+ir:Oe(U.left,U.right)):te=dt-2*(Tr!==0||xr!==0?Tr+xr:Oe(U.top,U.bottom))}await T({...o,availableWidth:pe,availableHeight:te});let Er=await p.getDimensions(f.floating);return it!==Er.width||dt!==Er.height?{reset:{rects:!0}}:{}}}};function Gl(){return typeof window<"u"}function Fo(n){return qf(n)?(n.nodeName||"").toLowerCase():"#document"}function Ge(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function kr(n){var o;return(o=(qf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function qf(n){return Gl()?n instanceof Node||n instanceof Ge(n).Node:!1}function mr(n){return Gl()?n instanceof Element||n instanceof Ge(n).Element:!1}function Nr(n){return Gl()?n instanceof HTMLElement||n instanceof Ge(n).HTMLElement:!1}function jf(n){return!Gl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Ge(n).ShadowRoot}var VT=new Set(["inline","contents"]);function Os(n){let{overflow:o,overflowX:t,overflowY:r,display:s}=ur(n);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!VT.has(s)}var BT=new Set(["table","td","th"]);function Xf(n){return BT.has(Fo(n))}var UT=[":popover-open",":modal"];function Ya(n){return UT.some(o=>{try{return n.matches(o)}catch{return!1}})}var HT=["transform","translate","scale","rotate","perspective"],GT=["transform","translate","scale","rotate","perspective","filter"],YT=["paint","layout","strict","content"];function Yl(n){let o=Kl(),t=mr(n)?ur(n):n;return HT.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||GT.some(r=>(t.willChange||"").includes(r))||YT.some(r=>(t.contain||"").includes(r))}function Zf(n){let o=gi(n);for(;Nr(o)&&!$o(o);){if(Yl(o))return o;if(Ya(o))return null;o=gi(o)}return null}function Kl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var KT=new Set(["html","body","#document"]);function $o(n){return KT.has(Fo(n))}function ur(n){return Ge(n).getComputedStyle(n)}function Ka(n){return mr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function gi(n){if(Fo(n)==="html")return n;let o=n.assignedSlot||n.parentNode||jf(n)&&n.host||kr(n);return jf(o)?o.host:o}function Qf(n){let o=gi(n);return $o(o)?n.ownerDocument?n.ownerDocument.body:n.body:Nr(o)&&Os(o)?o:Qf(o)}function Ls(n,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=Qf(n),d=s===((r=n.ownerDocument)==null?void 0:r.body),p=Ge(s);if(d){let f=Wl(p);return o.concat(p,p.visualViewport||[],Os(s)?s:[],f&&t?Ls(f):[])}return o.concat(s,Ls(s,[],t))}function Wl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function ev(n){let o=ur(n),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=Nr(n),d=s?n.offsetWidth:t,p=s?n.offsetHeight:r,f=Ha(t)!==d||Ha(r)!==p;return f&&(t=d,r=p),{width:t,height:r,$:f}}function rh(n){return mr(n)?n:n.contextElement}function Ms(n){let o=rh(n);if(!Nr(o))return wr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=ev(o),p=(d?Ha(t.width):t.width)/r,f=(d?Ha(t.height):t.height)/s;return(!p||!Number.isFinite(p))&&(p=1),(!f||!Number.isFinite(f))&&(f=1),{x:p,y:f}}var WT=wr(0);function rv(n){let o=Ge(n);return!Kl()||!o.visualViewport?WT:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function jT(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Ge(n)?!1:o}function zo(n,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=n.getBoundingClientRect(),d=rh(n),p=wr(1);o&&(r?mr(r)&&(p=Ms(r)):p=Ms(n));let f=jT(d,t,r)?rv(d):wr(0),T=(s.left+f.x)/p.x,L=(s.top+f.y)/p.y,U=s.width/p.x,q=s.height/p.y;if(d){let Q=Ge(d),X=r&&mr(r)?Ge(r):r,it=Q,dt=Wl(it);for(;dt&&r&&X!==it;){let lt=Ms(dt),gt=dt.getBoundingClientRect(),It=ur(dt),Ct=gt.left+(dt.clientLeft+parseFloat(It.paddingLeft))*lt.x,Kt=gt.top+(dt.clientTop+parseFloat(It.paddingTop))*lt.y;T*=lt.x,L*=lt.y,U*=lt.x,q*=lt.y,T+=Ct,L+=Kt,it=Ge(dt),dt=Wl(it)}}return Do({width:U,height:q,x:T,y:L})}function ih(n,o){let t=Ka(n).scrollLeft;return o?o.left+t:zo(kr(n)).left+t}function iv(n,o,t){t===void 0&&(t=!1);let r=n.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:ih(n,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function qT(n){let{elements:o,rect:t,offsetParent:r,strategy:s}=n,d=s==="fixed",p=kr(r),f=o?Ya(o.floating):!1;if(r===p||f&&d)return t;let T={scrollLeft:0,scrollTop:0},L=wr(1),U=wr(0),q=Nr(r);if((q||!q&&!d)&&((Fo(r)!=="body"||Os(p))&&(T=Ka(r)),Nr(r))){let X=zo(r);L=Ms(r),U.x=X.x+r.clientLeft,U.y=X.y+r.clientTop}let Q=p&&!q&&!d?iv(p,T,!0):wr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-T.scrollLeft*L.x+U.x+Q.x,y:t.y*L.y-T.scrollTop*L.y+U.y+Q.y}}function XT(n){return Array.from(n.getClientRects())}function ZT(n){let o=kr(n),t=Ka(n),r=n.ownerDocument.body,s=Oe(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=Oe(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),p=-t.scrollLeft+ih(n),f=-t.scrollTop;return ur(r).direction==="rtl"&&(p+=Oe(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:p,y:f}}function QT(n,o){let t=Ge(n),r=kr(n),s=t.visualViewport,d=r.clientWidth,p=r.clientHeight,f=0,T=0;if(s){d=s.width,p=s.height;let L=Kl();(!L||L&&o==="fixed")&&(f=s.offsetLeft,T=s.offsetTop)}return{width:d,height:p,x:f,y:T}}var JT=new Set(["absolute","fixed"]);function tx(n,o){let t=zo(n,!0,o==="fixed"),r=t.top+n.clientTop,s=t.left+n.clientLeft,d=Nr(n)?Ms(n):wr(1),p=n.clientWidth*d.x,f=n.clientHeight*d.y,T=s*d.x,L=r*d.y;return{width:p,height:f,x:T,y:L}}function Jf(n,o,t){let r;if(o==="viewport")r=QT(n,t);else if(o==="document")r=ZT(kr(n));else if(mr(o))r=tx(o,t);else{let s=rv(n);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return Do(r)}function ov(n,o){let t=gi(n);return t===o||!mr(t)||$o(t)?!1:ur(t).position==="fixed"||ov(t,o)}function ex(n,o){let t=o.get(n);if(t)return t;let r=Ls(n,[],!1).filter(f=>mr(f)&&Fo(f)!=="body"),s=null,d=ur(n).position==="fixed",p=d?gi(n):n;for(;mr(p)&&!$o(p);){let f=ur(p),T=Yl(p);!T&&f.position==="fixed"&&(s=null),(d?!T&&!s:!T&&f.position==="static"&&!!s&&JT.has(s.position)||Os(p)&&!T&&ov(n,p))?r=r.filter(U=>U!==p):s=f,p=gi(p)}return o.set(n,r),r}function rx(n){let{element:o,boundary:t,rootBoundary:r,strategy:s}=n,p=[...t==="clippingAncestors"?Ya(o)?[]:ex(o,this._c):[].concat(t),r],f=p[0],T=p.reduce((L,U)=>{let q=Jf(o,U,s);return L.top=Oe(q.top,L.top),L.right=Wr(q.right,L.right),L.bottom=Wr(q.bottom,L.bottom),L.left=Oe(q.left,L.left),L},Jf(o,f,s));return{width:T.right-T.left,height:T.bottom-T.top,x:T.left,y:T.top}}function ix(n){let{width:o,height:t}=ev(n);return{width:o,height:t}}function ox(n,o,t){let r=Nr(o),s=kr(o),d=t==="fixed",p=zo(n,!0,d,o),f={scrollLeft:0,scrollTop:0},T=wr(0);function L(){T.x=ih(s)}if(r||!r&&!d)if((Fo(o)!=="body"||Os(s))&&(f=Ka(o)),r){let X=zo(o,!0,d,o);T.x=X.x+o.clientLeft,T.y=X.y+o.clientTop}else s&&L();d&&!r&&s&&L();let U=s&&!r&&!d?iv(s,f):wr(0),q=p.left+f.scrollLeft-T.x-U.x,Q=p.top+f.scrollTop-T.y-U.y;return{x:q,y:Q,width:p.width,height:p.height}}function eh(n){return ur(n).position==="static"}function tv(n,o){if(!Nr(n)||ur(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return kr(n)===t&&(t=t.ownerDocument.body),t}function sv(n,o){let t=Ge(n);if(Ya(n))return t;if(!Nr(n)){let s=gi(n);for(;s&&!$o(s);){if(mr(s)&&!eh(s))return s;s=gi(s)}return t}let r=tv(n,o);for(;r&&Xf(r)&&eh(r);)r=tv(r,o);return r&&$o(r)&&eh(r)&&!Yl(r)?t:r||Zf(n)||t}var sx=async function(n){let o=this.getOffsetParent||sv,t=this.getDimensions,r=await t(n.floating);return{reference:ox(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ax(n){return ur(n).direction==="rtl"}var nx={convertOffsetParentRelativeRectToViewportRelativeRect:qT,getDocumentElement:kr,getClippingRect:rx,getOffsetParent:sv,getElementRects:sx,getClientRects:XT,getDimensions:ix,getScale:Ms,isElement:mr,isRTL:ax};function av(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function lx(n,o){let t=null,r,s=kr(n);function d(){var f;clearTimeout(r),(f=t)==null||f.disconnect(),t=null}function p(f,T){f===void 0&&(f=!1),T===void 0&&(T=1),d();let L=n.getBoundingClientRect(),{left:U,top:q,width:Q,height:X}=L;if(f||o(),!Q||!X)return;let it=Ga(q),dt=Ga(s.clientWidth-(U+Q)),lt=Ga(s.clientHeight-(q+X)),gt=Ga(U),Ct={rootMargin:-it+"px "+-dt+"px "+-lt+"px "+-gt+"px",threshold:Oe(0,Wr(1,T))||1},Kt=!0;function Vt(Wt){let te=Wt[0].intersectionRatio;if(te!==T){if(!Kt)return p();te?p(!1,te):r=setTimeout(()=>{p(!1,1e-7)},1e3)}te===1&&!av(L,n.getBoundingClientRect())&&p(),Kt=!1}try{t=new IntersectionObserver(Vt,{...Ct,root:s.ownerDocument})}catch{t=new IntersectionObserver(Vt,Ct)}t.observe(n)}return p(!0),d}function nv(n,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:T=!1}=r,L=rh(n),U=s||d?[...L?Ls(L):[],...Ls(o)]:[];U.forEach(gt=>{s&&gt.addEventListener("scroll",t,{passive:!0}),d&&gt.addEventListener("resize",t)});let q=L&&f?lx(L,t):null,Q=-1,X=null;p&&(X=new ResizeObserver(gt=>{let[It]=gt;It&&It.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),L&&!T&&X.observe(L),X.observe(o));let it,dt=T?zo(n):null;T&&lt();function lt(){let gt=zo(n);dt&&!av(dt,gt)&&t(),dt=gt,it=requestAnimationFrame(lt)}return t(),()=>{var gt;U.forEach(It=>{s&&It.removeEventListener("scroll",t),d&&It.removeEventListener("resize",t)}),q==null||q(),(gt=X)==null||gt.disconnect(),X=null,T&&cancelAnimationFrame(it)}}var lv=Yf;var dv=Kf,cv=Gf,hv=Wf;var pv=Hf;var mv=(n,o,t)=>{let r=new Map,s={platform:nx,...t},d={...s.platform,_c:r};return Uf(n,o,{...s,platform:d})};var jl=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,r,...s){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let d=window.setInterval(t,r,...s);return this.nameToIntervalId.set(o,d),d}clearInterval(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);r!==void 0&&clearInterval(r),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,r,...s){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let d=window.setTimeout((...p)=>{t(...p),this.nameToTimeoutId.delete(o)},r,...s);return this.nameToTimeoutId.set(o,d),d}clearTimeout(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);r!==void 0&&window.clearTimeout(r),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var r;if(typeof t=="number"){let s=t;return[(r=[...o.entries()].find(([,p])=>p===t))==null?void 0:r[0],s]}return[t,o.get(t)]}};var bi=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 dx=B`
2571
2582
  :host {
2572
2583
  --mdc-popover-arrow-border-radius: 0.1875rem;
2573
2584
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2689,7 +2700,7 @@
2689
2700
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2690
2701
  border-bottom-left-radius: 100%;
2691
2702
  }
2692
- `,uv=[dx];var Xl=z.constructTagName("popoverportal"),ql=class extends j{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Zl=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(r=>{let s=parseInt(r,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${r}`);return s});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 r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,s=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=r,t.style.bottom=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${s}px`,t.style.width=r,t.style.right=`calc(-1.5 * (${r}))`;break;case"right":t.style.height=`${s}px`,t.style.width=r,t.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:t.style.height=r,t.style.top=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&!Array.from(r.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Xl),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),r.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,r;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=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateAriaModal(){this.popover.role===J.DIALOG||this.popover.role===J.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,r;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(r=this.popover.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var U;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:d,y:p}=o,f=this.popover.arrowElement.getBoundingClientRect(),T=(U=this.popover.arrowElement.offsetParent)==null?void 0:U.getBoundingClientRect();if(!this.arrowPixelChange){let q=T!=null&&T[s]?12-Math.abs(f[s]-T[s]):0;Math.round(q)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:p!=null?`${p}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends kt(xl(bl(gl(j)))){constructor(){super();this.depthManager=new Hi(this);this.id="";this.triggerID="";this.trigger=At.TRIGGER;this.placement=At.PLACEMENT;this.color=At.COLOR;this.visible=At.VISIBLE;this.offset=At.OFFSET;this.boundary=At.BOUNDARY;this.boundaryRoot=At.BOUNDARY_ROOT;this.focusTrap=At.FOCUS_TRAP;this.preventScroll=At.PREVENT_SCROLL;this.showArrow=At.ARROW;this.closeButton=At.CLOSE_BUTTON;this.interactive=At.INTERACTIVE;this.delay=At.DELAY;this.hideOnEscape=At.HIDE_ON_ESCAPE;this.propagateEventOnEscape=At.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=At.HIDE_ON_BLUR;this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=At.FOCUS_BACK;this.backdrop=At.BACKDROP;this.isBackdropInvisible=At.IS_BACKDROP_INVISIBLE;this.disableFlip=At.DISABLE_FLIP;this.size=At.SIZE;this.closeButtonAriaLabel=null;this.strategy=At.STRATEGY;this.role=At.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=At.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=At.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=At.ANIMATION_FRAME;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new jl(this);this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(p=>Object.values(He).includes(p)).length>0?this.trigger:At.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};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 r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&(this.hide(),bi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Z.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),bi.onEscapeKeyPressed(this))};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:r}=t;this.contains(r)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var r,s,d,p;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(p=(d=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:d.querySelector(".mdc-focus-ring"))!=null&&p.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Kr.OPEN)};this.startCloseDelay=()=>{if(this.cancelOpenDelay(),!this.interactive)this.hide();else{let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Kr.HOVER,t,this.closeDelay):(this.timers.clearTimeout(Kr.HOVER),t())}};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Kr.HOVER),this.timers.clearTimeout(Kr.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Kr.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Kr.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let r=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,d=[dv({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],p=this.offset;if(this.disableFlip||d.push(cv({boundary:r,rootBoundary:s})),this.size){let f=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},T=this.renderRoot.querySelector('[part="popover-content"]');d.push(hv({boundary:r,rootBoundary:s,apply({availableHeight:L}){T&&(Object.assign(T.style,{maxHeight:`${L}px`,overflowY:"auto"}),f(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight,T=Math.sqrt(2*f**2)/2;p+=T,d.push(pv({element:this.arrowElement,padding:12}))}d.push(lv(p)),this.floatingUICleanupFunction=av(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let T=this.adjustPlacementForRtl(this.placement),{x:L,y:U,middlewareData:q,placement:Q}=await mv(f,this,{placement:T,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,U),q.arrow&&this.arrowElement&&this.utils.updateArrowStyle(q.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Zl(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(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),bi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(r=this.floatingUICleanupFunction)==null||r.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),bi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Nt).includes(this.placement)?this.placement:At.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Oo).includes(this.color)?this.color:At.COLOR),t.has("appendTo")&&(this.appendTo?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,r){var d,p;let{triggerElement:s}=this;t===r||!s||(r&&!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(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.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,T;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(T=this.setInitialFocus)==null||T.call(this))},0),bi.onShowPopover(this)):(this.depthManager.popHost(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.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(),(p=this.deactivateFocusTrap)==null||p.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),bi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Kr.OPEN,t,this.openDelay):(this.timers.clearTimeout(Kr.OPEN),t())}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Nt.LEFT:return Nt.RIGHT;case Nt.LEFT_START:return Nt.RIGHT_START;case Nt.LEFT_END:return Nt.RIGHT_END;case Nt.RIGHT:return Nt.LEFT;case Nt.RIGHT_START:return Nt.LEFT_START;case Nt.RIGHT_END:return Nt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,_`
2703
+ `,uv=[dx];var Xl=z.constructTagName("popoverportal"),ql=class extends j{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Zl=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(r=>{let s=parseInt(r,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${r}`);return s});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 r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,s=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=r,t.style.bottom=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${s}px`,t.style.width=r,t.style.right=`calc(-1.5 * (${r}))`;break;case"right":t.style.height=`${s}px`,t.style.width=r,t.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:t.style.height=r,t.style.top=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&!Array.from(r.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Xl),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),r.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,r;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=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateAriaModal(){this.popover.role===J.DIALOG||this.popover.role===J.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,r;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(r=this.popover.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var U;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:d,y:p}=o,f=this.popover.arrowElement.getBoundingClientRect(),T=(U=this.popover.arrowElement.offsetParent)==null?void 0:U.getBoundingClientRect();if(!this.arrowPixelChange){let q=T!=null&&T[s]?12-Math.abs(f[s]-T[s]):0;Math.round(q)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:p!=null?`${p}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends kt(xl(bl(gl(j)))){constructor(){super();this.depthManager=new Hi(this);this.id="";this.triggerID="";this.trigger=At.TRIGGER;this.placement=At.PLACEMENT;this.color=At.COLOR;this.visible=At.VISIBLE;this.offset=At.OFFSET;this.boundary=At.BOUNDARY;this.boundaryRoot=At.BOUNDARY_ROOT;this.focusTrap=At.FOCUS_TRAP;this.preventScroll=At.PREVENT_SCROLL;this.showArrow=At.ARROW;this.closeButton=At.CLOSE_BUTTON;this.interactive=At.INTERACTIVE;this.delay=At.DELAY;this.hideOnEscape=At.HIDE_ON_ESCAPE;this.propagateEventOnEscape=At.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=At.HIDE_ON_BLUR;this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=At.FOCUS_BACK;this.backdrop=At.BACKDROP;this.isBackdropInvisible=At.IS_BACKDROP_INVISIBLE;this.disableFlip=At.DISABLE_FLIP;this.size=At.SIZE;this.closeButtonAriaLabel=null;this.strategy=At.STRATEGY;this.role=At.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=At.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=At.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=At.ANIMATION_FRAME;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new jl(this);this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(p=>Object.values(He).includes(p)).length>0?this.trigger:At.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};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 r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&(this.hide(),bi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Z.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),bi.onEscapeKeyPressed(this))};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:r}=t;this.contains(r)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var r,s,d,p;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(p=(d=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:d.querySelector(".mdc-focus-ring"))!=null&&p.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Kr.OPEN)};this.startCloseDelay=()=>{if(this.cancelOpenDelay(),!this.interactive)this.hide();else{let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Kr.HOVER,t,this.closeDelay):(this.timers.clearTimeout(Kr.HOVER),t())}};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Kr.HOVER),this.timers.clearTimeout(Kr.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Kr.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Kr.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let r=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,d=[dv({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],p=this.offset;if(this.disableFlip||d.push(cv({boundary:r,rootBoundary:s})),this.size){let f=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},T=this.renderRoot.querySelector('[part="popover-content"]');d.push(hv({boundary:r,rootBoundary:s,apply({availableHeight:L}){T&&(Object.assign(T.style,{maxHeight:`${L}px`,overflowY:"auto"}),f(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight,T=Math.sqrt(2*f**2)/2;p+=T,d.push(pv({element:this.arrowElement,padding:12}))}d.push(lv(p)),this.floatingUICleanupFunction=nv(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let T=this.adjustPlacementForRtl(this.placement),{x:L,y:U,middlewareData:q,placement:Q}=await mv(f,this,{placement:T,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,U),q.arrow&&this.arrowElement&&this.utils.updateArrowStyle(q.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Zl(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(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),bi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(r=this.floatingUICleanupFunction)==null||r.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),bi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Nt).includes(this.placement)?this.placement:At.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Oo).includes(this.color)?this.color:At.COLOR),t.has("appendTo")&&(this.appendTo?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,r){var d,p;let{triggerElement:s}=this;t===r||!s||(r&&!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(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.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,T;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(T=this.setInitialFocus)==null||T.call(this))},0),bi.onShowPopover(this)):(this.depthManager.popHost(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.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(),(p=this.deactivateFocusTrap)==null||p.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),bi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Kr.OPEN,t,this.openDelay):(this.timers.clearTimeout(Kr.OPEN),t())}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Nt.LEFT:return Nt.RIGHT;case Nt.LEFT_START:return Nt.RIGHT_START;case Nt.LEFT_END:return Nt.RIGHT_END;case Nt.RIGHT:return Nt.LEFT;case Nt.RIGHT_START:return Nt.LEFT_START;case Nt.RIGHT_END:return Nt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,_`
2693
2704
  <div part="popover-hover-bridge"></div>
2694
2705
  ${this.closeButton?_` <mdc-button
2695
2706
  part="popover-close"
@@ -2741,7 +2752,7 @@
2741
2752
  delay="300"
2742
2753
  >
2743
2754
  </mdc-screenreaderannouncer>
2744
- `}};Wi.styles=[...Ye.styles,...vv],m([jm()],Wi.prototype,"defaultSlotNodes",2),m([ut()],Wi.prototype,"currentAnnouncement",2),m([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Wi.prototype,"screenreaderAnnouncerIdentity",2),m([u({type:String,reflect:!0})],Wi.prototype,"placement",2);var oh=Wi;function Ql(a,o=500){let t,r=(...s)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...s)},o)};return r.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},r}var gv=z.constructTagName("screenreaderannouncer"),hx={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Bo={ARIA_LIVE:hx.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var px=[B`
2755
+ `}};Wi.styles=[...Ye.styles,...vv],m([jm()],Wi.prototype,"defaultSlotNodes",2),m([ut()],Wi.prototype,"currentAnnouncement",2),m([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Wi.prototype,"screenreaderAnnouncerIdentity",2),m([u({type:String,reflect:!0})],Wi.prototype,"placement",2);var oh=Wi;function Ql(n,o=500){let t,r=(...s)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,n(...s)},o)};return r.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},r}var gv=z.constructTagName("screenreaderannouncer"),hx={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Bo={ARIA_LIVE:hx.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var px=[B`
2745
2756
  :host {
2746
2757
  display: none;
2747
2758
  visibility: hidden;
@@ -2756,7 +2767,7 @@
2756
2767
  white-space: nowrap;
2757
2768
  width: 1px;
2758
2769
  }
2759
- `,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Ql(()=>{this.announcement&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Bo.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var r;t.has("identity")&&this.identity.length===0&&(this.identity=Bo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};qr.styles=[...j.styles,...bv],m([u({type:String,reflect:!0})],qr.prototype,"announcement",2),m([u({type:String,reflect:!0})],qr.prototype,"identity",2),m([u({type:String,reflect:!0,attribute:"data-aria-live"})],qr.prototype,"dataAriaLive",2),m([u({type:Number,reflect:!0})],qr.prototype,"delay",2),m([u({type:Number,reflect:!0})],qr.prototype,"timeout",2),m([u({type:Number,reflect:!0,attribute:"debounce-time"})],qr.prototype,"debounceTime",2);var sh=qr;sh.register(gv);var mx=sh;oh.register(fv);var ux=oh;var Ce=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,m([u({reflect:!0,type:String})],o.prototype,"name",2),m([u({reflect:!0,type:String})],o.prototype,"value",2),m([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),m([Zt("input")],o.prototype,"inputElement",2),o};var fx=B`
2770
+ `,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Ql(()=>{this.announcement&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Bo.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var r;t.has("identity")&&this.identity.length===0&&(this.identity=Bo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};qr.styles=[...j.styles,...bv],m([u({type:String,reflect:!0})],qr.prototype,"announcement",2),m([u({type:String,reflect:!0})],qr.prototype,"identity",2),m([u({type:String,reflect:!0,attribute:"data-aria-live"})],qr.prototype,"dataAriaLive",2),m([u({type:Number,reflect:!0})],qr.prototype,"delay",2),m([u({type:Number,reflect:!0})],qr.prototype,"timeout",2),m([u({type:Number,reflect:!0,attribute:"debounce-time"})],qr.prototype,"debounceTime",2);var sh=qr;sh.register(gv);var mx=sh;oh.register(fv);var ux=oh;var Ce=n=>{class o extends n{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,m([u({reflect:!0,type:String})],o.prototype,"name",2),m([u({reflect:!0,type:String})],o.prototype,"value",2),m([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),m([Zt("input")],o.prototype,"inputElement",2),o};var fx=B`
2760
2771
  :host {
2761
2772
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
2762
2773
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
@@ -2834,18 +2845,18 @@
2834
2845
  pointer-events: none;
2835
2846
  cursor: default;
2836
2847
  }
2837
- `,yv=[bt,fx];var Ev=a=>({[zt.ERROR]:"error-legacy-badge-filled",[zt.WARNING]:"warning-badge-filled",[zt.SUCCESS]:"check-circle-badge-filled",[zt.PRIORITY]:"priority-badge-filled",[zt.DEFAULT]:""})[a]||"";var Ke=class extends Ut(j){constructor(){super(...arguments);this.inputId=`mdc-el-${Ie()}`;this.required=!1;this.helpTextType=Ot.VALIDATION;this.toggletipPlacement=Ot.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Ot.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?_`<label for="${this.inputId}" id="${Ot.HEADING_ID}" part="label">${this.label}</label>`:_` <mdc-text
2848
+ `,yv=[bt,fx];var Ev=n=>({[zt.ERROR]:"error-legacy-badge-filled",[zt.WARNING]:"warning-badge-filled",[zt.SUCCESS]:"check-circle-badge-filled",[zt.PRIORITY]:"priority-badge-filled",[zt.DEFAULT]:""})[n]||"";var Ke=class extends Ut(j){constructor(){super(...arguments);this.inputId=`mdc-el-${Ie()}`;this.required=!1;this.helpTextType=Ot.VALIDATION;this.toggletipPlacement=Ot.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Ot.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?_`<label for="${this.inputId}" id="${Ot.HEADING_ID}" part="label">${this.label}</label>`:_` <mdc-text
2838
2849
  id="${Ot.HEADING_ID}"
2839
- tagname="${Un.TAGNAME}"
2840
- type="${Un.HEADER_TYPE}"
2850
+ tagname="${Ba.TAGNAME}"
2851
+ type="${Ba.HEADER_TYPE}"
2841
2852
  part="label"
2842
2853
  >${this.label}</mdc-text
2843
2854
  >`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=Ev(this.helpTextType||Ot.VALIDATION);return t&&!this.disabled?_`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:W}renderHelpText(){return this.helpText?_`
2844
2855
  <mdc-text
2845
2856
  id="${Ot.HELPER_TEXT_ID}"
2846
2857
  part="help-text"
2847
- tagname=${Un.TAGNAME}
2848
- type=${Un.TYPE}
2858
+ tagname=${Ba.TAGNAME}
2859
+ type=${Ba.TYPE}
2849
2860
  >
2850
2861
  ${this.helpText}
2851
2862
  </mdc-text>
@@ -2876,7 +2887,7 @@
2876
2887
  </div>`}renderHelperText(){return this.helpText?_`<div part="help-text-container">
2877
2888
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
2878
2889
  <slot name="help-text">${this.renderHelpText()}</slot>
2879
- </div>`:W}};Ke.styles=[...j.styles,...yv],m([u({reflect:!0,type:String})],Ke.prototype,"label",2),m([u({type:Boolean,reflect:!0,attribute:"required"})],Ke.prototype,"required",2),m([u({reflect:!0,attribute:"help-text-type"})],Ke.prototype,"helpTextType",2),m([u({type:String,reflect:!0,attribute:"help-text"})],Ke.prototype,"helpText",2),m([u({type:String,reflect:!0,attribute:"toggletip-text"})],Ke.prototype,"toggletipText",2),m([u({type:String,reflect:!0,attribute:"toggletip-placement"})],Ke.prototype,"toggletipPlacement",2),m([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],Ke.prototype,"toggletipStrategy",2),m([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Ke.prototype,"infoIconAriaLabel",2),m([u({type:Boolean,reflect:!0})],Ke.prototype,"readonly",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ke.prototype,"softDisabled",2);var de=Ke;var vx=[B`
2890
+ </div>`:W}};Ke.styles=[...j.styles,...yv],m([u({reflect:!0,type:String})],Ke.prototype,"label",2),m([u({type:Boolean,reflect:!0,attribute:"required"})],Ke.prototype,"required",2),m([u({reflect:!0,attribute:"help-text-type"})],Ke.prototype,"helpTextType",2),m([u({type:String,reflect:!0,attribute:"help-text"})],Ke.prototype,"helpText",2),m([u({type:String,reflect:!0,attribute:"toggletip-text"})],Ke.prototype,"toggletipText",2),m([u({type:String,reflect:!0,attribute:"toggletip-placement"})],Ke.prototype,"toggletipPlacement",2),m([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],Ke.prototype,"toggletipStrategy",2),m([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Ke.prototype,"infoIconAriaLabel",2),m([u({type:Boolean,reflect:!0})],Ke.prototype,"readonly",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ke.prototype,"softDisabled",2);var ie=Ke;var vx=[B`
2880
2891
  :host {
2881
2892
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
2882
2893
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -2946,7 +2957,7 @@
2946
2957
  :host([soft-disabled]) {
2947
2958
  pointer-events: none;
2948
2959
  }
2949
- `,...St(!0)],Tv=vx;var ji=class extends kt(kt(Ae(Ce(Ht(de))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.helpTextType=Lf.DEFAULT;this.renderLabelAndHelperText=()=>this.label?_`<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 s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault(),r===Z.ENTER&&((s=this.form)==null||s.requestSubmit(),t.preventDefault())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return _`
2960
+ `,...St(!0)],Tv=vx;var ji=class extends kt(kt(Ae(Ce(Ht(ie))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=Lf.DEFAULT;this.renderLabelAndHelperText=()=>this.label?_`<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 s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault(),r===Z.ENTER&&((s=this.form)==null||s.requestSubmit(),t.preventDefault())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return _`
2950
2961
  <mdc-staticcheckbox
2951
2962
  part="static-checkbox"
2952
2963
  class="mdc-focus-ring"
@@ -2976,7 +2987,7 @@
2976
2987
  />
2977
2988
  </mdc-staticcheckbox>
2978
2989
  ${this.renderLabelAndHelperText()}
2979
- `}};ji.styles=[...de.styles,...Tv],m([u({type:Boolean,reflect:!0})],ji.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],ji.prototype,"indeterminate",2),m([u({type:Boolean,reflect:!0})],ji.prototype,"autofocus",2),m([u({type:String,reflect:!0,attribute:"help-text-type"})],ji.prototype,"helpTextType",2);var nh=ji;nh.register(Nf);var gx=nh;var xv=z.constructTagName("staticchip"),ah={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Jl={COLOR:ah.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var bx=B`
2990
+ `}};ji.styles=[...ie.styles,...Tv],ji.shadowRootOptions={...ie.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],ji.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],ji.prototype,"indeterminate",2),m([u({type:String,reflect:!0,attribute:"help-text-type"})],ji.prototype,"helpTextType",2);var ah=ji;ah.register(Nf);var gx=ah;var xv=z.constructTagName("staticchip"),nh={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Jl={COLOR:nh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var bx=B`
2980
2991
  :host {
2981
2992
  height: 1.5rem;
2982
2993
  gap: 0.25rem;
@@ -3053,7 +3064,7 @@
3053
3064
  ${this.label?_`<mdc-text part="label" type="${Jl.TEXT_TYPE}" tagname="${Jl.TAG_NAME}"
3054
3065
  >${this.label}</mdc-text
3055
3066
  >`:W}
3056
- `}};Rs.styles=[...j.styles,...Av],m([u({type:String,reflect:!0})],Rs.prototype,"color",2),m([u({type:String})],Rs.prototype,"label",2);var jn=Rs;var Sv=z.constructTagName("chip"),Ps={COLOR:ah.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:xo[24],ROLE:J.BUTTON};var yx=B`
3067
+ `}};Rs.styles=[...j.styles,...Av],m([u({type:String,reflect:!0})],Rs.prototype,"color",2),m([u({type:String})],Rs.prototype,"label",2);var Wa=Rs;var Sv=z.constructTagName("chip"),Ps={COLOR:nh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:xo[24],ROLE:J.BUTTON};var yx=B`
3057
3068
  :host {
3058
3069
  cursor: pointer;
3059
3070
  height: 1.5rem;
@@ -3147,12 +3158,12 @@
3147
3158
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3148
3159
  cursor: auto;
3149
3160
  }
3150
- `,Iv=[bt,yx,...St()];var Ds=class extends Qt(ae){constructor(){super(...arguments);this.color=Ps.COLOR}connectedCallback(){super.connectedCallback(),this.role=Ps.ROLE,this.size=Ps.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return _`
3161
+ `,Iv=[bt,yx,...St()];var Ds=class extends Qt(le){constructor(){super(...arguments);this.color=Ps.COLOR}connectedCallback(){super.connectedCallback(),this.role=Ps.ROLE,this.size=Ps.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return _`
3151
3162
  ${this.renderIcon()}
3152
3163
  ${this.label?_`<mdc-text part="label" type="${Ps.TEXT_TYPE}" tagname="${Ps.TAG_NAME}"
3153
3164
  >${this.label}</mdc-text
3154
3165
  >`:W}
3155
- `}};Ds.styles=[...jn.styles,...Iv],m([u({type:String,reflect:!0})],Ds.prototype,"color",2),m([u({type:String})],Ds.prototype,"label",2);var Fs=Ds;Fs.register(Sv);var Ex=Fs;var _v=z.constructTagName("coachmark"),Uo={COLOR:Oo.CONTRAST,TRIGGER:He.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Ho=class extends Ye{constructor(){super(...arguments);this.trigger=Uo.TRIGGER;this.showArrow=Uo.ARROW;this.closeButton=Uo.CLOSE_BUTTON;this.disableAriaExpanded=Uo.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Uo.COLOR,this.showArrow=Uo.ARROW}};m([u({type:String,reflect:!0})],Ho.prototype,"trigger",2),m([u({type:Boolean,attribute:"show-arrow"})],Ho.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],Ho.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ho.prototype,"disableAriaExpanded",2);var lh=Ho;lh.register(_v);var Tx=lh;var td=z.constructTagName("controltypeprovider"),ed={CONTROL_TYPE:"uncontrolled"},rd=["controlled","uncontrolled"];var xx=td,dh=xx;var id=class extends xe{constructor(){super({context:dh});this.innerControlType=ed.CONTROL_TYPE}static get Context(){return dh}set controlType(t){rd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};m([u({type:String,attribute:"control-type",reflect:!0})],id.prototype,"controlType",1);var ch=id;ch.register(td);var hh=ch;As.register($u);var Ax=As;var qn=z.constructTagName("divider"),Go={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Xn={SOLID:"solid",GRADIENT:"gradient"},fr={POSITIVE:"positive",NEGATIVE:"negative"},Zn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Yo={ORIENTATION:Go.HORIZONTAL,VARIANT:Xn.SOLID,ARROW_DIRECTION:fr.NEGATIVE,BUTTON_DIRECTION:fr.NEGATIVE};var Sx=[bt,B`
3166
+ `}};Ds.styles=[...Wa.styles,...Iv],m([u({type:String,reflect:!0})],Ds.prototype,"color",2),m([u({type:String})],Ds.prototype,"label",2);var Fs=Ds;Fs.register(Sv);var Ex=Fs;var _v=z.constructTagName("coachmark"),Uo={COLOR:Oo.CONTRAST,TRIGGER:He.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Ho=class extends Ye{constructor(){super(...arguments);this.trigger=Uo.TRIGGER;this.showArrow=Uo.ARROW;this.closeButton=Uo.CLOSE_BUTTON;this.disableAriaExpanded=Uo.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Uo.COLOR,this.showArrow=Uo.ARROW}};m([u({type:String,reflect:!0})],Ho.prototype,"trigger",2),m([u({type:Boolean,attribute:"show-arrow"})],Ho.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],Ho.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ho.prototype,"disableAriaExpanded",2);var lh=Ho;lh.register(_v);var Tx=lh;var td=z.constructTagName("controltypeprovider"),ed={CONTROL_TYPE:"uncontrolled"},rd=["controlled","uncontrolled"];var xx=td,dh=xx;var id=class extends xe{constructor(){super({context:dh});this.innerControlType=ed.CONTROL_TYPE}static get Context(){return dh}set controlType(t){rd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};m([u({type:String,attribute:"control-type",reflect:!0})],id.prototype,"controlType",1);var ch=id;ch.register(td);var hh=ch;As.register($u);var Ax=As;var ja=z.constructTagName("divider"),Go={HORIZONTAL:"horizontal",VERTICAL:"vertical"},qa={SOLID:"solid",GRADIENT:"gradient"},fr={POSITIVE:"positive",NEGATIVE:"negative"},Xa={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Yo={ORIENTATION:Go.HORIZONTAL,VARIANT:qa.SOLID,ARROW_DIRECTION:fr.NEGATIVE,BUTTON_DIRECTION:fr.NEGATIVE};var Sx=[bt,B`
3156
3167
  :host {
3157
3168
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
3158
3169
  --mdc-divider-width: 0.0625rem;
@@ -3353,11 +3364,11 @@
3353
3364
  :host([data-hidden]) {
3354
3365
  display: none;
3355
3366
  }
3356
- `],Cv=Sx;var qi=class extends j{constructor(){super(...arguments);this.orientation=Yo.ORIENTATION;this.variant=Yo.VARIANT;this.arrowDirection=Yo.ARROW_DIRECTION;this.buttonPosition=Yo.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Xn).includes(t)?t:Yo.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(Go).includes(t)?t:Yo.ORIENTATION)}ensureValidDirections(){let t=this.orientation===Go.HORIZONTAL?fr.NEGATIVE:fr.POSITIVE;Object.values(fr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(fr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let r=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",r)}}getArrowIcon(){let t=this.orientation===Go.HORIZONTAL,r=this.arrowDirection===fr.POSITIVE;return t?r?Zn.UP:Zn.DOWN:r?Zn.RIGHT:Zn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var p;let t=(p=this.shadowRoot)==null?void 0:p.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(r.length>1)return;let s=r.some(f=>f.tagName===Ln.toUpperCase()),d=r.some(f=>f.tagName===li.toUpperCase());s&&!d?this.setAttribute("data-type","mdc-text-divider"):!s&&d&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return _`
3367
+ `],Cv=Sx;var qi=class extends j{constructor(){super(...arguments);this.orientation=Yo.ORIENTATION;this.variant=Yo.VARIANT;this.arrowDirection=Yo.ARROW_DIRECTION;this.buttonPosition=Yo.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(qa).includes(t)?t:Yo.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(Go).includes(t)?t:Yo.ORIENTATION)}ensureValidDirections(){let t=this.orientation===Go.HORIZONTAL?fr.NEGATIVE:fr.POSITIVE;Object.values(fr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(fr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let r=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",r)}}getArrowIcon(){let t=this.orientation===Go.HORIZONTAL,r=this.arrowDirection===fr.POSITIVE;return t?r?Xa.UP:Xa.DOWN:r?Xa.RIGHT:Xa.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 p;let t=(p=this.shadowRoot)==null?void 0:p.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(r.length>1)return;let s=r.some(f=>f.tagName===Na.toUpperCase()),d=r.some(f=>f.tagName===li.toUpperCase());s&&!d?this.setAttribute("data-type","mdc-text-divider"):!s&&d&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return _`
3357
3368
  <div></div>
3358
3369
  <slot @slotchange=${this.inferDividerType}></slot>
3359
3370
  <div></div>
3360
- `}};qi.styles=[...j.styles,...Cv],m([u({type:String,reflect:!0})],qi.prototype,"orientation",2),m([u({type:String,reflect:!0})],qi.prototype,"variant",2),m([u({type:String,attribute:"arrow-direction",reflect:!0})],qi.prototype,"arrowDirection",2),m([u({type:String,attribute:"button-position",reflect:!0})],qi.prototype,"buttonPosition",2);var ph=qi;ph.register(qn);var Ix=ph;var _x=B`
3371
+ `}};qi.styles=[...j.styles,...Cv],m([u({type:String,reflect:!0})],qi.prototype,"orientation",2),m([u({type:String,reflect:!0})],qi.prototype,"variant",2),m([u({type:String,attribute:"arrow-direction",reflect:!0})],qi.prototype,"arrowDirection",2),m([u({type:String,attribute:"button-position",reflect:!0})],qi.prototype,"buttonPosition",2);var ph=qi;ph.register(ja);var Ix=ph;var _x=B`
3361
3372
  :host([selected]) {
3362
3373
  border: 2px solid;
3363
3374
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -3379,7 +3390,7 @@
3379
3390
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3380
3391
  cursor: auto;
3381
3392
  }
3382
- `,wv=[_x];var kv=z.constructTagName("filterchip"),mh={ICON_NAME:"check-bold",COLOR:"default"};var Qn=class extends Fs{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=mh.COLOR}setSelected(t){t?(this.iconName=mh.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)}};Qn.styles=[...Fs.styles,...wv],m([u({type:Boolean,reflect:!0})],Qn.prototype,"selected",2);var uh=Qn;uh.register(kv);var Cx=uh;var wx=B`
3393
+ `,wv=[_x];var kv=z.constructTagName("filterchip"),mh={ICON_NAME:"check-bold",COLOR:"default"};var Za=class extends Fs{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=mh.COLOR}setSelected(t){t?(this.iconName=mh.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)}};Za.styles=[...Fs.styles,...wv],m([u({type:Boolean,reflect:!0})],Za.prototype,"selected",2);var uh=Za;uh.register(kv);var Cx=uh;var wx=B`
3383
3394
  :host::part(container) {
3384
3395
  display: flex;
3385
3396
  flex-direction: column;
@@ -3391,7 +3402,7 @@
3391
3402
  flex-direction: column;
3392
3403
  gap: 0.25rem;
3393
3404
  }
3394
- `,Nv=[wx];var od=class extends Ht(de){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0}render(){var t;return _`
3405
+ `,Nv=[wx];var od=class extends Ht(ie){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0}render(){var t;return _`
3395
3406
  <div
3396
3407
  part="container"
3397
3408
  role="${this.isRadio?J.RADIOGROUP:J.GROUP}"
@@ -3402,7 +3413,7 @@
3402
3413
  <div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
3403
3414
  <slot></slot>
3404
3415
  </div>
3405
- `}};od.styles=[...de.styles,...Nv];var fh=od;var Lv=z.constructTagName("formfieldgroup");fh.register(Lv);var sd=fh;kn.register(sl);var kx=kn;Fn.register(_l);var Nx=Fn;var Ko=hi(class extends Hr{constructor(a){if(super(a),a.type!==er.PROPERTY&&a.type!==er.ATTRIBUTE&&a.type!==er.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!hl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===Te||o===W)return o;let t=a.element,r=a.name;if(a.type===er.PROPERTY){if(o===t[r])return Te}else if(a.type===er.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return Te}else if(a.type===er.ATTRIBUTE&&t.getAttribute(r)===o+"")return Te;return pl(a),o}});de.register(kf);var rr=de;var Ov=z.constructTagName("input"),nd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},$s={OFF:"off",ON:"on"},Xi={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Mv={MAX_LENGTH:10,VALIDATION:zt.ERROR},yi={VALIDATION:zt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:$t.TERTIARY,CLEAR_BUTTON_SIZE:cr[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:$s.OFF,INPUT_TYPE:Xi.TEXT};var Lx=[B`
3416
+ `}};od.styles=[...ie.styles,...Nv];var fh=od;var Lv=z.constructTagName("formfieldgroup");fh.register(Lv);var sd=fh;wa.register(sl);var kx=wa;Da.register(_l);var Nx=Da;var Ko=hi(class extends Hr{constructor(n){if(super(n),n.type!==er.PROPERTY&&n.type!==er.ATTRIBUTE&&n.type!==er.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!hl(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===Te||o===W)return o;let t=n.element,r=n.name;if(n.type===er.PROPERTY){if(o===t[r])return Te}else if(n.type===er.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return Te}else if(n.type===er.ATTRIBUTE&&t.getAttribute(r)===o+"")return Te;return pl(n),o}});ie.register(kf);var rr=ie;var Ov=z.constructTagName("input"),ad={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},$s={OFF:"off",ON:"on"},Xi={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Mv={MAX_LENGTH:10,VALIDATION:zt.ERROR},yi={VALIDATION:zt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:$t.TERTIARY,CLEAR_BUTTON_SIZE:cr[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:$s.OFF,INPUT_TYPE:Xi.TEXT};var Lx=[B`
3406
3417
  :host {
3407
3418
  --mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
3408
3419
  --mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
@@ -3522,7 +3533,7 @@
3522
3533
  opacity: 0;
3523
3534
  pointer-events: none;
3524
3535
  }
3525
- `,...St(!0)],Rv=Lx;var ce=class extends kt(Ae(Ce(Ht(rr)))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=nd.OFF;this.autocomplete=$s.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,r,s){super.attributeChangedCallback(t,r,s),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(d=>{this.onerror&&this.onerror(d)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}handleKeyDown(t){var r;this.getActionForKeyEvent(t)===Z.ENTER&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?_`
3536
+ `,...St(!0)],Rv=Lx;var ce=class extends kt(Ae(Ce(Ht(rr)))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=ad.OFF;this.autocomplete=$s.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,r,s){super.attributeChangedCallback(t,r,s),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(d=>{this.onerror&&this.onerror(d)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}handleKeyDown(t){var r;this.getActionForKeyEvent(t)===Z.ENTER&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?_`
3526
3537
  <mdc-icon
3527
3538
  part="leading-icon"
3528
3539
  name=${this.leadingIcon}
@@ -3621,7 +3632,7 @@
3621
3632
  width: 1.25rem;
3622
3633
  height: 1.25rem;
3623
3634
  }
3624
- `,Pv=[bt,Mx];var ad=z.constructTagName("inputchip"),ld={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var Wo=class extends Qt(Ut(j)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return _`
3635
+ `,Pv=[bt,Mx];var nd=z.constructTagName("inputchip"),ld={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var Wo=class extends Qt(Ut(j)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return _`
3625
3636
  <slot name="prefix">
3626
3637
  ${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:W}
3627
3638
  </slot>
@@ -3639,7 +3650,7 @@
3639
3650
  size="20"
3640
3651
  @click="${this.handleClose}"
3641
3652
  ></mdc-button>
3642
- `}};Wo.styles=[...j.styles,...Pv],m([u({type:String})],Wo.prototype,"label",2),m([u({type:Boolean})],Wo.prototype,"error",2),m([u({type:String,attribute:"clear-aria-label"})],Wo.prototype,"clearAriaLabel",2);var vh=Wo;vh.register(ad);var Rx=vh;var Px=B`
3653
+ `}};Wo.styles=[...j.styles,...Pv],m([u({type:String})],Wo.prototype,"label",2),m([u({type:Boolean})],Wo.prototype,"error",2),m([u({type:String,attribute:"clear-aria-label"})],Wo.prototype,"clearAriaLabel",2);var vh=Wo;vh.register(nd);var Rx=vh;var Px=B`
3643
3654
  :host::part(anchor) {
3644
3655
  display: flex;
3645
3656
  align-items: center;
@@ -3699,8 +3710,8 @@
3699
3710
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
3700
3711
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
3701
3712
  }
3702
- `,Dv=[Px];var Jn=class extends Qt(Yr){constructor(){super(...arguments);this.size=Ru.LINK_SIZE}getIconSize(){switch(this.size){case El.SMALL:return Tl.SMALL;case El.MIDSIZE:return Tl.MIDSIZE;default:return Tl.LARGE}}renderAnchorContent(){return _` <slot></slot>
3703
- ${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:W}`}};Jn.styles=[...Yr.styles,...Dv],m([u({type:String,reflect:!0})],Jn.prototype,"size",2);var gh=Jn;gh.register(yl);var Dx=gh;var Fv=z.constructTagName("linkbutton"),zs={12:12,14:14,16:16},Vs={SIZE:zs[16],ROLE:J.BUTTON,INLINE:Cs.INLINE,INVERTED:Cs.INVERTED};var $v=a=>{switch(a){case zs[12]:return .75;case zs[14]:return .875;default:return 1}};var Fx=B`
3713
+ `,Dv=[Px];var Qa=class extends Qt(Yr){constructor(){super(...arguments);this.size=Ru.LINK_SIZE}getIconSize(){switch(this.size){case El.SMALL:return Tl.SMALL;case El.MIDSIZE:return Tl.MIDSIZE;default:return Tl.LARGE}}renderAnchorContent(){return _` <slot></slot>
3714
+ ${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:W}`}};Qa.styles=[...Yr.styles,...Dv],m([u({type:String,reflect:!0})],Qa.prototype,"size",2);var gh=Qa;gh.register(yl);var Dx=gh;var Fv=z.constructTagName("linkbutton"),zs={12:12,14:14,16:16},Vs={SIZE:zs[16],ROLE:J.BUTTON,INLINE:Cs.INLINE,INVERTED:Cs.INVERTED};var $v=n=>{switch(n){case zs[12]:return .75;case zs[14]:return .875;default:return 1}};var Fx=B`
3704
3715
  :host {
3705
3716
  gap: 0.25rem;
3706
3717
  cursor: pointer;
@@ -3799,10 +3810,10 @@
3799
3810
  color: var(--mdc-link-color-disabled);
3800
3811
  pointer-events: none;
3801
3812
  }
3802
- `,zv=[Fx,...St()];var jo=class extends Qt(ae){constructor(){super(...arguments);this.size=Vs.SIZE;this.inline=Vs.INLINE;this.inverted=Vs.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Vs.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(zs).includes(t)?`${t}`:Vs.SIZE.toString())}render(){return _`
3813
+ `,zv=[Fx,...St()];var jo=class extends Qt(le){constructor(){super(...arguments);this.size=Vs.SIZE;this.inline=Vs.INLINE;this.inverted=Vs.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Vs.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(zs).includes(t)?`${t}`:Vs.SIZE.toString())}render(){return _`
3803
3814
  <slot></slot>
3804
3815
  ${this.iconName?_` <mdc-icon name=${this.iconName} size=${$v(this.size)} length-unit="rem"></mdc-icon> `:W}
3805
- `}};jo.styles=[...Yr.styles,...zv],m([u({type:Number,reflect:!0})],jo.prototype,"size",2),m([u({type:Boolean,reflect:!0})],jo.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],jo.prototype,"inverted",2);var bh=jo;bh.register(Fv);var $x=bh;Yr.register(bf);var zx=Yr;var Bs=a=>{class o extends kt(a){constructor(...s){super(...s);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.handleNavigationClick=s=>{let d=s.target,p=this.getCurrentIndex(d);if(p!==-1){let f=!(this.navItems.at(p)!==d&&document.activeElement===s.target);this.resetTabIndexAndSetFocus(p,void 0,f,!1)}};this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}async firstUpdated(s){super.firstUpdated(s),this.setInitialFocus()}setInitialFocus(){let s=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(s,void 0,!1)}handleNavigationKeyDown(s){let d=this.getActionForKeyEvent(s,!0),p=new Set([Z.DOWN,Z.UP,Z.HOME,Z.END]);if(!d||!p.has(d))return;let f=s.target,T=this.getCurrentIndex(f);if(T!==-1){switch(this.resetTabIndexes(T),d){case Z.HOME:{this.resetTabIndexAndSetFocus(0,T);break}case Z.END:{this.resetTabIndexAndSetFocus(this.navItems.length-1,T);break}case Z.DOWN:{let L=this.shouldLoop()?0:T,U=T+1===this.navItems.length?L:T+1;this.resetTabIndexAndSetFocus(U,T);break}case Z.UP:{let L=this.shouldLoop()?this.navItems.length-1:T,U=T-1===-1?L:T-1;this.resetTabIndexAndSetFocus(U,T);break}default:break}this.propagateAllKeyEvents||(s.stopPropagation(),s.preventDefault())}}getCurrentIndex(s){return s?this.navItems.findIndex(d=>d===s||!!(d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(s,d=!0){var p;if(this.navItems.length>0){this.navItems.forEach(L=>L.setAttribute("tabindex","-1"));let f=this.navItems.at(s)?s:0,T=(p=this.navItems.at(f))!=null?p:this.navItems.find(Boolean);T&&(T.setAttribute("tabindex","0"),d&&T.focus())}}resetTabIndexAndSetFocus(s,d,p=!0,f=!0){var U;let{navItems:T}=this;if(T.length===0)return;let L=(U=T.at(s))!=null?U:T.find(Boolean);s===d&&L&&L.getAttribute("tabindex")==="0"||(d===void 0?T.forEach(q=>q.setAttribute("tabindex","-1")):T.at(d)&&T.at(d).setAttribute("tabindex","-1"),L.setAttribute("tabindex","0"),p&&(L.focus({preventScroll:!0}),f&&L.scrollIntoView({block:"nearest"})))}shouldLoop(){return this.loop!=="false"}}return o};var dd=z.constructTagName("listitem"),ta={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Vv={VARIANT:ta.FULL_WIDTH};var Gt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Vx=a=>!!a,Xr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||Vx,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Gt.CREATED,this.itemCreationHandler),this.host.addEventListener(Gt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Gt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Gt.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||!Nu(this.cache.at(-1),o))return-1;let t=0,r=this.cache.length-1;for(;t<=r;){let s=Math.floor((t+r)/2);Lu(this.cache[s],o)?t=s+1:r=s-1}return t}addItem(o,t=void 0){var s;let r=o;if(this.isValidItem(r)&&!this.cache.includes(r)){let d=t===void 0?this.getIndexToInsertInCache(r):t;this.onStoreUpdate&&((s=this.onStoreUpdate)==null||s.call(this,r,"added",d===-1?this.cache.length:d,this.cache.slice())),d===-1?this.cache.push(r):d>=0&&this.cache.splice(d,0,r)}}delete(o){var r;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((r=this.onStoreUpdate)==null||r.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 Zi=a=>{class o extends a{constructor(...s){super(...s);this.handleItemCreation=s=>{let d=s.target;d&&d.addEventListener(Gt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===Gt.DESTROYED&&(s.target.removeEventListener(Gt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(Gt.CREATED,this.handleItemCreation)}}return o};var Bx=B`
3816
+ `}};jo.styles=[...Yr.styles,...zv],m([u({type:Number,reflect:!0})],jo.prototype,"size",2),m([u({type:Boolean,reflect:!0})],jo.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],jo.prototype,"inverted",2);var bh=jo;bh.register(Fv);var $x=bh;Yr.register(bf);var zx=Yr;var Bs=n=>{class o extends kt(n){constructor(...s){super(...s);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.handleNavigationClick=s=>{let d=s.target,p=this.getCurrentIndex(d);if(p!==-1){let f=!(this.navItems.at(p)!==d&&document.activeElement===s.target);this.resetTabIndexAndSetFocus(p,void 0,f,!1)}};this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}async firstUpdated(s){super.firstUpdated(s),this.setInitialFocus()}setInitialFocus(){let s=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(s,void 0,!1)}handleNavigationKeyDown(s){let d=this.getActionForKeyEvent(s,!0),p=new Set([Z.DOWN,Z.UP,Z.HOME,Z.END]);if(!d||!p.has(d))return;let f=s.target,T=this.getCurrentIndex(f);if(T!==-1){switch(this.resetTabIndexes(T),d){case Z.HOME:{this.resetTabIndexAndSetFocus(0,T);break}case Z.END:{this.resetTabIndexAndSetFocus(this.navItems.length-1,T);break}case Z.DOWN:{let L=this.shouldLoop()?0:T,U=T+1===this.navItems.length?L:T+1;this.resetTabIndexAndSetFocus(U,T);break}case Z.UP:{let L=this.shouldLoop()?this.navItems.length-1:T,U=T-1===-1?L:T-1;this.resetTabIndexAndSetFocus(U,T);break}default:break}this.propagateAllKeyEvents||(s.stopPropagation(),s.preventDefault())}}getCurrentIndex(s){return s?this.navItems.findIndex(d=>d===s||!!(d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(s,d=!0){var p;if(this.navItems.length>0){this.navItems.forEach(L=>L.setAttribute("tabindex","-1"));let f=this.navItems.at(s)?s:0,T=(p=this.navItems.at(f))!=null?p:this.navItems.find(Boolean);T&&(T.setAttribute("tabindex","0"),d&&T.focus())}}resetTabIndexAndSetFocus(s,d,p=!0,f=!0){var U;let{navItems:T}=this;if(T.length===0)return;let L=(U=T.at(s))!=null?U:T.find(Boolean);s===d&&L&&L.getAttribute("tabindex")==="0"||(d===void 0?T.forEach(q=>q.setAttribute("tabindex","-1")):T.at(d)&&T.at(d).setAttribute("tabindex","-1"),L.setAttribute("tabindex","0"),p&&(L.focus({preventScroll:!0}),f&&L.scrollIntoView({block:"nearest"})))}shouldLoop(){return this.loop!=="false"}}return o};var dd=z.constructTagName("listitem"),Ja={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Vv={VARIANT:Ja.FULL_WIDTH};var Gt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Vx=n=>!!n,Xr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||Vx,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Gt.CREATED,this.itemCreationHandler),this.host.addEventListener(Gt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Gt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Gt.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||!Nu(this.cache.at(-1),o))return-1;let t=0,r=this.cache.length-1;for(;t<=r;){let s=Math.floor((t+r)/2);Lu(this.cache[s],o)?t=s+1:r=s-1}return t}addItem(o,t=void 0){var s;let r=o;if(this.isValidItem(r)&&!this.cache.includes(r)){let d=t===void 0?this.getIndexToInsertInCache(r):t;this.onStoreUpdate&&((s=this.onStoreUpdate)==null||s.call(this,r,"added",d===-1?this.cache.length:d,this.cache.slice())),d===-1?this.cache.push(r):d>=0&&this.cache.splice(d,0,r)}}delete(o){var r;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((r=this.onStoreUpdate)==null||r.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 Zi=n=>{class o extends n{constructor(...s){super(...s);this.handleItemCreation=s=>{let d=s.target;d&&d.addEventListener(Gt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===Gt.DESTROYED&&(s.target.removeEventListener(Gt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(Gt.CREATED,this.handleItemCreation)}}return o};var Bx=B`
3806
3817
  :host {
3807
3818
  display: flex;
3808
3819
  flex-direction: column;
@@ -3867,7 +3878,7 @@
3867
3878
  size="1"
3868
3879
  length-unit="rem"
3869
3880
  ></mdc-icon>`:W}
3870
- `}};Qi.styles=[...j.styles,...Hv],m([u({type:String,attribute:"prefix-icon"})],Qi.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon"})],Qi.prototype,"postfixIcon",2),m([u({type:String,attribute:"header-text"})],Qi.prototype,"headerText",2),m([u({type:Boolean,reflect:!0})],Qi.prototype,"disabled",2);var Th=Qi;var Gv=z.constructTagName("listheader");Th.register(Gv);var Hx=Th;var Yv=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new Event(Gt.CREATED,{bubbles:!0,composed:!0})),this.updateComplete.then(()=>{this.dispatchEvent(new Event(Gt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new Event(Gt.DESTROYED,{bubbles:!0,composed:!0}))}dispatchModifiedEvent(r){this.dispatchEvent(new CustomEvent(Gt.MODIFIED,{detail:{change:r},bubbles:!0,composed:!0}))}}return o};var ea=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 Gx=B`
3881
+ `}};Qi.styles=[...j.styles,...Hv],m([u({type:String,attribute:"prefix-icon"})],Qi.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon"})],Qi.prototype,"postfixIcon",2),m([u({type:String,attribute:"header-text"})],Qi.prototype,"headerText",2),m([u({type:Boolean,reflect:!0})],Qi.prototype,"disabled",2);var Th=Qi;var Gv=z.constructTagName("listheader");Th.register(Gv);var Hx=Th;var Yv=n=>{class o extends n{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new Event(Gt.CREATED,{bubbles:!0,composed:!0})),this.updateComplete.then(()=>{this.dispatchEvent(new Event(Gt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new Event(Gt.DESTROYED,{bubbles:!0,composed:!0}))}dispatchModifiedEvent(r){this.dispatchEvent(new CustomEvent(Gt.MODIFIED,{detail:{change:r},bubbles:!0,composed:!0}))}}return o};var tn=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 Gx=B`
3871
3882
  :host {
3872
3883
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
3873
3884
  --mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
@@ -3984,7 +3995,7 @@
3984
3995
  <slot name="${t}">
3985
3996
  ${s?_`<mdc-text part="${t}" type="${r}" tagname="${pt.SPAN}">${s}</mdc-text>`:W}
3986
3997
  </slot>
3987
- `}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{t?(r.setAttribute("disabled",""),ea.onDisableListItem(this)):(r.removeAttribute("disabled"),ea.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.dispatchModifiedEvent(this.disabled?"disabled":"enabled")),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled),t.has("dataIndex")&&(this.ariaPosInSet=`${this.dataIndex!==void 0?this.dataIndex+1:""}`)}renderTrailingControls(){return _`<slot
3998
+ `}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{t?(r.setAttribute("disabled",""),tn.onDisableListItem(this)):(r.removeAttribute("disabled"),tn.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.dispatchModifiedEvent(this.disabled?"disabled":"enabled")),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled),t.has("dataIndex")&&(this.ariaPosInSet=`${this.dataIndex!==void 0?this.dataIndex+1:""}`)}renderTrailingControls(){return _`<slot
3988
3999
  name="trailing-controls"
3989
4000
  @click=${this.stopEventPropagation}
3990
4001
  @keyup=${this.stopEventPropagation}
@@ -4037,7 +4048,7 @@
4037
4048
  var(--mdc-marker-striped-background-color) 0.375rem
4038
4049
  );
4039
4050
  }
4040
- `,Wv=[Kx];var jv=z.constructTagName("marker"),qv={SOLID:"solid",STRIPED:"striped"};var ra=class extends j{constructor(){super(...arguments);this.variant=qv.SOLID}};ra.styles=[...j.styles,...Wv],m([u({type:String,reflect:!0})],ra.prototype,"variant",2);var xh=ra;xh.register(jv);var Wx=xh;var ie=z.constructTagName("menupopover"),Ah={PLACEMENT:Nt.BOTTOM_START,ORIENTATION:"vertical"};var Ti=z.constructTagName("menusection"),Xv={DIVIDER_VARIANT:"solid"};var Ji=z.constructTagName("sidenavigation"),We={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},cd={VARIANT:We.FLEXIBLE};var ia=z.constructTagName("menubar"),Zv={ORIENTATION:"vertical"};var jx=B`
4051
+ `,Wv=[Kx];var jv=z.constructTagName("marker"),qv={SOLID:"solid",STRIPED:"striped"};var en=class extends j{constructor(){super(...arguments);this.variant=qv.SOLID}};en.styles=[...j.styles,...Wv],m([u({type:String,reflect:!0})],en.prototype,"variant",2);var xh=en;xh.register(jv);var Wx=xh;var oe=z.constructTagName("menupopover"),Ah={PLACEMENT:Nt.BOTTOM_START,ORIENTATION:"vertical"};var Ti=z.constructTagName("menusection"),Xv={DIVIDER_VARIANT:"solid"};var Ji=z.constructTagName("sidenavigation"),We={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},cd={VARIANT:We.FLEXIBLE};var rn=z.constructTagName("menubar"),Zv={ORIENTATION:"vertical"};var jx=B`
4041
4052
  :host {
4042
4053
  display: flex;
4043
4054
  }
@@ -4049,7 +4060,7 @@
4049
4060
  :host([aria-orientation='vertical']) {
4050
4061
  flex-direction: column;
4051
4062
  }
4052
- `,Qv=[jx];var oa=class extends kt(j){constructor(){super();this.depthManager=new Hi(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(r=>r===this)){let r=t.target;if(!r||!this.isTopLevelMenuItem(r))return;let s=this.menuItems.filter(p=>p!==r);this.getVisibleSubMenusOfItems(s).forEach(p=>{p.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=J.MENUBAR,this.ariaOrientation=Zv.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(r=>{r.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var p,f;let t=(p=this.shadowRoot)==null?void 0:p.querySelector("slot"),r=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],s=[],d=T=>{T.role===J.MENUITEM&&!T.hasAttribute("disabled")?s.push(T):T.tagName.toLowerCase()===Ti&&Array.from(T.children).forEach(d)};return r.forEach(d),s}getVisibleSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{var f;let d=s.getAttribute("id");if(!d)return;let p=(f=document.querySelector)==null?void 0:f.call(document,`${ie}[triggerid="${d}"]`);p&&p.visible&&r.push(p)}),r}getAllPopovers(){var d,p;if(!this.menuItems.length)return[];let t=(p=(d=this.menuItems[0])==null?void 0:d.closest(Ji))!=null?p:this;if(!t)return[];let r=[],s=f=>{f.querySelectorAll(`${ie}`).forEach(T=>{r.push(T)}),f.querySelectorAll("slot").forEach(T=>{T.assignedElements({flatten:!0}).forEach(s)})};return s(t),r}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((r,s)=>{let d=s===0?"0":"-1";r==null||r.setAttribute("tabindex",d)})}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t||r===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(r=>r.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(d=>d.getAttribute("id")===t))return;let s=this.getSubmenu(t);s&&s.show()}updatePopoverPlacement(){let t=Nt.RIGHT_START;this.getAllPopovers().forEach(r=>{r.setAttribute("placement",t)})}updateTabIndexAndFocus(t,r,s){var d,p,f;s<0||r<0||(r!==s&&((d=t[r])==null||d.setAttribute("tabindex","-1"),(p=t[s])==null||p.setAttribute("tabindex","0")),(f=t[s])==null||f.focus())}navigateToMenuItem(t,r,s=!1){var f;let{length:d}=this.menuItems;if(d===0)return;let p=t;if(p=r==="prev"?(t-1+d)%d:(t+1)%d,this.updateTabIndexAndFocus(this.menuItems,t,p),s){let T=(f=this.menuItems[p])==null?void 0:f.getAttribute("id");this.getSubmenu(T)&&!this.menuItems[p].hasAttribute("soft-disabled")&&this.showSubmenu(T)}}isTopLevelMenuItem(t){var p;let r=t.parentElement;if(!r||t.role!==J.MENUITEM)return!1;let s=r.tagName.toLowerCase(),d=(p=r.parentElement)==null?void 0:p.tagName.toLowerCase();return s===ia||s===Ji||s===Ti&&(d===ia||d===Ji)}isNestedMenuItem(t){return!!t.closest(ie)&&t.role===J.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(r=>this.contains(r));await Promise.all(t.map(r=>r.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===J.MENUITEM){let s=t.closest(ie),d=s==null?void 0:s.getAttribute("triggerid"),p=this.menuItems.find(f=>f.getAttribute("id")===d);if(p){this.isTopLevelMenuItem(p)&&(s==null||s.hide()),await(s==null?void 0:s.updateComplete);let f=this.getCurrentIndex(p);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id);else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let r=this.getParentMenuItemIndex(t);r>=0&&this.navigateToMenuItem(r,"next",!0)}}getParentMenuItemIndex(t){let r=t.parentElement;for(;r;){if(r.tagName.toLowerCase()===ie){let s=r.getAttribute("triggerid"),d=this.menuItems.find(p=>p.getAttribute("id")===s);if(d)return this.isTopLevelMenuItem(d)?this.menuItems.findIndex(p=>p===d):this.getParentMenuItemIndex(d)}r=r.parentElement}return-1}async handleKeyDown(t){let r=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case Z.HOME:this.updateTabIndexAndFocus(this.menuItems,r,0);break;case Z.END:this.updateTabIndexAndFocus(this.menuItems,r,this.menuItems.length-1);break;case Z.LEFT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnLeft(d);break}case Z.RIGHT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnRight(d);break}case Z.UP:{this.navigateToMenuItem(r,"prev"),t.preventDefault();break}case Z.DOWN:{this.navigateToMenuItem(r,"next"),t.preventDefault();break}default:break}}render(){return _`<slot></slot>`}};oa.styles=[...j.styles,...Qv],m([Dt({selector:"mdc-menusection",flatten:!0})],oa.prototype,"menusections",2);var Sh=oa;Sh.register(ia);var qx=Sh;var sa=z.constructTagName("menuitem"),na={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Ih={POSITIVE:"positive",NEGATIVE:"negative"},_h={LEADING:"leading",TRAILING:"trailing"};var Xx=B`
4063
+ `,Qv=[jx];var on=class extends kt(j){constructor(){super();this.depthManager=new Hi(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(r=>r===this)){let r=t.target;if(!r||!this.isTopLevelMenuItem(r))return;let s=this.menuItems.filter(p=>p!==r);this.getVisibleSubMenusOfItems(s).forEach(p=>{p.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=J.MENUBAR,this.ariaOrientation=Zv.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(r=>{r.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var p,f;let t=(p=this.shadowRoot)==null?void 0:p.querySelector("slot"),r=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],s=[],d=T=>{T.role===J.MENUITEM&&!T.hasAttribute("disabled")?s.push(T):T.tagName.toLowerCase()===Ti&&Array.from(T.children).forEach(d)};return r.forEach(d),s}getVisibleSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{var f;let d=s.getAttribute("id");if(!d)return;let p=(f=document.querySelector)==null?void 0:f.call(document,`${oe}[triggerid="${d}"]`);p&&p.visible&&r.push(p)}),r}getAllPopovers(){var d,p;if(!this.menuItems.length)return[];let t=(p=(d=this.menuItems[0])==null?void 0:d.closest(Ji))!=null?p:this;if(!t)return[];let r=[],s=f=>{f.querySelectorAll(`${oe}`).forEach(T=>{r.push(T)}),f.querySelectorAll("slot").forEach(T=>{T.assignedElements({flatten:!0}).forEach(s)})};return s(t),r}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((r,s)=>{let d=s===0?"0":"-1";r==null||r.setAttribute("tabindex",d)})}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t||r===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(r=>r.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(d=>d.getAttribute("id")===t))return;let s=this.getSubmenu(t);s&&s.show()}updatePopoverPlacement(){let t=Nt.RIGHT_START;this.getAllPopovers().forEach(r=>{r.setAttribute("placement",t)})}updateTabIndexAndFocus(t,r,s){var d,p,f;s<0||r<0||(r!==s&&((d=t[r])==null||d.setAttribute("tabindex","-1"),(p=t[s])==null||p.setAttribute("tabindex","0")),(f=t[s])==null||f.focus())}navigateToMenuItem(t,r,s=!1){var f;let{length:d}=this.menuItems;if(d===0)return;let p=t;if(p=r==="prev"?(t-1+d)%d:(t+1)%d,this.updateTabIndexAndFocus(this.menuItems,t,p),s){let T=(f=this.menuItems[p])==null?void 0:f.getAttribute("id");this.getSubmenu(T)&&!this.menuItems[p].hasAttribute("soft-disabled")&&this.showSubmenu(T)}}isTopLevelMenuItem(t){var p;let r=t.parentElement;if(!r||t.role!==J.MENUITEM)return!1;let s=r.tagName.toLowerCase(),d=(p=r.parentElement)==null?void 0:p.tagName.toLowerCase();return s===rn||s===Ji||s===Ti&&(d===rn||d===Ji)}isNestedMenuItem(t){return!!t.closest(oe)&&t.role===J.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(r=>this.contains(r));await Promise.all(t.map(r=>r.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===J.MENUITEM){let s=t.closest(oe),d=s==null?void 0:s.getAttribute("triggerid"),p=this.menuItems.find(f=>f.getAttribute("id")===d);if(p){this.isTopLevelMenuItem(p)&&(s==null||s.hide()),await(s==null?void 0:s.updateComplete);let f=this.getCurrentIndex(p);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id);else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let r=this.getParentMenuItemIndex(t);r>=0&&this.navigateToMenuItem(r,"next",!0)}}getParentMenuItemIndex(t){let r=t.parentElement;for(;r;){if(r.tagName.toLowerCase()===oe){let s=r.getAttribute("triggerid"),d=this.menuItems.find(p=>p.getAttribute("id")===s);if(d)return this.isTopLevelMenuItem(d)?this.menuItems.findIndex(p=>p===d):this.getParentMenuItemIndex(d)}r=r.parentElement}return-1}async handleKeyDown(t){let r=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case Z.HOME:this.updateTabIndexAndFocus(this.menuItems,r,0);break;case Z.END:this.updateTabIndexAndFocus(this.menuItems,r,this.menuItems.length-1);break;case Z.LEFT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnLeft(d);break}case Z.RIGHT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnRight(d);break}case Z.UP:{this.navigateToMenuItem(r,"prev"),t.preventDefault();break}case Z.DOWN:{this.navigateToMenuItem(r,"next"),t.preventDefault();break}default:break}}render(){return _`<slot></slot>`}};on.styles=[...j.styles,...Qv],m([Dt({selector:"mdc-menusection",flatten:!0})],on.prototype,"menusections",2);var Sh=on;Sh.register(rn);var qx=Sh;var sn=z.constructTagName("menuitem"),an={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Ih={POSITIVE:"positive",NEGATIVE:"negative"},_h={LEADING:"leading",TRAILING:"trailing"};var Xx=B`
4053
4064
  :host(:dir(rtl))::part(trailing-arrow),
4054
4065
  :host(:dir(rtl))::part(leading-arrow) {
4055
4066
  transform: rotate(180deg);
@@ -4058,7 +4069,7 @@
4058
4069
  :host::part(leading-arrow) {
4059
4070
  --mdc-icon-size: 1rem;
4060
4071
  }
4061
- `,Jv=[Xx];var to=class extends Ei{constructor(){super(),this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(o){this.getActionForKeyEvent(o)===Z.ENTER&&(this.triggerClickEvent(o),o.preventDefault())}handleKeyUp(o){this.getActionForKeyEvent(o)===Z.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEM,this.variant=ta.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Ih.NEGATIVE?na.LEFT:na.RIGHT;return _`
4072
+ `,Jv=[Xx];var to=class extends Ei{constructor(){super(),this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(o){this.getActionForKeyEvent(o)===Z.ENTER&&(this.triggerClickEvent(o),o.preventDefault())}handleKeyUp(o){this.getActionForKeyEvent(o)===Z.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEM,this.variant=Ja.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Ih.NEGATIVE?an.LEFT:an.RIGHT;return _`
4062
4073
  <slot
4063
4074
  name="trailing-controls"
4064
4075
  @click=${this.stopEventPropagation}
@@ -4066,7 +4077,7 @@
4066
4077
  @keydown=${this.stopEventPropagation}
4067
4078
  ></slot>
4068
4079
  ${this.arrowPosition===_h.TRAILING?_`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:W}
4069
- `}renderLeadingControls(){let o=this.arrowDirection===Ih.POSITIVE?na.RIGHT:na.LEFT;return _`
4080
+ `}renderLeadingControls(){let o=this.arrowDirection===Ih.POSITIVE?an.RIGHT:an.LEFT;return _`
4070
4081
  <slot
4071
4082
  name="leading-controls"
4072
4083
  @click=${this.stopEventPropagation}
@@ -4074,7 +4085,7 @@
4074
4085
  @keydown=${this.stopEventPropagation}
4075
4086
  ></slot>
4076
4087
  ${this.arrowPosition===_h.LEADING?_`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
4077
- `}};to.styles=[...Ei.styles,...Jv],m([u({type:String,reflect:!0,attribute:"arrow-position"})],to.prototype,"arrowPosition",2),m([u({type:String,reflect:!0,attribute:"arrow-direction"})],to.prototype,"arrowDirection",2),m([u({type:String,reflect:!0})],to.prototype,"name",2),m([u({type:String,reflect:!0})],to.prototype,"value",2);var vr=to;vr.register(sa);var Zx=vr;var tg=z.constructTagName("statictoggle"),Qx={DEFAULT:"default",COMPACT:"compact"},Ch={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},eg={compact:.75,default:1.25},rg={SIZE:Qx.DEFAULT};var Jx=[B`
4088
+ `}};to.styles=[...Ei.styles,...Jv],m([u({type:String,reflect:!0,attribute:"arrow-position"})],to.prototype,"arrowPosition",2),m([u({type:String,reflect:!0,attribute:"arrow-direction"})],to.prototype,"arrowDirection",2),m([u({type:String,reflect:!0})],to.prototype,"name",2),m([u({type:String,reflect:!0})],to.prototype,"value",2);var vr=to;vr.register(sn);var Zx=vr;var tg=z.constructTagName("statictoggle"),Qx={DEFAULT:"default",COMPACT:"compact"},Ch={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},eg={compact:.75,default:1.25},rg={SIZE:Qx.DEFAULT};var Jx=[B`
4078
4089
  :host {
4079
4090
  --mdc-statictoggle-width: 3rem;
4080
4091
  --mdc-statictoggle-height: 1.5rem;
@@ -4179,7 +4190,7 @@
4179
4190
  size="${eg[this.size]}"
4180
4191
  ></mdc-icon>
4181
4192
  </div>
4182
- `}};eo.styles=[...j.styles,...ig],m([u({type:Boolean,reflect:!0})],eo.prototype,"checked",2),m([u({type:String,reflect:!0})],eo.prototype,"size",2),m([u({type:Boolean,reflect:!0})],eo.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],eo.prototype,"softDisabled",2);var wh=eo;wh.register(tg);var tA=wh;var aa=z.constructTagName("tooltip"),gr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Re={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${He.MOUSEENTER} ${He.FOCUSIN}`,OFFSET:4,PLACEMENT:Nt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:gr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var eA=B`
4193
+ `}};eo.styles=[...j.styles,...ig],m([u({type:Boolean,reflect:!0})],eo.prototype,"checked",2),m([u({type:String,reflect:!0})],eo.prototype,"size",2),m([u({type:Boolean,reflect:!0})],eo.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],eo.prototype,"softDisabled",2);var wh=eo;wh.register(tg);var tA=wh;var nn=z.constructTagName("tooltip"),gr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Re={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${He.MOUSEENTER} ${He.FOCUSIN}`,OFFSET:4,PLACEMENT:Nt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:gr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var eA=B`
4183
4194
  :host {
4184
4195
  --mdc-tooltip-max-width: 400px;
4185
4196
  --mdc-tooltip-padding: 0.75rem;
@@ -4203,29 +4214,29 @@
4203
4214
  :host([color='contrast'])::part(popover-content) {
4204
4215
  color: var(--mdc-tooltip-text-color-contrast);
4205
4216
  }
4206
- `,og=[eA];var Gs=class extends Ye{constructor(){super(...arguments);this.tooltipType=Re.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Re.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=J.TOOLTIP,this.ariaHidden=Re.ARIA_HIDDEN,this.backdrop=Re.BACKDROP,this.delay=this.delay||Re.DELAY,this.disableAriaExpanded=Re.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Re.HIDE_ON_BLUR,this.hideOnEscape=Re.HIDE_ON_ESCAPE,this.offset=this.offset||Re.OFFSET,this.placement=this.placement||Re.PLACEMENT,this.trigger=Re.TRIGGER,this.closeButton=At.CLOSE_BUTTON,this.disableFlip=At.DISABLE_FLIP,this.focusBackToTrigger=At.FOCUS_BACK,this.focusTrap=At.FOCUS_TRAP,this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE,this.interactive=At.INTERACTIVE,this.preventScroll=At.PREVENT_SCROLL,this.size=At.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(gr).includes(t)?t:Re.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Ie()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case gr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case gr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Nt).includes(this.placement)||(this.placement=Re.PLACEMENT)}onTooltipTypeUpdated(t){let r=t.get("tooltipType");if(Object.values(gr).includes(this.tooltipType)||this.setTooltipType(Re.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case gr.DESCRIPTION:r===gr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case gr.LABEL:r===gr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:r===gr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):r===gr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,r){let{triggerElement:s}=this;t===r||!s||(r||this.depthManager.remove([this]),await super.isOpenUpdated(t,r))}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&&Mu(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};Gs.styles=[...Ye.styles,...og],m([u({type:String,attribute:"tooltip-type",reflect:!0})],Gs.prototype,"tooltipType",2),m([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],Gs.prototype,"onlyShowWhenTriggerOverflows",2);var kh=Gs;kh.register(aa);var rA=kh;var ro=hi(class extends Hr{constructor(a){var o;if(super(a),a.type!==er.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 r,s;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(d=>d!=="")));for(let d in o)o[d]&&!((r=this.nt)!=null&&r.has(d))&&this.st.add(d);return this.render(o)}let t=a.element.classList;for(let d of this.st)d in o||(t.remove(d),this.st.delete(d));for(let d in o){let p=!!o[d];p===this.st.has(d)||(s=this.nt)!=null&&s.has(d)||(p?(t.add(d),this.st.add(d)):(t.remove(d),this.st.delete(d)))}return Te}});var sg=z.constructTagName("toggle"),la={DEFAULT:"default",COMPACT:"compact"};var Nh={SIZE:la.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var io=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=Se.consume({host:this,context:hh.Context})}willUpdate(){this.controlType&&rd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=ed.CONTROL_TYPE)}}return m([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var hd=z.constructTagName("menuitemcheckbox"),da={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},ng={INDICATOR:da.CHECKBOX};var iA=B`
4217
+ `,og=[eA];var Gs=class extends Ye{constructor(){super(...arguments);this.tooltipType=Re.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Re.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=J.TOOLTIP,this.ariaHidden=Re.ARIA_HIDDEN,this.backdrop=Re.BACKDROP,this.delay=this.delay||Re.DELAY,this.disableAriaExpanded=Re.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Re.HIDE_ON_BLUR,this.hideOnEscape=Re.HIDE_ON_ESCAPE,this.offset=this.offset||Re.OFFSET,this.placement=this.placement||Re.PLACEMENT,this.trigger=Re.TRIGGER,this.closeButton=At.CLOSE_BUTTON,this.disableFlip=At.DISABLE_FLIP,this.focusBackToTrigger=At.FOCUS_BACK,this.focusTrap=At.FOCUS_TRAP,this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE,this.interactive=At.INTERACTIVE,this.preventScroll=At.PREVENT_SCROLL,this.size=At.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(gr).includes(t)?t:Re.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Ie()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case gr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case gr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Nt).includes(this.placement)||(this.placement=Re.PLACEMENT)}onTooltipTypeUpdated(t){let r=t.get("tooltipType");if(Object.values(gr).includes(this.tooltipType)||this.setTooltipType(Re.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case gr.DESCRIPTION:r===gr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case gr.LABEL:r===gr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:r===gr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):r===gr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,r){let{triggerElement:s}=this;t===r||!s||(r||this.depthManager.remove([this]),await super.isOpenUpdated(t,r))}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&&Mu(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};Gs.styles=[...Ye.styles,...og],m([u({type:String,attribute:"tooltip-type",reflect:!0})],Gs.prototype,"tooltipType",2),m([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],Gs.prototype,"onlyShowWhenTriggerOverflows",2);var kh=Gs;kh.register(nn);var rA=kh;var ro=hi(class extends Hr{constructor(n){var o;if(super(n),n.type!==er.ATTRIBUTE||n.name!=="class"||((o=n.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(o=>n[o]).join(" ")+" "}update(n,[o]){var r,s;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(d=>d!=="")));for(let d in o)o[d]&&!((r=this.nt)!=null&&r.has(d))&&this.st.add(d);return this.render(o)}let t=n.element.classList;for(let d of this.st)d in o||(t.remove(d),this.st.delete(d));for(let d in o){let p=!!o[d];p===this.st.has(d)||(s=this.nt)!=null&&s.has(d)||(p?(t.add(d),this.st.add(d)):(t.remove(d),this.st.delete(d)))}return Te}});var sg=z.constructTagName("toggle"),ln={DEFAULT:"default",COMPACT:"compact"};var Nh={SIZE:ln.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var io=n=>{class o extends n{constructor(){super(...arguments);this.controlTypeProviderContext=Se.consume({host:this,context:hh.Context})}willUpdate(){this.controlType&&rd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=ed.CONTROL_TYPE)}}return m([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var hd=z.constructTagName("menuitemcheckbox"),dn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},ag={INDICATOR:dn.CHECKBOX};var iA=B`
4207
4218
  :host::part(checkmark-icon) {
4208
4219
  --mdc-icon-fill-color: currentColor;
4209
4220
  }
4210
4221
  :host .hidden-checkmark {
4211
4222
  visibility: hidden;
4212
4223
  }
4213
- `,ag=[iA];var Ys=class extends io(vr){constructor(){super();this.checked=!1;this.indicator=ng.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.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===da.CHECKBOX?_`
4224
+ `,ng=[iA];var Ys=class extends io(vr){constructor(){super();this.checked=!1;this.indicator=ag.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.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===dn.CHECKBOX?_`
4214
4225
  <mdc-staticcheckbox
4215
4226
  slot="leading-controls"
4216
4227
  ?checked="${this.checked}"
4217
4228
  ?disabled="${this.disabled}"
4218
4229
  ?soft-disabled="${this.softDisabled}"
4219
4230
  ></mdc-staticcheckbox>
4220
- `:W}staticToggle(){return this.indicator===da.TOGGLE?_`
4231
+ `:W}staticToggle(){return this.indicator===dn.TOGGLE?_`
4221
4232
  <mdc-statictoggle
4222
4233
  slot="trailing-controls"
4223
4234
  ?checked="${this.checked}"
4224
4235
  ?disabled="${this.disabled}"
4225
4236
  ?soft-disabled="${this.softDisabled}"
4226
- size="${la.COMPACT}"
4237
+ size="${ln.COMPACT}"
4227
4238
  ></mdc-statictoggle>
4228
- `:W}getCheckmarkIcon(){return this.indicator===da.CHECKMARK?_`
4239
+ `:W}getCheckmarkIcon(){return this.indicator===dn.CHECKMARK?_`
4229
4240
  <mdc-icon
4230
4241
  slot="trailing-controls"
4231
4242
  name="check-bold"
@@ -4252,14 +4263,14 @@
4252
4263
  ${this.staticToggle()} ${this.getCheckmarkIcon()}
4253
4264
  </div>
4254
4265
  </slot>
4255
- `}};Ys.styles=[...vr.styles,...ag],m([u({type:Boolean,reflect:!0})],Ys.prototype,"checked",2),m([u({type:String,reflect:!0})],Ys.prototype,"indicator",2);var Lh=Ys;Lh.register(hd);var oA=Lh;var pd=z.constructTagName("menuitemradio"),md={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},lg={INDICATOR:md.RADIO};var sA=B`
4266
+ `}};Ys.styles=[...vr.styles,...ng],m([u({type:Boolean,reflect:!0})],Ys.prototype,"checked",2),m([u({type:String,reflect:!0})],Ys.prototype,"indicator",2);var Lh=Ys;Lh.register(hd);var oA=Lh;var pd=z.constructTagName("menuitemradio"),md={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},lg={INDICATOR:md.RADIO};var sA=B`
4256
4267
  :host::part(checkmark-icon) {
4257
4268
  --mdc-icon-fill-color: currentColor;
4258
4269
  }
4259
4270
  :host .hidden-checkmark {
4260
4271
  visibility: hidden;
4261
4272
  }
4262
- `,dg=[sA];var Ks=class extends io(vr){constructor(){super();this.checked=!1;this.indicator=lg.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Ti}, ${ie}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(r=>{r!==this&&r.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===md.RADIO?_`
4273
+ `,dg=[sA];var Ks=class extends io(vr){constructor(){super();this.checked=!1;this.indicator=lg.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Ti}, ${oe}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(r=>{r!==this&&r.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===md.RADIO?_`
4263
4274
  <mdc-staticradio
4264
4275
  slot="leading-controls"
4265
4276
  ?checked="${this.checked}"
@@ -4293,7 +4304,7 @@
4293
4304
  ${this.renderCheckmarkIcon()}
4294
4305
  </div>
4295
4306
  </slot>
4296
- `}};Ks.styles=[...vr.styles,...dg],m([u({type:Boolean,reflect:!0})],Ks.prototype,"checked",2),m([u({type:String,reflect:!0})],Ks.prototype,"indicator",2);var Oh=Ks;Oh.register(pd);var nA=Oh;var oo=z.constructTagName("navmenuitem"),cg={DOT:pr.DOT,COUNTER:pr.COUNTER},hg={RIGHT_ARROW:"arrow-right-bold"},Mh={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:xo[24],VARIANT:We.FLEXIBLE,CANNOT_ACTIVATE:!1};var aA=B`
4307
+ `}};Ks.styles=[...vr.styles,...dg],m([u({type:Boolean,reflect:!0})],Ks.prototype,"checked",2),m([u({type:String,reflect:!0})],Ks.prototype,"indicator",2);var Oh=Ks;Oh.register(pd);var aA=Oh;var oo=z.constructTagName("navmenuitem"),cg={DOT:pr.DOT,COUNTER:pr.COUNTER},hg={RIGHT_ARROW:"arrow-right-bold"},Mh={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:xo[24],VARIANT:We.FLEXIBLE,CANNOT_ACTIVATE:!1};var nA=B`
4297
4308
  :host::part(popover-content) {
4298
4309
  padding: 0.75rem 0.5rem;
4299
4310
  }
@@ -4301,7 +4312,7 @@
4301
4312
  ::slotted(mdc-divider) {
4302
4313
  margin-block: 0.25rem;
4303
4314
  }
4304
- `,pg=[aA];var ca=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===J.MENUITEM||o===J.MENUITEMCHECKBOX||o===J.MENUITEMRADIO},Rh=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===ie};var ha=class extends Ye{constructor(){super();this.placement=Ah.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var r;(r=this.triggerElement)!=null&&r.hasAttribute("soft-disabled")||(t.composedPath().find(s=>s.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let r=t.target;ca(r)&&(t.stopImmediatePropagation(),r.addEventListener("destroyed",this.handleItemChangeEvent),r.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(r=>r.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let r=!1;this.collectMenuItems();let s=t.target,d=this.getCurrentIndex(s);if(d===-1)return;switch(this.resetTabIndexes(d),this.getActionForKeyEvent(t,!0)){case Z.HOME:{this.resetTabIndexAndSetFocus(0,d),r=!0;break}case Z.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,d),r=!0;break}case Z.DOWN:{let f=d+1===this.menuItems.length?0:d+1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case Z.UP:{let f=d-1===-1?this.menuItems.length-1:d-1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case Z.RIGHT:{let f=this.getSubMenuPopoverOfTarget(s);f&&(f.show(),r=!0);break}case Z.LEFT:{Rh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,d),r=!0);break}case Z.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,d),r=!0);break}case Z.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}case Z.SPACE:{r=!0;break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let r=!1,s=t.target;switch(this.getActionForKeyEvent(t)){case Z.SPACE:{!s.matches(`${pd}, ${hd}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0));break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,d;let r=t.getAttribute("id");return r?(d=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:d.call(s,`${ie}[triggerid="${r}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=r.map(d=>d.tagName.toLowerCase()===Ti?Array.from(d.children).filter(p=>ca(p)):ca(d)?d:[]).flat().filter(d=>!!d&&!d.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(d=>this.getSubMenuPopoverOfTarget(d))}getOpenSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.visible&&r.push(d)}),r}connectedCallback(){super.connectedCallback(),this.role=J.MENU,this.ariaOrientation=Ah.ORIENTATION,this.backdrop=!1,this.color=Oo.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,r){return t===r||!this.triggerElement?Promise.resolve():(r&&(this.backdrop=![sa,oo].includes(this.triggerElement.tagName.toLowerCase())),r===!1&&this.menuItemsWithSubMenus.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,r))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(r=>r.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t)}resetTabIndexAndSetFocus(t,r){t!==r&&(this.menuItems[r].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(r=>r!==t&&Rh(r))}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(d=>d!==t);this.getOpenSubMenusOfItems(r).forEach(d=>{d.hide()})}fireMenuItemAction(t){t.matches(sa)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(!(!ca(r)||!t.isTrusted||r.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}};ha.styles=[...Ye.styles,...pg],m([u({type:String,reflect:!0})],ha.prototype,"placement",2);var Ph=ha;Ph.register(ie);var lA=Ph;var ud=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var s,d;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((d=(s=o==null?void 0:o.parentElement)==null?void 0:s.children)!=null?d:[]).some(p=>p!==o&&p.tagName.toLowerCase()===ie&&p.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(ie);if(!s)break;let d=s.getAttribute("triggerid");if(!d)break;let p=document.getElementById(d);if(p&&p.tagName.toLowerCase()===oo)t.push(p),r=p;else break}return t}setCurrentActiveNavMenuItem(o){var d;let t=((d=this.currentActiveNavMenuItem)==null?void 0:d.navId)===(o==null?void 0:o.navId),r=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||r||(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(p=>{p.hasActiveChild=!0,p.setAttribute("active","")})}};ud.context=Ji;var fd=ud;var dA=B`
4315
+ `,pg=[nA];var cn=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===J.MENUITEM||o===J.MENUITEMCHECKBOX||o===J.MENUITEMRADIO},Rh=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===oe};var hn=class extends Ye{constructor(){super();this.placement=Ah.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var r;(r=this.triggerElement)!=null&&r.hasAttribute("soft-disabled")||(t.composedPath().find(s=>s.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let r=t.target;cn(r)&&(t.stopImmediatePropagation(),r.addEventListener("destroyed",this.handleItemChangeEvent),r.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(r=>r.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let r=!1;this.collectMenuItems();let s=t.target,d=this.getCurrentIndex(s);if(d===-1)return;switch(this.resetTabIndexes(d),this.getActionForKeyEvent(t,!0)){case Z.HOME:{this.resetTabIndexAndSetFocus(0,d),r=!0;break}case Z.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,d),r=!0;break}case Z.DOWN:{let f=d+1===this.menuItems.length?0:d+1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case Z.UP:{let f=d-1===-1?this.menuItems.length-1:d-1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case Z.RIGHT:{let f=this.getSubMenuPopoverOfTarget(s);f&&(f.show(),r=!0);break}case Z.LEFT:{Rh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,d),r=!0);break}case Z.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,d),r=!0);break}case Z.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}case Z.SPACE:{r=!0;break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let r=!1,s=t.target;switch(this.getActionForKeyEvent(t)){case Z.SPACE:{!s.matches(`${pd}, ${hd}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0));break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,d;let r=t.getAttribute("id");return r?(d=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:d.call(s,`${oe}[triggerid="${r}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=r.map(d=>d.tagName.toLowerCase()===Ti?Array.from(d.children).filter(p=>cn(p)):cn(d)?d:[]).flat().filter(d=>!!d&&!d.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(d=>this.getSubMenuPopoverOfTarget(d))}getOpenSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.visible&&r.push(d)}),r}connectedCallback(){super.connectedCallback(),this.role=J.MENU,this.ariaOrientation=Ah.ORIENTATION,this.backdrop=!1,this.color=Oo.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,r){return t===r||!this.triggerElement?Promise.resolve():(r&&(this.backdrop=![sn,oo].includes(this.triggerElement.tagName.toLowerCase())),r===!1&&this.menuItemsWithSubMenus.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,r))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(r=>r.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t)}resetTabIndexAndSetFocus(t,r){t!==r&&(this.menuItems[r].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(r=>r!==t&&Rh(r))}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(d=>d!==t);this.getOpenSubMenusOfItems(r).forEach(d=>{d.hide()})}fireMenuItemAction(t){t.matches(sn)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(!(!cn(r)||!t.isTrusted||r.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}};hn.styles=[...Ye.styles,...pg],m([u({type:String,reflect:!0})],hn.prototype,"placement",2);var Ph=hn;Ph.register(oe);var lA=Ph;var ud=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var s,d;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((d=(s=o==null?void 0:o.parentElement)==null?void 0:s.children)!=null?d:[]).some(p=>p!==o&&p.tagName.toLowerCase()===oe&&p.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(oe);if(!s)break;let d=s.getAttribute("triggerid");if(!d)break;let p=document.getElementById(d);if(p&&p.tagName.toLowerCase()===oo)t.push(p),r=p;else break}return t}setCurrentActiveNavMenuItem(o){var d;let t=((d=this.currentActiveNavMenuItem)==null?void 0:d.navId)===(o==null?void 0:o.navId),r=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||r||(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(p=>{p.hasActiveChild=!0,p.setAttribute("active","")})}};ud.context=Ji;var fd=ud;var dA=B`
4305
4316
  :host {
4306
4317
  --mdc-sidenavigation-expanded-width: 14.5rem;
4307
4318
  --mdc-sidenavigation-expanded-left-padding: 1rem;
@@ -4471,7 +4482,7 @@
4471
4482
  ${this.variant===We.FLEXIBLE||this.variant===We.FLEXIBLE_ON_HOVER?_`<mdc-divider
4472
4483
  part="vertical-divider"
4473
4484
  orientation=${Go.VERTICAL}
4474
- variant=${Xn.GRADIENT}
4485
+ variant=${qa.GRADIENT}
4475
4486
  arrow-direction=${this.expanded?fr.NEGATIVE:fr.POSITIVE}
4476
4487
  button-position=${fr.POSITIVE}
4477
4488
  >
@@ -4704,7 +4715,7 @@
4704
4715
  background-color: ButtonText;
4705
4716
  }
4706
4717
  }
4707
- `,...St()],fg=pA;var qt=class extends vr{constructor(){super();this.cannotActivate=Mh.CANNOT_ACTIVATE;this.maxCounter=Mh.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=Se.consume({host:this,context:qo.Context});this.emitNavMenuItemActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(r)};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 s;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 r=(s=this.sideNavigationContext)==null?void 0:s.value;r&&(this.showLabel=this.isNested()?!0:r.expanded)}renderDynamicTooltip(){var r;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Ie()}`);let t=document.createElement(aa);t.id=`mdc-navmenuitem-tooltip-${Ie()}`,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",((r=this.tooltipBoundaryPadding)==null?void 0:r.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${aa}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ie)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:`${Io(this.iconName)}-filled`}renderBadge(t){return Object.values(cg).includes(this.badgeType)?_`
4718
+ `,...St()],fg=pA;var qt=class extends vr{constructor(){super();this.cannotActivate=Mh.CANNOT_ACTIVATE;this.maxCounter=Mh.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=Se.consume({host:this,context:qo.Context});this.emitNavMenuItemActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(r)};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 s;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 r=(s=this.sideNavigationContext)==null?void 0:s.value;r&&(this.showLabel=this.isNested()?!0:r.expanded)}renderDynamicTooltip(){var r;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Ie()}`);let t=document.createElement(nn);t.id=`mdc-navmenuitem-tooltip-${Ie()}`,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",((r=this.tooltipBoundaryPadding)==null?void 0:r.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${nn}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===oe)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:`${Io(this.iconName)}-filled`}renderBadge(t){return Object.values(cg).includes(this.badgeType)?_`
4708
4719
  <mdc-badge
4709
4720
  part="${t?"":"badge"}"
4710
4721
  type="${tt(this.badgeType)}"
@@ -4735,7 +4746,7 @@
4735
4746
  ${this.renderBadge(this.showLabel)}
4736
4747
  `:W}
4737
4748
  ${t!=null&&t.hasSiblingWithTriggerId(this)?_` <mdc-icon name=${hg.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:W}
4738
- `}};qt.styles=[...vr.styles,...fg],m([u({type:Boolean,reflect:!0})],qt.prototype,"active",2),m([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],qt.prototype,"cannotActivate",2),m([u({type:String,attribute:"icon-name",reflect:!0})],qt.prototype,"iconName",2),m([u({type:String,reflect:!0,attribute:"badge-type"})],qt.prototype,"badgeType",2),m([u({type:Number,reflect:!0})],qt.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],qt.prototype,"maxCounter",2),m([u({type:String,reflect:!0,attribute:"nav-id"})],qt.prototype,"navId",2),m([u({type:Boolean,reflect:!0,attribute:"show-label"})],qt.prototype,"showLabel",2),m([u({type:String,attribute:"aria-label"})],qt.prototype,"ariaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],qt.prototype,"disableAriaCurrent",2),m([u({type:String,reflect:!0,attribute:"tooltip-text"})],qt.prototype,"tooltipText",2),m([u({type:String,reflect:!0,attribute:"tooltip-placement"})],qt.prototype,"tooltipPlacement",2),m([u({type:String,reflect:!0,attribute:"tooltip-type"})],qt.prototype,"tooltipType",2),m([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],qt.prototype,"tooltipAppearance",2),m([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],qt.prototype,"tooltipBoundaryPadding",2),m([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],qt.prototype,"isActiveParentTooltipText",2),m([ut()],qt.prototype,"hasActiveChild",2);var Fh=qt;Fh.register(oo);var mA=Fh;var vg="check-bold",br=z.constructTagName("option");var pa=z.constructTagName("optgroup"),$h="header-id";var uA=B`
4749
+ `}};qt.styles=[...vr.styles,...fg],m([u({type:Boolean,reflect:!0})],qt.prototype,"active",2),m([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],qt.prototype,"cannotActivate",2),m([u({type:String,attribute:"icon-name",reflect:!0})],qt.prototype,"iconName",2),m([u({type:String,reflect:!0,attribute:"badge-type"})],qt.prototype,"badgeType",2),m([u({type:Number,reflect:!0})],qt.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],qt.prototype,"maxCounter",2),m([u({type:String,reflect:!0,attribute:"nav-id"})],qt.prototype,"navId",2),m([u({type:Boolean,reflect:!0,attribute:"show-label"})],qt.prototype,"showLabel",2),m([u({type:String,attribute:"aria-label"})],qt.prototype,"ariaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],qt.prototype,"disableAriaCurrent",2),m([u({type:String,reflect:!0,attribute:"tooltip-text"})],qt.prototype,"tooltipText",2),m([u({type:String,reflect:!0,attribute:"tooltip-placement"})],qt.prototype,"tooltipPlacement",2),m([u({type:String,reflect:!0,attribute:"tooltip-type"})],qt.prototype,"tooltipType",2),m([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],qt.prototype,"tooltipAppearance",2),m([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],qt.prototype,"tooltipBoundaryPadding",2),m([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],qt.prototype,"isActiveParentTooltipText",2),m([ut()],qt.prototype,"hasActiveChild",2);var Fh=qt;Fh.register(oo);var mA=Fh;var vg="check-bold",br=z.constructTagName("option");var pn=z.constructTagName("optgroup"),$h="header-id";var uA=B`
4739
4750
  :host {
4740
4751
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
4741
4752
  }
@@ -4768,7 +4779,7 @@
4768
4779
  ${o}
4769
4780
  <slot role="${J.PRESENTATION}"></slot>
4770
4781
  </div>
4771
- `}};Ws.styles=[...j.styles,...gg],m([u({type:String,reflect:!0})],Ws.prototype,"label",2),m([Dt({selector:br})],Ws.prototype,"options",2);var zh=Ws;zh.register(pa);var fA=zh;var vA=[$i,B`
4782
+ `}};Ws.styles=[...j.styles,...gg],m([u({type:String,reflect:!0})],Ws.prototype,"label",2),m([Dt({selector:br})],Ws.prototype,"options",2);var zh=Ws;zh.register(pn);var fA=zh;var vA=[$i,B`
4772
4783
  :host {
4773
4784
  --mdc-listitem-column-gap: 0.75rem;
4774
4785
  --mdc-option-icon-width: 1rem;
@@ -4797,7 +4808,7 @@
4797
4808
  :host([data-hidden]) {
4798
4809
  display: none;
4799
4810
  }
4800
- `],bg=vA;var Xo=class extends Ce(Ei){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=J.OPTION,this.variant=ta.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,r){return _` <mdc-icon length-unit="rem" slot="${t}" name="${r}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",vg):W;return _`
4811
+ `],bg=vA;var Xo=class extends Ce(Ei){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=J.OPTION,this.variant=Ja.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,r){return _` <mdc-icon length-unit="rem" slot="${t}" name="${r}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",vg):W;return _`
4801
4812
  <div part="leading">
4802
4813
  <slot name="leading-controls">
4803
4814
  ${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):W}
@@ -4912,7 +4923,7 @@
4912
4923
  </div>
4913
4924
  ${this.renderProgressbar()} ${this.renderHelperText()}
4914
4925
  `}
4915
- `}};Zo.styles=[...rr.styles,...Tg],m([u({type:String,reflect:!0})],Zo.prototype,"variant",2),m([u({type:String,reflect:!0})],Zo.prototype,"value",2),m([u({type:Boolean,attribute:"error"})],Zo.prototype,"error",2);var ma=Zo;ma.register(vd);var TA=ma;var xg=z.constructTagName("progressspinner"),oe={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"},Hh={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Gh=a=>{if(a===0)return 0;let o=a/100*oe.CIRCUMFERENCE-oe.GAP_SIZE;return Math.max(o,.1*a)},Ag=a=>{let o=oe.CIRCUMFERENCE-Gh(a)-2*oe.GAP_SIZE;return a===0?oe.CIRCUMFERENCE:o<0?0:o},Sg=a=>a===0?0:oe.GAP_SIZE*.5,Ig=(a,o)=>{let t=o+oe.GAP_SIZE*1.5;return a===0?0:t};var xA=B`
4926
+ `}};Zo.styles=[...rr.styles,...Tg],m([u({type:String,reflect:!0})],Zo.prototype,"variant",2),m([u({type:String,reflect:!0})],Zo.prototype,"value",2),m([u({type:Boolean,attribute:"error"})],Zo.prototype,"error",2);var mn=Zo;mn.register(vd);var TA=mn;var xg=z.constructTagName("progressspinner"),se={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"},Hh={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Gh=n=>{if(n===0)return 0;let o=n/100*se.CIRCUMFERENCE-se.GAP_SIZE;return Math.max(o,.1*n)},Ag=n=>{let o=se.CIRCUMFERENCE-Gh(n)-2*se.GAP_SIZE;return n===0?se.CIRCUMFERENCE:o<0?0:o},Sg=n=>n===0?0:se.GAP_SIZE*.5,Ig=(n,o)=>{let t=o+se.GAP_SIZE*1.5;return n===0?0:t};var xA=B`
4916
4927
  :host {
4917
4928
  --mdc-spinner-size: 3rem;
4918
4929
  --mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
@@ -4959,7 +4970,7 @@
4959
4970
  color: var(--mdc-progress-error-color);
4960
4971
  margin: calc(1 / 6 * var(--mdc-spinner-size));
4961
4972
  }
4962
- `,_g=[xA];var bd=class extends ma{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 d;let o=Gh(this.clampedValue),t=Ag(this.clampedValue),r=Sg(this.clampedValue),s=Ig(this.clampedValue,o);return _`
4973
+ `,_g=[xA];var bd=class extends mn{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 d;let o=Gh(this.clampedValue),t=Ag(this.clampedValue),r=Sg(this.clampedValue),s=Ig(this.clampedValue,o);return _`
4963
4974
  <div
4964
4975
  part="spinner-container ${this.variant}"
4965
4976
  role="${J.PROGRESSBAR}"
@@ -4973,18 +4984,18 @@
4973
4984
  part="spinner-track"
4974
4985
  cx="24"
4975
4986
  cy="24"
4976
- r="${oe.RADIUS}"
4977
- stroke-width="${t===0?0:oe.STROKE_WIDTH}"
4978
- stroke-dasharray="${t} ${oe.CIRCUMFERENCE}"
4987
+ r="${se.RADIUS}"
4988
+ stroke-width="${t===0?0:se.STROKE_WIDTH}"
4989
+ stroke-dasharray="${t} ${se.CIRCUMFERENCE}"
4979
4990
  stroke-dashoffset="-${s}"
4980
4991
  />
4981
4992
  <circle
4982
4993
  part="spinner-progress"
4983
4994
  cx="24"
4984
4995
  cy="24"
4985
- r="${oe.RADIUS}"
4986
- stroke-width="${o===0?0:oe.STROKE_WIDTH}"
4987
- stroke-dasharray="${o} ${oe.CIRCUMFERENCE}"
4996
+ r="${se.RADIUS}"
4997
+ stroke-width="${o===0?0:se.STROKE_WIDTH}"
4998
+ stroke-dasharray="${o} ${se.CIRCUMFERENCE}"
4988
4999
  stroke-dashoffset="-${r}"
4989
5000
  />
4990
5001
  </svg>
@@ -4994,16 +5005,16 @@
4994
5005
  part="error-icon"
4995
5006
  aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
4996
5007
  name="${Hh.ERROR_LEGACY_FILLED}"
4997
- size="${oe.ERROR_ICON_SIZE}"
4998
- length-unit="${oe.ICON_LENGTH_UNIT}"
5008
+ size="${se.ERROR_ICON_SIZE}"
5009
+ length-unit="${se.ICON_LENGTH_UNIT}"
4999
5010
  ></mdc-icon>
5000
5011
  `}renderSuccessState(){var o;return _`
5001
5012
  <mdc-icon
5002
5013
  part="success-icon"
5003
5014
  aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
5004
5015
  name="${Hh.CHECK_CIRCLE_BOLD}"
5005
- size="${oe.SUCCESS_ICON_SIZE}"
5006
- length-unit="${oe.ICON_LENGTH_UNIT}"
5016
+ size="${se.SUCCESS_ICON_SIZE}"
5017
+ length-unit="${se.ICON_LENGTH_UNIT}"
5007
5018
  ></mdc-icon>
5008
5019
  `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():_` ${this.renderProgressSpinner()}`}};bd.styles=[...j.styles,..._g];var Yh=bd;Yh.register(xg);var AA=Yh;var SA=[bt,B`
5009
5020
  :host {
@@ -5063,7 +5074,7 @@
5063
5074
  :host([soft-disabled]) {
5064
5075
  pointer-events: none;
5065
5076
  }
5066
- `,...St(!0)],Cg=SA;var ua=class extends kt(Ae(Ce(Ht(de)))){constructor(){super(...arguments);this.checked=!1;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.updateTabIndex(),this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,r){this.updateComplete.then(()=>{t.forEach(s=>{s.setComponentValidity(r)})}).catch(s=>{this.onerror&&this.onerror(s)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let s=r.some(f=>f.required),d=!!r.find(f=>f.checked),p=s&&!d;this.setGroupValidity(r,!p)}this.internals.setFormValue(t)}handleChange(){var s;if(this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(d=>{var f;let p=(f=d.shadowRoot)==null?void 0:f.querySelector("input");p&&(d.checked=!1,p.checked=!1)}),this.checked=!0;let r=(s=this.shadowRoot)==null?void 0:s.querySelector("input");r&&(r.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){super.click(),this.handleChange()}updateRadio(t,r){var s,d;(d=(s=t[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||d.focus(),t[r].handleChange()}handleKeyDown(t){var f;if(this.disabled)return;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault();let d=this.getAllRadiosWithinSameGroup().filter(T=>!T.disabled),p=d.indexOf(this);if(r===Z.DOWN||r===Z.RIGHT){let T=(p+1)%d.length;this.updateRadio(d,T)}else if(r===Z.UP||r===Z.LEFT){let T=(p-1+d.length)%d.length;this.updateRadio(d,T)}else r===Z.SPACE&&this.updateRadio(d,p);this.updateTabIndex(),r===Z.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),r=t.find(d=>d.checked),s=t.find(d=>!d.disabled);t.forEach(d=>{var f;let p=(f=d.shadowRoot)==null?void 0:f.querySelector("input");p&&(p.tabIndex=-1,(d===r||!r&&d===s)&&(p.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return _`
5077
+ `,...St(!0)],Cg=SA;var un=class extends kt(Ae(Ce(Ht(ie)))){constructor(){super(...arguments);this.checked=!1;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.updateTabIndex(),this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,r){this.updateComplete.then(()=>{t.forEach(s=>{s.setComponentValidity(r)})}).catch(s=>{this.onerror&&this.onerror(s)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let s=r.some(f=>f.required),d=!!r.find(f=>f.checked),p=s&&!d;this.setGroupValidity(r,!p)}this.internals.setFormValue(t)}handleChange(){var s;if(this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(d=>{var f;let p=(f=d.shadowRoot)==null?void 0:f.querySelector("input");p&&(d.checked=!1,p.checked=!1)}),this.checked=!0;let r=(s=this.shadowRoot)==null?void 0:s.querySelector("input");r&&(r.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){super.click(),this.handleChange()}updateRadio(t,r){var s,d;(d=(s=t[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||d.focus(),t[r].handleChange()}handleKeyDown(t){var f;if(this.disabled)return;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault();let d=this.getAllRadiosWithinSameGroup().filter(T=>!T.disabled),p=d.indexOf(this);if(r===Z.DOWN||r===Z.RIGHT){let T=(p+1)%d.length;this.updateRadio(d,T)}else if(r===Z.UP||r===Z.LEFT){let T=(p-1+d.length)%d.length;this.updateRadio(d,T)}else r===Z.SPACE&&this.updateRadio(d,p);this.updateTabIndex(),r===Z.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),r=t.find(d=>d.checked),s=t.find(d=>!d.disabled);t.forEach(d=>{var f;let p=(f=d.shadowRoot)==null?void 0:f.querySelector("input");p&&(p.tabIndex=-1,(d===r||!r&&d===s)&&(p.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return _`
5067
5078
  <mdc-staticradio
5068
5079
  class="mdc-focus-ring"
5069
5080
  ?checked="${this.checked}"
@@ -5092,7 +5103,7 @@
5092
5103
  />
5093
5104
  </mdc-staticradio>
5094
5105
  ${this.renderLabelAndHelperText()}
5095
- `}};ua.styles=[...de.styles,...Cg],m([u({type:Boolean,reflect:!0})],ua.prototype,"checked",2);var Kh=ua;var yd=z.constructTagName("radio");Kh.register(yd);var IA=Kh;var fa=class extends sd{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,r,s,d,p;(p=(d=(s=(r=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(f=>f.assignedElements({flatten:!0})))==null?void 0:s.filter(f=>f.tagName.toLowerCase()===yd||f.tagName.toLowerCase()===$l))==null?void 0:d.filter(f=>!f.hasAttribute("name")))==null||p.forEach(f=>{f.setAttribute("name",this.name),this.required&&f.setAttribute("required",this.required.toString())})}};fa.styles=[...sd.styles],m([u({type:String})],fa.prototype,"name",2);var Wh=fa;var wg=z.constructTagName("radiogroup");Wh.register(wg);var _A=Wh;var CA=B`
5106
+ `}};un.styles=[...ie.styles,...Cg],m([u({type:Boolean,reflect:!0})],un.prototype,"checked",2);var Kh=un;var yd=z.constructTagName("radio");Kh.register(yd);var IA=Kh;var fn=class extends sd{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,r,s,d,p;(p=(d=(s=(r=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(f=>f.assignedElements({flatten:!0})))==null?void 0:s.filter(f=>f.tagName.toLowerCase()===yd||f.tagName.toLowerCase()===$l))==null?void 0:d.filter(f=>!f.hasAttribute("name")))==null||p.forEach(f=>{f.setAttribute("name",this.name),this.required&&f.setAttribute("required",this.required.toString())})}};fn.styles=[...sd.styles],m([u({type:String})],fn.prototype,"name",2);var Wh=fn;var wg=z.constructTagName("radiogroup");Wh.register(wg);var _A=Wh;var CA=B`
5096
5107
  :host::part(filters-container) {
5097
5108
  display: flex;
5098
5109
  gap: 0.25rem;
@@ -5122,7 +5133,7 @@
5122
5133
  position: relative;
5123
5134
  scrollbar-width: none;
5124
5135
  }
5125
- `,kg=[CA];var Ng=z.constructTagName("searchfield"),va={TYPE:Xi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:ad};var Qo=class extends Lr{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1;this.handleFilterContainerClick=()=>{this.inputElement.focus()};this.handleFilterContainerKeyDown=t=>{this.getActionForKeyEvent(t)===Z.ENTER&&this.handleFilterContainerClick()};this.handleFilterContainerKeyUp=t=>{this.getActionForKeyEvent(t)===Z.SPACE&&this.handleFilterContainerClick()}}handleKeyDown(t){super.handleKeyDown(t),this.getActionForKeyEvent(t)===Z.ESCAPE&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=va.ICON,this.trailingButton=va.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(va.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(t){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1},super.firstUpdated(t)}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return _`
5136
+ `,kg=[CA];var Ng=z.constructTagName("searchfield"),vn={TYPE:Xi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:nd};var Qo=class extends Lr{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1;this.handleFilterContainerClick=()=>{this.inputElement.focus()};this.handleFilterContainerKeyDown=t=>{this.getActionForKeyEvent(t)===Z.ENTER&&this.handleFilterContainerClick()};this.handleFilterContainerKeyUp=t=>{this.getActionForKeyEvent(t)===Z.SPACE&&this.handleFilterContainerClick()}}handleKeyDown(t){super.handleKeyDown(t),this.getActionForKeyEvent(t)===Z.ESCAPE&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=vn.ICON,this.trailingButton=vn.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(vn.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(t){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1},super.firstUpdated(t)}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return _`
5126
5137
  ${this.renderLabelElement()}
5127
5138
  <div
5128
5139
  class="${ro({"mdc-focus-ring":this.isInputFocused})}"
@@ -5138,7 +5149,7 @@
5138
5149
  >
5139
5150
  <slot name="filters" @slotchange=${this.renderInputChips}></slot>
5140
5151
  </div>
5141
- ${this.renderInputElement(va.TYPE,this.hasInputChips)}
5152
+ ${this.renderInputElement(vn.TYPE,this.hasInputChips)}
5142
5153
  </div>
5143
5154
  ${this.renderTrailingButton(this.hasInputChips)}
5144
5155
  </div>
@@ -5162,7 +5173,7 @@
5162
5173
  min-width: auto;
5163
5174
  padding: 0.75rem 0.5rem;
5164
5175
  }
5165
- `,Lg=[kA];var Og=z.constructTagName("searchpopover"),jh={TYPE:Xi.TEXT,DISPLAY_POPOVER:!1},qh="searchpopover-container-triggerid",Ed="searchpopover-popoverid";var no=class extends js{constructor(){super(...arguments);this.displayPopover=jh.DISPLAY_POPOVER;this.placement=Nt.BOTTOM_START;this.popoverZIndex=void 0}renderInputElement(){var r,s;let t=this.hasInputChips?"":this.placeholder;return _`<input
5176
+ `,Lg=[kA];var Og=z.constructTagName("searchpopover"),jh={TYPE:Xi.TEXT,DISPLAY_POPOVER:!1},qh="searchpopover-container-triggerid",Ed="searchpopover-popoverid";var ao=class extends js{constructor(){super(...arguments);this.displayPopover=jh.DISPLAY_POPOVER;this.placement=Nt.BOTTOM_START;this.popoverZIndex=void 0}renderInputElement(){var r,s;let t=this.hasInputChips?"":this.placeholder;return _`<input
5166
5177
  aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
5167
5178
  part="input-text"
5168
5179
  id="${this.inputId}"
@@ -5230,7 +5241,7 @@
5230
5241
  >
5231
5242
  <slot></slot>
5232
5243
  </mdc-popover>
5233
- `}};no.styles=[...js.styles,...Lg],m([u({type:Boolean,reflect:!0,attribute:"display-popover"})],no.prototype,"displayPopover",2),m([u({type:String,reflect:!0})],no.prototype,"placement",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],no.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"popover-aria-label"})],no.prototype,"popoverAriaLabel",2);var Xh=no;Xh.register(Og);var NA=Xh;var Mg=z.constructTagName("select"),Zh={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Td="select-base-triggerid",Rg="select-listbox",Pg={DISABLE_FLIP:!1};var LA=B`
5244
+ `}};ao.styles=[...js.styles,...Lg],m([u({type:Boolean,reflect:!0,attribute:"display-popover"})],ao.prototype,"displayPopover",2),m([u({type:String,reflect:!0})],ao.prototype,"placement",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ao.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"popover-aria-label"})],ao.prototype,"popoverAriaLabel",2);var Xh=ao;Xh.register(Og);var NA=Xh;var Mg=z.constructTagName("select"),Zh={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Td="select-base-triggerid",Rg="select-listbox",Pg={DISABLE_FLIP:!1};var LA=B`
5234
5245
  :host {
5235
5246
  --mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
5236
5247
  --mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
@@ -5339,7 +5350,7 @@
5339
5350
  :host([soft-disabled])::part(base-text) {
5340
5351
  --mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
5341
5352
  }
5342
- `,Dg=[LA,...St(!0)];var je=class extends Bs(Zi(Ae(Ce(Ht(de))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=Pg.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,r,s,d)=>{switch(r){case"added":t.setAttribute("tabindex","-1");break;case"removed":{if(s===-1||d.length===0)return;let p=s+1;if(p>=d.length&&(p=s-1),p===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(p),t.hasAttribute("selected")){let f=null;this.placeholder||(f=s===0?d[p]:d[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${br}:not([disabled])`);this.addEventListener(Gt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Xr(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,r,s){var d;if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&s!==((d=this.selectedOption)==null?void 0:d.value)&&this.navItems.length){let p=this.getFirstSelectedOption(),f=this.getFirstOption(),T=this.navItems.find(U=>U.value===s),L=null;if(T)L=T;else if(this.placeholder)L=null;else if(f)L=f;else if(p)L=p;else return;this.updateComplete.then(()=>{this.setSelectedOption(L)}).catch(U=>{this.onerror&&this.onerror(U)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let r=t.target,s=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{s&&s!==this.selectedOption?this.setSelectedOption(s):this.setSelectedOption(r);break}case"unselected":{s?this.setSelectedOption(s):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(r);break}case"disabled":{this.itemsStore.delete(r);break}default:break}}async firstUpdated(t){await this.updateComplete;let r=this.getFirstSelectedOption();if(r)this.initialSelectedOption=r,this.setSelectedOption(r);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let s=this.getFirstOption();this.setSelectedOption(s),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 r=t.target;r&&r.tagName===br.toUpperCase()&&!r.hasAttribute("disabled")&&!r.hasAttribute("soft-disabled")&&(this.setSelectedOption(r),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var r,s,d;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(s=(r=this.selectedOption)==null?void 0:r.value)!=null?s:"",this.internals.setFormValue(this.value),(d=this.inputElement)==null||d.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(r=>{r!==t&&r.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,r;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()}formResetCallback(){var r;let t=this.initialSelectedOption||null;((r=this.selectedOption)==null?void 0:r.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var s;let r=this.navItems.find(d=>d.value===t||d.label===t);((s=this.selectedOption)==null?void 0:s.value)!==(r==null?void 0:r.value)&&(this.setSelectedOption(r||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=Ql(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var r;return(r=this.debounceSearch)==null||r.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,r){return t.filter(s=>{var d;return(d=s.getAttribute("label"))==null?void 0:d.toLowerCase().startsWith(r.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let r=this.navItems.findIndex(f=>f.tabIndex===0)+1,s=[...this.navItems.slice(r),...this.navItems.slice(0,r)],d=this.filterOptionsBySearchKey(s,t),p=null;if(d.length)[p]=d;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[r],T=this.filterOptionsBySearchKey(s,t[0]),L=T.filter(U=>U===f);p=L.length?L[0]:T[0]}this.navItems.indexOf(p)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(p))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;switch(this.getActionForKeyEvent(t)){case Z.DOWN:case Z.UP:case Z.ENTER:case Z.SPACE:this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case Z.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case Z.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}}}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let r=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(r)}handleKeydownPopover(t){t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,r,s,d,p,f;return _`
5353
+ `,Dg=[LA,...St(!0)];var je=class extends Bs(Zi(Ae(Ce(Ht(ie))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=Pg.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,r,s,d)=>{switch(r){case"added":t.setAttribute("tabindex","-1");break;case"removed":{if(s===-1||d.length===0)return;let p=s+1;if(p>=d.length&&(p=s-1),p===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(p),t.hasAttribute("selected")){let f=null;this.placeholder||(f=s===0?d[p]:d[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${br}:not([disabled])`);this.addEventListener(Gt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Xr(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,r,s){var d;if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&s!==((d=this.selectedOption)==null?void 0:d.value)&&this.navItems.length){let p=this.getFirstSelectedOption(),f=this.getFirstOption(),T=this.navItems.find(U=>U.value===s),L=null;if(T)L=T;else if(this.placeholder)L=null;else if(f)L=f;else if(p)L=p;else return;this.updateComplete.then(()=>{this.setSelectedOption(L)}).catch(U=>{this.onerror&&this.onerror(U)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let r=t.target,s=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{s&&s!==this.selectedOption?this.setSelectedOption(s):this.setSelectedOption(r);break}case"unselected":{s?this.setSelectedOption(s):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(r);break}case"disabled":{this.itemsStore.delete(r);break}default:break}}async firstUpdated(t){await this.updateComplete;let r=this.getFirstSelectedOption();if(r)this.initialSelectedOption=r,this.setSelectedOption(r);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let s=this.getFirstOption();this.setSelectedOption(s),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 r=t.target;r&&r.tagName===br.toUpperCase()&&!r.hasAttribute("disabled")&&!r.hasAttribute("soft-disabled")&&(this.setSelectedOption(r),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var r,s,d;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(s=(r=this.selectedOption)==null?void 0:r.value)!=null?s:"",this.internals.setFormValue(this.value),(d=this.inputElement)==null||d.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(r=>{r!==t&&r.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,r;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()}formResetCallback(){var r;let t=this.initialSelectedOption||null;((r=this.selectedOption)==null?void 0:r.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var s;let r=this.navItems.find(d=>d.value===t||d.label===t);((s=this.selectedOption)==null?void 0:s.value)!==(r==null?void 0:r.value)&&(this.setSelectedOption(r||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=Ql(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var r;return(r=this.debounceSearch)==null||r.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,r){return t.filter(s=>{var d;return(d=s.getAttribute("label"))==null?void 0:d.toLowerCase().startsWith(r.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let r=this.navItems.findIndex(f=>f.tabIndex===0)+1,s=[...this.navItems.slice(r),...this.navItems.slice(0,r)],d=this.filterOptionsBySearchKey(s,t),p=null;if(d.length)[p]=d;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[r],T=this.filterOptionsBySearchKey(s,t[0]),L=T.filter(U=>U===f);p=L.length?L[0]:T[0]}this.navItems.indexOf(p)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(p))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;switch(this.getActionForKeyEvent(t)){case Z.DOWN:case Z.UP:case Z.ENTER:case Z.SPACE:this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case Z.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case Z.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}}}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let r=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(r)}handleKeydownPopover(t){t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,r,s,d,p,f;return _`
5343
5354
  ${this.renderLabel()}
5344
5355
  <div part="container">
5345
5356
  <div
@@ -5422,7 +5433,7 @@
5422
5433
  </mdc-popover>
5423
5434
  </div>
5424
5435
  ${this.renderHelperText()}
5425
- `}};je.styles=[...de.styles,...Dg],m([u({type:String})],je.prototype,"placeholder",2),m([u({type:String,reflect:!0})],je.prototype,"placement",2),m([u({type:String,reflect:!0,attribute:"boundary"})],je.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"strategy"})],je.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],je.prototype,"popoverZIndex",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],je.prototype,"disableFlip",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],je.prototype,"backdropAppendTo",2),m([Zt(`[id="${Td}"]`)],je.prototype,"visualCombobox",2),m([ut()],je.prototype,"selectedOption",2),m([ut()],je.prototype,"displayPopover",2);var Qh=je;Qh.register(Mg);var OA=Qh;var Jh=class extends j{connectedCallback(){super.connectedCallback(),this.role=J.LISTBOX}createRenderRoot(){return this}},tp=Jh;var xd=z.constructTagName("selectlistbox");tp.register(xd);var MA=tp;qo.register(Ji);var RA=qo;var Fg=z.constructTagName("skeleton"),$g={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},zg={VARIANT:$g.RECTANGULAR};var PA=B`
5436
+ `}};je.styles=[...ie.styles,...Dg],m([u({type:String})],je.prototype,"placeholder",2),m([u({type:String,reflect:!0})],je.prototype,"placement",2),m([u({type:String,reflect:!0,attribute:"boundary"})],je.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"strategy"})],je.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],je.prototype,"popoverZIndex",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],je.prototype,"disableFlip",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],je.prototype,"backdropAppendTo",2),m([Zt(`[id="${Td}"]`)],je.prototype,"visualCombobox",2),m([ut()],je.prototype,"selectedOption",2),m([ut()],je.prototype,"displayPopover",2);var Qh=je;Qh.register(Mg);var OA=Qh;var Jh=class extends j{connectedCallback(){super.connectedCallback(),this.role=J.LISTBOX}createRenderRoot(){return this}},tp=Jh;var xd=z.constructTagName("selectlistbox");tp.register(xd);var MA=tp;qo.register(Ji);var RA=qo;var Fg=z.constructTagName("skeleton"),$g={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},zg={VARIANT:$g.RECTANGULAR};var PA=B`
5426
5437
  :host {
5427
5438
  --mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
5428
5439
  --mdc-skeleton-height: 100%;
@@ -5459,7 +5470,7 @@
5459
5470
  ::slotted(*) {
5460
5471
  visibility: hidden;
5461
5472
  }
5462
- `,Vg=PA;var ga=class extends j{constructor(){super(...arguments);this.variant=zg.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var r;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return _`<slot @slotchange=${this.checkSlotContent}></slot>`}};ga.styles=[...j.styles,Vg],m([u({type:String,reflect:!0})],ga.prototype,"variant",2);var ep=ga;ep.register(Fg);var DA=ep;var FA=[bt,B`
5473
+ `,Vg=PA;var gn=class extends j{constructor(){super(...arguments);this.variant=zg.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var r;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return _`<slot @slotchange=${this.checkSlotContent}></slot>`}};gn.styles=[...j.styles,Vg],m([u({type:String,reflect:!0})],gn.prototype,"variant",2);var ep=gn;ep.register(Fg);var DA=ep;var FA=[bt,B`
5463
5474
  :host {
5464
5475
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
5465
5476
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -5523,11 +5534,11 @@
5523
5534
  stroke-dashoffset: -292;
5524
5535
  }
5525
5536
  }
5526
- `],Bg=FA;var Ug=z.constructTagName("spinner"),$A={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},zA={STANDALONE:"standalone",BUTTON:"button"},Ad={VARIANT:zA.STANDALONE,SIZE:$A.MIDSIZE,INVERTED:!1};var ao=class extends j{constructor(){super(...arguments);this.inverted=Ad.INVERTED;this.size=Ad.SIZE;this.ariaLabel=null;this.variant=Ad.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?J.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return _`
5537
+ `],Bg=FA;var Ug=z.constructTagName("spinner"),$A={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},zA={STANDALONE:"standalone",BUTTON:"button"},Ad={VARIANT:zA.STANDALONE,SIZE:$A.MIDSIZE,INVERTED:!1};var no=class extends j{constructor(){super(...arguments);this.inverted=Ad.INVERTED;this.size=Ad.SIZE;this.ariaLabel=null;this.variant=Ad.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?J.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return _`
5527
5538
  <svg part="container" viewBox="0 0 100 100">
5528
5539
  <circle part="circle" cx="50" cy="50" r="46"></circle>
5529
5540
  </svg>
5530
- `}};ao.styles=[...j.styles,...Bg],m([u({type:Boolean,reflect:!0})],ao.prototype,"inverted",2),m([u({type:String,reflect:!0})],ao.prototype,"size",2),m([u({type:String,attribute:"aria-label"})],ao.prototype,"ariaLabel",2),m([u({type:String,reflect:!0})],ao.prototype,"variant",2);var rp=ao;rp.register(Ug);var VA=rp;jn.register(xv);var BA=jn;var UA={COMPLETE:"complete",INCOMPLETE:"incomplete"},ip={VERTICAL:"vertical",HORIZONTAL:"horizontal"},op={STATUS:UA.INCOMPLETE,ORIENTATION:ip.HORIZONTAL},Hg=z.constructTagName("stepperconnector");var Gg=z.constructTagName("stepperitem"),sp={INLINE:"inline",STACKED:"stacked"},Ai={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Sd={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},np={VARIANT:sp.INLINE,STATUS:Ai.NOT_STARTED};var Id=z.constructTagName("stepper"),ba={ORIENTATION:ip.HORIZONTAL,VARIANT:sp.INLINE};var _d=class{constructor(o,t){this.orientation=o,this.variant=t}};_d.context=Id;var Cd=_d;var HA=B`
5541
+ `}};no.styles=[...j.styles,...Bg],m([u({type:Boolean,reflect:!0})],no.prototype,"inverted",2),m([u({type:String,reflect:!0})],no.prototype,"size",2),m([u({type:String,attribute:"aria-label"})],no.prototype,"ariaLabel",2),m([u({type:String,reflect:!0})],no.prototype,"variant",2);var rp=no;rp.register(Ug);var VA=rp;Wa.register(xv);var BA=Wa;var UA={COMPLETE:"complete",INCOMPLETE:"incomplete"},ip={VERTICAL:"vertical",HORIZONTAL:"horizontal"},op={STATUS:UA.INCOMPLETE,ORIENTATION:ip.HORIZONTAL},Hg=z.constructTagName("stepperconnector");var Gg=z.constructTagName("stepperitem"),sp={INLINE:"inline",STACKED:"stacked"},Ai={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Sd={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},ap={VARIANT:sp.INLINE,STATUS:Ai.NOT_STARTED};var Id=z.constructTagName("stepper"),bn={ORIENTATION:ip.HORIZONTAL,VARIANT:sp.INLINE};var _d=class{constructor(o,t){this.orientation=o,this.variant=t}};_d.context=Id;var Cd=_d;var HA=B`
5531
5542
  :host {
5532
5543
  gap: 0.5rem;
5533
5544
  }
@@ -5564,7 +5575,7 @@
5564
5575
  padding-top: 0.9375rem;
5565
5576
  margin: 0 -3rem;
5566
5577
  }
5567
- `,Yg=[bt,HA];var qs=class extends xe{constructor(){super({context:Cd.context,initialValue:new Cd(ba.ORIENTATION,ba.VARIANT)});this.orientation=ba.ORIENTATION;this.variant=ba.VARIANT}connectedCallback(){super.connectedCallback(),this.role=J.LIST}static get Context(){return Cd.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 _` <slot></slot> `}};qs.styles=[...j.styles,...Yg],m([u({type:String,reflect:!0})],qs.prototype,"orientation",2),m([u({type:String,reflect:!0})],qs.prototype,"variant",2);var Jo=qs;Jo.register(Id);var GA=Jo;var YA=B`
5578
+ `,Yg=[bt,HA];var qs=class extends xe{constructor(){super({context:Cd.context,initialValue:new Cd(bn.ORIENTATION,bn.VARIANT)});this.orientation=bn.ORIENTATION;this.variant=bn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=J.LIST}static get Context(){return Cd.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 _` <slot></slot> `}};qs.styles=[...j.styles,...Yg],m([u({type:String,reflect:!0})],qs.prototype,"orientation",2),m([u({type:String,reflect:!0})],qs.prototype,"variant",2);var Jo=qs;Jo.register(Id);var GA=Jo;var YA=B`
5568
5579
  :host {
5569
5580
  --mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
5570
5581
  --mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
@@ -5599,7 +5610,7 @@
5599
5610
  border-left: 1px solid var(--mdc-stepperconnector-complete-background);
5600
5611
  }
5601
5612
  }
5602
- `,Kg=[YA];var Xs=class extends j{constructor(){super(...arguments);this.status=op.STATUS;this.orientation=op.ORIENTATION;this.stepperContext=Se.consume({host:this,context:Jo.Context})}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.orientation||(this.orientation=r.orientation)}render(){return _` <div part="connector"></div> `}};Xs.styles=[...j.styles,...Kg],m([u({type:String,reflect:!0})],Xs.prototype,"status",2),m([u({type:String,reflect:!0})],Xs.prototype,"orientation",2);var ap=Xs;ap.register(Hg);var KA=ap;var WA=B`
5613
+ `,Kg=[YA];var Xs=class extends j{constructor(){super(...arguments);this.status=op.STATUS;this.orientation=op.ORIENTATION;this.stepperContext=Se.consume({host:this,context:Jo.Context})}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.orientation||(this.orientation=r.orientation)}render(){return _` <div part="connector"></div> `}};Xs.styles=[...j.styles,...Kg],m([u({type:String,reflect:!0})],Xs.prototype,"status",2),m([u({type:String,reflect:!0})],Xs.prototype,"orientation",2);var np=Xs;np.register(Hg);var KA=np;var WA=B`
5603
5614
  :host {
5604
5615
  gap: 0.5rem;
5605
5616
  border-radius: 0.25rem;
@@ -5755,7 +5766,7 @@
5755
5766
  :host([status='error-incomplete']:active) {
5756
5767
  --mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
5757
5768
  }
5758
- `,Wg=[bt,WA,...St()];var Si=class extends kt(zr(j)){constructor(){super();this.variant=np.VARIANT;this.status=np.STATUS;this.label="";this.stepperContext=Se.consume({host:this,context:Jo.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.variant||(this.variant=r.variant)}connectedCallback(){super.connectedCallback(),this.role=J.LISTITEM}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.add("pressed"),r===Z.ENTER&&this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.remove("pressed"),r===Z.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Ai.COMPLETED?_`<mdc-icon part="status-icon" name=${Sd.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Ai.ERROR_CURRENT||this.status===Ai.CURRENT?_`<mdc-icon part="status-icon" name=${Sd.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Ai.NOT_STARTED||this.status===Ai.ERROR_INCOMPLETE)?_`<mdc-text part="step-number" tagname=${pt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
5769
+ `,Wg=[bt,WA,...St()];var Si=class extends kt(zr(j)){constructor(){super();this.variant=ap.VARIANT;this.status=ap.STATUS;this.label="";this.stepperContext=Se.consume({host:this,context:Jo.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.variant||(this.variant=r.variant)}connectedCallback(){super.connectedCallback(),this.role=J.LISTITEM}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.add("pressed"),r===Z.ENTER&&this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===Z.ENTER||r===Z.SPACE)&&(this.classList.remove("pressed"),r===Z.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Ai.COMPLETED?_`<mdc-icon part="status-icon" name=${Sd.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Ai.ERROR_CURRENT||this.status===Ai.CURRENT?_`<mdc-icon part="status-icon" name=${Sd.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Ai.NOT_STARTED||this.status===Ai.ERROR_INCOMPLETE)?_`<mdc-text part="step-number" tagname=${pt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
5759
5770
  >${this.stepNumber}</mdc-text
5760
5771
  >`:W}renderHelpText(){if(!this.helpText)return W;let t=_`<mdc-text
5761
5772
  part="help-text"
@@ -5973,7 +5984,7 @@
5973
5984
  --mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
5974
5985
  --mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
5975
5986
  }
5976
- `,...St()],qg=qA;var lo=class extends Qt(ae){constructor(){super(...arguments);this.active=wd.ACTIVE;this.variant=wd.VARIANT;this.handleTabActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role=J.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${Io(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(dp).includes(t)?t:wd.VARIANT)}setActive(t,r){super.setActive(t,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return _`
5987
+ `,...St()],qg=qA;var lo=class extends Qt(le){constructor(){super(...arguments);this.active=wd.ACTIVE;this.variant=wd.VARIANT;this.handleTabActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role=J.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${Io(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(dp).includes(t)?t:wd.VARIANT)}setActive(t,r){super.setActive(t,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return _`
5977
5988
  <div part="container">
5978
5989
  <slot name="prefix">
5979
5990
  ${this.iconName?_` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:W}
@@ -5989,7 +6000,7 @@
5989
6000
  <slot name="chip"></slot>
5990
6001
  </div>
5991
6002
  <div part="indicator"></div>
5992
- `}};lo.styles=[...ae.styles,...qg],m([u({type:Boolean,reflect:!0})],lo.prototype,"active",2),m([u({type:String,reflect:!0})],lo.prototype,"text",2),m([u({type:String,reflect:!0})],lo.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"tab-id"})],lo.prototype,"tabId",2);var yr=lo;yr.register(jg);var XA=yr;var ZA=[$i,B`
6003
+ `}};lo.styles=[...le.styles,...qg],m([u({type:Boolean,reflect:!0})],lo.prototype,"active",2),m([u({type:String,reflect:!0})],lo.prototype,"text",2),m([u({type:String,reflect:!0})],lo.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"tab-id"})],lo.prototype,"tabId",2);var yr=lo;yr.register(jg);var XA=yr;var ZA=[$i,B`
5993
6004
  :host {
5994
6005
  --mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
5995
6006
  --mdc-tablist-gap: 0.5rem;
@@ -6019,7 +6030,7 @@
6019
6030
  :host mdc-button[prefix-icon='arrow-right-regular'] {
6020
6031
  margin-left: var(--mdc-tablist-arrow-button-margin);
6021
6032
  }
6022
- `],Xg=[...ZA];var Zg=z.constructTagName("tablist"),ya={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Zs={FORWARD:"forward",BACKWARD:"backward"};var kd=a=>a[0],cp=a=>a[a.length-1],Qg=(a,o)=>{let t=a.findIndex(r=>o===r)-1;return a[(t+a.length)%a.length]},Jg=(a,o)=>{let t=a.findIndex(r=>o===r)+1;return a[t%a.length]},tb=(a,o)=>a.find(t=>t.tabId===o),hp=a=>a.find(o=>o.active);var Or=class extends j{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("activechange",this.handleNestedTabActiveChange)}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}async firstUpdated(){var s,d,p;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.tabs.map(f=>f.tabId);new Set(t).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(s=kd(this.tabs))==null?void 0:s.tabId),(d=this.tabsContainer)==null||d.addEventListener("focusin",this.handleFocus.bind(this)),(p=this.tabsContainer)==null||p.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus),(r=this.tabsContainer)==null||r.removeEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=tb(this.tabs,this.activeTabId);if(!(r instanceof yr))return;this.setActiveTab(r),t.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}fireTabChangeEvent(t){let r=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(r)}async handleFocus(t){if(t.relatedTarget instanceof yr||!(t.target instanceof yr))return;let r=hp(this.tabs||[]);r instanceof yr&&await this.focusTab(r)}handleMousedown(t){t.target instanceof yr&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let r=t.target;r instanceof yr&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)}resetTabIndexAndSetNewTabIndex(t){var r;(r=this.tabs)==null||r.forEach(s=>{s.setAttribute("tabindex",s===t?"0":"-1")})}setActiveTab(t){var r;(r=this.tabs)==null||r.forEach(s=>{s===t?s.setAttribute("active",""):s.removeAttribute("active")})}async focusTab(t){t instanceof yr&&(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility())}async handleKeydown(t){let r=t.target;if(!(r instanceof yr)||!this.tabs)return;let s=Qg(this.tabs,r),d=Jg(this.tabs,r),p=kd(this.tabs),f=cp(this.tabs);switch(t.code){case ya.LEFT:t.preventDefault(),await this.focusTab(this.isRtl()?d:s);break;case ya.RIGHT:t.preventDefault(),await this.focusTab(this.isRtl()?s:d);break;case ya.HOME:await this.focusTab(p);break;case ya.END:await this.focusTab(f);break;default:}}shouldShowArrowButton(t){return t===Zs.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=hp(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())}async handleArrowButtonVisibility(){var q,Q,X;if(!this.tabs||!this.tabsContainer)return;let t=!1;((q=this.shadowRoot)==null?void 0:q.activeElement)instanceof _o&&(t=!0);let r=kd(this.tabs),s=cp(this.tabs),d=r.getBoundingClientRect().left,p=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=s.getBoundingClientRect().right,T=(X=this.tabsContainer)==null?void 0:X.getBoundingClientRect().right,L=r.getBoundingClientRect().right,U=s.getBoundingClientRect().left;if(!this.isRtl()){d<=p?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>T?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}L>T?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,U<p?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()}async scrollTabs(t){var d;let r=this.isRtl()?-1:1,s=this.isRtl()?1:-1;(d=this.tabsContainer)==null||d.scrollBy({left:this.tabsContainer.clientWidth*(t===Zs.FORWARD?r:s),behavior:"instant"}),await this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",s=d=>_` ${this.shouldShowArrowButton(d)?_`<mdc-button
6033
+ `],Xg=[...ZA];var Zg=z.constructTagName("tablist"),yn={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Zs={FORWARD:"forward",BACKWARD:"backward"};var kd=n=>n[0],cp=n=>n[n.length-1],Qg=(n,o)=>{let t=n.findIndex(r=>o===r)-1;return n[(t+n.length)%n.length]},Jg=(n,o)=>{let t=n.findIndex(r=>o===r)+1;return n[t%n.length]},tb=(n,o)=>n.find(t=>t.tabId===o),hp=n=>n.find(o=>o.active);var Or=class extends j{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("activechange",this.handleNestedTabActiveChange)}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}async firstUpdated(){var s,d,p;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.tabs.map(f=>f.tabId);new Set(t).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(s=kd(this.tabs))==null?void 0:s.tabId),(d=this.tabsContainer)==null||d.addEventListener("focusin",this.handleFocus.bind(this)),(p=this.tabsContainer)==null||p.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus),(r=this.tabsContainer)==null||r.removeEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=tb(this.tabs,this.activeTabId);if(!(r instanceof yr))return;this.setActiveTab(r),t.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}fireTabChangeEvent(t){let r=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(r)}async handleFocus(t){if(t.relatedTarget instanceof yr||!(t.target instanceof yr))return;let r=hp(this.tabs||[]);r instanceof yr&&await this.focusTab(r)}handleMousedown(t){t.target instanceof yr&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let r=t.target;r instanceof yr&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)}resetTabIndexAndSetNewTabIndex(t){var r;(r=this.tabs)==null||r.forEach(s=>{s.setAttribute("tabindex",s===t?"0":"-1")})}setActiveTab(t){var r;(r=this.tabs)==null||r.forEach(s=>{s===t?s.setAttribute("active",""):s.removeAttribute("active")})}async focusTab(t){t instanceof yr&&(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility())}async handleKeydown(t){let r=t.target;if(!(r instanceof yr)||!this.tabs)return;let s=Qg(this.tabs,r),d=Jg(this.tabs,r),p=kd(this.tabs),f=cp(this.tabs);switch(t.code){case yn.LEFT:t.preventDefault(),await this.focusTab(this.isRtl()?d:s);break;case yn.RIGHT:t.preventDefault(),await this.focusTab(this.isRtl()?s:d);break;case yn.HOME:await this.focusTab(p);break;case yn.END:await this.focusTab(f);break;default:}}shouldShowArrowButton(t){return t===Zs.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=hp(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())}async handleArrowButtonVisibility(){var q,Q,X;if(!this.tabs||!this.tabsContainer)return;let t=!1;((q=this.shadowRoot)==null?void 0:q.activeElement)instanceof _o&&(t=!0);let r=kd(this.tabs),s=cp(this.tabs),d=r.getBoundingClientRect().left,p=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=s.getBoundingClientRect().right,T=(X=this.tabsContainer)==null?void 0:X.getBoundingClientRect().right,L=r.getBoundingClientRect().right,U=s.getBoundingClientRect().left;if(!this.isRtl()){d<=p?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>T?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}L>T?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,U<p?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()}async scrollTabs(t){var d;let r=this.isRtl()?-1:1,s=this.isRtl()?1:-1;(d=this.tabsContainer)==null||d.scrollBy({left:this.tabsContainer.clientWidth*(t===Zs.FORWARD?r:s),behavior:"instant"}),await this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",s=d=>_` ${this.shouldShowArrowButton(d)?_`<mdc-button
6023
6034
  variant="tertiary"
6024
6035
  prefix-icon="arrow-${d===Zs.FORWARD?t:r}-regular"
6025
6036
  aria-label="Scroll tabs ${d===Zs.FORWARD?t:r}"
@@ -6028,7 +6039,7 @@
6028
6039
  <div part="container" role="${J.TABLIST}" tabindex="-1" aria-label="${tt(this.dataAriaLabel)}">
6029
6040
  <slot></slot>
6030
6041
  </div>
6031
- ${s(Zs.FORWARD)}`}};Or.styles=[...j.styles,...Xg],m([u({type:String,attribute:"active-tab-id",reflect:!0})],Or.prototype,"activeTabId",2),m([u({type:String,attribute:"data-aria-label"})],Or.prototype,"dataAriaLabel",2),m([Zt('[part="container"]')],Or.prototype,"tabsContainer",2),m([Zt("mdc-button:not(:focus-visible)")],Or.prototype,"notFocusedArrowButton",2),m([Dt({selector:"mdc-tab"})],Or.prototype,"tabs",2),m([ut()],Or.prototype,"showForwardArrowButton",2),m([ut()],Or.prototype,"showBackwardArrowButton",2);var pp=Or;pp.register(Zg);var QA=pp;var eb=z.constructTagName("textarea"),mp={HARD:"hard",SOFT:"soft"},rb={OFF:"off",ON:"on"},Ea={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:mp.SOFT};var JA=[B`
6042
+ ${s(Zs.FORWARD)}`}};Or.styles=[...j.styles,...Xg],m([u({type:String,attribute:"active-tab-id",reflect:!0})],Or.prototype,"activeTabId",2),m([u({type:String,attribute:"data-aria-label"})],Or.prototype,"dataAriaLabel",2),m([Zt('[part="container"]')],Or.prototype,"tabsContainer",2),m([Zt("mdc-button:not(:focus-visible)")],Or.prototype,"notFocusedArrowButton",2),m([Dt({selector:"mdc-tab"})],Or.prototype,"tabs",2),m([ut()],Or.prototype,"showForwardArrowButton",2),m([ut()],Or.prototype,"showBackwardArrowButton",2);var pp=Or;pp.register(Zg);var QA=pp;var eb=z.constructTagName("textarea"),mp={HARD:"hard",SOFT:"soft"},rb={OFF:"off",ON:"on"},En={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:mp.SOFT};var JA=[B`
6032
6043
  :host {
6033
6044
  --mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
6034
6045
  --mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
@@ -6153,11 +6164,11 @@
6153
6164
  :host([disabled])::part(resize-button) {
6154
6165
  cursor: default;
6155
6166
  }
6156
- `,...St(!0)],ib=JA;var se=class extends kt(Ae(Ce(Ht(rr)))){constructor(){super(...arguments);this.rows=Ea.ROWS;this.wrap=mp.SOFT;this.autocapitalize=nd.OFF;this.autocomplete=rb.OFF;this.resizable=!1;this.characterLimitExceedingFired=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let r=t.currentTarget;r&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||Ea.ROWS,r.setPointerCapture(t.pointerId),r.addEventListener("pointermove",this.handlePointerMove),r.addEventListener("pointerup",this.handlePointerUp),r.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let r=t.clientY-this.resizeStartY,s=parseFloat(window.getComputedStyle(this.textarea).lineHeight),d=Math.round(r/s);this.rows=Math.max(1,this.resizeStartRows+d)};this.handlePointerUp=t=>{let r=t.currentTarget;r&&(t.type==="pointerup"&&r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),r.removeEventListener("pointermove",this.handlePointerMove),r.removeEventListener("pointerup",this.handlePointerUp),r.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(r=>{this.onerror&&this.onerror(r)})}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===zt.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.announceMaxLengthWarning()}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceMaxLengthWarning()}announceMaxLengthWarning(){this.ariaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.ariaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.ariaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}onChange(t){this.updateValue();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?_`
6157
- <mdc-text part="character-counter" tagname="span" type=${Ea.CHARACTER_COUNTER_TYPE}>
6167
+ `,...St(!0)],ib=JA;var ae=class extends kt(Ae(Ce(Ht(rr)))){constructor(){super(...arguments);this.rows=En.ROWS;this.wrap=mp.SOFT;this.autocapitalize=ad.OFF;this.autocomplete=rb.OFF;this.resizable=!1;this.characterLimitExceedingFired=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let r=t.currentTarget;r&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||En.ROWS,r.setPointerCapture(t.pointerId),r.addEventListener("pointermove",this.handlePointerMove),r.addEventListener("pointerup",this.handlePointerUp),r.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let r=t.clientY-this.resizeStartY,s=parseFloat(window.getComputedStyle(this.textarea).lineHeight),d=Math.round(r/s);this.rows=Math.max(1,this.resizeStartRows+d)};this.handlePointerUp=t=>{let r=t.currentTarget;r&&(t.type==="pointerup"&&r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),r.removeEventListener("pointermove",this.handlePointerMove),r.removeEventListener("pointerup",this.handlePointerUp),r.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(r=>{this.onerror&&this.onerror(r)})}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===zt.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.announceMaxLengthWarning()}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceMaxLengthWarning()}announceMaxLengthWarning(){this.ariaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.ariaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.ariaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}onChange(t){this.updateValue();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?_`
6168
+ <mdc-text part="character-counter" tagname="span" type=${En.CHARACTER_COUNTER_TYPE}>
6158
6169
  ${this.value.length}/${this.maxCharacterLimit}
6159
6170
  </mdc-text>
6160
- `:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:_` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let r=this.rows||Ea.ROWS,s,d=this.getActionForKeyEvent(t);d===Z.UP?s=Math.max(1,r-1):d===Z.DOWN&&(s=r+1),s!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=s)}render(){var t,r;return _`
6171
+ `:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:_` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let r=this.rows||En.ROWS,s,d=this.getActionForKeyEvent(t);d===Z.UP?s=Math.max(1,r-1):d===Z.DOWN&&(s=r+1),s!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=s)}render(){var t,r;return _`
6161
6172
  ${this.renderLabel()}
6162
6173
  <div class="mdc-focus-ring" part="textarea-container">
6163
6174
  <textarea
@@ -6204,7 +6215,7 @@
6204
6215
  `:W}
6205
6216
  </div>
6206
6217
  ${this.renderTextareaFooter()}
6207
- `}};se.styles=[...rr.styles,...ib],m([u({type:String})],se.prototype,"placeholder",2),m([u({type:Number,reflect:!0})],se.prototype,"rows",2),m([u({type:Number})],se.prototype,"cols",2),m([u({type:String})],se.prototype,"wrap",2),m([u({type:String})],se.prototype,"autocapitalize",2),m([u({type:String})],se.prototype,"autocomplete",2),m([u({type:String})],se.prototype,"dirname",2),m([u({type:Number})],se.prototype,"maxlength",2),m([u({type:Number})],se.prototype,"minlength",2),m([u({type:Number,attribute:"max-character-limit"})],se.prototype,"maxCharacterLimit",2),m([u({type:String,attribute:"character-limit-announcement"})],se.prototype,"characterLimitAnnouncement",2),m([u({type:Boolean,reflect:!0})],se.prototype,"resizable",2),m([u({type:String,attribute:"resize-button-aria-label"})],se.prototype,"resizeButtonAriaLabel",2),m([Zt("textarea")],se.prototype,"inputElement",2),m([ut()],se.prototype,"ariaLiveAnnouncer",2);var up=se;up.register(eb);var t0=up;var e0=[B`
6218
+ `}};ae.styles=[...rr.styles,...ib],m([u({type:String})],ae.prototype,"placeholder",2),m([u({type:Number,reflect:!0})],ae.prototype,"rows",2),m([u({type:Number})],ae.prototype,"cols",2),m([u({type:String})],ae.prototype,"wrap",2),m([u({type:String})],ae.prototype,"autocapitalize",2),m([u({type:String})],ae.prototype,"autocomplete",2),m([u({type:String})],ae.prototype,"dirname",2),m([u({type:Number})],ae.prototype,"maxlength",2),m([u({type:Number})],ae.prototype,"minlength",2),m([u({type:Number,attribute:"max-character-limit"})],ae.prototype,"maxCharacterLimit",2),m([u({type:String,attribute:"character-limit-announcement"})],ae.prototype,"characterLimitAnnouncement",2),m([u({type:Boolean,reflect:!0})],ae.prototype,"resizable",2),m([u({type:String,attribute:"resize-button-aria-label"})],ae.prototype,"resizeButtonAriaLabel",2),m([Zt("textarea")],ae.prototype,"inputElement",2),m([ut()],ae.prototype,"ariaLiveAnnouncer",2);var up=ae;up.register(eb);var t0=up;var e0=[B`
6208
6219
  :host {
6209
6220
  display: block;
6210
6221
  position: relative;
@@ -6256,7 +6267,7 @@
6256
6267
  * {
6257
6268
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
6258
6269
  }
6259
- `,nb=[i0];var Qs=class extends xe{constructor(){super({context:Od.context,initialValue:new Od(vp.THEMECLASS)});this.themeclass=vp.THEMECLASS}static get Context(){return Od.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(" "))}};Qs.styles=[...xe.styles,...nb],m([ut()],Qs.prototype,"currentThemeClass",2),m([u({type:String})],Qs.prototype,"themeclass",2);var gp=Qs;gp.register(Nd);var o0=gp;var ab=z.constructTagName("toast"),Ta={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Md={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},qe={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:cr[20],BUTTON:li,PRIMARY_BUTTON:$t.PRIMARY,SECONDARY_BUTTON:$t.SECONDARY,TERTIARY_BUTTON:$t.TERTIARY,VARIANT:Ta.CUSTOM};var lb=a=>{switch(a){case Ta.SUCCESS:return Md.SUCCESS_ICON_NAME;case Ta.WARNING:return Md.WARNING_ICON_NAME;case Ta.ERROR:return Md.ERROR_ICON_NAME;default:return null}};var s0=B`
6270
+ `,ab=[i0];var Qs=class extends xe{constructor(){super({context:Od.context,initialValue:new Od(vp.THEMECLASS)});this.themeclass=vp.THEMECLASS}static get Context(){return Od.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(" "))}};Qs.styles=[...xe.styles,...ab],m([ut()],Qs.prototype,"currentThemeClass",2),m([u({type:String})],Qs.prototype,"themeclass",2);var gp=Qs;gp.register(Nd);var o0=gp;var nb=z.constructTagName("toast"),Tn={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Md={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},qe={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:cr[20],BUTTON:li,PRIMARY_BUTTON:$t.PRIMARY,SECONDARY_BUTTON:$t.SECONDARY,TERTIARY_BUTTON:$t.TERTIARY,VARIANT:Tn.CUSTOM};var lb=n=>{switch(n){case Tn.SUCCESS:return Md.SUCCESS_ICON_NAME;case Tn.WARNING:return Md.WARNING_ICON_NAME;case Tn.ERROR:return Md.ERROR_ICON_NAME;default:return null}};var s0=B`
6260
6271
  :host {
6261
6272
  --mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
6262
6273
  --mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
@@ -6388,7 +6399,7 @@
6388
6399
  ></mdc-button>
6389
6400
  </div>
6390
6401
  ${this.renderFooter()}
6391
- `}};Pe.styles=[...j.styles,...db],m([u({type:String,reflect:!0})],Pe.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Pe.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Pe.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Pe.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Pe.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"show-more-text"})],Pe.prototype,"showMoreText",2),m([u({type:String,reflect:!0,attribute:"show-less-text"})],Pe.prototype,"showLessText",2),m([ut()],Pe.prototype,"isDetailVisible",2),m([ut()],Pe.prototype,"hasDetailedSlot",2),m([Dt({slot:"toast-body-detailed",flatten:!0})],Pe.prototype,"detailedElements",2),m([ut()],Pe.prototype,"hasFooterButtons",2);var bp=Pe;bp.register(ab);var n0=bp;var a0=[bt,B`
6402
+ `}};Pe.styles=[...j.styles,...db],m([u({type:String,reflect:!0})],Pe.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Pe.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Pe.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Pe.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Pe.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"show-more-text"})],Pe.prototype,"showMoreText",2),m([u({type:String,reflect:!0,attribute:"show-less-text"})],Pe.prototype,"showLessText",2),m([ut()],Pe.prototype,"isDetailVisible",2),m([ut()],Pe.prototype,"hasDetailedSlot",2),m([Dt({slot:"toast-body-detailed",flatten:!0})],Pe.prototype,"detailedElements",2),m([ut()],Pe.prototype,"hasFooterButtons",2);var bp=Pe;bp.register(nb);var a0=bp;var n0=[bt,B`
6392
6403
  :host {
6393
6404
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
6394
6405
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -6466,7 +6477,7 @@
6466
6477
  :host([soft-disabled]) {
6467
6478
  pointer-events: none;
6468
6479
  }
6469
- `,...St(!0)],cb=a0;var es=class extends kt(io(Ae(Ce(Ht(rr))))){constructor(){super(...arguments);this.checked=!1;this.size=Nh.SIZE;this.renderLabelAndHelperText=()=>this.label?_`<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 s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault(),r===Z.ENTER&&((s=this.form)==null||s.requestSubmit())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(la).includes(t)?t:Nh.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return _`
6480
+ `,...St(!0)],cb=n0;var es=class extends kt(io(Ae(Ce(Ht(rr))))){constructor(){super(...arguments);this.checked=!1;this.size=Nh.SIZE;this.renderLabelAndHelperText=()=>this.label?_`<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 s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===Z.SPACE&&t.preventDefault(),r===Z.ENTER&&((s=this.form)==null||s.requestSubmit())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ln).includes(t)?t:Nh.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return _`
6470
6481
  <mdc-statictoggle
6471
6482
  ?checked="${this.checked}"
6472
6483
  ?disabled="${this.disabled}"
@@ -6496,10 +6507,10 @@
6496
6507
  />
6497
6508
  </mdc-statictoggle>
6498
6509
  ${this.renderLabelAndHelperText()}
6499
- `}};es.styles=[...rr.styles,...cb],es.shadowRootOptions={...rr.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],es.prototype,"checked",2),m([u({type:String,reflect:!0})],es.prototype,"size",2);var yp=es;yp.register(sg);var l0=yp;function rs(a,o,t){var p;let r=(p=t.initialDeps)!=null?p:[],s;function d(){var f,T,L,U;let q;t.key&&((f=t.debug)!=null&&f.call(t))&&(q=Date.now());let Q=a();if(!(Q.length!==r.length||Q.some((dt,lt)=>r[lt]!==dt)))return s;r=Q;let it;if(t.key&&((T=t.debug)!=null&&T.call(t))&&(it=Date.now()),s=o(...Q),t.key&&((L=t.debug)!=null&&L.call(t))){let dt=Math.round((Date.now()-q)*100)/100,lt=Math.round((Date.now()-it)*100)/100,gt=lt/16,It=(Ct,Kt)=>{for(Ct=String(Ct);Ct.length<Kt;)Ct=" "+Ct;return Ct};console.info(`%c\u23F1 ${It(lt,5)} /${It(dt,5)} ms`,`
6510
+ `}};es.styles=[...rr.styles,...cb],es.shadowRootOptions={...rr.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],es.prototype,"checked",2),m([u({type:String,reflect:!0})],es.prototype,"size",2);var yp=es;yp.register(sg);var l0=yp;function rs(n,o,t){var p;let r=(p=t.initialDeps)!=null?p:[],s;function d(){var f,T,L,U;let q;t.key&&((f=t.debug)!=null&&f.call(t))&&(q=Date.now());let Q=n();if(!(Q.length!==r.length||Q.some((dt,lt)=>r[lt]!==dt)))return s;r=Q;let it;if(t.key&&((T=t.debug)!=null&&T.call(t))&&(it=Date.now()),s=o(...Q),t.key&&((L=t.debug)!=null&&L.call(t))){let dt=Math.round((Date.now()-q)*100)/100,lt=Math.round((Date.now()-it)*100)/100,gt=lt/16,It=(Ct,Kt)=>{for(Ct=String(Ct);Ct.length<Kt;)Ct=" "+Ct;return Ct};console.info(`%c\u23F1 ${It(lt,5)} /${It(dt,5)} ms`,`
6500
6511
  font-size: .6rem;
6501
6512
  font-weight: bold;
6502
- color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(U=t==null?void 0:t.onChange)==null||U.call(t,s),s}return d.updateDeps=f=>{r=f},d}function Ep(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var hb=(a,o)=>Math.abs(a-o)<1.01,pb=(a,o,t)=>{let r;return function(...s){a.clearTimeout(r),r=a.setTimeout(()=>o.apply(this,s),t)}};var mb=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},d0=a=>a,Tp=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},vb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=p=>{let{width:f,height:T}=p;o({width:Math.round(f),height:Math.round(T)})};if(s(mb(t)),!r.ResizeObserver)return()=>{};let d=new r.ResizeObserver(p=>{let f=()=>{let T=p[0];if(T!=null&&T.borderBoxSize){let L=T.borderBoxSize[0];if(L){s({width:L.inlineSize,height:L.blockSize});return}}s(mb(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},ub={passive:!0};var fb=typeof window>"u"?!0:"onscrollend"in window,gb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=0,d=a.options.useScrollendEvent&&fb?()=>{}:pb(r,()=>{o(s,!1)},a.options.isScrollingResetDelay),p=U=>()=>{let{horizontal:q,isRtl:Q}=a.options;s=q?t.scrollLeft*(Q&&-1||1):t.scrollTop,d(),o(s,U)},f=p(!0),T=p(!1);T(),t.addEventListener("scroll",f,ub);let L=a.options.useScrollendEvent&&fb;return L&&t.addEventListener("scrollend",T,ub),()=>{t.removeEventListener("scroll",f),L&&t.removeEventListener("scrollend",T)}};var c0=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var bb=(a,{adjustments:o=0,behavior:t},r)=>{var s,d;let p=a+o;(d=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||d.call(s,{[r.options.horizontal?"left":"top"]:p,behavior:t})},Rd=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,r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(d=>{let p=()=>{this._measureElement(d.target,d)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(p):p()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),t=null},observe:s=>{var d;return(d=r())==null?void 0:d.observe(s,{box:"border-box"})},unobserve:s=>{var d;return(d=r())==null?void 0:d.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,s])=>{typeof s>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:d0,rangeExtractor:Tp,onChange:()=>{},measureElement:c0,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 r,s;(s=(r=this.options).onChange)==null||s.call(r,this,t)},this.maybeNotify=rs(()=>(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 s;var t;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(t=this.scrollElement)==null?void 0:t.window)!=null?s:null,this.elementsCache.forEach(d=>{this.observer.observe(d)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,d=>{this.scrollRect=d,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(d,p)=>{this.scrollAdjustments=0,this.scrollDirection=p?this.getScrollOffset()<d?"forward":"backward":null,this.scrollOffset=d,this.isScrolling=p,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,r)=>{let s=new Map,d=new Map;for(let p=r-1;p>=0;p--){let f=t[p];if(s.has(f.lane))continue;let T=d.get(f.lane);if(T==null||f.end>T.end?d.set(f.lane,f):f.end<T.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return d.size===this.options.lanes?Array.from(d.values()).sort((p,f)=>p.end===f.end?p.index-f.index:p.end-f.end)[0]:void 0},this.getMeasurementOptions=rs(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,s,d,p)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:p}),{key:!1}),this.getMeasurements=rs(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:p},f)=>{if(!p)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(U=>{this.itemSizeCache.set(U.key,U.size)}));let T=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let L=this.measurementsCache.slice(0,T);for(let U=T;U<t;U++){let q=d(U),Q=this.options.lanes===1?L[U-1]:this.getFurthestMeasurement(L,U),X=Q?Q.end+this.options.gap:r+s,it=f.get(q),dt=typeof it=="number"?it:this.options.estimateSize(U),lt=X+dt,gt=Q?Q.lane:U%this.options.lanes;L[U]={index:U,start:X,size:dt,end:lt,key:q,lane:gt}}return this.measurementsCache=L,L},{key:!1,debug:()=>this.options.debug}),this.calculateRange=rs(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,d)=>this.range=t.length>0&&r>0?h0({measurements:t,outerSize:r,scrollOffset:s,lanes:d}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=rs(()=>{let t=null,r=null,s=this.calculateRange();return s&&(t=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,s,d,p)=>d===null||p===null?[]:t({startIndex:d,endIndex:p,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let r=this.options.indexAttribute,s=t.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{let s=this.indexFromElement(t),d=this.measurementsCache[s];if(!d)return;let p=d.key,f=this.elementsCache.get(p);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(p,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var f;let s=this.measurementsCache[t];if(!s)return;let d=(f=this.itemSizeCache.get(s.key))!=null?f:s.size,p=r-d;p!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,p,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=p,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,s)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=rs(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let d=0,p=t.length;d<p;d++){let f=t[d],T=r[f];s.push(T)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return Ep(r[yb(0,r.length-1,s=>Ep(r[s]).start,t)])},this.getOffsetForAlignment=(t,r,s=0)=>{let d=this.getSize(),p=this.getScrollOffset();r==="auto"&&(r=t>=p+d?"end":"start"),r==="center"?t+=(s-d)/2:r==="end"&&(t-=d);let f=this.getTotalSize()+this.options.scrollMargin-d;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let s=this.measurementsCache[t];if(!s)return;let d=this.getSize(),p=this.getScrollOffset();if(r==="auto")if(s.end>=p+d-this.options.scrollPaddingEnd)r="end";else if(s.start<=p+this.options.scrollPaddingStart)r="start";else return[p,r];let f=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,r,s.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:r="auto",behavior:s}={})=>{s==="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 d=0,p=10,f=L=>{if(!this.targetWindow)return;let U=this.getOffsetForIndex(t,L);if(!U){console.warn("Failed to get offset for index:",t);return}let[q,Q]=U;this._scrollToOffset(q,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{let X=this.getScrollOffset(),it=this.getOffsetForIndex(t,Q);if(!it){console.warn("Failed to get offset for index:",t);return}hb(it[0],X)||T(Q)})},T=L=>{this.targetWindow&&(d++,d<p?this.targetWindow.requestAnimationFrame(()=>f(L)):console.warn(`Failed to scroll to index ${t} after ${p} attempts.`))};f(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="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:r})},this.getTotalSize=()=>{var d;var t;let r=this.getMeasurements(),s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(d=(t=r[r.length-1])==null?void 0:t.end)!=null?d:0;else{let p=Array(this.options.lanes).fill(null),f=r.length-1;for(;f>=0&&p.some(T=>T===null);){let T=r[f];p[T.lane]===null&&(p[T.lane]=T.end),f--}s=Math.max(...p.filter(T=>T!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},yb=(a,o,t,r)=>{for(;a<=o;){let s=(a+o)/2|0,d=t(s);if(d<r)a=s+1;else if(d>r)o=s-1;else return s}return a>0?a-1:0};function h0({measurements:a,outerSize:o,scrollOffset:t,lanes:r}){let s=a.length-1,d=T=>a[T].start;if(a.length<=r)return{startIndex:0,endIndex:s};let p=yb(0,s,d,t),f=p;if(r===1)for(;f<s&&a[f].end<t+o;)f++;else if(r>1){let T=Array(r).fill(0);for(;f<s&&T.some(U=>U<t+o);){let U=a[f];T[U.lane]=U.end,f++}let L=Array(r).fill(t+o);for(;p>=0&&L.some(U=>U>=t);){let U=a[p];L[U.lane]=U.start,p--}p=Math.max(0,p-p%r),f=Math.min(s,f+(r-1-f%r))}return{startIndex:p,endIndex:f}}var xp=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let r={...t,onChange:(s,d)=>{var p;this.host.updateComplete.then(()=>this.host.requestUpdate()),(p=t.onChange)==null||p.call(t,s,d)}};this.virtualizer=new Rd(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pd=class extends xp{constructor(o,t){super(o,{observeElementRect:vb,observeElementOffset:gb,scrollToFn:bb,...t})}};var p0={includeEnd:!1},Dd=class{constructor(o,t,r={}){let s={...p0,...r};this.start=o,this.end=t,this.includeEnd=s.includeEnd}includes(o){let{start:t,end:r,includeEnd:s}=this,d=Math.min(t,r),p=Math.max(t,r);return s?o>=d&&o<=p:o>=d&&o<p}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:r,end:s}=this,d=this.start,p=!1;return{next:()=>{if(p)return{value:void 0,done:!0};let f=d;return d+=t,(r?f>s:f>=s)?(p=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Fd=class{constructor(o,t,r){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=r}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((r,s,d)=>o.call(t,r,this.getIndex(r),d))}forEach(o,t){this.items.forEach((r,s,d)=>{o.call(t,r,this.getIndex(r),d)})}findIndex(o,t){let r=this.items.find((s,d,p)=>o.call(t,s,this.getIndex(s),p));return r?this.getIndex(r):-1}find(o,t){return this.items.find((r,s,d)=>o.call(t,r,this.getIndex(r),d))}};var m0=[B`
6513
+ color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(U=t==null?void 0:t.onChange)==null||U.call(t,s),s}return d.updateDeps=f=>{r=f},d}function Ep(n,o){if(n===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return n}var hb=(n,o)=>Math.abs(n-o)<1.01,pb=(n,o,t)=>{let r;return function(...s){n.clearTimeout(r),r=n.setTimeout(()=>o.apply(this,s),t)}};var mb=n=>{let{offsetWidth:o,offsetHeight:t}=n;return{width:o,height:t}},d0=n=>n,Tp=n=>{let o=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},vb=(n,o)=>{let t=n.scrollElement;if(!t)return;let r=n.targetWindow;if(!r)return;let s=p=>{let{width:f,height:T}=p;o({width:Math.round(f),height:Math.round(T)})};if(s(mb(t)),!r.ResizeObserver)return()=>{};let d=new r.ResizeObserver(p=>{let f=()=>{let T=p[0];if(T!=null&&T.borderBoxSize){let L=T.borderBoxSize[0];if(L){s({width:L.inlineSize,height:L.blockSize});return}}s(mb(t))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},ub={passive:!0};var fb=typeof window>"u"?!0:"onscrollend"in window,gb=(n,o)=>{let t=n.scrollElement;if(!t)return;let r=n.targetWindow;if(!r)return;let s=0,d=n.options.useScrollendEvent&&fb?()=>{}:pb(r,()=>{o(s,!1)},n.options.isScrollingResetDelay),p=U=>()=>{let{horizontal:q,isRtl:Q}=n.options;s=q?t.scrollLeft*(Q&&-1||1):t.scrollTop,d(),o(s,U)},f=p(!0),T=p(!1);T(),t.addEventListener("scroll",f,ub);let L=n.options.useScrollendEvent&&fb;return L&&t.addEventListener("scrollend",T,ub),()=>{t.removeEventListener("scroll",f),L&&t.removeEventListener("scrollend",T)}};var c0=(n,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return n[t.options.horizontal?"offsetWidth":"offsetHeight"]};var bb=(n,{adjustments:o=0,behavior:t},r)=>{var s,d;let p=n+o;(d=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||d.call(s,{[r.options.horizontal?"left":"top"]:p,behavior:t})},Rd=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,r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(d=>{let p=()=>{this._measureElement(d.target,d)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(p):p()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),t=null},observe:s=>{var d;return(d=r())==null?void 0:d.observe(s,{box:"border-box"})},unobserve:s=>{var d;return(d=r())==null?void 0:d.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,s])=>{typeof s>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:d0,rangeExtractor:Tp,onChange:()=>{},measureElement:c0,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 r,s;(s=(r=this.options).onChange)==null||s.call(r,this,t)},this.maybeNotify=rs(()=>(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 s;var t;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(t=this.scrollElement)==null?void 0:t.window)!=null?s:null,this.elementsCache.forEach(d=>{this.observer.observe(d)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,d=>{this.scrollRect=d,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(d,p)=>{this.scrollAdjustments=0,this.scrollDirection=p?this.getScrollOffset()<d?"forward":"backward":null,this.scrollOffset=d,this.isScrolling=p,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,r)=>{let s=new Map,d=new Map;for(let p=r-1;p>=0;p--){let f=t[p];if(s.has(f.lane))continue;let T=d.get(f.lane);if(T==null||f.end>T.end?d.set(f.lane,f):f.end<T.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return d.size===this.options.lanes?Array.from(d.values()).sort((p,f)=>p.end===f.end?p.index-f.index:p.end-f.end)[0]:void 0},this.getMeasurementOptions=rs(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,s,d,p)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:p}),{key:!1}),this.getMeasurements=rs(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:p},f)=>{if(!p)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(U=>{this.itemSizeCache.set(U.key,U.size)}));let T=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let L=this.measurementsCache.slice(0,T);for(let U=T;U<t;U++){let q=d(U),Q=this.options.lanes===1?L[U-1]:this.getFurthestMeasurement(L,U),X=Q?Q.end+this.options.gap:r+s,it=f.get(q),dt=typeof it=="number"?it:this.options.estimateSize(U),lt=X+dt,gt=Q?Q.lane:U%this.options.lanes;L[U]={index:U,start:X,size:dt,end:lt,key:q,lane:gt}}return this.measurementsCache=L,L},{key:!1,debug:()=>this.options.debug}),this.calculateRange=rs(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,d)=>this.range=t.length>0&&r>0?h0({measurements:t,outerSize:r,scrollOffset:s,lanes:d}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=rs(()=>{let t=null,r=null,s=this.calculateRange();return s&&(t=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,s,d,p)=>d===null||p===null?[]:t({startIndex:d,endIndex:p,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let r=this.options.indexAttribute,s=t.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{let s=this.indexFromElement(t),d=this.measurementsCache[s];if(!d)return;let p=d.key,f=this.elementsCache.get(p);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(p,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var f;let s=this.measurementsCache[t];if(!s)return;let d=(f=this.itemSizeCache.get(s.key))!=null?f:s.size,p=r-d;p!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,p,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=p,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,s)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=rs(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let d=0,p=t.length;d<p;d++){let f=t[d],T=r[f];s.push(T)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return Ep(r[yb(0,r.length-1,s=>Ep(r[s]).start,t)])},this.getOffsetForAlignment=(t,r,s=0)=>{let d=this.getSize(),p=this.getScrollOffset();r==="auto"&&(r=t>=p+d?"end":"start"),r==="center"?t+=(s-d)/2:r==="end"&&(t-=d);let f=this.getTotalSize()+this.options.scrollMargin-d;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let s=this.measurementsCache[t];if(!s)return;let d=this.getSize(),p=this.getScrollOffset();if(r==="auto")if(s.end>=p+d-this.options.scrollPaddingEnd)r="end";else if(s.start<=p+this.options.scrollPaddingStart)r="start";else return[p,r];let f=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,r,s.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:r="auto",behavior:s}={})=>{s==="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 d=0,p=10,f=L=>{if(!this.targetWindow)return;let U=this.getOffsetForIndex(t,L);if(!U){console.warn("Failed to get offset for index:",t);return}let[q,Q]=U;this._scrollToOffset(q,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{let X=this.getScrollOffset(),it=this.getOffsetForIndex(t,Q);if(!it){console.warn("Failed to get offset for index:",t);return}hb(it[0],X)||T(Q)})},T=L=>{this.targetWindow&&(d++,d<p?this.targetWindow.requestAnimationFrame(()=>f(L)):console.warn(`Failed to scroll to index ${t} after ${p} attempts.`))};f(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="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:r})},this.getTotalSize=()=>{var d;var t;let r=this.getMeasurements(),s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(d=(t=r[r.length-1])==null?void 0:t.end)!=null?d:0;else{let p=Array(this.options.lanes).fill(null),f=r.length-1;for(;f>=0&&p.some(T=>T===null);){let T=r[f];p[T.lane]===null&&(p[T.lane]=T.end),f--}s=Math.max(...p.filter(T=>T!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},yb=(n,o,t,r)=>{for(;n<=o;){let s=(n+o)/2|0,d=t(s);if(d<r)n=s+1;else if(d>r)o=s-1;else return s}return n>0?n-1:0};function h0({measurements:n,outerSize:o,scrollOffset:t,lanes:r}){let s=n.length-1,d=T=>n[T].start;if(n.length<=r)return{startIndex:0,endIndex:s};let p=yb(0,s,d,t),f=p;if(r===1)for(;f<s&&n[f].end<t+o;)f++;else if(r>1){let T=Array(r).fill(0);for(;f<s&&T.some(U=>U<t+o);){let U=n[f];T[U.lane]=U.end,f++}let L=Array(r).fill(t+o);for(;p>=0&&L.some(U=>U>=t);){let U=n[p];L[U.lane]=U.start,p--}p=Math.max(0,p-p%r),f=Math.min(s,f+(r-1-f%r))}return{startIndex:p,endIndex:f}}var xp=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let r={...t,onChange:(s,d)=>{var p;this.host.updateComplete.then(()=>this.host.requestUpdate()),(p=t.onChange)==null||p.call(t,s,d)}};this.virtualizer=new Rd(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pd=class extends xp{constructor(o,t){super(o,{observeElementRect:vb,observeElementOffset:gb,scrollToFn:bb,...t})}};var p0={includeEnd:!1},Dd=class{constructor(o,t,r={}){let s={...p0,...r};this.start=o,this.end=t,this.includeEnd=s.includeEnd}includes(o){let{start:t,end:r,includeEnd:s}=this,d=Math.min(t,r),p=Math.max(t,r);return s?o>=d&&o<=p:o>=d&&o<p}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:r,end:s}=this,d=this.start,p=!1;return{next:()=>{if(p)return{value:void 0,done:!0};let f=d;return d+=t,(r?f>s:f>=s)?(p=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Fd=class{constructor(o,t,r){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=r}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((r,s,d)=>o.call(t,r,this.getIndex(r),d))}forEach(o,t){this.items.forEach((r,s,d)=>{o.call(t,r,this.getIndex(r),d)})}findIndex(o,t){let r=this.items.find((s,d,p)=>o.call(t,s,this.getIndex(s),p));return r?this.getIndex(r):-1}find(o,t){return this.items.find((r,s,d)=>o.call(t,r,this.getIndex(r),d))}};var m0=[B`
6503
6514
  :host {
6504
6515
  height: 100%;
6505
6516
  }
@@ -6529,7 +6540,7 @@
6529
6540
  ::slotted(mdc-listitem) {
6530
6541
  position: relative;
6531
6542
  }
6532
- `],Eb=m0;var Tb=z.constructTagName("virtualizedlist"),Y9=z.constructTagName("virtualizedwrapper"),xa={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var Xe=class extends kt(Ht(Hs)){constructor(){super();this.virtualizerProps=xa.VIRTUALIZER_PROPS;this.loop=xa.LOOP;this.scrollAnchoring=xa.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=xa.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 r,s;this.observeSizeChanges&&this.navItems.find(d=>d===t.target)!==void 0&&((s=(r=this.virtualizer)==null?void 0:r.measureElement)==null||s.call(r,t.target))};this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Gt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?r:[]}get navItems(){var t,r,s,d;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let p=(d=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?d:"data-index";this.virtualizedNavItems=new Fd(super.navItems,f=>Number(f.getAttribute(p)),()=>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,r;return(r=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?r:0}connectedCallback(){this.virtualizerController=new Pd(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("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(r=>{var s,d;this.observeSizeChanges&&((d=(s=this.virtualizer)==null?void 0:s.measureElement)==null||d.call(s,r))}),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 d,p;let{virtualizer:r}=this;if(!r)return;let s=r.measurementsCache.slice();if(r.setOptions({...r.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&s.length>0){let f=Math.abs(this.virtualizerProps.count-((d=t==null?void 0:t.count)!=null?d:0)),T=this.selectedIndex,L=this.firstKey,U=new Dd(T-f,T+f,{includeEnd:!0}),q=(p=Array.from(U).find(X=>r.options.getItemKey(X)===this.selectedKey))!=null?p:this.selectedIndex;if(this.setSelectedIndex(q),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&T!==this.selectedIndex||!this.focusWithin&&this.firstKey!==L){let X=r.measurementsCache[this.selectedIndex].end-s[T].end;this.scrollRef.scrollTop+=X}}}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 r,s,d,p,f;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(p=(d=this.virtualizer)==null?void 0:d.getVirtualItems)==null?void 0:p.call(d))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var T,L,U,q;let{navItems:r,virtualizerProps:s,virtualizer:d}=this,p=(L=(T=s.rangeExtractor)==null?void 0:T.call(s,t))!=null?L:Tp(t);return this.hiddenIndexes.forEach(Q=>{let X=r.at(Q);X&&(X.removeAttribute("data-virtualized-hidden"),X.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(q=(U=this.virtualizer)==null?void 0:U.options.getItemKey(this.firstIndex))!=null?q:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var X;p.includes(Q)||(Q<t.startIndex&&Q>=0&&(p.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((X=d==null?void 0:d.options.count)!=null?X:0)&&(p.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),p.sort((Q,X)=>Q-X),p}updateHiddenItemsPosition(t){let{navItems:r,virtualizerProps:s,virtualizer:d}=this;if(!d||s.count===0)return;let{measurementsCache:p}=d;this.hiddenIndexes.forEach(f=>{let T=r.at(f);if(T){let L=Math.max(t.startIndex-t.overscan,0),U=p[L],q=p[f];T.setAttribute("data-virtualized-hidden","true"),T.style.setProperty("--mdc-virtualizedlist-hidden-top",`${q.start-U.start}px`)}})}isElementSelected(t){var r;return((r=this.virtualizer)==null?void 0:r.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:r,getItemKey:s}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(r-1,t)),this.selectedKey=s(t)}}onElementStoreUpdate(t,r){if(r==="added"){let s=this.isElementSelected(t);t.tabIndex=s?0:-1,this.setAriaSetSize(t)}else r==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,r){this.syncUI(),await this.updateComplete,this.requestUpdate(),!r&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(s=>s()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let r=t.target;this.atBottom==="re-evaluate"||r.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=r.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&r>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=r-s<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var s,d,p,f;switch(this.getActionForKeyEvent(t)){case Z.HOME:{(d=(s=this.virtualizer)==null?void 0:s.scrollToIndex)==null||d.call(s,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Z.END:{let T=this.virtualizerProps.count-1;(f=(p=this.virtualizer)==null?void 0:p.scrollToIndex)==null||f.call(p,T,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(T));break}case Z.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,r=!0){super.resetTabIndexes(t,r),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,r,s=!0,d=s){if(this.navItems.find(f=>{var T;return((T=this.virtualizer)==null?void 0:T.indexFromElement(f))===t})===void 0){this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,r,s,d),this.setSelectedIndex(t)});return}super.resetTabIndexAndSetFocus(t,r,s,d),this.setSelectedIndex(t)}setAriaSetSize(t){var r,s;t.setAttribute("aria-setsize",`${(s=(r=this.virtualizer)==null?void 0:r.options.count)!=null?s:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=r-t-s),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,r){var s,d;(d=(s=this.virtualizer).scrollToIndex)==null||d.call(s,t,r),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var d;let t=this.virtualItems.find(({index:p})=>!this.hiddenIndexes.includes(p)),r=(d=t==null?void 0:t.start)!=null?d:0;window.getComputedStyle(this);let s=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(s=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${s+r}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 _`
6543
+ `],Eb=m0;var Tb=z.constructTagName("virtualizedlist"),Y9=z.constructTagName("virtualizedwrapper"),xn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var Xe=class extends kt(Ht(Hs)){constructor(){super();this.virtualizerProps=xn.VIRTUALIZER_PROPS;this.loop=xn.LOOP;this.scrollAnchoring=xn.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=xn.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 r,s;this.observeSizeChanges&&this.navItems.find(d=>d===t.target)!==void 0&&((s=(r=this.virtualizer)==null?void 0:r.measureElement)==null||s.call(r,t.target))};this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Gt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?r:[]}get navItems(){var t,r,s,d;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let p=(d=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?d:"data-index";this.virtualizedNavItems=new Fd(super.navItems,f=>Number(f.getAttribute(p)),()=>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,r;return(r=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?r:0}connectedCallback(){this.virtualizerController=new Pd(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("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(r=>{var s,d;this.observeSizeChanges&&((d=(s=this.virtualizer)==null?void 0:s.measureElement)==null||d.call(s,r))}),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 d,p;let{virtualizer:r}=this;if(!r)return;let s=r.measurementsCache.slice();if(r.setOptions({...r.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&s.length>0){let f=Math.abs(this.virtualizerProps.count-((d=t==null?void 0:t.count)!=null?d:0)),T=this.selectedIndex,L=this.firstKey,U=new Dd(T-f,T+f,{includeEnd:!0}),q=(p=Array.from(U).find(X=>r.options.getItemKey(X)===this.selectedKey))!=null?p:this.selectedIndex;if(this.setSelectedIndex(q),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&T!==this.selectedIndex||!this.focusWithin&&this.firstKey!==L){let X=r.measurementsCache[this.selectedIndex].end-s[T].end;this.scrollRef.scrollTop+=X}}}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 r,s,d,p,f;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(p=(d=this.virtualizer)==null?void 0:d.getVirtualItems)==null?void 0:p.call(d))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var T,L,U,q;let{navItems:r,virtualizerProps:s,virtualizer:d}=this,p=(L=(T=s.rangeExtractor)==null?void 0:T.call(s,t))!=null?L:Tp(t);return this.hiddenIndexes.forEach(Q=>{let X=r.at(Q);X&&(X.removeAttribute("data-virtualized-hidden"),X.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(q=(U=this.virtualizer)==null?void 0:U.options.getItemKey(this.firstIndex))!=null?q:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var X;p.includes(Q)||(Q<t.startIndex&&Q>=0&&(p.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((X=d==null?void 0:d.options.count)!=null?X:0)&&(p.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),p.sort((Q,X)=>Q-X),p}updateHiddenItemsPosition(t){let{navItems:r,virtualizerProps:s,virtualizer:d}=this;if(!d||s.count===0)return;let{measurementsCache:p}=d;this.hiddenIndexes.forEach(f=>{let T=r.at(f);if(T){let L=Math.max(t.startIndex-t.overscan,0),U=p[L],q=p[f];T.setAttribute("data-virtualized-hidden","true"),T.style.setProperty("--mdc-virtualizedlist-hidden-top",`${q.start-U.start}px`)}})}isElementSelected(t){var r;return((r=this.virtualizer)==null?void 0:r.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:r,getItemKey:s}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(r-1,t)),this.selectedKey=s(t)}}onElementStoreUpdate(t,r){if(r==="added"){let s=this.isElementSelected(t);t.tabIndex=s?0:-1,this.setAriaSetSize(t)}else r==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,r){this.syncUI(),await this.updateComplete,this.requestUpdate(),!r&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(s=>s()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let r=t.target;this.atBottom==="re-evaluate"||r.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=r.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&r>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=r-s<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var s,d,p,f;switch(this.getActionForKeyEvent(t)){case Z.HOME:{(d=(s=this.virtualizer)==null?void 0:s.scrollToIndex)==null||d.call(s,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Z.END:{let T=this.virtualizerProps.count-1;(f=(p=this.virtualizer)==null?void 0:p.scrollToIndex)==null||f.call(p,T,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(T));break}case Z.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,r=!0){super.resetTabIndexes(t,r),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,r,s=!0,d=s){if(this.navItems.find(f=>{var T;return((T=this.virtualizer)==null?void 0:T.indexFromElement(f))===t})===void 0){this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,r,s,d),this.setSelectedIndex(t)});return}super.resetTabIndexAndSetFocus(t,r,s,d),this.setSelectedIndex(t)}setAriaSetSize(t){var r,s;t.setAttribute("aria-setsize",`${(s=(r=this.virtualizer)==null?void 0:r.options.count)!=null?s:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=r-t-s),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,r){var s,d;(d=(s=this.virtualizer).scrollToIndex)==null||d.call(s,t,r),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var d;let t=this.virtualItems.find(({index:p})=>!this.hiddenIndexes.includes(p)),r=(d=t==null?void 0:t.start)!=null?d:0;window.getComputedStyle(this);let s=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(s=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${s+r}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 _`
6533
6544
  <slot name="list-header"></slot>
6534
6545
  <div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
6535
6546
  <div part="wrapper">
@@ -6538,7 +6549,7 @@
6538
6549
  </div>
6539
6550
  </div>
6540
6551
  </div>
6541
- `}};Xe.styles=[...Hs.styles,...Eb],m([u({type:Object})],Xe.prototype,"virtualizerProps",2),m([u({type:String,reflect:!0})],Xe.prototype,"loop",2),m([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],Xe.prototype,"scrollAnchoring",2),m([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],Xe.prototype,"observeSizeChanges",2),m([u({type:Boolean,reflect:!0,attribute:"revert-list"})],Xe.prototype,"revertList",2),m([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],Xe.prototype,"atBottomThreshold",2),m([Zt('[part="scroll"]',!0)],Xe.prototype,"scrollRef",2),m([Zt('[part="wrapper"]',!0)],Xe.prototype,"wrapperRef",2),m([Zt('[part="container"]',!0)],Xe.prototype,"containerRef",2),m([Km({passive:!0})],Xe.prototype,"onScrollHandler",1);var Ap=Xe;Ap.register(Tb);var u0=Ap;ae.register(qm);var xb=z.constructTagName("combobox"),Sp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Ab="list";var Ip="combobox-trigger-id";var Js=class{static dispatchComboboxEvent(o,t,r,s=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:r==null?void 0:r.value,label:r==null?void 0:r.label},composed:!0,bubbles:s}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var f0=B`
6552
+ `}};Xe.styles=[...Hs.styles,...Eb],m([u({type:Object})],Xe.prototype,"virtualizerProps",2),m([u({type:String,reflect:!0})],Xe.prototype,"loop",2),m([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],Xe.prototype,"scrollAnchoring",2),m([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],Xe.prototype,"observeSizeChanges",2),m([u({type:Boolean,reflect:!0,attribute:"revert-list"})],Xe.prototype,"revertList",2),m([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],Xe.prototype,"atBottomThreshold",2),m([Zt('[part="scroll"]',!0)],Xe.prototype,"scrollRef",2),m([Zt('[part="wrapper"]',!0)],Xe.prototype,"wrapperRef",2),m([Zt('[part="container"]',!0)],Xe.prototype,"containerRef",2),m([Km({passive:!0})],Xe.prototype,"onScrollHandler",1);var Ap=Xe;Ap.register(Tb);var u0=Ap;le.register(qm);var xb=z.constructTagName("combobox"),Sp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Ab="list";var Ip="combobox-trigger-id";var Js=class{static dispatchComboboxEvent(o,t,r,s=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:r==null?void 0:r.value,label:r==null?void 0:r.label},composed:!0,bubbles:s}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var f0=B`
6542
6553
  :host {
6543
6554
  --mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
6544
6555
  --mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
@@ -6643,7 +6654,7 @@
6643
6654
  --mdc-icon-fill-color: ButtonText;
6644
6655
  }
6645
6656
  }
6646
- `,Sb=[f0];var he=class extends kt(Zi(Ae(Ce(Ht(io(de)))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=At.Z_INDEX;this.isOpen=!1;this.filteredValue="";this.forceValueUpdate=!1;this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.handleModifiedEvent=t=>{if(this.controlType==="controlled")return;let r=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;r&&r.value!==this.value&&this.setSelectedValue(r,!1);break}case"unselected":{r&&this.setSelectedValue(r,!1);break}default:break}};this.handleDestroyEvent=t=>{let r=t.detail.originalTarget;if(r&&(!this.isValidItem(r)||r.tabIndex!==0))return;let s=this.navItems.findIndex(p=>p===r);if(s===-1)return;let d=s+1;d>=this.navItems.length&&(d=s-1)};this.addEventListener(Gt.DESTROYED,this.handleDestroyEvent),this.addEventListener(Gt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Xr(this,{isValidItem:this.isValidItem})}get navItems(){return this.itemsStore.items}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(br)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}toggleDropdown(){this.isOpen=!this.isOpen}compareOptionWithValue(t,r){return(t.getAttribute("label")||"").toLowerCase().startsWith(r==null?void 0:r.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(r=>this.compareOptionWithValue(r,t))}setSelectedValue(t,r=!0){if(this.controlType==="controlled"&&!this.forceValueUpdate){Js.onChangeCombobox(this,t);return}this.forceValueUpdate=!1,this.filteredValue=(t==null?void 0:t.getAttribute("label"))||"",this.value=(t==null?void 0:t.getAttribute("value"))||"",this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.setInputValidity(),this.resetHelpText(),r&&(Js.onInputCombobox(this,t),Js.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=zt.DEFAULT)}attributeChangedCallback(t,r,s){if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&this.navItems.length&&this.controlType!=="controlled"){let d=this.getFirstSelectedOption(),p=this.navItems.find(T=>T.value===s),f=null;if(p)f=p;else if(this.placeholder)f=null;else if(d)f=d;else return;this.updateComplete.then(()=>{this.setSelectedValue(f)}).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 r=this.getFirstSelectedOption();r&&this.controlType!=="controlled"?(this.initialSelectedOption=r,this.setSelectedValue(r)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.navItems.forEach(s=>{s.setAttribute("tabindex","-1")})}updateValueBasedSelection(){this.forceValueUpdate=!0;let t=this.navItems.find(r=>r.value===this.value);t&&this.setSelectedValue(t)}updated(t){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)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,r;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var r;let t=this.initialSelectedOption||null;this.setSelectedValue(t),this.controlType!=="controlled"&&(this.filteredValue=(r=t==null?void 0:t.label)!=null?r:""),this.setInputValidity()}formStateRestoreCallback(t){let r=this.navItems.find(s=>s.value===t||s.label===t);this.setSelectedValue(r||null)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(r=>{r.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,r){t!==void 0&&(r?t.setAttribute("data-focused",""):t.removeAttribute("data-focused"),t.setAttribute("aria-selected",r.toString()))}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),r=t.findIndex(s=>s.hasAttribute("data-focused"));if(r!==-1){this.setSelectedValue(t[r]),this.closePopover();return}r===-1&&this.filteredValue!==""&&this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=zt.ERROR),this.setInputValidity()}updateFocusAndScrollIntoView(t,r,s){var d;this.updateOptionAttributes(t[r],!1),this.updateOptionAttributes(t[s],!0),(d=t[s])==null||d.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let r=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),s=r.findIndex(d=>d.hasAttribute("data-focused"));switch(this.getActionForKeyEvent(t)){case Z.DOWN:{this.openPopover();let d=r.length-1===s?0:s+1;this.updateFocusAndScrollIntoView(r,s,d),t.preventDefault();break}case Z.UP:{this.openPopover();let d=s===-1||s===0?r.length-1:s-1;this.updateFocusAndScrollIntoView(r,s,d),t.preventDefault();break}case Z.ENTER:{if(s===-1)return;this.setSelectedValue(r[s]),this.isOpen&&this.closePopover();break}case Z.ESCAPE:{s!==-1&&this.updateOptionAttributes(r[s],!1),r.length&&this.shouldDisplayPopover(r.length)?this.closePopover():(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue=""));break}case Z.TAB:{this.closePopover();break}case Z.HOME:case Z.END:{this.resetFocusedOption();break}default:break}}updateHiddenOptions(){this.navItems.forEach(t=>{this.compareOptionWithValue(t,this.filteredValue)?(t.removeAttribute("data-hidden"),this.showOptionGroupAndDivider(t)):(t.setAttribute("data-hidden",""),this.hideOptionGroupAndDivider(t))})}hideOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(pa)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length===0&&(t.parentElement.setAttribute("data-hidden",""),(d=t.parentElement.nextElementSibling)!=null&&d.matches(qn)&&t.parentElement.nextElementSibling.setAttribute("data-hidden",""))}showOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(pa)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length>0&&(t.parentElement.removeAttribute("data-hidden"),(d=t.parentElement.nextElementSibling)!=null&&d.matches(qn)&&t.parentElement.nextElementSibling.removeAttribute("data-hidden"))}handleInputChange(t){var r;this.controlType!=="controlled"&&(this.filteredValue=t.target.value),this.resetSelectedValue(),this.resetFocusedOption(),this.updateHiddenOptions(),(r=this.getFirstSelectedOption())==null||r.removeAttribute("selected"),this.isOpen===!1&&this.openPopover()}handleOptionsClick(t){var s;let r=(s=t.target.closest(br))!=null?s:null;r&&!r.hasAttribute("disabled")&&(this.setSelectedValue(r),this.closePopover(),this.updateComplete.then(()=>this.handleNativeInputFocus()).catch(this.handleUpdateError))}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t?this.isOpen:!!this.noResultText}renderNativeInput(){return _`
6657
+ `,Sb=[f0];var he=class extends kt(Zi(Ae(Ce(Ht(io(ie)))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=At.Z_INDEX;this.isOpen=!1;this.filteredValue="";this.forceValueUpdate=!1;this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.handleModifiedEvent=t=>{if(this.controlType==="controlled")return;let r=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;r&&r.value!==this.value&&this.setSelectedValue(r,!1);break}case"unselected":{r&&this.setSelectedValue(r,!1);break}default:break}};this.handleDestroyEvent=t=>{let r=t.detail.originalTarget;if(r&&(!this.isValidItem(r)||r.tabIndex!==0))return;let s=this.navItems.findIndex(p=>p===r);if(s===-1)return;let d=s+1;d>=this.navItems.length&&(d=s-1)};this.addEventListener(Gt.DESTROYED,this.handleDestroyEvent),this.addEventListener(Gt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Xr(this,{isValidItem:this.isValidItem})}get navItems(){return this.itemsStore.items}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(br)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}toggleDropdown(){this.isOpen=!this.isOpen}compareOptionWithValue(t,r){return(t.getAttribute("label")||"").toLowerCase().startsWith(r==null?void 0:r.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(r=>this.compareOptionWithValue(r,t))}setSelectedValue(t,r=!0){if(this.controlType==="controlled"&&!this.forceValueUpdate){Js.onChangeCombobox(this,t);return}this.forceValueUpdate=!1,this.filteredValue=(t==null?void 0:t.getAttribute("label"))||"",this.value=(t==null?void 0:t.getAttribute("value"))||"",this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.setInputValidity(),this.resetHelpText(),r&&(Js.onInputCombobox(this,t),Js.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=zt.DEFAULT)}attributeChangedCallback(t,r,s){if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&this.navItems.length&&this.controlType!=="controlled"){let d=this.getFirstSelectedOption(),p=this.navItems.find(T=>T.value===s),f=null;if(p)f=p;else if(this.placeholder)f=null;else if(d)f=d;else return;this.updateComplete.then(()=>{this.setSelectedValue(f)}).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 r=this.getFirstSelectedOption();r&&this.controlType!=="controlled"?(this.initialSelectedOption=r,this.setSelectedValue(r)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.navItems.forEach(s=>{s.setAttribute("tabindex","-1")})}updateValueBasedSelection(){this.forceValueUpdate=!0;let t=this.navItems.find(r=>r.value===this.value);t&&this.setSelectedValue(t)}updated(t){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)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,r;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var r;let t=this.initialSelectedOption||null;this.setSelectedValue(t),this.controlType!=="controlled"&&(this.filteredValue=(r=t==null?void 0:t.label)!=null?r:""),this.setInputValidity()}formStateRestoreCallback(t){let r=this.navItems.find(s=>s.value===t||s.label===t);this.setSelectedValue(r||null)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(r=>{r.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,r){t!==void 0&&(r?t.setAttribute("data-focused",""):t.removeAttribute("data-focused"),t.setAttribute("aria-selected",r.toString()))}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),r=t.findIndex(s=>s.hasAttribute("data-focused"));if(r!==-1){this.setSelectedValue(t[r]),this.closePopover();return}r===-1&&this.filteredValue!==""&&this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=zt.ERROR),this.setInputValidity()}updateFocusAndScrollIntoView(t,r,s){var d;this.updateOptionAttributes(t[r],!1),this.updateOptionAttributes(t[s],!0),(d=t[s])==null||d.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let r=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),s=r.findIndex(d=>d.hasAttribute("data-focused"));switch(this.getActionForKeyEvent(t)){case Z.DOWN:{this.openPopover();let d=r.length-1===s?0:s+1;this.updateFocusAndScrollIntoView(r,s,d),t.preventDefault();break}case Z.UP:{this.openPopover();let d=s===-1||s===0?r.length-1:s-1;this.updateFocusAndScrollIntoView(r,s,d),t.preventDefault();break}case Z.ENTER:{if(s===-1)return;this.setSelectedValue(r[s]),this.isOpen&&this.closePopover();break}case Z.ESCAPE:{s!==-1&&this.updateOptionAttributes(r[s],!1),r.length&&this.shouldDisplayPopover(r.length)?this.closePopover():(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue=""));break}case Z.TAB:{this.closePopover();break}case Z.HOME:case Z.END:{this.resetFocusedOption();break}default:break}}updateHiddenOptions(){this.navItems.forEach(t=>{this.compareOptionWithValue(t,this.filteredValue)?(t.removeAttribute("data-hidden"),this.showOptionGroupAndDivider(t)):(t.setAttribute("data-hidden",""),this.hideOptionGroupAndDivider(t))})}hideOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(pn)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length===0&&(t.parentElement.setAttribute("data-hidden",""),(d=t.parentElement.nextElementSibling)!=null&&d.matches(ja)&&t.parentElement.nextElementSibling.setAttribute("data-hidden",""))}showOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(pn)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length>0&&(t.parentElement.removeAttribute("data-hidden"),(d=t.parentElement.nextElementSibling)!=null&&d.matches(ja)&&t.parentElement.nextElementSibling.removeAttribute("data-hidden"))}handleInputChange(t){var r;this.controlType!=="controlled"&&(this.filteredValue=t.target.value),this.resetSelectedValue(),this.resetFocusedOption(),this.updateHiddenOptions(),(r=this.getFirstSelectedOption())==null||r.removeAttribute("selected"),this.isOpen===!1&&this.openPopover()}handleOptionsClick(t){var s;let r=(s=t.target.closest(br))!=null?s:null;r&&!r.hasAttribute("disabled")&&(this.setSelectedValue(r),this.closePopover(),this.updateComplete.then(()=>this.handleNativeInputFocus()).catch(this.handleUpdateError))}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t?this.isOpen:!!this.noResultText}renderNativeInput(){return _`
6647
6658
  <input
6648
6659
  id="${this.inputId}"
6649
6660
  name="${this.name}"
@@ -6737,7 +6748,7 @@
6737
6748
  </mdc-popover>
6738
6749
  </div>
6739
6750
  ${this.renderHelperText()}
6740
- `}};he.styles=[...Lr.styles,...de.styles,...Sb],m([u({type:String})],he.prototype,"placeholder",2),m([u({type:String,reflect:!0})],he.prototype,"placement",2),m([u({type:String,attribute:"no-result-text",reflect:!0})],he.prototype,"noResultText",2),m([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],he.prototype,"invalidCustomValueText",2),m([u({type:String,reflect:!0})],he.prototype,"boundary",2),m([u({type:String,reflect:!0})],he.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],he.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],he.prototype,"backdropAppendTo",2),m([Zt(`[role="${J.COMBOBOX}"]`)],he.prototype,"visualCombobox",2),m([Zt('[part="combobox-button"]')],he.prototype,"dropDownButton",2),m([Dt({selector:xd})],he.prototype,"slottedListboxes",2),m([ut()],he.prototype,"isOpen",2),m([ut()],he.prototype,"filteredValue",2),m([ut()],he.prototype,"forceValueUpdate",2);var _p=he;_p.register(xb);var v0=_p;var Ib=(a,o,t)=>{let r=new Map;for(let s=o;s<=t;s++)r.set(a[s],s);return r},_b=hi(class extends Hr{constructor(a){if(super(a),a.type!==er.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let r;t===void 0?t=o:o!==void 0&&(r=o);let s=[],d=[],p=0;for(let f of a)s[p]=r?r(f,p):p,d[p]=t(f,p),p++;return{values:d,keys:s}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,r]){var dt;let s=Tu(a),{values:d,keys:p}=this.dt(o,t,r);if(!Array.isArray(s))return this.ut=p,d;let f=(dt=this.ut)!=null?dt:this.ut=[],T=[],L,U,q=0,Q=s.length-1,X=0,it=d.length-1;for(;q<=Q&&X<=it;)if(s[q]===null)q++;else if(s[Q]===null)Q--;else if(f[q]===p[X])T[X]=Ui(s[q],d[X]),q++,X++;else if(f[Q]===p[it])T[it]=Ui(s[Q],d[it]),Q--,it--;else if(f[q]===p[it])T[it]=Ui(s[q],d[it]),Es(a,T[it+1],s[q]),q++,it--;else if(f[Q]===p[X])T[X]=Ui(s[Q],d[X]),Es(a,s[q],s[Q]),Q--,X++;else if(L===void 0&&(L=Ib(p,X,it),U=Ib(f,q,Q)),L.has(f[q]))if(L.has(f[Q])){let lt=U.get(p[X]),gt=lt!==void 0?s[lt]:null;if(gt===null){let It=Es(a,s[q]);Ui(It,d[X]),T[X]=It}else T[X]=Ui(gt,d[X]),Es(a,s[q],gt),s[lt]=null;X++}else ml(s[Q]),Q--;else ml(s[q]),q++;for(;X<=it;){let lt=Es(a,T[it+1]);Ui(lt,d[X]),T[X++]=lt}for(;q<=Q;){let lt=s[q++];lt!==null&&ml(lt)}return this.ut=p,pl(a,T),Te}});var Cb=z.constructTagName("slider"),g0={START:"start",END:"end",UNDEFINED:void 0},co={MIN:0,MAX:100,STEP:1,STATE:g0.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var b0=B`
6751
+ `}};he.styles=[...Lr.styles,...ie.styles,...Sb],m([u({type:String})],he.prototype,"placeholder",2),m([u({type:String,reflect:!0})],he.prototype,"placement",2),m([u({type:String,attribute:"no-result-text",reflect:!0})],he.prototype,"noResultText",2),m([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],he.prototype,"invalidCustomValueText",2),m([u({type:String,reflect:!0})],he.prototype,"boundary",2),m([u({type:String,reflect:!0})],he.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],he.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],he.prototype,"backdropAppendTo",2),m([Zt(`[role="${J.COMBOBOX}"]`)],he.prototype,"visualCombobox",2),m([Zt('[part="combobox-button"]')],he.prototype,"dropDownButton",2),m([Dt({selector:xd})],he.prototype,"slottedListboxes",2),m([ut()],he.prototype,"isOpen",2),m([ut()],he.prototype,"filteredValue",2),m([ut()],he.prototype,"forceValueUpdate",2);var _p=he;_p.register(xb);var v0=_p;var Ib=(n,o,t)=>{let r=new Map;for(let s=o;s<=t;s++)r.set(n[s],s);return r},_b=hi(class extends Hr{constructor(n){if(super(n),n.type!==er.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let r;t===void 0?t=o:o!==void 0&&(r=o);let s=[],d=[],p=0;for(let f of n)s[p]=r?r(f,p):p,d[p]=t(f,p),p++;return{values:d,keys:s}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,r]){var dt;let s=Tu(n),{values:d,keys:p}=this.dt(o,t,r);if(!Array.isArray(s))return this.ut=p,d;let f=(dt=this.ut)!=null?dt:this.ut=[],T=[],L,U,q=0,Q=s.length-1,X=0,it=d.length-1;for(;q<=Q&&X<=it;)if(s[q]===null)q++;else if(s[Q]===null)Q--;else if(f[q]===p[X])T[X]=Ui(s[q],d[X]),q++,X++;else if(f[Q]===p[it])T[it]=Ui(s[Q],d[it]),Q--,it--;else if(f[q]===p[it])T[it]=Ui(s[q],d[it]),Es(n,T[it+1],s[q]),q++,it--;else if(f[Q]===p[X])T[X]=Ui(s[Q],d[X]),Es(n,s[q],s[Q]),Q--,X++;else if(L===void 0&&(L=Ib(p,X,it),U=Ib(f,q,Q)),L.has(f[q]))if(L.has(f[Q])){let lt=U.get(p[X]),gt=lt!==void 0?s[lt]:null;if(gt===null){let It=Es(n,s[q]);Ui(It,d[X]),T[X]=It}else T[X]=Ui(gt,d[X]),Es(n,s[q],gt),s[lt]=null;X++}else ml(s[Q]),Q--;else ml(s[q]),q++;for(;X<=it;){let lt=Es(n,T[it+1]);Ui(lt,d[X]),T[X++]=lt}for(;q<=Q;){let lt=s[q++];lt!==null&&ml(lt)}return this.ut=p,pl(n,T),Te}});var Cb=z.constructTagName("slider"),g0={START:"start",END:"end",UNDEFINED:void 0},co={MIN:0,MAX:100,STEP:1,STATE:g0.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var b0=B`
6741
6752
  :host {
6742
6753
  width: 100%;
6743
6754
  --mdc-slider-tooltip-left: 0;
@@ -7081,7 +7092,7 @@
7081
7092
  ::slotted(mdc-option) {
7082
7093
  width: 100%;
7083
7094
  }
7084
- `,kb=[E0];var is=class extends Bs(Zi(j)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Xr(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=J.LISTBOX}handleModifiedEvent(t){let r=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(r);break;case"disabled":this.itemsStore.delete(r);break;case"selected":this.setSelectedOption(r,!1,!1);break;case"unselected":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(`${br}:not([disabled])`)}handleClick(t){let r=t.target;this.isValidItem(r)&&this.setSelectedOption(r)}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}updated(t){if(t.has("value")){let r=this.itemsStore.items.find(s=>s.value===this.value);r?this.setSelectedOption(r,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,r=!0,s=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(s&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,r&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(r=>r.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.selectedOption&&this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){return _`<slot part="container"></slot>`}};is.styles=[...Eh.styles,...kb],m([u({type:String,reflect:!0})],is.prototype,"name",2),m([u({type:String,reflect:!0})],is.prototype,"value",2),m([ut()],is.prototype,"selectedOption",2);var wp=is;var Nb=z.constructTagName("listbox");wp.register(Nb);var T0=wp;var Lb=z.constructTagName("banner"),tn={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},Aa={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},$d={VARIANT:tn.CUSTOM,PREFIX_ICON_SIZE:1.25};var x0=B`
7095
+ `,kb=[E0];var is=class extends Bs(Zi(j)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Xr(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=J.LISTBOX}handleModifiedEvent(t){let r=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(r);break;case"disabled":this.itemsStore.delete(r);break;case"selected":this.setSelectedOption(r,!1,!1);break;case"unselected":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(`${br}:not([disabled])`)}handleClick(t){let r=t.target;this.isValidItem(r)&&this.setSelectedOption(r)}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}updated(t){if(t.has("value")){let r=this.itemsStore.items.find(s=>s.value===this.value);r?this.setSelectedOption(r,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,r=!0,s=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(s&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,r&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(r=>r.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.selectedOption&&this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){return _`<slot part="container"></slot>`}};is.styles=[...Eh.styles,...kb],m([u({type:String,reflect:!0})],is.prototype,"name",2),m([u({type:String,reflect:!0})],is.prototype,"value",2),m([ut()],is.prototype,"selectedOption",2);var wp=is;var Nb=z.constructTagName("listbox");wp.register(Nb);var T0=wp;var Lb=z.constructTagName("banner"),ta={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},An={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},$d={VARIANT:ta.CUSTOM,PREFIX_ICON_SIZE:1.25};var x0=B`
7085
7096
  :host {
7086
7097
  --mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
7087
7098
  --mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -7164,7 +7175,7 @@
7164
7175
  gap: var(--mdc-banner-gap);
7165
7176
  flex-wrap: wrap;
7166
7177
  }
7167
- `,Ob=[x0];var Mb=a=>{switch(a){case tn.INFORMATIONAL:return Aa.INFORMATIONAL_ICON_NAME;case tn.SUCCESS:return Aa.SUCCESS_ICON_NAME;case tn.WARNING:return Aa.WARNING_ICON_NAME;case tn.ERROR:return Aa.ERROR_ICON_NAME;default:return null}};var os=class extends j{constructor(){super(...arguments);this.variant=$d.VARIANT}renderIcon(t){return t?_`
7178
+ `,Ob=[x0];var Mb=n=>{switch(n){case ta.INFORMATIONAL:return An.INFORMATIONAL_ICON_NAME;case ta.SUCCESS:return An.SUCCESS_ICON_NAME;case ta.WARNING:return An.WARNING_ICON_NAME;case ta.ERROR:return An.ERROR_ICON_NAME;default:return null}};var os=class extends j{constructor(){super(...arguments);this.variant=$d.VARIANT}renderIcon(t){return t?_`
7168
7179
  <mdc-icon name="${t}" size="${$d.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
7169
7180
  `:W}getTextLabel(){return this.label?_`
7170
7181
  <mdc-text